blob: 37ccfbc4ed0bc7c4d915baa3e2d6be76f9a9fb57 [file] [log] [blame]
import{E as ER,F as Lp,G as CR,H as kF,I as kR,J as JS,m as yee,g as Ey,K as dv,i as I_,k as bee,L as See,o as $l,c as ip,M as a6,N as AR,d as ol,b as av,O as o6,a as fy,P as n2,Q as l1,R as BT,w as jN,j as AE,S as AF,T as PR,U as PF,t as EC,V as dy,W as Dee,X as wR,Y as Pl,Z as xee,$ as wF,a0 as Tee,a1 as NR,a2 as IR}from"./app-9073a2e6.js";import{c as DS}from"./commonjs-dynamic-modules-302442b1.js";import{c as Pm,a as Eee,u as Cee,g as kee,d as Aee}from"./utils-a5e1dbae-143be013.js";function lp(i,t){const n=Object.create(null),o=i.split(",");for(let l=0;l<o.length;l++)n[o[l]]=!0;return t?l=>!!n[l.toLowerCase()]:l=>!!n[l]}const Pee=Object.freeze({}),NF=()=>{},lE=()=>!1,wee=/^on[^a-z]/,OR=i=>wee.test(i),_v=Object.assign,Nee=Object.prototype.hasOwnProperty,CC=(i,t)=>Nee.call(i,t),Dd=Array.isArray,Iee=i=>s6(i)==="[object Map]",Oee=i=>s6(i)==="[object Set]",MR=i=>typeof i=="function",lc=i=>typeof i=="string",x2=i=>typeof i=="symbol",Dv=i=>i!==null&&typeof i=="object",FR=Object.prototype.toString,s6=i=>FR.call(i),Mee=i=>s6(i)==="[object Object]",IF=lp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c6=lp("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),kC=i=>{const t=Object.create(null);return n=>t[n]||(t[n]=i(n))},Fee=/-(\w)/g,Tg=kC(i=>i.replace(Fee,(t,n)=>n?n.toUpperCase():"")),Lee=/\B([A-Z])/g,LR=kC(i=>i.replace(Lee,"-$1").toLowerCase()),by=kC(i=>i.charAt(0).toUpperCase()+i.slice(1)),Ree=kC(i=>i?`on${by(i)}`:""),Bee=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function i2(i){return Bee.test(i)?`__props.${i}`:`__props[${JSON.stringify(i)}]`}const fh={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},jee={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Jee="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",RR=lp(Jee),OF=2;function w1(i,t=0,n=i.length){let o=i.split(/(\r?\n)/);const l=o.filter(($,h)=>h%2===1);o=o.filter(($,h)=>h%2===0);let d=0;const m=[];for(let $=0;$<o.length;$++)if(d+=o[$].length+(l[$]&&l[$].length||0),d>=t){for(let h=$-OF;h<=$+OF||n>d;h++){if(h<0||h>=o.length)continue;const e=h+1;m.push(`${e}${" ".repeat(Math.max(3-String(e).length,0))}| ${o[h]}`);const c=o[h].length,P=l[h]&&l[h].length||0;if(h===$){const T=t-(d-(c+P)),s=Math.max(1,n>d?c-T:n-t);m.push(" | "+" ".repeat(T)+"^".repeat(s))}else if(h>$){if(n>d){const T=Math.max(Math.min(n-d,c),1);m.push(" | "+"^".repeat(T))}d+=c+P}}break}return m.join(`
`)}function BR(i){if(Dd(i)){const t={};for(let n=0;n<i.length;n++){const o=i[n],l=lc(o)?jR(o):BR(o);if(l)for(const d in l)t[d]=l[d]}return t}else{if(lc(i))return i;if(Dv(i))return i}}const Uee=/;(?![^(]*\))/g,Vee=/:([^]+)/,zee=/\/\*[^]*?\*\//g;function jR(i){const t={};return i.replace(zee,"").split(Uee).forEach(n=>{if(n){const o=n.split(Vee);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Wee(i){let t="";if(!i||lc(i))return t;for(const n in i){const o=i[n],l=n.startsWith("--")?n:LR(n);(lc(o)||typeof o=="number")&&(t+=`${l}:${o};`)}return t}function JR(i){let t="";if(lc(i))t=i;else if(Dd(i))for(let n=0;n<i.length;n++){const o=JR(i[n]);o&&(t+=o+" ")}else if(Dv(i))for(const n in i)i[n]&&(t+=n+" ");return t.trim()}const qee="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",$ee="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Hee="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Gee=lp(qee),Kee=lp($ee),UR=lp(Hee),Qee="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",VR=lp(Qee+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),Xee=/[>/="'\u0009\u000a\u000c\u0020]/,rN={};function Yee(i){if(rN.hasOwnProperty(i))return rN[i];const t=Xee.test(i);return t&&console.error(`unsafe attribute name: ${i}`),rN[i]=!t}const Zee={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},ere=lp("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),rre=lp("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),tre=/["'&<>]/;function sh(i){const t=""+i,n=tre.exec(t);if(!n)return t;let o="",l,d,m=0;for(d=n.index;d<t.length;d++){switch(t.charCodeAt(d)){case 34:l="&quot;";break;case 38:l="&amp;";break;case 39:l="&#39;";break;case 60:l="&lt;";break;case 62:l="&gt;";break;default:continue}m!==d&&(o+=t.slice(m,d)),m=d+1,o+=l}return m!==d?o+t.slice(m,d):o}const u6=i=>lc(i)?i:i==null?"":Dd(i)||Dv(i)&&(i.toString===FR||!MR(i.toString))?JSON.stringify(i,zR,2):String(i),zR=(i,t)=>t&&t.__v_isRef?zR(i,t.value):Iee(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,l])=>(n[`${o} =>`]=l,n),{})}:Oee(t)?{[`Set(${t.size})`]:[...t.values()]}:Dv(t)&&!Dd(t)&&!Mee(t)?String(t):t;function l6(i){throw i}function WR(i){console.warn(`[Vue warn] ${i.message}`)}function Cc(i,t,n,o){const l=(n||nre)[i]+(o||""),d=new SyntaxError(String(l));return d.code=i,d.loc=t,d}const nre={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',51:"@vnode-* hooks in templates are deprecated. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support will be removed in 3.4.",52:'v-is="component-name" has been deprecated. Use is="vue:component-name" instead. v-is support will be removed in 3.4.',53:""},a2=Symbol("Fragment"),b1=Symbol("Teleport"),T2=Symbol("Suspense"),US=Symbol("KeepAlive"),f6=Symbol("BaseTransition"),Sy=Symbol("openBlock"),p6=Symbol("createBlock"),d6=Symbol("createElementBlock"),CD=Symbol("createVNode"),AC=Symbol("createElementVNode"),E2=Symbol("createCommentVNode"),PC=Symbol("createTextVNode"),wC=Symbol("createStaticVNode"),VS=Symbol("resolveComponent"),o2=Symbol("resolveDynamicComponent"),NC=Symbol("resolveDirective"),qR=Symbol("resolveFilter"),IC=Symbol("withDirectives"),OC=Symbol("renderList"),_6=Symbol("renderSlot"),m6=Symbol("createSlots"),kD=Symbol("toDisplayString"),N1=Symbol("mergeProps"),MC=Symbol("normalizeClass"),FC=Symbol("normalizeStyle"),s2=Symbol("normalizeProps"),C2=Symbol("guardReactiveProps"),LC=Symbol("toHandlers"),PE=Symbol("camelize"),$R=Symbol("capitalize"),wE=Symbol("toHandlerKey"),zS=Symbol("setBlockTracking"),RC=Symbol("pushScopeId"),BC=Symbol("popScopeId"),jC=Symbol("withCtx"),c2=Symbol("unref"),WS=Symbol("isRef"),JC=Symbol("withMemo"),g6=Symbol("isMemoSame"),Zd={[a2]:"Fragment",[b1]:"Teleport",[T2]:"Suspense",[US]:"KeepAlive",[f6]:"BaseTransition",[Sy]:"openBlock",[p6]:"createBlock",[d6]:"createElementBlock",[CD]:"createVNode",[AC]:"createElementVNode",[E2]:"createCommentVNode",[PC]:"createTextVNode",[wC]:"createStaticVNode",[VS]:"resolveComponent",[o2]:"resolveDynamicComponent",[NC]:"resolveDirective",[qR]:"resolveFilter",[IC]:"withDirectives",[OC]:"renderList",[_6]:"renderSlot",[m6]:"createSlots",[kD]:"toDisplayString",[N1]:"mergeProps",[MC]:"normalizeClass",[FC]:"normalizeStyle",[s2]:"normalizeProps",[C2]:"guardReactiveProps",[LC]:"toHandlers",[PE]:"camelize",[$R]:"capitalize",[wE]:"toHandlerKey",[zS]:"setBlockTracking",[RC]:"pushScopeId",[BC]:"popScopeId",[jC]:"withCtx",[c2]:"unref",[WS]:"isRef",[JC]:"withMemo",[g6]:"isMemoSame"};function h6(i){Object.getOwnPropertySymbols(i).forEach(t=>{Zd[t]=i[t]})}const rl={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function k2(i,t=rl){return{type:0,children:i,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function u2(i,t,n,o,l,d,m,$=!1,h=!1,e=!1,c=rl){return i&&($?(i.helper(Sy),i.helper(O1(i.inSSR,e))):i.helper(I1(i.inSSR,e)),m&&i.helper(IC)),{type:13,tag:t,props:n,children:o,patchFlag:l,dynamicProps:d,directives:m,isBlock:$,disableTracking:h,isComponent:e,loc:c}}function J1(i,t=rl){return{type:17,loc:t,elements:i}}function e_(i,t=rl){return{type:15,loc:t,properties:i}}function qc(i,t){return{type:16,loc:rl,key:lc(i)?to(i,!0):i,value:t}}function to(i,t=!1,n=rl,o=0){return{type:4,loc:n,content:i,isStatic:t,constType:t?3:o}}function NE(i,t){return{type:5,loc:t,content:lc(i)?to(i,!1,t):i}}function ap(i,t=rl){return{type:8,loc:t,children:i}}function ls(i,t=[],n=rl){return{type:14,loc:n,callee:i,arguments:t}}function R_(i,t=void 0,n=!1,o=!1,l=rl){return{type:18,params:i,returns:t,newline:n,isSlot:o,loc:l}}function Dy(i,t,n,o=!0){return{type:19,test:i,consequent:t,alternate:n,newline:o,loc:rl}}function HR(i,t,n=!1){return{type:20,index:i,value:t,isVNode:n,loc:rl}}function AD(i){return{type:21,body:i,loc:rl}}function v6(i){return{type:22,elements:i,loc:rl}}function IE(i,t,n){return{type:23,test:i,consequent:t,alternate:n,loc:rl}}function JN(i,t){return{type:24,left:i,right:t,loc:rl}}function GR(i){return{type:25,expressions:i,loc:rl}}function KR(i){return{type:26,returns:i,loc:rl}}function I1(i,t){return i||t?CD:AC}function O1(i,t){return i||t?p6:d6}function UC(i,{helper:t,removeHelper:n,inSSR:o}){i.isBlock||(i.isBlock=!0,n(I1(o,i.isComponent)),t(Sy),t(O1(o,i.isComponent)))}function ire(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function PD(i){if(i.__esModule)return i;var t=i.default;if(typeof t=="function"){var n=function o(){if(this instanceof o){var l=[null];l.push.apply(l,arguments);var d=Function.bind.apply(t,l);return new d}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(i).forEach(function(o){var l=Object.getOwnPropertyDescriptor(i,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:function(){return i[o]}})}),n}var VC={};Object.defineProperty(VC,"__esModule",{value:!0});const MF={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function are(i){if(i&&i.annexB!=null&&i.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const n of Object.keys(MF))t[n]=i&&i[n]!=null?i[n]:MF[n];return t}class xS{constructor(t,n){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!n}}const du={brace:new xS("{"),j_oTag:new xS("<tag"),j_cTag:new xS("</tag"),j_expr:new xS("<tag>...</tag>",!0)};du.template=new xS("`",!0);const Ks=!0,Ya=!0,tN=!0,iS=!0,oy=!0,ore=!0;class QR{constructor(t,n={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.rightAssociative=!!n.rightAssociative,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop!=null?n.binop:null,this.updateContext=null}}const y6=new Map;function uc(i,t={}){t.keyword=i;const n=Vo(i,t);return y6.set(i,n),n}function gd(i,t){return Vo(i,{beforeExpr:Ks,binop:t})}let CS=-1;const tv=[],b6=[],S6=[],D6=[],x6=[],T6=[];function Vo(i,t={}){var n,o,l,d;return++CS,b6.push(i),S6.push((n=t.binop)!=null?n:-1),D6.push((o=t.beforeExpr)!=null?o:!1),x6.push((l=t.startsExpr)!=null?l:!1),T6.push((d=t.prefix)!=null?d:!1),tv.push(new QR(i,t)),CS}function Zs(i,t={}){var n,o,l,d;return++CS,y6.set(i,CS),b6.push(i),S6.push((n=t.binop)!=null?n:-1),D6.push((o=t.beforeExpr)!=null?o:!1),x6.push((l=t.startsExpr)!=null?l:!1),T6.push((d=t.prefix)!=null?d:!1),tv.push(new QR("name",t)),CS}const sre={bracketL:Vo("[",{beforeExpr:Ks,startsExpr:Ya}),bracketHashL:Vo("#[",{beforeExpr:Ks,startsExpr:Ya}),bracketBarL:Vo("[|",{beforeExpr:Ks,startsExpr:Ya}),bracketR:Vo("]"),bracketBarR:Vo("|]"),braceL:Vo("{",{beforeExpr:Ks,startsExpr:Ya}),braceBarL:Vo("{|",{beforeExpr:Ks,startsExpr:Ya}),braceHashL:Vo("#{",{beforeExpr:Ks,startsExpr:Ya}),braceR:Vo("}"),braceBarR:Vo("|}"),parenL:Vo("(",{beforeExpr:Ks,startsExpr:Ya}),parenR:Vo(")"),comma:Vo(",",{beforeExpr:Ks}),semi:Vo(";",{beforeExpr:Ks}),colon:Vo(":",{beforeExpr:Ks}),doubleColon:Vo("::",{beforeExpr:Ks}),dot:Vo("."),question:Vo("?",{beforeExpr:Ks}),questionDot:Vo("?."),arrow:Vo("=>",{beforeExpr:Ks}),template:Vo("template"),ellipsis:Vo("...",{beforeExpr:Ks}),backQuote:Vo("`",{startsExpr:Ya}),dollarBraceL:Vo("${",{beforeExpr:Ks,startsExpr:Ya}),templateTail:Vo("...`",{startsExpr:Ya}),templateNonTail:Vo("...${",{beforeExpr:Ks,startsExpr:Ya}),at:Vo("@"),hash:Vo("#",{startsExpr:Ya}),interpreterDirective:Vo("#!..."),eq:Vo("=",{beforeExpr:Ks,isAssign:iS}),assign:Vo("_=",{beforeExpr:Ks,isAssign:iS}),slashAssign:Vo("_=",{beforeExpr:Ks,isAssign:iS}),xorAssign:Vo("_=",{beforeExpr:Ks,isAssign:iS}),moduloAssign:Vo("_=",{beforeExpr:Ks,isAssign:iS}),incDec:Vo("++/--",{prefix:oy,postfix:ore,startsExpr:Ya}),bang:Vo("!",{beforeExpr:Ks,prefix:oy,startsExpr:Ya}),tilde:Vo("~",{beforeExpr:Ks,prefix:oy,startsExpr:Ya}),doubleCaret:Vo("^^",{startsExpr:Ya}),doubleAt:Vo("@@",{startsExpr:Ya}),pipeline:gd("|>",0),nullishCoalescing:gd("??",1),logicalOR:gd("||",1),logicalAND:gd("&&",2),bitwiseOR:gd("|",3),bitwiseXOR:gd("^",4),bitwiseAND:gd("&",5),equality:gd("==/!=/===/!==",6),lt:gd("</>/<=/>=",7),gt:gd("</>/<=/>=",7),relational:gd("</>/<=/>=",7),bitShift:gd("<</>>/>>>",8),bitShiftL:gd("<</>>/>>>",8),bitShiftR:gd("<</>>/>>>",8),plusMin:Vo("+/-",{beforeExpr:Ks,binop:9,prefix:oy,startsExpr:Ya}),modulo:Vo("%",{binop:10,startsExpr:Ya}),star:Vo("*",{binop:10}),slash:gd("/",10),exponent:Vo("**",{beforeExpr:Ks,binop:11,rightAssociative:!0}),_in:uc("in",{beforeExpr:Ks,binop:7}),_instanceof:uc("instanceof",{beforeExpr:Ks,binop:7}),_break:uc("break"),_case:uc("case",{beforeExpr:Ks}),_catch:uc("catch"),_continue:uc("continue"),_debugger:uc("debugger"),_default:uc("default",{beforeExpr:Ks}),_else:uc("else",{beforeExpr:Ks}),_finally:uc("finally"),_function:uc("function",{startsExpr:Ya}),_if:uc("if"),_return:uc("return",{beforeExpr:Ks}),_switch:uc("switch"),_throw:uc("throw",{beforeExpr:Ks,prefix:oy,startsExpr:Ya}),_try:uc("try"),_var:uc("var"),_const:uc("const"),_with:uc("with"),_new:uc("new",{beforeExpr:Ks,startsExpr:Ya}),_this:uc("this",{startsExpr:Ya}),_super:uc("super",{startsExpr:Ya}),_class:uc("class",{startsExpr:Ya}),_extends:uc("extends",{beforeExpr:Ks}),_export:uc("export"),_import:uc("import",{startsExpr:Ya}),_null:uc("null",{startsExpr:Ya}),_true:uc("true",{startsExpr:Ya}),_false:uc("false",{startsExpr:Ya}),_typeof:uc("typeof",{beforeExpr:Ks,prefix:oy,startsExpr:Ya}),_void:uc("void",{beforeExpr:Ks,prefix:oy,startsExpr:Ya}),_delete:uc("delete",{beforeExpr:Ks,prefix:oy,startsExpr:Ya}),_do:uc("do",{isLoop:tN,beforeExpr:Ks}),_for:uc("for",{isLoop:tN}),_while:uc("while",{isLoop:tN}),_as:Zs("as",{startsExpr:Ya}),_assert:Zs("assert",{startsExpr:Ya}),_async:Zs("async",{startsExpr:Ya}),_await:Zs("await",{startsExpr:Ya}),_from:Zs("from",{startsExpr:Ya}),_get:Zs("get",{startsExpr:Ya}),_let:Zs("let",{startsExpr:Ya}),_meta:Zs("meta",{startsExpr:Ya}),_of:Zs("of",{startsExpr:Ya}),_sent:Zs("sent",{startsExpr:Ya}),_set:Zs("set",{startsExpr:Ya}),_static:Zs("static",{startsExpr:Ya}),_using:Zs("using",{startsExpr:Ya}),_yield:Zs("yield",{startsExpr:Ya}),_asserts:Zs("asserts",{startsExpr:Ya}),_checks:Zs("checks",{startsExpr:Ya}),_exports:Zs("exports",{startsExpr:Ya}),_global:Zs("global",{startsExpr:Ya}),_implements:Zs("implements",{startsExpr:Ya}),_intrinsic:Zs("intrinsic",{startsExpr:Ya}),_infer:Zs("infer",{startsExpr:Ya}),_is:Zs("is",{startsExpr:Ya}),_mixins:Zs("mixins",{startsExpr:Ya}),_proto:Zs("proto",{startsExpr:Ya}),_require:Zs("require",{startsExpr:Ya}),_satisfies:Zs("satisfies",{startsExpr:Ya}),_keyof:Zs("keyof",{startsExpr:Ya}),_readonly:Zs("readonly",{startsExpr:Ya}),_unique:Zs("unique",{startsExpr:Ya}),_abstract:Zs("abstract",{startsExpr:Ya}),_declare:Zs("declare",{startsExpr:Ya}),_enum:Zs("enum",{startsExpr:Ya}),_module:Zs("module",{startsExpr:Ya}),_namespace:Zs("namespace",{startsExpr:Ya}),_interface:Zs("interface",{startsExpr:Ya}),_type:Zs("type",{startsExpr:Ya}),_opaque:Zs("opaque",{startsExpr:Ya}),name:Vo("name",{startsExpr:Ya}),string:Vo("string",{startsExpr:Ya}),num:Vo("num",{startsExpr:Ya}),bigint:Vo("bigint",{startsExpr:Ya}),decimal:Vo("decimal",{startsExpr:Ya}),regexp:Vo("regexp",{startsExpr:Ya}),privateName:Vo("#name",{startsExpr:Ya}),eof:Vo("eof"),jsxName:Vo("jsxName"),jsxText:Vo("jsxText",{beforeExpr:!0}),jsxTagStart:Vo("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Vo("jsxTagEnd"),placeholder:Vo("%%",{startsExpr:!0})};function hc(i){return i>=93&&i<=130}function cre(i){return i<=92}function ch(i){return i>=58&&i<=130}function XR(i){return i>=58&&i<=134}function ure(i){return D6[i]}function UN(i){return x6[i]}function lre(i){return i>=29&&i<=33}function FF(i){return i>=127&&i<=129}function fre(i){return i>=90&&i<=92}function E6(i){return i>=58&&i<=92}function pre(i){return i>=39&&i<=59}function dre(i){return i===34}function _re(i){return T6[i]}function mre(i){return i>=119&&i<=121}function gre(i){return i>=122&&i<=128}function my(i){return b6[i]}function fE(i){return S6[i]}function hre(i){return i===57}function OE(i){return i>=24&&i<=25}function ev(i){return tv[i]}tv[8].updateContext=i=>{i.pop()},tv[5].updateContext=tv[7].updateContext=tv[23].updateContext=i=>{i.push(du.brace)},tv[22].updateContext=i=>{i[i.length-1]===du.template?i.pop():i.push(du.template)},tv[140].updateContext=i=>{i.push(du.j_expr,du.j_oTag)};function ME(i,t){if(i==null)return{};var n={},o=Object.keys(i),l,d;for(d=0;d<o.length;d++)l=o[d],!(t.indexOf(l)>=0)&&(n[l]=i[l]);return n}class gy{constructor(t,n,o){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=n,this.index=o}}class FE{constructor(t,n){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=n}}function yd(i,t){const{line:n,column:o,index:l}=i;return new gy(n,o+t,l+t)}var VN={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"};const vre=(i,t=i.length-1)=>({get(){return i.reduce((n,o)=>n[o],this)},set(n){i.reduce((o,l,d)=>d===t?o[l]=n:o[l],this)}}),yre=(i,t,n)=>Object.keys(n).map(o=>[o,n[o]]).filter(([,o])=>!!o).map(([o,l])=>[o,typeof l=="function"?{value:l,enumerable:!1}:typeof l.reflect=="string"?Object.assign({},l,vre(l.reflect.split("."))):l]).reduce((o,[l,d])=>Object.defineProperty(o,l,Object.assign({configurable:!0},d)),Object.assign(new i,t));var bre={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:VN.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:VN.SourceTypeModuleError}};const LF={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"},zN=({type:i,prefix:t})=>i==="UpdateExpression"?LF.UpdateExpression[String(t)]:LF[i];var Sre={AccessorIsGenerator:({kind:i})=>`A ${i}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitInUsingBinding:"'await' is not allowed to be used as a name in 'using' declarations.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:i})=>`Missing initializer in ${i} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:i})=>`\`${i}\` 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:i,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${i}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:i})=>`'${i==="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:i})=>`Unsyntactic ${i==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:i})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${i}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:i})=>`\`import()\` requires exactly ${i===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:i})=>`Expected number in radix ${i}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:i})=>`Escape sequence in keyword ${i}.`,InvalidIdentifier:({identifierName:i})=>`Invalid identifier ${i}.`,InvalidLhs:({ancestor:i})=>`Invalid left-hand side in ${zN(i)}.`,InvalidLhsBinding:({ancestor:i})=>`Binding invalid left-hand side in ${zN(i)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:i})=>`Unexpected character '${i}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:i})=>`Private name #${i} 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:i})=>`Label '${i}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:i})=>`This experimental syntax requires enabling the parser plugin: ${i.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:i})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${i.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:i})=>`Duplicate key "${i}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:i})=>`An export name cannot include a lone surrogate, found '\\u${i.toString(16)}'.`,ModuleExportUndefined:({localName:i})=>`Export '${i}' 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:i})=>`Private names are only allowed in property accesses (\`obj.#${i}\`) or in \`in\` expressions (\`#${i} in obj\`).`,PrivateNameRedeclaration:({identifierName:i})=>`Duplicate private name #${i}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:i})=>`Unexpected keyword '${i}'.`,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:i})=>`Unexpected reserved word '${i}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:i,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${i?`, expected "${i}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:i,onlyValidPropertyName:t})=>`The only valid meta property for ${i} is ${i}.${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.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:i})=>`Identifier '${i}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Dre={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:i})=>`Assigning to '${i}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:i})=>`Binding '${i}' 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."};const xre=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var Tre={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:i})=>`Invalid topic token ${i}. In order to use ${i} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${i}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:i})=>`Hack-style pipe body cannot be an unparenthesized ${zN({type:i})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const Ere=["toMessage"],Cre=["message"];function kre(i){let{toMessage:t}=i,n=ME(i,Ere);return function o({loc:l,details:d}){return yre(SyntaxError,Object.assign({},n,{loc:l}),{clone(m={}){const $=m.loc||{};return o({loc:new gy("line"in $?$.line:this.loc.line,"column"in $?$.column:this.loc.column,"index"in $?$.index:this.loc.index),details:Object.assign({},this.details,m.details)})},details:{value:d,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(m){Object.defineProperty(this,"message",{value:m})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in d&&{reflect:"details.missingPlugin",enumerable:!0}})}}function ov(i,t){if(Array.isArray(i))return o=>ov(o,i[0]);const n={};for(const o of Object.keys(i)){const l=i[o],d=typeof l=="string"?{message:()=>l}:typeof l=="function"?{message:l}:l,{message:m}=d,$=ME(d,Cre),h=typeof m=="string"?()=>m:m;n[o]=kre(Object.assign({code:VN.SyntaxError,reasonCode:o,toMessage:h},t?{syntaxPlugin:t}:{},$))}return n}const Pn=Object.assign({},ov(bre),ov(Sre),ov(Dre),ov`pipelineOperator`(Tre)),{defineProperty:Are}=Object,RF=(i,t)=>Are(i,t,{enumerable:!1,value:i[t]});function aS(i){return i.loc.start&&RF(i.loc.start,"index"),i.loc.end&&RF(i.loc.end,"index"),i}var Pre=i=>class extends i{parse(){const n=aS(super.parse());return this.options.tokens&&(n.tokens=n.tokens.map(aS)),n}parseRegExpLiteral({pattern:n,flags:o}){let l=null;try{l=new RegExp(n,o)}catch{}const d=this.estreeParseLiteral(l);return d.regex={pattern:n,flags:o},d}parseBigIntLiteral(n){let o;try{o=BigInt(n)}catch{o=null}const l=this.estreeParseLiteral(o);return l.bigint=String(l.value||n),l}parseDecimalLiteral(n){const l=this.estreeParseLiteral(null);return l.decimal=String(l.value||n),l}estreeParseLiteral(n){return this.parseLiteral(n,"Literal")}parseStringLiteral(n){return this.estreeParseLiteral(n)}parseNumericLiteral(n){return this.estreeParseLiteral(n)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(n){return this.estreeParseLiteral(n)}directiveToStmt(n){const o=n.value;delete n.value,o.type="Literal",o.raw=o.extra.raw,o.value=o.extra.expressionValue;const l=n;return l.type="ExpressionStatement",l.expression=o,l.directive=o.extra.rawValue,delete o.extra,l}initFunction(n,o){super.initFunction(n,o),n.expression=!1}checkDeclaration(n){n!=null&&this.isObjectProperty(n)?this.checkDeclaration(n.value):super.checkDeclaration(n)}getObjectOrClassMethodParams(n){return n.value.params}isValidDirective(n){var o;return n.type==="ExpressionStatement"&&n.expression.type==="Literal"&&typeof n.expression.value=="string"&&!((o=n.expression.extra)!=null&&o.parenthesized)}parseBlockBody(n,o,l,d,m){super.parseBlockBody(n,o,l,d,m);const $=n.directives.map(h=>this.directiveToStmt(h));n.body=$.concat(n.body),delete n.directives}pushClassMethod(n,o,l,d,m,$){this.parseMethod(o,l,d,m,$,"ClassMethod",!0),o.typeParameters&&(o.value.typeParameters=o.typeParameters,delete o.typeParameters),n.body.push(o)}parsePrivateName(){const n=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(n):n}convertPrivateNameToPrivateIdentifier(n){const o=super.getPrivateNameSV(n);return n=n,delete n.id,n.name=o,n.type="PrivateIdentifier",n}isPrivateName(n){return this.getPluginOption("estree","classFeatures")?n.type==="PrivateIdentifier":super.isPrivateName(n)}getPrivateNameSV(n){return this.getPluginOption("estree","classFeatures")?n.name:super.getPrivateNameSV(n)}parseLiteral(n,o){const l=super.parseLiteral(n,o);return l.raw=l.extra.raw,delete l.extra,l}parseFunctionBody(n,o,l=!1){super.parseFunctionBody(n,o,l),n.expression=n.body.type!=="BlockStatement"}parseMethod(n,o,l,d,m,$,h=!1){let e=this.startNode();return e.kind=n.kind,e=super.parseMethod(e,o,l,d,m,$,h),e.type="FunctionExpression",delete e.kind,n.value=e,$==="ClassPrivateMethod"&&(n.computed=!1),this.finishNode(n,"MethodDefinition")}parseClassProperty(...n){const o=super.parseClassProperty(...n);return this.getPluginOption("estree","classFeatures")&&(o.type="PropertyDefinition"),o}parseClassPrivateProperty(...n){const o=super.parseClassPrivateProperty(...n);return this.getPluginOption("estree","classFeatures")&&(o.type="PropertyDefinition",o.computed=!1),o}parseObjectMethod(n,o,l,d,m){const $=super.parseObjectMethod(n,o,l,d,m);return $&&($.type="Property",$.kind==="method"&&($.kind="init"),$.shorthand=!1),$}parseObjectProperty(n,o,l,d){const m=super.parseObjectProperty(n,o,l,d);return m&&(m.kind="init",m.type="Property"),m}isValidLVal(n,o,l){return n==="Property"?"value":super.isValidLVal(n,o,l)}isAssignable(n,o){return n!=null&&this.isObjectProperty(n)?this.isAssignable(n.value,o):super.isAssignable(n,o)}toAssignable(n,o=!1){if(n!=null&&this.isObjectProperty(n)){const{key:l,value:d}=n;this.isPrivateName(l)&&this.classScope.usePrivateName(this.getPrivateNameSV(l),l.loc.start),this.toAssignable(d,o)}else super.toAssignable(n,o)}toAssignableObjectExpressionProp(n,o,l){n.kind==="get"||n.kind==="set"?this.raise(Pn.PatternHasAccessor,{at:n.key}):n.method?this.raise(Pn.PatternHasMethod,{at:n.key}):super.toAssignableObjectExpressionProp(n,o,l)}finishCallExpression(n,o){const l=super.finishCallExpression(n,o);if(l.callee.type==="Import"){if(l.type="ImportExpression",l.source=l.arguments[0],this.hasPlugin("importAssertions")){var d;l.attributes=(d=l.arguments[1])!=null?d:null}delete l.arguments,delete l.callee}return l}toReferencedArguments(n){n.type!=="ImportExpression"&&super.toReferencedArguments(n)}parseExport(n,o){const l=this.state.lastTokStartLoc,d=super.parseExport(n,o);switch(d.type){case"ExportAllDeclaration":d.exported=null;break;case"ExportNamedDeclaration":d.specifiers.length===1&&d.specifiers[0].type==="ExportNamespaceSpecifier"&&(d.type="ExportAllDeclaration",d.exported=d.specifiers[0].exported,delete d.specifiers);case"ExportDefaultDeclaration":{var m;const{declaration:$}=d;($==null?void 0:$.type)==="ClassDeclaration"&&((m=$.decorators)==null?void 0:m.length)>0&&$.start===d.start&&this.resetStartLocation(d,l)}break}return d}parseSubscript(n,o,l,d){const m=super.parseSubscript(n,o,l,d);if(d.optionalChainMember){if((m.type==="OptionalMemberExpression"||m.type==="OptionalCallExpression")&&(m.type=m.type.substring(8)),d.stop){const $=this.startNodeAtNode(m);return $.expression=m,this.finishNode($,"ChainExpression")}}else(m.type==="MemberExpression"||m.type==="CallExpression")&&(m.optional=!1);return m}hasPropertyAsPrivateName(n){return n.type==="ChainExpression"&&(n=n.expression),super.hasPropertyAsPrivateName(n)}isObjectProperty(n){return n.type==="Property"&&n.kind==="init"&&!n.method}isObjectMethod(n){return n.method||n.kind==="get"||n.kind==="set"}finishNodeAt(n,o,l){return aS(super.finishNodeAt(n,o,l))}resetStartLocation(n,o){super.resetStartLocation(n,o),aS(n)}resetEndLocation(n,o=this.state.lastTokEndLoc){super.resetEndLocation(n,o),aS(n)}};let C6="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",YR="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const wre=new RegExp("["+C6+"]"),Nre=new RegExp("["+C6+YR+"]");C6=YR=null;const ZR=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Ire=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function WN(i,t){let n=65536;for(let o=0,l=t.length;o<l;o+=2){if(n+=t[o],n>i)return!1;if(n+=t[o+1],n>=i)return!0}return!1}function nv(i){return i<65?i===36:i<=90?!0:i<97?i===95:i<=122?!0:i<=65535?i>=170&&wre.test(String.fromCharCode(i)):WN(i,ZR)}function K0(i){return i<48?i===36:i<58?!0:i<65?!1:i<=90?!0:i<97?i===95:i<=122?!0:i<=65535?i>=170&&Nre.test(String.fromCharCode(i)):WN(i,ZR)||WN(i,Ire)}const k6={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"]},Ore=new Set(k6.keyword),Mre=new Set(k6.strict),Fre=new Set(k6.strictBind);function eB(i,t){return t&&i==="await"||i==="enum"}function rB(i,t){return eB(i,t)||Mre.has(i)}function tB(i){return Fre.has(i)}function nB(i,t){return rB(i,t)||tB(i)}function Lre(i){return Ore.has(i)}function Rre(i,t,n){return i===64&&t===64&&nv(n)}const Bre=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 jre(i){return Bre.has(i)}const W0=0,q0=1,sv=2,A6=4,iB=8,LE=16,aB=32,h1=64,RE=128,Q0=256,jT=q0|sv|RE|Q0,gh=1,M1=2,oB=4,S1=8,pE=16,sB=64,BE=128,qN=256,$N=512,P6=1024,HN=2048,kS=4096,zC=8192,cB=gh|M1|S1|BE|zC,X0=gh|0|S1|zC,Jre=gh|0|S1|0,jE=gh|0|oB|0,uB=gh|0|pE|0,Ure=0|M1|0|BE,Vre=0|M1|0|0,lB=gh|M1|S1|qN|zC,BF=0|P6,py=0|sB,zre=gh|0|0|sB,Wre=lB|$N,qre=0|P6,jF=0|M1|0|kS,$re=HN,JE=4,w6=2,N6=1,nN=w6|N6,Hre=w6|JE,Gre=N6|JE,Kre=w6,Qre=N6,iN=0;let I6=class{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}};class O6{constructor(t,n){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=n}get inTopLevel(){return(this.currentScope().flags&q0)>0}get inFunction(){return(this.currentVarScopeFlags()&sv)>0}get allowSuper(){return(this.currentThisScopeFlags()&LE)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&aB)>0}get inClass(){return(this.currentThisScopeFlags()&h1)>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(t&h1)>0&&(t&sv)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:n}=this.scopeStack[t];if(n&RE)return!0;if(n&(jT|h1))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&sv)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new I6(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&(sv|RE)||!this.parser.inModule&&t.flags&q0)}declareName(t,n,o){let l=this.currentScope();if(n&S1||n&pE)this.checkRedeclarationInScope(l,t,n,o),n&pE?l.functions.add(t):l.lexical.add(t),n&S1&&this.maybeExportDefined(l,t);else if(n&oB)for(let d=this.scopeStack.length-1;d>=0&&(l=this.scopeStack[d],this.checkRedeclarationInScope(l,t,n,o),l.var.add(t),this.maybeExportDefined(l,t),!(l.flags&jT));--d);this.parser.inModule&&l.flags&q0&&this.undefinedExports.delete(t)}maybeExportDefined(t,n){this.parser.inModule&&t.flags&q0&&this.undefinedExports.delete(n)}checkRedeclarationInScope(t,n,o,l){this.isRedeclaredInScope(t,n,o)&&this.parser.raise(Pn.VarRedeclaration,{at:l,identifierName:n})}isRedeclaredInScope(t,n,o){return o&gh?o&S1?t.lexical.has(n)||t.functions.has(n)||t.var.has(n):o&pE?t.lexical.has(n)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(n):t.lexical.has(n)&&!(t.flags&iB&&t.lexical.values().next().value===n)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(n):!1}checkLocalExport(t){const{name:n}=t,o=this.scopeStack[0];!o.lexical.has(n)&&!o.var.has(n)&&!o.functions.has(n)&&this.undefinedExports.set(n,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:n}=this.scopeStack[t];if(n&jT)return n}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:n}=this.scopeStack[t];if(n&(jT|h1)&&!(n&A6))return n}}}class Xre extends I6{constructor(...t){super(...t),this.declareFunctions=new Set}}class Yre extends O6{createScope(t){return new Xre(t)}declareName(t,n,o){const l=this.currentScope();if(n&HN){this.checkRedeclarationInScope(l,t,n,o),this.maybeExportDefined(l,t),l.declareFunctions.add(t);return}super.declareName(t,n,o)}isRedeclaredInScope(t,n,o){return super.isRedeclaredInScope(t,n,o)?!0:o&HN?!t.declareFunctions.has(n)&&(t.lexical.has(n)||t.functions.has(n)):!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class Zre{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{const[n,o]=t;if(!this.hasPlugin(n))return!1;const l=this.plugins.get(n);for(const d of Object.keys(o))if((l==null?void 0:l[d])!==o[d])return!1;return!0}}getPluginOption(t,n){var o;return(o=this.plugins.get(t))==null?void 0:o[n]}}function fB(i,t){i.trailingComments===void 0?i.trailingComments=t:i.trailingComments.unshift(...t)}function ete(i,t){i.leadingComments===void 0?i.leadingComments=t:i.leadingComments.unshift(...t)}function qS(i,t){i.innerComments===void 0?i.innerComments=t:i.innerComments.unshift(...t)}function oS(i,t,n){let o=null,l=t.length;for(;o===null&&l>0;)o=t[--l];o===null||o.start>n.start?qS(i,n.comments):fB(o,n.comments)}class rte extends Zre{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}processComment(t){const{commentStack:n}=this.state,o=n.length;if(o===0)return;let l=o-1;const d=n[l];d.start===t.end&&(d.leadingNode=t,l--);const{start:m}=t;for(;l>=0;l--){const $=n[l],h=$.end;if(h>m)$.containingNode=t,this.finalizeComment($),n.splice(l,1);else{h===m&&($.trailingNode=t);break}}}finalizeComment(t){const{comments:n}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&fB(t.leadingNode,n),t.trailingNode!==null&&ete(t.trailingNode,n);else{const{containingNode:o,start:l}=t;if(this.input.charCodeAt(l-1)===44)switch(o.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":oS(o,o.properties,t);break;case"CallExpression":case"OptionalCallExpression":oS(o,o.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":oS(o,o.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":oS(o,o.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":oS(o,o.specifiers,t);break;default:qS(o,n)}else qS(o,n)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let n=t.length-1;n>=0;n--)this.finalizeComment(t[n]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:n}=this.state,{length:o}=n;if(o===0)return;const l=n[o-1];l.leadingNode===t&&(l.leadingNode=null)}takeSurroundingComments(t,n,o){const{commentStack:l}=this.state,d=l.length;if(d===0)return;let m=d-1;for(;m>=0;m--){const $=l[m],h=$.end;if($.start===o)$.leadingNode=t;else if(h===n)$.trailingNode=t;else if(h<n)break}}}const M6=/\r\n?|[\n\u2028\u2029]/,JT=new RegExp(M6.source,"g");function AS(i){switch(i){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const aN=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tte=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,JF=new RegExp("(?=("+tte.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function nte(i){switch(i){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}}let ite=class pB{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.comments=[],this.commentStack=[],this.pos=0,this.type=137,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[du.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}init({strictMode:t,sourceType:n,startLine:o,startColumn:l}){this.strict=t===!1?!1:t===!0?!0:n==="module",this.curLine=o,this.lineStart=-l,this.startLoc=this.endLoc=new gy(o,l,0)}curPosition(){return new gy(this.curLine,this.pos-this.lineStart,this.pos)}clone(t){const n=new pB,o=Object.keys(this);for(let l=0,d=o.length;l<d;l++){const m=o[l];let $=this[m];!t&&Array.isArray($)&&($=$.slice()),n[m]=$}return n}};var ate=function(t){return t>=48&&t<=57};const UF={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},UT={bin:i=>i===48||i===49,oct:i=>i>=48&&i<=55,dec:i=>i>=48&&i<=57,hex:i=>i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102};function VF(i,t,n,o,l,d){const m=n,$=o,h=l;let e="",c=null,P=n;const{length:T}=t;for(;;){if(n>=T){d.unterminated(m,$,h),e+=t.slice(P,n);break}const s=t.charCodeAt(n);if(ote(i,s,t,n)){e+=t.slice(P,n);break}if(s===92){e+=t.slice(P,n);const D=ste(t,n,o,l,i==="template",d);D.ch===null&&!c?c={pos:n,lineStart:o,curLine:l}:e+=D.ch,{pos:n,lineStart:o,curLine:l}=D,P=n}else s===8232||s===8233?(++n,++l,o=n):s===10||s===13?i==="template"?(e+=t.slice(P,n)+`
`,++n,s===13&&t.charCodeAt(n)===10&&++n,++l,P=o=n):d.unterminated(m,$,h):++n}return{pos:n,str:e,firstInvalidLoc:c,lineStart:o,curLine:l,containsInvalid:!!c}}function ote(i,t,n,o){return i==="template"?t===96||t===36&&n.charCodeAt(o+1)===123:t===(i==="double"?34:39)}function ste(i,t,n,o,l,d){const m=!l;t++;const $=e=>({pos:t,ch:e,lineStart:n,curLine:o}),h=i.charCodeAt(t++);switch(h){case 110:return $(`
`);case 114:return $("\r");case 120:{let e;return{code:e,pos:t}=GN(i,t,n,o,2,!1,m,d),$(e===null?null:String.fromCharCode(e))}case 117:{let e;return{code:e,pos:t}=_B(i,t,n,o,m,d),$(e===null?null:String.fromCodePoint(e))}case 116:return $(" ");case 98:return $("\b");case 118:return $("\v");case 102:return $("\f");case 13:i.charCodeAt(t)===10&&++t;case 10:n=t,++o;case 8232:case 8233:return $("");case 56:case 57:if(l)return $(null);d.strictNumericEscape(t-1,n,o);default:if(h>=48&&h<=55){const e=t-1;let P=i.slice(e,t+2).match(/^[0-7]+/)[0],T=parseInt(P,8);T>255&&(P=P.slice(0,-1),T=parseInt(P,8)),t+=P.length-1;const s=i.charCodeAt(t);if(P!=="0"||s===56||s===57){if(l)return $(null);d.strictNumericEscape(e,n,o)}return $(String.fromCharCode(T))}return $(String.fromCharCode(h))}}function GN(i,t,n,o,l,d,m,$){const h=t;let e;return{n:e,pos:t}=dB(i,t,n,o,16,l,d,!1,$,!m),e===null&&(m?$.invalidEscapeSequence(h,n,o):t=h-1),{code:e,pos:t}}function dB(i,t,n,o,l,d,m,$,h,e){const c=t,P=l===16?UF.hex:UF.decBinOct,T=l===16?UT.hex:l===10?UT.dec:l===8?UT.oct:UT.bin;let s=!1,D=0;for(let O=0,W=d??1/0;O<W;++O){const E=i.charCodeAt(t);let v;if(E===95&&$!=="bail"){const S=i.charCodeAt(t-1),te=i.charCodeAt(t+1);if($){if(Number.isNaN(te)||!T(te)||P.has(S)||P.has(te)){if(e)return{n:null,pos:t};h.unexpectedNumericSeparator(t,n,o)}}else{if(e)return{n:null,pos:t};h.numericSeparatorInEscapeSequence(t,n,o)}++t;continue}if(E>=97?v=E-97+10:E>=65?v=E-65+10:ate(E)?v=E-48:v=1/0,v>=l){if(v<=9&&e)return{n:null,pos:t};if(v<=9&&h.invalidDigit(t,n,o,l))v=0;else if(m)v=0,s=!0;else break}++t,D=D*l+v}return t===c||d!=null&&t-c!==d||s?{n:null,pos:t}:{n:D,pos:t}}function _B(i,t,n,o,l,d){const m=i.charCodeAt(t);let $;if(m===123){if(++t,{code:$,pos:t}=GN(i,t,n,o,i.indexOf("}",t)-t,!0,l,d),++t,$!==null&&$>1114111)if(l)d.invalidCodePoint(t,n,o);else return{code:null,pos:t}}else({code:$,pos:t}=GN(i,t,n,o,4,!1,l,d));return{code:$,pos:t}}const cte=["at"],ute=["at"];function sS(i,t,n){return new gy(n,i-t,i)}const lte=new Set([103,109,115,105,121,117,100,118]);let cy=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new FE(t.startLoc,t.endLoc)}};class fte extends rte{constructor(t,n){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(o,l,d,m)=>this.options.errorRecovery?(this.raise(Pn.InvalidDigit,{at:sS(o,l,d),radix:m}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Pn.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Pn.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Pn.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Pn.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(o,l,d)=>{this.recordStrictModeErrors(Pn.StrictNumericEscape,{at:sS(o,l,d)})},unterminated:(o,l,d)=>{throw this.raise(Pn.UnterminatedString,{at:sS(o-1,l,d)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Pn.StrictNumericEscape),unterminated:(o,l,d)=>{throw this.raise(Pn.UnterminatedTemplate,{at:sS(o,l,d)})}}),this.state=new ite,this.state.init(t),this.input=n,this.length=n.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new cy(this.state)),this.state.lastTokStart=this.state.start,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(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const n=this.state;return this.state=t,n}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return aN.lastIndex=t,aN.test(this.input)?aN.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(t){let n=this.input.charCodeAt(t);if((n&64512)===55296&&++t<this.input.length){const o=this.input.charCodeAt(t);(o&64512)===56320&&(n=65536+((n&1023)<<10)+(o&1023))}return n}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([n,o])=>this.raise(n,{at:o})),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(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let n;this.isLookahead||(n=this.state.curPosition());const o=this.state.pos,l=this.input.indexOf(t,o+2);if(l===-1)throw this.raise(Pn.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=l+t.length,JT.lastIndex=o+2;JT.test(this.input)&&JT.lastIndex<=l;)++this.state.curLine,this.state.lineStart=JT.lastIndex;if(this.isLookahead)return;const d={type:"CommentBlock",value:this.input.slice(o+2,l),start:o,end:l+t.length,loc:new FE(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(d),d}skipLineComment(t){const n=this.state.pos;let o;this.isLookahead||(o=this.state.curPosition());let l=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!AS(l)&&++this.state.pos<this.length;)l=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const d=this.state.pos,$={type:"CommentLine",value:this.input.slice(n+t,d),start:n,end:d,loc:new FE(o,this.state.curPosition())};return this.options.tokens&&this.pushToken($),$}skipSpace(){const t=this.state.pos,n=[];e:for(;this.state.pos<this.length;){const o=this.input.charCodeAt(this.state.pos);switch(o){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:{const l=this.skipBlockComment("*/");l!==void 0&&(this.addComment(l),this.options.attachComment&&n.push(l));break}case 47:{const l=this.skipLineComment(2);l!==void 0&&(this.addComment(l),this.options.attachComment&&n.push(l));break}default:break e}break;default:if(nte(o))++this.state.pos;else if(o===45&&!this.inModule&&this.options.annexB){const l=this.state.pos;if(this.input.charCodeAt(l+1)===45&&this.input.charCodeAt(l+2)===62&&(t===0||this.state.lineStart>t)){const d=this.skipLineComment(3);d!==void 0&&(this.addComment(d),this.options.attachComment&&n.push(d))}else break e}else if(o===60&&!this.inModule&&this.options.annexB){const l=this.state.pos;if(this.input.charCodeAt(l+1)===33&&this.input.charCodeAt(l+2)===45&&this.input.charCodeAt(l+3)===45){const d=this.skipLineComment(4);d!==void 0&&(this.addComment(d),this.options.attachComment&&n.push(d))}else break e}else break e}}if(n.length>0){const o=this.state.pos,l={start:t,end:o,comments:n,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(l)}}finishToken(t,n){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const o=this.state.type;this.state.type=t,this.state.value=n,this.isLookahead||this.updateContext(o)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const t=this.state.pos+1,n=this.codePointAtPos(t);if(n>=48&&n<=57)throw this.raise(Pn.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(n===123||n===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(n===123?Pn.RecordExpressionHashIncorrectStartSyntaxType:Pn.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,n===123?this.finishToken(7):this.finishToken(1)}else nv(n)?(++this.state.pos,this.finishToken(136,this.readWord1(n))):n===92?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const 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;const n=this.state.pos;for(this.state.pos+=1;!AS(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const o=this.input.slice(n+2,this.state.pos);return this.finishToken(28,o),!0}readToken_mult_modulo(t){let n=t===42?55:54,o=1,l=this.input.charCodeAt(this.state.pos+1);t===42&&l===42&&(o++,l=this.input.charCodeAt(this.state.pos+2),n=57),l===61&&!this.state.inType&&(o++,n=t===37?33:30),this.finishOp(n,o)}readToken_pipe_amp(t){const n=this.input.charCodeAt(this.state.pos+1);if(n===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(n===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&n===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Pn.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&n===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Pn.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(4);return}}if(n===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){const 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){const n=this.input.charCodeAt(this.state.pos+1);if(n===t){this.finishOp(34,2);return}n===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){const{pos:t}=this.state,n=this.input.charCodeAt(t+1);if(n===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(n===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:t}=this.state,n=this.input.charCodeAt(t+1);if(n===62){const o=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+o)===61){this.finishOp(30,o+1);return}this.finishOp(52,o);return}if(n===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){const n=this.input.charCodeAt(this.state.pos+1);if(n===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&n===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),n=this.input.charCodeAt(this.state.pos+2);t===63?n===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(n>=48&&n<=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:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Pn.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Pn.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++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:{const n=this.input.charCodeAt(this.state.pos+1);if(n===120||n===88){this.readRadixNumber(16);return}if(n===111||n===79){this.readRadixNumber(8);return}if(n===98||n===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(nv(t)){this.readWord(t);return}}throw this.raise(Pn.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(t)})}finishOp(t,n){const o=this.input.slice(this.state.pos,this.state.pos+n);this.state.pos+=n,this.finishToken(t,o)}readRegexp(){const t=this.state.startLoc,n=this.state.start+1;let o,l,{pos:d}=this.state;for(;;++d){if(d>=this.length)throw this.raise(Pn.UnterminatedRegExp,{at:yd(t,1)});const e=this.input.charCodeAt(d);if(AS(e))throw this.raise(Pn.UnterminatedRegExp,{at:yd(t,1)});if(o)o=!1;else{if(e===91)l=!0;else if(e===93&&l)l=!1;else if(e===47&&!l)break;o=e===92}}const m=this.input.slice(n,d);++d;let $="";const h=()=>yd(t,d+2-n);for(;d<this.length;){const e=this.codePointAtPos(d),c=String.fromCharCode(e);if(lte.has(e))e===118?(this.expectPlugin("regexpUnicodeSets",h()),$.includes("u")&&this.raise(Pn.IncompatibleRegExpUVFlags,{at:h()})):e===117&&$.includes("v")&&this.raise(Pn.IncompatibleRegExpUVFlags,{at:h()}),$.includes(c)&&this.raise(Pn.DuplicateRegExpFlags,{at:h()});else if(K0(e)||e===92)this.raise(Pn.MalformedRegExpFlags,{at:h()});else break;++d,$+=c}this.state.pos=d,this.finishToken(135,{pattern:m,flags:$})}readInt(t,n,o=!1,l=!0){const{n:d,pos:m}=dB(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,n,o,l,this.errorHandlers_readInt,!1);return this.state.pos=m,d}readRadixNumber(t){const n=this.state.curPosition();let o=!1;this.state.pos+=2;const l=this.readInt(t);l==null&&this.raise(Pn.InvalidDigit,{at:yd(n,2),radix:t});const d=this.input.charCodeAt(this.state.pos);if(d===110)++this.state.pos,o=!0;else if(d===109)throw this.raise(Pn.InvalidDecimal,{at:n});if(nv(this.codePointAtPos(this.state.pos)))throw this.raise(Pn.NumberIdentifier,{at:this.state.curPosition()});if(o){const m=this.input.slice(n.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,m);return}this.finishToken(132,l)}readNumber(t){const n=this.state.pos,o=this.state.curPosition();let l=!1,d=!1,m=!1,$=!1,h=!1;!t&&this.readInt(10)===null&&this.raise(Pn.InvalidNumber,{at:this.state.curPosition()});const e=this.state.pos-n>=2&&this.input.charCodeAt(n)===48;if(e){const s=this.input.slice(n,this.state.pos);if(this.recordStrictModeErrors(Pn.StrictOctalLiteral,{at:o}),!this.state.strict){const D=s.indexOf("_");D>0&&this.raise(Pn.ZeroDigitNumericSeparator,{at:yd(o,D)})}h=e&&!/[89]/.test(s)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!h&&(++this.state.pos,this.readInt(10),l=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!h&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(Pn.InvalidOrMissingExponent,{at:o}),l=!0,$=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((l||e)&&this.raise(Pn.InvalidBigIntLiteral,{at:o}),++this.state.pos,d=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),($||e)&&this.raise(Pn.InvalidDecimal,{at:o}),++this.state.pos,m=!0),nv(this.codePointAtPos(this.state.pos)))throw this.raise(Pn.NumberIdentifier,{at:this.state.curPosition()});const P=this.input.slice(n,this.state.pos).replace(/[_mn]/g,"");if(d){this.finishToken(133,P);return}if(m){this.finishToken(134,P);return}const T=h?parseInt(P,8):parseFloat(P);this.finishToken(132,T)}readCodePoint(t){const{code:n,pos:o}=_B(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=o,n}readString(t){const{str:n,pos:o,curLine:l,lineStart:d}=VF(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=o+1,this.state.lineStart=d,this.state.curLine=l,this.finishToken(131,n)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:n,firstInvalidLoc:o,pos:l,curLine:d,lineStart:m}=VF("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=l+1,this.state.lineStart=m,this.state.curLine=d,o&&(this.state.firstInvalidTemplateEscapePos=new gy(o.curLine,o.pos-o.lineStart,o.pos)),this.input.codePointAt(l)===96?this.finishToken(24,o?null:t+n+"`"):(this.state.pos++,this.finishToken(25,o?null:t+n+"${"))}recordStrictModeErrors(t,{at:n}){const o=n.index;this.state.strict&&!this.state.strictErrors.has(o)?this.raise(t,{at:n}):this.state.strictErrors.set(o,[t,n])}readWord1(t){this.state.containsEsc=!1;let n="";const o=this.state.pos;let l=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const d=this.codePointAtPos(this.state.pos);if(K0(d))this.state.pos+=d<=65535?1:2;else if(d===92){this.state.containsEsc=!0,n+=this.input.slice(l,this.state.pos);const m=this.state.curPosition(),$=this.state.pos===o?nv:K0;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(Pn.MissingUnicodeEscape,{at:this.state.curPosition()}),l=this.state.pos-1;continue}++this.state.pos;const h=this.readCodePoint(!0);h!==null&&($(h)||this.raise(Pn.EscapedCharNotAnIdentifier,{at:m}),n+=String.fromCodePoint(h)),l=this.state.pos}else break}return n+this.input.slice(l,this.state.pos)}readWord(t){const n=this.readWord1(t),o=y6.get(n);o!==void 0?this.finishToken(o,my(o)):this.finishToken(130,n)}checkKeywordEscapes(){const{type:t}=this.state;E6(t)&&this.state.containsEsc&&this.raise(Pn.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:my(t)})}raise(t,n){const{at:o}=n,l=ME(n,cte),d=o instanceof gy?o:o.loc.start,m=t({loc:d,details:l});if(!this.options.errorRecovery)throw m;return this.isLookahead||this.state.errors.push(m),m}raiseOverwrite(t,n){const{at:o}=n,l=ME(n,ute),d=o instanceof gy?o:o.loc.start,m=d.index,$=this.state.errors;for(let h=$.length-1;h>=0;h--){const e=$[h];if(e.loc.index===m)return $[h]=t({loc:d,details:l});if(e.loc.index<m)break}return this.raise(t,n)}updateContext(t){}unexpected(t,n){throw this.raise(Pn.UnexpectedToken,{expected:n?my(n):null,at:t??this.state.startLoc})}expectPlugin(t,n){if(this.hasPlugin(t))return!0;throw this.raise(Pn.MissingPlugin,{at:n??this.state.startLoc,missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(n=>this.hasPlugin(n)))throw this.raise(Pn.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:t})}errorBuilder(t){return(n,o,l)=>{this.raise(t,{at:sS(n,o,l)})}}}class pte{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class dte{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new pte)}exit(){const t=this.stack.pop(),n=this.current();for(const[o,l]of Array.from(t.undefinedPrivateNames))n?n.undefinedPrivateNames.has(o)||n.undefinedPrivateNames.set(o,l):this.parser.raise(Pn.InvalidPrivateFieldResolution,{at:l,identifierName:o})}declarePrivateName(t,n,o){const{privateNames:l,loneAccessors:d,undefinedPrivateNames:m}=this.current();let $=l.has(t);if(n&nN){const h=$&&d.get(t);if(h){const e=h&JE,c=n&JE,P=h&nN,T=n&nN;$=P===T||e!==c,$||d.delete(t)}else $||d.set(t,n)}$&&this.parser.raise(Pn.PrivateNameRedeclaration,{at:o,identifierName:t}),l.add(t),m.delete(t)}usePrivateName(t,n){let o;for(o of this.stack)if(o.privateNames.has(t))return;o?o.undefinedPrivateNames.set(t,n):this.parser.raise(Pn.InvalidPrivateFieldResolution,{at:n,identifierName:t})}}const _te=0,mB=1,F6=2,gB=3;class WC{constructor(t=_te){this.type=void 0,this.type=t}canBeArrowParameterDeclaration(){return this.type===F6||this.type===mB}isCertainlyParameterDeclaration(){return this.type===gB}}class hB extends WC{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,{at:n}){const o=n.index;this.declarationErrors.set(o,[t,n])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class mte{constructor(t){this.parser=void 0,this.stack=[new WC],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,{at:n}){const o={at:n.loc.start},{stack:l}=this;let d=l.length-1,m=l[d];for(;!m.isCertainlyParameterDeclaration();){if(m.canBeArrowParameterDeclaration())m.recordDeclarationError(t,o);else return;m=l[--d]}this.parser.raise(t,o)}recordArrowParameterBindingError(t,{at:n}){const{stack:o}=this,l=o[o.length-1],d={at:n.loc.start};if(l.isCertainlyParameterDeclaration())this.parser.raise(t,d);else if(l.canBeArrowParameterDeclaration())l.recordDeclarationError(t,d);else return}recordAsyncArrowParametersError({at:t}){const{stack:n}=this;let o=n.length-1,l=n[o];for(;l.canBeArrowParameterDeclaration();)l.type===F6&&l.recordDeclarationError(Pn.AwaitBindingIdentifier,{at:t}),l=n[--o]}validateAsPattern(){const{stack:t}=this,n=t[t.length-1];n.canBeArrowParameterDeclaration()&&n.iterateErrors(([o,l])=>{this.parser.raise(o,{at:l});let d=t.length-2,m=t[d];for(;m.canBeArrowParameterDeclaration();)m.clearDeclarationError(l.index),m=t[--d]})}}function gte(){return new WC(gB)}function hte(){return new hB(mB)}function vte(){return new hB(F6)}function vB(){return new WC}const Y0=0,yB=1,qC=2,bB=4,J0=8;class yte{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&qC)>0}get hasYield(){return(this.currentFlags()&yB)>0}get hasReturn(){return(this.currentFlags()&bB)>0}get hasIn(){return(this.currentFlags()&J0)>0}}function dE(i,t){return(i?qC:0)|(t?yB:0)}class bte extends fte{addExtra(t,n,o,l=!0){if(!t)return;const d=t.extra=t.extra||{};l?d[n]=o:Object.defineProperty(d,n,{enumerable:l,value:o})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,n){const o=t+n.length;if(this.input.slice(t,o)===n){const l=this.input.charCodeAt(o);return!(K0(l)||(l&64512)===55296)}return!1}isLookaheadContextual(t){const n=this.nextTokenStart();return this.isUnparsedContextual(n,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,n){if(!this.eatContextual(t)){if(n!=null)throw this.raise(n,{at:this.state.startLoc});this.unexpected(null,t)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return M6.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return JF.lastIndex=this.state.end,JF.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(Pn.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(t,n){this.eat(t)||this.unexpected(n,t)}tryParse(t,n=this.state.clone()){const o={node:null};try{const l=t((d=null)=>{throw o.node=d,o});if(this.state.errors.length>n.errors.length){const d=this.state;return this.state=n,this.state.tokensLength=d.tokensLength,{node:l,error:d.errors[n.errors.length],thrown:!1,aborted:!1,failState:d}}return{node:l,error:null,thrown:!1,aborted:!1,failState:null}}catch(l){const d=this.state;if(this.state=n,l instanceof SyntaxError)return{node:null,error:l,thrown:!0,aborted:!1,failState:d};if(l===o)return{node:o.node,error:null,thrown:!1,aborted:!0,failState:d};throw l}}checkExpressionErrors(t,n){if(!t)return!1;const{shorthandAssignLoc:o,doubleProtoLoc:l,privateKeyLoc:d,optionalParametersLoc:m}=t,$=!!o||!!l||!!m||!!d;if(!n)return $;o!=null&&this.raise(Pn.InvalidCoverInitializedName,{at:o}),l!=null&&this.raise(Pn.DuplicateProto,{at:l}),d!=null&&this.raise(Pn.UnexpectedPrivateField,{at:d}),m!=null&&this.unexpected(m)}isLiteralPropertyName(){return XR(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){const n=this.state.labels;this.state.labels=[];const o=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const l=this.inModule;this.inModule=t;const d=this.scope,m=this.getScopeHandler();this.scope=new m(this,t);const $=this.prodParam;this.prodParam=new yte;const h=this.classScope;this.classScope=new dte(this);const e=this.expressionScope;return this.expressionScope=new mte(this),()=>{this.state.labels=n,this.exportedIdentifiers=o,this.inModule=l,this.scope=d,this.prodParam=$,this.classScope=h,this.expressionScope=e}}enterInitialScopes(){let t=Y0;this.inModule&&(t|=qC),this.scope.enter(q0),this.prodParam.enter(t)}checkDestructuringPrivate(t){const{privateKeyLoc:n}=t;n!==null&&this.expectPlugin("destructuringPrivate",n)}}class _E{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}let UE=class{constructor(t,n,o){this.type="",this.start=n,this.end=0,this.loc=new FE(o),t!=null&&t.options.ranges&&(this.range=[n,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}};const L6=UE.prototype;L6.__clone=function(){const i=new UE(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,o=t.length;n<o;n++){const l=t[n];l!=="leadingComments"&&l!=="trailingComments"&&l!=="innerComments"&&(i[l]=this[l])}return i};function Ste(i){return mv(i)}function mv(i){const{type:t,start:n,end:o,loc:l,range:d,extra:m,name:$}=i,h=Object.create(L6);return h.type=t,h.start=n,h.end=o,h.loc=l,h.range=d,h.extra=m,h.name=$,t==="Placeholder"&&(h.expectedNode=i.expectedNode),h}function Dte(i){const{type:t,start:n,end:o,loc:l,range:d,extra:m}=i;if(t==="Placeholder")return Ste(i);const $=Object.create(L6);return $.type=t,$.start=n,$.end=o,$.loc=l,$.range=d,i.raw!==void 0?$.raw=i.raw:$.extra=m,$.value=i.value,$}class xte extends bte{startNode(){return new UE(this,this.state.start,this.state.startLoc)}startNodeAt(t){return new UE(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,n){return this.finishNodeAt(t,n,this.state.lastTokEndLoc)}finishNodeAt(t,n,o){return t.type=n,t.end=o.index,t.loc.end=o,this.options.ranges&&(t.range[1]=o.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,n){t.start=n.index,t.loc.start=n,this.options.ranges&&(t.range[0]=n.index)}resetEndLocation(t,n=this.state.lastTokEndLoc){t.end=n.index,t.loc.end=n,this.options.ranges&&(t.range[1]=n.index)}resetStartLocationFromNode(t,n){this.resetStartLocation(t,n.loc.start)}}const Tte=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Xo=ov`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:i})=>`Cannot overwrite reserved type ${i}.`,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:i,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${i} = true,\` or \`${i} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:i,enumName:t})=>`Enum member names need to be unique, but the name \`${i}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:i})=>`Enum \`${i}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:i,enumName:t})=>`Enum type \`${i}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:i})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${i}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:i,memberName:t,explicitType:n})=>`Enum \`${i}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:i,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${i}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:i,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${i}\`.`,EnumInvalidMemberName:({enumName:i,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${i}\`.`,EnumNumberMemberNotInitialized:({enumName:i,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${i}\`.`,EnumStringMemberInconsistentlyInitailized:({enumName:i})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${i}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:i})=>`Unexpected reserved type ${i}.`,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:i,suggestion:t})=>`\`declare export ${i}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Ete(i){return i.type==="DeclareExportAllDeclaration"||i.type==="DeclareExportDeclaration"&&(!i.declaration||i.declaration.type!=="TypeAlias"&&i.declaration.type!=="InterfaceDeclaration")}function oN(i){return i.importKind==="type"||i.importKind==="typeof"}function zF(i){return ch(i)&&i!==97}const Cte={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function kte(i,t){const n=[],o=[];for(let l=0;l<i.length;l++)(t(i[l],l,i)?n:o).push(i[l]);return[n,o]}const Ate=/\*?\s*@((?:no)?flow)\b/;var Pte=i=>class extends i{constructor(...n){super(...n),this.flowPragma=void 0}getScopeHandler(){return Yre}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(n,o){n!==131&&n!==13&&n!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(n,o)}addComment(n){if(this.flowPragma===void 0){const o=Ate.exec(n.value);if(o)if(o[1]==="flow")this.flowPragma="flow";else if(o[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(n)}flowParseTypeInitialiser(n){const o=this.state.inType;this.state.inType=!0,this.expect(n||14);const l=this.flowParseType();return this.state.inType=o,l}flowParsePredicate(){const n=this.startNode(),o=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>o.index+1&&this.raise(Xo.UnexpectedSpaceBetweenModuloChecks,{at:o}),this.eat(10)?(n.value=super.parseExpression(),this.expect(11),this.finishNode(n,"DeclaredPredicate")):this.finishNode(n,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const n=this.state.inType;this.state.inType=!0,this.expect(14);let o=null,l=null;return this.match(54)?(this.state.inType=n,l=this.flowParsePredicate()):(o=this.flowParseType(),this.state.inType=n,this.match(54)&&(l=this.flowParsePredicate())),[o,l]}flowParseDeclareClass(n){return this.next(),this.flowParseInterfaceish(n,!0),this.finishNode(n,"DeclareClass")}flowParseDeclareFunction(n){this.next();const o=n.id=this.parseIdentifier(),l=this.startNode(),d=this.startNode();this.match(47)?l.typeParameters=this.flowParseTypeParameterDeclaration():l.typeParameters=null,this.expect(10);const m=this.flowParseFunctionTypeParams();return l.params=m.params,l.rest=m.rest,l.this=m._this,this.expect(11),[l.returnType,n.predicate]=this.flowParseTypeAndPredicateInitialiser(),d.typeAnnotation=this.finishNode(l,"FunctionTypeAnnotation"),o.typeAnnotation=this.finishNode(d,"TypeAnnotation"),this.resetEndLocation(o),this.semicolon(),this.scope.declareName(n.id.name,$re,n.id.loc.start),this.finishNode(n,"DeclareFunction")}flowParseDeclare(n,o){if(this.match(80))return this.flowParseDeclareClass(n);if(this.match(68))return this.flowParseDeclareFunction(n);if(this.match(74))return this.flowParseDeclareVariable(n);if(this.eatContextual(125))return this.match(16)?this.flowParseDeclareModuleExports(n):(o&&this.raise(Xo.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(n));if(this.isContextual(128))return this.flowParseDeclareTypeAlias(n);if(this.isContextual(129))return this.flowParseDeclareOpaqueType(n);if(this.isContextual(127))return this.flowParseDeclareInterface(n);if(this.match(82))return this.flowParseDeclareExportDeclaration(n,o);this.unexpected()}flowParseDeclareVariable(n){return this.next(),n.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(n.id.name,jE,n.id.loc.start),this.semicolon(),this.finishNode(n,"DeclareVariable")}flowParseDeclareModule(n){this.scope.enter(W0),this.match(131)?n.id=super.parseExprAtom():n.id=this.parseIdentifier();const o=n.body=this.startNode(),l=o.body=[];for(this.expect(5);!this.match(8);){let $=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(Xo.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport($)):(this.expectContextual(123,Xo.UnsupportedStatementInDeclareModule),$=this.flowParseDeclare($,!0)),l.push($)}this.scope.exit(),this.expect(8),this.finishNode(o,"BlockStatement");let d=null,m=!1;return l.forEach($=>{Ete($)?(d==="CommonJS"&&this.raise(Xo.AmbiguousDeclareModuleKind,{at:$}),d="ES"):$.type==="DeclareModuleExports"&&(m&&this.raise(Xo.DuplicateDeclareModuleExports,{at:$}),d==="ES"&&this.raise(Xo.AmbiguousDeclareModuleKind,{at:$}),d="CommonJS",m=!0)}),n.kind=d||"CommonJS",this.finishNode(n,"DeclareModule")}flowParseDeclareExportDeclaration(n,o){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?n.declaration=this.flowParseDeclare(this.startNode()):(n.declaration=this.flowParseType(),this.semicolon()),n.default=!0,this.finishNode(n,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!o){const l=this.state.value;throw this.raise(Xo.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:l,suggestion:Cte[l]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(129))return n.declaration=this.flowParseDeclare(this.startNode()),n.default=!1,this.finishNode(n,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129))return n=this.parseExport(n,null),n.type==="ExportNamedDeclaration"&&(n.type="ExportDeclaration",n.default=!1,delete n.exportKind),n.type="Declare"+n.type,n;this.unexpected()}flowParseDeclareModuleExports(n){return this.next(),this.expectContextual(109),n.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(n,"DeclareModuleExports")}flowParseDeclareTypeAlias(n){this.next();const o=this.flowParseTypeAlias(n);return o.type="DeclareTypeAlias",o}flowParseDeclareOpaqueType(n){this.next();const o=this.flowParseOpaqueType(n,!0);return o.type="DeclareOpaqueType",o}flowParseDeclareInterface(n){return this.next(),this.flowParseInterfaceish(n,!1),this.finishNode(n,"DeclareInterface")}flowParseInterfaceish(n,o){if(n.id=this.flowParseRestrictedIdentifier(!o,!0),this.scope.declareName(n.id.name,o?uB:X0,n.id.loc.start),this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,n.extends=[],n.implements=[],n.mixins=[],this.eat(81))do n.extends.push(this.flowParseInterfaceExtends());while(!o&&this.eat(12));if(o){if(this.eatContextual(115))do n.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do n.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}n.body=this.flowParseObjectType({allowStatic:o,allowExact:!1,allowSpread:!1,allowProto:o,allowInexact:!1})}flowParseInterfaceExtends(){const n=this.startNode();return n.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,this.finishNode(n,"InterfaceExtends")}flowParseInterface(n){return this.flowParseInterfaceish(n,!1),this.finishNode(n,"InterfaceDeclaration")}checkNotUnderscore(n){n==="_"&&this.raise(Xo.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(n,o,l){Tte.has(n)&&this.raise(l?Xo.AssignReservedType:Xo.UnexpectedReservedType,{at:o,reservedType:n})}flowParseRestrictedIdentifier(n,o){return this.checkReservedType(this.state.value,this.state.startLoc,o),this.parseIdentifier(n)}flowParseTypeAlias(n){return n.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(n.id.name,X0,n.id.loc.start),this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,n.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(n,"TypeAlias")}flowParseOpaqueType(n,o){return this.expectContextual(128),n.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(n.id.name,X0,n.id.loc.start),this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,n.supertype=null,this.match(14)&&(n.supertype=this.flowParseTypeInitialiser(14)),n.impltype=null,o||(n.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(n,"OpaqueType")}flowParseTypeParameter(n=!1){const o=this.state.startLoc,l=this.startNode(),d=this.flowParseVariance(),m=this.flowParseTypeAnnotatableIdentifier();return l.name=m.name,l.variance=d,l.bound=m.typeAnnotation,this.match(29)?(this.eat(29),l.default=this.flowParseType()):n&&this.raise(Xo.MissingTypeParamDefault,{at:o}),this.finishNode(l,"TypeParameter")}flowParseTypeParameterDeclaration(){const n=this.state.inType,o=this.startNode();o.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let l=!1;do{const d=this.flowParseTypeParameter(l);o.params.push(d),d.default&&(l=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=n,this.finishNode(o,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const n=this.startNode(),o=this.state.inType;n.params=[],this.state.inType=!0,this.expect(47);const l=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)n.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=l,this.expect(48),this.state.inType=o,this.finishNode(n,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const n=this.startNode(),o=this.state.inType;for(n.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)n.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=o,this.finishNode(n,"TypeParameterInstantiation")}flowParseInterfaceType(){const n=this.startNode();if(this.expectContextual(127),n.extends=[],this.eat(81))do n.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return n.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(n,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(n,o,l){return n.static=o,this.lookahead().type===14?(n.id=this.flowParseObjectPropertyKey(),n.key=this.flowParseTypeInitialiser()):(n.id=null,n.key=this.flowParseType()),this.expect(3),n.value=this.flowParseTypeInitialiser(),n.variance=l,this.finishNode(n,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(n,o){return n.static=o,n.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(n.method=!0,n.optional=!1,n.value=this.flowParseObjectTypeMethodish(this.startNodeAt(n.loc.start))):(n.method=!1,this.eat(17)&&(n.optional=!0),n.value=this.flowParseTypeInitialiser()),this.finishNode(n,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(n){for(n.params=[],n.rest=null,n.typeParameters=null,n.this=null,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(n.this=this.flowParseFunctionTypeParam(!0),n.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)n.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(n.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),n.returnType=this.flowParseTypeInitialiser(),this.finishNode(n,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(n,o){const l=this.startNode();return n.static=o,n.value=this.flowParseObjectTypeMethodish(l),this.finishNode(n,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:n,allowExact:o,allowSpread:l,allowProto:d,allowInexact:m}){const $=this.state.inType;this.state.inType=!0;const h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let e,c,P=!1;for(o&&this.match(6)?(this.expect(6),e=9,c=!0):(this.expect(5),e=8,c=!1),h.exact=c;!this.match(e);){let s=!1,D=null,O=null;const W=this.startNode();if(d&&this.isContextual(116)){const v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),D=this.state.startLoc,n=!1)}if(n&&this.isContextual(104)){const v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),s=!0)}const E=this.flowParseVariance();if(this.eat(0))D!=null&&this.unexpected(D),this.eat(0)?(E&&this.unexpected(E.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(W,s))):h.indexers.push(this.flowParseObjectTypeIndexer(W,s,E));else if(this.match(10)||this.match(47))D!=null&&this.unexpected(D),E&&this.unexpected(E.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(W,s));else{let v="init";if(this.isContextual(98)||this.isContextual(103)){const te=this.lookahead();XR(te.type)&&(v=this.state.value,this.next())}const S=this.flowParseObjectTypeProperty(W,s,D,E,v,l,m??!c);S===null?(P=!0,O=this.state.lastTokStartLoc):h.properties.push(S)}this.flowObjectTypeSemicolon(),O&&!this.match(8)&&!this.match(9)&&this.raise(Xo.UnexpectedExplicitInexactInObject,{at:O})}this.expect(e),l&&(h.inexact=P);const T=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=$,T}flowParseObjectTypeProperty(n,o,l,d,m,$,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?($?h||this.raise(Xo.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(Xo.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),d&&this.raise(Xo.InexactVariance,{at:d}),null):($||this.raise(Xo.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),l!=null&&this.unexpected(l),d&&this.raise(Xo.SpreadVariance,{at:d}),n.argument=this.flowParseType(),this.finishNode(n,"ObjectTypeSpreadProperty"));{n.key=this.flowParseObjectPropertyKey(),n.static=o,n.proto=l!=null,n.kind=m;let e=!1;return this.match(47)||this.match(10)?(n.method=!0,l!=null&&this.unexpected(l),d&&this.unexpected(d.loc.start),n.value=this.flowParseObjectTypeMethodish(this.startNodeAt(n.loc.start)),(m==="get"||m==="set")&&this.flowCheckGetterSetterParams(n),!$&&n.key.name==="constructor"&&n.value.this&&this.raise(Xo.ThisParamBannedInConstructor,{at:n.value.this})):(m!=="init"&&this.unexpected(),n.method=!1,this.eat(17)&&(e=!0),n.value=this.flowParseTypeInitialiser(),n.variance=d),n.optional=e,this.finishNode(n,"ObjectTypeProperty")}}flowCheckGetterSetterParams(n){const o=n.kind==="get"?0:1,l=n.value.params.length+(n.value.rest?1:0);n.value.this&&this.raise(n.kind==="get"?Xo.GetterMayNotHaveThisParam:Xo.SetterMayNotHaveThisParam,{at:n.value.this}),l!==o&&this.raise(n.kind==="get"?Pn.BadGetterArity:Pn.BadSetterArity,{at:n}),n.kind==="set"&&n.value.rest&&this.raise(Pn.BadSetterRestParameter,{at:n})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(n,o){var l;(l=n)!=null||(n=this.state.startLoc);let d=o||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const m=this.startNodeAt(n);m.qualification=d,m.id=this.flowParseRestrictedIdentifier(!0),d=this.finishNode(m,"QualifiedTypeIdentifier")}return d}flowParseGenericType(n,o){const l=this.startNodeAt(n);return l.typeParameters=null,l.id=this.flowParseQualifiedTypeIdentifier(n,o),this.match(47)&&(l.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(l,"GenericTypeAnnotation")}flowParseTypeofType(){const n=this.startNode();return this.expect(87),n.argument=this.flowParsePrimaryType(),this.finishNode(n,"TypeofTypeAnnotation")}flowParseTupleType(){const n=this.startNode();for(n.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(n.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(n,"TupleTypeAnnotation")}flowParseFunctionTypeParam(n){let o=null,l=!1,d=null;const m=this.startNode(),$=this.lookahead(),h=this.state.type===78;return $.type===14||$.type===17?(h&&!n&&this.raise(Xo.ThisParamMustBeFirst,{at:m}),o=this.parseIdentifier(h),this.eat(17)&&(l=!0,h&&this.raise(Xo.ThisParamMayNotBeOptional,{at:m})),d=this.flowParseTypeInitialiser()):d=this.flowParseType(),m.name=o,m.optional=l,m.typeAnnotation=d,this.finishNode(m,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(n){const o=this.startNodeAt(n.loc.start);return o.name=null,o.optional=!1,o.typeAnnotation=n,this.finishNode(o,"FunctionTypeParam")}flowParseFunctionTypeParams(n=[]){let o=null,l=null;for(this.match(78)&&(l=this.flowParseFunctionTypeParam(!0),l.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)n.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(o=this.flowParseFunctionTypeParam(!1)),{params:n,rest:o,_this:l}}flowIdentToTypeAnnotation(n,o,l){switch(l.name){case"any":return this.finishNode(o,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(o,"BooleanTypeAnnotation");case"mixed":return this.finishNode(o,"MixedTypeAnnotation");case"empty":return this.finishNode(o,"EmptyTypeAnnotation");case"number":return this.finishNode(o,"NumberTypeAnnotation");case"string":return this.finishNode(o,"StringTypeAnnotation");case"symbol":return this.finishNode(o,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(l.name),this.flowParseGenericType(n,l)}}flowParsePrimaryType(){const n=this.state.startLoc,o=this.startNode();let l,d,m=!1;const $=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,d=this.flowParseTupleType(),this.state.noAnonFunctionType=$,d;case 47:return o.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),l=this.flowParseFunctionTypeParams(),o.params=l.params,o.rest=l.rest,o.this=l._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),this.finishNode(o,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(hc(this.state.type)||this.match(78)){const h=this.lookahead().type;m=h!==17&&h!==14}else m=!0;if(m){if(this.state.noAnonFunctionType=!1,d=this.flowParseType(),this.state.noAnonFunctionType=$,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),d;this.eat(12)}return d?l=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(d)]):l=this.flowParseFunctionTypeParams(),o.params=l.params,o.rest=l.rest,o.this=l._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return o.value=this.match(85),this.next(),this.finishNode(o,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",o);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",o);throw this.raise(Xo.UnexpectedSubtractionOperand,{at:this.state.startLoc})}this.unexpected();return;case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(o,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(o,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(o,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(o,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(E6(this.state.type)){const h=my(this.state.type);return this.next(),super.createIdentifier(o,h)}else if(hc(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(n,o,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const n=this.state.startLoc;let o=this.flowParsePrimaryType(),l=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const d=this.startNodeAt(n),m=this.eat(18);l=l||m,this.expect(0),!m&&this.match(3)?(d.elementType=o,this.next(),o=this.finishNode(d,"ArrayTypeAnnotation")):(d.objectType=o,d.indexType=this.flowParseType(),this.expect(3),l?(d.optional=m,o=this.finishNode(d,"OptionalIndexedAccessType")):o=this.finishNode(d,"IndexedAccessType"))}return o}flowParsePrefixType(){const n=this.startNode();return this.eat(17)?(n.typeAnnotation=this.flowParsePrefixType(),this.finishNode(n,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const n=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const o=this.startNodeAt(n.loc.start);return o.params=[this.reinterpretTypeAsFunctionTypeParam(n)],o.rest=null,o.this=null,o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation")}return n}flowParseIntersectionType(){const n=this.startNode();this.eat(45);const o=this.flowParseAnonFunctionWithoutParens();for(n.types=[o];this.eat(45);)n.types.push(this.flowParseAnonFunctionWithoutParens());return n.types.length===1?o:this.finishNode(n,"IntersectionTypeAnnotation")}flowParseUnionType(){const n=this.startNode();this.eat(43);const o=this.flowParseIntersectionType();for(n.types=[o];this.eat(43);)n.types.push(this.flowParseIntersectionType());return n.types.length===1?o:this.finishNode(n,"UnionTypeAnnotation")}flowParseType(){const n=this.state.inType;this.state.inType=!0;const o=this.flowParseUnionType();return this.state.inType=n,o}flowParseTypeOrImplicitInstantiation(){if(this.state.type===130&&this.state.value==="_"){const n=this.state.startLoc,o=this.parseIdentifier();return this.flowParseGenericType(n,o)}else return this.flowParseType()}flowParseTypeAnnotation(){const n=this.startNode();return n.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(n,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(n){const o=n?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(o.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(o)),o}typeCastToParameter(n){return n.expression.typeAnnotation=n.typeAnnotation,this.resetEndLocation(n.expression,n.typeAnnotation.loc.end),n.expression}flowParseVariance(){let n=null;return this.match(53)?(n=this.startNode(),this.state.value==="+"?n.kind="plus":n.kind="minus",this.next(),this.finishNode(n,"Variance")):n}parseFunctionBody(n,o,l=!1){if(o){this.forwardNoArrowParamsConversionAt(n,()=>super.parseFunctionBody(n,!0,l));return}super.parseFunctionBody(n,!1,l)}parseFunctionBodyAndFinish(n,o,l=!1){if(this.match(14)){const d=this.startNode();[d.typeAnnotation,n.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.returnType=d.typeAnnotation?this.finishNode(d,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(n,o,l)}parseStatementLike(n){if(this.state.strict&&this.isContextual(127)){const l=this.lookahead();if(ch(l.type)){const d=this.startNode();return this.next(),this.flowParseInterface(d)}}else if(this.shouldParseEnums()&&this.isContextual(124)){const l=this.startNode();return this.next(),this.flowParseEnumDeclaration(l)}const o=super.parseStatementLike(n);return this.flowPragma===void 0&&!this.isValidDirective(o)&&(this.flowPragma=null),o}parseExpressionStatement(n,o,l){if(o.type==="Identifier"){if(o.name==="declare"){if(this.match(80)||hc(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(n)}else if(hc(this.state.type)){if(o.name==="interface")return this.flowParseInterface(n);if(o.name==="type")return this.flowParseTypeAlias(n);if(o.name==="opaque")return this.flowParseOpaqueType(n,!1)}}return super.parseExpressionStatement(n,o,l)}shouldParseExportDeclaration(){const{type:n}=this.state;return FF(n)||this.shouldParseEnums()&&n===124?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:n}=this.state;return FF(n)||this.shouldParseEnums()&&n===124?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){const n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}return super.parseExportDefaultExpression()}parseConditional(n,o,l){if(!this.match(17))return n;if(this.state.maybeInArrowParameters){const T=this.lookaheadCharCode();if(T===44||T===61||T===58||T===41)return this.setOptionalParametersError(l),n}this.expect(17);const d=this.state.clone(),m=this.state.noArrowAt,$=this.startNodeAt(o);let{consequent:h,failed:e}=this.tryParseConditionalConsequent(),[c,P]=this.getArrowLikeExpressions(h);if(e||P.length>0){const T=[...m];if(P.length>0){this.state=d,this.state.noArrowAt=T;for(let s=0;s<P.length;s++)T.push(P[s].start);({consequent:h,failed:e}=this.tryParseConditionalConsequent()),[c,P]=this.getArrowLikeExpressions(h)}e&&c.length>1&&this.raise(Xo.AmbiguousConditionalArrow,{at:d.startLoc}),e&&c.length===1&&(this.state=d,T.push(c[0].start),this.state.noArrowAt=T,{consequent:h,failed:e}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=m,this.expect(14),$.test=n,$.consequent=h,$.alternate=this.forwardNoArrowParamsConversionAt($,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode($,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const n=this.parseMaybeAssignAllowIn(),o=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:n,failed:o}}getArrowLikeExpressions(n,o){const l=[n],d=[];for(;l.length!==0;){const m=l.pop();m.type==="ArrowFunctionExpression"?(m.typeParameters||!m.returnType?this.finishArrowValidation(m):d.push(m),l.push(m.body)):m.type==="ConditionalExpression"&&(l.push(m.consequent),l.push(m.alternate))}return o?(d.forEach(m=>this.finishArrowValidation(m)),[d,[]]):kte(d,m=>m.params.every($=>this.isAssignable($,!0)))}finishArrowValidation(n){var o;this.toAssignableList(n.params,(o=n.extra)==null?void 0:o.trailingCommaLoc,!1),this.scope.enter(sv|A6),super.checkParams(n,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(n,o){let l;return this.state.noArrowParamsConversionAt.indexOf(n.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),l=o(),this.state.noArrowParamsConversionAt.pop()):l=o(),l}parseParenItem(n,o){if(n=super.parseParenItem(n,o),this.eat(17)&&(n.optional=!0,this.resetEndLocation(n)),this.match(14)){const l=this.startNodeAt(o);return l.expression=n,l.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(l,"TypeCastExpression")}return n}assertModuleNodeAllowed(n){n.type==="ImportDeclaration"&&(n.importKind==="type"||n.importKind==="typeof")||n.type==="ExportNamedDeclaration"&&n.exportKind==="type"||n.type==="ExportAllDeclaration"&&n.exportKind==="type"||super.assertModuleNodeAllowed(n)}parseExport(n,o){const l=super.parseExport(n,o);return(l.type==="ExportNamedDeclaration"||l.type==="ExportAllDeclaration")&&(l.exportKind=l.exportKind||"value"),l}parseExportDeclaration(n){if(this.isContextual(128)){n.exportKind="type";const o=this.startNode();return this.next(),this.match(5)?(n.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(n),null):this.flowParseTypeAlias(o)}else if(this.isContextual(129)){n.exportKind="type";const o=this.startNode();return this.next(),this.flowParseOpaqueType(o,!1)}else if(this.isContextual(127)){n.exportKind="type";const o=this.startNode();return this.next(),this.flowParseInterface(o)}else if(this.shouldParseEnums()&&this.isContextual(124)){n.exportKind="value";const o=this.startNode();return this.next(),this.flowParseEnumDeclaration(o)}else return super.parseExportDeclaration(n)}eatExportStar(n){return super.eatExportStar(n)?!0:this.isContextual(128)&&this.lookahead().type===55?(n.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(n){const{startLoc:o}=this.state,l=super.maybeParseExportNamespaceSpecifier(n);return l&&n.exportKind==="type"&&this.unexpected(o),l}parseClassId(n,o,l){super.parseClassId(n,o,l),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(n,o,l){const{startLoc:d}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(n,o))return;o.declare=!0}super.parseClassMember(n,o,l),o.declare&&(o.type!=="ClassProperty"&&o.type!=="ClassPrivateProperty"&&o.type!=="PropertyDefinition"?this.raise(Xo.DeclareClassElement,{at:d}):o.value&&this.raise(Xo.DeclareClassFieldInitializer,{at:o.value}))}isIterator(n){return n==="iterator"||n==="asyncIterator"}readIterator(){const n=super.readWord1(),o="@@"+n;(!this.isIterator(n)||!this.state.inType)&&this.raise(Pn.InvalidIdentifier,{at:this.state.curPosition(),identifierName:o}),this.finishToken(130,o)}getTokenFromCode(n){const o=this.input.charCodeAt(this.state.pos+1);n===123&&o===124?this.finishOp(6,2):this.state.inType&&(n===62||n===60)?this.finishOp(n===62?48:47,1):this.state.inType&&n===63?o===46?this.finishOp(18,2):this.finishOp(17,1):Rre(n,o,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(n)}isAssignable(n,o){return n.type==="TypeCastExpression"?this.isAssignable(n.expression,o):super.isAssignable(n,o)}toAssignable(n,o=!1){!o&&n.type==="AssignmentExpression"&&n.left.type==="TypeCastExpression"&&(n.left=this.typeCastToParameter(n.left)),super.toAssignable(n,o)}toAssignableList(n,o,l){for(let d=0;d<n.length;d++){const m=n[d];(m==null?void 0:m.type)==="TypeCastExpression"&&(n[d]=this.typeCastToParameter(m))}super.toAssignableList(n,o,l)}toReferencedList(n,o){for(let d=0;d<n.length;d++){var l;const m=n[d];m&&m.type==="TypeCastExpression"&&!((l=m.extra)!=null&&l.parenthesized)&&(n.length>1||!o)&&this.raise(Xo.TypeCastInPattern,{at:m.typeAnnotation})}return n}parseArrayLike(n,o,l,d){const m=super.parseArrayLike(n,o,l,d);return o&&!this.state.maybeInArrowParameters&&this.toReferencedList(m.elements),m}isValidLVal(n,o,l){return n==="TypeCastExpression"||super.isValidLVal(n,o,l)}parseClassProperty(n){return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(n)}parseClassPrivateProperty(n){return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(n)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(n){return!this.match(14)&&super.isNonstaticConstructor(n)}pushClassMethod(n,o,l,d,m,$){if(o.variance&&this.unexpected(o.variance.loc.start),delete o.variance,this.match(47)&&(o.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(n,o,l,d,m,$),o.params&&m){const h=o.params;h.length>0&&this.isThisParam(h[0])&&this.raise(Xo.ThisParamBannedInConstructor,{at:o})}else if(o.type==="MethodDefinition"&&m&&o.value.params){const h=o.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(Xo.ThisParamBannedInConstructor,{at:o})}}pushClassPrivateMethod(n,o,l,d){o.variance&&this.unexpected(o.variance.loc.start),delete o.variance,this.match(47)&&(o.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(n,o,l,d)}parseClassSuper(n){if(super.parseClassSuper(n),n.superClass&&this.match(47)&&(n.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();const o=n.implements=[];do{const l=this.startNode();l.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?l.typeParameters=this.flowParseTypeParameterInstantiation():l.typeParameters=null,o.push(this.finishNode(l,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(n){super.checkGetterSetterParams(n);const o=this.getObjectOrClassMethodParams(n);if(o.length>0){const l=o[0];this.isThisParam(l)&&n.kind==="get"?this.raise(Xo.GetterMayNotHaveThisParam,{at:l}):this.isThisParam(l)&&this.raise(Xo.SetterMayNotHaveThisParam,{at:l})}}parsePropertyNamePrefixOperator(n){n.variance=this.flowParseVariance()}parseObjPropValue(n,o,l,d,m,$,h){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance;let e;this.match(47)&&!$&&(e=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(n,o,l,d,m,$,h);return e&&((c.value||c).typeParameters=e),c}parseAssignableListItemTypes(n){return this.eat(17)&&(n.type!=="Identifier"&&this.raise(Xo.PatternIsOptional,{at:n}),this.isThisParam(n)&&this.raise(Xo.ThisParamMayNotBeOptional,{at:n}),n.optional=!0),this.match(14)?n.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(n)&&this.raise(Xo.ThisParamAnnotationRequired,{at:n}),this.match(29)&&this.isThisParam(n)&&this.raise(Xo.ThisParamNoDefault,{at:n}),this.resetEndLocation(n),n}parseMaybeDefault(n,o){const l=super.parseMaybeDefault(n,o);return l.type==="AssignmentPattern"&&l.typeAnnotation&&l.right.start<l.typeAnnotation.start&&this.raise(Xo.TypeBeforeInitializer,{at:l.typeAnnotation}),l}shouldParseDefaultImport(n){return oN(n)?zF(this.state.type):super.shouldParseDefaultImport(n)}checkImportReflection(n){super.checkImportReflection(n),n.module&&n.importKind!=="value"&&this.raise(Xo.ImportReflectionHasImportType,{at:n.specifiers[0].loc.start})}parseImportSpecifierLocal(n,o,l){o.local=oN(n)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),n.specifiers.push(this.finishImportSpecifier(o,l))}maybeParseDefaultImportSpecifier(n){n.importKind="value";let o=null;if(this.match(87)?o="typeof":this.isContextual(128)&&(o="type"),o){const l=this.lookahead(),{type:d}=l;o==="type"&&d===55&&this.unexpected(null,l.type),(zF(d)||d===5||d===55)&&(this.next(),n.importKind=o)}return super.maybeParseDefaultImportSpecifier(n)}parseImportSpecifier(n,o,l,d,m){const $=n.imported;let h=null;$.type==="Identifier"&&($.name==="type"?h="type":$.name==="typeof"&&(h="typeof"));let e=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const P=this.parseIdentifier(!0);h!==null&&!ch(this.state.type)?(n.imported=P,n.importKind=h,n.local=mv(P)):(n.imported=$,n.importKind=null,n.local=this.parseIdentifier())}else{if(h!==null&&ch(this.state.type))n.imported=this.parseIdentifier(!0),n.importKind=h;else{if(o)throw this.raise(Pn.ImportBindingIsString,{at:n,importName:$.value});n.imported=$,n.importKind=null}this.eatContextual(93)?n.local=this.parseIdentifier():(e=!0,n.local=mv(n.imported))}const c=oN(n);return l&&c&&this.raise(Xo.ImportTypeShorthandOnlyInPureImport,{at:n}),(l||c)&&this.checkReservedType(n.local.name,n.local.loc.start,!0),e&&!l&&!c&&this.checkReservedWord(n.local.name,n.loc.start,!0,!0),this.finishImportSpecifier(n,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(n,o){const l=n.kind;l!=="get"&&l!=="set"&&this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(n,o)}parseVarId(n,o){super.parseVarId(n,o),this.match(14)&&(n.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(n.id))}parseAsyncArrowFromCallExpression(n,o){if(this.match(14)){const l=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,n.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=l}return super.parseAsyncArrowFromCallExpression(n,o)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(n,o){var l;let d=null,m;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(d=this.state.clone(),m=this.tryParse(()=>super.parseMaybeAssign(n,o),d),!m.error)return m.node;const{context:e}=this.state,c=e[e.length-1];(c===du.j_oTag||c===du.j_expr)&&e.pop()}if((l=m)!=null&&l.error||this.match(47)){var $,h;d=d||this.state.clone();let e;const c=this.tryParse(T=>{var s;e=this.flowParseTypeParameterDeclaration();const D=this.forwardNoArrowParamsConversionAt(e,()=>{const W=super.parseMaybeAssign(n,o);return this.resetStartLocationFromNode(W,e),W});(s=D.extra)!=null&&s.parenthesized&&T();const O=this.maybeUnwrapTypeCastExpression(D);return O.type!=="ArrowFunctionExpression"&&T(),O.typeParameters=e,this.resetStartLocationFromNode(O,e),D},d);let P=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(Xo.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:e}),c.node;P=c.node}if(($=m)!=null&&$.node)return this.state=m.failState,m.node;if(P)return this.state=c.failState,P;throw(h=m)!=null&&h.thrown?m.error:c.thrown?c.error:this.raise(Xo.UnexpectedTokenAfterTypeParameter,{at:e})}return super.parseMaybeAssign(n,o)}parseArrow(n){if(this.match(14)){const o=this.tryParse(()=>{const l=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const d=this.startNode();return[d.typeAnnotation,n.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=l,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),d});if(o.thrown)return null;o.error&&(this.state=o.failState),n.returnType=o.node.typeAnnotation?this.finishNode(o.node,"TypeAnnotation"):null}return super.parseArrow(n)}shouldParseArrow(n){return this.match(14)||super.shouldParseArrow(n)}setArrowFunctionParameters(n,o){this.state.noArrowParamsConversionAt.indexOf(n.start)!==-1?n.params=o:super.setArrowFunctionParameters(n,o)}checkParams(n,o,l,d=!0){if(!(l&&this.state.noArrowParamsConversionAt.indexOf(n.start)!==-1)){for(let m=0;m<n.params.length;m++)this.isThisParam(n.params[m])&&m>0&&this.raise(Xo.ThisParamMustBeFirst,{at:n.params[m]});super.checkParams(n,o,l,d)}}parseParenAndDistinguishExpression(n){return super.parseParenAndDistinguishExpression(n&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(n,o,l){if(n.type==="Identifier"&&n.name==="async"&&this.state.noArrowAt.indexOf(o.index)!==-1){this.next();const d=this.startNodeAt(o);d.callee=n,d.arguments=super.parseCallExpressionArguments(11,!1),n=this.finishNode(d,"CallExpression")}else if(n.type==="Identifier"&&n.name==="async"&&this.match(47)){const d=this.state.clone(),m=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(o)||h(),d);if(!m.error&&!m.aborted)return m.node;const $=this.tryParse(()=>super.parseSubscripts(n,o,l),d);if($.node&&!$.error)return $.node;if(m.node)return this.state=m.failState,m.node;if($.node)return this.state=$.failState,$.node;throw m.error||$.error}return super.parseSubscripts(n,o,l)}parseSubscript(n,o,l,d){if(this.match(18)&&this.isLookaheadToken_lt()){if(d.optionalChainMember=!0,l)return d.stop=!0,n;this.next();const m=this.startNodeAt(o);return m.callee=n,m.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),m.arguments=this.parseCallExpressionArguments(11,!1),m.optional=!0,this.finishCallExpression(m,!0)}else if(!l&&this.shouldParseTypes()&&this.match(47)){const m=this.startNodeAt(o);m.callee=n;const $=this.tryParse(()=>(m.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),m.arguments=super.parseCallExpressionArguments(11,!1),d.optionalChainMember&&(m.optional=!1),this.finishCallExpression(m,d.optionalChainMember)));if($.node)return $.error&&(this.state=$.failState),$.node}return super.parseSubscript(n,o,l,d)}parseNewCallee(n){super.parseNewCallee(n);let o=null;this.shouldParseTypes()&&this.match(47)&&(o=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),n.typeArguments=o}parseAsyncArrowWithTypeParameters(n){const o=this.startNodeAt(n);if(this.parseFunctionParams(o,!1),!!this.parseArrow(o))return super.parseArrowExpression(o,void 0,!0)}readToken_mult_modulo(n){const o=this.input.charCodeAt(this.state.pos+1);if(n===42&&o===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(n)}readToken_pipe_amp(n){const o=this.input.charCodeAt(this.state.pos+1);if(n===124&&o===125){this.finishOp(9,2);return}super.readToken_pipe_amp(n)}parseTopLevel(n,o){const l=super.parseTopLevel(n,o);return this.state.hasFlowComment&&this.raise(Xo.UnterminatedFlowComment,{at:this.state.curPosition()}),l}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Xo.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();const n=this.skipFlowComment();n&&(this.state.pos+=n,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:n}=this.state;let o=2;for(;[32,9].includes(this.input.charCodeAt(n+o));)o++;const l=this.input.charCodeAt(o+n),d=this.input.charCodeAt(o+n+1);return l===58&&d===58?o+2:this.input.slice(o+n,o+n+12)==="flow-include"?o+12:l===58&&d!==58?o:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(Pn.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(n,{enumName:o,memberName:l}){this.raise(Xo.EnumBooleanMemberNotInitialized,{at:n,memberName:l,enumName:o})}flowEnumErrorInvalidMemberInitializer(n,o){return this.raise(o.explicitType?o.explicitType==="symbol"?Xo.EnumInvalidMemberInitializerSymbolType:Xo.EnumInvalidMemberInitializerPrimaryType:Xo.EnumInvalidMemberInitializerUnknownType,Object.assign({at:n},o))}flowEnumErrorNumberMemberNotInitialized(n,{enumName:o,memberName:l}){this.raise(Xo.EnumNumberMemberNotInitialized,{at:n,enumName:o,memberName:l})}flowEnumErrorStringMemberInconsistentlyInitailized(n,{enumName:o}){this.raise(Xo.EnumStringMemberInconsistentlyInitailized,{at:n,enumName:o})}flowEnumMemberInit(){const n=this.state.startLoc,o=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{const l=this.parseNumericLiteral(this.state.value);return o()?{type:"number",loc:l.loc.start,value:l}:{type:"invalid",loc:n}}case 131:{const l=this.parseStringLiteral(this.state.value);return o()?{type:"string",loc:l.loc.start,value:l}:{type:"invalid",loc:n}}case 85:case 86:{const l=this.parseBooleanLiteral(this.match(85));return o()?{type:"boolean",loc:l.loc.start,value:l}:{type:"invalid",loc:n}}default:return{type:"invalid",loc:n}}}flowEnumMemberRaw(){const n=this.state.startLoc,o=this.parseIdentifier(!0),l=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:n};return{id:o,init:l}}flowEnumCheckExplicitTypeMismatch(n,o,l){const{explicitType:d}=o;d!==null&&d!==l&&this.flowEnumErrorInvalidMemberInitializer(n,o)}flowEnumMembers({enumName:n,explicitType:o}){const l=new Set,d={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let m=!1;for(;!this.match(8);){if(this.eat(21)){m=!0;break}const $=this.startNode(),{id:h,init:e}=this.flowEnumMemberRaw(),c=h.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(Xo.EnumInvalidMemberName,{at:h,memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:n}),l.has(c)&&this.raise(Xo.EnumDuplicateMemberName,{at:h,memberName:c,enumName:n}),l.add(c);const P={enumName:n,explicitType:o,memberName:c};switch($.id=h,e.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(e.loc,P,"boolean"),$.init=e.value,d.booleanMembers.push(this.finishNode($,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(e.loc,P,"number"),$.init=e.value,d.numberMembers.push(this.finishNode($,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(e.loc,P,"string"),$.init=e.value,d.stringMembers.push(this.finishNode($,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(e.loc,P);case"none":switch(o){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(e.loc,P);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(e.loc,P);break;default:d.defaultedMembers.push(this.finishNode($,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:d,hasUnknownMembers:m}}flowEnumStringMembers(n,o,{enumName:l}){if(n.length===0)return o;if(o.length===0)return n;if(o.length>n.length){for(const d of n)this.flowEnumErrorStringMemberInconsistentlyInitailized(d,{enumName:l});return o}else{for(const d of o)this.flowEnumErrorStringMemberInconsistentlyInitailized(d,{enumName:l});return n}}flowEnumParseExplicitType({enumName:n}){if(!this.eatContextual(101))return null;if(!hc(this.state.type))throw this.raise(Xo.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:n});const{value:o}=this.state;return this.next(),o!=="boolean"&&o!=="number"&&o!=="string"&&o!=="symbol"&&this.raise(Xo.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:n,invalidEnumType:o}),o}flowEnumBody(n,o){const l=o.name,d=o.loc.start,m=this.flowEnumParseExplicitType({enumName:l});this.expect(5);const{members:$,hasUnknownMembers:h}=this.flowEnumMembers({enumName:l,explicitType:m});switch(n.hasUnknownMembers=h,m){case"boolean":return n.explicitType=!0,n.members=$.booleanMembers,this.expect(8),this.finishNode(n,"EnumBooleanBody");case"number":return n.explicitType=!0,n.members=$.numberMembers,this.expect(8),this.finishNode(n,"EnumNumberBody");case"string":return n.explicitType=!0,n.members=this.flowEnumStringMembers($.stringMembers,$.defaultedMembers,{enumName:l}),this.expect(8),this.finishNode(n,"EnumStringBody");case"symbol":return n.members=$.defaultedMembers,this.expect(8),this.finishNode(n,"EnumSymbolBody");default:{const e=()=>(n.members=[],this.expect(8),this.finishNode(n,"EnumStringBody"));n.explicitType=!1;const c=$.booleanMembers.length,P=$.numberMembers.length,T=$.stringMembers.length,s=$.defaultedMembers.length;if(!c&&!P&&!T&&!s)return e();if(!c&&!P)return n.members=this.flowEnumStringMembers($.stringMembers,$.defaultedMembers,{enumName:l}),this.expect(8),this.finishNode(n,"EnumStringBody");if(!P&&!T&&c>=s){for(const D of $.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(D.loc.start,{enumName:l,memberName:D.id.name});return n.members=$.booleanMembers,this.expect(8),this.finishNode(n,"EnumBooleanBody")}else if(!c&&!T&&P>=s){for(const D of $.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(D.loc.start,{enumName:l,memberName:D.id.name});return n.members=$.numberMembers,this.expect(8),this.finishNode(n,"EnumNumberBody")}else return this.raise(Xo.EnumInconsistentMemberValues,{at:d,enumName:l}),e()}}}flowParseEnumDeclaration(n){const o=this.parseIdentifier();return n.id=o,n.body=this.flowEnumBody(this.startNode(),o),this.finishNode(n,"EnumDeclaration")}isLookaheadToken_lt(){const n=this.nextTokenStart();if(this.input.charCodeAt(n)===60){const o=this.input.charCodeAt(n+1);return o!==60&&o!==61}return!1}maybeUnwrapTypeCastExpression(n){return n.type==="TypeCastExpression"?n.expression:n}};const wte={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},f1=ov`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:i})=>`Expected corresponding JSX closing tag for <${i}>.`,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:i,HTMLEntity:t})=>`Unexpected token \`${i}\`. Did you mean \`${t}\` or \`{'${i}'}\`?`,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 sy(i){return i?i.type==="JSXOpeningFragment"||i.type==="JSXClosingFragment":!1}function $0(i){if(i.type==="JSXIdentifier")return i.name;if(i.type==="JSXNamespacedName")return i.namespace.name+":"+i.name.name;if(i.type==="JSXMemberExpression")return $0(i.object)+"."+$0(i.property);throw new Error("Node had unexpected type: "+i.type)}var Nte=i=>class extends i{jsxReadToken(){let n="",o=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(f1.UnterminatedJsxContent,{at:this.state.startLoc});const l=this.input.charCodeAt(this.state.pos);switch(l){case 60:case 123:if(this.state.pos===this.state.start){l===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(l);return}n+=this.input.slice(o,this.state.pos),this.finishToken(139,n);return;case 38:n+=this.input.slice(o,this.state.pos),n+=this.jsxReadEntity(),o=this.state.pos;break;case 62:case 125:default:AS(l)?(n+=this.input.slice(o,this.state.pos),n+=this.jsxReadNewLine(!0),o=this.state.pos):++this.state.pos}}}jsxReadNewLine(n){const o=this.input.charCodeAt(this.state.pos);let l;return++this.state.pos,o===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,l=n?`
`:`\r
`):l=String.fromCharCode(o),++this.state.curLine,this.state.lineStart=this.state.pos,l}jsxReadString(n){let o="",l=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Pn.UnterminatedString,{at:this.state.startLoc});const d=this.input.charCodeAt(this.state.pos);if(d===n)break;d===38?(o+=this.input.slice(l,this.state.pos),o+=this.jsxReadEntity(),l=this.state.pos):AS(d)?(o+=this.input.slice(l,this.state.pos),o+=this.jsxReadNewLine(!1),l=this.state.pos):++this.state.pos}o+=this.input.slice(l,this.state.pos++),this.finishToken(131,o)}jsxReadEntity(){const n=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let o=10;this.codePointAtPos(this.state.pos)===120&&(o=16,++this.state.pos);const l=this.readInt(o,void 0,!1,"bail");if(l!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(l)}else{let o=0,l=!1;for(;o++<10&&this.state.pos<this.length&&!(l=this.codePointAtPos(this.state.pos)==59);)++this.state.pos;if(l){const d=this.input.slice(n,this.state.pos),m=wte[d];if(++this.state.pos,m)return m}}return this.state.pos=n,"&"}jsxReadWord(){let n;const o=this.state.pos;do n=this.input.charCodeAt(++this.state.pos);while(K0(n)||n===45);this.finishToken(138,this.input.slice(o,this.state.pos))}jsxParseIdentifier(){const n=this.startNode();return this.match(138)?n.name=this.state.value:E6(this.state.type)?n.name=my(this.state.type):this.unexpected(),this.next(),this.finishNode(n,"JSXIdentifier")}jsxParseNamespacedName(){const n=this.state.startLoc,o=this.jsxParseIdentifier();if(!this.eat(14))return o;const l=this.startNodeAt(n);return l.namespace=o,l.name=this.jsxParseIdentifier(),this.finishNode(l,"JSXNamespacedName")}jsxParseElementName(){const n=this.state.startLoc;let o=this.jsxParseNamespacedName();if(o.type==="JSXNamespacedName")return o;for(;this.eat(16);){const l=this.startNodeAt(n);l.object=o,l.property=this.jsxParseIdentifier(),o=this.finishNode(l,"JSXMemberExpression")}return o}jsxParseAttributeValue(){let n;switch(this.state.type){case 5:return n=this.startNode(),this.setContext(du.brace),this.next(),n=this.jsxParseExpressionContainer(n,du.j_oTag),n.expression.type==="JSXEmptyExpression"&&this.raise(f1.AttributeIsEmpty,{at:n}),n;case 140:case 131:return this.parseExprAtom();default:throw this.raise(f1.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){const n=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(n,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(n){return this.next(),n.expression=this.parseExpression(),this.setContext(du.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXSpreadChild")}jsxParseExpressionContainer(n,o){if(this.match(8))n.expression=this.jsxParseEmptyExpression();else{const l=this.parseExpression();n.expression=l}return this.setContext(o),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXExpressionContainer")}jsxParseAttribute(){const n=this.startNode();return this.match(5)?(this.setContext(du.brace),this.next(),this.expect(21),n.argument=this.parseMaybeAssignAllowIn(),this.setContext(du.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXSpreadAttribute")):(n.name=this.jsxParseNamespacedName(),n.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(n,"JSXAttribute"))}jsxParseOpeningElementAt(n){const o=this.startNodeAt(n);return this.eat(141)?this.finishNode(o,"JSXOpeningFragment"):(o.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(o))}jsxParseOpeningElementAfterName(n){const o=[];for(;!this.match(56)&&!this.match(141);)o.push(this.jsxParseAttribute());return n.attributes=o,n.selfClosing=this.eat(56),this.expect(141),this.finishNode(n,"JSXOpeningElement")}jsxParseClosingElementAt(n){const o=this.startNodeAt(n);return this.eat(141)?this.finishNode(o,"JSXClosingFragment"):(o.name=this.jsxParseElementName(),this.expect(141),this.finishNode(o,"JSXClosingElement"))}jsxParseElementAt(n){const o=this.startNodeAt(n),l=[],d=this.jsxParseOpeningElementAt(n);let m=null;if(!d.selfClosing){e:for(;;)switch(this.state.type){case 140:if(n=this.state.startLoc,this.next(),this.eat(56)){m=this.jsxParseClosingElementAt(n);break e}l.push(this.jsxParseElementAt(n));break;case 139:l.push(this.parseExprAtom());break;case 5:{const $=this.startNode();this.setContext(du.brace),this.next(),this.match(21)?l.push(this.jsxParseSpreadChild($)):l.push(this.jsxParseExpressionContainer($,du.j_expr));break}default:this.unexpected()}sy(d)&&!sy(m)&&m!==null?this.raise(f1.MissingClosingTagFragment,{at:m}):!sy(d)&&sy(m)?this.raise(f1.MissingClosingTagElement,{at:m,openingTagName:$0(d.name)}):!sy(d)&&!sy(m)&&$0(m.name)!==$0(d.name)&&this.raise(f1.MissingClosingTagElement,{at:m,openingTagName:$0(d.name)})}if(sy(d)?(o.openingFragment=d,o.closingFragment=m):(o.openingElement=d,o.closingElement=m),o.children=l,this.match(47))throw this.raise(f1.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return sy(d)?this.finishNode(o,"JSXFragment"):this.finishNode(o,"JSXElement")}jsxParseElement(){const n=this.state.startLoc;return this.next(),this.jsxParseElementAt(n)}setContext(n){const{context:o}=this.state;o[o.length-1]=n}parseExprAtom(n){return this.match(139)?this.parseLiteral(this.state.value,"JSXText"):this.match(140)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(140),this.jsxParseElement()):super.parseExprAtom(n)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(n){const o=this.curContext();if(o===du.j_expr){this.jsxReadToken();return}if(o===du.j_oTag||o===du.j_cTag){if(nv(n)){this.jsxReadWord();return}if(n===62){++this.state.pos,this.finishToken(141);return}if((n===34||n===39)&&o===du.j_oTag){this.jsxReadString(n);return}}if(n===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(140);return}super.getTokenFromCode(n)}updateContext(n){const{context:o,type:l}=this.state;if(l===56&&n===140)o.splice(-2,2,du.j_cTag),this.state.canStartJSXElement=!1;else if(l===140)o.push(du.j_oTag);else if(l===141){const d=o[o.length-1];d===du.j_oTag&&n===56||d===du.j_cTag?(o.pop(),this.state.canStartJSXElement=o[o.length-1]===du.j_expr):(this.setContext(du.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=ure(l)}};class Ite extends I6{constructor(...t){super(...t),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}}class Ote extends O6{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Ite(t)}enter(t){t==Q0&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return t==Q0&&this.importsStack.pop(),t}hasImport(t,n){const o=this.importsStack.length;if(this.importsStack[o-1].has(t))return!0;if(!n&&o>1){for(let l=0;l<o-1;l++)if(this.importsStack[l].has(t))return!0}return!1}declareName(t,n,o){if(n&kS){this.hasImport(t,!0)&&this.parser.raise(Pn.VarRedeclaration,{at:o,identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}const l=this.currentScope();if(n&P6){this.maybeExportDefined(l,t),l.exportOnlyBindings.add(t);return}super.declareName(t,n,o),n&M1&&(n&gh||(this.checkRedeclarationInScope(l,t,n,o),this.maybeExportDefined(l,t)),l.types.add(t)),n&qN&&l.enums.add(t),n&$N&&l.constEnums.add(t),n&BE&&l.classes.add(t)}isRedeclaredInScope(t,n,o){if(t.enums.has(n)){if(o&qN){const l=!!(o&$N),d=t.constEnums.has(n);return l!==d}return!0}return o&BE&&t.classes.has(n)?t.lexical.has(n)?!!(o&gh):!1:o&M1&&t.types.has(n)?!0:super.isRedeclaredInScope(t,n,o)}checkLocalExport(t){const{name:n}=t;if(this.hasImport(n))return;const o=this.scopeStack.length;for(let l=o-1;l>=0;l--){const d=this.scopeStack[l];if(d.types.has(n)||d.exportOnlyBindings.has(n))return}super.checkLocalExport(t)}}const Mte=(i,t)=>Object.hasOwnProperty.call(i,t)&&i[t],SB=i=>i.type==="ParenthesizedExpression"?SB(i.expression):i;class Fte extends xte{toAssignable(t,n=!1){var o,l;let d;switch((t.type==="ParenthesizedExpression"||(o=t.extra)!=null&&o.parenthesized)&&(d=SB(t),n?d.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(Pn.InvalidParenthesizedAssignment,{at:t}):d.type!=="MemberExpression"&&this.raise(Pn.InvalidParenthesizedAssignment,{at:t}):this.raise(Pn.InvalidParenthesizedAssignment,{at:t})),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let $=0,h=t.properties.length,e=h-1;$<h;$++){var m;const c=t.properties[$],P=$===e;this.toAssignableObjectExpressionProp(c,P,n),P&&c.type==="RestElement"&&(m=t.extra)!=null&&m.trailingCommaLoc&&this.raise(Pn.RestTrailingComma,{at:t.extra.trailingCommaLoc})}break;case"ObjectProperty":{const{key:$,value:h}=t;this.isPrivateName($)&&this.classScope.usePrivateName(this.getPrivateNameSV($),$.loc.start),this.toAssignable(h,n);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":t.type="ArrayPattern",this.toAssignableList(t.elements,(l=t.extra)==null?void 0:l.trailingCommaLoc,n);break;case"AssignmentExpression":t.operator!=="="&&this.raise(Pn.MissingEqInAssignment,{at:t.left.loc.end}),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,n);break;case"ParenthesizedExpression":this.toAssignable(d,n);break}}toAssignableObjectExpressionProp(t,n,o){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?Pn.PatternHasAccessor:Pn.PatternHasMethod,{at:t.key});else if(t.type==="SpreadElement"){t.type="RestElement";const l=t.argument;this.checkToRestConversion(l,!1),this.toAssignable(l,o),n||this.raise(Pn.RestTrailingComma,{at:t})}else this.toAssignable(t,o)}toAssignableList(t,n,o){const l=t.length-1;for(let d=0;d<=l;d++){const m=t[d];if(m){if(m.type==="SpreadElement"){m.type="RestElement";const $=m.argument;this.checkToRestConversion($,!0),this.toAssignable($,o)}else this.toAssignable(m,o);m.type==="RestElement"&&(d<l?this.raise(Pn.RestTrailingComma,{at:m}):n&&this.raise(Pn.RestTrailingComma,{at:n}))}}}isAssignable(t,n){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const o=t.properties.length-1;return t.properties.every((l,d)=>l.type!=="ObjectMethod"&&(d===o||l.type!=="SpreadElement")&&this.isAssignable(l))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(o=>o===null||this.isAssignable(o));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!n;default:return!1}}toReferencedList(t,n){return t}toReferencedListDeep(t,n){this.toReferencedList(t,n);for(const o of t)(o==null?void 0:o.type)==="ArrayExpression"&&this.toReferencedListDeep(o.elements)}parseSpread(t){const n=this.startNode();return this.next(),n.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(n,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,n,o){const l=o&1,d=[];let m=!0;for(;!this.eat(t);)if(m?m=!1:this.expect(12),l&&this.match(12))d.push(null);else{if(this.eat(t))break;if(this.match(21)){if(d.push(this.parseAssignableListItemTypes(this.parseRestBinding(),o)),!this.checkCommaAfterRest(n)){this.expect(t);break}}else{const $=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(Pn.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)$.push(this.parseDecorator());d.push(this.parseAssignableListItem(o,$))}}return d}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const t=this.startNode(),{type:n,startLoc:o}=this.state;return n===21?this.parseBindingRestProperty(t):(n===136?(this.expectPlugin("destructuringPrivate",o),this.classScope.usePrivateName(this.state.value,o),t.key=this.parsePrivateName()):this.parsePropertyName(t),t.method=!1,this.parseObjPropValue(t,o,!1,!1,!0,!1))}parseAssignableListItem(t,n){const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,t);const l=this.parseMaybeDefault(o.loc.start,o);return n.length&&(o.decorators=n),l}parseAssignableListItemTypes(t,n){return t}parseMaybeDefault(t,n){var o,l;if((o=t)!=null||(t=this.state.startLoc),n=(l=n)!=null?l:this.parseBindingAtom(),!this.eat(29))return n;const d=this.startNodeAt(t);return d.left=n,d.right=this.parseMaybeAssignAllowIn(),this.finishNode(d,"AssignmentPattern")}isValidLVal(t,n,o){return Mte({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}checkLVal(t,{in:n,binding:o=py,checkClashes:l=!1,strictModeChanged:d=!1,hasParenthesizedAncestor:m=!1}){var $;const h=t.type;if(this.isObjectMethod(t))return;if(h==="MemberExpression"){o!==py&&this.raise(Pn.InvalidPropertyBindingPattern,{at:t});return}if(h==="Identifier"){this.checkIdentifier(t,o,d);const{name:s}=t;l&&(l.has(s)?this.raise(Pn.ParamDupe,{at:t}):l.add(s));return}const e=this.isValidLVal(h,!(m||($=t.extra)!=null&&$.parenthesized)&&n.type==="AssignmentExpression",o);if(e===!0)return;if(e===!1){const s=o===py?Pn.InvalidLhs:Pn.InvalidLhsBinding;this.raise(s,{at:t,ancestor:n});return}const[c,P]=Array.isArray(e)?e:[e,h==="ParenthesizedExpression"],T=h==="ArrayPattern"||h==="ObjectPattern"||h==="ParenthesizedExpression"?{type:h}:n;for(const s of[].concat(t[c]))s&&this.checkLVal(s,{in:T,binding:o,checkClashes:l,strictModeChanged:d,hasParenthesizedAncestor:P})}checkIdentifier(t,n,o=!1){this.state.strict&&(o?nB(t.name,this.inModule):tB(t.name))&&(n===py?this.raise(Pn.StrictEvalArguments,{at:t,referenceName:t.name}):this.raise(Pn.StrictEvalArgumentsBinding,{at:t,bindingName:t.name})),n&zC&&t.name==="let"&&this.raise(Pn.LetInLexicalBinding,{at:t}),n&py||this.declareNameFromIdentifier(t,n)}declareNameFromIdentifier(t,n){this.scope.declareName(t.name,n,t.loc.start)}checkToRestConversion(t,n){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,n);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(n)break;default:this.raise(Pn.InvalidRestAssignmentPattern,{at:t})}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?Pn.RestTrailingComma:Pn.ElementAfterRest,{at:this.state.startLoc}),!0):!1}}const Lte=(i,t)=>Object.hasOwnProperty.call(i,t)&&i[t];function Rte(i){if(i==null)throw new Error(`Unexpected ${i} value.`);return i}function WF(i){if(!i)throw new Error("Assert fail")}const vo=ov`typescript`({AbstractMethodHasImplementation:({methodName:i})=>`Method '${i}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:i})=>`Property '${i}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:i})=>`'declare' is not allowed in ${i}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:i})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:i})=>`Duplicate modifier: '${i}'.`,EmptyHeritageClauseType:({token:i})=>`'${i}' 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:i})=>`'${i[0]}' modifier cannot be used with '${i[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:i})=>`Index signatures cannot have an accessibility modifier ('${i}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:i})=>`'${i}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:i})=>`'${i}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:i})=>`'${i}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:i})=>`'${i[0]}' modifier must precede '${i[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:i})=>`Private elements cannot have an accessibility modifier ('${i}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:i})=>`Single type parameter ${i} should have a trailing comma. Example usage: <${i},>.`,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:i})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${i}.`});function Bte(i){switch(i){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 qF(i){return i==="private"||i==="public"||i==="protected"}function jte(i){return i==="in"||i==="out"}var Jte=i=>class extends i{constructor(...n){super(...n),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:vo.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:vo.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:vo.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ote}tsIsIdentifier(){return hc(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(n,o){if(!hc(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;const l=this.state.value;if(n.indexOf(l)!==-1){if(o&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return l}}tsParseModifiers({allowedModifiers:n,disallowedModifiers:o,stopOnStartOfClassStaticBlock:l,errorTemplate:d=vo.InvalidModifierOnTypeMember},m){const $=(e,c,P,T)=>{c===P&&m[T]&&this.raise(vo.InvalidModifiersOrder,{at:e,orderedModifiers:[P,T]})},h=(e,c,P,T)=>{(m[P]&&c===T||m[T]&&c===P)&&this.raise(vo.IncompatibleModifiers,{at:e,modifiers:[P,T]})};for(;;){const{startLoc:e}=this.state,c=this.tsParseModifier(n.concat(o??[]),l);if(!c)break;qF(c)?m.accessibility?this.raise(vo.DuplicateAccessibilityModifier,{at:e,modifier:c}):($(e,c,c,"override"),$(e,c,c,"static"),$(e,c,c,"readonly"),m.accessibility=c):jte(c)?(m[c]&&this.raise(vo.DuplicateModifier,{at:e,modifier:c}),m[c]=!0,$(e,c,"in","out")):(Object.hasOwnProperty.call(m,c)?this.raise(vo.DuplicateModifier,{at:e,modifier:c}):($(e,c,"static","readonly"),$(e,c,"static","override"),$(e,c,"override","readonly"),$(e,c,"abstract","override"),h(e,c,"declare","override"),h(e,c,"static","abstract")),m[c]=!0),o!=null&&o.includes(c)&&this.raise(d,{at:e,modifier:c})}}tsIsListTerminator(n){switch(n){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(n,o){const l=[];for(;!this.tsIsListTerminator(n);)l.push(o());return l}tsParseDelimitedList(n,o,l){return Rte(this.tsParseDelimitedListWorker(n,o,!0,l))}tsParseDelimitedListWorker(n,o,l,d){const m=[];let $=-1;for(;!this.tsIsListTerminator(n);){$=-1;const h=o();if(h==null)return;if(m.push(h),this.eat(12)){$=this.state.lastTokStart;continue}if(this.tsIsListTerminator(n))break;l&&this.expect(12);return}return d&&(d.value=$),m}tsParseBracketedList(n,o,l,d,m){d||(l?this.expect(0):this.expect(47));const $=this.tsParseDelimitedList(n,o,m);return l?this.expect(3):this.expect(48),$}tsParseImportType(){const n=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(vo.UnsupportedImportTypeArgument,{at:this.state.startLoc}),n.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(n.qualifier=this.tsParseEntityName()),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSImportType")}tsParseEntityName(n=!0){let o=this.parseIdentifier(n);for(;this.eat(16);){const l=this.startNodeAtNode(o);l.left=o,l.right=this.parseIdentifier(n),o=this.finishNode(l,"TSQualifiedName")}return o}tsParseTypeReference(){const n=this.startNode();return n.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSTypeReference")}tsParseThisTypePredicate(n){this.next();const o=this.startNodeAtNode(n);return o.parameterName=n,o.typeAnnotation=this.tsParseTypeAnnotation(!1),o.asserts=!1,this.finishNode(o,"TSTypePredicate")}tsParseThisTypeNode(){const n=this.startNode();return this.next(),this.finishNode(n,"TSThisType")}tsParseTypeQuery(){const n=this.startNode();return this.expect(87),this.match(83)?n.exprName=this.tsParseImportType():n.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSTypeQuery")}tsParseTypeParameter(n){const o=this.startNode();return n(o),o.name=this.tsParseTypeParameterName(),o.constraint=this.tsEatThenParseType(81),o.default=this.tsEatThenParseType(29),this.finishNode(o,"TSTypeParameter")}tsTryParseTypeParameters(n){if(this.match(47))return this.tsParseTypeParameters(n)}tsParseTypeParameters(n){const o=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();const l={value:-1};return o.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,n),!1,!0,l),o.params.length===0&&this.raise(vo.EmptyTypeParameters,{at:o}),l.value!==-1&&this.addExtra(o,"trailingComma",l.value),this.finishNode(o,"TSTypeParameterDeclaration")}tsFillSignature(n,o){const l=n===19,d="parameters",m="typeAnnotation";o.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),o[d]=this.tsParseBindingListForSignature(),l?o[m]=this.tsParseTypeOrTypePredicateAnnotation(n):this.match(n)&&(o[m]=this.tsParseTypeOrTypePredicateAnnotation(n))}tsParseBindingListForSignature(){return super.parseBindingList(11,41,2).map(n=>(n.type!=="Identifier"&&n.type!=="RestElement"&&n.type!=="ObjectPattern"&&n.type!=="ArrayPattern"&&this.raise(vo.UnsupportedSignatureParameterKind,{at:n,type:n.type}),n))}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(n,o){return this.tsFillSignature(14,o),this.tsParseTypeMemberSemicolon(),this.finishNode(o,n)}tsIsUnambiguouslyIndexSignature(){return this.next(),hc(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(n){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);const o=this.parseIdentifier();o.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(o),this.expect(3),n.parameters=[o];const l=this.tsTryParseTypeAnnotation();return l&&(n.typeAnnotation=l),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSIndexSignature")}tsParsePropertyOrMethodSignature(n,o){this.eat(17)&&(n.optional=!0);const l=n;if(this.match(10)||this.match(47)){o&&this.raise(vo.ReadonlyForMethodSignature,{at:n});const d=l;d.kind&&this.match(47)&&this.raise(vo.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,d),this.tsParseTypeMemberSemicolon();const m="parameters",$="typeAnnotation";if(d.kind==="get")d[m].length>0&&(this.raise(Pn.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(d[m][0])&&this.raise(vo.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(d.kind==="set"){if(d[m].length!==1)this.raise(Pn.BadSetterArity,{at:this.state.curPosition()});else{const h=d[m][0];this.isThisParam(h)&&this.raise(vo.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),h.type==="Identifier"&&h.optional&&this.raise(vo.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),h.type==="RestElement"&&this.raise(vo.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}d[$]&&this.raise(vo.SetAccesorCannotHaveReturnType,{at:d[$]})}else d.kind="method";return this.finishNode(d,"TSMethodSignature")}else{const d=l;o&&(d.readonly=!0);const m=this.tsTryParseTypeAnnotation();return m&&(d.typeAnnotation=m),this.tsParseTypeMemberSemicolon(),this.finishNode(d,"TSPropertySignature")}}tsParseTypeMember(){const n=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",n);if(this.match(77)){const l=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",n):(n.key=this.createIdentifier(l,"new"),this.tsParsePropertyOrMethodSignature(n,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},n);const o=this.tsTryParseIndexSignature(n);return o||(super.parsePropertyName(n),!n.computed&&n.key.type==="Identifier"&&(n.key.name==="get"||n.key.name==="set")&&this.tsTokenCanFollowModifier()&&(n.kind=n.key.name,super.parsePropertyName(n)),this.tsParsePropertyOrMethodSignature(n,!!n.readonly))}tsParseTypeLiteral(){const n=this.startNode();return n.members=this.tsParseObjectTypeMembers(),this.finishNode(n,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const n=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),n}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){const n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsExpectThenParseType(58),this.finishNode(n,"TSTypeParameter")}tsParseMappedType(){const n=this.startNode();return this.expect(5),this.match(53)?(n.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(n.readonly=!0),this.expect(0),n.typeParameter=this.tsParseMappedTypeParameter(),n.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(n.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(n.optional=!0),n.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(n,"TSMappedType")}tsParseTupleType(){const n=this.startNode();n.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let o=!1,l=null;return n.elementTypes.forEach(d=>{var m;const{type:$}=d;o&&$!=="TSRestType"&&$!=="TSOptionalType"&&!($==="TSNamedTupleMember"&&d.optional)&&this.raise(vo.OptionalTypeBeforeRequired,{at:d}),o||(o=$==="TSNamedTupleMember"&&d.optional||$==="TSOptionalType");let h=$;$==="TSRestType"&&(d=d.typeAnnotation,h=d.type);const e=h==="TSNamedTupleMember";(m=l)!=null||(l=e),l!==e&&this.raise(vo.MixedLabeledAndUnlabeledElements,{at:d})}),this.finishNode(n,"TSTupleType")}tsParseTupleElementType(){const{startLoc:n}=this.state,o=this.eat(21);let l,d,m,$;const e=ch(this.state.type)?this.lookaheadCharCode():null;if(e===58)l=!0,m=!1,d=this.parseIdentifier(!0),this.expect(14),$=this.tsParseType();else if(e===63){m=!0;const c=this.state.startLoc,P=this.state.value,T=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(l=!0,d=this.createIdentifier(this.startNodeAt(c),P),this.expect(17),this.expect(14),$=this.tsParseType()):(l=!1,$=T,this.expect(17))}else $=this.tsParseType(),m=this.eat(17),l=this.eat(14);if(l){let c;d?(c=this.startNodeAtNode(d),c.optional=m,c.label=d,c.elementType=$,this.eat(17)&&(c.optional=!0,this.raise(vo.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(c=this.startNodeAtNode($),c.optional=m,this.raise(vo.InvalidTupleMemberLabel,{at:$}),c.label=$,c.elementType=this.tsParseType()),$=this.finishNode(c,"TSNamedTupleMember")}else if(m){const c=this.startNodeAtNode($);c.typeAnnotation=$,$=this.finishNode(c,"TSOptionalType")}if(o){const c=this.startNodeAt(n);c.typeAnnotation=$,$=this.finishNode(c,"TSRestType")}return $}tsParseParenthesizedType(){const n=this.startNode();return this.expect(10),n.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(n,"TSParenthesizedType")}tsParseFunctionOrConstructorType(n,o){const l=this.startNode();return n==="TSConstructorType"&&(l.abstract=!!o,o&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,l)),this.finishNode(l,n)}tsParseLiteralTypeNode(){const n=this.startNode();return n.literal=(()=>{switch(this.state.type){case 132:case 133:case 131:case 85:case 86:return super.parseExprAtom();default:this.unexpected()}})(),this.finishNode(n,"TSLiteralType")}tsParseTemplateLiteralType(){const n=this.startNode();return n.literal=super.parseTemplate(!1),this.finishNode(n,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const n=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(n):n}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const n=this.startNode(),o=this.lookahead();return o.type!==132&&o.type!==133&&this.unexpected(),n.literal=this.parseMaybeUnary(),this.finishNode(n,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:n}=this.state;if(hc(n)||n===88||n===84){const o=n===88?"TSVoidKeyword":n===84?"TSNullKeyword":Bte(this.state.value);if(o!==void 0&&this.lookaheadCharCode()!==46){const l=this.startNode();return this.next(),this.finishNode(l,o)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let n=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const o=this.startNodeAtNode(n);o.elementType=n,this.expect(3),n=this.finishNode(o,"TSArrayType")}else{const o=this.startNodeAtNode(n);o.objectType=n,o.indexType=this.tsParseType(),this.expect(3),n=this.finishNode(o,"TSIndexedAccessType")}return n}tsParseTypeOperator(){const n=this.startNode(),o=this.state.value;return this.next(),n.operator=o,n.typeAnnotation=this.tsParseTypeOperatorOrHigher(),o==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(n),this.finishNode(n,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(n){switch(n.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(vo.UnexpectedReadonly,{at:n})}}tsParseInferType(){const n=this.startNode();this.expectContextual(113);const o=this.startNode();return o.name=this.tsParseTypeParameterName(),o.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),n.typeParameter=this.finishNode(o,"TSTypeParameter"),this.finishNode(n,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const n=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return n}}tsParseTypeOperatorOrHigher(){return mre(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(n,o,l){const d=this.startNode(),m=this.eat(l),$=[];do $.push(o());while(this.eat(l));return $.length===1&&!m?$[0]:(d.types=$,this.finishNode(d,n))}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(hc(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:n}=this.state,o=n.length;try{return this.parseObjectLike(8,!0),n.length===o}catch{return!1}}if(this.match(0)){this.next();const{errors:n}=this.state,o=n.length;try{return super.parseBindingList(3,93,1),n.length===o}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(n){return this.tsInType(()=>{const o=this.startNode();this.expect(n);const l=this.startNode(),d=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(d&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(l.parameterName=h,l.asserts=!0,l.typeAnnotation=null,h=this.finishNode(l,"TSTypePredicate")):(this.resetStartLocationFromNode(h,l),h.asserts=!0),o.typeAnnotation=h,this.finishNode(o,"TSTypeAnnotation")}const m=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!m)return d?(l.parameterName=this.parseIdentifier(),l.asserts=d,l.typeAnnotation=null,o.typeAnnotation=this.finishNode(l,"TSTypePredicate"),this.finishNode(o,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,o);const $=this.tsParseTypeAnnotation(!1);return l.parameterName=m,l.typeAnnotation=$,l.asserts=d,o.typeAnnotation=this.finishNode(l,"TSTypePredicate"),this.finishNode(o,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const n=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),n}tsParseTypePredicateAsserts(){if(this.state.type!==107)return!1;const n=this.state.containsEsc;return this.next(),!hc(this.state.type)&&!this.match(78)?!1:(n&&this.raise(Pn.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(n=!0,o=this.startNode()){return this.tsInType(()=>{n&&this.expect(14),o.typeAnnotation=this.tsParseType()}),this.finishNode(o,"TSTypeAnnotation")}tsParseType(){WF(this.state.inType);const n=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return n;const o=this.startNodeAtNode(n);return o.checkType=n,o.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),o.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),o.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(o,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&this.lookahead().type===77}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(vo.ReservedTypeAssertion,{at:this.state.startLoc});const n=this.startNode();return n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),n.expression=this.parseMaybeUnary(),this.finishNode(n,"TSTypeAssertion")}tsParseHeritageClause(n){const o=this.state.startLoc,l=this.tsParseDelimitedList("HeritageClauseElement",()=>{const d=this.startNode();return d.expression=this.tsParseEntityName(),this.match(47)&&(d.typeParameters=this.tsParseTypeArguments()),this.finishNode(d,"TSExpressionWithTypeArguments")});return l.length||this.raise(vo.EmptyHeritageClauseType,{at:o,token:n}),l}tsParseInterfaceDeclaration(n,o={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(127),o.declare&&(n.declare=!0),hc(this.state.type)?(n.id=this.parseIdentifier(),this.checkIdentifier(n.id,Ure)):(n.id=null,this.raise(vo.MissingInterfaceName,{at:this.state.startLoc})),n.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(n.extends=this.tsParseHeritageClause("extends"));const l=this.startNode();return l.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),n.body=this.finishNode(l,"TSInterfaceBody"),this.finishNode(n,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(n){return n.id=this.parseIdentifier(),this.checkIdentifier(n.id,Vre),n.typeAnnotation=this.tsInType(()=>{if(n.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&this.lookahead().type!==16){const o=this.startNode();return this.next(),this.finishNode(o,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(n,"TSTypeAliasDeclaration")}tsInNoContext(n){const o=this.state.context;this.state.context=[o[0]];try{return n()}finally{this.state.context=o}}tsInType(n){const o=this.state.inType;this.state.inType=!0;try{return n()}finally{this.state.inType=o}}tsInDisallowConditionalTypesContext(n){const o=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return n()}finally{this.state.inDisallowConditionalTypesContext=o}}tsInAllowConditionalTypesContext(n){const o=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return n()}finally{this.state.inDisallowConditionalTypesContext=o}}tsEatThenParseType(n){return this.match(n)?this.tsNextThenParseType():void 0}tsExpectThenParseType(n){return this.tsDoThenParseType(()=>this.expect(n))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(n){return this.tsInType(()=>(n(),this.tsParseType()))}tsParseEnumMember(){const n=this.startNode();return n.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(n.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(n,"TSEnumMember")}tsParseEnumDeclaration(n,o={}){return o.const&&(n.const=!0),o.declare&&(n.declare=!0),this.expectContextual(124),n.id=this.parseIdentifier(),this.checkIdentifier(n.id,n.const?Wre:lB),this.expect(5),n.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(n,"TSEnumDeclaration")}tsParseModuleBlock(){const n=this.startNode();return this.scope.enter(W0),this.expect(5),super.parseBlockOrModuleBlockBody(n.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(n,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(n,o=!1){if(n.id=this.parseIdentifier(),o||this.checkIdentifier(n.id,qre),this.eat(16)){const l=this.startNode();this.tsParseModuleOrNamespaceDeclaration(l,!0),n.body=l}else this.scope.enter(Q0),this.prodParam.enter(Y0),n.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(n,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(n){return this.isContextual(110)?(n.global=!0,n.id=this.parseIdentifier()):this.match(131)?n.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(Q0),this.prodParam.enter(Y0),n.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(n,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(n,o){n.isExport=o||!1,n.id=this.parseIdentifier(),this.checkIdentifier(n.id,kS),this.expect(29);const l=this.tsParseModuleReference();return n.importKind==="type"&&l.type!=="TSExternalModuleReference"&&this.raise(vo.ImportAliasHasImportType,{at:l}),n.moduleReference=l,this.semicolon(),this.finishNode(n,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const n=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),n.expression=super.parseExprAtom(),this.expect(11),this.finishNode(n,"TSExternalModuleReference")}tsLookAhead(n){const o=this.state.clone(),l=n();return this.state=o,l}tsTryParseAndCatch(n){const o=this.tryParse(l=>n()||l());if(!(o.aborted||!o.node))return o.error&&(this.state=o.failState),o.node}tsTryParse(n){const o=this.state.clone(),l=n();if(l!==void 0&&l!==!1)return l;this.state=o}tsTryParseDeclare(n){if(this.isLineTerminator())return;let o=this.state.type,l;return this.isContextual(99)&&(o=74,l="let"),this.tsInAmbientContext(()=>{if(o===68)return n.declare=!0,super.parseFunctionStatement(n,!1,!1);if(o===80)return n.declare=!0,this.parseClass(n,!0,!1);if(o===124)return this.tsParseEnumDeclaration(n,{declare:!0});if(o===110)return this.tsParseAmbientExternalModuleDeclaration(n);if(o===75||o===74)return!this.match(75)||!this.isLookaheadContextual("enum")?(n.declare=!0,this.parseVarStatement(n,l||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(n,{const:!0,declare:!0}));if(o===127){const d=this.tsParseInterfaceDeclaration(n,{declare:!0});if(d)return d}if(hc(o))return this.tsParseDeclaration(n,this.state.value,!0,null)})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(n,o,l){switch(o.name){case"declare":{const d=this.tsTryParseDeclare(n);if(d)return d.declare=!0,d;break}case"global":if(this.match(5)){this.scope.enter(Q0),this.prodParam.enter(Y0);const d=n;return d.global=!0,d.id=o,d.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(d,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(n,o.name,!1,l)}}tsParseDeclaration(n,o,l,d){switch(o){case"abstract":if(this.tsCheckLineTerminator(l)&&(this.match(80)||hc(this.state.type)))return this.tsParseAbstractDeclaration(n,d);break;case"module":if(this.tsCheckLineTerminator(l)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(n);if(hc(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(n)}break;case"namespace":if(this.tsCheckLineTerminator(l)&&hc(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(n);break;case"type":if(this.tsCheckLineTerminator(l)&&hc(this.state.type))return this.tsParseTypeAliasDeclaration(n);break}}tsCheckLineTerminator(n){return n?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(n){if(!this.match(47))return;const o=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const l=this.tsTryParseAndCatch(()=>{const d=this.startNodeAt(n);return d.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(d),d.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),d});if(this.state.maybeInArrowParameters=o,!!l)return super.parseArrowExpression(l,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){const n=this.startNode();return n.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),n.params.length===0&&this.raise(vo.EmptyTypeArguments,{at:n}),this.expect(48),this.finishNode(n,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return gre(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(n,o){const l=this.state.startLoc,d={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},d);const m=d.accessibility,$=d.override,h=d.readonly;!(n&4)&&(m||h||$)&&this.raise(vo.UnexpectedParameterModifier,{at:l});const e=this.parseMaybeDefault();this.parseAssignableListItemTypes(e,n);const c=this.parseMaybeDefault(e.loc.start,e);if(m||h||$){const P=this.startNodeAt(l);return o.length&&(P.decorators=o),m&&(P.accessibility=m),h&&(P.readonly=h),$&&(P.override=$),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(vo.UnsupportedParameterPropertyKind,{at:P}),P.parameter=c,this.finishNode(P,"TSParameterProperty")}return o.length&&(e.decorators=o),c}isSimpleParameter(n){return n.type==="TSParameterProperty"&&super.isSimpleParameter(n.parameter)||super.isSimpleParameter(n)}tsDisallowOptionalPattern(n){for(const o of n.params)o.type!=="Identifier"&&o.optional&&!this.state.isAmbientContext&&this.raise(vo.PatternIsOptional,{at:o})}setArrowFunctionParameters(n,o,l){super.setArrowFunctionParameters(n,o,l),this.tsDisallowOptionalPattern(n)}parseFunctionBodyAndFinish(n,o,l=!1){this.match(14)&&(n.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const d=o==="FunctionDeclaration"?"TSDeclareFunction":o==="ClassMethod"||o==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return d&&!this.match(5)&&this.isLineTerminator()?this.finishNode(n,d):d==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(vo.DeclareFunctionHasImplementation,{at:n}),n.declare)?super.parseFunctionBodyAndFinish(n,d,l):(this.tsDisallowOptionalPattern(n),super.parseFunctionBodyAndFinish(n,o,l))}registerFunctionStatementId(n){!n.body&&n.id?this.checkIdentifier(n.id,BF):super.registerFunctionStatementId(n)}tsCheckForInvalidTypeCasts(n){n.forEach(o=>{(o==null?void 0:o.type)==="TSTypeCastExpression"&&this.raise(vo.UnexpectedTypeAnnotation,{at:o.typeAnnotation})})}toReferencedList(n,o){return this.tsCheckForInvalidTypeCasts(n),n}parseArrayLike(n,o,l,d){const m=super.parseArrayLike(n,o,l,d);return m.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(m.elements),m}parseSubscript(n,o,l,d){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const $=this.startNodeAt(o);return $.expression=n,this.finishNode($,"TSNonNullExpression")}let m=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(l)return d.stop=!0,n;d.optionalChainMember=m=!0,this.next()}if(this.match(47)||this.match(51)){let $;const h=this.tsTryParseAndCatch(()=>{if(!l&&this.atPossibleAsyncArrow(n)){const T=this.tsTryParseGenericAsyncArrowFunction(o);if(T)return T}const e=this.tsParseTypeArgumentsInExpression();if(!e)return;if(m&&!this.match(10)){$=this.state.curPosition();return}if(OE(this.state.type)){const T=super.parseTaggedTemplateExpression(n,o,d);return T.typeParameters=e,T}if(!l&&this.eat(10)){const T=this.startNodeAt(o);return T.callee=n,T.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(T.arguments),T.typeParameters=e,d.optionalChainMember&&(T.optional=m),this.finishCallExpression(T,d.optionalChainMember)}const c=this.state.type;if(c===48||c===52||c!==10&&UN(c)&&!this.hasPrecedingLineBreak())return;const P=this.startNodeAt(o);return P.expression=n,P.typeParameters=e,this.finishNode(P,"TSInstantiationExpression")});if($&&this.unexpected($,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(vo.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),h}return super.parseSubscript(n,o,l,d)}parseNewCallee(n){var o;super.parseNewCallee(n);const{callee:l}=n;l.type==="TSInstantiationExpression"&&!((o=l.extra)!=null&&o.parenthesized)&&(n.typeParameters=l.typeParameters,n.callee=l.expression)}parseExprOp(n,o,l){let d;if(fE(58)>l&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(d=this.isContextual(118)))){const m=this.startNodeAt(o);return m.expression=n,m.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(d&&this.raise(Pn.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(m,d?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(m,o,l)}return super.parseExprOp(n,o,l)}checkReservedWord(n,o,l,d){this.state.isAmbientContext||super.checkReservedWord(n,o,l,d)}checkImportReflection(n){super.checkImportReflection(n),n.module&&n.importKind!=="value"&&this.raise(vo.ImportReflectionHasImportType,{at:n.specifiers[0].loc.start})}checkDuplicateExports(){}parseImport(n){if(n.importKind="value",hc(this.state.type)||this.match(55)||this.match(5)){let l=this.lookahead();if(this.isContextual(128)&&l.type!==12&&l.type!==97&&l.type!==29&&(n.importKind="type",this.next(),l=this.lookahead()),hc(this.state.type)&&l.type===29)return this.tsParseImportEqualsDeclaration(n)}const o=super.parseImport(n);return o.importKind==="type"&&o.specifiers.length>1&&o.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(vo.TypeImportCannotSpecifyDefaultAndNamed,{at:o}),o}parseExport(n,o){if(this.match(83))return this.next(),this.isContextual(128)&&this.lookaheadCharCode()!==61?(n.importKind="type",this.next()):n.importKind="value",this.tsParseImportEqualsDeclaration(n,!0);if(this.eat(29)){const l=n;return l.expression=super.parseExpression(),this.semicolon(),this.finishNode(l,"TSExportAssignment")}else if(this.eatContextual(93)){const l=n;return this.expectContextual(126),l.id=this.parseIdentifier(),this.semicolon(),this.finishNode(l,"TSNamespaceExportDeclaration")}else{if(n.exportKind="value",this.isContextual(128)){const l=this.lookaheadCharCode();(l===123||l===42)&&(this.next(),n.exportKind="type")}return super.parseExport(n,o)}}isAbstractClass(){return this.isContextual(122)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const n=this.startNode();return this.next(),n.abstract=!0,this.parseClass(n,!0,!0)}if(this.match(127)){const n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n}return super.parseExportDefaultExpression()}parseVarStatement(n,o,l=!1){const{isAmbientContext:d}=this.state,m=super.parseVarStatement(n,o,l||d);if(!d)return m;for(const{id:$,init:h}of m.declarations)h&&(o!=="const"||$.typeAnnotation?this.raise(vo.InitializerNotAllowedInAmbientContext,{at:h}):Vte(h,this.hasPlugin("estree"))||this.raise(vo.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:h}));return m}parseStatementContent(n,o){if(this.match(75)&&this.isLookaheadContextual("enum")){const l=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(l,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){const l=this.tsParseInterfaceDeclaration(this.startNode());if(l)return l}return super.parseStatementContent(n,o)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(n,o){return o.some(l=>qF(l)?n.accessibility===l:!!n[l])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(n,o,l){const d=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:d,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:vo.InvalidModifierOnTypeParameterPositions},o);const m=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(o,d)&&this.raise(vo.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(n,o)):this.parseClassMemberWithIsStatic(n,o,l,!!o.static)};o.declare?this.tsInAmbientContext(m):m()}parseClassMemberWithIsStatic(n,o,l,d){const m=this.tsTryParseIndexSignature(o);if(m){n.body.push(m),o.abstract&&this.raise(vo.IndexSignatureHasAbstract,{at:o}),o.accessibility&&this.raise(vo.IndexSignatureHasAccessibility,{at:o,modifier:o.accessibility}),o.declare&&this.raise(vo.IndexSignatureHasDeclare,{at:o}),o.override&&this.raise(vo.IndexSignatureHasOverride,{at:o});return}!this.state.inAbstractClass&&o.abstract&&this.raise(vo.NonAbstractClassHasAbstractMethod,{at:o}),o.override&&(l.hadSuperClass||this.raise(vo.OverrideNotInSubClass,{at:o})),super.parseClassMemberWithIsStatic(n,o,l,d)}parsePostMemberNameModifiers(n){this.eat(17)&&(n.optional=!0),n.readonly&&this.match(10)&&this.raise(vo.ClassMethodHasReadonly,{at:n}),n.declare&&this.match(10)&&this.raise(vo.ClassMethodHasDeclare,{at:n})}parseExpressionStatement(n,o,l){return(o.type==="Identifier"?this.tsParseExpressionStatement(n,o,l):void 0)||super.parseExpressionStatement(n,o,l)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(n,o,l){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(n,o,l);const d=this.tryParse(()=>super.parseConditional(n,o));return d.node?(d.error&&(this.state=d.failState),d.node):(d.error&&super.setOptionalParametersError(l,d.error),n)}parseParenItem(n,o){if(n=super.parseParenItem(n,o),this.eat(17)&&(n.optional=!0,this.resetEndLocation(n)),this.match(14)){const l=this.startNodeAt(o);return l.expression=n,l.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(l,"TSTypeCastExpression")}return n}parseExportDeclaration(n){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(n));const o=this.state.startLoc,l=this.eatContextual(123);if(l&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(vo.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});const m=hc(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(n);return m?((m.type==="TSInterfaceDeclaration"||m.type==="TSTypeAliasDeclaration"||l)&&(n.exportKind="type"),l&&(this.resetStartLocation(m,o),m.declare=!0),m):null}parseClassId(n,o,l,d){if((!o||l)&&this.isContextual(111))return;super.parseClassId(n,o,l,n.declare?BF:cB);const m=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);m&&(n.typeParameters=m)}parseClassPropertyAnnotation(n){n.optional||(this.eat(35)?n.definite=!0:this.eat(17)&&(n.optional=!0));const o=this.tsTryParseTypeAnnotation();o&&(n.typeAnnotation=o)}parseClassProperty(n){if(this.parseClassPropertyAnnotation(n),this.state.isAmbientContext&&!(n.readonly&&!n.typeAnnotation)&&this.match(29)&&this.raise(vo.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),n.abstract&&this.match(29)){const{key:o}=n;this.raise(vo.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:o.type==="Identifier"&&!n.computed?o.name:`[${this.input.slice(o.start,o.end)}]`})}return super.parseClassProperty(n)}parseClassPrivateProperty(n){return n.abstract&&this.raise(vo.PrivateElementHasAbstract,{at:n}),n.accessibility&&this.raise(vo.PrivateElementHasAccessibility,{at:n,modifier:n.accessibility}),this.parseClassPropertyAnnotation(n),super.parseClassPrivateProperty(n)}parseClassAccessorProperty(n){return this.parseClassPropertyAnnotation(n),n.optional&&this.raise(vo.AccessorCannotBeOptional,{at:n}),super.parseClassAccessorProperty(n)}pushClassMethod(n,o,l,d,m,$){const h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&m&&this.raise(vo.ConstructorHasTypeParameters,{at:h});const{declare:e=!1,kind:c}=o;e&&(c==="get"||c==="set")&&this.raise(vo.DeclareAccessor,{at:o,kind:c}),h&&(o.typeParameters=h),super.pushClassMethod(n,o,l,d,m,$)}pushClassPrivateMethod(n,o,l,d){const m=this.tsTryParseTypeParameters(this.tsParseConstModifier);m&&(o.typeParameters=m),super.pushClassPrivateMethod(n,o,l,d)}declareClassPrivateMethodInScope(n,o){n.type!=="TSDeclareMethod"&&(n.type==="MethodDefinition"&&!n.value.body||super.declareClassPrivateMethodInScope(n,o))}parseClassSuper(n){super.parseClassSuper(n),n.superClass&&(this.match(47)||this.match(51))&&(n.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(n.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(n,o,l,d,m,$,h){const e=this.tsTryParseTypeParameters(this.tsParseConstModifier);return e&&(n.typeParameters=e),super.parseObjPropValue(n,o,l,d,m,$,h)}parseFunctionParams(n,o){const l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&(n.typeParameters=l),super.parseFunctionParams(n,o)}parseVarId(n,o){super.parseVarId(n,o),n.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(n.definite=!0);const l=this.tsTryParseTypeAnnotation();l&&(n.id.typeAnnotation=l,this.resetEndLocation(n.id))}parseAsyncArrowFromCallExpression(n,o){return this.match(14)&&(n.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(n,o)}parseMaybeAssign(n,o){var l,d,m,$,h,e,c;let P,T,s;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(P=this.state.clone(),T=this.tryParse(()=>super.parseMaybeAssign(n,o),P),!T.error)return T.node;const{context:W}=this.state,E=W[W.length-1];(E===du.j_oTag||E===du.j_expr)&&W.pop()}if(!((l=T)!=null&&l.error)&&!this.match(47))return super.parseMaybeAssign(n,o);(!P||P===this.state)&&(P=this.state.clone());let D;const O=this.tryParse(W=>{var E,v;D=this.tsParseTypeParameters(this.tsParseConstModifier);const S=super.parseMaybeAssign(n,o);return(S.type!=="ArrowFunctionExpression"||(E=S.extra)!=null&&E.parenthesized)&&W(),((v=D)==null?void 0:v.params.length)!==0&&this.resetStartLocationFromNode(S,D),S.typeParameters=D,S},P);if(!O.error&&!O.aborted)return D&&this.reportReservedArrowTypeParam(D),O.node;if(!T&&(WF(!this.hasPlugin("jsx")),s=this.tryParse(()=>super.parseMaybeAssign(n,o),P),!s.error))return s.node;if((d=T)!=null&&d.node)return this.state=T.failState,T.node;if(O.node)return this.state=O.failState,D&&this.reportReservedArrowTypeParam(D),O.node;if((m=s)!=null&&m.node)return this.state=s.failState,s.node;throw($=T)!=null&&$.thrown?T.error:O.thrown?O.error:(h=s)!=null&&h.thrown?s.error:((e=T)==null?void 0:e.error)||O.error||((c=s)==null?void 0:c.error)}reportReservedArrowTypeParam(n){var o;n.params.length===1&&!n.params[0].constraint&&!((o=n.extra)!=null&&o.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(vo.ReservedArrowTypeParam,{at:n})}parseMaybeUnary(n,o){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(n,o)}parseArrow(n){if(this.match(14)){const o=this.tryParse(l=>{const d=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&l(),d});if(o.aborted)return;o.thrown||(o.error&&(this.state=o.failState),n.returnType=o.node)}return super.parseArrow(n)}parseAssignableListItemTypes(n,o){if(!(o&2))return n;this.eat(17)&&(n.optional=!0);const l=this.tsTryParseTypeAnnotation();return l&&(n.typeAnnotation=l),this.resetEndLocation(n),n}isAssignable(n,o){switch(n.type){case"TSTypeCastExpression":return this.isAssignable(n.expression,o);case"TSParameterProperty":return!0;default:return super.isAssignable(n,o)}}toAssignable(n,o=!1){switch(n.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(n,o);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":o?this.expressionScope.recordArrowParameterBindingError(vo.UnexpectedTypeCastInParameter,{at:n}):this.raise(vo.UnexpectedTypeCastInParameter,{at:n}),this.toAssignable(n.expression,o);break;case"AssignmentExpression":!o&&n.left.type==="TSTypeCastExpression"&&(n.left=this.typeCastToParameter(n.left));default:super.toAssignable(n,o)}}toAssignableParenthesizedExpression(n,o){switch(n.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(n.expression,o);break;default:super.toAssignable(n,o)}}checkToRestConversion(n,o){switch(n.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(n.expression,!1);break;default:super.checkToRestConversion(n,o)}}isValidLVal(n,o,l){return Lte({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(l!==py||!o)&&["expression",!0],TSSatisfiesExpression:(l!==py||!o)&&["expression",!0],TSTypeAssertion:(l!==py||!o)&&["expression",!0]},n)||super.isValidLVal(n,o,l)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(n){if(this.match(47)||this.match(51)){const o=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const l=super.parseMaybeDecoratorArguments(n);return l.typeParameters=o,l}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(n)}checkCommaAfterRest(n){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===n?(this.next(),!1):super.checkCommaAfterRest(n)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(n,o){const l=super.parseMaybeDefault(n,o);return l.type==="AssignmentPattern"&&l.typeAnnotation&&l.right.start<l.typeAnnotation.start&&this.raise(vo.TypeAnnotationAfterAssign,{at:l.typeAnnotation}),l}getTokenFromCode(n){if(this.state.inType){if(n===62){this.finishOp(48,1);return}if(n===60){this.finishOp(47,1);return}}super.getTokenFromCode(n)}reScan_lt_gt(){const{type:n}=this.state;n===47?(this.state.pos-=1,this.readToken_lt()):n===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:n}=this.state;return n===51?(this.state.pos-=2,this.finishOp(47,1),47):n}toAssignableList(n,o,l){for(let d=0;d<n.length;d++){const m=n[d];(m==null?void 0:m.type)==="TSTypeCastExpression"&&(n[d]=this.typeCastToParameter(m))}super.toAssignableList(n,o,l)}typeCastToParameter(n){return n.expression.typeAnnotation=n.typeAnnotation,this.resetEndLocation(n.expression,n.typeAnnotation.loc.end),n.expression}shouldParseArrow(n){return this.match(14)?n.every(o=>this.isAssignable(o,!0)):super.shouldParseArrow(n)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(n){if(this.match(47)||this.match(51)){const o=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());o&&(n.typeParameters=o)}return super.jsxParseOpeningElementAfterName(n)}getGetterSetterExpectedParamCount(n){const o=super.getGetterSetterExpectedParamCount(n),d=this.getObjectOrClassMethodParams(n)[0];return d&&this.isThisParam(d)?o+1:o}parseCatchClauseParam(){const n=super.parseCatchClauseParam(),o=this.tsTryParseTypeAnnotation();return o&&(n.typeAnnotation=o,this.resetEndLocation(n)),n}tsInAmbientContext(n){const o=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return n()}finally{this.state.isAmbientContext=o}}parseClass(n,o,l){const d=this.state.inAbstractClass;this.state.inAbstractClass=!!n.abstract;try{return super.parseClass(n,o,l)}finally{this.state.inAbstractClass=d}}tsParseAbstractDeclaration(n,o){if(this.match(80))return n.abstract=!0,this.maybeTakeDecorators(o,this.parseClass(n,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return n.abstract=!0,this.raise(vo.NonClassMethodPropertyHasAbstractModifer,{at:n}),this.tsParseInterfaceDeclaration(n)}else this.unexpected(null,80)}parseMethod(n,o,l,d,m,$,h){const e=super.parseMethod(n,o,l,d,m,$,h);if(e.abstract&&(this.hasPlugin("estree")?!!e.value.body:!!e.body)){const{key:P}=e;this.raise(vo.AbstractMethodHasImplementation,{at:e,methodName:P.type==="Identifier"&&!e.computed?P.name:`[${this.input.slice(P.start,P.end)}]`})}return e}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(n,o,l,d){return!o&&d?(this.parseTypeOnlyImportExportSpecifier(n,!1,l),this.finishNode(n,"ExportSpecifier")):(n.exportKind="value",super.parseExportSpecifier(n,o,l,d))}parseImportSpecifier(n,o,l,d,m){return!o&&d?(this.parseTypeOnlyImportExportSpecifier(n,!0,l),this.finishNode(n,"ImportSpecifier")):(n.importKind="value",super.parseImportSpecifier(n,o,l,d,l?jF:kS))}parseTypeOnlyImportExportSpecifier(n,o,l){const d=o?"imported":"local",m=o?"local":"exported";let $=n[d],h,e=!1,c=!0;const P=$.loc.start;if(this.isContextual(93)){const s=this.parseIdentifier();if(this.isContextual(93)){const D=this.parseIdentifier();ch(this.state.type)?(e=!0,$=s,h=o?this.parseIdentifier():this.parseModuleExportName(),c=!1):(h=D,c=!1)}else ch(this.state.type)?(c=!1,h=o?this.parseIdentifier():this.parseModuleExportName()):(e=!0,$=s)}else ch(this.state.type)&&(e=!0,o?($=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord($.name,$.loc.start,!0,!0)):$=this.parseModuleExportName());e&&l&&this.raise(o?vo.TypeModifierIsUsedInTypeImports:vo.TypeModifierIsUsedInTypeExports,{at:P}),n[d]=$,n[m]=h;const T=o?"importKind":"exportKind";n[T]=e?"type":"value",c&&this.eatContextual(93)&&(n[m]=o?this.parseIdentifier():this.parseModuleExportName()),n[m]||(n[m]=mv(n[d])),o&&this.checkIdentifier(n[m],e?jF:kS)}};function Ute(i){if(i.type!=="MemberExpression")return!1;const{computed:t,property:n}=i;return t&&n.type!=="StringLiteral"&&(n.type!=="TemplateLiteral"||n.expressions.length>0)?!1:xB(i.object)}function Vte(i,t){var n;const{type:o}=i;if((n=i.extra)!=null&&n.parenthesized)return!1;if(t){if(o==="Literal"){const{value:l}=i;if(typeof l=="string"||typeof l=="boolean")return!0}}else if(o==="StringLiteral"||o==="BooleanLiteral")return!0;return!!(DB(i,t)||zte(i,t)||o==="TemplateLiteral"&&i.expressions.length===0||Ute(i))}function DB(i,t){return t?i.type==="Literal"&&(typeof i.value=="number"||"bigint"in i):i.type==="NumericLiteral"||i.type==="BigIntLiteral"}function zte(i,t){if(i.type==="UnaryExpression"){const{operator:n,argument:o}=i;if(n==="-"&&DB(o,t))return!0}return!1}function xB(i){return i.type==="Identifier"?!0:i.type!=="MemberExpression"||i.computed?!1:xB(i.object)}const $F=ov`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var Wte=i=>class extends i{parsePlaceholder(n){if(this.match(142)){const o=this.startNode();return this.next(),this.assertNoSpace(),o.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(o,n)}}finishPlaceholder(n,o){const l=!!(n.expectedNode&&n.type==="Placeholder");return n.expectedNode=o,l?n:this.finishNode(n,"Placeholder")}getTokenFromCode(n){n===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(142,2):super.getTokenFromCode(n)}parseExprAtom(n){return this.parsePlaceholder("Expression")||super.parseExprAtom(n)}parseIdentifier(n){return this.parsePlaceholder("Identifier")||super.parseIdentifier(n)}checkReservedWord(n,o,l,d){n!==void 0&&super.checkReservedWord(n,o,l,d)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(n,o,l){return n==="Placeholder"||super.isValidLVal(n,o,l)}toAssignable(n,o){n&&n.type==="Placeholder"&&n.expectedNode==="Expression"?n.expectedNode="Pattern":super.toAssignable(n,o)}chStartsBindingIdentifier(n,o){return!!(super.chStartsBindingIdentifier(n,o)||this.lookahead().type===142)}verifyBreakContinue(n,o){n.label&&n.label.type==="Placeholder"||super.verifyBreakContinue(n,o)}parseExpressionStatement(n,o){if(o.type!=="Placeholder"||o.extra&&o.extra.parenthesized)return super.parseExpressionStatement(n,o);if(this.match(14)){const l=n;return l.label=this.finishPlaceholder(o,"Identifier"),this.next(),l.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(l,"LabeledStatement")}return this.semicolon(),n.name=o.name,this.finishPlaceholder(n,"Statement")}parseBlock(n,o,l){return this.parsePlaceholder("BlockStatement")||super.parseBlock(n,o,l)}parseFunctionId(n){return this.parsePlaceholder("Identifier")||super.parseFunctionId(n)}parseClass(n,o,l){const d=o?"ClassDeclaration":"ClassExpression";this.next();const m=this.state.strict,$=this.parsePlaceholder("Identifier");if($)if(this.match(81)||this.match(142)||this.match(5))n.id=$;else{if(l||!o)return n.id=null,n.body=this.finishPlaceholder($,"ClassBody"),this.finishNode(n,d);throw this.raise($F.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(n,o,l);return super.parseClassSuper(n),n.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!n.superClass,m),this.finishNode(n,d)}parseExport(n,o){const l=this.parsePlaceholder("Identifier");if(!l)return super.parseExport(n,o);if(!this.isContextual(97)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(l,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const d=this.startNode();return d.exported=l,n.specifiers=[this.finishNode(d,"ExportDefaultSpecifier")],super.parseExport(n,o)}isExportDefaultSpecifier(){if(this.match(65)){const n=this.nextTokenStart();if(this.isUnparsedContextual(n,"from")&&this.input.startsWith(my(142),this.nextTokenStartSince(n+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(n){return n.specifiers&&n.specifiers.length>0?!0:super.maybeParseExportDefaultSpecifier(n)}checkExport(n){const{specifiers:o}=n;o!=null&&o.length&&(n.specifiers=o.filter(l=>l.exported.type==="Placeholder")),super.checkExport(n),n.specifiers=o}parseImport(n){const o=this.parsePlaceholder("Identifier");if(!o)return super.parseImport(n);if(n.specifiers=[],!this.isContextual(97)&&!this.match(12))return n.source=this.finishPlaceholder(o,"StringLiteral"),this.semicolon(),this.finishNode(n,"ImportDeclaration");const l=this.startNodeAtNode(o);return l.local=o,n.specifiers.push(this.finishNode(l,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(n)||this.parseNamedImportSpecifiers(n)),this.expectContextual(97),n.source=this.parseImportSource(),this.semicolon(),this.finishNode(n,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise($F.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},qte=i=>class extends i{parseV8Intrinsic(){if(this.match(54)){const n=this.state.startLoc,o=this.startNode();if(this.next(),hc(this.state.type)){const l=this.parseIdentifierName(),d=this.createIdentifier(o,l);if(d.type="V8IntrinsicIdentifier",this.match(10))return d}this.unexpected(n)}}parseExprAtom(n){return this.parseV8Intrinsic()||super.parseExprAtom(n)}};function Rp(i,t){const[n,o]=typeof t=="string"?[t,{}]:t,l=Object.keys(o),d=l.length===0;return i.some(m=>{if(typeof m=="string")return d&&m===n;{const[$,h]=m;if($!==n)return!1;for(const e of l)if(h[e]!==o[e])return!1;return!0}})}function p1(i,t,n){const o=i.find(l=>Array.isArray(l)?l[0]===t:l===t);return o&&Array.isArray(o)&&o.length>1?o[1][n]:null}const HF=["minimal","fsharp","hack","smart"],GF=["^^","@@","^","%","#"],KF=["hash","bar"];function $te(i){if(Rp(i,"decorators")){if(Rp(i,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=p1(i,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=p1(i,"decorators","allowCallParenthesized");if(n!=null&&typeof n!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(Rp(i,"flow")&&Rp(i,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Rp(i,"placeholders")&&Rp(i,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Rp(i,"pipelineOperator")){const t=p1(i,"pipelineOperator","proposal");if(!HF.includes(t)){const o=HF.map(l=>`"${l}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${o}.`)}const n=Rp(i,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(Rp(i,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Rp(i,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const o=p1(i,"pipelineOperator","topicToken");if(!GF.includes(o)){const l=GF.map(d=>`"${d}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${l}.`)}if(o==="#"&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Rp(i,"moduleAttributes")){if(Rp(i,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if(p1(i,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Rp(i,"recordAndTuple")&&p1(i,"recordAndTuple","syntaxType")!=null&&!KF.includes(p1(i,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+KF.map(t=>`'${t}'`).join(", "));if(Rp(i,"asyncDoExpressions")&&!Rp(i,"doExpressions")){const t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}}const TB={estree:Pre,jsx:Nte,flow:Pte,typescript:Jte,v8intrinsic:qte,placeholders:Wte},Hte=Object.keys(TB);class Gte extends Fte{checkProto(t,n,o,l){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;const d=t.key;if((d.type==="Identifier"?d.name:d.value)==="__proto__"){if(n){this.raise(Pn.RecordNoProto,{at:d});return}o.used&&(l?l.doubleProtoLoc===null&&(l.doubleProtoLoc=d.loc.start):this.raise(Pn.DuplicateProto,{at:d})),o.used=!0}}shouldExitDescending(t,n){return t.type==="ArrowFunctionExpression"&&t.start===n}getExpression(){this.enterInitialScopes(),this.nextToken();const t=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,n){return t?this.disallowInAnd(()=>this.parseExpressionBase(n)):this.allowInAnd(()=>this.parseExpressionBase(n))}parseExpressionBase(t){const n=this.state.startLoc,o=this.parseMaybeAssign(t);if(this.match(12)){const l=this.startNodeAt(n);for(l.expressions=[o];this.eat(12);)l.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(l.expressions),this.finishNode(l,"SequenceExpression")}return o}parseMaybeAssignDisallowIn(t,n){return this.disallowInAnd(()=>this.parseMaybeAssign(t,n))}parseMaybeAssignAllowIn(t,n){return this.allowInAnd(()=>this.parseMaybeAssign(t,n))}setOptionalParametersError(t,n){var o;t.optionalParametersLoc=(o=n==null?void 0:n.loc)!=null?o:this.state.startLoc}parseMaybeAssign(t,n){const o=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let $=this.parseYield();return n&&($=n.call(this,$,o)),$}let l;t?l=!1:(t=new _E,l=!0);const{type:d}=this.state;(d===10||hc(d))&&(this.state.potentialArrowAt=this.state.start);let m=this.parseMaybeConditional(t);if(n&&(m=n.call(this,m,o)),lre(this.state.type)){const $=this.startNodeAt(o),h=this.state.value;if($.operator=h,this.match(29)){this.toAssignable(m,!0),$.left=m;const e=o.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=e&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=e&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=e&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else $.left=m;return this.next(),$.right=this.parseMaybeAssign(),this.checkLVal(m,{in:this.finishNode($,"AssignmentExpression")}),$}else l&&this.checkExpressionErrors(t,!0);return m}parseMaybeConditional(t){const n=this.state.startLoc,o=this.state.potentialArrowAt,l=this.parseExprOps(t);return this.shouldExitDescending(l,o)?l:this.parseConditional(l,n,t)}parseConditional(t,n,o){if(this.eat(17)){const l=this.startNodeAt(n);return l.test=t,l.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),l.alternate=this.parseMaybeAssign(),this.finishNode(l,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const n=this.state.startLoc,o=this.state.potentialArrowAt,l=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(l,o)?l:this.parseExprOp(l,n,-1)}parseExprOp(t,n,o){if(this.isPrivateName(t)){const d=this.getPrivateNameSV(t);(o>=fE(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(Pn.PrivateInExpectedIn,{at:t,identifierName:d}),this.classScope.usePrivateName(d,t.loc.start)}const l=this.state.type;if(pre(l)&&(this.prodParam.hasIn||!this.match(58))){let d=fE(l);if(d>o){if(l===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,n)}const m=this.startNodeAt(n);m.left=t,m.operator=this.state.value;const $=l===41||l===42,h=l===40;if(h&&(d=fE(42)),this.next(),l===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(Pn.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});m.right=this.parseExprOpRightExpr(l,d);const e=this.finishNode(m,$||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(c===41||c===42)||$&&c===40)throw this.raise(Pn.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(e,n,o)}}return t}parseExprOpRightExpr(t,n){const o=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(Pn.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,n),o)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(n))}default:return this.parseExprOpBaseRightExpr(t,n)}}parseExprOpBaseRightExpr(t,n){const o=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),o,hre(t)?n-1:n)}parseHackPipeBody(){var t;const{startLoc:n}=this.state,o=this.parseMaybeAssign();return xre.has(o.type)&&!((t=o.extra)!=null&&t.parenthesized)&&this.raise(Pn.PipeUnparenthesizedBody,{at:n,type:o.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(Pn.PipeTopicUnused,{at:n}),o}checkExponentialAfterUnary(t){this.match(57)&&this.raise(Pn.UnexpectedTokenUnaryExponentiation,{at:t.argument})}parseMaybeUnary(t,n){const o=this.state.startLoc,l=this.isContextual(96);if(l&&this.isAwaitAllowed()){this.next();const h=this.parseAwait(o);return n||this.checkExponentialAfterUnary(h),h}const d=this.match(34),m=this.startNode();if(_re(this.state.type)){m.operator=this.state.value,m.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const h=this.match(89);if(this.next(),m.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){const e=m.argument;e.type==="Identifier"?this.raise(Pn.StrictDelete,{at:m}):this.hasPropertyAsPrivateName(e)&&this.raise(Pn.DeletePrivateField,{at:m})}if(!d)return n||this.checkExponentialAfterUnary(m),this.finishNode(m,"UnaryExpression")}const $=this.parseUpdate(m,d,t);if(l){const{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?UN(h):UN(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(Pn.AwaitNotInAsyncContext,{at:o}),this.parseAwait(o)}return $}parseUpdate(t,n,o){if(n){const m=t;return this.checkLVal(m.argument,{in:this.finishNode(m,"UpdateExpression")}),t}const l=this.state.startLoc;let d=this.parseExprSubscripts(o);if(this.checkExpressionErrors(o,!1))return d;for(;dre(this.state.type)&&!this.canInsertSemicolon();){const m=this.startNodeAt(l);m.operator=this.state.value,m.prefix=!1,m.argument=d,this.next(),this.checkLVal(d,{in:d=this.finishNode(m,"UpdateExpression")})}return d}parseExprSubscripts(t){const n=this.state.startLoc,o=this.state.potentialArrowAt,l=this.parseExprAtom(t);return this.shouldExitDescending(l,o)?l:this.parseSubscripts(l,n)}parseSubscripts(t,n,o){const l={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,n,o,l),l.maybeAsyncArrow=!1;while(!l.stop);return t}parseSubscript(t,n,o,l){const{type:d}=this.state;if(!o&&d===15)return this.parseBind(t,n,o,l);if(OE(d))return this.parseTaggedTemplateExpression(t,n,l);let m=!1;if(d===18){if(o&&(this.raise(Pn.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return l.stop=!0,t;l.optionalChainMember=m=!0,this.next()}if(!o&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,n,l,m);{const $=this.eat(0);return $||m||this.eat(16)?this.parseMember(t,n,l,$,m):(l.stop=!0,t)}}parseMember(t,n,o,l,d){const m=this.startNodeAt(n);return m.object=t,m.computed=l,l?(m.property=this.parseExpression(),this.expect(3)):this.match(136)?(t.type==="Super"&&this.raise(Pn.SuperPrivateField,{at:n}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),m.property=this.parsePrivateName()):m.property=this.parseIdentifier(!0),o.optionalChainMember?(m.optional=d,this.finishNode(m,"OptionalMemberExpression")):this.finishNode(m,"MemberExpression")}parseBind(t,n,o,l){const d=this.startNodeAt(n);return d.object=t,this.next(),d.callee=this.parseNoCallExpr(),l.stop=!0,this.parseSubscripts(this.finishNode(d,"BindExpression"),n,o)}parseCoverCallAndAsyncArrowHead(t,n,o,l){const d=this.state.maybeInArrowParameters;let m=null;this.state.maybeInArrowParameters=!0,this.next();const $=this.startNodeAt(n);$.callee=t;const{maybeAsyncArrow:h,optionalChainMember:e}=o;h&&(this.expressionScope.enter(vte()),m=new _E),e&&($.optional=l),l?$.arguments=this.parseCallExpressionArguments(11):$.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",$,m);let c=this.finishCallExpression($,e);return h&&this.shouldParseAsyncArrow()&&!l?(o.stop=!0,this.checkDestructuringPrivate(m),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(n),c)):(h&&(this.checkExpressionErrors(m,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=d,c}toReferencedArguments(t,n){this.toReferencedListDeep(t.arguments,n)}parseTaggedTemplateExpression(t,n,o){const l=this.startNodeAt(n);return l.tag=t,l.quasi=this.parseTemplate(!0),o.optionalChainMember&&this.raise(Pn.OptionalChainingNoTemplate,{at:n}),this.finishNode(l,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}finishCallExpression(t,n){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),t.arguments.length===0||t.arguments.length>2)this.raise(Pn.ImportCallArity,{at:t,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const o of t.arguments)o.type==="SpreadElement"&&this.raise(Pn.ImportCallSpreadArgument,{at:o});return this.finishNode(t,n?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,n,o,l,d){const m=[];let $=!0;const h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if($)$=!1;else if(this.expect(12),this.match(t)){n&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(Pn.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),l&&this.addTrailingCommaExtraToNode(l),this.next();break}m.push(this.parseExprListItem(!1,d,o))}return this.state.inFSharpPipelineDirectBody=h,m}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,n){var o;return this.resetPreviousNodeTrailingComments(n),this.expect(19),this.parseArrowExpression(t,n.arguments,!0,(o=n.extra)==null?void 0:o.trailingCommaLoc),n.innerComments&&qS(t,n.innerComments),n.callee.trailingComments&&qS(t,n.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let n,o=null;const{type:l}=this.state;switch(l){case 79:return this.parseSuper();case 83:return n=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(n):(this.match(10)||this.raise(Pn.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(n,"Import"));case 78:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const d=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(d)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:o=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(o,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{n=this.startNode(),this.next(),n.object=null;const d=n.callee=this.parseNoCallExpr();if(d.type==="MemberExpression")return this.finishNode(n,"BindExpression");throw this.raise(Pn.UnsupportedBind,{at:d})}case 136:return this.raise(Pn.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const d=this.getPluginOption("pipelineOperator","proposal");if(d)return this.parseTopicReference(d);this.unexpected();break}case 47:{const d=this.input.codePointAt(this.nextTokenStart());nv(d)||d===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(hc(l)){if(this.isContextual(125)&&this.lookaheadCharCode()===123&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const d=this.state.potentialArrowAt===this.state.start,m=this.state.containsEsc,$=this.parseIdentifier();if(!m&&$.name==="async"&&!this.canInsertSemicolon()){const{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments($),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode($));if(hc(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode($)):$;if(h===90)return this.resetPreviousNodeTrailingComments($),this.parseDo(this.startNodeAtNode($),!0)}return d&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode($),[$],!1)):$}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,n){const o=this.getPluginOption("pipelineOperator","proposal");if(o)return this.state.type=t,this.state.value=n,this.state.pos--,this.state.end--,this.state.endLoc=yd(this.state.endLoc,-1),this.parseTopicReference(o);this.unexpected()}parseTopicReference(t){const n=this.startNode(),o=this.state.startLoc,l=this.state.type;return this.next(),this.finishTopicReference(n,o,t,l)}finishTopicReference(t,n,o,l){if(this.testTopicReferenceConfiguration(o,n,l)){const d=o==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(o==="smart"?Pn.PrimaryTopicNotAllowed:Pn.PipeTopicUnbound,{at:n}),this.registerTopicReference(),this.finishNode(t,d)}else throw this.raise(Pn.PipeTopicUnconfiguredToken,{at:n,token:my(l)})}testTopicReferenceConfiguration(t,n,o){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:my(o)}]);case"smart":return o===27;default:throw this.raise(Pn.PipeTopicRequiresHackPipes,{at:n})}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(dE(!0,this.prodParam.hasYield));const n=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(Pn.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(t,n,!0)}parseDo(t,n){this.expectPlugin("doExpressions"),n&&this.expectPlugin("asyncDoExpressions"),t.async=n,this.next();const o=this.state.labels;return this.state.labels=[],n?(this.prodParam.enter(qC),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=o,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(Pn.SuperNotAllowed,{at:t}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(Pn.UnexpectedSuper,{at:t}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(Pn.UnsupportedSuper,{at:t}),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),n=this.startNodeAt(yd(this.state.startLoc,1)),o=this.state.value;return this.next(),t.id=this.createIdentifier(n,o),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const n=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,n,"sent")}return this.parseFunction(t)}parseMetaProperty(t,n,o){t.meta=n;const l=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==o||l)&&this.raise(Pn.UnsupportedMetaProperty,{at:t.property,target:n.name,onlyValidPropertyName:o}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const n=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(Pn.ImportMetaOutsideModule,{at:n}),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,n,"meta")}parseLiteralAtNode(t,n,o){return this.addExtra(o,"rawValue",t),this.addExtra(o,"raw",this.input.slice(o.start,this.state.end)),o.value=t,this.next(),this.finishNode(o,n)}parseLiteral(t,n){const o=this.startNode();return this.parseLiteralAtNode(t,n,o)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const n=this.parseLiteral(t.value,"RegExpLiteral");return n.pattern=t.pattern,n.flags=t.flags,n}parseBooleanLiteral(t){const n=this.startNode();return n.value=t,this.next(),this.finishNode(n,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const n=this.state.startLoc;let o;this.next(),this.expressionScope.enter(hte());const l=this.state.maybeInArrowParameters,d=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const m=this.state.startLoc,$=[],h=new _E;let e=!0,c,P;for(;!this.match(11);){if(e)e=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){P=this.state.startLoc;break}if(this.match(21)){const D=this.state.startLoc;if(c=this.state.startLoc,$.push(this.parseParenItem(this.parseRestBinding(),D)),!this.checkCommaAfterRest(41))break}else $.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}const T=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=l,this.state.inFSharpPipelineDirectBody=d;let s=this.startNodeAt(n);return t&&this.shouldParseArrow($)&&(s=this.parseArrow(s))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(s,$,!1),s):(this.expressionScope.exit(),$.length||this.unexpected(this.state.lastTokStartLoc),P&&this.unexpected(P),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep($,!0),$.length>1?(o=this.startNodeAt(m),o.expressions=$,this.finishNode(o,"SequenceExpression"),this.resetEndLocation(o,T)):o=$[0],this.wrapParenthesis(n,o))}wrapParenthesis(t,n){if(!this.options.createParenthesizedExpressions)return this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",t.index),this.takeSurroundingComments(n,t.index,this.state.lastTokEndLoc.index),n;const o=this.startNodeAt(t);return o.expression=n,this.finishNode(o,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,n){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const n=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const o=this.parseMetaProperty(t,n,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(Pn.UnexpectedNewTarget,{at:o}),o}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const n=this.parseExprList(11);this.toReferencedList(n),t.arguments=n}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){t.callee=this.parseNoCallExpr(),t.callee.type==="Import"&&this.raise(Pn.ImportCallNotNewExpression,{at:t.callee})}parseTemplateElement(t){const{start:n,startLoc:o,end:l,value:d}=this.state,m=n+1,$=this.startNodeAt(yd(o,1));d===null&&(t||this.raise(Pn.InvalidEscapeSequenceTemplate,{at:yd(this.state.firstInvalidTemplateEscapePos,1)}));const h=this.match(24),e=h?-1:-2,c=l+e;$.value={raw:this.input.slice(m,c).replace(/\r\n?/g,`
`),cooked:d===null?null:d.slice(1,e)},$.tail=h,this.next();const P=this.finishNode($,"TemplateElement");return this.resetEndLocation(P,yd(this.state.lastTokEndLoc,e)),P}parseTemplate(t){const n=this.startNode();n.expressions=[];let o=this.parseTemplateElement(t);for(n.quasis=[o];!o.tail;)n.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.quasis.push(o=this.parseTemplateElement(t));return this.finishNode(n,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,n,o,l){o&&this.expectPlugin("recordAndTuple");const d=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const m=Object.create(null);let $=!0;const h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if($)$=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;n?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(l),this.checkProto(c,o,m,l)),o&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(Pn.InvalidRecordProperty,{at:c}),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=d;let e="ObjectExpression";return n?e="ObjectPattern":o&&(e="RecordExpression"),this.finishNode(h,e)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let n=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Pn.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)n.push(this.parseDecorator());const o=this.startNode();let l=!1,d=!1,m;if(this.match(21))return n.length&&this.unexpected(),this.parseSpread();n.length&&(o.decorators=n,n=[]),o.method=!1,t&&(m=this.state.startLoc);let $=this.eat(55);this.parsePropertyNamePrefixOperator(o);const h=this.state.containsEsc,e=this.parsePropertyName(o,t);if(!$&&!h&&this.maybeAsyncOrAccessorProp(o)){const c=e.name;c==="async"&&!this.hasPrecedingLineBreak()&&(l=!0,this.resetPreviousNodeTrailingComments(e),$=this.eat(55),this.parsePropertyName(o)),(c==="get"||c==="set")&&(d=!0,this.resetPreviousNodeTrailingComments(e),o.kind=c,this.match(55)&&($=!0,this.raise(Pn.AccessorIsGenerator,{at:this.state.curPosition(),kind:c}),this.next()),this.parsePropertyName(o))}return this.parseObjPropValue(o,m,$,l,!1,d,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var n;const o=this.getGetterSetterExpectedParamCount(t),l=this.getObjectOrClassMethodParams(t);l.length!==o&&this.raise(t.kind==="get"?Pn.BadGetterArity:Pn.BadSetterArity,{at:t}),t.kind==="set"&&((n=l[l.length-1])==null?void 0:n.type)==="RestElement"&&this.raise(Pn.BadSetterRestParameter,{at:t})}parseObjectMethod(t,n,o,l,d){if(d){const m=this.parseMethod(t,n,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(m),m}if(o||n||this.match(10))return l&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,n,o,!1,!1,"ObjectMethod")}parseObjectProperty(t,n,o,l){if(t.shorthand=!1,this.eat(14))return t.value=o?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(l),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),o)t.value=this.parseMaybeDefault(n,mv(t.key));else if(this.match(29)){const d=this.state.startLoc;l!=null?l.shorthandAssignLoc===null&&(l.shorthandAssignLoc=d):this.raise(Pn.InvalidCoverInitializedName,{at:d}),t.value=this.parseMaybeDefault(n,mv(t.key))}else t.value=mv(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,n,o,l,d,m,$){const h=this.parseObjectMethod(t,o,l,d,m)||this.parseObjectProperty(t,n,d,$);return h||this.unexpected(),h}parsePropertyName(t,n){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:o,value:l}=this.state;let d;if(ch(o))d=this.parseIdentifier(!0);else switch(o){case 132:d=this.parseNumericLiteral(l);break;case 131:d=this.parseStringLiteral(l);break;case 133:d=this.parseBigIntLiteral(l);break;case 134:d=this.parseDecimalLiteral(l);break;case 136:{const m=this.state.startLoc;n!=null?n.privateKeyLoc===null&&(n.privateKeyLoc=m):this.raise(Pn.UnexpectedPrivateField,{at:m}),d=this.parsePrivateName();break}default:this.unexpected()}t.key=d,o!==136&&(t.computed=!1)}return t.key}initFunction(t,n){t.id=null,t.generator=!1,t.async=n}parseMethod(t,n,o,l,d,m,$=!1){this.initFunction(t,o),t.generator=n,this.scope.enter(sv|LE|($?h1:0)|(d?aB:0)),this.prodParam.enter(dE(o,t.generator)),this.parseFunctionParams(t,l);const h=this.parseFunctionBodyAndFinish(t,m,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,n,o,l){o&&this.expectPlugin("recordAndTuple");const d=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const m=this.startNode();return this.next(),m.elements=this.parseExprList(t,!o,l,m),this.state.inFSharpPipelineDirectBody=d,this.finishNode(m,o?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,n,o,l){this.scope.enter(sv|A6);let d=dE(o,!1);!this.match(5)&&this.prodParam.hasIn&&(d|=J0),this.prodParam.enter(d),this.initFunction(t,o);const m=this.state.maybeInArrowParameters;return n&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,n,l)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=m,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,n,o){this.toAssignableList(n,o,!1),t.params=n}parseFunctionBodyAndFinish(t,n,o=!1){return this.parseFunctionBody(t,!1,o),this.finishNode(t,n)}parseFunctionBody(t,n,o=!1){const l=n&&!this.match(5);if(this.expressionScope.enter(vB()),l)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,n,!1);else{const d=this.state.strict,m=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|bB),t.body=this.parseBlock(!0,!1,$=>{const h=!this.isSimpleParamList(t.params);$&&h&&this.raise(Pn.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t});const e=!d&&this.state.strict;this.checkParams(t,!this.state.strict&&!n&&!o&&!h,n,e),this.state.strict&&t.id&&this.checkIdentifier(t.id,zre,e)}),this.prodParam.exit(),this.state.labels=m}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let n=0,o=t.length;n<o;n++)if(!this.isSimpleParameter(t[n]))return!1;return!0}checkParams(t,n,o,l=!0){const d=!n&&new Set,m={type:"FormalParameters"};for(const $ of t.params)this.checkLVal($,{in:m,binding:jE,checkClashes:d,strictModeChanged:l})}parseExprList(t,n,o,l){const d=[];let m=!0;for(;!this.eat(t);){if(m)m=!1;else if(this.expect(12),this.match(t)){l&&this.addTrailingCommaExtraToNode(l),this.next();break}d.push(this.parseExprListItem(n,o))}return d}parseExprListItem(t,n,o){let l;if(this.match(12))t||this.raise(Pn.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),l=null;else if(this.match(21)){const d=this.state.startLoc;l=this.parseParenItem(this.parseSpread(n),d)}else if(this.match(17)){this.expectPlugin("partialApplication"),o||this.raise(Pn.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});const d=this.startNode();this.next(),l=this.finishNode(d,"ArgumentPlaceholder")}else l=this.parseMaybeAssignAllowIn(n,this.parseParenItem);return l}parseIdentifier(t){const n=this.startNode(),o=this.parseIdentifierName(t);return this.createIdentifier(n,o)}createIdentifier(t,n){return t.name=n,t.loc.identifierName=n,this.finishNode(t,"Identifier")}parseIdentifierName(t){let n;const{startLoc:o,type:l}=this.state;ch(l)?n=this.state.value:this.unexpected();const d=cre(l);return t?d&&this.replaceToken(130):this.checkReservedWord(n,o,d,!1),this.next(),n}checkReservedWord(t,n,o,l){if(t.length>10||!jre(t))return;if(o&&Lre(t)){this.raise(Pn.UnexpectedKeyword,{at:n,keyword:t});return}if((this.state.strict?l?nB:rB:eB)(t,this.inModule)){this.raise(Pn.UnexpectedReservedWord,{at:n,reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(Pn.YieldBindingIdentifier,{at:n});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(Pn.AwaitBindingIdentifier,{at:n});return}if(this.scope.inStaticBlock){this.raise(Pn.AwaitBindingIdentifierInStaticBlock,{at:n});return}this.expressionScope.recordAsyncArrowParametersError({at:n})}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(Pn.ArgumentsInClass,{at:n});return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){const n=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(Pn.AwaitExpressionFormalParameter,{at:n}),this.eat(55)&&this.raise(Pn.ObsoleteAwaitStar,{at:n}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(n.argument=this.parseMaybeUnary(null,!0)),this.finishNode(n,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return t===53||t===10||t===0||OE(t)||t===101&&!this.state.containsEsc||t===135||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){const t=this.startNode();this.expressionScope.recordParameterInitializerError(Pn.YieldInParameter,{at:t}),this.next();let n=!1,o=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:o=this.parseMaybeAssign()}return t.delegate=n,t.argument=o,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,n){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(Pn.PipelineHeadSequenceExpression,{at:n})}parseSmartPipelineBodyInStyle(t,n){if(this.isSimpleReference(t)){const o=this.startNodeAt(n);return o.callee=t,this.finishNode(o,"PipelineBareFunction")}else{const o=this.startNodeAt(n);return this.checkSmartPipeTopicBodyEarlyErrors(n),o.expression=t,this.finishNode(o,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(Pn.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(Pn.PipelineTopicUnused,{at:t})}withTopicBindingContext(t){const n=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=n}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const n=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=n}}else return t()}withSoloAwaitPermittingContext(t){const n=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=n}}allowInAnd(t){const n=this.prodParam.currentFlags();if(J0&~n){this.prodParam.enter(n|J0);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const n=this.prodParam.currentFlags();if(J0&n){this.prodParam.enter(n&~J0);try{return t()}finally{this.prodParam.exit()}}return t()}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(t){const n=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const l=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,t);return this.state.inFSharpPipelineDirectBody=o,l}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const n=this.startNodeAt(this.state.endLoc);this.next();const o=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(n,8,"module")}finally{o()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}const sN={kind:"loop"},Kte={kind:"switch"},Qte=/[\uD800-\uDFFF]/u,cN=/in(?:stanceof)?/y;function Xte(i,t){for(let n=0;n<i.length;n++){const o=i[n],{type:l}=o;if(typeof l=="number"){{if(l===136){const{loc:d,start:m,value:$,end:h}=o,e=m+1,c=yd(d.start,1);i.splice(n,1,new cy({type:ev(27),value:"#",start:m,end:e,startLoc:d.start,endLoc:c}),new cy({type:ev(130),value:$,start:e,end:h,startLoc:c,endLoc:d.end})),n++;continue}if(OE(l)){const{loc:d,start:m,value:$,end:h}=o,e=m+1,c=yd(d.start,1);let P;t.charCodeAt(m)===96?P=new cy({type:ev(22),value:"`",start:m,end:e,startLoc:d.start,endLoc:c}):P=new cy({type:ev(8),value:"}",start:m,end:e,startLoc:d.start,endLoc:c});let T,s,D,O;l===24?(s=h-1,D=yd(d.end,-1),T=$===null?null:$.slice(1,-1),O=new cy({type:ev(22),value:"`",start:s,end:h,startLoc:D,endLoc:d.end})):(s=h-2,D=yd(d.end,-2),T=$===null?null:$.slice(1,-2),O=new cy({type:ev(23),value:"${",start:s,end:h,startLoc:D,endLoc:d.end})),i.splice(n,1,P,new cy({type:ev(20),value:T,start:e,end:s,startLoc:c,endLoc:D}),O),n+=2;continue}}o.type=ev(l)}}return i}class Yte extends Gte{parseTopLevel(t,n){return t.program=this.parseProgram(n),t.comments=this.state.comments,this.options.tokens&&(t.tokens=Xte(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,n=137,o=this.options.sourceType){if(t.sourceType=o,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,n),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[d,m]of Array.from(this.scope.undefinedExports))this.raise(Pn.ModuleExportUndefined,{at:m,localName:d});let l;return n===137?l=this.finishNode(t,"Program"):l=this.finishNodeAt(t,"Program",yd(this.state.startLoc,-1)),l}stmtToDirective(t){const n=t;n.type="Directive",n.value=n.expression,delete n.expression;const o=n.value,l=o.value,d=this.input.slice(o.start,o.end),m=o.value=d.slice(1,-1);return this.addExtra(o,"raw",d),this.addExtra(o,"rawValue",m),this.addExtra(o,"expressionValue",l),o.type="DirectiveLiteral",n}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,n){if(nv(t)){if(cN.lastIndex=n,cN.test(this.input)){const o=this.codePointAtPos(cN.lastIndex);if(!K0(o)&&o!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){const t=this.nextTokenStart(),n=this.codePointAtPos(t);return this.chStartsBindingPattern(n)||this.chStartsBindingIdentifier(n,t)}hasFollowingBindingIdentifier(){const t=this.nextTokenStart(),n=this.codePointAtPos(t);return this.chStartsBindingIdentifier(n,t)}startsUsingForOf(){const t=this.lookahead();return t.type===101&&!t.containsEsc?!1:(this.expectPlugin("explicitResourceManagement"),!0)}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let n=0;return this.options.annexB&&!this.state.strict&&(n|=4,t&&(n|=8)),this.parseStatementLike(n)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let n=null;return this.match(26)&&(n=this.parseDecorators(!0)),this.parseStatementContent(t,n)}parseStatementContent(t,n){const o=this.state.type,l=this.startNode(),d=!!(t&2),m=!!(t&4),$=t&1;switch(o){case 60:return this.parseBreakContinueStatement(l,!0);case 63:return this.parseBreakContinueStatement(l,!1);case 64:return this.parseDebuggerStatement(l);case 90:return this.parseDoWhileStatement(l);case 91:return this.parseForStatement(l);case 68:if(this.lookaheadCharCode()===46)break;return m||this.raise(this.state.strict?Pn.StrictFunction:this.options.annexB?Pn.SloppyFunctionAnnexB:Pn.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(l,!1,!d&&m);case 80:return d||this.unexpected(),this.parseClass(this.maybeTakeDecorators(n,l),!0);case 69:return this.parseIfStatement(l);case 70:return this.parseReturnStatement(l);case 71:return this.parseSwitchStatement(l);case 72:return this.parseThrowStatement(l);case 73:return this.parseTryStatement(l);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(Pn.UnexpectedUsingDeclaration,{at:this.state.startLoc}):d||this.raise(Pn.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(l,"using");case 99:{if(this.state.containsEsc)break;const c=this.nextTokenStart(),P=this.codePointAtPos(c);if(P!==91&&(!d&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(P,c)&&P!==123))break}case 75:d||this.raise(Pn.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{const c=this.state.value;return this.parseVarStatement(l,c)}case 92:return this.parseWhileStatement(l);case 76:return this.parseWithStatement(l);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(l);case 83:{const c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!$&&this.raise(Pn.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let c;return o===83?(c=this.parseImport(l),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(l,n),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return d||this.raise(Pn.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(l,!0,!d&&m)}const h=this.state.value,e=this.parseExpression();return hc(o)&&e.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(l,h,e,t):this.parseExpressionStatement(l,e,n)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(Pn.ImportOutsideModule,{at:t})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,n,o){return t&&(n.decorators&&n.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(Pn.DecoratorsBeforeAfterExport,{at:n.decorators[0]}),n.decorators.unshift(...t)):n.decorators=t,this.resetStartLocationFromNode(n,t[0]),o&&this.resetStartLocationFromNode(o,n)),n}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const n=[];do n.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(Pn.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(Pn.UnexpectedLeadingDecorator,{at:this.state.startLoc});return n}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const n=this.state.startLoc;let o;if(this.match(10)){const l=this.state.startLoc;this.next(),o=this.parseExpression(),this.expect(11),o=this.wrapParenthesis(l,o);const d=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(o),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==o&&this.raise(Pn.DecoratorArgumentsOutsideParentheses,{at:d})}else{for(o=this.parseIdentifier(!1);this.eat(16);){const l=this.startNodeAt(n);l.object=o,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),l.property=this.parsePrivateName()):l.property=this.parseIdentifier(!0),l.computed=!1,o=this.finishNode(l,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(o)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){const n=this.startNodeAtNode(t);return n.callee=t,n.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return t}parseBreakContinueStatement(t,n){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,n),this.finishNode(t,n?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,n){let o;for(o=0;o<this.state.labels.length;++o){const l=this.state.labels[o];if((t.label==null||l.name===t.label.name)&&(l.kind!=null&&(n||l.kind==="loop")||t.label&&n))break}if(o===this.state.labels.length){const l=n?"BreakStatement":"ContinueStatement";this.raise(Pn.IllegalBreakContinue,{at:t,type:l})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(sN),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(sN);let n=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(n=this.state.lastTokStartLoc),this.scope.enter(W0),this.expect(10),this.match(13))return n!==null&&this.unexpected(n),this.parseFor(t,null);const o=this.isContextual(99),l=this.isContextual(105)&&!this.hasFollowingLineBreak(),d=o&&this.hasFollowingBindingAtom()||l&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||d){const c=this.startNode(),P=this.state.value;this.next(),this.parseVar(c,!0,P);const T=this.finishNode(c,"VariableDeclaration"),s=this.match(58);return s&&l&&this.raise(Pn.ForInUsing,{at:T}),(s||this.isContextual(101))&&T.declarations.length===1?this.parseForIn(t,T,n):(n!==null&&this.unexpected(n),this.parseFor(t,T))}const m=this.isContextual(95),$=new _E,h=this.parseExpression(!0,$),e=this.isContextual(101);if(e&&(o&&this.raise(Pn.ForOfLet,{at:h}),n===null&&m&&h.type==="Identifier"&&this.raise(Pn.ForOfAsync,{at:h})),e||this.match(58)){this.checkDestructuringPrivate($),this.toAssignable(h,!0);const c=e?"ForOfStatement":"ForInStatement";return this.checkLVal(h,{in:{type:c}}),this.parseForIn(t,h,n)}else this.checkExpressionErrors($,!0);return n!==null&&this.unexpected(n),this.parseFor(t,h)}parseFunctionStatement(t,n,o){return this.next(),this.parseFunction(t,1|(o?2:0)|(n?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(Pn.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const n=t.cases=[];this.expect(5),this.state.labels.push(Kte),this.scope.enter(W0);let o;for(let l;!this.match(8);)if(this.match(61)||this.match(65)){const d=this.match(61);o&&this.finishNode(o,"SwitchCase"),n.push(o=this.startNode()),o.consequent=[],this.next(),d?o.test=this.parseExpression():(l&&this.raise(Pn.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),l=!0,o.test=null),this.expect(14)}else o?o.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),o&&this.finishNode(o,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Pn.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?iB:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:Jre}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const n=this.startNode();this.next(),this.match(10)?(this.expect(10),n.param=this.parseCatchClauseParam(),this.expect(11)):(n.param=null,this.scope.enter(W0)),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(n,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(Pn.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,n,o=!1){return this.next(),this.parseVar(t,!1,n,o),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(sN),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(Pn.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,n,o,l){for(const m of this.state.labels)m.name===n&&this.raise(Pn.LabelRedeclaration,{at:o,labelName:n});const d=fre(this.state.type)?"loop":this.match(71)?"switch":null;for(let m=this.state.labels.length-1;m>=0;m--){const $=this.state.labels[m];if($.statementStart===t.start)$.statementStart=this.state.start,$.kind=d;else break}return this.state.labels.push({name:n,kind:d,statementStart:this.state.start}),t.body=l&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=o,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,n,o){return t.expression=n,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,n=!0,o){const l=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),n&&this.scope.enter(W0),this.parseBlockBody(l,t,!1,8,o),n&&this.scope.exit(),this.finishNode(l,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,n,o,l,d){const m=t.body=[],$=t.directives=[];this.parseBlockOrModuleBlockBody(m,n?$:void 0,o,l,d)}parseBlockOrModuleBlockBody(t,n,o,l,d){const m=this.state.strict;let $=!1,h=!1;for(;!this.match(l);){const e=o?this.parseModuleItem():this.parseStatementListItem();if(n&&!h){if(this.isValidDirective(e)){const c=this.stmtToDirective(e);n.push(c),!$&&c.value.value==="use strict"&&($=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(e)}d&&d.call(this,$),m||this.setStrict(!1),this.next()}parseFor(t,n){return t.init=n,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,n,o){const l=this.match(58);return this.next(),l?o!==null&&this.unexpected(o):t.await=o!==null,n.type==="VariableDeclaration"&&n.declarations[0].init!=null&&(!l||!this.options.annexB||this.state.strict||n.kind!=="var"||n.declarations[0].id.type!=="Identifier")&&this.raise(Pn.ForInOfLoopInitializer,{at:n,type:l?"ForInStatement":"ForOfStatement"}),n.type==="AssignmentPattern"&&this.raise(Pn.InvalidLhs,{at:n,ancestor:{type:"ForStatement"}}),t.left=n,t.right=l?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,l?"ForInStatement":"ForOfStatement")}parseVar(t,n,o,l=!1){const d=t.declarations=[];for(t.kind=o;;){const m=this.startNode();if(this.parseVarId(m,o),m.init=this.eat(29)?n?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,m.init===null&&!l&&(m.id.type!=="Identifier"&&!(n&&(this.match(58)||this.isContextual(101)))?this.raise(Pn.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):o==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(Pn.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),d.push(this.finishNode(m,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,n){n==="using"&&!this.inModule&&this.match(96)&&this.raise(Pn.AwaitInUsingBinding,{at:this.state.startLoc});const o=this.parseBindingAtom();this.checkLVal(o,{in:{type:"VariableDeclarator"},binding:n==="var"?jE:X0}),t.id=o}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,n=0){const o=n&2,l=!!(n&1),d=l&&!(n&4),m=!!(n&8);this.initFunction(t,m),this.match(55)&&(o&&this.raise(Pn.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),t.generator=!0),l&&(t.id=this.parseFunctionId(d));const $=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(sv),this.prodParam.enter(dE(m,t.generator)),l||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,l?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),l&&!o&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=$,t}parseFunctionId(t){return t||hc(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,n){this.expect(10),this.expressionScope.enter(gte()),t.params=this.parseBindingList(11,41,2|(n?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?jE:X0:uB,t.id.loc.start)}parseClass(t,n,o){this.next();const l=this.state.strict;return this.state.strict=!0,this.parseClassId(t,n,o),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,l),this.finishNode(t,n?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return!t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,n){this.classScope.enter();const o={hadConstructor:!1,hadSuperClass:t};let l=[];const d=this.startNode();if(d.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(l.length>0)throw this.raise(Pn.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){l.push(this.parseDecorator());continue}const m=this.startNode();l.length&&(m.decorators=l,this.resetStartLocationFromNode(m,l[0]),l=[]),this.parseClassMember(d,m,o),m.kind==="constructor"&&m.decorators&&m.decorators.length>0&&this.raise(Pn.DecoratorConstructor,{at:m})}}),this.state.strict=n,this.next(),l.length)throw this.raise(Pn.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(d,"ClassBody")}parseClassMemberFromModifier(t,n){const o=this.parseIdentifier(!0);if(this.isClassMethod()){const l=n;return l.kind="method",l.computed=!1,l.key=o,l.static=!1,this.pushClassMethod(t,l,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const l=n;return l.computed=!1,l.key=o,l.static=!1,t.body.push(this.parseClassProperty(l)),!0}return this.resetPreviousNodeTrailingComments(o),!1}parseClassMember(t,n,o){const l=this.isContextual(104);if(l){if(this.parseClassMemberFromModifier(t,n))return;if(this.eat(5)){this.parseClassStaticBlock(t,n);return}}this.parseClassMemberWithIsStatic(t,n,o,l)}parseClassMemberWithIsStatic(t,n,o,l){const d=n,m=n,$=n,h=n,e=n,c=d,P=d;if(n.static=l,this.parsePropertyNamePrefixOperator(n),this.eat(55)){c.kind="method";const W=this.match(136);if(this.parseClassElementName(c),W){this.pushClassPrivateMethod(t,m,!0,!1);return}this.isNonstaticConstructor(d)&&this.raise(Pn.ConstructorIsGenerator,{at:d.key}),this.pushClassMethod(t,d,!0,!1,!1,!1);return}const T=hc(this.state.type)&&!this.state.containsEsc,s=this.match(136),D=this.parseClassElementName(n),O=this.state.startLoc;if(this.parsePostMemberNameModifiers(P),this.isClassMethod()){if(c.kind="method",s){this.pushClassPrivateMethod(t,m,!1,!1);return}const W=this.isNonstaticConstructor(d);let E=!1;W&&(d.kind="constructor",o.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Pn.DuplicateConstructor,{at:D}),W&&this.hasPlugin("typescript")&&n.override&&this.raise(Pn.OverrideOnConstructor,{at:D}),o.hadConstructor=!0,E=o.hadSuperClass),this.pushClassMethod(t,d,!1,!1,W,E)}else if(this.isClassProperty())s?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,$);else if(T&&D.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(D);const W=this.eat(55);P.optional&&this.unexpected(O),c.kind="method";const E=this.match(136);this.parseClassElementName(c),this.parsePostMemberNameModifiers(P),E?this.pushClassPrivateMethod(t,m,W,!0):(this.isNonstaticConstructor(d)&&this.raise(Pn.ConstructorIsAsync,{at:d.key}),this.pushClassMethod(t,d,W,!0,!1,!1))}else if(T&&(D.name==="get"||D.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(D),c.kind=D.name;const W=this.match(136);this.parseClassElementName(d),W?this.pushClassPrivateMethod(t,m,!1,!1):(this.isNonstaticConstructor(d)&&this.raise(Pn.ConstructorIsAccessor,{at:d.key}),this.pushClassMethod(t,d,!1,!1,!1,!1)),this.checkGetterSetterParams(d)}else if(T&&D.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(D);const W=this.match(136);this.parseClassElementName($),this.pushClassAccessorProperty(t,e,W)}else this.isLineTerminator()?s?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,$):this.unexpected()}parseClassElementName(t){const{type:n,value:o}=this.state;if((n===130||n===131)&&t.static&&o==="prototype"&&this.raise(Pn.StaticPrototype,{at:this.state.startLoc}),n===136){o==="constructor"&&this.raise(Pn.ConstructorClassPrivateField,{at:this.state.startLoc});const l=this.parsePrivateName();return t.key=l,l}return this.parsePropertyName(t)}parseClassStaticBlock(t,n){var o;this.scope.enter(h1|RE|LE);const l=this.state.labels;this.state.labels=[],this.prodParam.enter(Y0);const d=n.body=[];this.parseBlockOrModuleBlockBody(d,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=l,t.body.push(this.finishNode(n,"StaticBlock")),(o=n.decorators)!=null&&o.length&&this.raise(Pn.DecoratorStaticBlock,{at:n})}pushClassProperty(t,n){!n.computed&&(n.key.name==="constructor"||n.key.value==="constructor")&&this.raise(Pn.ConstructorClassField,{at:n.key}),t.body.push(this.parseClassProperty(n))}pushClassPrivateProperty(t,n){const o=this.parseClassPrivateProperty(n);t.body.push(o),this.classScope.declarePrivateName(this.getPrivateNameSV(o.key),iN,o.key.loc.start)}pushClassAccessorProperty(t,n,o){if(!o&&!n.computed){const d=n.key;(d.name==="constructor"||d.value==="constructor")&&this.raise(Pn.ConstructorClassField,{at:d})}const l=this.parseClassAccessorProperty(n);t.body.push(l),o&&this.classScope.declarePrivateName(this.getPrivateNameSV(l.key),iN,l.key.loc.start)}pushClassMethod(t,n,o,l,d,m){t.body.push(this.parseMethod(n,o,l,d,m,"ClassMethod",!0))}pushClassPrivateMethod(t,n,o,l){const d=this.parseMethod(n,o,l,!1,!1,"ClassPrivateMethod",!0);t.body.push(d);const m=d.kind==="get"?d.static?Hre:Kre:d.kind==="set"?d.static?Gre:Qre:iN;this.declareClassPrivateMethodInScope(d,m)}declareClassPrivateMethodInScope(t,n){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),n,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(h1|LE),this.expressionScope.enter(vB()),this.prodParam.enter(Y0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,n,o,l=cB){if(hc(this.state.type))t.id=this.parseIdentifier(),n&&this.declareNameFromIdentifier(t.id,l);else if(o||!n)t.id=null;else throw this.raise(Pn.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,n){const o=this.maybeParseExportDefaultSpecifier(t),l=!o||this.eat(12),d=l&&this.eatExportStar(t),m=d&&this.maybeParseExportNamespaceSpecifier(t),$=l&&(!m||this.eat(12)),h=o||d;if(d&&!m){if(o&&this.unexpected(),n)throw this.raise(Pn.UnsupportedDecoratorExport,{at:t});return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}const e=this.maybeParseExportNamedSpecifiers(t);o&&l&&!d&&!e&&this.unexpected(null,5),m&&$&&this.unexpected(null,97);let c;if(h||e){if(c=!1,n)throw this.raise(Pn.UnsupportedDecoratorExport,{at:t});this.parseExportFrom(t,h)}else c=this.maybeParseExportDeclaration(t);if(h||e||c){var P;const T=t;if(this.checkExport(T,!0,!1,!!T.source),((P=T.declaration)==null?void 0:P.type)==="ClassDeclaration")this.maybeTakeDecorators(n,T.declaration,T);else if(n)throw this.raise(Pn.UnsupportedDecoratorExport,{at:t});return this.finishNode(T,"ExportNamedDeclaration")}if(this.eat(65)){const T=t,s=this.parseExportDefaultExpression();if(T.declaration=s,s.type==="ClassDeclaration")this.maybeTakeDecorators(n,s,T);else if(n)throw this.raise(Pn.UnsupportedDecoratorExport,{at:t});return this.checkExport(T,!0,!0),this.finishNode(T,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);const n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);const n=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenStart();return!M6.test(this.input.slice(this.state.pos,t))&&this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Pn.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Pn.UnsupportedDefaultExport,{at:this.state.startLoc});const n=this.parseMaybeAssignAllowIn();return this.semicolon(),n}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(hc(t)){if(t===95&&!this.state.containsEsc||t===99)return!1;if((t===128||t===127)&&!this.state.containsEsc){const{type:l}=this.lookahead();if(hc(l)&&l!==97||l===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const n=this.nextTokenStart(),o=this.isUnparsedContextual(n,"from");if(this.input.charCodeAt(n)===44||hc(this.state.type)&&o)return!0;if(this.match(65)&&o){const l=this.input.charCodeAt(this.nextTokenStartSince(n+4));return l===34||l===39}return!1}parseExportFrom(t,n){if(this.eatContextual(97)){t.source=this.parseImportSource(),this.checkExport(t);const o=this.maybeParseImportAssertions();o&&(t.assertions=o,this.checkJSONModuleImport(t))}else n&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Pn.DecoratorBeforeExport,{at:this.state.startLoc}),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,n,o,l){if(n){if(o){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var d;const m=t.declaration;m.type==="Identifier"&&m.name==="from"&&m.end-m.start===4&&!((d=m.extra)!=null&&d.parenthesized)&&this.raise(Pn.ExportDefaultFromAsIdentifier,{at:m})}}else if(t.specifiers&&t.specifiers.length)for(const m of t.specifiers){const{exported:$}=m,h=$.type==="Identifier"?$.name:$.value;if(this.checkDuplicateExports(m,h),!l&&m.local){const{local:e}=m;e.type!=="Identifier"?this.raise(Pn.ExportBindingIsString,{at:m,localName:e.value,exportName:h}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){const m=t.declaration.id;if(!m)throw new Error("Assertion failure");this.checkDuplicateExports(t,m.name)}else if(t.declaration.type==="VariableDeclaration")for(const m of t.declaration.declarations)this.checkDeclaration(m.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(const n of t.properties)this.checkDeclaration(n);else if(t.type==="ArrayPattern")for(const n of t.elements)n&&this.checkDeclaration(n);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,n){this.exportedIdentifiers.has(n)&&(n==="default"?this.raise(Pn.DuplicateDefaultExport,{at:t}):this.raise(Pn.DuplicateExport,{at:t,exportName:n})),this.exportedIdentifiers.add(n)}parseExportSpecifiers(t){const n=[];let o=!0;for(this.expect(5);!this.eat(8);){if(o)o=!1;else if(this.expect(12),this.eat(8))break;const l=this.isContextual(128),d=this.match(131),m=this.startNode();m.local=this.parseModuleExportName(),n.push(this.parseExportSpecifier(m,d,t,l))}return n}parseExportSpecifier(t,n,o,l){return this.eatContextual(93)?t.exported=this.parseModuleExportName():n?t.exported=Dte(t.local):t.exported||(t.exported=mv(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){const t=this.parseStringLiteral(this.state.value),n=t.value.match(Qte);return n&&this.raise(Pn.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:n[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:n,value:o})=>o.value==="json"&&(n.type==="Identifier"?n.name==="type":n.value==="type")):!1}checkImportReflection(t){if(t.module){var n;(t.specifiers.length!==1||t.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(Pn.ImportReflectionNotBinding,{at:t.specifiers[0].loc.start}),((n=t.assertions)==null?void 0:n.length)>0&&this.raise(Pn.ImportReflectionHasAssertion,{at:t.specifiers[0].loc.start})}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){const{specifiers:n}=t;if(n!=null){const o=n.find(l=>{let d;if(l.type==="ExportSpecifier"?d=l.local:l.type==="ImportSpecifier"&&(d=l.imported),d!==void 0)return d.type==="Identifier"?d.name!=="default":d.value!=="default"});o!==void 0&&this.raise(Pn.ImportJSONBindingNotDefault,{at:o.loc.start})}}}parseMaybeImportReflection(t){let n=!1;if(this.isContextual(125)){const o=this.lookahead(),l=o.type;hc(l)?(l!==97||this.input.charCodeAt(this.nextTokenStartSince(o.end))===102)&&(n=!0):l!==12&&(n=!0)}n?(this.expectPlugin("importReflection"),this.next(),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1)}parseImport(t){if(t.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(t);const l=!this.maybeParseDefaultImportSpecifier(t)||this.eat(12),d=l&&this.maybeParseStarImportSpecifier(t);l&&!d&&this.parseNamedImportSpecifiers(t),this.expectContextual(97)}t.source=this.parseImportSource();const n=this.maybeParseImportAssertions();if(n)t.assertions=n;else{const o=this.maybeParseModuleAttributes();o&&(t.attributes=o)}return this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(t){return hc(this.state.type)}parseImportSpecifierLocal(t,n,o){n.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(n,o))}finishImportSpecifier(t,n,o=X0){return this.checkLVal(t.local,{in:{type:n},binding:o}),this.finishNode(t,n)}parseAssertEntries(){const t=[],n=new Set;do{if(this.match(8))break;const o=this.startNode(),l=this.state.value;if(n.has(l)&&this.raise(Pn.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:l}),n.add(l),this.match(131)?o.key=this.parseStringLiteral(l):o.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(Pn.ModuleAttributeInvalidValue,{at:this.state.startLoc});o.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(o,"ImportAttribute"))}while(this.eat(12));return t}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;const t=[],n=new Set;do{const o=this.startNode();if(o.key=this.parseIdentifier(!0),o.key.name!=="type"&&this.raise(Pn.ModuleAttributeDifferentFromType,{at:o.key}),n.has(o.key.name)&&this.raise(Pn.ModuleAttributesWithDuplicateKeys,{at:o.key,key:o.key.name}),n.add(o.key.name),this.expect(14),!this.match(131))throw this.raise(Pn.ModuleAttributeInvalidValue,{at:this.state.startLoc});o.value=this.parseStringLiteral(this.state.value),this.finishNode(o,"ImportAttribute"),t.push(o)}while(this.eat(12));return t}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);const t=this.parseAssertEntries();return this.eat(8),t}maybeParseDefaultImportSpecifier(t){return this.shouldParseDefaultImport(t)?(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(t){if(this.match(55)){const n=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,n,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else{if(this.eat(14))throw this.raise(Pn.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}const o=this.startNode(),l=this.match(131),d=this.isContextual(128);o.imported=this.parseModuleExportName();const m=this.parseImportSpecifier(o,l,t.importKind==="type"||t.importKind==="typeof",d,void 0);t.specifiers.push(m)}}parseImportSpecifier(t,n,o,l,d){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:m}=t;if(n)throw this.raise(Pn.ImportBindingIsString,{at:t,importName:m.value});this.checkReservedWord(m.name,t.loc.start,!0,!0),t.local||(t.local=mv(m))}return this.finishImportSpecifier(t,"ImportSpecifier",d)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}}let EB=class extends Yte{constructor(t,n){t=are(t),super(t,n),this.options=t,this.initializeScopes(),this.plugins=Zte(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return O6}parse(){this.enterInitialScopes();const t=this.startNode(),n=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,n),t.errors=this.state.errors,t}};function Zte(i){const t=new Map;for(const n of i){const[o,l]=Array.isArray(n)?n:[n,{}];t.has(o)||t.set(o,l||{})}return t}function ene(i,t){var n;if(((n=t)==null?void 0:n.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const o=TS(t,i),l=o.parse();if(o.sawUnambiguousESM)return l;if(o.ambiguousScriptDifferentAst)try{return t.sourceType="script",TS(t,i).parse()}catch{}else l.program.sourceType="script";return l}catch(o){try{return t.sourceType="script",TS(t,i).parse()}catch{}throw o}}else return TS(t,i).parse()}function rne(i,t){const n=TS(t,i);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}function tne(i){const t={};for(const n of Object.keys(i))t[n]=ev(i[n]);return t}const nne=tne(sre);function TS(i,t){let n=EB;return i!=null&&i.plugins&&($te(i.plugins),n=ine(i.plugins)),new n(i,t)}const QF={};function ine(i){const t=Hte.filter(l=>Rp(i,l)),n=t.join("/");let o=QF[n];if(!o){o=EB;for(const l of t)o=TB[l](o);QF[n]=o}return o}var gv=VC.parse=ene,CB=VC.parseExpression=rne;VC.tokTypes=nne;const op=i=>i.type===4&&i.isStatic,Dg=(i,t)=>i===t||i===LR(t);function R6(i){if(Dg(i,"Teleport"))return b1;if(Dg(i,"Suspense"))return T2;if(Dg(i,"KeepAlive"))return US;if(Dg(i,"BaseTransition"))return f6}const ane=/^\d|[^\$\w]/,xy=i=>!ane.test(i),one=/[A-Za-z_$\xA0-\uFFFF]/,sne=/[\.\?\w$\xA0-\uFFFF]/,cne=/\s+[.[]\s*|\s*[.[]\s+/g,une=i=>{i=i.trim().replace(cne,m=>m.trim());let t=0,n=[],o=0,l=0,d=null;for(let m=0;m<i.length;m++){const $=i.charAt(m);switch(t){case 0:if($==="[")n.push(t),t=1,o++;else if($==="(")n.push(t),t=2,l++;else if(!(m===0?one:sne).test($))return!1;break;case 1:$==="'"||$==='"'||$==="`"?(n.push(t),t=3,d=$):$==="["?o++:$==="]"&&(--o||(t=n.pop()));break;case 2:if($==="'"||$==='"'||$==="`")n.push(t),t=3,d=$;else if($==="(")l++;else if($===")"){if(m===i.length-1)return!1;--l||(t=n.pop())}break;case 3:$===d&&(t=n.pop(),d=null);break}}return!o&&!l},kB=(i,t)=>{try{let n=CB(i,{plugins:t.expressionPlugins});return(n.type==="TSAsExpression"||n.type==="TSTypeAssertion")&&(n=n.expression),n.type==="MemberExpression"||n.type==="OptionalMemberExpression"||n.type==="Identifier"}catch{return!1}},B6=kB;function j6(i,t,n){const l={source:i.source.slice(t,t+n),start:F1(i.start,i.source,t),end:i.end};return n!=null&&(l.end=F1(i.start,i.source,t+n)),l}function F1(i,t,n=t.length){return l2(_v({},i),t,n)}function l2(i,t,n=t.length){let o=0,l=-1;for(let d=0;d<n;d++)t.charCodeAt(d)===10&&(o++,l=d);return i.offset+=n,i.line+=o,i.column=l===-1?i.column+n:n-l,i}function KN(i,t){if(!i)throw new Error(t||"unexpected compiler condition")}function Nf(i,t,n=!1){for(let o=0;o<i.props.length;o++){const l=i.props[o];if(l.type===7&&(n||l.exp)&&(lc(t)?l.name===t:t.test(l.name)))return l}}function r_(i,t,n=!1,o=!1){for(let l=0;l<i.props.length;l++){const d=i.props[l];if(d.type===6){if(n)continue;if(d.name===t&&(d.value||o))return d}else if(d.name==="bind"&&(d.exp||o)&&cv(d.arg,t))return d}}function cv(i,t){return!!(i&&op(i)&&i.content===t)}function $C(i){return i.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function PS(i){return i.type===5||i.type===2}function J6(i){return i.type===7&&i.name==="slot"}function f2(i){return i.type===1&&i.tagType===3}function p2(i){return i.type===1&&i.tagType===2}const lne=new Set([s2,C2]);function AB(i,t=[]){if(i&&!lc(i)&&i.type===14){const n=i.callee;if(!lc(n)&&lne.has(n))return AB(i.arguments[0],t.concat(i))}return[i,t]}function $S(i,t,n){let o,l=i.type===13?i.props:i.arguments[2],d=[],m;if(l&&!lc(l)&&l.type===14){const $=AB(l);l=$[0],d=$[1],m=d[d.length-1]}if(l==null||lc(l))o=e_([t]);else if(l.type===14){const $=l.arguments[0];!lc($)&&$.type===15?XF(t,$)||$.properties.unshift(t):l.callee===LC?o=ls(n.helper(N1),[e_([t]),l]):l.arguments.unshift(e_([t])),!o&&(o=l)}else l.type===15?(XF(t,l)||l.properties.unshift(t),o=l):(o=ls(n.helper(N1),[e_([t]),l]),m&&m.callee===C2&&(m=d[d.length-2]));i.type===13?m?m.arguments[0]=o:i.props=o:m?m.arguments[0]=o:i.arguments[2]=o}function XF(i,t){let n=!1;if(i.key.type===4){const o=i.key.content;n=t.properties.some(l=>l.key.type===4&&l.key.content===o)}return n}function HS(i,t){return`_${t}_${i.replace(/[^\w]/g,(n,o)=>n==="-"?"_":i.charCodeAt(o).toString())}`}function Xd(i,t){if(!i||Object.keys(t).length===0)return!1;switch(i.type){case 1:for(let n=0;n<i.props.length;n++){const o=i.props[n];if(o.type===7&&(Xd(o.arg,t)||Xd(o.exp,t)))return!0}return i.children.some(n=>Xd(n,t));case 11:return Xd(i.source,t)?!0:i.children.some(n=>Xd(n,t));case 9:return i.branches.some(n=>Xd(n,t));case 10:return Xd(i.condition,t)?!0:i.children.some(n=>Xd(n,t));case 4:return!i.isStatic&&xy(i.content)&&!!t[i.content];case 8:return i.children.some(n=>Dv(n)&&Xd(n,t));case 5:case 12:return Xd(i.content,t);case 2:case 3:return!1;default:return!1}}function PB(i){return i.type===14&&i.callee===JC?i.arguments[1].returns:i}const fne={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:i=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${i}.sync\` should be changed to \`v-model:${i}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_PROP:{message:".prop modifier for v-bind has been removed and no longer necessary. Vue 3 will automatically set a binding as DOM property when appropriate."},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTER:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function QN(i,t){const n=t.options?t.options.compatConfig:t.compatConfig,o=n&&n[i];return i==="MODE"?o||3:o}function pne(i,t){const n=QN("MODE",t),o=QN(i,t);return n===3?o===!0:o!==!1}function dne(i,t,n,...o){const l=pne(i,t);return l&&wB(i,t,n,...o),l}function wB(i,t,n,...o){if(QN(i,t)==="suppress-warning")return;const{message:d,link:m}=fne[i],$=`(deprecation ${i}) ${typeof d=="function"?d(...o):d}${m?`
Details: ${m}`:""}`,h=new SyntaxError($);h.code=i,n&&(h.loc=n),t.onWarn(h)}const _ne=/&(gt|lt|amp|apos|quot);/g,mne={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},YF={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:lE,isPreTag:lE,isCustomElement:lE,decodeEntities:i=>i.replace(_ne,(t,n)=>mne[n]),onError:l6,onWarn:WR,comments:!0};function HC(i,t={}){const n=gne(i,t),o=O_(n);return k2(U6(n,0,[]),Eg(n,o))}function gne(i,t){const n=_v({},YF);let o;for(o in t)n[o]=t[o]===void 0?YF[o]:t[o];return{options:n,column:1,line:1,offset:0,originalSource:i,source:i,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function U6(i,t,n){const o=GC(n),l=o?o.ns:0,d=[];for(;!Cne(i,t,n);){const $=i.source;let h;if(t===0||t===1){if(!i.inVPre&&Bp($,i.options.delimiters[0]))h=Tne(i,t);else if(t===0&&$[0]==="<")if($.length===1)eu(i,5,1);else if($[1]==="!")Bp($,"<!--")?h=vne(i):Bp($,"<!DOCTYPE")?h=cS(i):Bp($,"<![CDATA[")?l!==0?h=hne(i,n):(eu(i,1),h=cS(i)):(eu(i,11),h=cS(i));else if($[1]==="/")if($.length===2)eu(i,5,2);else if($[2]===">"){eu(i,14,2),ff(i,3);continue}else if(/[a-z]/i.test($[2])){eu(i,23),XN(i,VE.End,o);continue}else eu(i,12,2),h=cS(i);else/[a-z]/i.test($[1])?h=yne(i,n):$[1]==="?"?(eu(i,21,1),h=cS(i)):eu(i,12,1)}if(h||(h=Ene(i,t)),Dd(h))for(let e=0;e<h.length;e++)ZF(d,h[e]);else ZF(d,h)}let m=!1;if(t!==2&&t!==1){const $=i.options.whitespace!=="preserve";for(let h=0;h<d.length;h++){const e=d[h];if(e.type===2)if(i.inPre)e.content=e.content.replace(/\r\n/g,`
`);else if(/[^\t\r\n\f ]/.test(e.content))$&&(e.content=e.content.replace(/[\t\r\n\f ]+/g," "));else{const c=d[h-1],P=d[h+1];!c||!P||$&&(c.type===3&&P.type===3||c.type===3&&P.type===1||c.type===1&&P.type===3||c.type===1&&P.type===1&&/[\r\n]/.test(e.content))?(m=!0,d[h]=null):e.content=" "}else e.type===3&&!i.options.comments&&(m=!0,d[h]=null)}if(i.inPre&&o&&i.options.isPreTag(o.tag)){const h=d[0];h&&h.type===2&&(h.content=h.content.replace(/^\r?\n/,""))}}return m?d.filter(Boolean):d}function ZF(i,t){if(t.type===2){const n=GC(i);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}i.push(t)}function hne(i,t){ff(i,9);const n=U6(i,3,t);return i.source.length===0?eu(i,6):ff(i,3),n}function vne(i){const t=O_(i);let n;const o=/--(\!)?>/.exec(i.source);if(!o)n=i.source.slice(4),ff(i,i.source.length),eu(i,7);else{o.index<=3&&eu(i,0),o[1]&&eu(i,10),n=i.source.slice(4,o.index);const l=i.source.slice(0,o.index);let d=1,m=0;for(;(m=l.indexOf("<!--",d))!==-1;)ff(i,m-d+1),m+4<l.length&&eu(i,16),d=m+1;ff(i,o.index+o[0].length-d+1)}return{type:3,content:n,loc:Eg(i,t)}}function cS(i){const t=O_(i),n=i.source[1]==="?"?1:2;let o;const l=i.source.indexOf(">");return l===-1?(o=i.source.slice(n),ff(i,i.source.length)):(o=i.source.slice(n,l),ff(i,l+1)),{type:3,content:o,loc:Eg(i,t)}}function yne(i,t){const n=i.inPre,o=i.inVPre,l=GC(t),d=XN(i,VE.Start,l),m=i.inPre&&!n,$=i.inVPre&&!o;if(d.isSelfClosing||i.options.isVoidTag(d.tag))return m&&(i.inPre=!1),$&&(i.inVPre=!1),d;t.push(d);const h=i.options.getTextMode(d,l),e=U6(i,h,t);if(t.pop(),d.children=e,YN(i.source,d.tag))XN(i,VE.End,l);else if(eu(i,24,0,d.loc.start),i.source.length===0&&d.tag.toLowerCase()==="script"){const c=e[0];c&&Bp(c.loc.source,"<!--")&&eu(i,8)}return d.loc=Eg(i,d.loc.start),m&&(i.inPre=!1),$&&(i.inVPre=!1),d}var VE=(i=>(i[i.Start=0]="Start",i[i.End=1]="End",i))(VE||{});const bne=lp("if,else,else-if,for,slot");function XN(i,t,n){const o=O_(i),l=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(i.source),d=l[1],m=i.options.getNamespace(d,n);ff(i,l[0].length),GS(i);const $=O_(i),h=i.source;i.options.isPreTag(d)&&(i.inPre=!0);let e=eL(i,t);t===0&&!i.inVPre&&e.some(T=>T.type===7&&T.name==="pre")&&(i.inVPre=!0,_v(i,$),i.source=h,e=eL(i,t).filter(T=>T.name!=="v-pre"));let c=!1;if(i.source.length===0?eu(i,9):(c=Bp(i.source,"/>"),t===1&&c&&eu(i,4),ff(i,c?2:1)),t===1)return;let P=0;return i.inVPre||(d==="slot"?P=2:d==="template"?e.some(T=>T.type===7&&bne(T.name))&&(P=3):Sne(d,e,i)&&(P=1)),{type:1,ns:m,tag:d,tagType:P,props:e,isSelfClosing:c,children:[],loc:Eg(i,o),codegenNode:void 0}}function Sne(i,t,n){const o=n.options;if(o.isCustomElement(i))return!1;if(i==="component"||/^[A-Z]/.test(i)||R6(i)||o.isBuiltInComponent&&o.isBuiltInComponent(i)||o.isNativeTag&&!o.isNativeTag(i))return!0;for(let l=0;l<t.length;l++){const d=t[l];if(d.type===6){if(d.name==="is"&&d.value&&d.value.content.startsWith("vue:"))return!0}else{if(d.name==="is")return!0;d.name==="bind"&&cv(d.arg,"is")}}}function eL(i,t){const n=[],o=new Set;for(;i.source.length>0&&!Bp(i.source,">")&&!Bp(i.source,"/>");){if(Bp(i.source,"/")){eu(i,22),ff(i,1),GS(i);continue}t===1&&eu(i,3);const l=Dne(i,o);l.type===6&&l.value&&l.name==="class"&&(l.value.content=l.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(l),/^[^\t\r\n\f />]/.test(i.source)&&eu(i,15),GS(i)}return n}function Dne(i,t){var n;const o=O_(i),d=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(i.source)[0];t.has(d)&&eu(i,2),t.add(d),d[0]==="="&&eu(i,19);{const h=/["'<]/g;let e;for(;e=h.exec(d);)eu(i,17,e.index)}ff(i,d.length);let m;/^[\t\r\n\f ]*=/.test(i.source)&&(GS(i),ff(i,1),GS(i),m=xne(i),m||eu(i,13));const $=Eg(i,o);if(!i.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(d)){const h=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(d);let e=Bp(d,"."),c=h[1]||(e||Bp(d,":")?"bind":Bp(d,"@")?"on":"slot"),P;if(h[2]){const s=c==="slot",D=d.lastIndexOf(h[2],d.length-(((n=h[3])==null?void 0:n.length)||0)),O=Eg(i,rL(i,o,D),rL(i,o,D+h[2].length+(s&&h[3]||"").length));let W=h[2],E=!0;W.startsWith("[")?(E=!1,W.endsWith("]")?W=W.slice(1,W.length-1):(eu(i,27),W=W.slice(1))):s&&(W+=h[3]||""),P={type:4,content:W,isStatic:E,constType:E?3:0,loc:O}}if(m&&m.isQuoted){const s=m.loc;s.start.offset++,s.start.column++,s.end=F1(s.start,m.content),s.source=s.source.slice(1,-1)}const T=h[3]?h[3].slice(1).split("."):[];return e&&T.push("prop"),{type:7,name:c,exp:m&&{type:4,content:m.content,isStatic:!1,constType:0,loc:m.loc},arg:P,modifiers:T,loc:$}}return!i.inVPre&&Bp(d,"v-")&&eu(i,26),{type:6,name:d,value:m&&{type:2,content:m.content,loc:m.loc},loc:$}}function xne(i){const t=O_(i);let n;const o=i.source[0],l=o==='"'||o==="'";if(l){ff(i,1);const d=i.source.indexOf(o);d===-1?n=wS(i,i.source.length,4):(n=wS(i,d,4),ff(i,1))}else{const d=/^[^\t\r\n\f >]+/.exec(i.source);if(!d)return;const m=/["'<=`]/g;let $;for(;$=m.exec(d[0]);)eu(i,18,$.index);n=wS(i,d[0].length,4)}return{content:n,isQuoted:l,loc:Eg(i,t)}}function Tne(i,t){const[n,o]=i.options.delimiters,l=i.source.indexOf(o,n.length);if(l===-1){eu(i,25);return}const d=O_(i);ff(i,n.length);const m=O_(i),$=O_(i),h=l-n.length,e=i.source.slice(0,h),c=wS(i,h,t),P=c.trim(),T=c.indexOf(P);T>0&&l2(m,e,T);const s=h-(c.length-P.length-T);return l2($,e,s),ff(i,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:P,loc:Eg(i,m,$)},loc:Eg(i,d)}}function Ene(i,t){const n=t===3?["]]>"]:["<",i.options.delimiters[0]];let o=i.source.length;for(let m=0;m<n.length;m++){const $=i.source.indexOf(n[m],1);$!==-1&&o>$&&(o=$)}const l=O_(i);return{type:2,content:wS(i,o,t),loc:Eg(i,l)}}function wS(i,t,n){const o=i.source.slice(0,t);return ff(i,t),n===2||n===3||!o.includes("&")?o:i.options.decodeEntities(o,n===4)}function O_(i){const{column:t,line:n,offset:o}=i;return{column:t,line:n,offset:o}}function Eg(i,t,n){return n=n||O_(i),{start:t,end:n,source:i.originalSource.slice(t.offset,n.offset)}}function GC(i){return i[i.length-1]}function Bp(i,t){return i.startsWith(t)}function ff(i,t){const{source:n}=i;l2(i,n,t),i.source=n.slice(t)}function GS(i){const t=/^[\t\r\n\f ]+/.exec(i.source);t&&ff(i,t[0].length)}function rL(i,t,n){return F1(t,i.originalSource.slice(t.offset,n),n)}function eu(i,t,n,o=O_(i)){n&&(o.offset+=n,o.column+=n),i.options.onError(Cc(t,{start:o,end:o,source:""}))}function Cne(i,t,n){const o=i.source;switch(t){case 0:if(Bp(o,"</")){for(let l=n.length-1;l>=0;--l)if(YN(o,n[l].tag))return!0}break;case 1:case 2:{const l=GC(n);if(l&&YN(o,l.tag))return!0;break}case 3:if(Bp(o,"]]>"))return!0;break}return!o}function YN(i,t){return Bp(i,"</")&&i.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(i[2+t.length]||">")}function kne(i,t){mE(i,t,NB(i,i.children[0]))}function NB(i,t){const{children:n}=i;return n.length===1&&t.type===1&&!p2(t)}function mE(i,t,n=!1){const{children:o}=i,l=o.length;let d=0;for(let m=0;m<o.length;m++){const $=o[m];if($.type===1&&$.tagType===0){const h=n?0:P_($,t);if(h>0){if(h>=2){$.codegenNode.patchFlag="-1 /* HOISTED */",$.codegenNode=t.hoist($.codegenNode),d++;continue}}else{const e=$.codegenNode;if(e.type===13){const c=FB(e);if((!c||c===512||c===1)&&OB($,t)>=2){const P=MB($);P&&(e.props=t.hoist(P))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if($.type===1){const h=$.tagType===1;h&&t.scopes.vSlot++,mE($,t),h&&t.scopes.vSlot--}else if($.type===11)mE($,t,$.children.length===1);else if($.type===9)for(let h=0;h<$.branches.length;h++)mE($.branches[h],t,$.branches[h].children.length===1)}d&&t.transformHoist&&t.transformHoist(o,t,i),d&&d===l&&i.type===1&&i.tagType===0&&i.codegenNode&&i.codegenNode.type===13&&Dd(i.codegenNode.children)&&(i.codegenNode.children=t.hoist(J1(i.codegenNode.children)))}function P_(i,t){const{constantCache:n}=t;switch(i.type){case 1:if(i.tagType!==0)return 0;const o=n.get(i);if(o!==void 0)return o;const l=i.codegenNode;if(l.type!==13||l.isBlock&&i.tag!=="svg"&&i.tag!=="foreignObject")return 0;if(FB(l))return n.set(i,0),0;{let $=3;const h=OB(i,t);if(h===0)return n.set(i,0),0;h<$&&($=h);for(let e=0;e<i.children.length;e++){const c=P_(i.children[e],t);if(c===0)return n.set(i,0),0;c<$&&($=c)}if($>1)for(let e=0;e<i.props.length;e++){const c=i.props[e];if(c.type===7&&c.name==="bind"&&c.exp){const P=P_(c.exp,t);if(P===0)return n.set(i,0),0;P<$&&($=P)}}if(l.isBlock){for(let e=0;e<i.props.length;e++)if(i.props[e].type===7)return n.set(i,0),0;t.removeHelper(Sy),t.removeHelper(O1(t.inSSR,l.isComponent)),l.isBlock=!1,t.helper(I1(t.inSSR,l.isComponent))}return n.set(i,$),$}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return P_(i.content,t);case 4:return i.constType;case 8:let m=3;for(let $=0;$<i.children.length;$++){const h=i.children[$];if(lc(h)||x2(h))continue;const e=P_(h,t);if(e===0)return 0;e<m&&(m=e)}return m;default:return 0}}const Ane=new Set([MC,FC,s2,C2]);function IB(i,t){if(i.type===14&&!lc(i.callee)&&Ane.has(i.callee)){const n=i.arguments[0];if(n.type===4)return P_(n,t);if(n.type===14)return IB(n,t)}return 0}function OB(i,t){let n=3;const o=MB(i);if(o&&o.type===15){const{properties:l}=o;for(let d=0;d<l.length;d++){const{key:m,value:$}=l[d],h=P_(m,t);if(h===0)return h;h<n&&(n=h);let e;if($.type===4?e=P_($,t):$.type===14?e=IB($,t):e=0,e===0)return e;e<n&&(n=e)}}return n}function MB(i){const t=i.codegenNode;if(t.type===13)return t.props}function FB(i){const t=i.patchFlag;return t?parseInt(t,10):void 0}function wD(i,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,cacheHandlers:l=!1,nodeTransforms:d=[],directiveTransforms:m={},transformHoist:$=null,isBuiltInComponent:h=NF,isCustomElement:e=NF,expressionPlugins:c=[],scopeId:P=null,slotted:T=!0,ssr:s=!1,inSSR:D=!1,ssrCssVars:O="",bindingMetadata:W=Pee,inline:E=!1,isTS:v=!1,onError:S=l6,onWarn:te=WR,compatConfig:Y}){const Z=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),ce={selfName:Z&&by(Tg(Z[1])),prefixIdentifiers:n,hoistStatic:o,cacheHandlers:l,nodeTransforms:d,directiveTransforms:m,transformHoist:$,isBuiltInComponent:h,isCustomElement:e,expressionPlugins:c,scopeId:P,slotted:T,ssr:s,inSSR:D,ssrCssVars:O,bindingMetadata:W,inline:E,isTS:v,onError:S,onWarn:te,compatConfig:Y,root:i,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:i,childIndex:0,inVOnce:!1,helper(A){const y=ce.helpers.get(A)||0;return ce.helpers.set(A,y+1),A},removeHelper(A){const y=ce.helpers.get(A);if(y){const C=y-1;C?ce.helpers.set(A,C):ce.helpers.delete(A)}},helperString(A){return`_${Zd[ce.helper(A)]}`},replaceNode(A){{if(!ce.currentNode)throw new Error("Node being replaced is already removed.");if(!ce.parent)throw new Error("Cannot replace root node.")}ce.parent.children[ce.childIndex]=ce.currentNode=A},removeNode(A){if(!ce.parent)throw new Error("Cannot remove root node.");const y=ce.parent.children,C=A?y.indexOf(A):ce.currentNode?ce.childIndex:-1;if(C<0)throw new Error("node being removed is not a child of current parent");!A||A===ce.currentNode?(ce.currentNode=null,ce.onNodeRemoved()):ce.childIndex>C&&(ce.childIndex--,ce.onNodeRemoved()),ce.parent.children.splice(C,1)},onNodeRemoved:()=>{},addIdentifiers(A){lc(A)?k(A):A.identifiers?A.identifiers.forEach(k):A.type===4&&k(A.content)},removeIdentifiers(A){lc(A)?X(A):A.identifiers?A.identifiers.forEach(X):A.type===4&&X(A.content)},hoist(A){lc(A)&&(A=to(A)),ce.hoists.push(A);const y=to(`_hoisted_${ce.hoists.length}`,!1,A.loc,2);return y.hoisted=A,y},cache(A,y=!1){return HR(ce.cached++,A,y)}};function k(A){const{identifiers:y}=ce;y[A]===void 0&&(y[A]=0),y[A]++}function X(A){ce.identifiers[A]--}return ce}function KC(i,t){const n=wD(i,t);A2(i,n),t.hoistStatic&&kne(i,n),t.ssr||Pne(i,n),i.helpers=new Set([...n.helpers.keys()]),i.components=[...n.components],i.directives=[...n.directives],i.imports=n.imports,i.hoists=n.hoists,i.temps=n.temps,i.cached=n.cached}function Pne(i,t){const{helper:n}=t,{children:o}=i;if(o.length===1){const l=o[0];if(NB(i,l)&&l.codegenNode){const d=l.codegenNode;d.type===13&&UC(d,t),i.codegenNode=d}else i.codegenNode=l}else if(o.length>1){let l=64,d=fh[64];o.filter(m=>m.type!==3).length===1&&(l|=2048,d+=`, ${fh[2048]}`),i.codegenNode=u2(t,n(a2),void 0,i.children,l+` /* ${d} */`,void 0,void 0,!0,void 0,!1)}}function wne(i,t){let n=0;const o=()=>{n--};for(;n<i.children.length;n++){const l=i.children[n];lc(l)||(t.parent=i,t.childIndex=n,t.onNodeRemoved=o,A2(l,t))}}function A2(i,t){t.currentNode=i;const{nodeTransforms:n}=t,o=[];for(let d=0;d<n.length;d++){const m=n[d](i,t);if(m&&(Dd(m)?o.push(...m):o.push(m)),t.currentNode)i=t.currentNode;else return}switch(i.type){case 3:t.ssr||t.helper(E2);break;case 5:t.ssr||t.helper(kD);break;case 9:for(let d=0;d<i.branches.length;d++)A2(i.branches[d],t);break;case 10:case 11:case 1:case 0:wne(i,t);break}t.currentNode=i;let l=o.length;for(;l--;)o[l]()}function ND(i,t){const n=lc(i)?o=>o===i:o=>i.test(o);return(o,l)=>{if(o.type===1){const{props:d}=o;if(o.tagType===3&&d.some(J6))return;const m=[];for(let $=0;$<d.length;$++){const h=d[$];if(h.type===7&&n(h.name)){d.splice($,1),$--;const e=t(o,h,l);e&&m.push(e)}}return m}}}var P2={},V6={},QC={},z6={},tL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");z6.encode=function(i){if(0<=i&&i<tL.length)return tL[i];throw new TypeError("Must be between 0 and 63: "+i)};z6.decode=function(i){var t=65,n=90,o=97,l=122,d=48,m=57,$=43,h=47,e=26,c=52;return t<=i&&i<=n?i-t:o<=i&&i<=l?i-o+e:d<=i&&i<=m?i-d+c:i==$?62:i==h?63:-1};var LB=z6,W6=5,RB=1<<W6,BB=RB-1,jB=RB;function Nne(i){return i<0?(-i<<1)+1:(i<<1)+0}function Ine(i){var t=(i&1)===1,n=i>>1;return t?-n:n}QC.encode=function(t){var n="",o,l=Nne(t);do o=l&BB,l>>>=W6,l>0&&(o|=jB),n+=LB.encode(o);while(l>0);return n};QC.decode=function(t,n,o){var l=t.length,d=0,m=0,$,h;do{if(n>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(h=LB.decode(t.charCodeAt(n++)),h===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));$=!!(h&jB),h&=BB,d=d+(h<<m),m+=W6}while($);o.value=Ine(d),o.rest=n};var w2={};(function(i){function t(k,X,A){if(X in k)return k[X];if(arguments.length===3)return A;throw new Error('"'+X+'" is a required argument.')}i.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function l(k){var X=k.match(n);return X?{scheme:X[1],auth:X[2],host:X[3],port:X[4],path:X[5]}:null}i.urlParse=l;function d(k){var X="";return k.scheme&&(X+=k.scheme+":"),X+="//",k.auth&&(X+=k.auth+"@"),k.host&&(X+=k.host),k.port&&(X+=":"+k.port),k.path&&(X+=k.path),X}i.urlGenerate=d;var m=32;function $(k){var X=[];return function(A){for(var y=0;y<X.length;y++)if(X[y].input===A){var C=X[0];return X[0]=X[y],X[y]=C,X[0].result}var B=k(A);return X.unshift({input:A,result:B}),X.length>m&&X.pop(),B}}var h=$(function(X){var A=X,y=l(X);if(y){if(!y.path)return X;A=y.path}for(var C=i.isAbsolute(A),B=[],F=0,z=0;;)if(F=z,z=A.indexOf("/",F),z===-1){B.push(A.slice(F));break}else for(B.push(A.slice(F,z));z<A.length&&A[z]==="/";)z++;for(var ge,Pe=0,z=B.length-1;z>=0;z--)ge=B[z],ge==="."?B.splice(z,1):ge===".."?Pe++:Pe>0&&(ge===""?(B.splice(z+1,Pe),Pe=0):(B.splice(z,2),Pe--));return A=B.join("/"),A===""&&(A=C?"/":"."),y?(y.path=A,d(y)):A});i.normalize=h;function e(k,X){k===""&&(k="."),X===""&&(X=".");var A=l(X),y=l(k);if(y&&(k=y.path||"/"),A&&!A.scheme)return y&&(A.scheme=y.scheme),d(A);if(A||X.match(o))return X;if(y&&!y.host&&!y.path)return y.host=X,d(y);var C=X.charAt(0)==="/"?X:h(k.replace(/\/+$/,"")+"/"+X);return y?(y.path=C,d(y)):C}i.join=e,i.isAbsolute=function(k){return k.charAt(0)==="/"||n.test(k)};function c(k,X){k===""&&(k="."),k=k.replace(/\/$/,"");for(var A=0;X.indexOf(k+"/")!==0;){var y=k.lastIndexOf("/");if(y<0||(k=k.slice(0,y),k.match(/^([^\/]+:\/)?\/*$/)))return X;++A}return Array(A+1).join("../")+X.substr(k.length+1)}i.relative=c;var P=function(){var k=Object.create(null);return!("__proto__"in k)}();function T(k){return k}function s(k){return O(k)?"$"+k:k}i.toSetString=P?T:s;function D(k){return O(k)?k.slice(1):k}i.fromSetString=P?T:D;function O(k){if(!k)return!1;var X=k.length;if(X<9||k.charCodeAt(X-1)!==95||k.charCodeAt(X-2)!==95||k.charCodeAt(X-3)!==111||k.charCodeAt(X-4)!==116||k.charCodeAt(X-5)!==111||k.charCodeAt(X-6)!==114||k.charCodeAt(X-7)!==112||k.charCodeAt(X-8)!==95||k.charCodeAt(X-9)!==95)return!1;for(var A=X-10;A>=0;A--)if(k.charCodeAt(A)!==36)return!1;return!0}function W(k,X,A){var y=te(k.source,X.source);return y!==0||(y=k.originalLine-X.originalLine,y!==0)||(y=k.originalColumn-X.originalColumn,y!==0||A)||(y=k.generatedColumn-X.generatedColumn,y!==0)||(y=k.generatedLine-X.generatedLine,y!==0)?y:te(k.name,X.name)}i.compareByOriginalPositions=W;function E(k,X,A){var y;return y=k.originalLine-X.originalLine,y!==0||(y=k.originalColumn-X.originalColumn,y!==0||A)||(y=k.generatedColumn-X.generatedColumn,y!==0)||(y=k.generatedLine-X.generatedLine,y!==0)?y:te(k.name,X.name)}i.compareByOriginalPositionsNoSource=E;function v(k,X,A){var y=k.generatedLine-X.generatedLine;return y!==0||(y=k.generatedColumn-X.generatedColumn,y!==0||A)||(y=te(k.source,X.source),y!==0)||(y=k.originalLine-X.originalLine,y!==0)||(y=k.originalColumn-X.originalColumn,y!==0)?y:te(k.name,X.name)}i.compareByGeneratedPositionsDeflated=v;function S(k,X,A){var y=k.generatedColumn-X.generatedColumn;return y!==0||A||(y=te(k.source,X.source),y!==0)||(y=k.originalLine-X.originalLine,y!==0)||(y=k.originalColumn-X.originalColumn,y!==0)?y:te(k.name,X.name)}i.compareByGeneratedPositionsDeflatedNoLine=S;function te(k,X){return k===X?0:k===null?1:X===null?-1:k>X?1:-1}function Y(k,X){var A=k.generatedLine-X.generatedLine;return A!==0||(A=k.generatedColumn-X.generatedColumn,A!==0)||(A=te(k.source,X.source),A!==0)||(A=k.originalLine-X.originalLine,A!==0)||(A=k.originalColumn-X.originalColumn,A!==0)?A:te(k.name,X.name)}i.compareByGeneratedPositionsInflated=Y;function Z(k){return JSON.parse(k.replace(/^\)]}'[^\n]*\n/,""))}i.parseSourceMapInput=Z;function ce(k,X,A){if(X=X||"",k&&(k[k.length-1]!=="/"&&X[0]!=="/"&&(k+="/"),X=k+X),A){var y=l(A);if(!y)throw new Error("sourceMapURL could not be parsed");if(y.path){var C=y.path.lastIndexOf("/");C>=0&&(y.path=y.path.substring(0,C+1))}X=e(d(y),X)}return h(X)}i.computeSourceURL=ce})(w2);var q6={},$6=w2,H6=Object.prototype.hasOwnProperty,D1=typeof Map<"u";function hv(){this._array=[],this._set=D1?new Map:Object.create(null)}hv.fromArray=function(t,n){for(var o=new hv,l=0,d=t.length;l<d;l++)o.add(t[l],n);return o};hv.prototype.size=function(){return D1?this._set.size:Object.getOwnPropertyNames(this._set).length};hv.prototype.add=function(t,n){var o=D1?t:$6.toSetString(t),l=D1?this.has(t):H6.call(this._set,o),d=this._array.length;(!l||n)&&this._array.push(t),l||(D1?this._set.set(t,d):this._set[o]=d)};hv.prototype.has=function(t){if(D1)return this._set.has(t);var n=$6.toSetString(t);return H6.call(this._set,n)};hv.prototype.indexOf=function(t){if(D1){var n=this._set.get(t);if(n>=0)return n}else{var o=$6.toSetString(t);if(H6.call(this._set,o))return this._set[o]}throw new Error('"'+t+'" is not in the set.')};hv.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};hv.prototype.toArray=function(){return this._array.slice()};q6.ArraySet=hv;var JB={},UB=w2;function One(i,t){var n=i.generatedLine,o=t.generatedLine,l=i.generatedColumn,d=t.generatedColumn;return o>n||o==n&&d>=l||UB.compareByGeneratedPositionsInflated(i,t)<=0}function XC(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}XC.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};XC.prototype.add=function(t){One(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};XC.prototype.toArray=function(){return this._sorted||(this._array.sort(UB.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};JB.MappingList=XC;var uS=QC,Hl=w2,zE=q6.ArraySet,Mne=JB.MappingList;function wm(i){i||(i={}),this._file=Hl.getArg(i,"file",null),this._sourceRoot=Hl.getArg(i,"sourceRoot",null),this._skipValidation=Hl.getArg(i,"skipValidation",!1),this._sources=new zE,this._names=new zE,this._mappings=new Mne,this._sourcesContents=null}wm.prototype._version=3;wm.fromSourceMap=function(t){var n=t.sourceRoot,o=new wm({file:t.file,sourceRoot:n});return t.eachMapping(function(l){var d={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(d.source=l.source,n!=null&&(d.source=Hl.relative(n,d.source)),d.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(d.name=l.name)),o.addMapping(d)}),t.sources.forEach(function(l){var d=l;n!==null&&(d=Hl.relative(n,l)),o._sources.has(d)||o._sources.add(d);var m=t.sourceContentFor(l);m!=null&&o.setSourceContent(l,m)}),o};wm.prototype.addMapping=function(t){var n=Hl.getArg(t,"generated"),o=Hl.getArg(t,"original",null),l=Hl.getArg(t,"source",null),d=Hl.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,o,l,d),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:o!=null&&o.line,originalColumn:o!=null&&o.column,source:l,name:d})};wm.prototype.setSourceContent=function(t,n){var o=t;this._sourceRoot!=null&&(o=Hl.relative(this._sourceRoot,o)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Hl.toSetString(o)]=n):this._sourcesContents&&(delete this._sourcesContents[Hl.toSetString(o)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};wm.prototype.applySourceMap=function(t,n,o){var l=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=t.file}var d=this._sourceRoot;d!=null&&(l=Hl.relative(d,l));var m=new zE,$=new zE;this._mappings.unsortedForEach(function(h){if(h.source===l&&h.originalLine!=null){var e=t.originalPositionFor({line:h.originalLine,column:h.originalColumn});e.source!=null&&(h.source=e.source,o!=null&&(h.source=Hl.join(o,h.source)),d!=null&&(h.source=Hl.relative(d,h.source)),h.originalLine=e.line,h.originalColumn=e.column,e.name!=null&&(h.name=e.name))}var c=h.source;c!=null&&!m.has(c)&&m.add(c);var P=h.name;P!=null&&!$.has(P)&&$.add(P)},this),this._sources=m,this._names=$,t.sources.forEach(function(h){var e=t.sourceContentFor(h);e!=null&&(o!=null&&(h=Hl.join(o,h)),d!=null&&(h=Hl.relative(d,h)),this.setSourceContent(h,e))},this)};wm.prototype._validateMapping=function(t,n,o,l){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!o&&!l)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&o)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:o,original:n,name:l}))}};wm.prototype._serializeMappings=function(){for(var t=0,n=1,o=0,l=0,d=0,m=0,$="",h,e,c,P,T=this._mappings.toArray(),s=0,D=T.length;s<D;s++){if(e=T[s],h="",e.generatedLine!==n)for(t=0;e.generatedLine!==n;)h+=";",n++;else if(s>0){if(!Hl.compareByGeneratedPositionsInflated(e,T[s-1]))continue;h+=","}h+=uS.encode(e.generatedColumn-t),t=e.generatedColumn,e.source!=null&&(P=this._sources.indexOf(e.source),h+=uS.encode(P-m),m=P,h+=uS.encode(e.originalLine-1-l),l=e.originalLine-1,h+=uS.encode(e.originalColumn-o),o=e.originalColumn,e.name!=null&&(c=this._names.indexOf(e.name),h+=uS.encode(c-d),d=c)),$+=h}return $};wm.prototype._generateSourcesContent=function(t,n){return t.map(function(o){if(!this._sourcesContents)return null;n!=null&&(o=Hl.relative(n,o));var l=Hl.toSetString(o);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)};wm.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};wm.prototype.toString=function(){return JSON.stringify(this.toJSON())};V6.SourceMapGenerator=wm;var YC={},VB={};(function(i){i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2;function t(n,o,l,d,m,$){var h=Math.floor((o-n)/2)+n,e=m(l,d[h],!0);return e===0?h:e>0?o-h>1?t(h,o,l,d,m,$):$==i.LEAST_UPPER_BOUND?o<d.length?o:-1:h:h-n>1?t(n,h,l,d,m,$):$==i.LEAST_UPPER_BOUND?h:n<0?-1:n}i.search=function(o,l,d,m){if(l.length===0)return-1;var $=t(-1,l.length,o,l,d,m||i.GREATEST_LOWER_BOUND);if($<0)return-1;for(;$-1>=0&&d(l[$],l[$-1],!0)===0;)--$;return $}})(VB);var zB={};function Fne(i){function t(l,d,m){var $=l[d];l[d]=l[m],l[m]=$}function n(l,d){return Math.round(l+Math.random()*(d-l))}function o(l,d,m,$){if(m<$){var h=n(m,$),e=m-1;t(l,h,$);for(var c=l[$],P=m;P<$;P++)d(l[P],c,!1)<=0&&(e+=1,t(l,e,P));t(l,e+1,P);var T=e+1;o(l,d,m,T-1),o(l,d,T+1,$)}}return o}function Lne(i){let t=Fne.toString();return new Function(`return ${t}`)()(i)}let nL=new WeakMap;zB.quickSort=function(i,t,n=0){let o=nL.get(t);o===void 0&&(o=Lne(t),nL.set(t,o)),o(i,t,n,i.length-1)};var To=w2,G6=VB,d2=q6.ArraySet,Rne=QC,KS=zB.quickSort;function Ru(i,t){var n=i;return typeof i=="string"&&(n=To.parseSourceMapInput(i)),n.sections!=null?new Ag(n,t):new cp(n,t)}Ru.fromSourceMap=function(i,t){return cp.fromSourceMap(i,t)};Ru.prototype._version=3;Ru.prototype.__generatedMappings=null;Object.defineProperty(Ru.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ru.prototype.__originalMappings=null;Object.defineProperty(Ru.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ru.prototype._charIsMappingSeparator=function(t,n){var o=t.charAt(n);return o===";"||o===","};Ru.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Ru.GENERATED_ORDER=1;Ru.ORIGINAL_ORDER=2;Ru.GREATEST_LOWER_BOUND=1;Ru.LEAST_UPPER_BOUND=2;Ru.prototype.eachMapping=function(t,n,o){var l=n||null,d=o||Ru.GENERATED_ORDER,m;switch(d){case Ru.GENERATED_ORDER:m=this._generatedMappings;break;case Ru.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var $=this.sourceRoot,h=t.bind(l),e=this._names,c=this._sources,P=this._sourceMapURL,T=0,s=m.length;T<s;T++){var D=m[T],O=D.source===null?null:c.at(D.source);O=To.computeSourceURL($,O,P),h({source:O,generatedLine:D.generatedLine,generatedColumn:D.generatedColumn,originalLine:D.originalLine,originalColumn:D.originalColumn,name:D.name===null?null:e.at(D.name)})}};Ru.prototype.allGeneratedPositionsFor=function(t){var n=To.getArg(t,"line"),o={source:To.getArg(t,"source"),originalLine:n,originalColumn:To.getArg(t,"column",0)};if(o.source=this._findSourceIndex(o.source),o.source<0)return[];var l=[],d=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",To.compareByOriginalPositions,G6.LEAST_UPPER_BOUND);if(d>=0){var m=this._originalMappings[d];if(t.column===void 0)for(var $=m.originalLine;m&&m.originalLine===$;)l.push({line:To.getArg(m,"generatedLine",null),column:To.getArg(m,"generatedColumn",null),lastColumn:To.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++d];else for(var h=m.originalColumn;m&&m.originalLine===n&&m.originalColumn==h;)l.push({line:To.getArg(m,"generatedLine",null),column:To.getArg(m,"generatedColumn",null),lastColumn:To.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++d]}return l};YC.SourceMapConsumer=Ru;function cp(i,t){var n=i;typeof i=="string"&&(n=To.parseSourceMapInput(i));var o=To.getArg(n,"version"),l=To.getArg(n,"sources"),d=To.getArg(n,"names",[]),m=To.getArg(n,"sourceRoot",null),$=To.getArg(n,"sourcesContent",null),h=To.getArg(n,"mappings"),e=To.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);m&&(m=To.normalize(m)),l=l.map(String).map(To.normalize).map(function(c){return m&&To.isAbsolute(m)&&To.isAbsolute(c)?To.relative(m,c):c}),this._names=d2.fromArray(d.map(String),!0),this._sources=d2.fromArray(l,!0),this._absoluteSources=this._sources.toArray().map(function(c){return To.computeSourceURL(m,c,t)}),this.sourceRoot=m,this.sourcesContent=$,this._mappings=h,this._sourceMapURL=t,this.file=e}cp.prototype=Object.create(Ru.prototype);cp.prototype.consumer=Ru;cp.prototype._findSourceIndex=function(i){var t=i;if(this.sourceRoot!=null&&(t=To.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==i)return n;return-1};cp.fromSourceMap=function(t,n){var o=Object.create(cp.prototype),l=o._names=d2.fromArray(t._names.toArray(),!0),d=o._sources=d2.fromArray(t._sources.toArray(),!0);o.sourceRoot=t._sourceRoot,o.sourcesContent=t._generateSourcesContent(o._sources.toArray(),o.sourceRoot),o.file=t._file,o._sourceMapURL=n,o._absoluteSources=o._sources.toArray().map(function(s){return To.computeSourceURL(o.sourceRoot,s,n)});for(var m=t._mappings.toArray().slice(),$=o.__generatedMappings=[],h=o.__originalMappings=[],e=0,c=m.length;e<c;e++){var P=m[e],T=new WB;T.generatedLine=P.generatedLine,T.generatedColumn=P.generatedColumn,P.source&&(T.source=d.indexOf(P.source),T.originalLine=P.originalLine,T.originalColumn=P.originalColumn,P.name&&(T.name=l.indexOf(P.name)),h.push(T)),$.push(T)}return KS(o.__originalMappings,To.compareByOriginalPositions),o};cp.prototype._version=3;Object.defineProperty(cp.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function WB(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}const uN=To.compareByGeneratedPositionsDeflatedNoLine;function iL(i,t){let n=i.length,o=i.length-t;if(!(o<=1))if(o==2){let l=i[t],d=i[t+1];uN(l,d)>0&&(i[t]=d,i[t+1]=l)}else if(o<20)for(let l=t;l<n;l++)for(let d=l;d>t;d--){let m=i[d-1],$=i[d];if(uN(m,$)<=0)break;i[d-1]=$,i[d]=m}else KS(i,uN,t)}cp.prototype._parseMappings=function(t,n){var o=1,l=0,d=0,m=0,$=0,h=0,e=t.length,c=0,P={},T=[],s=[],D,O,W,E;let v=0;for(;c<e;)if(t.charAt(c)===";")o++,c++,l=0,iL(s,v),v=s.length;else if(t.charAt(c)===",")c++;else{for(D=new WB,D.generatedLine=o,W=c;W<e&&!this._charIsMappingSeparator(t,W);W++);for(t.slice(c,W),O=[];c<W;)Rne.decode(t,c,P),E=P.value,c=P.rest,O.push(E);if(O.length===2)throw new Error("Found a source, but no line and column");if(O.length===3)throw new Error("Found a source and line, but no column");if(D.generatedColumn=l+O[0],l=D.generatedColumn,O.length>1&&(D.source=$+O[1],$+=O[1],D.originalLine=d+O[2],d=D.originalLine,D.originalLine+=1,D.originalColumn=m+O[3],m=D.originalColumn,O.length>4&&(D.name=h+O[4],h+=O[4])),s.push(D),typeof D.originalLine=="number"){let te=D.source;for(;T.length<=te;)T.push(null);T[te]===null&&(T[te]=[]),T[te].push(D)}}iL(s,v),this.__generatedMappings=s;for(var S=0;S<T.length;S++)T[S]!=null&&KS(T[S],To.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...T)};cp.prototype._findMapping=function(t,n,o,l,d,m){if(t[o]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[o]);if(t[l]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[l]);return G6.search(t,n,d,m)};cp.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var o=this._generatedMappings[t+1];if(n.generatedLine===o.generatedLine){n.lastGeneratedColumn=o.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};cp.prototype.originalPositionFor=function(t){var n={generatedLine:To.getArg(t,"line"),generatedColumn:To.getArg(t,"column")},o=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",To.compareByGeneratedPositionsDeflated,To.getArg(t,"bias",Ru.GREATEST_LOWER_BOUND));if(o>=0){var l=this._generatedMappings[o];if(l.generatedLine===n.generatedLine){var d=To.getArg(l,"source",null);d!==null&&(d=this._sources.at(d),d=To.computeSourceURL(this.sourceRoot,d,this._sourceMapURL));var m=To.getArg(l,"name",null);return m!==null&&(m=this._names.at(m)),{source:d,line:To.getArg(l,"originalLine",null),column:To.getArg(l,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}};cp.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};cp.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var o=this._findSourceIndex(t);if(o>=0)return this.sourcesContent[o];var l=t;this.sourceRoot!=null&&(l=To.relative(this.sourceRoot,l));var d;if(this.sourceRoot!=null&&(d=To.urlParse(this.sourceRoot))){var m=l.replace(/^file:\/\//,"");if(d.scheme=="file"&&this._sources.has(m))return this.sourcesContent[this._sources.indexOf(m)];if((!d.path||d.path=="/")&&this._sources.has("/"+l))return this.sourcesContent[this._sources.indexOf("/"+l)]}if(n)return null;throw new Error('"'+l+'" is not in the SourceMap.')};cp.prototype.generatedPositionFor=function(t){var n=To.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var o={source:n,originalLine:To.getArg(t,"line"),originalColumn:To.getArg(t,"column")},l=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",To.compareByOriginalPositions,To.getArg(t,"bias",Ru.GREATEST_LOWER_BOUND));if(l>=0){var d=this._originalMappings[l];if(d.source===o.source)return{line:To.getArg(d,"generatedLine",null),column:To.getArg(d,"generatedColumn",null),lastColumn:To.getArg(d,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};YC.BasicSourceMapConsumer=cp;function Ag(i,t){var n=i;typeof i=="string"&&(n=To.parseSourceMapInput(i));var o=To.getArg(n,"version"),l=To.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new d2,this._names=new d2;var d={line:-1,column:0};this._sections=l.map(function(m){if(m.url)throw new Error("Support for url field in sections not implemented.");var $=To.getArg(m,"offset"),h=To.getArg($,"line"),e=To.getArg($,"column");if(h<d.line||h===d.line&&e<d.column)throw new Error("Section offsets must be ordered and non-overlapping.");return d=$,{generatedOffset:{generatedLine:h+1,generatedColumn:e+1},consumer:new Ru(To.getArg(m,"map"),t)}})}Ag.prototype=Object.create(Ru.prototype);Ag.prototype.constructor=Ru;Ag.prototype._version=3;Object.defineProperty(Ag.prototype,"sources",{get:function(){for(var i=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)i.push(this._sections[t].consumer.sources[n]);return i}});Ag.prototype.originalPositionFor=function(t){var n={generatedLine:To.getArg(t,"line"),generatedColumn:To.getArg(t,"column")},o=G6.search(n,this._sections,function(d,m){var $=d.generatedLine-m.generatedOffset.generatedLine;return $||d.generatedColumn-m.generatedOffset.generatedColumn}),l=this._sections[o];return l?l.consumer.originalPositionFor({line:n.generatedLine-(l.generatedOffset.generatedLine-1),column:n.generatedColumn-(l.generatedOffset.generatedLine===n.generatedLine?l.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Ag.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Ag.prototype.sourceContentFor=function(t,n){for(var o=0;o<this._sections.length;o++){var l=this._sections[o],d=l.consumer.sourceContentFor(t,!0);if(d)return d}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Ag.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var o=this._sections[n];if(o.consumer._findSourceIndex(To.getArg(t,"source"))!==-1){var l=o.consumer.generatedPositionFor(t);if(l){var d={line:l.line+(o.generatedOffset.generatedLine-1),column:l.column+(o.generatedOffset.generatedLine===l.line?o.generatedOffset.generatedColumn-1:0)};return d}}}return{line:null,column:null}};Ag.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var o=0;o<this._sections.length;o++)for(var l=this._sections[o],d=l.consumer._generatedMappings,m=0;m<d.length;m++){var $=d[m],h=l.consumer._sources.at($.source);h=To.computeSourceURL(l.consumer.sourceRoot,h,this._sourceMapURL),this._sources.add(h),h=this._sources.indexOf(h);var e=null;$.name&&(e=l.consumer._names.at($.name),this._names.add(e),e=this._names.indexOf(e));var c={source:h,generatedLine:$.generatedLine+(l.generatedOffset.generatedLine-1),generatedColumn:$.generatedColumn+(l.generatedOffset.generatedLine===$.generatedLine?l.generatedOffset.generatedColumn-1:0),originalLine:$.originalLine,originalColumn:$.originalColumn,name:e};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}KS(this.__generatedMappings,To.compareByGeneratedPositionsDeflated),KS(this.__originalMappings,To.compareByOriginalPositions)};YC.IndexedSourceMapConsumer=Ag;var qB={},Bne=V6.SourceMapGenerator,WE=w2,jne=/(\r?\n)/,Jne=10,N2="$$$isSourceNode$$$";function M_(i,t,n,o,l){this.children=[],this.sourceContents={},this.line=i??null,this.column=t??null,this.source=n??null,this.name=l??null,this[N2]=!0,o!=null&&this.add(o)}M_.fromStringWithSourceMap=function(t,n,o){var l=new M_,d=t.split(jne),m=0,$=function(){var T=D(),s=D()||"";return T+s;function D(){return m<d.length?d[m++]:void 0}},h=1,e=0,c=null;return n.eachMapping(function(T){if(c!==null)if(h<T.generatedLine)P(c,$()),h++,e=0;else{var s=d[m]||"",D=s.substr(0,T.generatedColumn-e);d[m]=s.substr(T.generatedColumn-e),e=T.generatedColumn,P(c,D),c=T;return}for(;h<T.generatedLine;)l.add($()),h++;if(e<T.generatedColumn){var s=d[m]||"";l.add(s.substr(0,T.generatedColumn)),d[m]=s.substr(T.generatedColumn),e=T.generatedColumn}c=T},this),m<d.length&&(c&&P(c,$()),l.add(d.splice(m).join(""))),n.sources.forEach(function(T){var s=n.sourceContentFor(T);s!=null&&(o!=null&&(T=WE.join(o,T)),l.setSourceContent(T,s))}),l;function P(T,s){if(T===null||T.source===void 0)l.add(s);else{var D=o?WE.join(o,T.source):T.source;l.add(new M_(T.originalLine,T.originalColumn,D,s,T.name))}}};M_.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[N2]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};M_.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[N2]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};M_.prototype.walk=function(t){for(var n,o=0,l=this.children.length;o<l;o++)n=this.children[o],n[N2]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};M_.prototype.join=function(t){var n,o,l=this.children.length;if(l>0){for(n=[],o=0;o<l-1;o++)n.push(this.children[o]),n.push(t);n.push(this.children[o]),this.children=n}return this};M_.prototype.replaceRight=function(t,n){var o=this.children[this.children.length-1];return o[N2]?o.replaceRight(t,n):typeof o=="string"?this.children[this.children.length-1]=o.replace(t,n):this.children.push("".replace(t,n)),this};M_.prototype.setSourceContent=function(t,n){this.sourceContents[WE.toSetString(t)]=n};M_.prototype.walkSourceContents=function(t){for(var n=0,o=this.children.length;n<o;n++)this.children[n][N2]&&this.children[n].walkSourceContents(t);for(var l=Object.keys(this.sourceContents),n=0,o=l.length;n<o;n++)t(WE.fromSetString(l[n]),this.sourceContents[l[n]])};M_.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};M_.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},o=new Bne(t),l=!1,d=null,m=null,$=null,h=null;return this.walk(function(e,c){n.code+=e,c.source!==null&&c.line!==null&&c.column!==null?((d!==c.source||m!==c.line||$!==c.column||h!==c.name)&&o.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name}),d=c.source,m=c.line,$=c.column,h=c.name,l=!0):l&&(o.addMapping({generated:{line:n.line,column:n.column}}),d=null,l=!1);for(var P=0,T=e.length;P<T;P++)e.charCodeAt(P)===Jne?(n.line++,n.column=0,P+1===T?(d=null,l=!1):l&&o.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name})):n.column++}),this.walkSourceContents(function(e,c){o.setSourceContent(e,c)}),{code:n.code,map:o}};qB.SourceNode=M_;var K6=P2.SourceMapGenerator=V6.SourceMapGenerator,aL=P2.SourceMapConsumer=YC.SourceMapConsumer;P2.SourceNode=qB.SourceNode;const ID="/*#__PURE__*/",gE=i=>`${Zd[i]}: _${Zd[i]}`;function oL(i,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:l="template.vue.html",scopeId:d=null,optimizeImports:m=!1,runtimeGlobalName:$="Vue",runtimeModuleName:h="vue",ssrRuntimeModuleName:e="vue/server-renderer",ssr:c=!1,isTS:P=!1,inSSR:T=!1}){const s={mode:t,prefixIdentifiers:n,sourceMap:o,filename:l,scopeId:d,optimizeImports:m,runtimeGlobalName:$,runtimeModuleName:h,ssrRuntimeModuleName:e,ssr:c,isTS:P,inSSR:T,source:i.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(W){return`_${Zd[W]}`},push(W,E){if(s.code+=W,s.map){if(E){let v;if(E.type===4&&!E.isStatic){const S=E.content.replace(/^_ctx\./,"");S!==E.content&&xy(S)&&(v=S)}O(E.loc.start,v)}l2(s,W),E&&E.loc!==rl&&O(E.loc.end)}},indent(){D(++s.indentLevel)},deindent(W=!1){W?--s.indentLevel:D(--s.indentLevel)},newline(){D(s.indentLevel)}};function D(W){s.push(`
`+" ".repeat(W))}function O(W,E){s.map.addMapping({name:E,source:s.filename,original:{line:W.line,column:W.column-1},generated:{line:s.line,column:s.column-1}})}return o&&(s.map=new K6,s.map.setSourceContent(l,s.source)),s}function Q6(i,t={}){const n=oL(i,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:l,prefixIdentifiers:d,indent:m,deindent:$,newline:h,scopeId:e,ssr:c}=n,P=Array.from(i.helpers),T=P.length>0,s=!d&&o!=="module",D=e!=null&&o==="module",O=!!t.inline,W=O?oL(i,t):n;o==="module"?Vne(i,W,D,O):Une(i,W);const E=c?"ssrRender":"render",v=c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];t.bindingMetadata&&!t.inline&&v.push("$props","$setup","$data","$options");const S=t.isTS?v.map(te=>`${te}: any`).join(","):v.join(", ");if(l(O?`(${S}) => {`:`function ${E}(${S}) {`),m(),s&&(l("with (_ctx) {"),m(),T&&(l(`const { ${P.map(gE).join(", ")} } = _Vue`),l(`
`),h())),i.components.length&&(sL(i.components,"component",n),(i.directives.length||i.temps>0)&&h()),i.directives.length&&(sL(i.directives,"directive",n),i.temps>0&&h()),i.temps>0){l("let ");for(let te=0;te<i.temps;te++)l(`${te>0?", ":""}_temp${te}`)}return(i.components.length||i.directives.length||i.temps)&&(l(`
`),h()),c||l("return "),i.codegenNode?Yu(i.codegenNode,n):l("null"),s&&($(),l("}")),$(),l("}"),{ast:i,code:n.code,preamble:O?W.code:"",map:n.map?n.map.toJSON():void 0}}function Une(i,t){const{ssr:n,prefixIdentifiers:o,push:l,newline:d,runtimeModuleName:m,runtimeGlobalName:$,ssrRuntimeModuleName:h}=t,e=n?`require(${JSON.stringify(m)})`:$,c=Array.from(i.helpers);if(c.length>0){if(o)l(`const { ${c.map(gE).join(", ")} } = ${e}
`);else if(l(`const _Vue = ${e}
`),i.hoists.length){const P=[CD,AC,E2,PC,wC].filter(T=>c.includes(T)).map(gE).join(", ");l(`const { ${P} } = _Vue
`)}}i.ssrHelpers&&i.ssrHelpers.length&&l(`const { ${i.ssrHelpers.map(gE).join(", ")} } = require("${h}")
`),$B(i.hoists,t),d(),l("return ")}function Vne(i,t,n,o){const{push:l,newline:d,optimizeImports:m,runtimeModuleName:$,ssrRuntimeModuleName:h}=t;if(n&&i.hoists.length&&(i.helpers.add(RC),i.helpers.add(BC)),i.helpers.size){const e=Array.from(i.helpers);m?(l(`import { ${e.map(c=>Zd[c]).join(", ")} } from ${JSON.stringify($)}
`),l(`
// Binding optimization for webpack code-split
const ${e.map(c=>`_${Zd[c]} = ${Zd[c]}`).join(", ")}
`)):l(`import { ${e.map(c=>`${Zd[c]} as _${Zd[c]}`).join(", ")} } from ${JSON.stringify($)}
`)}i.ssrHelpers&&i.ssrHelpers.length&&l(`import { ${i.ssrHelpers.map(e=>`${Zd[e]} as _${Zd[e]}`).join(", ")} } from "${h}"
`),i.imports.length&&(zne(i.imports,t),d()),$B(i.hoists,t),d(),o||l("export ")}function sL(i,t,{helper:n,push:o,newline:l,isTS:d}){const m=n(t==="component"?VS:NC);for(let $=0;$<i.length;$++){let h=i[$];const e=h.endsWith("__self");e&&(h=h.slice(0,-6)),o(`const ${HS(h,t)} = ${m}(${JSON.stringify(h)}${e?", true":""})${d?"!":""}`),$<i.length-1&&l()}}function $B(i,t){if(!i.length)return;t.pure=!0;const{push:n,newline:o,helper:l,scopeId:d,mode:m}=t,$=d!=null&&m!=="function";o(),$&&(n(`const _withScopeId = n => (${l(RC)}("${d}"),n=n(),${l(BC)}(),n)`),o());for(let h=0;h<i.length;h++){const e=i[h];if(e){const c=$&&e.type===13;n(`const _hoisted_${h+1} = ${c?`${ID} _withScopeId(() => `:""}`),Yu(e,t),c&&n(")"),o()}}t.pure=!1}function zne(i,t){i.length&&i.forEach(n=>{t.push("import "),Yu(n.exp,t),t.push(` from '${n.path}'`),t.newline()})}function Wne(i){return lc(i)||i.type===4||i.type===2||i.type===5||i.type===8}function ZC(i,t){const n=i.length>3||i.some(o=>Dd(o)||!Wne(o));t.push("["),n&&t.indent(),I2(i,t,n),n&&t.deindent(),t.push("]")}function I2(i,t,n=!1,o=!0){const{push:l,newline:d}=t;for(let m=0;m<i.length;m++){const $=i[m];lc($)?l($):Dd($)?ZC($,t):Yu($,t),m<i.length-1&&(n?(o&&l(","),d()):o&&l(", "))}}function Yu(i,t){if(lc(i)){t.push(i);return}if(x2(i)){t.push(t.helper(i));return}switch(i.type){case 1:case 9:case 11:KN(i.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),Yu(i.codegenNode,t);break;case 2:qne(i,t);break;case 4:HB(i,t);break;case 5:$ne(i,t);break;case 12:Yu(i.codegenNode,t);break;case 8:GB(i,t);break;case 3:Gne(i,t);break;case 13:Kne(i,t);break;case 14:Xne(i,t);break;case 15:Yne(i,t);break;case 17:Zne(i,t);break;case 18:eie(i,t);break;case 19:rie(i,t);break;case 20:tie(i,t);break;case 21:I2(i.body,t,!0,!1);break;case 22:nie(i,t);break;case 23:KB(i,t);break;case 24:iie(i,t);break;case 25:aie(i,t);break;case 26:oie(i,t);break;case 10:break;default:return KN(!1,`unhandled codegen node type: ${i.type}`),i}}function qne(i,t){t.push(JSON.stringify(i.content),i)}function HB(i,t){const{content:n,isStatic:o}=i;t.push(o?JSON.stringify(n):n,i)}function $ne(i,t){const{push:n,helper:o,pure:l}=t;l&&n(ID),n(`${o(kD)}(`),Yu(i.content,t),n(")")}function GB(i,t){for(let n=0;n<i.children.length;n++){const o=i.children[n];lc(o)?t.push(o):Yu(o,t)}}function Hne(i,t){const{push:n}=t;if(i.type===8)n("["),GB(i,t),n("]");else if(i.isStatic){const o=xy(i.content)?i.content:JSON.stringify(i.content);n(o,i)}else n(`[${i.content}]`,i)}function Gne(i,t){const{push:n,helper:o,pure:l}=t;l&&n(ID),n(`${o(E2)}(${JSON.stringify(i.content)})`,i)}function Kne(i,t){const{push:n,helper:o,pure:l}=t,{tag:d,props:m,children:$,patchFlag:h,dynamicProps:e,directives:c,isBlock:P,disableTracking:T,isComponent:s}=i;c&&n(o(IC)+"("),P&&n(`(${o(Sy)}(${T?"true":""}), `),l&&n(ID);const D=P?O1(t.inSSR,s):I1(t.inSSR,s);n(o(D)+"(",i),I2(Qne([d,m,$,h,e]),t),n(")"),P&&n(")"),c&&(n(", "),Yu(c,t),n(")"))}function Qne(i){let t=i.length;for(;t--&&i[t]==null;);return i.slice(0,t+1).map(n=>n||"null")}function Xne(i,t){const{push:n,helper:o,pure:l}=t,d=lc(i.callee)?i.callee:o(i.callee);l&&n(ID),n(d+"(",i),I2(i.arguments,t),n(")")}function Yne(i,t){const{push:n,indent:o,deindent:l,newline:d}=t,{properties:m}=i;if(!m.length){n("{}",i);return}const $=m.length>1||m.some(h=>h.value.type!==4);n($?"{":"{ "),$&&o();for(let h=0;h<m.length;h++){const{key:e,value:c}=m[h];Hne(e,t),n(": "),Yu(c,t),h<m.length-1&&(n(","),d())}$&&l(),n($?"}":" }")}function Zne(i,t){ZC(i.elements,t)}function eie(i,t){const{push:n,indent:o,deindent:l}=t,{params:d,returns:m,body:$,newline:h,isSlot:e}=i;e&&n(`_${Zd[jC]}(`),n("(",i),Dd(d)?I2(d,t):d&&Yu(d,t),n(") => "),(h||$)&&(n("{"),o()),m?(h&&n("return "),Dd(m)?ZC(m,t):Yu(m,t)):$&&Yu($,t),(h||$)&&(l(),n("}")),e&&n(")")}function rie(i,t){const{test:n,consequent:o,alternate:l,newline:d}=i,{push:m,indent:$,deindent:h,newline:e}=t;if(n.type===4){const P=!xy(n.content);P&&m("("),HB(n,t),P&&m(")")}else m("("),Yu(n,t),m(")");d&&$(),t.indentLevel++,d||m(" "),m("? "),Yu(o,t),t.indentLevel--,d&&e(),d||m(" "),m(": ");const c=l.type===19;c||t.indentLevel++,Yu(l,t),c||t.indentLevel--,d&&h(!0)}function tie(i,t){const{push:n,helper:o,indent:l,deindent:d,newline:m}=t;n(`_cache[${i.index}] || (`),i.isVNode&&(l(),n(`${o(zS)}(-1),`),m()),n(`_cache[${i.index}] = `),Yu(i.value,t),i.isVNode&&(n(","),m(),n(`${o(zS)}(1),`),m(),n(`_cache[${i.index}]`),d()),n(")")}function nie(i,t){const{push:n,indent:o,deindent:l}=t;n("`");const d=i.elements.length,m=d>3;for(let $=0;$<d;$++){const h=i.elements[$];lc(h)?n(h.replace(/(`|\$|\\)/g,"\\$1")):(n("${"),m&&o(),Yu(h,t),m&&l(),n("}"))}n("`")}function KB(i,t){const{push:n,indent:o,deindent:l}=t,{test:d,consequent:m,alternate:$}=i;n("if ("),Yu(d,t),n(") {"),o(),Yu(m,t),l(),n("}"),$&&(n(" else "),$.type===23?KB($,t):(n("{"),o(),Yu($,t),l(),n("}")))}function iie(i,t){Yu(i.left,t),t.push(" = "),Yu(i.right,t)}function aie(i,t){t.push("("),I2(i.expressions,t),t.push(")")}function oie({returns:i},t){t.push("return "),Dd(i)?ZC(i,t):Yu(i,t)}class sie{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,n,o,l){t&&(o!==null?t[n][o]=l:t[n]=l)}remove(t,n,o){t&&(o!==null?t[n].splice(o,1):delete t[n])}}class cie extends sie{constructor(t,n){super(),this.enter=t,this.leave=n}visit(t,n,o,l){if(t){if(this.enter){const d=this.should_skip,m=this.should_remove,$=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,n,o,l),this.replacement&&(t=this.replacement,this.replace(n,o,l,t)),this.should_remove&&this.remove(n,o,l);const h=this.should_skip,e=this.should_remove;if(this.should_skip=d,this.should_remove=m,this.replacement=$,h)return t;if(e)return null}for(const d in t){const m=t[d];if(typeof m=="object")if(Array.isArray(m))for(let $=0;$<m.length;$+=1)m[$]!==null&&typeof m[$].type=="string"&&(this.visit(m[$],t,d,$)||$--);else m!==null&&typeof m.type=="string"&&this.visit(m,t,d,null)}if(this.leave){const d=this.replacement,m=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,n,o,l),this.replacement&&(t=this.replacement,this.replace(n,o,l,t)),this.should_remove&&this.remove(n,o,l);const $=this.should_remove;if(this.replacement=d,this.should_remove=m,$)return null}}return t}}function OD(i,{enter:t,leave:n}){return new cie(t,n).visit(i,null)}function U1(i,t,n=!1,o=[],l=Object.create(null)){const d=i.type==="Program"&&i.body[0].type==="ExpressionStatement"&&i.body[0].expression;OD(i,{enter(m,$){if($&&o.push($),$&&$.type.startsWith("TS")&&!X6.includes($.type))return this.skip();if(m.type==="Identifier"){const h=!!l[m.name],e=ek(m,$,o);(n||e&&!h)&&t(m,$,o,e,h)}else m.type==="ObjectProperty"&&$.type==="ObjectPattern"?m.inPattern=!0:km(m)?rk(m,h=>cL(m,h,l)):m.type==="BlockStatement"&&QB(m,h=>cL(m,h,l))},leave(m,$){if($&&o.pop(),m!==d&&m.scopeIds)for(const h of m.scopeIds)l[h]--,l[h]===0&&delete l[h]}})}function ek(i,t,n){if(!t)return!0;if(i.name==="arguments")return!1;if(uie(i,t))return!0;switch(t.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectPattern":case"ArrayPattern":return Cy(t,n)}return!1}function Cy(i,t){if(i&&(i.type==="ObjectProperty"||i.type==="ArrayPattern")){let n=t.length;for(;n--;){const o=t[n];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function rk(i,t){for(const n of i.params)for(const o of A_(n))t(o)}function QB(i,t){for(const n of i.body)if(n.type==="VariableDeclaration"){if(n.declare)continue;for(const o of n.declarations)for(const l of A_(o.id))t(l)}else if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){if(n.declare||!n.id)continue;t(n.id)}}function A_(i,t=[]){switch(i.type){case"Identifier":t.push(i);break;case"MemberExpression":let n=i;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const o of i.properties)o.type==="RestElement"?A_(o.argument,t):A_(o.value,t);break;case"ArrayPattern":i.elements.forEach(o=>{o&&A_(o,t)});break;case"RestElement":A_(i.argument,t);break;case"AssignmentPattern":A_(i.left,t);break}return t}function cL(i,t,n){const{name:o}=t;i.scopeIds&&i.scopeIds.has(o)||(o in n?n[o]++:n[o]=1,(i.scopeIds||(i.scopeIds=new Set)).add(o))}const km=i=>/Function(?:Expression|Declaration)$|Method$/.test(i.type),ky=i=>i&&(i.type==="ObjectProperty"||i.type==="ObjectMethod")&&!i.computed,XB=(i,t)=>ky(t)&&t.key===i;function uie(i,t,n){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===i?!!t.computed:t.object===i;case"JSXMemberExpression":return t.object===i;case"VariableDeclarator":return t.init===i;case"ArrowFunctionExpression":return t.body===i;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===i?!!t.computed:!1;case"ObjectProperty":return t.key===i?!!t.computed:!n||n.type!=="ObjectPattern";case"ClassProperty":return t.key===i?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==i;case"ClassDeclaration":case"ClassExpression":return t.superClass===i;case"AssignmentExpression":return t.right===i;case"AssignmentPattern":return t.right===i;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return n!=null&&n.source?!1:t.local===i;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==i;case"TSEnumMember":return t.id!==i;case"TSPropertySignature":return t.key===i?!!t.computed:!0}return!0}const X6=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"],lie=lp("true,false,null,this"),fie=/\w\s*\(|\.[^\d]/,Y6=(i,t)=>{if(i.type===5)i.content=Sd(i.content,t);else if(i.type===1)for(let n=0;n<i.props.length;n++){const o=i.props[n];if(o.type===7&&o.name!=="for"){const l=o.exp,d=o.arg;l&&l.type===4&&!(o.name==="on"&&d)&&(o.exp=Sd(l,t,o.name==="slot")),d&&d.type===4&&!d.isStatic&&(o.arg=Sd(d,t))}}};function Sd(i,t,n=!1,o=!1,l=Object.create(t.identifiers)){if(!t.prefixIdentifiers||!i.content.trim())return i;const{inline:d,bindingMetadata:m}=t,$=(E,v,S)=>{const te=CC(m,E)&&m[E];if(d){const Y=v&&v.type==="AssignmentExpression"&&v.left===S,Z=v&&v.type==="UpdateExpression"&&v.argument===S,ce=v&&Cy(v,s);if(uL(te)||te==="setup-reactive-const"||l[E])return E;if(te==="setup-ref")return`${E}.value`;if(te==="setup-maybe-ref")return Y||Z||ce?`${E}.value`:`${t.helperString(c2)}(${E})`;if(te==="setup-let")if(Y){const{right:k,operator:X}=v,A=h.slice(k.start-1,k.end-1),y=tk(Sd(to(A,!1),t,!1,!1,D));return`${t.helperString(WS)}(${E})${t.isTS?` //@ts-ignore
`:""} ? ${E}.value ${X} ${y} : ${E}`}else if(Z){S.start=v.start,S.end=v.end;const{prefix:k,operator:X}=v,A=k?X:"",y=k?"":X;return`${t.helperString(WS)}(${E})${t.isTS?` //@ts-ignore
`:""} ? ${A}${E}.value${y} : ${A}${E}${y}`}else return ce?E:`${t.helperString(c2)}(${E})`;else{if(te==="props")return i2(E);if(te==="props-aliased")return i2(m.__propsAliases[E])}}else{if(te&&te.startsWith("setup")||te==="literal-const")return`$setup.${E}`;if(te==="props-aliased")return`$props['${m.__propsAliases[E]}']`;if(te)return`$${te}.${E}`}return`_ctx.${E}`},h=i.content,e=fie.test(h);if(xy(h)){const E=t.identifiers[h],v=RR(h),S=lie(h);return!n&&!E&&!v&&!S?(uL(m[i.content])&&(i.constType=1),i.content=$(h)):E||(S?i.constType=3:i.constType=2),i}let c;const P=o?` ${h} `:`(${h})${n?"=>{}":""}`;try{c=gv(P,{plugins:t.expressionPlugins}).program}catch(E){return t.onError(Cc(45,i.loc,void 0,E.message)),i}const T=[],s=[],D=Object.create(t.identifiers);U1(c,(E,v,S,te,Y)=>{if(XB(E,v))return;const Z=te&&pie(E);Z&&!Y?(ky(v)&&v.shorthand&&(E.prefix=`${E.name}: `),E.name=$(E.name,v,E),T.push(E)):(!(Z&&Y)&&!e&&(E.isConstant=!0),T.push(E))},!0,s,D);const O=[];T.sort((E,v)=>E.start-v.start),T.forEach((E,v)=>{const S=E.start-1,te=E.end-1,Y=T[v-1],Z=h.slice(Y?Y.end-1:0,S);(Z.length||E.prefix)&&O.push(Z+(E.prefix||""));const ce=h.slice(S,te);O.push(to(E.name,!1,{source:ce,start:F1(i.loc.start,ce,S),end:F1(i.loc.start,ce,te)},E.isConstant?3:0)),v===T.length-1&&te<h.length&&O.push(h.slice(te))});let W;return O.length?W=ap(O,i.loc):(W=i,W.constType=e?0:3),W.identifiers=Object.keys(D),W}function pie(i){return!(RR(i.name)||i.name==="require")}function tk(i){return lc(i)?i:i.type===4?i.content:i.children.map(tk).join("")}function uL(i){return i==="setup-const"||i==="literal-const"}const die=ND(/^(if|else|else-if)$/,(i,t,n)=>Z6(i,t,n,(o,l,d)=>{const m=n.parent.children;let $=m.indexOf(o),h=0;for(;$-->=0;){const e=m[$];e&&e.type===9&&(h+=e.branches.length)}return()=>{if(d)o.codegenNode=fL(l,h,n);else{const e=mie(o.codegenNode);e.alternate=fL(l,h+o.branches.length-1,n)}}}));function Z6(i,t,n,o){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const l=t.exp?t.exp.loc:i.loc;n.onError(Cc(28,t.loc)),t.exp=to("true",!1,l)}if(n.prefixIdentifiers&&t.exp&&(t.exp=Sd(t.exp,n)),t.name==="if"){const l=lL(i,t),d={type:9,loc:i.loc,branches:[l]};if(n.replaceNode(d),o)return o(d,l,!0)}else{const l=n.parent.children,d=[];let m=l.indexOf(i);for(;m-->=-1;){const $=l[m];if($&&$.type===3){n.removeNode($),d.unshift($);continue}if($&&$.type===2&&!$.content.trim().length){n.removeNode($);continue}if($&&$.type===9){t.name==="else-if"&&$.branches[$.branches.length-1].condition===void 0&&n.onError(Cc(30,i.loc)),n.removeNode();const h=lL(i,t);d.length&&!(n.parent&&n.parent.type===1&&Dg(n.parent.tag,"transition"))&&(h.children=[...d,...h.children]);{const c=h.userKey;c&&$.branches.forEach(({userKey:P})=>{_ie(P,c)&&n.onError(Cc(29,h.userKey.loc))})}$.branches.push(h);const e=o&&o($,h,!1);A2(h,n),e&&e(),n.currentNode=null}else n.onError(Cc(30,i.loc));break}}}function lL(i,t){const n=i.tagType===3;return{type:10,loc:i.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Nf(i,"for")?i.children:[i],userKey:r_(i,"key"),isTemplateIf:n}}function fL(i,t,n){return i.condition?Dy(i.condition,pL(i,t,n),ls(n.helper(E2),['"v-if"',"true"])):pL(i,t,n)}function pL(i,t,n){const{helper:o}=n,l=qc("key",to(`${t}`,!1,rl,2)),{children:d}=i,m=d[0];if(d.length!==1||m.type!==1)if(d.length===1&&m.type===11){const h=m.codegenNode;return $S(h,l,n),h}else{let h=64,e=fh[64];return!i.isTemplateIf&&d.filter(c=>c.type!==3).length===1&&(h|=2048,e+=`, ${fh[2048]}`),u2(n,o(a2),e_([l]),d,h+` /* ${e} */`,void 0,void 0,!0,!1,!1,i.loc)}else{const h=m.codegenNode,e=PB(h);return e.type===13&&UC(e,n),$S(e,l,n),h}}function _ie(i,t){if(!i||i.type!==t.type)return!1;if(i.type===6){if(i.value.content!==t.value.content)return!1}else{const n=i.exp,o=t.exp;if(n.type!==o.type||n.type!==4||n.isStatic!==o.isStatic||n.content!==o.content)return!1}return!0}function mie(i){for(;;)if(i.type===19)if(i.alternate.type===19)i=i.alternate;else return i;else i.type===20&&(i=i.value)}const gie=ND("for",(i,t,n)=>{const{helper:o,removeHelper:l}=n;return e4(i,t,n,d=>{const m=ls(o(OC),[d.source]),$=f2(i),h=Nf(i,"memo"),e=r_(i,"key"),c=e&&(e.type===6?to(e.value.content,!0):e.exp),P=e?qc("key",c):null;$&&(h&&(h.exp=Sd(h.exp,n)),P&&e.type!==6&&(P.value=Sd(P.value,n)));const T=d.source.type===4&&d.source.constType>0,s=T?64:e?128:256;return d.codegenNode=u2(n,o(a2),void 0,m,s+` /* ${fh[s]} */`,void 0,void 0,!0,!T,!1,i.loc),()=>{let D;const{children:O}=d;$&&i.children.some(v=>{if(v.type===1){const S=r_(v,"key");if(S)return n.onError(Cc(33,S.loc)),!0}});const W=O.length!==1||O[0].type!==1,E=p2(i)?i:$&&i.children.length===1&&p2(i.children[0])?i.children[0]:null;if(E?(D=E.codegenNode,$&&P&&$S(D,P,n)):W?D=u2(n,o(a2),P?e_([P]):void 0,i.children,`64 /* ${fh[64]} */`,void 0,void 0,!0,void 0,!1):(D=O[0].codegenNode,$&&P&&$S(D,P,n),D.isBlock!==!T&&(D.isBlock?(l(Sy),l(O1(n.inSSR,D.isComponent))):l(I1(n.inSSR,D.isComponent))),D.isBlock=!T,D.isBlock?(o(Sy),o(O1(n.inSSR,D.isComponent))):o(I1(n.inSSR,D.isComponent))),h){const v=R_(QS(d.parseResult,[to("_cached")]));v.body=AD([ap(["const _memo = (",h.exp,")"]),ap(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(g6)}(_cached, _memo)) return _cached`]),ap(["const _item = ",D]),to("_item.memo = _memo"),to("return _item")]),m.arguments.push(v,to("_cache"),to(String(n.cached++)))}else m.arguments.push(R_(QS(d.parseResult),D,!0))}})});function e4(i,t,n,o){if(!t.exp){n.onError(Cc(31,t.loc));return}const l=r4(t.exp,n);if(!l){n.onError(Cc(32,t.loc));return}const{addIdentifiers:d,removeIdentifiers:m,scopes:$}=n,{source:h,value:e,key:c,index:P}=l,T={type:11,loc:t.loc,source:h,valueAlias:e,keyAlias:c,objectIndexAlias:P,parseResult:l,children:f2(i)?i.children:[i]};n.replaceNode(T),$.vFor++,n.prefixIdentifiers&&(e&&d(e),c&&d(c),P&&d(P));const s=o&&o(T);return()=>{$.vFor--,n.prefixIdentifiers&&(e&&m(e),c&&m(c),P&&m(P)),s&&s()}}const hie=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,dL=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vie=/^\(|\)$/g;function r4(i,t){const n=i.loc,o=i.content,l=o.match(hie);if(!l)return;const[,d,m]=l,$={source:VT(n,m.trim(),o.indexOf(m,d.length)),value:void 0,key:void 0,index:void 0};t.prefixIdentifiers&&($.source=Sd($.source,t));let h=d.trim().replace(vie,"").trim();const e=d.indexOf(h),c=h.match(dL);if(c){h=h.replace(dL,"").trim();const P=c[1].trim();let T;if(P&&(T=o.indexOf(P,e+h.length),$.key=VT(n,P,T),t.prefixIdentifiers&&($.key=Sd($.key,t,!0))),c[2]){const s=c[2].trim();s&&($.index=VT(n,s,o.indexOf(s,$.key?T+P.length:e+h.length)),t.prefixIdentifiers&&($.index=Sd($.index,t,!0)))}}return h&&($.value=VT(n,h,e),t.prefixIdentifiers&&($.value=Sd($.value,t,!0))),$}function VT(i,t,n){return to(t,!1,j6(i,n,t.length))}function QS({value:i,key:t,index:n},o=[]){return yie([i,t,n,...o])}function yie(i){let t=i.length;for(;t--&&!i[t];);return i.slice(0,t+1).map((n,o)=>n||to("_".repeat(o+1),!1))}const _L=to("undefined",!1),t4=(i,t)=>{if(i.type===1&&(i.tagType===1||i.tagType===3)){const n=Nf(i,"slot");if(n){const o=n.exp;return t.prefixIdentifiers&&o&&t.addIdentifiers(o),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&o&&t.removeIdentifiers(o),t.scopes.vSlot--}}}},n4=(i,t)=>{let n;if(f2(i)&&i.props.some(J6)&&(n=Nf(i,"for"))){const o=n.parseResult=r4(n.exp,t);if(o){const{value:l,key:d,index:m}=o,{addIdentifiers:$,removeIdentifiers:h}=t;return l&&$(l),d&&$(d),m&&$(m),()=>{l&&h(l),d&&h(d),m&&h(m)}}}},bie=(i,t,n)=>R_(i,t,!1,!0,t.length?t[0].loc:n);function XS(i,t,n=bie){t.helper(jC);const{children:o,loc:l}=i,d=[],m=[];let $=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&($=Xd(i,t.identifiers));const h=Nf(i,"slot",!0);if(h){const{arg:W,exp:E}=h;W&&!op(W)&&($=!0),d.push(qc(W||to("default",!0),n(E,o,l)))}let e=!1,c=!1;const P=[],T=new Set;let s=0;for(let W=0;W<o.length;W++){const E=o[W];let v;if(!f2(E)||!(v=Nf(E,"slot",!0))){E.type!==3&&P.push(E);continue}if(h){t.onError(Cc(37,v.loc));break}e=!0;const{children:S,loc:te}=E,{arg:Y=to("default",!0),exp:Z,loc:ce}=v;let k;op(Y)?k=Y?Y.content:"default":$=!0;const X=n(Z,S,te);let A,y,C;if(A=Nf(E,"if"))$=!0,m.push(Dy(A.exp,zT(Y,X,s++),_L));else if(y=Nf(E,/^else(-if)?$/,!0)){let B=W,F;for(;B--&&(F=o[B],F.type===3););if(F&&f2(F)&&Nf(F,"if")){o.splice(W,1),W--;let z=m[m.length-1];for(;z.alternate.type===19;)z=z.alternate;z.alternate=y.exp?Dy(y.exp,zT(Y,X,s++),_L):zT(Y,X,s++)}else t.onError(Cc(30,y.loc))}else if(C=Nf(E,"for")){$=!0;const B=C.parseResult||r4(C.exp,t);B?m.push(ls(t.helper(OC),[B.source,R_(QS(B),zT(Y,X),!0)])):t.onError(Cc(32,C.loc))}else{if(k){if(T.has(k)){t.onError(Cc(38,ce));continue}T.add(k),k==="default"&&(c=!0)}d.push(qc(Y,X))}}if(!h){const W=(E,v)=>{const S=n(E,v,l);return qc("default",S)};e?P.length&&P.some(E=>YB(E))&&(c?t.onError(Cc(39,P[0].loc)):d.push(W(void 0,P))):d.push(W(void 0,o))}const D=$?2:hE(i.children)?3:1;let O=e_(d.concat(qc("_",to(D+` /* ${jee[D]} */`,!1))),l);return m.length&&(O=ls(t.helper(m6),[O,J1(m)])),{slots:O,hasDynamicSlots:$}}function zT(i,t,n){const o=[qc("name",i),qc("fn",t)];return n!=null&&o.push(qc("key",to(String(n),!0))),e_(o)}function hE(i){for(let t=0;t<i.length;t++){const n=i[t];switch(n.type){case 1:if(n.tagType===2||hE(n.children))return!0;break;case 9:if(hE(n.branches))return!0;break;case 10:case 11:if(hE(n.children))return!0;break}}return!1}function YB(i){return i.type!==2&&i.type!==12?!0:i.type===2?!!i.content.trim():YB(i.content)}const ZB=new WeakMap,ej=(i,t)=>function(){if(i=t.currentNode,!(i.type===1&&(i.tagType===0||i.tagType===1)))return;const{tag:o,props:l}=i,d=i.tagType===1;let m=d?nk(i,t):`"${o}"`;const $=Dv(m)&&m.callee===o2;let h,e,c,P=0,T,s,D,O=$||m===b1||m===T2||!d&&(o==="svg"||o==="foreignObject");if(l.length>0){const W=O2(i,t,void 0,d,$);h=W.props,P=W.patchFlag,s=W.dynamicPropNames;const E=W.directives;D=E&&E.length?J1(E.map(v=>i4(v,t))):void 0,W.shouldUseBlock&&(O=!0)}if(i.children.length>0)if(m===US&&(O=!0,P|=1024,i.children.length>1&&t.onError(Cc(46,{start:i.children[0].loc.start,end:i.children[i.children.length-1].loc.end,source:""}))),d&&m!==b1&&m!==US){const{slots:E,hasDynamicSlots:v}=XS(i,t);e=E,v&&(P|=1024)}else if(i.children.length===1&&m!==b1){const E=i.children[0],v=E.type,S=v===5||v===8;S&&P_(E,t)===0&&(P|=1),S||v===2?e=E:e=i.children}else e=i.children;if(P!==0){if(P<0)c=P+` /* ${fh[P]} */`;else{const W=Object.keys(fh).map(Number).filter(E=>E>0&&P&E).map(E=>fh[E]).join(", ");c=P+` /* ${W} */`}s&&s.length&&(T=Die(s))}i.codegenNode=u2(t,m,h,e,c,T,D,!!O,!1,d,i.loc)};function nk(i,t,n=!1){let{tag:o}=i;const l=eI(o),d=r_(i,"is");if(d)if(l){const h=d.type===6?d.value&&to(d.value.content,!0):d.exp;if(h)return ls(t.helper(o2),[h])}else d.type===6&&d.value.content.startsWith("vue:")&&(o=d.value.content.slice(4));const m=!l&&Nf(i,"is");if(m&&m.exp)return t.onWarn(Cc(52,m.loc)),ls(t.helper(o2),[m.exp]);const $=R6(o)||t.isBuiltInComponent(o);if($)return n||t.helper($),$;{const h=ZN(o,t);if(h)return h;const e=o.indexOf(".");if(e>0){const c=ZN(o.slice(0,e),t);if(c)return c+o.slice(e)}}return t.selfName&&by(Tg(o))===t.selfName?(t.helper(VS),t.components.add(o+"__self"),HS(o,"component")):(t.helper(VS),t.components.add(o),HS(o,"component"))}function ZN(i,t){const n=t.bindingMetadata;if(!n||n.__isScriptSetup===!1)return;const o=Tg(i),l=by(o),d=h=>{if(n[i]===h)return i;if(n[o]===h)return o;if(n[l]===h)return l},m=d("setup-const")||d("setup-reactive-const")||d("literal-const");if(m)return t.inline?m:`$setup[${JSON.stringify(m)}]`;const $=d("setup-let")||d("setup-ref")||d("setup-maybe-ref");if($)return t.inline?`${t.helperString(c2)}(${$})`:`$setup[${JSON.stringify($)}]`}function O2(i,t,n=i.props,o,l,d=!1){const{tag:m,loc:$,children:h}=i;let e=[];const c=[],P=[],T=h.length>0;let s=!1,D=0,O=!1,W=!1,E=!1,v=!1,S=!1,te=!1;const Y=[],Z=X=>{e.length&&(c.push(e_(mL(e),$)),e=[]),X&&c.push(X)},ce=({key:X,value:A})=>{if(op(X)){const y=X.content,C=OR(y);if(C&&(!o||l)&&y.toLowerCase()!=="onclick"&&y!=="onUpdate:modelValue"&&!IF(y)&&(v=!0),C&&IF(y)&&(te=!0),A.type===20||(A.type===4||A.type===8)&&P_(A,t)>0)return;y==="ref"?O=!0:y==="class"?W=!0:y==="style"?E=!0:y!=="key"&&!Y.includes(y)&&Y.push(y),o&&(y==="class"||y==="style")&&!Y.includes(y)&&Y.push(y)}else S=!0};for(let X=0;X<n.length;X++){const A=n[X];if(A.type===6){const{loc:y,name:C,value:B}=A;let F=!0;if(C==="ref"&&(O=!0,t.scopes.vFor>0&&e.push(qc(to("ref_for",!0),to("true"))),B&&t.inline)){const z=t.bindingMetadata[B.content];(z==="setup-let"||z==="setup-ref"||z==="setup-maybe-ref")&&(F=!1,e.push(qc(to("ref_key",!0),to(B.content,!0,B.loc))))}if(C==="is"&&(eI(m)||B&&B.content.startsWith("vue:")))continue;e.push(qc(to(C,!0,j6(y,0,C.length)),to(B?B.content:"",F,B?B.loc:y)))}else{const{name:y,arg:C,exp:B,loc:F}=A,z=y==="bind",ge=y==="on";if(y==="slot"){o||t.onError(Cc(40,F));continue}if(y==="once"||y==="memo"||y==="is"||z&&cv(C,"is")&&eI(m)||ge&&d)continue;if((z&&cv(C,"key")||ge&&T&&cv(C,"vue:before-update"))&&(s=!0),z&&cv(C,"ref")&&t.scopes.vFor>0&&e.push(qc(to("ref_for",!0),to("true"))),!C&&(z||ge)){S=!0,B?z?(Z(),c.push(B)):Z({type:14,loc:F,callee:t.helper(LC),arguments:o?[B]:[B,"true"]}):t.onError(Cc(z?34:35,F));continue}const Pe=t.directiveTransforms[y];if(Pe){const{props:fe,needRuntime:_e}=Pe(A,i,t);!d&&fe.forEach(ce),ge&&C&&!op(C)?Z(e_(fe,$)):e.push(...fe),_e&&(P.push(A),x2(_e)&&ZB.set(A,_e))}else c6(y)||(P.push(A),T&&(s=!0))}}let k;if(c.length?(Z(),c.length>1?k=ls(t.helper(N1),c,$):k=c[0]):e.length&&(k=e_(mL(e),$)),S?D|=16:(W&&!o&&(D|=2),E&&!o&&(D|=4),Y.length&&(D|=8),v&&(D|=32)),!s&&(D===0||D===32)&&(O||te||P.length>0)&&(D|=512),!t.inSSR&&k)switch(k.type){case 15:let X=-1,A=-1,y=!1;for(let F=0;F<k.properties.length;F++){const z=k.properties[F].key;op(z)?z.content==="class"?X=F:z.content==="style"&&(A=F):z.isHandlerKey||(y=!0)}const C=k.properties[X],B=k.properties[A];y?k=ls(t.helper(s2),[k]):(C&&!op(C.value)&&(C.value=ls(t.helper(MC),[C.value])),B&&(E||B.value.type===4&&B.value.content.trim()[0]==="["||B.value.type===17)&&(B.value=ls(t.helper(FC),[B.value])));break;case 14:break;default:k=ls(t.helper(s2),[ls(t.helper(C2),[k])]);break}return{props:k,directives:P,patchFlag:D,dynamicPropNames:Y,shouldUseBlock:s}}function mL(i){const t=new Map,n=[];for(let o=0;o<i.length;o++){const l=i[o];if(l.key.type===8||!l.key.isStatic){n.push(l);continue}const d=l.key.content,m=t.get(d);m?(d==="style"||d==="class"||OR(d))&&Sie(m,l):(t.set(d,l),n.push(l))}return n}function Sie(i,t){i.value.type===17?i.value.elements.push(t.value):i.value=J1([i.value,t.value],i.loc)}function i4(i,t){const n=[],o=ZB.get(i);if(o)n.push(t.helperString(o));else{const d=ZN("v-"+i.name,t);d?n.push(d):(t.helper(NC),t.directives.add(i.name),n.push(HS(i.name,"directive")))}const{loc:l}=i;if(i.exp&&n.push(i.exp),i.arg&&(i.exp||n.push("void 0"),n.push(i.arg)),Object.keys(i.modifiers).length){i.arg||(i.exp||n.push("void 0"),n.push("void 0"));const d=to("true",!1,l);n.push(e_(i.modifiers.map(m=>qc(m,d)),l))}return J1(n,i.loc)}function Die(i){let t="[";for(let n=0,o=i.length;n<o;n++)t+=JSON.stringify(i[n]),n<o-1&&(t+=", ");return t+"]"}function eI(i){return i==="component"||i==="Component"}const xie=(i,t)=>{if(p2(i)){const{children:n,loc:o}=i,{slotName:l,slotProps:d}=a4(i,t),m=[t.prefixIdentifiers?"_ctx.$slots":"$slots",l,"{}","undefined","true"];let $=2;d&&(m[2]=d,$=3),n.length&&(m[3]=R_([],n,!1,!1,o),$=4),t.scopeId&&!t.slotted&&($=5),m.splice($),i.codegenNode=ls(t.helper(_6),m,o)}};function a4(i,t){let n='"default"',o;const l=[];for(let d=0;d<i.props.length;d++){const m=i.props[d];m.type===6?m.value&&(m.name==="name"?n=JSON.stringify(m.value.content):(m.name=Tg(m.name),l.push(m))):m.name==="bind"&&cv(m.arg,"name")?m.exp&&(n=m.exp):(m.name==="bind"&&m.arg&&op(m.arg)&&(m.arg.content=Tg(m.arg.content)),l.push(m))}if(l.length>0){const{props:d,directives:m}=O2(i,t,l,!1,!1);o=d,m.length&&t.onError(Cc(36,m[0].loc))}return{slotName:n,slotProps:o}}const Tie=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ik=(i,t,n,o)=>{const{loc:l,modifiers:d,arg:m}=i;!i.exp&&!d.length&&n.onError(Cc(35,l));let $;if(m.type===4)if(m.isStatic){let P=m.content;P.startsWith("vnode")&&n.onWarn(Cc(51,m.loc)),P.startsWith("vue:")&&(P=`vnode-${P.slice(4)}`);const T=t.tagType!==0||P.startsWith("vnode")||!/[A-Z]/.test(P)?Ree(Tg(P)):`on:${P}`;$=to(T,!0,m.loc)}else $=ap([`${n.helperString(wE)}(`,m,")"]);else $=m,$.children.unshift(`${n.helperString(wE)}(`),$.children.push(")");let h=i.exp;h&&!h.content.trim()&&(h=void 0);let e=n.cacheHandlers&&!h&&!n.inVOnce;if(h){const P=B6(h.content,n),T=!(P||Tie.test(h.content)),s=h.content.includes(";");n.prefixIdentifiers&&(T&&n.addIdentifiers("$event"),h=i.exp=Sd(h,n,!1,s),T&&n.removeIdentifiers("$event"),e=n.cacheHandlers&&!n.inVOnce&&!(h.type===4&&h.constType>0)&&!(P&&t.tagType===1)&&!Xd(h,n.identifiers),e&&P&&(h.type===4?h.content=`${h.content} && ${h.content}(...args)`:h.children=[...h.children," && ",...h.children,"(...args)"])),(T||e&&P)&&(h=ap([`${T?n.isTS?"($event: any)":"$event":`${n.isTS?`
//@ts-ignore
`:""}(...args)`} => ${s?"{":"("}`,h,s?"}":")"]))}let c={props:[qc($,h||to("() => {}",!1,l))]};return o&&(c=o(c)),e&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(P=>P.key.isHandlerKey=!0),c},o4=(i,t,n)=>{const{exp:o,modifiers:l,loc:d}=i,m=i.arg;return m.type!==4?(m.children.unshift("("),m.children.push(') || ""')):m.isStatic||(m.content=`${m.content} || ""`),l.includes("camel")&&(m.type===4?m.isStatic?m.content=Tg(m.content):m.content=`${n.helperString(PE)}(${m.content})`:(m.children.unshift(`${n.helperString(PE)}(`),m.children.push(")"))),n.inSSR||(l.includes("prop")&&gL(m,"."),l.includes("attr")&&gL(m,"^")),!o||o.type===4&&!o.content.trim()?(n.onError(Cc(34,d)),{props:[qc(m,to("",!0,d))]}):{props:[qc(m,o)]}},gL=(i,t)=>{i.type===4?i.isStatic?i.content=t+i.content:i.content=`\`${t}\${${i.content}}\``:(i.children.unshift(`'${t}' + (`),i.children.push(")"))},Eie=(i,t)=>{if(i.type===0||i.type===1||i.type===11||i.type===10)return()=>{const n=i.children;let o,l=!1;for(let d=0;d<n.length;d++){const m=n[d];if(PS(m)){l=!0;for(let $=d+1;$<n.length;$++){const h=n[$];if(PS(h))o||(o=n[d]=ap([m],m.loc)),o.children.push(" + ",h),n.splice($,1),$--;else{o=void 0;break}}}}if(!(!l||n.length===1&&(i.type===0||i.type===1&&i.tagType===0&&!i.props.find(d=>d.type===7&&!t.directiveTransforms[d.name]))))for(let d=0;d<n.length;d++){const m=n[d];if(PS(m)||m.type===8){const $=[];(m.type!==2||m.content!==" ")&&$.push(m),!t.ssr&&P_(m,t)===0&&$.push(`1 /* ${fh[1]} */`),n[d]={type:12,content:m,loc:m.loc,codegenNode:ls(t.helper(PC),$)}}}}},hL=new WeakSet,Cie=(i,t)=>{if(i.type===1&&Nf(i,"once",!0))return hL.has(i)||t.inVOnce||t.inSSR?void 0:(hL.add(i),t.inVOnce=!0,t.helper(zS),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},ak=(i,t,n)=>{const{exp:o,arg:l}=i;if(!o)return n.onError(Cc(41,i.loc)),lS();const d=o.loc.source,m=o.type===4?o.content:d,$=n.bindingMetadata[d];if($==="props"||$==="props-aliased")return n.onError(Cc(44,o.loc)),lS();const h=n.inline&&($==="setup-let"||$==="setup-ref"||$==="setup-maybe-ref");if(!m.trim()||!B6(m,n)&&!h)return n.onError(Cc(42,o.loc)),lS();if(n.prefixIdentifiers&&xy(m)&&n.identifiers[m])return n.onError(Cc(43,o.loc)),lS();const e=l||to("modelValue",!0),c=l?op(l)?`onUpdate:${Tg(l.content)}`:ap(['"onUpdate:" + ',l]):"onUpdate:modelValue";let P;const T=n.isTS?"($event: any)":"$event";if(h)if($==="setup-ref")P=ap([`${T} => ((`,to(d,!1,o.loc),").value = $event)"]);else{const D=$==="setup-let"?`${d} = $event`:"null";P=ap([`${T} => (${n.helperString(WS)}(${d}) ? (`,to(d,!1,o.loc),`).value = $event : ${D})`])}else P=ap([`${T} => ((`,o,") = $event)"]);const s=[qc(e,i.exp),qc(c,P)];if(n.prefixIdentifiers&&!n.inVOnce&&n.cacheHandlers&&!Xd(o,n.identifiers)&&(s[1].value=n.cache(s[1].value)),i.modifiers.length&&t.tagType===1){const D=i.modifiers.map(W=>(xy(W)?W:JSON.stringify(W))+": true").join(", "),O=l?op(l)?`${l.content}Modifiers`:ap([l,' + "Modifiers"']):"modelModifiers";s.push(qc(O,to(`{ ${D} }`,!1,i.loc,2)))}return lS(s)};function lS(i=[]){return{props:i}}const vL=new WeakSet,kie=(i,t)=>{if(i.type===1){const n=Nf(i,"memo");return!n||vL.has(i)?void 0:(vL.add(i),()=>{const o=i.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(i.tagType!==1&&UC(o,t),i.codegenNode=ls(t.helper(JC),[n.exp,R_(void 0,o),"_cache",String(t.cached++)]))})}};function s4(i){return[[Cie,die,kie,gie,...i?[n4,Y6]:[],xie,ej,t4,Eie],{on:ik,bind:o4,model:ak}]}function rj(i,t={}){const n=t.onError||l6,o=t.mode==="module",l=t.prefixIdentifiers===!0||o;!l&&t.cacheHandlers&&n(Cc(49)),t.scopeId&&!o&&n(Cc(50));const d=lc(i)?HC(i,t):i,[m,$]=s4(l);if(t.isTS){const{expressionPlugins:h}=t;(!h||!h.includes("typescript"))&&(t.expressionPlugins=[...h||[],"typescript"])}return KC(d,_v({},t,{prefixIdentifiers:l,nodeTransforms:[...m,...t.nodeTransforms||[]],directiveTransforms:_v({},$,t.directiveTransforms||{})})),Q6(d,_v({},t,{prefixIdentifiers:l}))}const NS=()=>({props:[]}),c4=Symbol("vModelRadio"),u4=Symbol("vModelCheckbox"),l4=Symbol("vModelText"),f4=Symbol("vModelSelect"),qE=Symbol("vModelDynamic"),p4=Symbol("vOnModifiersGuard"),d4=Symbol("vOnKeysGuard"),_4=Symbol("vShow"),M2=Symbol("Transition"),MD=Symbol("TransitionGroup");h6({[c4]:"vModelRadio",[u4]:"vModelCheckbox",[l4]:"vModelText",[f4]:"vModelSelect",[qE]:"vModelDynamic",[p4]:"withModifiers",[d4]:"withKeys",[_4]:"vShow",[M2]:"Transition",[MD]:"TransitionGroup"});var yL={GT:">",gt:">",LT:"<",lt:"<","ac;":"∾","af;":"⁡",AMP:"&",amp:"&","ap;":"≈","DD;":"ⅅ","dd;":"ⅆ",deg:"°","ee;":"ⅇ","eg;":"⪚","el;":"⪙",ETH:"Ð",eth:"ð","gE;":"≧","ge;":"≥","Gg;":"⋙","gg;":"≫","gl;":"≷","GT;":">","Gt;":"≫","gt;":">","ic;":"⁣","ii;":"ⅈ","Im;":"ℑ","in;":"∈","it;":"⁢","lE;":"≦","le;":"≤","lg;":"≶","Ll;":"⋘","ll;":"≪","LT;":"<","Lt;":"≪","lt;":"<","mp;":"∓","Mu;":"Μ","mu;":"μ","ne;":"≠","ni;":"∋",not:"¬","Nu;":"Ν","nu;":"ν","Or;":"⩔","or;":"∨","oS;":"Ⓢ","Pi;":"Π","pi;":"π","pm;":"±","Pr;":"⪻","pr;":"≺","Re;":"ℜ",REG:"®",reg:"®","rx;":"℞","Sc;":"⪼","sc;":"≻",shy:"­",uml:"¨","wp;":"℘","wr;":"≀","Xi;":"Ξ","xi;":"ξ",yen:"¥","acd;":"∿","acE;":"∾̳","Acy;":"А","acy;":"а","Afr;":"𝔄","afr;":"𝔞","AMP;":"&","amp;":"&","And;":"⩓","and;":"∧","ang;":"∠","apE;":"⩰","ape;":"≊","ast;":"*",Auml:"Ä",auml:"ä","Bcy;":"Б","bcy;":"б","Bfr;":"𝔅","bfr;":"𝔟","bne;":"=⃥","bot;":"⊥","Cap;":"⋒","cap;":"∩",cent:"¢","Cfr;":"ℭ","cfr;":"𝔠","Chi;":"Χ","chi;":"χ","cir;":"○",COPY:"©",copy:"©","Cup;":"⋓","cup;":"∪","Dcy;":"Д","dcy;":"д","deg;":"°","Del;":"∇","Dfr;":"𝔇","dfr;":"𝔡","die;":"¨","div;":"÷","Dot;":"¨","dot;":"˙","Ecy;":"Э","ecy;":"э","Efr;":"𝔈","efr;":"𝔢","egs;":"⪖","ell;":"ℓ","els;":"⪕","ENG;":"Ŋ","eng;":"ŋ","Eta;":"Η","eta;":"η","ETH;":"Ð","eth;":"ð",Euml:"Ë",euml:"ë","Fcy;":"Ф","fcy;":"ф","Ffr;":"𝔉","ffr;":"𝔣","gap;":"⪆","Gcy;":"Г","gcy;":"г","gEl;":"⪌","gel;":"⋛","geq;":"≥","ges;":"⩾","Gfr;":"𝔊","gfr;":"𝔤","ggg;":"⋙","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnE;":"≩","gne;":"⪈","Hat;":"^","Hfr;":"ℌ","hfr;":"𝔥","Icy;":"И","icy;":"и","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Int;":"∬","int;":"∫",Iuml:"Ï",iuml:"ï","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","lap;":"⪅","lat;":"⪫","Lcy;":"Л","lcy;":"л","lEg;":"⪋","leg;":"⋚","leq;":"≤","les;":"⩽","Lfr;":"𝔏","lfr;":"𝔩","lgE;":"⪑","lnE;":"≨","lne;":"⪇","loz;":"◊","lrm;":"‎","Lsh;":"↰","lsh;":"↰",macr:"¯","Map;":"⤅","map;":"↦","Mcy;":"М","mcy;":"м","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","mid;":"∣","nap;":"≉",nbsp:" ","Ncy;":"Н","ncy;":"н","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","nGg;":"⋙̸","nGt;":"≫⃒","ngt;":"≯","nis;":"⋼","niv;":"∋","nlE;":"≦̸","nle;":"≰","nLl;":"⋘̸","nLt;":"≪⃒","nlt;":"≮","Not;":"⫬","not;":"¬","npr;":"⊀","nsc;":"⊁","num;":"#","Ocy;":"О","ocy;":"о","Ofr;":"𝔒","ofr;":"𝔬","ogt;":"⧁","ohm;":"Ω","olt;":"⧀","ord;":"⩝",ordf:"ª",ordm:"º","orv;":"⩛",Ouml:"Ö",ouml:"ö","par;":"∥",para:"¶","Pcy;":"П","pcy;":"п","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","piv;":"ϖ","prE;":"⪳","pre;":"⪯","Psi;":"Ψ","psi;":"ψ","Qfr;":"𝔔","qfr;":"𝔮",QUOT:'"',quot:'"',"Rcy;":"Р","rcy;":"р","REG;":"®","reg;":"®","Rfr;":"ℜ","rfr;":"𝔯","Rho;":"Ρ","rho;":"ρ","rlm;":"‏","Rsh;":"↱","rsh;":"↱","scE;":"⪴","sce;":"⪰","Scy;":"С","scy;":"с",sect:"§","Sfr;":"𝔖","sfr;":"𝔰","shy;":"­","sim;":"∼","smt;":"⪪","sol;":"/","squ;":"□","Sub;":"⋐","sub;":"⊂","Sum;":"∑","sum;":"∑","Sup;":"⋑","sup;":"⊃",sup1:"¹",sup2:"²",sup3:"³","Tab;":" ","Tau;":"Τ","tau;":"τ","Tcy;":"Т","tcy;":"т","Tfr;":"𝔗","tfr;":"𝔱","top;":"⊤","Ucy;":"У","ucy;":"у","Ufr;":"𝔘","ufr;":"𝔲","uml;":"¨",Uuml:"Ü",uuml:"ü","Vcy;":"В","vcy;":"в","Vee;":"⋁","vee;":"∨","Vfr;":"𝔙","vfr;":"𝔳","Wfr;":"𝔚","wfr;":"𝔴","Xfr;":"𝔛","xfr;":"𝔵","Ycy;":"Ы","ycy;":"ы","yen;":"¥","Yfr;":"𝔜","yfr;":"𝔶",yuml:"ÿ","Zcy;":"З","zcy;":"з","Zfr;":"ℨ","zfr;":"𝔷","zwj;":"‍",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ","andd;":"⩜","andv;":"⩚","ange;":"⦤","Aopf;":"𝔸","aopf;":"𝕒","apid;":"≋","apos;":"'",Aring:"Å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Auml;":"Ä","auml;":"ä","Barv;":"⫧","bbrk;":"⎵","Beta;":"Β","beta;":"β","beth;":"ℶ","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","boxH;":"═","boxh;":"─","boxV;":"║","boxv;":"│","Bscr;":"ℬ","bscr;":"𝒷","bsim;":"∽","bsol;":"\\","bull;":"•","bump;":"≎","caps;":"∩︀","Cdot;":"Ċ","cdot;":"ċ",cedil:"¸","cent;":"¢","CHcy;":"Ч","chcy;":"ч","circ;":"ˆ","cirE;":"⧃","cire;":"≗","comp;":"∁","cong;":"≅","Copf;":"ℂ","copf;":"𝕔","COPY;":"©","copy;":"©","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csup;":"⫐","cups;":"∪︀","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","dHar;":"⥥","diam;":"⋄","DJcy;":"Ђ","djcy;":"ђ","Dopf;":"𝔻","dopf;":"𝕕","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","dtri;":"▿","DZcy;":"Џ","dzcy;":"џ","ecir;":"≖",Ecirc:"Ê",ecirc:"ê","Edot;":"Ė","eDot;":"≑","edot;":"ė","emsp;":" ","ensp;":" ","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","epsi;":"ε","Escr;":"ℰ","escr;":"ℯ","Esim;":"⩳","esim;":"≂","Euml;":"Ë","euml;":"ë","euro;":"€","excl;":"!","flat;":"♭","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","fork;":"⋔","Fscr;":"ℱ","fscr;":"𝒻","Gdot;":"Ġ","gdot;":"ġ","geqq;":"≧","gesl;":"⋛︀","GJcy;":"Ѓ","gjcy;":"ѓ","gnap;":"⪊","gneq;":"⪈","Gopf;":"𝔾","gopf;":"𝕘","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gtcc;":"⪧","gvnE;":"≩︀","half;":"½","hArr;":"⇔","harr;":"↔","hbar;":"ℏ","Hopf;":"ℍ","hopf;":"𝕙","Hscr;":"ℋ","hscr;":"𝒽",Icirc:"Î",icirc:"î","Idot;":"İ","IEcy;":"Е","iecy;":"е",iexcl:"¡","imof;":"⊷","IOcy;":"Ё","iocy;":"ё","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","Iuml;":"Ï","iuml;":"ï","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","Lang;":"⟪","lang;":"⟨",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","late;":"⪭","lcub;":"{","ldca;":"⤶","ldsh;":"↲","leqq;":"≦","lesg;":"⋚︀","lHar;":"⥢","LJcy;":"Љ","ljcy;":"љ","lnap;":"⪉","lneq;":"⪇","Lopf;":"𝕃","lopf;":"𝕝","lozf;":"⧫","lpar;":"(","Lscr;":"ℒ","lscr;":"𝓁","lsim;":"≲","lsqb;":"[","ltcc;":"⪦","ltri;":"◃","lvnE;":"≨︀","macr;":"¯","male;":"♂","malt;":"✠",micro:"µ","mlcp;":"⫛","mldr;":"…","Mopf;":"𝕄","mopf;":"𝕞","Mscr;":"ℳ","mscr;":"𝓂","nang;":"∠⃒","napE;":"⩰̸","nbsp;":" ","ncap;":"⩃","ncup;":"⩂","ngeq;":"≱","nges;":"⩾̸","ngtr;":"≯","nGtv;":"≫̸","nisd;":"⋺","NJcy;":"Њ","njcy;":"њ","nldr;":"‥","nleq;":"≰","nles;":"⩽̸","nLtv;":"≪̸","nmid;":"∤","Nopf;":"ℕ","nopf;":"𝕟","npar;":"∦","npre;":"⪯̸","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nsim;":"≁","nsub;":"⊄","nsup;":"⊅","ntgl;":"≹","ntlg;":"≸","nvap;":"≍⃒","nvge;":"≥⃒","nvgt;":">⃒","nvle;":"≤⃒","nvlt;":"<⃒","oast;":"⊛","ocir;":"⊚",Ocirc:"Ô",ocirc:"ô","odiv;":"⨸","odot;":"⊙","ogon;":"˛","oint;":"∮","omid;":"⦶","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","ordf;":"ª","ordm;":"º","oror;":"⩖","Oscr;":"𝒪","oscr;":"ℴ","osol;":"⊘","Ouml;":"Ö","ouml;":"ö","para;":"¶","part;":"∂","perp;":"⊥","phiv;":"ϕ","plus;":"+","Popf;":"ℙ","popf;":"𝕡",pound:"£","prap;":"⪷","prec;":"≺","prnE;":"⪵","prod;":"∏","prop;":"∝","Pscr;":"𝒫","pscr;":"𝓅","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","Qscr;":"𝒬","qscr;":"𝓆","QUOT;":'"',"quot;":'"',"race;":"∽̱","Rang;":"⟫","rang;":"⟩",raquo:"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rcub;":"}","rdca;":"⤷","rdsh;":"↳","real;":"ℜ","rect;":"▭","rHar;":"⥤","rhov;":"ϱ","ring;":"˚","Ropf;":"ℝ","ropf;":"𝕣","rpar;":")","Rscr;":"ℛ","rscr;":"𝓇","rsqb;":"]","rtri;":"▹","scap;":"⪸","scnE;":"⪶","sdot;":"⋅","sect;":"§","semi;":";","sext;":"✶","SHcy;":"Ш","shcy;":"ш","sime;":"≃","simg;":"⪞","siml;":"⪝","smid;":"∣","smte;":"⪬","solb;":"⧄","Sopf;":"𝕊","sopf;":"𝕤","spar;":"∥","Sqrt;":"√","squf;":"▪","Sscr;":"𝒮","sscr;":"𝓈","Star;":"⋆","star;":"☆","subE;":"⫅","sube;":"⊆","succ;":"≻","sung;":"♪","sup1;":"¹","sup2;":"²","sup3;":"³","supE;":"⫆","supe;":"⊇",szlig:"ß","tbrk;":"⎴","tdot;":"⃛",THORN:"Þ",thorn:"þ",times:"×","tint;":"∭","toea;":"⤨","Topf;":"𝕋","topf;":"𝕥","tosa;":"⤩","trie;":"≜","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","Uarr;":"↟","uArr;":"⇑","uarr;":"↑",Ucirc:"Û",ucirc:"û","uHar;":"⥣","Uopf;":"𝕌","uopf;":"𝕦","Upsi;":"ϒ","upsi;":"υ","Uscr;":"𝒰","uscr;":"𝓊","utri;":"▵","Uuml;":"Ü","uuml;":"ü","vArr;":"⇕","varr;":"↕","Vbar;":"⫫","vBar;":"⫨","Vert;":"‖","vert;":"|","Vopf;":"𝕍","vopf;":"𝕧","Vscr;":"𝒱","vscr;":"𝓋","Wopf;":"𝕎","wopf;":"𝕨","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcup;":"⋃","xmap;":"⟼","xnis;":"⋻","Xopf;":"𝕏","xopf;":"𝕩","Xscr;":"𝒳","xscr;":"𝓍","xvee;":"⋁","YAcy;":"Я","yacy;":"я","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ","Zdot;":"Ż","zdot;":"ż","Zeta;":"Ζ","zeta;":"ζ","ZHcy;":"Ж","zhcy;":"ж","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwnj;":"‌",Aacute:"Á",aacute:"á","Acirc;":"Â","acirc;":"â","acute;":"´","AElig;":"Æ","aelig;":"æ",Agrave:"À",agrave:"à","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","angle;":"∠","angrt;":"∟","angst;":"Å","Aogon;":"Ą","aogon;":"ą","Aring;":"Å","aring;":"å","asymp;":"≈",Atilde:"Ã",atilde:"ã","awint;":"⨑","bcong;":"≌","bdquo;":"„","bepsi;":"϶","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","Breve;":"˘","breve;":"˘",brvbar:"¦","bsemi;":"⁏","bsime;":"⋍","bsolb;":"⧅","bumpE;":"⪮","bumpe;":"≏","caret;":"⁁","caron;":"ˇ","ccaps;":"⩍",Ccedil:"Ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","ccups;":"⩌","cedil;":"¸","check;":"✓","clubs;":"♣","Colon;":"∷","colon;":":","comma;":",","crarr;":"↵","Cross;":"⨯","cross;":"✗","csube;":"⫑","csupe;":"⫒","ctdot;":"⋯","cuepr;":"⋞","cuesc;":"⋟","cupor;":"⩅",curren:"¤","cuvee;":"⋎","cuwed;":"⋏","cwint;":"∱","Dashv;":"⫤","dashv;":"⊣","dblac;":"˝","ddarr;":"⇊","Delta;":"Δ","delta;":"δ","dharl;":"⇃","dharr;":"⇂","diams;":"♦","disin;":"⋲",divide:"÷","doteq;":"≐","dtdot;":"⋱","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯",Eacute:"É",eacute:"é","Ecirc;":"Ê","ecirc;":"ê","eDDot;":"⩷","efDot;":"≒",Egrave:"È",egrave:"è","Emacr;":"Ē","emacr;":"ē","empty;":"∅","Eogon;":"Ę","eogon;":"ę","eplus;":"⩱","epsiv;":"ϵ","eqsim;":"≂","Equal;":"⩵","equiv;":"≡","erarr;":"⥱","erDot;":"≓","esdot;":"≐","exist;":"∃","fflig;":"ff","filig;":"fi","fjlig;":"fj","fllig;":"fl","fltns;":"▱","forkv;":"⫙",frac12:"½",frac14:"¼",frac34:"¾","frasl;":"⁄","frown;":"⌢","Gamma;":"Γ","gamma;":"γ","Gcirc;":"Ĝ","gcirc;":"ĝ","gescc;":"⪩","gimel;":"ℷ","gneqq;":"≩","gnsim;":"⋧","grave;":"`","gsime;":"⪎","gsiml;":"⪐","gtcir;":"⩺","gtdot;":"⋗","Hacek;":"ˇ","harrw;":"↭","Hcirc;":"Ĥ","hcirc;":"ĥ","hoarr;":"⇿",Iacute:"Í",iacute:"í","Icirc;":"Î","icirc;":"î","iexcl;":"¡",Igrave:"Ì",igrave:"ì","iiint;":"∭","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","imath;":"ı","imped;":"Ƶ","infin;":"∞","Iogon;":"Į","iogon;":"į","iprod;":"⨼",iquest:"¿","isinE;":"⋹","isins;":"⋴","isinv;":"∈","Iukcy;":"І","iukcy;":"і","Jcirc;":"Ĵ","jcirc;":"ĵ","jmath;":"ȷ","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","lAarr;":"⇚","langd;":"⦑","laquo;":"«","larrb;":"⇤","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrke;":"⦋","lceil;":"⌈","ldquo;":"“","lescc;":"⪨","lhard;":"↽","lharu;":"↼","lhblk;":"▄","llarr;":"⇇","lltri;":"◺","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","lopar;":"⦅","lrarr;":"⇆","lrhar;":"⇋","lrtri;":"⊿","lsime;":"⪍","lsimg;":"⪏","lsquo;":"‘","ltcir;":"⩹","ltdot;":"⋖","ltrie;":"⊴","ltrif;":"◂","mdash;":"—","mDDot;":"∺","micro;":"µ",middot:"·","minus;":"−","mumap;":"⊸","nabla;":"∇","napid;":"≋̸","napos;":"ʼn","natur;":"♮","nbump;":"≎̸","ncong;":"≇","ndash;":"–","neArr;":"⇗","nearr;":"↗","nedot;":"≐̸","nesim;":"≂̸","ngeqq;":"≧̸","ngsim;":"≵","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","nlArr;":"⇍","nlarr;":"↚","nleqq;":"≦̸","nless;":"≮","nlsim;":"≴","nltri;":"⋪","notin;":"∉","notni;":"∌","npart;":"∂̸","nprec;":"⊀","nrArr;":"⇏","nrarr;":"↛","nrtri;":"⋫","nsime;":"≄","nsmid;":"∤","nspar;":"∦","nsubE;":"⫅̸","nsube;":"⊈","nsucc;":"⊁","nsupE;":"⫆̸","nsupe;":"⊉",Ntilde:"Ñ",ntilde:"ñ","numsp;":" ","nvsim;":"∼⃒","nwArr;":"⇖","nwarr;":"↖",Oacute:"Ó",oacute:"ó","Ocirc;":"Ô","ocirc;":"ô","odash;":"⊝","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿",Ograve:"Ò",ograve:"ò","ohbar;":"⦵","olarr;":"↺","olcir;":"⦾","oline;":"‾","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","operp;":"⦹","oplus;":"⊕","orarr;":"↻","order;":"ℴ",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ","ovbar;":"⌽","parsl;":"⫽","phone;":"☎","plusb;":"⊞","pluse;":"⩲",plusmn:"±","pound;":"£","prcue;":"≼","Prime;":"″","prime;":"′","prnap;":"⪹","prsim;":"≾","quest;":"?","rAarr;":"⇛","radic;":"√","rangd;":"⦒","range;":"⦥","raquo;":"»","rarrb;":"⇥","rarrc;":"⤳","rarrw;":"↝","ratio;":"∶","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrke;":"⦌","rceil;":"⌉","rdquo;":"”","reals;":"ℝ","rhard;":"⇁","rharu;":"⇀","rlarr;":"⇄","rlhar;":"⇌","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","rrarr;":"⇉","rsquo;":"’","rtrie;":"⊵","rtrif;":"▸","sbquo;":"‚","sccue;":"≽","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scsim;":"≿","sdotb;":"⊡","sdote;":"⩦","seArr;":"⇘","searr;":"↘","setmn;":"∖","sharp;":"♯","Sigma;":"Σ","sigma;":"σ","simeq;":"≃","simgE;":"⪠","simlE;":"⪟","simne;":"≆","slarr;":"←","smile;":"⌣","smtes;":"⪬︀","sqcap;":"⊓","sqcup;":"⊔","sqsub;":"⊏","sqsup;":"⊐","srarr;":"→","starf;":"★","strns;":"¯","subnE;":"⫋","subne;":"⊊","supnE;":"⫌","supne;":"⊋","swArr;":"⇙","swarr;":"↙","szlig;":"ß","Theta;":"Θ","theta;":"θ","thkap;":"≈","THORN;":"Þ","thorn;":"þ","Tilde;":"∼","tilde;":"˜","times;":"×","TRADE;":"™","trade;":"™","trisb;":"⧍","TSHcy;":"Ћ","tshcy;":"ћ","twixt;":"≬",Uacute:"Ú",uacute:"ú","Ubrcy;":"Ў","ubrcy;":"ў","Ucirc;":"Û","ucirc;":"û","udarr;":"⇅","udhar;":"⥮",Ugrave:"Ù",ugrave:"ù","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","Union;":"⋃","Uogon;":"Ų","uogon;":"ų","uplus;":"⊎","upsih;":"ϒ","UpTee;":"⊥","Uring;":"Ů","uring;":"ů","urtri;":"◹","utdot;":"⋰","utrif;":"▴","uuarr;":"⇈","varpi;":"ϖ","vBarv;":"⫩","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","veeeq;":"≚","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","vprop;":"∝","vrtri;":"⊳","Wcirc;":"Ŵ","wcirc;":"ŵ","Wedge;":"⋀","wedge;":"∧","xcirc;":"◯","xdtri;":"▽","xhArr;":"⟺","xharr;":"⟷","xlArr;":"⟸","xlarr;":"⟵","xodot;":"⨀","xrArr;":"⟹","xrarr;":"⟶","xutri;":"△",Yacute:"Ý",yacute:"ý","Ycirc;":"Ŷ","ycirc;":"ŷ","Aacute;":"Á","aacute;":"á","Abreve;":"Ă","abreve;":"ă","Agrave;":"À","agrave;":"à","andand;":"⩕","angmsd;":"∡","angsph;":"∢","apacir;":"⩯","approx;":"≈","Assign;":"≔","Atilde;":"Ã","atilde;":"ã","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","becaus;":"∵","bernou;":"ℬ","bigcap;":"⋂","bigcup;":"⋃","bigvee;":"⋁","bkarow;":"⤍","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","bprime;":"‵","brvbar;":"¦","bullet;":"•","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","capand;":"⩄","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç","ccedil;":"ç","circeq;":"≗","cirmid;":"⫯","Colone;":"⩴","colone;":"≔","commat;":"@","compfn;":"∘","Conint;":"∯","conint;":"∮","coprod;":"∐","copysr;":"℗","cularr;":"↶","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","curarr;":"↷","curren;":"¤","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Dcaron;":"Ď","dcaron;":"ď","dfisht;":"⥿","divide;":"÷","divonx;":"⋇","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","DotDot;":"⃜","drcorn;":"⌟","drcrop;":"⌌","Dstrok;":"Đ","dstrok;":"đ","Eacute;":"É","eacute;":"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecolon;":"≕","Egrave;":"È","egrave;":"è","egsdot;":"⪘","elsdot;":"⪗","emptyv;":"∅","emsp13;":" ","emsp14;":" ","eparsl;":"⧣","eqcirc;":"≖","equals;":"=","equest;":"≟","Exists;":"∃","female;":"♀","ffilig;":"ffi","ffllig;":"ffl","ForAll;":"∀","forall;":"∀","frac12;":"½","frac13;":"⅓","frac14;":"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","gacute;":"ǵ","Gammad;":"Ϝ","gammad;":"ϝ","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","gesdot;":"⪀","gesles;":"⪔","gtlPar;":"⦕","gtrarr;":"⥸","gtrdot;":"⋗","gtrsim;":"≳","hairsp;":" ","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hearts;":"♥","hellip;":"…","hercon;":"⊹","homtht;":"∻","horbar;":"―","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í","iacute;":"í","Igrave;":"Ì","igrave;":"ì","iiiint;":"⨌","iinfin;":"⧜","incare;":"℅","inodot;":"ı","intcal;":"⊺","iquest;":"¿","isinsv;":"⋳","Itilde;":"Ĩ","itilde;":"ĩ","Jsercy;":"Ј","jsercy;":"ј","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","kgreen;":"ĸ","Lacute;":"Ĺ","lacute;":"ĺ","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","langle;":"⟨","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrtl;":"↢","lAtail;":"⤛","latail;":"⤙","lbrace;":"{","lbrack;":"[","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","ldquor;":"„","lesdot;":"⩿","lesges;":"⪓","lfisht;":"⥼","lfloor;":"⌊","lharul;":"⥪","llhard;":"⥫","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","loplus;":"⨭","lowast;":"∗","lowbar;":"_","lparlt;":"⦓","lrhard;":"⥭","lsaquo;":"‹","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltrPar;":"⦖","mapsto;":"↦","marker;":"▮","mcomma;":"⨩","midast;":"*","midcir;":"⫰","middot;":"·","minusb;":"⊟","minusd;":"∸","mnplus;":"∓","models;":"⊧","mstpos;":"∾","Nacute;":"Ń","nacute;":"ń","nbumpe;":"≏̸","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","nearhk;":"⤤","nequiv;":"≢","nesear;":"⤨","nexist;":"∄","nltrie;":"⋬","notinE;":"⋹̸","nparsl;":"⫽⃥","nprcue;":"⋠","nrarrc;":"⤳̸","nrarrw;":"↝̸","nrtrie;":"⋭","nsccue;":"⋡","nsimeq;":"≄","Ntilde;":"Ñ","ntilde;":"ñ","numero;":"№","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvHarr;":"⤄","nvlArr;":"⤂","nvrArr;":"⤃","nwarhk;":"⤣","nwnear;":"⤧","Oacute;":"Ó","oacute;":"ó","Odblac;":"Ő","odblac;":"ő","odsold;":"⦼","Ograve;":"Ò","ograve;":"ò","ominus;":"⊖","origof;":"⊶","Oslash;":"Ø","oslash;":"ø","Otilde;":"Õ","otilde;":"õ","Otimes;":"⨷","otimes;":"⊗","parsim;":"⫳","percnt;":"%","period;":".","permil;":"‰","phmmat;":"ℳ","planck;":"ℏ","plankv;":"ℏ","plusdo;":"∔","plusdu;":"⨥","plusmn;":"±","preceq;":"⪯","primes;":"ℙ","prnsim;":"⋨","propto;":"∝","prurel;":"⊰","puncsp;":" ","qprime;":"⁗","Racute;":"Ŕ","racute;":"ŕ","rangle;":"⟩","rarrap;":"⥵","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","Rarrtl;":"⤖","rarrtl;":"↣","rAtail;":"⤜","ratail;":"⤚","rbrace;":"}","rbrack;":"]","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rdquor;":"”","rfisht;":"⥽","rfloor;":"⌋","rharul;":"⥬","rmoust;":"⎱","roplus;":"⨮","rpargt;":"⦔","rsaquo;":"›","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","Sacute;":"Ś","sacute;":"ś","Scaron;":"Š","scaron;":"š","Scedil;":"Ş","scedil;":"ş","scnsim;":"⋩","searhk;":"⤥","seswar;":"⤩","sfrown;":"⌢","SHCHcy;":"Щ","shchcy;":"щ","sigmaf;":"ς","sigmav;":"ς","simdot;":"⩪","smashp;":"⨳","SOFTcy;":"Ь","softcy;":"ь","solbar;":"⌿","spades;":"♠","sqcaps;":"⊓︀","sqcups;":"⊔︀","sqsube;":"⊑","sqsupe;":"⊒","Square;":"□","square;":"□","squarf;":"▪","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","subdot;":"⪽","Subset;":"⋐","subset;":"⊂","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succeq;":"⪰","supdot;":"⪾","Supset;":"⋑","supset;":"⊃","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swnwar;":"⤪","target;":"⌖","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","telrec;":"⌕","there4;":"∴","thetav;":"ϑ","thinsp;":" ","thksim;":"∼","timesb;":"⊠","timesd;":"⨰","topbot;":"⌶","topcir;":"⫱","tprime;":"‴","tridot;":"◬","Tstrok;":"Ŧ","tstrok;":"ŧ","Uacute;":"Ú","uacute;":"ú","Ubreve;":"Ŭ","ubreve;":"ŭ","Udblac;":"Ű","udblac;":"ű","ufisht;":"⥾","Ugrave;":"Ù","ugrave;":"ù","ulcorn;":"⌜","ulcrop;":"⌏","urcorn;":"⌝","urcrop;":"⌎","Utilde;":"Ũ","utilde;":"ũ","vangrt;":"⦜","varphi;":"ϕ","varrho;":"ϱ","Vdashl;":"⫦","veebar;":"⊻","vellip;":"⋮","Verbar;":"‖","verbar;":"|","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","wedbar;":"⩟","wedgeq;":"≙","weierp;":"℘","wreath;":"≀","xoplus;":"⨁","xotime;":"⨂","xsqcup;":"⨆","xuplus;":"⨄","xwedge;":"⋀","Yacute;":"Ý","yacute;":"ý","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","zeetrf;":"ℨ","alefsym;":"ℵ","angrtvb;":"⊾","angzarr;":"⍼","asympeq;":"≍","backsim;":"∽","Because;":"∵","because;":"∵","bemptyv;":"⦰","between;":"≬","bigcirc;":"◯","bigodot;":"⨀","bigstar;":"★","bnequiv;":"≡⃥","boxplus;":"⊞","Cayleys;":"ℭ","Cconint;":"∰","ccupssm;":"⩐","Cedilla;":"¸","cemptyv;":"⦲","cirscir;":"⧂","coloneq;":"≔","congdot;":"⩭","cudarrl;":"⤸","cudarrr;":"⤵","cularrp;":"⤽","curarrm;":"⤼","dbkarow;":"⤏","ddagger;":"‡","ddotseq;":"⩷","demptyv;":"⦱","Diamond;":"⋄","diamond;":"⋄","digamma;":"ϝ","dotplus;":"∔","DownTee;":"⊤","dwangle;":"⦦","Element;":"∈","Epsilon;":"Ε","epsilon;":"ε","eqcolon;":"≕","equivDD;":"⩸","gesdoto;":"⪂","gtquest;":"⩼","gtrless;":"≷","harrcir;":"⥈","Implies;":"⇒","intprod;":"⨼","isindot;":"⋵","larrbfs;":"⤟","larrsim;":"⥳","lbrksld;":"⦏","lbrkslu;":"⦍","ldrdhar;":"⥧","LeftTee;":"⊣","lesdoto;":"⪁","lessdot;":"⋖","lessgtr;":"≶","lesssim;":"≲","lotimes;":"⨴","lozenge;":"◊","ltquest;":"⩻","luruhar;":"⥦","maltese;":"✠","minusdu;":"⨪","napprox;":"≉","natural;":"♮","nearrow;":"↗","NewLine;":`
`,"nexists;":"∄","NoBreak;":"⁠","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLess;":"≮","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","npolint;":"⨔","npreceq;":"⪯̸","nsqsube;":"⋢","nsqsupe;":"⋣","nsubset;":"⊂⃒","nsucceq;":"⪰̸","nsupset;":"⊃⃒","nvinfin;":"⧞","nvltrie;":"⊴⃒","nvrtrie;":"⊵⃒","nwarrow;":"↖","olcross;":"⦻","Omicron;":"Ο","omicron;":"ο","orderof;":"ℴ","orslope;":"⩗","OverBar;":"‾","pertenk;":"‱","planckh;":"ℎ","pluscir;":"⨢","plussim;":"⨦","plustwo;":"⨧","precsim;":"≾","Product;":"∏","quatint;":"⨖","questeq;":"≟","rarrbfs;":"⤠","rarrsim;":"⥴","rbrksld;":"⦎","rbrkslu;":"⦐","rdldhar;":"⥩","realine;":"ℛ","rotimes;":"⨵","ruluhar;":"⥨","searrow;":"↘","simplus;":"⨤","simrarr;":"⥲","subedot;":"⫃","submult;":"⫁","subplus;":"⪿","subrarr;":"⥹","succsim;":"≿","supdsub;":"⫘","supedot;":"⫄","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supplus;":"⫀","swarrow;":"↙","topfork;":"⫚","triplus;":"⨹","tritime;":"⨻","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","Upsilon;":"Υ","upsilon;":"υ","uwangle;":"⦧","vzigzag;":"⦚","zigrarr;":"⇝","andslope;":"⩘","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrtvbd;":"⦝","approxeq;":"≊","awconint;":"∳","backcong;":"≌","barwedge;":"⌅","bbrktbrk;":"⎶","bigoplus;":"⨁","bigsqcup;":"⨆","biguplus;":"⨄","bigwedge;":"⋀","boxminus;":"⊟","boxtimes;":"⊠","bsolhsub;":"⟈","capbrcup;":"⩉","circledR;":"®","circledS;":"Ⓢ","cirfnint;":"⨐","clubsuit;":"♣","cupbrcap;":"⩈","curlyvee;":"⋎","cwconint;":"∲","DDotrahd;":"⤑","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","drbkarow;":"⤐","dzigrarr;":"⟿","elinters;":"⏧","emptyset;":"∅","eqvparsl;":"⧥","fpartint;":"⨍","geqslant;":"⩾","gesdotol;":"⪄","gnapprox;":"⪊","hksearow;":"⤥","hkswarow;":"⤦","imagline;":"ℐ","imagpart;":"ℑ","infintie;":"⧝","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","intlarhk;":"⨗","laemptyv;":"⦴","ldrushar;":"⥋","leqslant;":"⩽","lesdotor;":"⪃","LessLess;":"⪡","llcorner;":"⌞","lnapprox;":"⪉","lrcorner;":"⌟","lurdshar;":"⥊","mapstoup;":"↥","multimap;":"⊸","naturals;":"ℕ","ncongdot;":"⩭̸","NotEqual;":"≠","notindot;":"⋵̸","NotTilde;":"≁","otimesas;":"⨶","parallel;":"∥","PartialD;":"∂","plusacir;":"⨣","pointint;":"⨕","Precedes;":"≺","precneqq;":"⪵","precnsim;":"⋨","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","raemptyv;":"⦳","realpart;":"ℜ","RightTee;":"⊢","rppolint;":"⨒","rtriltri;":"⧎","scpolint;":"⨓","setminus;":"∖","shortmid;":"∣","smeparsl;":"⧤","sqsubset;":"⊏","sqsupset;":"⊐","subseteq;":"⊆","Succeeds;":"≻","succneqq;":"⪶","succnsim;":"⋩","SuchThat;":"∋","Superset;":"⊃","supseteq;":"⊇","thetasym;":"ϑ","thicksim;":"∼","timesbar;":"⨱","triangle;":"▵","triminus;":"⨺","trpezium;":"⏢","Uarrocir;":"⥉","ulcorner;":"⌜","UnderBar;":"_","urcorner;":"⌝","varkappa;":"ϰ","varsigma;":"ς","vartheta;":"ϑ","backprime;":"‵","backsimeq;":"⋍","Backslash;":"∖","bigotimes;":"⨂","CenterDot;":"·","centerdot;":"·","checkmark;":"✓","CircleDot;":"⊙","complexes;":"ℂ","Congruent;":"≡","Coproduct;":"∐","dotsquare;":"⊡","DoubleDot;":"¨","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownBreve;":"̑","gtrapprox;":"⪆","gtreqless;":"⋛","gvertneqq;":"≩︀","heartsuit;":"♥","HumpEqual;":"≏","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftFloor;":"⌊","lesseqgtr;":"⋚","LessTilde;":"≲","lvertneqq;":"≨︀","Mellintrf;":"ℳ","MinusPlus;":"∓","ngeqslant;":"⩾̸","nleqslant;":"⩽̸","NotCupCap;":"≭","NotExists;":"∄","NotSubset;":"⊂⃒","nparallel;":"∦","nshortmid;":"∤","nsubseteq;":"⊈","nsupseteq;":"⊉","OverBrace;":"⏞","pitchfork;":"⋔","PlusMinus;":"±","rationals;":"ℚ","spadesuit;":"♠","subseteqq;":"⫅","subsetneq;":"⊊","supseteqq;":"⫆","supsetneq;":"⊋","Therefore;":"∴","therefore;":"∴","ThinSpace;":" ","triangleq;":"≜","TripleDot;":"⃛","UnionPlus;":"⊎","varpropto;":"∝","Bernoullis;":"ℬ","circledast;":"⊛","CirclePlus;":"⊕","complement;":"∁","curlywedge;":"⋏","eqslantgtr;":"⪖","EqualTilde;":"≂","Fouriertrf;":"ℱ","gtreqqless;":"⪌","ImaginaryI;":"ⅈ","Laplacetrf;":"ℒ","LeftVector;":"↼","lessapprox;":"⪅","lesseqqgtr;":"⪋","Lleftarrow;":"⇚","lmoustache;":"⎰","longmapsto;":"⟼","mapstodown;":"↧","mapstoleft;":"↤","nLeftarrow;":"⇍","nleftarrow;":"↚","NotElement;":"∉","NotGreater;":"≯","nsubseteqq;":"⫅̸","nsupseteqq;":"⫆̸","precapprox;":"⪷","Proportion;":"∷","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightFloor;":"⌋","rmoustache;":"⎱","sqsubseteq;":"⊑","sqsupseteq;":"⊒","subsetneqq;":"⫋","succapprox;":"⪸","supsetneqq;":"⫌","ThickSpace;":"  ","TildeEqual;":"≃","TildeTilde;":"≈","UnderBrace;":"⏟","UpArrowBar;":"⤒","UpTeeArrow;":"↥","upuparrows;":"⇈","varepsilon;":"ϵ","varnothing;":"∅","backepsilon;":"϶","blacksquare;":"▪","circledcirc;":"⊚","circleddash;":"⊝","CircleMinus;":"⊖","CircleTimes;":"⊗","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","diamondsuit;":"♦","eqslantless;":"⪕","Equilibrium;":"⇌","expectation;":"ℰ","GreaterLess;":"≷","LeftCeiling;":"⌈","LessGreater;":"≶","MediumSpace;":" ","NotLessLess;":"≪̸","NotPrecedes;":"⊀","NotSucceeds;":"⊁","NotSuperset;":"⊃⃒","nRightarrow;":"⇏","nrightarrow;":"↛","OverBracket;":"⎴","preccurlyeq;":"≼","precnapprox;":"⪹","quaternions;":"ℍ","RightVector;":"⇀","Rrightarrow;":"⇛","RuleDelayed;":"⧴","SmallCircle;":"∘","SquareUnion;":"⊔","straightphi;":"ϕ","SubsetEqual;":"⊆","succcurlyeq;":"≽","succnapprox;":"⪺","thickapprox;":"≈","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","VerticalBar;":"∣","blacklozenge;":"⧫","DownArrowBar;":"⤓","DownTeeArrow;":"↧","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","GreaterEqual;":"≥","GreaterTilde;":"≳","HilbertSpace;":"ℋ","HumpDownHump;":"≎","Intersection;":"⋂","LeftArrowBar;":"⇤","LeftTeeArrow;":"↤","LeftTriangle;":"⊲","LeftUpVector;":"↿","NotCongruent;":"≢","NotHumpEqual;":"≏̸","NotLessEqual;":"≰","NotLessTilde;":"≴","Proportional;":"∝","RightCeiling;":"⌉","risingdotseq;":"≓","RoundImplies;":"⥰","ShortUpArrow;":"↑","SquareSubset;":"⊏","triangledown;":"▿","triangleleft;":"◃","UnderBracket;":"⎵","varsubsetneq;":"⊊︀","varsupsetneq;":"⊋︀","VerticalLine;":"|","ApplyFunction;":"⁡","bigtriangleup;":"△","blacktriangle;":"▴","DifferentialD;":"ⅆ","divideontimes;":"⋇","DoubleLeftTee;":"⫤","DoubleUpArrow;":"⇑","fallingdotseq;":"≒","hookleftarrow;":"↩","leftarrowtail;":"↢","leftharpoonup;":"↼","LeftTeeVector;":"⥚","LeftVectorBar;":"⥒","LessFullEqual;":"≦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","looparrowleft;":"↫","measuredangle;":"∡","NotEqualTilde;":"≂̸","NotTildeEqual;":"≄","NotTildeTilde;":"≉","ntriangleleft;":"⋪","Poincareplane;":"ℌ","PrecedesEqual;":"⪯","PrecedesTilde;":"≾","RightArrowBar;":"⇥","RightTeeArrow;":"↦","RightTriangle;":"⊳","RightUpVector;":"↾","shortparallel;":"∥","smallsetminus;":"∖","SucceedsEqual;":"⪰","SucceedsTilde;":"≿","SupersetEqual;":"⊇","triangleright;":"▹","UpEquilibrium;":"⥮","upharpoonleft;":"↿","varsubsetneqq;":"⫋︀","varsupsetneqq;":"⫌︀","VerticalTilde;":"≀","VeryThinSpace;":" ","curvearrowleft;":"↶","DiacriticalDot;":"˙","doublebarwedge;":"⌆","DoubleRightTee;":"⊨","downdownarrows;":"⇊","DownLeftVector;":"↽","GreaterGreater;":"⪢","hookrightarrow;":"↪","HorizontalLine;":"─","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","LeftDownVector;":"⇃","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftthreetimes;":"⋋","LessSlantEqual;":"⩽","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowright;":"↬","LowerLeftArrow;":"↙","NestedLessLess;":"≪","NotGreaterLess;":"≹","NotLessGreater;":"≸","NotSubsetEqual;":"⊈","NotVerticalBar;":"∤","nshortparallel;":"∦","ntriangleright;":"⋫","OpenCurlyQuote;":"‘","ReverseElement;":"∋","rightarrowtail;":"↣","rightharpoonup;":"⇀","RightTeeVector;":"⥛","RightVectorBar;":"⥓","ShortDownArrow;":"↓","ShortLeftArrow;":"←","SquareSuperset;":"⊐","TildeFullEqual;":"≅","trianglelefteq;":"⊴","upharpoonright;":"↾","UpperLeftArrow;":"↖","ZeroWidthSpace;":"​","bigtriangledown;":"▽","circlearrowleft;":"↺","CloseCurlyQuote;":"’","ContourIntegral;":"∮","curvearrowright;":"↷","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","downharpoonleft;":"⇃","DownRightVector;":"⇁","leftharpoondown;":"↽","leftrightarrows;":"⇆","LeftRightVector;":"⥎","LeftTriangleBar;":"⧏","LeftUpTeeVector;":"⥠","LeftUpVectorBar;":"⥘","LowerRightArrow;":"↘","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","NotGreaterEqual;":"≱","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotLeftTriangle;":"⋪","NotSquareSubset;":"⊏̸","ntrianglelefteq;":"⋬","OverParenthesis;":"⏜","RightDownVector;":"⇂","rightleftarrows;":"⇄","rightsquigarrow;":"↝","rightthreetimes;":"⋌","ShortRightArrow;":"→","straightepsilon;":"ϵ","trianglerighteq;":"⊵","UpperRightArrow;":"↗","vartriangleleft;":"⊲","circlearrowright;":"↻","DiacriticalAcute;":"´","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","DoubleRightArrow;":"⇒","DownArrowUpArrow;":"⇵","downharpoonright;":"⇂","EmptySmallSquare;":"◻","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","LeftAngleBracket;":"⟨","LeftUpDownVector;":"⥑","LessEqualGreater;":"⋚","NonBreakingSpace;":" ","NotPrecedesEqual;":"⪯̸","NotRightTriangle;":"⋫","NotSucceedsEqual;":"⪰̸","NotSucceedsTilde;":"≿̸","NotSupersetEqual;":"⊉","ntrianglerighteq;":"⋭","rightharpoondown;":"⇁","rightrightarrows;":"⇉","RightTriangleBar;":"⧐","RightUpTeeVector;":"⥜","RightUpVectorBar;":"⥔","twoheadleftarrow;":"↞","UnderParenthesis;":"⏝","UpArrowDownArrow;":"⇅","vartriangleright;":"⊳","blacktriangledown;":"▾","blacktriangleleft;":"◂","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownLeftTeeVector;":"⥞","DownLeftVectorBar;":"⥖","FilledSmallSquare;":"◼","GreaterSlantEqual;":"⩾","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVectorBar;":"⥙","leftrightharpoons;":"⇋","LeftTriangleEqual;":"⊴","NegativeThinSpace;":"​","NotGreaterGreater;":"≫̸","NotLessSlantEqual;":"⩽̸","NotNestedLessLess;":"⪡̸","NotReverseElement;":"∌","NotSquareSuperset;":"⊐̸","NotTildeFullEqual;":"≇","RightAngleBracket;":"⟩","rightleftharpoons;":"⇌","RightUpDownVector;":"⥏","SquareSubsetEqual;":"⊑","twoheadrightarrow;":"↠","VerticalSeparator;":"❘","blacktriangleright;":"▸","DownRightTeeVector;":"⥟","DownRightVectorBar;":"⥗","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","NegativeThickSpace;":"​","NotLeftTriangleBar;":"⧏̸","PrecedesSlantEqual;":"≼","ReverseEquilibrium;":"⇋","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVectorBar;":"⥕","RightTriangleEqual;":"⊵","SquareIntersection;":"⊓","SucceedsSlantEqual;":"≽","DoubleLongLeftArrow;":"⟸","DownLeftRightVector;":"⥐","LeftArrowRightArrow;":"⇆","leftrightsquigarrow;":"↭","NegativeMediumSpace;":"​","NotGreaterFullEqual;":"≧̸","NotRightTriangleBar;":"⧐̸","RightArrowLeftArrow;":"⇄","SquareSupersetEqual;":"⊒","CapitalDifferentialD;":"ⅅ","DoubleLeftRightArrow;":"⇔","DoubleLongRightArrow;":"⟹","EmptyVerySmallSquare;":"▫","NestedGreaterGreater;":"≫","NotDoubleVerticalBar;":"∦","NotGreaterSlantEqual;":"⩾̸","NotLeftTriangleEqual;":"⋬","NotSquareSubsetEqual;":"⋢","OpenCurlyDoubleQuote;":"“","ReverseUpEquilibrium;":"⥯","CloseCurlyDoubleQuote;":"”","DoubleContourIntegral;":"∯","FilledVerySmallSquare;":"▪","NegativeVeryThinSpace;":"​","NotPrecedesSlantEqual;":"⋠","NotRightTriangleEqual;":"⋭","NotSucceedsSlantEqual;":"⋡","DiacriticalDoubleAcute;":"˝","NotSquareSupersetEqual;":"⋣","NotNestedGreaterGreater;":"⪢̸","ClockwiseContourIntegral;":"∲","DoubleLongLeftRightArrow;":"⟺","CounterClockwiseContourIntegral;":"∳"};let lN;const Aie=(i,t)=>{let n=0;const o=i.length;let l="";function d(m){n+=m,i=i.slice(m)}for(;n<o;){const m=/&(?:#x?)?/i.exec(i);if(!m||n+m.index>=o){const $=o-n;l+=i.slice(0,$),d($);break}if(l+=i.slice(0,m.index),d(m.index),m[0]==="&"){let $="",h;if(/[0-9a-z]/i.test(i[1])){lN||(lN=Object.keys(yL).reduce((e,c)=>Math.max(e,c.length),0));for(let e=lN;!h&&e>0;--e)$=i.slice(1,1+e),h=yL[$];if(h){const e=$.endsWith(";");t&&!e&&/[=a-z0-9]/i.test(i[$.length+1]||"")?(l+="&"+$,d(1+$.length)):(l+=h,d(1+$.length))}else l+="&"+$,d(1+$.length)}else l+="&",d(1)}else{const $=m[0]==="&#x",e=($?/^&#x([0-9a-f]+);?/i:/^&#([0-9]+);?/).exec(i);if(!e)l+=m[0],d(m[0].length);else{let c=Number.parseInt(e[1],$?16:10);c===0||c>1114111||c>=55296&&c<=57343?c=65533:c>=64976&&c<=65007||(c&65534)===65534||(c>=1&&c<=8||c===11||c>=13&&c<=31||c>=127&&c<=159)&&(c=Pie[c]||c),l+=String.fromCodePoint(c),d(e[0].length)}}}return l},Pie={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},wie=lp("style,iframe,script,noscript",!0),_2={isVoidTag:UR,isNativeTag:i=>Gee(i)||Kee(i),isPreTag:i=>i==="pre",decodeEntities:Aie,isBuiltInComponent:i=>{if(Dg(i,"Transition"))return M2;if(Dg(i,"TransitionGroup"))return MD},getNamespace(i,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(i==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&i!=="mglyph"&&i!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(i==="svg")return 1;if(i==="math")return 2}return n},getTextMode({tag:i,ns:t}){if(t===0){if(i==="textarea"||i==="title")return 1;if(wie(i))return 2}return 0}},m4=i=>{i.type===1&&i.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(i.props[n]={type:7,name:"bind",arg:to("style",!0,t.loc),exp:Nie(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Nie=(i,t)=>{const n=jR(i);return to(JSON.stringify(n),!1,t,3)};function jp(i,t){return Cc(i,t,Iie)}const Iie={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Oie=(i,t,n)=>{const{exp:o,loc:l}=i;return o||n.onError(jp(53,l)),t.children.length&&(n.onError(jp(54,l)),t.children.length=0),{props:[qc(to("innerHTML",!0,l),o||to("",!0))]}},Mie=(i,t,n)=>{const{exp:o,loc:l}=i;return o||n.onError(jp(55,l)),t.children.length&&(n.onError(jp(56,l)),t.children.length=0),{props:[qc(to("textContent",!0),o?P_(o,n)>0?o:ls(n.helperString(kD),[o],l):to("",!0))]}},Fie=(i,t,n)=>{const o=ak(i,t,n);if(!o.props.length||t.tagType===1)return o;i.arg&&n.onError(jp(58,i.arg.loc));function l(){const $=r_(t,"value");$&&n.onError(jp(60,$.loc))}const{tag:d}=t,m=n.isCustomElement(d);if(d==="input"||d==="textarea"||d==="select"||m){let $=l4,h=!1;if(d==="input"||m){const e=r_(t,"type");if(e){if(e.type===7)$=qE;else if(e.value)switch(e.value.content){case"radio":$=c4;break;case"checkbox":$=u4;break;case"file":h=!0,n.onError(jp(59,i.loc));break;default:l();break}}else $C(t)?$=qE:l()}else d==="select"?$=f4:l();h||(o.needRuntime=n.helper($))}else n.onError(jp(57,i.loc));return o.props=o.props.filter($=>!($.key.type===4&&$.key.content==="modelValue")),o},Lie=lp("passive,once,capture"),Rie=lp("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Bie=lp("left,right"),tj=lp("onkeyup,onkeydown,onkeypress",!0),jie=(i,t,n,o)=>{const l=[],d=[],m=[];for(let $=0;$<t.length;$++){const h=t[$];Lie(h)?m.push(h):Bie(h)?op(i)?tj(i.content)?l.push(h):d.push(h):(l.push(h),d.push(h)):Rie(h)?d.push(h):l.push(h)}return{keyModifiers:l,nonKeyModifiers:d,eventOptionModifiers:m}},bL=(i,t)=>op(i)&&i.content.toLowerCase()==="onclick"?to(t,!0):i.type!==4?ap(["(",i,`) === "onClick" ? "${t}" : (`,i,")"]):i,Jie=(i,t,n)=>ik(i,t,n,o=>{const{modifiers:l}=i;if(!l.length)return o;let{key:d,value:m}=o.props[0];const{keyModifiers:$,nonKeyModifiers:h,eventOptionModifiers:e}=jie(d,l,n,i.loc);if(h.includes("right")&&(d=bL(d,"onContextmenu")),h.includes("middle")&&(d=bL(d,"onMouseup")),h.length&&(m=ls(n.helper(p4),[m,JSON.stringify(h)])),$.length&&(!op(d)||tj(d.content))&&(m=ls(n.helper(d4),[m,JSON.stringify($)])),e.length){const c=e.map(by).join("");d=op(d)?to(`${d.content}${c}`,!0):ap(["(",d,`) + "${c}"`])}return{props:[qc(d,m)]}}),Uie=(i,t,n)=>{const{exp:o,loc:l}=i;return o||n.onError(jp(61,l)),{props:[],needRuntime:n.helper(_4)}},Vie=(i,t)=>{if(i.type===1&&i.tagType===1&&t.isBuiltInComponent(i.tag)===M2)return()=>{if(!i.children.length)return;nj(i)&&t.onError(jp(62,{start:i.children[0].loc.start,end:i.children[i.children.length-1].loc.end,source:""}));const o=i.children[0];if(o.type===1)for(const l of o.props)l.type===7&&l.name==="show"&&i.props.push({type:6,name:"persisted",value:void 0,loc:i.loc})}};function nj(i){const t=i.children=i.children.filter(o=>o.type!==3&&!(o.type===2&&!o.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(nj)}const zie=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,Wie=(i,t,n)=>{if(t.scopes.vSlot>0)return;let o=0,l=0;const d=[],m=h=>{if(o>=20||l>=5){const e=ls(t.helper(wC),[JSON.stringify(d.map(c=>g4(c,t)).join("")).replace(zie,'" + $1 + "'),String(d.length)]);if(DL(d[0],e,t),d.length>1){for(let P=1;P<d.length;P++)DL(d[P],null,t);const c=d.length-1;return i.splice(h-d.length+1,c),c}}return 0};let $=0;for(;$<i.length;$++){const h=i[$];if(qie(h)){const c=h,P=Gie(c);if(P){o+=P[0],l+=P[1],d.push(c);continue}}$-=m($),o=0,l=0,d.length=0}m($)},qie=i=>(i.type===1&&i.tagType===0||i.type==12)&&i.codegenNode&&i.codegenNode.type===4&&i.codegenNode.hoisted,$ie=/^(data|aria)-/,SL=(i,t)=>(t===0?ere(i):t===1?rre(i):!1)||$ie.test(i),DL=(i,t,n)=>{const o=i.codegenNode.hoisted;n.hoists[n.hoists.indexOf(o)]=t},Hie=lp("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function Gie(i){if(i.type===1&&Hie(i.tag))return!1;if(i.type===12)return[1,0];let t=1,n=i.props.length>0?1:0,o=!1;const l=()=>(o=!0,!1);function d(m){for(let $=0;$<m.props.length;$++){const h=m.props[$];if(h.type===6&&!SL(h.name,m.ns)||h.type===7&&h.name==="bind"&&(h.arg&&(h.arg.type===8||h.arg.isStatic&&!SL(h.arg.content,m.ns))||h.exp&&(h.exp.type===8||h.exp.constType<3)))return l()}for(let $=0;$<m.children.length;$++){t++;const h=m.children[$];if(h.type===1&&(h.props.length>0&&n++,d(h),o))return!1}return!0}return d(i)?[t,n]:!1}function g4(i,t){if(lc(i))return i;if(x2(i))return"";switch(i.type){case 1:return Kie(i,t);case 2:return sh(i.content);case 3:return`<!--${sh(i.content)}-->`;case 5:return sh(u6(x1(i.content)));case 8:return sh(x1(i));case 12:return g4(i.content,t);default:return""}}function Kie(i,t){let n=`<${i.tag}`,o="";for(let l=0;l<i.props.length;l++){const d=i.props[l];if(d.type===6)n+=` ${d.name}`,d.value&&(n+=`="${sh(d.value.content)}"`);else if(d.type===7)if(d.name==="bind"){const m=d.exp;if(m.content[0]==="_"){n+=` ${d.arg.content}="__VUE_EXP_START__${m.content}__VUE_EXP_END__"`;continue}if(VR(d.arg.content)&&m.content==="false")continue;let $=x1(m);if($!=null){const h=d.arg&&d.arg.content;h==="class"?$=JR($):h==="style"&&($=Wee(BR($))),n+=` ${d.arg.content}="${sh($)}"`}}else d.name==="html"?o=x1(d.exp):d.name==="text"&&(o=sh(u6(x1(d.exp))))}if(t.scopeId&&(n+=` ${t.scopeId}`),n+=">",o)n+=o;else for(let l=0;l<i.children.length;l++)n+=g4(i.children[l],t);return UR(i.tag)||(n+=`</${i.tag}>`),n}function x1(i){if(i.type===4)return new Function(`return (${i.content})`)();{let t="";return i.children.forEach(n=>{lc(n)||x2(n)||(n.type===2?t+=n.content:n.type===5?t+=u6(x1(n.content)):t+=x1(n))}),t}}const Qie=(i,t)=>{i.type===1&&i.tagType===0&&(i.tag==="script"||i.tag==="style")&&(t.onError(jp(63,i.loc)),t.removeNode())},h4=[m4,Vie],v4={cloak:NS,html:Oie,text:Mie,model:Fie,on:Jie,show:Uie};function Xie(i,t={}){return rj(i,_v({},_2,t,{nodeTransforms:[Qie,...h4,...t.nodeTransforms||[]],directiveTransforms:_v({},v4,t.directiveTransforms||{}),transformHoist:Wie}))}function Yie(i,t={}){return HC(i,_v({},_2,t))}var ij=Object.freeze({__proto__:null,BASE_TRANSITION:f6,CAMELIZE:PE,CAPITALIZE:$R,CREATE_BLOCK:p6,CREATE_COMMENT:E2,CREATE_ELEMENT_BLOCK:d6,CREATE_ELEMENT_VNODE:AC,CREATE_SLOTS:m6,CREATE_STATIC:wC,CREATE_TEXT:PC,CREATE_VNODE:CD,DOMDirectiveTransforms:v4,DOMNodeTransforms:h4,FRAGMENT:a2,GUARD_REACTIVE_PROPS:C2,IS_MEMO_SAME:g6,IS_REF:WS,KEEP_ALIVE:US,MERGE_PROPS:N1,NORMALIZE_CLASS:MC,NORMALIZE_PROPS:s2,NORMALIZE_STYLE:FC,OPEN_BLOCK:Sy,POP_SCOPE_ID:BC,PUSH_SCOPE_ID:RC,RENDER_LIST:OC,RENDER_SLOT:_6,RESOLVE_COMPONENT:VS,RESOLVE_DIRECTIVE:NC,RESOLVE_DYNAMIC_COMPONENT:o2,RESOLVE_FILTER:qR,SET_BLOCK_TRACKING:zS,SUSPENSE:T2,TELEPORT:b1,TO_DISPLAY_STRING:kD,TO_HANDLERS:LC,TO_HANDLER_KEY:wE,TRANSITION:M2,TRANSITION_GROUP:MD,TS_NODE_TYPES:X6,UNREF:c2,V_MODEL_CHECKBOX:u4,V_MODEL_DYNAMIC:qE,V_MODEL_RADIO:c4,V_MODEL_SELECT:f4,V_MODEL_TEXT:l4,V_ON_WITH_KEYS:d4,V_ON_WITH_MODIFIERS:p4,V_SHOW:_4,WITH_CTX:jC,WITH_DIRECTIVES:IC,WITH_MEMO:JC,advancePositionWithClone:F1,advancePositionWithMutation:l2,assert:KN,baseCompile:rj,baseParse:HC,buildDirectiveArgs:i4,buildProps:O2,buildSlots:XS,checkCompatEnabled:dne,compile:Xie,convertToBlock:UC,createArrayExpression:J1,createAssignmentExpression:JN,createBlockStatement:AD,createCacheExpression:HR,createCallExpression:ls,createCompilerError:Cc,createCompoundExpression:ap,createConditionalExpression:Dy,createDOMCompilerError:jp,createForLoopParams:QS,createFunctionExpression:R_,createIfStatement:IE,createInterpolation:NE,createObjectExpression:e_,createObjectProperty:qc,createReturnStatement:KR,createRoot:k2,createSequenceExpression:GR,createSimpleExpression:to,createStructuralDirectiveTransform:ND,createTemplateLiteral:v6,createTransformContext:wD,createVNodeCall:u2,extractIdentifiers:A_,findDir:Nf,findProp:r_,generate:Q6,generateCodeFrame:w1,getBaseTransformPreset:s4,getConstantType:P_,getInnerRange:j6,getMemoedVNodeCall:PB,getVNodeBlockHelper:O1,getVNodeHelper:I1,hasDynamicKeyVBind:$C,hasScopeRef:Xd,helperNameMap:Zd,injectProp:$S,isBuiltInType:Dg,isCoreComponent:R6,isFunctionType:km,isInDestructureAssignment:Cy,isMemberExpression:B6,isMemberExpressionBrowser:une,isMemberExpressionNode:kB,isReferencedIdentifier:ek,isSimpleIdentifier:xy,isSlotOutlet:p2,isStaticArgOf:cv,isStaticExp:op,isStaticProperty:ky,isStaticPropertyKey:XB,isTemplateNode:f2,isText:PS,isVSlot:J6,locStub:rl,noopDirectiveTransform:NS,parse:Yie,parserOptions:_2,processExpression:Sd,processFor:e4,processIf:Z6,processSlotOutlet:a4,registerRuntimeHelpers:h6,resolveComponentType:nk,stringifyExpression:tk,toValidAssetId:HS,trackSlotScopes:t4,trackVForSlotScopes:n4,transform:KC,transformBind:o4,transformElement:ej,transformExpression:Y6,transformModel:ak,transformOn:ik,transformStyle:m4,traverseNode:A2,walkBlockDeclarations:QB,walkFunctionParams:rk,walkIdentifiers:U1,warnDeprecation:wB});function aj(i,t){for(var n=0,o=i.length-1;o>=0;o--){var l=i[o];l==="."?i.splice(o,1):l===".."?(i.splice(o,1),n++):n&&(i.splice(o,1),n--)}if(t)for(;n--;n)i.unshift("..");return i}var Zie=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y4=function(i){return Zie.exec(i).slice(1)};function $E(){for(var i="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var o=n>=0?arguments[n]:"/";if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;i=o+"/"+i,t=o.charAt(0)==="/"}return i=aj(x4(i.split("/"),function(l){return!!l}),!t).join("/"),(t?"/":"")+i||"."}function b4(i){var t=S4(i),n=eae(i,-1)==="/";return i=aj(x4(i.split("/"),function(o){return!!o}),!t).join("/"),!i&&!t&&(i="."),i&&n&&(i+="/"),(t?"/":"")+i}function S4(i){return i.charAt(0)==="/"}function oj(){var i=Array.prototype.slice.call(arguments,0);return b4(x4(i,function(t,n){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))}function sj(i,t){i=$E(i).substr(1),t=$E(t).substr(1);function n(e){for(var c=0;c<e.length&&e[c]==="";c++);for(var P=e.length-1;P>=0&&e[P]==="";P--);return c>P?[]:e.slice(c,P-c+1)}for(var o=n(i.split("/")),l=n(t.split("/")),d=Math.min(o.length,l.length),m=d,$=0;$<d;$++)if(o[$]!==l[$]){m=$;break}for(var h=[],$=m;$<o.length;$++)h.push("..");return h=h.concat(l.slice(m)),h.join("/")}var cj="/",uj=":";function lj(i){var t=y4(i),n=t[0],o=t[1];return!n&&!o?".":(o&&(o=o.substr(0,o.length-1)),n+o)}function fj(i,t){var n=y4(i)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function D4(i){return y4(i)[3]}var vv={extname:D4,basename:fj,dirname:lj,sep:cj,delimiter:uj,relative:sj,join:oj,isAbsolute:S4,normalize:b4,resolve:$E};function x4(i,t){if(i.filter)return i.filter(t);for(var n=[],o=0;o<i.length;o++)t(i[o],o,i)&&n.push(i[o]);return n}var eae="ab".substr(-1)==="b"?function(i,t,n){return i.substr(t,n)}:function(i,t,n){return t<0&&(t=i.length+t),i.substr(t,n)},rae=Object.freeze({__proto__:null,basename:fj,default:vv,delimiter:uj,dirname:lj,extname:D4,isAbsolute:S4,join:oj,normalize:b4,relative:sj,resolve:$E,sep:cj});const T1="Unknown";function T4(i,t){switch(i.type){case"StringLiteral":case"NumericLiteral":return String(i.value);case"Identifier":if(!t)return i.name}}function rI(i){return i.filter(t=>!!t).join(", ")}function pj(i){return i.type.endsWith("Literal")}function hh(i){return X6.includes(i.type)?hh(i.expression):i}function bd(i,t){return!!(i&&t&&i.type==="CallExpression"&&i.callee.type==="Identifier"&&(typeof t=="string"?i.callee.name===t:t(i.callee.name)))}function tI(i){return i.length>1?`[${i.join(", ")}]`:i[0]}function nI(i){return i.type==="ImportSpecifier"?i.imported.type==="Identifier"?i.imported.name:i.imported.value:i.type==="ImportNamespaceSpecifier"?"*":"default"}function L1(i){return i.type==="Identifier"?i.name:i.type==="StringLiteral"?i.value:null}const tae=(vv.posix||vv).normalize,nae=/\\/g;function E4(i){return tae(i.replace(nae,"/"))}const iI=(vv.posix||vv).join,dj=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function _j(i){return dj.test(i)?JSON.stringify(i):i}function iae(i,t){for(;i.length<t;)i="0"+i;return i}function Xh(i,t){var n,o,l;if(t.length===0)return i;for(n=0,l=t.length;n<l;n++)o=t.charCodeAt(n),i=(i<<5)-i+o,i|=0;return i<0?i*-2:i}function aae(i,t,n){return Object.keys(t).sort().reduce(o,i);function o(l,d){return mj(l,t[d],d,n)}}function mj(i,t,n,o){var l=Xh(Xh(Xh(i,n),oae(t)),typeof t);if(t===null)return Xh(l,"null");if(t===void 0)return Xh(l,"undefined");if(typeof t=="object"||typeof t=="function"){if(o.indexOf(t)!==-1)return Xh(l,"[Circular]"+n);o.push(t);var d=aae(l,t,o);if(!("valueOf"in t)||typeof t.valueOf!="function")return d;try{return Xh(d,String(t.valueOf()))}catch(m){return Xh(d,"[valueOf exception]"+(m.stack||m.message))}}return Xh(l,t.toString())}function oae(i){return Object.prototype.toString.call(i)}function sae(i){return iae(mj(0,i,"",[]).toString(16),8)}var cae=sae,uae=cae;const HE="useCssVars";function gj(i,t,n,o=!1){return`{
${i.map(l=>`"${o?"--":""}${hj(t,l,n)}": (${l})`).join(`,
`)}
}`}function hj(i,t,n){return n?uae(i+t):`${i}-${t.replace(dj,o=>`\\${o}`)}`}function vj(i){return i=i.trim(),i[0]==="'"&&i[i.length-1]==="'"||i[0]==='"'&&i[i.length-1]==='"'?i.slice(1,-1):i}const vE=/v-bind\s*\(/g;function lae(i){const t=[];return i.styles.forEach(n=>{let o;const l=n.content.replace(/\/\*([\s\S]*?)\*\//g,"");for(;o=vE.exec(l);){const d=o.index+o[0].length,m=yj(l,d);if(m!==null){const $=vj(l.slice(d,m));t.includes($)||t.push($)}}}),t}function yj(i,t){let n=0,o=0;for(let l=t;l<i.length;l++){const d=i.charAt(l);switch(n){case 0:if(d==="'")n=1;else if(d==='"')n=2;else if(d==="(")o++;else if(d===")")if(o>0)o--;else return l;break;case 1:d==="'"&&(n=0);break;case 2:d==='"'&&(n=0);break}}return null}const bj=i=>{const{id:t,isProd:n}=i;return{postcssPlugin:"vue-sfc-vars",Declaration(o){const l=o.value;if(vE.test(l)){vE.lastIndex=0;let d="",m=0,$;for(;$=vE.exec(l);){const h=$.index+$[0].length,e=yj(l,h);if(e!==null){const c=vj(l.slice(h,e));d+=l.slice(m,$.index)+`var(--${hj(t,c,n)})`,m=e+1}}o.value=d+l.slice(m)}}}};bj.postcss=!0;function Sj(i,t,n,o){const l=gj(i,n,o),d=to(l,!1),m=wD(k2([]),{prefixIdentifiers:!0,inline:!0,bindingMetadata:t.__isScriptSetup===!1?void 0:t}),$=Sd(d,m),h=$.type===4?$.content:$.children.map(e=>typeof e=="string"?e:e.content).join("");return`_${HE}(_ctx => (${h}))`}function fae(i,t,n,o,l){return`
import { ${HE} as _${HE} } from 'vue'
const __injectCSSVars__ = () => {
${Sj(i,t,n,o)}}
const __setup__ = ${l}.setup
${l}.setup = __setup__
? (props, ctx) => { __injectCSSVars__();return __setup__(props, ctx) }
: __injectCSSVars__
`}function ok(i=500){return new Map}function Dj(i,t){return new RegExp(`[^\\w$_]${i.replace(/\$/g,"\\$")}[^\\w$_]`).test(pae(t))}const xL=ok();function pae(i){const{content:t,ast:n}=i.template,o=xL.get(t);if(o)return o;let l="";return KC(k2([n]),{nodeTransforms:[d=>{if(d.type===1){!_2.isNativeTag(d.tag)&&!_2.isBuiltInComponent(d.tag)&&(l+=`,${Tg(d.tag)},${by(Tg(d.tag))}`);for(let m=0;m<d.props.length;m++){const $=d.props[m];$.type===7&&(c6($.name)||(l+=`,v${by(Tg($.name))}`),$.exp&&(l+=`,${GE($.exp.content,$.name)}`))}}else d.type===5&&(l+=`,${GE(d.content.content)}`)}]}),l+=";",xL.set(t,l),l}const dae=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;function GE(i,t){if(/ as\s+\w|<.*>|:/.test(i)){if(t==="slot")i=`(${i})=>{}`;else if(t==="on")i=`()=>{return ${i}}`;else if(t==="for"){const l=i.match(dae);if(l){let[,d,m]=l;return d=d.trim().replace(/^\(|\)$/g,""),GE(`(${d})=>{}`)+GE(m)}}let n="";const o=CB(i,{plugins:["typescript"]});return U1(o,l=>{n+=","+l.name}),n}return _ae(i)}function _ae(i){return i.replace(/'[^']*'|"[^"]*"/g,"").replace(/`[^`]+`/g,mae)}function mae(i){const t=i.match(/\${[^}]+}/g);return t?t.map(n=>n.slice(2,-1)).join(","):""}var gae=Object.defineProperty,TL=Object.getOwnPropertySymbols,hae=Object.prototype.hasOwnProperty,vae=Object.prototype.propertyIsEnumerable,EL=(i,t,n)=>t in i?gae(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,yae=(i,t)=>{for(var n in t||(t={}))hae.call(t,n)&&EL(i,n,t[n]);if(TL)for(var n of TL(t))vae.call(t,n)&&EL(i,n,t[n]);return i};const xj="anonymous.vue",KE=ok();function C4(i,{sourceMap:t=!0,filename:n=xj,sourceRoot:o="",pad:l=!1,ignoreEmpty:d=!0,compiler:m=ij}={}){const $=i+t+n+o+l+m.parse,h=KE.get($);if(h)return h;const e={filename:n,source:i,template:null,script:null,scriptSetup:null,styles:[],customBlocks:[],cssVars:[],slotted:!1,shouldForceReload:D=>Cae(D,e)},c=[];if(m.parse(i,{isNativeTag:()=>!0,isPreTag:()=>!0,getTextMode:({tag:D,props:O},W)=>!W&&D!=="template"||D==="template"&&O.some(E=>E.type===6&&E.name==="lang"&&E.value&&E.value.content&&E.value.content!=="html")?2:0,onError:D=>{c.push(D)}}).children.forEach(D=>{if(D.type===1&&!(d&&D.tag!=="template"&&Eae(D)&&!Tae(D)))switch(D.tag){case"template":if(e.template)c.push(CL(D));else{const v=e.template=WT(D,i,!1);if(v.ast=D,v.attrs.functional){const S=new SyntaxError("<template functional> is no longer supported in Vue 3, since functional components no longer have significant performance difference from stateful ones. Just use a normal <template> instead.");S.loc=D.props.find(te=>te.name==="functional").loc,c.push(S)}}break;case"script":const O=WT(D,i,l),W=!!O.attrs.setup;if(W&&!e.scriptSetup){e.scriptSetup=O;break}if(!W&&!e.script){e.script=O;break}c.push(CL(D,W));break;case"style":const E=WT(D,i,l);E.attrs.vars&&c.push(new SyntaxError("<style vars> has been replaced by a new proposal: https://github.com/vuejs/rfcs/pull/231")),e.styles.push(E);break;default:e.customBlocks.push(WT(D,i,l));break}}),!e.template&&!e.script&&!e.scriptSetup&&c.push(new SyntaxError("At least one <template> or <script> is required in a single file component.")),e.scriptSetup&&(e.scriptSetup.src&&(c.push(new SyntaxError('<script setup> cannot use the "src" attribute because its syntax will be ambiguous outside of the component.')),e.scriptSetup=null),e.script&&e.script.src&&(c.push(new SyntaxError('<script> cannot use the "src" attribute when <script setup> is also present because they must be processed together.')),e.script=null)),t){const D=O=>{O&&!O.src&&(O.map=Dae(n,i,O.content,o,!l||O.type==="template"?O.loc.start.line-1:0))};D(e.template),D(e.script),e.styles.forEach(D),e.customBlocks.forEach(D)}e.cssVars=lae(e);const T=/(?:::v-|:)slotted\(/;e.slotted=e.styles.some(D=>D.scoped&&T.test(D.content));const s={descriptor:e,errors:c};return KE.set($,s),s}function CL(i,t=!1){const n=new SyntaxError(`Single file component can contain only one <${i.tag}${t?" setup":""}> element`);return n.loc=i.loc,n}function WT(i,t,n){const o=i.tag;let{start:l,end:d}=i.loc,m="";if(i.children.length)l=i.children[0].loc.start,d=i.children[i.children.length-1].loc.end,m=t.slice(l.offset,d.offset);else{const c=i.loc.source.indexOf("</");c>-1&&(l={line:l.line,column:l.column+c,offset:l.offset+c}),d=yae({},l)}const $={source:m,start:l,end:d},h={},e={type:o,content:m,loc:$,attrs:h};return n&&(e.content=xae(t,e,n)+e.content),i.props.forEach(c=>{c.type===6&&(h[c.name]=c.value&&c.value.content||!0,c.name==="lang"?e.lang=c.value&&c.value.content:c.name==="src"?e.src=c.value&&c.value.content:o==="style"?c.name==="scoped"?e.scoped=!0:c.name==="module"&&(e.module=h[c.name]):o==="script"&&c.name==="setup"&&(e.setup=h.setup))}),e}const Tj=/\r?\n/g,bae=/^(?:\/\/)?\s*$/,Sae=/./g;function Dae(i,t,n,o,l){const d=new K6({file:i.replace(/\\/g,"/"),sourceRoot:o.replace(/\\/g,"/")});return d.setSourceContent(i,t),n.split(Tj).forEach((m,$)=>{if(!bae.test(m)){const h=$+1+l,e=$+1;for(let c=0;c<m.length;c++)/\s/.test(m[c])||d.addMapping({source:i,original:{line:h,column:c},generated:{line:e,column:c}})}}),JSON.parse(d.toString())}function xae(i,t,n){if(i=i.slice(0,t.loc.start.offset),n==="space")return i.replace(Sae," ");{const o=i.split(Tj).length,l=t.type==="script"&&!t.lang?`//
`:`
`;return Array(o).join(l)}}function Tae(i){return i.props.some(t=>t.type!==6?!1:t.name==="src")}function Eae(i){for(let t=0;t<i.children.length;t++){const n=i.children[t];if(n.type!==2||n.content.trim()!=="")return!1}return!0}function Cae(i,t){if(!t.scriptSetup||t.scriptSetup.lang!=="ts"&&t.scriptSetup.lang!=="tsx")return!1;for(const n in i)if(!i[n].isUsedInTemplate&&Dj(n,t))return!0;return!1}var Ty=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};/*! https://mths.be/punycode v1.4.1 by @mathias */var fN=2147483647,IS=36,Ej=1,aI=26,kae=38,Aae=700,Pae=72,wae=128,Nae="-",Iae=/[^\x20-\x7E]/,Oae=/[\x2E\u3002\uFF0E\uFF61]/g,Mae={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pN=IS-Ej,H0=Math.floor,dN=String.fromCharCode;function kL(i){throw new RangeError(Mae[i])}function Fae(i,t){for(var n=i.length,o=[];n--;)o[n]=t(i[n]);return o}function Lae(i,t){var n=i.split("@"),o="";n.length>1&&(o=n[0]+"@",i=n[1]),i=i.replace(Oae,".");var l=i.split("."),d=Fae(l,t).join(".");return o+d}function Rae(i){for(var t=[],n=0,o=i.length,l,d;n<o;)l=i.charCodeAt(n++),l>=55296&&l<=56319&&n<o?(d=i.charCodeAt(n++),(d&64512)==56320?t.push(((l&1023)<<10)+(d&1023)+65536):(t.push(l),n--)):t.push(l);return t}function AL(i,t){return i+22+75*(i<26)-((t!=0)<<5)}function Bae(i,t,n){var o=0;for(i=n?H0(i/Aae):i>>1,i+=H0(i/t);i>pN*aI>>1;o+=IS)i=H0(i/pN);return H0(o+(pN+1)*i/(i+kae))}function jae(i){var t,n,o,l,d,m,$,h,e,c,P,T=[],s,D,O,W;for(i=Rae(i),s=i.length,t=wae,n=0,d=Pae,m=0;m<s;++m)P=i[m],P<128&&T.push(dN(P));for(o=l=T.length,l&&T.push(Nae);o<s;){for($=fN,m=0;m<s;++m)P=i[m],P>=t&&P<$&&($=P);for(D=o+1,$-t>H0((fN-n)/D)&&kL("overflow"),n+=($-t)*D,t=$,m=0;m<s;++m)if(P=i[m],P<t&&++n>fN&&kL("overflow"),P==t){for(h=n,e=IS;c=e<=d?Ej:e>=d+aI?aI:e-d,!(h<c);e+=IS)W=h-c,O=IS-c,T.push(dN(AL(c+W%O,0))),h=H0(W/O);T.push(dN(AL(h,0))),d=Bae(n,D,o==l),n=0,++o}++n,++t}return T.join("")}function Jae(i){return Lae(i,function(t){return Iae.test(t)?"xn--"+jae(t):t})}var oh=[],Cm=[],Uae=typeof Uint8Array<"u"?Uint8Array:Array,k4=!1;function Cj(){k4=!0;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=i.length;t<n;++t)oh[t]=i[t],Cm[i.charCodeAt(t)]=t;Cm["-".charCodeAt(0)]=62,Cm["_".charCodeAt(0)]=63}function Vae(i){k4||Cj();var t,n,o,l,d,m,$=i.length;if($%4>0)throw new Error("Invalid string. Length must be a multiple of 4");d=i[$-2]==="="?2:i[$-1]==="="?1:0,m=new Uae($*3/4-d),o=d>0?$-4:$;var h=0;for(t=0,n=0;t<o;t+=4,n+=3)l=Cm[i.charCodeAt(t)]<<18|Cm[i.charCodeAt(t+1)]<<12|Cm[i.charCodeAt(t+2)]<<6|Cm[i.charCodeAt(t+3)],m[h++]=l>>16&255,m[h++]=l>>8&255,m[h++]=l&255;return d===2?(l=Cm[i.charCodeAt(t)]<<2|Cm[i.charCodeAt(t+1)]>>4,m[h++]=l&255):d===1&&(l=Cm[i.charCodeAt(t)]<<10|Cm[i.charCodeAt(t+1)]<<4|Cm[i.charCodeAt(t+2)]>>2,m[h++]=l>>8&255,m[h++]=l&255),m}function zae(i){return oh[i>>18&63]+oh[i>>12&63]+oh[i>>6&63]+oh[i&63]}function Wae(i,t,n){for(var o,l=[],d=t;d<n;d+=3)o=(i[d]<<16)+(i[d+1]<<8)+i[d+2],l.push(zae(o));return l.join("")}function PL(i){k4||Cj();for(var t,n=i.length,o=n%3,l="",d=[],m=16383,$=0,h=n-o;$<h;$+=m)d.push(Wae(i,$,$+m>h?h:$+m));return o===1?(t=i[n-1],l+=oh[t>>2],l+=oh[t<<4&63],l+="=="):o===2&&(t=(i[n-2]<<8)+i[n-1],l+=oh[t>>10],l+=oh[t>>4&63],l+=oh[t<<2&63],l+="="),d.push(l),d.join("")}function sk(i,t,n,o,l){var d,m,$=l*8-o-1,h=(1<<$)-1,e=h>>1,c=-7,P=n?l-1:0,T=n?-1:1,s=i[t+P];for(P+=T,d=s&(1<<-c)-1,s>>=-c,c+=$;c>0;d=d*256+i[t+P],P+=T,c-=8);for(m=d&(1<<-c)-1,d>>=-c,c+=o;c>0;m=m*256+i[t+P],P+=T,c-=8);if(d===0)d=1-e;else{if(d===h)return m?NaN:(s?-1:1)*(1/0);m=m+Math.pow(2,o),d=d-e}return(s?-1:1)*m*Math.pow(2,d-o)}function kj(i,t,n,o,l,d){var m,$,h,e=d*8-l-1,c=(1<<e)-1,P=c>>1,T=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=o?0:d-1,D=o?1:-1,O=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?($=isNaN(t)?1:0,m=c):(m=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-m))<1&&(m--,h*=2),m+P>=1?t+=T/h:t+=T*Math.pow(2,1-P),t*h>=2&&(m++,h/=2),m+P>=c?($=0,m=c):m+P>=1?($=(t*h-1)*Math.pow(2,l),m=m+P):($=t*Math.pow(2,P-1)*Math.pow(2,l),m=0));l>=8;i[n+s]=$&255,s+=D,$/=256,l-=8);for(m=m<<l|$,e+=l;e>0;i[n+s]=m&255,s+=D,m/=256,e-=8);i[n+s-D]|=O*128}var qae={}.toString,Aj=Array.isArray||function(i){return qae.call(i)=="[object Array]"};/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var $ae=50;oa.TYPED_ARRAY_SUPPORT=Ty.TYPED_ARRAY_SUPPORT!==void 0?Ty.TYPED_ARRAY_SUPPORT:!0;QE();function QE(){return oa.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function uv(i,t){if(QE()<t)throw new RangeError("Invalid typed array length");return oa.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(t),i.__proto__=oa.prototype):(i===null&&(i=new oa(t)),i.length=t),i}function oa(i,t,n){if(!oa.TYPED_ARRAY_SUPPORT&&!(this instanceof oa))return new oa(i,t,n);if(typeof i=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return A4(this,i)}return Pj(this,i,t,n)}oa.poolSize=8192;oa._augment=function(i){return i.__proto__=oa.prototype,i};function Pj(i,t,n,o){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?Kae(i,t,n,o):typeof t=="string"?Gae(i,t,n):Qae(i,t)}oa.from=function(i,t,n){return Pj(null,i,t,n)};oa.TYPED_ARRAY_SUPPORT&&(oa.prototype.__proto__=Uint8Array.prototype,oa.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&oa[Symbol.species]);function wj(i){if(typeof i!="number")throw new TypeError('"size" argument must be a number');if(i<0)throw new RangeError('"size" argument must not be negative')}function Hae(i,t,n,o){return wj(t),t<=0?uv(i,t):n!==void 0?typeof o=="string"?uv(i,t).fill(n,o):uv(i,t).fill(n):uv(i,t)}oa.alloc=function(i,t,n){return Hae(null,i,t,n)};function A4(i,t){if(wj(t),i=uv(i,t<0?0:P4(t)|0),!oa.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)i[n]=0;return i}oa.allocUnsafe=function(i){return A4(null,i)};oa.allocUnsafeSlow=function(i){return A4(null,i)};function Gae(i,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!oa.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=Nj(t,n)|0;i=uv(i,o);var l=i.write(t,n);return l!==o&&(i=i.slice(0,l)),i}function oI(i,t){var n=t.length<0?0:P4(t.length)|0;i=uv(i,n);for(var o=0;o<n;o+=1)i[o]=t[o]&255;return i}function Kae(i,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return n===void 0&&o===void 0?t=new Uint8Array(t):o===void 0?t=new Uint8Array(t,n):t=new Uint8Array(t,n,o),oa.TYPED_ARRAY_SUPPORT?(i=t,i.__proto__=oa.prototype):i=oI(i,t),i}function Qae(i,t){if(vh(t)){var n=P4(t.length)|0;return i=uv(i,n),i.length===0||t.copy(i,0,0,n),i}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||moe(t.length)?uv(i,0):oI(i,t);if(t.type==="Buffer"&&Aj(t.data))return oI(i,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function P4(i){if(i>=QE())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+QE().toString(16)+" bytes");return i|0}oa.isBuffer=goe;function vh(i){return!!(i!=null&&i._isBuffer)}oa.compare=function(t,n){if(!vh(t)||!vh(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var o=t.length,l=n.length,d=0,m=Math.min(o,l);d<m;++d)if(t[d]!==n[d]){o=t[d],l=n[d];break}return o<l?-1:l<o?1:0};oa.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};oa.concat=function(t,n){if(!Aj(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return oa.alloc(0);var o;if(n===void 0)for(n=0,o=0;o<t.length;++o)n+=t[o].length;var l=oa.allocUnsafe(n),d=0;for(o=0;o<t.length;++o){var m=t[o];if(!vh(m))throw new TypeError('"list" argument must be an Array of Buffers');m.copy(l,d),d+=m.length}return l};function Nj(i,t){if(vh(i))return i.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(i)||i instanceof ArrayBuffer))return i.byteLength;typeof i!="string"&&(i=""+i);var n=i.length;if(n===0)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return XE(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Bj(i).length;default:if(o)return XE(i).length;t=(""+t).toLowerCase(),o=!0}}oa.byteLength=Nj;function Xae(i,t,n){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(i||(i="utf8");;)switch(i){case"hex":return soe(this,t,n);case"utf8":case"utf-8":return Mj(this,t,n);case"ascii":return aoe(this,t,n);case"latin1":case"binary":return ooe(this,t,n);case"base64":return noe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return coe(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),o=!0}}oa.prototype._isBuffer=!0;function v1(i,t,n){var o=i[t];i[t]=i[n],i[n]=o}oa.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)v1(this,n,n+1);return this};oa.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)v1(this,n,n+3),v1(this,n+1,n+2);return this};oa.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)v1(this,n,n+7),v1(this,n+1,n+6),v1(this,n+2,n+5),v1(this,n+3,n+4);return this};oa.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?Mj(this,0,t):Xae.apply(this,arguments)};oa.prototype.equals=function(t){if(!vh(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:oa.compare(this,t)===0};oa.prototype.inspect=function(){var t="",n=$ae;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"};oa.prototype.compare=function(t,n,o,l,d){if(!vh(t))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),o===void 0&&(o=t?t.length:0),l===void 0&&(l=0),d===void 0&&(d=this.length),n<0||o>t.length||l<0||d>this.length)throw new RangeError("out of range index");if(l>=d&&n>=o)return 0;if(l>=d)return-1;if(n>=o)return 1;if(n>>>=0,o>>>=0,l>>>=0,d>>>=0,this===t)return 0;for(var m=d-l,$=o-n,h=Math.min(m,$),e=this.slice(l,d),c=t.slice(n,o),P=0;P<h;++P)if(e[P]!==c[P]){m=e[P],$=c[P];break}return m<$?-1:$<m?1:0};function Ij(i,t,n,o,l){if(i.length===0)return-1;if(typeof n=="string"?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=l?0:i.length-1),n<0&&(n=i.length+n),n>=i.length){if(l)return-1;n=i.length-1}else if(n<0)if(l)n=0;else return-1;if(typeof t=="string"&&(t=oa.from(t,o)),vh(t))return t.length===0?-1:wL(i,t,n,o,l);if(typeof t=="number")return t=t&255,oa.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(i,t,n):Uint8Array.prototype.lastIndexOf.call(i,t,n):wL(i,[t],n,o,l);throw new TypeError("val must be string, number or Buffer")}function wL(i,t,n,o,l){var d=1,m=i.length,$=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(i.length<2||t.length<2)return-1;d=2,m/=2,$/=2,n/=2}function h(s,D){return d===1?s[D]:s.readUInt16BE(D*d)}var e;if(l){var c=-1;for(e=n;e<m;e++)if(h(i,e)===h(t,c===-1?0:e-c)){if(c===-1&&(c=e),e-c+1===$)return c*d}else c!==-1&&(e-=e-c),c=-1}else for(n+$>m&&(n=m-$),e=n;e>=0;e--){for(var P=!0,T=0;T<$;T++)if(h(i,e+T)!==h(t,T)){P=!1;break}if(P)return e}return-1}oa.prototype.includes=function(t,n,o){return this.indexOf(t,n,o)!==-1};oa.prototype.indexOf=function(t,n,o){return Ij(this,t,n,o,!0)};oa.prototype.lastIndexOf=function(t,n,o){return Ij(this,t,n,o,!1)};function Yae(i,t,n,o){n=Number(n)||0;var l=i.length-n;o?(o=Number(o),o>l&&(o=l)):o=l;var d=t.length;if(d%2!==0)throw new TypeError("Invalid hex string");o>d/2&&(o=d/2);for(var m=0;m<o;++m){var $=parseInt(t.substr(m*2,2),16);if(isNaN($))return m;i[n+m]=$}return m}function Zae(i,t,n,o){return lk(XE(t,i.length-n),i,n,o)}function Oj(i,t,n,o){return lk(doe(t),i,n,o)}function eoe(i,t,n,o){return Oj(i,t,n,o)}function roe(i,t,n,o){return lk(Bj(t),i,n,o)}function toe(i,t,n,o){return lk(_oe(t,i.length-n),i,n,o)}oa.prototype.write=function(t,n,o,l){if(n===void 0)l="utf8",o=this.length,n=0;else if(o===void 0&&typeof n=="string")l=n,o=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(o)?(o=o|0,l===void 0&&(l="utf8")):(l=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var d=this.length-n;if((o===void 0||o>d)&&(o=d),t.length>0&&(o<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");for(var m=!1;;)switch(l){case"hex":return Yae(this,t,n,o);case"utf8":case"utf-8":return Zae(this,t,n,o);case"ascii":return Oj(this,t,n,o);case"latin1":case"binary":return eoe(this,t,n,o);case"base64":return roe(this,t,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return toe(this,t,n,o);default:if(m)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),m=!0}};oa.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function noe(i,t,n){return t===0&&n===i.length?PL(i):PL(i.slice(t,n))}function Mj(i,t,n){n=Math.min(i.length,n);for(var o=[],l=t;l<n;){var d=i[l],m=null,$=d>239?4:d>223?3:d>191?2:1;if(l+$<=n){var h,e,c,P;switch($){case 1:d<128&&(m=d);break;case 2:h=i[l+1],(h&192)===128&&(P=(d&31)<<6|h&63,P>127&&(m=P));break;case 3:h=i[l+1],e=i[l+2],(h&192)===128&&(e&192)===128&&(P=(d&15)<<12|(h&63)<<6|e&63,P>2047&&(P<55296||P>57343)&&(m=P));break;case 4:h=i[l+1],e=i[l+2],c=i[l+3],(h&192)===128&&(e&192)===128&&(c&192)===128&&(P=(d&15)<<18|(h&63)<<12|(e&63)<<6|c&63,P>65535&&P<1114112&&(m=P))}}m===null?(m=65533,$=1):m>65535&&(m-=65536,o.push(m>>>10&1023|55296),m=56320|m&1023),o.push(m),l+=$}return ioe(o)}var NL=4096;function ioe(i){var t=i.length;if(t<=NL)return String.fromCharCode.apply(String,i);for(var n="",o=0;o<t;)n+=String.fromCharCode.apply(String,i.slice(o,o+=NL));return n}function aoe(i,t,n){var o="";n=Math.min(i.length,n);for(var l=t;l<n;++l)o+=String.fromCharCode(i[l]&127);return o}function ooe(i,t,n){var o="";n=Math.min(i.length,n);for(var l=t;l<n;++l)o+=String.fromCharCode(i[l]);return o}function soe(i,t,n){var o=i.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var l="",d=t;d<n;++d)l+=poe(i[d]);return l}function coe(i,t,n){for(var o=i.slice(t,n),l="",d=0;d<o.length;d+=2)l+=String.fromCharCode(o[d]+o[d+1]*256);return l}oa.prototype.slice=function(t,n){var o=this.length;t=~~t,n=n===void 0?o:~~n,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),n<0?(n+=o,n<0&&(n=0)):n>o&&(n=o),n<t&&(n=t);var l;if(oa.TYPED_ARRAY_SUPPORT)l=this.subarray(t,n),l.__proto__=oa.prototype;else{var d=n-t;l=new oa(d,void 0);for(var m=0;m<d;++m)l[m]=this[m+t]}return l};function Mf(i,t,n){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+t>n)throw new RangeError("Trying to access beyond buffer length")}oa.prototype.readUIntLE=function(t,n,o){t=t|0,n=n|0,o||Mf(t,n,this.length);for(var l=this[t],d=1,m=0;++m<n&&(d*=256);)l+=this[t+m]*d;return l};oa.prototype.readUIntBE=function(t,n,o){t=t|0,n=n|0,o||Mf(t,n,this.length);for(var l=this[t+--n],d=1;n>0&&(d*=256);)l+=this[t+--n]*d;return l};oa.prototype.readUInt8=function(t,n){return n||Mf(t,1,this.length),this[t]};oa.prototype.readUInt16LE=function(t,n){return n||Mf(t,2,this.length),this[t]|this[t+1]<<8};oa.prototype.readUInt16BE=function(t,n){return n||Mf(t,2,this.length),this[t]<<8|this[t+1]};oa.prototype.readUInt32LE=function(t,n){return n||Mf(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};oa.prototype.readUInt32BE=function(t,n){return n||Mf(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};oa.prototype.readIntLE=function(t,n,o){t=t|0,n=n|0,o||Mf(t,n,this.length);for(var l=this[t],d=1,m=0;++m<n&&(d*=256);)l+=this[t+m]*d;return d*=128,l>=d&&(l-=Math.pow(2,8*n)),l};oa.prototype.readIntBE=function(t,n,o){t=t|0,n=n|0,o||Mf(t,n,this.length);for(var l=n,d=1,m=this[t+--l];l>0&&(d*=256);)m+=this[t+--l]*d;return d*=128,m>=d&&(m-=Math.pow(2,8*n)),m};oa.prototype.readInt8=function(t,n){return n||Mf(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};oa.prototype.readInt16LE=function(t,n){n||Mf(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};oa.prototype.readInt16BE=function(t,n){n||Mf(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};oa.prototype.readInt32LE=function(t,n){return n||Mf(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};oa.prototype.readInt32BE=function(t,n){return n||Mf(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};oa.prototype.readFloatLE=function(t,n){return n||Mf(t,4,this.length),sk(this,t,!0,23,4)};oa.prototype.readFloatBE=function(t,n){return n||Mf(t,4,this.length),sk(this,t,!1,23,4)};oa.prototype.readDoubleLE=function(t,n){return n||Mf(t,8,this.length),sk(this,t,!0,52,8)};oa.prototype.readDoubleBE=function(t,n){return n||Mf(t,8,this.length),sk(this,t,!1,52,8)};function n_(i,t,n,o,l,d){if(!vh(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<d)throw new RangeError('"value" argument is out of bounds');if(n+o>i.length)throw new RangeError("Index out of range")}oa.prototype.writeUIntLE=function(t,n,o,l){if(t=+t,n=n|0,o=o|0,!l){var d=Math.pow(2,8*o)-1;n_(this,t,n,o,d,0)}var m=1,$=0;for(this[n]=t&255;++$<o&&(m*=256);)this[n+$]=t/m&255;return n+o};oa.prototype.writeUIntBE=function(t,n,o,l){if(t=+t,n=n|0,o=o|0,!l){var d=Math.pow(2,8*o)-1;n_(this,t,n,o,d,0)}var m=o-1,$=1;for(this[n+m]=t&255;--m>=0&&($*=256);)this[n+m]=t/$&255;return n+o};oa.prototype.writeUInt8=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,1,255,0),oa.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1};function ck(i,t,n,o){t<0&&(t=65535+t+1);for(var l=0,d=Math.min(i.length-n,2);l<d;++l)i[n+l]=(t&255<<8*(o?l:1-l))>>>(o?l:1-l)*8}oa.prototype.writeUInt16LE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,2,65535,0),oa.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):ck(this,t,n,!0),n+2};oa.prototype.writeUInt16BE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,2,65535,0),oa.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):ck(this,t,n,!1),n+2};function uk(i,t,n,o){t<0&&(t=4294967295+t+1);for(var l=0,d=Math.min(i.length-n,4);l<d;++l)i[n+l]=t>>>(o?l:3-l)*8&255}oa.prototype.writeUInt32LE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,4,4294967295,0),oa.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255):uk(this,t,n,!0),n+4};oa.prototype.writeUInt32BE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,4,4294967295,0),oa.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):uk(this,t,n,!1),n+4};oa.prototype.writeIntLE=function(t,n,o,l){if(t=+t,n=n|0,!l){var d=Math.pow(2,8*o-1);n_(this,t,n,o,d-1,-d)}var m=0,$=1,h=0;for(this[n]=t&255;++m<o&&($*=256);)t<0&&h===0&&this[n+m-1]!==0&&(h=1),this[n+m]=(t/$>>0)-h&255;return n+o};oa.prototype.writeIntBE=function(t,n,o,l){if(t=+t,n=n|0,!l){var d=Math.pow(2,8*o-1);n_(this,t,n,o,d-1,-d)}var m=o-1,$=1,h=0;for(this[n+m]=t&255;--m>=0&&($*=256);)t<0&&h===0&&this[n+m+1]!==0&&(h=1),this[n+m]=(t/$>>0)-h&255;return n+o};oa.prototype.writeInt8=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,1,127,-128),oa.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1};oa.prototype.writeInt16LE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,2,32767,-32768),oa.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):ck(this,t,n,!0),n+2};oa.prototype.writeInt16BE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,2,32767,-32768),oa.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):ck(this,t,n,!1),n+2};oa.prototype.writeInt32LE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,4,2147483647,-2147483648),oa.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):uk(this,t,n,!0),n+4};oa.prototype.writeInt32BE=function(t,n,o){return t=+t,n=n|0,o||n_(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),oa.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):uk(this,t,n,!1),n+4};function Fj(i,t,n,o,l,d){if(n+o>i.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Lj(i,t,n,o,l){return l||Fj(i,t,n,4),kj(i,t,n,o,23,4),n+4}oa.prototype.writeFloatLE=function(t,n,o){return Lj(this,t,n,!0,o)};oa.prototype.writeFloatBE=function(t,n,o){return Lj(this,t,n,!1,o)};function Rj(i,t,n,o,l){return l||Fj(i,t,n,8),kj(i,t,n,o,52,8),n+8}oa.prototype.writeDoubleLE=function(t,n,o){return Rj(this,t,n,!0,o)};oa.prototype.writeDoubleBE=function(t,n,o){return Rj(this,t,n,!1,o)};oa.prototype.copy=function(t,n,o,l){if(o||(o=0),!l&&l!==0&&(l=this.length),n>=t.length&&(n=t.length),n||(n=0),l>0&&l<o&&(l=o),l===o||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),t.length-n<l-o&&(l=t.length-n+o);var d=l-o,m;if(this===t&&o<n&&n<l)for(m=d-1;m>=0;--m)t[m+n]=this[m+o];else if(d<1e3||!oa.TYPED_ARRAY_SUPPORT)for(m=0;m<d;++m)t[m+n]=this[m+o];else Uint8Array.prototype.set.call(t,this.subarray(o,o+d),n);return d};oa.prototype.fill=function(t,n,o,l){if(typeof t=="string"){if(typeof n=="string"?(l=n,n=0,o=this.length):typeof o=="string"&&(l=o,o=this.length),t.length===1){var d=t.charCodeAt(0);d<256&&(t=d)}if(l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!oa.isEncoding(l))throw new TypeError("Unknown encoding: "+l)}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<o)throw new RangeError("Out of range index");if(o<=n)return this;n=n>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var m;if(typeof t=="number")for(m=n;m<o;++m)this[m]=t;else{var $=vh(t)?t:XE(new oa(t,l).toString()),h=$.length;for(m=0;m<o-n;++m)this[m+n]=$[m%h]}return this};var uoe=/[^+\/0-9A-Za-z-_]/g;function loe(i){if(i=foe(i).replace(uoe,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function foe(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function poe(i){return i<16?"0"+i.toString(16):i.toString(16)}function XE(i,t){t=t||1/0;for(var n,o=i.length,l=null,d=[],m=0;m<o;++m){if(n=i.charCodeAt(m),n>55295&&n<57344){if(!l){if(n>56319){(t-=3)>-1&&d.push(239,191,189);continue}else if(m+1===o){(t-=3)>-1&&d.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&d.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&d.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;d.push(n)}else if(n<2048){if((t-=2)<0)break;d.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;d.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;d.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return d}function doe(i){for(var t=[],n=0;n<i.length;++n)t.push(i.charCodeAt(n)&255);return t}function _oe(i,t){for(var n,o,l,d=[],m=0;m<i.length&&!((t-=2)<0);++m)n=i.charCodeAt(m),o=n>>8,l=n%256,d.push(l),d.push(o);return d}function Bj(i){return Vae(loe(i))}function lk(i,t,n,o){for(var l=0;l<o&&!(l+n>=t.length||l>=i.length);++l)t[l+n]=i[l];return l}function moe(i){return i!==i}function goe(i){return i!=null&&(!!i._isBuffer||jj(i)||hoe(i))}function jj(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function hoe(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&jj(i.slice(0,0))}function Jj(){throw new Error("setTimeout has not been defined")}function Uj(){throw new Error("clearTimeout has not been defined")}var uy=Jj,ly=Uj;typeof Ty.setTimeout=="function"&&(uy=setTimeout);typeof Ty.clearTimeout=="function"&&(ly=clearTimeout);function Vj(i){if(uy===setTimeout)return setTimeout(i,0);if((uy===Jj||!uy)&&setTimeout)return uy=setTimeout,setTimeout(i,0);try{return uy(i,0)}catch{try{return uy.call(null,i,0)}catch{return uy.call(this,i,0)}}}function voe(i){if(ly===clearTimeout)return clearTimeout(i);if((ly===Uj||!ly)&&clearTimeout)return ly=clearTimeout,clearTimeout(i);try{return ly(i)}catch{try{return ly.call(null,i)}catch{return ly.call(this,i)}}}var lv=[],Z0=!1,y1,yE=-1;function yoe(){!Z0||!y1||(Z0=!1,y1.length?lv=y1.concat(lv):yE=-1,lv.length&&zj())}function zj(){if(!Z0){var i=Vj(yoe);Z0=!0;for(var t=lv.length;t;){for(y1=lv,lv=[];++yE<t;)y1&&y1[yE].run();yE=-1,t=lv.length}y1=null,Z0=!1,voe(i)}}function boe(i){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];lv.push(new Wj(i,t)),lv.length===1&&!Z0&&Vj(zj)}function Wj(i,t){this.fun=i,this.array=t}Wj.prototype.run=function(){this.fun.apply(null,this.array)};var Soe="browser",Doe="browser",xoe=!0,Toe={},Eoe=[],Coe="",koe={},Aoe={},Poe={};function V1(){}var woe=V1,Noe=V1,Ioe=V1,Ooe=V1,Moe=V1,Foe=V1,Loe=V1;function Roe(i){throw new Error("process.binding is not supported")}function Boe(){return"/"}function joe(i){throw new Error("process.chdir is not supported")}function Joe(){return 0}var U0=Ty.performance||{},Uoe=U0.now||U0.mozNow||U0.msNow||U0.oNow||U0.webkitNow||function(){return new Date().getTime()};function Voe(i){var t=Uoe.call(U0)*.001,n=Math.floor(t),o=Math.floor(t%1*1e9);return i&&(n=n-i[0],o=o-i[1],o<0&&(n--,o+=1e9)),[n,o]}var zoe=new Date;function Woe(){var i=new Date,t=i-zoe;return t/1e3}var Jp={nextTick:boe,title:Soe,browser:xoe,env:Toe,argv:Eoe,version:Coe,versions:koe,on:woe,addListener:Noe,once:Ioe,off:Ooe,removeListener:Moe,removeAllListeners:Foe,emit:Loe,binding:Roe,cwd:Boe,chdir:joe,umask:Joe,hrtime:Voe,platform:Doe,release:Aoe,config:Poe,uptime:Woe},sI;typeof Object.create=="function"?sI=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:sI=function(t,n){t.super_=n;var o=function(){};o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t};var qj=sI,$j=Object.getOwnPropertyDescriptors||function(t){for(var n=Object.keys(t),o={},l=0;l<n.length;l++)o[n[l]]=Object.getOwnPropertyDescriptor(t,n[l]);return o},qoe=/%[sdj%]/g;function fk(i){if(!Ay(i)){for(var t=[],n=0;n<arguments.length;n++)t.push(ph(arguments[n]));return t.join(" ")}for(var n=1,o=arguments,l=o.length,d=String(i).replace(qoe,function($){if($==="%%")return"%";if(n>=l)return $;switch($){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch{return"[Circular]"}default:return $}}),m=o[n];n<l;m=o[++n])fv(m)||!xv(m)?d+=" "+m:d+=" "+ph(m);return d}function w4(i,t){if(uh(Ty.process))return function(){return w4(i,t).apply(this,arguments)};if(Jp.noDeprecation===!0)return i;var n=!1;function o(){if(!n){if(Jp.throwDeprecation)throw new Error(t);Jp.traceDeprecation?console.trace(t):console.error(t),n=!0}return i.apply(this,arguments)}return o}var qT={},_N;function Hj(i){if(uh(_N)&&(_N=Jp.env.NODE_DEBUG||""),i=i.toUpperCase(),!qT[i])if(new RegExp("\\b"+i+"\\b","i").test(_N)){var t=0;qT[i]=function(){var n=fk.apply(null,arguments);console.error("%s %d: %s",i,t,n)}}else qT[i]=function(){};return qT[i]}function ph(i,t){var n={seen:[],stylize:Hoe};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),pk(t)?n.showHidden=t:t&&F4(n,t),uh(n.showHidden)&&(n.showHidden=!1),uh(n.depth)&&(n.depth=2),uh(n.colors)&&(n.colors=!1),uh(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=$oe),YE(n,i,n.depth)}ph.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ph.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function $oe(i,t){var n=ph.styles[t];return n?"\x1B["+ph.colors[n][0]+"m"+i+"\x1B["+ph.colors[n][1]+"m":i}function Hoe(i,t){return i}function Goe(i){var t={};return i.forEach(function(n,o){t[n]=!0}),t}function YE(i,t,n){if(i.customInspect&&t&&FS(t.inspect)&&t.inspect!==ph&&!(t.constructor&&t.constructor.prototype===t)){var o=t.inspect(n,i);return Ay(o)||(o=YE(i,o,n)),o}var l=Koe(i,t);if(l)return l;var d=Object.keys(t),m=Goe(d);if(i.showHidden&&(d=Object.getOwnPropertyNames(t)),MS(t)&&(d.indexOf("message")>=0||d.indexOf("description")>=0))return mN(t);if(d.length===0){if(FS(t)){var $=t.name?": "+t.name:"";return i.stylize("[Function"+$+"]","special")}if(OS(t))return i.stylize(RegExp.prototype.toString.call(t),"regexp");if(ZE(t))return i.stylize(Date.prototype.toString.call(t),"date");if(MS(t))return mN(t)}var h="",e=!1,c=["{","}"];if(N4(t)&&(e=!0,c=["[","]"]),FS(t)){var P=t.name?": "+t.name:"";h=" [Function"+P+"]"}if(OS(t)&&(h=" "+RegExp.prototype.toString.call(t)),ZE(t)&&(h=" "+Date.prototype.toUTCString.call(t)),MS(t)&&(h=" "+mN(t)),d.length===0&&(!e||t.length==0))return c[0]+h+c[1];if(n<0)return OS(t)?i.stylize(RegExp.prototype.toString.call(t),"regexp"):i.stylize("[Object]","special");i.seen.push(t);var T;return e?T=Qoe(i,t,n,m,d):T=d.map(function(s){return cI(i,t,n,m,s,e)}),i.seen.pop(),Xoe(T,h,c)}function Koe(i,t){if(uh(t))return i.stylize("undefined","undefined");if(Ay(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(n,"string")}if(O4(t))return i.stylize(""+t,"number");if(pk(t))return i.stylize(""+t,"boolean");if(fv(t))return i.stylize("null","null")}function mN(i){return"["+Error.prototype.toString.call(i)+"]"}function Qoe(i,t,n,o,l){for(var d=[],m=0,$=t.length;m<$;++m)Yj(t,String(m))?d.push(cI(i,t,n,o,String(m),!0)):d.push("");return l.forEach(function(h){h.match(/^\d+$/)||d.push(cI(i,t,n,o,h,!0))}),d}function cI(i,t,n,o,l,d){var m,$,h;if(h=Object.getOwnPropertyDescriptor(t,l)||{value:t[l]},h.get?h.set?$=i.stylize("[Getter/Setter]","special"):$=i.stylize("[Getter]","special"):h.set&&($=i.stylize("[Setter]","special")),Yj(o,l)||(m="["+l+"]"),$||(i.seen.indexOf(h.value)<0?(fv(n)?$=YE(i,h.value,null):$=YE(i,h.value,n-1),$.indexOf(`
`)>-1&&(d?$=$.split(`
`).map(function(e){return" "+e}).join(`
`).substr(2):$=`
`+$.split(`
`).map(function(e){return" "+e}).join(`
`))):$=i.stylize("[Circular]","special")),uh(m)){if(d&&l.match(/^\d+$/))return $;m=JSON.stringify(""+l),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.substr(1,m.length-2),m=i.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=i.stylize(m,"string"))}return m+": "+$}function Xoe(i,t,n){var o=i.reduce(function(l,d){return d.indexOf(`
`)>=0,l+d.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(t===""?"":t+`
`)+" "+i.join(`,
`)+" "+n[1]:n[0]+t+" "+i.join(", ")+" "+n[1]}function N4(i){return Array.isArray(i)}function pk(i){return typeof i=="boolean"}function fv(i){return i===null}function I4(i){return i==null}function O4(i){return typeof i=="number"}function Ay(i){return typeof i=="string"}function Gj(i){return typeof i=="symbol"}function uh(i){return i===void 0}function OS(i){return xv(i)&&M4(i)==="[object RegExp]"}function xv(i){return typeof i=="object"&&i!==null}function ZE(i){return xv(i)&&M4(i)==="[object Date]"}function MS(i){return xv(i)&&(M4(i)==="[object Error]"||i instanceof Error)}function FS(i){return typeof i=="function"}function Kj(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i>"u"}function Qj(i){return oa.isBuffer(i)}function M4(i){return Object.prototype.toString.call(i)}function gN(i){return i<10?"0"+i.toString(10):i.toString(10)}var Yoe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Zoe(){var i=new Date,t=[gN(i.getHours()),gN(i.getMinutes()),gN(i.getSeconds())].join(":");return[i.getDate(),Yoe[i.getMonth()],t].join(" ")}function Xj(){console.log("%s - %s",Zoe(),fk.apply(null,arguments))}function F4(i,t){if(!t||!xv(t))return i;for(var n=Object.keys(t),o=n.length;o--;)i[n[o]]=t[n[o]];return i}function Yj(i,t){return Object.prototype.hasOwnProperty.call(i,t)}var _1=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function L4(i){if(typeof i!="function")throw new TypeError('The "original" argument must be of type Function');if(_1&&i[_1]){var t=i[_1];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,_1,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,o,l=new Promise(function($,h){n=$,o=h}),d=[],m=0;m<arguments.length;m++)d.push(arguments[m]);d.push(function($,h){$?o($):n(h)});try{i.apply(this,d)}catch($){o($)}return l}return Object.setPrototypeOf(t,Object.getPrototypeOf(i)),_1&&Object.defineProperty(t,_1,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,$j(i))}L4.custom=_1;function ese(i,t){if(!i){var n=new Error("Promise was rejected with a falsy value");n.reason=i,i=n}return t(i)}function Zj(i){if(typeof i!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);var l=n.pop();if(typeof l!="function")throw new TypeError("The last argument must be of type Function");var d=this,m=function(){return l.apply(d,arguments)};i.apply(this,n).then(function($){Jp.nextTick(m.bind(null,null,$))},function($){Jp.nextTick(ese.bind(null,$,m))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(i)),Object.defineProperties(t,$j(i)),t}var rse={inherits:qj,_extend:F4,log:Xj,isBuffer:Qj,isPrimitive:Kj,isFunction:FS,isError:MS,isDate:ZE,isObject:xv,isRegExp:OS,isUndefined:uh,isSymbol:Gj,isString:Ay,isNumber:O4,isNullOrUndefined:I4,isNull:fv,isBoolean:pk,isArray:N4,inspect:ph,deprecate:w4,format:fk,debuglog:Hj,promisify:L4,callbackify:Zj},tse=Object.freeze({__proto__:null,_extend:F4,callbackify:Zj,debuglog:Hj,default:rse,deprecate:w4,format:fk,inherits:qj,inspect:ph,isArray:N4,isBoolean:pk,isBuffer:Qj,isDate:ZE,isError:MS,isFunction:FS,isNull:fv,isNullOrUndefined:I4,isNumber:O4,isObject:xv,isPrimitive:Kj,isRegExp:OS,isString:Ay,isSymbol:Gj,isUndefined:uh,log:Xj,promisify:L4});function nse(i,t){return Object.prototype.hasOwnProperty.call(i,t)}var eJ=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function fS(i){switch(typeof i){case"string":return i;case"boolean":return i?"true":"false";case"number":return isFinite(i)?i:"";default:return""}}function ise(i,t,n,o){return t=t||"&",n=n||"=",i===null&&(i=void 0),typeof i=="object"?IL(ase(i),function(l){var d=encodeURIComponent(fS(l))+n;return eJ(i[l])?IL(i[l],function(m){return d+encodeURIComponent(fS(m))}).join(t):d+encodeURIComponent(fS(i[l]))}).join(t):o?encodeURIComponent(fS(o))+n+encodeURIComponent(fS(i)):""}function IL(i,t){if(i.map)return i.map(t);for(var n=[],o=0;o<i.length;o++)n.push(t(i[o],o));return n}var ase=Object.keys||function(i){var t=[];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&t.push(n);return t};function OL(i,t,n,o){t=t||"&",n=n||"=";var l={};if(typeof i!="string"||i.length===0)return l;var d=/\+/g;i=i.split(t);var m=1e3;o&&typeof o.maxKeys=="number"&&(m=o.maxKeys);var $=i.length;m>0&&$>m&&($=m);for(var h=0;h<$;++h){var e=i[h].replace(d,"%20"),c=e.indexOf(n),P,T,s,D;c>=0?(P=e.substr(0,c),T=e.substr(c+1)):(P=e,T=""),s=decodeURIComponent(P),D=decodeURIComponent(T),nse(l,s)?eJ(l[s])?l[s].push(D):l[s]=[l[s],D]:l[s]=D}return l}const rJ=Ty.URL,tJ=Ty.URLSearchParams;var ose={parse:F2,resolve:oJ,resolveObject:sJ,fileURLToPath:iJ,format:aJ,Url:F_,URL:rJ,URLSearchParams:tJ};function F_(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var sse=/^([a-z0-9.+-]+:)/i,cse=/:[0-9]*$/,use=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,lse=["<",">",'"',"`"," ","\r",`
`," "],fse=["{","}","|","\\","^","`"].concat(lse),uI=["'"].concat(fse),ML=["%","/","?",";","#"].concat(uI),FL=["/","?","#"],pse=255,LL=/^[+a-z0-9A-Z_-]{0,63}$/,dse=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_se={javascript:!0,"javascript:":!0},lI={javascript:!0,"javascript:":!0},e2={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function F2(i,t,n){if(i&&xv(i)&&i instanceof F_)return i;var o=new F_;return o.parse(i,t,n),o}F_.prototype.parse=function(i,t,n){return nJ(this,i,t,n)};function nJ(i,t,n,o){if(!Ay(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var l=t.indexOf("?"),d=l!==-1&&l<t.indexOf("#")?"?":"#",m=t.split(d),$=/\\/g;m[0]=m[0].replace($,"/"),t=m.join(d);var h=t;if(h=h.trim(),!o&&t.split("#").length===1){var e=use.exec(h);if(e)return i.path=h,i.href=h,i.pathname=e[1],e[2]?(i.search=e[2],n?i.query=OL(i.search.substr(1)):i.query=i.search.substr(1)):n&&(i.search="",i.query={}),i}var c=sse.exec(h);if(c){c=c[0];var P=c.toLowerCase();i.protocol=P,h=h.substr(c.length)}if(o||c||h.match(/^\/\/[^@\/]+@[^@\/]+/)){var T=h.substr(0,2)==="//";T&&!(c&&lI[c])&&(h=h.substr(2),i.slashes=!0)}var s,D,O,W;if(!lI[c]&&(T||c&&!e2[c])){var E=-1;for(s=0;s<FL.length;s++)D=h.indexOf(FL[s]),D!==-1&&(E===-1||D<E)&&(E=D);var v,S;for(E===-1?S=h.lastIndexOf("@"):S=h.lastIndexOf("@",E),S!==-1&&(v=h.slice(0,S),h=h.slice(S+1),i.auth=decodeURIComponent(v)),E=-1,s=0;s<ML.length;s++)D=h.indexOf(ML[s]),D!==-1&&(E===-1||D<E)&&(E=D);E===-1&&(E=h.length),i.host=h.slice(0,E),h=h.slice(E),cJ(i),i.hostname=i.hostname||"";var te=i.hostname[0]==="["&&i.hostname[i.hostname.length-1]==="]";if(!te){var Y=i.hostname.split(/\./);for(s=0,O=Y.length;s<O;s++){var Z=Y[s];if(Z&&!Z.match(LL)){for(var ce="",k=0,X=Z.length;k<X;k++)Z.charCodeAt(k)>127?ce+="x":ce+=Z[k];if(!ce.match(LL)){var A=Y.slice(0,s),y=Y.slice(s+1),C=Z.match(dse);C&&(A.push(C[1]),y.unshift(C[2])),y.length&&(h="/"+y.join(".")+h),i.hostname=A.join(".");break}}}}i.hostname.length>pse?i.hostname="":i.hostname=i.hostname.toLowerCase(),te||(i.hostname=Jae(i.hostname)),W=i.port?":"+i.port:"";var B=i.hostname||"";i.host=B+W,i.href+=i.host,te&&(i.hostname=i.hostname.substr(1,i.hostname.length-2),h[0]!=="/"&&(h="/"+h))}if(!_se[P])for(s=0,O=uI.length;s<O;s++){var F=uI[s];if(h.indexOf(F)!==-1){var z=encodeURIComponent(F);z===F&&(z=escape(F)),h=h.split(F).join(z)}}var ge=h.indexOf("#");ge!==-1&&(i.hash=h.substr(ge),h=h.slice(0,ge));var Pe=h.indexOf("?");if(Pe!==-1?(i.search=h.substr(Pe),i.query=h.substr(Pe+1),n&&(i.query=OL(i.query)),h=h.slice(0,Pe)):n&&(i.search="",i.query={}),h&&(i.pathname=h),e2[P]&&i.hostname&&!i.pathname&&(i.pathname="/"),i.pathname||i.search){W=i.pathname||"";var fe=i.search||"";i.path=W+fe}return i.href=R4(i),i}function iJ(i){if(typeof i=="string")i=new F_().parse(i);else if(!(i instanceof F_))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof i+String(i));if(i.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return mse(i)}function mse(i){const t=i.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){const o=t.codePointAt(n+2)|32;if(t[n+1]==="2"&&o===102)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(t)}function aJ(i){return Ay(i)&&(i=nJ({},i)),R4(i)}function R4(i){var t=i.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var n=i.protocol||"",o=i.pathname||"",l=i.hash||"",d=!1,m="";i.host?d=t+i.host:i.hostname&&(d=t+(i.hostname.indexOf(":")===-1?i.hostname:"["+this.hostname+"]"),i.port&&(d+=":"+i.port)),i.query&&xv(i.query)&&Object.keys(i.query).length&&(m=ise(i.query));var $=i.search||m&&"?"+m||"";return n&&n.substr(-1)!==":"&&(n+=":"),i.slashes||(!n||e2[n])&&d!==!1?(d="//"+(d||""),o&&o.charAt(0)!=="/"&&(o="/"+o)):d||(d=""),l&&l.charAt(0)!=="#"&&(l="#"+l),$&&$.charAt(0)!=="?"&&($="?"+$),o=o.replace(/[?#]/g,function(h){return encodeURIComponent(h)}),$=$.replace("#","%23"),n+d+o+$+l}F_.prototype.format=function(){return R4(this)};function oJ(i,t){return F2(i,!1,!0).resolve(t)}F_.prototype.resolve=function(i){return this.resolveObject(F2(i,!1,!0)).format()};function sJ(i,t){return i?F2(i,!1,!0).resolveObject(t):t}F_.prototype.resolveObject=function(i){if(Ay(i)){var t=new F_;t.parse(i,!1,!0),i=t}for(var n=new F_,o=Object.keys(this),l=0;l<o.length;l++){var d=o[l];n[d]=this[d]}if(n.hash=i.hash,i.href==="")return n.href=n.format(),n;if(i.slashes&&!i.protocol){for(var m=Object.keys(i),$=0;$<m.length;$++){var h=m[$];h!=="protocol"&&(n[h]=i[h])}return e2[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}var e;if(i.protocol&&i.protocol!==n.protocol){if(!e2[i.protocol]){for(var c=Object.keys(i),P=0;P<c.length;P++){var T=c[P];n[T]=i[T]}return n.href=n.format(),n}if(n.protocol=i.protocol,!i.host&&!lI[i.protocol]){for(e=(i.pathname||"").split("/");e.length&&!(i.host=e.shift()););i.host||(i.host=""),i.hostname||(i.hostname=""),e[0]!==""&&e.unshift(""),e.length<2&&e.unshift(""),n.pathname=e.join("/")}else n.pathname=i.pathname;if(n.search=i.search,n.query=i.query,n.host=i.host||"",n.auth=i.auth,n.hostname=i.hostname||i.host,n.port=i.port,n.pathname||n.search){var s=n.pathname||"",D=n.search||"";n.path=s+D}return n.slashes=n.slashes||i.slashes,n.href=n.format(),n}var O=n.pathname&&n.pathname.charAt(0)==="/",W=i.host||i.pathname&&i.pathname.charAt(0)==="/",E=W||O||n.host&&i.pathname,v=E,S=n.pathname&&n.pathname.split("/")||[],te=n.protocol&&!e2[n.protocol];e=i.pathname&&i.pathname.split("/")||[],te&&(n.hostname="",n.port=null,n.host&&(S[0]===""?S[0]=n.host:S.unshift(n.host)),n.host="",i.protocol&&(i.hostname=null,i.port=null,i.host&&(e[0]===""?e[0]=i.host:e.unshift(i.host)),i.host=null),E=E&&(e[0]===""||S[0]===""));var Y;if(W)n.host=i.host||i.host===""?i.host:n.host,n.hostname=i.hostname||i.hostname===""?i.hostname:n.hostname,n.search=i.search,n.query=i.query,S=e;else if(e.length)S||(S=[]),S.pop(),S=S.concat(e),n.search=i.search,n.query=i.query;else if(!I4(i.search))return te&&(n.hostname=n.host=S.shift(),Y=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1,Y&&(n.auth=Y.shift(),n.host=n.hostname=Y.shift())),n.search=i.search,n.query=i.query,(!fv(n.pathname)||!fv(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var Z=S.slice(-1)[0],ce=(n.host||i.host||S.length>1)&&(Z==="."||Z==="..")||Z==="",k=0,X=S.length;X>=0;X--)Z=S[X],Z==="."?S.splice(X,1):Z===".."?(S.splice(X,1),k++):k&&(S.splice(X,1),k--);if(!E&&!v)for(;k--;k)S.unshift("..");E&&S[0]!==""&&(!S[0]||S[0].charAt(0)!=="/")&&S.unshift(""),ce&&S.join("/").substr(-1)!=="/"&&S.push("");var A=S[0]===""||S[0]&&S[0].charAt(0)==="/";return te&&(n.hostname=n.host=A?"":S.length?S.shift():"",Y=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1,Y&&(n.auth=Y.shift(),n.host=n.hostname=Y.shift())),E=E||n.host&&S.length,E&&!A&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),(!fv(n.pathname)||!fv(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=i.auth||n.auth,n.slashes=n.slashes||i.slashes,n.href=n.format(),n};F_.prototype.parseHost=function(){return cJ(this)};function cJ(i){var t=i.host,n=cse.exec(t);n&&(n=n[0],n!==":"&&(i.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(i.hostname=t)}var gse=Object.freeze({__proto__:null,URL:rJ,URLSearchParams:tJ,Url:F_,default:ose,fileURLToPath:iJ,format:aJ,parse:F2,resolve:oJ,resolveObject:sJ});function uJ(i){const t=i.charAt(0);return t==="."||t==="~"||t==="@"}const hse=/^(https?:)?\/\//;function lJ(i){return hse.test(i)}const vse=/^\s*data:/i;function fI(i){return vse.test(i)}function pI(i){if(i.charAt(0)==="~"){const n=i.charAt(1);i=i.slice(n==="/"?2:1)}return yse(i)}function yse(i){return F2(lc(i)?i:"",!1,!0)}var bse=Object.defineProperty,Sse=Object.defineProperties,Dse=Object.getOwnPropertyDescriptors,RL=Object.getOwnPropertySymbols,xse=Object.prototype.hasOwnProperty,Tse=Object.prototype.propertyIsEnumerable,BL=(i,t,n)=>t in i?bse(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,hN=(i,t)=>{for(var n in t||(t={}))xse.call(t,n)&&BL(i,n,t[n]);if(RL)for(var n of RL(t))Tse.call(t,n)&&BL(i,n,t[n]);return i},Ese=(i,t)=>Sse(i,Dse(t));const YS={base:null,includeAbsolute:!1,tags:{video:["src","poster"],source:["src"],img:["src"],image:["xlink:href","href"],use:["xlink:href","href"]}},Cse=i=>Object.keys(i).some(t=>Dd(i[t]))?Ese(hN({},YS),{tags:i}):hN(hN({},YS),i),kse=i=>(t,n)=>fJ(t,n,i),fJ=(i,t,n=YS)=>{if(i.type===1){if(!i.props.length)return;const o=n.tags||YS.tags,l=o[i.tag],d=o["*"];if(!l&&!d)return;const m=(l||[]).concat(d||[]);i.props.forEach(($,h)=>{if($.type!==6||!m.includes($.name)||!$.value||lJ($.value.content)||fI($.value.content)||$.value.content[0]==="#"||!n.includeAbsolute&&!uJ($.value.content))return;const e=pI($.value.content);if(n.base&&$.value.content[0]==="."){const P=pI(n.base),T=P.protocol||"",s=P.host?T+"//"+P.host:"",D=P.path||"/";$.value.content=s+(vv.posix||vv).join(D,e.path+(e.hash||""));return}const c=Ase(e.path,e.hash,$.loc,t);i.props[h]={type:7,name:"bind",arg:to($.name,!0,$.loc),exp:c,modifiers:[],loc:$.loc}})}};function Ase(i,t,n,o){if(i){let l,d;const m=o.imports.findIndex(c=>c.path===i);if(m>-1?(l=`_imports_${m}`,d=o.imports[m].exp):(l=`_imports_${o.imports.length}`,d=to(l,!1,n,3),o.imports.push({exp:d,path:i})),!t)return d;const $=`${l} + '${t}'`,h=to($,!1,n,3);if(!o.hoistStatic)return h;const e=o.hoists.findIndex(c=>c&&c.type===4&&!c.isStatic&&c.content===$);return e>-1?to(`_hoisted_${e+1}`,!1,n,3):o.hoist(h)}else return to("''",!1,n,3)}const Pse=["img","source"],wse=/( |\\t|\\n|\\f|\\r)+/g,Nse=i=>(t,n)=>pJ(t,n,i),pJ=(i,t,n=YS)=>{i.type===1&&Pse.includes(i.tag)&&i.props.length&&i.props.forEach((o,l)=>{if(o.name==="srcset"&&o.type===6){if(!o.value)return;const d=o.value.content;if(!d)return;const m=d.split(",").map(c=>{const[P,T]=c.replace(wse," ").trim().split(" ",2);return{url:P,descriptor:T}});for(let c=0;c<m.length;c++){const{url:P}=m[c];fI(P)&&(m[c+1].url=P+","+m[c+1].url,m.splice(c,1))}const $=c=>!lJ(c)&&!fI(c)&&(n.includeAbsolute||uJ(c));if(!m.some(({url:c})=>$(c)))return;if(n.base){const c=n.base,P=[];let T=!1;if(m.forEach(s=>{let{url:D,descriptor:O}=s;O=O?` ${O}`:"",D[0]==="."?(s.url=(vv.posix||vv).join(c,D),P.push(s.url+O)):$(D)?T=!0:P.push(D+O)}),!T){o.value.content=P.join(", ");return}}const h=ap([],o.loc);m.forEach(({url:c,descriptor:P},T)=>{if($(c)){const{path:D}=pI(c);let O;if(D){const W=t.imports.findIndex(E=>E.path===D);W>-1?O=to(`_imports_${W}`,!1,o.loc,3):(O=to(`_imports_${t.imports.length}`,!1,o.loc,3),t.imports.push({exp:O,path:D})),h.children.push(O)}}else{const D=to(`"${c}"`,!1,o.loc,3);h.children.push(D)}const s=m.length-1>T;P&&s?h.children.push(` + ' ${P}, ' + `):P?h.children.push(` + ' ${P}'`):s&&h.children.push(" + ', ' + ")});let e=h;t.hoistStatic&&(e=t.hoist(h),e.constType=3),i.props[l]={type:7,name:"bind",arg:to("srcset",!0,o.loc),exp:e,modifiers:[],loc:o.loc}}})},B4=Symbol("ssrInterpolate"),dJ=Symbol("ssrRenderVNode"),_J=Symbol("ssrRenderComponent"),mJ=Symbol("ssrRenderSlot"),gJ=Symbol("ssrRenderSlotInner"),hJ=Symbol("ssrRenderClass"),vJ=Symbol("ssrRenderStyle"),j4=Symbol("ssrRenderAttrs"),yJ=Symbol("ssrRenderAttr"),bJ=Symbol("ssrRenderDynamicAttr"),SJ=Symbol("ssrRenderList"),DJ=Symbol("ssrIncludeBooleanAttr"),dI=Symbol("ssrLooseEqual"),xJ=Symbol("ssrLooseContain"),TJ=Symbol("ssrRenderDynamicModel"),EJ=Symbol("ssrGetDynamicModelProps"),CJ=Symbol("ssrRenderTeleport"),kJ=Symbol("ssrRenderSuspense"),AJ=Symbol("ssrGetDirectiveProps"),_I={[B4]:"ssrInterpolate",[dJ]:"ssrRenderVNode",[_J]:"ssrRenderComponent",[mJ]:"ssrRenderSlot",[gJ]:"ssrRenderSlotInner",[hJ]:"ssrRenderClass",[vJ]:"ssrRenderStyle",[j4]:"ssrRenderAttrs",[yJ]:"ssrRenderAttr",[bJ]:"ssrRenderDynamicAttr",[SJ]:"ssrRenderList",[DJ]:"ssrIncludeBooleanAttr",[dI]:"ssrLooseEqual",[xJ]:"ssrLooseContain",[TJ]:"ssrRenderDynamicModel",[EJ]:"ssrGetDynamicModelProps",[CJ]:"ssrRenderTeleport",[kJ]:"ssrRenderSuspense",[AJ]:"ssrGetDirectiveProps"};h6(_I);const Ise=ND(/^(if|else|else-if)$/,Z6);function Ose(i,t,n=!1){const[o]=i.branches,l=IE(o.condition,jL(o,t,n));t.pushStatement(l);let d=l;for(let m=1;m<i.branches.length;m++){const $=i.branches[m],h=jL($,t,n);$.condition?d=d.alternate=IE($.condition,h):d.alternate=h}d.alternate||(d.alternate=AD([ls("_push",["`<!---->`"])]))}function jL(i,t,n=!1){const{children:o}=i,l=!n&&(o.length!==1||o[0].type!==1)&&!(o.length===1&&o[0].type===11);return L2(i,t,l)}const Mse=ND("for",e4);function Fse(i,t,n=!1){const o=!n&&(i.children.length!==1||i.children[0].type!==1),l=R_(QS(i.parseResult));l.body=L2(i,t,o),n||t.pushStringPart("<!--[-->"),t.pushStatement(ls(t.helper(SJ),[i.source,l])),n||t.pushStringPart("<!--]-->")}const Lse=(i,t)=>{if(p2(i)){const{slotName:n,slotProps:o}=a4(i,t),l=["_ctx.$slots",n,o||"{}","null","_push","_parent"];t.scopeId&&t.slotted!==!1&&l.push(`"${t.scopeId}-s"`);let d=mJ;const m=t.parent;m&&m.type===1&&m.tagType===1&&nk(m,t,!0)===M2&&m.children.filter($=>$.type===1).length===1&&(d=gJ,t.scopeId&&t.slotted!==!1||l.push("null"),l.push("true")),i.ssrCodegenNode=ls(t.helper(d),l)}};function Rse(i,t){const n=i.ssrCodegenNode;if(i.children.length){const o=R_([]);o.body=L2(i,t),n.arguments[3]=o}if(t.withSlotScopeId){const o=n.arguments[6];n.arguments[6]=o?`${o} + _scopeId`:"_scopeId"}t.pushStatement(i.ssrCodegenNode)}function ZS(i,t){return Cc(i,t,Bse)}const Bse={65:"Unsafe attribute name for SSR.",66:"Missing the 'to' prop on teleport element.",67:"Invalid AST node during SSR transform."};function jse(i,t){const n=r_(i,"to");if(!n){t.onError(ZS(66,i.loc));return}let o;if(n.type===6?o=n.value&&to(n.value.content,!0):o=n.exp,!o){t.onError(ZS(66,n.loc));return}const l=r_(i,"disabled",!1,!0),d=l?l.type===6?"true":l.exp||"false":"false",m=R_(["_push"],void 0,!0,!1,i.loc);m.body=L2(i,t),t.pushStatement(ls(t.helper(CJ),["_push",m,o,d,"_parent"]))}const PJ=new WeakMap;function Jse(i,t){return()=>{if(i.children.length){const n={slotsExp:null,wipSlots:[]};PJ.set(i,n),n.slotsExp=XS(i,t,(o,l,d)=>{const m=R_([],void 0,!0,!1,d);return n.wipSlots.push({fn:m,children:l}),m}).slots}}}function Use(i,t){const n=PJ.get(i);if(!n)return;const{slotsExp:o,wipSlots:l}=n;for(let d=0;d<l.length;d++){const m=l[d];m.fn.body=L2(m,t)}t.pushStatement(ls(t.helper(kJ),["_push",o]))}const bE=new WeakMap,Vse=(i,t)=>{if(!(i.type!==1||i.tagType!==0))return function(){const o=[`<${i.tag}`],l=i.tag==="textarea"||i.tag.indexOf("-")>0,d=$C(i),m=i.props.some(P=>P.type===7&&!c6(P.name)),$=d||m;if($){const{props:P,directives:T}=O2(i,t,i.props,!1,!1,!0);if(P||T.length){const s=J4(P,T,t),D=ls(t.helper(j4),[s]);if(i.tag==="textarea"){const O=i.children[0];if(!O||O.type!==5){const W=`_temp${t.temps++}`;D.arguments=[JN(to(W,!1),s)],bE.set(i,ls(t.helper(B4),[Dy(to(`"value" in ${W}`,!1),to(`${W}.value`,!1),to(O?O.content:"",!0),!1)]))}}else if(i.tag==="input"){const O=$se(i);if(O){const W=`_temp${t.temps++}`,E=to(W,!1);D.arguments=[GR([JN(E,s),ls(t.helper(N1),[E,ls(t.helper(EJ),[E,O.exp])])])]}}l&&D.arguments.push(`"${i.tag}"`),o.push(D)}}let h,e,c;for(let P=0;P<i.props.length;P++){const T=i.props[P];if(!(i.tag==="input"&&zse(T))){if(T.type===7){if(T.name==="html"&&T.exp)bE.set(i,T.exp);else if(T.name==="text"&&T.exp)i.children=[NE(T.exp,T.loc)];else if(T.name==="slot")t.onError(Cc(40,T.loc));else if(Wse(i,T)&&T.exp)$||(i.children=[NE(T.exp,T.loc)]);else if(!$&&T.name!=="on"){const s=t.directiveTransforms[T.name];if(s){const{props:D,ssrTagParts:O}=s(T,i,t);O&&o.push(...O);for(let W=0;W<D.length;W++){const{key:E,value:v}=D[W];if(op(E)){let S=E.content;if(S==="key"||S==="ref")continue;S==="class"?o.push(' class="',h=ls(t.helper(hJ),[v]),'"'):S==="style"?c?JL(c,v):o.push(' style="',c=ls(t.helper(vJ),[v]),'"'):(S=i.tag.indexOf("-")>0?S:Zee[S]||S.toLowerCase(),VR(S)?o.push(Dy(ls(t.helper(DJ),[v]),to(" "+S,!0),to("",!0),!1)):Yee(S)?o.push(ls(t.helper(yJ),[E,v])):t.onError(ZS(65,E.loc)))}else{const S=[E,v];l&&S.push(`"${i.tag}"`),o.push(ls(t.helper(bJ),S))}}}}}else if(i.tag==="textarea"&&T.name==="value"&&T.value)bE.set(i,sh(T.value.content));else if(!$){if(T.name==="key"||T.name==="ref")continue;T.name==="class"&&T.value&&(e=JSON.stringify(T.value.content)),o.push(` ${T.name}`+(T.value?`="${sh(T.value.content)}"`:""))}}}h&&e&&(JL(h,e),qse(o,"class")),t.scopeId&&o.push(` ${t.scopeId}`),i.ssrCodegenNode=v6(o)}};function J4(i,t,n){let o=[];if(i&&(i.type===14?o=i.arguments:o.push(i)),t.length)for(const l of t)o.push(ls(n.helper(AJ),["_ctx",...i4(l,n).elements]));return o.length>1?ls(n.helper(N1),o):o[0]}function zse(i){return i.type===7?i.name==="bind"&&i.arg&&op(i.arg)&&(i.arg.content==="true-value"||i.arg.content==="false-value"):i.name==="true-value"||i.name==="false-value"}function Wse(i,t){return!!(i.tag==="textarea"&&t.name==="bind"&&cv(t.arg,"value"))}function JL(i,t){const n=i.arguments[0];n.type===17?n.elements.push(t):i.arguments[0]=J1([n,t])}function qse(i,t){const n=new RegExp(`^ ${t}=".+"$`),o=i.findIndex(l=>typeof l=="string"&&n.test(l));o>-1&&i.splice(o,1)}function $se(i){return i.props.find(t=>t.type===7&&t.name==="model"&&t.exp)}function Hse(i,t){const n=t.options.isVoidTag||lE,o=i.ssrCodegenNode.elements;for(let d=0;d<o.length;d++)t.pushStringPart(o[d]);t.withSlotScopeId&&t.pushStringPart(to("_scopeId",!1)),t.pushStringPart(">");const l=bE.get(i);l?t.pushStringPart(l):i.children.length&&C1(i,t),n(i.tag)||t.pushStringPart(`</${i.tag}>`)}const wJ=new WeakMap;function Gse(i,t){return()=>{const n=r_(i,"tag");if(n){const o=i.props.filter($=>$!==n),{props:l,directives:d}=O2(i,t,o,!0,!1,!0);let m=null;(l||d.length)&&(m=ls(t.helper(j4),[J4(l,d,t)])),wJ.set(i,{tag:n,propsExp:m})}}}function Kse(i,t){const n=wJ.get(i);if(n){const{tag:o,propsExp:l}=n;o.type===7?(t.pushStringPart("<"),t.pushStringPart(o.exp),l&&t.pushStringPart(l),t.pushStringPart(">"),C1(i,t,!1,!0),t.pushStringPart("</"),t.pushStringPart(o.exp),t.pushStringPart(">")):(t.pushStringPart(`<${o.value.content}`),l&&t.pushStringPart(l),t.pushStringPart(">"),C1(i,t,!1,!0),t.pushStringPart(`</${o.value.content}>`))}else C1(i,t,!0,!0)}var Qse=Object.defineProperty,Xse=Object.defineProperties,Yse=Object.getOwnPropertyDescriptors,UL=Object.getOwnPropertySymbols,Zse=Object.prototype.hasOwnProperty,ece=Object.prototype.propertyIsEnumerable,VL=(i,t,n)=>t in i?Qse(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,E1=(i,t)=>{for(var n in t||(t={}))Zse.call(t,n)&&VL(i,n,t[n]);if(UL)for(var n of UL(t))ece.call(t,n)&&VL(i,n,t[n]);return i},rce=(i,t)=>Xse(i,Yse(t));const NJ=new WeakMap,IJ=Symbol(),OJ=new WeakMap,tce=(i,t)=>{if(i.type!==1||i.tagType!==1)return;const n=nk(i,t,!0),o=Dv(n)&&n.callee===o2;if(OJ.set(i,n),x2(n))return n===T2?Jse(i,t):n===MD?Gse(i,t):void 0;const l=[],d=mI(i);return function(){d.children.length&&XS(d,t,(P,T)=>(l.push(cce(P,T,t)),R_(void 0)));let $="null";if(i.props.length){const{props:P,directives:T}=O2(i,t,void 0,!0,o);(P||T.length)&&($=J4(P,T,t))}const h=[];NJ.set(i,h);const e=(P,T,s)=>{const D=P&&tk(P)||"_",O=R_([D,"_push","_parent","_scopeId"],void 0,!0,!0,s);return h.push({type:IJ,fn:O,children:T,vnodeBranch:l[h.length]}),O},c=i.children.length?XS(i,t,e).slots:"null";typeof n!="string"?i.ssrCodegenNode=ls(t.helper(dJ),["_push",ls(t.helper(CD),[n,$,c]),"_parent"]):i.ssrCodegenNode=ls(t.helper(_J),[n,$,c,"_parent"])}};function nce(i,t,n){const o=OJ.get(i);if(i.ssrCodegenNode){const l=NJ.get(i)||[];for(let d=0;d<l.length;d++){const{fn:m,vnodeBranch:$}=l[d];m.body=IE(to("_push",!1),L2(l[d],t,!1,!0),$)}t.withSlotScopeId&&i.ssrCodegenNode.arguments.push("_scopeId"),typeof o=="string"?t.pushStatement(ls("_push",[i.ssrCodegenNode])):t.pushStatement(i.ssrCodegenNode)}else{if(o===b1)return jse(i,t);if(o===T2)return Use(i,t);if(o===MD)return Kse(i,t);n.type===IJ&&t.pushStringPart(""),o===M2&&(i.children=i.children.filter(l=>l.type!==3)),C1(i,t)}}const MJ=new WeakMap,[ice,ace]=s4(!0),oce=[...ice,...h4],sce=E1(E1({},ace),v4);function cce(i,t,n){const o=MJ.get(n.root),l=rce(E1({},o),{nodeTransforms:[...oce,...o.nodeTransforms||[]],directiveTransforms:E1(E1({},sce),o.directiveTransforms||{})});return uce({type:1,ns:0,tag:"template",tagType:3,isSelfClosing:!1,props:[{type:7,name:"slot",exp:i,arg:void 0,modifiers:[],loc:rl}],children:t,loc:rl,codegenNode:void 0},l,n),KR(t)}function uce(i,t,n){const o=k2([i]),l=wD(o,t);l.ssr=!1,l.scopes=E1({},n.scopes),l.identifiers=E1({},n.identifiers),l.imports=n.imports,A2(o,l),["helpers","components","directives"].forEach(d=>{l[d].forEach((m,$)=>{if(d==="helpers"){const h=n.helpers.get($);h===void 0?n.helpers.set($,m):n.helpers.set($,m+h)}else n[d].add(m)})})}function mI(i){if(Dd(i))return i.map(mI);if(Dv(i)){const t={};for(const n in i)t[n]=mI(i[n]);return t}else return i}function lce(i,t){const n=FJ(i,t);if(t.ssrCssVars){const l=wD(k2([]),t),d=Sd(to(t.ssrCssVars,!1),l);n.body.push(ap(["const _cssVars = { style: ",d,"}"])),Array.from(l.helpers.keys()).forEach(m=>{i.helpers.add(m)})}const o=i.children.length>1&&i.children.some(l=>!PS(l));C1(i,n,o),i.codegenNode=AD(n.body),i.ssrHelpers=Array.from(new Set([...Array.from(i.helpers).filter(l=>l in _I),...n.helpers])),i.helpers=new Set(Array.from(i.helpers).filter(l=>!(l in _I)))}function FJ(i,t,n=new Set,o=!1){const l=[];let d=null;return{root:i,options:t,body:l,helpers:n,withSlotScopeId:o,onError:t.onError||(m=>{throw m}),helper(m){return n.add(m),m},pushStringPart(m){if(!d){const e=ls("_push");l.push(e),d=v6([]),e.arguments.push(d)}const $=d.elements,h=$[$.length-1];lc(m)&&lc(h)?$[$.length-1]+=m:$.push(m)},pushStatement(m){d=null,l.push(m)}}}function fce(i,t=i.withSlotScopeId){return FJ(i.root,i.options,i.helpers,t)}function C1(i,t,n=!1,o=!1){n&&t.pushStringPart("<!--[-->");const{children:l}=i;for(let d=0;d<l.length;d++){const m=l[d];switch(m.type){case 1:switch(m.tagType){case 0:Hse(m,t);break;case 1:nce(m,t,i);break;case 2:Rse(m,t);break;case 3:break;default:return t.onError(ZS(67,m.loc)),m}break;case 2:t.pushStringPart(sh(m.content));break;case 3:t.pushStringPart(`<!--${m.content}-->`);break;case 5:t.pushStringPart(ls(t.helper(B4),[m.content]));break;case 9:Ose(m,t,o);break;case 11:Fse(m,t,o);break;case 10:break;case 12:case 8:break;default:return t.onError(ZS(67,m.loc)),m}}n&&t.pushStringPart("<!--]-->")}function L2(i,t,n=!1,o=t.withSlotScopeId){const l=fce(t,o);return C1(i,l,n),AD(l.body)}const pce=(i,t,n)=>{const o=i.exp;function l(){const d=r_(t,"value");d&&n.onError(jp(60,d.loc))}if(t.tagType===0){const d={props:[]},m=[qc("value",o)];if(t.tag==="input"){const $=r_(t,"type");if($){const h=dce(t);if($.type===7)d.ssrTagParts=[ls(n.helper(TJ),[$.exp,o,h])];else if($.value)switch($.value.content){case"radio":d.props=[qc("checked",ls(n.helper(dI),[o,h]))];break;case"checkbox":const e=r_(t,"true-value");if(e){const c=e.type===6?JSON.stringify(e.value.content):e.exp;d.props=[qc("checked",ls(n.helper(dI),[o,c]))]}else d.props=[qc("checked",Dy(ls("Array.isArray",[o]),ls(n.helper(xJ),[o,h]),o))];break;case"file":n.onError(jp(59,i.loc));break;default:l(),d.props=m;break}}else $C(t)||(l(),d.props=m)}else t.tag==="textarea"?(l(),t.children=[NE(o,o.loc)]):t.tag==="select"||n.onError(jp(57,i.loc));return d}else return ak(i,t,n)};function dce(i){const t=r_(i,"value");return t?t.type===7?t.exp:to(t.value.content,!0):to("null",!1)}const _ce=(i,t,n)=>(i.exp||n.onError(jp(61)),{props:[qc("style",Dy(i.exp,to("null",!1),e_([qc("display",to("none",!0))]),!1))]}),gI=i=>i.children.filter(t=>t.type!==3),vN=i=>gI(i).length===1,mce=(i,t)=>{if(i.type===0&&(t.identifiers._attrs=1),i.type===1&&i.tagType===1&&(Dg(i.tag,"Transition")||Dg(i.tag,"KeepAlive"))){const o=gI(t.root);if(o.length===1&&o[0]===i){vN(i)&&yN(i.children[0]);return}}const n=t.parent;if(!(!n||n.type!==0))if(i.type===10&&vN(i)){let o=!1;for(const l of gI(n))if(l.type===9||l.type===1&&Nf(l,"if")){if(o)return;o=!0}else if(!o||!(l.type===1&&Nf(l,/else/,!0)))return;yN(i.children[0])}else vN(n)&&yN(i)};function yN(i){i.type===1&&(i.tagType===0||i.tagType===1)&&!Nf(i,"for")&&i.props.push({type:7,name:"bind",arg:void 0,exp:to("_attrs",!1),modifiers:[],loc:rl})}const gce=(i,t)=>{if(!t.ssrCssVars)return;i.type===0&&(t.identifiers._cssVars=1);const n=t.parent;if(!(!n||n.type!==0))if(i.type===10)for(const o of i.children)eC(o);else eC(i)};function eC(i){if(i.type===1&&(i.tagType===0||i.tagType===1)&&!Nf(i,"for"))if(Dg(i.tag,"Suspense"))for(const t of i.children)t.type===1&&t.tagType===3?t.children.forEach(eC):eC(t);else i.props.push({type:7,name:"bind",arg:void 0,exp:to("_cssVars",!1),modifiers:[],loc:rl})}var hce=Object.defineProperty,vce=Object.defineProperties,yce=Object.getOwnPropertyDescriptors,zL=Object.getOwnPropertySymbols,bce=Object.prototype.hasOwnProperty,Sce=Object.prototype.propertyIsEnumerable,WL=(i,t,n)=>t in i?hce(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,$T=(i,t)=>{for(var n in t||(t={}))bce.call(t,n)&&WL(i,n,t[n]);if(zL)for(var n of zL(t))Sce.call(t,n)&&WL(i,n,t[n]);return i},qL=(i,t)=>vce(i,yce(t));function Dce(i,t={}){t=qL($T($T({},t),_2),{ssr:!0,inSSR:!0,scopeId:t.mode==="function"?null:t.scopeId,prefixIdentifiers:!0,cacheHandlers:!1,hoistStatic:!1});const n=HC(i,t);return MJ.set(n,t),KC(n,qL($T({},t),{hoistStatic:!1,nodeTransforms:[Ise,Mse,n4,Y6,Lse,mce,gce,Vse,tce,t4,m4,...t.nodeTransforms||[]],directiveTransforms:$T({bind:o4,on:ik,model:pce,show:_ce,cloak:NS,once:NS,memo:NS},t.directiveTransforms||{})})),lce(n,t),Q6(n,t)}var xce=Object.freeze({__proto__:null,compile:Dce}),Tce={},Ece=Object.freeze({__proto__:null,default:Tce}),Cce=PD(Ece),U4=PD(rae),kce=PD(tse);const $L={};function k1(i){!(typeof process<"u"&&!0)&&!$L[i]&&($L[i]=!0,hI(i))}function hI(i){console.warn(`\x1B[1m\x1B[33m[@vue/compiler-sfc]\x1B[0m\x1B[33m ${i}\x1B[0m
`)}var Ace=Object.defineProperty,Pce=Object.defineProperties,wce=Object.getOwnPropertyDescriptors,HL=Object.getOwnPropertySymbols,Nce=Object.prototype.hasOwnProperty,Ice=Object.prototype.propertyIsEnumerable,GL=(i,t,n)=>t in i?Ace(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,V4=(i,t)=>{for(var n in t||(t={}))Nce.call(t,n)&&GL(i,n,t[n]);if(HL)for(var n of HL(t))Ice.call(t,n)&&GL(i,n,t[n]);return i},LJ=(i,t)=>Pce(i,wce(t));function Oce({source:i,filename:t,preprocessOptions:n},o){let l="",d=null;if(o.render(i,V4({filename:t},n),(m,$)=>{m&&(d=m),l=$}),d)throw d;return l}function z4(i){const{preprocessLang:t,preprocessCustomRequire:n}=i;if(t&&!n)throw new Error("[@vue/compiler-sfc] Template preprocessing in the browser build must provide the `preprocessCustomRequire` option to return the in-browser version of the preprocessor in the shape of { render(): string }.");const o=t?n?n(t):void 0:!1;if(o)try{return KL(LJ(V4({},i),{source:Oce(i,o)}))}catch(l){return{code:"export default function render() {}",source:i.source,tips:[],errors:[l]}}else return t?{code:"export default function render() {}",source:i.source,tips:[`Component ${i.filename} uses lang ${t} for template. Please install the language preprocessor.`],errors:[`Component ${i.filename} uses lang ${t} for template, however it is not installed.`]}:KL(i)}function KL({filename:i,id:t,scoped:n,slotted:o,inMap:l,source:d,ssr:m=!1,ssrCssVars:$,isProd:h=!1,compiler:e=m?xce:ij,compilerOptions:c={},transformAssetUrls:P}){const T=[],s=[];let D=[];if(Dv(P)){const Z=Cse(P);D=[kse(Z),Nse(Z)]}else P!==!1&&(D=[fJ,pJ]);m&&!$&&k1("compileTemplate is called with `ssr: true` but no corresponding `cssVars` option.`."),t||(k1("compileTemplate now requires the `id` option.`."),t="");const O=t.replace(/^data-v-/,""),W=`data-v-${O}`;let{code:E,ast:v,preamble:S,map:te}=e.compile(d,LJ(V4({mode:"module",prefixIdentifiers:!0,hoistStatic:!0,cacheHandlers:!0,ssrCssVars:m&&$&&$.length?gj($,O,h,!0):"",scopeId:n?W:void 0,slotted:o,sourceMap:!0},c),{nodeTransforms:D.concat(c.nodeTransforms||[]),filename:i,onError:Z=>T.push(Z),onWarn:Z=>s.push(Z)}));l&&(te&&(te=Mce(l,te)),T.length&&Fce(T,d,l));const Y=s.map(Z=>{let ce=Z.message;return Z.loc&&(ce+=`
${w1(d,Z.loc.start.offset,Z.loc.end.offset)}`),ce});return{code:E,ast:v,preamble:S,source:d,errors:T,tips:Y,map:te}}function Mce(i,t){if(!i)return t;if(!t)return i;const n=new aL(i),o=new aL(t),l=new K6;o.eachMapping(m=>{if(m.originalLine==null)return;const $=n.originalPositionFor({line:m.originalLine,column:m.originalColumn});$.source!=null&&l.addMapping({generated:{line:m.generatedLine,column:m.generatedColumn},original:{line:$.line,column:m.originalColumn},source:$.source,name:$.name})});const d=l;return n.sources.forEach(m=>{d._sources.add(m);const $=n.sourceContentFor(m);$!=null&&l.setSourceContent(m,$)}),d._sourceRoot=i.sourceRoot,d._file=i.file,d.toJSON()}function Fce(i,t,n){const o=n.sourcesContent[0],l=o.indexOf(t),d=o.slice(0,l).split(/\r?\n/).length-1;i.forEach(m=>{m.loc&&(m.loc.start.line+=d,m.loc.start.offset+=l,m.loc.end!==m.loc.start&&(m.loc.end.line+=d,m.loc.end.offset+=l))})}var eD={},Lce={get exports(){return eD},set exports(i){eD=i}};function RJ(){return!1}function BJ(){throw new Error("tty.ReadStream is not implemented")}function jJ(){throw new Error("tty.ReadStream is not implemented")}var Rce={isatty:RJ,ReadStream:BJ,WriteStream:jJ},Bce=Object.freeze({__proto__:null,ReadStream:BJ,WriteStream:jJ,default:Rce,isatty:RJ}),jce=PD(Bce);let Jce=jce,Uce=!("NO_COLOR"in{}||Jp.argv.includes("--no-color"))&&("FORCE_COLOR"in{}||Jp.argv.includes("--color")||!1||Jce.isatty(1)&&Jp.env.TERM!=="dumb"||"CI"in{}),Qu=(i,t,n=i)=>o=>{let l=""+o,d=l.indexOf(t,i.length);return~d?i+JJ(l,t,n,d)+t:i+l+t},JJ=(i,t,n,o)=>{let l=i.substring(0,o)+n,d=i.substring(o+t.length),m=d.indexOf(t);return~m?l+JJ(d,t,n,m):l+d},UJ=(i=Uce)=>({isColorSupported:i,reset:i?t=>`\x1B[0m${t}\x1B[0m`:String,bold:i?Qu("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:i?Qu("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:i?Qu("\x1B[3m","\x1B[23m"):String,underline:i?Qu("\x1B[4m","\x1B[24m"):String,inverse:i?Qu("\x1B[7m","\x1B[27m"):String,hidden:i?Qu("\x1B[8m","\x1B[28m"):String,strikethrough:i?Qu("\x1B[9m","\x1B[29m"):String,black:i?Qu("\x1B[30m","\x1B[39m"):String,red:i?Qu("\x1B[31m","\x1B[39m"):String,green:i?Qu("\x1B[32m","\x1B[39m"):String,yellow:i?Qu("\x1B[33m","\x1B[39m"):String,blue:i?Qu("\x1B[34m","\x1B[39m"):String,magenta:i?Qu("\x1B[35m","\x1B[39m"):String,cyan:i?Qu("\x1B[36m","\x1B[39m"):String,white:i?Qu("\x1B[37m","\x1B[39m"):String,gray:i?Qu("\x1B[90m","\x1B[39m"):String,bgBlack:i?Qu("\x1B[40m","\x1B[49m"):String,bgRed:i?Qu("\x1B[41m","\x1B[49m"):String,bgGreen:i?Qu("\x1B[42m","\x1B[49m"):String,bgYellow:i?Qu("\x1B[43m","\x1B[49m"):String,bgBlue:i?Qu("\x1B[44m","\x1B[49m"):String,bgMagenta:i?Qu("\x1B[45m","\x1B[49m"):String,bgCyan:i?Qu("\x1B[46m","\x1B[49m"):String,bgWhite:i?Qu("\x1B[47m","\x1B[49m"):String});Lce.exports=UJ();eD.createColors=UJ;const bN="'".charCodeAt(0),QL='"'.charCodeAt(0),HT="\\".charCodeAt(0),XL="/".charCodeAt(0),GT=`
`.charCodeAt(0),pS=" ".charCodeAt(0),KT="\f".charCodeAt(0),QT=" ".charCodeAt(0),XT="\r".charCodeAt(0),Vce="[".charCodeAt(0),zce="]".charCodeAt(0),Wce="(".charCodeAt(0),qce=")".charCodeAt(0),$ce="{".charCodeAt(0),Hce="}".charCodeAt(0),Gce=";".charCodeAt(0),Kce="*".charCodeAt(0),Qce=":".charCodeAt(0),Xce="@".charCodeAt(0),YT=/[\t\n\f\r "#'()/;[\\\]{}]/g,ZT=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Yce=/.[\n"'(/\\]/,YL=/[\da-f]/i;var VJ=function(t,n={}){let o=t.css.valueOf(),l=n.ignoreErrors,d,m,$,h,e,c,P,T,s,D,O=o.length,W=0,E=[],v=[];function S(){return W}function te(k){throw t.error("Unclosed "+k,W)}function Y(){return v.length===0&&W>=O}function Z(k){if(v.length)return v.pop();if(W>=O)return;let X=k?k.ignoreUnclosed:!1;switch(d=o.charCodeAt(W),d){case GT:case pS:case QT:case XT:case KT:{m=W;do m+=1,d=o.charCodeAt(m);while(d===pS||d===GT||d===QT||d===XT||d===KT);D=["space",o.slice(W,m)],W=m-1;break}case Vce:case zce:case $ce:case Hce:case Qce:case Gce:case qce:{let A=String.fromCharCode(d);D=[A,A,W];break}case Wce:{if(T=E.length?E.pop()[1]:"",s=o.charCodeAt(W+1),T==="url"&&s!==bN&&s!==QL&&s!==pS&&s!==GT&&s!==QT&&s!==KT&&s!==XT){m=W;do{if(c=!1,m=o.indexOf(")",m+1),m===-1)if(l||X){m=W;break}else te("bracket");for(P=m;o.charCodeAt(P-1)===HT;)P-=1,c=!c}while(c);D=["brackets",o.slice(W,m+1),W,m],W=m}else m=o.indexOf(")",W+1),h=o.slice(W,m+1),m===-1||Yce.test(h)?D=["(","(",W]:(D=["brackets",h,W,m],W=m);break}case bN:case QL:{$=d===bN?"'":'"',m=W;do{if(c=!1,m=o.indexOf($,m+1),m===-1)if(l||X){m=W+1;break}else te("string");for(P=m;o.charCodeAt(P-1)===HT;)P-=1,c=!c}while(c);D=["string",o.slice(W,m+1),W,m],W=m;break}case Xce:{YT.lastIndex=W+1,YT.test(o),YT.lastIndex===0?m=o.length-1:m=YT.lastIndex-2,D=["at-word",o.slice(W,m+1),W,m],W=m;break}case HT:{for(m=W,e=!0;o.charCodeAt(m+1)===HT;)m+=1,e=!e;if(d=o.charCodeAt(m+1),e&&d!==XL&&d!==pS&&d!==GT&&d!==QT&&d!==XT&&d!==KT&&(m+=1,YL.test(o.charAt(m)))){for(;YL.test(o.charAt(m+1));)m+=1;o.charCodeAt(m+1)===pS&&(m+=1)}D=["word",o.slice(W,m+1),W,m],W=m;break}default:{d===XL&&o.charCodeAt(W+1)===Kce?(m=o.indexOf("*/",W+2)+1,m===0&&(l||X?m=o.length:te("comment")),D=["comment",o.slice(W,m+1),W,m],W=m):(ZT.lastIndex=W+1,ZT.test(o),ZT.lastIndex===0?m=o.length-1:m=ZT.lastIndex-2,D=["word",o.slice(W,m+1),W,m],E.push(D),W=m);break}}return W++,D}function ce(k){v.push(k)}return{back:ce,nextToken:Z,endOfFile:Y,position:S}};let hd=eD,Zce=VJ,zJ;function eue(i){zJ=i}const rue={brackets:hd.cyan,"at-word":hd.cyan,comment:hd.gray,string:hd.green,class:hd.yellow,hash:hd.magenta,call:hd.cyan,"(":hd.cyan,")":hd.cyan,"{":hd.yellow,"}":hd.yellow,"[":hd.yellow,"]":hd.yellow,":":hd.yellow,";":hd.yellow};function tue([i,t],n){if(i==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!n.endOfFile()){let o=n.nextToken();if(n.back(o),o[0]==="brackets"||o[0]==="(")return"call"}return i}function WJ(i){let t=Zce(new zJ(i),{ignoreErrors:!0}),n="";for(;!t.endOfFile();){let o=t.nextToken(),l=rue[tue(o,t)];l?n+=o[1].split(/\r?\n/).map(d=>l(d)).join(`
`):n+=o[1]}return n}WJ.registerInput=eue;var qJ=WJ;let ZL=eD,e9=qJ,vI=class $J extends Error{constructor(t,n,o,l,d,m){super(t),this.name="CssSyntaxError",this.reason=t,d&&(this.file=d),l&&(this.source=l),m&&(this.plugin=m),typeof n<"u"&&typeof o<"u"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,$J)}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(t){if(!this.source)return"";let n=this.source;t==null&&(t=ZL.isColorSupported),e9&&t&&(n=e9(n));let o=n.split(/\r?\n/),l=Math.max(this.line-3,0),d=Math.min(this.line+2,o.length),m=String(d).length,$,h;if(t){let{bold:e,red:c,gray:P}=ZL.createColors(!0);$=T=>e(c(T)),h=T=>P(T)}else $=h=e=>e;return o.slice(l,d).map((e,c)=>{let P=l+1+c,T=" "+(" "+P).slice(-m)+" | ";if(P===this.line){let s=h(T.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return $(">")+h(T)+e+`
`+s+$("^")}return" "+h(T)+e}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`
`+t+`
`),this.name+": "+this.message+t}};var W4=vI;vI.default=vI;var FD={};FD.isClean=Symbol("isClean");FD.my=Symbol("my");const r9={colon:": ",indent:" ",beforeDecl:`
`,beforeRule:`
`,beforeOpen:" ",beforeClose:`
`,beforeComment:`
`,after:`
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function nue(i){return i[0].toUpperCase()+i.slice(1)}let yI=class{constructor(t){this.builder=t}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}document(t){this.body(t)}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}comment(t){let n=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+o+"*/",t)}decl(t,n){let o=this.raw(t,"between","colon"),l=t.prop+o+this.rawValue(t,"value");t.important&&(l+=t.raws.important||" !important"),n&&(l+=";"),this.builder(l,t)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}atrule(t,n){let o="@"+t.name,l=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?o+=t.raws.afterName:l&&(o+=" "),t.nodes)this.block(t,o+l);else{let d=(t.raws.between||"")+(n?";":"");this.builder(o+l+d,t)}}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let o=this.raw(t,"semicolon");for(let l=0;l<t.nodes.length;l++){let d=t.nodes[l],m=this.raw(d,"before");m&&this.builder(m),this.stringify(d,n!==l||o)}}block(t,n){let o=this.raw(t,"between","beforeOpen");this.builder(n+o+"{",t,"start");let l;t.nodes&&t.nodes.length?(this.body(t),l=this.raw(t,"after")):l=this.raw(t,"after","emptyBody"),l&&this.builder(l),this.builder("}",t,"end")}raw(t,n,o){let l;if(o||(o=n),n&&(l=t.raws[n],typeof l<"u"))return l;let d=t.parent;if(o==="before"&&(!d||d.type==="root"&&d.first===t||d&&d.type==="document"))return"";if(!d)return r9[o];let m=t.root();if(m.rawCache||(m.rawCache={}),typeof m.rawCache[o]<"u")return m.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);{let $="raw"+nue(o);this[$]?l=this[$](m,t):m.walk(h=>{if(l=h.raws[n],typeof l<"u")return!1})}return typeof l>"u"&&(l=r9[o]),m.rawCache[o]=l,l}rawSemicolon(t){let n;return t.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n<"u"))return!1}),n}rawEmptyBody(t){let n;return t.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n<"u"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(o=>{let l=o.parent;if(l&&l!==t&&l.parent&&l.parent===t&&typeof o.raws.before<"u"){let d=o.raws.before.split(`
`);return n=d[d.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(t,n){let o;return t.walkComments(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(t,n){let o;return t.walkDecls(l=>{if(typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeRule(t){let n;return t.walk(o=>{if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(t){let n;return t.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return n=o.raws.after,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let n;return t.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n<"u"))return!1}),n}rawColon(t){let n;return t.walkDecls(o=>{if(typeof o.raws.between<"u")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(t,n){let o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):n==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");let l=t.parent,d=0;for(;l&&l.type!=="root";)d+=1,l=l.parent;if(o.includes(`
`)){let m=this.raw(t,null,"indent");if(m.length)for(let $=0;$<d;$++)o+=m}return o}rawValue(t,n){let o=t[n],l=t.raws[n];return l&&l.value===o?l.raw:o}};var HJ=yI;yI.default=yI;let iue=HJ;function bI(i,t){new iue(t).stringify(i)}var dk=bI;bI.default=bI;let{isClean:eE,my:aue}=FD,oue=W4,sue=HJ,cue=dk;function SI(i,t){let n=new i.constructor;for(let o in i){if(!Object.prototype.hasOwnProperty.call(i,o)||o==="proxyCache")continue;let l=i[o],d=typeof l;o==="parent"&&d==="object"?t&&(n[o]=t):o==="source"?n[o]=l:Array.isArray(l)?n[o]=l.map(m=>SI(m,n)):(d==="object"&&l!==null&&(l=SI(l)),n[o]=l)}return n}let DI=class{constructor(t={}){this.raws={},this[eE]=!1,this[aue]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let o of t[n])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[n]=t[n]}error(t,n={}){if(this.source){let{start:o,end:l}=this.rangeBy(n);return this.source.input.error(t,{line:o.line,column:o.column},{line:l.line,column:l.column},n)}return new oue(t)}warn(t,n,o){let l={node:this};for(let d in o)l[d]=o[d];return t.warn(n,l)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=cue){t.stringify&&(t=t.stringify);let n="";return t(this,o=>{n+=o}),n}assign(t={}){for(let n in t)this[n]=t[n];return this}clone(t={}){let n=SI(this);for(let o in t)n[o]=t[o];return n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}replaceWith(...t){if(this.parent){let n=this,o=!1;for(let l of t)l===this?o=!0:o?(this.parent.insertAfter(n,l),n=l):this.parent.insertBefore(n,l);o||this.remove()}return this}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}before(t){return this.parent.insertBefore(this,t),this}after(t){return this.parent.insertAfter(this,t),this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}raw(t,n){return new sue().raw(this,t,n)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,n){let o={},l=n==null;n=n||new Map;let d=0;for(let m in this){if(!Object.prototype.hasOwnProperty.call(this,m)||m==="parent"||m==="proxyCache")continue;let $=this[m];if(Array.isArray($))o[m]=$.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,n):h);else if(typeof $=="object"&&$.toJSON)o[m]=$.toJSON(null,n);else if(m==="source"){let h=n.get($.input);h==null&&(h=d,n.set($.input,d),d++),o[m]={inputId:h,start:$.start,end:$.end}}else o[m]=$}return l&&(o.inputs=[...n.keys()].map(m=>m.toJSON())),o}positionInside(t){let n=this.toString(),o=this.source.start.column,l=this.source.start.line;for(let d=0;d<t;d++)n[d]===`
`?(o=1,l+=1):o+=1;return{line:l,column:o}}positionBy(t){let n=this.source.start;if(t.index)n=this.positionInside(t.index);else if(t.word){let o=this.toString().indexOf(t.word);o!==-1&&(n=this.positionInside(o))}return n}rangeBy(t){let n={line:this.source.start.line,column:this.source.start.column},o=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:n.line,column:n.column+1};if(t.word){let l=this.toString().indexOf(t.word);l!==-1&&(n=this.positionInside(l),o=this.positionInside(l+t.word.length))}else t.start?n={line:t.start.line,column:t.start.column}:t.index&&(n=this.positionInside(t.index)),t.end?o={line:t.end.line,column:t.end.column}:t.endIndex?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={line:n.line,column:n.column+1}),{start:n,end:o}}getProxyProcessor(){return{set(t,n,o){return t[n]===o||(t[n]=o,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0},get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}markDirty(){if(this[eE]){this[eE]=!1;let t=this;for(;t=t.parent;)t[eE]=!1}}get proxyOf(){return this}};var _k=DI;DI.default=DI;let uue=_k,xI=class extends uue{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var mk=xI;xI.default=xI;var GJ=PD(gse);let lue="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fue=(i,t=21)=>(n=t)=>{let o="",l=n;for(;l--;)o+=i[Math.random()*i.length|0];return o},pue=(i=21)=>{let t="",n=i;for(;n--;)t+=lue[Math.random()*64|0];return t};var due={nanoid:pue,customAlphabet:fue};let{SourceMapConsumer:t9,SourceMapGenerator:n9}=P2,{existsSync:_ue,readFileSync:mue}=Cce,{dirname:SN,join:gue}=U4;function hue(i){return oa?oa.from(i,"base64").toString():window.atob(i)}let TI=class{constructor(t,n){if(n.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let o=n.map?n.map.prev:void 0,l=this.loadMap(n.from,o);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=SN(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new t9(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(t,n){return t?t.substr(0,n.length)===n:!1}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(t){let n=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let o=t.lastIndexOf(n.pop()),l=t.indexOf("*/",o);o>-1&&l>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,l)))}decodeInline(t){let n=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(l.test(t)||d.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(n.test(t)||o.test(t))return hue(t.substr(RegExp.lastMatch.length));let m=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}loadFile(t){if(this.root=SN(t),_ue(t))return this.mapFile=t,mue(t,"utf-8").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let o=n(t);if(o){let l=this.loadFile(o);if(!l)throw new Error("Unable to load previous source map: "+o.toString());return l}}else{if(n instanceof t9)return n9.fromSourceMap(n).toString();if(n instanceof n9)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let o=this.annotation;return t&&(o=gue(SN(t),o)),this.loadFile(o)}}}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}};var KJ=TI;TI.default=TI;let{SourceMapConsumer:vue,SourceMapGenerator:yue}=P2,{fileURLToPath:i9,pathToFileURL:rE}=GJ,{resolve:EI,isAbsolute:CI}=U4,{nanoid:bue}=due,DN=qJ,a9=W4,Sue=KJ,xN=Symbol("fromOffsetCache"),Due=!!(vue&&yue),o9=!!(EI&&CI),rC=class{constructor(t,n={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!o9||/^\w+:\/\//.test(n.from)||CI(n.from)?this.file=n.from:this.file=EI(n.from)),o9&&Due){let o=new Sue(this.css,n);if(o.text){this.map=o;let l=o.consumer().file;!this.file&&l&&(this.file=this.mapResolve(l))}}this.file||(this.id="<input css "+bue(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(t){let n,o;if(this[xN])o=this[xN];else{let d=this.css.split(`
`);o=new Array(d.length);let m=0;for(let $=0,h=d.length;$<h;$++)o[$]=m,m+=d[$].length+1;this[xN]=o}n=o[o.length-1];let l=0;if(t>=n)l=o.length-1;else{let d=o.length-2,m;for(;l<d;)if(m=l+(d-l>>1),t<o[m])d=m-1;else if(t>=o[m+1])l=m+1;else{l=m;break}}return{line:l+1,col:t-o[l]+1}}error(t,n,o,l={}){let d,m,$;if(n&&typeof n=="object"){let e=n,c=o;if(typeof e.offset=="number"){let P=this.fromOffset(e.offset);n=P.line,o=P.col}else n=e.line,o=e.column;if(typeof c.offset=="number"){let P=this.fromOffset(c.offset);m=P.line,$=P.col}else m=c.line,$=c.column}else if(!o){let e=this.fromOffset(n);n=e.line,o=e.col}let h=this.origin(n,o,m,$);return h?d=new a9(t,h.endLine===void 0?h.line:{line:h.line,column:h.column},h.endLine===void 0?h.column:{line:h.endLine,column:h.endColumn},h.source,h.file,l.plugin):d=new a9(t,m===void 0?n:{line:n,column:o},m===void 0?o:{line:m,column:$},this.css,this.file,l.plugin),d.input={line:n,column:o,endLine:m,endColumn:$,source:this.css},this.file&&(rE&&(d.input.url=rE(this.file).toString()),d.input.file=this.file),d}origin(t,n,o,l){if(!this.map)return!1;let d=this.map.consumer(),m=d.originalPositionFor({line:t,column:n});if(!m.source)return!1;let $;typeof o=="number"&&($=d.originalPositionFor({line:o,column:l}));let h;CI(m.source)?h=rE(m.source):h=new URL(m.source,this.map.consumer().sourceRoot||rE(this.map.mapFile));let e={url:h.toString(),line:m.line,column:m.column,endLine:$&&$.line,endColumn:$&&$.column};if(h.protocol==="file:")if(i9)e.file=i9(h);else throw new Error("file: protocol is not available in this PostCSS build");let c=d.sourceContentFor(m.source);return c&&(e.source=c),e}mapResolve(t){return/^\w+:\/\//.test(t)?t:EI(this.map.consumer().sourceRoot||this.map.root||".",t)}get from(){return this.file||this.id}toJSON(){let t={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};var gk=rC;rC.default=rC;DN&&DN.registerInput&&DN.registerInput(rC);let{SourceMapConsumer:QJ,SourceMapGenerator:SE}=P2,{dirname:DE,resolve:XJ,relative:YJ,sep:ZJ}=U4,{pathToFileURL:s9}=GJ,xue=gk,Tue=!!(QJ&&SE),Eue=!!(DE&&XJ&&YJ&&ZJ),Cue=class{constructor(t,n,o,l){this.stringify=t,this.mapOpts=o.map||{},this.root=n,this.opts=o,this.css=l,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new xue(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let o=n.source.input.from;if(o&&!t[o]){t[o]=!0;let l=this.usesFileUrls?this.toFileUrl(o):this.toUrl(this.path(o));this.map.setSourceContent(l,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),o=t.root||DE(t.file),l;this.mapOpts.sourcesContent===!1?(l=new QJ(t.text),l.sourcesContent&&(l.sourcesContent=l.sourcesContent.map(()=>null))):l=t.consumer(),this.map.applySourceMap(l,n,this.toUrl(this.path(o)))}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}toBase64(t){return oa?oa.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=SE.fromSourceMap(t)}else this.map=new SE({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(t){if(t.indexOf("<")===0||/^\w+:\/\//.test(t)||this.mapOpts.absolute)return t;let n=this.opts.to?DE(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(n=DE(XJ(n,this.mapOpts.annotation))),t=YJ(n,t),t}toUrl(t){return ZJ==="\\"&&(t=t.replace(/\\/g,"/")),encodeURI(t).replace(/[#?]/g,encodeURIComponent)}toFileUrl(t){if(s9)return s9(t).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new SE({file:this.outputFile()});let t=1,n=1,o="<no source>",l={source:"",generated:{line:0,column:0},original:{line:0,column:0}},d,m;this.stringify(this.root,($,h,e)=>{if(this.css+=$,h&&e!=="end"&&(l.generated.line=t,l.generated.column=n-1,h.source&&h.source.start?(l.source=this.sourcePath(h),l.original.line=h.source.start.line,l.original.column=h.source.start.column-1,this.map.addMapping(l)):(l.source=o,l.original.line=1,l.original.column=0,this.map.addMapping(l))),d=$.match(/\n/g),d?(t+=d.length,m=$.lastIndexOf(`
`),n=$.length-m):n+=$.length,h&&e!=="start"){let c=h.parent||{raws:{}};(!(h.type==="decl"||h.type==="atrule"&&!h.nodes)||h!==c.last||c.raws.semicolon)&&(h.source&&h.source.end?(l.source=this.sourcePath(h),l.original.line=h.source.end.line,l.original.column=h.source.end.column-1,l.generated.line=t,l.generated.column=n-2,this.map.addMapping(l)):(l.source=o,l.original.line=1,l.original.column=0,l.generated.line=t,l.generated.column=n-1,this.map.addMapping(l)))}})}generate(){if(this.clearAnnotation(),Eue&&Tue&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}};var eU=Cue;let kue=_k,kI=class extends kue{constructor(t){super(t),this.type="comment"}};var hk=kI;kI.default=kI;let{isClean:rU,my:tU}=FD,nU=mk,iU=hk,Aue=_k,aU,q4,$4,oU;function sU(i){return i.map(t=>(t.nodes&&(t.nodes=sU(t.nodes)),delete t.source,t))}function cU(i){if(i[rU]=!1,i.proxyOf.nodes)for(let t of i.proxyOf.nodes)cU(t)}let yv=class uU extends Aue{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),o,l;for(;this.indexes[n]<this.proxyOf.nodes.length&&(o=this.indexes[n],l=t(this.proxyOf.nodes[o],o),l!==!1);)this.indexes[n]+=1;return delete this.indexes[n],l}walk(t){return this.each((n,o)=>{let l;try{l=t(n,o)}catch(d){throw n.addToError(d)}return l!==!1&&n.walk&&(l=n.walk(t)),l})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((o,l)=>{if(o.type==="decl"&&t.test(o.prop))return n(o,l)}):this.walk((o,l)=>{if(o.type==="decl"&&o.prop===t)return n(o,l)}):(n=t,this.walk((o,l)=>{if(o.type==="decl")return n(o,l)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((o,l)=>{if(o.type==="rule"&&t.test(o.selector))return n(o,l)}):this.walk((o,l)=>{if(o.type==="rule"&&o.selector===t)return n(o,l)}):(n=t,this.walk((o,l)=>{if(o.type==="rule")return n(o,l)}))}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((o,l)=>{if(o.type==="atrule"&&t.test(o.name))return n(o,l)}):this.walk((o,l)=>{if(o.type==="atrule"&&o.name===t)return n(o,l)}):(n=t,this.walk((o,l)=>{if(o.type==="atrule")return n(o,l)}))}walkComments(t){return this.walk((n,o)=>{if(n.type==="comment")return t(n,o)})}append(...t){for(let n of t){let o=this.normalize(n,this.last);for(let l of o)this.proxyOf.nodes.push(l)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let n of t){let o=this.normalize(n,this.first,"prepend").reverse();for(let l of o)this.proxyOf.nodes.unshift(l);for(let l in this.indexes)this.indexes[l]=this.indexes[l]+o.length}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}insertBefore(t,n){let o=this.index(t),l=o===0?"prepend":!1,d=this.normalize(n,this.proxyOf.nodes[o],l).reverse();o=this.index(t);for(let $ of d)this.proxyOf.nodes.splice(o,0,$);let m;for(let $ in this.indexes)m=this.indexes[$],o<=m&&(this.indexes[$]=m+d.length);return this.markDirty(),this}insertAfter(t,n){let o=this.index(t),l=this.normalize(n,this.proxyOf.nodes[o]).reverse();o=this.index(t);for(let m of l)this.proxyOf.nodes.splice(o+1,0,m);let d;for(let m in this.indexes)d=this.indexes[m],o<d&&(this.indexes[m]=d+l.length);return this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let o in this.indexes)n=this.indexes[o],n>=t&&(this.indexes[o]=n-1);return this.markDirty(),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(t,n,o){return o||(o=n,n={}),this.walkDecls(l=>{n.props&&!n.props.includes(l.prop)||n.fast&&!l.value.includes(n.fast)||(l.value=l.value.replace(t,o))}),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}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]}normalize(t,n){if(typeof t=="string")t=sU(aU(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let l of t)l.parent&&l.parent.removeChild(l,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let l of t)l.parent&&l.parent.removeChild(l,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new nU(t)]}else if(t.selector)t=[new q4(t)];else if(t.name)t=[new $4(t)];else if(t.text)t=[new iU(t)];else throw new Error("Unknown node type in node creation");return t.map(l=>(l[tU]||uU.rebuild(l),l=l.proxyOf,l.parent&&l.parent.removeChild(l),l[rU]&&cU(l),typeof l.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(l.raws.before=n.raws.before.replace(/\S/g,"")),l.parent=this.proxyOf,l))}getProxyProcessor(){return{set(t,n,o){return t[n]===o||(t[n]=o,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0},get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...o)=>t[n](...o.map(l=>typeof l=="function"?(d,m)=>l(d.toProxy(),m):l)):n==="every"||n==="some"?o=>t[n]((l,...d)=>o(l.toProxy(),...d)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(o=>o.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}};yv.registerParse=i=>{aU=i};yv.registerRule=i=>{q4=i};yv.registerAtRule=i=>{$4=i};yv.registerRoot=i=>{oU=i};var z1=yv;yv.default=yv;yv.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,$4.prototype):i.type==="rule"?Object.setPrototypeOf(i,q4.prototype):i.type==="decl"?Object.setPrototypeOf(i,nU.prototype):i.type==="comment"?Object.setPrototypeOf(i,iU.prototype):i.type==="root"&&Object.setPrototypeOf(i,oU.prototype),i[tU]=!0,i.nodes&&i.nodes.forEach(t=>{yv.rebuild(t)})};let Pue=z1,lU,fU,rD=class extends Pue{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new lU(new fU,this,t).stringify()}};rD.registerLazyResult=i=>{lU=i};rD.registerProcessor=i=>{fU=i};var H4=rD;rD.default=rD;let c9={};var pU=function(t){c9[t]||(c9[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))};let AI=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let o=n.node.rangeBy(n);this.line=o.start.line,this.column=o.start.column,this.endLine=o.end.line,this.endColumn=o.end.column}for(let o in n)this[o]=n[o]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var dU=AI;AI.default=AI;let wue=dU,PI=class{constructor(t,n,o){this.processor=t,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new wue(t,n);return this.messages.push(o),o}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var G4=PI;PI.default=PI;let _U=z1,tC=class extends _U{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var K4=tC;tC.default=tC;_U.registerAtRule(tC);let mU=z1,gU,hU,m2=class extends mU{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}removeChild(t,n){let o=this.index(t);return!n&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(t)}normalize(t,n,o){let l=super.normalize(t);if(n){if(o==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let d of l)d.raws.before=n.raws.before}return l}toResult(t={}){return new gU(new hU,this,t).stringify()}};m2.registerLazyResult=i=>{gU=i};m2.registerProcessor=i=>{hU=i};var LD=m2;m2.default=m2;mU.registerRoot(m2);let tD={split(i,t,n){let o=[],l="",d=!1,m=0,$=!1,h="",e=!1;for(let c of i)e?e=!1:c==="\\"?e=!0:$?c===h&&($=!1):c==='"'||c==="'"?($=!0,h=c):c==="("?m+=1:c===")"?m>0&&(m-=1):m===0&&t.includes(c)&&(d=!0),d?(l!==""&&o.push(l.trim()),l="",d=!1):l+=c;return(n||l!=="")&&o.push(l.trim()),o},space(i){let t=[" ",`
`," "];return tD.split(i,t)},comma(i){return tD.split(i,[","],!0)}};var vU=tD;tD.default=tD;let yU=z1,Nue=vU,nC=class extends yU{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Nue.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}};var Q4=nC;nC.default=nC;yU.registerRule(nC);let Iue=mk,Oue=VJ,Mue=hk,Fue=K4,Lue=LD,u9=Q4;const l9={empty:!0,space:!0};function Rue(i){for(let t=i.length-1;t>=0;t--){let n=i[t],o=n[3]||n[2];if(o)return o}}let Bue=class{constructor(t){this.input=t,this.root=new Lue,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Oue(this.input)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}comment(t){let n=new Mue;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]);let o=t[1].slice(2,-2);if(/^\s*$/.test(o))n.text="",n.raws.left=o,n.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);n.text=l[2],n.raws.left=l[1],n.raws.right=l[3]}}emptyRule(t){let n=new u9;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}other(t){let n=!1,o=null,l=!1,d=null,m=[],$=t[1].startsWith("--"),h=[],e=t;for(;e;){if(o=e[0],h.push(e),o==="("||o==="[")d||(d=e),m.push(o==="("?")":"]");else if($&&l&&o==="{")d||(d=e),m.push("}");else if(m.length===0)if(o===";")if(l){this.decl(h,$);return}else break;else if(o==="{"){this.rule(h);return}else if(o==="}"){this.tokenizer.back(h.pop()),n=!0;break}else o===":"&&(l=!0);else o===m[m.length-1]&&(m.pop(),m.length===0&&(d=null));e=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),m.length>0&&this.unclosedBracket(d),n&&l){if(!$)for(;h.length&&(e=h[h.length-1][0],!(e!=="space"&&e!=="comment"));)this.tokenizer.back(h.pop());this.decl(h,$)}else this.unknownWord(h)}rule(t){t.pop();let n=new u9;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}decl(t,n){let o=new Iue;this.init(o,t[0][2]);let l=t[t.length-1];for(l[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(l[3]||l[2]||Rue(t));t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){let e=t[0][0];if(e===":"||e==="space"||e==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";let d;for(;t.length;)if(d=t.shift(),d[0]===":"){o.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),o.raws.between+=d[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let m=[],$;for(;t.length&&($=t[0][0],!($!=="space"&&$!=="comment"));)m.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(d=t[e],d[1].toLowerCase()==="!important"){o.important=!0;let c=this.stringFrom(t,e);c=this.spacesFromEnd(t)+c,c!==" !important"&&(o.raws.important=c);break}else if(d[1].toLowerCase()==="important"){let c=t.slice(0),P="";for(let T=e;T>0;T--){let s=c[T][0];if(P.trim().indexOf("!")===0&&s!=="space")break;P=c.pop()[1]+P}P.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=P,t=c)}if(d[0]!=="space"&&d[0]!=="comment")break}t.some(e=>e[0]!=="space"&&e[0]!=="comment")&&(o.raws.between+=m.map(e=>e[1]).join(""),m=[]),this.raw(o,"value",m.concat(t),n),o.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}atrule(t){let n=new Fue;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let o,l,d,m=!1,$=!1,h=[],e=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?e.push(o==="("?")":"]"):o==="{"&&e.length>0?e.push("}"):o===e[e.length-1]&&e.pop(),e.length===0)if(o===";"){n.source.end=this.getPosition(t[2]),this.semicolon=!0;break}else if(o==="{"){$=!0;break}else if(o==="}"){if(h.length>0){for(d=h.length-1,l=h[d];l&&l[0]==="space";)l=h[--d];l&&(n.source.end=this.getPosition(l[3]||l[2]))}this.end(t);break}else h.push(t);else h.push(t);if(this.tokenizer.endOfFile()){m=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(n.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(n,"params",h),m&&(t=h[h.length-1],n.source.end=this.getPosition(t[3]||t[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),$&&(n.nodes=[],this.current=n)}end(t){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(t[2]),this.current=this.current.parent):this.unexpectedClose(t)}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}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{offset:t,line:n.line,column:n.col}}init(t,n){this.current.push(t),t.source={start:this.getPosition(n),input:this.input},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}raw(t,n,o,l){let d,m,$=o.length,h="",e=!0,c,P;for(let T=0;T<$;T+=1)d=o[T],m=d[0],m==="space"&&T===$-1&&!l?e=!1:m==="comment"?(P=o[T-1]?o[T-1][0]:"empty",c=o[T+1]?o[T+1][0]:"empty",!l9[P]&&!l9[c]?h.slice(-1)===","?e=!1:h+=d[1]:e=!1):h+=d[1];if(!e){let T=o.reduce((s,D)=>s+D[1],"");t.raws[n]={value:h,raw:T}}t[n]=h}spacesAndCommentsFromEnd(t){let n,o="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)o=t.pop()[1]+o;return o}spacesAndCommentsFromStart(t){let n,o="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)o+=t.shift()[1];return o}spacesFromEnd(t){let n,o="";for(;t.length&&(n=t[t.length-1][0],n==="space");)o=t.pop()[1]+o;return o}stringFrom(t,n){let o="";for(let l=n;l<t.length;l++)o+=t[l][1];return t.splice(n,t.length-n),o}colon(t){let n=0,o,l,d;for(let[m,$]of t.entries()){if(o=$,l=o[0],l==="("&&(n+=1),l===")"&&(n-=1),n===0&&l===":")if(!d)this.doubleColon(o);else{if(d[0]==="word"&&d[1]==="progid")continue;return m}d=o}return!1}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let o=0,l;for(let d=n-1;d>=0&&(l=t[d],!(l[0]!=="space"&&(o+=1,o===2)));d--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}};var jue=Bue;let Jue=z1,Uue=jue,Vue=gk;function iC(i,t){let n=new Vue(i,t),o=new Uue(n);try{o.parse()}catch(l){throw Jp.env.NODE_ENV!=="production"&&l.name==="CssSyntaxError"&&t&&t.from&&(/\.scss$/i.test(t.from)?l.message+=`
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?l.message+=`
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(l.message+=`
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),l}return o.root}var X4=iC;iC.default=iC;Jue.registerParse(iC);let{isClean:ah,my:zue}=FD,Wue=eU,que=dk,$ue=z1,Hue=H4,Gue=pU,f9=G4,Kue=X4,Que=LD;const Xue={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Yue={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Zue={postcssPlugin:!0,prepare:!0,Once:!0},g2=0;function dS(i){return typeof i=="object"&&typeof i.then=="function"}function bU(i){let t=!1,n=Xue[i.type];return i.type==="decl"?t=i.prop.toLowerCase():i.type==="atrule"&&(t=i.name.toLowerCase()),t&&i.append?[n,n+"-"+t,g2,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:i.append?[n,g2,n+"Exit"]:[n,n+"Exit"]}function p9(i){let t;return i.type==="document"?t=["Document",g2,"DocumentExit"]:i.type==="root"?t=["Root",g2,"RootExit"]:t=bU(i),{node:i,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function wI(i){return i[ah]=!1,i.nodes&&i.nodes.forEach(t=>wI(t)),i}let NI={},h2=class SU{constructor(t,n,o){this.stringified=!1,this.processed=!1;let l;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))l=wI(n);else if(n instanceof SU||n instanceof f9)l=wI(n.root),n.map&&(typeof o.map>"u"&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=n.map);else{let d=Kue;o.syntax&&(d=o.syntax.parse),o.parser&&(d=o.parser),d.parse&&(d=d.parse);try{l=d(n,o)}catch(m){this.processed=!0,this.error=m}l&&!l[zue]&&$ue.rebuild(l)}this.result=new f9(t,l,o),this.helpers={...NI,result:this.result,postcss:NI},this.plugins=this.processor.plugins.map(d=>typeof d=="object"&&d.prepare?{...d,...d.prepare(this.result)}:d)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(t,n){return Jp.env.NODE_ENV!=="production"&&("from"in this.opts||Gue("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,n)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(dS(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ah];)t[ah]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=que;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let l=new Wue(n,this.result.root,this.result.opts).generate();return this.result.css=l[0],this.result.map=l[1],this.result}walkSync(t){t[ah]=!0;let n=bU(t);for(let o of n)if(o===g2)t.nodes&&t.each(l=>{l[ah]||this.walkSync(l)});else{let l=this.listeners[o];if(l&&this.visitSync(l,t.toProxy()))return}}visitSync(t,n){for(let[o,l]of t){this.result.lastPlugin=o;let d;try{d=l(n,this.helpers)}catch(m){throw this.handleError(m,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(dS(d))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(o=>t.Once(o,this.helpers));return dS(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let o=this.result.lastPlugin;try{if(n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&Jp.env.NODE_ENV!=="production"){let l=o.postcssPlugin,d=o.postcssVersion,m=this.result.processor.version,$=d.split("."),h=m.split(".");($[0]!==h[0]||parseInt($[1])>parseInt(h[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+m+", but "+l+" uses "+d+". Perhaps this is the source of the error below.")}}catch(l){console&&console.error&&console.error(l)}return t}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],o=this.runOnRoot(n);if(dS(o))try{await o}catch(l){throw this.handleError(l)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ah];){t[ah]=!0;let n=[p9(t)];for(;n.length>0;){let o=this.visitTick(n);if(dS(o))try{await o}catch(l){let d=n[n.length-1].node;throw this.handleError(l,d)}}}if(this.listeners.OnceExit)for(let[n,o]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let l=t.nodes.map(d=>o(d,this.helpers));await Promise.all(l)}else await o(t,this.helpers)}catch(l){throw this.handleError(l)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let t=(n,o,l)=>{this.listeners[o]||(this.listeners[o]=[]),this.listeners[o].push([n,l])};for(let n of this.plugins)if(typeof n=="object")for(let o in n){if(!Yue[o]&&/^[A-Z]/.test(o))throw new Error(`Unknown event ${o} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Zue[o])if(typeof n[o]=="object")for(let l in n[o])l==="*"?t(n,o,n[o][l]):t(n,o+"-"+l.toLowerCase(),n[o][l]);else typeof n[o]=="function"&&t(n,o,n[o])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(t){let n=t[t.length-1],{node:o,visitors:l}=n;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(l.length>0&&n.visitorIndex<l.length){let[m,$]=l[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===l.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=m;try{return $(o.toProxy(),this.helpers)}catch(h){throw this.handleError(h,o)}}if(n.iterator!==0){let m=n.iterator,$;for(;$=o.nodes[o.indexes[m]];)if(o.indexes[m]+=1,!$[ah]){$[ah]=!0,t.push(p9($));return}n.iterator=0,delete o.indexes[m]}let d=n.events;for(;n.eventIndex<d.length;){let m=d[n.eventIndex];if(n.eventIndex+=1,m===g2){o.nodes&&o.nodes.length&&(o[ah]=!0,n.iterator=o.getIterator());return}else if(this.listeners[m]){n.visitors=this.listeners[m];return}}t.pop()}};h2.registerPostcss=i=>{NI=i};var DU=h2;h2.default=h2;Que.registerLazyResult(h2);Hue.registerLazyResult(h2);let ele=eU,rle=dk,tle=pU,nle=X4;const ile=G4;let II=class{constructor(t,n,o){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=o,this._map=void 0;let l,d=rle;this.result=new ile(this._processor,l,this._opts),this.result.css=n;let m=this;Object.defineProperty(this.result,"root",{get(){return m.root}});let $=new ele(d,l,this._opts,n);if($.isMap()){let[h,e]=$.generate();h&&(this.result.css=h),e&&(this.result.map=e)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let t,n=nle;try{t=n(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(t,n){return Jp.env.NODE_ENV!=="production"&&("from"in this._opts||tle("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,n)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};var ale=II;II.default=II;let ole=ale,sle=DU,cle=H4,ule=LD,nD=class{constructor(t=[]){this.version="8.4.21",this.plugins=this.normalize(t)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}process(t,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new ole(this,t,n):new sle(this,t,n)}normalize(t){let n=[];for(let o of t)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))n=n.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)n.push(o);else if(typeof o=="function")n.push(o);else if(typeof o=="object"&&(o.parse||o.stringify)){if(Jp.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(o+" is not a PostCSS plugin");return n}};var lle=nD;nD.default=nD;ule.registerProcessor(nD);cle.registerProcessor(nD);let fle=mk,ple=KJ,dle=hk,_le=K4,mle=gk,gle=LD,hle=Q4;function iD(i,t){if(Array.isArray(i))return i.map(l=>iD(l));let{inputs:n,...o}=i;if(n){t=[];for(let l of n){let d={...l,__proto__:mle.prototype};d.map&&(d.map={...d.map,__proto__:ple.prototype}),t.push(d)}}if(o.nodes&&(o.nodes=i.nodes.map(l=>iD(l,t))),o.source){let{inputId:l,...d}=o.source;o.source=d,l!=null&&(o.source.input=t[l])}if(o.type==="root")return new gle(o);if(o.type==="decl")return new fle(o);if(o.type==="rule")return new hle(o);if(o.type==="comment")return new dle(o);if(o.type==="atrule")return new _le(o);throw new Error("Unknown node type: "+i.type)}var vle=iD;iD.default=iD;let yle=W4,xU=mk,ble=DU,Sle=z1,Y4=lle,Dle=dk,xle=vle,TU=H4,Tle=dU,EU=hk,CU=K4,Ele=G4,Cle=gk,kle=X4,Ale=vU,kU=Q4,AU=LD,Ple=_k;function ru(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Y4(i)}ru.plugin=function(t,n){let o=!1;function l(...m){console&&console.warn&&!o&&(o=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Jp.env.LANG&&Jp.env.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let $=n(...m);return $.postcssPlugin=t,$.postcssVersion=new Y4().version,$}let d;return Object.defineProperty(l,"postcss",{get(){return d||(d=l()),d}}),l.process=function(m,$,h){return ru([l(h)]).process(m,$)},l};ru.stringify=Dle;ru.parse=kle;ru.fromJSON=xle;ru.list=Ale;ru.comment=i=>new EU(i);ru.atRule=i=>new CU(i);ru.decl=i=>new xU(i);ru.rule=i=>new kU(i);ru.root=i=>new AU(i);ru.document=i=>new TU(i);ru.CssSyntaxError=yle;ru.Declaration=xU;ru.Container=Sle;ru.Processor=Y4;ru.Document=TU;ru.Comment=EU;ru.Warning=Tle;ru.AtRule=CU;ru.Result=Ele;ru.Input=Cle;ru.Rule=kU;ru.Root=AU;ru.Node=Ple;ble.registerPostcss(ru);var wle=ru;ru.default=ru;var ju=wle;ju.stringify;ju.fromJSON;ju.plugin;ju.parse;ju.list;ju.document;ju.comment;ju.atRule;ju.rule;ju.decl;ju.root;ju.CssSyntaxError;ju.Declaration;ju.Container;ju.Processor;ju.Document;ju.Comment;ju.Warning;ju.AtRule;ju.Result;ju.Input;ju.Rule;ju.Root;ju.Node;const PU=()=>({postcssPlugin:"vue-sfc-trim",Once(i){i.walk(({type:t,raws:n})=>{(t==="rule"||t==="atrule")&&(n.before&&(n.before=`
`),"after"in n&&n.after&&(n.after=`
`))})}});PU.postcss=!0;var Nle=PU,aC={},Ile={get exports(){return aC},set exports(i){aC=i}},oC={},Ole={get exports(){return oC},set exports(i){oC=i}},sC={},Mle={get exports(){return sC},set exports(i){sC=i}},aD={},Fle={get exports(){return aD},set exports(i){aD=i}},v2={},Lle={get exports(){return v2},set exports(i){v2=i}},Cg={},Rle={get exports(){return Cg},set exports(i){Cg=i}},w_={},oD={},Ble={get exports(){return oD},set exports(i){oD=i}};(function(i,t){t.__esModule=!0,t.default=l;function n(d){for(var m=d.toLowerCase(),$="",h=!1,e=0;e<6&&m[e]!==void 0;e++){var c=m.charCodeAt(e),P=c>=97&&c<=102||c>=48&&c<=57;if(h=c===32,!P)break;$+=m[e]}if($.length!==0){var T=parseInt($,16),s=T>=55296&&T<=57343;return s||T===0||T>1114111?["�",$.length+(h?1:0)]:[String.fromCodePoint(T),$.length+(h?1:0)]}}var o=/\\/;function l(d){var m=o.test(d);if(!m)return d;for(var $="",h=0;h<d.length;h++){if(d[h]==="\\"){var e=n(d.slice(h+1,h+7));if(e!==void 0){$+=e[0],h+=e[1];continue}if(d[h+1]==="\\"){$+="\\",h++;continue}d.length===h+1&&($+=d[h]);continue}$+=d[h]}return $}i.exports=t.default})(Ble,oD);var cC={},jle={get exports(){return cC},set exports(i){cC=i}};(function(i,t){t.__esModule=!0,t.default=n;function n(o){for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];for(;d.length>0;){var $=d.shift();if(!o[$])return;o=o[$]}return o}i.exports=t.default})(jle,cC);var uC={},Jle={get exports(){return uC},set exports(i){uC=i}};(function(i,t){t.__esModule=!0,t.default=n;function n(o){for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];for(;d.length>0;){var $=d.shift();o[$]||(o[$]={}),o=o[$]}}i.exports=t.default})(Jle,uC);var lC={},Ule={get exports(){return lC},set exports(i){lC=i}};(function(i,t){t.__esModule=!0,t.default=n;function n(o){for(var l="",d=o.indexOf("/*"),m=0;d>=0;){l=l+o.slice(m,d);var $=o.indexOf("*/",d+2);if($<0)return l;m=$+2,d=o.indexOf("/*",m)}return l=l+o.slice(m),l}i.exports=t.default})(Ule,lC);w_.__esModule=!0;w_.stripComments=w_.ensureObject=w_.getProp=w_.unesc=void 0;var Vle=vk(oD);w_.unesc=Vle.default;var zle=vk(cC);w_.getProp=zle.default;var Wle=vk(uC);w_.ensureObject=Wle.default;var qle=vk(lC);w_.stripComments=qle.default;function vk(i){return i&&i.__esModule?i:{default:i}}(function(i,t){t.__esModule=!0,t.default=void 0;var n=w_;function o($,h){for(var e=0;e<h.length;e++){var c=h[e];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty($,c.key,c)}}function l($,h,e){return h&&o($.prototype,h),e&&o($,e),$}var d=function $(h,e){if(typeof h!="object"||h===null)return h;var c=new h.constructor;for(var P in h)if(h.hasOwnProperty(P)){var T=h[P],s=typeof T;P==="parent"&&s==="object"?e&&(c[P]=e):T instanceof Array?c[P]=T.map(function(D){return $(D,c)}):c[P]=$(T,c)}return c},m=function(){function $(e){e===void 0&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var h=$.prototype;return h.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},h.replaceWith=function(){if(this.parent){for(var c in arguments)this.parent.insertBefore(this,arguments[c]);this.remove()}return this},h.next=function(){return this.parent.at(this.parent.index(this)+1)},h.prev=function(){return this.parent.at(this.parent.index(this)-1)},h.clone=function(c){c===void 0&&(c={});var P=d(this);for(var T in c)P[T]=c[T];return P},h.appendToPropertyAndEscape=function(c,P,T){this.raws||(this.raws={});var s=this[c],D=this.raws[c];this[c]=s+P,D||T!==P?this.raws[c]=(D||s)+T:delete this.raws[c]},h.setPropertyAndEscape=function(c,P,T){this.raws||(this.raws={}),this[c]=P,this.raws[c]=T},h.setPropertyWithoutEscape=function(c,P){this[c]=P,this.raws&&delete this.raws[c]},h.isAtPosition=function(c,P){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>c||this.source.end.line<c||this.source.start.line===c&&this.source.start.column>P||this.source.end.line===c&&this.source.end.column<P)},h.stringifyProperty=function(c){return this.raws&&this.raws[c]||this[c]},h.valueToString=function(){return String(this.stringifyProperty("value"))},h.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},l($,[{key:"rawSpaceBefore",get:function(){var c=this.raws&&this.raws.spaces&&this.raws.spaces.before;return c===void 0&&(c=this.spaces&&this.spaces.before),c||""},set:function(c){(0,n.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=c}},{key:"rawSpaceAfter",get:function(){var c=this.raws&&this.raws.spaces&&this.raws.spaces.after;return c===void 0&&(c=this.spaces.after),c||""},set:function(c){(0,n.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=c}}]),$}();t.default=m,i.exports=t.default})(Rle,Cg);var Us={};Us.__esModule=!0;Us.UNIVERSAL=Us.ATTRIBUTE=Us.CLASS=Us.COMBINATOR=Us.COMMENT=Us.ID=Us.NESTING=Us.PSEUDO=Us.ROOT=Us.SELECTOR=Us.STRING=Us.TAG=void 0;var $le="tag";Us.TAG=$le;var Hle="string";Us.STRING=Hle;var Gle="selector";Us.SELECTOR=Gle;var Kle="root";Us.ROOT=Kle;var Qle="pseudo";Us.PSEUDO=Qle;var Xle="nesting";Us.NESTING=Xle;var Yle="id";Us.ID=Yle;var Zle="comment";Us.COMMENT=Zle;var efe="combinator";Us.COMBINATOR=efe;var rfe="class";Us.CLASS=rfe;var tfe="attribute";Us.ATTRIBUTE=tfe;var nfe="universal";Us.UNIVERSAL=nfe;(function(i,t){t.__esModule=!0,t.default=void 0;var n=m(Cg),o=d(Us);function l(){if(typeof WeakMap!="function")return null;var O=new WeakMap;return l=function(){return O},O}function d(O){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var W=l();if(W&&W.has(O))return W.get(O);var E={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in O)if(Object.prototype.hasOwnProperty.call(O,S)){var te=v?Object.getOwnPropertyDescriptor(O,S):null;te&&(te.get||te.set)?Object.defineProperty(E,S,te):E[S]=O[S]}return E.default=O,W&&W.set(O,E),E}function m(O){return O&&O.__esModule?O:{default:O}}function $(O,W){var E;if(typeof Symbol>"u"||O[Symbol.iterator]==null){if(Array.isArray(O)||(E=h(O))||W&&O&&typeof O.length=="number"){E&&(O=E);var v=0;return function(){return v>=O.length?{done:!0}:{done:!1,value:O[v++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return E=O[Symbol.iterator](),E.next.bind(E)}function h(O,W){if(O){if(typeof O=="string")return e(O,W);var E=Object.prototype.toString.call(O).slice(8,-1);if(E==="Object"&&O.constructor&&(E=O.constructor.name),E==="Map"||E==="Set")return Array.from(O);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return e(O,W)}}function e(O,W){(W==null||W>O.length)&&(W=O.length);for(var E=0,v=new Array(W);E<W;E++)v[E]=O[E];return v}function c(O,W){for(var E=0;E<W.length;E++){var v=W[E];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(O,v.key,v)}}function P(O,W,E){return W&&c(O.prototype,W),E&&c(O,E),O}function T(O,W){O.prototype=Object.create(W.prototype),O.prototype.constructor=O,s(O,W)}function s(O,W){return s=Object.setPrototypeOf||function(v,S){return v.__proto__=S,v},s(O,W)}var D=function(O){T(W,O);function W(v){var S;return S=O.call(this,v)||this,S.nodes||(S.nodes=[]),S}var E=W.prototype;return E.append=function(S){return S.parent=this,this.nodes.push(S),this},E.prepend=function(S){return S.parent=this,this.nodes.unshift(S),this},E.at=function(S){return this.nodes[S]},E.index=function(S){return typeof S=="number"?S:this.nodes.indexOf(S)},E.removeChild=function(S){S=this.index(S),this.at(S).parent=void 0,this.nodes.splice(S,1);var te;for(var Y in this.indexes)te=this.indexes[Y],te>=S&&(this.indexes[Y]=te-1);return this},E.removeAll=function(){for(var S=$(this.nodes),te;!(te=S()).done;){var Y=te.value;Y.parent=void 0}return this.nodes=[],this},E.empty=function(){return this.removeAll()},E.insertAfter=function(S,te){te.parent=this;var Y=this.index(S);this.nodes.splice(Y+1,0,te),te.parent=this;var Z;for(var ce in this.indexes)Z=this.indexes[ce],Y<=Z&&(this.indexes[ce]=Z+1);return this},E.insertBefore=function(S,te){te.parent=this;var Y=this.index(S);this.nodes.splice(Y,0,te),te.parent=this;var Z;for(var ce in this.indexes)Z=this.indexes[ce],Z<=Y&&(this.indexes[ce]=Z+1);return this},E._findChildAtPosition=function(S,te){var Y=void 0;return this.each(function(Z){if(Z.atPosition){var ce=Z.atPosition(S,te);if(ce)return Y=ce,!1}else if(Z.isAtPosition(S,te))return Y=Z,!1}),Y},E.atPosition=function(S,te){if(this.isAtPosition(S,te))return this._findChildAtPosition(S,te)||this},E._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},E.each=function(S){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var te=this.lastEach;if(this.indexes[te]=0,!!this.length){for(var Y,Z;this.indexes[te]<this.length&&(Y=this.indexes[te],Z=S(this.at(Y),Y),Z!==!1);)this.indexes[te]+=1;if(delete this.indexes[te],Z===!1)return!1}},E.walk=function(S){return this.each(function(te,Y){var Z=S(te,Y);if(Z!==!1&&te.length&&(Z=te.walk(S)),Z===!1)return!1})},E.walkAttributes=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.ATTRIBUTE)return S.call(te,Y)})},E.walkClasses=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.CLASS)return S.call(te,Y)})},E.walkCombinators=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.COMBINATOR)return S.call(te,Y)})},E.walkComments=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.COMMENT)return S.call(te,Y)})},E.walkIds=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.ID)return S.call(te,Y)})},E.walkNesting=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.NESTING)return S.call(te,Y)})},E.walkPseudos=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.PSEUDO)return S.call(te,Y)})},E.walkTags=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.TAG)return S.call(te,Y)})},E.walkUniversals=function(S){var te=this;return this.walk(function(Y){if(Y.type===o.UNIVERSAL)return S.call(te,Y)})},E.split=function(S){var te=this,Y=[];return this.reduce(function(Z,ce,k){var X=S.call(te,ce);return Y.push(ce),X?(Z.push(Y),Y=[]):k===te.length-1&&Z.push(Y),Z},[])},E.map=function(S){return this.nodes.map(S)},E.reduce=function(S,te){return this.nodes.reduce(S,te)},E.every=function(S){return this.nodes.every(S)},E.some=function(S){return this.nodes.some(S)},E.filter=function(S){return this.nodes.filter(S)},E.sort=function(S){return this.nodes.sort(S)},E.toString=function(){return this.map(String).join("")},P(W,[{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}}]),W}(n.default);t.default=D,i.exports=t.default})(Lle,v2);(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(v2),o=Us;function l(c){return c&&c.__esModule?c:{default:c}}function d(c,P){for(var T=0;T<P.length;T++){var s=P[T];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}}function m(c,P,T){return P&&d(c.prototype,P),T&&d(c,T),c}function $(c,P){c.prototype=Object.create(P.prototype),c.prototype.constructor=c,h(c,P)}function h(c,P){return h=Object.setPrototypeOf||function(s,D){return s.__proto__=D,s},h(c,P)}var e=function(c){$(P,c);function P(s){var D;return D=c.call(this,s)||this,D.type=o.ROOT,D}var T=P.prototype;return T.toString=function(){var D=this.reduce(function(O,W){return O.push(String(W)),O},[]).join(",");return this.trailingComma?D+",":D},T.error=function(D,O){return this._error?this._error(D,O):new Error(D)},m(P,[{key:"errorGenerator",set:function(D){this._error=D}}]),P}(n.default);t.default=e,i.exports=t.default})(Fle,aD);var sD={},ife={get exports(){return sD},set exports(i){sD=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(v2),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(c){var P;return P=h.call(this,c)||this,P.type=o.SELECTOR,P}return e}(n.default);t.default=$,i.exports=t.default})(ife,sD);var cD={},afe={get exports(){return cD},set exports(i){cD=i}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var ofe={},sfe=ofe.hasOwnProperty,cfe=function(t,n){if(!t)return n;var o={};for(var l in n)o[l]=sfe.call(t,l)?t[l]:n[l];return o},ufe=/[ -,\.\/:-@\[-\^`\{-~]/,lfe=/[ -,\.\/:-@\[\]\^`\{-~]/,ffe=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Z4=function i(t,n){n=cfe(n,i.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var o=n.quotes=="double"?'"':"'",l=n.isIdentifier,d=t.charAt(0),m="",$=0,h=t.length;$<h;){var e=t.charAt($++),c=e.charCodeAt(),P=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&$<h){var T=t.charCodeAt($++);(T&64512)==56320?c=((c&1023)<<10)+(T&1023)+65536:$--}P="\\"+c.toString(16).toUpperCase()+" "}else n.escapeEverything?ufe.test(e)?P="\\"+e:P="\\"+c.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(e)?P="\\"+c.toString(16).toUpperCase()+" ":e=="\\"||!l&&(e=='"'&&o==e||e=="'"&&o==e)||l&&lfe.test(e)?P="\\"+e:P=e;m+=P}return l&&(/^-[-\d]/.test(m)?m="\\-"+m.slice(1):/\d/.test(d)&&(m="\\3"+d+" "+m.slice(1))),m=m.replace(ffe,function(s,D,O){return D&&D.length%2?s:(D||"")+O}),!l&&n.wrap?o+m+o:m};Z4.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Z4.version="3.0.0";var e3=Z4;(function(i,t){t.__esModule=!0,t.default=void 0;var n=m(e3),o=w_,l=m(Cg),d=Us;function m(T){return T&&T.__esModule?T:{default:T}}function $(T,s){for(var D=0;D<s.length;D++){var O=s[D];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(T,O.key,O)}}function h(T,s,D){return s&&$(T.prototype,s),D&&$(T,D),T}function e(T,s){T.prototype=Object.create(s.prototype),T.prototype.constructor=T,c(T,s)}function c(T,s){return c=Object.setPrototypeOf||function(O,W){return O.__proto__=W,O},c(T,s)}var P=function(T){e(s,T);function s(O){var W;return W=T.call(this,O)||this,W.type=d.CLASS,W._constructed=!0,W}var D=s.prototype;return D.valueToString=function(){return"."+T.prototype.valueToString.call(this)},h(s,[{key:"value",get:function(){return this._value},set:function(W){if(this._constructed){var E=(0,n.default)(W,{isIdentifier:!0});E!==W?((0,o.ensureObject)(this,"raws"),this.raws.value=E):this.raws&&delete this.raws.value}this._value=W}}]),s}(l.default);t.default=P,i.exports=t.default})(afe,cD);var uD={},pfe={get exports(){return uD},set exports(i){uD=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(Cg),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(c){var P;return P=h.call(this,c)||this,P.type=o.COMMENT,P}return e}(n.default);t.default=$,i.exports=t.default})(pfe,uD);var lD={},dfe={get exports(){return lD},set exports(i){lD=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(Cg),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(P){var T;return T=h.call(this,P)||this,T.type=o.ID,T}var c=e.prototype;return c.valueToString=function(){return"#"+h.prototype.valueToString.call(this)},e}(n.default);t.default=$,i.exports=t.default})(dfe,lD);var fD={},_fe={get exports(){return fD},set exports(i){fD=i}},y2={},mfe={get exports(){return y2},set exports(i){y2=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=d(e3),o=w_,l=d(Cg);function d(P){return P&&P.__esModule?P:{default:P}}function m(P,T){for(var s=0;s<T.length;s++){var D=T[s];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(P,D.key,D)}}function $(P,T,s){return T&&m(P.prototype,T),s&&m(P,s),P}function h(P,T){P.prototype=Object.create(T.prototype),P.prototype.constructor=P,e(P,T)}function e(P,T){return e=Object.setPrototypeOf||function(D,O){return D.__proto__=O,D},e(P,T)}var c=function(P){h(T,P);function T(){return P.apply(this,arguments)||this}var s=T.prototype;return s.qualifiedName=function(O){return this.namespace?this.namespaceString+"|"+O:O},s.valueToString=function(){return this.qualifiedName(P.prototype.valueToString.call(this))},$(T,[{key:"namespace",get:function(){return this._namespace},set:function(O){if(O===!0||O==="*"||O==="&"){this._namespace=O,this.raws&&delete this.raws.namespace;return}var W=(0,n.default)(O,{isIdentifier:!0});this._namespace=O,W!==O?((0,o.ensureObject)(this,"raws"),this.raws.namespace=W):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(O){this.namespace=O}},{key:"namespaceString",get:function(){if(this.namespace){var O=this.stringifyProperty("namespace");return O===!0?"":O}else return""}}]),T}(l.default);t.default=c,i.exports=t.default})(mfe,y2);(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(y2),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(c){var P;return P=h.call(this,c)||this,P.type=o.TAG,P}return e}(n.default);t.default=$,i.exports=t.default})(_fe,fD);var pD={},gfe={get exports(){return pD},set exports(i){pD=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(Cg),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(c){var P;return P=h.call(this,c)||this,P.type=o.STRING,P}return e}(n.default);t.default=$,i.exports=t.default})(gfe,pD);var dD={},hfe={get exports(){return dD},set exports(i){dD=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(v2),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(P){var T;return T=h.call(this,P)||this,T.type=o.PSEUDO,T}var c=e.prototype;return c.toString=function(){var T=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),T,this.rawSpaceAfter].join("")},e}(n.default);t.default=$,i.exports=t.default})(hfe,dD);var r3={},vfe=kce.deprecate;(function(i){i.__esModule=!0,i.unescapeValue=W,i.default=void 0;var t=m(e3),n=m(oD),o=m(y2),l=Us,d;function m(Y){return Y&&Y.__esModule?Y:{default:Y}}function $(Y,Z){for(var ce=0;ce<Z.length;ce++){var k=Z[ce];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(Y,k.key,k)}}function h(Y,Z,ce){return Z&&$(Y.prototype,Z),ce&&$(Y,ce),Y}function e(Y,Z){Y.prototype=Object.create(Z.prototype),Y.prototype.constructor=Y,c(Y,Z)}function c(Y,Z){return c=Object.setPrototypeOf||function(k,X){return k.__proto__=X,k},c(Y,Z)}var P=vfe,T=/^('|")([^]*)\1$/,s=P(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),D=P(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),O=P(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function W(Y){var Z=!1,ce=null,k=Y,X=k.match(T);return X&&(ce=X[1],k=X[2]),k=(0,n.default)(k),k!==Y&&(Z=!0),{deprecatedUsage:Z,unescaped:k,quoteMark:ce}}function E(Y){if(Y.quoteMark!==void 0||Y.value===void 0)return Y;O();var Z=W(Y.value),ce=Z.quoteMark,k=Z.unescaped;return Y.raws||(Y.raws={}),Y.raws.value===void 0&&(Y.raws.value=Y.value),Y.value=k,Y.quoteMark=ce,Y}var v=function(Y){e(Z,Y);function Z(k){var X;return k===void 0&&(k={}),X=Y.call(this,E(k))||this,X.type=l.ATTRIBUTE,X.raws=X.raws||{},Object.defineProperty(X.raws,"unquoted",{get:P(function(){return X.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:P(function(){return X.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),X._constructed=!0,X}var ce=Z.prototype;return ce.getQuotedValue=function(X){X===void 0&&(X={});var A=this._determineQuoteMark(X),y=S[A],C=(0,t.default)(this._value,y);return C},ce._determineQuoteMark=function(X){return X.smart?this.smartQuoteMark(X):this.preferredQuoteMark(X)},ce.setValue=function(X,A){A===void 0&&(A={}),this._value=X,this._quoteMark=this._determineQuoteMark(A),this._syncRawValue()},ce.smartQuoteMark=function(X){var A=this.value,y=A.replace(/[^']/g,"").length,C=A.replace(/[^"]/g,"").length;if(y+C===0){var B=(0,t.default)(A,{isIdentifier:!0});if(B===A)return Z.NO_QUOTE;var F=this.preferredQuoteMark(X);if(F===Z.NO_QUOTE){var z=this.quoteMark||X.quoteMark||Z.DOUBLE_QUOTE,ge=S[z],Pe=(0,t.default)(A,ge);if(Pe.length<B.length)return z}return F}else return C===y?this.preferredQuoteMark(X):C<y?Z.DOUBLE_QUOTE:Z.SINGLE_QUOTE},ce.preferredQuoteMark=function(X){var A=X.preferCurrentQuoteMark?this.quoteMark:X.quoteMark;return A===void 0&&(A=X.preferCurrentQuoteMark?X.quoteMark:this.quoteMark),A===void 0&&(A=Z.DOUBLE_QUOTE),A},ce._syncRawValue=function(){var X=(0,t.default)(this._value,S[this.quoteMark]);X===this._value?this.raws&&delete this.raws.value:this.raws.value=X},ce._handleEscapes=function(X,A){if(this._constructed){var y=(0,t.default)(A,{isIdentifier:!0});y!==A?this.raws[X]=y:delete this.raws[X]}},ce._spacesFor=function(X){var A={before:"",after:""},y=this.spaces[X]||{},C=this.raws.spaces&&this.raws.spaces[X]||{};return Object.assign(A,y,C)},ce._stringFor=function(X,A,y){A===void 0&&(A=X),y===void 0&&(y=te);var C=this._spacesFor(A);return y(this.stringifyProperty(X),C)},ce.offsetOf=function(X){var A=1,y=this._spacesFor("attribute");if(A+=y.before.length,X==="namespace"||X==="ns")return this.namespace?A:-1;if(X==="attributeNS"||(A+=this.namespaceString.length,this.namespace&&(A+=1),X==="attribute"))return A;A+=this.stringifyProperty("attribute").length,A+=y.after.length;var C=this._spacesFor("operator");A+=C.before.length;var B=this.stringifyProperty("operator");if(X==="operator")return B?A:-1;A+=B.length,A+=C.after.length;var F=this._spacesFor("value");A+=F.before.length;var z=this.stringifyProperty("value");if(X==="value")return z?A:-1;A+=z.length,A+=F.after.length;var ge=this._spacesFor("insensitive");return A+=ge.before.length,X==="insensitive"&&this.insensitive?A:-1},ce.toString=function(){var X=this,A=[this.rawSpaceBefore,"["];return A.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(A.push(this._stringFor("operator")),A.push(this._stringFor("value")),A.push(this._stringFor("insensitiveFlag","insensitive",function(y,C){return y.length>0&&!X.quoted&&C.before.length===0&&!(X.spaces.value&&X.spaces.value.after)&&(C.before=" "),te(y,C)}))),A.push("]"),A.push(this.rawSpaceAfter),A.join("")},h(Z,[{key:"quoted",get:function(){var X=this.quoteMark;return X==="'"||X==='"'},set:function(X){D()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(X){if(!this._constructed){this._quoteMark=X;return}this._quoteMark!==X&&(this._quoteMark=X,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(X){if(this._constructed){var A=W(X),y=A.deprecatedUsage,C=A.unescaped,B=A.quoteMark;if(y&&s(),C===this._value&&B===this._quoteMark)return;this._value=C,this._quoteMark=B,this._syncRawValue()}else this._value=X}},{key:"insensitive",get:function(){return this._insensitive},set:function(X){X||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=X}},{key:"attribute",get:function(){return this._attribute},set:function(X){this._handleEscapes("attribute",X),this._attribute=X}}]),Z}(o.default);i.default=v,v.NO_QUOTE=null,v.SINGLE_QUOTE="'",v.DOUBLE_QUOTE='"';var S=(d={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},d[null]={isIdentifier:!0},d);function te(Y,Z){return""+Z.before+Y+Z.after}})(r3);var _D={},yfe={get exports(){return _D},set exports(i){_D=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(y2),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(c){var P;return P=h.call(this,c)||this,P.type=o.UNIVERSAL,P.value="*",P}return e}(n.default);t.default=$,i.exports=t.default})(yfe,_D);var mD={},bfe={get exports(){return mD},set exports(i){mD=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(Cg),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(c){var P;return P=h.call(this,c)||this,P.type=o.COMBINATOR,P}return e}(n.default);t.default=$,i.exports=t.default})(bfe,mD);var gD={},Sfe={get exports(){return gD},set exports(i){gD=i}};(function(i,t){t.__esModule=!0,t.default=void 0;var n=l(Cg),o=Us;function l(h){return h&&h.__esModule?h:{default:h}}function d(h,e){h.prototype=Object.create(e.prototype),h.prototype.constructor=h,m(h,e)}function m(h,e){return m=Object.setPrototypeOf||function(P,T){return P.__proto__=T,P},m(h,e)}var $=function(h){d(e,h);function e(c){var P;return P=h.call(this,c)||this,P.type=o.NESTING,P.value="&",P}return e}(n.default);t.default=$,i.exports=t.default})(Sfe,gD);var fC={},Dfe={get exports(){return fC},set exports(i){fC=i}};(function(i,t){t.__esModule=!0,t.default=n;function n(o){return o.sort(function(l,d){return l-d})}i.exports=t.default})(Dfe,fC);var wU={},yo={};yo.__esModule=!0;yo.combinator=yo.word=yo.comment=yo.str=yo.tab=yo.newline=yo.feed=yo.cr=yo.backslash=yo.bang=yo.slash=yo.doubleQuote=yo.singleQuote=yo.space=yo.greaterThan=yo.pipe=yo.equals=yo.plus=yo.caret=yo.tilde=yo.dollar=yo.closeSquare=yo.openSquare=yo.closeParenthesis=yo.openParenthesis=yo.semicolon=yo.colon=yo.comma=yo.at=yo.asterisk=yo.ampersand=void 0;var xfe=38;yo.ampersand=xfe;var Tfe=42;yo.asterisk=Tfe;var Efe=64;yo.at=Efe;var Cfe=44;yo.comma=Cfe;var kfe=58;yo.colon=kfe;var Afe=59;yo.semicolon=Afe;var Pfe=40;yo.openParenthesis=Pfe;var wfe=41;yo.closeParenthesis=wfe;var Nfe=91;yo.openSquare=Nfe;var Ife=93;yo.closeSquare=Ife;var Ofe=36;yo.dollar=Ofe;var Mfe=126;yo.tilde=Mfe;var Ffe=94;yo.caret=Ffe;var Lfe=43;yo.plus=Lfe;var Rfe=61;yo.equals=Rfe;var Bfe=124;yo.pipe=Bfe;var jfe=62;yo.greaterThan=jfe;var Jfe=32;yo.space=Jfe;var NU=39;yo.singleQuote=NU;var Ufe=34;yo.doubleQuote=Ufe;var Vfe=47;yo.slash=Vfe;var zfe=33;yo.bang=zfe;var Wfe=92;yo.backslash=Wfe;var qfe=13;yo.cr=qfe;var $fe=12;yo.feed=$fe;var Hfe=10;yo.newline=Hfe;var Gfe=9;yo.tab=Gfe;var Kfe=NU;yo.str=Kfe;var Qfe=-1;yo.comment=Qfe;var Xfe=-2;yo.word=Xfe;var Yfe=-3;yo.combinator=Yfe;(function(i){i.__esModule=!0,i.default=D,i.FIELDS=void 0;var t=d(yo),n,o;function l(){if(typeof WeakMap!="function")return null;var O=new WeakMap;return l=function(){return O},O}function d(O){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var W=l();if(W&&W.has(O))return W.get(O);var E={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in O)if(Object.prototype.hasOwnProperty.call(O,S)){var te=v?Object.getOwnPropertyDescriptor(O,S):null;te&&(te.get||te.set)?Object.defineProperty(E,S,te):E[S]=O[S]}return E.default=O,W&&W.set(O,E),E}for(var m=(n={},n[t.tab]=!0,n[t.newline]=!0,n[t.cr]=!0,n[t.feed]=!0,n),$=(o={},o[t.space]=!0,o[t.tab]=!0,o[t.newline]=!0,o[t.cr]=!0,o[t.feed]=!0,o[t.ampersand]=!0,o[t.asterisk]=!0,o[t.bang]=!0,o[t.comma]=!0,o[t.colon]=!0,o[t.semicolon]=!0,o[t.openParenthesis]=!0,o[t.closeParenthesis]=!0,o[t.openSquare]=!0,o[t.closeSquare]=!0,o[t.singleQuote]=!0,o[t.doubleQuote]=!0,o[t.plus]=!0,o[t.pipe]=!0,o[t.tilde]=!0,o[t.greaterThan]=!0,o[t.equals]=!0,o[t.dollar]=!0,o[t.caret]=!0,o[t.slash]=!0,o),h={},e="0123456789abcdefABCDEF",c=0;c<e.length;c++)h[e.charCodeAt(c)]=!0;function P(O,W){var E=W,v;do{if(v=O.charCodeAt(E),$[v])return E-1;v===t.backslash?E=T(O,E)+1:E++}while(E<O.length);return E-1}function T(O,W){var E=W,v=O.charCodeAt(E+1);if(!m[v])if(h[v]){var S=0;do E++,S++,v=O.charCodeAt(E+1);while(h[v]&&S<6);S<6&&v===t.space&&E++}else E++;return E}var s={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};i.FIELDS=s;function D(O){var W=[],E=O.css.valueOf(),v=E,S=v.length,te=-1,Y=1,Z=0,ce=0,k,X,A,y,C,B,F,z,ge,Pe,fe,_e,ne;function oe(w,re){if(O.safe)E+=re,ge=E.length-1;else throw O.error("Unclosed "+w,Y,Z-te,Z)}for(;Z<S;){switch(k=E.charCodeAt(Z),k===t.newline&&(te=Z,Y+=1),k){case t.space:case t.tab:case t.newline:case t.cr:case t.feed:ge=Z;do ge+=1,k=E.charCodeAt(ge),k===t.newline&&(te=ge,Y+=1);while(k===t.space||k===t.newline||k===t.tab||k===t.cr||k===t.feed);ne=t.space,y=Y,A=ge-te-1,ce=ge;break;case t.plus:case t.greaterThan:case t.tilde:case t.pipe:ge=Z;do ge+=1,k=E.charCodeAt(ge);while(k===t.plus||k===t.greaterThan||k===t.tilde||k===t.pipe);ne=t.combinator,y=Y,A=Z-te,ce=ge;break;case t.asterisk:case t.ampersand:case t.bang:case t.comma:case t.equals:case t.dollar:case t.caret:case t.openSquare:case t.closeSquare:case t.colon:case t.semicolon:case t.openParenthesis:case t.closeParenthesis:ge=Z,ne=k,y=Y,A=Z-te,ce=ge+1;break;case t.singleQuote:case t.doubleQuote:_e=k===t.singleQuote?"'":'"',ge=Z;do for(C=!1,ge=E.indexOf(_e,ge+1),ge===-1&&oe("quote",_e),B=ge;E.charCodeAt(B-1)===t.backslash;)B-=1,C=!C;while(C);ne=t.str,y=Y,A=Z-te,ce=ge+1;break;default:k===t.slash&&E.charCodeAt(Z+1)===t.asterisk?(ge=E.indexOf("*/",Z+2)+1,ge===0&&oe("comment","*/"),X=E.slice(Z,ge+1),z=X.split(`
`),F=z.length-1,F>0?(Pe=Y+F,fe=ge-z[F].length):(Pe=Y,fe=te),ne=t.comment,Y=Pe,y=Pe,A=ge-fe):k===t.slash?(ge=Z,ne=k,y=Y,A=Z-te,ce=ge+1):(ge=P(E,Z),ne=t.word,y=Y,A=ge-te),ce=ge+1;break}W.push([ne,Y,Z-te,y,A,Z,ce]),fe&&(te=fe,fe=null),Z=ce}return W}})(wU);(function(i,t){t.__esModule=!0,t.default=void 0;var n=ce(aD),o=ce(sD),l=ce(cD),d=ce(uD),m=ce(lD),$=ce(fD),h=ce(pD),e=ce(dD),c=Z(r3),P=ce(_D),T=ce(mD),s=ce(gD),D=ce(fC),O=Z(wU),W=Z(yo),E=Z(Us),v=w_,S,te;function Y(){if(typeof WeakMap!="function")return null;var oe=new WeakMap;return Y=function(){return oe},oe}function Z(oe){if(oe&&oe.__esModule)return oe;if(oe===null||typeof oe!="object"&&typeof oe!="function")return{default:oe};var w=Y();if(w&&w.has(oe))return w.get(oe);var re={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in oe)if(Object.prototype.hasOwnProperty.call(oe,U)){var H=M?Object.getOwnPropertyDescriptor(oe,U):null;H&&(H.get||H.set)?Object.defineProperty(re,U,H):re[U]=oe[U]}return re.default=oe,w&&w.set(oe,re),re}function ce(oe){return oe&&oe.__esModule?oe:{default:oe}}function k(oe,w){for(var re=0;re<w.length;re++){var M=w[re];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(oe,M.key,M)}}function X(oe,w,re){return w&&k(oe.prototype,w),re&&k(oe,re),oe}var A=(S={},S[W.space]=!0,S[W.cr]=!0,S[W.feed]=!0,S[W.newline]=!0,S[W.tab]=!0,S),y=Object.assign({},A,(te={},te[W.comment]=!0,te));function C(oe){return{line:oe[O.FIELDS.START_LINE],column:oe[O.FIELDS.START_COL]}}function B(oe){return{line:oe[O.FIELDS.END_LINE],column:oe[O.FIELDS.END_COL]}}function F(oe,w,re,M){return{start:{line:oe,column:w},end:{line:re,column:M}}}function z(oe){return F(oe[O.FIELDS.START_LINE],oe[O.FIELDS.START_COL],oe[O.FIELDS.END_LINE],oe[O.FIELDS.END_COL])}function ge(oe,w){if(oe)return F(oe[O.FIELDS.START_LINE],oe[O.FIELDS.START_COL],w[O.FIELDS.END_LINE],w[O.FIELDS.END_COL])}function Pe(oe,w){var re=oe[w];if(typeof re=="string")return re.indexOf("\\")!==-1&&((0,v.ensureObject)(oe,"raws"),oe[w]=(0,v.unesc)(re),oe.raws[w]===void 0&&(oe.raws[w]=re)),oe}function fe(oe,w){for(var re=-1,M=[];(re=oe.indexOf(w,re+1))!==-1;)M.push(re);return M}function _e(){var oe=Array.prototype.concat.apply([],arguments);return oe.filter(function(w,re){return re===oe.indexOf(w)})}var ne=function(){function oe(re,M){M===void 0&&(M={}),this.rule=re,this.options=Object.assign({lossy:!1,safe:!1},M),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,O.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var U=ge(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new n.default({source:U}),this.root.errorGenerator=this._errorGenerator();var H=new o.default({source:{start:{line:1,column:1}}});this.root.append(H),this.current=H,this.loop()}var w=oe.prototype;return w._errorGenerator=function(){var M=this;return function(U,H){return typeof M.rule=="string"?new Error(U):M.rule.error(U,H)}},w.attribute=function(){var M=[],U=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[O.FIELDS.TYPE]!==W.closeSquare;)M.push(this.currToken),this.position++;if(this.currToken[O.FIELDS.TYPE]!==W.closeSquare)return this.expected("closing square bracket",this.currToken[O.FIELDS.START_POS]);var H=M.length,q={source:F(U[1],U[2],this.currToken[3],this.currToken[4]),sourceIndex:U[O.FIELDS.START_POS]};if(H===1&&!~[W.word].indexOf(M[0][O.FIELDS.TYPE]))return this.expected("attribute",M[0][O.FIELDS.START_POS]);for(var R=0,K="",I="",he=null,le=!1;R<H;){var ee=M[R],J=this.content(ee),de=M[R+1];switch(ee[O.FIELDS.TYPE]){case W.space:if(le=!0,this.options.lossy)break;if(he){(0,v.ensureObject)(q,"spaces",he);var De=q.spaces[he].after||"";q.spaces[he].after=De+J;var N=(0,v.getProp)(q,"raws","spaces",he,"after")||null;N&&(q.raws.spaces[he].after=N+J)}else K=K+J,I=I+J;break;case W.asterisk:if(de[O.FIELDS.TYPE]===W.equals)q.operator=J,he="operator";else if((!q.namespace||he==="namespace"&&!le)&&de){K&&((0,v.ensureObject)(q,"spaces","attribute"),q.spaces.attribute.before=K,K=""),I&&((0,v.ensureObject)(q,"raws","spaces","attribute"),q.raws.spaces.attribute.before=K,I=""),q.namespace=(q.namespace||"")+J;var b=(0,v.getProp)(q,"raws","namespace")||null;b&&(q.raws.namespace+=J),he="namespace"}le=!1;break;case W.dollar:if(he==="value"){var Q=(0,v.getProp)(q,"raws","value");q.value+="$",Q&&(q.raws.value=Q+"$");break}case W.caret:de[O.FIELDS.TYPE]===W.equals&&(q.operator=J,he="operator"),le=!1;break;case W.combinator:if(J==="~"&&de[O.FIELDS.TYPE]===W.equals&&(q.operator=J,he="operator"),J!=="|"){le=!1;break}de[O.FIELDS.TYPE]===W.equals?(q.operator=J,he="operator"):!q.namespace&&!q.attribute&&(q.namespace=!0),le=!1;break;case W.word:if(de&&this.content(de)==="|"&&M[R+2]&&M[R+2][O.FIELDS.TYPE]!==W.equals&&!q.operator&&!q.namespace)q.namespace=J,he="namespace";else if(!q.attribute||he==="attribute"&&!le){K&&((0,v.ensureObject)(q,"spaces","attribute"),q.spaces.attribute.before=K,K=""),I&&((0,v.ensureObject)(q,"raws","spaces","attribute"),q.raws.spaces.attribute.before=I,I=""),q.attribute=(q.attribute||"")+J;var G=(0,v.getProp)(q,"raws","attribute")||null;G&&(q.raws.attribute+=J),he="attribute"}else if(!q.value&&q.value!==""||he==="value"&&!(le||q.quoteMark)){var ae=(0,v.unesc)(J),Te=(0,v.getProp)(q,"raws","value")||"",Ne=q.value||"";q.value=Ne+ae,q.quoteMark=null,(ae!==J||Te)&&((0,v.ensureObject)(q,"raws"),q.raws.value=(Te||Ne)+J),he="value"}else{var we=J==="i"||J==="I";(q.value||q.value==="")&&(q.quoteMark||le)?(q.insensitive=we,(!we||J==="I")&&((0,v.ensureObject)(q,"raws"),q.raws.insensitiveFlag=J),he="insensitive",K&&((0,v.ensureObject)(q,"spaces","insensitive"),q.spaces.insensitive.before=K,K=""),I&&((0,v.ensureObject)(q,"raws","spaces","insensitive"),q.raws.spaces.insensitive.before=I,I="")):(q.value||q.value==="")&&(he="value",q.value+=J,q.raws.value&&(q.raws.value+=J))}le=!1;break;case W.str:if(!q.attribute||!q.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:ee[O.FIELDS.START_POS]});var nr=(0,c.unescapeValue)(J),tr=nr.unescaped,me=nr.quoteMark;q.value=tr,q.quoteMark=me,he="value",(0,v.ensureObject)(q,"raws"),q.raws.value=J,le=!1;break;case W.equals:if(!q.attribute)return this.expected("attribute",ee[O.FIELDS.START_POS],J);if(q.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:ee[O.FIELDS.START_POS]});q.operator=q.operator?q.operator+J:J,he="operator",le=!1;break;case W.comment:if(he)if(le||de&&de[O.FIELDS.TYPE]===W.space||he==="insensitive"){var He=(0,v.getProp)(q,"spaces",he,"after")||"",rr=(0,v.getProp)(q,"raws","spaces",he,"after")||He;(0,v.ensureObject)(q,"raws","spaces",he),q.raws.spaces[he].after=rr+J}else{var je=q[he]||"",Ce=(0,v.getProp)(q,"raws",he)||je;(0,v.ensureObject)(q,"raws"),q.raws[he]=Ce+J}else I=I+J;break;default:return this.error('Unexpected "'+J+'" found.',{index:ee[O.FIELDS.START_POS]})}R++}Pe(q,"attribute"),Pe(q,"namespace"),this.newNode(new c.default(q)),this.position++},w.parseWhitespaceEquivalentTokens=function(M){M<0&&(M=this.tokens.length);var U=this.position,H=[],q="",R=void 0;do if(A[this.currToken[O.FIELDS.TYPE]])this.options.lossy||(q+=this.content());else if(this.currToken[O.FIELDS.TYPE]===W.comment){var K={};q&&(K.before=q,q=""),R=new d.default({value:this.content(),source:z(this.currToken),sourceIndex:this.currToken[O.FIELDS.START_POS],spaces:K}),H.push(R)}while(++this.position<M);if(q){if(R)R.spaces.after=q;else if(!this.options.lossy){var I=this.tokens[U],he=this.tokens[this.position-1];H.push(new h.default({value:"",source:F(I[O.FIELDS.START_LINE],I[O.FIELDS.START_COL],he[O.FIELDS.END_LINE],he[O.FIELDS.END_COL]),sourceIndex:I[O.FIELDS.START_POS],spaces:{before:q,after:""}}))}}return H},w.convertWhitespaceNodesToSpace=function(M,U){var H=this;U===void 0&&(U=!1);var q="",R="";M.forEach(function(I){var he=H.lossySpace(I.spaces.before,U),le=H.lossySpace(I.rawSpaceBefore,U);q+=he+H.lossySpace(I.spaces.after,U&&he.length===0),R+=he+I.value+H.lossySpace(I.rawSpaceAfter,U&&le.length===0)}),R===q&&(R=void 0);var K={space:q,rawSpace:R};return K},w.isNamedCombinator=function(M){return M===void 0&&(M=this.position),this.tokens[M+0]&&this.tokens[M+0][O.FIELDS.TYPE]===W.slash&&this.tokens[M+1]&&this.tokens[M+1][O.FIELDS.TYPE]===W.word&&this.tokens[M+2]&&this.tokens[M+2][O.FIELDS.TYPE]===W.slash},w.namedCombinator=function(){if(this.isNamedCombinator()){var M=this.content(this.tokens[this.position+1]),U=(0,v.unesc)(M).toLowerCase(),H={};U!==M&&(H.value="/"+M+"/");var q=new T.default({value:"/"+U+"/",source:F(this.currToken[O.FIELDS.START_LINE],this.currToken[O.FIELDS.START_COL],this.tokens[this.position+2][O.FIELDS.END_LINE],this.tokens[this.position+2][O.FIELDS.END_COL]),sourceIndex:this.currToken[O.FIELDS.START_POS],raws:H});return this.position=this.position+3,q}else this.unexpected()},w.combinator=function(){var M=this;if(this.content()==="|")return this.namespace();var U=this.locateNextMeaningfulToken(this.position);if(U<0||this.tokens[U][O.FIELDS.TYPE]===W.comma){var H=this.parseWhitespaceEquivalentTokens(U);if(H.length>0){var q=this.current.last;if(q){var R=this.convertWhitespaceNodesToSpace(H),K=R.space,I=R.rawSpace;I!==void 0&&(q.rawSpaceAfter+=I),q.spaces.after+=K}else H.forEach(function(Te){return M.newNode(Te)})}return}var he=this.currToken,le=void 0;U>this.position&&(le=this.parseWhitespaceEquivalentTokens(U));var ee;if(this.isNamedCombinator()?ee=this.namedCombinator():this.currToken[O.FIELDS.TYPE]===W.combinator?(ee=new T.default({value:this.content(),source:z(this.currToken),sourceIndex:this.currToken[O.FIELDS.START_POS]}),this.position++):A[this.currToken[O.FIELDS.TYPE]]||le||this.unexpected(),ee){if(le){var J=this.convertWhitespaceNodesToSpace(le),de=J.space,De=J.rawSpace;ee.spaces.before=de,ee.rawSpaceBefore=De}}else{var N=this.convertWhitespaceNodesToSpace(le,!0),b=N.space,Q=N.rawSpace;Q||(Q=b);var G={},ae={spaces:{}};b.endsWith(" ")&&Q.endsWith(" ")?(G.before=b.slice(0,b.length-1),ae.spaces.before=Q.slice(0,Q.length-1)):b.startsWith(" ")&&Q.startsWith(" ")?(G.after=b.slice(1),ae.spaces.after=Q.slice(1)):ae.value=Q,ee=new T.default({value:" ",source:ge(he,this.tokens[this.position-1]),sourceIndex:he[O.FIELDS.START_POS],spaces:G,raws:ae})}return this.currToken&&this.currToken[O.FIELDS.TYPE]===W.space&&(ee.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(ee)},w.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var M=new o.default({source:{start:C(this.tokens[this.position+1])}});this.current.parent.append(M),this.current=M,this.position++},w.comment=function(){var M=this.currToken;this.newNode(new d.default({value:this.content(),source:z(M),sourceIndex:M[O.FIELDS.START_POS]})),this.position++},w.error=function(M,U){throw this.root.error(M,U)},w.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[O.FIELDS.START_POS]})},w.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[O.FIELDS.START_POS])},w.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[O.FIELDS.START_POS])},w.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[O.FIELDS.START_POS])},w.namespace=function(){var M=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[O.FIELDS.TYPE]===W.word)return this.position++,this.word(M);if(this.nextToken[O.FIELDS.TYPE]===W.asterisk)return this.position++,this.universal(M)},w.nesting=function(){if(this.nextToken){var M=this.content(this.nextToken);if(M==="|"){this.position++;return}}var U=this.currToken;this.newNode(new s.default({value:this.content(),source:z(U),sourceIndex:U[O.FIELDS.START_POS]})),this.position++},w.parentheses=function(){var M=this.current.last,U=1;if(this.position++,M&&M.type===E.PSEUDO){var H=new o.default({source:{start:C(this.tokens[this.position-1])}}),q=this.current;for(M.append(H),this.current=H;this.position<this.tokens.length&&U;)this.currToken[O.FIELDS.TYPE]===W.openParenthesis&&U++,this.currToken[O.FIELDS.TYPE]===W.closeParenthesis&&U--,U?this.parse():(this.current.source.end=B(this.currToken),this.current.parent.source.end=B(this.currToken),this.position++);this.current=q}else{for(var R=this.currToken,K="(",I;this.position<this.tokens.length&&U;)this.currToken[O.FIELDS.TYPE]===W.openParenthesis&&U++,this.currToken[O.FIELDS.TYPE]===W.closeParenthesis&&U--,I=this.currToken,K+=this.parseParenthesisToken(this.currToken),this.position++;M?M.appendToPropertyAndEscape("value",K,K):this.newNode(new h.default({value:K,source:F(R[O.FIELDS.START_LINE],R[O.FIELDS.START_COL],I[O.FIELDS.END_LINE],I[O.FIELDS.END_COL]),sourceIndex:R[O.FIELDS.START_POS]}))}if(U)return this.expected("closing parenthesis",this.currToken[O.FIELDS.START_POS])},w.pseudo=function(){for(var M=this,U="",H=this.currToken;this.currToken&&this.currToken[O.FIELDS.TYPE]===W.colon;)U+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[O.FIELDS.TYPE]===W.word)this.splitWord(!1,function(q,R){U+=q,M.newNode(new e.default({value:U,source:ge(H,M.currToken),sourceIndex:H[O.FIELDS.START_POS]})),R>1&&M.nextToken&&M.nextToken[O.FIELDS.TYPE]===W.openParenthesis&&M.error("Misplaced parenthesis.",{index:M.nextToken[O.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[O.FIELDS.START_POS])},w.space=function(){var M=this.content();this.position===0||this.prevToken[O.FIELDS.TYPE]===W.comma||this.prevToken[O.FIELDS.TYPE]===W.openParenthesis||this.current.nodes.every(function(U){return U.type==="comment"})?(this.spaces=this.optionalSpace(M),this.position++):this.position===this.tokens.length-1||this.nextToken[O.FIELDS.TYPE]===W.comma||this.nextToken[O.FIELDS.TYPE]===W.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(M),this.position++):this.combinator()},w.string=function(){var M=this.currToken;this.newNode(new h.default({value:this.content(),source:z(M),sourceIndex:M[O.FIELDS.START_POS]})),this.position++},w.universal=function(M){var U=this.nextToken;if(U&&this.content(U)==="|")return this.position++,this.namespace();var H=this.currToken;this.newNode(new P.default({value:this.content(),source:z(H),sourceIndex:H[O.FIELDS.START_POS]}),M),this.position++},w.splitWord=function(M,U){for(var H=this,q=this.nextToken,R=this.content();q&&~[W.dollar,W.caret,W.equals,W.word].indexOf(q[O.FIELDS.TYPE]);){this.position++;var K=this.content();if(R+=K,K.lastIndexOf("\\")===K.length-1){var I=this.nextToken;I&&I[O.FIELDS.TYPE]===W.space&&(R+=this.requiredSpace(this.content(I)),this.position++)}q=this.nextToken}var he=fe(R,".").filter(function(de){var De=R[de-1]==="\\",N=/^\d+\.\d+%$/.test(R);return!De&&!N}),le=fe(R,"#").filter(function(de){return R[de-1]!=="\\"}),ee=fe(R,"#{");ee.length&&(le=le.filter(function(de){return!~ee.indexOf(de)}));var J=(0,D.default)(_e([0].concat(he,le)));J.forEach(function(de,De){var N=J[De+1]||R.length,b=R.slice(de,N);if(De===0&&U)return U.call(H,b,J.length);var Q,G=H.currToken,ae=G[O.FIELDS.START_POS]+J[De],Te=F(G[1],G[2]+de,G[3],G[2]+(N-1));if(~he.indexOf(de)){var Ne={value:b.slice(1),source:Te,sourceIndex:ae};Q=new l.default(Pe(Ne,"value"))}else if(~le.indexOf(de)){var we={value:b.slice(1),source:Te,sourceIndex:ae};Q=new m.default(Pe(we,"value"))}else{var nr={value:b,source:Te,sourceIndex:ae};Pe(nr,"value"),Q=new $.default(nr)}H.newNode(Q,M),M=null}),this.position++},w.word=function(M){var U=this.nextToken;return U&&this.content(U)==="|"?(this.position++,this.namespace()):this.splitWord(M)},w.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},w.parse=function(M){switch(this.currToken[O.FIELDS.TYPE]){case W.space:this.space();break;case W.comment:this.comment();break;case W.openParenthesis:this.parentheses();break;case W.closeParenthesis:M&&this.missingParenthesis();break;case W.openSquare:this.attribute();break;case W.dollar:case W.caret:case W.equals:case W.word:this.word();break;case W.colon:this.pseudo();break;case W.comma:this.comma();break;case W.asterisk:this.universal();break;case W.ampersand:this.nesting();break;case W.slash:case W.combinator:this.combinator();break;case W.str:this.string();break;case W.closeSquare:this.missingSquareBracket();case W.semicolon:this.missingBackslash();default:this.unexpected()}},w.expected=function(M,U,H){if(Array.isArray(M)){var q=M.pop();M=M.join(", ")+" or "+q}var R=/^[aeiou]/.test(M[0])?"an":"a";return H?this.error("Expected "+R+" "+M+', found "'+H+'" instead.',{index:U}):this.error("Expected "+R+" "+M+".",{index:U})},w.requiredSpace=function(M){return this.options.lossy?" ":M},w.optionalSpace=function(M){return this.options.lossy?"":M},w.lossySpace=function(M,U){return this.options.lossy?U?" ":"":M},w.parseParenthesisToken=function(M){var U=this.content(M);return M[O.FIELDS.TYPE]===W.space?this.requiredSpace(U):U},w.newNode=function(M,U){return U&&(/^ +$/.test(U)&&(this.options.lossy||(this.spaces=(this.spaces||"")+U),U=!0),M.namespace=U,Pe(M,"namespace")),this.spaces&&(M.spaces.before=this.spaces,this.spaces=""),this.current.append(M)},w.content=function(M){return M===void 0&&(M=this.currToken),this.css.slice(M[O.FIELDS.START_POS],M[O.FIELDS.END_POS])},w.locateNextMeaningfulToken=function(M){M===void 0&&(M=this.position+1);for(var U=M;U<this.tokens.length;)if(y[this.tokens[U][O.FIELDS.TYPE]]){U++;continue}else return U;return-1},X(oe,[{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]}}]),oe}();t.default=ne,i.exports=t.default})(Mle,sC);(function(i,t){t.__esModule=!0,t.default=void 0;var n=o(sC);function o(d){return d&&d.__esModule?d:{default:d}}var l=function(){function d($,h){this.func=$||function(){},this.funcRes=null,this.options=h}var m=d.prototype;return m._shouldUpdateSelector=function(h,e){e===void 0&&(e={});var c=Object.assign({},this.options,e);return c.updateSelector===!1?!1:typeof h!="string"},m._isLossy=function(h){h===void 0&&(h={});var e=Object.assign({},this.options,h);return e.lossless===!1},m._root=function(h,e){e===void 0&&(e={});var c=new n.default(h,this._parseOptions(e));return c.root},m._parseOptions=function(h){return{lossy:this._isLossy(h)}},m._run=function(h,e){var c=this;return e===void 0&&(e={}),new Promise(function(P,T){try{var s=c._root(h,e);Promise.resolve(c.func(s)).then(function(D){var O=void 0;return c._shouldUpdateSelector(h,e)&&(O=s.toString(),h.selector=O),{transform:D,root:s,string:O}}).then(P,T)}catch(D){T(D);return}})},m._runSync=function(h,e){e===void 0&&(e={});var c=this._root(h,e),P=this.func(c);if(P&&typeof P.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var T=void 0;return e.updateSelector&&typeof h!="string"&&(T=c.toString(),h.selector=T),{transform:P,root:c,string:T}},m.ast=function(h,e){return this._run(h,e).then(function(c){return c.root})},m.astSync=function(h,e){return this._runSync(h,e).root},m.transform=function(h,e){return this._run(h,e).then(function(c){return c.transform})},m.transformSync=function(h,e){return this._runSync(h,e).transform},m.process=function(h,e){return this._run(h,e).then(function(c){return c.string||c.root.toString()})},m.processSync=function(h,e){var c=this._runSync(h,e);return c.string||c.root.toString()},d}();t.default=l,i.exports=t.default})(Ole,oC);var IU={},Au={};Au.__esModule=!0;Au.universal=Au.tag=Au.string=Au.selector=Au.root=Au.pseudo=Au.nesting=Au.id=Au.comment=Au.combinator=Au.className=Au.attribute=void 0;var Zfe=Im(r3),epe=Im(cD),rpe=Im(mD),tpe=Im(uD),npe=Im(lD),ipe=Im(gD),ape=Im(dD),ope=Im(aD),spe=Im(sD),cpe=Im(pD),upe=Im(fD),lpe=Im(_D);function Im(i){return i&&i.__esModule?i:{default:i}}var fpe=function(t){return new Zfe.default(t)};Au.attribute=fpe;var ppe=function(t){return new epe.default(t)};Au.className=ppe;var dpe=function(t){return new rpe.default(t)};Au.combinator=dpe;var _pe=function(t){return new tpe.default(t)};Au.comment=_pe;var mpe=function(t){return new npe.default(t)};Au.id=mpe;var gpe=function(t){return new ipe.default(t)};Au.nesting=gpe;var hpe=function(t){return new ape.default(t)};Au.pseudo=hpe;var vpe=function(t){return new ope.default(t)};Au.root=vpe;var ype=function(t){return new spe.default(t)};Au.selector=ype;var bpe=function(t){return new cpe.default(t)};Au.string=bpe;var Spe=function(t){return new upe.default(t)};Au.tag=Spe;var Dpe=function(t){return new lpe.default(t)};Au.universal=Dpe;var Fc={};Fc.__esModule=!0;Fc.isNode=t3;Fc.isPseudoElement=FU;Fc.isPseudoClass=Ope;Fc.isContainer=Mpe;Fc.isNamespace=Fpe;Fc.isUniversal=Fc.isTag=Fc.isString=Fc.isSelector=Fc.isRoot=Fc.isPseudo=Fc.isNesting=Fc.isIdentifier=Fc.isComment=Fc.isCombinator=Fc.isClassName=Fc.isAttribute=void 0;var Xu=Us,Qd,xpe=(Qd={},Qd[Xu.ATTRIBUTE]=!0,Qd[Xu.CLASS]=!0,Qd[Xu.COMBINATOR]=!0,Qd[Xu.COMMENT]=!0,Qd[Xu.ID]=!0,Qd[Xu.NESTING]=!0,Qd[Xu.PSEUDO]=!0,Qd[Xu.ROOT]=!0,Qd[Xu.SELECTOR]=!0,Qd[Xu.STRING]=!0,Qd[Xu.TAG]=!0,Qd[Xu.UNIVERSAL]=!0,Qd);function t3(i){return typeof i=="object"&&xpe[i.type]}function Om(i,t){return t3(t)&&t.type===i}var OU=Om.bind(null,Xu.ATTRIBUTE);Fc.isAttribute=OU;var Tpe=Om.bind(null,Xu.CLASS);Fc.isClassName=Tpe;var Epe=Om.bind(null,Xu.COMBINATOR);Fc.isCombinator=Epe;var Cpe=Om.bind(null,Xu.COMMENT);Fc.isComment=Cpe;var kpe=Om.bind(null,Xu.ID);Fc.isIdentifier=kpe;var Ape=Om.bind(null,Xu.NESTING);Fc.isNesting=Ape;var n3=Om.bind(null,Xu.PSEUDO);Fc.isPseudo=n3;var Ppe=Om.bind(null,Xu.ROOT);Fc.isRoot=Ppe;var wpe=Om.bind(null,Xu.SELECTOR);Fc.isSelector=wpe;var Npe=Om.bind(null,Xu.STRING);Fc.isString=Npe;var MU=Om.bind(null,Xu.TAG);Fc.isTag=MU;var Ipe=Om.bind(null,Xu.UNIVERSAL);Fc.isUniversal=Ipe;function FU(i){return n3(i)&&i.value&&(i.value.startsWith("::")||i.value.toLowerCase()===":before"||i.value.toLowerCase()===":after"||i.value.toLowerCase()===":first-letter"||i.value.toLowerCase()===":first-line")}function Ope(i){return n3(i)&&!FU(i)}function Mpe(i){return!!(t3(i)&&i.walk)}function Fpe(i){return OU(i)||MU(i)}(function(i){i.__esModule=!0;var t=Us;Object.keys(t).forEach(function(l){l==="default"||l==="__esModule"||l in i&&i[l]===t[l]||(i[l]=t[l])});var n=Au;Object.keys(n).forEach(function(l){l==="default"||l==="__esModule"||l in i&&i[l]===n[l]||(i[l]=n[l])});var o=Fc;Object.keys(o).forEach(function(l){l==="default"||l==="__esModule"||l in i&&i[l]===o[l]||(i[l]=o[l])})})(IU);(function(i,t){t.__esModule=!0,t.default=void 0;var n=m(oC),o=d(IU);function l(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return l=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var c=l();if(c&&c.has(e))return c.get(e);var P={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var D=T?Object.getOwnPropertyDescriptor(e,s):null;D&&(D.get||D.set)?Object.defineProperty(P,s,D):P[s]=e[s]}return P.default=e,c&&c.set(e,P),P}function m(e){return e&&e.__esModule?e:{default:e}}var $=function(c){return new n.default(c)};Object.assign($,o),delete $.__esModule;var h=$;t.default=h,i.exports=t.default})(Ile,aC);var OI=ire(aC);const Lpe=/^(-\w+-)?animation-name$/,Rpe=/^(-\w+-)?animation$/,LU=(i="")=>{const t=Object.create(null),n=i.replace(/^data-v-/,"");return{postcssPlugin:"vue-sfc-scoped",Rule(o){Bpe(i,o)},AtRule(o){/-?keyframes$/.test(o.name)&&!o.params.endsWith(`-${n}`)&&(t[o.params]=o.params=o.params+"-"+n)},OnceExit(o){Object.keys(t).length&&o.walkDecls(l=>{Lpe.test(l.prop)&&(l.value=l.value.split(",").map(d=>t[d.trim()]||d.trim()).join(",")),Rpe.test(l.prop)&&(l.value=l.value.split(",").map(d=>{const m=d.trim().split(/\s+/),$=m.findIndex(h=>t[h]);return $!==-1?(m.splice($,1,t[m[$]]),m.join(" ")):d}).join(","))})}}},d9=new WeakSet;function Bpe(i,t){d9.has(t)||t.parent&&t.parent.type==="atrule"&&/-?keyframes$/.test(t.parent.name)||(d9.add(t),t.selector=OI(n=>{n.each(o=>{RU(i,o,n)})}).processSync(t.selector))}function RU(i,t,n,o=!1){let l=null,d=!0;if(t.each(m=>{if(m.type==="combinator"&&(m.value===">>>"||m.value==="/deep/"))return m.value=" ",m.spaces.before=m.spaces.after="",hI("the >>> and /deep/ combinators have been deprecated. Use :deep() instead."),!1;if(m.type==="pseudo"){const{value:$}=m;if($===":deep"||$==="::v-deep"){if(m.nodes.length){let h=m;m.nodes[0].each(c=>{t.insertAfter(h,c),h=c});const e=t.at(t.index(m)-1);(!e||!_9(e))&&t.insertAfter(m,OI.combinator({value:" "})),t.removeChild(m)}else{hI("::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead.");const h=t.at(t.index(m)-1);h&&_9(h)&&t.removeChild(h),t.removeChild(m)}return!1}if($===":slotted"||$==="::v-slotted"){RU(i,m.nodes[0],n,!0);let h=m;return m.nodes[0].each(e=>{t.insertAfter(h,e),h=e}),t.removeChild(m),d=!1,!1}if($===":global"||$==="::v-global")return n.insertAfter(t,m.nodes[0]),n.removeChild(t),!1}m.type!=="pseudo"&&m.type!=="combinator"&&(l=m)}),l?l.spaces.after="":t.first.spaces.before="",d){const m=o?i+"-s":i;t.insertAfter(l,OI.attribute({attribute:m,value:m,raws:{},quoteMark:'"'}))}}function _9(i){return i.type==="combinator"&&/^\s+$/.test(i.value)}LU.postcss=!0;var jpe=LU,yk={},i3={},bk={},a3={},m9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");a3.encode=function(i){if(0<=i&&i<m9.length)return m9[i];throw new TypeError("Must be between 0 and 63: "+i)};a3.decode=function(i){var t=65,n=90,o=97,l=122,d=48,m=57,$=43,h=47,e=26,c=52;return t<=i&&i<=n?i-t:o<=i&&i<=l?i-o+e:d<=i&&i<=m?i-d+c:i==$?62:i==h?63:-1};var BU=a3,o3=5,jU=1<<o3,JU=jU-1,UU=jU;function Jpe(i){return i<0?(-i<<1)+1:(i<<1)+0}function Upe(i){var t=(i&1)===1,n=i>>1;return t?-n:n}bk.encode=function(t){var n="",o,l=Jpe(t);do o=l&JU,l>>>=o3,l>0&&(o|=UU),n+=BU.encode(o);while(l>0);return n};bk.decode=function(t,n,o){var l=t.length,d=0,m=0,$,h;do{if(n>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(h=BU.decode(t.charCodeAt(n++)),h===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));$=!!(h&UU),h&=JU,d=d+(h<<m),m+=o3}while($);o.value=Upe(d),o.rest=n};var R2={};(function(i){function t(te,Y,Z){if(Y in te)return te[Y];if(arguments.length===3)return Z;throw new Error('"'+Y+'" is a required argument.')}i.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function l(te){var Y=te.match(n);return Y?{scheme:Y[1],auth:Y[2],host:Y[3],port:Y[4],path:Y[5]}:null}i.urlParse=l;function d(te){var Y="";return te.scheme&&(Y+=te.scheme+":"),Y+="//",te.auth&&(Y+=te.auth+"@"),te.host&&(Y+=te.host),te.port&&(Y+=":"+te.port),te.path&&(Y+=te.path),Y}i.urlGenerate=d;function m(te){var Y=te,Z=l(te);if(Z){if(!Z.path)return te;Y=Z.path}for(var ce=i.isAbsolute(Y),k=Y.split(/\/+/),X,A=0,y=k.length-1;y>=0;y--)X=k[y],X==="."?k.splice(y,1):X===".."?A++:A>0&&(X===""?(k.splice(y+1,A),A=0):(k.splice(y,2),A--));return Y=k.join("/"),Y===""&&(Y=ce?"/":"."),Z?(Z.path=Y,d(Z)):Y}i.normalize=m;function $(te,Y){te===""&&(te="."),Y===""&&(Y=".");var Z=l(Y),ce=l(te);if(ce&&(te=ce.path||"/"),Z&&!Z.scheme)return ce&&(Z.scheme=ce.scheme),d(Z);if(Z||Y.match(o))return Y;if(ce&&!ce.host&&!ce.path)return ce.host=Y,d(ce);var k=Y.charAt(0)==="/"?Y:m(te.replace(/\/+$/,"")+"/"+Y);return ce?(ce.path=k,d(ce)):k}i.join=$,i.isAbsolute=function(te){return te.charAt(0)==="/"||n.test(te)};function h(te,Y){te===""&&(te="."),te=te.replace(/\/$/,"");for(var Z=0;Y.indexOf(te+"/")!==0;){var ce=te.lastIndexOf("/");if(ce<0||(te=te.slice(0,ce),te.match(/^([^\/]+:\/)?\/*$/)))return Y;++Z}return Array(Z+1).join("../")+Y.substr(te.length+1)}i.relative=h;var e=function(){var te=Object.create(null);return!("__proto__"in te)}();function c(te){return te}function P(te){return s(te)?"$"+te:te}i.toSetString=e?c:P;function T(te){return s(te)?te.slice(1):te}i.fromSetString=e?c:T;function s(te){if(!te)return!1;var Y=te.length;if(Y<9||te.charCodeAt(Y-1)!==95||te.charCodeAt(Y-2)!==95||te.charCodeAt(Y-3)!==111||te.charCodeAt(Y-4)!==116||te.charCodeAt(Y-5)!==111||te.charCodeAt(Y-6)!==114||te.charCodeAt(Y-7)!==112||te.charCodeAt(Y-8)!==95||te.charCodeAt(Y-9)!==95)return!1;for(var Z=Y-10;Z>=0;Z--)if(te.charCodeAt(Z)!==36)return!1;return!0}function D(te,Y,Z){var ce=W(te.source,Y.source);return ce!==0||(ce=te.originalLine-Y.originalLine,ce!==0)||(ce=te.originalColumn-Y.originalColumn,ce!==0||Z)||(ce=te.generatedColumn-Y.generatedColumn,ce!==0)||(ce=te.generatedLine-Y.generatedLine,ce!==0)?ce:W(te.name,Y.name)}i.compareByOriginalPositions=D;function O(te,Y,Z){var ce=te.generatedLine-Y.generatedLine;return ce!==0||(ce=te.generatedColumn-Y.generatedColumn,ce!==0||Z)||(ce=W(te.source,Y.source),ce!==0)||(ce=te.originalLine-Y.originalLine,ce!==0)||(ce=te.originalColumn-Y.originalColumn,ce!==0)?ce:W(te.name,Y.name)}i.compareByGeneratedPositionsDeflated=O;function W(te,Y){return te===Y?0:te===null?1:Y===null?-1:te>Y?1:-1}function E(te,Y){var Z=te.generatedLine-Y.generatedLine;return Z!==0||(Z=te.generatedColumn-Y.generatedColumn,Z!==0)||(Z=W(te.source,Y.source),Z!==0)||(Z=te.originalLine-Y.originalLine,Z!==0)||(Z=te.originalColumn-Y.originalColumn,Z!==0)?Z:W(te.name,Y.name)}i.compareByGeneratedPositionsInflated=E;function v(te){return JSON.parse(te.replace(/^\)]}'[^\n]*\n/,""))}i.parseSourceMapInput=v;function S(te,Y,Z){if(Y=Y||"",te&&(te[te.length-1]!=="/"&&Y[0]!=="/"&&(te+="/"),Y=te+Y),Z){var ce=l(Z);if(!ce)throw new Error("sourceMapURL could not be parsed");if(ce.path){var k=ce.path.lastIndexOf("/");k>=0&&(ce.path=ce.path.substring(0,k+1))}Y=$(d(ce),Y)}return m(Y)}i.computeSourceURL=S})(R2);var s3={},c3=R2,u3=Object.prototype.hasOwnProperty,A1=typeof Map<"u";function bv(){this._array=[],this._set=A1?new Map:Object.create(null)}bv.fromArray=function(t,n){for(var o=new bv,l=0,d=t.length;l<d;l++)o.add(t[l],n);return o};bv.prototype.size=function(){return A1?this._set.size:Object.getOwnPropertyNames(this._set).length};bv.prototype.add=function(t,n){var o=A1?t:c3.toSetString(t),l=A1?this.has(t):u3.call(this._set,o),d=this._array.length;(!l||n)&&this._array.push(t),l||(A1?this._set.set(t,d):this._set[o]=d)};bv.prototype.has=function(t){if(A1)return this._set.has(t);var n=c3.toSetString(t);return u3.call(this._set,n)};bv.prototype.indexOf=function(t){if(A1){var n=this._set.get(t);if(n>=0)return n}else{var o=c3.toSetString(t);if(u3.call(this._set,o))return this._set[o]}throw new Error('"'+t+'" is not in the set.')};bv.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};bv.prototype.toArray=function(){return this._array.slice()};s3.ArraySet=bv;var VU={},zU=R2;function Vpe(i,t){var n=i.generatedLine,o=t.generatedLine,l=i.generatedColumn,d=t.generatedColumn;return o>n||o==n&&d>=l||zU.compareByGeneratedPositionsInflated(i,t)<=0}function Sk(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Sk.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Sk.prototype.add=function(t){Vpe(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Sk.prototype.toArray=function(){return this._sorted||(this._array.sort(zU.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};VU.MappingList=Sk;var _S=bk,Gl=R2,pC=s3.ArraySet,zpe=VU.MappingList;function Nm(i){i||(i={}),this._file=Gl.getArg(i,"file",null),this._sourceRoot=Gl.getArg(i,"sourceRoot",null),this._skipValidation=Gl.getArg(i,"skipValidation",!1),this._sources=new pC,this._names=new pC,this._mappings=new zpe,this._sourcesContents=null}Nm.prototype._version=3;Nm.fromSourceMap=function(t){var n=t.sourceRoot,o=new Nm({file:t.file,sourceRoot:n});return t.eachMapping(function(l){var d={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(d.source=l.source,n!=null&&(d.source=Gl.relative(n,d.source)),d.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(d.name=l.name)),o.addMapping(d)}),t.sources.forEach(function(l){var d=l;n!==null&&(d=Gl.relative(n,l)),o._sources.has(d)||o._sources.add(d);var m=t.sourceContentFor(l);m!=null&&o.setSourceContent(l,m)}),o};Nm.prototype.addMapping=function(t){var n=Gl.getArg(t,"generated"),o=Gl.getArg(t,"original",null),l=Gl.getArg(t,"source",null),d=Gl.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,o,l,d),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:o!=null&&o.line,originalColumn:o!=null&&o.column,source:l,name:d})};Nm.prototype.setSourceContent=function(t,n){var o=t;this._sourceRoot!=null&&(o=Gl.relative(this._sourceRoot,o)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Gl.toSetString(o)]=n):this._sourcesContents&&(delete this._sourcesContents[Gl.toSetString(o)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Nm.prototype.applySourceMap=function(t,n,o){var l=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=t.file}var d=this._sourceRoot;d!=null&&(l=Gl.relative(d,l));var m=new pC,$=new pC;this._mappings.unsortedForEach(function(h){if(h.source===l&&h.originalLine!=null){var e=t.originalPositionFor({line:h.originalLine,column:h.originalColumn});e.source!=null&&(h.source=e.source,o!=null&&(h.source=Gl.join(o,h.source)),d!=null&&(h.source=Gl.relative(d,h.source)),h.originalLine=e.line,h.originalColumn=e.column,e.name!=null&&(h.name=e.name))}var c=h.source;c!=null&&!m.has(c)&&m.add(c);var P=h.name;P!=null&&!$.has(P)&&$.add(P)},this),this._sources=m,this._names=$,t.sources.forEach(function(h){var e=t.sourceContentFor(h);e!=null&&(o!=null&&(h=Gl.join(o,h)),d!=null&&(h=Gl.relative(d,h)),this.setSourceContent(h,e))},this)};Nm.prototype._validateMapping=function(t,n,o,l){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!o&&!l)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&o)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:o,original:n,name:l}))}};Nm.prototype._serializeMappings=function(){for(var t=0,n=1,o=0,l=0,d=0,m=0,$="",h,e,c,P,T=this._mappings.toArray(),s=0,D=T.length;s<D;s++){if(e=T[s],h="",e.generatedLine!==n)for(t=0;e.generatedLine!==n;)h+=";",n++;else if(s>0){if(!Gl.compareByGeneratedPositionsInflated(e,T[s-1]))continue;h+=","}h+=_S.encode(e.generatedColumn-t),t=e.generatedColumn,e.source!=null&&(P=this._sources.indexOf(e.source),h+=_S.encode(P-m),m=P,h+=_S.encode(e.originalLine-1-l),l=e.originalLine-1,h+=_S.encode(e.originalColumn-o),o=e.originalColumn,e.name!=null&&(c=this._names.indexOf(e.name),h+=_S.encode(c-d),d=c)),$+=h}return $};Nm.prototype._generateSourcesContent=function(t,n){return t.map(function(o){if(!this._sourcesContents)return null;n!=null&&(o=Gl.relative(n,o));var l=Gl.toSetString(o);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)};Nm.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Nm.prototype.toString=function(){return JSON.stringify(this.toJSON())};i3.SourceMapGenerator=Nm;var Dk={},WU={};(function(i){i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2;function t(n,o,l,d,m,$){var h=Math.floor((o-n)/2)+n,e=m(l,d[h],!0);return e===0?h:e>0?o-h>1?t(h,o,l,d,m,$):$==i.LEAST_UPPER_BOUND?o<d.length?o:-1:h:h-n>1?t(n,h,l,d,m,$):$==i.LEAST_UPPER_BOUND?h:n<0?-1:n}i.search=function(o,l,d,m){if(l.length===0)return-1;var $=t(-1,l.length,o,l,d,m||i.GREATEST_LOWER_BOUND);if($<0)return-1;for(;$-1>=0&&d(l[$],l[$-1],!0)===0;)--$;return $}})(WU);var qU={};function TN(i,t,n){var o=i[t];i[t]=i[n],i[n]=o}function Wpe(i,t){return Math.round(i+Math.random()*(t-i))}function MI(i,t,n,o){if(n<o){var l=Wpe(n,o),d=n-1;TN(i,l,o);for(var m=i[o],$=n;$<o;$++)t(i[$],m)<=0&&(d+=1,TN(i,d,$));TN(i,d+1,$);var h=d+1;MI(i,t,n,h-1),MI(i,t,h+1,o)}}qU.quickSort=function(i,t){MI(i,t,0,i.length-1)};var Eo=R2,l3=WU,b2=s3.ArraySet,qpe=bk,hD=qU.quickSort;function Bu(i,t){var n=i;return typeof i=="string"&&(n=Eo.parseSourceMapInput(i)),n.sections!=null?new Pg(n,t):new up(n,t)}Bu.fromSourceMap=function(i,t){return up.fromSourceMap(i,t)};Bu.prototype._version=3;Bu.prototype.__generatedMappings=null;Object.defineProperty(Bu.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Bu.prototype.__originalMappings=null;Object.defineProperty(Bu.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Bu.prototype._charIsMappingSeparator=function(t,n){var o=t.charAt(n);return o===";"||o===","};Bu.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Bu.GENERATED_ORDER=1;Bu.ORIGINAL_ORDER=2;Bu.GREATEST_LOWER_BOUND=1;Bu.LEAST_UPPER_BOUND=2;Bu.prototype.eachMapping=function(t,n,o){var l=n||null,d=o||Bu.GENERATED_ORDER,m;switch(d){case Bu.GENERATED_ORDER:m=this._generatedMappings;break;case Bu.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var $=this.sourceRoot;m.map(function(h){var e=h.source===null?null:this._sources.at(h.source);return e=Eo.computeSourceURL($,e,this._sourceMapURL),{source:e,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:this._names.at(h.name)}},this).forEach(t,l)};Bu.prototype.allGeneratedPositionsFor=function(t){var n=Eo.getArg(t,"line"),o={source:Eo.getArg(t,"source"),originalLine:n,originalColumn:Eo.getArg(t,"column",0)};if(o.source=this._findSourceIndex(o.source),o.source<0)return[];var l=[],d=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",Eo.compareByOriginalPositions,l3.LEAST_UPPER_BOUND);if(d>=0){var m=this._originalMappings[d];if(t.column===void 0)for(var $=m.originalLine;m&&m.originalLine===$;)l.push({line:Eo.getArg(m,"generatedLine",null),column:Eo.getArg(m,"generatedColumn",null),lastColumn:Eo.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++d];else for(var h=m.originalColumn;m&&m.originalLine===n&&m.originalColumn==h;)l.push({line:Eo.getArg(m,"generatedLine",null),column:Eo.getArg(m,"generatedColumn",null),lastColumn:Eo.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++d]}return l};Dk.SourceMapConsumer=Bu;function up(i,t){var n=i;typeof i=="string"&&(n=Eo.parseSourceMapInput(i));var o=Eo.getArg(n,"version"),l=Eo.getArg(n,"sources"),d=Eo.getArg(n,"names",[]),m=Eo.getArg(n,"sourceRoot",null),$=Eo.getArg(n,"sourcesContent",null),h=Eo.getArg(n,"mappings"),e=Eo.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);m&&(m=Eo.normalize(m)),l=l.map(String).map(Eo.normalize).map(function(c){return m&&Eo.isAbsolute(m)&&Eo.isAbsolute(c)?Eo.relative(m,c):c}),this._names=b2.fromArray(d.map(String),!0),this._sources=b2.fromArray(l,!0),this._absoluteSources=this._sources.toArray().map(function(c){return Eo.computeSourceURL(m,c,t)}),this.sourceRoot=m,this.sourcesContent=$,this._mappings=h,this._sourceMapURL=t,this.file=e}up.prototype=Object.create(Bu.prototype);up.prototype.consumer=Bu;up.prototype._findSourceIndex=function(i){var t=i;if(this.sourceRoot!=null&&(t=Eo.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==i)return n;return-1};up.fromSourceMap=function(t,n){var o=Object.create(up.prototype),l=o._names=b2.fromArray(t._names.toArray(),!0),d=o._sources=b2.fromArray(t._sources.toArray(),!0);o.sourceRoot=t._sourceRoot,o.sourcesContent=t._generateSourcesContent(o._sources.toArray(),o.sourceRoot),o.file=t._file,o._sourceMapURL=n,o._absoluteSources=o._sources.toArray().map(function(s){return Eo.computeSourceURL(o.sourceRoot,s,n)});for(var m=t._mappings.toArray().slice(),$=o.__generatedMappings=[],h=o.__originalMappings=[],e=0,c=m.length;e<c;e++){var P=m[e],T=new $U;T.generatedLine=P.generatedLine,T.generatedColumn=P.generatedColumn,P.source&&(T.source=d.indexOf(P.source),T.originalLine=P.originalLine,T.originalColumn=P.originalColumn,P.name&&(T.name=l.indexOf(P.name)),h.push(T)),$.push(T)}return hD(o.__originalMappings,Eo.compareByOriginalPositions),o};up.prototype._version=3;Object.defineProperty(up.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function $U(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}up.prototype._parseMappings=function(t,n){for(var o=1,l=0,d=0,m=0,$=0,h=0,e=t.length,c=0,P={},T={},s=[],D=[],O,W,E,v,S;c<e;)if(t.charAt(c)===";")o++,c++,l=0;else if(t.charAt(c)===",")c++;else{for(O=new $U,O.generatedLine=o,v=c;v<e&&!this._charIsMappingSeparator(t,v);v++);if(W=t.slice(c,v),E=P[W],E)c+=W.length;else{for(E=[];c<v;)qpe.decode(t,c,T),S=T.value,c=T.rest,E.push(S);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");P[W]=E}O.generatedColumn=l+E[0],l=O.generatedColumn,E.length>1&&(O.source=$+E[1],$+=E[1],O.originalLine=d+E[2],d=O.originalLine,O.originalLine+=1,O.originalColumn=m+E[3],m=O.originalColumn,E.length>4&&(O.name=h+E[4],h+=E[4])),D.push(O),typeof O.originalLine=="number"&&s.push(O)}hD(D,Eo.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,hD(s,Eo.compareByOriginalPositions),this.__originalMappings=s};up.prototype._findMapping=function(t,n,o,l,d,m){if(t[o]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[o]);if(t[l]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[l]);return l3.search(t,n,d,m)};up.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var o=this._generatedMappings[t+1];if(n.generatedLine===o.generatedLine){n.lastGeneratedColumn=o.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};up.prototype.originalPositionFor=function(t){var n={generatedLine:Eo.getArg(t,"line"),generatedColumn:Eo.getArg(t,"column")},o=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",Eo.compareByGeneratedPositionsDeflated,Eo.getArg(t,"bias",Bu.GREATEST_LOWER_BOUND));if(o>=0){var l=this._generatedMappings[o];if(l.generatedLine===n.generatedLine){var d=Eo.getArg(l,"source",null);d!==null&&(d=this._sources.at(d),d=Eo.computeSourceURL(this.sourceRoot,d,this._sourceMapURL));var m=Eo.getArg(l,"name",null);return m!==null&&(m=this._names.at(m)),{source:d,line:Eo.getArg(l,"originalLine",null),column:Eo.getArg(l,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}};up.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};up.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var o=this._findSourceIndex(t);if(o>=0)return this.sourcesContent[o];var l=t;this.sourceRoot!=null&&(l=Eo.relative(this.sourceRoot,l));var d;if(this.sourceRoot!=null&&(d=Eo.urlParse(this.sourceRoot))){var m=l.replace(/^file:\/\//,"");if(d.scheme=="file"&&this._sources.has(m))return this.sourcesContent[this._sources.indexOf(m)];if((!d.path||d.path=="/")&&this._sources.has("/"+l))return this.sourcesContent[this._sources.indexOf("/"+l)]}if(n)return null;throw new Error('"'+l+'" is not in the SourceMap.')};up.prototype.generatedPositionFor=function(t){var n=Eo.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var o={source:n,originalLine:Eo.getArg(t,"line"),originalColumn:Eo.getArg(t,"column")},l=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",Eo.compareByOriginalPositions,Eo.getArg(t,"bias",Bu.GREATEST_LOWER_BOUND));if(l>=0){var d=this._originalMappings[l];if(d.source===o.source)return{line:Eo.getArg(d,"generatedLine",null),column:Eo.getArg(d,"generatedColumn",null),lastColumn:Eo.getArg(d,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Dk.BasicSourceMapConsumer=up;function Pg(i,t){var n=i;typeof i=="string"&&(n=Eo.parseSourceMapInput(i));var o=Eo.getArg(n,"version"),l=Eo.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new b2,this._names=new b2;var d={line:-1,column:0};this._sections=l.map(function(m){if(m.url)throw new Error("Support for url field in sections not implemented.");var $=Eo.getArg(m,"offset"),h=Eo.getArg($,"line"),e=Eo.getArg($,"column");if(h<d.line||h===d.line&&e<d.column)throw new Error("Section offsets must be ordered and non-overlapping.");return d=$,{generatedOffset:{generatedLine:h+1,generatedColumn:e+1},consumer:new Bu(Eo.getArg(m,"map"),t)}})}Pg.prototype=Object.create(Bu.prototype);Pg.prototype.constructor=Bu;Pg.prototype._version=3;Object.defineProperty(Pg.prototype,"sources",{get:function(){for(var i=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)i.push(this._sections[t].consumer.sources[n]);return i}});Pg.prototype.originalPositionFor=function(t){var n={generatedLine:Eo.getArg(t,"line"),generatedColumn:Eo.getArg(t,"column")},o=l3.search(n,this._sections,function(d,m){var $=d.generatedLine-m.generatedOffset.generatedLine;return $||d.generatedColumn-m.generatedOffset.generatedColumn}),l=this._sections[o];return l?l.consumer.originalPositionFor({line:n.generatedLine-(l.generatedOffset.generatedLine-1),column:n.generatedColumn-(l.generatedOffset.generatedLine===n.generatedLine?l.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Pg.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Pg.prototype.sourceContentFor=function(t,n){for(var o=0;o<this._sections.length;o++){var l=this._sections[o],d=l.consumer.sourceContentFor(t,!0);if(d)return d}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Pg.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var o=this._sections[n];if(o.consumer._findSourceIndex(Eo.getArg(t,"source"))!==-1){var l=o.consumer.generatedPositionFor(t);if(l){var d={line:l.line+(o.generatedOffset.generatedLine-1),column:l.column+(o.generatedOffset.generatedLine===l.line?o.generatedOffset.generatedColumn-1:0)};return d}}}return{line:null,column:null}};Pg.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var o=0;o<this._sections.length;o++)for(var l=this._sections[o],d=l.consumer._generatedMappings,m=0;m<d.length;m++){var $=d[m],h=l.consumer._sources.at($.source);h=Eo.computeSourceURL(l.consumer.sourceRoot,h,this._sourceMapURL),this._sources.add(h),h=this._sources.indexOf(h);var e=null;$.name&&(e=l.consumer._names.at($.name),this._names.add(e),e=this._names.indexOf(e));var c={source:h,generatedLine:$.generatedLine+(l.generatedOffset.generatedLine-1),generatedColumn:$.generatedColumn+(l.generatedOffset.generatedLine===$.generatedLine?l.generatedOffset.generatedColumn-1:0),originalLine:$.originalLine,originalColumn:$.originalColumn,name:e};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}hD(this.__generatedMappings,Eo.compareByGeneratedPositionsDeflated),hD(this.__originalMappings,Eo.compareByOriginalPositions)};Dk.IndexedSourceMapConsumer=Pg;var HU={},$pe=i3.SourceMapGenerator,dC=R2,Hpe=/(\r?\n)/,Gpe=10,B2="$$$isSourceNode$$$";function L_(i,t,n,o,l){this.children=[],this.sourceContents={},this.line=i??null,this.column=t??null,this.source=n??null,this.name=l??null,this[B2]=!0,o!=null&&this.add(o)}L_.fromStringWithSourceMap=function(t,n,o){var l=new L_,d=t.split(Hpe),m=0,$=function(){var T=D(),s=D()||"";return T+s;function D(){return m<d.length?d[m++]:void 0}},h=1,e=0,c=null;return n.eachMapping(function(T){if(c!==null)if(h<T.generatedLine)P(c,$()),h++,e=0;else{var s=d[m]||"",D=s.substr(0,T.generatedColumn-e);d[m]=s.substr(T.generatedColumn-e),e=T.generatedColumn,P(c,D),c=T;return}for(;h<T.generatedLine;)l.add($()),h++;if(e<T.generatedColumn){var s=d[m]||"";l.add(s.substr(0,T.generatedColumn)),d[m]=s.substr(T.generatedColumn),e=T.generatedColumn}c=T},this),m<d.length&&(c&&P(c,$()),l.add(d.splice(m).join(""))),n.sources.forEach(function(T){var s=n.sourceContentFor(T);s!=null&&(o!=null&&(T=dC.join(o,T)),l.setSourceContent(T,s))}),l;function P(T,s){if(T===null||T.source===void 0)l.add(s);else{var D=o?dC.join(o,T.source):T.source;l.add(new L_(T.originalLine,T.originalColumn,D,s,T.name))}}};L_.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[B2]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};L_.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[B2]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};L_.prototype.walk=function(t){for(var n,o=0,l=this.children.length;o<l;o++)n=this.children[o],n[B2]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};L_.prototype.join=function(t){var n,o,l=this.children.length;if(l>0){for(n=[],o=0;o<l-1;o++)n.push(this.children[o]),n.push(t);n.push(this.children[o]),this.children=n}return this};L_.prototype.replaceRight=function(t,n){var o=this.children[this.children.length-1];return o[B2]?o.replaceRight(t,n):typeof o=="string"?this.children[this.children.length-1]=o.replace(t,n):this.children.push("".replace(t,n)),this};L_.prototype.setSourceContent=function(t,n){this.sourceContents[dC.toSetString(t)]=n};L_.prototype.walkSourceContents=function(t){for(var n=0,o=this.children.length;n<o;n++)this.children[n][B2]&&this.children[n].walkSourceContents(t);for(var l=Object.keys(this.sourceContents),n=0,o=l.length;n<o;n++)t(dC.fromSetString(l[n]),this.sourceContents[l[n]])};L_.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};L_.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},o=new $pe(t),l=!1,d=null,m=null,$=null,h=null;return this.walk(function(e,c){n.code+=e,c.source!==null&&c.line!==null&&c.column!==null?((d!==c.source||m!==c.line||$!==c.column||h!==c.name)&&o.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name}),d=c.source,m=c.line,$=c.column,h=c.name,l=!0):l&&(o.addMapping({generated:{line:n.line,column:n.column}}),d=null,l=!1);for(var P=0,T=e.length;P<T;P++)e.charCodeAt(P)===Gpe?(n.line++,n.column=0,P+1===T?(d=null,l=!1):l&&o.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name})):n.column++}),this.walkSourceContents(function(e,c){o.setSourceContent(e,c)}),{code:n.code,map:o}};HU.SourceNode=L_;yk.SourceMapGenerator=i3.SourceMapGenerator;yk.SourceMapConsumer=Dk.SourceMapConsumer;yk.SourceNode=HU.SourceNode;var GU=yk,g9=GU.SourceMapConsumer,Kpe=GU.SourceMapGenerator,Qpe=Xpe;function Xpe(i,t){if(!i)return t;if(!t)return i;var n=new g9(i),o=new g9(t),l=new Kpe;o.eachMapping(function(m){if(m.originalLine!=null){var $=n.originalPositionFor({line:m.originalLine,column:m.originalColumn});$.source!=null&&l.addMapping({original:{line:$.line,column:$.column},generated:{line:m.generatedLine,column:m.generatedColumn},source:$.source,name:$.name})}});var d=[n,o];return d.forEach(function(m){m.sources.forEach(function($){l._sources.add($);var h=m.sourceContentFor($);h!=null&&l.setSourceContent($,h)})}),l._sourceRoot=i.sourceRoot,l._file=i.file,JSON.parse(l.toString())}var f3=Qpe,Ype=Object.defineProperty,Zpe=Object.defineProperties,ede=Object.getOwnPropertyDescriptors,h9=Object.getOwnPropertySymbols,rde=Object.prototype.hasOwnProperty,tde=Object.prototype.propertyIsEnumerable,v9=(i,t,n)=>t in i?Ype(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,p3=(i,t)=>{for(var n in t||(t={}))rde.call(t,n)&&v9(i,n,t[n]);if(h9)for(var n of h9(t))tde.call(t,n)&&v9(i,n,t[n]);return i},d3=(i,t)=>Zpe(i,ede(t));const KU=(i,t,n,o=require)=>{const l=o("sass"),d=d3(p3({},n),{data:QU(i,n.filename,n.additionalData),file:n.filename,outFile:n.filename,sourceMap:!!t});try{const m=l.renderSync(d),$=m.stats.includedFiles;return t?{code:m.css.toString(),map:f3(t,JSON.parse(m.map.toString())),errors:[],dependencies:$}:{code:m.css.toString(),errors:[],dependencies:$}}catch(m){return{code:"",errors:[m],dependencies:[]}}},nde=(i,t,n,o)=>KU(i,t,d3(p3({},n),{indentedSyntax:!0}),o),ide=(i,t,n,o=require)=>{const l=o("less");let d,m=null;if(l.render(QU(i,n.filename,n.additionalData),d3(p3({},n),{syncImport:!0}),(h,e)=>{m=h,d=e}),m)return{code:"",errors:[m],dependencies:[]};const $=d.imports;return t?{code:d.css.toString(),map:f3(t,d.map),errors:[],dependencies:$}:{code:d.css.toString(),errors:[],dependencies:$}},y9=(i,t,n,o=require)=>{const l=o("stylus");try{const d=l(i);Object.keys(n).forEach(h=>d.set(h,n[h])),t&&d.set("sourcemap",{inline:!1,comment:!1});const m=d.render(),$=d.deps();return t?{code:m,map:f3(t,d.sourcemap),errors:[],dependencies:$}:{code:m,errors:[],dependencies:$}}catch(d){return{code:"",errors:[d],dependencies:[]}}};function QU(i,t,n){return n?MR(n)?n(i,t):n+i:i}const ade={less:ide,sass:nde,scss:KU,styl:y9,stylus:y9};var ode=Object.defineProperty,sde=Object.defineProperties,cde=Object.getOwnPropertyDescriptors,b9=Object.getOwnPropertySymbols,ude=Object.prototype.hasOwnProperty,lde=Object.prototype.propertyIsEnumerable,S9=(i,t,n)=>t in i?ode(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,xk=(i,t)=>{for(var n in t||(t={}))ude.call(t,n)&&S9(i,n,t[n]);if(b9)for(var n of b9(t))lde.call(t,n)&&S9(i,n,t[n]);return i},_3=(i,t)=>sde(i,cde(t));function XU(i){return ZU(_3(xk({},i),{isAsync:!1}))}function YU(i){return ZU(_3(xk({},i),{isAsync:!0}))}function ZU(i){const{filename:t,id:n,scoped:o=!1,trim:l=!0,isProd:d=!1,modules:m=!1,modulesOptions:$={},preprocessLang:h,postcssOptions:e,postcssPlugins:c}=i,P=h&&ade[h],T=P&&fde(i,P),s=T?T.map:i.inMap||i.map,D=T?T.code:i.source,O=n.replace(/^data-v-/,""),W=`data-v-${O}`,E=(c||[]).slice();E.unshift(bj({id:O,isProd:d})),l&&E.push(Nle()),o&&E.push(jpe(W));let v;if(m)throw new Error("[@vue/compiler-sfc] `modules` option is not supported in the browser build.");const S=_3(xk({},e),{to:t,from:t});s&&(S.map={inline:!1,annotation:!1,prev:s});let te,Y,Z;const ce=new Set(T?T.dependencies:[]);ce.delete(t);const k=[];T&&T.errors.length&&k.push(...T.errors);const X=A=>(A.forEach(y=>{y.type==="dependency"&&ce.add(y.file)}),ce);try{if(te=ju(E).process(D,S),i.isAsync)return te.then(A=>({code:A.css||"",map:A.map&&A.map.toJSON(),errors:k,modules:v,rawResult:A,dependencies:X(A.messages)})).catch(A=>({code:"",map:void 0,errors:[...k,A],rawResult:void 0,dependencies:ce}));X(te.messages),Y=te.css,Z=te.map}catch(A){k.push(A)}return{code:Y||"",map:Z&&Z.toJSON(),errors:k,rawResult:te,dependencies:ce}}function fde(i,t){if(!i.preprocessCustomRequire)throw new Error("[@vue/compiler-sfc] Style preprocessing in the browser build must provide the `preprocessCustomRequire` option to return the in-browser version of the preprocessor.");return t(i.source,i.inMap||i.map,xk({filename:i.filename},i.preprocessOptions),i.preprocessCustomRequire)}const pde=",".charCodeAt(0),dde=";".charCodeAt(0),D9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eV=new Uint8Array(64),_de=new Uint8Array(128);for(let i=0;i<D9.length;i++){const t=D9.charCodeAt(i);eV[i]=t,_de[t]=i}const EN=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(i){return Buffer.from(i.buffer,i.byteOffset,i.byteLength).toString()}}:{decode(i){let t="";for(let n=0;n<i.length;n++)t+=String.fromCharCode(i[n]);return t}};function mde(i){const t=new Int32Array(5),n=1024*16,o=n-36,l=new Uint8Array(n),d=l.subarray(0,o);let m=0,$="";for(let h=0;h<i.length;h++){const e=i[h];if(h>0&&(m===n&&($+=EN.decode(l),m=0),l[m++]=dde),e.length!==0){t[0]=0;for(let c=0;c<e.length;c++){const P=e[c];m>o&&($+=EN.decode(d),l.copyWithin(0,o,m),m-=o),c>0&&(l[m++]=pde),m=mS(l,m,t,P,0),P.length!==1&&(m=mS(l,m,t,P,1),m=mS(l,m,t,P,2),m=mS(l,m,t,P,3),P.length!==4&&(m=mS(l,m,t,P,4)))}}}return $+EN.decode(l.subarray(0,m))}function mS(i,t,n,o,l){const d=o[l];let m=d-n[l];n[l]=d,m=m<0?-m<<1|1:m<<1;do{let $=m&31;m>>>=5,m>0&&($|=32),i[t++]=eV[$]}while(m>0);return t}class _C{constructor(t){this.bits=t instanceof _C?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class vD{constructor(t,n,o){this.start=t,this.end=n,this.original=o,this.intro="",this.outro="",this.content=o,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new vD(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous}edit(t,n,o){return this.content=t,o||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}split(t){const n=t-this.start,o=this.original.slice(0,n),l=this.original.slice(n);this.original=o;const d=new vD(t,this.end,l);return d.outro=this.outro,this.outro="",this.end=t,this.edited?(d.edit("",!1),this.content=""):this.content=o,d.next=this.next,d.next&&(d.next.previous=d),d.previous=this,this.next=d,d}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const n=this.content.replace(t,"");if(n.length)return n!==this.content&&this.split(this.start+n.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.end-n.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}function gde(){return typeof window<"u"&&typeof window.btoa=="function"?i=>window.btoa(unescape(encodeURIComponent(i))):typeof Buffer=="function"?i=>Buffer.from(i,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const hde=gde();class vde{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=mde(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+hde(this.toString())}}function yde(i){const t=i.split(`
`),n=t.filter(d=>/^\t+/.test(d)),o=t.filter(d=>/^ {2,}/.test(d));if(n.length===0&&o.length===0)return null;if(n.length>=o.length)return" ";const l=o.reduce((d,m)=>{const $=/^ +/.exec(m)[0].length;return Math.min($,d)},1/0);return new Array(l+1).join(" ")}function bde(i,t){const n=i.split(/[/\\]/),o=t.split(/[/\\]/);for(n.pop();n[0]===o[0];)n.shift(),o.shift();if(n.length){let l=n.length;for(;l--;)n[l]=".."}return n.concat(o).join("/")}const Sde=Object.prototype.toString;function Dde(i){return Sde.call(i)==="[object Object]"}function x9(i){const t=i.split(`
`),n=[];for(let o=0,l=0;o<t.length;o++)n.push(l),l+=t[o].length+1;return function(l){let d=0,m=n.length;for(;d<m;){const e=d+m>>1;l<n[e]?m=e:d=e+1}const $=d-1,h=l-n[$];return{line:$,column:h}}}class xde{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,n,o,l){if(n.length){const d=[this.generatedCodeColumn,t,o.line,o.column];l>=0&&d.push(l),this.rawSegments.push(d)}else this.pending&&this.rawSegments.push(this.pending);this.advance(n),this.pending=null}addUneditedChunk(t,n,o,l,d){let m=n.start,$=!0;for(;m<n.end;)(this.hires||$||d.has(m))&&this.rawSegments.push([this.generatedCodeColumn,t,l.line,l.column]),o[m]===`
`?(l.line+=1,l.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,$=!0):(l.column+=1,this.generatedCodeColumn+=1,$=!1),m+=1;this.pending=null}advance(t){if(!t)return;const n=t.split(`
`);if(n.length>1){for(let o=0;o<n.length-1;o++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}}const gS=`
`,R0={insertLeft:!1,insertRight:!1,storeName:!1};class yh{constructor(t,n={}){const o=new vD(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:o},lastChunk:{writable:!0,value:o},lastSearchedChunk:{writable:!0,value:o},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new _C},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList}}),this.byStart[0]=o,this.byEnd[t.length]=o}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const o=this.byEnd[t];return o?o.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const o=this.byStart[t];return o?o.appendRight(n):this.outro+=n,this}clone(){const t=new yh(this.original,{filename:this.filename});let n=this.firstChunk,o=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[o.start]=o,t.byEnd[o.end]=o;const l=n.next,d=l&&l.clone();d&&(o.next=d,d.previous=o,o=d),n=l}return t.lastChunk=o,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new _C(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};const n=0,o=Object.keys(this.storedNames),l=new xde(t.hires),d=x9(this.original);return this.intro&&l.advance(this.intro),this.firstChunk.eachNext(m=>{const $=d(m.start);m.intro.length&&l.advance(m.intro),m.edited?l.addEdit(n,m.content,$,m.storeName?o.indexOf(m.original):-1):l.addUneditedChunk(n,m,this.original,$,this.sourcemapLocations),m.outro.length&&l.advance(m.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?bde(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:o,mappings:l.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new vde(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=yde(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){const o=/^[^\r\n]/gm;if(Dde(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};const l={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(c=>{for(let P=c[0];P<c[1];P+=1)l[P]=!0});let d=n.indentStart!==!1;const m=e=>d?`${t}${e}`:(d=!0,e);this.intro=this.intro.replace(o,m);let $=0,h=this.firstChunk;for(;h;){const e=h.end;if(h.edited)l[$]||(h.content=h.content.replace(o,m),h.content.length&&(d=h.content[h.content.length-1]===`
`));else for($=h.start;$<e;){if(!l[$]){const c=this.original[$];c===`
`?d=!0:c!=="\r"&&d&&(d=!1,$===h.start||(this._splitChunk(h,$),h=h.next),h.prependRight(t))}$+=1}$=h.end,h=h.next}return this.outro=this.outro.replace(o,m),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return R0.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),R0.insertLeft=!0),this.appendLeft(t,n)}insertRight(t,n){return R0.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),R0.insertRight=!0),this.prependRight(t,n)}move(t,n,o){if(o>=t&&o<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(o);const l=this.byStart[t],d=this.byEnd[n],m=l.previous,$=d.next,h=this.byStart[o];if(!h&&d===this.lastChunk)return this;const e=h?h.previous:this.lastChunk;return m&&(m.next=$),$&&($.previous=m),e&&(e.next=l),h&&(h.previous=d),l.previous||(this.firstChunk=d.next),d.next||(this.lastChunk=l.previous,this.lastChunk.next=null),l.previous=e,d.next=h||null,e||(this.firstChunk=l),h||(this.lastChunk=d),this}overwrite(t,n,o,l){return l=l||{},this.update(t,n,o,{...l,overwrite:!l.contentOnly})}update(t,n,o,l){if(typeof o!="string")throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(n),l===!0&&(R0.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),R0.storeName=!0),l={storeName:!0});const d=l!==void 0?l.storeName:!1,m=l!==void 0?l.overwrite:!1;if(d){const e=this.original.slice(t,n);Object.defineProperty(this.storedNames,e,{writable:!0,value:!0,enumerable:!0})}const $=this.byStart[t],h=this.byEnd[n];if($){let e=$;for(;e!==h;){if(e.next!==this.byStart[e.end])throw new Error("Cannot overwrite across a split point");e=e.next,e.edit("",!1)}$.edit(o,d,!m)}else{const e=new vD(t,n,"").edit(o,d);h.next=e,e.previous=h}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const o=this.byEnd[t];return o?o.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const o=this.byStart[t];return o?o.prependRight(n):this.outro=n+this.outro,this}remove(t,n){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let o=this.byStart[t];for(;o;)o.intro="",o.outro="",o.edit(""),o=n>o.end?this.byStart[o.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(gS);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,o=this.lastChunk;do{if(o.outro.length>0){if(t=o.outro.lastIndexOf(gS),t!==-1)return o.outro.substr(t+1)+n;n=o.outro+n}if(o.content.length>0){if(t=o.content.lastIndexOf(gS),t!==-1)return o.content.substr(t+1)+n;n=o.content+n}if(o.intro.length>0){if(t=o.intro.lastIndexOf(gS),t!==-1)return o.intro.substr(t+1)+n;n=o.intro+n}}while(o=o.previous);return t=this.intro.lastIndexOf(gS),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;let o="",l=this.firstChunk;for(;l&&(l.start>t||l.end<=t);){if(l.start<n&&l.end>=n)return o;l=l.next}if(l&&l.edited&&l.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const d=l;for(;l;){l.intro&&(d!==l||l.start===t)&&(o+=l.intro);const m=l.start<n&&l.end>=n;if(m&&l.edited&&l.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const $=d===l?t-l.start:0,h=m?l.content.length+n-l.end:l.content.length;if(o+=l.content.slice($,h),l.outro&&(!m||l.end===n)&&(o+=l.outro),m)break;l=l.next}return o}snip(t,n){const o=this.clone();return o.remove(0,t),o.remove(n,o.original.length),o}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk;const o=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);n=o?this.byStart[n.end]:this.byEnd[n.start]}}_splitChunk(t,n){if(t.edited&&t.content.length){const l=x9(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${l.line}:${l.column} – "${t.original}")`)}const o=t.split(n);return this.byEnd[n]=t,this.byStart[n]=o,this.byEnd[o.end]=o,t===this.lastChunk&&(this.lastChunk=o),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let o=this.lastChunk;do{const l=o.end,d=o.trimEnd(n);if(o.end!==l&&(this.lastChunk===o&&(this.lastChunk=o.next),this.byEnd[o.end]=o,this.byStart[o.next.start]=o.next,this.byEnd[o.next.end]=o.next),d)return!0;o=o.previous}while(o);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let o=this.firstChunk;do{const l=o.end,d=o.trimStart(n);if(o.end!==l&&(o===this.lastChunk&&(this.lastChunk=o.next),this.byEnd[o.end]=o,this.byStart[o.next.start]=o.next,this.byEnd[o.next.end]=o.next),d)return!0;o=o.next}while(o);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function o(d,m){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,($,h)=>h==="$"?"$":h==="&"?d[0]:+h<d.length?d[+h]:`$${h}`):n(...d,d.index,m,d.groups)}function l(d,m){let $;const h=[];for(;$=d.exec(m);)h.push($);return h}if(t.global)l(t,this.original).forEach(m=>{m.index!=null&&this.overwrite(m.index,m.index+m[0].length,o(m,this.original))});else{const d=this.original.match(t);d&&d.index!=null&&this.overwrite(d.index,d.index+d[0].length,o(d,this.original))}return this}_replaceString(t,n){const{original:o}=this,l=o.indexOf(t);return l!==-1&&this.overwrite(l,l+t.length,n),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){const{original:o}=this,l=t.length;for(let d=o.indexOf(t);d!==-1;d=o.indexOf(t,d+l))this.overwrite(d,d+l,n);return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}}var Tde=Object.defineProperty,Ede=Object.defineProperties,Cde=Object.getOwnPropertyDescriptors,T9=Object.getOwnPropertySymbols,kde=Object.prototype.hasOwnProperty,Ade=Object.prototype.propertyIsEnumerable,E9=(i,t,n)=>t in i?Tde(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,Pde=(i,t)=>{for(var n in t||(t={}))kde.call(t,n)&&E9(i,n,t[n]);if(T9)for(var n of T9(t))Ade.call(t,n)&&E9(i,n,t[n]);return i},wde=(i,t)=>Ede(i,Cde(t));const CN="$",kN="$$",C9="vue/macros",Nde=["ref","computed","shallowRef","toRef","customRef"],Ide=/[^\w]\$(?:\$|ref|computed|shallowRef)?\s*(\(|\<)/;function yD(i){return Ide.test(i)}function rV(i,{filename:t,sourceMap:n,parserPlugins:o,importHelpersFrom:l="vue"}={}){const d=o||[];t&&(/\.tsx?$/.test(t)&&d.push("typescript"),t.endsWith("x")&&d.push("jsx"));const m=gv(i,{sourceType:"module",plugins:d}),$=new yh(i),h=S2(m.program,$,0);return h.importedHelpers.length&&$.prepend(`import { ${h.importedHelpers.map(e=>`${e} as _${e}`).join(", ")} } from '${l}'
`),wde(Pde({},h),{code:$.toString(),map:n?$.generateMap({source:t,hires:!0,includeContent:!0}):null})}function S2(i,t,n=0,o,l){Ode();const d=Object.create(null);for(const _e of i.body)_e.type==="ImportDeclaration"&&W(_e);let m,$;for(const{local:_e,imported:ne,source:oe,specifier:w}of Object.values(d))oe===C9&&(ne===kN?$=_e:ne===CN?m=_e:ne!==_e&&v("macro imports for ref-creating methods do not support aliasing.",w));!m&&!d[CN]&&(m=CN),!$&&!d[kN]&&($=kN);const h=new Set,e={},c=[e];let P=e,T;const s=new WeakSet,D=[],O=Object.create(null);if(o)for(const _e of o)e[_e]={};if(l)for(const _e in l){const{local:ne,isConst:oe}=l[_e];e[ne]={isProp:!0,isConst:!!oe},O[ne]=_e}function W(_e){const ne=_e.source.value;ne===C9&&t.remove(_e.start+n,_e.end+n);for(const oe of _e.specifiers){const w=oe.local.name,re=oe.type==="ImportSpecifier"&&oe.imported.type==="Identifier"&&oe.imported.name||"default";d[w]={source:ne,local:w,imported:re,specifier:oe}}}function E(_e){return!m||P[m]!==void 0?!1:_e===m?m:_e[0]==="$"&&Nde.includes(_e.slice(1))?_e:!1}function v(_e,ne){const oe=new Error(_e);throw oe.node=ne,oe}function S(_e){return h.add(_e),`_${_e}`}function te(_e,ne){s.add(_e),P?P[_e.name]=ne||!1:v("registerBinding called without active scope, something is wrong.",_e)}const Y=(_e,ne=!1)=>te(_e,{isConst:ne});let Z=0;function ce(){return`__$temp_${++Z}`}function k(_e){return t.original.slice(_e.start+n,_e.end+n)}function X(_e,ne=!1){for(const oe of _e.body)if(oe.type==="VariableDeclaration")A(oe,ne);else if(oe.type==="FunctionDeclaration"||oe.type==="ClassDeclaration"){if(oe.declare||!oe.id)continue;te(oe.id)}else(oe.type==="ForOfStatement"||oe.type==="ForInStatement")&&oe.left.type==="VariableDeclaration"?A(oe.left):oe.type==="ExportNamedDeclaration"&&oe.declaration&&oe.declaration.type==="VariableDeclaration"?A(oe.declaration,ne):oe.type==="LabeledStatement"&&oe.body.type==="VariableDeclaration"&&A(oe.body,ne)}function A(_e,ne=!1){if(!_e.declare)for(const oe of _e.declarations){let w;const re=oe.init&&oe.init.type==="CallExpression"&&oe.init.callee.type==="Identifier";if(re&&(w=E(oe.init.callee.name)))y(w,oe.id,oe.init,_e.kind==="const");else{const M=ne&&re&&oe.init.callee.name==="defineProps";for(const U of A_(oe.id))M?s.add(U):te(U)}}}function y(_e,ne,oe,w){s.add(oe.callee),_e===m?(t.remove(oe.callee.start+n,oe.callee.end+n),ne.type==="Identifier"?Y(ne,w):ne.type==="ObjectPattern"?C(ne,oe,w):ne.type==="ArrayPattern"&&B(ne,oe,w)):ne.type==="Identifier"?(Y(ne,w),t.overwrite(oe.start+n,oe.start+_e.length+n,S(_e.slice(1)))):v(`${_e}() cannot be used with destructure patterns.`,oe)}function C(_e,ne,oe,w,re=[]){w||(w=ce(),t.overwrite(_e.start+n,_e.end+n,w));let M;for(const U of _e.properties){let H,q;if(U.type==="ObjectProperty"?U.key.start===U.value.start?(M=U.key,U.value.type==="Identifier"?s.add(U.value):U.value.type==="AssignmentPattern"&&U.value.left.type==="Identifier"&&(s.add(U.value.left),q=U.value.right)):(H=U.computed?U.key:U.key.name,U.value.type==="Identifier"?M=U.value:U.value.type==="ObjectPattern"?C(U.value,ne,oe,w,[...re,H]):U.value.type==="ArrayPattern"?B(U.value,ne,oe,w,[...re,H]):U.value.type==="AssignmentPattern"&&(U.value.left.type==="Identifier"?(M=U.value.left,q=U.value.right):U.value.left.type==="ObjectPattern"?C(U.value.left,ne,oe,w,[...re,[H,U.value.right]]):U.value.left.type==="ArrayPattern"&&B(U.value.left,ne,oe,w,[...re,[H,U.value.right]]))):v("reactivity destructure does not support rest elements.",U),M){Y(M,oe);const R=F(w,re),K=lc(H)?`'${H}'`:H?k(H):`'${M.name}'`,I=q?`, ${k(q)}`:"";t.appendLeft(ne.end+n,`,
${M.name} = ${S("toRef")}(${R}, ${K}${I})`)}}M&&t.appendLeft(ne.end+n,";")}function B(_e,ne,oe,w,re=[]){w||(w=ce(),t.overwrite(_e.start+n,_e.end+n,w));let M;for(let U=0;U<_e.elements.length;U++){const H=_e.elements[U];if(!H)continue;let q;if(H.type==="Identifier"?M=H:H.type==="AssignmentPattern"?(M=H.left,q=H.right):H.type==="RestElement"?v("reactivity destructure does not support rest elements.",H):H.type==="ObjectPattern"?C(H,ne,oe,w,[...re,U]):H.type==="ArrayPattern"&&B(H,ne,oe,w,[...re,U]),M){Y(M,oe);const R=F(w,re),K=q?`, ${k(q)}`:"";t.appendLeft(ne.end+n,`,
${M.name} = ${S("toRef")}(${R}, ${U}${K})`)}}M&&t.appendLeft(ne.end+n,";")}function F(_e,ne){if(ne.length)for(const oe of ne)Dd(oe)?_e=`(${_e}${z(oe[0])} || ${k(oe[1])})`:_e+=z(oe);return _e}function z(_e){return typeof _e=="number"?`[${_e}]`:typeof _e=="string"?`.${_e}`:k(_e)}function ge(_e,ne,oe,w){if(CC(_e,ne.name)){const re=_e[ne.name];if(re){re.isConst&&(oe.type==="AssignmentExpression"&&ne===oe.left||oe.type==="UpdateExpression")&&v("Assignment to constant variable.",ne);const{isProp:M}=re;ky(oe)&&oe.shorthand?(!oe.inPattern||Cy(oe,w))&&(M?T?(fe(ne),t.appendLeft(ne.end+n,`: __props_${O[ne.name]}`)):t.appendLeft(ne.end+n,`: ${i2(O[ne.name])}`):t.appendLeft(ne.end+n,`: ${ne.name}.value`)):M?T?(fe(ne),t.overwrite(ne.start+n,ne.end+n,`__props_${O[ne.name]}`)):t.overwrite(ne.start+n,ne.end+n,i2(O[ne.name])):t.appendLeft(ne.end+n,".value")}return!0}return!1}const Pe={};function fe(_e){if(!Pe.hasOwnProperty(_e.name)){Pe[_e.name]=!0;const ne=O[_e.name];t.prependRight(n,`const __props_${ne} = ${S("toRef")}(__props, '${ne}');
`)}}return X(i,!0),OD(i,{enter(_e,ne){if(ne&&D.push(ne),km(_e)){c.push(P={}),rk(_e,te),_e.body.type==="BlockStatement"&&X(_e.body);return}if(_e.type==="CatchClause"){c.push(P={}),_e.param&&_e.param.type==="Identifier"&&te(_e.param),X(_e.body);return}if(_e.type==="BlockStatement"&&!km(ne)){c.push(P={}),X(_e);return}if(ne&&ne.type.startsWith("TS")&&ne.type!=="TSAsExpression"&&ne.type!=="TSNonNullExpression"&&ne.type!=="TSTypeAssertion")return this.skip();if(_e.type==="Identifier"){const oe=e[_e.name];if(!(T&&(!oe||!oe.isProp))&&ek(_e,ne,D)&&!s.has(_e)){let w=c.length;for(;w--;)if(ge(c[w],_e,ne,D))return}}if(_e.type==="CallExpression"&&_e.callee.type==="Identifier"){const oe=_e.callee.name,w=E(oe);if(w&&(!ne||ne.type!=="VariableDeclarator"))return v(`${w} can only be used as the initializer of a variable declaration.`,_e);if($&&P[$]===void 0&&oe===$&&(T=_e,t.remove(_e.callee.start+n,_e.callee.end+n),(ne==null?void 0:ne.type)==="ExpressionStatement")){let re=(_e.leadingComments?_e.leadingComments[0].start:_e.start)+n;for(;re--;){const M=t.original.charAt(re);if(M===`
`){t.prependRight(_e.start+n,";");break}else if(!/\s/.test(M))break}}}},leave(_e,ne){ne&&D.pop(),(_e.type==="BlockStatement"&&!km(ne)||km(_e))&&(c.pop(),P=c[c.length-1]||null),_e===T&&(T=void 0)}}),{rootRefs:Object.keys(e).filter(_e=>{const ne=e[_e];return ne&&!ne.isProp}),importedHelpers:[...h]}}const k9={};function Ode(){typeof window<"u"||Mde(`Reactivity Transform was an experimental feature and has now been deprecated. It will be removed from Vue core in 3.4. If you intend to continue using it, switch to https://vue-macros.sxzz.moe/features/reactivity-transform.html.
See reason for deprecation here: https://github.com/vuejs/rfcs/discussions/369#discussioncomment-5059028`)}function Mde(i){!(typeof process<"u"&&!0)&&!k9[i]&&(k9[i]=!0,Fde(i))}function Fde(i){console.warn(`\x1B[1m\x1B[33m[@vue/reactivity-transform]\x1B[0m\x1B[33m ${i}\x1B[0m
`)}function tV(i){for(const t of i)if(t.type==="ExportDefaultDeclaration"&&t.declaration.type==="ObjectExpression")return Lde(t.declaration);return{}}function Lde(i){const t={};Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!1});for(const n of i.properties)if(n.type==="ObjectProperty"&&!n.computed&&n.key.type==="Identifier"){if(n.key.name==="props")for(const o of LI(n.value))t[o]="props";else if(n.key.name==="inject")for(const o of LI(n.value))t[o]="options";else if(n.value.type==="ObjectExpression"&&(n.key.name==="computed"||n.key.name==="methods"))for(const o of FI(n.value))t[o]="options"}else if(n.type==="ObjectMethod"&&n.key.type==="Identifier"&&(n.key.name==="setup"||n.key.name==="data")){for(const o of n.body.body)if(o.type==="ReturnStatement"&&o.argument&&o.argument.type==="ObjectExpression")for(const l of FI(o.argument))t[l]=n.key.name==="setup"?"setup-maybe-ref":"data"}return t}function FI(i){const t=[];for(const n of i.properties){if(n.type==="SpreadElement")continue;const o=T4(n.key,n.computed);o&&t.push(String(o))}return t}function Rde(i){const t=[];for(const n of i.elements)n&&n.type==="StringLiteral"&&t.push(n.value);return t}function LI(i){return i.type==="ArrayExpression"?Rde(i):i.type==="ObjectExpression"?FI(i):[]}function nV(i,t,n){const o=gv(i,{sourceType:"module",plugins:n}).program.body,l=new yh(i);return Tk(o,l,t),l.toString()}function Tk(i,t,n){if(!Bde(i)){t.append(`
const ${n} = {}`);return}i.forEach(o=>{if(o.type==="ExportDefaultDeclaration")if(o.declaration.type==="ClassDeclaration"){let l=o.declaration.decorators&&o.declaration.decorators.length>0?o.declaration.decorators[o.declaration.decorators.length-1].end:o.start;t.overwrite(l,o.declaration.id.start," class "),t.append(`
const ${n} = ${o.declaration.id.name}`)}else t.overwrite(o.start,o.declaration.start,`const ${n} = `);else if(o.type==="ExportNamedDeclaration"){for(const l of o.specifiers)if(l.type==="ExportSpecifier"&&l.exported.type==="Identifier"&&l.exported.name==="default"){if(o.source)if(l.local.name==="default"){t.prepend(`import { default as __VUE_DEFAULT__ } from '${o.source.value}'
`);const m=AN(t,l.local.end,o.end);t.remove(l.start,m),t.append(`
const ${n} = __VUE_DEFAULT__`);continue}else{t.prepend(`import { ${t.slice(l.local.start,l.local.end)} as __VUE_DEFAULT__ } from '${o.source.value}'
`);const m=AN(t,l.exported.end,o.end);t.remove(l.start,m),t.append(`
const ${n} = __VUE_DEFAULT__`);continue}const d=AN(t,l.end,o.end);t.remove(l.start,d),t.append(`
const ${n} = ${l.local.name}`)}}})}function Bde(i){for(const t of i){if(t.type==="ExportDefaultDeclaration")return!0;if(t.type==="ExportNamedDeclaration"&&t.specifiers.some(n=>n.exported.name==="default"))return!0}return!1}function AN(i,t,n){let o=!1,l=t;for(;t<n;)if(/\s/.test(i.slice(t,t+1)))t++;else if(i.slice(t,t+1)===","){t++,o=!0;break}else if(i.slice(t,t+1)==="}")break;return o?t:l}var jde=Object.defineProperty,Jde=Object.defineProperties,Ude=Object.getOwnPropertyDescriptors,A9=Object.getOwnPropertySymbols,Vde=Object.prototype.hasOwnProperty,zde=Object.prototype.propertyIsEnumerable,P9=(i,t,n)=>t in i?jde(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,Wde=(i,t)=>{for(var n in t||(t={}))Vde.call(t,n)&&P9(i,n,t[n]);if(A9)for(var n of A9(t))zde.call(t,n)&&P9(i,n,t[n]);return i},qde=(i,t)=>Jde(i,Ude(t));const V0="__default__";function $de(i,t){const n=i.descriptor.script;if(n.lang&&!i.isJS&&!i.isTS)return n;try{let o=n.content,l=n.map;const d=i.scriptAst,m=tV(d.body),{source:$,filename:h,cssVars:e}=i.descriptor,{sourceMap:c,genDefaultAs:P,isProd:T}=i.options;if(i.options.reactivityTransform&&yD(o)){const s=new yh($),D=n.loc.start.offset,O=n.loc.end.offset,{importedHelpers:W}=S2(d,s,D);W.length&&s.prepend(`import { ${W.map(E=>`${E} as _${E}`).join(", ")} } from 'vue'
`),s.remove(0,D),s.remove(O,$.length),o=s.toString(),c!==!1&&(l=s.generateMap({source:h,hires:!0,includeContent:!0}))}if(e.length||P){const s=P||V0,D=new yh(o);Tk(d.body,D,s),o=D.toString(),e.length&&(o+=fae(e,m,t,!!T,s)),P||(o+=`
export default ${s}`)}return qde(Wde({},n),{content:o,map:l,bindings:m,scriptAst:d.body})}catch{return n}}var w9,N9;class Hde{constructor(t,n){this.descriptor=t,this.options=n,this.source=this.descriptor.source,this.filename=this.descriptor.filename,this.s=new yh(this.source),this.startOffset=(w9=this.descriptor.scriptSetup)==null?void 0:w9.loc.start.offset,this.endOffset=(N9=this.descriptor.scriptSetup)==null?void 0:N9.loc.end.offset,this.userImports=Object.create(null),this.hasDefinePropsCall=!1,this.hasDefineEmitCall=!1,this.hasDefineExposeCall=!1,this.hasDefaultExportName=!1,this.hasDefaultExportRender=!1,this.hasDefineOptionsCall=!1,this.hasDefineSlotsCall=!1,this.hasDefineModelCall=!1,this.propsDestructuredBindings=Object.create(null),this.modelDecls={},this.bindingMetadata={},this.helperImports=new Set;const{script:o,scriptSetup:l}=t,d=o&&o.lang,m=l&&l.lang;this.isJS=d==="js"||d==="jsx"||m==="js"||m==="jsx",this.isTS=d==="ts"||d==="tsx"||m==="ts"||m==="tsx";const $=RI(d||m,n.babelParserPlugins);function h(e,c){try{return gv(e,{plugins:$,sourceType:"module"}).program}catch(P){throw P.message=`[vue/compiler-sfc] ${P.message}
${t.filename}
${w1(t.source,P.pos+c,P.pos+c+1)}`,P}}this.scriptAst=t.script&&h(t.script.content,t.script.loc.start.offset),this.scriptSetupAst=t.scriptSetup&&h(t.scriptSetup.content,this.startOffset)}helper(t){return this.helperImports.add(t),`_${t}`}getString(t,n=!0){return(n?this.descriptor.scriptSetup:this.descriptor.script).content.slice(t.start,t.end)}error(t,n,o){const l=o?o.offset:this.startOffset;throw new Error(`[@vue/compiler-sfc] ${t}
${(o||this.descriptor).filename}
${w1((o||this.descriptor).source,n.start+l,n.end+l)}`)}}function RI(i,t,n=!1){const o=[];return i==="jsx"||i==="tsx"?o.push("jsx"):t&&(t=t.filter(l=>l!=="jsx")),(i==="ts"||i==="tsx")&&(o.push(["typescript",{dts:n}]),o.includes("decorators")||o.push("decorators-legacy")),t&&o.push(...t),o}var Gde=Object.defineProperty,Kde=Object.defineProperties,Qde=Object.getOwnPropertyDescriptors,I9=Object.getOwnPropertySymbols,Xde=Object.prototype.hasOwnProperty,Yde=Object.prototype.propertyIsEnumerable,O9=(i,t,n)=>t in i?Gde(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,BI=(i,t)=>{for(var n in t||(t={}))Xde.call(t,n)&&O9(i,n,t[n]);if(I9)for(var n of I9(t))Yde.call(t,n)&&O9(i,n,t[n]);return i},jI=(i,t)=>Kde(i,Qde(t));class m3{constructor(t,n,o=0,l=Object.create(null),d=Object.create(null),m=Object.create(null)){this.filename=t,this.source=n,this.offset=o,this.imports=l,this.types=d,this.declares=m,this.resolvedImportSources=Object.create(null),this.exportedTypes=Object.create(null),this.exportedDeclares=Object.create(null)}}function np(i,t,n){return t._resolvedElements?t._resolvedElements:t._resolvedElements=Zde(i,t,t._ownerScope||n||Ck(i))}function Zde(i,t,n){var o,l;switch(t.type){case"TSTypeLiteral":return iV(i,t.members,n);case"TSInterfaceDeclaration":return e_e(i,t,n);case"TSTypeAliasDeclaration":case"TSParenthesizedType":return np(i,t.typeAnnotation,n);case"TSFunctionType":return{props:{},calls:[t]};case"TSUnionType":case"TSIntersectionType":return M9(t.types.map(d=>np(i,d,n)),t.type);case"TSMappedType":return r_e(i,t,n);case"TSIndexedAccessType":{const d=aV(i,t,n);return M9(d.map(m=>np(i,m,m._ownerScope)),"TSUnionType")}case"TSExpressionWithTypeArguments":case"TSTypeReference":{const d=h3(t);if((d==="ExtractPropTypes"||d==="ExtractPublicPropTypes")&&t.typeParameters&&((o=n.imports[d])==null?void 0:o.source)==="vue")return R9(np(i,t.typeParameters.params[0],n),n);const m=dh(i,t,n);if(m)return np(i,m,m._ownerScope);if(typeof d=="string"){if(t_e.has(d))return n_e(i,t,d,n);if(d==="ReturnType"&&t.typeParameters){const $=__e(i,t.typeParameters.params[0],n);if($)return np(i,$,n)}}return i.error("Unresolvable type reference or unsupported built-in utility type",t,n)}case"TSImportType":{if(L1(t.argument)==="vue"&&((l=t.qualifier)==null?void 0:l.type)==="Identifier"&&t.qualifier.name==="ExtractPropTypes"&&t.typeParameters)return R9(np(i,t.typeParameters.params[0],n),n);const d=Ek(i,t.argument,n,t.argument.value),m=dh(i,t,d);if(m)return np(i,m,m._ownerScope)}case"TSTypeQuery":{const d=dh(i,t,n);if(d)return np(i,d,d._ownerScope)}}return i.error(`Unresolvable type: ${t.type}`,t,n)}function iV(i,t,n=Ck(i)){const o={props:{}};for(const l of t)if(l.type==="TSPropertySignature"||l.type==="TSMethodSignature"){l._ownerScope=n;const d=L1(l.key);if(d&&!l.computed)o.props[d]=l;else if(l.key.type==="TemplateLiteral")for(const m of g3(i,l.key,n))o.props[m]=l;else i.error("Unsupported computed key in type referenced by a macro",l.key,n)}else l.type==="TSCallSignatureDeclaration"&&(o.calls||(o.calls=[])).push(l);return o}function M9(i,t){if(i.length===1)return i[0];const n={props:{}},{props:o}=n;for(const{props:l,calls:d}of i){for(const m in l)CC(o,m)?o[m]=LS(o[m].key,{type:t,types:[o[m],l[m]]},o[m]._ownerScope,o[m].optional||l[m].optional):o[m]=l[m];d&&(n.calls||(n.calls=[])).push(...d)}return n}function LS(i,t,n,o){return{type:"TSPropertySignature",key:i,kind:"get",optional:o,typeAnnotation:{type:"TSTypeAnnotation",typeAnnotation:t},_ownerScope:n}}function e_e(i,t,n){const o=iV(i,t.body.body,t._ownerScope);if(t.extends){for(const l of t.extends)if(!(l.leadingComments&&l.leadingComments.some(d=>d.value.includes("@vue-ignore"))))try{const{props:d}=np(i,l,n);for(const m in d)CC(o.props,m)||(o.props[m]=d[m])}catch{i.error(`Failed to resolve extends base type.
If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:
interface Props extends /* @vue-ignore */ Base {}
Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.`,l)}}return o}function r_e(i,t,n){const o={props:{}},l=pv(i,t.typeParameter.constraint,n);for(const d of l)o.props[d]=LS({type:"Identifier",name:d},t.typeAnnotation,n,!!t.optional);return o}function aV(i,t,n){var o,l;if(t.indexType.type==="TSNumberKeyword")return oV(i,t.objectType,n);const{indexType:d,objectType:m}=t,$=[];let h,e;d.type==="TSStringKeyword"?(e=np(i,m,n),h=Object.keys(e.props)):(h=pv(i,d,n),e=np(i,m,n));for(const c of h){const P=(l=(o=e.props[c])==null?void 0:o.typeAnnotation)==null?void 0:l.typeAnnotation;P&&(P._ownerScope=e.props[c]._ownerScope,$.push(P))}return $}function oV(i,t,n){if(t.type==="TSArrayType")return[t.elementType];if(t.type==="TSTupleType")return t.elementTypes.map(o=>o.type==="TSNamedTupleMember"?o.elementType:o);if(t.type==="TSTypeReference"){if(h3(t)==="Array"&&t.typeParameters)return t.typeParameters.params;{const o=dh(i,t,n);if(o)return oV(i,o,n)}}return i.error("Failed to resolve element type from target type",t,n)}function pv(i,t,n){switch(t.type){case"StringLiteral":return[t.value];case"TSLiteralType":return pv(i,t.literal,n);case"TSUnionType":return t.types.map(o=>pv(i,o,n)).flat();case"TemplateLiteral":return g3(i,t,n);case"TSTypeReference":{const o=dh(i,t,n);if(o)return pv(i,o,n);if(t.typeName.type==="Identifier"){const l=(d=0)=>pv(i,t.typeParameters.params[d],n);switch(t.typeName.name){case"Extract":return l(1);case"Exclude":{const d=l(1);return l().filter(m=>!d.includes(m))}case"Uppercase":return l().map(d=>d.toUpperCase());case"Lowercase":return l().map(d=>d.toLowerCase());case"Capitalize":return l().map(by);case"Uncapitalize":return l().map(d=>d[0].toLowerCase()+d.slice(1));default:i.error("Unsupported type when resolving index type",t.typeName,n)}}}}return i.error("Failed to resolve index type into finite keys",t,n)}function g3(i,t,n){if(!t.expressions.length)return[t.quasis[0].value.raw];const o=[],l=t.expressions[0],d=t.quasis[0],m=d?d.value.raw:"",$=pv(i,l,n),h=g3(i,jI(BI({},t),{expressions:t.expressions.slice(1),quasis:d?t.quasis.slice(1):t.quasis}),n);for(const e of $)for(const c of h)o.push(m+e+c);return o}const t_e=new Set(["Partial","Required","Readonly","Pick","Omit"]);function n_e(i,t,n,o){const l=np(i,t.typeParameters.params[0],o);switch(n){case"Partial":{const $={props:{},calls:l.calls};return Object.keys(l.props).forEach(h=>{$.props[h]=jI(BI({},l.props[h]),{optional:!0})}),$}case"Required":{const $={props:{},calls:l.calls};return Object.keys(l.props).forEach(h=>{$.props[h]=jI(BI({},l.props[h]),{optional:!1})}),$}case"Readonly":return l;case"Pick":{const $=pv(i,t.typeParameters.params[1],o),h={props:{},calls:l.calls};for(const e of $)h.props[e]=l.props[e];return h}case"Omit":const d=pv(i,t.typeParameters.params[1],o),m={props:{},calls:l.calls};for(const $ in l.props)d.includes($)||(m.props[$]=l.props[$]);return m}}function dh(i,t,n,o,l=!1){return t._resolvedReference?t._resolvedReference:t._resolvedReference=JI(i,n||Ck(i),o||h3(t),t,l)}function JI(i,t,n,o,l){if(typeof n=="string"){if(t.imports[n])return a_e(i,o,n,t);{const d=o.type==="TSTypeQuery"?l?t.exportedDeclares:t.declares:l?t.exportedTypes:t.types;if(d[n])return d[n];{const m=i_e(i);if(m)for(const $ of m){const h=o.type==="TSTypeQuery"?$.declares:$.types;if(h[n])return(i.deps||(i.deps=new Set)).add($.filename),h[n]}}}}else{let d=JI(i,t,n[0],o,l);if(d&&(d.type!=="TSModuleDeclaration"&&(d=d._ns),d)){const m=u_e(i,d,d._ownerScope||t);return JI(i,m,n.length>2?n.slice(1):n[n.length-1],o,!d.declare)}}}function h3(i){const t=i.type==="TSTypeReference"?i.typeName:i.type==="TSExpressionWithTypeArguments"?i.expression:i.type==="TSImportType"?i.qualifier:i.exprName;return(t==null?void 0:t.type)==="Identifier"?t.name:(t==null?void 0:t.type)==="TSQualifiedName"?sV(t):"default"}function sV(i){return i.type==="Identifier"?[i.name]:[...sV(i.left),i.right.name]}function i_e(i){if(i.options.globalTypeFiles){if(!y3(i))throw new Error("[vue/compiler-sfc] globalTypeFiles requires fs access.");return i.options.globalTypeFiles.map(n=>lV(i,E4(n),!0))}}let v3;function cV(i){v3=i}function y3(i){if(i.fs)return i.fs;const t=i.options.fs||v3.sys;if(t)return i.fs={fileExists(n){return n.endsWith(".vue.ts")&&(n=n.replace(/\.ts$/,"")),t.fileExists(n)},readFile(n){return n.endsWith(".vue.ts")&&(n=n.replace(/\.ts$/,"")),t.readFile(n)}}}function a_e(i,t,n,o){const{source:l,imported:d}=o.imports[n],m=Ek(i,t,o,l);return dh(i,t,m,d,!0)}function Ek(i,t,n,o){const l=y3(i);if(!l)return i.error("No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.",t,n);let d=n.resolvedImportSources[o];if(!d){if(o.startsWith(".")){const m=iI(n.filename,"..",o);d=o_e(m,l)}else i.error("Type import from non-relative sources is not supported in the browser build.",t,n),v3||i.error(`Failed to resolve import source ${JSON.stringify(o)}. typescript is required as a peer dep for vue in order to support resolving types from module imports.`,t,n),d=(n.filename,void 0);d&&(d=n.resolvedImportSources[o]=E4(d))}return d?((i.deps||(i.deps=new Set)).add(d),lV(i,d)):i.error(`Failed to resolve import source ${JSON.stringify(o)}.`,t,n)}function o_e(i,t){i=i.replace(/\.js$/,"");const n=o=>{if(t.fileExists(o))return o};return n(i)||n(i+".ts")||n(i+".d.ts")||n(iI(i,"index.ts"))||n(iI(i,"index.d.ts"))}const F9=ok(),s_e=new Map;const UI=ok();function uV(i){i=E4(i),UI.delete(i),F9.delete(i);const t=s_e.get(i);t&&F9.delete(t)}function lV(i,t,n=!1){const o=UI.get(t);if(o)return o;const d=y3(i).readFile(t)||"",m=c_e(t,d,i.options.babelParserPlugins),$=new m3(t,d,0,fV(m));return b3(i,m,$,n),UI.set(t,$),$}function c_e(i,t,n){const o=D4(i);if(o===".ts"||o===".tsx")return gv(t,{plugins:RI(o.slice(1),n,i.endsWith(".d.ts")),sourceType:"module"}).program.body;if(o===".vue"){const{descriptor:{script:l,scriptSetup:d}}=C4(t);if(!l&&!d)return[];const m=l?l.loc.start.offset:1/0,$=d?d.loc.start.offset:1/0,h=m<$?l:d,e=m<$?d:l;let c=" ".repeat(Math.min(m,$))+h.content;e&&(c+=" ".repeat(e.loc.start.offset-l.loc.end.offset)+e.content);const P=(l==null?void 0:l.lang)||(d==null?void 0:d.lang);return gv(c,{plugins:RI(P,n),sourceType:"module"}).program.body}return[]}function Ck(i){if(i.scope)return i.scope;const t="ast"in i?i.ast:i.scriptAst?[...i.scriptAst.body,...i.scriptSetupAst.body]:i.scriptSetupAst.body,n=new m3(i.filename,i.source,"startOffset"in i?i.startOffset:0,"userImports"in i?Object.create(i.userImports):fV(t));return b3(i,t,n),i.scope=n}function u_e(i,t,n){if(t._resolvedChildScope)return t._resolvedChildScope;const o=new m3(n.filename,n.source,n.offset,Object.create(n.imports),Object.create(n.types),Object.create(n.declares));if(t.body.type==="TSModuleDeclaration"){const l=t.body;l._ownerScope=o;const d=L1(l.id);o.types[d]=o.exportedTypes[d]=l}else b3(i,t.body.body,o);return t._resolvedChildScope=o}const l_e=/^Import|^Export/;function b3(i,t,n,o=!1){const{types:l,declares:d,exportedTypes:m,exportedDeclares:$,imports:h}=n,e=o?!t.some(c=>l_e.test(c.type)):!1;for(const c of t)if(o){if(e)c.declare&&d1(c,l,d);else if(c.type==="TSModuleDeclaration"&&c.global)for(const P of c.body.body)d1(P,l,d)}else d1(c,l,d);if(!o)for(const c of t)if(c.type==="ExportNamedDeclaration"){if(c.declaration)d1(c.declaration,l,d),d1(c.declaration,m,$);else for(const P of c.specifiers)if(P.type==="ExportSpecifier"){const T=P.local.name,s=L1(P.exported);c.source?(h[T]={source:c.source.value,imported:T},m[s]={type:"TSTypeReference",typeName:{type:"Identifier",name:T},_ownerScope:n}):l[T]&&(m[s]=l[T])}}else if(c.type==="ExportAllDeclaration"){const P=Ek(i,c.source,n,c.source.value);Object.assign(n.exportedTypes,P.exportedTypes)}else c.type==="ExportDefaultDeclaration"&&c.declaration&&(c.declaration.type!=="Identifier"?(d1(c.declaration,l,d,"default"),d1(c.declaration,m,$,"default")):l[c.declaration.name]&&(m.default=l[c.declaration.name]));for(const c of Object.keys(l)){const P=l[c];P._ownerScope=n,P._ns&&(P._ns._ownerScope=n)}for(const c of Object.keys(d))d[c]._ownerScope=n}function d1(i,t,n,o){switch(i.type){case"TSInterfaceDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":{const l=o||L1(i.id);let d=t[l];if(d){if(i.type==="TSModuleDeclaration"){d.type==="TSModuleDeclaration"?S3(d,i):L9(d,i);break}if(d.type==="TSModuleDeclaration"){t[l]=i,L9(i,d);break}if(d.type!==i.type)break;i.type==="TSInterfaceDeclaration"?d.body.body.push(...i.body.body):d.members.push(...i.members)}else t[l]=i;break}case"ClassDeclaration":t[o||L1(i.id)]=i;break;case"TSTypeAliasDeclaration":t[i.id.name]=i.typeAnnotation;break;case"TSDeclareFunction":i.id&&(n[i.id.name]=i);break;case"VariableDeclaration":{if(i.declare)for(const l of i.declarations)l.id.type==="Identifier"&&l.id.typeAnnotation&&(n[l.id.name]=l.id.typeAnnotation.typeAnnotation);break}}}function S3(i,t){const n=i.body,o=t.body;n.type==="TSModuleDeclaration"?o.type==="TSModuleDeclaration"?S3(n,o):o.body.push({type:"ExportNamedDeclaration",declaration:n,exportKind:"type",specifiers:[]}):o.type==="TSModuleDeclaration"?n.body.push({type:"ExportNamedDeclaration",declaration:o,exportKind:"type",specifiers:[]}):n.body.push(...o.body)}function L9(i,t){i._ns?S3(i._ns,t):i._ns=t}function fV(i){const t=Object.create(null);for(const n of i)f_e(n,t);return t}function f_e(i,t){if(i.type==="ImportDeclaration")for(const n of i.specifiers)t[n.local.name]={imported:nI(n),source:i.source.value}}function Yd(i,t,n=t._ownerScope||Ck(i)){try{switch(t.type){case"TSStringKeyword":return["String"];case"TSNumberKeyword":return["Number"];case"TSBooleanKeyword":return["Boolean"];case"TSObjectKeyword":return["Object"];case"TSNullKeyword":return["null"];case"TSTypeLiteral":case"TSInterfaceDeclaration":{const o=new Set,l=t.type==="TSTypeLiteral"?t.members:t.body.body;for(const d of l)d.type==="TSCallSignatureDeclaration"||d.type==="TSConstructSignatureDeclaration"?o.add("Function"):o.add("Object");return o.size?Array.from(o):["Object"]}case"TSPropertySignature":if(t.typeAnnotation)return Yd(i,t.typeAnnotation.typeAnnotation,n);case"TSMethodSignature":case"TSFunctionType":return["Function"];case"TSArrayType":case"TSTupleType":return["Array"];case"TSLiteralType":switch(t.literal.type){case"StringLiteral":return["String"];case"BooleanLiteral":return["Boolean"];case"NumericLiteral":case"BigIntLiteral":return["Number"];default:return[T1]}case"TSTypeReference":{const o=dh(i,t,n);if(o)return Yd(i,o,o._ownerScope);if(t.typeName.type==="Identifier")switch(t.typeName.name){case"Array":case"Function":case"Object":case"Set":case"Map":case"WeakSet":case"WeakMap":case"Date":case"Promise":return[t.typeName.name];case"Partial":case"Required":case"Readonly":case"Record":case"Pick":case"Omit":case"InstanceType":return["Object"];case"Uppercase":case"Lowercase":case"Capitalize":case"Uncapitalize":return["String"];case"Parameters":case"ConstructorParameters":return["Array"];case"NonNullable":if(t.typeParameters&&t.typeParameters.params[0])return Yd(i,t.typeParameters.params[0],n).filter(l=>l!=="null");break;case"Extract":if(t.typeParameters&&t.typeParameters.params[1])return Yd(i,t.typeParameters.params[1],n);break;case"Exclude":case"OmitThisParameter":if(t.typeParameters&&t.typeParameters.params[0])return Yd(i,t.typeParameters.params[0],n);break}break}case"TSParenthesizedType":return Yd(i,t.typeAnnotation,n);case"TSUnionType":return PN(i,t.types,n);case"TSIntersectionType":return PN(i,t.types,n).filter(o=>o!==T1);case"TSEnumDeclaration":return p_e(t);case"TSSymbolKeyword":return["Symbol"];case"TSIndexedAccessType":{const o=aV(i,t,n);return PN(i,o,n)}case"ClassDeclaration":return["Object"];case"TSImportType":{const o=Ek(i,t.argument,n,t.argument.value),l=dh(i,t,o);if(l)return Yd(i,l,l._ownerScope);break}case"TSTypeQuery":{const o=t.exprName;if(o.type==="Identifier"){const l=n.declares[o.name];if(l)return Yd(i,l,l._ownerScope)}break}}}catch{}return[T1]}function PN(i,t,n){return t.length===1?Yd(i,t[0],n):[...new Set([].concat(...t.map(o=>Yd(i,o,n))))]}function p_e(i){const t=new Set;for(const n of i.members)if(n.initializer)switch(n.initializer.type){case"StringLiteral":t.add("String");break;case"NumericLiteral":t.add("Number");break}return t.size?[...t]:["Number"]}function R9({props:i},t){const n={props:{}};for(const o in i){const l=i[o];n.props[o]=VI(l.key,l.typeAnnotation.typeAnnotation,t)}return n}function VI(i,t,n,o=!0,l=!0){if(l&&t.type==="TSTypeLiteral"){const d=B9(t,"type");if(d){const m=B9(t,"required"),$=m&&m.type==="TSLiteralType"&&m.literal.type==="BooleanLiteral"?!m.literal.value:!0;return VI(i,d,n,$,!1)}}else if(t.type==="TSTypeReference"&&t.typeName.type==="Identifier"){if(t.typeName.name.endsWith("Constructor"))return LS(i,d_e(t.typeName.name),n,o);if(t.typeName.name==="PropType"&&t.typeParameters)return LS(i,t.typeParameters.params[0],n,o)}if((t.type==="TSTypeReference"||t.type==="TSImportType")&&t.typeParameters)for(const d of t.typeParameters.params){const m=VI(i,d,n,o);if(m)return m}return LS(i,{type:"TSNullKeyword"},n,o)}function d_e(i){const t=i.slice(0,-11);switch(t){case"String":case"Number":case"Boolean":return{type:`TS${t}Keyword`};case"Array":case"Function":case"Object":case"Set":case"Map":case"WeakSet":case"WeakMap":case"Date":case"Promise":return{type:"TSTypeReference",typeName:{type:"Identifier",name:t}}}return{type:"TSNullKeyword"}}function B9(i,t){const n=i.members.find(o=>o.type==="TSPropertySignature"&&!o.computed&&L1(o.key)===t&&o.typeAnnotation);return n&&n.typeAnnotation.typeAnnotation}function __e(i,t,n){var o;let l=t;if((t.type==="TSTypeReference"||t.type==="TSTypeQuery"||t.type==="TSImportType")&&(l=dh(i,t,n)),!!l){if(l.type==="TSFunctionType")return(o=l.typeAnnotation)==null?void 0:o.typeAnnotation;if(l.type==="TSDeclareFunction")return l.returnType}}function pV(i,t,n){if(t.type==="TSTypeReference"){const l=dh(i,t,n);l&&(t=l)}let o;return t.type==="TSUnionType"?o=t.types.flatMap(l=>pV(i,l,n)):o=[t],o}const dV="defineModel";function j9(i,t,n){if(!i.options.defineModel||!bd(t,dV))return!1;k1(`This project is using defineModel(), which is an experimental feature. It may receive breaking changes or be removed in the future, so use at your own risk.
To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/503.`),i.hasDefineModelCall=!0;const o=t.typeParameters&&t.typeParameters.params[0]||void 0;let l,d;const m=t.arguments[0]&&hh(t.arguments[0]);m&&m.type==="StringLiteral"?(l=m.value,d=t.arguments[1]):(l="modelValue",d=m),i.modelDecls[l]&&i.error(`duplicate model name ${JSON.stringify(l)}`,t);const $=d&&i.getString(d);i.modelDecls[l]={type:o,options:$,identifier:n&&n.type==="Identifier"?n.name:void 0},i.bindingMetadata[l]="props";let h="";if(d)if(d.type==="ObjectExpression"){const e=d.properties.find(c=>c.type==="ObjectProperty"&&(c.key.type==="Identifier"&&c.key.name==="local"||c.key.type==="StringLiteral"&&c.key.value==="local"));if(e)h=`{ ${i.getString(e)} }`;else for(const c of d.properties)if(c.type==="SpreadElement"||c.computed){h=$;break}}else h=$;return i.s.overwrite(i.startOffset+t.start,i.startOffset+t.end,`${i.helper("useModel")}(__props, ${JSON.stringify(l)}${h?`, ${h}`:""})`),!0}function m_e(i){if(!i.hasDefineModelCall)return;const t=!!i.options.isProd;let n="";for(const[o,{type:l,options:d}]of Object.entries(i.modelDecls)){let m=!1,$=l&&Yd(i,l);if($){const P=$.includes(T1);$=$.filter(T=>T===T1?!1:t?T==="Boolean"||T==="Function"&&d:!0),m=!t&&P&&$.length>0}let h=$&&$.length>0&&tI($)||void 0;const e=rI([h&&`type: ${h}`,m&&"skipCheck: true"]);let c;h&&d?c=i.isTS?`{ ${e}, ...${d} }`:`Object.assign({ ${e} }, ${d})`:c=d||(h?`{ ${e} }`:"{}"),n+=`
${JSON.stringify(o)}: ${c},`}return`{${n}
}`}const sp="defineProps",z0="withDefaults";function zI(i,t,n){if(!bd(t,sp))return g_e(i,t,n);if(i.hasDefinePropsCall&&i.error(`duplicate ${sp}() call`,t),i.hasDefinePropsCall=!0,i.propsRuntimeDecl=t.arguments[0],i.propsRuntimeDecl)for(const o of LI(i.propsRuntimeDecl))o in i.bindingMetadata||(i.bindingMetadata[o]="props");return t.typeParameters&&(i.propsRuntimeDecl&&i.error(`${sp}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,t),i.propsTypeDecl=t.typeParameters.params[0]),n&&(n.type==="ObjectPattern"?x_e(i,n):i.propsIdentifier=i.getString(n)),!0}function g_e(i,t,n){return bd(t,z0)?(zI(i,t.arguments[0],n)?(i.propsRuntimeDecl&&i.error(`${z0} can only be used with type-based ${sp} declaration.`,t),i.propsDestructureDecl&&i.error(`${z0}() is unnecessary when using destructure with ${sp}().
Prefer using destructure default values, e.g. const { foo = 1 } = defineProps(...).`,t.callee),i.propsRuntimeDefaults=t.arguments[1],i.propsRuntimeDefaults||i.error(`The 2nd argument of ${z0} is required.`,t)):i.error(`${z0}' first argument must be a ${sp} call.`,t.arguments[0]||t),!0):!1}function h_e(i){let t;if(i.propsRuntimeDecl){if(t=i.getString(i.propsRuntimeDecl).trim(),i.propsDestructureDecl){const o=[];for(const l in i.propsDestructuredBindings){const d=_V(i,l),m=_j(l);d&&o.push(`${m}: ${d.valueString}${d.needSkipFactory?`, __skip_${m}: true`:""}`)}o.length&&(t=`${i.helper("mergeDefaults")}(${t}, {
${o.join(`,
`)}
})`)}}else i.propsTypeDecl&&(t=v_e(i));const n=m_e(i);return t&&n?`${i.helper("mergeModels")}(${t}, ${n})`:n||t}function v_e(i){const t=y_e(i,i.propsTypeDecl);if(!t.length)return;const n=[],o=S_e(i);for(const d of t)n.push(b_e(i,d,o)),d.key in i.bindingMetadata||(i.bindingMetadata[d.key]="props");let l=`{
${n.join(`,
`)}
}`;return i.propsRuntimeDefaults&&!o&&(l=`${i.helper("mergeDefaults")}(${l}, ${i.getString(i.propsRuntimeDefaults)})`),l}function y_e(i,t){const n=[],o=np(i,t);for(const l in o.props){const d=o.props[l];let m=Yd(i,d),$=!1;m.includes(T1)&&(m.includes("Boolean")||m.includes("Function")?(m=m.filter(h=>h!==T1),$=!0):m=["null"]),n.push({key:l,required:!d.optional,type:m||["null"],skipCheck:$})}return n}function b_e(i,{key:t,required:n,type:o,skipCheck:l},d){let m;const $=_V(i,t,o);if($)m=`default: ${$.valueString}${$.needSkipFactory?", skipFactory: true":""}`;else if(d){const e=i.propsRuntimeDefaults.properties.find(c=>c.type==="SpreadElement"?!1:T4(c.key,c.computed)===t);e&&(e.type==="ObjectProperty"?m=`default: ${i.getString(e.value)}`:m=`${e.async?"async ":""}${e.kind!=="method"?`${e.kind} `:""}default() ${i.getString(e.body)}`)}const h=_j(t);return i.options.isProd?o.some(e=>e==="Boolean"||(!d||m)&&e==="Function")?`${h}: { ${rI([`type: ${tI(o)}`,m])} }`:`${h}: ${m?`{ ${m} }`:"{}"}`:`${h}: { ${rI([`type: ${tI(o)}`,`required: ${n}`,l&&"skipCheck: true",m])} }`}function S_e(i){return!!(i.propsRuntimeDefaults&&i.propsRuntimeDefaults.type==="ObjectExpression"&&i.propsRuntimeDefaults.properties.every(t=>t.type!=="SpreadElement"&&(!t.computed||t.key.type.endsWith("Literal"))))}function _V(i,t,n){const o=i.propsDestructuredBindings[t],l=o&&o.default;if(l){const d=i.getString(l),m=hh(l);if(n&&n.length&&!n.includes("null")){const e=D_e(m);e&&!n.includes(e)&&i.error(`Default value of prop "${t}" does not match declared type.`,m)}const $=!n&&(km(m)||m.type==="Identifier");return{valueString:!$&&!pj(m)&&!(n!=null&&n.includes("Function"))?`() => (${d})`:d,needSkipFactory:$}}}function D_e(i){switch(i.type){case"StringLiteral":return"String";case"NumericLiteral":return"Number";case"BooleanLiteral":return"Boolean";case"ObjectExpression":return"Object";case"ArrayExpression":return"Array";case"FunctionExpression":case"ArrowFunctionExpression":return"Function"}}function x_e(i,t){if(!i.options.propsDestructure&&!i.options.reactivityTransform){i.propsIdentifier=i.getString(t);return}k1(`This project is using reactive props destructure, which is an experimental feature. It may receive breaking changes or be removed in the future, so use at your own risk.
To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/502.`),i.propsDestructureDecl=t;const n=(o,l,d)=>{i.propsDestructuredBindings[o]={local:l,default:d},l!==o&&(i.bindingMetadata[l]="props-aliased",(i.bindingMetadata.__propsAliases||(i.bindingMetadata.__propsAliases={}))[l]=o)};for(const o of t.properties)if(o.type==="ObjectProperty"){const l=T4(o.key,o.computed);if(l||i.error(`${sp}() destructure cannot use computed key.`,o.key),o.value.type==="AssignmentPattern"){const{left:d,right:m}=o.value;d.type!=="Identifier"&&i.error(`${sp}() destructure does not support nested patterns.`,d),n(l,d.name,m)}else o.value.type==="Identifier"?n(l,o.value.name):i.error(`${sp}() destructure does not support nested patterns.`,o.value)}else i.propsDestructureRestId=o.argument.name,i.bindingMetadata[i.propsDestructureRestId]="setup-reactive-const"}function T_e(i,t){if(!i.options.propsDestructure&&!i.options.reactivityTransform)return;const n={},o=[n];let l=n;const d=new WeakSet,m=[],$=Object.create(null);for(const W in i.propsDestructuredBindings){const{local:E}=i.propsDestructuredBindings[W];n[E]=!0,$[E]=W}function h(){o.push(l=Object.create(l))}function e(){o.pop(),l=o[o.length-1]||null}function c(W){d.add(W),l?l[W.name]=!1:i.error("registerBinding called without active scope, something is wrong.",W)}function P(W,E=!1){for(const v of W.body)if(v.type==="VariableDeclaration")T(v,E);else if(v.type==="FunctionDeclaration"||v.type==="ClassDeclaration"){if(v.declare||!v.id)continue;c(v.id)}else(v.type==="ForOfStatement"||v.type==="ForInStatement")&&v.left.type==="VariableDeclaration"?T(v.left):v.type==="ExportNamedDeclaration"&&v.declaration&&v.declaration.type==="VariableDeclaration"?T(v.declaration,E):v.type==="LabeledStatement"&&v.body.type==="VariableDeclaration"&&T(v.body,E)}function T(W,E=!1){if(!W.declare)for(const v of W.declarations){const S=E&&v.init&&bd(hh(v.init),"defineProps");for(const te of A_(v.id))S?d.add(te):c(te)}}function s(W,E,v){(E.type==="AssignmentExpression"&&W===E.left||E.type==="UpdateExpression")&&i.error("Cannot assign to destructured props as they are readonly.",W),ky(E)&&E.shorthand?(!E.inPattern||Cy(E,v))&&i.s.appendLeft(W.end+i.startOffset,`: ${i2($[W.name])}`):i.s.overwrite(W.start+i.startOffset,W.end+i.startOffset,i2($[W.name]))}function D(W,E,v=E){if(bd(W,v)){const S=hh(W.arguments[0]);S.type==="Identifier"&&l[S.name]&&i.error(`"${S.name}" is a destructured prop and should not be passed directly to ${E}(). Pass a getter () => ${S.name} instead.`,S)}}const O=i.scriptSetupAst;P(O,!0),OD(O,{enter(W,E){if(E&&m.push(E),E&&E.type.startsWith("TS")&&E.type!=="TSAsExpression"&&E.type!=="TSNonNullExpression"&&E.type!=="TSTypeAssertion")return this.skip();if(D(W,"watch",t.watch),D(W,"toRef",t.toRef),km(W)){h(),rk(W,c),W.body.type==="BlockStatement"&&P(W.body);return}if(W.type==="CatchClause"){h(),W.param&&W.param.type==="Identifier"&&c(W.param),P(W.body);return}if(W.type==="BlockStatement"&&!km(E)){h(),P(W);return}W.type==="Identifier"&&ek(W,E,m)&&!d.has(W)&&l[W.name]&&s(W,E,m)},leave(W,E){E&&m.pop(),(W.type==="BlockStatement"&&!km(E)||km(W))&&e()}})}const P1="defineEmits";function J9(i,t,n){return bd(t,P1)?(i.hasDefineEmitCall&&i.error(`duplicate ${P1}() call`,t),i.hasDefineEmitCall=!0,i.emitsRuntimeDecl=t.arguments[0],t.typeParameters&&(i.emitsRuntimeDecl&&i.error(`${P1}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,t),i.emitsTypeDecl=t.typeParameters.params[0]),n&&(i.emitIdentifier=n.type==="Identifier"?n.name:i.getString(n)),!0):!1}function E_e(i){let t="";if(i.emitsRuntimeDecl)t=i.getString(i.emitsRuntimeDecl).trim();else if(i.emitsTypeDecl){const n=C_e(i);t=n.size?`[${Array.from(n).map(o=>JSON.stringify(o)).join(", ")}]`:""}if(i.hasDefineModelCall){let n=`[${Object.keys(i.modelDecls).map(o=>JSON.stringify(`update:${o}`)).join(", ")}]`;t=t?`${i.helper("mergeModels")}(${t}, ${n})`:n}return t}function C_e(i){const t=new Set,n=i.emitsTypeDecl;if(n.type==="TSFunctionType")return U9(i,n.parameters[0],t),t;const{props:o,calls:l}=np(i,n);let d=!1;for(const m in o)t.add(m),d=!0;if(l){d&&i.error("defineEmits() type cannot mixed call signature and property syntax.",n);for(const m of l)U9(i,m.parameters[0],t)}return t}function U9(i,t,n){if(t.type==="Identifier"&&t.typeAnnotation&&t.typeAnnotation.type==="TSTypeAnnotation"){const o=pV(i,t.typeAnnotation.typeAnnotation);for(const l of o)l.type==="TSLiteralType"&&l.literal.type!=="UnaryExpression"&&l.literal.type!=="TemplateLiteral"&&n.add(String(l.literal.value))}}const mC="defineExpose";function k_e(i,t){return bd(t,mC)?(i.hasDefineExposeCall&&i.error(`duplicate ${mC}() call`,t),i.hasDefineExposeCall=!0,!0):!1}const xE="defineSlots";function V9(i,t,n){return bd(t,xE)?(i.hasDefineSlotsCall&&i.error(`duplicate ${xE}() call`,t),i.hasDefineSlotsCall=!0,t.arguments.length>0&&i.error(`${xE}() cannot accept arguments`,t),n&&i.s.overwrite(i.startOffset+t.start,i.startOffset+t.end,`${i.helper("useSlots")}()`),!0):!1}const rv="defineOptions";function z9(i,t){if(!bd(t,rv))return!1;if(i.hasDefineOptionsCall&&i.error(`duplicate ${rv}() call`,t),t.typeParameters&&i.error(`${rv}() cannot accept type arguments`,t),!t.arguments[0])return!0;i.hasDefineOptionsCall=!0,i.optionsRuntimeDecl=hh(t.arguments[0]);let n,o,l,d;if(i.optionsRuntimeDecl.type==="ObjectExpression")for(const m of i.optionsRuntimeDecl.properties)(m.type==="ObjectProperty"||m.type==="ObjectMethod")&&m.key.type==="Identifier"&&(m.key.name==="props"&&(n=m),m.key.name==="emits"&&(o=m),m.key.name==="expose"&&(l=m),m.key.name==="slots"&&(d=m));return n&&i.error(`${rv}() cannot be used to declare props. Use ${sp}() instead.`,n),o&&i.error(`${rv}() cannot be used to declare emits. Use ${P1}() instead.`,o),l&&i.error(`${rv}() cannot be used to declare expose. Use ${mC}() instead.`,l),d&&i.error(`${rv}() cannot be used to declare slots. Use ${xE}() instead.`,d),!0}function A_e(i,t,n,o){const l=t.argument.extra&&t.argument.extra.parenthesized?t.argument.extra.parenStart:t.argument.start,d=i.startOffset,m=i.descriptor.source.slice(l+d,t.argument.end+d),$=/\bawait\b/.test(m);i.s.overwrite(t.start+d,l+d,`${n?";":""}(
([__temp,__restore] = ${i.helper("withAsyncContext")}(${$?"async ":""}() => `),i.s.appendLeft(t.end+d,`)),
${o?"":"__temp = "}await __temp,
__restore()${o?"":`,
__temp`}
)`)}var P_e=Object.defineProperty,w_e=Object.defineProperties,N_e=Object.getOwnPropertyDescriptors,W9=Object.getOwnPropertySymbols,I_e=Object.prototype.hasOwnProperty,O_e=Object.prototype.propertyIsEnumerable,q9=(i,t,n)=>t in i?P_e(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,hS=(i,t)=>{for(var n in t||(t={}))I_e.call(t,n)&&q9(i,n,t[n]);if(W9)for(var n of W9(t))O_e.call(t,n)&&q9(i,n,t[n]);return i},wN=(i,t)=>w_e(i,N_e(t));function mV(i,t){var n;t.id||k1("compileScript now requires passing the `id` option.\nUpgrade your vite or vue-loader version for compatibility with the latest experimental proposals.");const o=new Hde(i,t),{script:l,scriptSetup:d,source:m,filename:$}=i,h=t.hoistStatic!==!1&&!l,e=t.id?t.id.replace(/^data-v-/,""):"",c=l&&l.lang,P=d&&d.lang,T=!!t.reactivityTransform;let s;if(!d){if(!l)throw new Error("[@vue/compiler-sfc] SFC contains no <script> tags.");return $de(o,e)}if(l&&c!==P)throw new Error("[@vue/compiler-sfc] <script> and <script setup> must have the same language type.");if(P&&!o.isJS&&!o.isTS)return d;const D=Object.create(null),O=Object.create(null);let W,E=!1,v=!1;const S=o.startOffset,te=o.endOffset,Y=l&&l.loc.start.offset,Z=l&&l.loc.end.offset;function ce(w){const re=w.start+S;let M=w.end+S;for(w.trailingComments&&w.trailingComments.length>0&&(M=w.trailingComments[w.trailingComments.length-1].end+S);M<=m.length&&/\s/.test(m.charAt(M));)M++;o.s.move(re,M,0)}function k(w,re,M,U,H,q){let R=q;q&&o.isTS&&i.template&&!i.template.src&&!i.template.lang&&(R=Dj(re,i)),o.userImports[re]={isType:U,imported:M,local:re,source:w,isFromSetup:H,isUsedInTemplate:R}}function X(w,re){w&&U1(w,M=>{const U=O[M.name];U&&U!=="literal-const"&&o.error(`\`${re}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`,M)})}const A=o.scriptAst,y=o.scriptSetupAst;if(A){for(const w of A.body)if(w.type==="ImportDeclaration")for(const re of w.specifiers){const M=nI(re);k(w.source.value,re.local.name,M,w.importKind==="type"||re.type==="ImportSpecifier"&&re.importKind==="type",!1,!t.inlineTemplate)}}for(const w of y.body)if(w.type==="ImportDeclaration"){ce(w);let re=0;const M=U=>{const H=U>re;re++;const q=w.specifiers[U],R=w.specifiers[U+1];o.s.remove(H?w.specifiers[U-1].end+S:q.start+S,R&&!H?R.start+S:q.end+S)};for(let U=0;U<w.specifiers.length;U++){const H=w.specifiers[U],q=H.local.name,R=nI(H),K=w.source.value,I=o.userImports[q];K==="vue"&&(R===sp||R===P1||R===mC)?(k1(`\`${R}\` is a compiler macro and no longer needs to be imported.`),M(U)):I?I.source===K&&I.imported===R?M(U):o.error("different imports aliased to same local name.",H):k(K,q,R,w.importKind==="type"||H.type==="ImportSpecifier"&&H.importKind==="type",!0,!t.inlineTemplate)}w.specifiers.length&&re===w.specifiers.length&&o.s.remove(w.start+S,w.end+S)}const C={};for(const w in o.userImports){const{source:re,imported:M,local:U}=o.userImports[w];re==="vue"&&(C[M]=U)}if(l&&A){for(const w of A.body)if(w.type==="ExportDefaultDeclaration"){W=w;let re;if(W.declaration.type==="ObjectExpression"?re=W.declaration.properties:W.declaration.type==="CallExpression"&&W.declaration.arguments[0]&&W.declaration.arguments[0].type==="ObjectExpression"&&(re=W.declaration.arguments[0].properties),re)for(const H of re)H.type==="ObjectProperty"&&H.key.type==="Identifier"&&H.key.name==="name"&&(o.hasDefaultExportName=!0),(H.type==="ObjectMethod"||H.type==="ObjectProperty")&&H.key.type==="Identifier"&&H.key.name==="render"&&(o.hasDefaultExportRender=!0);const M=w.start+Y,U=w.declaration.start+Y;o.s.overwrite(M,U,`const ${V0} = `)}else if(w.type==="ExportNamedDeclaration"){const re=w.specifiers.find(M=>M.exported.type==="Identifier"&&M.exported.name==="default");re&&(W=w,w.specifiers.length>1?o.s.remove(re.start+Y,re.end+Y):o.s.remove(w.start+Y,w.end+Y),w.source?o.s.prepend(`import { ${re.local.name} as ${V0} } from '${w.source.value}'
`):o.s.appendLeft(Z,`
const ${V0} = ${re.local.name}
`)),w.declaration&&NN("script",w.declaration,D,C,h)}else(w.type==="VariableDeclaration"||w.type==="FunctionDeclaration"||w.type==="ClassDeclaration"||w.type==="TSEnumDeclaration")&&!w.declare&&NN("script",w,D,C,h);if(T&&yD(l.content)){const{rootRefs:w,importedHelpers:re}=S2(A,o.s,Y);s=w;for(const M of re)o.helperImports.add(M)}Y>S&&(/\n$/.test(l.content.trim())||o.s.appendLeft(Z,`
`),o.s.move(Y,Z,0))}for(const w of y.body){if(w.type==="ExpressionStatement"){const M=hh(w.expression);if(zI(o,M)||J9(o,M)||z9(o,M)||V9(o,M))o.s.remove(w.start+S,w.end+S);else if(k_e(o,M)){const U=M.callee;o.s.overwrite(U.start+S,U.end+S,"__expose")}else j9(o,M)}if(w.type==="VariableDeclaration"&&!w.declare){const M=w.declarations.length;let U=M,H;for(let q=0;q<M;q++){const R=w.declarations[q],K=R.init&&hh(R.init);if(K){z9(o,K)&&o.error(`${rv}() has no returning value, it cannot be assigned.`,w);const I=zI(o,K,R.id),he=!I&&J9(o,K,R.id);if(!he&&(V9(o,K,R.id)||j9(o,K,R.id)),I||he)if(U===1)o.s.remove(w.start+S,w.end+S);else{let le=R.start+S,ee=R.end+S;q===M-1?le=w.declarations[H].end+S:ee=w.declarations[q+1].start+S,o.s.remove(le,ee),U--}else H=q}}}let re=!1;if((w.type==="VariableDeclaration"||w.type==="FunctionDeclaration"||w.type==="ClassDeclaration"||w.type==="TSEnumDeclaration")&&!w.declare&&(re=NN("scriptSetup",w,O,C,h)),h&&re&&ce(w),w.type==="VariableDeclaration"&&!w.declare||w.type.endsWith("Statement")){const M=[y.body];OD(w,{enter(U,H){if(km(U)&&this.skip(),U.type==="BlockStatement"&&M.push(U.body),U.type==="AwaitExpression"){E=!0;const R=M[M.length-1].some((K,I)=>(M.length===1||I>0)&&K.type==="ExpressionStatement"&&K.start===U.start);A_e(o,U,R,H.type==="ExpressionStatement")}},exit(U){U.type==="BlockStatement"&&M.pop()}})}(w.type==="ExportNamedDeclaration"&&w.exportKind!=="type"||w.type==="ExportAllDeclaration"||w.type==="ExportDefaultDeclaration")&&o.error("<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.",w),o.isTS&&(w.type.startsWith("TS")||w.type==="ExportNamedDeclaration"&&w.exportKind==="type"||w.type==="VariableDeclaration"&&w.declare)&&w.type!=="TSEnumDeclaration"&&ce(w)}if(o.propsDestructureDecl&&T_e(o,C),T&&(s||yD(d.content))){const{rootRefs:w,importedHelpers:re}=S2(y,o.s,S,s);s=s?[...s,...w]:w;for(const M of re)o.helperImports.add(M)}X(o.propsRuntimeDecl,sp),X(o.propsRuntimeDefaults,sp),X(o.propsDestructureDecl,sp),X(o.emitsRuntimeDecl,P1),X(o.optionsRuntimeDecl,rv),l?S<Y?(o.s.remove(0,S),o.s.remove(te,Y),o.s.remove(Z,m.length)):(o.s.remove(0,Y),o.s.remove(Z,S),o.s.remove(te,m.length)):(o.s.remove(0,S),o.s.remove(te,m.length)),A&&Object.assign(o.bindingMetadata,tV(A.body));for(const[w,{isType:re,imported:M,source:U}]of Object.entries(o.userImports))re||(o.bindingMetadata[w]=M==="*"||M==="default"&&U.endsWith(".vue")||U==="vue"?"setup-const":"setup-maybe-ref");for(const w in D)o.bindingMetadata[w]=D[w];for(const w in O)o.bindingMetadata[w]=O[w];if(s)for(const w of s)o.bindingMetadata[w]="setup-ref";i.cssVars.length&&!(t.inlineTemplate&&((n=t.templateOptions)!=null&&n.ssr))&&(o.helperImports.add(HE),o.helperImports.add("unref"),o.s.prependLeft(S,`
${Sj(i.cssVars,o.bindingMetadata,e,!!t.isProd)}
`));let B="__props";if(o.propsTypeDecl&&(B+=": any"),o.propsIdentifier&&o.s.prependLeft(S,`
const ${o.propsIdentifier} = __props;
`),o.propsDestructureRestId&&o.s.prependLeft(S,`
const ${o.propsDestructureRestId} = ${o.helper("createPropsRestProxy")}(__props, ${JSON.stringify(Object.keys(o.propsDestructuredBindings))});
`),E){const w=o.isTS?": any":"";o.s.prependLeft(S,`
let __temp${w}, __restore${w}
`)}const F=o.hasDefineExposeCall||!t.inlineTemplate?["expose: __expose"]:[];o.emitIdentifier&&F.push(o.emitIdentifier==="emit"?"emit":`emit: ${o.emitIdentifier}`),F.length&&(B+=`, { ${F.join(", ")} }`);let z;if(!t.inlineTemplate||!i.template&&o.hasDefaultExportRender){const w=hS(hS({},D),O);for(const re in o.userImports)!o.userImports[re].isType&&o.userImports[re].isUsedInTemplate&&(w[re]=!0);z="{ ";for(const re in w)if(w[re]===!0&&o.userImports[re].source!=="vue"&&!o.userImports[re].source.endsWith(".vue"))z+=`get ${re}() { return ${re} }, `;else if(o.bindingMetadata[re]==="setup-let"){const M=re==="v"?"_v":"v";z+=`get ${re}() { return ${re} }, set ${re}(${M}) { ${re} = ${M} }, `}else z+=`${re}, `;z=z.replace(/, $/,"")+" }"}else if(i.template&&!i.template.src){t.templateOptions&&t.templateOptions.ssr&&(v=!0);const{code:w,ast:re,preamble:M,tips:U,errors:H}=z4(wN(hS({filename:$,source:i.template.content,inMap:i.template.map},t.templateOptions),{id:e,scoped:i.styles.some(R=>R.scoped),isProd:t.isProd,ssrCssVars:i.cssVars,compilerOptions:wN(hS({},t.templateOptions&&t.templateOptions.compilerOptions),{inline:!0,isTS:o.isTS,bindingMetadata:o.bindingMetadata})}));U.length&&U.forEach(k1);const q=H[0];if(typeof q=="string")throw new Error(q);if(q)throw q.loc&&(q.message+=`
`+i.filename+`
`+w1(m,q.loc.start.offset,q.loc.end.offset)+`
`),q;M&&o.s.prepend(M),re&&re.helpers.has(c2)&&o.helperImports.delete("unref"),z=w}else z="() => {}";t.inlineTemplate?o.s.appendRight(te,`
return ${z}
}
`):o.s.appendRight(te,`
const __returned__ = ${z}
Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })
return __returned__
}
`);const ge=t.genDefaultAs?`const ${t.genDefaultAs} =`:"export default";let Pe="";if(!o.hasDefaultExportName&&$&&$!==xj){const w=$.match(/([^/\\]+)\.\w+$/);w&&(Pe+=`
__name: '${w[1]}',`)}v&&(Pe+=`
__ssrInlineRender: true,`);const fe=h_e(o);fe&&(Pe+=`
props: ${fe},`);const _e=E_e(o);_e&&(Pe+=`
emits: ${_e},`);let ne="";o.optionsRuntimeDecl&&(ne=d.content.slice(o.optionsRuntimeDecl.start,o.optionsRuntimeDecl.end).trim());const oe=o.hasDefineExposeCall||t.inlineTemplate?"":` __expose();
`;if(o.isTS){const w=(W?`
...${V0},`:"")+(ne?`
...${ne},`:"");o.s.prependLeft(S,`
${ge} /*#__PURE__*/${o.helper("defineComponent")}({${w}${Pe}
${E?"async ":""}setup(${B}) {
${oe}`),o.s.appendRight(te,"})")}else W||ne?(o.s.prependLeft(S,`
${ge} /*#__PURE__*/Object.assign(${W?`${V0}, `:""}${ne?`${ne}, `:""}{${Pe}
${E?"async ":""}setup(${B}) {
${oe}`),o.s.appendRight(te,"})")):(o.s.prependLeft(S,`
${ge} {${Pe}
${E?"async ":""}setup(${B}) {
${oe}`),o.s.appendRight(te,"}"));return o.helperImports.size>0&&o.s.prepend(`import { ${[...o.helperImports].map(w=>`${w} as _${w}`).join(", ")} } from 'vue'
`),o.s.trim(),wN(hS({},d),{bindings:o.bindingMetadata,imports:o.userImports,content:o.s.toString(),map:t.sourceMap!==!1?o.s.generateMap({source:$,hires:!0,includeContent:!0}):void 0,scriptAst:A==null?void 0:A.body,scriptSetupAst:y==null?void 0:y.body,deps:o.deps?[...o.deps]:void 0})}function r2(i,t,n){i[t.name]=n}function NN(i,t,n,o,l){let d=!1;if(t.type==="VariableDeclaration"){const m=t.kind==="const";d=m&&t.declarations.every($=>$.id.type==="Identifier"&&Sg($.init));for(const{id:$,init:h}of t.declarations){const e=h&&hh(h),c=!!(m&&bd(e,P=>P===sp||P===P1||P===z0));if($.type==="Identifier"){let P;const T=o.reactive;(l||i==="script")&&(d||m&&Sg(e))?P="literal-const":bd(e,T)?P=m?"setup-reactive-const":"setup-let":c||m&&vV(e,T)?P=bd(e,sp)?"setup-reactive-const":"setup-const":m?bd(e,s=>s===o.ref||s===o.computed||s===o.shallowRef||s===o.customRef||s===o.toRef||s===dV)?P="setup-ref":P="setup-maybe-ref":P="setup-let",r2(n,$,P)}else{if(bd(e,sp))continue;$.type==="ObjectPattern"?gV($,n,m,c):$.type==="ArrayPattern"&&hV($,n,m,c)}}}else t.type==="TSEnumDeclaration"?(d=t.members.every(m=>!m.initializer||Sg(m.initializer)),n[t.id.name]=d?"literal-const":"setup-const"):(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration")&&(n[t.id.name]="setup-const");return d}function gV(i,t,n,o=!1){for(const l of i.properties)if(l.type==="ObjectProperty")if(l.key.type==="Identifier"&&l.key===l.value){const d=o?"setup-const":n?"setup-maybe-ref":"setup-let";r2(t,l.key,d)}else D3(l.value,t,n,o);else{const d=n?"setup-const":"setup-let";r2(t,l.argument,d)}}function hV(i,t,n,o=!1){for(const l of i.elements)l&&D3(l,t,n,o)}function D3(i,t,n,o=!1){if(i.type==="Identifier")r2(t,i,o?"setup-const":n?"setup-maybe-ref":"setup-let");else if(i.type==="RestElement"){const l=n?"setup-const":"setup-let";r2(t,i.argument,l)}else if(i.type==="ObjectPattern")gV(i,t,n);else if(i.type==="ArrayPattern")hV(i,t,n);else if(i.type==="AssignmentPattern")if(i.left.type==="Identifier"){const l=o?"setup-const":n?"setup-maybe-ref":"setup-let";r2(t,i.left,l)}else D3(i.left,t,n)}function vV(i,t){if(bd(i,t))return!0;switch(i.type){case"UnaryExpression":case"BinaryExpression":case"ArrayExpression":case"ObjectExpression":case"FunctionExpression":case"ArrowFunctionExpression":case"UpdateExpression":case"ClassExpression":case"TaggedTemplateExpression":return!0;case"SequenceExpression":return vV(i.expressions[i.expressions.length-1],t);default:return!!pj(i)}}function Sg(i){switch(i=hh(i),i.type){case"UnaryExpression":return Sg(i.argument);case"LogicalExpression":case"BinaryExpression":return Sg(i.left)&&Sg(i.right);case"ConditionalExpression":return Sg(i.test)&&Sg(i.consequent)&&Sg(i.alternate);case"SequenceExpression":case"TemplateLiteral":return i.expressions.every(t=>Sg(t));case"ParenthesizedExpression":return Sg(i.expression);case"StringLiteral":case"NumericLiteral":case"BooleanLiteral":case"NullLiteral":case"BigIntLiteral":return!0}return!1}const yV="3.3.4",x3=OD,M_e=Object.freeze(Object.defineProperty({__proto__:null,MagicString:yh,babelParse:gv,compileScript:mV,compileStyle:XU,compileStyleAsync:YU,compileTemplate:z4,extractIdentifiers:A_,generateCodeFrame:w1,inferRuntimeType:Yd,invalidateTypeCache:uV,isInDestructureAssignment:Cy,isStaticProperty:ky,parse:C4,parseCache:KE,registerTS:cV,resolveTypeElements:np,rewriteDefault:nV,rewriteDefaultAST:Tk,shouldTransformRef:yD,transformRef:rV,transformRefAST:S2,version:yV,walk:x3,walkIdentifiers:U1},Symbol.toStringTag,{value:"Module"})),F_e=ER(M_e);var IN={exports:{}};const L_e={},R_e=Object.freeze(Object.defineProperty({__proto__:null,default:L_e},Symbol.toStringTag,{value:"Module"})),Yh=ER(R_e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var $9;function B_e(){return $9||($9=1,function(i){var t=Lp&&Lp.__spreadArray||function(e,c,P){if(P||arguments.length===2)for(var T=0,s=c.length,D;T<s;T++)(D||!(T in c))&&(D||(D=Array.prototype.slice.call(c,0,T)),D[T]=c[T]);return e.concat(D||Array.prototype.slice.call(c))},n=Lp&&Lp.__assign||function(){return n=Object.assign||function(e){for(var c,P=1,T=arguments.length;P<T;P++){c=arguments[P];for(var s in c)Object.prototype.hasOwnProperty.call(c,s)&&(e[s]=c[s])}return e},n.apply(this,arguments)},o=Lp&&Lp.__makeTemplateObject||function(e,c){return Object.defineProperty?Object.defineProperty(e,"raw",{value:c}):e.raw=c,e},l=Lp&&Lp.__generator||function(e,c){var P={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},T,s,D,O;return O={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function W(v){return function(S){return E([v,S])}}function E(v){if(T)throw new TypeError("Generator is already executing.");for(;O&&(O=0,v[0]&&(P=0)),P;)try{if(T=1,s&&(D=v[0]&2?s.return:v[0]?s.throw||((D=s.return)&&D.call(s),0):s.next)&&!(D=D.call(s,v[1])).done)return D;switch(s=0,D&&(v=[v[0]&2,D.value]),v[0]){case 0:case 1:D=v;break;case 4:return P.label++,{value:v[1],done:!1};case 5:P.label++,s=v[1],v=[0];continue;case 7:v=P.ops.pop(),P.trys.pop();continue;default:if(D=P.trys,!(D=D.length>0&&D[D.length-1])&&(v[0]===6||v[0]===2)){P=0;continue}if(v[0]===3&&(!D||v[1]>D[0]&&v[1]<D[3])){P.label=v[1];break}if(v[0]===6&&P.label<D[1]){P.label=D[1],D=v;break}if(D&&P.label<D[2]){P.label=D[2],P.ops.push(v);break}D[2]&&P.ops.pop(),P.trys.pop();continue}v=c.call(e,P)}catch(S){v=[6,S],s=0}finally{T=D=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},d=Lp&&Lp.__rest||function(e,c){var P={};for(var T in e)Object.prototype.hasOwnProperty.call(e,T)&&c.indexOf(T)<0&&(P[T]=e[T]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,T=Object.getOwnPropertySymbols(e);s<T.length;s++)c.indexOf(T[s])<0&&Object.prototype.propertyIsEnumerable.call(e,T[s])&&(P[T[s]]=e[T[s]]);return P},m=Lp&&Lp.__extends||function(){var e=function(c,P){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,s){T.__proto__=s}||function(T,s){for(var D in s)Object.prototype.hasOwnProperty.call(s,D)&&(T[D]=s[D])},e(c,P)};return function(c,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");e(c,P);function T(){this.constructor=c}c.prototype=P===null?Object.create(P):(T.prototype=P.prototype,new T)}}(),h;(function(e){e.versionMajorMinor="4.9",e.version="".concat(e.versionMajorMinor,".5"),function(P){P[P.LessThan=-1]="LessThan",P[P.EqualTo=0]="EqualTo",P[P.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={}));var c;(function(P){var T=typeof globalThis<"u"?globalThis:typeof Lp<"u"?Lp:typeof self<"u"?self:void 0;function s(){var O=T==null?void 0:T.Map,W=typeof O<"u"&&"entries"in O.prototype&&new O([[0,0]]).size===1?O:void 0;if(!W)throw new Error("No compatible Map implementation found.");return W}P.tryGetNativeMap=s;function D(){var O=T==null?void 0:T.Set,W=typeof O<"u"&&"entries"in O.prototype&&new O([0]).size===1?O:void 0;if(!W)throw new Error("No compatible Set implementation found.");return W}P.tryGetNativeSet=D})(c||(c={})),e.Map=c.tryGetNativeMap(),e.Set=c.tryGetNativeSet()})(h||(h={}));var h;(function(e){function c(Ve){if(Ve){if(Or(Ve))return Hr(Ve);if(Ve instanceof e.Map)return Ve.entries();if(Ve instanceof e.Set)return Ve.values();throw new Error("Iteration not supported.")}}e.getIterator=c,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function P(Ve){return Ve?Ve.length:0}e.length=P;function T(Ve,yr){if(Ve)for(var Er=0;Er<Ve.length;Er++){var Wr=yr(Ve[Er],Er);if(Wr)return Wr}}e.forEach=T;function s(Ve,yr){if(Ve)for(var Er=Ve.length-1;Er>=0;Er--){var Wr=yr(Ve[Er],Er);if(Wr)return Wr}}e.forEachRight=s;function D(Ve,yr){if(Ve!==void 0)for(var Er=0;Er<Ve.length;Er++){var Wr=yr(Ve[Er],Er);if(Wr!==void 0)return Wr}}e.firstDefined=D;function O(Ve,yr){for(;;){var Er=Ve.next();if(Er.done)return;var Wr=yr(Er.value);if(Wr!==void 0)return Wr}}e.firstDefinedIterator=O;function W(Ve,yr,Er){var Wr=Er;if(Ve)for(var Ot=Ve.next(),ln=0;!Ot.done;Ot=Ve.next(),ln++)Wr=yr(Wr,Ot.value,ln);return Wr}e.reduceLeftIterator=W;function E(Ve,yr,Er){var Wr=[];e.Debug.assertEqual(Ve.length,yr.length);for(var Ot=0;Ot<Ve.length;Ot++)Wr.push(Er(Ve[Ot],yr[Ot],Ot));return Wr}e.zipWith=E;function v(Ve,yr){e.Debug.assertEqual(Ve.length,yr.length);var Er=0;return{next:function(){return Er===Ve.length?{value:void 0,done:!0}:(Er++,{value:[Ve[Er-1],yr[Er-1]],done:!1})}}}e.zipToIterator=v;function S(Ve,yr){e.Debug.assert(Ve.length===yr.length);for(var Er=new e.Map,Wr=0;Wr<Ve.length;++Wr)Er.set(Ve[Wr],yr[Wr]);return Er}e.zipToMap=S;function te(Ve,yr){if(Ve.length<=1)return Ve;for(var Er=[],Wr=0,Ot=Ve.length;Wr<Ot;Wr++)Wr&&Er.push(yr),Er.push(Ve[Wr]);return Er}e.intersperse=te;function Y(Ve,yr){if(Ve){for(var Er=0;Er<Ve.length;Er++)if(!yr(Ve[Er],Er))return!1}return!0}e.every=Y;function Z(Ve,yr,Er){if(Ve!==void 0)for(var Wr=Er??0;Wr<Ve.length;Wr++){var Ot=Ve[Wr];if(yr(Ot,Wr))return Ot}}e.find=Z;function ce(Ve,yr,Er){if(Ve!==void 0)for(var Wr=Er??Ve.length-1;Wr>=0;Wr--){var Ot=Ve[Wr];if(yr(Ot,Wr))return Ot}}e.findLast=ce;function k(Ve,yr,Er){if(Ve===void 0)return-1;for(var Wr=Er??0;Wr<Ve.length;Wr++)if(yr(Ve[Wr],Wr))return Wr;return-1}e.findIndex=k;function X(Ve,yr,Er){if(Ve===void 0)return-1;for(var Wr=Er??Ve.length-1;Wr>=0;Wr--)if(yr(Ve[Wr],Wr))return Wr;return-1}e.findLastIndex=X;function A(Ve,yr){for(var Er=0;Er<Ve.length;Er++){var Wr=yr(Ve[Er],Er);if(Wr)return Wr}return e.Debug.fail()}e.findMap=A;function y(Ve,yr,Er){if(Er===void 0&&(Er=An),Ve)for(var Wr=0,Ot=Ve;Wr<Ot.length;Wr++){var ln=Ot[Wr];if(Er(ln,yr))return!0}return!1}e.contains=y;function C(Ve,yr,Er){return Er===void 0&&(Er=An),Ve.length===yr.length&&Ve.every(function(Wr,Ot){return Er(Wr,yr[Ot])})}e.arraysEqual=C;function B(Ve,yr,Er){for(var Wr=Er||0;Wr<Ve.length;Wr++)if(y(yr,Ve.charCodeAt(Wr)))return Wr;return-1}e.indexOfAnyCharCode=B;function F(Ve,yr){var Er=0;if(Ve)for(var Wr=0;Wr<Ve.length;Wr++){var Ot=Ve[Wr];yr(Ot,Wr)&&Er++}return Er}e.countWhere=F;function z(Ve,yr){if(Ve){for(var Er=Ve.length,Wr=0;Wr<Er&&yr(Ve[Wr]);)Wr++;if(Wr<Er){var Ot=Ve.slice(0,Wr);for(Wr++;Wr<Er;){var ln=Ve[Wr];yr(ln)&&Ot.push(ln),Wr++}return Ot}}return Ve}e.filter=z;function ge(Ve,yr){for(var Er=0,Wr=0;Wr<Ve.length;Wr++)yr(Ve[Wr],Wr,Ve)&&(Ve[Er]=Ve[Wr],Er++);Ve.length=Er}e.filterMutate=ge;function Pe(Ve){Ve.length=0}e.clear=Pe;function fe(Ve,yr){var Er;if(Ve){Er=[];for(var Wr=0;Wr<Ve.length;Wr++)Er.push(yr(Ve[Wr],Wr))}return Er}e.map=fe;function _e(Ve,yr){return{next:function(){var Er=Ve.next();return Er.done?Er:{value:yr(Er.value),done:!1}}}}e.mapIterator=_e;function ne(Ve,yr){if(Ve)for(var Er=0;Er<Ve.length;Er++){var Wr=Ve[Er],Ot=yr(Wr,Er);if(Wr!==Ot){var ln=Ve.slice(0,Er);for(ln.push(Ot),Er++;Er<Ve.length;Er++)ln.push(yr(Ve[Er],Er));return ln}}return Ve}e.sameMap=ne;function oe(Ve){for(var yr=[],Er=0,Wr=Ve;Er<Wr.length;Er++){var Ot=Wr[Er];Ot&&(Or(Ot)?ue(yr,Ot):yr.push(Ot))}return yr}e.flatten=oe;function w(Ve,yr){var Er;if(Ve)for(var Wr=0;Wr<Ve.length;Wr++){var Ot=yr(Ve[Wr],Wr);Ot&&(Or(Ot)?Er=ue(Er,Ot):Er=qe(Er,Ot))}return Er||e.emptyArray}e.flatMap=w;function re(Ve,yr){var Er=[];if(Ve)for(var Wr=0;Wr<Ve.length;Wr++){var Ot=yr(Ve[Wr],Wr);Ot&&(Or(Ot)?ue(Er,Ot):Er.push(Ot))}return Er}e.flatMapToMutable=re;function M(Ve,yr){var Er=Ve.next();if(Er.done)return e.emptyIterator;var Wr=Ot(Er.value);return{next:function(){for(;;){var ln=Wr.next();if(!ln.done)return ln;var kn=Ve.next();if(kn.done)return kn;Wr=Ot(kn.value)}}};function Ot(ln){var kn=yr(ln);return kn===void 0?e.emptyIterator:Or(kn)?Hr(kn):kn}}e.flatMapIterator=M;function U(Ve,yr){var Er;if(Ve)for(var Wr=0;Wr<Ve.length;Wr++){var Ot=Ve[Wr],ln=yr(Ot,Wr);(Er||Ot!==ln||Or(ln))&&(Er||(Er=Ve.slice(0,Wr)),Or(ln)?ue(Er,ln):Er.push(ln))}return Er||Ve}e.sameFlatMap=U;function H(Ve,yr){for(var Er=[],Wr=0;Wr<Ve.length;Wr++){var Ot=yr(Ve[Wr],Wr);if(Ot===void 0)return;Er.push(Ot)}return Er}e.mapAllOrFail=H;function q(Ve,yr){var Er=[];if(Ve)for(var Wr=0;Wr<Ve.length;Wr++){var Ot=yr(Ve[Wr],Wr);Ot!==void 0&&Er.push(Ot)}return Er}e.mapDefined=q;function R(Ve,yr){return{next:function(){for(;;){var Er=Ve.next();if(Er.done)return Er;var Wr=yr(Er.value);if(Wr!==void 0)return{value:Wr,done:!1}}}}}e.mapDefinedIterator=R;function K(Ve,yr){if(Ve){var Er=new e.Map;return Ve.forEach(function(Wr,Ot){var ln=yr(Ot,Wr);if(ln!==void 0){var kn=ln[0],Cn=ln[1];kn!==void 0&&Cn!==void 0&&Er.set(kn,Cn)}}),Er}}e.mapDefinedEntries=K;function I(Ve,yr){if(Ve){var Er=new e.Set;return Ve.forEach(function(Wr){var Ot=yr(Wr);Ot!==void 0&&Er.add(Ot)}),Er}}e.mapDefinedValues=I;function he(Ve,yr,Er){if(Ve.has(yr))return Ve.get(yr);var Wr=Er();return Ve.set(yr,Wr),Wr}e.getOrUpdate=he;function le(Ve,yr){return Ve.has(yr)?!1:(Ve.add(yr),!0)}e.tryAddToSet=le,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function ee(Ve){var yr=!1;return{next:function(){var Er=yr;return yr=!0,Er?{value:void 0,done:!0}:{value:Ve,done:!1}}}}e.singleIterator=ee;function J(Ve,yr,Er){var Wr;if(Ve){Wr=[];for(var Ot=Ve.length,ln=void 0,kn=void 0,Cn=0,_i=0;Cn<Ot;){for(;_i<Ot;){var qi=Ve[_i];if(kn=yr(qi,_i),_i===0)ln=kn;else if(kn!==ln)break;_i++}if(Cn<_i){var va=Er(Ve.slice(Cn,_i),ln,Cn,_i);va&&Wr.push(va),Cn=_i}ln=kn,_i++}}return Wr}e.spanMap=J;function de(Ve,yr){if(Ve){var Er=new e.Map;return Ve.forEach(function(Wr,Ot){var ln=yr(Ot,Wr),kn=ln[0],Cn=ln[1];Er.set(kn,Cn)}),Er}}e.mapEntries=de;function De(Ve,yr){if(Ve)if(yr)for(var Er=0,Wr=Ve;Er<Wr.length;Er++){var Ot=Wr[Er];if(yr(Ot))return!0}else return Ve.length>0;return!1}e.some=De;function N(Ve,yr,Er){for(var Wr,Ot=0;Ot<Ve.length;Ot++)yr(Ve[Ot])?Wr=Wr===void 0?Ot:Wr:Wr!==void 0&&(Er(Wr,Ot),Wr=void 0);Wr!==void 0&&Er(Wr,Ve.length)}e.getRangesWhere=N;function b(Ve,yr){return De(yr)?De(Ve)?t(t([],Ve,!0),yr,!0):yr:Ve}e.concatenate=b;function Q(Ve,yr){return yr}function G(Ve){return Ve.map(Q)}e.indicesOf=G;function ae(Ve,yr,Er){var Wr=G(Ve);lr(Ve,Wr,Er);for(var Ot=Ve[Wr[0]],ln=[Wr[0]],kn=1;kn<Wr.length;kn++){var Cn=Wr[kn],_i=Ve[Cn];yr(Ot,_i)||(ln.push(Cn),Ot=_i)}return ln.sort(),ln.map(function(qi){return Ve[qi]})}function Te(Ve,yr){for(var Er=[],Wr=0,Ot=Ve;Wr<Ot.length;Wr++){var ln=Ot[Wr];Ue(Er,ln,yr)}return Er}function Ne(Ve,yr,Er){return Ve.length===0?[]:Ve.length===1?Ve.slice():Er?ae(Ve,yr,Er):Te(Ve,yr)}e.deduplicate=Ne;function we(Ve,yr){if(Ve.length===0)return e.emptyArray;for(var Er=Ve[0],Wr=[Er],Ot=1;Ot<Ve.length;Ot++){var ln=Ve[Ot];switch(yr(ln,Er)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}Wr.push(Er=ln)}return Wr}function nr(){return[]}e.createSortedArray=nr;function tr(Ve,yr,Er,Wr){if(Ve.length===0)return Ve.push(yr),!0;var Ot=yt(Ve,yr,Ft,Er);return Ot<0?(Ve.splice(~Ot,0,yr),!0):Wr?(Ve.splice(Ot,0,yr),!0):!1}e.insertSorted=tr;function me(Ve,yr,Er){return we(mr(Ve,yr),Er||yr||Tt)}e.sortAndDeduplicate=me;function He(Ve,yr){if(Ve.length<2)return!0;for(var Er=Ve[0],Wr=0,Ot=Ve.slice(1);Wr<Ot.length;Wr++){var ln=Ot[Wr];if(yr(Er,ln)===1)return!1;Er=ln}return!0}e.arrayIsSorted=He;function rr(Ve,yr,Er){if(Er===void 0&&(Er=An),!Ve||!yr)return Ve===yr;if(Ve.length!==yr.length)return!1;for(var Wr=0;Wr<Ve.length;Wr++)if(!Er(Ve[Wr],yr[Wr],Wr))return!1;return!0}e.arrayIsEqualTo=rr;function je(Ve){var yr;if(Ve)for(var Er=0;Er<Ve.length;Er++){var Wr=Ve[Er];(yr||!Wr)&&(yr||(yr=Ve.slice(0,Er)),Wr&&yr.push(Wr))}return yr||Ve}e.compact=je;function Ce(Ve,yr,Er){if(!yr||!Ve||yr.length===0||Ve.length===0)return yr;var Wr=[];e:for(var Ot=0,ln=0;ln<yr.length;ln++){ln>0&&e.Debug.assertGreaterThanOrEqual(Er(yr[ln],yr[ln-1]),0);r:for(var kn=Ot;Ot<Ve.length;Ot++)switch(Ot>kn&&e.Debug.assertGreaterThanOrEqual(Er(Ve[Ot],Ve[Ot-1]),0),Er(yr[ln],Ve[Ot])){case-1:Wr.push(yr[ln]);continue e;case 0:continue e;case 1:continue r}}return Wr}e.relativeComplement=Ce;function Ae(Ve,yr){for(var Er=0,Wr=0,Ot=Ve;Wr<Ot.length;Wr++){var ln=Ot[Wr];Er+=ln[yr]}return Er}e.sum=Ae;function qe(Ve,yr){return yr===void 0?Ve:Ve===void 0?[yr]:(Ve.push(yr),Ve)}e.append=qe;function xe(Ve,yr){return Ve===void 0?yr:yr===void 0?Ve:Or(Ve)?Or(yr)?b(Ve,yr):qe(Ve,yr):Or(yr)?qe(yr,Ve):[Ve,yr]}e.combine=xe;function L(Ve,yr){return yr<0?Ve.length+yr:yr}function ue(Ve,yr,Er,Wr){if(yr===void 0||yr.length===0)return Ve;if(Ve===void 0)return yr.slice(Er,Wr);Er=Er===void 0?0:L(yr,Er),Wr=Wr===void 0?yr.length:L(yr,Wr);for(var Ot=Er;Ot<Wr&&Ot<yr.length;Ot++)yr[Ot]!==void 0&&Ve.push(yr[Ot]);return Ve}e.addRange=ue;function Ue(Ve,yr,Er){return y(Ve,yr,Er)?!1:(Ve.push(yr),!0)}e.pushIfUnique=Ue;function Je(Ve,yr,Er){return Ve?(Ue(Ve,yr,Er),Ve):[yr]}e.appendIfUnique=Je;function lr(Ve,yr,Er){yr.sort(function(Wr,Ot){return Er(Ve[Wr],Ve[Ot])||at(Wr,Ot)})}function mr(Ve,yr){return Ve.length===0?Ve:Ve.slice().sort(yr)}e.sort=mr;function Hr(Ve){var yr=0;return{next:function(){return yr===Ve.length?{value:void 0,done:!0}:(yr++,{value:Ve[yr-1],done:!1})}}}e.arrayIterator=Hr;function wr(Ve){var yr=Ve.length;return{next:function(){return yr===0?{value:void 0,done:!0}:(yr--,{value:Ve[yr],done:!1})}}}e.arrayReverseIterator=wr;function Oe(Ve,yr){var Er=G(Ve);return lr(Ve,Er,yr),Er.map(function(Wr){return Ve[Wr]})}e.stableSort=Oe;function Ze(Ve,yr,Er,Wr){for(;Er<Wr;){if(Ve[Er]!==yr[Er])return!1;Er++}return!0}e.rangeEquals=Ze;function tt(Ve,yr){if(Ve&&(yr=L(Ve,yr),yr<Ve.length))return Ve[yr]}e.elementAt=tt;function ut(Ve){return Ve===void 0||Ve.length===0?void 0:Ve[0]}e.firstOrUndefined=ut;function or(Ve){return e.Debug.assert(Ve.length!==0),Ve[0]}e.first=or;function qr(Ve){return Ve===void 0||Ve.length===0?void 0:Ve[Ve.length-1]}e.lastOrUndefined=qr;function Rr(Ve){return e.Debug.assert(Ve.length!==0),Ve[Ve.length-1]}e.last=Rr;function zr(Ve){return Ve&&Ve.length===1?Ve[0]:void 0}e.singleOrUndefined=zr;function Fr(Ve){return e.Debug.checkDefined(zr(Ve))}e.single=Fr;function _t(Ve){return Ve&&Ve.length===1?Ve[0]:Ve}e.singleOrMany=_t;function Ct(Ve,yr,Er){var Wr=Ve.slice(0);return Wr[yr]=Er,Wr}e.replaceElement=Ct;function yt(Ve,yr,Er,Wr,Ot){return Fe(Ve,Er(yr),Er,Wr,Ot)}e.binarySearch=yt;function Fe(Ve,yr,Er,Wr,Ot){if(!De(Ve))return-1;for(var ln=Ot||0,kn=Ve.length-1;ln<=kn;){var Cn=ln+(kn-ln>>1),_i=Er(Ve[Cn],Cn);switch(Wr(_i,yr)){case-1:ln=Cn+1;break;case 0:return Cn;case 1:kn=Cn-1;break}}return~ln}e.binarySearchKey=Fe;function vr(Ve,yr,Er,Wr,Ot){if(Ve&&Ve.length>0){var ln=Ve.length;if(ln>0){var kn=Wr===void 0||Wr<0?0:Wr,Cn=Ot===void 0||kn+Ot>ln-1?ln-1:kn+Ot,_i=void 0;for(arguments.length<=2?(_i=Ve[kn],kn++):_i=Er;kn<=Cn;)_i=yr(_i,Ve[kn],kn),kn++;return _i}}return Er}e.reduceLeft=vr;var Le=Object.prototype.hasOwnProperty;function cr(Ve,yr){return Le.call(Ve,yr)}e.hasProperty=cr;function $r(Ve,yr){return Le.call(Ve,yr)?Ve[yr]:void 0}e.getProperty=$r;function Re(Ve){var yr=[];for(var Er in Ve)Le.call(Ve,Er)&&yr.push(Er);return yr}e.getOwnKeys=Re;function xr(Ve){var yr=[];do for(var Er=Object.getOwnPropertyNames(Ve),Wr=0,Ot=Er;Wr<Ot.length;Wr++){var ln=Ot[Wr];Ue(yr,ln)}while(Ve=Object.getPrototypeOf(Ve));return yr}e.getAllKeys=xr;function Br(Ve){var yr=[];for(var Er in Ve)Le.call(Ve,Er)&&yr.push(Ve[Er]);return yr}e.getOwnValues=Br;var Qr=Object.entries||function(Ve){for(var yr=Re(Ve),Er=Array(yr.length),Wr=0;Wr<yr.length;Wr++)Er[Wr]=[yr[Wr],Ve[yr[Wr]]];return Er};function ct(Ve){return Ve?Qr(Ve):[]}e.getEntries=ct;function ft(Ve,yr){for(var Er=new Array(Ve),Wr=0;Wr<Ve;Wr++)Er[Wr]=yr(Wr);return Er}e.arrayOf=ft;function Dt(Ve,yr){for(var Er=[],Wr=Ve.next();!Wr.done;Wr=Ve.next())Er.push(yr?yr(Wr.value):Wr.value);return Er}e.arrayFrom=Dt;function Me(Ve){for(var yr=[],Er=1;Er<arguments.length;Er++)yr[Er-1]=arguments[Er];for(var Wr=0,Ot=yr;Wr<Ot.length;Wr++){var ln=Ot[Wr];if(ln!==void 0)for(var kn in ln)cr(ln,kn)&&(Ve[kn]=ln[kn])}return Ve}e.assign=Me;function Ke(Ve,yr,Er){if(Er===void 0&&(Er=An),Ve===yr)return!0;if(!Ve||!yr)return!1;for(var Wr in Ve)if(Le.call(Ve,Wr)&&(!Le.call(yr,Wr)||!Er(Ve[Wr],yr[Wr])))return!1;for(var Wr in yr)if(Le.call(yr,Wr)&&!Le.call(Ve,Wr))return!1;return!0}e.equalOwnProperties=Ke;function Vr(Ve,yr,Er){Er===void 0&&(Er=Ft);for(var Wr=new e.Map,Ot=0,ln=Ve;Ot<ln.length;Ot++){var kn=ln[Ot],Cn=yr(kn);Cn!==void 0&&Wr.set(Cn,Er(kn))}return Wr}e.arrayToMap=Vr;function Yr(Ve,yr,Er){Er===void 0&&(Er=Ft);for(var Wr=[],Ot=0,ln=Ve;Ot<ln.length;Ot++){var kn=ln[Ot];Wr[yr(kn)]=Er(kn)}return Wr}e.arrayToNumericMap=Yr;function Nt(Ve,yr,Er){Er===void 0&&(Er=Ft);for(var Wr=ye(),Ot=0,ln=Ve;Ot<ln.length;Ot++){var kn=ln[Ot];Wr.add(yr(kn),Er(kn))}return Wr}e.arrayToMultiMap=Nt;function Wt(Ve,yr,Er){return Er===void 0&&(Er=Ft),Dt(Nt(Ve,yr).values(),Er)}e.group=Wt;function sn(Ve){var yr={};for(var Er in Ve)Le.call(Ve,Er)&&(yr[Er]=Ve[Er]);return yr}e.clone=sn;function en(Ve,yr){var Er={};for(var Wr in yr)Le.call(yr,Wr)&&(Er[Wr]=yr[Wr]);for(var Wr in Ve)Le.call(Ve,Wr)&&(Er[Wr]=Ve[Wr]);return Er}e.extend=en;function Ir(Ve,yr){for(var Er in yr)Le.call(yr,Er)&&(Ve[Er]=yr[Er])}e.copyProperties=Ir;function Jr(Ve,yr){return yr?yr.bind(Ve):void 0}e.maybeBind=Jr;function ye(){var Ve=new e.Map;return Ve.add=Ie,Ve.remove=We,Ve}e.createMultiMap=ye;function Ie(Ve,yr){var Er=this.get(Ve);return Er?Er.push(yr):this.set(Ve,Er=[yr]),Er}function We(Ve,yr){var Er=this.get(Ve);Er&&(Do(Er,yr),Er.length||this.delete(Ve))}function dr(){return ye()}e.createUnderscoreEscapedMultiMap=dr;function ar(Ve){var yr=(Ve==null?void 0:Ve.slice())||[],Er=0;function Wr(){return Er===yr.length}function Ot(){for(var kn=[],Cn=0;Cn<arguments.length;Cn++)kn[Cn]=arguments[Cn];yr.push.apply(yr,kn)}function ln(){if(Wr())throw new Error("Queue is empty");var kn=yr[Er];if(yr[Er]=void 0,Er++,Er>100&&Er>yr.length>>1){var Cn=yr.length-Er;yr.copyWithin(0,Er),yr.length=Cn,Er=0}return kn}return{enqueue:Ot,dequeue:ln,isEmpty:Wr}}e.createQueue=ar;function Sr(Ve,yr){var Er=new e.Map,Wr=0;function Ot(){var kn=Er.values(),Cn;return{next:function(){for(;;)if(Cn){var _i=Cn.next();if(!_i.done)return{value:_i.value};Cn=void 0}else{var _i=kn.next();if(_i.done)return{value:void 0,done:!0};if(!Or(_i.value))return{value:_i.value};Cn=Hr(_i.value)}}}}var ln={has:function(kn){var Cn=Ve(kn);if(!Er.has(Cn))return!1;var _i=Er.get(Cn);if(!Or(_i))return yr(_i,kn);for(var qi=0,va=_i;qi<va.length;qi++){var Ia=va[qi];if(yr(Ia,kn))return!0}return!1},add:function(kn){var Cn=Ve(kn);if(Er.has(Cn)){var _i=Er.get(Cn);if(Or(_i))y(_i,kn,yr)||(_i.push(kn),Wr++);else{var qi=_i;yr(qi,kn)||(Er.set(Cn,[qi,kn]),Wr++)}}else Er.set(Cn,kn),Wr++;return this},delete:function(kn){var Cn=Ve(kn);if(!Er.has(Cn))return!1;var _i=Er.get(Cn);if(Or(_i)){for(var qi=0;qi<_i.length;qi++)if(yr(_i[qi],kn))return _i.length===1?Er.delete(Cn):_i.length===2?Er.set(Cn,_i[1-qi]):Ha(_i,qi),Wr--,!0}else{var va=_i;if(yr(va,kn))return Er.delete(Cn),Wr--,!0}return!1},clear:function(){Er.clear(),Wr=0},get size(){return Wr},forEach:function(kn){for(var Cn=0,_i=Dt(Er.values());Cn<_i.length;Cn++){var qi=_i[Cn];if(Or(qi))for(var va=0,Ia=qi;va<Ia.length;va++){var $a=Ia[va];kn($a,$a)}else{var $a=qi;kn($a,$a)}}},keys:function(){return Ot()},values:function(){return Ot()},entries:function(){var kn=Ot();return{next:function(){var Cn=kn.next();return Cn.done?Cn:{value:[Cn.value,Cn.value]}}}}};return ln}e.createSet=Sr;function Or(Ve){return Array.isArray?Array.isArray(Ve):Ve instanceof Array}e.isArray=Or;function Ge(Ve){return Or(Ve)?Ve:[Ve]}e.toArray=Ge;function ur(Ve){return typeof Ve=="string"}e.isString=ur;function Lr(Ve){return typeof Ve=="number"}e.isNumber=Lr;function Ar(Ve,yr){return Ve!==void 0&&yr(Ve)?Ve:void 0}e.tryCast=Ar;function rt(Ve,yr){return Ve!==void 0&&yr(Ve)?Ve:e.Debug.fail("Invalid cast. The supplied value ".concat(Ve," did not pass the test '").concat(e.Debug.getFunctionName(yr),"'."))}e.cast=rt;function Et(Ve){}e.noop=Et,e.noopPush={push:Et,length:0};function St(){return!1}e.returnFalse=St;function Pt(){return!0}e.returnTrue=Pt;function pt(){}e.returnUndefined=pt;function Ft(Ve){return Ve}e.identity=Ft;function ht(Ve){return Ve.toLowerCase()}e.toLowerCase=ht;var Yt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function un(Ve){return Yt.test(Ve)?Ve.replace(Yt,ht):Ve}e.toFileNameLowerCase=un;function wn(){throw new Error("Not implemented")}e.notImplemented=wn;function Bn(Ve){var yr;return function(){return Ve&&(yr=Ve(),Ve=void 0),yr}}e.memoize=Bn;function yn(Ve){var yr=new e.Map;return function(Er){var Wr="".concat(typeof Er,":").concat(Er),Ot=yr.get(Wr);return Ot===void 0&&!yr.has(Wr)&&(Ot=Ve(Er),yr.set(Wr,Ot)),Ot}}e.memoizeOne=yn;function Tn(Ve,yr,Er,Wr,Ot){if(Ot){for(var ln=[],kn=0;kn<arguments.length;kn++)ln[kn]=arguments[kn];return function(Cn){return vr(ln,function(_i,qi){return qi(_i)},Cn)}}else return Wr?function(Cn){return Wr(Er(yr(Ve(Cn))))}:Er?function(Cn){return Er(yr(Ve(Cn)))}:yr?function(Cn){return yr(Ve(Cn))}:Ve?function(Cn){return Ve(Cn)}:function(Cn){return Cn}}e.compose=Tn,function(Ve){Ve[Ve.None=0]="None",Ve[Ve.Normal=1]="Normal",Ve[Ve.Aggressive=2]="Aggressive",Ve[Ve.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={}));function An(Ve,yr){return Ve===yr}e.equateValues=An;function ii(Ve,yr){return Ve===yr||Ve!==void 0&&yr!==void 0&&Ve.toUpperCase()===yr.toUpperCase()}e.equateStringsCaseInsensitive=ii;function Xe(Ve,yr){return An(Ve,yr)}e.equateStringsCaseSensitive=Xe;function hr(Ve,yr){return Ve===yr?0:Ve===void 0?-1:yr===void 0?1:Ve<yr?-1:1}function at(Ve,yr){return hr(Ve,yr)}e.compareValues=at;function Qe(Ve,yr){return at(Ve==null?void 0:Ve.start,yr==null?void 0:yr.start)||at(Ve==null?void 0:Ve.length,yr==null?void 0:yr.length)}e.compareTextSpans=Qe;function Qt(Ve,yr){return vr(Ve,function(Er,Wr){return yr(Er,Wr)===-1?Er:Wr})}e.min=Qt;function Zt(Ve,yr){return Ve===yr?0:Ve===void 0?-1:yr===void 0?1:(Ve=Ve.toUpperCase(),yr=yr.toUpperCase(),Ve<yr?-1:Ve>yr?1:0)}e.compareStringsCaseInsensitive=Zt;function Tt(Ve,yr){return hr(Ve,yr)}e.compareStringsCaseSensitive=Tt;function gt(Ve){return Ve?Zt:Tt}e.getStringComparer=gt;var kt=function(){var Ve,yr,Er=Cn();return _i;function Wr(qi,va,Ia){if(qi===va)return 0;if(qi===void 0)return-1;if(va===void 0)return 1;var $a=Ia(qi,va);return $a<0?-1:$a>0?1:0}function Ot(qi){var va=new Intl.Collator(qi,{usage:"sort",sensitivity:"variant"}).compare;return function(Ia,$a){return Wr(Ia,$a,va)}}function ln(qi){if(qi!==void 0)return kn();return function(Ia,$a){return Wr(Ia,$a,va)};function va(Ia,$a){return Ia.localeCompare($a)}}function kn(){return function(Ia,$a){return Wr(Ia,$a,qi)};function qi(Ia,$a){return va(Ia.toUpperCase(),$a.toUpperCase())||va(Ia,$a)}function va(Ia,$a){return Ia<$a?-1:Ia>$a?1:0}}function Cn(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Ot:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?ln:kn}function _i(qi){return qi===void 0?Ve||(Ve=Er(qi)):qi==="en-US"?yr||(yr=Er(qi)):Er(qi)}}(),Lt,$e;function et(){return $e}e.getUILocale=et;function It(Ve){$e!==Ve&&($e=Ve,Lt=void 0)}e.setUILocale=It;function xn(Ve,yr){var Er=Lt||(Lt=kt($e));return Er(Ve,yr)}e.compareStringsCaseSensitiveUI=xn;function pi(Ve,yr,Er,Wr){return Ve===yr?0:Ve===void 0?-1:yr===void 0?1:Wr(Ve[Er],yr[Er])}e.compareProperties=pi;function ai(Ve,yr){return at(Ve?1:0,yr?1:0)}e.compareBooleans=ai;function Wi(Ve,yr,Er){for(var Wr=Math.max(2,Math.floor(Ve.length*.34)),Ot=Math.floor(Ve.length*.4)+1,ln,kn=0,Cn=yr;kn<Cn.length;kn++){var _i=Cn[kn],qi=Er(_i);if(qi!==void 0&&Math.abs(qi.length-Ve.length)<=Wr){if(qi===Ve||qi.length<3&&qi.toLowerCase()!==Ve.toLowerCase())continue;var va=ji(Ve,qi,Ot-.1);if(va===void 0)continue;e.Debug.assert(va<Ot),Ot=va,ln=_i}}return ln}e.getSpellingSuggestion=Wi;function ji(Ve,yr,Er){for(var Wr=new Array(yr.length+1),Ot=new Array(yr.length+1),ln=Er+.01,kn=0;kn<=yr.length;kn++)Wr[kn]=kn;for(var kn=1;kn<=Ve.length;kn++){var Cn=Ve.charCodeAt(kn-1),_i=Math.ceil(kn>Er?kn-Er:1),qi=Math.floor(yr.length>Er+kn?Er+kn:yr.length);Ot[0]=kn;for(var va=kn,Ia=1;Ia<_i;Ia++)Ot[Ia]=ln;for(var Ia=_i;Ia<=qi;Ia++){var $a=Ve[kn-1].toLowerCase()===yr[Ia-1].toLowerCase()?Wr[Ia-1]+.1:Wr[Ia-1]+2,ws=Cn===yr.charCodeAt(Ia-1)?Wr[Ia-1]:Math.min(Wr[Ia]+1,Ot[Ia-1]+1,$a);Ot[Ia]=ws,va=Math.min(va,ws)}for(var Ia=qi+1;Ia<=yr.length;Ia++)Ot[Ia]=ln;if(va>Er)return;var rc=Wr;Wr=Ot,Ot=rc}var Wo=Wr[yr.length];return Wo>Er?void 0:Wo}function fn(Ve,yr){var Er=Ve.length-yr.length;return Er>=0&&Ve.indexOf(yr,Er)===Er}e.endsWith=fn;function Ri(Ve,yr){return fn(Ve,yr)?Ve.slice(0,Ve.length-yr.length):Ve}e.removeSuffix=Ri;function ma(Ve,yr){return fn(Ve,yr)?Ve.slice(0,Ve.length-yr.length):void 0}e.tryRemoveSuffix=ma;function ra(Ve,yr){return Ve.indexOf(yr)!==-1}e.stringContains=ra;function vn(Ve){for(var yr=Ve.length,Er=yr-1;Er>0;Er--){var Wr=Ve.charCodeAt(Er);if(Wr>=48&&Wr<=57)do--Er,Wr=Ve.charCodeAt(Er);while(Er>0&&Wr>=48&&Wr<=57);else if(Er>4&&(Wr===110||Wr===78)){if(--Er,Wr=Ve.charCodeAt(Er),Wr!==105&&Wr!==73||(--Er,Wr=Ve.charCodeAt(Er),Wr!==109&&Wr!==77))break;--Er,Wr=Ve.charCodeAt(Er)}else break;if(Wr!==45&&Wr!==46)break;yr=Er}return yr===Ve.length?Ve:Ve.slice(0,yr)}e.removeMinAndVersionNumbers=vn;function zo(Ve,yr){for(var Er=0;Er<Ve.length;Er++)if(Ve[Er]===yr)return _a(Ve,Er),!0;return!1}e.orderedRemoveItem=zo;function _a(Ve,yr){for(var Er=yr;Er<Ve.length-1;Er++)Ve[Er]=Ve[Er+1];Ve.pop()}e.orderedRemoveItemAt=_a;function Ha(Ve,yr){Ve[yr]=Ve[Ve.length-1],Ve.pop()}e.unorderedRemoveItemAt=Ha;function Do(Ve,yr){return Ka(Ve,function(Er){return Er===yr})}e.unorderedRemoveItem=Do;function Ka(Ve,yr){for(var Er=0;Er<Ve.length;Er++)if(yr(Ve[Er]))return Ha(Ve,Er),!0;return!1}function rs(Ve){return Ve?Ft:un}e.createGetCanonicalFileName=rs;function ts(Ve){var yr=Ve.prefix,Er=Ve.suffix;return"".concat(yr,"*").concat(Er)}e.patternText=ts;function En(Ve,yr){return e.Debug.assert(Co(Ve,yr)),yr.substring(Ve.prefix.length,yr.length-Ve.suffix.length)}e.matchedText=En;function ca(Ve,yr,Er){for(var Wr,Ot=-1,ln=0,kn=Ve;ln<kn.length;ln++){var Cn=kn[ln],_i=yr(Cn);Co(_i,Er)&&_i.prefix.length>Ot&&(Ot=_i.prefix.length,Wr=Cn)}return Wr}e.findBestPatternMatch=ca;function bo(Ve,yr){return Ve.lastIndexOf(yr,0)===0}e.startsWith=bo;function Oo(Ve,yr){return bo(Ve,yr)?Ve.substr(yr.length):Ve}e.removePrefix=Oo;function Ws(Ve,yr,Er){return Er===void 0&&(Er=Ft),bo(Er(Ve),Er(yr))?Ve.substring(yr.length):void 0}e.tryRemovePrefix=Ws;function Co(Ve,yr){var Er=Ve.prefix,Wr=Ve.suffix;return yr.length>=Er.length+Wr.length&&bo(yr,Er)&&fn(yr,Wr)}e.isPatternMatch=Co;function qs(Ve,yr){return function(Er){return Ve(Er)&&yr(Er)}}e.and=qs;function gs(){for(var Ve=[],yr=0;yr<arguments.length;yr++)Ve[yr]=arguments[yr];return function(){for(var Er=[],Wr=0;Wr<arguments.length;Wr++)Er[Wr]=arguments[Wr];for(var Ot,ln=0,kn=Ve;ln<kn.length;ln++){var Cn=kn[ln];if(Ot=Cn.apply(void 0,Er),Ot)return Ot}return Ot}}e.or=gs;function Ds(Ve){return function(){for(var yr=[],Er=0;Er<arguments.length;Er++)yr[Er]=arguments[Er];return!Ve.apply(void 0,yr)}}e.not=Ds;function Ko(Ve){}e.assertType=Ko;function kr(Ve){return Ve===void 0?void 0:[Ve]}e.singleElementArray=kr;function jr(Ve,yr,Er,Wr,Ot,ln){ln=ln||Et;for(var kn=0,Cn=0,_i=Ve.length,qi=yr.length,va=!1;kn<_i&&Cn<qi;){var Ia=Ve[kn],$a=yr[Cn],ws=Er(Ia,$a);ws===-1?(Wr(Ia),kn++,va=!0):ws===1?(Ot($a),Cn++,va=!0):(ln($a,Ia),kn++,Cn++)}for(;kn<_i;)Wr(Ve[kn++]),va=!0;for(;Cn<qi;)Ot(yr[Cn++]),va=!0;return va}e.enumerateInsertsAndDeletes=jr;function Nn(Ve,yr){for(var Er=Array(Ve),Wr=0;Wr<Ve;Wr++)Er[Wr]=yr(Wr);return Er}e.fill=Nn;function xi(Ve){var yr=[];return ka(Ve,yr,void 0,0),yr}e.cartesianProduct=xi;function ka(Ve,yr,Er,Wr){for(var Ot=0,ln=Ve[Wr];Ot<ln.length;Ot++){var kn=ln[Ot],Cn=void 0;Er?(Cn=Er.slice(),Cn.push(kn)):Cn=[kn],Wr===Ve.length-1?yr.push(Cn):ka(Ve,yr,Cn,Wr+1)}}function ro(Ve,yr,Er){return Er===void 0&&(Er=" "),yr<=Ve.length?Ve:Er.repeat(yr-Ve.length)+Ve}e.padLeft=ro;function Ye(Ve,yr,Er){return Er===void 0&&(Er=" "),yr<=Ve.length?Ve:Ve+Er.repeat(yr-Ve.length)}e.padRight=Ye;function lt(Ve,yr){for(var Er=Ve.length,Wr=0;Wr<Er&&yr(Ve[Wr]);)Wr++;return Ve.slice(0,Wr)}e.takeWhile=lt,e.trimString=String.prototype.trim?function(Ve){return Ve.trim()}:function(Ve){return e.trimStringEnd(e.trimStringStart(Ve))},e.trimStringEnd=String.prototype.trimEnd?function(Ve){return Ve.trimEnd()}:Ut,e.trimStringStart=String.prototype.trimStart?function(Ve){return Ve.trimStart()}:function(Ve){return Ve.replace(/^\s+/g,"")};function Ut(Ve){for(var yr=Ve.length-1;yr>=0&&e.isWhiteSpaceLike(Ve.charCodeAt(yr));)yr--;return Ve.slice(0,yr+1)}})(h||(h={}));var h;(function(e){var c;(function(P){P[P.Off=0]="Off",P[P.Error=1]="Error",P[P.Warning=2]="Warning",P[P.Info=3]="Info",P[P.Verbose=4]="Verbose"})(c=e.LogLevel||(e.LogLevel={})),function(P){var T,s=0;P.currentLogLevel=c.Warning,P.isDebugging=!1,P.enableDeprecationWarnings=!0;function D(){return T??(T=new e.Version(e.version))}P.getTypeScriptVersion=D;function O(or){return P.currentLogLevel<=or}P.shouldLog=O;function W(or,qr){P.loggingHost&&O(or)&&P.loggingHost.log(or,qr)}function E(or){W(c.Info,or)}P.log=E,function(or){function qr(_t){W(c.Error,_t)}or.error=qr;function Rr(_t){W(c.Warning,_t)}or.warn=Rr;function zr(_t){W(c.Info,_t)}or.log=zr;function Fr(_t){W(c.Verbose,_t)}or.trace=Fr}(E=P.log||(P.log={}));var v={};function S(){return s}P.getAssertionLevel=S;function te(or){var qr=s;if(s=or,or>qr)for(var Rr=0,zr=e.getOwnKeys(v);Rr<zr.length;Rr++){var Fr=zr[Rr],_t=v[Fr];_t!==void 0&&P[Fr]!==_t.assertion&&or>=_t.level&&(P[Fr]=_t,v[Fr]=void 0)}}P.setAssertionLevel=te;function Y(or){return s>=or}P.shouldAssert=Y;function Z(or,qr){return Y(or)?!0:(v[qr]={level:or,assertion:P[qr]},P[qr]=e.noop,!1)}function ce(or,qr){debugger;var Rr=new Error(or?"Debug Failure. ".concat(or):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Rr,qr||ce),Rr}P.fail=ce;function k(or,qr,Rr){return ce("".concat(qr||"Unexpected node.",`\r
Node `).concat(he(or.kind)," was unexpected."),Rr||k)}P.failBadSyntaxKind=k;function X(or,qr,Rr,zr){or||(qr=qr?"False expression: ".concat(qr):"False expression.",Rr&&(qr+=`\r
Verbose Debug Information: `+(typeof Rr=="string"?Rr:Rr())),ce(qr,zr||X))}P.assert=X;function A(or,qr,Rr,zr,Fr){if(or!==qr){var _t=Rr?zr?"".concat(Rr," ").concat(zr):Rr:"";ce("Expected ".concat(or," === ").concat(qr,". ").concat(_t),Fr||A)}}P.assertEqual=A;function y(or,qr,Rr,zr){or>=qr&&ce("Expected ".concat(or," < ").concat(qr,". ").concat(Rr||""),zr||y)}P.assertLessThan=y;function C(or,qr,Rr){or>qr&&ce("Expected ".concat(or," <= ").concat(qr),Rr||C)}P.assertLessThanOrEqual=C;function B(or,qr,Rr){or<qr&&ce("Expected ".concat(or," >= ").concat(qr),Rr||B)}P.assertGreaterThanOrEqual=B;function F(or,qr,Rr){or==null&&ce(qr,Rr||F)}P.assertIsDefined=F;function z(or,qr,Rr){return F(or,qr,Rr||z),or}P.checkDefined=z;function ge(or,qr,Rr){for(var zr=0,Fr=or;zr<Fr.length;zr++){var _t=Fr[zr];F(_t,qr,Rr||ge)}}P.assertEachIsDefined=ge;function Pe(or,qr,Rr){return ge(or,qr,Rr||Pe),or}P.checkEachDefined=Pe;function fe(or,qr,Rr){qr===void 0&&(qr="Illegal value:");var zr=typeof or=="object"&&e.hasProperty(or,"kind")&&e.hasProperty(or,"pos")?"SyntaxKind: "+he(or.kind):JSON.stringify(or);return ce("".concat(qr," ").concat(zr),Rr||fe)}P.assertNever=fe;function _e(or,qr,Rr,zr){Z(1,"assertEachNode")&&X(qr===void 0||e.every(or,qr),Rr||"Unexpected node.",function(){return"Node array did not pass test '".concat(H(qr),"'.")},zr||_e)}P.assertEachNode=_e;function ne(or,qr,Rr,zr){Z(1,"assertNode")&&X(or!==void 0&&(qr===void 0||qr(or)),Rr||"Unexpected node.",function(){return"Node ".concat(he(or==null?void 0:or.kind)," did not pass test '").concat(H(qr),"'.")},zr||ne)}P.assertNode=ne;function oe(or,qr,Rr,zr){Z(1,"assertNotNode")&&X(or===void 0||qr===void 0||!qr(or),Rr||"Unexpected node.",function(){return"Node ".concat(he(or.kind)," should not have passed test '").concat(H(qr),"'.")},zr||oe)}P.assertNotNode=oe;function w(or,qr,Rr,zr){Z(1,"assertOptionalNode")&&X(qr===void 0||or===void 0||qr(or),Rr||"Unexpected node.",function(){return"Node ".concat(he(or==null?void 0:or.kind)," did not pass test '").concat(H(qr),"'.")},zr||w)}P.assertOptionalNode=w;function re(or,qr,Rr,zr){Z(1,"assertOptionalToken")&&X(qr===void 0||or===void 0||or.kind===qr,Rr||"Unexpected node.",function(){return"Node ".concat(he(or==null?void 0:or.kind)," was not a '").concat(he(qr),"' token.")},zr||re)}P.assertOptionalToken=re;function M(or,qr,Rr){Z(1,"assertMissingNode")&&X(or===void 0,qr||"Unexpected node.",function(){return"Node ".concat(he(or.kind)," was unexpected'.")},Rr||M)}P.assertMissingNode=M;function U(or){}P.type=U;function H(or){if(typeof or!="function")return"";if(e.hasProperty(or,"name"))return or.name;var qr=Function.prototype.toString.call(or),Rr=/^function\s+([\w\$]+)\s*\(/.exec(qr);return Rr?Rr[1]:""}P.getFunctionName=H;function q(or){return"{ name: ".concat(e.unescapeLeadingUnderscores(or.escapedName),"; flags: ").concat(N(or.flags),"; declarations: ").concat(e.map(or.declarations,function(qr){return he(qr.kind)})," }")}P.formatSymbol=q;function R(or,qr,Rr){or===void 0&&(or=0);var zr=I(qr);if(or===0)return zr.length>0&&zr[0][0]===0?zr[0][1]:"0";if(Rr){for(var Fr=[],_t=or,Ct=0,yt=zr;Ct<yt.length;Ct++){var Fe=yt[Ct],vr=Fe[0],Le=Fe[1];if(vr>or)break;vr!==0&&vr&or&&(Fr.push(Le),_t&=~vr)}if(_t===0)return Fr.join("|")}else for(var cr=0,$r=zr;cr<$r.length;cr++){var Re=$r[cr],vr=Re[0],Le=Re[1];if(vr===or)return Le}return or.toString()}P.formatEnum=R;var K=new e.Map;function I(or){var qr=K.get(or);if(qr)return qr;var Rr=[];for(var zr in or){var Fr=or[zr];typeof Fr=="number"&&Rr.push([Fr,zr])}var _t=e.stableSort(Rr,function(Ct,yt){return e.compareValues(Ct[0],yt[0])});return K.set(or,_t),_t}function he(or){return R(or,e.SyntaxKind,!1)}P.formatSyntaxKind=he;function le(or){return R(or,e.SnippetKind,!1)}P.formatSnippetKind=le;function ee(or){return R(or,e.NodeFlags,!0)}P.formatNodeFlags=ee;function J(or){return R(or,e.ModifierFlags,!0)}P.formatModifierFlags=J;function de(or){return R(or,e.TransformFlags,!0)}P.formatTransformFlags=de;function De(or){return R(or,e.EmitFlags,!0)}P.formatEmitFlags=De;function N(or){return R(or,e.SymbolFlags,!0)}P.formatSymbolFlags=N;function b(or){return R(or,e.TypeFlags,!0)}P.formatTypeFlags=b;function Q(or){return R(or,e.SignatureFlags,!0)}P.formatSignatureFlags=Q;function G(or){return R(or,e.ObjectFlags,!0)}P.formatObjectFlags=G;function ae(or){return R(or,e.FlowFlags,!0)}P.formatFlowFlags=ae;function Te(or){return R(or,e.RelationComparisonResult,!0)}P.formatRelationComparisonResult=Te;function Ne(or){return R(or,e.CheckMode,!0)}P.formatCheckMode=Ne;function we(or){return R(or,e.SignatureCheckMode,!0)}P.formatSignatureCheckMode=we;function nr(or){return R(or,e.TypeFacts,!0)}P.formatTypeFacts=nr;var tr=!1,me;function He(){if(Ue(),!me)throw new Error("Debugging helpers could not be loaded.");return me}function rr(or){return console.log(je(or))}P.printControlFlowGraph=rr;function je(or){return He().formatControlFlowGraph(or)}P.formatControlFlowGraph=je;var Ce;function Ae(or){"__debugFlowFlags"in or||Object.defineProperties(or,{__tsDebuggerDisplay:{value:function(){var qr=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Rr=this.flags&~(2048-1);return"".concat(qr).concat(Rr?" (".concat(ae(Rr),")"):"")}},__debugFlowFlags:{get:function(){return R(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return je(this)}}})}function qe(or){tr&&(typeof Object.setPrototypeOf=="function"?(Ce||(Ce=Object.create(Object.prototype),Ae(Ce)),Object.setPrototypeOf(or,Ce)):Ae(or))}P.attachFlowNodeDebugInfo=qe;var xe;function L(or){"__tsDebuggerDisplay"in or||Object.defineProperties(or,{__tsDebuggerDisplay:{value:function(qr){return qr=String(qr).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(qr)}}})}function ue(or){tr&&(typeof Object.setPrototypeOf=="function"?(xe||(xe=Object.create(Array.prototype),L(xe)),Object.setPrototypeOf(or,xe)):L(or))}P.attachNodeArrayDebugInfo=ue;function Ue(){if(tr)return;var or,qr;function Rr(){return or===void 0&&typeof WeakMap=="function"&&(or=new WeakMap),or}function zr(){return qr===void 0&&typeof WeakMap=="function"&&(qr=new WeakMap),qr}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Le=this.flags&33554432?"TransientSymbol":"Symbol",cr=this.flags&-33554433;return"".concat(Le," '").concat(e.symbolName(this),"'").concat(cr?" (".concat(N(cr),")"):"")}},__debugFlags:{get:function(){return N(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Le=this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType ".concat(this.intrinsicName):this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",cr=this.flags&524288?this.objectFlags&-1344:0;return"".concat(Le).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(cr?" (".concat(G(cr),")"):"")}},__debugFlags:{get:function(){return b(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?G(this.objectFlags):""}},__debugTypeToString:{value:function(){var Le=Rr(),cr=Le==null?void 0:Le.get(this);return cr===void 0&&(cr=this.checker.typeToString(this),Le==null||Le.set(this,cr)),cr}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return Q(this.flags)}},__debugSignatureToString:{value:function(){var Le;return(Le=this.checker)===null||Le===void 0?void 0:Le.signatureToString(this)}}});for(var Fr=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],_t=0,Ct=Fr;_t<Ct.length;_t++){var yt=Ct[_t];e.hasProperty(yt.prototype,"__debugKind")||Object.defineProperties(yt.prototype,{__tsDebuggerDisplay:{value:function(){var Le=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":he(this.kind);return"".concat(Le).concat(this.flags?" (".concat(ee(this.flags),")"):"")}},__debugKind:{get:function(){return he(this.kind)}},__debugNodeFlags:{get:function(){return ee(this.flags)}},__debugModifierFlags:{get:function(){return J(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return de(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return De(e.getEmitFlags(this))}},__debugGetText:{value:function(Le){if(e.nodeIsSynthesized(this))return"";var cr=zr(),$r=cr==null?void 0:cr.get(this);if($r===void 0){var Re=e.getParseTreeNode(this),xr=Re&&e.getSourceFileOfNode(Re);$r=xr?e.getSourceTextOfNodeFromSourceFile(xr,Re,Le):"",cr==null||cr.set(this,$r)}return $r}}})}try{if(e.sys&&e.sys.require){var Fe=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),vr=e.sys.require(Fe,"./compiler-debug");vr.error||(vr.module.init(e),me=vr.module)}}catch{}tr=!0}P.enableDebugInfo=Ue;function Je(or,qr,Rr,zr,Fr){var _t=qr?"DeprecationError: ":"DeprecationWarning: ";return _t+="'".concat(or,"' "),_t+=zr?"has been deprecated since v".concat(zr):"is deprecated",_t+=qr?" and can no longer be used.":Rr?" and will no longer be usable after v".concat(Rr,"."):".",_t+=Fr?" ".concat(e.formatStringFromArgs(Fr,[or],0)):"",_t}function lr(or,qr,Rr,zr){var Fr=Je(or,!0,qr,Rr,zr);return function(){throw new TypeError(Fr)}}function mr(or,qr,Rr,zr){var Fr=!1;return function(){P.enableDeprecationWarnings&&!Fr&&(E.warn(Je(or,!1,qr,Rr,zr)),Fr=!0)}}function Hr(or,qr){var Rr,zr;qr===void 0&&(qr={});var Fr=typeof qr.typeScriptVersion=="string"?new e.Version(qr.typeScriptVersion):(Rr=qr.typeScriptVersion)!==null&&Rr!==void 0?Rr:D(),_t=typeof qr.errorAfter=="string"?new e.Version(qr.errorAfter):qr.errorAfter,Ct=typeof qr.warnAfter=="string"?new e.Version(qr.warnAfter):qr.warnAfter,yt=typeof qr.since=="string"?new e.Version(qr.since):(zr=qr.since)!==null&&zr!==void 0?zr:Ct,Fe=qr.error||_t&&Fr.compareTo(_t)<=0,vr=!Ct||Fr.compareTo(Ct)>=0;return Fe?lr(or,_t,yt,qr.message):vr?mr(or,_t,yt,qr.message):e.noop}P.createDeprecation=Hr;function wr(or,qr){return function(){return or(),qr.apply(this,arguments)}}function Oe(or,qr){var Rr,zr=Hr((Rr=qr==null?void 0:qr.name)!==null&&Rr!==void 0?Rr:H(or),qr);return wr(zr,or)}P.deprecate=Oe;function Ze(or){var qr=or&7,Rr=qr===0?"in out":qr===3?"[bivariant]":qr===2?"in":qr===1?"out":qr===4?"[independent]":"";return or&8?Rr+=" (unmeasurable)":or&16&&(Rr+=" (unreliable)"),Rr}P.formatVariance=Ze;var tt=function(){function or(){}return or.prototype.__debugToString=function(){var qr;switch(this.kind){case 3:return((qr=this.debugInfo)===null||qr===void 0?void 0:qr.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return e.zipWith(this.sources,this.targets||e.map(this.sources,function(){return"any"}),function(Rr,zr){return"".concat(Rr.__debugTypeToString()," -> ").concat(typeof zr=="string"?zr:zr.__debugTypeToString())}).join(", ");case 2:return e.zipWith(this.sources,this.targets,function(Rr,zr){return"".concat(Rr.__debugTypeToString()," -> ").concat(zr().__debugTypeToString())}).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split(`
`).join(`
`),`
m2: `).concat(this.mapper2.__debugToString().split(`
`).join(`
`));default:return fe(this)}},or}();P.DebugTypeMapper=tt;function ut(or){return P.isDebugging?Object.setPrototypeOf(or,tt.prototype):or}P.attachDebugPrototypeIfDebug=ut}(e.Debug||(e.Debug={}))})(h||(h={}));var h;(function(e){var c=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,P=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,T=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,s=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,D=/^[a-z0-9-]+$/i,O=/^(0|[1-9]\d*)$/,W=function(){function oe(w,re,M,U,H){if(re===void 0&&(re=0),M===void 0&&(M=0),U===void 0&&(U=""),H===void 0&&(H=""),typeof w=="string"){var q=e.Debug.checkDefined(E(w),"Invalid version");w=q.major,re=q.minor,M=q.patch,U=q.prerelease,H=q.build}e.Debug.assert(w>=0,"Invalid argument: major"),e.Debug.assert(re>=0,"Invalid argument: minor"),e.Debug.assert(M>=0,"Invalid argument: patch");var R=U?e.isArray(U)?U:U.split("."):e.emptyArray,K=H?e.isArray(H)?H:H.split("."):e.emptyArray;e.Debug.assert(e.every(R,function(I){return T.test(I)}),"Invalid argument: prerelease"),e.Debug.assert(e.every(K,function(I){return D.test(I)}),"Invalid argument: build"),this.major=w,this.minor=re,this.patch=M,this.prerelease=R,this.build=K}return oe.tryParse=function(w){var re=E(w);if(re){var M=re.major,U=re.minor,H=re.patch,q=re.prerelease,R=re.build;return new oe(M,U,H,q,R)}},oe.prototype.compareTo=function(w){return this===w?0:w===void 0?1:e.compareValues(this.major,w.major)||e.compareValues(this.minor,w.minor)||e.compareValues(this.patch,w.patch)||v(this.prerelease,w.prerelease)},oe.prototype.increment=function(w){switch(w){case"major":return new oe(this.major+1,0,0);case"minor":return new oe(this.major,this.minor+1,0);case"patch":return new oe(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(w)}},oe.prototype.with=function(w){var re=w.major,M=re===void 0?this.major:re,U=w.minor,H=U===void 0?this.minor:U,q=w.patch,R=q===void 0?this.patch:q,K=w.prerelease,I=K===void 0?this.prerelease:K,he=w.build,le=he===void 0?this.build:he;return new oe(M,H,R,I,le)},oe.prototype.toString=function(){var w="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(w+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(w+="+".concat(this.build.join("."))),w},oe.zero=new oe(0,0,0,["0"]),oe}();e.Version=W;function E(oe){var w=c.exec(oe);if(w){var re=w[1],M=w[2],U=M===void 0?"0":M,H=w[3],q=H===void 0?"0":H,R=w[4],K=R===void 0?"":R,I=w[5],he=I===void 0?"":I;if(!(K&&!P.test(K))&&!(he&&!s.test(he)))return{major:parseInt(re,10),minor:parseInt(U,10),patch:parseInt(q,10),prerelease:K,build:he}}}function v(oe,w){if(oe===w)return 0;if(oe.length===0)return w.length===0?0:1;if(w.length===0)return-1;for(var re=Math.min(oe.length,w.length),M=0;M<re;M++){var U=oe[M],H=w[M];if(U!==H){var q=O.test(U),R=O.test(H);if(q||R){if(q!==R)return q?-1:1;var K=e.compareValues(+U,+H);if(K)return K}else{var K=e.compareStringsCaseSensitive(U,H);if(K)return K}}}return e.compareValues(oe.length,w.length)}var S=function(){function oe(w){this._alternatives=w?e.Debug.checkDefined(X(w),"Invalid range spec."):e.emptyArray}return oe.tryParse=function(w){var re=X(w);if(re){var M=new oe("");return M._alternatives=re,M}},oe.prototype.test=function(w){return typeof w=="string"&&(w=new W(w)),z(w,this._alternatives)},oe.prototype.toString=function(){return fe(this._alternatives)},oe}();e.VersionRange=S;var te=/\|\|/g,Y=/\s+/g,Z=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ce=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,k=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function X(oe){for(var w=[],re=0,M=e.trimString(oe).split(te);re<M.length;re++){var U=M[re];if(U){var H=[];U=e.trimString(U);var q=ce.exec(U);if(q){if(!y(q[1],q[2],H))return}else for(var R=0,K=U.split(Y);R<K.length;R++){var I=K[R],he=k.exec(e.trimString(I));if(!he||!C(he[1],he[2],H))return}w.push(H)}}return w}function A(oe){var w=Z.exec(oe);if(w){var re=w[1],M=w[2],U=M===void 0?"*":M,H=w[3],q=H===void 0?"*":H,R=w[4],K=w[5],I=new W(B(re)?0:parseInt(re,10),B(re)||B(U)?0:parseInt(U,10),B(re)||B(U)||B(q)?0:parseInt(q,10),R,K);return{version:I,major:re,minor:U,patch:q}}}function y(oe,w,re){var M=A(oe);if(!M)return!1;var U=A(w);return U?(B(M.major)||re.push(F(">=",M.version)),B(U.major)||re.push(B(U.minor)?F("<",U.version.increment("major")):B(U.patch)?F("<",U.version.increment("minor")):F("<=",U.version)),!0):!1}function C(oe,w,re){var M=A(w);if(!M)return!1;var U=M.version,H=M.major,q=M.minor,R=M.patch;if(B(H))(oe==="<"||oe===">")&&re.push(F("<",W.zero));else switch(oe){case"~":re.push(F(">=",U)),re.push(F("<",U.increment(B(q)?"major":"minor")));break;case"^":re.push(F(">=",U)),re.push(F("<",U.increment(U.major>0||B(q)?"major":U.minor>0||B(R)?"minor":"patch")));break;case"<":case">=":re.push(B(q)||B(R)?F(oe,U.with({prerelease:"0"})):F(oe,U));break;case"<=":case">":re.push(B(q)?F(oe==="<="?"<":">=",U.increment("major").with({prerelease:"0"})):B(R)?F(oe==="<="?"<":">=",U.increment("minor").with({prerelease:"0"})):F(oe,U));break;case"=":case void 0:B(q)||B(R)?(re.push(F(">=",U.with({prerelease:"0"}))),re.push(F("<",U.increment(B(q)?"major":"minor").with({prerelease:"0"})))):re.push(F("=",U));break;default:return!1}return!0}function B(oe){return oe==="*"||oe==="x"||oe==="X"}function F(oe,w){return{operator:oe,operand:w}}function z(oe,w){if(w.length===0)return!0;for(var re=0,M=w;re<M.length;re++){var U=M[re];if(ge(oe,U))return!0}return!1}function ge(oe,w){for(var re=0,M=w;re<M.length;re++){var U=M[re];if(!Pe(oe,U.operator,U.operand))return!1}return!0}function Pe(oe,w,re){var M=oe.compareTo(re);switch(w){case"<":return M<0;case"<=":return M<=0;case">":return M>0;case">=":return M>=0;case"=":return M===0;default:return e.Debug.assertNever(w)}}function fe(oe){return e.map(oe,_e).join(" || ")||"*"}function _e(oe){return e.map(oe,ne).join(" ")}function ne(oe){return"".concat(oe.operator).concat(oe.operand)}})(h||(h={}));var h;(function(e){function c(W,E){return typeof W=="object"&&typeof W.timeOrigin=="number"&&typeof W.mark=="function"&&typeof W.measure=="function"&&typeof W.now=="function"&&typeof W.clearMarks=="function"&&typeof W.clearMeasures=="function"&&typeof E=="function"}function P(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&c(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function T(){if(typeof process<"u"&&process.nextTick&&!process.browser&&typeof DS=="function")try{var W,E=Yh,v=E.performance,S=E.PerformanceObserver;if(c(v,S)){W=v;var te=new e.Version(process.versions.node),Y=new e.VersionRange("<12.16.3 || 13 <13.13");return Y.test(te)&&(W={get timeOrigin(){return v.timeOrigin},now:function(){return v.now()},mark:function(Z){return v.mark(Z)},measure:function(Z,ce,k){ce===void 0&&(ce="nodeStart"),k===void 0&&(k="__performance.measure-fix__",v.mark(k)),v.measure(Z,ce,k),k==="__performance.measure-fix__"&&v.clearMarks("__performance.measure-fix__")},clearMarks:function(Z){return v.clearMarks(Z)},clearMeasures:function(Z){return v.clearMeasures(Z)}}),{shouldWriteNativeEvents:!1,performance:W,PerformanceObserver:S}}}catch{}}var s=P()||T(),D=s==null?void 0:s.performance;function O(){return s}e.tryGetNativePerformanceHooks=O,e.timestamp=D?function(){return D.now()}:Date.now?Date.now:function(){return+new Date}})(h||(h={}));var h;(function(e){(function(c){var P,T;function s(z,ge,Pe,fe){return z?D(ge,Pe,fe):c.nullTimer}c.createTimerIf=s;function D(z,ge,Pe){var fe=0;return{enter:_e,exit:ne};function _e(){++fe===1&&te(ge)}function ne(){--fe===0?(te(Pe),Y(z,ge,Pe)):fe<0&&e.Debug.fail("enter/exit count does not match.")}}c.createTimer=D,c.nullTimer={enter:e.noop,exit:e.noop};var O=!1,W=e.timestamp(),E=new e.Map,v=new e.Map,S=new e.Map;function te(z){var ge;if(O){var Pe=(ge=v.get(z))!==null&&ge!==void 0?ge:0;v.set(z,Pe+1),E.set(z,e.timestamp()),T==null||T.mark(z)}}c.mark=te;function Y(z,ge,Pe){var fe,_e;if(O){var ne=(fe=Pe!==void 0?E.get(Pe):void 0)!==null&&fe!==void 0?fe:e.timestamp(),oe=(_e=ge!==void 0?E.get(ge):void 0)!==null&&_e!==void 0?_e:W,w=S.get(z)||0;S.set(z,w+(ne-oe)),T==null||T.measure(z,ge,Pe)}}c.measure=Y;function Z(z){return v.get(z)||0}c.getCount=Z;function ce(z){return S.get(z)||0}c.getDuration=ce;function k(z){S.forEach(function(ge,Pe){return z(Pe,ge)})}c.forEachMeasure=k;function X(z){E.forEach(function(ge,Pe){return z(Pe)})}c.forEachMark=X;function A(z){z!==void 0?S.delete(z):S.clear(),T==null||T.clearMeasures(z)}c.clearMeasures=A;function y(z){z!==void 0?(v.delete(z),E.delete(z)):(v.clear(),E.clear()),T==null||T.clearMarks(z)}c.clearMarks=y;function C(){return O}c.isEnabled=C;function B(z){var ge;return z===void 0&&(z=e.sys),O||(O=!0,P||(P=e.tryGetNativePerformanceHooks()),P&&(W=P.performance.timeOrigin,(P.shouldWriteNativeEvents||!((ge=z==null?void 0:z.cpuProfilingEnabled)===null||ge===void 0)&&ge.call(z)||z!=null&&z.debugMode)&&(T=P.performance))),!0}c.enable=B;function F(){O&&(E.clear(),v.clear(),S.clear(),T=void 0,O=!1)}c.disable=F})(e.performance||(e.performance={}))})(h||(h={}));var h;(function(e){var c,P={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop},T;try{var s=(c={}.TS_ETW_MODULE_PATH)!==null&&c!==void 0?c:"./node_modules/@microsoft/typescript-etw";T=DS(s)}catch{T=void 0}e.perfLogger=T&&T.logEvent?T:P})(h||(h={}));var h;(function(e){var c;(function(P){var T,s=0,D=0,O,W=[],E,v=[];function S(Pe,fe,_e){if(e.Debug.assert(!e.tracing,"Tracing already started"),T===void 0)try{T=Yh}catch(M){throw new Error(`tracing requires having fs
(original error: `.concat(M.message||M,")"))}O=Pe,W.length=0,E===void 0&&(E=e.combinePaths(fe,"legend.json")),T.existsSync(fe)||T.mkdirSync(fe,{recursive:!0});var ne=O==="build"?".".concat(process.pid,"-").concat(++s):O==="server"?".".concat(process.pid):"",oe=e.combinePaths(fe,"trace".concat(ne,".json")),w=e.combinePaths(fe,"types".concat(ne,".json"));v.push({configFilePath:_e,tracePath:oe,typesPath:w}),D=T.openSync(oe,"w"),e.tracing=P;var re={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};T.writeSync(D,`[
`+[n({name:"process_name",args:{name:"tsc"}},re),n({name:"thread_name",args:{name:"Main"}},re),n(n({name:"TracingStartedInBrowser"},re),{cat:"disabled-by-default-devtools.timeline"})].map(function(M){return JSON.stringify(M)}).join(`,
`))}P.startTracing=S;function te(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!W.length==(O!=="server")),T.writeSync(D,`
]
`),T.closeSync(D),e.tracing=void 0,W.length?z(W):v[v.length-1].typesPath=void 0}P.stopTracing=te;function Y(Pe){O!=="server"&&W.push(Pe)}P.recordType=Y,function(Pe){Pe.Parse="parse",Pe.Program="program",Pe.Bind="bind",Pe.Check="check",Pe.CheckTypes="checkTypes",Pe.Emit="emit",Pe.Session="session"}(P.Phase||(P.Phase={}));function Z(Pe,fe,_e){B("I",Pe,fe,_e,'"s":"g"')}P.instant=Z;var ce=[];function k(Pe,fe,_e,ne){ne===void 0&&(ne=!1),ne&&B("B",Pe,fe,_e),ce.push({phase:Pe,name:fe,args:_e,time:1e3*e.timestamp(),separateBeginAndEnd:ne})}P.push=k;function X(Pe){e.Debug.assert(ce.length>0),C(ce.length-1,1e3*e.timestamp(),Pe),ce.length--}P.pop=X;function A(){for(var Pe=1e3*e.timestamp(),fe=ce.length-1;fe>=0;fe--)C(fe,Pe);ce.length=0}P.popAll=A;var y=1e3*10;function C(Pe,fe,_e){var ne=ce[Pe],oe=ne.phase,w=ne.name,re=ne.args,M=ne.time,U=ne.separateBeginAndEnd;U?(e.Debug.assert(!_e,"`results` are not supported for events with `separateBeginAndEnd`"),B("E",oe,w,re,void 0,fe)):y-M%y<=fe-M&&B("X",oe,w,n(n({},re),{results:_e}),'"dur":'.concat(fe-M),M)}function B(Pe,fe,_e,ne,oe,w){w===void 0&&(w=1e3*e.timestamp()),!(O==="server"&&fe==="checkTypes")&&(e.performance.mark("beginTracing"),T.writeSync(D,`,
{"pid":1,"tid":1,"ph":"`.concat(Pe,'","cat":"').concat(fe,'","ts":').concat(w,',"name":"').concat(_e,'"')),oe&&T.writeSync(D,",".concat(oe)),ne&&T.writeSync(D,',"args":'.concat(JSON.stringify(ne))),T.writeSync(D,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function F(Pe){var fe=e.getSourceFileOfNode(Pe);return fe?{path:fe.path,start:_e(e.getLineAndCharacterOfPosition(fe,Pe.pos)),end:_e(e.getLineAndCharacterOfPosition(fe,Pe.end))}:void 0;function _e(ne){return{line:ne.line+1,character:ne.character+1}}}function z(Pe){var fe,_e,ne,oe,w,re,M,U,H,q,R,K,I,he,le,ee,J,de,De,N,b,Q;e.performance.mark("beginDumpTypes");var G=v[v.length-1].typesPath,ae=T.openSync(G,"w"),Te=new e.Map;T.writeSync(ae,"[");for(var Ne=Pe.length,we=0;we<Ne;we++){var nr=Pe[we],tr=nr.objectFlags,me=(fe=nr.aliasSymbol)!==null&&fe!==void 0?fe:nr.symbol,He=void 0;if(tr&16|nr.flags&2944)try{He=(_e=nr.checker)===null||_e===void 0?void 0:_e.typeToString(nr)}catch{He=void 0}var rr={};if(nr.flags&8388608){var je=nr;rr={indexedAccessObjectType:(ne=je.objectType)===null||ne===void 0?void 0:ne.id,indexedAccessIndexType:(oe=je.indexType)===null||oe===void 0?void 0:oe.id}}var Ce={};if(tr&4){var Ae=nr;Ce={instantiatedType:(w=Ae.target)===null||w===void 0?void 0:w.id,typeArguments:(re=Ae.resolvedTypeArguments)===null||re===void 0?void 0:re.map(function(Ze){return Ze.id}),referenceLocation:F(Ae.node)}}var qe={};if(nr.flags&16777216){var xe=nr;qe={conditionalCheckType:(M=xe.checkType)===null||M===void 0?void 0:M.id,conditionalExtendsType:(U=xe.extendsType)===null||U===void 0?void 0:U.id,conditionalTrueType:(q=(H=xe.resolvedTrueType)===null||H===void 0?void 0:H.id)!==null&&q!==void 0?q:-1,conditionalFalseType:(K=(R=xe.resolvedFalseType)===null||R===void 0?void 0:R.id)!==null&&K!==void 0?K:-1}}var L={};if(nr.flags&33554432){var ue=nr;L={substitutionBaseType:(I=ue.baseType)===null||I===void 0?void 0:I.id,constraintType:(he=ue.constraint)===null||he===void 0?void 0:he.id}}var Ue={};if(tr&1024){var Je=nr;Ue={reverseMappedSourceType:(le=Je.source)===null||le===void 0?void 0:le.id,reverseMappedMappedType:(ee=Je.mappedType)===null||ee===void 0?void 0:ee.id,reverseMappedConstraintType:(J=Je.constraintType)===null||J===void 0?void 0:J.id}}var lr={};if(tr&256){var mr=nr;lr={evolvingArrayElementType:mr.elementType.id,evolvingArrayFinalType:(de=mr.finalArrayType)===null||de===void 0?void 0:de.id}}var Hr=void 0,wr=nr.checker.getRecursionIdentity(nr);wr&&(Hr=Te.get(wr),Hr||(Hr=Te.size,Te.set(wr,Hr)));var Oe=n(n(n(n(n(n(n({id:nr.id,intrinsicName:nr.intrinsicName,symbolName:(me==null?void 0:me.escapedName)&&e.unescapeLeadingUnderscores(me.escapedName),recursionId:Hr,isTuple:tr&8?!0:void 0,unionTypes:nr.flags&1048576?(De=nr.types)===null||De===void 0?void 0:De.map(function(Ze){return Ze.id}):void 0,intersectionTypes:nr.flags&2097152?nr.types.map(function(Ze){return Ze.id}):void 0,aliasTypeArguments:(N=nr.aliasTypeArguments)===null||N===void 0?void 0:N.map(function(Ze){return Ze.id}),keyofType:nr.flags&4194304?(b=nr.type)===null||b===void 0?void 0:b.id:void 0},rr),Ce),qe),L),Ue),lr),{destructuringPattern:F(nr.pattern),firstDeclaration:F((Q=me==null?void 0:me.declarations)===null||Q===void 0?void 0:Q[0]),flags:e.Debug.formatTypeFlags(nr.flags).split("|"),display:He});T.writeSync(ae,JSON.stringify(Oe)),we<Ne-1&&T.writeSync(ae,`,
`)}T.writeSync(ae,`]
`),T.closeSync(ae),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function ge(){E&&T.writeFileSync(E,JSON.stringify(v))}P.dumpLegend=ge})(c||(c={})),e.startTracing=c.startTracing,e.dumpTracingLegend=c.dumpLegend})(h||(h={}));var h;(function(e){(function(s){s[s.Unknown=0]="Unknown",s[s.EndOfFileToken=1]="EndOfFileToken",s[s.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",s[s.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",s[s.NewLineTrivia=4]="NewLineTrivia",s[s.WhitespaceTrivia=5]="WhitespaceTrivia",s[s.ShebangTrivia=6]="ShebangTrivia",s[s.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",s[s.NumericLiteral=8]="NumericLiteral",s[s.BigIntLiteral=9]="BigIntLiteral",s[s.StringLiteral=10]="StringLiteral",s[s.JsxText=11]="JsxText",s[s.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",s[s.RegularExpressionLiteral=13]="RegularExpressionLiteral",s[s.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",s[s.TemplateHead=15]="TemplateHead",s[s.TemplateMiddle=16]="TemplateMiddle",s[s.TemplateTail=17]="TemplateTail",s[s.OpenBraceToken=18]="OpenBraceToken",s[s.CloseBraceToken=19]="CloseBraceToken",s[s.OpenParenToken=20]="OpenParenToken",s[s.CloseParenToken=21]="CloseParenToken",s[s.OpenBracketToken=22]="OpenBracketToken",s[s.CloseBracketToken=23]="CloseBracketToken",s[s.DotToken=24]="DotToken",s[s.DotDotDotToken=25]="DotDotDotToken",s[s.SemicolonToken=26]="SemicolonToken",s[s.CommaToken=27]="CommaToken",s[s.QuestionDotToken=28]="QuestionDotToken",s[s.LessThanToken=29]="LessThanToken",s[s.LessThanSlashToken=30]="LessThanSlashToken",s[s.GreaterThanToken=31]="GreaterThanToken",s[s.LessThanEqualsToken=32]="LessThanEqualsToken",s[s.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",s[s.EqualsEqualsToken=34]="EqualsEqualsToken",s[s.ExclamationEqualsToken=35]="ExclamationEqualsToken",s[s.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",s[s.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",s[s.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",s[s.PlusToken=39]="PlusToken",s[s.MinusToken=40]="MinusToken",s[s.AsteriskToken=41]="AsteriskToken",s[s.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",s[s.SlashToken=43]="SlashToken",s[s.PercentToken=44]="PercentToken",s[s.PlusPlusToken=45]="PlusPlusToken",s[s.MinusMinusToken=46]="MinusMinusToken",s[s.LessThanLessThanToken=47]="LessThanLessThanToken",s[s.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",s[s.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",s[s.AmpersandToken=50]="AmpersandToken",s[s.BarToken=51]="BarToken",s[s.CaretToken=52]="CaretToken",s[s.ExclamationToken=53]="ExclamationToken",s[s.TildeToken=54]="TildeToken",s[s.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",s[s.BarBarToken=56]="BarBarToken",s[s.QuestionToken=57]="QuestionToken",s[s.ColonToken=58]="ColonToken",s[s.AtToken=59]="AtToken",s[s.QuestionQuestionToken=60]="QuestionQuestionToken",s[s.BacktickToken=61]="BacktickToken",s[s.HashToken=62]="HashToken",s[s.EqualsToken=63]="EqualsToken",s[s.PlusEqualsToken=64]="PlusEqualsToken",s[s.MinusEqualsToken=65]="MinusEqualsToken",s[s.AsteriskEqualsToken=66]="AsteriskEqualsToken",s[s.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",s[s.SlashEqualsToken=68]="SlashEqualsToken",s[s.PercentEqualsToken=69]="PercentEqualsToken",s[s.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",s[s.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",s[s.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",s[s.AmpersandEqualsToken=73]="AmpersandEqualsToken",s[s.BarEqualsToken=74]="BarEqualsToken",s[s.BarBarEqualsToken=75]="BarBarEqualsToken",s[s.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",s[s.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",s[s.CaretEqualsToken=78]="CaretEqualsToken",s[s.Identifier=79]="Identifier",s[s.PrivateIdentifier=80]="PrivateIdentifier",s[s.BreakKeyword=81]="BreakKeyword",s[s.CaseKeyword=82]="CaseKeyword",s[s.CatchKeyword=83]="CatchKeyword",s[s.ClassKeyword=84]="ClassKeyword",s[s.ConstKeyword=85]="ConstKeyword",s[s.ContinueKeyword=86]="ContinueKeyword",s[s.DebuggerKeyword=87]="DebuggerKeyword",s[s.DefaultKeyword=88]="DefaultKeyword",s[s.DeleteKeyword=89]="DeleteKeyword",s[s.DoKeyword=90]="DoKeyword",s[s.ElseKeyword=91]="ElseKeyword",s[s.EnumKeyword=92]="EnumKeyword",s[s.ExportKeyword=93]="ExportKeyword",s[s.ExtendsKeyword=94]="ExtendsKeyword",s[s.FalseKeyword=95]="FalseKeyword",s[s.FinallyKeyword=96]="FinallyKeyword",s[s.ForKeyword=97]="ForKeyword",s[s.FunctionKeyword=98]="FunctionKeyword",s[s.IfKeyword=99]="IfKeyword",s[s.ImportKeyword=100]="ImportKeyword",s[s.InKeyword=101]="InKeyword",s[s.InstanceOfKeyword=102]="InstanceOfKeyword",s[s.NewKeyword=103]="NewKeyword",s[s.NullKeyword=104]="NullKeyword",s[s.ReturnKeyword=105]="ReturnKeyword",s[s.SuperKeyword=106]="SuperKeyword",s[s.SwitchKeyword=107]="SwitchKeyword",s[s.ThisKeyword=108]="ThisKeyword",s[s.ThrowKeyword=109]="ThrowKeyword",s[s.TrueKeyword=110]="TrueKeyword",s[s.TryKeyword=111]="TryKeyword",s[s.TypeOfKeyword=112]="TypeOfKeyword",s[s.VarKeyword=113]="VarKeyword",s[s.VoidKeyword=114]="VoidKeyword",s[s.WhileKeyword=115]="WhileKeyword",s[s.WithKeyword=116]="WithKeyword",s[s.ImplementsKeyword=117]="ImplementsKeyword",s[s.InterfaceKeyword=118]="InterfaceKeyword",s[s.LetKeyword=119]="LetKeyword",s[s.PackageKeyword=120]="PackageKeyword",s[s.PrivateKeyword=121]="PrivateKeyword",s[s.ProtectedKeyword=122]="ProtectedKeyword",s[s.PublicKeyword=123]="PublicKeyword",s[s.StaticKeyword=124]="StaticKeyword",s[s.YieldKeyword=125]="YieldKeyword",s[s.AbstractKeyword=126]="AbstractKeyword",s[s.AccessorKeyword=127]="AccessorKeyword",s[s.AsKeyword=128]="AsKeyword",s[s.AssertsKeyword=129]="AssertsKeyword",s[s.AssertKeyword=130]="AssertKeyword",s[s.AnyKeyword=131]="AnyKeyword",s[s.AsyncKeyword=132]="AsyncKeyword",s[s.AwaitKeyword=133]="AwaitKeyword",s[s.BooleanKeyword=134]="BooleanKeyword",s[s.ConstructorKeyword=135]="ConstructorKeyword",s[s.DeclareKeyword=136]="DeclareKeyword",s[s.GetKeyword=137]="GetKeyword",s[s.InferKeyword=138]="InferKeyword",s[s.IntrinsicKeyword=139]="IntrinsicKeyword",s[s.IsKeyword=140]="IsKeyword",s[s.KeyOfKeyword=141]="KeyOfKeyword",s[s.ModuleKeyword=142]="ModuleKeyword",s[s.NamespaceKeyword=143]="NamespaceKeyword",s[s.NeverKeyword=144]="NeverKeyword",s[s.OutKeyword=145]="OutKeyword",s[s.ReadonlyKeyword=146]="ReadonlyKeyword",s[s.RequireKeyword=147]="RequireKeyword",s[s.NumberKeyword=148]="NumberKeyword",s[s.ObjectKeyword=149]="ObjectKeyword",s[s.SatisfiesKeyword=150]="SatisfiesKeyword",s[s.SetKeyword=151]="SetKeyword",s[s.StringKeyword=152]="StringKeyword",s[s.SymbolKeyword=153]="SymbolKeyword",s[s.TypeKeyword=154]="TypeKeyword",s[s.UndefinedKeyword=155]="UndefinedKeyword",s[s.UniqueKeyword=156]="UniqueKeyword",s[s.UnknownKeyword=157]="UnknownKeyword",s[s.FromKeyword=158]="FromKeyword",s[s.GlobalKeyword=159]="GlobalKeyword",s[s.BigIntKeyword=160]="BigIntKeyword",s[s.OverrideKeyword=161]="OverrideKeyword",s[s.OfKeyword=162]="OfKeyword",s[s.QualifiedName=163]="QualifiedName",s[s.ComputedPropertyName=164]="ComputedPropertyName",s[s.TypeParameter=165]="TypeParameter",s[s.Parameter=166]="Parameter",s[s.Decorator=167]="Decorator",s[s.PropertySignature=168]="PropertySignature",s[s.PropertyDeclaration=169]="PropertyDeclaration",s[s.MethodSignature=170]="MethodSignature",s[s.MethodDeclaration=171]="MethodDeclaration",s[s.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",s[s.Constructor=173]="Constructor",s[s.GetAccessor=174]="GetAccessor",s[s.SetAccessor=175]="SetAccessor",s[s.CallSignature=176]="CallSignature",s[s.ConstructSignature=177]="ConstructSignature",s[s.IndexSignature=178]="IndexSignature",s[s.TypePredicate=179]="TypePredicate",s[s.TypeReference=180]="TypeReference",s[s.FunctionType=181]="FunctionType",s[s.ConstructorType=182]="ConstructorType",s[s.TypeQuery=183]="TypeQuery",s[s.TypeLiteral=184]="TypeLiteral",s[s.ArrayType=185]="ArrayType",s[s.TupleType=186]="TupleType",s[s.OptionalType=187]="OptionalType",s[s.RestType=188]="RestType",s[s.UnionType=189]="UnionType",s[s.IntersectionType=190]="IntersectionType",s[s.ConditionalType=191]="ConditionalType",s[s.InferType=192]="InferType",s[s.ParenthesizedType=193]="ParenthesizedType",s[s.ThisType=194]="ThisType",s[s.TypeOperator=195]="TypeOperator",s[s.IndexedAccessType=196]="IndexedAccessType",s[s.MappedType=197]="MappedType",s[s.LiteralType=198]="LiteralType",s[s.NamedTupleMember=199]="NamedTupleMember",s[s.TemplateLiteralType=200]="TemplateLiteralType",s[s.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",s[s.ImportType=202]="ImportType",s[s.ObjectBindingPattern=203]="ObjectBindingPattern",s[s.ArrayBindingPattern=204]="ArrayBindingPattern",s[s.BindingElement=205]="BindingElement",s[s.ArrayLiteralExpression=206]="ArrayLiteralExpression",s[s.ObjectLiteralExpression=207]="ObjectLiteralExpression",s[s.PropertyAccessExpression=208]="PropertyAccessExpression",s[s.ElementAccessExpression=209]="ElementAccessExpression",s[s.CallExpression=210]="CallExpression",s[s.NewExpression=211]="NewExpression",s[s.TaggedTemplateExpression=212]="TaggedTemplateExpression",s[s.TypeAssertionExpression=213]="TypeAssertionExpression",s[s.ParenthesizedExpression=214]="ParenthesizedExpression",s[s.FunctionExpression=215]="FunctionExpression",s[s.ArrowFunction=216]="ArrowFunction",s[s.DeleteExpression=217]="DeleteExpression",s[s.TypeOfExpression=218]="TypeOfExpression",s[s.VoidExpression=219]="VoidExpression",s[s.AwaitExpression=220]="AwaitExpression",s[s.PrefixUnaryExpression=221]="PrefixUnaryExpression",s[s.PostfixUnaryExpression=222]="PostfixUnaryExpression",s[s.BinaryExpression=223]="BinaryExpression",s[s.ConditionalExpression=224]="ConditionalExpression",s[s.TemplateExpression=225]="TemplateExpression",s[s.YieldExpression=226]="YieldExpression",s[s.SpreadElement=227]="SpreadElement",s[s.ClassExpression=228]="ClassExpression",s[s.OmittedExpression=229]="OmittedExpression",s[s.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",s[s.AsExpression=231]="AsExpression",s[s.NonNullExpression=232]="NonNullExpression",s[s.MetaProperty=233]="MetaProperty",s[s.SyntheticExpression=234]="SyntheticExpression",s[s.SatisfiesExpression=235]="SatisfiesExpression",s[s.TemplateSpan=236]="TemplateSpan",s[s.SemicolonClassElement=237]="SemicolonClassElement",s[s.Block=238]="Block",s[s.EmptyStatement=239]="EmptyStatement",s[s.VariableStatement=240]="VariableStatement",s[s.ExpressionStatement=241]="ExpressionStatement",s[s.IfStatement=242]="IfStatement",s[s.DoStatement=243]="DoStatement",s[s.WhileStatement=244]="WhileStatement",s[s.ForStatement=245]="ForStatement",s[s.ForInStatement=246]="ForInStatement",s[s.ForOfStatement=247]="ForOfStatement",s[s.ContinueStatement=248]="ContinueStatement",s[s.BreakStatement=249]="BreakStatement",s[s.ReturnStatement=250]="ReturnStatement",s[s.WithStatement=251]="WithStatement",s[s.SwitchStatement=252]="SwitchStatement",s[s.LabeledStatement=253]="LabeledStatement",s[s.ThrowStatement=254]="ThrowStatement",s[s.TryStatement=255]="TryStatement",s[s.DebuggerStatement=256]="DebuggerStatement",s[s.VariableDeclaration=257]="VariableDeclaration",s[s.VariableDeclarationList=258]="VariableDeclarationList",s[s.FunctionDeclaration=259]="FunctionDeclaration",s[s.ClassDeclaration=260]="ClassDeclaration",s[s.InterfaceDeclaration=261]="InterfaceDeclaration",s[s.TypeAliasDeclaration=262]="TypeAliasDeclaration",s[s.EnumDeclaration=263]="EnumDeclaration",s[s.ModuleDeclaration=264]="ModuleDeclaration",s[s.ModuleBlock=265]="ModuleBlock",s[s.CaseBlock=266]="CaseBlock",s[s.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",s[s.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",s[s.ImportDeclaration=269]="ImportDeclaration",s[s.ImportClause=270]="ImportClause",s[s.NamespaceImport=271]="NamespaceImport",s[s.NamedImports=272]="NamedImports",s[s.ImportSpecifier=273]="ImportSpecifier",s[s.ExportAssignment=274]="ExportAssignment",s[s.ExportDeclaration=275]="ExportDeclaration",s[s.NamedExports=276]="NamedExports",s[s.NamespaceExport=277]="NamespaceExport",s[s.ExportSpecifier=278]="ExportSpecifier",s[s.MissingDeclaration=279]="MissingDeclaration",s[s.ExternalModuleReference=280]="ExternalModuleReference",s[s.JsxElement=281]="JsxElement",s[s.JsxSelfClosingElement=282]="JsxSelfClosingElement",s[s.JsxOpeningElement=283]="JsxOpeningElement",s[s.JsxClosingElement=284]="JsxClosingElement",s[s.JsxFragment=285]="JsxFragment",s[s.JsxOpeningFragment=286]="JsxOpeningFragment",s[s.JsxClosingFragment=287]="JsxClosingFragment",s[s.JsxAttribute=288]="JsxAttribute",s[s.JsxAttributes=289]="JsxAttributes",s[s.JsxSpreadAttribute=290]="JsxSpreadAttribute",s[s.JsxExpression=291]="JsxExpression",s[s.CaseClause=292]="CaseClause",s[s.DefaultClause=293]="DefaultClause",s[s.HeritageClause=294]="HeritageClause",s[s.CatchClause=295]="CatchClause",s[s.AssertClause=296]="AssertClause",s[s.AssertEntry=297]="AssertEntry",s[s.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",s[s.PropertyAssignment=299]="PropertyAssignment",s[s.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",s[s.SpreadAssignment=301]="SpreadAssignment",s[s.EnumMember=302]="EnumMember",s[s.UnparsedPrologue=303]="UnparsedPrologue",s[s.UnparsedPrepend=304]="UnparsedPrepend",s[s.UnparsedText=305]="UnparsedText",s[s.UnparsedInternalText=306]="UnparsedInternalText",s[s.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",s[s.SourceFile=308]="SourceFile",s[s.Bundle=309]="Bundle",s[s.UnparsedSource=310]="UnparsedSource",s[s.InputFiles=311]="InputFiles",s[s.JSDocTypeExpression=312]="JSDocTypeExpression",s[s.JSDocNameReference=313]="JSDocNameReference",s[s.JSDocMemberName=314]="JSDocMemberName",s[s.JSDocAllType=315]="JSDocAllType",s[s.JSDocUnknownType=316]="JSDocUnknownType",s[s.JSDocNullableType=317]="JSDocNullableType",s[s.JSDocNonNullableType=318]="JSDocNonNullableType",s[s.JSDocOptionalType=319]="JSDocOptionalType",s[s.JSDocFunctionType=320]="JSDocFunctionType",s[s.JSDocVariadicType=321]="JSDocVariadicType",s[s.JSDocNamepathType=322]="JSDocNamepathType",s[s.JSDoc=323]="JSDoc",s[s.JSDocComment=323]="JSDocComment",s[s.JSDocText=324]="JSDocText",s[s.JSDocTypeLiteral=325]="JSDocTypeLiteral",s[s.JSDocSignature=326]="JSDocSignature",s[s.JSDocLink=327]="JSDocLink",s[s.JSDocLinkCode=328]="JSDocLinkCode",s[s.JSDocLinkPlain=329]="JSDocLinkPlain",s[s.JSDocTag=330]="JSDocTag",s[s.JSDocAugmentsTag=331]="JSDocAugmentsTag",s[s.JSDocImplementsTag=332]="JSDocImplementsTag",s[s.JSDocAuthorTag=333]="JSDocAuthorTag",s[s.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",s[s.JSDocClassTag=335]="JSDocClassTag",s[s.JSDocPublicTag=336]="JSDocPublicTag",s[s.JSDocPrivateTag=337]="JSDocPrivateTag",s[s.JSDocProtectedTag=338]="JSDocProtectedTag",s[s.JSDocReadonlyTag=339]="JSDocReadonlyTag",s[s.JSDocOverrideTag=340]="JSDocOverrideTag",s[s.JSDocCallbackTag=341]="JSDocCallbackTag",s[s.JSDocEnumTag=342]="JSDocEnumTag",s[s.JSDocParameterTag=343]="JSDocParameterTag",s[s.JSDocReturnTag=344]="JSDocReturnTag",s[s.JSDocThisTag=345]="JSDocThisTag",s[s.JSDocTypeTag=346]="JSDocTypeTag",s[s.JSDocTemplateTag=347]="JSDocTemplateTag",s[s.JSDocTypedefTag=348]="JSDocTypedefTag",s[s.JSDocSeeTag=349]="JSDocSeeTag",s[s.JSDocPropertyTag=350]="JSDocPropertyTag",s[s.SyntaxList=351]="SyntaxList",s[s.NotEmittedStatement=352]="NotEmittedStatement",s[s.PartiallyEmittedExpression=353]="PartiallyEmittedExpression",s[s.CommaListExpression=354]="CommaListExpression",s[s.MergeDeclarationMarker=355]="MergeDeclarationMarker",s[s.EndOfDeclarationMarker=356]="EndOfDeclarationMarker",s[s.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",s[s.Count=358]="Count",s[s.FirstAssignment=63]="FirstAssignment",s[s.LastAssignment=78]="LastAssignment",s[s.FirstCompoundAssignment=64]="FirstCompoundAssignment",s[s.LastCompoundAssignment=78]="LastCompoundAssignment",s[s.FirstReservedWord=81]="FirstReservedWord",s[s.LastReservedWord=116]="LastReservedWord",s[s.FirstKeyword=81]="FirstKeyword",s[s.LastKeyword=162]="LastKeyword",s[s.FirstFutureReservedWord=117]="FirstFutureReservedWord",s[s.LastFutureReservedWord=125]="LastFutureReservedWord",s[s.FirstTypeNode=179]="FirstTypeNode",s[s.LastTypeNode=202]="LastTypeNode",s[s.FirstPunctuation=18]="FirstPunctuation",s[s.LastPunctuation=78]="LastPunctuation",s[s.FirstToken=0]="FirstToken",s[s.LastToken=162]="LastToken",s[s.FirstTriviaToken=2]="FirstTriviaToken",s[s.LastTriviaToken=7]="LastTriviaToken",s[s.FirstLiteralToken=8]="FirstLiteralToken",s[s.LastLiteralToken=14]="LastLiteralToken",s[s.FirstTemplateToken=14]="FirstTemplateToken",s[s.LastTemplateToken=17]="LastTemplateToken",s[s.FirstBinaryOperator=29]="FirstBinaryOperator",s[s.LastBinaryOperator=78]="LastBinaryOperator",s[s.FirstStatement=240]="FirstStatement",s[s.LastStatement=256]="LastStatement",s[s.FirstNode=163]="FirstNode",s[s.FirstJSDocNode=312]="FirstJSDocNode",s[s.LastJSDocNode=350]="LastJSDocNode",s[s.FirstJSDocTagNode=330]="FirstJSDocTagNode",s[s.LastJSDocTagNode=350]="LastJSDocTagNode",s[s.FirstContextualKeyword=126]="FirstContextualKeyword",s[s.LastContextualKeyword=162]="LastContextualKeyword"})(e.SyntaxKind||(e.SyntaxKind={})),function(s){s[s.None=0]="None",s[s.Let=1]="Let",s[s.Const=2]="Const",s[s.NestedNamespace=4]="NestedNamespace",s[s.Synthesized=8]="Synthesized",s[s.Namespace=16]="Namespace",s[s.OptionalChain=32]="OptionalChain",s[s.ExportContext=64]="ExportContext",s[s.ContainsThis=128]="ContainsThis",s[s.HasImplicitReturn=256]="HasImplicitReturn",s[s.HasExplicitReturn=512]="HasExplicitReturn",s[s.GlobalAugmentation=1024]="GlobalAugmentation",s[s.HasAsyncFunctions=2048]="HasAsyncFunctions",s[s.DisallowInContext=4096]="DisallowInContext",s[s.YieldContext=8192]="YieldContext",s[s.DecoratorContext=16384]="DecoratorContext",s[s.AwaitContext=32768]="AwaitContext",s[s.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",s[s.ThisNodeHasError=131072]="ThisNodeHasError",s[s.JavaScriptFile=262144]="JavaScriptFile",s[s.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",s[s.HasAggregatedChildData=1048576]="HasAggregatedChildData",s[s.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",s[s.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",s[s.JSDoc=8388608]="JSDoc",s[s.Ambient=16777216]="Ambient",s[s.InWithStatement=33554432]="InWithStatement",s[s.JsonFile=67108864]="JsonFile",s[s.TypeCached=134217728]="TypeCached",s[s.Deprecated=268435456]="Deprecated",s[s.BlockScoped=3]="BlockScoped",s[s.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",s[s.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",s[s.ContextFlags=50720768]="ContextFlags",s[s.TypeExcludesFlags=40960]="TypeExcludesFlags",s[s.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(s){s[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Accessor=128]="Accessor",s[s.Abstract=256]="Abstract",s[s.Async=512]="Async",s[s.Default=1024]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.In=32768]="In",s[s.Out=65536]="Out",s[s.Decorator=131072]="Decorator",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=117086]="TypeScriptModifier",s[s.ExportDefault=1025]="ExportDefault",s[s.All=258047]="All",s[s.Modifier=126975]="Modifier"}(e.ModifierFlags||(e.ModifierFlags={})),function(s){s[s.None=0]="None",s[s.IntrinsicNamedElement=1]="IntrinsicNamedElement",s[s.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",s[s.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(s){s[s.Succeeded=1]="Succeeded",s[s.Failed=2]="Failed",s[s.Reported=4]="Reported",s[s.ReportsUnmeasurable=8]="ReportsUnmeasurable",s[s.ReportsUnreliable=16]="ReportsUnreliable",s[s.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(s){s[s.None=0]="None",s[s.Auto=1]="Auto",s[s.Loop=2]="Loop",s[s.Unique=3]="Unique",s[s.Node=4]="Node",s[s.KindMask=7]="KindMask",s[s.ReservedInNestedScopes=8]="ReservedInNestedScopes",s[s.Optimistic=16]="Optimistic",s[s.FileLevel=32]="FileLevel",s[s.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(s){s[s.None=0]="None",s[s.PrecedingLineBreak=1]="PrecedingLineBreak",s[s.PrecedingJSDocComment=2]="PrecedingJSDocComment",s[s.Unterminated=4]="Unterminated",s[s.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",s[s.Scientific=16]="Scientific",s[s.Octal=32]="Octal",s[s.HexSpecifier=64]="HexSpecifier",s[s.BinarySpecifier=128]="BinarySpecifier",s[s.OctalSpecifier=256]="OctalSpecifier",s[s.ContainsSeparator=512]="ContainsSeparator",s[s.UnicodeEscape=1024]="UnicodeEscape",s[s.ContainsInvalidEscape=2048]="ContainsInvalidEscape",s[s.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",s[s.NumericLiteralFlags=1008]="NumericLiteralFlags",s[s.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(s){s[s.Unreachable=1]="Unreachable",s[s.Start=2]="Start",s[s.BranchLabel=4]="BranchLabel",s[s.LoopLabel=8]="LoopLabel",s[s.Assignment=16]="Assignment",s[s.TrueCondition=32]="TrueCondition",s[s.FalseCondition=64]="FalseCondition",s[s.SwitchClause=128]="SwitchClause",s[s.ArrayMutation=256]="ArrayMutation",s[s.Call=512]="Call",s[s.ReduceLabel=1024]="ReduceLabel",s[s.Referenced=2048]="Referenced",s[s.Shared=4096]="Shared",s[s.Label=12]="Label",s[s.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(s){s[s.ExpectError=0]="ExpectError",s[s.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var c=function(){function s(){}return s}();e.OperationCanceledException=c,function(s){s[s.RootFile=0]="RootFile",s[s.SourceFromProjectReference=1]="SourceFromProjectReference",s[s.OutputFromProjectReference=2]="OutputFromProjectReference",s[s.Import=3]="Import",s[s.ReferenceFile=4]="ReferenceFile",s[s.TypeReferenceDirective=5]="TypeReferenceDirective",s[s.LibFile=6]="LibFile",s[s.LibReferenceDirective=7]="LibReferenceDirective",s[s.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"}(e.FileIncludeKind||(e.FileIncludeKind={})),function(s){s[s.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",s[s.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"}(e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={})),function(s){s[s.Not=0]="Not",s[s.SafeModules=1]="SafeModules",s[s.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(s){s[s.Success=0]="Success",s[s.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",s[s.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",s[s.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",s[s.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",s[s.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(s){s[s.Ok=0]="Ok",s[s.NeedsOverride=1]="NeedsOverride",s[s.HasInvalidOverride=2]="HasInvalidOverride"}(e.MemberOverrideStatus||(e.MemberOverrideStatus={})),function(s){s[s.None=0]="None",s[s.Literal=1]="Literal",s[s.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(s){s[s.None=0]="None",s[s.Signature=1]="Signature",s[s.NoConstraints=2]="NoConstraints",s[s.Completions=4]="Completions",s[s.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(s){s[s.None=0]="None",s[s.NoTruncation=1]="NoTruncation",s[s.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",s[s.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",s[s.UseStructuralFallback=8]="UseStructuralFallback",s[s.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",s[s.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",s[s.UseFullyQualifiedType=64]="UseFullyQualifiedType",s[s.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",s[s.SuppressAnyReturnType=256]="SuppressAnyReturnType",s[s.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",s[s.MultilineObjectLiterals=1024]="MultilineObjectLiterals",s[s.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",s[s.UseTypeOfFunction=4096]="UseTypeOfFunction",s[s.OmitParameterModifiers=8192]="OmitParameterModifiers",s[s.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",s[s.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",s[s.NoTypeReduction=536870912]="NoTypeReduction",s[s.OmitThisParameter=33554432]="OmitThisParameter",s[s.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",s[s.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",s[s.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",s[s.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",s[s.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",s[s.AllowEmptyTuple=524288]="AllowEmptyTuple",s[s.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",s[s.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",s[s.WriteComputedProps=1073741824]="WriteComputedProps",s[s.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",s[s.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",s[s.IgnoreErrors=70221824]="IgnoreErrors",s[s.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",s[s.InTypeAlias=8388608]="InTypeAlias",s[s.InInitialEntityName=16777216]="InInitialEntityName"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(s){s[s.None=0]="None",s[s.NoTruncation=1]="NoTruncation",s[s.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",s[s.UseStructuralFallback=8]="UseStructuralFallback",s[s.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",s[s.UseFullyQualifiedType=64]="UseFullyQualifiedType",s[s.SuppressAnyReturnType=256]="SuppressAnyReturnType",s[s.MultilineObjectLiterals=1024]="MultilineObjectLiterals",s[s.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",s[s.UseTypeOfFunction=4096]="UseTypeOfFunction",s[s.OmitParameterModifiers=8192]="OmitParameterModifiers",s[s.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",s[s.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",s[s.NoTypeReduction=536870912]="NoTypeReduction",s[s.OmitThisParameter=33554432]="OmitThisParameter",s[s.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",s[s.AddUndefined=131072]="AddUndefined",s[s.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",s[s.InArrayType=524288]="InArrayType",s[s.InElementType=2097152]="InElementType",s[s.InFirstTypeArgument=4194304]="InFirstTypeArgument",s[s.InTypeAlias=8388608]="InTypeAlias",s[s.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",s[s.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(s){s[s.None=0]="None",s[s.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",s[s.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",s[s.AllowAnyNodeKind=4]="AllowAnyNodeKind",s[s.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",s[s.WriteComputedProps=16]="WriteComputedProps",s[s.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(s){s[s.Accessible=0]="Accessible",s[s.NotAccessible=1]="NotAccessible",s[s.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(s){s[s.UnionOrIntersection=0]="UnionOrIntersection",s[s.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(s){s[s.This=0]="This",s[s.Identifier=1]="Identifier",s[s.AssertsThis=2]="AssertsThis",s[s.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(s){s[s.Unknown=0]="Unknown",s[s.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",s[s.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",s[s.NumberLikeType=3]="NumberLikeType",s[s.BigIntLikeType=4]="BigIntLikeType",s[s.StringLikeType=5]="StringLikeType",s[s.BooleanType=6]="BooleanType",s[s.ArrayLikeType=7]="ArrayLikeType",s[s.ESSymbolType=8]="ESSymbolType",s[s.Promise=9]="Promise",s[s.TypeWithCallSignature=10]="TypeWithCallSignature",s[s.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(s){s[s.None=0]="None",s[s.FunctionScopedVariable=1]="FunctionScopedVariable",s[s.BlockScopedVariable=2]="BlockScopedVariable",s[s.Property=4]="Property",s[s.EnumMember=8]="EnumMember",s[s.Function=16]="Function",s[s.Class=32]="Class",s[s.Interface=64]="Interface",s[s.ConstEnum=128]="ConstEnum",s[s.RegularEnum=256]="RegularEnum",s[s.ValueModule=512]="ValueModule",s[s.NamespaceModule=1024]="NamespaceModule",s[s.TypeLiteral=2048]="TypeLiteral",s[s.ObjectLiteral=4096]="ObjectLiteral",s[s.Method=8192]="Method",s[s.Constructor=16384]="Constructor",s[s.GetAccessor=32768]="GetAccessor",s[s.SetAccessor=65536]="SetAccessor",s[s.Signature=131072]="Signature",s[s.TypeParameter=262144]="TypeParameter",s[s.TypeAlias=524288]="TypeAlias",s[s.ExportValue=1048576]="ExportValue",s[s.Alias=2097152]="Alias",s[s.Prototype=4194304]="Prototype",s[s.ExportStar=8388608]="ExportStar",s[s.Optional=16777216]="Optional",s[s.Transient=33554432]="Transient",s[s.Assignment=67108864]="Assignment",s[s.ModuleExports=134217728]="ModuleExports",s[s.All=67108863]="All",s[s.Enum=384]="Enum",s[s.Variable=3]="Variable",s[s.Value=111551]="Value",s[s.Type=788968]="Type",s[s.Namespace=1920]="Namespace",s[s.Module=1536]="Module",s[s.Accessor=98304]="Accessor",s[s.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",s[s.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",s[s.ParameterExcludes=111551]="ParameterExcludes",s[s.PropertyExcludes=0]="PropertyExcludes",s[s.EnumMemberExcludes=900095]="EnumMemberExcludes",s[s.FunctionExcludes=110991]="FunctionExcludes",s[s.ClassExcludes=899503]="ClassExcludes",s[s.InterfaceExcludes=788872]="InterfaceExcludes",s[s.RegularEnumExcludes=899327]="RegularEnumExcludes",s[s.ConstEnumExcludes=899967]="ConstEnumExcludes",s[s.ValueModuleExcludes=110735]="ValueModuleExcludes",s[s.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",s[s.MethodExcludes=103359]="MethodExcludes",s[s.GetAccessorExcludes=46015]="GetAccessorExcludes",s[s.SetAccessorExcludes=78783]="SetAccessorExcludes",s[s.AccessorExcludes=13247]="AccessorExcludes",s[s.TypeParameterExcludes=526824]="TypeParameterExcludes",s[s.TypeAliasExcludes=788968]="TypeAliasExcludes",s[s.AliasExcludes=2097152]="AliasExcludes",s[s.ModuleMember=2623475]="ModuleMember",s[s.ExportHasLocal=944]="ExportHasLocal",s[s.BlockScoped=418]="BlockScoped",s[s.PropertyOrAccessor=98308]="PropertyOrAccessor",s[s.ClassMember=106500]="ClassMember",s[s.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",s[s.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",s[s.Classifiable=2885600]="Classifiable",s[s.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(s){s[s.Numeric=0]="Numeric",s[s.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(s){s[s.Instantiated=1]="Instantiated",s[s.SyntheticProperty=2]="SyntheticProperty",s[s.SyntheticMethod=4]="SyntheticMethod",s[s.Readonly=8]="Readonly",s[s.ReadPartial=16]="ReadPartial",s[s.WritePartial=32]="WritePartial",s[s.HasNonUniformType=64]="HasNonUniformType",s[s.HasLiteralType=128]="HasLiteralType",s[s.ContainsPublic=256]="ContainsPublic",s[s.ContainsProtected=512]="ContainsProtected",s[s.ContainsPrivate=1024]="ContainsPrivate",s[s.ContainsStatic=2048]="ContainsStatic",s[s.Late=4096]="Late",s[s.ReverseMapped=8192]="ReverseMapped",s[s.OptionalParameter=16384]="OptionalParameter",s[s.RestParameter=32768]="RestParameter",s[s.DeferredType=65536]="DeferredType",s[s.HasNeverType=131072]="HasNeverType",s[s.Mapped=262144]="Mapped",s[s.StripOptional=524288]="StripOptional",s[s.Unresolved=1048576]="Unresolved",s[s.Synthetic=6]="Synthetic",s[s.Discriminant=192]="Discriminant",s[s.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(s){s.Call="__call",s.Constructor="__constructor",s.New="__new",s.Index="__index",s.ExportStar="__export",s.Global="__global",s.Missing="__missing",s.Type="__type",s.Object="__object",s.JSXAttributes="__jsxAttributes",s.Class="__class",s.Function="__function",s.Computed="__computed",s.Resolving="__resolving__",s.ExportEquals="export=",s.Default="default",s.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(s){s[s.TypeChecked=1]="TypeChecked",s[s.LexicalThis=2]="LexicalThis",s[s.CaptureThis=4]="CaptureThis",s[s.CaptureNewTarget=8]="CaptureNewTarget",s[s.SuperInstance=256]="SuperInstance",s[s.SuperStatic=512]="SuperStatic",s[s.ContextChecked=1024]="ContextChecked",s[s.MethodWithSuperPropertyAccessInAsync=2048]="MethodWithSuperPropertyAccessInAsync",s[s.MethodWithSuperPropertyAssignmentInAsync=4096]="MethodWithSuperPropertyAssignmentInAsync",s[s.CaptureArguments=8192]="CaptureArguments",s[s.EnumValuesComputed=16384]="EnumValuesComputed",s[s.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",s[s.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",s[s.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",s[s.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",s[s.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",s[s.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",s[s.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",s[s.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",s[s.AssignmentsMarked=8388608]="AssignmentsMarked",s[s.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",s[s.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",s[s.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",s[s.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",s[s.InCheckIdentifier=268435456]="InCheckIdentifier"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(s){s[s.Any=1]="Any",s[s.Unknown=2]="Unknown",s[s.String=4]="String",s[s.Number=8]="Number",s[s.Boolean=16]="Boolean",s[s.Enum=32]="Enum",s[s.BigInt=64]="BigInt",s[s.StringLiteral=128]="StringLiteral",s[s.NumberLiteral=256]="NumberLiteral",s[s.BooleanLiteral=512]="BooleanLiteral",s[s.EnumLiteral=1024]="EnumLiteral",s[s.BigIntLiteral=2048]="BigIntLiteral",s[s.ESSymbol=4096]="ESSymbol",s[s.UniqueESSymbol=8192]="UniqueESSymbol",s[s.Void=16384]="Void",s[s.Undefined=32768]="Undefined",s[s.Null=65536]="Null",s[s.Never=131072]="Never",s[s.TypeParameter=262144]="TypeParameter",s[s.Object=524288]="Object",s[s.Union=1048576]="Union",s[s.Intersection=2097152]="Intersection",s[s.Index=4194304]="Index",s[s.IndexedAccess=8388608]="IndexedAccess",s[s.Conditional=16777216]="Conditional",s[s.Substitution=33554432]="Substitution",s[s.NonPrimitive=67108864]="NonPrimitive",s[s.TemplateLiteral=134217728]="TemplateLiteral",s[s.StringMapping=268435456]="StringMapping",s[s.AnyOrUnknown=3]="AnyOrUnknown",s[s.Nullable=98304]="Nullable",s[s.Literal=2944]="Literal",s[s.Unit=109440]="Unit",s[s.StringOrNumberLiteral=384]="StringOrNumberLiteral",s[s.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",s[s.DefinitelyFalsy=117632]="DefinitelyFalsy",s[s.PossiblyFalsy=117724]="PossiblyFalsy",s[s.Intrinsic=67359327]="Intrinsic",s[s.Primitive=131068]="Primitive",s[s.StringLike=402653316]="StringLike",s[s.NumberLike=296]="NumberLike",s[s.BigIntLike=2112]="BigIntLike",s[s.BooleanLike=528]="BooleanLike",s[s.EnumLike=1056]="EnumLike",s[s.ESSymbolLike=12288]="ESSymbolLike",s[s.VoidLike=49152]="VoidLike",s[s.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",s[s.DisjointDomains=469892092]="DisjointDomains",s[s.UnionOrIntersection=3145728]="UnionOrIntersection",s[s.StructuredType=3670016]="StructuredType",s[s.TypeVariable=8650752]="TypeVariable",s[s.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",s[s.InstantiablePrimitive=406847488]="InstantiablePrimitive",s[s.Instantiable=465829888]="Instantiable",s[s.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",s[s.ObjectFlagsType=3899393]="ObjectFlagsType",s[s.Simplifiable=25165824]="Simplifiable",s[s.Singleton=67358815]="Singleton",s[s.Narrowable=536624127]="Narrowable",s[s.IncludesMask=205258751]="IncludesMask",s[s.IncludesMissingType=262144]="IncludesMissingType",s[s.IncludesNonWideningType=4194304]="IncludesNonWideningType",s[s.IncludesWildcard=8388608]="IncludesWildcard",s[s.IncludesEmptyObject=16777216]="IncludesEmptyObject",s[s.IncludesInstantiable=33554432]="IncludesInstantiable",s[s.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"}(e.TypeFlags||(e.TypeFlags={})),function(s){s[s.Class=1]="Class",s[s.Interface=2]="Interface",s[s.Reference=4]="Reference",s[s.Tuple=8]="Tuple",s[s.Anonymous=16]="Anonymous",s[s.Mapped=32]="Mapped",s[s.Instantiated=64]="Instantiated",s[s.ObjectLiteral=128]="ObjectLiteral",s[s.EvolvingArray=256]="EvolvingArray",s[s.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",s[s.ReverseMapped=1024]="ReverseMapped",s[s.JsxAttributes=2048]="JsxAttributes",s[s.JSLiteral=4096]="JSLiteral",s[s.FreshLiteral=8192]="FreshLiteral",s[s.ArrayLiteral=16384]="ArrayLiteral",s[s.PrimitiveUnion=32768]="PrimitiveUnion",s[s.ContainsWideningType=65536]="ContainsWideningType",s[s.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",s[s.NonInferrableType=262144]="NonInferrableType",s[s.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",s[s.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",s[s.ClassOrInterface=3]="ClassOrInterface",s[s.RequiresWidening=196608]="RequiresWidening",s[s.PropagatingFlags=458752]="PropagatingFlags",s[s.ObjectTypeKindMask=1343]="ObjectTypeKindMask",s[s.ContainsSpread=2097152]="ContainsSpread",s[s.ObjectRestType=4194304]="ObjectRestType",s[s.InstantiationExpressionType=8388608]="InstantiationExpressionType",s[s.IsClassInstanceClone=16777216]="IsClassInstanceClone",s[s.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",s[s.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",s[s.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",s[s.IsGenericObjectType=4194304]="IsGenericObjectType",s[s.IsGenericIndexType=8388608]="IsGenericIndexType",s[s.IsGenericType=12582912]="IsGenericType",s[s.ContainsIntersections=16777216]="ContainsIntersections",s[s.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",s[s.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",s[s.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",s[s.IsNeverIntersection=33554432]="IsNeverIntersection"}(e.ObjectFlags||(e.ObjectFlags={})),function(s){s[s.Invariant=0]="Invariant",s[s.Covariant=1]="Covariant",s[s.Contravariant=2]="Contravariant",s[s.Bivariant=3]="Bivariant",s[s.Independent=4]="Independent",s[s.VarianceMask=7]="VarianceMask",s[s.Unmeasurable=8]="Unmeasurable",s[s.Unreliable=16]="Unreliable",s[s.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(s){s[s.Required=1]="Required",s[s.Optional=2]="Optional",s[s.Rest=4]="Rest",s[s.Variadic=8]="Variadic",s[s.Fixed=3]="Fixed",s[s.Variable=12]="Variable",s[s.NonRequired=14]="NonRequired",s[s.NonRest=11]="NonRest"}(e.ElementFlags||(e.ElementFlags={})),function(s){s[s.None=0]="None",s[s.IncludeUndefined=1]="IncludeUndefined",s[s.NoIndexSignatures=2]="NoIndexSignatures",s[s.Writing=4]="Writing",s[s.CacheSymbol=8]="CacheSymbol",s[s.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",s[s.ExpressionPosition=32]="ExpressionPosition",s[s.ReportDeprecated=64]="ReportDeprecated",s[s.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",s[s.Contextual=256]="Contextual",s[s.Persistent=1]="Persistent"}(e.AccessFlags||(e.AccessFlags={})),function(s){s[s.Component=0]="Component",s[s.Function=1]="Function",s[s.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(s){s[s.Call=0]="Call",s[s.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(s){s[s.None=0]="None",s[s.HasRestParameter=1]="HasRestParameter",s[s.HasLiteralTypes=2]="HasLiteralTypes",s[s.Abstract=4]="Abstract",s[s.IsInnerCallChain=8]="IsInnerCallChain",s[s.IsOuterCallChain=16]="IsOuterCallChain",s[s.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",s[s.PropagatingFlags=39]="PropagatingFlags",s[s.CallChainFlags=24]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(s){s[s.String=0]="String",s[s.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(s){s[s.Simple=0]="Simple",s[s.Array=1]="Array",s[s.Deferred=2]="Deferred",s[s.Function=3]="Function",s[s.Composite=4]="Composite",s[s.Merged=5]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(s){s[s.NakedTypeVariable=1]="NakedTypeVariable",s[s.SpeculativeTuple=2]="SpeculativeTuple",s[s.SubstituteSource=4]="SubstituteSource",s[s.HomomorphicMappedType=8]="HomomorphicMappedType",s[s.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",s[s.MappedTypeConstraint=32]="MappedTypeConstraint",s[s.ContravariantConditional=64]="ContravariantConditional",s[s.ReturnType=128]="ReturnType",s[s.LiteralKeyof=256]="LiteralKeyof",s[s.NoConstraints=512]="NoConstraints",s[s.AlwaysStrict=1024]="AlwaysStrict",s[s.MaxValue=2048]="MaxValue",s[s.PriorityImpliesCombination=416]="PriorityImpliesCombination",s[s.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(s){s[s.None=0]="None",s[s.NoDefault=1]="NoDefault",s[s.AnyDefault=2]="AnyDefault",s[s.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(s){s[s.False=0]="False",s[s.Unknown=1]="Unknown",s[s.Maybe=3]="Maybe",s[s.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(s){s[s.None=0]="None",s[s.ExportsProperty=1]="ExportsProperty",s[s.ModuleExports=2]="ModuleExports",s[s.PrototypeProperty=3]="PrototypeProperty",s[s.ThisProperty=4]="ThisProperty",s[s.Property=5]="Property",s[s.Prototype=6]="Prototype",s[s.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",s[s.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",s[s.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var P;(function(s){s[s.Warning=0]="Warning",s[s.Error=1]="Error",s[s.Suggestion=2]="Suggestion",s[s.Message=3]="Message"})(P=e.DiagnosticCategory||(e.DiagnosticCategory={}));function T(s,D){D===void 0&&(D=!0);var O=P[s.category];return D?O.toLowerCase():O}e.diagnosticCategoryName=T,function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s[s.Node16=3]="Node16",s[s.NodeNext=99]="NodeNext"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(s){s[s.Legacy=1]="Legacy",s[s.Auto=2]="Auto",s[s.Force=3]="Force"}(e.ModuleDetectionKind||(e.ModuleDetectionKind={})),function(s){s[s.FixedPollingInterval=0]="FixedPollingInterval",s[s.PriorityPollingInterval=1]="PriorityPollingInterval",s[s.DynamicPriorityPolling=2]="DynamicPriorityPolling",s[s.FixedChunkSizePolling=3]="FixedChunkSizePolling",s[s.UseFsEvents=4]="UseFsEvents",s[s.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(s){s[s.UseFsEvents=0]="UseFsEvents",s[s.FixedPollingInterval=1]="FixedPollingInterval",s[s.DynamicPriorityPolling=2]="DynamicPriorityPolling",s[s.FixedChunkSizePolling=3]="FixedChunkSizePolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(s){s[s.FixedInterval=0]="FixedInterval",s[s.PriorityInterval=1]="PriorityInterval",s[s.DynamicPriority=2]="DynamicPriority",s[s.FixedChunkSize=3]="FixedChunkSize"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ES2020=6]="ES2020",s[s.ES2022=7]="ES2022",s[s.ESNext=99]="ESNext",s[s.Node16=100]="Node16",s[s.NodeNext=199]="NodeNext"}(e.ModuleKind||(e.ModuleKind={})),function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(s){s[s.Remove=0]="Remove",s[s.Preserve=1]="Preserve",s[s.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(s){s[s.Unknown=0]="Unknown",s[s.JS=1]="JS",s[s.JSX=2]="JSX",s[s.TS=3]="TS",s[s.TSX=4]="TSX",s[s.External=5]="External",s[s.JSON=6]="JSON",s[s.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ES2021=8]="ES2021",s[s.ES2022=9]="ES2022",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(s){s[s.Standard=0]="Standard",s[s.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(s){s[s.None=0]="None",s[s.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(s){s[s.nullCharacter=0]="nullCharacter",s[s.maxAsciiCharacter=127]="maxAsciiCharacter",s[s.lineFeed=10]="lineFeed",s[s.carriageReturn=13]="carriageReturn",s[s.lineSeparator=8232]="lineSeparator",s[s.paragraphSeparator=8233]="paragraphSeparator",s[s.nextLine=133]="nextLine",s[s.space=32]="space",s[s.nonBreakingSpace=160]="nonBreakingSpace",s[s.enQuad=8192]="enQuad",s[s.emQuad=8193]="emQuad",s[s.enSpace=8194]="enSpace",s[s.emSpace=8195]="emSpace",s[s.threePerEmSpace=8196]="threePerEmSpace",s[s.fourPerEmSpace=8197]="fourPerEmSpace",s[s.sixPerEmSpace=8198]="sixPerEmSpace",s[s.figureSpace=8199]="figureSpace",s[s.punctuationSpace=8200]="punctuationSpace",s[s.thinSpace=8201]="thinSpace",s[s.hairSpace=8202]="hairSpace",s[s.zeroWidthSpace=8203]="zeroWidthSpace",s[s.narrowNoBreakSpace=8239]="narrowNoBreakSpace",s[s.ideographicSpace=12288]="ideographicSpace",s[s.mathematicalSpace=8287]="mathematicalSpace",s[s.ogham=5760]="ogham",s[s._=95]="_",s[s.$=36]="$",s[s._0=48]="_0",s[s._1=49]="_1",s[s._2=50]="_2",s[s._3=51]="_3",s[s._4=52]="_4",s[s._5=53]="_5",s[s._6=54]="_6",s[s._7=55]="_7",s[s._8=56]="_8",s[s._9=57]="_9",s[s.a=97]="a",s[s.b=98]="b",s[s.c=99]="c",s[s.d=100]="d",s[s.e=101]="e",s[s.f=102]="f",s[s.g=103]="g",s[s.h=104]="h",s[s.i=105]="i",s[s.j=106]="j",s[s.k=107]="k",s[s.l=108]="l",s[s.m=109]="m",s[s.n=110]="n",s[s.o=111]="o",s[s.p=112]="p",s[s.q=113]="q",s[s.r=114]="r",s[s.s=115]="s",s[s.t=116]="t",s[s.u=117]="u",s[s.v=118]="v",s[s.w=119]="w",s[s.x=120]="x",s[s.y=121]="y",s[s.z=122]="z",s[s.A=65]="A",s[s.B=66]="B",s[s.C=67]="C",s[s.D=68]="D",s[s.E=69]="E",s[s.F=70]="F",s[s.G=71]="G",s[s.H=72]="H",s[s.I=73]="I",s[s.J=74]="J",s[s.K=75]="K",s[s.L=76]="L",s[s.M=77]="M",s[s.N=78]="N",s[s.O=79]="O",s[s.P=80]="P",s[s.Q=81]="Q",s[s.R=82]="R",s[s.S=83]="S",s[s.T=84]="T",s[s.U=85]="U",s[s.V=86]="V",s[s.W=87]="W",s[s.X=88]="X",s[s.Y=89]="Y",s[s.Z=90]="Z",s[s.ampersand=38]="ampersand",s[s.asterisk=42]="asterisk",s[s.at=64]="at",s[s.backslash=92]="backslash",s[s.backtick=96]="backtick",s[s.bar=124]="bar",s[s.caret=94]="caret",s[s.closeBrace=125]="closeBrace",s[s.closeBracket=93]="closeBracket",s[s.closeParen=41]="closeParen",s[s.colon=58]="colon",s[s.comma=44]="comma",s[s.dot=46]="dot",s[s.doubleQuote=34]="doubleQuote",s[s.equals=61]="equals",s[s.exclamation=33]="exclamation",s[s.greaterThan=62]="greaterThan",s[s.hash=35]="hash",s[s.lessThan=60]="lessThan",s[s.minus=45]="minus",s[s.openBrace=123]="openBrace",s[s.openBracket=91]="openBracket",s[s.openParen=40]="openParen",s[s.percent=37]="percent",s[s.plus=43]="plus",s[s.question=63]="question",s[s.semicolon=59]="semicolon",s[s.singleQuote=39]="singleQuote",s[s.slash=47]="slash",s[s.tilde=126]="tilde",s[s.backspace=8]="backspace",s[s.formFeed=12]="formFeed",s[s.byteOrderMark=65279]="byteOrderMark",s[s.tab=9]="tab",s[s.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(s){s.Ts=".ts",s.Tsx=".tsx",s.Dts=".d.ts",s.Js=".js",s.Jsx=".jsx",s.Json=".json",s.TsBuildInfo=".tsbuildinfo",s.Mjs=".mjs",s.Mts=".mts",s.Dmts=".d.mts",s.Cjs=".cjs",s.Cts=".cts",s.Dcts=".d.cts"}(e.Extension||(e.Extension={})),function(s){s[s.None=0]="None",s[s.ContainsTypeScript=1]="ContainsTypeScript",s[s.ContainsJsx=2]="ContainsJsx",s[s.ContainsESNext=4]="ContainsESNext",s[s.ContainsES2022=8]="ContainsES2022",s[s.ContainsES2021=16]="ContainsES2021",s[s.ContainsES2020=32]="ContainsES2020",s[s.ContainsES2019=64]="ContainsES2019",s[s.ContainsES2018=128]="ContainsES2018",s[s.ContainsES2017=256]="ContainsES2017",s[s.ContainsES2016=512]="ContainsES2016",s[s.ContainsES2015=1024]="ContainsES2015",s[s.ContainsGenerator=2048]="ContainsGenerator",s[s.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",s[s.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",s[s.ContainsLexicalThis=16384]="ContainsLexicalThis",s[s.ContainsRestOrSpread=32768]="ContainsRestOrSpread",s[s.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",s[s.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",s[s.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",s[s.ContainsBindingPattern=524288]="ContainsBindingPattern",s[s.ContainsYield=1048576]="ContainsYield",s[s.ContainsAwait=2097152]="ContainsAwait",s[s.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",s[s.ContainsDynamicImport=8388608]="ContainsDynamicImport",s[s.ContainsClassFields=16777216]="ContainsClassFields",s[s.ContainsDecorators=33554432]="ContainsDecorators",s[s.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",s[s.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",s[s.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",s[s.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",s[s.HasComputedFlags=-2147483648]="HasComputedFlags",s[s.AssertTypeScript=1]="AssertTypeScript",s[s.AssertJsx=2]="AssertJsx",s[s.AssertESNext=4]="AssertESNext",s[s.AssertES2022=8]="AssertES2022",s[s.AssertES2021=16]="AssertES2021",s[s.AssertES2020=32]="AssertES2020",s[s.AssertES2019=64]="AssertES2019",s[s.AssertES2018=128]="AssertES2018",s[s.AssertES2017=256]="AssertES2017",s[s.AssertES2016=512]="AssertES2016",s[s.AssertES2015=1024]="AssertES2015",s[s.AssertGenerator=2048]="AssertGenerator",s[s.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",s[s.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",s[s.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",s[s.NodeExcludes=-2147483648]="NodeExcludes",s[s.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",s[s.FunctionExcludes=-1937940480]="FunctionExcludes",s[s.ConstructorExcludes=-1937948672]="ConstructorExcludes",s[s.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",s[s.PropertyExcludes=-2013249536]="PropertyExcludes",s[s.ClassExcludes=-2147344384]="ClassExcludes",s[s.ModuleExcludes=-1941676032]="ModuleExcludes",s[s.TypeExcludes=-2]="TypeExcludes",s[s.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",s[s.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",s[s.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",s[s.ParameterExcludes=-2147483648]="ParameterExcludes",s[s.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",s[s.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",s[s.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",s[s.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(s){s[s.TabStop=0]="TabStop",s[s.Placeholder=1]="Placeholder",s[s.Choice=2]="Choice",s[s.Variable=3]="Variable"}(e.SnippetKind||(e.SnippetKind={})),function(s){s[s.None=0]="None",s[s.SingleLine=1]="SingleLine",s[s.AdviseOnEmitNode=2]="AdviseOnEmitNode",s[s.NoSubstitution=4]="NoSubstitution",s[s.CapturesThis=8]="CapturesThis",s[s.NoLeadingSourceMap=16]="NoLeadingSourceMap",s[s.NoTrailingSourceMap=32]="NoTrailingSourceMap",s[s.NoSourceMap=48]="NoSourceMap",s[s.NoNestedSourceMaps=64]="NoNestedSourceMaps",s[s.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",s[s.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",s[s.NoTokenSourceMaps=384]="NoTokenSourceMaps",s[s.NoLeadingComments=512]="NoLeadingComments",s[s.NoTrailingComments=1024]="NoTrailingComments",s[s.NoComments=1536]="NoComments",s[s.NoNestedComments=2048]="NoNestedComments",s[s.HelperName=4096]="HelperName",s[s.ExportName=8192]="ExportName",s[s.LocalName=16384]="LocalName",s[s.InternalName=32768]="InternalName",s[s.Indented=65536]="Indented",s[s.NoIndentation=131072]="NoIndentation",s[s.AsyncFunctionBody=262144]="AsyncFunctionBody",s[s.ReuseTempVariableScope=524288]="ReuseTempVariableScope",s[s.CustomPrologue=1048576]="CustomPrologue",s[s.NoHoisting=2097152]="NoHoisting",s[s.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",s[s.Iterator=8388608]="Iterator",s[s.NoAsciiEscaping=16777216]="NoAsciiEscaping",s[s.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",s[s.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",s[s.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",s[s.Immutable=268435456]="Immutable",s[s.IndirectCall=536870912]="IndirectCall"}(e.EmitFlags||(e.EmitFlags={})),function(s){s[s.Extends=1]="Extends",s[s.Assign=2]="Assign",s[s.Rest=4]="Rest",s[s.Decorate=8]="Decorate",s[s.Metadata=16]="Metadata",s[s.Param=32]="Param",s[s.Awaiter=64]="Awaiter",s[s.Generator=128]="Generator",s[s.Values=256]="Values",s[s.Read=512]="Read",s[s.SpreadArray=1024]="SpreadArray",s[s.Await=2048]="Await",s[s.AsyncGenerator=4096]="AsyncGenerator",s[s.AsyncDelegator=8192]="AsyncDelegator",s[s.AsyncValues=16384]="AsyncValues",s[s.ExportStar=32768]="ExportStar",s[s.ImportStar=65536]="ImportStar",s[s.ImportDefault=131072]="ImportDefault",s[s.MakeTemplateObject=262144]="MakeTemplateObject",s[s.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",s[s.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",s[s.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",s[s.CreateBinding=4194304]="CreateBinding",s[s.FirstEmitHelper=1]="FirstEmitHelper",s[s.LastEmitHelper=4194304]="LastEmitHelper",s[s.ForOfIncludes=256]="ForOfIncludes",s[s.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",s[s.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",s[s.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",s[s.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(s){s[s.SourceFile=0]="SourceFile",s[s.Expression=1]="Expression",s[s.IdentifierName=2]="IdentifierName",s[s.MappedTypeParameter=3]="MappedTypeParameter",s[s.Unspecified=4]="Unspecified",s[s.EmbeddedStatement=5]="EmbeddedStatement",s[s.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(s){s[s.Parentheses=1]="Parentheses",s[s.TypeAssertions=2]="TypeAssertions",s[s.NonNullAssertions=4]="NonNullAssertions",s[s.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",s[s.Assertions=6]="Assertions",s[s.All=15]="All",s[s.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(s){s[s.None=0]="None",s[s.InParameters=1]="InParameters",s[s.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(s){s.Prologue="prologue",s.EmitHelpers="emitHelpers",s.NoDefaultLib="no-default-lib",s.Reference="reference",s.Type="type",s.TypeResolutionModeRequire="type-require",s.TypeResolutionModeImport="type-import",s.Lib="lib",s.Prepend="prepend",s.Text="text",s.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(s){s[s.None=0]="None",s[s.SingleLine=0]="SingleLine",s[s.MultiLine=1]="MultiLine",s[s.PreserveLines=2]="PreserveLines",s[s.LinesMask=3]="LinesMask",s[s.NotDelimited=0]="NotDelimited",s[s.BarDelimited=4]="BarDelimited",s[s.AmpersandDelimited=8]="AmpersandDelimited",s[s.CommaDelimited=16]="CommaDelimited",s[s.AsteriskDelimited=32]="AsteriskDelimited",s[s.DelimitersMask=60]="DelimitersMask",s[s.AllowTrailingComma=64]="AllowTrailingComma",s[s.Indented=128]="Indented",s[s.SpaceBetweenBraces=256]="SpaceBetweenBraces",s[s.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",s[s.Braces=1024]="Braces",s[s.Parenthesis=2048]="Parenthesis",s[s.AngleBrackets=4096]="AngleBrackets",s[s.SquareBrackets=8192]="SquareBrackets",s[s.BracketsMask=15360]="BracketsMask",s[s.OptionalIfUndefined=16384]="OptionalIfUndefined",s[s.OptionalIfEmpty=32768]="OptionalIfEmpty",s[s.Optional=49152]="Optional",s[s.PreferNewLine=65536]="PreferNewLine",s[s.NoTrailingNewLine=131072]="NoTrailingNewLine",s[s.NoInterveningComments=262144]="NoInterveningComments",s[s.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",s[s.SingleElement=1048576]="SingleElement",s[s.SpaceAfterList=2097152]="SpaceAfterList",s[s.Modifiers=2359808]="Modifiers",s[s.HeritageClauses=512]="HeritageClauses",s[s.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",s[s.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",s[s.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",s[s.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",s[s.UnionTypeConstituents=516]="UnionTypeConstituents",s[s.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",s[s.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",s[s.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",s[s.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",s[s.ImportClauseEntries=526226]="ImportClauseEntries",s[s.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",s[s.CommaListElements=528]="CommaListElements",s[s.CallExpressionArguments=2576]="CallExpressionArguments",s[s.NewExpressionArguments=18960]="NewExpressionArguments",s[s.TemplateExpressionSpans=262144]="TemplateExpressionSpans",s[s.SingleLineBlockStatements=768]="SingleLineBlockStatements",s[s.MultiLineBlockStatements=129]="MultiLineBlockStatements",s[s.VariableDeclarationList=528]="VariableDeclarationList",s[s.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",s[s.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",s[s.ClassHeritageClauses=0]="ClassHeritageClauses",s[s.ClassMembers=129]="ClassMembers",s[s.InterfaceMembers=129]="InterfaceMembers",s[s.EnumMembers=145]="EnumMembers",s[s.CaseBlockClauses=129]="CaseBlockClauses",s[s.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",s[s.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",s[s.JsxElementAttributes=262656]="JsxElementAttributes",s[s.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",s[s.HeritageClauseTypes=528]="HeritageClauseTypes",s[s.SourceFileStatements=131073]="SourceFileStatements",s[s.Decorators=2146305]="Decorators",s[s.TypeArguments=53776]="TypeArguments",s[s.TypeParameters=53776]="TypeParameters",s[s.Parameters=2576]="Parameters",s[s.IndexSignatureParameters=8848]="IndexSignatureParameters",s[s.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(s){s[s.None=0]="None",s[s.TripleSlashXML=1]="TripleSlashXML",s[s.SingleLine=2]="SingleLine",s[s.MultiLine=4]="MultiLine",s[s.All=7]="All",s[s.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}})(h||(h={}));var h;(function(e){function c(w){for(var re=5381,M=0;M<w.length;M++)re=(re<<5)+re+w.charCodeAt(M);return re.toString()}e.generateDjb2Hash=c;function P(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=P;var T;(function(w){w[w.Created=0]="Created",w[w.Changed=1]="Changed",w[w.Deleted=2]="Deleted"})(T=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var s;(function(w){w[w.High=2e3]="High",w[w.Medium=500]="Medium",w[w.Low=250]="Low"})(s=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function D(w,re){return w.getModifiedTime(re)||e.missingFileModifiedTime}e.getModifiedTime=D;function O(w){var re;return re={},re[s.Low]=w.Low,re[s.Medium]=w.Medium,re[s.High]=w.High,re}var W={Low:32,Medium:64,High:256},E=O(W);e.unchangedPollThresholds=O(W);function v(w){if(!w.getEnvironmentVariable)return;var re=H("TSC_WATCH_POLLINGINTERVAL",s);E=q("TSC_WATCH_POLLINGCHUNKSIZE",W)||E,e.unchangedPollThresholds=q("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",W)||e.unchangedPollThresholds;function M(R,K){return w.getEnvironmentVariable("".concat(R,"_").concat(K.toUpperCase()))}function U(R){var K;return I("Low"),I("Medium"),I("High"),K;function I(he){var le=M(R,he);le&&((K||(K={}))[he]=Number(le))}}function H(R,K){var I=U(R);if(I)return he("Low"),he("Medium"),he("High"),!0;return!1;function he(le){K[le]=I[le]||K[le]}}function q(R,K){var I=U(R);return(re||I)&&O(I?n(n({},K),I):K)}}function S(w,re,M,U,H){for(var q=M,R=re.length;U&&R;he(),R--){var K=re[M];if(K){if(K.isClosed){re[M]=void 0;continue}}else continue;U--;var I=k(K,D(w,K.fileName));if(K.isClosed){re[M]=void 0;continue}H==null||H(K,M,I),re[M]&&(q<M&&(re[q]=K,re[M]=void 0),q++)}return M;function he(){M++,M===re.length&&(q<M&&(re.length=q),M=0,q=0)}}function te(w){var re=[],M=[],U=K(s.Low),H=K(s.Medium),q=K(s.High);return R;function R(b,Q,G){var ae={fileName:b,callback:Q,unchangedPolls:0,mtime:D(w,b)};return re.push(ae),J(ae,G),{close:function(){ae.isClosed=!0,e.unorderedRemoveItem(re,ae)}}}function K(b){var Q=[];return Q.pollingInterval=b,Q.pollIndex=0,Q.pollScheduled=!1,Q}function I(b){b.pollIndex=le(b,b.pollingInterval,b.pollIndex,E[b.pollingInterval]),b.length?N(b.pollingInterval):(e.Debug.assert(b.pollIndex===0),b.pollScheduled=!1)}function he(b){le(M,s.Low,0,M.length),I(b),!b.pollScheduled&&M.length&&N(s.Low)}function le(b,Q,G,ae){return S(w,b,G,ae,Te);function Te(Ne,we,nr){nr?(Ne.unchangedPolls=0,b!==M&&(b[we]=void 0,de(Ne))):Ne.unchangedPolls!==e.unchangedPollThresholds[Q]?Ne.unchangedPolls++:b===M?(Ne.unchangedPolls=1,b[we]=void 0,J(Ne,s.Low)):Q!==s.High&&(Ne.unchangedPolls++,b[we]=void 0,J(Ne,Q===s.Low?s.Medium:s.High))}}function ee(b){switch(b){case s.Low:return U;case s.Medium:return H;case s.High:return q}}function J(b,Q){ee(Q).push(b),De(Q)}function de(b){M.push(b),De(s.Low)}function De(b){ee(b).pollScheduled||N(b)}function N(b){ee(b).pollScheduled=w.setTimeout(b===s.Low?he:I,b,ee(b))}}function Y(w,re){var M=e.createMultiMap(),U=new e.Map,H=e.createGetCanonicalFileName(re);return q;function q(K,I,he,le){var ee=H(K);M.add(ee,I);var J=e.getDirectoryPath(ee)||".",de=U.get(J)||R(e.getDirectoryPath(K)||".",J,le);return de.referenceCount++,{close:function(){de.referenceCount===1?(de.close(),U.delete(J)):de.referenceCount--,M.remove(ee,I)}}}function R(K,I,he){var le=w(K,1,function(ee,J,de){if(e.isString(J)){var De=e.getNormalizedAbsolutePath(J,K),N=De&&M.get(H(De));if(N)for(var b=0,Q=N;b<Q.length;b++){var G=Q[b];G(De,T.Changed,de)}}},!1,s.Medium,he);return le.referenceCount=0,U.set(I,le),le}}function Z(w){var re=[],M=0,U;return H;function H(K,I){var he={fileName:K,callback:I,mtime:D(w,K)};return re.push(he),R(),{close:function(){he.isClosed=!0,e.unorderedRemoveItem(re,he)}}}function q(){U=void 0,M=S(w,re,M,E[s.Low]),R()}function R(){!re.length||U||(U=w.setTimeout(q,s.High))}}function ce(w,re,M,U,H){var q=e.createGetCanonicalFileName(re),R=q(M),K=w.get(R);return K?K.callbacks.push(U):w.set(R,{watcher:H(function(I,he,le){var ee;return(ee=w.get(R))===null||ee===void 0?void 0:ee.callbacks.slice().forEach(function(J){return J(I,he,le)})}),callbacks:[U]}),{close:function(){var I=w.get(R);I&&(!e.orderedRemoveItem(I.callbacks,U)||I.callbacks.length||(w.delete(R),e.closeFileWatcherOf(I)))}}}function k(w,re){var M=w.mtime.getTime(),U=re.getTime();return M!==U?(w.mtime=re,w.callback(w.fileName,X(M,U),re),!0):!1}function X(w,re){return w===0?T.Created:re===0?T.Deleted:T.Changed}e.getFileWatcherEventKind=X,e.ignoredPaths=["/node_modules/.","/.git","/.#"];var A=e.noop;function y(w){return A(w)}e.sysLog=y;function C(w){A=w}e.setSysLog=C;function B(w){var re=w.watchDirectory,M=w.useCaseSensitiveFileNames,U=w.getCurrentDirectory,H=w.getAccessibleSortedChildDirectories,q=w.fileSystemEntryExists,R=w.realpath,K=w.setTimeout,I=w.clearTimeout,he=new e.Map,le=e.createMultiMap(),ee=new e.Map,J,de=e.getStringComparer(!M),De=e.createGetCanonicalFileName(M);return function(tr,me,He,rr){return He?N(tr,rr,me):re(tr,me,He,rr)};function N(tr,me,He){var rr=De(tr),je=he.get(rr);je?je.refCount++:(je={watcher:re(tr,function(Ae){we(Ae,me)||(me!=null&&me.synchronousWatchDirectory?(b(rr,Ae),Ne(tr,rr,me)):Q(tr,rr,Ae,me))},!1,me),refCount:1,childWatches:e.emptyArray},he.set(rr,je),Ne(tr,rr,me));var Ce=He&&{dirName:tr,callback:He};return Ce&&le.add(rr,Ce),{dirName:tr,close:function(){var Ae=e.Debug.checkDefined(he.get(rr));Ce&&le.remove(rr,Ce),Ae.refCount--,!Ae.refCount&&(he.delete(rr),e.closeFileWatcherOf(Ae),Ae.childWatches.forEach(e.closeFileWatcher))}}}function b(tr,me,He){var rr,je;e.isString(me)?rr=me:je=me,le.forEach(function(Ce,Ae){var qe;if(!(je&&je.get(Ae)===!0)&&(Ae===tr||e.startsWith(tr,Ae)&&tr[Ae.length]===e.directorySeparator))if(je)if(He){var xe=je.get(Ae);xe?(qe=xe).push.apply(qe,He):je.set(Ae,He.slice())}else je.set(Ae,!0);else Ce.forEach(function(L){var ue=L.callback;return ue(rr)})})}function Q(tr,me,He,rr){var je=he.get(me);if(je&&q(tr,1)){G(tr,me,He,rr);return}b(me,He),Te(je)}function G(tr,me,He,rr){var je=ee.get(me);je?je.fileNames.push(He):ee.set(me,{dirName:tr,options:rr,fileNames:[He]}),J&&(I(J),J=void 0),J=K(ae,1e3)}function ae(){J=void 0,y("sysLog:: onTimerToUpdateChildWatches:: ".concat(ee.size));for(var tr=e.timestamp(),me=new e.Map;!J&&ee.size;){var He=ee.entries().next();e.Debug.assert(!He.done);var rr=He.value,je=rr[0],Ce=rr[1],Ae=Ce.dirName,qe=Ce.options,xe=Ce.fileNames;ee.delete(je);var L=Ne(Ae,je,qe);b(je,me,L?void 0:xe)}y("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-tr,"ms:: ").concat(ee.size)),le.forEach(function(Ue,Je){var lr=me.get(Je);lr&&Ue.forEach(function(mr){var Hr=mr.callback,wr=mr.dirName;e.isArray(lr)?lr.forEach(Hr):Hr(wr)})});var ue=e.timestamp()-tr;y("sysLog:: Elapsed:: ".concat(ue,"ms:: onTimerToUpdateChildWatches:: ").concat(ee.size," ").concat(J))}function Te(tr){if(tr){var me=tr.childWatches;tr.childWatches=e.emptyArray;for(var He=0,rr=me;He<rr.length;He++){var je=rr[He];je.close(),Te(he.get(De(je.dirName)))}}}function Ne(tr,me,He){var rr=he.get(me);if(!rr)return!1;var je,Ce=e.enumerateInsertsAndDeletes(q(tr,1)?e.mapDefined(H(tr),function(xe){var L=e.getNormalizedAbsolutePath(xe,tr);return!we(L,He)&&de(L,e.normalizePath(R(L)))===0?L:void 0}):e.emptyArray,rr.childWatches,function(xe,L){return de(xe,L.dirName)},Ae,e.closeFileWatcher,qe);return rr.childWatches=je||e.emptyArray,Ce;function Ae(xe){var L=N(xe,He);qe(L)}function qe(xe){(je||(je=[])).push(xe)}}function we(tr,me){return e.some(e.ignoredPaths,function(He){return nr(tr,He)})||ge(tr,me,M,U)}function nr(tr,me){return e.stringContains(tr,me)?!0:M?!1:e.stringContains(De(tr),me)}}(function(w){w[w.File=0]="File",w[w.Directory=1]="Directory"})(e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function F(w){return function(re,M,U){return w(M===T.Changed?"change":"rename","",U)}}function z(w,re,M){return function(U,H,q){U==="rename"?(q||(q=M(w)||e.missingFileModifiedTime),re(w,q!==e.missingFileModifiedTime?T.Created:T.Deleted,q)):re(w,T.Changed,q)}}function ge(w,re,M,U){return((re==null?void 0:re.excludeDirectories)||(re==null?void 0:re.excludeFiles))&&(e.matchesExclude(w,re==null?void 0:re.excludeFiles,M,U())||e.matchesExclude(w,re==null?void 0:re.excludeDirectories,M,U()))}function Pe(w,re,M,U,H){return function(q,R){if(q==="rename"){var K=R?e.normalizePath(e.combinePaths(w,R)):w;(!R||!ge(K,M,U,H))&&re(K)}}}function fe(w){var re=w.pollingWatchFileWorker,M=w.getModifiedTime,U=w.setTimeout,H=w.clearTimeout,q=w.fsWatchWorker,R=w.fileSystemEntryExists,K=w.useCaseSensitiveFileNames,I=w.getCurrentDirectory,he=w.fsSupportsRecursiveFsWatch,le=w.getAccessibleSortedChildDirectories,ee=w.realpath,J=w.tscWatchFile,de=w.useNonPollingWatchers,De=w.tscWatchDirectory,N=w.inodeWatching,b=w.sysLog,Q=new e.Map,G=new e.Map,ae=new e.Map,Te,Ne,we,nr,tr=!1;return{watchFile:me,watchDirectory:Ae};function me(Je,lr,mr,Hr){Hr=je(Hr,de);var wr=e.Debug.checkDefined(Hr.watchFile);switch(wr){case e.WatchFileKind.FixedPollingInterval:return L(Je,lr,s.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return L(Je,lr,mr,void 0);case e.WatchFileKind.DynamicPriorityPolling:return He()(Je,lr,mr,void 0);case e.WatchFileKind.FixedChunkSizePolling:return rr()(Je,lr,void 0,void 0);case e.WatchFileKind.UseFsEvents:return ue(Je,0,z(Je,lr,M),!1,mr,e.getFallbackOptions(Hr));case e.WatchFileKind.UseFsEventsOnParentDirectory:return we||(we=Y(ue,K)),we(Je,lr,mr,e.getFallbackOptions(Hr));default:e.Debug.assertNever(wr)}}function He(){return Te||(Te=te({getModifiedTime:M,setTimeout:U}))}function rr(){return Ne||(Ne=Z({getModifiedTime:M,setTimeout:U}))}function je(Je,lr){if(Je&&Je.watchFile!==void 0)return Je;switch(J){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return Ce(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,Je);case"UseFsEventsWithFallbackDynamicPolling":return Ce(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,Je);case"UseFsEventsOnParentDirectory":lr=!0;default:return lr?Ce(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,Je):{watchFile:e.WatchFileKind.UseFsEvents}}}function Ce(Je,lr,mr){var Hr=mr==null?void 0:mr.fallbackPolling;return{watchFile:Je,fallbackPolling:Hr===void 0?lr:Hr}}function Ae(Je,lr,mr,Hr){return he?ue(Je,1,Pe(Je,lr,Hr,K,I),mr,s.Medium,e.getFallbackOptions(Hr)):(nr||(nr=B({useCaseSensitiveFileNames:K,getCurrentDirectory:I,fileSystemEntryExists:R,getAccessibleSortedChildDirectories:le,watchDirectory:qe,realpath:ee,setTimeout:U,clearTimeout:H})),nr(Je,lr,mr,Hr))}function qe(Je,lr,mr,Hr){e.Debug.assert(!mr);var wr=xe(Hr),Oe=e.Debug.checkDefined(wr.watchDirectory);switch(Oe){case e.WatchDirectoryKind.FixedPollingInterval:return L(Je,function(){return lr(Je)},s.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return He()(Je,function(){return lr(Je)},s.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return rr()(Je,function(){return lr(Je)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return ue(Je,1,Pe(Je,lr,Hr,K,I),mr,s.Medium,e.getFallbackOptions(wr));default:e.Debug.assertNever(Oe)}}function xe(Je){if(Je&&Je.watchDirectory!==void 0)return Je;switch(De){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var lr=Je==null?void 0:Je.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:lr!==void 0?lr:void 0}}}function L(Je,lr,mr,Hr){return ce(Q,K,Je,lr,function(wr){return re(Je,wr,mr,Hr)})}function ue(Je,lr,mr,Hr,wr,Oe){return ce(Hr?ae:G,K,Je,mr,function(Ze){return Ue(Je,lr,Ze,Hr,wr,Oe)})}function Ue(Je,lr,mr,Hr,wr,Oe){var Ze,tt;N&&(Ze=Je.substring(Je.lastIndexOf(e.directorySeparator)),tt=Ze.slice(e.directorySeparator.length));var ut=R(Je,lr)?qr():Fr();return{close:function(){ut&&(ut.close(),ut=void 0)}};function or(_t){ut&&(b("sysLog:: ".concat(Je,":: Changing watcher to ").concat(_t===qr?"Present":"Missing","FileSystemEntryWatcher")),ut.close(),ut=_t())}function qr(){if(tr)return b("sysLog:: ".concat(Je,":: Defaulting to watchFile")),zr();try{var _t=q(Je,Hr,N?Rr:mr);return _t.on("error",function(){mr("rename",""),or(Fr)}),_t}catch(Ct){return tr||(tr=Ct.code==="ENOSPC"),b("sysLog:: ".concat(Je,":: Changing to watchFile")),zr()}}function Rr(_t,Ct){var yt;if(Ct&&e.endsWith(Ct,"~")&&(yt=Ct,Ct=Ct.slice(0,Ct.length-1)),_t==="rename"&&(!Ct||Ct===tt||e.endsWith(Ct,Ze))){var Fe=M(Je)||e.missingFileModifiedTime;yt&&mr(_t,yt,Fe),mr(_t,Ct,Fe),N?or(Fe===e.missingFileModifiedTime?Fr:qr):Fe===e.missingFileModifiedTime&&or(Fr)}else yt&&mr(_t,yt),mr(_t,Ct)}function zr(){return me(Je,F(mr),wr,Oe)}function Fr(){return me(Je,function(_t,Ct,yt){Ct===T.Created&&(yt||(yt=M(Je)||e.missingFileModifiedTime),yt!==e.missingFileModifiedTime&&(mr("rename","",yt),or(qr)))},wr,Oe)}}}e.createSystemWatchFunctions=fe;function _e(w){var re=w.writeFile;w.writeFile=function(M,U,H){return e.writeFileEnsuringDirectories(M,U,!!H,function(q,R,K){return re.call(w,q,R,K)},function(q){return w.createDirectory(q)},function(q){return w.directoryExists(q)})}}e.patchWriteFileEnsuringDirectory=_e;function ne(){if(!(typeof process>"u")){var w=process.version;if(w){var re=w.indexOf(".");if(re!==-1)return parseInt(w.substring(1,re))}}}e.getNodeMajorVersion=ne,e.sys=function(){var w="\uFEFF";function re(){var U=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,H=Yh,q=Yh,R=Yh,K;try{K=Yh}catch{K=void 0}var I,he="./profile.cpuprofile",le=Yh.Buffer,ee=ne(),J=ee>=4,de=process.platform==="linux"||process.platform==="darwin",De=R.platform(),N=je(),b=H.realpathSync.native?process.platform==="win32"?Oe:H.realpathSync.native:H.realpathSync,Q=J&&(process.platform==="win32"||process.platform==="darwin"),G=e.memoize(function(){return process.cwd()}),ae=fe({pollingWatchFileWorker:Ae,getModifiedTime:tt,setTimeout,clearTimeout,fsWatchWorker:qe,useCaseSensitiveFileNames:N,getCurrentDirectory:G,fileSystemEntryExists:lr,fsSupportsRecursiveFsWatch:Q,getAccessibleSortedChildDirectories:function(Rr){return Ue(Rr).directories},realpath:Ze,tscWatchFile:{}.TSC_WATCHFILE,useNonPollingWatchers:{}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{}.TSC_WATCHDIRECTORY,inodeWatching:de,sysLog:y}),Te=ae.watchFile,Ne=ae.watchDirectory,we={args:process.argv.slice(2),newLine:R.EOL,useCaseSensitiveFileNames:N,write:function(Rr){process.stdout.write(Rr)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:L,writeFile:ue,watchFile:Te,watchDirectory:Ne,resolvePath:function(Rr){return q.resolve(Rr)},fileExists:mr,directoryExists:Hr,createDirectory:function(Rr){if(!we.directoryExists(Rr))try{H.mkdirSync(Rr)}catch(zr){if(zr.code!=="EEXIST")throw zr}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:G,getDirectories:wr,getEnvironmentVariable:function(Rr){return process.env[Rr]||""},readDirectory:Je,getModifiedTime:tt,setModifiedTime:ut,deleteFile:or,createHash:K?qr:c,createSHA256Hash:K?qr:void 0,getMemoryUsage:function(){return Lp.gc&&Lp.gc(),process.memoryUsage().heapUsed},getFileSize:function(Rr){try{var zr=nr(Rr);if(zr!=null&&zr.isFile())return zr.size}catch{}return 0},exit:function(Rr){He(function(){return process.exit(Rr)})},enableCPUProfiler:tr,disableCPUProfiler:He,cpuProfilingEnabled:function(){return!!I||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:Ze,debugMode:!!{}.NODE_INSPECTOR_IPC||!!{}.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,function(Rr){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Rr)}),tryEnableSourceMapsForHost:function(){try{Yh.install()}catch{}},setTimeout,clearTimeout,clearScreen:function(){process.stdout.write("\x1Bc")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:rr,base64decode:function(Rr){return rr(Rr,"base64").toString("utf8")},base64encode:function(Rr){return rr(Rr).toString("base64")},require:function(Rr,zr){try{var Fr=e.resolveJSModule(zr,Rr,we);return{module:DS(Fr),modulePath:Fr,error:void 0}}catch(_t){return{module:void 0,modulePath:void 0,error:_t}}}};return we;function nr(Rr){return H.statSync(Rr,{throwIfNoEntry:!1})}function tr(Rr,zr){if(I)return zr(),!1;var Fr=Yh;if(!Fr||!Fr.Session)return zr(),!1;var _t=new Fr.Session;return _t.connect(),_t.post("Profiler.enable",function(){_t.post("Profiler.start",function(){I=_t,he=Rr,zr()})}),!0}function me(Rr){for(var zr=0,Fr=new e.Map,_t=e.normalizeSlashes(__dirname),Ct="file://".concat(e.getRootLength(_t)===1?"":"/").concat(_t),yt=0,Fe=Rr.nodes;yt<Fe.length;yt++){var vr=Fe[yt];if(vr.callFrame.url){var Le=e.normalizeSlashes(vr.callFrame.url);e.containsPath(Ct,Le,N)?vr.callFrame.url=e.getRelativePathToDirectoryOrUrl(Ct,Le,Ct,e.createGetCanonicalFileName(N),!0):U.test(Le)||(vr.callFrame.url=(Fr.has(Le)?Fr:Fr.set(Le,"external".concat(zr,".js"))).get(Le),zr++)}}return Rr}function He(Rr){if(I&&I!=="stopping"){var zr=I;return I.post("Profiler.stop",function(Fr,_t){var Ct,yt=_t.profile;if(!Fr){try{!((Ct=nr(he))===null||Ct===void 0)&&Ct.isDirectory()&&(he=q.join(he,"".concat(new Date().toISOString().replace(/:/g,"-"),"+P").concat(process.pid,".cpuprofile")))}catch{}try{H.mkdirSync(q.dirname(he),{recursive:!0})}catch{}H.writeFileSync(he,JSON.stringify(me(yt)))}I=void 0,zr.disconnect(),Rr()}),I="stopping",!0}else return Rr(),!1}function rr(Rr,zr){return le.from&&le.from!==Int8Array.from?le.from(Rr,zr):new le(Rr,zr)}function je(){return De==="win32"||De==="win64"?!1:!mr(Ce(__filename))}function Ce(Rr){return Rr.replace(/\w/g,function(zr){var Fr=zr.toUpperCase();return zr===Fr?zr.toLowerCase():Fr})}function Ae(Rr,zr,Fr){H.watchFile(Rr,{persistent:!0,interval:Fr},Ct);var _t;return{close:function(){return H.unwatchFile(Rr,Ct)}};function Ct(yt,Fe){var vr=+Fe.mtime==0||_t===T.Deleted;if(+yt.mtime==0){if(vr)return;_t=T.Deleted}else if(vr)_t=T.Created;else{if(+yt.mtime==+Fe.mtime)return;_t=T.Changed}zr(Rr,_t,yt.mtime)}}function qe(Rr,zr,Fr){return H.watch(Rr,Q?{persistent:!0,recursive:!!zr}:{persistent:!0},Fr)}function xe(Rr,zr){var Fr;try{Fr=H.readFileSync(Rr)}catch{return}var _t=Fr.length;if(_t>=2&&Fr[0]===254&&Fr[1]===255){_t&=-2;for(var Ct=0;Ct<_t;Ct+=2){var yt=Fr[Ct];Fr[Ct]=Fr[Ct+1],Fr[Ct+1]=yt}return Fr.toString("utf16le",2)}return _t>=2&&Fr[0]===255&&Fr[1]===254?Fr.toString("utf16le",2):_t>=3&&Fr[0]===239&&Fr[1]===187&&Fr[2]===191?Fr.toString("utf8",3):Fr.toString("utf8")}function L(Rr,zr){e.perfLogger.logStartReadFile(Rr);var Fr=xe(Rr);return e.perfLogger.logStopReadFile(),Fr}function ue(Rr,zr,Fr){e.perfLogger.logEvent("WriteFile: "+Rr),Fr&&(zr=w+zr);var _t;try{_t=H.openSync(Rr,"w"),H.writeSync(_t,zr,void 0,"utf8")}finally{_t!==void 0&&H.closeSync(_t)}}function Ue(Rr){e.perfLogger.logEvent("ReadDir: "+(Rr||"."));try{for(var zr=H.readdirSync(Rr||".",{withFileTypes:!0}),Fr=[],_t=[],Ct=0,yt=zr;Ct<yt.length;Ct++){var Fe=yt[Ct],vr=typeof Fe=="string"?Fe:Fe.name;if(!(vr==="."||vr==="..")){var Le=void 0;if(typeof Fe=="string"||Fe.isSymbolicLink()){var cr=e.combinePaths(Rr,vr);try{if(Le=nr(cr),!Le)continue}catch{continue}}else Le=Fe;Le.isFile()?Fr.push(vr):Le.isDirectory()&&_t.push(vr)}}return Fr.sort(),_t.sort(),{files:Fr,directories:_t}}catch{return e.emptyFileSystemEntries}}function Je(Rr,zr,Fr,_t,Ct){return e.matchFiles(Rr,zr,Fr,_t,N,process.cwd(),Ct,Ue,Ze)}function lr(Rr,zr){var Fr=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var _t=nr(Rr);if(!_t)return!1;switch(zr){case 0:return _t.isFile();case 1:return _t.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Fr}}function mr(Rr){return lr(Rr,0)}function Hr(Rr){return lr(Rr,1)}function wr(Rr){return Ue(Rr).directories.slice()}function Oe(Rr){return Rr.length<260?H.realpathSync.native(Rr):H.realpathSync(Rr)}function Ze(Rr){try{return b(Rr)}catch{return Rr}}function tt(Rr){var zr,Fr=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(zr=nr(Rr))===null||zr===void 0?void 0:zr.mtime}catch{return}finally{Error.stackTraceLimit=Fr}}function ut(Rr,zr){try{H.utimesSync(Rr,zr,zr)}catch{return}}function or(Rr){try{return H.unlinkSync(Rr)}catch{return}}function qr(Rr){var zr=K.createHash("sha256");return zr.update(Rr),zr.digest("hex")}}var M;return typeof process<"u"&&process.nextTick&&!process.browser&&typeof DS<"u"&&(M=re()),M&&_e(M),M}();function oe(w){e.sys=w}e.setSys=oe,e.sys&&e.sys.getEnvironmentVariable&&(v(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(h||(h={}));var h;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var c="://",P=/\\/g;function T(me){return me===47||me===92}e.isAnyDirectorySeparator=T;function s(me){return X(me)<0}e.isUrl=s;function D(me){return X(me)>0}e.isRootedDiskPath=D;function O(me){var He=X(me);return He>0&&He===me.length}e.isDiskPathRoot=O;function W(me){return X(me)!==0}e.pathIsAbsolute=W;function E(me){return/^\.\.?($|[\\/])/.test(me)}e.pathIsRelative=E;function v(me){return!W(me)&&!E(me)}e.pathIsBareSpecifier=v;function S(me){return e.stringContains(C(me),".")}e.hasExtension=S;function te(me,He){return me.length>He.length&&e.endsWith(me,He)}e.fileExtensionIs=te;function Y(me,He){for(var rr=0,je=He;rr<je.length;rr++){var Ce=je[rr];if(te(me,Ce))return!0}return!1}e.fileExtensionIsOneOf=Y;function Z(me){return me.length>0&&T(me.charCodeAt(me.length-1))}e.hasTrailingDirectorySeparator=Z;function ce(me){return me>=97&&me<=122||me>=65&&me<=90}function k(me,He){var rr=me.charCodeAt(He);if(rr===58)return He+1;if(rr===37&&me.charCodeAt(He+1)===51){var je=me.charCodeAt(He+2);if(je===97||je===65)return He+3}return-1}function X(me){if(!me)return 0;var He=me.charCodeAt(0);if(He===47||He===92){if(me.charCodeAt(1)!==He)return 1;var rr=me.indexOf(He===47?e.directorySeparator:e.altDirectorySeparator,2);return rr<0?me.length:rr+1}if(ce(He)&&me.charCodeAt(1)===58){var je=me.charCodeAt(2);if(je===47||je===92)return 3;if(me.length===2)return 2}var Ce=me.indexOf(c);if(Ce!==-1){var Ae=Ce+c.length,qe=me.indexOf(e.directorySeparator,Ae);if(qe!==-1){var xe=me.slice(0,Ce),L=me.slice(Ae,qe);if(xe==="file"&&(L===""||L==="localhost")&&ce(me.charCodeAt(qe+1))){var ue=k(me,qe+2);if(ue!==-1){if(me.charCodeAt(ue)===47)return~(ue+1);if(ue===me.length)return~ue}}return~(qe+1)}return~me.length}return 0}function A(me){var He=X(me);return He<0?~He:He}e.getRootLength=A;function y(me){me=_e(me);var He=A(me);return He===me.length?me:(me=K(me),me.slice(0,Math.max(He,me.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=y;function C(me,He,rr){me=_e(me);var je=A(me);if(je===me.length)return"";me=K(me);var Ce=me.slice(Math.max(A(me),me.lastIndexOf(e.directorySeparator)+1)),Ae=He!==void 0&&rr!==void 0?z(Ce,He,rr):void 0;return Ae?Ce.slice(0,Ce.length-Ae.length):Ce}e.getBaseFileName=C;function B(me,He,rr){if(e.startsWith(He,".")||(He="."+He),me.length>=He.length&&me.charCodeAt(me.length-He.length)===46){var je=me.slice(me.length-He.length);if(rr(je,He))return je}}function F(me,He,rr){if(typeof He=="string")return B(me,He,rr)||"";for(var je=0,Ce=He;je<Ce.length;je++){var Ae=Ce[je],qe=B(me,Ae,rr);if(qe)return qe}return""}function z(me,He,rr){if(He)return F(K(me),He,rr?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var je=C(me),Ce=je.lastIndexOf(".");return Ce>=0?je.substring(Ce):""}e.getAnyExtensionFromPath=z;function ge(me,He){var rr=me.substring(0,He),je=me.substring(He).split(e.directorySeparator);return je.length&&!e.lastOrUndefined(je)&&je.pop(),t([rr],je,!0)}function Pe(me,He){return He===void 0&&(He=""),me=oe(He,me),ge(me,A(me))}e.getPathComponents=Pe;function fe(me){if(me.length===0)return"";var He=me[0]&&I(me[0]);return He+me.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=fe;function _e(me){return me.indexOf("\\")!==-1?me.replace(P,e.directorySeparator):me}e.normalizeSlashes=_e;function ne(me){if(!e.some(me))return[];for(var He=[me[0]],rr=1;rr<me.length;rr++){var je=me[rr];if(je&&je!=="."){if(je===".."){if(He.length>1){if(He[He.length-1]!==".."){He.pop();continue}}else if(He[0])continue}He.push(je)}}return He}e.reducePathComponents=ne;function oe(me){for(var He=[],rr=1;rr<arguments.length;rr++)He[rr-1]=arguments[rr];me&&(me=_e(me));for(var je=0,Ce=He;je<Ce.length;je++){var Ae=Ce[je];Ae&&(Ae=_e(Ae),!me||A(Ae)!==0?me=Ae:me=I(me)+Ae)}return me}e.combinePaths=oe;function w(me){for(var He=[],rr=1;rr<arguments.length;rr++)He[rr-1]=arguments[rr];return U(e.some(He)?oe.apply(void 0,t([me],He,!1)):_e(me))}e.resolvePath=w;function re(me,He){return ne(Pe(me,He))}e.getNormalizedPathComponents=re;function M(me,He){return fe(re(me,He))}e.getNormalizedAbsolutePath=M;function U(me){if(me=_e(me),!ee.test(me))return me;var He=me.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(He!==me&&(me=He,!ee.test(me)))return me;var rr=fe(ne(Pe(me)));return rr&&Z(me)?I(rr):rr}e.normalizePath=U;function H(me){return me.length===0?"":me.slice(1).join(e.directorySeparator)}function q(me,He){return H(re(me,He))}e.getNormalizedAbsolutePathWithoutRoot=q;function R(me,He,rr){var je=D(me)?U(me):M(me,He);return rr(je)}e.toPath=R;function K(me){return Z(me)?me.substr(0,me.length-1):me}e.removeTrailingDirectorySeparator=K;function I(me){return Z(me)?me:me+e.directorySeparator}e.ensureTrailingDirectorySeparator=I;function he(me){return!W(me)&&!E(me)?"./"+me:me}e.ensurePathIsNonModuleName=he;function le(me,He,rr,je){var Ce=rr!==void 0&&je!==void 0?z(me,rr,je):z(me);return Ce?me.slice(0,me.length-Ce.length)+(e.startsWith(He,".")?He:"."+He):me}e.changeAnyExtension=le;var ee=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function J(me,He,rr){if(me===He)return 0;if(me===void 0)return-1;if(He===void 0)return 1;var je=me.substring(0,A(me)),Ce=He.substring(0,A(He)),Ae=e.compareStringsCaseInsensitive(je,Ce);if(Ae!==0)return Ae;var qe=me.substring(je.length),xe=He.substring(Ce.length);if(!ee.test(qe)&&!ee.test(xe))return rr(qe,xe);for(var L=ne(Pe(me)),ue=ne(Pe(He)),Ue=Math.min(L.length,ue.length),Je=1;Je<Ue;Je++){var lr=rr(L[Je],ue[Je]);if(lr!==0)return lr}return e.compareValues(L.length,ue.length)}function de(me,He){return J(me,He,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=de;function De(me,He){return J(me,He,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=De;function N(me,He,rr,je){return typeof rr=="string"?(me=oe(rr,me),He=oe(rr,He)):typeof rr=="boolean"&&(je=rr),J(me,He,e.getStringComparer(je))}e.comparePaths=N;function b(me,He,rr,je){if(typeof rr=="string"?(me=oe(rr,me),He=oe(rr,He)):typeof rr=="boolean"&&(je=rr),me===void 0||He===void 0)return!1;if(me===He)return!0;var Ce=ne(Pe(me)),Ae=ne(Pe(He));if(Ae.length<Ce.length)return!1;for(var qe=je?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,xe=0;xe<Ce.length;xe++){var L=xe===0?e.equateStringsCaseInsensitive:qe;if(!L(Ce[xe],Ae[xe]))return!1}return!0}e.containsPath=b;function Q(me,He,rr){var je=rr(me),Ce=rr(He);return e.startsWith(je,Ce+"/")||e.startsWith(je,Ce+"\\")}e.startsWithDirectory=Q;function G(me,He,rr,je){var Ce=ne(Pe(me)),Ae=ne(Pe(He)),qe;for(qe=0;qe<Ce.length&&qe<Ae.length;qe++){var xe=je(Ce[qe]),L=je(Ae[qe]),ue=qe===0?e.equateStringsCaseInsensitive:rr;if(!ue(xe,L))break}if(qe===0)return Ae;for(var Ue=Ae.slice(qe),Je=[];qe<Ce.length;qe++)Je.push("..");return t(t([""],Je,!0),Ue,!0)}e.getPathComponentsRelativeTo=G;function ae(me,He,rr){e.Debug.assert(A(me)>0==A(He)>0,"Paths must either both be absolute or both be relative");var je=typeof rr=="function"?rr:e.identity,Ce=typeof rr=="boolean"?rr:!1,Ae=G(me,He,Ce?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,je);return fe(Ae)}e.getRelativePathFromDirectory=ae;function Te(me,He,rr){return D(me)?we(He,me,He,rr,!1):me}e.convertToRelativePath=Te;function Ne(me,He,rr){return he(ae(y(me),He,rr))}e.getRelativePathFromFile=Ne;function we(me,He,rr,je,Ce){var Ae=G(w(rr,me),w(rr,He),e.equateStringsCaseSensitive,je),qe=Ae[0];if(Ce&&D(qe)){var xe=qe.charAt(0)===e.directorySeparator?"file://":"file:///";Ae[0]=xe+qe}return fe(Ae)}e.getRelativePathToDirectoryOrUrl=we;function nr(me,He){for(;;){var rr=He(me);if(rr!==void 0)return rr;var je=y(me);if(je===me)return;me=je}}e.forEachAncestorDirectory=nr;function tr(me){return e.endsWith(me,"/node_modules")}e.isNodeModulesDirectory=tr})(h||(h={}));var h;(function(e){function c(P,T,s,D,O,W,E){return{code:P,category:T,key:s,message:D,reportsUnnecessary:O,elidedInCompatabilityPyramid:W,reportsDeprecated:E}}e.Diagnostics={Unterminated_string_literal:c(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:c(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:c(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:c(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:c(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:c(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:c(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:c(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:c(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:c(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:c(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:c(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:c(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:c(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:c(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:c(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:c(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:c(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:c(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:c(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:c(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:c(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:c(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:c(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:c(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:c(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:c(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:c(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:c(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:c(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:c(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:c(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:c(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:c(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:c(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:c(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:c(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:c(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:c(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:c(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:c(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:c(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:c(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:c(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:c(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:c(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:c(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:c(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:c(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:c(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:c(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:c(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:c(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:c(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:c(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:c(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:c(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:c(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:c(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:c(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:c(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:c(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:c(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:c(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:c(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:c(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:c(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:c(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:c(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:c(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:c(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:c(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:c(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:c(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:c(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:c(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:c(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:c(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:c(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:c(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:c(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:c(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:c(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:c(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:c(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:c(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:c(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:c(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:c(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:c(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:c(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:c(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:c(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:c(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:c(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:c(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:c(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:c(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:c(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:c(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:c(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:c(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:c(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:c(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:c(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:c(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:c(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:c(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:c(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:c(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:c(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:c(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:c(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:c(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:c(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:c(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:c(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:c(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:c(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:c(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:c(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:c(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:c(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:c(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:c(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:c(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:c(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:c(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:c(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:c(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:c(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:c(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:c(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:c(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:c(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:c(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:c(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:c(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:c(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:c(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:c(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:c(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:c(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:c(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:c(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:c(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:c(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:c(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:c(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:c(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:c(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:c(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:c(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:c(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:c(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:c(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:c(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:c(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:c(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:c(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:c(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:c(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:c(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:c(1209,e.DiagnosticCategory.Error,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:c(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:c(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:c(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:c(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:c(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:c(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:c(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:c(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:c(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:c(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:c(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:c(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:c(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:c(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:c(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:c(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:c(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:c(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:c(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:c(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:c(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:c(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:c(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:c(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:c(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:c(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:c(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:c(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:c(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:c(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:c(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:c(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:c(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:c(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:c(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:c(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:c(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:c(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:c(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:c(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:c(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:c(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:c(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:c(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:c(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:c(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:c(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:c(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:c(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:c(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:c(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:c(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:c(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:c(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:c(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:c(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:c(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:c(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:c(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:c(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:c(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:c(1275,e.DiagnosticCategory.Error,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:c(1276,e.DiagnosticCategory.Error,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),with_statements_are_not_allowed_in_an_async_function_block:c(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:c(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:c(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:c(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:c(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:c(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:c(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:c(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:c(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:c(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:c(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:c(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:c(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:c(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:c(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:c(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:c(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:c(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:c(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:c(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:c(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:c(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:c(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:c(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:c(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:c(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:c(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:c(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:c(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:c(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:c(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:c(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),Type_arguments_cannot_be_used_here:c(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:c(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:c(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:c(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:c(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:c(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:c(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:c(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:c(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:c(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:c(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:c(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:c(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:c(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:c(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:c(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:c(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:c(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:c(1360,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:c(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:c(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:c(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:c(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:c(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:c(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:c(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:c(1368,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:c(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:c(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:c(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:c(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:c(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:c(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:c(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:c(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:c(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:c(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:c(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:c(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:c(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:c(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:c(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:c(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:c(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:c(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:c(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:c(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:c(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:c(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:c(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:c(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:c(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:c(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:c(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:c(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:c(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:c(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:c(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:c(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:c(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:c(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:c(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:c(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:c(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:c(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:c(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:c(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:c(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:c(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:c(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:c(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:c(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:c(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:c(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:c(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:c(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:c(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:c(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:c(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:c(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:c(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:c(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:c(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:c(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:c(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:c(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:c(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:c(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:c(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:c(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:c(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:c(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:c(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:c(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:c(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:c(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:c(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:c(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:c(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:c(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:c(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:c(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:c(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:c(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:c(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:c(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:c(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:c(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:c(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:c(1457,e.DiagnosticCategory.Message,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:c(1458,e.DiagnosticCategory.Message,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:c(1459,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:c(1460,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:c(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:c(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:c(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:c(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:c(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:c(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:c(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:c(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:c(1477,e.DiagnosticCategory.Error,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:c(1478,e.DiagnosticCategory.Error,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:c(1479,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:c(1480,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:c(1481,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:c(1482,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:c(1483,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),The_types_of_0_are_incompatible_between_these_types:c(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:c(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:c(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:c(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:c(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:c(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:c(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:c(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:c(2208,e.DiagnosticCategory.Error,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:c(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:c(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:c(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:c(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:c(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:c(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:c(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:c(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:c(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:c(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:c(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:c(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:c(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:c(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:c(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:c(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:c(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:c(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:c(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:c(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:c(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:c(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:c(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:c(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:c(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:c(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:c(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:c(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:c(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:c(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:c(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:c(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:c(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:c(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:c(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:c(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:c(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:c(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:c(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:c(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:c(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:c(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:c(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:c(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:c(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:c(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:c(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:c(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:c(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:c(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:c(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:c(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:c(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:c(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:c(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:c(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:c(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:c(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:c(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:c(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:c(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:c(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:c(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:c(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:c(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:c(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:c(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:c(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:c(2367,e.DiagnosticCategory.Error,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:c(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:c(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:c(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:c(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:c(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:c(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:c(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:c(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:c(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:c(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:c(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:c(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:c(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:c(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:c(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:c(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:c(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:c(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:c(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:c(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:c(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:c(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:c(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:c(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:c(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:c(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:c(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:c(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:c(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:c(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:c(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:c(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:c(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:c(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:c(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:c(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:c(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:c(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:c(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:c(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:c(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:c(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:c(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:c(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:c(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:c(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:c(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:c(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:c(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:c(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:c(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:c(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:c(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:c(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:c(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:c(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:c(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:c(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:c(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:c(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:c(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:c(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:c(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:c(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:c(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:c(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:c(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:c(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:c(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:c(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:c(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:c(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:c(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:c(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:c(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:c(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:c(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:c(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:c(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:c(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:c(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:c(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:c(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:c(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:c(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:c(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:c(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:c(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:c(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:c(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:c(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:c(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:c(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:c(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:c(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:c(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:c(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:c(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:c(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:c(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:c(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:c(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:c(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:c(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:c(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:c(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:c(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:c(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:c(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:c(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:c(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:c(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:c(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:c(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:c(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:c(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:c(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:c(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:c(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:c(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:c(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:c(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:c(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:c(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:c(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:c(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:c(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:c(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:c(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:c(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:c(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:c(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:c(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:c(2514,e.DiagnosticCategory.Error,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:c(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:c(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:c(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:c(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:c(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:c(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:c(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:c(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:c(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:c(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:c(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:c(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:c(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:c(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:c(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:c(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:c(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:c(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:c(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:c(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:c(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:c(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:c(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:c(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:c(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:c(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:c(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:c(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:c(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:c(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:c(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:c(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:c(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:c(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:c(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:c(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:c(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:c(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:c(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:c(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:c(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:c(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:c(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:c(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:c(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:c(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:c(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:c(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:c(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:c(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:c(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:c(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:c(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:c(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:c(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:c(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:c(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:c(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:c(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:c(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:c(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:c(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:c(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:c(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:c(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:c(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:c(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:c(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:c(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:c(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:c(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:c(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:c(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:c(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:c(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:c(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:c(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:c(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:c(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:c(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:c(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:c(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:c(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:c(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:c(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:c(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:c(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:c(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:c(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:c(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:c(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:c(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:c(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:c(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:c(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:c(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:c(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:c(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:c(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:c(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:c(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:c(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:c(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:c(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:c(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:c(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:c(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:c(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:c(2638,e.DiagnosticCategory.Error,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:c(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:c(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:c(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:c(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:c(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:c(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:c(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:c(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:c(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:c(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:c(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:c(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:c(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:c(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:c(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:c(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:c(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:c(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:c(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:c(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:c(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:c(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:c(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:c(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:c(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:c(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:c(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:c(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:c(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:c(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:c(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:c(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:c(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:c(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:c(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:c(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:c(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:c(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:c(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:c(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:c(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:c(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:c(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:c(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:c(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:c(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:c(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:c(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:c(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:c(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:c(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:c(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:c(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:c(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:c(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:c(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:c(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:c(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:c(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:c(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:c(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:c(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:c(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:c(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:c(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:c(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:c(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:c(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:c(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:c(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:c(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:c(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:c(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:c(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:c(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:c(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:c(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:c(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:c(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:c(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:c(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:c(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:c(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:c(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:c(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:c(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:c(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:c(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:c(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:c(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:c(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:c(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:c(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:c(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:c(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:c(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:c(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:c(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:c(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:c(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:c(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:c(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:c(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:c(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:c(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:c(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:c(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:c(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:c(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:c(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:c(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:c(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:c(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:c(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:c(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:c(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:c(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:c(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:c(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:c(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:c(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:c(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:c(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:c(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:c(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:c(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:c(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:c(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:c(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:c(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:c(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:c(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:c(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:c(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:c(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:c(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:c(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:c(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:c(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:c(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:c(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:c(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:c(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:c(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:c(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:c(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:c(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:c(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:c(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:c(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:c(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:c(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:c(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:c(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:c(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:c(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:c(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:c(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:c(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:c(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:c(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:c(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:c(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:c(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:c(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:c(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:c(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:c(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:c(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:c(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:c(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:c(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:c(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:c(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:c(2839,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:c(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:c(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:c(2842,e.DiagnosticCategory.Error,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:c(2843,e.DiagnosticCategory.Error,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:c(2844,e.DiagnosticCategory.Error,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:c(2845,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),Import_declaration_0_is_using_private_name_1:c(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:c(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:c(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:c(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:c(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:c(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:c(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:c(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:c(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:c(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:c(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:c(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:c(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:c(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:c(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:c(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:c(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:c(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:c(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:c(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:c(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:c(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:c(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:c(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:c(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:c(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:c(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:c(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:c(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:c(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:c(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:c(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:c(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:c(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:c(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:c(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:c(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:c(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:c(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:c(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:c(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:c(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:c(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:c(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:c(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:c(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:c(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:c(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:c(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:c(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:c(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:c(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:c(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:c(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:c(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:c(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:c(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:c(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:c(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:c(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:c(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:c(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:c(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:c(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:c(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:c(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:c(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:c(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:c(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:c(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:c(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:c(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:c(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:c(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:c(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:c(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:c(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:c(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:c(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:c(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:c(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:c(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:c(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:c(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:c(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:c(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:c(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:c(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:c(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:c(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:c(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:c(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:c(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:c(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:c(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:c(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:c(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:c(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:c(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:c(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:c(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:c(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:c(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:c(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:c(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:c(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:c(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:c(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:c(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:c(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:c(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:c(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:c(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:c(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:c(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:c(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:c(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:c(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:c(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:c(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:c(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:c(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:c(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:c(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:c(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:c(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:c(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:c(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:c(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:c(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:c(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:c(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:c(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:c(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:c(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:c(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:c(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:c(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:c(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:c(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:c(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:c(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:c(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:c(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:c(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:c(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:c(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:c(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:c(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:c(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:c(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:c(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:c(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:c(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:c(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:c(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:c(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:c(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:c(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:c(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:c(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:c(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:c(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:c(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:c(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:c(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:c(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:c(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:c(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:c(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:c(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:c(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:c(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:c(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:c(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:c(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:c(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:c(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:c(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:c(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:c(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:c(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:c(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:c(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:c(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:c(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:c(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:c(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:c(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:c(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:c(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:c(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:c(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:c(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:c(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:c(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:c(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:c(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:c(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:c(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:c(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:c(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:c(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:c(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:c(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:c(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:c(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:c(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:c(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:c(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:c(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:c(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:c(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:c(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:c(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:c(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:c(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:c(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:c(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:c(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:c(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:c(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:c(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:c(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:c(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:c(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:c(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:c(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:c(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:c(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:c(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:c(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:c(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:c(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:c(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:c(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:c(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:c(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:c(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:c(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:c(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:c(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:c(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:c(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:c(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:c(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:c(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:c(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:c(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:c(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:c(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:c(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:c(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:c(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:c(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:c(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:c(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:c(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:c(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:c(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:c(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:c(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:c(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:c(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:c(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:c(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:c(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:c(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:c(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:c(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:c(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:c(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:c(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:c(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:c(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:c(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:c(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:c(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:c(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:c(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:c(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:c(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:c(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:c(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:c(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:c(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:c(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:c(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:c(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:c(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:c(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:c(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:c(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:c(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:c(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:c(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:c(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:c(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:c(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:c(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:c(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:c(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:c(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:c(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:c(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:c(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:c(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:c(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:c(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:c(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:c(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:c(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:c(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:c(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:c(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:c(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:c(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:c(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:c(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:c(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:c(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:c(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:c(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:c(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:c(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:c(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:c(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:c(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:c(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:c(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:c(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:c(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:c(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:c(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:c(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:c(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:c(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:c(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:c(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:c(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:c(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:c(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:c(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:c(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:c(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:c(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:c(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:c(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:c(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:c(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:c(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:c(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:c(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:c(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:c(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:c(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:c(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:c(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:c(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:c(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:c(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:c(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:c(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:c(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:c(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:c(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:c(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:c(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:c(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:c(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:c(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:c(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:c(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:c(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:c(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:c(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:c(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:c(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:c(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:c(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:c(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:c(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:c(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:c(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:c(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:c(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:c(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:c(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:c(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:c(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:c(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:c(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:c(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:c(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:c(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:c(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:c(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:c(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:c(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:c(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:c(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:c(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:c(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:c(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:c(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:c(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:c(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:c(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:c(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:c(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:c(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:c(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:c(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:c(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:c(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:c(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:c(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:c(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:c(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:c(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:c(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:c(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:c(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:c(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:c(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:c(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:c(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:c(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:c(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:c(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:c(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:c(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:c(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:c(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:c(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:c(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:c(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:c(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:c(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:c(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:c(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:c(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:c(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:c(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:c(6399,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:c(6400,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:c(6401,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:c(6402,e.DiagnosticCategory.Message,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:c(6403,e.DiagnosticCategory.Message,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:c(6404,e.DiagnosticCategory.Message,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:c(6405,e.DiagnosticCategory.Message,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:c(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:c(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:c(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:c(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:c(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:c(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:c(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:c(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:c(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:c(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:c(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:c(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:c(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:c(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:c(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:c(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:c(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:c(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:c(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:c(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:c(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:c(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:c(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:c(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:c(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:c(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:c(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:c(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:c(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:c(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:c(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:c(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:c(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:c(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:c(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:c(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:c(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:c(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:c(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:c(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:c(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:c(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:c(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:c(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:c(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:c(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:c(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:c(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:c(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:c(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:c(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:c(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:c(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:c(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:c(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:c(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:c(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:c(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:c(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:c(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:c(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:c(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:c(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:c(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:c(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:c(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:c(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:c(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:c(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:c(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:c(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:c(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:c(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:c(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:c(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:c(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:c(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:c(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:c(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:c(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:c(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:c(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:c(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:c(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:c(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:c(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:c(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:c(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:c(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:c(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:c(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:c(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:c(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:c(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:c(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:c(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:c(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:c(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:c(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:c(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:c(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:c(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:c(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:c(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:c(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:c(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:c(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:c(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:c(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:c(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:c(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:c(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:c(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:c(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:c(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:c(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:c(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:c(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:c(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:c(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:c(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:c(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:c(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:c(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:c(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:c(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:c(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:c(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:c(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:c(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:c(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:c(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:c(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:c(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:c(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:c(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:c(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:c(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:c(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:c(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:c(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:c(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:c(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:c(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:c(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:c(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:c(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:c(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:c(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:c(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:c(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:c(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:c(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:c(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:c(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:c(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:c(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:c(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:c(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:c(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:c(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:c(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:c(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:c(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:c(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:c(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:c(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:c(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:c(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:c(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:c(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:c(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:c(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:c(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:c(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:c(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:c(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:c(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:c(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:c(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:c(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:c(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:c(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:c(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:c(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:c(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:c(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:c(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:c(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:c(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:c(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:c(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:c(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:c(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:c(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:c(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:c(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:c(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:c(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:c(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:c(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:c(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:c(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:c(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:c(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:c(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:c(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:c(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:c(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:c(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:c(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:c(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:c(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:c(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:c(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:c(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:c(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:c(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:c(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:c(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:c(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:c(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:c(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:c(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:c(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:c(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:c(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:c(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:c(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:c(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:c(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:c(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:c(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:c(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:c(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:c(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:c(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:c(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:c(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:c(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:c(8035,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:c(8036,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:c(8037,e.DiagnosticCategory.Error,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:c(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:c(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:c(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:c(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:c(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:c(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:c(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:c(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:c(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:c(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:c(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:c(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:c(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:c(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:c(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:c(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:c(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:c(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:c(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:c(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:c(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:c(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:c(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:c(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:c(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:c(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:c(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:c(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:c(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:c(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:c(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:c(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:c(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:c(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:c(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:c(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:c(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:c(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:c(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:c(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:c(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:c(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:c(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:c(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:c(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:c(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:c(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:c(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:c(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:c(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:c(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:c(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:c(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:c(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:c(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:c(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:c(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:c(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:c(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:c(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:c(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:c(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:c(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:c(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:c(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:c(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:c(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:c(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:c(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:c(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:c(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:c(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:c(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:c(90059,e.DiagnosticCategory.Message,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:c(90060,e.DiagnosticCategory.Message,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:c(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:c(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:c(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:c(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:c(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:c(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:c(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:c(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:c(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:c(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:c(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:c(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:c(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:c(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:c(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:c(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:c(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:c(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:c(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:c(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:c(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:c(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:c(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:c(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:c(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:c(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:c(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:c(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:c(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:c(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:c(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:c(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:c(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:c(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:c(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:c(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:c(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:c(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:c(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:c(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:c(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:c(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:c(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:c(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:c(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:c(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:c(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:c(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:c(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:c(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:c(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:c(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:c(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:c(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:c(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:c(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:c(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:c(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:c(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:c(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:c(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:c(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:c(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:c(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:c(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:c(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:c(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:c(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:c(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:c(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:c(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:c(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:c(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:c(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:c(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:c(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:c(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:c(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:c(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:c(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:c(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:c(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:c(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:c(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:c(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:c(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:c(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:c(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:c(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:c(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:c(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:c(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:c(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:c(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:c(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:c(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:c(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:c(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:c(95102,e.DiagnosticCategory.Message,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:c(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:c(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:c(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:c(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:c(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:c(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:c(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:c(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:c(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:c(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:c(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:c(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:c(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:c(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:c(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:c(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:c(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:c(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:c(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:c(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:c(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:c(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:c(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:c(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:c(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:c(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:c(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:c(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:c(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:c(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:c(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:c(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:c(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:c(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:c(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:c(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:c(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:c(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:c(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:c(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:c(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:c(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:c(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:c(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:c(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:c(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:c(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:c(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:c(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:c(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:c(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:c(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:c(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:c(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:c(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:c(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:c(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:c(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:c(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:c(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:c(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:c(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:c(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:c(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:c(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:c(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:c(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:c(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:c(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:c(95174,e.DiagnosticCategory.Message,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:c(95175,e.DiagnosticCategory.Message,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:c(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:c(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:c(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:c(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:c(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:c(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:c(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:c(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:c(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:c(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:c(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:c(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:c(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:c(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:c(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:c(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:c(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:c(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:c(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:c(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:c(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:c(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:c(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:c(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:c(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:c(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:c(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:c(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:c(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:c(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:c(18042,e.DiagnosticCategory.Error,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:c(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:c(18044,e.DiagnosticCategory.Message,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:c(18045,e.DiagnosticCategory.Error,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:c(18046,e.DiagnosticCategory.Error,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:c(18047,e.DiagnosticCategory.Error,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:c(18048,e.DiagnosticCategory.Error,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:c(18049,e.DiagnosticCategory.Error,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:c(18050,e.DiagnosticCategory.Error,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here.")}})(h||(h={}));var h;(function(e){var c;function P(L){return L>=79}e.tokenIsIdentifierOrKeyword=P;function T(L){return L===31||P(L)}e.tokenIsIdentifierOrKeywordOrGreaterThan=T,e.textToKeywordObj=(c={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85},c["constructor"]=135,c.debugger=87,c.declare=136,c.default=88,c.delete=89,c.do=90,c.else=91,c.enum=92,c.export=93,c.extends=94,c.false=95,c.finally=96,c.for=97,c.from=158,c.function=98,c.get=137,c.if=99,c.implements=117,c.import=100,c.in=101,c.infer=138,c.instanceof=102,c.interface=118,c.intrinsic=139,c.is=140,c.keyof=141,c.let=119,c.module=142,c.namespace=143,c.never=144,c.new=103,c.null=104,c.number=148,c.object=149,c.package=120,c.private=121,c.protected=122,c.public=123,c.override=161,c.out=145,c.readonly=146,c.require=147,c.global=159,c.return=105,c.satisfies=150,c.set=151,c.static=124,c.string=152,c.super=106,c.switch=107,c.symbol=153,c.this=108,c.throw=109,c.true=110,c.try=111,c.type=154,c.typeof=112,c.undefined=155,c.unique=156,c.unknown=157,c.var=113,c.void=114,c.while=115,c.with=116,c.yield=125,c.async=132,c.await=133,c.of=162,c);var s=new e.Map(e.getEntries(e.textToKeywordObj)),D=new e.Map(e.getEntries(n(n({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),O=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],W=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],E=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],v=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],S=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],te=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Y=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Z=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function ce(L,ue){if(L<ue[0])return!1;for(var Ue=0,Je=ue.length,lr;Ue+1<Je;){if(lr=Ue+(Je-Ue)/2,lr-=lr%2,ue[lr]<=L&&L<=ue[lr+1])return!0;L<ue[lr]?Je=lr:Ue=lr+2}return!1}function k(L,ue){return ue>=2?ce(L,S):ue===1?ce(L,E):ce(L,O)}e.isUnicodeIdentifierStart=k;function X(L,ue){return ue>=2?ce(L,te):ue===1?ce(L,v):ce(L,W)}function A(L){var ue=[];return L.forEach(function(Ue,Je){ue[Ue]=Je}),ue}var y=A(D);function C(L){return y[L]}e.tokenToString=C;function B(L){return D.get(L)}e.stringToToken=B;function F(L){for(var ue=[],Ue=0,Je=0;Ue<L.length;){var lr=L.charCodeAt(Ue);switch(Ue++,lr){case 13:L.charCodeAt(Ue)===10&&Ue++;case 10:ue.push(Je),Je=Ue;break;default:lr>127&&M(lr)&&(ue.push(Je),Je=Ue);break}}return ue.push(Je),ue}e.computeLineStarts=F;function z(L,ue,Ue,Je){return L.getPositionOfLineAndCharacter?L.getPositionOfLineAndCharacter(ue,Ue,Je):ge(Pe(L),ue,Ue,L.text,Je)}e.getPositionOfLineAndCharacter=z;function ge(L,ue,Ue,Je,lr){(ue<0||ue>=L.length)&&(lr?ue=ue<0?0:ue>=L.length?L.length-1:ue:e.Debug.fail("Bad line number. Line: ".concat(ue,", lineStarts.length: ").concat(L.length," , line map is correct? ").concat(Je!==void 0?e.arraysEqual(L,F(Je)):"unknown")));var mr=L[ue]+Ue;return lr?mr>L[ue+1]?L[ue+1]:typeof Je=="string"&&mr>Je.length?Je.length:mr:(ue<L.length-1?e.Debug.assert(mr<L[ue+1]):Je!==void 0&&e.Debug.assert(mr<=Je.length),mr)}e.computePositionOfLineAndCharacter=ge;function Pe(L){return L.lineMap||(L.lineMap=F(L.text))}e.getLineStarts=Pe;function fe(L,ue){var Ue=_e(L,ue);return{line:Ue,character:ue-L[Ue]}}e.computeLineAndCharacterOfPosition=fe;function _e(L,ue,Ue){var Je=e.binarySearch(L,ue,e.identity,e.compareValues,Ue);return Je<0&&(Je=~Je-1,e.Debug.assert(Je!==-1,"position cannot precede the beginning of the file")),Je}e.computeLineOfPosition=_e;function ne(L,ue,Ue){if(ue===Ue)return 0;var Je=Pe(L),lr=Math.min(ue,Ue),mr=lr===Ue,Hr=mr?ue:Ue,wr=_e(Je,lr),Oe=_e(Je,Hr,wr);return mr?wr-Oe:Oe-wr}e.getLinesBetweenPositions=ne;function oe(L,ue){return fe(Pe(L),ue)}e.getLineAndCharacterOfPosition=oe;function w(L){return re(L)||M(L)}e.isWhiteSpaceLike=w;function re(L){return L===32||L===9||L===11||L===12||L===160||L===133||L===5760||L>=8192&&L<=8203||L===8239||L===8287||L===12288||L===65279}e.isWhiteSpaceSingleLine=re;function M(L){return L===10||L===13||L===8232||L===8233}e.isLineBreak=M;function U(L){return L>=48&&L<=57}function H(L){return U(L)||L>=65&&L<=70||L>=97&&L<=102}function q(L){return L<=1114111}function R(L){return L>=48&&L<=55}e.isOctalDigit=R;function K(L,ue){var Ue=L.charCodeAt(ue);switch(Ue){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return ue===0;default:return Ue>127}}e.couldStartTrivia=K;function I(L,ue,Ue,Je,lr){if(e.positionIsSynthesized(ue))return ue;for(var mr=!1;;){var Hr=L.charCodeAt(ue);switch(Hr){case 13:L.charCodeAt(ue+1)===10&&ue++;case 10:if(ue++,Ue)return ue;mr=!!lr;continue;case 9:case 11:case 12:case 32:ue++;continue;case 47:if(Je)break;if(L.charCodeAt(ue+1)===47){for(ue+=2;ue<L.length&&!M(L.charCodeAt(ue));)ue++;mr=!1;continue}if(L.charCodeAt(ue+1)===42){for(ue+=2;ue<L.length;){if(L.charCodeAt(ue)===42&&L.charCodeAt(ue+1)===47){ue+=2;break}ue++}mr=!1;continue}break;case 60:case 124:case 61:case 62:if(le(L,ue)){ue=ee(L,ue),mr=!1;continue}break;case 35:if(ue===0&&de(L,ue)){ue=De(L,ue),mr=!1;continue}break;case 42:if(mr){ue++,mr=!1;continue}break;default:if(Hr>127&&w(Hr)){ue++;continue}break}return ue}}e.skipTrivia=I;var he=7;function le(L,ue){if(e.Debug.assert(ue>=0),ue===0||M(L.charCodeAt(ue-1))){var Ue=L.charCodeAt(ue);if(ue+he<L.length){for(var Je=0;Je<he;Je++)if(L.charCodeAt(ue+Je)!==Ue)return!1;return Ue===61||L.charCodeAt(ue+he)===32}}return!1}function ee(L,ue,Ue){Ue&&Ue(e.Diagnostics.Merge_conflict_marker_encountered,ue,he);var Je=L.charCodeAt(ue),lr=L.length;if(Je===60||Je===62)for(;ue<lr&&!M(L.charCodeAt(ue));)ue++;else for(e.Debug.assert(Je===124||Je===61);ue<lr;){var mr=L.charCodeAt(ue);if((mr===61||mr===62)&&mr!==Je&&le(L,ue))break;ue++}return ue}var J=/^#!.*/;function de(L,ue){return e.Debug.assert(ue===0),J.test(L)}e.isShebangTrivia=de;function De(L,ue){var Ue=J.exec(L)[0];return ue=ue+Ue.length,ue}e.scanShebangTrivia=De;function N(L,ue,Ue,Je,lr,mr,Hr){var wr,Oe,Ze,tt,ut=!1,or=Je,qr=Hr;if(Ue===0){or=!0;var Rr=nr(ue);Rr&&(Ue=Rr.length)}e:for(;Ue>=0&&Ue<ue.length;){var zr=ue.charCodeAt(Ue);switch(zr){case 13:ue.charCodeAt(Ue+1)===10&&Ue++;case 10:if(Ue++,Je)break e;or=!0,ut&&(tt=!0);continue;case 9:case 11:case 12:case 32:Ue++;continue;case 47:var Fr=ue.charCodeAt(Ue+1),_t=!1;if(Fr===47||Fr===42){var Ct=Fr===47?2:3,yt=Ue;if(Ue+=2,Fr===47)for(;Ue<ue.length;){if(M(ue.charCodeAt(Ue))){_t=!0;break}Ue++}else for(;Ue<ue.length;){if(ue.charCodeAt(Ue)===42&&ue.charCodeAt(Ue+1)===47){Ue+=2;break}Ue++}if(or){if(ut&&(qr=lr(wr,Oe,Ze,tt,mr,qr),!L&&qr))return qr;wr=yt,Oe=Ue,Ze=Ct,tt=_t,ut=!0}continue}break e;default:if(zr>127&&w(zr)){ut&&M(zr)&&(tt=!0),Ue++;continue}break e}}return ut&&(qr=lr(wr,Oe,Ze,tt,mr,qr)),qr}function b(L,ue,Ue,Je){return N(!1,L,ue,!1,Ue,Je)}e.forEachLeadingCommentRange=b;function Q(L,ue,Ue,Je){return N(!1,L,ue,!0,Ue,Je)}e.forEachTrailingCommentRange=Q;function G(L,ue,Ue,Je,lr){return N(!0,L,ue,!1,Ue,Je,lr)}e.reduceEachLeadingCommentRange=G;function ae(L,ue,Ue,Je,lr){return N(!0,L,ue,!0,Ue,Je,lr)}e.reduceEachTrailingCommentRange=ae;function Te(L,ue,Ue,Je,lr,mr){return mr||(mr=[]),mr.push({kind:Ue,pos:L,end:ue,hasTrailingNewLine:Je}),mr}function Ne(L,ue){return G(L,ue,Te,void 0,void 0)}e.getLeadingCommentRanges=Ne;function we(L,ue){return ae(L,ue,Te,void 0,void 0)}e.getTrailingCommentRanges=we;function nr(L){var ue=J.exec(L);if(ue)return ue[0]}e.getShebang=nr;function tr(L,ue){return L>=65&&L<=90||L>=97&&L<=122||L===36||L===95||L>127&&k(L,ue)}e.isIdentifierStart=tr;function me(L,ue,Ue){return L>=65&&L<=90||L>=97&&L<=122||L>=48&&L<=57||L===36||L===95||(Ue===1?L===45||L===58:!1)||L>127&&X(L,ue)}e.isIdentifierPart=me;function He(L,ue,Ue){var Je=je(L,0);if(!tr(Je,ue))return!1;for(var lr=Ce(Je);lr<L.length;lr+=Ce(Je))if(!me(Je=je(L,lr),ue,Ue))return!1;return!0}e.isIdentifierText=He;function rr(L,ue,Ue,Je,lr,mr,Hr){Ue===void 0&&(Ue=0);var wr=Je,Oe,Ze,tt,ut,or,qr,Rr,zr,Fr=0;wn(wr,mr,Hr);var _t={getStartPos:function(){return tt},getTextPos:function(){return Oe},getToken:function(){return or},getTokenPos:function(){return ut},getTokenText:function(){return wr.substring(ut,Oe)},getTokenValue:function(){return qr},hasUnicodeEscape:function(){return(Rr&1024)!==0},hasExtendedUnicodeEscape:function(){return(Rr&8)!==0},hasPrecedingLineBreak:function(){return(Rr&1)!==0},hasPrecedingJSDocComment:function(){return(Rr&2)!==0},isIdentifier:function(){return or===79||or>116},isReservedWord:function(){return or>=81&&or<=116},isUnterminated:function(){return(Rr&4)!==0},getCommentDirectives:function(){return zr},getNumericLiteralFlags:function(){return Rr&1008},getTokenFlags:function(){return Rr},reScanGreaterToken:Ir,reScanAsteriskEqualsToken:Jr,reScanSlashToken:ye,reScanTemplateToken:dr,reScanTemplateHeadOrNoSubstitutionTemplate:ar,scanJsxIdentifier:Ar,scanJsxAttributeValue:rt,reScanJsxAttributeValue:Et,reScanJsxToken:Sr,reScanLessThanToken:Or,reScanHashToken:Ge,reScanQuestionToken:ur,reScanInvalidIdentifier:sn,scanJsxToken:Lr,scanJsDocToken:St,scan:Wt,getText:Yt,clearCommentDirectives:un,setText:wn,setScriptTarget:yn,setLanguageVariant:Tn,setOnError:Bn,setTextPos:An,setInJSDocType:ii,tryScan:ht,lookAhead:Ft,scanRange:pt};return e.Debug.isDebugging&&Object.defineProperty(_t,"__debugShowCurrentPositionInText",{get:function(){var Xe=_t.getText();return Xe.slice(0,_t.getStartPos())+"║"+Xe.slice(_t.getStartPos())}}),_t;function Ct(Xe,hr,at){if(hr===void 0&&(hr=Oe),lr){var Qe=Oe;Oe=hr,lr(Xe,at||0),Oe=Qe}}function yt(){for(var Xe=Oe,hr=!1,at=!1,Qe="";;){var Qt=wr.charCodeAt(Oe);if(Qt===95){Rr|=512,hr?(hr=!1,at=!0,Qe+=wr.substring(Xe,Oe)):Ct(at?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Oe,1),Oe++,Xe=Oe;continue}if(U(Qt)){hr=!0,at=!1,Oe++;continue}break}return wr.charCodeAt(Oe-1)===95&&Ct(e.Diagnostics.Numeric_separators_are_not_allowed_here,Oe-1,1),Qe+wr.substring(Xe,Oe)}function Fe(){var Xe=Oe,hr=yt(),at,Qe;wr.charCodeAt(Oe)===46&&(Oe++,at=yt());var Qt=Oe;if(wr.charCodeAt(Oe)===69||wr.charCodeAt(Oe)===101){Oe++,Rr|=16,(wr.charCodeAt(Oe)===43||wr.charCodeAt(Oe)===45)&&Oe++;var Zt=Oe,Tt=yt();Tt?(Qe=wr.substring(Qt,Zt)+Tt,Qt=Oe):Ct(e.Diagnostics.Digit_expected)}var gt;if(Rr&512?(gt=hr,at&&(gt+="."+at),Qe&&(gt+=Qe)):gt=wr.substring(Xe,Qt),at!==void 0||Rr&16)return vr(Xe,at===void 0&&!!(Rr&16)),{type:8,value:""+ +gt};qr=gt;var kt=Nt();return vr(Xe),{type:kt,value:qr}}function vr(Xe,hr){if(tr(je(wr,Oe),L)){var at=Oe,Qe=Ke().length;Qe===1&&wr[at]==="n"?Ct(hr?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,Xe,at-Xe+1):(Ct(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,at,Qe),Oe=at)}}function Le(){for(var Xe=Oe;R(wr.charCodeAt(Oe));)Oe++;return+wr.substring(Xe,Oe)}function cr(Xe,hr){var at=Re(Xe,!1,hr);return at?parseInt(at,16):-1}function $r(Xe,hr){return Re(Xe,!0,hr)}function Re(Xe,hr,at){for(var Qe=[],Qt=!1,Zt=!1;Qe.length<Xe||hr;){var Tt=wr.charCodeAt(Oe);if(at&&Tt===95){Rr|=512,Qt?(Qt=!1,Zt=!0):Ct(Zt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Oe,1),Oe++;continue}if(Qt=at,Tt>=65&&Tt<=70)Tt+=97-65;else if(!(Tt>=48&&Tt<=57||Tt>=97&&Tt<=102))break;Qe.push(Tt),Oe++,Zt=!1}return Qe.length<Xe&&(Qe=[]),wr.charCodeAt(Oe-1)===95&&Ct(e.Diagnostics.Numeric_separators_are_not_allowed_here,Oe-1,1),String.fromCharCode.apply(String,Qe)}function xr(Xe){Xe===void 0&&(Xe=!1);var hr=wr.charCodeAt(Oe);Oe++;for(var at="",Qe=Oe;;){if(Oe>=Ze){at+=wr.substring(Qe,Oe),Rr|=4,Ct(e.Diagnostics.Unterminated_string_literal);break}var Qt=wr.charCodeAt(Oe);if(Qt===hr){at+=wr.substring(Qe,Oe),Oe++;break}if(Qt===92&&!Xe){at+=wr.substring(Qe,Oe),at+=Qr(),Qe=Oe;continue}if(M(Qt)&&!Xe){at+=wr.substring(Qe,Oe),Rr|=4,Ct(e.Diagnostics.Unterminated_string_literal);break}Oe++}return at}function Br(Xe){var hr=wr.charCodeAt(Oe)===96;Oe++;for(var at=Oe,Qe="",Qt;;){if(Oe>=Ze){Qe+=wr.substring(at,Oe),Rr|=4,Ct(e.Diagnostics.Unterminated_template_literal),Qt=hr?14:17;break}var Zt=wr.charCodeAt(Oe);if(Zt===96){Qe+=wr.substring(at,Oe),Oe++,Qt=hr?14:17;break}if(Zt===36&&Oe+1<Ze&&wr.charCodeAt(Oe+1)===123){Qe+=wr.substring(at,Oe),Oe+=2,Qt=hr?15:16;break}if(Zt===92){Qe+=wr.substring(at,Oe),Qe+=Qr(Xe),at=Oe;continue}if(Zt===13){Qe+=wr.substring(at,Oe),Oe++,Oe<Ze&&wr.charCodeAt(Oe)===10&&Oe++,Qe+=`
`,at=Oe;continue}Oe++}return e.Debug.assert(Qt!==void 0),qr=Qe,Qt}function Qr(Xe){var hr=Oe;if(Oe++,Oe>=Ze)return Ct(e.Diagnostics.Unexpected_end_of_text),"";var at=wr.charCodeAt(Oe);switch(Oe++,at){case 48:return Xe&&Oe<Ze&&U(wr.charCodeAt(Oe))?(Oe++,Rr|=2048,wr.substring(hr,Oe)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Xe){for(var Qe=Oe;Qe<Oe+4;Qe++)if(Qe<Ze&&!H(wr.charCodeAt(Qe))&&wr.charCodeAt(Qe)!==123)return Oe=Qe,Rr|=2048,wr.substring(hr,Oe)}if(Oe<Ze&&wr.charCodeAt(Oe)===123){if(Oe++,Xe&&!H(wr.charCodeAt(Oe)))return Rr|=2048,wr.substring(hr,Oe);if(Xe){var Qt=Oe,Zt=$r(1,!1),Tt=Zt?parseInt(Zt,16):-1;if(!q(Tt)||wr.charCodeAt(Oe)!==125)return Rr|=2048,wr.substring(hr,Oe);Oe=Qt}return Rr|=8,ft()}return Rr|=1024,ct(4);case 120:if(Xe)if(H(wr.charCodeAt(Oe))){if(!H(wr.charCodeAt(Oe+1)))return Oe++,Rr|=2048,wr.substring(hr,Oe)}else return Rr|=2048,wr.substring(hr,Oe);return ct(2);case 13:Oe<Ze&&wr.charCodeAt(Oe)===10&&Oe++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(at)}}function ct(Xe){var hr=cr(Xe,!1);return hr>=0?String.fromCharCode(hr):(Ct(e.Diagnostics.Hexadecimal_digit_expected),"")}function ft(){var Xe=$r(1,!1),hr=Xe?parseInt(Xe,16):-1,at=!1;return hr<0?(Ct(e.Diagnostics.Hexadecimal_digit_expected),at=!0):hr>1114111&&(Ct(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),at=!0),Oe>=Ze?(Ct(e.Diagnostics.Unexpected_end_of_text),at=!0):wr.charCodeAt(Oe)===125?Oe++:(Ct(e.Diagnostics.Unterminated_Unicode_escape_sequence),at=!0),at?"":xe(hr)}function Dt(){if(Oe+5<Ze&&wr.charCodeAt(Oe+1)===117){var Xe=Oe;Oe+=2;var hr=cr(4,!1);return Oe=Xe,hr}return-1}function Me(){if(je(wr,Oe+1)===117&&je(wr,Oe+2)===123){var Xe=Oe;Oe+=3;var hr=$r(1,!1),at=hr?parseInt(hr,16):-1;return Oe=Xe,at}return-1}function Ke(){for(var Xe="",hr=Oe;Oe<Ze;){var at=je(wr,Oe);if(me(at,L))Oe+=Ce(at);else if(at===92){if(at=Me(),at>=0&&me(at,L)){Oe+=3,Rr|=8,Xe+=ft(),hr=Oe;continue}if(at=Dt(),!(at>=0&&me(at,L)))break;Rr|=1024,Xe+=wr.substring(hr,Oe),Xe+=xe(at),Oe+=6,hr=Oe}else break}return Xe+=wr.substring(hr,Oe),Xe}function Vr(){var Xe=qr.length;if(Xe>=2&&Xe<=12){var hr=qr.charCodeAt(0);if(hr>=97&&hr<=122){var at=s.get(qr);if(at!==void 0)return or=at}}return or=79}function Yr(Xe){for(var hr="",at=!1,Qe=!1;;){var Qt=wr.charCodeAt(Oe);if(Qt===95){Rr|=512,at?(at=!1,Qe=!0):Ct(Qe?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Oe,1),Oe++;continue}if(at=!0,!U(Qt)||Qt-48>=Xe)break;hr+=wr[Oe],Oe++,Qe=!1}return wr.charCodeAt(Oe-1)===95&&Ct(e.Diagnostics.Numeric_separators_are_not_allowed_here,Oe-1,1),hr}function Nt(){if(wr.charCodeAt(Oe)===110)return qr+="n",Rr&384&&(qr=e.parsePseudoBigInt(qr)+"n"),Oe++,9;var Xe=Rr&128?parseInt(qr.slice(2),2):Rr&256?parseInt(qr.slice(2),8):+qr;return qr=""+Xe,8}function Wt(){var Xe;tt=Oe,Rr=0;for(var hr=!1;;){if(ut=Oe,Oe>=Ze)return or=1;var at=je(wr,Oe);if(at===35&&Oe===0&&de(wr,Oe)){if(Oe=De(wr,Oe),ue)continue;return or=6}switch(at){case 10:case 13:if(Rr|=1,ue){Oe++;continue}else return at===13&&Oe+1<Ze&&wr.charCodeAt(Oe+1)===10?Oe+=2:Oe++,or=4;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 8203:case 8239:case 8287:case 12288:case 65279:if(ue){Oe++;continue}else{for(;Oe<Ze&&re(wr.charCodeAt(Oe));)Oe++;return or=5}case 33:return wr.charCodeAt(Oe+1)===61?wr.charCodeAt(Oe+2)===61?(Oe+=3,or=37):(Oe+=2,or=35):(Oe++,or=53);case 34:case 39:return qr=xr(),or=10;case 96:return or=Br(!1);case 37:return wr.charCodeAt(Oe+1)===61?(Oe+=2,or=69):(Oe++,or=44);case 38:return wr.charCodeAt(Oe+1)===38?wr.charCodeAt(Oe+2)===61?(Oe+=3,or=76):(Oe+=2,or=55):wr.charCodeAt(Oe+1)===61?(Oe+=2,or=73):(Oe++,or=50);case 40:return Oe++,or=20;case 41:return Oe++,or=21;case 42:if(wr.charCodeAt(Oe+1)===61)return Oe+=2,or=66;if(wr.charCodeAt(Oe+1)===42)return wr.charCodeAt(Oe+2)===61?(Oe+=3,or=67):(Oe+=2,or=42);if(Oe++,Fr&&!hr&&Rr&1){hr=!0;continue}return or=41;case 43:return wr.charCodeAt(Oe+1)===43?(Oe+=2,or=45):wr.charCodeAt(Oe+1)===61?(Oe+=2,or=64):(Oe++,or=39);case 44:return Oe++,or=27;case 45:return wr.charCodeAt(Oe+1)===45?(Oe+=2,or=46):wr.charCodeAt(Oe+1)===61?(Oe+=2,or=65):(Oe++,or=40);case 46:return U(wr.charCodeAt(Oe+1))?(qr=Fe().value,or=8):wr.charCodeAt(Oe+1)===46&&wr.charCodeAt(Oe+2)===46?(Oe+=3,or=25):(Oe++,or=24);case 47:if(wr.charCodeAt(Oe+1)===47){for(Oe+=2;Oe<Ze&&!M(wr.charCodeAt(Oe));)Oe++;if(zr=Ie(zr,wr.slice(ut,Oe),Y,ut),ue)continue;return or=2}if(wr.charCodeAt(Oe+1)===42){Oe+=2,wr.charCodeAt(Oe)===42&&wr.charCodeAt(Oe+1)!==47&&(Rr|=2);for(var Qe=!1,Qt=ut;Oe<Ze;){var Zt=wr.charCodeAt(Oe);if(Zt===42&&wr.charCodeAt(Oe+1)===47){Oe+=2,Qe=!0;break}Oe++,M(Zt)&&(Qt=Oe,Rr|=1)}if(zr=Ie(zr,wr.slice(Qt,Oe),Z,Qt),Qe||Ct(e.Diagnostics.Asterisk_Slash_expected),ue)continue;return Qe||(Rr|=4),or=3}return wr.charCodeAt(Oe+1)===61?(Oe+=2,or=68):(Oe++,or=43);case 48:if(Oe+2<Ze&&(wr.charCodeAt(Oe+1)===88||wr.charCodeAt(Oe+1)===120))return Oe+=2,qr=$r(1,!0),qr||(Ct(e.Diagnostics.Hexadecimal_digit_expected),qr="0"),qr="0x"+qr,Rr|=64,or=Nt();if(Oe+2<Ze&&(wr.charCodeAt(Oe+1)===66||wr.charCodeAt(Oe+1)===98))return Oe+=2,qr=Yr(2),qr||(Ct(e.Diagnostics.Binary_digit_expected),qr="0"),qr="0b"+qr,Rr|=128,or=Nt();if(Oe+2<Ze&&(wr.charCodeAt(Oe+1)===79||wr.charCodeAt(Oe+1)===111))return Oe+=2,qr=Yr(8),qr||(Ct(e.Diagnostics.Octal_digit_expected),qr="0"),qr="0o"+qr,Rr|=256,or=Nt();if(Oe+1<Ze&&R(wr.charCodeAt(Oe+1)))return qr=""+Le(),Rr|=32,or=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Xe=Fe(),or=Xe.type,qr=Xe.value,or;case 58:return Oe++,or=58;case 59:return Oe++,or=26;case 60:if(le(wr,Oe)){if(Oe=ee(wr,Oe,Ct),ue)continue;return or=7}return wr.charCodeAt(Oe+1)===60?wr.charCodeAt(Oe+2)===61?(Oe+=3,or=70):(Oe+=2,or=47):wr.charCodeAt(Oe+1)===61?(Oe+=2,or=32):Ue===1&&wr.charCodeAt(Oe+1)===47&&wr.charCodeAt(Oe+2)!==42?(Oe+=2,or=30):(Oe++,or=29);case 61:if(le(wr,Oe)){if(Oe=ee(wr,Oe,Ct),ue)continue;return or=7}return wr.charCodeAt(Oe+1)===61?wr.charCodeAt(Oe+2)===61?(Oe+=3,or=36):(Oe+=2,or=34):wr.charCodeAt(Oe+1)===62?(Oe+=2,or=38):(Oe++,or=63);case 62:if(le(wr,Oe)){if(Oe=ee(wr,Oe,Ct),ue)continue;return or=7}return Oe++,or=31;case 63:return wr.charCodeAt(Oe+1)===46&&!U(wr.charCodeAt(Oe+2))?(Oe+=2,or=28):wr.charCodeAt(Oe+1)===63?wr.charCodeAt(Oe+2)===61?(Oe+=3,or=77):(Oe+=2,or=60):(Oe++,or=57);case 91:return Oe++,or=22;case 93:return Oe++,or=23;case 94:return wr.charCodeAt(Oe+1)===61?(Oe+=2,or=78):(Oe++,or=52);case 123:return Oe++,or=18;case 124:if(le(wr,Oe)){if(Oe=ee(wr,Oe,Ct),ue)continue;return or=7}return wr.charCodeAt(Oe+1)===124?wr.charCodeAt(Oe+2)===61?(Oe+=3,or=75):(Oe+=2,or=56):wr.charCodeAt(Oe+1)===61?(Oe+=2,or=74):(Oe++,or=51);case 125:return Oe++,or=19;case 126:return Oe++,or=54;case 64:return Oe++,or=59;case 92:var Tt=Me();if(Tt>=0&&tr(Tt,L))return Oe+=3,Rr|=8,qr=ft()+Ke(),or=Vr();var gt=Dt();return gt>=0&&tr(gt,L)?(Oe+=6,Rr|=1024,qr=String.fromCharCode(gt)+Ke(),or=Vr()):(Ct(e.Diagnostics.Invalid_character),Oe++,or=0);case 35:if(Oe!==0&&wr[Oe+1]==="!")return Ct(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),Oe++,or=0;var kt=je(wr,Oe+1);if(kt===92){Oe++;var Lt=Me();if(Lt>=0&&tr(Lt,L))return Oe+=3,Rr|=8,qr="#"+ft()+Ke(),or=80;var $e=Dt();if($e>=0&&tr($e,L))return Oe+=6,Rr|=1024,qr="#"+String.fromCharCode($e)+Ke(),or=80;Oe--}return tr(kt,L)?(Oe++,en(kt,L)):(qr="#",Ct(e.Diagnostics.Invalid_character,Oe++,Ce(at))),or=80;default:var et=en(at,L);if(et)return or=et;if(re(at)){Oe+=Ce(at);continue}else if(M(at)){Rr|=1,Oe+=Ce(at);continue}var It=Ce(at);return Ct(e.Diagnostics.Invalid_character,Oe,It),Oe+=It,or=0}}}function sn(){e.Debug.assert(or===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),Oe=ut=tt,Rr=0;var Xe=je(wr,Oe),hr=en(Xe,99);return hr?or=hr:(Oe+=Ce(Xe),or)}function en(Xe,hr){var at=Xe;if(tr(at,hr)){for(Oe+=Ce(at);Oe<Ze&&me(at=je(wr,Oe),hr);)Oe+=Ce(at);return qr=wr.substring(ut,Oe),at===92&&(qr+=Ke()),Vr()}}function Ir(){if(or===31){if(wr.charCodeAt(Oe)===62)return wr.charCodeAt(Oe+1)===62?wr.charCodeAt(Oe+2)===61?(Oe+=3,or=72):(Oe+=2,or=49):wr.charCodeAt(Oe+1)===61?(Oe+=2,or=71):(Oe++,or=48);if(wr.charCodeAt(Oe)===61)return Oe++,or=33}return or}function Jr(){return e.Debug.assert(or===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),Oe=ut+1,or=63}function ye(){if(or===43||or===68){for(var Xe=ut+1,hr=!1,at=!1;;){if(Xe>=Ze){Rr|=4,Ct(e.Diagnostics.Unterminated_regular_expression_literal);break}var Qe=wr.charCodeAt(Xe);if(M(Qe)){Rr|=4,Ct(e.Diagnostics.Unterminated_regular_expression_literal);break}if(hr)hr=!1;else if(Qe===47&&!at){Xe++;break}else Qe===91?at=!0:Qe===92?hr=!0:Qe===93&&(at=!1);Xe++}for(;Xe<Ze&&me(wr.charCodeAt(Xe),L);)Xe++;Oe=Xe,qr=wr.substring(ut,Oe),or=13}return or}function Ie(Xe,hr,at,Qe){var Qt=We(e.trimStringStart(hr),at);return Qt===void 0?Xe:e.append(Xe,{range:{pos:Qe,end:Oe},type:Qt})}function We(Xe,hr){var at=hr.exec(Xe);if(at)switch(at[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function dr(Xe){return e.Debug.assert(or===19,"'reScanTemplateToken' should only be called on a '}'"),Oe=ut,or=Br(Xe)}function ar(){return Oe=ut,or=Br(!0)}function Sr(Xe){return Xe===void 0&&(Xe=!0),Oe=ut=tt,or=Lr(Xe)}function Or(){return or===47?(Oe=ut+1,or=29):or}function Ge(){return or===80?(Oe=ut+1,or=62):or}function ur(){return e.Debug.assert(or===60,"'reScanQuestionToken' should only be called on a '??'"),Oe=ut+1,or=57}function Lr(Xe){if(Xe===void 0&&(Xe=!0),tt=ut=Oe,Oe>=Ze)return or=1;var hr=wr.charCodeAt(Oe);if(hr===60)return wr.charCodeAt(Oe+1)===47?(Oe+=2,or=30):(Oe++,or=29);if(hr===123)return Oe++,or=18;for(var at=0;Oe<Ze&&(hr=wr.charCodeAt(Oe),hr!==123);){if(hr===60){if(le(wr,Oe))return Oe=ee(wr,Oe,Ct),or=7;break}if(hr===62&&Ct(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,Oe,1),hr===125&&Ct(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,Oe,1),M(hr)&&at===0)at=-1;else{if(!Xe&&M(hr)&&at>0)break;w(hr)||(at=Oe)}Oe++}return qr=wr.substring(tt,Oe),at===-1?12:11}function Ar(){if(P(or)){for(var Xe=!1;Oe<Ze;){var hr=wr.charCodeAt(Oe);if(hr===45){qr+="-",Oe++;continue}else if(hr===58&&!Xe){qr+=":",Oe++,Xe=!0,or=79;continue}var at=Oe;if(qr+=Ke(),Oe===at)break}return qr.slice(-1)===":"&&(qr=qr.slice(0,-1),Oe--),Vr()}return or}function rt(){switch(tt=Oe,wr.charCodeAt(Oe)){case 34:case 39:return qr=xr(!0),or=10;default:return Wt()}}function Et(){return Oe=ut=tt,rt()}function St(){if(tt=ut=Oe,Rr=0,Oe>=Ze)return or=1;var Xe=je(wr,Oe);switch(Oe+=Ce(Xe),Xe){case 9:case 11:case 12:case 32:for(;Oe<Ze&&re(wr.charCodeAt(Oe));)Oe++;return or=5;case 64:return or=59;case 13:wr.charCodeAt(Oe)===10&&Oe++;case 10:return Rr|=1,or=4;case 42:return or=41;case 123:return or=18;case 125:return or=19;case 91:return or=22;case 93:return or=23;case 60:return or=29;case 62:return or=31;case 61:return or=63;case 44:return or=27;case 46:return or=24;case 96:return or=61;case 35:return or=62;case 92:Oe--;var hr=Me();if(hr>=0&&tr(hr,L))return Oe+=3,Rr|=8,qr=ft()+Ke(),or=Vr();var at=Dt();return at>=0&&tr(at,L)?(Oe+=6,Rr|=1024,qr=String.fromCharCode(at)+Ke(),or=Vr()):(Oe++,or=0)}if(tr(Xe,L)){for(var Qe=Xe;Oe<Ze&&me(Qe=je(wr,Oe),L)||wr.charCodeAt(Oe)===45;)Oe+=Ce(Qe);return qr=wr.substring(ut,Oe),Qe===92&&(qr+=Ke()),or=Vr()}else return or=0}function Pt(Xe,hr){var at=Oe,Qe=tt,Qt=ut,Zt=or,Tt=qr,gt=Rr,kt=Xe();return(!kt||hr)&&(Oe=at,tt=Qe,ut=Qt,or=Zt,qr=Tt,Rr=gt),kt}function pt(Xe,hr,at){var Qe=Ze,Qt=Oe,Zt=tt,Tt=ut,gt=or,kt=qr,Lt=Rr,$e=zr;wn(wr,Xe,hr);var et=at();return Ze=Qe,Oe=Qt,tt=Zt,ut=Tt,or=gt,qr=kt,Rr=Lt,zr=$e,et}function Ft(Xe){return Pt(Xe,!0)}function ht(Xe){return Pt(Xe,!1)}function Yt(){return wr}function un(){zr=void 0}function wn(Xe,hr,at){wr=Xe||"",Ze=at===void 0?wr.length:hr+at,An(hr||0)}function Bn(Xe){lr=Xe}function yn(Xe){L=Xe}function Tn(Xe){Ue=Xe}function An(Xe){e.Debug.assert(Xe>=0),Oe=Xe,tt=Xe,ut=Xe,or=0,qr=void 0,Rr=0}function ii(Xe){Fr+=Xe?1:-1}}e.createScanner=rr;var je=String.prototype.codePointAt?function(L,ue){return L.codePointAt(ue)}:function(ue,Ue){var Je=ue.length;if(!(Ue<0||Ue>=Je)){var lr=ue.charCodeAt(Ue);if(lr>=55296&&lr<=56319&&Je>Ue+1){var mr=ue.charCodeAt(Ue+1);if(mr>=56320&&mr<=57343)return(lr-55296)*1024+mr-56320+65536}return lr}};function Ce(L){return L>=65536?2:1}function Ae(L){if(e.Debug.assert(0<=L&&L<=1114111),L<=65535)return String.fromCharCode(L);var ue=Math.floor((L-65536)/1024)+55296,Ue=(L-65536)%1024+56320;return String.fromCharCode(ue,Ue)}var qe=String.fromCodePoint?function(L){return String.fromCodePoint(L)}:Ae;function xe(L){return qe(L)}e.utf16EncodeAsString=xe})(h||(h={}));var h;(function(e){function c(er){return e.pathIsRelative(er)||e.isRootedDiskPath(er)}e.isExternalModuleNameRelative=c;function P(er){return e.sortAndDeduplicate(er,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=P;function T(er){switch(e.getEmitScriptTarget(er)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}e.getDefaultLibFileName=T;function s(er){return er.start+er.length}e.textSpanEnd=s;function D(er){return er.length===0}e.textSpanIsEmpty=D;function O(er,Bt){return Bt>=er.start&&Bt<s(er)}e.textSpanContainsPosition=O;function W(er,Bt){return Bt>=er.pos&&Bt<=er.end}e.textRangeContainsPositionInclusive=W;function E(er,Bt){return Bt.start>=er.start&&s(Bt)<=s(er)}e.textSpanContainsTextSpan=E;function v(er,Bt){return S(er,Bt)!==void 0}e.textSpanOverlapsWith=v;function S(er,Bt){var Mr=k(er,Bt);return Mr&&Mr.length===0?void 0:Mr}e.textSpanOverlap=S;function te(er,Bt){return Z(er.start,er.length,Bt.start,Bt.length)}e.textSpanIntersectsWithTextSpan=te;function Y(er,Bt,Mr){return Z(er.start,er.length,Bt,Mr)}e.textSpanIntersectsWith=Y;function Z(er,Bt,Mr,ua){var _o=er+Bt,xs=Mr+ua;return Mr<=_o&&xs>=er}e.decodedTextSpanIntersectsWith=Z;function ce(er,Bt){return Bt<=s(er)&&Bt>=er.start}e.textSpanIntersectsWithPosition=ce;function k(er,Bt){var Mr=Math.max(er.start,Bt.start),ua=Math.min(s(er),s(Bt));return Mr<=ua?A(Mr,ua):void 0}e.textSpanIntersection=k;function X(er,Bt){if(er<0)throw new Error("start < 0");if(Bt<0)throw new Error("length < 0");return{start:er,length:Bt}}e.createTextSpan=X;function A(er,Bt){return X(er,Bt-er)}e.createTextSpanFromBounds=A;function y(er){return X(er.span.start,er.newLength)}e.textChangeRangeNewSpan=y;function C(er){return D(er.span)&&er.newLength===0}e.textChangeRangeIsUnchanged=C;function B(er,Bt){if(Bt<0)throw new Error("newLength < 0");return{span:er,newLength:Bt}}e.createTextChangeRange=B,e.unchangedTextChangeRange=B(X(0,0),0);function F(er){if(er.length===0)return e.unchangedTextChangeRange;if(er.length===1)return er[0];for(var Bt=er[0],Mr=Bt.span.start,ua=s(Bt.span),_o=Mr+Bt.newLength,xs=1;xs<er.length;xs++){var yc=er[xs],kc=Mr,oc=ua,iu=_o,_u=yc.span.start,wl=s(yc.span),Du=_u+yc.newLength;Mr=Math.min(kc,_u),ua=Math.max(oc,oc+(wl-iu)),_o=Math.max(Du,Du+(iu-wl))}return B(A(Mr,ua),_o-Mr)}e.collapseTextChangeRangesAcrossMultipleVersions=F;function z(er){if(er&&er.kind===165){for(var Bt=er;Bt;Bt=Bt.parent)if(at(Bt)||$e(Bt)||Bt.kind===261)return Bt}}e.getTypeParameterOwner=z;function ge(er,Bt){return e.hasSyntacticModifier(er,16476)&&Bt.kind===173}e.isParameterPropertyDeclaration=ge;function Pe(er){return ra(er)?e.every(er.elements,fe):!1}e.isEmptyBindingPattern=Pe;function fe(er){return e.isOmittedExpression(er)?!0:Pe(er.name)}e.isEmptyBindingElement=fe;function _e(er){for(var Bt=er.parent;e.isBindingElement(Bt.parent);)Bt=Bt.parent.parent;return Bt.parent}e.walkUpBindingElementsAndPatterns=_e;function ne(er,Bt){e.isBindingElement(er)&&(er=_e(er));var Mr=Bt(er);return er.kind===257&&(er=er.parent),er&&er.kind===258&&(Mr|=Bt(er),er=er.parent),er&&er.kind===240&&(Mr|=Bt(er)),Mr}function oe(er){return ne(er,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=oe;function w(er){return ne(er,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=w;function re(er){return ne(er,function(Bt){return Bt.flags})}e.getCombinedNodeFlags=re,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function M(er,Bt,Mr){var ua=er.toLowerCase(),_o=/^([a-z]+)([_\-]([a-z]+))?$/.exec(ua);if(!_o){Mr&&Mr.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var xs=_o[1],yc=_o[3];e.contains(e.supportedLocaleDirectories,ua)&&!kc(xs,yc,Mr)&&kc(xs,void 0,Mr),e.setUILocale(er);function kc(oc,iu,_u){var wl=e.normalizePath(Bt.getExecutingFilePath()),Du=e.getDirectoryPath(wl),Jo=e.combinePaths(Du,oc);if(iu&&(Jo=Jo+"-"+iu),Jo=Bt.resolvePath(e.combinePaths(Jo,"diagnosticMessages.generated.json")),!Bt.fileExists(Jo))return!1;var $s="";try{$s=Bt.readFile(Jo)}catch{return _u&&_u.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,Jo)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse($s))}catch{return _u&&_u.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,Jo)),!1}return!0}}e.validateLocaleAndSetLanguage=M;function U(er,Bt){if(er)for(;er.original!==void 0;)er=er.original;return!Bt||Bt(er)?er:void 0}e.getOriginalNode=U;function H(er,Bt){for(;er;){var Mr=Bt(er);if(Mr==="quit")return;if(Mr)return er;er=er.parent}}e.findAncestor=H;function q(er){return(er.flags&8)===0}e.isParseTreeNode=q;function R(er,Bt){if(er===void 0||q(er))return er;for(er=er.original;er;){if(q(er))return!Bt||Bt(er)?er:void 0;er=er.original}}e.getParseTreeNode=R;function K(er){return er.length>=2&&er.charCodeAt(0)===95&&er.charCodeAt(1)===95?"_"+er:er}e.escapeLeadingUnderscores=K;function I(er){var Bt=er;return Bt.length>=3&&Bt.charCodeAt(0)===95&&Bt.charCodeAt(1)===95&&Bt.charCodeAt(2)===95?Bt.substr(1):Bt}e.unescapeLeadingUnderscores=I;function he(er){return I(er.escapedText)}e.idText=he;function le(er){return er.valueDeclaration&&un(er.valueDeclaration)?he(er.valueDeclaration.name):I(er.escapedName)}e.symbolName=le;function ee(er){var Bt=er.parent.parent;if(Bt){if(Ia(Bt))return J(Bt);switch(Bt.kind){case 240:if(Bt.declarationList&&Bt.declarationList.declarations[0])return J(Bt.declarationList.declarations[0]);break;case 241:var Mr=Bt.expression;switch(Mr.kind===223&&Mr.operatorToken.kind===63&&(Mr=Mr.left),Mr.kind){case 208:return Mr.name;case 209:var ua=Mr.argumentExpression;if(e.isIdentifier(ua))return ua}break;case 214:return J(Bt.expression);case 253:{if(Ia(Bt.statement)||Ko(Bt.statement))return J(Bt.statement);break}}}}function J(er){var Bt=Q(er);return Bt&&e.isIdentifier(Bt)?Bt:void 0}function de(er,Bt){return!!(N(er)&&e.isIdentifier(er.name)&&he(er.name)===he(Bt)||e.isVariableStatement(er)&&e.some(er.declarationList.declarations,function(Mr){return de(Mr,Bt)}))}e.nodeHasName=de;function De(er){return er.name||ee(er)}e.getNameOfJSDocTypedef=De;function N(er){return!!er.name}e.isNamedDeclaration=N;function b(er){switch(er.kind){case 79:return er;case 350:case 343:{var Bt=er.name;if(Bt.kind===163)return Bt.right;break}case 210:case 223:{var Mr=er;switch(e.getAssignmentDeclarationKind(Mr)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(Mr.left);case 7:case 8:case 9:return Mr.arguments[1];default:return}}case 348:return De(er);case 342:return ee(er);case 274:{var ua=er.expression;return e.isIdentifier(ua)?ua:void 0}case 209:var _o=er;if(e.isBindableStaticElementAccessExpression(_o))return _o.argumentExpression}return er.name}e.getNonAssignedNameOfDeclaration=b;function Q(er){if(er!==void 0)return b(er)||(e.isFunctionExpression(er)||e.isArrowFunction(er)||e.isClassExpression(er)?G(er):void 0)}e.getNameOfDeclaration=Q;function G(er){if(er.parent){if(e.isPropertyAssignment(er.parent)||e.isBindingElement(er.parent))return er.parent.name;if(e.isBinaryExpression(er.parent)&&er===er.parent.right){if(e.isIdentifier(er.parent.left))return er.parent.left;if(e.isAccessExpression(er.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(er.parent.left)}else if(e.isVariableDeclaration(er.parent)&&e.isIdentifier(er.parent.name))return er.parent.name}else return}e.getAssignedName=G;function ae(er){if(e.hasDecorators(er))return e.filter(er.modifiers,e.isDecorator)}e.getDecorators=ae;function Te(er){if(e.hasSyntacticModifier(er,126975))return e.filter(er.modifiers,An)}e.getModifiers=Te;function Ne(er,Bt){if(er.name)if(e.isIdentifier(er.name)){var Mr=er.name.escapedText;return Fr(er.parent,Bt).filter(function(xs){return e.isJSDocParameterTag(xs)&&e.isIdentifier(xs.name)&&xs.name.escapedText===Mr})}else{var ua=er.parent.parameters.indexOf(er);e.Debug.assert(ua>-1,"Parameters should always be in their parents' parameter list");var _o=Fr(er.parent,Bt).filter(e.isJSDocParameterTag);if(ua<_o.length)return[_o[ua]]}return e.emptyArray}function we(er){return Ne(er,!1)}e.getJSDocParameterTags=we;function nr(er){return Ne(er,!0)}e.getJSDocParameterTagsNoCache=nr;function tr(er,Bt){var Mr=er.name.escapedText;return Fr(er.parent,Bt).filter(function(ua){return e.isJSDocTemplateTag(ua)&&ua.typeParameters.some(function(_o){return _o.name.escapedText===Mr})})}function me(er){return tr(er,!1)}e.getJSDocTypeParameterTags=me;function He(er){return tr(er,!0)}e.getJSDocTypeParameterTagsNoCache=He;function rr(er){return!!yt(er,e.isJSDocParameterTag)}e.hasJSDocParameterTags=rr;function je(er){return yt(er,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=je;function Ce(er){return Fe(er,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Ce;function Ae(er){return yt(er,e.isJSDocClassTag)}e.getJSDocClassTag=Ae;function qe(er){return yt(er,e.isJSDocPublicTag)}e.getJSDocPublicTag=qe;function xe(er){return yt(er,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=xe;function L(er){return yt(er,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=L;function ue(er){return yt(er,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=ue;function Ue(er){return yt(er,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=Ue;function Je(er){return yt(er,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=Je;function lr(er){return yt(er,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=lr;function mr(er){return yt(er,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=mr;function Hr(er){return yt(er,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=Hr;function wr(er){return yt(er,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=wr;function Oe(er){return yt(er,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=Oe;function Ze(er){return yt(er,e.isJSDocEnumTag)}e.getJSDocEnumTag=Ze;function tt(er){return yt(er,e.isJSDocThisTag)}e.getJSDocThisTag=tt;function ut(er){return yt(er,e.isJSDocReturnTag)}e.getJSDocReturnTag=ut;function or(er){return yt(er,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=or;function qr(er){var Bt=yt(er,e.isJSDocTypeTag);if(Bt&&Bt.typeExpression&&Bt.typeExpression.type)return Bt}e.getJSDocTypeTag=qr;function Rr(er){var Bt=yt(er,e.isJSDocTypeTag);return!Bt&&e.isParameter(er)&&(Bt=e.find(we(er),function(Mr){return!!Mr.typeExpression})),Bt&&Bt.typeExpression&&Bt.typeExpression.type}e.getJSDocType=Rr;function zr(er){var Bt=ut(er);if(Bt&&Bt.typeExpression)return Bt.typeExpression.type;var Mr=qr(er);if(Mr&&Mr.typeExpression){var ua=Mr.typeExpression.type;if(e.isTypeLiteralNode(ua)){var _o=e.find(ua.members,e.isCallSignatureDeclaration);return _o&&_o.type}if(e.isFunctionTypeNode(ua)||e.isJSDocFunctionType(ua))return ua.type}}e.getJSDocReturnType=zr;function Fr(er,Bt){var Mr=er.jsDocCache;if(Mr===void 0||Bt){var ua=e.getJSDocCommentsAndTags(er,Bt);e.Debug.assert(ua.length<2||ua[0]!==ua[1]),Mr=e.flatMap(ua,function(_o){return e.isJSDoc(_o)?_o.tags:_o}),Bt||(er.jsDocCache=Mr)}return Mr}function _t(er){return Fr(er,!1)}e.getJSDocTags=_t;function Ct(er){return Fr(er,!0)}e.getJSDocTagsNoCache=Ct;function yt(er,Bt,Mr){return e.find(Fr(er,Mr),Bt)}function Fe(er,Bt){return _t(er).filter(Bt)}e.getAllJSDocTags=Fe;function vr(er,Bt){return _t(er).filter(function(Mr){return Mr.kind===Bt})}e.getAllJSDocTagsOfKind=vr;function Le(er){return typeof er=="string"?er:er==null?void 0:er.map(function(Bt){return Bt.kind===324?Bt.text:cr(Bt)}).join("")}e.getTextOfJSDocComment=Le;function cr(er){var Bt=er.kind===327?"link":er.kind===328?"linkcode":"linkplain",Mr=er.name?e.entityNameToString(er.name):"",ua=er.name&&er.text.startsWith("://")?"":" ";return"{@".concat(Bt," ").concat(Mr).concat(ua).concat(er.text,"}")}function $r(er){if(e.isJSDocSignature(er))return e.emptyArray;if(e.isJSDocTypeAlias(er))return e.Debug.assert(er.parent.kind===323),e.flatMap(er.parent.tags,function(ua){return e.isJSDocTemplateTag(ua)?ua.typeParameters:void 0});if(er.typeParameters||e.canHaveIllegalTypeParameters(er)&&er.typeParameters)return er.typeParameters;if(e.isInJSFile(er)){var Bt=e.getJSDocTypeParameterDeclarations(er);if(Bt.length)return Bt;var Mr=Rr(er);if(Mr&&e.isFunctionTypeNode(Mr)&&Mr.typeParameters)return Mr.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=$r;function Re(er){return er.constraint?er.constraint:e.isJSDocTemplateTag(er.parent)&&er===er.parent.typeParameters[0]?er.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=Re;function xr(er){return er.kind===79||er.kind===80}e.isMemberName=xr;function Br(er){return er.kind===175||er.kind===174}e.isGetOrSetAccessorDeclaration=Br;function Qr(er){return e.isPropertyAccessExpression(er)&&!!(er.flags&32)}e.isPropertyAccessChain=Qr;function ct(er){return e.isElementAccessExpression(er)&&!!(er.flags&32)}e.isElementAccessChain=ct;function ft(er){return e.isCallExpression(er)&&!!(er.flags&32)}e.isCallChain=ft;function Dt(er){var Bt=er.kind;return!!(er.flags&32)&&(Bt===208||Bt===209||Bt===210||Bt===232)}e.isOptionalChain=Dt;function Me(er){return Dt(er)&&!e.isNonNullExpression(er)&&!!er.questionDotToken}e.isOptionalChainRoot=Me;function Ke(er){return Me(er.parent)&&er.parent.expression===er}e.isExpressionOfOptionalChainRoot=Ke;function Vr(er){return!Dt(er.parent)||Me(er.parent)||er!==er.parent.expression}e.isOutermostOptionalChain=Vr;function Yr(er){return er.kind===223&&er.operatorToken.kind===60}e.isNullishCoalesce=Yr;function Nt(er){return e.isTypeReferenceNode(er)&&e.isIdentifier(er.typeName)&&er.typeName.escapedText==="const"&&!er.typeArguments}e.isConstTypeReference=Nt;function Wt(er){return e.skipOuterExpressions(er,8)}e.skipPartiallyEmittedExpressions=Wt;function sn(er){return e.isNonNullExpression(er)&&!!(er.flags&32)}e.isNonNullChain=sn;function en(er){return er.kind===249||er.kind===248}e.isBreakOrContinueStatement=en;function Ir(er){return er.kind===277||er.kind===276}e.isNamedExportBindings=Ir;function Jr(er){switch(er.kind){case 305:case 306:return!0;default:return!1}}e.isUnparsedTextLike=Jr;function ye(er){return Jr(er)||er.kind===303||er.kind===307}e.isUnparsedNode=ye;function Ie(er){return er.kind===350||er.kind===343}e.isJSDocPropertyLikeTag=Ie;function We(er){return dr(er.kind)}e.isNode=We;function dr(er){return er>=163}e.isNodeKind=dr;function ar(er){return er>=0&&er<=162}e.isTokenKind=ar;function Sr(er){return ar(er.kind)}e.isToken=Sr;function Or(er){return e.hasProperty(er,"pos")&&e.hasProperty(er,"end")}e.isNodeArray=Or;function Ge(er){return 8<=er&&er<=14}e.isLiteralKind=Ge;function ur(er){return Ge(er.kind)}e.isLiteralExpression=ur;function Lr(er){switch(er.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}e.isLiteralExpressionOfObject=Lr;function Ar(er){return 14<=er&&er<=17}e.isTemplateLiteralKind=Ar;function rt(er){return Ar(er.kind)}e.isTemplateLiteralToken=rt;function Et(er){var Bt=er.kind;return Bt===16||Bt===17}e.isTemplateMiddleOrTemplateTail=Et;function St(er){return e.isImportSpecifier(er)||e.isExportSpecifier(er)}e.isImportOrExportSpecifier=St;function Pt(er){switch(er.kind){case 273:case 278:return er.isTypeOnly||er.parent.parent.isTypeOnly;case 271:return er.parent.isTypeOnly;case 270:case 268:return er.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=Pt;function pt(er){return e.isStringLiteral(er)||e.isIdentifier(er)}e.isAssertionKey=pt;function Ft(er){return er.kind===10||Ar(er.kind)}e.isStringTextContainingNode=Ft;function ht(er){return e.isIdentifier(er)&&(er.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=ht;function Yt(er){return e.isPrivateIdentifier(er)&&(er.autoGenerateFlags&7)>0}e.isGeneratedPrivateIdentifier=Yt;function un(er){return(e.isPropertyDeclaration(er)||xn(er))&&e.isPrivateIdentifier(er.name)}e.isPrivateIdentifierClassElementDeclaration=un;function wn(er){return e.isPropertyAccessExpression(er)&&e.isPrivateIdentifier(er.name)}e.isPrivateIdentifierPropertyAccessExpression=wn;function Bn(er){switch(er){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}e.isModifierKind=Bn;function yn(er){return!!(e.modifierToFlag(er)&16476)}e.isParameterPropertyModifier=yn;function Tn(er){return yn(er)||er===124||er===161||er===127}e.isClassMemberModifier=Tn;function An(er){return Bn(er.kind)}e.isModifier=An;function ii(er){var Bt=er.kind;return Bt===163||Bt===79}e.isEntityName=ii;function Xe(er){var Bt=er.kind;return Bt===79||Bt===80||Bt===10||Bt===8||Bt===164}e.isPropertyName=Xe;function hr(er){var Bt=er.kind;return Bt===79||Bt===203||Bt===204}e.isBindingName=hr;function at(er){return!!er&&gt(er.kind)}e.isFunctionLike=at;function Qe(er){return!!er&&(gt(er.kind)||e.isClassStaticBlockDeclaration(er))}e.isFunctionLikeOrClassStaticBlockDeclaration=Qe;function Qt(er){return er&&Tt(er.kind)}e.isFunctionLikeDeclaration=Qt;function Zt(er){return er.kind===110||er.kind===95}e.isBooleanLiteral=Zt;function Tt(er){switch(er){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function gt(er){switch(er){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return Tt(er)}}e.isFunctionLikeKind=gt;function kt(er){return e.isSourceFile(er)||e.isModuleBlock(er)||e.isBlock(er)&&at(er.parent)}e.isFunctionOrModuleBlock=kt;function Lt(er){var Bt=er.kind;return Bt===173||Bt===169||Bt===171||Bt===174||Bt===175||Bt===178||Bt===172||Bt===237}e.isClassElement=Lt;function $e(er){return er&&(er.kind===260||er.kind===228)}e.isClassLike=$e;function et(er){return er&&(er.kind===174||er.kind===175)}e.isAccessor=et;function It(er){return e.isPropertyDeclaration(er)&&e.hasAccessorModifier(er)}e.isAutoAccessorPropertyDeclaration=It;function xn(er){switch(er.kind){case 171:case 174:case 175:return!0;default:return!1}}e.isMethodOrAccessor=xn;function pi(er){switch(er.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}e.isNamedClassElement=pi;function ai(er){return An(er)||e.isDecorator(er)}e.isModifierLike=ai;function Wi(er){var Bt=er.kind;return Bt===177||Bt===176||Bt===168||Bt===170||Bt===178||Bt===174||Bt===175}e.isTypeElement=Wi;function ji(er){return Wi(er)||Lt(er)}e.isClassOrTypeElement=ji;function fn(er){var Bt=er.kind;return Bt===299||Bt===300||Bt===301||Bt===171||Bt===174||Bt===175}e.isObjectLiteralElementLike=fn;function Ri(er){return e.isTypeNodeKind(er.kind)}e.isTypeNode=Ri;function ma(er){switch(er.kind){case 181:case 182:return!0}return!1}e.isFunctionOrConstructorTypeNode=ma;function ra(er){if(er){var Bt=er.kind;return Bt===204||Bt===203}return!1}e.isBindingPattern=ra;function vn(er){var Bt=er.kind;return Bt===206||Bt===207}e.isAssignmentPattern=vn;function zo(er){var Bt=er.kind;return Bt===205||Bt===229}e.isArrayBindingElement=zo;function _a(er){switch(er.kind){case 257:case 166:case 205:return!0}return!1}e.isDeclarationBindingElement=_a;function Ha(er){return Do(er)||rs(er)}e.isBindingOrAssignmentPattern=Ha;function Do(er){switch(er.kind){case 203:case 207:return!0}return!1}e.isObjectBindingOrAssignmentPattern=Do;function Ka(er){switch(er.kind){case 205:case 299:case 300:case 301:return!0}return!1}e.isObjectBindingOrAssignmentElement=Ka;function rs(er){switch(er.kind){case 204:case 206:return!0}return!1}e.isArrayBindingOrAssignmentPattern=rs;function ts(er){var Bt=er.kind;return Bt===208||Bt===163||Bt===202}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=ts;function En(er){var Bt=er.kind;return Bt===208||Bt===163}e.isPropertyAccessOrQualifiedName=En;function ca(er){switch(er.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}e.isCallLikeExpression=ca;function bo(er){return er.kind===210||er.kind===211}e.isCallOrNewExpression=bo;function Oo(er){var Bt=er.kind;return Bt===225||Bt===14}e.isTemplateLiteral=Oo;function Ws(er){return Co(Wt(er).kind)}e.isLeftHandSideExpression=Ws;function Co(er){switch(er){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:return!0;default:return!1}}function qs(er){return gs(Wt(er).kind)}e.isUnaryExpression=qs;function gs(er){switch(er){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return Co(er)}}function Ds(er){switch(er.kind){case 222:return!0;case 221:return er.operator===45||er.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=Ds;function Ko(er){return kr(Wt(er).kind)}e.isExpression=Ko;function kr(er){switch(er){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 354:case 353:case 235:return!0;default:return gs(er)}}function jr(er){var Bt=er.kind;return Bt===213||Bt===231}e.isAssertionExpression=jr;function Nn(er){return e.isNotEmittedStatement(er)||e.isPartiallyEmittedExpression(er)}e.isNotEmittedOrPartiallyEmittedNode=Nn;function xi(er,Bt){switch(er.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return Bt&&xi(er.statement,Bt)}return!1}e.isIterationStatement=xi;function ka(er){return e.isExportAssignment(er)||e.isExportDeclaration(er)}e.isScopeMarker=ka;function ro(er){return e.some(er,ka)}e.hasScopeMarker=ro;function Ye(er){return!e.isAnyImportOrReExport(er)&&!e.isExportAssignment(er)&&!e.hasSyntacticModifier(er,1)&&!e.isAmbientModule(er)}e.needsScopeMarker=Ye;function lt(er){return e.isAnyImportOrReExport(er)||e.isExportAssignment(er)||e.hasSyntacticModifier(er,1)}e.isExternalModuleIndicator=lt;function Ut(er){return er.kind===246||er.kind===247}e.isForInOrOfStatement=Ut;function Ve(er){return e.isBlock(er)||Ko(er)}e.isConciseBody=Ve;function yr(er){return e.isBlock(er)}e.isFunctionBody=yr;function Er(er){return e.isVariableDeclarationList(er)||Ko(er)}e.isForInitializer=Er;function Wr(er){var Bt=er.kind;return Bt===265||Bt===264||Bt===79}e.isModuleBody=Wr;function Ot(er){var Bt=er.kind;return Bt===265||Bt===264}e.isNamespaceBody=Ot;function ln(er){var Bt=er.kind;return Bt===79||Bt===264}e.isJSDocNamespaceBody=ln;function kn(er){var Bt=er.kind;return Bt===272||Bt===271}e.isNamedImportBindings=kn;function Cn(er){return er.kind===264||er.kind===263}e.isModuleOrEnumDeclaration=Cn;function _i(er){return er===216||er===205||er===260||er===228||er===172||er===173||er===263||er===302||er===278||er===259||er===215||er===174||er===270||er===268||er===273||er===261||er===288||er===171||er===170||er===264||er===267||er===271||er===277||er===166||er===299||er===169||er===168||er===175||er===300||er===262||er===165||er===257||er===348||er===341||er===350}function qi(er){return er===259||er===279||er===260||er===261||er===262||er===263||er===264||er===269||er===268||er===275||er===274||er===267}function va(er){return er===249||er===248||er===256||er===243||er===241||er===239||er===246||er===247||er===245||er===242||er===253||er===250||er===252||er===254||er===255||er===240||er===244||er===251||er===352||er===356||er===355}function Ia(er){return er.kind===165?er.parent&&er.parent.kind!==347||e.isInJSFile(er):_i(er.kind)}e.isDeclaration=Ia;function $a(er){return qi(er.kind)}e.isDeclarationStatement=$a;function ws(er){return va(er.kind)}e.isStatementButNotDeclaration=ws;function rc(er){var Bt=er.kind;return va(Bt)||qi(Bt)||Wo(er)}e.isStatement=rc;function Wo(er){return er.kind!==238||er.parent!==void 0&&(er.parent.kind===255||er.parent.kind===295)?!1:!e.isFunctionBlock(er)}function ds(er){var Bt=er.kind;return va(Bt)||qi(Bt)||Bt===238}e.isStatementOrBlock=ds;function yu(er){var Bt=er.kind;return Bt===280||Bt===163||Bt===79}e.isModuleReference=yu;function bu(er){var Bt=er.kind;return Bt===108||Bt===79||Bt===208}e.isJsxTagNameExpression=bu;function tu(er){var Bt=er.kind;return Bt===281||Bt===291||Bt===282||Bt===11||Bt===285}e.isJsxChild=tu;function $c(er){var Bt=er.kind;return Bt===288||Bt===290}e.isJsxAttributeLike=$c;function Su(er){var Bt=er.kind;return Bt===10||Bt===291}e.isStringLiteralOrJsxExpression=Su;function Lc(er){var Bt=er.kind;return Bt===283||Bt===282}e.isJsxOpeningLikeElement=Lc;function Hc(er){var Bt=er.kind;return Bt===292||Bt===293}e.isCaseOrDefaultClause=Hc;function tc(er){return er.kind>=312&&er.kind<=350}e.isJSDocNode=tc;function fc(er){return er.kind===323||er.kind===322||er.kind===324||ta(er)||nu(er)||e.isJSDocTypeLiteral(er)||e.isJSDocSignature(er)}e.isJSDocCommentContainingNode=fc;function nu(er){return er.kind>=330&&er.kind<=350}e.isJSDocTag=nu;function nc(er){return er.kind===175}e.isSetAccessor=nc;function Xt(er){return er.kind===174}e.isGetAccessor=Xt;function be(er){var Bt=er.jsDoc;return!!Bt&&Bt.length>0}e.hasJSDocNodes=be;function Ur(er){return!!er.type}e.hasType=Ur;function At(er){return!!er.initializer}e.hasInitializer=At;function an(er){switch(er.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}e.hasOnlyExpressionInitializer=an;function Kn(er){return er.kind===288||er.kind===290||fn(er)}e.isObjectLiteralElement=Kn;function Yn(er){return er.kind===180||er.kind===230}e.isTypeReferenceType=Yn;var Si=1073741823;function vi(er){for(var Bt=Si,Mr=0,ua=er;Mr<ua.length;Mr++){var _o=ua[Mr];if(_o.length){for(var xs=0;xs<_o.length&&xs<Bt&&e.isWhiteSpaceLike(_o.charCodeAt(xs));xs++);if(xs<Bt&&(Bt=xs),Bt===0)return 0}}return Bt===Si?void 0:Bt}e.guessIndentation=vi;function Da(er){return er.kind===10||er.kind===14}e.isStringLiteralLike=Da;function ta(er){return er.kind===327||er.kind===328||er.kind===329}e.isJSDocLinkLike=ta;function fo(er){var Bt=e.lastOrUndefined(er.parameters);return!!Bt&&oo(Bt)}e.hasRestParameter=fo;function oo(er){var Bt=e.isJSDocParameterTag(er)?er.typeExpression&&er.typeExpression.type:er.type;return er.dotDotDotToken!==void 0||!!Bt&&Bt.kind===321}e.isRestParameter=oo})(h||(h={}));var h;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function c(_,ve){var Tr=_.declarations;if(Tr)for(var Gr=0,Kt=Tr;Gr<Kt.length;Gr++){var ti=Kt[Gr];if(ti.kind===ve)return ti}}e.getDeclarationOfKind=c;function P(_,ve){return e.filter(_.declarations||e.emptyArray,function(Tr){return Tr.kind===ve})}e.getDeclarationsOfKind=P;function T(_){var ve=new e.Map;if(_)for(var Tr=0,Gr=_;Tr<Gr.length;Tr++){var Kt=Gr[Tr];ve.set(Kt.escapedName,Kt)}return ve}e.createSymbolTable=T;function s(_){return(_.flags&33554432)!==0}e.isTransientSymbol=s;var D=O();function O(){var _="",ve=function(Tr){return _+=Tr};return{getText:function(){return _},write:ve,rawWrite:ve,writeKeyword:ve,writeOperator:ve,writePunctuation:ve,writeSpace:ve,writeStringLiteral:ve,writeLiteral:ve,writeParameter:ve,writeProperty:ve,writeSymbol:function(Tr,Gr){return ve(Tr)},writeTrailingSemicolon:ve,writeComment:ve,getTextPos:function(){return _.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!_.length&&e.isWhiteSpaceLike(_.charCodeAt(_.length-1))},writeLine:function(){return _+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return _=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function W(_,ve){return _.configFilePath!==ve.configFilePath||E(_,ve)}e.changesAffectModuleResolution=W;function E(_,ve){return S(_,ve,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=E;function v(_,ve){return S(_,ve,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=v;function S(_,ve,Tr){return _!==ve&&Tr.some(function(Gr){return!X1(Nv(_,Gr),Nv(ve,Gr))})}e.optionsHaveChanges=S;function te(_,ve){for(;;){var Tr=ve(_);if(Tr==="quit")return;if(Tr!==void 0)return Tr;if(e.isSourceFile(_))return;_=_.parent}}e.forEachAncestor=te;function Y(_,ve){for(var Tr=_.entries(),Gr=Tr.next();!Gr.done;Gr=Tr.next()){var Kt=Gr.value,ti=Kt[0],fi=Kt[1],Vi=ve(fi,ti);if(Vi)return Vi}}e.forEachEntry=Y;function Z(_,ve){for(var Tr=_.keys(),Gr=Tr.next();!Gr.done;Gr=Tr.next()){var Kt=ve(Gr.value);if(Kt)return Kt}}e.forEachKey=Z;function ce(_,ve){_.forEach(function(Tr,Gr){ve.set(Gr,Tr)})}e.copyEntries=ce;function k(_){var ve=D.getText();try{return _(D),D.getText()}finally{D.clear(),D.writeKeyword(ve)}}e.usingSingleLineStringWriter=k;function X(_){return _.end-_.pos}e.getFullWidth=X;function A(_,ve,Tr){return _&&_.resolvedModules&&_.resolvedModules.get(ve,Tr)}e.getResolvedModule=A;function y(_,ve,Tr,Gr){_.resolvedModules||(_.resolvedModules=e.createModeAwareCache()),_.resolvedModules.set(ve,Gr,Tr)}e.setResolvedModule=y;function C(_,ve,Tr){_.resolvedTypeReferenceDirectiveNames||(_.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),_.resolvedTypeReferenceDirectiveNames.set(ve,void 0,Tr)}e.setResolvedTypeReferenceDirective=C;function B(_,ve){return _.path===ve.path&&!_.prepend==!ve.prepend&&!_.circular==!ve.circular}e.projectReferenceIsEqualTo=B;function F(_,ve){return _.isExternalLibraryImport===ve.isExternalLibraryImport&&_.extension===ve.extension&&_.resolvedFileName===ve.resolvedFileName&&_.originalPath===ve.originalPath&&z(_.packageId,ve.packageId)}e.moduleResolutionIsEqualTo=F;function z(_,ve){return _===ve||!!_&&!!ve&&_.name===ve.name&&_.subModuleName===ve.subModuleName&&_.version===ve.version}function ge(_){var ve=_.name,Tr=_.subModuleName;return Tr?"".concat(ve,"/").concat(Tr):ve}e.packageIdToPackageName=ge;function Pe(_){return"".concat(ge(_),"@").concat(_.version)}e.packageIdToString=Pe;function fe(_,ve){return _.resolvedFileName===ve.resolvedFileName&&_.primary===ve.primary&&_.originalPath===ve.originalPath}e.typeDirectiveIsEqualTo=fe;function _e(_,ve,Tr,Gr,Kt){e.Debug.assert(_.length===ve.length);for(var ti=0;ti<_.length;ti++){var fi=ve[ti],Vi=_[ti],ja=e.isString(Vi)?Vi:Vi.fileName.toLowerCase(),Zi=e.isString(Vi)?Gr&&e.getModeForResolutionAtIndex(Gr,ti):e.getModeForFileReference(Vi,Gr==null?void 0:Gr.impliedNodeFormat),Zo=Tr&&Tr.get(ja,Zi),Is=Zo?!fi||!Kt(Zo,fi):fi;if(Is)return!0}return!1}e.hasChangesInResolutions=_e;function ne(_){return oe(_),(_.flags&524288)!==0}e.containsParseError=ne;function oe(_){if(!(_.flags&1048576)){var ve=(_.flags&131072)!==0||e.forEachChild(_,ne);ve&&(_.flags|=524288),_.flags|=1048576}}function w(_){for(;_&&_.kind!==308;)_=_.parent;return _}e.getSourceFileOfNode=w;function re(_){return w(_.valueDeclaration||Rr(_))}e.getSourceFileOfModule=re;function M(_,ve){return!!_&&(_.scriptKind===1||_.scriptKind===2)&&!_.checkJsDirective&&ve===void 0}e.isPlainJsFile=M;function U(_){switch(_.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}e.isStatementWithLocals=U;function H(_,ve){return e.Debug.assert(_>=0),e.getLineStarts(ve)[_]}e.getStartPositionOfLine=H;function q(_){var ve=w(_),Tr=e.getLineAndCharacterOfPosition(ve,_.pos);return"".concat(ve.fileName,"(").concat(Tr.line+1,",").concat(Tr.character+1,")")}e.nodePosToString=q;function R(_,ve){e.Debug.assert(_>=0);var Tr=e.getLineStarts(ve),Gr=_,Kt=ve.text;if(Gr+1===Tr.length)return Kt.length-1;var ti=Tr[Gr],fi=Tr[Gr+1]-1;for(e.Debug.assert(e.isLineBreak(Kt.charCodeAt(fi)));ti<=fi&&e.isLineBreak(Kt.charCodeAt(fi));)fi--;return fi}e.getEndLinePosition=R;function K(_,ve,Tr){return!(Tr&&Tr(ve))&&!_.identifiers.has(ve)}e.isFileLevelUniqueName=K;function I(_){return _===void 0?!0:_.pos===_.end&&_.pos>=0&&_.kind!==1}e.nodeIsMissing=I;function he(_){return!I(_)}e.nodeIsPresent=he;function le(_,ve,Tr){if(ve===void 0||ve.length===0)return _;for(var Gr=0;Gr<_.length&&Tr(_[Gr]);++Gr);return _.splice.apply(_,t([Gr,0],ve,!1)),_}function ee(_,ve,Tr){if(ve===void 0)return _;for(var Gr=0;Gr<_.length&&Tr(_[Gr]);++Gr);return _.splice(Gr,0,ve),_}function J(_){return pt(_)||!!(Ce(_)&1048576)}function de(_,ve){return le(_,ve,pt)}e.insertStatementsAfterStandardPrologue=de;function De(_,ve){return le(_,ve,J)}e.insertStatementsAfterCustomPrologue=De;function N(_,ve){return ee(_,ve,pt)}e.insertStatementAfterStandardPrologue=N;function b(_,ve){return ee(_,ve,J)}e.insertStatementAfterCustomPrologue=b;function Q(_,ve,Tr){if(_.charCodeAt(ve+1)===47&&ve+2<Tr&&_.charCodeAt(ve+2)===47){var Gr=_.substring(ve,Tr);return!!(e.fullTripleSlashReferencePathRegEx.test(Gr)||e.fullTripleSlashAMDReferencePathRegEx.test(Gr)||yn.test(Gr)||Tn.test(Gr))}return!1}e.isRecognizedTripleSlashComment=Q;function G(_,ve){return _.charCodeAt(ve+1)===42&&_.charCodeAt(ve+2)===33}e.isPinnedComment=G;function ae(_,ve){var Tr=new e.Map(ve.map(function(fi){return["".concat(e.getLineAndCharacterOfPosition(_,fi.range.end).line),fi]})),Gr=new e.Map;return{getUnusedExpectations:Kt,markUsed:ti};function Kt(){return e.arrayFrom(Tr.entries()).filter(function(fi){var Vi=fi[0],ja=fi[1];return ja.type===0&&!Gr.get(Vi)}).map(function(fi){fi[0];var Vi=fi[1];return Vi})}function ti(fi){return Tr.has("".concat(fi))?(Gr.set("".concat(fi),!0),!0):!1}}e.createCommentDirectivesMap=ae;function Te(_,ve,Tr){return I(_)?_.pos:e.isJSDocNode(_)||_.kind===11?e.skipTrivia((ve||w(_)).text,_.pos,!1,!0):Tr&&e.hasJSDocNodes(_)?Te(_.jsDoc[0],ve):_.kind===351&&_._children.length>0?Te(_._children[0],ve,Tr):e.skipTrivia((ve||w(_)).text,_.pos,!1,!1,va(_))}e.getTokenPosOfNode=Te;function Ne(_,ve){var Tr=!I(_)&&e.canHaveModifiers(_)?e.findLast(_.modifiers,e.isDecorator):void 0;return Tr?e.skipTrivia((ve||w(_)).text,Tr.end):Te(_,ve)}e.getNonDecoratorTokenPosOfNode=Ne;function we(_,ve,Tr){return Tr===void 0&&(Tr=!1),me(_.text,ve,Tr)}e.getSourceTextOfNodeFromSourceFile=we;function nr(_){return!!e.findAncestor(_,e.isJSDocTypeExpression)}function tr(_){return!!(e.isExportDeclaration(_)&&_.exportClause&&e.isNamespaceExport(_.exportClause)&&_.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=tr;function me(_,ve,Tr){if(Tr===void 0&&(Tr=!1),I(ve))return"";var Gr=_.substring(Tr?ve.pos:e.skipTrivia(_,ve.pos),ve.end);return nr(ve)&&(Gr=Gr.split(/\r\n|\n|\r/).map(function(Kt){return e.trimStringStart(Kt.replace(/^\s*\*/,""))}).join(`
`)),Gr}e.getTextOfNodeFromSourceText=me;function He(_,ve){return ve===void 0&&(ve=!1),we(w(_),_,ve)}e.getTextOfNode=He;function rr(_){return _.pos}function je(_,ve){return e.binarySearch(_,ve,rr,e.compareValues)}e.indexOfNode=je;function Ce(_){var ve=_.emitNode;return ve&&ve.flags||0}e.getEmitFlags=Ce;function Ae(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray,NumberFormat:["formatToParts"]},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}}e.getScriptTargetFeatures=Ae,function(_){_[_.None=0]="None",_[_.NeverAsciiEscape=1]="NeverAsciiEscape",_[_.JsxAttributeEscape=2]="JsxAttributeEscape",_[_.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",_[_.AllowNumericSeparator=8]="AllowNumericSeparator"}(e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function qe(_,ve,Tr){var Gr;if(ve&&xe(_,Tr))return we(ve,_);switch(_.kind){case 10:{var Kt=Tr&2?Xp:Tr&1||Ce(_)&16777216?Kp:Qp;return _.singleQuote?"'"+Kt(_.text,39)+"'":'"'+Kt(_.text,34)+'"'}case 14:case 15:case 16:case 17:{var Kt=Tr&1||Ce(_)&16777216?Kp:Qp,ti=(Gr=_.rawText)!==null&&Gr!==void 0?Gr:jm(Kt(_.text,96));switch(_.kind){case 14:return"`"+ti+"`";case 15:return"`"+ti+"${";case 16:return"}"+ti+"${";case 17:return"}"+ti+"`"}break}case 8:case 9:return _.text;case 13:return Tr&4&&_.isUnterminated?_.text+(_.text.charCodeAt(_.text.length-1)===92?" /":"/"):_.text}return e.Debug.fail("Literal kind '".concat(_.kind,"' not accounted for."))}e.getLiteralText=qe;function xe(_,ve){return ms(_)||!_.parent||ve&4&&_.isUnterminated?!1:e.isNumericLiteral(_)&&_.numericLiteralFlags&512?!!(ve&8):!e.isBigIntLiteral(_)}function L(_){return e.isString(_)?'"'+Qp(_)+'"':""+_}e.getTextOfConstantValue=L;function ue(_){return e.getBaseFileName(_).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=ue;function Ue(_){return(e.getCombinedNodeFlags(_)&3)!==0||Je(_)}e.isBlockOrCatchScoped=Ue;function Je(_){var ve=z_(_);return ve.kind===257&&ve.parent.kind===295}e.isCatchClauseVariableDeclarationOrBindingElement=Je;function lr(_){return e.isModuleDeclaration(_)&&(_.name.kind===10||ut(_))}e.isAmbientModule=lr;function mr(_){return e.isModuleDeclaration(_)&&_.name.kind===10}e.isModuleWithStringLiteralName=mr;function Hr(_){return e.isModuleDeclaration(_)&&e.isStringLiteral(_.name)}e.isNonGlobalAmbientModule=Hr;function wr(_){return e.isModuleDeclaration(_)||e.isIdentifier(_)}e.isEffectiveModuleDeclaration=wr;function Oe(_){return Ze(_.valueDeclaration)}e.isShorthandAmbientModuleSymbol=Oe;function Ze(_){return!!_&&_.kind===264&&!_.body}function tt(_){return _.kind===308||_.kind===264||e.isFunctionLikeOrClassStaticBlockDeclaration(_)}e.isBlockScopedContainerTopLevel=tt;function ut(_){return!!(_.flags&1024)}e.isGlobalScopeAugmentation=ut;function or(_){return lr(_)&&qr(_)}e.isExternalModuleAugmentation=or;function qr(_){switch(_.parent.kind){case 308:return e.isExternalModule(_.parent);case 265:return lr(_.parent.parent)&&e.isSourceFile(_.parent.parent.parent)&&!e.isExternalModule(_.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=qr;function Rr(_){var ve;return(ve=_.declarations)===null||ve===void 0?void 0:ve.find(function(Tr){return!or(Tr)&&!(e.isModuleDeclaration(Tr)&&ut(Tr))})}e.getNonAugmentationDeclaration=Rr;function zr(_){return _===e.ModuleKind.CommonJS||_===e.ModuleKind.Node16||_===e.ModuleKind.NodeNext}function Fr(_,ve){return e.isExternalModule(_)||ve.isolatedModules||zr(od(ve))&&!!_.commonJsModuleIndicator}e.isEffectiveExternalModule=Fr;function _t(_,ve){switch(_.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return _.isDeclarationFile?!1:Ou(ve,"alwaysStrict")||e.startsWithUseStrict(_.statements)?!0:e.isExternalModule(_)||ve.isolatedModules?od(ve)>=e.ModuleKind.ES2015?!0:!ve.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=_t;function Ct(_){return!!(_.flags&16777216)||Pc(_,2)}e.isAmbientPropertyDeclaration=Ct;function yt(_,ve){switch(_.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!e.isFunctionLikeOrClassStaticBlockDeclaration(ve)}return!1}e.isBlockScope=yt;function Fe(_){switch(_.kind){case 341:case 348:case 326:return!0;default:return e.assertType(_),vr(_)}}e.isDeclarationWithTypeParameters=Fe;function vr(_){switch(_.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 347:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return e.assertType(_),!1}}e.isDeclarationWithTypeParameterChildren=vr;function Le(_){switch(_.kind){case 269:case 268:return!0;default:return!1}}e.isAnyImportSyntax=Le;function cr(_){return Le(_)||rc(_)}e.isAnyImportOrBareOrAccessedRequire=cr;function $r(_){switch(_.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=$r;function Re(_){return xr(_)||e.isModuleDeclaration(_)||e.isImportTypeNode(_)||Et(_)}e.hasPossibleExternalModuleReference=Re;function xr(_){return Le(_)||e.isExportDeclaration(_)}e.isAnyImportOrReExport=xr;function Br(_){return e.findAncestor(_.parent,function(ve){return yt(ve,ve.parent)})}e.getEnclosingBlockScopeContainer=Br;function Qr(_,ve){for(var Tr=Br(_);Tr;)ve(Tr),Tr=Br(Tr)}e.forEachEnclosingBlockScopeContainer=Qr;function ct(_){return!_||X(_)===0?"(Missing)":He(_)}e.declarationNameToString=ct;function ft(_){return _.declaration?ct(_.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=ft;function Dt(_){return _.kind===164&&!dp(_.expression)}e.isComputedNonLiteralName=Dt;function Me(_){switch(_.kind){case 79:case 80:return _.autoGenerateFlags?void 0:_.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(_.text);case 164:return dp(_.expression)?e.escapeLeadingUnderscores(_.expression.text):void 0;default:return e.Debug.assertNever(_)}}e.tryGetTextOfPropertyName=Me;function Ke(_){return e.Debug.checkDefined(Me(_))}e.getTextOfPropertyName=Ke;function Vr(_){switch(_.kind){case 108:return"this";case 80:case 79:return X(_)===0?e.idText(_):He(_);case 163:return Vr(_.left)+"."+Vr(_.right);case 208:return e.isIdentifier(_.name)||e.isPrivateIdentifier(_.name)?Vr(_.expression)+"."+Vr(_.name):e.Debug.assertNever(_.name);case 314:return Vr(_.left)+Vr(_.right);default:return e.Debug.assertNever(_)}}e.entityNameToString=Vr;function Yr(_,ve,Tr,Gr,Kt,ti){var fi=w(_);return Wt(fi,_,ve,Tr,Gr,Kt,ti)}e.createDiagnosticForNode=Yr;function Nt(_,ve,Tr,Gr,Kt,ti,fi){var Vi=e.skipTrivia(_.text,ve.pos);return pr(_,Vi,ve.end-Vi,Tr,Gr,Kt,ti,fi)}e.createDiagnosticForNodeArray=Nt;function Wt(_,ve,Tr,Gr,Kt,ti,fi){var Vi=ar(_,ve);return pr(_,Vi.start,Vi.length,Tr,Gr,Kt,ti,fi)}e.createDiagnosticForNodeInSourceFile=Wt;function sn(_,ve,Tr){var Gr=w(_),Kt=ar(Gr,_);return Ir(Gr,Kt.start,Kt.length,ve,Tr)}e.createDiagnosticForNodeFromMessageChain=sn;function en(_,ve,Tr){e.Debug.assertGreaterThanOrEqual(ve,0),e.Debug.assertGreaterThanOrEqual(Tr,0),_&&(e.Debug.assertLessThanOrEqual(ve,_.text.length),e.Debug.assertLessThanOrEqual(ve+Tr,_.text.length))}function Ir(_,ve,Tr,Gr,Kt){return en(_,ve,Tr),{file:_,start:ve,length:Tr,code:Gr.code,category:Gr.category,messageText:Gr.next?Gr:Gr.messageText,relatedInformation:Kt}}e.createFileDiagnosticFromMessageChain=Ir;function Jr(_,ve,Tr){return{file:_,start:0,length:0,code:ve.code,category:ve.category,messageText:ve.next?ve:ve.messageText,relatedInformation:Tr}}e.createDiagnosticForFileFromMessageChain=Jr;function ye(_){return typeof _.messageText=="string"?{code:_.code,category:_.category,messageText:_.messageText,next:_.next}:_.messageText}e.createDiagnosticMessageChainFromDiagnostic=ye;function Ie(_,ve,Tr){return{file:_,start:ve.pos,length:ve.end-ve.pos,code:Tr.code,category:Tr.category,messageText:Tr.message}}e.createDiagnosticForRange=Ie;function We(_,ve){var Tr=e.createScanner(_.languageVersion,!0,_.languageVariant,_.text,void 0,ve);Tr.scan();var Gr=Tr.getTokenPos();return e.createTextSpanFromBounds(Gr,Tr.getTextPos())}e.getSpanOfTokenAtPosition=We;function dr(_,ve){var Tr=e.skipTrivia(_.text,ve.pos);if(ve.body&&ve.body.kind===238){var Gr=e.getLineAndCharacterOfPosition(_,ve.body.pos).line,Kt=e.getLineAndCharacterOfPosition(_,ve.body.end).line;if(Gr<Kt)return e.createTextSpan(Tr,R(Gr,_)-Tr+1)}return e.createTextSpanFromBounds(Tr,ve.end)}function ar(_,ve){var Tr=ve;switch(ve.kind){case 308:var Gr=e.skipTrivia(_.text,0,!1);return Gr===_.text.length?e.createTextSpan(0,0):We(_,Gr);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:Tr=ve.name;break;case 216:return dr(_,ve);case 292:case 293:var Kt=e.skipTrivia(_.text,ve.pos),ti=ve.statements.length>0?ve.statements[0].pos:ve.end;return e.createTextSpanFromBounds(Kt,ti)}if(Tr===void 0)return We(_,ve.pos);e.Debug.assert(!e.isJSDoc(Tr));var fi=I(Tr),Vi=fi||e.isJsxText(ve)?Tr.pos:e.skipTrivia(_.text,Tr.pos);return fi?(e.Debug.assert(Vi===Tr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Vi===Tr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(Vi>=Tr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Vi<=Tr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(Vi,Tr.end)}e.getErrorSpanForNode=ar;function Sr(_){return(_.externalModuleIndicator||_.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Sr;function Or(_){return _.scriptKind===6}e.isJsonSourceFile=Or;function Ge(_){return!!(e.getCombinedModifierFlags(_)&2048)}e.isEnumConst=Ge;function ur(_){return!!(e.getCombinedModifierFlags(_)&64&&!e.isParameterPropertyDeclaration(_,_.parent))}e.isDeclarationReadonly=ur;function Lr(_){return!!(e.getCombinedNodeFlags(_)&2)}e.isVarConst=Lr;function Ar(_){return!!(e.getCombinedNodeFlags(_)&1)}e.isLet=Ar;function rt(_){return _.kind===210&&_.expression.kind===106}e.isSuperCall=rt;function Et(_){return _.kind===210&&_.expression.kind===100}e.isImportCall=Et;function St(_){return e.isMetaProperty(_)&&_.keywordToken===100&&_.name.escapedText==="meta"}e.isImportMeta=St;function Pt(_){return e.isImportTypeNode(_)&&e.isLiteralTypeNode(_.argument)&&e.isStringLiteral(_.argument.literal)}e.isLiteralImportTypeNode=Pt;function pt(_){return _.kind===241&&_.expression.kind===10}e.isPrologueDirective=pt;function Ft(_){return!!(Ce(_)&1048576)}e.isCustomPrologue=Ft;function ht(_){return Ft(_)&&e.isFunctionDeclaration(_)}e.isHoistedFunction=ht;function Yt(_){return e.isIdentifier(_.name)&&!_.initializer}function un(_){return Ft(_)&&e.isVariableStatement(_)&&e.every(_.declarationList.declarations,Yt)}e.isHoistedVariableStatement=un;function wn(_,ve){return _.kind!==11?e.getLeadingCommentRanges(ve.text,_.pos):void 0}e.getLeadingCommentRangesOfNode=wn;function Bn(_,ve){var Tr=_.kind===166||_.kind===165||_.kind===215||_.kind===216||_.kind===214||_.kind===257||_.kind===278?e.concatenate(e.getTrailingCommentRanges(ve,_.pos),e.getLeadingCommentRanges(ve,_.pos)):e.getLeadingCommentRanges(ve,_.pos);return e.filter(Tr,function(Gr){return ve.charCodeAt(Gr.pos+1)===42&&ve.charCodeAt(Gr.pos+2)===42&&ve.charCodeAt(Gr.pos+3)!==47})}e.getJSDocCommentRanges=Bn,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var yn=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Tn=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function An(_){if(179<=_.kind&&_.kind<=202)return!0;switch(_.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return _.parent.kind!==219;case 230:return e.isHeritageClause(_.parent)&&!Y_(_);case 165:return _.parent.kind===197||_.parent.kind===192;case 79:(_.parent.kind===163&&_.parent.right===_||_.parent.kind===208&&_.parent.name===_)&&(_=_.parent),e.Debug.assert(_.kind===79||_.kind===163||_.kind===208,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{var ve=_.parent;if(ve.kind===183)return!1;if(ve.kind===202)return!ve.isTypeOf;if(179<=ve.kind&&ve.kind<=202)return!0;switch(ve.kind){case 230:return e.isHeritageClause(ve.parent)&&!Y_(ve);case 165:return _===ve.constraint;case 347:return _===ve.constraint;case 169:case 168:case 166:case 257:return _===ve.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return _===ve.type;case 176:case 177:case 178:return _===ve.type;case 213:return _===ve.type;case 210:case 211:return e.contains(ve.typeArguments,_);case 212:return!1}}}return!1}e.isPartOfTypeNode=An;function ii(_,ve){for(;_;){if(_.kind===ve)return!0;_=_.parent}return!1}e.isChildOfNodeWithKind=ii;function Xe(_,ve){return Tr(_);function Tr(Gr){switch(Gr.kind){case 250:return ve(Gr);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return e.forEachChild(Gr,Tr)}}}e.forEachReturnStatement=Xe;function hr(_,ve){return Tr(_);function Tr(Gr){switch(Gr.kind){case 226:ve(Gr);var Kt=Gr.expression;Kt&&Tr(Kt);return;case 263:case 261:case 264:case 262:return;default:if(e.isFunctionLike(Gr)){if(Gr.name&&Gr.name.kind===164){Tr(Gr.name.expression);return}}else An(Gr)||e.forEachChild(Gr,Tr)}}}e.forEachYieldExpression=hr;function at(_){return _&&_.kind===185?_.elementType:_&&_.kind===180?e.singleOrUndefined(_.typeArguments):void 0}e.getRestParameterElementType=at;function Qe(_){switch(_.kind){case 261:case 260:case 228:case 184:return _.members;case 207:return _.properties}}e.getMembersOfDeclaration=Qe;function Qt(_){if(_)switch(_.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}e.isVariableLike=Qt;function Zt(_){return Qt(_)||e.isAccessor(_)}e.isVariableLikeOrAccessor=Zt;function Tt(_){return _.parent.kind===258&&_.parent.parent.kind===240}e.isVariableDeclarationInVariableStatement=Tt;function gt(_){return Cn(_)?e.isObjectLiteralExpression(_.parent)&&e.isBinaryExpression(_.parent.parent)&&Kn(_.parent.parent)===2||kt(_.parent):!1}e.isCommonJsExportedExpression=gt;function kt(_){return Cn(_)?e.isBinaryExpression(_)&&Kn(_)===1:!1}e.isCommonJsExportPropertyAssignment=kt;function Lt(_){return(e.isVariableDeclaration(_)?Lr(_)&&e.isIdentifier(_.name)&&Tt(_):e.isPropertyDeclaration(_)?Bc(_)&&Ll(_):e.isPropertySignature(_)&&Bc(_))||kt(_)}e.isValidESSymbolDeclaration=Lt;function $e(_){switch(_.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}e.introducesArgumentsExoticObject=$e;function et(_,ve){for(;;){if(ve&&ve(_),_.statement.kind!==253)return _.statement;_=_.statement}}e.unwrapInnermostStatementOfLabel=et;function It(_){return _&&_.kind===238&&e.isFunctionLike(_.parent)}e.isFunctionBlock=It;function xn(_){return _&&_.kind===171&&_.parent.kind===207}e.isObjectLiteralMethod=xn;function pi(_){return(_.kind===171||_.kind===174||_.kind===175)&&(_.parent.kind===207||_.parent.kind===228)}e.isObjectLiteralOrClassExpressionMethodOrAccessor=pi;function ai(_){return _&&_.kind===1}e.isIdentifierTypePredicate=ai;function Wi(_){return _&&_.kind===0}e.isThisTypePredicate=Wi;function ji(_,ve,Tr){return _.properties.filter(function(Gr){if(Gr.kind===299){var Kt=Me(Gr.name);return ve===Kt||!!Tr&&Tr===Kt}return!1})}e.getPropertyAssignment=ji;function fn(_,ve,Tr){return e.firstDefined(ji(_,ve),function(Gr){return e.isArrayLiteralExpression(Gr.initializer)?e.find(Gr.initializer.elements,function(Kt){return e.isStringLiteral(Kt)&&Kt.text===Tr}):void 0})}e.getPropertyArrayElementValue=fn;function Ri(_){if(_&&_.statements.length){var ve=_.statements[0].expression;return e.tryCast(ve,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=Ri;function ma(_,ve,Tr){return e.firstDefined(ra(_,ve),function(Gr){return e.isArrayLiteralExpression(Gr.initializer)?e.find(Gr.initializer.elements,function(Kt){return e.isStringLiteral(Kt)&&Kt.text===Tr}):void 0})}e.getTsConfigPropArrayElementValue=ma;function ra(_,ve){var Tr=Ri(_);return Tr?ji(Tr,ve):e.emptyArray}e.getTsConfigPropArray=ra;function vn(_){return e.findAncestor(_.parent,e.isFunctionLike)}e.getContainingFunction=vn;function zo(_){return e.findAncestor(_.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=zo;function _a(_){return e.findAncestor(_.parent,e.isClassLike)}e.getContainingClass=_a;function Ha(_){return e.findAncestor(_.parent,function(ve){return e.isClassLike(ve)||e.isFunctionLike(ve)?"quit":e.isClassStaticBlockDeclaration(ve)})}e.getContainingClassStaticBlock=Ha;function Do(_){return e.findAncestor(_.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=Do;function Ka(_,ve){for(e.Debug.assert(_.kind!==308);;){if(_=_.parent,!_)return e.Debug.fail();switch(_.kind){case 164:if(e.isClassLike(_.parent.parent))return _;_=_.parent;break;case 167:_.parent.kind===166&&e.isClassElement(_.parent.parent)?_=_.parent.parent:e.isClassElement(_.parent)&&(_=_.parent);break;case 216:if(!ve)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return _}}}e.getThisContainer=Ka;function rs(_){switch(_.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(_.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}e.isThisContainerOrFunctionBlock=rs;function ts(_){e.isIdentifier(_)&&(e.isClassDeclaration(_.parent)||e.isFunctionDeclaration(_.parent))&&_.parent.name===_&&(_=_.parent);var ve=Ka(_,!0);return e.isSourceFile(ve)}e.isInTopLevelContext=ts;function En(_){var ve=Ka(_,!1);if(ve)switch(ve.kind){case 173:case 259:case 215:return ve}}e.getNewTargetContainer=En;function ca(_,ve){for(;;){if(_=_.parent,!_)return _;switch(_.kind){case 164:_=_.parent;break;case 259:case 215:case 216:if(!ve)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return _;case 167:_.parent.kind===166&&e.isClassElement(_.parent.parent)?_=_.parent.parent:e.isClassElement(_.parent)&&(_=_.parent);break}}}e.getSuperContainer=ca;function bo(_){if(_.kind===215||_.kind===216){for(var ve=_,Tr=_.parent;Tr.kind===214;)ve=Tr,Tr=Tr.parent;if(Tr.kind===210&&Tr.expression===ve)return Tr}}e.getImmediatelyInvokedFunctionExpression=bo;function Oo(_){return _.kind===106||Ws(_)}e.isSuperOrSuperProperty=Oo;function Ws(_){var ve=_.kind;return(ve===208||ve===209)&&_.expression.kind===106}e.isSuperProperty=Ws;function Co(_){var ve=_.kind;return(ve===208||ve===209)&&_.expression.kind===108}e.isThisProperty=Co;function qs(_){var ve;return!!_&&e.isVariableDeclaration(_)&&((ve=_.initializer)===null||ve===void 0?void 0:ve.kind)===108}e.isThisInitializedDeclaration=qs;function gs(_){return!!_&&(e.isShorthandPropertyAssignment(_)||e.isPropertyAssignment(_))&&e.isBinaryExpression(_.parent.parent)&&_.parent.parent.operatorToken.kind===63&&_.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=gs;function Ds(_){switch(_.kind){case 180:return _.typeName;case 230:return Bl(_.expression)?_.expression:void 0;case 79:case 163:return _}}e.getEntityNameFromTypeNode=Ds;function Ko(_){switch(_.kind){case 212:return _.tag;case 283:case 282:return _.tagName;default:return _.expression}}e.getInvokedExpression=Ko;function kr(_,ve,Tr){if(e.isNamedDeclaration(_)&&e.isPrivateIdentifier(_.name))return!1;switch(_.kind){case 260:return!0;case 169:return ve.kind===260;case 174:case 175:case 171:return _.body!==void 0&&ve.kind===260;case 166:return ve.body!==void 0&&(ve.kind===173||ve.kind===171||ve.kind===175)&&Tr.kind===260}return!1}e.nodeCanBeDecorated=kr;function jr(_,ve,Tr){return Sf(_)&&kr(_,ve,Tr)}e.nodeIsDecorated=jr;function Nn(_,ve,Tr){return jr(_,ve,Tr)||xi(_,ve)}e.nodeOrChildIsDecorated=Nn;function xi(_,ve){switch(_.kind){case 260:return e.some(_.members,function(Tr){return Nn(Tr,_,ve)});case 171:case 175:case 173:return e.some(_.parameters,function(Tr){return jr(Tr,_,ve)});default:return!1}}e.childIsDecorated=xi;function ka(_){if(jr(_))return!0;var ve=Lf(_);return!!ve&&xi(ve,_)}e.classOrConstructorParameterIsDecorated=ka;function ro(_){var ve=_.parent;return ve.kind===283||ve.kind===282||ve.kind===284?ve.tagName===_:!1}e.isJSXTagName=ro;function Ye(_){switch(_.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!e.isHeritageClause(_.parent);case 163:for(;_.parent.kind===163;)_=_.parent;return _.parent.kind===183||e.isJSDocLinkLike(_.parent)||e.isJSDocNameReference(_.parent)||e.isJSDocMemberName(_.parent)||ro(_);case 314:for(;e.isJSDocMemberName(_.parent);)_=_.parent;return _.parent.kind===183||e.isJSDocLinkLike(_.parent)||e.isJSDocNameReference(_.parent)||e.isJSDocMemberName(_.parent)||ro(_);case 80:return e.isBinaryExpression(_.parent)&&_.parent.left===_&&_.parent.operatorToken.kind===101;case 79:if(_.parent.kind===183||e.isJSDocLinkLike(_.parent)||e.isJSDocNameReference(_.parent)||e.isJSDocMemberName(_.parent)||ro(_))return!0;case 8:case 9:case 10:case 14:case 108:return lt(_);default:return!1}}e.isExpressionNode=Ye;function lt(_){var ve=_.parent;switch(ve.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return ve.initializer===_;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return ve.expression===_;case 245:var Tr=ve;return Tr.initializer===_&&Tr.initializer.kind!==258||Tr.condition===_||Tr.incrementor===_;case 246:case 247:var Gr=ve;return Gr.initializer===_&&Gr.initializer.kind!==258||Gr.expression===_;case 213:case 231:return _===ve.expression;case 236:return _===ve.expression;case 164:return _===ve.expression;case 167:case 291:case 290:case 301:return!0;case 230:return ve.expression===_&&!An(ve);case 300:return ve.objectAssignmentInitializer===_;case 235:return _===ve.expression;default:return Ye(ve)}}e.isInExpressionContext=lt;function Ut(_){for(;_.kind===163||_.kind===79;)_=_.parent;return _.kind===183}e.isPartOfTypeQuery=Ut;function Ve(_){return e.isNamespaceExport(_)&&!!_.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=Ve;function yr(_){return _.kind===268&&_.moduleReference.kind===280}e.isExternalModuleImportEqualsDeclaration=yr;function Er(_){return e.Debug.assert(yr(_)),_.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=Er;function Wr(_){return rc(_)&&ci(_.initializer).arguments[0]}e.getExternalModuleRequireArgument=Wr;function Ot(_){return _.kind===268&&_.moduleReference.kind!==280}e.isInternalModuleImportEqualsDeclaration=Ot;function ln(_){return Cn(_)}e.isSourceFileJS=ln;function kn(_){return!Cn(_)}e.isSourceFileNotJS=kn;function Cn(_){return!!_&&!!(_.flags&262144)}e.isInJSFile=Cn;function _i(_){return!!_&&!!(_.flags&67108864)}e.isInJsonFile=_i;function qi(_){return!Or(_)}e.isSourceFileNotJson=qi;function va(_){return!!_&&!!(_.flags&8388608)}e.isInJSDoc=va;function Ia(_){return e.isTypeReferenceNode(_)&&e.isIdentifier(_.typeName)&&_.typeName.escapedText==="Object"&&_.typeArguments&&_.typeArguments.length===2&&(_.typeArguments[0].kind===152||_.typeArguments[0].kind===148)}e.isJSDocIndexSignature=Ia;function $a(_,ve){if(_.kind!==210)return!1;var Tr=_,Gr=Tr.expression,Kt=Tr.arguments;if(Gr.kind!==79||Gr.escapedText!=="require"||Kt.length!==1)return!1;var ti=Kt[0];return!ve||e.isStringLiteralLike(ti)}e.isRequireCall=$a;function ws(_){return Wo(_,!1)}e.isVariableDeclarationInitializedToRequire=ws;function rc(_){return Wo(_,!0)}e.isVariableDeclarationInitializedToBareOrAccessedRequire=rc;function Wo(_,ve){return e.isVariableDeclaration(_)&&!!_.initializer&&$a(ve?ci(_.initializer):_.initializer,!0)}function ds(_){return e.isVariableStatement(_)&&_.declarationList.declarations.length>0&&e.every(_.declarationList.declarations,function(ve){return ws(ve)})}e.isRequireVariableStatement=ds;function yu(_){return _===39||_===34}e.isSingleOrDoubleQuote=yu;function bu(_,ve){return we(ve,_).charCodeAt(0)===34}e.isStringDoubleQuoted=bu;function tu(_){return e.isBinaryExpression(_)||ot(_)||e.isIdentifier(_)||e.isCallExpression(_)}e.isAssignmentDeclaration=tu;function $c(_){return Cn(_)&&_.initializer&&e.isBinaryExpression(_.initializer)&&(_.initializer.operatorToken.kind===56||_.initializer.operatorToken.kind===60)&&_.name&&Bl(_.name)&&Xt(_.name,_.initializer.left)?_.initializer.right:_.initializer}e.getEffectiveInitializer=$c;function Su(_){var ve=$c(_);return ve&&tc(ve,Df(_.name))}e.getDeclaredExpandoInitializer=Su;function Lc(_,ve){return e.forEach(_.properties,function(Tr){return e.isPropertyAssignment(Tr)&&e.isIdentifier(Tr.name)&&Tr.name.escapedText==="value"&&Tr.initializer&&tc(Tr.initializer,ve)})}function Hc(_){if(_&&_.parent&&e.isBinaryExpression(_.parent)&&_.parent.operatorToken.kind===63){var ve=Df(_.parent.left);return tc(_.parent.right,ve)||fc(_.parent.left,_.parent.right,ve)}if(_&&e.isCallExpression(_)&&Yn(_)){var Tr=Lc(_.arguments[2],_.arguments[1].text==="prototype");if(Tr)return Tr}}e.getAssignedExpandoInitializer=Hc;function tc(_,ve){if(e.isCallExpression(_)){var Tr=Pi(_.expression);return Tr.kind===215||Tr.kind===216?_:void 0}if(_.kind===215||_.kind===228||_.kind===216||e.isObjectLiteralExpression(_)&&(_.properties.length===0||ve))return _}e.getExpandoInitializer=tc;function fc(_,ve,Tr){var Gr=e.isBinaryExpression(ve)&&(ve.operatorToken.kind===56||ve.operatorToken.kind===60)&&tc(ve.right,Tr);if(Gr&&Xt(_,ve.left))return Gr}function nu(_){var ve=e.isVariableDeclaration(_.parent)?_.parent.name:e.isBinaryExpression(_.parent)&&_.parent.operatorToken.kind===63?_.parent.left:void 0;return ve&&tc(_.right,Df(ve))&&Bl(ve)&&Xt(ve,_.left)}e.isDefaultedExpandoInitializer=nu;function nc(_){if(e.isBinaryExpression(_.parent)){var ve=(_.parent.operatorToken.kind===56||_.parent.operatorToken.kind===60)&&e.isBinaryExpression(_.parent.parent)?_.parent.parent:_.parent;if(ve.operatorToken.kind===63&&e.isIdentifier(ve.left))return ve.left}else if(e.isVariableDeclaration(_.parent))return _.parent.name}e.getNameOfExpando=nc;function Xt(_,ve){return Mi(_)&&Mi(ve)?sl(_)===sl(ve):e.isMemberName(_)&&Si(ve)&&(ve.expression.kind===108||e.isIdentifier(ve.expression)&&(ve.expression.escapedText==="window"||ve.expression.escapedText==="self"||ve.expression.escapedText==="global"))?Xt(_,oo(ve)):Si(_)&&Si(ve)?ua(_)===ua(ve)&&Xt(_.expression,ve.expression):!1}e.isSameEntityName=Xt;function be(_){for(;p_(_,!0);)_=_.right;return _}e.getRightMostAssignedExpression=be;function Ur(_){return e.isIdentifier(_)&&_.escapedText==="exports"}e.isExportsIdentifier=Ur;function At(_){return e.isIdentifier(_)&&_.escapedText==="module"}e.isModuleIdentifier=At;function an(_){return(e.isPropertyAccessExpression(_)||vi(_))&&At(_.expression)&&ua(_)==="exports"}e.isModuleExportsAccessExpression=an;function Kn(_){var ve=er(_);return ve===5||Cn(_)?ve:0}e.getAssignmentDeclarationKind=Kn;function Yn(_){return e.length(_.arguments)===3&&e.isPropertyAccessExpression(_.expression)&&e.isIdentifier(_.expression.expression)&&e.idText(_.expression.expression)==="Object"&&e.idText(_.expression.name)==="defineProperty"&&dp(_.arguments[1])&&fo(_.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=Yn;function Si(_){return e.isPropertyAccessExpression(_)||vi(_)}e.isLiteralLikeAccess=Si;function vi(_){return e.isElementAccessExpression(_)&&dp(_.argumentExpression)}e.isLiteralLikeElementAccess=vi;function Da(_,ve){return e.isPropertyAccessExpression(_)&&(!ve&&_.expression.kind===108||e.isIdentifier(_.name)&&fo(_.expression,!0))||ta(_,ve)}e.isBindableStaticAccessExpression=Da;function ta(_,ve){return vi(_)&&(!ve&&_.expression.kind===108||Bl(_.expression)||Da(_.expression,!0))}e.isBindableStaticElementAccessExpression=ta;function fo(_,ve){return Bl(_)||Da(_,ve)}e.isBindableStaticNameExpression=fo;function oo(_){return e.isPropertyAccessExpression(_)?_.name:_.argumentExpression}e.getNameOrArgument=oo;function er(_){if(e.isCallExpression(_)){if(!Yn(_))return 0;var ve=_.arguments[0];return Ur(ve)||an(ve)?8:Da(ve)&&ua(ve)==="prototype"?9:7}return _.operatorToken.kind!==63||!ot(_.left)||Bt(be(_))?0:fo(_.left.expression,!0)&&ua(_.left)==="prototype"&&e.isObjectLiteralExpression(xs(_))?6:_o(_.left)}function Bt(_){return e.isVoidExpression(_)&&e.isNumericLiteral(_.expression)&&_.expression.text==="0"}function Mr(_){if(e.isPropertyAccessExpression(_))return _.name;var ve=Pi(_.argumentExpression);return e.isNumericLiteral(ve)||e.isStringLiteralLike(ve)?ve:_}e.getElementOrPropertyAccessArgumentExpressionOrName=Mr;function ua(_){var ve=Mr(_);if(ve){if(e.isIdentifier(ve))return ve.escapedText;if(e.isStringLiteralLike(ve)||e.isNumericLiteral(ve))return e.escapeLeadingUnderscores(ve.text)}}e.getElementOrPropertyAccessName=ua;function _o(_){if(_.expression.kind===108)return 4;if(an(_))return 2;if(fo(_.expression,!0)){if(Df(_.expression))return 3;for(var ve=_;!e.isIdentifier(ve.expression);)ve=ve.expression;var Tr=ve.expression;if((Tr.escapedText==="exports"||Tr.escapedText==="module"&&ua(ve)==="exports")&&Da(_))return 1;if(fo(_,!0)||e.isElementAccessExpression(_)&&o_(_))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=_o;function xs(_){for(;e.isBinaryExpression(_.right);)_=_.right;return _.right}e.getInitializerOfBinaryExpression=xs;function yc(_){return e.isBinaryExpression(_)&&Kn(_)===3}e.isPrototypePropertyAssignment=yc;function kc(_){return Cn(_)&&_.parent&&_.parent.kind===241&&(!e.isElementAccessExpression(_)||vi(_))&&!!e.getJSDocTypeTag(_.parent)}e.isSpecialPropertyDeclaration=kc;function oc(_,ve){var Tr=_.valueDeclaration;(!Tr||!(ve.flags&16777216&&!(Tr.flags&16777216))&&tu(Tr)&&!tu(ve)||Tr.kind!==ve.kind&&wr(Tr))&&(_.valueDeclaration=ve)}e.setValueDeclaration=oc;function iu(_){if(!_||!_.valueDeclaration)return!1;var ve=_.valueDeclaration;return ve.kind===259||e.isVariableDeclaration(ve)&&ve.initializer&&e.isFunctionLike(ve.initializer)}e.isFunctionSymbol=iu;function _u(_){var ve,Tr;switch(_.kind){case 257:return(ve=e.findAncestor(_.initializer,function(Gr){return $a(Gr,!0)}))===null||ve===void 0?void 0:ve.arguments[0];case 269:return e.tryCast(_.moduleSpecifier,e.isStringLiteralLike);case 268:return e.tryCast((Tr=e.tryCast(_.moduleReference,e.isExternalModuleReference))===null||Tr===void 0?void 0:Tr.expression,e.isStringLiteralLike);default:e.Debug.assertNever(_)}}e.tryGetModuleSpecifierFromDeclaration=_u;function wl(_){return Du(_)||e.Debug.failBadSyntaxKind(_.parent)}e.importFromModuleSpecifier=wl;function Du(_){switch(_.parent.kind){case 269:case 275:return _.parent;case 280:return _.parent.parent;case 210:return Et(_.parent)||$a(_.parent,!1)?_.parent:void 0;case 198:return e.Debug.assert(e.isStringLiteral(_)),e.tryCast(_.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=Du;function Jo(_){switch(_.kind){case 269:case 275:return _.moduleSpecifier;case 268:return _.moduleReference.kind===280?_.moduleReference.expression:void 0;case 202:return Pt(_)?_.argument.literal:void 0;case 210:return _.arguments[0];case 264:return _.name.kind===10?_.name:void 0;default:return e.Debug.assertNever(_)}}e.getExternalModuleName=Jo;function $s(_){switch(_.kind){case 269:return _.importClause&&e.tryCast(_.importClause.namedBindings,e.isNamespaceImport);case 268:return _;case 275:return _.exportClause&&e.tryCast(_.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(_)}}e.getNamespaceDeclarationNode=$s;function Ju(_){return _.kind===269&&!!_.importClause&&!!_.importClause.name}e.isDefaultImport=Ju;function Up(_,ve){if(_.name){var Tr=ve(_);if(Tr)return Tr}if(_.namedBindings){var Tr=e.isNamespaceImport(_.namedBindings)?ve(_.namedBindings):e.forEach(_.namedBindings.elements,ve);if(Tr)return Tr}}e.forEachImportClauseDeclaration=Up;function Vp(_){if(_)switch(_.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return _.questionToken!==void 0}return!1}e.hasQuestionToken=Vp;function wu(_){var ve=e.isJSDocFunctionType(_)?e.firstOrUndefined(_.parameters):void 0,Tr=e.tryCast(ve&&ve.name,e.isIdentifier);return!!Tr&&Tr.escapedText==="new"}e.isJSDocConstructSignature=wu;function Nl(_){return _.kind===348||_.kind===341||_.kind===342}e.isJSDocTypeAlias=Nl;function pf(_){return Nl(_)||e.isTypeAliasDeclaration(_)}e.isTypeAlias=pf;function Il(_){return e.isExpressionStatement(_)&&e.isBinaryExpression(_.expression)&&_.expression.operatorToken.kind===63?be(_.expression):void 0}function Xl(_){return e.isExpressionStatement(_)&&e.isBinaryExpression(_.expression)&&Kn(_.expression)!==0&&e.isBinaryExpression(_.expression.right)&&(_.expression.right.operatorToken.kind===56||_.expression.right.operatorToken.kind===60)?_.expression.right.right:void 0}function Zr(_){switch(_.kind){case 240:var ve=Xr(_);return ve&&ve.initializer;case 169:return _.initializer;case 299:return _.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Zr;function Xr(_){return e.isVariableStatement(_)?e.firstOrUndefined(_.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=Xr;function $t(_){return e.isModuleDeclaration(_)&&_.body&&_.body.kind===264?_.body:void 0}function Dn(_,ve){var Tr;Qt(_)&&e.hasInitializer(_)&&e.hasJSDocNodes(_.initializer)&&(Tr=e.addRange(Tr,Mn(_,e.last(_.initializer.jsDoc))));for(var Gr=_;Gr&&Gr.parent;){if(e.hasJSDocNodes(Gr)&&(Tr=e.addRange(Tr,Mn(_,e.last(Gr.jsDoc)))),Gr.kind===166){Tr=e.addRange(Tr,(ve?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Gr));break}if(Gr.kind===165){Tr=e.addRange(Tr,(ve?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Gr));break}Gr=mi(Gr)}return Tr||e.emptyArray}e.getJSDocCommentsAndTags=Dn;function Mn(_,ve){if(e.isJSDoc(ve)){var Tr=e.filter(ve.tags,function(Gr){return zn(_,Gr)});return ve.tags===Tr?[ve]:Tr}return zn(_,ve)?[ve]:void 0}function zn(_,ve){return!e.isJSDocTypeTag(ve)||!ve.parent||!e.isJSDoc(ve.parent)||!e.isParenthesizedExpression(ve.parent.parent)||ve.parent.parent===_}function mi(_){var ve=_.parent;if(ve.kind===299||ve.kind===274||ve.kind===169||ve.kind===241&&_.kind===208||ve.kind===250||$t(ve)||e.isBinaryExpression(_)&&_.operatorToken.kind===63)return ve;if(ve.parent&&(Xr(ve.parent)===_||e.isBinaryExpression(ve)&&ve.operatorToken.kind===63))return ve.parent;if(ve.parent&&ve.parent.parent&&(Xr(ve.parent.parent)||Zr(ve.parent.parent)===_||Xl(ve.parent.parent)))return ve.parent.parent}e.getNextJSDocCommentLocation=mi;function Qn(_){if(_.symbol)return _.symbol;if(e.isIdentifier(_.name)){var ve=_.name.escapedText,Tr=Va(_);if(Tr){var Gr=e.find(Tr.parameters,function(Kt){return Kt.name.kind===79&&Kt.name.escapedText===ve});return Gr&&Gr.symbol}}}e.getParameterSymbolFromJSDoc=Qn;function Xi(_){if(e.isJSDoc(_.parent)&&_.parent.tags){var ve=e.find(_.parent.tags,Nl);if(ve)return ve}return Va(_)}e.getEffectiveContainerForJSDocTemplateTag=Xi;function Va(_){var ve=ga(_);if(ve)return e.isPropertySignature(ve)&&ve.type&&e.isFunctionLike(ve.type)?ve.type:e.isFunctionLike(ve)?ve:void 0}e.getHostSignatureFromJSDoc=Va;function ga(_){var ve=Yi(_);if(ve)return Xl(ve)||Il(ve)||Zr(ve)||Xr(ve)||$t(ve)||ve}e.getEffectiveJSDocHost=ga;function Yi(_){var ve=so(_);if(ve){var Tr=ve.parent;if(Tr&&Tr.jsDoc&&ve===e.lastOrUndefined(Tr.jsDoc))return Tr}}e.getJSDocHost=Yi;function so(_){return e.findAncestor(_.parent,e.isJSDoc)}e.getJSDocRoot=so;function da(_){var ve=_.name.escapedText,Tr=_.parent.parent.parent.typeParameters;return Tr&&e.find(Tr,function(Gr){return Gr.name.escapedText===ve})}e.getTypeParameterFromJsDoc=da;function Po(_){return!!_.typeArguments}e.hasTypeArguments=Po,function(_){_[_.None=0]="None",_[_.Definite=1]="Definite",_[_.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={}));function Uo(_){for(var ve=_.parent;;){switch(ve.kind){case 223:var Tr=ve.operatorToken.kind;return Rl(Tr)&&ve.left===_?Tr===63||Q_(Tr)?1:2:0;case 221:case 222:var Gr=ve.operator;return Gr===45||Gr===46?2:0;case 246:case 247:return ve.initializer===_?1:0;case 214:case 206:case 227:case 232:_=ve;break;case 301:_=ve.parent;break;case 300:if(ve.name!==_)return 0;_=ve.parent;break;case 299:if(ve.name===_)return 0;_=ve.parent;break;default:return 0}ve=_.parent}}e.getAssignmentTargetKind=Uo;function Qs(_){return Uo(_)!==0}e.isAssignmentTarget=Qs;function ya(_){switch(_.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=ya;function Ee(_){return e.isFunctionExpression(_)||e.isArrowFunction(_)||e.isMethodOrAccessor(_)||e.isFunctionDeclaration(_)||e.isConstructorDeclaration(_)}e.isValueSignatureDeclaration=Ee;function Dr(_,ve){for(;_&&_.kind===ve;)_=_.parent;return _}function Nr(_){return Dr(_,193)}e.walkUpParenthesizedTypes=Nr;function Mt(_){return Dr(_,214)}e.walkUpParenthesizedExpressions=Mt;function In(_){for(var ve;_&&_.kind===193;)ve=_,_=_.parent;return[ve,_]}e.walkUpParenthesizedTypesAndGetParentAndChild=In;function Di(_){for(;e.isParenthesizedTypeNode(_);)_=_.type;return _}e.skipTypeParentheses=Di;function Pi(_,ve){var Tr=ve?17:1;return e.skipOuterExpressions(_,Tr)}e.skipParentheses=Pi;function Aa(_){return _.kind!==208&&_.kind!==209?!1:(_=Mt(_.parent),_&&_.kind===217)}e.isDeleteTarget=Aa;function co(_,ve){for(;_;){if(_===ve)return!0;_=_.parent}return!1}e.isNodeDescendantOf=co;function os(_){return!e.isSourceFile(_)&&!e.isBindingPattern(_)&&e.isDeclaration(_.parent)&&_.parent.name===_}e.isDeclarationName=os;function qo(_){var ve=_.parent;switch(_.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(ve))return ve.parent;case 79:if(e.isDeclaration(ve))return ve.name===_?ve:void 0;if(e.isQualifiedName(ve)){var Tr=ve.parent;return e.isJSDocParameterTag(Tr)&&Tr.name===ve?Tr:void 0}else{var Gr=ve.parent;return e.isBinaryExpression(Gr)&&Kn(Gr)!==0&&(Gr.left.symbol||Gr.symbol)&&e.getNameOfDeclaration(Gr)===_?Gr:void 0}case 80:return e.isDeclaration(ve)&&ve.name===_?ve:void 0;default:return}}e.getDeclarationFromName=qo;function no(_){return dp(_)&&_.parent.kind===164&&e.isDeclaration(_.parent.parent)}e.isLiteralComputedPropertyDeclarationName=no;function uo(_){var ve=_.parent;switch(ve.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return ve.name===_;case 163:return ve.right===_;case 205:case 273:return ve.propertyName===_;case 278:case 288:case 282:case 283:case 284:return!0}return!1}e.isIdentifierName=uo;function _s(_){return _.kind===268||_.kind===267||_.kind===270&&_.name||_.kind===271||_.kind===277||_.kind===273||_.kind===278||_.kind===274&&bc(_)?!0:Cn(_)&&(e.isBinaryExpression(_)&&Kn(_)===2&&bc(_)||e.isPropertyAccessExpression(_)&&e.isBinaryExpression(_.parent)&&_.parent.left===_&&_.parent.operatorToken.kind===63&&Xs(_.parent.right))}e.isAliasSymbolDeclaration=_s;function fs(_){switch(_.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return _.parent;case 163:do _=_.parent;while(_.parent.kind===163);return fs(_)}}e.getAliasDeclarationFromName=fs;function Xs(_){return Bl(_)||e.isClassExpression(_)}e.isAliasableExpression=Xs;function bc(_){var ve=fp(_);return Xs(ve)}e.exportAssignmentIsAlias=bc;function fp(_){return e.isExportAssignment(_)?_.expression:_.right}e.getExportAssignmentExpression=fp;function zp(_){return _.kind===300?_.name:_.kind===299?_.initializer:_.parent.right}e.getPropertyAssignmentAliasLikeExpression=zp;function pc(_){var ve=vl(_);if(ve&&Cn(_)){var Tr=e.getJSDocAugmentsTag(_);if(Tr)return Tr.class}return ve}e.getEffectiveBaseTypeNode=pc;function vl(_){var ve=_f(_.heritageClauses,94);return ve&&ve.types.length>0?ve.types[0]:void 0}e.getClassExtendsHeritageElement=vl;function nt(_){if(Cn(_))return e.getJSDocImplementsTags(_).map(function(Tr){return Tr.class});var ve=_f(_.heritageClauses,117);return ve==null?void 0:ve.types}e.getEffectiveImplementsTypeNodes=nt;function Wp(_){return e.isInterfaceDeclaration(_)?df(_)||e.emptyArray:e.isClassLike(_)&&e.concatenate(e.singleElementArray(pc(_)),nt(_))||e.emptyArray}e.getAllSuperTypeNodes=Wp;function df(_){var ve=_f(_.heritageClauses,94);return ve?ve.types:void 0}e.getInterfaceBaseTypeNodes=df;function _f(_,ve){if(_)for(var Tr=0,Gr=_;Tr<Gr.length;Tr++){var Kt=Gr[Tr];if(Kt.token===ve)return Kt}}e.getHeritageClause=_f;function Ig(_,ve){for(;_;){if(_.kind===ve)return _;_=_.parent}}e.getAncestor=Ig;function pp(_){return 81<=_&&_<=162}e.isKeyword=pp;function Yl(_){return 126<=_&&_<=162}e.isContextualKeyword=Yl;function i_(_){return pp(_)&&!Yl(_)}e.isNonContextualKeyword=i_;function Lo(_){return 117<=_&&_<=125}e.isFutureReservedKeyword=Lo;function Mm(_){var ve=e.stringToToken(_);return ve!==void 0&&i_(ve)}e.isStringANonContextualKeyword=Mm;function J_(_){var ve=e.stringToToken(_);return ve!==void 0&&pp(ve)}e.isStringAKeyword=J_;function a_(_){var ve=_.originalKeywordKind;return!!ve&&!Yl(ve)}e.isIdentifierANonContextualKeyword=a_;function qp(_){return 2<=_&&_<=7}e.isTrivia=qp,function(_){_[_.Normal=0]="Normal",_[_.Generator=1]="Generator",_[_.Async=2]="Async",_[_.Invalid=4]="Invalid",_[_.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={}));function mf(_){if(!_)return 4;var ve=0;switch(_.kind){case 259:case 215:case 171:_.asteriskToken&&(ve|=1);case 216:Pc(_,512)&&(ve|=2);break}return _.body||(ve|=4),ve}e.getFunctionFlags=mf;function Fm(_){switch(_.kind){case 259:case 215:case 216:case 171:return _.body!==void 0&&_.asteriskToken===void 0&&Pc(_,512)}return!1}e.isAsyncFunction=Fm;function dp(_){return e.isStringLiteralLike(_)||e.isNumericLiteral(_)}e.isStringOrNumericLiteralLike=dp;function tl(_){return e.isPrefixUnaryExpression(_)&&(_.operator===39||_.operator===40)&&e.isNumericLiteral(_.operand)}e.isSignedNumericLiteral=tl;function Lm(_){var ve=e.getNameOfDeclaration(_);return!!ve&&o_(ve)}e.hasDynamicName=Lm;function o_(_){if(!(_.kind===164||_.kind===209))return!1;var ve=e.isElementAccessExpression(_)?Pi(_.argumentExpression):_.expression;return!dp(ve)&&!tl(ve)}e.isDynamicName=o_;function la(_){switch(_.kind){case 79:case 80:return _.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(_.text);case 164:var ve=_.expression;return dp(ve)?e.escapeLeadingUnderscores(ve.text):tl(ve)?ve.operator===40?e.tokenToString(ve.operator)+ve.operand.text:ve.operand.text:void 0;default:return e.Debug.assertNever(_)}}e.getPropertyNameForPropertyNameNode=la;function Mi(_){switch(_.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=Mi;function sl(_){return e.isMemberName(_)?e.idText(_):_.text}e.getTextOfIdentifierOrLiteral=sl;function Nu(_){return e.isMemberName(_)?_.escapedText:e.escapeLeadingUnderscores(_.text)}e.getEscapedTextOfIdentifierOrLiteral=Nu;function U_(_){return"__@".concat(e.getSymbolId(_),"@").concat(_.escapedName)}e.getPropertyNameForUniqueESSymbol=U_;function $p(_,ve){return"__#".concat(e.getSymbolId(_),"@").concat(ve)}e.getSymbolNameForPrivateIdentifier=$p;function Og(_){return e.startsWith(_.escapedName,"__@")}e.isKnownSymbol=Og;function V_(_){return e.startsWith(_.escapedName,"__#")}e.isPrivateIdentifierSymbol=V_;function Ls(_){return _.kind===79&&_.escapedText==="Symbol"}e.isESSymbolIdentifier=Ls;function Rm(_){return _.escapedText==="push"||_.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=Rm;function s_(_){var ve=z_(_);return ve.kind===166}e.isParameterDeclaration=s_;function z_(_){for(;_.kind===205;)_=_.parent.parent;return _}e.getRootDeclaration=z_;function Mg(_){var ve=_.kind;return ve===173||ve===215||ve===259||ve===216||ve===171||ve===174||ve===175||ve===264||ve===308}e.nodeStartsNewLexicalEnvironment=Mg;function ms(_){return Nh(_.pos)||Nh(_.end)}e.nodeIsSynthesized=ms;function Hp(_){return e.getParseTreeNode(_,e.isSourceFile)||_}e.getOriginalSourceFile=Hp,function(_){_[_.Left=0]="Left",_[_.Right=1]="Right"}(e.Associativity||(e.Associativity={}));function Bm(_){var ve=Sc(_),Tr=_.kind===211&&_.arguments!==void 0;return gf(_.kind,ve,Tr)}e.getExpressionAssociativity=Bm;function gf(_,ve,Tr){switch(_){case 211:return Tr?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(ve){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}e.getOperatorAssociativity=gf;function Fg(_){var ve=Sc(_),Tr=_.kind===211&&_.arguments!==void 0;return _p(_.kind,ve,Tr)}e.getExpressionPrecedence=Fg;function Sc(_){return _.kind===223?_.operatorToken.kind:_.kind===221||_.kind===222?_.operator:_.kind}e.getOperator=Sc,function(_){_[_.Comma=0]="Comma",_[_.Spread=1]="Spread",_[_.Yield=2]="Yield",_[_.Assignment=3]="Assignment",_[_.Conditional=4]="Conditional",_[_.Coalesce=4]="Coalesce",_[_.LogicalOR=5]="LogicalOR",_[_.LogicalAND=6]="LogicalAND",_[_.BitwiseOR=7]="BitwiseOR",_[_.BitwiseXOR=8]="BitwiseXOR",_[_.BitwiseAND=9]="BitwiseAND",_[_.Equality=10]="Equality",_[_.Relational=11]="Relational",_[_.Shift=12]="Shift",_[_.Additive=13]="Additive",_[_.Multiplicative=14]="Multiplicative",_[_.Exponentiation=15]="Exponentiation",_[_.Unary=16]="Unary",_[_.Update=17]="Update",_[_.LeftHandSide=18]="LeftHandSide",_[_.Member=19]="Member",_[_.Primary=20]="Primary",_[_.Highest=20]="Highest",_[_.Lowest=0]="Lowest",_[_.Invalid=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={}));function _p(_,ve,Tr){switch(_){case 354:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(ve){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return au(ve)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return Tr?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}e.getOperatorPrecedence=_p;function au(_){switch(_){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=au;function Dh(_){return e.filter(_,function(ve){switch(ve.kind){case 291:return!!ve.expression;case 11:return!ve.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=Dh;function Lg(){var _=[],ve=[],Tr=new e.Map,Gr=!1;return{add:ti,lookup:Kt,getGlobalDiagnostics:fi,getDiagnostics:Vi};function Kt(ja){var Zi;if(ja.file?Zi=Tr.get(ja.file.fileName):Zi=_,!!Zi){var Zo=e.binarySearch(Zi,ja,e.identity,$u);if(Zo>=0)return Zi[Zo]}}function ti(ja){var Zi;ja.file?(Zi=Tr.get(ja.file.fileName),Zi||(Zi=[],Tr.set(ja.file.fileName,Zi),e.insertSorted(ve,ja.file.fileName,e.compareStringsCaseSensitive))):(Gr&&(Gr=!1,_=_.slice()),Zi=_),e.insertSorted(Zi,ja,$u)}function fi(){return Gr=!0,_}function Vi(ja){if(ja)return Tr.get(ja)||[];var Zi=e.flatMapToMutable(ve,function(Zo){return Tr.get(Zo)});return _.length&&Zi.unshift.apply(Zi,_),Zi}}e.createDiagnosticCollection=Lg;var Rg=/\$\{/g;function jm(_){return _.replace(Rg,"\\${")}function Bg(_){return _&&!!(e.isNoSubstitutionTemplateLiteral(_)?_.templateFlags:_.head.templateFlags||e.some(_.templateSpans,function(ve){return!!ve.literal.templateFlags}))}e.hasInvalidEscape=Bg;var Ff=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,mp=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Gp=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,W_=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Ol(_){var ve=_.toString(16).toUpperCase(),Tr=("0000"+ve).slice(-4);return"\\u"+Tr}function xd(_,ve,Tr){if(_.charCodeAt(0)===0){var Gr=Tr.charCodeAt(ve+_.length);return Gr>=48&&Gr<=57?"\\x00":"\\0"}return W_.get(_)||Ol(_.charCodeAt(0))}function Kp(_,ve){var Tr=ve===96?Gp:ve===39?mp:Ff;return _.replace(Tr,xd)}e.escapeString=Kp;var q_=/[^\u0000-\u007F]/g;function Qp(_,ve){return _=Kp(_,ve),q_.test(_)?_.replace(q_,function(Tr){return Ol(Tr.charCodeAt(0))}):_}e.escapeNonAsciiString=Qp;var Td=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,$_=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ed=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Jm(_){var ve=_.toString(16).toUpperCase();return"&#x"+ve+";"}function Cd(_){return _.charCodeAt(0)===0?"&#0;":Ed.get(_)||Jm(_.charCodeAt(0))}function Xp(_,ve){var Tr=ve===39?$_:Td;return _.replace(Tr,Cd)}e.escapeJsxAttributeString=Xp;function H_(_){var ve=_.length;return ve>=2&&_.charCodeAt(0)===_.charCodeAt(ve-1)&&Yp(_.charCodeAt(0))?_.substring(1,ve-1):_}e.stripQuotes=H_;function Yp(_){return _===39||_===34||_===96}function ou(_){var ve=_.charCodeAt(0);return ve>=97&&ve<=122||e.stringContains(_,"-")||e.stringContains(_,":")}e.isIntrinsicJsxName=ou;var nl=[""," "];function gp(_){for(var ve=nl[1],Tr=nl.length;Tr<=_;Tr++)nl.push(nl[Tr-1]+ve);return nl[_]}e.getIndentString=gp;function Zp(){return nl[1].length}e.getIndentSize=Zp;function ed(){return e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders")}e.isNightly=ed;function Ml(_){var ve,Tr,Gr,Kt,ti,fi=!1;function Vi(Ms){var La=e.computeLineStarts(Ms);La.length>1?(Kt=Kt+La.length-1,ti=ve.length-Ms.length+e.last(La),Gr=ti-ve.length===0):Gr=!1}function ja(Ms){Ms&&Ms.length&&(Gr&&(Ms=gp(Tr)+Ms,Gr=!1),ve+=Ms,Vi(Ms))}function Zi(Ms){Ms&&(fi=!1),ja(Ms)}function Zo(Ms){Ms&&(fi=!0),ja(Ms)}function Is(){ve="",Tr=0,Gr=!0,Kt=0,ti=0,fi=!1}function Qc(Ms){Ms!==void 0&&(ve+=Ms,Vi(Ms),fi=!1)}function Vc(Ms){Ms&&Ms.length&&Zi(Ms)}function ac(Ms){(!Gr||Ms)&&(ve+=_,Kt++,ti=ve.length,Gr=!0,fi=!1)}function Fa(){return Gr?ve.length:ve.length+_.length}return Is(),{write:Zi,rawWrite:Qc,writeLiteral:Vc,writeLine:ac,increaseIndent:function(){Tr++},decreaseIndent:function(){Tr--},getIndent:function(){return Tr},getTextPos:function(){return ve.length},getLine:function(){return Kt},getColumn:function(){return Gr?Tr*Zp():ve.length-ti},getText:function(){return ve},isAtStartOfLine:function(){return Gr},hasTrailingComment:function(){return fi},hasTrailingWhitespace:function(){return!!ve.length&&e.isWhiteSpaceLike(ve.charCodeAt(ve.length-1))},clear:Is,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:Zi,writeOperator:Zi,writeParameter:Zi,writeProperty:Zi,writePunctuation:Zi,writeSpace:Zi,writeStringLiteral:Zi,writeSymbol:function(Ms,La){return Zi(Ms)},writeTrailingSemicolon:Zi,writeComment:Zo,getTextPosWithWriteLine:Fa}}e.createTextWriter=Ml;function xh(_){var ve=!1;function Tr(){ve&&(_.writeTrailingSemicolon(";"),ve=!1)}return n(n({},_),{writeTrailingSemicolon:function(){ve=!0},writeLiteral:function(Gr){Tr(),_.writeLiteral(Gr)},writeStringLiteral:function(Gr){Tr(),_.writeStringLiteral(Gr)},writeSymbol:function(Gr,Kt){Tr(),_.writeSymbol(Gr,Kt)},writePunctuation:function(Gr){Tr(),_.writePunctuation(Gr)},writeKeyword:function(Gr){Tr(),_.writeKeyword(Gr)},writeOperator:function(Gr){Tr(),_.writeOperator(Gr)},writeParameter:function(Gr){Tr(),_.writeParameter(Gr)},writeSpace:function(Gr){Tr(),_.writeSpace(Gr)},writeProperty:function(Gr){Tr(),_.writeProperty(Gr)},writeComment:function(Gr){Tr(),_.writeComment(Gr)},writeLine:function(){Tr(),_.writeLine()},increaseIndent:function(){Tr(),_.increaseIndent()},decreaseIndent:function(){Tr(),_.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=xh;function cl(_){return _.useCaseSensitiveFileNames?_.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=cl;function kd(_){return e.createGetCanonicalFileName(cl(_))}e.hostGetCanonicalFileName=kd;function Fl(_,ve,Tr){return ve.moduleName||c_(_,ve.fileName,Tr&&Tr.fileName)}e.getResolvedExternalModuleName=Fl;function yl(_,ve){return _.getCanonicalFileName(e.getNormalizedAbsolutePath(ve,_.getCurrentDirectory()))}function hf(_,ve,Tr){var Gr=ve.getExternalModuleFileFromDeclaration(Tr);if(!(!Gr||Gr.isDeclarationFile)){var Kt=Jo(Tr);if(!(Kt&&e.isStringLiteralLike(Kt)&&!e.pathIsRelative(Kt.text)&&yl(_,Gr.path).indexOf(yl(_,e.ensureTrailingDirectorySeparator(_.getCommonSourceDirectory())))===-1))return Fl(_,Gr)}}e.getExternalModuleNameFromDeclaration=hf;function c_(_,ve,Tr){var Gr=function(ja){return _.getCanonicalFileName(ja)},Kt=e.toPath(Tr?e.getDirectoryPath(Tr):_.getCommonSourceDirectory(),_.getCurrentDirectory(),Gr),ti=e.getNormalizedAbsolutePath(ve,_.getCurrentDirectory()),fi=e.getRelativePathToDirectoryOrUrl(Kt,ti,Kt,Gr,!1),Vi=Ov(fi);return Tr?e.ensurePathIsNonModuleName(Vi):Vi}e.getExternalModuleNameFromPath=c_;function jg(_,ve,Tr){var Gr=ve.getCompilerOptions(),Kt;return Gr.outDir?Kt=Ov(Vm(_,ve,Gr.outDir)):Kt=Ov(_),Kt+Tr}e.getOwnEmitOutputFilePath=jg;function Um(_,ve){return G_(_,ve.getCompilerOptions(),ve.getCurrentDirectory(),ve.getCommonSourceDirectory(),function(Tr){return ve.getCanonicalFileName(Tr)})}e.getDeclarationEmitOutputFilePath=Um;function G_(_,ve,Tr,Gr,Kt){var ti=ve.declarationDir||ve.outDir,fi=ti?Gc(_,ti,Tr,Gr,Kt):_,Vi=Yo(fi);return Ov(fi)+Vi}e.getDeclarationEmitOutputFilePathWorker=G_;function Yo(_){return e.fileExtensionIsOneOf(_,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(_,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(_,[".json"])?".json.d.ts":".d.ts"}e.getDeclarationEmitExtensionForPath=Yo;function Ad(_){return e.fileExtensionIsOneOf(_,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(_,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(_,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}e.getPossibleOriginalInputExtensionForExtension=Ad;function vf(_){return _.outFile||_.out}e.outFile=vf;function Pd(_,ve){var Tr,Gr;if(_.paths)return(Tr=_.baseUrl)!==null&&Tr!==void 0?Tr:e.Debug.checkDefined(_.pathsBasePath||((Gr=ve.getCurrentDirectory)===null||Gr===void 0?void 0:Gr.call(ve)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=Pd;function Vs(_,ve,Tr){var Gr=_.getCompilerOptions();if(vf(Gr)){var Kt=od(Gr),ti=Gr.emitDeclarationOnly||Kt===e.ModuleKind.AMD||Kt===e.ModuleKind.System;return e.filter(_.getSourceFiles(),function(Vi){return(ti||!e.isExternalModule(Vi))&&gc(Vi,_,Tr)})}else{var fi=ve===void 0?_.getSourceFiles():[ve];return e.filter(fi,function(Vi){return gc(Vi,_,Tr)})}}e.getSourceFilesToEmit=Vs;function gc(_,ve,Tr){var Gr=ve.getCompilerOptions();return!(Gr.noEmitForJsFiles&&ln(_))&&!_.isDeclarationFile&&!ve.isSourceFileFromExternalLibrary(_)&&(Tr||!(Or(_)&&ve.getResolvedProjectReferenceToRedirect(_.fileName))&&!ve.isSourceOfProjectReferenceRedirect(_.fileName))}e.sourceFileMayBeEmitted=gc;function Vm(_,ve,Tr){return Gc(_,Tr,ve.getCurrentDirectory(),ve.getCommonSourceDirectory(),function(Gr){return ve.getCanonicalFileName(Gr)})}e.getSourceFilePathInNewDir=Vm;function Gc(_,ve,Tr,Gr,Kt){var ti=e.getNormalizedAbsolutePath(_,Tr),fi=Kt(ti).indexOf(Kt(Gr))===0;return ti=fi?ti.substring(Gr.length):ti,e.combinePaths(ve,ti)}e.getSourceFilePathInNewDirWorker=Gc;function Xn(_,ve,Tr,Gr,Kt,ti,fi){_.writeFile(Tr,Gr,Kt,function(Vi){ve.add(bn(e.Diagnostics.Could_not_write_file_0_Colon_1,Tr,Vi))},ti,fi)}e.writeFile=Xn;function sc(_,ve,Tr){if(_.length>e.getRootLength(_)&&!Tr(_)){var Gr=e.getDirectoryPath(_);sc(Gr,ve,Tr),ve(_)}}function ba(_,ve,Tr,Gr,Kt,ti){try{Gr(_,ve,Tr)}catch{sc(e.getDirectoryPath(e.normalizePath(_)),Kt,ti),Gr(_,ve,Tr)}}e.writeFileEnsuringDirectories=ba;function yf(_,ve){var Tr=e.getLineStarts(_);return e.computeLineOfPosition(Tr,ve)}e.getLineOfLocalPosition=yf;function bl(_,ve){return e.computeLineOfPosition(_,ve)}e.getLineOfLocalPositionFromLineMap=bl;function Lf(_){return e.find(_.members,function(ve){return e.isConstructorDeclaration(ve)&&he(ve.body)})}e.getFirstConstructorWithBody=Lf;function Wn(_){if(_&&_.parameters.length>0){var ve=_.parameters.length===2&&zs(_.parameters[0]);return _.parameters[ve?1:0]}}e.getSetAccessorValueParameter=Wn;function su(_){var ve=Wn(_);return ve&&ve.type}e.getSetAccessorTypeAnnotationNode=su;function wd(_){if(_.parameters.length&&!e.isJSDocSignature(_)){var ve=_.parameters[0];if(zs(ve))return ve}}e.getThisParameter=wd;function zs(_){return ns(_.name)}e.parameterIsThisKeyword=zs;function ns(_){return!!_&&_.kind===79&&Nd(_)}e.isThisIdentifier=ns;function ul(_){if(!ns(_))return!1;for(;e.isQualifiedName(_.parent)&&_.parent.left===_;)_=_.parent;return _.parent.kind===183}e.isThisInTypeQuery=ul;function Nd(_){return _.originalKeywordKind===108}e.identifierIsThisKeyword=Nd;function Id(_,ve){var Tr,Gr,Kt,ti;return Lm(ve)?(Tr=ve,ve.kind===174?Kt=ve:ve.kind===175?ti=ve:e.Debug.fail("Accessor has wrong kind")):e.forEach(_,function(fi){if(e.isAccessor(fi)&&Dc(fi)===Dc(ve)){var Vi=la(fi.name),ja=la(ve.name);Vi===ja&&(Tr?Gr||(Gr=fi):Tr=fi,fi.kind===174&&!Kt&&(Kt=fi),fi.kind===175&&!ti&&(ti=fi))}}),{firstAccessor:Tr,secondAccessor:Gr,getAccessor:Kt,setAccessor:ti}}e.getAllAccessorDeclarations=Id;function bf(_){if(!(!Cn(_)&&e.isFunctionDeclaration(_))){var ve=_.type;return ve||!Cn(_)?ve:e.isJSDocPropertyLikeTag(_)?_.typeExpression&&_.typeExpression.type:e.getJSDocType(_)}}e.getEffectiveTypeAnnotationNode=bf;function Ac(_){return _.type}e.getTypeAnnotationNode=Ac;function hp(_){return e.isJSDocSignature(_)?_.type&&_.type.typeExpression&&_.type.typeExpression.type:_.type||(Cn(_)?e.getJSDocReturnType(_):void 0)}e.getEffectiveReturnTypeNode=hp;function Zl(_){return e.flatMap(e.getJSDocTags(_),function(ve){return Rf(ve)?ve.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=Zl;function Rf(_){return e.isJSDocTemplateTag(_)&&!(_.parent.kind===323&&_.parent.tags.some(Nl))}function zm(_){var ve=Wn(_);return ve&&bf(ve)}e.getEffectiveSetAccessorTypeAnnotationNode=zm;function Od(_,ve,Tr,Gr){Rc(_,ve,Tr.pos,Gr)}e.emitNewLineBeforeLeadingComments=Od;function Rc(_,ve,Tr,Gr){Gr&&Gr.length&&Tr!==Gr[0].pos&&bl(_,Tr)!==bl(_,Gr[0].pos)&&ve.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=Rc;function vp(_,ve,Tr,Gr){Tr!==Gr&&bl(_,Tr)!==bl(_,Gr)&&ve.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=vp;function rd(_,ve,Tr,Gr,Kt,ti,fi,Vi){if(Gr&&Gr.length>0){Kt&&Tr.writeSpace(" ");for(var ja=!1,Zi=0,Zo=Gr;Zi<Zo.length;Zi++){var Is=Zo[Zi];ja&&(Tr.writeSpace(" "),ja=!1),Vi(_,ve,Tr,Is.pos,Is.end,fi),Is.hasTrailingNewLine?Tr.writeLine():ja=!0}ja&&ti&&Tr.writeSpace(" ")}}e.emitComments=rd;function yp(_,ve,Tr,Gr,Kt,ti,fi){var Vi,ja;if(fi?Kt.pos===0&&(Vi=e.filter(e.getLeadingCommentRanges(_,Kt.pos),La)):Vi=e.getLeadingCommentRanges(_,Kt.pos),Vi){for(var Zi=[],Zo=void 0,Is=0,Qc=Vi;Is<Qc.length;Is++){var Vc=Qc[Is];if(Zo){var ac=bl(ve,Zo.end),Fa=bl(ve,Vc.pos);if(Fa>=ac+2)break}Zi.push(Vc),Zo=Vc}if(Zi.length){var ac=bl(ve,e.last(Zi).end),Ms=bl(ve,e.skipTrivia(_,Kt.pos));Ms>=ac+2&&(Od(ve,Tr,Kt,Vi),rd(_,ve,Tr,Zi,!1,!0,ti,Gr),ja={nodePos:Kt.pos,detachedCommentEndPos:e.last(Zi).end})}}return ja;function La(pm){return G(_,pm.pos)}}e.emitDetachedComments=yp;function ef(_,ve,Tr,Gr,Kt,ti){if(_.charCodeAt(Gr+1)===42)for(var fi=e.computeLineAndCharacterOfPosition(ve,Gr),Vi=ve.length,ja=void 0,Zi=Gr,Zo=fi.line;Zi<Kt;Zo++){var Is=Zo+1===Vi?_.length+1:ve[Zo+1];if(Zi!==Gr){ja===void 0&&(ja=K_(_,ve[fi.line],Gr));var Qc=Tr.getIndent()*Zp(),Vc=Qc-ja+K_(_,Zi,Is);if(Vc>0){var ac=Vc%Zp(),Fa=gp((Vc-ac)/Zp());for(Tr.rawWrite(Fa);ac;)Tr.rawWrite(" "),ac--}else Tr.rawWrite("")}Sl(_,Kt,Tr,ti,Zi,Is),Zi=Is}else Tr.writeComment(_.substring(Gr,Kt))}e.writeCommentRange=ef;function Sl(_,ve,Tr,Gr,Kt,ti){var fi=Math.min(ve,ti-1),Vi=e.trimString(_.substring(Kt,fi));Vi?(Tr.writeComment(Vi),fi!==ve&&Tr.writeLine()):Tr.rawWrite(Gr)}function K_(_,ve,Tr){for(var Gr=0;ve<Tr&&e.isWhiteSpaceSingleLine(_.charCodeAt(ve));ve++)_.charCodeAt(ve)===9?Gr+=Zp()-Gr%Zp():Gr++;return Gr}function Wm(_){return td(_)!==0}e.hasEffectiveModifiers=Wm;function bp(_){return Iu(_)!==0}e.hasSyntacticModifiers=bp;function u_(_,ve){return!!Md(_,ve)}e.hasEffectiveModifier=u_;function Pc(_,ve){return!!Jg(_,ve)}e.hasSyntacticModifier=Pc;function Dc(_){return e.isClassElement(_)&&Ll(_)||e.isClassStaticBlockDeclaration(_)}e.isStatic=Dc;function Ll(_){return Pc(_,32)}e.hasStaticModifier=Ll;function Ys(_){return u_(_,16384)}e.hasOverrideModifier=Ys;function qm(_){return Pc(_,256)}e.hasAbstractModifier=qm;function mo(_){return Pc(_,2)}e.hasAmbientModifier=mo;function Zn(_){return Pc(_,128)}e.hasAccessorModifier=Zn;function Bc(_){return u_(_,64)}e.hasEffectiveReadonlyModifier=Bc;function Sf(_){return Pc(_,131072)}e.hasDecorators=Sf;function Md(_,ve){return td(_)&ve}e.getSelectedEffectiveModifierFlags=Md;function Jg(_,ve){return Iu(_)&ve}e.getSelectedSyntacticModifierFlags=Jg;function l_(_,ve,Tr){return _.kind>=0&&_.kind<=162?0:(_.modifierFlagsCache&536870912||(_.modifierFlagsCache=xu(_)|536870912),ve&&!(_.modifierFlagsCache&4096)&&(Tr||Cn(_))&&_.parent&&(_.modifierFlagsCache|=Sp(_)|4096),_.modifierFlagsCache&-536875009)}function td(_){return l_(_,!0)}e.getEffectiveModifierFlags=td;function Uu(_){return l_(_,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=Uu;function Iu(_){return l_(_,!1)}e.getSyntacticModifierFlags=Iu;function Sp(_){var ve=0;return _.parent&&!e.isParameter(_)&&(Cn(_)&&(e.getJSDocPublicTagNoCache(_)&&(ve|=4),e.getJSDocPrivateTagNoCache(_)&&(ve|=8),e.getJSDocProtectedTagNoCache(_)&&(ve|=16),e.getJSDocReadonlyTagNoCache(_)&&(ve|=64),e.getJSDocOverrideTagNoCache(_)&&(ve|=16384)),e.getJSDocDeprecatedTagNoCache(_)&&(ve|=8192)),ve}function f_(_){return xu(_)|Sp(_)}e.getEffectiveModifierFlagsNoCache=f_;function xu(_){var ve=e.canHaveModifiers(_)?Fd(_.modifiers):0;return(_.flags&4||_.kind===79&&_.isInJSDocNamespace)&&(ve|=1),ve}e.getSyntacticModifierFlagsNoCache=xu;function Fd(_){var ve=0;if(_)for(var Tr=0,Gr=_;Tr<Gr.length;Tr++){var Kt=Gr[Tr];ve|=Os(Kt.kind)}return ve}e.modifiersToFlags=Fd;function Os(_){switch(_){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}e.modifierToFlag=Os;function ll(_){return _===56||_===55||_===53}e.isLogicalOperator=ll;function Q_(_){return _===75||_===76||_===77}e.isLogicalOrCoalescingAssignmentOperator=Q_;function ic(_){return Q_(_.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=ic;function Rl(_){return _>=63&&_<=78}e.isAssignmentOperator=Rl;function Dp(_){var ve=X_(_);return ve&&!ve.isImplements?ve.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=Dp;function X_(_){return e.isExpressionWithTypeArguments(_)&&e.isHeritageClause(_.parent)&&e.isClassLike(_.parent.parent)?{class:_.parent.parent,isImplements:_.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=X_;function p_(_,ve){return e.isBinaryExpression(_)&&(ve?_.operatorToken.kind===63:Rl(_.operatorToken.kind))&&e.isLeftHandSideExpression(_.left)}e.isAssignmentExpression=p_;function Vu(_){return p_(_.parent)&&_.parent.left===_}e.isLeftHandSideOfAssignment=Vu;function Es(_){if(p_(_,!0)){var ve=_.left.kind;return ve===207||ve===206}return!1}e.isDestructuringAssignment=Es;function Y_(_){return Dp(_)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=Y_;function Bl(_){return _.kind===79||Ld(_)}e.isEntityNameExpression=Bl;function Bf(_){switch(_.kind){case 79:return _;case 163:do _=_.left;while(_.kind!==79);return _;case 208:do _=_.expression;while(_.kind!==79);return _}}e.getFirstIdentifier=Bf;function xp(_){return _.kind===79||_.kind===108||_.kind===106||_.kind===233||_.kind===208&&xp(_.expression)||_.kind===214&&xp(_.expression)}e.isDottedName=xp;function Ld(_){return e.isPropertyAccessExpression(_)&&e.isIdentifier(_.name)&&Bl(_.expression)}e.isPropertyAccessEntityNameExpression=Ld;function nd(_){if(e.isPropertyAccessExpression(_)){var ve=nd(_.expression);if(ve!==void 0)return ve+"."+Vr(_.name)}else if(e.isElementAccessExpression(_)){var ve=nd(_.expression);if(ve!==void 0&&e.isPropertyName(_.argumentExpression))return ve+"."+la(_.argumentExpression)}else if(e.isIdentifier(_))return e.unescapeLeadingUnderscores(_.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=nd;function Df(_){return Da(_)&&ua(_)==="prototype"}e.isPrototypeAccess=Df;function d_(_){return _.parent.kind===163&&_.parent.right===_||_.parent.kind===208&&_.parent.name===_}e.isRightSideOfQualifiedNameOrPropertyAccess=d_;function __(_){return e.isPropertyAccessExpression(_.parent)&&_.parent.name===_||e.isElementAccessExpression(_.parent)&&_.parent.argumentExpression===_}e.isRightSideOfAccessExpression=__;function Z_(_){return e.isQualifiedName(_.parent)&&_.parent.right===_||e.isPropertyAccessExpression(_.parent)&&_.parent.name===_||e.isJSDocMemberName(_.parent)&&_.parent.right===_}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=Z_;function rf(_){return _.kind===207&&_.properties.length===0}e.isEmptyObjectLiteral=rf;function xf(_){return _.kind===206&&_.elements.length===0}e.isEmptyArrayLiteral=xf;function em(_){if(!(!Ug(_)||!_.declarations))for(var ve=0,Tr=_.declarations;ve<Tr.length;ve++){var Gr=Tr[ve];if(Gr.localSymbol)return Gr.localSymbol}}e.getLocalSymbolForExportDefault=em;function Ug(_){return _&&e.length(_.declarations)>0&&Pc(_.declarations[0],1024)}function zu(_){return e.find(WD,function(ve){return e.fileExtensionIs(_,ve)})}e.tryExtractTSExtension=zu;function $m(_){for(var ve=[],Tr=_.length,Gr=0;Gr<Tr;Gr++){var Kt=_.charCodeAt(Gr);Kt<128?ve.push(Kt):Kt<2048?(ve.push(Kt>>6|192),ve.push(Kt&63|128)):Kt<65536?(ve.push(Kt>>12|224),ve.push(Kt>>6&63|128),ve.push(Kt&63|128)):Kt<131072?(ve.push(Kt>>18|240),ve.push(Kt>>12&63|128),ve.push(Kt>>6&63|128),ve.push(Kt&63|128)):e.Debug.assert(!1,"Unexpected code point")}return ve}var Tf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function na(_){for(var ve="",Tr=$m(_),Gr=0,Kt=Tr.length,ti,fi,Vi,ja;Gr<Kt;)ti=Tr[Gr]>>2,fi=(Tr[Gr]&3)<<4|Tr[Gr+1]>>4,Vi=(Tr[Gr+1]&15)<<2|Tr[Gr+2]>>6,ja=Tr[Gr+2]&63,Gr+1>=Kt?Vi=ja=64:Gr+2>=Kt&&(ja=64),ve+=Tf.charAt(ti)+Tf.charAt(fi)+Tf.charAt(Vi)+Tf.charAt(ja),Gr+=3;return ve}e.convertToBase64=na;function Tp(_){for(var ve="",Tr=0,Gr=_.length;Tr<Gr;){var Kt=_[Tr];if(Kt<128)ve+=String.fromCharCode(Kt),Tr++;else if((Kt&192)===192){var ti=Kt&63;Tr++;for(var fi=_[Tr];(fi&192)===128;)ti=ti<<6|fi&63,Tr++,fi=_[Tr];ve+=String.fromCharCode(ti)}else ve+=String.fromCharCode(Kt),Tr++}return ve}function Hn(_,ve){return _&&_.base64encode?_.base64encode(ve):na(ve)}e.base64encode=Hn;function rm(_,ve){if(_&&_.base64decode)return _.base64decode(ve);for(var Tr=ve.length,Gr=[],Kt=0;Kt<Tr&&ve.charCodeAt(Kt)!==Tf.charCodeAt(64);){var ti=Tf.indexOf(ve[Kt]),fi=Tf.indexOf(ve[Kt+1]),Vi=Tf.indexOf(ve[Kt+2]),ja=Tf.indexOf(ve[Kt+3]),Zi=(ti&63)<<2|fi>>4&3,Zo=(fi&15)<<4|Vi>>2&15,Is=(Vi&3)<<6|ja&63;Zo===0&&Vi!==0?Gr.push(Zi):Is===0&&ja!==0?Gr.push(Zi,Zo):Gr.push(Zi,Zo,Is),Kt+=4}return Tp(Gr)}e.base64decode=rm;function m_(_,ve){var Tr=e.isString(ve)?ve:ve.readFile(_);if(Tr){var Gr=e.parseConfigFileTextToJson(_,Tr);return Gr.error?void 0:Gr.config}}e.readJsonOrUndefined=m_;function g_(_,ve){return m_(_,ve)||{}}e.readJson=g_;function Ep(_,ve){return!ve.directoryExists||ve.directoryExists(_)}e.directoryProbablyExists=Ep;var Hm=`\r
`,Cp=`
`;function Wu(_,ve){switch(_.newLine){case 0:return Hm;case 1:return Cp}return ve?ve():e.sys?e.sys.newLine:Hm}e.getNewLineCharacter=Wu;function id(_,ve){return ve===void 0&&(ve=_),e.Debug.assert(ve>=_||ve===-1),{pos:_,end:ve}}e.createRange=id;function tm(_,ve){return id(_.pos,ve)}e.moveRangeEnd=tm;function fl(_,ve){return id(ve,_.end)}e.moveRangePos=fl;function jf(_){var ve=e.canHaveModifiers(_)?e.findLast(_.modifiers,e.isDecorator):void 0;return ve&&!Nh(ve.end)?fl(_,ve.end):_}e.moveRangePastDecorators=jf;function Gm(_){var ve=e.canHaveModifiers(_)?e.lastOrUndefined(_.modifiers):void 0;return ve&&!Nh(ve.end)?fl(_,ve.end):jf(_)}e.moveRangePastModifiers=Gm;function Km(_){return _.pos===_.end}e.isCollapsedRange=Km;function ad(_,ve){return id(_,_+e.tokenToString(ve).length)}e.createTokenRange=ad;function Dl(_,ve){return bt(_,_,ve)}e.rangeIsOnSingleLine=Dl;function V(_,ve,Tr){return di(io(_,Tr,!1),io(ve,Tr,!1),Tr)}e.rangeStartPositionsAreOnSameLine=V;function ir(_,ve,Tr){return di(_.end,ve.end,Tr)}e.rangeEndPositionsAreOnSameLine=ir;function bt(_,ve,Tr){return di(io(_,Tr,!1),ve.end,Tr)}e.rangeStartIsOnSameLineAsRangeEnd=bt;function tn(_,ve,Tr){return di(_.end,io(ve,Tr,!1),Tr)}e.rangeEndIsOnSameLineAsRangeStart=tn;function oi(_,ve,Tr,Gr){var Kt=io(ve,Tr,Gr);return e.getLinesBetweenPositions(Tr,_.end,Kt)}e.getLinesBetweenRangeEndAndRangeStart=oi;function Ii(_,ve,Tr){return e.getLinesBetweenPositions(Tr,_.end,ve.end)}e.getLinesBetweenRangeEndPositions=Ii;function Hi(_,ve){return!di(_.pos,_.end,ve)}e.isNodeArrayMultiLine=Hi;function di(_,ve,Tr){return e.getLinesBetweenPositions(Tr,_,ve)===0}e.positionsAreOnSameLine=di;function io(_,ve,Tr){return Nh(_.pos)?-1:e.skipTrivia(ve.text,_.pos,!1,Tr)}e.getStartPositionOfRange=io;function fa(_,ve,Tr,Gr){var Kt=e.skipTrivia(Tr.text,_,!1,Gr),ti=jc(Kt,ve,Tr);return e.getLinesBetweenPositions(Tr,ti??ve,Kt)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=fa;function pa(_,ve,Tr,Gr){var Kt=e.skipTrivia(Tr.text,_,!1,Gr);return e.getLinesBetweenPositions(Tr,_,Math.min(ve,Kt))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=pa;function jc(_,ve,Tr){for(ve===void 0&&(ve=0);_-- >ve;)if(!e.isWhiteSpaceLike(Tr.text.charCodeAt(_)))return _}function pl(_){var ve=e.getParseTreeNode(_);if(ve)switch(ve.parent.kind){case 263:case 264:return ve===ve.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=pl;function Hs(_){return e.filter(_.declarations,qu)}e.getInitializedVariables=Hs;function qu(_){return _.initializer!==void 0}function il(_){return _.watch&&e.hasProperty(_,"watch")}e.isWatchSet=il;function jl(_){_.close()}e.closeFileWatcher=jl;function Jf(_){return _.flags&33554432?_.checkFlags:0}e.getCheckFlags=Jf;function Qm(_,ve){if(ve===void 0&&(ve=!1),_.valueDeclaration){var Tr=ve&&_.declarations&&e.find(_.declarations,e.isSetAccessorDeclaration)||_.flags&32768&&e.find(_.declarations,e.isGetAccessorDeclaration)||_.valueDeclaration,Gr=e.getCombinedModifierFlags(Tr);return _.parent&&_.parent.flags&32?Gr:Gr&-29}if(Jf(_)&6){var Kt=_.checkFlags,ti=Kt&1024?8:Kt&256?4:16,fi=Kt&2048?32:0;return ti|fi}return _.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=Qm;function Vg(_,ve){return _.flags&2097152?ve.getAliasedSymbol(_):_}e.skipAlias=Vg;function Uf(_){return _.exportSymbol?_.exportSymbol.flags|_.flags:_.flags}e.getCombinedLocalAndExportSymbolFlags=Uf;function nm(_){return Ef(_)===1}e.isWriteOnlyAccess=nm;function im(_){return Ef(_)!==0}e.isWriteAccess=im;var Xm;(function(_){_[_.Read=0]="Read",_[_.Write=1]="Write",_[_.ReadWrite=2]="ReadWrite"})(Xm||(Xm={}));function Ef(_){var ve=_.parent;if(!ve)return 0;switch(ve.kind){case 214:return Ef(ve);case 222:case 221:var Tr=ve.operator;return Tr===45||Tr===46?Vi():0;case 223:var Gr=ve,Kt=Gr.left,ti=Gr.operatorToken;return Kt===_&&Rl(ti.kind)?ti.kind===63?1:Vi():0;case 208:return ve.name!==_?0:Ef(ve);case 299:{var fi=Ef(ve.parent);return _===ve.name?dl(fi):fi}case 300:return _===ve.objectAssignmentInitializer?0:Ef(ve.parent);case 206:return Ef(ve);default:return 0}function Vi(){return ve.parent&&Mt(ve.parent).kind===241?1:2}}function dl(_){switch(_){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(_)}}function am(_,ve){if(!_||!ve||Object.keys(_).length!==Object.keys(ve).length)return!1;for(var Tr in _)if(typeof _[Tr]=="object"){if(!am(_[Tr],ve[Tr]))return!1}else if(typeof _[Tr]!="function"&&_[Tr]!==ve[Tr])return!1;return!0}e.compareDataObjects=am;function Ym(_,ve){_.forEach(ve),_.clear()}e.clearMap=Ym;function Th(_,ve,Tr){var Gr=Tr.onDeleteValue,Kt=Tr.onExistingValue;_.forEach(function(ti,fi){var Vi=ve.get(fi);Vi===void 0?(_.delete(fi),Gr(ti,fi)):Kt&&Kt(ti,Vi,fi)})}e.mutateMapSkippingNewValues=Th;function zg(_,ve,Tr){Th(_,ve,Tr);var Gr=Tr.createNewValue;ve.forEach(function(Kt,ti){_.has(ti)||_.set(ti,Gr(ti,Kt))})}e.mutateMap=zg;function om(_){if(_.flags&32){var ve=Tv(_);return!!ve&&Pc(ve,256)}return!1}e.isAbstractConstructorSymbol=om;function Tv(_){var ve;return(ve=_.declarations)===null||ve===void 0?void 0:ve.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=Tv;function Eh(_){return _.flags&3899393?_.objectFlags:0}e.getObjectFlags=Eh;function Ch(_,ve){return ve.getSignaturesOfType(_,0).length!==0||ve.getSignaturesOfType(_,1).length!==0}e.typeHasCallOrConstructSignatures=Ch;function Zm(_,ve){return!!e.forEachAncestorDirectory(_,function(Tr){return ve(Tr)?!0:void 0})}e.forSomeAncestorDirectory=Zm;function kh(_){return!!_&&!!_.declarations&&!!_.declarations[0]&&e.isNamespaceExportDeclaration(_.declarations[0])}e.isUMDExportSymbol=kh;function Wg(_){var ve=_.moduleSpecifier;return e.isStringLiteral(ve)?ve.text:He(ve)}e.showModuleSpecifier=Wg;function Ev(_){var ve;return e.forEachChild(_,function(Tr){he(Tr)&&(ve=Tr)},function(Tr){for(var Gr=Tr.length-1;Gr>=0;Gr--)if(he(Tr[Gr])){ve=Tr[Gr];break}}),ve}e.getLastChild=Ev;function Cv(_,ve,Tr){return Tr===void 0&&(Tr=!0),_.has(ve)?!1:(_.set(ve,Tr),!0)}e.addToSeen=Cv;function ze(_){return e.isClassLike(_)||e.isInterfaceDeclaration(_)||e.isTypeLiteralNode(_)}e.isObjectTypeDeclaration=ze;function Cr(_){return _>=179&&_<=202||_===131||_===157||_===148||_===160||_===149||_===134||_===152||_===153||_===114||_===155||_===144||_===230||_===315||_===316||_===317||_===318||_===319||_===320||_===321}e.isTypeNodeKind=Cr;function ot(_){return _.kind===208||_.kind===209}e.isAccessExpression=ot;function xt(_){return _.kind===208?_.name:(e.Debug.assert(_.kind===209),_.argumentExpression)}e.getNameOfAccessExpression=xt;function Gt(_){switch(_.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=Gt;function gn(_){return _.kind===272||_.kind===276}e.isNamedImportsOrExports=gn;function ci(_){for(;ot(_);)_=_.expression;return _}e.getLeftmostAccessExpression=ci;function Fi(_,ve){if(ot(_.parent)&&__(_))return Tr(_.parent);function Tr(Gr){if(Gr.kind===208){var Kt=ve(Gr.name);if(Kt!==void 0)return Kt}else if(Gr.kind===209)if(e.isIdentifier(Gr.argumentExpression)||e.isStringLiteralLike(Gr.argumentExpression)){var Kt=ve(Gr.argumentExpression);if(Kt!==void 0)return Kt}else return;if(ot(Gr.expression))return Tr(Gr.expression);if(e.isIdentifier(Gr.expression))return ve(Gr.expression)}}e.forEachNameInAccessChainWalkingLeft=Fi;function Oi(_,ve){for(;;){switch(_.kind){case 222:_=_.operand;continue;case 223:_=_.left;continue;case 224:_=_.condition;continue;case 212:_=_.tag;continue;case 210:if(ve)return _;case 231:case 209:case 208:case 232:case 353:case 235:_=_.expression;continue}return _}}e.getLeftmostExpression=Oi;function Ki(_,ve){this.flags=_,this.escapedName=ve,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function Ma(_,ve){this.flags=ve,(e.Debug.isDebugging||e.tracing)&&(this.checker=_)}function Qo(_,ve){this.flags=ve,e.Debug.isDebugging&&(this.checker=_)}function wo(_,ve,Tr){this.pos=ve,this.end=Tr,this.kind=_,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function ss(_,ve,Tr){this.pos=ve,this.end=Tr,this.kind=_,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function Cs(_,ve,Tr){this.pos=ve,this.end=Tr,this.kind=_,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function dc(_,ve,Tr){this.fileName=_,this.text=ve,this.skipTrivia=Tr||function(Gr){return Gr}}e.objectAllocator={getNodeConstructor:function(){return wo},getTokenConstructor:function(){return ss},getIdentifierConstructor:function(){return Cs},getPrivateIdentifierConstructor:function(){return wo},getSourceFileConstructor:function(){return wo},getSymbolConstructor:function(){return Ki},getTypeConstructor:function(){return Ma},getSignatureConstructor:function(){return Qo},getSourceMapSourceConstructor:function(){return dc}};function wc(_){Object.assign(e.objectAllocator,_)}e.setObjectAllocator=wc;function _l(_,ve,Tr){return Tr===void 0&&(Tr=0),_.replace(/{(\d+)}/g,function(Gr,Kt){return""+e.Debug.checkDefined(ve[+Kt+Tr])})}e.formatStringFromArgs=_l;var hs;function cu(_){hs=_}e.setLocalizedDiagnosticMessages=cu;function ml(_){!hs&&_&&(hs=_())}e.maybeSetLocalizedDiagnosticMessages=ml;function Vf(_){return hs&&hs[_.key]||_.message}e.getLocaleSpecificMessage=Vf;function zf(_,ve,Tr,Gr){en(void 0,ve,Tr);var Kt=Vf(Gr);return arguments.length>4&&(Kt=_l(Kt,arguments,4)),{file:void 0,start:ve,length:Tr,messageText:Kt,category:Gr.category,code:Gr.code,reportsUnnecessary:Gr.reportsUnnecessary,fileName:_}}e.createDetachedDiagnostic=zf;function x(_){return _.file===void 0&&_.start!==void 0&&_.length!==void 0&&typeof _.fileName=="string"}function se(_,ve){var Tr=ve.fileName||"",Gr=ve.text.length;e.Debug.assertEqual(_.fileName,Tr),e.Debug.assertLessThanOrEqual(_.start,Gr),e.Debug.assertLessThanOrEqual(_.start+_.length,Gr);var Kt={file:ve,start:_.start,length:_.length,messageText:_.messageText,category:_.category,code:_.code,reportsUnnecessary:_.reportsUnnecessary};if(_.relatedInformation){Kt.relatedInformation=[];for(var ti=0,fi=_.relatedInformation;ti<fi.length;ti++){var Vi=fi[ti];x(Vi)&&Vi.fileName===Tr?(e.Debug.assertLessThanOrEqual(Vi.start,Gr),e.Debug.assertLessThanOrEqual(Vi.start+Vi.length,Gr),Kt.relatedInformation.push(se(Vi,ve))):Kt.relatedInformation.push(Vi)}}return Kt}function ke(_,ve){for(var Tr=[],Gr=0,Kt=_;Gr<Kt.length;Gr++){var ti=Kt[Gr];Tr.push(se(ti,ve))}return Tr}e.attachFileToDiagnostics=ke;function pr(_,ve,Tr,Gr){en(_,ve,Tr);var Kt=Vf(Gr);return arguments.length>4&&(Kt=_l(Kt,arguments,4)),{file:_,start:ve,length:Tr,messageText:Kt,category:Gr.category,code:Gr.code,reportsUnnecessary:Gr.reportsUnnecessary,reportsDeprecated:Gr.reportsDeprecated}}e.createFileDiagnostic=pr;function st(_,ve){var Tr=Vf(ve);return arguments.length>2&&(Tr=_l(Tr,arguments,2)),Tr}e.formatMessage=st;function bn(_){var ve=Vf(_);return arguments.length>1&&(ve=_l(ve,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:ve,category:_.category,code:_.code,reportsUnnecessary:_.reportsUnnecessary,reportsDeprecated:_.reportsDeprecated}}e.createCompilerDiagnostic=bn;function hi(_,ve){return{file:void 0,start:void 0,length:void 0,code:_.code,category:_.category,messageText:_.next?_:_.messageText,relatedInformation:ve}}e.createCompilerDiagnosticFromMessageChain=hi;function _n(_,ve){var Tr=Vf(ve);return arguments.length>2&&(Tr=_l(Tr,arguments,2)),{messageText:Tr,category:ve.category,code:ve.code,next:_===void 0||Array.isArray(_)?_:[_]}}e.chainDiagnosticMessages=_n;function Rs(_,ve){for(var Tr=_;Tr.next;)Tr=Tr.next[0];Tr.next=[ve]}e.concatenateDiagnosticMessageChains=Rs;function Tu(_){return _.file?_.file.path:void 0}function Rd(_,ve){return $u(_,ve)||Ah(_,ve)||0}e.compareDiagnostics=Rd;function $u(_,ve){return e.compareStringsCaseSensitive(Tu(_),Tu(ve))||e.compareValues(_.start,ve.start)||e.compareValues(_.length,ve.length)||e.compareValues(_.code,ve.code)||kp(_.messageText,ve.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=$u;function Ah(_,ve){return!_.relatedInformation&&!ve.relatedInformation?0:_.relatedInformation&&ve.relatedInformation?e.compareValues(_.relatedInformation.length,ve.relatedInformation.length)||e.forEach(_.relatedInformation,function(Tr,Gr){var Kt=ve.relatedInformation[Gr];return Rd(Tr,Kt)})||0:_.relatedInformation?-1:1}function kp(_,ve){if(typeof _=="string"&&typeof ve=="string")return e.compareStringsCaseSensitive(_,ve);if(typeof _=="string")return-1;if(typeof ve=="string")return 1;var Tr=e.compareStringsCaseSensitive(_.messageText,ve.messageText);if(Tr)return Tr;if(!_.next&&!ve.next)return 0;if(!_.next)return-1;if(!ve.next)return 1;for(var Gr=Math.min(_.next.length,ve.next.length),Kt=0;Kt<Gr;Kt++)if(Tr=kp(_.next[Kt],ve.next[Kt]),Tr)return Tr;return _.next.length<ve.next.length?-1:_.next.length>ve.next.length?1:0}function Ny(_){return _===4||_===2||_===1||_===6?1:0}e.getLanguageVariant=Ny;function Ap(_){if(_.transformFlags&2)return e.isJsxOpeningLikeElement(_)||e.isJsxFragment(_)?_:e.forEachChild(_,Ap)}function V2(_){return _.isDeclarationFile?void 0:Ap(_)}function kv(_){return(_.impliedNodeFormat===e.ModuleKind.ESNext||e.fileExtensionIsOneOf(_.fileName,[".cjs",".cts",".mjs",".mts"]))&&!_.isDeclarationFile?!0:void 0}function Av(_){switch(sd(_)){case e.ModuleDetectionKind.Force:return function(Kt){Kt.externalModuleIndicator=e.isFileProbablyExternalModule(Kt)||!Kt.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return function(Kt){Kt.externalModuleIndicator=e.isFileProbablyExternalModule(Kt)};case e.ModuleDetectionKind.Auto:var ve=[e.isFileProbablyExternalModule];(_.jsx===4||_.jsx===5)&&ve.push(V2),ve.push(kv);var Tr=e.or.apply(void 0,ve),Gr=function(Kt){return void(Kt.externalModuleIndicator=Tr(Kt))};return Gr}}e.getSetExternalModuleIndicator=Av;function qg(_){return _.target||_.module===e.ModuleKind.Node16&&9||_.module===e.ModuleKind.NodeNext&&99||0}e.getEmitScriptTarget=qg;function od(_){return typeof _.module=="number"?_.module:qg(_)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=od;function Iy(_){var ve=_.moduleResolution;if(ve===void 0)switch(od(_)){case e.ModuleKind.CommonJS:ve=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:ve=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:ve=e.ModuleResolutionKind.NodeNext;break;default:ve=e.ModuleResolutionKind.Classic;break}return ve}e.getEmitModuleResolutionKind=Iy;function sd(_){return _.moduleDetection||(od(_)===e.ModuleKind.Node16||od(_)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}e.getEmitModuleDetectionKind=sd;function $1(_){switch(od(_)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=$1;function H1(_){return _.allowUnreachableCode===!1}e.unreachableCodeIsError=H1;function Jc(_){return _.allowUnusedLabels===!1}e.unusedLabelIsError=Jc;function z2(_){return!!(sm(_)&&_.declarationMap)}e.getAreDeclarationMapsEnabled=z2;function G1(_){if(_.esModuleInterop!==void 0)return _.esModuleInterop;switch(od(_)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}e.getESModuleInterop=G1;function W2(_){var ve=od(_);return _.allowSyntheticDefaultImports!==void 0?_.allowSyntheticDefaultImports:G1(_)||ve===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=W2;function sm(_){return!!(_.declaration||_.composite)}e.getEmitDeclarations=sm;function q2(_){return!!(_.preserveConstEnums||_.isolatedModules)}e.shouldPreserveConstEnums=q2;function $2(_){return!!(_.incremental||_.composite)}e.isIncrementalCompilation=$2;function Ou(_,ve){return _[ve]===void 0?!!_.strict:!!_[ve]}e.getStrictOptionValue=Ou;function Oy(_){return _.allowJs===void 0?!!_.checkJs:_.allowJs}e.getAllowJSCompilerOption=Oy;function Ph(_){return _.useDefineForClassFields===void 0?qg(_)>=9:_.useDefineForClassFields}e.getUseDefineForClassFields=Ph;function K1(_,ve){return S(ve,_,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=K1;function Pv(_,ve){return S(ve,_,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=Pv;function wv(_,ve){return S(ve,_,e.affectsDeclarationPathOptionDeclarations)}e.compilerOptionsAffectDeclarationPath=wv;function Nv(_,ve){return ve.strictFlag?Ou(_,ve.name):_[ve.name]}e.getCompilerOptionValue=Nv;function cm(_){var ve=_.jsx;return ve===2||ve===4||ve===5}e.getJSXTransformEnabled=cm;function Bd(_,ve){var Tr=ve==null?void 0:ve.pragmas.get("jsximportsource"),Gr=e.isArray(Tr)?Tr[Tr.length-1]:Tr;return _.jsx===4||_.jsx===5||_.jsxImportSource||Gr?(Gr==null?void 0:Gr.arguments.factory)||_.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=Bd;function um(_,ve){return _?"".concat(_,"/").concat(ve.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=um;function mn(_){for(var ve=!1,Tr=0;Tr<_.length;Tr++)if(_.charCodeAt(Tr)===42)if(!ve)ve=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=mn;function $i(_,ve){var Tr,Gr,Kt,ti=!1;return{getSymlinkedFiles:function(){return Kt},getSymlinkedDirectories:function(){return Tr},getSymlinkedDirectoriesByRealpath:function(){return Gr},setSymlinkedFile:function(Vi,ja){return(Kt||(Kt=new e.Map)).set(Vi,ja)},setSymlinkedDirectory:function(Vi,ja){var Zi=e.toPath(Vi,_,ve);YD(Zi)||(Zi=e.ensureTrailingDirectorySeparator(Zi),ja!==!1&&!(Tr!=null&&Tr.has(Zi))&&(Gr||(Gr=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(ja.realPath),Vi),(Tr||(Tr=new e.Map)).set(Zi,ja))},setSymlinksFromResolutions:function(Vi,ja){var Zi=this,Zo;e.Debug.assert(!ti),ti=!0;for(var Is=0,Qc=Vi;Is<Qc.length;Is++){var Vc=Qc[Is];(Zo=Vc.resolvedModules)===null||Zo===void 0||Zo.forEach(function(ac){return fi(Zi,ac)})}ja==null||ja.forEach(function(ac){return fi(Zi,ac)})},hasProcessedResolutions:function(){return ti}};function fi(Vi,ja){if(!(!ja||!ja.originalPath||!ja.resolvedFileName)){var Zi=ja.resolvedFileName,Zo=ja.originalPath;Vi.setSymlinkedFile(e.toPath(Zo,_,ve),Zi);var Is=Li(Zi,Zo,_,ve)||e.emptyArray,Qc=Is[0],Vc=Is[1];Qc&&Vc&&Vi.setSymlinkedDirectory(Vc,{real:Qc,realPath:e.toPath(Qc,_,ve)})}}}e.createSymlinkCache=$i;function Li(_,ve,Tr,Gr){for(var Kt=e.getPathComponents(e.getNormalizedAbsolutePath(_,Tr)),ti=e.getPathComponents(e.getNormalizedAbsolutePath(ve,Tr)),fi=!1;Kt.length>=2&&ti.length>=2&&!sa(Kt[Kt.length-2],Gr)&&!sa(ti[ti.length-2],Gr)&&Gr(Kt[Kt.length-1])===Gr(ti[ti.length-1]);)Kt.pop(),ti.pop(),fi=!0;return fi?[e.getPathFromPathComponents(Kt),e.getPathFromPathComponents(ti)]:void 0}function sa(_,ve){return _!==void 0&&(ve(_)==="node_modules"||e.startsWith(_,"@"))}function Oa(_){return e.isAnyDirectorySeparator(_.charCodeAt(0))?_.slice(1):void 0}function ko(_,ve,Tr){var Gr=e.tryRemovePrefix(_,ve,Tr);return Gr===void 0?void 0:Oa(Gr)}e.tryRemoveDirectoryPrefix=ko;var Ns=/[^\w\s\/]/g;function mu(_){return _.replace(Ns,gu)}e.regExpEscape=mu;function gu(_){return"\\"+_}var xl=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var hu="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Kc={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(hu,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(_){return Fy(_,Kc.singleAsteriskRegexFragment)}},h_={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(hu,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(_){return Fy(_,h_.singleAsteriskRegexFragment)}},jd={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(_){return Fy(_,jd.singleAsteriskRegexFragment)}},v_={files:Kc,directories:h_,exclude:jd};function Wf(_,ve,Tr){var Gr=My(_,ve,Tr);if(!(!Gr||!Gr.length)){var Kt=Gr.map(function(fi){return"(".concat(fi,")")}).join("|"),ti=Tr==="exclude"?"($|/)":"$";return"^(".concat(Kt,")").concat(ti)}}e.getRegularExpressionForWildcard=Wf;function My(_,ve,Tr){if(!(_===void 0||_.length===0))return e.flatMap(_,function(Gr){return Gr&&H2(Gr,ve,Tr,v_[Tr])})}e.getRegularExpressionsForWildcards=My;function Jl(_){return!/[.*?]/.test(_)}e.isImplicitGlob=Jl;function Fk(_,ve,Tr){var Gr=_&&H2(_,ve,Tr,v_[Tr]);return Gr&&"^(".concat(Gr,")").concat(Tr==="exclude"?"($|/)":"$")}e.getPatternFromSpec=Fk;function H2(_,ve,Tr,Gr){var Kt=Gr.singleAsteriskRegexFragment,ti=Gr.doubleAsteriskRegexFragment,fi=Gr.replaceWildcardCharacter,Vi="",ja=!1,Zi=e.getNormalizedPathComponents(_,ve),Zo=e.last(Zi);if(!(Tr!=="exclude"&&Zo==="**")){Zi[0]=e.removeTrailingDirectorySeparator(Zi[0]),Jl(Zo)&&Zi.push("**","*");for(var Is=0,Qc=0,Vc=Zi;Qc<Vc.length;Qc++){var ac=Vc[Qc];if(ac==="**")Vi+=ti;else if(Tr==="directories"&&(Vi+="(",Is++),ja&&(Vi+=e.directorySeparator),Tr!=="exclude"){var Fa="";ac.charCodeAt(0)===42?(Fa+="([^./]"+Kt+")?",ac=ac.substr(1)):ac.charCodeAt(0)===63&&(Fa+="[^./]",ac=ac.substr(1)),Fa+=ac.replace(Ns,fi),Fa!==ac&&(Vi+=hu),Vi+=Fa}else Vi+=ac.replace(Ns,fi);ja=!0}for(;Is>0;)Vi+=")?",Is--;return Vi}}function Fy(_,ve){return _==="*"?ve:_==="?"?"[^/]":"\\"+_}function Pp(_,ve,Tr,Gr,Kt){_=e.normalizePath(_),Kt=e.normalizePath(Kt);var ti=e.combinePaths(Kt,_);return{includeFilePatterns:e.map(My(Tr,ti,"files"),function(fi){return"^".concat(fi,"$")}),includeFilePattern:Wf(Tr,ti,"files"),includeDirectoryPattern:Wf(Tr,ti,"directories"),excludePattern:Wf(ve,ti,"exclude"),basePaths:zD(_,Tr,Gr)}}e.getFileMatcherPatterns=Pp;function wh(_,ve){return new RegExp(_,ve?"":"i")}e.getRegexFromPattern=wh;function Hu(_,ve,Tr,Gr,Kt,ti,fi,Vi,ja){_=e.normalizePath(_),ti=e.normalizePath(ti);for(var Zi=Pp(_,Tr,Gr,Kt,ti),Zo=Zi.includeFilePatterns&&Zi.includeFilePatterns.map(function(kf){return wh(kf,Kt)}),Is=Zi.includeDirectoryPattern&&wh(Zi.includeDirectoryPattern,Kt),Qc=Zi.excludePattern&&wh(Zi.excludePattern,Kt),Vc=Zo?Zo.map(function(){return[]}):[[]],ac=new e.Map,Fa=e.createGetCanonicalFileName(Kt),Ms=0,La=Zi.basePaths;Ms<La.length;Ms++){var pm=La[Ms];Fh(pm,e.combinePaths(ti,pm),fi)}return e.flatten(Vc);function Fh(kf,Ly,_c){var nf=Fa(ja(Ly));if(!ac.has(nf)){ac.set(nf,!0);for(var $f=Vi(kf),sb=$f.files,Ry=$f.directories,$g=function(Rv){var af=e.combinePaths(kf,Rv),dm=e.combinePaths(Ly,Rv);if(ve&&!e.fileExtensionIsOneOf(af,ve)||Qc&&Qc.test(dm))return"continue";if(!Zo)Vc[0].push(af);else{var of=e.findIndex(Zo,function(eA){return eA.test(dm)});of!==-1&&Vc[of].push(af)}},Y1=0,Z1=e.sort(sb,e.compareStringsCaseSensitive);Y1<Z1.length;Y1++){var Hg=Z1[Y1];$g(Hg)}if(!(_c!==void 0&&(_c--,_c===0)))for(var By=0,Lh=e.sort(Ry,e.compareStringsCaseSensitive);By<Lh.length;By++){var Hg=Lh[By],Zk=e.combinePaths(kf,Hg),jy=e.combinePaths(Ly,Hg);(!Is||Is.test(jy))&&(!Qc||!Qc.test(jy))&&Fh(Zk,jy,_c)}}}}e.matchFiles=Hu;function zD(_,ve,Tr){var Gr=[_];if(ve){for(var Kt=[],ti=0,fi=ve;ti<fi.length;ti++){var Vi=fi[ti],ja=e.isRootedDiskPath(Vi)?Vi:e.normalizePath(e.combinePaths(_,Vi));Kt.push(Lk(ja))}Kt.sort(e.getStringComparer(!Tr));for(var Zi=function(Vc){e.every(Gr,function(ac){return!e.containsPath(ac,Vc,_,!Tr)})&&Gr.push(Vc)},Zo=0,Is=Kt;Zo<Is.length;Zo++){var Qc=Is[Zo];Zi(Qc)}}return Gr}function Lk(_){var ve=e.indexOfAnyCharCode(_,xl);return ve<0?e.hasExtension(_)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(_)):_:_.substring(0,_.lastIndexOf(e.directorySeparator,ve))}function Rk(_,ve){return ve||Cf(_)||3}e.ensureScriptKind=Rk;function Cf(_){var ve=_.substr(_.lastIndexOf("."));switch(ve.toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=Cf,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var Iv=t(t([],e.supportedTSExtensions,!0),[[".json"]],!1),WD=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var Q1=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Bk=t(t([],Q1,!0),[[".json"]],!1);e.supportedDeclarationExtensions=[".d.ts",".d.cts",".d.mts"];function G2(_,ve){var Tr=_&&Oy(_);if(!ve||ve.length===0)return Tr?Q1:e.supportedTSExtensions;var Gr=Tr?Q1:e.supportedTSExtensions,Kt=e.flatten(Gr),ti=t(t([],Gr,!0),e.mapDefined(ve,function(fi){return fi.scriptKind===7||Tr&&K2(fi.scriptKind)&&Kt.indexOf(fi.extension)===-1?[fi.extension]:void 0}),!0);return ti}e.getSupportedExtensions=G2;function qD(_,ve){return!_||!_.resolveJsonModule?ve:ve===Q1?Bk:ve===e.supportedTSExtensions?Iv:t(t([],ve,!0),[[".json"]],!1)}e.getSupportedExtensionsWithJsonIfResolveJsonModule=qD;function K2(_){return _===1||_===2}function jk(_){return e.some(e.supportedJSExtensionsFlat,function(ve){return e.fileExtensionIs(_,ve)})}e.hasJSFileExtension=jk;function Q2(_){return e.some(e.supportedTSExtensionsFlat,function(ve){return e.fileExtensionIs(_,ve)})}e.hasTSFileExtension=Q2;function $D(_,ve,Tr){if(!_)return!1;for(var Gr=G2(ve,Tr),Kt=0,ti=e.flatten(qD(ve,Gr));Kt<ti.length;Kt++){var fi=ti[Kt];if(e.fileExtensionIs(_,fi))return!0}return!1}e.isSupportedSourceFileName=$D;function HD(_){var ve=_.match(/\//g);return ve?ve.length:0}function Jk(_,ve){return e.compareValues(HD(_),HD(ve))}e.compareNumberOfDirectorySeparators=Jk;var X2=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Ov(_){for(var ve=0,Tr=X2;ve<Tr.length;ve++){var Gr=Tr[ve],Kt=GD(_,Gr);if(Kt!==void 0)return Kt}return _}e.removeFileExtension=Ov;function GD(_,ve){return e.fileExtensionIs(_,ve)?Mv(_,ve):void 0}e.tryRemoveExtension=GD;function Mv(_,ve){return _.substring(0,_.length-ve.length)}e.removeExtension=Mv;function KD(_,ve){return e.changeAnyExtension(_,ve,X2,!1)}e.changeExtension=KD;function QD(_){var ve=_.indexOf("*");return ve===-1?_:_.indexOf("*",ve+1)!==-1?void 0:{prefix:_.substr(0,ve),suffix:_.substr(ve+1)}}e.tryParsePattern=QD;function Uk(_){return e.mapDefined(e.getOwnKeys(_),function(ve){return QD(ve)})}e.tryParsePatterns=Uk;function Nh(_){return!(_>=0)}e.positionIsSynthesized=Nh;function Y2(_){return _===".ts"||_===".tsx"||_===".d.ts"||_===".cts"||_===".mts"||_===".d.mts"||_===".d.cts"}e.extensionIsTS=Y2;function Vk(_){return Y2(_)||_===".json"}e.resolutionExtensionIsTSOrJson=Vk;function zk(_){var ve=Ih(_);return ve!==void 0?ve:e.Debug.fail("File ".concat(_," has unknown extension."))}e.extensionFromPath=zk;function Wk(_){return Ih(_)!==void 0}e.isAnySupportedFileExtension=Wk;function Ih(_){return e.find(X2,function(ve){return e.fileExtensionIs(_,ve)})}e.tryGetExtensionFromPath=Ih;function Z2(_,ve){return _.checkJsDirective?_.checkJsDirective.enabled:ve.checkJs}e.isCheckJsEnabledForFile=Z2,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function eb(_,ve){for(var Tr=[],Gr=0,Kt=_;Gr<Kt.length;Gr++){var ti=Kt[Gr];if(ti===ve)return ve;e.isString(ti)||Tr.push(ti)}return e.findBestPatternMatch(Tr,function(fi){return fi},ve)}e.matchPatternOrExact=eb;function qk(_,ve){var Tr=_.indexOf(ve);return e.Debug.assert(Tr!==-1),_.slice(Tr)}e.sliceAfter=qk;function $k(_){for(var ve,Tr=[],Gr=1;Gr<arguments.length;Gr++)Tr[Gr-1]=arguments[Gr];return Tr.length&&(_.relatedInformation||(_.relatedInformation=[]),e.Debug.assert(_.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(ve=_.relatedInformation).push.apply(ve,Tr)),_}e.addRelatedInfo=$k;function Tl(_,ve){e.Debug.assert(_.length!==0);for(var Tr=ve(_[0]),Gr=Tr,Kt=1;Kt<_.length;Kt++){var ti=ve(_[Kt]);ti<Tr?Tr=ti:ti>Gr&&(Gr=ti)}return{min:Tr,max:Gr}}e.minAndMax=Tl;function Ul(_){return{pos:Te(_),end:_.end}}e.rangeOfNode=Ul;function cd(_,ve){var Tr=ve.pos-1,Gr=e.skipTrivia(_.text,ve.end)+1;return{pos:Tr,end:Gr}}e.rangeOfTypeParameters=cd;function qf(_,ve,Tr){return ve.skipLibCheck&&_.isDeclarationFile||ve.skipDefaultLibCheck&&_.hasNoDefaultLib||Tr.isSourceOfProjectReferenceRedirect(_.fileName)}e.skipTypeChecking=qf;function X1(_,ve){return _===ve||typeof _=="object"&&_!==null&&typeof ve=="object"&&ve!==null&&e.equalOwnProperties(_,ve,X1)}e.isJsonEqual=X1;function Fv(_){var ve;switch(_.charCodeAt(1)){case 98:case 66:ve=1;break;case 111:case 79:ve=3;break;case 120:case 88:ve=4;break;default:for(var Tr=_.length-1,Gr=0;_.charCodeAt(Gr)===48;)Gr++;return _.slice(Gr,Tr)||"0"}for(var Kt=2,ti=_.length-1,fi=(ti-Kt)*ve,Vi=new Uint16Array((fi>>>4)+(fi&15?1:0)),ja=ti-1,Zi=0;ja>=Kt;ja--,Zi+=ve){var Zo=Zi>>>4,Is=_.charCodeAt(ja),Qc=Is<=57?Is-48:10+Is-(Is<=70?65:97),Vc=Qc<<(Zi&15);Vi[Zo]|=Vc;var ac=Vc>>>16;ac&&(Vi[Zo+1]|=ac)}for(var Fa="",Ms=Vi.length-1,La=!0;La;){var pm=0;La=!1;for(var Zo=Ms;Zo>=0;Zo--){var Fh=pm<<16|Vi[Zo],kf=Fh/10|0;Vi[Zo]=kf,pm=Fh-kf*10,kf&&!La&&(Ms=Zo,La=!0)}Fa=pm+Fa}return Fa}e.parsePseudoBigInt=Fv;function Oh(_){var ve=_.negative,Tr=_.base10Value;return(ve&&Tr!=="0"?"-":"")+Tr}e.pseudoBigIntToString=Oh;function tf(_){return!!(_.flags&16777216)||Ut(_)||Hk(_)||rb(_)||!(Ye(_)||XD(_))}e.isValidTypeOnlyAliasUseSite=tf;function XD(_){return e.isIdentifier(_)&&e.isShorthandPropertyAssignment(_.parent)&&_.parent.name===_}function rb(_){for(;_.kind===79||_.kind===208;)_=_.parent;if(_.kind!==164)return!1;if(Pc(_.parent,256))return!0;var ve=_.parent.parent.kind;return ve===261||ve===184}function Hk(_){if(_.kind!==79)return!1;var ve=e.findAncestor(_.parent,function(Tr){switch(Tr.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return(ve==null?void 0:ve.token)===117||(ve==null?void 0:ve.parent.kind)===261}function Mu(_){return e.isTypeReferenceNode(_)&&e.isIdentifier(_.typeName)}e.isIdentifierTypeReference=Mu;function El(_,ve){if(ve===void 0&&(ve=e.equateValues),_.length<2)return!0;for(var Tr=_[0],Gr=1,Kt=_.length;Gr<Kt;Gr++){var ti=_[Gr];if(!ve(Tr,ti))return!1}return!0}e.arrayIsHomogeneous=El;function wp(_,ve){return _.pos=ve,_}e.setTextRangePos=wp;function Jd(_,ve){return _.end=ve,_}e.setTextRangeEnd=Jd;function Lv(_,ve,Tr){return Jd(wp(_,ve),Tr)}e.setTextRangePosEnd=Lv;function Ro(_,ve,Tr){return Lv(_,ve,ve+Tr)}e.setTextRangePosWidth=Ro;function Gk(_,ve){return _&&(_.flags=ve),_}e.setNodeFlags=Gk;function tb(_,ve){return _&&ve&&(_.parent=ve),_}e.setParent=tb;function Kk(_,ve){if(_)for(var Tr=0,Gr=_;Tr<Gr.length;Tr++){var Kt=Gr[Tr];tb(Kt,ve)}return _}e.setEachParent=Kk;function lm(_,ve){if(!_)return _;return e.forEachChildRecursively(_,e.isJSDocNode(_)?Tr:Kt),_;function Tr(ti,fi){if(ve&&ti.parent===fi)return"skip";tb(ti,fi)}function Gr(ti){if(e.hasJSDocNodes(ti))for(var fi=0,Vi=ti.jsDoc;fi<Vi.length;fi++){var ja=Vi[fi];Tr(ja,ti),e.forEachChildRecursively(ja,Tr)}}function Kt(ti,fi){return Tr(ti,fi)||Gr(ti)}}e.setParentRecursive=lm;function Uc(_){return!e.isOmittedExpression(_)}function Qk(_){return e.isArrayLiteralExpression(_)&&e.every(_.elements,Uc)}e.isPackedArrayLiteral=Qk;function nb(_){for(e.Debug.assertIsDefined(_.parent);;){var ve=_.parent;if(e.isParenthesizedExpression(ve)){_=ve;continue}if(e.isExpressionStatement(ve)||e.isVoidExpression(ve)||e.isForStatement(ve)&&(ve.initializer===_||ve.incrementor===_))return!0;if(e.isCommaListExpression(ve)){if(_!==e.last(ve.elements))return!0;_=ve;continue}if(e.isBinaryExpression(ve)&&ve.operatorToken.kind===27){if(_===ve.left)return!0;_=ve;continue}return!1}}e.expressionResultIsUnused=nb;function YD(_){return e.some(e.ignoredPaths,function(ve){return e.stringContains(_,ve)})}e.containsIgnoredPath=YD;function ib(_){if(_.parent){switch(_.kind){case 165:var ve=_.parent;return ve.kind===192?void 0:ve.typeParameters;case 166:return _.parent.parameters;case 201:return _.parent.templateSpans;case 236:return _.parent.templateSpans;case 167:{var Tr=_.parent;return e.canHaveDecorators(Tr)?Tr.modifiers:e.canHaveIllegalDecorators(Tr)?Tr.illegalDecorators:void 0}case 294:return _.parent.heritageClauses}var Gr=_.parent;if(e.isJSDocTag(_))return e.isJSDocTypeLiteral(_.parent)?void 0:_.parent.tags;switch(Gr.kind){case 184:case 261:return e.isTypeElement(_)?Gr.members:void 0;case 189:case 190:return Gr.types;case 186:case 206:case 354:case 272:case 276:return Gr.elements;case 207:case 289:return Gr.properties;case 210:case 211:return e.isTypeNode(_)?Gr.typeArguments:Gr.expression===_?void 0:Gr.arguments;case 281:case 285:return e.isJsxChild(_)?Gr.children:void 0;case 283:case 282:return e.isTypeNode(_)?Gr.typeArguments:void 0;case 238:case 292:case 293:case 265:return Gr.statements;case 266:return Gr.clauses;case 260:case 228:return e.isClassElement(_)?Gr.members:void 0;case 263:return e.isEnumMember(_)?Gr.members:void 0;case 308:return Gr.statements}}}e.getContainingNodeArray=ib;function ZD(_){if(!_.typeParameters){if(e.some(_.parameters,function(Tr){return!bf(Tr)}))return!0;if(_.kind!==216){var ve=e.firstOrUndefined(_.parameters);if(!(ve&&zs(ve)))return!0}}return!1}e.hasContextSensitiveParameters=ZD;function ex(_){return _==="Infinity"||_==="-Infinity"||_==="NaN"}e.isInfinityOrNaNString=ex;function rx(_){return _.kind===257&&_.parent.kind===295}e.isCatchClauseVariableDeclaration=rx;function Xk(_){var ve=_.valueDeclaration&&z_(_.valueDeclaration);return!!ve&&(e.isParameter(ve)||rx(ve))}e.isParameterOrCatchClauseVariable=Xk;function uu(_){return _.kind===215||_.kind===216}e.isFunctionExpressionOrArrowFunction=uu;function y_(_){return _.replace(/\$/gm,function(){return"\\$"})}e.escapeSnippetText=y_;function Mh(_){return(+_).toString()===_}e.isNumericLiteralName=Mh;function ab(_,ve,Tr,Gr){return e.isIdentifierText(_,ve)?e.factory.createIdentifier(_):!Gr&&Mh(_)&&+_>=0?e.factory.createNumericLiteral(+_):e.factory.createStringLiteral(_,!!Tr)}e.createPropertyNameNodeForIdentifierOrLiteral=ab;function Yk(_){return!!(_.flags&262144&&_.isThisType)}e.isThisTypeParameter=Yk;function ob(_){var ve=0,Tr=0,Gr=0,Kt=0,ti;(function(Zi){Zi[Zi.BeforeNodeModules=0]="BeforeNodeModules",Zi[Zi.NodeModules=1]="NodeModules",Zi[Zi.Scope=2]="Scope",Zi[Zi.PackageContent=3]="PackageContent"})(ti||(ti={}));for(var fi=0,Vi=0,ja=0;Vi>=0;)switch(fi=Vi,Vi=_.indexOf("/",fi+1),ja){case 0:_.indexOf(e.nodeModulesPathPart,fi)===fi&&(ve=fi,Tr=Vi,ja=1);break;case 1:case 2:ja===1&&_.charAt(fi+1)==="@"?ja=2:(Gr=Vi,ja=3);break;case 3:_.indexOf(e.nodeModulesPathPart,fi)===fi?ja=1:ja=3;break}return Kt=fi,ja>1?{topLevelNodeModulesIndex:ve,topLevelPackageNameIndex:Tr,packageRootIndex:Gr,fileNameIndex:Kt}:void 0}e.getNodeModulePathParts=ob;function fm(_){var ve;return _.kind===343?(ve=_.typeExpression)===null||ve===void 0?void 0:ve.type:_.type}e.getParameterTypeNode=fm;function tx(_){switch(_.kind){case 165:case 260:case 261:case 262:case 263:case 348:case 341:case 342:return!0;case 270:return _.isTypeOnly;case 273:case 278:return _.parent.parent.isTypeOnly;default:return!1}}e.isTypeDeclaration=tx;function nx(_){return e.isEnumDeclaration(_)||e.isVariableStatement(_)||e.isFunctionDeclaration(_)||e.isClassDeclaration(_)||e.isInterfaceDeclaration(_)||tx(_)||e.isModuleDeclaration(_)&&!or(_)&&!ut(_)}e.canHaveExportModifier=nx})(h||(h={}));var h;(function(e){function c(){var P,T,s,D,O;return{createBaseSourceFileNode:W,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:v,createBaseTokenNode:S,createBaseNode:te};function W(Y){return new(O||(O=e.objectAllocator.getSourceFileConstructor()))(Y,-1,-1)}function E(Y){return new(s||(s=e.objectAllocator.getIdentifierConstructor()))(Y,-1,-1)}function v(Y){return new(D||(D=e.objectAllocator.getPrivateIdentifierConstructor()))(Y,-1,-1)}function S(Y){return new(T||(T=e.objectAllocator.getTokenConstructor()))(Y,-1,-1)}function te(Y){return new(P||(P=e.objectAllocator.getNodeConstructor()))(Y,-1,-1)}}e.createBaseNodeFactory=c})(h||(h={}));var h;(function(e){function c(P){var T,s;return{getParenthesizeLeftSideOfBinaryForOperator:D,getParenthesizeRightSideOfBinaryForOperator:O,parenthesizeLeftSideOfBinary:te,parenthesizeRightSideOfBinary:Y,parenthesizeExpressionOfComputedPropertyName:Z,parenthesizeConditionOfConditionalExpression:ce,parenthesizeBranchOfConditionalExpression:k,parenthesizeExpressionOfExportDefault:X,parenthesizeExpressionOfNew:A,parenthesizeLeftSideOfAccess:y,parenthesizeOperandOfPostfixUnary:C,parenthesizeOperandOfPrefixUnary:B,parenthesizeExpressionsOfCommaDelimitedList:F,parenthesizeExpressionForDisallowedComma:z,parenthesizeExpressionOfExpressionStatement:ge,parenthesizeConciseBodyOfArrowFunction:Pe,parenthesizeCheckTypeOfConditionalType:fe,parenthesizeExtendsTypeOfConditionalType:_e,parenthesizeConstituentTypesOfUnionType:oe,parenthesizeConstituentTypeOfUnionType:ne,parenthesizeConstituentTypesOfIntersectionType:re,parenthesizeConstituentTypeOfIntersectionType:w,parenthesizeOperandOfTypeOperator:M,parenthesizeOperandOfReadonlyTypeOperator:U,parenthesizeNonArrayTypeOfPostfixType:H,parenthesizeElementTypesOfTupleType:q,parenthesizeElementTypeOfTupleType:R,parenthesizeTypeOfOptionalType:I,parenthesizeTypeArguments:ee,parenthesizeLeadingTypeArgument:he};function D(J){T||(T=new e.Map);var de=T.get(J);return de||(de=function(De){return te(J,De)},T.set(J,de)),de}function O(J){s||(s=new e.Map);var de=s.get(J);return de||(de=function(De){return Y(J,void 0,De)},s.set(J,de)),de}function W(J,de,De,N){var b=e.getOperatorPrecedence(223,J),Q=e.getOperatorAssociativity(223,J),G=e.skipPartiallyEmittedExpressions(de);if(!De&&de.kind===216&&b>3)return!0;var ae=e.getExpressionPrecedence(G);switch(e.compareValues(ae,b)){case-1:return!(!De&&Q===1&&de.kind===226);case 1:return!1;case 0:if(De)return Q===1;if(e.isBinaryExpression(G)&&G.operatorToken.kind===J){if(E(J))return!1;if(J===39){var Te=N?v(N):0;if(e.isLiteralKind(Te)&&Te===v(G))return!1}}var Ne=e.getExpressionAssociativity(G);return Ne===0}}function E(J){return J===41||J===51||J===50||J===52||J===27}function v(J){if(J=e.skipPartiallyEmittedExpressions(J),e.isLiteralKind(J.kind))return J.kind;if(J.kind===223&&J.operatorToken.kind===39){if(J.cachedLiteralKind!==void 0)return J.cachedLiteralKind;var de=v(J.left),De=e.isLiteralKind(de)&&de===v(J.right)?de:0;return J.cachedLiteralKind=De,De}return 0}function S(J,de,De,N){var b=e.skipPartiallyEmittedExpressions(de);return b.kind===214?de:W(J,de,De,N)?P.createParenthesizedExpression(de):de}function te(J,de){return S(J,de,!0)}function Y(J,de,De){return S(J,De,!1,de)}function Z(J){return e.isCommaSequence(J)?P.createParenthesizedExpression(J):J}function ce(J){var de=e.getOperatorPrecedence(224,57),De=e.skipPartiallyEmittedExpressions(J),N=e.getExpressionPrecedence(De);return e.compareValues(N,de)!==1?P.createParenthesizedExpression(J):J}function k(J){var de=e.skipPartiallyEmittedExpressions(J);return e.isCommaSequence(de)?P.createParenthesizedExpression(J):J}function X(J){var de=e.skipPartiallyEmittedExpressions(J),De=e.isCommaSequence(de);if(!De)switch(e.getLeftmostExpression(de,!1).kind){case 228:case 215:De=!0}return De?P.createParenthesizedExpression(J):J}function A(J){var de=e.getLeftmostExpression(J,!0);switch(de.kind){case 210:return P.createParenthesizedExpression(J);case 211:return de.arguments?J:P.createParenthesizedExpression(J)}return y(J)}function y(J,de){var De=e.skipPartiallyEmittedExpressions(J);return e.isLeftHandSideExpression(De)&&(De.kind!==211||De.arguments)&&(de||!e.isOptionalChain(De))?J:e.setTextRange(P.createParenthesizedExpression(J),J)}function C(J){return e.isLeftHandSideExpression(J)?J:e.setTextRange(P.createParenthesizedExpression(J),J)}function B(J){return e.isUnaryExpression(J)?J:e.setTextRange(P.createParenthesizedExpression(J),J)}function F(J){var de=e.sameMap(J,z);return e.setTextRange(P.createNodeArray(de,J.hasTrailingComma),J)}function z(J){var de=e.skipPartiallyEmittedExpressions(J),De=e.getExpressionPrecedence(de),N=e.getOperatorPrecedence(223,27);return De>N?J:e.setTextRange(P.createParenthesizedExpression(J),J)}function ge(J){var de=e.skipPartiallyEmittedExpressions(J);if(e.isCallExpression(de)){var De=de.expression,N=e.skipPartiallyEmittedExpressions(De).kind;if(N===215||N===216){var b=P.updateCallExpression(de,e.setTextRange(P.createParenthesizedExpression(De),De),de.typeArguments,de.arguments);return P.restoreOuterExpressions(J,b,8)}}var Q=e.getLeftmostExpression(de,!1).kind;return Q===207||Q===215?e.setTextRange(P.createParenthesizedExpression(J),J):J}function Pe(J){return!e.isBlock(J)&&(e.isCommaSequence(J)||e.getLeftmostExpression(J,!1).kind===207)?e.setTextRange(P.createParenthesizedExpression(J),J):J}function fe(J){switch(J.kind){case 181:case 182:case 191:return P.createParenthesizedType(J)}return J}function _e(J){switch(J.kind){case 191:return P.createParenthesizedType(J)}return J}function ne(J){switch(J.kind){case 189:case 190:return P.createParenthesizedType(J)}return fe(J)}function oe(J){return P.createNodeArray(e.sameMap(J,ne))}function w(J){switch(J.kind){case 189:case 190:return P.createParenthesizedType(J)}return ne(J)}function re(J){return P.createNodeArray(e.sameMap(J,w))}function M(J){switch(J.kind){case 190:return P.createParenthesizedType(J)}return w(J)}function U(J){switch(J.kind){case 195:return P.createParenthesizedType(J)}return M(J)}function H(J){switch(J.kind){case 192:case 195:case 183:return P.createParenthesizedType(J)}return M(J)}function q(J){return P.createNodeArray(e.sameMap(J,R))}function R(J){return K(J)?P.createParenthesizedType(J):J}function K(J){return e.isJSDocNullableType(J)?J.postfix:e.isNamedTupleMember(J)||e.isFunctionTypeNode(J)||e.isConstructorTypeNode(J)||e.isTypeOperatorNode(J)?K(J.type):e.isConditionalTypeNode(J)?K(J.falseType):e.isUnionTypeNode(J)||e.isIntersectionTypeNode(J)?K(e.last(J.types)):e.isInferTypeNode(J)?!!J.typeParameter.constraint&&K(J.typeParameter.constraint):!1}function I(J){return K(J)?P.createParenthesizedType(J):H(J)}function he(J){return e.isFunctionOrConstructorTypeNode(J)&&J.typeParameters?P.createParenthesizedType(J):J}function le(J,de){return de===0?he(J):J}function ee(J){if(e.some(J))return P.createNodeArray(e.sameMap(J,le))}}e.createParenthesizerRules=c,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(P){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(P){return e.identity},parenthesizeLeftSideOfBinary:function(P,T){return T},parenthesizeRightSideOfBinary:function(P,T,s){return s},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(P){return e.cast(P,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(P){return e.cast(P,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(P){return e.cast(P,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(P){return e.cast(P,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(P){return e.cast(P,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:function(P){return e.cast(P,e.isNodeArray)},parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:function(P){return e.cast(P,e.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:function(P){return e.cast(P,e.isNodeArray)},parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:function(P){return P&&e.cast(P,e.isNodeArray)},parenthesizeLeadingTypeArgument:e.identity}})(h||(h={}));var h;(function(e){function c(P){return{convertToFunctionBlock:T,convertToFunctionExpression:s,convertToArrayAssignmentElement:D,convertToObjectAssignmentElement:O,convertToAssignmentPattern:W,convertToObjectAssignmentPattern:E,convertToArrayAssignmentPattern:v,convertToAssignmentElementTarget:S};function T(te,Y){if(e.isBlock(te))return te;var Z=P.createReturnStatement(te);e.setTextRange(Z,te);var ce=P.createBlock([Z],Y);return e.setTextRange(ce,te),ce}function s(te){if(!te.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var Y=P.createFunctionExpression(te.modifiers,te.asteriskToken,te.name,te.typeParameters,te.parameters,te.type,te.body);return e.setOriginalNode(Y,te),e.setTextRange(Y,te),e.getStartsOnNewLine(te)&&e.setStartsOnNewLine(Y,!0),Y}function D(te){if(e.isBindingElement(te)){if(te.dotDotDotToken)return e.Debug.assertNode(te.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(P.createSpreadElement(te.name),te),te);var Y=S(te.name);return te.initializer?e.setOriginalNode(e.setTextRange(P.createAssignment(Y,te.initializer),te),te):Y}return e.cast(te,e.isExpression)}function O(te){if(e.isBindingElement(te)){if(te.dotDotDotToken)return e.Debug.assertNode(te.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(P.createSpreadAssignment(te.name),te),te);if(te.propertyName){var Y=S(te.name);return e.setOriginalNode(e.setTextRange(P.createPropertyAssignment(te.propertyName,te.initializer?P.createAssignment(Y,te.initializer):Y),te),te)}return e.Debug.assertNode(te.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(P.createShorthandPropertyAssignment(te.name,te.initializer),te),te)}return e.cast(te,e.isObjectLiteralElementLike)}function W(te){switch(te.kind){case 204:case 206:return v(te);case 203:case 207:return E(te)}}function E(te){return e.isObjectBindingPattern(te)?e.setOriginalNode(e.setTextRange(P.createObjectLiteralExpression(e.map(te.elements,O)),te),te):e.cast(te,e.isObjectLiteralExpression)}function v(te){return e.isArrayBindingPattern(te)?e.setOriginalNode(e.setTextRange(P.createArrayLiteralExpression(e.map(te.elements,D)),te),te):e.cast(te,e.isArrayLiteralExpression)}function S(te){return e.isBindingPattern(te)?W(te):e.cast(te,e.isExpression)}}e.createNodeConverters=c,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(h||(h={}));var h;(function(e){var c=0;(function(ne){ne[ne.None=0]="None",ne[ne.NoParenthesizerRules=1]="NoParenthesizerRules",ne[ne.NoNodeConverters=2]="NoNodeConverters",ne[ne.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",ne[ne.NoOriginalNode=8]="NoOriginalNode"})(e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function P(ne,oe){var w=ne&8?T:s,re=e.memoize(function(){return ne&1?e.nullParenthesizerRules:e.createParenthesizerRules(N)}),M=e.memoize(function(){return ne&2?e.nullNodeConverters:e.createNodeConverters(N)}),U=e.memoizeOne(function(x){return function(se,ke){return kc(se,x,ke)}}),H=e.memoizeOne(function(x){return function(se){return ua(x,se)}}),q=e.memoizeOne(function(x){return function(se){return xs(se,x)}}),R=e.memoizeOne(function(x){return function(){return Ad(x)}}),K=e.memoizeOne(function(x){return function(se){return Pd(x,se)}}),I=e.memoizeOne(function(x){return function(se,ke){return gc(x,se,ke)}}),he=e.memoizeOne(function(x){return function(se,ke){return vf(x,se,ke)}}),le=e.memoizeOne(function(x){return function(se,ke){return Vs(x,se,ke)}}),ee=e.memoizeOne(function(x){return function(se,ke){return Ys(x,se,ke)}}),J=e.memoizeOne(function(x){return function(se,ke,pr){return qm(x,se,ke,pr)}}),de=e.memoizeOne(function(x){return function(se,ke,pr){return mo(x,se,ke,pr)}}),De=e.memoizeOne(function(x){return function(se,ke,pr,st){return Zn(x,se,ke,pr,st)}}),N={get parenthesizer(){return re()},get converters(){return M()},baseFactory:oe,flags:ne,createNodeArray:b,createNumericLiteral:Ce,createBigIntLiteral:Ae,createStringLiteral:xe,createStringLiteralFromNode:L,createRegularExpressionLiteral:ue,createLiteralLikeNode:Ue,createIdentifier:mr,updateIdentifier:Hr,createTempVariable:wr,createLoopVariable:Oe,createUniqueName:Ze,getGeneratedNameForNode:tt,createPrivateIdentifier:or,createUniquePrivateName:Rr,getGeneratedPrivateNameForNode:zr,createToken:_t,createSuper:Ct,createThis:yt,createNull:Fe,createTrue:vr,createFalse:Le,createModifier:cr,createModifiersFromModifierFlags:$r,createQualifiedName:Re,updateQualifiedName:xr,createComputedPropertyName:Br,updateComputedPropertyName:Qr,createTypeParameterDeclaration:ct,updateTypeParameterDeclaration:ft,createParameterDeclaration:Dt,updateParameterDeclaration:Me,createDecorator:Ke,updateDecorator:Vr,createPropertySignature:Yr,updatePropertySignature:Nt,createPropertyDeclaration:sn,updatePropertyDeclaration:en,createMethodSignature:Ir,updateMethodSignature:Jr,createMethodDeclaration:ye,updateMethodDeclaration:Ie,createConstructorDeclaration:Or,updateConstructorDeclaration:Ge,createGetAccessorDeclaration:Lr,updateGetAccessorDeclaration:Ar,createSetAccessorDeclaration:Et,updateSetAccessorDeclaration:St,createCallSignature:pt,updateCallSignature:Ft,createConstructSignature:ht,updateConstructSignature:Yt,createIndexSignature:un,updateIndexSignature:wn,createClassStaticBlockDeclaration:dr,updateClassStaticBlockDeclaration:ar,createTemplateLiteralTypeSpan:Bn,updateTemplateLiteralTypeSpan:yn,createKeywordTypeNode:Tn,createTypePredicateNode:An,updateTypePredicateNode:ii,createTypeReferenceNode:Xe,updateTypeReferenceNode:hr,createFunctionTypeNode:at,updateFunctionTypeNode:Qe,createConstructorTypeNode:Zt,updateConstructorTypeNode:kt,createTypeQueryNode:et,updateTypeQueryNode:It,createTypeLiteralNode:xn,updateTypeLiteralNode:pi,createArrayTypeNode:ai,updateArrayTypeNode:Wi,createTupleTypeNode:ji,updateTupleTypeNode:fn,createNamedTupleMember:Ri,updateNamedTupleMember:ma,createOptionalTypeNode:ra,updateOptionalTypeNode:vn,createRestTypeNode:zo,updateRestTypeNode:_a,createUnionTypeNode:Ka,updateUnionTypeNode:rs,createIntersectionTypeNode:ts,updateIntersectionTypeNode:En,createConditionalTypeNode:ca,updateConditionalTypeNode:bo,createInferTypeNode:Oo,updateInferTypeNode:Ws,createImportTypeNode:gs,updateImportTypeNode:Ds,createParenthesizedType:Ko,updateParenthesizedType:kr,createThisTypeNode:jr,createTypeOperatorNode:Nn,updateTypeOperatorNode:xi,createIndexedAccessTypeNode:ka,updateIndexedAccessTypeNode:ro,createMappedTypeNode:Ye,updateMappedTypeNode:lt,createLiteralTypeNode:Ut,updateLiteralTypeNode:Ve,createTemplateLiteralType:Co,updateTemplateLiteralType:qs,createObjectBindingPattern:yr,updateObjectBindingPattern:Er,createArrayBindingPattern:Wr,updateArrayBindingPattern:Ot,createBindingElement:ln,updateBindingElement:kn,createArrayLiteralExpression:_i,updateArrayLiteralExpression:qi,createObjectLiteralExpression:va,updateObjectLiteralExpression:Ia,createPropertyAccessExpression:ne&4?function(x,se){return e.setEmitFlags($a(x,se),131072)}:$a,updatePropertyAccessExpression:ws,createPropertyAccessChain:ne&4?function(x,se,ke){return e.setEmitFlags(rc(x,se,ke),131072)}:rc,updatePropertyAccessChain:Wo,createElementAccessExpression:ds,updateElementAccessExpression:yu,createElementAccessChain:bu,updateElementAccessChain:tu,createCallExpression:$c,updateCallExpression:Su,createCallChain:Lc,updateCallChain:Hc,createNewExpression:tc,updateNewExpression:fc,createTaggedTemplateExpression:nu,updateTaggedTemplateExpression:nc,createTypeAssertion:Xt,updateTypeAssertion:be,createParenthesizedExpression:Ur,updateParenthesizedExpression:At,createFunctionExpression:an,updateFunctionExpression:Kn,createArrowFunction:Yn,updateArrowFunction:Si,createDeleteExpression:vi,updateDeleteExpression:Da,createTypeOfExpression:ta,updateTypeOfExpression:fo,createVoidExpression:oo,updateVoidExpression:er,createAwaitExpression:Bt,updateAwaitExpression:Mr,createPrefixUnaryExpression:ua,updatePrefixUnaryExpression:_o,createPostfixUnaryExpression:xs,updatePostfixUnaryExpression:yc,createBinaryExpression:kc,updateBinaryExpression:iu,createConditionalExpression:_u,updateConditionalExpression:wl,createTemplateExpression:Du,updateTemplateExpression:Jo,createTemplateHead:Up,createTemplateMiddle:Vp,createTemplateTail:wu,createNoSubstitutionTemplateLiteral:Nl,createTemplateLiteralLikeNode:Ju,createYieldExpression:pf,updateYieldExpression:Il,createSpreadElement:Xl,updateSpreadElement:Zr,createClassExpression:Xr,updateClassExpression:$t,createOmittedExpression:Dn,createExpressionWithTypeArguments:Mn,updateExpressionWithTypeArguments:zn,createAsExpression:mi,updateAsExpression:Qn,createNonNullExpression:Xi,updateNonNullExpression:Va,createSatisfiesExpression:ga,updateSatisfiesExpression:Yi,createNonNullChain:so,updateNonNullChain:da,createMetaProperty:Po,updateMetaProperty:Uo,createTemplateSpan:Qs,updateTemplateSpan:ya,createSemicolonClassElement:Ee,createBlock:Dr,updateBlock:Nr,createVariableStatement:Mt,updateVariableStatement:In,createEmptyStatement:Di,createExpressionStatement:Pi,updateExpressionStatement:Aa,createIfStatement:co,updateIfStatement:os,createDoStatement:qo,updateDoStatement:no,createWhileStatement:uo,updateWhileStatement:_s,createForStatement:fs,updateForStatement:Xs,createForInStatement:bc,updateForInStatement:fp,createForOfStatement:zp,updateForOfStatement:pc,createContinueStatement:vl,updateContinueStatement:nt,createBreakStatement:Wp,updateBreakStatement:df,createReturnStatement:_f,updateReturnStatement:Ig,createWithStatement:pp,updateWithStatement:Yl,createSwitchStatement:i_,updateSwitchStatement:Lo,createLabeledStatement:Mm,updateLabeledStatement:J_,createThrowStatement:a_,updateThrowStatement:qp,createTryStatement:mf,updateTryStatement:Fm,createDebuggerStatement:dp,createVariableDeclaration:tl,updateVariableDeclaration:Lm,createVariableDeclarationList:o_,updateVariableDeclarationList:la,createFunctionDeclaration:Mi,updateFunctionDeclaration:sl,createClassDeclaration:U_,updateClassDeclaration:$p,createInterfaceDeclaration:Og,updateInterfaceDeclaration:V_,createTypeAliasDeclaration:Rm,updateTypeAliasDeclaration:s_,createEnumDeclaration:Mg,updateEnumDeclaration:ms,createModuleDeclaration:Bm,updateModuleDeclaration:gf,createModuleBlock:Sc,updateModuleBlock:_p,createCaseBlock:au,updateCaseBlock:Dh,createNamespaceExportDeclaration:Lg,updateNamespaceExportDeclaration:Rg,createImportEqualsDeclaration:Bg,updateImportEqualsDeclaration:Ff,createImportDeclaration:Gp,updateImportDeclaration:W_,createImportClause:xd,updateImportClause:Kp,createAssertClause:q_,updateAssertClause:Qp,createAssertEntry:Td,updateAssertEntry:$_,createImportTypeAssertionContainer:Ed,updateImportTypeAssertionContainer:Jm,createNamespaceImport:Cd,updateNamespaceImport:Xp,createNamespaceExport:H_,updateNamespaceExport:Yp,createNamedImports:ou,updateNamedImports:nl,createImportSpecifier:gp,updateImportSpecifier:Zp,createExportAssignment:ed,updateExportAssignment:Ml,createExportDeclaration:cl,updateExportDeclaration:kd,createNamedExports:yl,updateNamedExports:hf,createExportSpecifier:c_,updateExportSpecifier:jg,createMissingDeclaration:Um,createExternalModuleReference:G_,updateExternalModuleReference:Yo,get createJSDocAllType(){return R(315)},get createJSDocUnknownType(){return R(316)},get createJSDocNonNullableType(){return he(318)},get updateJSDocNonNullableType(){return le(318)},get createJSDocNullableType(){return he(317)},get updateJSDocNullableType(){return le(317)},get createJSDocOptionalType(){return K(319)},get updateJSDocOptionalType(){return I(319)},get createJSDocVariadicType(){return K(321)},get updateJSDocVariadicType(){return I(321)},get createJSDocNamepathType(){return K(322)},get updateJSDocNamepathType(){return I(322)},createJSDocFunctionType:Vm,updateJSDocFunctionType:Gc,createJSDocTypeLiteral:Xn,updateJSDocTypeLiteral:sc,createJSDocTypeExpression:ba,updateJSDocTypeExpression:yf,createJSDocSignature:bl,updateJSDocSignature:Lf,createJSDocTemplateTag:wd,updateJSDocTemplateTag:zs,createJSDocTypedefTag:ns,updateJSDocTypedefTag:ul,createJSDocParameterTag:Nd,updateJSDocParameterTag:Id,createJSDocPropertyTag:bf,updateJSDocPropertyTag:Ac,createJSDocCallbackTag:hp,updateJSDocCallbackTag:Zl,createJSDocAugmentsTag:Rf,updateJSDocAugmentsTag:zm,createJSDocImplementsTag:Od,updateJSDocImplementsTag:Ll,createJSDocSeeTag:Rc,updateJSDocSeeTag:vp,createJSDocNameReference:rd,updateJSDocNameReference:yp,createJSDocMemberName:ef,updateJSDocMemberName:Sl,createJSDocLink:K_,updateJSDocLink:Wm,createJSDocLinkCode:bp,updateJSDocLinkCode:u_,createJSDocLinkPlain:Pc,updateJSDocLinkPlain:Dc,get createJSDocTypeTag(){return de(346)},get updateJSDocTypeTag(){return De(346)},get createJSDocReturnTag(){return de(344)},get updateJSDocReturnTag(){return De(344)},get createJSDocThisTag(){return de(345)},get updateJSDocThisTag(){return De(345)},get createJSDocEnumTag(){return de(342)},get updateJSDocEnumTag(){return De(342)},get createJSDocAuthorTag(){return ee(333)},get updateJSDocAuthorTag(){return J(333)},get createJSDocClassTag(){return ee(335)},get updateJSDocClassTag(){return J(335)},get createJSDocPublicTag(){return ee(336)},get updateJSDocPublicTag(){return J(336)},get createJSDocPrivateTag(){return ee(337)},get updateJSDocPrivateTag(){return J(337)},get createJSDocProtectedTag(){return ee(338)},get updateJSDocProtectedTag(){return J(338)},get createJSDocReadonlyTag(){return ee(339)},get updateJSDocReadonlyTag(){return J(339)},get createJSDocOverrideTag(){return ee(340)},get updateJSDocOverrideTag(){return J(340)},get createJSDocDeprecatedTag(){return ee(334)},get updateJSDocDeprecatedTag(){return J(334)},createJSDocUnknownTag:Bc,updateJSDocUnknownTag:Sf,createJSDocText:Md,updateJSDocText:Jg,createJSDocComment:l_,updateJSDocComment:td,createJsxElement:Uu,updateJsxElement:Iu,createJsxSelfClosingElement:Sp,updateJsxSelfClosingElement:f_,createJsxOpeningElement:xu,updateJsxOpeningElement:Fd,createJsxClosingElement:Os,updateJsxClosingElement:ll,createJsxFragment:Q_,createJsxText:Rl,updateJsxText:Dp,createJsxOpeningFragment:X_,createJsxJsxClosingFragment:p_,updateJsxFragment:ic,createJsxAttribute:Vu,updateJsxAttribute:Es,createJsxAttributes:Y_,updateJsxAttributes:Bl,createJsxSpreadAttribute:Bf,updateJsxSpreadAttribute:xp,createJsxExpression:Ld,updateJsxExpression:nd,createCaseClause:Df,updateCaseClause:d_,createDefaultClause:__,updateDefaultClause:Z_,createHeritageClause:rf,updateHeritageClause:xf,createCatchClause:em,updateCatchClause:Ug,createPropertyAssignment:zu,updatePropertyAssignment:$m,createShorthandPropertyAssignment:na,updateShorthandPropertyAssignment:Tp,createSpreadAssignment:rm,updateSpreadAssignment:m_,createEnumMember:g_,updateEnumMember:Ep,createSourceFile:Hm,updateSourceFile:Wu,createBundle:id,updateBundle:tm,createUnparsedSource:fl,createUnparsedPrologue:Gm,createUnparsedPrepend:Km,createUnparsedTextLike:ad,createUnparsedSyntheticReference:Dl,createInputFiles:V,createSyntheticExpression:ir,createSyntaxList:bt,createNotEmittedStatement:tn,createPartiallyEmittedExpression:oi,updatePartiallyEmittedExpression:Ii,createCommaListExpression:di,updateCommaListExpression:io,createEndOfDeclarationMarker:fa,createMergeDeclarationMarker:pa,createSyntheticReferenceExpression:jc,updateSyntheticReferenceExpression:pl,cloneNode:Hs,get createComma(){return U(27)},get createAssignment(){return U(63)},get createLogicalOr(){return U(56)},get createLogicalAnd(){return U(55)},get createBitwiseOr(){return U(51)},get createBitwiseXor(){return U(52)},get createBitwiseAnd(){return U(50)},get createStrictEquality(){return U(36)},get createStrictInequality(){return U(37)},get createEquality(){return U(34)},get createInequality(){return U(35)},get createLessThan(){return U(29)},get createLessThanEquals(){return U(32)},get createGreaterThan(){return U(31)},get createGreaterThanEquals(){return U(33)},get createLeftShift(){return U(47)},get createRightShift(){return U(48)},get createUnsignedRightShift(){return U(49)},get createAdd(){return U(39)},get createSubtract(){return U(40)},get createMultiply(){return U(41)},get createDivide(){return U(43)},get createModulo(){return U(44)},get createExponent(){return U(42)},get createPrefixPlus(){return H(39)},get createPrefixMinus(){return H(40)},get createPrefixIncrement(){return H(45)},get createPrefixDecrement(){return H(46)},get createBitwiseNot(){return H(54)},get createLogicalNot(){return H(53)},get createPostfixIncrement(){return q(45)},get createPostfixDecrement(){return q(46)},createImmediatelyInvokedFunctionExpression:qu,createImmediatelyInvokedArrowFunction:il,createVoidZero:jl,createExportDefault:Jf,createExternalModuleExport:Qm,createTypeCheck:Vg,createMethodCall:Uf,createGlobalMethodCall:Ef,createFunctionBindCall:nm,createFunctionCallCall:im,createFunctionApplyCall:Xm,createArraySliceCall:dl,createArrayConcatCall:am,createObjectDefinePropertyCall:Ym,createReflectGetCall:Th,createReflectSetCall:zg,createPropertyDescriptor:Tv,createCallBinding:Ev,createAssignmentTargetWrapper:Cv,inlineExpressions:ze,getInternalName:ot,getLocalName:xt,getExportName:Gt,getDeclarationName:gn,getNamespaceMemberName:ci,getExternalModuleOrNamespaceExportName:Fi,restoreOuterExpressions:Zm,restoreEnclosingLabel:kh,createUseStrictPrologue:Ma,copyPrologue:Oi,copyStandardPrologue:Qo,copyCustomPrologue:wo,ensureUseStrict:ss,liftToBlock:Cs,mergeLexicalEnvironment:wc,updateModifiers:_l};return N;function b(x,se){if(x===void 0||x===e.emptyArray)x=[];else if(e.isNodeArray(x)){if(se===void 0||x.hasTrailingComma===se)return x.transformFlags===void 0&&Z(x),e.Debug.attachNodeArrayDebugInfo(x),x;var ke=x.slice();return ke.pos=x.pos,ke.end=x.end,ke.hasTrailingComma=se,ke.transformFlags=x.transformFlags,e.Debug.attachNodeArrayDebugInfo(ke),ke}var pr=x.length,st=pr>=1&&pr<=4?x.slice():x;return e.setTextRangePosEnd(st,-1,-1),st.hasTrailingComma=!!se,Z(st),e.Debug.attachNodeArrayDebugInfo(st),st}function Q(x){return oe.createBaseNode(x)}function G(x){var se=Q(x);return se.symbol=void 0,se.localSymbol=void 0,se.locals=void 0,se.nextContainer=void 0,se}function ae(x,se,ke){var pr=G(x);if(ke=cu(ke),pr.name=ke,e.canHaveModifiers(pr)&&(pr.modifiers=hs(se),pr.transformFlags|=Y(pr.modifiers)),ke)switch(pr.kind){case 171:case 174:case 175:case 169:case 299:if(e.isIdentifier(ke)){pr.transformFlags|=v(ke);break}default:pr.transformFlags|=te(ke);break}return pr}function Te(x,se,ke,pr){var st=ae(x,se,ke);return st.typeParameters=hs(pr),st.transformFlags|=Y(st.typeParameters),pr&&(st.transformFlags|=1),st}function Ne(x,se,ke,pr,st,bn){var hi=Te(x,se,ke,pr);return hi.parameters=b(st),hi.type=bn,hi.transformFlags|=Y(hi.parameters)|te(hi.type),bn&&(hi.transformFlags|=1),hi.typeArguments=void 0,hi}function we(x,se){return x!==se&&(x.typeArguments=se.typeArguments),w(x,se)}function nr(x,se,ke,pr,st,bn,hi){var _n=Ne(x,se,ke,pr,st,bn);return _n.body=hi,_n.transformFlags|=te(_n.body)&-67108865,hi||(_n.transformFlags|=1),_n}function tr(x,se,ke,pr,st){var bn=Te(x,se,ke,pr);return bn.heritageClauses=hs(st),bn.transformFlags|=Y(bn.heritageClauses),bn}function me(x,se,ke,pr,st,bn){var hi=tr(x,se,ke,pr,st);return hi.members=b(bn),hi.transformFlags|=Y(hi.members),hi}function He(x,se,ke,pr){var st=ae(x,se,ke);return st.initializer=pr,st.transformFlags|=te(st.initializer),st}function rr(x,se,ke,pr,st){var bn=He(x,se,ke,st);return bn.type=pr,bn.transformFlags|=te(pr),pr&&(bn.transformFlags|=1),bn}function je(x,se){var ke=Fr(x);return ke.text=se,ke}function Ce(x,se){se===void 0&&(se=0);var ke=je(8,typeof x=="number"?x+"":x);return ke.numericLiteralFlags=se,se&384&&(ke.transformFlags|=1024),ke}function Ae(x){var se=je(9,typeof x=="string"?x:e.pseudoBigIntToString(x)+"n");return se.transformFlags|=4,se}function qe(x,se){var ke=je(10,x);return ke.singleQuote=se,ke}function xe(x,se,ke){var pr=qe(x,se);return pr.hasExtendedUnicodeEscape=ke,ke&&(pr.transformFlags|=1024),pr}function L(x){var se=qe(e.getTextOfIdentifierOrLiteral(x),void 0);return se.textSourceNode=x,se}function ue(x){var se=je(13,x);return se}function Ue(x,se){switch(x){case 8:return Ce(se,0);case 9:return Ae(se);case 10:return xe(se,void 0);case 11:return Rl(se,!1);case 12:return Rl(se,!0);case 13:return ue(se);case 14:return Ju(x,se,void 0,0)}}function Je(x,se){se===void 0&&x&&(se=e.stringToToken(x)),se===79&&(se=void 0);var ke=oe.createBaseIdentifierNode(79);return ke.originalKeywordKind=se,ke.escapedText=e.escapeLeadingUnderscores(x),ke}function lr(x,se,ke,pr){var st=Je(x,void 0);return st.autoGenerateFlags=se,st.autoGenerateId=c,st.autoGeneratePrefix=ke,st.autoGenerateSuffix=pr,c++,st}function mr(x,se,ke,pr){var st=Je(x,ke);return se&&(st.typeArguments=b(se)),st.originalKeywordKind===133&&(st.transformFlags|=67108864),pr&&(st.hasExtendedUnicodeEscape=pr,st.transformFlags|=1024),st}function Hr(x,se){return x.typeArguments!==se?w(mr(e.idText(x),se),x):x}function wr(x,se,ke,pr){var st=1;se&&(st|=8);var bn=lr("",st,ke,pr);return x&&x(bn),bn}function Oe(x){var se=2;return x&&(se|=8),lr("",se,void 0,void 0)}function Ze(x,se,ke,pr){return se===void 0&&(se=0),e.Debug.assert(!(se&7),"Argument out of range: flags"),e.Debug.assert((se&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),lr(x,3|se,ke,pr)}function tt(x,se,ke,pr){se===void 0&&(se=0),e.Debug.assert(!(se&7),"Argument out of range: flags");var st=x?e.isMemberName(x)?e.formatGeneratedName(!1,ke,x,pr,e.idText):"generated@".concat(e.getNodeId(x)):"";(ke||pr)&&(se|=16);var bn=lr(st,4|se,ke,pr);return bn.original=x,bn}function ut(x){var se=oe.createBasePrivateIdentifierNode(80);return se.escapedText=e.escapeLeadingUnderscores(x),se.transformFlags|=16777216,se}function or(x){return e.startsWith(x,"#")||e.Debug.fail("First character of private identifier must be #: "+x),ut(x)}function qr(x,se,ke,pr){var st=ut(x);return st.autoGenerateFlags=se,st.autoGenerateId=c,st.autoGeneratePrefix=ke,st.autoGenerateSuffix=pr,c++,st}function Rr(x,se,ke){x&&!e.startsWith(x,"#")&&e.Debug.fail("First character of private identifier must be #: "+x);var pr=8|(x?3:1);return qr(x??"",pr,se,ke)}function zr(x,se,ke){var pr=e.isMemberName(x)?e.formatGeneratedName(!0,se,x,ke,e.idText):"#generated@".concat(e.getNodeId(x)),st=se||ke?16:0,bn=qr(pr,4|st,se,ke);return bn.original=x,bn}function Fr(x){return oe.createBaseTokenNode(x)}function _t(x){e.Debug.assert(x>=0&&x<=162,"Invalid token"),e.Debug.assert(x<=14||x>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(x<=8||x>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(x!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var se=Fr(x),ke=0;switch(x){case 132:ke=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:ke=1;break;case 106:ke=134218752;break;case 124:ke=1024;break;case 127:ke=16777216;break;case 108:ke=16384;break}return ke&&(se.transformFlags|=ke),se}function Ct(){return _t(106)}function yt(){return _t(108)}function Fe(){return _t(104)}function vr(){return _t(110)}function Le(){return _t(95)}function cr(x){return _t(x)}function $r(x){var se=[];return x&1&&se.push(cr(93)),x&2&&se.push(cr(136)),x&1024&&se.push(cr(88)),x&2048&&se.push(cr(85)),x&4&&se.push(cr(123)),x&8&&se.push(cr(121)),x&16&&se.push(cr(122)),x&256&&se.push(cr(126)),x&32&&se.push(cr(124)),x&16384&&se.push(cr(161)),x&64&&se.push(cr(146)),x&128&&se.push(cr(127)),x&512&&se.push(cr(132)),x&32768&&se.push(cr(101)),x&65536&&se.push(cr(145)),se.length?se:void 0}function Re(x,se){var ke=Q(163);return ke.left=x,ke.right=cu(se),ke.transformFlags|=te(ke.left)|v(ke.right),ke}function xr(x,se,ke){return x.left!==se||x.right!==ke?w(Re(se,ke),x):x}function Br(x){var se=Q(164);return se.expression=re().parenthesizeExpressionOfComputedPropertyName(x),se.transformFlags|=te(se.expression)|1024|131072,se}function Qr(x,se){return x.expression!==se?w(Br(se),x):x}function ct(x,se,ke,pr){var st=ae(165,x,se);return st.constraint=ke,st.default=pr,st.transformFlags=1,st}function ft(x,se,ke,pr,st){return x.modifiers!==se||x.name!==ke||x.constraint!==pr||x.default!==st?w(ct(se,ke,pr,st),x):x}function Dt(x,se,ke,pr,st,bn){var hi=rr(166,x,ke,st,bn&&re().parenthesizeExpressionForDisallowedComma(bn));return hi.dotDotDotToken=se,hi.questionToken=pr,e.isThisIdentifier(hi.name)?hi.transformFlags=1:(hi.transformFlags|=te(hi.dotDotDotToken)|te(hi.questionToken),pr&&(hi.transformFlags|=1),e.modifiersToFlags(hi.modifiers)&16476&&(hi.transformFlags|=8192),(bn||se)&&(hi.transformFlags|=1024)),hi}function Me(x,se,ke,pr,st,bn,hi){return x.modifiers!==se||x.dotDotDotToken!==ke||x.name!==pr||x.questionToken!==st||x.type!==bn||x.initializer!==hi?w(Dt(se,ke,pr,st,bn,hi),x):x}function Ke(x){var se=Q(167);return se.expression=re().parenthesizeLeftSideOfAccess(x,!1),se.transformFlags|=te(se.expression)|1|8192|33554432,se}function Vr(x,se){return x.expression!==se?w(Ke(se),x):x}function Yr(x,se,ke,pr){var st=ae(168,x,se);return st.type=pr,st.questionToken=ke,st.transformFlags=1,st.initializer=void 0,st}function Nt(x,se,ke,pr,st){return x.modifiers!==se||x.name!==ke||x.questionToken!==pr||x.type!==st?Wt(Yr(se,ke,pr,st),x):x}function Wt(x,se){return x!==se&&(x.initializer=se.initializer),w(x,se)}function sn(x,se,ke,pr,st){var bn=rr(169,x,se,pr,st);return bn.questionToken=ke&&e.isQuestionToken(ke)?ke:void 0,bn.exclamationToken=ke&&e.isExclamationToken(ke)?ke:void 0,bn.transformFlags|=te(bn.questionToken)|te(bn.exclamationToken)|16777216,(e.isComputedPropertyName(bn.name)||e.hasStaticModifier(bn)&&bn.initializer)&&(bn.transformFlags|=8192),(ke||e.modifiersToFlags(bn.modifiers)&2)&&(bn.transformFlags|=1),bn}function en(x,se,ke,pr,st,bn){return x.modifiers!==se||x.name!==ke||x.questionToken!==(pr!==void 0&&e.isQuestionToken(pr)?pr:void 0)||x.exclamationToken!==(pr!==void 0&&e.isExclamationToken(pr)?pr:void 0)||x.type!==st||x.initializer!==bn?w(sn(se,ke,pr,st,bn),x):x}function Ir(x,se,ke,pr,st,bn){var hi=Ne(170,x,se,pr,st,bn);return hi.questionToken=ke,hi.transformFlags=1,hi}function Jr(x,se,ke,pr,st,bn,hi){return x.modifiers!==se||x.name!==ke||x.questionToken!==pr||x.typeParameters!==st||x.parameters!==bn||x.type!==hi?we(Ir(se,ke,pr,st,bn,hi),x):x}function ye(x,se,ke,pr,st,bn,hi,_n){var Rs=nr(171,x,ke,st,bn,hi,_n);return Rs.asteriskToken=se,Rs.questionToken=pr,Rs.transformFlags|=te(Rs.asteriskToken)|te(Rs.questionToken)|1024,pr&&(Rs.transformFlags|=1),e.modifiersToFlags(Rs.modifiers)&512?se?Rs.transformFlags|=128:Rs.transformFlags|=256:se&&(Rs.transformFlags|=2048),Rs.exclamationToken=void 0,Rs}function Ie(x,se,ke,pr,st,bn,hi,_n,Rs){return x.modifiers!==se||x.asteriskToken!==ke||x.name!==pr||x.questionToken!==st||x.typeParameters!==bn||x.parameters!==hi||x.type!==_n||x.body!==Rs?We(ye(se,ke,pr,st,bn,hi,_n,Rs),x):x}function We(x,se){return x!==se&&(x.exclamationToken=se.exclamationToken),w(x,se)}function dr(x){var se=Te(172,void 0,void 0,void 0);return se.body=x,se.transformFlags=te(x)|16777216,se.illegalDecorators=void 0,se.modifiers=void 0,se}function ar(x,se){return x.body!==se?Sr(dr(se),x):x}function Sr(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators,x.modifiers=se.modifiers),w(x,se)}function Or(x,se,ke){var pr=nr(173,x,void 0,void 0,se,void 0,ke);return pr.transformFlags|=1024,pr.illegalDecorators=void 0,pr.typeParameters=void 0,pr.type=void 0,pr}function Ge(x,se,ke,pr){return x.modifiers!==se||x.parameters!==ke||x.body!==pr?ur(Or(se,ke,pr),x):x}function ur(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators,x.typeParameters=se.typeParameters,x.type=se.type),we(x,se)}function Lr(x,se,ke,pr,st){var bn=nr(174,x,se,void 0,ke,pr,st);return bn.typeParameters=void 0,bn}function Ar(x,se,ke,pr,st,bn){return x.modifiers!==se||x.name!==ke||x.parameters!==pr||x.type!==st||x.body!==bn?rt(Lr(se,ke,pr,st,bn),x):x}function rt(x,se){return x!==se&&(x.typeParameters=se.typeParameters),we(x,se)}function Et(x,se,ke,pr){var st=nr(175,x,se,void 0,ke,void 0,pr);return st.typeParameters=void 0,st.type=void 0,st}function St(x,se,ke,pr,st){return x.modifiers!==se||x.name!==ke||x.parameters!==pr||x.body!==st?Pt(Et(se,ke,pr,st),x):x}function Pt(x,se){return x!==se&&(x.typeParameters=se.typeParameters,x.type=se.type),we(x,se)}function pt(x,se,ke){var pr=Ne(176,void 0,void 0,x,se,ke);return pr.transformFlags=1,pr}function Ft(x,se,ke,pr){return x.typeParameters!==se||x.parameters!==ke||x.type!==pr?we(pt(se,ke,pr),x):x}function ht(x,se,ke){var pr=Ne(177,void 0,void 0,x,se,ke);return pr.transformFlags=1,pr}function Yt(x,se,ke,pr){return x.typeParameters!==se||x.parameters!==ke||x.type!==pr?we(ht(se,ke,pr),x):x}function un(x,se,ke){var pr=Ne(178,x,void 0,void 0,se,ke);return pr.transformFlags=1,pr}function wn(x,se,ke,pr){return x.parameters!==ke||x.type!==pr||x.modifiers!==se?we(un(se,ke,pr),x):x}function Bn(x,se){var ke=Q(201);return ke.type=x,ke.literal=se,ke.transformFlags=1,ke}function yn(x,se,ke){return x.type!==se||x.literal!==ke?w(Bn(se,ke),x):x}function Tn(x){return _t(x)}function An(x,se,ke){var pr=Q(179);return pr.assertsModifier=x,pr.parameterName=cu(se),pr.type=ke,pr.transformFlags=1,pr}function ii(x,se,ke,pr){return x.assertsModifier!==se||x.parameterName!==ke||x.type!==pr?w(An(se,ke,pr),x):x}function Xe(x,se){var ke=Q(180);return ke.typeName=cu(x),ke.typeArguments=se&&re().parenthesizeTypeArguments(b(se)),ke.transformFlags=1,ke}function hr(x,se,ke){return x.typeName!==se||x.typeArguments!==ke?w(Xe(se,ke),x):x}function at(x,se,ke){var pr=Ne(181,void 0,void 0,x,se,ke);return pr.transformFlags=1,pr.modifiers=void 0,pr}function Qe(x,se,ke,pr){return x.typeParameters!==se||x.parameters!==ke||x.type!==pr?Qt(at(se,ke,pr),x):x}function Qt(x,se){return x!==se&&(x.modifiers=se.modifiers),we(x,se)}function Zt(){for(var x=[],se=0;se<arguments.length;se++)x[se]=arguments[se];return x.length===4?Tt.apply(void 0,x):x.length===3?gt.apply(void 0,x):e.Debug.fail("Incorrect number of arguments specified.")}function Tt(x,se,ke,pr){var st=Ne(182,x,void 0,se,ke,pr);return st.transformFlags=1,st}function gt(x,se,ke){return Tt(void 0,x,se,ke)}function kt(){for(var x=[],se=0;se<arguments.length;se++)x[se]=arguments[se];return x.length===5?Lt.apply(void 0,x):x.length===4?$e.apply(void 0,x):e.Debug.fail("Incorrect number of arguments specified.")}function Lt(x,se,ke,pr,st){return x.modifiers!==se||x.typeParameters!==ke||x.parameters!==pr||x.type!==st?we(Zt(se,ke,pr,st),x):x}function $e(x,se,ke,pr){return Lt(x,x.modifiers,se,ke,pr)}function et(x,se){var ke=Q(183);return ke.exprName=x,ke.typeArguments=se&&re().parenthesizeTypeArguments(se),ke.transformFlags=1,ke}function It(x,se,ke){return x.exprName!==se||x.typeArguments!==ke?w(et(se,ke),x):x}function xn(x){var se=Q(184);return se.members=b(x),se.transformFlags=1,se}function pi(x,se){return x.members!==se?w(xn(se),x):x}function ai(x){var se=Q(185);return se.elementType=re().parenthesizeNonArrayTypeOfPostfixType(x),se.transformFlags=1,se}function Wi(x,se){return x.elementType!==se?w(ai(se),x):x}function ji(x){var se=Q(186);return se.elements=b(re().parenthesizeElementTypesOfTupleType(x)),se.transformFlags=1,se}function fn(x,se){return x.elements!==se?w(ji(se),x):x}function Ri(x,se,ke,pr){var st=Q(199);return st.dotDotDotToken=x,st.name=se,st.questionToken=ke,st.type=pr,st.transformFlags=1,st}function ma(x,se,ke,pr,st){return x.dotDotDotToken!==se||x.name!==ke||x.questionToken!==pr||x.type!==st?w(Ri(se,ke,pr,st),x):x}function ra(x){var se=Q(187);return se.type=re().parenthesizeTypeOfOptionalType(x),se.transformFlags=1,se}function vn(x,se){return x.type!==se?w(ra(se),x):x}function zo(x){var se=Q(188);return se.type=x,se.transformFlags=1,se}function _a(x,se){return x.type!==se?w(zo(se),x):x}function Ha(x,se,ke){var pr=Q(x);return pr.types=N.createNodeArray(ke(se)),pr.transformFlags=1,pr}function Do(x,se,ke){return x.types!==se?w(Ha(x.kind,se,ke),x):x}function Ka(x){return Ha(189,x,re().parenthesizeConstituentTypesOfUnionType)}function rs(x,se){return Do(x,se,re().parenthesizeConstituentTypesOfUnionType)}function ts(x){return Ha(190,x,re().parenthesizeConstituentTypesOfIntersectionType)}function En(x,se){return Do(x,se,re().parenthesizeConstituentTypesOfIntersectionType)}function ca(x,se,ke,pr){var st=Q(191);return st.checkType=re().parenthesizeCheckTypeOfConditionalType(x),st.extendsType=re().parenthesizeExtendsTypeOfConditionalType(se),st.trueType=ke,st.falseType=pr,st.transformFlags=1,st}function bo(x,se,ke,pr,st){return x.checkType!==se||x.extendsType!==ke||x.trueType!==pr||x.falseType!==st?w(ca(se,ke,pr,st),x):x}function Oo(x){var se=Q(192);return se.typeParameter=x,se.transformFlags=1,se}function Ws(x,se){return x.typeParameter!==se?w(Oo(se),x):x}function Co(x,se){var ke=Q(200);return ke.head=x,ke.templateSpans=b(se),ke.transformFlags=1,ke}function qs(x,se,ke){return x.head!==se||x.templateSpans!==ke?w(Co(se,ke),x):x}function gs(x,se,ke,pr,st){st===void 0&&(st=!1);var bn=Q(202);return bn.argument=x,bn.assertions=se,bn.qualifier=ke,bn.typeArguments=pr&&re().parenthesizeTypeArguments(pr),bn.isTypeOf=st,bn.transformFlags=1,bn}function Ds(x,se,ke,pr,st,bn){return bn===void 0&&(bn=x.isTypeOf),x.argument!==se||x.assertions!==ke||x.qualifier!==pr||x.typeArguments!==st||x.isTypeOf!==bn?w(gs(se,ke,pr,st,bn),x):x}function Ko(x){var se=Q(193);return se.type=x,se.transformFlags=1,se}function kr(x,se){return x.type!==se?w(Ko(se),x):x}function jr(){var x=Q(194);return x.transformFlags=1,x}function Nn(x,se){var ke=Q(195);return ke.operator=x,ke.type=x===146?re().parenthesizeOperandOfReadonlyTypeOperator(se):re().parenthesizeOperandOfTypeOperator(se),ke.transformFlags=1,ke}function xi(x,se){return x.type!==se?w(Nn(x.operator,se),x):x}function ka(x,se){var ke=Q(196);return ke.objectType=re().parenthesizeNonArrayTypeOfPostfixType(x),ke.indexType=se,ke.transformFlags=1,ke}function ro(x,se,ke){return x.objectType!==se||x.indexType!==ke?w(ka(se,ke),x):x}function Ye(x,se,ke,pr,st,bn){var hi=Q(197);return hi.readonlyToken=x,hi.typeParameter=se,hi.nameType=ke,hi.questionToken=pr,hi.type=st,hi.members=bn&&b(bn),hi.transformFlags=1,hi}function lt(x,se,ke,pr,st,bn,hi){return x.readonlyToken!==se||x.typeParameter!==ke||x.nameType!==pr||x.questionToken!==st||x.type!==bn||x.members!==hi?w(Ye(se,ke,pr,st,bn,hi),x):x}function Ut(x){var se=Q(198);return se.literal=x,se.transformFlags=1,se}function Ve(x,se){return x.literal!==se?w(Ut(se),x):x}function yr(x){var se=Q(203);return se.elements=b(x),se.transformFlags|=Y(se.elements)|1024|524288,se.transformFlags&32768&&(se.transformFlags|=65664),se}function Er(x,se){return x.elements!==se?w(yr(se),x):x}function Wr(x){var se=Q(204);return se.elements=b(x),se.transformFlags|=Y(se.elements)|1024|524288,se}function Ot(x,se){return x.elements!==se?w(Wr(se),x):x}function ln(x,se,ke,pr){var st=He(205,void 0,ke,pr&&re().parenthesizeExpressionForDisallowedComma(pr));return st.propertyName=cu(se),st.dotDotDotToken=x,st.transformFlags|=te(st.dotDotDotToken)|1024,st.propertyName&&(st.transformFlags|=e.isIdentifier(st.propertyName)?v(st.propertyName):te(st.propertyName)),x&&(st.transformFlags|=32768),st}function kn(x,se,ke,pr,st){return x.propertyName!==ke||x.dotDotDotToken!==se||x.name!==pr||x.initializer!==st?w(ln(se,ke,pr,st),x):x}function Cn(x){var se=Q(x);return se}function _i(x,se){var ke=Cn(206),pr=x&&e.lastOrUndefined(x),st=b(x,pr&&e.isOmittedExpression(pr)?!0:void 0);return ke.elements=re().parenthesizeExpressionsOfCommaDelimitedList(st),ke.multiLine=se,ke.transformFlags|=Y(ke.elements),ke}function qi(x,se){return x.elements!==se?w(_i(se,x.multiLine),x):x}function va(x,se){var ke=Cn(207);return ke.properties=b(x),ke.multiLine=se,ke.transformFlags|=Y(ke.properties),ke}function Ia(x,se){return x.properties!==se?w(va(se,x.multiLine),x):x}function $a(x,se){var ke=Cn(208);return ke.expression=re().parenthesizeLeftSideOfAccess(x,!1),ke.name=cu(se),ke.transformFlags=te(ke.expression)|(e.isIdentifier(ke.name)?v(ke.name):te(ke.name)|536870912),e.isSuperKeyword(x)&&(ke.transformFlags|=384),ke}function ws(x,se,ke){return e.isPropertyAccessChain(x)?Wo(x,se,x.questionDotToken,e.cast(ke,e.isIdentifier)):x.expression!==se||x.name!==ke?w($a(se,ke),x):x}function rc(x,se,ke){var pr=Cn(208);return pr.flags|=32,pr.expression=re().parenthesizeLeftSideOfAccess(x,!0),pr.questionDotToken=se,pr.name=cu(ke),pr.transformFlags|=32|te(pr.expression)|te(pr.questionDotToken)|(e.isIdentifier(pr.name)?v(pr.name):te(pr.name)|536870912),pr}function Wo(x,se,ke,pr){return e.Debug.assert(!!(x.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),x.expression!==se||x.questionDotToken!==ke||x.name!==pr?w(rc(se,ke,pr),x):x}function ds(x,se){var ke=Cn(209);return ke.expression=re().parenthesizeLeftSideOfAccess(x,!1),ke.argumentExpression=ml(se),ke.transformFlags|=te(ke.expression)|te(ke.argumentExpression),e.isSuperKeyword(x)&&(ke.transformFlags|=384),ke}function yu(x,se,ke){return e.isElementAccessChain(x)?tu(x,se,x.questionDotToken,ke):x.expression!==se||x.argumentExpression!==ke?w(ds(se,ke),x):x}function bu(x,se,ke){var pr=Cn(209);return pr.flags|=32,pr.expression=re().parenthesizeLeftSideOfAccess(x,!0),pr.questionDotToken=se,pr.argumentExpression=ml(ke),pr.transformFlags|=te(pr.expression)|te(pr.questionDotToken)|te(pr.argumentExpression)|32,pr}function tu(x,se,ke,pr){return e.Debug.assert(!!(x.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),x.expression!==se||x.questionDotToken!==ke||x.argumentExpression!==pr?w(bu(se,ke,pr),x):x}function $c(x,se,ke){var pr=Cn(210);return pr.expression=re().parenthesizeLeftSideOfAccess(x,!1),pr.typeArguments=hs(se),pr.arguments=re().parenthesizeExpressionsOfCommaDelimitedList(b(ke)),pr.transformFlags|=te(pr.expression)|Y(pr.typeArguments)|Y(pr.arguments),pr.typeArguments&&(pr.transformFlags|=1),e.isImportKeyword(pr.expression)?pr.transformFlags|=8388608:e.isSuperProperty(pr.expression)&&(pr.transformFlags|=16384),pr}function Su(x,se,ke,pr){return e.isCallChain(x)?Hc(x,se,x.questionDotToken,ke,pr):x.expression!==se||x.typeArguments!==ke||x.arguments!==pr?w($c(se,ke,pr),x):x}function Lc(x,se,ke,pr){var st=Cn(210);return st.flags|=32,st.expression=re().parenthesizeLeftSideOfAccess(x,!0),st.questionDotToken=se,st.typeArguments=hs(ke),st.arguments=re().parenthesizeExpressionsOfCommaDelimitedList(b(pr)),st.transformFlags|=te(st.expression)|te(st.questionDotToken)|Y(st.typeArguments)|Y(st.arguments)|32,st.typeArguments&&(st.transformFlags|=1),e.isSuperProperty(st.expression)&&(st.transformFlags|=16384),st}function Hc(x,se,ke,pr,st){return e.Debug.assert(!!(x.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),x.expression!==se||x.questionDotToken!==ke||x.typeArguments!==pr||x.arguments!==st?w(Lc(se,ke,pr,st),x):x}function tc(x,se,ke){var pr=Cn(211);return pr.expression=re().parenthesizeExpressionOfNew(x),pr.typeArguments=hs(se),pr.arguments=ke?re().parenthesizeExpressionsOfCommaDelimitedList(ke):void 0,pr.transformFlags|=te(pr.expression)|Y(pr.typeArguments)|Y(pr.arguments)|32,pr.typeArguments&&(pr.transformFlags|=1),pr}function fc(x,se,ke,pr){return x.expression!==se||x.typeArguments!==ke||x.arguments!==pr?w(tc(se,ke,pr),x):x}function nu(x,se,ke){var pr=Cn(212);return pr.tag=re().parenthesizeLeftSideOfAccess(x,!1),pr.typeArguments=hs(se),pr.template=ke,pr.transformFlags|=te(pr.tag)|Y(pr.typeArguments)|te(pr.template)|1024,pr.typeArguments&&(pr.transformFlags|=1),e.hasInvalidEscape(pr.template)&&(pr.transformFlags|=128),pr}function nc(x,se,ke,pr){return x.tag!==se||x.typeArguments!==ke||x.template!==pr?w(nu(se,ke,pr),x):x}function Xt(x,se){var ke=Cn(213);return ke.expression=re().parenthesizeOperandOfPrefixUnary(se),ke.type=x,ke.transformFlags|=te(ke.expression)|te(ke.type)|1,ke}function be(x,se,ke){return x.type!==se||x.expression!==ke?w(Xt(se,ke),x):x}function Ur(x){var se=Cn(214);return se.expression=x,se.transformFlags=te(se.expression),se}function At(x,se){return x.expression!==se?w(Ur(se),x):x}function an(x,se,ke,pr,st,bn,hi){var _n=nr(215,x,ke,pr,st,bn,hi);return _n.asteriskToken=se,_n.transformFlags|=te(_n.asteriskToken),_n.typeParameters&&(_n.transformFlags|=1),e.modifiersToFlags(_n.modifiers)&512?_n.asteriskToken?_n.transformFlags|=128:_n.transformFlags|=256:_n.asteriskToken&&(_n.transformFlags|=2048),_n}function Kn(x,se,ke,pr,st,bn,hi,_n){return x.name!==pr||x.modifiers!==se||x.asteriskToken!==ke||x.typeParameters!==st||x.parameters!==bn||x.type!==hi||x.body!==_n?we(an(se,ke,pr,st,bn,hi,_n),x):x}function Yn(x,se,ke,pr,st,bn){var hi=nr(216,x,void 0,se,ke,pr,re().parenthesizeConciseBodyOfArrowFunction(bn));return hi.equalsGreaterThanToken=st??_t(38),hi.transformFlags|=te(hi.equalsGreaterThanToken)|1024,e.modifiersToFlags(hi.modifiers)&512&&(hi.transformFlags|=16640),hi}function Si(x,se,ke,pr,st,bn,hi){return x.modifiers!==se||x.typeParameters!==ke||x.parameters!==pr||x.type!==st||x.equalsGreaterThanToken!==bn||x.body!==hi?we(Yn(se,ke,pr,st,bn,hi),x):x}function vi(x){var se=Cn(217);return se.expression=re().parenthesizeOperandOfPrefixUnary(x),se.transformFlags|=te(se.expression),se}function Da(x,se){return x.expression!==se?w(vi(se),x):x}function ta(x){var se=Cn(218);return se.expression=re().parenthesizeOperandOfPrefixUnary(x),se.transformFlags|=te(se.expression),se}function fo(x,se){return x.expression!==se?w(ta(se),x):x}function oo(x){var se=Cn(219);return se.expression=re().parenthesizeOperandOfPrefixUnary(x),se.transformFlags|=te(se.expression),se}function er(x,se){return x.expression!==se?w(oo(se),x):x}function Bt(x){var se=Cn(220);return se.expression=re().parenthesizeOperandOfPrefixUnary(x),se.transformFlags|=te(se.expression)|256|128|2097152,se}function Mr(x,se){return x.expression!==se?w(Bt(se),x):x}function ua(x,se){var ke=Cn(221);return ke.operator=x,ke.operand=re().parenthesizeOperandOfPrefixUnary(se),ke.transformFlags|=te(ke.operand),(x===45||x===46)&&e.isIdentifier(ke.operand)&&!e.isGeneratedIdentifier(ke.operand)&&!e.isLocalName(ke.operand)&&(ke.transformFlags|=268435456),ke}function _o(x,se){return x.operand!==se?w(ua(x.operator,se),x):x}function xs(x,se){var ke=Cn(222);return ke.operator=se,ke.operand=re().parenthesizeOperandOfPostfixUnary(x),ke.transformFlags|=te(ke.operand),e.isIdentifier(ke.operand)&&!e.isGeneratedIdentifier(ke.operand)&&!e.isLocalName(ke.operand)&&(ke.transformFlags|=268435456),ke}function yc(x,se){return x.operand!==se?w(xs(se,x.operator),x):x}function kc(x,se,ke){var pr=Cn(223),st=Vf(se),bn=st.kind;return pr.left=re().parenthesizeLeftSideOfBinary(bn,x),pr.operatorToken=st,pr.right=re().parenthesizeRightSideOfBinary(bn,pr.left,ke),pr.transformFlags|=te(pr.left)|te(pr.operatorToken)|te(pr.right),bn===60?pr.transformFlags|=32:bn===63?e.isObjectLiteralExpression(pr.left)?pr.transformFlags|=5248|oc(pr.left):e.isArrayLiteralExpression(pr.left)&&(pr.transformFlags|=5120|oc(pr.left)):bn===42||bn===67?pr.transformFlags|=512:e.isLogicalOrCoalescingAssignmentOperator(bn)&&(pr.transformFlags|=16),bn===101&&e.isPrivateIdentifier(pr.left)&&(pr.transformFlags|=536870912),pr}function oc(x){if(x.transformFlags&65536)return 65536;if(x.transformFlags&128)for(var se=0,ke=e.getElementsOfBindingOrAssignmentPattern(x);se<ke.length;se++){var pr=ke[se],st=e.getTargetOfBindingOrAssignmentElement(pr);if(st&&e.isAssignmentPattern(st)){if(st.transformFlags&65536)return 65536;if(st.transformFlags&128){var bn=oc(st);if(bn)return bn}}}return 0}function iu(x,se,ke,pr){return x.left!==se||x.operatorToken!==ke||x.right!==pr?w(kc(se,ke,pr),x):x}function _u(x,se,ke,pr,st){var bn=Cn(224);return bn.condition=re().parenthesizeConditionOfConditionalExpression(x),bn.questionToken=se??_t(57),bn.whenTrue=re().parenthesizeBranchOfConditionalExpression(ke),bn.colonToken=pr??_t(58),bn.whenFalse=re().parenthesizeBranchOfConditionalExpression(st),bn.transformFlags|=te(bn.condition)|te(bn.questionToken)|te(bn.whenTrue)|te(bn.colonToken)|te(bn.whenFalse),bn}function wl(x,se,ke,pr,st,bn){return x.condition!==se||x.questionToken!==ke||x.whenTrue!==pr||x.colonToken!==st||x.whenFalse!==bn?w(_u(se,ke,pr,st,bn),x):x}function Du(x,se){var ke=Cn(225);return ke.head=x,ke.templateSpans=b(se),ke.transformFlags|=te(ke.head)|Y(ke.templateSpans)|1024,ke}function Jo(x,se,ke){return x.head!==se||x.templateSpans!==ke?w(Du(se,ke),x):x}function $s(x,se,ke,pr){pr===void 0&&(pr=0),e.Debug.assert(!(pr&-2049),"Unsupported template flags.");var st=void 0;if(ke!==void 0&&ke!==se&&(st=E(x,ke),typeof st=="object"))return e.Debug.fail("Invalid raw text");if(se===void 0){if(st===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");se=st}else st!==void 0&&e.Debug.assert(se===st,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Ju(x,se,ke,pr)}function Ju(x,se,ke,pr){var st=Fr(x);return st.text=se,st.rawText=ke,st.templateFlags=pr&2048,st.transformFlags|=1024,st.templateFlags&&(st.transformFlags|=128),st}function Up(x,se,ke){return $s(15,x,se,ke)}function Vp(x,se,ke){return $s(16,x,se,ke)}function wu(x,se,ke){return $s(17,x,se,ke)}function Nl(x,se,ke){return $s(14,x,se,ke)}function pf(x,se){e.Debug.assert(!x||!!se,"A `YieldExpression` with an asteriskToken must have an expression.");var ke=Cn(226);return ke.expression=se&&re().parenthesizeExpressionForDisallowedComma(se),ke.asteriskToken=x,ke.transformFlags|=te(ke.expression)|te(ke.asteriskToken)|1024|128|1048576,ke}function Il(x,se,ke){return x.expression!==ke||x.asteriskToken!==se?w(pf(se,ke),x):x}function Xl(x){var se=Cn(227);return se.expression=re().parenthesizeExpressionForDisallowedComma(x),se.transformFlags|=te(se.expression)|1024|32768,se}function Zr(x,se){return x.expression!==se?w(Xl(se),x):x}function Xr(x,se,ke,pr,st){var bn=me(228,x,se,ke,pr,st);return bn.transformFlags|=1024,bn}function $t(x,se,ke,pr,st,bn){return x.modifiers!==se||x.name!==ke||x.typeParameters!==pr||x.heritageClauses!==st||x.members!==bn?w(Xr(se,ke,pr,st,bn),x):x}function Dn(){return Cn(229)}function Mn(x,se){var ke=Q(230);return ke.expression=re().parenthesizeLeftSideOfAccess(x,!1),ke.typeArguments=se&&re().parenthesizeTypeArguments(se),ke.transformFlags|=te(ke.expression)|Y(ke.typeArguments)|1024,ke}function zn(x,se,ke){return x.expression!==se||x.typeArguments!==ke?w(Mn(se,ke),x):x}function mi(x,se){var ke=Cn(231);return ke.expression=x,ke.type=se,ke.transformFlags|=te(ke.expression)|te(ke.type)|1,ke}function Qn(x,se,ke){return x.expression!==se||x.type!==ke?w(mi(se,ke),x):x}function Xi(x){var se=Cn(232);return se.expression=re().parenthesizeLeftSideOfAccess(x,!1),se.transformFlags|=te(se.expression)|1,se}function Va(x,se){return e.isNonNullChain(x)?da(x,se):x.expression!==se?w(Xi(se),x):x}function ga(x,se){var ke=Cn(235);return ke.expression=x,ke.type=se,ke.transformFlags|=te(ke.expression)|te(ke.type)|1,ke}function Yi(x,se,ke){return x.expression!==se||x.type!==ke?w(ga(se,ke),x):x}function so(x){var se=Cn(232);return se.flags|=32,se.expression=re().parenthesizeLeftSideOfAccess(x,!0),se.transformFlags|=te(se.expression)|1,se}function da(x,se){return e.Debug.assert(!!(x.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),x.expression!==se?w(so(se),x):x}function Po(x,se){var ke=Cn(233);switch(ke.keywordToken=x,ke.name=se,ke.transformFlags|=te(ke.name),x){case 103:ke.transformFlags|=1024;break;case 100:ke.transformFlags|=4;break;default:return e.Debug.assertNever(x)}return ke}function Uo(x,se){return x.name!==se?w(Po(x.keywordToken,se),x):x}function Qs(x,se){var ke=Q(236);return ke.expression=x,ke.literal=se,ke.transformFlags|=te(ke.expression)|te(ke.literal)|1024,ke}function ya(x,se,ke){return x.expression!==se||x.literal!==ke?w(Qs(se,ke),x):x}function Ee(){var x=Q(237);return x.transformFlags|=1024,x}function Dr(x,se){var ke=Q(238);return ke.statements=b(x),ke.multiLine=se,ke.transformFlags|=Y(ke.statements),ke}function Nr(x,se){return x.statements!==se?w(Dr(se,x.multiLine),x):x}function Mt(x,se){var ke=G(240);return ke.modifiers=hs(x),ke.declarationList=e.isArray(se)?o_(se):se,ke.transformFlags|=Y(ke.modifiers)|te(ke.declarationList),e.modifiersToFlags(ke.modifiers)&2&&(ke.transformFlags=1),ke}function In(x,se,ke){return x.modifiers!==se||x.declarationList!==ke?w(Mt(se,ke),x):x}function Di(){return Q(239)}function Pi(x){var se=Q(241);return se.expression=re().parenthesizeExpressionOfExpressionStatement(x),se.transformFlags|=te(se.expression),se}function Aa(x,se){return x.expression!==se?w(Pi(se),x):x}function co(x,se,ke){var pr=Q(242);return pr.expression=x,pr.thenStatement=zf(se),pr.elseStatement=zf(ke),pr.transformFlags|=te(pr.expression)|te(pr.thenStatement)|te(pr.elseStatement),pr}function os(x,se,ke,pr){return x.expression!==se||x.thenStatement!==ke||x.elseStatement!==pr?w(co(se,ke,pr),x):x}function qo(x,se){var ke=Q(243);return ke.statement=zf(x),ke.expression=se,ke.transformFlags|=te(ke.statement)|te(ke.expression),ke}function no(x,se,ke){return x.statement!==se||x.expression!==ke?w(qo(se,ke),x):x}function uo(x,se){var ke=Q(244);return ke.expression=x,ke.statement=zf(se),ke.transformFlags|=te(ke.expression)|te(ke.statement),ke}function _s(x,se,ke){return x.expression!==se||x.statement!==ke?w(uo(se,ke),x):x}function fs(x,se,ke,pr){var st=Q(245);return st.initializer=x,st.condition=se,st.incrementor=ke,st.statement=zf(pr),st.transformFlags|=te(st.initializer)|te(st.condition)|te(st.incrementor)|te(st.statement),st}function Xs(x,se,ke,pr,st){return x.initializer!==se||x.condition!==ke||x.incrementor!==pr||x.statement!==st?w(fs(se,ke,pr,st),x):x}function bc(x,se,ke){var pr=Q(246);return pr.initializer=x,pr.expression=se,pr.statement=zf(ke),pr.transformFlags|=te(pr.initializer)|te(pr.expression)|te(pr.statement),pr}function fp(x,se,ke,pr){return x.initializer!==se||x.expression!==ke||x.statement!==pr?w(bc(se,ke,pr),x):x}function zp(x,se,ke,pr){var st=Q(247);return st.awaitModifier=x,st.initializer=se,st.expression=re().parenthesizeExpressionForDisallowedComma(ke),st.statement=zf(pr),st.transformFlags|=te(st.awaitModifier)|te(st.initializer)|te(st.expression)|te(st.statement)|1024,x&&(st.transformFlags|=128),st}function pc(x,se,ke,pr,st){return x.awaitModifier!==se||x.initializer!==ke||x.expression!==pr||x.statement!==st?w(zp(se,ke,pr,st),x):x}function vl(x){var se=Q(248);return se.label=cu(x),se.transformFlags|=te(se.label)|4194304,se}function nt(x,se){return x.label!==se?w(vl(se),x):x}function Wp(x){var se=Q(249);return se.label=cu(x),se.transformFlags|=te(se.label)|4194304,se}function df(x,se){return x.label!==se?w(Wp(se),x):x}function _f(x){var se=Q(250);return se.expression=x,se.transformFlags|=te(se.expression)|128|4194304,se}function Ig(x,se){return x.expression!==se?w(_f(se),x):x}function pp(x,se){var ke=Q(251);return ke.expression=x,ke.statement=zf(se),ke.transformFlags|=te(ke.expression)|te(ke.statement),ke}function Yl(x,se,ke){return x.expression!==se||x.statement!==ke?w(pp(se,ke),x):x}function i_(x,se){var ke=Q(252);return ke.expression=re().parenthesizeExpressionForDisallowedComma(x),ke.caseBlock=se,ke.transformFlags|=te(ke.expression)|te(ke.caseBlock),ke}function Lo(x,se,ke){return x.expression!==se||x.caseBlock!==ke?w(i_(se,ke),x):x}function Mm(x,se){var ke=Q(253);return ke.label=cu(x),ke.statement=zf(se),ke.transformFlags|=te(ke.label)|te(ke.statement),ke}function J_(x,se,ke){return x.label!==se||x.statement!==ke?w(Mm(se,ke),x):x}function a_(x){var se=Q(254);return se.expression=x,se.transformFlags|=te(se.expression),se}function qp(x,se){return x.expression!==se?w(a_(se),x):x}function mf(x,se,ke){var pr=Q(255);return pr.tryBlock=x,pr.catchClause=se,pr.finallyBlock=ke,pr.transformFlags|=te(pr.tryBlock)|te(pr.catchClause)|te(pr.finallyBlock),pr}function Fm(x,se,ke,pr){return x.tryBlock!==se||x.catchClause!==ke||x.finallyBlock!==pr?w(mf(se,ke,pr),x):x}function dp(){return Q(256)}function tl(x,se,ke,pr){var st=rr(257,void 0,x,ke,pr&&re().parenthesizeExpressionForDisallowedComma(pr));return st.exclamationToken=se,st.transformFlags|=te(st.exclamationToken),se&&(st.transformFlags|=1),st}function Lm(x,se,ke,pr,st){return x.name!==se||x.type!==pr||x.exclamationToken!==ke||x.initializer!==st?w(tl(se,ke,pr,st),x):x}function o_(x,se){se===void 0&&(se=0);var ke=Q(258);return ke.flags|=se&3,ke.declarations=b(x),ke.transformFlags|=Y(ke.declarations)|4194304,se&3&&(ke.transformFlags|=263168),ke}function la(x,se){return x.declarations!==se?w(o_(se,x.flags),x):x}function Mi(x,se,ke,pr,st,bn,hi){var _n=nr(259,x,ke,pr,st,bn,hi);return _n.asteriskToken=se,!_n.body||e.modifiersToFlags(_n.modifiers)&2?_n.transformFlags=1:(_n.transformFlags|=te(_n.asteriskToken)|4194304,e.modifiersToFlags(_n.modifiers)&512?_n.asteriskToken?_n.transformFlags|=128:_n.transformFlags|=256:_n.asteriskToken&&(_n.transformFlags|=2048)),_n.illegalDecorators=void 0,_n}function sl(x,se,ke,pr,st,bn,hi,_n){return x.modifiers!==se||x.asteriskToken!==ke||x.name!==pr||x.typeParameters!==st||x.parameters!==bn||x.type!==hi||x.body!==_n?Nu(Mi(se,ke,pr,st,bn,hi,_n),x):x}function Nu(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),we(x,se)}function U_(x,se,ke,pr,st){var bn=me(260,x,se,ke,pr,st);return e.modifiersToFlags(bn.modifiers)&2?bn.transformFlags=1:(bn.transformFlags|=1024,bn.transformFlags&8192&&(bn.transformFlags|=1)),bn}function $p(x,se,ke,pr,st,bn){return x.modifiers!==se||x.name!==ke||x.typeParameters!==pr||x.heritageClauses!==st||x.members!==bn?w(U_(se,ke,pr,st,bn),x):x}function Og(x,se,ke,pr,st){var bn=tr(261,x,se,ke,pr);return bn.members=b(st),bn.transformFlags=1,bn.illegalDecorators=void 0,bn}function V_(x,se,ke,pr,st,bn){return x.modifiers!==se||x.name!==ke||x.typeParameters!==pr||x.heritageClauses!==st||x.members!==bn?Ls(Og(se,ke,pr,st,bn),x):x}function Ls(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function Rm(x,se,ke,pr){var st=Te(262,x,se,ke);return st.type=pr,st.transformFlags=1,st.illegalDecorators=void 0,st}function s_(x,se,ke,pr,st){return x.modifiers!==se||x.name!==ke||x.typeParameters!==pr||x.type!==st?z_(Rm(se,ke,pr,st),x):x}function z_(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function Mg(x,se,ke){var pr=ae(263,x,se);return pr.members=b(ke),pr.transformFlags|=Y(pr.members)|1,pr.transformFlags&=-67108865,pr.illegalDecorators=void 0,pr}function ms(x,se,ke,pr){return x.modifiers!==se||x.name!==ke||x.members!==pr?Hp(Mg(se,ke,pr),x):x}function Hp(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function Bm(x,se,ke,pr){pr===void 0&&(pr=0);var st=G(264);return st.modifiers=hs(x),st.flags|=pr&1044,st.name=se,st.body=ke,e.modifiersToFlags(st.modifiers)&2?st.transformFlags=1:st.transformFlags|=Y(st.modifiers)|te(st.name)|te(st.body)|1,st.transformFlags&=-67108865,st.illegalDecorators=void 0,st}function gf(x,se,ke,pr){return x.modifiers!==se||x.name!==ke||x.body!==pr?Fg(Bm(se,ke,pr,x.flags),x):x}function Fg(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function Sc(x){var se=Q(265);return se.statements=b(x),se.transformFlags|=Y(se.statements),se}function _p(x,se){return x.statements!==se?w(Sc(se),x):x}function au(x){var se=Q(266);return se.clauses=b(x),se.transformFlags|=Y(se.clauses),se}function Dh(x,se){return x.clauses!==se?w(au(se),x):x}function Lg(x){var se=ae(267,void 0,x);return se.transformFlags=1,se.illegalDecorators=void 0,se.modifiers=void 0,se}function Rg(x,se){return x.name!==se?jm(Lg(se),x):x}function jm(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators,x.modifiers=se.modifiers),w(x,se)}function Bg(x,se,ke,pr){var st=ae(268,x,ke);return st.isTypeOnly=se,st.moduleReference=pr,st.transformFlags|=te(st.moduleReference),e.isExternalModuleReference(st.moduleReference)||(st.transformFlags|=1),st.transformFlags&=-67108865,st.illegalDecorators=void 0,st}function Ff(x,se,ke,pr,st){return x.modifiers!==se||x.isTypeOnly!==ke||x.name!==pr||x.moduleReference!==st?mp(Bg(se,ke,pr,st),x):x}function mp(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function Gp(x,se,ke,pr){var st=G(269);return st.modifiers=hs(x),st.importClause=se,st.moduleSpecifier=ke,st.assertClause=pr,st.transformFlags|=te(st.importClause)|te(st.moduleSpecifier),st.transformFlags&=-67108865,st.illegalDecorators=void 0,st}function W_(x,se,ke,pr,st){return x.modifiers!==se||x.importClause!==ke||x.moduleSpecifier!==pr||x.assertClause!==st?Ol(Gp(se,ke,pr,st),x):x}function Ol(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function xd(x,se,ke){var pr=Q(270);return pr.isTypeOnly=x,pr.name=se,pr.namedBindings=ke,pr.transformFlags|=te(pr.name)|te(pr.namedBindings),x&&(pr.transformFlags|=1),pr.transformFlags&=-67108865,pr}function Kp(x,se,ke,pr){return x.isTypeOnly!==se||x.name!==ke||x.namedBindings!==pr?w(xd(se,ke,pr),x):x}function q_(x,se){var ke=Q(296);return ke.elements=b(x),ke.multiLine=se,ke.transformFlags|=4,ke}function Qp(x,se,ke){return x.elements!==se||x.multiLine!==ke?w(q_(se,ke),x):x}function Td(x,se){var ke=Q(297);return ke.name=x,ke.value=se,ke.transformFlags|=4,ke}function $_(x,se,ke){return x.name!==se||x.value!==ke?w(Td(se,ke),x):x}function Ed(x,se){var ke=Q(298);return ke.assertClause=x,ke.multiLine=se,ke}function Jm(x,se,ke){return x.assertClause!==se||x.multiLine!==ke?w(Ed(se,ke),x):x}function Cd(x){var se=Q(271);return se.name=x,se.transformFlags|=te(se.name),se.transformFlags&=-67108865,se}function Xp(x,se){return x.name!==se?w(Cd(se),x):x}function H_(x){var se=Q(277);return se.name=x,se.transformFlags|=te(se.name)|4,se.transformFlags&=-67108865,se}function Yp(x,se){return x.name!==se?w(H_(se),x):x}function ou(x){var se=Q(272);return se.elements=b(x),se.transformFlags|=Y(se.elements),se.transformFlags&=-67108865,se}function nl(x,se){return x.elements!==se?w(ou(se),x):x}function gp(x,se,ke){var pr=Q(273);return pr.isTypeOnly=x,pr.propertyName=se,pr.name=ke,pr.transformFlags|=te(pr.propertyName)|te(pr.name),pr.transformFlags&=-67108865,pr}function Zp(x,se,ke,pr){return x.isTypeOnly!==se||x.propertyName!==ke||x.name!==pr?w(gp(se,ke,pr),x):x}function ed(x,se,ke){var pr=G(274);return pr.modifiers=hs(x),pr.isExportEquals=se,pr.expression=se?re().parenthesizeRightSideOfBinary(63,void 0,ke):re().parenthesizeExpressionOfExportDefault(ke),pr.transformFlags|=Y(pr.modifiers)|te(pr.expression),pr.transformFlags&=-67108865,pr.illegalDecorators=void 0,pr}function Ml(x,se,ke){return x.modifiers!==se||x.expression!==ke?xh(ed(se,x.isExportEquals,ke),x):x}function xh(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function cl(x,se,ke,pr,st){var bn=G(275);return bn.modifiers=hs(x),bn.isTypeOnly=se,bn.exportClause=ke,bn.moduleSpecifier=pr,bn.assertClause=st,bn.transformFlags|=Y(bn.modifiers)|te(bn.exportClause)|te(bn.moduleSpecifier),bn.transformFlags&=-67108865,bn.illegalDecorators=void 0,bn}function kd(x,se,ke,pr,st,bn){return x.modifiers!==se||x.isTypeOnly!==ke||x.exportClause!==pr||x.moduleSpecifier!==st||x.assertClause!==bn?Fl(cl(se,ke,pr,st,bn),x):x}function Fl(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators),w(x,se)}function yl(x){var se=Q(276);return se.elements=b(x),se.transformFlags|=Y(se.elements),se.transformFlags&=-67108865,se}function hf(x,se){return x.elements!==se?w(yl(se),x):x}function c_(x,se,ke){var pr=Q(278);return pr.isTypeOnly=x,pr.propertyName=cu(se),pr.name=cu(ke),pr.transformFlags|=te(pr.propertyName)|te(pr.name),pr.transformFlags&=-67108865,pr}function jg(x,se,ke,pr){return x.isTypeOnly!==se||x.propertyName!==ke||x.name!==pr?w(c_(se,ke,pr),x):x}function Um(){var x=G(279);return x}function G_(x){var se=Q(280);return se.expression=x,se.transformFlags|=te(se.expression),se.transformFlags&=-67108865,se}function Yo(x,se){return x.expression!==se?w(G_(se),x):x}function Ad(x){return Q(x)}function vf(x,se,ke){ke===void 0&&(ke=!1);var pr=Pd(x,ke?se&&re().parenthesizeNonArrayTypeOfPostfixType(se):se);return pr.postfix=ke,pr}function Pd(x,se){var ke=Q(x);return ke.type=se,ke}function Vs(x,se,ke){return se.type!==ke?w(vf(x,ke,se.postfix),se):se}function gc(x,se,ke){return se.type!==ke?w(Pd(x,ke),se):se}function Vm(x,se){var ke=Ne(320,void 0,void 0,void 0,x,se);return ke}function Gc(x,se,ke){return x.parameters!==se||x.type!==ke?w(Vm(se,ke),x):x}function Xn(x,se){se===void 0&&(se=!1);var ke=Q(325);return ke.jsDocPropertyTags=hs(x),ke.isArrayType=se,ke}function sc(x,se,ke){return x.jsDocPropertyTags!==se||x.isArrayType!==ke?w(Xn(se,ke),x):x}function ba(x){var se=Q(312);return se.type=x,se}function yf(x,se){return x.type!==se?w(ba(se),x):x}function bl(x,se,ke){var pr=Q(326);return pr.typeParameters=hs(x),pr.parameters=b(se),pr.type=ke,pr}function Lf(x,se,ke,pr){return x.typeParameters!==se||x.parameters!==ke||x.type!==pr?w(bl(se,ke,pr),x):x}function Wn(x){var se=D(x.kind);return x.tagName.escapedText===e.escapeLeadingUnderscores(se)?x.tagName:mr(se)}function su(x,se,ke){var pr=Q(x);return pr.tagName=se,pr.comment=ke,pr}function wd(x,se,ke,pr){var st=su(347,x??mr("template"),pr);return st.constraint=se,st.typeParameters=b(ke),st}function zs(x,se,ke,pr,st){return se===void 0&&(se=Wn(x)),x.tagName!==se||x.constraint!==ke||x.typeParameters!==pr||x.comment!==st?w(wd(se,ke,pr,st),x):x}function ns(x,se,ke,pr){var st=su(348,x??mr("typedef"),pr);return st.typeExpression=se,st.fullName=ke,st.name=e.getJSDocTypeAliasName(ke),st}function ul(x,se,ke,pr,st){return se===void 0&&(se=Wn(x)),x.tagName!==se||x.typeExpression!==ke||x.fullName!==pr||x.comment!==st?w(ns(se,ke,pr,st),x):x}function Nd(x,se,ke,pr,st,bn){var hi=su(343,x??mr("param"),bn);return hi.typeExpression=pr,hi.name=se,hi.isNameFirst=!!st,hi.isBracketed=ke,hi}function Id(x,se,ke,pr,st,bn,hi){return se===void 0&&(se=Wn(x)),x.tagName!==se||x.name!==ke||x.isBracketed!==pr||x.typeExpression!==st||x.isNameFirst!==bn||x.comment!==hi?w(Nd(se,ke,pr,st,bn,hi),x):x}function bf(x,se,ke,pr,st,bn){var hi=su(350,x??mr("prop"),bn);return hi.typeExpression=pr,hi.name=se,hi.isNameFirst=!!st,hi.isBracketed=ke,hi}function Ac(x,se,ke,pr,st,bn,hi){return se===void 0&&(se=Wn(x)),x.tagName!==se||x.name!==ke||x.isBracketed!==pr||x.typeExpression!==st||x.isNameFirst!==bn||x.comment!==hi?w(bf(se,ke,pr,st,bn,hi),x):x}function hp(x,se,ke,pr){var st=su(341,x??mr("callback"),pr);return st.typeExpression=se,st.fullName=ke,st.name=e.getJSDocTypeAliasName(ke),st}function Zl(x,se,ke,pr,st){return se===void 0&&(se=Wn(x)),x.tagName!==se||x.typeExpression!==ke||x.fullName!==pr||x.comment!==st?w(hp(se,ke,pr,st),x):x}function Rf(x,se,ke){var pr=su(331,x??mr("augments"),ke);return pr.class=se,pr}function zm(x,se,ke,pr){return se===void 0&&(se=Wn(x)),x.tagName!==se||x.class!==ke||x.comment!==pr?w(Rf(se,ke,pr),x):x}function Od(x,se,ke){var pr=su(332,x??mr("implements"),ke);return pr.class=se,pr}function Rc(x,se,ke){var pr=su(349,x??mr("see"),ke);return pr.name=se,pr}function vp(x,se,ke,pr){return x.tagName!==se||x.name!==ke||x.comment!==pr?w(Rc(se,ke,pr),x):x}function rd(x){var se=Q(313);return se.name=x,se}function yp(x,se){return x.name!==se?w(rd(se),x):x}function ef(x,se){var ke=Q(314);return ke.left=x,ke.right=se,ke.transformFlags|=te(ke.left)|te(ke.right),ke}function Sl(x,se,ke){return x.left!==se||x.right!==ke?w(ef(se,ke),x):x}function K_(x,se){var ke=Q(327);return ke.name=x,ke.text=se,ke}function Wm(x,se,ke){return x.name!==se?w(K_(se,ke),x):x}function bp(x,se){var ke=Q(328);return ke.name=x,ke.text=se,ke}function u_(x,se,ke){return x.name!==se?w(bp(se,ke),x):x}function Pc(x,se){var ke=Q(329);return ke.name=x,ke.text=se,ke}function Dc(x,se,ke){return x.name!==se?w(Pc(se,ke),x):x}function Ll(x,se,ke,pr){return se===void 0&&(se=Wn(x)),x.tagName!==se||x.class!==ke||x.comment!==pr?w(Od(se,ke,pr),x):x}function Ys(x,se,ke){var pr=su(x,se??mr(D(x)),ke);return pr}function qm(x,se,ke,pr){return ke===void 0&&(ke=Wn(se)),se.tagName!==ke||se.comment!==pr?w(Ys(x,ke,pr),se):se}function mo(x,se,ke,pr){var st=su(x,se??mr(D(x)),pr);return st.typeExpression=ke,st}function Zn(x,se,ke,pr,st){return ke===void 0&&(ke=Wn(se)),se.tagName!==ke||se.typeExpression!==pr||se.comment!==st?w(mo(x,ke,pr,st),se):se}function Bc(x,se){var ke=su(330,x,se);return ke}function Sf(x,se,ke){return x.tagName!==se||x.comment!==ke?w(Bc(se,ke),x):x}function Md(x){var se=Q(324);return se.text=x,se}function Jg(x,se){return x.text!==se?w(Md(se),x):x}function l_(x,se){var ke=Q(323);return ke.comment=x,ke.tags=hs(se),ke}function td(x,se,ke){return x.comment!==se||x.tags!==ke?w(l_(se,ke),x):x}function Uu(x,se,ke){var pr=Q(281);return pr.openingElement=x,pr.children=b(se),pr.closingElement=ke,pr.transformFlags|=te(pr.openingElement)|Y(pr.children)|te(pr.closingElement)|2,pr}function Iu(x,se,ke,pr){return x.openingElement!==se||x.children!==ke||x.closingElement!==pr?w(Uu(se,ke,pr),x):x}function Sp(x,se,ke){var pr=Q(282);return pr.tagName=x,pr.typeArguments=hs(se),pr.attributes=ke,pr.transformFlags|=te(pr.tagName)|Y(pr.typeArguments)|te(pr.attributes)|2,pr.typeArguments&&(pr.transformFlags|=1),pr}function f_(x,se,ke,pr){return x.tagName!==se||x.typeArguments!==ke||x.attributes!==pr?w(Sp(se,ke,pr),x):x}function xu(x,se,ke){var pr=Q(283);return pr.tagName=x,pr.typeArguments=hs(se),pr.attributes=ke,pr.transformFlags|=te(pr.tagName)|Y(pr.typeArguments)|te(pr.attributes)|2,se&&(pr.transformFlags|=1),pr}function Fd(x,se,ke,pr){return x.tagName!==se||x.typeArguments!==ke||x.attributes!==pr?w(xu(se,ke,pr),x):x}function Os(x){var se=Q(284);return se.tagName=x,se.transformFlags|=te(se.tagName)|2,se}function ll(x,se){return x.tagName!==se?w(Os(se),x):x}function Q_(x,se,ke){var pr=Q(285);return pr.openingFragment=x,pr.children=b(se),pr.closingFragment=ke,pr.transformFlags|=te(pr.openingFragment)|Y(pr.children)|te(pr.closingFragment)|2,pr}function ic(x,se,ke,pr){return x.openingFragment!==se||x.children!==ke||x.closingFragment!==pr?w(Q_(se,ke,pr),x):x}function Rl(x,se){var ke=Q(11);return ke.text=x,ke.containsOnlyTriviaWhiteSpaces=!!se,ke.transformFlags|=2,ke}function Dp(x,se,ke){return x.text!==se||x.containsOnlyTriviaWhiteSpaces!==ke?w(Rl(se,ke),x):x}function X_(){var x=Q(286);return x.transformFlags|=2,x}function p_(){var x=Q(287);return x.transformFlags|=2,x}function Vu(x,se){var ke=Q(288);return ke.name=x,ke.initializer=se,ke.transformFlags|=te(ke.name)|te(ke.initializer)|2,ke}function Es(x,se,ke){return x.name!==se||x.initializer!==ke?w(Vu(se,ke),x):x}function Y_(x){var se=Q(289);return se.properties=b(x),se.transformFlags|=Y(se.properties)|2,se}function Bl(x,se){return x.properties!==se?w(Y_(se),x):x}function Bf(x){var se=Q(290);return se.expression=x,se.transformFlags|=te(se.expression)|2,se}function xp(x,se){return x.expression!==se?w(Bf(se),x):x}function Ld(x,se){var ke=Q(291);return ke.dotDotDotToken=x,ke.expression=se,ke.transformFlags|=te(ke.dotDotDotToken)|te(ke.expression)|2,ke}function nd(x,se){return x.expression!==se?w(Ld(x.dotDotDotToken,se),x):x}function Df(x,se){var ke=Q(292);return ke.expression=re().parenthesizeExpressionForDisallowedComma(x),ke.statements=b(se),ke.transformFlags|=te(ke.expression)|Y(ke.statements),ke}function d_(x,se,ke){return x.expression!==se||x.statements!==ke?w(Df(se,ke),x):x}function __(x){var se=Q(293);return se.statements=b(x),se.transformFlags=Y(se.statements),se}function Z_(x,se){return x.statements!==se?w(__(se),x):x}function rf(x,se){var ke=Q(294);switch(ke.token=x,ke.types=b(se),ke.transformFlags|=Y(ke.types),x){case 94:ke.transformFlags|=1024;break;case 117:ke.transformFlags|=1;break;default:return e.Debug.assertNever(x)}return ke}function xf(x,se){return x.types!==se?w(rf(x.token,se),x):x}function em(x,se){var ke=Q(295);return(typeof x=="string"||x&&!e.isVariableDeclaration(x))&&(x=tl(x,void 0,void 0,void 0)),ke.variableDeclaration=x,ke.block=se,ke.transformFlags|=te(ke.variableDeclaration)|te(ke.block),x||(ke.transformFlags|=64),ke}function Ug(x,se,ke){return x.variableDeclaration!==se||x.block!==ke?w(em(se,ke),x):x}function zu(x,se){var ke=ae(299,void 0,x);return ke.initializer=re().parenthesizeExpressionForDisallowedComma(se),ke.transformFlags|=te(ke.name)|te(ke.initializer),ke.illegalDecorators=void 0,ke.modifiers=void 0,ke.questionToken=void 0,ke.exclamationToken=void 0,ke}function $m(x,se,ke){return x.name!==se||x.initializer!==ke?Tf(zu(se,ke),x):x}function Tf(x,se){return x!==se&&(x.illegalDecorators=se.illegalDecorators,x.modifiers=se.modifiers,x.questionToken=se.questionToken,x.exclamationToken=se.exclamationToken),w(x,se)}function na(x,se){var ke=ae(300,void 0,x);return ke.objectAssignmentInitializer=se&&re().parenthesizeExpressionForDisallowedComma(se),ke.transformFlags|=te(ke.objectAssignmentInitializer)|1024,ke.equalsToken=void 0,ke.illegalDecorators=void 0,ke.modifiers=void 0,ke.questionToken=void 0,ke.exclamationToken=void 0,ke}function Tp(x,se,ke){return x.name!==se||x.objectAssignmentInitializer!==ke?Hn(na(se,ke),x):x}function Hn(x,se){return x!==se&&(x.equalsToken=se.equalsToken,x.illegalDecorators=se.illegalDecorators,x.modifiers=se.modifiers,x.questionToken=se.questionToken,x.exclamationToken=se.exclamationToken),w(x,se)}function rm(x){var se=Q(301);return se.expression=re().parenthesizeExpressionForDisallowedComma(x),se.transformFlags|=te(se.expression)|128|65536,se}function m_(x,se){return x.expression!==se?w(rm(se),x):x}function g_(x,se){var ke=Q(302);return ke.name=cu(x),ke.initializer=se&&re().parenthesizeExpressionForDisallowedComma(se),ke.transformFlags|=te(ke.name)|te(ke.initializer)|1,ke}function Ep(x,se,ke){return x.name!==se||x.initializer!==ke?w(g_(se,ke),x):x}function Hm(x,se,ke){var pr=oe.createBaseSourceFileNode(308);return pr.statements=b(x),pr.endOfFileToken=se,pr.flags|=ke,pr.fileName="",pr.text="",pr.languageVersion=0,pr.languageVariant=0,pr.scriptKind=0,pr.isDeclarationFile=!1,pr.hasNoDefaultLib=!1,pr.transformFlags|=Y(pr.statements)|te(pr.endOfFileToken),pr}function Cp(x,se,ke,pr,st,bn,hi){var _n=x.redirectInfo?Object.create(x.redirectInfo.redirectTarget):oe.createBaseSourceFileNode(308);for(var Rs in x)Rs==="emitNode"||e.hasProperty(_n,Rs)||!e.hasProperty(x,Rs)||(_n[Rs]=x[Rs]);return _n.flags|=x.flags,_n.statements=b(se),_n.endOfFileToken=x.endOfFileToken,_n.isDeclarationFile=ke,_n.referencedFiles=pr,_n.typeReferenceDirectives=st,_n.hasNoDefaultLib=bn,_n.libReferenceDirectives=hi,_n.transformFlags=Y(_n.statements)|te(_n.endOfFileToken),_n.impliedNodeFormat=x.impliedNodeFormat,_n}function Wu(x,se,ke,pr,st,bn,hi){return ke===void 0&&(ke=x.isDeclarationFile),pr===void 0&&(pr=x.referencedFiles),st===void 0&&(st=x.typeReferenceDirectives),bn===void 0&&(bn=x.hasNoDefaultLib),hi===void 0&&(hi=x.libReferenceDirectives),x.statements!==se||x.isDeclarationFile!==ke||x.referencedFiles!==pr||x.typeReferenceDirectives!==st||x.hasNoDefaultLib!==bn||x.libReferenceDirectives!==hi?w(Cp(x,se,ke,pr,st,bn,hi),x):x}function id(x,se){se===void 0&&(se=e.emptyArray);var ke=Q(309);return ke.prepends=se,ke.sourceFiles=x,ke}function tm(x,se,ke){return ke===void 0&&(ke=e.emptyArray),x.sourceFiles!==se||x.prepends!==ke?w(id(se,ke),x):x}function fl(x,se,ke){var pr=Q(310);return pr.prologues=x,pr.syntheticReferences=se,pr.texts=ke,pr.fileName="",pr.text="",pr.referencedFiles=e.emptyArray,pr.libReferenceDirectives=e.emptyArray,pr.getLineAndCharacterOfPosition=function(st){return e.getLineAndCharacterOfPosition(pr,st)},pr}function jf(x,se){var ke=Q(x);return ke.data=se,ke}function Gm(x){return jf(303,x)}function Km(x,se){var ke=jf(304,x);return ke.texts=se,ke}function ad(x,se){return jf(se?306:305,x)}function Dl(x){var se=Q(307);return se.data=x.data,se.section=x,se}function V(){var x=Q(311);return x.javascriptText="",x.declarationText="",x}function ir(x,se,ke){se===void 0&&(se=!1);var pr=Q(234);return pr.type=x,pr.isSpread=se,pr.tupleNameSource=ke,pr}function bt(x){var se=Q(351);return se._children=x,se}function tn(x){var se=Q(352);return se.original=x,e.setTextRange(se,x),se}function oi(x,se){var ke=Q(353);return ke.expression=x,ke.original=se,ke.transformFlags|=te(ke.expression)|1,e.setTextRange(ke,se),ke}function Ii(x,se){return x.expression!==se?w(oi(se,x.original),x):x}function Hi(x){if(e.nodeIsSynthesized(x)&&!e.isParseTreeNode(x)&&!x.original&&!x.emitNode&&!x.id){if(e.isCommaListExpression(x))return x.elements;if(e.isBinaryExpression(x)&&e.isCommaToken(x.operatorToken))return[x.left,x.right]}return x}function di(x){var se=Q(354);return se.elements=b(e.sameFlatMap(x,Hi)),se.transformFlags|=Y(se.elements),se}function io(x,se){return x.elements!==se?w(di(se),x):x}function fa(x){var se=Q(356);return se.emitNode={},se.original=x,se}function pa(x){var se=Q(355);return se.emitNode={},se.original=x,se}function jc(x,se){var ke=Q(357);return ke.expression=x,ke.thisArg=se,ke.transformFlags|=te(ke.expression)|te(ke.thisArg),ke}function pl(x,se,ke){return x.expression!==se||x.thisArg!==ke?w(jc(se,ke),x):x}function Hs(x){if(x===void 0)return x;var se=e.isSourceFile(x)?oe.createBaseSourceFileNode(308):e.isIdentifier(x)?oe.createBaseIdentifierNode(79):e.isPrivateIdentifier(x)?oe.createBasePrivateIdentifierNode(80):e.isNodeKind(x.kind)?oe.createBaseNode(x.kind):oe.createBaseTokenNode(x.kind);se.flags|=x.flags&-9,se.transformFlags=x.transformFlags,Pe(se,x);for(var ke in x)e.hasProperty(se,ke)||!e.hasProperty(x,ke)||(se[ke]=x[ke]);return se}function qu(x,se,ke){return $c(an(void 0,void 0,void 0,void 0,se?[se]:[],void 0,Dr(x,!0)),void 0,ke?[ke]:[])}function il(x,se,ke){return $c(Yn(void 0,void 0,se?[se]:[],void 0,void 0,Dr(x,!0)),void 0,ke?[ke]:[])}function jl(){return oo(Ce("0"))}function Jf(x){return ed(void 0,!1,x)}function Qm(x){return cl(void 0,!1,yl([c_(!1,void 0,x)]))}function Vg(x,se){return se==="undefined"?N.createStrictEquality(x,jl()):N.createStrictEquality(ta(x),xe(se))}function Uf(x,se,ke){return e.isCallChain(x)?Lc(rc(x,void 0,se),void 0,void 0,ke):$c($a(x,se),void 0,ke)}function nm(x,se,ke){return Uf(x,"bind",t([se],ke,!0))}function im(x,se,ke){return Uf(x,"call",t([se],ke,!0))}function Xm(x,se,ke){return Uf(x,"apply",[se,ke])}function Ef(x,se,ke){return Uf(mr(x),se,ke)}function dl(x,se){return Uf(x,"slice",se===void 0?[]:[ml(se)])}function am(x,se){return Uf(x,"concat",se)}function Ym(x,se,ke){return Ef("Object","defineProperty",[x,ml(se),ke])}function Th(x,se,ke){return Ef("Reflect","get",ke?[x,se,ke]:[x,se])}function zg(x,se,ke,pr){return Ef("Reflect","set",pr?[x,se,ke,pr]:[x,se,ke])}function om(x,se,ke){return ke?(x.push(zu(se,ke)),!0):!1}function Tv(x,se){var ke=[];om(ke,"enumerable",ml(x.enumerable)),om(ke,"configurable",ml(x.configurable));var pr=om(ke,"writable",ml(x.writable));pr=om(ke,"value",x.value)||pr;var st=om(ke,"get",x.get);return st=om(ke,"set",x.set)||st,e.Debug.assert(!(pr&&st),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),va(ke,!se)}function Eh(x,se){switch(x.kind){case 214:return At(x,se);case 213:return be(x,x.type,se);case 231:return Qn(x,se,x.type);case 235:return Yi(x,se,x.type);case 232:return Va(x,se);case 353:return Ii(x,se)}}function Ch(x){return e.isParenthesizedExpression(x)&&e.nodeIsSynthesized(x)&&e.nodeIsSynthesized(e.getSourceMapRange(x))&&e.nodeIsSynthesized(e.getCommentRange(x))&&!e.some(e.getSyntheticLeadingComments(x))&&!e.some(e.getSyntheticTrailingComments(x))}function Zm(x,se,ke){return ke===void 0&&(ke=15),x&&e.isOuterExpression(x,ke)&&!Ch(x)?Eh(x,Zm(x.expression,se)):se}function kh(x,se,ke){if(!se)return x;var pr=J_(se,se.label,e.isLabeledStatement(se.statement)?kh(x,se.statement):x);return ke&&ke(se),pr}function Wg(x,se){var ke=e.skipParentheses(x);switch(ke.kind){case 79:return se;case 108:case 8:case 9:case 10:return!1;case 206:var pr=ke.elements;return pr.length!==0;case 207:return ke.properties.length>0;default:return!0}}function Ev(x,se,ke,pr){pr===void 0&&(pr=!1);var st=e.skipOuterExpressions(x,15),bn,hi;return e.isSuperProperty(st)?(bn=yt(),hi=st):e.isSuperKeyword(st)?(bn=yt(),hi=ke!==void 0&&ke<2?e.setTextRange(mr("_super"),st):st):e.getEmitFlags(st)&4096?(bn=jl(),hi=re().parenthesizeLeftSideOfAccess(st,!1)):e.isPropertyAccessExpression(st)?Wg(st.expression,pr)?(bn=wr(se),hi=$a(e.setTextRange(N.createAssignment(bn,st.expression),st.expression),st.name),e.setTextRange(hi,st)):(bn=st.expression,hi=st):e.isElementAccessExpression(st)?Wg(st.expression,pr)?(bn=wr(se),hi=ds(e.setTextRange(N.createAssignment(bn,st.expression),st.expression),st.argumentExpression),e.setTextRange(hi,st)):(bn=st.expression,hi=st):(bn=jl(),hi=re().parenthesizeLeftSideOfAccess(x,!1)),{target:hi,thisArg:bn}}function Cv(x,se){return $a(Ur(va([Et(void 0,"value",[Dt(void 0,void 0,x,void 0,void 0,void 0)],Dr([Pi(se)]))])),"value")}function ze(x){return x.length>10?di(x):e.reduceLeft(x,N.createComma)}function Cr(x,se,ke,pr){pr===void 0&&(pr=0);var st=e.getNameOfDeclaration(x);if(st&&e.isIdentifier(st)&&!e.isGeneratedIdentifier(st)){var bn=e.setParent(e.setTextRange(Hs(st),st),st.parent);return pr|=e.getEmitFlags(st),ke||(pr|=48),se||(pr|=1536),pr&&e.setEmitFlags(bn,pr),bn}return tt(x)}function ot(x,se,ke){return Cr(x,se,ke,49152)}function xt(x,se,ke){return Cr(x,se,ke,16384)}function Gt(x,se,ke){return Cr(x,se,ke,8192)}function gn(x,se,ke){return Cr(x,se,ke)}function ci(x,se,ke,pr){var st=$a(x,e.nodeIsSynthesized(se)?se:Hs(se));e.setTextRange(st,se);var bn=0;return pr||(bn|=48),ke||(bn|=1536),bn&&e.setEmitFlags(st,bn),st}function Fi(x,se,ke,pr){return x&&e.hasSyntacticModifier(se,1)?ci(x,Cr(se),ke,pr):Gt(se,ke,pr)}function Oi(x,se,ke,pr){var st=Qo(x,se,0,ke);return wo(x,se,st,pr)}function Ki(x){return e.isStringLiteral(x.expression)&&x.expression.text==="use strict"}function Ma(){return e.startOnNewLine(Pi(xe("use strict")))}function Qo(x,se,ke,pr){ke===void 0&&(ke=0),e.Debug.assert(se.length===0,"Prologue directives should be at the first statement in the target statements array");for(var st=!1,bn=x.length;ke<bn;){var hi=x[ke];if(e.isPrologueDirective(hi))Ki(hi)&&(st=!0),se.push(hi);else break;ke++}return pr&&!st&&se.push(Ma()),ke}function wo(x,se,ke,pr,st){st===void 0&&(st=e.returnTrue);for(var bn=x.length;ke!==void 0&&ke<bn;){var hi=x[ke];if(e.getEmitFlags(hi)&1048576&&st(hi))e.append(se,pr?e.visitNode(hi,pr,e.isStatement):hi);else break;ke++}return ke}function ss(x){var se=e.findUseStrictPrologue(x);return se?x:e.setTextRange(b(t([Ma()],x,!0)),x)}function Cs(x){return e.Debug.assert(e.every(x,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(x)||Dr(x)}function dc(x,se,ke){for(var pr=ke;pr<x.length&&se(x[pr]);)pr++;return pr}function wc(x,se){if(!e.some(se))return x;var ke=dc(x,e.isPrologueDirective,0),pr=dc(x,e.isHoistedFunction,ke),st=dc(x,e.isHoistedVariableStatement,pr),bn=dc(se,e.isPrologueDirective,0),hi=dc(se,e.isHoistedFunction,bn),_n=dc(se,e.isHoistedVariableStatement,hi),Rs=dc(se,e.isCustomPrologue,_n);e.Debug.assert(Rs===se.length,"Expected declarations to be valid standard or custom prologues");var Tu=e.isNodeArray(x)?x.slice():x;if(Rs>_n&&Tu.splice.apply(Tu,t([st,0],se.slice(_n,Rs),!1)),_n>hi&&Tu.splice.apply(Tu,t([pr,0],se.slice(hi,_n),!1)),hi>bn&&Tu.splice.apply(Tu,t([ke,0],se.slice(bn,hi),!1)),bn>0)if(ke===0)Tu.splice.apply(Tu,t([0,0],se.slice(0,bn),!1));else{for(var Rd=new e.Map,$u=0;$u<ke;$u++){var Ah=x[$u];Rd.set(Ah.expression.text,!0)}for(var $u=bn-1;$u>=0;$u--){var kp=se[$u];Rd.has(kp.expression.text)||Tu.unshift(kp)}}return e.isNodeArray(x)?e.setTextRange(b(Tu,x.hasTrailingComma),x):x}function _l(x,se){var ke,pr;return typeof se=="number"?pr=$r(se):pr=se,e.isTypeParameterDeclaration(x)?ft(x,pr,x.name,x.constraint,x.default):e.isParameter(x)?Me(x,pr,x.dotDotDotToken,x.name,x.questionToken,x.type,x.initializer):e.isConstructorTypeNode(x)?Lt(x,pr,x.typeParameters,x.parameters,x.type):e.isPropertySignature(x)?Nt(x,pr,x.name,x.questionToken,x.type):e.isPropertyDeclaration(x)?en(x,pr,x.name,(ke=x.questionToken)!==null&&ke!==void 0?ke:x.exclamationToken,x.type,x.initializer):e.isMethodSignature(x)?Jr(x,pr,x.name,x.questionToken,x.typeParameters,x.parameters,x.type):e.isMethodDeclaration(x)?Ie(x,pr,x.asteriskToken,x.name,x.questionToken,x.typeParameters,x.parameters,x.type,x.body):e.isConstructorDeclaration(x)?Ge(x,pr,x.parameters,x.body):e.isGetAccessorDeclaration(x)?Ar(x,pr,x.name,x.parameters,x.type,x.body):e.isSetAccessorDeclaration(x)?St(x,pr,x.name,x.parameters,x.body):e.isIndexSignatureDeclaration(x)?wn(x,pr,x.parameters,x.type):e.isFunctionExpression(x)?Kn(x,pr,x.asteriskToken,x.name,x.typeParameters,x.parameters,x.type,x.body):e.isArrowFunction(x)?Si(x,pr,x.typeParameters,x.parameters,x.type,x.equalsGreaterThanToken,x.body):e.isClassExpression(x)?$t(x,pr,x.name,x.typeParameters,x.heritageClauses,x.members):e.isVariableStatement(x)?In(x,pr,x.declarationList):e.isFunctionDeclaration(x)?sl(x,pr,x.asteriskToken,x.name,x.typeParameters,x.parameters,x.type,x.body):e.isClassDeclaration(x)?$p(x,pr,x.name,x.typeParameters,x.heritageClauses,x.members):e.isInterfaceDeclaration(x)?V_(x,pr,x.name,x.typeParameters,x.heritageClauses,x.members):e.isTypeAliasDeclaration(x)?s_(x,pr,x.name,x.typeParameters,x.type):e.isEnumDeclaration(x)?ms(x,pr,x.name,x.members):e.isModuleDeclaration(x)?gf(x,pr,x.name,x.body):e.isImportEqualsDeclaration(x)?Ff(x,pr,x.isTypeOnly,x.name,x.moduleReference):e.isImportDeclaration(x)?W_(x,pr,x.importClause,x.moduleSpecifier,x.assertClause):e.isExportAssignment(x)?Ml(x,pr,x.expression):e.isExportDeclaration(x)?kd(x,pr,x.isTypeOnly,x.exportClause,x.moduleSpecifier,x.assertClause):e.Debug.assertNever(x)}function hs(x){return x?b(x):void 0}function cu(x){return typeof x=="string"?mr(x):x}function ml(x){return typeof x=="string"?xe(x):typeof x=="number"?Ce(x):typeof x=="boolean"?x?vr():Le():x}function Vf(x){return typeof x=="number"?_t(x):x}function zf(x){return x&&e.isNotEmittedStatement(x)?e.setTextRange(Pe(Di(),x),x):x}}e.createNodeFactory=P;function T(ne,oe){return ne!==oe&&e.setTextRange(ne,oe),ne}function s(ne,oe){return ne!==oe&&(Pe(ne,oe),e.setTextRange(ne,oe)),ne}function D(ne){switch(ne){case 346:return"type";case 344:return"returns";case 345:return"this";case 342:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 347:return"template";case 348:return"typedef";case 343:return"param";case 350:return"prop";case 341:return"callback";case 331:return"augments";case 332:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(ne)))}}var O,W={};function E(ne,oe){switch(O||(O=e.createScanner(99,!1,0)),ne){case 14:O.setText("`"+oe+"`");break;case 15:O.setText("`"+oe+"${");break;case 16:O.setText("}"+oe+"${");break;case 17:O.setText("}"+oe+"`");break}var w=O.scan();if(w===19&&(w=O.reScanTemplateToken(!1)),O.isUnterminated())return O.setText(void 0),W;var re;switch(w){case 14:case 15:case 16:case 17:re=O.getTokenValue();break}return re===void 0||O.scan()!==1?(O.setText(void 0),W):(O.setText(void 0),re)}function v(ne){return te(ne)&-67108865}function S(ne,oe){return oe|ne.transformFlags&134234112}function te(ne){if(!ne)return 0;var oe=ne.transformFlags&~ce(ne.kind);return e.isNamedDeclaration(ne)&&e.isPropertyName(ne.name)?S(ne.name,oe):oe}function Y(ne){return ne?ne.transformFlags:0}function Z(ne){for(var oe=0,w=0,re=ne;w<re.length;w++){var M=re[w];oe|=te(M)}ne.transformFlags=oe}function ce(ne){if(ne>=179&&ne<=202)return-2;switch(ne){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112;case 203:case 204:return-2147450880;case 213:case 235:case 231:case 353:case 214:case 106:return-2147483648;case 208:case 209:return-2147483648;default:return-2147483648}}e.getTransformFlagsSubtreeExclusions=ce;var k=e.createBaseNodeFactory();function X(ne){return ne.flags|=8,ne}var A={createBaseSourceFileNode:function(ne){return X(k.createBaseSourceFileNode(ne))},createBaseIdentifierNode:function(ne){return X(k.createBaseIdentifierNode(ne))},createBasePrivateIdentifierNode:function(ne){return X(k.createBasePrivateIdentifierNode(ne))},createBaseTokenNode:function(ne){return X(k.createBaseTokenNode(ne))},createBaseNode:function(ne){return X(k.createBaseNode(ne))}};e.factory=P(4,A);function y(ne,oe,w){var re,M,U,H,q,R,K,I,he,le;e.isString(ne)?(U="",H=ne,q=ne.length,R=oe,K=w):(e.Debug.assert(oe==="js"||oe==="dts"),U=(oe==="js"?ne.javascriptPath:ne.declarationPath)||"",R=oe==="js"?ne.javascriptMapPath:ne.declarationMapPath,I=function(){return oe==="js"?ne.javascriptText:ne.declarationText},he=function(){return oe==="js"?ne.javascriptMapText:ne.declarationMapText},q=function(){return I().length},ne.buildInfo&&ne.buildInfo.bundle&&(e.Debug.assert(w===void 0||typeof w=="boolean"),re=w,M=oe==="js"?ne.buildInfo.bundle.js:ne.buildInfo.bundle.dts,le=ne.oldFileOfCurrentEmit));var ee=le?B(e.Debug.checkDefined(M)):C(M,re,q);return ee.fileName=U,ee.sourceMapPath=R,ee.oldFileOfCurrentEmit=le,I&&he?(Object.defineProperty(ee,"text",{get:I}),Object.defineProperty(ee,"sourceMapText",{get:he})):(e.Debug.assert(!le),ee.text=H??"",ee.sourceMapText=K),ee}e.createUnparsedSourceFile=y;function C(ne,oe,w){for(var re,M,U,H,q,R,K,I,he=0,le=ne?ne.sections:e.emptyArray;he<le.length;he++){var ee=le[he];switch(ee.kind){case"prologue":re=e.append(re,e.setTextRange(e.factory.createUnparsedPrologue(ee.data),ee));break;case"emitHelpers":M=e.append(M,e.getAllUnscopedEmitHelpers().get(ee.data));break;case"no-default-lib":I=!0;break;case"reference":U=e.append(U,{pos:-1,end:-1,fileName:ee.data});break;case"type":H=e.append(H,{pos:-1,end:-1,fileName:ee.data});break;case"type-import":H=e.append(H,{pos:-1,end:-1,fileName:ee.data,resolutionMode:e.ModuleKind.ESNext});break;case"type-require":H=e.append(H,{pos:-1,end:-1,fileName:ee.data,resolutionMode:e.ModuleKind.CommonJS});break;case"lib":q=e.append(q,{pos:-1,end:-1,fileName:ee.data});break;case"prepend":for(var J=void 0,de=0,De=ee.texts;de<De.length;de++){var N=De[de];(!oe||N.kind!=="internal")&&(J=e.append(J,e.setTextRange(e.factory.createUnparsedTextLike(N.data,N.kind==="internal"),N)))}R=e.addRange(R,J),K=e.append(K,e.factory.createUnparsedPrepend(ee.data,J??e.emptyArray));break;case"internal":if(oe){K||(K=[]);break}case"text":K=e.append(K,e.setTextRange(e.factory.createUnparsedTextLike(ee.data,ee.kind==="internal"),ee));break;default:e.Debug.assertNever(ee)}}if(!K){var b=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(b,0,typeof w=="function"?w():w),K=[b]}var Q=e.parseNodeFactory.createUnparsedSource(re??e.emptyArray,void 0,K);return e.setEachParent(re,Q),e.setEachParent(K,Q),e.setEachParent(R,Q),Q.hasNoDefaultLib=I,Q.helpers=M,Q.referencedFiles=U||e.emptyArray,Q.typeReferenceDirectives=H,Q.libReferenceDirectives=q||e.emptyArray,Q}function B(ne){for(var oe,w,re=0,M=ne.sections;re<M.length;re++){var U=M[re];switch(U.kind){case"internal":case"text":oe=e.append(oe,e.setTextRange(e.factory.createUnparsedTextLike(U.data,U.kind==="internal"),U));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":w=e.append(w,e.setTextRange(e.factory.createUnparsedSyntheticReference(U),U));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(U)}}var H=e.factory.createUnparsedSource(e.emptyArray,w,oe??e.emptyArray);return e.setEachParent(w,H),e.setEachParent(oe,H),H.helpers=e.map(ne.sources&&ne.sources.helpers,function(q){return e.getAllUnscopedEmitHelpers().get(q)}),H}function F(ne,oe,w,re,M,U,H,q,R,K,I){var he=e.parseNodeFactory.createInputFiles();if(e.isString(ne))he.javascriptText=ne,he.javascriptMapPath=w,he.javascriptMapText=re,he.declarationText=oe,he.declarationMapPath=M,he.declarationMapText=U,he.javascriptPath=H,he.declarationPath=q,he.buildInfoPath=R,he.buildInfo=K,he.oldFileOfCurrentEmit=I;else{var le=new e.Map,ee=function(N){if(N!==void 0){var b=le.get(N);return b===void 0&&(b=ne(N),le.set(N,b!==void 0?b:!1)),b!==!1?b:void 0}},J=function(N){var b=ee(N);return b!==void 0?b:"/* Input file ".concat(N,` was missing */\r
`)},de,De=function(N){var b;if(de===void 0){var Q=N();de=Q!==void 0&&(b=e.getBuildInfo(he.buildInfoPath,Q))!==null&&b!==void 0?b:!1}return de||void 0};he.javascriptPath=oe,he.javascriptMapPath=w,he.declarationPath=e.Debug.checkDefined(re),he.declarationMapPath=M,he.buildInfoPath=U,Object.defineProperties(he,{javascriptText:{get:function(){return J(oe)}},javascriptMapText:{get:function(){return ee(w)}},declarationText:{get:function(){return J(e.Debug.checkDefined(re))}},declarationMapText:{get:function(){return ee(M)}},buildInfo:{get:function(){return De(function(){return ee(U)})}}})}return he}e.createInputFiles=F;var z;function ge(ne,oe,w){return new(z||(z=e.objectAllocator.getSourceMapSourceConstructor()))(ne,oe,w)}e.createSourceMapSource=ge;function Pe(ne,oe){if(ne.original=oe,oe){var w=oe.emitNode;w&&(ne.emitNode=fe(w,ne.emitNode))}return ne}e.setOriginalNode=Pe;function fe(ne,oe){var w=ne.flags,re=ne.leadingComments,M=ne.trailingComments,U=ne.commentRange,H=ne.sourceMapRange,q=ne.tokenSourceMapRanges,R=ne.constantValue,K=ne.helpers,I=ne.startsOnNewLine,he=ne.snippetElement;if(oe||(oe={}),re&&(oe.leadingComments=e.addRange(re.slice(),oe.leadingComments)),M&&(oe.trailingComments=e.addRange(M.slice(),oe.trailingComments)),w&&(oe.flags=w&-268435457),U&&(oe.commentRange=U),H&&(oe.sourceMapRange=H),q&&(oe.tokenSourceMapRanges=_e(q,oe.tokenSourceMapRanges)),R!==void 0&&(oe.constantValue=R),K)for(var le=0,ee=K;le<ee.length;le++){var J=ee[le];oe.helpers=e.appendIfUnique(oe.helpers,J)}return I!==void 0&&(oe.startsOnNewLine=I),he!==void 0&&(oe.snippetElement=he),oe}function _e(ne,oe){oe||(oe=[]);for(var w in ne)oe[w]=ne[w];return oe}})(h||(h={}));var h;(function(e){function c(H){var q;if(H.emitNode)e.Debug.assert(!(H.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(H)){if(H.kind===308)return H.emitNode={annotatedNodes:[H]};var R=(q=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(H))))!==null&&q!==void 0?q:e.Debug.fail("Could not determine parsed source file.");c(R).annotatedNodes.push(H)}H.emitNode={}}return H.emitNode}e.getOrCreateEmitNode=c;function P(H){var q,R,K=(R=(q=e.getSourceFileOfNode(e.getParseTreeNode(H)))===null||q===void 0?void 0:q.emitNode)===null||R===void 0?void 0:R.annotatedNodes;if(K)for(var I=0,he=K;I<he.length;I++){var le=he[I];le.emitNode=void 0}}e.disposeEmitNodes=P;function T(H){var q=c(H);return q.flags|=1536,q.leadingComments=void 0,q.trailingComments=void 0,H}e.removeAllComments=T;function s(H,q){return c(H).flags=q,H}e.setEmitFlags=s;function D(H,q){var R=c(H);return R.flags=R.flags|q,H}e.addEmitFlags=D;function O(H){var q,R;return(R=(q=H.emitNode)===null||q===void 0?void 0:q.sourceMapRange)!==null&&R!==void 0?R:H}e.getSourceMapRange=O;function W(H,q){return c(H).sourceMapRange=q,H}e.setSourceMapRange=W;function E(H,q){var R,K;return(K=(R=H.emitNode)===null||R===void 0?void 0:R.tokenSourceMapRanges)===null||K===void 0?void 0:K[q]}e.getTokenSourceMapRange=E;function v(H,q,R){var K,I=c(H),he=(K=I.tokenSourceMapRanges)!==null&&K!==void 0?K:I.tokenSourceMapRanges=[];return he[q]=R,H}e.setTokenSourceMapRange=v;function S(H){var q;return(q=H.emitNode)===null||q===void 0?void 0:q.startsOnNewLine}e.getStartsOnNewLine=S;function te(H,q){return c(H).startsOnNewLine=q,H}e.setStartsOnNewLine=te;function Y(H){var q,R;return(R=(q=H.emitNode)===null||q===void 0?void 0:q.commentRange)!==null&&R!==void 0?R:H}e.getCommentRange=Y;function Z(H,q){return c(H).commentRange=q,H}e.setCommentRange=Z;function ce(H){var q;return(q=H.emitNode)===null||q===void 0?void 0:q.leadingComments}e.getSyntheticLeadingComments=ce;function k(H,q){return c(H).leadingComments=q,H}e.setSyntheticLeadingComments=k;function X(H,q,R,K){return k(H,e.append(ce(H),{kind:q,pos:-1,end:-1,hasTrailingNewLine:K,text:R}))}e.addSyntheticLeadingComment=X;function A(H){var q;return(q=H.emitNode)===null||q===void 0?void 0:q.trailingComments}e.getSyntheticTrailingComments=A;function y(H,q){return c(H).trailingComments=q,H}e.setSyntheticTrailingComments=y;function C(H,q,R,K){return y(H,e.append(A(H),{kind:q,pos:-1,end:-1,hasTrailingNewLine:K,text:R}))}e.addSyntheticTrailingComment=C;function B(H,q){k(H,ce(q)),y(H,A(q));var R=c(q);return R.leadingComments=void 0,R.trailingComments=void 0,H}e.moveSyntheticComments=B;function F(H){var q;return(q=H.emitNode)===null||q===void 0?void 0:q.constantValue}e.getConstantValue=F;function z(H,q){var R=c(H);return R.constantValue=q,H}e.setConstantValue=z;function ge(H,q){var R=c(H);return R.helpers=e.append(R.helpers,q),H}e.addEmitHelper=ge;function Pe(H,q){if(e.some(q))for(var R=c(H),K=0,I=q;K<I.length;K++){var he=I[K];R.helpers=e.appendIfUnique(R.helpers,he)}return H}e.addEmitHelpers=Pe;function fe(H,q){var R,K=(R=H.emitNode)===null||R===void 0?void 0:R.helpers;return K?e.orderedRemoveItem(K,q):!1}e.removeEmitHelper=fe;function _e(H){var q;return(q=H.emitNode)===null||q===void 0?void 0:q.helpers}e.getEmitHelpers=_e;function ne(H,q,R){var K=H.emitNode,I=K&&K.helpers;if(e.some(I)){for(var he=c(q),le=0,ee=0;ee<I.length;ee++){var J=I[ee];R(J)?(le++,he.helpers=e.appendIfUnique(he.helpers,J)):le>0&&(I[ee-le]=J)}le>0&&(I.length-=le)}}e.moveEmitHelpers=ne;function oe(H){var q;return(q=H.emitNode)===null||q===void 0?void 0:q.snippetElement}e.getSnippetElement=oe;function w(H,q){var R=c(H);return R.snippetElement=q,H}e.setSnippetElement=w;function re(H){return c(H).flags|=134217728,H}e.ignoreSourceNewlines=re;function M(H,q){var R=c(H);return R.typeNode=q,H}e.setTypeNode=M;function U(H){var q;return(q=H.emitNode)===null||q===void 0?void 0:q.typeNode}e.getTypeNode=U})(h||(h={}));var h;(function(e){function c(W){var E=W.factory,v=e.memoize(function(){return e.setEmitFlags(E.createTrue(),268435456)}),S=e.memoize(function(){return e.setEmitFlags(E.createFalse(),268435456)});return{getUnscopedHelperName:te,createDecorateHelper:Y,createMetadataHelper:Z,createParamHelper:ce,createAssignHelper:k,createAwaitHelper:X,createAsyncGeneratorHelper:A,createAsyncDelegatorHelper:y,createAsyncValuesHelper:C,createRestHelper:B,createAwaiterHelper:F,createExtendsHelper:z,createTemplateObjectHelper:ge,createSpreadArrayHelper:Pe,createValuesHelper:fe,createReadHelper:_e,createGeneratorHelper:ne,createCreateBindingHelper:oe,createImportStarHelper:w,createImportStarCallbackHelper:re,createImportDefaultHelper:M,createExportStarHelper:U,createClassPrivateFieldGetHelper:H,createClassPrivateFieldSetHelper:q,createClassPrivateFieldInHelper:R};function te(K){return e.setEmitFlags(E.createIdentifier(K),4098)}function Y(K,I,he,le){W.requestEmitHelper(e.decorateHelper);var ee=[];return ee.push(E.createArrayLiteralExpression(K,!0)),ee.push(I),he&&(ee.push(he),le&&ee.push(le)),E.createCallExpression(te("__decorate"),void 0,ee)}function Z(K,I){return W.requestEmitHelper(e.metadataHelper),E.createCallExpression(te("__metadata"),void 0,[E.createStringLiteral(K),I])}function ce(K,I,he){return W.requestEmitHelper(e.paramHelper),e.setTextRange(E.createCallExpression(te("__param"),void 0,[E.createNumericLiteral(I+""),K]),he)}function k(K){return e.getEmitScriptTarget(W.getCompilerOptions())>=2?E.createCallExpression(E.createPropertyAccessExpression(E.createIdentifier("Object"),"assign"),void 0,K):(W.requestEmitHelper(e.assignHelper),E.createCallExpression(te("__assign"),void 0,K))}function X(K){return W.requestEmitHelper(e.awaitHelper),E.createCallExpression(te("__await"),void 0,[K])}function A(K,I){return W.requestEmitHelper(e.awaitHelper),W.requestEmitHelper(e.asyncGeneratorHelper),(K.emitNode||(K.emitNode={})).flags|=786432,E.createCallExpression(te("__asyncGenerator"),void 0,[I?E.createThis():E.createVoidZero(),E.createIdentifier("arguments"),K])}function y(K){return W.requestEmitHelper(e.awaitHelper),W.requestEmitHelper(e.asyncDelegator),E.createCallExpression(te("__asyncDelegator"),void 0,[K])}function C(K){return W.requestEmitHelper(e.asyncValues),E.createCallExpression(te("__asyncValues"),void 0,[K])}function B(K,I,he,le){W.requestEmitHelper(e.restHelper);for(var ee=[],J=0,de=0;de<I.length-1;de++){var De=e.getPropertyNameOfBindingOrAssignmentElement(I[de]);if(De)if(e.isComputedPropertyName(De)){e.Debug.assertIsDefined(he,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var N=he[J];J++,ee.push(E.createConditionalExpression(E.createTypeCheck(N,"symbol"),void 0,N,void 0,E.createAdd(N,E.createStringLiteral(""))))}else ee.push(E.createStringLiteralFromNode(De))}return E.createCallExpression(te("__rest"),void 0,[K,e.setTextRange(E.createArrayLiteralExpression(ee),le)])}function F(K,I,he,le){W.requestEmitHelper(e.awaiterHelper);var ee=E.createFunctionExpression(void 0,E.createToken(41),void 0,void 0,[],void 0,le);return(ee.emitNode||(ee.emitNode={})).flags|=786432,E.createCallExpression(te("__awaiter"),void 0,[K?E.createThis():E.createVoidZero(),I?E.createIdentifier("arguments"):E.createVoidZero(),he?e.createExpressionFromEntityName(E,he):E.createVoidZero(),ee])}function z(K){return W.requestEmitHelper(e.extendsHelper),E.createCallExpression(te("__extends"),void 0,[K,E.createUniqueName("_super",48)])}function ge(K,I){return W.requestEmitHelper(e.templateObjectHelper),E.createCallExpression(te("__makeTemplateObject"),void 0,[K,I])}function Pe(K,I,he){return W.requestEmitHelper(e.spreadArrayHelper),E.createCallExpression(te("__spreadArray"),void 0,[K,I,he?v():S()])}function fe(K){return W.requestEmitHelper(e.valuesHelper),E.createCallExpression(te("__values"),void 0,[K])}function _e(K,I){return W.requestEmitHelper(e.readHelper),E.createCallExpression(te("__read"),void 0,I!==void 0?[K,E.createNumericLiteral(I+"")]:[K])}function ne(K){return W.requestEmitHelper(e.generatorHelper),E.createCallExpression(te("__generator"),void 0,[E.createThis(),K])}function oe(K,I,he){return W.requestEmitHelper(e.createBindingHelper),E.createCallExpression(te("__createBinding"),void 0,t([E.createIdentifier("exports"),K,I],he?[he]:[],!0))}function w(K){return W.requestEmitHelper(e.importStarHelper),E.createCallExpression(te("__importStar"),void 0,[K])}function re(){return W.requestEmitHelper(e.importStarHelper),te("__importStar")}function M(K){return W.requestEmitHelper(e.importDefaultHelper),E.createCallExpression(te("__importDefault"),void 0,[K])}function U(K,I){return I===void 0&&(I=E.createIdentifier("exports")),W.requestEmitHelper(e.exportStarHelper),W.requestEmitHelper(e.createBindingHelper),E.createCallExpression(te("__exportStar"),void 0,[K,I])}function H(K,I,he,le){W.requestEmitHelper(e.classPrivateFieldGetHelper);var ee;return le?ee=[K,I,E.createStringLiteral(he),le]:ee=[K,I,E.createStringLiteral(he)],E.createCallExpression(te("__classPrivateFieldGet"),void 0,ee)}function q(K,I,he,le,ee){W.requestEmitHelper(e.classPrivateFieldSetHelper);var J;return ee?J=[K,I,he,E.createStringLiteral(le),ee]:J=[K,I,he,E.createStringLiteral(le)],E.createCallExpression(te("__classPrivateFieldSet"),void 0,J)}function R(K,I){return W.requestEmitHelper(e.classPrivateFieldInHelper),E.createCallExpression(te("__classPrivateFieldIn"),void 0,[K,I])}}e.createEmitHelperFactory=c;function P(W,E){return W===E||W.priority===E.priority?0:W.priority===void 0?1:E.priority===void 0?-1:e.compareValues(W.priority,E.priority)}e.compareEmitHelpers=P;function T(W){for(var E=[],v=1;v<arguments.length;v++)E[v-1]=arguments[v];return function(S){for(var te="",Y=0;Y<E.length;Y++)te+=W[Y],te+=S(E[Y]);return te+=W[W.length-1],te}}e.helperString=T,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};`},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};`},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};`},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:`
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:`
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
};`},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};`},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};`},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};`},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();`},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};`},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:`
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};`},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};`},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:`
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};`},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};`},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));`},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:`
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:`
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};`},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};`},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};`},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
return typeof state === "function" ? receiver === state : state.has(receiver);
};`};var s;function D(){return s||(s=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(W){return W.name}))}e.getAllUnscopedEmitHelpers=D,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:T(o([`
const `," = name => super[name];"],[`
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:T(o([`
const `,` = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`],[`
const `,` = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`]),"_superIndex")};function O(W,E){return e.isCallExpression(W)&&e.isIdentifier(W.expression)&&(e.getEmitFlags(W.expression)&4096)!==0&&W.expression.escapedText===E}e.isCallToHelper=O})(h||(h={}));var h;(function(e){function c(Mr){return Mr.kind===8}e.isNumericLiteral=c;function P(Mr){return Mr.kind===9}e.isBigIntLiteral=P;function T(Mr){return Mr.kind===10}e.isStringLiteral=T;function s(Mr){return Mr.kind===11}e.isJsxText=s;function D(Mr){return Mr.kind===13}e.isRegularExpressionLiteral=D;function O(Mr){return Mr.kind===14}e.isNoSubstitutionTemplateLiteral=O;function W(Mr){return Mr.kind===15}e.isTemplateHead=W;function E(Mr){return Mr.kind===16}e.isTemplateMiddle=E;function v(Mr){return Mr.kind===17}e.isTemplateTail=v;function S(Mr){return Mr.kind===25}e.isDotDotDotToken=S;function te(Mr){return Mr.kind===27}e.isCommaToken=te;function Y(Mr){return Mr.kind===39}e.isPlusToken=Y;function Z(Mr){return Mr.kind===40}e.isMinusToken=Z;function ce(Mr){return Mr.kind===41}e.isAsteriskToken=ce;function k(Mr){return Mr.kind===53}e.isExclamationToken=k;function X(Mr){return Mr.kind===57}e.isQuestionToken=X;function A(Mr){return Mr.kind===58}e.isColonToken=A;function y(Mr){return Mr.kind===28}e.isQuestionDotToken=y;function C(Mr){return Mr.kind===38}e.isEqualsGreaterThanToken=C;function B(Mr){return Mr.kind===79}e.isIdentifier=B;function F(Mr){return Mr.kind===80}e.isPrivateIdentifier=F;function z(Mr){return Mr.kind===93}e.isExportModifier=z;function ge(Mr){return Mr.kind===132}e.isAsyncModifier=ge;function Pe(Mr){return Mr.kind===129}e.isAssertsKeyword=Pe;function fe(Mr){return Mr.kind===133}e.isAwaitKeyword=fe;function _e(Mr){return Mr.kind===146}e.isReadonlyKeyword=_e;function ne(Mr){return Mr.kind===124}e.isStaticModifier=ne;function oe(Mr){return Mr.kind===126}e.isAbstractModifier=oe;function w(Mr){return Mr.kind===161}e.isOverrideModifier=w;function re(Mr){return Mr.kind===127}e.isAccessorModifier=re;function M(Mr){return Mr.kind===106}e.isSuperKeyword=M;function U(Mr){return Mr.kind===100}e.isImportKeyword=U;function H(Mr){return Mr.kind===163}e.isQualifiedName=H;function q(Mr){return Mr.kind===164}e.isComputedPropertyName=q;function R(Mr){return Mr.kind===165}e.isTypeParameterDeclaration=R;function K(Mr){return Mr.kind===166}e.isParameter=K;function I(Mr){return Mr.kind===167}e.isDecorator=I;function he(Mr){return Mr.kind===168}e.isPropertySignature=he;function le(Mr){return Mr.kind===169}e.isPropertyDeclaration=le;function ee(Mr){return Mr.kind===170}e.isMethodSignature=ee;function J(Mr){return Mr.kind===171}e.isMethodDeclaration=J;function de(Mr){return Mr.kind===172}e.isClassStaticBlockDeclaration=de;function De(Mr){return Mr.kind===173}e.isConstructorDeclaration=De;function N(Mr){return Mr.kind===174}e.isGetAccessorDeclaration=N;function b(Mr){return Mr.kind===175}e.isSetAccessorDeclaration=b;function Q(Mr){return Mr.kind===176}e.isCallSignatureDeclaration=Q;function G(Mr){return Mr.kind===177}e.isConstructSignatureDeclaration=G;function ae(Mr){return Mr.kind===178}e.isIndexSignatureDeclaration=ae;function Te(Mr){return Mr.kind===179}e.isTypePredicateNode=Te;function Ne(Mr){return Mr.kind===180}e.isTypeReferenceNode=Ne;function we(Mr){return Mr.kind===181}e.isFunctionTypeNode=we;function nr(Mr){return Mr.kind===182}e.isConstructorTypeNode=nr;function tr(Mr){return Mr.kind===183}e.isTypeQueryNode=tr;function me(Mr){return Mr.kind===184}e.isTypeLiteralNode=me;function He(Mr){return Mr.kind===185}e.isArrayTypeNode=He;function rr(Mr){return Mr.kind===186}e.isTupleTypeNode=rr;function je(Mr){return Mr.kind===199}e.isNamedTupleMember=je;function Ce(Mr){return Mr.kind===187}e.isOptionalTypeNode=Ce;function Ae(Mr){return Mr.kind===188}e.isRestTypeNode=Ae;function qe(Mr){return Mr.kind===189}e.isUnionTypeNode=qe;function xe(Mr){return Mr.kind===190}e.isIntersectionTypeNode=xe;function L(Mr){return Mr.kind===191}e.isConditionalTypeNode=L;function ue(Mr){return Mr.kind===192}e.isInferTypeNode=ue;function Ue(Mr){return Mr.kind===193}e.isParenthesizedTypeNode=Ue;function Je(Mr){return Mr.kind===194}e.isThisTypeNode=Je;function lr(Mr){return Mr.kind===195}e.isTypeOperatorNode=lr;function mr(Mr){return Mr.kind===196}e.isIndexedAccessTypeNode=mr;function Hr(Mr){return Mr.kind===197}e.isMappedTypeNode=Hr;function wr(Mr){return Mr.kind===198}e.isLiteralTypeNode=wr;function Oe(Mr){return Mr.kind===202}e.isImportTypeNode=Oe;function Ze(Mr){return Mr.kind===201}e.isTemplateLiteralTypeSpan=Ze;function tt(Mr){return Mr.kind===200}e.isTemplateLiteralTypeNode=tt;function ut(Mr){return Mr.kind===203}e.isObjectBindingPattern=ut;function or(Mr){return Mr.kind===204}e.isArrayBindingPattern=or;function qr(Mr){return Mr.kind===205}e.isBindingElement=qr;function Rr(Mr){return Mr.kind===206}e.isArrayLiteralExpression=Rr;function zr(Mr){return Mr.kind===207}e.isObjectLiteralExpression=zr;function Fr(Mr){return Mr.kind===208}e.isPropertyAccessExpression=Fr;function _t(Mr){return Mr.kind===209}e.isElementAccessExpression=_t;function Ct(Mr){return Mr.kind===210}e.isCallExpression=Ct;function yt(Mr){return Mr.kind===211}e.isNewExpression=yt;function Fe(Mr){return Mr.kind===212}e.isTaggedTemplateExpression=Fe;function vr(Mr){return Mr.kind===213}e.isTypeAssertionExpression=vr;function Le(Mr){return Mr.kind===214}e.isParenthesizedExpression=Le;function cr(Mr){return Mr.kind===215}e.isFunctionExpression=cr;function $r(Mr){return Mr.kind===216}e.isArrowFunction=$r;function Re(Mr){return Mr.kind===217}e.isDeleteExpression=Re;function xr(Mr){return Mr.kind===218}e.isTypeOfExpression=xr;function Br(Mr){return Mr.kind===219}e.isVoidExpression=Br;function Qr(Mr){return Mr.kind===220}e.isAwaitExpression=Qr;function ct(Mr){return Mr.kind===221}e.isPrefixUnaryExpression=ct;function ft(Mr){return Mr.kind===222}e.isPostfixUnaryExpression=ft;function Dt(Mr){return Mr.kind===223}e.isBinaryExpression=Dt;function Me(Mr){return Mr.kind===224}e.isConditionalExpression=Me;function Ke(Mr){return Mr.kind===225}e.isTemplateExpression=Ke;function Vr(Mr){return Mr.kind===226}e.isYieldExpression=Vr;function Yr(Mr){return Mr.kind===227}e.isSpreadElement=Yr;function Nt(Mr){return Mr.kind===228}e.isClassExpression=Nt;function Wt(Mr){return Mr.kind===229}e.isOmittedExpression=Wt;function sn(Mr){return Mr.kind===230}e.isExpressionWithTypeArguments=sn;function en(Mr){return Mr.kind===231}e.isAsExpression=en;function Ir(Mr){return Mr.kind===235}e.isSatisfiesExpression=Ir;function Jr(Mr){return Mr.kind===232}e.isNonNullExpression=Jr;function ye(Mr){return Mr.kind===233}e.isMetaProperty=ye;function Ie(Mr){return Mr.kind===234}e.isSyntheticExpression=Ie;function We(Mr){return Mr.kind===353}e.isPartiallyEmittedExpression=We;function dr(Mr){return Mr.kind===354}e.isCommaListExpression=dr;function ar(Mr){return Mr.kind===236}e.isTemplateSpan=ar;function Sr(Mr){return Mr.kind===237}e.isSemicolonClassElement=Sr;function Or(Mr){return Mr.kind===238}e.isBlock=Or;function Ge(Mr){return Mr.kind===240}e.isVariableStatement=Ge;function ur(Mr){return Mr.kind===239}e.isEmptyStatement=ur;function Lr(Mr){return Mr.kind===241}e.isExpressionStatement=Lr;function Ar(Mr){return Mr.kind===242}e.isIfStatement=Ar;function rt(Mr){return Mr.kind===243}e.isDoStatement=rt;function Et(Mr){return Mr.kind===244}e.isWhileStatement=Et;function St(Mr){return Mr.kind===245}e.isForStatement=St;function Pt(Mr){return Mr.kind===246}e.isForInStatement=Pt;function pt(Mr){return Mr.kind===247}e.isForOfStatement=pt;function Ft(Mr){return Mr.kind===248}e.isContinueStatement=Ft;function ht(Mr){return Mr.kind===249}e.isBreakStatement=ht;function Yt(Mr){return Mr.kind===250}e.isReturnStatement=Yt;function un(Mr){return Mr.kind===251}e.isWithStatement=un;function wn(Mr){return Mr.kind===252}e.isSwitchStatement=wn;function Bn(Mr){return Mr.kind===253}e.isLabeledStatement=Bn;function yn(Mr){return Mr.kind===254}e.isThrowStatement=yn;function Tn(Mr){return Mr.kind===255}e.isTryStatement=Tn;function An(Mr){return Mr.kind===256}e.isDebuggerStatement=An;function ii(Mr){return Mr.kind===257}e.isVariableDeclaration=ii;function Xe(Mr){return Mr.kind===258}e.isVariableDeclarationList=Xe;function hr(Mr){return Mr.kind===259}e.isFunctionDeclaration=hr;function at(Mr){return Mr.kind===260}e.isClassDeclaration=at;function Qe(Mr){return Mr.kind===261}e.isInterfaceDeclaration=Qe;function Qt(Mr){return Mr.kind===262}e.isTypeAliasDeclaration=Qt;function Zt(Mr){return Mr.kind===263}e.isEnumDeclaration=Zt;function Tt(Mr){return Mr.kind===264}e.isModuleDeclaration=Tt;function gt(Mr){return Mr.kind===265}e.isModuleBlock=gt;function kt(Mr){return Mr.kind===266}e.isCaseBlock=kt;function Lt(Mr){return Mr.kind===267}e.isNamespaceExportDeclaration=Lt;function $e(Mr){return Mr.kind===268}e.isImportEqualsDeclaration=$e;function et(Mr){return Mr.kind===269}e.isImportDeclaration=et;function It(Mr){return Mr.kind===270}e.isImportClause=It;function xn(Mr){return Mr.kind===298}e.isImportTypeAssertionContainer=xn;function pi(Mr){return Mr.kind===296}e.isAssertClause=pi;function ai(Mr){return Mr.kind===297}e.isAssertEntry=ai;function Wi(Mr){return Mr.kind===271}e.isNamespaceImport=Wi;function ji(Mr){return Mr.kind===277}e.isNamespaceExport=ji;function fn(Mr){return Mr.kind===272}e.isNamedImports=fn;function Ri(Mr){return Mr.kind===273}e.isImportSpecifier=Ri;function ma(Mr){return Mr.kind===274}e.isExportAssignment=ma;function ra(Mr){return Mr.kind===275}e.isExportDeclaration=ra;function vn(Mr){return Mr.kind===276}e.isNamedExports=vn;function zo(Mr){return Mr.kind===278}e.isExportSpecifier=zo;function _a(Mr){return Mr.kind===279}e.isMissingDeclaration=_a;function Ha(Mr){return Mr.kind===352}e.isNotEmittedStatement=Ha;function Do(Mr){return Mr.kind===357}e.isSyntheticReference=Do;function Ka(Mr){return Mr.kind===355}e.isMergeDeclarationMarker=Ka;function rs(Mr){return Mr.kind===356}e.isEndOfDeclarationMarker=rs;function ts(Mr){return Mr.kind===280}e.isExternalModuleReference=ts;function En(Mr){return Mr.kind===281}e.isJsxElement=En;function ca(Mr){return Mr.kind===282}e.isJsxSelfClosingElement=ca;function bo(Mr){return Mr.kind===283}e.isJsxOpeningElement=bo;function Oo(Mr){return Mr.kind===284}e.isJsxClosingElement=Oo;function Ws(Mr){return Mr.kind===285}e.isJsxFragment=Ws;function Co(Mr){return Mr.kind===286}e.isJsxOpeningFragment=Co;function qs(Mr){return Mr.kind===287}e.isJsxClosingFragment=qs;function gs(Mr){return Mr.kind===288}e.isJsxAttribute=gs;function Ds(Mr){return Mr.kind===289}e.isJsxAttributes=Ds;function Ko(Mr){return Mr.kind===290}e.isJsxSpreadAttribute=Ko;function kr(Mr){return Mr.kind===291}e.isJsxExpression=kr;function jr(Mr){return Mr.kind===292}e.isCaseClause=jr;function Nn(Mr){return Mr.kind===293}e.isDefaultClause=Nn;function xi(Mr){return Mr.kind===294}e.isHeritageClause=xi;function ka(Mr){return Mr.kind===295}e.isCatchClause=ka;function ro(Mr){return Mr.kind===299}e.isPropertyAssignment=ro;function Ye(Mr){return Mr.kind===300}e.isShorthandPropertyAssignment=Ye;function lt(Mr){return Mr.kind===301}e.isSpreadAssignment=lt;function Ut(Mr){return Mr.kind===302}e.isEnumMember=Ut;function Ve(Mr){return Mr.kind===304}e.isUnparsedPrepend=Ve;function yr(Mr){return Mr.kind===308}e.isSourceFile=yr;function Er(Mr){return Mr.kind===309}e.isBundle=Er;function Wr(Mr){return Mr.kind===310}e.isUnparsedSource=Wr;function Ot(Mr){return Mr.kind===312}e.isJSDocTypeExpression=Ot;function ln(Mr){return Mr.kind===313}e.isJSDocNameReference=ln;function kn(Mr){return Mr.kind===314}e.isJSDocMemberName=kn;function Cn(Mr){return Mr.kind===327}e.isJSDocLink=Cn;function _i(Mr){return Mr.kind===328}e.isJSDocLinkCode=_i;function qi(Mr){return Mr.kind===329}e.isJSDocLinkPlain=qi;function va(Mr){return Mr.kind===315}e.isJSDocAllType=va;function Ia(Mr){return Mr.kind===316}e.isJSDocUnknownType=Ia;function $a(Mr){return Mr.kind===317}e.isJSDocNullableType=$a;function ws(Mr){return Mr.kind===318}e.isJSDocNonNullableType=ws;function rc(Mr){return Mr.kind===319}e.isJSDocOptionalType=rc;function Wo(Mr){return Mr.kind===320}e.isJSDocFunctionType=Wo;function ds(Mr){return Mr.kind===321}e.isJSDocVariadicType=ds;function yu(Mr){return Mr.kind===322}e.isJSDocNamepathType=yu;function bu(Mr){return Mr.kind===323}e.isJSDoc=bu;function tu(Mr){return Mr.kind===325}e.isJSDocTypeLiteral=tu;function $c(Mr){return Mr.kind===326}e.isJSDocSignature=$c;function Su(Mr){return Mr.kind===331}e.isJSDocAugmentsTag=Su;function Lc(Mr){return Mr.kind===333}e.isJSDocAuthorTag=Lc;function Hc(Mr){return Mr.kind===335}e.isJSDocClassTag=Hc;function tc(Mr){return Mr.kind===341}e.isJSDocCallbackTag=tc;function fc(Mr){return Mr.kind===336}e.isJSDocPublicTag=fc;function nu(Mr){return Mr.kind===337}e.isJSDocPrivateTag=nu;function nc(Mr){return Mr.kind===338}e.isJSDocProtectedTag=nc;function Xt(Mr){return Mr.kind===339}e.isJSDocReadonlyTag=Xt;function be(Mr){return Mr.kind===340}e.isJSDocOverrideTag=be;function Ur(Mr){return Mr.kind===334}e.isJSDocDeprecatedTag=Ur;function At(Mr){return Mr.kind===349}e.isJSDocSeeTag=At;function an(Mr){return Mr.kind===342}e.isJSDocEnumTag=an;function Kn(Mr){return Mr.kind===343}e.isJSDocParameterTag=Kn;function Yn(Mr){return Mr.kind===344}e.isJSDocReturnTag=Yn;function Si(Mr){return Mr.kind===345}e.isJSDocThisTag=Si;function vi(Mr){return Mr.kind===346}e.isJSDocTypeTag=vi;function Da(Mr){return Mr.kind===347}e.isJSDocTemplateTag=Da;function ta(Mr){return Mr.kind===348}e.isJSDocTypedefTag=ta;function fo(Mr){return Mr.kind===330}e.isJSDocUnknownTag=fo;function oo(Mr){return Mr.kind===350}e.isJSDocPropertyTag=oo;function er(Mr){return Mr.kind===332}e.isJSDocImplementsTag=er;function Bt(Mr){return Mr.kind===351}e.isSyntaxList=Bt})(h||(h={}));var h;(function(e){function c(Le){return Le.createExportDeclaration(void 0,!1,Le.createNamedExports([]),void 0)}e.createEmptyExports=c;function P(Le,cr,$r,Re){if(e.isComputedPropertyName($r))return e.setTextRange(Le.createElementAccessExpression(cr,$r.expression),Re);var xr=e.setTextRange(e.isMemberName($r)?Le.createPropertyAccessExpression(cr,$r):Le.createElementAccessExpression(cr,$r),$r);return e.getOrCreateEmitNode(xr).flags|=64,xr}e.createMemberAccessForPropertyName=P;function T(Le,cr){var $r=e.parseNodeFactory.createIdentifier(Le||"React");return e.setParent($r,e.getParseTreeNode(cr)),$r}function s(Le,cr,$r){if(e.isQualifiedName(cr)){var Re=s(Le,cr.left,$r),xr=Le.createIdentifier(e.idText(cr.right));return xr.escapedText=cr.right.escapedText,Le.createPropertyAccessExpression(Re,xr)}else return T(e.idText(cr),$r)}function D(Le,cr,$r,Re){return cr?s(Le,cr,Re):Le.createPropertyAccessExpression(T($r,Re),"createElement")}e.createJsxFactoryExpression=D;function O(Le,cr,$r,Re){return cr?s(Le,cr,Re):Le.createPropertyAccessExpression(T($r,Re),"Fragment")}function W(Le,cr,$r,Re,xr,Br){var Qr=[$r];if(Re&&Qr.push(Re),xr&&xr.length>0)if(Re||Qr.push(Le.createNull()),xr.length>1)for(var ct=0,ft=xr;ct<ft.length;ct++){var Dt=ft[ct];M(Dt),Qr.push(Dt)}else Qr.push(xr[0]);return e.setTextRange(Le.createCallExpression(cr,void 0,Qr),Br)}e.createExpressionForJsxElement=W;function E(Le,cr,$r,Re,xr,Br,Qr){var ct=O(Le,$r,Re,Br),ft=[ct,Le.createNull()];if(xr&&xr.length>0)if(xr.length>1)for(var Dt=0,Me=xr;Dt<Me.length;Dt++){var Ke=Me[Dt];M(Ke),ft.push(Ke)}else ft.push(xr[0]);return e.setTextRange(Le.createCallExpression(D(Le,cr,Re,Br),void 0,ft),Qr)}e.createExpressionForJsxFragment=E;function v(Le,cr,$r){if(e.isVariableDeclarationList(cr)){var Re=e.first(cr.declarations),xr=Le.updateVariableDeclaration(Re,Re.name,void 0,void 0,$r);return e.setTextRange(Le.createVariableStatement(void 0,Le.updateVariableDeclarationList(cr,[xr])),cr)}else{var Br=e.setTextRange(Le.createAssignment(cr,$r),cr);return e.setTextRange(Le.createExpressionStatement(Br),cr)}}e.createForOfBindingStatement=v;function S(Le,cr,$r){return e.isBlock(cr)?Le.updateBlock(cr,e.setTextRange(Le.createNodeArray(t([$r],cr.statements,!0)),cr.statements)):Le.createBlock(Le.createNodeArray([cr,$r]),!0)}e.insertLeadingStatement=S;function te(Le,cr){if(e.isQualifiedName(cr)){var $r=te(Le,cr.left),Re=e.setParent(e.setTextRange(Le.cloneNode(cr.right),cr.right),cr.right.parent);return e.setTextRange(Le.createPropertyAccessExpression($r,Re),cr)}else return e.setParent(e.setTextRange(Le.cloneNode(cr),cr),cr.parent)}e.createExpressionFromEntityName=te;function Y(Le,cr){return e.isIdentifier(cr)?Le.createStringLiteralFromNode(cr):e.isComputedPropertyName(cr)?e.setParent(e.setTextRange(Le.cloneNode(cr.expression),cr.expression),cr.expression.parent):e.setParent(e.setTextRange(Le.cloneNode(cr),cr),cr.parent)}e.createExpressionForPropertyName=Y;function Z(Le,cr,$r,Re,xr){var Br=e.getAllAccessorDeclarations(cr,$r),Qr=Br.firstAccessor,ct=Br.getAccessor,ft=Br.setAccessor;if($r===Qr)return e.setTextRange(Le.createObjectDefinePropertyCall(Re,Y(Le,$r.name),Le.createPropertyDescriptor({enumerable:Le.createFalse(),configurable:!0,get:ct&&e.setTextRange(e.setOriginalNode(Le.createFunctionExpression(e.getModifiers(ct),void 0,void 0,void 0,ct.parameters,void 0,ct.body),ct),ct),set:ft&&e.setTextRange(e.setOriginalNode(Le.createFunctionExpression(e.getModifiers(ft),void 0,void 0,void 0,ft.parameters,void 0,ft.body),ft),ft)},!xr)),Qr)}function ce(Le,cr,$r){return e.setOriginalNode(e.setTextRange(Le.createAssignment(P(Le,$r,cr.name,cr.name),cr.initializer),cr),cr)}function k(Le,cr,$r){return e.setOriginalNode(e.setTextRange(Le.createAssignment(P(Le,$r,cr.name,cr.name),Le.cloneNode(cr.name)),cr),cr)}function X(Le,cr,$r){return e.setOriginalNode(e.setTextRange(Le.createAssignment(P(Le,$r,cr.name,cr.name),e.setOriginalNode(e.setTextRange(Le.createFunctionExpression(e.getModifiers(cr),cr.asteriskToken,void 0,void 0,cr.parameters,void 0,cr.body),cr),cr)),cr),cr)}function A(Le,cr,$r,Re){switch($r.name&&e.isPrivateIdentifier($r.name)&&e.Debug.failBadSyntaxKind($r.name,"Private identifiers are not allowed in object literals."),$r.kind){case 174:case 175:return Z(Le,cr.properties,$r,Re,!!cr.multiLine);case 299:return ce(Le,$r,Re);case 300:return k(Le,$r,Re);case 171:return X(Le,$r,Re)}}e.createExpressionForObjectLiteralElementLike=A;function y(Le,cr,$r,Re,xr){var Br=cr.operator;e.Debug.assert(Br===45||Br===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var Qr=Le.createTempVariable(Re);$r=Le.createAssignment(Qr,$r),e.setTextRange($r,cr.operand);var ct=e.isPrefixUnaryExpression(cr)?Le.createPrefixUnaryExpression(Br,Qr):Le.createPostfixUnaryExpression(Qr,Br);return e.setTextRange(ct,cr),xr&&(ct=Le.createAssignment(xr,ct),e.setTextRange(ct,cr)),$r=Le.createComma($r,ct),e.setTextRange($r,cr),e.isPostfixUnaryExpression(cr)&&($r=Le.createComma($r,Qr),e.setTextRange($r,cr)),$r}e.expandPreOrPostfixIncrementOrDecrementExpression=y;function C(Le){return(e.getEmitFlags(Le)&32768)!==0}e.isInternalName=C;function B(Le){return(e.getEmitFlags(Le)&16384)!==0}e.isLocalName=B;function F(Le){return(e.getEmitFlags(Le)&8192)!==0}e.isExportName=F;function z(Le){return e.isStringLiteral(Le.expression)&&Le.expression.text==="use strict"}function ge(Le){for(var cr=0,$r=Le;cr<$r.length;cr++){var Re=$r[cr];if(e.isPrologueDirective(Re)){if(z(Re))return Re}else break}}e.findUseStrictPrologue=ge;function Pe(Le){var cr=e.firstOrUndefined(Le);return cr!==void 0&&e.isPrologueDirective(cr)&&z(cr)}e.startsWithUseStrict=Pe;function fe(Le){return Le.kind===223&&Le.operatorToken.kind===27||Le.kind===354}e.isCommaSequence=fe;function _e(Le){return e.isParenthesizedExpression(Le)&&e.isInJSFile(Le)&&!!e.getJSDocTypeTag(Le)}e.isJSDocTypeAssertion=_e;function ne(Le){var cr=e.getJSDocType(Le);return e.Debug.assertIsDefined(cr),cr}e.getJSDocTypeAssertionType=ne;function oe(Le,cr){switch(cr===void 0&&(cr=15),Le.kind){case 214:return cr&16&&_e(Le)?!1:(cr&1)!==0;case 213:case 231:case 235:return(cr&2)!==0;case 232:return(cr&4)!==0;case 353:return(cr&8)!==0}return!1}e.isOuterExpression=oe;function w(Le,cr){for(cr===void 0&&(cr=15);oe(Le,cr);)Le=Le.expression;return Le}e.skipOuterExpressions=w;function re(Le){return w(Le,6)}e.skipAssertions=re;function M(Le){return e.setStartsOnNewLine(Le,!0)}e.startOnNewLine=M;function U(Le){var cr=e.getOriginalNode(Le,e.isSourceFile),$r=cr&&cr.emitNode;return $r&&$r.externalHelpersModuleName}e.getExternalHelpersModuleName=U;function H(Le){var cr=e.getOriginalNode(Le,e.isSourceFile),$r=cr&&cr.emitNode;return!!$r&&(!!$r.externalHelpersModuleName||!!$r.externalHelpers)}e.hasRecordedExternalHelpers=H;function q(Le,cr,$r,Re,xr,Br,Qr){if(Re.importHelpers&&e.isEffectiveExternalModule($r,Re)){var ct=void 0,ft=e.getEmitModuleKind(Re);if(ft>=e.ModuleKind.ES2015&&ft<=e.ModuleKind.ESNext||$r.impliedNodeFormat===e.ModuleKind.ESNext){var Dt=e.getEmitHelpers($r);if(Dt){for(var Me=[],Ke=0,Vr=Dt;Ke<Vr.length;Ke++){var Yr=Vr[Ke];if(!Yr.scoped){var Nt=Yr.importName;Nt&&e.pushIfUnique(Me,Nt)}}if(e.some(Me)){Me.sort(e.compareStringsCaseSensitive),ct=Le.createNamedImports(e.map(Me,function(Jr){return e.isFileLevelUniqueName($r,Jr)?Le.createImportSpecifier(!1,void 0,Le.createIdentifier(Jr)):Le.createImportSpecifier(!1,Le.createIdentifier(Jr),cr.getUnscopedHelperName(Jr))}));var Wt=e.getOriginalNode($r,e.isSourceFile),sn=e.getOrCreateEmitNode(Wt);sn.externalHelpers=!0}}}else{var en=R(Le,$r,Re,xr,Br||Qr);en&&(ct=Le.createNamespaceImport(en))}if(ct){var Ir=Le.createImportDeclaration(void 0,Le.createImportClause(!1,void 0,ct),Le.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(Ir,67108864),Ir}}}e.createExternalHelpersImportDeclarationIfNeeded=q;function R(Le,cr,$r,Re,xr){if($r.importHelpers&&e.isEffectiveExternalModule(cr,$r)){var Br=U(cr);if(Br)return Br;var Qr=e.getEmitModuleKind($r),ct=(Re||e.getESModuleInterop($r)&&xr)&&Qr!==e.ModuleKind.System&&(Qr<e.ModuleKind.ES2015||cr.impliedNodeFormat===e.ModuleKind.CommonJS);if(!ct){var ft=e.getEmitHelpers(cr);if(ft)for(var Dt=0,Me=ft;Dt<Me.length;Dt++){var Ke=Me[Dt];if(!Ke.scoped){ct=!0;break}}}if(ct){var Vr=e.getOriginalNode(cr,e.isSourceFile),Yr=e.getOrCreateEmitNode(Vr);return Yr.externalHelpersModuleName||(Yr.externalHelpersModuleName=Le.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=R;function K(Le,cr,$r){var Re=e.getNamespaceDeclarationNode(cr);if(Re&&!e.isDefaultImport(cr)&&!e.isExportNamespaceAsDefaultDeclaration(cr)){var xr=Re.name;return e.isGeneratedIdentifier(xr)?xr:Le.createIdentifier(e.getSourceTextOfNodeFromSourceFile($r,xr)||e.idText(xr))}if(cr.kind===269&&cr.importClause||cr.kind===275&&cr.moduleSpecifier)return Le.getGeneratedNameForNode(cr)}e.getLocalNameForExternalImport=K;function I(Le,cr,$r,Re,xr,Br){var Qr=e.getExternalModuleName(cr);if(Qr&&e.isStringLiteral(Qr))return ee(cr,Re,Le,xr,Br)||he(Le,Qr,$r)||Le.cloneNode(Qr)}e.getExternalModuleNameLiteral=I;function he(Le,cr,$r){var Re=$r.renamedDependencies&&$r.renamedDependencies.get(cr.text);return Re?Le.createStringLiteral(Re):void 0}function le(Le,cr,$r,Re){if(cr){if(cr.moduleName)return Le.createStringLiteral(cr.moduleName);if(!cr.isDeclarationFile&&e.outFile(Re))return Le.createStringLiteral(e.getExternalModuleNameFromPath($r,cr.fileName))}}e.tryGetModuleNameFromFile=le;function ee(Le,cr,$r,Re,xr){return le($r,Re.getExternalModuleFileFromDeclaration(Le),cr,xr)}function J(Le){if(e.isDeclarationBindingElement(Le))return Le.initializer;if(e.isPropertyAssignment(Le)){var cr=Le.initializer;return e.isAssignmentExpression(cr,!0)?cr.right:void 0}if(e.isShorthandPropertyAssignment(Le))return Le.objectAssignmentInitializer;if(e.isAssignmentExpression(Le,!0))return Le.right;if(e.isSpreadElement(Le))return J(Le.expression)}e.getInitializerOfBindingOrAssignmentElement=J;function de(Le){if(e.isDeclarationBindingElement(Le))return Le.name;if(e.isObjectLiteralElementLike(Le)){switch(Le.kind){case 299:return de(Le.initializer);case 300:return Le.name;case 301:return de(Le.expression)}return}return e.isAssignmentExpression(Le,!0)?de(Le.left):e.isSpreadElement(Le)?de(Le.expression):Le}e.getTargetOfBindingOrAssignmentElement=de;function De(Le){switch(Le.kind){case 166:case 205:return Le.dotDotDotToken;case 227:case 301:return Le}}e.getRestIndicatorOfBindingOrAssignmentElement=De;function N(Le){var cr=b(Le);return e.Debug.assert(!!cr||e.isSpreadAssignment(Le),"Invalid property name for binding element."),cr}e.getPropertyNameOfBindingOrAssignmentElement=N;function b(Le){switch(Le.kind){case 205:if(Le.propertyName){var cr=Le.propertyName;return e.isPrivateIdentifier(cr)?e.Debug.failBadSyntaxKind(cr):e.isComputedPropertyName(cr)&&Q(cr.expression)?cr.expression:cr}break;case 299:if(Le.name){var cr=Le.name;return e.isPrivateIdentifier(cr)?e.Debug.failBadSyntaxKind(cr):e.isComputedPropertyName(cr)&&Q(cr.expression)?cr.expression:cr}break;case 301:return Le.name&&e.isPrivateIdentifier(Le.name)?e.Debug.failBadSyntaxKind(Le.name):Le.name}var $r=de(Le);if($r&&e.isPropertyName($r))return $r}e.tryGetPropertyNameOfBindingOrAssignmentElement=b;function Q(Le){var cr=Le.kind;return cr===10||cr===8}function G(Le){switch(Le.kind){case 203:case 204:case 206:return Le.elements;case 207:return Le.properties}}e.getElementsOfBindingOrAssignmentPattern=G;function ae(Le){if(Le)for(var cr=Le;;){if(e.isIdentifier(cr)||!cr.body)return e.isIdentifier(cr)?cr:cr.name;cr=cr.body}}e.getJSDocTypeAliasName=ae;function Te(Le){var cr=Le.kind;return cr===173||cr===175}e.canHaveIllegalType=Te;function Ne(Le){var cr=Le.kind;return cr===173||cr===174||cr===175}e.canHaveIllegalTypeParameters=Ne;function we(Le){var cr=Le.kind;return cr===299||cr===300||cr===259||cr===173||cr===178||cr===172||cr===279||cr===240||cr===261||cr===262||cr===263||cr===264||cr===268||cr===269||cr===267||cr===275||cr===274}e.canHaveIllegalDecorators=we;function nr(Le){var cr=Le.kind;return cr===172||cr===299||cr===300||cr===181||cr===279||cr===267}e.canHaveIllegalModifiers=nr,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function tr(Le){var cr=Le.kind;return cr===104||cr===110||cr===95||e.isLiteralExpression(Le)||e.isPrefixUnaryExpression(Le)}e.isLiteralTypeLikeExpression=tr;function me(Le){return Le===42}function He(Le){return Le===41||Le===43||Le===44}function rr(Le){return me(Le)||He(Le)}function je(Le){return Le===39||Le===40}function Ce(Le){return je(Le)||rr(Le)}function Ae(Le){return Le===47||Le===48||Le===49}function qe(Le){return Ae(Le)||Ce(Le)}function xe(Le){return Le===29||Le===32||Le===31||Le===33||Le===102||Le===101}function L(Le){return xe(Le)||qe(Le)}function ue(Le){return Le===34||Le===36||Le===35||Le===37}function Ue(Le){return ue(Le)||L(Le)}function Je(Le){return Le===50||Le===51||Le===52}function lr(Le){return Je(Le)||Ue(Le)}function mr(Le){return Le===55||Le===56}function Hr(Le){return mr(Le)||lr(Le)}function wr(Le){return Le===60||Hr(Le)||e.isAssignmentOperator(Le)}function Oe(Le){return wr(Le)||Le===27}function Ze(Le){return Oe(Le.kind)}e.isBinaryOperatorToken=Ze;var tt;(function(Le){function cr(Me,Ke,Vr,Yr,Nt,Wt,sn){var en=Ke>0?Nt[Ke-1]:void 0;return e.Debug.assertEqual(Vr[Ke],cr),Nt[Ke]=Me.onEnter(Yr[Ke],en,sn),Vr[Ke]=ct(Me,cr),Ke}Le.enter=cr;function $r(Me,Ke,Vr,Yr,Nt,Wt,sn){e.Debug.assertEqual(Vr[Ke],$r),e.Debug.assertIsDefined(Me.onLeft),Vr[Ke]=ct(Me,$r);var en=Me.onLeft(Yr[Ke].left,Nt[Ke],Yr[Ke]);return en?(Dt(Ke,Yr,en),ft(Ke,Vr,Yr,Nt,en)):Ke}Le.left=$r;function Re(Me,Ke,Vr,Yr,Nt,Wt,sn){return e.Debug.assertEqual(Vr[Ke],Re),e.Debug.assertIsDefined(Me.onOperator),Vr[Ke]=ct(Me,Re),Me.onOperator(Yr[Ke].operatorToken,Nt[Ke],Yr[Ke]),Ke}Le.operator=Re;function xr(Me,Ke,Vr,Yr,Nt,Wt,sn){e.Debug.assertEqual(Vr[Ke],xr),e.Debug.assertIsDefined(Me.onRight),Vr[Ke]=ct(Me,xr);var en=Me.onRight(Yr[Ke].right,Nt[Ke],Yr[Ke]);return en?(Dt(Ke,Yr,en),ft(Ke,Vr,Yr,Nt,en)):Ke}Le.right=xr;function Br(Me,Ke,Vr,Yr,Nt,Wt,sn){e.Debug.assertEqual(Vr[Ke],Br),Vr[Ke]=ct(Me,Br);var en=Me.onExit(Yr[Ke],Nt[Ke]);if(Ke>0){if(Ke--,Me.foldState){var Ir=Vr[Ke]===Br?"right":"left";Nt[Ke]=Me.foldState(Nt[Ke],en,Ir)}}else Wt.value=en;return Ke}Le.exit=Br;function Qr(Me,Ke,Vr,Yr,Nt,Wt,sn){return e.Debug.assertEqual(Vr[Ke],Qr),Ke}Le.done=Qr;function ct(Me,Ke){switch(Ke){case cr:if(Me.onLeft)return $r;case $r:if(Me.onOperator)return Re;case Re:if(Me.onRight)return xr;case xr:return Br;case Br:return Qr;case Qr:return Qr;default:e.Debug.fail("Invalid state")}}Le.nextState=ct;function ft(Me,Ke,Vr,Yr,Nt){return Me++,Ke[Me]=cr,Vr[Me]=Nt,Yr[Me]=void 0,Me}function Dt(Me,Ke,Vr){if(e.Debug.shouldAssert(2))for(;Me>=0;)e.Debug.assert(Ke[Me]!==Vr,"Circular traversal detected."),Me--}})(tt||(tt={}));var ut=function(){function Le(cr,$r,Re,xr,Br,Qr){this.onEnter=cr,this.onLeft=$r,this.onOperator=Re,this.onRight=xr,this.onExit=Br,this.foldState=Qr}return Le}();function or(Le,cr,$r,Re,xr,Br){var Qr=new ut(Le,cr,$r,Re,xr,Br);return ct;function ct(ft,Dt){for(var Me={value:void 0},Ke=[tt.enter],Vr=[ft],Yr=[void 0],Nt=0;Ke[Nt]!==tt.done;)Nt=Ke[Nt](Qr,Nt,Ke,Vr,Yr,Me,Dt);return e.Debug.assertEqual(Nt,0),Me.value}}e.createBinaryExpressionTrampoline=or;function qr(Le,cr){if(cr!==void 0)return cr.length===0?cr:e.setTextRange(Le.createNodeArray([],cr.hasTrailingComma),cr)}e.elideNodes=qr;function Rr(Le){if(Le.autoGenerateFlags&4){for(var cr=Le.autoGenerateId,$r=Le,Re=$r.original;Re&&($r=Re,!(e.isMemberName($r)&&$r.autoGenerateFlags&4&&$r.autoGenerateId!==cr));)Re=$r.original;return $r}return Le}e.getNodeForGeneratedName=Rr;function zr(Le,cr){return typeof Le=="object"?Ct(!1,Le.prefix,Le.node,Le.suffix,cr):typeof Le=="string"?Le.length>0&&Le.charCodeAt(0)===35?Le.slice(1):Le:""}e.formatGeneratedNamePart=zr;function Fr(Le,cr){return typeof Le=="string"?Le:_t(Le,e.Debug.checkDefined(cr))}function _t(Le,cr){return e.isGeneratedPrivateIdentifier(Le)?cr(Le).slice(1):e.isGeneratedIdentifier(Le)?cr(Le):e.isPrivateIdentifier(Le)?Le.escapedText.slice(1):e.idText(Le)}function Ct(Le,cr,$r,Re,xr){return cr=zr(cr,xr),Re=zr(Re,xr),$r=Fr($r,xr),"".concat(Le?"#":"").concat(cr).concat($r).concat(Re)}e.formatGeneratedName=Ct;function yt(Le,cr,$r,Re){return Le.updatePropertyDeclaration(cr,$r,Le.getGeneratedPrivateNameForNode(cr.name,void 0,"_accessor_storage"),void 0,void 0,Re)}e.createAccessorPropertyBackingField=yt;function Fe(Le,cr,$r,Re){return Le.createGetAccessorDeclaration($r,Re,[],void 0,Le.createBlock([Le.createReturnStatement(Le.createPropertyAccessExpression(Le.createThis(),Le.getGeneratedPrivateNameForNode(cr.name,void 0,"_accessor_storage")))]))}e.createAccessorPropertyGetRedirector=Fe;function vr(Le,cr,$r,Re){return Le.createSetAccessorDeclaration($r,Re,[Le.createParameterDeclaration(void 0,void 0,"value")],Le.createBlock([Le.createExpressionStatement(Le.createAssignment(Le.createPropertyAccessExpression(Le.createThis(),Le.getGeneratedPrivateNameForNode(cr.name,void 0,"_accessor_storage")),Le.createIdentifier("value")))]))}e.createAccessorPropertySetRedirector=vr})(h||(h={}));var h;(function(e){function c(s,D){return D?e.setTextRangePosEnd(s,D.pos,D.end):s}e.setTextRange=c;function P(s){var D=s.kind;return D===165||D===166||D===168||D===169||D===170||D===171||D===173||D===174||D===175||D===178||D===182||D===215||D===216||D===228||D===240||D===259||D===260||D===261||D===262||D===263||D===264||D===268||D===269||D===274||D===275}e.canHaveModifiers=P;function T(s){var D=s.kind;return D===166||D===169||D===171||D===174||D===175||D===228||D===260}e.canHaveDecorators=T})(h||(h={}));var h;(function(e){var c,P;(function(xe){xe[xe.None=0]="None",xe[xe.Yield=1]="Yield",xe[xe.Await=2]="Await",xe[xe.Type=4]="Type",xe[xe.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",xe[xe.JSDoc=32]="JSDoc"})(P||(P={}));var T;(function(xe){xe[xe.TryParse=0]="TryParse",xe[xe.Lookahead=1]="Lookahead",xe[xe.Reparse=2]="Reparse"})(T||(T={}));var s,D,O,W,E;e.parseBaseNodeFactory={createBaseSourceFileNode:function(xe){return new(E||(E=e.objectAllocator.getSourceFileConstructor()))(xe,-1,-1)},createBaseIdentifierNode:function(xe){return new(O||(O=e.objectAllocator.getIdentifierConstructor()))(xe,-1,-1)},createBasePrivateIdentifierNode:function(xe){return new(W||(W=e.objectAllocator.getPrivateIdentifierConstructor()))(xe,-1,-1)},createBaseTokenNode:function(xe){return new(D||(D=e.objectAllocator.getTokenConstructor()))(xe,-1,-1)},createBaseNode:function(xe){return new(s||(s=e.objectAllocator.getNodeConstructor()))(xe,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function v(xe,L){return L&&xe(L)}function S(xe,L,ue){if(ue){if(L)return L(ue);for(var Ue=0,Je=ue;Ue<Je.length;Ue++){var lr=Je[Ue],mr=xe(lr);if(mr)return mr}}}function te(xe,L){return xe.charCodeAt(L+1)===42&&xe.charCodeAt(L+2)===42&&xe.charCodeAt(L+3)!==47}e.isJSDocLikeText=te;function Y(xe){return e.forEach(xe.statements,Z)||ce(xe)}e.isFileProbablyExternalModule=Y;function Z(xe){return e.canHaveModifiers(xe)&&X(xe,93)||e.isImportEqualsDeclaration(xe)&&e.isExternalModuleReference(xe.moduleReference)||e.isImportDeclaration(xe)||e.isExportAssignment(xe)||e.isExportDeclaration(xe)?xe:void 0}function ce(xe){return xe.flags&4194304?k(xe):void 0}function k(xe){return A(xe)?xe:K(xe,k)}function X(xe,L){return e.some(xe.modifiers,function(ue){return ue.kind===L})}function A(xe){return e.isMetaProperty(xe)&&xe.keywordToken===100&&xe.name.escapedText==="meta"}var y=(c={},c[163]=function(L,ue,Ue){return v(ue,L.left)||v(ue,L.right)},c[165]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.constraint)||v(ue,L.default)||v(ue,L.expression)},c[300]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.questionToken)||v(ue,L.exclamationToken)||v(ue,L.equalsToken)||v(ue,L.objectAssignmentInitializer)},c[301]=function(L,ue,Ue){return v(ue,L.expression)},c[166]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.dotDotDotToken)||v(ue,L.name)||v(ue,L.questionToken)||v(ue,L.type)||v(ue,L.initializer)},c[169]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.questionToken)||v(ue,L.exclamationToken)||v(ue,L.type)||v(ue,L.initializer)},c[168]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.questionToken)||v(ue,L.type)||v(ue,L.initializer)},c[299]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.questionToken)||v(ue,L.exclamationToken)||v(ue,L.initializer)},c[257]=function(L,ue,Ue){return v(ue,L.name)||v(ue,L.exclamationToken)||v(ue,L.type)||v(ue,L.initializer)},c[205]=function(L,ue,Ue){return v(ue,L.dotDotDotToken)||v(ue,L.propertyName)||v(ue,L.name)||v(ue,L.initializer)},c[178]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)},c[182]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)},c[181]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)},c[176]=C,c[177]=C,c[171]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.asteriskToken)||v(ue,L.name)||v(ue,L.questionToken)||v(ue,L.exclamationToken)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)||v(ue,L.body)},c[170]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.questionToken)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)},c[173]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)||v(ue,L.body)},c[174]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.name)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)||v(ue,L.body)},c[175]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.name)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)||v(ue,L.body)},c[259]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.asteriskToken)||v(ue,L.name)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)||v(ue,L.body)},c[215]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||v(ue,L.asteriskToken)||v(ue,L.name)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)||v(ue,L.body)},c[216]=function(L,ue,Ue){return S(ue,Ue,L.modifiers)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.parameters)||v(ue,L.type)||v(ue,L.equalsGreaterThanToken)||v(ue,L.body)},c[172]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.body)},c[180]=function(L,ue,Ue){return v(ue,L.typeName)||S(ue,Ue,L.typeArguments)},c[179]=function(L,ue,Ue){return v(ue,L.assertsModifier)||v(ue,L.parameterName)||v(ue,L.type)},c[183]=function(L,ue,Ue){return v(ue,L.exprName)||S(ue,Ue,L.typeArguments)},c[184]=function(L,ue,Ue){return S(ue,Ue,L.members)},c[185]=function(L,ue,Ue){return v(ue,L.elementType)},c[186]=function(L,ue,Ue){return S(ue,Ue,L.elements)},c[189]=B,c[190]=B,c[191]=function(L,ue,Ue){return v(ue,L.checkType)||v(ue,L.extendsType)||v(ue,L.trueType)||v(ue,L.falseType)},c[192]=function(L,ue,Ue){return v(ue,L.typeParameter)},c[202]=function(L,ue,Ue){return v(ue,L.argument)||v(ue,L.assertions)||v(ue,L.qualifier)||S(ue,Ue,L.typeArguments)},c[298]=function(L,ue,Ue){return v(ue,L.assertClause)},c[193]=F,c[195]=F,c[196]=function(L,ue,Ue){return v(ue,L.objectType)||v(ue,L.indexType)},c[197]=function(L,ue,Ue){return v(ue,L.readonlyToken)||v(ue,L.typeParameter)||v(ue,L.nameType)||v(ue,L.questionToken)||v(ue,L.type)||S(ue,Ue,L.members)},c[198]=function(L,ue,Ue){return v(ue,L.literal)},c[199]=function(L,ue,Ue){return v(ue,L.dotDotDotToken)||v(ue,L.name)||v(ue,L.questionToken)||v(ue,L.type)},c[203]=z,c[204]=z,c[206]=function(L,ue,Ue){return S(ue,Ue,L.elements)},c[207]=function(L,ue,Ue){return S(ue,Ue,L.properties)},c[208]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.questionDotToken)||v(ue,L.name)},c[209]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.questionDotToken)||v(ue,L.argumentExpression)},c[210]=ge,c[211]=ge,c[212]=function(L,ue,Ue){return v(ue,L.tag)||v(ue,L.questionDotToken)||S(ue,Ue,L.typeArguments)||v(ue,L.template)},c[213]=function(L,ue,Ue){return v(ue,L.type)||v(ue,L.expression)},c[214]=function(L,ue,Ue){return v(ue,L.expression)},c[217]=function(L,ue,Ue){return v(ue,L.expression)},c[218]=function(L,ue,Ue){return v(ue,L.expression)},c[219]=function(L,ue,Ue){return v(ue,L.expression)},c[221]=function(L,ue,Ue){return v(ue,L.operand)},c[226]=function(L,ue,Ue){return v(ue,L.asteriskToken)||v(ue,L.expression)},c[220]=function(L,ue,Ue){return v(ue,L.expression)},c[222]=function(L,ue,Ue){return v(ue,L.operand)},c[223]=function(L,ue,Ue){return v(ue,L.left)||v(ue,L.operatorToken)||v(ue,L.right)},c[231]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.type)},c[232]=function(L,ue,Ue){return v(ue,L.expression)},c[235]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.type)},c[233]=function(L,ue,Ue){return v(ue,L.name)},c[224]=function(L,ue,Ue){return v(ue,L.condition)||v(ue,L.questionToken)||v(ue,L.whenTrue)||v(ue,L.colonToken)||v(ue,L.whenFalse)},c[227]=function(L,ue,Ue){return v(ue,L.expression)},c[238]=Pe,c[265]=Pe,c[308]=function(L,ue,Ue){return S(ue,Ue,L.statements)||v(ue,L.endOfFileToken)},c[240]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.declarationList)},c[258]=function(L,ue,Ue){return S(ue,Ue,L.declarations)},c[241]=function(L,ue,Ue){return v(ue,L.expression)},c[242]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.thenStatement)||v(ue,L.elseStatement)},c[243]=function(L,ue,Ue){return v(ue,L.statement)||v(ue,L.expression)},c[244]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.statement)},c[245]=function(L,ue,Ue){return v(ue,L.initializer)||v(ue,L.condition)||v(ue,L.incrementor)||v(ue,L.statement)},c[246]=function(L,ue,Ue){return v(ue,L.initializer)||v(ue,L.expression)||v(ue,L.statement)},c[247]=function(L,ue,Ue){return v(ue,L.awaitModifier)||v(ue,L.initializer)||v(ue,L.expression)||v(ue,L.statement)},c[248]=fe,c[249]=fe,c[250]=function(L,ue,Ue){return v(ue,L.expression)},c[251]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.statement)},c[252]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.caseBlock)},c[266]=function(L,ue,Ue){return S(ue,Ue,L.clauses)},c[292]=function(L,ue,Ue){return v(ue,L.expression)||S(ue,Ue,L.statements)},c[293]=function(L,ue,Ue){return S(ue,Ue,L.statements)},c[253]=function(L,ue,Ue){return v(ue,L.label)||v(ue,L.statement)},c[254]=function(L,ue,Ue){return v(ue,L.expression)},c[255]=function(L,ue,Ue){return v(ue,L.tryBlock)||v(ue,L.catchClause)||v(ue,L.finallyBlock)},c[295]=function(L,ue,Ue){return v(ue,L.variableDeclaration)||v(ue,L.block)},c[167]=function(L,ue,Ue){return v(ue,L.expression)},c[260]=_e,c[228]=_e,c[261]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||S(ue,Ue,L.typeParameters)||S(ue,Ue,L.heritageClauses)||S(ue,Ue,L.members)},c[262]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||S(ue,Ue,L.typeParameters)||v(ue,L.type)},c[263]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||S(ue,Ue,L.members)},c[302]=function(L,ue,Ue){return v(ue,L.name)||v(ue,L.initializer)},c[264]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.body)},c[268]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.name)||v(ue,L.moduleReference)},c[269]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.importClause)||v(ue,L.moduleSpecifier)||v(ue,L.assertClause)},c[270]=function(L,ue,Ue){return v(ue,L.name)||v(ue,L.namedBindings)},c[296]=function(L,ue,Ue){return S(ue,Ue,L.elements)},c[297]=function(L,ue,Ue){return v(ue,L.name)||v(ue,L.value)},c[267]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||v(ue,L.name)},c[271]=function(L,ue,Ue){return v(ue,L.name)},c[277]=function(L,ue,Ue){return v(ue,L.name)},c[272]=ne,c[276]=ne,c[275]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.exportClause)||v(ue,L.moduleSpecifier)||v(ue,L.assertClause)},c[273]=oe,c[278]=oe,c[274]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)||v(ue,L.expression)},c[225]=function(L,ue,Ue){return v(ue,L.head)||S(ue,Ue,L.templateSpans)},c[236]=function(L,ue,Ue){return v(ue,L.expression)||v(ue,L.literal)},c[200]=function(L,ue,Ue){return v(ue,L.head)||S(ue,Ue,L.templateSpans)},c[201]=function(L,ue,Ue){return v(ue,L.type)||v(ue,L.literal)},c[164]=function(L,ue,Ue){return v(ue,L.expression)},c[294]=function(L,ue,Ue){return S(ue,Ue,L.types)},c[230]=function(L,ue,Ue){return v(ue,L.expression)||S(ue,Ue,L.typeArguments)},c[280]=function(L,ue,Ue){return v(ue,L.expression)},c[279]=function(L,ue,Ue){return S(ue,Ue,L.illegalDecorators)||S(ue,Ue,L.modifiers)},c[354]=function(L,ue,Ue){return S(ue,Ue,L.elements)},c[281]=function(L,ue,Ue){return v(ue,L.openingElement)||S(ue,Ue,L.children)||v(ue,L.closingElement)},c[285]=function(L,ue,Ue){return v(ue,L.openingFragment)||S(ue,Ue,L.children)||v(ue,L.closingFragment)},c[282]=w,c[283]=w,c[289]=function(L,ue,Ue){return S(ue,Ue,L.properties)},c[288]=function(L,ue,Ue){return v(ue,L.name)||v(ue,L.initializer)},c[290]=function(L,ue,Ue){return v(ue,L.expression)},c[291]=function(L,ue,Ue){return v(ue,L.dotDotDotToken)||v(ue,L.expression)},c[284]=function(L,ue,Ue){return v(ue,L.tagName)},c[187]=re,c[188]=re,c[312]=re,c[318]=re,c[317]=re,c[319]=re,c[321]=re,c[320]=function(L,ue,Ue){return S(ue,Ue,L.parameters)||v(ue,L.type)},c[323]=function(L,ue,Ue){return(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment))||S(ue,Ue,L.tags)},c[349]=function(L,ue,Ue){return v(ue,L.tagName)||v(ue,L.name)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment))},c[313]=function(L,ue,Ue){return v(ue,L.name)},c[314]=function(L,ue,Ue){return v(ue,L.left)||v(ue,L.right)},c[343]=M,c[350]=M,c[333]=function(L,ue,Ue){return v(ue,L.tagName)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment))},c[332]=function(L,ue,Ue){return v(ue,L.tagName)||v(ue,L.class)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment))},c[331]=function(L,ue,Ue){return v(ue,L.tagName)||v(ue,L.class)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment))},c[347]=function(L,ue,Ue){return v(ue,L.tagName)||v(ue,L.constraint)||S(ue,Ue,L.typeParameters)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment))},c[348]=function(L,ue,Ue){return v(ue,L.tagName)||(L.typeExpression&&L.typeExpression.kind===312?v(ue,L.typeExpression)||v(ue,L.fullName)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment)):v(ue,L.fullName)||v(ue,L.typeExpression)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment)))},c[341]=function(L,ue,Ue){return v(ue,L.tagName)||v(ue,L.fullName)||v(ue,L.typeExpression)||(typeof L.comment=="string"?void 0:S(ue,Ue,L.comment))},c[344]=U,c[346]=U,c[345]=U,c[342]=U,c[326]=function(L,ue,Ue){return e.forEach(L.typeParameters,ue)||e.forEach(L.parameters,ue)||v(ue,L.type)},c[327]=H,c[328]=H,c[329]=H,c[325]=function(L,ue,Ue){return e.forEach(L.jsDocPropertyTags,ue)},c[330]=q,c[335]=q,c[336]=q,c[337]=q,c[338]=q,c[339]=q,c[334]=q,c[340]=q,c[353]=R,c);function C(xe,L,ue){return S(L,ue,xe.typeParameters)||S(L,ue,xe.parameters)||v(L,xe.type)}function B(xe,L,ue){return S(L,ue,xe.types)}function F(xe,L,ue){return v(L,xe.type)}function z(xe,L,ue){return S(L,ue,xe.elements)}function ge(xe,L,ue){return v(L,xe.expression)||v(L,xe.questionDotToken)||S(L,ue,xe.typeArguments)||S(L,ue,xe.arguments)}function Pe(xe,L,ue){return S(L,ue,xe.statements)}function fe(xe,L,ue){return v(L,xe.label)}function _e(xe,L,ue){return S(L,ue,xe.modifiers)||v(L,xe.name)||S(L,ue,xe.typeParameters)||S(L,ue,xe.heritageClauses)||S(L,ue,xe.members)}function ne(xe,L,ue){return S(L,ue,xe.elements)}function oe(xe,L,ue){return v(L,xe.propertyName)||v(L,xe.name)}function w(xe,L,ue){return v(L,xe.tagName)||S(L,ue,xe.typeArguments)||v(L,xe.attributes)}function re(xe,L,ue){return v(L,xe.type)}function M(xe,L,ue){return v(L,xe.tagName)||(xe.isNameFirst?v(L,xe.name)||v(L,xe.typeExpression):v(L,xe.typeExpression)||v(L,xe.name))||(typeof xe.comment=="string"?void 0:S(L,ue,xe.comment))}function U(xe,L,ue){return v(L,xe.tagName)||v(L,xe.typeExpression)||(typeof xe.comment=="string"?void 0:S(L,ue,xe.comment))}function H(xe,L,ue){return v(L,xe.name)}function q(xe,L,ue){return v(L,xe.tagName)||(typeof xe.comment=="string"?void 0:S(L,ue,xe.comment))}function R(xe,L,ue){return v(L,xe.expression)}function K(xe,L,ue){if(!(xe===void 0||xe.kind<=162)){var Ue=y[xe.kind];return Ue===void 0?void 0:Ue(xe,L,ue)}}e.forEachChild=K;function I(xe,L,ue){for(var Ue=he(xe),Je=[];Je.length<Ue.length;)Je.push(xe);for(;Ue.length!==0;){var lr=Ue.pop(),mr=Je.pop();if(e.isArray(lr)){if(ue){var Hr=ue(lr,mr);if(Hr){if(Hr==="skip")continue;return Hr}}for(var wr=lr.length-1;wr>=0;--wr)Ue.push(lr[wr]),Je.push(mr)}else{var Hr=L(lr,mr);if(Hr){if(Hr==="skip")continue;return Hr}if(lr.kind>=163)for(var Oe=0,Ze=he(lr);Oe<Ze.length;Oe++){var tt=Ze[Oe];Ue.push(tt),Je.push(lr)}}}}e.forEachChildRecursively=I;function he(xe){var L=[];return K(xe,ue,ue),L;function ue(Ue){L.unshift(Ue)}}function le(xe){xe.externalModuleIndicator=Y(xe)}function ee(xe,L,ue,Ue,Je){Ue===void 0&&(Ue=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:xe},!0),e.performance.mark("beforeParse");var lr;e.perfLogger.logStartParseSourceFile(xe);var mr=typeof ue=="object"?ue:{languageVersion:ue},Hr=mr.languageVersion,wr=mr.setExternalModuleIndicator,Oe=mr.impliedNodeFormat;if(Hr===100)lr=G.parseSourceFile(xe,L,Hr,void 0,Ue,6,e.noop);else{var Ze=Oe===void 0?wr:function(tt){return tt.impliedNodeFormat=Oe,(wr||le)(tt)};lr=G.parseSourceFile(xe,L,Hr,void 0,Ue,Je,Ze)}return e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),lr}e.createSourceFile=ee;function J(xe,L){return G.parseIsolatedEntityName(xe,L)}e.parseIsolatedEntityName=J;function de(xe,L){return G.parseJsonText(xe,L)}e.parseJsonText=de;function De(xe){return xe.externalModuleIndicator!==void 0}e.isExternalModule=De;function N(xe,L,ue,Ue){Ue===void 0&&(Ue=!1);var Je=ae.updateSourceFile(xe,L,ue,Ue);return Je.flags|=xe.flags&6291456,Je}e.updateSourceFile=N;function b(xe,L,ue){var Ue=G.JSDocParser.parseIsolatedJSDocComment(xe,L,ue);return Ue&&Ue.jsDoc&&G.fixupParentReferences(Ue.jsDoc),Ue}e.parseIsolatedJSDocComment=b;function Q(xe,L,ue){return G.JSDocParser.parseJSDocTypeExpressionForTests(xe,L,ue)}e.parseJSDocTypeExpressionForTests=Q;var G;(function(xe){var L=e.createScanner(99,!0),ue=20480,Ue,Je,lr,mr,Hr;function wr(ze){return Fe++,ze}var Oe={createBaseSourceFileNode:function(ze){return wr(new Hr(ze,0,0))},createBaseIdentifierNode:function(ze){return wr(new lr(ze,0,0))},createBasePrivateIdentifierNode:function(ze){return wr(new mr(ze,0,0))},createBaseTokenNode:function(ze){return wr(new Je(ze,0,0))},createBaseNode:function(ze){return wr(new Ue(ze,0,0))}},Ze=e.createNodeFactory(11,Oe),tt,ut,or,qr,Rr,zr,Fr,_t,Ct,yt,Fe,vr,Le,cr,$r,Re,xr,Br=!0,Qr=!1;function ct(ze,Cr,ot,xt,Gt,gn,ci){var Fi;if(Gt===void 0&&(Gt=!1),gn=e.ensureScriptKind(ze,gn),gn===6){var Oi=Dt(ze,Cr,ot,xt,Gt);return e.convertToObjectWorker(Oi,(Fi=Oi.statements[0])===null||Fi===void 0?void 0:Fi.expression,Oi.parseDiagnostics,!1,void 0,void 0),Oi.referencedFiles=e.emptyArray,Oi.typeReferenceDirectives=e.emptyArray,Oi.libReferenceDirectives=e.emptyArray,Oi.amdDependencies=e.emptyArray,Oi.hasNoDefaultLib=!1,Oi.pragmas=e.emptyMap,Oi}Me(ze,Cr,ot,xt,gn);var Ki=Vr(ot,Gt,gn,ci||le);return Ke(),Ki}xe.parseSourceFile=ct;function ft(ze,Cr){Me("",ze,Cr,void 0,1),Tt();var ot=_o(!0),xt=Qe()===1&&!Fr.length;return Ke(),xt?ot:void 0}xe.parseIsolatedEntityName=ft;function Dt(ze,Cr,ot,xt,Gt){ot===void 0&&(ot=2),Gt===void 0&&(Gt=!1),Me(ze,Cr,ot,xt,6),ut=xr,Tt();var gn=hr(),ci,Fi;if(Qe()===1)ci=kr([],gn,gn),Fi=Co();else{for(var Oi=void 0;Qe()!==1;){var Ki=void 0;switch(Qe()){case 22:Ki=Rf();break;case 110:case 95:case 104:Ki=Co();break;case 40:fn(function(){return Tt()===8&&Tt()!==58})?Ki=H_():Ki=Od();break;case 8:case 10:if(fn(function(){return Tt()!==58})){Ki=$s();break}default:Ki=Od();break}Oi&&e.isArray(Oi)?Oi.push(Ki):Oi?Oi=[Oi,Ki]:(Oi=Ki,Qe()!==1&&yn(e.Diagnostics.Unexpected_token))}var Ma=e.isArray(Oi)?jr(Ze.createArrayLiteralExpression(Oi),gn):e.Debug.checkDefined(Oi),Qo=Ze.createExpressionStatement(Ma);jr(Qo,gn),ci=kr([Qo],gn),Fi=Oo(1,e.Diagnostics.Unexpected_token)}var wo=Ir(ze,2,6,!1,ci,Fi,ut,e.noop);Gt&&en(wo),wo.nodeCount=Fe,wo.identifierCount=cr,wo.identifiers=vr,wo.parseDiagnostics=e.attachFileToDiagnostics(Fr,wo),_t&&(wo.jsDocDiagnostics=e.attachFileToDiagnostics(_t,wo));var ss=wo;return Ke(),ss}xe.parseJsonText=Dt;function Me(ze,Cr,ot,xt,Gt){switch(Ue=e.objectAllocator.getNodeConstructor(),Je=e.objectAllocator.getTokenConstructor(),lr=e.objectAllocator.getIdentifierConstructor(),mr=e.objectAllocator.getPrivateIdentifierConstructor(),Hr=e.objectAllocator.getSourceFileConstructor(),tt=e.normalizePath(ze),or=Cr,qr=ot,Ct=xt,Rr=Gt,zr=e.getLanguageVariant(Gt),Fr=[],$r=0,vr=new e.Map,Le=new e.Map,cr=0,Fe=0,ut=0,Br=!0,Rr){case 1:case 2:xr=262144;break;case 6:xr=67371008;break;default:xr=0;break}Qr=!1,L.setText(or),L.setOnError(Xe),L.setScriptTarget(qr),L.setLanguageVariant(zr)}function Ke(){L.clearCommentDirectives(),L.setText(""),L.setOnError(void 0),or=void 0,qr=void 0,Ct=void 0,Rr=void 0,zr=void 0,ut=0,Fr=void 0,_t=void 0,$r=0,vr=void 0,Re=void 0,Br=!0}function Vr(ze,Cr,ot,xt){var Gt=Te(tt);Gt&&(xr|=16777216),ut=xr,Tt();var gn=fc(0,ic);e.Debug.assert(Qe()===1);var ci=Wt(Co()),Fi=Ir(tt,ze,ot,Gt,gn,ci,ut,xt);return we(Fi,or),nr(Fi,Oi),Fi.commentDirectives=L.getCommentDirectives(),Fi.nodeCount=Fe,Fi.identifierCount=cr,Fi.identifiers=vr,Fi.parseDiagnostics=e.attachFileToDiagnostics(Fr,Fi),_t&&(Fi.jsDocDiagnostics=e.attachFileToDiagnostics(_t,Fi)),Cr&&en(Fi),Fi;function Oi(Ki,Ma,Qo){Fr.push(e.createDetachedDiagnostic(tt,Ki,Ma,Qo))}}function Yr(ze,Cr){return Cr?Wt(ze):ze}var Nt=!1;function Wt(ze){e.Debug.assert(!ze.jsDoc);var Cr=e.mapDefined(e.getJSDocCommentRanges(ze,or),function(ot){return Cv.parseJSDocComment(ze,ot.pos,ot.end-ot.pos)});return Cr.length&&(ze.jsDoc=Cr),Nt&&(Nt=!1,ze.flags|=268435456),ze}function sn(ze){var Cr=Ct,ot=ae.createSyntaxCursor(ze);Ct={currentNode:ss};var xt=[],Gt=Fr;Fr=[];for(var gn=0,ci=Qo(ze.statements,0),Fi=function(){var Cs=ze.statements[gn],dc=ze.statements[ci];e.addRange(xt,ze.statements,gn,ci),gn=wo(ze.statements,ci);var wc=e.findIndex(Gt,function(hs){return hs.start>=Cs.pos}),_l=wc>=0?e.findIndex(Gt,function(hs){return hs.start>=dc.pos},wc):-1;wc>=0&&e.addRange(Fr,Gt,wc,_l>=0?_l:void 0),ji(function(){var hs=xr;for(xr|=32768,L.setTextPos(dc.pos),Tt();Qe()!==1;){var cu=L.getStartPos(),ml=nu(0,ic);if(xt.push(ml),cu===L.getStartPos()&&Tt(),gn>=0){var Vf=ze.statements[gn];if(ml.end===Vf.pos)break;ml.end>Vf.pos&&(gn=wo(ze.statements,gn+1))}}xr=hs},2),ci=gn>=0?Qo(ze.statements,gn):-1};ci!==-1;)Fi();if(gn>=0){var Oi=ze.statements[gn];e.addRange(xt,ze.statements,gn);var Ki=e.findIndex(Gt,function(Cs){return Cs.start>=Oi.pos});Ki>=0&&e.addRange(Fr,Gt,Ki)}return Ct=Cr,Ze.updateSourceFile(ze,e.setTextRange(Ze.createNodeArray(xt),ze.statements));function Ma(Cs){return!(Cs.flags&32768)&&!!(Cs.transformFlags&67108864)}function Qo(Cs,dc){for(var wc=dc;wc<Cs.length;wc++)if(Ma(Cs[wc]))return wc;return-1}function wo(Cs,dc){for(var wc=dc;wc<Cs.length;wc++)if(!Ma(Cs[wc]))return wc;return-1}function ss(Cs){var dc=ot.currentNode(Cs);return Br&&dc&&Ma(dc)&&(dc.intersectsChange=!0),dc}}function en(ze){e.setParentRecursive(ze,!0)}xe.fixupParentReferences=en;function Ir(ze,Cr,ot,xt,Gt,gn,ci,Fi){var Oi=Ze.createSourceFile(Gt,gn,ci);return e.setTextRangePosWidth(Oi,0,or.length),Ki(Oi),!xt&&De(Oi)&&Oi.transformFlags&67108864&&(Oi=sn(Oi),Ki(Oi)),Oi;function Ki(Ma){Ma.text=or,Ma.bindDiagnostics=[],Ma.bindSuggestionDiagnostics=void 0,Ma.languageVersion=Cr,Ma.fileName=ze,Ma.languageVariant=e.getLanguageVariant(ot),Ma.isDeclarationFile=xt,Ma.scriptKind=ot,Fi(Ma),Ma.setExternalModuleIndicator=Fi}}function Jr(ze,Cr){ze?xr|=Cr:xr&=~Cr}function ye(ze){Jr(ze,4096)}function Ie(ze){Jr(ze,8192)}function We(ze){Jr(ze,16384)}function dr(ze){Jr(ze,32768)}function ar(ze,Cr){var ot=ze&xr;if(ot){Jr(!1,ot);var xt=Cr();return Jr(!0,ot),xt}return Cr()}function Sr(ze,Cr){var ot=ze&~xr;if(ot){Jr(!0,ot);var xt=Cr();return Jr(!1,ot),xt}return Cr()}function Or(ze){return ar(4096,ze)}function Ge(ze){return Sr(4096,ze)}function ur(ze){return ar(65536,ze)}function Lr(ze){return Sr(65536,ze)}function Ar(ze){return Sr(8192,ze)}function rt(ze){return Sr(16384,ze)}function Et(ze){return Sr(32768,ze)}function St(ze){return ar(32768,ze)}function Pt(ze){return Sr(40960,ze)}function pt(ze){return ar(40960,ze)}function Ft(ze){return(xr&ze)!==0}function ht(){return Ft(8192)}function Yt(){return Ft(4096)}function un(){return Ft(65536)}function wn(){return Ft(16384)}function Bn(){return Ft(32768)}function yn(ze,Cr){return An(L.getTokenPos(),L.getTextPos(),ze,Cr)}function Tn(ze,Cr,ot,xt){var Gt=e.lastOrUndefined(Fr),gn;return(!Gt||ze!==Gt.start)&&(gn=e.createDetachedDiagnostic(tt,ze,Cr,ot,xt),Fr.push(gn)),Qr=!0,gn}function An(ze,Cr,ot,xt){return Tn(ze,Cr-ze,ot,xt)}function ii(ze,Cr,ot){An(ze.pos,ze.end,Cr,ot)}function Xe(ze,Cr){Tn(L.getTextPos(),Cr,ze)}function hr(){return L.getStartPos()}function at(){return L.hasPrecedingJSDocComment()}function Qe(){return yt}function Qt(){return yt=L.scan()}function Zt(ze){return Tt(),ze()}function Tt(){return e.isKeyword(yt)&&(L.hasUnicodeEscape()||L.hasExtendedUnicodeEscape())&&An(L.getTokenPos(),L.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),Qt()}function gt(){return yt=L.scanJsDocToken()}function kt(){return yt=L.reScanGreaterToken()}function Lt(){return yt=L.reScanSlashToken()}function $e(ze){return yt=L.reScanTemplateToken(ze)}function et(){return yt=L.reScanTemplateHeadOrNoSubstitutionTemplate()}function It(){return yt=L.reScanLessThanToken()}function xn(){return yt=L.reScanHashToken()}function pi(){return yt=L.scanJsxIdentifier()}function ai(){return yt=L.scanJsxToken()}function Wi(){return yt=L.scanJsxAttributeValue()}function ji(ze,Cr){var ot=yt,xt=Fr.length,Gt=Qr,gn=xr,ci=Cr!==0?L.lookAhead(ze):L.tryScan(ze);return e.Debug.assert(gn===xr),(!ci||Cr!==0)&&(yt=ot,Cr!==2&&(Fr.length=xt),Qr=Gt),ci}function fn(ze){return ji(ze,1)}function Ri(ze){return ji(ze,0)}function ma(){return Qe()===79?!0:Qe()>116}function ra(){return Qe()===79?!0:Qe()===125&&ht()||Qe()===133&&Bn()?!1:Qe()>116}function vn(ze,Cr,ot){return ot===void 0&&(ot=!0),Qe()===ze?(ot&&Tt(),!0):(Cr?yn(Cr):yn(e.Diagnostics._0_expected,e.tokenToString(ze)),!1)}var zo=Object.keys(e.textToKeywordObj).filter(function(ze){return ze.length>2});function _a(ze){var Cr;if(e.isTaggedTemplateExpression(ze)){An(e.skipTrivia(or,ze.template.pos),ze.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var ot=e.isIdentifier(ze)?e.idText(ze):void 0;if(!ot||!e.isIdentifierText(ot,qr)){yn(e.Diagnostics._0_expected,e.tokenToString(26));return}var xt=e.skipTrivia(or,ze.pos);switch(ot){case"const":case"let":case"var":An(xt,ze.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Ha(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":An(xt,L.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Ha(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":Ha(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Gt=(Cr=e.getSpellingSuggestion(ot,zo,function(gn){return gn}))!==null&&Cr!==void 0?Cr:Do(ot);if(Gt){An(xt,ze.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Gt);return}Qe()!==0&&An(xt,ze.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function Ha(ze,Cr,ot){Qe()===ot?yn(Cr):yn(ze,L.getTokenValue())}function Do(ze){for(var Cr=0,ot=zo;Cr<ot.length;Cr++){var xt=ot[Cr];if(ze.length>xt.length+2&&e.startsWith(ze,xt))return"".concat(xt," ").concat(ze.slice(xt.length))}}function Ka(ze,Cr,ot){if(Qe()===59&&!L.hasPrecedingLineBreak()){yn(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(Qe()===20){yn(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),Tt();return}if(Cr&&!gs()){ot?yn(e.Diagnostics._0_expected,e.tokenToString(26)):yn(e.Diagnostics.Expected_for_property_initializer);return}if(!Ds()){if(ot){yn(e.Diagnostics._0_expected,e.tokenToString(26));return}_a(ze)}}function rs(ze){return Qe()===ze?(gt(),!0):(yn(e.Diagnostics._0_expected,e.tokenToString(ze)),!1)}function ts(ze,Cr,ot,xt){if(Qe()===Cr){Tt();return}var Gt=yn(e.Diagnostics._0_expected,e.tokenToString(Cr));ot&&Gt&&e.addRelatedInfo(Gt,e.createDetachedDiagnostic(tt,xt,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(ze),e.tokenToString(Cr)))}function En(ze){return Qe()===ze?(Tt(),!0):!1}function ca(ze){if(Qe()===ze)return Co()}function bo(ze){if(Qe()===ze)return qs()}function Oo(ze,Cr,ot){return ca(ze)||Nn(ze,!1,Cr||e.Diagnostics._0_expected,ot||e.tokenToString(ze))}function Ws(ze){return bo(ze)||Nn(ze,!1,e.Diagnostics._0_expected,e.tokenToString(ze))}function Co(){var ze=hr(),Cr=Qe();return Tt(),jr(Ze.createToken(Cr),ze)}function qs(){var ze=hr(),Cr=Qe();return gt(),jr(Ze.createToken(Cr),ze)}function gs(){return Qe()===26?!0:Qe()===19||Qe()===1||L.hasPrecedingLineBreak()}function Ds(){return gs()?(Qe()===26&&Tt(),!0):!1}function Ko(){return Ds()||vn(26)}function kr(ze,Cr,ot,xt){var Gt=Ze.createNodeArray(ze,xt);return e.setTextRangePosEnd(Gt,Cr,ot??L.getStartPos()),Gt}function jr(ze,Cr,ot){return e.setTextRangePosEnd(ze,Cr,ot??L.getStartPos()),xr&&(ze.flags|=xr),Qr&&(Qr=!1,ze.flags|=131072),ze}function Nn(ze,Cr,ot,xt){Cr?Tn(L.getStartPos(),0,ot,xt):ot&&yn(ot,xt);var Gt=hr(),gn=ze===79?Ze.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(ze)?Ze.createTemplateLiteralLikeNode(ze,"","",void 0):ze===8?Ze.createNumericLiteral("",void 0):ze===10?Ze.createStringLiteral("",void 0):ze===279?Ze.createMissingDeclaration():Ze.createToken(ze);return jr(gn,Gt)}function xi(ze){var Cr=vr.get(ze);return Cr===void 0&&vr.set(ze,Cr=ze),Cr}function ka(ze,Cr,ot){if(ze){cr++;var xt=hr(),Gt=Qe(),gn=xi(L.getTokenValue()),ci=L.hasExtendedUnicodeEscape();return Qt(),jr(Ze.createIdentifier(gn,void 0,Gt,ci),xt)}if(Qe()===80)return yn(ot||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ka(!0);if(Qe()===0&&L.tryScan(function(){return L.reScanInvalidIdentifier()===79}))return ka(!0);cr++;var Fi=Qe()===1,Oi=L.isReservedWord(),Ki=L.getTokenText(),Ma=Oi?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Nn(79,Fi,Cr||Ma,Ki)}function ro(ze){return ka(ma(),void 0,ze)}function Ye(ze,Cr){return ka(ra(),ze,Cr)}function lt(ze){return ka(e.tokenIsIdentifierOrKeyword(Qe()),ze)}function Ut(){return e.tokenIsIdentifierOrKeyword(Qe())||Qe()===10||Qe()===8}function Ve(){return e.tokenIsIdentifierOrKeyword(Qe())||Qe()===10}function yr(ze){if(Qe()===10||Qe()===8){var Cr=$s();return Cr.text=xi(Cr.text),Cr}return ze&&Qe()===22?Wr():Qe()===80?ln():lt()}function Er(){return yr(!0)}function Wr(){var ze=hr();vn(22);var Cr=Or(Sc);return vn(23),jr(Ze.createComputedPropertyName(Cr),ze)}function Ot(ze){var Cr=Le.get(ze);return Cr===void 0&&Le.set(ze,Cr=ze),Cr}function ln(){var ze=hr(),Cr=Ze.createPrivateIdentifier(Ot(L.getTokenValue()));return Tt(),jr(Cr,ze)}function kn(ze){return Qe()===ze&&Ri(_i)}function Cn(){return Tt(),L.hasPrecedingLineBreak()?!1:$a()}function _i(){switch(Qe()){case 85:return Tt()===92;case 93:return Tt(),Qe()===88?fn(ws):Qe()===154?fn(va):qi();case 88:return ws();case 127:case 124:case 137:case 151:return Tt(),$a();default:return Cn()}}function qi(){return Qe()!==41&&Qe()!==128&&Qe()!==18&&$a()}function va(){return Tt(),qi()}function Ia(){return e.isModifierKind(Qe())&&Ri(_i)}function $a(){return Qe()===22||Qe()===18||Qe()===41||Qe()===25||Ut()}function ws(){return Tt(),Qe()===84||Qe()===98||Qe()===118||Qe()===126&&fn(Iu)||Qe()===132&&fn(Sp)}function rc(ze,Cr){var ot=nc(ze);if(ot)return!0;switch(ze){case 0:case 1:case 3:return!(Qe()===26&&Cr)&&Os();case 2:return Qe()===82||Qe()===88;case 4:return fn(os);case 5:return fn(Tp)||Qe()===26&&!Cr;case 6:return Qe()===22||Ut();case 12:switch(Qe()){case 22:case 41:case 25:case 24:return!0;default:return Ut()}case 18:return Ut();case 9:return Qe()===22||Qe()===25||Ut();case 24:return Ve();case 7:return Qe()===18?fn(Wo):Cr?ra()&&!tu():Bm()&&!tu();case 8:return Ld();case 10:return Qe()===27||Qe()===25||Ld();case 19:return Qe()===101||ra();case 15:switch(Qe()){case 27:case 24:return!0}case 11:return Qe()===25||gf();case 16:return Yi(!1);case 17:return Yi(!0);case 20:case 21:return Qe()===27||mf();case 22:return tn();case 23:return e.tokenIsIdentifierOrKeyword(Qe());case 13:return e.tokenIsIdentifierOrKeyword(Qe())||Qe()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Wo(){if(e.Debug.assert(Qe()===18),Tt()===19){var ze=Tt();return ze===27||ze===18||ze===94||ze===117}return!0}function ds(){return Tt(),ra()}function yu(){return Tt(),e.tokenIsIdentifierOrKeyword(Qe())}function bu(){return Tt(),e.tokenIsIdentifierOrKeywordOrGreaterThan(Qe())}function tu(){return Qe()===117||Qe()===94?fn($c):!1}function $c(){return Tt(),gf()}function Su(){return Tt(),mf()}function Lc(ze){if(Qe()===1)return!0;switch(ze){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return Qe()===19;case 3:return Qe()===19||Qe()===82||Qe()===88;case 7:return Qe()===18||Qe()===94||Qe()===117;case 8:return Hc();case 19:return Qe()===31||Qe()===20||Qe()===18||Qe()===94||Qe()===117;case 11:return Qe()===21||Qe()===26;case 15:case 21:case 10:return Qe()===23;case 17:case 16:case 18:return Qe()===21||Qe()===23;case 20:return Qe()!==27;case 22:return Qe()===18||Qe()===19;case 13:return Qe()===31||Qe()===43;case 14:return Qe()===29&&fn(jl);default:return!1}}function Hc(){return!!(gs()||Td(Qe())||Qe()===38)}function tc(){for(var ze=0;ze<25;ze++)if($r&1<<ze&&(rc(ze,!0)||Lc(ze)))return!0;return!1}function fc(ze,Cr){var ot=$r;$r|=1<<ze;for(var xt=[],Gt=hr();!Lc(ze);){if(rc(ze,!1)){xt.push(nu(ze,Cr));continue}if(ta(ze))break}return $r=ot,kr(xt,Gt)}function nu(ze,Cr){var ot=nc(ze);return ot?Xt(ot):Cr()}function nc(ze,Cr){if(!(!Ct||!be(ze)||Qr)){var ot=Ct.currentNode(Cr??L.getStartPos());if(!(e.nodeIsMissing(ot)||ot.intersectsChange||e.containsParseError(ot))){var xt=ot.flags&50720768;if(xt===xr&&Ur(ot,ze))return ot.jsDocCache&&(ot.jsDocCache=void 0),ot}}}function Xt(ze){return L.setTextPos(ze.end),Tt(),ze}function be(ze){switch(ze){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Ur(ze,Cr){switch(Cr){case 5:return At(ze);case 2:return an(ze);case 0:case 1:case 3:return Kn(ze);case 6:return Yn(ze);case 4:return Si(ze);case 8:return vi(ze);case 17:case 16:return Da(ze)}return!1}function At(ze){if(ze)switch(ze.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:var Cr=ze,ot=Cr.name.kind===79&&Cr.name.originalKeywordKind===135;return!ot}return!1}function an(ze){if(ze)switch(ze.kind){case 292:case 293:return!0}return!1}function Kn(ze){if(ze)switch(ze.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}function Yn(ze){return ze.kind===302}function Si(ze){if(ze)switch(ze.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}function vi(ze){if(ze.kind!==257)return!1;var Cr=ze;return Cr.initializer===void 0}function Da(ze){if(ze.kind!==166)return!1;var Cr=ze;return Cr.initializer===void 0}function ta(ze){return fo(ze),tc()?!0:(Tt(),!1)}function fo(ze){switch(ze){case 0:return Qe()===88?yn(e.Diagnostics._0_expected,e.tokenToString(93)):yn(e.Diagnostics.Declaration_or_statement_expected);case 1:return yn(e.Diagnostics.Declaration_or_statement_expected);case 2:return yn(e.Diagnostics.case_or_default_expected);case 3:return yn(e.Diagnostics.Statement_expected);case 18:case 4:return yn(e.Diagnostics.Property_or_signature_expected);case 5:return yn(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return yn(e.Diagnostics.Enum_member_expected);case 7:return yn(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(Qe())?yn(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(Qe())):yn(e.Diagnostics.Variable_declaration_expected);case 9:return yn(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return yn(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return yn(e.Diagnostics.Argument_expression_expected);case 12:return yn(e.Diagnostics.Property_assignment_expected);case 15:return yn(e.Diagnostics.Expression_or_comma_expected);case 17:return yn(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(Qe())?yn(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(Qe())):yn(e.Diagnostics.Parameter_declaration_expected);case 19:return yn(e.Diagnostics.Type_parameter_declaration_expected);case 20:return yn(e.Diagnostics.Type_argument_expected);case 21:return yn(e.Diagnostics.Type_expected);case 22:return yn(e.Diagnostics.Unexpected_token_expected);case 23:return yn(e.Diagnostics.Identifier_expected);case 13:return yn(e.Diagnostics.Identifier_expected);case 14:return yn(e.Diagnostics.Identifier_expected);case 24:return yn(e.Diagnostics.Identifier_or_string_literal_expected);case 25:return e.Debug.fail("ParsingContext.Count used as a context");default:e.Debug.assertNever(ze)}}function oo(ze,Cr,ot){var xt=$r;$r|=1<<ze;for(var Gt=[],gn=hr(),ci=-1;;){if(rc(ze,!1)){var Fi=L.getStartPos(),Oi=nu(ze,Cr);if(!Oi){$r=xt;return}if(Gt.push(Oi),ci=L.getTokenPos(),En(27))continue;if(ci=-1,Lc(ze))break;vn(27,er(ze)),ot&&Qe()===26&&!L.hasPrecedingLineBreak()&&Tt(),Fi===L.getStartPos()&&Tt();continue}if(Lc(ze)||ta(ze))break}return $r=xt,kr(Gt,gn,void 0,ci>=0)}function er(ze){return ze===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Bt(){var ze=kr([],hr());return ze.isMissingList=!0,ze}function Mr(ze){return!!ze.isMissingList}function ua(ze,Cr,ot,xt){if(vn(ot)){var Gt=oo(ze,Cr);return vn(xt),Gt}return Bt()}function _o(ze,Cr){for(var ot=hr(),xt=ze?lt(Cr):Ye(Cr),Gt=hr();En(24);){if(Qe()===29){xt.jsdocDotPos=Gt;break}Gt=hr(),xt=jr(Ze.createQualifiedName(xt,yc(ze,!1)),ot)}return xt}function xs(ze,Cr){return jr(Ze.createQualifiedName(ze,Cr),ze.pos)}function yc(ze,Cr){if(L.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(Qe())){var ot=fn(Uu);if(ot)return Nn(79,!0,e.Diagnostics.Identifier_expected)}if(Qe()===80){var xt=ln();return Cr?xt:Nn(79,!0,e.Diagnostics.Identifier_expected)}return ze?lt():Ye()}function kc(ze){var Cr=hr(),ot=[],xt;do xt=Jo(ze),ot.push(xt);while(xt.literal.kind===16);return kr(ot,Cr)}function oc(ze){var Cr=hr();return jr(Ze.createTemplateExpression(Ju(ze),kc(ze)),Cr)}function iu(){var ze=hr();return jr(Ze.createTemplateLiteralType(Ju(!1),_u()),ze)}function _u(){var ze=hr(),Cr=[],ot;do ot=wl(),Cr.push(ot);while(ot.literal.kind===16);return kr(Cr,ze)}function wl(){var ze=hr();return jr(Ze.createTemplateLiteralTypeSpan(ms(),Du(!1)),ze)}function Du(ze){return Qe()===19?($e(ze),Up()):Oo(17,e.Diagnostics._0_expected,e.tokenToString(19))}function Jo(ze){var Cr=hr();return jr(Ze.createTemplateSpan(Or(Sc),Du(ze)),Cr)}function $s(){return wu(Qe())}function Ju(ze){ze&&et();var Cr=wu(Qe());return e.Debug.assert(Cr.kind===15,"Template head has wrong token kind"),Cr}function Up(){var ze=wu(Qe());return e.Debug.assert(ze.kind===16||ze.kind===17,"Template fragment has wrong token kind"),ze}function Vp(ze){var Cr=ze===14||ze===17,ot=L.getTokenText();return ot.substring(1,ot.length-(L.isUnterminated()?0:Cr?1:2))}function wu(ze){var Cr=hr(),ot=e.isTemplateLiteralKind(ze)?Ze.createTemplateLiteralLikeNode(ze,L.getTokenValue(),Vp(ze),L.getTokenFlags()&2048):ze===8?Ze.createNumericLiteral(L.getTokenValue(),L.getNumericLiteralFlags()):ze===10?Ze.createStringLiteral(L.getTokenValue(),void 0,L.hasExtendedUnicodeEscape()):e.isLiteralKind(ze)?Ze.createLiteralLikeNode(ze,L.getTokenValue()):e.Debug.fail();return L.hasExtendedUnicodeEscape()&&(ot.hasExtendedUnicodeEscape=!0),L.isUnterminated()&&(ot.isUnterminated=!0),Tt(),jr(ot,Cr)}function Nl(){return _o(!0,e.Diagnostics.Type_expected)}function pf(){if(!L.hasPrecedingLineBreak()&&It()===29)return ua(20,ms,29,31)}function Il(){var ze=hr();return jr(Ze.createTypeReferenceNode(Nl(),pf()),ze)}function Xl(ze){switch(ze.kind){case 180:return e.nodeIsMissing(ze.typeName);case 181:case 182:{var Cr=ze,ot=Cr.parameters,xt=Cr.type;return Mr(ot)||Xl(xt)}case 193:return Xl(ze.type);default:return!1}}function Zr(ze){return Tt(),jr(Ze.createTypePredicateNode(void 0,ze,ms()),ze.pos)}function Xr(){var ze=hr();return Tt(),jr(Ze.createThisTypeNode(),ze)}function $t(){var ze=hr();return Tt(),jr(Ze.createJSDocAllType(),ze)}function Dn(){var ze=hr();return Tt(),jr(Ze.createJSDocNonNullableType(qp(),!1),ze)}function Mn(){var ze=hr();return Tt(),Qe()===27||Qe()===19||Qe()===21||Qe()===31||Qe()===63||Qe()===51?jr(Ze.createJSDocUnknownType(),ze):jr(Ze.createJSDocNullableType(ms(),!1),ze)}function zn(){var ze=hr(),Cr=at();if(fn(qu)){Tt();var ot=Nr(36),xt=ya(58,!1);return Yr(jr(Ze.createJSDocFunctionType(ot,xt),ze),Cr)}return jr(Ze.createTypeReferenceNode(lt(),void 0),ze)}function mi(){var ze=hr(),Cr;return(Qe()===108||Qe()===103)&&(Cr=lt(),vn(58)),jr(Ze.createParameterDeclaration(void 0,void 0,Cr,void 0,Qn(),void 0),ze)}function Qn(){L.setInJSDocType(!0);var ze=hr();if(En(142)){var Cr=Ze.createJSDocNamepathType(void 0);e:for(;;)switch(Qe()){case 19:case 1:case 27:case 5:break e;default:gt()}return L.setInJSDocType(!1),jr(Cr,ze)}var ot=En(25),xt=s_();return L.setInJSDocType(!1),ot&&(xt=jr(Ze.createJSDocVariadicType(xt),ze)),Qe()===63?(Tt(),jr(Ze.createJSDocOptionalType(xt),ze)):xt}function Xi(){var ze=hr();vn(112);var Cr=_o(!0),ot=L.hasPrecedingLineBreak()?void 0:bt();return jr(Ze.createTypeQueryNode(Cr,ot),ze)}function Va(){var ze=hr(),Cr=Wu(),ot=Ye(),xt,Gt;En(94)&&(mf()||!gf()?xt=ms():Gt=ed());var gn=En(63)?ms():void 0,ci=Ze.createTypeParameterDeclaration(Cr,ot,xt,gn);return ci.expression=Gt,jr(ci,ze)}function ga(){if(Qe()===29)return ua(19,Va,29,31)}function Yi(ze){return Qe()===25||Ld()||e.isModifierKind(Qe())||Qe()===59||mf(!ze)}function so(ze){var Cr=nd(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(Cr)===0&&!e.some(ze)&&e.isModifierKind(Qe())&&Tt(),Cr}function da(){return ma()||Qe()===22||Qe()===18}function Po(ze){return Qs(ze)}function Uo(ze){return Qs(ze,!1)}function Qs(ze,Cr){Cr===void 0&&(Cr=!0);var ot=hr(),xt=at(),Gt=ze?Et(Ep):St(Ep);if(Qe()===108){var gn=Ze.createParameterDeclaration(Gt,void 0,ka(!0),void 0,Hp(),void 0);return Gt&&ii(Gt[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),Yr(jr(gn,ot),xt)}var ci=Br;Br=!1;var Fi=Cp(Gt,Wu()),Oi=ca(25);if(!(!Cr&&!da())){var Ki=Yr(jr(Ze.createParameterDeclaration(Fi,Oi,so(Fi),ca(57),Hp(),_p()),ot),xt);return Br=ci,Ki}}function ya(ze,Cr){if(Ee(ze,Cr))return ur(s_)}function Ee(ze,Cr){return ze===38?(vn(ze),!0):En(58)?!0:Cr&&Qe()===38?(yn(e.Diagnostics._0_expected,e.tokenToString(58)),Tt(),!0):!1}function Dr(ze,Cr){var ot=ht(),xt=Bn();Ie(!!(ze&1)),dr(!!(ze&2));var Gt=ze&32?oo(17,mi):oo(16,function(){return Cr?Po(xt):Uo(xt)});return Ie(ot),dr(xt),Gt}function Nr(ze){if(!vn(20))return Bt();var Cr=Dr(ze,!0);return vn(21),Cr}function Mt(){En(27)||Ko()}function In(ze){var Cr=hr(),ot=at();ze===177&&vn(103);var xt=ga(),Gt=Nr(4),gn=ya(58,!0);Mt();var ci=ze===176?Ze.createCallSignature(xt,Gt,gn):Ze.createConstructSignature(xt,Gt,gn);return Yr(jr(ci,Cr),ot)}function Di(){return Qe()===22&&fn(Pi)}function Pi(){if(Tt(),Qe()===25||Qe()===23)return!0;if(e.isModifierKind(Qe())){if(Tt(),ra())return!0}else if(ra())Tt();else return!1;return Qe()===58||Qe()===27?!0:Qe()!==57?!1:(Tt(),Qe()===58||Qe()===27||Qe()===23)}function Aa(ze,Cr,ot,xt){var Gt=ua(16,function(){return Po(!1)},22,23),gn=Hp();Mt();var ci=Ze.createIndexSignature(xt,Gt,gn);return ci.illegalDecorators=ot,Yr(jr(ci,ze),Cr)}function co(ze,Cr,ot){var xt=Er(),Gt=ca(57),gn;if(Qe()===20||Qe()===29){var ci=ga(),Fi=Nr(4),Oi=ya(58,!0);gn=Ze.createMethodSignature(ot,xt,Gt,ci,Fi,Oi)}else{var Oi=Hp();gn=Ze.createPropertySignature(ot,xt,Gt,Oi),Qe()===63&&(gn.initializer=_p())}return Mt(),Yr(jr(gn,ze),Cr)}function os(){if(Qe()===20||Qe()===29||Qe()===137||Qe()===151)return!0;for(var ze=!1;e.isModifierKind(Qe());)ze=!0,Tt();return Qe()===22?!0:(Ut()&&(ze=!0,Tt()),ze?Qe()===20||Qe()===29||Qe()===57||Qe()===58||Qe()===27||gs():!1)}function qo(){if(Qe()===20||Qe()===29)return In(176);if(Qe()===103&&fn(no))return In(177);var ze=hr(),Cr=at(),ot=Wu();return kn(137)?na(ze,Cr,void 0,ot,174,4):kn(151)?na(ze,Cr,void 0,ot,175,4):Di()?Aa(ze,Cr,void 0,ot):co(ze,Cr,ot)}function no(){return Tt(),Qe()===20||Qe()===29}function uo(){return Tt()===24}function _s(){switch(Tt()){case 20:case 29:case 24:return!0}return!1}function fs(){var ze=hr();return jr(Ze.createTypeLiteralNode(Xs()),ze)}function Xs(){var ze;return vn(18)?(ze=fc(4,qo),vn(19)):ze=Bt(),ze}function bc(){return Tt(),Qe()===39||Qe()===40?Tt()===146:(Qe()===146&&Tt(),Qe()===22&&ds()&&Tt()===101)}function fp(){var ze=hr(),Cr=lt();vn(101);var ot=ms();return jr(Ze.createTypeParameterDeclaration(void 0,Cr,ot,void 0),ze)}function zp(){var ze=hr();vn(18);var Cr;(Qe()===146||Qe()===39||Qe()===40)&&(Cr=Co(),Cr.kind!==146&&vn(146)),vn(22);var ot=fp(),xt=En(128)?ms():void 0;vn(23);var Gt;(Qe()===57||Qe()===39||Qe()===40)&&(Gt=Co(),Gt.kind!==57&&vn(57));var gn=Hp();Ko();var ci=fc(4,qo);return vn(19),jr(Ze.createMappedTypeNode(Cr,ot,xt,Gt,gn,ci),ze)}function pc(){var ze=hr();if(En(25))return jr(Ze.createRestTypeNode(ms()),ze);var Cr=ms();if(e.isJSDocNullableType(Cr)&&Cr.pos===Cr.type.pos){var ot=Ze.createOptionalTypeNode(Cr.type);return e.setTextRange(ot,Cr),ot.flags=Cr.flags,ot}return Cr}function vl(){return Tt()===58||Qe()===57&&Tt()===58}function nt(){return Qe()===25?e.tokenIsIdentifierOrKeyword(Tt())&&vl():e.tokenIsIdentifierOrKeyword(Qe())&&vl()}function Wp(){if(fn(nt)){var ze=hr(),Cr=at(),ot=ca(25),xt=lt(),Gt=ca(57);vn(58);var gn=pc(),ci=Ze.createNamedTupleMember(ot,xt,Gt,gn);return Yr(jr(ci,ze),Cr)}return pc()}function df(){var ze=hr();return jr(Ze.createTupleTypeNode(ua(21,Wp,22,23)),ze)}function _f(){var ze=hr();vn(20);var Cr=ms();return vn(21),jr(Ze.createParenthesizedType(Cr),ze)}function Ig(){var ze;if(Qe()===126){var Cr=hr();Tt();var ot=jr(Ze.createToken(126),Cr);ze=kr([ot],Cr)}return ze}function pp(){var ze=hr(),Cr=at(),ot=Ig(),xt=En(103),Gt=ga(),gn=Nr(4),ci=ya(38,!1),Fi=xt?Ze.createConstructorTypeNode(ot,Gt,gn,ci):Ze.createFunctionTypeNode(Gt,gn,ci);return xt||(Fi.modifiers=ot),Yr(jr(Fi,ze),Cr)}function Yl(){var ze=Co();return Qe()===24?void 0:ze}function i_(ze){var Cr=hr();ze&&Tt();var ot=Qe()===110||Qe()===95||Qe()===104?Co():wu(Qe());return ze&&(ot=jr(Ze.createPrefixUnaryExpression(40,ot),Cr)),jr(Ze.createLiteralTypeNode(ot),Cr)}function Lo(){return Tt(),Qe()===100}function Mm(){var ze=hr(),Cr=L.getTokenPos();vn(18);var ot=L.hasPrecedingLineBreak();vn(130),vn(58);var xt=Uf(!0);if(!vn(19)){var Gt=e.lastOrUndefined(Fr);Gt&&Gt.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Gt,e.createDetachedDiagnostic(tt,Cr,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return jr(Ze.createImportTypeAssertionContainer(xt,ot),ze)}function J_(){ut|=2097152;var ze=hr(),Cr=En(112);vn(100),vn(20);var ot=ms(),xt;En(27)&&(xt=Mm()),vn(21);var Gt=En(24)?Nl():void 0,gn=pf();return jr(Ze.createImportTypeNode(ot,xt,Gt,gn,Cr),ze)}function a_(){return Tt(),Qe()===8||Qe()===9}function qp(){switch(Qe()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return Ri(Yl)||Il();case 66:L.reScanAsteriskEqualsToken();case 41:return $t();case 60:L.reScanQuestionToken();case 57:return Mn();case 98:return zn();case 53:return Dn();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return i_();case 40:return fn(a_)?i_(!0):Il();case 114:return Co();case 108:{var ze=Xr();return Qe()===140&&!L.hasPrecedingLineBreak()?Zr(ze):ze}case 112:return fn(Lo)?J_():Xi();case 18:return fn(bc)?zp():fs();case 22:return df();case 20:return _f();case 100:return J_();case 129:return fn(Uu)?Mg():Il();case 15:return iu();default:return Il()}}function mf(ze){switch(Qe()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!ze;case 40:return!ze&&fn(a_);case 20:return!ze&&fn(Fm);default:return ra()}}function Fm(){return Tt(),Qe()===21||Yi(!1)||mf()}function dp(){for(var ze=hr(),Cr=qp();!L.hasPrecedingLineBreak();)switch(Qe()){case 53:Tt(),Cr=jr(Ze.createJSDocNonNullableType(Cr,!0),ze);break;case 57:if(fn(Su))return Cr;Tt(),Cr=jr(Ze.createJSDocNullableType(Cr,!0),ze);break;case 22:if(vn(22),mf()){var ot=ms();vn(23),Cr=jr(Ze.createIndexedAccessTypeNode(Cr,ot),ze)}else vn(23),Cr=jr(Ze.createArrayTypeNode(Cr),ze);break;default:return Cr}return Cr}function tl(ze){var Cr=hr();return vn(ze),jr(Ze.createTypeOperatorNode(ze,Mi()),Cr)}function Lm(){if(En(94)){var ze=Lr(ms);if(un()||Qe()!==57)return ze}}function o_(){var ze=hr(),Cr=Ye(),ot=Ri(Lm),xt=Ze.createTypeParameterDeclaration(void 0,Cr,ot);return jr(xt,ze)}function la(){var ze=hr();return vn(138),jr(Ze.createInferTypeNode(o_()),ze)}function Mi(){var ze=Qe();switch(ze){case 141:case 156:case 146:return tl(ze);case 138:return la()}return ur(dp)}function sl(ze){if(V_()){var Cr=pp(),ot=void 0;return e.isFunctionTypeNode(Cr)?ot=ze?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ot=ze?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,ii(Cr,ot),Cr}}function Nu(ze,Cr,ot){var xt=hr(),Gt=ze===51,gn=En(ze),ci=gn&&sl(Gt)||Cr();if(Qe()===ze||gn){for(var Fi=[ci];En(ze);)Fi.push(sl(Gt)||Cr());ci=jr(ot(kr(Fi,xt)),xt)}return ci}function U_(){return Nu(50,Mi,Ze.createIntersectionTypeNode)}function $p(){return Nu(51,U_,Ze.createUnionTypeNode)}function Og(){return Tt(),Qe()===103}function V_(){return Qe()===29||Qe()===20&&fn(Rm)?!0:Qe()===103||Qe()===126&&fn(Og)}function Ls(){if(e.isModifierKind(Qe())&&Wu(),ra()||Qe()===108)return Tt(),!0;if(Qe()===22||Qe()===18){var ze=Fr.length;return nd(),ze===Fr.length}return!1}function Rm(){return Tt(),!!(Qe()===21||Qe()===25||Ls()&&(Qe()===58||Qe()===27||Qe()===57||Qe()===63||Qe()===21&&(Tt(),Qe()===38)))}function s_(){var ze=hr(),Cr=ra()&&Ri(z_),ot=ms();return Cr?jr(Ze.createTypePredicateNode(void 0,Cr,ot),ze):ot}function z_(){var ze=Ye();if(Qe()===140&&!L.hasPrecedingLineBreak())return Tt(),ze}function Mg(){var ze=hr(),Cr=Oo(129),ot=Qe()===108?Xr():Ye(),xt=En(140)?ms():void 0;return jr(Ze.createTypePredicateNode(Cr,ot,xt),ze)}function ms(){if(xr&40960)return ar(40960,ms);if(V_())return pp();var ze=hr(),Cr=$p();if(!un()&&!L.hasPrecedingLineBreak()&&En(94)){var ot=Lr(ms);vn(57);var xt=ur(ms);vn(58);var Gt=ur(ms);return jr(Ze.createConditionalTypeNode(Cr,ot,xt,Gt),ze)}return Cr}function Hp(){return En(58)?ms():void 0}function Bm(){switch(Qe()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return fn(_s);default:return ra()}}function gf(){if(Bm())return!0;switch(Qe()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:return!0;default:return Ed()?!0:ra()}}function Fg(){return Qe()!==18&&Qe()!==98&&Qe()!==84&&Qe()!==59&&gf()}function Sc(){var ze=wn();ze&&We(!1);for(var Cr=hr(),ot=au(!0),xt;xt=ca(27);)ot=Cd(ot,xt,au(!0),Cr);return ze&&We(!0),ot}function _p(){return En(63)?au(!0):void 0}function au(ze){if(Dh())return Rg();var Cr=Bg(ze)||W_(ze);if(Cr)return Cr;var ot=hr(),xt=Qp(0);return xt.kind===79&&Qe()===38?jm(ot,xt,ze,void 0):e.isLeftHandSideExpression(xt)&&e.isAssignmentOperator(kt())?Cd(xt,Co(),au(ze),ot):q_(xt,ot,ze)}function Dh(){return Qe()===125?ht()?!0:fn(f_):!1}function Lg(){return Tt(),!L.hasPrecedingLineBreak()&&ra()}function Rg(){var ze=hr();return Tt(),!L.hasPrecedingLineBreak()&&(Qe()===41||gf())?jr(Ze.createYieldExpression(ca(41),au(!0)),ze):jr(Ze.createYieldExpression(void 0,void 0),ze)}function jm(ze,Cr,ot,xt){e.Debug.assert(Qe()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var Gt=Ze.createParameterDeclaration(void 0,void 0,Cr,void 0,void 0,void 0);jr(Gt,Cr.pos);var gn=kr([Gt],Gt.pos,Gt.end),ci=Oo(38),Fi=Kp(!!xt,ot),Oi=Ze.createArrowFunction(xt,void 0,gn,void 0,ci,Fi);return Wt(jr(Oi,ze))}function Bg(ze){var Cr=Ff();if(Cr!==0)return Cr===1?xd(!0,!0):Ri(function(){return Gp(ze)})}function Ff(){return Qe()===20||Qe()===29||Qe()===132?fn(mp):Qe()===38?1:0}function mp(){if(Qe()===132&&(Tt(),L.hasPrecedingLineBreak()||Qe()!==20&&Qe()!==29))return 0;var ze=Qe(),Cr=Tt();if(ze===20){if(Cr===21){var ot=Tt();switch(ot){case 38:case 58:case 18:return 1;default:return 0}}if(Cr===22||Cr===18)return 2;if(Cr===25)return 1;if(e.isModifierKind(Cr)&&Cr!==132&&fn(ds))return Tt()===128?0:1;if(!ra()&&Cr!==108)return 0;switch(Tt()){case 58:return 1;case 57:return Tt(),Qe()===58||Qe()===27||Qe()===63||Qe()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(ze===29),!ra())return 0;if(zr===1){var xt=fn(function(){var Gt=Tt();if(Gt===94){var gn=Tt();switch(gn){case 63:case 31:return!1;default:return!0}}else if(Gt===27||Gt===63)return!0;return!1});return xt?1:0}return 2}}function Gp(ze){var Cr=L.getTokenPos();if(!(Re!=null&&Re.has(Cr))){var ot=xd(!1,ze);return ot||(Re||(Re=new e.Set)).add(Cr),ot}}function W_(ze){if(Qe()===132&&fn(Ol)===1){var Cr=hr(),ot=id(),xt=Qp(0);return jm(Cr,xt,ze,ot)}}function Ol(){if(Qe()===132){if(Tt(),L.hasPrecedingLineBreak()||Qe()===38)return 0;var ze=Qp(0);if(!L.hasPrecedingLineBreak()&&ze.kind===79&&Qe()===38)return 1}return 0}function xd(ze,Cr){var ot=hr(),xt=at(),Gt=id(),gn=e.some(Gt,e.isAsyncModifier)?2:0,ci=ga(),Fi;if(vn(20)){if(ze)Fi=Dr(gn,ze);else{var Oi=Dr(gn,ze);if(!Oi)return;Fi=Oi}if(!vn(21)&&!ze)return}else{if(!ze)return;Fi=Bt()}var Ki=Qe()===58,Ma=ya(58,!1);if(!(Ma&&!ze&&Xl(Ma))){for(var Qo=Ma;(Qo==null?void 0:Qo.kind)===193;)Qo=Qo.type;var wo=Qo&&e.isJSDocFunctionType(Qo);if(!(!ze&&Qe()!==38&&(wo||Qe()!==18))){var ss=Qe(),Cs=Oo(38),dc=ss===38||ss===18?Kp(e.some(Gt,e.isAsyncModifier),Cr):Ye();if(!(!Cr&&Ki&&Qe()!==58)){var wc=Ze.createArrowFunction(Gt,ci,Fi,Ma,Cs,dc);return Yr(jr(wc,ot),xt)}}}}function Kp(ze,Cr){if(Qe()===18)return ef(ze?2:0);if(Qe()!==26&&Qe()!==98&&Qe()!==84&&Os()&&!Fg())return ef(16|(ze?2:0));var ot=Br;Br=!1;var xt=ze?Et(function(){return au(Cr)}):St(function(){return au(Cr)});return Br=ot,xt}function q_(ze,Cr,ot){var xt=ca(57);if(!xt)return ze;var Gt;return jr(Ze.createConditionalExpression(ze,xt,ar(ue,function(){return au(!1)}),Gt=Oo(58),e.nodeIsPresent(Gt)?au(ot):Nn(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),Cr)}function Qp(ze){var Cr=hr(),ot=ed();return $_(ze,ot,Cr)}function Td(ze){return ze===101||ze===162}function $_(ze,Cr,ot){for(;;){kt();var xt=e.getBinaryOperatorPrecedence(Qe()),Gt=Qe()===42?xt>=ze:xt>ze;if(!Gt||Qe()===101&&Yt())break;if(Qe()===128||Qe()===150){if(L.hasPrecedingLineBreak())break;var gn=Qe();Tt(),Cr=gn===150?Jm(Cr,ms()):Xp(Cr,ms())}else Cr=Cd(Cr,Co(),Qp(xt),ot)}return Cr}function Ed(){return Yt()&&Qe()===101?!1:e.getBinaryOperatorPrecedence(Qe())>0}function Jm(ze,Cr){return jr(Ze.createSatisfiesExpression(ze,Cr),ze.pos)}function Cd(ze,Cr,ot,xt){return jr(Ze.createBinaryExpression(ze,Cr,ot),xt)}function Xp(ze,Cr){return jr(Ze.createAsExpression(ze,Cr),ze.pos)}function H_(){var ze=hr();return jr(Ze.createPrefixUnaryExpression(Qe(),Zt(Ml)),ze)}function Yp(){var ze=hr();return jr(Ze.createDeleteExpression(Zt(Ml)),ze)}function ou(){var ze=hr();return jr(Ze.createTypeOfExpression(Zt(Ml)),ze)}function nl(){var ze=hr();return jr(Ze.createVoidExpression(Zt(Ml)),ze)}function gp(){return Qe()===133?Bn()?!0:fn(f_):!1}function Zp(){var ze=hr();return jr(Ze.createAwaitExpression(Zt(Ml)),ze)}function ed(){if(xh()){var ze=hr(),Cr=cl();return Qe()===42?$_(e.getBinaryOperatorPrecedence(Qe()),Cr,ze):Cr}var ot=Qe(),xt=Ml();if(Qe()===42){var ze=e.skipTrivia(or,xt.pos),Gt=xt.end;xt.kind===213?An(ze,Gt,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):An(ze,Gt,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(ot))}return xt}function Ml(){switch(Qe()){case 39:case 40:case 54:case 53:return H_();case 89:return Yp();case 112:return ou();case 114:return nl();case 29:return Xn();case 133:if(gp())return Zp();default:return cl()}}function xh(){switch(Qe()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(zr!==1)return!1;default:return!0}}function cl(){if(Qe()===45||Qe()===46){var ze=hr();return jr(Ze.createPrefixUnaryExpression(Qe(),Zt(kd)),ze)}else if(zr===1&&Qe()===29&&fn(bu))return hf(!0);var Cr=kd();if(e.Debug.assert(e.isLeftHandSideExpression(Cr)),(Qe()===45||Qe()===46)&&!L.hasPrecedingLineBreak()){var ot=Qe();return Tt(),jr(Ze.createPostfixUnaryExpression(Cr,ot),Cr.pos)}return Cr}function kd(){var ze=hr(),Cr;return Qe()===100?fn(no)?(ut|=2097152,Cr=Co()):fn(uo)?(Tt(),Tt(),Cr=jr(Ze.createMetaProperty(100,lt()),ze),ut|=4194304):Cr=Fl():Cr=Qe()===106?yl():Fl(),zs(ze,Cr)}function Fl(){var ze=hr(),Cr=Id();return Wn(ze,Cr,!0)}function yl(){var ze=hr(),Cr=Co();if(Qe()===29){var ot=hr(),xt=Ri(ul);xt!==void 0&&(An(ot,hr(),e.Diagnostics.super_may_not_use_type_arguments),su()||(Cr=Ze.createExpressionWithTypeArguments(Cr,xt)))}return Qe()===20||Qe()===24||Qe()===22?Cr:(Oo(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),jr(Ze.createPropertyAccessExpression(Cr,yc(!0,!0)),ze))}function hf(ze,Cr,ot){var xt=hr(),Gt=Yo(ze),gn;if(Gt.kind===283){var ci=Um(Gt),Fi=void 0,Oi=ci[ci.length-1];if((Oi==null?void 0:Oi.kind)===281&&!qe(Oi.openingElement.tagName,Oi.closingElement.tagName)&&qe(Gt.tagName,Oi.closingElement.tagName)){var Ki=Oi.children.end,Ma=jr(Ze.createJsxElement(Oi.openingElement,Oi.children,jr(Ze.createJsxClosingElement(jr(Ze.createIdentifier(""),Ki,Ki)),Ki,Ki)),Oi.openingElement.pos,Ki);ci=kr(t(t([],ci.slice(0,ci.length-1),!0),[Ma],!1),ci.pos,Ki),Fi=Oi.closingElement}else Fi=Vm(Gt,ze),qe(Gt.tagName,Fi.tagName)||(ot&&e.isJsxOpeningElement(ot)&&qe(Fi.tagName,ot.tagName)?ii(Gt.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(or,Gt.tagName)):ii(Fi.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(or,Gt.tagName)));gn=jr(Ze.createJsxElement(Gt,ci,Fi),xt)}else Gt.kind===286?gn=jr(Ze.createJsxFragment(Gt,Um(Gt),Gc(ze)),xt):(e.Debug.assert(Gt.kind===282),gn=Gt);if(ze&&Qe()===29){var Qo=typeof Cr>"u"?gn.pos:Cr,wo=Ri(function(){return hf(!0,Qo)});if(wo){var ss=Nn(27,!1);return e.setTextRangePosWidth(ss,wo.pos,0),An(e.skipTrivia(or,Qo),wo.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),jr(Ze.createBinaryExpression(gn,ss,wo),xt)}}return gn}function c_(){var ze=hr(),Cr=Ze.createJsxText(L.getTokenValue(),yt===12);return yt=L.scanJsxToken(),jr(Cr,ze)}function jg(ze,Cr){switch(Cr){case 1:if(e.isJsxOpeningFragment(ze))ii(ze,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var ot=ze.tagName,xt=e.skipTrivia(or,ot.pos);An(xt,ot.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(or,ze.tagName))}return;case 30:case 7:return;case 11:case 12:return c_();case 18:return vf(!1);case 29:return hf(!1,void 0,ze);default:return e.Debug.assertNever(Cr)}}function Um(ze){var Cr=[],ot=hr(),xt=$r;for($r|=16384;;){var Gt=jg(ze,yt=L.reScanJsxToken());if(!Gt||(Cr.push(Gt),e.isJsxOpeningElement(ze)&&(Gt==null?void 0:Gt.kind)===281&&!qe(Gt.openingElement.tagName,Gt.closingElement.tagName)&&qe(ze.tagName,Gt.closingElement.tagName)))break}return $r=xt,kr(Cr,ot)}function G_(){var ze=hr();return jr(Ze.createJsxAttributes(fc(13,Pd)),ze)}function Yo(ze){var Cr=hr();if(vn(29),Qe()===31)return ai(),jr(Ze.createJsxOpeningFragment(),Cr);var ot=Ad(),xt=xr&262144?void 0:bt(),Gt=G_(),gn;return Qe()===31?(ai(),gn=Ze.createJsxOpeningElement(ot,xt,Gt)):(vn(43),vn(31,void 0,!1)&&(ze?Tt():ai()),gn=Ze.createJsxSelfClosingElement(ot,xt,Gt)),jr(gn,Cr)}function Ad(){var ze=hr();pi();for(var Cr=Qe()===108?Co():lt();En(24);)Cr=jr(Ze.createPropertyAccessExpression(Cr,yc(!0,!1)),ze);return Cr}function vf(ze){var Cr=hr();if(vn(18)){var ot,xt;return Qe()!==19&&(ot=ca(25),xt=Sc()),ze?vn(19):vn(19,void 0,!1)&&ai(),jr(Ze.createJsxExpression(ot,xt),Cr)}}function Pd(){if(Qe()===18)return gc();pi();var ze=hr();return jr(Ze.createJsxAttribute(lt(),Vs()),ze)}function Vs(){if(Qe()===63){if(Wi()===10)return $s();if(Qe()===18)return vf(!0);if(Qe()===29)return hf(!0);yn(e.Diagnostics.or_JSX_element_expected)}}function gc(){var ze=hr();vn(18),vn(25);var Cr=Sc();return vn(19),jr(Ze.createJsxSpreadAttribute(Cr),ze)}function Vm(ze,Cr){var ot=hr();vn(30);var xt=Ad();return vn(31,void 0,!1)&&(Cr||!qe(ze.tagName,xt)?Tt():ai()),jr(Ze.createJsxClosingElement(xt),ot)}function Gc(ze){var Cr=hr();return vn(30),e.tokenIsIdentifierOrKeyword(Qe())&&ii(Ad(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),vn(31,void 0,!1)&&(ze?Tt():ai()),jr(Ze.createJsxJsxClosingFragment(),Cr)}function Xn(){var ze=hr();vn(29);var Cr=ms();vn(31);var ot=Ml();return jr(Ze.createTypeAssertion(Cr,ot),ze)}function sc(){return Tt(),e.tokenIsIdentifierOrKeyword(Qe())||Qe()===22||su()}function ba(){return Qe()===28&&fn(sc)}function yf(ze){if(ze.flags&32)return!0;if(e.isNonNullExpression(ze)){for(var Cr=ze.expression;e.isNonNullExpression(Cr)&&!(Cr.flags&32);)Cr=Cr.expression;if(Cr.flags&32){for(;e.isNonNullExpression(ze);)ze.flags|=32,ze=ze.expression;return!0}}return!1}function bl(ze,Cr,ot){var xt=yc(!0,!0),Gt=ot||yf(Cr),gn=Gt?Ze.createPropertyAccessChain(Cr,ot,xt):Ze.createPropertyAccessExpression(Cr,xt);if(Gt&&e.isPrivateIdentifier(gn.name)&&ii(gn.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),e.isExpressionWithTypeArguments(Cr)&&Cr.typeArguments){var ci=Cr.typeArguments.pos-1,Fi=e.skipTrivia(or,Cr.typeArguments.end)+1;An(ci,Fi,e.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return jr(gn,ze)}function Lf(ze,Cr,ot){var xt;if(Qe()===23)xt=Nn(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Gt=Or(Sc);e.isStringOrNumericLiteralLike(Gt)&&(Gt.text=xi(Gt.text)),xt=Gt}vn(23);var gn=ot||yf(Cr)?Ze.createElementAccessChain(Cr,ot,xt):Ze.createElementAccessExpression(Cr,xt);return jr(gn,ze)}function Wn(ze,Cr,ot){for(;;){var xt=void 0,Gt=!1;if(ot&&ba()?(xt=Oo(28),Gt=e.tokenIsIdentifierOrKeyword(Qe())):Gt=En(24),Gt){Cr=bl(ze,Cr,xt);continue}if((xt||!wn())&&En(22)){Cr=Lf(ze,Cr,xt);continue}if(su()){Cr=!xt&&Cr.kind===230?wd(ze,Cr.expression,xt,Cr.typeArguments):wd(ze,Cr,xt,void 0);continue}if(!xt){if(Qe()===53&&!L.hasPrecedingLineBreak()){Tt(),Cr=jr(Ze.createNonNullExpression(Cr),ze);continue}var gn=Ri(ul);if(gn){Cr=jr(Ze.createExpressionWithTypeArguments(Cr,gn),ze);continue}}return Cr}}function su(){return Qe()===14||Qe()===15}function wd(ze,Cr,ot,xt){var Gt=Ze.createTaggedTemplateExpression(Cr,xt,Qe()===14?(et(),$s()):oc(!0));return(ot||Cr.flags&32)&&(Gt.flags|=32),Gt.questionDotToken=ot,jr(Gt,ze)}function zs(ze,Cr){for(;;){Cr=Wn(ze,Cr,!0);var ot=void 0,xt=ca(28);if(xt&&(ot=Ri(ul),su())){Cr=wd(ze,Cr,xt,ot);continue}if(ot||Qe()===20){!xt&&Cr.kind===230&&(ot=Cr.typeArguments,Cr=Cr.expression);var Gt=ns(),gn=xt||yf(Cr)?Ze.createCallChain(Cr,xt,ot,Gt):Ze.createCallExpression(Cr,ot,Gt);Cr=jr(gn,ze);continue}if(xt){var ci=Nn(79,!1,e.Diagnostics.Identifier_expected);Cr=jr(Ze.createPropertyAccessChain(Cr,xt,ci),ze)}break}return Cr}function ns(){vn(20);var ze=oo(11,Zl);return vn(21),ze}function ul(){if(!(xr&262144)&&It()===29){Tt();var ze=oo(20,ms);if(kt()===31)return Tt(),ze&&Nd()?ze:void 0}}function Nd(){switch(Qe()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return L.hasPrecedingLineBreak()||Ed()||!gf()}function Id(){switch(Qe()){case 8:case 9:case 10:case 14:return $s();case 108:case 106:case 104:case 110:case 95:return Co();case 20:return bf();case 22:return Rf();case 18:return Od();case 132:if(!fn(Sp))break;return Rc();case 84:return fl();case 98:return Rc();case 103:return rd();case 43:case 68:if(Lt()===13)return $s();break;case 15:return oc(!1);case 80:return ln()}return Ye(e.Diagnostics.Expression_expected)}function bf(){var ze=hr(),Cr=at();vn(20);var ot=Or(Sc);return vn(21),Yr(jr(Ze.createParenthesizedExpression(ot),ze),Cr)}function Ac(){var ze=hr();vn(25);var Cr=au(!0);return jr(Ze.createSpreadElement(Cr),ze)}function hp(){return Qe()===25?Ac():Qe()===27?jr(Ze.createOmittedExpression(),hr()):au(!0)}function Zl(){return ar(ue,hp)}function Rf(){var ze=hr(),Cr=L.getTokenPos(),ot=vn(22),xt=L.hasPrecedingLineBreak(),Gt=oo(15,hp);return ts(22,23,ot,Cr),jr(Ze.createArrayLiteralExpression(Gt,xt),ze)}function zm(){var ze=hr(),Cr=at();if(ca(25)){var ot=au(!0);return Yr(jr(Ze.createSpreadAssignment(ot),ze),Cr)}var xt=Ep(),Gt=Wu();if(kn(137))return na(ze,Cr,xt,Gt,174,0);if(kn(151))return na(ze,Cr,xt,Gt,175,0);var gn=ca(41),ci=ra(),Fi=Er(),Oi=ca(57),Ki=ca(53);if(gn||Qe()===20||Qe()===29)return zu(ze,Cr,xt,Gt,gn,Fi,Oi,Ki);var Ma,Qo=ci&&Qe()!==58;if(Qo){var wo=ca(63),ss=wo?Or(function(){return au(!0)}):void 0;Ma=Ze.createShorthandPropertyAssignment(Fi,ss),Ma.equalsToken=wo}else{vn(58);var Cs=Or(function(){return au(!0)});Ma=Ze.createPropertyAssignment(Fi,Cs)}return Ma.illegalDecorators=xt,Ma.modifiers=Gt,Ma.questionToken=Oi,Ma.exclamationToken=Ki,Yr(jr(Ma,ze),Cr)}function Od(){var ze=hr(),Cr=L.getTokenPos(),ot=vn(18),xt=L.hasPrecedingLineBreak(),Gt=oo(12,zm,!0);return ts(18,19,ot,Cr),jr(Ze.createObjectLiteralExpression(Gt,xt),ze)}function Rc(){var ze=wn();We(!1);var Cr=hr(),ot=at(),xt=Wu();vn(98);var Gt=ca(41),gn=Gt?1:0,ci=e.some(xt,e.isAsyncModifier)?2:0,Fi=gn&&ci?Pt(vp):gn?Ar(vp):ci?Et(vp):vp(),Oi=ga(),Ki=Nr(gn|ci),Ma=ya(58,!1),Qo=ef(gn|ci);We(ze);var wo=Ze.createFunctionExpression(xt,Gt,Fi,Oi,Ki,Ma,Qo);return Yr(jr(wo,Cr),ot)}function vp(){return ma()?ro():void 0}function rd(){var ze=hr();if(vn(103),En(24)){var Cr=lt();return jr(Ze.createMetaProperty(103,Cr),ze)}var ot=hr(),xt=Wn(ot,Id(),!1),Gt;xt.kind===230&&(Gt=xt.typeArguments,xt=xt.expression),Qe()===28&&yn(e.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,e.getTextOfNodeFromSourceText(or,xt));var gn=Qe()===20?ns():void 0;return jr(Ze.createNewExpression(xt,Gt,gn),ze)}function yp(ze,Cr){var ot=hr(),xt=at(),Gt=L.getTokenPos(),gn=vn(18,Cr);if(gn||ze){var ci=L.hasPrecedingLineBreak(),Fi=fc(1,ic);ts(18,19,gn,Gt);var Oi=Yr(jr(Ze.createBlock(Fi,ci),ot),xt);return Qe()===63&&(yn(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),Tt()),Oi}else{var Fi=Bt();return Yr(jr(Ze.createBlock(Fi,void 0),ot),xt)}}function ef(ze,Cr){var ot=ht();Ie(!!(ze&1));var xt=Bn();dr(!!(ze&2));var Gt=Br;Br=!1;var gn=wn();gn&&We(!1);var ci=yp(!!(ze&16),Cr);return gn&&We(!0),Br=Gt,Ie(ot),dr(xt),ci}function Sl(){var ze=hr(),Cr=at();return vn(26),Yr(jr(Ze.createEmptyStatement(),ze),Cr)}function K_(){var ze=hr(),Cr=at();vn(99);var ot=L.getTokenPos(),xt=vn(20),Gt=Or(Sc);ts(20,21,xt,ot);var gn=ic(),ci=En(91)?ic():void 0;return Yr(jr(Ze.createIfStatement(Gt,gn,ci),ze),Cr)}function Wm(){var ze=hr(),Cr=at();vn(90);var ot=ic();vn(115);var xt=L.getTokenPos(),Gt=vn(20),gn=Or(Sc);return ts(20,21,Gt,xt),En(26),Yr(jr(Ze.createDoStatement(ot,gn),ze),Cr)}function bp(){var ze=hr(),Cr=at();vn(115);var ot=L.getTokenPos(),xt=vn(20),Gt=Or(Sc);ts(20,21,xt,ot);var gn=ic();return Yr(jr(Ze.createWhileStatement(Gt,gn),ze),Cr)}function u_(){var ze=hr(),Cr=at();vn(97);var ot=ca(133);vn(20);var xt;Qe()!==26&&(Qe()===113||Qe()===119||Qe()===85?xt=__(!0):xt=Ge(Sc));var Gt;if(ot?vn(162):En(162)){var gn=Or(function(){return au(!0)});vn(21),Gt=Ze.createForOfStatement(ot,xt,gn,ic())}else if(En(101)){var gn=Or(Sc);vn(21),Gt=Ze.createForInStatement(xt,gn,ic())}else{vn(26);var ci=Qe()!==26&&Qe()!==21?Or(Sc):void 0;vn(26);var Fi=Qe()!==21?Or(Sc):void 0;vn(21),Gt=Ze.createForStatement(xt,ci,Fi,ic())}return Yr(jr(Gt,ze),Cr)}function Pc(ze){var Cr=hr(),ot=at();vn(ze===249?81:86);var xt=gs()?void 0:Ye();Ko();var Gt=ze===249?Ze.createBreakStatement(xt):Ze.createContinueStatement(xt);return Yr(jr(Gt,Cr),ot)}function Dc(){var ze=hr(),Cr=at();vn(105);var ot=gs()?void 0:Or(Sc);return Ko(),Yr(jr(Ze.createReturnStatement(ot),ze),Cr)}function Ll(){var ze=hr(),Cr=at();vn(116);var ot=L.getTokenPos(),xt=vn(20),Gt=Or(Sc);ts(20,21,xt,ot);var gn=Sr(33554432,ic);return Yr(jr(Ze.createWithStatement(Gt,gn),ze),Cr)}function Ys(){var ze=hr(),Cr=at();vn(82);var ot=Or(Sc);vn(58);var xt=fc(3,ic);return Yr(jr(Ze.createCaseClause(ot,xt),ze),Cr)}function qm(){var ze=hr();vn(88),vn(58);var Cr=fc(3,ic);return jr(Ze.createDefaultClause(Cr),ze)}function mo(){return Qe()===82?Ys():qm()}function Zn(){var ze=hr();vn(18);var Cr=fc(2,mo);return vn(19),jr(Ze.createCaseBlock(Cr),ze)}function Bc(){var ze=hr(),Cr=at();vn(107),vn(20);var ot=Or(Sc);vn(21);var xt=Zn();return Yr(jr(Ze.createSwitchStatement(ot,xt),ze),Cr)}function Sf(){var ze=hr(),Cr=at();vn(109);var ot=L.hasPrecedingLineBreak()?void 0:Or(Sc);return ot===void 0&&(cr++,ot=jr(Ze.createIdentifier(""),hr())),Ds()||_a(ot),Yr(jr(Ze.createThrowStatement(ot),ze),Cr)}function Md(){var ze=hr(),Cr=at();vn(111);var ot=yp(!1),xt=Qe()===83?Jg():void 0,Gt;return(!xt||Qe()===96)&&(vn(96,e.Diagnostics.catch_or_finally_expected),Gt=yp(!1)),Yr(jr(Ze.createTryStatement(ot,xt,Gt),ze),Cr)}function Jg(){var ze=hr();vn(83);var Cr;En(20)?(Cr=d_(),vn(21)):Cr=void 0;var ot=yp(!1);return jr(Ze.createCatchClause(Cr,ot),ze)}function l_(){var ze=hr(),Cr=at();return vn(87),Ko(),Yr(jr(Ze.createDebuggerStatement(),ze),Cr)}function td(){var ze=hr(),Cr=at(),ot,xt=Qe()===20,Gt=Or(Sc);return e.isIdentifier(Gt)&&En(58)?ot=Ze.createLabeledStatement(Gt,ic()):(Ds()||_a(Gt),ot=Ze.createExpressionStatement(Gt),xt&&(Cr=!1)),Yr(jr(ot,ze),Cr)}function Uu(){return Tt(),e.tokenIsIdentifierOrKeyword(Qe())&&!L.hasPrecedingLineBreak()}function Iu(){return Tt(),Qe()===84&&!L.hasPrecedingLineBreak()}function Sp(){return Tt(),Qe()===98&&!L.hasPrecedingLineBreak()}function f_(){return Tt(),(e.tokenIsIdentifierOrKeyword(Qe())||Qe()===8||Qe()===9||Qe()===10)&&!L.hasPrecedingLineBreak()}function xu(){for(;;)switch(Qe()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return Lg();case 142:case 143:return Vu();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(Tt(),L.hasPrecedingLineBreak())return!1;continue;case 159:return Tt(),Qe()===18||Qe()===79||Qe()===93;case 100:return Tt(),Qe()===10||Qe()===41||Qe()===18||e.tokenIsIdentifierOrKeyword(Qe());case 93:var ze=Tt();if(ze===154&&(ze=fn(Tt)),ze===63||ze===41||ze===18||ze===88||ze===128)return!0;continue;case 124:Tt();continue;default:return!1}}function Fd(){return fn(xu)}function Os(){switch(Qe()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Fd()||fn(_s);case 85:case 93:return Fd();case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 127:case 123:case 121:case 122:case 124:case 146:return Fd()||!fn(Uu);default:return gf()}}function ll(){return Tt(),ma()||Qe()===18||Qe()===22}function Q_(){return fn(ll)}function ic(){switch(Qe()){case 26:return Sl();case 18:return yp(!1);case 113:return rf(hr(),at(),void 0,void 0);case 119:if(Q_())return rf(hr(),at(),void 0,void 0);break;case 98:return xf(hr(),at(),void 0,void 0);case 84:return jf(hr(),at(),void 0,void 0);case 99:return K_();case 90:return Wm();case 115:return bp();case 97:return u_();case 86:return Pc(248);case 81:return Pc(249);case 105:return Dc();case 116:return Ll();case 107:return Bc();case 109:return Sf();case 111:case 83:case 96:return Md();case 87:return l_();case 59:return Dp();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(Fd())return Dp();break}return td()}function Rl(ze){return ze.kind===136}function Dp(){var ze=hr(),Cr=at(),ot=Ep(),xt=Wu(),Gt=e.some(xt,Rl);if(Gt){var gn=X_(ze);if(gn)return gn;for(var ci=0,Fi=xt;ci<Fi.length;ci++){var Oi=Fi[ci];Oi.flags|=16777216}return Sr(16777216,function(){return p_(ze,Cr,ot,xt)})}else return p_(ze,Cr,ot,xt)}function X_(ze){return Sr(16777216,function(){var Cr=nc($r,ze);if(Cr)return Xt(Cr)})}function p_(ze,Cr,ot,xt){switch(Qe()){case 113:case 119:case 85:return rf(ze,Cr,ot,xt);case 98:return xf(ze,Cr,ot,xt);case 84:return jf(ze,Cr,ot,xt);case 118:return Ii(ze,Cr,ot,xt);case 154:return Hi(ze,Cr,ot,xt);case 92:return io(ze,Cr,ot,xt);case 159:case 142:case 143:return pl(ze,Cr,ot,xt);case 100:return Qm(ze,Cr,ot,xt);case 93:switch(Tt(),Qe()){case 88:case 63:return kh(ze,Cr,ot,xt);case 128:return Jf(ze,Cr,ot,xt);default:return Zm(ze,Cr,ot,xt)}default:if(ot||xt){var Gt=Nn(279,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Gt,ze),Gt.illegalDecorators=ot,Gt.modifiers=xt,Gt}return}}function Vu(){return Tt(),!L.hasPrecedingLineBreak()&&(ra()||Qe()===10)}function Es(ze,Cr){if(Qe()!==18){if(ze&4){Mt();return}if(gs()){Ko();return}}return ef(ze,Cr)}function Y_(){var ze=hr();if(Qe()===27)return jr(Ze.createOmittedExpression(),ze);var Cr=ca(25),ot=nd(),xt=_p();return jr(Ze.createBindingElement(Cr,void 0,ot,xt),ze)}function Bl(){var ze=hr(),Cr=ca(25),ot=ma(),xt=Er(),Gt;ot&&Qe()!==58?(Gt=xt,xt=void 0):(vn(58),Gt=nd());var gn=_p();return jr(Ze.createBindingElement(Cr,xt,Gt,gn),ze)}function Bf(){var ze=hr();vn(18);var Cr=oo(9,Bl);return vn(19),jr(Ze.createObjectBindingPattern(Cr),ze)}function xp(){var ze=hr();vn(22);var Cr=oo(10,Y_);return vn(23),jr(Ze.createArrayBindingPattern(Cr),ze)}function Ld(){return Qe()===18||Qe()===22||Qe()===80||ma()}function nd(ze){return Qe()===22?xp():Qe()===18?Bf():ro(ze)}function Df(){return d_(!0)}function d_(ze){var Cr=hr(),ot=at(),xt=nd(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Gt;ze&&xt.kind===79&&Qe()===53&&!L.hasPrecedingLineBreak()&&(Gt=Co());var gn=Hp(),ci=Td(Qe())?void 0:_p(),Fi=Ze.createVariableDeclaration(xt,Gt,gn,ci);return Yr(jr(Fi,Cr),ot)}function __(ze){var Cr=hr(),ot=0;switch(Qe()){case 113:break;case 119:ot|=1;break;case 85:ot|=2;break;default:e.Debug.fail()}Tt();var xt;if(Qe()===162&&fn(Z_))xt=Bt();else{var Gt=Yt();ye(ze),xt=oo(8,ze?d_:Df),ye(Gt)}return jr(Ze.createVariableDeclarationList(xt,ot),Cr)}function Z_(){return ds()&&Tt()===21}function rf(ze,Cr,ot,xt){var Gt=__(!1);Ko();var gn=Ze.createVariableStatement(xt,Gt);return gn.illegalDecorators=ot,Yr(jr(gn,ze),Cr)}function xf(ze,Cr,ot,xt){var Gt=Bn(),gn=e.modifiersToFlags(xt);vn(98);var ci=ca(41),Fi=gn&1024?vp():ro(),Oi=ci?1:0,Ki=gn&512?2:0,Ma=ga();gn&1&&dr(!0);var Qo=Nr(Oi|Ki),wo=ya(58,!1),ss=Es(Oi|Ki,e.Diagnostics.or_expected);dr(Gt);var Cs=Ze.createFunctionDeclaration(xt,ci,Fi,Ma,Qo,wo,ss);return Cs.illegalDecorators=ot,Yr(jr(Cs,ze),Cr)}function em(){if(Qe()===135)return vn(135);if(Qe()===10&&fn(Tt)===20)return Ri(function(){var ze=$s();return ze.text==="constructor"?ze:void 0})}function Ug(ze,Cr,ot,xt){return Ri(function(){if(em()){var Gt=ga(),gn=Nr(0),ci=ya(58,!1),Fi=Es(0,e.Diagnostics.or_expected),Oi=Ze.createConstructorDeclaration(xt,gn,Fi);return Oi.illegalDecorators=ot,Oi.typeParameters=Gt,Oi.type=ci,Yr(jr(Oi,ze),Cr)}})}function zu(ze,Cr,ot,xt,Gt,gn,ci,Fi,Oi){var Ki=Gt?1:0,Ma=e.some(xt,e.isAsyncModifier)?2:0,Qo=ga(),wo=Nr(Ki|Ma),ss=ya(58,!1),Cs=Es(Ki|Ma,Oi),dc=Ze.createMethodDeclaration(Cp(ot,xt),Gt,gn,ci,Qo,wo,ss,Cs);return dc.exclamationToken=Fi,Yr(jr(dc,ze),Cr)}function $m(ze,Cr,ot,xt,Gt,gn){var ci=!gn&&!L.hasPrecedingLineBreak()?ca(53):void 0,Fi=Hp(),Oi=ar(45056,_p);Ka(Gt,Fi,Oi);var Ki=Ze.createPropertyDeclaration(Cp(ot,xt),Gt,gn||ci,Fi,Oi);return Yr(jr(Ki,ze),Cr)}function Tf(ze,Cr,ot,xt){var Gt=ca(41),gn=Er(),ci=ca(57);return Gt||Qe()===20||Qe()===29?zu(ze,Cr,ot,xt,Gt,gn,ci,void 0,e.Diagnostics.or_expected):$m(ze,Cr,ot,xt,gn,ci)}function na(ze,Cr,ot,xt,Gt,gn){var ci=Er(),Fi=ga(),Oi=Nr(0),Ki=ya(58,!1),Ma=Es(gn),Qo=Gt===174?Ze.createGetAccessorDeclaration(Cp(ot,xt),ci,Oi,Ki,Ma):Ze.createSetAccessorDeclaration(Cp(ot,xt),ci,Oi,Ma);return Qo.typeParameters=Fi,e.isSetAccessorDeclaration(Qo)&&(Qo.type=Ki),Yr(jr(Qo,ze),Cr)}function Tp(){var ze;if(Qe()===59)return!0;for(;e.isModifierKind(Qe());){if(ze=Qe(),e.isClassMemberModifier(ze))return!0;Tt()}if(Qe()===41||(Ut()&&(ze=Qe(),Tt()),Qe()===22))return!0;if(ze!==void 0){if(!e.isKeyword(ze)||ze===151||ze===137)return!0;switch(Qe()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return gs()}}return!1}function Hn(ze,Cr,ot,xt){Oo(124);var Gt=rm(),gn=Yr(jr(Ze.createClassStaticBlockDeclaration(Gt),ze),Cr);return gn.illegalDecorators=ot,gn.modifiers=xt,gn}function rm(){var ze=ht(),Cr=Bn();Ie(!1),dr(!0);var ot=yp(!1);return Ie(ze),dr(Cr),ot}function m_(){if(Bn()&&Qe()===133){var ze=hr(),Cr=Ye(e.Diagnostics.Expression_expected);Tt();var ot=Wn(ze,Cr,!0);return zs(ze,ot)}return kd()}function g_(){var ze=hr();if(En(59)){var Cr=rt(m_);return jr(Ze.createDecorator(Cr),ze)}}function Ep(){for(var ze=hr(),Cr,ot;ot=g_();)Cr=e.append(Cr,ot);return Cr&&kr(Cr,ze)}function Hm(ze,Cr,ot){var xt=hr(),Gt=Qe();if(Qe()===85&&ze){if(!Ri(Cn))return}else{if(Cr&&Qe()===124&&fn(il))return;if(ot&&Qe()===124)return;if(!Ia())return}return jr(Ze.createToken(Gt),xt)}function Cp(ze,Cr){if(!ze)return Cr;if(!Cr)return ze;var ot=Ze.createNodeArray(e.concatenate(ze,Cr));return e.setTextRangePosEnd(ot,ze.pos,Cr.end),ot}function Wu(ze,Cr){for(var ot=hr(),xt,Gt,gn=!1;Gt=Hm(ze,Cr,gn);)Gt.kind===124&&(gn=!0),xt=e.append(xt,Gt);return xt&&kr(xt,ot)}function id(){var ze;if(Qe()===132){var Cr=hr();Tt();var ot=jr(Ze.createToken(132),Cr);ze=kr([ot],Cr)}return ze}function tm(){var ze=hr();if(Qe()===26)return Tt(),jr(Ze.createSemicolonClassElement(),ze);var Cr=at(),ot=Ep(),xt=Wu(!0,!0);if(Qe()===124&&fn(il))return Hn(ze,Cr,ot,xt);if(kn(137))return na(ze,Cr,ot,xt,174,0);if(kn(151))return na(ze,Cr,ot,xt,175,0);if(Qe()===135||Qe()===10){var Gt=Ug(ze,Cr,ot,xt);if(Gt)return Gt}if(Di())return Aa(ze,Cr,ot,xt);if(e.tokenIsIdentifierOrKeyword(Qe())||Qe()===10||Qe()===8||Qe()===41||Qe()===22){var gn=e.some(xt,Rl);if(gn){for(var ci=0,Fi=xt;ci<Fi.length;ci++){var Oi=Fi[ci];Oi.flags|=16777216}return Sr(16777216,function(){return Tf(ze,Cr,ot,xt)})}else return Tf(ze,Cr,ot,xt)}if(ot||xt){var Ki=Nn(79,!0,e.Diagnostics.Declaration_expected);return $m(ze,Cr,ot,xt,Ki,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function fl(){return Gm(hr(),at(),void 0,void 0,228)}function jf(ze,Cr,ot,xt){return Gm(ze,Cr,ot,xt,260)}function Gm(ze,Cr,ot,xt,Gt){var gn=Bn();vn(84);var ci=Km(),Fi=ga();e.some(xt,e.isExportModifier)&&dr(!0);var Oi=Dl(),Ki;vn(18)?(Ki=oi(),vn(19)):Ki=Bt(),dr(gn);var Ma=Gt===260?Ze.createClassDeclaration(Cp(ot,xt),ci,Fi,Oi,Ki):Ze.createClassExpression(Cp(ot,xt),ci,Fi,Oi,Ki);return Yr(jr(Ma,ze),Cr)}function Km(){return ma()&&!ad()?ka(ma()):void 0}function ad(){return Qe()===117&&fn(yu)}function Dl(){if(tn())return fc(22,V)}function V(){var ze=hr(),Cr=Qe();e.Debug.assert(Cr===94||Cr===117),Tt();var ot=oo(7,ir);return jr(Ze.createHeritageClause(Cr,ot),ze)}function ir(){var ze=hr(),Cr=kd();if(Cr.kind===230)return Cr;var ot=bt();return jr(Ze.createExpressionWithTypeArguments(Cr,ot),ze)}function bt(){return Qe()===29?ua(20,ms,29,31):void 0}function tn(){return Qe()===94||Qe()===117}function oi(){return fc(5,tm)}function Ii(ze,Cr,ot,xt){vn(118);var Gt=Ye(),gn=ga(),ci=Dl(),Fi=Xs(),Oi=Ze.createInterfaceDeclaration(xt,Gt,gn,ci,Fi);return Oi.illegalDecorators=ot,Yr(jr(Oi,ze),Cr)}function Hi(ze,Cr,ot,xt){vn(154);var Gt=Ye(),gn=ga();vn(63);var ci=Qe()===139&&Ri(Yl)||ms();Ko();var Fi=Ze.createTypeAliasDeclaration(xt,Gt,gn,ci);return Fi.illegalDecorators=ot,Yr(jr(Fi,ze),Cr)}function di(){var ze=hr(),Cr=at(),ot=Er(),xt=Or(_p);return Yr(jr(Ze.createEnumMember(ot,xt),ze),Cr)}function io(ze,Cr,ot,xt){vn(92);var Gt=Ye(),gn;vn(18)?(gn=pt(function(){return oo(6,di)}),vn(19)):gn=Bt();var ci=Ze.createEnumDeclaration(xt,Gt,gn);return ci.illegalDecorators=ot,Yr(jr(ci,ze),Cr)}function fa(){var ze=hr(),Cr;return vn(18)?(Cr=fc(1,ic),vn(19)):Cr=Bt(),jr(Ze.createModuleBlock(Cr),ze)}function pa(ze,Cr,ot,xt,Gt){var gn=Gt&16,ci=Ye(),Fi=En(24)?pa(hr(),!1,void 0,void 0,4|gn):fa(),Oi=Ze.createModuleDeclaration(xt,ci,Fi,Gt);return Oi.illegalDecorators=ot,Yr(jr(Oi,ze),Cr)}function jc(ze,Cr,ot,xt){var Gt=0,gn;Qe()===159?(gn=Ye(),Gt|=1024):(gn=$s(),gn.text=xi(gn.text));var ci;Qe()===18?ci=fa():Ko();var Fi=Ze.createModuleDeclaration(xt,gn,ci,Gt);return Fi.illegalDecorators=ot,Yr(jr(Fi,ze),Cr)}function pl(ze,Cr,ot,xt){var Gt=0;if(Qe()===159)return jc(ze,Cr,ot,xt);if(En(143))Gt|=16;else if(vn(142),Qe()===10)return jc(ze,Cr,ot,xt);return pa(ze,Cr,ot,xt,Gt)}function Hs(){return Qe()===147&&fn(qu)}function qu(){return Tt()===20}function il(){return Tt()===18}function jl(){return Tt()===43}function Jf(ze,Cr,ot,xt){vn(128),vn(143);var Gt=Ye();Ko();var gn=Ze.createNamespaceExportDeclaration(Gt);return gn.illegalDecorators=ot,gn.modifiers=xt,Yr(jr(gn,ze),Cr)}function Qm(ze,Cr,ot,xt){vn(100);var Gt=L.getStartPos(),gn;ra()&&(gn=Ye());var ci=!1;if(Qe()!==158&&(gn==null?void 0:gn.escapedText)==="type"&&(ra()||nm())&&(ci=!0,gn=ra()?Ye():void 0),gn&&!im())return Xm(ze,Cr,ot,xt,gn,ci);var Fi;(gn||Qe()===41||Qe()===18)&&(Fi=Ef(gn,Gt,ci),vn(158));var Oi=Ym(),Ki;Qe()===130&&!L.hasPrecedingLineBreak()&&(Ki=Uf()),Ko();var Ma=Ze.createImportDeclaration(xt,Fi,Oi,Ki);return Ma.illegalDecorators=ot,Yr(jr(Ma,ze),Cr)}function Vg(){var ze=hr(),Cr=e.tokenIsIdentifierOrKeyword(Qe())?lt():wu(10);vn(58);var ot=au(!0);return jr(Ze.createAssertEntry(Cr,ot),ze)}function Uf(ze){var Cr=hr();ze||vn(130);var ot=L.getTokenPos();if(vn(18)){var xt=L.hasPrecedingLineBreak(),Gt=oo(24,Vg,!0);if(!vn(19)){var gn=e.lastOrUndefined(Fr);gn&&gn.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(gn,e.createDetachedDiagnostic(tt,ot,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return jr(Ze.createAssertClause(Gt,xt),Cr)}else{var Gt=kr([],hr(),void 0,!1);return jr(Ze.createAssertClause(Gt,!1),Cr)}}function nm(){return Qe()===41||Qe()===18}function im(){return Qe()===27||Qe()===158}function Xm(ze,Cr,ot,xt,Gt,gn){vn(63);var ci=dl();Ko();var Fi=Ze.createImportEqualsDeclaration(xt,gn,Gt,ci);Fi.illegalDecorators=ot;var Oi=Yr(jr(Fi,ze),Cr);return Oi}function Ef(ze,Cr,ot){var xt;return(!ze||En(27))&&(xt=Qe()===41?Th():zg(272)),jr(Ze.createImportClause(ot,ze,xt),Cr)}function dl(){return Hs()?am():_o(!1)}function am(){var ze=hr();vn(147),vn(20);var Cr=Ym();return vn(21),jr(Ze.createExternalModuleReference(Cr),ze)}function Ym(){if(Qe()===10){var ze=$s();return ze.text=xi(ze.text),ze}else return Sc()}function Th(){var ze=hr();vn(41),vn(128);var Cr=Ye();return jr(Ze.createNamespaceImport(Cr),ze)}function zg(ze){var Cr=hr(),ot=ze===272?Ze.createNamedImports(ua(23,Tv,18,19)):Ze.createNamedExports(ua(23,om,18,19));return jr(ot,Cr)}function om(){var ze=at();return Yr(Eh(278),ze)}function Tv(){return Eh(273)}function Eh(ze){var Cr=hr(),ot=e.isKeyword(Qe())&&!ra(),xt=L.getTokenPos(),Gt=L.getTextPos(),gn=!1,ci,Fi=!0,Oi=lt();if(Oi.escapedText==="type")if(Qe()===128){var Ki=lt();if(Qe()===128){var Ma=lt();e.tokenIsIdentifierOrKeyword(Qe())?(gn=!0,ci=Ki,Oi=wo(),Fi=!1):(ci=Oi,Oi=Ma,Fi=!1)}else e.tokenIsIdentifierOrKeyword(Qe())?(ci=Oi,Fi=!1,Oi=wo()):(gn=!0,Oi=Ki)}else e.tokenIsIdentifierOrKeyword(Qe())&&(gn=!0,Oi=wo());Fi&&Qe()===128&&(ci=Oi,vn(128),Oi=wo()),ze===273&&ot&&An(xt,Gt,e.Diagnostics.Identifier_expected);var Qo=ze===273?Ze.createImportSpecifier(gn,ci,Oi):Ze.createExportSpecifier(gn,ci,Oi);return jr(Qo,Cr);function wo(){return ot=e.isKeyword(Qe())&&!ra(),xt=L.getTokenPos(),Gt=L.getTextPos(),lt()}}function Ch(ze){return jr(Ze.createNamespaceExport(lt()),ze)}function Zm(ze,Cr,ot,xt){var Gt=Bn();dr(!0);var gn,ci,Fi,Oi=En(154),Ki=hr();En(41)?(En(128)&&(gn=Ch(Ki)),vn(158),ci=Ym()):(gn=zg(276),(Qe()===158||Qe()===10&&!L.hasPrecedingLineBreak())&&(vn(158),ci=Ym())),ci&&Qe()===130&&!L.hasPrecedingLineBreak()&&(Fi=Uf()),Ko(),dr(Gt);var Ma=Ze.createExportDeclaration(xt,Oi,gn,ci,Fi);return Ma.illegalDecorators=ot,Yr(jr(Ma,ze),Cr)}function kh(ze,Cr,ot,xt){var Gt=Bn();dr(!0);var gn;En(63)?gn=!0:vn(88);var ci=au(!0);Ko(),dr(Gt);var Fi=Ze.createExportAssignment(xt,gn,ci);return Fi.illegalDecorators=ot,Yr(jr(Fi,ze),Cr)}var Wg;(function(ze){ze[ze.SourceElements=0]="SourceElements",ze[ze.BlockStatements=1]="BlockStatements",ze[ze.SwitchClauses=2]="SwitchClauses",ze[ze.SwitchClauseStatements=3]="SwitchClauseStatements",ze[ze.TypeMembers=4]="TypeMembers",ze[ze.ClassMembers=5]="ClassMembers",ze[ze.EnumMembers=6]="EnumMembers",ze[ze.HeritageClauseElement=7]="HeritageClauseElement",ze[ze.VariableDeclarations=8]="VariableDeclarations",ze[ze.ObjectBindingElements=9]="ObjectBindingElements",ze[ze.ArrayBindingElements=10]="ArrayBindingElements",ze[ze.ArgumentExpressions=11]="ArgumentExpressions",ze[ze.ObjectLiteralMembers=12]="ObjectLiteralMembers",ze[ze.JsxAttributes=13]="JsxAttributes",ze[ze.JsxChildren=14]="JsxChildren",ze[ze.ArrayLiteralMembers=15]="ArrayLiteralMembers",ze[ze.Parameters=16]="Parameters",ze[ze.JSDocParameters=17]="JSDocParameters",ze[ze.RestProperties=18]="RestProperties",ze[ze.TypeParameters=19]="TypeParameters",ze[ze.TypeArguments=20]="TypeArguments",ze[ze.TupleElementTypes=21]="TupleElementTypes",ze[ze.HeritageClauses=22]="HeritageClauses",ze[ze.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ze[ze.AssertEntries=24]="AssertEntries",ze[ze.Count=25]="Count"})(Wg||(Wg={}));var Ev;(function(ze){ze[ze.False=0]="False",ze[ze.True=1]="True",ze[ze.Unknown=2]="Unknown"})(Ev||(Ev={}));var Cv;(function(ze){function Cr(Ki,Ma,Qo){Me("file.js",Ki,99,void 0,1),L.setText(Ki,Ma,Qo),yt=L.scan();var wo=ot(),ss=Ir("file.js",99,1,!1,[],Ze.createToken(1),0,e.noop),Cs=e.attachFileToDiagnostics(Fr,ss);return _t&&(ss.jsDocDiagnostics=e.attachFileToDiagnostics(_t,ss)),Ke(),wo?{jsDocTypeExpression:wo,diagnostics:Cs}:void 0}ze.parseJSDocTypeExpressionForTests=Cr;function ot(Ki){var Ma=hr(),Qo=(Ki?En:vn)(18),wo=Sr(8388608,Qn);(!Ki||Qo)&&rs(19);var ss=Ze.createJSDocTypeExpression(wo);return en(ss),jr(ss,Ma)}ze.parseJSDocTypeExpression=ot;function xt(){for(var Ki=hr(),Ma=En(18),Qo=hr(),wo=_o(!1);Qe()===80;)xn(),gt(),wo=jr(Ze.createJSDocMemberName(wo,Ye()),Qo);Ma&&rs(19);var ss=Ze.createJSDocNameReference(wo);return en(ss),jr(ss,Ki)}ze.parseJSDocNameReference=xt;function Gt(Ki,Ma,Qo){Me("",Ki,99,void 0,1);var wo=Sr(8388608,function(){return Oi(Ma,Qo)}),ss={languageVariant:0,text:Ki},Cs=e.attachFileToDiagnostics(Fr,ss);return Ke(),wo?{jsDoc:wo,diagnostics:Cs}:void 0}ze.parseIsolatedJSDocComment=Gt;function gn(Ki,Ma,Qo){var wo=yt,ss=Fr.length,Cs=Qr,dc=Sr(8388608,function(){return Oi(Ma,Qo)});return e.setParent(dc,Ki),xr&262144&&(_t||(_t=[]),_t.push.apply(_t,Fr)),yt=wo,Fr.length=ss,Qr=Cs,dc}ze.parseJSDocComment=gn;var ci;(function(Ki){Ki[Ki.BeginningOfLine=0]="BeginningOfLine",Ki[Ki.SawAsterisk=1]="SawAsterisk",Ki[Ki.SavingComments=2]="SavingComments",Ki[Ki.SavingBackticks=3]="SavingBackticks"})(ci||(ci={}));var Fi;(function(Ki){Ki[Ki.Property=1]="Property",Ki[Ki.Parameter=2]="Parameter",Ki[Ki.CallbackParameter=4]="CallbackParameter"})(Fi||(Fi={}));function Oi(Ki,Ma){Ki===void 0&&(Ki=0);var Qo=or,wo=Ma===void 0?Qo.length:Ki+Ma;if(Ma=wo-Ki,e.Debug.assert(Ki>=0),e.Debug.assert(Ki<=wo),e.Debug.assert(wo<=Qo.length),!te(Qo,Ki))return;var ss,Cs,dc,wc,_l,hs=[],cu=[];return L.scanRange(Ki+3,Ma-5,function(){var mn=1,$i,Li=Ki-(Qo.lastIndexOf(`
`,Ki)+1)+4;function sa(hu){$i||($i=Li),hs.push(hu),Li+=hu.length}for(gt();cm(5););cm(4)&&(mn=0,Li=0);e:for(;;){switch(Qe()){case 59:mn===0||mn===1?(Vf(hs),_l||(_l=hr()),Rd(ke(Li)),mn=0,$i=void 0):sa(L.getTokenText());break;case 4:hs.push(L.getTokenText()),mn=0,Li=0;break;case 41:var Oa=L.getTokenText();mn===1||mn===2?(mn=2,sa(Oa)):(mn=1,Li+=Oa.length);break;case 5:var ko=L.getTokenText();mn===2?hs.push(ko):$i!==void 0&&Li+ko.length>$i&&hs.push(ko.slice($i-Li)),Li+=ko.length;break;case 1:break e;case 18:mn=2;var Ns=L.getStartPos(),mu=L.getTextPos()-1,gu=hi(mu);if(gu){wc||ml(hs),cu.push(jr(Ze.createJSDocText(hs.join("")),wc??Ki,Ns)),cu.push(gu),hs=[],wc=L.getTextPos();break}default:mn=2,sa(L.getTokenText());break}gt()}Vf(hs),cu.length&&hs.length&&cu.push(jr(Ze.createJSDocText(hs.join("")),wc??Ki,_l)),cu.length&&ss&&e.Debug.assertIsDefined(_l,"having parsed tags implies that the end of the comment span should be set");var xl=ss&&kr(ss,Cs,dc);return jr(Ze.createJSDocComment(cu.length?kr(cu,Ki,_l):hs.length?hs.join(""):void 0,xl),Ki,wo)});function ml(mn){for(;mn.length&&(mn[0]===`
`||mn[0]==="\r");)mn.shift()}function Vf(mn){for(;mn.length&&mn[mn.length-1].trim()==="";)mn.pop()}function zf(){for(;;){if(gt(),Qe()===1)return!0;if(!(Qe()===5||Qe()===4))return!1}}function x(){if(!((Qe()===5||Qe()===4)&&fn(zf)))for(;Qe()===5||Qe()===4;)gt()}function se(){if((Qe()===5||Qe()===4)&&fn(zf))return"";for(var mn=L.hasPrecedingLineBreak(),$i=!1,Li="";mn&&Qe()===41||Qe()===5||Qe()===4;)Li+=L.getTokenText(),Qe()===4?(mn=!0,$i=!0,Li=""):Qe()===41&&(mn=!1),gt();return $i?Li:""}function ke(mn){e.Debug.assert(Qe()===59);var $i=L.getTokenPos();gt();var Li=um(void 0),sa=se(),Oa;switch(Li.escapedText){case"author":Oa=qg($i,Li,mn,sa);break;case"implements":Oa=Iy($i,Li,mn,sa);break;case"augments":case"extends":Oa=sd($i,Li,mn,sa);break;case"class":case"constructor":Oa=Jc($i,Ze.createJSDocClassTag,Li,mn,sa);break;case"public":Oa=Jc($i,Ze.createJSDocPublicTag,Li,mn,sa);break;case"private":Oa=Jc($i,Ze.createJSDocPrivateTag,Li,mn,sa);break;case"protected":Oa=Jc($i,Ze.createJSDocProtectedTag,Li,mn,sa);break;case"readonly":Oa=Jc($i,Ze.createJSDocReadonlyTag,Li,mn,sa);break;case"override":Oa=Jc($i,Ze.createJSDocOverrideTag,Li,mn,sa);break;case"deprecated":Nt=!0,Oa=Jc($i,Ze.createJSDocDeprecatedTag,Li,mn,sa);break;case"this":Oa=z2($i,Li,mn,sa);break;case"enum":Oa=G1($i,Li,mn,sa);break;case"arg":case"argument":case"param":return Ny($i,Li,2,mn);case"return":case"returns":Oa=V2($i,Li,mn,sa);break;case"template":Oa=Nv($i,Li,mn,sa);break;case"type":Oa=kv($i,Li,mn,sa);break;case"typedef":Oa=W2($i,Li,mn,sa);break;case"callback":Oa=$2($i,Li,mn,sa);break;case"see":Oa=Av($i,Li,mn,sa);break;default:Oa=Tu($i,Li,mn,sa);break}return Oa}function pr(mn,$i,Li,sa){return sa||(Li+=$i-mn),st(Li,sa.slice(Li))}function st(mn,$i){var Li=hr(),sa=[],Oa=[],ko,Ns=0,mu=!0,gu;function xl(Wf){gu||(gu=mn),sa.push(Wf),mn+=Wf.length}$i!==void 0&&($i!==""&&xl($i),Ns=1);var hu=Qe();e:for(;;){switch(hu){case 4:Ns=0,sa.push(L.getTokenText()),mn=0;break;case 59:if(Ns===3||Ns===2&&(!mu||fn(bn))){sa.push(L.getTokenText());break}L.setTextPos(L.getTextPos()-1);case 1:break e;case 5:if(Ns===2||Ns===3)xl(L.getTokenText());else{var Kc=L.getTokenText();gu!==void 0&&mn+Kc.length>gu&&sa.push(Kc.slice(gu-mn)),mn+=Kc.length}break;case 18:Ns=2;var h_=L.getStartPos(),jd=L.getTextPos()-1,v_=hi(jd);v_?(Oa.push(jr(Ze.createJSDocText(sa.join("")),ko??Li,h_)),Oa.push(v_),sa=[],ko=L.getTextPos()):xl(L.getTokenText());break;case 61:Ns===3?Ns=2:Ns=3,xl(L.getTokenText());break;case 41:if(Ns===0){Ns=1,mn+=1;break}default:Ns!==3&&(Ns=2),xl(L.getTokenText());break}mu=Qe()===5,hu=gt()}if(ml(sa),Vf(sa),Oa.length)return sa.length&&Oa.push(jr(Ze.createJSDocText(sa.join("")),ko??Li)),kr(Oa,Li,L.getTextPos());if(sa.length)return sa.join("")}function bn(){var mn=gt();return mn===5||mn===4}function hi(mn){var $i=Ri(_n);if($i){gt(),x();var Li=hr(),sa=e.tokenIsIdentifierOrKeyword(Qe())?_o(!0):void 0;if(sa)for(;Qe()===80;)xn(),gt(),sa=jr(Ze.createJSDocMemberName(sa,Ye()),Li);for(var Oa=[];Qe()!==19&&Qe()!==4&&Qe()!==1;)Oa.push(L.getTokenText()),gt();var ko=$i==="link"?Ze.createJSDocLink:$i==="linkcode"?Ze.createJSDocLinkCode:Ze.createJSDocLinkPlain;return jr(ko(sa,Oa.join("")),mn,L.getTextPos())}}function _n(){if(se(),Qe()===18&&gt()===59&&e.tokenIsIdentifierOrKeyword(gt())){var mn=L.getTokenValue();if(Rs(mn))return mn}}function Rs(mn){return mn==="link"||mn==="linkcode"||mn==="linkplain"}function Tu(mn,$i,Li,sa){return jr(Ze.createJSDocUnknownTag($i,pr(mn,hr(),Li,sa)),mn)}function Rd(mn){mn&&(ss?ss.push(mn):(ss=[mn],Cs=mn.pos),dc=mn.end)}function $u(){return se(),Qe()===18?ot():void 0}function Ah(){var mn=cm(22);mn&&x();var $i=cm(61),Li=Bd();return $i&&Ws(61),mn&&(x(),ca(63)&&Sc(),vn(23)),{name:Li,isBracketed:mn}}function kp(mn){switch(mn.kind){case 149:return!0;case 185:return kp(mn.elementType);default:return e.isTypeReferenceNode(mn)&&e.isIdentifier(mn.typeName)&&mn.typeName.escapedText==="Object"&&!mn.typeArguments}}function Ny(mn,$i,Li,sa){var Oa=$u(),ko=!Oa;se();var Ns=Ah(),mu=Ns.name,gu=Ns.isBracketed,xl=se();ko&&!fn(_n)&&(Oa=$u());var hu=pr(mn,hr(),sa,xl),Kc=Li!==4&&Ap(Oa,mu,Li,sa);Kc&&(Oa=Kc,ko=!0);var h_=Li===1?Ze.createJSDocPropertyTag($i,mu,gu,Oa,ko,hu):Ze.createJSDocParameterTag($i,mu,gu,Oa,ko,hu);return jr(h_,mn)}function Ap(mn,$i,Li,sa){if(mn&&kp(mn.type)){for(var Oa=hr(),ko=void 0,Ns=void 0;ko=Ri(function(){return Ph(Li,sa,$i)});)(ko.kind===343||ko.kind===350)&&(Ns=e.append(Ns,ko));if(Ns){var mu=jr(Ze.createJSDocTypeLiteral(Ns,mn.type.kind===185),Oa);return jr(Ze.createJSDocTypeExpression(mu),Oa)}}}function V2(mn,$i,Li,sa){e.some(ss,e.isJSDocReturnTag)&&An($i.pos,L.getTokenPos(),e.Diagnostics._0_tag_already_specified,$i.escapedText);var Oa=$u();return jr(Ze.createJSDocReturnTag($i,Oa,pr(mn,hr(),Li,sa)),mn)}function kv(mn,$i,Li,sa){e.some(ss,e.isJSDocTypeTag)&&An($i.pos,L.getTokenPos(),e.Diagnostics._0_tag_already_specified,$i.escapedText);var Oa=ot(!0),ko=Li!==void 0&&sa!==void 0?pr(mn,hr(),Li,sa):void 0;return jr(Ze.createJSDocTypeTag($i,Oa,ko),mn)}function Av(mn,$i,Li,sa){var Oa=Qe()===22||fn(function(){return gt()===59&&e.tokenIsIdentifierOrKeyword(gt())&&Rs(L.getTokenValue())}),ko=Oa?void 0:xt(),Ns=Li!==void 0&&sa!==void 0?pr(mn,hr(),Li,sa):void 0;return jr(Ze.createJSDocSeeTag($i,ko,Ns),mn)}function qg(mn,$i,Li,sa){var Oa=hr(),ko=od(),Ns=L.getStartPos(),mu=pr(mn,Ns,Li,sa);mu||(Ns=L.getStartPos());var gu=typeof mu!="string"?kr(e.concatenate([jr(ko,Oa,Ns)],mu),Oa):ko.text+mu;return jr(Ze.createJSDocAuthorTag($i,gu),mn)}function od(){for(var mn=[],$i=!1,Li=L.getToken();Li!==1&&Li!==4;){if(Li===29)$i=!0;else{if(Li===59&&!$i)break;if(Li===31&&$i){mn.push(L.getTokenText()),L.setTextPos(L.getTokenPos()+1);break}}mn.push(L.getTokenText()),Li=gt()}return Ze.createJSDocText(mn.join(""))}function Iy(mn,$i,Li,sa){var Oa=$1();return jr(Ze.createJSDocImplementsTag($i,Oa,pr(mn,hr(),Li,sa)),mn)}function sd(mn,$i,Li,sa){var Oa=$1();return jr(Ze.createJSDocAugmentsTag($i,Oa,pr(mn,hr(),Li,sa)),mn)}function $1(){var mn=En(18),$i=hr(),Li=H1(),sa=bt(),Oa=Ze.createExpressionWithTypeArguments(Li,sa),ko=jr(Oa,$i);return mn&&vn(19),ko}function H1(){for(var mn=hr(),$i=um();En(24);){var Li=um();$i=jr(Ze.createPropertyAccessExpression($i,Li),mn)}return $i}function Jc(mn,$i,Li,sa,Oa){return jr($i(Li,pr(mn,hr(),sa,Oa)),mn)}function z2(mn,$i,Li,sa){var Oa=ot(!0);return x(),jr(Ze.createJSDocThisTag($i,Oa,pr(mn,hr(),Li,sa)),mn)}function G1(mn,$i,Li,sa){var Oa=ot(!0);return x(),jr(Ze.createJSDocEnumTag($i,Oa,pr(mn,hr(),Li,sa)),mn)}function W2(mn,$i,Li,sa){var Oa,ko=$u();se();var Ns=sm();x();var mu=st(Li),gu;if(!ko||kp(ko.type)){for(var xl=void 0,hu=void 0,Kc=void 0,h_=!1;xl=Ri(function(){return Oy(Li)});)if(h_=!0,xl.kind===346)if(hu){var jd=yn(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);jd&&e.addRelatedInfo(jd,e.createDetachedDiagnostic(tt,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else hu=xl;else Kc=e.append(Kc,xl);if(h_){var v_=ko&&ko.type.kind===185,Wf=Ze.createJSDocTypeLiteral(Kc,v_);ko=hu&&hu.typeExpression&&!kp(hu.typeExpression.type)?hu.typeExpression:jr(Wf,mn),gu=ko.end}}gu=gu||mu!==void 0?hr():((Oa=Ns??ko)!==null&&Oa!==void 0?Oa:$i).end,mu||(mu=pr(mn,gu,Li,sa));var My=Ze.createJSDocTypedefTag($i,ko,Ns,mu);return jr(My,mn,gu)}function sm(mn){var $i=L.getTokenPos();if(e.tokenIsIdentifierOrKeyword(Qe())){var Li=um();if(En(24)){var sa=sm(!0),Oa=Ze.createModuleDeclaration(void 0,Li,sa,mn?4:void 0);return jr(Oa,$i)}return mn&&(Li.isInJSDocNamespace=!0),Li}}function q2(mn){for(var $i=hr(),Li,sa;Li=Ri(function(){return Ph(4,mn)});)sa=e.append(sa,Li);return kr(sa||[],$i)}function $2(mn,$i,Li,sa){var Oa=sm();x();var ko=st(Li),Ns=q2(Li),mu=Ri(function(){if(cm(59)){var hu=ke(Li);if(hu&&hu.kind===344)return hu}}),gu=jr(Ze.createJSDocSignature(void 0,Ns,mu),mn);ko||(ko=pr(mn,hr(),Li,sa));var xl=ko!==void 0?hr():gu.end;return jr(Ze.createJSDocCallbackTag($i,gu,Oa,ko),mn,xl)}function Ou(mn,$i){for(;!e.isIdentifier(mn)||!e.isIdentifier($i);)if(!e.isIdentifier(mn)&&!e.isIdentifier($i)&&mn.right.escapedText===$i.right.escapedText)mn=mn.left,$i=$i.left;else return!1;return mn.escapedText===$i.escapedText}function Oy(mn){return Ph(1,mn)}function Ph(mn,$i,Li){for(var sa=!0,Oa=!1;;)switch(gt()){case 59:if(sa){var ko=K1(mn,$i);return ko&&(ko.kind===343||ko.kind===350)&&mn!==4&&Li&&(e.isIdentifier(ko.name)||!Ou(Li,ko.name.left))?!1:ko}Oa=!1;break;case 4:sa=!0,Oa=!1;break;case 41:Oa&&(sa=!1),Oa=!0;break;case 79:sa=!1;break;case 1:return!1}}function K1(mn,$i){e.Debug.assert(Qe()===59);var Li=L.getStartPos();gt();var sa=um();x();var Oa;switch(sa.escapedText){case"type":return mn===1&&kv(Li,sa);case"prop":case"property":Oa=1;break;case"arg":case"argument":case"param":Oa=6;break;default:return!1}return mn&Oa?Ny(Li,sa,mn,$i):!1}function Pv(){var mn=hr(),$i=cm(22);$i&&x();var Li=um(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),sa;if($i&&(x(),vn(63),sa=Sr(8388608,Qn),vn(23)),!e.nodeIsMissing(Li))return jr(Ze.createTypeParameterDeclaration(void 0,Li,void 0,sa),mn)}function wv(){var mn=hr(),$i=[];do{x();var Li=Pv();Li!==void 0&&$i.push(Li),se()}while(cm(27));return kr($i,mn)}function Nv(mn,$i,Li,sa){var Oa=Qe()===18?ot():void 0,ko=wv();return jr(Ze.createJSDocTemplateTag($i,Oa,ko,pr(mn,hr(),Li,sa)),mn)}function cm(mn){return Qe()===mn?(gt(),!0):!1}function Bd(){var mn=um();for(En(22)&&vn(23);En(24);){var $i=um();En(22)&&vn(23),mn=xs(mn,$i)}return mn}function um(mn){if(!e.tokenIsIdentifierOrKeyword(Qe()))return Nn(79,!mn,mn||e.Diagnostics.Identifier_expected);cr++;var $i=L.getTokenPos(),Li=L.getTextPos(),sa=Qe(),Oa=xi(L.getTokenValue()),ko=jr(Ze.createIdentifier(Oa,void 0,sa),$i,Li);return gt(),ko}}})(Cv=xe.JSDocParser||(xe.JSDocParser={}))})(G||(G={}));var ae;(function(xe){function L(or,qr,Rr,zr){if(zr=zr||e.Debug.shouldAssert(2),Ze(or,qr,Rr,zr),e.textChangeRangeIsUnchanged(Rr))return or;if(or.statements.length===0)return G.parseSourceFile(or.fileName,qr,or.languageVersion,void 0,!0,or.scriptKind,or.setExternalModuleIndicator);var Fr=or;e.Debug.assert(!Fr.hasBeenIncrementallyParsed),Fr.hasBeenIncrementallyParsed=!0,G.fixupParentReferences(Fr);var _t=or.text,Ct=tt(or),yt=wr(or,Rr);Ze(or,qr,yt,zr),e.Debug.assert(yt.span.start<=Rr.span.start),e.Debug.assert(e.textSpanEnd(yt.span)===e.textSpanEnd(Rr.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(yt))===e.textSpanEnd(e.textChangeRangeNewSpan(Rr)));var Fe=e.textChangeRangeNewSpan(yt).length-yt.span.length;Hr(Fr,yt.span.start,e.textSpanEnd(yt.span),e.textSpanEnd(e.textChangeRangeNewSpan(yt)),Fe,_t,qr,zr);var vr=G.parseSourceFile(or.fileName,qr,or.languageVersion,Ct,!0,or.scriptKind,or.setExternalModuleIndicator);return vr.commentDirectives=ue(or.commentDirectives,vr.commentDirectives,yt.span.start,e.textSpanEnd(yt.span),Fe,_t,qr,zr),vr.impliedNodeFormat=or.impliedNodeFormat,vr}xe.updateSourceFile=L;function ue(or,qr,Rr,zr,Fr,_t,Ct,yt){if(!or)return qr;for(var Fe,vr=!1,Le=0,cr=or;Le<cr.length;Le++){var $r=cr[Le],Re=$r.range,xr=$r.type;if(Re.end<Rr)Fe=e.append(Fe,$r);else if(Re.pos>zr){Qr();var Br={range:{pos:Re.pos+Fr,end:Re.end+Fr},type:xr};Fe=e.append(Fe,Br),yt&&e.Debug.assert(_t.substring(Re.pos,Re.end)===Ct.substring(Br.range.pos,Br.range.end))}}return Qr(),Fe;function Qr(){vr||(vr=!0,Fe?qr&&Fe.push.apply(Fe,qr):Fe=qr)}}function Ue(or,qr,Rr,zr,Fr,_t){qr?yt(or):Ct(or);return;function Ct(Fe){var vr="";if(_t&&Je(Fe)&&(vr=zr.substring(Fe.pos,Fe.end)),Fe._children&&(Fe._children=void 0),e.setTextRangePosEnd(Fe,Fe.pos+Rr,Fe.end+Rr),_t&&Je(Fe)&&e.Debug.assert(vr===Fr.substring(Fe.pos,Fe.end)),K(Fe,Ct,yt),e.hasJSDocNodes(Fe))for(var Le=0,cr=Fe.jsDoc;Le<cr.length;Le++){var $r=cr[Le];Ct($r)}mr(Fe,_t)}function yt(Fe){Fe._children=void 0,e.setTextRangePosEnd(Fe,Fe.pos+Rr,Fe.end+Rr);for(var vr=0,Le=Fe;vr<Le.length;vr++){var cr=Le[vr];Ct(cr)}}}function Je(or){switch(or.kind){case 10:case 8:case 79:return!0}return!1}function lr(or,qr,Rr,zr,Fr){e.Debug.assert(or.end>=qr,"Adjusting an element that was entirely before the change range"),e.Debug.assert(or.pos<=Rr,"Adjusting an element that was entirely after the change range"),e.Debug.assert(or.pos<=or.end);var _t=Math.min(or.pos,zr),Ct=or.end>=Rr?or.end+Fr:Math.min(or.end,zr);e.Debug.assert(_t<=Ct),or.parent&&(e.Debug.assertGreaterThanOrEqual(_t,or.parent.pos),e.Debug.assertLessThanOrEqual(Ct,or.parent.end)),e.setTextRangePosEnd(or,_t,Ct)}function mr(or,qr){if(qr){var Rr=or.pos,zr=function(yt){e.Debug.assert(yt.pos>=Rr),Rr=yt.end};if(e.hasJSDocNodes(or))for(var Fr=0,_t=or.jsDoc;Fr<_t.length;Fr++){var Ct=_t[Fr];zr(Ct)}K(or,zr),e.Debug.assert(Rr<=or.end)}}function Hr(or,qr,Rr,zr,Fr,_t,Ct,yt){Fe(or);return;function Fe(Le){if(e.Debug.assert(Le.pos<=Le.end),Le.pos>Rr){Ue(Le,!1,Fr,_t,Ct,yt);return}var cr=Le.end;if(cr>=qr){if(Le.intersectsChange=!0,Le._children=void 0,lr(Le,qr,Rr,zr,Fr),K(Le,Fe,vr),e.hasJSDocNodes(Le))for(var $r=0,Re=Le.jsDoc;$r<Re.length;$r++){var xr=Re[$r];Fe(xr)}mr(Le,yt);return}e.Debug.assert(cr<qr)}function vr(Le){if(e.Debug.assert(Le.pos<=Le.end),Le.pos>Rr){Ue(Le,!0,Fr,_t,Ct,yt);return}var cr=Le.end;if(cr>=qr){Le.intersectsChange=!0,Le._children=void 0,lr(Le,qr,Rr,zr,Fr);for(var $r=0,Re=Le;$r<Re.length;$r++){var xr=Re[$r];Fe(xr)}return}e.Debug.assert(cr<qr)}}function wr(or,qr){for(var Rr=1,zr=qr.span.start,Fr=0;zr>0&&Fr<=Rr;Fr++){var _t=Oe(or,zr);e.Debug.assert(_t.pos<=zr);var Ct=_t.pos;zr=Math.max(0,Ct-1)}var yt=e.createTextSpanFromBounds(zr,e.textSpanEnd(qr.span)),Fe=qr.newLength+(qr.span.start-zr);return e.createTextChangeRange(yt,Fe)}function Oe(or,qr){var Rr=or,zr;if(K(or,Ct),zr){var Fr=_t(zr);Fr.pos>Rr.pos&&(Rr=Fr)}return Rr;function _t(yt){for(;;){var Fe=e.getLastChild(yt);if(Fe)yt=Fe;else return yt}}function Ct(yt){if(!e.nodeIsMissing(yt))if(yt.pos<=qr){if(yt.pos>=Rr.pos&&(Rr=yt),qr<yt.end)return K(yt,Ct),!0;e.Debug.assert(yt.end<=qr),zr=yt}else return e.Debug.assert(yt.pos>qr),!0}}function Ze(or,qr,Rr,zr){var Fr=or.text;if(Rr&&(e.Debug.assert(Fr.length-Rr.span.length+Rr.newLength===qr.length),zr||e.Debug.shouldAssert(3))){var _t=Fr.substr(0,Rr.span.start),Ct=qr.substr(0,Rr.span.start);e.Debug.assert(_t===Ct);var yt=Fr.substring(e.textSpanEnd(Rr.span),Fr.length),Fe=qr.substring(e.textSpanEnd(e.textChangeRangeNewSpan(Rr)),qr.length);e.Debug.assert(yt===Fe)}}function tt(or){var qr=or.statements,Rr=0;e.Debug.assert(Rr<qr.length);var zr=qr[Rr],Fr=-1;return{currentNode:function(Ct){return Ct!==Fr&&(zr&&zr.end===Ct&&Rr<qr.length-1&&(Rr++,zr=qr[Rr]),(!zr||zr.pos!==Ct)&&_t(Ct)),Fr=Ct,e.Debug.assert(!zr||zr.pos===Ct),zr}};function _t(Ct){qr=void 0,Rr=-1,zr=void 0,K(or,yt,Fe);return;function yt(vr){return Ct>=vr.pos&&Ct<vr.end?(K(vr,yt,Fe),!0):!1}function Fe(vr){if(Ct>=vr.pos&&Ct<vr.end)for(var Le=0;Le<vr.length;Le++){var cr=vr[Le];if(cr){if(cr.pos===Ct)return qr=vr,Rr=Le,zr=cr,!0;if(cr.pos<Ct&&Ct<cr.end)return K(cr,yt,Fe),!0}}return!1}}}xe.createSyntaxCursor=tt;var ut;(function(or){or[or.Value=-1]="Value"})(ut||(ut={}))})(ae||(ae={}));function Te(xe){return e.fileExtensionIsOneOf(xe,e.supportedDeclarationExtensions)}e.isDeclarationFileName=Te;function Ne(xe,L,ue,Ue){if(xe){if(xe==="import")return e.ModuleKind.ESNext;if(xe==="require")return e.ModuleKind.CommonJS;Ue(L,ue-L,e.Diagnostics.resolution_mode_should_be_either_require_or_import)}}function we(xe,L){for(var ue=[],Ue=0,Je=e.getLeadingCommentRanges(L,0)||e.emptyArray;Ue<Je.length;Ue++){var lr=Je[Ue],mr=L.substring(lr.pos,lr.end);je(ue,lr,mr)}xe.pragmas=new e.Map;for(var Hr=0,wr=ue;Hr<wr.length;Hr++){var Oe=wr[Hr];if(xe.pragmas.has(Oe.name)){var Ze=xe.pragmas.get(Oe.name);Ze instanceof Array?Ze.push(Oe.args):xe.pragmas.set(Oe.name,[Ze,Oe.args]);continue}xe.pragmas.set(Oe.name,Oe.args)}}e.processCommentPragmas=we;function nr(xe,L){xe.checkJsDirective=void 0,xe.referencedFiles=[],xe.typeReferenceDirectives=[],xe.libReferenceDirectives=[],xe.amdDependencies=[],xe.hasNoDefaultLib=!1,xe.pragmas.forEach(function(ue,Ue){switch(Ue){case"reference":{var Je=xe.referencedFiles,lr=xe.typeReferenceDirectives,mr=xe.libReferenceDirectives;e.forEach(e.toArray(ue),function(Ze){var tt=Ze.arguments,ut=tt.types,or=tt.lib,qr=tt.path,Rr=tt["resolution-mode"];if(Ze.arguments["no-default-lib"])xe.hasNoDefaultLib=!0;else if(ut){var zr=Ne(Rr,ut.pos,ut.end,L);lr.push(n({pos:ut.pos,end:ut.end,fileName:ut.value},zr?{resolutionMode:zr}:{}))}else or?mr.push({pos:or.pos,end:or.end,fileName:or.value}):qr?Je.push({pos:qr.pos,end:qr.end,fileName:qr.value}):L(Ze.range.pos,Ze.range.end-Ze.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{xe.amdDependencies=e.map(e.toArray(ue),function(Ze){return{name:Ze.arguments.name,path:Ze.arguments.path}});break}case"amd-module":{if(ue instanceof Array)for(var Hr=0,wr=ue;Hr<wr.length;Hr++){var Oe=wr[Hr];xe.moduleName&&L(Oe.range.pos,Oe.range.end-Oe.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),xe.moduleName=Oe.arguments.name}else xe.moduleName=ue.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(ue),function(Ze){(!xe.checkJsDirective||Ze.range.pos>xe.checkJsDirective.pos)&&(xe.checkJsDirective={enabled:Ue==="ts-check",end:Ze.range.end,pos:Ze.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=nr;var tr=new e.Map;function me(xe){if(tr.has(xe))return tr.get(xe);var L=new RegExp("(\\s".concat(xe,`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`),"im");return tr.set(xe,L),L}var He=/^\/\/\/\s*<(\S+)\s.*?\/>/im,rr=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function je(xe,L,ue){var Ue=L.kind===2&&He.exec(ue);if(Ue){var Je=Ue[1].toLowerCase(),lr=e.commentPragmas[Je];if(!lr||!(lr.kind&1))return;if(lr.args){for(var mr={},Hr=0,wr=lr.args;Hr<wr.length;Hr++){var Oe=wr[Hr],Ze=me(Oe.name),tt=Ze.exec(ue);if(!tt&&!Oe.optional)return;if(tt){var ut=tt[2]||tt[3];if(Oe.captureSpan){var or=L.pos+tt.index+tt[1].length+1;mr[Oe.name]={value:ut,pos:or,end:or+ut.length}}else mr[Oe.name]=ut}}xe.push({name:Je,args:{arguments:mr,range:L}})}else xe.push({name:Je,args:{arguments:{},range:L}});return}var qr=L.kind===2&&rr.exec(ue);if(qr)return Ce(xe,L,2,qr);if(L.kind===3)for(var Rr=/@(\S+)(\s+.*)?$/gim,zr=void 0;zr=Rr.exec(ue);)Ce(xe,L,4,zr)}function Ce(xe,L,ue,Ue){if(Ue){var Je=Ue[1].toLowerCase(),lr=e.commentPragmas[Je];if(!(!lr||!(lr.kind&ue))){var mr=Ue[2],Hr=Ae(lr,mr);Hr!=="fail"&&xe.push({name:Je,args:{arguments:Hr,range:L}})}}}function Ae(xe,L){if(!L)return{};if(!xe.args)return{};for(var ue=e.trimString(L).split(/\s+/),Ue={},Je=0;Je<xe.args.length;Je++){var lr=xe.args[Je];if(!ue[Je]&&!lr.optional)return"fail";if(lr.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");Ue[lr.name]=ue[Je]}return Ue}function qe(xe,L){return xe.kind!==L.kind?!1:xe.kind===79?xe.escapedText===L.escapedText:xe.kind===108?!0:xe.name.escapedText===L.name.escapedText&&qe(xe.expression,L.expression)}e.tagNamesAreEquivalent=qe})(h||(h={}));var h;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var c=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(c.entries(),function(Ge){var ur=Ge[0],Lr=Ge[1];return[""+Lr,ur]})));var P=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["esnext.array","lib.es2022.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=P.map(function(Ge){return Ge[0]}),e.libMap=new e.Map(P),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:e.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:e.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:e.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Jr},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Jr},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0},e.moduleOptionDeclaration={name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node16:e.ModuleKind.Node16,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0};var T=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},e.targetOptionDeclaration,e.moduleOptionDeclaration,{name:"lib",type:"list",element:{name:"lib",type:e.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:c,affectsSourceFile:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsBundleEmitBuildInfo:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node16:e.ModuleResolutionKind.Node16,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,category:e.Diagnostics.Editor_Support},{name:"moduleDetection",type:new e.Map(e.getEntries({auto:e.ModuleDetectionKind.Auto,legacy:e.ModuleDetectionKind.Legacy,force:e.ModuleDetectionKind.Force})),affectsModuleResolution:!0,description:e.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,category:e.Diagnostics.Language_and_Environment,defaultValueDescription:e.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}];e.optionDeclarations=t(t([],e.commonOptionsWithBuild,!0),T,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(Ge){return!!Ge.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(Ge){return!!Ge.affectsEmit}),e.affectsDeclarationPathOptionDeclarations=e.optionDeclarations.filter(function(Ge){return!!Ge.affectsDeclarationPath}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(Ge){return!!Ge.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(Ge){return!!Ge.affectsSourceFile||!!Ge.affectsModuleResolution||!!Ge.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(Ge){return!!Ge.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(Ge){return e.hasProperty(Ge,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],e.buildOpts=t(t([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function s(Ge){var ur=new e.Map,Lr=new e.Map;return e.forEach(Ge,function(Ar){ur.set(Ar.name.toLowerCase(),Ar),Ar.shortName&&Lr.set(Ar.shortName,Ar.name)}),{optionsNameMap:ur,shortOptionNames:Lr}}e.createOptionNameMap=s;var D;function O(){return D||(D=s(e.optionDeclarations))}e.getOptionsNameMap=O;var W={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:F};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function E(Ge){return Ge&&Ge.enableAutoDiscovery!==void 0&&Ge.enable===void 0?{enable:Ge.enableAutoDiscovery,include:Ge.include||[],exclude:Ge.exclude||[]}:Ge}e.convertEnableAutoDiscoveryToEnable=E;function v(Ge){return S(Ge,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=v;function S(Ge,ur){var Lr=e.arrayFrom(Ge.type.keys()).map(function(Ar){return"'".concat(Ar,"'")}).join(", ");return ur(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(Ge.name),Lr)}function te(Ge,ur,Lr){return Dt(Ge,e.trimString(ur||""),Lr)}e.parseCustomTypeOption=te;function Y(Ge,ur,Lr){if(ur===void 0&&(ur=""),ur=e.trimString(ur),!e.startsWith(ur,"-")){if(ur==="")return[];var Ar=ur.split(",");switch(Ge.element.type){case"number":return e.mapDefined(Ar,function(rt){return ft(Ge.element,parseInt(rt),Lr)});case"string":return e.mapDefined(Ar,function(rt){return ft(Ge.element,rt||"",Lr)});default:return e.mapDefined(Ar,function(rt){return te(Ge.element,rt,Lr)})}}}e.parseListTypeOption=Y;function Z(Ge){return Ge.name}function ce(Ge,ur,Lr,Ar){var rt;if(!((rt=ur.alternateMode)===null||rt===void 0)&&rt.getOptionsNameMap().optionsNameMap.has(Ge.toLowerCase()))return Lr(ur.alternateMode.diagnostic,Ge);var Et=e.getSpellingSuggestion(Ge,ur.optionDeclarations,Z);return Et?Lr(ur.unknownDidYouMeanDiagnostic,Ar||Ge,Et.name):Lr(ur.unknownOptionDiagnostic,Ar||Ge)}function k(Ge,ur,Lr){var Ar={},rt,Et=[],St=[];return Pt(ur),{options:Ar,watchOptions:rt,fileNames:Et,errors:St};function Pt(Ft){for(var ht=0;ht<Ft.length;){var Yt=Ft[ht];if(ht++,Yt.charCodeAt(0)===64)pt(Yt.slice(1));else if(Yt.charCodeAt(0)===45){var un=Yt.slice(Yt.charCodeAt(1)===45?2:1),wn=C(Ge.getOptionsNameMap,un,!0);if(wn)ht=X(Ft,ht,Ge,wn,Ar,St);else{var Bn=C(R.getOptionsNameMap,un,!0);Bn?ht=X(Ft,ht,R,Bn,rt||(rt={}),St):St.push(ce(un,Ge,e.createCompilerDiagnostic,Yt))}}else Et.push(Yt)}}function pt(Ft){var ht=re(Ft,Lr||function(Bn){return e.sys.readFile(Bn)});if(!e.isString(ht)){St.push(ht);return}for(var Yt=[],un=0;;){for(;un<ht.length&&ht.charCodeAt(un)<=32;)un++;if(un>=ht.length)break;var wn=un;if(ht.charCodeAt(wn)===34){for(un++;un<ht.length&&ht.charCodeAt(un)!==34;)un++;un<ht.length?(Yt.push(ht.substring(wn+1,un)),un++):St.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,Ft))}else{for(;ht.charCodeAt(un)>32;)un++;Yt.push(ht.substring(wn,un))}}Pt(Yt)}}e.parseCommandLineWorker=k;function X(Ge,ur,Lr,Ar,rt,Et){if(Ar.isTSConfigOnly){var St=Ge[ur];St==="null"?(rt[Ar.name]=void 0,ur++):Ar.type==="boolean"?St==="false"?(rt[Ar.name]=ft(Ar,!1,Et),ur++):(St==="true"&&ur++,Et.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,Ar.name))):(Et.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,Ar.name)),St&&!e.startsWith(St,"-")&&ur++)}else if(!Ge[ur]&&Ar.type!=="boolean"&&Et.push(e.createCompilerDiagnostic(Lr.optionTypeMismatchDiagnostic,Ar.name,G(Ar))),Ge[ur]!=="null")switch(Ar.type){case"number":rt[Ar.name]=ft(Ar,parseInt(Ge[ur]),Et),ur++;break;case"boolean":var St=Ge[ur];rt[Ar.name]=ft(Ar,St!=="false",Et),(St==="false"||St==="true")&&ur++;break;case"string":rt[Ar.name]=ft(Ar,Ge[ur]||"",Et),ur++;break;case"list":var Pt=Y(Ar,Ge[ur],Et);rt[Ar.name]=Pt||[],Pt&&ur++;break;default:rt[Ar.name]=te(Ar,Ge[ur],Et),ur++;break}else rt[Ar.name]=void 0,ur++;return ur}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:W,getOptionsNameMap:O,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function A(Ge,ur){return k(e.compilerOptionsDidYouMeanDiagnostics,Ge,ur)}e.parseCommandLine=A;function y(Ge,ur){return C(O,Ge,ur)}e.getOptionFromName=y;function C(Ge,ur,Lr){Lr===void 0&&(Lr=!1),ur=ur.toLowerCase();var Ar=Ge(),rt=Ar.optionsNameMap,Et=Ar.shortOptionNames;if(Lr){var St=Et.get(ur);St!==void 0&&(ur=St)}return rt.get(ur)}var B;function F(){return B||(B=s(e.buildOpts))}var z={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:O},ge={alternateMode:z,getOptionsNameMap:F,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function Pe(Ge){var ur=k(ge,Ge),Lr=ur.options,Ar=ur.watchOptions,rt=ur.fileNames,Et=ur.errors,St=Lr;return rt.length===0&&rt.push("."),St.clean&&St.force&&Et.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),St.clean&&St.verbose&&Et.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),St.clean&&St.watch&&Et.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),St.watch&&St.dry&&Et.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:St,watchOptions:Ar,projects:rt,errors:Et}}e.parseBuildCommand=Pe;function fe(Ge){var ur=e.createCompilerDiagnostic.apply(void 0,arguments);return ur.messageText}e.getDiagnosticText=fe;function _e(Ge,ur,Lr,Ar,rt,Et){var St=re(Ge,function(Ft){return Lr.readFile(Ft)});if(!e.isString(St)){Lr.onUnRecoverableConfigFileDiagnostic(St);return}var Pt=e.parseJsonText(Ge,St),pt=Lr.getCurrentDirectory();return Pt.path=e.toPath(Ge,pt,e.createGetCanonicalFileName(Lr.useCaseSensitiveFileNames)),Pt.resolvedPath=Pt.path,Pt.originalFileName=Pt.fileName,Ue(Pt,Lr,e.getNormalizedAbsolutePath(e.getDirectoryPath(Ge),pt),ur,e.getNormalizedAbsolutePath(Ge,pt),void 0,Et,Ar,rt)}e.getParsedCommandLineOfConfigFile=_e;function ne(Ge,ur){var Lr=re(Ge,ur);return e.isString(Lr)?oe(Ge,Lr):{config:{},error:Lr}}e.readConfigFile=ne;function oe(Ge,ur){var Lr=e.parseJsonText(Ge,ur);return{config:N(Lr,Lr.parseDiagnostics,!1,void 0),error:Lr.parseDiagnostics.length?Lr.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=oe;function w(Ge,ur){var Lr=re(Ge,ur);return e.isString(Lr)?e.parseJsonText(Ge,Lr):{fileName:Ge,parseDiagnostics:[Lr]}}e.readJsonConfigFile=w;function re(Ge,ur){var Lr;try{Lr=ur(Ge)}catch(Ar){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,Ge,Ar.message)}return Lr===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,Ge):Lr}e.tryReadFile=re;function M(Ge){return e.arrayToMap(Ge,Z)}var U={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},H;function q(){return H||(H=s(e.optionsForWatch))}var R={getOptionsNameMap:q,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1},K;function I(){return K||(K=M(e.optionDeclarations))}var he;function le(){return he||(he=M(e.optionsForWatch))}var ee;function J(){return ee||(ee=M(e.typeAcquisitionDeclarations))}var de;function De(){return de===void 0&&(de={name:void 0,type:"object",elementOptions:M([{name:"compilerOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:le(),extraKeyDiagnostics:R},{name:"typingOptions",type:"object",elementOptions:J(),extraKeyDiagnostics:U},{name:"typeAcquisition",type:"object",elementOptions:J(),extraKeyDiagnostics:U},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),de}function N(Ge,ur,Lr,Ar){var rt,Et=(rt=Ge.statements[0])===null||rt===void 0?void 0:rt.expression,St=Lr?De():void 0;if(Et&&Et.kind!==207){if(ur.push(e.createDiagnosticForNodeInSourceFile(Ge,Et,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(Ge.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(Et)){var Pt=e.find(Et.elements,e.isObjectLiteralExpression);if(Pt)return Q(Ge,Pt,ur,!0,St,Ar)}return{}}return Q(Ge,Et,ur,!0,St,Ar)}function b(Ge,ur){var Lr;return Q(Ge,(Lr=Ge.statements[0])===null||Lr===void 0?void 0:Lr.expression,ur,!0,void 0,void 0)}e.convertToObject=b;function Q(Ge,ur,Lr,Ar,rt,Et){if(!ur)return Ar?{}:void 0;return Ft(ur,rt);function St(Yt){return rt&&rt.elementOptions===Yt}function Pt(Yt,un,wn,Bn){for(var yn=Ar?{}:void 0,Tn=function(hr){if(hr.kind!==299)return Lr.push(e.createDiagnosticForNodeInSourceFile(Ge,hr,e.Diagnostics.Property_assignment_expected)),"continue";hr.questionToken&&Lr.push(e.createDiagnosticForNodeInSourceFile(Ge,hr.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),ht(hr.name)||Lr.push(e.createDiagnosticForNodeInSourceFile(Ge,hr.name,e.Diagnostics.String_literal_with_double_quotes_expected));var at=e.isComputedNonLiteralName(hr.name)?void 0:e.getTextOfPropertyName(hr.name),Qe=at&&e.unescapeLeadingUnderscores(at),Qt=Qe&&un?un.get(Qe):void 0;Qe&&wn&&!Qt&&(un?Lr.push(ce(Qe,wn,function(gt,kt,Lt){return e.createDiagnosticForNodeInSourceFile(Ge,hr.name,gt,kt,Lt)})):Lr.push(e.createDiagnosticForNodeInSourceFile(Ge,hr.name,wn.unknownOptionDiagnostic,Qe)));var Zt=Ft(hr.initializer,Qt);if(typeof Qe<"u"&&(Ar&&(yn[Qe]=Zt),Et&&(Bn||St(un)))){var Tt=ae(Qt,Zt);Bn?Tt&&Et.onSetValidOptionKeyValueInParent(Bn,Qt,Zt):St(un)&&(Tt?Et.onSetValidOptionKeyValueInRoot(Qe,hr.name,Zt,hr.initializer):Qt||Et.onSetUnknownOptionKeyValueInRoot(Qe,hr.name,Zt,hr.initializer))}},An=0,ii=Yt.properties;An<ii.length;An++){var Xe=ii[An];Tn(Xe)}return yn}function pt(Yt,un){if(!Ar){Yt.forEach(function(wn){return Ft(wn,un)});return}return e.filter(Yt.map(function(wn){return Ft(wn,un)}),function(wn){return wn!==void 0})}function Ft(Yt,un){var wn;switch(Yt.kind){case 110:return Qe(un&&un.type!=="boolean"),at(!0);case 95:return Qe(un&&un.type!=="boolean"),at(!1);case 104:return Qe(un&&un.name==="extends"),at(null);case 10:ht(Yt)||Lr.push(e.createDiagnosticForNodeInSourceFile(Ge,Yt,e.Diagnostics.String_literal_with_double_quotes_expected)),Qe(un&&e.isString(un.type)&&un.type!=="string");var Bn=Yt.text;if(un&&!e.isString(un.type)){var yn=un;yn.type.has(Bn.toLowerCase())||(Lr.push(S(yn,function(Qt,Zt,Tt){return e.createDiagnosticForNodeInSourceFile(Ge,Yt,Qt,Zt,Tt)})),wn=!0)}return at(Bn);case 8:return Qe(un&&un.type!=="number"),at(Number(Yt.text));case 221:if(Yt.operator!==40||Yt.operand.kind!==8)break;return Qe(un&&un.type!=="number"),at(-Number(Yt.operand.text));case 207:Qe(un&&un.type!=="object");var Tn=Yt;if(un){var An=un,ii=An.elementOptions,Xe=An.extraKeyDiagnostics,hr=An.name;return at(Pt(Tn,ii,Xe,hr))}else return at(Pt(Tn,void 0,void 0,void 0));case 206:return Qe(un&&un.type!=="list"),at(pt(Yt.elements,un&&un.element))}un?Qe(!0):Lr.push(e.createDiagnosticForNodeInSourceFile(Ge,Yt,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function at(Qt){var Zt;if(!wn){var Tt=(Zt=un==null?void 0:un.extraValidation)===null||Zt===void 0?void 0:Zt.call(un,Qt);if(Tt){Lr.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,t([Ge,Yt],Tt,!1)));return}}return Qt}function Qe(Qt){Qt&&(Lr.push(e.createDiagnosticForNodeInSourceFile(Ge,Yt,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,un.name,G(un))),wn=!0)}}function ht(Yt){return e.isStringLiteral(Yt)&&e.isStringDoubleQuoted(Yt,Ge)}}e.convertToObjectWorker=Q;function G(Ge){return Ge.type==="list"?"Array":e.isString(Ge.type)?Ge.type:"string"}function ae(Ge,ur){if(Ge){if(lr(ur))return!0;if(Ge.type==="list")return e.isArray(ur);var Lr=e.isString(Ge.type)?Ge.type:"string";return typeof ur===Lr}return!1}function Te(Ge,ur,Lr){var Ar,rt,Et,St=e.createGetCanonicalFileName(Lr.useCaseSensitiveFileNames),Pt=e.map(e.filter(Ge.fileNames,!((rt=(Ar=Ge.options.configFile)===null||Ar===void 0?void 0:Ar.configFileSpecs)===null||rt===void 0)&&rt.validatedIncludeSpecs?nr(ur,Ge.options.configFile.configFileSpecs.validatedIncludeSpecs,Ge.options.configFile.configFileSpecs.validatedExcludeSpecs,Lr):e.returnTrue),function(Yt){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(ur,Lr.getCurrentDirectory()),e.getNormalizedAbsolutePath(Yt,Lr.getCurrentDirectory()),St)}),pt=He(Ge.options,{configFilePath:e.getNormalizedAbsolutePath(ur,Lr.getCurrentDirectory()),useCaseSensitiveFileNames:Lr.useCaseSensitiveFileNames}),Ft=Ge.watchOptions&&rr(Ge.watchOptions),ht=n(n({compilerOptions:n(n({},Ne(pt)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:Ft&&Ne(Ft),references:e.map(Ge.projectReferences,function(Yt){return n(n({},Yt),{path:Yt.originalPath?Yt.originalPath:"",originalPath:void 0})}),files:e.length(Pt)?Pt:void 0},!((Et=Ge.options.configFile)===null||Et===void 0)&&Et.configFileSpecs?{include:we(Ge.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:Ge.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:Ge.compileOnSave?!0:void 0});return ht}e.convertToTSConfig=Te;function Ne(Ge){return n({},e.arrayFrom(Ge.entries()).reduce(function(ur,Lr){var Ar;return n(n({},ur),(Ar={},Ar[Lr[0]]=Lr[1],Ar))},{}))}function we(Ge){if(e.length(Ge)){if(e.length(Ge)!==1)return Ge;if(Ge[0]!==e.defaultIncludeSpec)return Ge}}function nr(Ge,ur,Lr,Ar){if(!ur)return e.returnTrue;var rt=e.getFileMatcherPatterns(Ge,Lr,ur,Ar.useCaseSensitiveFileNames,Ar.getCurrentDirectory()),Et=rt.excludePattern&&e.getRegexFromPattern(rt.excludePattern,Ar.useCaseSensitiveFileNames),St=rt.includeFilePattern&&e.getRegexFromPattern(rt.includeFilePattern,Ar.useCaseSensitiveFileNames);return St?Et?function(Pt){return!(St.test(Pt)&&!Et.test(Pt))}:function(Pt){return!St.test(Pt)}:Et?function(Pt){return Et.test(Pt)}:e.returnTrue}function tr(Ge){if(!(Ge.type==="string"||Ge.type==="number"||Ge.type==="boolean"||Ge.type==="object"))return Ge.type==="list"?tr(Ge.element):Ge.type}function me(Ge,ur){return e.forEachEntry(ur,function(Lr,Ar){if(Lr===Ge)return Ar})}e.getNameOfCompilerOptionValue=me;function He(Ge,ur){return je(Ge,O(),ur)}function rr(Ge){return je(Ge,q())}function je(Ge,ur,Lr){var Ar=ur.optionsNameMap,rt=new e.Map,Et=Lr&&e.createGetCanonicalFileName(Lr.useCaseSensitiveFileNames),St=function(pt){if(e.hasProperty(Ge,pt)){if(Ar.has(pt)&&(Ar.get(pt).category===e.Diagnostics.Command_line_Options||Ar.get(pt).category===e.Diagnostics.Output_Formatting))return"continue";var Ft=Ge[pt],ht=Ar.get(pt.toLowerCase());if(ht){var Yt=tr(ht);Yt?ht.type==="list"?rt.set(pt,Ft.map(function(un){return me(un,Yt)})):rt.set(pt,me(Ft,Yt)):Lr&&ht.isFilePath?rt.set(pt,e.getRelativePathFromFile(Lr.configFilePath,e.getNormalizedAbsolutePath(Ft,e.getDirectoryPath(Lr.configFilePath)),Et)):rt.set(pt,Ft)}}};for(var Pt in Ge)St(Pt);return rt}function Ce(Ge,ur){var Lr=Ae(Ge);return rt();function Ar(Et){return Array(Et+1).join(" ")}function rt(){var Et=[],St=Ar(2);return T.forEach(function(Pt){if(Lr.has(Pt.name)){var pt=Lr.get(Pt.name),Ft=Or(Pt);pt!==Ft?Et.push("".concat(St).concat(Pt.name,": ").concat(pt)):e.hasProperty(e.defaultInitCompilerOptions,Pt.name)&&Et.push("".concat(St).concat(Pt.name,": ").concat(Ft))}}),Et.join(ur)+ur}}e.getCompilerOptionsDiffValue=Ce;function Ae(Ge){var ur=e.extend(Ge,e.defaultInitCompilerOptions);return He(ur)}function qe(Ge,ur,Lr){var Ar=Ae(Ge);return St();function rt(Pt){return Array(Pt+1).join(" ")}function Et(Pt){var pt=Pt.category,Ft=Pt.name,ht=Pt.isCommandLineOnly,Yt=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!ht&&pt!==void 0&&(!Yt.includes(pt)||Ar.has(Ft))}function St(){var Pt=new e.Map;Pt.set(e.Diagnostics.Projects,[]),Pt.set(e.Diagnostics.Language_and_Environment,[]),Pt.set(e.Diagnostics.Modules,[]),Pt.set(e.Diagnostics.JavaScript_Support,[]),Pt.set(e.Diagnostics.Emit,[]),Pt.set(e.Diagnostics.Interop_Constraints,[]),Pt.set(e.Diagnostics.Type_Checking,[]),Pt.set(e.Diagnostics.Completeness,[]);for(var pt=0,Ft=e.optionDeclarations;pt<Ft.length;pt++){var ht=Ft[pt];if(Et(ht)){var Yt=Pt.get(ht.category);Yt||Pt.set(ht.category,Yt=[]),Yt.push(ht)}}var un=0,wn=0,Bn=[];Pt.forEach(function(Zt,Tt){Bn.length!==0&&Bn.push({value:""}),Bn.push({value:"/* ".concat(e.getLocaleSpecificMessage(Tt)," */")});for(var gt=0,kt=Zt;gt<kt.length;gt++){var Lt=kt[gt],$e=void 0;Ar.has(Lt.name)?$e='"'.concat(Lt.name,'": ').concat(JSON.stringify(Ar.get(Lt.name))).concat((wn+=1)===Ar.size?"":","):$e='// "'.concat(Lt.name,'": ').concat(JSON.stringify(Or(Lt)),","),Bn.push({value:$e,description:"/* ".concat(Lt.description&&e.getLocaleSpecificMessage(Lt.description)||Lt.name," */")}),un=Math.max($e.length,un)}});var yn=rt(2),Tn=[];Tn.push("{"),Tn.push("".concat(yn,'"compilerOptions": {')),Tn.push("".concat(yn).concat(yn,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)," */")),Tn.push("");for(var An=0,ii=Bn;An<ii.length;An++){var Xe=ii[An],hr=Xe.value,at=Xe.description,Qe=at===void 0?"":at;Tn.push(hr&&"".concat(yn).concat(yn).concat(hr).concat(Qe&&rt(un-hr.length+2)+Qe))}if(ur.length){Tn.push("".concat(yn,"},")),Tn.push("".concat(yn,'"files": ['));for(var Qt=0;Qt<ur.length;Qt++)Tn.push("".concat(yn).concat(yn).concat(JSON.stringify(ur[Qt])).concat(Qt===ur.length-1?"":","));Tn.push("".concat(yn,"]"))}else Tn.push("".concat(yn,"}"));return Tn.push("}"),Tn.join(Lr)+Lr}}e.generateTSConfig=qe;function xe(Ge,ur){var Lr={},Ar=O().optionsNameMap;for(var rt in Ge)e.hasProperty(Ge,rt)&&(Lr[rt]=L(Ar.get(rt.toLowerCase()),Ge[rt],ur));return Lr.configFilePath&&(Lr.configFilePath=ur(Lr.configFilePath)),Lr}e.convertToOptionsWithAbsolutePaths=xe;function L(Ge,ur,Lr){if(Ge&&!lr(ur)){if(Ge.type==="list"){var Ar=ur;if(Ge.element.isFilePath&&Ar.length)return Ar.map(Lr)}else if(Ge.isFilePath)return Lr(ur)}return ur}function ue(Ge,ur,Lr,Ar,rt,Et,St,Pt,pt){return Hr(Ge,void 0,ur,Lr,Ar,pt,rt,Et,St,Pt)}e.parseJsonConfigFileContent=ue;function Ue(Ge,ur,Lr,Ar,rt,Et,St,Pt,pt){e.tracing===null||e.tracing===void 0||e.tracing.push("parse","parseJsonSourceFileConfigFileContent",{path:Ge.fileName});var Ft=Hr(void 0,Ge,ur,Lr,Ar,pt,rt,Et,St,Pt);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Ft}e.parseJsonSourceFileConfigFileContent=Ue;function Je(Ge,ur){ur&&Object.defineProperty(Ge,"configFile",{enumerable:!1,writable:!1,value:ur})}e.setConfigFileInOptions=Je;function lr(Ge){return Ge==null}function mr(Ge,ur){return e.getDirectoryPath(e.getNormalizedAbsolutePath(Ge,ur))}e.defaultIncludeSpec="**/*";function Hr(Ge,ur,Lr,Ar,rt,Et,St,Pt,pt,Ft){rt===void 0&&(rt={}),Pt===void 0&&(Pt=[]),pt===void 0&&(pt=[]),e.Debug.assert(Ge===void 0&&ur!==void 0||Ge!==void 0&&ur===void 0);var ht=[],Yt=qr(Ge,ur,Lr,Ar,St,Pt,ht,Ft),un=Yt.raw,wn=e.extend(rt,Yt.options||{}),Bn=Et&&Yt.watchOptions?e.extend(Et,Yt.watchOptions):Yt.watchOptions||Et;wn.configFilePath=St&&e.normalizeSlashes(St);var yn=An();ur&&(ur.configFileSpecs=yn),Je(wn,ur);var Tn=e.normalizePath(St?mr(St,Ar):Ar);return{options:wn,watchOptions:Bn,fileNames:ii(Tn),projectReferences:Xe(Tn),typeAcquisition:Yt.typeAcquisition||cr(),raw:un,errors:ht,wildcardDirectories:ye(yn,Tn,Lr.useCaseSensitiveFileNames),compileOnSave:!!un.compileOnSave};function An(){var Zt=Qe("references",function(ra){return typeof ra=="object"},"object"),Tt=hr(at("files"));if(Tt){var gt=Zt==="no-prop"||e.isArray(Zt)&&Zt.length===0,kt=e.hasProperty(un,"extends");if(Tt.length===0&&gt&&!kt)if(ur){var Lt=St||"tsconfig.json",$e=e.Diagnostics.The_files_list_in_config_file_0_is_empty,et=e.firstDefined(e.getTsConfigPropArray(ur,"files"),function(ra){return ra.initializer}),It=et?e.createDiagnosticForNodeInSourceFile(ur,et,$e,Lt):e.createCompilerDiagnostic($e,Lt);ht.push(It)}else Qt(e.Diagnostics.The_files_list_in_config_file_0_is_empty,St||"tsconfig.json")}var xn=hr(at("include")),pi=at("exclude"),ai=!1,Wi=hr(pi);if(pi==="no-prop"&&un.compilerOptions){var ji=un.compilerOptions.outDir,fn=un.compilerOptions.declarationDir;(ji||fn)&&(Wi=[ji,fn].filter(function(ra){return!!ra}))}Tt===void 0&&xn===void 0&&(xn=[e.defaultIncludeSpec],ai=!0);var Ri,ma;return xn&&(Ri=Ir(xn,ht,!0,ur,"include")),Wi&&(ma=Ir(Wi,ht,!1,ur,"exclude")),{filesSpecs:Tt,includeSpecs:xn,excludeSpecs:Wi,validatedFilesSpec:e.filter(Tt,e.isString),validatedIncludeSpecs:Ri,validatedExcludeSpecs:ma,pathPatterns:void 0,isDefaultIncludeSpec:ai}}function ii(Zt){var Tt=Yr(yn,Zt,wn,Lr,pt);return Ze(Tt,tt(un),Pt)&&ht.push(Oe(yn,St)),Tt}function Xe(Zt){var Tt,gt=Qe("references",function(et){return typeof et=="object"},"object");if(e.isArray(gt))for(var kt=0,Lt=gt;kt<Lt.length;kt++){var $e=Lt[kt];typeof $e.path!="string"?Qt(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Tt||(Tt=[])).push({path:e.getNormalizedAbsolutePath($e.path,Zt),originalPath:$e.path,prepend:$e.prepend,circular:$e.circular})}return Tt}function hr(Zt){return e.isArray(Zt)?Zt:void 0}function at(Zt){return Qe(Zt,e.isString,"string")}function Qe(Zt,Tt,gt){if(e.hasProperty(un,Zt)&&!lr(un[Zt]))if(e.isArray(un[Zt])){var kt=un[Zt];return!ur&&!e.every(kt,Tt)&&ht.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Zt,gt)),kt}else return Qt(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Zt,"Array"),"not-array";return"no-prop"}function Qt(Zt,Tt,gt){ur||ht.push(e.createCompilerDiagnostic(Zt,Tt,gt))}}function wr(Ge){return Ge.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Oe(Ge,ur){var Lr=Ge.includeSpecs,Ar=Ge.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,ur||"tsconfig.json",JSON.stringify(Lr||[]),JSON.stringify(Ar||[]))}function Ze(Ge,ur,Lr){return Ge.length===0&&ur&&(!Lr||Lr.length===0)}function tt(Ge){return!e.hasProperty(Ge,"files")&&!e.hasProperty(Ge,"references")}e.canJsonReportNoInputFiles=tt;function ut(Ge,ur,Lr,Ar,rt){var Et=Ar.length;return Ze(Ge,rt)?Ar.push(Oe(Lr,ur)):e.filterMutate(Ar,function(St){return!wr(St)}),Et!==Ar.length}e.updateErrorForNoInputFiles=ut;function or(Ge){return!!Ge.options}function qr(Ge,ur,Lr,Ar,rt,Et,St,Pt){var pt;Ar=e.normalizeSlashes(Ar);var Ft=e.getNormalizedAbsolutePath(rt||"",Ar);if(Et.indexOf(Ft)>=0)return St.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,t(t([],Et,!0),[Ft],!1).join(" -> "))),{raw:Ge||b(ur,St)};var ht=Ge?Rr(Ge,Lr,Ar,rt,St):zr(ur,Lr,Ar,rt,St);if(!((pt=ht.options)===null||pt===void 0)&&pt.paths&&(ht.options.pathsBasePath=Ar),ht.extendedConfigPath){Et=Et.concat([Ft]);var Yt=_t(ur,ht.extendedConfigPath,Lr,Et,St,Pt);if(Yt&&or(Yt)){var un=Yt.raw,wn=ht.raw,Bn,yn=function(Tn){!wn[Tn]&&un[Tn]&&(wn[Tn]=e.map(un[Tn],function(An){return e.isRootedDiskPath(An)?An:e.combinePaths(Bn||(Bn=e.convertToRelativePath(e.getDirectoryPath(ht.extendedConfigPath),Ar,e.createGetCanonicalFileName(Lr.useCaseSensitiveFileNames))),An)}))};yn("include"),yn("exclude"),yn("files"),wn.compileOnSave===void 0&&(wn.compileOnSave=un.compileOnSave),ht.options=e.assign({},Yt.options,ht.options),ht.watchOptions=ht.watchOptions&&Yt.watchOptions?e.assign({},Yt.watchOptions,ht.watchOptions):ht.watchOptions||Yt.watchOptions}}return ht}function Rr(Ge,ur,Lr,Ar,rt){e.hasProperty(Ge,"excludes")&&rt.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var Et=Le(Ge.compilerOptions,Lr,rt,Ar),St=$r(Ge.typeAcquisition||Ge.typingOptions,Lr,rt,Ar),Pt=Re(Ge.watchOptions,Lr,rt);Ge.compileOnSave=Ct(Ge,Lr,rt);var pt;if(Ge.extends)if(!e.isString(Ge.extends))rt.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var Ft=Ar?mr(Ar,Lr):Lr;pt=Fr(Ge.extends,ur,Ft,rt,e.createCompilerDiagnostic)}return{raw:Ge,options:Et,watchOptions:Pt,typeAcquisition:St,extendedConfigPath:pt}}function zr(Ge,ur,Lr,Ar,rt){var Et=vr(Ar),St,Pt,pt,Ft,ht,Yt={onSetValidOptionKeyValueInParent:function(wn,Bn,yn){var Tn;switch(wn){case"compilerOptions":Tn=Et;break;case"watchOptions":Tn=pt||(pt={});break;case"typeAcquisition":Tn=St||(St=cr(Ar));break;case"typingOptions":Tn=Pt||(Pt=cr(Ar));break;default:e.Debug.fail("Unknown option")}Tn[Bn.name]=Qr(Bn,Lr,yn)},onSetValidOptionKeyValueInRoot:function(wn,Bn,yn,Tn){switch(wn){case"extends":var An=Ar?mr(Ar,Lr):Lr;Ft=Fr(yn,ur,An,rt,function(ii,Xe){return e.createDiagnosticForNodeInSourceFile(Ge,Tn,ii,Xe)});return}},onSetUnknownOptionKeyValueInRoot:function(wn,Bn,yn,Tn){wn==="excludes"&&rt.push(e.createDiagnosticForNodeInSourceFile(Ge,Bn,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(T,function(An){return An.name===wn})&&(ht=e.append(ht,Bn))}},un=N(Ge,rt,!0,Yt);return St||(Pt?St=Pt.enableAutoDiscovery!==void 0?{enable:Pt.enableAutoDiscovery,include:Pt.include,exclude:Pt.exclude}:Pt:St=cr(Ar)),ht&&un&&un.compilerOptions===void 0&&rt.push(e.createDiagnosticForNodeInSourceFile(Ge,ht[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(ht[0]))),{raw:un,options:Et,watchOptions:pt,typeAcquisition:St,extendedConfigPath:Ft}}function Fr(Ge,ur,Lr,Ar,rt){if(Ge=e.normalizeSlashes(Ge),e.isRootedDiskPath(Ge)||e.startsWith(Ge,"./")||e.startsWith(Ge,"../")){var Et=e.getNormalizedAbsolutePath(Ge,Lr);if(!ur.fileExists(Et)&&!e.endsWith(Et,".json")&&(Et="".concat(Et,".json"),!ur.fileExists(Et))){Ar.push(rt(e.Diagnostics.File_0_not_found,Ge));return}return Et}var St=e.nodeModuleNameResolver(Ge,e.combinePaths(Lr,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},ur,void 0,void 0,!0);if(St.resolvedModule)return St.resolvedModule.resolvedFileName;Ar.push(rt(e.Diagnostics.File_0_not_found,Ge))}function _t(Ge,ur,Lr,Ar,rt,Et){var St,Pt=Lr.useCaseSensitiveFileNames?ur:e.toFileNameLowerCase(ur),pt,Ft,ht;if(Et&&(pt=Et.get(Pt))?(Ft=pt.extendedResult,ht=pt.extendedConfig):(Ft=w(ur,function(Yt){return Lr.readFile(Yt)}),Ft.parseDiagnostics.length||(ht=qr(void 0,Ft,Lr,e.getDirectoryPath(ur),e.getBaseFileName(ur),Ar,rt,Et)),Et&&Et.set(Pt,{extendedResult:Ft,extendedConfig:ht})),Ge&&(Ge.extendedSourceFiles=[Ft.fileName],Ft.extendedSourceFiles&&(St=Ge.extendedSourceFiles).push.apply(St,Ft.extendedSourceFiles)),Ft.parseDiagnostics.length){rt.push.apply(rt,Ft.parseDiagnostics);return}return ht}function Ct(Ge,ur,Lr){if(!e.hasProperty(Ge,e.compileOnSaveCommandLineOption.name))return!1;var Ar=Br(e.compileOnSaveCommandLineOption,Ge.compileOnSave,ur,Lr);return typeof Ar=="boolean"&&Ar}function yt(Ge,ur,Lr){var Ar=[],rt=Le(Ge,ur,Ar,Lr);return{options:rt,errors:Ar}}e.convertCompilerOptionsFromJson=yt;function Fe(Ge,ur,Lr){var Ar=[],rt=$r(Ge,ur,Ar,Lr);return{options:rt,errors:Ar}}e.convertTypeAcquisitionFromJson=Fe;function vr(Ge){var ur=Ge&&e.getBaseFileName(Ge)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return ur}function Le(Ge,ur,Lr,Ar){var rt=vr(Ar);return xr(I(),Ge,ur,rt,e.compilerOptionsDidYouMeanDiagnostics,Lr),Ar&&(rt.configFilePath=e.normalizeSlashes(Ar)),rt}function cr(Ge){return{enable:!!Ge&&e.getBaseFileName(Ge)==="jsconfig.json",include:[],exclude:[]}}function $r(Ge,ur,Lr,Ar){var rt=cr(Ar),Et=E(Ge);return xr(J(),Et,ur,rt,U,Lr),rt}function Re(Ge,ur,Lr){return xr(le(),Ge,ur,void 0,R,Lr)}function xr(Ge,ur,Lr,Ar,rt,Et){if(ur){for(var St in ur){var Pt=Ge.get(St);Pt?(Ar||(Ar={}))[Pt.name]=Br(Pt,ur[St],Lr,Et):Et.push(ce(St,rt,e.createCompilerDiagnostic))}return Ar}}function Br(Ge,ur,Lr,Ar){if(ae(Ge,ur)){var rt=Ge.type;if(rt==="list"&&e.isArray(ur))return Me(Ge,ur,Lr,Ar);if(!e.isString(rt))return Dt(Ge,ur,Ar);var Et=ft(Ge,ur,Ar);return lr(Et)?Et:ct(Ge,Lr,Et)}else Ar.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Ge.name,G(Ge)))}e.convertJsonOption=Br;function Qr(Ge,ur,Lr){if(!lr(Lr)){if(Ge.type==="list"){var Ar=Ge;return Ar.element.isFilePath||!e.isString(Ar.element.type)?e.filter(e.map(Lr,function(rt){return Qr(Ar.element,ur,rt)}),function(rt){return Ar.listPreserveFalsyValues?!0:!!rt}):Lr}else if(!e.isString(Ge.type))return Ge.type.get(e.isString(Lr)?Lr.toLowerCase():Lr);return ct(Ge,ur,Lr)}}function ct(Ge,ur,Lr){return Ge.isFilePath&&(Lr=e.getNormalizedAbsolutePath(Lr,ur),Lr===""&&(Lr=".")),Lr}function ft(Ge,ur,Lr){var Ar;if(!lr(ur)){var rt=(Ar=Ge.extraValidation)===null||Ar===void 0?void 0:Ar.call(Ge,ur);if(!rt)return ur;Lr.push(e.createCompilerDiagnostic.apply(void 0,rt))}}function Dt(Ge,ur,Lr){if(!lr(ur)){var Ar=ur.toLowerCase(),rt=Ge.type.get(Ar);if(rt!==void 0)return ft(Ge,rt,Lr);Lr.push(v(Ge))}}function Me(Ge,ur,Lr,Ar){return e.filter(e.map(ur,function(rt){return Br(Ge.element,rt,Lr,Ar)}),function(rt){return Ge.listPreserveFalsyValues?!0:!!rt})}var Ke=/(^|\/)\*\*\/?$/,Vr=/^[^*?]*(?=\/[^/]*[*?])/;function Yr(Ge,ur,Lr,Ar,rt){rt===void 0&&(rt=e.emptyArray),ur=e.normalizePath(ur);var Et=e.createGetCanonicalFileName(Ar.useCaseSensitiveFileNames),St=new e.Map,Pt=new e.Map,pt=new e.Map,Ft=Ge.validatedFilesSpec,ht=Ge.validatedIncludeSpecs,Yt=Ge.validatedExcludeSpecs,un=e.getSupportedExtensions(Lr,rt),wn=e.getSupportedExtensionsWithJsonIfResolveJsonModule(Lr,un);if(Ft)for(var Bn=0,yn=Ft;Bn<yn.length;Bn++){var Tn=yn[Bn],An=e.getNormalizedAbsolutePath(Tn,ur);St.set(Et(An),An)}var ii;if(ht&&ht.length>0)for(var Xe=function(Zt){if(e.fileExtensionIs(Zt,".json")){if(!ii){var Tt=ht.filter(function(et){return e.endsWith(et,".json")}),gt=e.map(e.getRegularExpressionsForWildcards(Tt,ur,"files"),function(et){return"^".concat(et,"$")});ii=gt?gt.map(function(et){return e.getRegexFromPattern(et,Ar.useCaseSensitiveFileNames)}):e.emptyArray}var kt=e.findIndex(ii,function(et){return et.test(Zt)});if(kt!==-1){var Lt=Et(Zt);!St.has(Lt)&&!pt.has(Lt)&&pt.set(Lt,Zt)}return"continue"}if(We(Zt,St,Pt,un,Et))return"continue";dr(Zt,Pt,un,Et);var $e=Et(Zt);!St.has($e)&&!Pt.has($e)&&Pt.set($e,Zt)},hr=0,at=Ar.readDirectory(ur,e.flatten(wn),Yt,ht,void 0);hr<at.length;hr++){var An=at[hr];Xe(An)}var Qe=e.arrayFrom(St.values()),Qt=e.arrayFrom(Pt.values());return Qe.concat(Qt,e.arrayFrom(pt.values()))}e.getFileNamesFromConfigSpecs=Yr;function Nt(Ge,ur,Lr,Ar,rt){var Et=ur.validatedFilesSpec,St=ur.validatedIncludeSpecs,Pt=ur.validatedExcludeSpecs;if(!e.length(St)||!e.length(Pt))return!1;Lr=e.normalizePath(Lr);var pt=e.createGetCanonicalFileName(Ar);if(Et)for(var Ft=0,ht=Et;Ft<ht.length;Ft++){var Yt=ht[Ft];if(pt(e.getNormalizedAbsolutePath(Yt,Lr))===Ge)return!1}return en(Ge,Pt,Ar,rt,Lr)}e.isExcludedFile=Nt;function Wt(Ge){var ur=e.startsWith(Ge,"**/")?0:Ge.indexOf("/**/");if(ur===-1)return!1;var Lr=e.endsWith(Ge,"/..")?Ge.length:Ge.lastIndexOf("/../");return Lr>ur}function sn(Ge,ur,Lr,Ar){return en(Ge,e.filter(ur,function(rt){return!Wt(rt)}),Lr,Ar)}e.matchesExclude=sn;function en(Ge,ur,Lr,Ar,rt){var Et=e.getRegularExpressionForWildcard(ur,e.combinePaths(e.normalizePath(Ar),rt),"exclude"),St=Et&&e.getRegexFromPattern(Et,Lr);return St?St.test(Ge)?!0:!e.hasExtension(Ge)&&St.test(e.ensureTrailingDirectorySeparator(Ge)):!1}function Ir(Ge,ur,Lr,Ar,rt){return Ge.filter(function(St){if(!e.isString(St))return!1;var Pt=Jr(St,Lr);return Pt!==void 0&&ur.push(Et.apply(void 0,Pt)),Pt===void 0});function Et(St,Pt){var pt=e.getTsConfigPropArrayElementValue(Ar,rt,Pt);return pt?e.createDiagnosticForNodeInSourceFile(Ar,pt,St,Pt):e.createCompilerDiagnostic(St,Pt)}}function Jr(Ge,ur){if(ur&&Ke.test(Ge))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Ge];if(Wt(Ge))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Ge]}function ye(Ge,ur,Lr){var Ar=Ge.validatedIncludeSpecs,rt=Ge.validatedExcludeSpecs,Et=e.getRegularExpressionForWildcard(rt,ur,"exclude"),St=Et&&new RegExp(Et,Lr?"":"i"),Pt={};if(Ar!==void 0){for(var pt=[],Ft=0,ht=Ar;Ft<ht.length;Ft++){var Yt=ht[Ft],un=e.normalizePath(e.combinePaths(ur,Yt));if(!(St&&St.test(un))){var wn=Ie(un,Lr);if(wn){var Bn=wn.key,yn=wn.flags,Tn=Pt[Bn];(Tn===void 0||Tn<yn)&&(Pt[Bn]=yn,yn===1&&pt.push(Bn))}}}for(var Bn in Pt)if(e.hasProperty(Pt,Bn))for(var An=0,ii=pt;An<ii.length;An++){var Xe=ii[An];Bn!==Xe&&e.containsPath(Xe,Bn,ur,!Lr)&&delete Pt[Bn]}}return Pt}function Ie(Ge,ur){var Lr=Vr.exec(Ge);if(Lr){var Ar=Ge.indexOf("?"),rt=Ge.indexOf("*"),Et=Ge.lastIndexOf(e.directorySeparator);return{key:ur?Lr[0]:e.toFileNameLowerCase(Lr[0]),flags:Ar!==-1&&Ar<Et||rt!==-1&&rt<Et?1:0}}if(e.isImplicitGlob(Ge.substring(Ge.lastIndexOf(e.directorySeparator)+1)))return{key:e.removeTrailingDirectorySeparator(ur?Ge:e.toFileNameLowerCase(Ge)),flags:1}}function We(Ge,ur,Lr,Ar,rt){var Et=e.forEach(Ar,function(ht){return e.fileExtensionIsOneOf(Ge,ht)?ht:void 0});if(!Et)return!1;for(var St=0,Pt=Et;St<Pt.length;St++){var pt=Pt[St];if(e.fileExtensionIs(Ge,pt))return!1;var Ft=rt(e.changeExtension(Ge,pt));if(ur.has(Ft)||Lr.has(Ft)){if(pt===".d.ts"&&(e.fileExtensionIs(Ge,".js")||e.fileExtensionIs(Ge,".jsx")))continue;return!0}}return!1}function dr(Ge,ur,Lr,Ar){var rt=e.forEach(Lr,function(pt){return e.fileExtensionIsOneOf(Ge,pt)?pt:void 0});if(rt)for(var Et=rt.length-1;Et>=0;Et--){var St=rt[Et];if(e.fileExtensionIs(Ge,St))return;var Pt=Ar(e.changeExtension(Ge,St));ur.delete(Pt)}}function ar(Ge){var ur={};for(var Lr in Ge)if(e.hasProperty(Ge,Lr)){var Ar=y(Lr);Ar!==void 0&&(ur[Lr]=Sr(Ge[Lr],Ar))}return ur}e.convertCompilerOptionsForTelemetry=ar;function Sr(Ge,ur){switch(ur.type){case"object":return"";case"string":return"";case"number":return typeof Ge=="number"?Ge:"";case"boolean":return typeof Ge=="boolean"?Ge:"";case"list":var Lr=ur.element;return e.isArray(Ge)?Ge.map(function(Ar){return Sr(Ar,Lr)}):"";default:return e.forEachEntry(ur.type,function(Ar,rt){if(Ar===Ge)return rt})}}function Or(Ge){switch(Ge.type){case"number":return 1;case"boolean":return!0;case"string":var ur=Ge.defaultValueDescription;return Ge.isFilePath?"./".concat(ur&&typeof ur=="string"?ur:""):"";case"list":return[];case"object":return{};default:var Lr=Ge.type.keys().next();return Lr.done?e.Debug.fail("Expected 'option.type' to have entries."):Lr.value}}})(h||(h={}));var h;(function(e){function c(Ir){Ir.trace(e.formatMessage.apply(void 0,arguments))}e.trace=c;function P(Ir,Jr){return!!Ir.traceResolution&&Jr.trace!==void 0}e.isTraceEnabled=P;function T(Ir,Jr){var ye;if(Jr&&Ir){var Ie=Ir.contents.packageJsonContent;typeof Ie.name=="string"&&typeof Ie.version=="string"&&(ye={name:Ie.name,subModuleName:Jr.path.slice(Ir.packageDirectory.length+e.directorySeparator.length),version:Ie.version})}return Jr&&{path:Jr.path,extension:Jr.ext,packageId:ye}}function s(Ir){return T(void 0,Ir)}function D(Ir){if(Ir)return e.Debug.assert(Ir.packageId===void 0),{path:Ir.path,ext:Ir.extension}}var O;(function(Ir){Ir[Ir.TypeScript=0]="TypeScript",Ir[Ir.JavaScript=1]="JavaScript",Ir[Ir.Json=2]="Json",Ir[Ir.TSConfig=3]="TSConfig",Ir[Ir.DtsOnly=4]="DtsOnly",Ir[Ir.TsOnly=5]="TsOnly"})(O||(O={}));function W(Ir){if(Ir)return e.Debug.assert(e.extensionIsTS(Ir.extension)),{fileName:Ir.path,packageId:Ir.packageId}}function E(Ir,Jr,ye,Ie,We,dr){var ar,Sr;return dr?((ar=dr.failedLookupLocations).push.apply(ar,ye),(Sr=dr.affectingLocations).push.apply(Sr,Ie),dr):{resolvedModule:Ir&&{resolvedFileName:Ir.path,originalPath:Ir.originalPath===!0?void 0:Ir.originalPath,extension:Ir.extension,isExternalLibraryImport:Jr,packageId:Ir.packageId},failedLookupLocations:ye,affectingLocations:Ie,resolutionDiagnostics:We}}function v(Ir,Jr,ye,Ie){if(!e.hasProperty(Ir,Jr)){Ie.traceEnabled&&c(Ie.host,e.Diagnostics.package_json_does_not_have_a_0_field,Jr);return}var We=Ir[Jr];if(typeof We!==ye||We===null){Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,Jr,ye,We===null?"null":typeof We);return}return We}function S(Ir,Jr,ye,Ie){var We=v(Ir,Jr,"string",Ie);if(We!==void 0){if(!We){Ie.traceEnabled&&c(Ie.host,e.Diagnostics.package_json_had_a_falsy_0_field,Jr);return}var dr=e.normalizePath(e.combinePaths(ye,We));return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,Jr,We,dr),dr}}function te(Ir,Jr,ye){return S(Ir,"typings",Jr,ye)||S(Ir,"types",Jr,ye)}function Y(Ir,Jr,ye){return S(Ir,"tsconfig",Jr,ye)}function Z(Ir,Jr,ye){return S(Ir,"main",Jr,ye)}function ce(Ir,Jr){var ye=v(Ir,"typesVersions","object",Jr);if(ye!==void 0)return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),ye}function k(Ir,Jr){var ye=ce(Ir,Jr);if(ye!==void 0){if(Jr.traceEnabled)for(var Ie in ye)e.hasProperty(ye,Ie)&&!e.VersionRange.tryParse(Ie)&&c(Jr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,Ie);var We=A(ye);if(!We){Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var dr=We.version,ar=We.paths;if(typeof ar!="object"){Jr.traceEnabled&&c(Jr.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(dr,"']"),"object",typeof ar);return}return We}}var X;function A(Ir){X||(X=new e.Version(e.version));for(var Jr in Ir)if(e.hasProperty(Ir,Jr)){var ye=e.VersionRange.tryParse(Jr);if(ye!==void 0&&ye.test(X))return{version:Jr,paths:Ir[Jr]}}}e.getPackageJsonTypesVersionsPaths=A;function y(Ir,Jr){if(Ir.typeRoots)return Ir.typeRoots;var ye;if(Ir.configFilePath?ye=e.getDirectoryPath(Ir.configFilePath):Jr.getCurrentDirectory&&(ye=Jr.getCurrentDirectory()),ye!==void 0)return C(ye,Jr)}e.getEffectiveTypeRoots=y;function C(Ir,Jr){if(!Jr.directoryExists)return[e.combinePaths(Ir,B)];var ye;return e.forEachAncestorDirectory(e.normalizePath(Ir),function(Ie){var We=e.combinePaths(Ie,B);Jr.directoryExists(We)&&(ye||(ye=[])).push(We)}),ye}var B=e.combinePaths("node_modules","@types");function F(Ir,Jr,ye){var Ie=typeof ye.useCaseSensitiveFileNames=="function"?ye.useCaseSensitiveFileNames():ye.useCaseSensitiveFileNames;return e.comparePaths(Ir,Jr,!Ie)===0}function z(Ir,Jr,ye,Ie,We,dr,ar){e.Debug.assert(typeof Ir=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");var Sr=P(ye,Ie);We&&(ye=We.commandLine.options);var Or=Jr?e.getDirectoryPath(Jr):void 0,Ge=Or?dr&&dr.getOrCreateCacheForDirectory(Or,We):void 0,ur=Ge&&Ge.get(Ir,ar);if(ur)return Sr&&(c(Ie,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,Ir,Jr),We&&c(Ie,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,We.sourceFile.fileName),c(Ie,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,Ir,Or),Tn(ur)),ur;var Lr=y(ye,Ie);Sr&&(Jr===void 0?Lr===void 0?c(Ie,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,Ir):c(Ie,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,Ir,Lr):Lr===void 0?c(Ie,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,Ir,Jr):c(Ie,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,Ir,Jr,Lr),We&&c(Ie,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,We.sourceFile.fileName));var Ar=[],rt=[],Et=ge(ye);ar===e.ModuleKind.ESNext&&(e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.NodeNext)&&(Et|=de.EsmMode);var St=Et&de.Exports?Et&de.EsmMode?["node","import","types"]:["node","require","types"]:[],Pt=[],pt={compilerOptions:ye,host:Ie,traceEnabled:Sr,failedLookupLocations:Ar,affectingLocations:rt,packageJsonInfoCache:dr,features:Et,conditions:St,requestContainingDirectory:Or,reportDiagnostic:function(Xe){return void Pt.push(Xe)}},Ft=An(),ht=!0;Ft||(Ft=ii(),ht=!1);var Yt;if(Ft){var un=Ft.fileName,wn=Ft.packageId,Bn=ye.preserveSymlinks?un:me(un,Ie,Sr),yn=F(un,Bn,Ie);Yt={primary:ht,resolvedFileName:yn?un:Bn,originalPath:yn?void 0:un,packageId:wn,isExternalLibraryImport:rr(un)}}return ur={resolvedTypeReferenceDirective:Yt,failedLookupLocations:Ar,affectingLocations:rt,resolutionDiagnostics:Pt},Ge==null||Ge.set(Ir,ar,ur),Sr&&Tn(ur),ur;function Tn(Xe){var hr;!((hr=Xe.resolvedTypeReferenceDirective)===null||hr===void 0)&&hr.resolvedFileName?Xe.resolvedTypeReferenceDirective.packageId?c(Ie,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,Ir,Xe.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(Xe.resolvedTypeReferenceDirective.packageId),Xe.resolvedTypeReferenceDirective.primary):c(Ie,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,Ir,Xe.resolvedTypeReferenceDirective.resolvedFileName,Xe.resolvedTypeReferenceDirective.primary):c(Ie,e.Diagnostics.Type_reference_directive_0_was_not_resolved,Ir)}function An(){if(Lr&&Lr.length)return Sr&&c(Ie,e.Diagnostics.Resolving_with_primary_search_path_0,Lr.join(", ")),e.firstDefined(Lr,function(Xe){var hr=e.combinePaths(Xe,Ir),at=e.getDirectoryPath(hr),Qe=e.directoryProbablyExists(at,Ie);return!Qe&&Sr&&c(Ie,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,at),W(lr(O.DtsOnly,hr,!Qe,pt))});Sr&&c(Ie,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ii(){var Xe=Jr&&e.getDirectoryPath(Jr);if(Xe!==void 0){Sr&&c(Ie,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,Xe);var hr;if(e.isExternalModuleNameRelative(Ir)){var Qe=tr(Xe,Ir).path;hr=He(O.DtsOnly,Qe,!1,pt,!0)}else{var at=cr(O.DtsOnly,Ir,Xe,pt,void 0,void 0);hr=at&&at.value}return W(hr)}else Sr&&c(Ie,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=z;function ge(Ir){return e.getEmitModuleResolutionKind(Ir)===e.ModuleResolutionKind.Node16?de.Node16Default:e.getEmitModuleResolutionKind(Ir)===e.ModuleResolutionKind.NodeNext?de.NodeNextDefault:de.None}function Pe(Ir,Jr,ye,Ie,We){var dr=wr(We==null?void 0:We.getPackageJsonInfoCache(),Ie,ye);return e.forEachAncestorDirectory(Jr,function(ar){if(e.getBaseFileName(ar)!=="node_modules"){var Sr=e.combinePaths(ar,"node_modules"),Or=e.combinePaths(Sr,Ir);return Ze(Or,!1,dr)}})}e.resolvePackageNameToPackageJson=Pe;function fe(Ir,Jr){if(Ir.types)return Ir.types;var ye=[];if(Jr.directoryExists&&Jr.getDirectories){var Ie=y(Ir,Jr);if(Ie)for(var We=0,dr=Ie;We<dr.length;We++){var ar=dr[We];if(Jr.directoryExists(ar))for(var Sr=0,Or=Jr.getDirectories(ar);Sr<Or.length;Sr++){var Ge=Or[Sr],ur=e.normalizePath(Ge),Lr=e.combinePaths(ar,ur,"package.json"),Ar=Jr.fileExists(Lr)&&e.readJson(Lr,Jr).typings===null;if(!Ar){var rt=e.getBaseFileName(ur);rt.charCodeAt(0)!==46&&ye.push(rt)}}}}return ye}e.getAutomaticTypeDirectiveNames=fe;function _e(Ir){var Jr=new e.Map,ye=new e.Map;return{getOwnMap:Ie,redirectsMap:ye,getOrCreateMapOfCacheRedirects:ar,clear:Sr,setOwnOptions:We,setOwnMap:dr};function Ie(){return Jr}function We(Or){Ir=Or}function dr(Or){Jr=Or}function ar(Or){if(!Or)return Jr;var Ge=Or.sourceFile.path,ur=ye.get(Ge);return ur||(ur=!Ir||e.optionsHaveModuleResolutionChanges(Ir,Or.commandLine.options)?new e.Map:Jr,ye.set(Ge,ur)),ur}function Sr(){Jr.clear(),ye.clear()}}e.createCacheWithRedirects=_e;function ne(Ir,Jr){var ye;return{getPackageJsonInfo:Ie,setPackageJsonInfo:We,clear:dr,entries:ar,getInternalMap:Sr};function Ie(Or){return ye==null?void 0:ye.get(e.toPath(Or,Ir,Jr))}function We(Or,Ge){(ye||(ye=new e.Map)).set(e.toPath(Or,Ir,Jr),Ge)}function dr(){ye=void 0}function ar(){var Or=ye==null?void 0:ye.entries();return Or?e.arrayFrom(Or):[]}function Sr(){return ye}}function oe(Ir,Jr,ye,Ie){var We=Ir.getOrCreateMapOfCacheRedirects(Jr),dr=We.get(ye);return dr||(dr=Ie(),We.set(ye,dr)),dr}function w(Ir,Jr,ye){if(Ir.configFile){if(Jr.redirectsMap.size===0)e.Debug.assert(!ye||ye.redirectsMap.size===0),e.Debug.assert(Jr.getOwnMap().size===0),e.Debug.assert(!ye||ye.getOwnMap().size===0),Jr.redirectsMap.set(Ir.configFile.path,Jr.getOwnMap()),ye==null||ye.redirectsMap.set(Ir.configFile.path,ye.getOwnMap());else{e.Debug.assert(!ye||ye.redirectsMap.size>0);var Ie={sourceFile:Ir.configFile,commandLine:{options:Ir}};Jr.setOwnMap(Jr.getOrCreateMapOfCacheRedirects(Ie)),ye==null||ye.setOwnMap(ye.getOrCreateMapOfCacheRedirects(Ie))}Jr.setOwnOptions(Ir),ye==null||ye.setOwnOptions(Ir)}}function re(Ir,Jr,ye){return{getOrCreateCacheForDirectory:dr,clear:Ie,update:We};function Ie(){ye.clear()}function We(ar){w(ar,ye)}function dr(ar,Sr){var Or=e.toPath(ar,Ir,Jr);return oe(ye,Sr,Or,function(){return M()})}}function M(){var Ir=new e.Map,Jr=new e.Map,ye={get:function(We,dr){return Ir.get(Ie(We,dr))},set:function(We,dr,ar){return Ir.set(Ie(We,dr),ar),ye},delete:function(We,dr){return Ir.delete(Ie(We,dr)),ye},has:function(We,dr){return Ir.has(Ie(We,dr))},forEach:function(We){return Ir.forEach(function(dr,ar){var Sr=Jr.get(ar),Or=Sr[0],Ge=Sr[1];return We(dr,Or,Ge)})},size:function(){return Ir.size}};return ye;function Ie(We,dr){var ar=dr===void 0?We:"".concat(dr,"|").concat(We);return Jr.set(ar,[We,dr]),ar}}e.createModeAwareCache=M;function U(Ir,Jr,ye){e.Debug.assert(Jr.length===ye.length);for(var Ie=M(),We=0;We<Jr.length;++We){var dr=Jr[We],ar=e.isString(dr)?dr:dr.fileName.toLowerCase(),Sr=e.isString(dr)?e.getModeForResolutionAtIndex(Ir,We):dr.resolutionMode||Ir.impliedNodeFormat;Ie.set(ar,Sr,ye[We])}return Ie}e.zipToModeAwareCache=U;function H(Ir,Jr,ye,Ie,We){var dr=re(Ir,Jr,Ie||(Ie=_e(ye)));We||(We=_e(ye));var ar=ne(Ir,Jr);return n(n(n({},ar),dr),{getOrCreateCacheForModuleName:ur,clear:Sr,update:Ge,getPackageJsonInfoCache:function(){return ar},clearAllExceptPackageJsonInfoCache:Or});function Sr(){Or(),ar.clear()}function Or(){dr.clear(),We.clear()}function Ge(Ar){w(Ar,Ie,We)}function ur(Ar,rt,Et){return e.Debug.assert(!e.isExternalModuleNameRelative(Ar)),oe(We,Et,rt===void 0?Ar:"".concat(rt,"|").concat(Ar),Lr)}function Lr(){var Ar=new e.Map;return{get:rt,set:Et};function rt(Pt){return Ar.get(e.toPath(Pt,Ir,Jr))}function Et(Pt,pt){var Ft=e.toPath(Pt,Ir,Jr);if(!Ar.has(Ft)){Ar.set(Ft,pt);for(var ht=pt.resolvedModule&&(pt.resolvedModule.originalPath||pt.resolvedModule.resolvedFileName),Yt=ht&&St(Ft,ht),un=Ft;un!==Yt;){var wn=e.getDirectoryPath(un);if(wn===un||Ar.has(wn))break;Ar.set(wn,pt),un=wn}}}function St(Pt,pt){for(var Ft=e.toPath(e.getDirectoryPath(pt),Ir,Jr),ht=0,Yt=Math.min(Pt.length,Ft.length);ht<Yt&&Pt.charCodeAt(ht)===Ft.charCodeAt(ht);)ht++;if(ht===Pt.length&&(Ft.length===ht||Ft[ht]===e.directorySeparator))return Pt;var un=e.getRootLength(Pt);if(!(ht<un)){var wn=Pt.lastIndexOf(e.directorySeparator,ht-1);if(wn!==-1)return Pt.substr(0,Math.max(wn,un))}}}}e.createModuleResolutionCache=H;function q(Ir,Jr,ye,Ie,We){var dr=re(Ir,Jr,We||(We=_e(ye)));return Ie||(Ie=ne(Ir,Jr)),n(n(n({},Ie),dr),{clear:ar,clearAllExceptPackageJsonInfoCache:Sr});function ar(){Sr(),Ie.clear()}function Sr(){dr.clear()}}e.createTypeReferenceDirectiveResolutionCache=q;function R(Ir,Jr,ye,Ie){var We=e.getDirectoryPath(Jr),dr=ye&&ye.getOrCreateCacheForDirectory(We);if(dr)return dr.get(Ir,Ie)}e.resolveModuleNameFromCache=R;function K(Ir,Jr,ye,Ie,We,dr,ar){var Sr=P(ye,Ie);dr&&(ye=dr.commandLine.options),Sr&&(c(Ie,e.Diagnostics.Resolving_module_0_from_1,Ir,Jr),dr&&c(Ie,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,dr.sourceFile.fileName));var Or=e.getDirectoryPath(Jr),Ge=We&&We.getOrCreateCacheForDirectory(Or,dr),ur=Ge&&Ge.get(Ir,ar);if(ur)Sr&&c(Ie,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Ir,Or);else{var Lr=ye.moduleResolution;if(Lr===void 0){switch(e.getEmitModuleKind(ye)){case e.ModuleKind.CommonJS:Lr=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:Lr=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:Lr=e.ModuleResolutionKind.NodeNext;break;default:Lr=e.ModuleResolutionKind.Classic;break}Sr&&c(Ie,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[Lr])}else Sr&&c(Ie,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[Lr]);switch(e.perfLogger.logStartResolveModule(Ir),Lr){case e.ModuleResolutionKind.Node16:ur=De(Ir,Jr,ye,Ie,We,dr,ar);break;case e.ModuleResolutionKind.NodeNext:ur=N(Ir,Jr,ye,Ie,We,dr,ar);break;case e.ModuleResolutionKind.NodeJs:ur=we(Ir,Jr,ye,Ie,We,dr);break;case e.ModuleResolutionKind.Classic:ur=Nt(Ir,Jr,ye,Ie,We,dr);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(Lr))}ur&&ur.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(Ir,'" resolved to "').concat(ur.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(ur&&ur.resolvedModule?""+ur.resolvedModule.resolvedFileName:"null"),Ge&&(Ge.set(Ir,ar,ur),e.isExternalModuleNameRelative(Ir)||We.getOrCreateCacheForModuleName(Ir,ar,dr).set(Or,ur))}return Sr&&(ur.resolvedModule?ur.resolvedModule.packageId?c(Ie,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,Ir,ur.resolvedModule.resolvedFileName,e.packageIdToString(ur.resolvedModule.packageId)):c(Ie,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,Ir,ur.resolvedModule.resolvedFileName):c(Ie,e.Diagnostics.Module_name_0_was_not_resolved,Ir)),ur}e.resolveModuleName=K;function I(Ir,Jr,ye,Ie,We){var dr=he(Ir,Jr,Ie,We);return dr?dr.value:e.isExternalModuleNameRelative(Jr)?le(Ir,Jr,ye,Ie,We):ee(Ir,Jr,Ie,We)}function he(Ir,Jr,ye,Ie){var We,dr=Ie.compilerOptions,ar=dr.baseUrl,Sr=dr.paths,Or=dr.configFile;if(Sr&&!e.pathIsRelative(Jr)){Ie.traceEnabled&&(ar&&c(Ie.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,ar,Jr),c(Ie.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,Jr));var Ge=e.getPathsBasePath(Ie.compilerOptions,Ie.host),ur=Or!=null&&Or.configFileSpecs?(We=Or.configFileSpecs).pathPatterns||(We.pathPatterns=e.tryParsePatterns(Sr)):void 0;return Qr(Ir,Jr,Ge,Sr,ur,ye,!1,Ie)}}function le(Ir,Jr,ye,Ie,We){if(We.compilerOptions.rootDirs){We.traceEnabled&&c(We.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,Jr);for(var dr=e.normalizePath(e.combinePaths(ye,Jr)),ar,Sr,Or=0,Ge=We.compilerOptions.rootDirs;Or<Ge.length;Or++){var ur=Ge[Or],Lr=e.normalizePath(ur);e.endsWith(Lr,e.directorySeparator)||(Lr+=e.directorySeparator);var Ar=e.startsWith(dr,Lr)&&(Sr===void 0||Sr.length<Lr.length);We.traceEnabled&&c(We.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,Lr,dr,Ar),Ar&&(Sr=Lr,ar=ur)}if(Sr){We.traceEnabled&&c(We.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,dr,Sr);var rt=dr.substr(Sr.length);We.traceEnabled&&c(We.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,rt,Sr,dr);var Et=Ie(Ir,dr,!e.directoryProbablyExists(ye,We.host),We);if(Et)return Et;We.traceEnabled&&c(We.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var St=0,Pt=We.compilerOptions.rootDirs;St<Pt.length;St++){var ur=Pt[St];if(ur!==ar){var pt=e.combinePaths(e.normalizePath(ur),rt);We.traceEnabled&&c(We.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,rt,ur,pt);var Ft=e.getDirectoryPath(pt),ht=Ie(Ir,pt,!e.directoryProbablyExists(Ft,We.host),We);if(ht)return ht}}We.traceEnabled&&c(We.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function ee(Ir,Jr,ye,Ie){var We=Ie.compilerOptions.baseUrl;if(We){Ie.traceEnabled&&c(Ie.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,We,Jr);var dr=e.normalizePath(e.combinePaths(We,Jr));return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,Jr,We,dr),ye(Ir,dr,!e.directoryProbablyExists(e.getDirectoryPath(dr),Ie.host),Ie)}}function J(Ir,Jr,ye){var Ie=Ne(Ir,Jr,ye),We=Ie.resolvedModule,dr=Ie.failedLookupLocations;if(!We)throw new Error("Could not resolve JS module '".concat(Ir,"' starting at '").concat(Jr,"'. Looked in: ").concat(dr.join(", ")));return We.resolvedFileName}e.resolveJSModule=J;var de;(function(Ir){Ir[Ir.None=0]="None",Ir[Ir.Imports=2]="Imports",Ir[Ir.SelfName=4]="SelfName",Ir[Ir.Exports=8]="Exports",Ir[Ir.ExportsPatternTrailers=16]="ExportsPatternTrailers",Ir[Ir.AllFeatures=30]="AllFeatures",Ir[Ir.Node16Default=30]="Node16Default",Ir[Ir.NodeNextDefault=30]="NodeNextDefault",Ir[Ir.EsmMode=32]="EsmMode"})(de||(de={}));function De(Ir,Jr,ye,Ie,We,dr,ar){return Te(de.Node16Default,Ir,Jr,ye,Ie,We,dr,ar)}function N(Ir,Jr,ye,Ie,We,dr,ar){return Te(de.NodeNextDefault,Ir,Jr,ye,Ie,We,dr,ar)}var b=[O.JavaScript],Q=[O.TypeScript,O.JavaScript],G=t(t([],Q,!0),[O.Json],!1),ae=[O.TSConfig];function Te(Ir,Jr,ye,Ie,We,dr,ar,Sr){var Or=e.getDirectoryPath(ye),Ge=Sr===e.ModuleKind.ESNext?de.EsmMode:0,ur=Ie.noDtsResolution?[O.TsOnly,O.JavaScript]:Q;return Ie.resolveJsonModule&&(ur=t(t([],ur,!0),[O.Json],!1)),nr(Ir|Ge,Jr,Or,Ie,We,dr,ur,ar)}function Ne(Ir,Jr,ye){return nr(de.None,Ir,Jr,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},ye,void 0,b,void 0)}function we(Ir,Jr,ye,Ie,We,dr,ar){var Sr;return ar?Sr=ae:ye.noDtsResolution?(Sr=[O.TsOnly],ye.allowJs&&Sr.push(O.JavaScript),ye.resolveJsonModule&&Sr.push(O.Json)):Sr=ye.resolveJsonModule?G:Q,nr(de.None,Ir,e.getDirectoryPath(Jr),ye,Ie,We,Sr,dr)}e.nodeModuleNameResolver=we;function nr(Ir,Jr,ye,Ie,We,dr,ar,Sr){var Or,Ge,ur=P(Ie,We),Lr=[],Ar=[],rt=Ir&de.EsmMode?["node","import","types"]:["node","require","types"];Ie.noDtsResolution&&rt.pop();var Et=[],St={compilerOptions:Ie,host:We,traceEnabled:ur,failedLookupLocations:Lr,affectingLocations:Ar,packageJsonInfoCache:dr,features:Ir,conditions:rt,requestContainingDirectory:ye,reportDiagnostic:function(Ft){return void Et.push(Ft)}};ur&&e.getEmitModuleResolutionKind(Ie)>=e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(Ie)<=e.ModuleResolutionKind.NodeNext&&c(We,e.Diagnostics.Resolving_in_0_mode_with_conditions_1,Ir&de.EsmMode?"ESM":"CJS",rt.map(function(Ft){return"'".concat(Ft,"'")}).join(", "));var Pt=e.forEach(ar,function(Ft){return pt(Ft)});return E((Or=Pt==null?void 0:Pt.value)===null||Or===void 0?void 0:Or.resolved,(Ge=Pt==null?void 0:Pt.value)===null||Ge===void 0?void 0:Ge.isExternalLibraryImport,Lr,Ar,Et,St.resultFromCache);function pt(Ft){var ht=function(at,Qe,Qt,Zt){return He(at,Qe,Qt,Zt,!0)},Yt=I(Ft,Jr,ye,ht,St);if(Yt)return sn({resolved:Yt,isExternalLibraryImport:rr(Yt.path)});if(e.isExternalModuleNameRelative(Jr)){var An=tr(ye,Jr),ii=An.path,Xe=An.parts,hr=He(Ft,ii,!1,St,!0);return hr&&sn({resolved:hr,isExternalLibraryImport:e.contains(Xe,"node_modules")})}else{var un;if(Ir&de.Imports&&e.startsWith(Jr,"#")&&(un=Ct(Ft,Jr,ye,St,dr,Sr)),!un&&Ir&de.SelfName&&(un=Fr(Ft,Jr,ye,St,dr,Sr)),un||(ur&&c(We,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,Jr,O[Ft]),un=cr(Ft,Jr,ye,St,dr,Sr)),!un)return;var wn=un.value;if(!Ie.preserveSymlinks&&wn&&!wn.originalPath){var Bn=me(wn.path,We,ur),yn=F(Bn,wn.path,We),Tn=yn?void 0:wn.path;wn=n(n({},wn),{path:yn?wn.path:Bn,originalPath:Tn})}return{value:wn&&{resolved:wn,isExternalLibraryImport:!0}}}}}function tr(Ir,Jr){var ye=e.combinePaths(Ir,Jr),Ie=e.getPathComponents(ye),We=e.lastOrUndefined(Ie),dr=We==="."||We===".."?e.ensureTrailingDirectorySeparator(e.normalizePath(ye)):e.normalizePath(ye);return{path:dr,parts:Ie}}function me(Ir,Jr,ye){if(!Jr.realpath)return Ir;var Ie=e.normalizePath(Jr.realpath(Ir));return ye&&c(Jr,e.Diagnostics.Resolving_real_path_for_0_result_1,Ir,Ie),e.Debug.assert(Jr.fileExists(Ie),"".concat(Ir," linked to nonexistent file ").concat(Ie)),Ie}function He(Ir,Jr,ye,Ie,We){if(Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,Jr,O[Ir]),!e.hasTrailingDirectorySeparator(Jr)){if(!ye){var dr=e.getDirectoryPath(Jr);e.directoryProbablyExists(dr,Ie.host)||(Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,dr),ye=!0)}var ar=qe(Ir,Jr,ye,Ie);if(ar){var Sr=We?je(ar.path):void 0,Or=Sr?Ze(Sr,!1,Ie):void 0;return T(Or,ar)}}if(!ye){var Ge=e.directoryProbablyExists(Jr,Ie.host);Ge||(Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Jr),ye=!0)}if(!(Ie.features&de.EsmMode))return lr(Ir,Jr,ye,Ie,We)}e.nodeModulesPathPart="/node_modules/";function rr(Ir){return e.stringContains(Ir,e.nodeModulesPathPart)}e.pathContainsNodeModules=rr;function je(Ir){var Jr=e.normalizePath(Ir),ye=Jr.lastIndexOf(e.nodeModulesPathPart);if(ye!==-1){var Ie=ye+e.nodeModulesPathPart.length,We=Ce(Jr,Ie);return Jr.charCodeAt(Ie)===64&&(We=Ce(Jr,We)),Jr.slice(0,We)}}e.parseNodeModuleFromPath=je;function Ce(Ir,Jr){var ye=Ir.indexOf(e.directorySeparator,Jr+1);return ye===-1?Jr:ye}function Ae(Ir,Jr,ye,Ie){return s(qe(Ir,Jr,ye,Ie))}function qe(Ir,Jr,ye,Ie){if(Ir===O.Json||Ir===O.TSConfig){var We=e.tryRemoveExtension(Jr,".json"),dr=We?Jr.substring(We.length):"";return We===void 0&&Ir===O.Json?void 0:ue(We||Jr,Ir,dr,ye,Ie)}if(!(Ie.features&de.EsmMode)){var ar=ue(Jr,Ir,"",ye,Ie);if(ar)return ar}return xe(Ir,Jr,ye,Ie)}function xe(Ir,Jr,ye,Ie){if(e.hasJSFileExtension(Jr)||e.fileExtensionIs(Jr,".json")&&Ie.compilerOptions.resolveJsonModule){var We=e.removeFileExtension(Jr),dr=Jr.substring(We.length);return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,Jr,dr),ue(We,Ir,dr,ye,Ie)}}function L(Ir,Jr,ye,Ie){if((Ir===O.TypeScript||Ir===O.DtsOnly)&&e.fileExtensionIsOneOf(Jr,e.supportedTSExtensionsFlat)){var We=Ue(Jr,ye,Ie);return We!==void 0?{path:Jr,ext:e.tryExtractTSExtension(Jr)}:void 0}return xe(Ir,Jr,ye,Ie)}function ue(Ir,Jr,ye,Ie,We){if(!Ie){var dr=e.getDirectoryPath(Ir);dr&&(Ie=!e.directoryProbablyExists(dr,We.host))}switch(Jr){case O.DtsOnly:switch(ye){case".mjs":case".mts":case".d.mts":return Sr(".d.mts");case".cjs":case".cts":case".d.cts":return Sr(".d.cts");case".json":return Ir+=".json",Sr(".d.ts");default:return Sr(".d.ts")}case O.TypeScript:case O.TsOnly:var ar=Jr===O.TypeScript;switch(ye){case".mjs":case".mts":case".d.mts":return Sr(".mts")||(ar?Sr(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return Sr(".cts")||(ar?Sr(".d.cts"):void 0);case".json":return Ir+=".json",ar?Sr(".d.ts"):void 0;default:return Sr(".ts")||Sr(".tsx")||(ar?Sr(".d.ts"):void 0)}case O.JavaScript:switch(ye){case".mjs":case".mts":case".d.mts":return Sr(".mjs");case".cjs":case".cts":case".d.cts":return Sr(".cjs");case".json":return Sr(".json");default:return Sr(".js")||Sr(".jsx")}case O.TSConfig:case O.Json:return Sr(".json")}function Sr(Or){var Ge=Ue(Ir+Or,Ie,We);return Ge===void 0?void 0:{path:Ge,ext:Or}}}function Ue(Ir,Jr,ye){var Ie,We;if(!(!((Ie=ye.compilerOptions.moduleSuffixes)===null||Ie===void 0)&&Ie.length))return Je(Ir,Jr,ye);var dr=(We=e.tryGetExtensionFromPath(Ir))!==null&&We!==void 0?We:"",ar=dr?e.removeExtension(Ir,dr):Ir;return e.forEach(ye.compilerOptions.moduleSuffixes,function(Sr){return Je(ar+Sr+dr,Jr,ye)})}function Je(Ir,Jr,ye){if(!Jr){if(ye.host.fileExists(Ir))return ye.traceEnabled&&c(ye.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,Ir),Ir;ye.traceEnabled&&c(ye.host,e.Diagnostics.File_0_does_not_exist,Ir)}ye.failedLookupLocations.push(Ir)}function lr(Ir,Jr,ye,Ie,We){We===void 0&&(We=!0);var dr=We?Ze(Jr,ye,Ie):void 0,ar=dr&&dr.contents.packageJsonContent,Sr=dr&&dr.contents.versionPaths;return T(dr,tt(Ir,Jr,ye,Ie,ar,Sr))}function mr(Ir,Jr,ye,Ie,We){if(!We&&Ir.contents.resolvedEntrypoints!==void 0)return Ir.contents.resolvedEntrypoints;var dr,ar=We?O.JavaScript:O.TypeScript,Sr=ge(Jr),Or=wr(Ie==null?void 0:Ie.getPackageJsonInfoCache(),ye,Jr);Or.conditions=["node","require","types"],Or.requestContainingDirectory=Ir.packageDirectory;var Ge=tt(ar,Ir.packageDirectory,!1,Or,Ir.contents.packageJsonContent,Ir.contents.versionPaths);if(dr=e.append(dr,Ge==null?void 0:Ge.path),Sr&de.Exports&&Ir.contents.packageJsonContent.exports)for(var ur=0,Lr=[["node","import","types"],["node","require","types"]];ur<Lr.length;ur++){var Ar=Lr[ur],rt=n(n({},Or),{failedLookupLocations:[],conditions:Ar}),Et=Hr(Ir,Ir.contents.packageJsonContent.exports,rt,ar);if(Et)for(var St=0,Pt=Et;St<Pt.length;St++){var pt=Pt[St];dr=e.appendIfUnique(dr,pt.path)}}return Ir.contents.resolvedEntrypoints=dr||!1}e.getEntrypointsFromPackageJsonInfo=mr;function Hr(Ir,Jr,ye,Ie){var We;if(e.isArray(Jr))for(var dr=0,ar=Jr;dr<ar.length;dr++){var Sr=ar[dr];Ge(Sr)}else if(typeof Jr=="object"&&Jr!==null&&Rr(Jr))for(var Or in Jr)Ge(Jr[Or]);else Ge(Jr);return We;function Ge(ur){var Lr,Ar;if(typeof ur=="string"&&e.startsWith(ur,"./")&&ur.indexOf("*")===-1){var rt=e.getPathComponents(ur).slice(2);if(rt.indexOf("..")>=0||rt.indexOf(".")>=0||rt.indexOf("node_modules")>=0)return!1;var Et=e.combinePaths(Ir.packageDirectory,ur),St=e.getNormalizedAbsolutePath(Et,(Ar=(Lr=ye.host).getCurrentDirectory)===null||Ar===void 0?void 0:Ar.call(Lr)),Pt=L(Ie,St,!1,ye);if(Pt)return We=e.appendIfUnique(We,Pt,function(un,wn){return un.path===wn.path}),!0}else if(Array.isArray(ur))for(var pt=0,Ft=ur;pt<Ft.length;pt++){var ht=Ft[pt],Yt=Ge(ht);if(Yt)return!0}else if(typeof ur=="object"&&ur!==null)return e.forEach(e.getOwnKeys(ur),function(un){if(un==="default"||e.contains(ye.conditions,un)||Le(ye.conditions,un))return Ge(ur[un]),!0})}}function wr(Ir,Jr,ye){return{host:Jr,compilerOptions:ye,traceEnabled:P(ye,Jr),failedLookupLocations:e.noopPush,affectingLocations:e.noopPush,packageJsonInfoCache:Ir,features:de.None,conditions:e.emptyArray,requestContainingDirectory:void 0,reportDiagnostic:e.noop}}e.getTemporaryModuleResolutionState=wr;function Oe(Ir,Jr){var ye=e.getPathComponents(Ir);for(ye.pop();ye.length>0;){var Ie=Ze(e.getPathFromPathComponents(ye),!1,Jr);if(Ie)return Ie;ye.pop()}}e.getPackageScopeForPath=Oe;function Ze(Ir,Jr,ye){var Ie,We,dr,ar=ye.host,Sr=ye.traceEnabled,Or=e.combinePaths(Ir,"package.json");if(Jr){ye.failedLookupLocations.push(Or);return}var Ge=(Ie=ye.packageJsonInfoCache)===null||Ie===void 0?void 0:Ie.getPackageJsonInfo(Or);if(Ge!==void 0){if(typeof Ge!="boolean")return Sr&&c(ar,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,Or),ye.affectingLocations.push(Or),Ge.packageDirectory===Ir?Ge:{packageDirectory:Ir,contents:Ge.contents};Ge&&Sr&&c(ar,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,Or),ye.failedLookupLocations.push(Or);return}var ur=e.directoryProbablyExists(Ir,ar);if(ur&&ar.fileExists(Or)){var Lr=e.readJson(Or,ar);Sr&&c(ar,e.Diagnostics.Found_package_json_at_0,Or);var Ar=k(Lr,ye),rt={packageDirectory:Ir,contents:{packageJsonContent:Lr,versionPaths:Ar,resolvedEntrypoints:void 0}};return(We=ye.packageJsonInfoCache)===null||We===void 0||We.setPackageJsonInfo(Or,rt),ye.affectingLocations.push(Or),rt}else ur&&Sr&&c(ar,e.Diagnostics.File_0_does_not_exist,Or),(dr=ye.packageJsonInfoCache)===null||dr===void 0||dr.setPackageJsonInfo(Or,ur),ye.failedLookupLocations.push(Or)}e.getPackageJsonInfo=Ze;function tt(Ir,Jr,ye,Ie,We,dr){var ar;if(We)switch(Ir){case O.JavaScript:case O.Json:case O.TsOnly:ar=Z(We,Jr,Ie);break;case O.TypeScript:ar=te(We,Jr,Ie)||Z(We,Jr,Ie);break;case O.DtsOnly:ar=te(We,Jr,Ie);break;case O.TSConfig:ar=Y(We,Jr,Ie);break;default:return e.Debug.assertNever(Ir)}var Sr=function(Et,St,Pt,pt){var Ft=Ue(St,Pt,pt);if(Ft){var ht=ut(Et,Ft);if(ht)return s(ht);pt.traceEnabled&&c(pt.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,Ft)}var Yt=Et===O.DtsOnly?O.TypeScript:Et,un=pt.features;(We==null?void 0:We.type)!=="module"&&(pt.features&=~de.EsmMode);var wn=He(Yt,St,Pt,pt,!1);return pt.features=un,wn},Or=ar?!e.directoryProbablyExists(e.getDirectoryPath(ar),Ie.host):void 0,Ge=ye||!e.directoryProbablyExists(Jr,Ie.host),ur=e.combinePaths(Jr,Ir===O.TSConfig?"tsconfig":"index");if(dr&&(!ar||e.containsPath(Jr,ar))){var Lr=e.getRelativePathFromDirectory(Jr,ar||ur,!1);Ie.traceEnabled&&c(Ie.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,dr.version,e.version,Lr);var Ar=Qr(Ir,Lr,Jr,dr.paths,void 0,Sr,Or||Ge,Ie);if(Ar)return D(Ar.value)}var rt=ar&&D(Sr(Ir,ar,Or,Ie));if(rt)return rt;if(!(Ie.features&de.EsmMode))return qe(Ir,ur,Ge,Ie)}function ut(Ir,Jr){var ye=e.tryGetExtensionFromPath(Jr);return ye!==void 0&&or(Ir,ye)?{path:Jr,ext:ye}:void 0}function or(Ir,Jr){switch(Ir){case O.JavaScript:return Jr===".js"||Jr===".jsx"||Jr===".mjs"||Jr===".cjs";case O.TSConfig:case O.Json:return Jr===".json";case O.TypeScript:return Jr===".ts"||Jr===".tsx"||Jr===".mts"||Jr===".cts"||Jr===".d.ts"||Jr===".d.mts"||Jr===".d.cts";case O.TsOnly:return Jr===".ts"||Jr===".tsx"||Jr===".mts"||Jr===".cts";case O.DtsOnly:return Jr===".d.ts"||Jr===".d.mts"||Jr===".d.cts"}}function qr(Ir){var Jr=Ir.indexOf(e.directorySeparator);return Ir[0]==="@"&&(Jr=Ir.indexOf(e.directorySeparator,Jr+1)),Jr===-1?{packageName:Ir,rest:""}:{packageName:Ir.slice(0,Jr),rest:Ir.slice(Jr+1)}}e.parsePackageName=qr;function Rr(Ir){return e.every(e.getOwnKeys(Ir),function(Jr){return e.startsWith(Jr,".")})}e.allKeysStartWithDot=Rr;function zr(Ir){return!e.some(e.getOwnKeys(Ir),function(Jr){return e.startsWith(Jr,".")})}function Fr(Ir,Jr,ye,Ie,We,dr){var ar,Sr,Or=e.getNormalizedAbsolutePath(e.combinePaths(ye,"dummy"),(Sr=(ar=Ie.host).getCurrentDirectory)===null||Sr===void 0?void 0:Sr.call(ar)),Ge=Oe(Or,Ie);if(!(!Ge||!Ge.contents.packageJsonContent.exports)&&typeof Ge.contents.packageJsonContent.name=="string"){var ur=e.getPathComponents(Jr),Lr=e.getPathComponents(Ge.contents.packageJsonContent.name);if(e.every(Lr,function(rt,Et){return ur[Et]===rt})){var Ar=ur.slice(Lr.length);return _t(Ge,Ir,e.length(Ar)?".".concat(e.directorySeparator).concat(Ar.join(e.directorySeparator)):".",Ie,We,dr)}}}function _t(Ir,Jr,ye,Ie,We,dr){if(Ir.contents.packageJsonContent.exports){if(ye==="."){var ar=void 0;if(typeof Ir.contents.packageJsonContent.exports=="string"||Array.isArray(Ir.contents.packageJsonContent.exports)||typeof Ir.contents.packageJsonContent.exports=="object"&&zr(Ir.contents.packageJsonContent.exports)?ar=Ir.contents.packageJsonContent.exports:e.hasProperty(Ir.contents.packageJsonContent.exports,".")&&(ar=Ir.contents.packageJsonContent.exports["."]),ar){var Sr=vr(Jr,Ie,We,dr,ye,Ir,!1);return Sr(ar,"",!1,".")}}else if(Rr(Ir.contents.packageJsonContent.exports)){if(typeof Ir.contents.packageJsonContent.exports!="object")return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,ye,Ir.packageDirectory),sn(void 0);var Or=Fe(Jr,Ie,We,dr,ye,Ir.contents.packageJsonContent.exports,Ir,!1);if(Or)return Or}return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,ye,Ir.packageDirectory),sn(void 0)}}function Ct(Ir,Jr,ye,Ie,We,dr){var ar,Sr;if(Jr==="#"||e.startsWith(Jr,"#/"))return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,Jr),sn(void 0);var Or=e.getNormalizedAbsolutePath(e.combinePaths(ye,"dummy"),(Sr=(ar=Ie.host).getCurrentDirectory)===null||Sr===void 0?void 0:Sr.call(ar)),Ge=Oe(Or,Ie);if(!Ge)return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,Or),sn(void 0);if(!Ge.contents.packageJsonContent.imports)return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,Ge.packageDirectory),sn(void 0);var ur=Fe(Ir,Ie,We,dr,Jr,Ge.contents.packageJsonContent.imports,Ge,!0);return ur||(Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,Jr,Ge.packageDirectory),sn(void 0))}function yt(Ir,Jr){var ye=Ir.indexOf("*"),Ie=Jr.indexOf("*"),We=ye===-1?Ir.length:ye+1,dr=Ie===-1?Jr.length:Ie+1;return We>dr?-1:dr>We||ye===-1?1:Ie===-1||Ir.length>Jr.length?-1:Jr.length>Ir.length?1:0}e.comparePatternKeys=yt;function Fe(Ir,Jr,ye,Ie,We,dr,ar,Sr){var Or=vr(Ir,Jr,ye,Ie,We,ar,Sr);if(!e.endsWith(We,e.directorySeparator)&&We.indexOf("*")===-1&&e.hasProperty(dr,We)){var Ge=dr[We];return Or(Ge,"",!1,We)}for(var ur=e.sort(e.filter(e.getOwnKeys(dr),function(pt){return pt.indexOf("*")!==-1||e.endsWith(pt,"/")}),yt),Lr=0,Ar=ur;Lr<Ar.length;Lr++){var rt=Ar[Lr];if(Jr.features&de.ExportsPatternTrailers&&Pt(rt,We)){var Ge=dr[rt],Et=rt.indexOf("*"),St=We.substring(rt.substring(0,Et).length,We.length-(rt.length-1-Et));return Or(Ge,St,!0,rt)}else if(e.endsWith(rt,"*")&&e.startsWith(We,rt.substring(0,rt.length-1))){var Ge=dr[rt],St=We.substring(rt.length-1);return Or(Ge,St,!0,rt)}else if(e.startsWith(We,rt)){var Ge=dr[rt],St=We.substring(rt.length);return Or(Ge,St,!1,rt)}}function Pt(pt,Ft){if(e.endsWith(pt,"*"))return!1;var ht=pt.indexOf("*");return ht===-1?!1:e.startsWith(Ft,pt.substring(0,ht))&&e.endsWith(Ft,pt.substring(ht+1))}}function vr(Ir,Jr,ye,Ie,We,dr,ar){return Sr;function Sr(Or,Ge,ur,Lr){if(typeof Or=="string"){if(!ur&&Ge.length>0&&!e.endsWith(Or,"/"))return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,dr.packageDirectory,We),sn(void 0);if(!e.startsWith(Or,"./")){if(ar&&!e.startsWith(Or,"../")&&!e.startsWith(Or,"/")&&!e.isRootedDiskPath(Or)){var Ar=ur?Or.replace(/\*/g,Ge):Or+Ge;en(Jr,e.Diagnostics.Using_0_subpath_1_with_target_2,"imports",Lr,Ar),en(Jr,e.Diagnostics.Resolving_module_0_from_1,Ar,dr.packageDirectory+"/");var rt=nr(Jr.features,Ar,dr.packageDirectory+"/",Jr.compilerOptions,Jr.host,ye,[Ir],Ie);return sn(rt.resolvedModule?{path:rt.resolvedModule.resolvedFileName,extension:rt.resolvedModule.extension,packageId:rt.resolvedModule.packageId,originalPath:rt.resolvedModule.originalPath}:void 0)}return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,dr.packageDirectory,We),sn(void 0)}var Et=e.pathIsRelative(Or)?e.getPathComponents(Or).slice(1):e.getPathComponents(Or),St=Et.slice(1);if(St.indexOf("..")>=0||St.indexOf(".")>=0||St.indexOf("node_modules")>=0)return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,dr.packageDirectory,We),sn(void 0);var Pt=e.combinePaths(dr.packageDirectory,Or),pt=e.getPathComponents(Ge);if(pt.indexOf("..")>=0||pt.indexOf(".")>=0||pt.indexOf("node_modules")>=0)return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,dr.packageDirectory,We),sn(void 0);Jr.traceEnabled&&c(Jr.host,e.Diagnostics.Using_0_subpath_1_with_target_2,ar?"imports":"exports",Lr,ur?Or.replace(/\*/g,Ge):Or+Ge);var Ft=ii(ur?Pt.replace(/\*/g,Ge):Pt+Ge),ht=at(Ft,Ge,e.combinePaths(dr.packageDirectory,"package.json"),ar);return ht||sn(T(dr,L(Ir,Ft,!1,Jr)))}else if(typeof Or=="object"&&Or!==null)if(Array.isArray(Or)){if(!e.length(Or))return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,dr.packageDirectory,We),sn(void 0);for(var yn=0,Tn=Or;yn<Tn.length;yn++){var An=Tn[yn],rt=Sr(An,Ge,ur,Lr);if(rt)return rt}}else{for(var Yt=0,un=e.getOwnKeys(Or);Yt<un.length;Yt++){var wn=un[Yt];if(wn==="default"||Jr.conditions.indexOf(wn)>=0||Le(Jr.conditions,wn)){en(Jr,e.Diagnostics.Matched_0_condition_1,ar?"imports":"exports",wn);var Bn=Or[wn],rt=Sr(Bn,Ge,ur,Lr);if(rt)return rt}else en(Jr,e.Diagnostics.Saw_non_matching_condition_0,wn)}return}else if(Or===null)return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,dr.packageDirectory,We),sn(void 0);return Jr.traceEnabled&&c(Jr.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,dr.packageDirectory,We),sn(void 0);function ii(Qe){var Qt,Zt;return Qe===void 0?Qe:e.getNormalizedAbsolutePath(Qe,(Zt=(Qt=Jr.host).getCurrentDirectory)===null||Zt===void 0?void 0:Zt.call(Qt))}function Xe(Qe,Qt){return e.ensureTrailingDirectorySeparator(e.combinePaths(Qe,Qt))}function hr(){return Jr.host.useCaseSensitiveFileNames?typeof Jr.host.useCaseSensitiveFileNames=="boolean"?Jr.host.useCaseSensitiveFileNames:Jr.host.useCaseSensitiveFileNames():!0}function at(Qe,Qt,Zt,Tt){var gt,kt,Lt,$e;if((Ir===O.TypeScript||Ir===O.JavaScript||Ir===O.Json)&&(Jr.compilerOptions.declarationDir||Jr.compilerOptions.outDir)&&Qe.indexOf("/node_modules/")===-1&&(!Jr.compilerOptions.configFile||e.containsPath(dr.packageDirectory,ii(Jr.compilerOptions.configFile.fileName),!hr()))){var et=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:hr}),It=[];if(Jr.compilerOptions.rootDir||Jr.compilerOptions.composite&&Jr.compilerOptions.configFilePath){var xn=ii(e.getCommonSourceDirectory(Jr.compilerOptions,function(){return[]},((kt=(gt=Jr.host).getCurrentDirectory)===null||kt===void 0?void 0:kt.call(gt))||"",et));It.push(xn)}else if(Jr.requestContainingDirectory){var pi=ii(e.combinePaths(Jr.requestContainingDirectory,"index.ts")),xn=ii(e.getCommonSourceDirectory(Jr.compilerOptions,function(){return[pi,ii(Zt)]},(($e=(Lt=Jr.host).getCurrentDirectory)===null||$e===void 0?void 0:$e.call(Lt))||"",et));It.push(xn);for(var ai=e.ensureTrailingDirectorySeparator(xn);ai&&ai.length>1;){var Wi=e.getPathComponents(ai);Wi.pop();var ji=e.getPathFromPathComponents(Wi);It.unshift(ji),ai=e.ensureTrailingDirectorySeparator(ji)}}It.length>1&&Jr.reportDiagnostic(e.createCompilerDiagnostic(Tt?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,Qt===""?".":Qt,Zt));for(var fn=0,Ri=It;fn<Ri.length;fn++)for(var ma=Ri[fn],ra=qs(ma),vn=0,zo=ra;vn<zo.length;vn++){var _a=zo[vn];if(e.containsPath(_a,Qe,!hr()))for(var Ha=Qe.slice(_a.length+1),Do=e.combinePaths(ma,Ha),Ka=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"],rs=0,ts=Ka;rs<ts.length;rs++){var En=ts[rs];if(e.fileExtensionIs(Do,En))for(var ca=e.getPossibleOriginalInputExtensionForExtension(Do),bo=0,Oo=ca;bo<Oo.length;bo++){var Ws=Oo[bo],Co=e.changeAnyExtension(Do,Ws,En,!hr());if(!(Ir===O.TypeScript&&e.hasJSFileExtension(Co)||Ir===O.JavaScript&&e.hasTSFileExtension(Co))&&Jr.host.fileExists(Co))return sn(T(dr,L(Ir,Co,!1,Jr)))}}}}return;function qs(gs){var Ds,Ko,kr=Jr.compilerOptions.configFile?((Ko=(Ds=Jr.host).getCurrentDirectory)===null||Ko===void 0?void 0:Ko.call(Ds))||"":gs,jr=[];return Jr.compilerOptions.declarationDir&&jr.push(ii(Xe(kr,Jr.compilerOptions.declarationDir))),Jr.compilerOptions.outDir&&Jr.compilerOptions.outDir!==Jr.compilerOptions.declarationDir&&jr.push(ii(Xe(kr,Jr.compilerOptions.outDir))),jr}}}}function Le(Ir,Jr){if(Ir.indexOf("types")===-1||!e.startsWith(Jr,"types@"))return!1;var ye=e.VersionRange.tryParse(Jr.substring(6));return ye?ye.test(e.version):!1}e.isApplicableVersionedTypesKey=Le;function cr(Ir,Jr,ye,Ie,We,dr){return Re(Ir,Jr,ye,Ie,!1,We,dr)}function $r(Ir,Jr,ye){return Re(O.DtsOnly,Ir,Jr,ye,!0,void 0,void 0)}function Re(Ir,Jr,ye,Ie,We,dr,ar){var Sr=dr&&dr.getOrCreateCacheForModuleName(Jr,Ie.features===0?void 0:Ie.features&de.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,ar);return e.forEachAncestorDirectory(e.normalizeSlashes(ye),function(Or){if(e.getBaseFileName(Or)!=="node_modules"){var Ge=Yr(Sr,Jr,Or,Ie);return Ge||sn(xr(Ir,Jr,Or,Ie,We,dr,ar))}})}function xr(Ir,Jr,ye,Ie,We,dr,ar){var Sr=e.combinePaths(ye,"node_modules"),Or=e.directoryProbablyExists(Sr,Ie.host);!Or&&Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Sr);var Ge=We?void 0:Br(Ir,Jr,Sr,Or,Ie,dr,ar);if(Ge)return Ge;if(Ir===O.TypeScript||Ir===O.DtsOnly){var ur=e.combinePaths(Sr,"@types"),Lr=Or;return Or&&!e.directoryProbablyExists(ur,Ie.host)&&(Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ur),Lr=!1),Br(O.DtsOnly,ft(Jr,Ie),ur,Lr,Ie,dr,ar)}}function Br(Ir,Jr,ye,Ie,We,dr,ar){var Sr,Or=e.normalizePath(e.combinePaths(ye,Jr)),Ge=Ze(Or,!Ie,We);if(!(We.features&de.Exports)&&Ge){var ur=qe(Ir,Or,!Ie,We);if(ur)return s(ur);var Lr=tt(Ir,Or,!Ie,We,Ge.contents.packageJsonContent,Ge.contents.versionPaths);return T(Ge,Lr)}var Ar=function(ht,Yt,un,wn){var Bn=qe(ht,Yt,un,wn)||tt(ht,Yt,un,wn,Ge&&Ge.contents.packageJsonContent,Ge&&Ge.contents.versionPaths);return!Bn&&Ge&&(Ge.contents.packageJsonContent.exports===void 0||Ge.contents.packageJsonContent.exports===null)&&wn.features&de.EsmMode&&(Bn=qe(ht,e.combinePaths(Yt,"index.js"),un,wn)),T(Ge,Bn)},rt=qr(Jr),Et=rt.packageName,St=rt.rest,Pt=e.combinePaths(ye,Et);if(St!==""&&(Ge=Ze(Pt,!Ie,We)),Ge&&Ge.contents.packageJsonContent.exports&&We.features&de.Exports)return(Sr=_t(Ge,Ir,e.combinePaths(".",St),We,dr,ar))===null||Sr===void 0?void 0:Sr.value;if(St!==""&&Ge&&Ge.contents.versionPaths){We.traceEnabled&&c(We.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ge.contents.versionPaths.version,e.version,St);var pt=Ie&&e.directoryProbablyExists(Pt,We.host),Ft=Qr(Ir,St,Pt,Ge.contents.versionPaths.paths,void 0,Ar,!pt,We);if(Ft)return Ft.value}return Ar(Ir,Or,!Ie,We)}function Qr(Ir,Jr,ye,Ie,We,dr,ar,Sr){We||(We=e.tryParsePatterns(Ie));var Or=e.matchPatternOrExact(We,Jr);if(Or){var Ge=e.isString(Or)?void 0:e.matchedText(Or,Jr),ur=e.isString(Or)?Or:e.patternText(Or);Sr.traceEnabled&&c(Sr.host,e.Diagnostics.Module_name_0_matched_pattern_1,Jr,ur);var Lr=e.forEach(Ie[ur],function(Ar){var rt=Ge?Ar.replace("*",Ge):Ar,Et=e.normalizePath(e.combinePaths(ye,rt));Sr.traceEnabled&&c(Sr.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,Ar,rt);var St=e.tryGetExtensionFromPath(Ar);if(St!==void 0){var Pt=Ue(Et,ar,Sr);if(Pt!==void 0)return s({path:Pt,ext:St})}return dr(Ir,Et,ar||!e.directoryProbablyExists(e.getDirectoryPath(Et),Sr.host),Sr)});return{value:Lr}}}var ct="__";function ft(Ir,Jr){var ye=Me(Ir);return Jr.traceEnabled&&ye!==Ir&&c(Jr.host,e.Diagnostics.Scoped_package_detected_looking_in_0,ye),ye}function Dt(Ir){return"@types/".concat(Me(Ir))}e.getTypesPackageName=Dt;function Me(Ir){if(e.startsWith(Ir,"@")){var Jr=Ir.replace(e.directorySeparator,ct);if(Jr!==Ir)return Jr.slice(1)}return Ir}e.mangleScopedPackageName=Me;function Ke(Ir){var Jr=e.removePrefix(Ir,"@types/");return Jr!==Ir?Vr(Jr):Ir}e.getPackageNameFromTypesPackageName=Ke;function Vr(Ir){return e.stringContains(Ir,ct)?"@"+Ir.replace(ct,e.directorySeparator):Ir}e.unmangleScopedPackageName=Vr;function Yr(Ir,Jr,ye,Ie){var We=Ir&&Ir.get(ye);if(We)return Ie.traceEnabled&&c(Ie.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Jr,ye),Ie.resultFromCache=We,{value:We.resolvedModule&&{path:We.resolvedModule.resolvedFileName,originalPath:We.resolvedModule.originalPath||!0,extension:We.resolvedModule.extension,packageId:We.resolvedModule.packageId}}}function Nt(Ir,Jr,ye,Ie,We,dr){var ar=P(ye,Ie),Sr=[],Or=[],Ge=e.getDirectoryPath(Jr),ur=[],Lr={compilerOptions:ye,host:Ie,traceEnabled:ar,failedLookupLocations:Sr,affectingLocations:Or,packageJsonInfoCache:We,features:de.None,conditions:[],requestContainingDirectory:Ge,reportDiagnostic:function(Et){return void ur.push(Et)}},Ar=rt(O.TypeScript)||rt(O.JavaScript);return E(Ar&&Ar.value,!1,Sr,Or,ur,Lr.resultFromCache);function rt(Et){var St=I(Et,Ir,Ge,Ae,Lr);if(St)return{value:St};if(e.isExternalModuleNameRelative(Ir)){var Ft=e.normalizePath(e.combinePaths(Ge,Ir));return sn(Ae(Et,Ft,!1,Lr))}else{var Pt=We&&We.getOrCreateCacheForModuleName(Ir,void 0,dr),pt=e.forEachAncestorDirectory(Ge,function(ht){var Yt=Yr(Pt,Ir,ht,Lr);if(Yt)return Yt;var un=e.normalizePath(e.combinePaths(ht,Ir));return sn(Ae(Et,un,!1,Lr))});if(pt)return pt;if(Et===O.TypeScript)return $r(Ir,Ge,Lr)}}}e.classicNameResolver=Nt;function Wt(Ir,Jr,ye,Ie,We,dr){var ar=P(ye,Ie);ar&&c(Ie,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,Jr,Ir,We);var Sr=[],Or=[],Ge=[],ur={compilerOptions:ye,host:Ie,traceEnabled:ar,failedLookupLocations:Sr,affectingLocations:Or,packageJsonInfoCache:dr,features:de.None,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:function(Ar){return void Ge.push(Ar)}},Lr=xr(O.DtsOnly,Ir,We,ur,!1,void 0,void 0);return E(Lr,!0,Sr,Or,Ge,ur.resultFromCache)}e.loadModuleFromGlobalCache=Wt;function sn(Ir){return Ir!==void 0?{value:Ir}:void 0}function en(Ir,Jr){for(var ye=[],Ie=2;Ie<arguments.length;Ie++)ye[Ie-2]=arguments[Ie];Ir.traceEnabled&&c.apply(void 0,t([Ir.host,Jr],ye,!1))}})(h||(h={}));var h;(function(e){(function(k){k[k.NonInstantiated=0]="NonInstantiated",k[k.Instantiated=1]="Instantiated",k[k.ConstEnumOnly=2]="ConstEnumOnly"})(e.ModuleInstanceState||(e.ModuleInstanceState={}));function c(k,X){return k.body&&!k.body.parent&&(e.setParent(k.body,k),e.setParentRecursive(k.body,!1)),k.body?P(k.body,X):1}e.getModuleInstanceState=c;function P(k,X){X===void 0&&(X=new e.Map);var A=e.getNodeId(k);if(X.has(A))return X.get(A)||0;X.set(A,void 0);var y=T(k,X);return X.set(A,y),y}function T(k,X){switch(k.kind){case 261:case 262:return 0;case 263:if(e.isEnumConst(k))return 2;break;case 269:case 268:if(!e.hasSyntacticModifier(k,1))return 0;break;case 275:var A=k;if(!A.moduleSpecifier&&A.exportClause&&A.exportClause.kind===276){for(var y=0,C=0,B=A.exportClause.elements;C<B.length;C++){var F=B[C],z=s(F,X);if(z>y&&(y=z),y===1)return y}return y}break;case 265:{var ge=0;return e.forEachChild(k,function(Pe){var fe=P(Pe,X);switch(fe){case 0:return;case 2:ge=2;return;case 1:return ge=1,!0;default:e.Debug.assertNever(fe)}}),ge}case 264:return c(k,X);case 79:if(k.isInJSDocNamespace)return 0}return 1}function s(k,X){for(var A=k.propertyName||k.name,y=k.parent;y;){if(e.isBlock(y)||e.isModuleBlock(y)||e.isSourceFile(y)){for(var C=y.statements,B=void 0,F=0,z=C;F<z.length;F++){var ge=z[F];if(e.nodeHasName(ge,A)){ge.parent||(e.setParent(ge,y),e.setParentRecursive(ge,!1));var Pe=P(ge,X);if((B===void 0||Pe>B)&&(B=Pe),B===1)return B}}if(B!==void 0)return B}y=y.parent}return 1}var D;(function(k){k[k.None=0]="None",k[k.IsContainer=1]="IsContainer",k[k.IsBlockScopedContainer=2]="IsBlockScopedContainer",k[k.IsControlFlowContainer=4]="IsControlFlowContainer",k[k.IsFunctionLike=8]="IsFunctionLike",k[k.IsFunctionExpression=16]="IsFunctionExpression",k[k.HasLocals=32]="HasLocals",k[k.IsInterface=64]="IsInterface",k[k.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(D||(D={}));function O(k){return e.Debug.attachFlowNodeDebugInfo(k),k}var W=v();function E(k,X){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+k.fileName),W(k,X),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}e.bindSourceFile=E;function v(){var k,X,A,y,C,B,F,z,ge,Pe,fe,_e,ne,oe,w,re,M,U,H,q,R,K,I=!1,he=0,le,ee,J={flags:1},de={flags:1},De=We();function N(be,Ur,At,an,Kn){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(be)||k,be,Ur,At,an,Kn)}function b(be,Ur){k=be,X=Ur,A=e.getEmitScriptTarget(X),K=Q(k,Ur),ee=new e.Set,he=0,le=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(J),e.Debug.attachFlowNodeDebugInfo(de),k.locals||(e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:k.path},!0),En(k),e.tracing===null||e.tracing===void 0||e.tracing.pop(),k.symbolCount=he,k.classifiableNames=ee,kt()),k=void 0,X=void 0,A=void 0,y=void 0,C=void 0,B=void 0,F=void 0,z=void 0,ge=void 0,Pe=!1,fe=void 0,_e=void 0,ne=void 0,oe=void 0,w=void 0,re=void 0,M=void 0,H=void 0,q=!1,I=!1,R=0}return b;function Q(be,Ur){return e.getStrictOptionValue(Ur,"alwaysStrict")&&!be.isDeclarationFile?!0:!!be.externalModuleIndicator}function G(be,Ur){return he++,new le(be,Ur)}function ae(be,Ur,At){be.flags|=At,Ur.symbol=be,be.declarations=e.appendIfUnique(be.declarations,Ur),At&1955&&!be.exports&&(be.exports=e.createSymbolTable()),At&6240&&!be.members&&(be.members=e.createSymbolTable()),be.constEnumOnlyModule&&be.flags&304&&(be.constEnumOnlyModule=!1),At&111551&&e.setValueDeclaration(be,Ur)}function Te(be){if(be.kind===274)return be.isExportEquals?"export=":"default";var Ur=e.getNameOfDeclaration(be);if(Ur){if(e.isAmbientModule(be)){var At=e.getTextOfIdentifierOrLiteral(Ur);return e.isGlobalScopeAugmentation(be)?"__global":'"'.concat(At,'"')}if(Ur.kind===164){var an=Ur.expression;if(e.isStringOrNumericLiteralLike(an))return e.escapeLeadingUnderscores(an.text);if(e.isSignedNumericLiteral(an))return e.tokenToString(an.operator)+an.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(Ur)){var Kn=e.getContainingClass(be);if(!Kn)return;var Yn=Kn.symbol;return e.getSymbolNameForPrivateIdentifier(Yn,Ur.escapedText)}return e.isPropertyNameLiteral(Ur)?e.getEscapedTextOfIdentifierOrLiteral(Ur):void 0}switch(be.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(e.getAssignmentDeclarationKind(be)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 320:return e.isJSDocConstructSignature(be)?"__new":"__call";case 166:e.Debug.assert(be.parent.kind===320,"Impossible parameter parent kind",function(){return"parent is: ".concat(e.Debug.formatSyntaxKind(be.parent.kind),", expected JSDocFunctionType")});var Si=be.parent,vi=Si.parameters.indexOf(be);return"arg"+vi}}function Ne(be){return e.isNamedDeclaration(be)?e.declarationNameToString(be.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(Te(be)))}function we(be,Ur,At,an,Kn,Yn,Si){e.Debug.assert(Si||!e.hasDynamicName(At));var vi=e.hasSyntacticModifier(At,1024)||e.isExportSpecifier(At)&&At.name.escapedText==="default",Da=Si?"__computed":vi&&Ur?"default":Te(At),ta;if(Da===void 0)ta=G(0,"__missing");else if(ta=be.get(Da),an&2885600&&ee.add(Da),!ta)be.set(Da,ta=G(0,Da)),Yn&&(ta.isReplaceableByMethod=!0);else{if(Yn&&!ta.isReplaceableByMethod)return ta;if(ta.flags&Kn){if(ta.isReplaceableByMethod)be.set(Da,ta=G(0,Da));else if(!(an&3&&ta.flags&67108864)){e.isNamedDeclaration(At)&&e.setParent(At.name,At);var fo=ta.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,oo=!0;(ta.flags&384||an&384)&&(fo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,oo=!1);var er=!1;e.length(ta.declarations)&&(vi||ta.declarations&&ta.declarations.length&&At.kind===274&&!At.isExportEquals)&&(fo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,oo=!1,er=!0);var Bt=[];e.isTypeAliasDeclaration(At)&&e.nodeIsMissing(At.type)&&e.hasSyntacticModifier(At,1)&&ta.flags&2887656&&Bt.push(N(At,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(At.name.escapedText)," }")));var Mr=e.getNameOfDeclaration(At)||At;e.forEach(ta.declarations,function(_o,xs){var yc=e.getNameOfDeclaration(_o)||_o,kc=N(yc,fo,oo?Ne(_o):void 0);k.bindDiagnostics.push(er?e.addRelatedInfo(kc,N(Mr,xs===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):kc),er&&Bt.push(N(yc,e.Diagnostics.The_first_export_default_is_here))});var ua=N(Mr,fo,oo?Ne(At):void 0);k.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,t([ua],Bt,!1))),ta=G(0,Da)}}}return ae(ta,At,an),ta.parent?e.Debug.assert(ta.parent===Ur,"Existing symbol parent should match new one"):ta.parent=Ur,ta}function nr(be,Ur,At){var an=!!(e.getCombinedModifierFlags(be)&1)||tr(be);if(Ur&2097152)return be.kind===278||be.kind===268&&an?we(C.symbol.exports,C.symbol,be,Ur,At):we(C.locals,void 0,be,Ur,At);if(e.isJSDocTypeAlias(be)&&e.Debug.assert(e.isInJSFile(be)),!e.isAmbientModule(be)&&(an||C.flags&64)){if(!C.locals||e.hasSyntacticModifier(be,1024)&&!Te(be))return we(C.symbol.exports,C.symbol,be,Ur,At);var Kn=Ur&111551?1048576:0,Yn=we(C.locals,void 0,be,Kn,At);return Yn.exportSymbol=we(C.symbol.exports,C.symbol,be,Ur,At),be.localSymbol=Yn,Yn}else return we(C.locals,void 0,be,Ur,At)}function tr(be){if(be.parent&&e.isModuleDeclaration(be)&&(be=be.parent),!e.isJSDocTypeAlias(be))return!1;if(!e.isJSDocEnumTag(be)&&be.fullName)return!0;var Ur=e.getNameOfDeclaration(be);return Ur?!!(e.isPropertyAccessEntityNameExpression(Ur.parent)&&Ia(Ur.parent)||e.isDeclaration(Ur.parent)&&e.getCombinedModifierFlags(Ur.parent)&1):!1}function me(be,Ur){var At=C,an=B,Kn=F;if(Ur&1?(be.kind!==216&&(B=C),C=F=be,Ur&32&&(C.locals=e.createSymbolTable()),wn(C)):Ur&2&&(F=be,F.locals=void 0),Ur&4){var Yn=fe,Si=_e,vi=ne,Da=oe,ta=M,fo=H,oo=q,er=Ur&16&&!e.hasSyntacticModifier(be,512)&&!be.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(be)||be.kind===172;er||(fe=O({flags:2}),Ur&144&&(fe.node=be)),oe=er||be.kind===173||e.isInJSFile(be)&&(be.kind===259||be.kind===215)?lr():void 0,M=void 0,_e=void 0,ne=void 0,H=void 0,q=!1,Ce(be),be.flags&=-2817,!(fe.flags&1)&&Ur&8&&e.nodeIsPresent(be.body)&&(be.flags|=256,q&&(be.flags|=512),be.endFlowNode=fe),be.kind===308&&(be.flags|=R,be.endFlowNode=fe),oe&&(Oe(oe,fe),fe=qr(oe),(be.kind===173||be.kind===172||e.isInJSFile(be)&&(be.kind===259||be.kind===215))&&(be.returnFlowNode=fe)),er||(fe=Yn),_e=Si,ne=vi,oe=Da,M=ta,H=fo,q=oo}else Ur&64?(Pe=!1,Ce(be),be.flags=Pe?be.flags|128:be.flags&-129):Ce(be);C=At,B=an,F=Kn}function He(be){rr(be,function(Ur){return Ur.kind===259?En(Ur):void 0}),rr(be,function(Ur){return Ur.kind!==259?En(Ur):void 0})}function rr(be,Ur){Ur===void 0&&(Ur=En),be!==void 0&&e.forEach(be,Ur)}function je(be){e.forEachChild(be,En,rr)}function Ce(be){var Ur=I;if(I=!1,Xt(be)){je(be),ca(be),I=Ur;return}switch(be.kind>=240&&be.kind<=256&&!X.allowUnreachableCode&&(be.flowNode=fe),be.kind){case 244:Le(be);break;case 243:cr(be);break;case 245:$r(be);break;case 246:case 247:Re(be);break;case 242:xr(be);break;case 250:case 254:Br(be);break;case 249:case 248:ft(be);break;case 255:Dt(be);break;case 252:Me(be);break;case 266:Ke(be);break;case 292:Vr(be);break;case 241:Yr(be);break;case 253:Wt(be);break;case 221:Jr(be);break;case 222:ye(be);break;case 223:if(e.isDestructuringAssignment(be)){I=Ur,Ie(be);return}De(be);break;case 217:dr(be);break;case 224:ar(be);break;case 257:Or(be);break;case 208:case 209:ht(be);break;case 210:Yt(be);break;case 232:Ft(be);break;case 348:case 341:case 342:Ar(be);break;case 308:{He(be.statements),En(be.endOfFileToken);break}case 238:case 265:He(be.statements);break;case 205:Ge(be);break;case 166:ur(be);break;case 207:case 206:case 299:case 227:I=Ur;default:je(be);break}ca(be),I=Ur}function Ae(be){switch(be.kind){case 79:case 80:case 108:case 208:case 209:return xe(be);case 210:return L(be);case 214:case 232:return Ae(be.expression);case 223:return Ue(be);case 221:return be.operator===53&&Ae(be.operand);case 218:return Ae(be.expression)}return!1}function qe(be){return e.isDottedName(be)||(e.isPropertyAccessExpression(be)||e.isNonNullExpression(be)||e.isParenthesizedExpression(be))&&qe(be.expression)||e.isBinaryExpression(be)&&be.operatorToken.kind===27&&qe(be.right)||e.isElementAccessExpression(be)&&(e.isStringOrNumericLiteralLike(be.argumentExpression)||e.isEntityNameExpression(be.argumentExpression))&&qe(be.expression)||e.isAssignmentExpression(be)&&qe(be.left)}function xe(be){return qe(be)||e.isOptionalChain(be)&&xe(be.expression)}function L(be){if(be.arguments)for(var Ur=0,At=be.arguments;Ur<At.length;Ur++){var an=At[Ur];if(xe(an))return!0}return!!(be.expression.kind===208&&xe(be.expression.expression))}function ue(be,Ur){return e.isTypeOfExpression(be)&&Je(be.expression)&&e.isStringLiteralLike(Ur)}function Ue(be){switch(be.operatorToken.kind){case 63:case 75:case 76:case 77:return xe(be.left);case 34:case 35:case 36:case 37:return Je(be.left)||Je(be.right)||ue(be.right,be.left)||ue(be.left,be.right);case 102:return Je(be.left);case 101:return Ae(be.right);case 27:return Ae(be.right)}return!1}function Je(be){switch(be.kind){case 214:return Je(be.expression);case 223:switch(be.operatorToken.kind){case 63:return Je(be.left);case 27:return Je(be.right)}}return xe(be)}function lr(){return O({flags:4,antecedents:void 0})}function mr(){return O({flags:8,antecedents:void 0})}function Hr(be,Ur,At){return O({flags:1024,target:be,antecedents:Ur,antecedent:At})}function wr(be){be.flags|=be.flags&2048?4096:2048}function Oe(be,Ur){!(Ur.flags&1)&&!e.contains(be.antecedents,Ur)&&((be.antecedents||(be.antecedents=[])).push(Ur),wr(Ur))}function Ze(be,Ur,At){return Ur.flags&1?Ur:At?(At.kind===110&&be&64||At.kind===95&&be&32)&&!e.isExpressionOfOptionalChainRoot(At)&&!e.isNullishCoalesce(At.parent)?J:Ae(At)?(wr(Ur),O({flags:be,antecedent:Ur,node:At})):Ur:be&32?Ur:J}function tt(be,Ur,At,an){return wr(be),O({flags:128,antecedent:be,switchStatement:Ur,clauseStart:At,clauseEnd:an})}function ut(be,Ur,At){wr(Ur);var an=O({flags:be,antecedent:Ur,node:At});return M&&Oe(M,an),an}function or(be,Ur){return wr(be),O({flags:512,antecedent:be,node:Ur})}function qr(be){var Ur=be.antecedents;return Ur?Ur.length===1?Ur[0]:be:J}function Rr(be){var Ur=be.parent;switch(Ur.kind){case 242:case 244:case 243:return Ur.expression===be;case 245:case 224:return Ur.condition===be}return!1}function zr(be){for(;;)if(be.kind===214)be=be.expression;else if(be.kind===221&&be.operator===53)be=be.operand;else return be.kind===223&&(be.operatorToken.kind===55||be.operatorToken.kind===56||be.operatorToken.kind===60)}function Fr(be){return be=e.skipParentheses(be),e.isBinaryExpression(be)&&e.isLogicalOrCoalescingAssignmentOperator(be.operatorToken.kind)}function _t(be){for(;e.isParenthesizedExpression(be.parent)||e.isPrefixUnaryExpression(be.parent)&&be.parent.operator===53;)be=be.parent;return!Rr(be)&&!zr(be.parent)&&!(e.isOptionalChain(be.parent)&&be.parent.expression===be)}function Ct(be,Ur,At,an){var Kn=w,Yn=re;w=At,re=an,be(Ur),w=Kn,re=Yn}function yt(be,Ur,At){Ct(En,be,Ur,At),(!be||!Fr(be)&&!zr(be)&&!(e.isOptionalChain(be)&&e.isOutermostOptionalChain(be)))&&(Oe(Ur,Ze(32,fe,be)),Oe(At,Ze(64,fe,be)))}function Fe(be,Ur,At){var an=_e,Kn=ne;_e=Ur,ne=At,En(be),_e=an,ne=Kn}function vr(be,Ur){for(var At=H;At&&be.parent.kind===253;)At.continueTarget=Ur,At=At.next,be=be.parent;return Ur}function Le(be){var Ur=vr(be,mr()),At=lr(),an=lr();Oe(Ur,fe),fe=Ur,yt(be.expression,At,an),fe=qr(At),Fe(be.statement,an,Ur),Oe(Ur,fe),fe=qr(an)}function cr(be){var Ur=mr(),At=vr(be,lr()),an=lr();Oe(Ur,fe),fe=Ur,Fe(be.statement,an,At),Oe(At,fe),fe=qr(At),yt(be.expression,Ur,an),fe=qr(an)}function $r(be){var Ur=vr(be,mr()),At=lr(),an=lr();En(be.initializer),Oe(Ur,fe),fe=Ur,yt(be.condition,At,an),fe=qr(At),Fe(be.statement,an,Ur),En(be.incrementor),Oe(Ur,fe),fe=qr(an)}function Re(be){var Ur=vr(be,mr()),At=lr();En(be.expression),Oe(Ur,fe),fe=Ur,be.kind===247&&En(be.awaitModifier),Oe(At,fe),En(be.initializer),be.initializer.kind!==258&&en(be.initializer),Fe(be.statement,At,Ur),Oe(Ur,fe),fe=qr(At)}function xr(be){var Ur=lr(),At=lr(),an=lr();yt(be.expression,Ur,At),fe=qr(Ur),En(be.thenStatement),Oe(an,fe),fe=qr(At),En(be.elseStatement),Oe(an,fe),fe=qr(an)}function Br(be){En(be.expression),be.kind===250&&(q=!0,oe&&Oe(oe,fe)),fe=J}function Qr(be){for(var Ur=H;Ur;Ur=Ur.next)if(Ur.name===be)return Ur}function ct(be,Ur,At){var an=be.kind===249?Ur:At;an&&(Oe(an,fe),fe=J)}function ft(be){if(En(be.label),be.label){var Ur=Qr(be.label.escapedText);Ur&&(Ur.referenced=!0,ct(be,Ur.breakTarget,Ur.continueTarget))}else ct(be,_e,ne)}function Dt(be){var Ur=oe,At=M,an=lr(),Kn=lr(),Yn=lr();if(be.finallyBlock&&(oe=Kn),Oe(Yn,fe),M=Yn,En(be.tryBlock),Oe(an,fe),be.catchClause&&(fe=qr(Yn),Yn=lr(),Oe(Yn,fe),M=Yn,En(be.catchClause),Oe(an,fe)),oe=Ur,M=At,be.finallyBlock){var Si=lr();Si.antecedents=e.concatenate(e.concatenate(an.antecedents,Yn.antecedents),Kn.antecedents),fe=Si,En(be.finallyBlock),fe.flags&1?fe=J:(oe&&Kn.antecedents&&Oe(oe,Hr(Si,Kn.antecedents,fe)),M&&Yn.antecedents&&Oe(M,Hr(Si,Yn.antecedents,fe)),fe=an.antecedents?Hr(Si,an.antecedents,fe):J)}else fe=qr(an)}function Me(be){var Ur=lr();En(be.expression);var At=_e,an=U;_e=Ur,U=fe,En(be.caseBlock),Oe(Ur,fe);var Kn=e.forEach(be.caseBlock.clauses,function(Yn){return Yn.kind===293});be.possiblyExhaustive=!Kn&&!Ur.antecedents,Kn||Oe(Ur,tt(U,be,0,0)),_e=At,U=an,fe=qr(Ur)}function Ke(be){for(var Ur=be.clauses,At=Ae(be.parent.expression),an=J,Kn=0;Kn<Ur.length;Kn++){for(var Yn=Kn;!Ur[Kn].statements.length&&Kn+1<Ur.length;)En(Ur[Kn]),Kn++;var Si=lr();Oe(Si,At?tt(U,be.parent,Yn,Kn+1):U),Oe(Si,an),fe=qr(Si);var vi=Ur[Kn];En(vi),an=fe,!(fe.flags&1)&&Kn!==Ur.length-1&&X.noFallthroughCasesInSwitch&&(vi.fallthroughFlowNode=fe)}}function Vr(be){var Ur=fe;fe=U,En(be.expression),fe=Ur,rr(be.statements)}function Yr(be){En(be.expression),Nt(be.expression)}function Nt(be){if(be.kind===210){var Ur=be;Ur.expression.kind!==106&&e.isDottedName(Ur.expression)&&(fe=or(fe,Ur))}}function Wt(be){var Ur=lr();H={next:H,name:be.label.escapedText,breakTarget:Ur,continueTarget:void 0,referenced:!1},En(be.label),En(be.statement),!H.referenced&&!X.allowUnusedLabels&&Ka(e.unusedLabelIsError(X),be.label,e.Diagnostics.Unused_label),H=H.next,Oe(Ur,fe),fe=qr(Ur)}function sn(be){be.kind===223&&be.operatorToken.kind===63?en(be.left):en(be)}function en(be){if(qe(be))fe=ut(16,fe,be);else if(be.kind===206)for(var Ur=0,At=be.elements;Ur<At.length;Ur++){var an=At[Ur];an.kind===227?en(an.expression):sn(an)}else if(be.kind===207)for(var Kn=0,Yn=be.properties;Kn<Yn.length;Kn++){var Si=Yn[Kn];Si.kind===299?sn(Si.initializer):Si.kind===300?en(Si.name):Si.kind===301&&en(Si.expression)}}function Ir(be,Ur,At){var an=lr();be.operatorToken.kind===55||be.operatorToken.kind===76?yt(be.left,an,At):yt(be.left,Ur,an),fe=qr(an),En(be.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(be.operatorToken.kind)?(Ct(En,be.right,Ur,At),en(be.left),Oe(Ur,Ze(32,fe,be)),Oe(At,Ze(64,fe,be))):yt(be.right,Ur,At)}function Jr(be){if(be.operator===53){var Ur=w;w=re,re=Ur,je(be),re=w,w=Ur}else je(be),(be.operator===45||be.operator===46)&&en(be.operand)}function ye(be){je(be),(be.operator===45||be.operator===46)&&en(be.operand)}function Ie(be){I?(I=!1,En(be.operatorToken),En(be.right),I=!0,En(be.left)):(I=!0,En(be.left),I=!1,En(be.operatorToken),En(be.right)),en(be.left)}function We(){return e.createBinaryExpressionTrampoline(be,Ur,At,an,Kn,void 0);function be(Si,vi){if(vi){vi.stackIndex++,e.setParent(Si,y);var Da=K;Ws(Si);var ta=y;y=Si,vi.skip=!1,vi.inStrictModeStack[vi.stackIndex]=Da,vi.parentStack[vi.stackIndex]=ta}else vi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var fo=Si.operatorToken.kind;if(fo===55||fo===56||fo===60||e.isLogicalOrCoalescingAssignmentOperator(fo)){if(_t(Si)){var oo=lr();Ir(Si,oo,oo),fe=qr(oo)}else Ir(Si,w,re);vi.skip=!0}return vi}function Ur(Si,vi,Da){if(!vi.skip){var ta=Yn(Si);return Da.operatorToken.kind===27&&Nt(Si),ta}}function At(Si,vi,Da){vi.skip||En(Si)}function an(Si,vi,Da){if(!vi.skip){var ta=Yn(Si);return Da.operatorToken.kind===27&&Nt(Si),ta}}function Kn(Si,vi){if(!vi.skip){var Da=Si.operatorToken.kind;if(e.isAssignmentOperator(Da)&&!e.isAssignmentTarget(Si)&&(en(Si.left),Da===63&&Si.left.kind===209)){var ta=Si.left;Je(ta.expression)&&(fe=ut(256,fe,Si))}}var fo=vi.inStrictModeStack[vi.stackIndex],oo=vi.parentStack[vi.stackIndex];fo!==void 0&&(K=fo),oo!==void 0&&(y=oo),vi.skip=!1,vi.stackIndex--}function Yn(Si){if(Si&&e.isBinaryExpression(Si)&&!e.isDestructuringAssignment(Si))return Si;En(Si)}}function dr(be){je(be),be.expression.kind===208&&en(be.expression)}function ar(be){var Ur=lr(),At=lr(),an=lr();yt(be.condition,Ur,At),fe=qr(Ur),En(be.questionToken),En(be.whenTrue),Oe(an,fe),fe=qr(At),En(be.colonToken),En(be.whenFalse),Oe(an,fe),fe=qr(an)}function Sr(be){var Ur=e.isOmittedExpression(be)?void 0:be.name;if(e.isBindingPattern(Ur))for(var At=0,an=Ur.elements;At<an.length;At++){var Kn=an[At];Sr(Kn)}else fe=ut(16,fe,be)}function Or(be){je(be),(be.initializer||e.isForInOrOfStatement(be.parent.parent))&&Sr(be)}function Ge(be){En(be.dotDotDotToken),En(be.propertyName),Lr(be.initializer),En(be.name)}function ur(be){rr(be.modifiers),En(be.dotDotDotToken),En(be.questionToken),En(be.type),Lr(be.initializer),En(be.name)}function Lr(be){if(be){var Ur=fe;if(En(be),!(Ur===J||Ur===fe)){var At=lr();Oe(At,Ur),Oe(At,fe),fe=qr(At)}}}function Ar(be){En(be.tagName),be.kind!==342&&be.fullName&&(e.setParent(be.fullName,be),e.setParentRecursive(be.fullName,!1)),typeof be.comment!="string"&&rr(be.comment)}function rt(be){je(be);var Ur=e.getHostSignatureFromJSDoc(be);Ur&&Ur.kind!==171&&ae(Ur.symbol,Ur,32)}function Et(be,Ur,At){Ct(En,be,Ur,At),(!e.isOptionalChain(be)||e.isOutermostOptionalChain(be))&&(Oe(Ur,Ze(32,fe,be)),Oe(At,Ze(64,fe,be)))}function St(be){switch(be.kind){case 208:En(be.questionDotToken),En(be.name);break;case 209:En(be.questionDotToken),En(be.argumentExpression);break;case 210:En(be.questionDotToken),rr(be.typeArguments),rr(be.arguments);break}}function Pt(be,Ur,At){var an=e.isOptionalChainRoot(be)?lr():void 0;Et(be.expression,an||Ur,At),an&&(fe=qr(an)),Ct(St,be,Ur,At),e.isOutermostOptionalChain(be)&&(Oe(Ur,Ze(32,fe,be)),Oe(At,Ze(64,fe,be)))}function pt(be){if(_t(be)){var Ur=lr();Pt(be,Ur,Ur),fe=qr(Ur)}else Pt(be,w,re)}function Ft(be){e.isOptionalChain(be)?pt(be):je(be)}function ht(be){e.isOptionalChain(be)?pt(be):je(be)}function Yt(be){if(e.isOptionalChain(be))pt(be);else{var Ur=e.skipParentheses(be.expression);Ur.kind===215||Ur.kind===216?(rr(be.typeArguments),rr(be.arguments),En(be.expression)):(je(be),be.expression.kind===106&&(fe=or(fe,be)))}if(be.expression.kind===208){var At=be.expression;e.isIdentifier(At.name)&&Je(At.expression)&&e.isPushOrUnshiftIdentifier(At.name)&&(fe=ut(256,fe,be))}}function un(be){switch(be.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(be))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return be.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 2;case 238:return e.isFunctionLike(be.parent)||e.isClassStaticBlockDeclaration(be.parent)?0:2}return 0}function wn(be){z&&(z.nextContainer=be),z=be}function Bn(be,Ur,At){switch(C.kind){case 264:return nr(be,Ur,At);case 308:return Tn(be,Ur,At);case 228:case 260:return yn(be,Ur,At);case 263:return we(C.symbol.exports,C.symbol,be,Ur,At);case 184:case 325:case 207:case 261:case 289:return we(C.symbol.members,C.symbol,be,Ur,At);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 348:case 341:case 172:case 262:case 197:return we(C.locals,void 0,be,Ur,At)}}function yn(be,Ur,At){return e.isStatic(be)?we(C.symbol.exports,C.symbol,be,Ur,At):we(C.symbol.members,C.symbol,be,Ur,At)}function Tn(be,Ur,At){return e.isExternalModule(k)?nr(be,Ur,At):we(k.locals,void 0,be,Ur,At)}function An(be){var Ur=e.isSourceFile(be)?be:e.tryCast(be.body,e.isModuleBlock);return!!Ur&&Ur.statements.some(function(At){return e.isExportDeclaration(At)||e.isExportAssignment(At)})}function ii(be){be.flags&16777216&&!An(be)?be.flags|=64:be.flags&=-65}function Xe(be){if(ii(be),e.isAmbientModule(be))if(e.hasSyntacticModifier(be,1)&&Do(be,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(be))hr(be);else{var Ur=void 0;if(be.name.kind===10){var At=be.name.text;Ur=e.tryParsePattern(At),Ur===void 0&&Do(be.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,At)}var an=Bn(be,512,110735);k.patternAmbientModules=e.append(k.patternAmbientModules,Ur&&!e.isString(Ur)?{pattern:Ur,symbol:an}:void 0)}else{var Kn=hr(be);if(Kn!==0){var an=be.symbol;an.constEnumOnlyModule=!(an.flags&304)&&Kn===2&&an.constEnumOnlyModule!==!1}}}function hr(be){var Ur=c(be),At=Ur!==0;return Bn(be,At?512:1024,At?110735:0),Ur}function at(be){var Ur=G(131072,Te(be));ae(Ur,be,131072);var At=G(2048,"__type");ae(At,be,2048),At.members=e.createSymbolTable(),At.members.set(Ur.escapedName,Ur)}function Qe(be){return Tt(be,4096,"__object")}function Qt(be){return Tt(be,4096,"__jsxAttributes")}function Zt(be,Ur,At){return Bn(be,Ur,At)}function Tt(be,Ur,At){var an=G(Ur,At);return Ur&106508&&(an.parent=C.symbol),ae(an,be,Ur),an}function gt(be,Ur,At){switch(F.kind){case 264:nr(be,Ur,At);break;case 308:if(e.isExternalOrCommonJsModule(C)){nr(be,Ur,At);break}default:F.locals||(F.locals=e.createSymbolTable(),wn(F)),we(F.locals,void 0,be,Ur,At)}}function kt(){if(ge){for(var be=C,Ur=z,At=F,an=y,Kn=fe,Yn=0,Si=ge;Yn<Si.length;Yn++){var vi=Si[Yn],Da=vi.parent.parent;C=e.findAncestor(Da.parent,function(er){return!!(un(er)&1)})||k,F=e.getEnclosingBlockScopeContainer(Da)||k,fe=O({flags:2}),y=vi,En(vi.typeExpression);var ta=e.getNameOfDeclaration(vi);if((e.isJSDocEnumTag(vi)||!vi.fullName)&&ta&&e.isPropertyAccessEntityNameExpression(ta.parent)){var fo=Ia(ta.parent);if(fo){qi(k.symbol,ta.parent,fo,!!e.findAncestor(ta,function(er){return e.isPropertyAccessExpression(er)&&er.name.escapedText==="prototype"}),!1);var oo=C;switch(e.getAssignmentDeclarationPropertyAccessKind(ta.parent)){case 1:case 2:e.isExternalOrCommonJsModule(k)?C=k:C=void 0;break;case 4:C=ta.parent.expression;break;case 3:C=ta.parent.expression.name;break;case 5:C=Z(k,ta.parent.expression)?k:e.isPropertyAccessExpression(ta.parent.expression)?ta.parent.expression.name:ta.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}C&&nr(vi,524288,788968),C=oo}}else e.isJSDocEnumTag(vi)||!vi.fullName||vi.fullName.kind===79?(y=vi.parent,gt(vi,524288,788968)):En(vi.fullName)}C=be,z=Ur,F=At,y=an,fe=Kn}}function Lt(be){!k.parseDiagnostics.length&&!(be.flags&16777216)&&!(be.flags&8388608)&&!e.isIdentifierName(be)&&(K&&be.originalKeywordKind>=117&&be.originalKeywordKind<=125?k.bindDiagnostics.push(N(be,$e(be),e.declarationNameToString(be))):be.originalKeywordKind===133?e.isExternalModule(k)&&e.isInTopLevelContext(be)?k.bindDiagnostics.push(N(be,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(be))):be.flags&32768&&k.bindDiagnostics.push(N(be,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(be))):be.originalKeywordKind===125&&be.flags&8192&&k.bindDiagnostics.push(N(be,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(be))))}function $e(be){return e.getContainingClass(be)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:k.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function et(be){be.escapedText==="#constructor"&&(k.parseDiagnostics.length||k.bindDiagnostics.push(N(be,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(be))))}function It(be){K&&e.isLeftHandSideExpression(be.left)&&e.isAssignmentOperator(be.operatorToken.kind)&&Wi(be,be.left)}function xn(be){K&&be.variableDeclaration&&Wi(be,be.variableDeclaration.name)}function pi(be){if(K&&be.expression.kind===79){var Ur=e.getErrorSpanForNode(k,be.expression);k.bindDiagnostics.push(e.createFileDiagnostic(k,Ur.start,Ur.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function ai(be){return e.isIdentifier(be)&&(be.escapedText==="eval"||be.escapedText==="arguments")}function Wi(be,Ur){if(Ur&&Ur.kind===79){var At=Ur;if(ai(At)){var an=e.getErrorSpanForNode(k,Ur);k.bindDiagnostics.push(e.createFileDiagnostic(k,an.start,an.length,ji(be),e.idText(At)))}}}function ji(be){return e.getContainingClass(be)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:k.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function fn(be){K&&Wi(be,be.name)}function Ri(be){return e.getContainingClass(be)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:k.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function ma(be){if(A<2&&F.kind!==308&&F.kind!==264&&!e.isFunctionLikeOrClassStaticBlockDeclaration(F)){var Ur=e.getErrorSpanForNode(k,be);k.bindDiagnostics.push(e.createFileDiagnostic(k,Ur.start,Ur.length,Ri(be)))}}function ra(be){A<1&&K&&be.numericLiteralFlags&32&&k.bindDiagnostics.push(N(be,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function vn(be){K&&Wi(be,be.operand)}function zo(be){K&&(be.operator===45||be.operator===46)&&Wi(be,be.operand)}function _a(be){K&&Do(be,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Ha(be){K&&e.getEmitScriptTarget(X)>=2&&(e.isDeclarationStatement(be.statement)||e.isVariableStatement(be.statement))&&Do(be.label,e.Diagnostics.A_label_is_not_allowed_here)}function Do(be,Ur,At,an,Kn){var Yn=e.getSpanOfTokenAtPosition(k,be.pos);k.bindDiagnostics.push(e.createFileDiagnostic(k,Yn.start,Yn.length,Ur,At,an,Kn))}function Ka(be,Ur,At){rs(be,Ur,Ur,At)}function rs(be,Ur,At,an){ts(be,{pos:e.getTokenPosOfNode(Ur,k),end:At.end},an)}function ts(be,Ur,At){var an=e.createFileDiagnostic(k,Ur.pos,Ur.end-Ur.pos,At);be?k.bindDiagnostics.push(an):k.bindSuggestionDiagnostics=e.append(k.bindSuggestionDiagnostics,n(n({},an),{category:e.DiagnosticCategory.Suggestion}))}function En(be){if(be){e.setParent(be,y),e.tracing&&(be.tracingPath=k.path);var Ur=K;if(Ws(be),be.kind>162){var At=y;y=be;var an=un(be);an===0?Ce(be):me(be,an),y=At}else{var At=y;be.kind===1&&(y=be),ca(be),y=At}K=Ur}}function ca(be){if(e.hasJSDocNodes(be))if(e.isInJSFile(be))for(var Ur=0,At=be.jsDoc;Ur<At.length;Ur++){var an=At[Ur];En(an)}else for(var Kn=0,Yn=be.jsDoc;Kn<Yn.length;Kn++){var an=Yn[Kn];e.setParent(an,be),e.setParentRecursive(an,!1)}}function bo(be){if(!K)for(var Ur=0,At=be;Ur<At.length;Ur++){var an=At[Ur];if(!e.isPrologueDirective(an))return;if(Oo(an)){K=!0;return}}}function Oo(be){var Ur=e.getSourceTextOfNodeFromSourceFile(k,be.expression);return Ur==='"use strict"'||Ur==="'use strict'"}function Ws(be){switch(be.kind){case 79:if(be.isInJSDocNamespace){for(var Ur=be.parent;Ur&&!e.isJSDocTypeAlias(Ur);)Ur=Ur.parent;gt(Ur,524288,788968);break}case 108:return fe&&(e.isExpression(be)||y.kind===300)&&(be.flowNode=fe),Lt(be);case 163:fe&&e.isPartOfTypeQuery(be)&&(be.flowNode=fe);break;case 233:case 106:be.flowNode=fe;break;case 80:return et(be);case 208:case 209:var At=be;fe&&qe(At)&&(At.flowNode=fe),e.isSpecialPropertyDeclaration(At)&&Er(At),e.isInJSFile(At)&&k.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(At)&&!ce(F,"module")&&we(k.locals,void 0,At.expression,134217729,111550);break;case 223:var an=e.getAssignmentDeclarationKind(be);switch(an){case 1:ro(be);break;case 2:Ye(be);break;case 3:ln(be.left,be);break;case 6:Wr(be);break;case 4:Ut(be);break;case 5:var Kn=be.left.expression;if(e.isInJSFile(be)&&e.isIdentifier(Kn)){var Yn=ce(F,Kn.escapedText);if(e.isThisInitializedDeclaration(Yn==null?void 0:Yn.valueDeclaration)){Ut(be);break}}Cn(be);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return It(be);case 295:return xn(be);case 217:return pi(be);case 8:return ra(be);case 222:return vn(be);case 221:return zo(be);case 251:return _a(be);case 253:return Ha(be);case 194:Pe=!0;return;case 179:break;case 165:return nu(be);case 166:return Su(be);case 257:return $c(be);case 205:return be.flowNode=fe,$c(be);case 169:case 168:return Co(be);case 299:case 300:return tc(be,4,0);case 302:return tc(be,8,900095);case 176:case 177:case 178:return Bn(be,131072,0);case 171:case 170:return tc(be,8192|(be.questionToken?16777216:0),e.isObjectLiteralMethod(be)?0:103359);case 259:return Lc(be);case 173:return Bn(be,16384,0);case 174:return tc(be,32768,46015);case 175:return tc(be,65536,78783);case 181:case 320:case 326:case 182:return at(be);case 184:case 325:case 197:return qs(be);case 335:return rt(be);case 207:return Qe(be);case 215:case 216:return Hc(be);case 210:var Si=e.getAssignmentDeclarationKind(be);switch(Si){case 7:return kn(be);case 8:return ka(be);case 9:return Ot(be);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(be)&&yu(be);break;case 228:case 260:return K=!0,bu(be);case 261:return gt(be,64,788872);case 262:return gt(be,524288,788968);case 263:return tu(be);case 264:return Xe(be);case 289:return Qt(be);case 288:return Zt(be,4,0);case 268:case 271:case 273:case 278:return Bn(be,2097152,2097152);case 267:return kr(be);case 270:return Nn(be);case 275:return jr(be);case 274:return Ko(be);case 308:return bo(be.statements),gs();case 238:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(be.parent))return;case 265:return bo(be.statements);case 343:if(be.parent.kind===326)return Su(be);if(be.parent.kind!==325)break;case 350:var vi=be,Da=vi.isBracketed||vi.typeExpression&&vi.typeExpression.type.kind===319?16777220:4;return Bn(vi,Da,0);case 348:case 341:case 342:return(ge||(ge=[])).push(be)}}function Co(be){var Ur=e.isAutoAccessorPropertyDeclaration(be),At=Ur?98304:4,an=Ur?13247:0;return tc(be,At|(be.questionToken?16777216:0),an)}function qs(be){return Tt(be,2048,"__type")}function gs(){if(ii(k),e.isExternalModule(k))Ds();else if(e.isJsonSourceFile(k)){Ds();var be=k.symbol;we(k.symbol.exports,k.symbol,k,4,67108863),k.symbol=be}}function Ds(){Tt(k,512,'"'.concat(e.removeFileExtension(k.fileName),'"'))}function Ko(be){if(!C.symbol||!C.symbol.exports)Tt(be,111551,Te(be));else{var Ur=e.exportAssignmentIsAlias(be)?2097152:4,At=we(C.symbol.exports,C.symbol,be,Ur,67108863);be.isExportEquals&&e.setValueDeclaration(At,be)}}function kr(be){e.some(be.modifiers)&&k.bindDiagnostics.push(N(be,e.Diagnostics.Modifiers_cannot_appear_here));var Ur=e.isSourceFile(be.parent)?e.isExternalModule(be.parent)?be.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;Ur?k.bindDiagnostics.push(N(be,Ur)):(k.symbol.globalExports=k.symbol.globalExports||e.createSymbolTable(),we(k.symbol.globalExports,k.symbol,be,2097152,2097152))}function jr(be){!C.symbol||!C.symbol.exports?Tt(be,8388608,Te(be)):be.exportClause?e.isNamespaceExport(be.exportClause)&&(e.setParent(be.exportClause,be),we(C.symbol.exports,C.symbol,be.exportClause,2097152,2097152)):we(C.symbol.exports,C.symbol,be,8388608,0)}function Nn(be){be.name&&Bn(be,2097152,2097152)}function xi(be){return k.externalModuleIndicator&&k.externalModuleIndicator!==!0?!1:(k.commonJsModuleIndicator||(k.commonJsModuleIndicator=be,k.externalModuleIndicator||Ds()),!0)}function ka(be){if(xi(be)){var Ur=ds(be.arguments[0],void 0,function(an,Kn){return Kn&&ae(Kn,an,67110400),Kn});if(Ur){var At=1048580;we(Ur.exports,Ur,be,At,0)}}}function ro(be){if(xi(be)){var Ur=ds(be.left.expression,void 0,function(Kn,Yn){return Yn&&ae(Yn,Kn,67110400),Yn});if(Ur){var At=e.isAliasableExpression(be.right)&&(e.isExportsIdentifier(be.left.expression)||e.isModuleExportsAccessExpression(be.left.expression)),an=At?2097152:1048580;e.setParent(be.left,be),we(Ur.exports,Ur,be.left,an,0)}}}function Ye(be){if(xi(be)){var Ur=e.getRightMostAssignedExpression(be.right);if(!(e.isEmptyObjectLiteral(Ur)||C===k&&Z(k,Ur))){if(e.isObjectLiteralExpression(Ur)&&e.every(Ur.properties,e.isShorthandPropertyAssignment)){e.forEach(Ur.properties,lt);return}var At=e.exportAssignmentIsAlias(be)?2097152:1049092,an=we(k.symbol.exports,k.symbol,be,At|67108864,0);e.setValueDeclaration(an,be)}}}function lt(be){we(k.symbol.exports,k.symbol,be,69206016,0)}function Ut(be){e.Debug.assert(e.isInJSFile(be));var Ur=e.isBinaryExpression(be)&&e.isPropertyAccessExpression(be.left)&&e.isPrivateIdentifier(be.left.name)||e.isPropertyAccessExpression(be)&&e.isPrivateIdentifier(be.name);if(!Ur){var At=e.getThisContainer(be,!1);switch(At.kind){case 259:case 215:var an=At.symbol;if(e.isBinaryExpression(At.parent)&&At.parent.operatorToken.kind===63){var Kn=At.parent.left;e.isBindableStaticAccessExpression(Kn)&&e.isPrototypeAccess(Kn.expression)&&(an=Wo(Kn.expression.expression,B))}an&&an.valueDeclaration&&(an.members=an.members||e.createSymbolTable(),e.hasDynamicName(be)?Ve(be,an,an.members):we(an.members,an,be,67108868,0),ae(an,an.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:var Yn=At.parent,Si=e.isStatic(At)?Yn.symbol.exports:Yn.symbol.members;e.hasDynamicName(be)?Ve(be,Yn.symbol,Si):we(Si,Yn.symbol,be,67108868,0,!0);break;case 308:if(e.hasDynamicName(be))break;At.commonJsModuleIndicator?we(At.symbol.exports,At.symbol,be,1048580,0):Bn(be,1,111550);break;default:e.Debug.failBadSyntaxKind(At)}}}function Ve(be,Ur,At){we(At,Ur,be,4,0,!0,!0),yr(be,Ur)}function yr(be,Ur){Ur&&(Ur.assignmentDeclarationMembers||(Ur.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(be),be)}function Er(be){be.expression.kind===108?Ut(be):e.isBindableStaticAccessExpression(be)&&be.parent.parent.kind===308&&(e.isPrototypeAccess(be.expression)?ln(be,be.parent):_i(be))}function Wr(be){e.setParent(be.left,be),e.setParent(be.right,be),$a(be.left.expression,be.left,!1,!0)}function Ot(be){var Ur=Wo(be.arguments[0].expression);Ur&&Ur.valueDeclaration&&ae(Ur,Ur.valueDeclaration,32),va(be,Ur,!0)}function ln(be,Ur){var At=be.expression,an=At.expression;e.setParent(an,At),e.setParent(At,be),e.setParent(be,Ur),$a(an,be,!0,!0)}function kn(be){var Ur=Wo(be.arguments[0]),At=be.parent.parent.kind===308;Ur=qi(Ur,be.arguments[0],At,!1,!1),va(be,Ur,!1)}function Cn(be){var Ur,At=Wo(be.left.expression,C)||Wo(be.left.expression,F);if(!(!e.isInJSFile(be)&&!e.isFunctionSymbol(At))){var an=e.getLeftmostAccessExpression(be.left);if(!(e.isIdentifier(an)&&((Ur=ce(C,an.escapedText))===null||Ur===void 0?void 0:Ur.flags)&2097152))if(e.setParent(be.left,be),e.setParent(be.right,be),e.isIdentifier(be.left.expression)&&C===k&&Z(k,be.left.expression))ro(be);else if(e.hasDynamicName(be)){Tt(be,67108868,"__computed");var Kn=qi(At,be.left.expression,Ia(be.left),!1,!1);yr(be,Kn)}else _i(e.cast(be.left,e.isBindableStaticNameExpression))}}function _i(be){e.Debug.assert(!e.isIdentifier(be)),e.setParent(be.expression,be),$a(be.expression,be,!1,!1)}function qi(be,Ur,At,an,Kn){if((be==null?void 0:be.flags)&2097152)return be;if(At&&!an){var Yn=67110400,Si=110735;be=ds(Ur,be,function(vi,Da,ta){if(Da)return ae(Da,vi,Yn),Da;var fo=ta?ta.exports:k.jsGlobalAugmentations||(k.jsGlobalAugmentations=e.createSymbolTable());return we(fo,ta,vi,Yn,Si)})}return Kn&&be&&be.valueDeclaration&&ae(be,be.valueDeclaration,32),be}function va(be,Ur,At){if(!(!Ur||!ws(Ur))){var an=At?Ur.members||(Ur.members=e.createSymbolTable()):Ur.exports||(Ur.exports=e.createSymbolTable()),Kn=0,Yn=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(be))?(Kn=8192,Yn=103359):e.isCallExpression(be)&&e.isBindableObjectDefinePropertyCall(be)&&(e.some(be.arguments[2].properties,function(Si){var vi=e.getNameOfDeclaration(Si);return!!vi&&e.isIdentifier(vi)&&e.idText(vi)==="set"})&&(Kn|=65540,Yn|=78783),e.some(be.arguments[2].properties,function(Si){var vi=e.getNameOfDeclaration(Si);return!!vi&&e.isIdentifier(vi)&&e.idText(vi)==="get"})&&(Kn|=32772,Yn|=46015)),Kn===0&&(Kn=4,Yn=0),we(an,Ur,be,Kn|67108864,Yn&-67108865)}}function Ia(be){return e.isBinaryExpression(be.parent)?rc(be.parent).parent.kind===308:be.parent.parent.kind===308}function $a(be,Ur,At,an){var Kn=Wo(be,C)||Wo(be,F),Yn=Ia(Ur);Kn=qi(Kn,Ur.expression,Yn,At,an),va(Ur,Kn,At)}function ws(be){if(be.flags&1072)return!0;var Ur=be.valueDeclaration;if(Ur&&e.isCallExpression(Ur))return!!e.getAssignedExpandoInitializer(Ur);var At=Ur?e.isVariableDeclaration(Ur)?Ur.initializer:e.isBinaryExpression(Ur)?Ur.right:e.isPropertyAccessExpression(Ur)&&e.isBinaryExpression(Ur.parent)?Ur.parent.right:void 0:void 0;if(At=At&&e.getRightMostAssignedExpression(At),At){var an=e.isPrototypeAccess(e.isVariableDeclaration(Ur)?Ur.name:e.isBinaryExpression(Ur)?Ur.left:Ur);return!!e.getExpandoInitializer(e.isBinaryExpression(At)&&(At.operatorToken.kind===56||At.operatorToken.kind===60)?At.right:At,an)}return!1}function rc(be){for(;e.isBinaryExpression(be.parent);)be=be.parent;return be.parent}function Wo(be,Ur){if(Ur===void 0&&(Ur=C),e.isIdentifier(be))return ce(Ur,be.escapedText);var At=Wo(be.expression);return At&&At.exports&&At.exports.get(e.getElementOrPropertyAccessName(be))}function ds(be,Ur,At){if(Z(k,be))return k.symbol;if(e.isIdentifier(be))return At(be,Wo(be),Ur);var an=ds(be.expression,Ur,At),Kn=e.getNameOrArgument(be);return e.isPrivateIdentifier(Kn)&&e.Debug.fail("unexpected PrivateIdentifier"),At(Kn,an&&an.exports&&an.exports.get(e.getElementOrPropertyAccessName(be)),an)}function yu(be){!k.commonJsModuleIndicator&&e.isRequireCall(be,!1)&&xi(be)}function bu(be){if(be.kind===260)gt(be,32,899503);else{var Ur=be.name?be.name.escapedText:"__class";Tt(be,32,Ur),be.name&&ee.add(be.name.escapedText)}var At=be.symbol,an=G(4194308,"prototype"),Kn=At.exports.get(an.escapedName);Kn&&(be.name&&e.setParent(be.name,be),k.bindDiagnostics.push(N(Kn.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(an)))),At.exports.set(an.escapedName,an),an.parent=At}function tu(be){return e.isEnumConst(be)?gt(be,128,899967):gt(be,256,899327)}function $c(be){if(K&&Wi(be,be.name),!e.isBindingPattern(be.name)){var Ur=be.kind===257?be:be.parent.parent;e.isInJSFile(be)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Ur)&&!e.getJSDocTypeTag(be)&&!(e.getCombinedModifierFlags(be)&1)?Bn(be,2097152,2097152):e.isBlockOrCatchScoped(be)?gt(be,2,111551):e.isParameterDeclaration(be)?Bn(be,1,111551):Bn(be,1,111550)}}function Su(be){if(!(be.kind===343&&C.kind!==326)&&(K&&!(be.flags&16777216)&&Wi(be,be.name),e.isBindingPattern(be.name)?Tt(be,1,"__"+be.parent.parameters.indexOf(be)):Bn(be,1,111551),e.isParameterPropertyDeclaration(be,be.parent))){var Ur=be.parent.parent;we(Ur.symbol.members,Ur.symbol,be,4|(be.questionToken?16777216:0),0)}}function Lc(be){!k.isDeclarationFile&&!(be.flags&16777216)&&e.isAsyncFunction(be)&&(R|=2048),fn(be),K?(ma(be),gt(be,16,110991)):Bn(be,16,110991)}function Hc(be){!k.isDeclarationFile&&!(be.flags&16777216)&&e.isAsyncFunction(be)&&(R|=2048),fe&&(be.flowNode=fe),fn(be);var Ur=be.name?be.name.escapedText:"__function";return Tt(be,16,Ur)}function tc(be,Ur,At){return!k.isDeclarationFile&&!(be.flags&16777216)&&e.isAsyncFunction(be)&&(R|=2048),fe&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(be)&&(be.flowNode=fe),e.hasDynamicName(be)?Tt(be,Ur,"__computed"):Bn(be,Ur,At)}function fc(be){var Ur=e.findAncestor(be,function(At){return At.parent&&e.isConditionalTypeNode(At.parent)&&At.parent.extendsType===At});return Ur&&Ur.parent}function nu(be){if(e.isJSDocTemplateTag(be.parent)){var Ur=e.getEffectiveContainerForJSDocTemplateTag(be.parent);Ur?(Ur.locals||(Ur.locals=e.createSymbolTable()),we(Ur.locals,void 0,be,262144,526824)):Bn(be,262144,526824)}else if(be.parent.kind===192){var At=fc(be.parent);At?(At.locals||(At.locals=e.createSymbolTable()),we(At.locals,void 0,be,262144,526824)):Tt(be,262144,Te(be))}else Bn(be,262144,526824)}function nc(be){var Ur=c(be);return Ur===1||Ur===2&&e.shouldPreserveConstEnums(X)}function Xt(be){if(!(fe.flags&1))return!1;if(fe===J){var Ur=e.isStatementButNotDeclaration(be)&&be.kind!==239||be.kind===260||be.kind===264&&nc(be);if(Ur&&(fe=de,!X.allowUnreachableCode)){var At=e.unreachableCodeIsError(X)&&!(be.flags&16777216)&&(!e.isVariableStatement(be)||!!(e.getCombinedNodeFlags(be.declarationList)&3)||be.declarationList.declarations.some(function(an){return!!an.initializer}));S(be,function(an,Kn){return rs(At,an,Kn,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function S(k,X){if(e.isStatement(k)&&te(k)&&e.isBlock(k.parent)){var A=k.parent.statements,y=e.sliceAfter(A,k);e.getRangesWhere(y,te,function(C,B){return X(y[C],y[B-1])})}else X(k,k)}function te(k){return!e.isFunctionDeclaration(k)&&!Y(k)&&!e.isEnumDeclaration(k)&&!(e.isVariableStatement(k)&&!(e.getCombinedNodeFlags(k)&3)&&k.declarationList.declarations.some(function(X){return!X.initializer}))}function Y(k){switch(k.kind){case 261:case 262:return!0;case 264:return c(k)!==1;case 263:return e.hasSyntacticModifier(k,2048);default:return!1}}function Z(k,X){var A=0,y=e.createQueue();for(y.enqueue(X);!y.isEmpty()&&A<100;){if(A++,X=y.dequeue(),e.isExportsIdentifier(X)||e.isModuleExportsAccessExpression(X))return!0;if(e.isIdentifier(X)){var C=ce(k,X.escapedText);if(C&&C.valueDeclaration&&e.isVariableDeclaration(C.valueDeclaration)&&C.valueDeclaration.initializer){var B=C.valueDeclaration.initializer;y.enqueue(B),e.isAssignmentExpression(B,!0)&&(y.enqueue(B.left),y.enqueue(B.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=Z;function ce(k,X){var A=k.locals&&k.locals.get(X);return A?A.exportSymbol||A:e.isSourceFile(k)&&k.jsGlobalAugmentations&&k.jsGlobalAugmentations.has(X)?k.jsGlobalAugmentations.get(X):k.symbol&&k.symbol.exports&&k.symbol.exports.get(X)}})(h||(h={}));var h;(function(e){function c(P,T,s,D,O,W,E,v,S,te){return Y;function Y(Z){Z===void 0&&(Z=function(){return!0});var ce=[],k=[];return{walkType:function(ne){try{return X(ne),{visitedTypes:e.getOwnValues(ce),visitedSymbols:e.getOwnValues(k)}}finally{e.clear(ce),e.clear(k)}},walkSymbol:function(ne){try{return _e(ne),{visitedTypes:e.getOwnValues(ce),visitedSymbols:e.getOwnValues(k)}}finally{e.clear(ce),e.clear(k)}}};function X(ne){if(ne&&!ce[ne.id]){ce[ne.id]=ne;var oe=_e(ne.symbol);if(!oe){if(ne.flags&524288){var w=ne,re=w.objectFlags;re&4&&A(ne),re&32&&z(ne),re&3&&Pe(ne),re&24&&fe(w)}ne.flags&262144&&y(ne),ne.flags&3145728&&C(ne),ne.flags&4194304&&B(ne),ne.flags&8388608&&F(ne)}}}function A(ne){X(ne.target),e.forEach(te(ne),X)}function y(ne){X(v(ne))}function C(ne){e.forEach(ne.types,X)}function B(ne){X(ne.type)}function F(ne){X(ne.objectType),X(ne.indexType),X(ne.constraint)}function z(ne){X(ne.typeParameter),X(ne.constraintType),X(ne.templateType),X(ne.modifiersType)}function ge(ne){var oe=T(ne);oe&&X(oe.type),e.forEach(ne.typeParameters,X);for(var w=0,re=ne.parameters;w<re.length;w++){var M=re[w];_e(M)}X(P(ne)),X(s(ne))}function Pe(ne){fe(ne),e.forEach(ne.typeParameters,X),e.forEach(D(ne),X),X(ne.thisType)}function fe(ne){for(var oe=O(ne),w=0,re=oe.indexInfos;w<re.length;w++){var M=re[w];X(M.keyType),X(M.type)}for(var U=0,H=oe.callSignatures;U<H.length;U++){var q=H[U];ge(q)}for(var R=0,K=oe.constructSignatures;R<K.length;R++){var q=K[R];ge(q)}for(var I=0,he=oe.properties;I<he.length;I++){var le=he[I];_e(le)}}function _e(ne){if(!ne)return!1;var oe=e.getSymbolId(ne);if(k[oe])return!1;if(k[oe]=ne,!Z(ne))return!0;var w=W(ne);return X(w),ne.exports&&ne.exports.forEach(_e),e.forEach(ne.declarations,function(re){if(re.type&&re.type.kind===183){var M=re.type,U=E(S(M.exprName));_e(U)}}),!1}}}e.createGetSymbolWalker=c})(h||(h={}));var h;(function(e){var c=/^".+"$/,P="(anonymous)",T=1,s=1,D=1,O=1,W;(function(I){I[I.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",I[I.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",I[I.AllowsStringInputFlag=4]="AllowsStringInputFlag",I[I.ForOfFlag=8]="ForOfFlag",I[I.YieldStarFlag=16]="YieldStarFlag",I[I.SpreadFlag=32]="SpreadFlag",I[I.DestructuringFlag=64]="DestructuringFlag",I[I.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",I[I.Element=1]="Element",I[I.Spread=33]="Spread",I[I.Destructuring=65]="Destructuring",I[I.ForOf=13]="ForOf",I[I.ForAwaitOf=15]="ForAwaitOf",I[I.YieldStar=17]="YieldStar",I[I.AsyncYieldStar=19]="AsyncYieldStar",I[I.GeneratorReturnType=1]="GeneratorReturnType",I[I.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(W||(W={}));var E;(function(I){I[I.Yield=0]="Yield",I[I.Return=1]="Return",I[I.Next=2]="Next"})(E||(E={}));var v;(function(I){I[I.Normal=0]="Normal",I[I.FunctionReturn=1]="FunctionReturn",I[I.GeneratorNext=2]="GeneratorNext",I[I.GeneratorYield=3]="GeneratorYield"})(v||(v={})),function(I){I[I.None=0]="None",I[I.TypeofEQString=1]="TypeofEQString",I[I.TypeofEQNumber=2]="TypeofEQNumber",I[I.TypeofEQBigInt=4]="TypeofEQBigInt",I[I.TypeofEQBoolean=8]="TypeofEQBoolean",I[I.TypeofEQSymbol=16]="TypeofEQSymbol",I[I.TypeofEQObject=32]="TypeofEQObject",I[I.TypeofEQFunction=64]="TypeofEQFunction",I[I.TypeofEQHostObject=128]="TypeofEQHostObject",I[I.TypeofNEString=256]="TypeofNEString",I[I.TypeofNENumber=512]="TypeofNENumber",I[I.TypeofNEBigInt=1024]="TypeofNEBigInt",I[I.TypeofNEBoolean=2048]="TypeofNEBoolean",I[I.TypeofNESymbol=4096]="TypeofNESymbol",I[I.TypeofNEObject=8192]="TypeofNEObject",I[I.TypeofNEFunction=16384]="TypeofNEFunction",I[I.TypeofNEHostObject=32768]="TypeofNEHostObject",I[I.EQUndefined=65536]="EQUndefined",I[I.EQNull=131072]="EQNull",I[I.EQUndefinedOrNull=262144]="EQUndefinedOrNull",I[I.NEUndefined=524288]="NEUndefined",I[I.NENull=1048576]="NENull",I[I.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",I[I.Truthy=4194304]="Truthy",I[I.Falsy=8388608]="Falsy",I[I.IsUndefined=16777216]="IsUndefined",I[I.IsNull=33554432]="IsNull",I[I.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",I[I.All=134217727]="All",I[I.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",I[I.BaseStringFacts=12582401]="BaseStringFacts",I[I.StringStrictFacts=16317953]="StringStrictFacts",I[I.StringFacts=16776705]="StringFacts",I[I.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",I[I.EmptyStringFacts=12582401]="EmptyStringFacts",I[I.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",I[I.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",I[I.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",I[I.BaseNumberFacts=12582146]="BaseNumberFacts",I[I.NumberStrictFacts=16317698]="NumberStrictFacts",I[I.NumberFacts=16776450]="NumberFacts",I[I.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",I[I.ZeroNumberFacts=12582146]="ZeroNumberFacts",I[I.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",I[I.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",I[I.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",I[I.BaseBigIntFacts=12581636]="BaseBigIntFacts",I[I.BigIntStrictFacts=16317188]="BigIntStrictFacts",I[I.BigIntFacts=16775940]="BigIntFacts",I[I.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",I[I.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",I[I.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",I[I.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",I[I.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",I[I.BaseBooleanFacts=12580616]="BaseBooleanFacts",I[I.BooleanStrictFacts=16316168]="BooleanStrictFacts",I[I.BooleanFacts=16774920]="BooleanFacts",I[I.FalseStrictFacts=12121864]="FalseStrictFacts",I[I.FalseFacts=12580616]="FalseFacts",I[I.TrueStrictFacts=7927560]="TrueStrictFacts",I[I.TrueFacts=16774920]="TrueFacts",I[I.SymbolStrictFacts=7925520]="SymbolStrictFacts",I[I.SymbolFacts=16772880]="SymbolFacts",I[I.ObjectStrictFacts=7888800]="ObjectStrictFacts",I[I.ObjectFacts=16736160]="ObjectFacts",I[I.FunctionStrictFacts=7880640]="FunctionStrictFacts",I[I.FunctionFacts=16728e3]="FunctionFacts",I[I.VoidFacts=9830144]="VoidFacts",I[I.UndefinedFacts=26607360]="UndefinedFacts",I[I.NullFacts=42917664]="NullFacts",I[I.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",I[I.EmptyObjectFacts=83886079]="EmptyObjectFacts",I[I.UnknownFacts=83886079]="UnknownFacts",I[I.AllTypeofNE=556800]="AllTypeofNE",I[I.OrFactsMask=8256]="OrFactsMask",I[I.AndFactsMask=134209471]="AndFactsMask"}(e.TypeFacts||(e.TypeFacts={}));var S=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),te;(function(I){I[I.Type=0]="Type",I[I.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",I[I.DeclaredType=2]="DeclaredType",I[I.ResolvedReturnType=3]="ResolvedReturnType",I[I.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",I[I.EnumTagType=5]="EnumTagType",I[I.ResolvedTypeArguments=6]="ResolvedTypeArguments",I[I.ResolvedBaseTypes=7]="ResolvedBaseTypes",I[I.WriteType=8]="WriteType"})(te||(te={})),function(I){I[I.Normal=0]="Normal",I[I.Contextual=1]="Contextual",I[I.Inferential=2]="Inferential",I[I.SkipContextSensitive=4]="SkipContextSensitive",I[I.SkipGenericFunctions=8]="SkipGenericFunctions",I[I.IsForSignatureHelp=16]="IsForSignatureHelp",I[I.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",I[I.RestBindingElement=64]="RestBindingElement"}(e.CheckMode||(e.CheckMode={})),function(I){I[I.BivariantCallback=1]="BivariantCallback",I[I.StrictCallback=2]="StrictCallback",I[I.IgnoreReturnTypes=4]="IgnoreReturnTypes",I[I.StrictArity=8]="StrictArity",I[I.Callback=3]="Callback"}(e.SignatureCheckMode||(e.SignatureCheckMode={}));var Y;(function(I){I[I.None=0]="None",I[I.Source=1]="Source",I[I.Target=2]="Target"})(Y||(Y={}));var Z;(function(I){I[I.None=0]="None",I[I.Source=1]="Source",I[I.Target=2]="Target",I[I.Both=3]="Both"})(Z||(Z={}));var ce;(function(I){I[I.IncludeReadonly=1]="IncludeReadonly",I[I.ExcludeReadonly=2]="ExcludeReadonly",I[I.IncludeOptional=4]="IncludeOptional",I[I.ExcludeOptional=8]="ExcludeOptional"})(ce||(ce={}));var k;(function(I){I[I.None=0]="None",I[I.Source=1]="Source",I[I.Target=2]="Target",I[I.Both=3]="Both"})(k||(k={}));var X;(function(I){I.resolvedExports="resolvedExports",I.resolvedMembers="resolvedMembers"})(X||(X={}));var A;(function(I){I[I.Local=0]="Local",I[I.Parameter=1]="Parameter"})(A||(A={}));var y=e.and(M,re),C;(function(I){I[I.GetAccessor=1]="GetAccessor",I[I.SetAccessor=2]="SetAccessor",I[I.PropertyAssignment=4]="PropertyAssignment",I[I.Method=8]="Method",I[I.PrivateStatic=16]="PrivateStatic",I[I.GetOrSetAccessor=3]="GetOrSetAccessor",I[I.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(C||(C={}));var B;(function(I){I[I.None=0]="None",I[I.ExportValue=1]="ExportValue",I[I.ExportType=2]="ExportType",I[I.ExportNamespace=4]="ExportNamespace"})(B||(B={}));var F;(function(I){I[I.None=0]="None",I[I.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",I[I.VoidIsNonOptional=2]="VoidIsNonOptional"})(F||(F={}));var z;(function(I){I[I.Uppercase=0]="Uppercase",I[I.Lowercase=1]="Lowercase",I[I.Capitalize=2]="Capitalize",I[I.Uncapitalize=3]="Uncapitalize"})(z||(z={}));var ge=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function Pe(){}function fe(){this.flags=0}function _e(I){return I.id||(I.id=s,s++),I.id}e.getNodeId=_e;function ne(I){return I.id||(I.id=T,T++),I.id}e.getSymbolId=ne;function oe(I,he){var le=e.getModuleInstanceState(I);return le===1||he&&le===2}e.isInstantiatedModule=oe;function w(I){var he=e.memoize(function(){var r=new e.Map;return I.getSourceFiles().forEach(function(a){a.resolvedModules&&a.resolvedModules.forEach(function(u){u&&u.packageId&&r.set(u.packageId.name,u.extension===".d.ts"||!!r.get(u.packageId.name))})}),r}),le=[],ee=function(r){le.push(r)},J,de,De,N=e.objectAllocator.getSymbolConstructor(),b=e.objectAllocator.getTypeConstructor(),Q=e.objectAllocator.getSignatureConstructor(),G=0,ae=0,Te=0,Ne=0,we=0,nr=0,tr=0,me,He,rr=e.createSymbolTable(),je=[1],Ce=I.getCompilerOptions(),Ae=e.getEmitScriptTarget(Ce),qe=e.getEmitModuleKind(Ce),xe=e.getUseDefineForClassFields(Ce),L=e.getAllowSyntheticDefaultImports(Ce),ue=e.getStrictOptionValue(Ce,"strictNullChecks"),Ue=e.getStrictOptionValue(Ce,"strictFunctionTypes"),Je=e.getStrictOptionValue(Ce,"strictBindCallApply"),lr=e.getStrictOptionValue(Ce,"strictPropertyInitialization"),mr=e.getStrictOptionValue(Ce,"noImplicitAny"),Hr=e.getStrictOptionValue(Ce,"noImplicitThis"),wr=e.getStrictOptionValue(Ce,"useUnknownInCatchVariables"),Oe=!!Ce.keyofStringsOnly,Ze=Ce.suppressExcessPropertyErrors?0:8192,tt=Ce.exactOptionalPropertyTypes,ut=HK(),or=SZ(),qr=Cp(),Rr=e.createSymbolTable(),zr=Lo(4,"undefined");zr.declarations=[];var Fr=Lo(1536,"globalThis",8);Fr.exports=Rr,Fr.declarations=[],Rr.set(Fr.escapedName,Fr);var _t=Lo(4,"arguments"),Ct=Lo(4,"require"),yt,Fe={getNodeCount:function(){return e.sum(I.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(I.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(I.getSourceFiles(),"symbolCount")+ae},getTypeCount:function(){return G},getInstantiationCount:function(){return Ne},getRelationCacheSizes:function(){return{assignable:Pi.size,identity:co.size,subtype:In.size,strictSubtype:Di.size}},isUndefinedSymbol:function(r){return r===zr},isArgumentsSymbol:function(r){return r===_t},isUnknownSymbol:function(r){return r===en},getMergedSymbol:mo,getDiagnostics:YM,getGlobalDiagnostics:RY,getRecursionIdentity:p0,getUnmatchedProperties:lP,getTypeOfSymbolAtLocation:function(r,a){var u=e.getParseTreeNode(a);return u?aH(r,u):ar},getTypeOfSymbol:_n,getSymbolsOfParameterPropertyDeclaration:function(r,a){var u=e.getParseTreeNode(r,e.isParameter);return u===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):U_(u,e.escapeLeadingUnderscores(a))},getDeclaredTypeOfSymbol:mn,getPropertiesOfType:Ro,getPropertyOfType:function(r,a){return Fa(r,e.escapeLeadingUnderscores(a))},getPrivateIdentifierPropertyOfType:function(r,a,u){var f=e.getParseTreeNode(u);if(f){var p=e.escapeLeadingUnderscores(a),g=iT(p,f);return g?HP(r,g):void 0}},getTypeOfPropertyOfType:function(r,a){return di(r,e.escapeLeadingUnderscores(a))},getIndexInfoOfType:function(r,a){return nf(r,a===0?Ft:ht)},getIndexInfosOfType:_c,getIndexInfosOfIndexSymbol:aA,getSignaturesOfType:La,getIndexTypeOfType:function(r,a){return $f(r,a===0?Ft:ht)},getIndexType:function(r){return Kf(r)},getBaseTypes:Jc,getBaseTypeOfLiteralType:Xf,getWidenedType:Gu,getTypeFromTypeNode:function(r){var a=e.getParseTreeNode(r,e.isTypeNode);return a?ea(a):ar},getParameterType:cf,getParameterIdentifierNameAtPosition:SK,getPromisedTypeOfPromise:N0,getAwaitedType:function(r){return $h(r)},getReturnTypeOfSignature:Ho,isNullableType:nT,getNullableType:Ox,getNonNullableType:qd,getNonOptionalType:eP,getTypeArguments:Go,typeToTypeNode:qr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:qr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:qr.signatureToSignatureDeclaration,symbolToEntityName:qr.symbolToEntityName,symbolToExpression:qr.symbolToExpression,symbolToNode:qr.symbolToNode,symbolToTypeParameterDeclarations:qr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:qr.symbolToParameterDeclaration,typeParameterToDeclaration:qr.typeParameterToDeclaration,getSymbolsInScope:function(r,a){var u=e.getParseTreeNode(r);return u?BY(u,a):[]},getSymbolAtLocation:function(r){var a=e.getParseTreeNode(r);return a?ql(a,!0):void 0},getIndexInfosAtLocation:function(r){var a=e.getParseTreeNode(r);return a?qY(a):void 0},getShorthandAssignmentValueSymbol:function(r){var a=e.getParseTreeNode(r);return a?$Y(a):void 0},getExportSpecifierLocalTargetSymbol:function(r){var a=e.getParseTreeNode(r,e.isExportSpecifier);return a?HY(a):void 0},getExportSymbolOfSymbol:function(r){return mo(r.exportSymbol||r)},getTypeAtLocation:function(r){var a=e.getParseTreeNode(r);return a?Hh(a):ar},getTypeOfAssignmentPattern:function(r){var a=e.getParseTreeNode(r,e.isAssignmentPattern);return a&&IT(a)||ar},getPropertySymbolOfDestructuringAssignment:function(r){var a=e.getParseTreeNode(r,e.isIdentifier);return a?GY(a):void 0},signatureToString:function(r,a,u,f){return Tp(r,e.getParseTreeNode(a),u,f)},typeToString:function(r,a,u){return Hn(r,e.getParseTreeNode(a),u)},symbolToString:function(r,a,u,f){return na(r,e.getParseTreeNode(a),u,f)},typePredicateToString:function(r,a,u){return Wu(r,e.getParseTreeNode(a),u)},writeSignature:function(r,a,u,f,p){return Tp(r,e.getParseTreeNode(a),u,f,p)},writeType:function(r,a,u,f){return Hn(r,e.getParseTreeNode(a),u,f)},writeSymbol:function(r,a,u,f,p){return na(r,e.getParseTreeNode(a),u,f,p)},writeTypePredicate:function(r,a,u,f){return Wu(r,e.getParseTreeNode(a),u,f)},getAugmentedPropertiesOfType:Uw,getRootSymbols:nF,getSymbolOfExpando:pT,getContextualType:function(r,a){var u=e.getParseTreeNode(r,e.isExpression);if(u)return a&4?vr(u,function(){return Lu(u,a)}):Lu(u,a)},getContextualTypeForObjectLiteralElement:function(r){var a=e.getParseTreeNode(r,e.isObjectLiteralElementLike);return a?OP(a,void 0):void 0},getContextualTypeForArgumentAtIndex:function(r,a){var u=e.getParseTreeNode(r,e.isCallLikeExpression);return u&&IP(u,a)},getContextualTypeForJsxAttribute:function(r){var a=e.getParseTreeNode(r,e.isJsxAttributeLike);return a&&A5(a,void 0)},isContextSensitive:zl,getTypeOfPropertyOfContextualType:rh,getFullyQualifiedName:su,getResolvedSignature:function(r,a,u){return Le(r,a,u,0)},getResolvedSignatureForStringLiteralCompletions:function(r,a,u){return Le(r,u,void 0,32,a)},getResolvedSignatureForSignatureHelp:function(r,a,u){return Le(r,a,u,16)},getExpandedParameters:G2,hasEffectiveRestParameter:ep,containsArgumentsReference:rA,getConstantValue:function(r){var a=e.getParseTreeNode(r,cF);return a?zw(a):void 0},isValidPropertyAccess:function(r,a){var u=e.getParseTreeNode(r,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!u&&MG(u,e.escapeLeadingUnderscores(a))},isValidPropertyAccessForCompletions:function(r,a,u){var f=e.getParseTreeNode(r,e.isPropertyAccessExpression);return!!f&&t7(f,a,u)},getSignatureFromDeclaration:function(r){var a=e.getParseTreeNode(r,e.isFunctionLike);return a?of(a):void 0},isImplementationOfOverload:function(r){var a=e.getParseTreeNode(r,e.isFunctionLike);return a?oF(a):void 0},getImmediateAliasedSymbol:BP,getAliasedSymbol:gc,getEmitResolver:fp,getExportsOfModule:Sl,getExportsAndPropertiesOfModule:K_,forEachExportAndPropertyOfModule:Wm,getSymbolWalker:e.createGetSymbolWalker(Fz,Vl,Ho,Jc,El,_n,Wl,Uc,e.getFirstIdentifier,Go),getAmbientModules:lee,getJsxIntrinsicTagNamesAt:dG,isOptionalParameter:function(r){var a=e.getParseTreeNode(r,e.isParameter);return a?Lh(a):!1},tryGetMemberInModuleExports:function(r,a){return bp(e.escapeLeadingUnderscores(r),a)},tryGetMemberInModuleExportsAndProperties:function(r,a){return u_(e.escapeLeadingUnderscores(r),a)},tryFindAmbientModule:function(r){return By(r,!0)},tryFindAmbientModuleWithoutAugmentations:function(r){return By(r,!1)},getApparentType:Gr,getUnionType:zi,isTypeAssignableTo:So,createAnonymousType:Es,createSignature:Cf,createSymbol:Lo,createIndexInfo:Hf,getAnyType:function(){return Ie},getStringType:function(){return Ft},getNumberType:function(){return ht},createPromiseType:Jb,createArrayType:zc,getElementTypeOfArrayType:QA,getBooleanType:function(){return Tn},getFalseType:function(r){return r?un:wn},getTrueType:function(r){return r?Bn:yn},getVoidType:function(){return ii},getUndefinedType:function(){return Ar},getNullType:function(){return Pt},getESSymbolType:function(){return An},getNeverType:function(){return Xe},getOptionalType:function(){return Et},getPromiseType:function(){return ub(!1)},getPromiseLikeType:function(){return DO(!1)},getAsyncIterableType:function(){var r=px(!1);if(r!==_a)return r},isSymbolAccessible:rf,isArrayType:Al,isTupleType:po,isArrayLikeType:xm,isTypeInvalidDueToUnionDiscriminant:tb,getExactOptionalProperties:Lq,getAllPossiblePropertiesOfTypes:Kk,getSuggestedSymbolForNonexistentProperty:QP,getSuggestionForNonexistentProperty:XP,getSuggestedSymbolForNonexistentJSXAttribute:e7,getSuggestedSymbolForNonexistentSymbol:function(r,a,u){return YP(r,e.escapeLeadingUnderscores(a),u)},getSuggestionForNonexistentSymbol:function(r,a,u){return wG(r,e.escapeLeadingUnderscores(a),u)},getSuggestedSymbolForNonexistentModule:oT,getSuggestionForNonexistentExport:NG,getSuggestedSymbolForNonexistentClassMember:Z5,getBaseConstraintOfType:uu,getDefaultFromTypeParameter:function(r){return r&&r.flags&262144?fm(r):void 0},resolveName:function(r,a,u,f){return Ls(a,e.escapeLeadingUnderscores(r),u,void 0,void 0,!1,f)},getJsxNamespace:function(r){return e.unescapeLeadingUnderscores(fs(r))},getJsxFragmentFactory:function(r){var a=qw(r);return a&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(a).escapedText)},getAccessibleSymbolChain:xp,getTypePredicateOfSignature:Vl,resolveExternalModuleName:function(r){var a=e.getParseTreeNode(r,e.isExpression);return a&&Ac(a,a,!0)},resolveExternalModuleSymbol:Rc,tryGetThisTypeAt:function(r,a,u){var f=e.getParseTreeNode(r);return f&&kP(f,a,u)},getTypeArgumentConstraint:function(r){var a=e.getParseTreeNode(r,e.isTypeNode);return a&&TQ(a)},getSuggestionDiagnostics:function(r,a){var u=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(u,Ce,I))return e.emptyArray;var f;try{return J=a,jw(u),e.Debug.assert(!!(Mi(u).flags&1)),f=e.addRange(f,Ee.getDiagnostics(u.fileName)),dM(XM(u),function(p,g,j){!e.containsParseError(p)&&!QM(g,!!(p.flags&16777216))&&(f||(f=[])).push(n(n({},j),{category:e.DiagnosticCategory.Suggestion}))}),f||e.emptyArray}finally{J=void 0}},runWithCancellationToken:function(r,a){try{return J=r,a(Fe)}finally{J=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Ap,isDeclarationVisible:Dl,isPropertyAccessible:ew,getTypeOnlyAliasDeclaration:ba,getMemberOverrideModifierStatus:ZX,isTypeParameterPossiblyReferenced:_b};function vr(r,a){var u=e.findAncestor(r,e.isCallLikeExpression),f=u&&Mi(u).resolvedSignature;if(u){var p=r;do Mi(p).skipDirectInference=!0,p=p.parent;while(p&&p!==u);Mi(u).resolvedSignature=void 0}var g=a();if(u){var p=r;do Mi(p).skipDirectInference=void 0,p=p.parent;while(p&&p!==u);Mi(u).resolvedSignature=f}return g}function Le(r,a,u,f,p){var g=e.getParseTreeNode(r,e.isCallLikeExpression);yt=u;var j=g?p?vr(p,function(){return ey(g,a,f)}):ey(g,a,f):void 0;return yt=void 0,j}var cr=new e.Map,$r=new e.Map,Re=new e.Map,xr=new e.Map,Br=new e.Map,Qr=new e.Map,ct=new e.Map,ft=new e.Map,Dt=new e.Map,Me=new e.Map,Ke=new e.Map,Vr=new e.Map,Yr=new e.Map,Nt=[],Wt=new e.Map,sn=new e.Set,en=Lo(4,"unknown"),Ir=Lo(0,"__resolving__"),Jr=new e.Map,ye=new e.Map,Ie=Os(1,"any"),We=Os(1,"any",262144),dr=Os(1,"any"),ar=Os(1,"error"),Sr=Os(1,"unresolved"),Or=Os(1,"any",65536),Ge=Os(1,"intrinsic"),ur=Os(2,"unknown"),Lr=Os(2,"unknown"),Ar=Os(32768,"undefined"),rt=ue?Ar:Os(32768,"undefined",65536),Et=Os(32768,"undefined"),St=tt?Os(32768,"undefined"):Ar,Pt=Os(65536,"null"),pt=ue?Pt:Os(65536,"null",65536),Ft=Os(4,"string"),ht=Os(8,"number"),Yt=Os(64,"bigint"),un=Os(512,"false"),wn=Os(512,"false"),Bn=Os(512,"true"),yn=Os(512,"true");Bn.regularType=yn,Bn.freshType=Bn,yn.regularType=yn,yn.freshType=Bn,un.regularType=wn,un.freshType=un,wn.regularType=wn,wn.freshType=un;var Tn=zi([wn,yn]),An=Os(4096,"symbol"),ii=Os(16384,"void"),Xe=Os(131072,"never"),hr=Os(131072,"never",262144),at=Os(131072,"never"),Qe=Os(131072,"never"),Qt=Os(67108864,"object"),Zt=zi([Ft,ht]),Tt=zi([Ft,ht,An]),gt=Oe?Ft:Tt,kt=zi([ht,Yt]),Lt=zi([Ft,ht,Tn,Yt,Pt,Ar]),$e=Gg(["",""],[ht]),et=db(function(r){return r.flags&262144?sq(r):r},function(){return"(restrictive mapper)"}),It=db(function(r){return r.flags&262144?dr:r},function(){return"(permissive mapper)"}),xn=Os(131072,"never"),pi=db(function(r){return r.flags&262144?xn:r},function(){return"(unique literal mapper)"}),ai,Wi=db(function(r){return ai&&(r===ts||r===En||r===ca)&&ai(!0),r},function(){return"(unmeasurable reporter)"}),ji=db(function(r){return ai&&(r===ts||r===En||r===ca)&&ai(!1),r},function(){return"(unreliable reporter)"}),fn=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray),Ri=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray);Ri.objectFlags|=2048;var ma=Lo(2048,"__type");ma.members=e.createSymbolTable();var ra=Es(ma,rr,e.emptyArray,e.emptyArray,e.emptyArray),vn=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray),zo=ue?zi([Ar,Pt,vn]):ur,_a=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray);_a.instantiations=new e.Map;var Ha=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray);Ha.objectFlags|=262144;var Do=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray),Ka=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray),rs=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray),ts=ic(),En=ic();En.constraint=ts;var ca=ic(),bo=ic(),Oo=ic();Oo.constraint=bo;var Ws=Rv(1,"<<unresolved>>",0,Ie),Co=Cf(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),qs=Cf(void 0,void 0,void 0,e.emptyArray,ar,void 0,0,0),gs=Cf(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),Ds=Cf(void 0,void 0,void 0,e.emptyArray,hr,void 0,0,0),Ko=Hf(ht,Ft,!0),kr=new e.Map,jr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Nn=Gd(Ie,Ie,Ie),xi=Gd(Ie,Ie,ur),ka=Gd(Xe,Ie,Ar),ro={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Qz,getGlobalIterableType:px,getGlobalIterableIteratorType:Xz,getGlobalGeneratorType:Yz,resolveIterationType:$h,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Ye={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Zz,getGlobalIterableType:xO,getGlobalIterableIteratorType:eW,getGlobalGeneratorType:rW,resolveIterationType:function(r,a){return r},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},lt,Ut=new e.Map,Ve=!1,yr,Er,Wr,Ot,ln,kn,Cn,_i,qi,va,Ia,$a,ws,rc,Wo,ds,yu,bu,tu,$c,Su,Lc,Hc,tc,fc,nu,nc,Xt,be,Ur,At,an,Kn,Yn,Si,vi,Da,ta,fo,oo,er,Bt,Mr,ua,_o,xs,yc=new e.Map,kc=0,oc=0,iu=0,_u=!1,wl=0,Du,Jo,$s,Ju=kl(""),Up=Qf(0),Vp=hx({negative:!1,base10Value:"0"}),wu=[],Nl=[],pf=[],Il=0,Xl=10,Zr=[],Xr=[],$t=[],Dn=[],Mn=[],zn=[],mi=[],Qn=[],Xi=[],Va=[],ga=[],Yi=[],so=[],da=[],Po=[],Uo=[],Qs=[],ya=e.createDiagnosticCollection(),Ee=e.createDiagnosticCollection(),Dr=Q_(),Nr,Mt,In=new e.Map,Di=new e.Map,Pi=new e.Map,Aa=new e.Map,co=new e.Map,os=new e.Map,qo=e.createSymbolTable();qo.set(zr.escapedName,zr);var no=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Ce.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return DZ(),Fe;function uo(r){return r?Yr.get(r):void 0}function _s(r,a){return r&&Yr.set(r,a),a}function fs(r){if(r){var a=e.getSourceFileOfNode(r);if(a)if(e.isJsxOpeningFragment(r)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;var u=a.pragmas.get("jsxfrag");if(u){var f=e.isArray(u)?u[0]:u;if(a.localJsxFragmentFactory=e.parseIsolatedEntityName(f.arguments.factory,Ae),e.visitNode(a.localJsxFragmentFactory,bc),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=e.getFirstIdentifier(a.localJsxFragmentFactory).escapedText}var p=qw(r);if(p)return a.localJsxFragmentFactory=p,a.localJsxFragmentNamespace=e.getFirstIdentifier(p).escapedText}else{var g=Xs(a);if(g)return a.localJsxNamespace=g}}return Nr||(Nr="React",Ce.jsxFactory?(Mt=e.parseIsolatedEntityName(Ce.jsxFactory,Ae),e.visitNode(Mt,bc),Mt&&(Nr=e.getFirstIdentifier(Mt).escapedText)):Ce.reactNamespace&&(Nr=e.escapeLeadingUnderscores(Ce.reactNamespace))),Mt||(Mt=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Nr)),"createElement")),Nr}function Xs(r){if(r.localJsxNamespace)return r.localJsxNamespace;var a=r.pragmas.get("jsx");if(a){var u=e.isArray(a)?a[0]:a;if(r.localJsxFactory=e.parseIsolatedEntityName(u.arguments.factory,Ae),e.visitNode(r.localJsxFactory,bc),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}function bc(r){return e.setTextRangePosEnd(r,-1,-1),e.visitEachChild(r,bc,e.nullTransformationContext)}function fp(r,a){return YM(r,a),or}function zp(r,a,u,f,p,g){var j=r?e.createDiagnosticForNode(r,a,u,f,p,g):e.createCompilerDiagnostic(a,u,f,p,g),pe=ya.lookup(j);return pe||(ya.add(j),j)}function pc(r,a,u,f,p,g,j){var pe=nt(a,u,f,p,g,j);return pe.skippedOn=r,pe}function vl(r,a,u,f,p,g){return r?e.createDiagnosticForNode(r,a,u,f,p,g):e.createCompilerDiagnostic(a,u,f,p,g)}function nt(r,a,u,f,p,g){var j=vl(r,a,u,f,p,g);return ya.add(j),j}function Wp(r,a){r?ya.add(a):Ee.add(n(n({},a),{category:e.DiagnosticCategory.Suggestion}))}function df(r,a,u,f,p,g,j){if(a.pos<0||a.end<0){if(!r)return;var pe=e.getSourceFileOfNode(a);Wp(r,"message"in u?e.createFileDiagnostic(pe,0,0,u,f,p,g,j):e.createDiagnosticForFileFromMessageChain(pe,u));return}Wp(r,"message"in u?e.createDiagnosticForNode(a,u,f,p,g,j):e.createDiagnosticForNodeFromMessageChain(a,u))}function _f(r,a,u,f,p,g,j){var pe=nt(r,u,f,p,g,j);if(a){var Se=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(pe,Se)}return pe}function Ig(r,a){var u=Array.isArray(r)?e.forEach(r,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(r);return u&&e.addRelatedInfo(a,e.createDiagnosticForNode(u,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),Ee.add(a),a}function pp(r){return!!(tT(r)&268435456)}function Yl(r,a,u){var f=e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,u);return Ig(a,f)}function i_(r,a,u,f){var p=u?e.createDiagnosticForNode(r,e.Diagnostics.The_signature_0_of_1_is_deprecated,f,u):e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,f);return Ig(a,p)}function Lo(r,a,u){ae++;var f=new N(r|33554432,a);return f.checkFlags=u||0,f}function Mm(r){var a=0;return r&2&&(a|=111551),r&1&&(a|=111550),r&4&&(a|=0),r&8&&(a|=900095),r&16&&(a|=110991),r&32&&(a|=899503),r&64&&(a|=788872),r&256&&(a|=899327),r&128&&(a|=899967),r&512&&(a|=110735),r&8192&&(a|=103359),r&32768&&(a|=46015),r&65536&&(a|=78783),r&262144&&(a|=526824),r&524288&&(a|=788968),r&2097152&&(a|=2097152),a}function J_(r,a){a.mergeId||(a.mergeId=D,D++),Zr[a.mergeId]=r}function a_(r){var a=Lo(r.flags,r.escapedName);return a.declarations=r.declarations?r.declarations.slice():[],a.parent=r.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),r.members&&(a.members=new e.Map(r.members)),r.exports&&(a.exports=new e.Map(r.exports)),J_(a,r),a}function qp(r,a,u){if(u===void 0&&(u=!1),!(r.flags&Mm(a.flags))||(a.flags|r.flags)&67108864){if(a===r)return r;if(!(r.flags&33554432)){var f=Vs(r);if(f===en)return a;r=a_(f)}a.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!a.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=a.flags,a.valueDeclaration&&e.setValueDeclaration(r,a.valueDeclaration),e.addRange(r.declarations,a.declarations),a.members&&(r.members||(r.members=e.createSymbolTable()),tl(r.members,a.members,u)),a.exports&&(r.exports||(r.exports=e.createSymbolTable()),tl(r.exports,a.exports,u)),u||J_(r,a)}else if(r.flags&1024)r!==Fr&&nt(a.declarations&&e.getNameOfDeclaration(a.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,na(r));else{var p=!!(r.flags&384||a.flags&384),g=!!(r.flags&2||a.flags&2),j=p?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,pe=a.declarations&&e.getSourceFileOfNode(a.declarations[0]),Se=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),Be=e.isPlainJsFile(pe,Ce.checkJs),fr=e.isPlainJsFile(Se,Ce.checkJs),sr=na(a);if(pe&&Se&&lt&&!p&&pe!==Se){var gr=e.comparePaths(pe.path,Se.path)===-1?pe:Se,_r=gr===pe?Se:pe,Kr=e.getOrUpdate(lt,"".concat(gr.path,"|").concat(_r.path),function(){return{firstFile:gr,secondFile:_r,conflictingSymbols:new e.Map}}),mt=e.getOrUpdate(Kr.conflictingSymbols,sr,function(){return{isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}});Be||Vt(mt.firstFileLocations,a),fr||Vt(mt.secondFileLocations,r)}else Be||mf(a,j,sr,r),fr||mf(r,j,sr,a)}return r;function Vt(wt,rn){if(rn.declarations)for(var on=0,Un=rn.declarations;on<Un.length;on++){var Gn=Un[on];e.pushIfUnique(wt,Gn)}}}function mf(r,a,u,f){e.forEach(r.declarations,function(p){Fm(p,a,u,f.declarations)})}function Fm(r,a,u,f){for(var p=(e.getExpandoInitializer(r,!1)?e.getNameOfExpando(r):e.getNameOfDeclaration(r))||r,g=zp(p,a,u),j=function(fr){var sr=(e.getExpandoInitializer(fr,!1)?e.getNameOfExpando(fr):e.getNameOfDeclaration(fr))||fr;if(sr===p)return"continue";g.relatedInformation=g.relatedInformation||[];var gr=e.createDiagnosticForNode(sr,e.Diagnostics._0_was_also_declared_here,u),_r=e.createDiagnosticForNode(sr,e.Diagnostics.and_here);if(e.length(g.relatedInformation)>=5||e.some(g.relatedInformation,function(Kr){return e.compareDiagnostics(Kr,_r)===0||e.compareDiagnostics(Kr,gr)===0}))return"continue";e.addRelatedInfo(g,e.length(g.relatedInformation)?_r:gr)},pe=0,Se=f||e.emptyArray;pe<Se.length;pe++){var Be=Se[pe];j(Be)}}function dp(r,a){if(!(r!=null&&r.size))return a;if(!(a!=null&&a.size))return r;var u=e.createSymbolTable();return tl(u,r),tl(u,a),u}function tl(r,a,u){u===void 0&&(u=!1),a.forEach(function(f,p){var g=r.get(p);r.set(p,g?qp(g,f,u):mo(f))})}function Lm(r){var a,u,f,p=r.parent;if(((a=p.symbol.declarations)===null||a===void 0?void 0:a[0])!==p){e.Debug.assert(p.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(p))tl(Rr,p.symbol.exports);else{var g=r.parent.parent.flags&16777216?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,j=hp(r,r,g,!0);if(!j)return;if(j=Rc(j),j.flags&1920)if(e.some(Er,function(Kr){return j===Kr.symbol})){var pe=qp(p.symbol,j,!0);Wr||(Wr=new e.Map),Wr.set(r.text,pe)}else{if(!((u=j.exports)===null||u===void 0)&&u.get("__export")&&(!((f=p.symbol.exports)===null||f===void 0)&&f.size))for(var Se=Fy(j,"resolvedExports"),Be=0,fr=e.arrayFrom(p.symbol.exports.entries());Be<fr.length;Be++){var sr=fr[Be],gr=sr[0],_r=sr[1];Se.has(gr)&&!j.exports.has(gr)&&qp(Se.get(gr),_r)}qp(j,p.symbol)}else nt(r,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function o_(r,a,u){a.forEach(function(p,g){var j=r.get(g);j?e.forEach(j.declarations,f(e.unescapeLeadingUnderscores(g),u)):r.set(g,p)});function f(p,g){return function(j){return ya.add(e.createDiagnosticForNode(j,g,p))}}}function la(r){if(r.flags&33554432)return r;var a=ne(r);return Xr[a]||(Xr[a]=new Pe)}function Mi(r){var a=_e(r);return $t[a]||($t[a]=new fe)}function sl(r){return r.kind===308&&!e.isExternalOrCommonJsModule(r)}function Nu(r,a,u){if(u){var f=mo(r.get(a));if(f){if(e.Debug.assert((e.getCheckFlags(f)&1)===0,"Should never get an instantiated symbol here."),f.flags&u)return f;if(f.flags&2097152){var p=Gc(f);if(p&u)return f}}}}function U_(r,a){var u=r.parent,f=r.parent.parent,p=Nu(u.locals,a,111551),g=Nu(Pp(f.symbol),a,111551);return p&&g?[p,g]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function $p(r,a){var u=e.getSourceFileOfNode(r),f=e.getSourceFileOfNode(a),p=e.getEnclosingBlockScopeContainer(r);if(u!==f){if(qe&&(u.externalModuleIndicator||f.externalModuleIndicator)||!e.outFile(Ce)||Hy(a)||r.flags&16777216||Be(a,r))return!0;var g=I.getSourceFiles();return g.indexOf(u)<=g.indexOf(f)}if(r.pos<=a.pos&&!(e.isPropertyDeclaration(r)&&e.isThisProperty(a.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===205){var j=e.getAncestor(a,205);return j?e.findAncestor(j,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<j.pos:$p(e.getAncestor(r,257),a)}else{if(r.kind===257)return!Se(r,a);if(e.isClassDeclaration(r))return!e.findAncestor(a,function(sr){return e.isComputedPropertyName(sr)&&sr.parent.parent===r});if(e.isPropertyDeclaration(r))return!fr(r,a,!1);if(e.isParameterPropertyDeclaration(r,r.parent))return!(e.getEmitScriptTarget(Ce)===99&&xe&&e.getContainingClass(r)===e.getContainingClass(a)&&Be(a,r))}return!0}if(a.parent.kind===278||a.parent.kind===274&&a.parent.isExportEquals||a.kind===274&&a.isExportEquals||a.flags&8388608||Hy(a)||pe())return!0;if(Be(a,r))return e.getEmitScriptTarget(Ce)===99&&xe&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))?!fr(r,a,!0):!0;return!1;function pe(){return!!e.findAncestor(a,function(sr){return e.isInterfaceDeclaration(sr)||e.isTypeAliasDeclaration(sr)})}function Se(sr,gr){switch(sr.parent.parent.kind){case 240:case 245:case 247:if(Gp(gr,sr,p))return!0;break}var _r=sr.parent.parent;return e.isForInOrOfStatement(_r)&&Gp(gr,_r.expression,p)}function Be(sr,gr){return!!e.findAncestor(sr,function(_r){if(_r===p)return"quit";if(e.isFunctionLike(_r))return!0;if(e.isClassStaticBlockDeclaration(_r))return gr.pos<sr.pos;var Kr=e.tryCast(_r.parent,e.isPropertyDeclaration);if(Kr){var mt=Kr.initializer===_r;if(mt)if(e.isStatic(_r.parent)){if(gr.kind===171)return!0;if(e.isPropertyDeclaration(gr)&&e.getContainingClass(sr)===e.getContainingClass(gr)){var Vt=gr.name;if(e.isIdentifier(Vt)||e.isPrivateIdentifier(Vt)){var wt=_n(Zn(gr)),rn=e.filter(gr.parent.members,e.isClassStaticBlockDeclaration);if(aY(Vt,wt,rn,gr.parent.pos,_r.pos))return!0}}}else{var on=gr.kind===169&&!e.isStatic(gr);if(!on||e.getContainingClass(sr)!==e.getContainingClass(gr))return!0}}return!1})}function fr(sr,gr,_r){if(gr.end>sr.end)return!1;var Kr=e.findAncestor(gr,function(mt){if(mt===sr)return"quit";switch(mt.kind){case 216:return!0;case 169:return _r&&(e.isPropertyDeclaration(sr)&&mt.parent===sr.parent||e.isParameterPropertyDeclaration(sr,sr.parent)&&mt.parent===sr.parent.parent)?"quit":!0;case 238:switch(mt.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}});return Kr===void 0}}function Og(r,a,u){var f=e.getEmitScriptTarget(Ce),p=a;if(e.isParameter(u)&&p.body&&r.valueDeclaration&&r.valueDeclaration.pos>=p.body.pos&&r.valueDeclaration.end<=p.body.end&&f>=2){var g=Mi(p);return g.declarationRequiresScopeChange===void 0&&(g.declarationRequiresScopeChange=e.forEach(p.parameters,j)||!1),!g.declarationRequiresScopeChange}return!1;function j(Se){return pe(Se.name)||!!Se.initializer&&pe(Se.initializer)}function pe(Se){switch(Se.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return pe(Se.name);case 169:return e.hasStaticModifier(Se)?f<99||!xe:pe(Se.name);default:return e.isNullishCoalesce(Se)||e.isOptionalChain(Se)?f<7:e.isBindingElement(Se)&&Se.dotDotDotToken&&e.isObjectBindingPattern(Se.parent)?f<4:e.isTypeNode(Se)?!1:e.forEachChild(Se,pe)||!1}}}function V_(r){return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||e.isJSDocTypeTag(r)&&e.isConstTypeReference(r.typeExpression)}function Ls(r,a,u,f,p,g,j,pe){return j===void 0&&(j=!1),pe===void 0&&(pe=!0),Rm(r,a,u,f,p,g,j,pe,Nu)}function Rm(r,a,u,f,p,g,j,pe,Se){var Be,fr,sr,gr=r,_r,Kr,mt,Vt,wt,rn=!1,on=r,Un,Gn=!1;e:for(;r;){if(a==="const"&&V_(r))return;if(r.locals&&!sl(r)&&(_r=Se(r.locals,a,u))){var Ti=!0;if(e.isFunctionLike(r)&&Kr&&Kr!==r.body?(u&_r.flags&788968&&Kr.kind!==323&&(Ti=_r.flags&262144?Kr===r.type||Kr.kind===166||Kr.kind===343||Kr.kind===344||Kr.kind===165:!1),u&_r.flags&3&&(Og(_r,r,Kr)?Ti=!1:_r.flags&1&&(Ti=Kr.kind===166||Kr===r.type&&!!e.findAncestor(_r.valueDeclaration,e.isParameter)))):r.kind===191&&(Ti=Kr===r.trueType),Ti)break e;_r=void 0}switch(rn=rn||z_(r,Kr),r.kind){case 308:if(!e.isExternalOrCommonJsModule(r))break;Gn=!0;case 264:var li=((Be=Zn(r))===null||Be===void 0?void 0:Be.exports)||rr;if(r.kind===308||e.isModuleDeclaration(r)&&r.flags&16777216&&!e.isGlobalScopeAugmentation(r)){if(_r=li.get("default")){var Ja=e.getLocalSymbolForExportDefault(_r);if(Ja&&_r.flags&u&&Ja.escapedName===a)break e;_r=void 0}var Ai=li.get(a);if(Ai&&Ai.flags===2097152&&(e.getDeclarationOfKind(Ai,278)||e.getDeclarationOfKind(Ai,277)))break}if(a!=="default"&&(_r=Se(li,a,u&2623475)))if(e.isSourceFile(r)&&r.commonJsModuleIndicator&&!(!((fr=_r.declarations)===null||fr===void 0)&&fr.some(e.isJSDocTypeAlias)))_r=void 0;else break e;break;case 263:if(_r=Se(((sr=Zn(r))===null||sr===void 0?void 0:sr.exports)||rr,a,u&8))break e;break;case 169:if(!e.isStatic(r)){var Ua=f_(r.parent);Ua&&Ua.locals&&Se(Ua.locals,a,u&111551)&&(e.Debug.assertNode(r,e.isPropertyDeclaration),Vt=r)}break;case 260:case 228:case 261:if(_r=Se(Zn(r).members||rr,a,u&788968)){if(!Hp(_r,r)){_r=void 0;break}if(Kr&&e.isStatic(Kr)){f&&nt(on,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(r.kind===228&&u&32){var Wa=r.name;if(Wa&&a===Wa.escapedText){_r=r.symbol;break e}}break;case 230:if(Kr===r.expression&&r.parent.token===94){var Ga=r.parent.parent;if(e.isClassLike(Ga)&&(_r=Se(Zn(Ga).members,a,u&788968))){f&&nt(on,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 164:if(Un=r.parent.parent,(e.isClassLike(Un)||Un.kind===261)&&(_r=Se(Zn(Un).members,a,u&788968))){f&&nt(on,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 216:if(e.getEmitScriptTarget(Ce)>=2)break;case 171:case 173:case 174:case 175:case 259:if(u&3&&a==="arguments"){_r=_t;break e}break;case 215:if(u&3&&a==="arguments"){_r=_t;break e}if(u&16){var Bo=r.name;if(Bo&&a===Bo.escapedText){_r=r.symbol;break e}}break;case 167:r.parent&&r.parent.kind===166&&(r=r.parent),r.parent&&(e.isClassElement(r.parent)||r.parent.kind===260)&&(r=r.parent);break;case 348:case 341:case 342:var jo=e.getJSDocRoot(r);jo&&(r=jo.parent);break;case 166:Kr&&(Kr===r.initializer||Kr===r.name&&e.isBindingPattern(Kr))&&(wt||(wt=r));break;case 205:Kr&&(Kr===r.initializer||Kr===r.name&&e.isBindingPattern(Kr))&&e.isParameterDeclaration(r)&&!wt&&(wt=r);break;case 192:if(u&262144){var No=r.typeParameter.name;if(No&&a===No.escapedText){_r=r.typeParameter.symbol;break e}}break}Mg(r)&&(mt=r),Kr=r,r=e.isJSDocTemplateTag(r)?e.getEffectiveContainerForJSDocTemplateTag(r)||r.parent:(e.isJSDocParameterTag(r)||e.isJSDocReturnTag(r))&&e.getHostSignatureFromJSDoc(r)||r.parent}if(g&&_r&&(!mt||_r!==mt.symbol)&&(_r.isReferenced|=u),!_r){if(Kr&&(e.Debug.assert(Kr.kind===308),Kr.commonJsModuleIndicator&&a==="exports"&&u&Kr.symbol.flags))return Kr.symbol;j||(_r=Se(Rr,a,u))}if(!_r&&gr&&e.isInJSFile(gr)&&gr.parent&&e.isRequireCall(gr.parent,!1))return Ct;function Ca(){return Vt&&!(xe&&e.getEmitScriptTarget(Ce)>=9)?(nt(on,on&&Vt.type&&e.textRangeContainsPositionInclusive(Vt.type,on.pos)?e.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Vt.name),ms(p)),!0):!1}if(_r){if(f&&Ca())return}else{f&&ee(function(){if(!on||!Bm(on,a,p)&&!Ca()&&!gf(on)&&!Sc(on,a,u)&&!Dh(on,a)&&!Ff(on,a,u)&&!Lg(on,a,u)&&!_p(on,a,u)){var hn=void 0,qt=void 0;if(p&&(qt=AG(p),qt&&nt(on,f,ms(p),qt)),!qt&&pe&&Il<Xl){hn=YP(gr,a,u);var yi=(hn==null?void 0:hn.valueDeclaration)&&e.isAmbientModule(hn.valueDeclaration)&&e.isGlobalScopeAugmentation(hn.valueDeclaration);if(yi&&(hn=void 0),hn){var Bi=na(hn),ha=KP(gr,hn,!1),si=u===1920||p&&typeof p!="string"&&e.nodeIsSynthesized(p)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:ha?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,qa=vl(on,si,ms(p),Bi);Wp(!ha,qa),hn.valueDeclaration&&e.addRelatedInfo(qa,e.createDiagnosticForNode(hn.valueDeclaration,e.Diagnostics._0_is_declared_here,Bi))}}!hn&&!qt&&p&&nt(on,f,ms(p)),Il++}});return}return f&&ee(function(){if(on&&(u&2||(u&32||u&384)&&(u&111551)===111551)){var hn=Iu(_r);(hn.flags&2||hn.flags&32||hn.flags&384)&&mp(hn,on)}if(_r&&Gn&&(u&111551)===111551&&!(gr.flags&8388608)){var qt=mo(_r);e.length(qt.declarations)&&e.every(qt.declarations,function(Ta){return e.isNamespaceExportDeclaration(Ta)||e.isSourceFile(Ta)&&!!Ta.symbol.globalExports})&&df(!Ce.allowUmdGlobalAccess,on,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(a))}if(_r&&wt&&!rn&&(u&111551)===111551){var yi=mo(wh(_r)),Bi=e.getRootDeclaration(wt);yi===Zn(wt)?nt(on,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(wt.name)):yi.valueDeclaration&&yi.valueDeclaration.pos>wt.pos&&Bi.parent.locals&&Se(Bi.parent.locals,yi.escapedName,u)===yi&&nt(on,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(wt.name),e.declarationNameToString(on))}if(_r&&on&&u&111551&&_r.flags&2097152&&!(_r.flags&111551)&&!e.isValidTypeOnlyAliasUseSite(on)){var ha=ba(_r,111551);if(ha){var si=ha.kind===278?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,qa=e.unescapeLeadingUnderscores(a);s_(nt(on,si,qa),ha,qa)}}}),_r}function s_(r,a,u){return a?e.addRelatedInfo(r,e.createDiagnosticForNode(a,a.kind===278?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,u)):r}function z_(r,a){return r.kind!==216&&r.kind!==215?e.isTypeQueryNode(r)||(e.isFunctionLikeDeclaration(r)||r.kind===169&&!e.isStatic(r))&&(!a||a!==r.name):a&&a===r.name?!1:r.asteriskToken||e.hasSyntacticModifier(r,512)?!0:!e.getImmediatelyInvokedFunctionExpression(r)}function Mg(r){switch(r.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function ms(r){return e.isString(r)?e.unescapeLeadingUnderscores(r):e.declarationNameToString(r)}function Hp(r,a){if(r.declarations)for(var u=0,f=r.declarations;u<f.length;u++){var p=f[u];if(p.kind===165){var g=e.isJSDocTemplateTag(p.parent)?e.getJSDocHost(p.parent):p.parent;if(g===a)return!(e.isJSDocTemplateTag(p.parent)&&e.find(p.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function Bm(r,a,u){if(!e.isIdentifier(r)||r.escapedText!==a||ZM(r)||Hy(r))return!1;for(var f=e.getThisContainer(r,!1),p=f;p;){if(e.isClassLike(p.parent)){var g=Zn(p.parent);if(!g)break;var j=_n(g);if(Fa(j,a))return nt(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ms(u),na(g)),!0;if(p===f&&!e.isStatic(p)){var pe=mn(g).thisType;if(Fa(pe,a))return nt(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ms(u)),!0}}p=p.parent}return!1}function gf(r){var a=Fg(r);return a&&ns(a,64,!0)?(nt(r,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(a)),!0):!1}function Fg(r){switch(r.kind){case 79:case 208:return r.parent?Fg(r.parent):void 0;case 230:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}function Sc(r,a,u){var f=1920|(e.isInJSFile(r)?111551:0);if(u===f){var p=Vs(Ls(r,a,788968&~f,void 0,void 0,!1)),g=r.parent;if(p){if(e.isQualifiedName(g)){e.Debug.assert(g.left===r,"Should only be resolving left side of qualified name as a namespace");var j=g.right.escapedText,pe=Fa(mn(p),j);if(pe)return nt(g,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(a),e.unescapeLeadingUnderscores(j)),!0}return nt(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(a)),!0}}return!1}function _p(r,a,u){if(u&788584){var f=Vs(Ls(r,a,111127,void 0,void 0,!1));if(f&&!(f.flags&1920))return nt(r,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(a)),!0}return!1}function au(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function Dh(r,a){return au(a)&&r.parent.kind===278?(nt(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Lg(r,a,u){if(u&111551){if(au(a))return Rg(r)?nt(r,e.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,e.unescapeLeadingUnderscores(a)):nt(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(a)),!0;var f=Vs(Ls(r,a,788544,void 0,void 0,!1)),p=f&&Gc(f);if(f&&p!==void 0&&!(p&111551)){var g=e.unescapeLeadingUnderscores(a);return Bg(a)?nt(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):jm(r,f)?nt(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g==="K"?"P":"K"):nt(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function Rg(r){var a=r.parent.parent,u=a.parent;if(a&&u){var f=e.isHeritageClause(a)&&a.token===94,p=e.isInterfaceDeclaration(u);return f&&p}return!1}function jm(r,a){var u=e.findAncestor(r.parent,function(p){return e.isComputedPropertyName(p)||e.isPropertySignature(p)?!1:e.isTypeLiteralNode(p)||"quit"});if(u&&u.members.length===1){var f=mn(a);return!!(f.flags&1048576)&&zb(f,384,!0)}return!1}function Bg(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Ff(r,a,u){if(u&111127){var f=Vs(Ls(r,a,1024,void 0,void 0,!1));if(f)return nt(r,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(a)),!0}else if(u&788544){var f=Vs(Ls(r,a,1536,void 0,void 0,!1));if(f)return nt(r,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(a)),!0}return!1}function mp(r,a){var u;if(e.Debug.assert(!!(r.flags&2||r.flags&32||r.flags&384)),!(r.flags&67108881&&r.flags&32)){var f=(u=r.declarations)===null||u===void 0?void 0:u.find(function(j){return e.isBlockOrCatchScoped(j)||e.isClassLike(j)||j.kind===263});if(f===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(f.flags&16777216)&&!$p(f,a)){var p=void 0,g=e.declarationNameToString(e.getNameOfDeclaration(f));r.flags&2?p=nt(a,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,g):r.flags&32?p=nt(a,e.Diagnostics.Class_0_used_before_its_declaration,g):r.flags&256?p=nt(a,e.Diagnostics.Enum_0_used_before_its_declaration,g):(e.Debug.assert(!!(r.flags&128)),e.shouldPreserveConstEnums(Ce)&&(p=nt(a,e.Diagnostics.Enum_0_used_before_its_declaration,g))),p&&e.addRelatedInfo(p,e.createDiagnosticForNode(f,e.Diagnostics._0_is_declared_here,g))}}}function Gp(r,a,u){return!!a&&!!e.findAncestor(r,function(f){return f===a||(f===u||e.isFunctionLike(f)&&!e.getImmediatelyInvokedFunctionExpression(f)?"quit":!1)})}function W_(r){switch(r.kind){case 268:return r;case 270:return r.parent;case 271:return r.parent.parent;case 273:return r.parent.parent.parent;default:return}}function Ol(r){return r.declarations&&e.findLast(r.declarations,xd)}function xd(r){return r.kind===268||r.kind===267||r.kind===270&&!!r.name||r.kind===271||r.kind===277||r.kind===273||r.kind===278||r.kind===274&&e.exportAssignmentIsAlias(r)||e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===2&&e.exportAssignmentIsAlias(r)||e.isAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63&&Kp(r.parent.right)||r.kind===300||r.kind===299&&Kp(r.initializer)||r.kind===257&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||r.kind===205&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r.parent.parent)}function Kp(r){return e.isAliasableExpression(r)||e.isFunctionExpression(r)&&wf(r)}function q_(r,a){var u=c_(r);if(u){var f=e.getLeftmostAccessExpression(u.expression).arguments[0];return e.isIdentifier(u.name)?Vs(Fa(eO(f),u.name.escapedText)):void 0}if(e.isVariableDeclaration(r)||r.moduleReference.kind===280){var p=Ac(r,e.getExternalModuleRequireArgument(r)||e.getExternalModuleImportEqualsDeclarationExpression(r)),g=Rc(p);return Xn(r,p,g,!1),g}var j=Wn(r.moduleReference,a);return Qp(r,j),j}function Qp(r,a){if(Xn(r,void 0,a,!1)&&!r.isTypeOnly){var u=ba(Zn(r)),f=u.kind===278,p=f?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=f?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,j=e.unescapeLeadingUnderscores(u.name.escapedText);e.addRelatedInfo(nt(r.moduleReference,p),e.createDiagnosticForNode(u,g,j))}}function Td(r,a,u,f){var p=r.exports.get("export="),g=p?Fa(_n(p),a):r.exports.get(a),j=Vs(g,f);return Xn(u,g,j,!1),j}function $_(r){return e.isExportAssignment(r)&&!r.isExportEquals||e.hasSyntacticModifier(r,1024)||e.isExportSpecifier(r)}function Ed(r){return e.isStringLiteralLike(r)?e.getModeForUsageLocation(e.getSourceFileOfNode(r),r):void 0}function Jm(r,a){return r===e.ModuleKind.ESNext&&a===e.ModuleKind.CommonJS}function Cd(r){var a=Ed(r);return a===e.ModuleKind.ESNext&&e.endsWith(r.text,".json")}function Xp(r,a,u,f){var p=r&&Ed(f);if(r&&p!==void 0){var g=Jm(p,r.impliedNodeFormat);if(p===e.ModuleKind.ESNext||g)return g}if(!L)return!1;if(!r||r.isDeclarationFile){var j=Td(a,"default",void 0,!0);return!(j&&e.some(j.declarations,$_)||Td(a,e.escapeLeadingUnderscores("__esModule"),void 0,u))}return e.isSourceFileJS(r)?typeof r.externalModuleIndicator!="object"&&!Td(a,e.escapeLeadingUnderscores("__esModule"),void 0,u):ef(a)}function H_(r,a){var u=Ac(r,r.parent.moduleSpecifier);if(u)return Yp(u,r,a)}function Yp(r,a,u){var f,p;e.isShorthandAmbientModuleSymbol(r)?p=r:p=Td(r,"default",a,u);var g=(f=r.declarations)===null||f===void 0?void 0:f.find(e.isSourceFile),j=ou(a);if(!j)return p;var pe=Cd(j),Se=Xp(g,r,u,j);if(!p&&!Se&&!pe)if(ef(r)){var Be=qe>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",fr=r.exports.get("export="),sr=fr.valueDeclaration,gr=nt(a.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,na(r),Be);sr&&e.addRelatedInfo(gr,e.createDiagnosticForNode(sr,e.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Be))}else e.isImportClause(a)?nl(r,a):kd(r,r,a,e.isImportOrExportSpecifier(a)&&a.propertyName||a.name);else if(Se||pe){var _r=Rc(r,u)||Vs(r,u);return Xn(a,r,_r,!1),_r}return Xn(a,p,void 0,!1),p}function ou(r){switch(r.kind){case 270:return r.parent.moduleSpecifier;case 268:return e.isExternalModuleReference(r.moduleReference)?r.moduleReference.expression:void 0;case 271:return r.parent.parent.moduleSpecifier;case 273:return r.parent.parent.parent.moduleSpecifier;case 278:return r.parent.parent.moduleSpecifier;default:return e.Debug.assertNever(r)}}function nl(r,a){var u,f,p;if(!((u=r.exports)===null||u===void 0)&&u.has(a.symbol.escapedName))nt(a.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,na(r),na(a.symbol));else{var g=nt(a.name,e.Diagnostics.Module_0_has_no_default_export,na(r)),j=(f=r.exports)===null||f===void 0?void 0:f.get("__export");if(j){var pe=(p=j.declarations)===null||p===void 0?void 0:p.find(function(Se){var Be,fr;return!!(e.isExportDeclaration(Se)&&Se.moduleSpecifier&&(!((fr=(Be=Ac(Se,Se.moduleSpecifier))===null||Be===void 0?void 0:Be.exports)===null||fr===void 0)&&fr.has("default")))});pe&&e.addRelatedInfo(g,e.createDiagnosticForNode(pe,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function gp(r,a){var u=r.parent.parent.moduleSpecifier,f=Ac(r,u),p=rd(f,u,a,!1);return Xn(r,f,p,!1),p}function Zp(r,a){var u=r.parent.moduleSpecifier,f=u&&Ac(r,u),p=u&&rd(f,u,a,!1);return Xn(r,f,p,!1),p}function ed(r,a){if(r===en&&a===en)return en;if(r.flags&790504)return r;var u=Lo(r.flags|a.flags,r.escapedName);return u.declarations=e.deduplicate(e.concatenate(r.declarations,a.declarations),e.equateValues),u.parent=r.parent||a.parent,r.valueDeclaration&&(u.valueDeclaration=r.valueDeclaration),a.members&&(u.members=new e.Map(a.members)),r.exports&&(u.exports=new e.Map(r.exports)),u}function Ml(r,a,u,f){if(r.flags&1536){var p=Dc(r).get(a.escapedText),g=Vs(p,f);return Xn(u,p,g,!1),g}}function xh(r,a){if(r.flags&3){var u=r.valueDeclaration.type;if(u)return Vs(Fa(ea(u),a))}}function cl(r,a,u){var f;u===void 0&&(u=!1);var p=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,g=Ac(r,p),j=!e.isPropertyAccessExpression(a)&&a.propertyName||a.name;if(e.isIdentifier(j)){var pe=j.escapedText==="default"&&!!(Ce.allowSyntheticDefaultImports||e.getESModuleInterop(Ce)),Se=rd(g,p,!1,pe);if(Se&&j.escapedText){if(e.isShorthandAmbientModuleSymbol(g))return g;var Be=void 0;g&&g.exports&&g.exports.get("export=")?Be=Fa(_n(Se),j.escapedText,!0):Be=xh(Se,j.escapedText),Be=Vs(Be,u);var fr=Ml(Se,j,a,u);if(fr===void 0&&j.escapedText==="default"){var sr=(f=g.declarations)===null||f===void 0?void 0:f.find(e.isSourceFile);(Cd(p)||Xp(sr,g,u,p))&&(fr=Rc(g,u)||Vs(g,u))}var gr=fr&&Be&&fr!==Be?ed(Be,fr):fr||Be;return gr||kd(g,Se,r,j),gr}}}function kd(r,a,u,f){var p,g=su(r,u),j=e.declarationNameToString(f),pe=oT(f,a);if(pe!==void 0){var Se=na(pe),Be=nt(f,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,j,Se);pe.valueDeclaration&&e.addRelatedInfo(Be,e.createDiagnosticForNode(pe.valueDeclaration,e.Diagnostics._0_is_declared_here,Se))}else!((p=r.exports)===null||p===void 0)&&p.has("default")?nt(f,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,j):Fl(u,f,j,r,g)}function Fl(r,a,u,f,p){var g,j,pe=(j=(g=f.valueDeclaration)===null||g===void 0?void 0:g.locals)===null||j===void 0?void 0:j.get(a.escapedText),Se=f.exports;if(pe){var Be=Se==null?void 0:Se.get("export=");if(Be)Uu(Be,pe)?yl(r,a,u,p):nt(a,e.Diagnostics.Module_0_has_no_exported_member_1,p,u);else{var fr=Se?e.find(Z1(Se),function(gr){return!!Uu(gr,pe)}):void 0,sr=fr?nt(a,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,p,u,na(fr)):nt(a,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,p,u);pe.declarations&&e.addRelatedInfo.apply(void 0,t([sr],e.map(pe.declarations,function(gr,_r){return e.createDiagnosticForNode(gr,_r===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,u)}),!1))}}else nt(a,e.Diagnostics.Module_0_has_no_exported_member_1,p,u)}function yl(r,a,u,f){if(qe>=e.ModuleKind.ES2015){var p=e.getESModuleInterop(Ce)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;nt(a,p,u)}else if(e.isInJSFile(r)){var p=e.getESModuleInterop(Ce)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;nt(a,p,u)}else{var p=e.getESModuleInterop(Ce)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;nt(a,p,u,u,f)}}function hf(r,a){if(e.isImportSpecifier(r)&&e.idText(r.propertyName||r.name)==="default"){var u=ou(r),f=u&&Ac(r,u);if(f)return Yp(f,r,a)}var p=e.isBindingElement(r)?e.getRootDeclaration(r):r.parent.parent.parent,g=c_(p),j=cl(p,g||r,a),pe=r.propertyName||r.name;return g&&j&&e.isIdentifier(pe)?Vs(Fa(_n(j),pe.escapedText),a):(Xn(r,void 0,j,!1),j)}function c_(r){if(e.isVariableDeclaration(r)&&r.initializer&&e.isPropertyAccessExpression(r.initializer))return r.initializer}function jg(r,a){var u=Rc(r.parent.symbol,a);return Xn(r,void 0,u,!1),u}function Um(r,a,u){if(e.idText(r.propertyName||r.name)==="default"){var f=ou(r),p=f&&Ac(r,f);if(p)return Yp(p,r,!!u)}var g=r.parent.parent.moduleSpecifier?cl(r.parent.parent,r,u):ns(r.propertyName||r.name,a,!1,u);return Xn(r,void 0,g,!1),g}function G_(r,a){var u=e.isExportAssignment(r)?r.expression:r.right,f=Yo(u,a);return Xn(r,void 0,f,!1),f}function Yo(r,a){if(e.isClassExpression(r))return Gs(r).symbol;if(!(!e.isEntityName(r)&&!e.isEntityNameExpression(r))){var u=ns(r,901119,!0,a);return u||(Gs(r),Mi(r).resolvedSymbol)}}function Ad(r,a){if(e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63)return Yo(r.parent.right,a)}function vf(r,a){switch(a===void 0&&(a=!1),r.kind){case 268:case 257:return q_(r,a);case 270:return H_(r,a);case 271:return gp(r,a);case 277:return Zp(r,a);case 273:case 205:return hf(r,a);case 278:return Um(r,901119,a);case 274:case 223:return G_(r,a);case 267:return jg(r,a);case 300:return ns(r.name,901119,!0,a);case 299:return Yo(r.initializer,a);case 209:case 208:return Ad(r,a);default:return e.Debug.fail()}}function Pd(r,a){return a===void 0&&(a=901119),r?(r.flags&(2097152|a))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function Vs(r,a){return!a&&Pd(r)?gc(r):r}function gc(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var a=la(r);if(a.aliasTarget)a.aliasTarget===Ir&&(a.aliasTarget=en);else{a.aliasTarget=Ir;var u=Ol(r);if(!u)return e.Debug.fail();var f=vf(u);a.aliasTarget===Ir?a.aliasTarget=f||en:nt(u,e.Diagnostics.Circular_definition_of_import_alias_0,na(r))}return a.aliasTarget}function Vm(r){var a=la(r);if(a.aliasTarget!==Ir)return gc(r)}function Gc(r){for(var a=r.flags,u;r.flags&2097152;){var f=gc(r);if(f===en)return 67108863;if(f===r||u!=null&&u.has(f))break;f.flags&2097152&&(u?u.add(f):u=new e.Set([r,f])),a|=f.flags,r=f}return a}function Xn(r,a,u,f){if(!r||e.isPropertyAccessExpression(r))return!1;var p=Zn(r);if(e.isTypeOnlyImportOrExportDeclaration(r)){var g=la(p);return g.typeOnlyDeclaration=r,!0}var j=la(p);return sc(j,a,f)||sc(j,u,f)}function sc(r,a,u){var f,p,g;if(a&&(r.typeOnlyDeclaration===void 0||u&&r.typeOnlyDeclaration===!1)){var j=(p=(f=a.exports)===null||f===void 0?void 0:f.get("export="))!==null&&p!==void 0?p:a,pe=j.declarations&&e.find(j.declarations,e.isTypeOnlyImportOrExportDeclaration);r.typeOnlyDeclaration=(g=pe??la(j).typeOnlyDeclaration)!==null&&g!==void 0?g:!1}return!!r.typeOnlyDeclaration}function ba(r,a){if(r.flags&2097152){var u=la(r);if(a===void 0)return u.typeOnlyDeclaration||void 0;if(u.typeOnlyDeclaration)return Gc(gc(u.typeOnlyDeclaration.symbol))&a?u.typeOnlyDeclaration:void 0}}function yf(r){var a=Zn(r),u=gc(a);if(u){var f=u===en||Gc(u)&111551&&!F0(u)&&!ba(a,111551);f&&bl(a)}}function bl(r){var a=la(r);if(!a.referenced){a.referenced=!0;var u=Ol(r);if(!u)return e.Debug.fail();e.isInternalModuleImportEqualsDeclaration(u)&&Gc(Vs(r))&111551&&Gs(u.moduleReference)}}function Lf(r){var a=la(r);a.constEnumReferenced||(a.constEnumReferenced=!0)}function Wn(r,a){return r.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),r.kind===79||r.parent.kind===163?ns(r,1920,!1,a):(e.Debug.assert(r.parent.kind===268),ns(r,901119,!1,a))}function su(r,a){return r.parent?su(r.parent,a)+"."+na(r):na(r,a,void 0,36)}function wd(r){for(;e.isQualifiedName(r.parent);)r=r.parent;return r}function zs(r){var a=e.getFirstIdentifier(r),u=Ls(a,a.escapedText,111551,void 0,a,!0);if(u){for(;e.isQualifiedName(a.parent);){var f=_n(u);if(u=Fa(f,a.parent.right.escapedText),!u)return;a=a.parent}return u}}function ns(r,a,u,f,p){if(!e.nodeIsMissing(r)){var g=1920|(e.isInJSFile(r)?a&111551:0),j;if(r.kind===79){var pe=a===g||e.nodeIsSynthesized(r)?e.Diagnostics.Cannot_find_namespace_0:q8(e.getFirstIdentifier(r)),Se=e.isInJSFile(r)&&!e.nodeIsSynthesized(r)?ul(r,a):void 0;if(j=mo(Ls(p||r,r.escapedText,a,u||Se?void 0:pe,r,!0,!1)),!j)return mo(Se)}else if(r.kind===163||r.kind===208){var Be=r.kind===163?r.left:r.expression,fr=r.kind===163?r.right:r.name,sr=ns(Be,g,u,!1,p);if(!sr||e.nodeIsMissing(fr))return;if(sr===en)return sr;if(sr.valueDeclaration&&e.isInJSFile(sr.valueDeclaration)&&e.isVariableDeclaration(sr.valueDeclaration)&&sr.valueDeclaration.initializer&&T7(sr.valueDeclaration.initializer)){var gr=sr.valueDeclaration.initializer.arguments[0],_r=Ac(gr,gr);if(_r){var Kr=Rc(_r);Kr&&(sr=Kr)}}if(j=mo(Nu(Dc(sr),fr.escapedText,a)),!j){if(!u){var mt=su(sr),Vt=e.declarationNameToString(fr),wt=oT(fr,sr);if(wt){nt(fr,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,mt,Vt,na(wt));return}var rn=e.isQualifiedName(r)&&wd(r),on=Ot&&a&788968&&rn&&!e.isTypeOfExpression(rn.parent)&&zs(rn);if(on){nt(rn,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(rn));return}if(a&1920&&e.isQualifiedName(r.parent)){var Un=mo(Nu(Dc(sr),fr.escapedText,788968));if(Un){nt(r.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,na(Un),e.unescapeLeadingUnderscores(r.parent.right.escapedText));return}}nt(fr,e.Diagnostics.Namespace_0_has_no_exported_member_1,mt,Vt)}return}}else throw e.Debug.assertNever(r,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(j)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(r)&&e.isEntityName(r)&&(j.flags&2097152||r.parent.kind===274)&&Xn(e.getAliasDeclarationFromName(r),j,void 0,!0),j.flags&a||f?j:gc(j)}}function ul(r,a){if(ux(r.parent)){var u=Nd(r.parent);if(u)return Ls(u,r.escapedText,a,void 0,r,!0)}}function Nd(r){var a=e.findAncestor(r,function(g){return e.isJSDocNode(g)||g.flags&8388608?e.isJSDocTypeAlias(g):"quit"});if(!a){var u=e.getJSDocHost(r);if(u&&e.isExpressionStatement(u)&&e.isPrototypePropertyAssignment(u.expression)){var f=Zn(u.expression.left);if(f)return Id(f)}if(u&&e.isFunctionExpression(u)&&e.isPrototypePropertyAssignment(u.parent)&&e.isExpressionStatement(u.parent.parent)){var f=Zn(u.parent.left);if(f)return Id(f)}if(u&&(e.isObjectLiteralMethod(u)||e.isPropertyAssignment(u))&&e.isBinaryExpression(u.parent.parent)&&e.getAssignmentDeclarationKind(u.parent.parent)===6){var f=Zn(u.parent.parent.left);if(f)return Id(f)}var p=e.getEffectiveJSDocHost(r);if(p&&e.isFunctionLike(p)){var f=Zn(p);return f&&f.valueDeclaration}}}function Id(r){var a=r.parent.valueDeclaration;if(a){var u=e.isAssignmentDeclaration(a)?e.getAssignedExpandoInitializer(a):e.hasOnlyExpressionInitializer(a)?e.getDeclaredExpandoInitializer(a):void 0;return u||a}}function bf(r){var a=r.valueDeclaration;if(!(!a||!e.isInJSFile(a)||r.flags&524288||e.getExpandoInitializer(a,!1))){var u=e.isVariableDeclaration(a)?e.getDeclaredExpandoInitializer(a):e.getAssignedExpandoInitializer(a);if(u){var f=Zn(u);if(f)return cw(f,r)}}}function Ac(r,a,u){var f=e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Classic,p=f?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return hp(r,a,u?void 0:p)}function hp(r,a,u,f){return f===void 0&&(f=!1),e.isStringLiteralLike(a)?Zl(r,a.text,u,a,f):void 0}function Zl(r,a,u,f,p){var g,j,pe,Se,Be,fr,sr,gr;if(p===void 0&&(p=!1),e.startsWith(a,"@types/")){var _r=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Kr=e.removePrefix(a,"@types/");nt(f,_r,Kr,a)}var mt=By(a,!0);if(mt)return mt;var Vt=e.getSourceFileOfNode(r),wt=e.isStringLiteralLike(r)?r:((g=e.findAncestor(r,e.isImportCall))===null||g===void 0?void 0:g.arguments[0])||((j=e.findAncestor(r,e.isImportDeclaration))===null||j===void 0?void 0:j.moduleSpecifier)||((pe=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))===null||pe===void 0?void 0:pe.moduleReference.expression)||((Se=e.findAncestor(r,e.isExportDeclaration))===null||Se===void 0?void 0:Se.moduleSpecifier)||((Be=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)===null||Be===void 0?void 0:Be.name)||((fr=e.isLiteralImportTypeNode(r)?r:void 0)===null||fr===void 0?void 0:fr.argument.literal),rn=wt&&e.isStringLiteralLike(wt)?e.getModeForUsageLocation(Vt,wt):Vt.impliedNodeFormat,on=e.getResolvedModule(Vt,a,rn),Un=on&&e.getResolutionDiagnostic(Ce,on),Gn=on&&(!Un||Un===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&I.getSourceFile(on.resolvedFileName);if(Gn){if(Un&&nt(f,Un,a,on.resolvedFileName),Gn.symbol){if(on.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(on.extension)&&Rf(!1,f,on,a),e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.NodeNext){var Ti=Vt.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),li=e.findAncestor(r,function(Ta){return e.isImportTypeNode(Ta)||e.isExportDeclaration(Ta)||e.isImportDeclaration(Ta)}),Ja=li&&e.isImportTypeNode(li)?(sr=li.assertions)===null||sr===void 0?void 0:sr.assertClause:li==null?void 0:li.assertClause;if(Ti&&Gn.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(Ja))if(e.findAncestor(r,e.isImportEqualsDeclaration))nt(f,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{var Ai=void 0,Ua=e.tryGetExtensionFromPath(Vt.fileName);if(Ua===".ts"||Ua===".js"||Ua===".tsx"||Ua===".jsx"){var Wa=Vt.packageJsonScope,Ga=Ua===".ts"?".mts":Ua===".js"?".mjs":void 0;Wa&&!Wa.contents.packageJsonContent.type?Ga?Ai=e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Ga,e.combinePaths(Wa.packageDirectory,"package.json")):Ai=e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,e.combinePaths(Wa.packageDirectory,"package.json")):Ga?Ai=e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Ga):Ai=e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}ya.add(e.createDiagnosticForNodeFromMessageChain(f,e.chainDiagnosticMessages(Ai,e.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return mo(Gn.symbol)}u&&nt(f,e.Diagnostics.File_0_is_not_a_module,Gn.fileName);return}if(Er){var Bo=e.findBestPatternMatch(Er,function(Ta){return Ta.pattern},a);if(Bo){var jo=Wr&&Wr.get(a);return mo(jo||Bo.symbol)}}if(on&&!e.resolutionExtensionIsTSOrJson(on.extension)&&Un===void 0||Un===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(p){var _r=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;nt(f,_r,a,on.resolvedFileName)}else Rf(mr&&!!u,f,on,a);return}if(u){if(on){var No=I.getProjectReferenceRedirect(on.resolvedFileName);if(No){nt(f,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,No,on.resolvedFileName);return}}if(Un)nt(f,Un,a,on.resolvedFileName);else{var Ca=e.tryExtractTSExtension(a),hn=e.pathIsRelative(a)&&!e.hasExtension(a),qt=e.getEmitModuleResolutionKind(Ce),yi=qt===e.ModuleResolutionKind.Node16||qt===e.ModuleResolutionKind.NodeNext;if(Ca){var _r=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,Bi=e.removeExtension(a,Ca),ha=Bi;qe>=e.ModuleKind.ES2015&&(ha+=Ca===".mts"?".mjs":Ca===".cts"?".cjs":".js"),nt(f,_r,Ca,ha)}else if(!Ce.resolveJsonModule&&e.fileExtensionIs(a,".json")&&e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(Ce))nt(f,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(rn===e.ModuleKind.ESNext&&yi&&hn){var si=e.getNormalizedAbsolutePath(a,e.getDirectoryPath(Vt.path)),qa=(gr=no.find(function(Ta){var Qa=Ta[0];return Ta[1],I.fileExists(si+Qa)}))===null||gr===void 0?void 0:gr[1];qa?nt(f,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+qa):nt(f,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else nt(f,u,a)}}}function Rf(r,a,u,f){var p=u.packageId,g=u.resolvedFileName,j=!e.isExternalModuleNameRelative(f)&&p?zm(p.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,p.name,e.mangleScopedPackageName(p.name)):Od(p.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,p.name,f):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,f,e.mangleScopedPackageName(p.name)):void 0;df(r,a,e.chainDiagnosticMessages(j,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,f,g))}function zm(r){return he().has(e.getTypesPackageName(r))}function Od(r){return!!he().get(r)}function Rc(r,a){if(r!=null&&r.exports){var u=Vs(r.exports.get("export="),a),f=vp(mo(u),mo(r));return mo(f)||r}}function vp(r,a){if(!r||r===en||r===a||a.exports.size===1||r.flags&2097152)return r;var u=la(r);if(u.cjsExportMerged)return u.cjsExportMerged;var f=r.flags&33554432?r:a_(r);return f.flags=f.flags|512,f.exports===void 0&&(f.exports=e.createSymbolTable()),a.exports.forEach(function(p,g){g!=="export="&&f.exports.set(g,f.exports.has(g)?qp(f.exports.get(g),p):p)}),la(f).cjsExportMerged=f,u.cjsExportMerged=f}function rd(r,a,u,f){var p,g=Rc(r,u);if(!u&&g){if(!f&&!(g.flags&1539)&&!e.getDeclarationOfKind(g,308)){var j=qe>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return nt(a,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,j),g}var pe=a.parent;if(e.isImportDeclaration(pe)&&e.getNamespaceDeclarationNode(pe)||e.isImportCall(pe)){var Se=e.isImportCall(pe)?pe.arguments[0]:pe.moduleSpecifier,Be=_n(g),fr=D7(Be,g,r,Se);if(fr)return yp(g,fr,pe);var sr=(p=r==null?void 0:r.declarations)===null||p===void 0?void 0:p.find(e.isSourceFile),gr=sr&&Jm(Ed(Se),sr.impliedNodeFormat);if(e.getESModuleInterop(Ce)||gr){var _r=Ms(Be,0);if((!_r||!_r.length)&&(_r=Ms(Be,1)),_r&&_r.length||Fa(Be,"default",!0)||gr){var Kr=x7(Be,g,r,Se);return yp(g,Kr,pe)}}}}return g}function yp(r,a,u){var f=Lo(r.flags,r.escapedName);f.declarations=r.declarations?r.declarations.slice():[],f.parent=r.parent,f.target=r,f.originatingImport=u,r.valueDeclaration&&(f.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(f.constEnumOnlyModule=!0),r.members&&(f.members=new e.Map(r.members)),r.exports&&(f.exports=new e.Map(r.exports));var p=El(a);return f.type=Es(f,p.members,e.emptyArray,e.emptyArray,p.indexInfos),f}function ef(r){return r.exports.get("export=")!==void 0}function Sl(r){return Z1(Ll(r))}function K_(r){var a=Sl(r),u=Rc(r);if(u!==r){var f=_n(u);Pc(f)&&e.addRange(a,Ro(f))}return a}function Wm(r,a){var u=Ll(r);u.forEach(function(g,j){Rl(j)||a(g,j)});var f=Rc(r);if(f!==r){var p=_n(f);Pc(p)&&Gk(p,function(g,j){a(g,j)})}}function bp(r,a){var u=Ll(a);if(u)return u.get(r)}function u_(r,a){var u=bp(r,a);if(u)return u;var f=Rc(a);if(f!==a){var p=_n(f);return Pc(p)?Fa(p,r):void 0}}function Pc(r){return!(r.flags&131068||e.getObjectFlags(r)&1||Al(r)||po(r))}function Dc(r){return r.flags&6256?Fy(r,"resolvedExports"):r.flags&1536?Ll(r):r.exports||rr}function Ll(r){var a=la(r);return a.resolvedExports||(a.resolvedExports=qm(r))}function Ys(r,a,u,f){a&&a.forEach(function(p,g){if(g!=="default"){var j=r.get(g);if(!j)r.set(g,p),u&&f&&u.set(g,{specifierText:e.getTextOfNode(f.moduleSpecifier)});else if(u&&f&&j&&Vs(j)!==Vs(p)){var pe=u.get(g);pe.exportsWithDuplicate?pe.exportsWithDuplicate.push(f):pe.exportsWithDuplicate=[f]}}})}function qm(r){var a=[];return r=Rc(r),u(r)||rr;function u(f){if(f&&f.exports&&e.pushIfUnique(a,f)){var p=new e.Map(f.exports),g=f.exports.get("__export");if(g){var j=e.createSymbolTable(),pe=new e.Map;if(g.declarations)for(var Se=0,Be=g.declarations;Se<Be.length;Se++){var fr=Be[Se],sr=Ac(fr,fr.moduleSpecifier),gr=u(sr);Ys(j,gr,pe,fr)}pe.forEach(function(_r,Kr){var mt=_r.exportsWithDuplicate;if(!(Kr==="export="||!(mt&&mt.length)||p.has(Kr)))for(var Vt=0,wt=mt;Vt<wt.length;Vt++){var rn=wt[Vt];ya.add(e.createDiagnosticForNode(rn,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,pe.get(Kr).specifierText,e.unescapeLeadingUnderscores(Kr)))}}),Ys(p,j)}return p}}}function mo(r){var a;return r&&r.mergeId&&(a=Zr[r.mergeId])?a:r}function Zn(r){return mo(r.symbol&&wh(r.symbol))}function Bc(r){return mo(r.parent&&wh(r.parent))}function Sf(r,a){var u=e.getSourceFileOfNode(a),f=_e(u),p=la(r),g;if(p.extendedContainersByFile&&(g=p.extendedContainersByFile.get(f)))return g;if(u&&u.imports){for(var j=0,pe=u.imports;j<pe.length;j++){var Se=pe[j];if(!e.nodeIsSynthesized(Se)){var Be=Ac(a,Se,!0);if(Be){var fr=td(Be,r);fr&&(g=e.append(g,Be))}}}if(e.length(g))return(p.extendedContainersByFile||(p.extendedContainersByFile=new e.Map)).set(f,g),g}if(p.extendedContainers)return p.extendedContainers;for(var sr=I.getSourceFiles(),gr=0,_r=sr;gr<_r.length;gr++){var Kr=_r[gr];if(e.isExternalModule(Kr)){var mt=Zn(Kr),fr=td(mt,r);fr&&(g=e.append(g,mt))}}return p.extendedContainers=g||e.emptyArray}function Md(r,a,u){var f=Bc(r);if(f&&!(r.flags&262144)){var p=e.mapDefined(f.declarations,fr),g=a&&Sf(r,a),j=Jg(f,u);if(a&&f.flags&Bf(u)&&xp(f,a,1920,!1))return e.append(e.concatenate(e.concatenate([f],p),g),j);var pe=!(f.flags&Bf(u))&&f.flags&788968&&mn(f).flags&524288&&u===111551?Bl(a,function(sr){return e.forEachEntry(sr,function(gr){if(gr.flags&Bf(u)&&_n(gr)===mn(f))return gr})}):void 0,Se=pe?t(t([pe],p,!0),[f],!1):t(t([],p,!0),[f],!1);return Se=e.append(Se,j),Se=e.addRange(Se,g),Se}var Be=e.mapDefined(r.declarations,function(sr){if(!e.isAmbientModule(sr)&&sr.parent){if(zu(sr.parent))return Zn(sr.parent);if(e.isModuleBlock(sr.parent)&&sr.parent.parent&&Rc(Zn(sr.parent.parent))===r)return Zn(sr.parent.parent)}if(e.isClassExpression(sr)&&e.isBinaryExpression(sr.parent)&&sr.parent.operatorToken.kind===63&&e.isAccessExpression(sr.parent.left)&&e.isEntityNameExpression(sr.parent.left.expression))return e.isModuleExportsAccessExpression(sr.parent.left)||e.isExportsIdentifier(sr.parent.left.expression)?Zn(e.getSourceFileOfNode(sr)):(Gs(sr.parent.left.expression),Mi(sr.parent.left.expression).resolvedSymbol)});if(!e.length(Be))return;return e.mapDefined(Be,function(sr){return td(sr,r)?sr:void 0});function fr(sr){return f&&l_(sr,f)}}function Jg(r,a){var u=!!e.length(r.declarations)&&e.first(r.declarations);if(a&111551&&u&&u.parent&&e.isVariableDeclaration(u.parent)&&(e.isObjectLiteralExpression(u)&&u===u.parent.initializer||e.isTypeLiteralNode(u)&&u===u.parent.type))return Zn(u.parent)}function l_(r,a){var u=em(r),f=u&&u.exports&&u.exports.get("export=");return f&&Uu(f,a)?u:void 0}function td(r,a){if(r===Bc(a))return a;var u=r.exports&&r.exports.get("export=");if(u&&Uu(u,a))return r;var f=Dc(r),p=f.get(a.escapedName);return p&&Uu(p,a)?p:e.forEachEntry(f,function(g){if(Uu(g,a))return g})}function Uu(r,a){if(mo(Vs(mo(r)))===mo(Vs(mo(a))))return r}function Iu(r){return mo(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function Sp(r,a){return!!(r.flags&111551||r.flags&2097152&&Gc(r)&111551&&(a||!ba(r)))}function f_(r){for(var a=r.members,u=0,f=a;u<f.length;u++){var p=f[u];if(p.kind===173&&e.nodeIsPresent(p.body))return p}}function xu(r){var a=new b(Fe,r);return G++,a.id=G,e.tracing===null||e.tracing===void 0||e.tracing.recordType(a),a}function Fd(r){return new b(Fe,r)}function Os(r,a,u){u===void 0&&(u=0);var f=xu(r);return f.intrinsicName=a,f.objectFlags=u,f}function ll(r,a){var u=xu(524288);return u.objectFlags=r,u.symbol=a,u.members=void 0,u.properties=void 0,u.callSignatures=void 0,u.constructSignatures=void 0,u.indexInfos=void 0,u}function Q_(){return zi(e.arrayFrom(S.keys(),kl))}function ic(r){var a=xu(262144);return r&&(a.symbol=r),a}function Rl(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Dp(r){var a;return r.forEach(function(u,f){X_(u,f)&&(a||(a=[])).push(u)}),a||e.emptyArray}function X_(r,a){return!Rl(a)&&Sp(r)}function p_(r){var a=Dp(r),u=iA(r);return u?e.concatenate(a,[u]):a}function Vu(r,a,u,f,p){var g=r;return g.members=a,g.properties=e.emptyArray,g.callSignatures=u,g.constructSignatures=f,g.indexInfos=p,a!==rr&&(g.properties=Dp(a)),g}function Es(r,a,u,f,p){return Vu(ll(16,r),a,u,f,p)}function Y_(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;var a=e.filter(r.constructSignatures,function(f){return!(f.flags&4)});if(r.constructSignatures===a)return r;var u=Es(r.symbol,r.members,r.callSignatures,e.some(a)?a:e.emptyArray,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=u,u.objectTypeWithoutAbstractConstructSignatures=u,u}function Bl(r,a){for(var u,f=function(j){if(j.locals&&!sl(j)&&(u=a(j.locals,void 0,!0,j)))return{value:u};switch(j.kind){case 308:if(!e.isExternalOrCommonJsModule(j))break;case 264:var pe=Zn(j);if(u=a((pe==null?void 0:pe.exports)||rr,void 0,!0,j))return{value:u};break;case 260:case 228:case 261:var Se;if((Zn(j).members||rr).forEach(function(Be,fr){Be.flags&788968&&(Se||(Se=e.createSymbolTable())).set(fr,Be)}),Se&&(u=a(Se,void 0,!1,j)))return{value:u};break}},p=r;p;p=p.parent){var g=f(p);if(typeof g=="object")return g.value}return a(Rr,void 0,!0)}function Bf(r){return r===111551?111551:1920}function xp(r,a,u,f,p){if(p===void 0&&(p=new e.Map),!(r&&!nd(r)))return;var g=la(r),j=g.accessibleChainCache||(g.accessibleChainCache=new e.Map),pe=Bl(a,function(wt,rn,on,Un){return Un}),Se="".concat(f?0:1,"|").concat(pe&&_e(pe),"|").concat(u);if(j.has(Se))return j.get(Se);var Be=ne(r),fr=p.get(Be);fr||p.set(Be,fr=[]);var sr=Bl(a,gr);return j.set(Se,sr),sr;function gr(wt,rn,on){if(e.pushIfUnique(fr,wt)){var Un=mt(wt,rn,on);return fr.pop(),Un}}function _r(wt,rn){return!Ld(wt,a,rn)||!!xp(wt.parent,a,Bf(rn),f,p)}function Kr(wt,rn,on){return(r===(rn||wt)||mo(r)===mo(rn||wt))&&!e.some(wt.declarations,zu)&&(on||_r(mo(wt),u))}function mt(wt,rn,on){if(Kr(wt.get(r.escapedName),void 0,rn))return[r];var Un=e.forEachEntry(wt,function(Gn){if(Gn.flags&2097152&&Gn.escapedName!=="export="&&Gn.escapedName!=="default"&&!(e.isUMDExportSymbol(Gn)&&a&&e.isExternalModule(e.getSourceFileOfNode(a)))&&(!f||e.some(Gn.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!on||!e.some(Gn.declarations,e.isNamespaceReexportDeclaration))&&(rn||!e.getDeclarationOfKind(Gn,278))){var Ti=gc(Gn),li=Vt(Gn,Ti,rn);if(li)return li}if(Gn.escapedName===r.escapedName&&Gn.exportSymbol&&Kr(mo(Gn.exportSymbol),void 0,rn))return[r]});return Un||(wt===Rr?Vt(Fr,Fr,rn):void 0)}function Vt(wt,rn,on){if(Kr(wt,rn,on))return[wt];var Un=Dc(rn),Gn=Un&&gr(Un,!0);if(Gn&&_r(wt,Bf(u)))return[wt].concat(Gn)}}function Ld(r,a,u){var f=!1;return Bl(a,function(p){var g=mo(p.get(r.escapedName));if(!g)return!1;if(g===r)return!0;var j=g.flags&2097152&&!e.getDeclarationOfKind(g,278);g=j?gc(g):g;var pe=j?Gc(g):g.flags;return pe&u?(f=!0,!0):!1}),f}function nd(r){if(r.declarations&&r.declarations.length){for(var a=0,u=r.declarations;a<u.length;a++){var f=u[a];switch(f.kind){case 169:case 171:case 174:case 175:continue;default:return!1}}return!0}return!1}function Df(r,a){var u=xf(r,a,788968,!1,!0);return u.accessibility===0}function d_(r,a){var u=xf(r,a,111551,!1,!0);return u.accessibility===0}function __(r,a,u){var f=xf(r,a,u,!1,!1);return f.accessibility===0}function Z_(r,a,u,f,p,g){if(e.length(r)){for(var j,pe=!1,Se=0,Be=r;Se<Be.length;Se++){var fr=Be[Se],sr=xp(fr,a,f,!1);if(sr){j=fr;var gr=$m(sr[0],p);if(gr)return gr}if(g&&e.some(fr.declarations,zu)){if(p){pe=!0;continue}return{accessibility:0}}var _r=Md(fr,a,f),Kr=Z_(_r,a,u,u===fr?Bf(f):f,p,g);if(Kr)return Kr}if(pe)return{accessibility:0};if(j)return{accessibility:1,errorSymbolName:na(u,a,f),errorModuleName:j!==u?na(j,a,1920):void 0}}}function rf(r,a,u,f){return xf(r,a,u,f,!0)}function xf(r,a,u,f,p){if(r&&a){var g=Z_([r],a,r,u,f,p);if(g)return g;var j=e.forEach(r.declarations,em);if(j){var pe=em(a);if(j!==pe)return{accessibility:2,errorSymbolName:na(r,a,u),errorModuleName:na(j),errorNode:e.isInJSFile(a)?a:void 0}}return{accessibility:1,errorSymbolName:na(r,a,u)}}return{accessibility:0}}function em(r){var a=e.findAncestor(r,Ug);return a&&Zn(a)}function Ug(r){return e.isAmbientModule(r)||r.kind===308&&e.isExternalOrCommonJsModule(r)}function zu(r){return e.isModuleWithStringLiteralName(r)||r.kind===308&&e.isExternalOrCommonJsModule(r)}function $m(r,a){var u;if(!e.every(e.filter(r.declarations,function(g){return g.kind!==79}),f))return;return{accessibility:0,aliasesToMakeVisible:u};function f(g){var j,pe;if(!Dl(g)){var Se=W_(g);if(Se&&!e.hasSyntacticModifier(Se,1)&&Dl(Se.parent))return p(g,Se);if(e.isVariableDeclaration(g)&&e.isVariableStatement(g.parent.parent)&&!e.hasSyntacticModifier(g.parent.parent,1)&&Dl(g.parent.parent.parent))return p(g,g.parent.parent);if(e.isLateVisibilityPaintedStatement(g)&&!e.hasSyntacticModifier(g,1)&&Dl(g.parent))return p(g,g);if(e.isBindingElement(g)){if(r.flags&2097152&&e.isInJSFile(g)&&(!((j=g.parent)===null||j===void 0)&&j.parent)&&e.isVariableDeclaration(g.parent.parent)&&(!((pe=g.parent.parent.parent)===null||pe===void 0)&&pe.parent)&&e.isVariableStatement(g.parent.parent.parent.parent)&&!e.hasSyntacticModifier(g.parent.parent.parent.parent,1)&&g.parent.parent.parent.parent.parent&&Dl(g.parent.parent.parent.parent.parent))return p(g,g.parent.parent.parent.parent);if(r.flags&2){var Be=e.findAncestor(g,e.isVariableStatement);return e.hasSyntacticModifier(Be,1)?!0:Dl(Be.parent)?p(g,Be):!1}}return!1}return!0}function p(g,j){return a&&(Mi(g).isVisible=!0,u=e.appendIfUnique(u,j)),!0}}function Tf(r,a){var u;r.parent.kind===183||r.parent.kind===230&&!e.isPartOfTypeNode(r.parent)||r.parent.kind===164?u=1160127:r.kind===163||r.kind===208||r.parent.kind===268?u=1920:u=788968;var f=e.getFirstIdentifier(r),p=Ls(a,f.escapedText,u,void 0,void 0,!1);return p&&p.flags&262144&&u&788968?{accessibility:0}:!p&&e.isThisIdentifier(f)&&rf(Zn(e.getThisContainer(f,!1)),f,u,!1).accessibility===0?{accessibility:0}:p&&$m(p,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(f),errorNode:f}}function na(r,a,u,f,p){f===void 0&&(f=4);var g=70221824;f&2&&(g|=128),f&1&&(g|=512),f&8&&(g|=16384),f&32&&(g|=134217728),f&16&&(g|=1073741824);var j=f&4?qr.symbolToNode:qr.symbolToEntityName;return p?pe(p).getText():e.usingSingleLineStringWriter(pe);function pe(Se){var Be=j(r,u,a,g),fr=(a==null?void 0:a.kind)===308?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),sr=a&&e.getSourceFileOfNode(a);return fr.writeNode(4,Be,sr,Se),Se}}function Tp(r,a,u,f,p){return u===void 0&&(u=0),p?g(p).getText():e.usingSingleLineStringWriter(g);function g(j){var pe;u&262144?pe=f===1?182:181:pe=f===1?177:176;var Se=qr.signatureToSignatureDeclaration(r,pe,a,Ep(u)|70221824|512),Be=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),fr=a&&e.getSourceFileOfNode(a);return Be.writeNode(4,Se,fr,e.getTrailingSemicolonDeferringWriter(j)),j}}function Hn(r,a,u,f){u===void 0&&(u=1064960),f===void 0&&(f=e.createTextWriter(""));var p=Ce.noErrorTruncation||u&1,g=qr.typeToTypeNode(r,a,Ep(u)|70221824|(p?1:0),f);if(g===void 0)return e.Debug.fail("should always get typenode");var j={removeComments:r!==Sr},pe=e.createPrinter(j),Se=a&&e.getSourceFileOfNode(a);pe.writeNode(4,g,Se,f);var Be=f.getText(),fr=p?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return fr&&Be&&Be.length>=fr?Be.substr(0,fr-3)+"...":Be}function rm(r,a){var u=g_(r.symbol)?Hn(r,r.symbol.valueDeclaration):Hn(r),f=g_(a.symbol)?Hn(a,a.symbol.valueDeclaration):Hn(a);return u===f&&(u=m_(r),f=m_(a)),[u,f]}function m_(r){return Hn(r,void 0,64)}function g_(r){return r&&!!r.valueDeclaration&&e.isExpression(r.valueDeclaration)&&!zl(r.valueDeclaration)}function Ep(r){return r===void 0&&(r=0),r&848330091}function Hm(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Ou(r.symbol)||!!(r.flags&524288)&&!!(e.getObjectFlags(r)&16777216))}function Cp(){return{typeToTypeNode:function(dt,Pr,qn,Sn){return a(Pr,qn,Sn,function(ui){return p(dt,ui)})},indexInfoToIndexSignatureDeclaration:function(dt,Pr,qn,Sn){return a(Pr,qn,Sn,function(ui){return sr(dt,ui,void 0)})},signatureToSignatureDeclaration:function(dt,Pr,qn,Sn,ui){return a(qn,Sn,ui,function(Vn){return gr(dt,Pr,Vn)})},symbolToEntityName:function(dt,Pr,qn,Sn,ui){return a(qn,Sn,ui,function(Vn){return Ga(dt,Vn,Pr,!1)})},symbolToExpression:function(dt,Pr,qn,Sn,ui){return a(qn,Sn,ui,function(Vn){return Bo(dt,Vn,Pr)})},symbolToTypeParameterDeclarations:function(dt,Pr,qn,Sn){return a(Pr,qn,Sn,function(ui){return Un(dt,ui)})},symbolToParameterDeclaration:function(dt,Pr,qn,Sn){return a(Pr,qn,Sn,function(ui){return Vt(dt,ui)})},typeParameterToDeclaration:function(dt,Pr,qn,Sn){return a(Pr,qn,Sn,function(ui){return mt(dt,ui)})},symbolTableToDeclarationStatements:function(dt,Pr,qn,Sn,ui){return a(Pr,qn,Sn,function(Vn){return Za(dt,Vn,ui)})},symbolToNode:function(dt,Pr,qn,Sn,ui){return a(qn,Sn,ui,function(Vn){return r(dt,Vn,Pr)})}};function r(dt,Pr,qn){if(Pr.flags&1073741824){if(dt.valueDeclaration){var Sn=e.getNameOfDeclaration(dt.valueDeclaration);if(Sn&&e.isComputedPropertyName(Sn))return Sn}var ui=la(dt).nameType;if(ui&&ui.flags&9216)return Pr.enclosingDeclaration=ui.symbol.valueDeclaration,e.factory.createComputedPropertyName(Bo(ui.symbol,Pr,qn))}return Bo(dt,Pr,qn)}function a(dt,Pr,qn,Sn){var ui,Vn;e.Debug.assert(dt===void 0||(dt.flags&8)===0);var $n={enclosingDeclaration:dt,flags:Pr||0,tracker:qn&&qn.trackSymbol?qn:{trackSymbol:function(){return!1},moduleResolverHost:Pr&134217728?{getCommonSourceDirectory:I.getCommonSourceDirectory?function(){return I.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return I.getCurrentDirectory()},getSymlinkCache:e.maybeBind(I,I.getSymlinkCache),getPackageJsonInfoCache:function(){var it;return(it=I.getPackageJsonInfoCache)===null||it===void 0?void 0:it.call(I)},useCaseSensitiveFileNames:e.maybeBind(I,I.useCaseSensitiveFileNames),redirectTargetsMap:I.redirectTargetsMap,getProjectReferenceRedirect:function(it){return I.getProjectReferenceRedirect(it)},isSourceOfProjectReferenceRedirect:function(it){return I.isSourceOfProjectReferenceRedirect(it)},fileExists:function(it){return I.fileExists(it)},getFileIncludeReasons:function(){return I.getFileIncludeReasons()},readFile:I.readFile?function(it){return I.readFile(it)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};$n.tracker=u($n,$n.tracker);var Ei=Sn($n);return $n.truncating&&$n.flags&1&&((Vn=(ui=$n.tracker)===null||ui===void 0?void 0:ui.reportTruncationError)===null||Vn===void 0||Vn.call(ui)),$n.encounteredError?void 0:Ei}function u(dt,Pr){var qn=Pr.trackSymbol;return n(n({},Pr),{reportCyclicStructureError:Sn(Pr.reportCyclicStructureError),reportInaccessibleThisError:Sn(Pr.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:Sn(Pr.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:Sn(Pr.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:Sn(Pr.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:Sn(Pr.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:Sn(Pr.reportNonSerializableProperty),trackSymbol:qn&&function(){for(var ui=[],Vn=0;Vn<arguments.length;Vn++)ui[Vn]=arguments[Vn];var $n=qn.apply(void 0,ui);return $n&&(dt.reportedDiagnostic=!0),$n}});function Sn(ui){return ui&&function(){for(var Vn=[],$n=0;$n<arguments.length;$n++)Vn[$n]=arguments[$n];return dt.reportedDiagnostic=!0,ui.apply(void 0,Vn)}}}function f(dt){return dt.truncating?dt.truncating:dt.truncating=dt.approximateLength>(dt.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function p(dt,Pr){var qn=Pr.flags,Sn=g(dt,Pr);return Pr.flags=qn,Sn}function g(dt,Pr){J&&J.throwIfCancellationRequested&&J.throwIfCancellationRequested();var qn=Pr.flags&8388608;if(Pr.flags&=-8388609,!dt){if(!(Pr.flags&262144)){Pr.encounteredError=!0;return}return Pr.approximateLength+=3,e.factory.createKeywordTypeNode(131)}if(Pr.flags&536870912||(dt=Zi(dt)),dt.flags&1)return dt.aliasSymbol?e.factory.createTypeReferenceNode(Ja(dt.aliasSymbol),Be(dt.aliasTypeArguments,Pr)):dt===Sr?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(131),3,"unresolved"):(Pr.approximateLength+=3,e.factory.createKeywordTypeNode(dt===Ge?139:131));if(dt.flags&2)return e.factory.createKeywordTypeNode(157);if(dt.flags&4)return Pr.approximateLength+=6,e.factory.createKeywordTypeNode(152);if(dt.flags&8)return Pr.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(dt.flags&64)return Pr.approximateLength+=6,e.factory.createKeywordTypeNode(160);if(dt.flags&16&&!dt.aliasSymbol)return Pr.approximateLength+=7,e.factory.createKeywordTypeNode(134);if(dt.flags&1024&&!(dt.flags&1048576)){var Sn=Bc(dt.symbol),ui=Ai(Sn,Pr,788968);if(mn(Sn)===dt)return ui;var Vn=e.symbolName(dt.symbol);return e.isIdentifierText(Vn,0)?vt(ui,e.factory.createTypeReferenceNode(Vn,void 0)):e.isImportTypeNode(ui)?(ui.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(ui,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Vn)))):e.isTypeReferenceNode(ui)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(ui.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Vn))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(dt.flags&1056)return Ai(dt.symbol,Pr,788968);if(dt.flags&128)return Pr.approximateLength+=dt.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(dt.value,!!(Pr.flags&268435456)),16777216));if(dt.flags&256){var $n=dt.value;return Pr.approximateLength+=(""+$n).length,e.factory.createLiteralTypeNode($n<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-$n)):e.factory.createNumericLiteral($n))}if(dt.flags&2048)return Pr.approximateLength+=e.pseudoBigIntToString(dt.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(dt.value));if(dt.flags&512)return Pr.approximateLength+=dt.intrinsicName.length,e.factory.createLiteralTypeNode(dt.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(dt.flags&8192){if(!(Pr.flags&1048576)){if(d_(dt.symbol,Pr.enclosingDeclaration))return Pr.approximateLength+=6,Ai(dt.symbol,Pr,111551);Pr.tracker.reportInaccessibleUniqueSymbolError&&Pr.tracker.reportInaccessibleUniqueSymbolError()}return Pr.approximateLength+=13,e.factory.createTypeOperatorNode(156,e.factory.createKeywordTypeNode(153))}if(dt.flags&16384)return Pr.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(dt.flags&32768)return Pr.approximateLength+=9,e.factory.createKeywordTypeNode(155);if(dt.flags&65536)return Pr.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(dt.flags&131072)return Pr.approximateLength+=5,e.factory.createKeywordTypeNode(144);if(dt.flags&4096)return Pr.approximateLength+=6,e.factory.createKeywordTypeNode(153);if(dt.flags&67108864)return Pr.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(e.isThisTypeParameter(dt))return Pr.flags&4194304&&(!Pr.encounteredError&&!(Pr.flags&32768)&&(Pr.encounteredError=!0),Pr.tracker.reportInaccessibleThisError&&Pr.tracker.reportInaccessibleThisError()),Pr.approximateLength+=4,e.factory.createThisTypeNode();if(!qn&&dt.aliasSymbol&&(Pr.flags&16384||Df(dt.aliasSymbol,Pr.enclosingDeclaration))){var Ei=Be(dt.aliasTypeArguments,Pr);return Rl(dt.aliasSymbol.escapedName)&&!(dt.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),Ei):e.length(Ei)===1&&dt.aliasSymbol===_i.symbol?e.factory.createArrayTypeNode(Ei[0]):Ai(dt.aliasSymbol,Pr,788968,Ei)}var it=e.getObjectFlags(dt);if(it&4)return e.Debug.assert(!!(dt.flags&524288)),dt.node?rp(dt,tp):tp(dt);if(dt.flags&262144||it&3){if(dt.flags&262144&&e.contains(Pr.inferTypeParameters,dt)){Pr.approximateLength+=e.symbolName(dt.symbol).length+6;var Ht=void 0,nn=Uc(dt);if(nn){var Ln=aO(dt,!0);Ln&&ud(nn,Ln)||(Pr.approximateLength+=9,Ht=nn&&p(nn,Pr))}return e.factory.createInferTypeNode(Kr(dt,Pr,Ht))}if(Pr.flags&4&&dt.flags&262144&&!Df(dt.symbol,Pr.enclosingDeclaration)){var Rn=Wa(dt,Pr);return Pr.approximateLength+=e.idText(Rn).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(Rn)),void 0)}if(dt.symbol)return Ai(dt.symbol,Pr,788968);var ni=(dt===bo||dt===Oo)&&He&&He.symbol?(dt===Oo?"sub-":"super-")+e.symbolName(He.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(ni),void 0)}if(dt.flags&1048576&&dt.origin&&(dt=dt.origin),dt.flags&3145728){var wi=dt.flags&1048576?id(dt.types):dt.types;if(e.length(wi)===1)return p(wi[0],Pr);var ia=Be(wi,Pr,!0);if(ia&&ia.length>0)return dt.flags&1048576?e.factory.createUnionTypeNode(ia):e.factory.createIntersectionTypeNode(ia);!Pr.encounteredError&&!(Pr.flags&262144)&&(Pr.encounteredError=!0);return}if(it&48)return e.Debug.assert(!!(dt.flags&524288)),vg(dt);if(dt.flags&4194304){var lo=dt.type;Pr.approximateLength+=6;var aa=p(lo,Pr);return e.factory.createTypeOperatorNode(141,aa)}if(dt.flags&134217728){var Io=dt.texts,xo=dt.types,is=e.factory.createTemplateHead(Io[0]),Oc=e.factory.createNodeArray(e.map(xo,function(zt,jn){return e.factory.createTemplateLiteralTypeSpan(p(zt,Pr),(jn<xo.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(Io[jn+1]))}));return Pr.approximateLength+=2,e.factory.createTemplateLiteralType(is,Oc)}if(dt.flags&268435456){var Mc=p(dt.type,Pr);return Ai(dt.symbol,Pr,788968,[Mc])}if(dt.flags&8388608){var Bs=p(dt.objectType,Pr),aa=p(dt.indexType,Pr);return Pr.approximateLength+=2,e.factory.createIndexedAccessTypeNode(Bs,aa)}if(dt.flags&16777216)return rp(dt,function(zt){return al(zt)});if(dt.flags&33554432)return p(dt.baseType,Pr);return e.Debug.fail("Should be unreachable.");function al(zt){var jn=p(zt.checkType,Pr);if(Pr.approximateLength+=15,Pr.flags&4&&zt.root.isDistributive&&!(zt.checkType.flags&262144)){var cn=ic(Lo(262144,"T")),On=Wa(cn,Pr),ri=e.factory.createTypeReferenceNode(On);Pr.approximateLength+=37;var Ci=Jh(zt.root.checkType,cn,zt.mapper),ki=Pr.inferTypeParameters;Pr.inferTypeParameters=zt.root.inferTypeParameters;var Gi=p(Sa(zt.root.extendsType,Ci),Pr);Pr.inferTypeParameters=ki;var Na=vs(Sa(ea(zt.root.node.trueType),Ci)),Pa=vs(Sa(ea(zt.root.node.falseType),Ci));return e.factory.createConditionalTypeNode(jn,e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(ri.typeName))),e.factory.createConditionalTypeNode(e.factory.createTypeReferenceNode(e.factory.cloneNode(On)),p(zt.checkType,Pr),e.factory.createConditionalTypeNode(ri,Gi,Na,Pa),e.factory.createKeywordTypeNode(144)),e.factory.createKeywordTypeNode(144))}var eo=Pr.inferTypeParameters;Pr.inferTypeParameters=zt.root.inferTypeParameters;var Mo=p(zt.extendsType,Pr);Pr.inferTypeParameters=eo;var ao=vs(vm(zt)),ps=vs(ym(zt));return e.factory.createConditionalTypeNode(jn,Mo,ao,ps)}function vs(zt){var jn,cn,On;return zt.flags&1048576?!((jn=Pr.visitedTypes)===null||jn===void 0)&&jn.has(Wc(zt))?(Pr.flags&131072||(Pr.encounteredError=!0,(On=(cn=Pr.tracker)===null||cn===void 0?void 0:cn.reportCyclicStructureError)===null||On===void 0||On.call(cn)),j(Pr)):rp(zt,function(ri){return p(ri,Pr)}):p(zt,Pr)}function Mp(zt){return Fv(zt)&&!(Oh(zt).flags&262144)}function hg(zt){e.Debug.assert(!!(zt.flags&524288));var jn=zt.declaration.readonlyToken?e.factory.createToken(zt.declaration.readonlyToken.kind):void 0,cn=zt.declaration.questionToken?e.factory.createToken(zt.declaration.questionToken.kind):void 0,On,ri;if(Fv(zt)){if(Mp(zt)&&Pr.flags&4){var Ci=ic(Lo(262144,"T")),ki=Wa(Ci,Pr);ri=e.factory.createTypeReferenceNode(ki)}On=e.factory.createTypeOperatorNode(141,ri||p(Oh(zt),Pr))}else On=p(Ul(zt),Pr);var Gi=Kr(Tl(zt),Pr,On),Na=zt.declaration.nameType?p(cd(zt),Pr):void 0,Pa=p(Hv(qf(zt),!!(tf(zt)&4)),Pr),eo=e.factory.createMappedTypeNode(jn,Gi,Na,cn,Pa,void 0);Pr.approximateLength+=10;var Mo=e.setEmitFlags(eo,1);if(Mp(zt)&&Pr.flags&4){var ao=Sa(Uc(ea(zt.declaration.typeParameter.constraint.type))||ur,zt.mapper);return e.factory.createConditionalTypeNode(p(Oh(zt),Pr),e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(ri.typeName),ao.flags&2?void 0:p(ao,Pr))),Mo,e.factory.createKeywordTypeNode(144))}return Mo}function vg(zt){var jn,cn=zt.id,On=zt.symbol;if(On){var ri=Hm(zt)?788968:111551;if(wf(On.valueDeclaration))return Ai(On,Pr,ri);if(On.flags&32&&!cu(On)&&!(On.valueDeclaration&&e.isClassLike(On.valueDeclaration)&&Pr.flags&2048&&(!e.isClassDeclaration(On.valueDeclaration)||rf(On,Pr.enclosingDeclaration,ri,!1).accessibility!==0))||On.flags&896||ki())return Ai(On,Pr,ri);if(!((jn=Pr.visitedTypes)===null||jn===void 0)&&jn.has(cn)){var Ci=fl(zt);return Ci?Ai(Ci,Pr,788968):j(Pr)}else return rp(zt,Kd)}else return Kd(zt);function ki(){var Gi,Na=!!(On.flags&8192)&&e.some(On.declarations,function(eo){return e.isStatic(eo)}),Pa=!!(On.flags&16)&&(On.parent||e.forEach(On.declarations,function(eo){return eo.parent.kind===308||eo.parent.kind===265}));if(Na||Pa)return(!!(Pr.flags&4096)||((Gi=Pr.visitedTypes)===null||Gi===void 0?void 0:Gi.has(cn)))&&(!(Pr.flags&8)||d_(On,Pr.enclosingDeclaration))}}function rp(zt,jn){var cn,On,ri=zt.id,Ci=e.getObjectFlags(zt)&16&&zt.symbol&&zt.symbol.flags&32,ki=e.getObjectFlags(zt)&4&&zt.node?"N"+_e(zt.node):zt.flags&16777216?"N"+_e(zt.root.node):zt.symbol?(Ci?"+":"")+ne(zt.symbol):void 0;Pr.visitedTypes||(Pr.visitedTypes=new e.Set),ki&&!Pr.symbolDepth&&(Pr.symbolDepth=new e.Map);var Gi=Pr.enclosingDeclaration&&Mi(Pr.enclosingDeclaration),Na="".concat(Wc(zt),"|").concat(Pr.flags);Gi&&(Gi.serializedTypes||(Gi.serializedTypes=new e.Map));var Pa=(cn=Gi==null?void 0:Gi.serializedTypes)===null||cn===void 0?void 0:cn.get(Na);if(Pa)return Pa.truncating&&(Pr.truncating=!0),Pr.approximateLength+=Pa.addedLength,us(Pa);var eo;if(ki){if(eo=Pr.symbolDepth.get(ki)||0,eo>10)return j(Pr);Pr.symbolDepth.set(ki,eo+1)}Pr.visitedTypes.add(ri);var Mo=Pr.approximateLength,ao=jn(zt),ps=Pr.approximateLength-Mo;return!Pr.reportedDiagnostic&&!Pr.encounteredError&&(Pr.truncating&&(ao.truncating=!0),ao.addedLength=ps,(On=Gi==null?void 0:Gi.serializedTypes)===null||On===void 0||On.set(Na,ao)),Pr.visitedTypes.delete(ri),ki&&Pr.symbolDepth.set(ki,eo),ao;function us(cs){return!e.nodeIsSynthesized(cs)&&e.getParseTreeNode(cs)===cs?cs:e.setTextRange(e.factory.cloneNode(e.visitEachChild(cs,us,e.nullTransformationContext,lu)),cs)}function lu(cs,js,Rt,ei,Qi){return cs&&cs.length===0?e.setTextRange(e.factory.createNodeArray(void 0,cs.hasTrailingComma),cs):e.visitNodes(cs,js,Rt,ei,Qi)}}function Kd(zt){if(Mu(zt)||zt.containsError)return hg(zt);var jn=El(zt);if(!jn.properties.length&&!jn.indexInfos.length){if(!jn.callSignatures.length&&!jn.constructSignatures.length)return Pr.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(jn.callSignatures.length===1&&!jn.constructSignatures.length){var cn=jn.callSignatures[0],On=gr(cn,181,Pr);return On}if(jn.constructSignatures.length===1&&!jn.callSignatures.length){var cn=jn.constructSignatures[0],On=gr(cn,182,Pr);return On}}var ri=e.filter(jn.constructSignatures,function(eo){return!!(eo.flags&4)});if(e.some(ri)){var Ci=e.map(ri,Jy),ki=jn.callSignatures.length+(jn.constructSignatures.length-ri.length)+jn.indexInfos.length+(Pr.flags&2048?e.countWhere(jn.properties,function(eo){return!(eo.flags&4194304)}):e.length(jn.properties));return ki&&Ci.push(Y_(jn)),p(ho(Ci),Pr)}var Gi=Pr.flags;Pr.flags|=4194304;var Na=dn(jn);Pr.flags=Gi;var Pa=e.factory.createTypeLiteralNode(Na);return Pr.approximateLength+=2,e.setEmitFlags(Pa,Pr.flags&1024?0:1),Pa}function tp(zt){var jn=Go(zt);if(zt.target===_i||zt.target===qi){if(Pr.flags&2){var cn=p(jn[0],Pr);return e.factory.createTypeReferenceNode(zt.target===_i?"Array":"ReadonlyArray",[cn])}var On=p(jn[0],Pr),ri=e.factory.createArrayTypeNode(On);return zt.target===_i?ri:e.factory.createTypeOperatorNode(146,ri)}else if(zt.target.objectFlags&8){if(jn=e.sameMap(jn,function(bi,Ni){return Hv(bi,!!(zt.target.elementFlags[Ni]&2))}),jn.length>0){var Ci=_m(zt),ki=Be(jn.slice(0,Ci),Pr);if(ki){if(zt.target.labeledElementDeclarations)for(var Gi=0;Gi<ki.length;Gi++){var Na=zt.target.elementFlags[Gi];ki[Gi]=e.factory.createNamedTupleMember(Na&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(_T(zt.target.labeledElementDeclarations[Gi]))),Na&2?e.factory.createToken(57):void 0,Na&4?e.factory.createArrayTypeNode(ki[Gi]):ki[Gi])}else for(var Gi=0;Gi<Math.min(Ci,ki.length);Gi++){var Na=zt.target.elementFlags[Gi];ki[Gi]=Na&12?e.factory.createRestTypeNode(Na&4?e.factory.createArrayTypeNode(ki[Gi]):ki[Gi]):Na&2?e.factory.createOptionalTypeNode(ki[Gi]):ki[Gi]}var Pa=e.setEmitFlags(e.factory.createTupleTypeNode(ki),1);return zt.target.readonly?e.factory.createTypeOperatorNode(146,Pa):Pa}}if(Pr.encounteredError||Pr.flags&524288){var Pa=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return zt.target.readonly?e.factory.createTypeOperatorNode(146,Pa):Pa}Pr.encounteredError=!0;return}else{if(Pr.flags&2048&&zt.symbol.valueDeclaration&&e.isClassLike(zt.symbol.valueDeclaration)&&!d_(zt.symbol,Pr.enclosingDeclaration))return vg(zt);var eo=zt.target.outerTypeParameters,Gi=0,Mo=void 0;if(eo)for(var ao=eo.length;Gi<ao;){var ps=Gi,us=oO(eo[Gi]);do Gi++;while(Gi<ao&&oO(eo[Gi])===us);if(!e.rangeEquals(eo,jn,ps,Gi)){var lu=Be(jn.slice(ps,Gi),Pr),cs=Pr.flags;Pr.flags|=16;var js=Ai(us,Pr,788968,lu);Pr.flags=cs,Mo=Mo?vt(Mo,js):js}}var Rt=void 0;if(jn.length>0){var ei=(zt.target.typeParameters||e.emptyArray).length;Rt=Be(jn.slice(Gi,ei),Pr)}var Na=Pr.flags;Pr.flags|=16;var Qi=Ai(zt.symbol,Pr,788968,Rt);return Pr.flags=Na,Mo?vt(Mo,Qi):Qi}}function vt(zt,jn){if(e.isImportTypeNode(zt)){var cn=zt.typeArguments,On=zt.qualifier;On&&(e.isIdentifier(On)?On=e.factory.updateIdentifier(On,cn):On=e.factory.updateQualifiedName(On,On.left,e.factory.updateIdentifier(On.right,cn))),cn=jn.typeArguments;for(var ri=jt(jn),Ci=0,ki=ri;Ci<ki.length;Ci++){var Gi=ki[Ci];On=On?e.factory.createQualifiedName(On,Gi):Gi}return e.factory.updateImportTypeNode(zt,zt.argument,zt.assertions,On,cn,zt.isTypeOf)}else{var cn=zt.typeArguments,Na=zt.typeName;e.isIdentifier(Na)?Na=e.factory.updateIdentifier(Na,cn):Na=e.factory.updateQualifiedName(Na,Na.left,e.factory.updateIdentifier(Na.right,cn)),cn=jn.typeArguments;for(var ri=jt(jn),Pa=0,eo=ri;Pa<eo.length;Pa++){var Gi=eo[Pa];Na=e.factory.createQualifiedName(Na,Gi)}return e.factory.updateTypeReferenceNode(zt,Na,cn)}}function jt(zt){for(var jn=zt.typeName,cn=[];!e.isIdentifier(jn);)cn.unshift(jn.right),jn=jn.left;return cn.unshift(jn),cn}function dn(zt){if(f(Pr))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var jn=[],cn=0,On=zt.callSignatures;cn<On.length;cn++){var ri=On[cn];jn.push(gr(ri,176,Pr))}for(var Ci=0,ki=zt.constructSignatures;Ci<ki.length;Ci++){var ri=ki[Ci];ri.flags&4||jn.push(gr(ri,177,Pr))}for(var Gi=0,Na=zt.indexInfos;Gi<Na.length;Gi++){var Pa=Na[Gi];jn.push(sr(Pa,Pr,zt.objectFlags&1024?j(Pr):void 0))}var eo=zt.properties;if(!eo)return jn;for(var Mo=0,ao=0,ps=eo;ao<ps.length;ao++){var us=ps[ao];if(Mo++,Pr.flags&2048){if(us.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(us)&24&&Pr.tracker.reportPrivateInBaseOfClassExpression&&Pr.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(us.escapedName))}if(f(Pr)&&Mo+2<eo.length-1){jn.push(e.factory.createPropertySignature(void 0,"... ".concat(eo.length-Mo," more ..."),void 0,void 0)),Se(eo[eo.length-1],Pr,jn);break}Se(us,Pr,jn)}return jn.length?jn:void 0}}function j(dt){return dt.approximateLength+=3,dt.flags&1?e.factory.createKeywordTypeNode(131):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function pe(dt,Pr){var qn;return!!(e.getCheckFlags(dt)&8192)&&(e.contains(Pr.reverseMappedStack,dt)||((qn=Pr.reverseMappedStack)===null||qn===void 0?void 0:qn[0])&&!(e.getObjectFlags(e.last(Pr.reverseMappedStack).propertyType)&16))}function Se(dt,Pr,qn){var Sn,ui,Vn=!!(e.getCheckFlags(dt)&8192),$n=pe(dt,Pr)?Ie:Rs(dt),Ei=Pr.enclosingDeclaration;if(Pr.enclosingDeclaration=void 0,Pr.tracker.trackSymbol&&jd(dt.escapedName))if(dt.declarations){var it=e.first(dt.declarations);if(v_(it))if(e.isBinaryExpression(it)){var Ht=e.getNameOfDeclaration(it);Ht&&e.isElementAccessExpression(Ht)&&e.isPropertyAccessEntityNameExpression(Ht.argumentExpression)&&wt(Ht.argumentExpression,Ei,Pr)}else wt(it.name.expression,Ei,Pr)}else!((Sn=Pr.tracker)===null||Sn===void 0)&&Sn.reportNonSerializableProperty&&Pr.tracker.reportNonSerializableProperty(na(dt));Pr.enclosingDeclaration=dt.valueDeclaration||((ui=dt.declarations)===null||ui===void 0?void 0:ui[0])||Ei;var nn=Ca(dt,Pr);Pr.enclosingDeclaration=Ei,Pr.approximateLength+=e.symbolName(dt).length+1;var Ln=dt.flags&16777216?e.factory.createToken(57):void 0;if(dt.flags&8208&&!wp($n).length&&!uf(dt))for(var Rn=La(Nc($n,function(Oc){return!(Oc.flags&32768)}),0),ni=0,wi=Rn;ni<wi.length;ni++){var ia=wi[ni],lo=gr(ia,170,Pr,{name:nn,questionToken:Ln});qn.push(is(lo))}else{var aa=void 0;pe(dt,Pr)?aa=j(Pr):(Vn&&(Pr.reverseMappedStack||(Pr.reverseMappedStack=[]),Pr.reverseMappedStack.push(dt)),aa=$n?ha(Pr,$n,dt,Ei):e.factory.createKeywordTypeNode(131),Vn&&Pr.reverseMappedStack.pop());var Io=uf(dt)?[e.factory.createToken(146)]:void 0;Io&&(Pr.approximateLength+=9);var xo=e.factory.createPropertySignature(Io,nn,Ln,aa);qn.push(is(xo))}function is(Oc){var Mc;if(e.some(dt.declarations,function(vs){return vs.kind===350})){var Bs=(Mc=dt.declarations)===null||Mc===void 0?void 0:Mc.find(function(vs){return vs.kind===350}),al=e.getTextOfJSDocComment(Bs.comment);al&&e.setSyntheticLeadingComments(Oc,[{kind:3,text:`*
* `+al.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else dt.valueDeclaration&&e.setCommentRange(Oc,dt.valueDeclaration);return Oc}}function Be(dt,Pr,qn){if(e.some(dt)){if(f(Pr))if(qn){if(dt.length>2)return[p(dt[0],Pr),e.factory.createTypeReferenceNode("... ".concat(dt.length-2," more ..."),void 0),p(dt[dt.length-1],Pr)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var Sn=!(Pr.flags&64),ui=Sn?e.createUnderscoreEscapedMultiMap():void 0,Vn=[],$n=0,Ei=0,it=dt;Ei<it.length;Ei++){var Ht=it[Ei];if($n++,f(Pr)&&$n+2<dt.length-1){Vn.push(e.factory.createTypeReferenceNode("... ".concat(dt.length-$n," more ..."),void 0));var nn=p(dt[dt.length-1],Pr);nn&&Vn.push(nn);break}Pr.approximateLength+=2;var Ln=p(Ht,Pr);Ln&&(Vn.push(Ln),ui&&e.isIdentifierTypeReference(Ln)&&ui.add(Ln.typeName.escapedText,[Ht,Vn.length-1]))}if(ui){var Rn=Pr.flags;Pr.flags|=64,ui.forEach(function(ni){if(!e.arrayIsHomogeneous(ni,function(xo,is){var Oc=xo[0],Mc=is[0];return fr(Oc,Mc)}))for(var wi=0,ia=ni;wi<ia.length;wi++){var lo=ia[wi],aa=lo[0],Io=lo[1];Vn[Io]=p(aa,Pr)}}),Pr.flags=Rn}return Vn}}function fr(dt,Pr){return dt===Pr||!!dt.symbol&&dt.symbol===Pr.symbol||!!dt.aliasSymbol&&dt.aliasSymbol===Pr.aliasSymbol}function sr(dt,Pr,qn){var Sn=e.getNameFromIndexInfo(dt)||"x",ui=p(dt.keyType,Pr),Vn=e.factory.createParameterDeclaration(void 0,void 0,Sn,void 0,ui,void 0);return qn||(qn=p(dt.type||Ie,Pr)),!dt.type&&!(Pr.flags&2097152)&&(Pr.encounteredError=!0),Pr.approximateLength+=Sn.length+4,e.factory.createIndexSignature(dt.isReadonly?[e.factory.createToken(146)]:void 0,[Vn],qn)}function gr(dt,Pr,qn,Sn){var ui,Vn,$n,Ei,it=qn.flags&256;it&&(qn.flags&=-257),qn.approximateLength+=3;var Ht,nn;qn.flags&32&&dt.target&&dt.mapper&&dt.target.typeParameters?nn=dt.target.typeParameters.map(function(Bs){return p(Sa(Bs,dt.mapper),qn)}):Ht=dt.typeParameters&&dt.typeParameters.map(function(Bs){return mt(Bs,qn)});var Ln=G2(dt,!0)[0],Rn=(e.some(Ln,function(Bs){return Bs!==Ln[Ln.length-1]&&!!(e.getCheckFlags(Bs)&32768)})?dt.parameters:Ln).map(function(Bs){return Vt(Bs,qn,Pr===173,Sn==null?void 0:Sn.privateSymbolVisitor,Sn==null?void 0:Sn.bundledImports)}),ni=qn.flags&33554432?void 0:_r(dt,qn);ni&&Rn.unshift(ni);var wi,ia=Vl(dt);if(ia){var lo=ia.kind===2||ia.kind===3?e.factory.createToken(129):void 0,aa=ia.kind===1||ia.kind===3?e.setEmitFlags(e.factory.createIdentifier(ia.parameterName),16777216):e.factory.createThisTypeNode(),Io=ia.type&&p(ia.type,qn);wi=e.factory.createTypePredicateNode(lo,aa,Io)}else{var xo=Ho(dt);xo&&!(it&&fa(xo))?wi=qa(qn,xo,dt,Sn==null?void 0:Sn.privateSymbolVisitor,Sn==null?void 0:Sn.bundledImports):it||(wi=e.factory.createKeywordTypeNode(131))}var is=Sn==null?void 0:Sn.modifiers;if(Pr===182&&dt.flags&4){var Oc=e.modifiersToFlags(is);is=e.factory.createModifiersFromModifierFlags(Oc|256)}var Mc=Pr===176?e.factory.createCallSignature(Ht,Rn,wi):Pr===177?e.factory.createConstructSignature(Ht,Rn,wi):Pr===170?e.factory.createMethodSignature(is,(ui=Sn==null?void 0:Sn.name)!==null&&ui!==void 0?ui:e.factory.createIdentifier(""),Sn==null?void 0:Sn.questionToken,Ht,Rn,wi):Pr===171?e.factory.createMethodDeclaration(is,void 0,(Vn=Sn==null?void 0:Sn.name)!==null&&Vn!==void 0?Vn:e.factory.createIdentifier(""),void 0,Ht,Rn,wi,void 0):Pr===173?e.factory.createConstructorDeclaration(is,Rn,void 0):Pr===174?e.factory.createGetAccessorDeclaration(is,($n=Sn==null?void 0:Sn.name)!==null&&$n!==void 0?$n:e.factory.createIdentifier(""),Rn,wi,void 0):Pr===175?e.factory.createSetAccessorDeclaration(is,(Ei=Sn==null?void 0:Sn.name)!==null&&Ei!==void 0?Ei:e.factory.createIdentifier(""),Rn,void 0):Pr===178?e.factory.createIndexSignature(is,Rn,wi):Pr===320?e.factory.createJSDocFunctionType(Rn,wi):Pr===181?e.factory.createFunctionTypeNode(Ht,Rn,wi??e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Pr===182?e.factory.createConstructorTypeNode(is,Ht,Rn,wi??e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Pr===259?e.factory.createFunctionDeclaration(is,void 0,Sn!=null&&Sn.name?e.cast(Sn.name,e.isIdentifier):e.factory.createIdentifier(""),Ht,Rn,wi,void 0):Pr===215?e.factory.createFunctionExpression(is,void 0,Sn!=null&&Sn.name?e.cast(Sn.name,e.isIdentifier):e.factory.createIdentifier(""),Ht,Rn,wi,e.factory.createBlock([])):Pr===216?e.factory.createArrowFunction(is,Ht,Rn,wi,void 0,e.factory.createBlock([])):e.Debug.assertNever(Pr);return nn&&(Mc.typeArguments=e.factory.createNodeArray(nn)),Mc}function _r(dt,Pr){if(dt.thisParameter)return Vt(dt.thisParameter,Pr);if(dt.declaration){var qn=e.getJSDocThisTag(dt.declaration);if(qn&&qn.typeExpression)return e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,p(ea(qn.typeExpression),Pr))}}function Kr(dt,Pr,qn){var Sn=Pr.flags;Pr.flags&=-513;var ui=e.factory.createModifiersFromModifierFlags(HA(dt)),Vn=Wa(dt,Pr),$n=fm(dt),Ei=$n&&p($n,Pr);return Pr.flags=Sn,e.factory.createTypeParameterDeclaration(ui,Vn,qn,Ei)}function mt(dt,Pr,qn){qn===void 0&&(qn=Uc(dt));var Sn=qn&&p(qn,Pr);return Kr(dt,Pr,Sn)}function Vt(dt,Pr,qn,Sn,ui){var Vn=e.getDeclarationOfKind(dt,166);!Vn&&!e.isTransientSymbol(dt)&&(Vn=e.getDeclarationOfKind(dt,343));var $n=_n(dt);Vn&&sF(Vn)&&($n=Wd($n));var Ei=ha(Pr,$n,dt,Pr.enclosingDeclaration,Sn,ui),it=!(Pr.flags&8192)&&qn&&Vn&&e.canHaveModifiers(Vn)?e.map(e.getModifiers(Vn),e.factory.cloneNode):void 0,Ht=Vn&&e.isRestParameter(Vn)||e.getCheckFlags(dt)&32768,nn=Ht?e.factory.createToken(25):void 0,Ln=Vn&&Vn.name?Vn.name.kind===79?e.setEmitFlags(e.factory.cloneNode(Vn.name),16777216):Vn.name.kind===163?e.setEmitFlags(e.factory.cloneNode(Vn.name.right),16777216):ia(Vn.name):e.symbolName(dt),Rn=Vn&&Lh(Vn)||e.getCheckFlags(dt)&16384,ni=Rn?e.factory.createToken(57):void 0,wi=e.factory.createParameterDeclaration(it,nn,Ln,ni,Ei,void 0);return Pr.approximateLength+=e.symbolName(dt).length+3,wi;function ia(lo){return aa(lo);function aa(Io){Pr.tracker.trackSymbol&&e.isComputedPropertyName(Io)&&h_(Io)&&wt(Io.expression,Pr.enclosingDeclaration,Pr);var xo=e.visitEachChild(Io,aa,e.nullTransformationContext,void 0,aa);return e.isBindingElement(xo)&&(xo=e.factory.updateBindingElement(xo,xo.dotDotDotToken,xo.propertyName,xo.name,void 0)),e.nodeIsSynthesized(xo)||(xo=e.factory.cloneNode(xo)),e.setEmitFlags(xo,16777217)}}}function wt(dt,Pr,qn){if(qn.tracker.trackSymbol){var Sn=e.getFirstIdentifier(dt),ui=Ls(Sn,Sn.escapedText,1160127,void 0,void 0,!0);ui&&qn.tracker.trackSymbol(ui,Pr,111551)}}function rn(dt,Pr,qn,Sn){return Pr.tracker.trackSymbol(dt,Pr.enclosingDeclaration,qn),on(dt,Pr,qn,Sn)}function on(dt,Pr,qn,Sn){var ui,Vn=dt.flags&262144;return!Vn&&(Pr.enclosingDeclaration||Pr.flags&64)&&!(Pr.flags&134217728)?(ui=e.Debug.checkDefined($n(dt,qn,!0)),e.Debug.assert(ui&&ui.length>0)):ui=[dt],ui;function $n(Ei,it,Ht){var nn=xp(Ei,Pr.enclosingDeclaration,it,!!(Pr.flags&128)),Ln;if(!nn||Ld(nn[0],Pr.enclosingDeclaration,nn.length===1?it:Bf(it))){var Rn=Md(nn?nn[0]:Ei,Pr.enclosingDeclaration,it);if(e.length(Rn)){Ln=Rn.map(function(is){return e.some(is.declarations,zu)?li(is,Pr):void 0});var ni=Rn.map(function(is,Oc){return Oc});ni.sort(xo);for(var wi=ni.map(function(is){return Rn[is]}),ia=0,lo=wi;ia<lo.length;ia++){var aa=lo[ia],Io=$n(aa,Bf(it),!1);if(Io){if(aa.exports&&aa.exports.get("export=")&&Uu(aa.exports.get("export="),Ei)){nn=Io;break}nn=Io.concat(nn||[td(aa,Ei)||Ei]);break}}}}if(nn)return nn;if(Ht||!(Ei.flags&6144))return!Ht&&!Sn&&e.forEach(Ei.declarations,zu)?void 0:[Ei];function xo(is,Oc){var Mc=Ln[is],Bs=Ln[Oc];if(Mc&&Bs){var al=e.pathIsRelative(Bs);return e.pathIsRelative(Mc)===al?e.moduleSpecifiers.countPathComponents(Mc)-e.moduleSpecifiers.countPathComponents(Bs):al?-1:1}return 0}}}function Un(dt,Pr){var qn,Sn=iy(dt);return Sn.flags&524384&&(qn=e.factory.createNodeArray(e.map(Ap(dt),function(ui){return mt(ui,Pr)}))),qn}function Gn(dt,Pr,qn){var Sn;e.Debug.assert(dt&&0<=Pr&&Pr<dt.length);var ui=dt[Pr],Vn=ne(ui);if(!(!((Sn=qn.typeParameterSymbolList)===null||Sn===void 0)&&Sn.has(Vn))){(qn.typeParameterSymbolList||(qn.typeParameterSymbolList=new e.Set)).add(Vn);var $n;if(qn.flags&512&&Pr<dt.length-1){var Ei=ui,it=dt[Pr+1];if(e.getCheckFlags(it)&1){var Ht=V2(Ei.flags&2097152?gc(Ei):Ei);$n=Be(e.map(Ht,function(nn){return bm(nn,it.mapper)}),qn)}else $n=Un(ui,qn)}return $n}}function Ti(dt){return e.isIndexedAccessTypeNode(dt.objectType)?Ti(dt.objectType):dt}function li(dt,Pr,qn){var Sn,ui=e.getDeclarationOfKind(dt,308);if(!ui){var Vn=e.firstDefined(dt.declarations,function(xo){return l_(xo,dt)});Vn&&(ui=e.getDeclarationOfKind(Vn,308))}if(ui&&ui.moduleName!==void 0)return ui.moduleName;if(!ui){if(Pr.tracker.trackReferencedAmbientModule){var $n=e.filter(dt.declarations,e.isAmbientModule);if(e.length($n))for(var Ei=0,it=$n;Ei<it.length;Ei++){var Ht=it[Ei];Pr.tracker.trackReferencedAmbientModule(Ht,dt)}}if(c.test(dt.escapedName))return dt.escapedName.substring(1,dt.escapedName.length-1)}if(!Pr.enclosingDeclaration||!Pr.tracker.moduleResolverHost)return c.test(dt.escapedName)?dt.escapedName.substring(1,dt.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(dt)).fileName;var nn=e.getSourceFileOfNode(e.getOriginalNode(Pr.enclosingDeclaration)),Ln=qn||(nn==null?void 0:nn.impliedNodeFormat),Rn=Io(nn.path,Ln),ni=la(dt),wi=ni.specifierCache&&ni.specifierCache.get(Rn);if(!wi){var ia=!!e.outFile(Ce),lo=Pr.tracker.moduleResolverHost,aa=ia?n(n({},Ce),{baseUrl:lo.getCommonSourceDirectory()}):Ce;wi=e.first(e.moduleSpecifiers.getModuleSpecifiers(dt,Fe,aa,nn,lo,{importModuleSpecifierPreference:ia?"non-relative":"project-relative",importModuleSpecifierEnding:ia?"minimal":Ln===e.ModuleKind.ESNext?"js":void 0},{overrideImportMode:qn})),(Sn=ni.specifierCache)!==null&&Sn!==void 0||(ni.specifierCache=new e.Map),ni.specifierCache.set(Rn,wi)}return wi;function Io(xo,is){return is===void 0?xo:"".concat(is,"|").concat(xo)}}function Ja(dt){var Pr=e.factory.createIdentifier(e.unescapeLeadingUnderscores(dt.escapedName));return dt.parent?e.factory.createQualifiedName(Ja(dt.parent),Pr):Pr}function Ai(dt,Pr,qn,Sn){var ui,Vn,$n,Ei,it=rn(dt,Pr,qn,!(Pr.flags&16384)),Ht=qn===111551;if(e.some(it[0].declarations,zu)){var nn=it.length>1?al(it,it.length-1,1):void 0,Ln=Sn||Gn(it,0,Pr),Rn=e.getSourceFileOfNode(e.getOriginalNode(Pr.enclosingDeclaration)),ni=e.getSourceFileOfModule(it[0]),wi=void 0,ia=void 0;if((e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.NodeNext)&&(ni==null?void 0:ni.impliedNodeFormat)===e.ModuleKind.ESNext&&ni.impliedNodeFormat!==(Rn==null?void 0:Rn.impliedNodeFormat)&&(wi=li(it[0],Pr,e.ModuleKind.ESNext),ia=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),(Vn=(ui=Pr.tracker).reportImportTypeNodeResolutionModeOverride)===null||Vn===void 0||Vn.call(ui)),wi||(wi=li(it[0],Pr)),!(Pr.flags&67108864)&&e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.Classic&&wi.indexOf("/node_modules/")>=0){var lo=wi;if(e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.NodeNext){var aa=(Rn==null?void 0:Rn.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;wi=li(it[0],Pr,aa),wi.indexOf("/node_modules/")>=0?wi=lo:(ia=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(aa===e.ModuleKind.ESNext?"import":"require"))]))),(Ei=($n=Pr.tracker).reportImportTypeNodeResolutionModeOverride)===null||Ei===void 0||Ei.call($n))}ia||(Pr.encounteredError=!0,Pr.tracker.reportLikelyUnsafeImportRequiredError&&Pr.tracker.reportLikelyUnsafeImportRequiredError(lo))}var Io=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(wi));if(Pr.tracker.trackExternalModuleSymbolOfImportTypeNode&&Pr.tracker.trackExternalModuleSymbolOfImportTypeNode(it[0]),Pr.approximateLength+=wi.length+10,!nn||e.isEntityName(nn)){if(nn){var xo=e.isIdentifier(nn)?nn:nn.right;xo.typeArguments=void 0}return e.factory.createImportTypeNode(Io,ia,nn,Ln,Ht)}else{var is=Ti(nn),Oc=is.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(Io,ia,Oc,Ln,Ht),is.indexType)}}var Mc=al(it,it.length-1,0);if(e.isIndexedAccessTypeNode(Mc))return Mc;if(Ht)return e.factory.createTypeQueryNode(Mc);var xo=e.isIdentifier(Mc)?Mc:Mc.right,Bs=xo.typeArguments;return xo.typeArguments=void 0,e.factory.createTypeReferenceNode(Mc,Bs);function al(vs,Mp,hg){var vg=Mp===vs.length-1?Sn:Gn(vs,Mp,Pr),rp=vs[Mp],Kd=vs[Mp-1],tp;if(Mp===0)Pr.flags|=16777216,tp=ad(rp,Pr),Pr.approximateLength+=(tp?tp.length:0)+1,Pr.flags^=16777216;else if(Kd&&Dc(Kd)){var vt=Dc(Kd);e.forEachEntry(vt,function(jn,cn){if(Uu(jn,rp)&&!jd(cn)&&cn!=="export=")return tp=e.unescapeLeadingUnderscores(cn),!0})}if(tp===void 0){var jt=e.firstDefined(rp.declarations,e.getNameOfDeclaration);if(jt&&e.isComputedPropertyName(jt)&&e.isEntityName(jt.expression)){var dn=al(vs,Mp-1,hg);return e.isEntityName(dn)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(dn)),e.factory.createTypeQueryNode(jt.expression)):dn}tp=ad(rp,Pr)}if(Pr.approximateLength+=tp.length+1,!(Pr.flags&16)&&Kd&&Pp(Kd)&&Pp(Kd).get(rp.escapedName)&&Uu(Pp(Kd).get(rp.escapedName),rp)){var dn=al(vs,Mp-1,hg);return e.isIndexedAccessTypeNode(dn)?e.factory.createIndexedAccessTypeNode(dn,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(tp))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(dn,vg),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(tp)))}var zt=e.setEmitFlags(e.factory.createIdentifier(tp,vg),16777216);if(zt.symbol=rp,Mp>hg){var dn=al(vs,Mp-1,hg);return e.isEntityName(dn)?e.factory.createQualifiedName(dn,zt):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return zt}}function Ua(dt,Pr,qn){var Sn=Ls(Pr.enclosingDeclaration,dt,788968,void 0,dt,!1);return Sn?!(Sn.flags&262144&&Sn===qn.symbol):!1}function Wa(dt,Pr){var qn,Sn;if(Pr.flags&4&&Pr.typeParameterNames){var ui=Pr.typeParameterNames.get(Wc(dt));if(ui)return ui}var Vn=Ga(dt.symbol,Pr,788968,!0);if(!(Vn.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(Pr.flags&4){for(var $n=Vn.escapedText,Ei=((qn=Pr.typeParameterNamesByTextNextNameCount)===null||qn===void 0?void 0:qn.get($n))||0,it=$n;!((Sn=Pr.typeParameterNamesByText)===null||Sn===void 0)&&Sn.has(it)||Ua(it,Pr,dt);)Ei++,it="".concat($n,"_").concat(Ei);it!==$n&&(Vn=e.factory.createIdentifier(it,Vn.typeArguments)),(Pr.typeParameterNamesByTextNextNameCount||(Pr.typeParameterNamesByTextNextNameCount=new e.Map)).set($n,Ei),(Pr.typeParameterNames||(Pr.typeParameterNames=new e.Map)).set(Wc(dt),Vn),(Pr.typeParameterNamesByText||(Pr.typeParameterNamesByText=new e.Set)).add($n)}return Vn}function Ga(dt,Pr,qn,Sn){var ui=rn(dt,Pr,qn);return Sn&&ui.length!==1&&!Pr.encounteredError&&!(Pr.flags&65536)&&(Pr.encounteredError=!0),Vn(ui,ui.length-1);function Vn($n,Ei){var it=Gn($n,Ei,Pr),Ht=$n[Ei];Ei===0&&(Pr.flags|=16777216);var nn=ad(Ht,Pr);Ei===0&&(Pr.flags^=16777216);var Ln=e.setEmitFlags(e.factory.createIdentifier(nn,it),16777216);return Ln.symbol=Ht,Ei>0?e.factory.createQualifiedName(Vn($n,Ei-1),Ln):Ln}}function Bo(dt,Pr,qn){var Sn=rn(dt,Pr,qn);return ui(Sn,Sn.length-1);function ui(Vn,$n){var Ei=Gn(Vn,$n,Pr),it=Vn[$n];$n===0&&(Pr.flags|=16777216);var Ht=ad(it,Pr);$n===0&&(Pr.flags^=16777216);var nn=Ht.charCodeAt(0);if(e.isSingleOrDoubleQuote(nn)&&e.some(it.declarations,zu))return e.factory.createStringLiteral(li(it,Pr));var Ln=nn===35?Ht.length>1&&e.isIdentifierStart(Ht.charCodeAt(1),Ae):e.isIdentifierStart(nn,Ae);if($n===0||Ln){var Rn=e.setEmitFlags(e.factory.createIdentifier(Ht,Ei),16777216);return Rn.symbol=it,$n>0?e.factory.createPropertyAccessExpression(ui(Vn,$n-1),Rn):Rn}else{nn===91&&(Ht=Ht.substring(1,Ht.length-1),nn=Ht.charCodeAt(0));var ni=void 0;return e.isSingleOrDoubleQuote(nn)&&!(it.flags&8)?ni=e.factory.createStringLiteral(e.stripQuotes(Ht).replace(/\\./g,function(wi){return wi.substring(1)}),nn===39):""+ +Ht===Ht&&(ni=e.factory.createNumericLiteral(+Ht)),ni||(ni=e.setEmitFlags(e.factory.createIdentifier(Ht,Ei),16777216),ni.symbol=it),e.factory.createElementAccessExpression(ui(Vn,$n-1),ni)}}}function jo(dt){var Pr=e.getNameOfDeclaration(dt);return!!Pr&&e.isStringLiteral(Pr)}function No(dt){var Pr=e.getNameOfDeclaration(dt);return!!(Pr&&e.isStringLiteral(Pr)&&(Pr.singleQuote||!e.nodeIsSynthesized(Pr)&&e.startsWith(e.getTextOfNode(Pr,!1),"'")))}function Ca(dt,Pr){var qn=!!e.length(dt.declarations)&&e.every(dt.declarations,No),Sn=hn(dt,Pr,qn);if(Sn)return Sn;var ui=e.unescapeLeadingUnderscores(dt.escapedName),Vn=!!e.length(dt.declarations)&&e.every(dt.declarations,jo);return e.createPropertyNameNodeForIdentifierOrLiteral(ui,e.getEmitScriptTarget(Ce),qn,Vn)}function hn(dt,Pr,qn){var Sn=la(dt).nameType;if(Sn){if(Sn.flags&384){var ui=""+Sn.value;return!e.isIdentifierText(ui,e.getEmitScriptTarget(Ce))&&!e.isNumericLiteralName(ui)?e.factory.createStringLiteral(ui,!!qn):e.isNumericLiteralName(ui)&&e.startsWith(ui,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+ui)):e.createPropertyNameNodeForIdentifierOrLiteral(ui,e.getEmitScriptTarget(Ce))}if(Sn.flags&8192)return e.factory.createComputedPropertyName(Bo(Sn.symbol,Pr,111551))}}function qt(dt){var Pr=n({},dt);return Pr.typeParameterNames&&(Pr.typeParameterNames=new e.Map(Pr.typeParameterNames)),Pr.typeParameterNamesByText&&(Pr.typeParameterNamesByText=new e.Set(Pr.typeParameterNamesByText)),Pr.typeParameterSymbolList&&(Pr.typeParameterSymbolList=new e.Set(Pr.typeParameterSymbolList)),Pr.tracker=u(Pr,Pr.tracker),Pr}function yi(dt,Pr){return dt.declarations&&e.find(dt.declarations,function(qn){return!!e.getEffectiveTypeAnnotationNode(qn)&&(!Pr||!!e.findAncestor(qn,function(Sn){return Sn===Pr}))})}function Bi(dt,Pr){return!(e.getObjectFlags(Pr)&4)||!e.isTypeReferenceNode(dt)||e.length(dt.typeArguments)>=af(Pr.target.typeParameters)}function ha(dt,Pr,qn,Sn,ui,Vn){if(!pa(Pr)&&Sn){var $n=yi(qn,Sn);if($n&&!e.isFunctionLikeDeclaration($n)&&!e.isGetAccessorDeclaration($n)){var Ei=e.getEffectiveTypeAnnotationNode($n);if(si(Ei,$n,Pr)&&Bi(Ei,Pr)){var it=Qa(dt,Ei,ui,Vn);if(it)return it}}}var Ht=dt.flags;Pr.flags&8192&&Pr.symbol===qn&&(!dt.enclosingDeclaration||e.some(qn.declarations,function(Ln){return e.getSourceFileOfNode(Ln)===e.getSourceFileOfNode(dt.enclosingDeclaration)}))&&(dt.flags|=1048576);var nn=p(Pr,dt);return dt.flags=Ht,nn}function si(dt,Pr,qn){var Sn=ea(dt);return Sn===qn?!0:e.isParameter(Pr)&&Pr.questionToken?gl(qn,524288)===Sn:!1}function qa(dt,Pr,qn,Sn,ui){if(!pa(Pr)&&dt.enclosingDeclaration){var Vn=qn.declaration&&e.getEffectiveReturnTypeNode(qn.declaration);if(e.findAncestor(Vn,function(Ht){return Ht===dt.enclosingDeclaration})&&Vn){var $n=ea(Vn),Ei=$n.flags&262144&&$n.isThisType?Sa($n,qn.mapper):$n;if(Ei===Pr&&Bi(Vn,Pr)){var it=Qa(dt,Vn,Sn,ui);if(it)return it}}}return p(Pr,dt)}function Ta(dt,Pr,qn){var Sn,ui,Vn=!1,$n=e.getFirstIdentifier(dt);if(e.isInJSFile(dt)&&(e.isExportsIdentifier($n)||e.isModuleExportsAccessExpression($n.parent)||e.isQualifiedName($n.parent)&&e.isModuleIdentifier($n.parent.left)&&e.isExportsIdentifier($n.parent.right)))return Vn=!0,{introducesError:Vn,node:dt};var Ei=ns($n,67108863,!0,!0);if(Ei&&(rf(Ei,Pr.enclosingDeclaration,67108863,!1).accessibility!==0?Vn=!0:((ui=(Sn=Pr.tracker)===null||Sn===void 0?void 0:Sn.trackSymbol)===null||ui===void 0||ui.call(Sn,Ei,Pr.enclosingDeclaration,67108863),qn==null||qn(Ei)),e.isIdentifier(dt))){var it=mn(Ei),Ht=Ei.flags&262144&&!Df(it.symbol,Pr.enclosingDeclaration)?Wa(it,Pr):e.factory.cloneNode(dt);return Ht.symbol=Ei,{introducesError:Vn,node:e.setEmitFlags(e.setOriginalNode(Ht,dt),16777216)}}return{introducesError:Vn,node:dt}}function Qa(dt,Pr,qn,Sn){J&&J.throwIfCancellationRequested&&J.throwIfCancellationRequested();var ui=!1,Vn=e.getSourceFileOfNode(Pr),$n=e.visitNode(Pr,Ei);if(ui)return;return $n===Pr?e.setTextRange(e.factory.cloneNode(Pr),Pr):$n;function Ei(it){if(e.isJSDocAllType(it)||it.kind===322)return e.factory.createKeywordTypeNode(131);if(e.isJSDocUnknownType(it))return e.factory.createKeywordTypeNode(157);if(e.isJSDocNullableType(it))return e.factory.createUnionTypeNode([e.visitNode(it.type,Ei),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(it))return e.factory.createUnionTypeNode([e.visitNode(it.type,Ei),e.factory.createKeywordTypeNode(155)]);if(e.isJSDocNonNullableType(it))return e.visitNode(it.type,Ei);if(e.isJSDocVariadicType(it))return e.factory.createArrayTypeNode(e.visitNode(it.type,Ei));if(e.isJSDocTypeLiteral(it))return e.factory.createTypeLiteralNode(e.map(it.jsDocPropertyTags,function(aa){var Io=e.isIdentifier(aa.name)?aa.name:aa.name.right,xo=di(ea(it),Io.escapedText),is=xo&&aa.typeExpression&&ea(aa.typeExpression.type)!==xo?p(xo,dt):void 0;return e.factory.createPropertySignature(void 0,Io,aa.isBracketed||aa.typeExpression&&e.isJSDocOptionalType(aa.typeExpression.type)?e.factory.createToken(57):void 0,is||aa.typeExpression&&e.visitNode(aa.typeExpression.type,Ei)||e.factory.createKeywordTypeNode(131))}));if(e.isTypeReferenceNode(it)&&e.isIdentifier(it.typeName)&&it.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(131),it);if((e.isExpressionWithTypeArguments(it)||e.isTypeReferenceNode(it))&&e.isJSDocIndexSignature(it))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,e.visitNode(it.typeArguments[0],Ei))],e.visitNode(it.typeArguments[1],Ei))]);if(e.isJSDocFunctionType(it))if(e.isJSDocConstructSignature(it)){var Ht;return e.factory.createConstructorTypeNode(void 0,e.visitNodes(it.typeParameters,Ei),e.mapDefined(it.parameters,function(aa,Io){return aa.name&&e.isIdentifier(aa.name)&&aa.name.escapedText==="new"?(Ht=aa.type,void 0):e.factory.createParameterDeclaration(void 0,wi(aa),ia(aa,Io),aa.questionToken,e.visitNode(aa.type,Ei),void 0)}),e.visitNode(Ht||it.type,Ei)||e.factory.createKeywordTypeNode(131))}else return e.factory.createFunctionTypeNode(e.visitNodes(it.typeParameters,Ei),e.map(it.parameters,function(aa,Io){return e.factory.createParameterDeclaration(void 0,wi(aa),ia(aa,Io),aa.questionToken,e.visitNode(aa.type,Ei),void 0)}),e.visitNode(it.type,Ei)||e.factory.createKeywordTypeNode(131));if(e.isTypeReferenceNode(it)&&e.isInJSDoc(it)&&(!Bi(it,ea(it))||dO(it)||en===Vy(it,788968,!0)))return e.setOriginalNode(p(ea(it),dt),it);if(e.isLiteralImportTypeNode(it)){var nn=Mi(it).resolvedSymbol;return e.isInJSDoc(it)&&nn&&(!it.isTypeOf&&!(nn.flags&788968)||!(e.length(it.typeArguments)>=af(Ap(nn))))?e.setOriginalNode(p(ea(it),dt),it):e.factory.updateImportTypeNode(it,e.factory.updateLiteralTypeNode(it.argument,lo(it,it.argument.literal)),it.assertions,it.qualifier,e.visitNodes(it.typeArguments,Ei,e.isTypeNode),it.isTypeOf)}if(e.isEntityName(it)||e.isEntityNameExpression(it)){var Ln=Ta(it,dt,qn),Rn=Ln.introducesError,ni=Ln.node;if(ui=ui||Rn,ni!==it)return ni}return Vn&&e.isTupleTypeNode(it)&&e.getLineAndCharacterOfPosition(Vn,it.pos).line===e.getLineAndCharacterOfPosition(Vn,it.end).line&&e.setEmitFlags(it,1),e.visitEachChild(it,Ei,e.nullTransformationContext);function wi(aa){return aa.dotDotDotToken||(aa.type&&e.isJSDocVariadicType(aa.type)?e.factory.createToken(25):void 0)}function ia(aa,Io){return aa.name&&e.isIdentifier(aa.name)&&aa.name.escapedText==="this"?"this":wi(aa)?"args":"arg".concat(Io)}function lo(aa,Io){if(Sn){if(dt.tracker&&dt.tracker.moduleResolverHost){var xo=$w(aa);if(xo){var is=e.createGetCanonicalFileName(!!I.useCaseSensitiveFileNames),Oc={getCanonicalFileName:is,getCurrentDirectory:function(){return dt.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return dt.tracker.moduleResolverHost.getCommonSourceDirectory()}},Mc=e.getResolvedExternalModuleName(Oc,xo);return e.factory.createStringLiteral(Mc)}}}else if(dt.tracker&&dt.tracker.trackExternalModuleSymbolOfImportTypeNode){var Bs=hp(Io,Io,void 0);Bs&&dt.tracker.trackExternalModuleSymbolOfImportTypeNode(Bs)}return Io}}}function Za(dt,Pr,qn){var Sn=Na(e.factory.createPropertyDeclaration,171,!0),ui=Na(function(Rt,ei,Qi,bi){return e.factory.createPropertySignature(Rt,ei,Qi,bi)},170,!1),Vn=Pr.enclosingDeclaration,$n=[],Ei=new e.Set,it=[],Ht=Pr;Pr=n(n({},Ht),{usedSymbolNames:new e.Set(Ht.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:n(n({},Ht.tracker),{trackSymbol:function(Rt,ei,Qi){var bi=rf(Rt,ei,Qi,!1);if(bi.accessibility===0){var Ni=on(Rt,Pr,Qi);Rt.flags&4||Bs(Ni[0])}else if(Ht.tracker&&Ht.tracker.trackSymbol)return Ht.tracker.trackSymbol(Rt,ei,Qi);return!1}})}),Pr.tracker=u(Pr,Pr.tracker),e.forEachEntry(dt,function(Rt,ei){var Qi=e.unescapeLeadingUnderscores(ei);js(Rt,Qi)});var nn=!qn,Ln=dt.get("export=");return Ln&&dt.size>1&&Ln.flags&2097152&&(dt=e.createSymbolTable(),dt.set("export=",Ln)),is(dt),aa($n);function Rn(Rt){return!!Rt&&Rt.kind===79}function ni(Rt){return e.isVariableStatement(Rt)?e.filter(e.map(Rt.declarationList.declarations,e.getNameOfDeclaration),Rn):e.filter([e.getNameOfDeclaration(Rt)],Rn)}function wi(Rt){var ei=e.find(Rt,e.isExportAssignment),Qi=e.findIndex(Rt,e.isModuleDeclaration),bi=Qi!==-1?Rt[Qi]:void 0;if(bi&&ei&&ei.isExportEquals&&e.isIdentifier(ei.expression)&&e.isIdentifier(bi.name)&&e.idText(bi.name)===e.idText(ei.expression)&&bi.body&&e.isModuleBlock(bi.body)){var Ni=e.filter(Rt,function(xa){return!!(e.getEffectiveModifierFlags(xa)&1)}),Xa=bi.name,Ea=bi.body;if(e.length(Ni)&&(bi=e.factory.updateModuleDeclaration(bi,bi.modifiers,bi.name,Ea=e.factory.updateModuleBlock(Ea,e.factory.createNodeArray(t(t([],bi.body.statements,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(Ni,function(xa){return ni(xa)}),function(xa){return e.factory.createExportSpecifier(!1,void 0,xa)})),void 0)],!1)))),Rt=t(t(t([],Rt.slice(0,Qi),!0),[bi],!1),Rt.slice(Qi+1),!0)),!e.find(Rt,function(xa){return xa!==bi&&e.nodeHasName(xa,Xa)})){$n=[];var za=!e.some(Ea.statements,function(xa){return e.hasSyntacticModifier(xa,1)||e.isExportAssignment(xa)||e.isExportDeclaration(xa)});e.forEach(Ea.statements,function(xa){vs(xa,za?1:0)}),Rt=t(t([],e.filter(Rt,function(xa){return xa!==bi&&xa!==ei}),!0),$n,!0)}}return Rt}function ia(Rt){var ei=e.filter(Rt,function(wa){return e.isExportDeclaration(wa)&&!wa.moduleSpecifier&&!!wa.exportClause&&e.isNamedExports(wa.exportClause)});if(e.length(ei)>1){var Qi=e.filter(Rt,function(wa){return!e.isExportDeclaration(wa)||!!wa.moduleSpecifier||!wa.exportClause});Rt=t(t([],Qi,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(ei,function(wa){return e.cast(wa.exportClause,e.isNamedExports).elements})),void 0)],!1)}var bi=e.filter(Rt,function(wa){return e.isExportDeclaration(wa)&&!!wa.moduleSpecifier&&!!wa.exportClause&&e.isNamedExports(wa.exportClause)});if(e.length(bi)>1){var Ni=e.group(bi,function(wa){return e.isStringLiteral(wa.moduleSpecifier)?">"+wa.moduleSpecifier.text:">"});if(Ni.length!==bi.length)for(var Xa=function(wa){wa.length>1&&(Rt=t(t([],e.filter(Rt,function(es){return wa.indexOf(es)===-1}),!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(wa,function(es){return e.cast(es.exportClause,e.isNamedExports).elements})),wa[0].moduleSpecifier)],!1))},Ea=0,za=Ni;Ea<za.length;Ea++){var xa=za[Ea];Xa(xa)}}return Rt}function lo(Rt){var ei=e.findIndex(Rt,function(Ni){return e.isExportDeclaration(Ni)&&!Ni.moduleSpecifier&&!Ni.assertClause&&!!Ni.exportClause&&e.isNamedExports(Ni.exportClause)});if(ei>=0){var Qi=Rt[ei],bi=e.mapDefined(Qi.exportClause.elements,function(Ni){if(!Ni.propertyName){var Xa=e.indicesOf(Rt),Ea=e.filter(Xa,function(es){return e.nodeHasName(Rt[es],Ni.name)});if(e.length(Ea)&&e.every(Ea,function(es){return e.canHaveExportModifier(Rt[es])})){for(var za=0,xa=Ea;za<xa.length;za++){var wa=xa[za];Rt[wa]=Io(Rt[wa])}return}}return Ni});e.length(bi)?Rt[ei]=e.factory.updateExportDeclaration(Qi,Qi.modifiers,Qi.isTypeOnly,e.factory.updateNamedExports(Qi.exportClause,bi),Qi.moduleSpecifier,Qi.assertClause):e.orderedRemoveItemAt(Rt,ei)}return Rt}function aa(Rt){return Rt=wi(Rt),Rt=ia(Rt),Rt=lo(Rt),Vn&&(e.isSourceFile(Vn)&&e.isExternalOrCommonJsModule(Vn)||e.isModuleDeclaration(Vn))&&(!e.some(Rt,e.isExternalModuleIndicator)||!e.hasScopeMarker(Rt)&&e.some(Rt,e.needsScopeMarker))&&Rt.push(e.createEmptyExports(e.factory)),Rt}function Io(Rt){var ei=(e.getEffectiveModifierFlags(Rt)|1)&-3;return e.factory.updateModifiers(Rt,ei)}function xo(Rt){var ei=e.getEffectiveModifierFlags(Rt)&-2;return e.factory.updateModifiers(Rt,ei)}function is(Rt,ei,Qi){ei||it.push(new e.Map),Rt.forEach(function(bi){Oc(bi,!1,!!Qi)}),ei||(it[it.length-1].forEach(function(bi){Oc(bi,!0,!!Qi)}),it.pop())}function Oc(Rt,ei,Qi){var bi=mo(Rt);if(!Ei.has(ne(bi))){Ei.add(ne(bi));var Ni=!ei;if(Ni||e.length(Rt.declarations)&&e.some(Rt.declarations,function(Ea){return!!e.findAncestor(Ea,function(za){return za===Vn})})){var Xa=Pr;Pr=qt(Pr),Mc(Rt,ei,Qi),Pr.reportedDiagnostic&&(Ht.reportedDiagnostic=Pr.reportedDiagnostic),Pr=Xa}}}function Mc(Rt,ei,Qi){var bi,Ni,Xa,Ea,za=e.unescapeLeadingUnderscores(Rt.escapedName),xa=Rt.escapedName==="default";if(ei&&!(Pr.flags&131072)&&e.isStringANonContextualKeyword(za)&&!xa){Pr.encounteredError=!0;return}var wa=xa&&!!(Rt.flags&-113||Rt.flags&16&&e.length(Ro(_n(Rt))))&&!(Rt.flags&2097152),es=!wa&&!ei&&e.isStringANonContextualKeyword(za)&&!xa;(wa||es)&&(ei=!0);var Ao=(ei?0:1)|(xa&&!wa?1024:0),Fs=Rt.flags&1536&&Rt.flags&7&&Rt.escapedName!=="export=",ys=Fs&&Gi(_n(Rt),Rt);if((Rt.flags&8208||ys)&&vt(_n(Rt),Rt,js(Rt,za),Ao),Rt.flags&524288&&Mp(Rt,za,Ao),Rt.flags&7&&Rt.escapedName!=="export="&&!(Rt.flags&4194304)&&!(Rt.flags&32)&&!(Rt.flags&8192)&&!ys)if(Qi){var Js=ki(Rt);Js&&(es=!1,wa=!1)}else{var cc=_n(Rt),ku=js(Rt,za);if(!(Rt.flags&16)&&Gi(cc,Rt))vt(cc,Rt,ku,Ao);else{var hl=Rt.flags&2?b0(Rt)?2:1:!((bi=Rt.parent)===null||bi===void 0)&&bi.valueDeclaration&&e.isSourceFile((Ni=Rt.parent)===null||Ni===void 0?void 0:Ni.valueDeclaration)?2:void 0,lf=wa||!(Rt.flags&4)?ku:lu(ku,Rt),md=Rt.declarations&&e.find(Rt.declarations,function(Em){return e.isVariableDeclaration(Em)});md&&e.isVariableDeclarationList(md.parent)&&md.parent.declarations.length===1&&(md=md.parent.parent);var Fp=(Xa=Rt.declarations)===null||Xa===void 0?void 0:Xa.find(e.isPropertyAccessExpression);if(Fp&&e.isBinaryExpression(Fp.parent)&&e.isIdentifier(Fp.parent.right)&&(!((Ea=cc.symbol)===null||Ea===void 0)&&Ea.valueDeclaration)&&e.isSourceFile(cc.symbol.valueDeclaration)){var Kh=ku===Fp.parent.right.escapedText?void 0:Fp.parent.right;vs(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Kh,ku)])),0),Pr.tracker.trackSymbol(cc.symbol,Pr.enclosingDeclaration,111551)}else{var yg=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(lf,void 0,ha(Pr,cc,Rt,Vn,Bs,qn))],hl)),md);vs(yg,lf!==ku?Ao&-2:Ao),lf!==ku&&!ei&&(vs(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,lf,ku)])),0),es=!1,wa=!1)}}}if(Rt.flags&384&&tp(Rt,za,Ao),Rt.flags&32&&(Rt.flags&4&&Rt.valueDeclaration&&e.isBinaryExpression(Rt.valueDeclaration.parent)&&e.isClassExpression(Rt.valueDeclaration.parent.right)?ri(Rt,js(Rt,za),Ao):cn(Rt,js(Rt,za),Ao)),(Rt.flags&1536&&(!Fs||rp(Rt))||ys)&&Kd(Rt,za,Ao),Rt.flags&64&&!(Rt.flags&32)&&hg(Rt,za,Ao),Rt.flags&2097152&&ri(Rt,js(Rt,za),Ao),Rt.flags&4&&Rt.escapedName==="export="&&ki(Rt),Rt.flags&8388608&&Rt.declarations)for(var bg=0,C_=Rt.declarations;bg<C_.length;bg++){var Qh=C_[bg],fu=Ac(Qh,Qh.moduleSpecifier);fu&&vs(e.factory.createExportDeclaration(void 0,!1,void 0,e.factory.createStringLiteral(li(fu,Pr))),0)}wa?vs(e.factory.createExportAssignment(void 0,!1,e.factory.createIdentifier(js(Rt,za))),0):es&&vs(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,js(Rt,za),za)])),0)}function Bs(Rt){if(!e.some(Rt.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(it[it.length-1]),lu(e.unescapeLeadingUnderscores(Rt.escapedName),Rt);var ei=!!(Rt.flags&2097152)&&!e.some(Rt.declarations,function(Qi){return!!e.findAncestor(Qi,e.isExportDeclaration)||e.isNamespaceExport(Qi)||e.isImportEqualsDeclaration(Qi)&&!e.isExternalModuleReference(Qi.moduleReference)});it[ei?0:it.length-1].set(ne(Rt),Rt)}}function al(Rt){return e.isSourceFile(Rt)&&(e.isExternalOrCommonJsModule(Rt)||e.isJsonSourceFile(Rt))||e.isAmbientModule(Rt)&&!e.isGlobalScopeAugmentation(Rt)}function vs(Rt,ei){if(e.canHaveModifiers(Rt)){var Qi=0,bi=Pr.enclosingDeclaration&&(e.isJSDocTypeAlias(Pr.enclosingDeclaration)?e.getSourceFileOfNode(Pr.enclosingDeclaration):Pr.enclosingDeclaration);ei&1&&bi&&(al(bi)||e.isModuleDeclaration(bi))&&e.canHaveExportModifier(Rt)&&(Qi|=1),nn&&!(Qi&1)&&(!bi||!(bi.flags&16777216))&&(e.isEnumDeclaration(Rt)||e.isVariableStatement(Rt)||e.isFunctionDeclaration(Rt)||e.isClassDeclaration(Rt)||e.isModuleDeclaration(Rt))&&(Qi|=2),ei&1024&&(e.isClassDeclaration(Rt)||e.isInterfaceDeclaration(Rt)||e.isFunctionDeclaration(Rt))&&(Qi|=1024),Qi&&(Rt=e.factory.updateModifiers(Rt,Qi|e.getEffectiveModifierFlags(Rt)))}$n.push(Rt)}function Mp(Rt,ei,Qi){var bi,Ni=Oy(Rt),Xa=la(Rt).typeParameters,Ea=e.map(Xa,function(Fs){return mt(Fs,Pr)}),za=(bi=Rt.declarations)===null||bi===void 0?void 0:bi.find(e.isJSDocTypeAlias),xa=e.getTextOfJSDocComment(za?za.comment||za.parent.comment:void 0),wa=Pr.flags;Pr.flags|=8388608;var es=Pr.enclosingDeclaration;Pr.enclosingDeclaration=za;var Ao=za&&za.typeExpression&&e.isJSDocTypeExpression(za.typeExpression)&&Qa(Pr,za.typeExpression.type,Bs,qn)||p(Ni,Pr);vs(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,js(Rt,ei),Ea,Ao),xa?[{kind:3,text:`*
* `+xa.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Qi),Pr.flags=wa,Pr.enclosingDeclaration=es}function hg(Rt,ei,Qi){var bi=Ou(Rt),Ni=Ap(Rt),Xa=e.map(Ni,function(ys){return mt(ys,Pr)}),Ea=Jc(bi),za=e.length(Ea)?ho(Ea):void 0,xa=e.flatMap(Ro(bi),function(ys){return Pa(ys,za)}),wa=eo(0,bi,za,176),es=eo(1,bi,za,177),Ao=Mo(bi,za),Fs=e.length(Ea)?[e.factory.createHeritageClause(94,e.mapDefined(Ea,function(ys){return ps(ys,111551)}))]:void 0;vs(e.factory.createInterfaceDeclaration(void 0,js(Rt,ei),Xa,Fs,t(t(t(t([],Ao,!0),es,!0),wa,!0),xa,!0)),Qi)}function vg(Rt){return Rt.exports?e.filter(e.arrayFrom(Rt.exports.values()),zt):[]}function rp(Rt){return e.every(vg(Rt),function(ei){return!(Gc(Vs(ei))&111551)})}function Kd(Rt,ei,Qi){var bi=vg(Rt),Ni=e.arrayToMultiMap(bi,function(es){return es.parent&&es.parent===Rt?"real":"merged"}),Xa=Ni.get("real")||e.emptyArray,Ea=Ni.get("merged")||e.emptyArray;if(e.length(Xa)){var za=js(Rt,ei);dn(Xa,za,Qi,!!(Rt.flags&67108880))}if(e.length(Ea)){var xa=e.getSourceFileOfNode(Pr.enclosingDeclaration),za=js(Rt,ei),wa=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(Ea,function(Ao){return Ao.escapedName!=="export="}),function(Ao){var Fs,ys,Js=e.unescapeLeadingUnderscores(Ao.escapedName),cc=js(Ao,Js),ku=Ao.declarations&&Ol(Ao);if(xa&&(ku?xa!==e.getSourceFileOfNode(ku):!e.some(Ao.declarations,function(md){return e.getSourceFileOfNode(md)===xa}))){(ys=(Fs=Pr.tracker)===null||Fs===void 0?void 0:Fs.reportNonlocalAugmentation)===null||ys===void 0||ys.call(Fs,xa,Rt,Ao);return}var hl=ku&&vf(ku,!0);Bs(hl||Ao);var lf=hl?js(hl,e.unescapeLeadingUnderscores(hl.escapedName)):cc;return e.factory.createExportSpecifier(!1,Js===lf?void 0:lf,Js)})))]);vs(e.factory.createModuleDeclaration(void 0,e.factory.createIdentifier(za),wa,16),0)}}function tp(Rt,ei,Qi){vs(e.factory.createEnumDeclaration(e.factory.createModifiersFromModifierFlags(mw(Rt)?2048:0),js(Rt,ei),e.map(e.filter(Ro(_n(Rt)),function(bi){return!!(bi.flags&8)}),function(bi){var Ni=bi.declarations&&bi.declarations[0]&&e.isEnumMember(bi.declarations[0])?zw(bi.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(bi.escapedName),Ni===void 0?void 0:typeof Ni=="string"?e.factory.createStringLiteral(Ni):e.factory.createNumericLiteral(Ni))})),Qi)}function vt(Rt,ei,Qi,bi){for(var Ni=La(Rt,0),Xa=0,Ea=Ni;Xa<Ea.length;Xa++){var za=Ea[Xa],xa=gr(za,259,Pr,{name:e.factory.createIdentifier(Qi),privateSymbolVisitor:Bs,bundledImports:qn});vs(e.setTextRange(xa,jt(za)),bi)}if(!(ei.flags&1536&&ei.exports&&ei.exports.size)){var wa=e.filter(Ro(Rt),zt);dn(wa,Qi,bi,!0)}}function jt(Rt){if(Rt.declaration&&Rt.declaration.parent){if(e.isBinaryExpression(Rt.declaration.parent)&&e.getAssignmentDeclarationKind(Rt.declaration.parent)===5)return Rt.declaration.parent;if(e.isVariableDeclaration(Rt.declaration.parent)&&Rt.declaration.parent.parent)return Rt.declaration.parent.parent}return Rt.declaration}function dn(Rt,ei,Qi,bi){if(e.length(Rt)){var Ni=e.arrayToMultiMap(Rt,function(Js){return!e.length(Js.declarations)||e.some(Js.declarations,function(cc){return e.getSourceFileOfNode(cc)===e.getSourceFileOfNode(Pr.enclosingDeclaration)})?"local":"remote"}),Xa=Ni.get("local")||e.emptyArray,Ea=e.parseNodeFactory.createModuleDeclaration(void 0,e.factory.createIdentifier(ei),e.factory.createModuleBlock([]),16);e.setParent(Ea,Vn),Ea.locals=e.createSymbolTable(Rt),Ea.symbol=Rt[0].parent;var za=$n;$n=[];var xa=nn;nn=!1;var wa=n(n({},Pr),{enclosingDeclaration:Ea}),es=Pr;Pr=wa,is(e.createSymbolTable(Xa),bi,!0),Pr=es,nn=xa;var Ao=$n;$n=za;var Fs=e.map(Ao,function(Js){return e.isExportAssignment(Js)&&!Js.isExportEquals&&e.isIdentifier(Js.expression)?e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Js.expression,e.factory.createIdentifier("default"))])):Js}),ys=e.every(Fs,function(Js){return e.hasSyntacticModifier(Js,1)})?e.map(Fs,xo):Fs;Ea=e.factory.updateModuleDeclaration(Ea,Ea.modifiers,Ea.name,e.factory.createModuleBlock(ys)),vs(Ea,Qi)}}function zt(Rt){return!!(Rt.flags&2887656)||!(Rt.flags&4194304||Rt.escapedName==="prototype"||Rt.valueDeclaration&&e.isStatic(Rt.valueDeclaration)&&e.isClassLike(Rt.valueDeclaration.parent))}function jn(Rt){var ei=e.mapDefined(Rt,function(Qi){var bi,Ni=Pr.enclosingDeclaration;Pr.enclosingDeclaration=Qi;var Xa=Qi.expression;if(e.isEntityNameExpression(Xa)){if(e.isIdentifier(Xa)&&e.idText(Xa)==="")return za(void 0);var Ea=void 0;if(bi=Ta(Xa,Pr,Bs),Ea=bi.introducesError,Xa=bi.node,Ea)return za(void 0)}return za(e.factory.createExpressionWithTypeArguments(Xa,e.map(Qi.typeArguments,function(xa){return Qa(Pr,xa,Bs,qn)||p(ea(xa),Pr)})));function za(xa){return Pr.enclosingDeclaration=Ni,xa}});if(ei.length===Rt.length)return ei}function cn(Rt,ei,Qi){var bi,Ni,Xa=(bi=Rt.declarations)===null||bi===void 0?void 0:bi.find(e.isClassLike),Ea=Pr.enclosingDeclaration;Pr.enclosingDeclaration=Xa||Ea;var za=Ap(Rt),xa=e.map(za,function(fu){return mt(fu,Pr)}),wa=Ou(Rt),es=Jc(wa),Ao=Xa&&e.getEffectiveImplementsTypeNodes(Xa),Fs=Ao&&jn(Ao)||e.mapDefined($1(wa),us),ys=_n(Rt),Js=!!(!((Ni=ys.symbol)===null||Ni===void 0)&&Ni.valueDeclaration)&&e.isClassLike(ys.symbol.valueDeclaration),cc=Js?sd(ys):Ie,ku=t(t([],e.length(es)?[e.factory.createHeritageClause(94,e.map(es,function(fu){return ao(fu,cc,ei)}))]:[],!0),e.length(Fs)?[e.factory.createHeritageClause(117,Fs)]:[],!0),hl=tY(wa,es,Ro(wa)),lf=e.filter(hl,function(fu){var Em=fu.valueDeclaration;return!!Em&&!(e.isNamedDeclaration(Em)&&e.isPrivateIdentifier(Em.name))}),md=e.some(hl,function(fu){var Em=fu.valueDeclaration;return!!Em&&e.isNamedDeclaration(Em)&&e.isPrivateIdentifier(Em.name)}),Fp=md?[e.factory.createPropertyDeclaration(void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,Kh=e.flatMap(lf,function(fu){return Sn(fu,!1,es[0])}),yg=e.flatMap(e.filter(Ro(ys),function(fu){return!(fu.flags&4194304)&&fu.escapedName!=="prototype"&&!zt(fu)}),function(fu){return Sn(fu,!0,cc)}),bg=!Js&&!!Rt.valueDeclaration&&e.isInJSFile(Rt.valueDeclaration)&&!e.some(La(ys,1)),C_=bg?[e.factory.createConstructorDeclaration(e.factory.createModifiersFromModifierFlags(8),[],void 0)]:eo(1,ys,cc,173),Qh=Mo(wa,es[0]);Pr.enclosingDeclaration=Ea,vs(e.setTextRange(e.factory.createClassDeclaration(void 0,ei,xa,ku,t(t(t(t(t([],Qh,!0),yg,!0),C_,!0),Kh,!0),Fp,!0)),Rt.declarations&&e.filter(Rt.declarations,function(fu){return e.isClassDeclaration(fu)||e.isClassExpression(fu)})[0]),Qi)}function On(Rt){return e.firstDefined(Rt,function(ei){if(e.isImportSpecifier(ei)||e.isExportSpecifier(ei))return e.idText(ei.propertyName||ei.name);if(e.isBinaryExpression(ei)||e.isExportAssignment(ei)){var Qi=e.isExportAssignment(ei)?ei.expression:ei.right;if(e.isPropertyAccessExpression(Qi))return e.idText(Qi.name)}if(xd(ei)){var bi=e.getNameOfDeclaration(ei);if(bi&&e.isIdentifier(bi))return e.idText(bi)}})}function ri(Rt,ei,Qi){var bi,Ni,Xa,Ea,za,xa=Ol(Rt);if(!xa)return e.Debug.fail();var wa=mo(vf(xa,!0));if(wa){var es=e.isShorthandAmbientModuleSymbol(wa)&&On(Rt.declarations)||e.unescapeLeadingUnderscores(wa.escapedName);es==="export="&&(e.getESModuleInterop(Ce)||Ce.allowSyntheticDefaultImports)&&(es="default");var Ao=js(wa,es);switch(Bs(wa),xa.kind){case 205:if(((Ni=(bi=xa.parent)===null||bi===void 0?void 0:bi.parent)===null||Ni===void 0?void 0:Ni.kind)===257){var Fs=li(wa.parent||wa,Pr),ys=xa.propertyName;vs(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,ys&&e.isIdentifier(ys)?e.factory.createIdentifier(e.idText(ys)):void 0,e.factory.createIdentifier(ei))])),e.factory.createStringLiteral(Fs),void 0),0);break}e.Debug.failBadSyntaxKind(((Xa=xa.parent)===null||Xa===void 0?void 0:Xa.parent)||xa,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:((za=(Ea=xa.parent)===null||Ea===void 0?void 0:Ea.parent)===null||za===void 0?void 0:za.kind)===223&&Ci(e.unescapeLeadingUnderscores(Rt.escapedName),Ao);break;case 257:if(e.isPropertyAccessExpression(xa.initializer)){var Js=xa.initializer,cc=e.factory.createUniqueName(ei),ku=li(wa.parent||wa,Pr);vs(e.factory.createImportEqualsDeclaration(void 0,!1,cc,e.factory.createExternalModuleReference(e.factory.createStringLiteral(ku))),0),vs(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(ei),e.factory.createQualifiedName(cc,Js.name)),Qi);break}case 268:if(wa.escapedName==="export="&&e.some(wa.declarations,e.isJsonSourceFile)){ki(Rt);break}var hl=!(wa.flags&512)&&!e.isVariableDeclaration(xa);vs(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(ei),hl?Ga(wa,Pr,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(li(wa,Pr)))),hl?Qi:0);break;case 267:vs(e.factory.createNamespaceExportDeclaration(e.idText(xa.name)),0);break;case 270:vs(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(ei),void 0),e.factory.createStringLiteral(li(wa.parent||wa,Pr)),void 0),0);break;case 271:vs(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(ei))),e.factory.createStringLiteral(li(wa,Pr)),void 0),0);break;case 277:vs(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(ei)),e.factory.createStringLiteral(li(wa,Pr))),0);break;case 273:vs(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,ei!==es?e.factory.createIdentifier(es):void 0,e.factory.createIdentifier(ei))])),e.factory.createStringLiteral(li(wa.parent||wa,Pr)),void 0),0);break;case 278:var lf=xa.parent.parent.moduleSpecifier;Ci(e.unescapeLeadingUnderscores(Rt.escapedName),lf?es:Ao,lf&&e.isStringLiteralLike(lf)?e.factory.createStringLiteral(lf.text):void 0);break;case 274:ki(Rt);break;case 223:case 208:case 209:Rt.escapedName==="default"||Rt.escapedName==="export="?ki(Rt):Ci(ei,Ao);break;default:return e.Debug.failBadSyntaxKind(xa,"Unhandled alias declaration kind in symbol serializer!")}}}function Ci(Rt,ei,Qi){vs(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Rt!==ei?ei:void 0,Rt)]),Qi),0)}function ki(Rt){if(Rt.flags&4194304)return!1;var ei=e.unescapeLeadingUnderscores(Rt.escapedName),Qi=ei==="export=",bi=ei==="default",Ni=Qi||bi,Xa=Rt.declarations&&Ol(Rt),Ea=Xa&&vf(Xa,!0);if(Ea&&e.length(Ea.declarations)&&e.some(Ea.declarations,function(Js){return e.getSourceFileOfNode(Js)===e.getSourceFileOfNode(Vn)})){var za=Xa&&(e.isExportAssignment(Xa)||e.isBinaryExpression(Xa)?e.getExportAssignmentExpression(Xa):e.getPropertyAssignmentAliasLikeExpression(Xa)),xa=za&&e.isEntityNameExpression(za)?gY(za):void 0,wa=xa&&ns(xa,67108863,!0,!0,Vn);(wa||Ea)&&Bs(wa||Ea);var es=Pr.tracker.trackSymbol;if(Pr.tracker.trackSymbol=function(){return!1},Ni)$n.push(e.factory.createExportAssignment(void 0,Qi,Bo(Ea,Pr,67108863)));else if(xa===za&&xa)Ci(ei,e.idText(xa));else if(za&&e.isClassExpression(za))Ci(ei,js(Ea,e.symbolName(Ea)));else{var Ao=lu(ei,Rt);vs(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(Ao),Ga(Ea,Pr,67108863,!1)),0),Ci(ei,Ao)}return Pr.tracker.trackSymbol=es,!0}else{var Ao=lu(ei,Rt),Fs=Gu(_n(mo(Rt)));if(Gi(Fs,Rt))vt(Fs,Rt,Ao,Ni?0:1);else{var ys=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Ao,void 0,ha(Pr,Fs,Rt,Vn,Bs,qn))],2));vs(ys,Ea&&Ea.flags&4&&Ea.escapedName==="export="?2:ei===Ao?1:0)}return Ni?($n.push(e.factory.createExportAssignment(void 0,Qi,e.factory.createIdentifier(Ao))),!0):ei!==Ao?(Ci(ei,Ao),!0):!1}}function Gi(Rt,ei){var Qi=e.getSourceFileOfNode(Pr.enclosingDeclaration);return e.getObjectFlags(Rt)&48&&!e.length(_c(Rt))&&!Hm(Rt)&&!!(e.length(e.filter(Ro(Rt),zt))||e.length(La(Rt,0)))&&!e.length(La(Rt,1))&&!yi(ei,Vn)&&!(Rt.symbol&&e.some(Rt.symbol.declarations,function(bi){return e.getSourceFileOfNode(bi)!==Qi}))&&!e.some(Ro(Rt),function(bi){return jd(bi.escapedName)})&&!e.some(Ro(Rt),function(bi){return e.some(bi.declarations,function(Ni){return e.getSourceFileOfNode(Ni)!==Qi})})&&e.every(Ro(Rt),function(bi){return e.isIdentifierText(e.symbolName(bi),Ae)})}function Na(Rt,ei,Qi){return function(Ni,Xa,Ea){var za,xa,wa,es,Ao,Fs=e.getDeclarationModifierFlagsFromSymbol(Ni),ys=!!(Fs&8);if(Xa&&Ni.flags&2887656)return[];if(Ni.flags&4194304||Ea&&Fa(Ea,Ni.escapedName)&&uf(Fa(Ea,Ni.escapedName))===uf(Ni)&&(Ni.flags&16777216)===(Fa(Ea,Ni.escapedName).flags&16777216)&&ud(_n(Ni),di(Ea,Ni.escapedName)))return[];var Js=Fs&-513|(Xa?32:0),cc=Ca(Ni,Pr),ku=(za=Ni.declarations)===null||za===void 0?void 0:za.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(Ni.flags&98304&&Qi){var hl=[];if(Ni.flags&65536&&hl.push(e.setTextRange(e.factory.createSetAccessorDeclaration(e.factory.createModifiersFromModifierFlags(Js),cc,[e.factory.createParameterDeclaration(void 0,void 0,"arg",void 0,ys?void 0:ha(Pr,_n(Ni),Ni,Vn,Bs,qn))],void 0),((xa=Ni.declarations)===null||xa===void 0?void 0:xa.find(e.isSetAccessor))||ku)),Ni.flags&32768){var lf=Fs&8;hl.push(e.setTextRange(e.factory.createGetAccessorDeclaration(e.factory.createModifiersFromModifierFlags(Js),cc,[],lf?void 0:ha(Pr,_n(Ni),Ni,Vn,Bs,qn),void 0),((wa=Ni.declarations)===null||wa===void 0?void 0:wa.find(e.isGetAccessor))||ku))}return hl}else if(Ni.flags&98311)return e.setTextRange(Rt(e.factory.createModifiersFromModifierFlags((uf(Ni)?64:0)|Js),cc,Ni.flags&16777216?e.factory.createToken(57):void 0,ys?void 0:ha(Pr,hi(Ni),Ni,Vn,Bs,qn),void 0),((es=Ni.declarations)===null||es===void 0?void 0:es.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||ku);if(Ni.flags&8208){var md=_n(Ni),Fp=La(md,0);if(Js&8)return e.setTextRange(Rt(e.factory.createModifiersFromModifierFlags((uf(Ni)?64:0)|Js),cc,Ni.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((Ao=Ni.declarations)===null||Ao===void 0?void 0:Ao.find(e.isFunctionLikeDeclaration))||Fp[0]&&Fp[0].declaration||Ni.declarations&&Ni.declarations[0]);for(var Kh=[],yg=0,bg=Fp;yg<bg.length;yg++){var C_=bg[yg],Qh=gr(C_,ei,Pr,{name:cc,questionToken:Ni.flags&16777216?e.factory.createToken(57):void 0,modifiers:Js?e.factory.createModifiersFromModifierFlags(Js):void 0}),fu=C_.declaration&&e.isPrototypePropertyAssignment(C_.declaration.parent)?C_.declaration.parent:C_.declaration;Kh.push(e.setTextRange(Qh,fu))}return Kh}return e.Debug.fail("Unhandled class member kind! ".concat(Ni.__debugFlags||Ni.flags))}}function Pa(Rt,ei){return ui(Rt,!1,ei)}function eo(Rt,ei,Qi,bi){var Ni=La(ei,Rt);if(Rt===1){if(!Qi&&e.every(Ni,function(hl){return e.length(hl.parameters)===0}))return[];if(Qi){var Xa=La(Qi,1);if(!e.length(Xa)&&e.every(Ni,function(hl){return e.length(hl.parameters)===0}))return[];if(Xa.length===Ni.length){for(var Ea=!1,za=0;za<Xa.length;za++)if(!bb(Ni[za],Xa[za],!1,!1,!0,u0)){Ea=!0;break}if(!Ea)return[]}}for(var xa=0,wa=0,es=Ni;wa<es.length;wa++){var Ao=es[wa];Ao.declaration&&(xa|=e.getSelectedEffectiveModifierFlags(Ao.declaration,24))}if(xa)return[e.setTextRange(e.factory.createConstructorDeclaration(e.factory.createModifiersFromModifierFlags(xa),[],void 0),Ni[0].declaration)]}for(var Fs=[],ys=0,Js=Ni;ys<Js.length;ys++){var cc=Js[ys],ku=gr(cc,bi,Pr);Fs.push(e.setTextRange(ku,cc.declaration))}return Fs}function Mo(Rt,ei){for(var Qi=[],bi=0,Ni=_c(Rt);bi<Ni.length;bi++){var Xa=Ni[bi];if(ei){var Ea=nf(ei,Xa.keyType);if(Ea&&ud(Xa.type,Ea.type))continue}Qi.push(sr(Xa,Pr,void 0))}return Qi}function ao(Rt,ei,Qi){var bi=ps(Rt,111551);if(bi)return bi;var Ni=lu("".concat(Qi,"_base")),Xa=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Ni,void 0,p(ei,Pr))],2));return vs(Xa,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(Ni),void 0)}function ps(Rt,ei){var Qi,bi;if(Rt.target&&__(Rt.target.symbol,Vn,ei)?(Qi=e.map(Go(Rt),function(Ni){return p(Ni,Pr)}),bi=Bo(Rt.target.symbol,Pr,788968)):Rt.symbol&&__(Rt.symbol,Vn,ei)&&(bi=Bo(Rt.symbol,Pr,788968)),bi)return e.factory.createExpressionWithTypeArguments(bi,Qi)}function us(Rt){var ei=ps(Rt,788968);if(ei)return ei;if(Rt.symbol)return e.factory.createExpressionWithTypeArguments(Bo(Rt.symbol,Pr,788968),void 0)}function lu(Rt,ei){var Qi,bi,Ni=ei?ne(ei):void 0;if(Ni&&Pr.remappedSymbolNames.has(Ni))return Pr.remappedSymbolNames.get(Ni);ei&&(Rt=cs(ei,Rt));for(var Xa=0,Ea=Rt;!((Qi=Pr.usedSymbolNames)===null||Qi===void 0)&&Qi.has(Rt);)Xa++,Rt="".concat(Ea,"_").concat(Xa);return(bi=Pr.usedSymbolNames)===null||bi===void 0||bi.add(Rt),Ni&&Pr.remappedSymbolNames.set(Ni,Rt),Rt}function cs(Rt,ei){if(ei==="default"||ei==="__class"||ei==="__function"){var Qi=Pr.flags;Pr.flags|=16777216;var bi=ad(Rt,Pr);Pr.flags=Qi,ei=bi.length>0&&e.isSingleOrDoubleQuote(bi.charCodeAt(0))?e.stripQuotes(bi):bi}return ei==="default"?ei="_default":ei==="export="&&(ei="_exports"),ei=e.isIdentifierText(ei,Ae)&&!e.isStringANonContextualKeyword(ei)?ei:"_"+ei.replace(/[^a-zA-Z0-9]/g,"_"),ei}function js(Rt,ei){var Qi=ne(Rt);return Pr.remappedSymbolNames.has(Qi)?Pr.remappedSymbolNames.get(Qi):(ei=cs(Rt,ei),Pr.remappedSymbolNames.set(Qi,ei),ei)}}}function Wu(r,a,u,f){return u===void 0&&(u=16384),f?p(f).getText():e.usingSingleLineStringWriter(p);function p(g){var j=e.factory.createTypePredicateNode(r.kind===2||r.kind===3?e.factory.createToken(129):void 0,r.kind===1||r.kind===3?e.factory.createIdentifier(r.parameterName):e.factory.createThisTypeNode(),r.type&&qr.typeToTypeNode(r.type,a,Ep(u)|70221824|512)),pe=e.createPrinter({removeComments:!0}),Se=a&&e.getSourceFileOfNode(a);return pe.writeNode(4,j,Se,g),g}}function id(r){for(var a=[],u=0,f=0;f<r.length;f++){var p=r[f];if(u|=p.flags,!(p.flags&98304)){if(p.flags&1536){var g=p.flags&512?Tn:wv(p);if(g.flags&1048576){var j=g.types.length;if(f+j<=r.length&&Eu(r[f+j-1])===Eu(g.types[j-1])){a.push(g),f+=j-1;continue}}}a.push(p)}}return u&65536&&a.push(Pt),u&32768&&a.push(Ar),a||r}function tm(r){return r===8?"private":r===16?"protected":"public"}function fl(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){var a=e.walkUpParenthesizedTypes(r.symbol.declarations[0].parent);if(a.kind===262)return Zn(a)}}function jf(r){return r&&r.parent&&r.parent.kind===265&&e.isExternalModuleAugmentation(r.parent.parent)}function Gm(r){return r.kind===308||e.isAmbientModule(r)}function Km(r,a){var u=la(r).nameType;if(u){if(u.flags&384){var f=""+u.value;return!e.isIdentifierText(f,e.getEmitScriptTarget(Ce))&&!e.isNumericLiteralName(f)?'"'.concat(e.escapeString(f,34),'"'):e.isNumericLiteralName(f)&&e.startsWith(f,"-")?"[".concat(f,"]"):f}if(u.flags&8192)return"[".concat(ad(u.symbol,a),"]")}}function ad(r,a){if(a&&r.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!r.declarations||a.enclosingDeclaration&&e.findAncestor(r.declarations[0],Gm)!==e.findAncestor(a.enclosingDeclaration,Gm)))return"default";if(r.declarations&&r.declarations.length){var u=e.firstDefined(r.declarations,function(pe){return e.getNameOfDeclaration(pe)?pe:void 0}),f=u&&e.getNameOfDeclaration(u);if(u&&f){if(e.isCallExpression(u)&&e.isBindableObjectDefinePropertyCall(u))return e.symbolName(r);if(e.isComputedPropertyName(f)&&!(e.getCheckFlags(r)&4096)){var p=la(r).nameType;if(p&&p.flags&384){var g=Km(r,a);if(g!==void 0)return g}}return e.declarationNameToString(f)}if(u||(u=r.declarations[0]),u.parent&&u.parent.kind===257)return e.declarationNameToString(u.parent.name);switch(u.kind){case 228:case 215:case 216:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),u.kind===228?"(Anonymous class)":"(Anonymous function)"}}var j=Km(r,a);return j!==void 0?j:e.symbolName(r)}function Dl(r){if(r){var a=Mi(r);return a.isVisible===void 0&&(a.isVisible=!!u()),a.isVisible}return!1;function u(){switch(r.kind){case 341:case 348:case 342:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&e.isSourceFile(r.parent.parent.parent));case 205:return Dl(r.parent.parent);case 257:if(e.isBindingPattern(r.name)&&!r.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(e.isExternalModuleAugmentation(r))return!0;var f=Ii(r);return!(e.getCombinedModifierFlags(r)&1)&&!(r.kind!==268&&f.kind!==308&&f.flags&16777216)?sl(f):Dl(f);case 169:case 168:case 174:case 175:case 171:case 170:if(e.hasEffectiveModifier(r,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return Dl(r.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;case 274:return!1;default:return!1}}}function V(r,a){var u;r.parent&&r.parent.kind===274?u=Ls(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===278&&(u=Um(r.parent,2998271));var f,p;return u&&(p=new e.Set,p.add(ne(u)),g(u.declarations)),f;function g(j){e.forEach(j,function(pe){var Se=W_(pe)||pe;if(a?Mi(pe).isVisible=!0:(f=f||[],e.pushIfUnique(f,Se)),e.isInternalModuleImportEqualsDeclaration(pe)){var Be=pe.moduleReference,fr=e.getFirstIdentifier(Be),sr=Ls(pe,fr.escapedText,901119,void 0,void 0,!1);sr&&p&&e.tryAddToSet(p,ne(sr))&&g(sr.declarations)}})}}function ir(r,a){var u=bt(r,a);if(u>=0){for(var f=wu.length,p=u;p<f;p++)Nl[p]=!1;return!1}return wu.push(r),Nl.push(!0),pf.push(a),!0}function bt(r,a){for(var u=wu.length-1;u>=0;u--){if(tn(wu[u],pf[u]))return-1;if(wu[u]===r&&pf[u]===a)return u}return-1}function tn(r,a){switch(a){case 0:return!!la(r).type;case 5:return!!Mi(r).resolvedEnumType;case 2:return!!la(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved;case 8:return!!la(r).writeType}return e.Debug.assertNever(a)}function oi(){return wu.pop(),pf.pop(),Nl.pop()}function Ii(r){return e.findAncestor(e.getRootDeclaration(r),function(a){switch(a.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function Hi(r){var a=mn(Bc(r));return a.typeParameters?b_(a,e.map(a.typeParameters,function(u){return Ie})):a}function di(r,a){var u=Fa(r,a);return u?_n(u):void 0}function io(r,a){var u;return di(r,a)||((u=$g(r,a))===null||u===void 0?void 0:u.type)||ur}function fa(r){return r&&(r.flags&1)!==0}function pa(r){return r===ar||!!(r.flags&1&&r.aliasSymbol)}function jc(r,a){if(a!==0)return am(r,!1,a);var u=Zn(r);return u&&la(u).type||am(r,!1,a)}function pl(r,a,u){if(r=Nc(r,function(mt){return!(mt.flags&98304)}),r.flags&131072)return fn;if(r.flags&1048576)return Ts(r,function(mt){return pl(mt,a,u)});for(var f=zi(e.map(a,D_)),p=[],g=[],j=0,pe=Ro(r);j<pe.length;j++){var Se=pe[j],Be=zy(Se,8576);!So(Be,f)&&!(e.getDeclarationModifierFlagsFromSymbol(Se)&24)&&gx(Se)?p.push(Se):g.push(Be)}if(ng(r)||mm(f)){if(g.length&&(f=zi(t([f],g,!0))),f.flags&131072)return r;var fr=aW();return fr?Jv(fr,[r,f]):ar}for(var sr=e.createSymbolTable(),gr=0,_r=p;gr<_r.length;gr++){var Se=_r[gr];sr.set(Se.escapedName,wA(Se,!1))}var Kr=Es(u,sr,e.emptyArray,e.emptyArray,_c(r));return Kr.objectFlags|=4194304,Kr}function Hs(r){return!!(r.flags&465829888)&&ks(uu(r)||ur,32768)}function qu(r){var a=pd(r,Hs)?Ts(r,function(u){return u.flags&465829888?y_(u):u}):r;return gl(a,524288)}function il(r,a){var u=jl(r);return u?Tm(u,a):a}function jl(r){var a=Jf(r);if(a&&a.flowNode){var u=Qm(r);if(u){var f=e.setTextRange(e.parseNodeFactory.createStringLiteral(u),r),p=e.isLeftHandSideExpression(a)?a:e.parseNodeFactory.createParenthesizedExpression(a),g=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(p,f),r);return e.setParent(f,g),e.setParent(g,r),p!==a&&e.setParent(p,g),g.flowNode=a.flowNode,g}}}function Jf(r){var a=r.parent.parent;switch(a.kind){case 205:case 299:return jl(a);case 206:return jl(r.parent);case 257:return a.initializer;case 223:return a.right}}function Qm(r){var a=r.parent;return r.kind===205&&a.kind===203?Vg(r.propertyName||r.name):r.kind===299||r.kind===300?Vg(r.name):""+a.elements.indexOf(r)}function Vg(r){var a=D_(r);return a.flags&384?""+a.value:void 0}function Uf(r){var a=r.dotDotDotToken?64:0,u=jc(r.parent.parent,a);return u&&nm(r,u)}function nm(r,a){if(fa(a))return a;var u=r.parent;ue&&r.flags&16777216&&e.isParameterDeclaration(r)?a=qd(a):ue&&u.parent.initializer&&!(Yc(n5(u.parent.initializer))&65536)&&(a=gl(a,524288));var f;if(u.kind===203)if(r.dotDotDotToken){if(a=Zi(a),a.flags&2||!Nb(a))return nt(r,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),ar;for(var p=[],g=0,j=u.elements;g<j.length;g++){var pe=j[g];pe.dotDotDotToken||p.push(pe.propertyName||pe.name)}f=pl(a,p,r.symbol)}else{var Se=r.propertyName||r.name,Be=D_(Se),fr=Fu(a,Be,32,Se);f=il(r,fr)}else{var sr=E_(65|(r.dotDotDotToken?0:128),a,Ar,u),gr=u.elements.indexOf(r);if(r.dotDotDotToken)f=Ip(a,po)?Ts(a,function(Kr){return a0(Kr,gr)}):zc(sr);else if(xm(a)){var Be=Qf(gr),_r=32|(Ky(r)?16:0),fr=gm(a,Be,_r,r.name)||ar;f=il(r,fr)}else f=sr}return r.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(r))?ue&&!(Yc(qb(r,0))&16777216)?qu(f):f:hw(r,zi([qu(f),qb(r,0)],2)):f}function im(r){var a=e.getJSDocType(r);if(a)return ea(a)}function Xm(r){var a=e.skipParentheses(r,!0);return a.kind===104||a.kind===79&&Wl(a)===zr}function Ef(r){var a=e.skipParentheses(r,!0);return a.kind===206&&a.elements.length===0}function dl(r,a,u){return a===void 0&&(a=!1),u===void 0&&(u=!0),ue&&u?Wd(r,a):r}function am(r,a,u){if(e.isVariableDeclaration(r)&&r.parent.parent.kind===246){var f=Kf($P(Ra(r.parent.parent.expression,u)));return f.flags&4456448?zO(f):Ft}if(e.isVariableDeclaration(r)&&r.parent.parent.kind===247){var p=r.parent.parent;return Yb(p)||Ie}if(e.isBindingPattern(r.parent))return Uf(r);var g=e.isPropertyDeclaration(r)&&!e.hasAccessorModifier(r)||e.isPropertySignature(r),j=a&&(g&&!!r.questionToken||e.isParameter(r)&&(!!r.questionToken||Hg(r))||jy(r)),pe=Ma(r);if(pe)return dl(pe,g,j);if((mr||e.isInJSFile(r))&&e.isVariableDeclaration(r)&&!e.isBindingPattern(r.name)&&!(e.getCombinedModifierFlags(r)&1)&&!(r.flags&16777216)){if(!(e.getCombinedNodeFlags(r)&2)&&(!r.initializer||Xm(r.initializer)))return We;if(r.initializer&&Ef(r.initializer))return ds}if(e.isParameter(r)){var Se=r.parent;if(Se.kind===175&&Wf(Se)){var Be=e.getDeclarationOfKind(Zn(r.parent),174);if(Be){var fr=of(Be),sr=Qw(Se);return sr&&r===sr?(e.Debug.assert(!sr.type),_n(fr.thisParameter)):Ho(fr)}}var gr=Iz(Se,r);if(gr)return gr;var _r=r.symbol.escapedName==="this"?D5(Se):x5(r);if(_r)return dl(_r,!1,j)}if(e.hasOnlyExpressionInitializer(r)&&r.initializer){if(e.isInJSFile(r)&&!e.isParameter(r)){var Kr=kh(r,Zn(r),e.getDeclaredExpandoInitializer(r));if(Kr)return Kr}var _r=hw(r,qb(r,u));return dl(_r,g,j)}if(e.isPropertyDeclaration(r)&&(mr||e.isInJSFile(r)))if(e.hasStaticModifier(r)){var Vt=e.filter(r.parent.members,e.isClassStaticBlockDeclaration),_r=Vt.length?Tv(r.symbol,Vt):e.getEffectiveModifierFlags(r)&2?Ax(r.symbol):void 0;return _r&&dl(_r,!0,j)}else{var mt=f_(r.parent),_r=mt?Eh(r.symbol,mt):e.getEffectiveModifierFlags(r)&2?Ax(r.symbol):void 0;return _r&&dl(_r,!0,j)}if(e.isJsxAttribute(r))return Bn;if(e.isBindingPattern(r.name))return gn(r.name,!1,!0)}function Ym(r){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration)){var a=la(r);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!zg(r)&&e.every(r.declarations,function(u){return e.isBinaryExpression(u)&&Qx(u)&&(u.left.kind!==209||e.isStringOrNumericLiteralLike(u.left.argumentExpression))&&!Wg(void 0,u,r,u)})),a.isConstructorDeclaredProperty}return!1}function Th(r){var a=r.valueDeclaration;return a&&e.isPropertyDeclaration(a)&&!e.getEffectiveTypeAnnotationNode(a)&&!a.initializer&&(mr||e.isInJSFile(a))}function zg(r){if(r.declarations)for(var a=0,u=r.declarations;a<u.length;a++){var f=u[a],p=e.getThisContainer(f,!1);if(p&&(p.kind===173||wf(p)))return p}}function om(r){var a=e.getSourceFileOfNode(r.declarations[0]),u=e.unescapeLeadingUnderscores(r.escapedName),f=r.declarations.every(function(g){return e.isInJSFile(g)&&e.isAccessExpression(g)&&e.isModuleExportsAccessExpression(g.expression)}),p=f?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),u):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),u);return f&&e.setParent(p.expression.expression,p.expression),e.setParent(p.expression,p),e.setParent(p,a),p.flowNode=a.endFlowNode,Tm(p,We,Ar)}function Tv(r,a){for(var u=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),f=0,p=a;f<p.length;f++){var g=p[f],j=e.factory.createPropertyAccessExpression(e.factory.createThis(),u);e.setParent(j.expression,j),e.setParent(j,g),j.flowNode=g.returnFlowNode;var pe=Ch(j,r);if(mr&&(pe===We||pe===ds)&&nt(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,na(r),Hn(pe)),!Ip(pe,nT))return M0(pe)}}function Eh(r,a){var u=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),f=e.factory.createPropertyAccessExpression(e.factory.createThis(),u);e.setParent(f.expression,f),e.setParent(f,a),f.flowNode=a.returnFlowNode;var p=Ch(f,r);return mr&&(p===We||p===ds)&&nt(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,na(r),Hn(p)),Ip(p,nT)?void 0:M0(p)}function Ch(r,a){var u=(a==null?void 0:a.valueDeclaration)&&(!Th(a)||e.getEffectiveModifierFlags(a.valueDeclaration)&2)&&Ax(a)||Ar;return Tm(r,We,u)}function Zm(r,a){var u=e.getAssignedExpandoInitializer(r.valueDeclaration);if(u){var f=e.getJSDocTypeTag(u);if(f&&f.typeExpression)return ea(f.typeExpression);var p=r.valueDeclaration&&kh(r.valueDeclaration,r,u);return p||cg(Gs(u))}var g,j=!1,pe=!1;if(Ym(r)&&(g=Eh(r,zg(r))),!g){var Se=void 0;if(r.declarations){for(var Be=void 0,fr=0,sr=r.declarations;fr<sr.length;fr++){var gr=sr[fr],_r=e.isBinaryExpression(gr)||e.isCallExpression(gr)?gr:e.isAccessExpression(gr)?e.isBinaryExpression(gr.parent)?gr.parent:gr:void 0;if(_r){var Kr=e.isAccessExpression(_r)?e.getAssignmentDeclarationPropertyAccessKind(_r):e.getAssignmentDeclarationKind(_r);(Kr===4||e.isBinaryExpression(_r)&&Qx(_r,Kr))&&(ze(_r)?j=!0:pe=!0),e.isCallExpression(_r)||(Be=Wg(Be,_r,r,gr)),Be||(Se||(Se=[])).push(e.isBinaryExpression(_r)||e.isCallExpression(_r)?Ev(r,a,_r,Kr):Xe)}}g=Be}if(!g){if(!e.length(Se))return ar;var mt=j&&r.declarations?Cr(Se,r.declarations):void 0;if(pe){var Vt=Ax(r);Vt&&((mt||(mt=[])).push(Vt),j=!0)}var wt=e.some(mt,function(on){return!!(on.flags&-98305)})?mt:Se;g=zi(wt)}}var rn=Gu(dl(g,!1,pe&&!j));return r.valueDeclaration&&Nc(rn,function(on){return!!(on.flags&-98305)})===Xe?(ug(r.valueDeclaration,Ie),Ie):rn}function kh(r,a,u){var f,p;if(!(!e.isInJSFile(r)||!u||!e.isObjectLiteralExpression(u)||u.properties.length)){for(var g=e.createSymbolTable();e.isBinaryExpression(r)||e.isPropertyAccessExpression(r);){var j=Zn(r);!((f=j==null?void 0:j.exports)===null||f===void 0)&&f.size&&tl(g,j.exports),r=e.isBinaryExpression(r)?r.parent:r.parent.parent}var pe=Zn(r);!((p=pe==null?void 0:pe.exports)===null||p===void 0)&&p.size&&tl(g,pe.exports);var Se=Es(a,g,e.emptyArray,e.emptyArray,e.emptyArray);return Se.objectFlags|=4096,Se}}function Wg(r,a,u,f){var p,g=e.getEffectiveTypeAnnotationNode(a.parent);if(g){var j=Gu(ea(g));if(r)!pa(r)&&!pa(j)&&!ud(r,j)&&vM(void 0,r,f,j);else return j}if(!((p=u.parent)===null||p===void 0)&&p.valueDeclaration){var pe=e.getEffectiveTypeAnnotationNode(u.parent.valueDeclaration);if(pe){var Se=Fa(ea(pe),u.escapedName);if(Se)return Rs(Se)}}return r}function Ev(r,a,u,f){if(e.isCallExpression(u)){if(a)return _n(a);var p=Gs(u.arguments[2]),g=di(p,"value");if(g)return g;var j=di(p,"get");if(j){var pe=qh(j);if(pe)return Ho(pe)}var Se=di(p,"set");if(Se){var Be=qh(Se);if(Be)return lw(Be)}return Ie}if(Cv(u.left,u.right))return Ie;var fr=f===1&&(e.isPropertyAccessExpression(u.left)||e.isElementAccessExpression(u.left))&&(e.isModuleExportsAccessExpression(u.left.expression)||e.isIdentifier(u.left.expression)&&e.isExportsIdentifier(u.left.expression)),sr=a?_n(a):fr?Eu(Gs(u.right)):cg(Gs(u.right));if(sr.flags&524288&&f===2&&r.escapedName==="export="){var gr=El(sr),_r=e.createSymbolTable();e.copyEntries(gr.members,_r);var Kr=_r.size;a&&!a.exports&&(a.exports=e.createSymbolTable()),(a||r).exports.forEach(function(wt,rn){var on,Un=_r.get(rn);if(Un&&Un!==wt&&!(wt.flags&2097152))if(wt.flags&111551&&Un.flags&111551){if(wt.valueDeclaration&&Un.valueDeclaration&&e.getSourceFileOfNode(wt.valueDeclaration)!==e.getSourceFileOfNode(Un.valueDeclaration)){var Gn=e.unescapeLeadingUnderscores(wt.escapedName),Ti=((on=e.tryCast(Un.valueDeclaration,e.isNamedDeclaration))===null||on===void 0?void 0:on.name)||Un.valueDeclaration;e.addRelatedInfo(nt(wt.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,Gn),e.createDiagnosticForNode(Ti,e.Diagnostics._0_was_also_declared_here,Gn)),e.addRelatedInfo(nt(Ti,e.Diagnostics.Duplicate_identifier_0,Gn),e.createDiagnosticForNode(wt.valueDeclaration,e.Diagnostics._0_was_also_declared_here,Gn))}var li=Lo(wt.flags|Un.flags,rn);li.type=zi([_n(wt),_n(Un)]),li.valueDeclaration=Un.valueDeclaration,li.declarations=e.concatenate(Un.declarations,wt.declarations),_r.set(rn,li)}else _r.set(rn,qp(wt,Un));else _r.set(rn,wt)});var mt=Es(Kr!==_r.size?void 0:gr.symbol,_r,gr.callSignatures,gr.constructSignatures,gr.indexInfos);if(Kr===_r.size&&(sr.aliasSymbol&&(mt.aliasSymbol=sr.aliasSymbol,mt.aliasTypeArguments=sr.aliasTypeArguments),e.getObjectFlags(sr)&4)){mt.aliasSymbol=sr.symbol;var Vt=Go(sr);mt.aliasTypeArguments=e.length(Vt)?Vt:void 0}return mt.objectFlags|=e.getObjectFlags(sr)&4096,mt.symbol&&mt.symbol.flags&32&&sr===Ou(mt.symbol)&&(mt.objectFlags|=16777216),mt}return Nx(sr)?(ug(u,Wo),Wo):sr}function Cv(r,a){return e.isPropertyAccessExpression(r)&&r.expression.kind===108&&e.forEachChildRecursively(a,function(u){return xc(r,u)})}function ze(r){var a=e.getThisContainer(r,!1);return a.kind===173||a.kind===259||a.kind===215&&!e.isPrototypePropertyAssignment(a.parent)}function Cr(r,a){return e.Debug.assert(r.length===a.length),r.filter(function(u,f){var p=a[f],g=e.isBinaryExpression(p)?p:e.isBinaryExpression(p.parent)?p.parent:void 0;return g&&ze(g)})}function ot(r,a,u){if(r.initializer){var f=e.isBindingPattern(r.name)?gn(r.name,!0,!1):ur;return dl(hw(r,qb(r,0,f)))}return e.isBindingPattern(r.name)?gn(r.name,a,u):(u&&!Ki(r)&&ug(r,Ie),a?Or:Ie)}function xt(r,a,u){var f=e.createSymbolTable(),p,g=131200;e.forEach(r.elements,function(pe){var Se=pe.propertyName||pe.name;if(pe.dotDotDotToken){p=Hf(Ft,Ie,!1);return}var Be=D_(Se);if(!Kc(Be)){g|=512;return}var fr=Jl(Be),sr=4|(pe.initializer?16777216:0),gr=Lo(sr,fr);gr.type=ot(pe,a,u),gr.bindingElement=pe,f.set(gr.escapedName,gr)});var j=Es(void 0,f,e.emptyArray,e.emptyArray,p?[p]:e.emptyArray);return j.objectFlags|=g,a&&(j.pattern=r,j.objectFlags|=131072),j}function Gt(r,a,u){var f=r.elements,p=e.lastOrUndefined(f),g=p&&p.kind===205&&p.dotDotDotToken?p:void 0;if(f.length===0||f.length===1&&g)return Ae>=2?uW(Ie):Wo;var j=e.map(f,function(fr){return e.isOmittedExpression(fr)?Ie:ot(fr,a,u)}),pe=e.findLastIndex(f,function(fr){return!(fr===g||e.isOmittedExpression(fr)||Ky(fr))},f.length-1)+1,Se=e.map(f,function(fr,sr){return fr===g?4:sr>=pe?2:1}),Be=Gf(j,Se);return a&&(Be=sO(Be),Be.pattern=r,Be.objectFlags|=131072),Be}function gn(r,a,u){return a===void 0&&(a=!1),u===void 0&&(u=!1),r.kind===203?xt(r,a,u):Gt(r,a,u)}function ci(r,a){return Oi(am(r,!0,0),r,a)}function Fi(r){var a=Zn(r),u=Gz(!1);return u&&a&&a===u}function Oi(r,a,u){return r?(r.flags&4096&&Fi(a.parent)&&(r=NA(a)),u&&Bx(a,r),r.flags&8192&&(e.isBindingElement(a)||!a.type)&&r.symbol!==Zn(a)&&(r=An),Gu(r)):(r=e.isParameter(a)&&a.dotDotDotToken?Wo:Ie,u&&(Ki(a)||ug(a,r)),r)}function Ki(r){var a=e.getRootDeclaration(r),u=a.kind===166?a.parent:a;return Hb(u)}function Ma(r){var a=e.getEffectiveTypeAnnotationNode(r);if(a)return ea(a)}function Qo(r){var a=la(r);if(!a.type){var u=wo(r);a.type||(a.type=u)}return a.type}function wo(r){if(r.flags&4194304)return Hi(r);if(r===Ct)return Ie;if(r.flags&134217728&&r.valueDeclaration){var a=Zn(e.getSourceFileOfNode(r.valueDeclaration)),u=Lo(a.flags,"exports");u.declarations=a.declarations?a.declarations.slice():[],u.parent=r,u.target=a,a.valueDeclaration&&(u.valueDeclaration=a.valueDeclaration),a.members&&(u.members=new e.Map(a.members)),a.exports&&(u.exports=new e.Map(a.exports));var f=e.createSymbolTable();return f.set("exports",u),Es(r,f,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(r.valueDeclaration);var p=r.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(p)){var g=e.getEffectiveTypeAnnotationNode(p);if(g===void 0)return wr?ur:Ie;var j=Hh(g);return fa(j)||j===ur?j:ar}if(e.isSourceFile(p)&&e.isJsonSourceFile(p))return p.statements.length?Gu(cg(Ra(p.statements[0].expression))):fn;if(e.isAccessor(p))return _l(r);if(!ir(r,0))return r.flags&512&&!(r.flags&67108864)?ml(r):pr(r);var pe;if(p.kind===274)pe=Oi(Ma(p)||Gs(p.expression),p);else if(e.isBinaryExpression(p)||e.isInJSFile(p)&&(e.isCallExpression(p)||(e.isPropertyAccessExpression(p)||e.isBindableStaticElementAccessExpression(p))&&e.isBinaryExpression(p.parent)))pe=Zm(r);else if(e.isPropertyAccessExpression(p)||e.isElementAccessExpression(p)||e.isIdentifier(p)||e.isStringLiteralLike(p)||e.isNumericLiteral(p)||e.isClassDeclaration(p)||e.isFunctionDeclaration(p)||e.isMethodDeclaration(p)&&!e.isObjectLiteralMethod(p)||e.isMethodSignature(p)||e.isSourceFile(p)){if(r.flags&9136)return ml(r);pe=e.isBinaryExpression(p.parent)?Zm(r):Ma(p)||Ie}else if(e.isPropertyAssignment(p))pe=Ma(p)||$7(p);else if(e.isJsxAttribute(p))pe=Ma(p)||O5(p);else if(e.isShorthandPropertyAssignment(p))pe=Ma(p)||r1(p.name,0);else if(e.isObjectLiteralMethod(p))pe=Ma(p)||H7(p,0);else if(e.isParameter(p)||e.isPropertyDeclaration(p)||e.isPropertySignature(p)||e.isVariableDeclaration(p)||e.isBindingElement(p)||e.isJSDocPropertyLikeTag(p))pe=ci(p,!0);else if(e.isEnumDeclaration(p))pe=ml(r);else if(e.isEnumMember(p))pe=zf(r);else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(p.kind)+" for "+e.Debug.formatSymbol(r));return oi()?pe:r.flags&512&&!(r.flags&67108864)?ml(r):pr(r)}function ss(r){if(r)switch(r.kind){case 174:var a=e.getEffectiveReturnTypeNode(r);return a;case 175:var u=e.getEffectiveSetAccessorTypeAnnotationNode(r);return u;case 169:e.Debug.assert(e.hasAccessorModifier(r));var f=e.getEffectiveTypeAnnotationNode(r);return f}}function Cs(r){var a=ss(r);return a&&ea(a)}function dc(r){var a=Qw(r);return a&&a.symbol}function wc(r){return rg(of(r))}function _l(r){var a=la(r);if(!a.type){if(!ir(r,0))return ar;var u=e.getDeclarationOfKind(r,174),f=e.getDeclarationOfKind(r,175),p=e.tryCast(e.getDeclarationOfKind(r,169),e.isAutoAccessorPropertyDeclaration),g=u&&e.isInJSFile(u)&&im(u)||Cs(u)||Cs(f)||Cs(p)||u&&u.body&&mT(u)||p&&p.initializer&&ci(p,!0);g||(f&&!Hb(f)?df(mr,f,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,na(r)):u&&!Hb(u)?df(mr,u,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,na(r)):p&&!Hb(p)&&df(mr,p,e.Diagnostics.Member_0_implicitly_has_an_1_type,na(r),"any"),g=Ie),oi()||(ss(u)?nt(u,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,na(r)):ss(f)||ss(p)?nt(f,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,na(r)):u&&mr&&nt(u,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,na(r)),g=Ie),a.type=g}return a.type}function hs(r){var a,u=la(r);if(!u.writeType){if(!ir(r,8))return ar;var f=(a=e.getDeclarationOfKind(r,175))!==null&&a!==void 0?a:e.tryCast(e.getDeclarationOfKind(r,169),e.isAutoAccessorPropertyDeclaration),p=Cs(f);oi()||(ss(f)&&nt(f,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,na(r)),p=Ie),u.writeType=p||_l(r)}return u.writeType}function cu(r){var a=sd(Ou(r));return a.flags&8650752?a:a.flags&2097152?e.find(a.types,function(u){return!!(u.flags&8650752)}):void 0}function ml(r){var a=la(r),u=a;if(!a.type){var f=r.valueDeclaration&&pT(r.valueDeclaration,!1);if(f){var p=cw(r,f);p&&(r=a=p)}u.type=a.type=Vf(r)}return a.type}function Vf(r){var a=r.valueDeclaration;if(r.flags&1536&&e.isShorthandAmbientModuleSymbol(r))return Ie;if(a&&(a.kind===223||e.isAccessExpression(a)&&a.parent.kind===223))return Zm(r);if(r.flags&512&&a&&e.isSourceFile(a)&&a.commonJsModuleIndicator){var u=Rc(r);if(u!==r){if(!ir(r,0))return ar;var f=mo(r.exports.get("export=")),p=Zm(f,f===u?void 0:u);return oi()?p:pr(r)}}var g=ll(16,r);if(r.flags&32){var j=cu(r);return j?ho([g,j]):g}else return ue&&r.flags&16777216?Wd(g):g}function zf(r){var a=la(r);return a.type||(a.type=cm(r))}function x(r){var a=la(r);if(!a.type){var u=gc(r),f=r.declarations&&vf(Ol(r),!0),p=e.firstDefined(f==null?void 0:f.declarations,function(g){return e.isExportAssignment(g)?Ma(g):void 0});a.type=f!=null&&f.declarations&&wT(f.declarations)&&r.declarations.length?om(f):wT(r.declarations)?We:p||(Gc(u)&111551?_n(u):ar)}return a.type}function se(r){var a=la(r);return a.type||(a.type=Sa(_n(a.target),a.mapper))}function ke(r){var a=la(r);return a.writeType||(a.writeType=Sa(hi(a.target),a.mapper))}function pr(r){var a=r.valueDeclaration;return e.getEffectiveTypeAnnotationNode(a)?(nt(r.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,na(r)),ar):(mr&&(a.kind!==166||a.initializer)&&nt(r.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,na(r)),Ie)}function st(r){var a=la(r);return a.type||(e.Debug.assertIsDefined(a.deferralParent),e.Debug.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?zi(a.deferralConstituents):ho(a.deferralConstituents)),a.type}function bn(r){var a=la(r);return!a.writeType&&a.deferralWriteConstituents&&(e.Debug.assertIsDefined(a.deferralParent),e.Debug.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?zi(a.deferralWriteConstituents):ho(a.deferralWriteConstituents)),a.writeType}function hi(r){var a=e.getCheckFlags(r);return r.flags&4?a&2?a&65536?bn(r)||st(r):r.writeType||r.type:_n(r):r.flags&98304?a&1?ke(r):hs(r):_n(r)}function _n(r){var a=e.getCheckFlags(r);return a&65536?st(r):a&1?se(r):a&262144?$k(r):a&8192?y$(r):r.flags&7?Qo(r):r.flags&9136?ml(r):r.flags&8?zf(r):r.flags&98304?_l(r):r.flags&2097152?x(r):ar}function Rs(r){return Hv(_n(r),!!(r.flags&16777216))}function Tu(r,a){return r!==void 0&&a!==void 0&&(e.getObjectFlags(r)&4)!==0&&r.target===a}function Rd(r){return e.getObjectFlags(r)&4?r.target:r}function $u(r,a){return u(r);function u(f){if(e.getObjectFlags(f)&7){var p=Rd(f);return p===a||e.some(Jc(p),u)}else if(f.flags&2097152)return e.some(f.types,u);return!1}}function Ah(r,a){for(var u=0,f=a;u<f.length;u++){var p=f[u];r=e.appendIfUnique(r,Bd(Zn(p)))}return r}function kp(r,a){for(;;){if(r=r.parent,r&&e.isBinaryExpression(r)){var u=e.getAssignmentDeclarationKind(r);if(u===6||u===3){var f=Zn(r.left);f&&f.parent&&!e.findAncestor(f.parent.valueDeclaration,function(Se){return r===Se})&&(r=f.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 347:case 348:case 342:case 341:case 197:case 191:{var p=kp(r,a);if(r.kind===197)return e.append(p,Bd(Zn(r.typeParameter)));if(r.kind===191)return e.concatenate(p,ZO(r));var g=Ah(p,e.getEffectiveTypeParameterDeclarations(r)),j=a&&(r.kind===260||r.kind===228||r.kind===261||wf(r))&&Ou(Zn(r)).thisType;return j?e.append(g,j):g}case 343:var pe=e.getParameterSymbolFromJSDoc(r);pe&&(r=pe.valueDeclaration);break;case 323:{var p=kp(r,a);return r.tags?Ah(p,e.flatMap(r.tags,function(Be){return e.isJSDocTemplateTag(Be)?Be.typeParameters:void 0})):p}}}}function Ny(r){var a=r.flags&32?r.valueDeclaration:e.getDeclarationOfKind(r,261);return e.Debug.assert(!!a,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),kp(a)}function Ap(r){if(r.declarations){for(var a,u=0,f=r.declarations;u<f.length;u++){var p=f[u];if(p.kind===261||p.kind===260||p.kind===228||wf(p)||e.isTypeAlias(p)){var g=p;a=Ah(a,e.getEffectiveTypeParameterDeclarations(g))}}return a}}function V2(r){return e.concatenate(Ny(r),Ap(r))}function kv(r){var a=La(r,1);if(a.length===1){var u=a[0];if(!u.typeParameters&&u.parameters.length===1&&R(u)){var f=x0(u.parameters[0]);return fa(f)||QA(f)===Ie}}return!1}function Av(r){if(La(r,1).length>0)return!0;if(r.flags&8650752){var a=uu(r);return!!a&&kv(a)}return!1}function qg(r){var a=e.getClassLikeDeclarationOfSymbol(r.symbol);return a&&e.getEffectiveBaseTypeNode(a)}function od(r,a,u){var f=e.length(a),p=e.isInJSFile(u);return e.filter(La(r,1),function(g){return(p||f>=af(g.typeParameters))&&f<=e.length(g.typeParameters)})}function Iy(r,a,u){var f=od(r,a,u),p=e.map(a,ea);return e.sameMap(f,function(g){return e.some(g.typeParameters)?r0(g,p,e.isInJSFile(u)):g})}function sd(r){if(!r.resolvedBaseConstructorType){var a=e.getClassLikeDeclarationOfSymbol(r.symbol),u=a&&e.getEffectiveBaseTypeNode(a),f=qg(r);if(!f)return r.resolvedBaseConstructorType=Ar;if(!ir(r,1))return ar;var p=Ra(f.expression);if(u&&f!==u&&(e.Debug.assert(!u.typeArguments),Ra(u.expression)),p.flags&2621440&&El(p),!oi())return nt(r.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,na(r.symbol)),r.resolvedBaseConstructorType=ar;if(!(p.flags&1)&&p!==pt&&!Av(p)){var g=nt(f.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Hn(p));if(p.flags&262144){var j=Uy(p),pe=ur;if(j){var Se=La(j,1);Se[0]&&(pe=Ho(Se[0]))}p.symbol.declarations&&e.addRelatedInfo(g,e.createDiagnosticForNode(p.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,na(p.symbol),Hn(pe)))}return r.resolvedBaseConstructorType=ar}r.resolvedBaseConstructorType=p}return r.resolvedBaseConstructorType}function $1(r){var a=e.emptyArray;if(r.symbol.declarations)for(var u=0,f=r.symbol.declarations;u<f.length;u++){var p=f[u],g=e.getEffectiveImplementsTypeNodes(p);if(g)for(var j=0,pe=g;j<pe.length;j++){var Se=pe[j],Be=ea(Se);pa(Be)||(a===e.emptyArray?a=[Be]:a.push(Be))}}return a}function H1(r,a){nt(r,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Hn(a,void 0,2))}function Jc(r){if(!r.baseTypesResolved){if(ir(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[z2(r)]:r.symbol.flags&96?(r.symbol.flags&32&&G1(r),r.symbol.flags&64&&q2(r)):e.Debug.fail("type must be class or interface"),!oi()&&r.symbol.declarations))for(var a=0,u=r.symbol.declarations;a<u.length;a++){var f=u[a];(f.kind===260||f.kind===261)&&H1(f,r)}r.baseTypesResolved=!0}return r.resolvedBaseTypes}function z2(r){var a=e.sameMap(r.typeParameters,function(u,f){return r.elementFlags[f]&8?Fu(u,ht):u});return zc(zi(a||e.emptyArray),r.readonly)}function G1(r){r.resolvedBaseTypes=e.resolvingEmptyArray;var a=Gr(sd(r));if(!(a.flags&2621441))return r.resolvedBaseTypes=e.emptyArray;var u=qg(r),f,p=a.symbol?mn(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&W2(p))f=cO(u,a.symbol);else if(a.flags&1)f=a;else{var g=Iy(a,u.typeArguments,u);if(!g.length)return nt(u.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=e.emptyArray;f=Ho(g[0])}if(pa(f))return r.resolvedBaseTypes=e.emptyArray;var j=Zi(f);if(!sm(j)){var pe=ac(void 0,f),Se=e.chainDiagnosticMessages(pe,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Hn(j));return ya.add(e.createDiagnosticForNodeFromMessageChain(u.expression,Se)),r.resolvedBaseTypes=e.emptyArray}return r===j||$u(j,r)?(nt(r.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Hn(r,void 0,2)),r.resolvedBaseTypes=e.emptyArray):(r.resolvedBaseTypes===e.resolvingEmptyArray&&(r.members=void 0),r.resolvedBaseTypes=[j])}function W2(r){var a=r.outerTypeParameters;if(a){var u=a.length-1,f=Go(r);return a[u].symbol!==f[u].symbol}return!0}function sm(r){if(r.flags&262144){var a=uu(r);if(a)return sm(a)}return!!(r.flags&67633153&&!Mu(r)||r.flags&2097152&&e.every(r.types,sm))}function q2(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||e.emptyArray,r.symbol.declarations)for(var a=0,u=r.symbol.declarations;a<u.length;a++){var f=u[a];if(f.kind===261&&e.getInterfaceBaseTypeNodes(f))for(var p=0,g=e.getInterfaceBaseTypeNodes(f);p<g.length;p++){var j=g[p],pe=Zi(ea(j));pa(pe)||(sm(pe)?r!==pe&&!$u(pe,r)?r.resolvedBaseTypes===e.emptyArray?r.resolvedBaseTypes=[pe]:r.resolvedBaseTypes.push(pe):H1(f,r):nt(j,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function $2(r){if(!r.declarations)return!0;for(var a=0,u=r.declarations;a<u.length;a++){var f=u[a];if(f.kind===261){if(f.flags&128)return!1;var p=e.getInterfaceBaseTypeNodes(f);if(p)for(var g=0,j=p;g<j.length;g++){var pe=j[g];if(e.isEntityNameExpression(pe.expression)){var Se=ns(pe.expression,788968,!0);if(!Se||!(Se.flags&64)||Ou(Se).thisType)return!1}}}}return!0}function Ou(r){var a=la(r),u=a;if(!a.declaredType){var f=r.flags&32?1:2,p=cw(r,r.valueDeclaration&&lK(r.valueDeclaration));p&&(r=a=p);var g=u.declaredType=a.declaredType=ll(f,r),j=Ny(r),pe=Ap(r);(j||pe||f===1||!$2(r))&&(g.objectFlags|=4,g.typeParameters=e.concatenate(j,pe),g.outerTypeParameters=j,g.localTypeParameters=pe,g.instantiations=new e.Map,g.instantiations.set(Cl(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=ic(r),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function Oy(r){var a,u=la(r);if(!u.declaredType){if(!ir(r,2))return ar;var f=e.Debug.checkDefined((a=r.declarations)===null||a===void 0?void 0:a.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),p=e.isJSDocTypeAlias(f)?f.typeExpression:f.type,g=p?ea(p):ar;if(oi()){var j=Ap(r);j&&(u.typeParameters=j,u.instantiations=new e.Map,u.instantiations.set(Cl(j),g))}else g=ar,f.kind===342?nt(f.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,na(r)):nt(e.isNamedDeclaration(f)&&f.name||f,e.Diagnostics.Type_alias_0_circularly_references_itself,na(r));u.declaredType=g}return u.declaredType}function Ph(r){return e.isStringLiteralLike(r)?!0:r.kind===223?Ph(r.left)&&Ph(r.right):!1}function K1(r){var a=r.initializer;if(!a)return!(r.flags&16777216);switch(a.kind){case 10:case 8:case 14:return!0;case 221:return a.operator===40&&a.operand.kind===8;case 79:return e.nodeIsMissing(a)||!!Zn(r.parent).exports.get(a.escapedText);case 223:return Ph(a);default:return!1}}function Pv(r){var a=la(r);if(a.enumKind!==void 0)return a.enumKind;var u=!1;if(r.declarations)for(var f=0,p=r.declarations;f<p.length;f++){var g=p[f];if(g.kind===263)for(var j=0,pe=g.members;j<pe.length;j++){var Se=pe[j];if(Se.initializer&&e.isStringLiteralLike(Se.initializer))return a.enumKind=1;K1(Se)||(u=!0)}}return a.enumKind=u?0:1}function wv(r){return r.flags&1024&&!(r.flags&1048576)?mn(Bc(r.symbol)):r}function Nv(r){var a=la(r);if(a.declaredType)return a.declaredType;if(Pv(r)===1){Te++;var u=[];if(r.declarations)for(var f=0,p=r.declarations;f<p.length;f++){var g=p[f];if(g.kind===263)for(var j=0,pe=g.members;j<pe.length;j++){var Se=pe[j],Be=FT(Se),fr=zv(ZW(Be!==void 0?Be:0,Te,Zn(Se)));la(Zn(Se)).declaredType=fr,u.push(Eu(fr))}}if(u.length){var sr=zi(u,1,r,void 0);return sr.flags&1048576&&(sr.flags|=1024,sr.symbol=r),a.declaredType=sr}}var gr=xu(32);return gr.symbol=r,a.declaredType=gr}function cm(r){var a=la(r);if(!a.declaredType){var u=Nv(Bc(r));a.declaredType||(a.declaredType=u)}return a.declaredType}function Bd(r){var a=la(r);return a.declaredType||(a.declaredType=ic(r))}function um(r){var a=la(r);return a.declaredType||(a.declaredType=mn(gc(r)))}function mn(r){return $i(r)||ar}function $i(r){if(r.flags&96)return Ou(r);if(r.flags&524288)return Oy(r);if(r.flags&262144)return Bd(r);if(r.flags&384)return Nv(r);if(r.flags&8)return cm(r);if(r.flags&2097152)return um(r)}function Li(r){switch(r.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return Li(r.elementType);case 180:return!r.typeArguments||r.typeArguments.every(Li)}return!1}function sa(r){var a=e.getEffectiveConstraintOfTypeParameter(r);return!a||Li(a)}function Oa(r){var a=e.getEffectiveTypeAnnotationNode(r);return a?Li(a):!e.hasInitializer(r)}function ko(r){var a=e.getEffectiveReturnTypeNode(r),u=e.getEffectiveTypeParameterDeclarations(r);return(r.kind===173||!!a&&Li(a))&&r.parameters.every(Oa)&&u.every(sa)}function Ns(r){if(r.declarations&&r.declarations.length===1){var a=r.declarations[0];if(a)switch(a.kind){case 169:case 168:return Oa(a);case 171:case 170:case 173:case 174:case 175:return ko(a)}}return!1}function mu(r,a,u){for(var f=e.createSymbolTable(),p=0,g=r;p<g.length;p++){var j=g[p];f.set(j.escapedName,u&&Ns(j)?j:OA(j,a))}return f}function gu(r,a){for(var u=0,f=a;u<f.length;u++){var p=f[u];!r.has(p.escapedName)&&!xl(p)&&r.set(p.escapedName,p)}}function xl(r){return!!r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(r.valueDeclaration)&&e.isStatic(r.valueDeclaration)}function hu(r){if(!r.declaredProperties){var a=r.symbol,u=Pp(a);r.declaredProperties=Dp(u),r.declaredCallSignatures=e.emptyArray,r.declaredConstructSignatures=e.emptyArray,r.declaredIndexInfos=e.emptyArray,r.declaredCallSignatures=eg(u.get("__call")),r.declaredConstructSignatures=eg(u.get("__new")),r.declaredIndexInfos=iO(a)}return r}function Kc(r){return!!(r.flags&8576)}function h_(r){if(!e.isComputedPropertyName(r)&&!e.isElementAccessExpression(r))return!1;var a=e.isComputedPropertyName(r)?r.expression:r.argumentExpression;return e.isEntityNameExpression(a)&&Kc(e.isComputedPropertyName(r)?$d(r):Gs(a))}function jd(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function v_(r){var a=e.getNameOfDeclaration(r);return!!a&&h_(a)}function Wf(r){return!e.hasDynamicName(r)||v_(r)}function My(r){return e.isDynamicName(r)&&!h_(r)}function Jl(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):e.Debug.fail()}function Fk(r,a,u){e.Debug.assert(!!(e.getCheckFlags(r)&4096),"Expected a late-bound symbol."),r.flags|=u,la(a.symbol).lateSymbol=r,r.declarations?a.symbol.isReplaceableByMethod||r.declarations.push(a):r.declarations=[a],u&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==a.kind)&&(r.valueDeclaration=a)}function H2(r,a,u,f){e.Debug.assert(!!f.symbol,"The member is expected to have a symbol.");var p=Mi(f);if(!p.resolvedSymbol){p.resolvedSymbol=f.symbol;var g=e.isBinaryExpression(f)?f.left:f.name,j=e.isElementAccessExpression(g)?Gs(g.argumentExpression):$d(g);if(Kc(j)){var pe=Jl(j),Se=f.symbol.flags,Be=u.get(pe);Be||u.set(pe,Be=Lo(0,pe,4096));var fr=a&&a.get(pe);if(Be.flags&Mm(Se)||fr){var sr=fr?e.concatenate(fr.declarations,Be.declarations):Be.declarations,gr=!(j.flags&8192)&&e.unescapeLeadingUnderscores(pe)||e.declarationNameToString(g);e.forEach(sr,function(_r){return nt(e.getNameOfDeclaration(_r)||_r,e.Diagnostics.Property_0_was_also_declared_here,gr)}),nt(g||f,e.Diagnostics.Duplicate_property_0,gr),Be=Lo(0,pe,4096)}return Be.nameType=j,Fk(Be,f,Se),Be.parent?e.Debug.assert(Be.parent===r,"Existing symbol parent should match new one"):Be.parent=r,p.resolvedSymbol=Be}}return p.resolvedSymbol}function Fy(r,a){var u=la(r);if(!u[a]){var f=a==="resolvedExports",p=f?r.flags&1536?qm(r):r.exports:r.members;u[a]=p||rr;for(var g=e.createSymbolTable(),j=0,pe=r.declarations||e.emptyArray;j<pe.length;j++){var Se=pe[j],Be=e.getMembersOfDeclaration(Se);if(Be)for(var fr=0,sr=Be;fr<sr.length;fr++){var gr=sr[fr];f===e.hasStaticModifier(gr)&&v_(gr)&&H2(r,p,g,gr)}}var _r=r.assignmentDeclarationMembers;if(_r)for(var Kr=e.arrayFrom(_r.values()),mt=0,Vt=Kr;mt<Vt.length;mt++){var gr=Vt[mt],wt=e.getAssignmentDeclarationKind(gr),rn=wt===3||e.isBinaryExpression(gr)&&Qx(gr,wt)||wt===9||wt===6;f===!rn&&v_(gr)&&H2(r,p,g,gr)}u[a]=dp(p,g)||rr}return u[a]}function Pp(r){return r.flags&6256?Fy(r,"resolvedMembers"):r.members||rr}function wh(r){if(r.flags&106500&&r.escapedName==="__computed"){var a=la(r);if(!a.lateSymbol&&e.some(r.declarations,v_)){var u=mo(r.parent);e.some(r.declarations,e.hasStaticModifier)?Dc(u):Pp(u)}return a.lateSymbol||(a.lateSymbol=r)}return r}function Hu(r,a,u){if(e.getObjectFlags(r)&4){var f=r.target,p=Go(r);if(e.length(f.typeParameters)===e.length(p)){var g=b_(f,e.concatenate(p,[a||f.thisType]));return u?Gr(g):g}}else if(r.flags&2097152){var j=e.sameMap(r.types,function(pe){return Hu(pe,a,u)});return j!==r.types?ho(j):r}return u?Gr(r):r}function zD(r,a,u,f){var p,g,j,pe,Se;e.rangeEquals(u,f,0,u.length)?(g=a.symbol?Pp(a.symbol):e.createSymbolTable(a.declaredProperties),j=a.declaredCallSignatures,pe=a.declaredConstructSignatures,Se=a.declaredIndexInfos):(p=Cu(u,f),g=mu(a.declaredProperties,p,u.length===1),j=bx(a.declaredCallSignatures,p),pe=bx(a.declaredConstructSignatures,p),Se=a8(a.declaredIndexInfos,p));var Be=Jc(a);if(Be.length){a.symbol&&g===Pp(a.symbol)&&(g=e.createSymbolTable(a.declaredProperties)),Vu(r,g,j,pe,Se);for(var fr=e.lastOrUndefined(f),sr=0,gr=Be;sr<gr.length;sr++){var _r=gr[sr],Kr=fr?Hu(Sa(_r,p),fr):_r;gu(g,Ro(Kr)),j=e.concatenate(j,La(Kr,0)),pe=e.concatenate(pe,La(Kr,1));var mt=Kr!==Ie?_c(Kr):[Hf(Ft,Ie,!1)];Se=e.concatenate(Se,e.filter(mt,function(Vt){return!pm(Se,Vt.keyType)}))}}Vu(r,g,j,pe,Se)}function Lk(r){zD(r,hu(r),e.emptyArray,e.emptyArray)}function Rk(r){var a=hu(r.target),u=e.concatenate(a.typeParameters,[a.thisType]),f=Go(r),p=f.length===u.length?f:e.concatenate(f,[r]);zD(r,a,u,p)}function Cf(r,a,u,f,p,g,j,pe){var Se=new Q(Fe,pe);return Se.declaration=r,Se.typeParameters=a,Se.parameters=f,Se.thisParameter=u,Se.resolvedReturnType=p,Se.resolvedTypePredicate=g,Se.minArgumentCount=j,Se.resolvedMinArgumentCount=void 0,Se.target=void 0,Se.mapper=void 0,Se.compositeSignatures=void 0,Se.compositeKind=void 0,Se}function Iv(r){var a=Cf(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return a.target=r.target,a.mapper=r.mapper,a.compositeSignatures=r.compositeSignatures,a.compositeKind=r.compositeKind,a}function WD(r,a){var u=Iv(r);return u.compositeSignatures=a,u.compositeKind=1048576,u.target=void 0,u.mapper=void 0,u}function Q1(r,a){if((r.flags&24)===a)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});var u=a===8?"inner":"outer";return r.optionalCallSignatureCache[u]||(r.optionalCallSignatureCache[u]=Bk(r,a))}function Bk(r,a){e.Debug.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var u=Iv(r);return u.flags|=a,u}function G2(r,a){if(R(r)){var u=r.parameters.length-1,f=_n(r.parameters[u]);if(po(f))return[p(f,u)];if(!a&&f.flags&1048576&&e.every(f.types,po))return e.map(f.types,function(g){return p(g,u)})}return[r.parameters];function p(g,j){var pe=Go(g),Se=g.target.labeledElementDeclarations,Be=e.map(pe,function(fr,sr){var gr=!!Se&&_T(Se[sr]),_r=gr||Zy(r,j+sr,g),Kr=g.target.elementFlags[sr],mt=Kr&12?32768:Kr&2?16384:0,Vt=Lo(1,_r,mt);return Vt.type=Kr&4?zc(fr):fr,Vt});return e.concatenate(r.parameters.slice(0,j),Be)}}function qD(r){var a=sd(r),u=La(a,1),f=e.getClassLikeDeclarationOfSymbol(r.symbol),p=!!f&&e.hasSyntacticModifier(f,256);if(u.length===0)return[Cf(void 0,r.localTypeParameters,void 0,e.emptyArray,r,void 0,0,p?4:0)];for(var g=qg(r),j=e.isInJSFile(g),pe=lx(g),Se=e.length(pe),Be=[],fr=0,sr=u;fr<sr.length;fr++){var gr=sr[fr],_r=af(gr.typeParameters),Kr=e.length(gr.typeParameters);if(j||Se>=_r&&Se<=Kr){var mt=Kr?ix(gr,dm(pe,gr.typeParameters,_r,j)):Iv(gr);mt.typeParameters=r.localTypeParameters,mt.resolvedReturnType=r,mt.flags=p?mt.flags|4:mt.flags&-5,Be.push(mt)}}return Be}function K2(r,a,u,f,p){for(var g=0,j=r;g<j.length;g++){var pe=j[g];if(bb(pe,a,u,f,p,u?yq:u0))return pe}}function jk(r,a,u){if(a.typeParameters){if(u>0)return;for(var f=1;f<r.length;f++)if(!K2(r[f],a,!1,!1,!1))return;return[a]}for(var p,f=0;f<r.length;f++){var g=f===u?a:K2(r[f],a,!0,!1,!0);if(!g)return;p=e.appendIfUnique(p,g)}return p}function Q2(r){for(var a,u,f=0;f<r.length;f++){if(r[f].length===0)return e.emptyArray;r[f].length>1&&(u=u===void 0?f:-1);for(var p=0,g=r[f];p<g.length;p++){var j=g[p];if(!a||!K2(a,j,!1,!1,!0)){var pe=jk(r,j,f);if(pe){var Se=j;if(pe.length>1){var Be=j.thisParameter,fr=e.forEach(pe,function(on){return on.thisParameter});if(fr){var sr=ho(e.mapDefined(pe,function(on){return on.thisParameter&&_n(on.thisParameter)}));Be=zh(fr,sr)}Se=WD(j,pe),Se.thisParameter=Be}(a||(a=[])).push(Se)}}}}if(!e.length(a)&&u!==-1){for(var gr=r[u!==void 0?u:0],_r=gr.slice(),Kr=function(on){if(on!==gr){var Un=on[0];if(e.Debug.assert(!!Un,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_r=Un.typeParameters&&e.some(_r,function(Gn){return!!Gn.typeParameters&&!$D(Un.typeParameters,Gn.typeParameters)})?void 0:e.map(_r,function(Gn){return X2(Gn,Un)}),!_r)return"break"}},mt=0,Vt=r;mt<Vt.length;mt++){var wt=Vt[mt],rn=Kr(wt);if(rn==="break")break}a=_r}return a||e.emptyArray}function $D(r,a){if(e.length(r)!==e.length(a))return!1;if(!r||!a)return!0;for(var u=Cu(a,r),f=0;f<r.length;f++){var p=r[f],g=a[f];if(p!==g&&!ud(Uy(p)||ur,Sa(Uy(g)||ur,u)))return!1}return!0}function HD(r,a,u){if(!r||!a)return r||a;var f=ho([_n(r),Sa(_n(a),u)]);return zh(r,f)}function Jk(r,a,u){for(var f=Ku(r),p=Ku(a),g=f>=p?r:a,j=g===r?a:r,pe=g===r?f:p,Se=ep(r)||ep(a),Be=Se&&!ep(g),fr=new Array(pe+(Be?1:0)),sr=0;sr<pe;sr++){var gr=th(g,sr);g===a&&(gr=Sa(gr,u));var _r=th(j,sr)||ur;j===a&&(_r=Sa(_r,u));var Kr=ho([gr,_r]),mt=Se&&!Be&&sr===pe-1,Vt=sr>=Zf(g)&&sr>=Zf(j),wt=sr>=f?void 0:Zy(r,sr),rn=sr>=p?void 0:Zy(a,sr),on=wt===rn?wt:wt?rn?void 0:wt:rn,Un=Lo(1|(Vt&&!mt?16777216:0),on||"arg".concat(sr));Un.type=mt?zc(Kr):Kr,fr[sr]=Un}if(Be){var Gn=Lo(1,"args");Gn.type=zc(cf(j,pe)),j===a&&(Gn.type=Sa(Gn.type,u)),fr[pe]=Gn}return fr}function X2(r,a){var u=r.typeParameters||a.typeParameters,f;r.typeParameters&&a.typeParameters&&(f=Cu(a.typeParameters,r.typeParameters));var p=r.declaration,g=Jk(r,a,f),j=HD(r.thisParameter,a.thisParameter,f),pe=Math.max(r.minArgumentCount,a.minArgumentCount),Se=Cf(p,u,j,g,void 0,void 0,pe,(r.flags|a.flags)&39);return Se.compositeKind=1048576,Se.compositeSignatures=e.concatenate(r.compositeKind!==2097152&&r.compositeSignatures||[r],[a]),f&&(Se.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?Sm(r.mapper,f):f),Se}function Ov(r){var a=_c(r[0]);if(a){for(var u=[],f=function(pe){var Se=pe.keyType;e.every(r,function(Be){return!!nf(Be,Se)})&&u.push(Hf(Se,zi(e.map(r,function(Be){return $f(Be,Se)})),e.some(r,function(Be){return nf(Be,Se).isReadonly})))},p=0,g=a;p<g.length;p++){var j=g[p];f(j)}return u}return e.emptyArray}function GD(r){var a=Q2(e.map(r.types,function(p){return p===ln?[qs]:La(p,0)})),u=Q2(e.map(r.types,function(p){return La(p,1)})),f=Ov(r.types);Vu(r,rr,a,u,f)}function Mv(r,a){return r?a?ho([r,a]):r:a}function KD(r){var a=e.countWhere(r,function(p){return La(p,1).length>0}),u=e.map(r,kv);if(a>0&&a===e.countWhere(u,function(p){return p})){var f=u.indexOf(!0);u[f]=!1}return u}function QD(r,a,u,f){for(var p=[],g=0;g<a.length;g++)g===f?p.push(r):u[g]&&p.push(Ho(La(a[g],1)[0]));return ho(p)}function Uk(r){for(var a,u,f,p=r.types,g=KD(p),j=e.countWhere(g,function(Be){return Be}),pe=function(Be){var fr=r.types[Be];if(!g[Be]){var sr=La(fr,1);sr.length&&j>0&&(sr=e.map(sr,function(gr){var _r=Iv(gr);return _r.resolvedReturnType=QD(Ho(gr),p,g,Be),_r})),u=Nh(u,sr)}a=Nh(a,La(fr,0)),f=e.reduceLeft(_c(fr),function(gr,_r){return Y2(gr,_r,!1)},f)},Se=0;Se<p.length;Se++)pe(Se);Vu(r,rr,a||e.emptyArray,u||e.emptyArray,f||e.emptyArray)}function Nh(r,a){for(var u=function(j){(!r||e.every(r,function(pe){return!bb(pe,j,!1,!1,!1,u0)}))&&(r=e.append(r,j))},f=0,p=a;f<p.length;f++){var g=p[f];u(g)}return r}function Y2(r,a,u){if(r)for(var f=0;f<r.length;f++){var p=r[f];if(p.keyType===a.keyType)return r[f]=Hf(p.keyType,u?zi([p.type,a.type]):ho([p.type,a.type]),u?p.isReadonly||a.isReadonly:p.isReadonly&&a.isReadonly),r}return e.append(r,a)}function Vk(r){if(r.target){Vu(r,rr,e.emptyArray,e.emptyArray,e.emptyArray);var a=mu(wp(r.target),r.mapper,!1),u=bx(La(r.target,0),r.mapper),f=bx(La(r.target,1),r.mapper),p=a8(_c(r.target),r.mapper);Vu(r,a,u,f,p);return}var g=mo(r.symbol);if(g.flags&2048){Vu(r,rr,e.emptyArray,e.emptyArray,e.emptyArray);var j=Pp(g),u=eg(j.get("__call")),f=eg(j.get("__new")),pe=iO(g);Vu(r,j,u,f,pe);return}var Se=rr,Be;if(g.exports&&(Se=Dc(g),g===Fr)){var fr=new e.Map;Se.forEach(function(Vt){var wt;!(Vt.flags&418)&&!(Vt.flags&512&&(!((wt=Vt.declarations)===null||wt===void 0)&&wt.length)&&e.every(Vt.declarations,e.isAmbientModule))&&fr.set(Vt.escapedName,Vt)}),Se=fr}var sr;if(Vu(r,Se,e.emptyArray,e.emptyArray,e.emptyArray),g.flags&32){var gr=Ou(g),_r=sd(gr);_r.flags&11272192?(Se=e.createSymbolTable(p_(Se)),gu(Se,Ro(_r))):_r===Ie&&(sr=Hf(Ft,Ie,!1))}var Kr=iA(Se);if(Kr?Be=aA(Kr):(sr&&(Be=e.append(Be,sr)),g.flags&384&&(mn(g).flags&32||e.some(r.properties,function(Vt){return!!(_n(Vt).flags&296)}))&&(Be=e.append(Be,Ko))),Vu(r,Se,e.emptyArray,e.emptyArray,Be||e.emptyArray),g.flags&8208&&(r.callSignatures=eg(g)),g.flags&32){var mt=Ou(g),f=g.members?eg(g.members.get("__constructor")):e.emptyArray;g.flags&16&&(f=e.addRange(f.slice(),e.mapDefined(r.callSignatures,function(wt){return wf(wt.declaration)?Cf(wt.declaration,wt.typeParameters,wt.thisParameter,wt.parameters,mt,void 0,wt.minArgumentCount,wt.flags&39):void 0}))),f.length||(f=qD(mt)),r.constructSignatures=f}}function zk(r,a,u){return Sa(r,Cu([a.indexType,a.objectType],[Qf(0),Gf([u])]))}function Wk(r){for(var a=nf(r.source,Ft),u=tf(r.mappedType),f=!(u&1),p=u&4?0:16777216,g=a?[Hf(Ft,Jx(a.type,r.mappedType,r.constraintType),f&&a.isReadonly)]:e.emptyArray,j=e.createSymbolTable(),pe=0,Se=Ro(r.source);pe<Se.length;pe++){var Be=Se[pe],fr=8192|(f&&uf(Be)?8:0),sr=Lo(4|Be.flags&p,Be.escapedName,fr);if(sr.declarations=Be.declarations,sr.nameType=la(Be).nameType,sr.propertyType=_n(Be),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){var gr=r.constraintType.type.objectType,_r=zk(r.mappedType,r.constraintType.type,gr);sr.mappedType=_r,sr.constraintType=Kf(gr)}else sr.mappedType=r.mappedType,sr.constraintType=r.constraintType;j.set(Be.escapedName,sr)}Vu(r,j,e.emptyArray,e.emptyArray,g)}function Ih(r){if(r.flags&4194304){var a=Gr(r.type);return $y(a)?wO(a):Kf(a)}if(r.flags&16777216){if(r.root.isDistributive){var u=r.checkType,f=Ih(u);if(f!==u)return LA(r,Jh(r.root.checkType,f,r.mapper))}return r}if(r.flags&1048576)return Ts(r,Ih);if(r.flags&2097152){var p=r.types;return p.length===2&&p[0].flags&76&&p[1]===ra?r:ho(e.sameMap(r.types,Ih))}return r}function Z2(r){return e.getCheckFlags(r)&4096}function eb(r,a,u,f){for(var p=0,g=Ro(r);p<g.length;p++){var j=g[p];f(zy(j,a))}if(r.flags&1)f(Ft);else for(var pe=0,Se=_c(r);pe<Se.length;pe++){var Be=Se[pe];(!u||Be.keyType.flags&134217732)&&f(Be.keyType)}}function qk(r){var a=e.createSymbolTable(),u;Vu(r,rr,e.emptyArray,e.emptyArray,e.emptyArray);var f=Tl(r),p=Ul(r),g=cd(r.target||r),j=qf(r.target||r),pe=Gr(Oh(r)),Se=tf(r),Be=Oe?128:8576;Fv(r)?eb(pe,Be,Oe,fr):Zg(Ih(p),fr),Vu(r,a,e.emptyArray,e.emptyArray,u||e.emptyArray);function fr(gr){var _r=g?Sa(g,c0(r.mapper,f,gr)):gr;Zg(_r,function(Kr){return sr(gr,Kr)})}function sr(gr,_r){if(Kc(_r)){var Kr=Jl(_r),mt=a.get(Kr);if(mt)mt.nameType=zi([mt.nameType,_r]),mt.keyType=zi([mt.keyType,gr]);else{var Vt=Kc(gr)?Fa(pe,Jl(gr)):void 0,wt=!!(Se&4||!(Se&8)&&Vt&&Vt.flags&16777216),rn=!!(Se&1||!(Se&2)&&Vt&&uf(Vt)),on=ue&&!wt&&Vt&&Vt.flags&16777216,Un=Vt?Z2(Vt):0,Gn=Lo(4|(wt?16777216:0),Kr,Un|262144|(rn?8:0)|(on?524288:0));Gn.mappedType=r,Gn.nameType=_r,Gn.keyType=gr,Vt&&(Gn.syntheticOrigin=Vt,Gn.declarations=g?void 0:Vt.declarations),a.set(Kr,Gn)}}else if(ax(_r)||_r.flags&33){var Ti=_r.flags&5?Ft:_r.flags&40?ht:_r,li=Sa(j,c0(r.mapper,f,gr)),Ja=Hf(Ti,li,!!(Se&1));u=Y2(u,Ja,!0)}}}function $k(r){if(!r.type){var a=r.mappedType;if(!ir(r,0))return a.containsError=!0,ar;var u=qf(a.target||a),f=c0(a.mapper,Tl(a),r.keyType),p=Sa(u,f),g=ue&&r.flags&16777216&&!ks(p,49152)?Wd(p,!0):r.checkFlags&524288?rP(p):p;oi()||(nt(me,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,na(r),Hn(a)),g=ar),r.type=g}return r.type}function Tl(r){return r.typeParameter||(r.typeParameter=Bd(Zn(r.declaration.typeParameter)))}function Ul(r){return r.constraintType||(r.constraintType=Uc(Tl(r))||ar)}function cd(r){return r.declaration.nameType?r.nameType||(r.nameType=Sa(ea(r.declaration.nameType),r.mapper)):void 0}function qf(r){return r.templateType||(r.templateType=r.declaration.type?Sa(dl(ea(r.declaration.type),!0,!!(tf(r)&4)),r.mapper):ar)}function X1(r){return e.getEffectiveConstraintOfTypeParameter(r.declaration.typeParameter)}function Fv(r){var a=X1(r);return a.kind===195&&a.operator===141}function Oh(r){if(!r.modifiersType)if(Fv(r))r.modifiersType=Sa(ea(X1(r).type),r.mapper);else{var a=TA(r.declaration),u=Ul(a),f=u&&u.flags&262144?Uc(u):u;r.modifiersType=f&&f.flags&4194304?Sa(f.type,r.mapper):ur}return r.modifiersType}function tf(r){var a=r.declaration;return(a.readonlyToken?a.readonlyToken.kind===40?2:1:0)|(a.questionToken?a.questionToken.kind===40?8:4:0)}function XD(r){var a=tf(r);return a&8?-1:a&4?1:0}function rb(r){var a=XD(r),u=Oh(r);return a||(Mu(u)?XD(u):0)}function Hk(r){return!!(e.getObjectFlags(r)&32&&tf(r)&4)}function Mu(r){if(e.getObjectFlags(r)&32){var a=Ul(r);if(mm(a))return!0;var u=cd(r);if(u&&mm(Sa(u,og(Tl(r),a))))return!0}return!1}function El(r){return r.members||(r.flags&524288?r.objectFlags&4?Rk(r):r.objectFlags&3?Lk(r):r.objectFlags&1024?Wk(r):r.objectFlags&16?Vk(r):r.objectFlags&32?qk(r):e.Debug.fail("Unhandled object type "+e.Debug.formatObjectFlags(r.objectFlags)):r.flags&1048576?GD(r):r.flags&2097152?Uk(r):e.Debug.fail("Unhandled type "+e.Debug.formatTypeFlags(r.flags))),r}function wp(r){return r.flags&524288?El(r).properties:e.emptyArray}function Jd(r,a){if(r.flags&524288){var u=El(r),f=u.members.get(a);if(f&&Sp(f))return f}}function Lv(r){if(!r.resolvedProperties){for(var a=e.createSymbolTable(),u=0,f=r.types;u<f.length;u++){for(var p=f[u],g=0,j=Ro(p);g<j.length;g++){var pe=j[g];if(!a.has(pe.escapedName)){var Se=ja(r,pe.escapedName);Se&&a.set(pe.escapedName,Se)}}if(r.flags&1048576&&_c(p).length===0)break}r.resolvedProperties=Dp(a)}return r.resolvedProperties}function Ro(r){return r=Kt(r),r.flags&3145728?Lv(r):wp(r)}function Gk(r,a){r=Kt(r),r.flags&3670016&&El(r).members.forEach(function(u,f){X_(u,f)&&a(u,f)})}function tb(r,a){var u=a.properties;return u.some(function(f){var p=f.name&&D_(f.name),g=p&&Kc(p)?Jl(p):void 0,j=g===void 0?void 0:di(r,g);return!!j&&$v(j)&&!So(Hh(f),j)})}function Kk(r){var a=zi(r);if(!(a.flags&1048576))return Uw(a);for(var u=e.createSymbolTable(),f=0,p=r;f<p.length;f++)for(var g=p[f],j=0,pe=Uw(g);j<pe.length;j++){var Se=pe[j].escapedName;if(!u.has(Se)){var Be=ti(a,Se);Be&&u.set(Se,Be)}}return e.arrayFrom(u.values())}function lm(r){return r.flags&262144?Uc(r):r.flags&8388608?Qk(r):r.flags&16777216?rx(r):uu(r)}function Uc(r){return Mh(r)?Uy(r):void 0}function Qk(r){return Mh(r)?YD(r):void 0}function nb(r){var a=Vd(r,!1);return a!==r?a:lm(r)}function YD(r){if(Tr(r))return mx(r.objectType,r.indexType);var a=nb(r.indexType);if(a&&a!==r.indexType){var u=gm(r.objectType,a,r.accessFlags);if(u)return u}var f=nb(r.objectType);if(f&&f!==r.objectType)return gm(f,r.indexType,r.accessFlags)}function ib(r){if(!r.resolvedDefaultConstraint){var a=HW(r),u=ym(r);r.resolvedDefaultConstraint=fa(a)?u:fa(u)?a:zi([a,u])}return r.resolvedDefaultConstraint}function ZD(r){if(r.root.isDistributive&&r.restrictiveInstantiation!==r){var a=Vd(r.checkType,!1),u=a===r.checkType?lm(a):a;if(u&&u!==r.checkType){var f=LA(r,Jh(r.root.checkType,u,r.mapper));if(!(f.flags&131072))return f}}}function ex(r){return ZD(r)||ib(r)}function rx(r){return Mh(r)?ex(r):void 0}function Xk(r,a){for(var u,f=!1,p=0,g=r;p<g.length;p++){var j=g[p];if(j.flags&465829888){for(var pe=lm(j);pe&&pe.flags&21233664;)pe=lm(pe);pe&&(u=e.append(u,pe),a&&(u=e.append(u,j)))}else(j.flags&469892092||sg(j))&&(f=!0)}if(u&&(a||f)){if(f)for(var Se=0,Be=r;Se<Be.length;Se++){var j=Be[Se];(j.flags&469892092||sg(j))&&(u=e.append(u,j))}return hb(ho(u),!1)}}function uu(r){if(r.flags&464781312){var a=ab(r);return a!==Do&&a!==Ka?a:void 0}return r.flags&4194304?gt:void 0}function y_(r){return uu(r)||r}function Mh(r){return ab(r)!==Ka}function ab(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;var a=[];return r.resolvedBaseConstraint=Hu(u(r),r);function u(g){if(!g.immediateBaseConstraint){if(!ir(g,4))return Ka;var j=void 0,pe=p0(g);if((a.length<10||a.length<50&&!e.contains(a,pe))&&(a.push(pe),j=p(Vd(g,!1)),a.pop()),!oi()){if(g.flags&262144){var Se=oA(g);if(Se){var Be=nt(Se,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Hn(g));me&&!e.isNodeDescendantOf(Se,me)&&!e.isNodeDescendantOf(me,Se)&&e.addRelatedInfo(Be,e.createDiagnosticForNode(me,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}j=Ka}g.immediateBaseConstraint=j||Do}return g.immediateBaseConstraint}function f(g){var j=u(g);return j!==Do&&j!==Ka?j:void 0}function p(g){if(g.flags&262144){var j=Uy(g);return g.isThisType||!j?j:f(j)}if(g.flags&3145728){for(var pe=g.types,Se=[],Be=!1,fr=0,sr=pe;fr<sr.length;fr++){var gr=sr[fr],_r=f(gr);_r?(_r!==gr&&(Be=!0),Se.push(_r)):Be=!0}return Be?g.flags&1048576&&Se.length===pe.length?zi(Se):g.flags&2097152&&Se.length?ho(Se):void 0:g}if(g.flags&4194304)return gt;if(g.flags&134217728){var pe=g.types,Kr=e.mapDefined(pe,f);return Kr.length===pe.length?Gg(g.texts,Kr):Ft}if(g.flags&268435456){var j=f(g.type);return j&&j!==g.type?Rh(g.symbol,j):Ft}if(g.flags&8388608){if(Tr(g))return f(mx(g.objectType,g.indexType));var mt=f(g.objectType),Vt=f(g.indexType),wt=mt&&Vt&&gm(mt,Vt,g.accessFlags);return wt&&f(wt)}if(g.flags&16777216){var j=ex(g);return j&&f(j)}return g.flags&33554432?f(uA(g)):g}}function Yk(r){return r.resolvedApparentType||(r.resolvedApparentType=Hu(r,r,!0))}function ob(r){if(r.default)r.default===rs&&(r.default=Ka);else if(r.target){var a=ob(r.target);r.default=a?Sa(a,r.mapper):Do}else{r.default=rs;var u=r.symbol&&e.forEach(r.symbol.declarations,function(p){return e.isTypeParameterDeclaration(p)&&p.default}),f=u?ea(u):Do;r.default===rs&&(r.default=f)}return r.default}function fm(r){var a=ob(r);return a!==Do&&a!==Ka?a:void 0}function tx(r){return ob(r)!==Ka}function nx(r){return!!(r.symbol&&e.forEach(r.symbol.declarations,function(a){return e.isTypeParameterDeclaration(a)&&a.default}))}function _(r){return r.resolvedApparentType||(r.resolvedApparentType=ve(r))}function ve(r){var a=xx(r);if(a&&!r.declaration.nameType){var u=Uc(a);if(u&&Qg(u))return Sa(r,Jh(a,u,r.mapper))}return r}function Tr(r){var a;return!!(r.flags&8388608&&e.getObjectFlags(a=r.objectType)&32&&!Mu(a)&&mm(r.indexType)&&!(tf(a)&8)&&!a.declaration.nameType)}function Gr(r){var a=r.flags&465829888?uu(r)||ur:r;return e.getObjectFlags(a)&32?_(a):a.flags&2097152?Yk(a):a.flags&402653316?va:a.flags&296?Ia:a.flags&2112?oW():a.flags&528?$a:a.flags&12288?SO():a.flags&67108864?fn:a.flags&4194304?gt:a.flags&2&&!ue?fn:a}function Kt(r){return Zi(Gr(Zi(r)))}function ti(r,a,u){for(var f,p,g,j,pe,Se=r.flags&1048576,Be,fr=4,sr=Se?0:8,gr=!1,_r=0,Kr=r.types;_r<Kr.length;_r++){var mt=Kr[_r],Vt=Gr(mt);if(!(pa(Vt)||Vt.flags&131072)){var wt=Fa(Vt,a,u),rn=wt?e.getDeclarationModifierFlagsFromSymbol(wt):0;if(wt){if(wt.flags&106500&&(Be??(Be=Se?0:16777216),Se?Be|=wt.flags&16777216:Be&=wt.flags),!g)g=wt;else if(wt!==g){var on=(iy(wt)||wt)===(iy(g)||g);if(on&&KA(g,wt,function(yi,Bi){return yi===Bi?-1:0})===-1)gr=!!g.parent&&!!e.length(Ap(g.parent));else{j||(j=new e.Map,j.set(ne(g),g));var Un=ne(wt);j.has(Un)||j.set(Un,wt)}}Se&&uf(wt)?sr|=8:!Se&&!uf(wt)&&(sr&=-9),sr|=(rn&24?0:256)|(rn&16?512:0)|(rn&8?1024:0)|(rn&32?2048:0),WP(wt)||(fr=2)}else if(Se){var Gn=!jd(a)&&$g(Vt,a);Gn?(sr|=32|(Gn.isReadonly?8:0),pe=e.append(pe,po(Vt)?d0(Vt)||Ar:Gn.type)):lg(Vt)&&!(e.getObjectFlags(Vt)&2097152)?(sr|=32,pe=e.append(pe,Ar)):sr|=16}}}if(!(!g||Se&&(j||sr&48)&&sr&1536&&!(j&&Vi(e.arrayFrom(j.values()))))){if(!j&&!(sr&16)&&!pe)if(gr){var Ti=zh(g,g.type);return Ti.parent=(p=(f=g.valueDeclaration)===null||f===void 0?void 0:f.symbol)===null||p===void 0?void 0:p.parent,Ti.containingType=r,Ti.mapper=g.mapper,Ti}else return g;for(var li=j?e.arrayFrom(j.values()):[g],Ja,Ai,Ua,Wa=[],Ga,Bo,jo=!1,No=0,Ca=li;No<Ca.length;No++){var wt=Ca[No];Bo?wt.valueDeclaration&&wt.valueDeclaration!==Bo&&(jo=!0):Bo=wt.valueDeclaration,Ja=e.addRange(Ja,wt.declarations);var Vt=_n(wt);Ai||(Ai=Vt,Ua=la(wt).nameType);var hn=hi(wt);Ga||hn!==Vt?Ga=e.append(Ga||Wa.slice(),hn):Vt!==Ai&&(sr|=64),($v(Vt)||Uv(Vt)||Vt===xn)&&(sr|=128),Vt.flags&131072&&Vt!==xn&&(sr|=131072),Wa.push(Vt)}e.addRange(Wa,pe);var qt=Lo(4|(Be??0),a,fr|sr);return qt.containingType=r,!jo&&Bo&&(qt.valueDeclaration=Bo,Bo.symbol.parent&&(qt.parent=Bo.symbol.parent)),qt.declarations=Ja,qt.nameType=Ua,Wa.length>2?(qt.checkFlags|=65536,qt.deferralParent=r,qt.deferralConstituents=Wa,qt.deferralWriteConstituents=Ga):(qt.type=Se?zi(Wa):ho(Wa),Ga&&(qt.writeType=Se?zi(Ga):ho(Ga))),qt}}function fi(r,a,u){var f,p,g=!((f=r.propertyCacheWithoutObjectFunctionPropertyAugment)===null||f===void 0)&&f.get(a)||!u?(p=r.propertyCache)===null||p===void 0?void 0:p.get(a):void 0;if(!g&&(g=ti(r,a,u),g)){var j=u?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):r.propertyCache||(r.propertyCache=e.createSymbolTable());j.set(a,g)}return g}function Vi(r){for(var a,u=function(pe){if(!pe.declarations)return{value:void 0};if(!a)return a=new e.Set(pe.declarations),"continue";if(a.forEach(function(Se){e.contains(pe.declarations,Se)||a.delete(Se)}),a.size===0)return{value:void 0}},f=0,p=r;f<p.length;f++){var g=p[f],j=u(g);if(typeof j=="object")return j.value}return a}function ja(r,a,u){var f=fi(r,a,u);return f&&!(e.getCheckFlags(f)&16)?f:void 0}function Zi(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=Zo(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(e.some(Lv(r),Is)?33554432:0)),r.objectFlags&33554432?Xe:r):r}function Zo(r){var a=e.sameMap(r.types,Zi);if(a===r.types)return r;var u=zi(a);return u.flags&1048576&&(u.resolvedReducedType=u),u}function Is(r){return Qc(r)||Vc(r)}function Qc(r){return!(r.flags&16777216)&&(e.getCheckFlags(r)&131264)===192&&!!(_n(r).flags&131072)}function Vc(r){return!r.valueDeclaration&&!!(e.getCheckFlags(r)&1024)}function ac(r,a){if(a.flags&2097152&&e.getObjectFlags(a)&33554432){var u=e.find(Lv(a),Qc);if(u)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Hn(a,void 0,536870912),na(u));var f=e.find(Lv(a),Vc);if(f)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Hn(a,void 0,536870912),na(f))}return r}function Fa(r,a,u,f){if(r=Kt(r),r.flags&524288){var p=El(r),g=p.members.get(a);if(g&&Sp(g,f))return g;if(u)return;var j=p===Ha?ln:p.callSignatures.length?kn:p.constructSignatures.length?Cn:void 0;if(j){var pe=Jd(j,a);if(pe)return pe}return Jd(Ot,a)}if(r.flags&3145728)return ja(r,a,u)}function Ms(r,a){if(r.flags&3670016){var u=El(r);return a===0?u.callSignatures:u.constructSignatures}return e.emptyArray}function La(r,a){return Ms(Kt(r),a)}function pm(r,a){return e.find(r,function(u){return u.keyType===a})}function Fh(r,a){for(var u,f,p,g=0,j=r;g<j.length;g++){var pe=j[g];pe.keyType===Ft?u=pe:kf(a,pe.keyType)&&(f?(p||(p=[f])).push(pe):f=pe)}return p?Hf(ur,ho(e.map(p,function(Se){return Se.type})),e.reduceLeft(p,function(Se,Be){return Se&&Be.isReadonly},!0)):f||(u&&kf(a,Ft)?u:void 0)}function kf(r,a){return So(r,a)||a===Ft&&So(r,ht)||a===ht&&(r===$e||!!(r.flags&128)&&e.isNumericLiteralName(r.value))}function Ly(r){if(r.flags&3670016){var a=El(r);return a.indexInfos}return e.emptyArray}function _c(r){return Ly(Kt(r))}function nf(r,a){return pm(_c(r),a)}function $f(r,a){var u;return(u=nf(r,a))===null||u===void 0?void 0:u.type}function sb(r,a){return _c(r).filter(function(u){return kf(a,u.keyType)})}function Ry(r,a){return Fh(_c(r),a)}function $g(r,a){return Ry(r,jd(a)?An:kl(e.unescapeLeadingUnderscores(a)))}function Y1(r){for(var a,u,f=0,p=e.getEffectiveTypeParameterDeclarations(r);f<p.length;f++){var g=p[f];u=e.appendIfUnique(u,Bd(g.symbol))}return u!=null&&u.length?u:e.isFunctionDeclaration(r)?(a=e0(r))===null||a===void 0?void 0:a.typeParameters:void 0}function Z1(r){var a=[];return r.forEach(function(u,f){Rl(f)||a.push(u)}),a}function Hg(r){return e.isInJSFile(r)&&(r.type&&r.type.kind===319||e.getJSDocParameterTags(r).some(function(a){var u=a.isBracketed,f=a.typeExpression;return u||!!f&&f.type.kind===319}))}function By(r,a){if(!e.isExternalModuleNameRelative(r)){var u=Nu(Rr,'"'+r+'"',512);return u&&a?mo(u):u}}function Lh(r){if(e.hasQuestionToken(r)||jy(r)||Hg(r))return!0;if(r.initializer){var a=of(r.parent),u=r.parent.parameters.indexOf(r);return e.Debug.assert(u>=0),u>=Zf(a,3)}var f=e.getImmediatelyInvokedFunctionExpression(r.parent);return f?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=f.arguments.length:!1}function Zk(r){return e.isPropertyDeclaration(r)&&!e.hasAccessorModifier(r)&&r.questionToken}function jy(r){if(!e.isJSDocPropertyLikeTag(r))return!1;var a=r.isBracketed,u=r.typeExpression;return a||!!u&&u.type.kind===319}function Rv(r,a,u,f){return{kind:r,parameterName:a,parameterIndex:u,type:f}}function af(r){var a=0;if(r)for(var u=0;u<r.length;u++)nx(r[u])||(a=u+1);return a}function dm(r,a,u,f){var p=e.length(a);if(!p)return[];var g=e.length(r);if(f||g>=u&&g<=p){for(var j=r?r.slice():[],pe=g;pe<p;pe++)j[pe]=ar;for(var Se=hP(f),pe=g;pe<p;pe++){var Be=fm(a[pe]);f&&Be&&(ud(Be,ur)||ud(Be,fn))&&(Be=Ie),j[pe]=Be?Sa(Be,Cu(a,j)):Se}return j.length=a.length,j}return r&&r.slice()}function of(r){var a=Mi(r);if(!a.resolvedSignature){var u=[],f=0,p=0,g=void 0,j=!1,pe=e.getImmediatelyInvokedFunctionExpression(r),Se=e.isJSDocConstructSignature(r),Be=!pe&&e.isInJSFile(r)&&e.isValueSignatureDeclaration(r)&&!e.hasJSDocParameterTags(r)&&!e.getJSDocType(r);Be&&(f|=32);for(var fr=Se?1:0;fr<r.parameters.length;fr++){var sr=r.parameters[fr],gr=sr.symbol,_r=e.isJSDocParameterTag(sr)?sr.typeExpression&&sr.typeExpression.type:sr.type;if(gr&&gr.flags&4&&!e.isBindingPattern(sr.name)){var Kr=Ls(sr,gr.escapedName,111551,void 0,void 0,!1);gr=Kr}fr===0&&gr.escapedName==="this"?(j=!0,g=sr.symbol):u.push(gr),_r&&_r.kind===198&&(f|=2);var mt=jy(sr)||sr.initializer||sr.questionToken||e.isRestParameter(sr)||pe&&u.length>pe.arguments.length&&!_r||Hg(sr);mt||(p=u.length)}if((r.kind===174||r.kind===175)&&Wf(r)&&(!j||!g)){var Vt=r.kind===174?175:174,wt=e.getDeclarationOfKind(Zn(r),Vt);wt&&(g=dc(wt))}var rn=r.kind===173?Ou(mo(r.parent.symbol)):void 0,on=rn?rn.localTypeParameters:Y1(r);(e.hasRestParameter(r)||e.isInJSFile(r)&&eA(r,u))&&(f|=1),(e.isConstructorTypeNode(r)&&e.hasSyntacticModifier(r,256)||e.isConstructorDeclaration(r)&&e.hasSyntacticModifier(r.parent,256))&&(f|=4),a.resolvedSignature=Cf(r,on,g,u,void 0,void 0,p,f)}return a.resolvedSignature}function eA(r,a){if(e.isJSDocSignature(r)||!rA(r))return!1;var u=e.lastOrUndefined(r.parameters),f=u?e.getJSDocParameterTags(u):e.getJSDocTags(r).filter(e.isJSDocParameterTag),p=e.firstDefined(f,function(j){return j.typeExpression&&e.isJSDocVariadicType(j.typeExpression.type)?j.typeExpression.type:void 0}),g=Lo(3,"args",32768);return p?g.type=zc(ea(p.type)):(g.checkFlags|=65536,g.deferralParent=Xe,g.deferralConstituents=[Wo],g.deferralWriteConstituents=[Wo]),p&&a.pop(),a.push(g),!0}function e0(r){if(e.isInJSFile(r)&&e.isFunctionLikeDeclaration(r)){var a=e.getJSDocTypeTag(r);return(a==null?void 0:a.typeExpression)&&qh(ea(a.typeExpression))}}function Iz(r,a){var u=e0(r);if(u){var f=r.parameters.indexOf(a);return a.dotDotDotToken?T0(u,f):cf(u,f)}}function Oz(r){var a=e0(r);return a&&Ho(a)}function rA(r){var a=Mi(r);return a.containsArgumentsReference===void 0&&(a.flags&8192?a.containsArgumentsReference=!0:a.containsArgumentsReference=u(r.body)),a.containsArgumentsReference;function u(f){if(!f)return!1;switch(f.kind){case 79:return f.escapedText===_t.escapedName&&tS(f)===_t;case 169:case 171:case 174:case 175:return f.name.kind===164&&u(f.name);case 208:case 209:return u(f.expression);case 299:return u(f.initializer);default:return!e.nodeStartsNewLexicalEnvironment(f)&&!e.isPartOfTypeNode(f)&&!!e.forEachChild(f,u)}}}function eg(r){if(!r||!r.declarations)return e.emptyArray;for(var a=[],u=0;u<r.declarations.length;u++){var f=r.declarations[u];if(e.isFunctionLike(f)){if(u>0&&f.body){var p=r.declarations[u-1];if(f.parent===p.parent&&f.kind===p.kind&&f.pos===p.end)continue}a.push(!e.isFunctionExpressionOrArrowFunction(f)&&!e.isObjectLiteralMethod(f)&&e0(f)||of(f))}}return a}function eO(r){var a=Ac(r,r);if(a){var u=Rc(a);if(u)return _n(u)}return Ie}function rg(r){if(r.thisParameter)return _n(r.thisParameter)}function Vl(r){if(!r.resolvedTypePredicate){if(r.target){var a=Vl(r.target);r.resolvedTypePredicate=a?cq(a,r.mapper):Ws}else if(r.compositeSignatures)r.resolvedTypePredicate=bW(r.compositeSignatures,r.compositeKind)||Ws;else{var u=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration),f=void 0;if(!u){var p=e0(r.declaration);p&&r!==p&&(f=Vl(p))}r.resolvedTypePredicate=u&&e.isTypePredicateNode(u)?Mz(u,r):f||Ws}e.Debug.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Ws?void 0:r.resolvedTypePredicate}function Mz(r,a){var u=r.parameterName,f=r.type&&ea(r.type);return u.kind===194?Rv(r.assertsModifier?2:0,void 0,void 0,f):Rv(r.assertsModifier?3:1,u.escapedText,e.findIndex(a.parameters,function(p){return p.escapedName===u.escapedText}),f)}function rO(r,a,u){return a!==2097152?zi(r,u):ho(r)}function Ho(r){if(!r.resolvedReturnType){if(!ir(r,3))return ar;var a=r.target?Sa(Ho(r.target),r.mapper):r.compositeSignatures?Sa(rO(e.map(r.compositeSignatures,Ho),r.compositeKind,2),r.mapper):Bv(r.declaration)||(e.nodeIsMissing(r.declaration.body)?Ie:mT(r.declaration));if(r.flags&8?a=I8(a):r.flags&16&&(a=Wd(a)),!oi()){if(r.declaration){var u=e.getEffectiveReturnTypeNode(r.declaration);if(u)nt(u,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(mr){var f=r.declaration,p=e.getNameOfDeclaration(f);p?nt(p,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(p)):nt(f,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=Ie}r.resolvedReturnType=a}return r.resolvedReturnType}function Bv(r){if(r.kind===173)return Ou(mo(r.parent.symbol));if(e.isJSDocConstructSignature(r))return ea(r.parameters[0].type);var a=e.getEffectiveReturnTypeNode(r);if(a)return ea(a);if(r.kind===174&&Wf(r)){var u=e.isInJSFile(r)&&im(r);if(u)return u;var f=e.getDeclarationOfKind(Zn(r),175),p=Cs(f);if(p)return p}return Oz(r)}function tA(r){return!r.resolvedReturnType&&bt(r,3)>=0}function Fz(r){return tO(r)||Ie}function tO(r){if(R(r)){var a=_n(r.parameters[r.parameters.length-1]),u=po(a)?d0(a):a;return u&&$f(u,ht)}}function r0(r,a,u,f){var p=nA(r,dm(a,r.typeParameters,af(r.typeParameters),u));if(f){var g=o7(Ho(p));if(g){var j=Iv(g);j.typeParameters=f;var pe=Iv(p);return pe.resolvedReturnType=Jy(j),pe}}return p}function nA(r,a){var u=r.instantiations||(r.instantiations=new e.Map),f=Cl(a),p=u.get(f);return p||u.set(f,p=ix(r,a)),p}function ix(r,a){return Wv(r,Lz(r,a),!0)}function Lz(r,a){return Cu(r.typeParameters,a)}function t0(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=Rz(r)):r}function Rz(r){return Wv(r,o8(r.typeParameters),!0)}function Bz(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=jz(r)):r}function jz(r){return r0(r,e.map(r.typeParameters,function(a){return a.target&&!Uc(a.target)?a.target:a}),e.isInJSFile(r.declaration))}function Jz(r){var a=r.typeParameters;if(a){if(r.baseSignatureCache)return r.baseSignatureCache;for(var u=o8(a),f=Cu(a,e.map(a,function(j){return Uc(j)||ur})),p=e.map(a,function(j){return Sa(j,f)||ur}),g=0;g<a.length-1;g++)p=zd(p,f);return p=zd(p,u),r.baseSignatureCache=Wv(r,Cu(a,p),!0)}return r}function Jy(r){var a;if(!r.isolatedSignatureType){var u=(a=r.declaration)===null||a===void 0?void 0:a.kind,f=u===void 0||u===173||u===177||u===182,p=ll(16);p.members=rr,p.properties=e.emptyArray,p.callSignatures=f?e.emptyArray:[r],p.constructSignatures=f?[r]:e.emptyArray,p.indexInfos=e.emptyArray,r.isolatedSignatureType=p}return r.isolatedSignatureType}function nO(r){return r.members?iA(r.members):void 0}function iA(r){return r.get("__index")}function Hf(r,a,u,f){return{keyType:r,type:a,isReadonly:u,declaration:f}}function iO(r){var a=nO(r);return a?aA(a):e.emptyArray}function aA(r){if(r.declarations){for(var a=[],u=function(j){if(j.parameters.length===1){var pe=j.parameters[0];pe.type&&Zg(ea(pe.type),function(Se){ax(Se)&&!pm(a,Se)&&a.push(Hf(Se,j.type?ea(j.type):Ie,e.hasEffectiveModifier(j,64),j))})}},f=0,p=r.declarations;f<p.length;f++){var g=p[f];u(g)}return a}return e.emptyArray}function ax(r){return!!(r.flags&4108)||Uv(r)||!!(r.flags&2097152)&&!Bh(r)&&e.some(r.types,ax)}function oA(r){return e.mapDefined(e.filter(r.symbol&&r.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function aO(r,a){var u,f;if(!((u=r.symbol)===null||u===void 0)&&u.declarations)for(var p=function(Se){if(Se.parent.kind===192){var Be=e.walkUpParenthesizedTypesAndGetParentAndChild(Se.parent.parent),fr=Be[0],sr=fr===void 0?Se.parent:fr,gr=Be[1];if(gr.kind===180&&!a){var _r=gr,Kr=Sw(_r);if(Kr){var mt=_r.typeArguments.indexOf(sr);if(mt<Kr.length){var Vt=Uc(Kr[mt]);if(Vt){var wt=IA(Kr,Kr.map(function(Gn,Ti){return function(){return xQ(_r,Kr,Ti)}})),rn=Sa(Vt,wt);rn!==r&&(f=e.append(f,rn))}}}}else if(gr.kind===166&&gr.dotDotDotToken||gr.kind===188||gr.kind===199&&gr.dotDotDotToken)f=e.append(f,zc(ur));else if(gr.kind===201)f=e.append(f,Ft);else if(gr.kind===165&&gr.parent.kind===197)f=e.append(f,gt);else if(gr.kind===197&&gr.type&&e.skipParentheses(gr.type)===Se.parent&&gr.parent.kind===191&&gr.parent.extendsType===gr&&gr.parent.checkType.kind===197&&gr.parent.checkType.type){var on=gr.parent.checkType,Un=ea(on.type);f=e.append(f,Sa(Un,og(Bd(Zn(on.typeParameter)),on.typeParameter.constraint?ea(on.typeParameter.constraint):gt)))}}},g=0,j=r.symbol.declarations;g<j.length;g++){var pe=j[g];p(pe)}return f&&ho(f)}function Uy(r){if(!r.constraint)if(r.target){var a=Uc(r.target);r.constraint=a?Sa(a,r.mapper):Do}else{var u=oA(r);if(!u)r.constraint=aO(r)||Do;else{var f=ea(u);f.flags&1&&!pa(f)&&(f=u.parent.parent.kind===197?gt:ur),r.constraint=f}}return r.constraint===Do?void 0:r.constraint}function oO(r){var a=e.getDeclarationOfKind(r.symbol,165),u=e.isJSDocTemplateTag(a.parent)?e.getEffectiveContainerForJSDocTemplateTag(a.parent):a.parent;return u&&Zn(u)}function Cl(r){var a="";if(r)for(var u=r.length,f=0;f<u;){for(var p=r[f].id,g=1;f+g<u&&r[f+g].id===p+g;)g++;a.length&&(a+=","),a+=p,g>1&&(a+=":"+g),f+=g}return a}function jv(r,a){return r?"@".concat(ne(r))+(a?":".concat(Cl(a)):""):""}function ox(r,a){for(var u=0,f=0,p=r;f<p.length;f++){var g=p[f];(a===void 0||!(g.flags&a))&&(u|=e.getObjectFlags(g))}return u&458752}function b_(r,a){var u=Cl(a),f=r.instantiations.get(u);return f||(f=ll(4,r.symbol),r.instantiations.set(u,f),f.objectFlags|=a?ox(a):0,f.target=r,f.resolvedTypeArguments=a),f}function sO(r){var a=xu(r.flags);return a.symbol=r.symbol,a.objectFlags=r.objectFlags,a.target=r.target,a.resolvedTypeArguments=r.resolvedTypeArguments,a}function sA(r,a,u,f,p){if(!f){f=jh(a);var g=Vv(f);p=u?zd(g,u):g}var j=ll(4,r.symbol);return j.target=r,j.node=a,j.mapper=u,j.aliasSymbol=f,j.aliasTypeArguments=p,j}function Go(r){var a,u;if(!r.resolvedTypeArguments){if(!ir(r,6))return((a=r.target.localTypeParameters)===null||a===void 0?void 0:a.map(function(){return ar}))||e.emptyArray;var f=r.node,p=f?f.kind===180?e.concatenate(r.target.outerTypeParameters,vT(f,r.target.localTypeParameters)):f.kind===185?[ea(f.elementType)]:e.map(f.elements,ea):e.emptyArray;oi()?r.resolvedTypeArguments=r.mapper?zd(p,r.mapper):p:(r.resolvedTypeArguments=((u=r.target.localTypeParameters)===null||u===void 0?void 0:u.map(function(){return ar}))||e.emptyArray,nt(r.node||me,r.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&na(r.target.symbol)))}return r.resolvedTypeArguments}function _m(r){return e.length(r.target.typeParameters)}function cO(r,a){var u=mn(mo(a)),f=u.localTypeParameters;if(f){var p=e.length(r.typeArguments),g=af(f),j=e.isInJSFile(r),pe=!mr&&j;if(!pe&&(p<g||p>f.length)){var Se=j&&e.isExpressionWithTypeArguments(r)&&!e.isJSDocAugmentsTag(r.parent),Be=g===f.length?Se?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:Se?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,fr=Hn(u,void 0,2);if(nt(r,Be,fr,g,f.length),!j)return ar}if(r.kind===180&&kO(r,e.length(r.typeArguments)!==f.length))return sA(u,r,void 0);var sr=e.concatenate(u.outerTypeParameters,dm(lx(r),f,g,j));return b_(u,sr)}return tg(r,a)?u:ar}function Jv(r,a,u,f){var p=mn(r);if(p===Ge&&ge.has(r.escapedName)&&a&&a.length===1)return Rh(r,a[0]);var g=la(r),j=g.typeParameters,pe=Cl(a)+jv(u,f),Se=g.instantiations.get(pe);return Se||g.instantiations.set(pe,Se=u8(p,Cu(j,dm(a,j,af(j),e.isInJSFile(r.valueDeclaration))),u,f)),Se}function Uz(r,a){if(e.getCheckFlags(a)&1048576){var u=lx(r),f=jv(a,u),p=ye.get(f);return p||(p=Os(1,"error"),p.aliasSymbol=a,p.aliasTypeArguments=u,ye.set(f,p)),p}var g=mn(a),j=la(a).typeParameters;if(j){var pe=e.length(r.typeArguments),Se=af(j);if(pe<Se||pe>j.length)return nt(r,Se===j.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,na(a),Se,j.length),ar;var Be=jh(r),fr=Be&&(uO(a)||!uO(Be))?Be:void 0;return Jv(a,lx(r),fr,Vv(fr))}return tg(r,a)?g:ar}function uO(r){var a,u=(a=r.declarations)===null||a===void 0?void 0:a.find(e.isTypeAlias);return!!(u&&e.getContainingFunction(u))}function Vz(r){switch(r.kind){case 180:return r.typeName;case 230:var a=r.expression;if(e.isEntityNameExpression(a))return a}}function lO(r){return r.parent?"".concat(lO(r.parent),".").concat(r.escapedName):r.escapedName}function sx(r){var a=r.kind===163?r.right:r.kind===208?r.name:r,u=a.escapedText;if(u){var f=r.kind===163?sx(r.left):r.kind===208?sx(r.expression):void 0,p=f?"".concat(lO(f),".").concat(u):u,g=Jr.get(p);return g||(Jr.set(p,g=Lo(524288,u,1048576)),g.parent=f,g.declaredType=Sr),g}return en}function Vy(r,a,u){var f=Vz(r);if(!f)return en;var p=ns(f,a,u);return p&&p!==en?p:u?en:sx(f)}function cx(r,a){if(a===en)return ar;if(a=bf(a)||a,a.flags&96)return cO(r,a);if(a.flags&524288)return Uz(r,a);var u=$i(a);if(u)return tg(r,a)?Eu(u):ar;if(a.flags&111551&&ux(r)){var f=zz(r,a);return f||(Vy(r,788968),_n(a))}return ar}function zz(r,a){var u=Mi(r);if(!u.resolvedJSDocType){var f=_n(a),p=f;if(a.valueDeclaration){var g=r.kind===202&&r.qualifier;f.symbol&&f.symbol!==a&&g&&(p=cx(r,f.symbol))}u.resolvedJSDocType=p}return u.resolvedJSDocType}function cA(r,a){if(a.flags&3||a===r||!Bh(r)&&!Bh(a))return r;var u="".concat(Wc(r),">").concat(Wc(a)),f=Ke.get(u);if(f)return f;var p=xu(33554432);return p.baseType=r,p.constraint=a,Ke.set(u,p),p}function uA(r){return ho([r.constraint,r.baseType])}function fO(r){return r.kind===186&&r.elements.length===1}function pO(r,a,u){return fO(a)&&fO(u)?pO(r,a.elements[0],u.elements[0]):hm(ea(a))===hm(r)?ea(u):void 0}function Wz(r,a){for(var u,f=!0;a&&!e.isStatement(a)&&a.kind!==323;){var p=a.parent;if(p.kind===166&&(f=!f),(f||r.flags&8650752)&&p.kind===191&&a===p.trueType){var g=pO(r,p.checkType,p.extendsType);g&&(u=e.append(u,g))}else if(r.flags&262144&&p.kind===197&&a===p.type){var j=ea(p);if(Tl(j)===hm(r)){var pe=xx(j);if(pe){var g=Uc(pe);g&&Ip(g,Qg)&&(u=e.append(u,zi([ht,$e])))}}}a=p}return u?cA(r,ho(u)):r}function ux(r){return!!(r.flags&8388608)&&(r.kind===180||r.kind===202)}function tg(r,a){return r.typeArguments?(nt(r,e.Diagnostics.Type_0_is_not_generic,a?na(a):r.typeName?e.declarationNameToString(r.typeName):P),!1):!0}function dO(r){if(e.isIdentifier(r.typeName)){var a=r.typeArguments;switch(r.typeName.escapedText){case"String":return tg(r),Ft;case"Number":return tg(r),ht;case"Boolean":return tg(r),Tn;case"Void":return tg(r),ii;case"Undefined":return tg(r),Ar;case"Null":return tg(r),Pt;case"Function":case"function":return tg(r),ln;case"array":return(!a||!a.length)&&!mr?Wo:void 0;case"promise":return(!a||!a.length)&&!mr?Jb(Ie):void 0;case"Object":if(a&&a.length===2){if(e.isJSDocIndexSignature(r)){var u=ea(a[0]),f=ea(a[1]),p=u===Ft||u===ht?[Hf(u,f,!1)]:e.emptyArray;return Es(void 0,rr,e.emptyArray,e.emptyArray,p)}return Ie}return tg(r),mr?void 0:Ie}}}function qz(r){var a=ea(r.type);return ue?Ox(a,65536):a}function cb(r){var a=Mi(r);if(!a.resolvedType){if(e.isConstTypeReference(r)&&e.isAssertionExpression(r.parent))return a.resolvedSymbol=en,a.resolvedType=Gs(r.parent.expression);var u=void 0,f=void 0,p=788968;ux(r)&&(f=dO(r),f||(u=Vy(r,p,!0),u===en?u=Vy(r,p|111551):Vy(r,p),f=cx(r,u))),f||(u=Vy(r,p),f=cx(r,u)),a.resolvedSymbol=u,a.resolvedType=f}return a.resolvedType}function lx(r){return e.map(r.typeArguments,ea)}function _O(r){var a=Mi(r);if(!a.resolvedType){var u=k7(r);a.resolvedType=Eu(Gu(u))}return a.resolvedType}function mO(r,a){function u(p){var g=p.declarations;if(g)for(var j=0,pe=g;j<pe.length;j++){var Se=pe[j];switch(Se.kind){case 260:case 261:case 263:return Se}}}if(!r)return a?_a:fn;var f=mn(r);return f.flags&524288?e.length(f.typeParameters)!==a?(nt(u(r),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(r),a),a?_a:fn):f:(nt(u(r),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(r)),a?_a:fn)}function lA(r,a){return n0(r,111551,a?e.Diagnostics.Cannot_find_global_value_0:void 0)}function gO(r,a){return n0(r,788968,a?e.Diagnostics.Cannot_find_global_type_0:void 0)}function fx(r,a,u){var f=n0(r,788968,u?e.Diagnostics.Cannot_find_global_type_0:void 0);if(f&&(mn(f),e.length(la(f).typeParameters)!==a)){var p=f.declarations&&e.find(f.declarations,e.isTypeAliasDeclaration);nt(p,e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(f),a);return}return f}function n0(r,a,u){return Ls(void 0,r,a,u,r,!1,!1,!1)}function Xc(r,a,u){var f=gO(r,u);return f||u?mO(f,a):void 0}function $z(){return Lc||(Lc=Xc("TypedPropertyDescriptor",1,!0)||_a)}function Hz(){return Da||(Da=Xc("TemplateStringsArray",0,!0)||fn)}function hO(){return ta||(ta=Xc("ImportMeta",0,!0)||fn)}function vO(){if(!fo){var r=Lo(0,"ImportMetaExpression"),a=hO(),u=Lo(4,"meta",8);u.parent=r,u.type=a;var f=e.createSymbolTable([u]);r.members=f,fo=Es(r,f,e.emptyArray,e.emptyArray,e.emptyArray)}return fo}function yO(r){return oo||(oo=Xc("ImportCallOptions",0,r))||fn}function bO(r){return tu||(tu=lA("Symbol",r))}function Gz(r){return $c||($c=gO("SymbolConstructor",r))}function SO(){return Su||(Su=Xc("Symbol",0,!1))||fn}function ub(r){return Hc||(Hc=Xc("Promise",1,r))||_a}function DO(r){return tc||(tc=Xc("PromiseLike",1,r))||_a}function fA(r){return fc||(fc=lA("Promise",r))}function Kz(r){return nu||(nu=Xc("PromiseConstructorLike",0,r))||fn}function px(r){return Kn||(Kn=Xc("AsyncIterable",1,r))||_a}function Qz(r){return Yn||(Yn=Xc("AsyncIterator",3,r))||_a}function Xz(r){return Si||(Si=Xc("AsyncIterableIterator",1,r))||_a}function Yz(r){return vi||(vi=Xc("AsyncGenerator",3,r))||_a}function xO(r){return nc||(nc=Xc("Iterable",1,r))||_a}function Zz(r){return Xt||(Xt=Xc("Iterator",3,r))||_a}function eW(r){return be||(be=Xc("IterableIterator",1,r))||_a}function rW(r){return Ur||(Ur=Xc("Generator",3,r))||_a}function tW(r){return At||(At=Xc("IteratorYieldResult",1,r))||_a}function nW(r){return an||(an=Xc("IteratorReturnResult",1,r))||_a}function TO(r,a){a===void 0&&(a=0);var u=n0(r,788968,void 0);return u&&mO(u,a)}function iW(){return er||(er=fx("Extract",2,!0)||en),er===en?void 0:er}function aW(){return Bt||(Bt=fx("Omit",2,!0)||en),Bt===en?void 0:Bt}function pA(r){return Mr||(Mr=fx("Awaited",1,r)||(r?en:void 0)),Mr===en?void 0:Mr}function oW(){return ua||(ua=Xc("BigInt",0,!1))||fn}function sW(){return _o||(_o=lA("NaN",!1))}function cW(){return xs||(xs=fx("Record",2,!0)||en),xs===en?void 0:xs}function i0(r,a){return r!==_a?b_(r,a):fn}function EO(r){return i0($z(),[r])}function uW(r){return i0(xO(!0),[r])}function zc(r,a){return i0(a?qi:_i,[r])}function dA(r){switch(r.kind){case 187:return 2;case 188:return CO(r);case 199:return r.questionToken?2:r.dotDotDotToken?CO(r):1;default:return 1}}function CO(r){return pb(r.type)?4:8}function lW(r){var a=pW(r.parent),u=pb(r);if(u)return a?qi:_i;var f=e.map(r.elements,dA),p=e.some(r.elements,function(g){return g.kind!==199});return _A(f,a,p?void 0:r.elements)}function kO(r,a){return!!jh(r)||AO(r)&&(r.kind===185?S_(r.elementType):r.kind===186?e.some(r.elements,S_):a||e.some(r.typeArguments,S_))}function AO(r){var a=r.parent;switch(a.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return AO(a);case 262:return!0}return!1}function S_(r){switch(r.kind){case 180:return ux(r)||!!(Vy(r,788968).flags&524288);case 183:return!0;case 195:return r.operator!==156&&S_(r.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return S_(r.type);case 188:return r.type.kind!==185||S_(r.type.elementType);case 189:case 190:return e.some(r.types,S_);case 196:return S_(r.objectType)||S_(r.indexType);case 191:return S_(r.checkType)||S_(r.extendsType)||S_(r.trueType)||S_(r.falseType)}return!1}function fW(r){var a=Mi(r);if(!a.resolvedType){var u=lW(r);if(u===_a)a.resolvedType=fn;else if(!(r.kind===186&&e.some(r.elements,function(p){return!!(dA(p)&8)}))&&kO(r))a.resolvedType=r.kind===186&&r.elements.length===0?u:sA(u,r,void 0);else{var f=r.kind===185?[ea(r.elementType)]:e.map(r.elements,ea);a.resolvedType=mA(u,f)}}return a.resolvedType}function pW(r){return e.isTypeOperatorNode(r)&&r.operator===146}function Gf(r,a,u,f){u===void 0&&(u=!1);var p=_A(a||e.map(r,function(g){return 1}),u,f);return p===_a?fn:r.length?mA(p,r):p}function _A(r,a,u){if(r.length===1&&r[0]&4)return a?qi:_i;var f=e.map(r,function(g){return g&1?"#":g&2?"?":g&4?".":"*"}).join()+(a?"R":"")+(u&&u.length?","+e.map(u,_e).join(","):""),p=cr.get(f);return p||cr.set(f,p=dW(r,a,u)),p}function dW(r,a,u){var f=r.length,p=e.countWhere(r,function(Vt){return!!(Vt&9)}),g,j=[],pe=0;if(f){g=new Array(f);for(var Se=0;Se<f;Se++){var Be=g[Se]=ic(),fr=r[Se];if(pe|=fr,!(pe&12)){var sr=Lo(4|(fr&2?16777216:0),""+Se,a?8:0);sr.tupleLabelDeclaration=u==null?void 0:u[Se],sr.type=Be,j.push(sr)}}}var gr=j.length,_r=Lo(4,"length",a?8:0);if(pe&12)_r.type=ht;else{for(var Kr=[],Se=p;Se<=f;Se++)Kr.push(Qf(Se));_r.type=zi(Kr)}j.push(_r);var mt=ll(12);return mt.typeParameters=g,mt.outerTypeParameters=void 0,mt.localTypeParameters=g,mt.instantiations=new e.Map,mt.instantiations.set(Cl(mt.typeParameters),mt),mt.target=mt,mt.resolvedTypeArguments=mt.typeParameters,mt.thisType=ic(),mt.thisType.isThisType=!0,mt.thisType.constraint=mt,mt.declaredProperties=j,mt.declaredCallSignatures=e.emptyArray,mt.declaredConstructSignatures=e.emptyArray,mt.declaredIndexInfos=e.emptyArray,mt.elementFlags=r,mt.minLength=p,mt.fixedLength=gr,mt.hasRestElement=!!(pe&12),mt.combinedFlags=pe,mt.readonly=a,mt.labeledElementDeclarations=u,mt}function mA(r,a){return r.objectFlags&8?PO(r,a):b_(r,a)}function PO(r,a){var u,f,p;if(!(r.combinedFlags&14))return b_(r,a);if(r.combinedFlags&8){var g=e.findIndex(a,function(wt,rn){return!!(r.elementFlags[rn]&8&&wt.flags&1179648)});if(g>=0)return lb(e.map(a,function(wt,rn){return r.elementFlags[rn]&8?wt:ur}))?Ts(a[g],function(wt){return PO(r,e.replaceElement(a,g,wt))}):ar}for(var j=[],pe=[],Se=[],Be=-1,fr=-1,sr=-1,gr=function(wt){var rn=a[wt],on=r.elementFlags[wt];if(on&8)if(rn.flags&58982400||Mu(rn))Vt(rn,8,(u=r.labeledElementDeclarations)===null||u===void 0?void 0:u[wt]);else if(po(rn)){var Un=Go(rn);if(Un.length+j.length>=1e4)return nt(me,e.isPartOfTypeNode(me)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:ar};e.forEach(Un,function(Gn,Ti){var li;return Vt(Gn,rn.target.elementFlags[Ti],(li=rn.target.labeledElementDeclarations)===null||li===void 0?void 0:li[Ti])})}else Vt(xm(rn)&&$f(rn,ht)||ar,4,(f=r.labeledElementDeclarations)===null||f===void 0?void 0:f[wt]);else Vt(rn,on,(p=r.labeledElementDeclarations)===null||p===void 0?void 0:p[wt])},_r=0;_r<a.length;_r++){var Kr=gr(_r);if(typeof Kr=="object")return Kr.value}for(var _r=0;_r<Be;_r++)pe[_r]&2&&(pe[_r]=1);fr>=0&&fr<sr&&(j[fr]=zi(e.sameMap(j.slice(fr,sr+1),function(wt,rn){return pe[fr+rn]&8?Fu(wt,ht):wt})),j.splice(fr+1,sr-fr),pe.splice(fr+1,sr-fr),Se==null||Se.splice(fr+1,sr-fr));var mt=_A(pe,r.readonly,Se);return mt===_a?fn:pe.length?b_(mt,j):mt;function Vt(wt,rn,on){rn&1&&(Be=pe.length),rn&4&&fr<0&&(fr=pe.length),rn&6&&(sr=pe.length),j.push(rn&2?dl(wt,!0):wt),pe.push(rn),Se&&on?Se.push(on):Se=void 0}}function a0(r,a,u){u===void 0&&(u=0);var f=r.target,p=_m(r)-u;return a>f.fixedLength?r$(r)||Gf(e.emptyArray):Gf(Go(r).slice(a,p),f.elementFlags.slice(a,p),!1,f.labeledElementDeclarations&&f.labeledElementDeclarations.slice(a,p))}function wO(r){return zi(e.append(e.arrayOf(r.target.fixedLength,function(a){return kl(""+a)}),Kf(r.target.readonly?qi:_i)))}function NO(r,a){var u=e.findIndex(r.elementFlags,function(f){return!(f&a)});return u>=0?u:r.elementFlags.length}function dx(r,a){return r.elementFlags.length-e.findLastIndex(r.elementFlags,function(u){return!(u&a)})-1}function _W(r){return dl(ea(r.type),!0)}function Wc(r){return r.id}function Ud(r,a){return e.binarySearch(r,a,Wc,e.compareValues)>=0}function gA(r,a){var u=e.binarySearch(r,a,Wc,e.compareValues);return u<0?(r.splice(~u,0,a),!0):!1}function mW(r,a,u){var f=u.flags;if(f&1048576)return IO(r,a|(yW(u)?1048576:0),u.types);if(!(f&131072))if(a|=f&205258751,f&465829888&&(a|=33554432),u===dr&&(a|=8388608),!ue&&f&98304)e.getObjectFlags(u)&65536||(a|=4194304);else{var p=r.length,g=p&&u.id>r[p-1].id?~p:e.binarySearch(r,u,Wc,e.compareValues);g<0&&r.splice(~g,0,u)}return a}function IO(r,a,u){for(var f=0,p=u;f<p.length;f++){var g=p[f];a=mW(r,a,g)}return a}function gW(r,a){if(r.length<2)return r;var u=Cl(r),f=Vr.get(u);if(f)return f;for(var p=a&&e.some(r,function(Vt){return!!(Vt.flags&524288)&&!Mu(Vt)&&UA(El(Vt))}),g=r.length,j=g,pe=0;j>0;){j--;var Se=r[j];if(p||Se.flags&469499904)for(var Be=Se.flags&61603840?e.find(Ro(Se),function(Vt){return sf(_n(Vt))}):void 0,fr=Be&&Eu(_n(Be)),sr=0,gr=r;sr<gr.length;sr++){var _r=gr[sr];if(Se!==_r){if(pe===1e5){var Kr=pe/(g-j)*g;if(Kr>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:r.map(function(Vt){return Vt.id})}),nt(me,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(pe++,Be&&_r.flags&61603840){var mt=di(_r,Be.escapedName);if(mt&&sf(mt)&&Eu(mt)!==fr)continue}if(Np(Se,_r,Di)&&(!(e.getObjectFlags(Rd(Se))&1)||!(e.getObjectFlags(Rd(_r))&1)||Uh(Se,_r))){e.orderedRemoveItemAt(r,j);break}}}}return Vr.set(u,r),r}function hW(r,a,u){for(var f=r.length;f>0;){f--;var p=r[f],g=p.flags,j=g&402653312&&a&4||g&256&&a&8||g&2048&&a&64||g&8192&&a&4096||u&&g&32768&&a&16384||ag(p)&&Ud(r,p.regularType);j&&e.orderedRemoveItemAt(r,f)}}function vW(r){var a=e.filter(r,Uv);if(a.length)for(var u=r.length,f=function(){u--;var p=r[u];p.flags&128&&e.some(a,function(g){return _P(p,g)})&&e.orderedRemoveItemAt(r,u)};u>0;)f()}function yW(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function OO(r,a){for(var u=0,f=a;u<f.length;u++){var p=f[u];if(p.flags&1048576){var g=p.origin;p.aliasSymbol||g&&!(g.flags&1048576)?e.pushIfUnique(r,p):g&&g.flags&1048576&&OO(r,g.types)}}}function hA(r,a){var u=Fd(r);return u.types=a,u}function zi(r,a,u,f,p){if(a===void 0&&(a=1),r.length===0)return Xe;if(r.length===1)return r[0];var g=[],j=IO(g,0,r);if(a!==0){if(j&3)return j&1?j&8388608?dr:Ie:j&65536||Ud(g,ur)?ur:Lr;if(tt&&j&32768){var pe=e.binarySearch(g,St,Wc,e.compareValues);pe>=0&&Ud(g,Ar)&&e.orderedRemoveItemAt(g,pe)}if((j&402664320||j&16384&&j&32768)&&hW(g,j,!!(a&2)),j&128&&j&134217728&&vW(g),a===2&&(g=gW(g,!!(j&524288)),!g))return ar;if(g.length===0)return j&65536?j&4194304?Pt:pt:j&32768?j&4194304?Ar:rt:Xe}if(!p&&j&1048576){var Se=[];OO(Se,r);for(var Be=[],fr=function(rn){e.some(Se,function(on){return Ud(on.types,rn)})||Be.push(rn)},sr=0,gr=g;sr<gr.length;sr++){var _r=gr[sr];fr(_r)}if(!u&&Se.length===1&&Be.length===0)return Se[0];var Kr=e.reduceLeft(Se,function(rn,on){return rn+on.types.length},0);if(Kr+Be.length===g.length){for(var mt=0,Vt=Se;mt<Vt.length;mt++){var _r=Vt[mt];gA(Be,_r)}p=hA(1048576,Be)}}var wt=(j&36323363?0:32768)|(j&2097152?16777216:0);return yA(g,wt,u,f,p)}function bW(r,a){for(var u,f=[],p=0,g=r;p<g.length;p++){var j=g[p],pe=Vl(j);if(!pe||pe.kind===2||pe.kind===3){if(a!==2097152)continue;return}if(u){if(!vA(u,pe))return}else u=pe;f.push(pe.type)}if(u){var Se=rO(f,a);return Rv(u.kind,u.parameterName,u.parameterIndex,Se)}}function vA(r,a){return r.kind===a.kind&&r.parameterIndex===a.parameterIndex}function yA(r,a,u,f,p){if(r.length===0)return Xe;if(r.length===1)return r[0];var g=p?p.flags&1048576?"|".concat(Cl(p.types)):p.flags&2097152?"&".concat(Cl(p.types)):"#".concat(p.type.id,"|").concat(Cl(r)):Cl(r),j=g+jv(u,f),pe=$r.get(j);return pe||(pe=xu(1048576),pe.objectFlags=a|ox(r,98304),pe.types=r,pe.origin=p,pe.aliasSymbol=u,pe.aliasTypeArguments=f,r.length===2&&r[0].flags&512&&r[1].flags&512&&(pe.flags|=16,pe.intrinsicName="boolean"),$r.set(j,pe)),pe}function SW(r){var a=Mi(r);if(!a.resolvedType){var u=jh(r);a.resolvedType=zi(e.map(r.types,ea),1,u,Vv(u))}return a.resolvedType}function DW(r,a,u){var f=u.flags;return f&2097152?MO(r,a,u.types):(sg(u)?a&16777216||(a|=16777216,r.set(u.id.toString(),u)):(f&3?u===dr&&(a|=8388608):(ue||!(f&98304))&&(tt&&u===St&&(a|=262144,u=Ar),r.has(u.id.toString())||(u.flags&109440&&a&109440&&(a|=67108864),r.set(u.id.toString(),u))),a|=f&205258751),a)}function MO(r,a,u){for(var f=0,p=u;f<p.length;f++){var g=p[f];a=DW(r,a,Eu(g))}return a}function xW(r,a){for(var u=r.length;u>0;){u--;var f=r[u],p=f.flags&4&&a&402653312||f.flags&8&&a&256||f.flags&64&&a&2048||f.flags&4096&&a&8192||f.flags&16384&&a&32768||sg(f)&&a&470302716;p&&e.orderedRemoveItemAt(r,u)}}function TW(r,a){for(var u=0,f=r;u<f.length;u++){var p=f[u];if(!Ud(p.types,a)){var g=a.flags&128?Ft:a.flags&256?ht:a.flags&2048?Yt:a.flags&8192?An:void 0;if(!g||!Ud(p.types,g))return!1}}return!0}function EW(r){for(var a=r.length,u=e.filter(r,function(pe){return!!(pe.flags&128)});a>0;){a--;var f=r[a];if(f.flags&134217728)for(var p=0,g=u;p<g.length;p++){var j=g[p];if(Dm(j,f)){e.orderedRemoveItemAt(r,a);break}else if(Uv(f))return!0}}return!1}function FO(r,a){return e.every(r,function(u){return!!(u.flags&1048576)&&e.some(u.types,function(f){return!!(f.flags&a)})})}function LO(r,a){for(var u=0;u<r.length;u++)r[u]=Nc(r[u],function(f){return!(f.flags&a)})}function CW(r){var a,u=e.findIndex(r,function(gr){return!!(e.getObjectFlags(gr)&32768)});if(u<0)return!1;for(var f=u+1;f<r.length;){var p=r[f];e.getObjectFlags(p)&32768?((a||(a=[r[u]])).push(p),e.orderedRemoveItemAt(r,f)):f++}if(!a)return!1;for(var g=[],j=[],pe=0,Se=a;pe<Se.length;pe++)for(var Be=Se[pe],fr=0,sr=Be.types;fr<sr.length;fr++){var p=sr[fr];gA(g,p)&&TW(a,p)&&gA(j,p)}return r[u]=yA(j,32768),!0}function kW(r,a,u){var f=xu(2097152);return f.objectFlags=ox(r,98304),f.types=r,f.aliasSymbol=a,f.aliasTypeArguments=u,f}function ho(r,a,u,f){var p=new e.Map,g=MO(p,0,r),j=e.arrayFrom(p.values());if(g&131072)return e.contains(j,hr)?hr:Xe;if(ue&&g&98304&&g&84410368||g&67108864&&g&402783228||g&402653316&&g&67238776||g&296&&g&469891796||g&2112&&g&469889980||g&12288&&g&469879804||g&49152&&g&469842940||g&134217728&&g&128&&EW(j))return Xe;if(g&1)return g&8388608?dr:Ie;if(!ue&&g&98304)return g&16777216?Xe:g&32768?Ar:Pt;if((g&4&&g&402653312||g&8&&g&256||g&64&&g&2048||g&4096&&g&8192||g&16384&&g&32768||g&16777216&&g&470302716)&&(f||xW(j,g)),g&262144&&(j[j.indexOf(Ar)]=St),j.length===0)return ur;if(j.length===1)return j[0];var pe=Cl(j)+jv(a,u),Se=Re.get(pe);if(!Se){if(g&1048576)if(CW(j))Se=ho(j,a,u);else if(FO(j,32768)){var Be=tt&&e.some(j,function(gr){return Ud(gr.types,St)})?St:Ar;LO(j,32768),Se=zi([ho(j),Be],1,a,u)}else if(FO(j,65536))LO(j,65536),Se=zi([ho(j),Pt],1,a,u);else{if(!lb(j))return ar;var fr=AW(j),sr=e.some(fr,function(gr){return!!(gr.flags&2097152)})&&bA(fr)>bA(j)?hA(2097152,j):void 0;Se=zi(fr,1,a,u,sr)}else Se=kW(j,a,u);Re.set(pe,Se)}return Se}function RO(r){return e.reduceLeft(r,function(a,u){return u.flags&1048576?a*u.types.length:u.flags&131072?0:a},1)}function lb(r){var a=RO(r);return a>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:r.map(function(u){return u.id}),size:a}),nt(me,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function AW(r){for(var a=RO(r),u=[],f=0;f<a;f++){for(var p=r.slice(),g=f,j=r.length-1;j>=0;j--)if(r[j].flags&1048576){var pe=r[j].types,Se=pe.length;p[j]=pe[g%Se],g=Math.floor(g/Se)}var Be=ho(p);Be.flags&131072||u.push(Be)}return u}function BO(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?BO(r.origin):bA(r.types)}function bA(r){return e.reduceLeft(r,function(a,u){return a+BO(u)},0)}function PW(r){var a=Mi(r);if(!a.resolvedType){var u=jh(r),f=e.map(r.types,ea),p=f.length===2&&!!(f[0].flags&76)&&f[1]===ra;a.resolvedType=ho(f,u,Vv(u),p)}return a.resolvedType}function jO(r,a){var u=xu(4194304);return u.type=r,u.stringsOnly=a,u}function wW(r){var a=Fd(4194304);return a.type=r,a}function JO(r,a){return a?r.resolvedStringIndexType||(r.resolvedStringIndexType=jO(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=jO(r,!1))}function NW(r,a,u){var f=Tl(r),p=Ul(r),g=cd(r.target||r);if(!g&&!u)return p;var j=[];if(Fv(r)){if(mm(p))return JO(r,a);var pe=Gr(Oh(r));eb(pe,8576,a,Be)}else Zg(Ih(p),Be);mm(p)&&Zg(p,Be);var Se=u?Nc(zi(j),function(fr){return!(fr.flags&5)}):zi(j);if(Se.flags&1048576&&p.flags&1048576&&Cl(Se.types)===Cl(p.types))return p;return Se;function Be(fr){var sr=g?Sa(g,c0(r.mapper,f,fr)):fr;j.push(sr===Ft?Zt:sr)}}function IW(r){var a=Tl(r);return u(cd(r)||a);function u(f){return f.flags&68157439?!0:f.flags&16777216?f.root.isDistributive&&f.checkType===a:f.flags&137363456?e.every(f.types,u):f.flags&8388608?u(f.objectType)&&u(f.indexType):f.flags&33554432?u(f.baseType)&&u(f.constraint):f.flags&268435456?u(f.type):!1}}function D_(r){return e.isPrivateIdentifier(r)?Xe:e.isIdentifier(r)?kl(e.unescapeLeadingUnderscores(r.escapedText)):Eu(e.isComputedPropertyName(r)?$d(r):Ra(r))}function zy(r,a,u){if(u||!(e.getDeclarationModifierFlagsFromSymbol(r)&24)){var f=la(wh(r)).nameType;if(!f){var p=e.getNameOfDeclaration(r.valueDeclaration);f=r.escapedName==="default"?kl("default"):p&&D_(p)||(e.isKnownSymbol(r)?void 0:kl(e.symbolName(r)))}if(f&&f.flags&a)return f}return Xe}function UO(r,a){return!!(r.flags&a||r.flags&2097152&&e.some(r.types,function(u){return UO(u,a)}))}function OW(r,a,u){var f=u&&(e.getObjectFlags(r)&7||r.aliasSymbol)?wW(r):void 0,p=e.map(Ro(r),function(j){return zy(j,a)}),g=e.map(_c(r),function(j){return j!==Ko&&UO(j.keyType,a)?j.keyType===Ft&&a&8?Zt:j.keyType:Xe});return zi(e.concatenate(p,g),1,void 0,void 0,f)}function MW(r){var a=gq(r);return Zi(a)!==a}function VO(r){return!!(r.flags&58982400||$y(r)||Mu(r)&&!IW(r)||r.flags&1048576&&e.some(r.types,MW)||r.flags&2097152&&ks(r,465829888)&&e.some(r.types,sg))}function Kf(r,a,u){return a===void 0&&(a=Oe),r=Zi(r),VO(r)?JO(r,a):r.flags&1048576?ho(e.map(r.types,function(f){return Kf(f,a,u)})):r.flags&2097152?zi(e.map(r.types,function(f){return Kf(f,a,u)})):e.getObjectFlags(r)&32?NW(r,a,u):r===dr?dr:r.flags&2?Xe:r.flags&131073?gt:OW(r,(u?128:402653316)|(a?0:12584),a===Oe&&!u)}function zO(r){if(Oe)return r;var a=iW();return a?Jv(a,[r,Ft]):Ft}function FW(r){var a=zO(Kf(r));return a.flags&131072?Ft:a}function LW(r){var a=Mi(r);if(!a.resolvedType)switch(r.operator){case 141:a.resolvedType=Kf(ea(r.type));break;case 156:a.resolvedType=r.type.kind===153?NA(e.walkUpParenthesizedTypes(r.parent)):ar;break;case 146:a.resolvedType=ea(r.type);break;default:throw e.Debug.assertNever(r.operator)}return a.resolvedType}function RW(r){var a=Mi(r);return a.resolvedType||(a.resolvedType=Gg(t([r.head.text],e.map(r.templateSpans,function(u){return u.literal.text}),!0),e.map(r.templateSpans,function(u){return ea(u.type)}))),a.resolvedType}function Gg(r,a){var u=e.findIndex(a,function(Be){return!!(Be.flags&1179648)});if(u>=0)return lb(a)?Ts(a[u],function(Be){return Gg(r,e.replaceElement(a,u,Be))}):ar;if(e.contains(a,dr))return dr;var f=[],p=[],g=r[0];if(!Se(r,a))return Ft;if(f.length===0)return kl(g);if(p.push(g),e.every(p,function(Be){return Be===""})){if(e.every(f,function(Be){return!!(Be.flags&4)}))return Ft;if(f.length===1&&Uv(f[0]))return f[0]}var j="".concat(Cl(f),"|").concat(e.map(p,function(Be){return Be.length}).join(","),"|").concat(p.join("")),pe=Dt.get(j);return pe||Dt.set(j,pe=jW(p,f)),pe;function Se(Be,fr){for(var sr=e.isArray(Be),gr=0;gr<fr.length;gr++){var _r=fr[gr],Kr=sr?Be[gr+1]:Be;if(_r.flags&101248){if(g+=BW(_r)||"",g+=Kr,!sr)return!0}else if(_r.flags&134217728){if(g+=_r.texts[0],!Se(_r.texts,_r.types))return!1;if(g+=Kr,!sr)return!0}else if(mm(_r)||_x(_r))f.push(_r),p.push(g),g=Kr;else if(_r.flags&2097152){var mt=Se(Be[gr+1],_r.types);if(!mt)return!1}else if(sr)return!1}return!0}}function BW(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?e.pseudoBigIntToString(r.value):r.flags&98816?r.intrinsicName:void 0}function jW(r,a){var u=xu(134217728);return u.texts=r,u.types=a,u}function Rh(r,a){return a.flags&1179648?Ts(a,function(u){return Rh(r,u)}):a.flags&128?kl(WO(r,a.value)):a.flags&134217728?Gg.apply(void 0,JW(r,a.texts,a.types)):a.flags&268435456&&r===a.symbol?a:a.flags&268435461||mm(a)?qO(r,a):_x(a)?qO(r,Gg(["",""],[a])):a}function WO(r,a){switch(ge.get(r.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function JW(r,a,u){switch(ge.get(r.escapedName)){case 0:return[a.map(function(f){return f.toUpperCase()}),u.map(function(f){return Rh(r,f)})];case 1:return[a.map(function(f){return f.toLowerCase()}),u.map(function(f){return Rh(r,f)})];case 2:return[a[0]===""?a:t([a[0].charAt(0).toUpperCase()+a[0].slice(1)],a.slice(1),!0),a[0]===""?t([Rh(r,u[0])],u.slice(1),!0):u];case 3:return[a[0]===""?a:t([a[0].charAt(0).toLowerCase()+a[0].slice(1)],a.slice(1),!0),a[0]===""?t([Rh(r,u[0])],u.slice(1),!0):u]}return[a,u]}function qO(r,a){var u="".concat(ne(r),",").concat(Wc(a)),f=Me.get(u);return f||Me.set(u,f=UW(r,a)),f}function UW(r,a){var u=xu(268435456);return u.symbol=r,u.type=a,u}function VW(r,a,u,f,p){var g=xu(8388608);return g.objectType=r,g.indexType=a,g.accessFlags=u,g.aliasSymbol=f,g.aliasTypeArguments=p,g}function o0(r){if(mr)return!1;if(e.getObjectFlags(r)&4096)return!0;if(r.flags&1048576)return e.every(r.types,o0);if(r.flags&2097152)return e.some(r.types,o0);if(r.flags&465829888){var a=ab(r);return a!==r&&o0(a)}return!1}function SA(r,a){return Kc(r)?Jl(r):a&&e.isPropertyName(a)?e.getPropertyNameForPropertyNameNode(a):void 0}function DA(r,a){if(a.flags&8208){var u=e.findAncestor(r.parent,function(f){return!e.isAccessExpression(f)})||r.parent;return e.isCallLikeExpression(u)?e.isCallOrNewExpression(u)&&e.isIdentifier(r)&&X8(u,r):e.every(a.declarations,function(f){return!e.isFunctionLike(f)||!!(e.getCombinedNodeFlags(f)&268435456)})}return!0}function $O(r,a,u,f,p,g){var j,pe=p&&p.kind===209?p:void 0,Se=p&&e.isPrivateIdentifier(p)?void 0:SA(u,p);if(Se!==void 0){if(g&256)return rh(a,Se)||Ie;var Be=Fa(a,Se);if(Be){if(g&64&&p&&Be.declarations&&pp(Be)&&DA(p,Be)){var fr=(j=pe==null?void 0:pe.argumentExpression)!==null&&j!==void 0?j:e.isIndexedAccessTypeNode(p)?p.indexType:p;Yl(fr,Be.declarations,Se)}if(pe){if(Fb(Be,pe,r7(pe.expression,a.symbol)),J7(pe,Be,e.getAssignmentTargetKind(pe))){nt(pe.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,na(Be));return}if(g&8&&(Mi(p).resolvedSymbol=Be),G5(pe,Be))return We}var sr=_n(Be);return pe&&e.getAssignmentTargetKind(pe)!==1?Tm(pe,sr):sr}if(Ip(a,po)&&e.isNumericLiteralName(Se)){var gr=+Se;if(p&&Ip(a,function(Ti){return!Ti.target.hasRestElement})&&!(g&16)){var _r=xA(p);if(po(a)){if(gr<0)return nt(_r,e.Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ar;nt(_r,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Hn(a),_m(a),e.unescapeLeadingUnderscores(Se))}else nt(_r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(Se),Hn(a))}if(gr>=0)return Gn(nf(a,ht)),Ts(a,function(Ti){var li=d0(Ti)||Ar;return g&1?zi([li,Ar]):li})}}if(!(u.flags&98304)&&mc(u,402665900)){if(a.flags&131073)return a;var Kr=Ry(a,u)||nf(a,Ft);if(Kr){if(g&2&&Kr.keyType!==ht){pe&&nt(pe,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Hn(u),Hn(r));return}if(p&&Kr.keyType===Ft&&!mc(u,12)){var _r=xA(p);return nt(_r,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Hn(u)),g&1?zi([Kr.type,Ar]):Kr.type}return Gn(Kr),g&1&&!(a.symbol&&a.symbol.flags&384&&u.symbol&&u.flags&1024&&Bc(u.symbol)===a.symbol)?zi([Kr.type,Ar]):Kr.type}if(u.flags&131072)return Xe;if(o0(a))return Ie;if(pe&&!_w(a)){if(lg(a)){if(mr&&u.flags&384)return ya.add(e.createDiagnosticForNode(pe,e.Diagnostics.Property_0_does_not_exist_on_type_1,u.value,Hn(a))),Ar;if(u.flags&12){var mt=e.map(a.properties,function(Ti){return _n(Ti)});return zi(e.append(mt,Ar))}}if(a.symbol===Fr&&Se!==void 0&&Fr.exports.has(Se)&&Fr.exports.get(Se).flags&418)nt(pe,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(Se),Hn(a));else if(mr&&!Ce.suppressImplicitAnyIndexErrors&&!(g&128))if(Se!==void 0&&Y5(Se,a)){var Vt=Hn(a);nt(pe,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Se,Vt,Vt+"["+e.getTextOfNode(pe.argumentExpression)+"]")}else if($f(a,ht))nt(pe.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var wt=void 0;if(Se!==void 0&&(wt=XP(Se,a)))wt!==void 0&&nt(pe.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Se,Hn(a),wt);else{var rn=IG(a,pe,u);if(rn!==void 0)nt(pe,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Hn(a),rn);else{var on=void 0;if(u.flags&1024)on=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Hn(u)+"]",Hn(a));else if(u.flags&8192){var Un=su(u.symbol,pe);on=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Un+"]",Hn(a))}else u.flags&128||u.flags&256?on=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,u.value,Hn(a)):u.flags&12&&(on=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Hn(u),Hn(a)));on=e.chainDiagnosticMessages(on,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Hn(f),Hn(a)),ya.add(e.createDiagnosticForNodeFromMessageChain(pe,on))}}}return}}if(o0(a))return Ie;if(p){var _r=xA(p);u.flags&384?nt(_r,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+u.value,Hn(a)):u.flags&12?nt(_r,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Hn(a),Hn(u)):nt(_r,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Hn(u))}if(fa(u))return u;return;function Gn(Ti){Ti&&Ti.isReadonly&&pe&&(e.isAssignmentTarget(pe)||e.isDeleteTarget(pe))&&nt(pe,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Hn(a))}}function xA(r){return r.kind===209?r.argumentExpression:r.kind===196?r.indexType:r.kind===164?r.expression:r}function _x(r){return!!(r.flags&77)||Uv(r)}function Uv(r){return!!(r.flags&134217728)&&e.every(r.types,_x)||!!(r.flags&268435456)&&_x(r.type)}function Bh(r){return!!s0(r)}function ng(r){return!!(s0(r)&4194304)}function mm(r){return!!(s0(r)&8388608)}function s0(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|e.reduceLeft(r.types,function(a,u){return a|s0(u)},0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|s0(r.baseType)|s0(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||Mu(r)||$y(r)?4194304:0)|(r.flags&465829888&&!Uv(r)?8388608:0)}function Vd(r,a){return r.flags&8388608?WW(r,a):r.flags&16777216?qW(r,a):r}function HO(r,a,u){if(r.flags&1048576||r.flags&2097152&&!VO(r)){var f=e.map(r.types,function(p){return Vd(Fu(p,a),u)});return r.flags&2097152||u?ho(f):zi(f)}}function zW(r,a,u){if(a.flags&1048576){var f=e.map(a.types,function(p){return Vd(Fu(r,p),u)});return u?ho(f):zi(f)}}function WW(r,a){var u=a?"simplifiedForWriting":"simplifiedForReading";if(r[u])return r[u]===Ka?r:r[u];r[u]=Ka;var f=Vd(r.objectType,a),p=Vd(r.indexType,a),g=zW(f,p,a);if(g)return r[u]=g;if(!(p.flags&465829888)){var j=HO(f,p,a);if(j)return r[u]=j}if($y(f)&&p.flags&296){var pe=Ix(f,p.flags&8?0:f.target.fixedLength,0,a);if(pe)return r[u]=pe}if(Mu(f)){var Se=cd(f);if(!Se||So(Se,Tl(f)))return r[u]=Ts(mx(f,r.indexType),function(Be){return Vd(Be,a)})}return r[u]=r}function qW(r,a){var u=r.checkType,f=r.extendsType,p=vm(r),g=ym(r);if(g.flags&131072&&hm(p)===hm(u)){if(u.flags&1||So(Kg(u),Kg(f)))return Vd(p,a);if(GO(u,f))return Xe}else if(p.flags&131072&&hm(g)===hm(u)){if(!(u.flags&1)&&So(Kg(u),Kg(f)))return Xe;if(u.flags&1||GO(u,f))return Vd(g,a)}return r}function GO(r,a){return!!(zi([Mv(r,a),Xe]).flags&131072)}function mx(r,a){var u=Cu([Tl(r)],[a]),f=Sm(r.mapper,u);return Sa(qf(r.target||r),f)}function Fu(r,a,u,f,p,g){return u===void 0&&(u=0),gm(r,a,u,f,p,g)||(f?ar:ur)}function KO(r,a){return Ip(r,function(u){if(u.flags&384){var f=Jl(u);if(e.isNumericLiteralName(f)){var p=+f;return p>=0&&p<a}}return!1})}function gm(r,a,u,f,p,g){if(u===void 0&&(u=0),r===dr||a===dr)return dr;if(g8(r)&&!(a.flags&98304)&&mc(a,12)&&(a=Ft),Ce.noUncheckedIndexedAccess&&u&32&&(u|=1),mm(a)||(f&&f.kind!==196?$y(r)&&!KO(a,r.target.fixedLength):ng(r)&&!(po(r)&&KO(a,r.target.fixedLength)))){if(r.flags&3)return r;var j=u&1,pe=r.id+","+a.id+","+j+jv(p,g),Se=ft.get(pe);return Se||ft.set(pe,Se=VW(r,a,j,p,g)),Se}var Be=Kt(r);if(a.flags&1048576&&!(a.flags&16)){for(var fr=[],sr=!1,gr=0,_r=a.types;gr<_r.length;gr++){var Kr=_r[gr],mt=$O(r,Be,Kr,a,f,u|(sr?128:0));if(mt)fr.push(mt);else if(f)sr=!0;else return}return sr?void 0:u&4?ho(fr,p,g):zi(fr,1,p,g)}return $O(r,Be,a,a,f,u|8|64)}function QO(r){var a=Mi(r);if(!a.resolvedType){var u=ea(r.objectType),f=ea(r.indexType),p=jh(r);a.resolvedType=Fu(u,f,0,r,p,Vv(p))}return a.resolvedType}function TA(r){var a=Mi(r);if(!a.resolvedType){var u=ll(32,r.symbol);u.declaration=r,u.aliasSymbol=jh(r),u.aliasTypeArguments=Vv(u.aliasSymbol),a.resolvedType=u,Ul(u)}return a.resolvedType}function hm(r){return r.flags&33554432?r.baseType:r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Fu(hm(r.objectType),hm(r.indexType)):r}function $W(r){var a=Uc(r);return a&&(ng(a)||mm(a))?Dx(r):r}function XO(r){return!r.isDistributive&&YO(r.node.checkType)&&YO(r.node.extendsType)}function YO(r){return e.isTupleTypeNode(r)&&e.length(r.elements)===1&&!e.isOptionalTypeNode(r.elements[0])&&!e.isRestTypeNode(r.elements[0])&&!(e.isNamedTupleMember(r.elements[0])&&(r.elements[0].questionToken||r.elements[0].dotDotDotToken))}function EA(r,a){return XO(r)&&po(a)?Go(a)[0]:a}function CA(r,a,u,f){for(var p,g,j=0;;){if(j===1e3){nt(me,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),p=ar;break}var pe=XO(r),Se=Sa(EA(r,hm(r.checkType)),a),Be=Bh(Se),fr=Sa(EA(r,r.extendsType),a);if(Se===dr||fr===dr)return dr;var sr=void 0;if(r.inferTypeParameters){var gr=e.sameMap(r.inferTypeParameters,$W),_r=gr!==r.inferTypeParameters?Cu(r.inferTypeParameters,gr):void 0,Kr=g0(gr,void 0,0);if(_r)for(var mt=Sm(a,_r),Vt=0,wt=gr;Vt<wt.length;Vt++){var rn=wt[Vt];r.inferTypeParameters.indexOf(rn)===-1&&(rn.mapper=mt)}Be||fd(Kr.inferences,Se,Sa(fr,_r),1536);var on=Sm(_r,Kr.mapper);sr=a?Sm(on,a):on}var Un=sr?Sa(EA(r,r.extendsType),sr):fr;if(!Be&&!Bh(Un)){if(!(Un.flags&3)&&(Se.flags&1&&!pe||!So(Tx(Se),Tx(Un)))){Se.flags&1&&!pe&&(g||(g=[])).push(Sa(ea(r.node.trueType),sr||a));var Gn=ea(r.node.falseType);if(Gn.flags&16777216){var Ti=Gn.root;if(Ti.node.parent===r.node&&(!Ti.isDistributive||Ti.checkType===r.checkType)){r=Ti;continue}if(Ai(Gn,a))continue}p=Sa(Gn,a);break}if(Un.flags&3||So(Kg(Se),Kg(Un))){var li=ea(r.node.trueType),Ja=sr||a;if(Ai(li,Ja))continue;p=Sa(li,Ja);break}}p=xu(16777216),p.root=r,p.checkType=Sa(r.checkType,a),p.extendsType=Sa(r.extendsType,a),p.mapper=a,p.combinedMapper=sr,p.aliasSymbol=u||r.aliasSymbol,p.aliasTypeArguments=u?f:zd(r.aliasTypeArguments,a);break}return g?zi(e.append(g,p)):p;function Ai(Ua,Wa){if(Ua.flags&16777216&&Wa){var Ga=Ua.root;if(Ga.outerTypeParameters){var Bo=Sm(Ua.mapper,Wa),jo=e.map(Ga.outerTypeParameters,function(hn){return bm(hn,Bo)}),No=Cu(Ga.outerTypeParameters,jo),Ca=Ga.isDistributive?bm(Ga.checkType,No):void 0;if(!Ca||Ca===Ga.checkType||!(Ca.flags&1179648))return r=Ga,a=No,u=void 0,f=void 0,Ga.aliasSymbol&&j++,!0}}return!1}}function vm(r){return r.resolvedTrueType||(r.resolvedTrueType=Sa(ea(r.root.node.trueType),r.mapper))}function ym(r){return r.resolvedFalseType||(r.resolvedFalseType=Sa(ea(r.root.node.falseType),r.mapper))}function HW(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?Sa(ea(r.root.node.trueType),r.combinedMapper):vm(r))}function ZO(r){var a;return r.locals&&r.locals.forEach(function(u){u.flags&262144&&(a=e.append(a,mn(u)))}),a}function GW(r){return r.isDistributive&&(_b(r.checkType,r.node.trueType)||_b(r.checkType,r.node.falseType))}function KW(r){var a=Mi(r);if(!a.resolvedType){var u=ea(r.checkType),f=jh(r),p=Vv(f),g=kp(r,!0),j=p?g:e.filter(g,function(Se){return _b(Se,r)}),pe={node:r,checkType:u,extendsType:ea(r.extendsType),isDistributive:!!(u.flags&262144),inferTypeParameters:ZO(r),outerTypeParameters:j,instantiations:void 0,aliasSymbol:f,aliasTypeArguments:p};a.resolvedType=CA(pe,void 0),j&&(pe.instantiations=new e.Map,pe.instantiations.set(Cl(j),a.resolvedType))}return a.resolvedType}function QW(r){var a=Mi(r);return a.resolvedType||(a.resolvedType=Bd(Zn(r.typeParameter))),a.resolvedType}function e8(r){return e.isIdentifier(r)?[r]:e.append(e8(r.left),r.right)}function XW(r){var a,u=Mi(r);if(!u.resolvedType){if(r.isTypeOf&&r.typeArguments)return nt(r,e.Diagnostics.Type_arguments_cannot_be_used_here),u.resolvedSymbol=en,u.resolvedType=ar;if(!e.isLiteralImportTypeNode(r))return nt(r.argument,e.Diagnostics.String_literal_expected),u.resolvedSymbol=en,u.resolvedType=ar;var f=r.isTypeOf?111551:r.flags&8388608?900095:788968,p=Ac(r,r.argument.literal);if(!p)return u.resolvedSymbol=en,u.resolvedType=ar;var g=!!(!((a=p.exports)===null||a===void 0)&&a.get("export=")),j=Rc(p,!1);if(e.nodeIsMissing(r.qualifier))if(j.flags&f)u.resolvedType=r8(r,u,j,f);else{var mt=f===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;nt(r,mt,r.argument.literal.text),u.resolvedSymbol=en,u.resolvedType=ar}else{for(var pe=e8(r.qualifier),Se=j,Be=void 0;Be=pe.shift();){var fr=pe.length?1920:f,sr=mo(Vs(Se)),gr=r.isTypeOf||e.isInJSFile(r)&&g?Fa(_n(sr),Be.escapedText,!1,!0):void 0,_r=r.isTypeOf?void 0:Nu(Dc(sr),Be.escapedText,fr),Kr=_r??gr;if(!Kr)return nt(Be,e.Diagnostics.Namespace_0_has_no_exported_member_1,su(Se),e.declarationNameToString(Be)),u.resolvedType=ar;Mi(Be).resolvedSymbol=Kr,Mi(Be.parent).resolvedSymbol=Kr,Se=Kr}u.resolvedType=r8(r,u,Se,f)}}return u.resolvedType}function r8(r,a,u,f){var p=Vs(u);return a.resolvedSymbol=p,f===111551?_n(u):cx(r,p)}function t8(r){var a=Mi(r);if(!a.resolvedType){var u=jh(r);if(Pp(r.symbol).size===0&&!u)a.resolvedType=ra;else{var f=ll(16,r.symbol);f.aliasSymbol=u,f.aliasTypeArguments=Vv(u),e.isJSDocTypeLiteral(r)&&r.isArrayType&&(f=zc(f)),a.resolvedType=f}}return a.resolvedType}function jh(r){for(var a=r.parent;e.isParenthesizedTypeNode(a)||e.isJSDocTypeExpression(a)||e.isTypeOperatorNode(a)&&a.operator===146;)a=a.parent;return e.isTypeAlias(a)?Zn(a):void 0}function Vv(r){return r?Ap(r):void 0}function kA(r){return!!(r.flags&524288)&&!Mu(r)}function AA(r){return ld(r)||!!(r.flags&474058748)}function PA(r,a){if(!(r.flags&1048576))return r;if(e.every(r.types,AA))return e.find(r.types,ld)||fn;var u=e.find(r.types,function(g){return!AA(g)});if(!u)return r;var f=e.find(r.types,function(g){return g!==u&&!AA(g)});if(f)return r;return p(u);function p(g){for(var j=e.createSymbolTable(),pe=0,Se=Ro(g);pe<Se.length;pe++){var Be=Se[pe];if(!(e.getDeclarationModifierFlagsFromSymbol(Be)&24)){if(gx(Be)){var fr=Be.flags&65536&&!(Be.flags&32768),sr=16777220,gr=Lo(sr,Be.escapedName,Z2(Be)|(a?8:0));gr.type=fr?Ar:dl(_n(Be),!0),gr.declarations=Be.declarations,gr.nameType=la(Be).nameType,gr.syntheticOrigin=Be,j.set(Be.escapedName,gr)}}}var _r=Es(g.symbol,j,e.emptyArray,e.emptyArray,_c(g));return _r.objectFlags|=131200,_r}}function ig(r,a,u,f,p){if(r.flags&1||a.flags&1)return Ie;if(r.flags&2||a.flags&2)return ur;if(r.flags&131072)return a;if(a.flags&131072)return r;if(r=PA(r,p),r.flags&1048576)return lb([r,a])?Ts(r,function(Gn){return ig(Gn,a,u,f,p)}):ar;if(a=PA(a,p),a.flags&1048576)return lb([r,a])?Ts(a,function(Gn){return ig(r,Gn,u,f,p)}):ar;if(a.flags&473960444)return r;if(ng(r)||ng(a)){if(ld(r))return a;if(r.flags&2097152){var g=r.types,j=g[g.length-1];if(kA(j)&&kA(a))return ho(e.concatenate(g.slice(0,g.length-1),[ig(j,a,u,f,p)]))}return ho([r,a])}for(var pe=e.createSymbolTable(),Se=new e.Set,Be=r===fn?_c(a):Ov([r,a]),fr=0,sr=Ro(a);fr<sr.length;fr++){var gr=sr[fr];e.getDeclarationModifierFlagsFromSymbol(gr)&24?Se.add(gr.escapedName):gx(gr)&&pe.set(gr.escapedName,wA(gr,p))}for(var _r=0,Kr=Ro(r);_r<Kr.length;_r++){var mt=Kr[_r];if(!(Se.has(mt.escapedName)||!gx(mt)))if(pe.has(mt.escapedName)){var gr=pe.get(mt.escapedName),Vt=_n(gr);if(gr.flags&16777216){var wt=e.concatenate(mt.declarations,gr.declarations),rn=4|mt.flags&16777216,on=Lo(rn,mt.escapedName);on.type=zi([_n(mt),rP(Vt)],2),on.leftSpread=mt,on.rightSpread=gr,on.declarations=wt,on.nameType=la(mt).nameType,pe.set(mt.escapedName,on)}}else pe.set(mt.escapedName,wA(mt,p))}var Un=Es(u,pe,e.emptyArray,e.emptyArray,e.sameMap(Be,function(Gn){return YW(Gn,p)}));return Un.objectFlags|=2228352|f,Un}function gx(r){var a;return!e.some(r.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(r.flags&106496)||!(!((a=r.declarations)===null||a===void 0)&&a.some(function(u){return e.isClassLike(u.parent)})))}function wA(r,a){var u=r.flags&65536&&!(r.flags&32768);if(!u&&a===uf(r))return r;var f=4|r.flags&16777216,p=Lo(f,r.escapedName,Z2(r)|(a?8:0));return p.type=u?Ar:_n(r),p.declarations=r.declarations,p.nameType=la(r).nameType,p.syntheticOrigin=r,p}function YW(r,a){return r.isReadonly!==a?Hf(r.keyType,r.type,a,r.declaration):r}function fb(r,a,u,f){var p=xu(r);return p.symbol=u,p.value=a,p.regularType=f||p,p}function zv(r){if(r.flags&2944){if(!r.freshType){var a=fb(r.flags,r.value,r.symbol,r);a.freshType=a,r.freshType=a}return r.freshType}return r}function Eu(r){return r.flags&2944?r.regularType:r.flags&1048576?r.regularType||(r.regularType=Ts(r,Eu)):r}function ag(r){return!!(r.flags&2944)&&r.freshType===r}function kl(r){var a;return xr.get(r)||(xr.set(r,a=fb(128,r)),a)}function Qf(r){var a;return Br.get(r)||(Br.set(r,a=fb(256,r)),a)}function hx(r){var a,u=e.pseudoBigIntToString(r);return Qr.get(u)||(Qr.set(u,a=fb(2048,r)),a)}function ZW(r,a,u){var f,p=typeof r=="string"?"@":"#",g=a+p+r,j=1024|(typeof r=="string"?128:256);return ct.get(g)||(ct.set(g,f=fb(j,r,u)),f)}function eq(r){if(r.literal.kind===104)return Pt;var a=Mi(r);return a.resolvedType||(a.resolvedType=Eu(Ra(r.literal))),a.resolvedType}function rq(r){var a=xu(8192);return a.symbol=r,a.escapedName="__@".concat(a.symbol.escapedName,"@").concat(ne(a.symbol)),a}function NA(r){if(e.isValidESSymbolDeclaration(r)){var a=e.isCommonJsExportPropertyAssignment(r)?Zn(r.left):Zn(r);if(a){var u=la(a);return u.uniqueESSymbolType||(u.uniqueESSymbolType=rq(a))}}return An}function tq(r){var a=e.getThisContainer(r,!1),u=a&&a.parent;if(u&&(e.isClassLike(u)||u.kind===261)&&!e.isStatic(a)&&(!e.isConstructorDeclaration(a)||e.isNodeDescendantOf(r,a.body)))return Ou(Zn(u)).thisType;if(u&&e.isObjectLiteralExpression(u)&&e.isBinaryExpression(u.parent)&&e.getAssignmentDeclarationKind(u.parent)===6)return Ou(Zn(u.parent.left).parent).thisType;var f=r.flags&8388608?e.getHostSignatureFromJSDoc(r):void 0;return f&&e.isFunctionExpression(f)&&e.isBinaryExpression(f.parent)&&e.getAssignmentDeclarationKind(f.parent)===3?Ou(Zn(f.parent.left).parent).thisType:wf(a)&&e.isNodeDescendantOf(r,a.body)?Ou(Zn(a)).thisType:(nt(r,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ar)}function vx(r){var a=Mi(r);return a.resolvedType||(a.resolvedType=tq(r)),a.resolvedType}function n8(r){return ea(pb(r.type)||r.type)}function pb(r){switch(r.kind){case 193:return pb(r.type);case 186:if(r.elements.length===1&&(r=r.elements[0],r.kind===188||r.kind===199&&r.dotDotDotToken))return pb(r.type);break;case 185:return r.elementType}}function nq(r){var a=Mi(r);return a.resolvedType||(a.resolvedType=r.dotDotDotToken?n8(r):dl(ea(r.type),!0,!!r.questionToken))}function ea(r){return Wz(i8(r),r)}function i8(r){switch(r.kind){case 131:case 315:case 316:return Ie;case 157:return ur;case 152:return Ft;case 148:return ht;case 160:return Yt;case 134:return Tn;case 153:return An;case 114:return ii;case 155:return Ar;case 104:return Pt;case 144:return Xe;case 149:return r.flags&262144&&!mr?Ie:Qt;case 139:return Ge;case 194:case 108:return vx(r);case 198:return eq(r);case 180:return cb(r);case 179:return r.assertsModifier?ii:Tn;case 230:return cb(r);case 183:return _O(r);case 185:case 186:return fW(r);case 187:return _W(r);case 189:return SW(r);case 190:return PW(r);case 317:return qz(r);case 319:return dl(ea(r.type));case 199:return nq(r);case 193:case 318:case 312:return ea(r.type);case 188:return n8(r);case 321:return NY(r);case 181:case 182:case 184:case 325:case 320:case 326:return t8(r);case 195:return LW(r);case 196:return QO(r);case 197:return TA(r);case 191:return KW(r);case 192:return QW(r);case 200:return RW(r);case 202:return XW(r);case 79:case 163:case 208:var a=ql(r);return a?mn(a):ar;default:return ar}}function yx(r,a,u){if(r&&r.length)for(var f=0;f<r.length;f++){var p=r[f],g=u(p,a);if(p!==g){var j=f===0?[]:r.slice(0,f);for(j.push(g),f++;f<r.length;f++)j.push(u(r[f],a));return j}}return r}function zd(r,a){return yx(r,a,Sa)}function bx(r,a){return yx(r,a,Wv)}function a8(r,a){return yx(r,a,hq)}function Cu(r,a){return r.length===1?og(r[0],a?a[0]:Ie):iq(r,a)}function bm(r,a){switch(a.kind){case 0:return r===a.source?a.target:r;case 1:{for(var u=a.sources,f=a.targets,p=0;p<u.length;p++)if(r===u[p])return f?f[p]:Ie;return r}case 2:{for(var u=a.sources,f=a.targets,p=0;p<u.length;p++)if(r===u[p])return f[p]();return r}case 3:return a.func(r);case 4:case 5:var g=bm(r,a.mapper1);return g!==r&&a.kind===4?Sa(g,a.mapper2):bm(g,a.mapper2)}}function og(r,a){return e.Debug.attachDebugPrototypeIfDebug({kind:0,source:r,target:a})}function iq(r,a){return e.Debug.attachDebugPrototypeIfDebug({kind:1,sources:r,targets:a})}function db(r,a){return e.Debug.attachDebugPrototypeIfDebug({kind:3,func:r,debugInfo:e.Debug.isDebugging?a:void 0})}function IA(r,a){return e.Debug.attachDebugPrototypeIfDebug({kind:2,sources:r,targets:a})}function Sx(r,a,u){return e.Debug.attachDebugPrototypeIfDebug({kind:r,mapper1:a,mapper2:u})}function o8(r){return Cu(r,void 0)}function aq(r,a){var u=r.inferences.slice(a);return Cu(e.map(u,function(f){return f.typeParameter}),e.map(u,function(){return ur}))}function Sm(r,a){return r?Sx(4,r,a):a}function oq(r,a){return r?Sx(5,r,a):a}function Jh(r,a,u){return u?Sx(5,og(r,a),u):og(r,a)}function c0(r,a,u){return r?Sx(5,r,og(a,u)):og(a,u)}function sq(r){return!r.constraint&&!oA(r)||r.constraint===Do?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=ic(r.symbol),r.restrictiveInstantiation.constraint=Do,r.restrictiveInstantiation)}function Dx(r){var a=ic(r.symbol);return a.target=r,a}function cq(r,a){return Rv(r.kind,r.parameterName,r.parameterIndex,Sa(r.type,a))}function Wv(r,a,u){var f;if(r.typeParameters&&!u){f=e.map(r.typeParameters,Dx),a=Sm(Cu(r.typeParameters,f),a);for(var p=0,g=f;p<g.length;p++){var j=g[p];j.mapper=a}}var pe=Cf(r.declaration,f,r.thisParameter&&OA(r.thisParameter,a),yx(r.parameters,a,OA),void 0,void 0,r.minArgumentCount,r.flags&39);return pe.target=r,pe.mapper=a,pe}function OA(r,a){var u=la(r);if(u.type&&!Xg(u.type))return r;e.getCheckFlags(r)&1&&(r=u.target,a=Sm(u.mapper,a));var f=Lo(r.flags,r.escapedName,1|e.getCheckFlags(r)&53256);return f.declarations=r.declarations,f.parent=r.parent,f.target=r,f.mapper=a,r.valueDeclaration&&(f.valueDeclaration=r.valueDeclaration),u.nameType&&(f.nameType=u.nameType),f}function uq(r,a,u,f){var p=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],g=Mi(p),j=r.objectFlags&4?g.resolvedType:r.objectFlags&64?r.target:r,pe=g.outerTypeParameters;if(!pe){var Se=kp(p,!0);if(wf(p)){var Be=Y1(p);Se=e.addRange(Se,Be)}pe=Se||e.emptyArray;var fr=r.objectFlags&8388612?[p]:r.symbol.declarations;pe=(j.objectFlags&8388612||j.symbol.flags&8192||j.symbol.flags&2048)&&!j.aliasTypeArguments?e.filter(pe,function(rn){return e.some(fr,function(on){return _b(rn,on)})}):pe,g.outerTypeParameters=pe}if(pe.length){var sr=Sm(r.mapper,a),gr=e.map(pe,function(rn){return bm(rn,sr)}),_r=u||r.aliasSymbol,Kr=u?f:zd(r.aliasTypeArguments,a),mt=Cl(gr)+jv(_r,Kr);j.instantiations||(j.instantiations=new e.Map,j.instantiations.set(Cl(pe)+jv(j.aliasSymbol,j.aliasTypeArguments),j));var Vt=j.instantiations.get(mt);if(!Vt){var wt=Cu(pe,gr);Vt=j.objectFlags&4?sA(r.target,r.node,wt,_r,Kr):j.objectFlags&32?s8(j,wt,_r,Kr):FA(j,wt,_r,Kr),j.instantiations.set(mt,Vt)}return Vt}return r}function lq(r){return!(r.parent.kind===180&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===202&&r.parent.typeArguments&&r===r.parent.qualifier)}function _b(r,a){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){for(var u=r.symbol.declarations[0].parent,f=a;f!==u;f=f.parent)if(!f||f.kind===238||f.kind===191&&e.forEachChild(f.extendsType,p))return!0;return p(a)}return!0;function p(g){switch(g.kind){case 194:return!!r.isThisType;case 79:return!r.isThisType&&e.isPartOfTypeNode(g)&&lq(g)&&i8(g)===r;case 183:var j=g.exprName,pe=e.getFirstIdentifier(j),Se=Wl(pe),Be=r.symbol.declarations[0],fr;if(Be.kind===165)fr=Be.parent;else if(r.isThisType)fr=Be;else return!0;return Se.declarations?e.some(Se.declarations,function(sr){return e.isNodeDescendantOf(sr,fr)})||e.some(g.typeArguments,p):!0;case 171:case 170:return!g.type&&!!g.body||e.some(g.typeParameters,p)||e.some(g.parameters,p)||!!g.type&&p(g.type)}return!!e.forEachChild(g,p)}}function xx(r){var a=Ul(r);if(a.flags&4194304){var u=hm(a.type);if(u.flags&262144)return u}}function s8(r,a,u,f){var p=xx(r);if(p){var g=Sa(p,a);if(p!==g)return s5(Zi(g),function(j){if(j.flags&61603843&&j!==dr&&!pa(j)){if(!r.declaration.nameType){var pe=void 0;if(Al(j)||j.flags&1&&bt(p,4)<0&&(pe=Uc(p))&&Ip(pe,Qg))return pq(j,r,Jh(p,j,a));if($y(j))return fq(j,r,p,a);if(po(j))return dq(j,r,Jh(p,j,a))}return FA(r,Jh(p,j,a))}return j},u,f)}return Sa(Ul(r),a)===dr?dr:FA(r,a,u,f)}function MA(r,a){return a&1?!0:a&2?!1:r}function fq(r,a,u,f){var p=r.target.elementFlags,g=e.map(Go(r),function(pe,Se){var Be=p[Se]&8?pe:p[Se]&4?zc(pe):Gf([pe],[p[Se]]);return s8(a,Jh(u,Be,f))}),j=MA(r.target.readonly,tf(a));return Gf(g,e.map(g,function(pe){return 8}),j)}function pq(r,a,u){var f=c8(a,ht,!0,u);return pa(f)?ar:zc(f,MA(qy(r),tf(a)))}function dq(r,a,u){var f=r.target.elementFlags,p=e.map(Go(r),function(Se,Be){return c8(a,kl(""+Be),!!(f[Be]&2),u)}),g=tf(a),j=g&4?e.map(f,function(Se){return Se&1?2:Se}):g&8?e.map(f,function(Se){return Se&2?1:Se}):f,pe=MA(r.target.readonly,g);return e.contains(p,ar)?ar:Gf(p,j,pe,r.target.labeledElementDeclarations)}function c8(r,a,u,f){var p=c0(f,Tl(r),a),g=Sa(qf(r.target||r),p),j=tf(r);return ue&&j&4&&!ks(g,49152)?Wd(g,!0):ue&&j&8&&u?gl(g,524288):g}function FA(r,a,u,f){var p=ll(r.objectFlags|64,r.symbol);if(r.objectFlags&32){p.declaration=r.declaration;var g=Tl(r),j=Dx(g);p.typeParameter=j,a=Sm(og(g,j),a),j.mapper=a}return r.objectFlags&8388608&&(p.node=r.node),p.target=r,p.mapper=a,p.aliasSymbol=u||r.aliasSymbol,p.aliasTypeArguments=u?f:zd(r.aliasTypeArguments,a),p.objectFlags|=p.aliasTypeArguments?ox(p.aliasTypeArguments):0,p}function LA(r,a,u,f){var p=r.root;if(p.outerTypeParameters){var g=e.map(p.outerTypeParameters,function(sr){return bm(sr,a)}),j=Cl(g)+jv(u,f),pe=p.instantiations.get(j);if(!pe){var Se=Cu(p.outerTypeParameters,g),Be=p.checkType,fr=p.isDistributive?bm(Be,Se):void 0;pe=fr&&Be!==fr&&fr.flags&1179648?s5(Zi(fr),function(sr){return CA(p,Jh(Be,sr,Se))},u,f):CA(p,Se,u,f),p.instantiations.set(j,pe)}return pe}return r}function Sa(r,a){return r&&a?u8(r,a,void 0,void 0):r}function u8(r,a,u,f){if(!Xg(r))return r;if(nr===100||we>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:nr,instantiationCount:we}),nt(me,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),ar;Ne++,we++,nr++;var p=_q(r,a,u,f);return nr--,p}function _q(r,a,u,f){var p=r.flags;if(p&262144)return bm(r,a);if(p&524288){var g=r.objectFlags;if(g&52){if(g&4&&!r.node){var j=r.resolvedTypeArguments,pe=zd(j,a);return pe!==j?mA(r.target,pe):r}return g&1024?mq(r,a):uq(r,a,u,f)}return r}if(p&3145728){var Se=r.flags&1048576?r.origin:void 0,Be=Se&&Se.flags&3145728?Se.types:r.types,fr=zd(Be,a);if(fr===Be&&u===r.aliasSymbol)return r;var sr=u||r.aliasSymbol,gr=u?f:zd(r.aliasTypeArguments,a);return p&2097152||Se&&Se.flags&2097152?ho(fr,sr,gr):zi(fr,1,sr,gr)}if(p&4194304)return Kf(Sa(r.type,a));if(p&134217728)return Gg(r.texts,zd(r.types,a));if(p&268435456)return Rh(r.symbol,Sa(r.type,a));if(p&8388608){var sr=u||r.aliasSymbol,gr=u?f:zd(r.aliasTypeArguments,a);return Fu(Sa(r.objectType,a),Sa(r.indexType,a),r.accessFlags,void 0,sr,gr)}if(p&16777216)return LA(r,Sm(r.mapper,a),u,f);if(p&33554432){var _r=Sa(r.baseType,a),Kr=Sa(r.constraint,a);return _r.flags&8650752&&Bh(Kr)?cA(_r,Kr):Kr.flags&3||So(Kg(_r),Kg(Kr))?_r:_r.flags&8650752?cA(_r,Kr):ho([Kr,_r])}return r}function mq(r,a){var u=Sa(r.mappedType,a);if(!(e.getObjectFlags(u)&32))return r;var f=Sa(r.constraintType,a);if(!(f.flags&4194304))return r;var p=B8(Sa(r.source,a),u,f);return p||r}function gq(r){return r.flags&262143?r:r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=Sa(r,pi))}function Tx(r){return r.flags&262143?r:r.permissiveInstantiation||(r.permissiveInstantiation=Sa(r,It))}function Kg(r){return r.flags&262143?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=Sa(r,et),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function hq(r,a){return Hf(r.keyType,Sa(r.type,a),r.isReadonly,r.declaration)}function zl(r){switch(e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r)),r.kind){case 215:case 216:case 171:case 259:return l8(r);case 207:return e.some(r.properties,zl);case 206:return e.some(r.elements,zl);case 224:return zl(r.whenTrue)||zl(r.whenFalse);case 223:return(r.operatorToken.kind===56||r.operatorToken.kind===60)&&(zl(r.left)||zl(r.right));case 299:return zl(r.initializer);case 214:return zl(r.expression);case 289:return e.some(r.properties,zl)||e.isJsxOpeningElement(r.parent)&&e.some(r.parent.parent.children,zl);case 288:{var a=r.initializer;return!!a&&zl(a)}case 291:{var u=r.expression;return!!u&&zl(u)}}return!1}function l8(r){return e.hasContextSensitiveParameters(r)||vq(r)}function vq(r){return!r.typeParameters&&!e.getEffectiveReturnTypeNode(r)&&!!r.body&&r.body.kind!==238&&zl(r.body)}function RA(r){return(e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r))&&l8(r)}function f8(r){if(r.flags&524288){var a=El(r);if(a.constructSignatures.length||a.callSignatures.length){var u=ll(16,r.symbol);return u.members=a.members,u.properties=a.properties,u.callSignatures=e.emptyArray,u.constructSignatures=e.emptyArray,u.indexInfos=e.emptyArray,u}}else if(r.flags&2097152)return ho(e.map(r.types,f8));return r}function ud(r,a){return Np(r,a,co)}function u0(r,a){return Np(r,a,co)?-1:0}function BA(r,a){return Np(r,a,Pi)?-1:0}function yq(r,a){return Np(r,a,In)?-1:0}function Dm(r,a){return Np(r,a,In)}function So(r,a){return Np(r,a,Pi)}function Uh(r,a){return r.flags&1048576?e.every(r.types,function(u){return Uh(u,a)}):a.flags&1048576?e.some(a.types,function(u){return Uh(r,u)}):r.flags&58982400?Uh(uu(r)||ur,a):a===Ot?!!(r.flags&67633152):a===ln?!!(r.flags&524288)&&bP(r):$u(r,Rd(a))||Al(a)&&!qy(a)&&Uh(r,qi)}function l0(r,a){return Np(r,a,Aa)}function Ex(r,a){return l0(r,a)||l0(a,r)}function vu(r,a,u,f,p,g){return Af(r,a,Pi,u,f,p,g)}function x_(r,a,u,f,p,g){return jA(r,a,Pi,u,f,p,g,void 0)}function jA(r,a,u,f,p,g,j,pe){return Np(r,a,u)?!0:!f||!mb(p,r,a,u,g,j,pe)?Af(r,a,u,f,g,j,pe):!1}function p8(r){return!!(r.flags&16777216||r.flags&2097152&&e.some(r.types,p8))}function mb(r,a,u,f,p,g,j){if(!r||p8(u))return!1;if(!Af(a,u,f,void 0)&&bq(r,a,u,f,p,g,j))return!0;switch(r.kind){case 291:case 214:return mb(r.expression,a,u,f,p,g,j);case 223:switch(r.operatorToken.kind){case 63:case 27:return mb(r.right,a,u,f,p,g,j)}break;case 207:return Pq(r,a,u,f,g,j);case 206:return kq(r,a,u,f,g,j);case 289:return Cq(r,a,u,f,g,j);case 216:return Sq(r,a,u,f,g,j)}return!1}function bq(r,a,u,f,p,g,j){for(var pe=La(a,0),Se=La(a,1),Be=0,fr=[Se,pe];Be<fr.length;Be++){var sr=fr[Be];if(e.some(sr,function(Kr){var mt=Ho(Kr);return!(mt.flags&131073)&&Af(mt,u,f,void 0)})){var gr=j||{};vu(a,u,r,p,g,gr);var _r=gr.errors[gr.errors.length-1];return e.addRelatedInfo(_r,e.createDiagnosticForNode(r,sr===Se?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function Sq(r,a,u,f,p,g){if(e.isBlock(r.body)||e.some(r.parameters,e.hasType))return!1;var j=qh(a);if(!j)return!1;var pe=La(u,0);if(!e.length(pe))return!1;var Se=r.body,Be=Ho(j),fr=zi(e.map(pe,Ho));if(!Af(Be,fr,f,void 0)){var sr=Se&&mb(Se,Be,fr,f,void 0,p,g);if(sr)return sr;var gr=g||{};if(Af(Be,fr,f,Se,void 0,p,gr),gr.errors)return u.symbol&&e.length(u.symbol.declarations)&&e.addRelatedInfo(gr.errors[gr.errors.length-1],e.createDiagnosticForNode(u.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!(e.getFunctionFlags(r)&2)&&!di(Be,"then")&&Af(Jb(Be),fr,f,void 0)&&e.addRelatedInfo(gr.errors[gr.errors.length-1],e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function Dq(r,a,u){var f=gm(a,u);if(f)return f;if(a.flags&1048576){var p=y8(r,a);if(p)return gm(p,u)}}function xq(r,a){r.contextualType=a;try{return r1(r,1,a)}finally{r.contextualType=void 0}}function f0(r,a,u,f,p,g){for(var j=!1,pe=r.next();!pe.done;pe=r.next()){var Se=pe.value,Be=Se.errorNode,fr=Se.innerExpression,sr=Se.nameType,gr=Se.errorMessage,_r=Dq(a,u,sr);if(!(!_r||_r.flags&8388608)){var Kr=gm(a,sr);if(Kr){var mt=SA(sr,void 0);if(!Af(Kr,_r,f,void 0)){var Vt=fr&&mb(fr,Kr,_r,f,void 0,p,g);if(j=!0,!Vt){var wt=g||{},rn=fr?xq(fr,Kr):Kr;if(tt&&WA(rn,_r)){var on=e.createDiagnosticForNode(Be,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Hn(rn),Hn(_r));ya.add(on),wt.errors=[on]}else{var Un=!!(mt&&(Fa(u,mt)||en).flags&16777216),Gn=!!(mt&&(Fa(a,mt)||en).flags&16777216);_r=Hv(_r,Un),Kr=Hv(Kr,Un&&Gn);var Ti=Af(rn,_r,f,Be,gr,p,wt);Ti&&rn!==Kr&&Af(Kr,_r,f,Be,gr,p,wt)}if(wt.errors){var li=wt.errors[wt.errors.length-1],Ja=Kc(sr)?Jl(sr):void 0,Ai=Ja!==void 0?Fa(u,Ja):void 0,Ua=!1;if(!Ai){var Wa=Ry(u,sr);Wa&&Wa.declaration&&!e.getSourceFileOfNode(Wa.declaration).hasNoDefaultLib&&(Ua=!0,e.addRelatedInfo(li,e.createDiagnosticForNode(Wa.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!Ua&&(Ai&&e.length(Ai.declarations)||u.symbol&&e.length(u.symbol.declarations))){var Ga=Ai&&e.length(Ai.declarations)?Ai.declarations[0]:u.symbol.declarations[0];e.getSourceFileOfNode(Ga).hasNoDefaultLib||e.addRelatedInfo(li,e.createDiagnosticForNode(Ga,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Ja&&!(sr.flags&8192)?e.unescapeLeadingUnderscores(Ja):Hn(sr),Hn(u)))}}}}}}}return j}function Tq(r){var a,u,f;return l(this,function(p){switch(p.label){case 0:if(!e.length(r.properties))return[2];a=0,u=r.properties,p.label=1;case 1:return a<u.length?(f=u[a],e.isJsxSpreadAttribute(f)||jP(e.idText(f.name))?[3,3]:[4,{errorNode:f.name,innerExpression:f.initializer,nameType:kl(e.idText(f.name))}]):[3,4];case 2:p.sent(),p.label=3;case 3:return a++,[3,1];case 4:return[2]}})}function Eq(r,a){var u,f,p,g,j;return l(this,function(pe){switch(pe.label){case 0:if(!e.length(r.children))return[2];u=0,f=0,pe.label=1;case 1:return f<r.children.length?(p=r.children[f],g=Qf(f-u),j=d8(p,g,a),j?[4,j]:[3,3]):[3,5];case 2:return pe.sent(),[3,4];case 3:u++,pe.label=4;case 4:return f++,[3,1];case 5:return[2]}})}function d8(r,a,u){switch(r.kind){case 291:return{errorNode:r,innerExpression:r.expression,nameType:a};case 11:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:a,errorMessage:u()};case 281:case 282:case 285:return{errorNode:r,innerExpression:r,nameType:a};default:return e.Debug.assertNever(r,"Found invalid jsx child")}}function Cq(r,a,u,f,p,g){var j=f0(Tq(r),a,u,f,p,g),pe;if(e.isJsxOpeningElement(r.parent)&&e.isJsxElement(r.parent.parent)){var Se=r.parent.parent,Be=rT(Yv(r)),fr=Be===void 0?"children":e.unescapeLeadingUnderscores(Be),sr=kl(fr),gr=Fu(u,sr),_r=e.getSemanticJsxChildren(Se.children);if(!e.length(_r))return j;var Kr=e.length(_r)>1,mt=Nc(gr,C8),Vt=Nc(gr,function(li){return!C8(li)});if(Kr){if(mt!==Xe){var wt=Gf(eT(Se,0)),rn=Eq(Se,Ti);j=f0(rn,wt,mt,f,p,g)||j}else if(!Np(Fu(a,sr),gr,f)){j=!0;var on=nt(Se.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,fr,Hn(gr));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(on)}}else if(Vt!==Xe){var Un=_r[0],Gn=d8(Un,sr,Ti);Gn&&(j=f0(function(){return l(this,function(li){switch(li.label){case 0:return[4,Gn];case 1:return li.sent(),[2]}})}(),a,u,f,p,g)||j)}else if(!Np(Fu(a,sr),gr,f)){j=!0;var on=nt(Se.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,fr,Hn(gr));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(on)}}return j;function Ti(){if(!pe){var li=e.getTextOfNode(r.parent.tagName),Ja=rT(Yv(r)),Ai=Ja===void 0?"children":e.unescapeLeadingUnderscores(Ja),Ua=Fu(u,kl(Ai)),Wa=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;pe=n(n({},Wa),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Wa,li,Ai,Hn(Ua))})}return pe}}function _8(r,a){var u,f,p,g;return l(this,function(j){switch(j.label){case 0:if(u=e.length(r.elements),!u)return[2];f=0,j.label=1;case 1:return f<u?qv(a)&&!Fa(a,""+f)?[3,3]:(p=r.elements[f],e.isOmittedExpression(p)?[3,3]:(g=Qf(f),[4,{errorNode:p,innerExpression:p,nameType:g}])):[3,4];case 2:j.sent(),j.label=3;case 3:return f++,[3,1];case 4:return[2]}})}function kq(r,a,u,f,p,g){if(u.flags&262140)return!1;if(qv(a))return f0(_8(r,u),a,u,f,p,g);var j=r.contextualType;r.contextualType=u;try{var pe=w5(r,1,!0);return r.contextualType=j,qv(pe)?f0(_8(r,u),pe,u,f,p,g):!1}finally{r.contextualType=j}}function Aq(r){var a,u,f,p,g;return l(this,function(j){switch(j.label){case 0:if(!e.length(r.properties))return[2];a=0,u=r.properties,j.label=1;case 1:if(!(a<u.length))return[3,8];if(f=u[a],e.isSpreadAssignment(f))return[3,7];if(p=zy(Zn(f),8576),!p||p.flags&131072)return[3,7];switch(g=f.kind,g){case 175:return[3,2];case 174:return[3,2];case 171:return[3,2];case 300:return[3,2];case 299:return[3,4]}return[3,6];case 2:return[4,{errorNode:f.name,innerExpression:void 0,nameType:p}];case 3:return j.sent(),[3,7];case 4:return[4,{errorNode:f.name,innerExpression:f.initializer,nameType:p,errorMessage:e.isComputedNonLiteralName(f.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return j.sent(),[3,7];case 6:e.Debug.assertNever(f),j.label=7;case 7:return a++,[3,1];case 8:return[2]}})}function Pq(r,a,u,f,p,g){return u.flags&262140?!1:f0(Aq(r),a,u,f,p,g)}function m8(r,a,u,f,p){return Af(r,a,Aa,u,f,p)}function wq(r,a,u){return JA(r,a,u?4:0,!1,void 0,void 0,BA,void 0)!==0}function Nq(r){return!r.typeParameters&&(!r.thisParameter||fa(x0(r.thisParameter)))&&r.parameters.length===1&&R(r)&&(x0(r.parameters[0])===Wo||fa(x0(r.parameters[0])))&&fa(Ho(r))}function JA(r,a,u,f,p,g,j,pe){if(r===a||Nq(a))return-1;var Se=Ku(a),Be=!ep(a)&&(u&8?ep(r)||Ku(r)>Se:Zf(r)>Se);if(Be)return 0;r.typeParameters&&r.typeParameters!==a.typeParameters&&(a=Bz(a),r=s7(r,a,void 0,j));var fr=Ku(r),sr=C0(r),gr=C0(a);(sr||gr)&&Sa(sr||gr,pe);var _r=a.declaration?a.declaration.kind:0,Kr=!(u&3)&&Ue&&_r!==171&&_r!==170&&_r!==173,mt=-1,Vt=rg(r);if(Vt&&Vt!==ii){var wt=rg(a);if(wt){var rn=!Kr&&j(Vt,wt,!1)||j(wt,Vt,f);if(!rn)return f&&p(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;mt&=rn}}for(var on=sr||gr?Math.min(fr,Se):Math.max(fr,Se),Un=sr||gr?on-1:-1,Gn=0;Gn<on;Gn++){var Ti=Gn===Un?T0(r,Gn):th(r,Gn),li=Gn===Un?T0(a,Gn):th(a,Gn);if(Ti&&li){var Ja=u&3?void 0:qh(qd(Ti)),Ai=u&3?void 0:qh(qd(li)),Ua=Ja&&Ai&&!Vl(Ja)&&!Vl(Ai)&&(Yc(Ti)&50331648)===(Yc(li)&50331648),rn=Ua?JA(Ai,Ja,u&8|(Kr?2:1),f,p,g,j,pe):!(u&3)&&!Kr&&j(Ti,li,!1)||j(li,Ti,f);if(rn&&u&8&&Gn>=Zf(r)&&Gn<Zf(a)&&j(Ti,li,!1)&&(rn=0),!rn)return f&&p(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Zy(r,Gn)),e.unescapeLeadingUnderscores(Zy(a,Gn))),0;mt&=rn}}if(!(u&4)){var Wa=tA(a)?Ie:a.declaration&&wf(a.declaration)?Ou(mo(a.declaration.symbol)):Ho(a);if(Wa===ii||Wa===Ie)return mt;var Ga=tA(r)?Ie:r.declaration&&wf(r.declaration)?Ou(mo(r.declaration.symbol)):Ho(r),Bo=Vl(a);if(Bo){var jo=Vl(r);if(jo)mt&=Iq(jo,Bo,f,p,j);else if(e.isIdentifierTypePredicate(Bo))return f&&p(e.Diagnostics.Signature_0_must_be_a_type_predicate,Tp(r)),0}else mt&=u&1&&j(Wa,Ga,!1)||j(Ga,Wa,f),!mt&&f&&g&&g(Ga,Wa)}return mt}function Iq(r,a,u,f,p){if(r.kind!==a.kind)return u&&(f(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),f(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wu(r),Wu(a))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==a.parameterIndex)return u&&(f(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,a.parameterName),f(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wu(r),Wu(a))),0;var g=r.type===a.type?-1:r.type&&a.type?p(r.type,a.type,u):0;return g===0&&u&&f(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wu(r),Wu(a)),g}function Oq(r,a){var u=t0(r),f=t0(a),p=Ho(u),g=Ho(f);return g===ii||Np(g,p,Pi)||Np(p,g,Pi)?wq(u,f,!0):!1}function UA(r){return r!==Ha&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function ld(r){return r.flags&524288?!Mu(r)&&UA(El(r)):r.flags&67108864?!0:r.flags&1048576?e.some(r.types,ld):r.flags&2097152?e.every(r.types,ld):!1}function sg(r){return!!(e.getObjectFlags(r)&16&&(r.members&&UA(r)||r.symbol&&r.symbol.flags&2048&&Pp(r.symbol).size===0))}function Mq(r){if(ue&&r.flags&1048576){if(!(r.objectFlags&33554432)){var a=r.types;r.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&e.some(a,sg)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function Wy(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function g8(r){return r.flags&524288&&!Mu(r)&&Ro(r).length===0&&_c(r).length===1&&!!nf(r,Ft)||r.flags&3145728&&e.every(r.types,g8)||!1}function VA(r,a,u){if(r===a)return!0;var f=ne(r)+","+ne(a),p=os.get(f);if(p!==void 0&&!(!(p&4)&&p&2&&u))return!!(p&1);if(r.escapedName!==a.escapedName||!(r.flags&256)||!(a.flags&256))return os.set(f,6),!1;for(var g=_n(a),j=0,pe=Ro(_n(r));j<pe.length;j++){var Se=pe[j];if(Se.flags&8){var Be=Fa(g,Se.escapedName);if(!Be||!(Be.flags&8))return u?(u(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(Se),Hn(mn(a),void 0,64)),os.set(f,6)):os.set(f,2),!1}}return os.set(f,1),!0}function gb(r,a,u,f){var p=r.flags,g=a.flags;return g&3||p&131072||r===dr?!0:g&131072?!1:!!(p&402653316&&g&4||p&128&&p&1024&&g&128&&!(g&1024)&&r.value===a.value||p&296&&g&8||p&256&&p&1024&&g&256&&!(g&1024)&&r.value===a.value||p&2112&&g&64||p&528&&g&16||p&12288&&g&4096||p&32&&g&32&&VA(r.symbol,a.symbol,f)||p&1024&&g&1024&&(p&1048576&&g&1048576&&VA(r.symbol,a.symbol,f)||p&2944&&g&2944&&r.value===a.value&&VA(Bc(r.symbol),Bc(a.symbol),f))||p&32768&&(!ue&&!(g&3145728)||g&49152)||p&65536&&(!ue&&!(g&3145728)||g&65536)||p&524288&&g&67108864&&!(u===Di&&sg(r)&&!(e.getObjectFlags(r)&8192))||(u===Pi||u===Aa)&&(p&1||p&264&&!(p&1024)&&(g&32||u===Pi&&g&256&&g&1024)||Mq(a)))}function Np(r,a,u){if(ag(r)&&(r=r.regularType),ag(a)&&(a=a.regularType),r===a)return!0;if(u!==co){if(u===Aa&&!(a.flags&131072)&&gb(a,r,u)||gb(r,a,u))return!0}else if(!((r.flags|a.flags)&61865984)){if(r.flags!==a.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&a.flags&524288){var f=u.get(GA(r,a,0,u,!1));if(f!==void 0)return!!(f&1)}return r.flags&469499904||a.flags&469499904?Af(r,a,u,void 0):!1}function h8(r,a){return e.getObjectFlags(r)&2048&&jP(a.escapedName)}function hb(r,a){for(;;){var u=ag(r)?r.regularType:e.getObjectFlags(r)&4?r.node?b_(r.target,Go(r)):XA(r)||r:r.flags&3145728?Fq(r,a):r.flags&33554432?a?r.baseType:uA(r):r.flags&25165824?Vd(r,a):r;if(u===r)return u;r=u}}function Fq(r,a){var u=Zi(r);if(u!==r)return u;if(r.flags&2097152&&e.some(r.types,sg)){var f=e.sameMap(r.types,function(p){return hb(p,a)});if(f!==r.types)return ho(f)}return r}function Af(r,a,u,f,p,g,j){var pe,Se,Be,fr,sr,gr=0,_r=0,Kr=0,mt=0,Vt=!1,wt=0,rn,on,Un=!1;e.Debug.assert(u!==co||!f,"no error reporting in identity checking");var Gn=si(r,a,3,!!f,p);if(on&&No(),Vt){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:a.id,depth:_r,targetDepth:Kr});var Ti=nt(f||me,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Hn(r),Hn(a));j&&(j.errors||(j.errors=[])).push(Ti)}else if(pe){if(g){var li=g();li&&(e.concatenateDiagnosticMessageChains(li,pe),pe=li)}var Ja=void 0;if(p&&f&&!Gn&&r.symbol){var Ai=la(r.symbol);if(Ai.originatingImport&&!e.isImportCall(Ai.originatingImport)){var Ua=Af(_n(Ai.target),a,u,void 0);if(Ua){var Wa=e.createDiagnosticForNode(Ai.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);Ja=e.append(Ja,Wa)}}}var Ti=e.createDiagnosticForNodeFromMessageChain(f,pe,Ja);Se&&e.addRelatedInfo.apply(void 0,t([Ti],Se,!1)),j&&(j.errors||(j.errors=[])).push(Ti),(!j||!j.skipLogging)&&ya.add(Ti)}return f&&j&&j.skipLogging&&Gn===0&&e.Debug.assert(!!j.errors,"missed opportunity to interact with error."),Gn!==0;function Ga(vt){pe=vt.errorInfo,rn=vt.lastSkippedInfo,on=vt.incompatibleStack,wt=vt.overrideNextErrorInfo,Se=vt.relatedInfo}function Bo(){return{errorInfo:pe,lastSkippedInfo:rn,incompatibleStack:on==null?void 0:on.slice(),overrideNextErrorInfo:wt,relatedInfo:Se==null?void 0:Se.slice()}}function jo(vt,jt,dn,zt,jn){wt++,rn=void 0,(on||(on=[])).push([vt,jt,dn,zt,jn])}function No(){var vt=on||[];on=void 0;var jt=rn;if(rn=void 0,vt.length===1){Ca.apply(void 0,vt[0]),jt&&qt.apply(void 0,t([void 0],jt,!1));return}for(var dn="",zt=[];vt.length;){var jn=vt.pop(),cn=jn[0],On=jn.slice(1);switch(cn.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{dn.indexOf("new ")===0&&(dn="(".concat(dn,")"));var ri=""+On[0];dn.length===0?dn="".concat(ri):e.isIdentifierText(ri,e.getEmitScriptTarget(Ce))?dn="".concat(dn,".").concat(ri):ri[0]==="["&&ri[ri.length-1]==="]"?dn="".concat(dn).concat(ri):dn="".concat(dn,"[").concat(ri,"]");break}case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(dn.length===0){var Ci=cn;cn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Ci=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:cn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Ci=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),zt.unshift([Ci,On[0],On[1]])}else{var ki=cn.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||cn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gi=cn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||cn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";dn="".concat(ki).concat(dn,"(").concat(Gi,")")}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{zt.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,On[0],On[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{zt.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,On[0],On[1],On[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: ".concat(cn.code))}}dn?Ca(dn[dn.length-1]===")"?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,dn):zt.shift();for(var Na=0,Pa=zt;Na<Pa.length;Na++){var eo=Pa[Na],cn=eo[0],On=eo.slice(1),Mo=cn.elidedInCompatabilityPyramid;cn.elidedInCompatabilityPyramid=!1,Ca.apply(void 0,t([cn],On,!1)),cn.elidedInCompatabilityPyramid=Mo}jt&&qt.apply(void 0,t([void 0],jt,!1))}function Ca(vt,jt,dn,zt,jn){e.Debug.assert(!!f),on&&No(),!vt.elidedInCompatabilityPyramid&&(pe=e.chainDiagnosticMessages(pe,vt,jt,dn,zt,jn))}function hn(vt){e.Debug.assert(!!pe),Se?Se.push(vt):Se=[vt]}function qt(vt,jt,dn){on&&No();var zt=rm(jt,dn),jn=zt[0],cn=zt[1],On=jt,ri=jn;if($v(jt)&&!zA(dn)&&(On=Xf(jt),e.Debug.assert(!So(On,dn),"generalized source shouldn't be assignable"),ri=m_(On)),dn.flags&262144&&dn!==bo&&dn!==Oo){var Ci=uu(dn),ki=void 0;Ci&&(So(On,Ci)||(ki=So(jt,Ci)))?Ca(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,ki?jn:ri,cn,Hn(Ci)):(pe=void 0,Ca(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,cn,ri))}if(vt)vt===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&tt&&v8(jt,dn).length&&(vt=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(u===Aa)vt=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(jn===cn)vt=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(tt&&v8(jt,dn).length)vt=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(jt.flags&128&&dn.flags&1048576){var Gi=OG(jt,dn);if(Gi){Ca(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,ri,cn,Hn(Gi));return}}vt=e.Diagnostics.Type_0_is_not_assignable_to_type_1}Ca(vt,ri,cn)}function yi(vt,jt){var dn=g_(vt.symbol)?Hn(vt,vt.symbol.valueDeclaration):Hn(vt),zt=g_(jt.symbol)?Hn(jt,jt.symbol.valueDeclaration):Hn(jt);(va===vt&&Ft===jt||Ia===vt&&ht===jt||$a===vt&&Tn===jt||SO()===vt&&An===jt)&&Ca(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,zt,dn)}function Bi(vt,jt,dn){return po(vt)?vt.target.readonly&&wx(jt)?(dn&&Ca(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(vt),Hn(jt)),!1):Qg(jt):qy(vt)&&wx(jt)?(dn&&Ca(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(vt),Hn(jt)),!1):po(jt)?Al(vt):!0}function ha(vt,jt,dn){return si(vt,jt,3,dn)}function si(vt,jt,dn,zt,jn,cn){if(dn===void 0&&(dn=3),zt===void 0&&(zt=!1),cn===void 0&&(cn=0),vt.flags&524288&&jt.flags&131068)return gb(vt,jt,u,zt?Ca:void 0)?-1:(zt&&qa(vt,jt,vt,jt,jn),0);var On=hb(vt,!1),ri=hb(jt,!0);if(On===ri)return-1;if(u===co)return On.flags!==ri.flags?0:On.flags&67358815?-1:(Ta(On,ri),Ht(On,ri,!1,0,dn));if(On.flags&262144&&lm(On)===ri)return-1;if(On.flags&470302716&&ri.flags&1048576){var Ci=ri.types,ki=Ci.length===2&&Ci[0].flags&98304?Ci[1]:Ci.length===3&&Ci[0].flags&98304&&Ci[1].flags&98304?Ci[2]:void 0;if(ki&&!(ki.flags&98304)&&(ri=hb(ki,!0),On===ri))return-1}if(u===Aa&&!(ri.flags&131072)&&gb(ri,On,u)||gb(On,ri,u,zt?Ca:void 0))return-1;if(On.flags&469499904||ri.flags&469499904){var Gi=!(cn&2)&&lg(On)&&e.getObjectFlags(On)&8192;if(Gi&&Za(On,ri,zt))return zt&&qt(jn,On,jt.aliasSymbol?jt:ri),0;var Na=(u!==Aa||sf(On))&&!(cn&2)&&On.flags&2752508&&On!==Ot&&ri.flags&2621440&&b8(ri)&&(Ro(On).length>0||Vw(On)),Pa=!!(e.getObjectFlags(On)&2048);if(Na&&!Rq(On,ri,Pa)){if(zt){var eo=Hn(vt.aliasSymbol?vt:On),Mo=Hn(jt.aliasSymbol?jt:ri),ao=La(On,0),ps=La(On,1);ao.length>0&&si(Ho(ao[0]),ri,1,!1)||ps.length>0&&si(Ho(ps[0]),ri,1,!1)?Ca(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,eo,Mo):Ca(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,eo,Mo)}return 0}Ta(On,ri);var us=On.flags&1048576&&On.types.length<4&&!(ri.flags&1048576)||ri.flags&1048576&&ri.types.length<4&&!(On.flags&469499904),lu=us?Pr(On,ri,zt,cn):Ht(On,ri,zt,cn,dn);if(lu)return lu}return zt&&qa(vt,jt,On,ri,jn),0}function qa(vt,jt,dn,zt,jn){var cn,On,ri=!!XA(vt),Ci=!!XA(jt);dn=vt.aliasSymbol||ri?vt:dn,zt=jt.aliasSymbol||Ci?jt:zt;var ki=wt>0;if(ki&&wt--,dn.flags&524288&&zt.flags&524288){var Gi=pe;Bi(dn,zt,!0),pe!==Gi&&(ki=!!pe)}if(dn.flags&524288&&zt.flags&131068)yi(dn,zt);else if(dn.symbol&&dn.flags&524288&&Ot===dn)Ca(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(e.getObjectFlags(dn)&2048&&zt.flags&2097152){var Na=zt.types,Pa=dg(H.IntrinsicAttributes,f),eo=dg(H.IntrinsicClassAttributes,f);if(!pa(Pa)&&!pa(eo)&&(e.contains(Na,Pa)||e.contains(Na,eo)))return}else pe=ac(pe,jt);if(!jn&&ki){rn=[dn,zt];return}if(qt(jn,dn,zt),dn.flags&262144&&(!((On=(cn=dn.symbol)===null||cn===void 0?void 0:cn.declarations)===null||On===void 0)&&On[0])&&!lm(dn)){var Mo=Dx(dn);if(Mo.constraint=Sa(zt,og(dn,Mo)),Mh(Mo)){var ao=Hn(zt,dn.symbol.declarations[0]);hn(e.createDiagnosticForNode(dn.symbol.declarations[0],e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint,ao))}}}function Ta(vt,jt){if(e.tracing&&vt.flags&3145728&&jt.flags&3145728){var dn=vt,zt=jt;if(dn.objectFlags&zt.objectFlags&32768)return;var jn=dn.types.length,cn=zt.types.length;jn*cn>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:vt.id,sourceSize:jn,targetId:jt.id,targetSize:cn,pos:f==null?void 0:f.pos,end:f==null?void 0:f.end})}}function Qa(vt,jt){var dn=function(zt,jn){var cn;jn=Gr(jn);var On=jn.flags&3145728?ja(jn,jt):Jd(jn,jt),ri=On&&_n(On)||((cn=$g(jn,jt))===null||cn===void 0?void 0:cn.type)||Ar;return e.append(zt,ri)};return zi(e.reduceLeft(vt,dn,void 0)||e.emptyArray)}function Za(vt,jt,dn){var zt;if(!Ob(jt)||!mr&&e.getObjectFlags(jt)&4096)return!1;var jn=!!(e.getObjectFlags(vt)&2048);if((u===Pi||u===Aa)&&(Tb(Ot,jt)||!jn&&ld(jt)))return!1;var cn=jt,On;jt.flags&1048576&&(cn=xF(vt,jt,si)||hee(jt),On=cn.flags&1048576?cn.types:[cn]);for(var ri=function(Pa){if(dt(Pa,vt.symbol)&&!h8(vt,Pa)){if(!zP(cn,Pa.escapedName,jn)){if(dn){var eo=Nc(cn,Ob);if(!f)return{value:e.Debug.fail()};if(e.isJsxAttributes(f)||e.isJsxOpeningLikeElement(f)||e.isJsxOpeningLikeElement(f.parent)){Pa.valueDeclaration&&e.isJsxAttribute(Pa.valueDeclaration)&&e.getSourceFileOfNode(f)===e.getSourceFileOfNode(Pa.valueDeclaration.name)&&(f=Pa.valueDeclaration.name);var Mo=na(Pa),ao=e7(Mo,eo),ps=ao?na(ao):void 0;ps?Ca(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Mo,Hn(eo),ps):Ca(e.Diagnostics.Property_0_does_not_exist_on_type_1,Mo,Hn(eo))}else{var us=((zt=vt.symbol)===null||zt===void 0?void 0:zt.declarations)&&e.firstOrUndefined(vt.symbol.declarations),ps=void 0;if(Pa.valueDeclaration&&e.findAncestor(Pa.valueDeclaration,function(Rt){return Rt===us})&&e.getSourceFileOfNode(us)===e.getSourceFileOfNode(f)){var lu=Pa.valueDeclaration;e.Debug.assertNode(lu,e.isObjectLiteralElementLike),f=lu;var cs=lu.name;e.isIdentifier(cs)&&(ps=XP(cs,eo))}ps!==void 0?Ca(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,na(Pa),Hn(eo),ps):Ca(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,na(Pa),Hn(eo))}}return{value:!0}}if(On&&!si(_n(Pa),Qa(On,Pa.escapedName),3,dn))return dn&&jo(e.Diagnostics.Types_of_property_0_are_incompatible,na(Pa)),{value:!0}}},Ci=0,ki=Ro(vt);Ci<ki.length;Ci++){var Gi=ki[Ci],Na=ri(Gi);if(typeof Na=="object")return Na.value}return!1}function dt(vt,jt){return vt.valueDeclaration&&jt.valueDeclaration&&vt.valueDeclaration.parent===jt.valueDeclaration}function Pr(vt,jt,dn,zt){if(vt.flags&1048576)return u===Aa?Vn(vt,jt,dn&&!(vt.flags&131068),zt):Ei(vt,jt,dn&&!(vt.flags&131068),zt);if(jt.flags&1048576)return Sn(m0(vt),jt,dn&&!(vt.flags&131068)&&!(jt.flags&131068));if(jt.flags&2097152)return ui(vt,jt,dn,2);if(u===Aa&&jt.flags&131068){var jn=e.sameMap(vt.types,function(cn){return cn.flags&465829888?uu(cn)||ur:cn});if(jn!==vt.types){if(vt=ho(jn),vt.flags&131072)return 0;if(!(vt.flags&2097152))return si(vt,jt,1,!1)||si(jt,vt,1,!1)}}return Vn(vt,jt,!1,1)}function qn(vt,jt){for(var dn=-1,zt=vt.types,jn=0,cn=zt;jn<cn.length;jn++){var On=cn[jn],ri=Sn(On,jt,!1);if(!ri)return 0;dn&=ri}return dn}function Sn(vt,jt,dn){var zt=jt.types;if(jt.flags&1048576){if(Ud(zt,vt))return-1;var jn=K8(jt,vt);if(jn){var cn=si(vt,jn,2,!1);if(cn)return cn}}for(var On=0,ri=zt;On<ri.length;On++){var Ci=ri[On],cn=si(vt,Ci,2,!1);if(cn)return cn}if(dn){var ki=y8(vt,jt,si);ki&&si(vt,ki,2,!0)}return 0}function ui(vt,jt,dn,zt){for(var jn=-1,cn=jt.types,On=0,ri=cn;On<ri.length;On++){var Ci=ri[On],ki=si(vt,Ci,2,dn,void 0,zt);if(!ki)return 0;jn&=ki}return jn}function Vn(vt,jt,dn,zt){var jn=vt.types;if(vt.flags&1048576&&Ud(jn,jt))return-1;for(var cn=jn.length,On=0;On<cn;On++){var ri=si(jn[On],jt,1,dn&&On===cn-1,void 0,zt);if(ri)return ri}return 0}function $n(vt,jt){return vt.flags&1048576&&jt.flags&1048576&&!(vt.types[0].flags&32768)&&jt.types[0].flags&32768?Gy(jt,-32769):jt}function Ei(vt,jt,dn,zt){for(var jn=-1,cn=vt.types,On=$n(vt,jt),ri=0;ri<cn.length;ri++){var Ci=cn[ri];if(On.flags&1048576&&cn.length>=On.types.length&&cn.length%On.types.length===0){var ki=si(Ci,On.types[ri%On.types.length],3,!1,void 0,zt);if(ki){jn&=ki;continue}}var Gi=si(Ci,jt,1,dn,void 0,zt);if(!Gi)return 0;jn&=Gi}return jn}function it(vt,jt,dn,zt,jn){if(vt===void 0&&(vt=e.emptyArray),jt===void 0&&(jt=e.emptyArray),dn===void 0&&(dn=e.emptyArray),vt.length!==jt.length&&u===co)return 0;for(var cn=vt.length<=jt.length?vt.length:jt.length,On=-1,ri=0;ri<cn;ri++){var Ci=ri<dn.length?dn[ri]:1,ki=Ci&7;if(ki!==4){var Gi=vt[ri],Na=jt[ri],Pa=-1;if(Ci&8?Pa=u===co?si(Gi,Na,3,!1):u0(Gi,Na):ki===1?Pa=si(Gi,Na,3,zt,void 0,jn):ki===2?Pa=si(Na,Gi,3,zt,void 0,jn):ki===3?(Pa=si(Na,Gi,3,!1),Pa||(Pa=si(Gi,Na,3,zt,void 0,jn))):(Pa=si(Gi,Na,3,zt,void 0,jn),Pa&&(Pa&=si(Na,Gi,3,zt,void 0,jn))),!Pa)return 0;On&=Pa}}return On}function Ht(vt,jt,dn,zt,jn){if(Vt)return 0;var cn=GA(vt,jt,zt,u,!1),On=u.get(cn);if(On!==void 0&&!(dn&&On&2&&!(On&4))){if(ai){var ri=On&24;ri&8&&Sa(vt,ji),ri&16&&Sa(vt,Wi)}return On&1?-1:0}if(!Be)Be=[],fr=[],sr=[];else{for(var Ci=cn.startsWith("*")?GA(vt,jt,zt,u,!0):void 0,ki=0;ki<gr;ki++)if(cn===Be[ki]||Ci&&Ci===Be[ki])return 3;if(_r===100||Kr===100)return Vt=!0,0}var Gi=gr;Be[gr]=cn,gr++;var Na=mt;jn&1&&(fr[_r]=vt,_r++,!(mt&1)&&Px(vt,fr,_r)&&(mt|=1)),jn&2&&(sr[Kr]=jt,Kr++,!(mt&2)&&Px(jt,sr,Kr)&&(mt|=2));var Pa,eo=0;ai&&(Pa=ai,ai=function(ao){return eo|=ao?16:8,Pa(ao)});var Mo;if(mt===3?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:vt.id,sourceIdStack:fr.map(function(ao){return ao.id}),targetId:jt.id,targetIdStack:sr.map(function(ao){return ao.id}),depth:_r,targetDepth:Kr}),Mo=3):(e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:vt.id,targetId:jt.id}),Mo=nn(vt,jt,dn,zt),e.tracing===null||e.tracing===void 0||e.tracing.pop()),ai&&(ai=Pa),jn&1&&_r--,jn&2&&Kr--,mt=Na,Mo){if(Mo===-1||_r===0&&Kr===0){if(Mo===-1||Mo===3)for(var ki=Gi;ki<gr;ki++)u.set(Be[ki],1|eo);gr=Gi}}else u.set(cn,(dn?4:0)|2|eo),gr=Gi;return Mo}function nn(vt,jt,dn,zt){var jn=Bo(),cn=Ln(vt,jt,dn,zt,jn);if(u!==co){if(!cn&&(vt.flags&2097152||vt.flags&262144&&jt.flags&1048576)){var On=Xk(vt.flags&2097152?vt.types:[vt],!!(jt.flags&1048576));On&&Ip(On,function(ri){return ri!==vt})&&(cn=si(On,jt,1,!1,void 0,zt))}cn&&!Un&&(jt.flags&2097152&&!ng(jt)&&vt.flags&2621440||kA(jt)&&!Qg(jt)&&vt.flags&2097152&&Gr(vt).flags&3670016&&!e.some(vt.types,function(ri){return!!(e.getObjectFlags(ri)&262144)}))&&(Un=!0,cn&=Io(vt,jt,dn,void 0,0),Un=!1)}return cn&&Ga(jn),cn}function Ln(vt,jt,dn,zt,jn){var cn,On,ri=!1,Ci=vt.flags,ki=jt.flags;if(u===co){if(Ci&3145728){var Gi=qn(vt,jt);return Gi&&(Gi&=qn(jt,vt)),Gi}if(Ci&4194304)return si(vt.type,jt.type,3,!1);if(Ci&8388608&&(cn=si(vt.objectType,jt.objectType,3,!1))&&(cn&=si(vt.indexType,jt.indexType,3,!1))||Ci&16777216&&vt.root.isDistributive===jt.root.isDistributive&&(cn=si(vt.checkType,jt.checkType,3,!1))&&(cn&=si(vt.extendsType,jt.extendsType,3,!1))&&(cn&=si(vm(vt),vm(jt),3,!1))&&(cn&=si(ym(vt),ym(jt),3,!1))||Ci&33554432&&(cn=si(vt.baseType,jt.baseType,3,!1))&&(cn&=si(vt.constraint,jt.constraint,3,!1)))return cn;if(!(Ci&524288))return 0}else if(Ci&3145728||ki&3145728){if(cn=Pr(vt,jt,dn,zt))return cn;if(!(Ci&465829888||Ci&524288&&ki&1048576||Ci&2097152&&ki&467402752))return 0}if(Ci&17301504&&vt.aliasSymbol&&vt.aliasTypeArguments&&vt.aliasSymbol===jt.aliasSymbol&&!(Cx(vt)||Cx(jt))){var Na=S8(vt.aliasSymbol);if(Na===e.emptyArray)return 1;var Pa=EF(vt.aliasTypeArguments,jt.aliasTypeArguments,Na,zt);if(Pa!==void 0)return Pa}if(P8(vt)&&!vt.target.readonly&&(cn=si(Go(vt)[0],jt,1))||P8(jt)&&(jt.target.readonly||wx(uu(vt)||vt))&&(cn=si(vt,Go(jt)[0],2)))return cn;if(ki&262144){if(e.getObjectFlags(vt)&32&&!vt.declaration.nameType&&si(Kf(jt),Ul(vt),3)&&!(tf(vt)&4)){var eo=qf(vt),Mo=Fu(jt,Tl(vt));if(cn=si(eo,Mo,3,dn))return cn}if(u===Aa&&Ci&262144){var ao=Uc(vt);if(ao&&Mh(vt))for(;ao&&pd(ao,function(L0){return!!(L0.flags&262144)});){if(cn=si(ao,jt,1,!1))return cn;ao=Uc(ao)}return 0}}else if(ki&4194304){var ps=jt.type;if(Ci&4194304&&(cn=si(ps,vt.type,3,!1)))return cn;if(po(ps)){if(cn=si(vt,wO(ps),2,dn))return cn}else{var ao=nb(ps);if(ao){if(si(vt,Kf(ao,jt.stringsOnly),2,dn)===-1)return-1}else if(Mu(ps)){var us=cd(ps),lu=Ul(ps),cs=void 0;if(us&&Fv(ps)){var js=Gr(Oh(ps)),Rt=[];eb(js,8576,!1,function(c1){return void Rt.push(Sa(us,c0(ps.mapper,Tl(ps),c1)))}),cs=zi(t(t([],Rt,!0),[us],!1))}else cs=us||lu;if(si(vt,cs,2,dn)===-1)return-1}}}else if(ki&8388608){if(Ci&8388608){if((cn=si(vt.objectType,jt.objectType,3,dn))&&(cn&=si(vt.indexType,jt.indexType,3,dn)),cn)return cn;dn&&(On=pe)}if(u===Pi||u===Aa){var ei=jt.objectType,Qi=jt.indexType,bi=uu(ei)||ei,Ni=uu(Qi)||Qi;if(!ng(bi)&&!mm(Ni)){var Xa=4|(bi!==ei?2:0),ao=gm(bi,Ni,Xa);if(ao){if(dn&&On&&Ga(jn),cn=si(vt,ao,2,dn,void 0,zt))return cn;dn&&On&&pe&&(pe=Zw([On])<=Zw([pe])?On:pe)}}}dn&&(On=void 0)}else if(Mu(jt)&&u!==co){var Ea=!!jt.declaration.nameType,eo=qf(jt),za=tf(jt);if(!(za&8)){if(!Ea&&eo.flags&8388608&&eo.objectType===vt&&eo.indexType===Tl(jt))return-1;if(!Mu(vt)){var cs=Ea?cd(jt):Ul(jt),xa=Kf(vt,void 0,!0),wa=za&4,es=wa?Mv(cs,xa):void 0;if(wa?!(es.flags&131072):si(cs,xa,3)){var Ao=qf(jt),Fs=Tl(jt),ys=Gy(Ao,-98305);if(!Ea&&ys.flags&8388608&&ys.indexType===Fs){if(cn=si(vt,ys.objectType,2,dn))return cn}else{var Js=Ea?es||cs:es?ho([es,Fs]):Fs,Mo=Fu(vt,Js);if(cn=si(Mo,Ao,3,dn))return cn}}On=pe,Ga(jn)}}}else if(ki&16777216){if(Px(jt,sr,Kr,10))return 3;var cc=jt;if(!cc.root.inferTypeParameters&&!GW(cc.root)){var ku=!So(Tx(cc.checkType),Tx(cc.extendsType)),hl=!ku&&So(Kg(cc.checkType),Kg(cc.extendsType));if((cn=ku?-1:si(vt,vm(cc),2,!1,void 0,zt))&&(cn&=hl?-1:si(vt,ym(cc),2,!1,void 0,zt),cn))return cn}}else if(ki&134217728){if(Ci&134217728){if(u===Aa)return D$(vt,jt)?0:-1;Sa(vt,Wi)}if(_P(vt,jt))return-1}else if(jt.flags&268435456&&!(vt.flags&268435456)&&dP(vt,jt))return-1;if(Ci&8650752){if(!(Ci&8388608&&ki&8388608)){var ao=lm(vt)||ur;if(cn=si(ao,jt,1,!1,void 0,zt))return cn;if(cn=si(Hu(ao,vt),jt,1,dn&&ao!==ur&&!(ki&Ci&262144),void 0,zt))return cn;if(Tr(vt)){var lf=lm(vt.indexType);if(lf&&(cn=si(Fu(vt.objectType,lf),jt,1,dn)))return cn}}}else if(Ci&4194304){if(cn=si(gt,jt,1,dn))return cn}else if(Ci&134217728&&!(ki&524288)){if(!(ki&134217728)){var ao=uu(vt);if(ao&&ao!==vt&&(cn=si(ao,jt,1,dn)))return cn}}else if(Ci&268435456)if(ki&268435456){if(vt.symbol!==jt.symbol)return 0;if(cn=si(vt.type,jt.type,3,dn))return cn}else{var ao=uu(vt);if(ao&&(cn=si(ao,jt,1,dn)))return cn}else if(Ci&16777216){if(Px(vt,fr,_r,10))return 3;if(ki&16777216){var md=vt.root.inferTypeParameters,Fp=vt.extendsType,Kh=void 0;if(md){var yg=g0(md,void 0,0,ha);fd(yg.inferences,jt.extendsType,Fp,1536),Fp=Sa(Fp,yg.mapper),Kh=yg.mapper}if(ud(Fp,jt.extendsType)&&(si(vt.checkType,jt.checkType,3)||si(jt.checkType,vt.checkType,3))&&((cn=si(Sa(vm(vt),Kh),vm(jt),3,dn))&&(cn&=si(ym(vt),ym(jt),3,dn)),cn))return cn}else{var bg=Mh(vt)?ZD(vt):void 0;if(bg&&(cn=si(bg,jt,1,dn)))return cn}var C_=ib(vt);if(C_&&(cn=si(C_,jt,1,dn)))return cn}else{if(u!==In&&u!==Di&&Hk(jt)&&ld(vt))return-1;if(Mu(jt))return Mu(vt)&&(cn=Rn(vt,jt,dn))?cn:0;var Qh=!!(Ci&131068);if(u!==co)vt=Gr(vt),Ci=vt.flags;else if(Mu(vt))return 0;if(e.getObjectFlags(vt)&4&&e.getObjectFlags(jt)&4&&vt.target===jt.target&&!po(vt)&&!(Cx(vt)||Cx(jt))){if(Nx(vt))return-1;var Na=$A(vt.target);if(Na===e.emptyArray)return 1;var Pa=EF(Go(vt),Go(jt),Na,zt);if(Pa!==void 0)return Pa}else{if(qy(jt)?Qg(vt):Al(jt)&&po(vt)&&!vt.target.readonly)return u!==co?si($f(vt,ht)||Ie,$f(jt,ht)||Ie,3,dn):0;if((u===In||u===Di)&&ld(jt)&&e.getObjectFlags(jt)&8192&&!ld(vt))return 0}if(Ci&2621440&&ki&524288){var fu=dn&&pe===jn.errorInfo&&!Qh;if(cn=Io(vt,jt,fu,void 0,zt),cn&&(cn&=is(vt,jt,0,fu),cn&&(cn&=is(vt,jt,1,fu),cn&&(cn&=vg(vt,jt,Qh,fu,zt)))),ri&&cn)pe=On||pe||jn.errorInfo;else if(cn)return cn}if(Ci&2621440&&ki&1048576){var Em=Gy(jt,36175872);if(Em.flags&1048576){var TF=ni(vt,Em);if(TF)return TF}}}return 0;function Zw(L0){return L0?e.reduceLeft(L0,function(c1,u1){return c1+1+Zw(u1.next)},0):0}function EF(L0,c1,u1,vee){if(cn=it(L0,c1,u1,dn,vee))return cn;if(e.some(u1,function(eN){return!!(eN&24)})){On=void 0,Ga(jn);return}var CF=c1&&Bq(c1,u1);if(ri=!CF,u1!==e.emptyArray&&!CF){if(ri&&!(dn&&e.some(u1,function(eN){return(eN&7)===0})))return 0;On=pe,Ga(jn)}}}function Rn(vt,jt,dn){var zt=u===Aa||(u===co?tf(vt)===tf(jt):rb(vt)<=rb(jt));if(zt){var jn,cn=Ul(jt),On=Sa(Ul(vt),rb(vt)<0?ji:Wi);if(jn=si(cn,On,3,dn)){var ri=Cu([Tl(vt)],[Tl(jt)]);if(Sa(cd(vt),ri)===Sa(cd(jt),ri))return jn&si(Sa(qf(vt),ri),qf(jt),3,dn)}}return 0}function ni(vt,jt){var dn=Ro(vt),zt=G8(dn,jt);if(!zt)return 0;for(var jn=1,cn=0,On=zt;cn<On.length;cn++){var ri=On[cn];if(jn*=Q$(Rs(ri)),jn>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:vt.id,targetId:jt.id,numCombinations:jn}),0}for(var Ci=new Array(zt.length),ki=new e.Set,Gi=0;Gi<zt.length;Gi++){var ri=zt[Gi],Na=Rs(ri);Ci[Gi]=Na.flags&1048576?Na.types:[Na],ki.add(ri.escapedName)}for(var Pa=e.cartesianProduct(Ci),eo=[],Mo=function(Qi){var bi=!1;e:for(var Ni=0,Xa=jt.types;Ni<Xa.length;Ni++){for(var Ea=Xa[Ni],za=function(es){var Ao=zt[es],Fs=Fa(Ea,Ao.escapedName);if(!Fs)return"continue-outer";if(Ao===Fs)return"continue";var ys=lo(vt,jt,Ao,Fs,function(Js){return Qi[es]},!1,0,ue||u===Aa);if(!ys)return"continue-outer"},xa=0;xa<zt.length;xa++){var wa=za(xa);switch(wa){case"continue-outer":continue e}}e.pushIfUnique(eo,Ea,e.equateValues),bi=!0}if(!bi)return{value:0}},ao=0,ps=Pa;ao<ps.length;ao++){var us=ps[ao],lu=Mo(us);if(typeof lu=="object")return lu.value}for(var cs=-1,js=0,Rt=eo;js<Rt.length;js++){var ei=Rt[js];if(cs&=Io(vt,ei,!1,ki,0),cs&&(cs&=is(vt,ei,0,!1),cs&&(cs&=is(vt,ei,1,!1),cs&&!(po(vt)&&po(ei))&&(cs&=vg(vt,ei,!1,!1,0)))),!cs)return cs}return cs}function wi(vt,jt){if(!jt||vt.length===0)return vt;for(var dn,zt=0;zt<vt.length;zt++)jt.has(vt[zt].escapedName)?dn||(dn=vt.slice(0,zt)):dn&&dn.push(vt[zt]);return dn||vt}function ia(vt,jt,dn,zt,jn){var cn=ue&&!!(e.getCheckFlags(jt)&48),On=dl(Rs(jt),!1,cn),ri=dn(vt);return si(ri,On,3,zt,void 0,jn)}function lo(vt,jt,dn,zt,jn,cn,On,ri){var Ci=e.getDeclarationModifierFlagsFromSymbol(dn),ki=e.getDeclarationModifierFlagsFromSymbol(zt);if(Ci&8||ki&8){if(dn.valueDeclaration!==zt.valueDeclaration)return cn&&(Ci&8&&ki&8?Ca(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,na(zt)):Ca(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,na(zt),Hn(Ci&8?vt:jt),Hn(Ci&8?jt:vt))),0}else if(ki&16){if(!zq(dn,zt))return cn&&Ca(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,na(zt),Hn(Vh(dn)||vt),Hn(Vh(zt)||jt)),0}else if(Ci&16)return cn&&Ca(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,na(zt),Hn(vt),Hn(jt)),0;if(u===Di&&uf(dn)&&!uf(zt))return 0;var Gi=ia(dn,zt,jn,cn,On);return Gi?!ri&&dn.flags&16777216&&zt.flags&106500&&!(zt.flags&16777216)?(cn&&Ca(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,na(zt),Hn(vt),Hn(jt)),0):Gi:(cn&&jo(e.Diagnostics.Types_of_property_0_are_incompatible,na(zt)),0)}function aa(vt,jt,dn,zt){var jn=!1;if(dn.valueDeclaration&&e.isNamedDeclaration(dn.valueDeclaration)&&e.isPrivateIdentifier(dn.valueDeclaration.name)&&vt.symbol&&vt.symbol.flags&32){var cn=dn.valueDeclaration.name.escapedText,On=e.getSymbolNameForPrivateIdentifier(vt.symbol,cn);if(On&&Fa(vt,On)){var ri=e.factory.getDeclarationName(vt.symbol.valueDeclaration),Ci=e.factory.getDeclarationName(jt.symbol.valueDeclaration);Ca(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ms(cn),ms(ri.escapedText===""?P:ri),ms(Ci.escapedText===""?P:Ci));return}}var ki=e.arrayFrom(lP(vt,jt,zt,!1));if((!p||p.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&p.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(jn=!0),ki.length===1){var Gi=na(dn,void 0,0,20);Ca.apply(void 0,t([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,Gi],rm(vt,jt),!1)),e.length(dn.declarations)&&hn(e.createDiagnosticForNode(dn.declarations[0],e.Diagnostics._0_is_declared_here,Gi)),jn&&pe&&wt++}else Bi(vt,jt,!1)&&(ki.length>5?Ca(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Hn(vt),Hn(jt),e.map(ki.slice(0,4),function(Na){return na(Na)}).join(", "),ki.length-4):Ca(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Hn(vt),Hn(jt),e.map(ki,function(Na){return na(Na)}).join(", ")),jn&&pe&&wt++)}function Io(vt,jt,dn,zt,jn){if(u===co)return xo(vt,jt,zt);var cn=-1;if(po(jt)){if(Qg(vt)){if(!jt.target.readonly&&(qy(vt)||po(vt)&&vt.target.readonly))return 0;var On=_m(vt),ri=_m(jt),Ci=po(vt)?vt.target.combinedFlags&4:4,ki=jt.target.combinedFlags&4,Gi=po(vt)?vt.target.minLength:0,Na=jt.target.minLength;if(!Ci&&On<Na)return dn&&Ca(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,On,Na),0;if(!ki&&ri<Gi)return dn&&Ca(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,Gi,ri),0;if(!ki&&(Ci||ri<On))return dn&&(Gi<Na?Ca(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,Na):Ca(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,ri)),0;for(var Pa=Go(vt),eo=Go(jt),Mo=Math.min(po(vt)?NO(vt.target,11):0,NO(jt.target,11)),ao=Math.min(po(vt)?dx(vt.target,11):0,ki?dx(jt.target,11):0),ps=!!zt,us=0;us<ri;us++){var lu=us<ri-ao?us:us+On-ri,cs=po(vt)&&(us<Mo||us>=ri-ao)?vt.target.elementFlags[lu]:4,js=jt.target.elementFlags[us];if(js&8&&!(cs&8))return dn&&Ca(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,us),0;if(cs&8&&!(js&12))return dn&&Ca(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,lu,us),0;if(js&1&&!(cs&1))return dn&&Ca(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,us),0;if(!(ps&&((cs&12||js&12)&&(ps=!1),ps&&(zt!=null&&zt.has(""+us))))){var Rt=po(vt)?us<Mo||us>=ri-ao?Hv(Pa[lu],!!(cs&js&2)):Ix(vt,Mo,ao)||Xe:Pa[0],ei=eo[us],Qi=cs&8&&js&4?zc(ei):Hv(ei,!!(js&2)),bi=si(Rt,Qi,3,dn,void 0,jn);if(!bi)return dn&&(ri>1||On>1)&&(us<Mo||us>=ri-ao||On-Mo-ao===1?jo(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,lu,us):jo(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Mo,On-ao-1,us)),0;cn&=bi}}return cn}if(jt.target.combinedFlags&12)return 0}var Ni=(u===In||u===Di)&&!lg(vt)&&!Nx(vt)&&!po(vt),Xa=fP(vt,jt,Ni,!1);if(Xa)return dn&&Oc(vt,jt)&&aa(vt,jt,Xa,Ni),0;if(lg(jt))for(var Ea=0,za=wi(Ro(vt),zt);Ea<za.length;Ea++){var xa=za[Ea];if(!Jd(jt,xa.escapedName)){var Rt=_n(xa);if(!(Rt.flags&32768))return dn&&Ca(e.Diagnostics.Property_0_does_not_exist_on_type_1,na(xa),Hn(jt)),0}}for(var wa=Ro(jt),es=po(vt)&&po(jt),Ao=0,Fs=wi(wa,zt);Ao<Fs.length;Ao++){var ys=Fs[Ao],Js=ys.escapedName;if(!(ys.flags&4194304)&&(!es||e.isNumericLiteralName(Js)||Js==="length")){var xa=Fa(vt,Js);if(xa&&xa!==ys){var bi=lo(vt,jt,xa,ys,Rs,dn,jn,u===Aa);if(!bi)return 0;cn&=bi}}}return cn}function xo(vt,jt,dn){if(!(vt.flags&524288&&jt.flags&524288))return 0;var zt=wi(wp(vt),dn),jn=wi(wp(jt),dn);if(zt.length!==jn.length)return 0;for(var cn=-1,On=0,ri=zt;On<ri.length;On++){var Ci=ri[On],ki=Jd(jt,Ci.escapedName);if(!ki)return 0;var Gi=KA(Ci,ki,si);if(!Gi)return 0;cn&=Gi}return cn}function is(vt,jt,dn,zt){var jn,cn;if(u===co)return vs(vt,jt,dn);if(jt===Ha||vt===Ha)return-1;var On=vt.symbol&&wf(vt.symbol.valueDeclaration),ri=jt.symbol&&wf(jt.symbol.valueDeclaration),Ci=La(vt,On&&dn===1?0:dn),ki=La(jt,ri&&dn===1?0:dn);if(dn===1&&Ci.length&&ki.length){var Gi=!!(Ci[0].flags&4),Na=!!(ki[0].flags&4);if(Gi&&!Na)return zt&&Ca(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!tp(Ci[0],ki[0],zt))return 0}var Pa=-1,eo=dn===1?Bs:Mc,Mo=e.getObjectFlags(vt),ao=e.getObjectFlags(jt);if(Mo&64&&ao&64&&vt.symbol===jt.symbol||Mo&4&&ao&4&&vt.target===jt.target)for(var ps=0;ps<ki.length;ps++){var us=al(Ci[ps],ki[ps],!0,zt,eo(Ci[ps],ki[ps]));if(!us)return 0;Pa&=us}else if(Ci.length===1&&ki.length===1){var lu=u===Aa||!!Ce.noStrictGenericChecks,cs=e.first(Ci),js=e.first(ki);if(Pa=al(cs,js,lu,zt,eo(cs,js)),!Pa&&zt&&dn===1&&Mo&ao&&(((jn=js.declaration)===null||jn===void 0?void 0:jn.kind)===173||((cn=cs.declaration)===null||cn===void 0?void 0:cn.kind)===173)){var Rt=function(wa){return Tp(wa,void 0,262144,dn)};return Ca(e.Diagnostics.Type_0_is_not_assignable_to_type_1,Rt(cs),Rt(js)),Ca(e.Diagnostics.Types_of_construct_signatures_are_incompatible),Pa}}else e:for(var ei=0,Qi=ki;ei<Qi.length;ei++){for(var bi=Qi[ei],Ni=Bo(),Xa=zt,Ea=0,za=Ci;Ea<za.length;Ea++){var xa=za[Ea],us=al(xa,bi,!0,Xa,eo(xa,bi));if(us){Pa&=us,Ga(Ni);continue e}Xa=!1}return Xa&&Ca(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Hn(vt),Tp(bi,void 0,void 0,dn)),0}return Pa}function Oc(vt,jt){var dn=Ms(vt,0),zt=Ms(vt,1),jn=wp(vt);return(dn.length||zt.length)&&!jn.length?!!(La(jt,0).length&&dn.length||La(jt,1).length&&zt.length):!0}function Mc(vt,jt){return vt.parameters.length===0&&jt.parameters.length===0?function(dn,zt){return jo(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(dn),Hn(zt))}:function(dn,zt){return jo(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Hn(dn),Hn(zt))}}function Bs(vt,jt){return vt.parameters.length===0&&jt.parameters.length===0?function(dn,zt){return jo(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(dn),Hn(zt))}:function(dn,zt){return jo(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Hn(dn),Hn(zt))}}function al(vt,jt,dn,zt,jn){return JA(dn?t0(vt):vt,dn?t0(jt):jt,u===Di?8:0,zt,Ca,jn,ha,Wi)}function vs(vt,jt,dn){var zt=La(vt,dn),jn=La(jt,dn);if(zt.length!==jn.length)return 0;for(var cn=-1,On=0;On<zt.length;On++){var ri=bb(zt[On],jn[On],!1,!1,!1,si);if(!ri)return 0;cn&=ri}return cn}function Mp(vt,jt,dn){for(var zt=-1,jn=jt.keyType,cn=vt.flags&2097152?Lv(vt):wp(vt),On=0,ri=cn;On<ri.length;On++){var Ci=ri[On];if(!h8(vt,Ci)&&kf(zy(Ci,8576),jn)){var ki=Rs(Ci),Gi=tt||ki.flags&32768||jn===ht||!(Ci.flags&16777216)?ki:gl(ki,524288),Na=si(Gi,jt.type,3,dn);if(!Na)return dn&&Ca(e.Diagnostics.Property_0_is_incompatible_with_index_signature,na(Ci)),0;zt&=Na}}for(var Pa=0,eo=_c(vt);Pa<eo.length;Pa++){var Mo=eo[Pa];if(kf(Mo.keyType,jn)){var Na=hg(Mo,jt,dn);if(!Na)return 0;zt&=Na}}return zt}function hg(vt,jt,dn){var zt=si(vt.type,jt.type,3,dn);return!zt&&dn&&(vt.keyType===jt.keyType?Ca(e.Diagnostics._0_index_signatures_are_incompatible,Hn(vt.keyType)):Ca(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Hn(vt.keyType),Hn(jt.keyType))),zt}function vg(vt,jt,dn,zt,jn){if(u===co)return Kd(vt,jt);for(var cn=_c(jt),On=e.some(cn,function(Pa){return Pa.keyType===Ft}),ri=-1,Ci=0,ki=cn;Ci<ki.length;Ci++){var Gi=ki[Ci],Na=!dn&&On&&Gi.type.flags&1?-1:Mu(vt)&&On?si(qf(vt),Gi.type,3,zt):rp(vt,Gi,zt,jn);if(!Na)return 0;ri&=Na}return ri}function rp(vt,jt,dn,zt){var jn=Ry(vt,jt.keyType);return jn?hg(jn,jt,dn):!(zt&1)&&Lx(vt)?Mp(vt,jt,dn):(dn&&Ca(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Hn(jt.keyType),Hn(vt)),0)}function Kd(vt,jt){var dn=_c(vt),zt=_c(jt);if(dn.length!==zt.length)return 0;for(var jn=0,cn=zt;jn<cn.length;jn++){var On=cn[jn],ri=nf(vt,On.keyType);if(!(ri&&si(ri.type,On.type,3)&&ri.isReadonly===On.isReadonly))return 0}return-1}function tp(vt,jt,dn){if(!vt.declaration||!jt.declaration)return!0;var zt=e.getSelectedEffectiveModifierFlags(vt.declaration,24),jn=e.getSelectedEffectiveModifierFlags(jt.declaration,24);return jn===8||jn===16&&zt!==8||jn!==16&&!zt?!0:(dn&&Ca(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,tm(zt),tm(jn)),!1)}}function zA(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!e.forEach(r.types,zA);if(r.flags&465829888){var a=lm(r);if(a&&a!==r)return zA(a)}return sf(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function v8(r,a){return po(r)&&po(a)?e.emptyArray:Ro(a).filter(function(u){return WA(di(r,u.escapedName),_n(u))})}function WA(r,a){return!!r&&!!a&&ks(r,32768)&&!!Fx(a)}function Lq(r){return Ro(r).filter(function(a){return Fx(_n(a))})}function y8(r,a,u){return u===void 0&&(u=BA),xF(r,a,u,!0)||dee(r,a)||_ee(r,a)||mee(r,a)||gee(r,a)}function qA(r,a,u,f,p){for(var g=r.types.map(function(on){}),j=0,pe=a;j<pe.length;j++){var Se=pe[j],Be=Se[0],fr=Se[1],sr=fi(r,fr);if(!(p&&sr&&e.getCheckFlags(sr)&16))for(var gr=0,_r=0,Kr=r.types;_r<Kr.length;_r++){var mt=Kr[_r],Vt=di(mt,fr);Vt&&u(Be(),Vt)?g[gr]=g[gr]===void 0?!0:g[gr]:g[gr]=!1,gr++}}var wt=g.indexOf(!0);if(wt===-1)return f;for(var rn=g.indexOf(!0,wt+1);rn!==-1;){if(!ud(r.types[wt],r.types[rn]))return f;rn=g.indexOf(!0,rn+1)}return r.types[wt]}function b8(r){if(r.flags&524288){var a=El(r);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&e.every(a.properties,function(u){return!!(u.flags&16777216)})}return r.flags&2097152?e.every(r.types,b8):!1}function Rq(r,a,u){for(var f=0,p=Ro(r);f<p.length;f++){var g=p[f];if(zP(a,g.escapedName,u))return!0}return!1}function $A(r){return r===_i||r===qi||r.objectFlags&8?je:D8(r.symbol,r.typeParameters)}function S8(r){return D8(r,la(r).typeParameters)}function D8(r,a){a===void 0&&(a=e.emptyArray);var u=la(r);if(!u.variances){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:a.length,id:Wc(mn(r))}),u.variances=e.emptyArray;for(var f=[],p=function(Se){var Be=HA(Se),fr=Be&65536?Be&32768?0:1:Be&32768?2:void 0;if(fr===void 0){var sr=!1,gr=!1,_r=ai;ai=function(Vt){return Vt?gr=!0:sr=!0};var Kr=vb(r,Se,ts),mt=vb(r,Se,En);fr=(So(mt,Kr)?1:0)|(So(Kr,mt)?2:0),fr===3&&So(vb(r,Se,ca),Kr)&&(fr=4),ai=_r,(sr||gr)&&(sr&&(fr|=8),gr&&(fr|=16))}f.push(fr)},g=0,j=a;g<j.length;g++){var pe=j[g];p(pe)}u.variances=f,e.tracing===null||e.tracing===void 0||e.tracing.pop({variances:f.map(e.Debug.formatVariance)})}return u.variances}function vb(r,a,u){var f=og(a,u),p=mn(r);if(pa(p))return p;var g=r.flags&524288?Jv(r,zd(la(r).typeParameters,f)):b_(p,zd(p.typeParameters,f));return sn.add(Wc(g)),g}function Cx(r){return sn.has(Wc(r))}function HA(r){var a,u;return(e.some((a=r.symbol)===null||a===void 0?void 0:a.declarations,function(f){return e.hasSyntacticModifier(f,32768)})?32768:0)|(e.some((u=r.symbol)===null||u===void 0?void 0:u.declarations,function(f){return e.hasSyntacticModifier(f,65536)})?65536:0)}function Bq(r,a){for(var u=0;u<a.length;u++)if((a[u]&7)===1&&r[u].flags&16384)return!0;return!1}function jq(r){return r.flags&262144&&!Uc(r)}function Jq(r){return!!(e.getObjectFlags(r)&4)&&!r.node}function kx(r){return Jq(r)&&e.some(Go(r),function(a){return!!(a.flags&262144)||kx(a)})}function Uq(r,a,u,f){var p=[],g="",j=Se(r,0),pe=Se(a,0);return"".concat(g).concat(j,",").concat(pe).concat(u);function Se(Be,fr){fr===void 0&&(fr=0);for(var sr=""+Be.target.id,gr=0,_r=Go(Be);gr<_r.length;gr++){var Kr=_r[gr];if(Kr.flags&262144){if(f||jq(Kr)){var mt=p.indexOf(Kr);mt<0&&(mt=p.length,p.push(Kr)),sr+="="+mt;continue}g="*"}else if(fr<4&&kx(Kr)){sr+="<"+Se(Kr,fr+1)+">";continue}sr+="-"+Kr.id}return sr}}function GA(r,a,u,f,p){if(f===co&&r.id>a.id){var g=r;r=a,a=g}var j=u?":"+u:"";return kx(r)&&kx(a)?Uq(r,a,j,p):"".concat(r.id,",").concat(a.id).concat(j)}function yb(r,a){if(e.getCheckFlags(r)&6){for(var u=0,f=r.containingType.types;u<f.length;u++){var p=f[u],g=Fa(p,r.escapedName),j=g&&yb(g,a);if(j)return j}return}return a(r)}function Vh(r){return r.parent&&r.parent.flags&32?mn(Bc(r)):void 0}function Ax(r){var a=Vh(r),u=a&&Jc(a)[0];return u&&di(u,r.escapedName)}function Vq(r,a){return yb(r,function(u){var f=Vh(u);return f?$u(f,a):!1})}function zq(r,a){return!yb(a,function(u){return e.getDeclarationModifierFlagsFromSymbol(u)&16?!Vq(r,Vh(u)):!1})}function x8(r,a,u){return yb(a,function(f){return e.getDeclarationModifierFlagsFromSymbol(f,u)&16?!$u(r,Vh(f)):!1})?void 0:r}function Px(r,a,u,f){if(f===void 0&&(f=3),u>=f)for(var p=p0(r),g=0,j=0,pe=0;pe<u;pe++){var Se=a[pe];if(p0(Se)===p){if(Se.id>=j&&(g++,g>=f))return!0;j=Se.id}}return!1}function p0(r){if(r.flags&524288&&!mP(r)){if(e.getObjectFlags(r)&&r.node)return r.node;if(r.symbol&&!(e.getObjectFlags(r)&16&&r.symbol.flags&32))return r.symbol;if(po(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function Wq(r,a){return KA(r,a,u0)!==0}function KA(r,a,u){if(r===a)return-1;var f=e.getDeclarationModifierFlagsFromSymbol(r)&24,p=e.getDeclarationModifierFlagsFromSymbol(a)&24;if(f!==p)return 0;if(f){if(iy(r)!==iy(a))return 0}else if((r.flags&16777216)!==(a.flags&16777216))return 0;return uf(r)!==uf(a)?0:u(_n(r),_n(a))}function qq(r,a,u){var f=Ku(r),p=Ku(a),g=Zf(r),j=Zf(a),pe=ep(r),Se=ep(a);return!!(f===p&&g===j&&pe===Se||u&&g<=j)}function bb(r,a,u,f,p,g){if(r===a)return-1;if(!qq(r,a,u)||e.length(r.typeParameters)!==e.length(a.typeParameters))return 0;if(a.typeParameters){for(var j=Cu(r.typeParameters,a.typeParameters),pe=0;pe<a.typeParameters.length;pe++){var Se=r.typeParameters[pe],Be=a.typeParameters[pe];if(!(Se===Be||g(Sa(Uy(Se),j)||ur,Uy(Be)||ur)&&g(Sa(fm(Se),j)||ur,fm(Be)||ur)))return 0}r=Wv(r,j,!0)}var fr=-1;if(!f){var sr=rg(r);if(sr){var gr=rg(a);if(gr){var _r=g(sr,gr);if(!_r)return 0;fr&=_r}}}for(var Kr=Ku(a),pe=0;pe<Kr;pe++){var Se=cf(r,pe),Be=cf(a,pe),_r=g(Be,Se);if(!_r)return 0;fr&=_r}if(!p){var mt=Vl(r),Vt=Vl(a);fr&=mt||Vt?$q(mt,Vt,g):g(Ho(r),Ho(a))}return fr}function $q(r,a,u){return r&&a&&vA(r,a)?r.type===a.type?-1:r.type&&a.type?u(r.type,a.type):0:0}function Hq(r){for(var a,u=0,f=r;u<f.length;u++){var p=f[u];if(!(p.flags&131072)){var g=Xf(p);if(a??(a=g),g===p||g!==a)return!1}}return!0}function T8(r){return e.reduceLeft(r,function(a,u){return a|(u.flags&1048576?T8(u.types):u.flags)},0)}function Gq(r){if(r.length===1)return r[0];var a=ue?e.sameMap(r,function(f){return Nc(f,function(p){return!(p.flags&98304)})}):r,u=Hq(a)?zi(a):e.reduceLeft(a,function(f,p){return Dm(f,p)?p:f});return a===r?u:Ox(u,T8(r)&98304)}function Kq(r){return e.reduceLeft(r,function(a,u){return Dm(u,a)?u:a})}function Al(r){return!!(e.getObjectFlags(r)&4)&&(r.target===_i||r.target===qi)}function qy(r){return!!(e.getObjectFlags(r)&4)&&r.target===qi}function Qg(r){return Al(r)||po(r)}function wx(r){return Al(r)&&!qy(r)||po(r)&&!r.target.readonly}function QA(r){return Al(r)?Go(r)[0]:void 0}function xm(r){return Al(r)||!(r.flags&98304)&&So(r,yu)}function XA(r){if(!(!(e.getObjectFlags(r)&4)||!(e.getObjectFlags(r.target)&3))){if(e.getObjectFlags(r)&33554432)return e.getObjectFlags(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;var a=r.target;if(e.getObjectFlags(a)&1){var u=qg(a);if(u&&u.expression.kind!==79&&u.expression.kind!==208)return}var f=Jc(a);if(f.length===1&&!Pp(r.symbol).size){var p=e.length(a.typeParameters)?Sa(f[0],Cu(a.typeParameters,Go(r).slice(0,a.typeParameters.length))):f[0];return e.length(Go(r))>e.length(a.typeParameters)&&(p=Hu(p,e.last(Go(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=p}}}function E8(r){return ue?r===at:r===rt}function Nx(r){var a=QA(r);return!!a&&E8(a)}function qv(r){return po(r)||!!Fa(r,"0")}function C8(r){return xm(r)||qv(r)}function Qq(r,a){var u=di(r,""+a);if(u)return u;if(Ip(r,po))return Ts(r,function(f){return d0(f)||Ar})}function Xq(r){return!(r.flags&240512)}function sf(r){return!!(r.flags&109440)}function k8(r){var a=y_(r);return a.flags&2097152?e.some(a.types,sf):sf(a)}function Yq(r){return r.flags&2097152&&e.find(r.types,sf)||r}function $v(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:e.every(r.types,sf):sf(r)}function Xf(r){return r.flags&1024?wv(r):r.flags&402653312?Ft:r.flags&256?ht:r.flags&2048?Yt:r.flags&512?Tn:r.flags&1048576?Zq(r):r}function Zq(r){var a,u="B".concat(Wc(r));return(a=uo(u))!==null&&a!==void 0?a:_s(u,Ts(r,Xf))}function cg(r){return r.flags&1024&&ag(r)?wv(r):r.flags&128&&ag(r)?Ft:r.flags&256&&ag(r)?ht:r.flags&2048&&ag(r)?Yt:r.flags&512&&ag(r)?Tn:r.flags&1048576?Ts(r,cg):r}function A8(r){return r.flags&8192?An:r.flags&1048576?Ts(r,A8):r}function YA(r,a){return hT(r,a)||(r=A8(cg(r))),Eu(r)}function e$(r,a,u){if(r&&sf(r)){var f=a?u?N0(a):a:void 0;r=YA(r,f)}return r}function ZA(r,a,u,f){if(r&&sf(r)){var p=a?mg(u,a,f):void 0;r=YA(r,p)}return r}function po(r){return!!(e.getObjectFlags(r)&4&&r.target.objectFlags&8)}function $y(r){return po(r)&&!!(r.target.combinedFlags&8)}function P8(r){return $y(r)&&r.target.elementFlags.length===1}function d0(r){return Ix(r,r.target.fixedLength)}function r$(r){var a=d0(r);return a&&zc(a)}function Ix(r,a,u,f){u===void 0&&(u=0),f===void 0&&(f=!1);var p=_m(r)-u;if(a<p){for(var g=Go(r),j=[],pe=a;pe<p;pe++){var Se=g[pe];j.push(r.target.elementFlags[pe]&8?Fu(Se,ht):Se)}return f?ho(j):zi(j)}}function t$(r,a){return _m(r)===_m(a)&&e.every(r.target.elementFlags,function(u,f){return(u&12)===(a.target.elementFlags[f]&12)})}function w8(r){var a=r.value;return a.base10Value==="0"}function N8(r){return Nc(r,function(a){return!!(Yc(a)&4194304)})}function n$(r){return Ts(r,i$)}function i$(r){return r.flags&4?Ju:r.flags&8?Up:r.flags&64?Vp:r===wn||r===un||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&w8(r)?r:Xe}function Ox(r,a){var u=a&~r.flags&98304;return u===0?r:zi(u===32768?[r,Ar]:u===65536?[r,Pt]:[r,Ar,Pt])}function Wd(r,a){a===void 0&&(a=!1),e.Debug.assert(ue);var u=a?St:Ar;return r.flags&32768||r.flags&1048576&&r.types[0]===u?r:zi([r,u])}function a$(r){return bu||(bu=n0("NonNullable",524288,void 0)||en),bu!==en?Jv(bu,[r]):ho([r,fn])}function qd(r){return ue?Wh(r,2097152):r}function I8(r){return ue?zi([r,Et]):r}function eP(r){return ue?zx(r,Et):r}function Mx(r,a,u){return u?e.isOutermostOptionalChain(a)?Wd(r):I8(r):r}function _0(r,a){return e.isExpressionOfOptionalChainRoot(a)?qd(r):e.isOptionalChain(a)?eP(r):r}function Hv(r,a){return tt&&a?zx(r,St):r}function Fx(r){return tt&&(r===St||r.flags&1048576&&Ud(r.types,St))}function rP(r){return tt?zx(r,St):gl(r,524288)}function o$(r,a){return(r.flags&524)!==0&&(a.flags&28)!==0}function Lx(r){var a=e.getObjectFlags(r);return r.flags&2097152?e.every(r.types,Lx):!!(r.symbol&&r.symbol.flags&7040&&!(r.symbol.flags&32)&&!Vw(r))||!!(a&4194304)||!!(a&1024&&Lx(r.source))}function zh(r,a){var u=Lo(r.flags,r.escapedName,e.getCheckFlags(r)&8);u.declarations=r.declarations,u.parent=r.parent,u.type=a,u.target=r,r.valueDeclaration&&(u.valueDeclaration=r.valueDeclaration);var f=la(r).nameType;return f&&(u.nameType=f),u}function s$(r,a){for(var u=e.createSymbolTable(),f=0,p=wp(r);f<p.length;f++){var g=p[f],j=_n(g),pe=a(j);u.set(g.escapedName,pe===j?g:zh(g,pe))}return u}function m0(r){if(!(lg(r)&&e.getObjectFlags(r)&8192))return r;var a=r.regularType;if(a)return a;var u=r,f=s$(r,m0),p=Es(u.symbol,f,u.callSignatures,u.constructSignatures,u.indexInfos);return p.flags=u.flags,p.objectFlags|=u.objectFlags&-8193,r.regularType=p,p}function O8(r,a,u){return{parent:r,propertyName:a,siblings:u,resolvedProperties:void 0}}function M8(r){if(!r.siblings){for(var a=[],u=0,f=M8(r.parent);u<f.length;u++){var p=f[u];if(lg(p)){var g=Jd(p,r.propertyName);g&&Zg(_n(g),function(j){a.push(j)})}}r.siblings=a}return r.siblings}function c$(r){if(!r.resolvedProperties){for(var a=new e.Map,u=0,f=M8(r);u<f.length;u++){var p=f[u];if(lg(p)&&!(e.getObjectFlags(p)&2097152))for(var g=0,j=Ro(p);g<j.length;g++){var pe=j[g];a.set(pe.escapedName,pe)}}r.resolvedProperties=e.arrayFrom(a.values())}return r.resolvedProperties}function u$(r,a){if(!(r.flags&4))return r;var u=_n(r),f=a&&O8(a,r.escapedName,void 0),p=tP(u,f);return p===u?r:zh(r,p)}function l$(r){var a=Wt.get(r.escapedName);if(a)return a;var u=zh(r,St);return u.flags|=16777216,Wt.set(r.escapedName,u),u}function f$(r,a){for(var u=e.createSymbolTable(),f=0,p=wp(r);f<p.length;f++){var g=p[f];u.set(g.escapedName,u$(g,a))}if(a)for(var j=0,pe=c$(a);j<pe.length;j++){var g=pe[j];u.has(g.escapedName)||u.set(g.escapedName,l$(g))}var Se=Es(r.symbol,u,e.emptyArray,e.emptyArray,e.sameMap(_c(r),function(Be){return Hf(Be.keyType,Gu(Be.type),Be.isReadonly)}));return Se.objectFlags|=e.getObjectFlags(r)&266240,Se}function Gu(r){return tP(r,void 0)}function tP(r,a){if(e.getObjectFlags(r)&196608){if(a===void 0&&r.widened)return r.widened;var u=void 0;if(r.flags&98305)u=Ie;else if(lg(r))u=f$(r,a);else if(r.flags&1048576){var f=a||O8(void 0,void 0,r.types),p=e.sameMap(r.types,function(g){return g.flags&98304?g:tP(g,f)});u=zi(p,e.some(p,ld)?2:1)}else r.flags&2097152?u=ho(e.sameMap(r.types,Gu)):Qg(r)&&(u=b_(r.target,e.sameMap(Go(r),Gu)));return u&&a===void 0&&(r.widened=u),u||r}return r}function Rx(r){var a=!1;if(e.getObjectFlags(r)&65536){if(r.flags&1048576)if(e.some(r.types,ld))a=!0;else for(var u=0,f=r.types;u<f.length;u++){var p=f[u];Rx(p)&&(a=!0)}if(Qg(r))for(var g=0,j=Go(r);g<j.length;g++){var p=j[g];Rx(p)&&(a=!0)}if(lg(r))for(var pe=0,Se=wp(r);pe<Se.length;pe++){var Be=Se[pe],p=_n(Be);e.getObjectFlags(p)&65536&&(Rx(p)||nt(Be.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,na(Be),Hn(Gu(p))),a=!0)}}return a}function ug(r,a,u){var f=Hn(Gu(a));if(!(e.isInJSFile(r)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(r),Ce))){var p;switch(r.kind){case 223:case 169:case 168:p=mr?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:var g=r;if(e.isIdentifier(g.name)&&(e.isCallSignatureDeclaration(g.parent)||e.isMethodSignature(g.parent)||e.isFunctionTypeNode(g.parent))&&g.parent.parameters.indexOf(g)>-1&&(Ls(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||g.name.originalKeywordKind&&e.isTypeNodeKind(g.name.originalKeywordKind))){var j="arg"+g.parent.parameters.indexOf(g),pe=e.declarationNameToString(g.name)+(g.dotDotDotToken?"[]":"");df(mr,r,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,j,pe);return}p=r.dotDotDotToken?mr?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:mr?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(p=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!mr)return;break;case 320:nt(r,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,f);return;case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(mr&&!r.name){u===3?nt(r,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,f):nt(r,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,f);return}p=mr?u===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:mr&&nt(r,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:p=mr?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}df(mr,r,p,e.declarationNameToString(e.getNameOfDeclaration(r)),f)}}function Bx(r,a,u){ee(function(){mr&&e.getObjectFlags(a)&65536&&(!u||!LP(r))&&(Rx(a)||ug(r,a,u))})}function nP(r,a,u){var f=Ku(r),p=Ku(a),g=E0(r),j=E0(a),pe=j?p-1:p,Se=g?pe:Math.min(f,pe),Be=rg(r);if(Be){var fr=rg(a);fr&&u(Be,fr)}for(var sr=0;sr<Se;sr++)u(cf(r,sr),cf(a,sr));j&&u(T0(r,Se),j)}function iP(r,a,u){var f=Vl(r),p=Vl(a);f&&p&&vA(f,p)&&f.type&&p.type?u(f.type,p.type):u(Ho(r),Ho(a))}function g0(r,a,u,f){return aP(r.map(oP),a,u,f||BA)}function p$(r,a){return a===void 0&&(a=0),r&&aP(e.map(r.inferences,L8),r.signature,r.flags|a,r.compareTypes)}function aP(r,a,u,f){var p={inferences:r,signature:a,flags:u,compareTypes:f,mapper:ji,nonFixingMapper:ji};return p.mapper=d$(p),p.nonFixingMapper=_$(p),p}function d$(r){return IA(e.map(r.inferences,function(a){return a.typeParameter}),e.map(r.inferences,function(a,u){return function(){return a.isFixed||(m$(r),jx(r.inferences),a.isFixed=!0),gP(r,u)}}))}function _$(r){return IA(e.map(r.inferences,function(a){return a.typeParameter}),e.map(r.inferences,function(a,u){return function(){return gP(r,u)}}))}function jx(r){for(var a=0,u=r;a<u.length;a++){var f=u[a];f.isFixed||(f.inferredType=void 0)}}function F8(r,a,u){var f;((f=r.intraExpressionInferenceSites)!==null&&f!==void 0?f:r.intraExpressionInferenceSites=[]).push({node:a,type:u})}function m$(r){if(r.intraExpressionInferenceSites){for(var a=0,u=r.intraExpressionInferenceSites;a<u.length;a++){var f=u[a],p=f.node,g=f.type,j=p.kind===171?k5(p,2):Lu(p,2);j&&fd(r.inferences,g,j)}r.intraExpressionInferenceSites=void 0}}function oP(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function L8(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function g$(r){var a=e.filter(r.inferences,ty);return a.length?aP(e.map(a,L8),r.signature,r.flags,r.compareTypes):void 0}function sP(r){return r&&r.mapper}function Xg(r){var a=e.getObjectFlags(r);if(a&524288)return!!(a&1048576);var u=!!(r.flags&465829888||r.flags&524288&&!R8(r)&&(a&4&&(r.node||e.forEach(Go(r),Xg))||a&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||a&12583968)||r.flags&3145728&&!(r.flags&1024)&&!R8(r)&&e.some(r.types,Xg));return r.flags&3899393&&(r.objectFlags|=524288|(u?1048576:0)),u}function R8(r){if(r.aliasSymbol&&!r.aliasTypeArguments){var a=e.getDeclarationOfKind(r.aliasSymbol,262);return!!(a&&e.findAncestor(a.parent,function(u){return u.kind===308?!0:u.kind===264?!1:"quit"}))}return!1}function cP(r,a){return!!(r===a||r.flags&3145728&&e.some(r.types,function(u){return cP(u,a)})||r.flags&16777216&&(vm(r)===a||ym(r)===a))}function h$(r){var a=e.createSymbolTable();Zg(r,function(f){if(f.flags&128){var p=e.escapeLeadingUnderscores(f.value),g=Lo(4,p);g.type=Ie,f.symbol&&(g.declarations=f.symbol.declarations,g.valueDeclaration=f.symbol.valueDeclaration),a.set(p,g)}});var u=r.flags&4?[Hf(Ft,fn,!1)]:e.emptyArray;return Es(void 0,a,e.emptyArray,e.emptyArray,u)}function B8(r,a,u){if(!Ve){var f=r.id+","+a.id+","+u.id;if(Ut.has(f))return Ut.get(f);Ve=!0;var p=v$(r,a,u);return Ve=!1,Ut.set(f,p),p}}function uP(r){return!(e.getObjectFlags(r)&262144)||lg(r)&&e.some(Ro(r),function(a){return uP(_n(a))})||po(r)&&e.some(Go(r),uP)}function v$(r,a,u){if(nf(r,Ft)||Ro(r).length!==0&&uP(r)){if(Al(r))return zc(Jx(Go(r)[0],a,u),qy(r));if(po(r)){var f=e.map(Go(r),function(j){return Jx(j,a,u)}),p=tf(a)&4?e.sameMap(r.target.elementFlags,function(j){return j&2?1:j}):r.target.elementFlags;return Gf(f,p,r.target.readonly,r.target.labeledElementDeclarations)}var g=ll(1040,void 0);return g.source=r,g.mappedType=a,g.constraintType=u,g}}function y$(r){var a=la(r);return a.type||(a.type=Jx(r.propertyType,r.mappedType,r.constraintType)),a.type}function Jx(r,a,u){var f=Fu(u.type,Tl(a)),p=qf(a),g=oP(f);return fd([g],r,p),j8(g)||ur}function lP(r,a,u,f){var p,g,j,pe,Se,Be,fr;return l(this,function(sr){switch(sr.label){case 0:p=Ro(a),g=0,j=p,sr.label=1;case 1:return g<j.length?(pe=j[g],xl(pe)?[3,5]:u||!(pe.flags&16777216||e.getCheckFlags(pe)&48)?(Se=Fa(r,pe.escapedName),Se?[3,3]:[4,pe]):[3,5]):[3,6];case 2:return sr.sent(),[3,5];case 3:return f?(Be=_n(pe),Be.flags&109440?(fr=_n(Se),fr.flags&1||Eu(fr)===Eu(Be)?[3,5]:[4,pe]):[3,5]):[3,5];case 4:sr.sent(),sr.label=5;case 5:return g++,[3,1];case 6:return[2]}})}function fP(r,a,u,f){var p=lP(r,a,u,f).next();if(!p.done)return p.value}function b$(r,a){return!(a.target.combinedFlags&8)&&a.target.minLength>r.target.minLength||!a.target.hasRestElement&&(r.target.hasRestElement||a.target.fixedLength<r.target.fixedLength)}function S$(r,a){return po(r)&&po(a)?b$(r,a):!!fP(r,a,!1,!0)&&!!fP(a,r,!1,!1)}function j8(r){return r.candidates?zi(r.candidates,2):r.contraCandidates?ho(r.contraCandidates):void 0}function pP(r){return!!Mi(r).skipDirectInference}function J8(r){return!!(r.symbol&&e.some(r.symbol.declarations,pP))}function D$(r,a){var u=r.texts[0],f=a.texts[0],p=r.texts[r.texts.length-1],g=a.texts[a.texts.length-1],j=Math.min(u.length,f.length),pe=Math.min(p.length,g.length);return u.slice(0,j)!==f.slice(0,j)||p.slice(p.length-pe)!==g.slice(g.length-pe)}function U8(r,a){if(r==="")return!1;var u=+r;return isFinite(u)&&(!a||""+u===r)}function x$(r){var a=r.startsWith("-"),u=e.parsePseudoBigInt("".concat(a?r.slice(1):r,"n"));return hx({negative:a,base10Value:u})}function V8(r,a){if(r==="")return!1;var u=e.createScanner(99,!1),f=!0;u.setOnError(function(){return f=!1}),u.setText(r+"n");var p=u.scan(),g=p===40;g&&(p=u.scan());var j=u.getTokenFlags();return f&&p===9&&u.getTextPos()===r.length+1&&!(j&512)&&(!a||r===e.pseudoBigIntToString({negative:g,base10Value:e.parsePseudoBigInt(u.getTokenValue())}))}function dP(r,a){if(a.flags&5)return!0;if(a.flags&134217728)return So(r,a);if(a.flags&268435456){for(var u=[];a.flags&268435456;)u.unshift(a.symbol),a=a.type;var f=e.reduceLeft(u,function(p,g){return Rh(g,p)},r);return f===r&&dP(r,a)}return!1}function T$(r,a){if(r===a||a.flags&5)return!0;if(r.flags&128){var u=r.value;return!!(a.flags&8&&U8(u,!1)||a.flags&64&&V8(u,!1)||a.flags&98816&&u===a.intrinsicName||a.flags&268435456&&dP(kl(u),a))}if(r.flags&134217728){var f=r.texts;return f.length===2&&f[0]===""&&f[1]===""&&So(r.types[0],a)}return So(r,a)}function z8(r,a){return r.flags&128?W8([r.value],e.emptyArray,a):r.flags&134217728?e.arraysEqual(r.texts,a.texts)?e.map(r.types,E$):W8(r.texts,r.types,a):void 0}function _P(r,a){var u=z8(r,a);return!!u&&e.every(u,function(f,p){return T$(f,a.types[p])})}function E$(r){return r.flags&402653317?r:Gg(["",""],[r])}function W8(r,a,u){var f=r.length-1,p=r[0],g=r[f],j=u.texts,pe=j.length-1,Se=j[0],Be=j[pe];if(f===0&&p.length<Se.length+Be.length||!p.startsWith(Se)||!g.endsWith(Be))return;for(var fr=g.slice(0,g.length-Be.length),sr=[],gr=0,_r=Se.length,Kr=1;Kr<pe;Kr++){var mt=j[Kr];if(mt.length>0){for(var Vt=gr,wt=_r;wt=rn(Vt).indexOf(mt,wt),!(wt>=0);){if(Vt++,Vt===r.length)return;wt=0}on(Vt,wt),_r+=mt.length}else if(_r<rn(gr).length)on(gr,_r+1);else if(gr<f)on(gr+1,0);else return}return on(f,rn(f).length),sr;function rn(Un){return Un<f?r[Un]:fr}function on(Un,Gn){var Ti=Un===gr?kl(rn(Un).slice(_r,Gn)):Gg(t(t([r[gr].slice(_r)],r.slice(gr+1,Un),!0),[rn(Un).slice(0,Gn)],!1),a.slice(gr,Un));sr.push(Ti),gr=Un,_r=Gn}}function fd(r,a,u,f,p){f===void 0&&(f=0),p===void 0&&(p=!1);var g=!1,j,pe=2048,Se=!0,Be,fr,sr,gr=0;_r(a,u);function _r(hn,qt){if(Xg(qt)){if(hn===dr){var yi=j;j=hn,_r(qt,qt),j=yi;return}if(hn.aliasSymbol&&hn.aliasSymbol===qt.aliasSymbol){hn.aliasTypeArguments&&on(hn.aliasTypeArguments,qt.aliasTypeArguments,S8(hn.aliasSymbol));return}if(hn===qt&&hn.flags&3145728){for(var Bi=0,ha=hn.types;Bi<ha.length;Bi++){var si=ha[Bi];_r(si,si)}return}if(qt.flags&1048576){var qa=rn(hn.flags&1048576?hn.types:[hn],qt.types,C$),Ta=qa[0],Qa=qa[1],Za=rn(Ta,Qa,k$),dt=Za[0],Pr=Za[1];if(Pr.length===0)return;if(qt=zi(Pr),dt.length===0){Kr(hn,qt,1);return}hn=zi(dt)}else if(qt.flags&2097152&&e.some(qt.types,function(wi){return!!Ti(wi)||Mu(wi)&&!!Ti(xx(wi)||Xe)})){if(!(hn.flags&1048576)){var qn=rn(hn.flags&2097152?hn.types:[hn],qt.types,ud),dt=qn[0],Pr=qn[1];if(dt.length===0||Pr.length===0)return;hn=ho(dt),qt=ho(Pr)}}else qt.flags&41943040&&(qt=hm(qt));if(qt.flags&8650752){if(J8(hn))return;var Sn=Ti(qt);if(Sn){if(e.getObjectFlags(hn)&262144||hn===Or)return;if(!Sn.isFixed){if((Sn.priority===void 0||f<Sn.priority)&&(Sn.candidates=void 0,Sn.contraCandidates=void 0,Sn.topLevel=!0,Sn.priority=f),f===Sn.priority){var ui=j||hn;p&&!g?e.contains(Sn.contraCandidates,ui)||(Sn.contraCandidates=e.append(Sn.contraCandidates,ui),jx(r)):e.contains(Sn.candidates,ui)||(Sn.candidates=e.append(Sn.candidates,ui),jx(r))}!(f&128)&&qt.flags&262144&&Sn.topLevel&&!cP(u,qt)&&(Sn.topLevel=!1,jx(r))}pe=Math.min(pe,f);return}var Vn=Vd(qt,!1);if(Vn!==qt)_r(hn,Vn);else if(qt.flags&8388608){var $n=Vd(qt.indexType,!1);if($n.flags&465829888){var Ei=HO(Vd(qt.objectType,!1),$n,!1);Ei&&Ei!==qt&&_r(hn,Ei)}}}if(e.getObjectFlags(hn)&4&&e.getObjectFlags(qt)&4&&(hn.target===qt.target||Al(hn)&&Al(qt))&&!(hn.node&&qt.node))on(Go(hn),Go(qt),$A(hn.target));else if(hn.flags&4194304&&qt.flags&4194304)Un(hn.type,qt.type);else if(($v(hn)||hn.flags&4)&&qt.flags&4194304){var it=h$(hn);mt(it,qt.type,256)}else if(hn.flags&8388608&&qt.flags&8388608)_r(hn.objectType,qt.objectType),_r(hn.indexType,qt.indexType);else if(hn.flags&268435456&&qt.flags&268435456)hn.symbol===qt.symbol&&_r(hn.type,qt.type);else if(hn.flags&33554432)_r(hn.baseType,qt),Kr(uA(hn),qt,4);else if(qt.flags&16777216)wt(hn,qt,Ua);else if(qt.flags&3145728)Ja(hn,qt.types,qt.flags);else if(hn.flags&1048576)for(var Ht=hn.types,nn=0,Ln=Ht;nn<Ln.length;nn++){var Rn=Ln[nn];_r(Rn,qt)}else if(qt.flags&134217728)Wa(hn,qt);else{if(hn=Zi(hn),!(f&512&&hn.flags&467927040)){var ni=Gr(hn);if(ni!==hn&&Se&&!(ni.flags&2621440))return Se=!1,_r(ni,qt);hn=ni}hn.flags&2621440&&wt(hn,qt,Ga)}}}function Kr(hn,qt,yi){var Bi=f;f|=yi,_r(hn,qt),f=Bi}function mt(hn,qt,yi){var Bi=f;f|=yi,Un(hn,qt),f=Bi}function Vt(hn,qt,yi,Bi){var ha=f;f|=Bi,Ja(hn,qt,yi),f=ha}function wt(hn,qt,yi){var Bi=hn.id+","+qt.id,ha=Be&&Be.get(Bi);if(ha!==void 0){pe=Math.min(pe,ha);return}(Be||(Be=new e.Map)).set(Bi,-1);var si=pe;pe=2048;var qa=gr,Ta=p0(hn),Qa=p0(qt);e.contains(fr,Ta)&&(gr|=1),e.contains(sr,Qa)&&(gr|=2),gr!==3?((fr||(fr=[])).push(Ta),(sr||(sr=[])).push(Qa),yi(hn,qt),sr.pop(),fr.pop()):pe=-1,gr=qa,Be.set(Bi,pe),pe=Math.min(pe,si)}function rn(hn,qt,yi){for(var Bi,ha,si=0,qa=qt;si<qa.length;si++)for(var Ta=qa[si],Qa=0,Za=hn;Qa<Za.length;Qa++){var dt=Za[Qa];yi(dt,Ta)&&(_r(dt,Ta),Bi=e.appendIfUnique(Bi,dt),ha=e.appendIfUnique(ha,Ta))}return[Bi?e.filter(hn,function(Pr){return!e.contains(Bi,Pr)}):hn,ha?e.filter(qt,function(Pr){return!e.contains(ha,Pr)}):qt]}function on(hn,qt,yi){for(var Bi=hn.length<qt.length?hn.length:qt.length,ha=0;ha<Bi;ha++)ha<yi.length&&(yi[ha]&7)===2?Un(hn[ha],qt[ha]):_r(hn[ha],qt[ha])}function Un(hn,qt){p=!p,_r(hn,qt),p=!p}function Gn(hn,qt){Ue||f&1024?Un(hn,qt):_r(hn,qt)}function Ti(hn){if(hn.flags&8650752)for(var qt=0,yi=r;qt<yi.length;qt++){var Bi=yi[qt];if(hn===Bi.typeParameter)return Bi}}function li(hn){for(var qt,yi=0,Bi=hn;yi<Bi.length;yi++){var ha=Bi[yi],si=ha.flags&2097152&&e.find(ha.types,function(qa){return!!Ti(qa)});if(!si||qt&&si!==qt)return;qt=si}return qt}function Ja(hn,qt,yi){var Bi=0;if(yi&1048576){for(var ha=void 0,si=hn.flags&1048576?hn.types:[hn],qa=new Array(si.length),Ta=!1,Qa=0,Za=qt;Qa<Za.length;Qa++){var dt=Za[Qa];if(Ti(dt))ha=dt,Bi++;else for(var Pr=0;Pr<si.length;Pr++){var qn=pe;pe=2048,_r(si[Pr],dt),pe===f&&(qa[Pr]=!0),Ta=Ta||pe===-1,pe=Math.min(pe,qn)}}if(Bi===0){var Sn=li(qt);Sn&&Kr(hn,Sn,1);return}if(Bi===1&&!Ta){var ui=e.flatMap(si,function(Ht,nn){return qa[nn]?void 0:Ht});if(ui.length){_r(zi(ui),ha);return}}}else for(var Vn=0,$n=qt;Vn<$n.length;Vn++){var dt=$n[Vn];Ti(dt)?Bi++:_r(hn,dt)}if(yi&2097152?Bi===1:Bi>0)for(var Ei=0,it=qt;Ei<it.length;Ei++){var dt=it[Ei];Ti(dt)&&Kr(hn,dt,1)}}function Ai(hn,qt,yi){if(yi.flags&1048576){for(var Bi=!1,ha=0,si=yi.types;ha<si.length;ha++){var qa=si[ha];Bi=Ai(hn,qt,qa)||Bi}return Bi}if(yi.flags&4194304){var Ta=Ti(yi.type);if(Ta&&!Ta.isFixed&&!J8(hn)){var Qa=B8(hn,qt,yi);Qa&&Kr(Qa,Ta.typeParameter,e.getObjectFlags(hn)&262144?16:8)}return!0}if(yi.flags&262144){Kr(Kf(hn),yi,32);var Za=lm(yi);if(Za&&Ai(hn,qt,Za))return!0;var dt=e.map(Ro(hn),_n),Pr=e.map(_c(hn),function(qn){return qn!==Ko?qn.type:Xe});return _r(zi(e.concatenate(dt,Pr)),qf(qt)),!0}return!1}function Ua(hn,qt){if(hn.flags&16777216)_r(hn.checkType,qt.checkType),_r(hn.extendsType,qt.extendsType),_r(vm(hn),vm(qt)),_r(ym(hn),ym(qt));else{var yi=[vm(qt),ym(qt)];Vt(hn,yi,qt.flags,p?64:0)}}function Wa(hn,qt){var yi=z8(hn,qt),Bi=qt.types;if(yi||e.every(qt.texts,function(qa){return qa.length===0}))for(var ha=function(qa){var Ta=yi?yi[qa]:Xe,Qa=Bi[qa];if(Ta.flags&128&&Qa.flags&8650752){var Za=Ti(Qa),dt=Za?uu(Za.typeParameter):void 0;if(dt&&!fa(dt)){var Pr=dt.flags&1048576?dt.types:[dt],qn=e.reduceLeft(Pr,function(Vn,$n){return Vn|$n.flags},0);if(!(qn&4)){var Sn=Ta.value;qn&296&&!U8(Sn,!0)&&(qn&=-297),qn&2112&&!V8(Sn,!0)&&(qn&=-2113);var ui=e.reduceLeft(Pr,function(Vn,$n){return $n.flags&qn?Vn.flags&4?Vn:$n.flags&4?Ta:Vn.flags&134217728?Vn:$n.flags&134217728&&_P(Ta,$n)?Ta:Vn.flags&268435456?Vn:$n.flags&268435456&&Sn===WO($n.symbol,Sn)?Ta:Vn.flags&128?Vn:$n.flags&128&&$n.value===Sn?$n:Vn.flags&8?Vn:$n.flags&8?Qf(+Sn):Vn.flags&32?Vn:$n.flags&32?Qf(+Sn):Vn.flags&256?Vn:$n.flags&256&&$n.value===+Sn?$n:Vn.flags&64?Vn:$n.flags&64?x$(Sn):Vn.flags&2048?Vn:$n.flags&2048&&e.pseudoBigIntToString($n.value)===Sn?$n:Vn.flags&16?Vn:$n.flags&16?Sn==="true"?Bn:Sn==="false"?un:Tn:Vn.flags&512?Vn:$n.flags&512&&$n.intrinsicName===Sn?$n:Vn.flags&32768?Vn:$n.flags&32768&&$n.intrinsicName===Sn?$n:Vn.flags&65536?Vn:$n.flags&65536&&$n.intrinsicName===Sn?$n:Vn:Vn},Xe);if(!(ui.flags&131072))return _r(ui,Qa),"continue"}}}_r(Ta,Qa)},si=0;si<Bi.length;si++)ha(si)}function Ga(hn,qt){if(e.getObjectFlags(hn)&4&&e.getObjectFlags(qt)&4&&(hn.target===qt.target||Al(hn)&&Al(qt))){on(Go(hn),Go(qt),$A(hn.target));return}if(Mu(hn)&&Mu(qt)){_r(Ul(hn),Ul(qt)),_r(qf(hn),qf(qt));var yi=cd(hn),Bi=cd(qt);yi&&Bi&&_r(yi,Bi)}if(e.getObjectFlags(qt)&32&&!qt.declaration.nameType){var ha=Ul(qt);if(Ai(hn,qt,ha))return}if(!S$(hn,qt)){if(Qg(hn)){if(po(qt)){var si=_m(hn),qa=_m(qt),Ta=Go(qt),Qa=qt.target.elementFlags;if(po(hn)&&t$(hn,qt)){for(var Za=0;Za<qa;Za++)_r(Go(hn)[Za],Ta[Za]);return}for(var dt=po(hn)?Math.min(hn.target.fixedLength,qt.target.fixedLength):0,Pr=Math.min(po(hn)?dx(hn.target,3):0,qt.target.hasRestElement?dx(qt.target,3):0),Za=0;Za<dt;Za++)_r(Go(hn)[Za],Ta[Za]);if(!po(hn)||si-dt-Pr===1&&hn.target.elementFlags[dt]&4)for(var qn=Go(hn)[dt],Za=dt;Za<qa-Pr;Za++)_r(Qa[Za]&8?zc(qn):qn,Ta[Za]);else{var Sn=qa-dt-Pr;if(Sn===2&&Qa[dt]&Qa[dt+1]&8&&po(hn)){var ui=Ti(Ta[dt]);ui&&ui.impliedArity!==void 0&&(_r(a0(hn,dt,Pr+si-ui.impliedArity),Ta[dt]),_r(a0(hn,dt+ui.impliedArity,Pr),Ta[dt+1]))}else if(Sn===1&&Qa[dt]&8){var Vn=qt.target.elementFlags[qa-1]&2,$n=po(hn)?a0(hn,dt,Pr):zc(Go(hn)[0]);Kr($n,Ta[dt],Vn?2:0)}else if(Sn===1&&Qa[dt]&4){var qn=po(hn)?Ix(hn,dt,Pr):Go(hn)[0];qn&&_r(qn,Ta[dt])}}for(var Za=0;Za<Pr;Za++)_r(Go(hn)[si-Za-1],Ta[qa-Za-1]);return}if(Al(qt)){Ca(hn,qt);return}}Bo(hn,qt),jo(hn,qt,0),jo(hn,qt,1),Ca(hn,qt)}}function Bo(hn,qt){for(var yi=wp(qt),Bi=0,ha=yi;Bi<ha.length;Bi++){var si=ha[Bi],qa=Fa(hn,si.escapedName);qa&&!e.some(qa.declarations,pP)&&_r(_n(qa),_n(si))}}function jo(hn,qt,yi){for(var Bi=La(hn,yi),ha=La(qt,yi),si=Bi.length,qa=ha.length,Ta=si<qa?si:qa,Qa=0;Qa<Ta;Qa++)No(Jz(Bi[si-Ta+Qa]),t0(ha[qa-Ta+Qa]))}function No(hn,qt){var yi=g,Bi=qt.declaration?qt.declaration.kind:0;g=g||Bi===171||Bi===170||Bi===173,nP(hn,qt,Gn),g=yi,iP(hn,qt,_r)}function Ca(hn,qt){var yi=e.getObjectFlags(hn)&e.getObjectFlags(qt)&32?8:0,Bi=_c(qt);if(Lx(hn))for(var ha=0,si=Bi;ha<si.length;ha++){for(var qa=si[ha],Ta=[],Qa=0,Za=Ro(hn);Qa<Za.length;Qa++){var dt=Za[Qa];if(kf(zy(dt,8576),qa.keyType)){var Pr=_n(dt);Ta.push(dt.flags&16777216?rP(Pr):Pr)}}for(var qn=0,Sn=_c(hn);qn<Sn.length;qn++){var ui=Sn[qn];kf(ui.keyType,qa.keyType)&&Ta.push(ui.type)}Ta.length&&Kr(zi(Ta),qa.type,yi)}for(var Vn=0,$n=Bi;Vn<$n.length;Vn++){var qa=$n[Vn],Ei=Ry(hn,qa.keyType);Ei&&Kr(Ei.type,qa.type,yi)}}}function C$(r,a){return tt&&a===St?r===a:ud(r,a)||!!(a.flags&4&&r.flags&128||a.flags&8&&r.flags&256)}function k$(r,a){return!!(r.flags&524288&&a.flags&524288&&r.symbol&&r.symbol===a.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===a.aliasSymbol)}function A$(r){var a=Uc(r);return!!a&&ks(a.flags&16777216?ib(a):a,406978556)}function lg(r){return!!(e.getObjectFlags(r)&128)}function mP(r){return!!(e.getObjectFlags(r)&16512)}function P$(r){if(r.length>1){var a=e.filter(r,mP);if(a.length){var u=zi(a,2);return e.concatenate(e.filter(r,function(f){return!mP(f)}),[u])}}return r}function w$(r){return r.priority&416?ho(r.contraCandidates):Kq(r.contraCandidates)}function N$(r,a){var u=P$(r.candidates),f=A$(r.typeParameter),p=!f&&r.topLevel&&(r.isFixed||!cP(Ho(a),r.typeParameter)),g=f?e.sameMap(u,Eu):p?e.sameMap(u,cg):u,j=r.priority&416?zi(g,2):Gq(g);return Gu(j)}function gP(r,a){var u=r.inferences[a];if(!u.inferredType){var f=void 0,p=r.signature;if(p){var g=u.candidates?N$(u,p):void 0;if(u.contraCandidates)f=g&&!(g.flags&131072)&&e.some(u.contraCandidates,function(Be){return Dm(g,Be)})?g:w$(u);else if(g)f=g;else if(r.flags&1)f=hr;else{var j=fm(u.typeParameter);j&&(f=Sa(j,oq(aq(r,a),r.nonFixingMapper)))}}else f=j8(u);u.inferredType=f||hP(!!(r.flags&2));var pe=Uc(u.typeParameter);if(pe){var Se=Sa(pe,r.nonFixingMapper);(!f||!r.compareTypes(f,Hu(Se,f)))&&(u.inferredType=f=Se)}}return u.inferredType}function hP(r){return r?Ie:ur}function vP(r){for(var a=[],u=0;u<r.inferences.length;u++)a.push(gP(r,u));return a}function q8(r){switch(r.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return Ce.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return Ce.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return Ce.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(e.isCallExpression(r.parent))return e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return r.parent.kind===300?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Wl(r){var a=Mi(r);return a.resolvedSymbol||(a.resolvedSymbol=!e.nodeIsMissing(r)&&Ls(r,r.escapedText,1160127,q8(r),r,!e.isWriteOnlyAccess(r),!1)||en),a.resolvedSymbol}function Hy(r){return!!e.findAncestor(r,function(a){return a.kind===183?!0:a.kind===79||a.kind===163?!1:"quit"})}function Ux(r,a,u,f){switch(r.kind){case 79:if(!e.isThisInTypeQuery(r)){var p=Wl(r);return p!==en?"".concat(f?_e(f):"-1","|").concat(Wc(a),"|").concat(Wc(u),"|").concat(ne(p)):void 0}case 108:return"0|".concat(f?_e(f):"-1","|").concat(Wc(a),"|").concat(Wc(u));case 232:case 214:return Ux(r.expression,a,u,f);case 163:var g=Ux(r.left,a,u,f);return g&&g+"."+r.right.escapedText;case 208:case 209:var j=Yg(r);if(j!==void 0){var pe=Ux(r.expression,a,u,f);return pe&&pe+"."+j}break;case 203:case 204:case 259:case 215:case 216:case 171:return"".concat(_e(r),"#").concat(Wc(a))}}function xc(r,a){switch(a.kind){case 214:case 232:return xc(r,a.expression);case 223:return e.isAssignmentExpression(a)&&xc(r,a.left)||e.isBinaryExpression(a)&&a.operatorToken.kind===27&&xc(r,a.right)}switch(r.kind){case 233:return a.kind===233&&r.keywordToken===a.keywordToken&&r.name.escapedText===a.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(r)?a.kind===108:a.kind===79&&Wl(r)===Wl(a)||(a.kind===257||a.kind===205)&&Iu(Wl(r))===Zn(a);case 108:return a.kind===108;case 106:return a.kind===106;case 232:case 214:return xc(r.expression,a);case 208:case 209:var u=Yg(r),f=e.isAccessExpression(a)?Yg(a):void 0;return u!==void 0&&f!==void 0&&f===u&&xc(r.expression,a.expression);case 163:return e.isAccessExpression(a)&&r.right.escapedText===Yg(a)&&xc(r.left,a.expression);case 223:return e.isBinaryExpression(r)&&r.operatorToken.kind===27&&xc(r.right,a)}return!1}function Yg(r){if(e.isPropertyAccessExpression(r))return r.name.escapedText;if(e.isElementAccessExpression(r))return I$(r);if(e.isBindingElement(r)){var a=Qm(r);return a?e.escapeLeadingUnderscores(a):void 0}if(e.isParameter(r))return""+r.parent.parameters.indexOf(r)}function $8(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):void 0}function I$(r){if(e.isStringOrNumericLiteralLike(r.argumentExpression))return e.escapeLeadingUnderscores(r.argumentExpression.text);if(e.isEntityNameExpression(r.argumentExpression)){var a=ns(r.argumentExpression,111551,!0);if(!a||!(b0(a)||a.flags&8))return;var u=a.valueDeclaration;if(u===void 0)return;var f=Ma(u);if(f){var p=$8(f);if(p!==void 0)return p}if(e.hasOnlyExpressionInitializer(u)&&$p(u,r.argumentExpression)){var g=e.getEffectiveInitializer(u);if(g)return $8(Ic(g));if(e.isEnumMember(u))return e.getTextOfPropertyName(u.name)}}}function H8(r,a){for(;e.isAccessExpression(r);)if(r=r.expression,xc(r,a))return!0;return!1}function Gv(r,a){for(;e.isOptionalChain(r);)if(r=r.expression,xc(r,a))return!0;return!1}function h0(r,a){if(r&&r.flags&1048576){var u=fi(r,a);if(u&&e.getCheckFlags(u)&2)return u.isDiscriminantProperty===void 0&&(u.isDiscriminantProperty=(u.checkFlags&192)===192&&!Bh(_n(u))),!!u.isDiscriminantProperty}return!1}function G8(r,a){for(var u,f=0,p=r;f<p.length;f++){var g=p[f];if(h0(a,g.escapedName)){if(u){u.push(g);continue}u=[g]}}return u}function O$(r,a){for(var u=new e.Map,f=0,p=function(Be){if(Be.flags&61603840){var fr=di(Be,a);if(fr){if(!$v(fr))return{value:void 0};var sr=!1;Zg(fr,function(gr){var _r=Wc(Eu(gr)),Kr=u.get(_r);Kr?Kr!==ur&&(u.set(_r,ur),sr=!0):u.set(_r,Be)}),sr||f++}}},g=0,j=r;g<j.length;g++){var pe=j[g],Se=p(pe);if(typeof Se=="object")return Se.value}return f>=10&&f*2>=r.length?u:void 0}function Sb(r){var a=r.types;if(!(a.length<10||e.getObjectFlags(r)&32768||e.countWhere(a,function(p){return!!(p.flags&59506688)})<10)){if(r.keyPropertyName===void 0){var u=e.forEach(a,function(p){return p.flags&59506688?e.forEach(Ro(p),function(g){return sf(_n(g))?g.escapedName:void 0}):void 0}),f=u&&O$(a,u);r.keyPropertyName=f?u:"",r.constituentMap=f}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function Db(r,a){var u,f=(u=r.constituentMap)===null||u===void 0?void 0:u.get(Wc(Eu(a)));return f!==ur?f:void 0}function K8(r,a){var u=Sb(r),f=u&&di(a,u);return f&&Db(r,f)}function M$(r,a){var u=Sb(r),f=u&&e.find(a.properties,function(g){return g.symbol&&g.kind===299&&g.symbol.escapedName===u&&wb(g.initializer)}),p=f&&$b(f.initializer);return p&&Db(r,p)}function Q8(r,a){return xc(r,a)||H8(r,a)}function X8(r,a){if(r.arguments)for(var u=0,f=r.arguments;u<f.length;u++){var p=f[u];if(Q8(a,p))return!0}return!!(r.expression.kind===208&&Q8(a,r.expression.expression))}function yP(r){return(!r.id||r.id<0)&&(r.id=O,O++),r.id}function F$(r,a){if(!(r.flags&1048576))return So(r,a);for(var u=0,f=r.types;u<f.length;u++){var p=f[u];if(So(p,a))return!0}return!1}function L$(r,a){var u;if(r===a)return r;if(a.flags&131072)return a;var f="A".concat(Wc(r),",").concat(Wc(a));return(u=uo(f))!==null&&u!==void 0?u:_s(f,R$(r,a))}function R$(r,a){var u=Nc(r,function(p){return F$(a,p)}),f=a.flags&512&&ag(a)?Ts(u,zv):u;return So(a,f)?f:r}function bP(r){var a=El(r);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Dm(r,ln))}function Yc(r){r.flags&467927040&&(r=uu(r)||ur);var a=r.flags;if(a&268435460)return ue?16317953:16776705;if(a&134217856){var u=a&128&&r.value==="";return ue?u?12123649:7929345:u?12582401:16776705}if(a&40)return ue?16317698:16776450;if(a&256){var f=r.value===0;return ue?f?12123394:7929090:f?12582146:16776450}if(a&64)return ue?16317188:16775940;if(a&2048){var f=w8(r);return ue?f?12122884:7928580:f?12581636:16775940}return a&16?ue?16316168:16774920:a&528?ue?r===un||r===wn?12121864:7927560:r===un||r===wn?12580616:16774920:a&524288?e.getObjectFlags(r)&16&&ld(r)?ue?83427327:83886079:bP(r)?ue?7880640:16728e3:ue?7888800:16736160:a&16384?9830144:a&32768?26607360:a&65536?42917664:a&12288?ue?7925520:16772880:a&67108864?ue?7888800:16736160:a&131072?0:a&1048576?e.reduceLeft(r.types,function(p,g){return p|Yc(g)},0):a&2097152?B$(r):83886079}function B$(r){for(var a=ks(r,131068),u=0,f=134217727,p=0,g=r.types;p<g.length;p++){var j=g[p];if(!(a&&j.flags&524288)){var pe=Yc(j);u|=pe,f&=pe}}return u&8256|f&134209471}function gl(r,a){return Nc(r,function(u){return(Yc(u)&a)!==0})}function Wh(r,a){var u=Y8(gl(ue&&r.flags&2?zo:r,a));if(ue)switch(a){case 524288:return Ts(u,function(f){return Yc(f)&65536?ho([f,Yc(f)&131072&&!ks(u,65536)?zi([fn,Pt]):fn]):f});case 1048576:return Ts(u,function(f){return Yc(f)&131072?ho([f,Yc(f)&65536&&!ks(u,32768)?zi([fn,Ar]):fn]):f});case 2097152:case 4194304:return Ts(u,function(f){return Yc(f)&262144?a$(f):f})}return u}function Y8(r){return r===zo?ur:r}function SP(r,a){return a?zi([qu(r),Ic(a)]):r}function Z8(r,a){var u,f=D_(a);if(!Kc(f))return ar;var p=Jl(f);return di(r,p)||v0((u=$g(r,p))===null||u===void 0?void 0:u.type)||ar}function e5(r,a){return Ip(r,qv)&&Qq(r,a)||v0(E_(65,r,Ar,void 0))||ar}function v0(r){return r&&(Ce.noUncheckedIndexedAccess?zi([r,Ar]):r)}function r5(r){return zc(E_(65,r,Ar,void 0)||ar)}function j$(r){var a=r.parent.kind===206&&DP(r.parent)||r.parent.kind===299&&DP(r.parent.parent);return a?SP(xb(r),r.right):Ic(r.right)}function DP(r){return r.parent.kind===223&&r.parent.left===r||r.parent.kind===247&&r.parent.initializer===r}function J$(r,a){return e5(xb(r),r.elements.indexOf(a))}function U$(r){return r5(xb(r.parent))}function t5(r){return Z8(xb(r.parent),r.name)}function V$(r){return SP(t5(r),r.objectAssignmentInitializer)}function xb(r){var a=r.parent;switch(a.kind){case 246:return Ft;case 247:return Yb(a)||ar;case 223:return j$(a);case 217:return Ar;case 206:return J$(a,r);case 227:return U$(a);case 299:return t5(a);case 300:return V$(a)}return ar}function z$(r){var a=r.parent,u=i5(a.parent),f=a.kind===203?Z8(u,r.propertyName||r.name):r.dotDotDotToken?r5(u):e5(u,a.elements.indexOf(r));return SP(f,r.initializer)}function n5(r){var a=Mi(r);return a.resolvedType||Ic(r)}function W$(r){return r.initializer?n5(r.initializer):r.parent.parent.kind===246?Ft:r.parent.parent.kind===247&&Yb(r.parent.parent)||ar}function i5(r){return r.kind===257?W$(r):z$(r)}function q$(r){return r.kind===257&&r.initializer&&Ef(r.initializer)||r.kind!==205&&r.parent.kind===223&&Ef(r.parent.right)}function fg(r){switch(r.kind){case 214:return fg(r.expression);case 223:switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return fg(r.left);case 27:return fg(r.right)}}return r}function a5(r){var a=r.parent;return a.kind===214||a.kind===223&&a.operatorToken.kind===63&&a.left===r||a.kind===223&&a.operatorToken.kind===27&&a.right===r?a5(a):r}function $$(r){return r.kind===292?Eu(Ic(r.expression)):Xe}function Vx(r){var a=Mi(r);if(!a.switchTypes){a.switchTypes=[];for(var u=0,f=r.caseBlock.clauses;u<f.length;u++){var p=f[u];a.switchTypes.push($$(p))}}return a.switchTypes}function o5(r){if(!e.some(r.caseBlock.clauses,function(j){return j.kind===292&&!e.isStringLiteralLike(j.expression)})){for(var a=[],u=0,f=r.caseBlock.clauses;u<f.length;u++){var p=f[u],g=p.kind===292?p.expression.text:void 0;a.push(g&&!e.contains(a,g)?g:void 0)}return a}}function H$(r,a){return r.flags&1048576?!e.forEach(r.types,function(u){return!e.contains(a,u)}):e.contains(a,r)}function Tb(r,a){return r===a||a.flags&1048576&&G$(r,a)}function G$(r,a){if(r.flags&1048576){for(var u=0,f=r.types;u<f.length;u++){var p=f[u];if(!Ud(a.types,p))return!1}return!0}return r.flags&1024&&wv(r)===a?!0:Ud(a.types,r)}function Zg(r,a){return r.flags&1048576?e.forEach(r.types,a):a(r)}function pd(r,a){return r.flags&1048576?e.some(r.types,a):a(r)}function Ip(r,a){return r.flags&1048576?e.every(r.types,a):a(r)}function K$(r,a){return r.flags&3145728?e.every(r.types,a):a(r)}function Nc(r,a){if(r.flags&1048576){var u=r.types,f=e.filter(u,a);if(f===u)return r;var p=r.origin,g=void 0;if(p&&p.flags&1048576){var j=p.types,pe=e.filter(j,function(Se){return!!(Se.flags&1048576)||a(Se)});if(j.length-pe.length===u.length-f.length){if(pe.length===1)return pe[0];g=hA(1048576,pe)}}return yA(f,r.objectFlags,void 0,void 0,g)}return r.flags&131072||a(r)?r:Xe}function zx(r,a){return Nc(r,function(u){return u!==a})}function Q$(r){return r.flags&1048576?r.types.length:1}function Ts(r,a,u){if(r.flags&131072)return r;if(!(r.flags&1048576))return a(r);for(var f=r.origin,p=f&&f.flags&1048576?f.types:r.types,g,j=!1,pe=0,Se=p;pe<Se.length;pe++){var Be=Se[pe],fr=Be.flags&1048576?Ts(Be,a,u):a(Be);j||(j=Be!==fr),fr&&(g?g.push(fr):g=[fr])}return j?g&&zi(g,u?0:1):r}function s5(r,a,u,f){return r.flags&1048576&&u?zi(e.map(r.types,a),1,u,f):Ts(r,a)}function Gy(r,a){return Nc(r,function(u){return(u.flags&a)!==0})}function c5(r,a){return ks(r,134217804)&&ks(a,402655616)?Ts(r,function(u){return u.flags&4?Gy(a,402653316):Uv(u)&&!ks(a,402653188)?Gy(a,128):u.flags&8?Gy(a,264):u.flags&64?Gy(a,2112):u}):r}function Kv(r){return r.flags===0}function eh(r){return r.flags===0?r.type:r}function Qv(r,a){return a?{flags:0,type:r.flags&131072?hr:r}:r}function X$(r){var a=ll(256);return a.elementType=r,a}function xP(r){return Nt[r.id]||(Nt[r.id]=X$(r))}function u5(r,a){var u=m0(Xf($b(a)));return Tb(u,r.elementType)?r:xP(zi([r.elementType,u]))}function Y$(r){return r.flags&131072?ds:zc(r.flags&1048576?zi(r.types,2):r)}function Z$(r){return r.finalArrayType||(r.finalArrayType=Y$(r.elementType))}function Eb(r){return e.getObjectFlags(r)&256?Z$(r):r}function eH(r){return e.getObjectFlags(r)&256?r.elementType:Xe}function rH(r){for(var a=!1,u=0,f=r;u<f.length;u++){var p=f[u];if(!(p.flags&131072)){if(!(e.getObjectFlags(p)&256))return!1;a=!0}}return a}function l5(r){var a=a5(r),u=a.parent,f=e.isPropertyAccessExpression(u)&&(u.name.escapedText==="length"||u.parent.kind===210&&e.isIdentifier(u.name)&&e.isPushOrUnshiftIdentifier(u.name)),p=u.kind===209&&u.expression===a&&u.parent.kind===223&&u.parent.operatorToken.kind===63&&u.parent.left===u&&!e.isAssignmentTarget(u.parent)&&mc(Ic(u.argumentExpression),296);return f||p}function tH(r){return(e.isVariableDeclaration(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isParameter(r))&&!!(e.getEffectiveTypeAnnotationNode(r)||e.isInJSFile(r)&&e.hasInitializer(r)&&r.initializer&&e.isFunctionExpressionOrArrowFunction(r.initializer)&&e.getEffectiveReturnTypeNode(r.initializer))}function Wx(r,a){if(r=Vs(r),r.flags&8752)return _n(r);if(r.flags&7){if(e.getCheckFlags(r)&262144){var u=r.syntheticOrigin;if(u&&Wx(u))return _n(r)}var f=r.valueDeclaration;if(f){if(tH(f))return _n(r);if(e.isVariableDeclaration(f)&&f.parent.parent.kind===247){var p=f.parent.parent,g=Cb(p.expression,void 0);if(g){var j=p.awaitModifier?15:13;return E_(j,g,Ar,void 0)}}a&&e.addRelatedInfo(a,e.createDiagnosticForNode(f,e.Diagnostics._0_needs_an_explicit_type_annotation,na(r)))}}}function Cb(r,a){if(!(r.flags&33554432))switch(r.kind){case 79:var u=Iu(Wl(r));return Wx(u,a);case 108:return bH(r);case 106:return AP(r);case 208:{var f=Cb(r.expression,a);if(f){var p=r.name,g=void 0;if(e.isPrivateIdentifier(p)){if(!f.symbol)return;g=Fa(f,e.getSymbolNameForPrivateIdentifier(f.symbol,p.escapedText))}else g=Fa(f,p.escapedText);return g&&Wx(g,a)}return}case 214:return Cb(r.expression,a)}}function qx(r){var a=Mi(r),u=a.effectsSignature;if(u===void 0){var f=void 0;r.parent.kind===241?f=Cb(r.expression,void 0):r.expression.kind!==106&&(e.isOptionalChain(r)?f=Pf(_0(Ra(r.expression),r.expression),r.expression):f=Xy(r.expression));var p=La(f&&Gr(f)||ur,0),g=p.length===1&&!p[0].typeParameters?p[0]:e.some(p,f5)?ey(r):void 0;u=a.effectsSignature=g&&f5(g)?g:qs}return u===qs?void 0:u}function f5(r){return!!(Vl(r)||r.declaration&&(Bv(r.declaration)||ur).flags&131072)}function nH(r,a){if(r.kind===1||r.kind===3)return a.arguments[r.parameterIndex];var u=e.skipParentheses(a.expression);return e.isAccessExpression(u)?e.skipParentheses(u.expression):void 0}function iH(r){var a=e.findAncestor(r,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(r),f=e.getSpanOfTokenAtPosition(u,a.statements.pos);ya.add(e.createFileDiagnostic(u,f.start,f.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function kb(r){var a=$x(r,!1);return Du=r,Jo=a,a}function Ab(r){var a=e.skipParentheses(r,!0);return a.kind===95||a.kind===223&&(a.operatorToken.kind===55&&(Ab(a.left)||Ab(a.right))||a.operatorToken.kind===56&&Ab(a.left)&&Ab(a.right))}function $x(r,a){for(;;){if(r===Du)return Jo;var u=r.flags;if(u&4096){if(!a){var f=yP(r),p=Va[f];return p!==void 0?p:Va[f]=$x(r,!0)}a=!1}if(u&368)r=r.antecedent;else if(u&512){var g=qx(r.node);if(g){var j=Vl(g);if(j&&j.kind===3&&!j.type){var pe=r.node.arguments[j.parameterIndex];if(pe&&Ab(pe))return!1}if(Ho(g).flags&131072)return!1}r=r.antecedent}else{if(u&4)return e.some(r.antecedents,function(gr){return $x(gr,!1)});if(u&8){var Se=r.antecedents;if(Se===void 0||Se.length===0)return!1;r=Se[0]}else if(u&128){if(r.clauseStart===r.clauseEnd&&L7(r.switchStatement))return!1;r=r.antecedent}else if(u&1024){Du=void 0;var Be=r.target,fr=Be.antecedents;Be.antecedents=r.antecedents;var sr=$x(r.antecedent,!1);return Be.antecedents=fr,sr}else return!(u&1)}}}function Hx(r,a){for(;;){var u=r.flags;if(u&4096){if(!a){var f=yP(r),p=ga[f];return p!==void 0?p:ga[f]=Hx(r,!0)}a=!1}if(u&496)r=r.antecedent;else if(u&512){if(r.node.expression.kind===106)return!0;r=r.antecedent}else{if(u&4)return e.every(r.antecedents,function(Se){return Hx(Se,!1)});if(u&8)r=r.antecedents[0];else if(u&1024){var g=r.target,j=g.antecedents;g.antecedents=r.antecedents;var pe=Hx(r.antecedent,!1);return g.antecedents=j,pe}else return!!(u&1)}}}function p5(r){switch(r.kind){case 79:{var a=Wl(r);return b0(a)||e.isParameterOrCatchClauseVariable(a)&&!Gx(a)}case 208:case 209:return p5(r.expression)&&uf(Mi(r).resolvedSymbol||en)}return!1}function Tm(r,a,u,f,p){u===void 0&&(u=a),p===void 0&&(p=r.flowNode);var g,j=!1,pe=0;if(_u)return ar;if(!p)return a;wl++;var Se=iu,Be=eh(gr(p));iu=Se;var fr=e.getObjectFlags(Be)&256&&l5(r)?ds:Eb(Be);if(fr===Qe||r.parent&&r.parent.kind===232&&!(fr.flags&131072)&&gl(fr,2097152).flags&131072)return a;return fr===Lr?ur:fr;function sr(){return j?g:(j=!0,g=Ux(r,a,u,f))}function gr(it){if(pe===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:it.id}),_u=!0,iH(r),ar;pe++;for(var Ht;;){var nn=it.flags;if(nn&4096){for(var Ln=Se;Ln<iu;Ln++)if(Qn[Ln]===it)return pe--,Xi[Ln];Ht=it}var Rn=void 0;if(nn&16){if(Rn=Kr(it),!Rn){it=it.antecedent;continue}}else if(nn&512){if(Rn=Vt(it),!Rn){it=it.antecedent;continue}}else if(nn&96)Rn=rn(it);else if(nn&128)Rn=on(it);else if(nn&12){if(it.antecedents.length===1){it=it.antecedents[0];continue}Rn=nn&4?Un(it):Gn(it)}else if(nn&256){if(Rn=wt(it),!Rn){it=it.antecedent;continue}}else if(nn&1024){var ni=it.target,wi=ni.antecedents;ni.antecedents=it.antecedents,Rn=gr(it.antecedent),ni.antecedents=wi}else if(nn&2){var ia=it.node;if(ia&&ia!==f&&r.kind!==208&&r.kind!==209&&r.kind!==108){it=ia.flowNode;continue}Rn=u}else Rn=M0(a);return Ht&&(Qn[iu]=Ht,Xi[iu]=Rn,iu++),pe--,Rn}}function _r(it){var Ht=it.node;return TP(Ht.kind===257||Ht.kind===205?i5(Ht):xb(Ht),r)}function Kr(it){var Ht=it.node;if(xc(r,Ht)){if(!kb(it))return Qe;if(e.getAssignmentTargetKind(Ht)===2){var nn=gr(it.antecedent);return Qv(Xf(eh(nn)),Kv(nn))}if(a===We||a===ds){if(q$(Ht))return xP(Xe);var Ln=cg(_r(it));return So(Ln,a)?Ln:Wo}return a.flags&1048576?L$(a,_r(it)):a}if(H8(r,Ht)){if(!kb(it))return Qe;if(e.isVariableDeclaration(Ht)&&(e.isInJSFile(Ht)||e.isVarConst(Ht))){var Rn=e.getDeclaredExpandoInitializer(Ht);if(Rn&&(Rn.kind===215||Rn.kind===216))return gr(it.antecedent)}return a}if(e.isVariableDeclaration(Ht)&&Ht.parent.parent.kind===246&&xc(r,Ht.parent.parent.expression))return $P(Eb(eh(gr(it.antecedent))))}function mt(it,Ht){var nn=e.skipParentheses(Ht,!0);if(nn.kind===95)return Qe;if(nn.kind===223){if(nn.operatorToken.kind===55)return mt(mt(it,nn.left),nn.right);if(nn.operatorToken.kind===56)return zi([mt(it,nn.left),mt(it,nn.right)])}return $n(it,nn,!0)}function Vt(it){var Ht=qx(it.node);if(Ht){var nn=Vl(Ht);if(nn&&(nn.kind===2||nn.kind===3)){var Ln=gr(it.antecedent),Rn=Eb(eh(Ln)),ni=nn.type?Vn(Rn,nn,it.node,!0):nn.kind===3&&nn.parameterIndex>=0&&nn.parameterIndex<it.node.arguments.length?mt(Rn,it.node.arguments[nn.parameterIndex]):Rn;return ni===Rn?Ln:Qv(ni,Kv(Ln))}if(Ho(Ht).flags&131072)return Qe}}function wt(it){if(a===We||a===ds){var Ht=it.node,nn=Ht.kind===210?Ht.expression.expression:Ht.left.expression;if(xc(r,fg(nn))){var Ln=gr(it.antecedent),Rn=eh(Ln);if(e.getObjectFlags(Rn)&256){var ni=Rn;if(Ht.kind===210)for(var wi=0,ia=Ht.arguments;wi<ia.length;wi++){var lo=ia[wi];ni=u5(ni,lo)}else{var aa=$b(Ht.left.argumentExpression);mc(aa,296)&&(ni=u5(ni,Ht.right))}return ni===Rn?Ln:Qv(ni,Kv(Ln))}return Ln}}}function rn(it){var Ht=gr(it.antecedent),nn=eh(Ht);if(nn.flags&131072)return Ht;var Ln=(it.flags&32)!==0,Rn=Eb(nn),ni=$n(Rn,it.node,Ln);return ni===Rn?Ht:Qv(ni,Kv(Ht))}function on(it){var Ht=it.switchStatement.expression,nn=gr(it.antecedent),Ln=eh(nn);if(xc(r,Ht))Ln=si(Ln,it.switchStatement,it.clauseStart,it.clauseEnd);else if(Ht.kind===218&&xc(r,Ht.expression))Ln=Qa(Ln,it.switchStatement,it.clauseStart,it.clauseEnd);else{ue&&(Gv(Ht,r)?Ln=ha(Ln,it.switchStatement,it.clauseStart,it.clauseEnd,function(ni){return!(ni.flags&163840)}):Ht.kind===218&&Gv(Ht.expression,r)&&(Ln=ha(Ln,it.switchStatement,it.clauseStart,it.clauseEnd,function(ni){return!(ni.flags&131072||ni.flags&128&&ni.value==="undefined")})));var Rn=Ja(Ht,Ln);Rn&&(Ln=Wa(Ln,Rn,it.switchStatement,it.clauseStart,it.clauseEnd))}return Qv(Ln,Kv(nn))}function Un(it){for(var Ht=[],nn=!1,Ln=!1,Rn,ni=0,wi=it.antecedents;ni<wi.length;ni++){var ia=wi[ni];if(!Rn&&ia.flags&128&&ia.clauseStart===ia.clauseEnd){Rn=ia;continue}var lo=gr(ia),aa=eh(lo);if(aa===a&&a===u)return aa;e.pushIfUnique(Ht,aa),Tb(aa,a)||(nn=!0),Kv(lo)&&(Ln=!0)}if(Rn){var lo=gr(Rn),aa=eh(lo);if(!e.contains(Ht,aa)&&!L7(Rn.switchStatement)){if(aa===a&&a===u)return aa;Ht.push(aa),Tb(aa,a)||(nn=!0),Kv(lo)&&(Ln=!0)}}return Qv(Ti(Ht,nn?2:1),Ln)}function Gn(it){var Ht=yP(it),nn=Dn[Ht]||(Dn[Ht]=new e.Map),Ln=sr();if(!Ln)return a;var Rn=nn.get(Ln);if(Rn)return Rn;for(var ni=kc;ni<oc;ni++)if(Mn[ni]===it&&zn[ni]===Ln&&mi[ni].length)return Qv(Ti(mi[ni],1),!0);for(var wi=[],ia=!1,lo,aa=0,Io=it.antecedents;aa<Io.length;aa++){var xo=Io[aa],is=void 0;if(!lo)is=lo=gr(xo);else{Mn[oc]=it,zn[oc]=Ln,mi[oc]=wi,oc++;var Oc=$s;$s=void 0,is=gr(xo),$s=Oc,oc--;var Mc=nn.get(Ln);if(Mc)return Mc}var Bs=eh(is);if(e.pushIfUnique(wi,Bs),Tb(Bs,a)||(ia=!0),Bs===a)break}var al=Ti(wi,ia?2:1);return Kv(lo)?Qv(al,!0):(nn.set(Ln,al),al)}function Ti(it,Ht){if(rH(it))return xP(zi(e.map(it,eH)));var nn=Y8(zi(e.sameMap(it,Eb),Ht));return nn!==a&&nn.flags&a.flags&1048576&&e.arraysEqual(nn.types,a.types)?a:nn}function li(it){if(e.isBindingPattern(r)||e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)){if(e.isIdentifier(it)){var Ht=Wl(it),nn=Ht.valueDeclaration;if(nn&&(e.isBindingElement(nn)||e.isParameter(nn))&&r===nn.parent&&!nn.initializer&&!nn.dotDotDotToken)return nn}}else if(e.isAccessExpression(it)){if(xc(r,it.expression))return it}else if(e.isIdentifier(it)){var Ht=Wl(it);if(b0(Ht)){var nn=Ht.valueDeclaration;if(e.isVariableDeclaration(nn)&&!nn.type&&nn.initializer&&e.isAccessExpression(nn.initializer)&&xc(r,nn.initializer.expression))return nn.initializer;if(e.isBindingElement(nn)&&!nn.initializer){var Ln=nn.parent.parent;if(e.isVariableDeclaration(Ln)&&!Ln.type&&Ln.initializer&&(e.isIdentifier(Ln.initializer)||e.isAccessExpression(Ln.initializer))&&xc(r,Ln.initializer))return nn}}}}function Ja(it,Ht){var nn=a.flags&1048576?a:Ht;if(nn.flags&1048576){var Ln=li(it);if(Ln){var Rn=Yg(Ln);if(Rn&&h0(nn,Rn))return Ln}}}function Ai(it,Ht,nn){var Ln=Yg(Ht);if(Ln===void 0)return it;var Rn=ue&&e.isOptionalChain(Ht)&&ks(it,98304),ni=di(Rn?gl(it,2097152):it,Ln);if(!ni)return it;ni=Rn?Wd(ni):ni;var wi=nn(ni);return Nc(it,function(ia){var lo=io(ia,Ln);return!(lo.flags&131072)&&!(wi.flags&131072)&&Ex(wi,lo)})}function Ua(it,Ht,nn,Ln,Rn){if((nn===36||nn===37)&&it.flags&1048576){var ni=Sb(it);if(ni&&ni===Yg(Ht)){var wi=Db(it,Ic(Ln));if(wi)return nn===(Rn?36:37)?wi:sf(di(wi,ni)||ur)?zx(it,wi):it}}return Ai(it,Ht,function(ia){return qt(ia,nn,Ln,Rn)})}function Wa(it,Ht,nn,Ln,Rn){if(Ln<Rn&&it.flags&1048576&&Sb(it)===Yg(Ht)){var ni=Vx(nn).slice(Ln,Rn),wi=zi(e.map(ni,function(ia){return Db(it,ia)||ur}));if(wi!==ur)return wi}return Ai(it,Ht,function(ia){return si(ia,nn,Ln,Rn)})}function Ga(it,Ht,nn){if(xc(r,Ht))return Wh(it,nn?4194304:8388608);ue&&nn&&Gv(Ht,r)&&(it=Wh(it,2097152));var Ln=Ja(Ht,it);return Ln?Ai(it,Ln,function(Rn){return gl(Rn,nn?4194304:8388608)}):it}function Bo(it,Ht,nn){var Ln=Fa(it,Ht);return Ln?!!(Ln.flags&16777216)||nn:!!$g(it,Ht)||!nn}function jo(it,Ht,nn){var Ln=Jl(Ht),Rn=pd(it,function(wi){return Bo(wi,Ln,!0)});if(Rn)return Nc(it,function(wi){return Bo(wi,Ln,nn)});if(nn){var ni=cW();if(ni)return ho([it,Jv(ni,[Ht,ur])])}return it}function No(it,Ht,nn){switch(Ht.operatorToken.kind){case 63:case 75:case 76:case 77:return Ga($n(it,Ht.right,nn),Ht.left,nn);case 34:case 35:case 36:case 37:var Ln=Ht.operatorToken.kind,Rn=fg(Ht.left),ni=fg(Ht.right);if(Rn.kind===218&&e.isStringLiteralLike(ni))return yi(it,Rn,Ln,ni,nn);if(ni.kind===218&&e.isStringLiteralLike(Rn))return yi(it,ni,Ln,Rn,nn);if(xc(r,Rn))return qt(it,Ln,ni,nn);if(xc(r,ni))return qt(it,Ln,Rn,nn);ue&&(Gv(Rn,r)?it=hn(it,Ln,ni,nn):Gv(ni,r)&&(it=hn(it,Ln,Rn,nn)));var wi=Ja(Rn,it);if(wi)return Ua(it,wi,Ln,ni,nn);var ia=Ja(ni,it);if(ia)return Ua(it,ia,Ln,Rn,nn);if(Za(Rn))return dt(it,Ln,ni,nn);if(Za(ni))return dt(it,Ln,Rn,nn);break;case 102:return Pr(it,Ht,nn);case 101:if(e.isPrivateIdentifier(Ht.left))return Ca(it,Ht,nn);var lo=fg(Ht.right),aa=Ic(Ht.left);if(aa.flags&8576){if(Fx(it)&&e.isAccessExpression(r)&&xc(r.expression,lo)&&Yg(r)===Jl(aa))return gl(it,nn?524288:65536);if(xc(r,lo))return jo(it,aa,nn)}break;case 27:return $n(it,Ht.right,nn);case 55:return nn?$n($n(it,Ht.left,!0),Ht.right,!0):zi([$n(it,Ht.left,!1),$n(it,Ht.right,!1)]);case 56:return nn?zi([$n(it,Ht.left,!0),$n(it,Ht.right,!0)]):$n($n(it,Ht.left,!1),Ht.right,!1)}return it}function Ca(it,Ht,nn){var Ln=fg(Ht.right);if(!xc(r,Ln))return it;e.Debug.assertNode(Ht.left,e.isPrivateIdentifier);var Rn=aT(Ht.left);if(Rn===void 0)return it;var ni=Rn.parent,wi=e.hasStaticModifier(e.Debug.checkDefined(Rn.valueDeclaration,"should always have a declaration"))?_n(ni):mn(ni);return qn(it,wi,nn,!0)}function hn(it,Ht,nn,Ln){var Rn=Ht===34||Ht===36,ni=Ht===34||Ht===35?98304:32768,wi=Ic(nn),ia=Rn!==Ln&&Ip(wi,function(lo){return!!(lo.flags&ni)})||Rn===Ln&&Ip(wi,function(lo){return!(lo.flags&(3|ni))});return ia?Wh(it,2097152):it}function qt(it,Ht,nn,Ln){if(it.flags&1)return it;(Ht===35||Ht===37)&&(Ln=!Ln);var Rn=Ic(nn),ni=Ht===34||Ht===35;if(Rn.flags&98304){if(!ue)return it;var wi=ni?Ln?262144:2097152:Rn.flags&65536?Ln?131072:1048576:Ln?65536:524288;return Wh(it,wi)}if(Ln){if(!ni&&(it.flags&2||pd(it,sg))){if(Rn.flags&67239932||sg(Rn))return Rn;if(Rn.flags&524288)return Qt}var ia=Nc(it,function(lo){return Ex(lo,Rn)||ni&&o$(lo,Rn)});return c5(ia,Rn)}return sf(Rn)?Nc(it,function(lo){return!(k8(lo)&&Ex(lo,Rn))}):it}function yi(it,Ht,nn,Ln,Rn){(nn===35||nn===37)&&(Rn=!Rn);var ni=fg(Ht.expression);if(!xc(r,ni)){var wi=Ja(Ht.expression,it);return wi?Ai(it,wi,function(ia){return Bi(ia,Ln,Rn)}):ue&&Gv(ni,r)&&Rn===(Ln.text!=="undefined")?Wh(it,2097152):it}return Bi(it,Ln,Rn)}function Bi(it,Ht,nn){return nn?qa(it,Ht.text):gl(it,S.get(Ht.text)||32768)}function ha(it,Ht,nn,Ln,Rn){var ni=nn!==Ln&&e.every(Vx(Ht).slice(nn,Ln),Rn);return ni?gl(it,2097152):it}function si(it,Ht,nn,Ln){var Rn=Vx(Ht);if(!Rn.length)return it;var ni=Rn.slice(nn,Ln),wi=nn===Ln||e.contains(ni,Xe);if(it.flags&2&&!wi){for(var ia=void 0,lo=0;lo<ni.length;lo+=1){var aa=ni[lo];if(aa.flags&67239932)ia!==void 0&&ia.push(aa);else if(aa.flags&524288)ia===void 0&&(ia=ni.slice(0,lo)),ia.push(Qt);else return it}return zi(ia===void 0?ni:ia)}var Io=zi(ni),xo=Io.flags&131072?Xe:c5(Nc(it,function(Oc){return Ex(Io,Oc)}),Io);if(!wi)return xo;var is=Nc(it,function(Oc){return!(k8(Oc)&&e.contains(Rn,Eu(Yq(Oc))))});return xo.flags&131072?is:zi([xo,is])}function qa(it,Ht){switch(Ht){case"string":return Ta(it,Ft,1);case"number":return Ta(it,ht,2);case"bigint":return Ta(it,Yt,4);case"boolean":return Ta(it,Tn,8);case"symbol":return Ta(it,An,16);case"object":return it.flags&1?it:zi([Ta(it,Qt,32),Ta(it,Pt,131072)]);case"function":return it.flags&1?it:Ta(it,ln,64);case"undefined":return Ta(it,Ar,65536)}return Ta(it,Qt,128)}function Ta(it,Ht,nn){return Ts(it,function(Ln){return Np(Ln,Ht,Di)?Yc(Ln)&nn?Ln:Xe:Dm(Ht,Ln)?Ht:Yc(Ln)&nn?ho([Ln,Ht]):Xe})}function Qa(it,Ht,nn,Ln){var Rn=o5(Ht);if(!Rn)return it;var ni=e.findIndex(Ht.caseBlock.clauses,function(aa){return aa.kind===293}),wi=nn===Ln||ni>=nn&&ni<Ln;if(wi){var ia=F7(nn,Ln,Rn);return Nc(it,function(aa){return(Yc(aa)&ia)===ia})}var lo=Rn.slice(nn,Ln);return zi(e.map(lo,function(aa){return aa?qa(it,aa):Xe}))}function Za(it){return(e.isPropertyAccessExpression(it)&&e.idText(it.name)==="constructor"||e.isElementAccessExpression(it)&&e.isStringLiteralLike(it.argumentExpression)&&it.argumentExpression.text==="constructor")&&xc(r,it.expression)}function dt(it,Ht,nn,Ln){if(Ln?Ht!==34&&Ht!==36:Ht!==35&&Ht!==37)return it;var Rn=Ic(nn);if(!Ww(Rn)&&!Av(Rn))return it;var ni=Fa(Rn,"prototype");if(!ni)return it;var wi=_n(ni),ia=fa(wi)?void 0:wi;if(!ia||ia===Ot||ia===ln)return it;if(fa(it))return ia;return Nc(it,function(aa){return lo(aa,ia)});function lo(aa,Io){return aa.flags&524288&&e.getObjectFlags(aa)&1||Io.flags&524288&&e.getObjectFlags(Io)&1?aa.symbol===Io.symbol:Dm(aa,Io)}}function Pr(it,Ht,nn){var Ln=fg(Ht.left);if(!xc(r,Ln))return nn&&ue&&Gv(Ln,r)?Wh(it,2097152):it;var Rn=Ic(Ht.right);if(!Uh(Rn,ln))return it;var ni,wi=Fa(Rn,"prototype");if(wi){var ia=_n(wi);fa(ia)||(ni=ia)}if(fa(it)&&(ni===Ot||ni===ln))return it;if(!ni){var lo=La(Rn,1);ni=lo.length?zi(e.map(lo,function(Io){return Ho(t0(Io))})):fn}if(!nn&&Rn.flags&1048576){var aa=e.find(Rn.types,function(Io){return!Av(Io)});if(!aa)return it}return qn(it,ni,nn,!0)}function qn(it,Ht,nn,Ln){var Rn,ni=it.flags&1048576?"N".concat(Wc(it),",").concat(Wc(Ht),",").concat((nn?1:0)|(Ln?2:0)):void 0;return(Rn=uo(ni))!==null&&Rn!==void 0?Rn:_s(ni,Sn(it,Ht,nn,Ln))}function Sn(it,Ht,nn,Ln){var Rn=Ln?Uh:Dm;if(!nn)return Nc(it,function(ia){return!Rn(ia,Ht)});if(it.flags&3)return Ht;var ni=it.flags&1048576?Sb(it):void 0,wi=Ts(Ht,function(ia){var lo=ni&&di(ia,ni),aa=lo&&Db(it,lo),Io=Ts(aa||it,Ln?function(xo){return Uh(xo,ia)?xo:Uh(ia,xo)?ia:Xe}:function(xo){return Dm(ia,xo)?ia:Dm(xo,ia)?xo:Xe});return Io.flags&131072?Ts(it,function(xo){return ks(xo,465829888)&&Rn(ia,uu(xo)||ur)?ho([xo,ia]):Xe}):Io});return wi.flags&131072?Dm(Ht,it)?Ht:So(it,Ht)?it:So(Ht,it)?Ht:ho([it,Ht]):wi}function ui(it,Ht,nn){if(X8(Ht,r)){var Ln=nn||!e.isCallChain(Ht)?qx(Ht):void 0,Rn=Ln&&Vl(Ln);if(Rn&&(Rn.kind===0||Rn.kind===1))return Vn(it,Rn,Ht,nn)}if(Fx(it)&&e.isAccessExpression(r)&&e.isPropertyAccessExpression(Ht.expression)){var ni=Ht.expression;if(xc(r.expression,fg(ni.expression))&&e.isIdentifier(ni.name)&&ni.name.escapedText==="hasOwnProperty"&&Ht.arguments.length===1){var wi=Ht.arguments[0];if(e.isStringLiteralLike(wi)&&Yg(r)===e.escapeLeadingUnderscores(wi.text))return gl(it,nn?524288:65536)}}return it}function Vn(it,Ht,nn,Ln){if(Ht.type&&!(fa(it)&&(Ht.type===Ot||Ht.type===ln))){var Rn=nH(Ht,nn);if(Rn){if(xc(r,Rn))return qn(it,Ht.type,Ln,!1);ue&&Ln&&Gv(Rn,r)&&!(Yc(Ht.type)&65536)&&(it=Wh(it,2097152));var ni=Ja(Rn,it);if(ni)return Ai(it,ni,function(wi){return qn(wi,Ht.type,Ln,!1)})}}return it}function $n(it,Ht,nn){if(e.isExpressionOfOptionalChainRoot(Ht)||e.isBinaryExpression(Ht.parent)&&Ht.parent.operatorToken.kind===60&&Ht.parent.left===Ht)return Ei(it,Ht,nn);switch(Ht.kind){case 79:if(!xc(r,Ht)&&tr<5){var Ln=Wl(Ht);if(b0(Ln)){var Rn=Ln.valueDeclaration;if(Rn&&e.isVariableDeclaration(Rn)&&!Rn.type&&Rn.initializer&&p5(r)){tr++;var ni=$n(it,Rn.initializer,nn);return tr--,ni}}}case 108:case 106:case 208:case 209:return Ga(it,Ht,nn);case 210:return ui(it,Ht,nn);case 214:case 232:return $n(it,Ht.expression,nn);case 223:return No(it,Ht,nn);case 221:if(Ht.operator===53)return $n(it,Ht.operand,!nn);break}return it}function Ei(it,Ht,nn){if(xc(r,Ht))return Wh(it,nn?2097152:262144);var Ln=Ja(Ht,it);return Ln?Ai(it,Ln,function(Rn){return gl(Rn,nn?2097152:262144)}):it}}function aH(r,a){if(r=r.exportSymbol||r,(a.kind===79||a.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(a)&&(a=a.parent),e.isExpressionNode(a)&&(!e.isAssignmentTarget(a)||e.isWriteAccess(a)))){var u=Ic(a);if(Iu(Mi(a).resolvedSymbol)===r)return u}return e.isDeclarationName(a)&&e.isSetAccessor(a.parent)&&ss(a.parent)?hs(a.parent.symbol):Rs(r)}function y0(r){return e.findAncestor(r.parent,function(a){return e.isFunctionLike(a)&&!e.getImmediatelyInvokedFunctionExpression(a)||a.kind===265||a.kind===308||a.kind===169})}function Gx(r){if(!r.valueDeclaration)return!1;var a=e.getRootDeclaration(r.valueDeclaration).parent,u=Mi(a);return u.flags&8388608||(u.flags|=8388608,oH(a)||d5(a)),r.isAssigned||!1}function oH(r){return!!e.findAncestor(r.parent,function(a){return(e.isFunctionLike(a)||e.isCatchClause(a))&&!!(Mi(a).flags&8388608)})}function d5(r){if(r.kind===79){if(e.isAssignmentTarget(r)){var a=Wl(r);e.isParameterOrCatchClauseVariable(a)&&(a.isAssigned=!0)}}else e.forEachChild(r,d5)}function b0(r){return r.flags&3&&(tT(r)&2)!==0}function sH(r,a){if(ir(a.symbol,2)){var u=ue&&a.kind===166&&a.initializer&&Yc(r)&16777216&&!(Yc(Ra(a.initializer))&16777216);return oi(),u?gl(r,524288):r}else return pr(a.symbol),r}function cH(r,a){var u=a.parent;return u.kind===208||u.kind===163||u.kind===210&&u.expression===a||u.kind===209&&u.expression===a&&!(pd(r,m5)&&mm(Ic(u.argumentExpression)))}function _5(r){return r.flags&2097152?e.some(r.types,_5):!!(r.flags&465829888&&y_(r).flags&1146880)}function m5(r){return r.flags&2097152?e.some(r.types,m5):!!(r.flags&465829888&&!ks(y_(r),98304))}function uH(r,a){var u=(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&!((e.isJsxOpeningElement(r.parent)||e.isJsxSelfClosingElement(r.parent))&&r.parent.tagName===r)&&(a&&a&64?Lu(r,8):Lu(r,void 0));return u&&!Bh(u)}function TP(r,a,u){var f=!(u&&u&2)&&pd(r,_5)&&(cH(r,a)||uH(a,u));return f?Ts(r,y_):r}function g5(r){return!!e.findAncestor(r,function(a){var u=a.parent;return u===void 0?"quit":e.isExportAssignment(u)?u.expression===a&&e.isEntityNameExpression(a):e.isExportSpecifier(u)?u.name===a||u.propertyName===a:!1})}function Kx(r,a){if(Pd(r,111551)&&!Hy(a)&&!ba(r,111551)){var u=gc(r);Gc(u)&1160127&&(Ce.isolatedModules||e.shouldPreserveConstEnums(Ce)&&g5(a)||!F0(Iu(u))?bl(r):Lf(r))}}function lH(r,a){var u=r.valueDeclaration;if(u){if(e.isBindingElement(u)&&!u.initializer&&!u.dotDotDotToken&&u.parent.elements.length>=2){var f=u.parent.parent;if(f.kind===257&&e.getCombinedNodeFlags(u)&2||f.kind===166){var p=Mi(f);if(!(p.flags&268435456)){p.flags|=268435456;var g=jc(f,0),j=g&&Ts(g,y_);if(p.flags&=-268435457,j&&j.flags&1048576&&!(f.kind===166&&Gx(r))){var pe=u.parent,Se=Tm(pe,j,j,void 0,a.flowNode);return Se.flags&131072?Xe:nm(u,Se)}}}}if(e.isParameter(u)&&!u.type&&!u.initializer&&!u.dotDotDotToken){var Be=u.parent;if(Be.parameters.length>=2&&RA(Be)){var fr=S0(Be);if(fr&&fr.parameters.length===1&&R(fr)){var sr=Kt(_n(fr.parameters[0]));if(sr.flags&1048576&&Ip(sr,po)&&!Gx(r)){var Se=Tm(Be,sr,sr,void 0,a.flowNode),gr=Be.parameters.indexOf(u)-(e.getThisParameter(Be)?1:0);return Fu(Se,Qf(gr))}}}}}return _n(r)}function fH(r,a){if(e.isThisInTypeQuery(r))return Pb(r);var u=Wl(r);if(u===en)return ar;if(u===_t){if(Q5(r))return nt(r,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),ar;var f=e.getContainingFunction(r);return Ae<2&&(f.kind===216?nt(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(f,512)&&nt(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Mi(f).flags|=8192,_n(u)}dH(r)&&Kx(u,r);var p=Iu(u),g=qM(p,r);pp(g)&&DA(r,g)&&g.declarations&&Yl(r,g.declarations,r.escapedText);var j=p.valueDeclaration;if(j&&p.flags&32){if(j.kind===260&&e.nodeIsDecorated(j))for(var f=e.getContainingClass(r);f!==void 0;){if(f===j&&f.name!==r){Mi(j).flags|=16777216,Mi(r).flags|=33554432;break}f=e.getContainingClass(f)}else if(j.kind===228)for(var f=e.getThisContainer(r,!1);f.kind!==308;){if(f.parent===j){(e.isPropertyDeclaration(f)&&e.isStatic(f)||e.isClassStaticBlockDeclaration(f))&&(Mi(j).flags|=16777216,Mi(r).flags|=33554432);break}f=e.getThisContainer(f,!1)}}gH(r,u);var pe=lH(p,r),Se=e.getAssignmentTargetKind(r);if(Se){if(!(p.flags&3)&&!(e.isInJSFile(r)&&p.flags&512)){var Be=p.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:p.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:p.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:p.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:p.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return nt(r,Be,na(u)),ar}if(uf(p))return p.flags&3?nt(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,na(u)):nt(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,na(u)),ar}var fr=p.flags&2097152;if(p.flags&3){if(Se===1)return pe}else if(fr)j=Ol(u);else return pe;if(!j)return pe;pe=TP(pe,r,a);for(var sr=e.getRootDeclaration(j).kind===166,gr=y0(j),_r=y0(r),Kr=_r!==gr,mt=r.parent&&r.parent.parent&&e.isSpreadAssignment(r.parent)&&DP(r.parent.parent),Vt=u.flags&134217728;_r!==gr&&(_r.kind===215||_r.kind===216||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_r))&&(b0(p)&&pe!==ds||sr&&!Gx(p));)_r=y0(_r);var wt=sr||fr||Kr||mt||Vt||pH(r,j)||pe!==We&&pe!==ds&&(!ue||(pe.flags&16387)!==0||Hy(r)||r.parent.kind===278)||r.parent.kind===232||j.kind===257&&j.exclamationToken||j.flags&16777216,rn=wt?sr?sH(pe,j):pe:pe===We||pe===ds?Ar:Wd(pe),on=Tm(r,pe,rn,_r);if(!l5(r)&&(pe===We||pe===ds)){if(on===We||on===ds)return mr&&(nt(e.getNameOfDeclaration(j),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,na(u),Hn(on)),nt(r,e.Diagnostics.Variable_0_implicitly_has_an_1_type,na(u),Hn(on))),M0(on)}else if(!wt&&!Wy(pe)&&Wy(on))return nt(r,e.Diagnostics.Variable_0_is_used_before_being_assigned,na(u)),pe;return Se?Xf(on):on}function pH(r,a){if(e.isBindingElement(a)){var u=e.findAncestor(r,e.isBindingElement);return u&&e.getRootDeclaration(u)===e.getRootDeclaration(a)}}function dH(r){var a,u=r.parent;if(u){if(e.isPropertyAccessExpression(u)&&u.expression===r||e.isExportSpecifier(u)&&u.isTypeOnly)return!1;var f=(a=u.parent)===null||a===void 0?void 0:a.parent;if(f&&e.isExportDeclaration(f)&&f.isTypeOnly)return!1}return!0}function _H(r,a){return!!e.findAncestor(r,function(u){return u===a?"quit":e.isFunctionLike(u)||u.parent&&e.isPropertyDeclaration(u.parent)&&!e.hasStaticModifier(u.parent)&&u.parent.initializer===u})}function mH(r,a){return e.findAncestor(r,function(u){return u===a?"quit":u===a.initializer||u===a.condition||u===a.incrementor||u===a.statement})}function EP(r){return e.findAncestor(r,function(a){return!a||e.nodeStartsNewLexicalEnvironment(a)?"quit":e.isIterationStatement(a,!1)})}function gH(r,a){if(!(Ae>=2||!(a.flags&34)||!a.valueDeclaration||e.isSourceFile(a.valueDeclaration)||a.valueDeclaration.parent.kind===295)){var u=e.getEnclosingBlockScopeContainer(a.valueDeclaration),f=_H(r,u),p=EP(u);if(p){if(f){var g=!0;if(e.isForStatement(u)){var j=e.getAncestor(a.valueDeclaration,258);if(j&&j.parent===u){var pe=mH(r.parent,u);if(pe){var Se=Mi(pe);Se.flags|=131072;var Be=Se.capturedBlockScopeBindings||(Se.capturedBlockScopeBindings=[]);e.pushIfUnique(Be,a),pe===u.initializer&&(g=!1)}}}g&&(Mi(p).flags|=65536)}if(e.isForStatement(u)){var j=e.getAncestor(a.valueDeclaration,258);j&&j.parent===u&&vH(r,u)&&(Mi(a.valueDeclaration).flags|=4194304)}Mi(a.valueDeclaration).flags|=524288}f&&(Mi(a.valueDeclaration).flags|=262144)}}function hH(r,a){var u=Mi(r);return!!u&&e.contains(u.capturedBlockScopeBindings,Zn(a))}function vH(r,a){for(var u=r;u.parent.kind===214;)u=u.parent;var f=!1;if(e.isAssignmentTarget(u))f=!0;else if(u.parent.kind===221||u.parent.kind===222){var p=u.parent;f=p.operator===45||p.operator===46}return f?!!e.findAncestor(u,function(g){return g===a?"quit":g===a.statement}):!1}function CP(r,a){if(Mi(r).flags|=2,a.kind===169||a.kind===173){var u=a.parent;Mi(u).flags|=4}else Mi(a).flags|=4}function h5(r){return e.isSuperCall(r)?r:e.isFunctionLike(r)?void 0:e.forEachChild(r,h5)}function v5(r){var a=Zn(r),u=mn(a),f=sd(u);return f===pt}function y5(r,a,u){var f=a.parent,p=e.getClassExtendsHeritageElement(f);p&&!v5(f)&&r.flowNode&&!Hx(r.flowNode,!1)&&nt(r,u)}function yH(r,a){e.isPropertyDeclaration(a)&&e.hasStaticModifier(a)&&a.initializer&&e.textRangeContainsPositionInclusive(a.initializer,r.pos)&&e.hasDecorators(a.parent)&&nt(r,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Pb(r){var a=Hy(r),u=e.getThisContainer(r,!0),f=!1;switch(u.kind===173&&y5(r,u,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),u.kind===216&&(u=e.getThisContainer(u,!1),f=!0),yH(r,u),u.kind){case 264:nt(r,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:nt(r,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 173:b5(r,u)&&nt(r,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 164:nt(r,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!a&&f&&Ae<2&&CP(r,u);var p=kP(r,!0,u);if(Hr){var g=_n(Fr);if(p===g&&f)nt(r,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!p){var j=nt(r,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(u)){var pe=kP(u);pe&&pe!==g&&e.addRelatedInfo(j,e.createDiagnosticForNode(u,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return p||Ie}function kP(r,a,u){a===void 0&&(a=!0),u===void 0&&(u=e.getThisContainer(r,!1));var f=e.isInJSFile(r);if(e.isFunctionLike(u)&&(!wP(r)||e.getThisParameter(u))){var p=wc(u)||f&&DH(u);if(!p){var g=SH(u);if(f&&g){var j=Ra(g).symbol;j&&j.members&&j.flags&16&&(p=mn(j).thisType)}else wf(u)&&(p=mn(mo(u.symbol)).thisType);p||(p=D5(u))}if(p)return Tm(r,p)}if(e.isClassLike(u.parent)){var pe=Zn(u.parent),Se=e.isStatic(u)?_n(pe):mn(pe).thisType;return Tm(r,Se)}if(e.isSourceFile(u))if(u.commonJsModuleIndicator){var Be=Zn(u);return Be&&_n(Be)}else{if(u.externalModuleIndicator)return Ar;if(a)return _n(Fr)}}function bH(r){var a=e.getThisContainer(r,!1);if(e.isFunctionLike(a)){var u=of(a);if(u.thisParameter)return Wx(u.thisParameter)}if(e.isClassLike(a.parent)){var f=Zn(a.parent);return e.isStatic(a)?_n(f):mn(f).thisType}}function SH(r){if(r.kind===215&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===171&&r.parent.kind===207&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===215&&r.parent.kind===299&&r.parent.parent.kind===207&&e.isBinaryExpression(r.parent.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===215&&e.isPropertyAssignment(r.parent)&&e.isIdentifier(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent.parent)&&e.isCallExpression(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(r)&&e.isIdentifier(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent)&&e.isCallExpression(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&e.getAssignmentDeclarationKind(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function DH(r){var a=e.getJSDocType(r);if(a&&a.kind===320){var u=a;if(u.parameters.length>0&&u.parameters[0].name&&u.parameters[0].name.escapedText==="this")return ea(u.parameters[0].type)}var f=e.getJSDocThisTag(r);if(f&&f.typeExpression)return ea(f.typeExpression)}function b5(r,a){return!!e.findAncestor(r,function(u){return e.isFunctionLikeDeclaration(u)?"quit":u.kind===166&&u.parent===a})}function AP(r){var a=r.parent.kind===210&&r.parent.expression===r,u=e.getSuperContainer(r,!0),f=u,p=!1,g=!1;if(!a){for(;f&&f.kind===216;)e.hasSyntacticModifier(f,512)&&(g=!0),f=e.getSuperContainer(f,!0),p=Ae<2;f&&e.hasSyntacticModifier(f,512)&&(g=!0)}var j=gr(f),pe=0;if(!j){var Se=e.findAncestor(r,function(_r){return _r===f?"quit":_r.kind===164});return Se&&Se.kind===164?nt(r,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):a?nt(r,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!f||!f.parent||!(e.isClassLike(f.parent)||f.parent.kind===207)?nt(r,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):nt(r,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ar}if(!a&&u.kind===173&&y5(r,f,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(f)||a?(pe=512,!a&&Ae>=2&&Ae<=8&&(e.isPropertyDeclaration(f)||e.isClassStaticBlockDeclaration(f))&&e.forEachEnclosingBlockScopeContainer(r.parent,function(_r){(!e.isSourceFile(_r)||e.isExternalOrCommonJsModule(_r))&&(Mi(_r).flags|=134217728)})):pe=256,Mi(r).flags|=pe,f.kind===171&&g&&(e.isSuperProperty(r.parent)&&e.isAssignmentTarget(r.parent)?Mi(f).flags|=4096:Mi(f).flags|=2048),p&&CP(r.parent,f),f.parent.kind===207)return Ae<2?(nt(r,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ar):Ie;var Be=f.parent;if(!e.getClassExtendsHeritageElement(Be))return nt(r,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ar;var fr=mn(Zn(Be)),sr=fr&&Jc(fr)[0];if(!sr)return ar;if(f.kind===173&&b5(r,f))return nt(r,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ar;return pe===512?sd(fr):Hu(sr,fr.thisType);function gr(_r){return _r?a?_r.kind===173:e.isClassLike(_r.parent)||_r.parent.kind===207?e.isStatic(_r)?_r.kind===171||_r.kind===170||_r.kind===174||_r.kind===175||_r.kind===169||_r.kind===172:_r.kind===171||_r.kind===170||_r.kind===174||_r.kind===175||_r.kind===169||_r.kind===168||_r.kind===173:!1:!1}}function xH(r){return(r.kind===171||r.kind===174||r.kind===175)&&r.parent.kind===207?r.parent:r.kind===215&&r.parent.kind===299?r.parent.parent:void 0}function S5(r){return e.getObjectFlags(r)&4&&r.target===rc?Go(r)[0]:void 0}function TH(r){return Ts(r,function(a){return a.flags&2097152?e.forEach(a.types,S5):S5(a)})}function D5(r){if(r.kind!==216){if(RA(r)){var a=S0(r);if(a){var u=a.thisParameter;if(u)return _n(u)}}var f=e.isInJSFile(r);if(Hr||f){var p=xH(r);if(p){for(var g=pg(p,void 0),j=p,pe=g;pe;){var Se=TH(pe);if(Se)return Sa(Se,sP(Xv(p)));if(j.parent.kind!==299)break;j=j.parent.parent,pe=pg(j,void 0)}return Gu(g?qd(g):Gs(p))}var Be=e.walkUpParenthesizedExpressions(r.parent);if(Be.kind===223&&Be.operatorToken.kind===63){var fr=Be.left;if(e.isAccessExpression(fr)){var sr=fr.expression;if(f&&e.isIdentifier(sr)){var gr=e.getSourceFileOfNode(Be);if(gr.commonJsModuleIndicator&&Wl(sr)===gr.symbol)return}return Gu(Gs(sr))}}}}}function x5(r){var a=r.parent;if(RA(a)){var u=e.getImmediatelyInvokedFunctionExpression(a);if(u&&u.arguments){var f=aw(u),p=a.parameters.indexOf(r);if(r.dotDotDotToken)return nw(f,p,f.length,Ie,void 0,0);var g=Mi(u),j=g.resolvedSignature;g.resolvedSignature=Co;var pe=p<f.length?cg(Ra(f[p])):r.initializer?void 0:rt;return g.resolvedSignature=j,pe}var Se=S0(a);if(Se){var Be=a.parameters.indexOf(r)-(e.getThisParameter(a)?1:0);return r.dotDotDotToken&&e.lastOrUndefined(a.parameters)===r?T0(Se,Be):th(Se,Be)}}}function PP(r,a){var u=e.getEffectiveTypeAnnotationNode(r);if(u)return ea(u);switch(r.kind){case 166:return x5(r);case 205:return EH(r,a);case 169:if(e.isStatic(r))return CH(r,a)}}function EH(r,a){var u=r.parent.parent,f=r.propertyName||r.name,p=PP(u,a)||u.kind!==205&&u.initializer&&qb(u,r.dotDotDotToken?64:0);if(!(!p||e.isBindingPattern(f)||e.isComputedNonLiteralName(f))){if(u.name.kind===204){var g=e.indexOfNode(r.parent.elements,r);return g<0?void 0:MP(p,g)}var j=D_(f);if(Kc(j)){var pe=Jl(j);return di(p,pe)}}}function CH(r,a){var u=e.isExpression(r.parent)&&Lu(r.parent,a);if(u)return rh(u,Zn(r).escapedName)}function kH(r,a){var u=r.parent;if(e.hasInitializer(u)&&r===u.initializer){var f=PP(u,a);if(f)return f;if(!(a&8)&&e.isBindingPattern(u.name)&&u.name.elements.length>0)return gn(u.name,!0,!1)}}function AH(r,a){var u=e.getContainingFunction(r);if(u){var f=NP(u,a);if(f){var p=e.getFunctionFlags(u);if(p&1){var g=(p&2)!==0;f.flags&1048576&&(f=Nc(f,function(Se){return!!mg(1,Se,g)}));var j=mg(1,f,(p&2)!==0);if(!j)return;f=j}if(p&2){var pe=Ts(f,Hd);return pe&&zi([pe,I7(pe)])}return f}}}function PH(r,a){var u=Lu(r,a);if(u){var f=Hd(u);return f&&zi([f,I7(f)])}}function wH(r,a){var u=e.getContainingFunction(r);if(u){var f=e.getFunctionFlags(u),p=NP(u,a);if(p){var g=(f&2)!==0;return!r.asteriskToken&&p.flags&1048576&&(p=Nc(p,function(j){return!!mg(1,j,g)})),r.asteriskToken?p:mg(0,p,g)}}}function wP(r){for(var a=!1;r.parent&&!e.isFunctionLike(r.parent);){if(e.isParameter(r.parent)&&(a||r.parent.initializer===r))return!0;e.isBindingElement(r.parent)&&r.parent.initializer===r&&(a=!0),r=r.parent}return!1}function T5(r,a){var u=!!(e.getFunctionFlags(a)&2),f=NP(a,void 0);if(f)return mg(r,f,u)||void 0}function NP(r,a){var u=Bv(r);if(u)return u;var f=LP(r);if(f&&!tA(f))return Ho(f);var p=e.getImmediatelyInvokedFunctionExpression(r);if(p)return Lu(p,a)}function E5(r,a){var u=aw(r),f=u.indexOf(a);return f===-1?void 0:IP(r,f)}function IP(r,a){if(e.isImportCall(r))return a===0?Ft:a===1?yO(!1):Ie;var u=Mi(r).resolvedSignature===gs?gs:ey(r);if(e.isJsxOpeningLikeElement(r)&&a===0)return Zx(u,r);var f=u.parameters.length-1;return R(u)&&a>=f?Fu(_n(u.parameters[f]),Qf(a-f),256):cf(u,a)}function NH(r,a){if(r.parent.kind===212)return E5(r.parent,a)}function IH(r,a){var u=r.parent,f=u.left,p=u.operatorToken,g=u.right;switch(p.kind){case 63:case 76:case 75:case 77:return r===g?MH(u):void 0;case 56:case 60:var j=Lu(u,a);return r===g&&(j&&j.pattern||!j&&!e.isDefaultedExpandoInitializer(u))?Ic(f):j;case 55:case 27:return r===g?Lu(u,a):void 0;default:return}}function OH(r){if(r.symbol)return r.symbol;if(e.isIdentifier(r))return Wl(r);if(e.isPropertyAccessExpression(r)){var a=Ic(r.expression);return e.isPrivateIdentifier(r.name)?f(a,r.name):Fa(a,r.name.escapedText)}if(e.isElementAccessExpression(r)){var u=Gs(r.argumentExpression);if(!Kc(u))return;var a=Ic(r.expression);return Fa(a,Jl(u))}return;function f(p,g){var j=iT(g.escapedText,g);return j&&HP(p,j)}}function MH(r){var a,u,f=e.getAssignmentDeclarationKind(r);switch(f){case 0:case 4:var p=OH(r.left),g=p&&p.valueDeclaration;if(g&&(e.isPropertyDeclaration(g)||e.isPropertySignature(g))){var j=e.getEffectiveTypeAnnotationNode(g);return j&&Sa(ea(j),la(p).mapper)||(e.isPropertyDeclaration(g)?g.initializer&&Ic(r.left):void 0)}return f===0?Ic(r.left):C5(r);case 5:if(Qx(r,f))return C5(r);if(r.left.symbol){var pe=r.left.symbol.valueDeclaration;if(!pe)return;var Se=e.cast(r.left,e.isAccessExpression),j=e.getEffectiveTypeAnnotationNode(pe);if(j)return ea(j);if(e.isIdentifier(Se.expression)){var Be=Se.expression,fr=Ls(Be,Be.escapedText,111551,void 0,Be.escapedText,!0);if(fr){var sr=fr.valueDeclaration&&e.getEffectiveTypeAnnotationNode(fr.valueDeclaration);if(sr){var gr=e.getElementOrPropertyAccessName(Se);if(gr!==void 0)return rh(ea(sr),gr)}return}}return e.isInJSFile(pe)?void 0:Ic(r.left)}else return Ic(r.left);case 1:case 6:case 3:case 2:var _r=void 0;f!==2&&(_r=(a=r.left.symbol)===null||a===void 0?void 0:a.valueDeclaration),_r||(_r=(u=r.symbol)===null||u===void 0?void 0:u.valueDeclaration);var Kr=_r&&e.getEffectiveTypeAnnotationNode(_r);return Kr?ea(Kr):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(f)}}function Qx(r,a){if(a===void 0&&(a=e.getAssignmentDeclarationKind(r)),a===4)return!0;if(!e.isInJSFile(r)||a!==5||!e.isIdentifier(r.left.expression))return!1;var u=r.left.expression.escapedText,f=Ls(r.left,u,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(f==null?void 0:f.valueDeclaration)}function C5(r){if(!r.symbol)return Ic(r.left);if(r.symbol.valueDeclaration){var a=e.getEffectiveTypeAnnotationNode(r.symbol.valueDeclaration);if(a){var u=ea(a);if(u)return u}}var f=e.cast(r.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(f.expression,!1))){var p=Pb(f.expression),g=e.getElementOrPropertyAccessName(f);return g!==void 0&&rh(p,g)||void 0}}function FH(r){return!!(e.getCheckFlags(r)&262144&&!r.type&&bt(r,0)>=0)}function rh(r,a,u){return Ts(r,function(f){var p;if(Mu(f)&&!f.declaration.nameType){var g=Ul(f),j=uu(g)||g,pe=u||kl(e.unescapeLeadingUnderscores(a));if(So(pe,j))return mx(f,pe)}else if(f.flags&3670016){var Se=Fa(f,a);if(Se)return FH(Se)?void 0:_n(Se);if(po(f)){var Be=d0(f);if(Be&&e.isNumericLiteralName(a)&&+a>=0)return Be}return(p=Fh(Ly(f),u||kl(e.unescapeLeadingUnderscores(a))))===null||p===void 0?void 0:p.type}},!0)}function k5(r,a){if(e.Debug.assert(e.isObjectLiteralMethod(r)),!(r.flags&33554432))return OP(r,a)}function OP(r,a){var u=r.parent,f=e.isPropertyAssignment(r)&&PP(r,a);if(f)return f;var p=pg(u,a);if(p){if(Wf(r)){var g=Zn(r);return rh(p,g.escapedName,la(g).nameType)}if(r.name){var j=D_(r.name);return Ts(p,function(pe){var Se;return(Se=Fh(Ly(pe),j))===null||Se===void 0?void 0:Se.type},!0)}}}function MP(r,a){return r&&(rh(r,""+a)||Ts(r,function(u){return Pw(1,u,Ar,void 0,!1)},!0))}function LH(r,a){var u=r.parent;return r===u.whenTrue||r===u.whenFalse?Lu(u,a):void 0}function RH(r,a,u){var f=pg(r.openingElement.tagName,u),p=rT(Yv(r));if(f&&!fa(f)&&p&&p!==""){var g=e.getSemanticJsxChildren(r.children),j=g.indexOf(a),pe=rh(f,p);return pe&&(g.length===1?pe:Ts(pe,function(Se){return xm(Se)?Fu(Se,Qf(j)):Se},!0))}}function BH(r,a){var u=r.parent;return e.isJsxAttributeLike(u)?Lu(r,a):e.isJsxElement(u)?RH(u,r,a):void 0}function A5(r,a){if(e.isJsxAttribute(r)){var u=pg(r.parent,a);return!u||fa(u)?void 0:rh(u,r.name.escapedText)}else return Lu(r.parent,a)}function wb(r){switch(r.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return wb(r.expression);case 291:return!r.expression||wb(r.expression)}return!1}function jH(r,a){return M$(a,r)||qA(a,e.concatenate(e.map(e.filter(r.properties,function(u){return!!u.symbol&&u.kind===299&&wb(u.initializer)&&h0(a,u.symbol.escapedName)}),function(u){return[function(){return $b(u.initializer)},u.symbol.escapedName]}),e.map(e.filter(Ro(a),function(u){var f;return!!(u.flags&16777216)&&!!(!((f=r==null?void 0:r.symbol)===null||f===void 0)&&f.members)&&!r.symbol.members.has(u.escapedName)&&h0(a,u.escapedName)}),function(u){return[function(){return Ar},u.escapedName]})),So,a)}function JH(r,a){return qA(a,e.concatenate(e.map(e.filter(r.properties,function(u){return!!u.symbol&&u.kind===288&&h0(a,u.symbol.escapedName)&&(!u.initializer||wb(u.initializer))}),function(u){return[u.initializer?function(){return $b(u.initializer)}:function(){return Bn},u.symbol.escapedName]}),e.map(e.filter(Ro(a),function(u){var f;return!!(u.flags&16777216)&&!!(!((f=r==null?void 0:r.symbol)===null||f===void 0)&&f.members)&&!r.symbol.members.has(u.escapedName)&&h0(a,u.escapedName)}),function(u){return[function(){return Ar},u.escapedName]})),So,a)}function pg(r,a){var u=e.isObjectLiteralMethod(r)?k5(r,a):Lu(r,a),f=Xx(u,r,a);if(f&&!(a&&a&2&&f.flags&8650752)){var p=Ts(f,Gr,!0);return p.flags&1048576&&e.isObjectLiteralExpression(r)?jH(r,p):p.flags&1048576&&e.isJsxAttributes(r)?JH(r,p):p}}function Xx(r,a,u){if(r&&ks(r,465829888)){var f=Xv(a);if(f&&u&1&&e.some(f.inferences,nQ))return Yx(r,f.nonFixingMapper);if(f!=null&&f.returnMapper){var p=Yx(r,f.returnMapper);return p.flags&1048576&&Ud(p.types,wn)&&Ud(p.types,yn)?Nc(p,function(g){return g!==wn&&g!==yn}):p}}return r}function Yx(r,a){return r.flags&465829888?Sa(r,a):r.flags&1048576?zi(e.map(r.types,function(u){return Yx(u,a)}),0):r.flags&2097152?ho(e.map(r.types,function(u){return Yx(u,a)})):r}function Lu(r,a){if(r.flags&33554432)return;if(r.contextualType)return r.contextualType;var u=r.parent;switch(u.kind){case 257:case 166:case 169:case 168:case 205:return kH(r,a);case 216:case 250:return AH(r,a);case 226:return wH(u,a);case 220:return PH(u,a);case 210:case 211:return E5(u,r);case 213:case 231:return e.isConstTypeReference(u.type)?j(u):ea(u.type);case 223:return IH(r,a);case 299:case 300:return OP(u,a);case 301:return Lu(u.parent,a);case 206:{var f=u,p=pg(f,a);return MP(p,e.indexOfNode(f.elements,r))}case 224:return LH(r,a);case 236:return e.Debug.assert(u.parent.kind===225),NH(u.parent,r);case 214:{var g=e.isInJSFile(u)?e.getJSDocTypeTag(u):void 0;return g?e.isJSDocTypeTag(g)&&e.isConstTypeReference(g.typeExpression.type)?j(u):ea(g.typeExpression.type):Lu(u,a)}case 232:return Lu(u,a);case 235:return ea(u.type);case 274:return Ma(u);case 291:return BH(u,a);case 288:case 290:return A5(u,a);case 283:case 282:return UH(u,a)}return;function j(pe){return Lu(pe,a)}}function Xv(r){var a=e.findAncestor(r,function(u){return!!u.inferenceContext});return a&&a.inferenceContext}function UH(r,a){return e.isJsxOpeningElement(r)&&r.parent.contextualType&&a!==4?r.parent.contextualType:IP(r,0)}function Zx(r,a){return l7(a)!==0?VH(r,a):qH(r,a)}function VH(r,a){var u=fw(r,ur);u=P5(a,Yv(a),u);var f=dg(H.IntrinsicAttributes,a);return pa(f)||(u=Mv(f,u)),u}function zH(r,a){if(r.compositeSignatures){for(var u=[],f=0,p=r.compositeSignatures;f<p.length;f++){var g=p[f],j=Ho(g);if(fa(j))return j;var pe=di(j,a);if(!pe)return;u.push(pe)}return ho(u)}var Se=Ho(r);return fa(Se)?Se:di(Se,a)}function WH(r){if(Qy(r.tagName)){var a=B5(r),u=fT(r,a);return Jy(u)}var f=Gs(r.tagName);if(f.flags&128){var a=R5(f,r);if(!a)return ar;var u=fT(r,a);return Jy(u)}return f}function P5(r,a,u){var f=lG(a);if(f){var p=mn(f),g=WH(r);if(f.flags&524288){var j=la(f).typeParameters;if(e.length(j)>=2){var pe=dm([g,u],j,2,e.isInJSFile(r));return Jv(f,pe)}}if(e.length(p.typeParameters)>=2){var pe=dm([g,u],p.typeParameters,2,e.isInJSFile(r));return b_(p,pe)}}return u}function qH(r,a){var u=Yv(a),f=fG(u),p=f===void 0?fw(r,ur):f===""?Ho(r):zH(r,f);if(!p)return f&&e.length(a.attributes.properties)&&nt(a,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(f)),ur;if(p=P5(a,u,p),fa(p))return p;var g=p,j=dg(H.IntrinsicClassAttributes,a);if(!pa(j)){var pe=Ap(j.symbol),Se=Ho(r),Be=void 0;if(pe){var fr=dm([Se],pe,af(pe),e.isInJSFile(a));Be=Sa(j,Cu(pe,fr))}else Be=j;g=Mv(Be,g)}var sr=dg(H.IntrinsicAttributes,a);return pa(sr)||(g=Mv(sr,g)),g}function $H(r){return e.getStrictOptionValue(Ce,"noImplicitAny")?e.reduceLeft(r,function(a,u){return a===u||!a?a:$D(a.typeParameters,u.typeParameters)?KH(a,u):void 0}):void 0}function HH(r,a,u){if(!r||!a)return r||a;var f=zi([_n(r),Sa(_n(a),u)]);return zh(r,f)}function GH(r,a,u){for(var f=Ku(r),p=Ku(a),g=f>=p?r:a,j=g===r?a:r,pe=g===r?f:p,Se=ep(r)||ep(a),Be=Se&&!ep(g),fr=new Array(pe+(Be?1:0)),sr=0;sr<pe;sr++){var gr=th(g,sr);g===a&&(gr=Sa(gr,u));var _r=th(j,sr)||ur;j===a&&(_r=Sa(_r,u));var Kr=zi([gr,_r]),mt=Se&&!Be&&sr===pe-1,Vt=sr>=Zf(g)&&sr>=Zf(j),wt=sr>=f?void 0:Zy(r,sr),rn=sr>=p?void 0:Zy(a,sr),on=wt===rn?wt:wt?rn?void 0:wt:rn,Un=Lo(1|(Vt&&!mt?16777216:0),on||"arg".concat(sr));Un.type=mt?zc(Kr):Kr,fr[sr]=Un}if(Be){var Gn=Lo(1,"args");Gn.type=zc(cf(j,pe)),j===a&&(Gn.type=Sa(Gn.type,u)),fr[pe]=Gn}return fr}function KH(r,a){var u=r.typeParameters||a.typeParameters,f;r.typeParameters&&a.typeParameters&&(f=Cu(a.typeParameters,r.typeParameters));var p=r.declaration,g=GH(r,a,f),j=HH(r.thisParameter,a.thisParameter,f),pe=Math.max(r.minArgumentCount,a.minArgumentCount),Se=Cf(p,u,j,g,void 0,void 0,pe,(r.flags|a.flags)&39);return Se.compositeKind=2097152,Se.compositeSignatures=e.concatenate(r.compositeKind===2097152&&r.compositeSignatures||[r],[a]),f&&(Se.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?Sm(r.mapper,f):f),Se}function FP(r,a){var u=La(r,0),f=e.filter(u,function(p){return!QH(p,a)});return f.length===1?f[0]:$H(f)}function QH(r,a){for(var u=0;u<a.parameters.length;u++){var f=a.parameters[u];if(f.initializer||f.questionToken||f.dotDotDotToken||Hg(f))break}return a.parameters.length&&e.parameterIsThisKeyword(a.parameters[0])&&u--,!ep(r)&&Ku(r)<u}function LP(r){return e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)?S0(r):void 0}function S0(r){e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r));var a=e0(r);if(a)return a;var u=pg(r,1);if(u){if(!(u.flags&1048576))return FP(u,r);for(var f,p=u.types,g=0,j=p;g<j.length;g++){var pe=j[g],Se=FP(pe,r);if(Se)if(!f)f=[Se];else if(bb(f[0],Se,!1,!0,!0,u0))f.push(Se);else return}if(f)return f.length===1?f[0]:WD(f[0],f)}}function XH(r,a){Ae<2&&Zc(r,Ce.downlevelIteration?1536:1024);var u=Ra(r.expression,a);return E_(33,u,Ar,r.expression)}function YH(r){return r.isSpread?Fu(r.type,ht):r.type}function Ky(r){return r.kind===205&&!!r.initializer||r.kind===223&&r.operatorToken.kind===63}function w5(r,a,u){for(var f=r.elements,p=f.length,g=[],j=[],pe=pg(r,void 0),Se=e.isAssignmentTarget(r),Be=e1(r),fr=!1,sr=0;sr<p;sr++){var gr=f[sr];if(gr.kind===227){Ae<2&&Zc(gr,Ce.downlevelIteration?1536:1024);var _r=Ra(gr.expression,a,u);if(xm(_r))g.push(_r),j.push(8);else if(Se){var Kr=$f(_r,ht)||Pw(65,_r,Ar,void 0,!1)||ur;g.push(Kr),j.push(4)}else g.push(E_(33,_r,Ar,gr.expression)),j.push(4)}else if(tt&&gr.kind===229)fr=!0,g.push(St),j.push(2);else{var mt=MP(pe,g.length),Vt=r1(gr,a,mt,u);if(g.push(dl(Vt,!0,fr)),j.push(fr?2:1),pe&&pd(pe,qv)&&a&&a&2&&!(a&4)&&zl(gr)){var wt=Xv(r);e.Debug.assert(wt),F8(wt,gr,Vt)}}}return Se?Gf(g,j):u||Be||pe&&pd(pe,qv)?N5(Gf(g,j,Be)):N5(zc(g.length?zi(e.sameMap(g,function(rn,on){return j[on]&8?gm(rn,ht)||Ie:rn}),2):ue?at:rt,Be))}function N5(r){if(!(e.getObjectFlags(r)&4))return r;var a=r.literalType;return a||(a=r.literalType=sO(r),a.objectFlags|=147456),a}function ZH(r){switch(r.kind){case 164:return eG(r);case 79:return e.isNumericLiteralName(r.escapedText);case 8:case 10:return e.isNumericLiteralName(r.text);default:return!1}}function eG(r){return mc($d(r),296)}function $d(r){var a=Mi(r.expression);if(!a.resolvedType){if((e.isTypeLiteralNode(r.parent.parent)||e.isClassLike(r.parent.parent)||e.isInterfaceDeclaration(r.parent.parent))&&e.isBinaryExpression(r.expression)&&r.expression.operatorToken.kind===101&&r.parent.kind!==174&&r.parent.kind!==175)return a.resolvedType=ar;if(a.resolvedType=Ra(r.expression),e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&e.isClassExpression(r.parent.parent)){var u=e.getEnclosingBlockScopeContainer(r.parent.parent),f=EP(u);f&&(Mi(f).flags|=65536,Mi(r).flags|=524288,Mi(r.parent.parent).flags|=524288)}(a.resolvedType.flags&98304||!mc(a.resolvedType,402665900)&&!So(a.resolvedType,Tt))&&nt(r,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function rG(r){var a,u=(a=r.declarations)===null||a===void 0?void 0:a[0];return e.isNumericLiteralName(r.escapedName)||u&&e.isNamedDeclaration(u)&&ZH(u.name)}function I5(r){var a,u=(a=r.declarations)===null||a===void 0?void 0:a[0];return e.isKnownSymbol(r)||u&&e.isNamedDeclaration(u)&&e.isComputedPropertyName(u.name)&&mc($d(u.name),4096)}function RP(r,a,u,f){for(var p=[],g=a;g<u.length;g++){var j=u[g];(f===Ft&&!I5(j)||f===ht&&rG(j)||f===An&&I5(j))&&p.push(_n(u[g]))}var pe=p.length?zi(p,2):Ar;return Hf(f,pe,e1(r))}function BP(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var a=la(r);if(!a.immediateTarget){var u=Ol(r);if(!u)return e.Debug.fail();a.immediateTarget=vf(u,!0)}return a.immediateTarget}function tG(r,a){var u=e.isAssignmentTarget(r);JZ(r,u);for(var f=ue?e.createSymbolTable():void 0,p=e.createSymbolTable(),g=[],j=fn,pe=pg(r,void 0),Se=pe&&pe.pattern&&(pe.pattern.kind===203||pe.pattern.kind===207),Be=e1(r),fr=Be?8:0,sr=e.isInJSFile(r)&&!e.isInJsonFile(r),gr=e.getJSDocEnumTag(r),_r=!pe&&sr&&!gr,Kr=Ze,mt=!1,Vt=!1,wt=!1,rn=!1,on=0,Un=r.properties;on<Un.length;on++){var Gn=Un[on];Gn.name&&e.isComputedPropertyName(Gn.name)&&$d(Gn.name)}for(var Ti=0,li=0,Ja=r.properties;li<Ja.length;li++){var Ai=Ja[li],Ua=Zn(Ai),Wa=Ai.name&&Ai.name.kind===164?$d(Ai.name):void 0;if(Ai.kind===299||Ai.kind===300||e.isObjectLiteralMethod(Ai)){var Ga=Ai.kind===299?$7(Ai,a):Ai.kind===300?r1(!u&&Ai.objectAssignmentInitializer?Ai.objectAssignmentInitializer:Ai.name,a):H7(Ai,a);if(sr){var Bo=im(Ai);Bo?(vu(Ga,Bo,Ai),Ga=Bo):gr&&gr.typeExpression&&vu(Ga,ea(gr.typeExpression),Ai)}Kr|=e.getObjectFlags(Ga)&458752;var jo=Wa&&Kc(Wa)?Wa:void 0,No=jo?Lo(4|Ua.flags,Jl(jo),fr|4096):Lo(4|Ua.flags,Ua.escapedName,fr);if(jo&&(No.nameType=jo),u){var Ca=Ai.kind===299&&Ky(Ai.initializer)||Ai.kind===300&&Ai.objectAssignmentInitializer;Ca&&(No.flags|=16777216)}else if(Se&&!(e.getObjectFlags(pe)&512)){var hn=Fa(pe,Ua.escapedName);hn?No.flags|=hn.flags&16777216:!Ce.suppressExcessPropertyErrors&&!nf(pe,Ft)&&nt(Ai.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,na(Ua),Hn(pe))}if(No.declarations=Ua.declarations,No.parent=Ua.parent,Ua.valueDeclaration&&(No.valueDeclaration=Ua.valueDeclaration),No.type=Ga,No.target=Ua,Ua=No,f==null||f.set(No.escapedName,No),pe&&a&&a&2&&!(a&4)&&(Ai.kind===299||Ai.kind===171)&&zl(Ai)){var qt=Xv(r);e.Debug.assert(qt);var yi=Ai.kind===299?Ai.initializer:Ai;F8(qt,yi,Ga)}}else if(Ai.kind===301){Ae<2&&Zc(Ai,2),g.length>0&&(j=ig(j,Qa(),r.symbol,Kr,Be),g=[],p=e.createSymbolTable(),Vt=!1,wt=!1,rn=!1);var Ga=Zi(Ra(Ai.expression));if(Nb(Ga)){var Bi=PA(Ga,Be);if(f&&M5(Bi,f,Ai),Ti=g.length,pa(j))continue;j=ig(j,Bi,r.symbol,Kr,Be)}else nt(Ai,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),j=ar;continue}else e.Debug.assert(Ai.kind===174||Ai.kind===175),o1(Ai);Wa&&!(Wa.flags&8576)?So(Wa,Tt)&&(So(Wa,ht)?wt=!0:So(Wa,An)?rn=!0:Vt=!0,u&&(mt=!0)):p.set(Ua.escapedName,Ua),g.push(Ua)}if(Se){var ha=e.findAncestor(pe.pattern.parent,function(Za){return Za.kind===257||Za.kind===223||Za.kind===166}),si=e.findAncestor(r,function(Za){return Za===ha||Za.kind===301});if(si.kind!==301)for(var qa=0,Ta=Ro(pe);qa<Ta.length;qa++){var No=Ta[qa];!p.get(No.escapedName)&&!Fa(j,No.escapedName)&&(No.flags&16777216||nt(No.valueDeclaration||No.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),p.set(No.escapedName,No),g.push(No))}}if(pa(j))return ar;if(j!==fn)return g.length>0&&(j=ig(j,Qa(),r.symbol,Kr,Be),g=[],p=e.createSymbolTable(),Vt=!1,wt=!1),Ts(j,function(Za){return Za===fn?Qa():Za});return Qa();function Qa(){var Za=[];Vt&&Za.push(RP(r,Ti,g,Ft)),wt&&Za.push(RP(r,Ti,g,ht)),rn&&Za.push(RP(r,Ti,g,An));var dt=Es(r.symbol,p,e.emptyArray,e.emptyArray,Za);return dt.objectFlags|=Kr|128|131072,_r&&(dt.objectFlags|=4096),mt&&(dt.objectFlags|=512),u&&(dt.pattern=r),dt}}function Nb(r){var a=N8(Ts(r,y_));return!!(a.flags&126615553||a.flags&3145728&&e.every(a.types,Nb))}function nG(r){VP(r)}function iG(r,a){return o1(r),Ib(r)||Ie}function aG(r){VP(r.openingElement),Qy(r.closingElement.tagName)?JP(r.closingElement):Ra(r.closingElement.tagName),eT(r)}function oG(r,a){return o1(r),Ib(r)||Ie}function sG(r){VP(r.openingFragment);var a=e.getSourceFileOfNode(r);return e.getJSXTransformEnabled(Ce)&&(Ce.jsxFactory||a.pragmas.has("jsx"))&&!Ce.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&nt(r,Ce.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),eT(r),Ib(r)||Ie}function jP(r){return e.stringContains(r,"-")}function Qy(r){return r.kind===79&&e.isIntrinsicJsxName(r.escapedText)}function O5(r,a){return r.initializer?r1(r.initializer,a):Bn}function cG(r,a){for(var u=r.attributes,f=Lu(u,0),p=ue?e.createSymbolTable():void 0,g=e.createSymbolTable(),j=Ri,pe=!1,Se,Be=!1,fr=2048,sr=rT(Yv(r)),gr=0,_r=u.properties;gr<_r.length;gr++){var Kr=_r[gr],mt=Kr.symbol;if(e.isJsxAttribute(Kr)){var Vt=O5(Kr,a);fr|=e.getObjectFlags(Vt)&458752;var wt=Lo(4|mt.flags,mt.escapedName);if(wt.declarations=mt.declarations,wt.parent=mt.parent,mt.valueDeclaration&&(wt.valueDeclaration=mt.valueDeclaration),wt.type=Vt,wt.target=mt,g.set(wt.escapedName,wt),p==null||p.set(wt.escapedName,wt),Kr.name.escapedText===sr&&(Be=!0),f){var rn=Fa(f,mt.escapedName);rn&&rn.declarations&&pp(rn)&&Yl(Kr.name,rn.declarations,Kr.name.escapedText)}}else{e.Debug.assert(Kr.kind===290),g.size>0&&(j=ig(j,Ai(),u.symbol,fr,!1),g=e.createSymbolTable());var Vt=Zi(Gs(Kr.expression,a));fa(Vt)&&(pe=!0),Nb(Vt)?(j=ig(j,Vt,u.symbol,fr,!1),p&&M5(Vt,p,Kr)):(nt(Kr.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Se=Se?ho([Se,Vt]):Vt)}}pe||g.size>0&&(j=ig(j,Ai(),u.symbol,fr,!1));var on=r.parent.kind===281?r.parent:void 0;if(on&&on.openingElement===r&&on.children.length>0){var Un=eT(on,a);if(!pe&&sr&&sr!==""){Be&&nt(u,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(sr));var Gn=pg(r.attributes,void 0),Ti=Gn&&rh(Gn,sr),li=Lo(4,sr);li.type=Un.length===1?Un[0]:Ti&&pd(Ti,qv)?Gf(Un):zc(zi(Un)),li.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(sr),void 0,void 0),e.setParent(li.valueDeclaration,u),li.valueDeclaration.symbol=li;var Ja=e.createSymbolTable();Ja.set(sr,li),j=ig(j,Es(u.symbol,Ja,e.emptyArray,e.emptyArray,e.emptyArray),u.symbol,fr,!1)}}if(pe)return Ie;if(Se&&j!==Ri)return ho([Se,j]);return Se||(j===Ri?Ai():j);function Ai(){fr|=Ze;var Ua=Es(u.symbol,g,e.emptyArray,e.emptyArray,e.emptyArray);return Ua.objectFlags|=fr|128|131072,Ua}}function eT(r,a){for(var u=[],f=0,p=r.children;f<p.length;f++){var g=p[f];if(g.kind===11)g.containsOnlyTriviaWhiteSpaces||u.push(Ft);else{if(g.kind===291&&!g.expression)continue;u.push(r1(g,a))}}return u}function M5(r,a,u){for(var f=0,p=Ro(r);f<p.length;f++){var g=p[f];if(!(g.flags&16777216)){var j=a.get(g.escapedName);if(j){var pe=nt(j.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(j.escapedName));e.addRelatedInfo(pe,e.createDiagnosticForNode(u,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function uG(r,a){return cG(r.parent,a)}function dg(r,a){var u=Yv(a),f=u&&Dc(u),p=f&&Nu(f,r,788968);return p?mn(p):ar}function JP(r){var a=Mi(r);if(!a.resolvedSymbol){var u=dg(H.IntrinsicElements,r);if(pa(u))return mr&&nt(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(H.IntrinsicElements)),a.resolvedSymbol=en;if(!e.isIdentifier(r.tagName))return e.Debug.fail();var f=Fa(u,r.tagName.escapedText);if(f)return a.jsxFlags|=1,a.resolvedSymbol=f;var p=$f(u,Ft);return p?(a.jsxFlags|=2,a.resolvedSymbol=u.symbol):(nt(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+H.IntrinsicElements),a.resolvedSymbol=en)}return a.resolvedSymbol}function UP(r){var a=r&&e.getSourceFileOfNode(r),u=a&&Mi(a);if(!(u&&u.jsxImplicitImportContainer===!1)){if(u&&u.jsxImplicitImportContainer)return u.jsxImplicitImportContainer;var f=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(Ce,a),Ce);if(f){var p=e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Classic,g=p?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,j=Zl(r,f,g,r),pe=j&&j!==en?mo(Vs(j)):void 0;return u&&(u.jsxImplicitImportContainer=pe||!1),pe}}}function Yv(r){var a=r&&Mi(r);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){var u=UP(r);if(!u||u===en){var f=fs(r);u=Ls(r,f,1920,void 0,f,!1)}if(u){var p=Vs(Nu(Dc(Vs(u)),H.JSX,1920));if(p&&p!==en)return a&&(a.jsxNamespace=p),p}a&&(a.jsxNamespace=!1)}var g=Vs(n0(H.JSX,1920,void 0));if(g!==en)return g}function F5(r,a){var u=a&&Nu(a.exports,r,788968),f=u&&mn(u),p=f&&Ro(f);if(p){if(p.length===0)return"";if(p.length===1)return p[0].escapedName;p.length>1&&u.declarations&&nt(u.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(r))}}function lG(r){return r&&Nu(r.exports,H.LibraryManagedAttributes,788968)}function fG(r){return F5(H.ElementAttributesPropertyNameContainer,r)}function rT(r){return F5(H.ElementChildrenAttributeNameContainer,r)}function L5(r,a){if(r.flags&4)return[Co];if(r.flags&128){var u=R5(r,a);if(u){var f=fT(a,u);return[f]}else return nt(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+H.IntrinsicElements),e.emptyArray}var p=Gr(r),g=La(p,1);return g.length===0&&(g=La(p,0)),g.length===0&&p.flags&1048576&&(g=Q2(e.map(p.types,function(j){return L5(j,a)}))),g}function R5(r,a){var u=dg(H.IntrinsicElements,a);if(!pa(u)){var f=r.value,p=Fa(u,e.escapeLeadingUnderscores(f));if(p)return _n(p);var g=$f(u,Ft);return g||void 0}return Ie}function pG(r,a,u){if(r===1){var f=J5(u);f&&Af(a,f,Pi,u.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,j)}else if(r===0){var p=j5(u);p&&Af(a,p,Pi,u.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,j)}else{var f=J5(u),p=j5(u);if(!f||!p)return;var g=zi([f,p]);Af(a,g,Pi,u.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,j)}function j(){var pe=e.getTextOfNode(u.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,pe)}}function B5(r){e.Debug.assert(Qy(r.tagName));var a=Mi(r);if(!a.resolvedJsxElementAttributesType){var u=JP(r);return a.jsxFlags&1?a.resolvedJsxElementAttributesType=_n(u)||ar:a.jsxFlags&2?a.resolvedJsxElementAttributesType=$f(dg(H.IntrinsicElements,r),Ft)||ar:a.resolvedJsxElementAttributesType=ar}return a.resolvedJsxElementAttributesType}function j5(r){var a=dg(H.ElementClass,r);if(!pa(a))return a}function Ib(r){return dg(H.Element,r)}function J5(r){var a=Ib(r);if(a)return zi([a,Pt])}function dG(r){var a=dg(H.IntrinsicElements,r);return a?Ro(a):e.emptyArray}function _G(r){(Ce.jsx||0)===0&&nt(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Ib(r)===void 0&&mr&&nt(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function VP(r){var a=e.isJsxOpeningLikeElement(r);if(a&&UZ(r),_G(r),!UP(r)){var u=ya&&Ce.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,f=fs(r),p=a?r.tagName:r,g=void 0;if(e.isJsxOpeningFragment(r)&&f==="null"||(g=Ls(p,f,111551,u,f,!0)),g&&(g.isReferenced=67108863,g.flags&2097152&&!ba(g)&&bl(g)),e.isJsxOpeningFragment(r)){var j=e.getSourceFileOfNode(r),pe=Xs(j);pe&&Ls(p,pe,111551,u,pe,!0)}}if(a){var Se=r,Be=ey(Se);dT(Be,r),pG(l7(Se),Ho(Be),Se)}}function zP(r,a,u){if(r.flags&524288){if(Jd(r,a)||$g(r,a)||jd(a)&&nf(r,Ft)||u&&jP(a))return!0}else if(r.flags&3145728&&Ob(r))for(var f=0,p=r.types;f<p.length;f++){var g=p[f];if(zP(g,a,u))return!0}return!1}function Ob(r){return!!(r.flags&524288&&!(e.getObjectFlags(r)&512)||r.flags&67108864||r.flags&1048576&&e.some(r.types,Ob)||r.flags&2097152&&e.every(r.types,Ob))}function mG(r,a){if(zZ(r),r.expression){var u=Ra(r.expression,a);return r.dotDotDotToken&&u!==Ie&&!Al(u)&&nt(r,e.Diagnostics.JSX_spread_child_must_be_an_array_type),u}else return ar}function tT(r){return r.valueDeclaration?e.getCombinedNodeFlags(r.valueDeclaration):0}function WP(r){if(r.flags&8192||e.getCheckFlags(r)&4)return!0;if(e.isInJSFile(r.valueDeclaration)){var a=r.valueDeclaration.parent;return a&&e.isBinaryExpression(a)&&e.getAssignmentDeclarationKind(a)===3}}function qP(r,a,u,f,p,g){g===void 0&&(g=!0);var j=g?r.kind===163?r.right:r.kind===202?r:r.kind===205&&r.propertyName?r.propertyName:r.name:void 0;return U5(r,a,u,f,p,j)}function U5(r,a,u,f,p,g){var j=e.getDeclarationModifierFlagsFromSymbol(p,u);if(a){if(Ae<2&&V5(p))return g&&nt(g,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(j&256)return g&&nt(g,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,na(p),Hn(Vh(p))),!1}if(j&256&&V5(p)&&(e.isThisProperty(r)||e.isThisInitializedObjectBindingExpression(r)||e.isObjectBindingPattern(r.parent)&&e.isThisInitializedDeclaration(r.parent.parent))){var pe=e.getClassLikeDeclarationOfSymbol(Bc(p));if(pe&&UY(r))return g&&nt(g,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,na(p),e.getTextOfIdentifierOrLiteral(pe.name)),!1}if(!(j&24))return!0;if(j&8){var pe=e.getClassLikeDeclarationOfSymbol(Bc(p));return Jw(r,pe)?!0:(g&&nt(g,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,na(p),Hn(Vh(p))),!1)}if(a)return!0;var Se=eF(r,function(Be){var fr=mn(Zn(Be));return x8(fr,p,u)});return!Se&&(Se=gG(r),Se=Se&&x8(Se,p,u),j&32||!Se)?(g&&nt(g,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,na(p),Hn(Vh(p)||f)),!1):j&32?!0:(f.flags&262144&&(f=f.isThisType?Uc(f):uu(f)),!f||!$u(f,Se)?(g&&nt(g,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,na(p),Hn(Se),Hn(f)),!1):!0)}function gG(r){var a=hG(r),u=(a==null?void 0:a.type)&&ea(a.type);if(u&&u.flags&262144&&(u=Uc(u)),u&&e.getObjectFlags(u)&7)return Rd(u)}function hG(r){var a=e.getThisContainer(r,!1);return a&&e.isFunctionLike(a)?e.getThisParameter(a):void 0}function V5(r){return!!yb(r,function(a){return!(a.flags&8192)})}function Xy(r){return Pf(Ra(r),r)}function nT(r){return!!(Yc(r)&50331648)}function $P(r){return nT(r)?qd(r):r}function vG(r,a){var u=e.isEntityNameExpression(r)?e.entityNameToString(r):void 0;if(r.kind===104){nt(r,e.Diagnostics.The_value_0_cannot_be_used_here,"null");return}if(u!==void 0&&u.length<100){if(e.isIdentifier(r)&&u==="undefined"){nt(r,e.Diagnostics.The_value_0_cannot_be_used_here,"undefined");return}nt(r,a&16777216?a&33554432?e.Diagnostics._0_is_possibly_null_or_undefined:e.Diagnostics._0_is_possibly_undefined:e.Diagnostics._0_is_possibly_null,u)}else nt(r,a&16777216?a&33554432?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function yG(r,a){nt(r,a&16777216?a&33554432?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function z5(r,a,u){if(ue&&r.flags&2){if(e.isEntityNameExpression(a)){var f=e.entityNameToString(a);if(f.length<100)return nt(a,e.Diagnostics._0_is_of_type_unknown,f),ar}return nt(a,e.Diagnostics.Object_is_of_type_unknown),ar}var p=Yc(r);if(p&50331648){u(a,p);var g=qd(r);return g.flags&229376?ar:g}return r}function Pf(r,a){return z5(r,a,vG)}function W5(r,a){var u=Pf(r,a);if(u.flags&16384){if(e.isEntityNameExpression(a)){var f=e.entityNameToString(a);if(e.isIdentifier(a)&&f==="undefined")return nt(a,e.Diagnostics.The_value_0_cannot_be_used_here,f),u;if(f.length<100)return nt(a,e.Diagnostics._0_is_possibly_undefined,f),u}nt(a,e.Diagnostics.Object_is_possibly_undefined)}return u}function q5(r,a){return r.flags&32?bG(r,a):GP(r,r.expression,Xy(r.expression),r.name,a)}function bG(r,a){var u=Ra(r.expression),f=_0(u,r.expression);return Mx(GP(r,r.expression,Pf(f,r.expression),r.name,a),r,f!==u)}function $5(r,a){var u=e.isPartOfTypeQuery(r)&&e.isThisIdentifier(r.left)?Pf(Pb(r.left),r.left):Xy(r.left);return GP(r,r.left,u,r.right,a)}function H5(r){for(;r.parent.kind===214;)r=r.parent;return e.isCallOrNewExpression(r.parent)&&r.parent.expression===r}function iT(r,a){for(var u=e.getContainingClass(a);u;u=e.getContainingClass(u)){var f=u.symbol,p=e.getSymbolNameForPrivateIdentifier(f,r),g=f.members&&f.members.get(p)||f.exports&&f.exports.get(p);if(g)return g}}function SG(r){if(!e.getContainingClass(r))return Fn(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(r.parent)){if(!e.isExpressionNode(r))return Fn(r,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var a=e.isBinaryExpression(r.parent)&&r.parent.operatorToken.kind===101;if(!aT(r)&&!a)return Fn(r,e.Diagnostics.Cannot_find_name_0,e.idText(r))}return!1}function DG(r){SG(r);var a=aT(r);return a&&Fb(a,void 0,!1),Ie}function aT(r){if(e.isExpressionNode(r)){var a=Mi(r);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=iT(r.escapedText,r)),a.resolvedSymbol}}function HP(r,a){return Fa(r,a.escapedName)}function xG(r,a,u){var f,p=Ro(r);p&&e.forEach(p,function(sr){var gr=sr.valueDeclaration;if(gr&&e.isNamedDeclaration(gr)&&e.isPrivateIdentifier(gr.name)&&gr.name.escapedText===a.escapedText)return f=sr,!0});var g=ms(a);if(f){var j=e.Debug.checkDefined(f.valueDeclaration),pe=e.Debug.checkDefined(e.getContainingClass(j));if(u!=null&&u.valueDeclaration){var Se=u.valueDeclaration,Be=e.getContainingClass(Se);if(e.Debug.assert(!!Be),e.findAncestor(Be,function(sr){return pe===sr})){var fr=nt(a,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,g,Hn(r));return e.addRelatedInfo(fr,e.createDiagnosticForNode(Se,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,g),e.createDiagnosticForNode(j,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,g)),!0}}return nt(a,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,g,ms(pe.name||P)),!0}return!1}function G5(r,a){return(Ym(a)||e.isThisProperty(r)&&Th(a))&&e.getThisContainer(r,!0)===zg(a)}function GP(r,a,u,f,p){var g=Mi(a).resolvedSymbol,j=e.getAssignmentTargetKind(r),pe=Gr(j!==0||H5(r)?Gu(u):u),Se=fa(pe)||pe===hr,Be;if(e.isPrivateIdentifier(f)){Ae<99&&(j!==0&&Zc(r,1048576),j!==1&&Zc(r,524288));var fr=iT(f.escapedText,f);if(j&&fr&&fr.valueDeclaration&&e.isMethodDeclaration(fr.valueDeclaration)&&Fn(f,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(f)),Se){if(fr)return pa(pe)?ar:pe;if(!e.getContainingClass(f))return Fn(f,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ie}if(Be=fr?HP(u,fr):void 0,!Be&&xG(u,f,fr))return ar;var sr=Be&&Be.flags&65536&&!(Be.flags&32768);sr&&j!==1&&nt(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(Se)return e.isIdentifier(a)&&g&&Kx(g,r),pa(pe)?ar:pe;Be=Fa(pe,f.escapedText,!1,r.kind===163)}e.isIdentifier(a)&&g&&(Ce.isolatedModules||!(Be&&(F0(Be)||Be.flags&8&&r.parent.kind===302))||e.shouldPreserveConstEnums(Ce)&&g5(r))&&Kx(g,r);var gr;if(Be){pp(Be)&&DA(r,Be)&&Be.declarations&&Yl(f,Be.declarations,f.escapedText),TG(Be,r,f),Fb(Be,r,r7(a,g)),Mi(r).resolvedSymbol=Be;var mt=e.isWriteAccess(r);if(qP(r,a.kind===106,mt,pe,Be),J7(r,Be,j))return nt(f,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(f)),ar;gr=G5(r,Be)?We:mt?hi(Be):_n(Be)}else{var _r=!e.isPrivateIdentifier(f)&&(j===0||!ng(u)||e.isThisTypeParameter(u))?$g(pe,f.escapedText):void 0;if(!(_r&&_r.type)){var Kr=KP(r,u.symbol,!0);return!Kr&&o0(u)?Ie:u.symbol===Fr?(Fr.exports.has(f.escapedText)&&Fr.exports.get(f.escapedText).flags&418?nt(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(f.escapedText),Hn(u)):mr&&nt(f,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Hn(u)),Ie):(f.escapedText&&!gf(r)&&X5(f,e.isThisTypeParameter(u)?pe:u,Kr),ar)}_r.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&nt(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Hn(pe)),gr=Ce.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?zi([_r.type,Ar]):_r.type,Ce.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&nt(f,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(f.escapedText)),_r.declaration&&e.getCombinedNodeFlags(_r.declaration)&268435456&&Yl(f,[_r.declaration],f.escapedText)}return K5(r,Be,gr,f,p)}function KP(r,a,u){var f=e.getSourceFileOfNode(r);if(f&&Ce.checkJs===void 0&&f.checkJsDirective===void 0&&(f.scriptKind===1||f.scriptKind===2)){var p=e.forEach(a==null?void 0:a.declarations,e.getSourceFileOfNode);return!(f!==p&&p&&sl(p))&&!(u&&a&&a.flags&32)&&!(r&&u&&e.isPropertyAccessExpression(r)&&r.expression.kind===108)}return!1}function K5(r,a,u,f,p){var g=e.getAssignmentTargetKind(r);if(g===1)return Hv(u,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&u.flags&1048576)&&!wT(a.declarations))return u;if(u===We)return Ch(r,a);u=TP(u,r,p);var j=!1;if(ue&&lr&&e.isAccessExpression(r)&&r.expression.kind===108){var pe=a&&a.valueDeclaration;if(pe&&UM(pe)&&!e.isStatic(pe)){var Se=y0(r);Se.kind===173&&Se.parent===pe.parent&&!(pe.flags&16777216)&&(j=!0)}}else ue&&a&&a.valueDeclaration&&e.isPropertyAccessExpression(a.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(a.valueDeclaration)&&y0(r)===y0(a.valueDeclaration)&&(j=!0);var Be=Tm(r,u,j?Wd(u):u);return j&&!Wy(u)&&Wy(Be)?(nt(f,e.Diagnostics.Property_0_is_used_before_being_assigned,na(a)),u):g?Xf(Be):Be}function TG(r,a,u){var f=r.valueDeclaration;if(!(!f||e.getSourceFileOfNode(a).isDeclarationFile)){var p,g=e.idText(u);Q5(a)&&!Zk(f)&&!(e.isAccessExpression(a)&&e.isAccessExpression(a.expression))&&!$p(f,u)&&!(e.isMethodDeclaration(f)&&e.getCombinedModifierFlags(f)&32)&&(Ce.useDefineForClassFields||!EG(r))?p=nt(u,e.Diagnostics.Property_0_is_used_before_its_initialization,g):f.kind===260&&a.parent.kind!==180&&!(f.flags&16777216)&&!$p(f,u)&&(p=nt(u,e.Diagnostics.Class_0_used_before_its_declaration,g)),p&&e.addRelatedInfo(p,e.createDiagnosticForNode(f,e.Diagnostics._0_is_declared_here,g))}}function Q5(r){return!!e.findAncestor(r,function(a){switch(a.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return e.isBlock(a.parent)&&e.isClassStaticBlockDeclaration(a.parent.parent)?!0:"quit";default:return e.isExpressionNode(a)?!1:"quit"}})}function EG(r){if(!(r.parent.flags&32))return!1;for(var a=_n(r.parent);;){if(a=a.symbol&&CG(a),!a)return!1;var u=Fa(a,r.escapedName);if(u&&u.valueDeclaration)return!0}}function CG(r){var a=Jc(r);if(a.length!==0)return ho(a)}function X5(r,a,u){var f,p;if(!e.isPrivateIdentifier(r)&&a.flags&1048576&&!(a.flags&131068))for(var g=0,j=a.types;g<j.length;g++){var pe=j[g];if(!Fa(pe,r.escapedText)&&!$g(pe,r.escapedText)){f=e.chainDiagnosticMessages(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),Hn(pe));break}}if(Y5(r.escapedText,a)){var Se=e.declarationNameToString(r),Be=Hn(a);f=e.chainDiagnosticMessages(f,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Se,Be,Be+"."+Se)}else{var fr=N0(a);if(fr&&Fa(fr,r.escapedText))f=e.chainDiagnosticMessages(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),Hn(a)),p=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);else{var sr=e.declarationNameToString(r),gr=Hn(a),_r=PG(sr,a);if(_r!==void 0)f=e.chainDiagnosticMessages(f,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,sr,gr,_r);else{var Kr=QP(r,a);if(Kr!==void 0){var mt=e.symbolName(Kr),Vt=u?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;f=e.chainDiagnosticMessages(f,Vt,sr,gr,mt),p=Kr.valueDeclaration&&e.createDiagnosticForNode(Kr.valueDeclaration,e.Diagnostics._0_is_declared_here,mt)}else{var wt=kG(a)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;f=e.chainDiagnosticMessages(ac(f,a),wt,sr,gr)}}}}var rn=e.createDiagnosticForNodeFromMessageChain(r,f);p&&e.addRelatedInfo(rn,p),Wp(!u||f.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,rn)}function kG(r){return Ce.lib&&!Ce.lib.includes("dom")&&K$(r,function(a){return a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(a.symbol.escapedName))})&&ld(r)}function Y5(r,a){var u=a.symbol&&Fa(_n(a.symbol),r);return u!==void 0&&!!u.valueDeclaration&&e.isStatic(u.valueDeclaration)}function AG(r){for(var a=ms(r),u=e.getScriptTargetFeatures(),f=e.getOwnKeys(u),p=0,g=f;p<g.length;p++){var j=g[p],pe=e.getOwnKeys(u[j]);if(pe!==void 0&&e.contains(pe,a))return j}}function PG(r,a){var u=Gr(a).symbol;if(u)for(var f=e.getScriptTargetFeatures(),p=e.getOwnKeys(f),g=0,j=p;g<j.length;g++){var pe=j[g],Se=f[pe],Be=Se[e.symbolName(u)];if(Be!==void 0&&e.contains(Be,r))return pe}}function Z5(r,a){return Mb(r,Ro(a),106500)}function QP(r,a){var u=Ro(a);if(typeof r!="string"){var f=r.parent;e.isPropertyAccessExpression(f)&&(u=e.filter(u,function(p){return t7(f,a,p)})),r=e.idText(r)}return Mb(r,u,111551)}function e7(r,a){var u=e.isString(r)?r:e.idText(r),f=Ro(a),p=u==="for"?e.find(f,function(g){return e.symbolName(g)==="htmlFor"}):u==="class"?e.find(f,function(g){return e.symbolName(g)==="className"}):void 0;return p??Mb(u,f,111551)}function XP(r,a){var u=QP(r,a);return u&&e.symbolName(u)}function YP(r,a,u){e.Debug.assert(a!==void 0,"outername should always be defined");var f=Rm(r,a,u,void 0,a,!1,!1,!0,function(p,g,j){e.Debug.assertEqual(a,g,"name should equal outerName");var pe=Nu(p,g,j);if(pe)return pe;var Se;if(p===Rr){var Be=e.mapDefined(["string","number","boolean","object","bigint","symbol"],function(fr){return p.has(fr.charAt(0).toUpperCase()+fr.slice(1))?Lo(524288,fr):void 0});Se=Be.concat(e.arrayFrom(p.values()))}else Se=e.arrayFrom(p.values());return Mb(e.unescapeLeadingUnderscores(g),Se,j)});return f}function wG(r,a,u){var f=YP(r,a,u);return f&&e.symbolName(f)}function oT(r,a){return a.exports&&Mb(e.idText(r),Sl(a),2623475)}function NG(r,a){var u=oT(r,a);return u&&e.symbolName(u)}function IG(r,a,u){function f(j){var pe=Jd(r,j);if(pe){var Se=qh(_n(pe));return!!Se&&Zf(Se)>=1&&So(u,cf(Se,0))}return!1}var p=e.isAssignmentTarget(a)?"set":"get";if(f(p)){var g=e.tryGetPropertyAccessOrIdentifierToString(a.expression);return g===void 0?g=p:g+="."+p,g}}function OG(r,a){var u=a.types.filter(function(f){return!!(f.flags&128)});return e.getSpellingSuggestion(r.value,u,function(f){return f.value})}function Mb(r,a,u){return e.getSpellingSuggestion(r,a,f);function f(p){var g=e.symbolName(p);if(!e.startsWith(g,'"')){if(p.flags&u)return g;if(p.flags&2097152){var j=Vm(p);if(j&&j.flags&u)return g}}}}function Fb(r,a,u){var f=r&&r.flags&106500&&r.valueDeclaration;if(f){var p=e.hasEffectiveModifier(f,8),g=r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name);if(!(!p&&!g)&&!(a&&e.isWriteOnlyAccess(a)&&!(r.flags&65536))){if(u){var j=e.findAncestor(a,e.isFunctionLikeDeclaration);if(j&&j.symbol===r)return}(e.getCheckFlags(r)&1?la(r).target:r).isReferenced=67108863}}}function r7(r,a){return r.kind===108||!!a&&e.isEntityNameExpression(r)&&a===Wl(e.getFirstIdentifier(r))}function MG(r,a){switch(r.kind){case 208:return ZP(r,r.expression.kind===106,a,Gu(Ra(r.expression)));case 163:return ZP(r,!1,a,Gu(Ra(r.left)));case 202:return ZP(r,!1,a,ea(r))}}function t7(r,a,u){return ew(r,r.kind===208&&r.expression.kind===106,!1,a,u)}function ZP(r,a,u,f){if(fa(f))return!0;var p=Fa(f,u);return!!p&&ew(r,a,!1,f,p)}function ew(r,a,u,f,p){if(fa(f))return!0;if(p.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(p.valueDeclaration)){var g=e.getContainingClass(p.valueDeclaration);return!e.isOptionalChain(r)&&!!e.findAncestor(r,function(j){return j===g})}return U5(r,a,u,f,p)}function FG(r){var a=r.initializer;if(a.kind===258){var u=a.declarations[0];if(u&&!e.isBindingPattern(u.name))return Zn(u)}else if(a.kind===79)return Wl(a)}function LG(r){return _c(r).length===1&&!!nf(r,ht)}function RG(r){var a=e.skipParentheses(r);if(a.kind===79){var u=Wl(a);if(u.flags&3)for(var f=r,p=r.parent;p;){if(p.kind===246&&f===p.statement&&FG(p)===u&&LG(Ic(p.expression)))return!0;f=p,p=p.parent}}return!1}function BG(r,a){return r.flags&32?jG(r,a):n7(r,Xy(r.expression),a)}function jG(r,a){var u=Ra(r.expression),f=_0(u,r.expression);return Mx(n7(r,Pf(f,r.expression),a),r,f!==u)}function n7(r,a,u){var f=e.getAssignmentTargetKind(r)!==0||H5(r)?Gu(a):a,p=r.argumentExpression,g=Ra(p);if(pa(f)||f===hr)return f;if(_w(f)&&!e.isStringLiteralLike(p))return nt(p,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ar;var j=RG(p)?ht:g,pe=e.isAssignmentTarget(r)?4|(ng(f)&&!e.isThisTypeParameter(f)?2:0):32,Se=gm(f,j,pe,r)||ar;return oM(K5(r,Mi(r).resolvedSymbol,Se,p,u),r)}function i7(r){return e.isCallOrNewExpression(r)||e.isTaggedTemplateExpression(r)||e.isJsxOpeningLikeElement(r)}function Zv(r){return i7(r)&&e.forEach(r.typeArguments,go),r.kind===212?Ra(r.template):e.isJsxOpeningLikeElement(r)?Ra(r.attributes):r.kind!==167&&e.forEach(r.arguments,function(a){Ra(a)}),Co}function Yf(r){return Zv(r),qs}function JG(r,a,u){var f,p,g=0,j,pe=-1,Se;e.Debug.assert(!a.length);for(var Be=0,fr=r;Be<fr.length;Be++){var sr=fr[Be],gr=sr.declaration&&Zn(sr.declaration),_r=sr.declaration&&sr.declaration.parent;!p||gr===p?f&&_r===f?j=j+1:(f=_r,j=g):(j=g=a.length,f=_r),p=gr,K(sr)?(pe++,Se=pe,g++):Se=j,a.splice(Se,0,u?Q1(sr,u):sr)}}function sT(r){return!!r&&(r.kind===227||r.kind===234&&r.isSpread)}function cT(r){return e.findIndex(r,sT)}function a7(r){return!!(r.flags&16384)}function UG(r){return!!(r.flags&49155)}function uT(r,a,u,f){f===void 0&&(f=!1);var p,g=!1,j=Ku(u),pe=Zf(u);if(r.kind===212)if(p=a.length,r.template.kind===225){var Se=e.last(r.template.templateSpans);g=e.nodeIsMissing(Se.literal)||!!Se.literal.isUnterminated}else{var Be=r.template;e.Debug.assert(Be.kind===14),g=!!Be.isUnterminated}else if(r.kind===167)p=p7(r,u);else if(e.isJsxOpeningLikeElement(r)){if(g=r.attributes.end===r.end,g)return!0;p=pe===0?a.length:1,j=a.length===0?j:1,pe=Math.min(pe,1)}else if(r.arguments){p=f?a.length+1:a.length,g=r.arguments.end===r.end;var fr=cT(a);if(fr>=0)return fr>=Zf(u)&&(ep(u)||fr<Ku(u))}else return e.Debug.assert(r.kind===211),Zf(u)===0;if(!ep(u)&&p>j)return!1;if(g||p>=pe)return!0;for(var sr=p;sr<pe;sr++){var gr=cf(u,sr);if(Nc(gr,e.isInJSFile(r)&&!ue?UG:a7).flags&131072)return!1}return!0}function rw(r,a){var u=e.length(r.typeParameters),f=af(r.typeParameters);return!e.some(a)||a.length>=f&&a.length<=u}function qh(r){return D0(r,0,!1)}function o7(r){return D0(r,0,!1)||D0(r,1,!1)}function D0(r,a,u){if(r.flags&524288){var f=El(r);if(u||f.properties.length===0&&f.indexInfos.length===0){if(a===0&&f.callSignatures.length===1&&f.constructSignatures.length===0)return f.callSignatures[0];if(a===1&&f.constructSignatures.length===1&&f.callSignatures.length===0)return f.constructSignatures[0]}}}function s7(r,a,u,f){var p=g0(r.typeParameters,r,0,f),g=E0(a),j=u&&(g&&g.flags&262144?u.nonFixingMapper:u.mapper),pe=j?Wv(a,j):a;return nP(pe,r,function(Se,Be){fd(p.inferences,Se,Be)}),u||iP(a,r,function(Se,Be){fd(p.inferences,Se,Be,128)}),r0(r,vP(p),e.isInJSFile(a.declaration))}function VG(r,a,u,f){var p=Zx(a,r),g=ry(r.attributes,p,f,u);return fd(f.inferences,g,p),vP(f)}function c7(r){if(!r)return ii;var a=Ra(r);return e.isOptionalChainRoot(r.parent)?qd(a):e.isOptionalChain(r.parent)?eP(a):a}function tw(r,a,u,f,p){if(e.isJsxOpeningLikeElement(r))return VG(r,a,f,p);if(r.kind!==167){var g=e.every(a.typeParameters,function(Ua){return!!fm(Ua)}),j=Lu(r,g?8:0);if(j){var pe=Ho(a);if(Xg(pe)){var Se=Xv(r),Be=!g&&Lu(r,8)!==j;if(!Be){var fr=sP(p$(Se,1)),sr=Sa(j,fr),gr=qh(sr),_r=gr&&gr.typeParameters?Jy(nA(gr,gr.typeParameters)):sr;fd(p.inferences,_r,pe,128)}var Kr=g0(a.typeParameters,a,p.flags),mt=Sa(j,Se&&Se.returnMapper);fd(Kr.inferences,mt,pe),p.returnMapper=e.some(Kr.inferences,ty)?sP(g$(Kr)):void 0}}}var Vt=C0(a),wt=Vt?Math.min(Ku(a)-1,u.length):u.length;if(Vt&&Vt.flags&262144){var rn=e.find(p.inferences,function(Ua){return Ua.typeParameter===Vt});rn&&(rn.impliedArity=e.findIndex(u,sT,wt)<0?u.length-wt:void 0)}var on=rg(a);if(on&&Xg(on)){var Un=f7(r);fd(p.inferences,c7(Un),on)}for(var Gn=0;Gn<wt;Gn++){var Ti=u[Gn];if(Ti.kind!==229&&!(f&32&&pP(Ti))){var li=cf(a,Gn);if(Xg(li)){var Ja=ry(Ti,li,p,f);fd(p.inferences,Ja,li)}}}if(Vt&&Xg(Vt)){var Ai=nw(u,wt,u.length,Vt,p,f);fd(p.inferences,Ai,Vt)}return vP(p)}function u7(r){return r.flags&1048576?Ts(r,u7):r.flags&1||wx(uu(r)||r)?r:po(r)?Gf(Go(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):Gf([r],[8])}function nw(r,a,u,f,p,g){if(a>=u-1){var j=r[u-1];if(sT(j))return u7(j.kind===234?j.type:ry(j.expression,f,p,g))}for(var pe=[],Se=[],Be=[],fr=a;fr<u;fr++){var j=r[fr];if(sT(j)){var sr=j.kind===234?j.type:Ra(j.expression);xm(sr)?(pe.push(sr),Se.push(8)):(pe.push(E_(33,sr,Ar,j.kind===227?j.expression:j)),Se.push(4))}else{var gr=Fu(f,Qf(fr-a),256),_r=ry(j,gr,p,g),Kr=ks(gr,406978556);pe.push(Kr?Eu(_r):cg(_r)),Se.push(1)}j.kind===234&&j.tupleNameSource&&Be.push(j.tupleNameSource)}return Gf(pe,Se,!1,e.length(Be)===e.length(pe)?Be:void 0)}function iw(r,a,u,f){for(var p=e.isInJSFile(r.declaration),g=r.typeParameters,j=dm(e.map(a,ea),g,af(g),p),pe,Se=0;Se<a.length;Se++){e.Debug.assert(g[Se]!==void 0,"Should not call checkTypeArguments with too many type arguments");var Be=Uc(g[Se]);if(Be){var fr=u&&f?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,sr=f||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;pe||(pe=Cu(g,j));var gr=j[Se];if(!vu(gr,Hu(Sa(Be,pe),gr),u?a[Se]:void 0,sr,fr))return}}return j}function l7(r){if(Qy(r.tagName))return 2;var a=Gr(Ra(r.tagName));return e.length(La(a,1))?0:e.length(La(a,0))?1:2}function zG(r,a,u,f,p,g,j){var pe=Zx(a,r),Se=ry(r.attributes,pe,void 0,f);return Be()&&jA(Se,pe,u,p?r.tagName:void 0,r.attributes,void 0,g,j);function Be(){var fr;if(UP(r))return!0;var sr=e.isJsxOpeningElement(r)||e.isJsxSelfClosingElement(r)&&!Qy(r.tagName)?Ra(r.tagName):void 0;if(!sr)return!0;var gr=La(sr,0);if(!e.length(gr))return!0;var _r=uF(r);if(!_r)return!0;var Kr=ns(_r,111551,!0,!1,r);if(!Kr)return!0;var mt=_n(Kr),Vt=La(mt,0);if(!e.length(Vt))return!0;for(var wt=!1,rn=0,on=0,Un=Vt;on<Un.length;on++){var Gn=Un[on],Ti=cf(Gn,0),li=La(Ti,0);if(e.length(li))for(var Ja=0,Ai=li;Ja<Ai.length;Ja++){var Ua=Ai[Ja];if(wt=!0,ep(Ua))return!0;var Wa=Ku(Ua);Wa>rn&&(rn=Wa)}}if(!wt)return!0;for(var Ga=1/0,Bo=0,jo=gr;Bo<jo.length;Bo++){var No=jo[Bo],Ca=Zf(No);Ca<Ga&&(Ga=Ca)}if(Ga<=rn)return!0;if(p){var hn=e.createDiagnosticForNode(r.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(r.tagName),Ga,e.entityNameToString(_r),rn),qt=(fr=ql(r.tagName))===null||fr===void 0?void 0:fr.valueDeclaration;qt&&e.addRelatedInfo(hn,e.createDiagnosticForNode(qt,e.Diagnostics._0_is_declared_here,e.entityNameToString(r.tagName))),j&&j.skipLogging&&(j.errors||(j.errors=[])).push(hn),j.skipLogging||ya.add(hn)}return!1}}function Lb(r,a,u,f,p,g,j){var pe={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(r))return zG(r,u,f,p,g,j,pe)?void 0:(e.Debug.assert(!g||!!pe.errors,"jsx should have errors when reporting errors"),pe.errors||e.emptyArray);var Se=rg(u);if(Se&&Se!==ii&&r.kind!==211){var Be=f7(r),fr=c7(Be),sr=g?Be||r:void 0,gr=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Af(fr,Se,f,sr,gr,j,pe))return e.Debug.assert(!g||!!pe.errors,"this parameter should have errors when reporting errors"),pe.errors||e.emptyArray}for(var _r=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Kr=C0(u),mt=Kr?Math.min(Ku(u)-1,a.length):a.length,Vt=0;Vt<mt;Vt++){var wt=a[Vt];if(wt.kind!==229){var rn=cf(u,Vt),on=ry(wt,rn,void 0,p),Un=p&4?m0(on):on;if(!jA(Un,rn,f,g?wt:void 0,wt,_r,j,pe))return e.Debug.assert(!g||!!pe.errors,"parameter should have errors when reporting errors"),li(wt,Un,rn),pe.errors||e.emptyArray}}if(Kr){var Gn=nw(a,mt,a.length,Kr,void 0,p),Ti=a.length-mt,sr=g?Ti===0?r:Ti===1?a[mt]:e.setTextRangePosEnd(_g(r,Gn),a[mt].pos,a[a.length-1].end):void 0;if(!Af(Gn,Kr,f,sr,_r,void 0,pe))return e.Debug.assert(!g||!!pe.errors,"rest parameter should have errors when reporting errors"),li(sr,Gn,Kr),pe.errors||e.emptyArray}return;function li(Ja,Ai,Ua){if(Ja&&g&&pe.errors&&pe.errors.length){if(w0(Ua))return;var Wa=w0(Ai);Wa&&Np(Wa,Ua,f)&&e.addRelatedInfo(pe.errors[0],e.createDiagnosticForNode(Ja,e.Diagnostics.Did_you_forget_to_use_await))}}}function f7(r){var a=r.kind===210?r.expression:r.kind===212?r.tag:void 0;if(a){var u=e.skipOuterExpressions(a);if(e.isAccessExpression(u))return u.expression}}function _g(r,a,u,f){var p=e.parseNodeFactory.createSyntheticExpression(a,u,f);return e.setTextRange(p,r),e.setParent(p,r),p}function aw(r){if(r.kind===212){var a=r.template,u=[_g(a,Hz())];return a.kind===225&&e.forEach(a.templateSpans,function(Se){u.push(Se.expression)}),u}if(r.kind===167)return WG(r);if(e.isJsxOpeningLikeElement(r))return r.attributes.properties.length>0||e.isJsxOpeningElement(r)&&r.parent.children.length>0?[r.attributes]:e.emptyArray;var f=r.arguments||e.emptyArray,p=cT(f);if(p>=0){for(var g=f.slice(0,p),j=function(Se){var Be=f[Se],fr=Be.kind===227&&(oc?Ra(Be.expression):Gs(Be.expression));fr&&po(fr)?e.forEach(Go(fr),function(sr,gr){var _r,Kr=fr.target.elementFlags[gr],mt=_g(Be,Kr&4?zc(sr):sr,!!(Kr&12),(_r=fr.target.labeledElementDeclarations)===null||_r===void 0?void 0:_r[gr]);g.push(mt)}):g.push(Be)},pe=p;pe<f.length;pe++)j(pe);return g}return f}function WG(r){var a=r.parent,u=r.expression;switch(a.kind){case 260:case 228:return[_g(u,_n(Zn(a)))];case 166:var f=a.parent;return[_g(u,a.parent.kind===173?_n(Zn(f)):ar),_g(u,Ie),_g(u,ht)];case 169:case 171:case 174:case 175:var p=Ae!==0&&(!e.isPropertyDeclaration(a)||e.hasAccessorModifier(a));return[_g(u,KY(a)),_g(u,QY(a)),_g(u,p?EO(Hh(a)):Ie)]}return e.Debug.fail()}function p7(r,a){switch(r.parent.kind){case 260:case 228:return 1;case 169:return e.hasAccessorModifier(r.parent)?3:2;case 171:case 174:case 175:return Ae===0||a.parameters.length<=2?2:3;case 166:return 3;default:return e.Debug.fail()}}function d7(r,a){var u,f,p=e.getSourceFileOfNode(r);if(e.isPropertyAccessExpression(r.expression)){var g=e.getErrorSpanForNode(p,r.expression.name);u=g.start,f=a?g.length:r.end-u}else{var j=e.getErrorSpanForNode(p,r.expression);u=j.start,f=a?j.length:r.end-u}return{start:u,length:f,sourceFile:p}}function Rb(r,a,u,f,p,g){if(e.isCallExpression(r)){var j=d7(r),pe=j.sourceFile,Se=j.start,Be=j.length;return e.createFileDiagnostic(pe,Se,Be,a,u,f,p,g)}else return e.createDiagnosticForNode(r,a,u,f,p,g)}function qG(r){if(!e.isCallExpression(r)||!e.isIdentifier(r.expression))return!1;var a=Ls(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),u=a==null?void 0:a.valueDeclaration;if(!u||!e.isParameter(u)||!e.isFunctionExpressionOrArrowFunction(u.parent)||!e.isNewExpression(u.parent.parent)||!e.isIdentifier(u.parent.parent.expression))return!1;var f=fA(!1);if(!f)return!1;var p=ql(u.parent.parent.expression,!0);return p===f}function _7(r,a,u){var f,p=cT(u);if(p>-1)return e.createDiagnosticForNode(u[p],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var g=Number.POSITIVE_INFINITY,j=Number.NEGATIVE_INFINITY,pe=Number.NEGATIVE_INFINITY,Se=Number.POSITIVE_INFINITY,Be,fr=0,sr=a;fr<sr.length;fr++){var gr=sr[fr],_r=Zf(gr),Kr=Ku(gr);_r<g&&(g=_r,Be=gr),j=Math.max(j,Kr),_r<u.length&&_r>pe&&(pe=_r),u.length<Kr&&Kr<Se&&(Se=Kr)}var mt=e.some(a,ep),Vt=mt?g:g<j?g+"-"+j:g,wt=!mt&&Vt===1&&u.length===0&&qG(r);if(wt&&e.isInJSFile(r))return Rb(r,e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);var rn=mt?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:wt?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(g<u.length&&u.length<j)return Rb(r,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,u.length,pe,Se);if(u.length<g){var on=Rb(r,rn,Vt,u.length),Un=(f=Be==null?void 0:Be.declaration)===null||f===void 0?void 0:f.parameters[Be.thisParameter?u.length+1:u.length];if(Un){var Gn=e.createDiagnosticForNode(Un,e.isBindingPattern(Un.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(Un)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,Un.name?e.isBindingPattern(Un.name)?void 0:e.idText(e.getFirstIdentifier(Un.name)):u.length);return e.addRelatedInfo(on,Gn)}return on}else{var Ti=e.factory.createNodeArray(u.slice(j)),li=e.first(Ti).pos,Ja=e.last(Ti).end;return Ja===li&&Ja++,e.setTextRangePosEnd(Ti,li,Ja),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),Ti,rn,Vt,u.length)}}function $G(r,a,u){var f=u.length;if(a.length===1){var p=a[0],g=af(p.typeParameters),j=e.length(p.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),u,e.Diagnostics.Expected_0_type_arguments_but_got_1,g<j?g+"-"+j:g,f)}for(var pe=-1/0,Se=1/0,Be=0,fr=a;Be<fr.length;Be++){var p=fr[Be],sr=af(p.typeParameters),j=e.length(p.typeParameters);sr>f?Se=Math.min(Se,sr):j<f&&(pe=Math.max(pe,j))}return pe!==-1/0&&Se!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),u,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,f,pe,Se):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),u,e.Diagnostics.Expected_0_type_arguments_but_got_1,pe===-1/0?Se:pe,f)}function Yy(r,a,u,f,p,g){var j=r.kind===212,pe=r.kind===167,Se=e.isJsxOpeningLikeElement(r),Be=!u,fr;!pe&&!e.isSuperCall(r)&&(fr=r.typeArguments,(j||Se||r.expression.kind!==106)&&e.forEach(fr,go));var sr=u||[];if(JG(a,sr,p),!sr.length)return Be&&ya.add(Rb(r,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Yf(r);var gr=aw(r),_r=sr.length===1&&!sr[0].typeParameters,Kr=!pe&&!_r&&e.some(gr,zl)?4:0;Kr|=f&32;var mt,Vt,wt,rn,on=!!(f&16)&&r.kind===210&&r.arguments.hasTrailingComma;if(sr.length>1&&(rn=qn(sr,In,_r,on)),rn||(rn=qn(sr,Pi,_r,on)),rn)return rn;if(rn=HG(r,sr,gr,!!u,f),Mi(r).resolvedSignature=rn,Be)if(mt)if(mt.length===1||mt.length>3){var Un=mt[mt.length-1],Gn;mt.length>3&&(Gn=e.chainDiagnosticMessages(Gn,e.Diagnostics.The_last_overload_gave_the_following_error),Gn=e.chainDiagnosticMessages(Gn,e.Diagnostics.No_overload_matches_this_call));var Ti=Lb(r,gr,Un,Pi,0,!0,function(){return Gn});if(Ti)for(var li=0,Ja=Ti;li<Ja.length;li++){var Ai=Ja[li];Un.declaration&&mt.length>3&&e.addRelatedInfo(Ai,e.createDiagnosticForNode(Un.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Pr(Un,Ai),ya.add(Ai)}else e.Debug.fail("No error for last overload signature")}else{for(var Ua=[],Wa=0,Ga=Number.MAX_VALUE,Bo=0,jo=0,No=function(Sn){var ui=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,jo+1,sr.length,Tp(Sn))},Vn=Lb(r,gr,Sn,Pi,0,!0,ui);Vn?(Vn.length<=Ga&&(Ga=Vn.length,Bo=jo),Wa=Math.max(Wa,Vn.length),Ua.push(Vn)):e.Debug.fail("No error for 3 or fewer overload signatures"),jo++},Ca=0,hn=mt;Ca<hn.length;Ca++){var qt=hn[Ca];No(qt)}var yi=Wa>1?Ua[Bo]:e.flatten(Ua);e.Debug.assert(yi.length>0,"No errors reported for 3 or fewer overload signatures");var Bi=e.chainDiagnosticMessages(e.map(yi,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),ha=t([],e.flatMap(yi,function(Sn){return Sn.relatedInformation}),!0),si=void 0;if(e.every(yi,function(Sn){return Sn.start===yi[0].start&&Sn.length===yi[0].length&&Sn.file===yi[0].file})){var qa=yi[0],Ta=qa.file,Qa=qa.start,Za=qa.length;si={file:Ta,start:Qa,length:Za,code:Bi.code,category:Bi.category,messageText:Bi,relatedInformation:ha}}else si=e.createDiagnosticForNodeFromMessageChain(r,Bi,ha);Pr(mt[0],si),ya.add(si)}else if(Vt)ya.add(_7(r,[Vt],gr));else if(wt)iw(wt,r.typeArguments,!0,g);else{var dt=e.filter(a,function(Sn){return rw(Sn,fr)});dt.length===0?ya.add($G(r,a,fr)):pe?g&&ya.add(Rb(r,g)):ya.add(_7(r,dt,gr))}return rn;function Pr(Sn,ui){var Vn,$n,Ei=mt,it=Vt,Ht=wt,nn=(($n=(Vn=Sn.declaration)===null||Vn===void 0?void 0:Vn.symbol)===null||$n===void 0?void 0:$n.declarations)||e.emptyArray,Ln=nn.length>1,Rn=Ln?e.find(nn,function(ia){return e.isFunctionLikeDeclaration(ia)&&e.nodeIsPresent(ia.body)}):void 0;if(Rn){var ni=of(Rn),wi=!ni.typeParameters;qn([ni],Pi,wi)&&e.addRelatedInfo(ui,e.createDiagnosticForNode(Rn,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}mt=Ei,Vt=it,wt=Ht}function qn(Sn,ui,Vn,$n){if($n===void 0&&($n=!1),mt=void 0,Vt=void 0,wt=void 0,Vn){var Ei=Sn[0];if(e.some(fr)||!uT(r,gr,Ei,$n))return;if(Lb(r,gr,Ei,ui,0,!1,void 0)){mt=[Ei];return}return Ei}for(var it=0;it<Sn.length;it++){var Ei=Sn[it];if(!(!rw(Ei,fr)||!uT(r,gr,Ei,$n))){var Ht=void 0,nn=void 0;if(Ei.typeParameters){var Ln=void 0;if(e.some(fr)){if(Ln=iw(Ei,fr,!1),!Ln){wt=Ei;continue}}else nn=g0(Ei.typeParameters,Ei,e.isInJSFile(r)?2:0),Ln=tw(r,Ei,gr,Kr|8,nn),Kr|=nn.flags&4?8:0;if(Ht=r0(Ei,Ln,e.isInJSFile(Ei.declaration),nn&&nn.inferredTypeParameters),C0(Ei)&&!uT(r,gr,Ht,$n)){Vt=Ht;continue}}else Ht=Ei;if(Lb(r,gr,Ht,ui,Kr,!1,void 0)){(mt||(mt=[])).push(Ht);continue}if(Kr){if(Kr=f&32,nn){var Ln=tw(r,Ei,gr,Kr,nn);if(Ht=r0(Ei,Ln,e.isInJSFile(Ei.declaration),nn.inferredTypeParameters),C0(Ei)&&!uT(r,gr,Ht,$n)){Vt=Ht;continue}}if(Lb(r,gr,Ht,ui,Kr,!1,void 0)){(mt||(mt=[])).push(Ht);continue}}return Sn[it]=Ht,Ht}}}}function HG(r,a,u,f,p){return e.Debug.assert(a.length>0),o1(r),f||a.length===1||a.some(function(g){return!!g.typeParameters})?QG(r,a,u,p):GG(a)}function GG(r){var a=e.mapDefined(r,function(gr){return gr.thisParameter}),u;a.length&&(u=m7(a,a.map(x0)));for(var f=e.minAndMax(r,KG),p=f.min,g=f.max,j=[],pe=function(gr){var _r=e.mapDefined(r,function(Kr){return R(Kr)?gr<Kr.parameters.length-1?Kr.parameters[gr]:e.last(Kr.parameters):gr<Kr.parameters.length?Kr.parameters[gr]:void 0});e.Debug.assert(_r.length!==0),j.push(m7(_r,e.mapDefined(r,function(Kr){return th(Kr,gr)})))},Se=0;Se<g;Se++)pe(Se);var Be=e.mapDefined(r,function(gr){return R(gr)?e.last(gr.parameters):void 0}),fr=0;if(Be.length!==0){var sr=zc(zi(e.mapDefined(r,tO),2));j.push(g7(Be,sr)),fr|=1}return r.some(K)&&(fr|=2),Cf(r[0].declaration,void 0,u,j,ho(r.map(Ho)),void 0,p,fr)}function KG(r){var a=r.parameters.length;return R(r)?a-1:a}function m7(r,a){return g7(r,zi(a,2))}function g7(r,a){return zh(e.first(r),a)}function QG(r,a,u,f){var p=ZG(a,yt===void 0?u.length:yt),g=a[p],j=g.typeParameters;if(!j)return g;var pe=i7(r)?r.typeArguments:void 0,Se=pe?ix(g,XG(pe,j,e.isInJSFile(r))):YG(r,j,g,u,f);return a[p]=Se,Se}function XG(r,a,u){for(var f=r.map(Hh);f.length>a.length;)f.pop();for(;f.length<a.length;)f.push(fm(a[f.length])||Uc(a[f.length])||hP(u));return f}function YG(r,a,u,f,p){var g=g0(a,u,e.isInJSFile(r)?2:0),j=tw(r,u,f,p|4|8,g);return ix(u,j)}function ZG(r,a){for(var u=-1,f=-1,p=0;p<r.length;p++){var g=r[p],j=Ku(g);if(ep(g)||j>=a)return p;j>f&&(f=j,u=p)}return u}function eK(r,a,u){if(r.expression.kind===106){var f=AP(r.expression);if(fa(f)){for(var p=0,g=r.arguments;p<g.length;p++){var j=g[p];Ra(j)}return Co}if(!pa(f)){var pe=e.getEffectiveBaseTypeNode(e.getContainingClass(r));if(pe){var Se=Iy(f,pe.typeArguments,pe);return Yy(r,Se,a,u,0)}}return Zv(r)}var Be,fr=Ra(r.expression);if(e.isCallChain(r)){var sr=_0(fr,r.expression);Be=sr===fr?0:e.isOutermostOptionalChain(r)?16:8,fr=sr}else Be=0;if(fr=z5(fr,r.expression,yG),fr===hr)return Ds;var gr=Gr(fr);if(pa(gr))return Yf(r);var _r=La(gr,0),Kr=La(gr,1).length;if(lT(fr,gr,_r.length,Kr))return!pa(fr)&&r.typeArguments&&nt(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Zv(r);if(!_r.length){if(Kr)nt(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(fr));else{var mt=void 0;if(r.arguments.length===1){var Vt=e.getSourceFileOfNode(r).text;e.isLineBreak(Vt.charCodeAt(e.skipTrivia(Vt,r.expression.end,!0)-1))&&(mt=e.createDiagnosticForNode(r.expression,e.Diagnostics.Are_you_missing_a_semicolon))}sw(r.expression,gr,0,mt)}return Yf(r)}return u&8&&!r.typeArguments&&_r.some(rK)?(K7(r,u),gs):_r.some(function(wt){return e.isInJSFile(wt.declaration)&&!!e.getJSDocClassTag(wt.declaration)})?(nt(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(fr)),Yf(r)):Yy(r,_r,a,u,Be)}function rK(r){return!!(r.typeParameters&&Ww(Ho(r)))}function lT(r,a,u,f){return fa(r)||fa(a)&&!!(r.flags&262144)||!u&&!f&&!(a.flags&1048576)&&!(Zi(a).flags&131072)&&So(r,ln)}function tK(r,a,u){if(r.arguments&&Ae<1){var f=cT(r.arguments);f>=0&&nt(r.arguments[f],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var p=Xy(r.expression);if(p===hr)return Ds;if(p=Gr(p),pa(p))return Yf(r);if(fa(p))return r.typeArguments&&nt(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Zv(r);var g=La(p,1);if(g.length){if(!nK(r,g[0]))return Yf(r);if(h7(g,function(Be){return!!(Be.flags&4)}))return nt(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Yf(r);var j=p.symbol&&e.getClassLikeDeclarationOfSymbol(p.symbol);return j&&e.hasSyntacticModifier(j,256)?(nt(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Yf(r)):Yy(r,g,a,u,0)}var pe=La(p,0);if(pe.length){var Se=Yy(r,pe,a,u,0);return mr||(Se.declaration&&!wf(Se.declaration)&&Ho(Se)!==ii&&nt(r,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),rg(Se)===ii&&nt(r,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),Se}return sw(r.expression,p,1),Yf(r)}function h7(r,a){return e.isArray(r)?e.some(r,function(u){return h7(u,a)}):r.compositeKind===1048576?e.some(r.compositeSignatures,a):a(r)}function ow(r,a){var u=Jc(a);if(!e.length(u))return!1;var f=u[0];if(f.flags&2097152){for(var p=f.types,g=KD(p),j=0,pe=0,Se=f.types;pe<Se.length;pe++){var Be=Se[pe];if(!g[j]&&e.getObjectFlags(Be)&3&&(Be.symbol===r||ow(r,Be)))return!0;j++}return!1}return f.symbol===r?!0:ow(r,f)}function nK(r,a){if(!a||!a.declaration)return!0;var u=a.declaration,f=e.getSelectedEffectiveModifierFlags(u,24);if(!f||u.kind!==173)return!0;var p=e.getClassLikeDeclarationOfSymbol(u.parent.symbol),g=mn(u.parent.symbol);if(!Jw(r,p)){var j=e.getContainingClass(r);if(j&&f&16){var pe=Hh(j);if(ow(u.parent.symbol,pe))return!0}return f&8&&nt(r,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Hn(g)),f&16&&nt(r,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Hn(g)),!1}return!0}function v7(r,a,u){var f,p=u===0,g=$h(a),j=g&&La(g,u).length>0;if(a.flags&1048576){for(var pe=a.types,Se=!1,Be=0,fr=pe;Be<fr.length;Be++){var sr=fr[Be],gr=La(sr,u);if(gr.length!==0){if(Se=!0,f)break}else if(f||(f=e.chainDiagnosticMessages(f,p?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Hn(sr)),f=e.chainDiagnosticMessages(f,p?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Hn(a))),Se)break}Se||(f=e.chainDiagnosticMessages(void 0,p?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Hn(a))),f||(f=e.chainDiagnosticMessages(f,p?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Hn(a)))}else f=e.chainDiagnosticMessages(f,p?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Hn(a));var _r=p?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(r.parent)&&r.parent.arguments.length===0){var Kr=Mi(r).resolvedSymbol;Kr&&Kr.flags&32768&&(_r=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(f,_r),relatedMessage:j?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function sw(r,a,u,f){var p=v7(r,a,u),g=p.messageChain,j=p.relatedMessage,pe=e.createDiagnosticForNodeFromMessageChain(r,g);if(j&&e.addRelatedInfo(pe,e.createDiagnosticForNode(r,j)),e.isCallExpression(r.parent)){var Se=d7(r.parent,!0),Be=Se.start,fr=Se.length;pe.start=Be,pe.length=fr}ya.add(pe),y7(a,u,f?e.addRelatedInfo(pe,f):pe)}function y7(r,a,u){if(r.symbol){var f=la(r.symbol).originatingImport;if(f&&!e.isImportCall(f)){var p=La(_n(la(r.symbol).target),a);if(!p||!p.length)return;e.addRelatedInfo(u,e.createDiagnosticForNode(f,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function iK(r,a,u){var f=Ra(r.tag),p=Gr(f);if(pa(p))return Yf(r);var g=La(p,0),j=La(p,1).length;if(lT(f,p,g.length,j))return Zv(r);if(!g.length){if(e.isArrayLiteralExpression(r.parent)){var pe=e.createDiagnosticForNode(r.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ya.add(pe),Yf(r)}return sw(r.tag,p,0),Yf(r)}return Yy(r,g,a,u,0)}function aK(r){switch(r.parent.kind){case 260:case 228:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function oK(r,a,u){var f=Ra(r.expression),p=Gr(f);if(pa(p))return Yf(r);var g=La(p,0),j=La(p,1).length;if(lT(f,p,g.length,j))return Zv(r);if(cK(r,g)){var pe=e.getTextOfNode(r.expression,!1);return nt(r,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,pe),Yf(r)}var Se=aK(r);if(!g.length){var Be=v7(r.expression,p,0),fr=e.chainDiagnosticMessages(Be.messageChain,Se),sr=e.createDiagnosticForNodeFromMessageChain(r.expression,fr);return Be.relatedMessage&&e.addRelatedInfo(sr,e.createDiagnosticForNode(r.expression,Be.relatedMessage)),ya.add(sr),y7(p,0,sr),Yf(r)}return Yy(r,g,a,u,0,Se)}function fT(r,a){var u=Yv(r),f=u&&Dc(u),p=f&&Nu(f,H.Element,788968),g=p&&qr.symbolToEntityName(p,788968,r),j=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"props",void 0,qr.typeToTypeNode(a,r))],g?e.factory.createTypeReferenceNode(g,void 0):e.factory.createKeywordTypeNode(131)),pe=Lo(1,"props");return pe.type=a,Cf(j,void 0,void 0,[pe],p?mn(p):ar,void 0,1,0)}function sK(r,a,u){if(Qy(r.tagName)){var f=B5(r),p=fT(r,f);return x_(ry(r.attributes,Zx(p,r),void 0,0),f,r.tagName,r.attributes),e.length(r.typeArguments)&&(e.forEach(r.typeArguments,go),ya.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),r.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(r.typeArguments)))),p}var g=Ra(r.tagName),j=Gr(g);if(pa(j))return Yf(r);var pe=L5(g,r);return lT(g,j,pe.length,0)?Zv(r):pe.length===0?(nt(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),Yf(r)):Yy(r,pe,a,u,0)}function cK(r,a){return a.length&&e.every(a,function(u){return u.minArgumentCount===0&&!R(u)&&u.parameters.length<p7(r,u)})}function uK(r,a,u){switch(r.kind){case 210:return eK(r,a,u);case 211:return tK(r,a,u);case 212:return iK(r,a,u);case 167:return oK(r,a,u);case 283:case 282:return sK(r,a,u)}throw e.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function ey(r,a,u){var f=Mi(r),p=f.resolvedSignature;if(p&&p!==gs&&!a)return p;f.resolvedSignature=gs;var g=uK(r,a,u||0);return g!==gs&&(f.resolvedSignature=kc===oc?g:p),g}function wf(r){var a;if(!r||!e.isInJSFile(r))return!1;var u=e.isFunctionDeclaration(r)||e.isFunctionExpression(r)?r:(e.isVariableDeclaration(r)||e.isPropertyAssignment(r))&&r.initializer&&e.isFunctionExpression(r.initializer)?r.initializer:void 0;if(u){if(e.getJSDocClassTag(r))return!0;if(e.isPropertyAssignment(e.walkUpParenthesizedExpressions(u.parent)))return!1;var f=Zn(u);return!!(!((a=f==null?void 0:f.members)===null||a===void 0)&&a.size)}return!1}function cw(r,a){var u,f;if(a){var p=la(a);if(!p.inferredClassSymbol||!p.inferredClassSymbol.has(ne(r))){var g=e.isTransientSymbol(r)?r:a_(r);return g.exports=g.exports||e.createSymbolTable(),g.members=g.members||e.createSymbolTable(),g.flags|=a.flags&32,!((u=a.exports)===null||u===void 0)&&u.size&&tl(g.exports,a.exports),!((f=a.members)===null||f===void 0)&&f.size&&tl(g.members,a.members),(p.inferredClassSymbol||(p.inferredClassSymbol=new e.Map)).set(ne(g),g),g}return p.inferredClassSymbol.get(ne(r))}}function lK(r){var a,u=r&&pT(r,!0),f=(a=u==null?void 0:u.exports)===null||a===void 0?void 0:a.get("prototype"),p=(f==null?void 0:f.valueDeclaration)&&fK(f.valueDeclaration);return p?Zn(p):void 0}function pT(r,a){if(r.parent){var u,f;if(e.isVariableDeclaration(r.parent)&&r.parent.initializer===r){if(!e.isInJSFile(r)&&!(e.isVarConst(r.parent)&&e.isFunctionLikeDeclaration(r)))return;u=r.parent.name,f=r.parent}else if(e.isBinaryExpression(r.parent)){var p=r.parent,g=r.parent.operatorToken.kind;if(g===63&&(a||p.right===r))u=p.left,f=u;else if((g===56||g===60)&&(e.isVariableDeclaration(p.parent)&&p.parent.initializer===p?(u=p.parent.name,f=p.parent):e.isBinaryExpression(p.parent)&&p.parent.operatorToken.kind===63&&(a||p.parent.right===p)&&(u=p.parent.left,f=u),!u||!e.isBindableStaticNameExpression(u)||!e.isSameEntityName(u,p.left)))return}else a&&e.isFunctionDeclaration(r)&&(u=r.name,f=r);if(!(!f||!u||!a&&!e.getExpandoInitializer(r,e.isPrototypeAccess(u))))return Zn(f)}}function fK(r){if(!r.parent)return!1;for(var a=r.parent;a&&a.kind===208;)a=a.parent;if(a&&e.isBinaryExpression(a)&&e.isPrototypeAccess(a.left)&&a.operatorToken.kind===63){var u=e.getInitializerOfBinaryExpression(a);return e.isObjectLiteralExpression(u)&&u}}function pK(r,a){var u;nS(r,r.typeArguments);var f=ey(r,void 0,a);if(f===gs)return hr;if(dT(f,r),r.expression.kind===106)return ii;if(r.kind===211){var p=f.declaration;if(p&&p.kind!==173&&p.kind!==177&&p.kind!==182&&!e.isJSDocConstructSignature(p)&&!wf(p))return mr&&nt(r,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ie}if(e.isInJSFile(r)&&T7(r))return eO(r.arguments[0]);var g=Ho(f);if(g.flags&12288&&b7(r))return NA(e.walkUpParenthesizedExpressions(r.parent));if(r.kind===210&&!r.questionDotToken&&r.parent.kind===241&&g.flags&16384&&Vl(f)){if(!e.isDottedName(r.expression))nt(r.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!qx(r)){var j=nt(r.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Cb(r.expression,j)}}if(e.isInJSFile(r)){var pe=pT(r,!1);if(!((u=pe==null?void 0:pe.exports)===null||u===void 0)&&u.size){var Se=Es(pe,pe.exports,e.emptyArray,e.emptyArray,e.emptyArray);return Se.objectFlags|=4096,ho([g,Se])}}return g}function dT(r,a){if(r.declaration&&r.declaration.flags&268435456){var u=Bb(a),f=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(a));i_(u,r.declaration,f,Tp(r))}}function Bb(r){switch(r=e.skipParentheses(r),r.kind){case 210:case 167:case 211:return Bb(r.expression);case 212:return Bb(r.tag);case 283:case 282:return Bb(r.tagName);case 209:return r.argumentExpression;case 208:return r.name;case 180:var a=r;return e.isQualifiedName(a.typeName)?a.typeName.right:a;default:return r}}function b7(r){if(!e.isCallExpression(r))return!1;var a=r.expression;if(e.isPropertyAccessExpression(a)&&a.name.escapedText==="for"&&(a=a.expression),!e.isIdentifier(a)||a.escapedText!=="Symbol")return!1;var u=bO(!1);return u?u===Ls(a,"Symbol",111551,void 0,void 0,!1):!1}function dK(r){if(pee(r),r.arguments.length===0)return Ub(r,Ie);for(var a=r.arguments[0],u=Gs(a),f=r.arguments.length>1?Gs(r.arguments[1]):void 0,p=2;p<r.arguments.length;++p)Gs(r.arguments[p]);if((u.flags&32768||u.flags&65536||!So(u,Ft))&&nt(a,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Hn(u)),f){var g=yO(!0);g!==fn&&vu(f,Ox(g,32768),r.arguments[1])}var j=Ac(r,a);if(j){var pe=rd(j,a,!0,!1);if(pe)return Ub(r,D7(_n(pe),pe,j,a)||x7(_n(pe),pe,j,a))}return Ub(r,Ie)}function S7(r,a,u){var f=e.createSymbolTable(),p=Lo(2097152,"default");return p.parent=a,p.nameType=kl("default"),p.aliasTarget=Vs(r),f.set("default",p),Es(u,f,e.emptyArray,e.emptyArray,e.emptyArray)}function D7(r,a,u,f){var p=Cd(f);if(p&&r&&!pa(r)){var g=r;if(!g.defaultOnlyType){var j=S7(a,u);g.defaultOnlyType=j}return g.defaultOnlyType}}function x7(r,a,u,f){var p;if(L&&r&&!pa(r)){var g=r;if(!g.syntheticType){var j=(p=u.declarations)===null||p===void 0?void 0:p.find(e.isSourceFile),pe=Xp(j,u,!1,f);if(pe){var Se=Lo(2048,"__type"),Be=S7(a,u,Se);Se.type=Be,g.syntheticType=Nb(r)?ig(r,Be,Se,0,!1):Be}else g.syntheticType=r}return g.syntheticType}return r}function T7(r){if(!e.isRequireCall(r,!0))return!1;if(!e.isIdentifier(r.expression))return e.Debug.fail();var a=Ls(r.expression,r.expression.escapedText,111551,void 0,void 0,!0);if(a===Ct)return!0;if(a.flags&2097152)return!1;var u=a.flags&16?259:a.flags&3?257:0;if(u!==0){var f=e.getDeclarationOfKind(a,u);return!!f&&!!(f.flags&16777216)}return!1}function _K(r){RZ(r)||nS(r,r.typeArguments),Ae<2&&Zc(r,262144);var a=ey(r);return dT(a,r),Ho(a)}function mK(r){if(r.kind===213){var a=e.getSourceFileOfNode(r);a&&e.fileExtensionIsOneOf(a.fileName,[".cts",".mts"])&&Fn(r,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return C7(r,r.type,r.expression)}function E7(r){switch(r.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return E7(r.expression);case 221:var a=r.operator,u=r.operand;return a===40&&(u.kind===8||u.kind===9)||a===39&&u.kind===8;case 208:case 209:var f=r.expression,p=Hh(f).symbol;return p&&p.flags&2097152&&(p=gc(p)),!!(p&&Gc(p)&384&&Pv(p)===1)}return!1}function C7(r,a,u,f){var p=Ra(u,f);if(e.isConstTypeReference(a))return E7(u)||nt(u,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Eu(p);go(a),p=m0(Xf(p));var g=ea(a);return pa(g)||ee(function(){var j=Gu(p);l0(g,j)||m8(p,g,r,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}),g}function gK(r){var a=Ra(r.expression),u=_0(a,r.expression);return Mx(qd(u),r,u!==a)}function hK(r){return r.flags&32?gK(r):qd(Ra(r.expression))}function k7(r){dF(r);var a=r.kind===230?Ra(r.expression):e.isThisIdentifier(r.exprName)?Pb(r.exprName):Ra(r.exprName),u=r.typeArguments;if(a===hr||pa(a)||!e.some(u))return a;var f=!1,p,g=pe(a),j=f?p:a;return j&&ya.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),u,e.Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Hn(j))),g;function pe(Be){var fr=!1,sr=!1,gr=_r(Be);return f||(f=sr),fr&&!sr&&(p??(p=Be)),gr;function _r(Kr){if(Kr.flags&524288){var mt=El(Kr),Vt=Se(mt.callSignatures),wt=Se(mt.constructSignatures);if(fr||(fr=mt.callSignatures.length!==0||mt.constructSignatures.length!==0),sr||(sr=Vt.length!==0||wt.length!==0),Vt!==mt.callSignatures||wt!==mt.constructSignatures){var rn=Es(void 0,mt.members,Vt,wt,mt.indexInfos);return rn.objectFlags|=8388608,rn.node=r,rn}}else if(Kr.flags&58982400){var on=uu(Kr);if(on){var Un=_r(on);if(Un!==on)return Un}}else{if(Kr.flags&1048576)return Ts(Kr,pe);if(Kr.flags&2097152)return ho(e.sameMap(Kr.types,_r))}return Kr}}function Se(Be){var fr=e.filter(Be,function(sr){return!!sr.typeParameters&&rw(sr,u)});return e.sameMap(fr,function(sr){var gr=iw(sr,u,!0);return gr?r0(sr,gr,e.isInJSFile(sr.declaration)):sr})}}function vK(r){go(r.type);var a=Ra(r.expression),u=ea(r.type);return pa(u)?u:(x_(a,u,r.type,r.expression,e.Diagnostics.Type_0_does_not_satisfy_the_expected_type_1),a)}function yK(r){return ZZ(r),r.keywordToken===103?uw(r):r.keywordToken===100?bK(r):e.Debug.assertNever(r.keywordToken)}function A7(r){switch(r.keywordToken){case 100:return vO();case 103:var a=uw(r);return pa(a)?ar:CK(a);default:e.Debug.assertNever(r.keywordToken)}}function uw(r){var a=e.getNewTargetContainer(r);if(a)if(a.kind===173){var u=Zn(a.parent);return _n(u)}else{var u=Zn(a);return _n(u)}else return nt(r,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ar}function bK(r){qe===e.ModuleKind.Node16||qe===e.ModuleKind.NodeNext?e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.ESNext&&nt(r,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):qe<e.ModuleKind.ES2020&&qe!==e.ModuleKind.System&&nt(r,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);var a=e.getSourceFileOfNode(r);return e.Debug.assert(!!(a.flags&4194304),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?hO():ar}function x0(r){var a=_n(r);if(ue){var u=r.valueDeclaration;if(u&&e.hasInitializer(u))return Wd(a)}return a}function _T(r){return e.Debug.assert(e.isIdentifier(r.name)),r.name.escapedText}function Zy(r,a,u){var f=r.parameters.length-(R(r)?1:0);if(a<f)return r.parameters[a].escapedName;var p=r.parameters[f]||en,g=u||_n(p);if(po(g)){var j=g.target.labeledElementDeclarations,pe=a-f;return j&&_T(j[pe])||p.escapedName+"_"+pe}return p.escapedName}function SK(r,a){var u;if(((u=r.declaration)===null||u===void 0?void 0:u.kind)!==320){var f=r.parameters.length-(R(r)?1:0);if(a<f){var p=r.parameters[a];return P7(p)?[p.escapedName,!1]:void 0}var g=r.parameters[f]||en;if(P7(g)){var j=_n(g);if(po(j)){var pe=j.target.labeledElementDeclarations,Se=a-f,Be=pe==null?void 0:pe[Se],fr=!!(Be!=null&&Be.dotDotDotToken);return Be?[_T(Be),fr]:void 0}if(a===f)return[g.escapedName,!0]}}}function P7(r){return r.valueDeclaration&&e.isParameter(r.valueDeclaration)&&e.isIdentifier(r.valueDeclaration.name)}function w7(r){return r.kind===199||e.isParameter(r)&&r.name&&e.isIdentifier(r.name)}function DK(r,a){var u=r.parameters.length-(R(r)?1:0);if(a<u){var f=r.parameters[a].valueDeclaration;return f&&w7(f)?f:void 0}var p=r.parameters[u]||en,g=_n(p);if(po(g)){var j=g.target.labeledElementDeclarations,pe=a-u;return j&&j[pe]}return p.valueDeclaration&&w7(p.valueDeclaration)?p.valueDeclaration:void 0}function cf(r,a){return th(r,a)||Ie}function th(r,a){var u=r.parameters.length-(R(r)?1:0);if(a<u)return x0(r.parameters[a]);if(R(r)){var f=_n(r.parameters[u]),p=a-u;if(!po(f)||f.target.hasRestElement||p<f.target.fixedLength)return Fu(f,Qf(p))}}function T0(r,a){var u=Ku(r),f=Zf(r),p=E0(r);if(p&&a>=u-1)return a===u-1?p:zc(Fu(p,ht));for(var g=[],j=[],pe=[],Se=a;Se<u;Se++){!p||Se<u-1?(g.push(cf(r,Se)),j.push(Se<f?1:2)):(g.push(p),j.push(8));var Be=DK(r,Se);Be&&pe.push(Be)}return Gf(g,j,!1,e.length(pe)===e.length(g)?pe:void 0)}function Ku(r){var a=r.parameters.length;if(R(r)){var u=_n(r.parameters[a-1]);if(po(u))return a+u.target.fixedLength-(u.target.hasRestElement?0:1)}return a}function Zf(r,a){var u=a&1,f=a&2;if(f||r.resolvedMinArgumentCount===void 0){var p=void 0;if(R(r)){var g=_n(r.parameters[r.parameters.length-1]);if(po(g)){var j=e.findIndex(g.target.elementFlags,function(fr){return!(fr&1)}),pe=j<0?g.target.fixedLength:j;pe>0&&(p=r.parameters.length-1+pe)}}if(p===void 0){if(!u&&r.flags&32)return 0;p=r.minArgumentCount}if(f)return p;for(var Se=p-1;Se>=0;Se--){var Be=cf(r,Se);if(Nc(Be,a7).flags&131072)break;p=Se}r.resolvedMinArgumentCount=p}return r.resolvedMinArgumentCount}function ep(r){if(R(r)){var a=_n(r.parameters[r.parameters.length-1]);return!po(a)||a.target.hasRestElement}return!1}function E0(r){if(R(r)){var a=_n(r.parameters[r.parameters.length-1]);if(!po(a))return a;if(a.target.hasRestElement)return a0(a,a.target.fixedLength)}}function C0(r){var a=E0(r);return a&&!Al(a)&&!fa(a)&&!(Zi(a).flags&131072)?a:void 0}function lw(r){return fw(r,Xe)}function fw(r,a){return r.parameters.length>0?cf(r,0):a}function xK(r,a,u){for(var f=r.parameters.length-(R(r)?1:0),p=0;p<f;p++){var g=r.parameters[p].valueDeclaration;if(g.type){var j=e.getEffectiveTypeAnnotationNode(g);j&&fd(u.inferences,ea(j),cf(a,p))}}}function TK(r,a){if(a.typeParameters)if(!r.typeParameters)r.typeParameters=a.typeParameters;else return;if(a.thisParameter){var u=r.thisParameter;(!u||u.valueDeclaration&&!u.valueDeclaration.type)&&(u||(r.thisParameter=zh(a.thisParameter,void 0)),jb(r.thisParameter,_n(a.thisParameter)))}for(var f=r.parameters.length-(R(r)?1:0),p=0;p<f;p++){var u=r.parameters[p];if(!e.getEffectiveTypeAnnotationNode(u.valueDeclaration)){var g=th(a,p);jb(u,g)}}if(R(r)){var u=e.last(r.parameters);if(u.valueDeclaration?!e.getEffectiveTypeAnnotationNode(u.valueDeclaration):e.getCheckFlags(u)&65536){var g=T0(a,f);jb(u,g)}}}function EK(r){r.thisParameter&&jb(r.thisParameter);for(var a=0,u=r.parameters;a<u.length;a++){var f=u[a];jb(f)}}function jb(r,a){var u=la(r);if(u.type)a&&e.Debug.assertEqual(u.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{var f=r.valueDeclaration;u.type=a||(f?ci(f,!0):_n(r)),f&&f.name.kind!==79&&(u.type===ur&&(u.type=gn(f.name)),N7(f.name,u.type))}}function N7(r,a){for(var u=0,f=r.elements;u<f.length;u++){var p=f[u];if(!e.isOmittedExpression(p)){var g=nm(p,a);p.name.kind===79?la(Zn(p)).type=g:N7(p.name,g)}}}function Jb(r){var a=ub(!0);return a!==_a?(r=Hd(t1(r))||ur,b_(a,[r])):ur}function I7(r){var a=DO(!0);return a!==_a?(r=Hd(t1(r))||ur,b_(a,[r])):ur}function Ub(r,a){var u=Jb(a);return u===ur?(nt(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ar):(fA(!0)||nt(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),u)}function CK(r){var a=Lo(0,"NewTargetExpression"),u=Lo(4,"target",8);u.parent=a,u.type=r;var f=e.createSymbolTable([u]);return a.members=f,Es(a,f,e.emptyArray,e.emptyArray,e.emptyArray)}function mT(r,a){if(!r.body)return ar;var u=e.getFunctionFlags(r),f=(u&2)!==0,p=(u&1)!==0,g,j,pe,Se=ii;if(r.body.kind!==238)g=Gs(r.body,a&&a&-9),f&&(g=t1(I0(g,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(p){var Be=B7(r,a);Be?Be.length>0&&(g=zi(Be,2)):Se=Xe;var fr=kK(r,a),sr=fr.yieldTypes,gr=fr.nextTypes;j=e.some(sr)?zi(sr,2):void 0,pe=e.some(gr)?ho(gr):void 0}else{var _r=B7(r,a);if(!_r)return u&2?Ub(r,Xe):Xe;if(_r.length===0)return u&2?Ub(r,ii):ii;g=zi(_r,2)}if(g||j||pe){if(j&&Bx(r,j,3),g&&Bx(r,g,1),pe&&Bx(r,pe,2),g&&sf(g)||j&&sf(j)||pe&&sf(pe)){var Kr=LP(r),mt=Kr?Kr===of(r)?p?void 0:g:Xx(Ho(Kr),r,void 0):void 0;p?(j=ZA(j,mt,0,f),g=ZA(g,mt,1,f),pe=ZA(pe,mt,2,f)):g=e$(g,mt,f)}j&&(j=Gu(j)),g&&(g=Gu(g)),pe&&(pe=Gu(pe))}return p?O7(j||Xe,g||Se,pe||T5(2,r)||ur,f):f?Jb(g||Se):g||Se}function O7(r,a,u,f){var p=f?ro:Ye,g=p.getGlobalGeneratorType(!1);if(r=p.resolveIterationType(r,void 0)||ur,a=p.resolveIterationType(a,void 0)||ur,u=p.resolveIterationType(u,void 0)||ur,g===_a){var j=p.getGlobalIterableIteratorType(!1),pe=j!==_a?EM(j,p):void 0,Se=pe?pe.returnType:Ie,Be=pe?pe.nextType:Ar;return So(a,Se)&&So(Be,u)?j!==_a?i0(j,[r]):(p.getGlobalIterableIteratorType(!0),fn):(p.getGlobalGeneratorType(!0),fn)}return i0(g,[r,a,u])}function kK(r,a){var u=[],f=[],p=(e.getFunctionFlags(r)&2)!==0;return e.forEachYieldExpression(r.body,function(g){var j=g.expression?Ra(g.expression,a):rt;e.pushIfUnique(u,M7(g,j,Ie,p));var pe;if(g.asteriskToken){var Se=ET(j,p?19:17,g.expression);pe=Se&&Se.nextType}else pe=Lu(g,void 0);pe&&e.pushIfUnique(f,pe)}),{yieldTypes:u,nextTypes:f}}function M7(r,a,u,f){var p=r.expression||r,g=r.asteriskToken?E_(f?19:17,a,u,p):a;return f?$h(g,p,r.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g}function F7(r,a,u){for(var f=0,p=0;p<u.length;p++){var g=p<r||p>=a?u[p]:void 0;f|=g!==void 0?S.get(g)||32768:0}return f}function L7(r){var a=Mi(r);if(a.isExhaustive===void 0){a.isExhaustive=0;var u=AK(r);a.isExhaustive===0&&(a.isExhaustive=u)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function AK(r){if(r.expression.kind===218){var a=o5(r);if(!a)return!1;var u=y_(Gs(r.expression.expression)),f=F7(0,0,a);return u.flags&3?(556800&f)===556800:!pd(u,function(j){return(Yc(j)&f)===f})}var p=Gs(r.expression);if(!$v(p))return!1;var g=Vx(r);return!g.length||e.some(g,Xq)?!1:H$(Ts(p,Eu),g)}function R7(r){return r.endFlowNode&&kb(r.endFlowNode)}function B7(r,a){var u=e.getFunctionFlags(r),f=[],p=R7(r),g=!1;if(e.forEachReturnStatement(r.body,function(j){var pe=j.expression;if(pe){var Se=Gs(pe,a&&a&-9);u&2&&(Se=t1(I0(Se,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Se.flags&131072&&(g=!0),e.pushIfUnique(f,Se)}else p=!0}),!(f.length===0&&!p&&(g||PK(r))))return ue&&f.length&&p&&!(wf(r)&&f.some(function(j){return j.symbol===r.symbol}))&&e.pushIfUnique(f,Ar),f}function PK(r){switch(r.kind){case 215:case 216:return!0;case 171:return r.parent.kind===207;default:return!1}}function pw(r,a){ee(u);return;function u(){var f=e.getFunctionFlags(r),p=a&&CT(a,f);if(!(p&&ks(p,16385))&&!(r.kind===170||e.nodeIsMissing(r.body)||r.body.kind!==238||!R7(r))){var g=r.flags&512,j=e.getEffectiveReturnTypeNode(r)||r;if(p&&p.flags&131072)nt(j,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(p&&!g)nt(j,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(p&&ue&&!So(Ar,p))nt(j,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Ce.noImplicitReturns){if(!p){if(!g)return;var pe=Ho(of(r));if(IM(r,pe))return}nt(j,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function j7(r,a){if(e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r)),o1(r),e.isFunctionExpression(r)&&i1(r,r.name),a&&a&4&&zl(r)){if(!e.getEffectiveReturnTypeNode(r)&&!e.hasContextSensitiveParameters(r)){var u=S0(r);if(u&&Xg(Ho(u))){var f=Mi(r);if(f.contextFreeType)return f.contextFreeType;var p=mT(r,a),g=Cf(void 0,void 0,void 0,e.emptyArray,p,void 0,0,0),j=Es(r.symbol,rr,[g],e.emptyArray,e.emptyArray);return j.objectFlags|=262144,f.contextFreeType=j}}return Ha}var pe=LT(r);return!pe&&r.kind===215&&Gw(r),wK(r,a),_n(Zn(r))}function wK(r,a){var u=Mi(r);if(!(u.flags&1024)){var f=S0(r);if(!(u.flags&1024)){u.flags|=1024;var p=e.firstOrUndefined(La(_n(Zn(r)),0));if(!p)return;if(zl(r))if(f){var g=Xv(r),j=void 0;if(a&&a&2){xK(p,f,g);var pe=E0(f);pe&&pe.flags&262144&&(j=Wv(f,g.nonFixingMapper))}j||(j=g?Wv(f,g.mapper):f),TK(p,j)}else EK(p);if(f&&!Bv(r)&&!p.resolvedReturnType){var Se=mT(r,a);p.resolvedReturnType||(p.resolvedReturnType=Se)}A0(r)}}}function NK(r){e.Debug.assert(r.kind!==171||e.isObjectLiteralMethod(r));var a=e.getFunctionFlags(r),u=Bv(r);if(pw(r,u),r.body)if(e.getEffectiveReturnTypeNode(r)||Ho(of(r)),r.body.kind===238)go(r.body);else{var f=Ra(r.body),p=u&&CT(u,a);if(p)if((a&3)===2){var g=I0(f,!1,r.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);x_(g,p,r.body,r.body)}else x_(f,p,r.body,r.body)}}function gT(r,a,u,f){if(f===void 0&&(f=!1),!So(a,kt)){var p=f&&w0(a);return _f(r,!!p&&So(p,kt),u),!1}return!0}function IK(r){if(!e.isCallExpression(r)||!e.isBindableObjectDefinePropertyCall(r))return!1;var a=Gs(r.arguments[2]),u=di(a,"value");if(u){var f=Fa(a,"writable"),p=f&&_n(f);if(!p||p===un||p===wn)return!0;if(f&&f.valueDeclaration&&e.isPropertyAssignment(f.valueDeclaration)){var g=f.valueDeclaration.initializer,j=Ra(g);if(j===un||j===wn)return!0}return!1}var pe=Fa(a,"set");return!pe}function uf(r){return!!(e.getCheckFlags(r)&8||r.flags&4&&e.getDeclarationModifierFlagsFromSymbol(r)&64||r.flags&3&&tT(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||e.some(r.declarations,IK))}function J7(r,a,u){var f,p;if(u===0)return!1;if(uf(a)){if(a.flags&4&&e.isAccessExpression(r)&&r.expression.kind===108){var g=e.getContainingFunction(r);if(!(g&&(g.kind===173||wf(g))))return!0;if(a.valueDeclaration){var j=e.isBinaryExpression(a.valueDeclaration),pe=g.parent===a.valueDeclaration.parent,Se=g===a.valueDeclaration.parent,Be=j&&((f=a.parent)===null||f===void 0?void 0:f.valueDeclaration)===g.parent,fr=j&&((p=a.parent)===null||p===void 0?void 0:p.valueDeclaration)===g,sr=pe||Se||Be||fr;return!sr}}return!0}if(e.isAccessExpression(r)){var gr=e.skipParentheses(r.expression);if(gr.kind===79){var _r=Mi(gr).resolvedSymbol;if(_r.flags&2097152){var Kr=Ol(_r);return!!Kr&&Kr.kind===271}}}return!1}function k0(r,a,u){var f=e.skipOuterExpressions(r,7);return f.kind!==79&&!e.isAccessExpression(f)?(nt(r,a),!1):f.flags&32?(nt(r,u),!1):!0}function OK(r){Ra(r.expression);var a=e.skipParentheses(r.expression);if(!e.isAccessExpression(a))return nt(a,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Tn;e.isPropertyAccessExpression(a)&&e.isPrivateIdentifier(a.name)&&nt(a,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var u=Mi(a),f=Iu(u.resolvedSymbol);return f&&(uf(f)&&nt(a,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),MK(a,f)),Tn}function MK(r,a){var u=_n(a);ue&&!(u.flags&131075)&&!(tt?a.flags&16777216:Yc(u)&16777216)&&nt(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function FK(r){return Ra(r.expression),Dr}function LK(r){return Ra(r.expression),rt}function RK(r){var a=e.getContainingFunctionOrClassStaticBlock(r);if(a&&e.isClassStaticBlockDeclaration(a))nt(r,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(e.isInTopLevelContext(r)){var u=e.getSourceFileOfNode(r);if(!ih(u)){var f=void 0;if(!e.isEffectiveExternalModule(u,Ce)){f??(f=e.getSpanOfTokenAtPosition(u,r.pos));var p=e.createFileDiagnostic(u,f.start,f.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);ya.add(p)}switch(qe){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(u.impliedNodeFormat===e.ModuleKind.CommonJS){f??(f=e.getSpanOfTokenAtPosition(u,r.pos)),ya.add(e.createFileDiagnostic(u,f.start,f.length,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(Ae>=4)break;default:f??(f=e.getSpanOfTokenAtPosition(u,r.pos)),ya.add(e.createFileDiagnostic(u,f.start,f.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{var u=e.getSourceFileOfNode(r);if(!ih(u)){var f=e.getSpanOfTokenAtPosition(u,r.pos),p=e.createFileDiagnostic(u,f.start,f.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(a&&a.kind!==173&&!(e.getFunctionFlags(a)&2)){var g=e.createDiagnosticForNode(a,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(p,g)}ya.add(p)}}wP(r)&&nt(r,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}function BK(r){ee(function(){return RK(r)});var a=Ra(r.expression),u=I0(a,!0,r,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return u===a&&!pa(u)&&!(a.flags&3)&&Wp(!1,e.createDiagnosticForNode(r,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),u}function jK(r){var a=Ra(r.operand);if(a===hr)return hr;switch(r.operand.kind){case 8:switch(r.operator){case 40:return zv(Qf(-r.operand.text));case 39:return zv(Qf(+r.operand.text))}break;case 9:if(r.operator===40)return zv(hx({negative:!0,base10Value:e.parsePseudoBigInt(r.operand.text)}))}switch(r.operator){case 39:case 40:case 54:return Pf(a,r.operand),Vb(a,12288)&&nt(r.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r.operator)),r.operator===39?(Vb(a,2112)&&nt(r.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(r.operator),Hn(Xf(a))),ht):dw(a);case 53:ny(r.operand);var u=Yc(a)&12582912;return u===4194304?un:u===8388608?Bn:Tn;case 45:case 46:var f=gT(r.operand,Pf(a,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return f&&k0(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),dw(a)}return ar}function JK(r){var a=Ra(r.operand);if(a===hr)return hr;var u=gT(r.operand,Pf(a,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return u&&k0(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),dw(a)}function dw(r){return ks(r,2112)?mc(r,3)||ks(r,296)?kt:Yt:ht}function Vb(r,a){if(ks(r,a))return!0;var u=y_(r);return!!u&&ks(u,a)}function ks(r,a){if(r.flags&a)return!0;if(r.flags&3145728)for(var u=r.types,f=0,p=u;f<p.length;f++){var g=p[f];if(ks(g,a))return!0}return!1}function mc(r,a,u){return r.flags&a?!0:u&&r.flags&114691?!1:!!(a&296)&&So(r,ht)||!!(a&2112)&&So(r,Yt)||!!(a&402653316)&&So(r,Ft)||!!(a&528)&&So(r,Tn)||!!(a&16384)&&So(r,ii)||!!(a&131072)&&So(r,Xe)||!!(a&65536)&&So(r,Pt)||!!(a&32768)&&So(r,Ar)||!!(a&4096)&&So(r,An)||!!(a&67108864)&&So(r,Qt)}function zb(r,a,u){return r.flags&1048576?e.every(r.types,function(f){return zb(f,a,u)}):mc(r,a,u)}function _w(r){return!!(e.getObjectFlags(r)&16)&&!!r.symbol&&mw(r.symbol)}function mw(r){return(r.flags&128)!==0}function UK(r,a,u,f){return u===hr||f===hr?hr:(!fa(u)&&zb(u,131068)&&nt(r,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),fa(f)||Vw(f)||Dm(f,ln)||nt(a,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Tn)}function VK(r){return pd(r,function(a){return a===vn||!!(a.flags&2097152)&&e.some(a.types,sg)})}function zK(r,a,u,f){if(u===hr||f===hr)return hr;if(e.isPrivateIdentifier(r)){if(Ae<99&&Zc(r,2097152),!Mi(r).resolvedSymbol&&e.getContainingClass(r)){var p=KP(r,f.symbol,!0);X5(r,f,p)}}else vu(Pf(u,r),Tt,r);return vu(Pf(f,a),Qt,a)&&VK(f)&&nt(a,e.Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Hn(f)),Tn}function WK(r,a,u){var f=r.properties;if(ue&&f.length===0)return Pf(a,r);for(var p=0;p<f.length;p++)U7(r,a,p,f,u);return a}function U7(r,a,u,f,p){p===void 0&&(p=!1);var g=r.properties,j=g[u];if(j.kind===299||j.kind===300){var pe=j.name,Se=D_(pe);if(Kc(Se)){var Be=Jl(Se),fr=Fa(a,Be);fr&&(Fb(fr,j,p),qP(j,!1,!0,a,fr))}var sr=Fu(a,Se,32,pe),gr=il(j,sr);return nh(j.kind===300?j:j.initializer,gr)}else if(j.kind===301)if(u<g.length-1)nt(j,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{Ae<99&&Zc(j,4);var _r=[];if(f)for(var Kr=0,mt=f;Kr<mt.length;Kr++){var Vt=mt[Kr];e.isSpreadAssignment(Vt)||_r.push(Vt.name)}var gr=pl(a,_r,a.symbol);return Gh(f,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),nh(j.expression,gr)}else nt(j,e.Diagnostics.Property_assignment_expected)}function qK(r,a,u){var f=r.elements;Ae<2&&Ce.downlevelIteration&&Zc(r,512);for(var p=E_(193,a,Ar,r)||ar,g=Ce.noUncheckedIndexedAccess?void 0:p,j=0;j<f.length;j++){var pe=p;r.elements[j].kind===227&&(pe=g=g??(E_(65,a,Ar,r)||ar)),V7(r,a,j,pe,u)}return a}function V7(r,a,u,f,p){var g=r.elements,j=g[u];if(j.kind!==229){if(j.kind!==227){var pe=Qf(u);if(xm(a)){var Se=32|(Ky(j)?16:0),Be=gm(a,pe,Se,_g(j,pe))||ar,fr=Ky(j)?gl(Be,524288):Be,sr=il(j,fr);return nh(j,sr,p)}return nh(j,f,p)}if(u<g.length-1)nt(j,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var gr=j.expression;if(gr.kind===223&&gr.operatorToken.kind===63)nt(gr.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{Gh(r.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var sr=Ip(a,po)?Ts(a,function(Kr){return a0(Kr,u)}):zc(f);return nh(gr,sr,p)}}}}function nh(r,a,u,f){var p;if(r.kind===300){var g=r;g.objectAssignmentInitializer&&(ue&&!(Yc(Ra(g.objectAssignmentInitializer))&16777216)&&(a=gl(a,524288)),KK(g.name,g.equalsToken,g.objectAssignmentInitializer,u)),p=r.name}else p=r;return p.kind===223&&p.operatorToken.kind===63&&(ut(p,u),p=p.left,ue&&(a=gl(a,524288))),p.kind===207?WK(p,a,f):p.kind===206?qK(p,a,u):$K(p,a,u)}function $K(r,a,u){var f=Ra(r,u),p=r.parent.kind===301?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,g=r.parent.kind===301?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return k0(r,p,g)&&x_(a,f,r,r),e.isPrivateIdentifierPropertyAccessExpression(r)&&Zc(r.parent,1048576),a}function Wb(r){switch(r=e.skipParentheses(r),r.kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return Wb(r.whenTrue)&&Wb(r.whenFalse);case 223:return e.isAssignmentOperator(r.operatorToken.kind)?!1:Wb(r.left)&&Wb(r.right);case 221:case 222:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 219:case 213:case 231:default:return!1}}function gw(r,a){return(a.flags&98304)!==0||l0(r,a)}function HK(){var r=e.createBinaryExpressionTrampoline(a,u,f,p,g,j);return function(gr,_r){var Kr=r(gr,_r);return e.Debug.assertIsDefined(Kr),Kr};function a(gr,_r,Kr){if(_r?(_r.stackIndex++,_r.skip=!1,Be(_r,void 0),sr(_r,void 0)):_r={checkMode:Kr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(gr)&&e.getAssignedExpandoInitializer(gr))return _r.skip=!0,sr(_r,Ra(gr.right,Kr)),_r;GK(gr);var mt=gr.operatorToken.kind;return mt===63&&(gr.left.kind===207||gr.left.kind===206)&&(_r.skip=!0,sr(_r,nh(gr.left,Ra(gr.right,Kr),Kr,gr.right.kind===108))),_r}function u(gr,_r,Kr){if(!_r.skip)return pe(_r,gr)}function f(gr,_r,Kr){if(!_r.skip){var mt=fr(_r);e.Debug.assertIsDefined(mt),Be(_r,mt),sr(_r,void 0);var Vt=gr.kind;if(Vt===55||Vt===56||Vt===60){if(Vt===55){for(var wt=Kr.parent;wt.kind===214||e.isBinaryExpression(wt)&&(wt.operatorToken.kind===55||wt.operatorToken.kind===56);)wt=wt.parent;Aw(Kr.left,mt,e.isIfStatement(wt)?wt.thenStatement:void 0)}bM(mt,Kr.left)}}}function p(gr,_r,Kr){if(!_r.skip)return pe(_r,gr)}function g(gr,_r){var Kr;if(_r.skip)Kr=fr(_r);else{var mt=Se(_r);e.Debug.assertIsDefined(mt);var Vt=fr(_r);e.Debug.assertIsDefined(Vt),Kr=z7(gr.left,gr.operatorToken,gr.right,mt,Vt,gr)}return _r.skip=!1,Be(_r,void 0),sr(_r,void 0),_r.stackIndex--,Kr}function j(gr,_r,Kr){return sr(gr,_r),gr}function pe(gr,_r){if(e.isBinaryExpression(_r))return _r;sr(gr,Ra(_r,gr.checkMode))}function Se(gr){return gr.typeStack[gr.stackIndex]}function Be(gr,_r){gr.typeStack[gr.stackIndex]=_r}function fr(gr){return gr.typeStack[gr.stackIndex+1]}function sr(gr,_r){gr.typeStack[gr.stackIndex+1]=_r}}function GK(r){var a=r.left,u=r.operatorToken,f=r.right;u.kind===60&&(e.isBinaryExpression(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&Fn(a,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(a.operatorToken.kind),e.tokenToString(u.kind)),e.isBinaryExpression(f)&&(f.operatorToken.kind===56||f.operatorToken.kind===55)&&Fn(f,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(f.operatorToken.kind),e.tokenToString(u.kind)))}function KK(r,a,u,f,p){var g=a.kind;if(g===63&&(r.kind===207||r.kind===206))return nh(r,Ra(u,f),f,u.kind===108);var j;g===55||g===56||g===60?j=ny(r,f):j=Ra(r,f);var pe=Ra(u,f);return z7(r,a,u,j,pe,p)}function z7(r,a,u,f,p,g){var j=a.kind;switch(j){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(f===hr||p===hr)return hr;f=Pf(f,r),p=Pf(p,u);var pe=void 0;if(f.flags&528&&p.flags&528&&(pe=Ua(a.kind))!==void 0)return nt(g||a,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(a.kind),e.tokenToString(pe)),ht;var Se=gT(r,f,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Be=gT(u,p,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),fr;if(mc(f,3)&&mc(p,3)||!(ks(f,2112)||ks(p,2112)))fr=ht;else if(Ti(f,p)){switch(j){case 49:case 72:jo();break;case 42:case 67:Ae<3&&nt(g,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}fr=Yt}else jo(Ti),fr=ar;return Se&&Be&&Wa(fr),fr;case 39:case 64:if(f===hr||p===hr)return hr;!mc(f,402653316)&&!mc(p,402653316)&&(f=Pf(f,r),p=Pf(p,u));var sr=void 0;if(mc(f,296,!0)&&mc(p,296,!0)?sr=ht:mc(f,2112,!0)&&mc(p,2112,!0)?sr=Yt:mc(f,402653316,!0)||mc(p,402653316,!0)?sr=Ft:(fa(f)||fa(p))&&(sr=pa(f)||pa(p)?ar:Ie),sr&&!Ai(j))return sr;if(!sr){var gr=402655727;return jo(function(qt,yi){return mc(qt,gr)&&mc(yi,gr)}),Ie}return j===64&&Wa(sr),sr;case 29:case 31:case 32:case 33:return Ai(j)&&(f=Xf(Pf(f,r)),p=Xf(Pf(p,u)),Bo(function(qt,yi){return l0(qt,yi)||l0(yi,qt)||So(qt,kt)&&So(yi,kt)})),Tn;case 34:case 35:case 36:case 37:if(e.isLiteralExpressionOfObject(r)||e.isLiteralExpressionOfObject(u)){var _r=j===34||j===36;nt(g,e.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,_r?"false":"true")}return Ca(g,j,r,u),Bo(function(qt,yi){return gw(qt,yi)||gw(yi,qt)}),Tn;case 102:return UK(r,u,f,p);case 101:return zK(r,u,f,p);case 55:case 76:{var Kr=Yc(f)&4194304?zi([n$(ue?f:Xf(p)),p]):f;return j===76&&Wa(p),Kr}case 56:case 75:{var mt=Yc(f)&8388608?zi([qd(N8(f)),p],2):f;return j===75&&Wa(p),mt}case 60:case 77:{var Vt=Yc(f)&262144?zi([qd(f),p],2):f;return j===77&&Wa(p),Vt}case 63:var wt=e.isBinaryExpression(r.parent)?e.getAssignmentDeclarationKind(r.parent):0;return li(wt,p),Ga(wt)?((!(p.flags&524288)||wt!==2&&wt!==6&&!ld(p)&&!bP(p)&&!(e.getObjectFlags(p)&1))&&Wa(p),f):(Wa(p),m0(p));case 27:if(!Ce.allowUnreachableCode&&Wb(r)&&!Ja(u)){var rn=e.getSourceFileOfNode(r),on=rn.text,Un=e.skipTrivia(on,r.pos),Gn=rn.parseDiagnostics.some(function(qt){return qt.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(qt,Un)});Gn||nt(r,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return p;default:return e.Debug.fail()}function Ti(qt,yi){return mc(qt,2112)&&mc(yi,2112)}function li(qt,yi){if(qt===2)for(var Bi=0,ha=wp(yi);Bi<ha.length;Bi++){var si=ha[Bi],qa=_n(si);if(qa.symbol&&qa.symbol.flags&32){var Ta=si.escapedName,Qa=Ls(si.valueDeclaration,Ta,788968,void 0,Ta,!1);Qa!=null&&Qa.declarations&&Qa.declarations.some(e.isJSDocTypedefTag)&&(mf(Qa,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Ta),si),mf(si,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Ta),Qa))}}}function Ja(qt){return qt.kind===79&&qt.escapedText==="eval"}function Ai(qt){var yi=Vb(f,12288)?r:Vb(p,12288)?u:void 0;return yi?(nt(yi,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(qt)),!1):!0}function Ua(qt){switch(qt){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Wa(qt){e.isAssignmentOperator(j)&&ee(yi);function yi(){if(k0(r,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(r)||e.unescapeLeadingUnderscores(r.escapedText)!=="exports")){var Bi=void 0;if(tt&&e.isPropertyAccessExpression(r)&&ks(qt,32768)){var ha=di(Ic(r.expression),r.name.escapedText);WA(qt,ha)&&(Bi=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}x_(qt,f,r,u,Bi)}}}function Ga(qt){var yi;switch(qt){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Bi=Zn(r),ha=e.getAssignedExpandoInitializer(u);return!!ha&&e.isObjectLiteralExpression(ha)&&!!(!((yi=Bi==null?void 0:Bi.exports)===null||yi===void 0)&&yi.size);default:return!1}}function Bo(qt){return qt(f,p)?!1:(jo(qt),!0)}function jo(qt){var yi,Bi=!1,ha=g||a;if(qt){var si=Hd(f),qa=Hd(p);Bi=!(si===f&&qa===p)&&!!(si&&qa)&&qt(si,qa)}var Ta=f,Qa=p;!Bi&&qt&&(yi=QK(f,p,qt),Ta=yi[0],Qa=yi[1]);var Za=rm(Ta,Qa),dt=Za[0],Pr=Za[1];No(ha,Bi,dt,Pr)||_f(ha,Bi,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(a.kind),dt,Pr)}function No(qt,yi,Bi,ha){switch(a.kind){case 36:case 34:case 37:case 35:return _f(qt,yi,e.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Bi,ha);default:return}}function Ca(qt,yi,Bi,ha){var si=hn(e.skipParentheses(Bi)),qa=hn(e.skipParentheses(ha));if(si||qa){var Ta=nt(qt,e.Diagnostics.This_condition_will_always_return_0,e.tokenToString(yi===36||yi===34?95:110));if(si&&qa)return;var Qa=yi===37||yi===35?e.tokenToString(53):"",Za=si?ha:Bi,dt=e.skipParentheses(Za);e.addRelatedInfo(Ta,e.createDiagnosticForNode(Za,e.Diagnostics.Did_you_mean_0,"".concat(Qa,"Number.isNaN(").concat(e.isEntityNameExpression(dt)?e.entityNameToString(dt):"...",")")))}}function hn(qt){if(e.isIdentifier(qt)&&qt.escapedText==="NaN"){var yi=sW();return!!yi&&yi===Wl(qt)}return!1}}function QK(r,a,u){var f=r,p=a,g=Xf(r),j=Xf(a);return u(g,j)||(f=g,p=j),[f,p]}function XK(r){ee(_r);var a=e.getContainingFunction(r);if(!a)return Ie;var u=e.getFunctionFlags(a);if(!(u&1))return Ie;var f=(u&2)!==0;r.asteriskToken&&(f&&Ae<99&&Zc(r,26624),!f&&Ae<2&&Ce.downlevelIteration&&Zc(r,256));var p=Bv(a),g=p&&NM(p,f),j=g&&g.yieldType||Ie,pe=g&&g.nextType||Ie,Se=f?$h(pe)||Ie:pe,Be=r.expression?Ra(r.expression):rt,fr=M7(r,Be,Se,f);if(p&&fr&&x_(fr,j,r.expression||r,r.expression),r.asteriskToken){var sr=f?19:17;return DM(sr,1,Be,r.expression)||Ie}else if(p)return mg(2,p,f)||Ie;var gr=T5(2,a);return gr||(gr=Ie,ee(function(){if(mr&&!e.expressionResultIsUnused(r)){var Kr=Lu(r,void 0);(!Kr||fa(Kr))&&nt(r,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),gr;function _r(){r.flags&8192||Tc(r,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),wP(r)&&nt(r,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function YK(r,a){var u=ny(r.condition);Aw(r.condition,u,r.whenTrue);var f=Ra(r.whenTrue,a),p=Ra(r.whenFalse,a);return zi([f,p],2)}function W7(r){var a=r.parent;return e.isParenthesizedExpression(a)&&W7(a)||e.isElementAccessExpression(a)&&a.argumentExpression===r}function ZK(r){for(var a=[r.head.text],u=[],f=0,p=r.templateSpans;f<p.length;f++){var g=p[f],j=Ra(g.expression);Vb(j,12288)&&nt(g.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(g.literal.text),u.push(So(j,Lt)?j:Ft)}return e1(r)||W7(r)||pd(Lu(r,void 0)||ur,eQ)?Gg(a,u):Ft}function eQ(r){return!!(r.flags&134217856||r.flags&58982400&&ks(uu(r)||ur,402653316))}function rQ(r){return r.kind===289&&!e.isJsxSelfClosingElement(r.parent)?r.parent.parent:r}function ry(r,a,u,f){var p=rQ(r),g=p.contextualType,j=p.inferenceContext;try{p.contextualType=a,p.inferenceContext=u;var pe=Ra(r,f|1|(u?2:0));u&&u.intraExpressionInferenceSites&&(u.intraExpressionInferenceSites=void 0);var Se=ks(pe,2944)&&hT(pe,Xx(a,r,void 0))?Eu(pe):pe;return Se}finally{p.contextualType=g,p.inferenceContext=j}}function Gs(r,a){if(a&&a!==0)return Ra(r,a);var u=Mi(r);if(!u.resolvedType){var f=kc,p=$s;kc=oc,$s=void 0,u.resolvedType=Ra(r,a),$s=p,kc=f}return u.resolvedType}function q7(r){return r=e.skipParentheses(r,!0),r.kind===213||r.kind===231||e.isJSDocTypeAssertion(r)}function qb(r,a,u){var f=e.getEffectiveInitializer(r),p=X7(f)||(u?ry(f,u,void 0,a||0):Gs(f,a));return e.isParameter(r)&&r.name.kind===204&&po(p)&&!p.target.hasRestElement&&_m(p)<r.name.elements.length?tQ(p,r.name):p}function tQ(r,a){for(var u=a.elements,f=Go(r).slice(),p=r.target.elementFlags.slice(),g=_m(r);g<u.length;g++){var j=u[g];(g<u.length-1||!(j.kind===205&&j.dotDotDotToken))&&(f.push(!e.isOmittedExpression(j)&&Ky(j)?ot(j,!1,!1):Ie),p.push(2),!e.isOmittedExpression(j)&&!Ky(j)&&ug(j,Ie))}return Gf(f,p,r.target.readonly)}function hw(r,a){var u=e.getCombinedNodeFlags(r)&2||e.isDeclarationReadonly(r)?a:cg(a);if(e.isInJSFile(r)){if(E8(u))return ug(r,Ie),Ie;if(Nx(u))return ug(r,Wo),Wo}return u}function hT(r,a){if(a){if(a.flags&3145728){var u=a.types;return e.some(u,function(p){return hT(r,p)})}if(a.flags&58982400){var f=uu(a)||ur;return ks(f,4)&&ks(r,128)||ks(f,8)&&ks(r,256)||ks(f,64)&&ks(r,2048)||ks(f,4096)&&ks(r,8192)||hT(r,f)}return!!(a.flags&406847616&&ks(r,128)||a.flags&256&&ks(r,256)||a.flags&2048&&ks(r,2048)||a.flags&512&&ks(r,512)||a.flags&8192&&ks(r,8192))}return!1}function e1(r){var a=r.parent;return e.isAssertionExpression(a)&&e.isConstTypeReference(a.type)||e.isJSDocTypeAssertion(a)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(a))||(e.isParenthesizedExpression(a)||e.isArrayLiteralExpression(a)||e.isSpreadElement(a))&&e1(a)||(e.isPropertyAssignment(a)||e.isShorthandPropertyAssignment(a)||e.isTemplateSpan(a))&&e1(a.parent)}function r1(r,a,u,f){var p=Ra(r,a,f);return e1(r)||e.isCommonJsExportedExpression(r)?Eu(p):q7(r)?p:YA(p,Xx(arguments.length===2?Lu(r,void 0):u,r,void 0))}function $7(r,a){return r.name.kind===164&&$d(r.name),r1(r.initializer,a)}function H7(r,a){gF(r),r.name.kind===164&&$d(r.name);var u=j7(r,a);return G7(r,u,a)}function G7(r,a,u){if(u&&u&10){var f=D0(a,0,!0),p=D0(a,1,!0),g=f||p;if(g&&g.typeParameters){var j=pg(r,2);if(j){var pe=D0(qd(j),f?0:1,!1);if(pe&&!pe.typeParameters){if(u&8)return K7(r,u),Ha;var Se=Xv(r),Be=Se.signature&&Ho(Se.signature),fr=Be&&o7(Be);if(fr&&!fr.typeParameters&&!e.every(Se.inferences,ty)){var sr=oQ(Se,g.typeParameters),gr=nA(g,sr),_r=e.map(Se.inferences,function(Kr){return oP(Kr.typeParameter)});if(nP(gr,pe,function(Kr,mt){fd(_r,Kr,mt,0,!0)}),e.some(_r,ty)&&(iP(gr,pe,function(Kr,mt){fd(_r,Kr,mt)}),!iQ(Se.inferences,_r)))return aQ(Se.inferences,_r),Se.inferredTypeParameters=e.concatenate(Se.inferredTypeParameters,sr),Jy(gr)}return Jy(s7(g,pe,Se))}}}}return a}function K7(r,a){if(a&2){var u=Xv(r);u.flags|=4}}function ty(r){return!!(r.candidates||r.contraCandidates)}function nQ(r){return!!(r.candidates||r.contraCandidates||nx(r.typeParameter))}function iQ(r,a){for(var u=0;u<r.length;u++)if(ty(r[u])&&ty(a[u]))return!0;return!1}function aQ(r,a){for(var u=0;u<r.length;u++)!ty(r[u])&&ty(a[u])&&(r[u]=a[u])}function oQ(r,a){for(var u=[],f,p,g=0,j=a;g<j.length;g++){var pe=j[g],Se=pe.symbol.escapedName;if(vw(r.inferredTypeParameters,Se)||vw(u,Se)){var Be=sQ(e.concatenate(r.inferredTypeParameters,u),Se),fr=Lo(262144,Be),sr=ic(fr);sr.target=pe,f=e.append(f,pe),p=e.append(p,sr),u.push(sr)}else u.push(pe)}if(p)for(var gr=Cu(f,p),_r=0,Kr=p;_r<Kr.length;_r++){var pe=Kr[_r];pe.mapper=gr}return u}function vw(r,a){return e.some(r,function(u){return u.symbol.escapedName===a})}function sQ(r,a){for(var u=a.length;u>1&&a.charCodeAt(u-1)>=48&&a.charCodeAt(u-1)<=57;)u--;for(var f=a.slice(0,u),p=1;;p++){var g=f+p;if(!vw(r,g))return g}}function Q7(r){var a=qh(r);if(a&&!a.typeParameters)return Ho(a)}function cQ(r){var a=Ra(r.expression),u=_0(a,r.expression),f=Q7(a);return f&&Mx(f,r,u!==a)}function Ic(r){var a=X7(r);if(a)return a;if(r.flags&134217728&&$s){var u=$s[_e(r)];if(u)return u}var f=wl,p=Ra(r);if(wl!==f){var g=$s||($s=[]);g[_e(r)]=p,e.setNodeFlags(r,r.flags|134217728)}return p}function X7(r){var a=e.skipParentheses(r,!0);if(e.isJSDocTypeAssertion(a)){var u=e.getJSDocTypeAssertionType(a);if(!e.isConstTypeReference(u))return ea(u)}if(a=e.skipParentheses(r),e.isCallExpression(a)&&a.expression.kind!==106&&!e.isRequireCall(a,!0)&&!b7(a)){var u=e.isCallChain(a)?cQ(a):Q7(Xy(a.expression));if(u)return u}else{if(e.isAssertionExpression(a)&&!e.isConstTypeReference(a.type))return ea(a.type);if(r.kind===8||r.kind===10||r.kind===110||r.kind===95)return Ra(r)}}function $b(r){var a=Mi(r);if(a.contextFreeType)return a.contextFreeType;var u=r.contextualType;r.contextualType=Ie;try{var f=a.contextFreeType=Ra(r,4);return f}finally{r.contextualType=u}}function Ra(r,a,u){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var f=me;me=r,we=0;var p=fQ(r,a,u),g=G7(r,p,a);return _w(g)&&uQ(r,g),me=f,e.tracing===null||e.tracing===void 0||e.tracing.pop(),g}function uQ(r,a){var u=r.parent.kind===208&&r.parent.expression===r||r.parent.kind===209&&r.parent.expression===r||(r.kind===79||r.kind===163)&&NT(r)||r.parent.kind===183&&r.parent.exprName===r||r.parent.kind===278;if(u||nt(r,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Ce.isolatedModules){e.Debug.assert(!!(a.symbol.flags&128));var f=a.symbol.valueDeclaration;f.flags&16777216&&nt(r,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function lQ(r,a){if(e.hasJSDocNodes(r)&&e.isJSDocTypeAssertion(r)){var u=e.getJSDocTypeAssertionType(r);return C7(u,u,r.expression,a)}return Ra(r.expression,a)}function fQ(r,a,u){var f=r.kind;if(J)switch(f){case 228:case 215:case 216:J.throwIfCancellationRequested()}switch(f){case 79:return fH(r,a);case 80:return DG(r);case 108:return Pb(r);case 106:return AP(r);case 104:return pt;case 14:case 10:return zv(kl(r.text));case 8:return Yw(r),zv(Qf(+r.text));case 9:return cee(r),zv(hx({negative:!1,base10Value:e.parsePseudoBigInt(r.text)}));case 110:return Bn;case 95:return un;case 225:return ZK(r);case 13:return ws;case 206:return w5(r,a,u);case 207:return tG(r,a);case 208:return q5(r,a);case 163:return $5(r,a);case 209:return BG(r,a);case 210:if(r.expression.kind===100)return dK(r);case 211:return pK(r,a);case 212:return _K(r);case 214:return lQ(r,a);case 228:return GX(r);case 215:case 216:return j7(r,a);case 218:return FK(r);case 213:case 231:return mK(r);case 232:return hK(r);case 230:return k7(r);case 235:return vK(r);case 233:return yK(r);case 217:return OK(r);case 219:return LK(r);case 220:return BK(r);case 221:return jK(r);case 222:return JK(r);case 223:return ut(r,a);case 224:return YK(r,a);case 227:return XH(r,a);case 229:return rt;case 226:return XK(r);case 234:return YH(r);case 291:return mG(r,a);case 281:return oG(r);case 282:return iG(r);case 285:return sG(r);case 289:return uG(r,a);case 283:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ar}function Y7(r){lF(r),r.expression&&Tc(r.expression,e.Diagnostics.Type_expected),go(r.constraint),go(r.default);var a=Bd(Zn(r));uu(a),tx(a)||nt(r.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Hn(a));var u=Uc(a),f=fm(a);u&&f&&vu(f,Hu(Sa(u,og(a,f)),f),r.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),o1(r),ee(function(){return a1(r.name,e.Diagnostics.Type_parameter_name_cannot_be_0)})}function pQ(r){if(e.isInterfaceDeclaration(r.parent)||e.isClassLike(r.parent)||e.isTypeAliasDeclaration(r.parent)){var a=Bd(Zn(r)),u=HA(a);if(u){var f=Zn(r.parent);if(e.isTypeAliasDeclaration(r.parent)&&!(e.getObjectFlags(mn(f))&48))nt(r,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(u===32768||u===65536){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:Wc(mn(f)),id:Wc(a)});var p=vb(f,a,u===65536?Oo:bo),g=vb(f,a,u===65536?bo:Oo),j=a;He=a,vu(p,g,r,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),He=j,e.tracing===null||e.tracing===void 0||e.tracing.pop()}}}}function Z7(r){dd(r),xT(r);var a=e.getContainingFunction(r);e.hasSyntacticModifier(r,16476)&&(a.kind===173&&e.nodeIsPresent(a.body)||nt(r,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===173&&e.isIdentifier(r.name)&&r.name.escapedText==="constructor"&&nt(r.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),(r.questionToken||Hg(r))&&e.isBindingPattern(r.name)&&a.body&&nt(r,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&e.isIdentifier(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(a.parameters.indexOf(r)!==0&&nt(r,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(a.kind===173||a.kind===177||a.kind===182)&&nt(r,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),a.kind===216&&nt(r,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(a.kind===174||a.kind===175)&&nt(r,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!e.isBindingPattern(r.name)&&!So(Zi(_n(r.symbol)),yu)&&nt(r,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function dQ(r){var a=_Q(r);if(!a){nt(r,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var u=of(a),f=Vl(u);if(f){go(r.type);var p=r.parameterName;if(f.kind===0||f.kind===2)vx(p);else if(f.parameterIndex>=0){if(R(u)&&f.parameterIndex===u.parameters.length-1)nt(p,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(f.type){var g=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};vu(f.type,_n(u.parameters[f.parameterIndex]),r.type,void 0,g)}}else if(p){for(var j=!1,pe=0,Se=a.parameters;pe<Se.length;pe++){var Be=Se[pe].name;if(e.isBindingPattern(Be)&&eM(Be,p,f.parameterName)){j=!0;break}}j||nt(r.parameterName,e.Diagnostics.Cannot_find_parameter_0,f.parameterName)}}}function _Q(r){switch(r.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:var a=r.parent;if(r===a.type)return a}}function eM(r,a,u){for(var f=0,p=r.elements;f<p.length;f++){var g=p[f];if(!e.isOmittedExpression(g)){var j=g.name;if(j.kind===79&&j.escapedText===u)return nt(a,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,u),!0;if((j.kind===204||j.kind===203)&&eM(j,a,u))return!0}}}function A0(r){r.kind===178?FZ(r):(r.kind===181||r.kind===259||r.kind===182||r.kind===176||r.kind===173||r.kind===177)&&LT(r);var a=e.getFunctionFlags(r);a&4||((a&3)===3&&Ae<99&&Zc(r,6144),(a&3)===2&&Ae<4&&Zc(r,64),a&3&&Ae<2&&Zc(r,128)),Zb(e.getEffectiveTypeParameterDeclarations(r)),$X(r),e.forEach(r.parameters,Z7),r.type&&go(r.type),ee(u);function u(){uX(r);var f=e.getEffectiveReturnTypeNode(r);if(mr&&!f)switch(r.kind){case 177:nt(r,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:nt(r,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(f){var p=e.getFunctionFlags(r);if((p&5)===1){var g=ea(f);if(g===ii)nt(f,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var j=mg(0,g,(p&2)!==0)||Ie,pe=mg(1,g,(p&2)!==0)||j,Se=mg(2,g,(p&2)!==0)||ur,Be=O7(j,pe,Se,!!(p&2));vu(Be,g,f)}}else(p&3)===2&&WQ(r,f)}r.kind!==178&&r.kind!==320&&T_(r)}}function mQ(r){for(var a=new e.Map,u=new e.Map,f=new e.Map,p=0,g=r.members;p<g.length;p++){var j=g[p];if(j.kind===173)for(var pe=0,Se=j.parameters;pe<Se.length;pe++){var Be=Se[pe];e.isParameterPropertyDeclaration(Be,j)&&!e.isBindingPattern(Be.name)&&Vt(a,Be.name,Be.name.escapedText,3)}else{var fr=e.isStatic(j),sr=j.name;if(!sr)continue;var gr=e.isPrivateIdentifier(sr),_r=gr&&fr?16:0,Kr=gr?f:fr?u:a,mt=sr&&e.getPropertyNameForPropertyNameNode(sr);if(mt)switch(j.kind){case 174:Vt(Kr,sr,mt,1|_r);break;case 175:Vt(Kr,sr,mt,2|_r);break;case 169:Vt(Kr,sr,mt,3|_r);break;case 171:Vt(Kr,sr,mt,8|_r);break}}}function Vt(wt,rn,on,Un){var Gn=wt.get(on);if(Gn)if((Gn&16)!==(Un&16))nt(rn,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(rn));else{var Ti=!!(Gn&8),li=!!(Un&8);Ti||li?Ti!==li&&nt(rn,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(rn)):Gn&Un&-17?nt(rn,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(rn)):wt.set(on,Gn|Un)}else wt.set(on,Un)}}function gQ(r){for(var a=0,u=r.members;a<u.length;a++){var f=u[a],p=f.name,g=e.isStatic(f);if(g&&p){var j=e.getPropertyNameForPropertyNameNode(p);switch(j){case"name":case"length":case"caller":case"arguments":case"prototype":var pe=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,Se=ad(Zn(r));nt(p,pe,j,Se);break}}}}function rM(r){for(var a=new e.Map,u=0,f=r.members;u<f.length;u++){var p=f[u];if(p.kind===168){var g=void 0,j=p.name;switch(j.kind){case 10:case 8:g=j.text;break;case 79:g=e.idText(j);break;default:continue}a.get(g)?(nt(e.getNameOfDeclaration(p.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,g),nt(p.name,e.Diagnostics.Duplicate_identifier_0,g)):a.set(g,!0)}}}function yw(r){if(r.kind===261){var a=Zn(r);if(a.declarations&&a.declarations.length>0&&a.declarations[0]!==r)return}var u=nO(Zn(r));if(u!=null&&u.declarations){for(var f=new e.Map,p=function(Se){Se.parameters.length===1&&Se.parameters[0].type&&Zg(ea(Se.parameters[0].type),function(Be){var fr=f.get(Wc(Be));fr?fr.declarations.push(Se):f.set(Wc(Be),{type:Be,declarations:[Se]})})},g=0,j=u.declarations;g<j.length;g++){var pe=j[g];p(pe)}f.forEach(function(Se){if(Se.declarations.length>1)for(var Be=0,fr=Se.declarations;Be<fr.length;Be++){var sr=fr[Be];nt(sr,e.Diagnostics.Duplicate_index_signature_for_type_0,Hn(Se.type))}})}}function tM(r){!dd(r)&&!nee(r)&&RT(r.name),xT(r),bw(r),e.hasSyntacticModifier(r,256)&&r.kind===169&&r.initializer&&nt(r,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(r.name))}function hQ(r){return e.isPrivateIdentifier(r.name)&&nt(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),tM(r)}function vQ(r){gF(r)||RT(r.name),e.isMethodDeclaration(r)&&r.asteriskToken&&e.isIdentifier(r.name)&&e.idText(r.name)==="constructor"&&nt(r.name,e.Diagnostics.Class_constructor_may_not_be_a_generator),pM(r),e.hasSyntacticModifier(r,256)&&r.kind===171&&r.body&&nt(r,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(r.name)),e.isPrivateIdentifier(r.name)&&!e.getContainingClass(r)&&nt(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),bw(r)}function bw(r){if(e.isPrivateIdentifier(r.name)&&Ae<99){for(var a=e.getEnclosingBlockScopeContainer(r);a;a=e.getEnclosingBlockScopeContainer(a))Mi(a).flags|=67108864;if(e.isClassExpression(r.parent)){var u=EP(r.parent);u&&(Mi(r.name).flags|=524288,Mi(u).flags|=65536)}}}function yQ(r){dd(r),e.forEachChild(r,go)}function bQ(r){A0(r),ree(r)||tee(r),go(r.body);var a=Zn(r),u=e.getDeclarationOfKind(a,r.kind);if(r===u&&bT(a),e.nodeIsMissing(r.body))return;ee(p);return;function f(g){return e.isPrivateIdentifierClassElementDeclaration(g)?!0:g.kind===169&&!e.isStatic(g)&&!!g.initializer}function p(){var g=r.parent;if(e.getClassExtendsHeritageElement(g)){CP(r.parent,g);var j=v5(g),pe=h5(r.body);if(pe){j&&nt(pe,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var Se=(e.getEmitScriptTarget(Ce)!==99||!xe)&&(e.some(r.parent.members,f)||e.some(r.parameters,function(_r){return e.hasSyntacticModifier(_r,16476)}));if(Se)if(!SQ(pe,r.body))nt(pe,e.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{for(var Be=void 0,fr=0,sr=r.body.statements;fr<sr.length;fr++){var gr=sr[fr];if(e.isExpressionStatement(gr)&&e.isSuperCall(e.skipOuterExpressions(gr.expression))){Be=gr;break}if(nM(gr))break}Be===void 0&&nt(r,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else j||nt(r,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function SQ(r,a){var u=e.walkUpParenthesizedExpressions(r.parent);return e.isExpressionStatement(u)&&u.parent===a}function nM(r){return r.kind===106||r.kind===108?!0:e.isThisContainerOrFunctionBlock(r)?!1:!!e.forEachChild(r,nM)}function iM(r){e.isIdentifier(r.name)&&e.idText(r.name)==="constructor"&&nt(r.name,e.Diagnostics.Class_constructor_may_not_be_an_accessor),ee(a),go(r.body),bw(r);function a(){if(!LT(r)&&!WZ(r)&&RT(r.name),Gb(r),A0(r),r.kind===174&&!(r.flags&16777216)&&e.nodeIsPresent(r.body)&&r.flags&256&&(r.flags&512||nt(r.name,e.Diagnostics.A_get_accessor_must_return_a_value)),r.name.kind===164&&$d(r.name),Wf(r)){var u=Zn(r),f=e.getDeclarationOfKind(u,174),p=e.getDeclarationOfKind(u,175);if(f&&p&&!(ay(f)&1)){Mi(f).flags|=1;var g=e.getEffectiveModifierFlags(f),j=e.getEffectiveModifierFlags(p);(g&256)!==(j&256)&&(nt(f.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),nt(p.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(g&16&&!(j&24)||g&8&&!(j&8))&&(nt(f.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),nt(p.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var pe=Cs(f),Se=Cs(p);pe&&Se&&vu(pe,Se,f,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var Be=_l(Zn(r));r.kind===174&&pw(r,Be)}}function DQ(r){Gb(r)}function xQ(r,a,u){return r.typeArguments&&u<r.typeArguments.length?ea(r.typeArguments[u]):vT(r,a)[u]}function vT(r,a){return dm(e.map(r.typeArguments,ea),a,af(a),e.isInJSFile(r))}function aM(r,a){for(var u,f,p=!0,g=0;g<a.length;g++){var j=Uc(a[g]);j&&(u||(u=vT(r,a),f=Cu(a,u)),p=p&&vu(u[g],Sa(j,f),r.typeArguments[g],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return p}function Sw(r){var a=cb(r);if(!pa(a)){var u=Mi(r).resolvedSymbol;if(u)return u.flags&524288&&la(u).typeParameters||(e.getObjectFlags(a)&4?a.target.localTypeParameters:void 0)}}function Dw(r){nS(r,r.typeArguments),r.kind===180&&r.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(r)&&!e.isInJSDoc(r)&&gg(r,r.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(r.typeArguments,go);var a=cb(r);if(!pa(a)){r.typeArguments&&ee(function(){var f=Sw(r);f&&aM(r,f)});var u=Mi(r).resolvedSymbol;u&&(e.some(u.declarations,function(f){return e.isTypeDeclaration(f)&&!!(f.flags&268435456)})&&Yl(Bb(r),u.declarations,u.escapedName),a.flags&32&&u.flags&8&&nt(r,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Hn(a)))}}function TQ(r){var a=e.tryCast(r.parent,e.isTypeReferenceType);if(a){var u=Sw(a);if(u){var f=Uc(u[a.typeArguments.indexOf(r)]);return f&&Sa(f,Cu(u,vT(a,u)))}}}function EQ(r){_O(r)}function CQ(r){e.forEach(r.members,go),ee(a);function a(){var u=t8(r);kT(u,u.symbol),yw(r),rM(r)}}function kQ(r){go(r.elementType)}function AQ(r){for(var a=r.elements,u=!1,f=!1,p=e.some(a,e.isNamedTupleMember),g=0,j=a;g<j.length;g++){var pe=j[g];if(pe.kind!==199&&p){Fn(pe,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var Se=dA(pe);if(Se&8){var Be=ea(pe.type);if(!xm(Be)){nt(pe,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(Al(Be)||po(Be)&&Be.target.combinedFlags&4)&&(f=!0)}else if(Se&4){if(f){Fn(pe,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}f=!0}else if(Se&2){if(f){Fn(pe,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}u=!0}else if(u){Fn(pe,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(r.elements,go),ea(r)}function PQ(r){e.forEach(r.types,go),ea(r)}function oM(r,a){if(!(r.flags&8388608))return r;var u=r.objectType,f=r.indexType;if(So(f,Kf(u,!1)))return a.kind===209&&e.isAssignmentTarget(a)&&e.getObjectFlags(u)&32&&tf(u)&1&&nt(a,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Hn(u)),r;var p=Gr(u);if(nf(p,ht)&&mc(f,296))return r;if(ng(u)){var g=SA(f,a);if(g){var j=Zg(p,function(pe){return Fa(pe,g)});if(j&&e.getDeclarationModifierFlagsFromSymbol(j)&24)return nt(a,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(g)),ar}}return nt(a,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Hn(f),Hn(u)),ar}function wQ(r){go(r.objectType),go(r.indexType),oM(QO(r),r)}function NQ(r){IQ(r),go(r.typeParameter),go(r.nameType),go(r.type),r.type||ug(r,Ie);var a=TA(r),u=cd(a);if(u)vu(u,gt,r.nameType);else{var f=Ul(a);vu(f,gt,e.getEffectiveConstraintOfTypeParameter(r.typeParameter))}}function IQ(r){var a;if(!((a=r.members)===null||a===void 0)&&a.length)return Fn(r.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}function OQ(r){vx(r)}function MQ(r){$Z(r),go(r.type)}function FQ(r){e.forEachChild(r,go)}function LQ(r){e.findAncestor(r,function(Be){return Be.parent&&Be.parent.kind===191&&Be.parent.extendsType===Be})||Fn(r,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),go(r.typeParameter);var a=Zn(r.typeParameter);if(a.declarations&&a.declarations.length>1){var u=la(a);if(!u.typeParametersChecked){u.typeParametersChecked=!0;var f=Bd(a),p=e.getDeclarationsOfKind(a,165);if(!FM(p,[f],function(Be){return[Be]}))for(var g=na(a),j=0,pe=p;j<pe.length;j++){var Se=pe[j];nt(Se.name,e.Diagnostics.All_declarations_of_0_must_have_identical_constraints,g)}}}T_(r)}function RQ(r){for(var a=0,u=r.templateSpans;a<u.length;a++){var f=u[a];go(f.type);var p=ea(f.type);vu(p,Lt,f.type)}ea(r)}function BQ(r){if(go(r.argument),r.assertions){var a=e.getResolutionModeOverrideForClause(r.assertions.assertClause,Fn);a&&(e.isNightly()||Fn(r.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.NodeNext&&Fn(r.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext))}ea(r)}function jQ(r){r.dotDotDotToken&&r.questionToken&&Fn(r,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===187&&Fn(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===188&&Fn(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),go(r.type),ea(r)}function Hb(r){return(e.hasEffectiveModifier(r,8)||e.isPrivateIdentifierClassElementDeclaration(r))&&!!(r.flags&16777216)}function yT(r,a){var u=e.getCombinedModifierFlags(r);return r.parent.kind!==261&&r.parent.kind!==260&&r.parent.kind!==228&&r.flags&16777216&&(!(u&2)&&!(e.isModuleBlock(r.parent)&&e.isModuleDeclaration(r.parent.parent)&&e.isGlobalScopeAugmentation(r.parent.parent))&&(u|=1),u|=2),u&a}function bT(r){ee(function(){return JQ(r)})}function JQ(r){function a(qt,yi){var Bi=yi!==void 0&&yi.parent===qt[0].parent;return Bi?yi:qt[0]}function u(qt,yi,Bi,ha,si){var qa=ha^si;if(qa!==0){var Ta=yT(a(qt,yi),Bi);e.forEach(qt,function(Qa){var Za=yT(Qa,Bi)^Ta;Za&1?nt(e.getNameOfDeclaration(Qa),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):Za&2?nt(e.getNameOfDeclaration(Qa),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):Za&24?nt(e.getNameOfDeclaration(Qa)||Qa,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):Za&256&&nt(e.getNameOfDeclaration(Qa),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function f(qt,yi,Bi,ha){if(Bi!==ha){var si=e.hasQuestionToken(a(qt,yi));e.forEach(qt,function(qa){var Ta=e.hasQuestionToken(qa)!==si;Ta&&nt(e.getNameOfDeclaration(qa),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var p=283,g=0,j=p,pe=!1,Se=!0,Be=!1,fr,sr,gr,_r=r.declarations,Kr=(r.flags&16384)!==0;function mt(qt){if(!(qt.name&&e.nodeIsMissing(qt.name))){var yi=!1,Bi=e.forEachChild(qt.parent,function(Za){if(yi)return Za;yi=Za===qt});if(Bi&&Bi.pos===qt.end&&Bi.kind===qt.kind){var ha=Bi.name||Bi,si=Bi.name;if(qt.name&&si&&(e.isPrivateIdentifier(qt.name)&&e.isPrivateIdentifier(si)&&qt.name.escapedText===si.escapedText||e.isComputedPropertyName(qt.name)&&e.isComputedPropertyName(si)||e.isPropertyNameLiteral(qt.name)&&e.isPropertyNameLiteral(si)&&e.getEscapedTextOfIdentifierOrLiteral(qt.name)===e.getEscapedTextOfIdentifierOrLiteral(si))){var qa=(qt.kind===171||qt.kind===170)&&e.isStatic(qt)!==e.isStatic(Bi);if(qa){var Ta=e.isStatic(qt)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;nt(ha,Ta)}return}if(e.nodeIsPresent(Bi.body)){nt(ha,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(qt.name));return}}var Qa=qt.name||qt;Kr?nt(Qa,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(qt,256)?nt(Qa,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):nt(Qa,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var Vt=!1,wt=!1,rn=!1,on=[];if(_r)for(var Un=0,Gn=_r;Un<Gn.length;Un++){var Ti=Gn[Un],li=Ti,Ja=li.flags&16777216,Ai=li.parent&&(li.parent.kind===261||li.parent.kind===184)||Ja;if(Ai&&(gr=void 0),(li.kind===260||li.kind===228)&&!Ja&&(rn=!0),li.kind===259||li.kind===171||li.kind===170||li.kind===173){on.push(li);var Ua=yT(li,p);g|=Ua,j&=Ua,pe=pe||e.hasQuestionToken(li),Se=Se&&e.hasQuestionToken(li);var Wa=e.nodeIsPresent(li.body);Wa&&fr?Kr?wt=!0:Vt=!0:(gr==null?void 0:gr.parent)===li.parent&&gr.end!==li.pos&&mt(gr),Wa?fr||(fr=li):Be=!0,gr=li,Ai||(sr=li)}}if(wt&&e.forEach(on,function(qt){nt(qt,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Vt&&e.forEach(on,function(qt){nt(e.getNameOfDeclaration(qt)||qt,e.Diagnostics.Duplicate_function_implementation)}),rn&&!Kr&&r.flags&16&&_r){var Ga=e.filter(_r,function(qt){return qt.kind===260}).map(function(qt){return e.createDiagnosticForNode(qt,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(_r,function(qt){var yi=qt.kind===260?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:qt.kind===259?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;yi&&e.addRelatedInfo.apply(void 0,t([nt(e.getNameOfDeclaration(qt)||qt,yi,e.symbolName(r))],Ga,!1))})}if(sr&&!sr.body&&!e.hasSyntacticModifier(sr,256)&&!sr.questionToken&&mt(sr),Be&&(_r&&(u(_r,fr,p,g,j),f(_r,fr,pe,Se)),fr))for(var Bo=eg(r),jo=of(fr),No=0,Ca=Bo;No<Ca.length;No++){var hn=Ca[No];if(!Oq(jo,hn)){e.addRelatedInfo(nt(hn.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(fr,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function P0(r){ee(function(){return UQ(r)})}function UQ(r){var a=r.localSymbol;if(!a&&(a=Zn(r),!a.exportSymbol)||e.getDeclarationOfKind(a,r.kind)!==r)return;for(var u=0,f=0,p=0,g=0,j=a.declarations;g<j.length;g++){var pe=j[g],Se=Vt(pe),Be=yT(pe,1025);Be&1?Be&1024?p|=Se:u|=Se:f|=Se}var fr=u|f,sr=u&f,gr=p&fr;if(sr||gr)for(var _r=0,Kr=a.declarations;_r<Kr.length;_r++){var pe=Kr[_r],Se=Vt(pe),mt=e.getNameOfDeclaration(pe);Se&gr?nt(mt,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(mt)):Se&sr&&nt(mt,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(mt))}function Vt(wt){var rn=wt;switch(rn.kind){case 261:case 262:case 348:case 341:case 342:return 2;case 264:return e.isAmbientModule(rn)||e.getModuleInstanceState(rn)!==0?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:var on=rn,Un=e.isExportAssignment(on)?on.expression:on.right;if(!e.isEntityNameExpression(Un))return 1;rn=Un;case 268:case 271:case 270:var Gn=0,Ti=gc(Zn(rn));return e.forEach(Ti.declarations,function(li){Gn|=Vt(li)}),Gn;case 257:case 205:case 259:case 273:case 79:return 1;default:return e.Debug.failBadSyntaxKind(rn)}}}function w0(r,a,u,f){var p=N0(r,a);return p&&$h(p,a,u,f)}function N0(r,a,u){if(!fa(r)){var f=r;if(f.promisedTypeOfPromise)return f.promisedTypeOfPromise;if(Tu(r,ub(!1)))return f.promisedTypeOfPromise=Go(r)[0];if(!zb(y_(r),262140)){var p=di(r,"then");if(!fa(p)){var g=p?La(p,0):e.emptyArray;if(g.length===0){a&&nt(a,e.Diagnostics.A_promise_must_have_a_then_method);return}for(var j,pe,Se=0,Be=g;Se<Be.length;Se++){var fr=Be[Se],sr=rg(fr);sr&&sr!==ii&&!Np(r,sr,In)?j=sr:pe=e.append(pe,fr)}if(!pe){e.Debug.assertIsDefined(j),u&&(u.value=j),a&&nt(a,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Hn(r),Hn(j));return}var gr=gl(zi(e.map(pe,lw)),2097152);if(!fa(gr)){var _r=La(gr,0);if(_r.length===0){a&&nt(a,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return f.promisedTypeOfPromise=zi(e.map(_r,lw),2)}}}}}function I0(r,a,u,f,p){var g=a?$h(r,u,f,p):Hd(r,u,f,p);return g||ar}function sM(r){if(zb(y_(r),262140))return!1;var a=di(r,"then");return!!a&&La(gl(a,2097152),0).length>0}function xw(r){var a;if(r.flags&16777216){var u=pA(!1);return!!u&&r.aliasSymbol===u&&((a=r.aliasTypeArguments)===null||a===void 0?void 0:a.length)===1}return!1}function t1(r){return r.flags&1048576?Ts(r,t1):xw(r)?r.aliasTypeArguments[0]:r}function cM(r){if(fa(r)||xw(r))return!1;if(ng(r)){var a=uu(r);if(a?a.flags&3||ld(a)||pd(a,sM):ks(r,8650752))return!0}return!1}function VQ(r){var a=pA(!0);if(a)return Jv(a,[t1(r)])}function zQ(r){if(cM(r)){var a=VQ(r);if(a)return a}return e.Debug.assert(N0(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function $h(r,a,u,f){var p=Hd(r,a,u,f);return p&&zQ(p)}function Hd(r,a,u,f){if(fa(r)||xw(r))return r;var p=r;if(p.awaitedTypeOfType)return p.awaitedTypeOfType;if(r.flags&1048576){if(Qs.lastIndexOf(r.id)>=0){a&&nt(a,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}var g=a?function(sr){return Hd(sr,a,u,f)}:Hd;Qs.push(r.id);var j=Ts(r,g);return Qs.pop(),p.awaitedTypeOfType=j}if(cM(r))return p.awaitedTypeOfType=r;var pe={value:void 0},Se=N0(r,void 0,pe);if(Se){if(r.id===Se.id||Qs.lastIndexOf(Se.id)>=0){a&&nt(a,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Qs.push(r.id);var Be=Hd(Se,a,u,f);return Qs.pop(),Be?p.awaitedTypeOfType=Be:void 0}if(sM(r)){if(a){e.Debug.assertIsDefined(u);var fr=void 0;pe.value&&(fr=e.chainDiagnosticMessages(fr,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Hn(r),Hn(pe.value))),fr=e.chainDiagnosticMessages(fr,u,f),ya.add(e.createDiagnosticForNodeFromMessageChain(a,fr))}return}return p.awaitedTypeOfType=r}function WQ(r,a){var u=ea(a);if(Ae>=2){if(pa(u))return;var f=ub(!0);if(f!==_a&&!Tu(u,f)){nt(a,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Hn(Hd(u)||ii));return}}else{if($Q(a),pa(u))return;var p=e.getEntityNameFromTypeNode(a);if(p===void 0){nt(a,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Hn(u));return}var g=ns(p,111551,!0),j=g?_n(g):ar;if(pa(j)){p.kind===79&&p.escapedText==="Promise"&&Rd(u)===ub(!1)?nt(a,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):nt(a,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(p));return}var pe=Kz(!0);if(pe===fn){nt(a,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(p));return}if(!vu(j,pe,a,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var Se=p&&e.getFirstIdentifier(p),Be=Nu(r.locals,Se.escapedText,111551);if(Be){nt(Be.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(Se),e.entityNameToString(p));return}}I0(u,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function qQ(r){var a=ey(r);dT(a,r);var u=Ho(a);if(!(u.flags&1)){var f,p;switch(r.parent.kind){case 260:f=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var g=Zn(r.parent),j=_n(g);p=zi([j,ii]);break;case 169:case 166:f=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,p=ii;break;case 171:case 174:case 175:f=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var pe=Hh(r.parent),Se=EO(pe);p=zi([Se,ii]);break;default:return e.Debug.fail()}vu(u,p,r,f)}}function $Q(r){uM(r&&e.getEntityNameFromTypeNode(r),!1)}function uM(r,a){if(r){var u=e.getFirstIdentifier(r),f=(r.kind===79?788968:1920)|2097152,p=Ls(u,u.escapedText,f,void 0,void 0,!0);if(p&&p.flags&2097152){if(Sp(p)&&!F0(gc(p))&&!ba(p))bl(p);else if(a&&Ce.isolatedModules&&e.getEmitModuleKind(Ce)>=e.ModuleKind.ES2015&&!Sp(p)&&!e.some(p.declarations,e.isTypeOnlyImportOrExportDeclaration)){var g=nt(r,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),j=e.find(p.declarations||e.emptyArray,xd);j&&e.addRelatedInfo(g,e.createDiagnosticForNode(j,e.Diagnostics._0_was_imported_here,e.idText(u)))}}}}function n1(r){var a=Tw(r);a&&e.isEntityName(a)&&uM(a,!0)}function Tw(r){if(r)switch(r.kind){case 190:case 189:return lM(r.types);case 191:return lM([r.trueType,r.falseType]);case 193:case 199:return Tw(r.type);case 180:return r.typeName}}function lM(r){for(var a,u=0,f=r;u<f.length;u++){for(var p=f[u];p.kind===193||p.kind===199;)p=p.type;if(p.kind!==144&&!(!ue&&(p.kind===198&&p.literal.kind===104||p.kind===155))){var g=Tw(p);if(!g)return;if(a){if(!e.isIdentifier(a)||!e.isIdentifier(g)||a.escapedText!==g.escapedText)return}else a=g}}return a}function ST(r){var a=e.getEffectiveTypeAnnotationNode(r);return e.isRestParameter(r)?e.getRestParameterElementType(a):a}function Gb(r){if(!(!e.canHaveDecorators(r)||!e.hasDecorators(r)||!r.modifiers||!e.nodeCanBeDecorated(r,r.parent,r.parent.parent))){Ce.experimentalDecorators||nt(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var a=e.find(r.modifiers,e.isDecorator);if(a){if(Zc(a,8),r.kind===166&&Zc(a,32),Ce.emitDecoratorMetadata)switch(Zc(a,16),r.kind){case 260:var u=e.getFirstConstructorWithBody(r);if(u)for(var f=0,p=u.parameters;f<p.length;f++){var g=p[f];n1(ST(g))}break;case 174:case 175:var j=r.kind===174?175:174,pe=e.getDeclarationOfKind(Zn(r),j);n1(ss(r)||pe&&ss(pe));break;case 171:for(var Se=0,Be=r.parameters;Se<Be.length;Se++){var g=Be[Se];n1(ST(g))}n1(e.getEffectiveReturnTypeNode(r));break;case 169:n1(e.getEffectiveTypeAnnotationNode(r));break;case 166:n1(ST(r));for(var fr=r.parent,sr=0,gr=fr.parameters;sr<gr.length;sr++){var g=gr[sr];n1(ST(g))}break}for(var _r=0,Kr=r.modifiers;_r<Kr.length;_r++){var mt=Kr[_r];e.isDecorator(mt)&&qQ(mt)}}}}function HQ(r){ee(a);function a(){pM(r),Gw(r),i1(r,r.name)}}function GQ(r){r.typeExpression||nt(r.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&a1(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),go(r.typeExpression),Zb(e.getEffectiveTypeParameterDeclarations(r))}function KQ(r){go(r.constraint);for(var a=0,u=r.typeParameters;a<u.length;a++){var f=u[a];go(f)}}function QQ(r){go(r.typeExpression)}function XQ(r){r.name&&rS(r.name,!0)}function YQ(r){go(r.typeExpression)}function ZQ(r){go(r.typeExpression)}function eX(r){ee(a),A0(r);function a(){!r.type&&!e.isJSDocConstructSignature(r)&&ug(r,Ie)}}function rX(r){var a=e.getEffectiveJSDocHost(r);(!a||!e.isClassDeclaration(a)&&!e.isClassExpression(a))&&nt(a,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName))}function tX(r){var a=e.getEffectiveJSDocHost(r);if(!a||!e.isClassDeclaration(a)&&!e.isClassExpression(a)){nt(a,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName));return}var u=e.getJSDocTags(a).filter(e.isJSDocAugmentsTag);e.Debug.assert(u.length>0),u.length>1&&nt(u[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var f=fM(r.class.expression),p=e.getClassExtendsHeritageElement(a);if(p){var g=fM(p.expression);g&&f.escapedText!==g.escapedText&&nt(f,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(r.tagName),e.idText(f),e.idText(g))}}function nX(r){var a=e.getJSDocHost(r);a&&e.isPrivateIdentifierClassElementDeclaration(a)&&nt(r,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function fM(r){switch(r.kind){case 79:return r;case 208:return r.name;default:return}}function pM(r){var a;Gb(r),A0(r);var u=e.getFunctionFlags(r);if(r.name&&r.name.kind===164&&$d(r.name),Wf(r)){var f=Zn(r),p=r.localSymbol||f,g=(a=p.declarations)===null||a===void 0?void 0:a.find(function(Be){return Be.kind===r.kind&&!(Be.flags&262144)});r===g&&bT(p),f.parent&&bT(f)}var j=r.kind===170?void 0:r.body;if(go(j),pw(r,Bv(r)),ee(Se),e.isInJSFile(r)){var pe=e.getJSDocTypeTag(r);pe&&pe.typeExpression&&!FP(ea(pe.typeExpression),r)&&nt(pe.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function Se(){e.getEffectiveReturnTypeNode(r)||(e.nodeIsMissing(j)&&!Hb(r)&&ug(r,Ie),u&1&&e.nodeIsPresent(j)&&Ho(of(r)))}}function T_(r){ee(a);function a(){var u=e.getSourceFileOfNode(r),f=yc.get(u.path);f||(f=[],yc.set(u.path,f)),f.push(r)}}function dM(r,a){for(var u=0,f=r;u<f.length;u++){var p=f[u];switch(p.kind){case 260:case 228:iX(p,a),Ew(p,a);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:gM(p,a);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:p.body&&gM(p,a),Ew(p,a);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:Ew(p,a);break;case 192:aX(p,a);break;default:e.Debug.assertNever(p,"Node should not have been registered for unused identifiers check")}}}function _M(r,a,u){var f=e.getNameOfDeclaration(r)||r,p=e.isTypeDeclaration(r)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;u(r,0,e.createDiagnosticForNode(f,p,a))}function Kb(r){return e.isIdentifier(r)&&e.idText(r).charCodeAt(0)===95}function iX(r,a){for(var u=0,f=r.members;u<f.length;u++){var p=f[u];switch(p.kind){case 171:case 169:case 174:case 175:if(p.kind===175&&p.symbol.flags&32768)break;var g=Zn(p);!g.isReferenced&&(e.hasEffectiveModifier(p,8)||e.isNamedDeclaration(p)&&e.isPrivateIdentifier(p.name))&&!(p.flags&16777216)&&a(p,0,e.createDiagnosticForNode(p.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,na(g)));break;case 173:for(var j=0,pe=p.parameters;j<pe.length;j++){var Se=pe[j];!Se.symbol.isReferenced&&e.hasSyntacticModifier(Se,8)&&a(Se,0,e.createDiagnosticForNode(Se.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(Se.symbol)))}break;case 178:case 237:case 172:break;default:e.Debug.fail("Unexpected class member")}}}function aX(r,a){var u=r.typeParameter;Cw(u)&&a(r,1,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(u.name)))}function Ew(r,a){var u=Zn(r).declarations;if(!(!u||e.last(u)!==r))for(var f=e.getEffectiveTypeParameterDeclarations(r),p=new e.Set,g=0,j=f;g<j.length;g++){var pe=j[g];if(Cw(pe)){var Se=e.idText(pe.name),Be=pe.parent;if(Be.kind!==192&&Be.typeParameters.every(Cw)){if(e.tryAddToSet(p,Be)){var fr=e.getSourceFileOfNode(Be),sr=e.isJSDocTemplateTag(Be)?e.rangeOfNode(Be):e.rangeOfTypeParameters(fr,Be.typeParameters),gr=Be.typeParameters.length===1,_r=gr?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Kr=gr?Se:void 0;a(pe,1,e.createFileDiagnostic(fr,sr.pos,sr.end-sr.pos,_r,Kr))}}else a(pe,1,e.createDiagnosticForNode(pe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Se))}}}function Cw(r){return!(mo(r.symbol).isReferenced&262144)&&!Kb(r.name)}function Qb(r,a,u,f){var p=String(f(a)),g=r.get(p);g?g[1].push(u):r.set(p,[a,[u]])}function mM(r){return e.tryCast(e.getRootDeclaration(r),e.isParameter)}function oX(r){return e.isBindingElement(r)?e.isObjectBindingPattern(r.parent)?!!(r.propertyName&&Kb(r.name)):Kb(r.name):e.isAmbientModule(r)||(e.isVariableDeclaration(r)&&e.isForInOrOfStatement(r.parent.parent)||hM(r))&&Kb(r.name)}function gM(r,a){var u=new e.Map,f=new e.Map,p=new e.Map;r.locals.forEach(function(g){if(!(g.flags&262144?!(g.flags&3&&!(g.isReferenced&3)):g.isReferenced||g.exportSymbol)&&g.declarations)for(var j=0,pe=g.declarations;j<pe.length;j++){var Se=pe[j];if(!oX(Se))if(hM(Se))Qb(u,cX(Se),Se,_e);else if(e.isBindingElement(Se)&&e.isObjectBindingPattern(Se.parent)){var Be=e.last(Se.parent.elements);(Se===Be||!e.last(Se.parent.elements).dotDotDotToken)&&Qb(f,Se.parent,Se,_e)}else if(e.isVariableDeclaration(Se))Qb(p,Se.parent,Se,_e);else{var fr=g.valueDeclaration&&mM(g.valueDeclaration),sr=g.valueDeclaration&&e.getNameOfDeclaration(g.valueDeclaration);fr&&sr?!e.isParameterPropertyDeclaration(fr,fr.parent)&&!e.parameterIsThisKeyword(fr)&&!Kb(sr)&&(e.isBindingElement(Se)&&e.isArrayBindingPattern(Se.parent)?Qb(f,Se.parent,Se,_e):a(fr,1,e.createDiagnosticForNode(sr,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(g)))):_M(Se,e.symbolName(g),a)}}}),u.forEach(function(g){var j=g[0],pe=g[1],Se=j.parent,Be=(j.name?1:0)+(j.namedBindings?j.namedBindings.kind===271?1:j.namedBindings.elements.length:0);if(Be===pe.length)a(Se,0,pe.length===1?e.createDiagnosticForNode(Se,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(pe).name)):e.createDiagnosticForNode(Se,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var fr=0,sr=pe;fr<sr.length;fr++){var gr=sr[fr];_M(gr,e.idText(gr.name),a)}}),f.forEach(function(g){var j=g[0],pe=g[1],Se=mM(j.parent)?1:0;if(j.elements.length===pe.length)pe.length===1&&j.parent.kind===257&&j.parent.parent.kind===258?Qb(p,j.parent.parent,j.parent,_e):a(j,Se,pe.length===1?e.createDiagnosticForNode(j,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Xb(e.first(pe).name)):e.createDiagnosticForNode(j,e.Diagnostics.All_destructured_elements_are_unused));else for(var Be=0,fr=pe;Be<fr.length;Be++){var sr=fr[Be];a(sr,Se,e.createDiagnosticForNode(sr,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Xb(sr.name)))}}),p.forEach(function(g){var j=g[0],pe=g[1];if(j.declarations.length===pe.length)a(j,0,pe.length===1?e.createDiagnosticForNode(e.first(pe).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Xb(e.first(pe).name)):e.createDiagnosticForNode(j.parent.kind===240?j.parent:j,e.Diagnostics.All_variables_are_unused));else for(var Se=0,Be=pe;Se<Be.length;Se++){var fr=Be[Se];a(fr,0,e.createDiagnosticForNode(fr,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Xb(fr.name)))}})}function sX(){for(var r,a=0,u=Uo;a<u.length;a++){var f=u[a];if(!(!((r=Zn(f))===null||r===void 0)&&r.isReferenced)){var p=e.walkUpBindingElementsAndPatterns(f);e.Debug.assert(e.isParameterDeclaration(p),"Only parameter declaration should be checked here");var g=e.createDiagnosticForNode(f.name,e.Diagnostics._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,e.declarationNameToString(f.name),e.declarationNameToString(f.propertyName));p.type||e.addRelatedInfo(g,e.createFileDiagnostic(e.getSourceFileOfNode(p),p.end,1,e.Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,e.declarationNameToString(f.propertyName))),ya.add(g)}}}function Xb(r){switch(r.kind){case 79:return e.idText(r);case 204:case 203:return Xb(e.cast(e.first(r.elements),e.isBindingElement).name);default:return e.Debug.assertNever(r)}}function hM(r){return r.kind===270||r.kind===273||r.kind===271}function cX(r){return r.kind===270?r:r.kind===271?r.parent:r.parent.parent}function DT(r){if(r.kind===238&&_d(r),e.isFunctionOrModuleBlock(r)){var a=_u;e.forEach(r.statements,go),_u=a}else e.forEach(r.statements,go);r.locals&&T_(r)}function uX(r){Ae>=2||!e.hasRestParameter(r)||r.flags&16777216||e.nodeIsMissing(r.body)||e.forEach(r.parameters,function(a){a.name&&!e.isBindingPattern(a.name)&&a.name.escapedText===_t.escapedName&&pc("noEmit",a,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function O0(r,a,u){if((a==null?void 0:a.escapedText)!==u||r.kind===169||r.kind===168||r.kind===171||r.kind===170||r.kind===174||r.kind===175||r.kind===299||r.flags&16777216||(e.isImportClause(r)||e.isImportEqualsDeclaration(r)||e.isImportSpecifier(r))&&e.isTypeOnlyImportOrExportDeclaration(r))return!1;var f=e.getRootDeclaration(r);return!(e.isParameter(f)&&e.nodeIsMissing(f.parent.body))}function lX(r){e.findAncestor(r,function(a){if(ay(a)&4){var u=r.kind!==79;return u?nt(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):nt(r,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function fX(r){e.findAncestor(r,function(a){if(ay(a)&8){var u=r.kind!==79;return u?nt(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):nt(r,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function pX(r,a){if(!(qe>=e.ModuleKind.ES2015&&!(qe>=e.ModuleKind.Node16&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS))&&!(!a||!O0(r,a,"require")&&!O0(r,a,"exports"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var u=Ii(r);u.kind===308&&e.isExternalOrCommonJsModule(u)&&pc("noEmit",a,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(a),e.declarationNameToString(a))}}function dX(r,a){if(!(!a||Ae>=4||!O0(r,a,"Promise"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var u=Ii(r);u.kind===308&&e.isExternalOrCommonJsModule(u)&&u.flags&2048&&pc("noEmit",a,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(a),e.declarationNameToString(a))}}function _X(r,a){Ae<=8&&(O0(r,a,"WeakMap")||O0(r,a,"WeakSet"))&&da.push(r)}function mX(r){var a=e.getEnclosingBlockScopeContainer(r);ay(a)&67108864&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),pc("noEmit",r,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function gX(r,a){a&&Ae>=2&&Ae<=8&&O0(r,a,"Reflect")&&Po.push(r)}function hX(r){var a=!1;if(e.isClassExpression(r))for(var u=0,f=r.members;u<f.length;u++){var p=f[u];if(ay(p)&134217728){a=!0;break}}else if(e.isFunctionExpression(r))ay(r)&134217728&&(a=!0);else{var g=e.getEnclosingBlockScopeContainer(r);g&&ay(g)&134217728&&(a=!0)}a&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name),"The target of a Reflect collision check should be an identifier"),pc("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(r.name),"Reflect"))}function i1(r,a){a&&(pX(r,a),dX(r,a),_X(r,a),gX(r,a),e.isClassLike(r)?(a1(a,e.Diagnostics.Class_name_cannot_be_0),r.flags&16777216||qX(a)):e.isEnumDeclaration(r)&&a1(a,e.Diagnostics.Enum_name_cannot_be_0))}function vX(r){if(!(e.getCombinedNodeFlags(r)&3||e.isParameterDeclaration(r))&&!(r.kind===257&&!r.initializer)){var a=Zn(r);if(a.flags&1){if(!e.isIdentifier(r.name))return e.Debug.fail();var u=Ls(r,r.name.escapedText,3,void 0,void 0,!1);if(u&&u!==a&&u.flags&2&&tT(u)&3){var f=e.getAncestor(u.valueDeclaration,258),p=f.parent.kind===240&&f.parent.parent?f.parent.parent:void 0,g=p&&(p.kind===238&&e.isFunctionLike(p.parent)||p.kind===265||p.kind===264||p.kind===308);if(!g){var j=na(u);nt(r,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,j,j)}}}}}function M0(r){return r===We?Ie:r===ds?Wo:r}function xT(r){var a;if(Gb(r),e.isBindingElement(r)||go(r.type),!!r.name){if(r.name.kind===164&&($d(r.name),e.hasOnlyExpressionInitializer(r)&&r.initializer&&Gs(r.initializer)),e.isBindingElement(r)){if(r.propertyName&&e.isIdentifier(r.name)&&e.isParameterDeclaration(r)&&e.nodeIsMissing(e.getContainingFunction(r).body)){Uo.push(r);return}e.isObjectBindingPattern(r.parent)&&r.dotDotDotToken&&Ae<5&&Zc(r,4),r.propertyName&&r.propertyName.kind===164&&$d(r.propertyName);var u=r.parent.parent,f=r.dotDotDotToken?64:0,p=jc(u,f),g=r.propertyName||r.name;if(p&&!e.isBindingPattern(g)){var j=D_(g);if(Kc(j)){var pe=Jl(j),Se=Fa(p,pe);Se&&(Fb(Se,void 0,!1),qP(r,!!u.initializer&&u.initializer.kind===106,!1,p,Se))}}}if(e.isBindingPattern(r.name)&&(r.name.kind===204&&Ae<2&&Ce.downlevelIteration&&Zc(r,512),e.forEach(r.name.elements,go)),e.isParameter(r)&&r.initializer&&e.nodeIsMissing(e.getContainingFunction(r).body)){nt(r,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(r.name)){var Be=e.hasOnlyExpressionInitializer(r)&&r.initializer&&r.parent.parent.kind!==246,fr=!e.some(r.name.elements,e.not(e.isOmittedExpression));if(Be||fr){var sr=ci(r);if(Be){var gr=Gs(r.initializer);ue&&fr?W5(gr,r):x_(gr,ci(r),r,r.initializer)}fr&&(e.isArrayBindingPattern(r.name)?E_(65,sr,Ar,r):ue&&W5(sr,r))}return}var _r=Zn(r);if(_r.flags&2097152&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r.kind===205?r.parent.parent:r)){AT(r);return}var Kr=M0(_n(_r));if(r===_r.valueDeclaration){var mt=e.hasOnlyExpressionInitializer(r)&&e.getEffectiveInitializer(r);if(mt){var Vt=e.isInJSFile(r)&&e.isObjectLiteralExpression(mt)&&(mt.properties.length===0||e.isPrototypeAccess(r.name))&&!!(!((a=_r.exports)===null||a===void 0)&&a.size);!Vt&&r.parent.parent.kind!==246&&x_(Gs(mt),Kr,r,mt,void 0)}_r.declarations&&_r.declarations.length>1&&e.some(_r.declarations,function(rn){return rn!==r&&e.isVariableLike(rn)&&!yM(rn,r)})&&nt(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}else{var wt=M0(ci(r));!pa(Kr)&&!pa(wt)&&!ud(Kr,wt)&&!(_r.flags&67108864)&&vM(_r.valueDeclaration,Kr,r,wt),e.hasOnlyExpressionInitializer(r)&&r.initializer&&x_(Gs(r.initializer),wt,r,r.initializer,void 0),_r.valueDeclaration&&!yM(r,_r.valueDeclaration)&&nt(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}r.kind!==169&&r.kind!==168&&(P0(r),(r.kind===257||r.kind===205)&&vX(r),i1(r,r.name))}}function vM(r,a,u,f){var p=e.getNameOfDeclaration(u),g=u.kind===169||u.kind===168?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,j=e.declarationNameToString(p),pe=nt(p,g,j,Hn(a),Hn(f));r&&e.addRelatedInfo(pe,e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,j))}function yM(r,a){if(r.kind===166&&a.kind===257||r.kind===257&&a.kind===166)return!0;if(e.hasQuestionToken(r)!==e.hasQuestionToken(a))return!1;var u=888;return e.getSelectedEffectiveModifierFlags(r,u)===e.getSelectedEffectiveModifierFlags(a,u)}function kw(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),XZ(r),xT(r),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function yX(r){return GZ(r),xT(r)}function bX(r){!dd(r)&&!Xw(r.declarationList)&&YZ(r),e.forEach(r.declarationList.declarations,go)}function SX(r){_d(r),Ra(r.expression)}function DX(r){_d(r);var a=ny(r.expression);Aw(r.expression,a,r.thenStatement),go(r.thenStatement),r.thenStatement.kind===239&&nt(r.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),go(r.elseStatement)}function Aw(r,a,u){if(!ue)return;for(f(r,u);e.isBinaryExpression(r)&&r.operatorToken.kind===56;)r=r.left,f(r,u);function f(p,g){var j=e.isBinaryExpression(p)&&(p.operatorToken.kind===56||p.operatorToken.kind===55)?p.right:p;if(!e.isModuleExportsAccessExpression(j)){var pe=j===p?a:ny(j),Se=e.isPropertyAccessExpression(j)&&q7(j.expression);if(!(!(Yc(pe)&4194304)||Se)){var Be=La(pe,0),fr=!!w0(pe);if(!(Be.length===0&&!fr)){var sr=e.isIdentifier(j)?j:e.isPropertyAccessExpression(j)?j.name:e.isBinaryExpression(j)&&e.isIdentifier(j.right)?j.right:void 0,gr=sr&&ql(sr);if(!(!gr&&!fr)){var _r=gr&&e.isBinaryExpression(p.parent)&&TX(p.parent,gr)||gr&&g&&xX(p,g,sr,gr);_r||(fr?_f(j,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,m_(pe)):nt(j,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}}function xX(r,a,u,f){return!!e.forEachChild(a,function p(g){if(e.isIdentifier(g)){var j=ql(g);if(j&&j===f){if(e.isIdentifier(r)||e.isIdentifier(u)&&e.isBinaryExpression(u.parent))return!0;for(var pe=u.parent,Se=g.parent;pe&&Se;){if(e.isIdentifier(pe)&&e.isIdentifier(Se)||pe.kind===108&&Se.kind===108)return ql(pe)===ql(Se);if(e.isPropertyAccessExpression(pe)&&e.isPropertyAccessExpression(Se)){if(ql(pe.name)!==ql(Se.name))return!1;Se=Se.expression,pe=pe.expression}else if(e.isCallExpression(pe)&&e.isCallExpression(Se))Se=Se.expression,pe=pe.expression;else return!1}}}return e.forEachChild(g,p)})}function TX(r,a){for(;e.isBinaryExpression(r)&&r.operatorToken.kind===55;){var u=e.forEachChild(r.right,function f(p){if(e.isIdentifier(p)){var g=ql(p);if(g&&g===a)return!0}return e.forEachChild(p,f)});if(u)return!0;r=r.parent}return!1}function EX(r){_d(r),go(r.statement),ny(r.expression)}function CX(r){_d(r),ny(r.expression),go(r.statement)}function bM(r,a){return r.flags&16384&&nt(a,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function ny(r,a){return bM(Ra(r,a),r)}function kX(r){_d(r)||r.initializer&&r.initializer.kind===258&&Xw(r.initializer),r.initializer&&(r.initializer.kind===258?e.forEach(r.initializer.declarations,kw):Ra(r.initializer)),r.condition&&ny(r.condition),r.incrementor&&Ra(r.incrementor),go(r.statement),r.locals&&T_(r)}function AX(r){mF(r);var a=e.getContainingFunctionOrClassStaticBlock(r);if(r.awaitModifier)if(a&&e.isClassStaticBlockDeclaration(a))Fn(r.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var u=e.getFunctionFlags(a);(u&6)===2&&Ae<99&&Zc(r,16384)}else Ce.downlevelIteration&&Ae<2&&Zc(r,256);if(r.initializer.kind===258)SM(r);else{var f=r.initializer,p=Yb(r);if(f.kind===206||f.kind===207)nh(f,p||ar);else{var g=Ra(f);k0(f,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),p&&x_(p,g,f,r.expression)}}go(r.statement),r.locals&&T_(r)}function PX(r){mF(r);var a=$P(Ra(r.expression));if(r.initializer.kind===258){var u=r.initializer.declarations[0];u&&e.isBindingPattern(u.name)&&nt(u.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),SM(r)}else{var f=r.initializer,p=Ra(f);f.kind===206||f.kind===207?nt(f,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):So(FW(a),p)?k0(f,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):nt(f,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Xe||!mc(a,126091264))&&nt(r.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Hn(a)),go(r.statement),r.locals&&T_(r)}function SM(r){var a=r.initializer;if(a.declarations.length>=1){var u=a.declarations[0];kw(u)}}function Yb(r){var a=r.awaitModifier?15:13;return E_(a,Xy(r.expression),Ar,r.expression)}function E_(r,a,u,f){return fa(a)?a:Pw(r,a,u,f,!0)||Ie}function Pw(r,a,u,f,p){var g=(r&2)!==0;if(a===Xe){Ow(f,a,g);return}var j=Ae>=2,pe=!j&&Ce.downlevelIteration,Se=Ce.noUncheckedIndexedAccess&&!!(r&128);if(j||pe||g){var Be=ET(a,r,j?f:void 0);if(p&&Be){var fr=r&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;fr&&vu(u,Be.nextType,f,fr)}if(Be||j)return Se?v0(Be&&Be.yieldType):Be&&Be.yieldType}var sr=a,gr=!1,_r=!1;if(r&4){if(sr.flags&1048576){var Kr=a.types,mt=e.filter(Kr,function(Ti){return!(Ti.flags&402653316)});mt!==Kr&&(sr=zi(mt,2))}else sr.flags&402653316&&(sr=Xe);if(_r=sr!==a,_r&&(Ae<1&&f&&(nt(f,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),gr=!0),sr.flags&131072))return Se?v0(Ft):Ft}if(!xm(sr)){if(f&&!gr){var Vt=!!(r&4)&&!_r,wt=Gn(Vt,pe),rn=wt[0],on=wt[1];_f(f,on&&!!w0(sr),rn,Hn(sr))}return _r?Se?v0(Ft):Ft:void 0}var Un=$f(sr,ht);if(_r&&Un)return Un.flags&402653316&&!Ce.noUncheckedIndexedAccess?Ft:zi(Se?[Un,Ft,Ar]:[Un,Ft],2);return r&128?v0(Un):Un;function Gn(Ti,li){var Ja;if(li)return Ti?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var Ai=DM(r,0,a,void 0);return Ai?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:wX((Ja=a.symbol)===null||Ja===void 0?void 0:Ja.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ti?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function wX(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function DM(r,a,u,f){if(!fa(u)){var p=ET(u,r,f);return p&&p[q(a)]}}function Gd(r,a,u){if(r===void 0&&(r=Xe),a===void 0&&(a=Xe),u===void 0&&(u=ur),r.flags&67359327&&a.flags&180227&&u.flags&180227){var f=Cl([r,a,u]),p=kr.get(f);return p||(p={yieldType:r,returnType:a,nextType:u},kr.set(f,p)),p}return{yieldType:r,returnType:a,nextType:u}}function xM(r){for(var a,u,f,p=0,g=r;p<g.length;p++){var j=g[p];if(!(j===void 0||j===jr)){if(j===Nn)return Nn;a=e.append(a,j.yieldType),u=e.append(u,j.returnType),f=e.append(f,j.nextType)}}return a||u||f?Gd(a&&zi(a),u&&zi(u),f&&ho(f)):jr}function TT(r,a){return r[a]}function Op(r,a,u){return r[a]=u}function ET(r,a,u){var f,p;if(fa(r))return Nn;if(!(r.flags&1048576)){var g=u?{errors:void 0}:void 0,j=TM(r,a,u,g);if(j===jr){if(u){var pe=Ow(u,r,!!(a&2));g!=null&&g.errors&&e.addRelatedInfo.apply(void 0,t([pe],g.errors,!1))}return}else if(!((f=g==null?void 0:g.errors)===null||f===void 0)&&f.length)for(var Se=0,Be=g.errors;Se<Be.length;Se++){var fr=Be[Se];ya.add(fr)}return j}var sr=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",gr=TT(r,sr);if(gr)return gr===jr?void 0:gr;for(var _r,Kr=0,mt=r.types;Kr<mt.length;Kr++){var Vt=mt[Kr],g=u?{errors:void 0}:void 0,wt=TM(Vt,a,u,g);if(wt===jr){if(u){var pe=Ow(u,r,!!(a&2));g!=null&&g.errors&&e.addRelatedInfo.apply(void 0,t([pe],g.errors,!1))}Op(r,sr,jr);return}else if(!((p=g==null?void 0:g.errors)===null||p===void 0)&&p.length)for(var rn=0,on=g.errors;rn<on.length;rn++){var fr=on[rn];ya.add(fr)}_r=e.append(_r,wt)}var Un=_r?xM(_r):jr;return Op(r,sr,Un),Un===jr?void 0:Un}function ww(r,a){if(r===jr)return jr;if(r===Nn)return Nn;var u=r.yieldType,f=r.returnType,p=r.nextType;return a&&pA(!0),Gd($h(u,a)||Ie,$h(f,a)||Ie,p)}function TM(r,a,u,f){if(fa(r))return Nn;var p=!1;if(a&2){var g=Nw(r,ro)||CM(r,ro);if(g)if(g===jr&&u)p=!0;else return a&8?ww(g,u):g}if(a&1){var g=Nw(r,Ye)||CM(r,Ye);if(g)if(g===jr&&u)p=!0;else if(a&2){if(g!==jr)return g=ww(g,u),p?g:Op(r,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){var g=Iw(r,ro,u,f,p);if(g!==jr)return g}if(a&1){var g=Iw(r,Ye,u,f,p);if(g!==jr)return a&2?(g=ww(g,u),p?g:Op(r,"iterationTypesOfAsyncIterable",g)):g}return jr}function Nw(r,a){return TT(r,a.iterableCacheKey)}function EM(r,a){var u=Nw(r,a)||Iw(r,a,void 0,void 0,!1);return u===jr?ka:u}function CM(r,a){var u;if(Tu(r,u=a.getGlobalIterableType(!1))||Tu(r,u=a.getGlobalIterableIteratorType(!1))){var f=Go(r)[0],p=EM(u,a),g=p.returnType,j=p.nextType;return Op(r,a.iterableCacheKey,Gd(a.resolveIterationType(f,void 0)||f,a.resolveIterationType(g,void 0)||g,j))}if(Tu(r,a.getGlobalGeneratorType(!1))){var pe=Go(r),f=pe[0],g=pe[1],j=pe[2];return Op(r,a.iterableCacheKey,Gd(a.resolveIterationType(f,void 0)||f,a.resolveIterationType(g,void 0)||g,j))}}function NX(r){var a=bO(!1),u=a&&di(_n(a),e.escapeLeadingUnderscores(r));return u&&Kc(u)?Jl(u):"__@".concat(r)}function Iw(r,a,u,f,p){var g,j=Fa(r,NX(a.iteratorSymbolName)),pe=j&&!(j.flags&16777216)?_n(j):void 0;if(fa(pe))return p?Nn:Op(r,a.iterableCacheKey,Nn);var Se=pe?La(pe,0):void 0;if(!e.some(Se))return p?jr:Op(r,a.iterableCacheKey,jr);var Be=ho(e.map(Se,Ho)),fr=(g=kM(Be,a,u,f,p))!==null&&g!==void 0?g:jr;return p?fr:Op(r,a.iterableCacheKey,fr)}function Ow(r,a,u){var f=u?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,p=!!w0(a)||!u&&e.isForOfStatement(r.parent)&&r.parent.expression===r&&px(!1)!==_a&&So(a,px(!1));return _f(r,p,f,Hn(a))}function IX(r,a,u,f){return kM(r,a,u,f,!1)}function kM(r,a,u,f,p){if(fa(r))return Nn;var g=AM(r,a)||OX(r,a);return g===jr&&u&&(g=void 0,p=!0),g??(g=wM(r,a,u,f,p)),g===jr?void 0:g}function AM(r,a){return TT(r,a.iteratorCacheKey)}function OX(r,a){var u=a.getGlobalIterableIteratorType(!1);if(Tu(r,u)){var f=Go(r)[0],p=AM(u,a)||wM(u,a,void 0,void 0,!1),g=p===jr?ka:p,j=g.returnType,pe=g.nextType;return Op(r,a.iteratorCacheKey,Gd(f,j,pe))}if(Tu(r,a.getGlobalIteratorType(!1))||Tu(r,a.getGlobalGeneratorType(!1))){var Se=Go(r),f=Se[0],j=Se[1],pe=Se[2];return Op(r,a.iteratorCacheKey,Gd(f,j,pe))}}function PM(r,a){var u=di(r,"done")||un;return So(a===0?un:Bn,u)}function MX(r){return PM(r,0)}function FX(r){return PM(r,1)}function LX(r){if(fa(r))return Nn;var a=TT(r,"iterationTypesOfIteratorResult");if(a)return a;if(Tu(r,tW(!1))){var u=Go(r)[0];return Op(r,"iterationTypesOfIteratorResult",Gd(u,void 0,void 0))}if(Tu(r,nW(!1))){var f=Go(r)[0];return Op(r,"iterationTypesOfIteratorResult",Gd(void 0,f,void 0))}var p=Nc(r,MX),g=p!==Xe?di(p,"value"):void 0,j=Nc(r,FX),pe=j!==Xe?di(j,"value"):void 0;return!g&&!pe?Op(r,"iterationTypesOfIteratorResult",jr):Op(r,"iterationTypesOfIteratorResult",Gd(g,pe||ii,void 0))}function Mw(r,a,u,f,p){var g,j,pe,Se,Be,fr,sr=Fa(r,u);if(!(!sr&&u!=="next")){var gr=sr&&!(u==="next"&&sr.flags&16777216)?u==="next"?_n(sr):gl(_n(sr),2097152):void 0;if(fa(gr))return u==="next"?Nn:xi;var _r=gr?La(gr,0):e.emptyArray;if(_r.length===0){if(f){var Kr=u==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;p?((g=p.errors)!==null&&g!==void 0||(p.errors=[]),p.errors.push(e.createDiagnosticForNode(f,Kr,u))):nt(f,Kr,u)}return u==="next"?jr:void 0}if(gr!=null&&gr.symbol&&_r.length===1){var mt=a.getGlobalGeneratorType(!1),Vt=a.getGlobalIteratorType(!1),wt=((pe=(j=mt.symbol)===null||j===void 0?void 0:j.members)===null||pe===void 0?void 0:pe.get(u))===gr.symbol,rn=!wt&&((Be=(Se=Vt.symbol)===null||Se===void 0?void 0:Se.members)===null||Be===void 0?void 0:Be.get(u))===gr.symbol;if(wt||rn){var on=wt?mt:Vt,Un=gr.mapper;return Gd(bm(on.typeParameters[0],Un),bm(on.typeParameters[1],Un),u==="next"?bm(on.typeParameters[2],Un):void 0)}}for(var Gn,Ti,li=0,Ja=_r;li<Ja.length;li++){var Ai=Ja[li];u!=="throw"&&e.some(Ai.parameters)&&(Gn=e.append(Gn,cf(Ai,0))),Ti=e.append(Ti,Ho(Ai))}var Ua,Wa;if(u!=="throw"){var Ga=Gn?zi(Gn):ur;if(u==="next")Wa=Ga;else if(u==="return"){var Bo=a.resolveIterationType(Ga,f)||Ie;Ua=e.append(Ua,Bo)}}var jo,No=Ti?ho(Ti):Xe,Ca=a.resolveIterationType(No,f)||Ie,hn=LX(Ca);return hn===jr?(f&&(p?((fr=p.errors)!==null&&fr!==void 0||(p.errors=[]),p.errors.push(e.createDiagnosticForNode(f,a.mustHaveAValueDiagnostic,u))):nt(f,a.mustHaveAValueDiagnostic,u)),jo=Ie,Ua=e.append(Ua,Ie)):(jo=hn.yieldType,Ua=e.append(Ua,hn.returnType)),Gd(jo,zi(Ua),Wa)}}function wM(r,a,u,f,p){var g=xM([Mw(r,a,"next",u,f),Mw(r,a,"return",u,f),Mw(r,a,"throw",u,f)]);return p?g:Op(r,a.iteratorCacheKey,g)}function mg(r,a,u){if(!fa(a)){var f=NM(a,u);return f&&f[q(r)]}}function NM(r,a){if(fa(r))return Nn;var u=a?2:1,f=a?ro:Ye;return ET(r,u,void 0)||IX(r,f,void 0,void 0)}function RX(r){_d(r)||HZ(r)}function CT(r,a){var u=!!(a&1),f=!!(a&2);if(u){var p=mg(1,r,f);return p?f?Hd(t1(p)):p:ar}return f?Hd(r)||ar:r}function IM(r,a){var u=CT(a,e.getFunctionFlags(r));return!!u&&ks(u,16387)}function BX(r){var a;if(!_d(r)){var u=e.getContainingFunctionOrClassStaticBlock(r);if(u&&e.isClassStaticBlockDeclaration(u)){Tc(r,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!u){Tc(r,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var f=of(u),p=Ho(f),g=e.getFunctionFlags(u);if(ue||r.expression||p.flags&131072){var j=r.expression?Gs(r.expression):Ar;if(u.kind===175)r.expression&&nt(r,e.Diagnostics.Setters_cannot_return_a_value);else if(u.kind===173)r.expression&&!x_(j,p,r,r.expression)&&nt(r,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Bv(u)){var pe=(a=CT(p,g))!==null&&a!==void 0?a:p,Se=g&2?I0(j,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):j;pe&&x_(Se,pe,r,r.expression)}}else u.kind!==173&&Ce.noImplicitReturns&&!IM(u,p)&&nt(r,e.Diagnostics.Not_all_code_paths_return_a_value)}}function jX(r){_d(r)||r.flags&32768&&Tc(r,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Ra(r.expression);var a=e.getSourceFileOfNode(r);if(!ih(a)){var u=e.getSpanOfTokenAtPosition(a,r.pos).start,f=r.statement.pos;gg(a,u,f-u,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function JX(r){_d(r);var a,u=!1,f=Ra(r.expression),p=$v(f);e.forEach(r.caseBlock.clauses,function(g){g.kind===293&&!u&&(a===void 0?a=g:(Fn(g,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),u=!0)),g.kind===292&&ee(j(g)),e.forEach(g.statements,go),Ce.noFallthroughCasesInSwitch&&g.fallthroughFlowNode&&kb(g.fallthroughFlowNode)&&nt(g,e.Diagnostics.Fallthrough_case_in_switch);function j(pe){return function(){var Se=Ra(pe.expression),Be=$v(Se),fr=f;(!Be||!p)&&(Se=Be?Xf(Se):Se,fr=Xf(f)),gw(fr,Se)||m8(Se,fr,pe.expression,void 0)}}}),r.caseBlock.locals&&T_(r.caseBlock)}function UX(r){_d(r)||e.findAncestor(r.parent,function(a){return e.isFunctionLike(a)?"quit":a.kind===253&&a.label.escapedText===r.label.escapedText?(Fn(r.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(r.label)),!0):!1}),go(r.statement)}function VX(r){_d(r)||e.isIdentifier(r.expression)&&!r.expression.escapedText&&uee(r,e.Diagnostics.Line_break_not_permitted_here),r.expression&&Ra(r.expression)}function zX(r){_d(r),DT(r.tryBlock);var a=r.catchClause;if(a){if(a.variableDeclaration){var u=a.variableDeclaration,f=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(u));if(f){var p=am(u,!1,0);p&&!(p.flags&3)&&Tc(f,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(u.initializer)Tc(u.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var g=a.block.locals;g&&e.forEachKey(a.locals,function(j){var pe=g.get(j);pe!=null&&pe.valueDeclaration&&pe.flags&2&&Fn(pe.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,j)})}}DT(a.block)}r.finallyBlock&&DT(r.finallyBlock)}function kT(r,a,u){var f=_c(r);if(f.length!==0){for(var p=0,g=wp(r);p<g.length;p++){var j=g[p];u&&j.flags&4194304||OM(r,j,zy(j,8576,!0),Rs(j))}var pe=a.valueDeclaration;if(pe&&e.isClassLike(pe))for(var Se=0,Be=pe.members;Se<Be.length;Se++){var fr=Be[Se];if(!e.isStatic(fr)&&!Wf(fr)){var sr=Zn(fr);OM(r,sr,Ic(fr.name.expression),Rs(sr))}}if(f.length>1)for(var gr=0,_r=f;gr<_r.length;gr++){var Kr=_r[gr];WX(r,Kr)}}}function OM(r,a,u,f){var p=a.valueDeclaration,g=e.getNameOfDeclaration(p);if(!(g&&e.isPrivateIdentifier(g)))for(var j=sb(r,u),pe=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,261):void 0,Se=p&&p.kind===223||g&&g.kind===164?p:void 0,Be=Bc(a)===r.symbol?p:void 0,fr=function(Kr){var mt=Kr.declaration&&Bc(Zn(Kr.declaration))===r.symbol?Kr.declaration:void 0,Vt=Be||mt||(pe&&!e.some(Jc(r),function(rn){return!!Jd(rn,a.escapedName)&&!!$f(rn,Kr.keyType)})?pe:void 0);if(Vt&&!So(f,Kr.type)){var wt=vl(Vt,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,na(a),Hn(f),Hn(Kr.keyType),Hn(Kr.type));Se&&Vt!==Se&&e.addRelatedInfo(wt,e.createDiagnosticForNode(Se,e.Diagnostics._0_is_declared_here,na(a))),ya.add(wt)}},sr=0,gr=j;sr<gr.length;sr++){var _r=gr[sr];fr(_r)}}function WX(r,a){for(var u=a.declaration,f=sb(r,a.keyType),p=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,261):void 0,g=u&&Bc(Zn(u))===r.symbol?u:void 0,j=function(fr){if(fr===a)return"continue";var sr=fr.declaration&&Bc(Zn(fr.declaration))===r.symbol?fr.declaration:void 0,gr=g||sr||(p&&!e.some(Jc(r),function(_r){return!!nf(_r,a.keyType)&&!!$f(_r,fr.keyType)})?p:void 0);gr&&!So(a.type,fr.type)&&nt(gr,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Hn(a.keyType),Hn(a.type),Hn(fr.keyType),Hn(fr.type))},pe=0,Se=f;pe<Se.length;pe++){var Be=Se[pe];j(Be)}}function a1(r,a){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":nt(r,a,r.escapedText)}}function qX(r){Ae>=1&&r.escapedText==="Object"&&(qe<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&nt(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[qe])}function $X(r){var a=e.filter(e.getJSDocTags(r),e.isJSDocParameterTag);if(e.length(a)){var u=e.isInJSFile(r),f=new e.Set,p=new e.Set;e.forEach(r.parameters,function(pe,Se){var Be=pe.name;e.isIdentifier(Be)&&f.add(Be.escapedText),e.isBindingPattern(Be)&&p.add(Se)});var g=rA(r);if(g){var j=e.lastOrUndefined(a);u&&j&&e.isIdentifier(j.name)&&j.typeExpression&&j.typeExpression.type&&!f.has(j.name.escapedText)&&!Al(ea(j.typeExpression.type))&&nt(j.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(j.name))}else e.forEach(a,function(pe,Se){var Be=pe.name,fr=pe.isNameFirst;p.has(Se)||e.isIdentifier(Be)&&f.has(Be.escapedText)||(e.isQualifiedName(Be)?u&&nt(Be,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(Be),e.entityNameToString(Be.left)):fr||df(u,Be,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(Be)))})}}function Zb(r){var a=!1;if(r)for(var u=0;u<r.length;u++){var f=r[u];Y7(f),ee(p(f,u))}function p(g,j){return function(){g.default?(a=!0,HX(g.default,r,j)):a&&nt(g,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var pe=0;pe<j;pe++)r[pe].symbol===g.symbol&&nt(g.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(g.name))}}}function HX(r,a,u){f(r);function f(p){if(p.kind===180){var g=cb(p);if(g.flags&262144)for(var j=u;j<a.length;j++)g.symbol===Zn(a[j])&&nt(p,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(p,f)}}function MM(r){if(!(r.declarations&&r.declarations.length===1)){var a=la(r);if(!a.typeParametersChecked){a.typeParametersChecked=!0;var u=eY(r);if(!u||u.length<=1)return;var f=mn(r);if(!FM(u,f.localTypeParameters,e.getEffectiveTypeParameterDeclarations))for(var p=na(r),g=0,j=u;g<j.length;g++){var pe=j[g];nt(pe.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,p)}}}}function FM(r,a,u){for(var f=e.length(a),p=af(a),g=0,j=r;g<j.length;g++){var pe=j[g],Se=u(pe),Be=Se.length;if(Be<p||Be>f)return!1;for(var fr=0;fr<Be;fr++){var sr=Se[fr],gr=a[fr];if(sr.name.escapedText!==gr.symbol.escapedName)return!1;var _r=e.getEffectiveConstraintOfTypeParameter(sr),Kr=_r&&ea(_r),mt=Uc(gr);if(Kr&&mt&&!ud(Kr,mt))return!1;var Vt=sr.default&&ea(sr.default),wt=fm(gr);if(Vt&&wt&&!ud(Vt,wt))return!1}}return!0}function GX(r){return LM(r),o1(r),_n(Zn(r))}function KX(r){e.forEach(r.members,go),T_(r)}function QX(r){var a=e.find(r.modifiers,e.isDecorator);a&&e.some(r.members,function(u){return e.hasStaticModifier(u)&&e.isPrivateIdentifierClassElementDeclaration(u)})&&Fn(a,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!e.hasSyntacticModifier(r,1024)&&Tc(r,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),LM(r),e.forEach(r.members,go),T_(r)}function LM(r){IZ(r),Gb(r),i1(r,r.name),Zb(e.getEffectiveTypeParameterDeclarations(r)),P0(r);var a=Zn(r),u=mn(a),f=Hu(u),p=_n(a);MM(a),bT(a),mQ(r);var g=!!(r.flags&16777216);g||gQ(r);var j=e.getEffectiveBaseTypeNode(r);if(j){e.forEach(j.typeArguments,go),Ae<2&&Zc(j.parent,1);var pe=e.getClassExtendsHeritageElement(r);pe&&pe!==j&&Ra(pe.expression);var Se=Jc(u);Se.length&&ee(function(){var Kr=Se[0],mt=sd(u),Vt=Gr(mt);if(YX(Vt,j),go(j.expression),e.some(j.typeArguments)){e.forEach(j.typeArguments,go);for(var wt=0,rn=od(Vt,j.typeArguments,j);wt<rn.length;wt++){var on=rn[wt];if(!aM(j,on.typeParameters))break}}var Un=Hu(Kr,u.thisType);if(vu(f,Un,void 0)?vu(p,f8(Vt),r.name||r,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):jM(r,f,Un,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),mt.flags&8650752)if(!kv(p))nt(r.name||r,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Gn=La(mt,1);Gn.some(function(li){return li.flags&4})&&!e.hasSyntacticModifier(r,256)&&nt(r.name||r,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(Vt.symbol&&Vt.symbol.flags&32)&&!(mt.flags&8650752)){var Ti=Iy(Vt,j.typeArguments,j);e.forEach(Ti,function(li){return!wf(li.declaration)&&!ud(Ho(li),Kr)})&&nt(j.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}rY(u,Kr)})}XX(r,u,f,p);var Be=e.getEffectiveImplementsTypeNodes(r);if(Be)for(var fr=0,sr=Be;fr<sr.length;fr++){var gr=sr[fr];(!e.isEntityNameExpression(gr.expression)||e.isOptionalChain(gr.expression))&&nt(gr.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Dw(gr),ee(_r(gr))}ee(function(){kT(u,a),kT(p,a,!0),yw(r),iY(r)});function _r(Kr){return function(){var mt=Zi(ea(Kr));if(!pa(mt))if(sm(mt)){var Vt=mt.symbol&&mt.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,wt=Hu(mt,u.thisType);vu(f,wt,void 0)||jM(r,f,wt,Vt)}else nt(Kr,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function XX(r,a,u,f){for(var p=e.getEffectiveBaseTypeNode(r),g=p&&Jc(a),j=g!=null&&g.length?Hu(e.first(g),a.thisType):void 0,pe=sd(a),Se=function(gr){if(e.hasAmbientModifier(gr))return"continue";e.isConstructorDeclaration(gr)&&e.forEach(gr.parameters,function(_r){e.isParameterPropertyDeclaration(_r,gr)&&RM(r,f,pe,j,a,u,_r,!0)}),RM(r,f,pe,j,a,u,gr,!1)},Be=0,fr=r.members;Be<fr.length;Be++){var sr=fr[Be];Se(sr)}}function RM(r,a,u,f,p,g,j,pe,Se){Se===void 0&&(Se=!0);var Be=j.name&&ql(j.name)||ql(j);return Be?BM(r,a,u,f,p,g,e.hasOverrideModifier(j),e.hasAbstractModifier(j),e.isStatic(j),pe,e.symbolName(Be),Se?j:void 0):0}function BM(r,a,u,f,p,g,j,pe,Se,Be,fr,sr){var gr=e.isInJSFile(r),_r=!!(r.flags&16777216);if(f&&(j||Ce.noImplicitOverride)){var Kr=e.escapeLeadingUnderscores(fr),mt=Se?a:g,Vt=Se?u:f,wt=Fa(mt,Kr),rn=Fa(Vt,Kr),on=Hn(f);if(wt&&!rn&&j){if(sr){var Un=Z5(fr,Vt);Un?nt(sr,gr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,on,na(Un)):nt(sr,gr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,on)}return 2}else if(wt&&(rn!=null&&rn.declarations)&&Ce.noImplicitOverride&&!_r){var Gn=e.some(rn.declarations,e.hasAbstractModifier);if(j)return 0;if(Gn){if(pe&&Gn)return sr&&nt(sr,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,on),1}else{if(sr){var Ti=Be?gr?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:gr?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;nt(sr,Ti,on)}return 1}}}else if(j){if(sr){var li=Hn(p);nt(sr,gr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,li)}return 2}return 0}function jM(r,a,u,f){for(var p=!1,g=function(Be){if(e.isStatic(Be))return"continue";var fr=Be.name&&ql(Be.name)||ql(Be);if(fr){var sr=Fa(a,fr.escapedName),gr=Fa(u,fr.escapedName);if(sr&&gr){var _r=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,na(fr),Hn(a),Hn(u))};vu(_n(sr),_n(gr),Be.name||Be,void 0,_r)||(p=!0)}}},j=0,pe=r.members;j<pe.length;j++){var Se=pe[j];g(Se)}p||vu(a,u,r.name||r,f)}function YX(r,a){var u=La(r,1);if(u.length){var f=u[0].declaration;if(f&&e.hasEffectiveModifier(f,8)){var p=e.getClassLikeDeclarationOfSymbol(r.symbol);Jw(a,p)||nt(a,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,su(r.symbol))}}}function ZX(r,a){if(!a.name)return 0;var u=Zn(r),f=mn(u),p=Hu(f),g=_n(u),j=e.getEffectiveBaseTypeNode(r),pe=j&&Jc(f),Se=pe!=null&&pe.length?Hu(e.first(pe),f.thisType):void 0,Be=sd(f),fr=a.parent?e.hasOverrideModifier(a):e.hasSyntacticModifier(a,16384),sr=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(a.name));return BM(r,g,Be,Se,f,p,fr,e.hasAbstractModifier(a),e.isStatic(a),!1,sr)}function iy(r){return e.getCheckFlags(r)&1?r.target:r}function eY(r){return e.filter(r.declarations,function(a){return a.kind===260||a.kind===261})}function rY(r,a){var u,f,p,g,j=Ro(a),pe=function(gr){var _r=iy(gr);if(_r.flags&4194304)return"continue";var Kr=Jd(r,_r.escapedName);if(!Kr)return"continue";var mt=iy(Kr),Vt=e.getDeclarationModifierFlagsFromSymbol(_r);if(e.Debug.assert(!!mt,"derived should point to something, even if it is the base class' declaration."),mt===_r){var wt=e.getClassLikeDeclarationOfSymbol(r.symbol);if(Vt&256&&(!wt||!e.hasSyntacticModifier(wt,256))){for(var rn=0,on=Jc(r);rn<on.length;rn++){var Un=on[rn];if(Un!==a){var Gn=Jd(Un,_r.escapedName),Ti=Gn&&iy(Gn);if(Ti&&Ti!==_r)return"continue-basePropertyCheck"}}wt.kind===228?nt(wt,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,na(gr),Hn(a)):nt(wt,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Hn(r),na(gr),Hn(a))}}else{var li=e.getDeclarationModifierFlagsFromSymbol(mt);if(Vt&8||li&8)return"continue";var Ja=void 0,Ai=_r.flags&98308,Ua=mt.flags&98308;if(Ai&&Ua){if((e.getCheckFlags(_r)&6?!((u=_r.declarations)===null||u===void 0)&&u.some(function(qt){return JM(qt,Vt)}):!((f=_r.declarations)===null||f===void 0)&&f.every(function(qt){return JM(qt,Vt)}))||e.getCheckFlags(_r)&262144||mt.valueDeclaration&&e.isBinaryExpression(mt.valueDeclaration))return"continue";var Wa=Ai!==4&&Ua===4,Ga=Ai===4&&Ua!==4;if(Wa||Ga){var Bo=Wa?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;nt(e.getNameOfDeclaration(mt.valueDeclaration)||mt.valueDeclaration,Bo,na(_r),Hn(a),Hn(r))}else if(xe){var jo=(p=mt.declarations)===null||p===void 0?void 0:p.find(function(qt){return qt.kind===169&&!qt.initializer});if(jo&&!(mt.flags&33554432)&&!(Vt&256)&&!(li&256)&&!(!((g=mt.declarations)===null||g===void 0)&&g.some(function(qt){return!!(qt.flags&16777216)}))){var No=f_(e.getClassLikeDeclarationOfSymbol(r.symbol)),Ca=jo.name;if(jo.exclamationToken||!No||!e.isIdentifier(Ca)||!ue||!VM(Ca,r,No)){var hn=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;nt(e.getNameOfDeclaration(mt.valueDeclaration)||mt.valueDeclaration,hn,na(_r),Hn(a))}}}return"continue"}else if(WP(_r)){if(WP(mt)||mt.flags&4)return"continue";e.Debug.assert(!!(mt.flags&98304)),Ja=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else _r.flags&98304?Ja=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Ja=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;nt(e.getNameOfDeclaration(mt.valueDeclaration)||mt.valueDeclaration,Ja,Hn(a),na(_r),Hn(r))}};e:for(var Se=0,Be=j;Se<Be.length;Se++){var fr=Be[Se],sr=pe(fr);switch(sr){case"continue-basePropertyCheck":continue e}}}function JM(r,a){return a&256&&(!e.isPropertyDeclaration(r)||!r.initializer)||e.isInterfaceDeclaration(r.parent)}function tY(r,a,u){if(!e.length(a))return u;var f=new e.Map;e.forEach(u,function(gr){f.set(gr.escapedName,gr)});for(var p=0,g=a;p<g.length;p++)for(var j=g[p],pe=Ro(Hu(j,r.thisType)),Se=0,Be=pe;Se<Be.length;Se++){var fr=Be[Se],sr=f.get(fr.escapedName);sr&&fr.parent===sr.parent&&f.delete(fr.escapedName)}return e.arrayFrom(f.values())}function nY(r,a){var u=Jc(r);if(u.length<2)return!0;var f=new e.Map;e.forEach(hu(r).declaredProperties,function(wt){f.set(wt.escapedName,{prop:wt,containingType:r})});for(var p=!0,g=0,j=u;g<j.length;g++)for(var pe=j[g],Se=Ro(Hu(pe,r.thisType)),Be=0,fr=Se;Be<fr.length;Be++){var sr=fr[Be],gr=f.get(sr.escapedName);if(!gr)f.set(sr.escapedName,{prop:sr,containingType:pe});else{var _r=gr.containingType!==r;if(_r&&!Wq(gr.prop,sr)){p=!1;var Kr=Hn(gr.containingType),mt=Hn(pe),Vt=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,na(sr),Kr,mt);Vt=e.chainDiagnosticMessages(Vt,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Hn(r),Kr,mt),ya.add(e.createDiagnosticForNodeFromMessageChain(a,Vt))}}}return p}function iY(r){if(!(!ue||!lr||r.flags&16777216))for(var a=f_(r),u=0,f=r.members;u<f.length;u++){var p=f[u];if(!(e.getEffectiveModifierFlags(p)&2)&&!e.isStatic(p)&&UM(p)){var g=p.name;if(e.isIdentifier(g)||e.isPrivateIdentifier(g)||e.isComputedPropertyName(g)){var j=_n(Zn(p));j.flags&3||Wy(j)||(!a||!VM(g,j,a))&&nt(p.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(g))}}}}function UM(r){return r.kind===169&&!e.hasAbstractModifier(r)&&!r.exclamationToken&&!r.initializer}function aY(r,a,u,f,p){for(var g=0,j=u;g<j.length;g++){var pe=j[g];if(pe.pos>=f&&pe.pos<=p){var Se=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(Se.expression,Se),e.setParent(Se,pe),Se.flowNode=pe.returnFlowNode;var Be=Tm(Se,a,Wd(a));if(!Wy(Be))return!0}}return!1}function VM(r,a,u){var f=e.isComputedPropertyName(r)?e.factory.createElementAccessExpression(e.factory.createThis(),r.expression):e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(f.expression,f),e.setParent(f,u),f.flowNode=u.returnFlowNode;var p=Tm(f,a,Wd(a));return!Wy(p)}function oY(r){dd(r)||jZ(r),Zb(r.typeParameters),ee(function(){a1(r.name,e.Diagnostics.Interface_name_cannot_be_0),P0(r);var a=Zn(r);MM(a);var u=e.getDeclarationOfKind(a,261);if(r===u){var f=mn(a),p=Hu(f);if(nY(f,r.name)){for(var g=0,j=Jc(f);g<j.length;g++){var pe=j[g];vu(p,Hu(pe,f.thisType),r.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}kT(f,a)}}rM(r)}),e.forEach(e.getInterfaceBaseTypeNodes(r),function(a){(!e.isEntityNameExpression(a.expression)||e.isOptionalChain(a.expression))&&nt(a.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Dw(a)}),e.forEach(r.members,go),ee(function(){yw(r),T_(r)})}function sY(r){dd(r),a1(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),P0(r),Zb(r.typeParameters),r.type.kind===139?(!ge.has(r.name.escapedText)||e.length(r.typeParameters)!==1)&&nt(r.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(go(r.type),T_(r))}function zM(r){var a=Mi(r);if(!(a.flags&16384)){a.flags|=16384;for(var u=0,f=0,p=r.members;f<p.length;f++){var g=p[f],j=cY(g,u);Mi(g).enumMemberValue=j,u=typeof j=="number"?j+1:void 0}}}function cY(r,a){if(e.isComputedNonLiteralName(r.name))nt(r.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var u=e.getTextOfPropertyName(r.name);e.isNumericLiteralName(u)&&!e.isInfinityOrNaNString(u)&&nt(r.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return uY(r);if(!(r.parent.flags&16777216&&!e.isEnumConst(r.parent)&&Pv(Zn(r.parent))===0)){if(a!==void 0)return a;nt(r.name,e.Diagnostics.Enum_member_must_have_initializer)}}function uY(r){var a=Pv(Zn(r.parent)),u=e.isEnumConst(r.parent),f=r.initializer,p=a===1&&!K1(r)?void 0:j(f);if(p!==void 0)u&&typeof p=="number"&&!isFinite(p)&&nt(f,isNaN(p)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(a===1)return nt(f,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(u)nt(f,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(r.parent.flags&16777216)nt(f,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var g=Ra(f);mc(g,296)?vu(g,mn(Zn(r.parent)),f,void 0):nt(f,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Hn(g))}}return p;function j(Se){switch(Se.kind){case 221:var Be=j(Se.operand);if(typeof Be=="number")switch(Se.operator){case 39:return Be;case 40:return-Be;case 54:return~Be}break;case 223:var fr=j(Se.left),sr=j(Se.right);if(typeof fr=="number"&&typeof sr=="number")switch(Se.operatorToken.kind){case 51:return fr|sr;case 50:return fr&sr;case 48:return fr>>sr;case 49:return fr>>>sr;case 47:return fr<<sr;case 52:return fr^sr;case 41:return fr*sr;case 43:return fr/sr;case 39:return fr+sr;case 40:return fr-sr;case 44:return fr%sr;case 42:return Math.pow(fr,sr)}else if(typeof fr=="string"&&typeof sr=="string"&&Se.operatorToken.kind===39)return fr+sr;break;case 10:case 14:return Se.text;case 8:return Yw(Se),+Se.text;case 214:return j(Se.expression);case 79:var gr=Se;return e.isInfinityOrNaNString(gr.escapedText)?+gr.escapedText:e.nodeIsMissing(Se)?0:pe(Se,Zn(r.parent),gr.escapedText);case 209:case 208:if(Fw(Se)){var _r=Ic(Se.expression);if(_r.symbol&&_r.symbol.flags&384){var Kr=void 0;return Se.kind===208?Kr=Se.name.escapedText:Kr=e.escapeLeadingUnderscores(e.cast(Se.argumentExpression,e.isLiteralExpression).text),pe(Se,_r.symbol,Kr)}}break}}function pe(Se,Be,fr){var sr=Be.exports.get(fr);if(sr){var gr=sr.valueDeclaration;if(gr!==r)return gr&&$p(gr,r)&&e.isEnumDeclaration(gr.parent)?FT(gr):(nt(Se,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);nt(Se,e.Diagnostics.Property_0_is_used_before_being_assigned,na(sr))}}}function Fw(r){var a=Ic(r);return a===ar?!1:r.kind===79||r.kind===208&&Fw(r.expression)||r.kind===209&&Fw(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}function lY(r){ee(function(){return fY(r)})}function fY(r){dd(r),i1(r,r.name),P0(r),r.members.forEach(pY),zM(r);var a=Zn(r),u=e.getDeclarationOfKind(a,r.kind);if(r===u){if(a.declarations&&a.declarations.length>1){var f=e.isEnumConst(r);e.forEach(a.declarations,function(g){e.isEnumDeclaration(g)&&e.isEnumConst(g)!==f&&nt(e.getNameOfDeclaration(g),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var p=!1;e.forEach(a.declarations,function(g){if(g.kind!==263)return!1;var j=g;if(!j.members.length)return!1;var pe=j.members[0];pe.initializer||(p?nt(pe.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):p=!0)})}}function pY(r){e.isPrivateIdentifier(r.name)&&nt(r,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function dY(r){var a=r.declarations;if(a)for(var u=0,f=a;u<f.length;u++){var p=f[u];if((p.kind===260||p.kind===259&&e.nodeIsPresent(p.body))&&!(p.flags&16777216))return p}}function _Y(r,a){var u=e.getEnclosingBlockScopeContainer(r),f=e.getEnclosingBlockScopeContainer(a);return sl(u)?sl(f):sl(f)?!1:u===f}function mY(r){r.body&&(go(r.body),e.isGlobalScopeAugmentation(r)||T_(r)),ee(a);function a(){var u=e.isGlobalScopeAugmentation(r),f=r.flags&16777216;u&&!f&&nt(r.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var p=e.isAmbientModule(r),g=p?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(!eS(r,g)){dd(r)||!f&&r.name.kind===10&&Fn(r.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(r.name)&&i1(r,r.name),P0(r);var j=Zn(r);if(j.flags&512&&!f&&j.declarations&&j.declarations.length>1&&oe(r,e.shouldPreserveConstEnums(Ce))){var pe=dY(j);pe&&(e.getSourceFileOfNode(r)!==e.getSourceFileOfNode(pe)?nt(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<pe.pos&&nt(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var Se=e.getDeclarationOfKind(j,260);Se&&_Y(r,Se)&&(Mi(r).flags|=32768)}if(p)if(e.isExternalModuleAugmentation(r)){var Be=u||Zn(r).flags&33554432;if(Be&&r.body)for(var fr=0,sr=r.body.statements;fr<sr.length;fr++){var gr=sr[fr];Lw(gr,u)}}else sl(r.parent)?u?nt(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(r.name))&&nt(r.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):u?nt(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):nt(r.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}}function Lw(r,a){switch(r.kind){case 240:for(var u=0,f=r.declarationList.declarations;u<f.length;u++){var p=f[u];Lw(p,a)}break;case 274:case 275:Tc(r,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:Tc(r,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:var g=r.name;if(e.isBindingPattern(g)){for(var j=0,pe=g.elements;j<pe.length;j++){var Se=pe[j];Lw(Se,a)}break}case 260:case 263:case 259:case 261:case 264:case 262:if(a)return;break}}function gY(r){switch(r.kind){case 79:return r;case 163:do r=r.left;while(r.kind!==79);return r;case 208:do{if(e.isModuleExportsAccessExpression(r.expression)&&!e.isPrivateIdentifier(r.name))return r.name;r=r.expression}while(r.kind!==79);return r}}function Rw(r){var a=e.getExternalModuleName(r);if(!a||e.nodeIsMissing(a))return!1;if(!e.isStringLiteral(a))return nt(a,e.Diagnostics.String_literal_expected),!1;var u=r.parent.kind===265&&e.isAmbientModule(r.parent.parent);if(r.parent.kind!==308&&!u)return nt(a,r.kind===275?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(u&&e.isExternalModuleNameRelative(a.text)&&!jf(r))return nt(r,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!e.isImportEqualsDeclaration(r)&&r.assertClause){for(var f=!1,p=0,g=r.assertClause.elements;p<g.length;p++){var j=g[p];e.isStringLiteral(j.value)||(f=!0,nt(j.value,e.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!f}return!0}function AT(r){var a,u,f,p,g,j=Zn(r),pe=gc(j);if(pe!==en){if(j=mo(j.exportSymbol||j),e.isInJSFile(r)&&!(pe.flags&111551)&&!e.isTypeOnlyImportOrExportDeclaration(r)){var Se=e.isImportOrExportSpecifier(r)?r.propertyName||r.name:e.isNamedDeclaration(r)?r.name:r;if(e.Debug.assert(r.kind!==277),r.kind===278){var Be=nt(Se,e.Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files),fr=(u=(a=e.getSourceFileOfNode(r).symbol)===null||a===void 0?void 0:a.exports)===null||u===void 0?void 0:u.get((r.propertyName||r.name).escapedText);if(fr===pe){var sr=(f=fr.declarations)===null||f===void 0?void 0:f.find(e.isJSDocNode);sr&&e.addRelatedInfo(Be,e.createDiagnosticForNode(sr,e.Diagnostics._0_is_automatically_exported_here,e.unescapeLeadingUnderscores(fr.escapedName)))}}else{e.Debug.assert(r.kind!==257);var gr=e.findAncestor(r,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration)),_r=(g=gr&&((p=e.tryGetModuleSpecifierFromDeclaration(gr))===null||p===void 0?void 0:p.text))!==null&&g!==void 0?g:"...",Kr=e.unescapeLeadingUnderscores(e.isIdentifier(Se)?Se.escapedText:j.escapedName);nt(Se,e.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Kr,'import("'.concat(_r,'").').concat(Kr))}return}var mt=Gc(pe),Vt=(j.flags&1160127?111551:0)|(j.flags&788968?788968:0)|(j.flags&1920?1920:0);if(mt&Vt){var wt=r.kind===278?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;nt(r,wt,na(j))}if(Ce.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(r)&&!(r.flags&16777216)){var rn=ba(j),on=!(mt&111551);if(on||rn)switch(r.kind){case 270:case 273:case 268:{if(Ce.preserveValueImports){e.Debug.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");var wt=on?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Un=e.idText(r.kind===273&&r.propertyName||r.name);s_(nt(r,wt,Un),on?void 0:rn,Un)}on&&r.kind===268&&e.hasEffectiveModifier(r,1)&&nt(r,e.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break}case 278:if(e.getSourceFileOfNode(rn)!==e.getSourceFileOfNode(r)){var wt=on?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,Un=e.idText(r.propertyName||r.name);s_(nt(r,wt,Un),on?void 0:rn,Un);return}}}if(e.isImportSpecifier(r)){var Gn=qM(j,r);WM(Gn)&&Gn.declarations&&Yl(r,Gn.declarations,Gn.escapedName)}}}function WM(r){return!!r.declarations&&e.every(r.declarations,function(a){return!!(e.getCombinedNodeFlags(a)&268435456)})}function qM(r,a){if(!(r.flags&2097152))return r;var u=gc(r);if(u===en)return u;for(;r.flags&2097152;){var f=BP(r);if(f){if(f===u)break;if(f.declarations&&e.length(f.declarations))if(WM(f)){Yl(a,f.declarations,f.escapedName);break}else{if(r===u)break;r=f}}else break}return u}function PT(r){i1(r,r.name),AT(r),r.kind===273&&e.idText(r.propertyName||r.name)==="default"&&e.getESModuleInterop(Ce)&&qe!==e.ModuleKind.System&&(qe<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Zc(r,131072)}function $M(r){var a;if(r.assertClause){var u=e.isExclusivelyTypeOnlyImportOrExport(r),f=e.getResolutionModeOverrideForClause(r.assertClause,u?Fn:void 0);if(u&&f)return e.isNightly()||Fn(r.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.NodeNext?Fn(r.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;var p=qe===e.ModuleKind.NodeNext&&r.moduleSpecifier&&Ed(r.moduleSpecifier);if(p!==e.ModuleKind.ESNext&&qe!==e.ModuleKind.ESNext)return Fn(r.assertClause,qe===e.ModuleKind.NodeNext?e.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(e.isImportDeclaration(r)?!((a=r.importClause)===null||a===void 0)&&a.isTypeOnly:r.isTypeOnly)return Fn(r.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(f)return Fn(r.assertClause,e.Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports)}}function hY(r){if(!eS(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!dd(r)&&e.hasEffectiveModifiers(r)&&Tc(r,e.Diagnostics.An_import_declaration_cannot_have_modifiers),Rw(r)){var a=r.importClause;if(a&&!fee(a)&&(a.name&&PT(a),a.namedBindings))if(a.namedBindings.kind===271)PT(a.namedBindings),qe!==e.ModuleKind.System&&(qe<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(Ce)&&Zc(r,65536);else{var u=Ac(r,r.moduleSpecifier);u&&e.forEach(a.namedBindings.elements,PT)}}$M(r)}}function vY(r){if(!eS(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(dd(r),e.isInternalModuleImportEqualsDeclaration(r)||Rw(r)))if(PT(r),e.hasSyntacticModifier(r,1)&&yf(r),r.moduleReference.kind!==280){var a=gc(Zn(r));if(a!==en){var u=Gc(a);if(u&111551){var f=e.getFirstIdentifier(r.moduleReference);ns(f,112575).flags&1920||nt(f,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(f))}u&788968&&a1(r.name,e.Diagnostics.Import_name_cannot_be_0)}r.isTypeOnly&&Fn(r,e.Diagnostics.An_import_alias_cannot_use_import_type)}else qe>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&16777216)&&Fn(r,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function yY(r){if(!eS(r,e.isInJSFile(r)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!dd(r)&&e.hasSyntacticModifiers(r)&&Tc(r,e.Diagnostics.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&e.isNamedExports(r.exportClause)&&e.length(r.exportClause.elements)&&Ae===0&&Zc(r,4194304),bY(r),!r.moduleSpecifier||Rw(r))if(r.exportClause&&!e.isNamespaceExport(r.exportClause)){e.forEach(r.exportClause.elements,CY);var a=r.parent.kind===265&&e.isAmbientModule(r.parent.parent),u=!a&&r.parent.kind===265&&!r.moduleSpecifier&&r.flags&16777216;r.parent.kind!==308&&!a&&!u&&nt(r,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var f=Ac(r,r.moduleSpecifier);f&&ef(f)?nt(r.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,na(f)):r.exportClause&&AT(r.exportClause),qe!==e.ModuleKind.System&&(qe<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&(r.exportClause?e.getESModuleInterop(Ce)&&Zc(r,65536):Zc(r,32768))}$M(r)}}function bY(r){var a;return r.isTypeOnly?((a=r.exportClause)===null||a===void 0?void 0:a.kind)===276?DF(r.exportClause):Fn(r,e.Diagnostics.Only_named_exports_may_use_export_type):!1}function eS(r,a){var u=r.parent.kind===308||r.parent.kind===265||r.parent.kind===264;return u||Tc(r,a),!u}function SY(r){return e.forEachImportClauseDeclaration(r,function(a){return!!Zn(a).isReferenced})}function DY(r){return e.forEachImportClauseDeclaration(r,function(a){return!!la(Zn(a)).constEnumReferenced})}function xY(r){return e.isImportDeclaration(r)&&r.importClause&&!r.importClause.isTypeOnly&&SY(r.importClause)&&!MT(r.importClause,!0)&&!DY(r.importClause)}function TY(r){return e.isImportEqualsDeclaration(r)&&e.isExternalModuleReference(r.moduleReference)&&!r.isTypeOnly&&Zn(r).isReferenced&&!MT(r,!1)&&!la(Zn(r)).constEnumReferenced}function EY(r){for(var a=0,u=r.statements;a<u.length;a++){var f=u[a];(xY(f)||TY(f))&&nt(f,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function CY(r){if(AT(r),e.getEmitDeclarations(Ce)&&V(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)e.getESModuleInterop(Ce)&&qe!==e.ModuleKind.System&&(qe<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.idText(r.propertyName||r.name)==="default"&&Zc(r,131072);else{var a=r.propertyName||r.name,u=Ls(a,a.escapedText,2998271,void 0,void 0,!0);if(u&&(u===zr||u===Fr||u.declarations&&sl(Ii(u.declarations[0]))))nt(a,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(a));else{!r.isTypeOnly&&!r.parent.parent.isTypeOnly&&yf(r);var f=u&&(u.flags&2097152?gc(u):u);(!f||Gc(f)&111551)&&Gs(r.propertyName||r.name)}}}function kY(r){var a=r.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(!eS(r,a)){var u=r.parent.kind===308?r.parent:r.parent.parent;if(u.kind===264&&!e.isAmbientModule(u)){r.isExportEquals?nt(r,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):nt(r,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!dd(r)&&e.hasEffectiveModifiers(r)&&Tc(r,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var f=e.getEffectiveTypeAnnotationNode(r);if(f&&vu(Gs(r.expression),ea(f),r.expression),r.expression.kind===79){var p=r.expression,g=ns(p,67108863,!0,!0,r);if(g){Kx(g,p);var j=g.flags&2097152?gc(g):g;Gc(j)&111551&&Gs(r.expression)}else Gs(r.expression);e.getEmitDeclarations(Ce)&&V(r.expression,!0)}else Gs(r.expression);HM(u),r.flags&16777216&&!e.isEntityNameExpression(r.expression)&&Fn(r.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&!(r.flags&16777216)&&(qe>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.CommonJS?Fn(r,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):qe===e.ModuleKind.System&&Fn(r,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function AY(r){return e.forEachEntry(r.exports,function(a,u){return u!=="export="})}function HM(r){var a=Zn(r),u=la(a);if(!u.exportsChecked){var f=a.exports.get("export=");if(f&&AY(a)){var p=Ol(f)||f.valueDeclaration;p&&!jf(p)&&!e.isInJSFile(p)&&nt(p,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var g=Ll(a);g&&g.forEach(function(j,pe){var Se=j.declarations,Be=j.flags;if(pe!=="__export"&&!(Be&1920)){var fr=e.countWhere(Se,e.and(y,e.not(e.isInterfaceDeclaration)));if(!(Be&524288&&fr<=2)&&fr>1&&!wT(Se))for(var sr=0,gr=Se;sr<gr.length;sr++){var _r=gr[sr];M(_r)&&ya.add(e.createDiagnosticForNode(_r,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(pe)))}}}),u.exportsChecked=!0}}function wT(r){return r&&r.length>1&&r.every(function(a){return e.isInJSFile(a)&&e.isAccessExpression(a)&&(e.isExportsIdentifier(a.expression)||e.isModuleExportsAccessExpression(a.expression))})}function go(r){if(r){var a=me;me=r,we=0,PY(r),me=a}}function PY(r){e.forEach(r.jsDoc,function(u){var f=u.comment,p=u.tags;GM(f),e.forEach(p,function(g){GM(g.comment),e.isInJSFile(r)&&go(g)})});var a=r.kind;if(J)switch(a){case 264:case 260:case 261:case 259:J.throwIfCancellationRequested()}switch(a>=240&&a<=256&&r.flowNode&&!kb(r.flowNode)&&df(Ce.allowUnreachableCode===!1,r,e.Diagnostics.Unreachable_code_detected),a){case 165:return Y7(r);case 166:return Z7(r);case 169:return tM(r);case 168:return hQ(r);case 182:case 181:case 176:case 177:case 178:return A0(r);case 171:case 170:return vQ(r);case 172:return yQ(r);case 173:return bQ(r);case 174:case 175:return iM(r);case 180:return Dw(r);case 179:return dQ(r);case 183:return EQ(r);case 184:return CQ(r);case 185:return kQ(r);case 186:return AQ(r);case 189:case 190:return PQ(r);case 193:case 187:case 188:return go(r.type);case 194:return OQ(r);case 195:return MQ(r);case 191:return FQ(r);case 192:return LQ(r);case 200:return RQ(r);case 202:return BQ(r);case 199:return jQ(r);case 331:return tX(r);case 332:return rX(r);case 348:case 341:case 342:return GQ(r);case 347:return KQ(r);case 346:return QQ(r);case 327:case 328:case 329:return XQ(r);case 343:return YQ(r);case 350:return ZQ(r);case 320:eX(r);case 318:case 317:case 315:case 316:case 325:KM(r),e.forEachChild(r,go);return;case 321:wY(r);return;case 312:return go(r.type);case 336:case 338:case 337:return nX(r);case 196:return wQ(r);case 197:return NQ(r);case 259:return HQ(r);case 238:case 265:return DT(r);case 240:return bX(r);case 241:return SX(r);case 242:return DX(r);case 243:return EX(r);case 244:return CX(r);case 245:return kX(r);case 246:return PX(r);case 247:return AX(r);case 248:case 249:return RX(r);case 250:return BX(r);case 251:return jX(r);case 252:return JX(r);case 253:return UX(r);case 254:return VX(r);case 255:return zX(r);case 257:return kw(r);case 205:return yX(r);case 260:return QX(r);case 261:return oY(r);case 262:return sY(r);case 263:return lY(r);case 264:return mY(r);case 269:return hY(r);case 268:return vY(r);case 275:return yY(r);case 274:return kY(r);case 239:case 256:_d(r);return;case 279:return DQ(r)}}function GM(r){e.isArray(r)&&e.forEach(r,function(a){e.isJSDocLinkLike(a)&&go(a)})}function KM(r){e.isInJSFile(r)||Fn(r,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function wY(r){KM(r),go(r.type);var a=r.parent;if(e.isParameter(a)&&e.isJSDocFunctionType(a.parent)){e.last(a.parent.parameters)!==a&&nt(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(a)||nt(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var u=r.parent.parent;if(!e.isJSDocParameterTag(u)){nt(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var f=e.getParameterSymbolFromJSDoc(u);if(f){var p=e.getHostSignatureFromJSDoc(u);(!p||e.last(p.parameters).symbol!==f)&&nt(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function NY(r){var a=ea(r.type),u=r.parent,f=r.parent.parent;if(e.isJSDocTypeExpression(r.parent)&&e.isJSDocParameterTag(f)){var p=e.getHostSignatureFromJSDoc(f),g=e.isJSDocCallbackTag(f.parent.parent);if(p||g){var j=g?e.lastOrUndefined(f.parent.parent.typeExpression.parameters):e.lastOrUndefined(p.parameters),pe=e.getParameterSymbolFromJSDoc(f);if(!j||pe&&j.symbol===pe&&e.isRestParameter(j))return zc(a)}}return e.isParameter(u)&&e.isJSDocFunctionType(u.parent)?zc(a):dl(a)}function o1(r){var a=e.getSourceFileOfNode(r),u=Mi(a);u.flags&1||(u.deferredNodes||(u.deferredNodes=new e.Set),u.deferredNodes.add(r))}function IY(r){var a=Mi(r);a.deferredNodes&&a.deferredNodes.forEach(OY)}function OY(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var a=me;switch(me=r,we=0,r.kind){case 210:case 211:case 212:case 167:case 283:Zv(r);break;case 215:case 216:case 171:case 170:NK(r);break;case 174:case 175:iM(r);break;case 228:KX(r);break;case 165:pQ(r);break;case 282:nG(r);break;case 281:aG(r);break}me=a,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function MY(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),FY(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function QM(r,a){if(a)return!1;switch(r){case 0:return!!Ce.noUnusedLocals;case 1:return!!Ce.noUnusedParameters;default:return e.Debug.assertNever(r)}}function XM(r){return yc.get(r.path)||e.emptyArray}function FY(r){var a=Mi(r);if(!(a.flags&1)){if(e.skipTypeChecking(r,Ce,I))return;oee(r),e.clear(Yi),e.clear(so),e.clear(da),e.clear(Po),e.clear(Uo),e.forEach(r.statements,go),go(r.endOfFileToken),IY(r),e.isExternalOrCommonJsModule(r)&&T_(r),ee(function(){!r.isDeclarationFile&&(Ce.noUnusedLocals||Ce.noUnusedParameters)&&dM(XM(r),function(u,f,p){!e.containsParseError(u)&&QM(f,!!(u.flags&16777216))&&ya.add(p)}),r.isDeclarationFile||sX()}),Ce.importsNotUsedAsValues===2&&!r.isDeclarationFile&&e.isExternalModule(r)&&EY(r),e.isExternalOrCommonJsModule(r)&&HM(r),Yi.length&&(e.forEach(Yi,lX),e.clear(Yi)),so.length&&(e.forEach(so,fX),e.clear(so)),da.length&&(e.forEach(da,mX),e.clear(da)),Po.length&&(e.forEach(Po,hX),e.clear(Po)),a.flags|=1}}function YM(r,a){try{return J=a,LY(r)}finally{J=void 0}}function Bw(){for(var r=0,a=le;r<a.length;r++){var u=a[r];u()}le=[]}function jw(r){Bw();var a=ee;ee=function(u){return u()},MY(r),ee=a}function LY(r){if(r){Bw();var a=ya.getGlobalDiagnostics(),u=a.length;jw(r);var f=ya.getDiagnostics(r.fileName),p=ya.getGlobalDiagnostics();if(p!==a){var g=e.relativeComplement(a,p,e.compareDiagnostics);return e.concatenate(g,f)}else if(u===0&&p.length>0)return e.concatenate(p,f);return f}return e.forEach(I.getSourceFiles(),jw),ya.getDiagnostics()}function RY(){return Bw(),ya.getGlobalDiagnostics()}function BY(r,a){if(r.flags&33554432)return[];var u=e.createSymbolTable(),f=!1;return p(),u.delete("this"),Z1(u);function p(){for(;r;){switch(r.locals&&!sl(r)&&j(r.locals,a),r.kind){case 308:if(!e.isExternalModule(r))break;case 264:pe(Zn(r).exports,a&2623475);break;case 263:j(Zn(r).exports,a&8);break;case 228:var Se=r.name;Se&&g(r.symbol,a);case 260:case 261:f||j(Pp(Zn(r)),a&788968);break;case 215:var Be=r.name;Be&&g(r.symbol,a);break}e.introducesArgumentsExoticObject(r)&&g(_t,a),f=e.isStatic(r),r=r.parent}j(Rr,a)}function g(Se,Be){if(e.getCombinedLocalAndExportSymbolFlags(Se)&Be){var fr=Se.escapedName;u.has(fr)||u.set(fr,Se)}}function j(Se,Be){Be&&Se.forEach(function(fr){g(fr,Be)})}function pe(Se,Be){Be&&Se.forEach(function(fr){!e.getDeclarationOfKind(fr,278)&&!e.getDeclarationOfKind(fr,277)&&g(fr,Be)})}}function jY(r){return r.kind===79&&e.isTypeDeclaration(r.parent)&&e.getNameOfDeclaration(r.parent)===r}function ZM(r){for(;r.parent.kind===163;)r=r.parent;return r.parent.kind===180}function JY(r){for(;r.parent.kind===208;)r=r.parent;return r.parent.kind===230}function eF(r,a){for(var u;r=e.getContainingClass(r),!(!r||(u=a(r))););return u}function UY(r){return!!e.findAncestor(r,function(a){return e.isConstructorDeclaration(a)&&e.nodeIsPresent(a.body)||e.isPropertyDeclaration(a)?!0:e.isClassLike(a)||e.isFunctionLikeDeclaration(a)?"quit":!1})}function Jw(r,a){return!!eF(r,function(u){return u===a})}function VY(r){for(;r.parent.kind===163;)r=r.parent;if(r.parent.kind===268)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===274)return r.parent.expression===r?r.parent:void 0}function NT(r){return VY(r)!==void 0}function zY(r){var a=e.getAssignmentDeclarationKind(r.parent.parent);switch(a){case 1:case 3:return Zn(r.parent);case 4:case 2:case 5:return Zn(r.parent.parent)}}function WY(r){for(var a=r.parent;e.isQualifiedName(a);)r=a,a=a.parent;if(a&&a.kind===202&&a.qualifier===r)return a}function rF(r){if(e.isDeclarationName(r))return Zn(r.parent);if(e.isInJSFile(r)&&r.parent.kind===208&&r.parent===r.parent.parent.left&&!e.isPrivateIdentifier(r)&&!e.isJSDocMemberName(r)){var a=zY(r);if(a)return a}if(r.parent.kind===274&&e.isEntityNameExpression(r)){var u=ns(r,2998271,!0);if(u&&u!==en)return u}else if(e.isEntityName(r)&&NT(r)){var f=e.getAncestor(r,268);return e.Debug.assert(f!==void 0),Wn(r,!0)}if(e.isEntityName(r)){var p=WY(r);if(p){ea(p);var g=Mi(r).resolvedSymbol;return g===en?void 0:g}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(r);)r=r.parent;if(JY(r)){var j=0;r.parent.kind===230?(j=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)&&(j|=111551)):j=1920,j|=2097152;var pe=e.isEntityNameExpression(r)?ns(r,j):void 0;if(pe)return pe}if(r.parent.kind===343)return e.getParameterSymbolFromJSDoc(r.parent);if(r.parent.kind===165&&r.parent.parent.kind===347){e.Debug.assert(!e.isInJSFile(r));var Se=e.getTypeParameterFromJsDoc(r.parent);return Se&&Se.symbol}if(e.isExpressionNode(r)){if(e.nodeIsMissing(r))return;var Be=e.findAncestor(r,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),j=Be?901119:111551;if(r.kind===79){if(e.isJSXTagName(r)&&Qy(r)){var fr=JP(r.parent);return fr===en?void 0:fr}var sr=ns(r,j,!1,!0,e.getHostSignatureFromJSDoc(r));if(!sr&&Be){var gr=e.findAncestor(r,e.or(e.isClassLike,e.isInterfaceDeclaration));if(gr)return rS(r,!1,Zn(gr))}if(sr&&Be){var gr=e.getJSDocHost(r);if(gr&&e.isEnumMember(gr)&&gr===sr.valueDeclaration)return ns(r,j,!0,!0,e.getSourceFileOfNode(gr))||sr}return sr}else{if(e.isPrivateIdentifier(r))return aT(r);if(r.kind===208||r.kind===163){var _r=Mi(r);if(_r.resolvedSymbol)return _r.resolvedSymbol;if(r.kind===208){if(q5(r,0),!_r.resolvedSymbol){var Kr=Gs(r.expression),mt=sb(Kr,D_(r.name));if(mt.length&&Kr.members){var Vt=El(Kr),fr=Vt.members.get("__index");if(mt===_c(Kr))_r.resolvedSymbol=fr;else if(fr){var wt=la(fr),rn=e.mapDefined(mt,function(li){return li.declaration}),on=e.map(rn,_e).join(",");if(wt.filteredIndexSymbolCache||(wt.filteredIndexSymbolCache=new e.Map),wt.filteredIndexSymbolCache.has(on))_r.resolvedSymbol=wt.filteredIndexSymbolCache.get(on);else{var Un=Lo(131072,"__index");Un.declarations=e.mapDefined(mt,function(li){return li.declaration}),Un.parent=Kr.aliasSymbol?Kr.aliasSymbol:Kr.symbol?Kr.symbol:ql(Un.declarations[0].parent),wt.filteredIndexSymbolCache.set(on,Un),_r.resolvedSymbol=wt.filteredIndexSymbolCache.get(on)}}}}}else $5(r,0);return!_r.resolvedSymbol&&Be&&e.isQualifiedName(r)?rS(r):_r.resolvedSymbol}else if(e.isJSDocMemberName(r))return rS(r)}}else if(ZM(r)){var j=r.parent.kind===180?788968:1920,fr=ns(r,j,!1,!0);return fr&&fr!==en?fr:sx(r)}if(r.parent.kind===179)return ns(r,1)}function rS(r,a,u){if(e.isEntityName(r)){var f=901119,p=ns(r,f,a,!0,e.getHostSignatureFromJSDoc(r));if(!p&&e.isIdentifier(r)&&u&&(p=mo(Nu(Dc(u),r.escapedText,f))),p)return p}var g=e.isIdentifier(r)?u:rS(r.left,a,u),j=e.isIdentifier(r)?r.escapedText:r.right.escapedText;if(g){var pe=g.flags&111551&&Fa(_n(g),"prototype"),Se=pe?_n(pe):mn(g);return Fa(Se,j)}}function ql(r,a){if(r.kind===308)return e.isExternalModule(r)?mo(r.symbol):void 0;var u=r.parent,f=u.parent;if(!(r.flags&33554432)){if(U(r)){var p=Zn(u);return e.isImportOrExportSpecifier(r.parent)&&r.parent.propertyName===r?BP(p):p}else if(e.isLiteralComputedPropertyDeclarationName(r))return Zn(u.parent);if(r.kind===79){if(NT(r))return rF(r);if(u.kind===205&&f.kind===203&&r===u.propertyName){var g=Hh(f),j=Fa(g,r.escapedText);if(j)return j}else if(e.isMetaProperty(u)&&u.name===r)return u.keywordToken===103&&e.idText(r)==="target"?uw(u).symbol:u.keywordToken===100&&e.idText(r)==="meta"?vO().members.get("meta"):void 0}switch(r.kind){case 79:case 80:case 208:case 163:if(!e.isThisInTypeQuery(r))return rF(r);case 108:var pe=e.getThisContainer(r,!1);if(e.isFunctionLike(pe)){var Se=of(pe);if(Se.thisParameter)return Se.thisParameter}if(e.isInExpressionContext(r))return Ra(r).symbol;case 194:return vx(r).symbol;case 106:return Ra(r).symbol;case 135:var Be=r.parent;return Be&&Be.kind===173?Be.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(r.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(r.parent.parent)===r||(r.parent.kind===269||r.parent.kind===275)&&r.parent.moduleSpecifier===r||e.isInJSFile(r)&&e.isRequireCall(r.parent,!1)||e.isImportCall(r.parent)||e.isLiteralTypeNode(r.parent)&&e.isLiteralImportTypeNode(r.parent.parent)&&r.parent.parent.argument===r.parent)return Ac(r,r,a);if(e.isCallExpression(u)&&e.isBindableObjectDefinePropertyCall(u)&&u.arguments[1]===r)return Zn(u);case 8:var fr=e.isElementAccessExpression(u)?u.argumentExpression===r?Ic(u.expression):void 0:e.isLiteralTypeNode(u)&&e.isIndexedAccessTypeNode(f)?ea(f.objectType):void 0;return fr&&Fa(fr,e.escapeLeadingUnderscores(r.text));case 88:case 98:case 38:case 84:return Zn(r.parent);case 202:return e.isLiteralImportTypeNode(r)?ql(r.argument.literal,a):void 0;case 93:return e.isExportAssignment(r.parent)?e.Debug.checkDefined(r.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(r.parent)?A7(r.parent).symbol:void 0;case 233:return Ra(r).symbol;default:return}}}function qY(r){if(e.isIdentifier(r)&&e.isPropertyAccessExpression(r.parent)&&r.parent.name===r){var a=D_(r),u=Ic(r.parent.expression),f=u.flags&1048576?u.types:[u];return e.flatMap(f,function(p){return e.filter(_c(p),function(g){return kf(a,g.keyType)})})}}function $Y(r){if(r&&r.kind===300)return ns(r.name,2208703)}function HY(r){return e.isExportSpecifier(r)?r.parent.parent.moduleSpecifier?cl(r.parent.parent,r):ns(r.propertyName||r.name,2998271):ns(r,2998271)}function Hh(r){if(e.isSourceFile(r)&&!e.isExternalModule(r)||r.flags&33554432)return ar;var a=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(r),u=a&&Ou(Zn(a.class));if(e.isPartOfTypeNode(r)){var f=ea(r);return u?Hu(f,u.thisType):f}if(e.isExpressionNode(r))return tF(r);if(u&&!a.isImplements){var p=e.firstOrUndefined(Jc(u));return p?Hu(p,u.thisType):ar}if(e.isTypeDeclaration(r)){var g=Zn(r);return mn(g)}if(jY(r)){var g=ql(r);return g?mn(g):ar}if(e.isDeclaration(r)){var g=Zn(r);return g?_n(g):ar}if(U(r)){var g=ql(r);return g?_n(g):ar}if(e.isBindingPattern(r))return am(r.parent,!0,0)||ar;if(NT(r)){var g=ql(r);if(g){var j=mn(g);return pa(j)?_n(g):j}}return e.isMetaProperty(r.parent)&&r.parent.keywordToken===r.kind?A7(r.parent):ar}function IT(r){if(e.Debug.assert(r.kind===207||r.kind===206),r.parent.kind===247){var a=Yb(r.parent);return nh(r,a||ar)}if(r.parent.kind===223){var a=Ic(r.parent.right);return nh(r,a||ar)}if(r.parent.kind===299){var u=e.cast(r.parent.parent,e.isObjectLiteralExpression),f=IT(u)||ar,p=e.indexOfNode(u.properties,r.parent);return U7(u,f,p)}var g=e.cast(r.parent,e.isArrayLiteralExpression),j=IT(g)||ar,pe=E_(65,j,Ar,r.parent)||ar;return V7(g,j,g.elements.indexOf(r),pe)}function GY(r){var a=IT(e.cast(r.parent.parent,e.isAssignmentPattern));return a&&Fa(a,r.escapedText)}function tF(r){return e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),Eu(Ic(r))}function KY(r){var a=Zn(r.parent);return e.isStatic(r)?_n(a):mn(a)}function QY(r){var a=r.name;switch(a.kind){case 79:return kl(e.idText(a));case 8:case 10:return kl(a.text);case 164:var u=$d(a);return mc(u,12288)?u:Ft;default:return e.Debug.fail("Unsupported property name.")}}function Uw(r){r=Gr(r);var a=e.createSymbolTable(Ro(r)),u=La(r,0).length?kn:La(r,1).length?Cn:void 0;return u&&e.forEach(Ro(u),function(f){a.has(f.escapedName)||a.set(f.escapedName,f)}),Dp(a)}function Vw(r){return e.typeHasCallOrConstructSignatures(r,Fe)}function nF(r){var a=XY(r);return a?e.flatMap(a,nF):[r]}function XY(r){if(e.getCheckFlags(r)&6)return e.mapDefined(la(r).containingType.types,function(g){return Fa(g,r.escapedName)});if(r.flags&33554432){var a=r,u=a.leftSpread,f=a.rightSpread,p=a.syntheticOrigin;return u?[u,f]:p?[p]:e.singleElementArray(YY(r))}}function YY(r){for(var a,u=r;u=la(u).target;)a=u;return a}function ZY(r){if(e.isGeneratedIdentifier(r))return!1;var a=e.getParseTreeNode(r,e.isIdentifier);if(!a)return!1;var u=a.parent;if(!u)return!1;var f=(e.isPropertyAccessExpression(u)||e.isPropertyAssignment(u))&&u.name===a;return!f&&tS(a)===_t}function eZ(r){var a=Ac(r.parent,r);if(!a||e.isShorthandAmbientModuleSymbol(a))return!0;var u=ef(a);a=Rc(a);var f=la(a);return f.exportsSomeValue===void 0&&(f.exportsSomeValue=u?!!(a.flags&111551):e.forEachEntry(Ll(a),p)),f.exportsSomeValue;function p(g){return g=Vs(g),g&&!!(Gc(g)&111551)}}function rZ(r){return e.isModuleOrEnumDeclaration(r.parent)&&r===r.parent.name}function tZ(r,a){var u,f=e.getParseTreeNode(r,e.isIdentifier);if(f){var p=tS(f,rZ(f));if(p){if(p.flags&1048576){var g=mo(p.exportSymbol);if(!a&&g.flags&944&&!(g.flags&3))return;p=g}var j=Bc(p);if(j){if(j.flags&512&&((u=j.valueDeclaration)===null||u===void 0?void 0:u.kind)===308){var pe=j.valueDeclaration,Se=e.getSourceFileOfNode(f),Be=pe!==Se;return Be?void 0:pe}return e.findAncestor(f.parent,function(fr){return e.isModuleOrEnumDeclaration(fr)&&Zn(fr)===j})}}}}function nZ(r){if(r.generatedImportReference)return r.generatedImportReference;var a=e.getParseTreeNode(r,e.isIdentifier);if(a){var u=gZ(a);if(Pd(u,111551)&&!ba(u,111551))return Ol(u)}}function iZ(r){return r.valueDeclaration&&e.isBindingElement(r.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(r.valueDeclaration).parent.kind===295}function iF(r){if(r.flags&418&&r.valueDeclaration&&!e.isSourceFile(r.valueDeclaration)){var a=la(r);if(a.isDeclarationWithCollidingName===void 0){var u=e.getEnclosingBlockScopeContainer(r.valueDeclaration);if(e.isStatementWithLocals(u)||iZ(r)){var f=Mi(r.valueDeclaration);if(Ls(u.parent,r.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(f.flags&262144){var p=f.flags&524288,g=e.isIterationStatement(u,!1),j=u.kind===238&&e.isIterationStatement(u.parent,!1);a.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(u)&&(!p||!g&&!j)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function aZ(r){if(!e.isGeneratedIdentifier(r)){var a=e.getParseTreeNode(r,e.isIdentifier);if(a){var u=tS(a);if(u&&iF(u))return u.valueDeclaration}}}function oZ(r){var a=e.getParseTreeNode(r,e.isDeclaration);if(a){var u=Zn(a);if(u)return iF(u)}return!1}function aF(r){switch(r.kind){case 268:return OT(Zn(r));case 270:case 271:case 273:case 278:var a=Zn(r);return!!a&&OT(a)&&!ba(a,111551);case 275:var u=r.exportClause;return!!u&&(e.isNamespaceExport(u)||e.some(u.elements,aF));case 274:return r.expression&&r.expression.kind===79?OT(Zn(r)):!0}return!1}function sZ(r){var a=e.getParseTreeNode(r,e.isImportEqualsDeclaration);if(a===void 0||a.parent.kind!==308||!e.isInternalModuleImportEqualsDeclaration(a))return!1;var u=OT(Zn(a));return u&&a.moduleReference&&!e.nodeIsMissing(a.moduleReference)}function OT(r){var a;if(!r)return!1;var u=Iu(gc(r));return u===en?!0:!!(((a=Gc(u))!==null&&a!==void 0?a:-1)&111551)&&(e.shouldPreserveConstEnums(Ce)||!F0(u))}function F0(r){return mw(r)||!!r.constEnumOnlyModule}function MT(r,a){if(xd(r)){var u=Zn(r),f=u&&la(u);if(f!=null&&f.referenced)return!0;var p=la(u).aliasTarget;if(p&&e.getEffectiveModifierFlags(r)&1&&Gc(p)&111551&&(e.shouldPreserveConstEnums(Ce)||!F0(p)))return!0}return a?!!e.forEachChild(r,function(g){return MT(g,a)}):!1}function oF(r){if(e.nodeIsPresent(r.body)){if(e.isGetAccessor(r)||e.isSetAccessor(r))return!1;var a=Zn(r),u=eg(a);return u.length>1||u.length===1&&u[0].declaration!==r}return!1}function sF(r){return!!ue&&!Lh(r)&&!e.isJSDocParameterTag(r)&&!!r.initializer&&!e.hasSyntacticModifier(r,16476)}function cZ(r){return ue&&Lh(r)&&!r.initializer&&e.hasSyntacticModifier(r,16476)}function uZ(r){var a=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!a)return!1;var u=Zn(a);return!u||!(u.flags&16)?!1:!!e.forEachEntry(Dc(u),function(f){return f.flags&111551&&f.valueDeclaration&&e.isPropertyAccessExpression(f.valueDeclaration)})}function lZ(r){var a=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!a)return e.emptyArray;var u=Zn(a);return u&&Ro(_n(u))||e.emptyArray}function ay(r){var a,u=r.id||0;return u<0||u>=$t.length?0:((a=$t[u])===null||a===void 0?void 0:a.flags)||0}function FT(r){return zM(r.parent),Mi(r).enumMemberValue}function cF(r){switch(r.kind){case 302:case 208:case 209:return!0}return!1}function zw(r){if(r.kind===302)return FT(r);var a=Mi(r).resolvedSymbol;if(a&&a.flags&8){var u=a.valueDeclaration;if(e.isEnumConst(u.parent))return FT(u)}}function Ww(r){return!!(r.flags&524288)&&La(r,0).length>0}function fZ(r,a){var u,f,p=e.getParseTreeNode(r,e.isEntityName);if(!p||a&&(a=e.getParseTreeNode(a),!a))return e.TypeReferenceSerializationKind.Unknown;var g=!1;if(e.isQualifiedName(p)){var j=ns(e.getFirstIdentifier(p),111551,!0,!0,a);g=!!(!((u=j==null?void 0:j.declarations)===null||u===void 0)&&u.every(e.isTypeOnlyImportOrExportDeclaration))}var pe=ns(p,111551,!0,!0,a),Se=pe&&pe.flags&2097152?gc(pe):pe;g||(g=!!(!((f=pe==null?void 0:pe.declarations)===null||f===void 0)&&f.every(e.isTypeOnlyImportOrExportDeclaration)));var Be=ns(p,788968,!0,!1,a);if(Se&&Se===Be){var fr=fA(!1);if(fr&&Se===fr)return e.TypeReferenceSerializationKind.Promise;var sr=_n(Se);if(sr&&Av(sr))return g?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!Be)return g?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var gr=mn(Be);return pa(gr)?g?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:gr.flags&3?e.TypeReferenceSerializationKind.ObjectType:mc(gr,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:mc(gr,528)?e.TypeReferenceSerializationKind.BooleanType:mc(gr,296)?e.TypeReferenceSerializationKind.NumberLikeType:mc(gr,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:mc(gr,402653316)?e.TypeReferenceSerializationKind.StringLikeType:po(gr)?e.TypeReferenceSerializationKind.ArrayLikeType:mc(gr,12288)?e.TypeReferenceSerializationKind.ESSymbolType:Ww(gr)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Al(gr)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function pZ(r,a,u,f,p){var g=e.getParseTreeNode(r,e.isVariableLikeOrAccessor);if(!g)return e.factory.createToken(131);var j=Zn(g),pe=j&&!(j.flags&133120)?cg(_n(j)):ar;return pe.flags&8192&&pe.symbol===j&&(u|=1048576),p&&(pe=Wd(pe)),qr.typeToTypeNode(pe,a,u|1024,f)}function dZ(r,a,u,f){var p=e.getParseTreeNode(r,e.isFunctionLike);if(!p)return e.factory.createToken(131);var g=of(p);return qr.typeToTypeNode(Ho(g),a,u|1024,f)}function _Z(r,a,u,f){var p=e.getParseTreeNode(r,e.isExpression);if(!p)return e.factory.createToken(131);var g=Gu(tF(p));return qr.typeToTypeNode(g,a,u|1024,f)}function mZ(r){return Rr.has(e.escapeLeadingUnderscores(r))}function tS(r,a){var u=Mi(r).resolvedSymbol;if(u)return u;var f=r;if(a){var p=r.parent;e.isDeclaration(p)&&r===p.name&&(f=Ii(p))}return Ls(f,r.escapedText,3257279,void 0,void 0,!0)}function gZ(r){var a=Mi(r).resolvedSymbol;return a&&a!==en?a:Ls(r,r.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function hZ(r){if(!e.isGeneratedIdentifier(r)){var a=e.getParseTreeNode(r,e.isIdentifier);if(a){var u=tS(a);if(u)return Iu(u).valueDeclaration}}}function vZ(r){return e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r)?ag(_n(Zn(r))):!1}function yZ(r,a,u){var f=r.flags&1024?qr.symbolToExpression(r.symbol,111551,a,void 0,u):r===Bn?e.factory.createTrue():r===un&&e.factory.createFalse();if(f)return f;var p=r.value;return typeof p=="object"?e.factory.createBigIntLiteral(p):typeof p=="number"?e.factory.createNumericLiteral(p):e.factory.createStringLiteral(p)}function bZ(r,a){var u=_n(Zn(r));return yZ(u,r,a)}function uF(r){return r?(fs(r),e.getSourceFileOfNode(r).localJsxFactory||Mt):Mt}function qw(r){if(r){var a=e.getSourceFileOfNode(r);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;var u=a.pragmas.get("jsxfrag"),f=e.isArray(u)?u[0]:u;if(f)return a.localJsxFragmentFactory=e.parseIsolatedEntityName(f.arguments.factory,Ae),a.localJsxFragmentFactory}}if(Ce.jsxFragmentFactory)return e.parseIsolatedEntityName(Ce.jsxFragmentFactory,Ae)}function SZ(){var r=I.getResolvedTypeReferenceDirectives(),a;return r&&(a=new e.Map,r.forEach(function(Se,Be,fr){if(!(!Se||!Se.resolvedFileName)){var sr=I.getSourceFile(Se.resolvedFileName);sr&&pe(sr,Be,fr)}})),{getReferencedExportContainer:tZ,getReferencedImportDeclaration:nZ,getReferencedDeclarationWithCollidingName:aZ,isDeclarationWithCollidingName:oZ,isValueAliasDeclaration:function(Se){var Be=e.getParseTreeNode(Se);return Be?aF(Be):!0},hasGlobalName:mZ,isReferencedAliasDeclaration:function(Se,Be){var fr=e.getParseTreeNode(Se);return fr?MT(fr,Be):!0},getNodeCheckFlags:function(Se){var Be=e.getParseTreeNode(Se);return Be?ay(Be):0},isTopLevelValueImportEqualsWithEntityName:sZ,isDeclarationVisible:Dl,isImplementationOfOverload:oF,isRequiredInitializedParameter:sF,isOptionalUninitializedParameterProperty:cZ,isExpandoFunctionDeclaration:uZ,getPropertiesOfContainerFunction:lZ,createTypeOfDeclaration:pZ,createReturnTypeOfSignatureDeclaration:dZ,createTypeOfExpression:_Z,createLiteralConstValue:bZ,isSymbolAccessible:rf,isEntityNameVisible:Tf,getConstantValue:function(Se){var Be=e.getParseTreeNode(Se,cF);return Be?zw(Be):void 0},collectLinkedAliases:V,getReferencedValueDeclaration:hZ,getTypeReferenceSerializationKind:fZ,isOptionalParameter:Lh,moduleExportsSomeValue:eZ,isArgumentsLocalBinding:ZY,getExternalModuleFileFromDeclaration:function(Se){var Be=e.getParseTreeNode(Se,e.hasPossibleExternalModuleReference);return Be&&$w(Be)},getTypeReferenceDirectivesForEntityName:p,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:vZ,isLateBound:function(Se){var Be=e.getParseTreeNode(Se,e.isDeclaration),fr=Be&&Zn(Be);return!!(fr&&e.getCheckFlags(fr)&4096)},getJsxFactoryEntity:uF,getJsxFragmentFactoryEntity:qw,getAllAccessorDeclarations:function(Se){Se=e.getParseTreeNode(Se,e.isGetOrSetAccessorDeclaration);var Be=Se.kind===175?174:175,fr=e.getDeclarationOfKind(Zn(Se),Be),sr=fr&&fr.pos<Se.pos?fr:Se,gr=fr&&fr.pos<Se.pos?Se:fr,_r=Se.kind===175?Se:fr,Kr=Se.kind===174?Se:fr;return{firstAccessor:sr,secondAccessor:gr,setAccessor:_r,getAccessor:Kr}},getSymbolOfExternalModuleSpecifier:function(Se){return hp(Se,Se,void 0)},isBindingCapturedByNode:function(Se,Be){var fr=e.getParseTreeNode(Se),sr=e.getParseTreeNode(Be);return!!fr&&!!sr&&(e.isVariableDeclaration(sr)||e.isBindingElement(sr))&&hH(fr,sr)},getDeclarationStatementsForSourceFile:function(Se,Be,fr,sr){var gr=e.getParseTreeNode(Se);e.Debug.assert(gr&&gr.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");var _r=Zn(Se);return _r?_r.exports?qr.symbolTableToDeclarationStatements(_r.exports,Se,Be,fr,sr):[]:Se.locals?qr.symbolTableToDeclarationStatements(Se.locals,Se,Be,fr,sr):[]},isImportRequiredByAugmentation:u};function u(Se){var Be=e.getSourceFileOfNode(Se);if(!Be.symbol)return!1;var fr=$w(Se);if(!fr||fr===Be)return!1;for(var sr=Ll(Be.symbol),gr=0,_r=e.arrayFrom(sr.values());gr<_r.length;gr++){var Kr=_r[gr];if(Kr.mergeId){var mt=mo(Kr);if(mt.declarations)for(var Vt=0,wt=mt.declarations;Vt<wt.length;Vt++){var rn=wt[Vt],on=e.getSourceFileOfNode(rn);if(on===fr)return!0}}}return!1}function f(Se){return Se.parent&&Se.parent.kind===230&&Se.parent.parent&&Se.parent.parent.kind===294}function p(Se){if(a){var Be;Se.parent.kind===164?Be=1160127:(Be=790504,(Se.kind===79&&Hy(Se)||Se.kind===208&&!f(Se))&&(Be=1160127));var fr=ns(Se,Be,!0);return fr&&fr!==en?g(fr,Be):void 0}}function g(Se,Be){if(!(!a||!j(Se))){for(var fr,sr=0,gr=Se.declarations;sr<gr.length;sr++){var _r=gr[sr];if(_r.symbol&&_r.symbol.flags&Be){var Kr=e.getSourceFileOfNode(_r),mt=a.get(Kr.path);if(mt)(fr||(fr=[])).push(mt);else return}}return fr}}function j(Se){if(!Se.declarations)return!1;for(var Be=Se;;){var fr=Bc(Be);if(fr)Be=fr;else break}if(Be.valueDeclaration&&Be.valueDeclaration.kind===308&&Be.flags&512)return!1;for(var sr=0,gr=Se.declarations;sr<gr.length;sr++){var _r=gr[sr],Kr=e.getSourceFileOfNode(_r);if(a.has(Kr.path))return!0}return!1}function pe(Se,Be,fr){if(!a.has(Se.path)){a.set(Se.path,[Be,fr]);for(var sr=0,gr=Se.referencedFiles;sr<gr.length;sr++){var _r=gr[sr],Kr=_r.fileName,mt=_r.resolutionMode,Vt=e.resolveTripleslashReference(Kr,Se.fileName),wt=I.getSourceFile(Vt);wt&&pe(wt,Be,mt||Se.impliedNodeFormat)}}}}function $w(r){var a=r.kind===264?e.tryCast(r.name,e.isStringLiteral):e.getExternalModuleName(r),u=hp(a,a,void 0);if(u)return e.getDeclarationOfKind(u,308)}function DZ(){for(var r=0,a=I.getSourceFiles();r<a.length;r++){var u=a[r];e.bindSourceFile(u,Ce)}lt=new e.Map;for(var f,p=0,g=I.getSourceFiles();p<g.length;p++){var u=g[p];if(!u.redirectInfo){if(!e.isExternalOrCommonJsModule(u)){var j=u.locals.get("globalThis");if(j!=null&&j.declarations)for(var pe=0,Se=j.declarations;pe<Se.length;pe++){var Be=Se[pe];ya.add(e.createDiagnosticForNode(Be,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}tl(Rr,u.locals)}if(u.jsGlobalAugmentations&&tl(Rr,u.jsGlobalAugmentations),u.patternAmbientModules&&u.patternAmbientModules.length&&(Er=e.concatenate(Er,u.patternAmbientModules)),u.moduleAugmentations.length&&(f||(f=[])).push(u.moduleAugmentations),u.symbol&&u.symbol.globalExports){var fr=u.symbol.globalExports;fr.forEach(function(Ti,li){Rr.has(li)||Rr.set(li,Ti)})}}}if(f)for(var sr=0,gr=f;sr<gr.length;sr++)for(var _r=gr[sr],Kr=0,mt=_r;Kr<mt.length;Kr++){var Vt=mt[Kr];e.isGlobalScopeAugmentation(Vt.parent)&&Lm(Vt)}if(o_(Rr,qo,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),la(zr).type=rt,la(_t).type=Xc("IArguments",0,!0),la(en).type=ar,la(Fr).type=ll(16,Fr),_i=Xc("Array",1,!0),Ot=Xc("Object",0,!0),ln=Xc("Function",0,!0),kn=Je&&Xc("CallableFunction",0,!0)||ln,Cn=Je&&Xc("NewableFunction",0,!0)||ln,va=Xc("String",0,!0),Ia=Xc("Number",0,!0),$a=Xc("Boolean",0,!0),ws=Xc("RegExp",0,!0),Wo=zc(Ie),ds=zc(We),ds===fn&&(ds=Es(void 0,rr,e.emptyArray,e.emptyArray,e.emptyArray)),qi=TO("ReadonlyArray",1)||_i,yu=qi?i0(qi,[Ie]):Wo,rc=TO("ThisType",1),f)for(var wt=0,rn=f;wt<rn.length;wt++)for(var _r=rn[wt],on=0,Un=_r;on<Un.length;on++){var Vt=Un[on];e.isGlobalScopeAugmentation(Vt.parent)||Lm(Vt)}lt.forEach(function(Gn){var Ti=Gn.firstFile,li=Gn.secondFile,Ja=Gn.conflictingSymbols;if(Ja.size<8)Ja.forEach(function(Ua,Wa){for(var Ga=Ua.isBlockScoped,Bo=Ua.firstFileLocations,jo=Ua.secondFileLocations,No=Ga?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Ca=0,hn=Bo;Ca<hn.length;Ca++){var qt=hn[Ca];Fm(qt,No,Wa,jo)}for(var yi=0,Bi=jo;yi<Bi.length;yi++){var qt=Bi[yi];Fm(qt,No,Wa,Bo)}});else{var Ai=e.arrayFrom(Ja.keys()).join(", ");ya.add(e.addRelatedInfo(e.createDiagnosticForNode(Ti,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Ai),e.createDiagnosticForNode(li,e.Diagnostics.Conflicts_are_in_this_file))),ya.add(e.addRelatedInfo(e.createDiagnosticForNode(li,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Ai),e.createDiagnosticForNode(Ti,e.Diagnostics.Conflicts_are_in_this_file)))}}),lt=void 0}function Zc(r,a){if((de&a)!==a&&Ce.importHelpers){var u=e.getSourceFileOfNode(r);if(e.isEffectiveExternalModule(u,Ce)&&!(r.flags&16777216)){var f=TZ(u,r);if(f!==en){for(var p=a&~de,g=1;g<=4194304;g<<=1)if(p&g){var j=xZ(g),pe=Nu(f.exports,e.escapeLeadingUnderscores(j),111551);pe?g&524288?e.some(eg(pe),function(Se){return Ku(Se)>3})||nt(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,j,4):g&1048576?e.some(eg(pe),function(Se){return Ku(Se)>4})||nt(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,j,5):g&1024&&(e.some(eg(pe),function(Se){return Ku(Se)>2})||nt(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,j,3)):nt(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,j)}}de|=a}}}function xZ(r){switch(r){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function TZ(r,a){return De||(De=Zl(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||en),De}function dd(r){return EZ(r)||lF(r)}function EZ(r){if(e.canHaveIllegalDecorators(r)&&e.some(r.illegalDecorators))return Tc(r,e.Diagnostics.Decorators_are_not_valid_here);if(!e.canHaveDecorators(r)||!e.hasDecorators(r))return!1;if(e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){if(r.kind===174||r.kind===175){var a=e.getAllAccessorDeclarations(r.parent.members,r);if(e.hasDecorators(a.firstAccessor)&&r===a.secondAccessor)return Tc(r,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===171&&!e.nodeIsPresent(r.body)?Tc(r,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Tc(r,e.Diagnostics.Decorators_are_not_valid_here);return!1}function lF(r){var a=CZ(r);if(a!==void 0)return a;for(var u,f,p,g,j=0,pe=0,Se=r.modifiers;pe<Se.length;pe++){var Be=Se[pe];if(!e.isDecorator(Be)){if(Be.kind!==146){if(r.kind===168||r.kind===170)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(Be.kind));if(r.kind===178&&(Be.kind!==124||!e.isClassLike(r.parent)))return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(Be.kind))}if(Be.kind!==101&&Be.kind!==145&&r.kind===165)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_type_parameter,e.tokenToString(Be.kind));switch(Be.kind){case 85:if(r.kind!==263)return Fn(r,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 161:if(j&16384)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"override");if(j&2)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(j&64)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(j&128)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","accessor");if(j&512)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");j|=16384,g=Be;break;case 123:case 122:case 121:var fr=tm(e.modifierToFlag(Be.kind));if(j&28)return Fn(Be,e.Diagnostics.Accessibility_modifier_already_seen);if(j&16384)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,fr,"override");if(j&32)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,fr,"static");if(j&128)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,fr,"accessor");if(j&64)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,fr,"readonly");if(j&512)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,fr,"async");if(r.parent.kind===265||r.parent.kind===308)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,fr);if(j&256)return Be.kind===121?Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,fr,"abstract"):Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,fr,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(r))return Fn(Be,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);j|=e.modifierToFlag(Be.kind);break;case 124:if(j&32)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"static");if(j&64)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(j&512)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(j&128)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===265||r.parent.kind===308)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===166)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(j&256)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(j&16384)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");j|=32,u=Be;break;case 127:if(j&128)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"accessor");if(j&64)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(j&2)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==169)return Fn(Be,e.Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration);j|=128;break;case 146:if(j&64)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"readonly");if(r.kind!==169&&r.kind!==168&&r.kind!==178&&r.kind!==166)return Fn(Be,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);j|=64;break;case 93:if(j&1)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"export");if(j&2)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(j&256)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(j&512)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(r.parent))return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===166)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");j|=1;break;case 88:var sr=r.parent.kind===308?r.parent:r.parent.parent;if(sr.kind===264&&!e.isAmbientModule(sr))return Fn(Be,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(j&1))return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");j|=1024;break;case 136:if(j&2)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"declare");if(j&512)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(j&16384)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(r.parent)&&!e.isPropertyDeclaration(r))return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===166)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&16777216&&r.parent.kind===265)return Fn(Be,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(r))return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");j|=2,f=Be;break;case 126:if(j&256)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"abstract");if(r.kind!==260&&r.kind!==182){if(r.kind!==171&&r.kind!==169&&r.kind!==174&&r.kind!==175)return Fn(Be,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===260&&e.hasSyntacticModifier(r.parent,256)))return Fn(Be,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(j&32)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(j&8)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(j&512&&p)return Fn(p,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(j&16384)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override");if(j&128)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(e.isNamedDeclaration(r)&&r.name.kind===80)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");j|=256;break;case 132:if(j&512)return Fn(Be,e.Diagnostics._0_modifier_already_seen,"async");if(j&2||r.parent.flags&16777216)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===166)return Fn(Be,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(j&256)return Fn(Be,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");j|=512,p=Be;break;case 101:case 145:var gr=Be.kind===101?32768:65536,_r=Be.kind===101?"in":"out";if(r.kind!==165||!(e.isInterfaceDeclaration(r.parent)||e.isClassLike(r.parent)||e.isTypeAliasDeclaration(r.parent)))return Fn(Be,e.Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,_r);if(j&gr)return Fn(Be,e.Diagnostics._0_modifier_already_seen,_r);if(gr&32768&&j&65536)return Fn(Be,e.Diagnostics._0_modifier_must_precede_1_modifier,"in","out");j|=gr;break}}}return r.kind===173?j&32?Fn(u,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):j&16384?Fn(g,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):j&512?Fn(p,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===269||r.kind===268)&&j&2?Fn(f,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===166&&j&16476&&e.isBindingPattern(r.name)?Fn(r,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===166&&j&16476&&r.dotDotDotToken?Fn(r,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):j&512?AZ(r,p):!1}function CZ(r){return r.modifiers?kZ(r)?Tc(r,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function kZ(r){switch(r.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return!1;case 172:case 299:case 300:case 267:case 181:case 279:return!0;default:if(r.parent.kind===265||r.parent.kind===308)return!1;switch(r.kind){case 259:return Hw(r,132);case 260:case 182:return Hw(r,126);case 228:case 261:case 240:case 262:return!0;case 263:return Hw(r,85);default:e.Debug.assertNever(r)}}}function Hw(r,a){for(var u=0,f=r.modifiers;u<f.length;u++){var p=f[u];if(!e.isDecorator(p))return p.kind!==a}return!1}function AZ(r,a){switch(r.kind){case 171:case 259:case 215:case 216:return!1}return Fn(a,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Gh(r,a){return a===void 0&&(a=e.Diagnostics.Trailing_comma_not_allowed),r&&r.hasTrailingComma?gg(r[0],r.end-1,1,a):!1}function fF(r,a){if(r&&r.length===0){var u=r.pos-1,f=e.skipTrivia(a.text,r.end)+1;return gg(a,u,f-u,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function PZ(r){for(var a=!1,u=r.length,f=0;f<u;f++){var p=r[f];if(p.dotDotDotToken){if(f!==u-1)return Fn(p.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(p.flags&16777216||Gh(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),p.questionToken)return Fn(p.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(p.initializer)return Fn(p.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Lh(p)){if(a=!0,p.questionToken&&p.initializer)return Fn(p.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!p.initializer)return Fn(p.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function wZ(r){return e.filter(r,function(a){return!!a.initializer||e.isBindingPattern(a.name)||e.isRestParameter(a)})}function NZ(r){if(Ae>=3){var a=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(a){var u=wZ(r.parameters);if(e.length(u)){e.forEach(u,function(p){e.addRelatedInfo(nt(p,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(a,e.Diagnostics.use_strict_directive_used_here))});var f=u.map(function(p,g){return g===0?e.createDiagnosticForNode(p,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(p,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,t([nt(a,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],f,!1)),!0}}}return!1}function LT(r){var a=e.getSourceFileOfNode(r);return dd(r)||fF(r.typeParameters,a)||PZ(r.parameters)||OZ(r,a)||e.isFunctionLikeDeclaration(r)&&NZ(r)}function IZ(r){var a=e.getSourceFileOfNode(r);return BZ(r)||fF(r.typeParameters,a)}function OZ(r,a){if(!e.isArrowFunction(r))return!1;r.typeParameters&&!(e.length(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&a&&e.fileExtensionIsOneOf(a.fileName,[".mts",".cts"])&&Fn(r.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var u=r.equalsGreaterThanToken,f=e.getLineAndCharacterOfPosition(a,u.pos).line,p=e.getLineAndCharacterOfPosition(a,u.end).line;return f!==p&&Fn(u,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function MZ(r){var a=r.parameters[0];if(r.parameters.length!==1)return Fn(a?a.name:r,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(Gh(r.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Fn(a.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(a))return Fn(a.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Fn(a.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Fn(a.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Fn(a.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var u=ea(a.type);return pd(u,function(f){return!!(f.flags&8576)})||Bh(u)?Fn(a.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Ip(u,ax)?r.type?!1:Fn(r,e.Diagnostics.An_index_signature_must_have_a_type_annotation):Fn(a.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function FZ(r){return dd(r)||MZ(r)}function LZ(r,a){if(a&&a.length===0){var u=e.getSourceFileOfNode(r),f=a.pos-1,p=e.skipTrivia(u.text,a.end)+1;return gg(u,f,p-f,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function nS(r,a){return Gh(a)||LZ(r,a)}function RZ(r){return r.questionDotToken||r.flags&32?Fn(r.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function pF(r){var a=r.types;if(Gh(a))return!0;if(a&&a.length===0){var u=e.tokenToString(r.token);return gg(r,a.pos,0,e.Diagnostics._0_list_cannot_be_empty,u)}return e.some(a,dF)}function dF(r){return e.isExpressionWithTypeArguments(r)&&e.isImportKeyword(r.expression)&&r.typeArguments?Fn(r,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):nS(r,r.typeArguments)}function BZ(r){var a=!1,u=!1;if(!dd(r)&&r.heritageClauses)for(var f=0,p=r.heritageClauses;f<p.length;f++){var g=p[f];if(g.token===94){if(a)return Tc(g,e.Diagnostics.extends_clause_already_seen);if(u)return Tc(g,e.Diagnostics.extends_clause_must_precede_implements_clause);if(g.types.length>1)return Tc(g.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);a=!0}else{if(e.Debug.assert(g.token===117),u)return Tc(g,e.Diagnostics.implements_clause_already_seen);u=!0}pF(g)}}function jZ(r){var a=!1;if(r.heritageClauses)for(var u=0,f=r.heritageClauses;u<f.length;u++){var p=f[u];if(p.token===94){if(a)return Tc(p,e.Diagnostics.extends_clause_already_seen);a=!0}else return e.Debug.assert(p.token===117),Tc(p,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);pF(p)}return!1}function RT(r){if(r.kind!==164)return!1;var a=r;return a.expression.kind===223&&a.expression.operatorToken.kind===27?Fn(a.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Gw(r){if(r.asteriskToken){if(e.Debug.assert(r.kind===259||r.kind===215||r.kind===171),r.flags&16777216)return Fn(r.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return Fn(r.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function Kw(r,a){return!!r&&Fn(r,a)}function _F(r,a){return!!r&&Fn(r,a)}function JZ(r,a){for(var u=new e.Map,f=0,p=r.properties;f<p.length;f++){var g=p[f];if(g.kind===301){if(a){var j=e.skipParentheses(g.expression);if(e.isArrayLiteralExpression(j)||e.isObjectLiteralExpression(j))return Fn(g.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var pe=g.name;if(pe.kind===164&&RT(pe),g.kind===300&&!a&&g.objectAssignmentInitializer&&Fn(g.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),pe.kind===80&&Fn(pe,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),e.canHaveModifiers(g)&&g.modifiers)for(var Se=0,Be=g.modifiers;Se<Be.length;Se++){var fr=Be[Se];e.isModifier(fr)&&(fr.kind!==132||g.kind!==171)&&Fn(fr,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(fr))}else if(e.canHaveIllegalModifiers(g)&&g.modifiers)for(var sr=0,gr=g.modifiers;sr<gr.length;sr++){var fr=gr[sr];Fn(fr,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(fr))}var _r=void 0;switch(g.kind){case 300:case 299:_F(g.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context),Kw(g.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),pe.kind===8&&Yw(pe),_r=4;break;case 171:_r=8;break;case 174:_r=1;break;case 175:_r=2;break;default:throw e.Debug.assertNever(g,"Unexpected syntax kind:"+g.kind)}if(!a){var Kr=e.getPropertyNameForPropertyNameNode(pe);if(Kr===void 0)continue;var mt=u.get(Kr);if(!mt)u.set(Kr,_r);else if(_r&8&&mt&8)Fn(pe,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(pe));else if(_r&4&&mt&4)Fn(pe,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,e.getTextOfNode(pe));else if(_r&3&&mt&3)if(mt!==3&&_r!==mt)u.set(Kr,_r|mt);else return Fn(pe,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Fn(pe,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function UZ(r){VZ(r.tagName),nS(r,r.typeArguments);for(var a=new e.Map,u=0,f=r.attributes.properties;u<f.length;u++){var p=f[u];if(p.kind!==290){var g=p.name,j=p.initializer;if(!a.get(g.escapedText))a.set(g.escapedText,!0);else return Fn(g,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(j&&j.kind===291&&!j.expression)return Fn(j,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function VZ(r){if(e.isPropertyAccessExpression(r)){var a=r;do{var u=p(a.name);if(u)return u;a=a.expression}while(e.isPropertyAccessExpression(a));var f=p(a);if(f)return f}function p(g){if(e.isIdentifier(g)&&e.idText(g).indexOf(":")!==-1)return Fn(g,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function zZ(r){if(r.expression&&e.isCommaSequence(r.expression))return Fn(r.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function mF(r){if(_d(r))return!0;if(r.kind===247&&r.awaitModifier&&!(r.flags&32768)){var a=e.getSourceFileOfNode(r);if(e.isInTopLevelContext(r)){if(!ih(a))switch(e.isEffectiveExternalModule(a,Ce)||ya.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),qe){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(a.impliedNodeFormat===e.ModuleKind.CommonJS){ya.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(Ae>=4)break;default:ya.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!ih(a)){var u=e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),f=e.getContainingFunction(r);if(f&&f.kind!==173){e.Debug.assert((e.getFunctionFlags(f)&2)===0,"Enclosing function should never be an async function.");var p=e.createDiagnosticForNode(f,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(u,p)}return ya.add(u),!0}return!1}if(e.isForOfStatement(r)&&!(r.flags&32768)&&e.isIdentifier(r.initializer)&&r.initializer.escapedText==="async")return Fn(r.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===258){var g=r.initializer;if(!Xw(g)){var j=g.declarations;if(!j.length)return!1;if(j.length>1){var u=r.kind===246?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Tc(g.declarations[1],u)}var pe=j[0];if(pe.initializer){var u=r.kind===246?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Fn(pe.name,u)}if(pe.type){var u=r.kind===246?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Fn(pe,u)}}}return!1}function WZ(r){if(!(r.flags&16777216)&&r.parent.kind!==184&&r.parent.kind!==261){if(Ae<1)return Fn(r.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Ae<2&&e.isPrivateIdentifier(r.name))return Fn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!e.hasSyntacticModifier(r,256))return gg(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(r.body){if(e.hasSyntacticModifier(r,256))return Fn(r,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===184||r.parent.kind===261)return Fn(r.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return Fn(r.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!qZ(r))return Fn(r.name,r.kind===174?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===175){if(r.type)return Fn(r.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var a=e.Debug.checkDefined(e.getSetAccessorValueParameter(r),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Fn(a.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Fn(a.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Fn(r.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function qZ(r){return Qw(r)||r.parameters.length===(r.kind===174?0:1)}function Qw(r){if(r.parameters.length===(r.kind===174?1:2))return e.getThisParameter(r)}function $Z(r){if(r.operator===156){if(r.type.kind!==153)return Fn(r.type,e.Diagnostics._0_expected,e.tokenToString(153));var a=e.walkUpParenthesizedTypes(r.parent);if(e.isInJSFile(a)&&e.isJSDocTypeExpression(a)){var u=e.getJSDocHost(a);u&&(a=e.getSingleVariableOfVariableStatement(u)||u)}switch(a.kind){case 257:var f=a;if(f.name.kind!==79)return Fn(r,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(f))return Fn(r,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(f.parent.flags&2))return Fn(a.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!e.isStatic(a)||!e.hasEffectiveReadonlyModifier(a))return Fn(a.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!e.hasSyntacticModifier(a,64))return Fn(a.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Fn(r,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===146&&r.type.kind!==185&&r.type.kind!==186)return Tc(r,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(153))}function s1(r,a){if(My(r))return Fn(r,a)}function gF(r){if(LT(r))return!0;if(r.kind===171){if(r.parent.kind===207){if(r.modifiers&&!(r.modifiers.length===1&&e.first(r.modifiers).kind===132))return Tc(r,e.Diagnostics.Modifiers_cannot_appear_here);if(Kw(r.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(_F(r.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return gg(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(Gw(r))return!0}if(e.isClassLike(r.parent)){if(Ae<2&&e.isPrivateIdentifier(r.name))return Fn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&16777216)return s1(r.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.kind===171&&!r.body)return s1(r.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(r.parent.kind===261)return s1(r.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===184)return s1(r.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function HZ(r){for(var a=r;a;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(a))return Fn(r,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 253:if(r.label&&a.label.escapedText===r.label.escapedText){var u=r.kind===248&&!e.isIterationStatement(a.statement,!0);return u?Fn(r,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 252:if(r.kind===249&&!r.label)return!1;break;default:if(e.isIterationStatement(a,!1)&&!r.label)return!1;break}a=a.parent}if(r.label){var f=r.kind===249?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Fn(r,f)}else{var f=r.kind===249?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Fn(r,f)}}function GZ(r){if(r.dotDotDotToken){var a=r.parent.elements;if(r!==e.last(a))return Fn(r,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Gh(a,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return Fn(r.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return gg(r,r.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function hF(r){return e.isStringOrNumericLiteralLike(r)||r.kind===221&&r.operator===40&&r.operand.kind===8}function KZ(r){return r.kind===9||r.kind===221&&r.operator===40&&r.operand.kind===9}function QZ(r){if((e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)&&hF(r.argumentExpression))&&e.isEntityNameExpression(r.expression))return!!(Gs(r).flags&1024)}function vF(r){var a=r.initializer;if(a){var u=!(hF(a)||QZ(a)||a.kind===110||a.kind===95||KZ(a)),f=e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r);if(f&&!r.type){if(u)return Fn(a,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Fn(a,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function XZ(r){if(r.parent.parent.kind!==246&&r.parent.parent.kind!==247){if(r.flags&16777216)vF(r);else if(!r.initializer){if(e.isBindingPattern(r.name)&&!e.isBindingPattern(r.parent))return Fn(r,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(r))return Fn(r,e.Diagnostics.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==240||!r.type||r.initializer||r.flags&16777216)){var a=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Fn(r.exclamationToken,a)}(qe<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&qe!==e.ModuleKind.System&&!(r.parent.parent.flags&16777216)&&e.hasSyntacticModifier(r.parent.parent,1)&&yF(r.name);var u=e.isLet(r)||e.isVarConst(r);return u&&bF(r.name)}function yF(r){if(r.kind===79){if(e.idText(r)==="__esModule")return eee("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var a=r.elements,u=0,f=a;u<f.length;u++){var p=f[u];if(!e.isOmittedExpression(p))return yF(p.name)}return!1}function bF(r){if(r.kind===79){if(r.originalKeywordKind===119)return Fn(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var a=r.elements,u=0,f=a;u<f.length;u++){var p=f[u];e.isOmittedExpression(p)||bF(p.name)}return!1}function Xw(r){var a=r.declarations;return Gh(r.declarations)?!0:r.declarations.length?!1:gg(r,a.pos,a.end-a.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function SF(r){switch(r.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return SF(r.parent)}return!0}function YZ(r){if(!SF(r.parent)){if(e.isLet(r.declarationList))return Fn(r,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(r.declarationList))return Fn(r,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function ZZ(r){var a=r.name.escapedText;switch(r.keywordToken){case 103:if(a!=="target")return Fn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"target");break;case 100:if(a!=="meta")return Fn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"meta");break}}function ih(r){return r.parseDiagnostics.length>0}function Tc(r,a,u,f,p){var g=e.getSourceFileOfNode(r);if(!ih(g)){var j=e.getSpanOfTokenAtPosition(g,r.pos);return ya.add(e.createFileDiagnostic(g,j.start,j.length,a,u,f,p)),!0}return!1}function gg(r,a,u,f,p,g,j){var pe=e.getSourceFileOfNode(r);return ih(pe)?!1:(ya.add(e.createFileDiagnostic(pe,a,u,f,p,g,j)),!0)}function eee(r,a,u,f,p,g){var j=e.getSourceFileOfNode(a);return ih(j)?!1:(pc(r,a,u,f,p,g),!0)}function Fn(r,a,u,f,p){var g=e.getSourceFileOfNode(r);return ih(g)?!1:(ya.add(e.createDiagnosticForNode(r,a,u,f,p)),!0)}function ree(r){var a=e.isInJSFile(r)?e.getJSDocTypeParameterDeclarations(r):void 0,u=r.typeParameters||a&&e.firstOrUndefined(a);if(u){var f=u.pos===u.end?u.pos:e.skipTrivia(e.getSourceFileOfNode(r).text,u.pos);return gg(r,f,u.end-f,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function tee(r){var a=r.type||e.getEffectiveReturnTypeNode(r);if(a)return Fn(a,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function nee(r){if(e.isComputedPropertyName(r.name)&&e.isBinaryExpression(r.name.expression)&&r.name.expression.operatorToken.kind===101)return Fn(r.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(r.parent)){if(e.isStringLiteral(r.name)&&r.name.text==="constructor")return Fn(r.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(s1(r.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Ae<2&&e.isPrivateIdentifier(r.name))return Fn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Ae<2&&e.isAutoAccessorPropertyDeclaration(r))return Fn(r.name,e.Diagnostics.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(e.isAutoAccessorPropertyDeclaration(r)&&Kw(r.questionToken,e.Diagnostics.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===261){if(s1(r.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(e.Debug.assertNode(r,e.isPropertySignature),r.initializer)return Fn(r.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(r.parent)){if(s1(r.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(e.Debug.assertNode(r,e.isPropertySignature),r.initializer)return Fn(r.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&16777216&&vF(r),e.isPropertyDeclaration(r)&&r.exclamationToken&&(!e.isClassLike(r.parent)||!r.type||r.initializer||r.flags&16777216||e.isStatic(r)||e.hasAbstractModifier(r))){var a=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Fn(r.exclamationToken,a)}}function iee(r){return r.kind===261||r.kind===262||r.kind===269||r.kind===268||r.kind===275||r.kind===274||r.kind===267||e.hasSyntacticModifier(r,1027)?!1:Tc(r,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function aee(r){for(var a=0,u=r.statements;a<u.length;a++){var f=u[a];if((e.isDeclaration(f)||f.kind===240)&&iee(f))return!0}return!1}function oee(r){return!!(r.flags&16777216)&&aee(r)}function _d(r){if(r.flags&16777216){var a=Mi(r);if(!a.hasReportedStatementInAmbientContext&&(e.isFunctionLike(r.parent)||e.isAccessor(r.parent)))return Mi(r).hasReportedStatementInAmbientContext=Tc(r,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===238||r.parent.kind===265||r.parent.kind===308){var u=Mi(r.parent);if(!u.hasReportedStatementInAmbientContext)return u.hasReportedStatementInAmbientContext=Tc(r,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Yw(r){if(r.numericLiteralFlags&32){var a=void 0;if(Ae>=1?a=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(r,198)?a=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(r,302)&&(a=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),a){var u=e.isPrefixUnaryExpression(r.parent)&&r.parent.operator===40,f=(u?"-":"")+"0o"+r.text;return Fn(u?r.parent:r,a,f)}}return see(r),!1}function see(r){var a=e.getTextOfNode(r).indexOf(".")!==-1,u=r.numericLiteralFlags&16;if(!(a||u)){var f=+r.text;f<=Math.pow(2,53)-1||Wp(!1,e.createDiagnosticForNode(r,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function cee(r){var a=e.isLiteralTypeNode(r.parent)||e.isPrefixUnaryExpression(r.parent)&&e.isLiteralTypeNode(r.parent.parent);return!!(!a&&Ae<7&&Fn(r,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function uee(r,a,u,f,p){var g=e.getSourceFileOfNode(r);if(!ih(g)){var j=e.getSpanOfTokenAtPosition(g,r.pos);return ya.add(e.createFileDiagnostic(g,e.textSpanEnd(j),0,a,u,f,p)),!0}return!1}function lee(){return yr||(yr=[],Rr.forEach(function(r,a){c.test(a)&&yr.push(r)})),yr}function fee(r){var a;return r.isTypeOnly&&r.name&&r.namedBindings?Fn(r,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((a=r.namedBindings)===null||a===void 0?void 0:a.kind)===272?DF(r.namedBindings):!1}function DF(r){return!!e.forEach(r.elements,function(a){if(a.isTypeOnly)return Tc(a,a.kind===273?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function pee(r){if(qe===e.ModuleKind.ES2015)return Fn(r,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(r.typeArguments)return Fn(r,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var a=r.arguments;if(qe!==e.ModuleKind.ESNext&&qe!==e.ModuleKind.NodeNext&&qe!==e.ModuleKind.Node16&&(Gh(a),a.length>1)){var u=a[1];return Fn(u,e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return Fn(r,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var f=e.find(a,e.isSpreadElement);return f?Fn(f,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):!1}function dee(r,a){var u=e.getObjectFlags(r);if(u&20&&a.flags&1048576)return e.find(a.types,function(f){if(f.flags&524288){var p=u&e.getObjectFlags(f);if(p&4)return r.target===f.target;if(p&16)return!!r.aliasSymbol&&r.aliasSymbol===f.aliasSymbol}return!1})}function _ee(r,a){if(e.getObjectFlags(r)&128&&pd(a,xm))return e.find(a.types,function(u){return!xm(u)})}function mee(r,a){var u=0,f=La(r,u).length>0||(u=1,La(r,u).length>0);if(f)return e.find(a.types,function(p){return La(p,u).length>0})}function gee(r,a){var u;if(!(r.flags&406978556))for(var f=0,p=0,g=a.types;p<g.length;p++){var j=g[p];if(!(j.flags&406978556)){var pe=ho([Kf(r),Kf(j)]);if(pe.flags&4194304)return j;if(sf(pe)||pe.flags&1048576){var Se=pe.flags&1048576?e.countWhere(pe.types,sf):1;Se>=f&&(u=j,f=Se)}}}return u}function hee(r){if(ks(r,67108864)){var a=Nc(r,function(u){return!(u.flags&131068)});if(!(a.flags&131072))return a}return r}function xF(r,a,u,f){if(a.flags&1048576&&r.flags&2621440){var p=K8(a,r);if(p)return p;var g=Ro(r);if(g){var j=G8(g,a);if(j)return qA(a,e.map(j,function(pe){return[function(){return _n(pe)},pe.escapedName]}),u,void 0,f)}}}}e.createTypeChecker=w;function re(I){return!e.isAccessor(I)}function M(I){return I.kind!==259&&I.kind!==171||!!I.body}function U(I){switch(I.parent.kind){case 273:case 278:return e.isIdentifier(I);default:return e.isDeclarationName(I)}}var H;(function(I){I.JSX="JSX",I.IntrinsicElements="IntrinsicElements",I.ElementClass="ElementClass",I.ElementAttributesPropertyNameContainer="ElementAttributesProperty",I.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",I.Element="Element",I.IntrinsicAttributes="IntrinsicAttributes",I.IntrinsicClassAttributes="IntrinsicClassAttributes",I.LibraryManagedAttributes="LibraryManagedAttributes"})(H||(H={}));function q(I){switch(I){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function R(I){return!!(I.flags&1)}e.signatureHasRestParameter=R;function K(I){return!!(I.flags&2)}e.signatureHasLiteralTypes=K})(h||(h={}));var h;(function(e){var c;function P(A,y,C,B){if(A===void 0||y===void 0)return A;var F=y(A);if(F===A)return A;var z;if(F!==void 0)return e.isArray(F)?z=(B||X)(F):z=F,e.Debug.assertNode(z,C),z}e.visitNode=P;function T(A,y,C,B,F){if(A===void 0||y===void 0)return A;var z=A.length;(B===void 0||B<0)&&(B=0),(F===void 0||F>z-B)&&(F=z-B);var ge,Pe=-1,fe=-1;B>0||F<z?ge=A.hasTrailingComma&&B+F===z:(Pe=A.pos,fe=A.end,ge=A.hasTrailingComma);var _e=D(A,y,C,B,F);if(_e!==A){var ne=e.factory.createNodeArray(_e,ge);return e.setTextRangePosEnd(ne,Pe,fe),ne}return A}e.visitNodes=T;function s(A,y,C,B,F){if(A===void 0)return A;var z=A.length;return(B===void 0||B<0)&&(B=0),(F===void 0||F>z-B)&&(F=z-B),D(A,y,C,B,F)}e.visitArray=s;function D(A,y,C,B,F){var z,ge=A.length;(B>0||F<ge)&&(z=[]);for(var Pe=0;Pe<F;Pe++){var fe=A[Pe+B],_e=fe!==void 0?y(fe):void 0;if((z!==void 0||_e===void 0||_e!==fe)&&(z===void 0&&(z=A.slice(0,Pe)),_e))if(e.isArray(_e))for(var ne=0,oe=_e;ne<oe.length;ne++){var w=oe[ne];e.Debug.assertNode(w,C),z.push(w)}else e.Debug.assertNode(_e,C),z.push(_e)}return z??A}function O(A,y,C,B,F,z){return z===void 0&&(z=T),C.startLexicalEnvironment(),A=z(A,y,e.isStatement,B),F&&(A=C.factory.ensureUseStrict(A)),e.factory.mergeLexicalEnvironment(A,C.endLexicalEnvironment())}e.visitLexicalEnvironment=O;function W(A,y,C,B){B===void 0&&(B=T);var F;return C.startLexicalEnvironment(),A&&(C.setLexicalEnvironmentFlags(1,!0),F=B(A,y,e.isParameterDeclaration),C.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(C.getCompilerOptions())>=2&&(F=E(F,C)),C.setLexicalEnvironmentFlags(1,!1)),C.suspendLexicalEnvironment(),F}e.visitParameterList=W;function E(A,y){for(var C,B=0;B<A.length;B++){var F=A[B],z=v(F,y);(C||z!==F)&&(C||(C=A.slice(0,B)),C[B]=z)}return C?e.setTextRange(y.factory.createNodeArray(C,A.hasTrailingComma),A):A}function v(A,y){return A.dotDotDotToken?A:e.isBindingPattern(A.name)?S(A,y):A.initializer?te(A,A.name,A.initializer,y):A}function S(A,y){var C=y.factory;return y.addInitializationStatement(C.createVariableStatement(void 0,C.createVariableDeclarationList([C.createVariableDeclaration(A.name,void 0,A.type,A.initializer?C.createConditionalExpression(C.createStrictEquality(C.getGeneratedNameForNode(A),C.createVoidZero()),void 0,A.initializer,void 0,C.getGeneratedNameForNode(A)):C.getGeneratedNameForNode(A))]))),C.updateParameterDeclaration(A,A.modifiers,A.dotDotDotToken,C.getGeneratedNameForNode(A),A.questionToken,A.type,void 0)}function te(A,y,C,B){var F=B.factory;return B.addInitializationStatement(F.createIfStatement(F.createTypeCheck(F.cloneNode(y),"undefined"),e.setEmitFlags(e.setTextRange(F.createBlock([F.createExpressionStatement(e.setEmitFlags(e.setTextRange(F.createAssignment(e.setEmitFlags(F.cloneNode(y),48),e.setEmitFlags(C,48|e.getEmitFlags(C)|1536)),A),1536))]),A),1953))),F.updateParameterDeclaration(A,A.modifiers,A.dotDotDotToken,A.name,A.questionToken,A.type,void 0)}function Y(A,y,C,B){B===void 0&&(B=P),C.resumeLexicalEnvironment();var F=B(A,y,e.isConciseBody),z=C.endLexicalEnvironment();if(e.some(z)){if(!F)return C.factory.createBlock(z);var ge=C.factory.converters.convertToFunctionBlock(F),Pe=e.factory.mergeLexicalEnvironment(ge.statements,z);return C.factory.updateBlock(ge,Pe)}return F}e.visitFunctionBody=Y;function Z(A,y,C,B){B===void 0&&(B=P),C.startBlockScope();var F=B(A,y,e.isStatement,C.factory.liftToBlock),z=C.endBlockScope();return e.some(z)?e.isBlock(F)?(z.push.apply(z,F.statements),C.factory.updateBlock(F,z)):(z.push(F),C.factory.createBlock(z)):F}e.visitIterationBody=Z;function ce(A,y,C,B,F,z){if(B===void 0&&(B=T),z===void 0&&(z=P),A!==void 0){var ge=k[A.kind];return ge===void 0?A:ge(A,y,C,B,z,F)}}e.visitEachChild=ce;var k=(c={},c[79]=function(y,C,B,F,z,ge){return B.factory.updateIdentifier(y,F(y.typeArguments,C,e.isTypeNodeOrTypeParameterDeclaration))},c[163]=function(y,C,B,F,z,ge){return B.factory.updateQualifiedName(y,z(y.left,C,e.isEntityName),z(y.right,C,e.isIdentifier))},c[164]=function(y,C,B,F,z,ge){return B.factory.updateComputedPropertyName(y,z(y.expression,C,e.isExpression))},c[165]=function(y,C,B,F,z,ge){return B.factory.updateTypeParameterDeclaration(y,F(y.modifiers,C,e.isModifier),z(y.name,C,e.isIdentifier),z(y.constraint,C,e.isTypeNode),z(y.default,C,e.isTypeNode))},c[166]=function(y,C,B,F,z,ge){return B.factory.updateParameterDeclaration(y,F(y.modifiers,C,e.isModifierLike),z(y.dotDotDotToken,ge,e.isDotDotDotToken),z(y.name,C,e.isBindingName),z(y.questionToken,ge,e.isQuestionToken),z(y.type,C,e.isTypeNode),z(y.initializer,C,e.isExpression))},c[167]=function(y,C,B,F,z,ge){return B.factory.updateDecorator(y,z(y.expression,C,e.isExpression))},c[168]=function(y,C,B,F,z,ge){return B.factory.updatePropertySignature(y,F(y.modifiers,C,e.isModifier),z(y.name,C,e.isPropertyName),z(y.questionToken,ge,e.isToken),z(y.type,C,e.isTypeNode))},c[169]=function(y,C,B,F,z,ge){var Pe;return B.factory.updatePropertyDeclaration(y,F(y.modifiers,C,e.isModifierLike),z(y.name,C,e.isPropertyName),z((Pe=y.questionToken)!==null&&Pe!==void 0?Pe:y.exclamationToken,ge,e.isQuestionOrExclamationToken),z(y.type,C,e.isTypeNode),z(y.initializer,C,e.isExpression))},c[170]=function(y,C,B,F,z,ge){return B.factory.updateMethodSignature(y,F(y.modifiers,C,e.isModifier),z(y.name,C,e.isPropertyName),z(y.questionToken,ge,e.isQuestionToken),F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.parameters,C,e.isParameterDeclaration),z(y.type,C,e.isTypeNode))},c[171]=function(y,C,B,F,z,ge){return B.factory.updateMethodDeclaration(y,F(y.modifiers,C,e.isModifierLike),z(y.asteriskToken,ge,e.isAsteriskToken),z(y.name,C,e.isPropertyName),z(y.questionToken,ge,e.isQuestionToken),F(y.typeParameters,C,e.isTypeParameterDeclaration),W(y.parameters,C,B,F),z(y.type,C,e.isTypeNode),Y(y.body,C,B,z))},c[173]=function(y,C,B,F,z,ge){return B.factory.updateConstructorDeclaration(y,F(y.modifiers,C,e.isModifier),W(y.parameters,C,B,F),Y(y.body,C,B,z))},c[174]=function(y,C,B,F,z,ge){return B.factory.updateGetAccessorDeclaration(y,F(y.modifiers,C,e.isModifierLike),z(y.name,C,e.isPropertyName),W(y.parameters,C,B,F),z(y.type,C,e.isTypeNode),Y(y.body,C,B,z))},c[175]=function(y,C,B,F,z,ge){return B.factory.updateSetAccessorDeclaration(y,F(y.modifiers,C,e.isModifierLike),z(y.name,C,e.isPropertyName),W(y.parameters,C,B,F),Y(y.body,C,B,z))},c[172]=function(y,C,B,F,z,ge){return B.startLexicalEnvironment(),B.suspendLexicalEnvironment(),B.factory.updateClassStaticBlockDeclaration(y,Y(y.body,C,B,z))},c[176]=function(y,C,B,F,z,ge){return B.factory.updateCallSignature(y,F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.parameters,C,e.isParameterDeclaration),z(y.type,C,e.isTypeNode))},c[177]=function(y,C,B,F,z,ge){return B.factory.updateConstructSignature(y,F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.parameters,C,e.isParameterDeclaration),z(y.type,C,e.isTypeNode))},c[178]=function(y,C,B,F,z,ge){return B.factory.updateIndexSignature(y,F(y.modifiers,C,e.isModifier),F(y.parameters,C,e.isParameterDeclaration),z(y.type,C,e.isTypeNode))},c[179]=function(y,C,B,F,z,ge){return B.factory.updateTypePredicateNode(y,z(y.assertsModifier,C,e.isAssertsKeyword),z(y.parameterName,C,e.isIdentifierOrThisTypeNode),z(y.type,C,e.isTypeNode))},c[180]=function(y,C,B,F,z,ge){return B.factory.updateTypeReferenceNode(y,z(y.typeName,C,e.isEntityName),F(y.typeArguments,C,e.isTypeNode))},c[181]=function(y,C,B,F,z,ge){return B.factory.updateFunctionTypeNode(y,F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.parameters,C,e.isParameterDeclaration),z(y.type,C,e.isTypeNode))},c[182]=function(y,C,B,F,z,ge){return B.factory.updateConstructorTypeNode(y,F(y.modifiers,C,e.isModifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.parameters,C,e.isParameterDeclaration),z(y.type,C,e.isTypeNode))},c[183]=function(y,C,B,F,z,ge){return B.factory.updateTypeQueryNode(y,z(y.exprName,C,e.isEntityName),F(y.typeArguments,C,e.isTypeNode))},c[184]=function(y,C,B,F,z,ge){return B.factory.updateTypeLiteralNode(y,F(y.members,C,e.isTypeElement))},c[185]=function(y,C,B,F,z,ge){return B.factory.updateArrayTypeNode(y,z(y.elementType,C,e.isTypeNode))},c[186]=function(y,C,B,F,z,ge){return B.factory.updateTupleTypeNode(y,F(y.elements,C,e.isTypeNode))},c[187]=function(y,C,B,F,z,ge){return B.factory.updateOptionalTypeNode(y,z(y.type,C,e.isTypeNode))},c[188]=function(y,C,B,F,z,ge){return B.factory.updateRestTypeNode(y,z(y.type,C,e.isTypeNode))},c[189]=function(y,C,B,F,z,ge){return B.factory.updateUnionTypeNode(y,F(y.types,C,e.isTypeNode))},c[190]=function(y,C,B,F,z,ge){return B.factory.updateIntersectionTypeNode(y,F(y.types,C,e.isTypeNode))},c[191]=function(y,C,B,F,z,ge){return B.factory.updateConditionalTypeNode(y,z(y.checkType,C,e.isTypeNode),z(y.extendsType,C,e.isTypeNode),z(y.trueType,C,e.isTypeNode),z(y.falseType,C,e.isTypeNode))},c[192]=function(y,C,B,F,z,ge){return B.factory.updateInferTypeNode(y,z(y.typeParameter,C,e.isTypeParameterDeclaration))},c[202]=function(y,C,B,F,z,ge){return B.factory.updateImportTypeNode(y,z(y.argument,C,e.isTypeNode),z(y.assertions,C,e.isImportTypeAssertionContainer),z(y.qualifier,C,e.isEntityName),F(y.typeArguments,C,e.isTypeNode),y.isTypeOf)},c[298]=function(y,C,B,F,z,ge){return B.factory.updateImportTypeAssertionContainer(y,z(y.assertClause,C,e.isAssertClause),y.multiLine)},c[199]=function(y,C,B,F,z,ge){return B.factory.updateNamedTupleMember(y,z(y.dotDotDotToken,ge,e.isDotDotDotToken),z(y.name,C,e.isIdentifier),z(y.questionToken,ge,e.isQuestionToken),z(y.type,C,e.isTypeNode))},c[193]=function(y,C,B,F,z,ge){return B.factory.updateParenthesizedType(y,z(y.type,C,e.isTypeNode))},c[195]=function(y,C,B,F,z,ge){return B.factory.updateTypeOperatorNode(y,z(y.type,C,e.isTypeNode))},c[196]=function(y,C,B,F,z,ge){return B.factory.updateIndexedAccessTypeNode(y,z(y.objectType,C,e.isTypeNode),z(y.indexType,C,e.isTypeNode))},c[197]=function(y,C,B,F,z,ge){return B.factory.updateMappedTypeNode(y,z(y.readonlyToken,ge,e.isReadonlyKeywordOrPlusOrMinusToken),z(y.typeParameter,C,e.isTypeParameterDeclaration),z(y.nameType,C,e.isTypeNode),z(y.questionToken,ge,e.isQuestionOrPlusOrMinusToken),z(y.type,C,e.isTypeNode),F(y.members,C,e.isTypeElement))},c[198]=function(y,C,B,F,z,ge){return B.factory.updateLiteralTypeNode(y,z(y.literal,C,e.isExpression))},c[200]=function(y,C,B,F,z,ge){return B.factory.updateTemplateLiteralType(y,z(y.head,C,e.isTemplateHead),F(y.templateSpans,C,e.isTemplateLiteralTypeSpan))},c[201]=function(y,C,B,F,z,ge){return B.factory.updateTemplateLiteralTypeSpan(y,z(y.type,C,e.isTypeNode),z(y.literal,C,e.isTemplateMiddleOrTemplateTail))},c[203]=function(y,C,B,F,z,ge){return B.factory.updateObjectBindingPattern(y,F(y.elements,C,e.isBindingElement))},c[204]=function(y,C,B,F,z,ge){return B.factory.updateArrayBindingPattern(y,F(y.elements,C,e.isArrayBindingElement))},c[205]=function(y,C,B,F,z,ge){return B.factory.updateBindingElement(y,z(y.dotDotDotToken,ge,e.isDotDotDotToken),z(y.propertyName,C,e.isPropertyName),z(y.name,C,e.isBindingName),z(y.initializer,C,e.isExpression))},c[206]=function(y,C,B,F,z,ge){return B.factory.updateArrayLiteralExpression(y,F(y.elements,C,e.isExpression))},c[207]=function(y,C,B,F,z,ge){return B.factory.updateObjectLiteralExpression(y,F(y.properties,C,e.isObjectLiteralElementLike))},c[208]=function(y,C,B,F,z,ge){return e.isPropertyAccessChain(y)?B.factory.updatePropertyAccessChain(y,z(y.expression,C,e.isExpression),z(y.questionDotToken,ge,e.isQuestionDotToken),z(y.name,C,e.isMemberName)):B.factory.updatePropertyAccessExpression(y,z(y.expression,C,e.isExpression),z(y.name,C,e.isMemberName))},c[209]=function(y,C,B,F,z,ge){return e.isElementAccessChain(y)?B.factory.updateElementAccessChain(y,z(y.expression,C,e.isExpression),z(y.questionDotToken,ge,e.isQuestionDotToken),z(y.argumentExpression,C,e.isExpression)):B.factory.updateElementAccessExpression(y,z(y.expression,C,e.isExpression),z(y.argumentExpression,C,e.isExpression))},c[210]=function(y,C,B,F,z,ge){return e.isCallChain(y)?B.factory.updateCallChain(y,z(y.expression,C,e.isExpression),z(y.questionDotToken,ge,e.isQuestionDotToken),F(y.typeArguments,C,e.isTypeNode),F(y.arguments,C,e.isExpression)):B.factory.updateCallExpression(y,z(y.expression,C,e.isExpression),F(y.typeArguments,C,e.isTypeNode),F(y.arguments,C,e.isExpression))},c[211]=function(y,C,B,F,z,ge){return B.factory.updateNewExpression(y,z(y.expression,C,e.isExpression),F(y.typeArguments,C,e.isTypeNode),F(y.arguments,C,e.isExpression))},c[212]=function(y,C,B,F,z,ge){return B.factory.updateTaggedTemplateExpression(y,z(y.tag,C,e.isExpression),F(y.typeArguments,C,e.isTypeNode),z(y.template,C,e.isTemplateLiteral))},c[213]=function(y,C,B,F,z,ge){return B.factory.updateTypeAssertion(y,z(y.type,C,e.isTypeNode),z(y.expression,C,e.isExpression))},c[214]=function(y,C,B,F,z,ge){return B.factory.updateParenthesizedExpression(y,z(y.expression,C,e.isExpression))},c[215]=function(y,C,B,F,z,ge){return B.factory.updateFunctionExpression(y,F(y.modifiers,C,e.isModifier),z(y.asteriskToken,ge,e.isAsteriskToken),z(y.name,C,e.isIdentifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),W(y.parameters,C,B,F),z(y.type,C,e.isTypeNode),Y(y.body,C,B,z))},c[216]=function(y,C,B,F,z,ge){return B.factory.updateArrowFunction(y,F(y.modifiers,C,e.isModifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),W(y.parameters,C,B,F),z(y.type,C,e.isTypeNode),z(y.equalsGreaterThanToken,ge,e.isEqualsGreaterThanToken),Y(y.body,C,B,z))},c[217]=function(y,C,B,F,z,ge){return B.factory.updateDeleteExpression(y,z(y.expression,C,e.isExpression))},c[218]=function(y,C,B,F,z,ge){return B.factory.updateTypeOfExpression(y,z(y.expression,C,e.isExpression))},c[219]=function(y,C,B,F,z,ge){return B.factory.updateVoidExpression(y,z(y.expression,C,e.isExpression))},c[220]=function(y,C,B,F,z,ge){return B.factory.updateAwaitExpression(y,z(y.expression,C,e.isExpression))},c[221]=function(y,C,B,F,z,ge){return B.factory.updatePrefixUnaryExpression(y,z(y.operand,C,e.isExpression))},c[222]=function(y,C,B,F,z,ge){return B.factory.updatePostfixUnaryExpression(y,z(y.operand,C,e.isExpression))},c[223]=function(y,C,B,F,z,ge){return B.factory.updateBinaryExpression(y,z(y.left,C,e.isExpression),z(y.operatorToken,ge,e.isBinaryOperatorToken),z(y.right,C,e.isExpression))},c[224]=function(y,C,B,F,z,ge){return B.factory.updateConditionalExpression(y,z(y.condition,C,e.isExpression),z(y.questionToken,ge,e.isQuestionToken),z(y.whenTrue,C,e.isExpression),z(y.colonToken,ge,e.isColonToken),z(y.whenFalse,C,e.isExpression))},c[225]=function(y,C,B,F,z,ge){return B.factory.updateTemplateExpression(y,z(y.head,C,e.isTemplateHead),F(y.templateSpans,C,e.isTemplateSpan))},c[226]=function(y,C,B,F,z,ge){return B.factory.updateYieldExpression(y,z(y.asteriskToken,ge,e.isAsteriskToken),z(y.expression,C,e.isExpression))},c[227]=function(y,C,B,F,z,ge){return B.factory.updateSpreadElement(y,z(y.expression,C,e.isExpression))},c[228]=function(y,C,B,F,z,ge){return B.factory.updateClassExpression(y,F(y.modifiers,C,e.isModifierLike),z(y.name,C,e.isIdentifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.heritageClauses,C,e.isHeritageClause),F(y.members,C,e.isClassElement))},c[230]=function(y,C,B,F,z,ge){return B.factory.updateExpressionWithTypeArguments(y,z(y.expression,C,e.isExpression),F(y.typeArguments,C,e.isTypeNode))},c[231]=function(y,C,B,F,z,ge){return B.factory.updateAsExpression(y,z(y.expression,C,e.isExpression),z(y.type,C,e.isTypeNode))},c[235]=function(y,C,B,F,z,ge){return B.factory.updateSatisfiesExpression(y,z(y.expression,C,e.isExpression),z(y.type,C,e.isTypeNode))},c[232]=function(y,C,B,F,z,ge){return e.isOptionalChain(y)?B.factory.updateNonNullChain(y,z(y.expression,C,e.isExpression)):B.factory.updateNonNullExpression(y,z(y.expression,C,e.isExpression))},c[233]=function(y,C,B,F,z,ge){return B.factory.updateMetaProperty(y,z(y.name,C,e.isIdentifier))},c[236]=function(y,C,B,F,z,ge){return B.factory.updateTemplateSpan(y,z(y.expression,C,e.isExpression),z(y.literal,C,e.isTemplateMiddleOrTemplateTail))},c[238]=function(y,C,B,F,z,ge){return B.factory.updateBlock(y,F(y.statements,C,e.isStatement))},c[240]=function(y,C,B,F,z,ge){return B.factory.updateVariableStatement(y,F(y.modifiers,C,e.isModifier),z(y.declarationList,C,e.isVariableDeclarationList))},c[241]=function(y,C,B,F,z,ge){return B.factory.updateExpressionStatement(y,z(y.expression,C,e.isExpression))},c[242]=function(y,C,B,F,z,ge){return B.factory.updateIfStatement(y,z(y.expression,C,e.isExpression),z(y.thenStatement,C,e.isStatement,B.factory.liftToBlock),z(y.elseStatement,C,e.isStatement,B.factory.liftToBlock))},c[243]=function(y,C,B,F,z,ge){return B.factory.updateDoStatement(y,Z(y.statement,C,B,z),z(y.expression,C,e.isExpression))},c[244]=function(y,C,B,F,z,ge){return B.factory.updateWhileStatement(y,z(y.expression,C,e.isExpression),Z(y.statement,C,B,z))},c[245]=function(y,C,B,F,z,ge){return B.factory.updateForStatement(y,z(y.initializer,C,e.isForInitializer),z(y.condition,C,e.isExpression),z(y.incrementor,C,e.isExpression),Z(y.statement,C,B,z))},c[246]=function(y,C,B,F,z,ge){return B.factory.updateForInStatement(y,z(y.initializer,C,e.isForInitializer),z(y.expression,C,e.isExpression),Z(y.statement,C,B,z))},c[247]=function(y,C,B,F,z,ge){return B.factory.updateForOfStatement(y,z(y.awaitModifier,ge,e.isAwaitKeyword),z(y.initializer,C,e.isForInitializer),z(y.expression,C,e.isExpression),Z(y.statement,C,B,z))},c[248]=function(y,C,B,F,z,ge){return B.factory.updateContinueStatement(y,z(y.label,C,e.isIdentifier))},c[249]=function(y,C,B,F,z,ge){return B.factory.updateBreakStatement(y,z(y.label,C,e.isIdentifier))},c[250]=function(y,C,B,F,z,ge){return B.factory.updateReturnStatement(y,z(y.expression,C,e.isExpression))},c[251]=function(y,C,B,F,z,ge){return B.factory.updateWithStatement(y,z(y.expression,C,e.isExpression),z(y.statement,C,e.isStatement,B.factory.liftToBlock))},c[252]=function(y,C,B,F,z,ge){return B.factory.updateSwitchStatement(y,z(y.expression,C,e.isExpression),z(y.caseBlock,C,e.isCaseBlock))},c[253]=function(y,C,B,F,z,ge){return B.factory.updateLabeledStatement(y,z(y.label,C,e.isIdentifier),z(y.statement,C,e.isStatement,B.factory.liftToBlock))},c[254]=function(y,C,B,F,z,ge){return B.factory.updateThrowStatement(y,z(y.expression,C,e.isExpression))},c[255]=function(y,C,B,F,z,ge){return B.factory.updateTryStatement(y,z(y.tryBlock,C,e.isBlock),z(y.catchClause,C,e.isCatchClause),z(y.finallyBlock,C,e.isBlock))},c[257]=function(y,C,B,F,z,ge){return B.factory.updateVariableDeclaration(y,z(y.name,C,e.isBindingName),z(y.exclamationToken,ge,e.isExclamationToken),z(y.type,C,e.isTypeNode),z(y.initializer,C,e.isExpression))},c[258]=function(y,C,B,F,z,ge){return B.factory.updateVariableDeclarationList(y,F(y.declarations,C,e.isVariableDeclaration))},c[259]=function(y,C,B,F,z,ge){return B.factory.updateFunctionDeclaration(y,F(y.modifiers,C,e.isModifier),z(y.asteriskToken,ge,e.isAsteriskToken),z(y.name,C,e.isIdentifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),W(y.parameters,C,B,F),z(y.type,C,e.isTypeNode),Y(y.body,C,B,z))},c[260]=function(y,C,B,F,z,ge){return B.factory.updateClassDeclaration(y,F(y.modifiers,C,e.isModifierLike),z(y.name,C,e.isIdentifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.heritageClauses,C,e.isHeritageClause),F(y.members,C,e.isClassElement))},c[261]=function(y,C,B,F,z,ge){return B.factory.updateInterfaceDeclaration(y,F(y.modifiers,C,e.isModifier),z(y.name,C,e.isIdentifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),F(y.heritageClauses,C,e.isHeritageClause),F(y.members,C,e.isTypeElement))},c[262]=function(y,C,B,F,z,ge){return B.factory.updateTypeAliasDeclaration(y,F(y.modifiers,C,e.isModifier),z(y.name,C,e.isIdentifier),F(y.typeParameters,C,e.isTypeParameterDeclaration),z(y.type,C,e.isTypeNode))},c[263]=function(y,C,B,F,z,ge){return B.factory.updateEnumDeclaration(y,F(y.modifiers,C,e.isModifier),z(y.name,C,e.isIdentifier),F(y.members,C,e.isEnumMember))},c[264]=function(y,C,B,F,z,ge){return B.factory.updateModuleDeclaration(y,F(y.modifiers,C,e.isModifier),z(y.name,C,e.isModuleName),z(y.body,C,e.isModuleBody))},c[265]=function(y,C,B,F,z,ge){return B.factory.updateModuleBlock(y,F(y.statements,C,e.isStatement))},c[266]=function(y,C,B,F,z,ge){return B.factory.updateCaseBlock(y,F(y.clauses,C,e.isCaseOrDefaultClause))},c[267]=function(y,C,B,F,z,ge){return B.factory.updateNamespaceExportDeclaration(y,z(y.name,C,e.isIdentifier))},c[268]=function(y,C,B,F,z,ge){return B.factory.updateImportEqualsDeclaration(y,F(y.modifiers,C,e.isModifier),y.isTypeOnly,z(y.name,C,e.isIdentifier),z(y.moduleReference,C,e.isModuleReference))},c[269]=function(y,C,B,F,z,ge){return B.factory.updateImportDeclaration(y,F(y.modifiers,C,e.isModifier),z(y.importClause,C,e.isImportClause),z(y.moduleSpecifier,C,e.isExpression),z(y.assertClause,C,e.isAssertClause))},c[296]=function(y,C,B,F,z,ge){return B.factory.updateAssertClause(y,F(y.elements,C,e.isAssertEntry),y.multiLine)},c[297]=function(y,C,B,F,z,ge){return B.factory.updateAssertEntry(y,z(y.name,C,e.isAssertionKey),z(y.value,C,e.isExpression))},c[270]=function(y,C,B,F,z,ge){return B.factory.updateImportClause(y,y.isTypeOnly,z(y.name,C,e.isIdentifier),z(y.namedBindings,C,e.isNamedImportBindings))},c[271]=function(y,C,B,F,z,ge){return B.factory.updateNamespaceImport(y,z(y.name,C,e.isIdentifier))},c[277]=function(y,C,B,F,z,ge){return B.factory.updateNamespaceExport(y,z(y.name,C,e.isIdentifier))},c[272]=function(y,C,B,F,z,ge){return B.factory.updateNamedImports(y,F(y.elements,C,e.isImportSpecifier))},c[273]=function(y,C,B,F,z,ge){return B.factory.updateImportSpecifier(y,y.isTypeOnly,z(y.propertyName,C,e.isIdentifier),z(y.name,C,e.isIdentifier))},c[274]=function(y,C,B,F,z,ge){return B.factory.updateExportAssignment(y,F(y.modifiers,C,e.isModifier),z(y.expression,C,e.isExpression))},c[275]=function(y,C,B,F,z,ge){return B.factory.updateExportDeclaration(y,F(y.modifiers,C,e.isModifier),y.isTypeOnly,z(y.exportClause,C,e.isNamedExportBindings),z(y.moduleSpecifier,C,e.isExpression),z(y.assertClause,C,e.isAssertClause))},c[276]=function(y,C,B,F,z,ge){return B.factory.updateNamedExports(y,F(y.elements,C,e.isExportSpecifier))},c[278]=function(y,C,B,F,z,ge){return B.factory.updateExportSpecifier(y,y.isTypeOnly,z(y.propertyName,C,e.isIdentifier),z(y.name,C,e.isIdentifier))},c[280]=function(y,C,B,F,z,ge){return B.factory.updateExternalModuleReference(y,z(y.expression,C,e.isExpression))},c[281]=function(y,C,B,F,z,ge){return B.factory.updateJsxElement(y,z(y.openingElement,C,e.isJsxOpeningElement),F(y.children,C,e.isJsxChild),z(y.closingElement,C,e.isJsxClosingElement))},c[282]=function(y,C,B,F,z,ge){return B.factory.updateJsxSelfClosingElement(y,z(y.tagName,C,e.isJsxTagNameExpression),F(y.typeArguments,C,e.isTypeNode),z(y.attributes,C,e.isJsxAttributes))},c[283]=function(y,C,B,F,z,ge){return B.factory.updateJsxOpeningElement(y,z(y.tagName,C,e.isJsxTagNameExpression),F(y.typeArguments,C,e.isTypeNode),z(y.attributes,C,e.isJsxAttributes))},c[284]=function(y,C,B,F,z,ge){return B.factory.updateJsxClosingElement(y,z(y.tagName,C,e.isJsxTagNameExpression))},c[285]=function(y,C,B,F,z,ge){return B.factory.updateJsxFragment(y,z(y.openingFragment,C,e.isJsxOpeningFragment),F(y.children,C,e.isJsxChild),z(y.closingFragment,C,e.isJsxClosingFragment))},c[288]=function(y,C,B,F,z,ge){return B.factory.updateJsxAttribute(y,z(y.name,C,e.isIdentifier),z(y.initializer,C,e.isStringLiteralOrJsxExpression))},c[289]=function(y,C,B,F,z,ge){return B.factory.updateJsxAttributes(y,F(y.properties,C,e.isJsxAttributeLike))},c[290]=function(y,C,B,F,z,ge){return B.factory.updateJsxSpreadAttribute(y,z(y.expression,C,e.isExpression))},c[291]=function(y,C,B,F,z,ge){return B.factory.updateJsxExpression(y,z(y.expression,C,e.isExpression))},c[292]=function(y,C,B,F,z,ge){return B.factory.updateCaseClause(y,z(y.expression,C,e.isExpression),F(y.statements,C,e.isStatement))},c[293]=function(y,C,B,F,z,ge){return B.factory.updateDefaultClause(y,F(y.statements,C,e.isStatement))},c[294]=function(y,C,B,F,z,ge){return B.factory.updateHeritageClause(y,F(y.types,C,e.isExpressionWithTypeArguments))},c[295]=function(y,C,B,F,z,ge){return B.factory.updateCatchClause(y,z(y.variableDeclaration,C,e.isVariableDeclaration),z(y.block,C,e.isBlock))},c[299]=function(y,C,B,F,z,ge){return B.factory.updatePropertyAssignment(y,z(y.name,C,e.isPropertyName),z(y.initializer,C,e.isExpression))},c[300]=function(y,C,B,F,z,ge){return B.factory.updateShorthandPropertyAssignment(y,z(y.name,C,e.isIdentifier),z(y.objectAssignmentInitializer,C,e.isExpression))},c[301]=function(y,C,B,F,z,ge){return B.factory.updateSpreadAssignment(y,z(y.expression,C,e.isExpression))},c[302]=function(y,C,B,F,z,ge){return B.factory.updateEnumMember(y,z(y.name,C,e.isPropertyName),z(y.initializer,C,e.isExpression))},c[308]=function(y,C,B,F,z,ge){return B.factory.updateSourceFile(y,O(y.statements,C,B))},c[353]=function(y,C,B,F,z,ge){return B.factory.updatePartiallyEmittedExpression(y,z(y.expression,C,e.isExpression))},c[354]=function(y,C,B,F,z,ge){return B.factory.updateCommaListExpression(y,F(y.elements,C,e.isExpression))},c);function X(A){return e.Debug.assert(A.length<=1,"Too many nodes written to output."),e.singleOrUndefined(A)}})(h||(h={}));var h;(function(e){function c(F,z,ge,Pe,fe){var _e=fe.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,ne=_e.enter,oe=_e.exit,w=[],re=[],M=new e.Map,U,H=[],q,R=[],K="",I=0,he=0,le=0,ee=0,J=0,de=0,De=!1,N=0,b=0,Q=0,G=0,ae=0,Te=0,Ne=!1,we=!1,nr=!1;return{getSources:function(){return w},addSource:tr,setSourceContent:me,addName:He,addMapping:Ce,appendSourceMap:Ae,toJSON:Ue,toString:function(){return JSON.stringify(Ue())}};function tr(lr){ne();var mr=e.getRelativePathToDirectoryOrUrl(Pe,lr,F.getCurrentDirectory(),F.getCanonicalFileName,!0),Hr=M.get(mr);return Hr===void 0&&(Hr=re.length,re.push(mr),w.push(lr),M.set(mr,Hr)),oe(),Hr}function me(lr,mr){if(ne(),mr!==null){for(U||(U=[]);U.length<lr;)U.push(null);U[lr]=mr}oe()}function He(lr){ne(),q||(q=new e.Map);var mr=q.get(lr);return mr===void 0&&(mr=H.length,H.push(lr),q.set(lr,mr)),oe(),mr}function rr(lr,mr){return!Ne||N!==lr||b!==mr}function je(lr,mr,Hr){return lr!==void 0&&mr!==void 0&&Hr!==void 0&&Q===lr&&(G>mr||G===mr&&ae>Hr)}function Ce(lr,mr,Hr,wr,Oe,Ze){e.Debug.assert(lr>=N,"generatedLine cannot backtrack"),e.Debug.assert(mr>=0,"generatedCharacter cannot be negative"),e.Debug.assert(Hr===void 0||Hr>=0,"sourceIndex cannot be negative"),e.Debug.assert(wr===void 0||wr>=0,"sourceLine cannot be negative"),e.Debug.assert(Oe===void 0||Oe>=0,"sourceCharacter cannot be negative"),ne(),(rr(lr,mr)||je(Hr,wr,Oe))&&(L(),N=lr,b=mr,we=!1,nr=!1,Ne=!0),Hr!==void 0&&wr!==void 0&&Oe!==void 0&&(Q=Hr,G=wr,ae=Oe,we=!0,Ze!==void 0&&(Te=Ze,nr=!0)),oe()}function Ae(lr,mr,Hr,wr,Oe,Ze){e.Debug.assert(lr>=N,"generatedLine cannot backtrack"),e.Debug.assert(mr>=0,"generatedCharacter cannot be negative"),ne();for(var tt=[],ut,or=v(Hr.mappings),qr=or.next();!qr.done;qr=or.next()){var Rr=qr.value;if(Ze&&(Rr.generatedLine>Ze.line||Rr.generatedLine===Ze.line&&Rr.generatedCharacter>Ze.character))break;if(!(Oe&&(Rr.generatedLine<Oe.line||Oe.line===Rr.generatedLine&&Rr.generatedCharacter<Oe.character))){var zr=void 0,Fr=void 0,_t=void 0,Ct=void 0;if(Rr.sourceIndex!==void 0){if(zr=tt[Rr.sourceIndex],zr===void 0){var yt=Hr.sources[Rr.sourceIndex],Fe=Hr.sourceRoot?e.combinePaths(Hr.sourceRoot,yt):yt,vr=e.combinePaths(e.getDirectoryPath(wr),Fe);tt[Rr.sourceIndex]=zr=tr(vr),Hr.sourcesContent&&typeof Hr.sourcesContent[Rr.sourceIndex]=="string"&&me(zr,Hr.sourcesContent[Rr.sourceIndex])}Fr=Rr.sourceLine,_t=Rr.sourceCharacter,Hr.names&&Rr.nameIndex!==void 0&&(ut||(ut=[]),Ct=ut[Rr.nameIndex],Ct===void 0&&(ut[Rr.nameIndex]=Ct=He(Hr.names[Rr.nameIndex])))}var Le=Rr.generatedLine-(Oe?Oe.line:0),cr=Le+lr,$r=Oe&&Oe.line===Rr.generatedLine?Rr.generatedCharacter-Oe.character:Rr.generatedCharacter,Re=Le===0?$r+mr:$r;Ce(cr,Re,zr,Fr,_t,Ct)}}oe()}function qe(){return!De||I!==N||he!==b||le!==Q||ee!==G||J!==ae||de!==Te}function xe(lr){R.push(lr),R.length>=1024&&ue()}function L(){if(!(!Ne||!qe())){if(ne(),I<N){do xe(59),I++;while(I<N);he=0}else e.Debug.assertEqual(I,N,"generatedLine cannot backtrack"),De&&xe(44);Je(b-he),he=b,we&&(Je(Q-le),le=Q,Je(G-ee),ee=G,Je(ae-J),J=ae,nr&&(Je(Te-de),de=Te)),De=!0,oe()}}function ue(){R.length>0&&(K+=String.fromCharCode.apply(void 0,R),R.length=0)}function Ue(){return L(),ue(),{version:3,file:z,sourceRoot:ge,sources:re,names:H,mappings:K,sourcesContent:U}}function Je(lr){lr<0?lr=(-lr<<1)+1:lr=lr<<1;do{var mr=lr&31;lr=lr>>5,lr>0&&(mr=mr|32),xe(Y(mr))}while(lr>0)}}e.createSourceMapGenerator=c;var P=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,T=/^\s*(\/\/[@#] .*)?$/;function s(F,z){return{getLineCount:function(){return z.length},getLineText:function(ge){return F.substring(z[ge],z[ge+1])}}}e.getLineInfo=s;function D(F){for(var z=F.getLineCount()-1;z>=0;z--){var ge=F.getLineText(z),Pe=P.exec(ge);if(Pe)return e.trimStringEnd(Pe[1]);if(!ge.match(T))break}}e.tryGetSourceMappingURL=D;function O(F){return typeof F=="string"||F===null}function W(F){return F!==null&&typeof F=="object"&&F.version===3&&typeof F.file=="string"&&typeof F.mappings=="string"&&e.isArray(F.sources)&&e.every(F.sources,e.isString)&&(F.sourceRoot===void 0||F.sourceRoot===null||typeof F.sourceRoot=="string")&&(F.sourcesContent===void 0||F.sourcesContent===null||e.isArray(F.sourcesContent)&&e.every(F.sourcesContent,O))&&(F.names===void 0||F.names===null||e.isArray(F.names)&&e.every(F.names,e.isString))}e.isRawSourceMap=W;function E(F){try{var z=JSON.parse(F);if(W(z))return z}catch{}}e.tryParseRawSourceMap=E;function v(F){var z=!1,ge=0,Pe=0,fe=0,_e=0,ne=0,oe=0,w=0,re;return{get pos(){return ge},get error(){return re},get state(){return M(!0,!0)},next:function(){for(;!z&&ge<F.length;){var he=F.charCodeAt(ge);if(he===59){Pe++,fe=0,ge++;continue}if(he===44){ge++;continue}var le=!1,ee=!1;if(fe+=I(),R())return U();if(fe<0)return q("Invalid generatedCharacter found");if(!K()){if(le=!0,_e+=I(),R())return U();if(_e<0)return q("Invalid sourceIndex found");if(K())return q("Unsupported Format: No entries after sourceIndex");if(ne+=I(),R())return U();if(ne<0)return q("Invalid sourceLine found");if(K())return q("Unsupported Format: No entries after sourceLine");if(oe+=I(),R())return U();if(oe<0)return q("Invalid sourceCharacter found");if(!K()){if(ee=!0,w+=I(),R())return U();if(w<0)return q("Invalid nameIndex found");if(!K())return q("Unsupported Error Format: Entries after nameIndex")}}return{value:M(le,ee),done:z}}return U()}};function M(he,le){return{generatedLine:Pe,generatedCharacter:fe,sourceIndex:he?_e:void 0,sourceLine:he?ne:void 0,sourceCharacter:he?oe:void 0,nameIndex:le?w:void 0}}function U(){return z=!0,{value:void 0,done:!0}}function H(he){re===void 0&&(re=he)}function q(he){return H(he),U()}function R(){return re!==void 0}function K(){return ge===F.length||F.charCodeAt(ge)===44||F.charCodeAt(ge)===59}function I(){for(var he=!0,le=0,ee=0;he;ge++){if(ge>=F.length)return H("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var J=Z(F.charCodeAt(ge));if(J===-1)return H("Invalid character in VLQ"),-1;he=(J&32)!==0,ee=ee|(J&31)<<le,le+=5}return ee&1?(ee=ee>>1,ee=-ee):ee=ee>>1,ee}}e.decodeMappings=v;function S(F,z){return F===z||F.generatedLine===z.generatedLine&&F.generatedCharacter===z.generatedCharacter&&F.sourceIndex===z.sourceIndex&&F.sourceLine===z.sourceLine&&F.sourceCharacter===z.sourceCharacter&&F.nameIndex===z.nameIndex}e.sameMapping=S;function te(F){return F.sourceIndex!==void 0&&F.sourceLine!==void 0&&F.sourceCharacter!==void 0}e.isSourceMapping=te;function Y(F){return F>=0&&F<26?65+F:F>=26&&F<52?97+F-26:F>=52&&F<62?48+F-52:F===62?43:F===63?47:e.Debug.fail("".concat(F,": not a base64 value"))}function Z(F){return F>=65&&F<=90?F-65:F>=97&&F<=122?F-97+26:F>=48&&F<=57?F-48+52:F===43?62:F===47?63:-1}function ce(F){return F.sourceIndex!==void 0&&F.sourcePosition!==void 0}function k(F,z){return F.generatedPosition===z.generatedPosition&&F.sourceIndex===z.sourceIndex&&F.sourcePosition===z.sourcePosition}function X(F,z){return e.Debug.assert(F.sourceIndex===z.sourceIndex),e.compareValues(F.sourcePosition,z.sourcePosition)}function A(F,z){return e.compareValues(F.generatedPosition,z.generatedPosition)}function y(F){return F.sourcePosition}function C(F){return F.generatedPosition}function B(F,z,ge){var Pe=e.getDirectoryPath(ge),fe=z.sourceRoot?e.getNormalizedAbsolutePath(z.sourceRoot,Pe):Pe,_e=e.getNormalizedAbsolutePath(z.file,Pe),ne=F.getSourceFileLike(_e),oe=z.sources.map(function(le){return e.getNormalizedAbsolutePath(le,fe)}),w=new e.Map(oe.map(function(le,ee){return[F.getCanonicalFileName(le),ee]})),re,M,U;return{getSourcePosition:he,getGeneratedPosition:I};function H(le){var ee=ne!==void 0?e.getPositionOfLineAndCharacter(ne,le.generatedLine,le.generatedCharacter,!0):-1,J,de;if(te(le)){var De=F.getSourceFileLike(oe[le.sourceIndex]);J=z.sources[le.sourceIndex],de=De!==void 0?e.getPositionOfLineAndCharacter(De,le.sourceLine,le.sourceCharacter,!0):-1}return{generatedPosition:ee,source:J,sourceIndex:le.sourceIndex,sourcePosition:de,nameIndex:le.nameIndex}}function q(){if(re===void 0){var le=v(z.mappings),ee=e.arrayFrom(le,H);le.error!==void 0?(F.log&&F.log("Encountered error while decoding sourcemap: ".concat(le.error)),re=e.emptyArray):re=ee}return re}function R(le){if(U===void 0){for(var ee=[],J=0,de=q();J<de.length;J++){var De=de[J];if(ce(De)){var N=ee[De.sourceIndex];N||(ee[De.sourceIndex]=N=[]),N.push(De)}}U=ee.map(function(b){return e.sortAndDeduplicate(b,X,k)})}return U[le]}function K(){if(M===void 0){for(var le=[],ee=0,J=q();ee<J.length;ee++){var de=J[ee];le.push(de)}M=e.sortAndDeduplicate(le,A,k)}return M}function I(le){var ee=w.get(F.getCanonicalFileName(le.fileName));if(ee===void 0)return le;var J=R(ee);if(!e.some(J))return le;var de=e.binarySearchKey(J,le.pos,y,e.compareValues);de<0&&(de=~de);var De=J[de];return De===void 0||De.sourceIndex!==ee?le:{fileName:_e,pos:De.generatedPosition}}function he(le){var ee=K();if(!e.some(ee))return le;var J=e.binarySearchKey(ee,le.pos,C,e.compareValues);J<0&&(J=~J);var de=ee[J];return de===void 0||!ce(de)?le:{fileName:oe[de.sourceIndex],pos:de.sourcePosition}}}e.createDocumentPositionMapper=B,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(h||(h={}));var h;(function(e){function c(re){return re=e.getOriginalNode(re),re?e.getNodeId(re):0}e.getOriginalNodeId=c;function P(re){return!re||!e.isNamedImports(re)?!1:e.some(re.elements,T)}function T(re){return re.propertyName!==void 0&&re.propertyName.escapedText==="default"}function s(re,M){return U;function U(q){return q.kind===308?M(q):H(q)}function H(q){return re.factory.createBundle(e.map(q.sourceFiles,M),q.prepends)}}e.chainBundle=s;function D(re){return!!e.getNamespaceDeclarationNode(re)}e.getExportNeedsImportStarHelper=D;function O(re){if(e.getNamespaceDeclarationNode(re))return!0;var M=re.importClause&&re.importClause.namedBindings;if(!M||!e.isNamedImports(M))return!1;for(var U=0,H=0,q=M.elements;H<q.length;H++){var R=q[H];T(R)&&U++}return U>0&&U!==M.elements.length||!!(M.elements.length-U)&&e.isDefaultImport(re)}e.getImportNeedsImportStarHelper=O;function W(re){return!O(re)&&(e.isDefaultImport(re)||!!re.importClause&&e.isNamedImports(re.importClause.namedBindings)&&P(re.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=W;function E(re,M,U,H){for(var q=[],R=e.createMultiMap(),K=[],I=new e.Map,he,le=!1,ee,J=!1,de=!1,De=!1,N=0,b=M.statements;N<b.length;N++){var Q=b[N];switch(Q.kind){case 269:q.push(Q),!de&&O(Q)&&(de=!0),!De&&W(Q)&&(De=!0);break;case 268:Q.moduleReference.kind===280&&q.push(Q);break;case 275:if(Q.moduleSpecifier)if(!Q.exportClause)q.push(Q),J=!0;else if(q.push(Q),e.isNamedExports(Q.exportClause))nr(Q);else{var G=Q.exportClause.name;I.get(e.idText(G))||(S(K,c(Q),G),I.set(e.idText(G),!0),he=e.append(he,G)),de=!0}else nr(Q);break;case 274:Q.isExportEquals&&!ee&&(ee=Q);break;case 240:if(e.hasSyntacticModifier(Q,1))for(var ae=0,Te=Q.declarationList.declarations;ae<Te.length;ae++){var Ne=Te[ae];he=v(Ne,I,he)}break;case 259:if(e.hasSyntacticModifier(Q,1))if(e.hasSyntacticModifier(Q,1024))le||(S(K,c(Q),re.factory.getDeclarationName(Q)),le=!0);else{var G=Q.name;I.get(e.idText(G))||(S(K,c(Q),G),I.set(e.idText(G),!0),he=e.append(he,G))}break;case 260:if(e.hasSyntacticModifier(Q,1))if(e.hasSyntacticModifier(Q,1024))le||(S(K,c(Q),re.factory.getDeclarationName(Q)),le=!0);else{var G=Q.name;G&&!I.get(e.idText(G))&&(S(K,c(Q),G),I.set(e.idText(G),!0),he=e.append(he,G))}break}}var we=e.createExternalHelpersImportDeclarationIfNeeded(re.factory,re.getEmitHelperFactory(),M,H,J,de,De);return we&&q.unshift(we),{externalImports:q,exportSpecifiers:R,exportEquals:ee,hasExportStarsToExportValues:J,exportedBindings:K,exportedNames:he,externalHelpersImportDeclaration:we};function nr(tr){for(var me=0,He=e.cast(tr.exportClause,e.isNamedExports).elements;me<He.length;me++){var rr=He[me];if(!I.get(e.idText(rr.name))){var je=rr.propertyName||rr.name;tr.moduleSpecifier||R.add(e.idText(je),rr);var Ce=U.getReferencedImportDeclaration(je)||U.getReferencedValueDeclaration(je);Ce&&S(K,c(Ce),rr.name),I.set(e.idText(rr.name),!0),he=e.append(he,rr.name)}}}}e.collectExternalModuleInfo=E;function v(re,M,U){if(e.isBindingPattern(re.name))for(var H=0,q=re.name.elements;H<q.length;H++){var R=q[H];e.isOmittedExpression(R)||(U=v(R,M,U))}else if(!e.isGeneratedIdentifier(re.name)){var K=e.idText(re.name);M.get(K)||(M.set(K,!0),U=e.append(U,re.name))}return U}function S(re,M,U){var H=re[M];return H?H.push(U):re[M]=H=[U],H}function te(re){return e.isStringLiteralLike(re)||re.kind===8||e.isKeyword(re.kind)||e.isIdentifier(re)}e.isSimpleCopiableExpression=te;function Y(re){return!e.isIdentifier(re)&&te(re)}e.isSimpleInlineableExpression=Y;function Z(re){return re>=64&&re<=78}e.isCompoundAssignment=Z;function ce(re){switch(re){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=ce;function k(re){if(e.isExpressionStatement(re)){var M=e.skipParentheses(re.expression);return e.isSuperCall(M)?M:void 0}}e.getSuperCallFromStatement=k;function X(re,M){for(var U=M;U<re.length;U+=1){var H=re[U];if(k(H))return U}return-1}e.findSuperStatementIndex=X;function A(re,M,U){return e.filter(re.members,function(H){return B(H,M,U)})}e.getProperties=A;function y(re){return F(re)||e.isClassStaticBlockDeclaration(re)}function C(re){return e.filter(re.members,y)}e.getStaticPropertiesAndClassStaticBlock=C;function B(re,M,U){return e.isPropertyDeclaration(re)&&(!!re.initializer||!M)&&e.hasStaticModifier(re)===U}function F(re){return e.isPropertyDeclaration(re)&&e.hasStaticModifier(re)}function z(re){return re.kind===169&&re.initializer!==void 0}e.isInitializedProperty=z;function ge(re){return!e.isStatic(re)&&(e.isMethodOrAccessor(re)||e.isAutoAccessorPropertyDeclaration(re))&&e.isPrivateIdentifier(re.name)}e.isNonStaticMethodOrAccessorWithPrivateName=ge;function Pe(re){var M;if(re)for(var U=re.parameters,H=U.length>0&&e.parameterIsThisKeyword(U[0]),q=H?1:0,R=H?U.length-1:U.length,K=0;K<R;K++){var I=U[K+q];(M||e.hasDecorators(I))&&(M||(M=new Array(R)),M[K]=e.getDecorators(I))}return M}function fe(re){var M=e.getDecorators(re),U=Pe(e.getFirstConstructorWithBody(re));if(!(!e.some(M)&&!e.some(U)))return{decorators:M,parameters:U}}e.getAllDecoratorsOfClass=fe;function _e(re,M){switch(re.kind){case 174:case 175:return ne(re,M);case 171:return oe(re);case 169:return w(re);default:return}}e.getAllDecoratorsOfClassElement=_e;function ne(re,M){if(re.body){var U=e.getAllAccessorDeclarations(M.members,re),H=U.firstAccessor,q=U.secondAccessor,R=U.getAccessor,K=U.setAccessor,I=e.hasDecorators(H)?H:q&&e.hasDecorators(q)?q:void 0;if(!(!I||re!==I)){var he=e.getDecorators(I),le=Pe(K);if(!(!e.some(he)&&!e.some(le)))return{decorators:he,parameters:le,getDecorators:R&&e.getDecorators(R),setDecorators:K&&e.getDecorators(K)}}}}function oe(re){if(re.body){var M=e.getDecorators(re),U=Pe(re);if(!(!e.some(M)&&!e.some(U)))return{decorators:M,parameters:U}}}function w(re){var M=e.getDecorators(re);if(e.some(M))return{decorators:M}}})(h||(h={}));var h;(function(e){(function(B){B[B.All=0]="All",B[B.ObjectRest=1]="ObjectRest"})(e.FlattenLevel||(e.FlattenLevel={}));function c(B,F,z,ge,Pe,fe){var _e=B,ne;if(e.isDestructuringAssignment(B))for(ne=B.right;e.isEmptyArrayLiteral(B.left)||e.isEmptyObjectLiteral(B.left);)if(e.isDestructuringAssignment(ne))_e=B=ne,ne=B.right;else return e.visitNode(ne,F,e.isExpression);var oe,w={context:z,level:ge,downlevelIteration:!!z.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:re,emitBindingOrAssignment:M,createArrayBindingOrAssignmentPattern:function(U){return k(z.factory,U)},createObjectBindingOrAssignmentPattern:function(U){return A(z.factory,U)},createArrayBindingOrAssignmentElement:C,visitor:F};if(ne&&(ne=e.visitNode(ne,F,e.isExpression),e.isIdentifier(ne)&&P(B,ne.escapedText)||s(B)?ne=Z(w,ne,!1,_e):Pe?ne=Z(w,ne,!0,_e):e.nodeIsSynthesized(B)&&(_e=ne)),W(w,B,ne,_e,e.isDestructuringAssignment(B)),ne&&Pe){if(!e.some(oe))return ne;oe.push(ne)}return z.factory.inlineExpressions(oe)||z.factory.createOmittedExpression();function re(U){oe=e.append(oe,U)}function M(U,H,q,R){e.Debug.assertNode(U,fe?e.isIdentifier:e.isExpression);var K=fe?fe(U,H,q):e.setTextRange(z.factory.createAssignment(e.visitNode(U,F,e.isExpression),H),q);K.original=R,re(K)}}e.flattenDestructuringAssignment=c;function P(B,F){var z=e.getTargetOfBindingOrAssignmentElement(B);return e.isBindingOrAssignmentPattern(z)?T(z,F):e.isIdentifier(z)?z.escapedText===F:!1}function T(B,F){for(var z=e.getElementsOfBindingOrAssignmentPattern(B),ge=0,Pe=z;ge<Pe.length;ge++){var fe=Pe[ge];if(P(fe,F))return!0}return!1}function s(B){var F=e.tryGetPropertyNameOfBindingOrAssignmentElement(B);if(F&&e.isComputedPropertyName(F)&&!e.isLiteralExpression(F.expression))return!0;var z=e.getTargetOfBindingOrAssignmentElement(B);return!!z&&e.isBindingOrAssignmentPattern(z)&&D(z)}function D(B){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(B),s)}function O(B,F,z,ge,Pe,fe,_e){fe===void 0&&(fe=!1);var ne,oe=[],w=[],re={context:z,level:ge,downlevelIteration:!!z.getCompilerOptions().downlevelIteration,hoistTempVariables:fe,emitExpression:De,emitBindingOrAssignment:N,createArrayBindingOrAssignmentPattern:function(b){return ce(z.factory,b)},createObjectBindingOrAssignmentPattern:function(b){return X(z.factory,b)},createArrayBindingOrAssignmentElement:function(b){return y(z.factory,b)},visitor:F};if(e.isVariableDeclaration(B)){var M=e.getInitializerOfBindingOrAssignmentElement(B);M&&(e.isIdentifier(M)&&P(B,M.escapedText)||s(B))&&(M=Z(re,e.visitNode(M,re.visitor),!1,M),B=z.factory.updateVariableDeclaration(B,B.name,void 0,void 0,M))}if(W(re,B,Pe,B,_e),ne){var U=z.factory.createTempVariable(void 0);if(fe){var H=z.factory.inlineExpressions(ne);ne=void 0,N(U,H,void 0,void 0)}else{z.hoistVariableDeclaration(U);var q=e.last(oe);q.pendingExpressions=e.append(q.pendingExpressions,z.factory.createAssignment(U,q.value)),e.addRange(q.pendingExpressions,ne),q.value=U}}for(var R=0,K=oe;R<K.length;R++){var I=K[R],he=I.pendingExpressions,le=I.name,H=I.value,ee=I.location,J=I.original,de=z.factory.createVariableDeclaration(le,void 0,void 0,he?z.factory.inlineExpressions(e.append(he,H)):H);de.original=J,e.setTextRange(de,ee),w.push(de)}return w;function De(b){ne=e.append(ne,b)}function N(b,Q,G,ae){e.Debug.assertNode(b,e.isBindingName),ne&&(Q=z.factory.inlineExpressions(e.append(ne,Q)),ne=void 0),oe.push({pendingExpressions:ne,name:b,value:Q,location:G,original:ae})}}e.flattenDestructuringBinding=O;function W(B,F,z,ge,Pe){var fe=e.getTargetOfBindingOrAssignmentElement(F);if(!Pe){var _e=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(F),B.visitor,e.isExpression);_e?z?(z=te(B,z,_e,ge),!e.isSimpleInlineableExpression(_e)&&e.isBindingOrAssignmentPattern(fe)&&(z=Z(B,z,!0,ge))):z=_e:z||(z=B.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(fe)?E(B,F,fe,z,ge):e.isArrayBindingOrAssignmentPattern(fe)?v(B,F,fe,z,ge):B.emitBindingOrAssignment(fe,z,ge,F)}function E(B,F,z,ge,Pe){var fe=e.getElementsOfBindingOrAssignmentPattern(z),_e=fe.length;if(_e!==1){var ne=!e.isDeclarationBindingElement(F)||_e!==0;ge=Z(B,ge,ne,Pe)}for(var oe,w,re=0;re<_e;re++){var M=fe[re];if(e.getRestIndicatorOfBindingOrAssignmentElement(M)){if(re===_e-1){oe&&(B.emitBindingOrAssignment(B.createObjectBindingOrAssignmentPattern(oe),ge,Pe,z),oe=void 0);var H=B.context.getEmitHelperFactory().createRestHelper(ge,fe,w,z);W(B,M,H,M)}}else{var U=e.getPropertyNameOfBindingOrAssignmentElement(M);if(B.level>=1&&!(M.transformFlags&98304)&&!(e.getTargetOfBindingOrAssignmentElement(M).transformFlags&98304)&&!e.isComputedPropertyName(U))oe=e.append(oe,e.visitNode(M,B.visitor));else{oe&&(B.emitBindingOrAssignment(B.createObjectBindingOrAssignmentPattern(oe),ge,Pe,z),oe=void 0);var H=Y(B,ge,U);e.isComputedPropertyName(U)&&(w=e.append(w,H.argumentExpression)),W(B,M,H,M)}}}oe&&B.emitBindingOrAssignment(B.createObjectBindingOrAssignmentPattern(oe),ge,Pe,z)}function v(B,F,z,ge,Pe){var fe=e.getElementsOfBindingOrAssignmentPattern(z),_e=fe.length;if(B.level<1&&B.downlevelIteration)ge=Z(B,e.setTextRange(B.context.getEmitHelperFactory().createReadHelper(ge,_e>0&&e.getRestIndicatorOfBindingOrAssignmentElement(fe[_e-1])?void 0:_e),Pe),!1,Pe);else if(_e!==1&&(B.level<1||_e===0)||e.every(fe,e.isOmittedExpression)){var ne=!e.isDeclarationBindingElement(F)||_e!==0;ge=Z(B,ge,ne,Pe)}for(var oe,w,re=0;re<_e;re++){var M=fe[re];if(B.level>=1)if(M.transformFlags&65536||B.hasTransformedPriorElement&&!S(M)){B.hasTransformedPriorElement=!0;var U=B.context.factory.createTempVariable(void 0);B.hoistTempVariables&&B.context.hoistVariableDeclaration(U),w=e.append(w,[U,M]),oe=e.append(oe,B.createArrayBindingOrAssignmentElement(U))}else oe=e.append(oe,M);else{if(e.isOmittedExpression(M))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(M)){if(re===_e-1){var H=B.context.factory.createArraySliceCall(ge,re);W(B,M,H,M)}}else{var H=B.context.factory.createElementAccessExpression(ge,re);W(B,M,H,M)}}}if(oe&&B.emitBindingOrAssignment(B.createArrayBindingOrAssignmentPattern(oe),ge,Pe,z),w)for(var q=0,R=w;q<R.length;q++){var K=R[q],I=K[0],M=K[1];W(B,M,I,M)}}function S(B){var F=e.getTargetOfBindingOrAssignmentElement(B);if(!F||e.isOmittedExpression(F))return!0;var z=e.tryGetPropertyNameOfBindingOrAssignmentElement(B);if(z&&!e.isPropertyNameLiteral(z))return!1;var ge=e.getInitializerOfBindingOrAssignmentElement(B);return ge&&!e.isSimpleInlineableExpression(ge)?!1:e.isBindingOrAssignmentPattern(F)?e.every(e.getElementsOfBindingOrAssignmentPattern(F),S):e.isIdentifier(F)}function te(B,F,z,ge){return F=Z(B,F,!0,ge),B.context.factory.createConditionalExpression(B.context.factory.createTypeCheck(F,"undefined"),void 0,z,void 0,F)}function Y(B,F,z){if(e.isComputedPropertyName(z)){var ge=Z(B,e.visitNode(z.expression,B.visitor),!1,z);return B.context.factory.createElementAccessExpression(F,ge)}else if(e.isStringOrNumericLiteralLike(z)){var ge=e.factory.cloneNode(z);return B.context.factory.createElementAccessExpression(F,ge)}else{var Pe=B.context.factory.createIdentifier(e.idText(z));return B.context.factory.createPropertyAccessExpression(F,Pe)}}function Z(B,F,z,ge){if(e.isIdentifier(F)&&z)return F;var Pe=B.context.factory.createTempVariable(void 0);return B.hoistTempVariables?(B.context.hoistVariableDeclaration(Pe),B.emitExpression(e.setTextRange(B.context.factory.createAssignment(Pe,F),ge))):B.emitBindingOrAssignment(Pe,F,ge,void 0),Pe}function ce(B,F){return e.Debug.assertEachNode(F,e.isArrayBindingElement),B.createArrayBindingPattern(F)}function k(B,F){return B.createArrayLiteralExpression(e.map(F,B.converters.convertToArrayAssignmentElement))}function X(B,F){return e.Debug.assertEachNode(F,e.isBindingElement),B.createObjectBindingPattern(F)}function A(B,F){return B.createObjectLiteralExpression(e.map(F,B.converters.convertToObjectAssignmentElement))}function y(B,F){return B.createBindingElement(void 0,void 0,F)}function C(B){return B}})(h||(h={}));var h;(function(e){var c;(function(D){D[D.LiftRestriction=0]="LiftRestriction",D[D.All=1]="All"})(c=e.ProcessLevel||(e.ProcessLevel={}));function P(D,O,W,E,v,S){var te=e.visitNode(O.tag,W,e.isExpression),Y=[void 0],Z=[],ce=[],k=O.template;if(S===c.LiftRestriction&&!e.hasInvalidEscape(k))return e.visitEachChild(O,W,D);if(e.isNoSubstitutionTemplateLiteral(k))Z.push(T(k)),ce.push(s(k,E));else{Z.push(T(k.head)),ce.push(s(k.head,E));for(var X=0,A=k.templateSpans;X<A.length;X++){var y=A[X];Z.push(T(y.literal)),ce.push(s(y.literal,E)),Y.push(e.visitNode(y.expression,W,e.isExpression))}}var C=D.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(Z),e.factory.createArrayLiteralExpression(ce));if(e.isExternalModule(E)){var B=e.factory.createUniqueName("templateObject");v(B),Y[0]=e.factory.createLogicalOr(B,e.factory.createAssignment(B,C))}else Y[0]=C;return e.factory.createCallExpression(te,void 0,Y)}e.processTaggedTemplateExpression=P;function T(D){return D.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(D.text)}function s(D,O){var W=D.rawText;if(W===void 0){e.Debug.assertIsDefined(O,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),W=e.getSourceTextOfNodeFromSourceFile(O,D);var E=D.kind===14||D.kind===17;W=W.substring(1,W.length-(E?1:2))}return W=W.replace(/\r\n?/g,`
`),e.setTextRange(e.factory.createStringLiteral(W),D)}})(h||(h={}));var h;(function(e){var c;(function(s){s[s.NamespaceExports=2]="NamespaceExports",s[s.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(c||(c={}));var P;(function(s){s[s.None=0]="None",s[s.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",s[s.HasConstructorDecorators=2]="HasConstructorDecorators",s[s.HasMemberDecorators=4]="HasMemberDecorators",s[s.IsExportOfNamespace=8]="IsExportOfNamespace",s[s.IsNamedExternalExport=16]="IsNamedExternalExport",s[s.IsDefaultExternalExport=32]="IsDefaultExternalExport",s[s.IsDerivedClass=64]="IsDerivedClass",s[s.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",s[s.HasAnyDecorators=6]="HasAnyDecorators",s[s.NeedsName=5]="NeedsName",s[s.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",s[s.IsExported=56]="IsExported"})(P||(P={}));function T(s){var D=s.factory,O=s.getEmitHelperFactory,W=s.startLexicalEnvironment,E=s.resumeLexicalEnvironment,v=s.endLexicalEnvironment,S=s.hoistVariableDeclaration,te=s.getEmitResolver(),Y=s.getCompilerOptions(),Z=e.getEmitScriptTarget(Y),ce=e.getEmitModuleKind(Y),k=Y.emitDecoratorMetadata?e.createRuntimeTypeSerializer(s):void 0,X=s.onEmitNode,A=s.onSubstituteNode;s.onEmitNode=An,s.onSubstituteNode=ii,s.enableSubstitution(208),s.enableSubstitution(209);var y,C,B,F,z,ge,Pe,fe;return _e;function _e($e){return $e.kind===309?ne($e):oe($e)}function ne($e){return D.createBundle($e.sourceFiles.map(oe),e.mapDefined($e.prepends,function(et){return et.kind===311?e.createUnparsedSourceFile(et,"js"):et}))}function oe($e){if($e.isDeclarationFile)return $e;y=$e;var et=w($e,N);return e.addEmitHelpers(et,s.readEmitHelpers()),y=void 0,et}function w($e,et){var It=F,xn=z,pi=ge;re($e);var ai=et($e);return F!==It&&(z=xn),F=It,ge=pi,ai}function re($e){switch($e.kind){case 308:case 266:case 265:case 238:F=$e,z=void 0;break;case 260:case 259:if(e.hasSyntacticModifier($e,2))break;$e.name?Ke($e):e.Debug.assert($e.kind===260||e.hasSyntacticModifier($e,1024));break}}function M($e){return w($e,U)}function U($e){return $e.transformFlags&1?De($e):$e}function H($e){return w($e,q)}function q($e){switch($e.kind){case 269:case 268:case 274:case 275:return R($e);default:return U($e)}}function R($e){var et=e.getParseTreeNode($e);if(et!==$e)return $e.transformFlags&1?e.visitEachChild($e,M,s):$e;switch($e.kind){case 269:return Ir($e);case 268:return Lr($e);case 274:return We($e);case 275:return dr($e);default:e.Debug.fail("Unhandled ellided statement")}}function K($e){return w($e,I)}function I($e){if(!($e.kind===275||$e.kind===269||$e.kind===270||$e.kind===268&&$e.moduleReference.kind===280))return $e.transformFlags&1||e.hasSyntacticModifier($e,1)?De($e):$e}function he($e){return function(et){return w(et,function(It){return le(It,$e)})}}function le($e,et){switch($e.kind){case 173:return Je($e);case 169:return Ue($e,et);case 174:return Oe($e,et);case 175:return Ze($e,et);case 171:return Hr($e,et);case 172:return e.visitEachChild($e,M,s);case 237:return $e;case 178:return;default:return e.Debug.failBadSyntaxKind($e)}}function ee($e){return function(et){return w(et,function(It){return J(It,$e)})}}function J($e,et){switch($e.kind){case 299:case 300:case 301:return M($e);case 174:return Oe($e,et);case 175:return Ze($e,et);case 171:return Hr($e,et);default:return e.Debug.failBadSyntaxKind($e)}}function de($e){if(!e.isDecorator($e)&&!(e.modifierToFlag($e.kind)&117086)&&!(C&&$e.kind===93))return $e}function De($e){if(e.isStatement($e)&&e.hasSyntacticModifier($e,2))return D.createNotEmittedStatement($e);switch($e.kind){case 93:case 88:return C?void 0:$e;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:return;case 262:return D.createNotEmittedStatement($e);case 267:return;case 261:return D.createNotEmittedStatement($e);case 260:return Te($e);case 228:return Ne($e);case 294:return xe($e);case 230:return L($e);case 207:return b($e);case 173:case 169:case 171:case 174:case 175:case 172:return e.Debug.fail("Class and object literal elements must be visited with their respective visitors");case 259:return tt($e);case 215:return ut($e);case 216:return or($e);case 166:return qr($e);case 214:return _t($e);case 213:case 231:return Ct($e);case 235:return Fe($e);case 210:return vr($e);case 211:return Le($e);case 212:return cr($e);case 232:return yt($e);case 263:return Br($e);case 240:return Rr($e);case 257:return Fr($e);case 264:return Wt($e);case 268:return Lr($e);case 282:return $r($e);case 283:return Re($e);default:return e.visitEachChild($e,M,s)}}function N($e){var et=e.getStrictOptionValue(Y,"alwaysStrict")&&!(e.isExternalModule($e)&&ce>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile($e);return D.updateSourceFile($e,e.visitLexicalEnvironment($e.statements,H,s,0,et))}function b($e){return D.updateObjectLiteralExpression($e,e.visitNodes($e.properties,ee($e),e.isObjectLiteralElement))}function Q($e,et){var It=0;e.some(et)&&(It|=1);var xn=e.getEffectiveBaseTypeNode($e);return xn&&e.skipOuterExpressions(xn.expression).kind!==104&&(It|=64),e.classOrConstructorParameterIsDecorated($e)&&(It|=2),e.childIsDecorated($e)&&(It|=4),Ar($e)?It|=8:St($e)?It|=32:Et($e)&&(It|=16),Z<=1&&It&7&&(It|=128),It}function G($e){return!!($e.transformFlags&8192)}function ae($e){return e.hasDecorators($e)||e.some($e.typeParameters)||e.some($e.heritageClauses,G)||e.some($e.members,G)}function Te($e){if(!ae($e)&&!(C&&e.hasSyntacticModifier($e,1)))return D.updateClassDeclaration($e,e.visitNodes($e.modifiers,de,e.isModifier),$e.name,void 0,e.visitNodes($e.heritageClauses,M,e.isHeritageClause),e.visitNodes($e.members,he($e),e.isClassElement));var et=e.getProperties($e,!0,!0),It=Q($e,et);It&128&&s.startLexicalEnvironment();var xn=$e.name||(It&5?D.getGeneratedNameForNode($e):void 0),pi=e.getAllDecoratorsOfClass($e),ai=nr($e,$e,pi),Wi=It&128?e.elideNodes(D,$e.modifiers):e.visitNodes($e.modifiers,de,e.isModifier),ji=D.updateClassDeclaration($e,e.concatenate(ai,Wi),xn,void 0,e.visitNodes($e.heritageClauses,M,e.isHeritageClause),we($e)),fn=e.getEmitFlags($e);It&1&&(fn|=32),e.setEmitFlags(ji,fn);var Ri=[ji];if(It&128){var ma=e.createTokenRange(e.skipTrivia(y.text,$e.members.end),19),ra=D.getInternalName($e),vn=D.createPartiallyEmittedExpression(ra);e.setTextRangeEnd(vn,ma.end),e.setEmitFlags(vn,1536);var zo=D.createReturnStatement(vn);e.setTextRangePos(zo,ma.pos),e.setEmitFlags(zo,1920),Ri.push(zo),e.insertStatementsAfterStandardPrologue(Ri,s.endLexicalEnvironment());var _a=D.createImmediatelyInvokedArrowFunction(Ri);e.setEmitFlags(_a,33554432);var Ha=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.getLocalName($e,!1,!1),void 0,void 0,_a)]));e.setOriginalNode(Ha,$e),e.setCommentRange(Ha,$e),e.setSourceMapRange(Ha,e.moveRangePastDecorators($e)),e.startOnNewLine(Ha),Ri=[Ha]}return It&8?Pt(Ri,$e):(It&128||It&2)&&(It&32?Ri.push(D.createExportDefault(D.getLocalName($e,!1,!0))):It&16&&Ri.push(D.createExternalModuleExport(D.getLocalName($e,!1,!0)))),Ri.length>1&&(Ri.push(D.createEndOfDeclarationMarker($e)),e.setEmitFlags(ji,e.getEmitFlags(ji)|4194304)),e.singleOrMany(Ri)}function Ne($e){var et=e.getAllDecoratorsOfClass($e),It=nr($e,$e,et);return D.updateClassExpression($e,It,$e.name,void 0,e.visitNodes($e.heritageClauses,M,e.isHeritageClause),ae($e)?we($e):e.visitNodes($e.members,he($e),e.isClassElement))}function we($e){var et=[],It=e.getFirstConstructorWithBody($e),xn=It&&e.filter(It.parameters,function(ji){return e.isParameterPropertyDeclaration(ji,It)});if(xn)for(var pi=0,ai=xn;pi<ai.length;pi++){var Wi=ai[pi];e.isIdentifier(Wi.name)&&et.push(e.setOriginalNode(D.createPropertyDeclaration(void 0,Wi.name,void 0,void 0,void 0),Wi))}return e.addRange(et,e.visitNodes($e.members,he($e),e.isClassElement)),e.setTextRange(D.createNodeArray(et),$e.members)}function nr($e,et,It){var xn,pi,ai,Wi;if(It){var ji=e.visitArray(It.decorators,M,e.isDecorator),fn=e.flatMap(It.parameters,tr),Ri=e.some(ji)||e.some(fn)?me($e,et):void 0,ma=D.createNodeArray(e.concatenate(e.concatenate(ji,fn),Ri)),ra=(pi=(xn=e.firstOrUndefined(It.decorators))===null||xn===void 0?void 0:xn.pos)!==null&&pi!==void 0?pi:-1,vn=(Wi=(ai=e.lastOrUndefined(It.decorators))===null||ai===void 0?void 0:ai.end)!==null&&Wi!==void 0?Wi:-1;return e.setTextRangePosEnd(ma,ra,vn),ma}}function tr($e,et){if($e){for(var It=[],xn=0,pi=$e;xn<pi.length;xn++){var ai=pi[xn],Wi=e.visitNode(ai.expression,M,e.isExpression),ji=O().createParamHelper(Wi,et);e.setTextRange(ji,ai.expression),e.setEmitFlags(ji,1536);var fn=D.createDecorator(ji);e.setSourceMapRange(fn,ai.expression),e.setCommentRange(fn,ai.expression),e.setEmitFlags(fn,1536),It.push(fn)}return It}}function me($e,et){return He($e,et)}function He($e,et){if(k){var It=void 0;if(rr($e)){var xn=O().createMetadataHelper("design:type",k.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:et},$e));It=e.append(It,D.createDecorator(xn))}if(Ce($e)){var pi=O().createMetadataHelper("design:paramtypes",k.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:et},$e,et));It=e.append(It,D.createDecorator(pi))}if(je($e)){var ai=O().createMetadataHelper("design:returntype",k.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:et},$e));It=e.append(It,D.createDecorator(ai))}return It}}function rr($e){var et=$e.kind;return et===171||et===174||et===175||et===169}function je($e){return $e.kind===171}function Ce($e){switch($e.kind){case 260:case 228:return e.getFirstConstructorWithBody($e)!==void 0;case 171:case 174:case 175:return!0}return!1}function Ae($e,et){var It=$e.name;return e.isPrivateIdentifier(It)?D.createIdentifier(""):e.isComputedPropertyName(It)?et&&!e.isSimpleInlineableExpression(It.expression)?D.getGeneratedNameForNode(It):It.expression:e.isIdentifier(It)?D.createStringLiteral(e.idText(It)):D.cloneNode(It)}function qe($e){var et=$e.name;if(e.isComputedPropertyName(et)&&(!e.hasStaticModifier($e)&&ge||e.hasDecorators($e))){var It=e.visitNode(et.expression,M,e.isExpression),xn=e.skipPartiallyEmittedExpressions(It);if(!e.isSimpleInlineableExpression(xn)){var pi=D.getGeneratedNameForNode(et);return S(pi),D.updateComputedPropertyName(et,D.createAssignment(pi,It))}}return e.visitNode(et,M,e.isPropertyName)}function xe($e){if($e.token!==117)return e.visitEachChild($e,M,s)}function L($e){return D.updateExpressionWithTypeArguments($e,e.visitNode($e.expression,M,e.isLeftHandSideExpression),void 0)}function ue($e){return!e.nodeIsMissing($e.body)}function Ue($e,et){var It=$e.flags&16777216||e.hasSyntacticModifier($e,256);if(!(It&&!e.hasDecorators($e))){var xn=e.getAllDecoratorsOfClassElement($e,et),pi=nr($e,et,xn);return It?D.updatePropertyDeclaration($e,e.concatenate(pi,D.createModifiersFromModifierFlags(2)),e.visitNode($e.name,M,e.isPropertyName),void 0,void 0,void 0):D.updatePropertyDeclaration($e,e.concatenate(pi,e.visitNodes($e.modifiers,de,e.isModifierLike)),qe($e),void 0,void 0,e.visitNode($e.initializer,M))}}function Je($e){if(ue($e))return D.updateConstructorDeclaration($e,void 0,e.visitParameterList($e.parameters,M,s),lr($e.body,$e))}function lr($e,et){var It=et&&e.filter(et.parameters,function(Ri){return e.isParameterPropertyDeclaration(Ri,et)});if(!e.some(It))return e.visitFunctionBody($e,M,s);var xn=[];E();var pi=D.copyPrologue($e.statements,xn,!1,M),ai=e.findSuperStatementIndex($e.statements,pi);ai>=0&&e.addRange(xn,e.visitNodes($e.statements,M,e.isStatement,pi,ai+1-pi));var Wi=e.mapDefined(It,mr);ai>=0?e.addRange(xn,Wi):xn=t(t(t([],xn.slice(0,pi),!0),Wi,!0),xn.slice(pi),!0);var ji=ai>=0?ai+1:pi;e.addRange(xn,e.visitNodes($e.statements,M,e.isStatement,ji)),xn=D.mergeLexicalEnvironment(xn,v());var fn=D.createBlock(e.setTextRange(D.createNodeArray(xn),$e.statements),!0);return e.setTextRange(fn,$e),e.setOriginalNode(fn,$e),fn}function mr($e){var et=$e.name;if(e.isIdentifier(et)){var It=e.setParent(e.setTextRange(D.cloneNode(et),et),et.parent);e.setEmitFlags(It,1584);var xn=e.setParent(e.setTextRange(D.cloneNode(et),et),et.parent);return e.setEmitFlags(xn,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(D.createExpressionStatement(D.createAssignment(e.setTextRange(D.createPropertyAccessExpression(D.createThis(),It),$e.name),xn)),$e),e.moveRangePos($e,-1))))}}function Hr($e,et){if(!($e.transformFlags&1))return $e;if(ue($e)){var It=e.isClassLike(et)?e.getAllDecoratorsOfClassElement($e,et):void 0,xn=e.isClassLike(et)?nr($e,et,It):void 0;return D.updateMethodDeclaration($e,e.concatenate(xn,e.visitNodes($e.modifiers,de,e.isModifierLike)),$e.asteriskToken,qe($e),void 0,void 0,e.visitParameterList($e.parameters,M,s),void 0,e.visitFunctionBody($e.body,M,s))}}function wr($e){return!(e.nodeIsMissing($e.body)&&e.hasSyntacticModifier($e,256))}function Oe($e,et){if(!($e.transformFlags&1))return $e;if(wr($e)){var It=e.isClassLike(et)?nr($e,et,e.getAllDecoratorsOfClassElement($e,et)):void 0;return D.updateGetAccessorDeclaration($e,e.concatenate(It,e.visitNodes($e.modifiers,de,e.isModifierLike)),qe($e),e.visitParameterList($e.parameters,M,s),void 0,e.visitFunctionBody($e.body,M,s)||D.createBlock([]))}}function Ze($e,et){if(!($e.transformFlags&1))return $e;if(wr($e)){var It=e.isClassLike(et)?nr($e,et,e.getAllDecoratorsOfClassElement($e,et)):void 0;return D.updateSetAccessorDeclaration($e,e.concatenate(It,e.visitNodes($e.modifiers,de,e.isModifierLike)),qe($e),e.visitParameterList($e.parameters,M,s),e.visitFunctionBody($e.body,M,s)||D.createBlock([]))}}function tt($e){if(!ue($e))return D.createNotEmittedStatement($e);var et=D.updateFunctionDeclaration($e,e.visitNodes($e.modifiers,de,e.isModifier),$e.asteriskToken,$e.name,void 0,e.visitParameterList($e.parameters,M,s),void 0,e.visitFunctionBody($e.body,M,s)||D.createBlock([]));if(Ar($e)){var It=[et];return Pt(It,$e),It}return et}function ut($e){if(!ue($e))return D.createOmittedExpression();var et=D.updateFunctionExpression($e,e.visitNodes($e.modifiers,de,e.isModifier),$e.asteriskToken,$e.name,void 0,e.visitParameterList($e.parameters,M,s),void 0,e.visitFunctionBody($e.body,M,s)||D.createBlock([]));return et}function or($e){var et=D.updateArrowFunction($e,e.visitNodes($e.modifiers,de,e.isModifier),void 0,e.visitParameterList($e.parameters,M,s),void 0,$e.equalsGreaterThanToken,e.visitFunctionBody($e.body,M,s));return et}function qr($e){if(!e.parameterIsThisKeyword($e)){var et=D.updateParameterDeclaration($e,e.elideNodes(D,$e.modifiers),$e.dotDotDotToken,e.visitNode($e.name,M,e.isBindingName),void 0,void 0,e.visitNode($e.initializer,M,e.isExpression));return et!==$e&&(e.setCommentRange(et,$e),e.setTextRange(et,e.moveRangePastModifiers($e)),e.setSourceMapRange(et,e.moveRangePastModifiers($e)),e.setEmitFlags(et.name,32)),et}}function Rr($e){if(Ar($e)){var et=e.getInitializedVariables($e.declarationList);return et.length===0?void 0:e.setTextRange(D.createExpressionStatement(D.inlineExpressions(e.map(et,zr))),$e)}else return e.visitEachChild($e,M,s)}function zr($e){var et=$e.name;return e.isBindingPattern(et)?e.flattenDestructuringAssignment($e,M,s,0,!1,Ft):e.setTextRange(D.createAssignment(ht(et),e.visitNode($e.initializer,M,e.isExpression)),$e)}function Fr($e){var et=D.updateVariableDeclaration($e,e.visitNode($e.name,M,e.isBindingName),void 0,void 0,e.visitNode($e.initializer,M,e.isExpression));return $e.type&&e.setTypeNode(et.name,$e.type),et}function _t($e){var et=e.skipOuterExpressions($e.expression,-7);if(e.isAssertionExpression(et)){var It=e.visitNode($e.expression,M,e.isExpression);return D.createPartiallyEmittedExpression(It,$e)}return e.visitEachChild($e,M,s)}function Ct($e){var et=e.visitNode($e.expression,M,e.isExpression);return D.createPartiallyEmittedExpression(et,$e)}function yt($e){var et=e.visitNode($e.expression,M,e.isLeftHandSideExpression);return D.createPartiallyEmittedExpression(et,$e)}function Fe($e){var et=e.visitNode($e.expression,M,e.isExpression);return D.createPartiallyEmittedExpression(et,$e)}function vr($e){return D.updateCallExpression($e,e.visitNode($e.expression,M,e.isExpression),void 0,e.visitNodes($e.arguments,M,e.isExpression))}function Le($e){return D.updateNewExpression($e,e.visitNode($e.expression,M,e.isExpression),void 0,e.visitNodes($e.arguments,M,e.isExpression))}function cr($e){return D.updateTaggedTemplateExpression($e,e.visitNode($e.tag,M,e.isExpression),void 0,e.visitNode($e.template,M,e.isExpression))}function $r($e){return D.updateJsxSelfClosingElement($e,e.visitNode($e.tagName,M,e.isJsxTagNameExpression),void 0,e.visitNode($e.attributes,M,e.isJsxAttributes))}function Re($e){return D.updateJsxOpeningElement($e,e.visitNode($e.tagName,M,e.isJsxTagNameExpression),void 0,e.visitNode($e.attributes,M,e.isJsxAttributes))}function xr($e){return!e.isEnumConst($e)||e.shouldPreserveConstEnums(Y)}function Br($e){if(!xr($e))return D.createNotEmittedStatement($e);var et=[],It=2,xn=Nt(et,$e);xn&&(ce!==e.ModuleKind.System||F!==y)&&(It|=512);var pi=Yt($e),ai=un($e),Wi=e.hasSyntacticModifier($e,1)?D.getExternalModuleOrNamespaceExportName(B,$e,!1,!0):D.getLocalName($e,!1,!0),ji=D.createLogicalOr(Wi,D.createAssignment(Wi,D.createObjectLiteralExpression()));if(Me($e)){var fn=D.getLocalName($e,!1,!0);ji=D.createAssignment(fn,ji)}var Ri=D.createExpressionStatement(D.createCallExpression(D.createFunctionExpression(void 0,void 0,void 0,void 0,[D.createParameterDeclaration(void 0,void 0,pi)],void 0,Qr($e,ai)),void 0,[ji]));return e.setOriginalNode(Ri,$e),xn&&(e.setSyntheticLeadingComments(Ri,void 0),e.setSyntheticTrailingComments(Ri,void 0)),e.setTextRange(Ri,$e),e.addEmitFlags(Ri,It),et.push(Ri),et.push(D.createEndOfDeclarationMarker($e)),et}function Qr($e,et){var It=B;B=et;var xn=[];W();var pi=e.map($e.members,ct);return e.insertStatementsAfterStandardPrologue(xn,v()),e.addRange(xn,pi),B=It,D.createBlock(e.setTextRange(D.createNodeArray(xn),$e.members),!0)}function ct($e){var et=Ae($e,!1),It=ft($e),xn=D.createAssignment(D.createElementAccessExpression(B,et),It),pi=It.kind===10?xn:D.createAssignment(D.createElementAccessExpression(B,xn),et);return e.setTextRange(D.createExpressionStatement(e.setTextRange(pi,$e)),$e)}function ft($e){var et=te.getConstantValue($e);return et!==void 0?typeof et=="string"?D.createStringLiteral(et):D.createNumericLiteral(et):(wn(),$e.initializer?e.visitNode($e.initializer,M,e.isExpression):D.createVoidZero())}function Dt($e){var et=e.getParseTreeNode($e,e.isModuleDeclaration);return et?e.isInstantiatedModule(et,e.shouldPreserveConstEnums(Y)):!0}function Me($e){return Ar($e)||rt($e)&&ce!==e.ModuleKind.ES2015&&ce!==e.ModuleKind.ES2020&&ce!==e.ModuleKind.ES2022&&ce!==e.ModuleKind.ESNext&&ce!==e.ModuleKind.System}function Ke($e){z||(z=new e.Map);var et=Yr($e);z.has(et)||z.set(et,$e)}function Vr($e){if(z){var et=Yr($e);return z.get(et)===$e}return!0}function Yr($e){return e.Debug.assertNode($e.name,e.isIdentifier),$e.name.escapedText}function Nt($e,et){var It=D.createVariableStatement(e.visitNodes(et.modifiers,de,e.isModifier),D.createVariableDeclarationList([D.createVariableDeclaration(D.getLocalName(et,!1,!0))],F.kind===308?0:1));if(e.setOriginalNode(It,et),Ke(et),Vr(et))return et.kind===263?e.setSourceMapRange(It.declarationList,et):e.setSourceMapRange(It,et),e.setCommentRange(It,et),e.addEmitFlags(It,4195328),$e.push(It),!0;var xn=D.createMergeDeclarationMarker(It);return e.setEmitFlags(xn,4195840),$e.push(xn),!1}function Wt($e){if(!Dt($e))return D.createNotEmittedStatement($e);e.Debug.assertNode($e.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),Bn();var et=[],It=2,xn=Nt(et,$e);xn&&(ce!==e.ModuleKind.System||F!==y)&&(It|=512);var pi=Yt($e),ai=un($e),Wi=e.hasSyntacticModifier($e,1)?D.getExternalModuleOrNamespaceExportName(B,$e,!1,!0):D.getLocalName($e,!1,!0),ji=D.createLogicalOr(Wi,D.createAssignment(Wi,D.createObjectLiteralExpression()));if(Me($e)){var fn=D.getLocalName($e,!1,!0);ji=D.createAssignment(fn,ji)}var Ri=D.createExpressionStatement(D.createCallExpression(D.createFunctionExpression(void 0,void 0,void 0,void 0,[D.createParameterDeclaration(void 0,void 0,pi)],void 0,sn($e,ai)),void 0,[ji]));return e.setOriginalNode(Ri,$e),xn&&(e.setSyntheticLeadingComments(Ri,void 0),e.setSyntheticTrailingComments(Ri,void 0)),e.setTextRange(Ri,$e),e.addEmitFlags(Ri,It),et.push(Ri),et.push(D.createEndOfDeclarationMarker($e)),et}function sn($e,et){var It=B,xn=C,pi=z;B=et,C=$e,z=void 0;var ai=[];W();var Wi,ji;if($e.body)if($e.body.kind===265)w($e.body,function(ra){return e.addRange(ai,e.visitNodes(ra.statements,K,e.isStatement))}),Wi=$e.body.statements,ji=$e.body;else{var fn=Wt($e.body);fn&&(e.isArray(fn)?e.addRange(ai,fn):ai.push(fn));var Ri=en($e).body;Wi=e.moveRangePos(Ri.statements,-1)}e.insertStatementsAfterStandardPrologue(ai,v()),B=It,C=xn,z=pi;var ma=D.createBlock(e.setTextRange(D.createNodeArray(ai),Wi),!0);return e.setTextRange(ma,ji),(!$e.body||$e.body.kind!==265)&&e.setEmitFlags(ma,e.getEmitFlags(ma)|1536),ma}function en($e){if($e.body.kind===264){var et=en($e.body);return et||$e.body}}function Ir($e){if(!$e.importClause)return $e;if(!$e.importClause.isTypeOnly){var et=e.visitNode($e.importClause,Jr,e.isImportClause);return et||Y.importsNotUsedAsValues===1||Y.importsNotUsedAsValues===2?D.updateImportDeclaration($e,void 0,et,$e.moduleSpecifier,$e.assertClause):void 0}}function Jr($e){e.Debug.assert(!$e.isTypeOnly);var et=Lt($e)?$e.name:void 0,It=e.visitNode($e.namedBindings,ye,e.isNamedImportBindings);return et||It?D.updateImportClause($e,!1,et,It):void 0}function ye($e){if($e.kind===271)return Lt($e)?$e:void 0;var et=Y.preserveValueImports&&(Y.importsNotUsedAsValues===1||Y.importsNotUsedAsValues===2),It=e.visitNodes($e.elements,Ie,e.isImportSpecifier);return et||e.some(It)?D.updateNamedImports($e,It):void 0}function Ie($e){return!$e.isTypeOnly&&Lt($e)?$e:void 0}function We($e){return te.isValueAliasDeclaration($e)?e.visitEachChild($e,M,s):void 0}function dr($e){if(!$e.isTypeOnly){if(!$e.exportClause||e.isNamespaceExport($e.exportClause))return $e;var et=!!$e.moduleSpecifier&&(Y.importsNotUsedAsValues===1||Y.importsNotUsedAsValues===2),It=e.visitNode($e.exportClause,function(xn){return Or(xn,et)},e.isNamedExportBindings);return It?D.updateExportDeclaration($e,void 0,$e.isTypeOnly,It,$e.moduleSpecifier,$e.assertClause):void 0}}function ar($e,et){var It=e.visitNodes($e.elements,Ge,e.isExportSpecifier);return et||e.some(It)?D.updateNamedExports($e,It):void 0}function Sr($e){return D.updateNamespaceExport($e,e.visitNode($e.name,M,e.isIdentifier))}function Or($e,et){return e.isNamespaceExport($e)?Sr($e):ar($e,et)}function Ge($e){return!$e.isTypeOnly&&te.isValueAliasDeclaration($e)?$e:void 0}function ur($e){return Lt($e)||!e.isExternalModule(y)&&te.isTopLevelValueImportEqualsWithEntityName($e)}function Lr($e){if(!$e.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration($e)){var et=Lt($e);return!et&&Y.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(D.createImportDeclaration(void 0,void 0,$e.moduleReference.expression,void 0),$e),$e):et?e.visitEachChild($e,M,s):void 0}if(ur($e)){var It=e.createExpressionFromEntityName(D,$e.moduleReference);return e.setEmitFlags(It,3584),Et($e)||!Ar($e)?e.setOriginalNode(e.setTextRange(D.createVariableStatement(e.visitNodes($e.modifiers,de,e.isModifier),D.createVariableDeclarationList([e.setOriginalNode(D.createVariableDeclaration($e.name,void 0,void 0,It),$e)])),$e),$e):e.setOriginalNode(pt($e.name,It,$e),$e)}}}function Ar($e){return C!==void 0&&e.hasSyntacticModifier($e,1)}function rt($e){return C===void 0&&e.hasSyntacticModifier($e,1)}function Et($e){return rt($e)&&!e.hasSyntacticModifier($e,1024)}function St($e){return rt($e)&&e.hasSyntacticModifier($e,1024)}function Pt($e,et){var It=D.createAssignment(D.getExternalModuleOrNamespaceExportName(B,et,!1,!0),D.getLocalName(et));e.setSourceMapRange(It,e.createRange(et.name?et.name.pos:et.pos,et.end));var xn=D.createExpressionStatement(It);e.setSourceMapRange(xn,e.createRange(-1,et.end)),$e.push(xn)}function pt($e,et,It){return e.setTextRange(D.createExpressionStatement(D.createAssignment(D.getNamespaceMemberName(B,$e,!1,!0),et)),It)}function Ft($e,et,It){return e.setTextRange(D.createAssignment(ht($e),et),It)}function ht($e){return D.getNamespaceMemberName(B,$e,!1,!0)}function Yt($e){var et=D.getGeneratedNameForNode($e);return e.setSourceMapRange(et,$e.name),et}function un($e){return D.getGeneratedNameForNode($e)}function wn(){Pe&8||(Pe|=8,s.enableSubstitution(79))}function Bn(){Pe&2||(Pe|=2,s.enableSubstitution(79),s.enableSubstitution(300),s.enableEmitNotification(264))}function yn($e){return e.getOriginalNode($e).kind===264}function Tn($e){return e.getOriginalNode($e).kind===263}function An($e,et,It){var xn=fe,pi=y;e.isSourceFile(et)&&(y=et),Pe&2&&yn(et)&&(fe|=2),Pe&8&&Tn(et)&&(fe|=8),X($e,et,It),fe=xn,y=pi}function ii($e,et){return et=A($e,et),$e===1?hr(et):e.isShorthandPropertyAssignment(et)?Xe(et):et}function Xe($e){if(Pe&2){var et=$e.name,It=Qe(et);if(It){if($e.objectAssignmentInitializer){var xn=D.createAssignment(It,$e.objectAssignmentInitializer);return e.setTextRange(D.createPropertyAssignment(et,xn),$e)}return e.setTextRange(D.createPropertyAssignment(et,It),$e)}}return $e}function hr($e){switch($e.kind){case 79:return at($e);case 208:return Qt($e);case 209:return Zt($e)}return $e}function at($e){return Qe($e)||$e}function Qe($e){if(Pe&fe&&!e.isGeneratedIdentifier($e)&&!e.isLocalName($e)){var et=te.getReferencedExportContainer($e,!1);if(et&&et.kind!==308){var It=fe&2&&et.kind===264||fe&8&&et.kind===263;if(It)return e.setTextRange(D.createPropertyAccessExpression(D.getGeneratedNameForNode(et),$e),$e)}}}function Qt($e){return gt($e)}function Zt($e){return gt($e)}function Tt($e){return $e.replace(/\*\//g,"*_/")}function gt($e){var et=kt($e);if(et!==void 0){e.setConstantValue($e,et);var It=typeof et=="string"?D.createStringLiteral(et):D.createNumericLiteral(et);if(!Y.removeComments){var xn=e.getOriginalNode($e,e.isAccessExpression);e.addSyntheticTrailingComment(It,3," ".concat(Tt(e.getTextOfNode(xn))," "))}return It}return $e}function kt($e){if(!Y.isolatedModules)return e.isPropertyAccessExpression($e)||e.isElementAccessExpression($e)?te.getConstantValue($e):void 0}function Lt($e){return e.isInJSFile($e)||(Y.preserveValueImports?te.isValueAliasDeclaration($e):te.isReferencedAliasDeclaration($e))}}e.transformTypeScript=T})(h||(h={}));var h;(function(e){var c;(function(Y){Y[Y.ClassAliases=1]="ClassAliases",Y[Y.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(c||(c={})),function(Y){Y.Field="f",Y.Method="m",Y.Accessor="a"}(e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var P;(function(Y){Y[Y.None=0]="None",Y[Y.ClassWasDecorated=1]="ClassWasDecorated",Y[Y.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",Y[Y.NeedsClassSuperReference=4]="NeedsClassSuperReference",Y[Y.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(P||(P={}));function T(Y){var Z=Y.factory,ce=Y.hoistVariableDeclaration,k=Y.endLexicalEnvironment,X=Y.startLexicalEnvironment,A=Y.resumeLexicalEnvironment,y=Y.addBlockScopedVariable,C=Y.getEmitResolver(),B=Y.getCompilerOptions(),F=e.getEmitScriptTarget(B),z=e.getUseDefineForClassFields(B),ge=!z,Pe=z&&F<9,fe=ge||Pe,_e=F<9,ne=F<99,oe=F<9,w=oe&&F>=2,re=fe||_e||ne,M=Y.onSubstituteNode;Y.onSubstituteNode=Ir;var U=Y.onEmitNode;Y.onEmitNode=en;var H,q,R,K,I=[],he=new e.Map,le,ee,J,de;return e.chainBundle(Y,De);function De(Xe){if(Xe.isDeclarationFile||!re)return Xe;var hr=e.visitEachChild(Xe,N,Y);return e.addEmitHelpers(hr,Y.readEmitHelpers()),hr}function N(Xe){if(!(Xe.transformFlags&16777216)&&!(Xe.transformFlags&134234112))return Xe;switch(Xe.kind){case 127:return ne?void 0:Xe;case 260:return Fe(Xe);case 228:return Le(Xe);case 172:return $r(Xe);case 169:return Ue(Xe);case 240:return me(Xe);case 80:return we(Xe);case 208:return mr(Xe);case 209:return Hr(Xe);case 221:case 222:return wr(Xe,!1);case 223:return Rr(Xe,!1);case 210:return ut(Xe);case 241:return Ze(Xe);case 212:return or(Xe);case 245:return Oe(Xe);case 259:case 215:case 173:case 171:case 174:case 175:return Ce(void 0,b,Xe);default:return b(Xe)}}function b(Xe){return e.visitEachChild(Xe,N,Y)}function Q(Xe){switch(Xe.kind){case 221:case 222:return wr(Xe,!0);case 223:return Rr(Xe,!0);default:return N(Xe)}}function G(Xe){switch(Xe.kind){case 294:return e.visitEachChild(Xe,G,Y);case 230:return Ct(Xe);default:return N(Xe)}}function ae(Xe){switch(Xe.kind){case 207:case 206:return ii(Xe);default:return N(Xe)}}function Te(Xe){switch(Xe.kind){case 173:return rr(Xe);case 174:case 175:case 171:return Ce(void 0,je,Xe);case 169:return Ce(void 0,Ue,Xe);case 164:return He(Xe);case 237:return Xe;default:return N(Xe)}}function Ne(Xe){switch(Xe.kind){case 169:return ue(Xe);case 174:case 175:return Te(Xe);default:e.Debug.assertMissingNode(Xe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function we(Xe){return!_e||e.isStatement(Xe.parent)?Xe:e.setOriginalNode(Z.createIdentifier(""),Xe)}function nr(Xe){return e.isPrivateIdentifier(Xe.left)&&Xe.operatorToken.kind===101}function tr(Xe){var hr=Yt(Xe.left);if(hr){var at=e.visitNode(Xe.right,N,e.isExpression);return e.setOriginalNode(Y.getEmitHelperFactory().createClassPrivateFieldInHelper(hr.brandCheckIdentifier,at),Xe)}return e.visitEachChild(Xe,N,Y)}function me(Xe){var hr=K;K=[];var at=e.visitEachChild(Xe,N,Y),Qe=e.some(K)?t([at],K,!0):at;return K=hr,Qe}function He(Xe){var hr=e.visitNode(Xe.expression,N,e.isExpression);return e.some(R)&&(e.isParenthesizedExpression(hr)?hr=Z.updateParenthesizedExpression(hr,Z.inlineExpressions(t(t([],R,!0),[hr.expression],!1))):hr=Z.inlineExpressions(t(t([],R,!0),[hr],!1)),R=void 0),Z.updateComputedPropertyName(Xe,hr)}function rr(Xe){return ee?Qr(Xe,ee):b(Xe)}function je(Xe){if(e.Debug.assert(!e.hasDecorators(Xe)),!_e||!e.isPrivateIdentifier(Xe.name))return e.visitEachChild(Xe,Te,Y);var hr=Yt(Xe.name);if(e.Debug.assert(hr,"Undeclared private name for property declaration."),!hr.isValid)return Xe;var at=Ae(Xe);at&&ur().push(Z.createAssignment(at,Z.createFunctionExpression(e.filter(Xe.modifiers,function(Qe){return e.isModifier(Qe)&&!e.isStaticModifier(Qe)&&!e.isAccessorModifier(Qe)}),Xe.asteriskToken,at,void 0,e.visitParameterList(Xe.parameters,N,Y),void 0,e.visitFunctionBody(Xe.body,N,Y))))}function Ce(Xe,hr,at){var Qe=de;de=Xe;var Qt=hr(at);return de=Qe,Qt}function Ae(Xe){e.Debug.assert(e.isPrivateIdentifier(Xe.name));var hr=Yt(Xe.name);if(e.Debug.assert(hr,"Undeclared private name for property declaration."),hr.kind==="m")return hr.methodName;if(hr.kind==="a"){if(e.isGetAccessor(Xe))return hr.getterName;if(e.isSetAccessor(Xe))return hr.setterName}}function qe(Xe){e.Debug.assertEachNode(Xe.modifiers,e.isModifier);var hr=e.getCommentRange(Xe),at=e.getSourceMapRange(Xe),Qe=Xe.name,Qt=Qe,Zt=Qe;if(e.isComputedPropertyName(Qe)&&!e.isSimpleInlineableExpression(Qe.expression)){var Tt=Z.createTempVariable(ce);e.setSourceMapRange(Tt,Qe.expression);var gt=e.visitNode(Qe.expression,N,e.isExpression),kt=Z.createAssignment(Tt,gt);e.setSourceMapRange(kt,Qe.expression),Qt=Z.updateComputedPropertyName(Qe,Z.inlineExpressions([kt,Tt])),Zt=Z.updateComputedPropertyName(Qe,Tt)}var Lt=e.createAccessorPropertyBackingField(Z,Xe,Xe.modifiers,Xe.initializer);e.setOriginalNode(Lt,Xe),e.setEmitFlags(Lt,1536),e.setSourceMapRange(Lt,at);var $e=e.createAccessorPropertyGetRedirector(Z,Xe,Xe.modifiers,Qt);e.setOriginalNode($e,Xe),e.setCommentRange($e,hr),e.setSourceMapRange($e,at);var et=e.createAccessorPropertySetRedirector(Z,Xe,Xe.modifiers,Zt);return e.setOriginalNode(et,Xe),e.setEmitFlags(et,1536),e.setSourceMapRange(et,at),e.visitArray([Lt,$e,et],Ne,e.isClassElement)}function xe(Xe){if(_e){var hr=Yt(Xe.name);return e.Debug.assert(hr,"Undeclared private name for property declaration."),hr.isValid?void 0:Xe}return ge&&!e.isStatic(Xe)?Z.updatePropertyDeclaration(Xe,e.visitNodes(Xe.modifiers,N,e.isModifierLike),Xe.name,void 0,void 0,void 0):e.visitEachChild(Xe,N,Y)}function L(Xe){if(fe){var hr=dr(Xe.name,!!Xe.initializer||z);if(hr&&ur().push(hr),e.isStatic(Xe)&&!_e){var at=Dt(Xe,Z.createThis());if(at){var Qe=Z.createClassStaticBlockDeclaration(Z.createBlock([at]));return e.setOriginalNode(Qe,Xe),e.setCommentRange(Qe,Xe),e.setCommentRange(at,{pos:-1,end:-1}),e.setSyntheticLeadingComments(at,void 0),e.setSyntheticTrailingComments(at,void 0),Qe}}return}return e.visitEachChild(Xe,Te,Y)}function ue(Xe){return e.Debug.assert(!e.hasDecorators(Xe),"Decorators should already have been transformed and elided."),e.isPrivateIdentifierClassElementDeclaration(Xe)?xe(Xe):L(Xe)}function Ue(Xe){return ne&&e.isAutoAccessorPropertyDeclaration(Xe)?qe(Xe):ue(Xe)}function Je(Xe,hr){return lr(Xe,e.visitNode(hr,N,e.isExpression))}function lr(Xe,hr){switch(e.setCommentRange(hr,e.moveRangePos(hr,-1)),Xe.kind){case"a":return Y.getEmitHelperFactory().createClassPrivateFieldGetHelper(hr,Xe.brandCheckIdentifier,Xe.kind,Xe.getterName);case"m":return Y.getEmitHelperFactory().createClassPrivateFieldGetHelper(hr,Xe.brandCheckIdentifier,Xe.kind,Xe.methodName);case"f":return Y.getEmitHelperFactory().createClassPrivateFieldGetHelper(hr,Xe.brandCheckIdentifier,Xe.kind,Xe.variableName);default:e.Debug.assertNever(Xe,"Unknown private element type")}}function mr(Xe){if(_e&&e.isPrivateIdentifier(Xe.name)){var hr=Yt(Xe.name);if(hr)return e.setTextRange(e.setOriginalNode(Je(hr,Xe.expression),Xe),Xe)}if(w&&e.isSuperProperty(Xe)&&e.isIdentifier(Xe.name)&&de&&le){var at=le.classConstructor,Qe=le.superClassReference,Qt=le.facts;if(Qt&1)return sn(Xe);if(at&&Qe){var Zt=Z.createReflectGetCall(Qe,Z.createStringLiteralFromNode(Xe.name),at);return e.setOriginalNode(Zt,Xe.expression),e.setTextRange(Zt,Xe.expression),Zt}}return e.visitEachChild(Xe,N,Y)}function Hr(Xe){if(w&&e.isSuperProperty(Xe)&&de&&le){var hr=le.classConstructor,at=le.superClassReference,Qe=le.facts;if(Qe&1)return sn(Xe);if(hr&&at){var Qt=Z.createReflectGetCall(at,e.visitNode(Xe.argumentExpression,N,e.isExpression),hr);return e.setOriginalNode(Qt,Xe.expression),e.setTextRange(Qt,Xe.expression),Qt}}return e.visitEachChild(Xe,N,Y)}function wr(Xe,hr){if(Xe.operator===45||Xe.operator===46){var at=e.skipParentheses(Xe.operand);if(_e&&e.isPrivateIdentifierPropertyAccessExpression(at)){var Qe=void 0;if(Qe=Yt(at.name)){var Qt=e.visitNode(at.expression,N,e.isExpression),Zt=tt(Qt),Tt=Zt.readExpression,gt=Zt.initializeExpression,kt=Je(Qe,Tt),Lt=e.isPrefixUnaryExpression(Xe)||hr?void 0:Z.createTempVariable(ce);return kt=e.expandPreOrPostfixIncrementOrDecrementExpression(Z,Xe,kt,ce,Lt),kt=zr(Qe,gt||Tt,kt,63),e.setOriginalNode(kt,Xe),e.setTextRange(kt,Xe),Lt&&(kt=Z.createComma(kt,Lt),e.setTextRange(kt,Xe)),kt}}else if(w&&e.isSuperProperty(at)&&de&&le){var $e=le.classConstructor,et=le.superClassReference,It=le.facts;if(It&1){var kt=sn(at);return e.isPrefixUnaryExpression(Xe)?Z.updatePrefixUnaryExpression(Xe,kt):Z.updatePostfixUnaryExpression(Xe,kt)}if($e&&et){var xn=void 0,pi=void 0;if(e.isPropertyAccessExpression(at)?e.isIdentifier(at.name)&&(pi=xn=Z.createStringLiteralFromNode(at.name)):e.isSimpleInlineableExpression(at.argumentExpression)?pi=xn=at.argumentExpression:(pi=Z.createTempVariable(ce),xn=Z.createAssignment(pi,e.visitNode(at.argumentExpression,N,e.isExpression))),xn&&pi){var kt=Z.createReflectGetCall(et,pi,$e);e.setTextRange(kt,at);var Lt=hr?void 0:Z.createTempVariable(ce);return kt=e.expandPreOrPostfixIncrementOrDecrementExpression(Z,Xe,kt,ce,Lt),kt=Z.createReflectSetCall(et,xn,kt,$e),e.setOriginalNode(kt,Xe),e.setTextRange(kt,Xe),Lt&&(kt=Z.createComma(kt,Lt),e.setTextRange(kt,Xe)),kt}}}}return e.visitEachChild(Xe,N,Y)}function Oe(Xe){return Z.updateForStatement(Xe,e.visitNode(Xe.initializer,Q,e.isForInitializer),e.visitNode(Xe.condition,N,e.isExpression),e.visitNode(Xe.incrementor,Q,e.isExpression),e.visitIterationBody(Xe.statement,N,Y))}function Ze(Xe){return Z.updateExpressionStatement(Xe,e.visitNode(Xe.expression,Q,e.isExpression))}function tt(Xe){var hr=e.nodeIsSynthesized(Xe)?Xe:Z.cloneNode(Xe);if(e.isSimpleInlineableExpression(Xe))return{readExpression:hr,initializeExpression:void 0};var at=Z.createTempVariable(ce),Qe=Z.createAssignment(at,hr);return{readExpression:at,initializeExpression:Qe}}function ut(Xe){if(_e&&e.isPrivateIdentifierPropertyAccessExpression(Xe.expression)){var hr=Z.createCallBinding(Xe.expression,ce,F),at=hr.thisArg,Qe=hr.target;return e.isCallChain(Xe)?Z.updateCallChain(Xe,Z.createPropertyAccessChain(e.visitNode(Qe,N),Xe.questionDotToken,"call"),void 0,void 0,t([e.visitNode(at,N,e.isExpression)],e.visitNodes(Xe.arguments,N,e.isExpression),!0)):Z.updateCallExpression(Xe,Z.createPropertyAccessExpression(e.visitNode(Qe,N),"call"),void 0,t([e.visitNode(at,N,e.isExpression)],e.visitNodes(Xe.arguments,N,e.isExpression),!0))}if(w&&e.isSuperProperty(Xe.expression)&&de&&(le!=null&&le.classConstructor)){var Qt=Z.createFunctionCallCall(e.visitNode(Xe.expression,N,e.isExpression),le.classConstructor,e.visitNodes(Xe.arguments,N,e.isExpression));return e.setOriginalNode(Qt,Xe),e.setTextRange(Qt,Xe),Qt}return e.visitEachChild(Xe,N,Y)}function or(Xe){if(_e&&e.isPrivateIdentifierPropertyAccessExpression(Xe.tag)){var hr=Z.createCallBinding(Xe.tag,ce,F),at=hr.thisArg,Qe=hr.target;return Z.updateTaggedTemplateExpression(Xe,Z.createCallExpression(Z.createPropertyAccessExpression(e.visitNode(Qe,N),"bind"),void 0,[e.visitNode(at,N,e.isExpression)]),void 0,e.visitNode(Xe.template,N,e.isTemplateLiteral))}if(w&&e.isSuperProperty(Xe.tag)&&de&&(le!=null&&le.classConstructor)){var Qt=Z.createFunctionBindCall(e.visitNode(Xe.tag,N,e.isExpression),le.classConstructor,[]);return e.setOriginalNode(Qt,Xe),e.setTextRange(Qt,Xe),Z.updateTaggedTemplateExpression(Xe,Qt,void 0,e.visitNode(Xe.template,N,e.isTemplateLiteral))}return e.visitEachChild(Xe,N,Y)}function qr(Xe){if(_e){le&&he.set(e.getOriginalNodeId(Xe),le),X();var hr=Ce(Xe,function(Qe){return e.visitNodes(Qe,N,e.isStatement)},Xe.body.statements);hr=Z.mergeLexicalEnvironment(hr,k());var at=Z.createImmediatelyInvokedArrowFunction(hr);return e.setOriginalNode(at,Xe),e.setTextRange(at,Xe),e.addEmitFlags(at,2),at}}function Rr(Xe,hr){if(e.isDestructuringAssignment(Xe)){var at=R;R=void 0,Xe=Z.updateBinaryExpression(Xe,e.visitNode(Xe.left,ae),Xe.operatorToken,e.visitNode(Xe.right,N));var Qe=e.some(R)?Z.inlineExpressions(e.compact(t(t([],R,!0),[Xe],!1))):Xe;return R=at,Qe}if(e.isAssignmentExpression(Xe)){if(_e&&e.isPrivateIdentifierPropertyAccessExpression(Xe.left)){var Qt=Yt(Xe.left.name);if(Qt)return e.setTextRange(e.setOriginalNode(zr(Qt,Xe.left.expression,Xe.right,Xe.operatorToken.kind),Xe),Xe)}else if(w&&e.isSuperProperty(Xe.left)&&de&&le){var Zt=le.classConstructor,Tt=le.superClassReference,gt=le.facts;if(gt&1)return Z.updateBinaryExpression(Xe,sn(Xe.left),Xe.operatorToken,e.visitNode(Xe.right,N,e.isExpression));if(Zt&&Tt){var kt=e.isElementAccessExpression(Xe.left)?e.visitNode(Xe.left.argumentExpression,N,e.isExpression):e.isIdentifier(Xe.left.name)?Z.createStringLiteralFromNode(Xe.left.name):void 0;if(kt){var Lt=e.visitNode(Xe.right,N,e.isExpression);if(e.isCompoundAssignment(Xe.operatorToken.kind)){var $e=kt;e.isSimpleInlineableExpression(kt)||($e=Z.createTempVariable(ce),kt=Z.createAssignment($e,kt));var et=Z.createReflectGetCall(Tt,$e,Zt);e.setOriginalNode(et,Xe.left),e.setTextRange(et,Xe.left),Lt=Z.createBinaryExpression(et,e.getNonAssignmentOperatorForCompoundAssignment(Xe.operatorToken.kind),Lt),e.setTextRange(Lt,Xe)}var It=hr?void 0:Z.createTempVariable(ce);return It&&(Lt=Z.createAssignment(It,Lt),e.setTextRange(It,Xe)),Lt=Z.createReflectSetCall(Tt,kt,Lt,Zt),e.setOriginalNode(Lt,Xe),e.setTextRange(Lt,Xe),It&&(Lt=Z.createComma(Lt,It),e.setTextRange(Lt,Xe)),Lt}}}}return _e&&nr(Xe)?tr(Xe):e.visitEachChild(Xe,N,Y)}function zr(Xe,hr,at,Qe){if(hr=e.visitNode(hr,N,e.isExpression),at=e.visitNode(at,N,e.isExpression),e.isCompoundAssignment(Qe)){var Qt=tt(hr),Zt=Qt.readExpression,Tt=Qt.initializeExpression;hr=Tt||Zt,at=Z.createBinaryExpression(lr(Xe,Zt),e.getNonAssignmentOperatorForCompoundAssignment(Qe),at)}switch(e.setCommentRange(hr,e.moveRangePos(hr,-1)),Xe.kind){case"a":return Y.getEmitHelperFactory().createClassPrivateFieldSetHelper(hr,Xe.brandCheckIdentifier,at,Xe.kind,Xe.setterName);case"m":return Y.getEmitHelperFactory().createClassPrivateFieldSetHelper(hr,Xe.brandCheckIdentifier,at,Xe.kind,void 0);case"f":return Y.getEmitHelperFactory().createClassPrivateFieldSetHelper(hr,Xe.brandCheckIdentifier,at,Xe.kind,Xe.variableName);default:e.Debug.assertNever(Xe,"Unknown private element type")}}function Fr(Xe){return e.filter(Xe.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function _t(Xe){var hr=0,at=e.getOriginalNode(Xe);e.isClassDeclaration(at)&&e.classOrConstructorParameterIsDecorated(at)&&(hr|=1);for(var Qe=0,Qt=Xe.members;Qe<Qt.length;Qe++){var Zt=Qt[Qe];e.isStatic(Zt)&&(Zt.name&&(e.isPrivateIdentifier(Zt.name)||e.isAutoAccessorPropertyDeclaration(Zt))&&_e&&(hr|=2),(e.isPropertyDeclaration(Zt)||e.isClassStaticBlockDeclaration(Zt))&&(oe&&Zt.transformFlags&16384&&(hr|=8,hr&1||(hr|=2)),w&&Zt.transformFlags&134217728&&(hr&1||(hr|=6))))}return hr}function Ct(Xe){var hr=(le==null?void 0:le.facts)||0;if(hr&4){var at=Z.createTempVariable(ce,!0);return Or().superClassReference=at,Z.updateExpressionWithTypeArguments(Xe,Z.createAssignment(at,e.visitNode(Xe.expression,N,e.isExpression)),void 0)}return e.visitEachChild(Xe,N,Y)}function yt(Xe,hr){var at=ee,Qe=R;if(ee=Xe,R=void 0,ar(),_e){var Qt=e.getNameOfDeclaration(Xe);Qt&&e.isIdentifier(Qt)&&(Ge().className=Qt);var Zt=Fr(Xe);e.some(Zt)&&(Ge().weakSetName=Ft("instances",Zt[0].name))}var Tt=_t(Xe);Tt&&(Or().facts=Tt),Tt&8&&Nt();var gt=hr(Xe,Tt);return Sr(),ee=at,R=Qe,gt}function Fe(Xe){return yt(Xe,vr)}function vr(Xe,hr){var at;if(hr&2){var Qe=Z.createTempVariable(ce,!0);Or().classConstructor=Z.cloneNode(Qe),at=Z.createAssignment(Qe,Z.getInternalName(Xe))}var Qt=e.visitNodes(Xe.modifiers,N,e.isModifierLike),Zt=e.visitNodes(Xe.heritageClauses,G,e.isHeritageClause),Tt=Re(Xe),gt=Tt.members,kt=Tt.prologue,Lt=Z.updateClassDeclaration(Xe,Qt,Xe.name,void 0,Zt,gt),$e=[];if(kt&&$e.push(Z.createExpressionStatement(kt)),$e.push(Lt),at&&ur().unshift(at),e.some(R)&&$e.push(Z.createExpressionStatement(Z.inlineExpressions(R))),ge||_e){var et=e.getStaticPropertiesAndClassStaticBlock(Xe);e.some(et)&&ft($e,et,Z.getInternalName(Xe))}return $e}function Le(Xe){return yt(Xe,cr)}function cr(Xe,hr){var at=!!(hr&1),Qe=e.getStaticPropertiesAndClassStaticBlock(Xe),Qt=C.getNodeCheckFlags(Xe)&16777216,Zt;function Tt(){var Wi=C.getNodeCheckFlags(Xe),ji=Wi&16777216,fn=Wi&524288;return Z.createTempVariable(fn?y:ce,!!ji)}hr&2&&(Zt=Tt(),Or().classConstructor=Z.cloneNode(Zt));var gt=e.visitNodes(Xe.modifiers,N,e.isModifierLike),kt=e.visitNodes(Xe.heritageClauses,G,e.isHeritageClause),Lt=Re(Xe),$e=Lt.members,et=Lt.prologue,It=Z.updateClassExpression(Xe,gt,Xe.name,void 0,kt,$e),xn=[];et&&xn.push(et);var pi=_e&&e.some(Qe,function(Wi){return e.isClassStaticBlockDeclaration(Wi)||e.isPrivateIdentifierClassElementDeclaration(Wi)||fe&&e.isInitializedProperty(Wi)});if(pi||e.some(R))if(at)e.Debug.assertIsDefined(K,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),K&&R&&e.some(R)&&K.push(Z.createExpressionStatement(Z.inlineExpressions(R))),K&&e.some(Qe)&&ft(K,Qe,Z.getInternalName(Xe)),Zt?xn.push(e.startOnNewLine(Z.createAssignment(Zt,It)),e.startOnNewLine(Zt)):(xn.push(It),et&&e.startOnNewLine(It));else{if(Zt||(Zt=Tt()),Qt){Yr();var ai=Z.cloneNode(Zt);ai.autoGenerateFlags&=-9,q[e.getOriginalNodeId(Xe)]=ai}e.setEmitFlags(It,65536|e.getEmitFlags(It)),xn.push(e.startOnNewLine(Z.createAssignment(Zt,It))),e.addRange(xn,e.map(R,e.startOnNewLine)),e.addRange(xn,Me(Qe,Zt)),xn.push(e.startOnNewLine(Zt))}else xn.push(It),et&&e.startOnNewLine(It);return Z.inlineExpressions(xn)}function $r(Xe){if(!_e)return e.visitEachChild(Xe,N,Y)}function Re(Xe){if(_e){for(var hr=0,at=Xe.members;hr<at.length;hr++){var Qe=at[hr];e.isPrivateIdentifierClassElementDeclaration(Qe)&&pt(Qe,Qe.name,Lr)}if(e.some(Fr(Xe))&&xr(),ne)for(var Qt=0,Zt=Xe.members;Qt<Zt.length;Qt++){var Qe=Zt[Qt];if(e.isAutoAccessorPropertyDeclaration(Qe)){var Tt=Z.getGeneratedPrivateNameForNode(Qe.name,void 0,"_accessor_storage");pt(Qe,Tt,Ar)}}}var gt=e.visitNodes(Xe.members,Te,e.isClassElement),kt;e.some(gt,e.isConstructorDeclaration)||(kt=Qr(void 0,Xe));var Lt,$e;if(!_e&&e.some(R)){var et=Z.createExpressionStatement(Z.inlineExpressions(R));if(et.transformFlags&134234112){var It=Z.createTempVariable(ce),xn=Z.createArrowFunction(void 0,void 0,[],void 0,void 0,Z.createBlock([et]));Lt=Z.createAssignment(It,xn),et=Z.createExpressionStatement(Z.createCallExpression(It,void 0,[]))}var pi=Z.createBlock([et]);$e=Z.createClassStaticBlockDeclaration(pi),R=void 0}if(kt||$e){var ai=void 0;ai=e.append(ai,kt),ai=e.append(ai,$e),ai=e.addRange(ai,gt),gt=e.setTextRange(Z.createNodeArray(ai),Xe.members)}return{members:gt,prologue:Lt}}function xr(){var Xe=Ge().weakSetName;e.Debug.assert(Xe,"weakSetName should be set in private identifier environment"),ur().push(Z.createAssignment(Xe,Z.createNewExpression(Z.createIdentifier("WeakSet"),void 0,[])))}function Br(Xe){return e.isStatic(Xe)||e.hasAbstractModifier(e.getOriginalNode(Xe))?!1:Pe&&e.isPropertyDeclaration(Xe)||ge&&e.isInitializedProperty(Xe)||_e&&e.isPrivateIdentifierClassElementDeclaration(Xe)||_e&&ne&&e.isAutoAccessorPropertyDeclaration(Xe)}function Qr(Xe,hr){if(Xe=e.visitNode(Xe,N,e.isConstructorDeclaration),!e.some(hr.members,Br))return Xe;var at=e.getEffectiveBaseTypeNode(hr),Qe=!!(at&&e.skipOuterExpressions(at.expression).kind!==104),Qt=e.visitParameterList(Xe?Xe.parameters:void 0,N,Y),Zt=ct(hr,Xe,Qe);return Zt?Xe?(e.Debug.assert(Qt),Z.updateConstructorDeclaration(Xe,void 0,Qt,Zt)):e.startOnNewLine(e.setOriginalNode(e.setTextRange(Z.createConstructorDeclaration(void 0,Qt??[],Zt),Xe||hr),Xe)):Xe}function ct(Xe,hr,at){var Qe,Qt,Zt=e.getProperties(Xe,!1,!1);z||(Zt=e.filter(Zt,function(vn){return!!vn.initializer||e.isPrivateIdentifier(vn.name)||e.hasAccessorModifier(vn)}));var Tt=Fr(Xe),gt=e.some(Zt)||e.some(Tt);if(!hr&&!gt)return e.visitFunctionBody(void 0,N,Y);A();var kt=!hr&&at,Lt=0,$e=0,et=-1,It=[];!((Qe=hr==null?void 0:hr.body)===null||Qe===void 0)&&Qe.statements&&($e=Z.copyPrologue(hr.body.statements,It,!1,N),et=e.findSuperStatementIndex(hr.body.statements,$e),et>=0?(Lt=et+1,It=t(t(t([],It.slice(0,$e),!0),e.visitNodes(hr.body.statements,N,e.isStatement,$e,Lt-$e),!0),It.slice($e),!0)):$e>=0&&(Lt=$e)),kt&&It.push(Z.createExpressionStatement(Z.createCallExpression(Z.createSuper(),void 0,[Z.createSpreadElement(Z.createIdentifier("arguments"))])));var xn=0;if(hr!=null&&hr.body)if(z)It=It.filter(function(vn){return!e.isParameterPropertyDeclaration(e.getOriginalNode(vn),hr)});else{for(var pi=0,ai=hr.body.statements;pi<ai.length;pi++){var Wi=ai[pi];e.isParameterPropertyDeclaration(e.getOriginalNode(Wi),hr)&&xn++}if(xn>0){var ji=e.visitNodes(hr.body.statements,N,e.isStatement,Lt,xn);if(et>=0)e.addRange(It,ji);else{var fn=$e;kt&&fn++,It=t(t(t([],It.slice(0,fn),!0),ji,!0),It.slice(fn),!0)}Lt+=xn}}var Ri=Z.createThis();if(Wt(It,Tt,Ri),ft(It,Zt,Ri),hr&&e.addRange(It,e.visitNodes(hr.body.statements,ra,e.isStatement,Lt)),It=Z.mergeLexicalEnvironment(It,k()),It.length===0&&!hr)return;var ma=hr!=null&&hr.body&&hr.body.statements.length>=It.length&&(Qt=hr.body.multiLine)!==null&&Qt!==void 0?Qt:It.length>0;return e.setTextRange(Z.createBlock(e.setTextRange(Z.createNodeArray(It),hr?hr.body.statements:Xe.members),ma),hr?hr.body:void 0);function ra(vn){if(!(z&&e.isParameterPropertyDeclaration(e.getOriginalNode(vn),hr)))return N(vn)}}function ft(Xe,hr,at){for(var Qe=0,Qt=hr;Qe<Qt.length;Qe++){var Zt=Qt[Qe];if(!(e.isStatic(Zt)&&!_e&&!z)){var Tt=Dt(Zt,at);Tt&&Xe.push(Tt)}}}function Dt(Xe,hr){var at=e.isClassStaticBlockDeclaration(Xe)?qr(Xe):Ke(Xe,hr);if(at){var Qe=Z.createExpressionStatement(at);return e.setOriginalNode(Qe,Xe),e.addEmitFlags(Qe,e.getEmitFlags(Xe)&1536),e.setSourceMapRange(Qe,e.moveRangePastModifiers(Xe)),e.setCommentRange(Qe,Xe),e.setSyntheticLeadingComments(at,void 0),e.setSyntheticTrailingComments(at,void 0),Qe}}function Me(Xe,hr){for(var at=[],Qe=0,Qt=Xe;Qe<Qt.length;Qe++){var Zt=Qt[Qe],Tt=e.isClassStaticBlockDeclaration(Zt)?qr(Zt):Ke(Zt,hr);Tt&&(e.startOnNewLine(Tt),e.setOriginalNode(Tt,Zt),e.addEmitFlags(Tt,e.getEmitFlags(Zt)&1536),e.setSourceMapRange(Tt,e.moveRangePastModifiers(Zt)),e.setCommentRange(Tt,Zt),at.push(Tt))}return at}function Ke(Xe,hr){var at=de,Qe=Vr(Xe,hr);return Qe&&e.hasStaticModifier(Xe)&&(le!=null&&le.facts)&&(e.setOriginalNode(Qe,Xe),e.addEmitFlags(Qe,2),he.set(e.getOriginalNodeId(Qe),le)),de=at,Qe}function Vr(Xe,hr){var at,Qe=!z,Qt=e.hasAccessorModifier(Xe)?Z.getGeneratedPrivateNameForNode(Xe.name):e.isComputedPropertyName(Xe.name)&&!e.isSimpleInlineableExpression(Xe.name.expression)?Z.updateComputedPropertyName(Xe.name,Z.getGeneratedNameForNode(Xe.name)):Xe.name;if(e.hasStaticModifier(Xe)&&(de=Xe),_e&&e.isPrivateIdentifier(Qt)){var Zt=Yt(Qt);if(Zt)return Zt.kind==="f"?Zt.isStatic?s(Zt.variableName,e.visitNode(Xe.initializer,N,e.isExpression)):D(hr,e.visitNode(Xe.initializer,N,e.isExpression),Zt.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(Qt)||e.hasStaticModifier(Xe))&&!Xe.initializer)){var Tt=e.getOriginalNode(Xe);if(!e.hasSyntacticModifier(Tt,256)){var gt=Xe.initializer||Qe?(at=e.visitNode(Xe.initializer,N,e.isExpression))!==null&&at!==void 0?at:Z.createVoidZero():e.isParameterPropertyDeclaration(Tt,Tt.parent)&&e.isIdentifier(Qt)?Qt:Z.createVoidZero();if(Qe||e.isPrivateIdentifier(Qt)){var kt=e.createMemberAccessForPropertyName(Z,hr,Qt,Qt);return Z.createAssignment(kt,gt)}else{var Lt=e.isComputedPropertyName(Qt)?Qt.expression:e.isIdentifier(Qt)?Z.createStringLiteral(e.unescapeLeadingUnderscores(Qt.escapedText)):Qt,$e=Z.createPropertyDescriptor({value:gt,configurable:!0,writable:!0,enumerable:!0});return Z.createObjectDefinePropertyCall(hr,Lt,$e)}}}}function Yr(){H&1||(H|=1,Y.enableSubstitution(79),q=[])}function Nt(){H&2||(H|=2,Y.enableSubstitution(108),Y.enableEmitNotification(259),Y.enableEmitNotification(215),Y.enableEmitNotification(173),Y.enableEmitNotification(174),Y.enableEmitNotification(175),Y.enableEmitNotification(171),Y.enableEmitNotification(169),Y.enableEmitNotification(164))}function Wt(Xe,hr,at){if(!(!_e||!e.some(hr))){var Qe=Ge().weakSetName;e.Debug.assert(Qe,"weakSetName should be set in private identifier environment"),Xe.push(Z.createExpressionStatement(O(at,Qe)))}}function sn(Xe){return e.isPropertyAccessExpression(Xe)?Z.updatePropertyAccessExpression(Xe,Z.createVoidZero(),Xe.name):Z.updateElementAccessExpression(Xe,Z.createVoidZero(),e.visitNode(Xe.argumentExpression,N,e.isExpression))}function en(Xe,hr,at){var Qe=e.getOriginalNode(hr);if(Qe.id){var Qt=he.get(Qe.id);if(Qt){var Zt=le,Tt=J;le=Qt,J=Qt,U(Xe,hr,at),le=Zt,J=Tt;return}}switch(hr.kind){case 215:if(e.isArrowFunction(Qe)||e.getEmitFlags(hr)&262144)break;case 259:case 173:{var Zt=le,Tt=J;le=void 0,J=void 0,U(Xe,hr,at),le=Zt,J=Tt;return}case 174:case 175:case 171:case 169:{var Zt=le,Tt=J;J=le,le=void 0,U(Xe,hr,at),le=Zt,J=Tt;return}case 164:{var Zt=le,Tt=J;le=J,J=void 0,U(Xe,hr,at),le=Zt,J=Tt;return}}U(Xe,hr,at)}function Ir(Xe,hr){return hr=M(Xe,hr),Xe===1?Jr(hr):hr}function Jr(Xe){switch(Xe.kind){case 79:return Ie(Xe);case 108:return ye(Xe)}return Xe}function ye(Xe){if(H&2&&le){var hr=le.facts,at=le.classConstructor;if(hr&1)return Z.createParenthesizedExpression(Z.createVoidZero());if(at)return e.setTextRange(e.setOriginalNode(Z.cloneNode(at),Xe),Xe)}return Xe}function Ie(Xe){return We(Xe)||Xe}function We(Xe){if(H&1&&C.getNodeCheckFlags(Xe)&33554432){var hr=C.getReferencedValueDeclaration(Xe);if(hr){var at=q[hr.id];if(at){var Qe=Z.cloneNode(at);return e.setSourceMapRange(Qe,Xe),e.setCommentRange(Qe,Xe),Qe}}}}function dr(Xe,hr){if(e.isComputedPropertyName(Xe)){var at=e.visitNode(Xe.expression,N,e.isExpression),Qe=e.skipPartiallyEmittedExpressions(at),Qt=e.isSimpleInlineableExpression(Qe),Zt=e.isAssignmentExpression(Qe)&&e.isGeneratedIdentifier(Qe.left);if(!Zt&&!Qt&&hr){var Tt=Z.getGeneratedNameForNode(Xe);return C.getNodeCheckFlags(Xe)&524288?y(Tt):ce(Tt),Z.createAssignment(Tt,at)}return Qt||e.isIdentifier(Qe)?void 0:at}}function ar(){I.push(le),le=void 0}function Sr(){le=I.pop()}function Or(){return le||(le={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function Ge(){var Xe=Or();return Xe.privateIdentifierEnvironment||(Xe.privateIdentifierEnvironment={className:void 0,weakSetName:void 0,identifiers:void 0,generatedIdentifiers:void 0}),Xe.privateIdentifierEnvironment}function ur(){return R??(R=[])}function Lr(Xe,hr,at,Qe,Qt,Zt,Tt){e.isAutoAccessorPropertyDeclaration(Xe)?Pt(Xe,hr,at,Qe,Qt,Zt):e.isPropertyDeclaration(Xe)?Ar(Xe,hr,at,Qe,Qt,Zt):e.isMethodDeclaration(Xe)?rt(Xe,hr,at,Qe,Qt,Zt):e.isGetAccessorDeclaration(Xe)?Et(Xe,hr,at,Qe,Qt,Zt,Tt):e.isSetAccessorDeclaration(Xe)&&St(Xe,hr,at,Qe,Qt,Zt,Tt)}function Ar(Xe,hr,at,Qe,Qt,Zt,Tt){if(Qt){e.Debug.assert(at.classConstructor,"classConstructor should be set in private identifier environment");var gt=ht(hr);v(Qe,hr,{kind:"f",brandCheckIdentifier:at.classConstructor,variableName:gt,isStatic:!0,isValid:Zt})}else{var kt=ht(hr);v(Qe,hr,{kind:"f",brandCheckIdentifier:kt,variableName:void 0,isStatic:!1,isValid:Zt}),ur().push(Z.createAssignment(kt,Z.createNewExpression(Z.createIdentifier("WeakMap"),void 0,[])))}}function rt(Xe,hr,at,Qe,Qt,Zt,Tt){var gt=ht(hr),kt=Qt?e.Debug.checkDefined(at.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(Qe.weakSetName,"weakSetName should be set in private identifier environment");v(Qe,hr,{kind:"m",methodName:gt,brandCheckIdentifier:kt,isStatic:Qt,isValid:Zt})}function Et(Xe,hr,at,Qe,Qt,Zt,Tt){var gt=ht(hr,"_get"),kt=Qt?e.Debug.checkDefined(at.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(Qe.weakSetName,"weakSetName should be set in private identifier environment");(Tt==null?void 0:Tt.kind)==="a"&&Tt.isStatic===Qt&&!Tt.getterName?Tt.getterName=gt:v(Qe,hr,{kind:"a",getterName:gt,setterName:void 0,brandCheckIdentifier:kt,isStatic:Qt,isValid:Zt})}function St(Xe,hr,at,Qe,Qt,Zt,Tt){var gt=ht(hr,"_set"),kt=Qt?e.Debug.checkDefined(at.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(Qe.weakSetName,"weakSetName should be set in private identifier environment");(Tt==null?void 0:Tt.kind)==="a"&&Tt.isStatic===Qt&&!Tt.setterName?Tt.setterName=gt:v(Qe,hr,{kind:"a",getterName:void 0,setterName:gt,brandCheckIdentifier:kt,isStatic:Qt,isValid:Zt})}function Pt(Xe,hr,at,Qe,Qt,Zt,Tt){var gt=ht(hr,"_get"),kt=ht(hr,"_set"),Lt=Qt?e.Debug.checkDefined(at.classConstructor,"classConstructor should be set in private identifier environment"):e.Debug.checkDefined(Qe.weakSetName,"weakSetName should be set in private identifier environment");v(Qe,hr,{kind:"a",getterName:gt,setterName:kt,brandCheckIdentifier:Lt,isStatic:Qt,isValid:Zt})}function pt(Xe,hr,at){var Qe=Or(),Qt=Ge(),Zt=E(Qt,hr),Tt=e.hasStaticModifier(Xe),gt=!W(hr)&&Zt===void 0;at(Xe,hr,Qe,Qt,Tt,gt,Zt)}function Ft(Xe,hr,at){var Qe=Ge().className,Qt=Qe?{prefix:"_",node:Qe,suffix:"_"}:"_",Zt=typeof Xe=="object"?Z.getGeneratedNameForNode(Xe,24,Qt,at):typeof Xe=="string"?Z.createUniqueName(Xe,16,Qt,at):Z.createTempVariable(void 0,!0,Qt,at);return C.getNodeCheckFlags(hr)&524288?y(Zt):ce(Zt),Zt}function ht(Xe,hr){var at,Qe=e.tryGetTextOfPropertyName(Xe);return Ft((at=Qe==null?void 0:Qe.substring(1))!==null&&at!==void 0?at:Xe,Xe,hr)}function Yt(Xe){return e.isGeneratedPrivateIdentifier(Xe)?wn(Xe):un(Xe.escapedText)}function un(Xe){return Bn(S,Xe)}function wn(Xe){return Bn(te,e.getNodeForGeneratedName(Xe))}function Bn(Xe,hr){if(le!=null&&le.privateIdentifierEnvironment){var at=Xe(le.privateIdentifierEnvironment,hr);if(at)return at}for(var Qe=I.length-1;Qe>=0;--Qe){var Qt=I[Qe];if(Qt&&Qt.privateIdentifierEnvironment){var at=Xe(Qt.privateIdentifierEnvironment,hr);if(at)return at}}}function yn(Xe){var hr=Z.getGeneratedNameForNode(Xe),at=Yt(Xe.name);if(!at)return e.visitEachChild(Xe,N,Y);var Qe=Xe.expression;return(e.isThisProperty(Xe)||e.isSuperProperty(Xe)||!e.isSimpleCopiableExpression(Xe.expression))&&(Qe=Z.createTempVariable(ce,!0),ur().push(Z.createBinaryExpression(Qe,63,e.visitNode(Xe.expression,N,e.isExpression)))),Z.createAssignmentTargetWrapper(hr,zr(at,Qe,hr,63))}function Tn(Xe){var hr=e.getTargetOfBindingOrAssignmentElement(Xe);if(hr){var at=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(hr))at=yn(hr);else if(w&&e.isSuperProperty(hr)&&de&&le){var Qe=le.classConstructor,Qt=le.superClassReference,Zt=le.facts;if(Zt&1)at=sn(hr);else if(Qe&&Qt){var Tt=e.isElementAccessExpression(hr)?e.visitNode(hr.argumentExpression,N,e.isExpression):e.isIdentifier(hr.name)?Z.createStringLiteralFromNode(hr.name):void 0;if(Tt){var gt=Z.createTempVariable(void 0);at=Z.createAssignmentTargetWrapper(gt,Z.createReflectSetCall(Qt,Tt,gt,Qe))}}}if(at)return e.isAssignmentExpression(Xe)?Z.updateBinaryExpression(Xe,at,Xe.operatorToken,e.visitNode(Xe.right,N,e.isExpression)):e.isSpreadElement(Xe)?Z.updateSpreadElement(Xe,at):at}return e.visitNode(Xe,ae)}function An(Xe){if(e.isObjectBindingOrAssignmentElement(Xe)&&!e.isShorthandPropertyAssignment(Xe)){var hr=e.getTargetOfBindingOrAssignmentElement(Xe),at=void 0;if(hr){if(e.isPrivateIdentifierPropertyAccessExpression(hr))at=yn(hr);else if(w&&e.isSuperProperty(hr)&&de&&le){var Qe=le.classConstructor,Qt=le.superClassReference,Zt=le.facts;if(Zt&1)at=sn(hr);else if(Qe&&Qt){var Tt=e.isElementAccessExpression(hr)?e.visitNode(hr.argumentExpression,N,e.isExpression):e.isIdentifier(hr.name)?Z.createStringLiteralFromNode(hr.name):void 0;if(Tt){var gt=Z.createTempVariable(void 0);at=Z.createAssignmentTargetWrapper(gt,Z.createReflectSetCall(Qt,Tt,gt,Qe))}}}}if(e.isPropertyAssignment(Xe)){var kt=e.getInitializerOfBindingOrAssignmentElement(Xe);return Z.updatePropertyAssignment(Xe,e.visitNode(Xe.name,N,e.isPropertyName),at?kt?Z.createAssignment(at,e.visitNode(kt,N)):at:e.visitNode(Xe.initializer,ae,e.isExpression))}if(e.isSpreadAssignment(Xe))return Z.updateSpreadAssignment(Xe,at||e.visitNode(Xe.expression,ae,e.isExpression));e.Debug.assert(at===void 0,"Should not have generated a wrapped target")}return e.visitNode(Xe,N)}function ii(Xe){return e.isArrayLiteralExpression(Xe)?Z.updateArrayLiteralExpression(Xe,e.visitNodes(Xe.elements,Tn,e.isExpression)):Z.updateObjectLiteralExpression(Xe,e.visitNodes(Xe.properties,An,e.isObjectLiteralElementLike))}}e.transformClassFields=T;function s(Y,Z){return e.factory.createAssignment(Y,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",Z||e.factory.createVoidZero())]))}function D(Y,Z,ce){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(ce,"set"),void 0,[Y,Z||e.factory.createVoidZero()])}function O(Y,Z){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(Z,"add"),void 0,[Y])}function W(Y){return!e.isGeneratedPrivateIdentifier(Y)&&Y.escapedText==="#constructor"}function E(Y,Z){return e.isGeneratedPrivateIdentifier(Z)?te(Y,e.getNodeForGeneratedName(Z)):S(Y,Z.escapedText)}function v(Y,Z,ce){var k,X;e.isGeneratedPrivateIdentifier(Z)?((k=Y.generatedIdentifiers)!==null&&k!==void 0||(Y.generatedIdentifiers=new e.Map),Y.generatedIdentifiers.set(e.getNodeForGeneratedName(Z),ce)):((X=Y.identifiers)!==null&&X!==void 0||(Y.identifiers=new e.Map),Y.identifiers.set(Z.escapedText,ce))}function S(Y,Z){var ce;return(ce=Y.identifiers)===null||ce===void 0?void 0:ce.get(Z)}function te(Y,Z){var ce;return(ce=Y.generatedIdentifiers)===null||ce===void 0?void 0:ce.get(Z)}})(h||(h={}));var h;(function(e){function c(P){var T=P.hoistVariableDeclaration,s=P.getEmitResolver(),D=P.getCompilerOptions(),O=e.getEmitScriptTarget(D),W=e.getStrictOptionValue(D,"strictNullChecks"),E,v;return{serializeTypeNode:function(ne,oe){return S(ne,X,oe)},serializeTypeOfNode:function(ne,oe){return S(ne,Y,oe)},serializeParameterTypesOfNode:function(ne,oe,w){return S(ne,Z,oe,w)},serializeReturnTypeOfNode:function(ne,oe){return S(ne,k,oe)}};function S(ne,oe,w,re){var M=E,U=v;E=ne.currentLexicalScope,v=ne.currentNameScope;var H=re===void 0?oe(w):oe(w,re);return E=M,v=U,H}function te(ne){var oe=s.getAllAccessorDeclarations(ne);return oe.setAccessor&&e.getSetAccessorTypeAnnotationNode(oe.setAccessor)||oe.getAccessor&&e.getEffectiveReturnTypeNode(oe.getAccessor)}function Y(ne){switch(ne.kind){case 169:case 166:return X(ne.type);case 175:case 174:return X(te(ne));case 260:case 228:case 171:return e.factory.createIdentifier("Function");default:return e.factory.createVoidZero()}}function Z(ne,oe){var w=e.isClassLike(ne)?e.getFirstConstructorWithBody(ne):e.isFunctionLike(ne)&&e.nodeIsPresent(ne.body)?ne:void 0,re=[];if(w)for(var M=ce(w,oe),U=M.length,H=0;H<U;H++){var q=M[H];H===0&&e.isIdentifier(q.name)&&q.name.escapedText==="this"||(q.dotDotDotToken?re.push(X(e.getRestParameterElementType(q.type))):re.push(Y(q)))}return e.factory.createArrayLiteralExpression(re)}function ce(ne,oe){if(oe&&ne.kind===174){var w=e.getAllAccessorDeclarations(oe.members,ne).setAccessor;if(w)return w.parameters}return ne.parameters}function k(ne){return e.isFunctionLike(ne)&&ne.type?X(ne.type):e.isAsyncFunction(ne)?e.factory.createIdentifier("Promise"):e.factory.createVoidZero()}function X(ne){if(ne===void 0)return e.factory.createIdentifier("Object");switch(ne=e.skipTypeParentheses(ne),ne.kind){case 114:case 155:case 144:return e.factory.createVoidZero();case 181:case 182:return e.factory.createIdentifier("Function");case 185:case 186:return e.factory.createIdentifier("Array");case 179:return ne.assertsModifier?e.factory.createVoidZero():e.factory.createIdentifier("Boolean");case 134:return e.factory.createIdentifier("Boolean");case 200:case 152:return e.factory.createIdentifier("String");case 149:return e.factory.createIdentifier("Object");case 198:return A(ne.literal);case 148:return e.factory.createIdentifier("Number");case 160:return _e("BigInt",7);case 153:return _e("Symbol",2);case 180:return B(ne);case 190:return y(ne.types,!0);case 189:return y(ne.types,!1);case 191:return y([ne.trueType,ne.falseType],!1);case 195:if(ne.operator===146)return X(ne.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:break;case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return X(ne.type);default:return e.Debug.failBadSyntaxKind(ne)}return e.factory.createIdentifier("Object")}function A(ne){switch(ne.kind){case 10:case 14:return e.factory.createIdentifier("String");case 221:{var oe=ne.operand;switch(oe.kind){case 8:case 9:return A(oe);default:return e.Debug.failBadSyntaxKind(oe)}}case 8:return e.factory.createIdentifier("Number");case 9:return _e("BigInt",7);case 110:case 95:return e.factory.createIdentifier("Boolean");case 104:return e.factory.createVoidZero();default:return e.Debug.failBadSyntaxKind(ne)}}function y(ne,oe){for(var w,re=0,M=ne;re<M.length;re++){var U=M[re];if(U=e.skipTypeParentheses(U),U.kind===144){if(oe)return e.factory.createVoidZero();continue}if(U.kind===157){if(!oe)return e.factory.createIdentifier("Object");continue}if(U.kind===131)return e.factory.createIdentifier("Object");if(!(!W&&(e.isLiteralTypeNode(U)&&U.literal.kind===104||U.kind===155))){var H=X(U);if(e.isIdentifier(H)&&H.escapedText==="Object")return H;if(w){if(!C(w,H))return e.factory.createIdentifier("Object")}else w=H}}return w??e.factory.createVoidZero()}function C(ne,oe){return e.isGeneratedIdentifier(ne)?e.isGeneratedIdentifier(oe):e.isIdentifier(ne)?e.isIdentifier(oe)&&ne.escapedText===oe.escapedText:e.isPropertyAccessExpression(ne)?e.isPropertyAccessExpression(oe)&&C(ne.expression,oe.expression)&&C(ne.name,oe.name):e.isVoidExpression(ne)?e.isVoidExpression(oe)&&e.isNumericLiteral(ne.expression)&&ne.expression.text==="0"&&e.isNumericLiteral(oe.expression)&&oe.expression.text==="0":e.isStringLiteral(ne)?e.isStringLiteral(oe)&&ne.text===oe.text:e.isTypeOfExpression(ne)?e.isTypeOfExpression(oe)&&C(ne.expression,oe.expression):e.isParenthesizedExpression(ne)?e.isParenthesizedExpression(oe)&&C(ne.expression,oe.expression):e.isConditionalExpression(ne)?e.isConditionalExpression(oe)&&C(ne.condition,oe.condition)&&C(ne.whenTrue,oe.whenTrue)&&C(ne.whenFalse,oe.whenFalse):e.isBinaryExpression(ne)?e.isBinaryExpression(oe)&&ne.operatorToken.kind===oe.operatorToken.kind&&C(ne.left,oe.left)&&C(ne.right,oe.right):!1}function B(ne){var oe=s.getTypeReferenceSerializationKind(ne.typeName,v??E);switch(oe){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(ne,function(M){return M.parent&&e.isConditionalTypeNode(M.parent)&&(M.parent.trueType===M||M.parent.falseType===M)}))return e.factory.createIdentifier("Object");var w=z(ne.typeName),re=e.factory.createTempVariable(T);return e.factory.createConditionalExpression(e.factory.createTypeCheck(e.factory.createAssignment(re,w),"function"),void 0,re,void 0,e.factory.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ge(ne.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.factory.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return _e("BigInt",7);case e.TypeReferenceSerializationKind.BooleanType:return e.factory.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.factory.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.factory.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.factory.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return _e("Symbol",2);case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.factory.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.factory.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.factory.createIdentifier("Object");default:return e.Debug.assertNever(oe)}}function F(ne,oe){return e.factory.createLogicalAnd(e.factory.createStrictInequality(e.factory.createTypeOfExpression(ne),e.factory.createStringLiteral("undefined")),oe)}function z(ne){if(ne.kind===79){var oe=ge(ne);return F(oe,oe)}if(ne.left.kind===79)return F(ge(ne.left),ge(ne));var w=z(ne.left),re=e.factory.createTempVariable(T);return e.factory.createLogicalAnd(e.factory.createLogicalAnd(w.left,e.factory.createStrictInequality(e.factory.createAssignment(re,w.right),e.factory.createVoidZero())),e.factory.createPropertyAccessExpression(re,ne.right))}function ge(ne){switch(ne.kind){case 79:var oe=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(ne),ne),ne.parent);return oe.original=void 0,e.setParent(oe,e.getParseTreeNode(E)),oe;case 163:return Pe(ne)}}function Pe(ne){return e.factory.createPropertyAccessExpression(ge(ne.left),ne.right)}function fe(ne){return e.factory.createConditionalExpression(e.factory.createTypeCheck(e.factory.createIdentifier(ne),"function"),void 0,e.factory.createIdentifier(ne),void 0,e.factory.createIdentifier("Object"))}function _e(ne,oe){return O<oe?fe(ne):e.factory.createIdentifier(ne)}}e.createRuntimeTypeSerializer=c})(h||(h={}));var h;(function(e){function c(P){var T=P.factory,s=P.getEmitHelperFactory,D=P.hoistVariableDeclaration,O=P.getEmitResolver(),W=P.getCompilerOptions(),E=e.getEmitScriptTarget(W),v=P.onSubstituteNode;P.onSubstituteNode=N;var S;return e.chainBundle(P,te);function te(ae){var Te=e.visitEachChild(ae,Z,P);return e.addEmitHelpers(Te,P.readEmitHelpers()),Te}function Y(ae){return e.isDecorator(ae)?void 0:ae}function Z(ae){if(!(ae.transformFlags&33554432))return ae;switch(ae.kind){case 167:return;case 260:return ce(ae);case 228:return F(ae);case 173:return z(ae);case 171:return Pe(ae);case 175:return _e(ae);case 174:return fe(ae);case 169:return ne(ae);case 166:return oe(ae);default:return e.visitEachChild(ae,Z,P)}}function ce(ae){if(!(e.classOrConstructorParameterIsDecorated(ae)||e.childIsDecorated(ae)))return e.visitEachChild(ae,Z,P);var Te=e.hasDecorators(ae)?B(ae,ae.name):C(ae,ae.name);return Te.length>1&&(Te.push(T.createEndOfDeclarationMarker(ae)),e.setEmitFlags(Te[0],e.getEmitFlags(Te[0])|4194304)),e.singleOrMany(Te)}function k(ae){return!!(ae.transformFlags&536870912)}function X(ae){return e.some(ae,k)}function A(ae){for(var Te=0,Ne=ae.members;Te<Ne.length;Te++){var we=Ne[Te];if(e.canHaveDecorators(we)){var nr=e.getAllDecoratorsOfClassElement(we,ae);if(e.some(nr==null?void 0:nr.decorators,k)||e.some(nr==null?void 0:nr.parameters,X))return!0}}return!1}function y(ae,Te){var Ne=[];return re(Ne,ae,!1),re(Ne,ae,!0),A(ae)&&(Te=e.setTextRange(T.createNodeArray(t(t([],Te,!0),[T.createClassStaticBlockDeclaration(T.createBlock(Ne,!0))],!1)),Te),Ne=void 0),{decorationStatements:Ne,members:Te}}function C(ae,Te){var Ne,we=e.visitNodes(ae.modifiers,Y,e.isModifier),nr=e.visitNodes(ae.heritageClauses,Z,e.isHeritageClause),tr=e.visitNodes(ae.members,Z,e.isClassElement),me=[];Ne=y(ae,tr),tr=Ne.members,me=Ne.decorationStatements;var He=T.updateClassDeclaration(ae,we,Te,void 0,nr,tr);return e.addRange([He],me)}function B(ae,Te){var Ne,we=e.moveRangePastModifiers(ae),nr=J(ae),tr=E<=2?T.getInternalName(ae,!1,!0):T.getLocalName(ae,!1,!0),me=e.visitNodes(ae.heritageClauses,Z,e.isHeritageClause),He=e.visitNodes(ae.members,Z,e.isClassElement),rr=[];Ne=y(ae,He),He=Ne.members,rr=Ne.decorationStatements;var je=T.createClassExpression(void 0,Te,void 0,me,He);e.setOriginalNode(je,ae),e.setTextRange(je,we);var Ce=T.createVariableStatement(void 0,T.createVariableDeclarationList([T.createVariableDeclaration(tr,void 0,void 0,nr?T.createAssignment(nr,je):je)],1));e.setOriginalNode(Ce,ae),e.setTextRange(Ce,we),e.setCommentRange(Ce,ae);var Ae=[Ce];return e.addRange(Ae,rr),R(Ae,ae),Ae}function F(ae){return T.updateClassExpression(ae,e.visitNodes(ae.modifiers,Y,e.isModifier),ae.name,void 0,e.visitNodes(ae.heritageClauses,Z,e.isHeritageClause),e.visitNodes(ae.members,Z,e.isClassElement))}function z(ae){return T.updateConstructorDeclaration(ae,e.visitNodes(ae.modifiers,Y,e.isModifier),e.visitNodes(ae.parameters,Z,e.isParameterDeclaration),e.visitNode(ae.body,Z,e.isBlock))}function ge(ae,Te){return ae!==Te&&(e.setCommentRange(ae,Te),e.setSourceMapRange(ae,e.moveRangePastModifiers(Te))),ae}function Pe(ae){return ge(T.updateMethodDeclaration(ae,e.visitNodes(ae.modifiers,Y,e.isModifier),ae.asteriskToken,e.visitNode(ae.name,Z,e.isPropertyName),void 0,void 0,e.visitNodes(ae.parameters,Z,e.isParameterDeclaration),void 0,e.visitNode(ae.body,Z,e.isBlock)),ae)}function fe(ae){return ge(T.updateGetAccessorDeclaration(ae,e.visitNodes(ae.modifiers,Y,e.isModifier),e.visitNode(ae.name,Z,e.isPropertyName),e.visitNodes(ae.parameters,Z,e.isParameterDeclaration),void 0,e.visitNode(ae.body,Z,e.isBlock)),ae)}function _e(ae){return ge(T.updateSetAccessorDeclaration(ae,e.visitNodes(ae.modifiers,Y,e.isModifier),e.visitNode(ae.name,Z,e.isPropertyName),e.visitNodes(ae.parameters,Z,e.isParameterDeclaration),e.visitNode(ae.body,Z,e.isBlock)),ae)}function ne(ae){if(!(ae.flags&16777216||e.hasSyntacticModifier(ae,2)))return ge(T.updatePropertyDeclaration(ae,e.visitNodes(ae.modifiers,Y,e.isModifier),e.visitNode(ae.name,Z,e.isPropertyName),void 0,void 0,e.visitNode(ae.initializer,Z,e.isExpression)),ae)}function oe(ae){var Te=T.updateParameterDeclaration(ae,e.elideNodes(T,ae.modifiers),ae.dotDotDotToken,e.visitNode(ae.name,Z,e.isBindingName),void 0,void 0,e.visitNode(ae.initializer,Z,e.isExpression));return Te!==ae&&(e.setCommentRange(Te,ae),e.setTextRange(Te,e.moveRangePastModifiers(ae)),e.setSourceMapRange(Te,e.moveRangePastModifiers(ae)),e.setEmitFlags(Te.name,32)),Te}function w(ae){if(ae){var Te=[];return e.addRange(Te,e.map(ae.decorators,I)),e.addRange(Te,e.flatMap(ae.parameters,he)),Te}}function re(ae,Te,Ne){e.addRange(ae,e.map(H(Te,Ne),function(we){return T.createExpressionStatement(we)}))}function M(ae,Te,Ne){return e.nodeOrChildIsDecorated(ae,Ne)&&Te===e.isStatic(ae)}function U(ae,Te){return e.filter(ae.members,function(Ne){return M(Ne,Te,ae)})}function H(ae,Te){for(var Ne=U(ae,Te),we,nr=0,tr=Ne;nr<tr.length;nr++){var me=tr[nr];we=e.append(we,q(ae,me))}return we}function q(ae,Te){var Ne=e.getAllDecoratorsOfClassElement(Te,ae),we=w(Ne);if(we){var nr=De(ae,Te),tr=le(Te,!e.hasSyntacticModifier(Te,2)),me=E>0?e.isPropertyDeclaration(Te)&&!e.hasAccessorModifier(Te)?T.createVoidZero():T.createNull():void 0,He=s().createDecorateHelper(we,nr,tr,me);return e.setEmitFlags(He,1536),e.setSourceMapRange(He,e.moveRangePastModifiers(Te)),He}}function R(ae,Te){var Ne=K(Te);Ne&&ae.push(e.setOriginalNode(T.createExpressionStatement(Ne),Te))}function K(ae){var Te=e.getAllDecoratorsOfClass(ae),Ne=w(Te);if(Ne){var we=S&&S[e.getOriginalNodeId(ae)],nr=E<=2?T.getInternalName(ae,!1,!0):T.getLocalName(ae,!1,!0),tr=s().createDecorateHelper(Ne,nr),me=T.createAssignment(nr,we?T.createAssignment(we,tr):tr);return e.setEmitFlags(me,1536),e.setSourceMapRange(me,e.moveRangePastModifiers(ae)),me}}function I(ae){return e.visitNode(ae.expression,Z,e.isExpression)}function he(ae,Te){var Ne;if(ae){Ne=[];for(var we=0,nr=ae;we<nr.length;we++){var tr=nr[we],me=s().createParamHelper(I(tr),Te);e.setTextRange(me,tr.expression),e.setEmitFlags(me,1536),Ne.push(me)}}return Ne}function le(ae,Te){var Ne=ae.name;return e.isPrivateIdentifier(Ne)?T.createIdentifier(""):e.isComputedPropertyName(Ne)?Te&&!e.isSimpleInlineableExpression(Ne.expression)?T.getGeneratedNameForNode(Ne):Ne.expression:e.isIdentifier(Ne)?T.createStringLiteral(e.idText(Ne)):T.cloneNode(Ne)}function ee(){S||(P.enableSubstitution(79),S=[])}function J(ae){if(O.getNodeCheckFlags(ae)&16777216){ee();var Te=T.createUniqueName(ae.name&&!e.isGeneratedIdentifier(ae.name)?e.idText(ae.name):"default");return S[e.getOriginalNodeId(ae)]=Te,D(Te),Te}}function de(ae){return T.createPropertyAccessExpression(T.getDeclarationName(ae),"prototype")}function De(ae,Te){return e.isStatic(Te)?T.getDeclarationName(ae):de(ae)}function N(ae,Te){return Te=v(ae,Te),ae===1?b(Te):Te}function b(ae){switch(ae.kind){case 79:return Q(ae)}return ae}function Q(ae){var Te;return(Te=G(ae))!==null&&Te!==void 0?Te:ae}function G(ae){if(S&&O.getNodeCheckFlags(ae)&33554432){var Te=O.getReferencedValueDeclaration(ae);if(Te){var Ne=S[Te.id];if(Ne){var we=T.cloneNode(Ne);return e.setSourceMapRange(we,ae),e.setCommentRange(we,ae),we}}}}}e.transformLegacyDecorators=c})(h||(h={}));var h;(function(e){var c;(function(D){D[D.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(c||(c={}));var P;(function(D){D[D.NonTopLevel=1]="NonTopLevel",D[D.HasLexicalThis=2]="HasLexicalThis"})(P||(P={}));function T(D){var O=D.factory,W=D.getEmitHelperFactory,E=D.resumeLexicalEnvironment,v=D.endLexicalEnvironment,S=D.hoistVariableDeclaration,te=D.getEmitResolver(),Y=D.getCompilerOptions(),Z=e.getEmitScriptTarget(Y),ce,k=0,X,A,y,C=[],B=0,F=D.onEmitNode,z=D.onSubstituteNode;return D.onEmitNode=je,D.onSubstituteNode=Ce,e.chainBundle(D,ge);function ge(Je){if(Je.isDeclarationFile)return Je;Pe(1,!1),Pe(2,!e.isEffectiveStrictModeSourceFile(Je,Y));var lr=e.visitEachChild(Je,re,D);return e.addEmitHelpers(lr,D.readEmitHelpers()),lr}function Pe(Je,lr){B=lr?B|Je:B&~Je}function fe(Je){return(B&Je)!==0}function _e(){return!fe(1)}function ne(){return fe(2)}function oe(Je,lr,mr){var Hr=Je&~B;if(Hr){Pe(Hr,!0);var wr=lr(mr);return Pe(Hr,!1),wr}return lr(mr)}function w(Je){return e.visitEachChild(Je,re,D)}function re(Je){if(!(Je.transformFlags&256))return Je;switch(Je.kind){case 132:return;case 220:return I(Je);case 171:return oe(3,le,Je);case 259:return oe(3,de,Je);case 215:return oe(3,De,Je);case 216:return oe(1,N,Je);case 208:return A&&e.isPropertyAccessExpression(Je)&&Je.expression.kind===106&&A.add(Je.name.escapedText),e.visitEachChild(Je,re,D);case 209:return A&&Je.expression.kind===106&&(y=!0),e.visitEachChild(Je,re,D);case 174:return oe(3,ee,Je);case 175:return oe(3,J,Je);case 173:return oe(3,he,Je);case 260:case 228:return oe(3,w,Je);default:return e.visitEachChild(Je,re,D)}}function M(Je){if(e.isNodeWithPossibleHoistedDeclaration(Je))switch(Je.kind){case 240:return H(Je);case 245:return K(Je);case 246:return q(Je);case 247:return R(Je);case 295:return U(Je);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return e.visitEachChild(Je,M,D);default:return e.Debug.assertNever(Je,"Unhandled node.")}return re(Je)}function U(Je){var lr=new e.Set;b(Je.variableDeclaration,lr);var mr;if(lr.forEach(function(Oe,Ze){X.has(Ze)&&(mr||(mr=new e.Set(X)),mr.delete(Ze))}),mr){var Hr=X;X=mr;var wr=e.visitEachChild(Je,M,D);return X=Hr,wr}else return e.visitEachChild(Je,M,D)}function H(Je){if(Q(Je.declarationList)){var lr=G(Je.declarationList,!1);return lr?O.createExpressionStatement(lr):void 0}return e.visitEachChild(Je,re,D)}function q(Je){return O.updateForInStatement(Je,Q(Je.initializer)?G(Je.initializer,!0):e.visitNode(Je.initializer,re,e.isForInitializer),e.visitNode(Je.expression,re,e.isExpression),e.visitIterationBody(Je.statement,M,D))}function R(Je){return O.updateForOfStatement(Je,e.visitNode(Je.awaitModifier,re,e.isToken),Q(Je.initializer)?G(Je.initializer,!0):e.visitNode(Je.initializer,re,e.isForInitializer),e.visitNode(Je.expression,re,e.isExpression),e.visitIterationBody(Je.statement,M,D))}function K(Je){var lr=Je.initializer;return O.updateForStatement(Je,Q(lr)?G(lr,!1):e.visitNode(Je.initializer,re,e.isForInitializer),e.visitNode(Je.condition,re,e.isExpression),e.visitNode(Je.incrementor,re,e.isExpression),e.visitIterationBody(Je.statement,M,D))}function I(Je){return _e()?e.visitEachChild(Je,re,D):e.setOriginalNode(e.setTextRange(O.createYieldExpression(void 0,e.visitNode(Je.expression,re,e.isExpression)),Je),Je)}function he(Je){return O.updateConstructorDeclaration(Je,e.visitNodes(Je.modifiers,re,e.isModifierLike),e.visitParameterList(Je.parameters,re,D),nr(Je))}function le(Je){return O.updateMethodDeclaration(Je,e.visitNodes(Je.modifiers,re,e.isModifierLike),Je.asteriskToken,Je.name,void 0,void 0,e.visitParameterList(Je.parameters,re,D),void 0,e.getFunctionFlags(Je)&2?tr(Je):nr(Je))}function ee(Je){return O.updateGetAccessorDeclaration(Je,e.visitNodes(Je.modifiers,re,e.isModifierLike),Je.name,e.visitParameterList(Je.parameters,re,D),void 0,nr(Je))}function J(Je){return O.updateSetAccessorDeclaration(Je,e.visitNodes(Je.modifiers,re,e.isModifierLike),Je.name,e.visitParameterList(Je.parameters,re,D),nr(Je))}function de(Je){return O.updateFunctionDeclaration(Je,e.visitNodes(Je.modifiers,re,e.isModifierLike),Je.asteriskToken,Je.name,void 0,e.visitParameterList(Je.parameters,re,D),void 0,e.getFunctionFlags(Je)&2?tr(Je):e.visitFunctionBody(Je.body,re,D))}function De(Je){return O.updateFunctionExpression(Je,e.visitNodes(Je.modifiers,re,e.isModifierLike),Je.asteriskToken,Je.name,void 0,e.visitParameterList(Je.parameters,re,D),void 0,e.getFunctionFlags(Je)&2?tr(Je):e.visitFunctionBody(Je.body,re,D))}function N(Je){return O.updateArrowFunction(Je,e.visitNodes(Je.modifiers,re,e.isModifierLike),void 0,e.visitParameterList(Je.parameters,re,D),void 0,Je.equalsGreaterThanToken,e.getFunctionFlags(Je)&2?tr(Je):e.visitFunctionBody(Je.body,re,D))}function b(Je,lr){var mr=Je.name;if(e.isIdentifier(mr))lr.add(mr.escapedText);else for(var Hr=0,wr=mr.elements;Hr<wr.length;Hr++){var Oe=wr[Hr];e.isOmittedExpression(Oe)||b(Oe,lr)}}function Q(Je){return!!Je&&e.isVariableDeclarationList(Je)&&!(Je.flags&3)&&Je.declarations.some(we)}function G(Je,lr){ae(Je);var mr=e.getInitializedVariables(Je);return mr.length===0?lr?e.visitNode(O.converters.convertToAssignmentElementTarget(Je.declarations[0].name),re,e.isExpression):void 0:O.inlineExpressions(e.map(mr,Ne))}function ae(Je){e.forEach(Je.declarations,Te)}function Te(Je){var lr=Je.name;if(e.isIdentifier(lr))S(lr);else for(var mr=0,Hr=lr.elements;mr<Hr.length;mr++){var wr=Hr[mr];e.isOmittedExpression(wr)||Te(wr)}}function Ne(Je){var lr=e.setSourceMapRange(O.createAssignment(O.converters.convertToAssignmentElementTarget(Je.name),Je.initializer),Je);return e.visitNode(lr,re,e.isExpression)}function we(Je){var lr=Je.name;if(e.isIdentifier(lr))return X.has(lr.escapedText);for(var mr=0,Hr=lr.elements;mr<Hr.length;mr++){var wr=Hr[mr];if(!e.isOmittedExpression(wr)&&we(wr))return!0}return!1}function nr(Je){e.Debug.assertIsDefined(Je.body);var lr=A,mr=y;A=new e.Set,y=!1;var Hr=e.visitFunctionBody(Je.body,re,D),wr=e.getOriginalNode(Je,e.isFunctionLikeDeclaration),Oe=Z>=2&&te.getNodeCheckFlags(Je)&6144&&(e.getFunctionFlags(wr)&3)!==3;if(Oe){if(rr(),A.size){var Ze=s(O,te,Je,A);C[e.getNodeId(Ze)]=!0;var tt=Hr.statements.slice();e.insertStatementsAfterStandardPrologue(tt,[Ze]),Hr=O.updateBlock(Hr,tt)}y&&(te.getNodeCheckFlags(Je)&4096?e.addEmitHelper(Hr,e.advancedAsyncSuperHelper):te.getNodeCheckFlags(Je)&2048&&e.addEmitHelper(Hr,e.asyncSuperHelper))}return A=lr,y=mr,Hr}function tr(Je){E();var lr=e.getOriginalNode(Je,e.isFunctionLike),mr=lr.type,Hr=Z<2?He(mr):void 0,wr=Je.kind===216,Oe=(te.getNodeCheckFlags(Je)&8192)!==0,Ze=X;X=new e.Set;for(var tt=0,ut=Je.parameters;tt<ut.length;tt++){var or=ut[tt];b(or,X)}var qr=A,Rr=y;wr||(A=new e.Set,y=!1);var zr;if(wr){var vr=W().createAwaiterHelper(ne(),Oe,Hr,me(Je.body)),Le=v();if(e.some(Le)){var Fe=O.converters.convertToFunctionBlock(vr);zr=O.updateBlock(Fe,e.setTextRange(O.createNodeArray(e.concatenate(Le,Fe.statements)),Fe.statements))}else zr=vr}else{var Fr=[],_t=O.copyPrologue(Je.body.statements,Fr,!1,re);Fr.push(O.createReturnStatement(W().createAwaiterHelper(ne(),Oe,Hr,me(Je.body,_t)))),e.insertStatementsAfterStandardPrologue(Fr,v());var Ct=Z>=2&&te.getNodeCheckFlags(Je)&6144;if(Ct&&(rr(),A.size)){var yt=s(O,te,Je,A);C[e.getNodeId(yt)]=!0,e.insertStatementsAfterStandardPrologue(Fr,[yt])}var Fe=O.createBlock(Fr,!0);e.setTextRange(Fe,Je.body),Ct&&y&&(te.getNodeCheckFlags(Je)&4096?e.addEmitHelper(Fe,e.advancedAsyncSuperHelper):te.getNodeCheckFlags(Je)&2048&&e.addEmitHelper(Fe,e.asyncSuperHelper)),zr=Fe}return X=Ze,wr||(A=qr,y=Rr),zr}function me(Je,lr){return e.isBlock(Je)?O.updateBlock(Je,e.visitNodes(Je.statements,M,e.isStatement,lr)):O.converters.convertToFunctionBlock(e.visitNode(Je,M,e.isConciseBody))}function He(Je){var lr=Je&&e.getEntityNameFromTypeNode(Je);if(lr&&e.isEntityName(lr)){var mr=te.getTypeReferenceSerializationKind(lr);if(mr===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||mr===e.TypeReferenceSerializationKind.Unknown)return lr}}function rr(){ce&1||(ce|=1,D.enableSubstitution(210),D.enableSubstitution(208),D.enableSubstitution(209),D.enableEmitNotification(260),D.enableEmitNotification(171),D.enableEmitNotification(174),D.enableEmitNotification(175),D.enableEmitNotification(173),D.enableEmitNotification(240))}function je(Je,lr,mr){if(ce&1&&ue(lr)){var Hr=te.getNodeCheckFlags(lr)&6144;if(Hr!==k){var wr=k;k=Hr,F(Je,lr,mr),k=wr;return}}else if(ce&&C[e.getNodeId(lr)]){var wr=k;k=0,F(Je,lr,mr),k=wr;return}F(Je,lr,mr)}function Ce(Je,lr){return lr=z(Je,lr),Je===1&&k?Ae(lr):lr}function Ae(Je){switch(Je.kind){case 208:return qe(Je);case 209:return xe(Je);case 210:return L(Je)}return Je}function qe(Je){return Je.expression.kind===106?e.setTextRange(O.createPropertyAccessExpression(O.createUniqueName("_super",48),Je.name),Je):Je}function xe(Je){return Je.expression.kind===106?Ue(Je.argumentExpression,Je):Je}function L(Je){var lr=Je.expression;if(e.isSuperProperty(lr)){var mr=e.isPropertyAccessExpression(lr)?qe(lr):xe(lr);return O.createCallExpression(O.createPropertyAccessExpression(mr,"call"),void 0,t([O.createThis()],Je.arguments,!0))}return Je}function ue(Je){var lr=Je.kind;return lr===260||lr===173||lr===171||lr===174||lr===175}function Ue(Je,lr){return k&4096?e.setTextRange(O.createPropertyAccessExpression(O.createCallExpression(O.createUniqueName("_superIndex",48),void 0,[Je]),"value"),lr):e.setTextRange(O.createCallExpression(O.createUniqueName("_superIndex",48),void 0,[Je]),lr)}}e.transformES2017=T;function s(D,O,W,E){var v=(O.getNodeCheckFlags(W)&4096)!==0,S=[];return E.forEach(function(te,Y){var Z=e.unescapeLeadingUnderscores(Y),ce=[];ce.push(D.createPropertyAssignment("get",D.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(D.createPropertyAccessExpression(e.setEmitFlags(D.createSuper(),4),Z),4)))),v&&ce.push(D.createPropertyAssignment("set",D.createArrowFunction(void 0,void 0,[D.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,D.createAssignment(e.setEmitFlags(D.createPropertyAccessExpression(e.setEmitFlags(D.createSuper(),4),Z),4),D.createIdentifier("v"))))),S.push(D.createPropertyAssignment(Z,D.createObjectLiteralExpression(ce)))}),D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.createUniqueName("_super",48),void 0,void 0,D.createCallExpression(D.createPropertyAccessExpression(D.createIdentifier("Object"),"create"),void 0,[D.createNull(),D.createObjectLiteralExpression(S,!0)]))],2))}e.createSuperAccessVariableStatement=s})(h||(h={}));var h;(function(e){var c;(function(s){s[s.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(c||(c={}));var P;(function(s){s[s.None=0]="None",s[s.HasLexicalThis=1]="HasLexicalThis",s[s.IterationContainer=2]="IterationContainer",s[s.AncestorFactsMask=3]="AncestorFactsMask",s[s.SourceFileIncludes=1]="SourceFileIncludes",s[s.SourceFileExcludes=2]="SourceFileExcludes",s[s.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",s[s.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",s[s.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",s[s.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",s[s.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",s[s.IterationStatementIncludes=2]="IterationStatementIncludes",s[s.IterationStatementExcludes=0]="IterationStatementExcludes"})(P||(P={}));function T(s){var D=s.factory,O=s.getEmitHelperFactory,W=s.resumeLexicalEnvironment,E=s.endLexicalEnvironment,v=s.hoistVariableDeclaration,S=s.getEmitResolver(),te=s.getCompilerOptions(),Y=e.getEmitScriptTarget(te),Z=s.onEmitNode;s.onEmitNode=or;var ce=s.onSubstituteNode;s.onSubstituteNode=qr;var k=!1,X,A,y,C=0,B=0,F,z,ge,Pe,fe=[];return e.chainBundle(s,re);function _e(Fe,vr){return B!==(B&~Fe|vr)}function ne(Fe,vr){var Le=B;return B=(B&~Fe|vr)&3,Le}function oe(Fe){B=Fe}function w(Fe){z=e.append(z,D.createVariableDeclaration(Fe))}function re(Fe){if(Fe.isDeclarationFile)return Fe;F=Fe;var vr=b(Fe);return e.addEmitHelpers(vr,s.readEmitHelpers()),F=void 0,z=void 0,vr}function M(Fe){return K(Fe,!1)}function U(Fe){return K(Fe,!0)}function H(Fe){if(Fe.kind!==132)return Fe}function q(Fe,vr,Le,cr){if(_e(Le,cr)){var $r=ne(Le,cr),Re=Fe(vr);return oe($r),Re}return Fe(vr)}function R(Fe){return e.visitEachChild(Fe,M,s)}function K(Fe,vr){if(!(Fe.transformFlags&128))return Fe;switch(Fe.kind){case 220:return I(Fe);case 226:return he(Fe);case 250:return le(Fe);case 253:return ee(Fe);case 207:return de(Fe);case 223:return G(Fe,vr);case 354:return ae(Fe,vr);case 295:return Te(Fe);case 240:return Ne(Fe);case 257:return we(Fe);case 243:case 244:case 246:return q(R,Fe,0,2);case 247:return He(Fe,void 0);case 245:return q(tr,Fe,0,2);case 219:return me(Fe);case 173:return q(ue,Fe,2,1);case 171:return q(lr,Fe,2,1);case 174:return q(Ue,Fe,2,1);case 175:return q(Je,Fe,2,1);case 259:return q(mr,Fe,2,1);case 215:return q(wr,Fe,2,1);case 216:return q(Hr,Fe,2,0);case 166:return xe(Fe);case 241:return De(Fe);case 214:return N(Fe,vr);case 212:return Q(Fe);case 208:return ge&&e.isPropertyAccessExpression(Fe)&&Fe.expression.kind===106&&ge.add(Fe.name.escapedText),e.visitEachChild(Fe,M,s);case 209:return ge&&Fe.expression.kind===106&&(Pe=!0),e.visitEachChild(Fe,M,s);case 260:case 228:return q(R,Fe,2,1);default:return e.visitEachChild(Fe,M,s)}}function I(Fe){return A&2&&A&1?e.setOriginalNode(e.setTextRange(D.createYieldExpression(void 0,O().createAwaitHelper(e.visitNode(Fe.expression,M,e.isExpression))),Fe),Fe):e.visitEachChild(Fe,M,s)}function he(Fe){if(A&2&&A&1){if(Fe.asteriskToken){var vr=e.visitNode(e.Debug.checkDefined(Fe.expression),M,e.isExpression);return e.setOriginalNode(e.setTextRange(D.createYieldExpression(void 0,O().createAwaitHelper(D.updateYieldExpression(Fe,Fe.asteriskToken,e.setTextRange(O().createAsyncDelegatorHelper(e.setTextRange(O().createAsyncValuesHelper(vr),vr)),vr)))),Fe),Fe)}return e.setOriginalNode(e.setTextRange(D.createYieldExpression(void 0,Ce(Fe.expression?e.visitNode(Fe.expression,M,e.isExpression):D.createVoidZero())),Fe),Fe)}return e.visitEachChild(Fe,M,s)}function le(Fe){return A&2&&A&1?D.updateReturnStatement(Fe,Ce(Fe.expression?e.visitNode(Fe.expression,M,e.isExpression):D.createVoidZero())):e.visitEachChild(Fe,M,s)}function ee(Fe){if(A&2){var vr=e.unwrapInnermostStatementOfLabel(Fe);return vr.kind===247&&vr.awaitModifier?He(vr,Fe):D.restoreEnclosingLabel(e.visitNode(vr,M,e.isStatement,D.liftToBlock),Fe)}return e.visitEachChild(Fe,M,s)}function J(Fe){for(var vr,Le=[],cr=0,$r=Fe;cr<$r.length;cr++){var Re=$r[cr];if(Re.kind===301){vr&&(Le.push(D.createObjectLiteralExpression(vr)),vr=void 0);var xr=Re.expression;Le.push(e.visitNode(xr,M,e.isExpression))}else vr=e.append(vr,Re.kind===299?D.createPropertyAssignment(Re.name,e.visitNode(Re.initializer,M,e.isExpression)):e.visitNode(Re,M,e.isObjectLiteralElementLike))}return vr&&Le.push(D.createObjectLiteralExpression(vr)),Le}function de(Fe){if(Fe.transformFlags&65536){var vr=J(Fe.properties);vr.length&&vr[0].kind!==207&&vr.unshift(D.createObjectLiteralExpression());var Le=vr[0];if(vr.length>1){for(var cr=1;cr<vr.length;cr++)Le=O().createAssignHelper([Le,vr[cr]]);return Le}else return O().createAssignHelper(vr)}return e.visitEachChild(Fe,M,s)}function De(Fe){return e.visitEachChild(Fe,U,s)}function N(Fe,vr){return e.visitEachChild(Fe,vr?U:M,s)}function b(Fe){var vr=ne(2,e.isEffectiveStrictModeSourceFile(Fe,te)?0:1);k=!1;var Le=e.visitEachChild(Fe,M,s),cr=e.concatenate(Le.statements,z&&[D.createVariableStatement(void 0,D.createVariableDeclarationList(z))]),$r=D.updateSourceFile(Le,e.setTextRange(D.createNodeArray(cr),Fe.statements));return oe(vr),$r}function Q(Fe){return e.processTaggedTemplateExpression(s,Fe,M,F,w,e.ProcessLevel.LiftRestriction)}function G(Fe,vr){return e.isDestructuringAssignment(Fe)&&Fe.left.transformFlags&65536?e.flattenDestructuringAssignment(Fe,M,s,1,!vr):Fe.operatorToken.kind===27?D.updateBinaryExpression(Fe,e.visitNode(Fe.left,U,e.isExpression),Fe.operatorToken,e.visitNode(Fe.right,vr?U:M,e.isExpression)):e.visitEachChild(Fe,M,s)}function ae(Fe,vr){if(vr)return e.visitEachChild(Fe,U,s);for(var Le,cr=0;cr<Fe.elements.length;cr++){var $r=Fe.elements[cr],Re=e.visitNode($r,cr<Fe.elements.length-1?U:M,e.isExpression);(Le||Re!==$r)&&(Le||(Le=Fe.elements.slice(0,cr)),Le.push(Re))}var xr=Le?e.setTextRange(D.createNodeArray(Le),Fe.elements):Fe.elements;return D.updateCommaListExpression(Fe,xr)}function Te(Fe){if(Fe.variableDeclaration&&e.isBindingPattern(Fe.variableDeclaration.name)&&Fe.variableDeclaration.name.transformFlags&65536){var vr=D.getGeneratedNameForNode(Fe.variableDeclaration.name),Le=D.updateVariableDeclaration(Fe.variableDeclaration,Fe.variableDeclaration.name,void 0,void 0,vr),cr=e.flattenDestructuringBinding(Le,M,s,1),$r=e.visitNode(Fe.block,M,e.isBlock);return e.some(cr)&&($r=D.updateBlock($r,t([D.createVariableStatement(void 0,cr)],$r.statements,!0))),D.updateCatchClause(Fe,D.updateVariableDeclaration(Fe.variableDeclaration,vr,void 0,void 0,void 0),$r)}return e.visitEachChild(Fe,M,s)}function Ne(Fe){if(e.hasSyntacticModifier(Fe,1)){var vr=k;k=!0;var Le=e.visitEachChild(Fe,M,s);return k=vr,Le}return e.visitEachChild(Fe,M,s)}function we(Fe){if(k){var vr=k;k=!1;var Le=nr(Fe,!0);return k=vr,Le}return nr(Fe,!1)}function nr(Fe,vr){return e.isBindingPattern(Fe.name)&&Fe.name.transformFlags&65536?e.flattenDestructuringBinding(Fe,M,s,1,void 0,vr):e.visitEachChild(Fe,M,s)}function tr(Fe){return D.updateForStatement(Fe,e.visitNode(Fe.initializer,U,e.isForInitializer),e.visitNode(Fe.condition,M,e.isExpression),e.visitNode(Fe.incrementor,U,e.isExpression),e.visitIterationBody(Fe.statement,M,s))}function me(Fe){return e.visitEachChild(Fe,U,s)}function He(Fe,vr){var Le=ne(0,2);Fe.initializer.transformFlags&65536&&(Fe=rr(Fe));var cr=Fe.awaitModifier?Ae(Fe,vr,Le):D.restoreEnclosingLabel(e.visitEachChild(Fe,M,s),vr);return oe(Le),cr}function rr(Fe){var vr=e.skipParentheses(Fe.initializer);if(e.isVariableDeclarationList(vr)||e.isAssignmentPattern(vr)){var Le=void 0,cr=void 0,$r=D.createTempVariable(void 0),Re=[e.createForOfBindingStatement(D,vr,$r)];return e.isBlock(Fe.statement)?(e.addRange(Re,Fe.statement.statements),Le=Fe.statement,cr=Fe.statement.statements):Fe.statement&&(e.append(Re,Fe.statement),Le=Fe.statement,cr=Fe.statement),D.updateForOfStatement(Fe,Fe.awaitModifier,e.setTextRange(D.createVariableDeclarationList([e.setTextRange(D.createVariableDeclaration($r),Fe.initializer)],1),Fe.initializer),Fe.expression,e.setTextRange(D.createBlock(e.setTextRange(D.createNodeArray(Re),cr),!0),Le))}return Fe}function je(Fe,vr,Le){var cr=D.createTempVariable(v),$r=D.createAssignment(cr,vr),Re=D.createExpressionStatement($r);e.setSourceMapRange(Re,Fe.expression);var xr=D.createAssignment(Le,D.createFalse()),Br=D.createExpressionStatement(xr);e.setSourceMapRange(Br,Fe.expression);var Qr=D.createAssignment(Le,D.createTrue()),ct=D.createExpressionStatement(Qr);e.setSourceMapRange(Br,Fe.expression);var ft=[],Dt=e.createForOfBindingStatement(D,Fe.initializer,cr);ft.push(e.visitNode(Dt,M,e.isStatement));var Me,Ke,Vr=e.visitIterationBody(Fe.statement,M,s);e.isBlock(Vr)?(e.addRange(ft,Vr.statements),Me=Vr,Ke=Vr.statements):ft.push(Vr);var Yr=e.setEmitFlags(e.setTextRange(D.createBlock(e.setTextRange(D.createNodeArray(ft),Ke),!0),Me),432);return D.createBlock([Re,Br,D.createTryStatement(Yr,void 0,D.createBlock([ct]))])}function Ce(Fe){return A&1?D.createYieldExpression(void 0,O().createAwaitHelper(Fe)):D.createAwaitExpression(Fe)}function Ae(Fe,vr,Le){var cr=e.visitNode(Fe.expression,M,e.isExpression),$r=e.isIdentifier(cr)?D.getGeneratedNameForNode(cr):D.createTempVariable(void 0),Re=e.isIdentifier(cr)?D.getGeneratedNameForNode($r):D.createTempVariable(void 0),xr=D.createTempVariable(void 0),Br=D.createTempVariable(v),Qr=D.createUniqueName("e"),ct=D.getGeneratedNameForNode(Qr),ft=D.createTempVariable(void 0),Dt=e.setTextRange(O().createAsyncValuesHelper(cr),Fe.expression),Me=D.createCallExpression(D.createPropertyAccessExpression($r,"next"),void 0,[]),Ke=D.createPropertyAccessExpression(Re,"done"),Vr=D.createPropertyAccessExpression(Re,"value"),Yr=D.createFunctionCallCall(ft,$r,[]);v(Qr),v(ft);var Nt=Le&2?D.inlineExpressions([D.createAssignment(Qr,D.createVoidZero()),Dt]):Dt,Wt=e.setEmitFlags(e.setTextRange(D.createForStatement(e.setEmitFlags(e.setTextRange(D.createVariableDeclarationList([D.createVariableDeclaration(xr,void 0,void 0,D.createTrue()),e.setTextRange(D.createVariableDeclaration($r,void 0,void 0,Nt),Fe.expression),D.createVariableDeclaration(Re)]),Fe.expression),2097152),D.inlineExpressions([D.createAssignment(Re,Ce(Me)),D.createAssignment(Br,Ke),D.createLogicalNot(Br)]),void 0,je(Fe,Vr,xr)),Fe),256);return e.setOriginalNode(Wt,Fe),D.createTryStatement(D.createBlock([D.restoreEnclosingLabel(Wt,vr)]),D.createCatchClause(D.createVariableDeclaration(ct),e.setEmitFlags(D.createBlock([D.createExpressionStatement(D.createAssignment(Qr,D.createObjectLiteralExpression([D.createPropertyAssignment("error",ct)])))]),1)),D.createBlock([D.createTryStatement(D.createBlock([e.setEmitFlags(D.createIfStatement(D.createLogicalAnd(D.createLogicalAnd(D.createLogicalNot(xr),D.createLogicalNot(Br)),D.createAssignment(ft,D.createPropertyAccessExpression($r,"return"))),D.createExpressionStatement(Ce(Yr))),1)]),void 0,e.setEmitFlags(D.createBlock([e.setEmitFlags(D.createIfStatement(Qr,D.createThrowStatement(D.createPropertyAccessExpression(Qr,"error"))),1)]),1))]))}function qe(Fe){return e.Debug.assertNode(Fe,e.isParameter),xe(Fe)}function xe(Fe){return y!=null&&y.has(Fe)?D.updateParameterDeclaration(Fe,void 0,Fe.dotDotDotToken,e.isBindingPattern(Fe.name)?D.getGeneratedNameForNode(Fe):Fe.name,void 0,void 0,void 0):Fe.transformFlags&65536?D.updateParameterDeclaration(Fe,void 0,Fe.dotDotDotToken,D.getGeneratedNameForNode(Fe),void 0,void 0,e.visitNode(Fe.initializer,M,e.isExpression)):e.visitEachChild(Fe,M,s)}function L(Fe){for(var vr,Le=0,cr=Fe.parameters;Le<cr.length;Le++){var $r=cr[Le];vr?vr.add($r):$r.transformFlags&65536&&(vr=new e.Set)}return vr}function ue(Fe){var vr=A,Le=y;A=e.getFunctionFlags(Fe),y=L(Fe);var cr=D.updateConstructorDeclaration(Fe,Fe.modifiers,e.visitParameterList(Fe.parameters,qe,s),Ze(Fe));return A=vr,y=Le,cr}function Ue(Fe){var vr=A,Le=y;A=e.getFunctionFlags(Fe),y=L(Fe);var cr=D.updateGetAccessorDeclaration(Fe,Fe.modifiers,e.visitNode(Fe.name,M,e.isPropertyName),e.visitParameterList(Fe.parameters,qe,s),void 0,Ze(Fe));return A=vr,y=Le,cr}function Je(Fe){var vr=A,Le=y;A=e.getFunctionFlags(Fe),y=L(Fe);var cr=D.updateSetAccessorDeclaration(Fe,Fe.modifiers,e.visitNode(Fe.name,M,e.isPropertyName),e.visitParameterList(Fe.parameters,qe,s),Ze(Fe));return A=vr,y=Le,cr}function lr(Fe){var vr=A,Le=y;A=e.getFunctionFlags(Fe),y=L(Fe);var cr=D.updateMethodDeclaration(Fe,A&1?e.visitNodes(Fe.modifiers,H,e.isModifierLike):Fe.modifiers,A&2?void 0:Fe.asteriskToken,e.visitNode(Fe.name,M,e.isPropertyName),e.visitNode(void 0,M,e.isToken),void 0,e.visitParameterList(Fe.parameters,qe,s),void 0,A&2&&A&1?Oe(Fe):Ze(Fe));return A=vr,y=Le,cr}function mr(Fe){var vr=A,Le=y;A=e.getFunctionFlags(Fe),y=L(Fe);var cr=D.updateFunctionDeclaration(Fe,A&1?e.visitNodes(Fe.modifiers,H,e.isModifier):Fe.modifiers,A&2?void 0:Fe.asteriskToken,Fe.name,void 0,e.visitParameterList(Fe.parameters,qe,s),void 0,A&2&&A&1?Oe(Fe):Ze(Fe));return A=vr,y=Le,cr}function Hr(Fe){var vr=A,Le=y;A=e.getFunctionFlags(Fe),y=L(Fe);var cr=D.updateArrowFunction(Fe,Fe.modifiers,void 0,e.visitParameterList(Fe.parameters,qe,s),void 0,Fe.equalsGreaterThanToken,Ze(Fe));return A=vr,y=Le,cr}function wr(Fe){var vr=A,Le=y;A=e.getFunctionFlags(Fe),y=L(Fe);var cr=D.updateFunctionExpression(Fe,A&1?e.visitNodes(Fe.modifiers,H,e.isModifier):Fe.modifiers,A&2?void 0:Fe.asteriskToken,Fe.name,void 0,e.visitParameterList(Fe.parameters,qe,s),void 0,A&2&&A&1?Oe(Fe):Ze(Fe));return A=vr,y=Le,cr}function Oe(Fe){W();var vr=[],Le=D.copyPrologue(Fe.body.statements,vr,!1,M);tt(vr,Fe);var cr=ge,$r=Pe;ge=new e.Set,Pe=!1;var Re=D.createReturnStatement(O().createAsyncGeneratorHelper(D.createFunctionExpression(void 0,D.createToken(41),Fe.name&&D.getGeneratedNameForNode(Fe.name),void 0,[],void 0,D.updateBlock(Fe.body,e.visitLexicalEnvironment(Fe.body.statements,M,s,Le))),!!(B&1))),xr=Y>=2&&S.getNodeCheckFlags(Fe)&6144;if(xr){ut();var Br=e.createSuperAccessVariableStatement(D,S,Fe,ge);fe[e.getNodeId(Br)]=!0,e.insertStatementsAfterStandardPrologue(vr,[Br])}vr.push(Re),e.insertStatementsAfterStandardPrologue(vr,E());var Qr=D.updateBlock(Fe.body,vr);return xr&&Pe&&(S.getNodeCheckFlags(Fe)&4096?e.addEmitHelper(Qr,e.advancedAsyncSuperHelper):S.getNodeCheckFlags(Fe)&2048&&e.addEmitHelper(Qr,e.asyncSuperHelper)),ge=cr,Pe=$r,Qr}function Ze(Fe){var vr;W();var Le=0,cr=[],$r=(vr=e.visitNode(Fe.body,M,e.isConciseBody))!==null&&vr!==void 0?vr:D.createBlock([]);e.isBlock($r)&&(Le=D.copyPrologue($r.statements,cr,!1,M)),e.addRange(cr,tt(void 0,Fe));var Re=E();if(Le>0||e.some(cr)||e.some(Re)){var xr=D.converters.convertToFunctionBlock($r,!0);return e.insertStatementsAfterStandardPrologue(cr,Re),e.addRange(cr,xr.statements.slice(Le)),D.updateBlock(xr,e.setTextRange(D.createNodeArray(cr),xr.statements))}return $r}function tt(Fe,vr){for(var Le=!1,cr=0,$r=vr.parameters;cr<$r.length;cr++){var Re=$r[cr];if(Le){if(e.isBindingPattern(Re.name)){if(Re.name.elements.length>0){var xr=e.flattenDestructuringBinding(Re,M,s,0,D.getGeneratedNameForNode(Re));if(e.some(xr)){var Br=D.createVariableDeclarationList(xr),Qr=D.createVariableStatement(void 0,Br);e.setEmitFlags(Qr,1048576),Fe=e.append(Fe,Qr)}}else if(Re.initializer){var ct=D.getGeneratedNameForNode(Re),ft=e.visitNode(Re.initializer,M,e.isExpression),Dt=D.createAssignment(ct,ft),Qr=D.createExpressionStatement(Dt);e.setEmitFlags(Qr,1048576),Fe=e.append(Fe,Qr)}}else if(Re.initializer){var ct=D.cloneNode(Re.name);e.setTextRange(ct,Re.name),e.setEmitFlags(ct,48);var ft=e.visitNode(Re.initializer,M,e.isExpression);e.addEmitFlags(ft,1584);var Dt=D.createAssignment(ct,ft);e.setTextRange(Dt,Re),e.setEmitFlags(Dt,1536);var Me=D.createBlock([D.createExpressionStatement(Dt)]);e.setTextRange(Me,Re),e.setEmitFlags(Me,1953);var Ke=D.createTypeCheck(D.cloneNode(Re.name),"undefined"),Qr=D.createIfStatement(Ke,Me);e.startOnNewLine(Qr),e.setTextRange(Qr,Re),e.setEmitFlags(Qr,1050528),Fe=e.append(Fe,Qr)}}else if(Re.transformFlags&65536){Le=!0;var xr=e.flattenDestructuringBinding(Re,M,s,1,D.getGeneratedNameForNode(Re),!1,!0);if(e.some(xr)){var Br=D.createVariableDeclarationList(xr),Qr=D.createVariableStatement(void 0,Br);e.setEmitFlags(Qr,1048576),Fe=e.append(Fe,Qr)}}}return Fe}function ut(){X&1||(X|=1,s.enableSubstitution(210),s.enableSubstitution(208),s.enableSubstitution(209),s.enableEmitNotification(260),s.enableEmitNotification(171),s.enableEmitNotification(174),s.enableEmitNotification(175),s.enableEmitNotification(173),s.enableEmitNotification(240))}function or(Fe,vr,Le){if(X&1&&Ct(vr)){var cr=S.getNodeCheckFlags(vr)&6144;if(cr!==C){var $r=C;C=cr,Z(Fe,vr,Le),C=$r;return}}else if(X&&fe[e.getNodeId(vr)]){var $r=C;C=0,Z(Fe,vr,Le),C=$r;return}Z(Fe,vr,Le)}function qr(Fe,vr){return vr=ce(Fe,vr),Fe===1&&C?Rr(vr):vr}function Rr(Fe){switch(Fe.kind){case 208:return zr(Fe);case 209:return Fr(Fe);case 210:return _t(Fe)}return Fe}function zr(Fe){return Fe.expression.kind===106?e.setTextRange(D.createPropertyAccessExpression(D.createUniqueName("_super",48),Fe.name),Fe):Fe}function Fr(Fe){return Fe.expression.kind===106?yt(Fe.argumentExpression,Fe):Fe}function _t(Fe){var vr=Fe.expression;if(e.isSuperProperty(vr)){var Le=e.isPropertyAccessExpression(vr)?zr(vr):Fr(vr);return D.createCallExpression(D.createPropertyAccessExpression(Le,"call"),void 0,t([D.createThis()],Fe.arguments,!0))}return Fe}function Ct(Fe){var vr=Fe.kind;return vr===260||vr===173||vr===171||vr===174||vr===175}function yt(Fe,vr){return C&4096?e.setTextRange(D.createPropertyAccessExpression(D.createCallExpression(D.createIdentifier("_superIndex"),void 0,[Fe]),"value"),vr):e.setTextRange(D.createCallExpression(D.createIdentifier("_superIndex"),void 0,[Fe]),vr)}}e.transformES2018=T})(h||(h={}));var h;(function(e){function c(P){var T=P.factory;return e.chainBundle(P,s);function s(W){return W.isDeclarationFile?W:e.visitEachChild(W,D,P)}function D(W){if(!(W.transformFlags&64))return W;switch(W.kind){case 295:return O(W);default:return e.visitEachChild(W,D,P)}}function O(W){return W.variableDeclaration?e.visitEachChild(W,D,P):T.updateCatchClause(W,T.createVariableDeclaration(T.createTempVariable(void 0)),e.visitNode(W.block,D,e.isBlock))}}e.transformES2019=c})(h||(h={}));var h;(function(e){function c(P){var T=P.factory,s=P.hoistVariableDeclaration;return e.chainBundle(P,D);function D(X){return X.isDeclarationFile?X:e.visitEachChild(X,O,P)}function O(X){if(!(X.transformFlags&32))return X;switch(X.kind){case 210:{var A=S(X,!1);return e.Debug.assertNotNode(A,e.isSyntheticReference),A}case 208:case 209:if(e.isOptionalChain(X)){var A=Y(X,!1,!1);return e.Debug.assertNotNode(A,e.isSyntheticReference),A}return e.visitEachChild(X,O,P);case 223:return X.operatorToken.kind===60?ce(X):e.visitEachChild(X,O,P);case 217:return k(X);default:return e.visitEachChild(X,O,P)}}function W(X){e.Debug.assertNotNode(X,e.isNonNullChain);for(var A=[X];!X.questionDotToken&&!e.isTaggedTemplateExpression(X);)X=e.cast(e.skipPartiallyEmittedExpressions(X.expression),e.isOptionalChain),e.Debug.assertNotNode(X,e.isNonNullChain),A.unshift(X);return{expression:X.expression,chain:A}}function E(X,A,y){var C=te(X.expression,A,y);return e.isSyntheticReference(C)?T.createSyntheticReferenceExpression(T.updateParenthesizedExpression(X,C.expression),C.thisArg):T.updateParenthesizedExpression(X,C)}function v(X,A,y){if(e.isOptionalChain(X))return Y(X,A,y);var C=e.visitNode(X.expression,O,e.isExpression);e.Debug.assertNotNode(C,e.isSyntheticReference);var B;return A&&(e.isSimpleCopiableExpression(C)?B=C:(B=T.createTempVariable(s),C=T.createAssignment(B,C))),C=X.kind===208?T.updatePropertyAccessExpression(X,C,e.visitNode(X.name,O,e.isIdentifier)):T.updateElementAccessExpression(X,C,e.visitNode(X.argumentExpression,O,e.isExpression)),B?T.createSyntheticReferenceExpression(C,B):C}function S(X,A){if(e.isOptionalChain(X))return Y(X,A,!1);if(e.isParenthesizedExpression(X.expression)&&e.isOptionalChain(e.skipParentheses(X.expression))){var y=E(X.expression,!0,!1),C=e.visitNodes(X.arguments,O,e.isExpression);return e.isSyntheticReference(y)?e.setTextRange(T.createFunctionCallCall(y.expression,y.thisArg,C),X):T.updateCallExpression(X,y,void 0,C)}return e.visitEachChild(X,O,P)}function te(X,A,y){switch(X.kind){case 214:return E(X,A,y);case 208:case 209:return v(X,A,y);case 210:return S(X,A);default:return e.visitNode(X,O,e.isExpression)}}function Y(X,A,y){var C=W(X),B=C.expression,F=C.chain,z=te(e.skipPartiallyEmittedExpressions(B),e.isCallChain(F[0]),!1),ge=e.isSyntheticReference(z)?z.thisArg:void 0,Pe=e.isSyntheticReference(z)?z.expression:z,fe=T.restoreOuterExpressions(B,Pe,8);e.isSimpleCopiableExpression(Pe)||(Pe=T.createTempVariable(s),fe=T.createAssignment(Pe,fe));for(var _e=Pe,ne,oe=0;oe<F.length;oe++){var w=F[oe];switch(w.kind){case 208:case 209:oe===F.length-1&&A&&(e.isSimpleCopiableExpression(_e)?ne=_e:(ne=T.createTempVariable(s),_e=T.createAssignment(ne,_e))),_e=w.kind===208?T.createPropertyAccessExpression(_e,e.visitNode(w.name,O,e.isIdentifier)):T.createElementAccessExpression(_e,e.visitNode(w.argumentExpression,O,e.isExpression));break;case 210:oe===0&&ge?(e.isGeneratedIdentifier(ge)||(ge=T.cloneNode(ge),e.addEmitFlags(ge,1536)),_e=T.createFunctionCallCall(_e,ge.kind===106?T.createThis():ge,e.visitNodes(w.arguments,O,e.isExpression))):_e=T.createCallExpression(_e,void 0,e.visitNodes(w.arguments,O,e.isExpression));break}e.setOriginalNode(_e,w)}var re=y?T.createConditionalExpression(Z(fe,Pe,!0),void 0,T.createTrue(),void 0,T.createDeleteExpression(_e)):T.createConditionalExpression(Z(fe,Pe,!0),void 0,T.createVoidZero(),void 0,_e);return e.setTextRange(re,X),ne?T.createSyntheticReferenceExpression(re,ne):re}function Z(X,A,y){return T.createBinaryExpression(T.createBinaryExpression(X,T.createToken(y?36:37),T.createNull()),T.createToken(y?56:55),T.createBinaryExpression(A,T.createToken(y?36:37),T.createVoidZero()))}function ce(X){var A=e.visitNode(X.left,O,e.isExpression),y=A;return e.isSimpleCopiableExpression(A)||(y=T.createTempVariable(s),A=T.createAssignment(y,A)),e.setTextRange(T.createConditionalExpression(Z(A,y),void 0,y,void 0,e.visitNode(X.right,O,e.isExpression)),X)}function k(X){return e.isOptionalChain(e.skipParentheses(X.expression))?e.setOriginalNode(te(X.expression,!1,!0),X):T.updateDeleteExpression(X,e.visitNode(X.expression,O,e.isExpression))}}e.transformES2020=c})(h||(h={}));var h;(function(e){function c(P){var T=P.hoistVariableDeclaration,s=P.factory;return e.chainBundle(P,D);function D(E){return E.isDeclarationFile?E:e.visitEachChild(E,O,P)}function O(E){if(!(E.transformFlags&16))return E;switch(E.kind){case 223:var v=E;if(e.isLogicalOrCoalescingAssignmentExpression(v))return W(v);default:return e.visitEachChild(E,O,P)}}function W(E){var v=E.operatorToken,S=e.getNonAssignmentOperatorForCompoundAssignment(v.kind),te=e.skipParentheses(e.visitNode(E.left,O,e.isLeftHandSideExpression)),Y=te,Z=e.skipParentheses(e.visitNode(E.right,O,e.isExpression));if(e.isAccessExpression(te)){var ce=e.isSimpleCopiableExpression(te.expression),k=ce?te.expression:s.createTempVariable(T),X=ce?te.expression:s.createAssignment(k,te.expression);if(e.isPropertyAccessExpression(te))Y=s.createPropertyAccessExpression(k,te.name),te=s.createPropertyAccessExpression(X,te.name);else{var A=e.isSimpleCopiableExpression(te.argumentExpression),y=A?te.argumentExpression:s.createTempVariable(T);Y=s.createElementAccessExpression(k,y),te=s.createElementAccessExpression(X,A?te.argumentExpression:s.createAssignment(y,te.argumentExpression))}}return s.createBinaryExpression(te,S,s.createParenthesizedExpression(s.createAssignment(Y,Z)))}}e.transformES2021=c})(h||(h={}));var h;(function(e){function c(P){return e.chainBundle(P,T);function T(D){return D.isDeclarationFile?D:e.visitEachChild(D,s,P)}function s(D){if(!(D.transformFlags&4))return D;switch(D.kind){default:return e.visitEachChild(D,s,P)}}}e.transformESNext=c})(h||(h={}));var h;(function(e){function c(T){var s=T.factory,D=T.getEmitHelperFactory,O=T.getCompilerOptions(),W,E;return e.chainBundle(T,ce);function v(){if(E.filenameDeclaration)return E.filenameDeclaration.name;var b=s.createVariableDeclaration(s.createUniqueName("_jsxFileName",48),void 0,void 0,s.createStringLiteral(W.fileName));return E.filenameDeclaration=b,E.filenameDeclaration.name}function S(b){return O.jsx===5?"jsxDEV":b?"jsxs":"jsx"}function te(b){var Q=S(b);return Z(Q)}function Y(){return Z("Fragment")}function Z(b){var Q,G,ae=b==="createElement"?E.importSpecifier:e.getJSXRuntimeImport(E.importSpecifier,O),Te=(G=(Q=E.utilizedImplicitRuntimeImports)===null||Q===void 0?void 0:Q.get(ae))===null||G===void 0?void 0:G.get(b);if(Te)return Te.name;E.utilizedImplicitRuntimeImports||(E.utilizedImplicitRuntimeImports=new e.Map);var Ne=E.utilizedImplicitRuntimeImports.get(ae);Ne||(Ne=new e.Map,E.utilizedImplicitRuntimeImports.set(ae,Ne));var we=s.createUniqueName("_".concat(b),112),nr=s.createImportSpecifier(!1,s.createIdentifier(b),we);return we.generatedImportReference=nr,Ne.set(b,nr),we}function ce(b){if(b.isDeclarationFile)return b;W=b,E={},E.importSpecifier=e.getJSXImplicitImportBase(O,b);var Q=e.visitEachChild(b,k,T);e.addEmitHelpers(Q,T.readEmitHelpers());var G=Q.statements;if(E.filenameDeclaration&&(G=e.insertStatementAfterCustomPrologue(G.slice(),s.createVariableStatement(void 0,s.createVariableDeclarationList([E.filenameDeclaration],2)))),E.utilizedImplicitRuntimeImports)for(var ae=0,Te=e.arrayFrom(E.utilizedImplicitRuntimeImports.entries());ae<Te.length;ae++){var Ne=Te[ae],we=Ne[0],nr=Ne[1];if(e.isExternalModule(b)){var tr=s.createImportDeclaration(void 0,s.createImportClause(!1,void 0,s.createNamedImports(e.arrayFrom(nr.values()))),s.createStringLiteral(we),void 0);e.setParentRecursive(tr,!1),G=e.insertStatementAfterCustomPrologue(G.slice(),tr)}else if(e.isExternalOrCommonJsModule(b)){var me=s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.createObjectBindingPattern(e.map(e.arrayFrom(nr.values()),function(He){return s.createBindingElement(void 0,He.propertyName,He.name)})),void 0,void 0,s.createCallExpression(s.createIdentifier("require"),void 0,[s.createStringLiteral(we)]))],2));e.setParentRecursive(me,!1),G=e.insertStatementAfterCustomPrologue(G.slice(),me)}}return G!==Q.statements&&(Q=s.updateSourceFile(Q,G)),E=void 0,Q}function k(b){return b.transformFlags&2?X(b):b}function X(b){switch(b.kind){case 281:return B(b,!1);case 282:return F(b,!1);case 285:return z(b,!1);case 291:return N(b);default:return e.visitEachChild(b,k,T)}}function A(b){switch(b.kind){case 11:return I(b);case 291:return N(b);case 281:return B(b,!0);case 282:return F(b,!0);case 285:return z(b,!0);default:return e.Debug.failBadSyntaxKind(b)}}function y(b){for(var Q=!1,G=0,ae=b.attributes.properties;G<ae.length;G++){var Te=ae[G];if(e.isJsxSpreadAttribute(Te))Q=!0;else if(Q&&e.isJsxAttribute(Te)&&Te.name.escapedText==="key")return!0}return!1}function C(b){return E.importSpecifier===void 0||y(b)}function B(b,Q){var G=C(b.openingElement)?ne:fe;return G(b.openingElement,b.children,Q,b)}function F(b,Q){var G=C(b)?ne:fe;return G(b,void 0,Q,b)}function z(b,Q){var G=E.importSpecifier===void 0?w:oe;return G(b.openingFragment,b.children,Q,b)}function ge(b){var Q=Pe(b);return Q&&s.createObjectLiteralExpression([Q])}function Pe(b){var Q=e.getSemanticJsxChildren(b);if(e.length(Q)===1&&!Q[0].dotDotDotToken){var G=A(Q[0]);return G&&s.createPropertyAssignment("children",G)}var ae=e.mapDefined(b,A);return e.length(ae)?s.createPropertyAssignment("children",s.createArrayLiteralExpression(ae)):void 0}function fe(b,Q,G,ae){var Te=de(b),Ne=Q&&Q.length?Pe(Q):void 0,we=e.find(b.attributes.properties,function(me){return!!me.name&&e.isIdentifier(me.name)&&me.name.escapedText==="key"}),nr=we?e.filter(b.attributes.properties,function(me){return me!==we}):b.attributes.properties,tr=e.length(nr)?M(nr,Ne):s.createObjectLiteralExpression(Ne?[Ne]:e.emptyArray);return _e(Te,tr,we,Q||e.emptyArray,G,ae)}function _e(b,Q,G,ae,Te,Ne){var we,nr=e.getSemanticJsxChildren(ae),tr=e.length(nr)>1||!!(!((we=nr[0])===null||we===void 0)&&we.dotDotDotToken),me=[b,Q];if(G&&me.push(K(G.initializer)),O.jsx===5){var He=e.getOriginalNode(W);if(He&&e.isSourceFile(He)){G===void 0&&me.push(s.createVoidZero()),me.push(tr?s.createTrue():s.createFalse());var rr=e.getLineAndCharacterOfPosition(He,Ne.pos);me.push(s.createObjectLiteralExpression([s.createPropertyAssignment("fileName",v()),s.createPropertyAssignment("lineNumber",s.createNumericLiteral(rr.line+1)),s.createPropertyAssignment("columnNumber",s.createNumericLiteral(rr.character+1))])),me.push(s.createThis())}}var je=e.setTextRange(s.createCallExpression(te(tr),void 0,me),Ne);return Te&&e.startOnNewLine(je),je}function ne(b,Q,G,ae){var Te=de(b),Ne=b.attributes.properties,we=e.length(Ne)?M(Ne):s.createNull(),nr=E.importSpecifier===void 0?e.createJsxFactoryExpression(s,T.getEmitResolver().getJsxFactoryEntity(W),O.reactNamespace,b):Z("createElement"),tr=e.createExpressionForJsxElement(s,nr,Te,we,e.mapDefined(Q,A),ae);return G&&e.startOnNewLine(tr),tr}function oe(b,Q,G,ae){var Te;if(Q&&Q.length){var Ne=ge(Q);Ne&&(Te=Ne)}return _e(Y(),Te||s.createObjectLiteralExpression([]),void 0,Q,G,ae)}function w(b,Q,G,ae){var Te=e.createExpressionForJsxFragment(s,T.getEmitResolver().getJsxFactoryEntity(W),T.getEmitResolver().getJsxFragmentFactoryEntity(W),O.reactNamespace,e.mapDefined(Q,A),b,ae);return G&&e.startOnNewLine(Te),Te}function re(b){return s.createSpreadAssignment(e.visitNode(b.expression,k,e.isExpression))}function M(b,Q){var G=e.getEmitScriptTarget(O);return G&&G>=5?s.createObjectLiteralExpression(U(b,Q)):H(b,Q)}function U(b,Q){var G=e.flatten(e.spanMap(b,e.isJsxSpreadAttribute,function(ae,Te){return e.map(ae,function(Ne){return Te?re(Ne):R(Ne)})}));return Q&&G.push(Q),G}function H(b,Q){var G=e.flatten(e.spanMap(b,e.isJsxSpreadAttribute,function(ae,Te){return Te?e.map(ae,q):s.createObjectLiteralExpression(e.map(ae,R))}));return e.isJsxSpreadAttribute(b[0])&&G.unshift(s.createObjectLiteralExpression()),Q&&G.push(s.createObjectLiteralExpression([Q])),e.singleOrUndefined(G)||D().createAssignHelper(G)}function q(b){return e.visitNode(b.expression,k,e.isExpression)}function R(b){var Q=De(b),G=K(b.initializer);return s.createPropertyAssignment(Q,G)}function K(b){if(b===void 0)return s.createTrue();if(b.kind===10){var Q=b.singleQuote!==void 0?b.singleQuote:!e.isStringDoubleQuoted(b,W),G=s.createStringLiteral(J(b.text)||b.text,Q);return e.setTextRange(G,b)}return b.kind===291?b.expression===void 0?s.createTrue():e.visitNode(b.expression,k,e.isExpression):e.isJsxElement(b)?B(b,!1):e.isJsxSelfClosingElement(b)?F(b,!1):e.isJsxFragment(b)?z(b,!1):e.Debug.failBadSyntaxKind(b)}function I(b){var Q=he(b.text);return Q===void 0?void 0:s.createStringLiteral(Q)}function he(b){for(var Q,G=0,ae=-1,Te=0;Te<b.length;Te++){var Ne=b.charCodeAt(Te);e.isLineBreak(Ne)?(G!==-1&&ae!==-1&&(Q=le(Q,b.substr(G,ae-G+1))),G=-1):e.isWhiteSpaceSingleLine(Ne)||(ae=Te,G===-1&&(G=Te))}return G!==-1?le(Q,b.substr(G)):Q}function le(b,Q){var G=ee(Q);return b===void 0?G:b+" "+G}function ee(b){return b.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(Q,G,ae,Te,Ne,we,nr){if(Ne)return e.utf16EncodeAsString(parseInt(Ne,10));if(we)return e.utf16EncodeAsString(parseInt(we,16));var tr=P.get(nr);return tr?e.utf16EncodeAsString(tr):Q})}function J(b){var Q=ee(b);return Q===b?void 0:Q}function de(b){if(b.kind===281)return de(b.openingElement);var Q=b.tagName;return e.isIdentifier(Q)&&e.isIntrinsicJsxName(Q.escapedText)?s.createStringLiteral(e.idText(Q)):e.createExpressionFromEntityName(s,Q)}function De(b){var Q=b.name,G=e.idText(Q);return/^[A-Za-z_]\w*$/.test(G)?Q:s.createStringLiteral(G)}function N(b){var Q=e.visitNode(b.expression,k,e.isExpression);return b.dotDotDotToken?s.createSpreadElement(Q):Q}}e.transformJsx=c;var P=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))})(h||(h={}));var h;(function(e){function c(P){var T=P.factory,s=P.hoistVariableDeclaration;return e.chainBundle(P,D);function D(S){return S.isDeclarationFile?S:e.visitEachChild(S,O,P)}function O(S){if(!(S.transformFlags&512))return S;switch(S.kind){case 223:return W(S);default:return e.visitEachChild(S,O,P)}}function W(S){switch(S.operatorToken.kind){case 67:return E(S);case 42:return v(S);default:return e.visitEachChild(S,O,P)}}function E(S){var te,Y,Z=e.visitNode(S.left,O,e.isExpression),ce=e.visitNode(S.right,O,e.isExpression);if(e.isElementAccessExpression(Z)){var k=T.createTempVariable(s),X=T.createTempVariable(s);te=e.setTextRange(T.createElementAccessExpression(e.setTextRange(T.createAssignment(k,Z.expression),Z.expression),e.setTextRange(T.createAssignment(X,Z.argumentExpression),Z.argumentExpression)),Z),Y=e.setTextRange(T.createElementAccessExpression(k,X),Z)}else if(e.isPropertyAccessExpression(Z)){var k=T.createTempVariable(s);te=e.setTextRange(T.createPropertyAccessExpression(e.setTextRange(T.createAssignment(k,Z.expression),Z.expression),Z.name),Z),Y=e.setTextRange(T.createPropertyAccessExpression(k,Z.name),Z)}else te=Z,Y=Z;return e.setTextRange(T.createAssignment(te,e.setTextRange(T.createGlobalMethodCall("Math","pow",[Y,ce]),S)),S)}function v(S){var te=e.visitNode(S.left,O,e.isExpression),Y=e.visitNode(S.right,O,e.isExpression);return e.setTextRange(T.createGlobalMethodCall("Math","pow",[te,Y]),S)}}e.transformES2016=c})(h||(h={}));var h;(function(e){var c;(function(v){v[v.CapturedThis=1]="CapturedThis",v[v.BlockScopedBindings=2]="BlockScopedBindings"})(c||(c={}));var P;(function(v){v[v.Body=1]="Body",v[v.Initializer=2]="Initializer"})(P||(P={}));var T;(function(v){v[v.ToOriginal=0]="ToOriginal",v[v.ToOutParameter=1]="ToOutParameter"})(T||(T={}));var s;(function(v){v[v.Break=2]="Break",v[v.Continue=4]="Continue",v[v.Return=8]="Return"})(s||(s={}));var D;(function(v){v[v.None=0]="None",v[v.Function=1]="Function",v[v.ArrowFunction=2]="ArrowFunction",v[v.AsyncFunctionBody=4]="AsyncFunctionBody",v[v.NonStaticClassElement=8]="NonStaticClassElement",v[v.CapturesThis=16]="CapturesThis",v[v.ExportedVariableStatement=32]="ExportedVariableStatement",v[v.TopLevel=64]="TopLevel",v[v.Block=128]="Block",v[v.IterationStatement=256]="IterationStatement",v[v.IterationStatementBlock=512]="IterationStatementBlock",v[v.IterationContainer=1024]="IterationContainer",v[v.ForStatement=2048]="ForStatement",v[v.ForInOrForOfStatement=4096]="ForInOrForOfStatement",v[v.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",v[v.StaticInitializer=16384]="StaticInitializer",v[v.AncestorFactsMask=32767]="AncestorFactsMask",v[v.BlockScopeIncludes=0]="BlockScopeIncludes",v[v.BlockScopeExcludes=7104]="BlockScopeExcludes",v[v.SourceFileIncludes=64]="SourceFileIncludes",v[v.SourceFileExcludes=8064]="SourceFileExcludes",v[v.FunctionIncludes=65]="FunctionIncludes",v[v.FunctionExcludes=32670]="FunctionExcludes",v[v.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",v[v.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",v[v.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",v[v.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",v[v.ConstructorIncludes=73]="ConstructorIncludes",v[v.ConstructorExcludes=32662]="ConstructorExcludes",v[v.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",v[v.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",v[v.ForStatementIncludes=3328]="ForStatementIncludes",v[v.ForStatementExcludes=5056]="ForStatementExcludes",v[v.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",v[v.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",v[v.BlockIncludes=128]="BlockIncludes",v[v.BlockExcludes=6976]="BlockExcludes",v[v.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",v[v.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",v[v.StaticInitializerIncludes=16449]="StaticInitializerIncludes",v[v.StaticInitializerExcludes=32670]="StaticInitializerExcludes",v[v.NewTarget=32768]="NewTarget",v[v.CapturedLexicalThis=65536]="CapturedLexicalThis",v[v.SubtreeFactsMask=-32768]="SubtreeFactsMask",v[v.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",v[v.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(D||(D={}));var O;(function(v){v[v.None=0]="None",v[v.UnpackedSpread=1]="UnpackedSpread",v[v.PackedSpread=2]="PackedSpread"})(O||(O={}));function W(v,S){return{kind:v,expression:S}}function E(v){var S=v.factory,te=v.getEmitHelperFactory,Y=v.startLexicalEnvironment,Z=v.resumeLexicalEnvironment,ce=v.endLexicalEnvironment,k=v.hoistVariableDeclaration,X=v.getCompilerOptions(),A=v.getEmitResolver(),y=v.onSubstituteNode,C=v.onEmitNode;v.onEmitNode=Ws,v.onSubstituteNode=gs;var B,F,z,ge;function Pe(Ye){ge=e.append(ge,S.createVariableDeclaration(Ye))}var fe,_e;return e.chainBundle(v,ne);function ne(Ye){if(Ye.isDeclarationFile)return Ye;B=Ye,F=Ye.text;var lt=he(Ye);return e.addEmitHelpers(lt,v.readEmitHelpers()),B=void 0,F=void 0,ge=void 0,z=0,lt}function oe(Ye,lt){var Ut=z;return z=(z&~Ye|lt)&32767,Ut}function w(Ye,lt,Ut){z=(z&~lt|Ut)&-32768|Ye}function re(Ye){return(z&8192)!==0&&Ye.kind===250&&!Ye.expression}function M(Ye){return Ye.transformFlags&4194304&&(e.isReturnStatement(Ye)||e.isIfStatement(Ye)||e.isWithStatement(Ye)||e.isSwitchStatement(Ye)||e.isCaseBlock(Ye)||e.isCaseClause(Ye)||e.isDefaultClause(Ye)||e.isTryStatement(Ye)||e.isCatchClause(Ye)||e.isLabeledStatement(Ye)||e.isIterationStatement(Ye,!1)||e.isBlock(Ye))}function U(Ye){return(Ye.transformFlags&1024)!==0||fe!==void 0||z&8192&&M(Ye)||e.isIterationStatement(Ye,!1)&&ur(Ye)||(e.getEmitFlags(Ye)&33554432)!==0}function H(Ye){return U(Ye)?I(Ye,!1):Ye}function q(Ye){return U(Ye)?I(Ye,!0):Ye}function R(Ye){if(U(Ye)){var lt=e.getOriginalNode(Ye);if(e.isPropertyDeclaration(lt)&&e.hasStaticModifier(lt)){var Ut=oe(32670,16449),Ve=I(Ye,!1);return w(Ut,98304,0),Ve}return I(Ye,!1)}return Ye}function K(Ye){return Ye.kind===106?bo(!0):H(Ye)}function I(Ye,lt){switch(Ye.kind){case 124:return;case 260:return G(Ye);case 228:return ae(Ye);case 166:return qe(Ye);case 259:return Fr(Ye);case 216:return Rr(Ye);case 215:return zr(Ye);case 257:return ft(Ye);case 79:return b(Ye);case 258:return xr(Ye);case 252:return le(Ye);case 266:return ee(Ye);case 238:return yt(Ye,!1);case 249:case 248:return Q(Ye);case 253:return Ke(Ye);case 243:case 244:return Nt(Ye,void 0);case 245:return Wt(Ye,void 0);case 246:return en(Ye,void 0);case 247:return Ir(Ye,void 0);case 241:return Fe(Ye);case 207:return dr(Ye);case 295:return kt(Ye);case 300:return It(Ye);case 164:return xn(Ye);case 206:return ai(Ye);case 210:return Wi(Ye);case 211:return ma(Ye);case 214:return vr(Ye,lt);case 223:return Le(Ye,lt);case 354:return cr(Ye,lt);case 14:case 15:case 16:case 17:return Ka(Ye);case 10:return rs(Ye);case 8:return ts(Ye);case 212:return En(Ye);case 225:return ca(Ye);case 226:return pi(Ye);case 227:return Do(Ye);case 106:return bo(!1);case 108:return De(Ye);case 233:return Oo(Ye);case 171:return $e(Ye);case 174:case 175:return et(Ye);case 240:return Re(Ye);case 250:return de(Ye);case 219:return N(Ye);default:return e.visitEachChild(Ye,H,v)}}function he(Ye){var lt=oe(8064,64),Ut=[],Ve=[];Y();var yr=S.copyPrologue(Ye.statements,Ut,!1,H);return e.addRange(Ve,e.visitNodes(Ye.statements,H,e.isStatement,yr)),ge&&Ve.push(S.createVariableStatement(void 0,S.createVariableDeclarationList(ge))),S.mergeLexicalEnvironment(Ut,ce()),mr(Ut,Ye),w(lt,0,0),S.updateSourceFile(Ye,e.setTextRange(S.createNodeArray(e.concatenate(Ut,Ve)),Ye.statements))}function le(Ye){if(fe!==void 0){var lt=fe.allowedNonLabeledJumps;fe.allowedNonLabeledJumps|=2;var Ut=e.visitEachChild(Ye,H,v);return fe.allowedNonLabeledJumps=lt,Ut}return e.visitEachChild(Ye,H,v)}function ee(Ye){var lt=oe(7104,0),Ut=e.visitEachChild(Ye,H,v);return w(lt,0,0),Ut}function J(Ye){return e.setOriginalNode(S.createReturnStatement(S.createUniqueName("_this",48)),Ye)}function de(Ye){return fe?(fe.nonLocalJumps|=8,re(Ye)&&(Ye=J(Ye)),S.createReturnStatement(S.createObjectLiteralExpression([S.createPropertyAssignment(S.createIdentifier("value"),Ye.expression?e.visitNode(Ye.expression,H,e.isExpression):S.createVoidZero())]))):re(Ye)?J(Ye):e.visitEachChild(Ye,H,v)}function De(Ye){return z&2&&!(z&16384)&&(z|=65536),fe?z&2?(fe.containsLexicalThis=!0,Ye):fe.thisName||(fe.thisName=S.createUniqueName("this")):Ye}function N(Ye){return e.visitEachChild(Ye,q,v)}function b(Ye){return fe&&A.isArgumentsLocalBinding(Ye)?fe.argumentsName||(fe.argumentsName=S.createUniqueName("arguments")):Ye.hasExtendedUnicodeEscape?e.setOriginalNode(e.setTextRange(S.createIdentifier(e.unescapeLeadingUnderscores(Ye.escapedText)),Ye),Ye):Ye}function Q(Ye){if(fe){var lt=Ye.kind===249?2:4,Ut=Ye.label&&fe.labels&&fe.labels.get(e.idText(Ye.label))||!Ye.label&&fe.allowedNonLabeledJumps&lt;if(!Ut){var Ve=void 0,yr=Ye.label;yr?Ye.kind===249?(Ve="break-".concat(yr.escapedText),hr(fe,!0,e.idText(yr),Ve)):(Ve="continue-".concat(yr.escapedText),hr(fe,!1,e.idText(yr),Ve)):Ye.kind===249?(fe.nonLocalJumps|=2,Ve="break"):(fe.nonLocalJumps|=4,Ve="continue");var Er=S.createStringLiteral(Ve);if(fe.loopOutParameters.length){for(var Wr=fe.loopOutParameters,Ot=void 0,ln=0;ln<Wr.length;ln++){var kn=Tn(Wr[ln],1);ln===0?Ot=kn:Ot=S.createBinaryExpression(Ot,27,kn)}Er=S.createBinaryExpression(Ot,27,Er)}return S.createReturnStatement(Er)}}return e.visitEachChild(Ye,H,v)}function G(Ye){var lt=S.createVariableDeclaration(S.getLocalName(Ye,!0),void 0,void 0,Te(Ye));e.setOriginalNode(lt,Ye);var Ut=[],Ve=S.createVariableStatement(void 0,S.createVariableDeclarationList([lt]));if(e.setOriginalNode(Ve,Ye),e.setTextRange(Ve,Ye),e.startOnNewLine(Ve),Ut.push(Ve),e.hasSyntacticModifier(Ye,1)){var yr=e.hasSyntacticModifier(Ye,1024)?S.createExportDefault(S.getLocalName(Ye)):S.createExternalModuleExport(S.getLocalName(Ye));e.setOriginalNode(yr,Ve),Ut.push(yr)}var Er=e.getEmitFlags(Ye);return Er&4194304||(Ut.push(S.createEndOfDeclarationMarker(Ye)),e.setEmitFlags(Ve,Er|4194304)),e.singleOrMany(Ut)}function ae(Ye){return Te(Ye)}function Te(Ye){Ye.name&&Co();var lt=e.getClassExtendsHeritageElement(Ye),Ut=S.createFunctionExpression(void 0,void 0,void 0,void 0,lt?[S.createParameterDeclaration(void 0,void 0,S.createUniqueName("_super",48))]:[],void 0,Ne(Ye,lt));e.setEmitFlags(Ut,e.getEmitFlags(Ye)&65536|524288);var Ve=S.createPartiallyEmittedExpression(Ut);e.setTextRangeEnd(Ve,Ye.end),e.setEmitFlags(Ve,1536);var yr=S.createPartiallyEmittedExpression(Ve);e.setTextRangeEnd(yr,e.skipTrivia(F,Ye.pos)),e.setEmitFlags(yr,1536);var Er=S.createParenthesizedExpression(S.createCallExpression(yr,void 0,lt?[e.visitNode(lt.expression,H,e.isExpression)]:[]));return e.addSyntheticLeadingComment(Er,3,"* @class "),Er}function Ne(Ye,lt){var Ut=[],Ve=S.getInternalName(Ye),yr=e.isIdentifierANonContextualKeyword(Ve)?S.getGeneratedNameForNode(Ve):Ve;Y(),we(Ut,Ye,lt),nr(Ut,Ye,yr,lt),Ze(Ut,Ye);var Er=e.createTokenRange(e.skipTrivia(F,Ye.members.end),19),Wr=S.createPartiallyEmittedExpression(yr);e.setTextRangeEnd(Wr,Er.end),e.setEmitFlags(Wr,1536);var Ot=S.createReturnStatement(Wr);e.setTextRangePos(Ot,Er.pos),e.setEmitFlags(Ot,1920),Ut.push(Ot),e.insertStatementsAfterStandardPrologue(Ut,ce());var ln=S.createBlock(e.setTextRange(S.createNodeArray(Ut),Ye.members),!0);return e.setEmitFlags(ln,1536),ln}function we(Ye,lt,Ut){Ut&&Ye.push(e.setTextRange(S.createExpressionStatement(te().createExtendsHelper(S.getInternalName(lt))),Ut))}function nr(Ye,lt,Ut,Ve){var yr=fe;fe=void 0;var Er=oe(32662,73),Wr=e.getFirstConstructorWithBody(lt),Ot=ro(Wr,Ve!==void 0),ln=S.createFunctionDeclaration(void 0,void 0,Ut,void 0,tr(Wr,Ot),void 0,He(Wr,lt,Ve,Ot));e.setTextRange(ln,Wr||lt),Ve&&e.setEmitFlags(ln,8),Ye.push(ln),w(Er,98304,0),fe=yr}function tr(Ye,lt){return e.visitParameterList(Ye&&!lt?Ye.parameters:void 0,H,v)||[]}function me(Ye,lt){var Ut=[];Z(),S.mergeLexicalEnvironment(Ut,ce()),lt&&Ut.push(S.createReturnStatement(Ae()));var Ve=S.createNodeArray(Ut);e.setTextRange(Ve,Ye.members);var yr=S.createBlock(Ve,!0);return e.setTextRange(yr,Ye),e.setEmitFlags(yr,1536),yr}function He(Ye,lt,Ut,Ve){var yr=!!Ut&&e.skipOuterExpressions(Ut.expression).kind!==104;if(!Ye)return me(lt,yr);var Er=[],Wr=[];Z();var Ot=e.takeWhile(Ye.body.statements,e.isPrologueDirective),ln=rr(Ye.body.statements,Ot),kn=ln.superCall,Cn=ln.superStatementIndex,_i=Cn===-1?Ot.length:Cn+1,qi=_i;Ve||(qi=S.copyStandardPrologue(Ye.body.statements,Er,qi,!1)),Ve||(qi=S.copyCustomPrologue(Ye.body.statements,Wr,qi,H,void 0));var va;if(Ve?va=Ae():kn&&(va=fn(kn)),va&&(z|=8192),L(Er,Ye),lr(Er,Ye,Ve),e.addRange(Wr,e.visitNodes(Ye.body.statements,H,e.isStatement,qi)),S.mergeLexicalEnvironment(Er,ce()),Oe(Er,Ye,!1),yr||va)if(va&&_i===Ye.body.statements.length&&!(Ye.body.transformFlags&16384)){var Ia=e.cast(e.cast(va,e.isBinaryExpression).left,e.isCallExpression),$a=S.createReturnStatement(va);e.setCommentRange($a,e.getCommentRange(Ia)),e.setEmitFlags(Ia,1536),Wr.push($a)}else Cn<=Ot.length?wr(Wr,Ye,va||Ce()):(wr(Er,Ye,Ce()),va&&Hr(Wr,va)),je(Ye.body)||Wr.push(S.createReturnStatement(S.createUniqueName("_this",48)));else mr(Er,Ye);var ws=S.createBlock(e.setTextRange(S.createNodeArray(t(t(t(t([],Ot,!0),Er,!0),Cn<=Ot.length?e.emptyArray:e.visitNodes(Ye.body.statements,H,e.isStatement,Ot.length,Cn-Ot.length),!0),Wr,!0)),Ye.body.statements),!0);return e.setTextRange(ws,Ye.body),ws}function rr(Ye,lt){for(var Ut=lt.length;Ut<Ye.length;Ut+=1){var Ve=e.getSuperCallFromStatement(Ye[Ut]);if(Ve)return{superCall:Ve,superStatementIndex:Ut}}return{superStatementIndex:-1}}function je(Ye){if(Ye.kind===250)return!0;if(Ye.kind===242){var lt=Ye;if(lt.elseStatement)return je(lt.thenStatement)&&je(lt.elseStatement)}else if(Ye.kind===238){var Ut=e.lastOrUndefined(Ye.statements);if(Ut&&je(Ut))return!0}return!1}function Ce(){return e.setEmitFlags(S.createThis(),4)}function Ae(){return S.createLogicalOr(S.createLogicalAnd(S.createStrictInequality(S.createUniqueName("_super",48),S.createNull()),S.createFunctionApplyCall(S.createUniqueName("_super",48),Ce(),S.createIdentifier("arguments"))),Ce())}function qe(Ye){if(!Ye.dotDotDotToken)return e.isBindingPattern(Ye.name)?e.setOriginalNode(e.setTextRange(S.createParameterDeclaration(void 0,void 0,S.getGeneratedNameForNode(Ye),void 0,void 0,void 0),Ye),Ye):Ye.initializer?e.setOriginalNode(e.setTextRange(S.createParameterDeclaration(void 0,void 0,Ye.name,void 0,void 0,void 0),Ye),Ye):Ye}function xe(Ye){return Ye.initializer!==void 0||e.isBindingPattern(Ye.name)}function L(Ye,lt){if(!e.some(lt.parameters,xe))return!1;for(var Ut=!1,Ve=0,yr=lt.parameters;Ve<yr.length;Ve++){var Er=yr[Ve],Wr=Er.name,Ot=Er.initializer,ln=Er.dotDotDotToken;ln||(e.isBindingPattern(Wr)?Ut=ue(Ye,Er,Wr,Ot)||Ut:Ot&&(Ue(Ye,Er,Wr,Ot),Ut=!0))}return Ut}function ue(Ye,lt,Ut,Ve){return Ut.elements.length>0?(e.insertStatementAfterCustomPrologue(Ye,e.setEmitFlags(S.createVariableStatement(void 0,S.createVariableDeclarationList(e.flattenDestructuringBinding(lt,H,v,0,S.getGeneratedNameForNode(lt)))),1048576)),!0):Ve?(e.insertStatementAfterCustomPrologue(Ye,e.setEmitFlags(S.createExpressionStatement(S.createAssignment(S.getGeneratedNameForNode(lt),e.visitNode(Ve,H,e.isExpression))),1048576)),!0):!1}function Ue(Ye,lt,Ut,Ve){Ve=e.visitNode(Ve,H,e.isExpression);var yr=S.createIfStatement(S.createTypeCheck(S.cloneNode(Ut),"undefined"),e.setEmitFlags(e.setTextRange(S.createBlock([S.createExpressionStatement(e.setEmitFlags(e.setTextRange(S.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(S.cloneNode(Ut),Ut),Ut.parent),48),e.setEmitFlags(Ve,48|e.getEmitFlags(Ve)|1536)),lt),1536))]),lt),1953));e.startOnNewLine(yr),e.setTextRange(yr,lt),e.setEmitFlags(yr,1050528),e.insertStatementAfterCustomPrologue(Ye,yr)}function Je(Ye,lt){return!!(Ye&&Ye.dotDotDotToken&&!lt)}function lr(Ye,lt,Ut){var Ve=[],yr=e.lastOrUndefined(lt.parameters);if(!Je(yr,Ut))return!1;var Er=yr.name.kind===79?e.setParent(e.setTextRange(S.cloneNode(yr.name),yr.name),yr.name.parent):S.createTempVariable(void 0);e.setEmitFlags(Er,48);var Wr=yr.name.kind===79?S.cloneNode(yr.name):Er,Ot=lt.parameters.length-1,ln=S.createLoopVariable();Ve.push(e.setEmitFlags(e.setTextRange(S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(Er,void 0,void 0,S.createArrayLiteralExpression([]))])),yr),1048576));var kn=S.createForStatement(e.setTextRange(S.createVariableDeclarationList([S.createVariableDeclaration(ln,void 0,void 0,S.createNumericLiteral(Ot))]),yr),e.setTextRange(S.createLessThan(ln,S.createPropertyAccessExpression(S.createIdentifier("arguments"),"length")),yr),e.setTextRange(S.createPostfixIncrement(ln),yr),S.createBlock([e.startOnNewLine(e.setTextRange(S.createExpressionStatement(S.createAssignment(S.createElementAccessExpression(Wr,Ot===0?ln:S.createSubtract(ln,S.createNumericLiteral(Ot))),S.createElementAccessExpression(S.createIdentifier("arguments"),ln))),yr))]));return e.setEmitFlags(kn,1048576),e.startOnNewLine(kn),Ve.push(kn),yr.name.kind!==79&&Ve.push(e.setEmitFlags(e.setTextRange(S.createVariableStatement(void 0,S.createVariableDeclarationList(e.flattenDestructuringBinding(yr,H,v,0,Wr))),yr),1048576)),e.insertStatementsAfterCustomPrologue(Ye,Ve),!0}function mr(Ye,lt){return z&65536&&lt.kind!==216?(wr(Ye,lt,S.createThis()),!0):!1}function Hr(Ye,lt){qs();var Ut=S.createExpressionStatement(S.createBinaryExpression(S.createThis(),63,lt));e.insertStatementAfterCustomPrologue(Ye,Ut),e.setCommentRange(Ut,e.getOriginalNode(lt).parent)}function wr(Ye,lt,Ut){qs();var Ve=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(S.createUniqueName("_this",48),void 0,void 0,Ut)]));e.setEmitFlags(Ve,1050112),e.setSourceMapRange(Ve,lt),e.insertStatementAfterCustomPrologue(Ye,Ve)}function Oe(Ye,lt,Ut){if(z&32768){var Ve=void 0;switch(lt.kind){case 216:return Ye;case 171:case 174:case 175:Ve=S.createVoidZero();break;case 173:Ve=S.createPropertyAccessExpression(e.setEmitFlags(S.createThis(),4),"constructor");break;case 259:case 215:Ve=S.createConditionalExpression(S.createLogicalAnd(e.setEmitFlags(S.createThis(),4),S.createBinaryExpression(e.setEmitFlags(S.createThis(),4),102,S.getLocalName(lt))),void 0,S.createPropertyAccessExpression(e.setEmitFlags(S.createThis(),4),"constructor"),void 0,S.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(lt)}var yr=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(S.createUniqueName("_newTarget",48),void 0,void 0,Ve)]));e.setEmitFlags(yr,1050112),Ut&&(Ye=Ye.slice()),e.insertStatementAfterCustomPrologue(Ye,yr)}return Ye}function Ze(Ye,lt){for(var Ut=0,Ve=lt.members;Ut<Ve.length;Ut++){var yr=Ve[Ut];switch(yr.kind){case 237:Ye.push(tt(yr));break;case 171:Ye.push(ut(ka(lt,yr),yr,lt));break;case 174:case 175:var Er=e.getAllAccessorDeclarations(lt.members,yr);yr===Er.firstAccessor&&Ye.push(or(ka(lt,yr),Er,lt));break;case 173:case 172:break;default:e.Debug.failBadSyntaxKind(yr,B&&B.fileName);break}}}function tt(Ye){return e.setTextRange(S.createEmptyStatement(),Ye)}function ut(Ye,lt,Ut){var Ve=e.getCommentRange(lt),yr=e.getSourceMapRange(lt),Er=_t(lt,lt,void 0,Ut),Wr=e.visitNode(lt.name,H,e.isPropertyName),Ot;if(!e.isPrivateIdentifier(Wr)&&e.getUseDefineForClassFields(v.getCompilerOptions())){var ln=e.isComputedPropertyName(Wr)?Wr.expression:e.isIdentifier(Wr)?S.createStringLiteral(e.unescapeLeadingUnderscores(Wr.escapedText)):Wr;Ot=S.createObjectDefinePropertyCall(Ye,ln,S.createPropertyDescriptor({value:Er,enumerable:!1,writable:!0,configurable:!0}))}else{var kn=e.createMemberAccessForPropertyName(S,Ye,Wr,lt.name);Ot=S.createAssignment(kn,Er)}e.setEmitFlags(Er,1536),e.setSourceMapRange(Er,yr);var Cn=e.setTextRange(S.createExpressionStatement(Ot),lt);return e.setOriginalNode(Cn,lt),e.setCommentRange(Cn,Ve),e.setEmitFlags(Cn,48),Cn}function or(Ye,lt,Ut){var Ve=S.createExpressionStatement(qr(Ye,lt,Ut,!1));return e.setEmitFlags(Ve,1536),e.setSourceMapRange(Ve,e.getSourceMapRange(lt.firstAccessor)),Ve}function qr(Ye,lt,Ut,Ve){var yr=lt.firstAccessor,Er=lt.getAccessor,Wr=lt.setAccessor,Ot=e.setParent(e.setTextRange(S.cloneNode(Ye),Ye),Ye.parent);e.setEmitFlags(Ot,1568),e.setSourceMapRange(Ot,yr.name);var ln=e.visitNode(yr.name,H,e.isPropertyName);if(e.isPrivateIdentifier(ln))return e.Debug.failBadSyntaxKind(ln,"Encountered unhandled private identifier while transforming ES2015.");var kn=e.createExpressionForPropertyName(S,ln);e.setEmitFlags(kn,1552),e.setSourceMapRange(kn,yr.name);var Cn=[];if(Er){var _i=_t(Er,void 0,void 0,Ut);e.setSourceMapRange(_i,e.getSourceMapRange(Er)),e.setEmitFlags(_i,512);var qi=S.createPropertyAssignment("get",_i);e.setCommentRange(qi,e.getCommentRange(Er)),Cn.push(qi)}if(Wr){var va=_t(Wr,void 0,void 0,Ut);e.setSourceMapRange(va,e.getSourceMapRange(Wr)),e.setEmitFlags(va,512);var Ia=S.createPropertyAssignment("set",va);e.setCommentRange(Ia,e.getCommentRange(Wr)),Cn.push(Ia)}Cn.push(S.createPropertyAssignment("enumerable",Er||Wr?S.createFalse():S.createTrue()),S.createPropertyAssignment("configurable",S.createTrue()));var $a=S.createCallExpression(S.createPropertyAccessExpression(S.createIdentifier("Object"),"defineProperty"),void 0,[Ot,kn,S.createObjectLiteralExpression(Cn,!0)]);return Ve&&e.startOnNewLine($a),$a}function Rr(Ye){Ye.transformFlags&16384&&!(z&16384)&&(z|=65536);var lt=fe;fe=void 0;var Ut=oe(15232,66),Ve=S.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(Ye.parameters,H,v),void 0,Ct(Ye));return e.setTextRange(Ve,Ye),e.setOriginalNode(Ve,Ye),e.setEmitFlags(Ve,8),w(Ut,0,0),fe=lt,Ve}function zr(Ye){var lt=e.getEmitFlags(Ye)&262144?oe(32662,69):oe(32670,65),Ut=fe;fe=void 0;var Ve=e.visitParameterList(Ye.parameters,H,v),yr=Ct(Ye),Er=z&32768?S.getLocalName(Ye):Ye.name;return w(lt,98304,0),fe=Ut,S.updateFunctionExpression(Ye,void 0,Ye.asteriskToken,Er,void 0,Ve,void 0,yr)}function Fr(Ye){var lt=fe;fe=void 0;var Ut=oe(32670,65),Ve=e.visitParameterList(Ye.parameters,H,v),yr=Ct(Ye),Er=z&32768?S.getLocalName(Ye):Ye.name;return w(Ut,98304,0),fe=lt,S.updateFunctionDeclaration(Ye,e.visitNodes(Ye.modifiers,H,e.isModifier),Ye.asteriskToken,Er,void 0,Ve,void 0,yr)}function _t(Ye,lt,Ut,Ve){var yr=fe;fe=void 0;var Er=Ve&&e.isClassLike(Ve)&&!e.isStatic(Ye)?oe(32670,73):oe(32670,65),Wr=e.visitParameterList(Ye.parameters,H,v),Ot=Ct(Ye);return z&32768&&!Ut&&(Ye.kind===259||Ye.kind===215)&&(Ut=S.getGeneratedNameForNode(Ye)),w(Er,98304,0),fe=yr,e.setOriginalNode(e.setTextRange(S.createFunctionExpression(void 0,Ye.asteriskToken,Ut,void 0,Wr,void 0,Ot),lt),Ye)}function Ct(Ye){var lt=!1,Ut=!1,Ve,yr,Er=[],Wr=[],Ot=Ye.body,ln;if(Z(),e.isBlock(Ot)&&(ln=S.copyStandardPrologue(Ot.statements,Er,0,!1),ln=S.copyCustomPrologue(Ot.statements,Wr,ln,H,e.isHoistedFunction),ln=S.copyCustomPrologue(Ot.statements,Wr,ln,H,e.isHoistedVariableStatement)),lt=L(Wr,Ye)||lt,lt=lr(Wr,Ye,!1)||lt,e.isBlock(Ot))ln=S.copyCustomPrologue(Ot.statements,Wr,ln,H),Ve=Ot.statements,e.addRange(Wr,e.visitNodes(Ot.statements,H,e.isStatement,ln)),!lt&&Ot.multiLine&&(lt=!0);else{e.Debug.assert(Ye.kind===216),Ve=e.moveRangeEnd(Ot,-1);var kn=Ye.equalsGreaterThanToken;!e.nodeIsSynthesized(kn)&&!e.nodeIsSynthesized(Ot)&&(e.rangeEndIsOnSameLineAsRangeStart(kn,Ot,B)?Ut=!0:lt=!0);var Cn=e.visitNode(Ot,H,e.isExpression),_i=S.createReturnStatement(Cn);e.setTextRange(_i,Ot),e.moveSyntheticComments(_i,Ot),e.setEmitFlags(_i,1440),Wr.push(_i),yr=Ot}if(S.mergeLexicalEnvironment(Er,ce()),Oe(Er,Ye,!1),mr(Er,Ye),e.some(Er)&&(lt=!0),Wr.unshift.apply(Wr,Er),e.isBlock(Ot)&&e.arrayIsEqualTo(Wr,Ot.statements))return Ot;var qi=S.createBlock(e.setTextRange(S.createNodeArray(Wr),Ve),lt);return e.setTextRange(qi,Ye.body),!lt&&Ut&&e.setEmitFlags(qi,1),yr&&e.setTokenSourceMapRange(qi,19,yr),e.setOriginalNode(qi,Ye.body),qi}function yt(Ye,lt){if(lt)return e.visitEachChild(Ye,H,v);var Ut=z&256?oe(7104,512):oe(6976,128),Ve=e.visitEachChild(Ye,H,v);return w(Ut,0,0),Ve}function Fe(Ye){return e.visitEachChild(Ye,q,v)}function vr(Ye,lt){return e.visitEachChild(Ye,lt?q:H,v)}function Le(Ye,lt){return e.isDestructuringAssignment(Ye)?e.flattenDestructuringAssignment(Ye,H,v,0,!lt):Ye.operatorToken.kind===27?S.updateBinaryExpression(Ye,e.visitNode(Ye.left,q,e.isExpression),Ye.operatorToken,e.visitNode(Ye.right,lt?q:H,e.isExpression)):e.visitEachChild(Ye,H,v)}function cr(Ye,lt){if(lt)return e.visitEachChild(Ye,q,v);for(var Ut,Ve=0;Ve<Ye.elements.length;Ve++){var yr=Ye.elements[Ve],Er=e.visitNode(yr,Ve<Ye.elements.length-1?q:H,e.isExpression);(Ut||Er!==yr)&&(Ut||(Ut=Ye.elements.slice(0,Ve)),Ut.push(Er))}var Wr=Ut?e.setTextRange(S.createNodeArray(Ut),Ye.elements):Ye.elements;return S.updateCommaListExpression(Ye,Wr)}function $r(Ye){return Ye.declarationList.declarations.length===1&&!!Ye.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(Ye.declarationList.declarations[0].initializer)&33554432)}function Re(Ye){var lt=oe(0,e.hasSyntacticModifier(Ye,1)?32:0),Ut;if(fe&&!(Ye.declarationList.flags&3)&&!$r(Ye)){for(var Ve=void 0,yr=0,Er=Ye.declarationList.declarations;yr<Er.length;yr++){var Wr=Er[yr];if(Ar(fe,Wr),Wr.initializer){var Ot=void 0;e.isBindingPattern(Wr.name)?Ot=e.flattenDestructuringAssignment(Wr,H,v,0):(Ot=S.createBinaryExpression(Wr.name,63,e.visitNode(Wr.initializer,H,e.isExpression)),e.setTextRange(Ot,Wr)),Ve=e.append(Ve,Ot)}}Ve?Ut=e.setTextRange(S.createExpressionStatement(S.inlineExpressions(Ve)),Ye):Ut=void 0}else Ut=e.visitEachChild(Ye,H,v);return w(lt,0,0),Ut}function xr(Ye){if(Ye.flags&3||Ye.transformFlags&524288){Ye.flags&3&&Co();var lt=e.flatMap(Ye.declarations,Ye.flags&1?ct:ft),Ut=S.createVariableDeclarationList(lt);return e.setOriginalNode(Ut,Ye),e.setTextRange(Ut,Ye),e.setCommentRange(Ut,Ye),Ye.transformFlags&524288&&(e.isBindingPattern(Ye.declarations[0].name)||e.isBindingPattern(e.last(Ye.declarations).name))&&e.setSourceMapRange(Ut,Br(lt)),Ut}return e.visitEachChild(Ye,H,v)}function Br(Ye){for(var lt=-1,Ut=-1,Ve=0,yr=Ye;Ve<yr.length;Ve++){var Er=yr[Ve];lt=lt===-1?Er.pos:Er.pos===-1?lt:Math.min(lt,Er.pos),Ut=Math.max(Ut,Er.end)}return e.createRange(lt,Ut)}function Qr(Ye){var lt=A.getNodeCheckFlags(Ye),Ut=lt&262144,Ve=lt&524288,yr=(z&64)!==0||Ut&&Ve&&(z&512)!==0,Er=!yr&&(z&4096)===0&&(!A.isDeclarationWithCollidingName(Ye)||Ve&&!Ut&&(z&6144)===0);return Er}function ct(Ye){var lt=Ye.name;return e.isBindingPattern(lt)?ft(Ye):!Ye.initializer&&Qr(Ye)?S.updateVariableDeclaration(Ye,Ye.name,void 0,void 0,S.createVoidZero()):e.visitEachChild(Ye,H,v)}function ft(Ye){var lt=oe(32,0),Ut;return e.isBindingPattern(Ye.name)?Ut=e.flattenDestructuringBinding(Ye,H,v,0,void 0,(lt&32)!==0):Ut=e.visitEachChild(Ye,H,v),w(lt,0,0),Ut}function Dt(Ye){fe.labels.set(e.idText(Ye.label),!0)}function Me(Ye){fe.labels.set(e.idText(Ye.label),!1)}function Ke(Ye){fe&&!fe.labels&&(fe.labels=new e.Map);var lt=e.unwrapInnermostStatementOfLabel(Ye,fe&&Dt);return e.isIterationStatement(lt,!1)?Vr(lt,Ye):S.restoreEnclosingLabel(e.visitNode(lt,H,e.isStatement,S.liftToBlock),Ye,fe&&Me)}function Vr(Ye,lt){switch(Ye.kind){case 243:case 244:return Nt(Ye,lt);case 245:return Wt(Ye,lt);case 246:return en(Ye,lt);case 247:return Ir(Ye,lt)}}function Yr(Ye,lt,Ut,Ve,yr){var Er=oe(Ye,lt),Wr=rt(Ut,Ve,Er,yr);return w(Er,0,0),Wr}function Nt(Ye,lt){return Yr(0,1280,Ye,lt)}function Wt(Ye,lt){return Yr(5056,3328,Ye,lt)}function sn(Ye){return S.updateForStatement(Ye,e.visitNode(Ye.initializer,q,e.isForInitializer),e.visitNode(Ye.condition,H,e.isExpression),e.visitNode(Ye.incrementor,q,e.isExpression),e.visitNode(Ye.statement,H,e.isStatement,S.liftToBlock))}function en(Ye,lt){return Yr(3008,5376,Ye,lt)}function Ir(Ye,lt){return Yr(3008,5376,Ye,lt,X.downlevelIteration?We:Ie)}function Jr(Ye,lt,Ut){var Ve=[],yr=Ye.initializer;if(e.isVariableDeclarationList(yr)){Ye.initializer.flags&3&&Co();var Er=e.firstOrUndefined(yr.declarations);if(Er&&e.isBindingPattern(Er.name)){var Wr=e.flattenDestructuringBinding(Er,H,v,0,lt),Ot=e.setTextRange(S.createVariableDeclarationList(Wr),Ye.initializer);e.setOriginalNode(Ot,Ye.initializer),e.setSourceMapRange(Ot,e.createRange(Wr[0].pos,e.last(Wr).end)),Ve.push(S.createVariableStatement(void 0,Ot))}else Ve.push(e.setTextRange(S.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(S.createVariableDeclarationList([S.createVariableDeclaration(Er?Er.name:S.createTempVariable(void 0),void 0,void 0,lt)]),e.moveRangePos(yr,-1)),yr)),e.moveRangeEnd(yr,-1)))}else{var ln=S.createAssignment(yr,lt);e.isDestructuringAssignment(ln)?Ve.push(S.createExpressionStatement(Le(ln,!0))):(e.setTextRangeEnd(ln,yr.end),Ve.push(e.setTextRange(S.createExpressionStatement(e.visitNode(ln,H,e.isExpression)),e.moveRangeEnd(yr,-1))))}if(Ut)return ye(e.addRange(Ve,Ut));var kn=e.visitNode(Ye.statement,H,e.isStatement,S.liftToBlock);return e.isBlock(kn)?S.updateBlock(kn,e.setTextRange(S.createNodeArray(e.concatenate(Ve,kn.statements)),kn.statements)):(Ve.push(kn),ye(Ve))}function ye(Ye){return e.setEmitFlags(S.createBlock(S.createNodeArray(Ye),!0),432)}function Ie(Ye,lt,Ut){var Ve=e.visitNode(Ye.expression,H,e.isExpression),yr=S.createLoopVariable(),Er=e.isIdentifier(Ve)?S.getGeneratedNameForNode(Ve):S.createTempVariable(void 0);e.setEmitFlags(Ve,48|e.getEmitFlags(Ve));var Wr=e.setTextRange(S.createForStatement(e.setEmitFlags(e.setTextRange(S.createVariableDeclarationList([e.setTextRange(S.createVariableDeclaration(yr,void 0,void 0,S.createNumericLiteral(0)),e.moveRangePos(Ye.expression,-1)),e.setTextRange(S.createVariableDeclaration(Er,void 0,void 0,Ve),Ye.expression)]),Ye.expression),2097152),e.setTextRange(S.createLessThan(yr,S.createPropertyAccessExpression(Er,"length")),Ye.expression),e.setTextRange(S.createPostfixIncrement(yr),Ye.expression),Jr(Ye,S.createElementAccessExpression(Er,yr),Ut)),Ye);return e.setEmitFlags(Wr,256),e.setTextRange(Wr,Ye),S.restoreEnclosingLabel(Wr,lt,fe&&Me)}function We(Ye,lt,Ut,Ve){var yr=e.visitNode(Ye.expression,H,e.isExpression),Er=e.isIdentifier(yr)?S.getGeneratedNameForNode(yr):S.createTempVariable(void 0),Wr=e.isIdentifier(yr)?S.getGeneratedNameForNode(Er):S.createTempVariable(void 0),Ot=S.createUniqueName("e"),ln=S.getGeneratedNameForNode(Ot),kn=S.createTempVariable(void 0),Cn=e.setTextRange(te().createValuesHelper(yr),Ye.expression),_i=S.createCallExpression(S.createPropertyAccessExpression(Er,"next"),void 0,[]);k(Ot),k(kn);var qi=Ve&1024?S.inlineExpressions([S.createAssignment(Ot,S.createVoidZero()),Cn]):Cn,va=e.setEmitFlags(e.setTextRange(S.createForStatement(e.setEmitFlags(e.setTextRange(S.createVariableDeclarationList([e.setTextRange(S.createVariableDeclaration(Er,void 0,void 0,qi),Ye.expression),S.createVariableDeclaration(Wr,void 0,void 0,_i)]),Ye.expression),2097152),S.createLogicalNot(S.createPropertyAccessExpression(Wr,"done")),S.createAssignment(Wr,_i),Jr(Ye,S.createPropertyAccessExpression(Wr,"value"),Ut)),Ye),256);return S.createTryStatement(S.createBlock([S.restoreEnclosingLabel(va,lt,fe&&Me)]),S.createCatchClause(S.createVariableDeclaration(ln),e.setEmitFlags(S.createBlock([S.createExpressionStatement(S.createAssignment(Ot,S.createObjectLiteralExpression([S.createPropertyAssignment("error",ln)])))]),1)),S.createBlock([S.createTryStatement(S.createBlock([e.setEmitFlags(S.createIfStatement(S.createLogicalAnd(S.createLogicalAnd(Wr,S.createLogicalNot(S.createPropertyAccessExpression(Wr,"done"))),S.createAssignment(kn,S.createPropertyAccessExpression(Er,"return"))),S.createExpressionStatement(S.createFunctionCallCall(kn,Er,[]))),1)]),void 0,e.setEmitFlags(S.createBlock([e.setEmitFlags(S.createIfStatement(Ot,S.createThrowStatement(S.createPropertyAccessExpression(Ot,"error"))),1)]),1))]))}function dr(Ye){for(var lt=Ye.properties,Ut=-1,Ve=!1,yr=0;yr<lt.length;yr++){var Er=lt[yr];if(Er.transformFlags&1048576&&z&4||(Ve=e.Debug.checkDefined(Er.name).kind===164)){Ut=yr;break}}if(Ut<0)return e.visitEachChild(Ye,H,v);var Wr=S.createTempVariable(k),Ot=[],ln=S.createAssignment(Wr,e.setEmitFlags(S.createObjectLiteralExpression(e.visitNodes(lt,H,e.isObjectLiteralElementLike,0,Ut),Ye.multiLine),Ve?65536:0));return Ye.multiLine&&e.startOnNewLine(ln),Ot.push(ln),Qt(Ot,Ye,Wr,Ut),Ot.push(Ye.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(S.cloneNode(Wr),Wr),Wr.parent)):Wr),S.inlineExpressions(Ot)}function ar(Ye){return(A.getNodeCheckFlags(Ye)&131072)!==0}function Sr(Ye){return e.isForStatement(Ye)&&!!Ye.initializer&&ar(Ye.initializer)}function Or(Ye){return e.isForStatement(Ye)&&!!Ye.condition&&ar(Ye.condition)}function Ge(Ye){return e.isForStatement(Ye)&&!!Ye.incrementor&&ar(Ye.incrementor)}function ur(Ye){return Lr(Ye)||Sr(Ye)}function Lr(Ye){return(A.getNodeCheckFlags(Ye)&65536)!==0}function Ar(Ye,lt){Ye.hoistedLocalVariables||(Ye.hoistedLocalVariables=[]),Ut(lt.name);function Ut(Ve){if(Ve.kind===79)Ye.hoistedLocalVariables.push(Ve);else for(var yr=0,Er=Ve.elements;yr<Er.length;yr++){var Wr=Er[yr];e.isOmittedExpression(Wr)||Ut(Wr.name)}}}function rt(Ye,lt,Ut,Ve){if(!ur(Ye)){var yr=void 0;fe&&(yr=fe.allowedNonLabeledJumps,fe.allowedNonLabeledJumps=6);var Er=Ve?Ve(Ye,lt,void 0,Ut):S.restoreEnclosingLabel(e.isForStatement(Ye)?sn(Ye):e.visitEachChild(Ye,H,v),lt,fe&&Me);return fe&&(fe.allowedNonLabeledJumps=yr),Er}var Wr=Yt(Ye),Ot=[],ln=fe;fe=Wr;var kn=Sr(Ye)?Bn(Ye,Wr):void 0,Cn=Lr(Ye)?yn(Ye,Wr,ln):void 0;fe=ln,kn&&Ot.push(kn.functionDeclaration),Cn&&Ot.push(Cn.functionDeclaration),un(Ot,Wr,ln),kn&&Ot.push(ii(kn.functionName,kn.containsYield));var _i;if(Cn)if(Ve)_i=Ve(Ye,lt,Cn.part,Ut);else{var qi=Et(Ye,kn,S.createBlock(Cn.part,!0));_i=S.restoreEnclosingLabel(qi,lt,fe&&Me)}else{var va=Et(Ye,kn,e.visitNode(Ye.statement,H,e.isStatement,S.liftToBlock));_i=S.restoreEnclosingLabel(va,lt,fe&&Me)}return Ot.push(_i),Ot}function Et(Ye,lt,Ut){switch(Ye.kind){case 245:return St(Ye,lt,Ut);case 246:return pt(Ye,Ut);case 247:return Pt(Ye,Ut);case 243:return Ft(Ye,Ut);case 244:return ht(Ye,Ut);default:return e.Debug.failBadSyntaxKind(Ye,"IterationStatement expected")}}function St(Ye,lt,Ut){var Ve=Ye.condition&&ar(Ye.condition),yr=Ve||Ye.incrementor&&ar(Ye.incrementor);return S.updateForStatement(Ye,e.visitNode(lt?lt.part:Ye.initializer,q,e.isForInitializer),e.visitNode(Ve?void 0:Ye.condition,H,e.isExpression),e.visitNode(yr?void 0:Ye.incrementor,q,e.isExpression),Ut)}function Pt(Ye,lt){return S.updateForOfStatement(Ye,void 0,e.visitNode(Ye.initializer,H,e.isForInitializer),e.visitNode(Ye.expression,H,e.isExpression),lt)}function pt(Ye,lt){return S.updateForInStatement(Ye,e.visitNode(Ye.initializer,H,e.isForInitializer),e.visitNode(Ye.expression,H,e.isExpression),lt)}function Ft(Ye,lt){return S.updateDoStatement(Ye,lt,e.visitNode(Ye.expression,H,e.isExpression))}function ht(Ye,lt){return S.updateWhileStatement(Ye,e.visitNode(Ye.expression,H,e.isExpression),lt)}function Yt(Ye){var lt;switch(Ye.kind){case 245:case 246:case 247:var Ut=Ye.initializer;Ut&&Ut.kind===258&&(lt=Ut);break}var Ve=[],yr=[];if(lt&&e.getCombinedNodeFlags(lt)&3)for(var Er=Sr(Ye)||Or(Ye)||Ge(Ye),Wr=0,Ot=lt.declarations;Wr<Ot.length;Wr++){var ln=Ot[Wr];Qe(Ye,ln,Ve,yr,Er)}var kn={loopParameters:Ve,loopOutParameters:yr};return fe&&(fe.argumentsName&&(kn.argumentsName=fe.argumentsName),fe.thisName&&(kn.thisName=fe.thisName),fe.hoistedLocalVariables&&(kn.hoistedLocalVariables=fe.hoistedLocalVariables)),kn}function un(Ye,lt,Ut){var Ve;if(lt.argumentsName&&(Ut?Ut.argumentsName=lt.argumentsName:(Ve||(Ve=[])).push(S.createVariableDeclaration(lt.argumentsName,void 0,void 0,S.createIdentifier("arguments")))),lt.thisName&&(Ut?Ut.thisName=lt.thisName:(Ve||(Ve=[])).push(S.createVariableDeclaration(lt.thisName,void 0,void 0,S.createIdentifier("this")))),lt.hoistedLocalVariables)if(Ut)Ut.hoistedLocalVariables=lt.hoistedLocalVariables;else{Ve||(Ve=[]);for(var yr=0,Er=lt.hoistedLocalVariables;yr<Er.length;yr++){var Wr=Er[yr];Ve.push(S.createVariableDeclaration(Wr))}}if(lt.loopOutParameters.length){Ve||(Ve=[]);for(var Ot=0,ln=lt.loopOutParameters;Ot<ln.length;Ot++){var kn=ln[Ot];Ve.push(S.createVariableDeclaration(kn.outParamName))}}lt.conditionVariable&&(Ve||(Ve=[]),Ve.push(S.createVariableDeclaration(lt.conditionVariable,void 0,void 0,S.createFalse()))),Ve&&Ye.push(S.createVariableStatement(void 0,S.createVariableDeclarationList(Ve)))}function wn(Ye){return S.createVariableDeclaration(Ye.originalName,void 0,void 0,Ye.outParamName)}function Bn(Ye,lt){var Ut=S.createUniqueName("_loop_init"),Ve=(Ye.initializer.transformFlags&1048576)!==0,yr=0;lt.containsLexicalThis&&(yr|=8),Ve&&z&4&&(yr|=262144);var Er=[];Er.push(S.createVariableStatement(void 0,Ye.initializer)),An(lt.loopOutParameters,2,1,Er);var Wr=S.createVariableStatement(void 0,e.setEmitFlags(S.createVariableDeclarationList([S.createVariableDeclaration(Ut,void 0,void 0,e.setEmitFlags(S.createFunctionExpression(void 0,Ve?S.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(S.createBlock(Er,!0),H,e.isBlock)),yr))]),2097152)),Ot=S.createVariableDeclarationList(e.map(lt.loopOutParameters,wn));return{functionName:Ut,containsYield:Ve,functionDeclaration:Wr,part:Ot}}function yn(Ye,lt,Ut){var Ve=S.createUniqueName("_loop");Y();var yr=e.visitNode(Ye.statement,H,e.isStatement,S.liftToBlock),Er=ce(),Wr=[];(Or(Ye)||Ge(Ye))&&(lt.conditionVariable=S.createUniqueName("inc"),Ye.incrementor?Wr.push(S.createIfStatement(lt.conditionVariable,S.createExpressionStatement(e.visitNode(Ye.incrementor,H,e.isExpression)),S.createExpressionStatement(S.createAssignment(lt.conditionVariable,S.createTrue())))):Wr.push(S.createIfStatement(S.createLogicalNot(lt.conditionVariable),S.createExpressionStatement(S.createAssignment(lt.conditionVariable,S.createTrue())))),Or(Ye)&&Wr.push(S.createIfStatement(S.createPrefixUnaryExpression(53,e.visitNode(Ye.condition,H,e.isExpression)),e.visitNode(S.createBreakStatement(),H,e.isStatement)))),e.isBlock(yr)?e.addRange(Wr,yr.statements):Wr.push(yr),An(lt.loopOutParameters,1,1,Wr),e.insertStatementsAfterStandardPrologue(Wr,Er);var Ot=S.createBlock(Wr,!0);e.isBlock(yr)&&e.setOriginalNode(Ot,yr);var ln=(Ye.statement.transformFlags&1048576)!==0,kn=524288;lt.containsLexicalThis&&(kn|=8),ln&&z&4&&(kn|=262144);var Cn=S.createVariableStatement(void 0,e.setEmitFlags(S.createVariableDeclarationList([S.createVariableDeclaration(Ve,void 0,void 0,e.setEmitFlags(S.createFunctionExpression(void 0,ln?S.createToken(41):void 0,void 0,void 0,lt.loopParameters,void 0,Ot),kn))]),2097152)),_i=Xe(Ve,lt,Ut,ln);return{functionName:Ve,containsYield:ln,functionDeclaration:Cn,part:_i}}function Tn(Ye,lt){var Ut=lt===0?Ye.outParamName:Ye.originalName,Ve=lt===0?Ye.originalName:Ye.outParamName;return S.createBinaryExpression(Ve,63,Ut)}function An(Ye,lt,Ut,Ve){for(var yr=0,Er=Ye;yr<Er.length;yr++){var Wr=Er[yr];Wr.flags&lt&&Ve.push(S.createExpressionStatement(Tn(Wr,Ut)))}}function ii(Ye,lt){var Ut=S.createCallExpression(Ye,void 0,[]),Ve=lt?S.createYieldExpression(S.createToken(41),e.setEmitFlags(Ut,8388608)):Ut;return S.createExpressionStatement(Ve)}function Xe(Ye,lt,Ut,Ve){var yr=[],Er=!(lt.nonLocalJumps&-5)&&!lt.labeledNonLocalBreaks&&!lt.labeledNonLocalContinues,Wr=S.createCallExpression(Ye,void 0,e.map(lt.loopParameters,function(qi){return qi.name})),Ot=Ve?S.createYieldExpression(S.createToken(41),e.setEmitFlags(Wr,8388608)):Wr;if(Er)yr.push(S.createExpressionStatement(Ot)),An(lt.loopOutParameters,1,0,yr);else{var ln=S.createUniqueName("state"),kn=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(ln,void 0,void 0,Ot)]));if(yr.push(kn),An(lt.loopOutParameters,1,0,yr),lt.nonLocalJumps&8){var Cn=void 0;Ut?(Ut.nonLocalJumps|=8,Cn=S.createReturnStatement(ln)):Cn=S.createReturnStatement(S.createPropertyAccessExpression(ln,"value")),yr.push(S.createIfStatement(S.createTypeCheck(ln,"object"),Cn))}if(lt.nonLocalJumps&2&&yr.push(S.createIfStatement(S.createStrictEquality(ln,S.createStringLiteral("break")),S.createBreakStatement())),lt.labeledNonLocalBreaks||lt.labeledNonLocalContinues){var _i=[];at(lt.labeledNonLocalBreaks,!0,ln,Ut,_i),at(lt.labeledNonLocalContinues,!1,ln,Ut,_i),yr.push(S.createSwitchStatement(ln,S.createCaseBlock(_i)))}}return yr}function hr(Ye,lt,Ut,Ve){lt?(Ye.labeledNonLocalBreaks||(Ye.labeledNonLocalBreaks=new e.Map),Ye.labeledNonLocalBreaks.set(Ut,Ve)):(Ye.labeledNonLocalContinues||(Ye.labeledNonLocalContinues=new e.Map),Ye.labeledNonLocalContinues.set(Ut,Ve))}function at(Ye,lt,Ut,Ve,yr){Ye&&Ye.forEach(function(Er,Wr){var Ot=[];if(!Ve||Ve.labels&&Ve.labels.get(Wr)){var ln=S.createIdentifier(Wr);Ot.push(lt?S.createBreakStatement(ln):S.createContinueStatement(ln))}else hr(Ve,lt,Wr,Er),Ot.push(S.createReturnStatement(Ut));yr.push(S.createCaseClause(S.createStringLiteral(Er),Ot))})}function Qe(Ye,lt,Ut,Ve,yr){var Er=lt.name;if(e.isBindingPattern(Er))for(var Wr=0,Ot=Er.elements;Wr<Ot.length;Wr++){var ln=Ot[Wr];e.isOmittedExpression(ln)||Qe(Ye,ln,Ut,Ve,yr)}else{Ut.push(S.createParameterDeclaration(void 0,void 0,Er));var kn=A.getNodeCheckFlags(lt);if(kn&4194304||yr){var Cn=S.createUniqueName("out_"+e.idText(Er)),_i=0;kn&4194304&&(_i|=1),e.isForStatement(Ye)&&(Ye.initializer&&A.isBindingCapturedByNode(Ye.initializer,lt)&&(_i|=2),(Ye.condition&&A.isBindingCapturedByNode(Ye.condition,lt)||Ye.incrementor&&A.isBindingCapturedByNode(Ye.incrementor,lt))&&(_i|=1)),Ve.push({flags:_i,originalName:Er,outParamName:Cn})}}}function Qt(Ye,lt,Ut,Ve){for(var yr=lt.properties,Er=yr.length,Wr=Ve;Wr<Er;Wr++){var Ot=yr[Wr];switch(Ot.kind){case 174:case 175:var ln=e.getAllAccessorDeclarations(lt.properties,Ot);Ot===ln.firstAccessor&&Ye.push(qr(Ut,ln,lt,!!lt.multiLine));break;case 171:Ye.push(gt(Ot,Ut,lt,lt.multiLine));break;case 299:Ye.push(Zt(Ot,Ut,lt.multiLine));break;case 300:Ye.push(Tt(Ot,Ut,lt.multiLine));break;default:e.Debug.failBadSyntaxKind(lt);break}}}function Zt(Ye,lt,Ut){var Ve=S.createAssignment(e.createMemberAccessForPropertyName(S,lt,e.visitNode(Ye.name,H,e.isPropertyName)),e.visitNode(Ye.initializer,H,e.isExpression));return e.setTextRange(Ve,Ye),Ut&&e.startOnNewLine(Ve),Ve}function Tt(Ye,lt,Ut){var Ve=S.createAssignment(e.createMemberAccessForPropertyName(S,lt,e.visitNode(Ye.name,H,e.isPropertyName)),S.cloneNode(Ye.name));return e.setTextRange(Ve,Ye),Ut&&e.startOnNewLine(Ve),Ve}function gt(Ye,lt,Ut,Ve){var yr=S.createAssignment(e.createMemberAccessForPropertyName(S,lt,e.visitNode(Ye.name,H,e.isPropertyName)),_t(Ye,Ye,void 0,Ut));return e.setTextRange(yr,Ye),Ve&&e.startOnNewLine(yr),yr}function kt(Ye){var lt=oe(7104,0),Ut;if(e.Debug.assert(!!Ye.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(Ye.variableDeclaration.name)){var Ve=S.createTempVariable(void 0),yr=S.createVariableDeclaration(Ve);e.setTextRange(yr,Ye.variableDeclaration);var Er=e.flattenDestructuringBinding(Ye.variableDeclaration,H,v,0,Ve),Wr=S.createVariableDeclarationList(Er);e.setTextRange(Wr,Ye.variableDeclaration);var Ot=S.createVariableStatement(void 0,Wr);Ut=S.updateCatchClause(Ye,yr,Lt(Ye.block,Ot))}else Ut=e.visitEachChild(Ye,H,v);return w(lt,0,0),Ut}function Lt(Ye,lt){var Ut=e.visitNodes(Ye.statements,H,e.isStatement);return S.updateBlock(Ye,t([lt],Ut,!0))}function $e(Ye){e.Debug.assert(!e.isComputedPropertyName(Ye.name));var lt=_t(Ye,e.moveRangePos(Ye,-1),void 0,void 0);return e.setEmitFlags(lt,512|e.getEmitFlags(lt)),e.setTextRange(S.createPropertyAssignment(Ye.name,lt),Ye)}function et(Ye){e.Debug.assert(!e.isComputedPropertyName(Ye.name));var lt=fe;fe=void 0;var Ut=oe(32670,65),Ve,yr=e.visitParameterList(Ye.parameters,H,v),Er=Ct(Ye);return Ye.kind===174?Ve=S.updateGetAccessorDeclaration(Ye,Ye.modifiers,Ye.name,yr,Ye.type,Er):Ve=S.updateSetAccessorDeclaration(Ye,Ye.modifiers,Ye.name,yr,Er),w(Ut,98304,0),fe=lt,Ve}function It(Ye){return e.setTextRange(S.createPropertyAssignment(Ye.name,b(S.cloneNode(Ye.name))),Ye)}function xn(Ye){return e.visitEachChild(Ye,H,v)}function pi(Ye){return e.visitEachChild(Ye,H,v)}function ai(Ye){return e.some(Ye.elements,e.isSpreadElement)?ra(Ye.elements,!1,!!Ye.multiLine,!!Ye.elements.hasTrailingComma):e.visitEachChild(Ye,H,v)}function Wi(Ye){if(e.getEmitFlags(Ye)&33554432)return ji(Ye);var lt=e.skipOuterExpressions(Ye.expression);return lt.kind===106||e.isSuperProperty(lt)||e.some(Ye.arguments,e.isSpreadElement)?Ri(Ye,!0):S.updateCallExpression(Ye,e.visitNode(Ye.expression,K,e.isExpression),void 0,e.visitNodes(Ye.arguments,H,e.isExpression))}function ji(Ye){var lt=e.cast(e.cast(e.skipOuterExpressions(Ye.expression),e.isArrowFunction).body,e.isBlock),Ut=function(Wo){return e.isVariableStatement(Wo)&&!!e.first(Wo.declarationList.declarations).initializer},Ve=fe;fe=void 0;var yr=e.visitNodes(lt.statements,R,e.isStatement);fe=Ve;var Er=e.filter(yr,Ut),Wr=e.filter(yr,function(Wo){return!Ut(Wo)}),Ot=e.cast(e.first(Er),e.isVariableStatement),ln=Ot.declarationList.declarations[0],kn=e.skipOuterExpressions(ln.initializer),Cn=e.tryCast(kn,e.isAssignmentExpression);!Cn&&e.isBinaryExpression(kn)&&kn.operatorToken.kind===27&&(Cn=e.tryCast(kn.left,e.isAssignmentExpression));var _i=e.cast(Cn?e.skipOuterExpressions(Cn.right):kn,e.isCallExpression),qi=e.cast(e.skipOuterExpressions(_i.expression),e.isFunctionExpression),va=qi.body.statements,Ia=0,$a=-1,ws=[];if(Cn){var rc=e.tryCast(va[Ia],e.isExpressionStatement);rc&&(ws.push(rc),Ia++),ws.push(va[Ia]),Ia++,ws.push(S.createExpressionStatement(S.createAssignment(Cn.left,e.cast(ln.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(va,$a));)$a--;return e.addRange(ws,va,Ia,$a),$a<-1&&e.addRange(ws,va,$a+1),e.addRange(ws,Wr),e.addRange(ws,Er,1),S.restoreOuterExpressions(Ye.expression,S.restoreOuterExpressions(ln.initializer,S.restoreOuterExpressions(Cn&&Cn.right,S.updateCallExpression(_i,S.restoreOuterExpressions(_i.expression,S.updateFunctionExpression(qi,void 0,void 0,void 0,void 0,qi.parameters,void 0,S.updateBlock(qi.body,ws))),void 0,_i.arguments))))}function fn(Ye){return Ri(Ye,!1)}function Ri(Ye,lt){if(Ye.transformFlags&32768||Ye.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(Ye.expression))){var Ut=S.createCallBinding(Ye.expression,k),Ve=Ut.target,yr=Ut.thisArg;Ye.expression.kind===106&&e.setEmitFlags(yr,4);var Er=void 0;if(Ye.transformFlags&32768?Er=S.createFunctionApplyCall(e.visitNode(Ve,K,e.isExpression),Ye.expression.kind===106?yr:e.visitNode(yr,H,e.isExpression),ra(Ye.arguments,!0,!1,!1)):Er=e.setTextRange(S.createFunctionCallCall(e.visitNode(Ve,K,e.isExpression),Ye.expression.kind===106?yr:e.visitNode(yr,H,e.isExpression),e.visitNodes(Ye.arguments,H,e.isExpression)),Ye),Ye.expression.kind===106){var Wr=S.createLogicalOr(Er,Ce());Er=lt?S.createAssignment(S.createUniqueName("_this",48),Wr):Wr}return e.setOriginalNode(Er,Ye)}return e.visitEachChild(Ye,H,v)}function ma(Ye){if(e.some(Ye.arguments,e.isSpreadElement)){var lt=S.createCallBinding(S.createPropertyAccessExpression(Ye.expression,"bind"),k),Ut=lt.target,Ve=lt.thisArg;return S.createNewExpression(S.createFunctionApplyCall(e.visitNode(Ut,H,e.isExpression),Ve,ra(S.createNodeArray(t([S.createVoidZero()],Ye.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(Ye,H,v)}function ra(Ye,lt,Ut,Ve){var yr=Ye.length,Er=e.flatten(e.spanMap(Ye,vn,function(qi,va,Ia,$a){return va(qi,Ut,Ve&&$a===yr)}));if(Er.length===1){var Wr=Er[0];if(lt&&!X.downlevelIteration||e.isPackedArrayLiteral(Wr.expression)||e.isCallToHelper(Wr.expression,"___spreadArray"))return Wr.expression}for(var Ot=te(),ln=Er[0].kind!==0,kn=ln?S.createArrayLiteralExpression():Er[0].expression,Cn=ln?0:1;Cn<Er.length;Cn++){var _i=Er[Cn];kn=Ot.createSpreadArrayHelper(kn,_i.expression,_i.kind===1&&!lt)}return kn}function vn(Ye){return e.isSpreadElement(Ye)?zo:Ha}function zo(Ye){return e.map(Ye,_a)}function _a(Ye){var lt=e.visitNode(Ye.expression,H,e.isExpression),Ut=e.isCallToHelper(lt,"___read"),Ve=Ut||e.isPackedArrayLiteral(lt)?2:1;return X.downlevelIteration&&Ve===1&&!e.isArrayLiteralExpression(lt)&&!Ut&&(lt=te().createReadHelper(lt,void 0),Ve=2),W(Ve,lt)}function Ha(Ye,lt,Ut){var Ve=S.createArrayLiteralExpression(e.visitNodes(S.createNodeArray(Ye,Ut),H,e.isExpression),lt);return W(0,Ve)}function Do(Ye){return e.visitNode(Ye.expression,H,e.isExpression)}function Ka(Ye){return e.setTextRange(S.createStringLiteral(Ye.text),Ye)}function rs(Ye){return Ye.hasExtendedUnicodeEscape?e.setTextRange(S.createStringLiteral(Ye.text),Ye):Ye}function ts(Ye){return Ye.numericLiteralFlags&384?e.setTextRange(S.createNumericLiteral(Ye.text),Ye):Ye}function En(Ye){return e.processTaggedTemplateExpression(v,Ye,H,B,Pe,e.ProcessLevel.All)}function ca(Ye){for(var lt=S.createStringLiteral(Ye.head.text),Ut=0,Ve=Ye.templateSpans;Ut<Ve.length;Ut++){var yr=Ve[Ut],Er=[e.visitNode(yr.expression,H,e.isExpression)];yr.literal.text.length>0&&Er.push(S.createStringLiteral(yr.literal.text)),lt=S.createCallExpression(S.createPropertyAccessExpression(lt,"concat"),void 0,Er)}return e.setTextRange(lt,Ye)}function bo(Ye){return z&8&&!Ye?S.createPropertyAccessExpression(S.createUniqueName("_super",48),"prototype"):S.createUniqueName("_super",48)}function Oo(Ye){return Ye.keywordToken===103&&Ye.name.escapedText==="target"?(z|=32768,S.createUniqueName("_newTarget",48)):Ye}function Ws(Ye,lt,Ut){if(_e&1&&e.isFunctionLike(lt)){var Ve=oe(32670,e.getEmitFlags(lt)&8?81:65);C(Ye,lt,Ut),w(Ve,0,0);return}C(Ye,lt,Ut)}function Co(){_e&2||(_e|=2,v.enableSubstitution(79))}function qs(){_e&1||(_e|=1,v.enableSubstitution(108),v.enableEmitNotification(173),v.enableEmitNotification(171),v.enableEmitNotification(174),v.enableEmitNotification(175),v.enableEmitNotification(216),v.enableEmitNotification(215),v.enableEmitNotification(259))}function gs(Ye,lt){return lt=y(Ye,lt),Ye===1?kr(lt):e.isIdentifier(lt)?Ds(lt):lt}function Ds(Ye){if(_e&2&&!e.isInternalName(Ye)){var lt=e.getParseTreeNode(Ye,e.isIdentifier);if(lt&&Ko(lt))return e.setTextRange(S.getGeneratedNameForNode(lt),Ye)}return Ye}function Ko(Ye){switch(Ye.parent.kind){case 205:case 260:case 263:case 257:return Ye.parent.name===Ye&&A.isDeclarationWithCollidingName(Ye.parent)}return!1}function kr(Ye){switch(Ye.kind){case 79:return jr(Ye);case 108:return xi(Ye)}return Ye}function jr(Ye){if(_e&2&&!e.isInternalName(Ye)){var lt=A.getReferencedDeclarationWithCollidingName(Ye);if(lt&&!(e.isClassLike(lt)&&Nn(lt,Ye)))return e.setTextRange(S.getGeneratedNameForNode(e.getNameOfDeclaration(lt)),Ye)}return Ye}function Nn(Ye,lt){var Ut=e.getParseTreeNode(lt);if(!Ut||Ut===Ye||Ut.end<=Ye.pos||Ut.pos>=Ye.end)return!1;for(var Ve=e.getEnclosingBlockScopeContainer(Ye);Ut;){if(Ut===Ve||Ut===Ye)return!1;if(e.isClassElement(Ut)&&Ut.parent===Ye)return!0;Ut=Ut.parent}return!1}function xi(Ye){return _e&1&&z&16?e.setTextRange(S.createUniqueName("_this",48),Ye):Ye}function ka(Ye,lt){return e.isStatic(lt)?S.getInternalName(Ye):S.createPropertyAccessExpression(S.getInternalName(Ye),"prototype")}function ro(Ye,lt){if(!Ye||!lt||e.some(Ye.parameters))return!1;var Ut=e.firstOrUndefined(Ye.body.statements);if(!Ut||!e.nodeIsSynthesized(Ut)||Ut.kind!==241)return!1;var Ve=Ut.expression;if(!e.nodeIsSynthesized(Ve)||Ve.kind!==210)return!1;var yr=Ve.expression;if(!e.nodeIsSynthesized(yr)||yr.kind!==106)return!1;var Er=e.singleOrUndefined(Ve.arguments);if(!Er||!e.nodeIsSynthesized(Er)||Er.kind!==227)return!1;var Wr=Er.expression;return e.isIdentifier(Wr)&&Wr.escapedText==="arguments"}}e.transformES2015=E})(h||(h={}));var h;(function(e){function c(P){var T=P.factory,s=P.getCompilerOptions(),D,O;(s.jsx===1||s.jsx===3)&&(D=P.onEmitNode,P.onEmitNode=v,P.enableEmitNotification(283),P.enableEmitNotification(284),P.enableEmitNotification(282),O=[]);var W=P.onSubstituteNode;return P.onSubstituteNode=S,P.enableSubstitution(208),P.enableSubstitution(299),e.chainBundle(P,E);function E(ce){return ce}function v(ce,k,X){switch(k.kind){case 283:case 284:case 282:var A=k.tagName;O[e.getOriginalNodeId(A)]=!0;break}D(ce,k,X)}function S(ce,k){return k.id&&O&&O[k.id]?W(ce,k):(k=W(ce,k),e.isPropertyAccessExpression(k)?te(k):e.isPropertyAssignment(k)?Y(k):k)}function te(ce){if(e.isPrivateIdentifier(ce.name))return ce;var k=Z(ce.name);return k?e.setTextRange(T.createElementAccessExpression(ce.expression,k),ce):ce}function Y(ce){var k=e.isIdentifier(ce.name)&&Z(ce.name);return k?T.updatePropertyAssignment(ce,k,ce.initializer):ce}function Z(ce){var k=ce.originalKeywordKind||(e.nodeIsSynthesized(ce)?e.stringToToken(e.idText(ce)):void 0);if(k!==void 0&&k>=81&&k<=116)return e.setTextRange(T.createStringLiteralFromNode(ce),ce)}}e.transformES5=c})(h||(h={}));var h;(function(e){var c;(function(E){E[E.Nop=0]="Nop",E[E.Statement=1]="Statement",E[E.Assign=2]="Assign",E[E.Break=3]="Break",E[E.BreakWhenTrue=4]="BreakWhenTrue",E[E.BreakWhenFalse=5]="BreakWhenFalse",E[E.Yield=6]="Yield",E[E.YieldStar=7]="YieldStar",E[E.Return=8]="Return",E[E.Throw=9]="Throw",E[E.Endfinally=10]="Endfinally"})(c||(c={}));var P;(function(E){E[E.Open=0]="Open",E[E.Close=1]="Close"})(P||(P={}));var T;(function(E){E[E.Exception=0]="Exception",E[E.With=1]="With",E[E.Switch=2]="Switch",E[E.Loop=3]="Loop",E[E.Labeled=4]="Labeled"})(T||(T={}));var s;(function(E){E[E.Try=0]="Try",E[E.Catch=1]="Catch",E[E.Finally=2]="Finally",E[E.Done=3]="Done"})(s||(s={}));var D;(function(E){E[E.Next=0]="Next",E[E.Throw=1]="Throw",E[E.Return=2]="Return",E[E.Break=3]="Break",E[E.Yield=4]="Yield",E[E.YieldStar=5]="YieldStar",E[E.Catch=6]="Catch",E[E.Endfinally=7]="Endfinally"})(D||(D={}));function O(E){switch(E){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function W(E){var v=E.factory,S=E.getEmitHelperFactory,te=E.resumeLexicalEnvironment,Y=E.endLexicalEnvironment,Z=E.hoistFunctionDeclaration,ce=E.hoistVariableDeclaration,k=E.getCompilerOptions(),X=e.getEmitScriptTarget(k),A=E.getEmitResolver(),y=E.onSubstituteNode;E.onSubstituteNode=en;var C,B,F,z,ge,Pe,fe,_e,ne,oe,w=1,re,M,U,H,q=0,R=0,K,I,he,le,ee,J,de,De;return e.chainBundle(E,N);function N(kr){if(kr.isDeclarationFile||!(kr.transformFlags&2048))return kr;var jr=e.visitEachChild(kr,b,E);return e.addEmitHelpers(jr,E.readEmitHelpers()),jr}function b(kr){var jr=kr.transformFlags;return z?Q(kr):F?G(kr):e.isFunctionLikeDeclaration(kr)&&kr.asteriskToken?Te(kr):jr&2048?e.visitEachChild(kr,b,E):kr}function Q(kr){switch(kr.kind){case 243:return _t(kr);case 244:return yt(kr);case 252:return Me(kr);case 253:return Vr(kr);default:return G(kr)}}function G(kr){switch(kr.kind){case 259:return Ne(kr);case 215:return we(kr);case 174:case 175:return nr(kr);case 240:return me(kr);case 245:return vr(kr);case 246:return cr(kr);case 249:return Br(kr);case 248:return Re(kr);case 250:return ct(kr);default:return kr.transformFlags&1048576?ae(kr):kr.transformFlags&4196352?e.visitEachChild(kr,b,E):kr}}function ae(kr){switch(kr.kind){case 223:return He(kr);case 354:return Ae(kr);case 224:return xe(kr);case 226:return L(kr);case 206:return ue(kr);case 207:return Je(kr);case 209:return lr(kr);case 210:return mr(kr);case 211:return Hr(kr);default:return e.visitEachChild(kr,b,E)}}function Te(kr){switch(kr.kind){case 259:return Ne(kr);case 215:return we(kr);default:return e.Debug.failBadSyntaxKind(kr)}}function Ne(kr){if(kr.asteriskToken)kr=e.setOriginalNode(e.setTextRange(v.createFunctionDeclaration(kr.modifiers,void 0,kr.name,void 0,e.visitParameterList(kr.parameters,b,E),void 0,tr(kr.body)),kr),kr);else{var jr=F,Nn=z;F=!1,z=!1,kr=e.visitEachChild(kr,b,E),F=jr,z=Nn}if(F){Z(kr);return}else return kr}function we(kr){if(kr.asteriskToken)kr=e.setOriginalNode(e.setTextRange(v.createFunctionExpression(void 0,void 0,kr.name,void 0,e.visitParameterList(kr.parameters,b,E),void 0,tr(kr.body)),kr),kr);else{var jr=F,Nn=z;F=!1,z=!1,kr=e.visitEachChild(kr,b,E),F=jr,z=Nn}return kr}function nr(kr){var jr=F,Nn=z;return F=!1,z=!1,kr=e.visitEachChild(kr,b,E),F=jr,z=Nn,kr}function tr(kr){var jr=[],Nn=F,xi=z,ka=ge,ro=Pe,Ye=fe,lt=_e,Ut=ne,Ve=oe,yr=w,Er=re,Wr=M,Ot=U,ln=H;F=!0,z=!1,ge=void 0,Pe=void 0,fe=void 0,_e=void 0,ne=void 0,oe=void 0,w=1,re=void 0,M=void 0,U=void 0,H=v.createTempVariable(void 0),te();var kn=v.copyPrologue(kr.statements,jr,!1,b);wr(kr.statements,kn);var Cn=ma();return e.insertStatementsAfterStandardPrologue(jr,Y()),jr.push(v.createReturnStatement(Cn)),F=Nn,z=xi,ge=ka,Pe=ro,fe=Ye,_e=lt,ne=Ut,oe=Ve,w=yr,re=Er,M=Wr,U=Ot,H=ln,e.setTextRange(v.createBlock(jr,kr.multiLine),kr)}function me(kr){if(kr.transformFlags&1048576){qr(kr.declarationList);return}else{if(e.getEmitFlags(kr)&1048576)return kr;for(var jr=0,Nn=kr.declarationList.declarations;jr<Nn.length;jr++){var xi=Nn[jr];ce(xi.name)}var ka=e.getInitializedVariables(kr.declarationList);return ka.length===0?void 0:e.setSourceMapRange(v.createExpressionStatement(v.inlineExpressions(e.map(ka,Rr))),kr)}}function He(kr){var jr=e.getExpressionAssociativity(kr);switch(jr){case 0:return je(kr);case 1:return rr(kr);default:return e.Debug.assertNever(jr)}}function rr(kr){var jr=kr.left,Nn=kr.right;if(Wt(Nn)){var xi=void 0;switch(jr.kind){case 208:xi=v.updatePropertyAccessExpression(jr,ye(e.visitNode(jr.expression,b,e.isLeftHandSideExpression)),jr.name);break;case 209:xi=v.updateElementAccessExpression(jr,ye(e.visitNode(jr.expression,b,e.isLeftHandSideExpression)),ye(e.visitNode(jr.argumentExpression,b,e.isExpression)));break;default:xi=e.visitNode(jr,b,e.isExpression);break}var ka=kr.operatorToken.kind;return e.isCompoundAssignment(ka)?e.setTextRange(v.createAssignment(xi,e.setTextRange(v.createBinaryExpression(ye(xi),e.getNonAssignmentOperatorForCompoundAssignment(ka),e.visitNode(Nn,b,e.isExpression)),kr)),kr):v.updateBinaryExpression(kr,xi,kr.operatorToken,e.visitNode(Nn,b,e.isExpression))}return e.visitEachChild(kr,b,E)}function je(kr){return Wt(kr.right)?e.isLogicalOperator(kr.operatorToken.kind)?qe(kr):kr.operatorToken.kind===27?Ce(kr):v.updateBinaryExpression(kr,ye(e.visitNode(kr.left,b,e.isExpression)),kr.operatorToken,e.visitNode(kr.right,b,e.isExpression)):e.visitEachChild(kr,b,E)}function Ce(kr){var jr=[];return Nn(kr.left),Nn(kr.right),v.inlineExpressions(jr);function Nn(xi){e.isBinaryExpression(xi)&&xi.operatorToken.kind===27?(Nn(xi.left),Nn(xi.right)):(Wt(xi)&&jr.length>0&&(Ri(1,[v.createExpressionStatement(v.inlineExpressions(jr))]),jr=[]),jr.push(e.visitNode(xi,b,e.isExpression)))}}function Ae(kr){for(var jr=[],Nn=0,xi=kr.elements;Nn<xi.length;Nn++){var ka=xi[Nn];e.isBinaryExpression(ka)&&ka.operatorToken.kind===27?jr.push(Ce(ka)):(Wt(ka)&&jr.length>0&&(Ri(1,[v.createExpressionStatement(v.inlineExpressions(jr))]),jr=[]),jr.push(e.visitNode(ka,b,e.isExpression)))}return v.inlineExpressions(jr)}function qe(kr){var jr=We(),Nn=Ie();return $e(Nn,e.visitNode(kr.left,b,e.isExpression),kr.left),kr.operatorToken.kind===55?xn(jr,Nn,kr.left):It(jr,Nn,kr.left),$e(Nn,e.visitNode(kr.right,b,e.isExpression),kr.right),dr(jr),Nn}function xe(kr){if(Wt(kr.whenTrue)||Wt(kr.whenFalse)){var jr=We(),Nn=We(),xi=Ie();return xn(jr,e.visitNode(kr.condition,b,e.isExpression),kr.condition),$e(xi,e.visitNode(kr.whenTrue,b,e.isExpression),kr.whenTrue),et(Nn),dr(jr),$e(xi,e.visitNode(kr.whenFalse,b,e.isExpression),kr.whenFalse),dr(Nn),xi}return e.visitEachChild(kr,b,E)}function L(kr){var jr=We(),Nn=e.visitNode(kr.expression,b,e.isExpression);if(kr.asteriskToken){var xi=e.getEmitFlags(kr.expression)&8388608?Nn:e.setTextRange(S().createValuesHelper(Nn),kr);pi(xi,kr)}else ai(Nn,kr);return dr(jr),gt(kr)}function ue(kr){return Ue(kr.elements,void 0,void 0,kr.multiLine)}function Ue(kr,jr,Nn,xi){var ka=sn(kr),ro;if(ka>0){ro=Ie();var Ye=e.visitNodes(kr,b,e.isExpression,0,ka);$e(ro,v.createArrayLiteralExpression(jr?t([jr],Ye,!0):Ye)),jr=void 0}var lt=e.reduceLeft(kr,Ut,[],ka);return ro?v.createArrayConcatCall(ro,[v.createArrayLiteralExpression(lt,xi)]):e.setTextRange(v.createArrayLiteralExpression(jr?t([jr],lt,!0):lt,xi),Nn);function Ut(Ve,yr){if(Wt(yr)&&Ve.length>0){var Er=ro!==void 0;ro||(ro=Ie()),$e(ro,Er?v.createArrayConcatCall(ro,[v.createArrayLiteralExpression(Ve,xi)]):v.createArrayLiteralExpression(jr?t([jr],Ve,!0):Ve,xi)),jr=void 0,Ve=[]}return Ve.push(e.visitNode(yr,b,e.isExpression)),Ve}}function Je(kr){var jr=kr.properties,Nn=kr.multiLine,xi=sn(jr),ka=Ie();$e(ka,v.createObjectLiteralExpression(e.visitNodes(jr,b,e.isObjectLiteralElementLike,0,xi),Nn));var ro=e.reduceLeft(jr,Ye,[],xi);return ro.push(Nn?e.startOnNewLine(e.setParent(e.setTextRange(v.cloneNode(ka),ka),ka.parent)):ka),v.inlineExpressions(ro);function Ye(lt,Ut){Wt(Ut)&&lt.length>0&&(Lt(v.createExpressionStatement(v.inlineExpressions(lt))),lt=[]);var Ve=e.createExpressionForObjectLiteralElementLike(v,kr,Ut,ka),yr=e.visitNode(Ve,b,e.isExpression);return yr&&(Nn&&e.startOnNewLine(yr),lt.push(yr)),lt}}function lr(kr){return Wt(kr.argumentExpression)?v.updateElementAccessExpression(kr,ye(e.visitNode(kr.expression,b,e.isLeftHandSideExpression)),e.visitNode(kr.argumentExpression,b,e.isExpression)):e.visitEachChild(kr,b,E)}function mr(kr){if(!e.isImportCall(kr)&&e.forEach(kr.arguments,Wt)){var jr=v.createCallBinding(kr.expression,ce,X,!0),Nn=jr.target,xi=jr.thisArg;return e.setOriginalNode(e.setTextRange(v.createFunctionApplyCall(ye(e.visitNode(Nn,b,e.isLeftHandSideExpression)),xi,Ue(kr.arguments)),kr),kr)}return e.visitEachChild(kr,b,E)}function Hr(kr){if(e.forEach(kr.arguments,Wt)){var jr=v.createCallBinding(v.createPropertyAccessExpression(kr.expression,"bind"),ce),Nn=jr.target,xi=jr.thisArg;return e.setOriginalNode(e.setTextRange(v.createNewExpression(v.createFunctionApplyCall(ye(e.visitNode(Nn,b,e.isExpression)),xi,Ue(kr.arguments,v.createVoidZero())),void 0,[]),kr),kr)}return e.visitEachChild(kr,b,E)}function wr(kr,jr){jr===void 0&&(jr=0);for(var Nn=kr.length,xi=jr;xi<Nn;xi++)Ze(kr[xi])}function Oe(kr){e.isBlock(kr)?wr(kr.statements):Ze(kr)}function Ze(kr){var jr=z;z||(z=Wt(kr)),tt(kr),z=jr}function tt(kr){switch(kr.kind){case 238:return ut(kr);case 241:return or(kr);case 242:return zr(kr);case 243:return Fr(kr);case 244:return Ct(kr);case 245:return Fe(kr);case 246:return Le(kr);case 248:return $r(kr);case 249:return xr(kr);case 250:return Qr(kr);case 251:return ft(kr);case 252:return Dt(kr);case 253:return Ke(kr);case 254:return Yr(kr);case 255:return Nt(kr);default:return Lt(e.visitNode(kr,b,e.isStatement))}}function ut(kr){Wt(kr)?wr(kr.statements):Lt(e.visitNode(kr,b,e.isStatement))}function or(kr){Lt(e.visitNode(kr,b,e.isStatement))}function qr(kr){for(var jr=0,Nn=kr.declarations;jr<Nn.length;jr++){var xi=Nn[jr],ka=v.cloneNode(xi.name);e.setCommentRange(ka,xi.name),ce(ka)}for(var ro=e.getInitializedVariables(kr),Ye=ro.length,lt=0,Ut=[];lt<Ye;){for(var Ve=lt;Ve<Ye;Ve++){var xi=ro[Ve];if(Wt(xi.initializer)&&Ut.length>0)break;Ut.push(Rr(xi))}Ut.length&&(Lt(v.createExpressionStatement(v.inlineExpressions(Ut))),lt+=Ut.length,Ut=[])}}function Rr(kr){return e.setSourceMapRange(v.createAssignment(e.setSourceMapRange(v.cloneNode(kr.name),kr.name),e.visitNode(kr.initializer,b,e.isExpression)),kr)}function zr(kr){if(Wt(kr))if(Wt(kr.thenStatement)||Wt(kr.elseStatement)){var jr=We(),Nn=kr.elseStatement?We():void 0;xn(kr.elseStatement?Nn:jr,e.visitNode(kr.expression,b,e.isExpression),kr.expression),Oe(kr.thenStatement),kr.elseStatement&&(et(jr),dr(Nn),Oe(kr.elseStatement)),dr(jr)}else Lt(e.visitNode(kr,b,e.isStatement));else Lt(e.visitNode(kr,b,e.isStatement))}function Fr(kr){if(Wt(kr)){var jr=We(),Nn=We();pt(jr),dr(Nn),Oe(kr.statement),dr(jr),It(Nn,e.visitNode(kr.expression,b,e.isExpression)),Ft()}else Lt(e.visitNode(kr,b,e.isStatement))}function _t(kr){return z?(Pt(),kr=e.visitEachChild(kr,b,E),Ft(),kr):e.visitEachChild(kr,b,E)}function Ct(kr){if(Wt(kr)){var jr=We(),Nn=pt(jr);dr(jr),xn(Nn,e.visitNode(kr.expression,b,e.isExpression)),Oe(kr.statement),et(jr),Ft()}else Lt(e.visitNode(kr,b,e.isStatement))}function yt(kr){return z?(Pt(),kr=e.visitEachChild(kr,b,E),Ft(),kr):e.visitEachChild(kr,b,E)}function Fe(kr){if(Wt(kr)){var jr=We(),Nn=We(),xi=pt(Nn);if(kr.initializer){var ka=kr.initializer;e.isVariableDeclarationList(ka)?qr(ka):Lt(e.setTextRange(v.createExpressionStatement(e.visitNode(ka,b,e.isExpression)),ka))}dr(jr),kr.condition&&xn(xi,e.visitNode(kr.condition,b,e.isExpression)),Oe(kr.statement),dr(Nn),kr.incrementor&&Lt(e.setTextRange(v.createExpressionStatement(e.visitNode(kr.incrementor,b,e.isExpression)),kr.incrementor)),et(jr),Ft()}else Lt(e.visitNode(kr,b,e.isStatement))}function vr(kr){z&&Pt();var jr=kr.initializer;if(jr&&e.isVariableDeclarationList(jr)){for(var Nn=0,xi=jr.declarations;Nn<xi.length;Nn++){var ka=xi[Nn];ce(ka.name)}var ro=e.getInitializedVariables(jr);kr=v.updateForStatement(kr,ro.length>0?v.inlineExpressions(e.map(ro,Rr)):void 0,e.visitNode(kr.condition,b,e.isExpression),e.visitNode(kr.incrementor,b,e.isExpression),e.visitIterationBody(kr.statement,b,E))}else kr=e.visitEachChild(kr,b,E);return z&&Ft(),kr}function Le(kr){if(Wt(kr)){var jr=Ie(),Nn=Ie(),xi=Ie(),ka=v.createLoopVariable(),ro=kr.initializer;ce(ka),$e(jr,e.visitNode(kr.expression,b,e.isExpression)),$e(Nn,v.createArrayLiteralExpression()),Lt(v.createForInStatement(xi,jr,v.createExpressionStatement(v.createCallExpression(v.createPropertyAccessExpression(Nn,"push"),void 0,[xi])))),$e(ka,v.createNumericLiteral(0));var Ye=We(),lt=We(),Ut=pt(lt);dr(Ye),xn(Ut,v.createLessThan(ka,v.createPropertyAccessExpression(Nn,"length"))),$e(xi,v.createElementAccessExpression(Nn,ka)),xn(lt,v.createBinaryExpression(xi,101,jr));var Ve=void 0;if(e.isVariableDeclarationList(ro)){for(var yr=0,Er=ro.declarations;yr<Er.length;yr++){var Wr=Er[yr];ce(Wr.name)}Ve=v.cloneNode(ro.declarations[0].name)}else Ve=e.visitNode(ro,b,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(Ve));$e(Ve,xi),Oe(kr.statement),dr(lt),Lt(v.createExpressionStatement(v.createPostfixIncrement(ka))),et(Ye),Ft()}else Lt(e.visitNode(kr,b,e.isStatement))}function cr(kr){z&&Pt();var jr=kr.initializer;if(e.isVariableDeclarationList(jr)){for(var Nn=0,xi=jr.declarations;Nn<xi.length;Nn++){var ka=xi[Nn];ce(ka.name)}kr=v.updateForInStatement(kr,jr.declarations[0].name,e.visitNode(kr.expression,b,e.isExpression),e.visitNode(kr.statement,b,e.isStatement,v.liftToBlock))}else kr=e.visitEachChild(kr,b,E);return z&&Ft(),kr}function $r(kr){var jr=at(kr.label?e.idText(kr.label):void 0);jr>0?et(jr,kr):Lt(kr)}function Re(kr){if(z){var jr=at(kr.label&&e.idText(kr.label));if(jr>0)return Zt(jr,kr)}return e.visitEachChild(kr,b,E)}function xr(kr){var jr=hr(kr.label?e.idText(kr.label):void 0);jr>0?et(jr,kr):Lt(kr)}function Br(kr){if(z){var jr=hr(kr.label&&e.idText(kr.label));if(jr>0)return Zt(jr,kr)}return e.visitEachChild(kr,b,E)}function Qr(kr){Wi(e.visitNode(kr.expression,b,e.isExpression),kr)}function ct(kr){return Tt(e.visitNode(kr.expression,b,e.isExpression),kr)}function ft(kr){Wt(kr)?(ur(ye(e.visitNode(kr.expression,b,e.isExpression))),Oe(kr.statement),Lr()):Lt(e.visitNode(kr,b,e.isStatement))}function Dt(kr){if(Wt(kr.caseBlock)){for(var jr=kr.caseBlock,Nn=jr.clauses.length,xi=Yt(),ka=ye(e.visitNode(kr.expression,b,e.isExpression)),ro=[],Ye=-1,lt=0;lt<Nn;lt++){var Ut=jr.clauses[lt];ro.push(We()),Ut.kind===293&&Ye===-1&&(Ye=lt)}for(var Ve=0,yr=[];Ve<Nn;){for(var Er=0,lt=Ve;lt<Nn;lt++){var Ut=jr.clauses[lt];if(Ut.kind===292){if(Wt(Ut.expression)&&yr.length>0)break;yr.push(v.createCaseClause(e.visitNode(Ut.expression,b,e.isExpression),[Zt(ro[lt],Ut.expression)]))}else Er++}yr.length&&(Lt(v.createSwitchStatement(ka,v.createCaseBlock(yr))),Ve+=yr.length,yr=[]),Er>0&&(Ve+=Er,Er=0)}Ye>=0?et(ro[Ye]):et(xi);for(var lt=0;lt<Nn;lt++)dr(ro[lt]),wr(jr.clauses[lt].statements);un()}else Lt(e.visitNode(kr,b,e.isStatement))}function Me(kr){return z&&ht(),kr=e.visitEachChild(kr,b,E),z&&un(),kr}function Ke(kr){Wt(kr)?(Bn(e.idText(kr.label)),Oe(kr.statement),yn()):Lt(e.visitNode(kr,b,e.isStatement))}function Vr(kr){return z&&wn(e.idText(kr.label)),kr=e.visitEachChild(kr,b,E),z&&yn(),kr}function Yr(kr){var jr;ji(e.visitNode((jr=kr.expression)!==null&&jr!==void 0?jr:v.createVoidZero(),b,e.isExpression),kr)}function Nt(kr){Wt(kr)?(Ar(),Oe(kr.tryBlock),kr.catchClause&&(rt(kr.catchClause.variableDeclaration),Oe(kr.catchClause.block)),kr.finallyBlock&&(Et(),Oe(kr.finallyBlock)),St()):Lt(e.visitEachChild(kr,b,E))}function Wt(kr){return!!kr&&(kr.transformFlags&1048576)!==0}function sn(kr){for(var jr=kr.length,Nn=0;Nn<jr;Nn++)if(Wt(kr[Nn]))return Nn;return-1}function en(kr,jr){return jr=y(kr,jr),kr===1?Ir(jr):jr}function Ir(kr){return e.isIdentifier(kr)?Jr(kr):kr}function Jr(kr){if(!e.isGeneratedIdentifier(kr)&&C&&C.has(e.idText(kr))){var jr=e.getOriginalNode(kr);if(e.isIdentifier(jr)&&jr.parent){var Nn=A.getReferencedValueDeclaration(jr);if(Nn){var xi=B[e.getOriginalNodeId(Nn)];if(xi){var ka=e.setParent(e.setTextRange(v.cloneNode(xi),xi),xi.parent);return e.setSourceMapRange(ka,kr),e.setCommentRange(ka,kr),ka}}}}return kr}function ye(kr){if(e.isGeneratedIdentifier(kr)||e.getEmitFlags(kr)&4096)return kr;var jr=v.createTempVariable(ce);return $e(jr,kr,kr),jr}function Ie(kr){var jr=kr?v.createUniqueName(kr):v.createTempVariable(void 0);return ce(jr),jr}function We(){ne||(ne=[]);var kr=w;return w++,ne[kr]=-1,kr}function dr(kr){e.Debug.assert(ne!==void 0,"No labels were defined."),ne[kr]=re?re.length:0}function ar(kr){ge||(ge=[],fe=[],Pe=[],_e=[]);var jr=fe.length;return fe[jr]=0,Pe[jr]=re?re.length:0,ge[jr]=kr,_e.push(kr),jr}function Sr(){var kr=Or();if(kr===void 0)return e.Debug.fail("beginBlock was never called.");var jr=fe.length;return fe[jr]=1,Pe[jr]=re?re.length:0,ge[jr]=kr,_e.pop(),kr}function Or(){return e.lastOrUndefined(_e)}function Ge(){var kr=Or();return kr&&kr.kind}function ur(kr){var jr=We(),Nn=We();dr(jr),ar({kind:1,expression:kr,startLabel:jr,endLabel:Nn})}function Lr(){e.Debug.assert(Ge()===1);var kr=Sr();dr(kr.endLabel)}function Ar(){var kr=We(),jr=We();return dr(kr),ar({kind:0,state:0,startLabel:kr,endLabel:jr}),kt(),jr}function rt(kr){e.Debug.assert(Ge()===0);var jr;if(e.isGeneratedIdentifier(kr.name))jr=kr.name,ce(kr.name);else{var Nn=e.idText(kr.name);jr=Ie(Nn),C||(C=new e.Map,B=[],E.enableSubstitution(79)),C.set(Nn,!0),B[e.getOriginalNodeId(kr)]=jr}var xi=Or();e.Debug.assert(xi.state<1);var ka=xi.endLabel;et(ka);var ro=We();dr(ro),xi.state=1,xi.catchVariable=jr,xi.catchLabel=ro,$e(jr,v.createCallExpression(v.createPropertyAccessExpression(H,"sent"),void 0,[])),kt()}function Et(){e.Debug.assert(Ge()===0);var kr=Or();e.Debug.assert(kr.state<2);var jr=kr.endLabel;et(jr);var Nn=We();dr(Nn),kr.state=2,kr.finallyLabel=Nn}function St(){e.Debug.assert(Ge()===0);var kr=Sr(),jr=kr.state;jr<2?et(kr.endLabel):fn(),dr(kr.endLabel),kt(),kr.state=3}function Pt(){ar({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function pt(kr){var jr=We();return ar({kind:3,isScript:!1,breakLabel:jr,continueLabel:kr}),jr}function Ft(){e.Debug.assert(Ge()===3);var kr=Sr(),jr=kr.breakLabel;kr.isScript||dr(jr)}function ht(){ar({kind:2,isScript:!0,breakLabel:-1})}function Yt(){var kr=We();return ar({kind:2,isScript:!1,breakLabel:kr}),kr}function un(){e.Debug.assert(Ge()===2);var kr=Sr(),jr=kr.breakLabel;kr.isScript||dr(jr)}function wn(kr){ar({kind:4,isScript:!0,labelText:kr,breakLabel:-1})}function Bn(kr){var jr=We();ar({kind:4,isScript:!1,labelText:kr,breakLabel:jr})}function yn(){e.Debug.assert(Ge()===4);var kr=Sr();kr.isScript||dr(kr.breakLabel)}function Tn(kr){return kr.kind===2||kr.kind===3}function An(kr){return kr.kind===4}function ii(kr){return kr.kind===3}function Xe(kr,jr){for(var Nn=jr;Nn>=0;Nn--){var xi=_e[Nn];if(An(xi)){if(xi.labelText===kr)return!0}else break}return!1}function hr(kr){if(_e)if(kr)for(var jr=_e.length-1;jr>=0;jr--){var Nn=_e[jr];if(An(Nn)&&Nn.labelText===kr)return Nn.breakLabel;if(Tn(Nn)&&Xe(kr,jr-1))return Nn.breakLabel}else for(var jr=_e.length-1;jr>=0;jr--){var Nn=_e[jr];if(Tn(Nn))return Nn.breakLabel}return 0}function at(kr){if(_e)if(kr)for(var jr=_e.length-1;jr>=0;jr--){var Nn=_e[jr];if(ii(Nn)&&Xe(kr,jr-1))return Nn.continueLabel}else for(var jr=_e.length-1;jr>=0;jr--){var Nn=_e[jr];if(ii(Nn))return Nn.continueLabel}return 0}function Qe(kr){if(kr!==void 0&&kr>0){oe===void 0&&(oe=[]);var jr=v.createNumericLiteral(-1);return oe[kr]===void 0?oe[kr]=[jr]:oe[kr].push(jr),jr}return v.createOmittedExpression()}function Qt(kr){var jr=v.createNumericLiteral(kr);return e.addSyntheticTrailingComment(jr,3,O(kr)),jr}function Zt(kr,jr){return e.Debug.assertLessThan(0,kr,"Invalid label"),e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([Qt(3),Qe(kr)])),jr)}function Tt(kr,jr){return e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(kr?[Qt(2),kr]:[Qt(2)])),jr)}function gt(kr){return e.setTextRange(v.createCallExpression(v.createPropertyAccessExpression(H,"sent"),void 0,[]),kr)}function kt(){Ri(0)}function Lt(kr){kr?Ri(1,[kr]):kt()}function $e(kr,jr,Nn){Ri(2,[kr,jr],Nn)}function et(kr,jr){Ri(3,[kr],jr)}function It(kr,jr,Nn){Ri(4,[kr,jr],Nn)}function xn(kr,jr,Nn){Ri(5,[kr,jr],Nn)}function pi(kr,jr){Ri(7,[kr],jr)}function ai(kr,jr){Ri(6,[kr],jr)}function Wi(kr,jr){Ri(8,[kr],jr)}function ji(kr,jr){Ri(9,[kr],jr)}function fn(){Ri(10)}function Ri(kr,jr,Nn){re===void 0&&(re=[],M=[],U=[]),ne===void 0&&dr(We());var xi=re.length;re[xi]=kr,M[xi]=jr,U[xi]=Nn}function ma(){q=0,R=0,K=void 0,I=!1,he=!1,le=void 0,ee=void 0,J=void 0,de=void 0,De=void 0;var kr=ra();return S().createGeneratorHelper(e.setEmitFlags(v.createFunctionExpression(void 0,void 0,void 0,void 0,[v.createParameterDeclaration(void 0,void 0,H)],void 0,v.createBlock(kr,kr.length>0)),524288))}function ra(){if(re){for(var kr=0;kr<re.length;kr++)ts(kr);zo(re.length)}else zo(0);if(le){var jr=v.createPropertyAccessExpression(H,"label"),Nn=v.createSwitchStatement(jr,v.createCaseBlock(le));return[e.startOnNewLine(Nn)]}return ee||[]}function vn(){ee&&(Ha(!I),I=!1,he=!1,R++)}function zo(kr){_a(kr)&&(Do(kr),De=void 0,Oo(void 0,void 0)),ee&&le&&Ha(!1),Ka()}function _a(kr){if(!he)return!0;if(!ne||!oe)return!1;for(var jr=0;jr<ne.length;jr++)if(ne[jr]===kr&&oe[jr])return!0;return!1}function Ha(kr){if(le||(le=[]),ee){if(De)for(var jr=De.length-1;jr>=0;jr--){var Nn=De[jr];ee=[v.createWithStatement(Nn.expression,v.createBlock(ee))]}if(de){var xi=de.startLabel,ka=de.catchLabel,ro=de.finallyLabel,Ye=de.endLabel;ee.unshift(v.createExpressionStatement(v.createCallExpression(v.createPropertyAccessExpression(v.createPropertyAccessExpression(H,"trys"),"push"),void 0,[v.createArrayLiteralExpression([Qe(xi),Qe(ka),Qe(ro),Qe(Ye)])]))),de=void 0}kr&&ee.push(v.createExpressionStatement(v.createAssignment(v.createPropertyAccessExpression(H,"label"),v.createNumericLiteral(R+1))))}le.push(v.createCaseClause(v.createNumericLiteral(R),ee||[])),ee=void 0}function Do(kr){if(ne)for(var jr=0;jr<ne.length;jr++)ne[jr]===kr&&(vn(),K===void 0&&(K=[]),K[R]===void 0?K[R]=[jr]:K[R].push(jr))}function Ka(){if(oe!==void 0&&K!==void 0)for(var kr=0;kr<K.length;kr++){var jr=K[kr];if(jr!==void 0)for(var Nn=0,xi=jr;Nn<xi.length;Nn++){var ka=xi[Nn],ro=oe[ka];if(ro!==void 0)for(var Ye=0,lt=ro;Ye<lt.length;Ye++){var Ut=lt[Ye];Ut.text=String(kr)}}}}function rs(kr){if(ge)for(;q<fe.length&&Pe[q]<=kr;q++){var jr=ge[q],Nn=fe[q];switch(jr.kind){case 0:Nn===0?(J||(J=[]),ee||(ee=[]),J.push(de),de=jr):Nn===1&&(de=J.pop());break;case 1:Nn===0?(De||(De=[]),De.push(jr)):Nn===1&&De.pop();break}}}function ts(kr){if(Do(kr),rs(kr),!I){I=!1,he=!1;var jr=re[kr];if(jr!==0){if(jr===10)return Ko();var Nn=M[kr];if(jr===1)return En(Nn[0]);var xi=U[kr];switch(jr){case 2:return ca(Nn[0],Nn[1],xi);case 3:return Ws(Nn[0],xi);case 4:return Co(Nn[0],Nn[1],xi);case 5:return qs(Nn[0],Nn[1],xi);case 6:return gs(Nn[0],xi);case 7:return Ds(Nn[0],xi);case 8:return Oo(Nn[0],xi);case 9:return bo(Nn[0],xi)}}}}function En(kr){kr&&(ee?ee.push(kr):ee=[kr])}function ca(kr,jr,Nn){En(e.setTextRange(v.createExpressionStatement(v.createAssignment(kr,jr)),Nn))}function bo(kr,jr){I=!0,he=!0,En(e.setTextRange(v.createThrowStatement(kr),jr))}function Oo(kr,jr){I=!0,he=!0,En(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(kr?[Qt(2),kr]:[Qt(2)])),jr),384))}function Ws(kr,jr){I=!0,En(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([Qt(3),Qe(kr)])),jr),384))}function Co(kr,jr,Nn){En(e.setEmitFlags(v.createIfStatement(jr,e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([Qt(3),Qe(kr)])),Nn),384)),1))}function qs(kr,jr,Nn){En(e.setEmitFlags(v.createIfStatement(v.createLogicalNot(jr),e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([Qt(3),Qe(kr)])),Nn),384)),1))}function gs(kr,jr){I=!0,En(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(kr?[Qt(4),kr]:[Qt(4)])),jr),384))}function Ds(kr,jr){I=!0,En(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([Qt(5),kr])),jr),384))}function Ko(){I=!0,En(v.createReturnStatement(v.createArrayLiteralExpression([Qt(7)])))}}e.transformGenerators=W})(h||(h={}));var h;(function(e){function c(T){function s(Fe){switch(Fe){case e.ModuleKind.AMD:return _e;case e.ModuleKind.UMD:return ne;default:return fe}}var D=T.factory,O=T.getEmitHelperFactory,W=T.startLexicalEnvironment,E=T.endLexicalEnvironment,v=T.hoistVariableDeclaration,S=T.getCompilerOptions(),te=T.getEmitResolver(),Y=T.getEmitHost(),Z=e.getEmitScriptTarget(S),ce=e.getEmitModuleKind(S),k=T.onSubstituteNode,X=T.onEmitNode;T.onSubstituteNode=or,T.onEmitNode=ut,T.enableSubstitution(210),T.enableSubstitution(212),T.enableSubstitution(79),T.enableSubstitution(223),T.enableSubstitution(300),T.enableEmitNotification(308);var A=[],y=[],C,B,F=[],z;return e.chainBundle(T,ge);function ge(Fe){if(Fe.isDeclarationFile||!(e.isEffectiveExternalModule(Fe,S)||Fe.transformFlags&8388608||e.isJsonSourceFile(Fe)&&e.hasJsonModuleEmitEnabled(S)&&e.outFile(S)))return Fe;C=Fe,B=e.collectExternalModuleInfo(T,Fe,te,S),A[e.getOriginalNodeId(Fe)]=B;var vr=s(ce),Le=vr(Fe);return C=void 0,B=void 0,z=!1,Le}function Pe(){return!!(!B.exportEquals&&e.isExternalModule(C))}function fe(Fe){W();var vr=[],Le=e.getStrictOptionValue(S,"alwaysStrict")||!S.noImplicitUseStrict&&e.isExternalModule(C),cr=D.copyPrologue(Fe.statements,vr,Le&&!e.isJsonSourceFile(Fe),U);if(Pe()&&e.append(vr,wr()),e.length(B.exportedNames))for(var $r=50,Re=0;Re<B.exportedNames.length;Re+=$r)e.append(vr,D.createExpressionStatement(e.reduceLeft(B.exportedNames.slice(Re,Re+$r),function(Br,Qr){return D.createAssignment(D.createPropertyAccessExpression(D.createIdentifier("exports"),D.createIdentifier(e.idText(Qr))),Br)},D.createVoidZero())));e.append(vr,e.visitNode(B.externalHelpersImportDeclaration,U,e.isStatement)),e.addRange(vr,e.visitNodes(Fe.statements,U,e.isStatement,cr)),M(vr,!1),e.insertStatementsAfterStandardPrologue(vr,E());var xr=D.updateSourceFile(Fe,e.setTextRange(D.createNodeArray(vr),Fe.statements));return e.addEmitHelpers(xr,T.readEmitHelpers()),xr}function _e(Fe){var vr=D.createIdentifier("define"),Le=e.tryGetModuleNameFromFile(D,Fe,Y,S),cr=e.isJsonSourceFile(Fe)&&Fe,$r=oe(Fe,!0),Re=$r.aliasedModuleNames,xr=$r.unaliasedModuleNames,Br=$r.importAliasNames,Qr=D.updateSourceFile(Fe,e.setTextRange(D.createNodeArray([D.createExpressionStatement(D.createCallExpression(vr,void 0,t(t([],Le?[Le]:[],!0),[D.createArrayLiteralExpression(cr?e.emptyArray:t(t([D.createStringLiteral("require"),D.createStringLiteral("exports")],Re,!0),xr,!0)),cr?cr.statements.length?cr.statements[0].expression:D.createObjectLiteralExpression():D.createFunctionExpression(void 0,void 0,void 0,void 0,t([D.createParameterDeclaration(void 0,void 0,"require"),D.createParameterDeclaration(void 0,void 0,"exports")],Br,!0),void 0,re(Fe))],!1)))]),Fe.statements));return e.addEmitHelpers(Qr,T.readEmitHelpers()),Qr}function ne(Fe){var vr=oe(Fe,!1),Le=vr.aliasedModuleNames,cr=vr.unaliasedModuleNames,$r=vr.importAliasNames,Re=e.tryGetModuleNameFromFile(D,Fe,Y,S),xr=D.createFunctionExpression(void 0,void 0,void 0,void 0,[D.createParameterDeclaration(void 0,void 0,"factory")],void 0,e.setTextRange(D.createBlock([D.createIfStatement(D.createLogicalAnd(D.createTypeCheck(D.createIdentifier("module"),"object"),D.createTypeCheck(D.createPropertyAccessExpression(D.createIdentifier("module"),"exports"),"object")),D.createBlock([D.createVariableStatement(void 0,[D.createVariableDeclaration("v",void 0,void 0,D.createCallExpression(D.createIdentifier("factory"),void 0,[D.createIdentifier("require"),D.createIdentifier("exports")]))]),e.setEmitFlags(D.createIfStatement(D.createStrictInequality(D.createIdentifier("v"),D.createIdentifier("undefined")),D.createExpressionStatement(D.createAssignment(D.createPropertyAccessExpression(D.createIdentifier("module"),"exports"),D.createIdentifier("v")))),1)]),D.createIfStatement(D.createLogicalAnd(D.createTypeCheck(D.createIdentifier("define"),"function"),D.createPropertyAccessExpression(D.createIdentifier("define"),"amd")),D.createBlock([D.createExpressionStatement(D.createCallExpression(D.createIdentifier("define"),void 0,t(t([],Re?[Re]:[],!0),[D.createArrayLiteralExpression(t(t([D.createStringLiteral("require"),D.createStringLiteral("exports")],Le,!0),cr,!0)),D.createIdentifier("factory")],!1)))])))],!0),void 0)),Br=D.updateSourceFile(Fe,e.setTextRange(D.createNodeArray([D.createExpressionStatement(D.createCallExpression(xr,void 0,[D.createFunctionExpression(void 0,void 0,void 0,void 0,t([D.createParameterDeclaration(void 0,void 0,"require"),D.createParameterDeclaration(void 0,void 0,"exports")],$r,!0),void 0,re(Fe))]))]),Fe.statements));return e.addEmitHelpers(Br,T.readEmitHelpers()),Br}function oe(Fe,vr){for(var Le=[],cr=[],$r=[],Re=0,xr=Fe.amdDependencies;Re<xr.length;Re++){var Br=xr[Re];Br.name?(Le.push(D.createStringLiteral(Br.path)),$r.push(D.createParameterDeclaration(void 0,void 0,Br.name))):cr.push(D.createStringLiteral(Br.path))}for(var Qr=0,ct=B.externalImports;Qr<ct.length;Qr++){var ft=ct[Qr],Dt=e.getExternalModuleNameLiteral(D,ft,C,Y,te,S),Me=e.getLocalNameForExternalImport(D,ft,C);Dt&&(vr&&Me?(e.setEmitFlags(Me,4),Le.push(Dt),$r.push(D.createParameterDeclaration(void 0,void 0,Me))):cr.push(Dt))}return{aliasedModuleNames:Le,unaliasedModuleNames:cr,importAliasNames:$r}}function w(Fe){if(!(e.isImportEqualsDeclaration(Fe)||e.isExportDeclaration(Fe)||!e.getExternalModuleNameLiteral(D,Fe,C,Y,te,S))){var vr=e.getLocalNameForExternalImport(D,Fe,C),Le=ae(Fe,vr);if(Le!==vr)return D.createExpressionStatement(D.createAssignment(vr,Le))}}function re(Fe){W();var vr=[],Le=D.copyPrologue(Fe.statements,vr,!S.noImplicitUseStrict,U);Pe()&&e.append(vr,wr()),e.length(B.exportedNames)&&e.append(vr,D.createExpressionStatement(e.reduceLeft(B.exportedNames,function($r,Re){return D.createAssignment(D.createPropertyAccessExpression(D.createIdentifier("exports"),D.createIdentifier(e.idText(Re))),$r)},D.createVoidZero()))),e.append(vr,e.visitNode(B.externalHelpersImportDeclaration,U,e.isStatement)),ce===e.ModuleKind.AMD&&e.addRange(vr,e.mapDefined(B.externalImports,w)),e.addRange(vr,e.visitNodes(Fe.statements,U,e.isStatement,Le)),M(vr,!0),e.insertStatementsAfterStandardPrologue(vr,E());var cr=D.createBlock(vr,!0);return z&&e.addEmitHelper(cr,P),cr}function M(Fe,vr){if(B.exportEquals){var Le=e.visitNode(B.exportEquals.expression,q);if(Le)if(vr){var cr=D.createReturnStatement(Le);e.setTextRange(cr,B.exportEquals),e.setEmitFlags(cr,1920),Fe.push(cr)}else{var cr=D.createExpressionStatement(D.createAssignment(D.createPropertyAccessExpression(D.createIdentifier("module"),"exports"),Le));e.setTextRange(cr,B.exportEquals),e.setEmitFlags(cr,1536),Fe.push(cr)}}}function U(Fe){switch(Fe.kind){case 269:return Te(Fe);case 268:return we(Fe);case 275:return nr(Fe);case 274:return tr(Fe);case 240:return rr(Fe);case 259:return me(Fe);case 260:return He(Fe);case 355:return Ae(Fe);case 356:return xe(Fe);default:return q(Fe)}}function H(Fe,vr){if(!(Fe.transformFlags&276828160))return Fe;switch(Fe.kind){case 245:return he(Fe);case 241:return le(Fe);case 214:return ee(Fe,vr);case 353:return J(Fe,vr);case 210:if(e.isImportCall(Fe)&&C.impliedNodeFormat===void 0)return De(Fe);break;case 223:if(e.isDestructuringAssignment(Fe))return I(Fe,vr);break;case 221:case 222:return de(Fe,vr)}return e.visitEachChild(Fe,q,T)}function q(Fe){return H(Fe,!1)}function R(Fe){return H(Fe,!0)}function K(Fe){if(e.isObjectLiteralExpression(Fe))for(var vr=0,Le=Fe.properties;vr<Le.length;vr++){var cr=Le[vr];switch(cr.kind){case 299:if(K(cr.initializer))return!0;break;case 300:if(K(cr.name))return!0;break;case 301:if(K(cr.expression))return!0;break;case 171:case 174:case 175:return!1;default:e.Debug.assertNever(cr,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(Fe))for(var $r=0,Re=Fe.elements;$r<Re.length;$r++){var cr=Re[$r];if(e.isSpreadElement(cr)){if(K(cr.expression))return!0}else if(K(cr))return!0}else if(e.isIdentifier(Fe))return e.length(yt(Fe))>(e.isExportName(Fe)?1:0);return!1}function I(Fe,vr){return K(Fe.left)?e.flattenDestructuringAssignment(Fe,q,T,0,!vr,je):e.visitEachChild(Fe,q,T)}function he(Fe){return D.updateForStatement(Fe,e.visitNode(Fe.initializer,R,e.isForInitializer),e.visitNode(Fe.condition,q,e.isExpression),e.visitNode(Fe.incrementor,R,e.isExpression),e.visitIterationBody(Fe.statement,q,T))}function le(Fe){return D.updateExpressionStatement(Fe,e.visitNode(Fe.expression,R,e.isExpression))}function ee(Fe,vr){return D.updateParenthesizedExpression(Fe,e.visitNode(Fe.expression,vr?R:q,e.isExpression))}function J(Fe,vr){return D.updatePartiallyEmittedExpression(Fe,e.visitNode(Fe.expression,vr?R:q,e.isExpression))}function de(Fe,vr){if((Fe.operator===45||Fe.operator===46)&&e.isIdentifier(Fe.operand)&&!e.isGeneratedIdentifier(Fe.operand)&&!e.isLocalName(Fe.operand)&&!e.isDeclarationNameOfEnumOrNamespace(Fe.operand)){var Le=yt(Fe.operand);if(Le){var cr=void 0,$r=e.visitNode(Fe.operand,q,e.isExpression);e.isPrefixUnaryExpression(Fe)?$r=D.updatePrefixUnaryExpression(Fe,$r):($r=D.updatePostfixUnaryExpression(Fe,$r),vr||(cr=D.createTempVariable(v),$r=D.createAssignment(cr,$r),e.setTextRange($r,Fe)),$r=D.createComma($r,D.cloneNode(Fe.operand)),e.setTextRange($r,Fe));for(var Re=0,xr=Le;Re<xr.length;Re++){var Br=xr[Re];F[e.getNodeId($r)]=!0,$r=Ze(Br,$r),e.setTextRange($r,Fe)}return cr&&(F[e.getNodeId($r)]=!0,$r=D.createComma($r,cr),e.setTextRange($r,Fe)),$r}}return e.visitEachChild(Fe,q,T)}function De(Fe){var vr=e.getExternalModuleNameLiteral(D,Fe,C,Y,te,S),Le=e.visitNode(e.firstOrUndefined(Fe.arguments),q),cr=vr&&(!Le||!e.isStringLiteral(Le)||Le.text!==vr.text)?vr:Le,$r=!!(Fe.transformFlags&16384);switch(S.module){case e.ModuleKind.AMD:return b(cr,$r);case e.ModuleKind.UMD:return N(cr??D.createVoidZero(),$r);case e.ModuleKind.CommonJS:default:return Q(cr)}}function N(Fe,vr){if(z=!0,e.isSimpleCopiableExpression(Fe)){var Le=e.isGeneratedIdentifier(Fe)?Fe:e.isStringLiteral(Fe)?D.createStringLiteralFromNode(Fe):e.setEmitFlags(e.setTextRange(D.cloneNode(Fe),Fe),1536);return D.createConditionalExpression(D.createIdentifier("__syncRequire"),void 0,Q(Fe),void 0,b(Le,vr))}else{var cr=D.createTempVariable(v);return D.createComma(D.createAssignment(cr,Fe),D.createConditionalExpression(D.createIdentifier("__syncRequire"),void 0,Q(cr,!0),void 0,b(cr,vr)))}}function b(Fe,vr){var Le=D.createUniqueName("resolve"),cr=D.createUniqueName("reject"),$r=[D.createParameterDeclaration(void 0,void 0,Le),D.createParameterDeclaration(void 0,void 0,cr)],Re=D.createBlock([D.createExpressionStatement(D.createCallExpression(D.createIdentifier("require"),void 0,[D.createArrayLiteralExpression([Fe||D.createOmittedExpression()]),Le,cr]))]),xr;Z>=2?xr=D.createArrowFunction(void 0,void 0,$r,void 0,void 0,Re):(xr=D.createFunctionExpression(void 0,void 0,void 0,void 0,$r,void 0,Re),vr&&e.setEmitFlags(xr,8));var Br=D.createNewExpression(D.createIdentifier("Promise"),void 0,[xr]);return e.getESModuleInterop(S)?D.createCallExpression(D.createPropertyAccessExpression(Br,D.createIdentifier("then")),void 0,[O().createImportStarCallbackHelper()]):Br}function Q(Fe,vr){var Le=Fe&&!e.isSimpleInlineableExpression(Fe)&&!vr?D.createTempVariable(v):void 0,cr=D.createCallExpression(D.createPropertyAccessExpression(D.createIdentifier("Promise"),"resolve"),void 0,[]),$r=D.createCallExpression(D.createIdentifier("require"),void 0,Le?[Le]:Fe?[Fe]:[]);e.getESModuleInterop(S)&&($r=O().createImportStarHelper($r));var Re;Z>=2?Re=D.createArrowFunction(void 0,void 0,[],void 0,void 0,$r):Re=D.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,D.createBlock([D.createReturnStatement($r)]));var xr=D.createCallExpression(D.createPropertyAccessExpression(cr,"then"),void 0,[Re]);return Le===void 0?xr:D.createCommaListExpression([D.createAssignment(Le,Fe),xr])}function G(Fe,vr){return!e.getESModuleInterop(S)||e.getEmitFlags(Fe)&67108864?vr:e.getExportNeedsImportStarHelper(Fe)?O().createImportStarHelper(vr):vr}function ae(Fe,vr){return!e.getESModuleInterop(S)||e.getEmitFlags(Fe)&67108864?vr:e.getImportNeedsImportStarHelper(Fe)?O().createImportStarHelper(vr):e.getImportNeedsImportDefaultHelper(Fe)?O().createImportDefaultHelper(vr):vr}function Te(Fe){var vr,Le=e.getNamespaceDeclarationNode(Fe);if(ce!==e.ModuleKind.AMD)if(Fe.importClause){var cr=[];Le&&!e.isDefaultImport(Fe)?cr.push(D.createVariableDeclaration(D.cloneNode(Le.name),void 0,void 0,ae(Fe,Ne(Fe)))):(cr.push(D.createVariableDeclaration(D.getGeneratedNameForNode(Fe),void 0,void 0,ae(Fe,Ne(Fe)))),Le&&e.isDefaultImport(Fe)&&cr.push(D.createVariableDeclaration(D.cloneNode(Le.name),void 0,void 0,D.getGeneratedNameForNode(Fe)))),vr=e.append(vr,e.setOriginalNode(e.setTextRange(D.createVariableStatement(void 0,D.createVariableDeclarationList(cr,Z>=2?2:0)),Fe),Fe))}else return e.setOriginalNode(e.setTextRange(D.createExpressionStatement(Ne(Fe)),Fe),Fe);else Le&&e.isDefaultImport(Fe)&&(vr=e.append(vr,D.createVariableStatement(void 0,D.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(D.createVariableDeclaration(D.cloneNode(Le.name),void 0,void 0,D.getGeneratedNameForNode(Fe)),Fe),Fe)],Z>=2?2:0))));if(qe(Fe)){var $r=e.getOriginalNodeId(Fe);y[$r]=L(y[$r],Fe)}else vr=L(vr,Fe);return e.singleOrMany(vr)}function Ne(Fe){var vr=e.getExternalModuleNameLiteral(D,Fe,C,Y,te,S),Le=[];return vr&&Le.push(vr),D.createCallExpression(D.createIdentifier("require"),void 0,Le)}function we(Fe){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Fe),"import= for internal module references should be handled in an earlier transformer.");var vr;if(ce!==e.ModuleKind.AMD?e.hasSyntacticModifier(Fe,1)?vr=e.append(vr,e.setOriginalNode(e.setTextRange(D.createExpressionStatement(Ze(Fe.name,Ne(Fe))),Fe),Fe)):vr=e.append(vr,e.setOriginalNode(e.setTextRange(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.cloneNode(Fe.name),void 0,void 0,Ne(Fe))],Z>=2?2:0)),Fe),Fe)):e.hasSyntacticModifier(Fe,1)&&(vr=e.append(vr,e.setOriginalNode(e.setTextRange(D.createExpressionStatement(Ze(D.getExportName(Fe),D.getLocalName(Fe))),Fe),Fe))),qe(Fe)){var Le=e.getOriginalNodeId(Fe);y[Le]=ue(y[Le],Fe)}else vr=ue(vr,Fe);return e.singleOrMany(vr)}function nr(Fe){if(Fe.moduleSpecifier){var vr=D.getGeneratedNameForNode(Fe);if(Fe.exportClause&&e.isNamedExports(Fe.exportClause)){var Le=[];ce!==e.ModuleKind.AMD&&Le.push(e.setOriginalNode(e.setTextRange(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(vr,void 0,void 0,Ne(Fe))])),Fe),Fe));for(var cr=0,$r=Fe.exportClause.elements;cr<$r.length;cr++){var Re=$r[cr];if(Z===0)Le.push(e.setOriginalNode(e.setTextRange(D.createExpressionStatement(O().createCreateBindingHelper(vr,D.createStringLiteralFromNode(Re.propertyName||Re.name),Re.propertyName?D.createStringLiteralFromNode(Re.name):void 0)),Re),Re));else{var xr=!!e.getESModuleInterop(S)&&!(e.getEmitFlags(Fe)&67108864)&&e.idText(Re.propertyName||Re.name)==="default",Br=D.createPropertyAccessExpression(xr?O().createImportDefaultHelper(vr):vr,Re.propertyName||Re.name);Le.push(e.setOriginalNode(e.setTextRange(D.createExpressionStatement(Ze(D.getExportName(Re),Br,void 0,!0)),Re),Re))}}return e.singleOrMany(Le)}else if(Fe.exportClause){var Le=[];return Le.push(e.setOriginalNode(e.setTextRange(D.createExpressionStatement(Ze(D.cloneNode(Fe.exportClause.name),G(Fe,ce!==e.ModuleKind.AMD?Ne(Fe):e.isExportNamespaceAsDefaultDeclaration(Fe)?vr:D.createIdentifier(e.idText(Fe.exportClause.name))))),Fe),Fe)),e.singleOrMany(Le)}else return e.setOriginalNode(e.setTextRange(D.createExpressionStatement(O().createExportStarHelper(ce!==e.ModuleKind.AMD?Ne(Fe):vr)),Fe),Fe)}}function tr(Fe){if(!Fe.isExportEquals){var vr,Le=Fe.original;if(Le&&qe(Le)){var cr=e.getOriginalNodeId(Fe);y[cr]=Hr(y[cr],D.createIdentifier("default"),e.visitNode(Fe.expression,q),Fe,!0)}else vr=Hr(vr,D.createIdentifier("default"),e.visitNode(Fe.expression,q),Fe,!0);return e.singleOrMany(vr)}}function me(Fe){var vr;if(e.hasSyntacticModifier(Fe,1)?vr=e.append(vr,e.setOriginalNode(e.setTextRange(D.createFunctionDeclaration(e.visitNodes(Fe.modifiers,tt,e.isModifier),Fe.asteriskToken,D.getDeclarationName(Fe,!0,!0),void 0,e.visitNodes(Fe.parameters,q),void 0,e.visitEachChild(Fe.body,q,T)),Fe),Fe)):vr=e.append(vr,e.visitEachChild(Fe,q,T)),qe(Fe)){var Le=e.getOriginalNodeId(Fe);y[Le]=lr(y[Le],Fe)}else vr=lr(vr,Fe);return e.singleOrMany(vr)}function He(Fe){var vr;if(e.hasSyntacticModifier(Fe,1)?vr=e.append(vr,e.setOriginalNode(e.setTextRange(D.createClassDeclaration(e.visitNodes(Fe.modifiers,tt,e.isModifierLike),D.getDeclarationName(Fe,!0,!0),void 0,e.visitNodes(Fe.heritageClauses,q),e.visitNodes(Fe.members,q)),Fe),Fe)):vr=e.append(vr,e.visitEachChild(Fe,q,T)),qe(Fe)){var Le=e.getOriginalNodeId(Fe);y[Le]=lr(y[Le],Fe)}else vr=lr(vr,Fe);return e.singleOrMany(vr)}function rr(Fe){var vr,Le,cr;if(e.hasSyntacticModifier(Fe,1)){for(var $r=void 0,Re=!1,xr=0,Br=Fe.declarationList.declarations;xr<Br.length;xr++){var Qr=Br[xr];if(e.isIdentifier(Qr.name)&&e.isLocalName(Qr.name))$r||($r=e.visitNodes(Fe.modifiers,tt,e.isModifier)),Le=e.append(Le,Qr);else if(Qr.initializer)if(!e.isBindingPattern(Qr.name)&&(e.isArrowFunction(Qr.initializer)||e.isFunctionExpression(Qr.initializer)||e.isClassExpression(Qr.initializer))){var ct=D.createAssignment(e.setTextRange(D.createPropertyAccessExpression(D.createIdentifier("exports"),Qr.name),Qr.name),D.createIdentifier(e.getTextOfIdentifierOrLiteral(Qr.name))),ft=D.createVariableDeclaration(Qr.name,Qr.exclamationToken,Qr.type,e.visitNode(Qr.initializer,q));Le=e.append(Le,ft),cr=e.append(cr,ct),Re=!0}else cr=e.append(cr,Ce(Qr))}if(Le&&(vr=e.append(vr,D.updateVariableStatement(Fe,$r,D.updateVariableDeclarationList(Fe.declarationList,Le)))),cr){var Dt=e.setOriginalNode(e.setTextRange(D.createExpressionStatement(D.inlineExpressions(cr)),Fe),Fe);Re&&e.removeAllComments(Dt),vr=e.append(vr,Dt)}}else vr=e.append(vr,e.visitEachChild(Fe,q,T));if(qe(Fe)){var Me=e.getOriginalNodeId(Fe);y[Me]=Ue(y[Me],Fe)}else vr=Ue(vr,Fe);return e.singleOrMany(vr)}function je(Fe,vr,Le){var cr=yt(Fe);if(cr){for(var $r=e.isExportName(Fe)?vr:D.createAssignment(Fe,vr),Re=0,xr=cr;Re<xr.length;Re++){var Br=xr[Re];e.setEmitFlags($r,4),$r=Ze(Br,$r,Le)}return $r}return D.createAssignment(Fe,vr)}function Ce(Fe){return e.isBindingPattern(Fe.name)?e.flattenDestructuringAssignment(e.visitNode(Fe,q),void 0,T,0,!1,je):D.createAssignment(e.setTextRange(D.createPropertyAccessExpression(D.createIdentifier("exports"),Fe.name),Fe.name),Fe.initializer?e.visitNode(Fe.initializer,q):D.createVoidZero())}function Ae(Fe){if(qe(Fe)&&Fe.original.kind===240){var vr=e.getOriginalNodeId(Fe);y[vr]=Ue(y[vr],Fe.original)}return Fe}function qe(Fe){return(e.getEmitFlags(Fe)&4194304)!==0}function xe(Fe){var vr=e.getOriginalNodeId(Fe),Le=y[vr];return Le?(delete y[vr],e.append(Le,Fe)):Fe}function L(Fe,vr){if(B.exportEquals)return Fe;var Le=vr.importClause;if(!Le)return Fe;Le.name&&(Fe=mr(Fe,Le));var cr=Le.namedBindings;if(cr)switch(cr.kind){case 271:Fe=mr(Fe,cr);break;case 272:for(var $r=0,Re=cr.elements;$r<Re.length;$r++){var xr=Re[$r];Fe=mr(Fe,xr,!0)}break}return Fe}function ue(Fe,vr){return B.exportEquals?Fe:mr(Fe,vr)}function Ue(Fe,vr){if(B.exportEquals)return Fe;for(var Le=0,cr=vr.declarationList.declarations;Le<cr.length;Le++){var $r=cr[Le];Fe=Je(Fe,$r)}return Fe}function Je(Fe,vr){if(B.exportEquals)return Fe;if(e.isBindingPattern(vr.name))for(var Le=0,cr=vr.name.elements;Le<cr.length;Le++){var $r=cr[Le];e.isOmittedExpression($r)||(Fe=Je(Fe,$r))}else e.isGeneratedIdentifier(vr.name)||(Fe=mr(Fe,vr));return Fe}function lr(Fe,vr){if(B.exportEquals)return Fe;if(e.hasSyntacticModifier(vr,1)){var Le=e.hasSyntacticModifier(vr,1024)?D.createIdentifier("default"):D.getDeclarationName(vr);Fe=Hr(Fe,Le,D.getLocalName(vr),vr)}return vr.name&&(Fe=mr(Fe,vr)),Fe}function mr(Fe,vr,Le){var cr=D.getDeclarationName(vr),$r=B.exportSpecifiers.get(e.idText(cr));if($r)for(var Re=0,xr=$r;Re<xr.length;Re++){var Br=xr[Re];Fe=Hr(Fe,Br.name,cr,Br.name,void 0,Le)}return Fe}function Hr(Fe,vr,Le,cr,$r,Re){return Fe=e.append(Fe,Oe(vr,Le,cr,$r,Re)),Fe}function wr(){var Fe;return Z===0?Fe=D.createExpressionStatement(Ze(D.createIdentifier("__esModule"),D.createTrue())):Fe=D.createExpressionStatement(D.createCallExpression(D.createPropertyAccessExpression(D.createIdentifier("Object"),"defineProperty"),void 0,[D.createIdentifier("exports"),D.createStringLiteral("__esModule"),D.createObjectLiteralExpression([D.createPropertyAssignment("value",D.createTrue())])])),e.setEmitFlags(Fe,1048576),Fe}function Oe(Fe,vr,Le,cr,$r){var Re=e.setTextRange(D.createExpressionStatement(Ze(Fe,vr,void 0,$r)),Le);return e.startOnNewLine(Re),cr||e.setEmitFlags(Re,1536),Re}function Ze(Fe,vr,Le,cr){return e.setTextRange(cr&&Z!==0?D.createCallExpression(D.createPropertyAccessExpression(D.createIdentifier("Object"),"defineProperty"),void 0,[D.createIdentifier("exports"),D.createStringLiteralFromNode(Fe),D.createObjectLiteralExpression([D.createPropertyAssignment("enumerable",D.createTrue()),D.createPropertyAssignment("get",D.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,D.createBlock([D.createReturnStatement(vr)])))])]):D.createAssignment(D.createPropertyAccessExpression(D.createIdentifier("exports"),D.cloneNode(Fe)),vr),Le)}function tt(Fe){switch(Fe.kind){case 93:case 88:return}return Fe}function ut(Fe,vr,Le){vr.kind===308?(C=vr,B=A[e.getOriginalNodeId(C)],X(Fe,vr,Le),C=void 0,B=void 0):X(Fe,vr,Le)}function or(Fe,vr){return vr=k(Fe,vr),vr.id&&F[vr.id]?vr:Fe===1?Rr(vr):e.isShorthandPropertyAssignment(vr)?qr(vr):vr}function qr(Fe){var vr=Fe.name,Le=_t(vr);if(Le!==vr){if(Fe.objectAssignmentInitializer){var cr=D.createAssignment(Le,Fe.objectAssignmentInitializer);return e.setTextRange(D.createPropertyAssignment(vr,cr),Fe)}return e.setTextRange(D.createPropertyAssignment(vr,Le),Fe)}return Fe}function Rr(Fe){switch(Fe.kind){case 79:return _t(Fe);case 210:return zr(Fe);case 212:return Fr(Fe);case 223:return Ct(Fe)}return Fe}function zr(Fe){if(e.isIdentifier(Fe.expression)){var vr=_t(Fe.expression);if(F[e.getNodeId(vr)]=!0,!e.isIdentifier(vr)&&!(e.getEmitFlags(Fe.expression)&4096))return e.addEmitFlags(D.updateCallExpression(Fe,vr,void 0,Fe.arguments),536870912)}return Fe}function Fr(Fe){if(e.isIdentifier(Fe.tag)){var vr=_t(Fe.tag);if(F[e.getNodeId(vr)]=!0,!e.isIdentifier(vr)&&!(e.getEmitFlags(Fe.tag)&4096))return e.addEmitFlags(D.updateTaggedTemplateExpression(Fe,vr,void 0,Fe.template),536870912)}return Fe}function _t(Fe){var vr,Le;if(e.getEmitFlags(Fe)&4096){var cr=e.getExternalHelpersModuleName(C);return cr?D.createPropertyAccessExpression(cr,Fe):Fe}else if(!(e.isGeneratedIdentifier(Fe)&&!(Fe.autoGenerateFlags&64))&&!e.isLocalName(Fe)){var $r=te.getReferencedExportContainer(Fe,e.isExportName(Fe));if($r&&$r.kind===308)return e.setTextRange(D.createPropertyAccessExpression(D.createIdentifier("exports"),D.cloneNode(Fe)),Fe);var Re=te.getReferencedImportDeclaration(Fe);if(Re){if(e.isImportClause(Re))return e.setTextRange(D.createPropertyAccessExpression(D.getGeneratedNameForNode(Re.parent),D.createIdentifier("default")),Fe);if(e.isImportSpecifier(Re)){var xr=Re.propertyName||Re.name;return e.setTextRange(D.createPropertyAccessExpression(D.getGeneratedNameForNode(((Le=(vr=Re.parent)===null||vr===void 0?void 0:vr.parent)===null||Le===void 0?void 0:Le.parent)||Re),D.cloneNode(xr)),Fe)}}}return Fe}function Ct(Fe){if(e.isAssignmentOperator(Fe.operatorToken.kind)&&e.isIdentifier(Fe.left)&&!e.isGeneratedIdentifier(Fe.left)&&!e.isLocalName(Fe.left)&&!e.isDeclarationNameOfEnumOrNamespace(Fe.left)){var vr=yt(Fe.left);if(vr){for(var Le=Fe,cr=0,$r=vr;cr<$r.length;cr++){var Re=$r[cr];F[e.getNodeId(Le)]=!0,Le=Ze(Re,Le,Fe)}return Le}}return Fe}function yt(Fe){if(!e.isGeneratedIdentifier(Fe)){var vr=te.getReferencedImportDeclaration(Fe)||te.getReferencedValueDeclaration(Fe);if(vr)return B&&B.exportedBindings[e.getOriginalNodeId(vr)]}}}e.transformModule=c;var P={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(h||(h={}));var h;(function(e){function c(P){var T=P.factory,s=P.startLexicalEnvironment,D=P.endLexicalEnvironment,O=P.hoistVariableDeclaration,W=P.getCompilerOptions(),E=P.getEmitResolver(),v=P.getEmitHost(),S=P.onSubstituteNode,te=P.onEmitNode;P.onSubstituteNode=cr,P.onEmitNode=Le,P.enableSubstitution(79),P.enableSubstitution(300),P.enableSubstitution(223),P.enableSubstitution(233),P.enableEmitNotification(308);var Y=[],Z=[],ce=[],k=[],X=[],A,y,C,B,F,z,ge;return e.chainBundle(P,Pe);function Pe(Ke){if(Ke.isDeclarationFile||!(e.isEffectiveExternalModule(Ke,W)||Ke.transformFlags&8388608))return Ke;var Vr=e.getOriginalNodeId(Ke);A=Ke,z=Ke,y=Y[Vr]=e.collectExternalModuleInfo(P,Ke,E,W),C=T.createUniqueName("exports"),ce[Vr]=C,B=X[Vr]=T.createUniqueName("context");var Yr=fe(y.externalImports),Nt=_e(Ke,Yr),Wt=T.createFunctionExpression(void 0,void 0,void 0,void 0,[T.createParameterDeclaration(void 0,void 0,C),T.createParameterDeclaration(void 0,void 0,B)],void 0,Nt),sn=e.tryGetModuleNameFromFile(T,Ke,v,W),en=T.createArrayLiteralExpression(e.map(Yr,function(Jr){return Jr.name})),Ir=e.setEmitFlags(T.updateSourceFile(Ke,e.setTextRange(T.createNodeArray([T.createExpressionStatement(T.createCallExpression(T.createPropertyAccessExpression(T.createIdentifier("System"),"register"),void 0,sn?[sn,en,Wt]:[en,Wt]))]),Ke.statements)),1024);return e.outFile(W)||e.moveEmitHelpers(Ir,Nt,function(Jr){return!Jr.scoped}),ge&&(k[Vr]=ge,ge=void 0),A=void 0,y=void 0,C=void 0,B=void 0,F=void 0,z=void 0,Ir}function fe(Ke){for(var Vr=new e.Map,Yr=[],Nt=0,Wt=Ke;Nt<Wt.length;Nt++){var sn=Wt[Nt],en=e.getExternalModuleNameLiteral(T,sn,A,v,E,W);if(en){var Ir=en.text,Jr=Vr.get(Ir);Jr!==void 0?Yr[Jr].externalImports.push(sn):(Vr.set(Ir,Yr.length),Yr.push({name:en,externalImports:[sn]}))}}return Yr}function _e(Ke,Vr){var Yr=[];s();var Nt=e.getStrictOptionValue(W,"alwaysStrict")||!W.noImplicitUseStrict&&e.isExternalModule(A),Wt=T.copyPrologue(Ke.statements,Yr,Nt,re);Yr.push(T.createVariableStatement(void 0,T.createVariableDeclarationList([T.createVariableDeclaration("__moduleName",void 0,void 0,T.createLogicalAnd(B,T.createPropertyAccessExpression(B,"id")))]))),e.visitNode(y.externalHelpersImportDeclaration,re,e.isStatement);var sn=e.visitNodes(Ke.statements,re,e.isStatement,Wt);e.addRange(Yr,F),e.insertStatementsAfterStandardPrologue(Yr,D());var en=ne(Yr),Ir=Ke.transformFlags&2097152?T.createModifiersFromModifierFlags(512):void 0,Jr=T.createObjectLiteralExpression([T.createPropertyAssignment("setters",w(en,Vr)),T.createPropertyAssignment("execute",T.createFunctionExpression(Ir,void 0,void 0,void 0,[],void 0,T.createBlock(sn,!0)))],!0);return Yr.push(T.createReturnStatement(Jr)),T.createBlock(Yr,!0)}function ne(Ke){if(y.hasExportStarsToExportValues){if(!y.exportedNames&&y.exportSpecifiers.size===0){for(var Vr=!1,Yr=0,Nt=y.externalImports;Yr<Nt.length;Yr++){var Wt=Nt[Yr];if(Wt.kind===275&&Wt.exportClause){Vr=!0;break}}if(!Vr){var sn=oe(void 0);return Ke.push(sn),sn.name}}var en=[];if(y.exportedNames)for(var Ir=0,Jr=y.exportedNames;Ir<Jr.length;Ir++){var ye=Jr[Ir];ye.escapedText!=="default"&&en.push(T.createPropertyAssignment(T.createStringLiteralFromNode(ye),T.createTrue()))}var Ie=T.createUniqueName("exportedNames");Ke.push(T.createVariableStatement(void 0,T.createVariableDeclarationList([T.createVariableDeclaration(Ie,void 0,void 0,T.createObjectLiteralExpression(en,!0))])));var We=oe(Ie);return Ke.push(We),We.name}}function oe(Ke){var Vr=T.createUniqueName("exportStar"),Yr=T.createIdentifier("m"),Nt=T.createIdentifier("n"),Wt=T.createIdentifier("exports"),sn=T.createStrictInequality(Nt,T.createStringLiteral("default"));return Ke&&(sn=T.createLogicalAnd(sn,T.createLogicalNot(T.createCallExpression(T.createPropertyAccessExpression(Ke,"hasOwnProperty"),void 0,[Nt])))),T.createFunctionDeclaration(void 0,void 0,Vr,void 0,[T.createParameterDeclaration(void 0,void 0,Yr)],void 0,T.createBlock([T.createVariableStatement(void 0,T.createVariableDeclarationList([T.createVariableDeclaration(Wt,void 0,void 0,T.createObjectLiteralExpression([]))])),T.createForInStatement(T.createVariableDeclarationList([T.createVariableDeclaration(Nt)]),Yr,T.createBlock([e.setEmitFlags(T.createIfStatement(sn,T.createExpressionStatement(T.createAssignment(T.createElementAccessExpression(Wt,Nt),T.createElementAccessExpression(Yr,Nt)))),1)])),T.createExpressionStatement(T.createCallExpression(C,void 0,[Wt]))],!0))}function w(Ke,Vr){for(var Yr=[],Nt=0,Wt=Vr;Nt<Wt.length;Nt++){for(var sn=Wt[Nt],en=e.forEach(sn.externalImports,function(ur){return e.getLocalNameForExternalImport(T,ur,A)}),Ir=en?T.getGeneratedNameForNode(en):T.createUniqueName(""),Jr=[],ye=0,Ie=sn.externalImports;ye<Ie.length;ye++){var We=Ie[ye],dr=e.getLocalNameForExternalImport(T,We,A);switch(We.kind){case 269:if(!We.importClause)break;case 268:e.Debug.assert(dr!==void 0),Jr.push(T.createExpressionStatement(T.createAssignment(dr,Ir))),e.hasSyntacticModifier(We,1)&&Jr.push(T.createExpressionStatement(T.createCallExpression(C,void 0,[T.createStringLiteral(e.idText(dr)),Ir])));break;case 275:if(e.Debug.assert(dr!==void 0),We.exportClause)if(e.isNamedExports(We.exportClause)){for(var ar=[],Sr=0,Or=We.exportClause.elements;Sr<Or.length;Sr++){var Ge=Or[Sr];ar.push(T.createPropertyAssignment(T.createStringLiteral(e.idText(Ge.name)),T.createElementAccessExpression(Ir,T.createStringLiteral(e.idText(Ge.propertyName||Ge.name)))))}Jr.push(T.createExpressionStatement(T.createCallExpression(C,void 0,[T.createObjectLiteralExpression(ar,!0)])))}else Jr.push(T.createExpressionStatement(T.createCallExpression(C,void 0,[T.createStringLiteral(e.idText(We.exportClause.name)),Ir])));else Jr.push(T.createExpressionStatement(T.createCallExpression(Ke,void 0,[Ir])));break}}Yr.push(T.createFunctionExpression(void 0,void 0,void 0,void 0,[T.createParameterDeclaration(void 0,void 0,Ir)],void 0,T.createBlock(Jr,!0)))}return T.createArrayLiteralExpression(Yr,!0)}function re(Ke){switch(Ke.kind){case 269:return M(Ke);case 268:return H(Ke);case 275:return U(Ke);case 274:return q(Ke);default:return rr(Ke)}}function M(Ke){var Vr;if(Ke.importClause&&O(e.getLocalNameForExternalImport(T,Ke,A)),b(Ke)){var Yr=e.getOriginalNodeId(Ke);Z[Yr]=G(Z[Yr],Ke)}else Vr=G(Vr,Ke);return e.singleOrMany(Vr)}function U(Ke){e.Debug.assertIsDefined(Ke)}function H(Ke){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Ke),"import= for internal module references should be handled in an earlier transformer.");var Vr;if(O(e.getLocalNameForExternalImport(T,Ke,A)),b(Ke)){var Yr=e.getOriginalNodeId(Ke);Z[Yr]=ae(Z[Yr],Ke)}else Vr=ae(Vr,Ke);return e.singleOrMany(Vr)}function q(Ke){if(!Ke.isExportEquals){var Vr=e.visitNode(Ke.expression,or,e.isExpression),Yr=Ke.original;if(Yr&&b(Yr)){var Nt=e.getOriginalNodeId(Ke);Z[Nt]=tr(Z[Nt],T.createIdentifier("default"),Vr,!0)}else return me(T.createIdentifier("default"),Vr,!0)}}function R(Ke){if(e.hasSyntacticModifier(Ke,1)?F=e.append(F,T.updateFunctionDeclaration(Ke,e.visitNodes(Ke.modifiers,vr,e.isModifierLike),Ke.asteriskToken,T.getDeclarationName(Ke,!0,!0),void 0,e.visitNodes(Ke.parameters,or,e.isParameterDeclaration),void 0,e.visitNode(Ke.body,or,e.isBlock))):F=e.append(F,e.visitEachChild(Ke,or,P)),b(Ke)){var Vr=e.getOriginalNodeId(Ke);Z[Vr]=we(Z[Vr],Ke)}else F=we(F,Ke)}function K(Ke){var Vr,Yr=T.getLocalName(Ke);if(O(Yr),Vr=e.append(Vr,e.setTextRange(T.createExpressionStatement(T.createAssignment(Yr,e.setTextRange(T.createClassExpression(e.visitNodes(Ke.modifiers,vr,e.isModifierLike),Ke.name,void 0,e.visitNodes(Ke.heritageClauses,or,e.isHeritageClause),e.visitNodes(Ke.members,or,e.isClassElement)),Ke))),Ke)),b(Ke)){var Nt=e.getOriginalNodeId(Ke);Z[Nt]=we(Z[Nt],Ke)}else Vr=we(Vr,Ke);return e.singleOrMany(Vr)}function I(Ke){if(!le(Ke.declarationList))return e.visitNode(Ke,or,e.isStatement);for(var Vr,Yr=e.hasSyntacticModifier(Ke,1),Nt=b(Ke),Wt=0,sn=Ke.declarationList.declarations;Wt<sn.length;Wt++){var en=sn[Wt];en.initializer?Vr=e.append(Vr,ee(en,Yr&&!Nt)):he(en)}var Ir;if(Vr&&(Ir=e.append(Ir,e.setTextRange(T.createExpressionStatement(T.inlineExpressions(Vr)),Ke))),Nt){var Jr=e.getOriginalNodeId(Ke);Z[Jr]=Te(Z[Jr],Ke,Yr)}else Ir=Te(Ir,Ke,!1);return e.singleOrMany(Ir)}function he(Ke){if(e.isBindingPattern(Ke.name))for(var Vr=0,Yr=Ke.name.elements;Vr<Yr.length;Vr++){var Nt=Yr[Vr];e.isOmittedExpression(Nt)||he(Nt)}else O(T.cloneNode(Ke.name))}function le(Ke){return(e.getEmitFlags(Ke)&2097152)===0&&(z.kind===308||(e.getOriginalNode(Ke).flags&3)===0)}function ee(Ke,Vr){var Yr=Vr?J:de;return e.isBindingPattern(Ke.name)?e.flattenDestructuringAssignment(Ke,or,P,0,!1,Yr):Ke.initializer?Yr(Ke.name,e.visitNode(Ke.initializer,or,e.isExpression)):Ke.name}function J(Ke,Vr,Yr){return De(Ke,Vr,Yr,!0)}function de(Ke,Vr,Yr){return De(Ke,Vr,Yr,!1)}function De(Ke,Vr,Yr,Nt){return O(T.cloneNode(Ke)),Nt?He(Ke,Dt(e.setTextRange(T.createAssignment(Ke,Vr),Yr))):Dt(e.setTextRange(T.createAssignment(Ke,Vr),Yr))}function N(Ke){if(b(Ke)&&Ke.original.kind===240){var Vr=e.getOriginalNodeId(Ke),Yr=e.hasSyntacticModifier(Ke.original,1);Z[Vr]=Te(Z[Vr],Ke.original,Yr)}return Ke}function b(Ke){return(e.getEmitFlags(Ke)&4194304)!==0}function Q(Ke){var Vr=e.getOriginalNodeId(Ke),Yr=Z[Vr];if(Yr)return delete Z[Vr],e.append(Yr,Ke);var Nt=e.getOriginalNode(Ke);return e.isModuleOrEnumDeclaration(Nt)?e.append(nr(Yr,Nt),Ke):Ke}function G(Ke,Vr){if(y.exportEquals)return Ke;var Yr=Vr.importClause;if(!Yr)return Ke;Yr.name&&(Ke=nr(Ke,Yr));var Nt=Yr.namedBindings;if(Nt)switch(Nt.kind){case 271:Ke=nr(Ke,Nt);break;case 272:for(var Wt=0,sn=Nt.elements;Wt<sn.length;Wt++){var en=sn[Wt];Ke=nr(Ke,en)}break}return Ke}function ae(Ke,Vr){return y.exportEquals?Ke:nr(Ke,Vr)}function Te(Ke,Vr,Yr){if(y.exportEquals)return Ke;for(var Nt=0,Wt=Vr.declarationList.declarations;Nt<Wt.length;Nt++){var sn=Wt[Nt];(sn.initializer||Yr)&&(Ke=Ne(Ke,sn,Yr))}return Ke}function Ne(Ke,Vr,Yr){if(y.exportEquals)return Ke;if(e.isBindingPattern(Vr.name))for(var Nt=0,Wt=Vr.name.elements;Nt<Wt.length;Nt++){var sn=Wt[Nt];e.isOmittedExpression(sn)||(Ke=Ne(Ke,sn,Yr))}else if(!e.isGeneratedIdentifier(Vr.name)){var en=void 0;Yr&&(Ke=tr(Ke,Vr.name,T.getLocalName(Vr)),en=e.idText(Vr.name)),Ke=nr(Ke,Vr,en)}return Ke}function we(Ke,Vr){if(y.exportEquals)return Ke;var Yr;if(e.hasSyntacticModifier(Vr,1)){var Nt=e.hasSyntacticModifier(Vr,1024)?T.createStringLiteral("default"):Vr.name;Ke=tr(Ke,Nt,T.getLocalName(Vr)),Yr=e.getTextOfIdentifierOrLiteral(Nt)}return Vr.name&&(Ke=nr(Ke,Vr,Yr)),Ke}function nr(Ke,Vr,Yr){if(y.exportEquals)return Ke;var Nt=T.getDeclarationName(Vr),Wt=y.exportSpecifiers.get(e.idText(Nt));if(Wt)for(var sn=0,en=Wt;sn<en.length;sn++){var Ir=en[sn];Ir.name.escapedText!==Yr&&(Ke=tr(Ke,Ir.name,Nt))}return Ke}function tr(Ke,Vr,Yr,Nt){return Ke=e.append(Ke,me(Vr,Yr,Nt)),Ke}function me(Ke,Vr,Yr){var Nt=T.createExpressionStatement(He(Ke,Vr));return e.startOnNewLine(Nt),Yr||e.setEmitFlags(Nt,1536),Nt}function He(Ke,Vr){var Yr=e.isIdentifier(Ke)?T.createStringLiteralFromNode(Ke):Ke;return e.setEmitFlags(Vr,e.getEmitFlags(Vr)|1536),e.setCommentRange(T.createCallExpression(C,void 0,[Yr,Vr]),Vr)}function rr(Ke){switch(Ke.kind){case 240:return I(Ke);case 259:return R(Ke);case 260:return K(Ke);case 245:return je(Ke,!0);case 246:return Ce(Ke);case 247:return Ae(Ke);case 243:return L(Ke);case 244:return ue(Ke);case 253:return Ue(Ke);case 251:return Je(Ke);case 252:return lr(Ke);case 266:return mr(Ke);case 292:return Hr(Ke);case 293:return wr(Ke);case 255:return Oe(Ke);case 295:return Ze(Ke);case 238:return tt(Ke);case 355:return N(Ke);case 356:return Q(Ke);default:return or(Ke)}}function je(Ke,Vr){var Yr=z;return z=Ke,Ke=T.updateForStatement(Ke,e.visitNode(Ke.initializer,Vr?xe:qr,e.isForInitializer),e.visitNode(Ke.condition,or,e.isExpression),e.visitNode(Ke.incrementor,qr,e.isExpression),e.visitIterationBody(Ke.statement,Vr?rr:or,P)),z=Yr,Ke}function Ce(Ke){var Vr=z;return z=Ke,Ke=T.updateForInStatement(Ke,xe(Ke.initializer),e.visitNode(Ke.expression,or,e.isExpression),e.visitIterationBody(Ke.statement,rr,P)),z=Vr,Ke}function Ae(Ke){var Vr=z;return z=Ke,Ke=T.updateForOfStatement(Ke,Ke.awaitModifier,xe(Ke.initializer),e.visitNode(Ke.expression,or,e.isExpression),e.visitIterationBody(Ke.statement,rr,P)),z=Vr,Ke}function qe(Ke){return e.isVariableDeclarationList(Ke)&&le(Ke)}function xe(Ke){if(qe(Ke)){for(var Vr=void 0,Yr=0,Nt=Ke.declarations;Yr<Nt.length;Yr++){var Wt=Nt[Yr];Vr=e.append(Vr,ee(Wt,!1)),Wt.initializer||he(Wt)}return Vr?T.inlineExpressions(Vr):T.createOmittedExpression()}else return e.visitNode(Ke,qr,e.isExpression)}function L(Ke){return T.updateDoStatement(Ke,e.visitIterationBody(Ke.statement,rr,P),e.visitNode(Ke.expression,or,e.isExpression))}function ue(Ke){return T.updateWhileStatement(Ke,e.visitNode(Ke.expression,or,e.isExpression),e.visitIterationBody(Ke.statement,rr,P))}function Ue(Ke){return T.updateLabeledStatement(Ke,Ke.label,e.visitNode(Ke.statement,rr,e.isStatement,T.liftToBlock))}function Je(Ke){return T.updateWithStatement(Ke,e.visitNode(Ke.expression,or,e.isExpression),e.visitNode(Ke.statement,rr,e.isStatement,T.liftToBlock))}function lr(Ke){return T.updateSwitchStatement(Ke,e.visitNode(Ke.expression,or,e.isExpression),e.visitNode(Ke.caseBlock,rr,e.isCaseBlock))}function mr(Ke){var Vr=z;return z=Ke,Ke=T.updateCaseBlock(Ke,e.visitNodes(Ke.clauses,rr,e.isCaseOrDefaultClause)),z=Vr,Ke}function Hr(Ke){return T.updateCaseClause(Ke,e.visitNode(Ke.expression,or,e.isExpression),e.visitNodes(Ke.statements,rr,e.isStatement))}function wr(Ke){return e.visitEachChild(Ke,rr,P)}function Oe(Ke){return e.visitEachChild(Ke,rr,P)}function Ze(Ke){var Vr=z;return z=Ke,Ke=T.updateCatchClause(Ke,Ke.variableDeclaration,e.visitNode(Ke.block,rr,e.isBlock)),z=Vr,Ke}function tt(Ke){var Vr=z;return z=Ke,Ke=e.visitEachChild(Ke,rr,P),z=Vr,Ke}function ut(Ke,Vr){if(!(Ke.transformFlags&276828160))return Ke;switch(Ke.kind){case 245:return je(Ke,!1);case 241:return Rr(Ke);case 214:return zr(Ke,Vr);case 353:return Fr(Ke,Vr);case 223:if(e.isDestructuringAssignment(Ke))return Ct(Ke,Vr);break;case 210:if(e.isImportCall(Ke))return _t(Ke);break;case 221:case 222:return Fe(Ke,Vr)}return e.visitEachChild(Ke,or,P)}function or(Ke){return ut(Ke,!1)}function qr(Ke){return ut(Ke,!0)}function Rr(Ke){return T.updateExpressionStatement(Ke,e.visitNode(Ke.expression,qr,e.isExpression))}function zr(Ke,Vr){return T.updateParenthesizedExpression(Ke,e.visitNode(Ke.expression,Vr?qr:or,e.isExpression))}function Fr(Ke,Vr){return T.updatePartiallyEmittedExpression(Ke,e.visitNode(Ke.expression,Vr?qr:or,e.isExpression))}function _t(Ke){var Vr=e.getExternalModuleNameLiteral(T,Ke,A,v,E,W),Yr=e.visitNode(e.firstOrUndefined(Ke.arguments),or),Nt=Vr&&(!Yr||!e.isStringLiteral(Yr)||Yr.text!==Vr.text)?Vr:Yr;return T.createCallExpression(T.createPropertyAccessExpression(B,T.createIdentifier("import")),void 0,Nt?[Nt]:[])}function Ct(Ke,Vr){return yt(Ke.left)?e.flattenDestructuringAssignment(Ke,or,P,0,!Vr):e.visitEachChild(Ke,or,P)}function yt(Ke){if(e.isAssignmentExpression(Ke,!0))return yt(Ke.left);if(e.isSpreadElement(Ke))return yt(Ke.expression);if(e.isObjectLiteralExpression(Ke))return e.some(Ke.properties,yt);if(e.isArrayLiteralExpression(Ke))return e.some(Ke.elements,yt);if(e.isShorthandPropertyAssignment(Ke))return yt(Ke.name);if(e.isPropertyAssignment(Ke))return yt(Ke.initializer);if(e.isIdentifier(Ke)){var Vr=E.getReferencedExportContainer(Ke);return Vr!==void 0&&Vr.kind===308}else return!1}function Fe(Ke,Vr){if((Ke.operator===45||Ke.operator===46)&&e.isIdentifier(Ke.operand)&&!e.isGeneratedIdentifier(Ke.operand)&&!e.isLocalName(Ke.operand)&&!e.isDeclarationNameOfEnumOrNamespace(Ke.operand)){var Yr=ft(Ke.operand);if(Yr){var Nt=void 0,Wt=e.visitNode(Ke.operand,or,e.isExpression);e.isPrefixUnaryExpression(Ke)?Wt=T.updatePrefixUnaryExpression(Ke,Wt):(Wt=T.updatePostfixUnaryExpression(Ke,Wt),Vr||(Nt=T.createTempVariable(O),Wt=T.createAssignment(Nt,Wt),e.setTextRange(Wt,Ke)),Wt=T.createComma(Wt,T.cloneNode(Ke.operand)),e.setTextRange(Wt,Ke));for(var sn=0,en=Yr;sn<en.length;sn++){var Ir=en[sn];Wt=He(Ir,Dt(Wt))}return Nt&&(Wt=T.createComma(Wt,Nt),e.setTextRange(Wt,Ke)),Wt}}return e.visitEachChild(Ke,or,P)}function vr(Ke){switch(Ke.kind){case 93:case 88:return}return Ke}function Le(Ke,Vr,Yr){if(Vr.kind===308){var Nt=e.getOriginalNodeId(Vr);A=Vr,y=Y[Nt],C=ce[Nt],ge=k[Nt],B=X[Nt],ge&&delete k[Nt],te(Ke,Vr,Yr),A=void 0,y=void 0,C=void 0,B=void 0,ge=void 0}else te(Ke,Vr,Yr)}function cr(Ke,Vr){return Vr=S(Ke,Vr),Me(Vr)?Vr:Ke===1?xr(Vr):Ke===4?$r(Vr):Vr}function $r(Ke){switch(Ke.kind){case 300:return Re(Ke)}return Ke}function Re(Ke){var Vr,Yr,Nt=Ke.name;if(!e.isGeneratedIdentifier(Nt)&&!e.isLocalName(Nt)){var Wt=E.getReferencedImportDeclaration(Nt);if(Wt){if(e.isImportClause(Wt))return e.setTextRange(T.createPropertyAssignment(T.cloneNode(Nt),T.createPropertyAccessExpression(T.getGeneratedNameForNode(Wt.parent),T.createIdentifier("default"))),Ke);if(e.isImportSpecifier(Wt))return e.setTextRange(T.createPropertyAssignment(T.cloneNode(Nt),T.createPropertyAccessExpression(T.getGeneratedNameForNode(((Yr=(Vr=Wt.parent)===null||Vr===void 0?void 0:Vr.parent)===null||Yr===void 0?void 0:Yr.parent)||Wt),T.cloneNode(Wt.propertyName||Wt.name))),Ke)}}return Ke}function xr(Ke){switch(Ke.kind){case 79:return Br(Ke);case 223:return Qr(Ke);case 233:return ct(Ke)}return Ke}function Br(Ke){var Vr,Yr;if(e.getEmitFlags(Ke)&4096){var Nt=e.getExternalHelpersModuleName(A);return Nt?T.createPropertyAccessExpression(Nt,Ke):Ke}if(!e.isGeneratedIdentifier(Ke)&&!e.isLocalName(Ke)){var Wt=E.getReferencedImportDeclaration(Ke);if(Wt){if(e.isImportClause(Wt))return e.setTextRange(T.createPropertyAccessExpression(T.getGeneratedNameForNode(Wt.parent),T.createIdentifier("default")),Ke);if(e.isImportSpecifier(Wt))return e.setTextRange(T.createPropertyAccessExpression(T.getGeneratedNameForNode(((Yr=(Vr=Wt.parent)===null||Vr===void 0?void 0:Vr.parent)===null||Yr===void 0?void 0:Yr.parent)||Wt),T.cloneNode(Wt.propertyName||Wt.name)),Ke)}}return Ke}function Qr(Ke){if(e.isAssignmentOperator(Ke.operatorToken.kind)&&e.isIdentifier(Ke.left)&&!e.isGeneratedIdentifier(Ke.left)&&!e.isLocalName(Ke.left)&&!e.isDeclarationNameOfEnumOrNamespace(Ke.left)){var Vr=ft(Ke.left);if(Vr){for(var Yr=Ke,Nt=0,Wt=Vr;Nt<Wt.length;Nt++){var sn=Wt[Nt];Yr=He(sn,Dt(Yr))}return Yr}}return Ke}function ct(Ke){return e.isImportMeta(Ke)?T.createPropertyAccessExpression(B,T.createIdentifier("meta")):Ke}function ft(Ke){var Vr;if(!e.isGeneratedIdentifier(Ke)){var Yr=E.getReferencedImportDeclaration(Ke)||E.getReferencedValueDeclaration(Ke);if(Yr){var Nt=E.getReferencedExportContainer(Ke,!1);Nt&&Nt.kind===308&&(Vr=e.append(Vr,T.getDeclarationName(Yr))),Vr=e.addRange(Vr,y&&y.exportedBindings[e.getOriginalNodeId(Yr)])}}return Vr}function Dt(Ke){return ge===void 0&&(ge=[]),ge[e.getNodeId(Ke)]=!0,Ke}function Me(Ke){return ge&&Ke.id&&ge[Ke.id]}}e.transformSystemModule=c})(h||(h={}));var h;(function(e){function c(P){var T=P.factory,s=P.getEmitHelperFactory,D=P.getEmitHost(),O=P.getEmitResolver(),W=P.getCompilerOptions(),E=e.getEmitScriptTarget(W),v=P.onEmitNode,S=P.onSubstituteNode;P.onEmitNode=z,P.onSubstituteNode=ge,P.enableEmitNotification(308),P.enableSubstitution(79);var te,Y,Z;return e.chainBundle(P,ce);function ce(fe){if(fe.isDeclarationFile)return fe;if(e.isExternalModule(fe)||W.isolatedModules){Y=fe,Z=void 0;var _e=k(fe);return Y=void 0,Z&&(_e=T.updateSourceFile(_e,e.setTextRange(T.createNodeArray(e.insertStatementsAfterCustomPrologue(_e.statements.slice(),Z)),_e.statements))),!e.isExternalModule(fe)||e.some(_e.statements,e.isExternalModuleIndicator)?_e:T.updateSourceFile(_e,e.setTextRange(T.createNodeArray(t(t([],_e.statements,!0),[e.createEmptyExports(T)],!1)),_e.statements))}return fe}function k(fe){var _e=e.createExternalHelpersImportDeclarationIfNeeded(T,s(),fe,W);if(_e){var ne=[],oe=T.copyPrologue(fe.statements,ne);return e.append(ne,_e),e.addRange(ne,e.visitNodes(fe.statements,X,e.isStatement,oe)),T.updateSourceFile(fe,e.setTextRange(T.createNodeArray(ne),fe.statements))}else return e.visitEachChild(fe,X,P)}function X(fe){switch(fe.kind){case 268:return e.getEmitModuleKind(W)>=e.ModuleKind.Node16?y(fe):void 0;case 274:return B(fe);case 275:var _e=fe;return F(_e)}return fe}function A(fe){var _e=e.getExternalModuleNameLiteral(T,fe,e.Debug.checkDefined(Y),D,O,W),ne=[];if(_e&&ne.push(_e),!Z){var oe=T.createUniqueName("_createRequire",48),w=T.createImportDeclaration(void 0,T.createImportClause(!1,void 0,T.createNamedImports([T.createImportSpecifier(!1,T.createIdentifier("createRequire"),oe)])),T.createStringLiteral("module")),re=T.createUniqueName("__require",48),M=T.createVariableStatement(void 0,T.createVariableDeclarationList([T.createVariableDeclaration(re,void 0,void 0,T.createCallExpression(T.cloneNode(oe),void 0,[T.createPropertyAccessExpression(T.createMetaProperty(100,T.createIdentifier("meta")),T.createIdentifier("url"))]))],E>=2?2:0));Z=[w,M]}var U=Z[1].declarationList.declarations[0].name;return e.Debug.assertNode(U,e.isIdentifier),T.createCallExpression(T.cloneNode(U),void 0,ne)}function y(fe){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(fe),"import= for internal module references should be handled in an earlier transformer.");var _e;return _e=e.append(_e,e.setOriginalNode(e.setTextRange(T.createVariableStatement(void 0,T.createVariableDeclarationList([T.createVariableDeclaration(T.cloneNode(fe.name),void 0,void 0,A(fe))],E>=2?2:0)),fe),fe)),_e=C(_e,fe),e.singleOrMany(_e)}function C(fe,_e){return e.hasSyntacticModifier(_e,1)&&(fe=e.append(fe,T.createExportDeclaration(void 0,_e.isTypeOnly,T.createNamedExports([T.createExportSpecifier(!1,void 0,e.idText(_e.name))])))),fe}function B(fe){return fe.isExportEquals?void 0:fe}function F(fe){if(W.module!==void 0&&W.module>e.ModuleKind.ES2015||!fe.exportClause||!e.isNamespaceExport(fe.exportClause)||!fe.moduleSpecifier)return fe;var _e=fe.exportClause.name,ne=T.getGeneratedNameForNode(_e),oe=T.createImportDeclaration(void 0,T.createImportClause(!1,void 0,T.createNamespaceImport(ne)),fe.moduleSpecifier,fe.assertClause);e.setOriginalNode(oe,fe.exportClause);var w=e.isExportNamespaceAsDefaultDeclaration(fe)?T.createExportDefault(ne):T.createExportDeclaration(void 0,!1,T.createNamedExports([T.createExportSpecifier(!1,ne,_e)]));return e.setOriginalNode(w,fe),[oe,w]}function z(fe,_e,ne){e.isSourceFile(_e)?((e.isExternalModule(_e)||W.isolatedModules)&&W.importHelpers&&(te=new e.Map),v(fe,_e,ne),te=void 0):v(fe,_e,ne)}function ge(fe,_e){return _e=S(fe,_e),te&&e.isIdentifier(_e)&&e.getEmitFlags(_e)&4096?Pe(_e):_e}function Pe(fe){var _e=e.idText(fe),ne=te.get(_e);return ne||te.set(_e,ne=T.createUniqueName(_e,48)),ne}}e.transformECMAScriptModule=c})(h||(h={}));var h;(function(e){function c(P){var T=P.onSubstituteNode,s=P.onEmitNode,D=e.transformECMAScriptModule(P),O=P.onSubstituteNode,W=P.onEmitNode;P.onSubstituteNode=T,P.onEmitNode=s;var E=e.transformModule(P),v=P.onSubstituteNode,S=P.onEmitNode;P.onSubstituteNode=Y,P.onEmitNode=Z,P.enableSubstitution(308),P.enableEmitNotification(308);var te;return X;function Y(y,C){return e.isSourceFile(C)?(te=C,T(y,C)):te?te.impliedNodeFormat===e.ModuleKind.ESNext?O(y,C):v(y,C):T(y,C)}function Z(y,C,B){return e.isSourceFile(C)&&(te=C),te?te.impliedNodeFormat===e.ModuleKind.ESNext?W(y,C,B):S(y,C,B):s(y,C,B)}function ce(y){return y.impliedNodeFormat===e.ModuleKind.ESNext?D:E}function k(y){if(y.isDeclarationFile)return y;te=y;var C=ce(y)(y);return te=void 0,e.Debug.assert(e.isSourceFile(C)),C}function X(y){return y.kind===308?k(y):A(y)}function A(y){return P.factory.createBundle(e.map(y.sourceFiles,k),y.prepends)}}e.transformNodeModule=c})(h||(h={}));var h;(function(e){function c(s){return e.isVariableDeclaration(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isBindingElement(s)||e.isSetAccessor(s)||e.isGetAccessor(s)||e.isConstructSignatureDeclaration(s)||e.isCallSignatureDeclaration(s)||e.isMethodDeclaration(s)||e.isMethodSignature(s)||e.isFunctionDeclaration(s)||e.isParameter(s)||e.isTypeParameterDeclaration(s)||e.isExpressionWithTypeArguments(s)||e.isImportEqualsDeclaration(s)||e.isTypeAliasDeclaration(s)||e.isConstructorDeclaration(s)||e.isIndexSignatureDeclaration(s)||e.isPropertyAccessExpression(s)||e.isJSDocTypeAlias(s)}e.canProduceDiagnostics=c;function P(s){if(e.isSetAccessor(s)||e.isGetAccessor(s))return D;return e.isMethodSignature(s)||e.isMethodDeclaration(s)?W:T(s);function D(v){var S=O(v);return S!==void 0?{diagnosticMessage:S,errorNode:s,typeName:s.name}:void 0}function O(v){return e.isStatic(s)?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:s.parent.kind===260?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function W(v){var S=E(v);return S!==void 0?{diagnosticMessage:S,errorNode:s,typeName:s.name}:void 0}function E(v){return e.isStatic(s)?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:s.parent.kind===260?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}e.createGetSymbolAccessibilityDiagnosticForNodeName=P;function T(s){if(e.isVariableDeclaration(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isPropertyAccessExpression(s)||e.isBindingElement(s)||e.isConstructorDeclaration(s))return O;return e.isSetAccessor(s)||e.isGetAccessor(s)?W:e.isConstructSignatureDeclaration(s)||e.isCallSignatureDeclaration(s)||e.isMethodDeclaration(s)||e.isMethodSignature(s)||e.isFunctionDeclaration(s)||e.isIndexSignatureDeclaration(s)?E:e.isParameter(s)?e.isParameterPropertyDeclaration(s,s.parent)&&e.hasSyntacticModifier(s.parent,8)?O:v:e.isTypeParameterDeclaration(s)?te:e.isExpressionWithTypeArguments(s)?Y:e.isImportEqualsDeclaration(s)?Z:e.isTypeAliasDeclaration(s)||e.isJSDocTypeAlias(s)?ce:e.Debug.assertNever(s,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.Debug.formatSyntaxKind(s.kind)));function D(k){if(s.kind===257||s.kind===205)return k.errorModuleName?k.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;if(s.kind===169||s.kind===208||s.kind===168||s.kind===166&&e.hasSyntacticModifier(s.parent,8))return e.isStatic(s)?k.errorModuleName?k.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:s.parent.kind===260||s.kind===166?k.errorModuleName?k.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:k.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function O(k){var X=D(k);return X!==void 0?{diagnosticMessage:X,errorNode:s,typeName:s.name}:void 0}function W(k){var X;return s.kind===175?e.isStatic(s)?X=k.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:X=k.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(s)?X=k.errorModuleName?k.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:X=k.errorModuleName?k.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:X,errorNode:s.name,typeName:s.name}}function E(k){var X;switch(s.kind){case 177:X=k.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:X=k.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:X=k.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:e.isStatic(s)?X=k.errorModuleName?k.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:s.parent.kind===260?X=k.errorModuleName?k.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:X=k.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:X=k.errorModuleName?k.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+s.kind)}return{diagnosticMessage:X,errorNode:s.name||s}}function v(k){var X=S(k);return X!==void 0?{diagnosticMessage:X,errorNode:s,typeName:s.name}:void 0}function S(k){switch(s.parent.kind){case 173:return k.errorModuleName?k.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return k.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return k.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return k.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return e.isStatic(s.parent)?k.errorModuleName?k.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:s.parent.parent.kind===260?k.errorModuleName?k.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:k.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return k.errorModuleName?k.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return k.errorModuleName?k.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.Debug.formatSyntaxKind(s.parent.kind)))}}function te(){var k;switch(s.parent.kind){case 260:k=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:k=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:k=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:k=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:k=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:e.isStatic(s.parent)?k=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:s.parent.parent.kind===260?k=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:k=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:k=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 262:k=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+s.parent.kind)}return{diagnosticMessage:k,errorNode:s,typeName:s.name}}function Y(){var k;return e.isClassDeclaration(s.parent.parent)?k=e.isHeritageClause(s.parent)&&s.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:s.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:k=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:k,errorNode:s,typeName:e.getNameOfDeclaration(s.parent.parent)}}function Z(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:s,typeName:s.name}}function ce(k){return{diagnosticMessage:k.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(s)?e.Debug.checkDefined(s.typeExpression):s.type,typeName:e.isJSDocTypeAlias(s)?e.getNameOfDeclaration(s):s.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=T})(h||(h={}));var h;(function(e){function c(Z,ce,k){var X=Z.getCompilerOptions(),A=e.transformNodes(ce,Z,e.factory,X,k?[k]:e.filter(Z.getSourceFiles(),e.isSourceFileNotJson),[D],!1);return A.diagnostics}e.getDeclarationDiagnostics=c;function P(Z,ce){var k=ce.text.substring(Z.pos,Z.end);return e.stringContains(k,"@internal")}function T(Z,ce){var k=e.getParseTreeNode(Z);if(k&&k.kind===166){var X=k.parent.parameters.indexOf(k),A=X>0?k.parent.parameters[X-1]:void 0,y=ce.text,C=A?e.concatenate(e.getTrailingCommentRanges(y,e.skipTrivia(y,A.end+1,!1,!0)),e.getLeadingCommentRanges(y,Z.pos)):e.getTrailingCommentRanges(y,e.skipTrivia(y,Z.pos,!1,!0));return C&&C.length&&P(e.last(C),ce)}var B=k&&e.getLeadingCommentRangesOfNode(k,ce);return!!e.forEach(B,function(F){return P(F,ce)})}e.isInternalDeclaration=T;var s=531469;function D(Z){var ce=function(){return e.Debug.fail("Diagnostic emitted without context")},k=ce,X=!0,A=!1,y=!1,C=!1,B=!1,F,z,ge,Pe,fe,_e,ne=Z.factory,oe=Z.getEmitHost(),w={trackSymbol:N,reportInaccessibleThisError:Te,reportInaccessibleUniqueSymbolError:G,reportCyclicStructureError:ae,reportPrivateInBaseOfClassExpression:b,reportLikelyUnsafeImportRequiredError:Ne,reportTruncationError:we,moduleResolverHost:oe,trackReferencedAmbientModule:J,trackExternalModuleSymbolOfImportTypeNode:De,reportNonlocalAugmentation:nr,reportNonSerializableProperty:tr,reportImportTypeNodeResolutionModeOverride:me},re,M,U,H,q,R,K=Z.getEmitResolver(),I=Z.getCompilerOptions(),he=I.noResolve,le=I.stripInternal;return rr;function ee(Me){if(Me){z=z||new e.Set;for(var Ke=0,Vr=Me;Ke<Vr.length;Ke++){var Yr=Vr[Ke];z.add(Yr)}}}function J(Me,Ke){var Vr=K.getTypeReferenceDirectivesForSymbol(Ke,67108863);if(e.length(Vr))return ee(Vr);var Yr=e.getSourceFileOfNode(Me);H.set(e.getOriginalNodeId(Yr),Yr)}function de(Me){if(Me.accessibility===0){if(Me&&Me.aliasesToMakeVisible)if(!ge)ge=Me.aliasesToMakeVisible;else for(var Ke=0,Vr=Me.aliasesToMakeVisible;Ke<Vr.length;Ke++){var Yr=Vr[Ke];e.pushIfUnique(ge,Yr)}}else{var Nt=k(Me);if(Nt)return Nt.typeName?Z.addDiagnostic(e.createDiagnosticForNode(Me.errorNode||Nt.errorNode,Nt.diagnosticMessage,e.getTextOfNode(Nt.typeName),Me.errorSymbolName,Me.errorModuleName)):Z.addDiagnostic(e.createDiagnosticForNode(Me.errorNode||Nt.errorNode,Nt.diagnosticMessage,Me.errorSymbolName,Me.errorModuleName)),!0}return!1}function De(Me){A||(_e||(_e=[])).push(Me)}function N(Me,Ke,Vr){if(Me.flags&262144)return!1;var Yr=de(K.isSymbolAccessible(Me,Ke,Vr,!0));return ee(K.getTypeReferenceDirectivesForSymbol(Me,Vr)),Yr}function b(Me){(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,Me))}function Q(){return re?e.declarationNameToString(re):M&&e.getNameOfDeclaration(M)?e.declarationNameToString(e.getNameOfDeclaration(M)):M&&e.isExportAssignment(M)?M.isExportEquals?"export=":"default":"(Missing)"}function G(){(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Q(),"unique symbol"))}function ae(){(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Q()))}function Te(){(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Q(),"this"))}function Ne(Me){(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Q(),Me))}function we(){(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function nr(Me,Ke,Vr){var Yr,Nt=(Yr=Ke.declarations)===null||Yr===void 0?void 0:Yr.find(function(Jr){return e.getSourceFileOfNode(Jr)===Me}),Wt=e.filter(Vr.declarations,function(Jr){return e.getSourceFileOfNode(Jr)!==Me});if(Nt&&Wt)for(var sn=0,en=Wt;sn<en.length;sn++){var Ir=en[sn];Z.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(Ir,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(Nt,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function tr(Me){(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Me))}function me(){!e.isNightly()&&(re||M)&&Z.addDiagnostic(e.createDiagnosticForNode(re||M,e.Diagnostics.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function He(Me,Ke){var Vr=k;k=function(Nt){return Nt.errorNode&&e.canProduceDiagnostics(Nt.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(Nt.errorNode)(Nt):{diagnosticMessage:Nt.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Nt.errorNode||Me}};var Yr=K.getDeclarationStatementsForSourceFile(Me,s,w,Ke);return k=Vr,Yr}function rr(Me){if(Me.kind===308&&Me.isDeclarationFile)return Me;if(Me.kind===309){A=!0,H=new e.Map,q=new e.Map;var Ke=!1,Vr=ne.createBundle(e.map(Me.sourceFiles,function(Sr){if(!Sr.isDeclarationFile){if(Ke=Ke||Sr.hasNoDefaultLib,U=Sr,F=Sr,ge=void 0,fe=!1,Pe=new e.Map,k=ce,C=!1,B=!1,je(Sr,H),Ce(Sr,q),e.isExternalOrCommonJsModule(Sr)||e.isJsonSourceFile(Sr)){y=!1,X=!1;var Or=e.isSourceFileJS(Sr)?ne.createNodeArray(He(Sr,!0)):e.visitNodes(Sr.statements,Ct),Ge=ne.updateSourceFile(Sr,[ne.createModuleDeclaration([ne.createModifier(136)],ne.createStringLiteral(e.getResolvedExternalModuleName(Z.getEmitHost(),Sr)),ne.createModuleBlock(e.setTextRange(ne.createNodeArray(zr(Or)),Sr.statements)))],!0,[],[],!1,[]);return Ge}X=!0;var ur=e.isSourceFileJS(Sr)?ne.createNodeArray(He(Sr)):e.visitNodes(Sr.statements,Ct);return ne.updateSourceFile(Sr,zr(ur),!0,[],[],!1,[])}}),e.mapDefined(Me.prepends,function(Sr){if(Sr.kind===311){var Or=e.createUnparsedSourceFile(Sr,"dts",le);return Ke=Ke||!!Or.hasNoDefaultLib,je(Or,H),ee(e.map(Or.typeReferenceDirectives,function(Ge){return[Ge.fileName,Ge.resolutionMode]})),Ce(Or,q),Or}return Sr}));Vr.syntheticFileReferences=[],Vr.syntheticTypeReferences=We(),Vr.syntheticLibReferences=Ie(),Vr.hasNoDefaultLib=Ke;var Yr=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Me,oe,!0).declarationFilePath)),Nt=ar(Vr.syntheticFileReferences,Yr);return H.forEach(Nt),Vr}X=!0,C=!1,B=!1,F=Me,U=Me,k=ce,A=!1,y=!1,fe=!1,ge=void 0,Pe=new e.Map,z=void 0,H=je(U,new e.Map),q=Ce(U,new e.Map);var Wt=[],sn=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Me,oe,!0).declarationFilePath)),en=ar(Wt,sn),Ir;if(e.isSourceFileJS(U))Ir=ne.createNodeArray(He(Me)),H.forEach(en),R=e.filter(Ir,e.isAnyImportSyntax);else{var Jr=e.visitNodes(Me.statements,Ct);Ir=e.setTextRange(ne.createNodeArray(zr(Jr)),Me.statements),H.forEach(en),R=e.filter(Ir,e.isAnyImportSyntax),e.isExternalModule(Me)&&(!y||C&&!B)&&(Ir=e.setTextRange(ne.createNodeArray(t(t([],Ir,!0),[e.createEmptyExports(ne)],!1)),Ir))}var ye=ne.updateSourceFile(Me,Ir,!0,Wt,We(),Me.hasNoDefaultLib,Ie());return ye.exportedModulesFromDeclarationEmit=_e,ye;function Ie(){return e.map(e.arrayFrom(q.keys()),function(Sr){return{fileName:Sr,pos:-1,end:-1}})}function We(){return z?e.mapDefined(e.arrayFrom(z.keys()),dr):[]}function dr(Sr){var Or=Sr[0],Ge=Sr[1];if(R)for(var ur=0,Lr=R;ur<Lr.length;ur++){var Ar=Lr[ur];if(e.isImportEqualsDeclaration(Ar)&&e.isExternalModuleReference(Ar.moduleReference)){var rt=Ar.moduleReference.expression;if(e.isStringLiteralLike(rt)&&rt.text===Or)return}else if(e.isImportDeclaration(Ar)&&e.isStringLiteral(Ar.moduleSpecifier)&&Ar.moduleSpecifier.text===Or)return}return n({fileName:Or,pos:-1,end:-1},Ge?{resolutionMode:Ge}:void 0)}function ar(Sr,Or){return function(Ge){var ur;if(Ge.isDeclarationFile)ur=Ge.fileName;else{if(A&&e.contains(Me.sourceFiles,Ge))return;var Lr=e.getOutputPathsFor(Ge,oe,!0);ur=Lr.declarationFilePath||Lr.jsFilePath||Ge.fileName}if(ur){var Ar=e.moduleSpecifiers.getModuleSpecifier(I,U,e.toPath(Or,oe.getCurrentDirectory(),oe.getCanonicalFileName),e.toPath(ur,oe.getCurrentDirectory(),oe.getCanonicalFileName),oe);if(!e.pathIsRelative(Ar)){ee([[Ar,void 0]]);return}var rt=e.getRelativePathToDirectoryOrUrl(Or,ur,oe.getCurrentDirectory(),oe.getCanonicalFileName,!1);if(e.startsWith(rt,"./")&&e.hasExtension(rt)&&(rt=rt.substring(2)),e.startsWith(rt,"node_modules/")||e.pathContainsNodeModules(rt))return;Sr.push({pos:-1,end:-1,fileName:rt})}}}}function je(Me,Ke){return he||!e.isUnparsedSource(Me)&&e.isSourceFileJS(Me)||e.forEach(Me.referencedFiles,function(Vr){var Yr=oe.getSourceFileFromReference(Me,Vr);Yr&&Ke.set(e.getOriginalNodeId(Yr),Yr)}),Ke}function Ce(Me,Ke){return e.forEach(Me.libReferenceDirectives,function(Vr){var Yr=oe.getLibFileFromReference(Vr);Yr&&Ke.set(e.toFileNameLowerCase(Vr.fileName),!0)}),Ke}function Ae(Me){if(Me.kind===79)return Me;return Me.kind===204?ne.updateArrayBindingPattern(Me,e.visitNodes(Me.elements,Ke)):ne.updateObjectBindingPattern(Me,e.visitNodes(Me.elements,Ke));function Ke(Vr){return Vr.kind===229?Vr:Vr.propertyName&&e.isIdentifier(Vr.propertyName)&&e.isIdentifier(Vr.name)&&!Vr.symbol.isReferenced?ne.updateBindingElement(Vr,Vr.dotDotDotToken,void 0,Vr.propertyName,xe(Vr)?Vr.initializer:void 0):ne.updateBindingElement(Vr,Vr.dotDotDotToken,Vr.propertyName,Ae(Vr.name),xe(Vr)?Vr.initializer:void 0)}}function qe(Me,Ke,Vr){var Yr;fe||(Yr=k,k=e.createGetSymbolAccessibilityDiagnosticForNode(Me));var Nt=ne.updateParameterDeclaration(Me,W(Me,Ke),Me.dotDotDotToken,Ae(Me.name),K.isOptionalParameter(Me)?Me.questionToken||ne.createToken(57):void 0,ue(Me,Vr||Me.type,!0),L(Me));return fe||(k=Yr),Nt}function xe(Me){return S(Me)&&K.isLiteralConstDeclaration(e.getParseTreeNode(Me))}function L(Me){if(xe(Me))return K.createLiteralConstValue(e.getParseTreeNode(Me),w)}function ue(Me,Ke,Vr){if(!Vr&&e.hasEffectiveModifier(Me,8)||xe(Me))return;var Yr=Me.kind===166&&(K.isRequiredInitializedParameter(Me)||K.isOptionalUninitializedParameterProperty(Me));if(Ke&&!Yr)return e.visitNode(Ke,Fr);if(!e.getParseTreeNode(Me))return Ke?e.visitNode(Ke,Fr):ne.createKeywordTypeNode(131);if(Me.kind===175)return ne.createKeywordTypeNode(131);re=Me.name;var Nt;if(fe||(Nt=k,k=e.createGetSymbolAccessibilityDiagnosticForNode(Me)),Me.kind===257||Me.kind===205)return Wt(K.createTypeOfDeclaration(Me,F,s,w));if(Me.kind===166||Me.kind===169||Me.kind===168)return e.isPropertySignature(Me)||!Me.initializer?Wt(K.createTypeOfDeclaration(Me,F,s,w,Yr)):Wt(K.createTypeOfDeclaration(Me,F,s,w,Yr)||K.createTypeOfExpression(Me.initializer,F,s,w));return Wt(K.createReturnTypeOfSignatureDeclaration(Me,F,s,w));function Wt(sn){return re=void 0,fe||(k=Nt),sn||ne.createKeywordTypeNode(131)}}function Ue(Me){switch(Me=e.getParseTreeNode(Me),Me.kind){case 259:case 264:case 261:case 260:case 262:case 263:return!K.isDeclarationVisible(Me);case 257:return!lr(Me);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function Je(Me){var Ke;if(Me.body)return!0;var Vr=(Ke=Me.symbol.declarations)===null||Ke===void 0?void 0:Ke.filter(function(Yr){return e.isFunctionDeclaration(Yr)&&!Yr.body});return!Vr||Vr.indexOf(Me)===Vr.length-1}function lr(Me){return e.isOmittedExpression(Me)?!1:e.isBindingPattern(Me.name)?e.some(Me.name.elements,lr):K.isDeclarationVisible(Me)}function mr(Me,Ke,Vr){if(!e.hasEffectiveModifier(Me,8)){var Yr=e.map(Ke,function(Nt){return qe(Nt,Vr)});if(Yr)return ne.createNodeArray(Yr,Ke.hasTrailingComma)}}function Hr(Me,Ke){var Vr;if(!Ke){var Yr=e.getThisParameter(Me);Yr&&(Vr=[qe(Yr)])}if(e.isSetAccessorDeclaration(Me)){var Nt=void 0;if(!Ke){var Wt=e.getSetAccessorValueParameter(Me);if(Wt){var sn=ft(Me,K.getAllAccessorDeclarations(Me));Nt=qe(Wt,void 0,sn)}}Nt||(Nt=ne.createParameterDeclaration(void 0,void 0,"value")),Vr=e.append(Vr,Nt)}return ne.createNodeArray(Vr||e.emptyArray)}function wr(Me,Ke){return e.hasEffectiveModifier(Me,8)?void 0:e.visitNodes(Ke,Fr)}function Oe(Me){return e.isSourceFile(Me)||e.isTypeAliasDeclaration(Me)||e.isModuleDeclaration(Me)||e.isClassDeclaration(Me)||e.isInterfaceDeclaration(Me)||e.isFunctionLike(Me)||e.isIndexSignatureDeclaration(Me)||e.isMappedTypeNode(Me)}function Ze(Me,Ke){var Vr=K.isEntityNameVisible(Me,Ke);de(Vr),ee(K.getTypeReferenceDirectivesForEntityName(Me))}function tt(Me,Ke){return e.hasJSDocNodes(Me)&&e.hasJSDocNodes(Ke)&&(Me.jsDoc=Ke.jsDoc),e.setCommentRange(Me,e.getCommentRange(Ke))}function ut(Me,Ke){if(Ke){if(y=y||Me.kind!==264&&Me.kind!==202,e.isStringLiteralLike(Ke))if(A){var Vr=e.getExternalModuleNameFromDeclaration(Z.getEmitHost(),K,Me);if(Vr)return ne.createStringLiteral(Vr)}else{var Yr=K.getSymbolOfExternalModuleSpecifier(Ke);Yr&&(_e||(_e=[])).push(Yr)}return Ke}}function or(Me){if(K.isDeclarationVisible(Me))if(Me.moduleReference.kind===280){var Ke=e.getExternalModuleImportEqualsDeclarationExpression(Me);return ne.updateImportEqualsDeclaration(Me,Me.modifiers,Me.isTypeOnly,Me.name,ne.updateExternalModuleReference(Me.moduleReference,ut(Me,Ke)))}else{var Vr=k;return k=e.createGetSymbolAccessibilityDiagnosticForNode(Me),Ze(Me.moduleReference,F),k=Vr,Me}}function qr(Me){if(!Me.importClause)return ne.updateImportDeclaration(Me,Me.modifiers,Me.importClause,ut(Me,Me.moduleSpecifier),Rr(Me.assertClause));var Ke=Me.importClause&&Me.importClause.name&&K.isDeclarationVisible(Me.importClause)?Me.importClause.name:void 0;if(!Me.importClause.namedBindings)return Ke&&ne.updateImportDeclaration(Me,Me.modifiers,ne.updateImportClause(Me.importClause,Me.importClause.isTypeOnly,Ke,void 0),ut(Me,Me.moduleSpecifier),Rr(Me.assertClause));if(Me.importClause.namedBindings.kind===271){var Vr=K.isDeclarationVisible(Me.importClause.namedBindings)?Me.importClause.namedBindings:void 0;return Ke||Vr?ne.updateImportDeclaration(Me,Me.modifiers,ne.updateImportClause(Me.importClause,Me.importClause.isTypeOnly,Ke,Vr),ut(Me,Me.moduleSpecifier),Rr(Me.assertClause)):void 0}var Yr=e.mapDefined(Me.importClause.namedBindings.elements,function(Nt){return K.isDeclarationVisible(Nt)?Nt:void 0});if(Yr&&Yr.length||Ke)return ne.updateImportDeclaration(Me,Me.modifiers,ne.updateImportClause(Me.importClause,Me.importClause.isTypeOnly,Ke,Yr&&Yr.length?ne.updateNamedImports(Me.importClause.namedBindings,Yr):void 0),ut(Me,Me.moduleSpecifier),Rr(Me.assertClause));if(K.isImportRequiredByAugmentation(Me))return ne.updateImportDeclaration(Me,Me.modifiers,void 0,ut(Me,Me.moduleSpecifier),Rr(Me.assertClause))}function Rr(Me){var Ke=e.getResolutionModeOverrideForClause(Me);if(Ke!==void 0)return e.isNightly()||Z.addDiagnostic(e.createDiagnosticForNode(Me,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),Me}function zr(Me){for(;e.length(ge);){var Ke=ge.shift();if(!e.isLateVisibilityPaintedStatement(Ke))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.Debug.formatSyntaxKind(Ke.kind)));var Vr=X;X=Ke.parent&&e.isSourceFile(Ke.parent)&&!(e.isExternalModule(Ke.parent)&&A);var Yr=Fe(Ke);X=Vr,Pe.set(e.getOriginalNodeId(Ke),Yr)}return e.visitNodes(Me,Nt);function Nt(Wt){if(e.isLateVisibilityPaintedStatement(Wt)){var sn=e.getOriginalNodeId(Wt);if(Pe.has(sn)){var en=Pe.get(sn);return Pe.delete(sn),en&&((e.isArray(en)?e.some(en,e.needsScopeMarker):e.needsScopeMarker(en))&&(C=!0),e.isSourceFile(Wt.parent)&&(e.isArray(en)?e.some(en,e.isExternalModuleIndicator):e.isExternalModuleIndicator(en))&&(y=!0)),en}}return Wt}}function Fr(Me){if(Re(Me)||e.isDeclaration(Me)&&(Ue(Me)||e.hasDynamicName(Me)&&!K.isLateBound(e.getParseTreeNode(Me)))||e.isFunctionLike(Me)&&K.isImplementationOfOverload(Me)||e.isSemicolonClassElement(Me))return;var Ke;Oe(Me)&&(Ke=F,F=Me);var Vr=k,Yr=e.canProduceDiagnostics(Me),Nt=fe,Wt=(Me.kind===184||Me.kind===197)&&Me.parent.kind!==262;if((e.isMethodDeclaration(Me)||e.isMethodSignature(Me))&&e.hasEffectiveModifier(Me,8))return Me.symbol&&Me.symbol.declarations&&Me.symbol.declarations[0]!==Me?void 0:Sr(ne.createPropertyDeclaration(Qr(Me),Me.name,void 0,void 0,void 0));if(Yr&&!fe&&(k=e.createGetSymbolAccessibilityDiagnosticForNode(Me)),e.isTypeQueryNode(Me)&&Ze(Me.exprName,F),Wt&&(fe=!0),Y(Me))switch(Me.kind){case 230:{(e.isEntityName(Me.expression)||e.isEntityNameExpression(Me.expression))&&Ze(Me.expression,F);var sn=e.visitEachChild(Me,Fr,Z);return Sr(ne.updateExpressionWithTypeArguments(sn,sn.expression,sn.typeArguments))}case 180:{Ze(Me.typeName,F);var sn=e.visitEachChild(Me,Fr,Z);return Sr(ne.updateTypeReferenceNode(sn,sn.typeName,sn.typeArguments))}case 177:return Sr(ne.updateConstructSignature(Me,wr(Me,Me.typeParameters),mr(Me,Me.parameters),ue(Me,Me.type)));case 173:{var en=ne.createConstructorDeclaration(Qr(Me),mr(Me,Me.parameters,0),void 0);return Sr(en)}case 171:{if(e.isPrivateIdentifier(Me.name))return Sr(void 0);var Ir=ne.createMethodDeclaration(Qr(Me),void 0,Me.name,Me.questionToken,wr(Me,Me.typeParameters),mr(Me,Me.parameters),ue(Me,Me.type),void 0);return Sr(Ir)}case 174:{if(e.isPrivateIdentifier(Me.name))return Sr(void 0);var Jr=ft(Me,K.getAllAccessorDeclarations(Me));return Sr(ne.updateGetAccessorDeclaration(Me,Qr(Me),Me.name,Hr(Me,e.hasEffectiveModifier(Me,8)),ue(Me,Jr),void 0))}case 175:return e.isPrivateIdentifier(Me.name)?Sr(void 0):Sr(ne.updateSetAccessorDeclaration(Me,Qr(Me),Me.name,Hr(Me,e.hasEffectiveModifier(Me,8)),void 0));case 169:return e.isPrivateIdentifier(Me.name)?Sr(void 0):Sr(ne.updatePropertyDeclaration(Me,Qr(Me),Me.name,Me.questionToken,ue(Me,Me.type),L(Me)));case 168:return e.isPrivateIdentifier(Me.name)?Sr(void 0):Sr(ne.updatePropertySignature(Me,Qr(Me),Me.name,Me.questionToken,ue(Me,Me.type)));case 170:return e.isPrivateIdentifier(Me.name)?Sr(void 0):Sr(ne.updateMethodSignature(Me,Qr(Me),Me.name,Me.questionToken,wr(Me,Me.typeParameters),mr(Me,Me.parameters),ue(Me,Me.type)));case 176:return Sr(ne.updateCallSignature(Me,wr(Me,Me.typeParameters),mr(Me,Me.parameters),ue(Me,Me.type)));case 178:return Sr(ne.updateIndexSignature(Me,Qr(Me),mr(Me,Me.parameters),e.visitNode(Me.type,Fr)||ne.createKeywordTypeNode(131)));case 257:return e.isBindingPattern(Me.name)?Le(Me.name):(Wt=!0,fe=!0,Sr(ne.updateVariableDeclaration(Me,Me.name,void 0,ue(Me,Me.type),L(Me))));case 165:return _t(Me)&&(Me.default||Me.constraint)?Sr(ne.updateTypeParameterDeclaration(Me,Me.modifiers,Me.name,void 0,void 0)):Sr(e.visitEachChild(Me,Fr,Z));case 191:{var ye=e.visitNode(Me.checkType,Fr),Ie=e.visitNode(Me.extendsType,Fr),We=F;F=Me.trueType;var dr=e.visitNode(Me.trueType,Fr);F=We;var ar=e.visitNode(Me.falseType,Fr);return Sr(ne.updateConditionalTypeNode(Me,ye,Ie,dr,ar))}case 181:return Sr(ne.updateFunctionTypeNode(Me,e.visitNodes(Me.typeParameters,Fr),mr(Me,Me.parameters),e.visitNode(Me.type,Fr)));case 182:return Sr(ne.updateConstructorTypeNode(Me,Qr(Me),e.visitNodes(Me.typeParameters,Fr),mr(Me,Me.parameters),e.visitNode(Me.type,Fr)));case 202:return e.isLiteralImportTypeNode(Me)?Sr(ne.updateImportTypeNode(Me,ne.updateLiteralTypeNode(Me.argument,ut(Me,Me.argument.literal)),Me.assertions,Me.qualifier,e.visitNodes(Me.typeArguments,Fr,e.isTypeNode),Me.isTypeOf)):Sr(Me);default:e.Debug.assertNever(Me,"Attempted to process unhandled node kind: ".concat(e.Debug.formatSyntaxKind(Me.kind)))}return e.isTupleTypeNode(Me)&&e.getLineAndCharacterOfPosition(U,Me.pos).line===e.getLineAndCharacterOfPosition(U,Me.end).line&&e.setEmitFlags(Me,1),Sr(e.visitEachChild(Me,Fr,Z));function Sr(Or){return Or&&Yr&&e.hasDynamicName(Me)&&$r(Me),Oe(Me)&&(F=Ke),Yr&&!fe&&(k=Vr),Wt&&(fe=Nt),Or===Me?Or:Or&&e.setOriginalNode(tt(Or,Me),Me)}}function _t(Me){return Me.parent.kind===171&&e.hasEffectiveModifier(Me.parent,8)}function Ct(Me){if(te(Me)&&!Re(Me)){switch(Me.kind){case 275:return e.isSourceFile(Me.parent)&&(y=!0),B=!0,ne.updateExportDeclaration(Me,Me.modifiers,Me.isTypeOnly,Me.exportClause,ut(Me,Me.moduleSpecifier),e.getResolutionModeOverrideForClause(Me.assertClause)?Me.assertClause:void 0);case 274:{if(e.isSourceFile(Me.parent)&&(y=!0),B=!0,Me.expression.kind===79)return Me;var Ke=ne.createUniqueName("_default",16);k=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Me}},M=Me;var Vr=ne.createVariableDeclaration(Ke,void 0,K.createTypeOfExpression(Me.expression,Me,s,w),void 0);M=void 0;var Yr=ne.createVariableStatement(X?[ne.createModifier(136)]:[],ne.createVariableDeclarationList([Vr],2));return tt(Yr,Me),e.removeAllComments(Me),[Yr,ne.updateExportAssignment(Me,Me.modifiers,Ke)]}}var Nt=Fe(Me);return Pe.set(e.getOriginalNodeId(Me),Nt),Me}}function yt(Me){if(e.isImportEqualsDeclaration(Me)||e.hasEffectiveModifier(Me,1024)||!e.canHaveModifiers(Me))return Me;var Ke=ne.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(Me)&258046);return ne.updateModifiers(Me,Ke)}function Fe(Me){if(ge)for(;e.orderedRemoveItem(ge,Me););if(Re(Me))return;switch(Me.kind){case 268:return or(Me);case 269:return qr(Me)}if(e.isDeclaration(Me)&&Ue(Me)||e.isFunctionLike(Me)&&K.isImplementationOfOverload(Me))return;var Ke;Oe(Me)&&(Ke=F,F=Me);var Vr=e.canProduceDiagnostics(Me),Yr=k;Vr&&(k=e.createGetSymbolAccessibilityDiagnosticForNode(Me));var Nt=X;switch(Me.kind){case 262:{X=!1;var Wt=hr(ne.updateTypeAliasDeclaration(Me,Qr(Me),Me.name,e.visitNodes(Me.typeParameters,Fr,e.isTypeParameterDeclaration),e.visitNode(Me.type,Fr,e.isTypeNode)));return X=Nt,Wt}case 261:return hr(ne.updateInterfaceDeclaration(Me,Qr(Me),Me.name,wr(Me,Me.typeParameters),Dt(Me.heritageClauses),e.visitNodes(Me.members,Fr)));case 259:{var Wt=hr(ne.updateFunctionDeclaration(Me,Qr(Me),void 0,Me.name,wr(Me,Me.typeParameters),mr(Me,Me.parameters),ue(Me,Me.type),void 0));if(Wt&&K.isExpandoFunctionDeclaration(Me)&&Je(Me)){var sn=K.getPropertiesOfContainerFunction(Me),en=e.parseNodeFactory.createModuleDeclaration(void 0,Wt.name||ne.createIdentifier("_default"),ne.createModuleBlock([]),16);e.setParent(en,F),en.locals=e.createSymbolTable(sn),en.symbol=sn[0].parent;var Ir=[],Jr=e.mapDefined(sn,function(Qe){if(!(!Qe.valueDeclaration||!e.isPropertyAccessExpression(Qe.valueDeclaration))){k=e.createGetSymbolAccessibilityDiagnosticForNode(Qe.valueDeclaration);var Qt=K.createTypeOfDeclaration(Qe.valueDeclaration,en,s,w);k=Yr;var Zt=e.unescapeLeadingUnderscores(Qe.escapedName),Tt=e.isStringANonContextualKeyword(Zt),gt=Tt?ne.getGeneratedNameForNode(Qe.valueDeclaration):ne.createIdentifier(Zt);Tt&&Ir.push([gt,Zt]);var kt=ne.createVariableDeclaration(gt,void 0,Qt,void 0);return ne.createVariableStatement(Tt?void 0:[ne.createToken(93)],ne.createVariableDeclarationList([kt]))}});Ir.length?Jr.push(ne.createExportDeclaration(void 0,!1,ne.createNamedExports(e.map(Ir,function(Qe){var Qt=Qe[0],Zt=Qe[1];return ne.createExportSpecifier(!1,Qt,Zt)})))):Jr=e.mapDefined(Jr,function(Qe){return ne.updateModifiers(Qe,0)});var ye=ne.createModuleDeclaration(Qr(Me),Me.name,ne.createModuleBlock(Jr),16);if(!e.hasEffectiveModifier(Wt,1024))return[Wt,ye];var Ie=ne.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(Wt)&-1026|2),We=ne.updateFunctionDeclaration(Wt,Ie,void 0,Wt.name,Wt.typeParameters,Wt.parameters,Wt.type,void 0),dr=ne.updateModuleDeclaration(ye,Ie,ye.name,ye.body),ar=ne.createExportAssignment(void 0,!1,ye.name);return e.isSourceFile(Me.parent)&&(y=!0),B=!0,[We,dr,ar]}else return Wt}case 264:{X=!1;var Sr=Me.body;if(Sr&&Sr.kind===265){var Or=C,Ge=B;B=!1,C=!1;var ur=e.visitNodes(Sr.statements,Ct),Lr=zr(ur);Me.flags&16777216&&(C=!1),!e.isGlobalScopeAugmentation(Me)&&!Br(Lr)&&!B&&(C?Lr=ne.createNodeArray(t(t([],Lr,!0),[e.createEmptyExports(ne)],!1)):Lr=e.visitNodes(Lr,yt));var Ar=ne.updateModuleBlock(Sr,Lr);X=Nt,C=Or,B=Ge;var rt=Qr(Me);return hr(ne.updateModuleDeclaration(Me,rt,e.isExternalModuleAugmentation(Me)?ut(Me,Me.name):Me.name,Ar))}else{X=Nt;var rt=Qr(Me);X=!1,e.visitNode(Sr,Ct);var Et=e.getOriginalNodeId(Sr),Ar=Pe.get(Et);return Pe.delete(Et),hr(ne.updateModuleDeclaration(Me,rt,Me.name,Ar))}}case 260:{re=Me.name,M=Me;var Ie=ne.createNodeArray(Qr(Me)),St=wr(Me,Me.typeParameters),Pt=e.getFirstConstructorWithBody(Me),pt=void 0;if(Pt){var Ft=k;pt=e.compact(e.flatMap(Pt.parameters,function(Qe){if(!e.hasSyntacticModifier(Qe,16476)||Re(Qe))return;if(k=e.createGetSymbolAccessibilityDiagnosticForNode(Qe),Qe.name.kind===79)return tt(ne.createPropertyDeclaration(Qr(Qe),Qe.name,Qe.questionToken,ue(Qe,Qe.type),L(Qe)),Qe);return Qt(Qe.name);function Qt(Zt){for(var Tt,gt=0,kt=Zt.elements;gt<kt.length;gt++){var Lt=kt[gt];e.isOmittedExpression(Lt)||(e.isBindingPattern(Lt.name)&&(Tt=e.concatenate(Tt,Qt(Lt.name))),Tt=Tt||[],Tt.push(ne.createPropertyDeclaration(Qr(Qe),Lt.name,void 0,ue(Lt,void 0),void 0)))}return Tt}})),k=Ft}var ht=e.some(Me.members,function(Qe){return!!Qe.name&&e.isPrivateIdentifier(Qe.name)}),Yt=ht?[ne.createPropertyDeclaration(void 0,ne.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,un=e.concatenate(e.concatenate(Yt,pt),e.visitNodes(Me.members,Fr)),wn=ne.createNodeArray(un),Bn=e.getEffectiveBaseTypeNode(Me);if(Bn&&!e.isEntityNameExpression(Bn.expression)&&Bn.expression.kind!==104){var yn=Me.name?e.unescapeLeadingUnderscores(Me.name.escapedText):"default",Tn=ne.createUniqueName("".concat(yn,"_base"),16);k=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Bn,typeName:Me.name}};var An=ne.createVariableDeclaration(Tn,void 0,K.createTypeOfExpression(Bn.expression,Me,s,w),void 0),ii=ne.createVariableStatement(X?[ne.createModifier(136)]:[],ne.createVariableDeclarationList([An],2)),Xe=ne.createNodeArray(e.map(Me.heritageClauses,function(Qe){if(Qe.token===94){var Qt=k;k=e.createGetSymbolAccessibilityDiagnosticForNode(Qe.types[0]);var Zt=ne.updateHeritageClause(Qe,e.map(Qe.types,function(Tt){return ne.updateExpressionWithTypeArguments(Tt,Tn,e.visitNodes(Tt.typeArguments,Fr))}));return k=Qt,Zt}return ne.updateHeritageClause(Qe,e.visitNodes(ne.createNodeArray(e.filter(Qe.types,function(Tt){return e.isEntityNameExpression(Tt.expression)||Tt.expression.kind===104})),Fr))}));return[ii,hr(ne.updateClassDeclaration(Me,Ie,Me.name,St,Xe,wn))]}else{var Xe=Dt(Me.heritageClauses);return hr(ne.updateClassDeclaration(Me,Ie,Me.name,St,Xe,wn))}}case 240:return hr(vr(Me));case 263:return hr(ne.updateEnumDeclaration(Me,ne.createNodeArray(Qr(Me)),Me.name,ne.createNodeArray(e.mapDefined(Me.members,function(at){if(!Re(at)){var Qe=K.getConstantValue(at);return tt(ne.updateEnumMember(at,at.name,Qe!==void 0?typeof Qe=="string"?ne.createStringLiteral(Qe):ne.createNumericLiteral(Qe):void 0),at)}}))))}return e.Debug.assertNever(Me,"Unhandled top-level node in declaration emit: ".concat(e.Debug.formatSyntaxKind(Me.kind)));function hr(at){return Oe(Me)&&(F=Ke),Vr&&(k=Yr),Me.kind===264&&(X=Nt),at===Me?at:(M=void 0,re=void 0,at&&e.setOriginalNode(tt(at,Me),Me))}}function vr(Me){if(e.forEach(Me.declarationList.declarations,lr)){var Ke=e.visitNodes(Me.declarationList.declarations,Fr);if(e.length(Ke))return ne.updateVariableStatement(Me,ne.createNodeArray(Qr(Me)),ne.updateVariableDeclarationList(Me.declarationList,Ke))}}function Le(Me){return e.flatten(e.mapDefined(Me.elements,function(Ke){return cr(Ke)}))}function cr(Me){if(Me.kind!==229&&Me.name)return lr(Me)?e.isBindingPattern(Me.name)?Le(Me.name):ne.createVariableDeclaration(Me.name,void 0,ue(Me,void 0),void 0):void 0}function $r(Me){var Ke;fe||(Ke=k,k=e.createGetSymbolAccessibilityDiagnosticForNodeName(Me)),re=Me.name,e.Debug.assert(K.isLateBound(e.getParseTreeNode(Me)));var Vr=Me,Yr=Vr.name.expression;Ze(Yr,F),fe||(k=Ke),re=void 0}function Re(Me){return!!le&&!!Me&&T(Me,U)}function xr(Me){return e.isExportAssignment(Me)||e.isExportDeclaration(Me)}function Br(Me){return e.some(Me,xr)}function Qr(Me){var Ke=e.getEffectiveModifierFlags(Me),Vr=ct(Me);return Ke===Vr?e.visitArray(Me.modifiers,function(Yr){return e.tryCast(Yr,e.isModifier)},e.isModifier):ne.createModifiersFromModifierFlags(Vr)}function ct(Me){var Ke=241147,Vr=X&&!O(Me)?2:0,Yr=Me.parent.kind===308;return(!Yr||A&&Yr&&e.isExternalModule(Me.parent))&&(Ke^=2,Vr=0),E(Me,Ke,Vr)}function ft(Me,Ke){var Vr=v(Me);return!Vr&&Me!==Ke.firstAccessor&&(Vr=v(Ke.firstAccessor),k=e.createGetSymbolAccessibilityDiagnosticForNode(Ke.firstAccessor)),!Vr&&Ke.secondAccessor&&Me!==Ke.secondAccessor&&(Vr=v(Ke.secondAccessor),k=e.createGetSymbolAccessibilityDiagnosticForNode(Ke.secondAccessor)),Vr}function Dt(Me){return ne.createNodeArray(e.filter(e.map(Me,function(Ke){return ne.updateHeritageClause(Ke,e.visitNodes(ne.createNodeArray(e.filter(Ke.types,function(Vr){return e.isEntityNameExpression(Vr.expression)||Ke.token===94&&Vr.expression.kind===104})),Fr))}),function(Ke){return Ke.types&&!!Ke.types.length}))}}e.transformDeclarations=D;function O(Z){return Z.kind===261}function W(Z,ce,k){return e.factory.createModifiersFromModifierFlags(E(Z,ce,k))}function E(Z,ce,k){ce===void 0&&(ce=258043),k===void 0&&(k=0);var X=e.getEffectiveModifierFlags(Z)&ce|k;return X&1024&&!(X&1)&&(X^=1),X&1024&&X&2&&(X^=2),X}function v(Z){if(Z)return Z.kind===174?Z.type:Z.parameters.length>0?Z.parameters[0].type:void 0}function S(Z){switch(Z.kind){case 169:case 168:return!e.hasEffectiveModifier(Z,8);case 166:case 257:return!0}return!1}function te(Z){switch(Z.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}function Y(Z){switch(Z.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}})(h||(h={}));var h;(function(e){function c(ce){switch(ce){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}var P;(function(ce){ce[ce.Uninitialized=0]="Uninitialized",ce[ce.Initialized=1]="Initialized",ce[ce.Completed=2]="Completed",ce[ce.Disposed=3]="Disposed"})(P||(P={}));var T;(function(ce){ce[ce.Substitution=1]="Substitution",ce[ce.EmitNotifications=2]="EmitNotifications"})(T||(T={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function s(ce,k,X){return{scriptTransformers:D(ce,k,X),declarationTransformers:O(k)}}e.getTransformers=s;function D(ce,k,X){if(X)return e.emptyArray;var A=e.getEmitScriptTarget(ce),y=e.getEmitModuleKind(ce),C=[];return e.addRange(C,k&&e.map(k.before,v)),C.push(e.transformTypeScript),C.push(e.transformLegacyDecorators),C.push(e.transformClassFields),e.getJSXTransformEnabled(ce)&&C.push(e.transformJsx),A<99&&C.push(e.transformESNext),A<8&&C.push(e.transformES2021),A<7&&C.push(e.transformES2020),A<6&&C.push(e.transformES2019),A<5&&C.push(e.transformES2018),A<4&&C.push(e.transformES2017),A<3&&C.push(e.transformES2016),A<2&&(C.push(e.transformES2015),C.push(e.transformGenerators)),C.push(c(y)),A<1&&C.push(e.transformES5),e.addRange(C,k&&e.map(k.after,v)),C}function O(ce){var k=[];return k.push(e.transformDeclarations),e.addRange(k,ce&&e.map(ce.afterDeclarations,S)),k}function W(ce){return function(k){return e.isBundle(k)?ce.transformBundle(k):ce.transformSourceFile(k)}}function E(ce,k){return function(X){var A=ce(X);return typeof A=="function"?k(X,A):W(A)}}function v(ce){return E(ce,e.chainBundle)}function S(ce){return E(ce,function(k,X){return X})}function te(ce,k){return k}e.noEmitSubstitution=te;function Y(ce,k,X){X(ce,k)}e.noEmitNotification=Y;function Z(ce,k,X,A,y,C,B){for(var F=new Array(358),z,ge,Pe,fe=0,_e=[],ne=[],oe=[],w=[],re=0,M=!1,U=[],H=0,q,R,K=te,I=Y,he=0,le=[],ee={factory:X,getCompilerOptions:function(){return A},getEmitResolver:function(){return ce},getEmitHost:function(){return k},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(ee)}),startLexicalEnvironment:Ae,suspendLexicalEnvironment:qe,resumeLexicalEnvironment:xe,endLexicalEnvironment:L,setLexicalEnvironmentFlags:ue,getLexicalEnvironmentFlags:Ue,hoistVariableDeclaration:rr,hoistFunctionDeclaration:je,addInitializationStatement:Ce,startBlockScope:Je,endBlockScope:lr,addBlockScopedVariable:mr,requestEmitHelper:Hr,readEmitHelpers:wr,enableSubstitution:Ne,enableEmitNotification:tr,isSubstitutionEnabled:we,isEmitNotificationEnabled:me,get onSubstituteNode(){return K},set onSubstituteNode(Ze){e.Debug.assert(he<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Ze!==void 0,"Value must not be 'undefined'"),K=Ze},get onEmitNode(){return I},set onEmitNode(Ze){e.Debug.assert(he<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Ze!==void 0,"Value must not be 'undefined'"),I=Ze},addDiagnostic:function(Ze){le.push(Ze)}},J=0,de=y;J<de.length;J++){var De=de[J];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(De)))}e.performance.mark("beforeTransform");var N=C.map(function(Ze){return Ze(ee)}),b=function(Ze){for(var tt=0,ut=N;tt<ut.length;tt++){var or=ut[tt];Ze=or(Ze)}return Ze};he=1;for(var Q=[],G=0,ae=y;G<ae.length;G++){var De=ae[G];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",De.kind===308?{path:De.path}:{kind:De.kind,pos:De.pos,end:De.end}),Q.push((B?b:Te)(De)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return he=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:Q,substituteNode:nr,emitNodeWithNotification:He,isEmitNotificationEnabled:me,dispose:Oe,diagnostics:le};function Te(Ze){return Ze&&(!e.isSourceFile(Ze)||!Ze.isDeclarationFile)?b(Ze):Ze}function Ne(Ze){e.Debug.assert(he<2,"Cannot modify the transformation context after transformation has completed."),F[Ze]|=1}function we(Ze){return(F[Ze.kind]&1)!==0&&(e.getEmitFlags(Ze)&4)===0}function nr(Ze,tt){return e.Debug.assert(he<3,"Cannot substitute a node after the result is disposed."),tt&&we(tt)&&K(Ze,tt)||tt}function tr(Ze){e.Debug.assert(he<2,"Cannot modify the transformation context after transformation has completed."),F[Ze]|=2}function me(Ze){return(F[Ze.kind]&2)!==0||(e.getEmitFlags(Ze)&2)!==0}function He(Ze,tt,ut){e.Debug.assert(he<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),tt&&(me(tt)?I(Ze,tt,ut):ut(Ze,tt))}function rr(Ze){e.Debug.assert(he>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(he<2,"Cannot modify the lexical environment after transformation has completed.");var tt=e.setEmitFlags(X.createVariableDeclaration(Ze),64);z?z.push(tt):z=[tt],fe&1&&(fe|=2)}function je(Ze){e.Debug.assert(he>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Ze,1048576),ge?ge.push(Ze):ge=[Ze]}function Ce(Ze){e.Debug.assert(he>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Ze,1048576),Pe?Pe.push(Ze):Pe=[Ze]}function Ae(){e.Debug.assert(he>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!M,"Lexical environment is suspended."),_e[re]=z,ne[re]=ge,oe[re]=Pe,w[re]=fe,re++,z=void 0,ge=void 0,Pe=void 0,fe=0}function qe(){e.Debug.assert(he>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!M,"Lexical environment is already suspended."),M=!0}function xe(){e.Debug.assert(he>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(M,"Lexical environment is not suspended."),M=!1}function L(){e.Debug.assert(he>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!M,"Lexical environment is suspended.");var Ze;if(z||ge||Pe){if(ge&&(Ze=t([],ge,!0)),z){var tt=X.createVariableStatement(void 0,X.createVariableDeclarationList(z));e.setEmitFlags(tt,1048576),Ze?Ze.push(tt):Ze=[tt]}Pe&&(Ze?Ze=t(t([],Ze,!0),Pe,!0):Ze=t([],Pe,!0))}return re--,z=_e[re],ge=ne[re],Pe=oe[re],fe=w[re],re===0&&(_e=[],ne=[],oe=[],w=[]),Ze}function ue(Ze,tt){fe=tt?fe|Ze:fe&~Ze}function Ue(){return fe}function Je(){e.Debug.assert(he>0,"Cannot start a block scope during initialization."),e.Debug.assert(he<2,"Cannot start a block scope after transformation has completed."),U[H]=q,H++,q=void 0}function lr(){e.Debug.assert(he>0,"Cannot end a block scope during initialization."),e.Debug.assert(he<2,"Cannot end a block scope after transformation has completed.");var Ze=e.some(q)?[X.createVariableStatement(void 0,X.createVariableDeclarationList(q.map(function(tt){return X.createVariableDeclaration(tt)}),1))]:void 0;return H--,q=U[H],H===0&&(U=[]),Ze}function mr(Ze){e.Debug.assert(H>0,"Cannot add a block scoped variable outside of an iteration body."),(q||(q=[])).push(Ze)}function Hr(Ze){if(e.Debug.assert(he>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(he<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!Ze.scoped,"Cannot request a scoped emit helper."),Ze.dependencies)for(var tt=0,ut=Ze.dependencies;tt<ut.length;tt++){var or=ut[tt];Hr(or)}R=e.append(R,Ze)}function wr(){e.Debug.assert(he>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(he<2,"Cannot modify the transformation context after transformation has completed.");var Ze=R;return R=void 0,Ze}function Oe(){if(he<3){for(var Ze=0,tt=y;Ze<tt.length;Ze++){var ut=tt[Ze];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(ut)))}z=void 0,_e=void 0,ge=void 0,ne=void 0,K=void 0,I=void 0,R=void 0,he=3}}}e.transformNodes=Z,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:te,onEmitNode:Y,addDiagnostic:e.noop}})(h||(h={}));var h;(function(e){var c=ne();function P(R){return e.fileExtensionIs(R,".tsbuildinfo")}e.isBuildInfoFile=P;function T(R,K,I,he,le,ee){he===void 0&&(he=!1);var J=e.isArray(I)?I:e.getSourceFilesToEmit(R,I,he),de=R.getCompilerOptions();if(e.outFile(de)){var De=R.getPrependNodes();if(J.length||De.length){var N=e.factory.createBundle(J,De),b=K(O(N,R,he),N);if(b)return b}}else{if(!le)for(var Q=0,G=J;Q<G.length;Q++){var ae=G[Q],b=K(O(ae,R,he),ae);if(b)return b}if(ee){var Te=s(de);if(Te)return K({buildInfoPath:Te},void 0)}}}e.forEachEmittedFile=T;function s(R){var K=R.configFilePath;if(e.isIncrementalCompilation(R)){if(R.tsBuildInfoFile)return R.tsBuildInfoFile;var I=e.outFile(R),he;if(I)he=e.removeFileExtension(I);else{if(!K)return;var le=e.removeFileExtension(K);he=R.outDir?R.rootDir?e.resolvePath(R.outDir,e.getRelativePathFromDirectory(R.rootDir,le,!0)):e.combinePaths(R.outDir,e.getBaseFileName(le)):le}return he+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=s;function D(R,K){var I=e.outFile(R),he=R.emitDeclarationOnly?void 0:I,le=he&&W(he,R),ee=K||e.getEmitDeclarations(R)?e.removeFileExtension(I)+".d.ts":void 0,J=ee&&e.getAreDeclarationMapsEnabled(R)?ee+".map":void 0,de=s(R);return{jsFilePath:he,sourceMapFilePath:le,declarationFilePath:ee,declarationMapPath:J,buildInfoPath:de}}e.getOutputPathsForBundle=D;function O(R,K,I){var he=K.getCompilerOptions();if(R.kind===309)return D(he,I);var le=e.getOwnEmitOutputFilePath(R.fileName,K,E(R.fileName,he)),ee=e.isJsonSourceFile(R),J=ee&&e.comparePaths(R.fileName,le,K.getCurrentDirectory(),!K.useCaseSensitiveFileNames())===0,de=he.emitDeclarationOnly||J?void 0:le,De=!de||e.isJsonSourceFile(R)?void 0:W(de,he),N=I||e.getEmitDeclarations(he)&&!ee?e.getDeclarationEmitOutputFilePath(R.fileName,K):void 0,b=N&&e.getAreDeclarationMapsEnabled(he)?N+".map":void 0;return{jsFilePath:de,sourceMapFilePath:De,declarationFilePath:N,declarationMapPath:b,buildInfoPath:void 0}}e.getOutputPathsFor=O;function W(R,K){return K.sourceMap&&!K.inlineSourceMap?R+".map":void 0}function E(R,K){return e.fileExtensionIs(R,".json")?".json":K.jsx===1&&e.fileExtensionIsOneOf(R,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(R,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(R,[".cts",".cjs"])?".cjs":".js"}e.getOutputExtension=E;function v(R,K,I,he,le){return he?e.resolvePath(he,e.getRelativePathFromDirectory(le?le():X(K,I),R,I)):R}function S(R,K,I,he){return e.changeExtension(v(R,K,I,K.options.declarationDir||K.options.outDir,he),e.getDeclarationEmitExtensionForPath(R))}e.getOutputDeclarationFileName=S;function te(R,K,I,he){if(!K.options.emitDeclarationOnly){var le=e.fileExtensionIs(R,".json"),ee=e.changeExtension(v(R,K,I,K.options.outDir,he),E(R,K.options));return!le||e.comparePaths(R,ee,e.Debug.checkDefined(K.options.configFilePath),I)!==0?ee:void 0}}function Y(){var R;return{addOutput:K,getOutputs:I};function K(he){he&&(R||(R=[])).push(he)}function I(){return R||e.emptyArray}}function Z(R,K){var I=D(R.options,!1),he=I.jsFilePath,le=I.sourceMapFilePath,ee=I.declarationFilePath,J=I.declarationMapPath,de=I.buildInfoPath;K(he),K(le),K(ee),K(J),K(de)}function ce(R,K,I,he,le){if(!e.isDeclarationFileName(K)){var ee=te(K,R,I,le);if(he(ee),!e.fileExtensionIs(K,".json")&&(ee&&R.options.sourceMap&&he("".concat(ee,".map")),e.getEmitDeclarations(R.options))){var J=S(K,R,I,le);he(J),R.options.declarationMap&&he("".concat(J,".map"))}}}function k(R,K,I,he,le){var ee;return R.rootDir?(ee=e.getNormalizedAbsolutePath(R.rootDir,I),le==null||le(R.rootDir)):R.composite&&R.configFilePath?(ee=e.getDirectoryPath(e.normalizeSlashes(R.configFilePath)),le==null||le(ee)):ee=e.computeCommonSourceDirectoryOfFilenames(K(),I,he),ee&&ee[ee.length-1]!==e.directorySeparator&&(ee+=e.directorySeparator),ee}e.getCommonSourceDirectory=k;function X(R,K){var I=R.options,he=R.fileNames;return k(I,function(){return e.filter(he,function(le){return!(I.noEmitForJsFiles&&e.fileExtensionIsOneOf(le,e.supportedJSExtensionsFlat))&&!e.isDeclarationFileName(le)})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(I.configFilePath))),e.createGetCanonicalFileName(!K))}e.getCommonSourceDirectoryOfConfig=X;function A(R,K){var I=Y(),he=I.addOutput,le=I.getOutputs;if(e.outFile(R.options))Z(R,he);else{for(var ee=e.memoize(function(){return X(R,K)}),J=0,de=R.fileNames;J<de.length;J++){var De=de[J];ce(R,De,K,he,ee)}he(s(R.options))}return le()}e.getAllProjectOutputs=A;function y(R,K,I){K=e.normalizePath(K),e.Debug.assert(e.contains(R.fileNames,K),"Expected fileName to be present in command line");var he=Y(),le=he.addOutput,ee=he.getOutputs;return e.outFile(R.options)?Z(R,le):ce(R,K,I,le),ee()}e.getOutputFileNames=y;function C(R,K){if(e.outFile(R.options)){var I=D(R.options,!1).jsFilePath;return e.Debug.checkDefined(I,"project ".concat(R.options.configFilePath," expected to have at least one output"))}for(var he=e.memoize(function(){return X(R,K)}),le=0,ee=R.fileNames;le<ee.length;le++){var J=ee[le];if(!e.isDeclarationFileName(J)){var I=te(J,R,K,he);if(I)return I;if(!e.fileExtensionIs(J,".json")&&e.getEmitDeclarations(R.options))return S(J,R,K,he)}}var de=s(R.options);return de||e.Debug.fail("project ".concat(R.options.configFilePath," expected to have at least one output"))}e.getFirstProjectOutput=C;function B(R,K,I,he,le,ee,J){var de=he.scriptTransformers,De=he.declarationTransformers,N=K.getCompilerOptions(),b=N.sourceMap||N.inlineSourceMap||e.getAreDeclarationMapsEnabled(N)?[]:void 0,Q=N.listEmittedFiles?[]:void 0,G=e.createDiagnosticCollection(),ae=e.getNewLineCharacter(N,function(){return K.getNewLine()}),Te=e.createTextWriter(ae),Ne=e.performance.createTimer("printTime","beforePrint","afterPrint"),we=Ne.enter,nr=Ne.exit,tr,me=!1;return we(),T(K,He,e.getSourceFilesToEmit(K,I,J),J,ee,!I),nr(),{emitSkipped:me,diagnostics:G.getDiagnostics(),emittedFiles:Q,sourceMaps:b};function He(Je,lr){var mr=Je.jsFilePath,Hr=Je.sourceMapFilePath,wr=Je.declarationFilePath,Oe=Je.declarationMapPath,Ze=Je.buildInfoPath,tt;Ze&&lr&&e.isBundle(lr)&&(tt=e.getDirectoryPath(e.getNormalizedAbsolutePath(Ze,K.getCurrentDirectory())),tr={commonSourceDirectory:ut(K.getCommonSourceDirectory()),sourceFiles:lr.sourceFiles.map(function(or){return ut(e.getNormalizedAbsolutePath(or.fileName,K.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:mr}),je(lr,mr,Hr,ut),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:wr}),Ce(lr,wr,Oe,ut),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:Ze}),rr(tr,Ze),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!me&&Q&&(le||(mr&&Q.push(mr),Hr&&Q.push(Hr),Ze&&Q.push(Ze)),wr&&Q.push(wr),Oe&&Q.push(Oe));function ut(or){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(tt,or,K.getCanonicalFileName))}}function rr(Je,lr){if(!(!lr||I||me)){var mr=K.getProgramBuildInfo();if(K.isEmitBlocked(lr)){me=!0;return}var Hr=e.version,wr={bundle:Je,program:mr,version:Hr};e.writeFile(K,G,lr,F(wr),!1,void 0,{buildInfo:wr})}}function je(Je,lr,mr,Hr){if(!(!Je||le||!lr)){if(K.isEmitBlocked(lr)||N.noEmit){me=!0;return}var wr=e.transformNodes(R,K,e.factory,N,[Je],de,!1),Oe={removeComments:N.removeComments,newLine:N.newLine,noEmitHelpers:N.noEmitHelpers,module:N.module,target:N.target,sourceMap:N.sourceMap,inlineSourceMap:N.inlineSourceMap,inlineSources:N.inlineSources,extendedDiagnostics:N.extendedDiagnostics,writeBundleFileInfo:!!tr,relativeToBuildInfo:Hr},Ze=_e(Oe,{hasGlobalName:R.hasGlobalName,onEmitNode:wr.emitNodeWithNotification,isEmitNotificationEnabled:wr.isEmitNotificationEnabled,substituteNode:wr.substituteNode});e.Debug.assert(wr.transformed.length===1,"Should only see one output from the transform"),qe(lr,mr,wr,Ze,N),wr.dispose(),tr&&(tr.js=Ze.bundleFileInfo)}}function Ce(Je,lr,mr,Hr){if(Je){if(!lr){(le||N.emitDeclarationOnly)&&(me=!0);return}var wr=e.isSourceFile(Je)?[Je]:Je.sourceFiles,Oe=J?wr:e.filter(wr,e.isSourceFileNotJson),Ze=e.outFile(N)?[e.factory.createBundle(Oe,e.isSourceFile(Je)?void 0:Je.prepends)]:Oe;le&&!e.getEmitDeclarations(N)&&Oe.forEach(Ae);var tt=e.transformNodes(R,K,e.factory,N,Ze,De,!1);if(e.length(tt.diagnostics))for(var ut=0,or=tt.diagnostics;ut<or.length;ut++){var qr=or[ut];G.add(qr)}var Rr={removeComments:N.removeComments,newLine:N.newLine,noEmitHelpers:!0,module:N.module,target:N.target,sourceMap:!J&&N.declarationMap,inlineSourceMap:N.inlineSourceMap,extendedDiagnostics:N.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!tr,recordInternalSection:!!tr,relativeToBuildInfo:Hr},zr=_e(Rr,{hasGlobalName:R.hasGlobalName,onEmitNode:tt.emitNodeWithNotification,isEmitNotificationEnabled:tt.isEmitNotificationEnabled,substituteNode:tt.substituteNode}),Fr=!!tt.diagnostics&&!!tt.diagnostics.length||!!K.isEmitBlocked(lr)||!!N.noEmit;me=me||Fr,(!Fr||J)&&(e.Debug.assert(tt.transformed.length===1,"Should only see one output from the decl transform"),qe(lr,mr,tt,zr,{sourceMap:Rr.sourceMap,sourceRoot:N.sourceRoot,mapRoot:N.mapRoot,extendedDiagnostics:N.extendedDiagnostics})),tt.dispose(),tr&&(tr.dts=zr.bundleFileInfo)}}function Ae(Je){if(e.isExportAssignment(Je)){Je.expression.kind===79&&R.collectLinkedAliases(Je.expression,!0);return}else if(e.isExportSpecifier(Je)){R.collectLinkedAliases(Je.propertyName||Je.name,!0);return}e.forEachChild(Je,Ae)}function qe(Je,lr,mr,Hr,wr){var Oe=mr.transformed[0],Ze=Oe.kind===309?Oe:void 0,tt=Oe.kind===308?Oe:void 0,ut=Ze?Ze.sourceFiles:[tt],or;xe(wr,Oe)&&(or=e.createSourceMapGenerator(K,e.getBaseFileName(e.normalizeSlashes(Je)),L(wr),ue(wr,Je,tt),wr)),Ze?Hr.writeBundle(Ze,Te,or):Hr.writeFile(tt,Te,or);var qr;if(or){b&&b.push({inputSourceFileNames:or.getSources(),sourceMap:or.toJSON()});var Rr=Ue(wr,or,Je,lr,tt);if(Rr&&(Te.isAtStartOfLine()||Te.rawWrite(ae),qr=Te.getTextPos(),Te.writeComment("//# ".concat("sourceMappingURL","=").concat(Rr))),lr){var zr=or.toString();e.writeFile(K,G,lr,zr,!1,ut),Hr.bundleFileInfo&&(Hr.bundleFileInfo.mapHash=e.computeSignature(zr,e.maybeBind(K,K.createHash)))}}else Te.writeLine();var Fr=Te.getText();e.writeFile(K,G,Je,Fr,!!N.emitBOM,ut,{sourceMapUrlPos:qr,diagnostics:mr.diagnostics}),Hr.bundleFileInfo&&(Hr.bundleFileInfo.hash=e.computeSignature(Fr,e.maybeBind(K,K.createHash))),Te.clear()}function xe(Je,lr){return(Je.sourceMap||Je.inlineSourceMap)&&(lr.kind!==308||!e.fileExtensionIs(lr.fileName,".json"))}function L(Je){var lr=e.normalizeSlashes(Je.sourceRoot||"");return lr&&e.ensureTrailingDirectorySeparator(lr)}function ue(Je,lr,mr){if(Je.sourceRoot)return K.getCommonSourceDirectory();if(Je.mapRoot){var Hr=e.normalizeSlashes(Je.mapRoot);return mr&&(Hr=e.getDirectoryPath(e.getSourceFilePathInNewDir(mr.fileName,K,Hr))),e.getRootLength(Hr)===0&&(Hr=e.combinePaths(K.getCommonSourceDirectory(),Hr)),Hr}return e.getDirectoryPath(e.normalizePath(lr))}function Ue(Je,lr,mr,Hr,wr){if(Je.inlineSourceMap){var Oe=lr.toString(),Ze=e.base64encode(e.sys,Oe);return"data:application/json;base64,".concat(Ze)}var tt=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(Hr)));if(Je.mapRoot){var ut=e.normalizeSlashes(Je.mapRoot);return wr&&(ut=e.getDirectoryPath(e.getSourceFilePathInNewDir(wr.fileName,K,ut))),e.getRootLength(ut)===0?(ut=e.combinePaths(K.getCommonSourceDirectory(),ut),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(mr)),e.combinePaths(ut,tt),K.getCurrentDirectory(),K.getCanonicalFileName,!0))):encodeURI(e.combinePaths(ut,tt))}return encodeURI(tt)}}e.emitFiles=B;function F(R){return JSON.stringify(R)}e.getBuildInfoText=F;function z(R,K){return e.readJsonOrUndefined(R,K)}e.getBuildInfo=z,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(R){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function ge(R,K,I){var he,le=e.Debug.checkDefined(R.js),ee=((he=le.sources)===null||he===void 0?void 0:he.prologues)&&e.arrayToMap(le.sources.prologues,function(J){return J.file});return R.sourceFiles.map(function(J,de){var De,N,b=ee==null?void 0:ee.get(de),Q=b==null?void 0:b.directives.map(function(Te){var Ne=e.setTextRange(e.factory.createStringLiteral(Te.expression.text),Te.expression),we=e.setTextRange(e.factory.createExpressionStatement(Ne),Te);return e.setParent(Ne,we),we}),G=e.factory.createToken(1),ae=e.factory.createSourceFile(Q??[],G,0);return ae.fileName=e.getRelativePathFromDirectory(I.getCurrentDirectory(),e.getNormalizedAbsolutePath(J,K),!I.useCaseSensitiveFileNames()),ae.text=(De=b==null?void 0:b.text)!==null&&De!==void 0?De:"",e.setTextRangePosWidth(ae,0,(N=b==null?void 0:b.text.length)!==null&&N!==void 0?N:0),e.setEachParent(ae.statements,ae),e.setTextRangePosWidth(G,ae.end,0),e.setParent(G,ae),ae})}function Pe(R,K,I,he){var le=e.maybeBind(K,K.createHash),ee=D(R.options,!1),J=ee.buildInfoPath,de=ee.jsFilePath,De=ee.sourceMapFilePath,N=ee.declarationFilePath,b=ee.declarationMapPath,Q;if(K.getBuildInfo)Q=K.getBuildInfo(J,R.options.configFilePath);else{var G=K.readFile(J);if(!G)return J;Q=z(J,G)}if(!Q||!Q.bundle||!Q.bundle.js||N&&!Q.bundle.dts)return J;var ae=K.readFile(e.Debug.checkDefined(de));if(!ae||e.computeSignature(ae,le)!==Q.bundle.js.hash)return de;var Te=De&&K.readFile(De);if(De&&!Te||R.options.inlineSourceMap)return De||"inline sourcemap decoding";if(De&&e.computeSignature(Te,le)!==Q.bundle.js.mapHash)return De;var Ne=N&&K.readFile(N);if(N&&!Ne||N&&e.computeSignature(Ne,le)!==Q.bundle.dts.hash)return N;var we=b&&K.readFile(b);if(b&&!we||R.options.inlineSourceMap)return b||"inline sourcemap decoding";if(b&&e.computeSignature(we,le)!==Q.bundle.dts.mapHash)return b;var nr=e.getDirectoryPath(e.getNormalizedAbsolutePath(J,K.getCurrentDirectory())),tr=e.createInputFiles(ae,Ne,De,Te,b,we,de,N,J,Q,!0),me=[],He=e.createPrependNodes(R.projectReferences,I,function(qe){return K.readFile(qe)}),rr=ge(Q.bundle,nr,K),je,Ce,Ae={getPrependNodes:e.memoize(function(){return t(t([],He,!0),[tr],!1)}),getCanonicalFileName:K.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(Q.bundle.commonSourceDirectory,nr)},getCompilerOptions:function(){return R.options},getCurrentDirectory:function(){return K.getCurrentDirectory()},getNewLine:function(){return K.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return rr},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(qe,xe,L,ue,Ue,Je){switch(qe){case de:if(ae===xe)return;break;case De:if(Te===xe)return;break;case J:var lr=Je.buildInfo;lr.program=Q.program,lr.program&&je!==void 0&&R.options.composite&&(lr.program.outSignature=e.computeSignature(je,le,Ce));var mr=Q.bundle,Hr=mr.js,wr=mr.dts,Oe=mr.sourceFiles;lr.bundle.js.sources=Hr.sources,wr&&(lr.bundle.dts.sources=wr.sources),lr.bundle.sourceFiles=Oe,me.push({name:qe,text:F(lr),writeByteOrderMark:L,buildInfo:lr});return;case N:if(Ne===xe)return;je=xe,Ce=Je;break;case b:if(we===xe)return;break;default:e.Debug.fail("Unexpected path: ".concat(qe))}me.push({name:qe,text:xe,writeByteOrderMark:L})},isEmitBlocked:e.returnFalse,readFile:function(qe){return K.readFile(qe)},fileExists:function(qe){return K.fileExists(qe)},useCaseSensitiveFileNames:function(){return K.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented,createHash:le};return B(e.notImplementedResolver,Ae,void 0,e.getTransformers(R.options,he)),me}e.emitUsingBuildInfo=Pe;var fe;(function(R){R[R.Notification=0]="Notification",R[R.Substitution=1]="Substitution",R[R.Comments=2]="Comments",R[R.SourceMaps=3]="SourceMaps",R[R.Emit=4]="Emit"})(fe||(fe={}));function _e(R,K){R===void 0&&(R={}),K===void 0&&(K={});var I=K.hasGlobalName,he=K.onEmitNode,le=he===void 0?e.noEmitNotification:he,ee=K.isEmitNotificationEnabled,J=K.substituteNode,de=J===void 0?e.noEmitSubstitution:J,De=K.onBeforeEmitNode,N=K.onAfterEmitNode,b=K.onBeforeEmitNodeArray,Q=K.onAfterEmitNodeArray,G=K.onBeforeEmitToken,ae=K.onAfterEmitToken,Te=!!R.extendedDiagnostics,Ne=e.getNewLineCharacter(R),we=e.getEmitModuleKind(R),nr=new e.Map,tr,me,He,rr,je,Ce,Ae,qe,xe,L,ue,Ue,Je=R.preserveSourceNewlines,lr,mr,Hr,wr=Vm,Oe,Ze=R.writeBundleFileInfo?{sections:[]}:void 0,tt=Ze?e.Debug.checkDefined(R.relativeToBuildInfo):void 0,ut=R.recordInternalSection,or=0,qr="text",Rr=!0,zr,Fr,_t=-1,Ct,yt=-1,Fe=-1,vr=-1,Le=-1,cr,$r,Re=!1,xr=!!R.removeComments,Br,Qr,ct=e.performance.createTimerIf(Te,"commentTime","beforeComment","afterComment"),ft=ct.enter,Dt=ct.exit,Me=e.factory.parenthesizer,Ke={select:function(V){return V===0?Me.parenthesizeLeadingTypeArgument:void 0}},Vr=ta();return St(),{printNode:Yr,printList:Nt,printFile:sn,printBundle:Wt,writeNode:Ir,writeList:Jr,writeFile:Ge,writeBundle:Sr,bundleFileInfo:Ze};function Yr(V,ir,bt){switch(V){case 0:e.Debug.assert(e.isSourceFile(ir),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(ir),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(ir),"Expected an Expression node.");break}switch(ir.kind){case 308:return sn(ir);case 309:return Wt(ir);case 310:return en(ir)}return Ir(V,ir,bt,ur()),Lr()}function Nt(V,ir,bt){return Jr(V,ir,bt,ur()),Lr()}function Wt(V){return Sr(V,ur(),void 0),Lr()}function sn(V){return Ge(V,ur(),void 0),Lr()}function en(V){return Or(V,ur()),Lr()}function Ir(V,ir,bt,tn){var oi=mr;Et(tn,void 0),Ar(V,ir,bt),St(),mr=oi}function Jr(V,ir,bt,tn){var oi=mr;Et(tn,void 0),bt&&rt(bt),Yo(void 0,ir,V),St(),mr=oi}function ye(){return mr.getTextPosWithWriteLine?mr.getTextPosWithWriteLine():mr.getTextPos()}function Ie(V,ir,bt){var tn=e.lastOrUndefined(Ze.sections);tn&&tn.kind===bt?tn.end=ir:Ze.sections.push({pos:V,end:ir,kind:bt})}function We(V){if(ut&&Ze&&tr&&(e.isDeclaration(V)||e.isVariableStatement(V))&&e.isInternalDeclaration(V,tr)&&qr!=="internal"){var ir=qr;return ar(mr.getTextPos()),or=ye(),qr="internal",ir}}function dr(V){V&&(ar(mr.getTextPos()),or=ye(),qr=V)}function ar(V){return or<V?(Ie(or,V,qr),!0):!1}function Sr(V,ir,bt){var tn;Oe=!1;var oi=mr;Et(ir,bt),Xp(V),Jm(V),Tt(V),Ol(V);for(var Ii=0,Hi=V.prepends;Ii<Hi.length;Ii++){var di=Hi[Ii];zs();var io=mr.getTextPos(),fa=Ze&&Ze.sections;if(fa&&(Ze.sections=[]),Ar(4,di,void 0),Ze){var pa=Ze.sections;Ze.sections=fa,di.oldFileOfCurrentEmit?(tn=Ze.sections).push.apply(tn,pa):(pa.forEach(function(Jf){return e.Debug.assert(e.isBundleFileTextLike(Jf))}),Ze.sections.push({pos:io,end:mr.getTextPos(),kind:"prepend",data:tt(di.fileName),texts:pa}))}}or=ye();for(var jc=0,pl=V.sourceFiles;jc<pl.length;jc++){var Hs=pl[jc];Ar(0,Hs,Hs)}if(Ze&&V.sourceFiles.length){var qu=mr.getTextPos();if(ar(qu)){var il=Cd(V);il&&(Ze.sources||(Ze.sources={}),Ze.sources.prologues=il);var jl=Zt(V);jl&&(Ze.sources||(Ze.sources={}),Ze.sources.helpers=jl)}}St(),mr=oi}function Or(V,ir){var bt=mr;Et(ir,void 0),Ar(4,V,void 0),St(),mr=bt}function Ge(V,ir,bt){Oe=!0;var tn=mr;Et(ir,bt),Xp(V),Jm(V),Ar(0,V,V),St(),mr=tn}function ur(){return Hr||(Hr=e.createTextWriter(Ne))}function Lr(){var V=Hr.getText();return Hr.clear(),V}function Ar(V,ir,bt){bt&&rt(bt),Bn(V,ir,void 0)}function rt(V){tr=V,cr=void 0,$r=void 0,V&&Km(V)}function Et(V,ir){V&&R.omitTrailingSemicolon&&(V=e.getTrailingSemicolonDeferringWriter(V)),mr=V,zr=ir,Rr=!mr||!zr}function St(){me=[],He=[],rr=new e.Set,je=[],Ce=new e.Map,Ae=[],qe=0,xe=[],L=0,ue=[],tr=void 0,cr=void 0,$r=void 0,Et(void 0,void 0)}function Pt(){return cr||(cr=e.getLineStarts(e.Debug.checkDefined(tr)))}function pt(V,ir){if(V!==void 0){var bt=We(V);Bn(4,V,ir),dr(bt)}}function Ft(V){V!==void 0&&Bn(2,V,void 0)}function ht(V,ir){V!==void 0&&Bn(1,V,ir)}function Yt(V){Bn(e.isStringLiteral(V)?6:4,V)}function un(V){Je&&e.getEmitFlags(V)&134217728&&(Je=!1)}function wn(V){Je=V}function Bn(V,ir,bt){Qr=bt;var tn=An(0,V,ir);tn(V,ir),Qr=void 0}function yn(V){return!xr&&!e.isSourceFile(V)}function Tn(V){return!Rr&&!e.isSourceFile(V)&&!e.isInJsonFile(V)&&!e.isUnparsedSource(V)&&!e.isUnparsedPrepend(V)}function An(V,ir,bt){switch(V){case 0:if(le!==e.noEmitNotification&&(!ee||ee(bt)))return Xe;case 1:if(de!==e.noEmitSubstitution&&(Br=de(ir,bt)||bt)!==bt)return Qr&&(Br=Qr(Br)),Qt;case 2:if(yn(bt))return Rl;case 3:if(Tn(bt))return Cp;case 4:return hr;default:return e.Debug.assertNever(V)}}function ii(V,ir,bt){return An(V+1,ir,bt)}function Xe(V,ir){var bt=ii(0,V,ir);le(V,ir,bt)}function hr(V,ir){if(De==null||De(ir),Je){var bt=Je;un(ir),at(V,ir),wn(bt)}else at(V,ir);N==null||N(ir),Qr=void 0}function at(V,ir,bt){if(bt===void 0&&(bt=!0),bt){var tn=e.getSnippetElement(ir);if(tn)return pi(V,ir,tn)}if(V===0)return W_(e.cast(ir,e.isSourceFile));if(V===2)return ji(e.cast(ir,e.isIdentifier));if(V===6)return Lt(e.cast(ir,e.isStringLiteral),!0);if(V===3)return Qe(e.cast(ir,e.isTypeParameterDeclaration));if(V===5)return e.Debug.assertNode(ir,e.isEmptyStatement),Du(!0);if(V===4){switch(ir.kind){case 15:case 16:case 17:return Lt(ir,!1);case 79:return ji(ir);case 80:return fn(ir);case 163:return Ri(ir);case 164:return ra(ir);case 165:return vn(ir);case 166:return zo(ir);case 167:return _a(ir);case 168:return Ha(ir);case 169:return Do(ir);case 170:return Ka(ir);case 171:return rs(ir);case 172:return ts(ir);case 173:return En(ir);case 174:case 175:return ca(ir);case 176:return bo(ir);case 177:return Oo(ir);case 178:return Ws(ir);case 179:return gs(ir);case 180:return Ds(ir);case 181:return Ko(ir);case 182:return ka(ir);case 183:return ro(ir);case 184:return Ye(ir);case 185:return lt(ir);case 186:return Ve(ir);case 187:return Er(ir);case 189:return Wr(ir);case 190:return Ot(ir);case 191:return ln(ir);case 192:return kn(ir);case 193:return Cn(ir);case 230:return ua(ir);case 194:return _i();case 195:return qi(ir);case 196:return va(ir);case 197:return Ia(ir);case 198:return $a(ir);case 199:return yr(ir);case 200:return ws(ir);case 201:return Co(ir);case 202:return rc(ir);case 203:return Wo(ir);case 204:return ds(ir);case 205:return yu(ir);case 236:return oc(ir);case 237:return qs();case 238:return iu(ir);case 240:return wl(ir);case 239:return Du(!1);case 241:return Jo(ir);case 242:return $s(ir);case 243:return Up(ir);case 244:return Vp(ir);case 245:return wu(ir);case 246:return Nl(ir);case 247:return pf(ir);case 248:return Xl(ir);case 249:return Zr(ir);case 250:return mi(ir);case 251:return Qn(ir);case 252:return Xi(ir);case 253:return Va(ir);case 254:return ga(ir);case 255:return Yi(ir);case 256:return so(ir);case 257:return da(ir);case 258:return Po(ir);case 259:return Uo(ir);case 260:return Di(ir);case 261:return Aa(ir);case 262:return co(ir);case 263:return os(ir);case 264:return qo(ir);case 265:return no(ir);case 266:return uo(ir);case 267:return _f(ir);case 268:return _s(ir);case 269:return Xs(ir);case 270:return bc(ir);case 271:return fp(ir);case 277:return Ig(ir);case 272:return zp(ir);case 273:return pc(ir);case 274:return vl(ir);case 275:return nt(ir);case 276:return pp(ir);case 278:return Yl(ir);case 296:return Wp(ir);case 297:return df(ir);case 279:return;case 280:return Mm(ir);case 11:return Fm(ir);case 283:case 286:return mf(ir);case 284:case 287:return dp(ir);case 288:return Lm(ir);case 289:return tl(ir);case 290:return o_(ir);case 291:return Nu(ir);case 292:return $p(ir);case 293:return Og(ir);case 294:return Ls(ir);case 295:return Rm(ir);case 299:return s_(ir);case 300:return z_(ir);case 301:return Mg(ir);case 302:return ms(ir);case 303:return et(ir);case 310:case 304:return $e(ir);case 305:case 306:return It(ir);case 307:return xn(ir);case 308:return W_(ir);case 309:return e.Debug.fail("Bundles should be printed using printBundle");case 311:return e.Debug.fail("InputFiles should not be printed");case 312:return Gp(ir);case 313:return Fg(ir);case 315:return Xn("*");case 316:return Xn("?");case 317:return jr(ir);case 318:return Nn(ir);case 319:return xi(ir);case 320:return kr(ir);case 188:case 321:return Ut(ir);case 322:return;case 323:return Hp(ir);case 325:return Rg(ir);case 326:return jm(ir);case 330:case 335:case 340:return Lg(ir);case 331:case 332:return Sc(ir);case 333:case 334:return;case 336:case 337:case 338:case 339:return;case 341:return Dh(ir);case 343:case 350:return Bg(ir);case 342:case 344:case 345:case 346:return Bm(ir);case 347:return _p(ir);case 348:return au(ir);case 349:return gf(ir);case 352:case 356:case 355:return}if(e.isExpression(ir)&&(V=1,de!==e.noEmitSubstitution)){var oi=de(V,ir)||ir;oi!==ir&&(ir=oi,Qr&&(ir=Qr(ir)))}}if(V===1)switch(ir.kind){case 8:case 9:return kt(ir);case 10:case 13:case 14:return Lt(ir,!1);case 79:return ji(ir);case 80:return fn(ir);case 206:return bu(ir);case 207:return tu(ir);case 208:return $c(ir);case 209:return Lc(ir);case 210:return Hc(ir);case 211:return tc(ir);case 212:return fc(ir);case 213:return nu(ir);case 214:return nc(ir);case 215:return Xt(ir);case 216:return be(ir);case 217:return At(ir);case 218:return an(ir);case 219:return Kn(ir);case 220:return Yn(ir);case 221:return Si(ir);case 222:return Da(ir);case 223:return Vr(ir);case 224:return fo(ir);case 225:return oo(ir);case 226:return er(ir);case 227:return Bt(ir);case 228:return Mr(ir);case 229:return;case 231:return _o(ir);case 232:return xs(ir);case 230:return ua(ir);case 235:return yc(ir);case 233:return kc(ir);case 234:return e.Debug.fail("SyntheticExpression should never be printed.");case 281:return J_(ir);case 282:return a_(ir);case 285:return qp(ir);case 351:return e.Debug.fail("SyntaxList should not be printed");case 352:return;case 353:return Qp(ir);case 354:return Td(ir);case 355:case 356:return;case 357:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(ir.kind))return Id(ir,ba);if(e.isTokenKind(ir.kind))return Id(ir,Xn);e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(ir.kind),"."))}function Qe(V){pt(V.name),Wn(),ba("in"),Wn(),pt(V.constraint)}function Qt(V,ir){var bt=ii(1,V,ir);e.Debug.assertIsDefined(Br),ir=Br,Br=void 0,bt(V,ir)}function Zt(V){var ir;if(!(we===e.ModuleKind.None||R.noEmitHelpers)){for(var bt=new e.Map,tn=0,oi=V.sourceFiles;tn<oi.length;tn++){var Ii=oi[tn],Hi=e.getExternalHelpersModuleName(Ii)!==void 0,di=gt(Ii);if(di)for(var io=0,fa=di;io<fa.length;io++){var pa=fa[io];!pa.scoped&&!Hi&&!bt.get(pa.name)&&(bt.set(pa.name,!0),(ir||(ir=[])).push(pa.name))}}return ir}}function Tt(V){var ir=!1,bt=V.kind===309?V:void 0;if(!(bt&&we===e.ModuleKind.None)){for(var tn=bt?bt.prepends.length:0,oi=bt?bt.sourceFiles.length+tn:1,Ii=0;Ii<oi;Ii++){var Hi=bt?Ii<tn?bt.prepends[Ii]:bt.sourceFiles[Ii-tn]:V,di=e.isSourceFile(Hi)?Hi:e.isUnparsedSource(Hi)?void 0:tr,io=R.noEmitHelpers||!!di&&e.hasRecordedExternalHelpers(di),fa=(e.isSourceFile(Hi)||e.isUnparsedSource(Hi))&&!Oe,pa=e.isUnparsedSource(Hi)?Hi.helpers:gt(Hi);if(pa)for(var jc=0,pl=pa;jc<pl.length;jc++){var Hs=pl[jc];if(Hs.scoped){if(bt)continue}else{if(io)continue;if(fa){if(nr.get(Hs.name))continue;nr.set(Hs.name,!0)}}var qu=ye();typeof Hs.text=="string"?hp(Hs.text):hp(Hs.text(Sp)),Ze&&Ze.sections.push({pos:qu,end:mr.getTextPos(),kind:"emitHelpers",data:Hs.name}),ir=!0}}return ir}}function gt(V){var ir=e.getEmitHelpers(V);return ir&&e.stableSort(ir,e.compareEmitHelpers)}function kt(V){Lt(V,!1)}function Lt(V,ir){var bt=u_(V,R.neverAsciiEscape,ir);(R.sourceMap||R.inlineSourceMap)&&(V.kind===10||e.isTemplateLiteralKind(V.kind))?Vs(bt):gc(bt)}function $e(V){for(var ir=0,bt=V.texts;ir<bt.length;ir++){var tn=bt[ir];zs(),pt(tn)}}function et(V){mr.rawWrite(V.parent.text.substring(V.pos,V.end))}function It(V){var ir=ye();et(V),Ze&&Ie(ir,mr.getTextPos(),V.kind===305?"text":"internal")}function xn(V){var ir=ye();if(et(V),Ze){var bt=e.clone(V.section);bt.pos=ir,bt.end=mr.getTextPos(),Ze.sections.push(bt)}}function pi(V,ir,bt){switch(bt.kind){case 1:ai(V,ir,bt);break;case 0:Wi(V,ir,bt);break}}function ai(V,ir,bt){wd("${".concat(bt.order,":")),at(V,ir,!1),wd("}")}function Wi(V,ir,bt){e.Debug.assert(ir.kind===239,"A tab stop cannot be attached to a node of kind ".concat(e.Debug.formatSyntaxKind(ir.kind),".")),e.Debug.assert(V!==5,"A tab stop cannot be attached to an embedded statement."),wd("$".concat(bt.order))}function ji(V){var ir=V.symbol?Gc:wr;ir(bp(V,!1),V.symbol),Yo(V,V.typeArguments,53776)}function fn(V){var ir=V.symbol?Gc:wr;ir(bp(V,!1),V.symbol)}function Ri(V){ma(V.left),Xn("."),pt(V.right)}function ma(V){V.kind===79?ht(V):pt(V)}function ra(V){Xn("["),ht(V.expression,Me.parenthesizeExpressionOfComputedPropertyName),Xn("]")}function vn(V){ou(V,V.modifiers),pt(V.name),V.constraint&&(Wn(),ba("extends"),Wn(),pt(V.constraint)),V.default&&(Wn(),yf("="),Wn(),pt(V.default))}function zo(V){Yp(V,V.modifiers),pt(V.dotDotDotToken),H_(V.name,bl),pt(V.questionToken),V.parent&&V.parent.kind===320&&!V.name?pt(V.type):nl(V.type),gp(V.initializer,V.type?V.type.end:V.questionToken?V.questionToken.end:V.name?V.name.end:V.modifiers?V.modifiers.end:V.pos,V,Me.parenthesizeExpressionForDisallowedComma)}function _a(V){Xn("@"),ht(V.expression,Me.parenthesizeLeftSideOfAccess)}function Ha(V){ou(V,V.modifiers),H_(V.name,su),pt(V.questionToken),nl(V.type),sc()}function Do(V){Yp(V,V.modifiers),pt(V.name),pt(V.questionToken),pt(V.exclamationToken),nl(V.type),gp(V.initializer,V.type?V.type.end:V.questionToken?V.questionToken.end:V.name.end,V),sc()}function Ka(V){Pc(V),ou(V,V.modifiers),pt(V.name),pt(V.questionToken),yl(V,V.typeParameters),hf(V,V.parameters),nl(V.type),sc(),Dc(V)}function rs(V){Yp(V,V.modifiers),pt(V.asteriskToken),pt(V.name),pt(V.questionToken),ya(V,Ee)}function ts(V){ba("static"),Nr(V.body)}function En(V){ou(V,V.modifiers),ba("constructor"),ya(V,Ee)}function ca(V){Yp(V,V.modifiers),ba(V.kind===174?"get":"set"),Wn(),pt(V.name),ya(V,Ee)}function bo(V){Pc(V),yl(V,V.typeParameters),hf(V,V.parameters),nl(V.type),sc(),Dc(V)}function Oo(V){Pc(V),ba("new"),Wn(),yl(V,V.typeParameters),hf(V,V.parameters),nl(V.type),sc(),Dc(V)}function Ws(V){ou(V,V.modifiers),Um(V,V.parameters),nl(V.type),sc()}function Co(V){pt(V.type),pt(V.literal)}function qs(){sc()}function gs(V){V.assertsModifier&&(pt(V.assertsModifier),Wn()),pt(V.parameterName),V.type&&(Wn(),ba("is"),Wn(),pt(V.type))}function Ds(V){pt(V.typeName),Fl(V,V.typeArguments)}function Ko(V){Pc(V),yl(V,V.typeParameters),jg(V,V.parameters),Wn(),Xn("=>"),Wn(),pt(V.type),Dc(V)}function kr(V){ba("function"),hf(V,V.parameters),Xn(":"),pt(V.type)}function jr(V){Xn("?"),pt(V.type)}function Nn(V){Xn("!"),pt(V.type)}function xi(V){pt(V.type),Xn("=")}function ka(V){Pc(V),ou(V,V.modifiers),ba("new"),Wn(),yl(V,V.typeParameters),hf(V,V.parameters),Wn(),Xn("=>"),Wn(),pt(V.type),Dc(V)}function ro(V){ba("typeof"),Wn(),pt(V.exprName),Fl(V,V.typeArguments)}function Ye(V){Xn("{");var ir=e.getEmitFlags(V)&1?768:32897;Yo(V,V.members,ir|524288),Xn("}")}function lt(V){pt(V.elementType,Me.parenthesizeNonArrayTypeOfPostfixType),Xn("["),Xn("]")}function Ut(V){Xn("..."),pt(V.type)}function Ve(V){Xr(22,V.pos,Xn,V);var ir=e.getEmitFlags(V)&1?528:657;Yo(V,V.elements,ir|524288,Me.parenthesizeElementTypeOfTupleType),Xr(23,V.elements.end,Xn,V)}function yr(V){pt(V.dotDotDotToken),pt(V.name),pt(V.questionToken),Xr(58,V.name.end,Xn,V),Wn(),pt(V.type)}function Er(V){pt(V.type,Me.parenthesizeTypeOfOptionalType),Xn("?")}function Wr(V){Yo(V,V.types,516,Me.parenthesizeConstituentTypeOfUnionType)}function Ot(V){Yo(V,V.types,520,Me.parenthesizeConstituentTypeOfIntersectionType)}function ln(V){pt(V.checkType,Me.parenthesizeCheckTypeOfConditionalType),Wn(),ba("extends"),Wn(),pt(V.extendsType,Me.parenthesizeExtendsTypeOfConditionalType),Wn(),Xn("?"),Wn(),pt(V.trueType),Wn(),Xn(":"),Wn(),pt(V.falseType)}function kn(V){ba("infer"),Wn(),pt(V.typeParameter)}function Cn(V){Xn("("),pt(V.type),Xn(")")}function _i(){ba("this")}function qi(V){bf(V.operator,ba),Wn();var ir=V.operator===146?Me.parenthesizeOperandOfReadonlyTypeOperator:Me.parenthesizeOperandOfTypeOperator;pt(V.type,ir)}function va(V){pt(V.objectType,Me.parenthesizeNonArrayTypeOfPostfixType),Xn("["),pt(V.indexType),Xn("]")}function Ia(V){var ir=e.getEmitFlags(V);Xn("{"),ir&1?Wn():(zs(),ns()),V.readonlyToken&&(pt(V.readonlyToken),V.readonlyToken.kind!==146&&ba("readonly"),Wn()),Xn("["),Bn(3,V.typeParameter),V.nameType&&(Wn(),ba("as"),Wn(),pt(V.nameType)),Xn("]"),V.questionToken&&(pt(V.questionToken),V.questionToken.kind!==57&&Xn("?")),Xn(":"),Wn(),pt(V.type),sc(),ir&1?Wn():(zs(),ul()),Yo(V,V.members,2),Xn("}")}function $a(V){ht(V.literal)}function ws(V){pt(V.head),Yo(V,V.templateSpans,262144)}function rc(V){if(V.isTypeOf&&(ba("typeof"),Wn()),ba("import"),Xn("("),pt(V.argument),V.assertions){Xn(","),Wn(),Xn("{"),Wn(),ba("assert"),Xn(":"),Wn();var ir=V.assertions.assertClause.elements;Yo(V.assertions.assertClause,ir,526226),Wn(),Xn("}")}Xn(")"),V.qualifier&&(Xn("."),pt(V.qualifier)),Fl(V,V.typeArguments)}function Wo(V){Xn("{"),Yo(V,V.elements,525136),Xn("}")}function ds(V){Xn("["),Yo(V,V.elements,524880),Xn("]")}function yu(V){pt(V.dotDotDotToken),V.propertyName&&(pt(V.propertyName),Xn(":"),Wn()),pt(V.name),gp(V.initializer,V.name.end,V,Me.parenthesizeExpressionForDisallowedComma)}function bu(V){var ir=V.elements,bt=V.multiLine?65536:0;Ad(V,ir,8914|bt,Me.parenthesizeExpressionForDisallowedComma)}function tu(V){e.forEach(V.properties,qm);var ir=e.getEmitFlags(V)&65536;ir&&ns();var bt=V.multiLine?65536:0,tn=tr&&tr.languageVersion>=1&&!e.isJsonSourceFile(tr)?64:0;Yo(V,V.properties,526226|tn|bt),ir&&ul()}function $c(V){ht(V.expression,Me.parenthesizeLeftSideOfAccess);var ir=V.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),V.expression.end,V.name.pos),bt=Sl(V,V.expression,ir),tn=Sl(V,ir,V.name);Zl(bt,!1);var oi=ir.kind!==28&&Su(V.expression)&&!mr.hasTrailingComment()&&!mr.hasTrailingWhitespace();oi&&Xn("."),V.questionDotToken?pt(ir):Xr(ir.kind,V.expression.end,Xn,V),Zl(tn,!1),pt(V.name),Rf(bt,tn)}function Su(V){if(V=e.skipPartiallyEmittedExpressions(V),e.isNumericLiteral(V)){var ir=u_(V,!0,!1);return!V.numericLiteralFlags&&!e.stringContains(ir,e.tokenToString(24))}else if(e.isAccessExpression(V)){var bt=e.getConstantValue(V);return typeof bt=="number"&&isFinite(bt)&&Math.floor(bt)===bt}}function Lc(V){ht(V.expression,Me.parenthesizeLeftSideOfAccess),pt(V.questionDotToken),Xr(22,V.expression.end,Xn,V),ht(V.argumentExpression),Xr(23,V.argumentExpression.end,Xn,V)}function Hc(V){var ir=e.getEmitFlags(V)&536870912;ir&&(Xn("("),Vs("0"),Xn(","),Wn()),ht(V.expression,Me.parenthesizeLeftSideOfAccess),ir&&Xn(")"),pt(V.questionDotToken),Fl(V,V.typeArguments),Ad(V,V.arguments,2576,Me.parenthesizeExpressionForDisallowedComma)}function tc(V){Xr(103,V.pos,ba,V),Wn(),ht(V.expression,Me.parenthesizeExpressionOfNew),Fl(V,V.typeArguments),Ad(V,V.arguments,18960,Me.parenthesizeExpressionForDisallowedComma)}function fc(V){var ir=e.getEmitFlags(V)&536870912;ir&&(Xn("("),Vs("0"),Xn(","),Wn()),ht(V.tag,Me.parenthesizeLeftSideOfAccess),ir&&Xn(")"),Fl(V,V.typeArguments),Wn(),ht(V.template)}function nu(V){Xn("<"),pt(V.type),Xn(">"),ht(V.expression,Me.parenthesizeOperandOfPrefixUnary)}function nc(V){var ir=Xr(20,V.pos,Xn,V),bt=rd(V.expression,V);ht(V.expression,void 0),yp(V.expression,V),Rf(bt),Xr(21,V.expression?V.expression.end:ir,Xn,V)}function Xt(V){mo(V.name),Qs(V)}function be(V){ou(V,V.modifiers),ya(V,Ur)}function Ur(V){yl(V,V.typeParameters),jg(V,V.parameters),nl(V.type),Wn(),pt(V.equalsGreaterThanToken)}function At(V){Xr(89,V.pos,ba,V),Wn(),ht(V.expression,Me.parenthesizeOperandOfPrefixUnary)}function an(V){Xr(112,V.pos,ba,V),Wn(),ht(V.expression,Me.parenthesizeOperandOfPrefixUnary)}function Kn(V){Xr(114,V.pos,ba,V),Wn(),ht(V.expression,Me.parenthesizeOperandOfPrefixUnary)}function Yn(V){Xr(133,V.pos,ba,V),Wn(),ht(V.expression,Me.parenthesizeOperandOfPrefixUnary)}function Si(V){bf(V.operator,yf),vi(V)&&Wn(),ht(V.operand,Me.parenthesizeOperandOfPrefixUnary)}function vi(V){var ir=V.operand;return ir.kind===221&&(V.operator===39&&(ir.operator===39||ir.operator===45)||V.operator===40&&(ir.operator===40||ir.operator===46))}function Da(V){ht(V.operand,Me.parenthesizeOperandOfPostfixUnary),bf(V.operator,yf)}function ta(){return e.createBinaryExpressionTrampoline(V,ir,bt,tn,oi,void 0);function V(Hi,di){if(di){di.stackIndex++,di.preserveSourceNewlinesStack[di.stackIndex]=Je,di.containerPosStack[di.stackIndex]=Fe,di.containerEndStack[di.stackIndex]=vr,di.declarationListContainerEndStack[di.stackIndex]=Le;var io=di.shouldEmitCommentsStack[di.stackIndex]=yn(Hi),fa=di.shouldEmitSourceMapsStack[di.stackIndex]=Tn(Hi);De==null||De(Hi),io&&Dp(Hi),fa&&Wu(Hi),un(Hi)}else di={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return di}function ir(Hi,di,io){return Ii(Hi,io,"left")}function bt(Hi,di,io){var fa=Hi.kind!==27,pa=Sl(io,io.left,Hi),jc=Sl(io,Hi,io.right);Zl(pa,fa),xf(Hi.pos),Id(Hi,Hi.kind===101?ba:yf),zu(Hi.end,!0),Zl(jc,!0)}function tn(Hi,di,io){return Ii(Hi,io,"right")}function oi(Hi,di){var io=Sl(Hi,Hi.left,Hi.operatorToken),fa=Sl(Hi,Hi.operatorToken,Hi.right);if(Rf(io,fa),di.stackIndex>0){var pa=di.preserveSourceNewlinesStack[di.stackIndex],jc=di.containerPosStack[di.stackIndex],pl=di.containerEndStack[di.stackIndex],Hs=di.declarationListContainerEndStack[di.stackIndex],qu=di.shouldEmitCommentsStack[di.stackIndex],il=di.shouldEmitSourceMapsStack[di.stackIndex];wn(pa),il&&id(Hi),qu&&X_(Hi,jc,pl,Hs),N==null||N(Hi),di.stackIndex--}}function Ii(Hi,di,io){var fa=io==="left"?Me.getParenthesizeLeftSideOfBinaryForOperator(di.operatorToken.kind):Me.getParenthesizeRightSideOfBinaryForOperator(di.operatorToken.kind),pa=An(0,1,Hi);if(pa===Qt&&(e.Debug.assertIsDefined(Br),Hi=fa(e.cast(Br,e.isExpression)),pa=ii(1,1,Hi),Br=void 0),(pa===Rl||pa===Cp||pa===hr)&&e.isBinaryExpression(Hi))return Hi;Qr=fa,pa(1,Hi)}}function fo(V){var ir=Sl(V,V.condition,V.questionToken),bt=Sl(V,V.questionToken,V.whenTrue),tn=Sl(V,V.whenTrue,V.colonToken),oi=Sl(V,V.colonToken,V.whenFalse);ht(V.condition,Me.parenthesizeConditionOfConditionalExpression),Zl(ir,!0),pt(V.questionToken),Zl(bt,!0),ht(V.whenTrue,Me.parenthesizeBranchOfConditionalExpression),Rf(ir,bt),Zl(tn,!0),pt(V.colonToken),Zl(oi,!0),ht(V.whenFalse,Me.parenthesizeBranchOfConditionalExpression),Rf(tn,oi)}function oo(V){pt(V.head),Yo(V,V.templateSpans,262144)}function er(V){Xr(125,V.pos,ba,V),pt(V.asteriskToken),Ml(V.expression&&Mn(V.expression),zn)}function Bt(V){Xr(25,V.pos,Xn,V),ht(V.expression,Me.parenthesizeExpressionForDisallowedComma)}function Mr(V){mo(V.name),Pi(V)}function ua(V){ht(V.expression,Me.parenthesizeLeftSideOfAccess),Fl(V,V.typeArguments)}function _o(V){ht(V.expression,void 0),V.type&&(Wn(),ba("as"),Wn(),pt(V.type))}function xs(V){ht(V.expression,Me.parenthesizeLeftSideOfAccess),yf("!")}function yc(V){ht(V.expression,void 0),V.type&&(Wn(),ba("satisfies"),Wn(),pt(V.type))}function kc(V){Nd(V.keywordToken,V.pos,Xn),Xn("."),pt(V.name)}function oc(V){ht(V.expression),pt(V.literal)}function iu(V){_u(V,!V.multiLine&&K_(V))}function _u(V,ir){Xr(18,V.pos,Xn,V);var bt=ir||e.getEmitFlags(V)&1?768:129;Yo(V,V.statements,bt),Xr(19,V.statements.end,Xn,V,!!(bt&1))}function wl(V){ou(V,V.modifiers),pt(V.declarationList),sc()}function Du(V){V?Xn(";"):sc()}function Jo(V){ht(V.expression,Me.parenthesizeExpressionOfExpressionStatement),(!tr||!e.isJsonSourceFile(tr)||e.nodeIsSynthesized(V.expression))&&sc()}function $s(V){var ir=Xr(99,V.pos,ba,V);Wn(),Xr(20,ir,Xn,V),ht(V.expression),Xr(21,V.expression.end,Xn,V),cl(V,V.thenStatement),V.elseStatement&&(Ac(V,V.thenStatement,V.elseStatement),Xr(91,V.thenStatement.end,ba,V),V.elseStatement.kind===242?(Wn(),pt(V.elseStatement)):cl(V,V.elseStatement))}function Ju(V,ir){var bt=Xr(115,ir,ba,V);Wn(),Xr(20,bt,Xn,V),ht(V.expression),Xr(21,V.expression.end,Xn,V)}function Up(V){Xr(90,V.pos,ba,V),cl(V,V.statement),e.isBlock(V.statement)&&!Je?Wn():Ac(V,V.statement,V.expression),Ju(V,V.statement.end),sc()}function Vp(V){Ju(V,V.pos),cl(V,V.statement)}function wu(V){var ir=Xr(97,V.pos,ba,V);Wn();var bt=Xr(20,ir,Xn,V);Il(V.initializer),bt=Xr(26,V.initializer?V.initializer.end:bt,Xn,V),Ml(V.condition),bt=Xr(26,V.condition?V.condition.end:bt,Xn,V),Ml(V.incrementor),Xr(21,V.incrementor?V.incrementor.end:bt,Xn,V),cl(V,V.statement)}function Nl(V){var ir=Xr(97,V.pos,ba,V);Wn(),Xr(20,ir,Xn,V),Il(V.initializer),Wn(),Xr(101,V.initializer.end,ba,V),Wn(),ht(V.expression),Xr(21,V.expression.end,Xn,V),cl(V,V.statement)}function pf(V){var ir=Xr(97,V.pos,ba,V);Wn(),xh(V.awaitModifier),Xr(20,ir,Xn,V),Il(V.initializer),Wn(),Xr(162,V.initializer.end,ba,V),Wn(),ht(V.expression),Xr(21,V.expression.end,Xn,V),cl(V,V.statement)}function Il(V){V!==void 0&&(V.kind===258?pt(V):ht(V))}function Xl(V){Xr(86,V.pos,ba,V),ed(V.label),sc()}function Zr(V){Xr(81,V.pos,ba,V),ed(V.label),sc()}function Xr(V,ir,bt,tn,oi){var Ii=e.getParseTreeNode(tn),Hi=Ii&&Ii.kind===tn.kind,di=ir;if(Hi&&tr&&(ir=e.skipTrivia(tr.text,ir)),Hi&&tn.pos!==di){var io=oi&&tr&&!e.positionsAreOnSameLine(di,ir,tr);io&&ns(),xf(di),io&&ul()}if(ir=bf(V,bt,ir),Hi&&tn.end!==ir){var fa=tn.kind===291;zu(ir,!fa,fa)}return ir}function $t(V){return V.kind===2||!!V.hasTrailingNewLine}function Dn(V){return tr?e.some(e.getLeadingCommentRanges(tr.text,V.pos),$t)||e.some(e.getSyntheticLeadingComments(V),$t)?!0:e.isPartiallyEmittedExpression(V)?V.pos!==V.expression.pos&&e.some(e.getTrailingCommentRanges(tr.text,V.expression.pos),$t)?!0:Dn(V.expression):!1:!1}function Mn(V){if(!xr&&e.isPartiallyEmittedExpression(V)&&Dn(V)){var ir=e.getParseTreeNode(V);if(ir&&e.isParenthesizedExpression(ir)){var bt=e.factory.createParenthesizedExpression(V.expression);return e.setOriginalNode(bt,V),e.setTextRange(bt,ir),bt}return e.factory.createParenthesizedExpression(V)}return V}function zn(V){return Mn(Me.parenthesizeExpressionForDisallowedComma(V))}function mi(V){Xr(105,V.pos,ba,V),Ml(V.expression&&Mn(V.expression),Mn),sc()}function Qn(V){var ir=Xr(116,V.pos,ba,V);Wn(),Xr(20,ir,Xn,V),ht(V.expression),Xr(21,V.expression.end,Xn,V),cl(V,V.statement)}function Xi(V){var ir=Xr(107,V.pos,ba,V);Wn(),Xr(20,ir,Xn,V),ht(V.expression),Xr(21,V.expression.end,Xn,V),Wn(),pt(V.caseBlock)}function Va(V){pt(V.label),Xr(58,V.label.end,Xn,V),Wn(),pt(V.statement)}function ga(V){Xr(109,V.pos,ba,V),Ml(Mn(V.expression),Mn),sc()}function Yi(V){Xr(111,V.pos,ba,V),Wn(),pt(V.tryBlock),V.catchClause&&(Ac(V,V.tryBlock,V.catchClause),pt(V.catchClause)),V.finallyBlock&&(Ac(V,V.catchClause||V.tryBlock,V.finallyBlock),Xr(96,(V.catchClause||V.tryBlock).end,ba,V),Wn(),pt(V.finallyBlock))}function so(V){Nd(87,V.pos,ba),sc()}function da(V){var ir,bt,tn,oi,Ii;pt(V.name),pt(V.exclamationToken),nl(V.type),gp(V.initializer,(Ii=(bt=(ir=V.type)===null||ir===void 0?void 0:ir.end)!==null&&bt!==void 0?bt:(oi=(tn=V.name.emitNode)===null||tn===void 0?void 0:tn.typeNode)===null||oi===void 0?void 0:oi.end)!==null&&Ii!==void 0?Ii:V.name.end,V,Me.parenthesizeExpressionForDisallowedComma)}function Po(V){ba(e.isLet(V)?"let":e.isVarConst(V)?"const":"var"),Wn(),Yo(V,V.declarations,528)}function Uo(V){Qs(V)}function Qs(V){ou(V,V.modifiers),ba("function"),pt(V.asteriskToken),Wn(),Ft(V.name),ya(V,Ee)}function ya(V,ir){var bt=V.body;if(bt)if(e.isBlock(bt)){var tn=e.getEmitFlags(V)&65536;tn&&ns(),Pc(V),e.forEach(V.parameters,Ys),Ys(V.body),ir(V),Nr(bt),Dc(V),tn&&ul()}else ir(V),Wn(),ht(bt,Me.parenthesizeConciseBodyOfArrowFunction);else ir(V),sc()}function Ee(V){yl(V,V.typeParameters),hf(V,V.parameters),nl(V.type)}function Dr(V){if(e.getEmitFlags(V)&1)return!0;if(V.multiLine||!e.nodeIsSynthesized(V)&&tr&&!e.rangeIsOnSingleLine(V,tr)||zm(V,e.firstOrUndefined(V.statements),2)||Rc(V,e.lastOrUndefined(V.statements),2,V.statements))return!1;for(var ir,bt=0,tn=V.statements;bt<tn.length;bt++){var oi=tn[bt];if(Od(ir,oi,2)>0)return!1;ir=oi}return!0}function Nr(V){De==null||De(V),Wn(),Xn("{"),ns();var ir=Dr(V)?Mt:In;xp(V,V.statements,ir),ul(),Nd(19,V.statements.end,Xn,V),N==null||N(V)}function Mt(V){In(V,!0)}function In(V,ir){var bt=$_(V.statements),tn=mr.getTextPos();Tt(V),bt===0&&tn===mr.getTextPos()&&ir?(ul(),Yo(V,V.statements,768),ns()):Yo(V,V.statements,1,void 0,bt)}function Di(V){Pi(V)}function Pi(V){e.forEach(V.members,qm),Yp(V,V.modifiers),ba("class"),V.name&&(Wn(),Ft(V.name));var ir=e.getEmitFlags(V)&65536;ir&&ns(),yl(V,V.typeParameters),Yo(V,V.heritageClauses,0),Wn(),Xn("{"),Yo(V,V.members,129),Xn("}"),ir&&ul()}function Aa(V){ou(V,V.modifiers),ba("interface"),Wn(),pt(V.name),yl(V,V.typeParameters),Yo(V,V.heritageClauses,512),Wn(),Xn("{"),Yo(V,V.members,129),Xn("}")}function co(V){ou(V,V.modifiers),ba("type"),Wn(),pt(V.name),yl(V,V.typeParameters),Wn(),Xn("="),Wn(),pt(V.type),sc()}function os(V){ou(V,V.modifiers),ba("enum"),Wn(),pt(V.name),Wn(),Xn("{"),Yo(V,V.members,145),Xn("}")}function qo(V){ou(V,V.modifiers),~V.flags&1024&&(ba(V.flags&16?"namespace":"module"),Wn()),pt(V.name);var ir=V.body;if(!ir)return sc();for(;ir&&e.isModuleDeclaration(ir);)Xn("."),pt(ir.name),ir=ir.body;Wn(),pt(ir)}function no(V){Pc(V),e.forEach(V.statements,Ys),_u(V,K_(V)),Dc(V)}function uo(V){Xr(18,V.pos,Xn,V),Yo(V,V.clauses,129),Xr(19,V.clauses.end,Xn,V,!0)}function _s(V){ou(V,V.modifiers),Xr(100,V.modifiers?V.modifiers.end:V.pos,ba,V),Wn(),V.isTypeOnly&&(Xr(154,V.pos,ba,V),Wn()),pt(V.name),Wn(),Xr(63,V.name.end,Xn,V),Wn(),fs(V.moduleReference),sc()}function fs(V){V.kind===79?ht(V):pt(V)}function Xs(V){ou(V,V.modifiers),Xr(100,V.modifiers?V.modifiers.end:V.pos,ba,V),Wn(),V.importClause&&(pt(V.importClause),Wn(),Xr(158,V.importClause.end,ba,V),Wn()),ht(V.moduleSpecifier),V.assertClause&&ed(V.assertClause),sc()}function bc(V){V.isTypeOnly&&(Xr(154,V.pos,ba,V),Wn()),pt(V.name),V.name&&V.namedBindings&&(Xr(27,V.name.end,Xn,V),Wn()),pt(V.namedBindings)}function fp(V){var ir=Xr(41,V.pos,Xn,V);Wn(),Xr(128,ir,ba,V),Wn(),pt(V.name)}function zp(V){i_(V)}function pc(V){Lo(V)}function vl(V){var ir=Xr(93,V.pos,ba,V);Wn(),V.isExportEquals?Xr(63,ir,yf,V):Xr(88,ir,ba,V),Wn(),ht(V.expression,V.isExportEquals?Me.getParenthesizeRightSideOfBinaryForOperator(63):Me.parenthesizeExpressionOfExportDefault),sc()}function nt(V){ou(V,V.modifiers);var ir=Xr(93,V.pos,ba,V);if(Wn(),V.isTypeOnly&&(ir=Xr(154,ir,ba,V),Wn()),V.exportClause?pt(V.exportClause):ir=Xr(41,ir,Xn,V),V.moduleSpecifier){Wn();var bt=V.exportClause?V.exportClause.end:ir;Xr(158,bt,ba,V),Wn(),ht(V.moduleSpecifier)}V.assertClause&&ed(V.assertClause),sc()}function Wp(V){Xr(130,V.pos,ba,V),Wn();var ir=V.elements;Yo(V,ir,526226)}function df(V){pt(V.name),Xn(":"),Wn();var ir=V.value;if(!(e.getEmitFlags(ir)&512)){var bt=e.getCommentRange(ir);zu(bt.pos)}pt(ir)}function _f(V){var ir=Xr(93,V.pos,ba,V);Wn(),ir=Xr(128,ir,ba,V),Wn(),ir=Xr(143,ir,ba,V),Wn(),pt(V.name),sc()}function Ig(V){var ir=Xr(41,V.pos,Xn,V);Wn(),Xr(128,ir,ba,V),Wn(),pt(V.name)}function pp(V){i_(V)}function Yl(V){Lo(V)}function i_(V){Xn("{"),Yo(V,V.elements,525136),Xn("}")}function Lo(V){V.isTypeOnly&&(ba("type"),Wn()),V.propertyName&&(pt(V.propertyName),Wn(),Xr(128,V.propertyName.end,ba,V),Wn()),pt(V.name)}function Mm(V){ba("require"),Xn("("),ht(V.expression),Xn(")")}function J_(V){pt(V.openingElement),Yo(V,V.children,262144),pt(V.closingElement)}function a_(V){Xn("<"),U_(V.tagName),Fl(V,V.typeArguments),Wn(),pt(V.attributes),Xn("/>")}function qp(V){pt(V.openingFragment),Yo(V,V.children,262144),pt(V.closingFragment)}function mf(V){if(Xn("<"),e.isJsxOpeningElement(V)){var ir=rd(V.tagName,V);U_(V.tagName),Fl(V,V.typeArguments),V.attributes.properties&&V.attributes.properties.length>0&&Wn(),pt(V.attributes),yp(V.attributes,V),Rf(ir)}Xn(">")}function Fm(V){mr.writeLiteral(V.text)}function dp(V){Xn("</"),e.isJsxClosingElement(V)&&U_(V.tagName),Xn(">")}function tl(V){Yo(V,V.properties,262656)}function Lm(V){pt(V.name),Zp("=",Xn,V.initializer,Yt)}function o_(V){Xn("{..."),ht(V.expression),Xn("}")}function la(V){var ir=!1;return e.forEachTrailingCommentRange((tr==null?void 0:tr.text)||"",V+1,function(){return ir=!0}),ir}function Mi(V){var ir=!1;return e.forEachLeadingCommentRange((tr==null?void 0:tr.text)||"",V+1,function(){return ir=!0}),ir}function sl(V){return la(V)||Mi(V)}function Nu(V){var ir;if(V.expression||!xr&&!e.nodeIsSynthesized(V)&&sl(V.pos)){var bt=tr&&!e.nodeIsSynthesized(V)&&e.getLineAndCharacterOfPosition(tr,V.pos).line!==e.getLineAndCharacterOfPosition(tr,V.end).line;bt&&mr.increaseIndent();var tn=Xr(18,V.pos,Xn,V);pt(V.dotDotDotToken),ht(V.expression),Xr(19,((ir=V.expression)===null||ir===void 0?void 0:ir.end)||tn,Xn,V),bt&&mr.decreaseIndent()}}function U_(V){V.kind===79?ht(V):pt(V)}function $p(V){Xr(82,V.pos,ba,V),Wn(),ht(V.expression,Me.parenthesizeExpressionForDisallowedComma),V_(V,V.statements,V.expression.end)}function Og(V){var ir=Xr(88,V.pos,ba,V);V_(V,V.statements,ir)}function V_(V,ir,bt){var tn=ir.length===1&&(!tr||e.nodeIsSynthesized(V)||e.nodeIsSynthesized(ir[0])||e.rangeStartPositionsAreOnSameLine(V,ir[0],tr)),oi=163969;tn?(Nd(58,bt,Xn,V),Wn(),oi&=-130):Xr(58,bt,Xn,V),Yo(V,ir,oi)}function Ls(V){Wn(),bf(V.token,ba),Wn(),Yo(V,V.types,528)}function Rm(V){var ir=Xr(83,V.pos,ba,V);Wn(),V.variableDeclaration&&(Xr(20,ir,Xn,V),pt(V.variableDeclaration),Xr(21,V.variableDeclaration.end,Xn,V),Wn()),pt(V.block)}function s_(V){pt(V.name),Xn(":"),Wn();var ir=V.initializer;if(!(e.getEmitFlags(ir)&512)){var bt=e.getCommentRange(ir);zu(bt.pos)}ht(ir,Me.parenthesizeExpressionForDisallowedComma)}function z_(V){pt(V.name),V.objectAssignmentInitializer&&(Wn(),Xn("="),Wn(),ht(V.objectAssignmentInitializer,Me.parenthesizeExpressionForDisallowedComma))}function Mg(V){V.expression&&(Xr(25,V.pos,Xn,V),ht(V.expression,Me.parenthesizeExpressionForDisallowedComma))}function ms(V){pt(V.name),gp(V.initializer,V.name.end,V,Me.parenthesizeExpressionForDisallowedComma)}function Hp(V){if(wr("/**"),V.comment){var ir=e.getTextOfJSDocComment(V.comment);if(ir)for(var bt=ir.split(/\r\n?|\n/g),tn=0,oi=bt;tn<oi.length;tn++){var Ii=oi[tn];zs(),Wn(),Xn("*"),Wn(),wr(Ii)}}V.tags&&(V.tags.length===1&&V.tags[0].kind===346&&!V.comment?(Wn(),pt(V.tags[0])):Yo(V,V.tags,33)),Wn(),wr("*/")}function Bm(V){Ff(V.tagName),Gp(V.typeExpression),mp(V.comment)}function gf(V){Ff(V.tagName),pt(V.name),mp(V.comment)}function Fg(V){Wn(),Xn("{"),pt(V.name),Xn("}")}function Sc(V){Ff(V.tagName),Wn(),Xn("{"),pt(V.class),Xn("}"),mp(V.comment)}function _p(V){Ff(V.tagName),Gp(V.constraint),Wn(),Yo(V,V.typeParameters,528),mp(V.comment)}function au(V){Ff(V.tagName),V.typeExpression&&(V.typeExpression.kind===312?Gp(V.typeExpression):(Wn(),Xn("{"),wr("Object"),V.typeExpression.isArrayType&&(Xn("["),Xn("]")),Xn("}"))),V.fullName&&(Wn(),pt(V.fullName)),mp(V.comment),V.typeExpression&&V.typeExpression.kind===325&&Rg(V.typeExpression)}function Dh(V){Ff(V.tagName),V.name&&(Wn(),pt(V.name)),mp(V.comment),jm(V.typeExpression)}function Lg(V){Ff(V.tagName),mp(V.comment)}function Rg(V){Yo(V,e.factory.createNodeArray(V.jsDocPropertyTags),33)}function jm(V){V.typeParameters&&Yo(V,e.factory.createNodeArray(V.typeParameters),33),V.parameters&&Yo(V,e.factory.createNodeArray(V.parameters),33),V.type&&(zs(),Wn(),Xn("*"),Wn(),pt(V.type))}function Bg(V){Ff(V.tagName),Gp(V.typeExpression),Wn(),V.isBracketed&&Xn("["),pt(V.name),V.isBracketed&&Xn("]"),mp(V.comment)}function Ff(V){Xn("@"),pt(V)}function mp(V){var ir=e.getTextOfJSDocComment(V);ir&&(Wn(),wr(ir))}function Gp(V){V&&(Wn(),Xn("{"),pt(V.type),Xn("}"))}function W_(V){zs();var ir=V.statements,bt=ir.length===0||!e.isPrologueDirective(ir[0])||e.nodeIsSynthesized(ir[0]);if(bt){xp(V,ir,q_);return}q_(V)}function Ol(V){Kp(!!V.hasNoDefaultLib,V.syntheticFileReferences||[],V.syntheticTypeReferences||[],V.syntheticLibReferences||[]);for(var ir=0,bt=V.prepends;ir<bt.length;ir++){var tn=bt[ir];if(e.isUnparsedSource(tn)&&tn.syntheticReferences)for(var oi=0,Ii=tn.syntheticReferences;oi<Ii.length;oi++){var Hi=Ii[oi];pt(Hi),zs()}}}function xd(V){V.isDeclarationFile&&Kp(V.hasNoDefaultLib,V.referencedFiles,V.typeReferenceDirectives,V.libReferenceDirectives)}function Kp(V,ir,bt,tn){if(V){var oi=mr.getTextPos();Lf('/// <reference no-default-lib="true"/>'),Ze&&Ze.sections.push({pos:oi,end:mr.getTextPos(),kind:"no-default-lib"}),zs()}if(tr&&tr.moduleName&&(Lf('/// <amd-module name="'.concat(tr.moduleName,'" />')),zs()),tr&&tr.amdDependencies)for(var Ii=0,Hi=tr.amdDependencies;Ii<Hi.length;Ii++){var di=Hi[Ii];di.name?Lf('/// <amd-dependency name="'.concat(di.name,'" path="').concat(di.path,'" />')):Lf('/// <amd-dependency path="'.concat(di.path,'" />')),zs()}for(var io=0,fa=ir;io<fa.length;io++){var pa=fa[io],oi=mr.getTextPos();Lf('/// <reference path="'.concat(pa.fileName,'" />')),Ze&&Ze.sections.push({pos:oi,end:mr.getTextPos(),kind:"reference",data:pa.fileName}),zs()}for(var jc=0,pl=bt;jc<pl.length;jc++){var pa=pl[jc],oi=mr.getTextPos(),Hs=pa.resolutionMode&&pa.resolutionMode!==(tr==null?void 0:tr.impliedNodeFormat)?'resolution-mode="'.concat(pa.resolutionMode===e.ModuleKind.ESNext?"import":"require",'"'):"";Lf('/// <reference types="'.concat(pa.fileName,'" ').concat(Hs,"/>")),Ze&&Ze.sections.push({pos:oi,end:mr.getTextPos(),kind:pa.resolutionMode?pa.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:pa.fileName}),zs()}for(var qu=0,il=tn;qu<il.length;qu++){var pa=il[qu],oi=mr.getTextPos();Lf('/// <reference lib="'.concat(pa.fileName,'" />')),Ze&&Ze.sections.push({pos:oi,end:mr.getTextPos(),kind:"lib",data:pa.fileName}),zs()}}function q_(V){var ir=V.statements;Pc(V),e.forEach(V.statements,Ys),Tt(V);var bt=e.findIndex(ir,function(tn){return!e.isPrologueDirective(tn)});xd(V),Yo(V,ir,1,void 0,bt===-1?ir.length:bt),Dc(V)}function Qp(V){var ir=e.getEmitFlags(V);!(ir&512)&&V.pos!==V.expression.pos&&zu(V.expression.pos),ht(V.expression),!(ir&1024)&&V.end!==V.expression.end&&xf(V.expression.end)}function Td(V){Ad(V,V.elements,528,void 0)}function $_(V,ir,bt,tn){for(var oi=!!ir,Ii=0;Ii<V.length;Ii++){var Hi=V[Ii];if(e.isPrologueDirective(Hi)){var di=bt?!bt.has(Hi.expression.text):!0;if(di){oi&&(oi=!1,rt(ir)),zs();var io=mr.getTextPos();pt(Hi),tn&&Ze&&Ze.sections.push({pos:io,end:mr.getTextPos(),kind:"prologue",data:Hi.expression.text}),bt&&bt.add(Hi.expression.text)}}else return Ii}return V.length}function Ed(V,ir){for(var bt=0,tn=V;bt<tn.length;bt++){var oi=tn[bt];if(!ir.has(oi.data)){zs();var Ii=mr.getTextPos();pt(oi),Ze&&Ze.sections.push({pos:Ii,end:mr.getTextPos(),kind:"prologue",data:oi.data}),ir&&ir.add(oi.data)}}}function Jm(V){if(e.isSourceFile(V))$_(V.statements,V);else{for(var ir=new e.Set,bt=0,tn=V.prepends;bt<tn.length;bt++){var oi=tn[bt];Ed(oi.prologues,ir)}for(var Ii=0,Hi=V.sourceFiles;Ii<Hi.length;Ii++){var di=Hi[Ii];$_(di.statements,di,ir,!0)}rt(void 0)}}function Cd(V){for(var ir=new e.Set,bt,tn=0;tn<V.sourceFiles.length;tn++){for(var oi=V.sourceFiles[tn],Ii=void 0,Hi=0,di=0,io=oi.statements;di<io.length;di++){var fa=io[di];if(!e.isPrologueDirective(fa))break;ir.has(fa.expression.text)||(ir.add(fa.expression.text),(Ii||(Ii=[])).push({pos:fa.pos,end:fa.end,expression:{pos:fa.expression.pos,end:fa.expression.end,text:fa.expression.text}}),Hi=Hi<fa.end?fa.end:Hi)}Ii&&(bt||(bt=[])).push({file:tn,text:oi.text.substring(0,Hi),directives:Ii})}return bt}function Xp(V){if(e.isSourceFile(V)||e.isUnparsedSource(V)){var ir=e.getShebang(V.text);if(ir)return Lf(ir),zs(),!0}else{for(var bt=0,tn=V.prepends;bt<tn.length;bt++){var oi=tn[bt];if(e.Debug.assertNode(oi,e.isUnparsedSource),Xp(oi))return!0}for(var Ii=0,Hi=V.sourceFiles;Ii<Hi.length;Ii++){var di=Hi[Ii];if(Xp(di))return!0}}}function H_(V,ir){if(V){var bt=wr;wr=ir,pt(V),wr=bt}}function Yp(V,ir){if(ir!=null&&ir.length){if(e.every(ir,e.isModifier))return ou(V,ir);if(e.every(ir,e.isDecorator))return kd(V,ir);b==null||b(ir);for(var bt=void 0,tn=void 0,oi=0,Ii=0;oi<ir.length;){for(;Ii<ir.length;){var Hi=ir[Ii];if(tn=e.isDecorator(Hi)?"decorators":"modifiers",bt===void 0)bt=tn;else if(tn!==bt)break;Ii++}var di={pos:-1,end:-1};oi===0&&(di.pos=ir.pos),Ii===ir.length-1&&(di.end=ir.end),Pd(pt,V,ir,bt==="modifiers"?2359808:2146305,void 0,oi,Ii-oi,!1,di),oi=Ii,bt=tn,Ii++}Q==null||Q(ir)}}function ou(V,ir){Yo(V,ir,2359808)}function nl(V){V&&(Xn(":"),Wn(),pt(V))}function gp(V,ir,bt,tn){V&&(Wn(),Xr(63,ir,yf,bt),Wn(),ht(V,tn))}function Zp(V,ir,bt,tn){bt&&(ir(V),tn(bt))}function ed(V){V&&(Wn(),pt(V))}function Ml(V,ir){V&&(Wn(),ht(V,ir))}function xh(V){V&&(pt(V),Wn())}function cl(V,ir){e.isBlock(ir)||e.getEmitFlags(V)&1?(Wn(),pt(ir)):(zs(),ns(),e.isEmptyStatement(ir)?Bn(5,ir):pt(ir),ul())}function kd(V,ir){Yo(V,ir,2146305)}function Fl(V,ir){Yo(V,ir,53776,Ke)}function yl(V,ir){if(e.isFunctionLike(V)&&V.typeArguments)return Fl(V,V.typeArguments);Yo(V,ir,53776)}function hf(V,ir){Yo(V,ir,2576)}function c_(V,ir){var bt=e.singleOrUndefined(ir);return bt&&bt.pos===V.pos&&e.isArrowFunction(V)&&!V.type&&!e.some(V.modifiers)&&!e.some(V.typeParameters)&&!e.some(bt.modifiers)&&!bt.dotDotDotToken&&!bt.questionToken&&!bt.type&&!bt.initializer&&e.isIdentifier(bt.name)}function jg(V,ir){c_(V,ir)?Yo(V,ir,528):hf(V,ir)}function Um(V,ir){Yo(V,ir,8848)}function G_(V){switch(V&60){case 0:break;case 16:Xn(",");break;case 4:Wn(),Xn("|");break;case 32:Wn(),Xn("*"),Wn();break;case 8:Wn(),Xn("&");break}}function Yo(V,ir,bt,tn,oi,Ii){vf(pt,V,ir,bt,tn,oi,Ii)}function Ad(V,ir,bt,tn,oi,Ii){vf(ht,V,ir,bt,tn,oi,Ii)}function vf(V,ir,bt,tn,oi,Ii,Hi){Ii===void 0&&(Ii=0),Hi===void 0&&(Hi=bt?bt.length-Ii:0);var di=bt===void 0;if(!(di&&tn&16384)){var io=bt===void 0||Ii>=bt.length||Hi===0;if(io&&tn&32768){b==null||b(bt),Q==null||Q(bt);return}tn&15360&&(Xn(oe(tn)),io&&bt&&zu(bt.pos,!0)),b==null||b(bt),io?tn&1&&!(Je&&(!ir||tr&&e.rangeIsOnSingleLine(ir,tr)))?zs():tn&256&&!(tn&524288)&&Wn():Pd(V,ir,bt,tn,oi,Ii,Hi,bt.hasTrailingComma,bt),Q==null||Q(bt),tn&15360&&(io&&bt&&xf(bt.end),Xn(w(tn)))}}function Pd(V,ir,bt,tn,oi,Ii,Hi,di,io){var fa=(tn&262144)===0,pa=fa,jc=zm(ir,bt[Ii],tn);jc?(zs(jc),pa=!1):tn&256&&Wn(),tn&128&&ns();for(var pl=q(V,oi),Hs,qu,il=!1,jl=0;jl<Hi;jl++){var Jf=bt[Ii+jl];if(tn&32)zs(),G_(tn);else if(Hs){tn&60&&Hs.end!==(ir?ir.end:-1)&&xf(Hs.end),G_(tn),dr(qu);var Qm=Od(Hs,Jf,tn);Qm>0?(tn&131||(ns(),il=!0),zs(Qm),pa=!1):Hs&&tn&512&&Wn()}if(qu=We(Jf),pa){var Vg=e.getCommentRange(Jf);zu(Vg.pos)}else pa=fa;lr=Jf.pos,pl(Jf,V,oi,jl),il&&(ul(),il=!1),Hs=Jf}var Uf=Hs?e.getEmitFlags(Hs):0,nm=xr||!!(Uf&1024),im=di&&tn&64&&tn&16;im&&(Hs&&!nm?Xr(27,Hs.end,Xn,Hs):Xn(",")),Hs&&(ir?ir.end:-1)!==Hs.end&&tn&60&&!nm&&xf(im&&(io!=null&&io.end)?io.end:Hs.end),tn&128&&ul(),dr(qu);var Xm=Rc(ir,bt[Ii+Hi-1],tn,io);Xm?zs(Xm):tn&2097408&&Wn()}function Vs(V){mr.writeLiteral(V)}function gc(V){mr.writeStringLiteral(V)}function Vm(V){mr.write(V)}function Gc(V,ir){mr.writeSymbol(V,ir)}function Xn(V){mr.writePunctuation(V)}function sc(){mr.writeTrailingSemicolon(";")}function ba(V){mr.writeKeyword(V)}function yf(V){mr.writeOperator(V)}function bl(V){mr.writeParameter(V)}function Lf(V){mr.writeComment(V)}function Wn(){mr.writeSpace(" ")}function su(V){mr.writeProperty(V)}function wd(V){mr.nonEscapingWrite?mr.nonEscapingWrite(V):mr.write(V)}function zs(V){V===void 0&&(V=1);for(var ir=0;ir<V;ir++)mr.writeLine(ir>0)}function ns(){mr.increaseIndent()}function ul(){mr.decreaseIndent()}function Nd(V,ir,bt,tn){return Rr?bf(V,bt,ir):Gm(tn,V,bt,ir,bf)}function Id(V,ir){G&&G(V),ir(e.tokenToString(V.kind)),ae&&ae(V)}function bf(V,ir,bt){var tn=e.tokenToString(V);return ir(tn),bt<0?bt:bt+tn.length}function Ac(V,ir,bt){if(e.getEmitFlags(V)&1)Wn();else if(Je){var tn=Sl(V,ir,bt);tn?zs(tn):Wn()}else zs()}function hp(V){for(var ir=V.split(/\r\n?|\n/g),bt=e.guessIndentation(ir),tn=0,oi=ir;tn<oi.length;tn++){var Ii=oi[tn],Hi=bt?Ii.slice(bt):Ii;Hi.length&&(zs(),wr(Hi))}}function Zl(V,ir){V?(ns(),zs(V)):ir&&Wn()}function Rf(V,ir){V&&ul(),ir&&ul()}function zm(V,ir,bt){if(bt&2||Je){if(bt&65536)return 1;if(ir===void 0)return!V||tr&&e.rangeIsOnSingleLine(V,tr)?0:1;if(ir.pos===lr||ir.kind===11)return 0;if(tr&&V&&!e.positionIsSynthesized(V.pos)&&!e.nodeIsSynthesized(ir)&&(!ir.parent||e.getOriginalNode(ir.parent)===e.getOriginalNode(V)))return Je?vp(function(tn){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(ir.pos,V.pos,tr,tn)}):e.rangeStartPositionsAreOnSameLine(V,ir,tr)?0:1;if(ef(ir,bt))return 1}return bt&1?1:0}function Od(V,ir,bt){if(bt&2||Je){if(V===void 0||ir===void 0||ir.kind===11)return 0;if(tr&&!e.nodeIsSynthesized(V)&&!e.nodeIsSynthesized(ir))return Je&&nd(V,ir)?vp(function(tn){return e.getLinesBetweenRangeEndAndRangeStart(V,ir,tr,tn)}):!Je&&Ld(V,ir)?e.rangeEndIsOnSameLineAsRangeStart(V,ir,tr)?0:1:bt&65536?1:0;if(ef(V,bt)||ef(ir,bt))return 1}else if(e.getStartsOnNewLine(ir))return 1;return bt&1?1:0}function Rc(V,ir,bt,tn){if(bt&2||Je){if(bt&65536)return 1;if(ir===void 0)return!V||tr&&e.rangeIsOnSingleLine(V,tr)?0:1;if(tr&&V&&!e.positionIsSynthesized(V.pos)&&!e.nodeIsSynthesized(ir)&&(!ir.parent||ir.parent===V)){if(Je){var oi=tn&&!e.positionIsSynthesized(tn.end)?tn.end:ir.end;return vp(function(Ii){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(oi,V.end,tr,Ii)})}return e.rangeEndPositionsAreOnSameLine(V,ir,tr)?0:1}if(ef(ir,bt))return 1}return bt&1&&!(bt&131072)?1:0}function vp(V){e.Debug.assert(!!Je);var ir=V(!0);return ir===0?V(!1):ir}function rd(V,ir){var bt=Je&&zm(ir,V,0);return bt&&Zl(bt,!1),!!bt}function yp(V,ir){var bt=Je&&Rc(ir,V,0,void 0);bt&&zs(bt)}function ef(V,ir){if(e.nodeIsSynthesized(V)){var bt=e.getStartsOnNewLine(V);return bt===void 0?(ir&65536)!==0:bt}return(ir&65536)!==0}function Sl(V,ir,bt){return e.getEmitFlags(V)&131072?0:(V=Wm(V),ir=Wm(ir),bt=Wm(bt),e.getStartsOnNewLine(bt)?1:tr&&!e.nodeIsSynthesized(V)&&!e.nodeIsSynthesized(ir)&&!e.nodeIsSynthesized(bt)?Je?vp(function(tn){return e.getLinesBetweenRangeEndAndRangeStart(ir,bt,tr,tn)}):e.rangeEndIsOnSameLineAsRangeStart(ir,bt,tr)?0:1:0)}function K_(V){return V.statements.length===0&&(!tr||e.rangeEndIsOnSameLineAsRangeStart(V,V,tr))}function Wm(V){for(;V.kind===214&&e.nodeIsSynthesized(V);)V=V.expression;return V}function bp(V,ir){if(e.isGeneratedIdentifier(V)||e.isGeneratedPrivateIdentifier(V))return Zn(V);if(e.isStringLiteral(V)&&V.textSourceNode)return bp(V.textSourceNode,ir);var bt=tr,tn=!!bt&&!!V.parent&&!e.nodeIsSynthesized(V);if(e.isMemberName(V)){if(!tn||e.getSourceFileOfNode(V)!==e.getOriginalNode(bt))return e.idText(V)}else if(e.Debug.assertNode(V,e.isLiteralExpression),!tn)return V.text;return e.getSourceTextOfNodeFromSourceFile(bt,V,ir)}function u_(V,ir,bt){if(V.kind===10&&V.textSourceNode){var tn=V.textSourceNode;if(e.isIdentifier(tn)||e.isPrivateIdentifier(tn)||e.isNumericLiteral(tn)){var oi=e.isNumericLiteral(tn)?tn.text:bp(tn);return bt?'"'.concat(e.escapeJsxAttributeString(oi),'"'):ir||e.getEmitFlags(V)&16777216?'"'.concat(e.escapeString(oi),'"'):'"'.concat(e.escapeNonAsciiString(oi),'"')}else return u_(tn,ir,bt)}var Ii=(ir?1:0)|(bt?2:0)|(R.terminateUnterminatedLiterals?4:0)|(R.target&&R.target===99?8:0);return e.getLiteralText(V,tr,Ii)}function Pc(V){V&&e.getEmitFlags(V)&524288||(xe.push(L),L=0,Ae.push(qe),qe=0,je.push(Ce),Ce=void 0,ue.push(Ue))}function Dc(V){V&&e.getEmitFlags(V)&524288||(L=xe.pop(),qe=Ae.pop(),Ce=je.pop(),Ue=ue.pop())}function Ll(V){(!Ue||Ue===e.lastOrUndefined(ue))&&(Ue=new e.Set),Ue.add(V)}function Ys(V){if(V)switch(V.kind){case 238:e.forEach(V.statements,Ys);break;case 253:case 251:case 243:case 244:Ys(V.statement);break;case 242:Ys(V.thenStatement),Ys(V.elseStatement);break;case 245:case 247:case 246:Ys(V.initializer),Ys(V.statement);break;case 252:Ys(V.caseBlock);break;case 266:e.forEach(V.clauses,Ys);break;case 292:case 293:e.forEach(V.statements,Ys);break;case 255:Ys(V.tryBlock),Ys(V.catchClause),Ys(V.finallyBlock);break;case 295:Ys(V.variableDeclaration),Ys(V.block);break;case 240:Ys(V.declarationList);break;case 258:e.forEach(V.declarations,Ys);break;case 257:case 166:case 205:case 260:mo(V.name);break;case 259:mo(V.name),e.getEmitFlags(V)&524288&&(e.forEach(V.parameters,Ys),Ys(V.body));break;case 203:case 204:e.forEach(V.elements,Ys);break;case 269:Ys(V.importClause);break;case 270:mo(V.name),Ys(V.namedBindings);break;case 271:mo(V.name);break;case 277:mo(V.name);break;case 272:e.forEach(V.elements,Ys);break;case 273:mo(V.propertyName||V.name);break}}function qm(V){if(V)switch(V.kind){case 299:case 300:case 169:case 171:case 174:case 175:mo(V.name);break}}function mo(V){V&&(e.isGeneratedIdentifier(V)||e.isGeneratedPrivateIdentifier(V)?Zn(V):e.isBindingPattern(V)&&Ys(V))}function Zn(V){if((V.autoGenerateFlags&7)===4)return Bc(e.getNodeForGeneratedName(V),e.isPrivateIdentifier(V),V.autoGenerateFlags,V.autoGeneratePrefix,V.autoGenerateSuffix);var ir=V.autoGenerateId;return He[ir]||(He[ir]=ic(V))}function Bc(V,ir,bt,tn,oi){var Ii=e.getNodeId(V);return me[Ii]||(me[Ii]=Q_(V,ir,bt??0,e.formatGeneratedNamePart(tn,Zn),e.formatGeneratedNamePart(oi)))}function Sf(V){return Md(V)&&!rr.has(V)&&!(Ue&&Ue.has(V))}function Md(V){return tr?e.isFileLevelUniqueName(tr,V,I):!0}function Jg(V,ir){for(var bt=ir;e.isNodeDescendantOf(bt,ir);bt=bt.nextContainer)if(bt.locals){var tn=bt.locals.get(e.escapeLeadingUnderscores(V));if(tn&&tn.flags&3257279)return!1}return!0}function l_(V){var ir;switch(V){case"":return L;case"#":return qe;default:return(ir=Ce==null?void 0:Ce.get(V))!==null&&ir!==void 0?ir:0}}function td(V,ir){switch(V){case"":L=ir;break;case"#":qe=ir;break;default:Ce??(Ce=new e.Map),Ce.set(V,ir);break}}function Uu(V,ir,bt,tn,oi){tn.length>0&&tn.charCodeAt(0)===35&&(tn=tn.slice(1));var Ii=e.formatGeneratedName(bt,tn,"",oi),Hi=l_(Ii);if(V&&!(Hi&V)){var di=V===268435456?"_i":"_n",io=e.formatGeneratedName(bt,tn,di,oi);if(Sf(io))return Hi|=V,ir&&Ll(io),td(Ii,Hi),io}for(;;){var fa=Hi&268435455;if(Hi++,fa!==8&&fa!==13){var di=fa<26?"_"+String.fromCharCode(97+fa):"_"+(fa-26),io=e.formatGeneratedName(bt,tn,di,oi);if(Sf(io))return ir&&Ll(io),td(Ii,Hi),io}}}function Iu(V,ir,bt,tn,oi,Ii,Hi){if(ir===void 0&&(ir=Sf),V.length>0&&V.charCodeAt(0)===35&&(V=V.slice(1)),Ii.length>0&&Ii.charCodeAt(0)===35&&(Ii=Ii.slice(1)),bt){var di=e.formatGeneratedName(oi,Ii,V,Hi);if(ir(di))return tn?Ll(di):rr.add(di),di}V.charCodeAt(V.length-1)!==95&&(V+="_");for(var io=1;;){var di=e.formatGeneratedName(oi,Ii,V+io,Hi);if(ir(di))return tn?Ll(di):rr.add(di),di;io++}}function Sp(V){return Iu(V,Md,!0,!1,!1,"","")}function f_(V){var ir=bp(V.name);return Jg(ir,V)?ir:Iu(ir,Sf,!1,!1,!1,"","")}function xu(V){var ir=e.getExternalModuleName(V),bt=e.isStringLiteral(ir)?e.makeIdentifierFromModuleName(ir.text):"module";return Iu(bt,Sf,!1,!1,!1,"","")}function Fd(){return Iu("default",Sf,!1,!1,!1,"","")}function Os(){return Iu("class",Sf,!1,!1,!1,"","")}function ll(V,ir,bt,tn){return e.isIdentifier(V.name)?Bc(V.name,ir):Uu(0,!1,ir,bt,tn)}function Q_(V,ir,bt,tn,oi){switch(V.kind){case 79:case 80:return Iu(bp(V),Sf,!!(bt&16),!!(bt&8),ir,tn,oi);case 264:case 263:return e.Debug.assert(!tn&&!oi&&!ir),f_(V);case 269:case 275:return e.Debug.assert(!tn&&!oi&&!ir),xu(V);case 259:case 260:case 274:return e.Debug.assert(!tn&&!oi&&!ir),Fd();case 228:return e.Debug.assert(!tn&&!oi&&!ir),Os();case 171:case 174:case 175:return ll(V,ir,tn,oi);case 164:return Uu(0,!0,ir,tn,oi);default:return Uu(0,!1,ir,tn,oi)}}function ic(V){var ir=e.formatGeneratedNamePart(V.autoGeneratePrefix,Zn),bt=e.formatGeneratedNamePart(V.autoGenerateSuffix);switch(V.autoGenerateFlags&7){case 1:return Uu(0,!!(V.autoGenerateFlags&8),e.isPrivateIdentifier(V),ir,bt);case 2:return e.Debug.assertNode(V,e.isIdentifier),Uu(268435456,!!(V.autoGenerateFlags&8),!1,ir,bt);case 3:return Iu(e.idText(V),V.autoGenerateFlags&32?Md:Sf,!!(V.autoGenerateFlags&16),!!(V.autoGenerateFlags&8),e.isPrivateIdentifier(V),ir,bt)}return e.Debug.fail("Unsupported GeneratedIdentifierKind: ".concat(e.Debug.formatEnum(V.autoGenerateFlags&7,e.GeneratedIdentifierFlags,!0),"."))}function Rl(V,ir){var bt=ii(2,V,ir),tn=Fe,oi=vr,Ii=Le;Dp(ir),bt(V,ir),X_(ir,tn,oi,Ii)}function Dp(V){var ir=e.getEmitFlags(V),bt=e.getCommentRange(V);p_(V,ir,bt.pos,bt.end),ir&2048&&(xr=!0)}function X_(V,ir,bt,tn){var oi=e.getEmitFlags(V),Ii=e.getCommentRange(V);oi&2048&&(xr=!1),Vu(V,oi,Ii.pos,Ii.end,ir,bt,tn);var Hi=e.getTypeNode(V);Hi&&Vu(V,oi,Hi.pos,Hi.end,ir,bt,tn)}function p_(V,ir,bt,tn){ft(),Re=!1;var oi=bt<0||(ir&512)!==0||V.kind===11,Ii=tn<0||(ir&1024)!==0||V.kind===11;(bt>0||tn>0)&&bt!==tn&&(oi||Df(bt,V.kind!==352),(!oi||bt>=0&&ir&512)&&(Fe=bt),(!Ii||tn>=0&&ir&1024)&&(vr=tn,V.kind===258&&(Le=tn))),e.forEach(e.getSyntheticLeadingComments(V),Es),Dt()}function Vu(V,ir,bt,tn,oi,Ii,Hi){ft();var di=tn<0||(ir&1024)!==0||V.kind===11;e.forEach(e.getSyntheticTrailingComments(V),Y_),(bt>0||tn>0)&&bt!==tn&&(Fe=oi,vr=Ii,Le=Hi,!di&&V.kind!==352&&em(tn)),Dt()}function Es(V){(V.hasLeadingNewline||V.kind===2)&&mr.writeLine(),Bl(V),V.hasTrailingNewLine||V.kind===2?mr.writeLine():mr.writeSpace(" ")}function Y_(V){mr.isAtStartOfLine()||mr.writeSpace(" "),Bl(V),V.hasTrailingNewLine&&mr.writeLine()}function Bl(V){var ir=Bf(V),bt=V.kind===3?e.computeLineStarts(ir):void 0;e.writeCommentRange(ir,bt,mr,0,ir.length,Ne)}function Bf(V){return V.kind===3?"/*".concat(V.text,"*/"):"//".concat(V.text)}function xp(V,ir,bt){ft();var tn=ir.pos,oi=ir.end,Ii=e.getEmitFlags(V),Hi=tn<0||(Ii&512)!==0,di=xr||oi<0||(Ii&1024)!==0;Hi||m_(ir),Dt(),Ii&2048&&!xr?(xr=!0,bt(V),xr=!1):bt(V),ft(),di||(Df(ir.end,!0),Re&&!mr.isAtStartOfLine()&&mr.writeLine()),Dt()}function Ld(V,ir){return V=e.getOriginalNode(V),V.parent&&V.parent===e.getOriginalNode(ir).parent}function nd(V,ir){if(ir.pos<V.end)return!1;V=e.getOriginalNode(V),ir=e.getOriginalNode(ir);var bt=V.parent;if(!bt||bt!==ir.parent)return!1;var tn=e.getContainingNodeArray(V),oi=tn==null?void 0:tn.indexOf(V);return oi!==void 0&&oi>-1&&tn.indexOf(ir)===oi+1}function Df(V,ir){Re=!1,ir?V===0&&(tr!=null&&tr.isDeclarationFile)?na(V,__):na(V,rf):V===0&&na(V,d_)}function d_(V,ir,bt,tn,oi){Ep(V,ir)&&rf(V,ir,bt,tn,oi)}function __(V,ir,bt,tn,oi){Ep(V,ir)||rf(V,ir,bt,tn,oi)}function Z_(V,ir){return R.onlyPrintJsDocStyle?e.isJSDocLikeText(V,ir)||e.isPinnedComment(V,ir):!0}function rf(V,ir,bt,tn,oi){!tr||!Z_(tr.text,V)||(Re||(e.emitNewLineBeforeLeadingCommentOfPosition(Pt(),mr,oi,V),Re=!0),fl(V),e.writeCommentRange(tr.text,Pt(),mr,V,ir,Ne),fl(ir),tn?mr.writeLine():bt===3&&mr.writeSpace(" "))}function xf(V){xr||V===-1||Df(V,!0)}function em(V){Tp(V,Ug)}function Ug(V,ir,bt,tn){!tr||!Z_(tr.text,V)||(mr.isAtStartOfLine()||mr.writeSpace(" "),fl(V),e.writeCommentRange(tr.text,Pt(),mr,V,ir,Ne),fl(ir),tn&&mr.writeLine())}function zu(V,ir,bt){xr||(ft(),Tp(V,ir?Ug:bt?$m:Tf),Dt())}function $m(V,ir,bt){tr&&(fl(V),e.writeCommentRange(tr.text,Pt(),mr,V,ir,Ne),fl(ir),bt===2&&mr.writeLine())}function Tf(V,ir,bt,tn){tr&&(fl(V),e.writeCommentRange(tr.text,Pt(),mr,V,ir,Ne),fl(ir),tn?mr.writeLine():mr.writeSpace(" "))}function na(V,ir){tr&&(Fe===-1||V!==Fe)&&(Hn(V)?rm(ir):e.forEachLeadingCommentRange(tr.text,V,ir,V))}function Tp(V,ir){tr&&(vr===-1||V!==vr&&V!==Le)&&e.forEachTrailingCommentRange(tr.text,V,ir)}function Hn(V){return $r!==void 0&&e.last($r).nodePos===V}function rm(V){if(tr){var ir=e.last($r).detachedCommentEndPos;$r.length-1?$r.pop():$r=void 0,e.forEachLeadingCommentRange(tr.text,ir,V,ir)}}function m_(V){var ir=tr&&e.emitDetachedComments(tr.text,Pt(),mr,g_,V,Ne,xr);ir&&($r?$r.push(ir):$r=[ir])}function g_(V,ir,bt,tn,oi,Ii){!tr||!Z_(tr.text,tn)||(fl(tn),e.writeCommentRange(V,ir,bt,tn,oi,Ii),fl(oi))}function Ep(V,ir){return!!tr&&e.isRecognizedTripleSlashComment(tr.text,V,ir)}function Hm(V){return V.parsedSourceMap===void 0&&V.sourceMapText!==void 0&&(V.parsedSourceMap=e.tryParseRawSourceMap(V.sourceMapText)||!1),V.parsedSourceMap||void 0}function Cp(V,ir){var bt=ii(3,V,ir);Wu(ir),bt(V,ir),id(ir)}function Wu(V){var ir=e.getEmitFlags(V),bt=e.getSourceMapRange(V);if(e.isUnparsedNode(V)){e.Debug.assertIsDefined(V.parent,"UnparsedNodes must have parent pointers");var tn=Hm(V.parent);tn&&zr&&zr.appendSourceMap(mr.getLine(),mr.getColumn(),tn,V.parent.sourceMapPath,V.parent.getLineAndCharacterOfPosition(V.pos),V.parent.getLineAndCharacterOfPosition(V.end))}else{var oi=bt.source||Fr;V.kind!==352&&!(ir&16)&&bt.pos>=0&&jf(bt.source||Fr,tm(oi,bt.pos)),ir&64&&(Rr=!0)}}function id(V){var ir=e.getEmitFlags(V),bt=e.getSourceMapRange(V);e.isUnparsedNode(V)||(ir&64&&(Rr=!1),V.kind!==352&&!(ir&32)&&bt.end>=0&&jf(bt.source||Fr,bt.end))}function tm(V,ir){return V.skipTrivia?V.skipTrivia(ir):e.skipTrivia(V.text,ir)}function fl(V){if(!(Rr||e.positionIsSynthesized(V)||Dl(Fr))){var ir=e.getLineAndCharacterOfPosition(Fr,V),bt=ir.line,tn=ir.character;zr.addMapping(mr.getLine(),mr.getColumn(),_t,bt,tn,void 0)}}function jf(V,ir){if(V!==Fr){var bt=Fr,tn=_t;Km(V),fl(ir),ad(bt,tn)}else fl(ir)}function Gm(V,ir,bt,tn,oi){if(Rr||V&&e.isInJsonFile(V))return oi(ir,bt,tn);var Ii=V&&V.emitNode,Hi=Ii&&Ii.flags||0,di=Ii&&Ii.tokenSourceMapRanges&&Ii.tokenSourceMapRanges[ir],io=di&&di.source||Fr;return tn=tm(io,di?di.pos:tn),!(Hi&128)&&tn>=0&&jf(io,tn),tn=oi(ir,bt,tn),di&&(tn=di.end),!(Hi&256)&&tn>=0&&jf(io,tn),tn}function Km(V){if(!Rr){if(Fr=V,V===Ct){_t=yt;return}Dl(V)||(_t=zr.addSource(V.fileName),R.inlineSources&&zr.setSourceContent(_t,V.text),Ct=V,yt=_t)}}function ad(V,ir){Fr=V,_t=ir}function Dl(V){return e.fileExtensionIs(V.fileName,".json")}}e.createPrinter=_e;function ne(){var R=[];return R[1024]=["{","}"],R[2048]=["(",")"],R[4096]=["<",">"],R[8192]=["[","]"],R}function oe(R){return c[R&15360][0]}function w(R){return c[R&15360][1]}var re;(function(R){R[R.Auto=0]="Auto",R[R.CountMask=268435455]="CountMask",R[R._i=268435456]="_i"})(re||(re={}));function M(R,K,I,he){K(R)}function U(R,K,I,he){K(R,I.select(he))}function H(R,K,I,he){K(R,I)}function q(R,K){return R.length===1?M:typeof K=="object"?U:H}})(h||(h={}));var h;(function(e){function c(k,X,A){if(!k.getDirectories||!k.readDirectory)return;var y=new e.Map,C=e.createGetCanonicalFileName(A);return{useCaseSensitiveFileNames:A,fileExists:oe,readFile:function(he,le){return k.readFile(he,le)},directoryExists:k.directoryExists&&w,getDirectories:M,readDirectory:U,createDirectory:k.createDirectory&&re,writeFile:k.writeFile&&ne,addOrDeleteFileOrDirectory:q,addOrDeleteFile:R,clearCache:I,realpath:k.realpath&&H};function B(he){return e.toPath(he,X,C)}function F(he){return y.get(e.ensureTrailingDirectorySeparator(he))}function z(he){var le=F(e.getDirectoryPath(he));return le&&(le.sortedAndCanonicalizedFiles||(le.sortedAndCanonicalizedFiles=le.files.map(C).sort(),le.sortedAndCanonicalizedDirectories=le.directories.map(C).sort()),le)}function ge(he){return e.getBaseFileName(e.normalizePath(he))}function Pe(he,le){var ee;if(!k.realpath||e.ensureTrailingDirectorySeparator(B(k.realpath(he)))===le){var J={files:e.map(k.readDirectory(he,void 0,void 0,["*.*"]),ge)||[],directories:k.getDirectories(he)||[]};return y.set(e.ensureTrailingDirectorySeparator(le),J),J}if(!((ee=k.directoryExists)===null||ee===void 0)&&ee.call(k,he))return y.set(le,!1),!1}function fe(he,le){le=e.ensureTrailingDirectorySeparator(le);var ee=F(le);if(ee)return ee;try{return Pe(he,le)}catch{e.Debug.assert(!y.has(e.ensureTrailingDirectorySeparator(le)));return}}function _e(he,le){var ee=e.binarySearch(he,le,e.identity,e.compareStringsCaseSensitive);return ee>=0}function ne(he,le,ee){var J=B(he),de=z(J);return de&&K(de,ge(he),!0),k.writeFile(he,le,ee)}function oe(he){var le=B(he),ee=z(le);return ee&&_e(ee.sortedAndCanonicalizedFiles,C(ge(he)))||k.fileExists(he)}function w(he){var le=B(he);return y.has(e.ensureTrailingDirectorySeparator(le))||k.directoryExists(he)}function re(he){var le=B(he),ee=z(le);if(ee){var J=ge(he),de=C(J),De=ee.sortedAndCanonicalizedDirectories;e.insertSorted(De,de,e.compareStringsCaseSensitive)&&ee.directories.push(J)}k.createDirectory(he)}function M(he){var le=B(he),ee=fe(he,le);return ee?ee.directories.slice():k.getDirectories(he)}function U(he,le,ee,J,de){var De=B(he),N=fe(he,De),b;if(N!==void 0)return e.matchFiles(he,le,ee,J,A,X,de,Q,H);return k.readDirectory(he,le,ee,J,de);function Q(ae){var Te=B(ae);if(Te===De)return N||G(ae,Te);var Ne=fe(ae,Te);return Ne!==void 0?Ne||G(ae,Te):e.emptyFileSystemEntries}function G(ae,Te){if(b&&Te===De)return b;var Ne={files:e.map(k.readDirectory(ae,void 0,void 0,["*.*"]),ge)||e.emptyArray,directories:k.getDirectories(ae)||e.emptyArray};return Te===De&&(b=Ne),Ne}}function H(he){return k.realpath?k.realpath(he):he}function q(he,le){var ee=F(le);if(ee!==void 0){I();return}var J=z(le);if(J){if(!k.directoryExists){I();return}var de=ge(he),De={fileExists:k.fileExists(le),directoryExists:k.directoryExists(le)};return De.directoryExists||_e(J.sortedAndCanonicalizedDirectories,C(de))?I():K(J,de,De.fileExists),De}}function R(he,le,ee){if(ee!==e.FileWatcherEventKind.Changed){var J=z(le);J&&K(J,ge(he),ee===e.FileWatcherEventKind.Created)}}function K(he,le,ee){var J=he.sortedAndCanonicalizedFiles,de=C(le);if(ee)e.insertSorted(J,de,e.compareStringsCaseSensitive)&&he.files.push(le);else{var De=e.binarySearch(J,de,e.identity,e.compareStringsCaseSensitive);if(De>=0){J.splice(De,1);var N=he.files.findIndex(function(b){return C(b)===de});he.files.splice(N,1)}}}function I(){y.clear()}}e.createCachedDirectoryStructureHost=c,function(k){k[k.None=0]="None",k[k.Partial=1]="Partial",k[k.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function P(k,X,A,y,C){var B,F=e.arrayToMap(((B=X==null?void 0:X.configFile)===null||B===void 0?void 0:B.extendedSourceFiles)||e.emptyArray,C);A.forEach(function(z,ge){F.has(ge)||(z.projects.delete(k),z.close())}),F.forEach(function(z,ge){var Pe=A.get(ge);Pe?Pe.projects.add(k):A.set(ge,{projects:new e.Set([k]),watcher:y(z,ge),close:function(){var fe=A.get(ge);!fe||fe.projects.size!==0||(fe.watcher.close(),A.delete(ge))}})})}e.updateSharedExtendedConfigFileWatcher=P;function T(k,X){X.forEach(function(A){A.projects.delete(k)&&A.close()})}e.clearSharedExtendedConfigFileWatcher=T;function s(k,X,A){k.delete(X)&&k.forEach(function(y,C){var B,F=y.extendedResult;!((B=F.extendedSourceFiles)===null||B===void 0)&&B.some(function(z){return A(z)===X})&&s(k,C,A)})}e.cleanExtendedConfigCache=s;function D(k,X,A){var y=new e.Map(k);e.mutateMap(X,y,{createNewValue:A,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=D;function O(k,X,A){var y=k.getMissingFilePaths(),C=e.arrayToMap(y,e.identity,e.returnTrue);e.mutateMap(X,C,{createNewValue:A,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=O;function W(k,X,A){e.mutateMap(k,X,{createNewValue:y,onDeleteValue:ce,onExistingValue:C});function y(B,F){return{watcher:A(B,F),flags:F}}function C(B,F,z){B.flags!==F&&(B.watcher.close(),k.set(z,y(z,F)))}}e.updateWatchingWildcardDirectories=W;function E(k){var X=k.watchedDirPath,A=k.fileOrDirectory,y=k.fileOrDirectoryPath,C=k.configFileName,B=k.options,F=k.program,z=k.extraFileExtensions,ge=k.currentDirectory,Pe=k.useCaseSensitiveFileNames,fe=k.writeLog,_e=k.toPath,ne=e.removeIgnoredPath(y);if(!ne)return fe("Project: ".concat(C," Detected ignored path: ").concat(A)),!0;if(y=ne,y===X)return!1;if(e.hasExtension(y)&&!e.isSupportedSourceFileName(A,B,z))return fe("Project: ".concat(C," Detected file add/remove of non supported extension: ").concat(A)),!0;if(e.isExcludedFile(A,B.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(C),ge),Pe,ge))return fe("Project: ".concat(C," Detected excluded file: ").concat(A)),!0;if(!F||e.outFile(B)||B.outDir)return!1;if(e.isDeclarationFileName(y)){if(B.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(y,e.supportedJSExtensionsFlat))return!1;var oe=e.removeFileExtension(y),w=e.isArray(F)?void 0:v(F)?F.getProgramOrUndefined():F,re=!w&&!e.isArray(F)?F:void 0;if(M(oe+".ts")||M(oe+".tsx"))return fe("Project: ".concat(C," Detected output file: ").concat(A)),!0;return!1;function M(U){return w?!!w.getSourceFileByPath(U):re?re.getState().fileInfos.has(U):!!e.find(F,function(H){return _e(H)===U})}}e.isIgnoredFileFromWildCardWatching=E;function v(k){return!!k.getState}function S(k,X){return k?k.isEmittedFile(X):!1}e.isEmittedFileOfProgram=S;var te;(function(k){k[k.None=0]="None",k[k.TriggerOnly=1]="TriggerOnly",k[k.Verbose=2]="Verbose"})(te=e.WatchLogLevel||(e.WatchLogLevel={}));function Y(k,X,A,y){e.setSysLog(X===te.Verbose?A:e.noop);var C={watchFile:function(re,M,U,H){return k.watchFile(re,M,U,H)},watchDirectory:function(re,M,U,H){return k.watchDirectory(re,M,(U&1)!==0,H)}},B=X!==te.None?{watchFile:oe("watchFile"),watchDirectory:oe("watchDirectory")}:void 0,F=X===te.Verbose?{watchFile:_e,watchDirectory:ne}:B||C,z=X===te.Verbose?fe:e.returnNoopFileWatcher;return{watchFile:ge("watchFile"),watchDirectory:ge("watchDirectory")};function ge(re){return function(M,U,H,q,R,K){var I;return e.matchesExclude(M,re==="watchFile"?q==null?void 0:q.excludeFiles:q==null?void 0:q.excludeDirectories,Pe(),((I=k.getCurrentDirectory)===null||I===void 0?void 0:I.call(k))||"")?z(M,H,q,R,K):F[re].call(void 0,M,U,H,q,R,K)}}function Pe(){return typeof k.useCaseSensitiveFileNames=="boolean"?k.useCaseSensitiveFileNames:k.useCaseSensitiveFileNames()}function fe(re,M,U,H,q){return A("ExcludeWatcher:: Added:: ".concat(w(re,M,U,H,q,y))),{close:function(){return A("ExcludeWatcher:: Close:: ".concat(w(re,M,U,H,q,y)))}}}function _e(re,M,U,H,q,R){A("FileWatcher:: Added:: ".concat(w(re,U,H,q,R,y)));var K=B.watchFile(re,M,U,H,q,R);return{close:function(){A("FileWatcher:: Close:: ".concat(w(re,U,H,q,R,y))),K.close()}}}function ne(re,M,U,H,q,R){var K="DirectoryWatcher:: Added:: ".concat(w(re,U,H,q,R,y));A(K);var I=e.timestamp(),he=B.watchDirectory(re,M,U,H,q,R),le=e.timestamp()-I;return A("Elapsed:: ".concat(le,"ms ").concat(K)),{close:function(){var ee="DirectoryWatcher:: Close:: ".concat(w(re,U,H,q,R,y));A(ee);var J=e.timestamp();he.close();var de=e.timestamp()-J;A("Elapsed:: ".concat(de,"ms ").concat(ee))}}}function oe(re){return function(M,U,H,q,R,K){return C[re].call(void 0,M,function(){for(var I=[],he=0;he<arguments.length;he++)I[he]=arguments[he];var le="".concat(re==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(I[0]," ").concat(I[1]!==void 0?I[1]:"",":: ").concat(w(M,H,q,R,K,y));A(le);var ee=e.timestamp();U.call.apply(U,t([void 0],I,!1));var J=e.timestamp()-ee;A("Elapsed:: ".concat(J,"ms ").concat(le))},H,q,R,K)}}function w(re,M,U,H,q,R){return"WatchInfo: ".concat(re," ").concat(M," ").concat(JSON.stringify(U)," ").concat(R?R(H,q):q===void 0?H:"".concat(H," ").concat(q))}}e.getWatchFactory=Y;function Z(k){var X=k==null?void 0:k.fallbackPolling;return{watchFile:X!==void 0?X:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=Z;function ce(k){k.watcher.close()}e.closeFileWatcherOf=ce})(h||(h={}));var h;(function(e){function c(we,nr,tr){return tr===void 0&&(tr="tsconfig.json"),e.forEachAncestorDirectory(we,function(me){var He=e.combinePaths(me,tr);return nr(He)?He:void 0})}e.findConfigFile=c;function P(we,nr){var tr=e.getDirectoryPath(nr),me=e.isRootedDiskPath(we)?we:e.combinePaths(tr,we);return e.normalizePath(me)}e.resolveTripleslashReference=P;function T(we,nr,tr){var me,He=e.forEach(we,function(rr){var je=e.getNormalizedPathComponents(rr,nr);if(je.pop(),!me){me=je;return}for(var Ce=Math.min(me.length,je.length),Ae=0;Ae<Ce;Ae++)if(tr(me[Ae])!==tr(je[Ae])){if(Ae===0)return!0;me.length=Ae;break}je.length<me.length&&(me.length=je.length)});return He?"":me?e.getPathFromPathComponents(me):nr}e.computeCommonSourceDirectoryOfFilenames=T;function s(we,nr){return D(we,nr)}e.createCompilerHost=s;function D(we,nr,tr){tr===void 0&&(tr=e.sys);var me=new e.Map,He=e.createGetCanonicalFileName(tr.useCaseSensitiveFileNames);function rr(ue,Ue,Je){var lr;try{e.performance.mark("beforeIORead"),lr=L.readFile(ue),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(mr){Je&&Je(mr.message),lr=""}return lr!==void 0?e.createSourceFile(ue,lr,Ue,nr):void 0}function je(ue){return me.has(ue)?!0:(L.directoryExists||tr.directoryExists)(ue)?(me.set(ue,!0),!0):!1}function Ce(ue,Ue,Je,lr){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(ue,Ue,Je,function(mr,Hr,wr){return tr.writeFile(mr,Hr,wr)},function(mr){return(L.createDirectory||tr.createDirectory)(mr)},function(mr){return je(mr)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(mr){lr&&lr(mr.message)}}function Ae(){return e.getDirectoryPath(e.normalizePath(tr.getExecutingFilePath()))}var qe=e.getNewLineCharacter(we,function(){return tr.newLine}),xe=tr.realpath&&function(ue){return tr.realpath(ue)},L={getSourceFile:rr,getDefaultLibLocation:Ae,getDefaultLibFileName:function(ue){return e.combinePaths(Ae(),e.getDefaultLibFileName(ue))},writeFile:Ce,getCurrentDirectory:e.memoize(function(){return tr.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return tr.useCaseSensitiveFileNames},getCanonicalFileName:He,getNewLine:function(){return qe},fileExists:function(ue){return tr.fileExists(ue)},readFile:function(ue){return tr.readFile(ue)},trace:function(ue){return tr.write(ue+qe)},directoryExists:function(ue){return tr.directoryExists(ue)},getEnvironmentVariable:function(ue){return tr.getEnvironmentVariable?tr.getEnvironmentVariable(ue):""},getDirectories:function(ue){return tr.getDirectories(ue)},realpath:xe,readDirectory:function(ue,Ue,Je,lr,mr){return tr.readDirectory(ue,Ue,Je,lr,mr)},createDirectory:function(ue){return tr.createDirectory(ue)},createHash:e.maybeBind(tr,tr.createHash)};return L}e.createCompilerHostWorker=D;function O(we,nr,tr){var me=we.readFile,He=we.fileExists,rr=we.directoryExists,je=we.createDirectory,Ce=we.writeFile,Ae=new e.Map,qe=new e.Map,xe=new e.Map,L=new e.Map,ue=function(lr){var mr=nr(lr),Hr=Ae.get(mr);return Hr!==void 0?Hr!==!1?Hr:void 0:Ue(mr,lr)},Ue=function(lr,mr){var Hr=me.call(we,mr);return Ae.set(lr,Hr!==void 0?Hr:!1),Hr};we.readFile=function(lr){var mr=nr(lr),Hr=Ae.get(mr);return Hr!==void 0?Hr!==!1?Hr:void 0:!e.fileExtensionIs(lr,".json")&&!e.isBuildInfoFile(lr)?me.call(we,lr):Ue(mr,lr)};var Je=tr?function(lr,mr,Hr,wr){var Oe=nr(lr),Ze=typeof mr=="object"?mr.impliedNodeFormat:void 0,tt=L.get(Ze),ut=tt==null?void 0:tt.get(Oe);if(ut)return ut;var or=tr(lr,mr,Hr,wr);return or&&(e.isDeclarationFileName(lr)||e.fileExtensionIs(lr,".json"))&&L.set(Ze,(tt||new e.Map).set(Oe,or)),or}:void 0;return we.fileExists=function(lr){var mr=nr(lr),Hr=qe.get(mr);if(Hr!==void 0)return Hr;var wr=He.call(we,lr);return qe.set(mr,!!wr),wr},Ce&&(we.writeFile=function(lr,mr){for(var Hr=[],wr=2;wr<arguments.length;wr++)Hr[wr-2]=arguments[wr];var Oe=nr(lr);qe.delete(Oe);var Ze=Ae.get(Oe);Ze!==void 0&&Ze!==mr?(Ae.delete(Oe),L.forEach(function(tt){return tt.delete(Oe)})):Je&&L.forEach(function(tt){var ut=tt.get(Oe);ut&&ut.text!==mr&&tt.delete(Oe)}),Ce.call.apply(Ce,t([we,lr,mr],Hr,!1))}),rr&&(we.directoryExists=function(lr){var mr=nr(lr),Hr=xe.get(mr);if(Hr!==void 0)return Hr;var wr=rr.call(we,lr);return xe.set(mr,!!wr),wr},je&&(we.createDirectory=function(lr){var mr=nr(lr);xe.delete(mr),je.call(we,lr)})),{originalReadFile:me,originalFileExists:He,originalDirectoryExists:rr,originalCreateDirectory:je,originalWriteFile:Ce,getSourceFileWithCache:Je,readFileWithCache:ue}}e.changeCompilerHostLikeToUseCache=O;function W(we,nr,tr){var me;return me=e.addRange(me,we.getConfigFileParsingDiagnostics()),me=e.addRange(me,we.getOptionsDiagnostics(tr)),me=e.addRange(me,we.getSyntacticDiagnostics(nr,tr)),me=e.addRange(me,we.getGlobalDiagnostics(tr)),me=e.addRange(me,we.getSemanticDiagnostics(nr,tr)),e.getEmitDeclarations(we.getCompilerOptions())&&(me=e.addRange(me,we.getDeclarationDiagnostics(nr,tr))),e.sortAndDeduplicateDiagnostics(me||e.emptyArray)}e.getPreEmitDiagnostics=W;function E(we,nr){for(var tr="",me=0,He=we;me<He.length;me++){var rr=He[me];tr+=v(rr,nr)}return tr}e.formatDiagnostics=E;function v(we,nr){var tr="".concat(e.diagnosticCategoryName(we)," TS").concat(we.code,": ").concat(z(we.messageText,nr.getNewLine())).concat(nr.getNewLine());if(we.file){var me=e.getLineAndCharacterOfPosition(we.file,we.start),He=me.line,rr=me.character,je=we.file.fileName,Ce=e.convertToRelativePath(je,nr.getCurrentDirectory(),function(Ae){return nr.getCanonicalFileName(Ae)});return"".concat(Ce,"(").concat(He+1,",").concat(rr+1,"): ")+tr}return tr}e.formatDiagnostic=v;var S;(function(we){we.Grey="\x1B[90m",we.Red="\x1B[91m",we.Yellow="\x1B[93m",we.Blue="\x1B[94m",we.Cyan="\x1B[96m"})(S=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var te="\x1B[7m",Y=" ",Z="\x1B[0m",ce="...",k=" ",X=" ";function A(we){switch(we){case e.DiagnosticCategory.Error:return S.Red;case e.DiagnosticCategory.Warning:return S.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return S.Blue}}function y(we,nr){return nr+we+Z}e.formatColorAndReset=y;function C(we,nr,tr,me,He,rr){var je=e.getLineAndCharacterOfPosition(we,nr),Ce=je.line,Ae=je.character,qe=e.getLineAndCharacterOfPosition(we,nr+tr),xe=qe.line,L=qe.character,ue=e.getLineAndCharacterOfPosition(we,we.text.length).line,Ue=xe-Ce>=4,Je=(xe+1+"").length;Ue&&(Je=Math.max(ce.length,Je));for(var lr="",mr=Ce;mr<=xe;mr++){lr+=rr.getNewLine(),Ue&&Ce+1<mr&&mr<xe-1&&(lr+=me+y(e.padLeft(ce,Je),te)+Y+rr.getNewLine(),mr=xe-1);var Hr=e.getPositionOfLineAndCharacter(we,mr,0),wr=mr<ue?e.getPositionOfLineAndCharacter(we,mr+1,0):we.text.length,Oe=we.text.slice(Hr,wr);if(Oe=e.trimStringEnd(Oe),Oe=Oe.replace(/\t/g," "),lr+=me+y(e.padLeft(mr+1+"",Je),te)+Y,lr+=Oe+rr.getNewLine(),lr+=me+y(e.padLeft("",Je),te)+Y,lr+=He,mr===Ce){var Ze=mr===xe?L:void 0;lr+=Oe.slice(0,Ae).replace(/\S/g," "),lr+=Oe.slice(Ae,Ze).replace(/./g,"~")}else mr===xe?lr+=Oe.slice(0,L).replace(/./g,"~"):lr+=Oe.replace(/./g,"~");lr+=Z}return lr}function B(we,nr,tr,me){me===void 0&&(me=y);var He=e.getLineAndCharacterOfPosition(we,nr),rr=He.line,je=He.character,Ce=tr?e.convertToRelativePath(we.fileName,tr.getCurrentDirectory(),function(qe){return tr.getCanonicalFileName(qe)}):we.fileName,Ae="";return Ae+=me(Ce,S.Cyan),Ae+=":",Ae+=me("".concat(rr+1),S.Yellow),Ae+=":",Ae+=me("".concat(je+1),S.Yellow),Ae}e.formatLocation=B;function F(we,nr){for(var tr="",me=0,He=we;me<He.length;me++){var rr=He[me];if(rr.file){var je=rr.file,Ce=rr.start;tr+=B(je,Ce,nr),tr+=" - "}if(tr+=y(e.diagnosticCategoryName(rr),A(rr.category)),tr+=y(" TS".concat(rr.code,": "),S.Grey),tr+=z(rr.messageText,nr.getNewLine()),rr.file&&(tr+=nr.getNewLine(),tr+=C(rr.file,rr.start,rr.length,"",A(rr.category),nr)),rr.relatedInformation){tr+=nr.getNewLine();for(var Ae=0,qe=rr.relatedInformation;Ae<qe.length;Ae++){var xe=qe[Ae],je=xe.file,Ce=xe.start,L=xe.length,ue=xe.messageText;je&&(tr+=nr.getNewLine(),tr+=k+B(je,Ce,nr),tr+=C(je,Ce,L,X,S.Cyan,nr)),tr+=nr.getNewLine(),tr+=X+z(ue,nr.getNewLine())}}tr+=nr.getNewLine()}return tr}e.formatDiagnosticsWithColorAndContext=F;function z(we,nr,tr){if(tr===void 0&&(tr=0),e.isString(we))return we;if(we===void 0)return"";var me="";if(tr){me+=nr;for(var He=0;He<tr;He++)me+=" "}if(me+=we.messageText,tr++,we.next)for(var rr=0,je=we.next;rr<je.length;rr++){var Ce=je[rr];me+=z(Ce,nr,tr)}return me}e.flattenDiagnosticMessageText=z;function ge(we,nr,tr,me,He){if(we.length===0)return[];for(var rr=[],je=new e.Map,Ce=0,Ae=we;Ce<Ae.length;Ce++){var qe=Ae[Ce],xe=void 0,L=Pe(qe,me),ue=e.isString(qe)?qe:qe.fileName.toLowerCase(),Ue=L!==void 0?"".concat(L,"|").concat(ue):ue;je.has(Ue)?xe=je.get(Ue):je.set(Ue,xe=He(ue,nr,tr,L)),rr.push(xe)}return rr}e.loadWithTypeDirectiveCache=ge;function Pe(we,nr){return(e.isString(we)?nr:we.resolutionMode)||nr}e.getModeForFileReference=Pe;function fe(we,nr){if(we.impliedNodeFormat!==void 0)return ne(we,Ne(we,nr))}e.getModeForResolutionAtIndex=fe;function _e(we){var nr;return e.isExportDeclaration(we)?we.isTypeOnly:!!(!((nr=we.importClause)===null||nr===void 0)&&nr.isTypeOnly)}e.isExclusivelyTypeOnlyImportOrExport=_e;function ne(we,nr){var tr,me;if(we.impliedNodeFormat!==void 0){if(e.isImportDeclaration(nr.parent)||e.isExportDeclaration(nr.parent)){var He=_e(nr.parent);if(He){var rr=oe(nr.parent.assertClause);if(rr)return rr}}if(nr.parent.parent&&e.isImportTypeNode(nr.parent.parent)){var rr=oe((tr=nr.parent.parent.assertions)===null||tr===void 0?void 0:tr.assertClause);if(rr)return rr}if(we.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(nr.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var je=(me=e.walkUpParenthesizedExpressions(nr.parent))===null||me===void 0?void 0:me.parent;return je&&e.isImportEqualsDeclaration(je)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}e.getModeForUsageLocation=ne;function oe(we,nr){if(we){if(e.length(we.elements)!==1){nr==null||nr(we,e.Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}var tr=we.elements[0];if(e.isStringLiteralLike(tr.name)){if(tr.name.text!=="resolution-mode"){nr==null||nr(tr.name,e.Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(e.isStringLiteralLike(tr.value)){if(tr.value.text!=="import"&&tr.value.text!=="require"){nr==null||nr(tr.value,e.Diagnostics.resolution_mode_should_be_either_require_or_import);return}return tr.value.text==="import"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}}}}e.getResolutionModeOverrideForClause=oe;function w(we,nr,tr,me,He){if(we.length===0)return[];for(var rr=[],je=new e.Map,Ce=0,Ae=0,qe=we;Ae<qe.length;Ae++){var xe=qe[Ae],L=void 0,ue=fe(nr,Ce);Ce++;var Ue=ue!==void 0?"".concat(ue,"|").concat(xe):xe;je.has(Ue)?L=je.get(Ue):je.set(Ue,L=He(xe,ue,tr,me)),rr.push(L)}return rr}e.loadWithModeAwareCache=w;function re(we,nr){return M(void 0,we,function(tr,me){return tr&&nr(tr,me)})}e.forEachResolvedProjectReference=re;function M(we,nr,tr,me){var He;return rr(we,nr,void 0);function rr(je,Ce,Ae){if(me){var qe=me(je,Ae);if(qe)return qe}return e.forEach(Ce,function(xe,L){if(!(xe&&(He!=null&&He.has(xe.sourceFile.path)))){var ue=tr(xe,Ae,L);return ue||!xe?ue:((He||(He=new e.Set)).add(xe.sourceFile.path),rr(xe.commandLine.projectReferences,xe.references,xe))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function U(we){switch(we==null?void 0:we.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=U;function H(we){return we.pos!==void 0}e.isReferenceFileLocation=H;function q(we,nr){var tr,me,He,rr,je,Ce,Ae,qe=e.Debug.checkDefined(we(nr.file)),xe=nr.kind,L=nr.index,ue,Ue,Je,lr;switch(xe){case e.FileIncludeKind.Import:var mr=Ne(qe,L);if(Je=(je=(rr=qe.resolvedModules)===null||rr===void 0?void 0:rr.get(mr.text,fe(qe,L)))===null||je===void 0?void 0:je.packageId,mr.pos===-1)return{file:qe,packageId:Je,text:mr.text};ue=e.skipTrivia(qe.text,mr.pos),Ue=mr.end;break;case e.FileIncludeKind.ReferenceFile:tr=qe.referencedFiles[L],ue=tr.pos,Ue=tr.end;break;case e.FileIncludeKind.TypeReferenceDirective:me=qe.typeReferenceDirectives[L],ue=me.pos,Ue=me.end,lr=me.resolutionMode,Je=(Ae=(Ce=qe.resolvedTypeReferenceDirectiveNames)===null||Ce===void 0?void 0:Ce.get(e.toFileNameLowerCase(qe.typeReferenceDirectives[L].fileName),lr||qe.impliedNodeFormat))===null||Ae===void 0?void 0:Ae.packageId;break;case e.FileIncludeKind.LibReferenceDirective:He=qe.libReferenceDirectives[L],ue=He.pos,Ue=He.end;break;default:return e.Debug.assertNever(xe)}return{file:qe,pos:ue,end:Ue,packageId:Je}}e.getReferencedFileLocation=q;function R(we,nr,tr,me,He,rr,je,Ce,Ae){if(!we||je!=null&&je()||!e.arrayIsEqualTo(we.getRootFileNames(),nr))return!1;var qe;if(!e.arrayIsEqualTo(we.getProjectReferences(),Ae,Ue)||we.getSourceFiles().some(L)||we.getMissingFilePaths().some(He))return!1;var xe=we.getCompilerOptions();if(!e.compareDataObjects(xe,tr))return!1;if(xe.configFile&&tr.configFile)return xe.configFile.text===tr.configFile.text;return!0;function L(lr){return!ue(lr)||rr(lr.path)}function ue(lr){return lr.version===me(lr.resolvedPath,lr.fileName)}function Ue(lr,mr,Hr){return e.projectReferenceIsEqualTo(lr,mr)&&Je(we.getResolvedProjectReferences()[Hr],lr)}function Je(lr,mr){if(lr){if(e.contains(qe,lr))return!0;var Hr=G(mr),wr=Ce(Hr);return!wr||lr.commandLine.options.configFile!==wr.options.configFile||!e.arrayIsEqualTo(lr.commandLine.fileNames,wr.fileNames)?!1:((qe||(qe=[])).push(lr),!e.forEach(lr.references,function(Ze,tt){return!Je(Ze,lr.commandLine.projectReferences[tt])}))}var Oe=G(mr);return!Ce(Oe)}}e.isProgramUptoDate=R;function K(we){return we.options.configFile?t(t([],we.options.configFile.parseDiagnostics,!0),we.errors,!0):we.errors}e.getConfigFileParsingDiagnostics=K;function I(we,nr,tr,me){var He=he(we,nr,tr,me);return typeof He=="object"?He.impliedNodeFormat:He}e.getImpliedNodeFormatForFile=I;function he(we,nr,tr,me){switch(e.getEmitModuleResolutionKind(me)){case e.ModuleResolutionKind.Node16:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(we,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(we,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(we,[".d.ts",".ts",".tsx",".js",".jsx"])?He():void 0;default:return}function He(){var rr=e.getTemporaryModuleResolutionState(nr,tr,me),je=[];rr.failedLookupLocations=je,rr.affectingLocations=je;var Ce=e.getPackageScopeForPath(we,rr),Ae=(Ce==null?void 0:Ce.contents.packageJsonContent.type)==="module"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;return{impliedNodeFormat:Ae,packageJsonLocations:je,packageJsonScope:Ce}}}e.getImpliedNodeFormatForFileWorker=he,e.plainJSErrors=new e.Set([e.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,e.Diagnostics.A_module_cannot_have_multiple_default_exports.code,e.Diagnostics.Another_export_default_is_here.code,e.Diagnostics.The_first_export_default_is_here.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,e.Diagnostics.constructor_is_a_reserved_word.code,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Invalid_use_of_0_in_strict_mode.code,e.Diagnostics.A_label_is_not_allowed_here.code,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,e.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,e.Diagnostics.A_get_accessor_cannot_have_parameters.code,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,e.Diagnostics.A_rest_element_cannot_have_a_property_name.code,e.Diagnostics.A_rest_element_cannot_have_an_initializer.code,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_export_declaration_cannot_have_modifiers.code,e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_import_declaration_cannot_have_modifiers.code,e.Diagnostics.An_object_member_cannot_be_declared_optional.code,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,e.Diagnostics.Classes_can_only_extend_a_single_class.code,e.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,e.Diagnostics.Duplicate_label_0.code,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,e.Diagnostics.Jump_target_cannot_cross_function_boundary.code,e.Diagnostics.Line_terminator_not_permitted_before_arrow.code,e.Diagnostics.Modifiers_cannot_appear_here.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,e.Diagnostics.Trailing_comma_not_allowed.code,e.Diagnostics.Variable_declaration_list_cannot_be_empty.code,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,e.Diagnostics._0_expected.code,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,e.Diagnostics._0_list_cannot_be_empty.code,e.Diagnostics._0_modifier_already_seen.code,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,e.Diagnostics._0_modifier_cannot_be_used_here.code,e.Diagnostics._0_modifier_must_precede_1_modifier.code,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.const_declarations_must_be_initialized.code,e.Diagnostics.extends_clause_already_seen.code,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,e.Diagnostics.Class_constructor_may_not_be_a_generator.code,e.Diagnostics.Class_constructor_may_not_be_an_accessor.code,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]);function le(we,nr){return we?e.optionsHaveChanges(we.getCompilerOptions(),nr,e.sourceFileAffectingCompilerOptions):!1}function ee(we,nr,tr,me,He){return{rootNames:we,options:nr,host:tr,oldProgram:me,configFileParsingDiagnostics:He}}function J(we,nr,tr,me,He){var rr,je,Ce,Ae,qe=e.isArray(we)?ee(we,nr,tr,me,He):we,xe=qe.rootNames,L=qe.options,ue=qe.configFileParsingDiagnostics,Ue=qe.projectReferences,Je=qe.oldProgram,lr,mr,Hr,wr,Oe,Ze,tt,ut=new e.Map,or=e.createMultiMap(),qr={},Rr={},zr=e.createModeAwareCache(),Fr,_t=typeof L.maxNodeModuleJsDepth=="number"?L.maxNodeModuleJsDepth:0,Ct=0,yt=new e.Map,Fe=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:L.configFilePath,rootDir:L.rootDir},!0),e.performance.mark("beforeProgram");var vr=qe.host||s(L),Le=b(vr),cr=L.noLib,$r=e.memoize(function(){return vr.getDefaultLibFileName(L)}),Re=vr.getDefaultLibLocation?vr.getDefaultLibLocation():e.getDirectoryPath($r()),xr=e.createDiagnosticCollection(),Br=vr.getCurrentDirectory(),Qr=e.getSupportedExtensions(L),ct=e.getSupportedExtensionsWithJsonIfResolveJsonModule(L,Qr),ft=new e.Map,Dt,Me,Ke,Vr,Yr=vr.hasInvalidatedResolutions||e.returnFalse;if(vr.resolveModuleNames)Vr=function(Zr,Xr,$t,Dn,Mn){return vr.resolveModuleNames(e.Debug.checkEachDefined(Zr),$t,Dn,Mn,L,Xr).map(function(zn){if(!zn||zn.extension!==void 0)return zn;var mi=e.clone(zn);return mi.extension=e.extensionFromPath(zn.resolvedFileName),mi})},Me=(rr=vr.getModuleResolutionCache)===null||rr===void 0?void 0:rr.call(vr);else{Me=e.createModuleResolutionCache(Br,ta,L);var Nt=function(Zr,Xr,$t,Dn){return e.resolveModuleName(Zr,$t,L,vr,Me,Dn,Xr).resolvedModule};Vr=function(Zr,Xr,$t,Dn,Mn){return w(e.Debug.checkEachDefined(Zr),Xr,$t,Mn,Nt)}}var Wt;if(vr.resolveTypeReferenceDirectives)Wt=function(Zr,Xr,$t,Dn){return vr.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(Zr),Xr,$t,L,Dn)};else{Ke=e.createTypeReferenceDirectiveResolutionCache(Br,ta,void 0,Me==null?void 0:Me.getPackageJsonInfoCache());var sn=function(Zr,Xr,$t,Dn){return e.resolveTypeReferenceDirective(Zr,Xr,L,vr,$t,Ke,Dn).resolvedTypeReferenceDirective};Wt=function(Zr,Xr,$t,Dn){return ge(e.Debug.checkEachDefined(Zr),Xr,$t,Dn,sn)}}var en=new e.Map,Ir=new e.Map,Jr=e.createMultiMap(),ye=!1,Ie=new e.Map,We,dr=vr.useCaseSensitiveFileNames()?new e.Map:void 0,ar,Sr,Or,Ge,ur=!!(!((je=vr.useSourceOfProjectReferenceRedirect)===null||je===void 0)&&je.call(vr))&&!L.disableSourceOfProjectReferenceRedirect,Lr=de({compilerHost:vr,getSymlinkCache:Xl,useSourceOfProjectReferenceRedirect:ur,toPath:et,getResolvedProjectReferences:ma,getSourceOfProjectReferenceRedirect:be,forEachResolvedProjectReference:Xt}),Ar=Lr.onProgramCreateComplete,rt=Lr.fileExists,Et=Lr.directoryExists,St=vr.readFile.bind(vr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Je});var Pt=le(Je,L);e.tracing===null||e.tracing===void 0||e.tracing.pop();var pt;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),pt=Wi(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),pt!==2){lr=[],mr=[],Ue&&(ar||(ar=Ue.map(er)),xe.length&&(ar==null||ar.forEach(function(Zr,Xr){if(Zr){var $t=e.outFile(Zr.commandLine.options);if(ur){if($t||e.getEmitModuleKind(Zr.commandLine.options)===e.ModuleKind.None)for(var Dn=0,Mn=Zr.commandLine.fileNames;Dn<Mn.length;Dn++){var zn=Mn[Dn];ds(zn,{kind:e.FileIncludeKind.SourceFromProjectReference,index:Xr})}}else if($t)ds(e.changeExtension($t,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:Xr});else if(e.getEmitModuleKind(Zr.commandLine.options)===e.ModuleKind.None)for(var mi=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Zr.commandLine,!vr.useCaseSensitiveFileNames())}),Qn=0,Xi=Zr.commandLine.fileNames;Qn<Xi.length;Qn++){var zn=Xi[Qn];!e.isDeclarationFileName(zn)&&!e.fileExtensionIs(zn,".json")&&ds(e.getOutputDeclarationFileName(zn,Zr.commandLine,!vr.useCaseSensitiveFileNames(),mi),{kind:e.FileIncludeKind.OutputFromProjectReference,index:Xr})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:xe.length}),e.forEach(xe,function(Zr,Xr){return Cn(Zr,!1,!1,{kind:e.FileIncludeKind.RootFile,index:Xr})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var Ft=xe.length?e.getAutomaticTypeDirectiveNames(L,vr):e.emptyArray;if(Ft.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:Ft.length});for(var ht=L.configFilePath?e.getDirectoryPath(L.configFilePath):vr.getCurrentDirectory(),Yt=e.combinePaths(ht,e.inferredTypesContainingFile),un=Zt(Ft,Yt),wn=0;wn<Ft.length;wn++)Yn(Ft[wn],void 0,un[wn],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Ft[wn],packageId:(Ce=un[wn])===null||Ce===void 0?void 0:Ce.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(xe.length&&!cr){var Bn=$r();!L.lib&&Bn?Cn(Bn,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(L.lib,function(Zr,Xr){Cn(vi(Zr),!0,!1,{kind:e.FileIncludeKind.LibFile,index:Xr})})}We=e.arrayFrom(e.mapDefinedIterator(Ie.entries(),function(Zr){var Xr=Zr[0],$t=Zr[1];return $t===void 0?Xr:void 0})),Hr=e.stableSort(lr,kt).concat(mr),lr=void 0,mr=void 0}if(e.Debug.assert(!!We),Je&&vr.onReleaseOldSourceFile){for(var yn=Je.getSourceFiles(),Tn=0,An=yn;Tn<An.length;Tn++){var ii=An[Tn],Xe=En(ii.resolvedPath);(Pt||!Xe||Xe.impliedNodeFormat!==ii.impliedNodeFormat||ii.resolvedPath===ii.path&&Xe.resolvedPath!==ii.path)&&vr.onReleaseOldSourceFile(ii,Je.getCompilerOptions(),!!En(ii.path))}vr.getParsedCommandLine||Je.forEachResolvedProjectReference(function(Zr){At(Zr.sourceFile.path)||vr.onReleaseOldSourceFile(Zr.sourceFile,Je.getCompilerOptions(),!1)})}Je&&vr.onReleaseParsedCommandLine&&M(Je.getProjectReferences(),Je.getResolvedProjectReferences(),function(Zr,Xr,$t){var Dn=(Xr==null?void 0:Xr.commandLine.projectReferences[$t])||Je.getProjectReferences()[$t],Mn=G(Dn);Sr!=null&&Sr.has(et(Mn))||vr.onReleaseParsedCommandLine(Mn,Zr,Je.getCompilerOptions())}),Ke=void 0,Je=void 0;var hr={getRootFileNames:function(){return xe},getSourceFile:ts,getSourceFileByPath:En,getSourceFiles:function(){return Hr},getMissingFilePaths:function(){return We},getModuleResolutionCache:function(){return Me},getFilesByNameMap:function(){return Ie},getCompilerOptions:function(){return L},getSyntacticDiagnostics:bo,getOptionsDiagnostics:Wr,getGlobalDiagnostics:ln,getSemanticDiagnostics:Oo,getCachedSemanticDiagnostics:Ws,getSuggestionDiagnostics:ro,getDeclarationDiagnostics:gs,getBindAndCheckDiagnostics:Co,getProgramDiagnostics:qs,getTypeChecker:Ha,getClassifiableNames:xn,getCommonSourceDirectory:It,emit:Do,getCurrentDirectory:function(){return Br},getNodeCount:function(){return Ha().getNodeCount()},getIdentifierCount:function(){return Ha().getIdentifierCount()},getSymbolCount:function(){return Ha().getSymbolCount()},getTypeCount:function(){return Ha().getTypeCount()},getInstantiationCount:function(){return Ha().getInstantiationCount()},getRelationCacheSizes:function(){return Ha().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return Fr},getResolvedTypeReferenceDirectives:function(){return zr},isSourceFileFromExternalLibrary:zo,isSourceFileDefaultLibrary:_a,getSourceFileFromReference:ws,getLibFileFromReference:$a,sourceFileToPackageName:Ir,redirectTargetsMap:Jr,usesUriStyleNodeCoreModules:ye,isEmittedFile:pf,getConfigFileParsingDiagnostics:kn,getResolvedModuleWithFailedLookupLocationsFromCache:$e,getProjectReferences:ra,getResolvedProjectReferences:ma,getProjectReferenceRedirect:tc,getResolvedProjectReferenceToRedirect:nc,getResolvedProjectReferenceByPath:At,forEachResolvedProjectReference:Xt,isSourceOfProjectReferenceRedirect:Ur,emitBuildInfo:Ri,fileExists:rt,readFile:St,directoryExists:Et,getSymlinkCache:Xl,realpath:(Ae=vr.realpath)===null||Ae===void 0?void 0:Ae.bind(vr),useCaseSensitiveFileNames:function(){return vr.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return or},structureIsReused:pt,writeFile:fn};return Ar(),Fr==null||Fr.forEach(function(Zr){switch(Zr.kind){case 1:return xr.add(Mr(Zr.file&&En(Zr.file),Zr.fileProcessingReason,Zr.diagnostic,Zr.args||e.emptyArray));case 0:var Xr=q(En,Zr.reason),$t=Xr.file,Dn=Xr.pos,Mn=Xr.end;return xr.add(e.createFileDiagnostic.apply(void 0,t([$t,e.Debug.checkDefined(Dn),e.Debug.checkDefined(Mn)-Dn,Zr.diagnostic],Zr.args||e.emptyArray,!1)));default:e.Debug.assertNever(Zr)}}),Bt(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),hr;function at(Zr){if(Zr)for(var Xr=0,$t=Zr;Xr<$t.length;Xr++){var Dn=$t[Xr];xr.add(Dn)}}function Qe(Zr,Xr){var $t;if(Me)for(var Dn=e.getNormalizedAbsolutePath(Xr.originalFileName,Br),Mn=e.isString(Xr)?void 0:Xr.impliedNodeFormat,zn=e.getDirectoryPath(Dn),mi=Tt(Xr),Qn=0,Xi=0,Va=Zr;Xi<Va.length;Xi++){var ga=Va[Xi],Yi=typeof ga=="string"?fe(Xr,Qn):Pe(ga,Mn),so=typeof ga=="string"?ga:ga.fileName;if(Qn++,!e.isExternalModuleNameRelative(so)){var da=($t=Me.getOrCreateCacheForModuleName(so,Yi,mi).get(zn))===null||$t===void 0?void 0:$t.resolutionDiagnostics;at(da)}}}function Qt(Zr,Xr,$t){if(!Zr.length)return e.emptyArray;var Dn=e.getNormalizedAbsolutePath(Xr.originalFileName,Br),Mn=Tt(Xr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:Dn}),e.performance.mark("beforeResolveModule");var zn=Vr(Zr,Xr,Dn,$t,Mn);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Qe(Zr,Xr),zn}function Zt(Zr,Xr){if(!Zr.length)return[];var $t=e.isString(Xr)?Xr:e.getNormalizedAbsolutePath(Xr.originalFileName,Br),Dn=e.isString(Xr)?void 0:Tt(Xr),Mn=e.isString(Xr)?void 0:Xr.impliedNodeFormat;e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:$t}),e.performance.mark("beforeResolveTypeReference");var zn=Wt(Zr,$t,Dn,Mn);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),zn}function Tt(Zr){var Xr=nc(Zr.originalFileName);if(Xr||!e.isDeclarationFileName(Zr.originalFileName))return Xr;var $t=gt(Zr.path);if($t)return $t;if(!(!vr.realpath||!L.preserveSymlinks||!e.stringContains(Zr.originalFileName,e.nodeModulesPathPart))){var Dn=et(vr.realpath(Zr.originalFileName));return Dn===Zr.path?void 0:gt(Dn)}}function gt(Zr){var Xr=be(Zr);if(e.isString(Xr))return nc(Xr);if(Xr)return Xt(function($t){var Dn=e.outFile($t.commandLine.options);if(Dn)return et(Dn)===Zr?$t:void 0})}function kt(Zr,Xr){return e.compareValues(Lt(Zr),Lt(Xr))}function Lt(Zr){if(e.containsPath(Re,Zr.fileName,!1)){var Xr=e.getBaseFileName(Zr.fileName);if(Xr==="lib.d.ts"||Xr==="lib.es6.d.ts")return 0;var $t=e.removeSuffix(e.removePrefix(Xr,"lib."),".d.ts"),Dn=e.libs.indexOf($t);if(Dn!==-1)return Dn+1}return e.libs.length+2}function $e(Zr,Xr,$t){return Me&&e.resolveModuleNameFromCache(Zr,Xr,Me,$t)}function et(Zr){return e.toPath(Zr,Br,ta)}function It(){if(Oe===void 0){var Zr=e.filter(Hr,function(Xr){return e.sourceFileMayBeEmitted(Xr,hr)});Oe=e.getCommonSourceDirectory(L,function(){return e.mapDefined(Zr,function(Xr){return Xr.isDeclarationFile?void 0:Xr.fileName})},Br,ta,function(Xr){return oo(Zr,Xr)})}return Oe}function xn(){var Zr;if(!tt){Ha(),tt=new e.Set;for(var Xr=0,$t=Hr;Xr<$t.length;Xr++){var Dn=$t[Xr];(Zr=Dn.classifiableNames)===null||Zr===void 0||Zr.forEach(function(Mn){return tt.add(Mn)})}}return tt}function pi(Zr,Xr){if(pt===0&&!Xr.ambientModuleNames.length)return Qt(Zr,Xr,void 0);var $t=Je&&Je.getSourceFile(Xr.fileName);if($t!==Xr&&Xr.resolvedModules){for(var Dn=[],Mn=0,zn=0,mi=Zr;zn<mi.length;zn++){var Qn=mi[zn],Xi=Xr.resolvedModules.get(Qn,fe(Xr,Mn));Mn++,Dn.push(Xi)}return Dn}for(var Va,ga,Yi,so={},Mn=0;Mn<Zr.length;Mn++){var Qn=Zr[Mn];if(Xr===$t&&!Yr($t.path)){var da=e.getResolvedModule($t,Qn,fe($t,Mn));if(da){e.isTraceEnabled(L,vr)&&e.trace(vr,da.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Qn,e.getNormalizedAbsolutePath(Xr.originalFileName,Br),da.resolvedFileName,da.packageId&&e.packageIdToString(da.packageId)),(ga||(ga=new Array(Zr.length)))[Mn]=da,(Yi||(Yi=[])).push(Qn);continue}}var Po=!1;e.contains(Xr.ambientModuleNames,Qn)?(Po=!0,e.isTraceEnabled(L,vr)&&e.trace(vr,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Qn,e.getNormalizedAbsolutePath(Xr.originalFileName,Br))):Po=ya(Qn,Mn),Po?(ga||(ga=new Array(Zr.length)))[Mn]=so:(Va||(Va=[])).push(Qn)}var Uo=Va&&Va.length?Qt(Va,Xr,Yi):e.emptyArray;if(!ga)return e.Debug.assert(Uo.length===Zr.length),Uo;for(var Qs=0,Mn=0;Mn<ga.length;Mn++)ga[Mn]?ga[Mn]===so&&(ga[Mn]=void 0):(ga[Mn]=Uo[Qs],Qs++);return e.Debug.assert(Qs===Uo.length),ga;function ya(Ee,Dr){if(Dr>=e.length($t==null?void 0:$t.imports)+e.length($t==null?void 0:$t.moduleAugmentations))return!1;var Nr=e.getResolvedModule($t,Ee,$t&&fe($t,Dr)),Mt=Nr&&Je.getSourceFile(Nr.resolvedFileName);if(Nr&&Mt)return!1;var In=ut.get(Ee);return In?(e.isTraceEnabled(L,vr)&&e.trace(vr,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Ee,In),!0):!1}}function ai(){return!M(Je.getProjectReferences(),Je.getResolvedProjectReferences(),function(Zr,Xr,$t){var Dn=(Xr?Xr.commandLine.projectReferences:Ue)[$t],Mn=er(Dn);return Zr?!Mn||Mn.sourceFile!==Zr.sourceFile||!e.arrayIsEqualTo(Zr.commandLine.fileNames,Mn.commandLine.fileNames):Mn!==void 0},function(Zr,Xr){var $t=Xr?At(Xr.sourceFile.path).commandLine.projectReferences:Ue;return!e.arrayIsEqualTo(Zr,$t,e.projectReferenceIsEqualTo)})}function Wi(){var Zr,Xr;if(!Je)return 0;var $t=Je.getCompilerOptions();if(e.changesAffectModuleResolution($t,L))return 0;var Dn=Je.getRootFileNames();if(!e.arrayIsEqualTo(Dn,xe)||!ai())return 0;Ue&&(ar=Ue.map(er));var Mn=[],zn=[];if(pt=2,Je.getMissingFilePaths().some(function(pc){return vr.fileExists(pc)}))return 0;var mi=Je.getSourceFiles(),Qn;(function(pc){pc[pc.Exists=0]="Exists",pc[pc.Modified=1]="Modified"})(Qn||(Qn={}));for(var Xi=new e.Map,Va=0,ga=mi;Va<ga.length;Va++){var Yi=ga[Va],so=$c(Yi.fileName,Me,vr,L),da=vr.getSourceFileByPath?vr.getSourceFileByPath(Yi.fileName,Yi.resolvedPath,so,void 0,Pt||so.impliedNodeFormat!==Yi.impliedNodeFormat):vr.getSourceFile(Yi.fileName,so,void 0,Pt||so.impliedNodeFormat!==Yi.impliedNodeFormat);if(!da)return 0;da.packageJsonLocations=!((Zr=so.packageJsonLocations)===null||Zr===void 0)&&Zr.length?so.packageJsonLocations:void 0,da.packageJsonScope=so.packageJsonScope,e.Debug.assert(!da.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var Po=void 0;if(Yi.redirectInfo){if(da!==Yi.redirectInfo.unredirected)return 0;Po=!1,da=Yi}else if(Je.redirectTargetsMap.has(Yi.path)){if(da!==Yi)return 0;Po=!1}else Po=da!==Yi;da.path=Yi.path,da.originalFileName=Yi.originalFileName,da.resolvedPath=Yi.resolvedPath,da.fileName=Yi.fileName;var Uo=Je.sourceFileToPackageName.get(Yi.path);if(Uo!==void 0){var Qs=Xi.get(Uo),ya=Po?1:0;if(Qs!==void 0&&ya===1||Qs===1)return 0;Xi.set(Uo,ya)}Po?(Yi.impliedNodeFormat!==da.impliedNodeFormat?pt=1:e.arrayIsEqualTo(Yi.libReferenceDirectives,da.libReferenceDirectives,_i)?Yi.hasNoDefaultLib!==da.hasNoDefaultLib?pt=1:e.arrayIsEqualTo(Yi.referencedFiles,da.referencedFiles,_i)?(Ia(da),e.arrayIsEqualTo(Yi.imports,da.imports,qi)&&e.arrayIsEqualTo(Yi.moduleAugmentations,da.moduleAugmentations,qi)?(Yi.flags&6291456)!==(da.flags&6291456)?pt=1:e.arrayIsEqualTo(Yi.typeReferenceDirectives,da.typeReferenceDirectives,_i)||(pt=1):pt=1):pt=1:pt=1,zn.push({oldFile:Yi,newFile:da})):Yr(Yi.path)&&(pt=1,zn.push({oldFile:Yi,newFile:da})),Mn.push(da)}if(pt!==2)return pt;for(var Ee=zn.map(function(pc){return pc.oldFile}),Dr=0,Nr=mi;Dr<Nr.length;Dr++){var Mt=Nr[Dr];if(!e.contains(Ee,Mt))for(var In=0,Di=Mt.ambientModuleNames;In<Di.length;In++){var Pi=Di[In];ut.set(Pi,Mt.fileName)}}for(var Aa=0,co=zn;Aa<co.length;Aa++){var os=co[Aa],Yi=os.oldFile,da=os.newFile,qo=Te(da),no=pi(qo,da),uo=e.hasChangesInResolutions(qo,no,Yi.resolvedModules,Yi,e.moduleResolutionIsEqualTo);uo?(pt=1,da.resolvedModules=e.zipToModeAwareCache(da,qo,no)):da.resolvedModules=Yi.resolvedModules;var _s=da.typeReferenceDirectives,fs=Zt(_s,da),Xs=e.hasChangesInResolutions(_s,fs,Yi.resolvedTypeReferenceDirectiveNames,Yi,e.typeDirectiveIsEqualTo);Xs?(pt=1,da.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(da,_s,fs)):da.resolvedTypeReferenceDirectiveNames=Yi.resolvedTypeReferenceDirectiveNames}if(pt!==2)return pt;if(e.changesAffectingProgramStructure($t,L)||!((Xr=vr.hasChangedAutomaticTypeDirectiveNames)===null||Xr===void 0)&&Xr.call(vr))return 1;We=Je.getMissingFilePaths(),e.Debug.assert(Mn.length===Je.getSourceFiles().length);for(var bc=0,fp=Mn;bc<fp.length;bc++){var da=fp[bc];Ie.set(da.path,da)}var zp=Je.getFilesByNameMap();return zp.forEach(function(pc,vl){if(!pc){Ie.set(vl,pc);return}if(pc.path===vl){Je.isSourceFileFromExternalLibrary(pc)&&Fe.set(pc.path,!0);return}Ie.set(vl,Ie.get(pc.path))}),Hr=Mn,or=Je.getFileIncludeReasons(),Fr=Je.getFileProcessingDiagnostics(),zr=Je.getResolvedTypeReferenceDirectives(),Ir=Je.sourceFileToPackageName,Jr=Je.redirectTargetsMap,ye=Je.usesUriStyleNodeCoreModules,2}function ji(Zr){return{getPrependNodes:vn,getCanonicalFileName:ta,getCommonSourceDirectory:hr.getCommonSourceDirectory,getCompilerOptions:hr.getCompilerOptions,getCurrentDirectory:function(){return Br},getNewLine:function(){return vr.getNewLine()},getSourceFile:hr.getSourceFile,getSourceFileByPath:hr.getSourceFileByPath,getSourceFiles:hr.getSourceFiles,getLibFileFromReference:hr.getLibFileFromReference,isSourceFileFromExternalLibrary:zo,getResolvedProjectReferenceToRedirect:nc,getProjectReferenceRedirect:tc,isSourceOfProjectReferenceRedirect:Ur,getSymlinkCache:Xl,writeFile:Zr||fn,isEmitBlocked:Ka,readFile:function(Xr){return vr.readFile(Xr)},fileExists:function(Xr){var $t=et(Xr);return En($t)?!0:e.contains(We,$t)?!1:vr.fileExists(Xr)},useCaseSensitiveFileNames:function(){return vr.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return hr.getProgramBuildInfo&&hr.getProgramBuildInfo()},getSourceFileFromReference:function(Xr,$t){return hr.getSourceFileFromReference(Xr,$t)},redirectTargetsMap:Jr,getFileIncludeReasons:hr.getFileIncludeReasons,createHash:e.maybeBind(vr,vr.createHash)}}function fn(Zr,Xr,$t,Dn,Mn,zn){vr.writeFile(Zr,Xr,$t,Dn,Mn,zn)}function Ri(Zr){e.Debug.assert(!e.outFile(L)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var Xr=e.emitFiles(e.notImplementedResolver,ji(Zr),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Xr}function ma(){return ar}function ra(){return Ue}function vn(){return Q(Ue,function(Zr,Xr){var $t;return($t=ar[Xr])===null||$t===void 0?void 0:$t.commandLine},function(Zr){var Xr=et(Zr),$t=En(Xr);return $t?$t.text:Ie.has(Xr)?void 0:vr.readFile(Xr)})}function zo(Zr){return!!Fe.get(Zr.path)}function _a(Zr){if(!Zr.isDeclarationFile)return!1;if(Zr.hasNoDefaultLib)return!0;if(!L.noLib)return!1;var Xr=vr.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return L.lib?e.some(L.lib,function($t){return Xr(Zr.fileName,vi($t))}):Xr(Zr.fileName,$r())}function Ha(){return Ze||(Ze=e.createTypeChecker(hr))}function Do(Zr,Xr,$t,Dn,Mn,zn){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:Zr==null?void 0:Zr.path},!0);var mi=Ko(function(){return rs(hr,Zr,Xr,$t,Dn,Mn,zn)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),mi}function Ka(Zr){return ft.has(et(Zr))}function rs(Zr,Xr,$t,Dn,Mn,zn,mi){if(!mi){var Qn=De(Zr,Xr,$t,Dn);if(Qn)return Qn}var Xi=Ha().getEmitResolver(e.outFile(L)?void 0:Xr,Dn);e.performance.mark("beforeEmit");var Va=e.emitFiles(Xi,ji($t),Xr,e.getTransformers(L,zn,Mn),Mn,!1,mi);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),Va}function ts(Zr){return En(et(Zr))}function En(Zr){return Ie.get(Zr)||void 0}function ca(Zr,Xr,$t){return Zr?Xr(Zr,$t):e.sortAndDeduplicateDiagnostics(e.flatMap(hr.getSourceFiles(),function(Dn){return $t&&$t.throwIfCancellationRequested(),Xr(Dn,$t)}))}function bo(Zr,Xr){return ca(Zr,Ds,Xr)}function Oo(Zr,Xr){return ca(Zr,kr,Xr)}function Ws(Zr){var Xr;return Zr?(Xr=qr.perFile)===null||Xr===void 0?void 0:Xr.get(Zr.path):qr.allDiagnostics}function Co(Zr,Xr){return jr(Zr,Xr)}function qs(Zr){var Xr;if(e.skipTypeChecking(Zr,L,hr))return e.emptyArray;var $t=xr.getDiagnostics(Zr.fileName);return!((Xr=Zr.commentDirectives)===null||Xr===void 0)&&Xr.length?ka(Zr,Zr.commentDirectives,$t).diagnostics:$t}function gs(Zr,Xr){var $t=hr.getCompilerOptions();return!Zr||e.outFile($t)?Ut(Zr,Xr):ca(Zr,Er,Xr)}function Ds(Zr){return e.isSourceFileJS(Zr)?(Zr.additionalSyntacticDiagnostics||(Zr.additionalSyntacticDiagnostics=lt(Zr)),e.concatenate(Zr.additionalSyntacticDiagnostics,Zr.parseDiagnostics)):Zr.parseDiagnostics}function Ko(Zr){try{return Zr()}catch(Xr){throw Xr instanceof e.OperationCanceledException&&(Ze=void 0),Xr}}function kr(Zr,Xr){return e.concatenate(N(jr(Zr,Xr),L),qs(Zr))}function jr(Zr,Xr){return yr(Zr,Xr,qr,Nn)}function Nn(Zr,Xr){return Ko(function(){if(e.skipTypeChecking(Zr,L,hr))return e.emptyArray;var $t=Ha();e.Debug.assert(!!Zr.bindDiagnostics);var Dn=Zr.scriptKind===1||Zr.scriptKind===2,Mn=Dn&&e.isCheckJsEnabledForFile(Zr,L),zn=e.isPlainJsFile(Zr,L.checkJs),mi=!!Zr.checkJsDirective&&Zr.checkJsDirective.enabled===!1,Qn=!mi&&(Zr.scriptKind===3||Zr.scriptKind===4||Zr.scriptKind===5||zn||Mn||Zr.scriptKind===7),Xi=Qn?Zr.bindDiagnostics:e.emptyArray,Va=Qn?$t.getDiagnostics(Zr,Xr):e.emptyArray;return zn&&(Xi=e.filter(Xi,function(ga){return e.plainJSErrors.has(ga.code)}),Va=e.filter(Va,function(ga){return e.plainJSErrors.has(ga.code)})),xi(Zr,Qn&&!zn,Xi,Va,Mn?Zr.jsDocDiagnostics:void 0)})}function xi(Zr,Xr){for(var $t,Dn=[],Mn=2;Mn<arguments.length;Mn++)Dn[Mn-2]=arguments[Mn];var zn=e.flatten(Dn);if(!Xr||!(!(($t=Zr.commentDirectives)===null||$t===void 0)&&$t.length))return zn;for(var mi=ka(Zr,Zr.commentDirectives,zn),Qn=mi.diagnostics,Xi=mi.directives,Va=0,ga=Xi.getUnusedExpectations();Va<ga.length;Va++){var Yi=ga[Va];Qn.push(e.createDiagnosticForRange(Zr,Yi.range,e.Diagnostics.Unused_ts_expect_error_directive))}return Qn}function ka(Zr,Xr,$t){var Dn=e.createCommentDirectivesMap(Zr,Xr),Mn=$t.filter(function(zn){return Ye(zn,Dn)===-1});return{diagnostics:Mn,directives:Dn}}function ro(Zr,Xr){return Ko(function(){return Ha().getSuggestionDiagnostics(Zr,Xr)})}function Ye(Zr,Xr){var $t=Zr.file,Dn=Zr.start;if(!$t)return-1;for(var Mn=e.getLineStarts($t),zn=e.computeLineAndCharacterOfPosition(Mn,Dn).line-1;zn>=0;){if(Xr.markUsed(zn))return zn;var mi=$t.text.slice(Mn[zn],Mn[zn+1]).trim();if(mi!==""&&!/^(\s*)\/\/(.*)$/.test(mi))return-1;zn--}return-1}function lt(Zr){return Ko(function(){var Xr=[];return $t(Zr,Zr),e.forEachChildRecursively(Zr,$t,Dn),Xr;function $t(Qn,Xi){switch(Xi.kind){case 166:case 169:case 171:if(Xi.questionToken===Qn)return Xr.push(mi(Qn,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(Xi.type===Qn)return Xr.push(mi(Qn,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Qn.kind){case 270:if(Qn.isTypeOnly)return Xr.push(mi(Xi,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(Qn.isTypeOnly)return Xr.push(mi(Qn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(Qn.isTypeOnly)return Xr.push(mi(Qn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,e.isImportSpecifier(Qn)?"import...type":"export...type")),"skip";break;case 268:return Xr.push(mi(Qn,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(Qn.isExportEquals)return Xr.push(mi(Qn,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:var Va=Qn;if(Va.token===117)return Xr.push(mi(Qn,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:var ga=e.tokenToString(118);return e.Debug.assertIsDefined(ga),Xr.push(mi(Qn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,ga)),"skip";case 264:var Yi=Qn.flags&16?e.tokenToString(143):e.tokenToString(142);return e.Debug.assertIsDefined(Yi),Xr.push(mi(Qn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Yi)),"skip";case 262:return Xr.push(mi(Qn,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:var so=e.Debug.checkDefined(e.tokenToString(92));return Xr.push(mi(Qn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,so)),"skip";case 232:return Xr.push(mi(Qn,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return Xr.push(mi(Qn.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Xr.push(mi(Qn.type,e.Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:e.Debug.fail()}}function Dn(Qn,Xi){switch(e.canHaveModifiers(Xi)&&Xi.modifiers===Qn&&e.some(Qn,e.isDecorator)&&!L.experimentalDecorators&&Xr.push(mi(Xi,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),Xi.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(Qn===Xi.typeParameters)return Xr.push(zn(Qn,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(Qn===Xi.modifiers)return Mn(Xi.modifiers,Xi.kind===240),"skip";break;case 169:if(Qn===Xi.modifiers){for(var Va=0,ga=Qn;Va<ga.length;Va++){var Yi=ga[Va];e.isModifier(Yi)&&Yi.kind!==124&&Yi.kind!==127&&Xr.push(mi(Yi,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Yi.kind)))}return"skip"}break;case 166:if(Qn===Xi.modifiers&&e.some(Qn,e.isModifier))return Xr.push(zn(Qn,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(Qn===Xi.typeArguments)return Xr.push(zn(Qn,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Mn(Qn,Xi){for(var Va=0,ga=Qn;Va<ga.length;Va++){var Yi=ga[Va];switch(Yi.kind){case 85:if(Xi)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:Xr.push(mi(Yi,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Yi.kind)));break;case 124:case 93:case 88:case 127:}}}function zn(Qn,Xi,Va,ga,Yi){var so=Qn.pos;return e.createFileDiagnostic(Zr,so,Qn.end-so,Xi,Va,ga,Yi)}function mi(Qn,Xi,Va,ga,Yi){return e.createDiagnosticForNodeInSourceFile(Zr,Qn,Xi,Va,ga,Yi)}})}function Ut(Zr,Xr){return yr(Zr,Xr,Rr,Ve)}function Ve(Zr,Xr){return Ko(function(){var $t=Ha().getEmitResolver(Zr,Xr);return e.getDeclarationDiagnostics(ji(e.noop),$t,Zr)||e.emptyArray})}function yr(Zr,Xr,$t,Dn){var Mn,zn=Zr?(Mn=$t.perFile)===null||Mn===void 0?void 0:Mn.get(Zr.path):$t.allDiagnostics;if(zn)return zn;var mi=Dn(Zr,Xr);return Zr?($t.perFile||($t.perFile=new e.Map)).set(Zr.path,mi):$t.allDiagnostics=mi,mi}function Er(Zr,Xr){return Zr.isDeclarationFile?[]:Ut(Zr,Xr)}function Wr(){return e.sortAndDeduplicateDiagnostics(e.concatenate(xr.getGlobalDiagnostics(),Ot()))}function Ot(){if(!L.configFile)return e.emptyArray;var Zr=xr.getDiagnostics(L.configFile.fileName);return Xt(function(Xr){Zr=e.concatenate(Zr,xr.getDiagnostics(Xr.sourceFile.fileName))}),Zr}function ln(){return xe.length?e.sortAndDeduplicateDiagnostics(Ha().getGlobalDiagnostics().slice()):e.emptyArray}function kn(){return ue||e.emptyArray}function Cn(Zr,Xr,$t,Dn){Wo(e.normalizePath(Zr),Xr,$t,void 0,Dn)}function _i(Zr,Xr){return Zr.fileName===Xr.fileName}function qi(Zr,Xr){return Zr.kind===79?Xr.kind===79&&Zr.escapedText===Xr.escapedText:Xr.kind===10&&Zr.text===Xr.text}function va(Zr,Xr){var $t=e.factory.createStringLiteral(Zr),Dn=e.factory.createImportDeclaration(void 0,void 0,$t,void 0);return e.addEmitFlags(Dn,67108864),e.setParent($t,Dn),e.setParent(Dn,Xr),$t.flags&=-9,Dn.flags&=-9,$t}function Ia(Zr){if(Zr.imports)return;var Xr=e.isSourceFileJS(Zr),$t=e.isExternalModule(Zr),Dn,Mn,zn;if((L.isolatedModules||$t)&&!Zr.isDeclarationFile){L.importHelpers&&(Dn=[va(e.externalHelpersModuleNameText,Zr)]);var mi=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(L,Zr),L);mi&&(Dn||(Dn=[])).push(va(mi,Zr))}for(var Qn=0,Xi=Zr.statements;Qn<Xi.length;Qn++){var Va=Xi[Qn];ga(Va,!1)}(Zr.flags&2097152||Xr)&&Yi(Zr),Zr.imports=Dn||e.emptyArray,Zr.moduleAugmentations=Mn||e.emptyArray,Zr.ambientModuleNames=zn||e.emptyArray;return;function ga(da,Po){if(e.isAnyImportOrReExport(da)){var Uo=e.getExternalModuleName(da);Uo&&e.isStringLiteral(Uo)&&Uo.text&&(!Po||!e.isExternalModuleNameRelative(Uo.text))&&(e.setParentRecursive(da,!1),Dn=e.append(Dn,Uo),!ye&&Ct===0&&!Zr.isDeclarationFile&&(ye=e.startsWith(Uo.text,"node:")))}else if(e.isModuleDeclaration(da)&&e.isAmbientModule(da)&&(Po||e.hasSyntacticModifier(da,2)||Zr.isDeclarationFile)){da.name.parent=da;var Qs=e.getTextOfIdentifierOrLiteral(da.name);if($t||Po&&!e.isExternalModuleNameRelative(Qs))(Mn||(Mn=[])).push(da.name);else if(!Po){Zr.isDeclarationFile&&(zn||(zn=[])).push(Qs);var ya=da.body;if(ya)for(var Ee=0,Dr=ya.statements;Ee<Dr.length;Ee++){var Nr=Dr[Ee];ga(Nr,!0)}}}}function Yi(da){for(var Po=/import|require/g;Po.exec(da.text)!==null;){var Uo=so(da,Po.lastIndex);Xr&&e.isRequireCall(Uo,!0)||e.isImportCall(Uo)&&Uo.arguments.length>=1&&e.isStringLiteralLike(Uo.arguments[0])?(e.setParentRecursive(Uo,!1),Dn=e.append(Dn,Uo.arguments[0])):e.isLiteralImportTypeNode(Uo)&&(e.setParentRecursive(Uo,!1),Dn=e.append(Dn,Uo.argument.literal))}}function so(da,Po){for(var Uo=da,Qs=function(Ee){if(Ee.pos<=Po&&(Po<Ee.end||Po===Ee.end&&Ee.kind===1))return Ee};;){var ya=Xr&&e.hasJSDocNodes(Uo)&&e.forEach(Uo.jsDoc,Qs)||e.forEachChild(Uo,Qs);if(!ya)return Uo;Uo=ya}}}function $a(Zr){var Xr=e.toFileNameLowerCase(Zr.fileName),$t=e.libMap.get(Xr);if($t)return ts(vi($t))}function ws(Zr,Xr){return rc(P(Xr.fileName,Zr.fileName),ts)}function rc(Zr,Xr,$t,Dn){if(e.hasExtension(Zr)){var Mn=vr.getCanonicalFileName(Zr);if(!L.allowNonTsExtensions&&!e.forEach(e.flatten(ct),function(Va){return e.fileExtensionIs(Mn,Va)})){$t&&(e.hasJSFileExtension(Mn)?$t(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Zr):$t(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Zr,"'"+e.flatten(Qr).join("', '")+"'"));return}var zn=Xr(Zr);if($t)if(zn)U(Dn)&&Mn===vr.getCanonicalFileName(En(Dn.file).fileName)&&$t(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var mi=tc(Zr);mi?$t(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,mi,Zr):$t(e.Diagnostics.File_0_not_found,Zr)}return zn}else{var Qn=L.allowNonTsExtensions&&Xr(Zr);if(Qn)return Qn;if($t&&L.allowNonTsExtensions){$t(e.Diagnostics.File_0_not_found,Zr);return}var Xi=e.forEach(Qr[0],function(Va){return Xr(Zr+Va)});return $t&&!Xi&&$t(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Zr,"'"+e.flatten(Qr).join("', '")+"'"),Xi}}function Wo(Zr,Xr,$t,Dn,Mn){rc(Zr,function(zn){return tu(zn,Xr,$t,Mn,Dn)},function(zn){for(var mi=[],Qn=1;Qn<arguments.length;Qn++)mi[Qn-1]=arguments[Qn];return ua(void 0,Mn,zn,mi)},Mn)}function ds(Zr,Xr){return Wo(Zr,!1,!1,void 0,Xr)}function yu(Zr,Xr,$t){var Dn=!U($t)&&e.some(or.get(Xr.path),U);Dn?ua(Xr,$t,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Xr.fileName,Zr]):ua(Xr,$t,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Zr,Xr.fileName])}function bu(Zr,Xr,$t,Dn,Mn,zn,mi){var Qn,Xi=Object.create(Zr);return Xi.fileName=$t,Xi.path=Dn,Xi.resolvedPath=Mn,Xi.originalFileName=zn,Xi.redirectInfo={redirectTarget:Zr,unredirected:Xr},Xi.packageJsonLocations=!((Qn=mi.packageJsonLocations)===null||Qn===void 0)&&Qn.length?mi.packageJsonLocations:void 0,Xi.packageJsonScope=mi.packageJsonScope,Fe.set(Dn,Ct>0),Object.defineProperties(Xi,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(Va){this.redirectInfo.redirectTarget.id=Va}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(Va){this.redirectInfo.redirectTarget.symbol=Va}}}),Xi}function tu(Zr,Xr,$t,Dn,Mn){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:Zr,isDefaultLib:Xr||void 0,fileIncludeKind:e.FileIncludeKind[Dn.kind]});var zn=Su(Zr,Xr,$t,Dn,Mn);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),zn}function $c(Zr,Xr,$t,Dn){var Mn=he(e.getNormalizedAbsolutePath(Zr,Br),Xr==null?void 0:Xr.getPackageJsonInfoCache(),$t,Dn),zn=e.getEmitScriptTarget(Dn),mi=e.getSetExternalModuleIndicator(Dn);return typeof Mn=="object"?n(n({},Mn),{languageVersion:zn,setExternalModuleIndicator:mi}):{languageVersion:zn,impliedNodeFormat:Mn,setExternalModuleIndicator:mi}}function Su(Zr,Xr,$t,Dn,Mn){var zn,mi,Qn=et(Zr);if(ur){var Xi=be(Qn);if(!Xi&&vr.realpath&&L.preserveSymlinks&&e.isDeclarationFileName(Zr)&&e.stringContains(Zr,e.nodeModulesPathPart)){var Va=et(vr.realpath(Zr));Va!==Qn&&(Xi=be(Va))}if(Xi){var ga=e.isString(Xi)?tu(Xi,Xr,$t,Dn,Mn):void 0;return ga&&Hc(ga,Qn,void 0),ga}}var Yi=Zr;if(Ie.has(Qn)){var so=Ie.get(Qn);if(Lc(so||void 0,Dn),so&&L.forceConsistentCasingInFileNames){var da=so.fileName,Po=et(da)!==et(Zr);Po&&(Zr=tc(Zr)||Zr);var Uo=e.getNormalizedAbsolutePathWithoutRoot(da,Br),Qs=e.getNormalizedAbsolutePathWithoutRoot(Zr,Br);Uo!==Qs&&yu(Zr,so,Dn)}return so&&Fe.get(so.path)&&Ct===0?(Fe.set(so.path,!1),L.noResolve||(an(so,Xr),Kn(so)),L.noLib||Da(so),yt.set(so.path,!1),fo(so)):so&&yt.get(so.path)&&Ct<_t&&(yt.set(so.path,!1),fo(so)),so||void 0}var ya;if(U(Dn)&&!ur){var Ee=fc(Zr);if(Ee){if(e.outFile(Ee.commandLine.options))return;var Dr=nu(Ee,Zr);Zr=Dr,ya=et(Dr)}}var Nr=$c(Zr,Me,vr,L),Mt=vr.getSourceFile(Zr,Nr,function(os){return ua(void 0,Dn,e.Diagnostics.Cannot_read_file_0_Colon_1,[Zr,os])},Pt||((zn=Je==null?void 0:Je.getSourceFileByPath(et(Zr)))===null||zn===void 0?void 0:zn.impliedNodeFormat)!==Nr.impliedNodeFormat);if(Mn){var In=e.packageIdToString(Mn),Di=en.get(In);if(Di){var Pi=bu(Di,Mt,Zr,Qn,et(Zr),Yi,Nr);return Jr.add(Di.path,Zr),Hc(Pi,Qn,ya),Lc(Pi,Dn),Ir.set(Qn,e.packageIdToPackageName(Mn)),mr.push(Pi),Pi}else Mt&&(en.set(In,Mt),Ir.set(Qn,e.packageIdToPackageName(Mn)))}if(Hc(Mt,Qn,ya),Mt){if(Fe.set(Qn,Ct>0),Mt.fileName=Zr,Mt.path=Qn,Mt.resolvedPath=et(Zr),Mt.originalFileName=Yi,Mt.packageJsonLocations=!((mi=Nr.packageJsonLocations)===null||mi===void 0)&&mi.length?Nr.packageJsonLocations:void 0,Mt.packageJsonScope=Nr.packageJsonScope,Lc(Mt,Dn),vr.useCaseSensitiveFileNames()){var Aa=e.toFileNameLowerCase(Qn),co=dr.get(Aa);co?yu(Zr,co,Dn):dr.set(Aa,Mt)}cr=cr||Mt.hasNoDefaultLib&&!$t,L.noResolve||(an(Mt,Xr),Kn(Mt)),L.noLib||Da(Mt),fo(Mt),Xr?lr.push(Mt):mr.push(Mt)}return Mt}function Lc(Zr,Xr){Zr&&or.add(Zr.path,Xr)}function Hc(Zr,Xr,$t){$t?(Ie.set($t,Zr),Ie.set(Xr,Zr||!1)):Ie.set(Xr,Zr)}function tc(Zr){var Xr=fc(Zr);return Xr&&nu(Xr,Zr)}function fc(Zr){if(!(!ar||!ar.length||e.isDeclarationFileName(Zr)||e.fileExtensionIs(Zr,".json")))return nc(Zr)}function nu(Zr,Xr){var $t=e.outFile(Zr.commandLine.options);return $t?e.changeExtension($t,".d.ts"):e.getOutputDeclarationFileName(Xr,Zr.commandLine,!vr.useCaseSensitiveFileNames())}function nc(Zr){Or===void 0&&(Or=new e.Map,Xt(function($t){et(L.configFilePath)!==$t.sourceFile.path&&$t.commandLine.fileNames.forEach(function(Dn){return Or.set(et(Dn),$t.sourceFile.path)})}));var Xr=Or.get(et(Zr));return Xr&&At(Xr)}function Xt(Zr){return e.forEachResolvedProjectReference(ar,Zr)}function be(Zr){if(e.isDeclarationFileName(Zr))return Ge===void 0&&(Ge=new e.Map,Xt(function(Xr){var $t=e.outFile(Xr.commandLine.options);if($t){var Dn=e.changeExtension($t,".d.ts");Ge.set(et(Dn),!0)}else{var Mn=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Xr.commandLine,!vr.useCaseSensitiveFileNames())});e.forEach(Xr.commandLine.fileNames,function(zn){if(!e.isDeclarationFileName(zn)&&!e.fileExtensionIs(zn,".json")){var mi=e.getOutputDeclarationFileName(zn,Xr.commandLine,!vr.useCaseSensitiveFileNames(),Mn);Ge.set(et(mi),zn)}})}})),Ge.get(Zr)}function Ur(Zr){return ur&&!!nc(Zr)}function At(Zr){if(Sr)return Sr.get(Zr)||void 0}function an(Zr,Xr){e.forEach(Zr.referencedFiles,function($t,Dn){Wo(P($t.fileName,Zr.fileName),Xr,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:Zr.path,index:Dn})})}function Kn(Zr){var Xr=Zr.typeReferenceDirectives;if(Xr)for(var $t=Zt(Xr,Zr),Dn=0;Dn<Xr.length;Dn++){var Mn=Zr.typeReferenceDirectives[Dn],zn=$t[Dn],mi=e.toFileNameLowerCase(Mn.fileName);e.setResolvedTypeReferenceDirective(Zr,mi,zn);var Qn=Mn.resolutionMode||Zr.impliedNodeFormat;Qn&&e.getEmitModuleResolutionKind(L)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(L)!==e.ModuleResolutionKind.NodeNext&&xr.add(e.createDiagnosticForRange(Zr,Mn,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Yn(mi,Qn,zn,{kind:e.FileIncludeKind.TypeReferenceDirective,file:Zr.path,index:Dn})}}function Yn(Zr,Xr,$t,Dn){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:Zr,hasResolved:!!$t,refKind:Dn.kind,refPath:U(Dn)?Dn.file:void 0}),Si(Zr,Xr,$t,Dn),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function Si(Zr,Xr,$t,Dn){var Mn=zr.get(Zr,Xr);if(!(Mn&&Mn.primary)){var zn=!0;if($t){if($t.isExternalLibraryImport&&Ct++,$t.primary)Wo($t.resolvedFileName,!1,!1,$t.packageId,Dn);else if(Mn){if($t.resolvedFileName!==Mn.resolvedFileName){var mi=vr.readFile($t.resolvedFileName),Qn=ts(Mn.resolvedFileName);mi!==Qn.text&&ua(Qn,Dn,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Zr,$t.resolvedFileName,Mn.resolvedFileName])}zn=!1}else Wo($t.resolvedFileName,!1,!1,$t.packageId,Dn);$t.isExternalLibraryImport&&Ct--}else ua(void 0,Dn,e.Diagnostics.Cannot_find_type_definition_file_for_0,[Zr]);zn&&zr.set(Zr,Xr,$t)}}function vi(Zr){for(var Xr=Zr.split("."),$t=Xr[1],Dn=2;Xr[Dn]&&Xr[Dn]!=="d";)$t+=(Dn===2?"/":"-")+Xr[Dn],Dn++;var Mn=e.combinePaths(Br,"__lib_node_modules_lookup_".concat(Zr,"__.ts")),zn=e.resolveModuleName("@typescript/lib-"+$t,Mn,{moduleResolution:e.ModuleResolutionKind.NodeJs},vr,Me);return zn!=null&&zn.resolvedModule?zn.resolvedModule.resolvedFileName:e.combinePaths(Re,Zr)}function Da(Zr){e.forEach(Zr.libReferenceDirectives,function(Xr,$t){var Dn=e.toFileNameLowerCase(Xr.fileName),Mn=e.libMap.get(Dn);if(Mn)Cn(vi(Mn),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:Zr.path,index:$t});else{var zn=e.removeSuffix(e.removePrefix(Dn,"lib."),".d.ts"),mi=e.getSpellingSuggestion(zn,e.libs,e.identity),Qn=mi?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(Fr||(Fr=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:Zr.path,index:$t},diagnostic:Qn,args:[Dn,mi]})}})}function ta(Zr){return vr.getCanonicalFileName(Zr)}function fo(Zr){var Xr;if(Ia(Zr),Zr.imports.length||Zr.moduleAugmentations.length){var $t=Te(Zr),Dn=pi($t,Zr);e.Debug.assert(Dn.length===$t.length);for(var Mn=(ur?(Xr=Tt(Zr))===null||Xr===void 0?void 0:Xr.commandLine.options:void 0)||L,zn=0;zn<$t.length;zn++){var mi=Dn[zn];if(e.setResolvedModule(Zr,$t[zn],mi,fe(Zr,zn)),!!mi){var Qn=mi.isExternalLibraryImport,Xi=!e.resolutionExtensionIsTSOrJson(mi.extension),Va=Qn&&Xi,ga=mi.resolvedFileName;Qn&&Ct++;var Yi=Va&&Ct>_t,so=ga&&!ae(Mn,mi)&&!Mn.noResolve&&zn<Zr.imports.length&&!Yi&&!(Xi&&!e.getAllowJSCompilerOption(Mn))&&(e.isInJSFile(Zr.imports[zn])||!(Zr.imports[zn].flags&8388608));Yi?yt.set(Zr.path,!0):so&&tu(ga,!1,!1,{kind:e.FileIncludeKind.Import,file:Zr.path,index:zn},mi.packageId),Qn&&Ct--}}}else Zr.resolvedModules=void 0}function oo(Zr,Xr){for(var $t=!0,Dn=vr.getCanonicalFileName(e.getNormalizedAbsolutePath(Xr,Br)),Mn=0,zn=Zr;Mn<zn.length;Mn++){var mi=zn[Mn];if(!mi.isDeclarationFile){var Qn=vr.getCanonicalFileName(e.getNormalizedAbsolutePath(mi.fileName,Br));Qn.indexOf(Dn)!==0&&(_o(mi,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[mi.fileName,Xr]),$t=!1)}}return $t}function er(Zr){Sr||(Sr=new e.Map);var Xr=G(Zr),$t=et(Xr),Dn=Sr.get($t);if(Dn!==void 0)return Dn||void 0;var Mn,zn;if(vr.getParsedCommandLine){if(Mn=vr.getParsedCommandLine(Xr),!Mn){Hc(void 0,$t,void 0),Sr.set($t,!1);return}zn=e.Debug.checkDefined(Mn.options.configFile),e.Debug.assert(!zn.path||zn.path===$t),Hc(zn,$t,void 0)}else{var mi=e.getNormalizedAbsolutePath(e.getDirectoryPath(Xr),vr.getCurrentDirectory());if(zn=vr.getSourceFile(Xr,100),Hc(zn,$t,void 0),zn===void 0){Sr.set($t,!1);return}Mn=e.parseJsonSourceFileConfigFileContent(zn,Le,mi,void 0,Xr)}zn.fileName=Xr,zn.path=$t,zn.resolvedPath=$t,zn.originalFileName=Xr;var Qn={commandLine:Mn,sourceFile:zn};return Sr.set($t,Qn),Mn.projectReferences&&(Qn.references=Mn.projectReferences.map(er)),Qn}function Bt(){L.strictPropertyInitialization&&!e.getStrictOptionValue(L,"strictNullChecks")&&Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),L.exactOptionalPropertyTypes&&!e.getStrictOptionValue(L,"strictNullChecks")&&Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),L.isolatedModules&&(L.out&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),L.outFile&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),L.inlineSourceMap&&(L.sourceMap&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),L.mapRoot&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),L.composite&&(L.declaration===!1&&Jo(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),L.incremental===!1&&Jo(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var Zr=e.outFile(L);if(L.tsBuildInfoFile?e.isIncrementalCompilation(L)||Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):L.incremental&&!Zr&&!L.configFilePath&&xr.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),yc(),L.composite)for(var Xr=new e.Set(xe.map(et)),$t=0,Dn=Hr;$t<Dn.length;$t++){var Mn=Dn[$t];e.sourceFileMayBeEmitted(Mn,hr)&&!Xr.has(Mn.path)&&_o(Mn,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Mn.fileName,L.configFilePath||""])}if(L.paths){for(var zn in L.paths)if(e.hasProperty(L.paths,zn))if(e.hasZeroOrOneAsteriskCharacter(zn)||oc(!0,zn,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,zn),e.isArray(L.paths[zn])){var mi=L.paths[zn].length;mi===0&&oc(!1,zn,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,zn);for(var Qn=0;Qn<mi;Qn++){var Xi=L.paths[zn][Qn],Va=typeof Xi;Va==="string"?(e.hasZeroOrOneAsteriskCharacter(Xi)||kc(zn,Qn,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Xi,zn),!L.baseUrl&&!e.pathIsRelative(Xi)&&!e.pathIsAbsolute(Xi)&&kc(zn,Qn,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):kc(zn,Qn,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Xi,zn,Va)}}else oc(!1,zn,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,zn)}!L.sourceMap&&!L.inlineSourceMap&&(L.inlineSources&&Jo(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),L.sourceRoot&&Jo(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),L.out&&L.outFile&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),L.mapRoot&&!(L.sourceMap||L.declarationMap)&&Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),L.declarationDir&&(e.getEmitDeclarations(L)||Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Zr&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",L.out?"out":"outFile")),L.declarationMap&&!e.getEmitDeclarations(L)&&Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),L.lib&&L.noLib&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),L.noImplicitUseStrict&&e.getStrictOptionValue(L,"alwaysStrict")&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var ga=e.getEmitScriptTarget(L),Yi=e.find(Hr,function(Dr){return e.isExternalModule(Dr)&&!Dr.isDeclarationFile});if(L.isolatedModules){L.module===e.ModuleKind.None&&ga<2&&Jo(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),L.preserveConstEnums===!1&&Jo(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");for(var so=0,da=Hr;so<da.length;so++){var Mn=da[so];if(!e.isExternalModule(Mn)&&!e.isSourceFileJS(Mn)&&!Mn.isDeclarationFile&&Mn.scriptKind!==6){var Po=e.getErrorSpanForNode(Mn,Mn);xr.add(e.createFileDiagnostic(Mn,Po.start,Po.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(Mn.fileName)))}}}else if(Yi&&ga<2&&L.module===e.ModuleKind.None){var Po=e.getErrorSpanForNode(Yi,typeof Yi.externalModuleIndicator=="boolean"?Yi:Yi.externalModuleIndicator);xr.add(e.createFileDiagnostic(Yi,Po.start,Po.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Zr&&!L.emitDeclarationOnly){if(L.module&&!(L.module===e.ModuleKind.AMD||L.module===e.ModuleKind.System))Jo(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,L.out?"out":"outFile","module");else if(L.module===void 0&&Yi){var Po=e.getErrorSpanForNode(Yi,typeof Yi.externalModuleIndicator=="boolean"?Yi:Yi.externalModuleIndicator);xr.add(e.createFileDiagnostic(Yi,Po.start,Po.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,L.out?"out":"outFile"))}}if(L.resolveJsonModule&&(e.getEmitModuleResolutionKind(L)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(L)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(L)!==e.ModuleResolutionKind.NodeNext?Jo(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(L)||Jo(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),L.outDir||L.rootDir||L.sourceRoot||L.mapRoot){var Uo=It();L.outDir&&Uo===""&&Hr.some(function(Dr){return e.getRootLength(Dr.fileName)>1})&&Jo(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(L.useDefineForClassFields&&ga===0&&Jo(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),L.checkJs&&!e.getAllowJSCompilerOption(L)&&xr.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),L.emitDeclarationOnly&&(e.getEmitDeclarations(L)||Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),L.noEmit&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),L.emitDecoratorMetadata&&!L.experimentalDecorators&&Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),L.jsxFactory?(L.reactNamespace&&Jo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(L.jsx===4||L.jsx===5)&&Jo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+L.jsx)),e.parseIsolatedEntityName(L.jsxFactory,ga)||$s("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFactory)):L.reactNamespace&&!e.isIdentifierText(L.reactNamespace,ga)&&$s("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,L.reactNamespace),L.jsxFragmentFactory&&(L.jsxFactory||Jo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(L.jsx===4||L.jsx===5)&&Jo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+L.jsx)),e.parseIsolatedEntityName(L.jsxFragmentFactory,ga)||$s("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFragmentFactory)),L.reactNamespace&&(L.jsx===4||L.jsx===5)&&Jo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+L.jsx)),L.jsxImportSource&&L.jsx===2&&Jo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+L.jsx)),L.preserveValueImports&&e.getEmitModuleKind(L)<e.ModuleKind.ES2015&&$s("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!L.noEmit&&!L.suppressOutputPathCheck){var Qs=ji(),ya=new e.Set;e.forEachEmittedFile(Qs,function(Dr){L.emitDeclarationOnly||Ee(Dr.jsFilePath,ya),Ee(Dr.declarationFilePath,ya)})}function Ee(Dr,Nr){if(Dr){var Mt=et(Dr);if(Ie.has(Mt)){var In=void 0;L.configFilePath||(In=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),In=e.chainDiagnosticMessages(In,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Dr),Nl(Dr,e.createCompilerDiagnosticFromMessageChain(In))}var Di=vr.useCaseSensitiveFileNames()?Mt:e.toFileNameLowerCase(Mt);Nr.has(Di)?Nl(Dr,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Dr)):Nr.add(Di)}}}function Mr(Zr,Xr,$t,Dn){var Mn,zn,mi,Qn=U(Xr)?Xr:void 0;Zr&&((Mn=or.get(Zr.path))===null||Mn===void 0||Mn.forEach(so)),Xr&&so(Xr),Qn&&(zn==null?void 0:zn.length)===1&&(zn=void 0);var Xi=Qn&&q(En,Qn),Va=zn&&e.chainDiagnosticMessages(zn,e.Diagnostics.The_file_is_in_the_program_because_Colon),ga=Zr&&e.explainIfFileIsRedirectAndImpliedFormat(Zr),Yi=e.chainDiagnosticMessages.apply(void 0,t([ga?Va?t([Va],ga,!0):ga:Va,$t],Dn||e.emptyArray,!1));return Xi&&H(Xi)?e.createFileDiagnosticFromMessageChain(Xi.file,Xi.pos,Xi.end-Xi.pos,Yi,mi):e.createCompilerDiagnosticFromMessageChain(Yi,mi);function so(da){(zn||(zn=[])).push(e.fileIncludeReasonToDiagnostics(hr,da)),!Qn&&U(da)?Qn=da:Qn!==da&&(mi=e.append(mi,xs(da))),da===Xr&&(Xr=void 0)}}function ua(Zr,Xr,$t,Dn){(Fr||(Fr=[])).push({kind:1,file:Zr&&Zr.path,fileProcessingReason:Xr,diagnostic:$t,args:Dn})}function _o(Zr,Xr,$t){xr.add(Mr(Zr,void 0,Xr,$t))}function xs(Zr){if(U(Zr)){var Xr=q(En,Zr),$t;switch(Zr.kind){case e.FileIncludeKind.Import:$t=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:$t=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:$t=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:$t=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(Zr)}return H(Xr)?e.createFileDiagnostic(Xr.file,Xr.pos,Xr.end-Xr.pos,$t):void 0}if(L.configFile){var Dn,Mn;switch(Zr.kind){case e.FileIncludeKind.RootFile:if(!L.configFile.configFileSpecs)return;var zn=e.getNormalizedAbsolutePath(xe[Zr.index],Br),mi=e.getMatchedFileSpec(hr,zn);if(mi){Dn=e.getTsConfigPropArrayElementValue(L.configFile,"files",mi),Mn=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var Qn=e.getMatchedIncludeSpec(hr,zn);if(!Qn||!e.isString(Qn))return;Dn=e.getTsConfigPropArrayElementValue(L.configFile,"include",Qn),Mn=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Xi=e.Debug.checkDefined(ar==null?void 0:ar[Zr.index]),Va=M(Ue,ar,function(Po,Uo,Qs){return Po===Xi?{sourceFile:(Uo==null?void 0:Uo.sourceFile)||L.configFile,index:Qs}:void 0});if(!Va)return;var ga=Va.sourceFile,Yi=Va.index,so=e.firstDefined(e.getTsConfigPropArray(ga,"references"),function(Po){return e.isArrayLiteralExpression(Po.initializer)?Po.initializer:void 0});return so&&so.elements.length>Yi?e.createDiagnosticForNodeInSourceFile(ga,so.elements[Yi],Zr.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!L.types)return;Dn=Du("types",Zr.typeReference),Mn=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(Zr.index!==void 0){Dn=Du("lib",L.lib[Zr.index]),Mn=e.Diagnostics.File_is_library_specified_here;break}var da=e.forEachEntry(e.targetOptionDeclaration.type,function(Po,Uo){return Po===e.getEmitScriptTarget(L)?Uo:void 0});Dn=da?wl("target",da):void 0,Mn=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(Zr)}return Dn&&e.createDiagnosticForNodeInSourceFile(L.configFile,Dn,Mn)}}function yc(){var Zr=L.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(L);M(Ue,ar,function(Xr,$t,Dn){var Mn=($t?$t.commandLine.projectReferences:Ue)[Dn],zn=$t&&$t.sourceFile;if(!Xr){Ju(zn,Dn,e.Diagnostics.File_0_not_found,Mn.path);return}var mi=Xr.commandLine.options;if(!mi.composite||mi.noEmit){var Qn=$t?$t.commandLine.fileNames:xe;Qn.length&&(mi.composite||Ju(zn,Dn,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,Mn.path),mi.noEmit&&Ju(zn,Dn,e.Diagnostics.Referenced_project_0_may_not_disable_emit,Mn.path))}if(Mn.prepend){var Xi=e.outFile(mi);Xi?vr.fileExists(Xi)||Ju(zn,Dn,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Xi,Mn.path):Ju(zn,Dn,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Mn.path)}!$t&&Zr&&Zr===e.getTsBuildInfoEmitOutputFilePath(mi)&&(Ju(zn,Dn,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Zr,Mn.path),ft.set(et(Zr),!0))})}function kc(Zr,Xr,$t,Dn,Mn,zn){for(var mi=!0,Qn=_u(),Xi=0,Va=Qn;Xi<Va.length;Xi++){var ga=Va[Xi];if(e.isObjectLiteralExpression(ga.initializer))for(var Yi=0,so=e.getPropertyAssignment(ga.initializer,Zr);Yi<so.length;Yi++){var da=so[Yi],Po=da.initializer;e.isArrayLiteralExpression(Po)&&Po.elements.length>Xr&&(xr.add(e.createDiagnosticForNodeInSourceFile(L.configFile,Po.elements[Xr],$t,Dn,Mn,zn)),mi=!1)}}mi&&xr.add(e.createCompilerDiagnostic($t,Dn,Mn,zn))}function oc(Zr,Xr,$t,Dn){for(var Mn=!0,zn=_u(),mi=0,Qn=zn;mi<Qn.length;mi++){var Xi=Qn[mi];e.isObjectLiteralExpression(Xi.initializer)&&wu(Xi.initializer,Zr,Xr,void 0,$t,Dn)&&(Mn=!1)}Mn&&xr.add(e.createCompilerDiagnostic($t,Dn))}function iu(Zr){var Xr=Vp();return Xr&&e.getPropertyAssignment(Xr,Zr)}function _u(){return iu("paths")||e.emptyArray}function wl(Zr,Xr){var $t=iu(Zr);return $t&&e.firstDefined($t,function(Dn){return e.isStringLiteral(Dn.initializer)&&Dn.initializer.text===Xr?Dn.initializer:void 0})}function Du(Zr,Xr){var $t=Vp();return $t&&e.getPropertyArrayElementValue($t,Zr,Xr)}function Jo(Zr,Xr,$t,Dn){Up(!0,Xr,$t,Zr,Xr,$t,Dn)}function $s(Zr,Xr,$t,Dn){Up(!1,Zr,void 0,Xr,$t,Dn)}function Ju(Zr,Xr,$t,Dn,Mn){var zn=e.firstDefined(e.getTsConfigPropArray(Zr||L.configFile,"references"),function(mi){return e.isArrayLiteralExpression(mi.initializer)?mi.initializer:void 0});zn&&zn.elements.length>Xr?xr.add(e.createDiagnosticForNodeInSourceFile(Zr||L.configFile,zn.elements[Xr],$t,Dn,Mn)):xr.add(e.createCompilerDiagnostic($t,Dn,Mn))}function Up(Zr,Xr,$t,Dn,Mn,zn,mi){var Qn=Vp(),Xi=!Qn||!wu(Qn,Zr,Xr,$t,Dn,Mn,zn,mi);Xi&&xr.add(e.createCompilerDiagnostic(Dn,Mn,zn,mi))}function Vp(){if(Dt===void 0){Dt=!1;var Zr=e.getTsConfigObjectLiteralExpression(L.configFile);if(Zr)for(var Xr=0,$t=e.getPropertyAssignment(Zr,"compilerOptions");Xr<$t.length;Xr++){var Dn=$t[Xr];if(e.isObjectLiteralExpression(Dn.initializer)){Dt=Dn.initializer;break}}}return Dt||void 0}function wu(Zr,Xr,$t,Dn,Mn,zn,mi,Qn){for(var Xi=e.getPropertyAssignment(Zr,$t,Dn),Va=0,ga=Xi;Va<ga.length;Va++){var Yi=ga[Va];xr.add(e.createDiagnosticForNodeInSourceFile(L.configFile,Xr?Yi.name:Yi.initializer,Mn,zn,mi,Qn))}return!!Xi.length}function Nl(Zr,Xr){ft.set(et(Zr),!0),xr.add(Xr)}function pf(Zr){if(L.noEmit)return!1;var Xr=et(Zr);if(En(Xr))return!1;var $t=e.outFile(L);if($t)return Il(Xr,$t)||Il(Xr,e.removeFileExtension($t)+".d.ts");if(L.declarationDir&&e.containsPath(L.declarationDir,Xr,Br,!vr.useCaseSensitiveFileNames()))return!0;if(L.outDir)return e.containsPath(L.outDir,Xr,Br,!vr.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(Xr,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(Xr)){var Dn=e.removeFileExtension(Xr);return!!En(Dn+".ts")||!!En(Dn+".tsx")}return!1}function Il(Zr,Xr){return e.comparePaths(Zr,Xr,Br,!vr.useCaseSensitiveFileNames())===0}function Xl(){return vr.getSymlinkCache?vr.getSymlinkCache():(wr||(wr=e.createSymlinkCache(Br,ta)),Hr&&zr&&!wr.hasProcessedResolutions()&&wr.setSymlinksFromResolutions(Hr,zr),wr)}}e.createProgram=J;function de(we){var nr,tr=we.compilerHost.fileExists,me=we.compilerHost.directoryExists,He=we.compilerHost.getDirectories,rr=we.compilerHost.realpath;if(!we.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:Ae};we.compilerHost.fileExists=Ae;var je;return me&&(je=we.compilerHost.directoryExists=function(Ue){return me.call(we.compilerHost,Ue)?(L(Ue),!0):we.getResolvedProjectReferences()?(nr||(nr=new e.Set,we.forEachResolvedProjectReference(function(Je){var lr=e.outFile(Je.commandLine.options);if(lr)nr.add(e.getDirectoryPath(we.toPath(lr)));else{var mr=Je.commandLine.options.declarationDir||Je.commandLine.options.outDir;mr&&nr.add(we.toPath(mr))}})),ue(Ue,!1)):!1}),He&&(we.compilerHost.getDirectories=function(Ue){return!we.getResolvedProjectReferences()||me&&me.call(we.compilerHost,Ue)?He.call(we.compilerHost,Ue):[]}),rr&&(we.compilerHost.realpath=function(Ue){var Je;return((Je=we.getSymlinkCache().getSymlinkedFiles())===null||Je===void 0?void 0:Je.get(we.toPath(Ue)))||rr.call(we.compilerHost,Ue)}),{onProgramCreateComplete:Ce,fileExists:Ae,directoryExists:je};function Ce(){we.compilerHost.fileExists=tr,we.compilerHost.directoryExists=me,we.compilerHost.getDirectories=He}function Ae(Ue){return tr.call(we.compilerHost,Ue)?!0:!we.getResolvedProjectReferences()||!e.isDeclarationFileName(Ue)?!1:ue(Ue,!0)}function qe(Ue){var Je=we.getSourceOfProjectReferenceRedirect(we.toPath(Ue));return Je!==void 0?e.isString(Je)?tr.call(we.compilerHost,Je):!0:void 0}function xe(Ue){var Je=we.toPath(Ue),lr="".concat(Je).concat(e.directorySeparator);return e.forEachKey(nr,function(mr){return Je===mr||e.startsWith(mr,lr)||e.startsWith(Je,"".concat(mr,"/"))})}function L(Ue){var Je;if(!(!we.getResolvedProjectReferences()||e.containsIgnoredPath(Ue))&&!(!rr||!e.stringContains(Ue,e.nodeModulesPathPart))){var lr=we.getSymlinkCache(),mr=e.ensureTrailingDirectorySeparator(we.toPath(Ue));if(!(!((Je=lr.getSymlinkedDirectories())===null||Je===void 0)&&Je.has(mr))){var Hr=e.normalizePath(rr.call(we.compilerHost,Ue)),wr;if(Hr===Ue||(wr=e.ensureTrailingDirectorySeparator(we.toPath(Hr)))===mr){lr.setSymlinkedDirectory(mr,!1);return}lr.setSymlinkedDirectory(Ue,{real:e.ensureTrailingDirectorySeparator(Hr),realPath:wr})}}}function ue(Ue,Je){var lr,mr=Je?function(tt){return qe(tt)}:function(tt){return xe(tt)},Hr=mr(Ue);if(Hr!==void 0)return Hr;var wr=we.getSymlinkCache(),Oe=wr.getSymlinkedDirectories();if(!Oe)return!1;var Ze=we.toPath(Ue);return e.stringContains(Ze,e.nodeModulesPathPart)?Je&&(!((lr=wr.getSymlinkedFiles())===null||lr===void 0)&&lr.has(Ze))?!0:e.firstDefinedIterator(Oe.entries(),function(tt){var ut=tt[0],or=tt[1];if(!(!or||!e.startsWith(Ze,ut))){var qr=mr(Ze.replace(ut,or.realPath));if(Je&&qr){var Rr=e.getNormalizedAbsolutePath(Ue,we.compilerHost.getCurrentDirectory());wr.setSymlinkedFile(Ze,"".concat(or.real).concat(Rr.replace(new RegExp(ut,"i"),"")))}return qr}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function De(we,nr,tr,me){var He=we.getCompilerOptions();if(He.noEmit)return we.getSemanticDiagnostics(nr,me),nr||e.outFile(He)?e.emitSkippedWithNoDiagnostics:we.emitBuildInfo(tr,me);if(He.noEmitOnError){var rr=t(t(t(t([],we.getOptionsDiagnostics(me),!0),we.getSyntacticDiagnostics(nr,me),!0),we.getGlobalDiagnostics(me),!0),we.getSemanticDiagnostics(nr,me),!0);if(rr.length===0&&e.getEmitDeclarations(we.getCompilerOptions())&&(rr=we.getDeclarationDiagnostics(void 0,me)),!!rr.length){var je;if(!nr&&!e.outFile(He)){var Ce=we.emitBuildInfo(tr,me);Ce.diagnostics&&(rr=t(t([],rr,!0),Ce.diagnostics,!0)),je=Ce.emittedFiles}return{diagnostics:rr,sourceMaps:void 0,emittedFiles:je,emitSkipped:!0}}}}e.handleNoEmitOptions=De;function N(we,nr){return e.filter(we,function(tr){return!tr.skippedOn||!nr[tr.skippedOn]})}e.filterSemanticDiagnostics=N;function b(we,nr){return nr===void 0&&(nr=we),{fileExists:function(tr){return nr.fileExists(tr)},readDirectory:function(tr,me,He,rr,je){return e.Debug.assertIsDefined(nr.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),nr.readDirectory(tr,me,He,rr,je)},readFile:function(tr){return nr.readFile(tr)},useCaseSensitiveFileNames:we.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return we.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:we.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:we.trace?function(tr){return we.trace(tr)}:void 0}}e.parseConfigHostFromCompilerHostLike=b;function Q(we,nr,tr){if(!we)return e.emptyArray;for(var me,He=0;He<we.length;He++){var rr=we[He],je=nr(rr,He);if(rr.prepend&&je&&je.options){var Ce=e.outFile(je.options);if(!Ce)continue;var Ae=e.getOutputPathsForBundle(je.options,!0),qe=Ae.jsFilePath,xe=Ae.sourceMapFilePath,L=Ae.declarationFilePath,ue=Ae.declarationMapPath,Ue=Ae.buildInfoPath,Je=e.createInputFiles(tr,qe,xe,L,ue,Ue);(me||(me=[])).push(Je)}}return me||e.emptyArray}e.createPrependNodes=Q;function G(we,nr){var tr=nr||we;return e.resolveConfigFileProjectName(tr.path)}e.resolveProjectReferencePath=G;function ae(we,nr){var tr=nr.extension;switch(tr){case".ts":case".d.ts":return;case".tsx":return me();case".jsx":return me()||He();case".js":return He();case".json":return rr()}function me(){return we.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function He(){return e.getAllowJSCompilerOption(we)||!e.getStrictOptionValue(we,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function rr(){return we.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=ae;function Te(we){for(var nr=we.imports,tr=we.moduleAugmentations,me=nr.map(function(Ce){return Ce.text}),He=0,rr=tr;He<rr.length;He++){var je=rr[He];je.kind===10&&me.push(je.text)}return me}function Ne(we,nr){var tr=we.imports,me=we.moduleAugmentations;if(nr<tr.length)return tr[nr];for(var He=tr.length,rr=0,je=me;rr<je.length;rr++){var Ce=je[rr];if(Ce.kind===10){if(nr===He)return Ce;He++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=Ne})(h||(h={}));var h;(function(e){function c(P,T,s,D,O,W){var E=[],v=P.emit(T,Y,D,s,O,W),S=v.emitSkipped,te=v.diagnostics;return{outputFiles:E,emitSkipped:S,diagnostics:te};function Y(Z,ce,k){E.push({name:Z,writeByteOrderMark:k,text:ce})}}e.getFileEmitOutput=c,function(P){function T(){function ne(oe,w,re){var M={getKeys:function(U){return w.get(U)},getValues:function(U){return oe.get(U)},keys:function(){return oe.keys()},deleteKey:function(U){(re||(re=new e.Set)).add(U);var H=oe.get(U);return H?(H.forEach(function(q){return D(w,q,U)}),oe.delete(U),!0):!1},set:function(U,H){re==null||re.delete(U);var q=oe.get(U);return oe.set(U,H),q==null||q.forEach(function(R){H.has(R)||D(w,R,U)}),H.forEach(function(R){q!=null&&q.has(R)||s(w,R,U)}),M}};return M}return ne(new e.Map,new e.Map,void 0)}P.createManyToManyPathMap=T;function s(ne,oe,w){var re=ne.get(oe);re||(re=new e.Set,ne.set(oe,re)),re.add(w)}function D(ne,oe,w){var re=ne.get(oe);return re!=null&&re.delete(w)?(re.size||ne.delete(oe),!0):!1}function O(ne){return e.mapDefined(ne.declarations,function(oe){var w;return(w=e.getSourceFileOfNode(oe))===null||w===void 0?void 0:w.resolvedPath})}function W(ne,oe){var w=ne.getSymbolAtLocation(oe);return w&&O(w)}function E(ne,oe,w,re){return e.toPath(ne.getProjectReferenceRedirect(oe)||oe,w,re)}function v(ne,oe,w){var re;if(oe.imports&&oe.imports.length>0)for(var M=ne.getTypeChecker(),U=0,H=oe.imports;U<H.length;U++){var q=H[U],R=W(M,q);R==null||R.forEach(Te)}var K=e.getDirectoryPath(oe.resolvedPath);if(oe.referencedFiles&&oe.referencedFiles.length>0)for(var I=0,he=oe.referencedFiles;I<he.length;I++){var le=he[I],ee=E(ne,le.fileName,K,w);Te(ee)}if(oe.resolvedTypeReferenceDirectiveNames&&oe.resolvedTypeReferenceDirectiveNames.forEach(function(Ne){if(Ne){var we=Ne.resolvedFileName,nr=E(ne,we,K,w);Te(nr)}}),oe.moduleAugmentations.length)for(var M=ne.getTypeChecker(),J=0,de=oe.moduleAugmentations;J<de.length;J++){var De=de[J];if(e.isStringLiteral(De)){var N=M.getSymbolAtLocation(De);N&&ae(N)}}for(var b=0,Q=ne.getTypeChecker().getAmbientModules();b<Q.length;b++){var G=Q[b];G.declarations&&G.declarations.length>1&&ae(G)}return re;function ae(Ne){if(Ne.declarations)for(var we=0,nr=Ne.declarations;we<nr.length;we++){var tr=nr[we],me=e.getSourceFileOfNode(tr);me&&me!==oe&&Te(me.resolvedPath)}}function Te(Ne){(re||(re=new e.Set)).add(Ne)}}function S(ne,oe){return oe&&!oe.referencedMap==!ne}P.canReuseOldState=S;function te(ne,oe,w,re){var M,U,H,q=new e.Map,R=ne.getCompilerOptions().module!==e.ModuleKind.None?T():void 0,K=R?T():void 0,I=S(R,w);ne.getTypeChecker();for(var he=0,le=ne.getSourceFiles();he<le.length;he++){var ee=le[he],J=e.Debug.checkDefined(ee.version,"Program intended to be used with Builder should have source files with versions set"),de=I?(M=w.oldSignatures)===null||M===void 0?void 0:M.get(ee.resolvedPath):void 0,De=de===void 0?I?(U=w.fileInfos.get(ee.resolvedPath))===null||U===void 0?void 0:U.signature:void 0:de||void 0;if(R){var N=v(ne,ee,oe);if(N&&R.set(ee.resolvedPath,N),I){var b=(H=w.oldExportedModulesMap)===null||H===void 0?void 0:H.get(ee.resolvedPath),Q=b===void 0?w.exportedModulesMap.getValues(ee.resolvedPath):b||void 0;Q&&K.set(ee.resolvedPath,Q)}}q.set(ee.resolvedPath,{version:J,signature:De,affectsGlobalScope:ge(ee)||void 0,impliedFormat:ee.impliedNodeFormat})}return{fileInfos:q,referencedMap:R,exportedModulesMap:K,useFileVersionAsSignature:!re&&!I}}P.create=te;function Y(ne){ne.allFilesExcludingDefaultLibraryFile=void 0,ne.allFileNames=void 0}P.releaseCache=Y;function Z(ne,oe,w,re,M,U){var H,q,R=ce(ne,oe,w,re,M,U);return(H=ne.oldSignatures)===null||H===void 0||H.clear(),(q=ne.oldExportedModulesMap)===null||q===void 0||q.clear(),R}P.getFilesAffectedBy=Z;function ce(ne,oe,w,re,M,U){var H=oe.getSourceFileByPath(w);return H?X(ne,oe,H,re,M,U)?(ne.referencedMap?_e:fe)(ne,oe,H,re,M,U):[H]:e.emptyArray}P.getFilesAffectedByWithOldState=ce;function k(ne,oe,w){ne.fileInfos.get(w).signature=oe,(ne.hasCalledUpdateShapeSignature||(ne.hasCalledUpdateShapeSignature=new e.Set)).add(w)}P.updateSignatureOfFile=k;function X(ne,oe,w,re,M,U,H){var q;if(H===void 0&&(H=ne.useFileVersionAsSignature),!((q=ne.hasCalledUpdateShapeSignature)===null||q===void 0)&&q.has(w.resolvedPath))return!1;var R=ne.fileInfos.get(w.resolvedPath),K=R.signature,I;if(!w.isDeclarationFile&&!H&&oe.emit(w,function(le,ee,J,de,De,N){e.Debug.assert(e.isDeclarationFileName(le),"File extension for signature expected to be dts: Got:: ".concat(le)),I=e.computeSignatureWithDiagnostics(w,ee,M,U,N),I!==K&&A(ne,w,De[0].exportedModulesFromDeclarationEmit)},re,!0,void 0,!0),I===void 0&&(I=w.version,ne.exportedModulesMap&&I!==K)){(ne.oldExportedModulesMap||(ne.oldExportedModulesMap=new e.Map)).set(w.resolvedPath,ne.exportedModulesMap.getValues(w.resolvedPath)||!1);var he=ne.referencedMap?ne.referencedMap.getValues(w.resolvedPath):void 0;he?ne.exportedModulesMap.set(w.resolvedPath,he):ne.exportedModulesMap.deleteKey(w.resolvedPath)}return(ne.oldSignatures||(ne.oldSignatures=new e.Map)).set(w.resolvedPath,K||!1),(ne.hasCalledUpdateShapeSignature||(ne.hasCalledUpdateShapeSignature=new e.Set)).add(w.resolvedPath),R.signature=I,I!==K}P.updateShapeSignature=X;function A(ne,oe,w){if(!ne.exportedModulesMap)return;if((ne.oldExportedModulesMap||(ne.oldExportedModulesMap=new e.Map)).set(oe.resolvedPath,ne.exportedModulesMap.getValues(oe.resolvedPath)||!1),!w){ne.exportedModulesMap.deleteKey(oe.resolvedPath);return}var re;w.forEach(function(U){return M(O(U))}),re?ne.exportedModulesMap.set(oe.resolvedPath,re):ne.exportedModulesMap.deleteKey(oe.resolvedPath);function M(U){U!=null&&U.length&&(re||(re=new e.Set),U.forEach(function(H){return re.add(H)}))}}P.updateExportedModules=A;function y(ne,oe,w){var re=oe.getCompilerOptions();if(e.outFile(re)||!ne.referencedMap||ge(w))return C(ne,oe);for(var M=new e.Set,U=[w.resolvedPath];U.length;){var H=U.pop();if(!M.has(H)){M.add(H);var q=ne.referencedMap.getValues(H);if(q)for(var R=q.keys(),K=R.next();!K.done;K=R.next())U.push(K.value)}}return e.arrayFrom(e.mapDefinedIterator(M.keys(),function(I){var he,le;return(le=(he=oe.getSourceFileByPath(I))===null||he===void 0?void 0:he.fileName)!==null&&le!==void 0?le:I}))}P.getAllDependencies=y;function C(ne,oe){if(!ne.allFileNames){var w=oe.getSourceFiles();ne.allFileNames=w===e.emptyArray?e.emptyArray:w.map(function(re){return re.fileName})}return ne.allFileNames}function B(ne,oe){var w=ne.referencedMap.getKeys(oe);return w?e.arrayFrom(w.keys()):[]}P.getReferencedByPaths=B;function F(ne){for(var oe=0,w=ne.statements;oe<w.length;oe++){var re=w[oe];if(!e.isModuleWithStringLiteralName(re))return!1}return!0}function z(ne){return e.some(ne.moduleAugmentations,function(oe){return e.isGlobalScopeAugmentation(oe.parent)})}function ge(ne){return z(ne)||!e.isExternalOrCommonJsModule(ne)&&!e.isJsonSourceFile(ne)&&!F(ne)}function Pe(ne,oe,w){if(ne.allFilesExcludingDefaultLibraryFile)return ne.allFilesExcludingDefaultLibraryFile;var re;w&&q(w);for(var M=0,U=oe.getSourceFiles();M<U.length;M++){var H=U[M];H!==w&&q(H)}return ne.allFilesExcludingDefaultLibraryFile=re||e.emptyArray,ne.allFilesExcludingDefaultLibraryFile;function q(R){oe.isSourceFileDefaultLibrary(R)||(re||(re=[])).push(R)}}P.getAllFilesExcludingDefaultLibraryFile=Pe;function fe(ne,oe,w){var re=oe.getCompilerOptions();return re&&e.outFile(re)?[w]:Pe(ne,oe,w)}function _e(ne,oe,w,re,M,U){if(ge(w))return Pe(ne,oe,w);var H=oe.getCompilerOptions();if(H&&(H.isolatedModules||e.outFile(H)))return[w];var q=new e.Map;q.set(w.resolvedPath,w);for(var R=B(ne,w.resolvedPath);R.length>0;){var K=R.pop();if(!q.has(K)){var I=oe.getSourceFileByPath(K);q.set(K,I),I&&X(ne,oe,I,re,M,U)&&R.push.apply(R,B(ne,I.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(q.values(),function(he){return he}))}}(e.BuilderState||(e.BuilderState={}))})(h||(h={}));var h;(function(e){(function(J){J[J.DtsOnly=0]="DtsOnly",J[J.Full=1]="Full"})(e.BuilderFileEmit||(e.BuilderFileEmit={}));function c(J,de){return J===de||J!==void 0&&de!==void 0&&J.size===de.size&&!e.forEachKey(J,function(De){return!de.has(De)})}function P(J,de,De,N){var b,Q,G=e.BuilderState.create(J,de,De,N);G.program=J;var ae=J.getCompilerOptions();G.compilerOptions=ae;var Te=e.outFile(ae);Te?ae.composite&&(De!=null&&De.outSignature)&&Te===e.outFile(De==null?void 0:De.compilerOptions)&&(G.outSignature=De==null?void 0:De.outSignature):G.semanticDiagnosticsPerFile=new e.Map,G.changedFilesSet=new e.Set,G.latestChangedDtsFile=ae.composite?De==null?void 0:De.latestChangedDtsFile:void 0;var Ne=e.BuilderState.canReuseOldState(G.referencedMap,De),we=Ne?De.compilerOptions:void 0,nr=Ne&&De.semanticDiagnosticsPerFile&&!!G.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(ae,we),tr=ae.composite&&(De==null?void 0:De.emitSignatures)&&!Te&&!e.compilerOptionsAffectDeclarationPath(ae,De.compilerOptions);Ne&&((b=De.changedFilesSet)===null||b===void 0||b.forEach(function(Ce){return G.changedFilesSet.add(Ce)}),!Te&&De.affectedFilesPendingEmit&&(G.affectedFilesPendingEmit=De.affectedFilesPendingEmit.slice(),G.affectedFilesPendingEmitKind=De.affectedFilesPendingEmitKind&&new e.Map(De.affectedFilesPendingEmitKind),G.affectedFilesPendingEmitIndex=De.affectedFilesPendingEmitIndex,G.seenAffectedFiles=new e.Set));var me=G.referencedMap,He=Ne?De.referencedMap:void 0,rr=nr&&!ae.skipLibCheck==!we.skipLibCheck,je=rr&&!ae.skipDefaultLibCheck==!we.skipDefaultLibCheck;return G.fileInfos.forEach(function(Ce,Ae){var qe,xe;if(!Ne||!(qe=De.fileInfos.get(Ae))||qe.version!==Ce.version||qe.impliedFormat!==Ce.impliedFormat||!c(xe=me&&me.getValues(Ae),He&&He.getValues(Ae))||xe&&e.forEachKey(xe,function(Je){return!G.fileInfos.has(Je)&&De.fileInfos.has(Je)}))G.changedFilesSet.add(Ae);else if(nr){var L=J.getSourceFileByPath(Ae);if(L.isDeclarationFile&&!rr||L.hasNoDefaultLib&&!je)return;var ue=De.semanticDiagnosticsPerFile.get(Ae);ue&&(G.semanticDiagnosticsPerFile.set(Ae,De.hasReusableDiagnostic?T(ue,J,de):ue),G.semanticDiagnosticsFromOldState||(G.semanticDiagnosticsFromOldState=new e.Set),G.semanticDiagnosticsFromOldState.add(Ae))}if(tr){var Ue=De.emitSignatures.get(Ae);Ue&&(G.emitSignatures||(G.emitSignatures=new e.Map)).set(Ae,Ue)}}),Ne&&e.forEachEntry(De.fileInfos,function(Ce,Ae){return Ce.affectsGlobalScope&&!G.fileInfos.has(Ae)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(G,J,void 0).forEach(function(Ce){return G.changedFilesSet.add(Ce.resolvedPath)}):we&&!Te&&e.compilerOptionsAffectEmit(ae,we)&&(J.getSourceFiles().forEach(function(Ce){return K(G,Ce.resolvedPath,1)}),e.Debug.assert(!G.seenAffectedFiles||!G.seenAffectedFiles.size),G.seenAffectedFiles=G.seenAffectedFiles||new e.Set),G.buildInfoEmitPending=!Ne||G.changedFilesSet.size!==(((Q=De.changedFilesSet)===null||Q===void 0?void 0:Q.size)||0),G}function T(J,de,De){if(!J.length)return e.emptyArray;var N=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(de.getCompilerOptions()),de.getCurrentDirectory()));return J.map(function(Q){var G=s(Q,de,b);G.reportsUnnecessary=Q.reportsUnnecessary,G.reportsDeprecated=Q.reportDeprecated,G.source=Q.source,G.skippedOn=Q.skippedOn;var ae=Q.relatedInformation;return G.relatedInformation=ae?ae.length?ae.map(function(Te){return s(Te,de,b)}):[]:void 0,G});function b(Q){return e.toPath(Q,N,De)}}function s(J,de,De){var N=J.file;return n(n({},J),{file:N?de.getSourceFileByPath(De(N)):void 0})}function D(J){e.BuilderState.releaseCache(J),J.program=void 0}function O(J){var de=e.outFile(J.compilerOptions);return e.Debug.assert(!J.changedFilesSet.size||de),{affectedFilesPendingEmit:J.affectedFilesPendingEmit&&J.affectedFilesPendingEmit.slice(),affectedFilesPendingEmitKind:J.affectedFilesPendingEmitKind&&new e.Map(J.affectedFilesPendingEmitKind),affectedFilesPendingEmitIndex:J.affectedFilesPendingEmitIndex,seenEmittedFiles:J.seenEmittedFiles&&new e.Map(J.seenEmittedFiles),programEmitComplete:J.programEmitComplete,emitSignatures:J.emitSignatures&&new e.Map(J.emitSignatures),outSignature:J.outSignature,latestChangedDtsFile:J.latestChangedDtsFile,hasChangedEmitSignature:J.hasChangedEmitSignature,changedFilesSet:de?new e.Set(J.changedFilesSet):void 0}}function W(J,de){J.affectedFilesPendingEmit=de.affectedFilesPendingEmit,J.affectedFilesPendingEmitKind=de.affectedFilesPendingEmitKind,J.affectedFilesPendingEmitIndex=de.affectedFilesPendingEmitIndex,J.seenEmittedFiles=de.seenEmittedFiles,J.programEmitComplete=de.programEmitComplete,J.emitSignatures=de.emitSignatures,J.outSignature=de.outSignature,J.latestChangedDtsFile=de.latestChangedDtsFile,J.hasChangedEmitSignature=de.hasChangedEmitSignature,de.changedFilesSet&&(J.changedFilesSet=de.changedFilesSet)}function E(J,de){e.Debug.assert(!de||!J.affectedFiles||J.affectedFiles[J.affectedFilesIndex-1]!==de||!J.semanticDiagnosticsPerFile.has(de.resolvedPath))}function v(J,de,De,N,b){for(var Q,G;;){var ae=J.affectedFiles;if(ae){for(var Te=J.seenAffectedFiles,Ne=J.affectedFilesIndex;Ne<ae.length;){var we=ae[Ne];if(!Te.has(we.resolvedPath))return J.affectedFilesIndex=Ne,Z(J,we,de,De,N,b),we;Ne++}J.changedFilesSet.delete(J.currentChangedFilePath),J.currentChangedFilePath=void 0,(Q=J.oldSignatures)===null||Q===void 0||Q.clear(),(G=J.oldExportedModulesMap)===null||G===void 0||G.clear(),J.affectedFiles=void 0}var nr=J.changedFilesSet.keys().next();if(nr.done)return;var tr=e.Debug.checkDefined(J.program),me=tr.getCompilerOptions();if(e.outFile(me))return e.Debug.assert(!J.semanticDiagnosticsPerFile),tr;J.affectedFiles=e.BuilderState.getFilesAffectedByWithOldState(J,tr,nr.value,de,De,N),J.currentChangedFilePath=nr.value,J.affectedFilesIndex=0,J.seenAffectedFiles||(J.seenAffectedFiles=new e.Set)}}function S(J){J.affectedFilesPendingEmit=void 0,J.affectedFilesPendingEmitKind=void 0,J.affectedFilesPendingEmitIndex=void 0}function te(J){var de=J.affectedFilesPendingEmit;if(de){for(var De=J.seenEmittedFiles||(J.seenEmittedFiles=new e.Map),N=J.affectedFilesPendingEmitIndex;N<de.length;N++){var b=e.Debug.checkDefined(J.program).getSourceFileByPath(de[N]);if(b){var Q=De.get(b.resolvedPath),G=e.Debug.checkDefined(e.Debug.checkDefined(J.affectedFilesPendingEmitKind).get(b.resolvedPath));if(Q===void 0||Q<G)return J.affectedFilesPendingEmitIndex=N,{affectedFile:b,emitKind:G}}}S(J)}}function Y(J){if(!J.cleanedDiagnosticsOfLibFiles){J.cleanedDiagnosticsOfLibFiles=!0;var de=e.Debug.checkDefined(J.program),De=de.getCompilerOptions();e.forEach(de.getSourceFiles(),function(N){return de.isSourceFileDefaultLibrary(N)&&!e.skipTypeChecking(N,De,de)&&k(J,N.resolvedPath)})}}function Z(J,de,De,N,b,Q){if(k(J,de.resolvedPath),J.allFilesExcludingDefaultLibraryFile===J.affectedFiles){Y(J),e.BuilderState.updateShapeSignature(J,e.Debug.checkDefined(J.program),de,De,N,b);return}J.compilerOptions.assumeChangesOnlyAffectDirectDependencies||y(J,de,De,N,b,Q)}function ce(J,de,De,N,b,Q){if(k(J,de),!J.changedFilesSet.has(de)){var G=e.Debug.checkDefined(J.program),ae=G.getSourceFileByPath(de);ae&&(e.BuilderState.updateShapeSignature(J,G,ae,De,N,b,!Q.disableUseFileVersionAsSignature),e.getEmitDeclarations(J.compilerOptions)&&K(J,de,0))}}function k(J,de){return J.semanticDiagnosticsFromOldState?(J.semanticDiagnosticsFromOldState.delete(de),J.semanticDiagnosticsPerFile.delete(de),!J.semanticDiagnosticsFromOldState.size):!0}function X(J,de){var De=e.Debug.checkDefined(J.oldSignatures).get(de)||void 0,N=e.Debug.checkDefined(J.fileInfos.get(de)).signature;return N!==De}function A(J,de,De,N,b,Q){var G;return!((G=J.fileInfos.get(de))===null||G===void 0)&&G.affectsGlobalScope?(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(J,J.program,void 0).forEach(function(ae){return ce(J,ae.resolvedPath,De,N,b,Q)}),Y(J),!0):!1}function y(J,de,De,N,b,Q){var G;if(!(!J.exportedModulesMap||!J.changedFilesSet.has(de.resolvedPath))&&X(J,de.resolvedPath)){if(J.compilerOptions.isolatedModules){var ae=new e.Map;ae.set(de.resolvedPath,!0);for(var Te=e.BuilderState.getReferencedByPaths(J,de.resolvedPath);Te.length>0;){var Ne=Te.pop();if(!ae.has(Ne)){if(ae.set(Ne,!0),A(J,Ne,De,N,b,Q))return;if(ce(J,Ne,De,N,b,Q),X(J,Ne)){var we=e.Debug.checkDefined(J.program).getSourceFileByPath(Ne);Te.push.apply(Te,e.BuilderState.getReferencedByPaths(J,we.resolvedPath))}}}}var nr=new e.Set;(G=J.exportedModulesMap.getKeys(de.resolvedPath))===null||G===void 0||G.forEach(function(tr){if(A(J,tr,De,N,b,Q))return!0;var me=J.referencedMap.getKeys(tr);return me&&e.forEachKey(me,function(He){return C(J,He,nr,De,N,b,Q)})})}}function C(J,de,De,N,b,Q,G){var ae,Te;if(e.tryAddToSet(De,de)){if(A(J,de,N,b,Q,G))return!0;ce(J,de,N,b,Q,G),(ae=J.exportedModulesMap.getKeys(de))===null||ae===void 0||ae.forEach(function(Ne){return C(J,Ne,De,N,b,Q,G)}),(Te=J.referencedMap.getKeys(de))===null||Te===void 0||Te.forEach(function(Ne){return!De.has(Ne)&&ce(J,Ne,N,b,Q,G)})}}function B(J,de,De,N,b){b?J.buildInfoEmitPending=!1:de===J.program?(J.changedFilesSet.clear(),J.programEmitComplete=!0):(J.seenAffectedFiles.add(de.resolvedPath),J.buildInfoEmitPending=!0,De!==void 0&&(J.seenEmittedFiles||(J.seenEmittedFiles=new e.Map)).set(de.resolvedPath,De),N?J.affectedFilesPendingEmitIndex++:J.affectedFilesIndex++)}function F(J,de,De){return B(J,De),{result:de,affected:De}}function z(J,de,De,N,b,Q){return B(J,De,N,b,Q),{result:de,affected:De}}function ge(J,de,De){return e.concatenate(Pe(J,de,De),e.Debug.checkDefined(J.program).getProgramDiagnostics(de))}function Pe(J,de,De){var N=de.resolvedPath;if(J.semanticDiagnosticsPerFile){var b=J.semanticDiagnosticsPerFile.get(N);if(b)return e.filterSemanticDiagnostics(b,J.compilerOptions)}var Q=e.Debug.checkDefined(J.program).getBindAndCheckDiagnostics(de,De);return J.semanticDiagnosticsPerFile&&J.semanticDiagnosticsPerFile.set(N,Q),e.filterSemanticDiagnostics(Q,J.compilerOptions)}function fe(J){return!!e.outFile(J.options||{})}e.isProgramBundleEmitBuildInfo=fe;function _e(J,de){var De=e.outFile(J.compilerOptions);if(De&&!J.compilerOptions.composite)return;var N=e.Debug.checkDefined(J.program).getCurrentDirectory(),b=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(J.compilerOptions),N)),Q=J.latestChangedDtsFile?tt(J.latestChangedDtsFile):void 0;if(De){var G=[],ae=[];J.program.getRootFileNames().forEach(function(zr){var Fr=J.program.getSourceFile(zr);Fr&&(G.push(ut(Fr.resolvedPath)),ae.push(Fr.version))});var Te={fileNames:G,fileInfos:ae,options:Rr(J.compilerOptions,"affectsBundleEmitBuildInfo"),outSignature:J.outSignature,latestChangedDtsFile:Q};return Te}var Ne=[],we=new e.Map,nr,tr,me,He=e.arrayFrom(J.fileInfos.entries(),function(zr){var Fr,_t,Ct=zr[0],yt=zr[1],Fe=or(Ct);e.Debug.assert(Ne[Fe-1]===ut(Ct));var vr=(Fr=J.oldSignatures)===null||Fr===void 0?void 0:Fr.get(Ct),Le=vr!==void 0?vr||void 0:yt.signature;if(J.compilerOptions.composite){var cr=J.program.getSourceFileByPath(Ct);if(!e.isJsonSourceFile(cr)&&e.sourceFileMayBeEmitted(cr,J.program)){var $r=(_t=J.emitSignatures)===null||_t===void 0?void 0:_t.get(Ct);$r!==Le&&(me||(me=[])).push($r===void 0?Fe:[Fe,$r])}}return yt.version===Le?yt.affectsGlobalScope||yt.impliedFormat?{version:yt.version,signature:void 0,affectsGlobalScope:yt.affectsGlobalScope,impliedFormat:yt.impliedFormat}:yt.version:Le!==void 0?vr===void 0?yt:{version:yt.version,signature:Le,affectsGlobalScope:yt.affectsGlobalScope,impliedFormat:yt.impliedFormat}:{version:yt.version,signature:!1,affectsGlobalScope:yt.affectsGlobalScope,impliedFormat:yt.impliedFormat}}),rr;J.referencedMap&&(rr=e.arrayFrom(J.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(zr){return[or(zr),qr(J.referencedMap.getValues(zr))]}));var je;J.exportedModulesMap&&(je=e.mapDefined(e.arrayFrom(J.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(zr){var Fr,_t=(Fr=J.oldExportedModulesMap)===null||Fr===void 0?void 0:Fr.get(zr);if(_t===void 0)return[or(zr),qr(J.exportedModulesMap.getValues(zr))];if(_t)return[or(zr),qr(_t)]}));var Ce;if(J.semanticDiagnosticsPerFile)for(var Ae=0,qe=e.arrayFrom(J.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);Ae<qe.length;Ae++){var xe=qe[Ae],L=J.semanticDiagnosticsPerFile.get(xe);(Ce||(Ce=[])).push(L.length?[or(xe),oe(L,ut)]:or(xe))}var ue;if(J.affectedFilesPendingEmit)for(var Ue=new e.Set,Je=0,lr=J.affectedFilesPendingEmit.slice(J.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);Je<lr.length;Je++){var mr=lr[Je];e.tryAddToSet(Ue,mr)&&(ue||(ue=[])).push([or(mr),J.affectedFilesPendingEmitKind.get(mr)])}var Hr;if(J.changedFilesSet.size)for(var wr=0,Oe=e.arrayFrom(J.changedFilesSet.keys()).sort(e.compareStringsCaseSensitive);wr<Oe.length;wr++){var mr=Oe[wr];(Hr||(Hr=[])).push(or(mr))}var Ze={fileNames:Ne,fileInfos:He,options:Rr(J.compilerOptions,"affectsMultiFileEmitBuildInfo"),fileIdsList:nr,referencedMap:rr,exportedModulesMap:je,semanticDiagnosticsPerFile:Ce,affectedFilesPendingEmit:ue,changeFileSet:Hr,emitSignatures:me,latestChangedDtsFile:Q};return Ze;function tt(zr){return ut(e.getNormalizedAbsolutePath(zr,N))}function ut(zr){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(b,zr,de))}function or(zr){var Fr=we.get(zr);return Fr===void 0&&(Ne.push(ut(zr)),we.set(zr,Fr=Ne.length)),Fr}function qr(zr){var Fr=e.arrayFrom(zr.keys(),or).sort(e.compareValues),_t=Fr.join(),Ct=tr==null?void 0:tr.get(_t);return Ct===void 0&&((nr||(nr=[])).push(Fr),(tr||(tr=new e.Map)).set(_t,Ct=nr.length)),Ct}function Rr(zr,Fr){for(var _t,Ct=e.getOptionsNameMap().optionsNameMap,yt=0,Fe=e.getOwnKeys(zr).sort(e.compareStringsCaseSensitive);yt<Fe.length;yt++){var vr=Fe[yt],Le=Ct.get(vr.toLowerCase());Le!=null&&Le[Fr]&&((_t||(_t={}))[vr]=ne(Le,zr[vr],tt))}return _t}}function ne(J,de,De){if(J){if(J.type==="list"){var N=de;if(J.element.isFilePath&&N.length)return N.map(De)}else if(J.isFilePath)return De(de)}return de}function oe(J,de){return e.Debug.assert(!!J.length),J.map(function(De){var N=w(De,de);N.reportsUnnecessary=De.reportsUnnecessary,N.reportDeprecated=De.reportsDeprecated,N.source=De.source,N.skippedOn=De.skippedOn;var b=De.relatedInformation;return N.relatedInformation=b?b.length?b.map(function(Q){return w(Q,de)}):[]:void 0,N})}function w(J,de){var De=J.file;return n(n({},J),{file:De?de(De.resolvedPath):void 0})}var re;(function(J){J[J.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",J[J.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(re=e.BuilderProgramKind||(e.BuilderProgramKind={}));function M(J,de,De,N,b,Q){var G,ae,Te;return J===void 0?(e.Debug.assert(de===void 0),G=De,Te=N,e.Debug.assert(!!Te),ae=Te.getProgram()):e.isArray(J)?(Te=N,ae=e.createProgram({rootNames:J,options:de,host:De,oldProgram:Te&&Te.getProgramOrUndefined(),configFileParsingDiagnostics:b,projectReferences:Q}),G=De):(ae=J,G=de,Te=De,b=N),{host:G,newProgram:ae,oldProgram:Te,configFileParsingDiagnostics:b||e.emptyArray}}e.getBuilderCreationParameters=M;function U(J,de){return(de==null?void 0:de.sourceMapUrlPos)!==void 0?J.substring(0,de.sourceMapUrlPos):J}function H(J,de,De,N,b){var Q;de=U(de,b);var G;return!((Q=b==null?void 0:b.diagnostics)===null||Q===void 0)&&Q.length&&(de+=b.diagnostics.map(function(Ne){return"".concat(Te(Ne)).concat(e.DiagnosticCategory[Ne.category]).concat(Ne.code,": ").concat(ae(Ne.messageText))}).join(`
`)),(De??e.generateDjb2Hash)(de);function ae(Ne){return e.isString(Ne)?Ne:Ne===void 0?"":Ne.next?Ne.messageText+Ne.next.map(ae).join(`
`):Ne.messageText}function Te(Ne){return Ne.file.resolvedPath===J.resolvedPath?"(".concat(Ne.start,",").concat(Ne.length,")"):(G===void 0&&(G=e.getDirectoryPath(J.resolvedPath)),"".concat(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(G,Ne.file.resolvedPath,N)),"(").concat(Ne.start,",").concat(Ne.length,")"))}}e.computeSignatureWithDiagnostics=H;function q(J,de,De){return(de??e.generateDjb2Hash)(U(J,De))}e.computeSignature=q;function R(J,de){var De=de.newProgram,N=de.host,b=de.oldProgram,Q=de.configFileParsingDiagnostics,G=b&&b.getState();if(G&&De===G.program&&Q===De.getConfigFileParsingDiagnostics())return De=void 0,G=void 0,b;var ae=e.createGetCanonicalFileName(N.useCaseSensitiveFileNames()),Te=e.maybeBind(N,N.createHash),Ne=P(De,ae,G,N.disableUseFileVersionAsSignature);De.getProgramBuildInfo=function(){return _e(Ne,ae)},De=void 0,b=void 0,G=void 0;var we=function(){return Ne},nr=ee(we,Q);return nr.getState=we,nr.saveEmitState=function(){return O(Ne)},nr.restoreEmitState=function(Ae){return W(Ne,Ae)},nr.hasChangedEmitSignature=function(){return!!Ne.hasChangedEmitSignature},nr.getAllDependencies=function(Ae){return e.BuilderState.getAllDependencies(Ne,e.Debug.checkDefined(Ne.program),Ae)},nr.getSemanticDiagnostics=Ce,nr.emit=rr,nr.releaseProgram=function(){return D(Ne)},J===re.SemanticDiagnosticsBuilderProgram?nr.getSemanticDiagnosticsOfNextAffectedFile=je:J===re.EmitAndSemanticDiagnosticsBuilderProgram?(nr.getSemanticDiagnosticsOfNextAffectedFile=je,nr.emitNextAffectedFile=me,nr.emitBuildInfo=tr):e.notImplemented(),nr;function tr(Ae,qe){if(Ne.buildInfoEmitPending){var xe=e.Debug.checkDefined(Ne.program).emitBuildInfo(Ae||e.maybeBind(N,N.writeFile),qe);return Ne.buildInfoEmitPending=!1,xe}return e.emitSkippedWithNoDiagnostics}function me(Ae,qe,xe,L){var ue=v(Ne,qe,Te,ae,N),Ue=1,Je=!1;if(!ue)if(e.outFile(Ne.compilerOptions)){var Hr=e.Debug.checkDefined(Ne.program);if(Ne.programEmitComplete)return;ue=Hr}else{var lr=te(Ne);if(!lr){if(!Ne.buildInfoEmitPending)return;var mr=e.Debug.checkDefined(Ne.program);return z(Ne,mr.emitBuildInfo(Ae||e.maybeBind(N,N.writeFile),qe),mr,1,!1,!0)}ue=lr.affectedFile,Ue=lr.emitKind,Je=!0}return z(Ne,e.Debug.checkDefined(Ne.program).emit(ue===Ne.program?void 0:ue,e.getEmitDeclarations(Ne.compilerOptions)?He(Ae,L):Ae||e.maybeBind(N,N.writeFile),qe,xe||Ue===0,L),ue,Ue,Je)}function He(Ae,qe){return function(xe,L,ue,Ue,Je,lr){var mr,Hr,wr,Oe,Ze,tt,ut;if(e.isDeclarationFileName(xe))if(e.outFile(Ne.compilerOptions)){if(Ne.compilerOptions.composite){var yt=q(L,Te,lr);if(yt===Ne.outSignature)return;Ne.outSignature=yt,Ne.hasChangedEmitSignature=!0,Ne.latestChangedDtsFile=xe}}else{e.Debug.assert((Je==null?void 0:Je.length)===1);var or=void 0;if(!qe){var qr=Je[0],Rr=Ne.fileInfos.get(qr.resolvedPath);if(Rr.signature===qr.version){var zr=H(qr,L,Te,ae,lr);if(!((mr=lr==null?void 0:lr.diagnostics)===null||mr===void 0)&&mr.length||(or=zr),zr!==qr.version)if(N.storeFilesChangingSignatureDuringEmit&&((Hr=Ne.filesChangingSignature)!==null&&Hr!==void 0?Hr:Ne.filesChangingSignature=new e.Set).add(qr.resolvedPath),Ne.exportedModulesMap&&e.BuilderState.updateExportedModules(Ne,qr,qr.exportedModulesFromDeclarationEmit),Ne.affectedFiles){var Fr=(wr=Ne.oldSignatures)===null||wr===void 0?void 0:wr.get(qr.resolvedPath);Fr===void 0&&((Oe=Ne.oldSignatures)!==null&&Oe!==void 0?Oe:Ne.oldSignatures=new e.Map).set(qr.resolvedPath,Rr.signature||!1),Rr.signature=zr}else Rr.signature=zr,(Ze=Ne.oldExportedModulesMap)===null||Ze===void 0||Ze.clear()}}if(Ne.compilerOptions.composite){var _t=Je[0].resolvedPath,Ct=(tt=Ne.emitSignatures)===null||tt===void 0?void 0:tt.get(_t);if(or??(or=q(L,Te,lr)),or===Ct)return;((ut=Ne.emitSignatures)!==null&&ut!==void 0?ut:Ne.emitSignatures=new e.Map).set(_t,or),Ne.hasChangedEmitSignature=!0,Ne.latestChangedDtsFile=xe}}Ae?Ae(xe,L,ue,Ue,Je,lr):N.writeFile?N.writeFile(xe,L,ue,Ue,Je,lr):Ne.program.writeFile(xe,L,ue,Ue,Je,lr)}}function rr(Ae,qe,xe,L,ue){var Ue;J===re.EmitAndSemanticDiagnosticsBuilderProgram&&E(Ne,Ae);var Je=e.handleNoEmitOptions(nr,Ae,qe,xe);if(Je)return Je;if(!Ae)if(J===re.EmitAndSemanticDiagnosticsBuilderProgram){for(var lr=[],mr=!1,Hr=void 0,wr=[],Oe=void 0;Oe=me(qe,xe,L,ue);)mr=mr||Oe.result.emitSkipped,Hr=e.addRange(Hr,Oe.result.diagnostics),wr=e.addRange(wr,Oe.result.emittedFiles),lr=e.addRange(lr,Oe.result.sourceMaps);return{emitSkipped:mr,diagnostics:Hr||e.emptyArray,emittedFiles:wr,sourceMaps:lr}}else!((Ue=Ne.affectedFilesPendingEmitKind)===null||Ue===void 0)&&Ue.size&&(e.Debug.assert(J===re.SemanticDiagnosticsBuilderProgram),(!L||e.every(Ne.affectedFilesPendingEmit,function(Ze,tt){return tt<Ne.affectedFilesPendingEmitIndex||Ne.affectedFilesPendingEmitKind.get(Ze)===0}))&&S(Ne));return e.Debug.checkDefined(Ne.program).emit(Ae,e.getEmitDeclarations(Ne.compilerOptions)?He(qe,ue):qe||e.maybeBind(N,N.writeFile),xe,L,ue)}function je(Ae,qe){for(;;){var xe=v(Ne,Ae,Te,ae,N);if(xe){if(xe===Ne.program)return F(Ne,Ne.program.getSemanticDiagnostics(void 0,Ae),xe)}else return;if((J===re.EmitAndSemanticDiagnosticsBuilderProgram||Ne.compilerOptions.noEmit||Ne.compilerOptions.noEmitOnError)&&K(Ne,xe.resolvedPath,1),qe&&qe(xe)){B(Ne,xe);continue}return F(Ne,ge(Ne,xe,Ae),xe)}}function Ce(Ae,qe){E(Ne,Ae);var xe=e.Debug.checkDefined(Ne.program).getCompilerOptions();if(e.outFile(xe))return e.Debug.assert(!Ne.semanticDiagnosticsPerFile),e.Debug.checkDefined(Ne.program).getSemanticDiagnostics(Ae,qe);if(Ae)return ge(Ne,Ae,qe);for(;je(qe););for(var L,ue=0,Ue=e.Debug.checkDefined(Ne.program).getSourceFiles();ue<Ue.length;ue++){var Je=Ue[ue];L=e.addRange(L,ge(Ne,Je,qe))}return L||e.emptyArray}}e.createBuilderProgram=R;function K(J,de,De){J.affectedFilesPendingEmit||(J.affectedFilesPendingEmit=[]),J.affectedFilesPendingEmitKind||(J.affectedFilesPendingEmitKind=new e.Map);var N=J.affectedFilesPendingEmitKind.get(de);J.affectedFilesPendingEmit.push(de),J.affectedFilesPendingEmitKind.set(de,N||De),J.affectedFilesPendingEmitIndex===void 0&&(J.affectedFilesPendingEmitIndex=0)}function I(J){return e.isString(J)?{version:J,signature:J,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(J.signature)?J:{version:J.version,signature:J.signature===!1?void 0:J.version,affectsGlobalScope:J.affectsGlobalScope,impliedFormat:J.impliedFormat}}e.toBuilderStateFileInfo=I;function he(J,de,De){var N,b,Q,G,ae=e.getDirectoryPath(e.getNormalizedAbsolutePath(de,De.getCurrentDirectory())),Te=e.createGetCanonicalFileName(De.useCaseSensitiveFileNames()),Ne,we,nr,tr=J.latestChangedDtsFile?je(J.latestChangedDtsFile):void 0;if(fe(J))Ne={fileInfos:new e.Map,compilerOptions:J.options?e.convertToOptionsWithAbsolutePaths(J.options,je):{},latestChangedDtsFile:tr,outSignature:J.outSignature};else{we=(N=J.fileNames)===null||N===void 0?void 0:N.map(rr),nr=(b=J.fileIdsList)===null||b===void 0?void 0:b.map(function(xe){return new e.Set(xe.map(Ce))});var me=new e.Map,He=!((Q=J.options)===null||Q===void 0)&&Q.composite&&!e.outFile(J.options)?new e.Map:void 0;J.fileInfos.forEach(function(xe,L){var ue=Ce(L+1),Ue=I(xe);me.set(ue,Ue),He&&Ue.signature&&He.set(ue,Ue.signature)}),(G=J.emitSignatures)===null||G===void 0||G.forEach(function(xe){e.isNumber(xe)?He.delete(Ce(xe)):He.set(Ce(xe[0]),xe[1])}),Ne={fileInfos:me,compilerOptions:J.options?e.convertToOptionsWithAbsolutePaths(J.options,je):{},referencedMap:qe(J.referencedMap),exportedModulesMap:qe(J.exportedModulesMap),semanticDiagnosticsPerFile:J.semanticDiagnosticsPerFile&&e.arrayToMap(J.semanticDiagnosticsPerFile,function(xe){return Ce(e.isNumber(xe)?xe:xe[0])},function(xe){return e.isNumber(xe)?e.emptyArray:xe[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(J.affectedFilesPendingEmit,function(xe){return Ce(xe[0])}),affectedFilesPendingEmitKind:J.affectedFilesPendingEmit&&e.arrayToMap(J.affectedFilesPendingEmit,function(xe){return Ce(xe[0])},function(xe){return xe[1]}),affectedFilesPendingEmitIndex:J.affectedFilesPendingEmit&&0,changedFilesSet:new e.Set(e.map(J.changeFileSet,Ce)),latestChangedDtsFile:tr,emitSignatures:He!=null&&He.size?He:void 0}}return{getState:function(){return Ne},saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return Ne.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop,hasChangedEmitSignature:e.returnFalse};function rr(xe){return e.toPath(xe,ae,Te)}function je(xe){return e.getNormalizedAbsolutePath(xe,ae)}function Ce(xe){return we[xe-1]}function Ae(xe){return nr[xe-1]}function qe(xe){if(xe){var L=e.BuilderState.createManyToManyPathMap();return xe.forEach(function(ue){var Ue=ue[0],Je=ue[1];return L.set(Ce(Ue),Ae(Je))}),L}}}e.createBuilderProgramUsingProgramBuildInfo=he;function le(J,de,De){var N=e.getDirectoryPath(e.getNormalizedAbsolutePath(de,De.getCurrentDirectory())),b=e.createGetCanonicalFileName(De.useCaseSensitiveFileNames()),Q=new e.Map;return J.fileInfos.forEach(function(G,ae){var Te=e.toPath(J.fileNames[ae],N,b),Ne=e.isString(G)?G:G.version;Q.set(Te,Ne)}),Q}e.getBuildInfoFileVersionMap=le;function ee(J,de){return{getState:e.notImplemented,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:De,getProgramOrUndefined:function(){return J().program},releaseProgram:function(){return J().program=void 0},getCompilerOptions:function(){return J().compilerOptions},getSourceFile:function(N){return De().getSourceFile(N)},getSourceFiles:function(){return De().getSourceFiles()},getOptionsDiagnostics:function(N){return De().getOptionsDiagnostics(N)},getGlobalDiagnostics:function(N){return De().getGlobalDiagnostics(N)},getConfigFileParsingDiagnostics:function(){return de},getSyntacticDiagnostics:function(N,b){return De().getSyntacticDiagnostics(N,b)},getDeclarationDiagnostics:function(N,b){return De().getDeclarationDiagnostics(N,b)},getSemanticDiagnostics:function(N,b){return De().getSemanticDiagnostics(N,b)},emit:function(N,b,Q,G,ae){return De().emit(N,b,Q,G,ae)},emitBuildInfo:function(N,b){return De().emitBuildInfo(N,b)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return De().getCurrentDirectory()},close:e.noop};function De(){return e.Debug.checkDefined(J().program)}}e.createRedirectedBuilderProgram=ee})(h||(h={}));var h;(function(e){function c(s,D,O,W,E,v){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(s,D,O,W,E,v))}e.createSemanticDiagnosticsBuilderProgram=c;function P(s,D,O,W,E,v){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(s,D,O,W,E,v))}e.createEmitAndSemanticDiagnosticsBuilderProgram=P;function T(s,D,O,W,E,v){var S=e.getBuilderCreationParameters(s,D,O,W,E,v),te=S.newProgram,Y=S.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:te,compilerOptions:te.getCompilerOptions()}},Y)}e.createAbstractBuilder=T})(h||(h={}));var h;(function(e){function c(D){return e.endsWith(D,"/node_modules/.staging")?e.removeSuffix(D,"/.staging"):e.some(e.ignoredPaths,function(O){return e.stringContains(D,O)})?void 0:D}e.removeIgnoredPath=c;function P(D){var O=e.getRootLength(D);if(D.length===O)return!1;var W=D.indexOf(e.directorySeparator,O);if(W===-1)return!1;var E=D.substring(O,W+1),v=O>1||D.charCodeAt(0)!==47;if(v&&D.search(/[a-zA-Z]:/)!==0&&E.search(/[a-zA-Z]\$\//)===0){if(W=D.indexOf(e.directorySeparator,W+1),W===-1)return!1;E=D.substring(O+E.length,W+1)}if(v&&E.search(/users\//i)!==0)return!0;for(var S=W+1,te=2;te>0;te--)if(S=D.indexOf(e.directorySeparator,S)+1,S===0)return!1;return!0}e.canWatchDirectoryOrFile=P;function T(D,O,W){var E,v,S,te=e.createMultiMap(),Y=[],Z=[],ce=e.createMultiMap(),k=new e.Map,X=!1,A,y,C,B,F,z=e.memoize(function(){return D.getCurrentDirectory()}),ge=D.getCachedDirectoryStructureHost(),Pe=new e.Map,fe=e.createCacheWithRedirects(),_e=e.createCacheWithRedirects(),ne=e.createModuleResolutionCache(z(),D.getCanonicalFileName,void 0,fe,_e),oe=new e.Map,w=e.createCacheWithRedirects(),re=e.createTypeReferenceDirectiveResolutionCache(z(),D.getCanonicalFileName,void 0,ne.getPackageJsonInfoCache(),w),M=[".ts",".tsx",".js",".jsx",".json"],U=new e.Map,H=new e.Map,q=new e.Map,R=O&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(O,z())),K=R&&D.toPath(R),I=K!==void 0?K.split(e.directorySeparator).length:0,he=new e.Map;return{getModuleResolutionCache:function(){return ne},startRecordingFilesWithChangedResolutions:De,finishRecordingFilesWithChangedResolutions:N,startCachingPerDirectoryResolution:G,finishCachingPerDirectoryResolution:ae,resolveModuleNames:tr,getResolvedModuleWithFailedLookupLocationsFromCache:me,resolveTypeReferenceDirectives:nr,removeResolutionsFromProjectReferenceRedirects:wr,removeResolutionsOfFile:Oe,hasChangedAutomaticTypeDirectiveNames:function(){return X},invalidateResolutionOfFile:tt,invalidateResolutionsOfFailedLookupLocations:qr,setFilesWithInvalidatedNonRelativeUnresolvedImports:ut,createHasInvalidatedResolutions:Q,isFileWithInvalidatedNonRelativeUnresolvedImports:b,updateTypeRootsWatch:Fe,closeTypeRootsWatch:_t,clear:de};function le(Le){return Le.resolvedModule}function ee(Le){return Le.resolvedTypeReferenceDirective}function J(Le,cr){return Le===void 0||cr.length<=Le.length?!1:e.startsWith(cr,Le)&&cr[Le.length]===e.directorySeparator}function de(){e.clearMap(H,e.closeFileWatcherOf),e.clearMap(q,e.closeFileWatcherOf),U.clear(),te.clear(),_t(),Pe.clear(),oe.clear(),ce.clear(),Y.length=0,Z.length=0,C=void 0,B=void 0,F=void 0,y=void 0,A=void 0,ne.clear(),re.clear(),k.clear(),X=!1}function De(){E=[]}function N(){var Le=E;return E=void 0,Le}function b(Le){if(!S)return!1;var cr=S.get(Le);return!!cr&&!!cr.length}function Q(Le){qr();var cr=v;return v=void 0,function($r){return Le($r)||!!(cr!=null&&cr.has($r))||b($r)}}function G(){ne.clearAllExceptPackageJsonInfoCache(),re.clearAllExceptPackageJsonInfoCache(),te.forEach(ue),te.clear()}function ae(Le,cr){S=void 0,te.forEach(ue),te.clear(),Le!==cr&&(Le==null||Le.getSourceFiles().forEach(function($r){for(var Re,xr,Br,Qr=e.isExternalOrCommonJsModule($r)&&(xr=(Re=$r.packageJsonLocations)===null||Re===void 0?void 0:Re.length)!==null&&xr!==void 0?xr:0,ct=(Br=k.get($r.path))!==null&&Br!==void 0?Br:e.emptyArray,ft=ct.length;ft<Qr;ft++)L($r.packageJsonLocations[ft],!1);if(ct.length>Qr)for(var ft=Qr;ft<ct.length;ft++)q.get(ct[ft]).files--;Qr?k.set($r.path,$r.packageJsonLocations):k.delete($r.path)}),k.forEach(function($r,Re){Le!=null&&Le.getSourceFileByPath(Re)||($r.forEach(function(xr){return q.get(xr).files--}),k.delete(Re))})),H.forEach(function($r,Re){$r.refCount===0&&(H.delete(Re),$r.watcher.close())}),q.forEach(function($r,Re){$r.files===0&&$r.resolutions===0&&(q.delete(Re),$r.watcher.close())}),X=!1}function Te(Le,cr,$r,Re,xr,Br,Qr){var ct,ft,Dt=e.resolveModuleName(Le,cr,$r,Re,ne,xr,Qr);if(!D.getGlobalCache)return Dt;var Me=D.getGlobalCache();if(Me!==void 0&&!e.isExternalModuleNameRelative(Le)&&!(Dt.resolvedModule&&e.extensionIsTS(Dt.resolvedModule.extension))){var Ke=e.loadModuleFromGlobalCache(e.Debug.checkDefined(D.globalCacheResolutionModuleName)(Le),D.projectName,$r,Re,Me,ne),Vr=Ke.resolvedModule,Yr=Ke.failedLookupLocations,Nt=Ke.affectingLocations;if(Vr)return Dt.resolvedModule=Vr,(ct=Dt.failedLookupLocations).push.apply(ct,Yr),(ft=Dt.affectingLocations).push.apply(ft,Nt),Dt}return Dt}function Ne(Le,cr,$r,Re,xr,Br,Qr){return e.resolveTypeReferenceDirective(Le,cr,$r,Re,xr,re,Qr)}function we(Le){var cr,$r,Re,xr=Le.names,Br=Le.containingFile,Qr=Le.redirectedReference,ct=Le.cache,ft=Le.perDirectoryCacheWithRedirects,Dt=Le.loader,Me=Le.getResolutionWithResolvedFileName,Ke=Le.shouldRetryResolution,Vr=Le.reusedNames,Yr=Le.logChanges,Nt=Le.containingSourceFile,Wt=Le.containingSourceFileMode,sn=D.toPath(Br),en=ct.get(sn)||ct.set(sn,e.createModeAwareCache()).get(sn),Ir=e.getDirectoryPath(sn),Jr=ft.getOrCreateMapOfCacheRedirects(Qr),ye=Jr.get(Ir);ye||(ye=e.createModeAwareCache(),Jr.set(Ir,ye));for(var Ie=[],We=D.getCompilationSettings(),dr=Yr&&b(sn),ar=D.getCurrentProgram(),Sr=ar&&ar.getResolvedProjectReferenceToRedirect(Br),Or=Sr?!Qr||Qr.sourceFile.path!==Sr.sourceFile.path:!!Qr,Ge=e.createModeAwareCache(),ur=0,Lr=0,Ar=xr;Lr<Ar.length;Lr++){var rt=Ar[Lr],Et=e.isString(rt)?rt:rt.fileName.toLowerCase(),St=e.isString(rt)?Nt?e.getModeForResolutionAtIndex(Nt,ur):void 0:e.getModeForFileReference(rt,Wt);ur++;var Pt=en.get(Et,St);if(!Ge.has(Et,St)&&Or||!Pt||Pt.isInvalidated||dr&&!e.isExternalModuleNameRelative(Et)&&Ke(Pt)){var pt=Pt,Ft=ye.get(Et,St);if(Ft){Pt=Ft;var ht=((cr=D.getCompilerHost)===null||cr===void 0?void 0:cr.call(D))||D;if(e.isTraceEnabled(We,ht)){var Yt=Me(Pt);e.trace(ht,Dt===Te?Yt!=null&&Yt.resolvedFileName?Yt.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Yt!=null&&Yt.resolvedFileName?Yt.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,Et,Br,e.getDirectoryPath(Br),Yt==null?void 0:Yt.resolvedFileName,(Yt==null?void 0:Yt.packagetId)&&e.packageIdToString(Yt.packagetId))}}else Pt=Dt(Et,Br,We,(($r=D.getCompilerHost)===null||$r===void 0?void 0:$r.call(D))||D,Qr,Nt,St),ye.set(Et,St,Pt),D.onDiscoveredSymlink&&s(Pt)&&D.onDiscoveredSymlink();en.set(Et,St,Pt),Ae(Et,Pt,sn,Me),pt&&Je(pt,sn,Me),Yr&&E&&!un(pt,Pt)&&(E.push(sn),Yr=!1)}else{var ht=((Re=D.getCompilerHost)===null||Re===void 0?void 0:Re.call(D))||D;if(e.isTraceEnabled(We,ht)&&!Ge.has(Et,St)){var Yt=Me(Pt);e.trace(ht,Dt===Te?Yt!=null&&Yt.resolvedFileName?Yt.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Yt!=null&&Yt.resolvedFileName?Yt.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Et,Br,Yt==null?void 0:Yt.resolvedFileName,(Yt==null?void 0:Yt.packagetId)&&e.packageIdToString(Yt.packagetId))}}e.Debug.assert(Pt!==void 0&&!Pt.isInvalidated),Ge.set(Et,St,!0),Ie.push(Me(Pt))}return en.forEach(function(wn,Bn,yn){!Ge.has(Bn,yn)&&!e.contains(Vr,Bn)&&(Je(wn,sn,Me),en.delete(Bn,yn))}),Ie;function un(wn,Bn){if(wn===Bn)return!0;if(!wn||!Bn)return!1;var yn=Me(wn),Tn=Me(Bn);return yn===Tn?!0:!yn||!Tn?!1:yn.resolvedFileName===Tn.resolvedFileName}}function nr(Le,cr,$r,Re){return we({names:Le,containingFile:cr,redirectedReference:$r,cache:oe,perDirectoryCacheWithRedirects:w,loader:Ne,getResolutionWithResolvedFileName:ee,shouldRetryResolution:function(xr){return xr.resolvedTypeReferenceDirective===void 0},containingSourceFileMode:Re})}function tr(Le,cr,$r,Re,xr){return we({names:Le,containingFile:cr,redirectedReference:Re,cache:Pe,perDirectoryCacheWithRedirects:fe,loader:Te,getResolutionWithResolvedFileName:le,shouldRetryResolution:function(Br){return!Br.resolvedModule||!e.resolutionExtensionIsTSOrJson(Br.resolvedModule.extension)},reusedNames:$r,logChanges:W,containingSourceFile:xr})}function me(Le,cr,$r){var Re=Pe.get(D.toPath(cr));if(Re)return Re.get(Le,$r)}function He(Le){return e.endsWith(Le,"/node_modules/@types")}function rr(Le,cr){if(J(K,cr)){Le=e.isRootedDiskPath(Le)?e.normalizePath(Le):e.getNormalizedAbsolutePath(Le,z());var $r=cr.split(e.directorySeparator),Re=Le.split(e.directorySeparator);return e.Debug.assert(Re.length===$r.length,"FailedLookup: ".concat(Le," failedLookupLocationPath: ").concat(cr)),$r.length>I+1?{dir:Re.slice(0,I+1).join(e.directorySeparator),dirPath:$r.slice(0,I+1).join(e.directorySeparator)}:{dir:R,dirPath:K,nonRecursive:!1}}return je(e.getDirectoryPath(e.getNormalizedAbsolutePath(Le,z())),e.getDirectoryPath(cr))}function je(Le,cr){for(;e.pathContainsNodeModules(cr);)Le=e.getDirectoryPath(Le),cr=e.getDirectoryPath(cr);if(e.isNodeModulesDirectory(cr))return P(e.getDirectoryPath(cr))?{dir:Le,dirPath:cr}:void 0;var $r=!0,Re,xr;if(K!==void 0)for(;!J(cr,K);){var Br=e.getDirectoryPath(cr);if(Br===cr)break;$r=!1,Re=cr,xr=Le,cr=Br,Le=e.getDirectoryPath(Le)}return P(cr)?{dir:xr||Le,dirPath:Re||cr,nonRecursive:$r}:void 0}function Ce(Le){return e.fileExtensionIsOneOf(Le,M)}function Ae(Le,cr,$r,Re){if(cr.refCount)cr.refCount++,e.Debug.assertIsDefined(cr.files);else{cr.refCount=1,e.Debug.assert(e.length(cr.files)===0),e.isExternalModuleNameRelative(Le)?qe(cr):te.add(Le,cr);var xr=Re(cr);xr&&xr.resolvedFileName&&ce.add(D.toPath(xr.resolvedFileName),cr)}(cr.files||(cr.files=[])).push($r)}function qe(Le){e.Debug.assert(!!Le.refCount);var cr=Le.failedLookupLocations,$r=Le.affectingLocations;if(!(!cr.length&&!$r.length)){cr.length&&Y.push(Le);for(var Re=!1,xr=0,Br=cr;xr<Br.length;xr++){var Qr=Br[xr],ct=D.toPath(Qr),ft=rr(Qr,ct);if(ft){var Dt=ft.dir,Me=ft.dirPath,Ke=ft.nonRecursive;if(!Ce(ct)){var Vr=U.get(ct)||0;U.set(ct,Vr+1)}Me===K?(e.Debug.assert(!Ke),Re=!0):Ue(Dt,Me,Ke)}}Re&&Ue(R,K,!0),xe(Le,!cr.length)}}function xe(Le,cr){e.Debug.assert(!!Le.refCount);var $r=Le.affectingLocations;if($r.length){cr&&Z.push(Le);for(var Re=0,xr=$r;Re<xr.length;Re++){var Br=xr[Re];L(Br,!0)}}}function L(Le,cr){var $r=q.get(Le);if($r){cr?$r.resolutions++:$r.files++;return}var Re=Le;if(D.realpath&&(Re=D.realpath(Le),Le!==Re)){var xr=q.get(Re);if(xr){cr?xr.resolutions++:xr.files++,xr.paths.add(Le),q.set(Le,xr);return}}var Br=new e.Set;Br.add(Re);var Qr=P(D.toPath(Re))?D.watchAffectingFileLocation(Re,function(ft,Dt){ge==null||ge.addOrDeleteFile(ft,D.toPath(Re),Dt);var Me=ne.getPackageJsonInfoCache().getInternalMap();Br.forEach(function(Ke){ct.resolutions&&(y??(y=new e.Set)).add(Ke),ct.files&&(A??(A=new e.Set)).add(Ke),Me==null||Me.delete(D.toPath(Ke))}),D.scheduleInvalidateResolutionsOfFailedLookupLocations()}):e.noopFileWatcher,ct={watcher:Qr!==e.noopFileWatcher?{close:function(){Qr.close(),Qr=e.noopFileWatcher}}:Qr,resolutions:cr?1:0,files:cr?0:1,paths:Br};q.set(Re,ct),Le!==Re&&(q.set(Le,ct),Br.add(Le))}function ue(Le,cr){var $r=D.getCurrentProgram();!$r||!$r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(cr)?Le.forEach(qe):Le.forEach(function(Re){return xe(Re,!0)})}function Ue(Le,cr,$r){var Re=H.get(cr);Re?(e.Debug.assert(!!$r==!!Re.nonRecursive),Re.refCount++):H.set(cr,{watcher:mr(Le,cr,$r),refCount:1,nonRecursive:$r})}function Je(Le,cr,$r){if(e.unorderedRemoveItem(e.Debug.checkDefined(Le.files),cr),Le.refCount--,!Le.refCount){var Re=$r(Le);Re&&Re.resolvedFileName&&ce.remove(D.toPath(Re.resolvedFileName),Le);var xr=Le.failedLookupLocations,Br=Le.affectingLocations;if(e.unorderedRemoveItem(Y,Le)){for(var Qr=!1,ct=0,ft=xr;ct<ft.length;ct++){var Dt=ft[ct],Me=D.toPath(Dt),Ke=rr(Dt,Me);if(Ke){var Vr=Ke.dirPath,Yr=U.get(Me);Yr&&(Yr===1?U.delete(Me):(e.Debug.assert(Yr>1),U.set(Me,Yr-1))),Vr===K?Qr=!0:lr(Vr)}}Qr&&lr(K)}else Br.length&&e.unorderedRemoveItem(Z,Le);for(var Nt=0,Wt=Br;Nt<Wt.length;Nt++){var sn=Wt[Nt],en=q.get(sn);en.resolutions--}}}function lr(Le){var cr=H.get(Le);cr.refCount--}function mr(Le,cr,$r){return D.watchDirectoryOfFailedLookupLocation(Le,function(Re){var xr=D.toPath(Re);ge&&ge.addOrDeleteFileOrDirectory(Re,xr),or(xr,cr===xr)},$r?0:1)}function Hr(Le,cr,$r){var Re=Le.get(cr);Re&&(Re.forEach(function(xr){return Je(xr,cr,$r)}),Le.delete(cr))}function wr(Le){if(e.fileExtensionIs(Le,".json")){var cr=D.getCurrentProgram();if(cr){var $r=cr.getResolvedProjectReferenceByPath(Le);$r&&$r.commandLine.fileNames.forEach(function(Re){return Oe(D.toPath(Re))})}}}function Oe(Le){Hr(Pe,Le,le),Hr(oe,Le,ee)}function Ze(Le,cr){if(!Le)return!1;for(var $r=!1,Re=0,xr=Le;Re<xr.length;Re++){var Br=xr[Re];if(!(Br.isInvalidated||!cr(Br))){Br.isInvalidated=$r=!0;for(var Qr=0,ct=e.Debug.checkDefined(Br.files);Qr<ct.length;Qr++){var ft=ct[Qr];(v??(v=new e.Set)).add(ft),X=X||e.endsWith(ft,e.inferredTypesContainingFile)}}}return $r}function tt(Le){Oe(Le);var cr=X;Ze(ce.get(Le),e.returnTrue)&&X&&!cr&&D.onChangedAutomaticTypeDirectiveNames()}function ut(Le){e.Debug.assert(S===Le||S===void 0),S=Le}function or(Le,cr){if(cr)(F||(F=new e.Set)).add(Le);else{var $r=c(Le);if(!$r||(Le=$r,D.fileIsOpen(Le)))return!1;var Re=e.getDirectoryPath(Le);if(He(Le)||e.isNodeModulesDirectory(Le)||He(Re)||e.isNodeModulesDirectory(Re))(C||(C=new e.Set)).add(Le),(B||(B=new e.Set)).add(Le);else{if(!Ce(Le)&&!U.has(Le)||e.isEmittedFileOfProgram(D.getCurrentProgram(),Le))return!1;(C||(C=new e.Set)).add(Le);var xr=e.parseNodeModuleFromPath(Le);xr&&(B||(B=new e.Set)).add(xr)}}D.scheduleInvalidateResolutionsOfFailedLookupLocations()}function qr(){var Le,cr=!1;if(A&&((Le=D.getCurrentProgram())===null||Le===void 0||Le.getSourceFiles().forEach(function(Re){e.some(Re.packageJsonLocations,function(xr){return A.has(xr)})&&((v??(v=new e.Set)).add(Re.path),cr=!0)}),A=void 0),!C&&!B&&!F&&!y)return cr;cr=Ze(Y,Rr)||cr;var $r=ne.getPackageJsonInfoCache().getInternalMap();return $r&&(C||B||F)&&$r.forEach(function(Re,xr){return zr(xr)?$r.delete(xr):void 0}),C=void 0,B=void 0,F=void 0,cr=Ze(Z,Fr)||cr,y=void 0,cr}function Rr(Le){return Fr(Le)?!0:!C&&!B&&!F?!1:Le.failedLookupLocations.some(function(cr){return zr(D.toPath(cr))})}function zr(Le){return(C==null?void 0:C.has(Le))||e.firstDefinedIterator((B==null?void 0:B.keys())||e.emptyIterator,function(cr){return e.startsWith(Le,cr)?!0:void 0})||e.firstDefinedIterator((F==null?void 0:F.keys())||e.emptyIterator,function(cr){return J(cr,Le)?!0:void 0})}function Fr(Le){return!!y&&Le.affectingLocations.some(function(cr){return y.has(cr)})}function _t(){e.clearMap(he,e.closeFileWatcher)}function Ct(Le,cr){if(J(K,cr))return K;var $r=je(Le,cr);return $r&&H.has($r.dirPath)?$r.dirPath:void 0}function yt(Le,cr){return D.watchTypeRootsDirectory(cr,function($r){var Re=D.toPath($r);ge&&ge.addOrDeleteFileOrDirectory($r,Re),X=!0,D.onChangedAutomaticTypeDirectiveNames();var xr=Ct(cr,Le);xr&&or(Re,xr===Re)},1)}function Fe(){var Le=D.getCompilationSettings();if(Le.types){_t();return}var cr=e.getEffectiveTypeRoots(Le,{directoryExists:vr,getCurrentDirectory:z});cr?e.mutateMap(he,e.arrayToMap(cr,function($r){return D.toPath($r)}),{createNewValue:yt,onDeleteValue:e.closeFileWatcher}):_t()}function vr(Le){var cr=e.getDirectoryPath(e.getDirectoryPath(Le)),$r=D.toPath(cr);return $r===K||P($r)}}e.createResolutionCache=T;function s(D){var O,W;return!!(!((O=D.resolvedModule)===null||O===void 0)&&O.originalPath||!((W=D.resolvedTypeReferenceDirective)===null||W===void 0)&&W.originalPath)}})(h||(h={}));var h;(function(e){(function(c){var P;(function(ee){ee[ee.Relative=0]="Relative",ee[ee.NonRelative=1]="NonRelative",ee[ee.Shortest=2]="Shortest",ee[ee.ExternalNonRelative=3]="ExternalNonRelative"})(P||(P={}));var T;(function(ee){ee[ee.Minimal=0]="Minimal",ee[ee.Index=1]="Index",ee[ee.JsExtension=2]="JsExtension"})(T||(T={}));function s(ee,J,de,De){var N=J.importModuleSpecifierPreference,b=J.importModuleSpecifierEnding;return{relativePreference:N==="relative"?0:N==="non-relative"?1:N==="project-relative"?3:2,ending:Q()};function Q(){switch(b){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return B(De)||O(de,De.path,ee)?2:e.getEmitModuleResolutionKind(de)!==e.ModuleResolutionKind.NodeJs?1:0}}}function D(ee,J,de,De){return{relativePreference:e.isExternalModuleNameRelative(J)?0:1,ending:e.hasJSFileExtension(J)||O(ee,de,De)?2:e.getEmitModuleResolutionKind(ee)!==e.ModuleResolutionKind.NodeJs||e.endsWith(J,"index")?1:0}}function O(ee,J,de){var De;return e.getEmitModuleResolutionKind(ee)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(ee)!==e.ModuleResolutionKind.NodeNext?!1:e.getImpliedNodeFormatForFile(J,(De=de.getPackageJsonInfoCache)===null||De===void 0?void 0:De.call(de),W(de),ee)!==e.ModuleKind.CommonJS}function W(ee){var J;return{fileExists:ee.fileExists,readFile:e.Debug.checkDefined(ee.readFile),directoryExists:ee.directoryExists,getCurrentDirectory:ee.getCurrentDirectory,realpath:ee.realpath,useCaseSensitiveFileNames:(J=ee.useCaseSensitiveFileNames)===null||J===void 0?void 0:J.call(ee)}}function E(ee,J,de,De,N,b,Q){Q===void 0&&(Q={});var G=te(ee,J,de,De,N,D(ee,b,de,N),{},Q);if(G!==b)return G}c.updateModuleSpecifier=E;function v(ee,J,de,De,N,b){return b===void 0&&(b={}),te(ee,J,de,De,N,s(N,{},ee,J),{},b)}c.getModuleSpecifier=v;function S(ee,J,de,De,N,b){b===void 0&&(b={});var Q=A(J.path,De),G=Pe(J.path,de,De,N,b);return e.firstDefined(G,function(ae){return U(ae,Q,J,De,ee,N,!0,b.overrideImportMode)})}c.getNodeModulesPackageName=S;function te(ee,J,de,De,N,b,Q,G){G===void 0&&(G={});var ae=A(de,N),Te=Pe(de,De,N,Q,G);return e.firstDefined(Te,function(Ne){return U(Ne,ae,J,N,ee,Q,void 0,G.overrideImportMode)})||y(De,ae,ee,N,G.overrideImportMode||J.impliedNodeFormat,b)}function Y(ee,J,de,De,N){return N===void 0&&(N={}),Z(ee,J,de,De,N)[0]}c.tryGetModuleSpecifiersFromCache=Y;function Z(ee,J,de,De,N){var b;N===void 0&&(N={});var Q=e.getSourceFileOfModule(ee);if(!Q)return e.emptyArray;var G=(b=de.getModuleSpecifierCache)===null||b===void 0?void 0:b.call(de),ae=G==null?void 0:G.get(J.path,Q.path,De,N);return[ae==null?void 0:ae.moduleSpecifiers,Q,ae==null?void 0:ae.modulePaths,G]}function ce(ee,J,de,De,N,b,Q){return Q===void 0&&(Q={}),k(ee,J,de,De,N,b,Q).moduleSpecifiers}c.getModuleSpecifiers=ce;function k(ee,J,de,De,N,b,Q){Q===void 0&&(Q={});var G=!1,ae=_e(ee,J);if(ae)return{moduleSpecifiers:[ae],computedWithoutCache:G};var Te=Z(ee,De,N,b,Q),Ne=Te[0],we=Te[1],nr=Te[2],tr=Te[3];if(Ne)return{moduleSpecifiers:Ne,computedWithoutCache:G};if(!we)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:G};G=!0,nr||(nr=fe(De.path,we.originalFileName,N));var me=X(nr,de,De,N,b,Q);return tr==null||tr.set(De.path,we.path,b,Q,nr,me),{moduleSpecifiers:me,computedWithoutCache:G}}c.getModuleSpecifiersWithCacheInfo=k;function X(ee,J,de,De,N,b){b===void 0&&(b={});var Q=A(de.path,De),G=s(De,N,J,de),ae=e.forEach(ee,function(Ae){return e.forEach(De.getFileIncludeReasons().get(e.toPath(Ae.path,De.getCurrentDirectory(),Q.getCanonicalFileName)),function(qe){if(!(qe.kind!==e.FileIncludeKind.Import||qe.file!==de.path)&&!(de.impliedNodeFormat&&de.impliedNodeFormat!==e.getModeForResolutionAtIndex(de,qe.index))){var xe=e.getModuleNameStringLiteralAt(de,qe.index).text;return G.relativePreference!==1||!e.pathIsRelative(xe)?xe:void 0}})});if(ae){var Te=[ae];return Te}for(var Ne=e.some(ee,function(Ae){return Ae.isInNodeModules}),we,nr,tr,me=0,He=ee;me<He.length;me++){var rr=He[me],je=U(rr,Q,de,De,J,N,void 0,b.overrideImportMode);if(we=e.append(we,je),je&&rr.isRedirect)return we;if(!je&&!rr.isRedirect){var Ce=y(rr.path,Q,J,De,b.overrideImportMode||de.impliedNodeFormat,G);e.pathIsBareSpecifier(Ce)?nr=e.append(nr,Ce):(!Ne||rr.isInNodeModules)&&(tr=e.append(tr,Ce))}}return nr!=null&&nr.length?nr:we!=null&&we.length?we:e.Debug.checkDefined(tr)}function A(ee,J){var de=e.createGetCanonicalFileName(J.useCaseSensitiveFileNames?J.useCaseSensitiveFileNames():!0),De=e.getDirectoryPath(ee);return{getCanonicalFileName:de,importingSourceFileName:ee,sourceDirectory:De}}function y(ee,J,de,De,N,b){var Q=b.ending,G=b.relativePreference,ae=de.baseUrl,Te=de.paths,Ne=de.rootDirs,we=J.sourceDirectory,nr=J.getCanonicalFileName,tr=Ne&&M(Ne,ee,we,nr,Q,de)||R(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(we,ee,nr)),Q,de);if(!ae&&!Te||G===0)return tr;var me=e.getNormalizedAbsolutePath(e.getPathsBasePath(de,De)||ae,De.getCurrentDirectory()),He=he(ee,me,nr);if(!He)return tr;var rr=Te&&oe(He,Te,ne(Q,de,N),De,de),je=rr===void 0&&ae!==void 0?R(He,Q,de):rr;if(!je)return tr;if(G===1)return je;if(G===3){var Ce=de.configFilePath?e.toPath(e.getDirectoryPath(de.configFilePath),De.getCurrentDirectory(),J.getCanonicalFileName):J.getCanonicalFileName(De.getCurrentDirectory()),Ae=e.toPath(ee,Ce,nr),qe=e.startsWith(we,Ce),xe=e.startsWith(Ae,Ce);if(qe&&!xe||!qe&&xe)return je;var L=z(De,e.getDirectoryPath(Ae)),ue=z(De,we);return ue!==L?je:tr}return G!==2&&e.Debug.assertNever(G),le(je)||C(tr)<C(je)?tr:je}function C(ee){for(var J=0,de=e.startsWith(ee,"./")?2:0;de<ee.length;de++)ee.charCodeAt(de)===47&&J++;return J}c.countPathComponents=C;function B(ee){var J=ee.imports;return e.firstDefined(J,function(de){var De=de.text;return e.pathIsRelative(De)?e.hasJSFileExtension(De):void 0})||!1}function F(ee,J){return e.compareBooleans(J.isRedirect,ee.isRedirect)||e.compareNumberOfDirectorySeparators(ee.path,J.path)}function z(ee,J){return ee.getNearestAncestorDirectoryWithPackageJson?ee.getNearestAncestorDirectoryWithPackageJson(J):!!e.forEachAncestorDirectory(J,function(de){return ee.fileExists(e.combinePaths(de,"package.json"))?!0:void 0})}function ge(ee,J,de,De,N){var b,Q=e.hostGetCanonicalFileName(de),G=de.getCurrentDirectory(),ae=de.isSourceOfProjectReferenceRedirect(J)?de.getProjectReferenceRedirect(J):void 0,Te=e.toPath(J,G,Q),Ne=de.redirectTargetsMap.get(Te)||e.emptyArray,we=t(t(t([],ae?[ae]:e.emptyArray,!0),[J],!1),Ne,!0),nr=we.map(function(Ce){return e.getNormalizedAbsolutePath(Ce,G)}),tr=!e.every(nr,e.containsIgnoredPath);if(!De){var me=e.forEach(nr,function(Ce){return!(tr&&e.containsIgnoredPath(Ce))&&N(Ce,ae===Ce)});if(me)return me}var He=(b=de.getSymlinkCache)===null||b===void 0?void 0:b.call(de).getSymlinkedDirectoriesByRealpath(),rr=e.getNormalizedAbsolutePath(J,G),je=He&&e.forEachAncestorDirectory(e.getDirectoryPath(rr),function(Ce){var Ae=He.get(e.ensureTrailingDirectorySeparator(e.toPath(Ce,G,Q)));if(Ae)return e.startsWithDirectory(ee,Ce,Q)?!1:e.forEach(nr,function(qe){if(e.startsWithDirectory(qe,Ce,Q))for(var xe=e.getRelativePathFromDirectory(Ce,qe,Q),L=0,ue=Ae;L<ue.length;L++){var Ue=ue[L],Je=e.resolvePath(Ue,xe),lr=N(Je,qe===ae);if(tr=!0,lr)return lr}})});return je||(De?e.forEach(nr,function(Ce){return tr&&e.containsIgnoredPath(Ce)?void 0:N(Ce,Ce===ae)}):void 0)}c.forEachFileNameOfModule=ge;function Pe(ee,J,de,De,N){var b;N===void 0&&(N={});var Q=e.toPath(J,de.getCurrentDirectory(),e.hostGetCanonicalFileName(de)),G=(b=de.getModuleSpecifierCache)===null||b===void 0?void 0:b.call(de);if(G){var ae=G.get(ee,Q,De,N);if(ae!=null&&ae.modulePaths)return ae.modulePaths}var Te=fe(ee,J,de);return G&&G.setModulePaths(ee,Q,De,N,Te),Te}function fe(ee,J,de){var De=e.hostGetCanonicalFileName(de),N=new e.Map;ge(ee,J,de,!0,function(we,nr){var tr=e.pathContainsNodeModules(we);N.set(we,{path:De(we),isRedirect:nr,isInNodeModules:tr})});for(var b=[],Q=function(we){var nr=e.ensureTrailingDirectorySeparator(we),tr;N.forEach(function(He,rr){var je=He.path,Ce=He.isRedirect,Ae=He.isInNodeModules;e.startsWith(je,nr)&&((tr||(tr=[])).push({path:rr,isRedirect:Ce,isInNodeModules:Ae}),N.delete(rr))}),tr&&(tr.length>1&&tr.sort(F),b.push.apply(b,tr));var me=e.getDirectoryPath(we);if(me===we)return G=we,"break";we=me,G=we},G,ae=e.getDirectoryPath(ee);N.size!==0;){var Te=Q(ae);if(ae=G,Te==="break")break}if(N.size){var Ne=e.arrayFrom(N.values());Ne.length>1&&Ne.sort(F),b.push.apply(b,Ne)}return b}function _e(ee,J){var de,De=(de=ee.declarations)===null||de===void 0?void 0:de.find(function(Q){return e.isNonGlobalAmbientModule(Q)&&(!e.isExternalModuleAugmentation(Q)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(Q.name)))});if(De)return De.name.text;var N=e.mapDefined(ee.declarations,function(Q){var G,ae,Te,Ne;if(!e.isModuleDeclaration(Q))return;var we=He(Q);if(!(!((G=we==null?void 0:we.parent)===null||G===void 0)&&G.parent&&e.isModuleBlock(we.parent)&&e.isAmbientModule(we.parent.parent)&&e.isSourceFile(we.parent.parent.parent)))return;var nr=(Ne=(Te=(ae=we.parent.parent.symbol.exports)===null||ae===void 0?void 0:ae.get("export="))===null||Te===void 0?void 0:Te.valueDeclaration)===null||Ne===void 0?void 0:Ne.expression;if(!nr)return;var tr=J.getSymbolAtLocation(nr);if(!tr)return;var me=(tr==null?void 0:tr.flags)&2097152?J.getAliasedSymbol(tr):tr;if(me===Q.symbol)return we.parent.parent;function He(rr){for(;rr.flags&4;)rr=rr.parent;return rr}}),b=N[0];if(b)return b.name.text}function ne(ee,J,de){if(e.getEmitModuleResolutionKind(J)>=e.ModuleResolutionKind.Node16&&de===e.ModuleKind.ESNext)return[2];switch(ee){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:e.Debug.assertNever(ee)}}function oe(ee,J,de,De,N){for(var b in J)for(var Q=function(nr){var tr=e.normalizePath(nr),me=tr.indexOf("*"),He=de.map(function(Ue){return{ending:Ue,value:R(ee,Ue,N)}});if(e.tryGetExtensionFromPath(tr)&&He.push({ending:void 0,value:ee}),me!==-1)for(var rr=tr.substring(0,me),je=tr.substring(me+1),Ce=0,Ae=He;Ce<Ae.length;Ce++){var qe=Ae[Ce],xe=qe.ending,L=qe.value;if(L.length>=rr.length+je.length&&e.startsWith(L,rr)&&e.endsWith(L,je)&&we({ending:xe,value:L})){var ue=L.substring(rr.length,L.length-je.length);return{value:b.replace("*",ue)}}}else if(e.some(He,function(Ue){return Ue.ending!==0&&tr===Ue.value})||e.some(He,function(Ue){return Ue.ending===0&&tr===Ue.value&&we(Ue)}))return{value:b}},G=0,ae=J[b];G<ae.length;G++){var Te=ae[G],Ne=Q(Te);if(typeof Ne=="object")return Ne.value}function we(nr){var tr=nr.ending,me=nr.value;return tr!==0||me===R(ee,tr,N,De)}}var w;(function(ee){ee[ee.Exact=0]="Exact",ee[ee.Directory=1]="Directory",ee[ee.Pattern=2]="Pattern"})(w||(w={}));function re(ee,J,de,De,N,b,Q){if(Q===void 0&&(Q=0),typeof N=="string"){var G=e.getNormalizedAbsolutePath(e.combinePaths(de,N),void 0),ae=e.hasTSFileExtension(J)?e.removeFileExtension(J)+I(J,ee):void 0;switch(Q){case 0:if(e.comparePaths(J,G)===0||ae&&e.comparePaths(ae,G)===0)return{moduleFileToTry:De};break;case 1:if(e.containsPath(G,J)){var Te=e.getRelativePathFromDirectory(G,J,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(De,N),Te),void 0)}}break;case 2:var Ne=G.indexOf("*"),we=G.slice(0,Ne),nr=G.slice(Ne+1);if(e.startsWith(J,we)&&e.endsWith(J,nr)){var tr=J.slice(we.length,J.length-nr.length);return{moduleFileToTry:De.replace("*",tr)}}if(ae&&e.startsWith(ae,we)&&e.endsWith(ae,nr)){var tr=ae.slice(we.length,ae.length-nr.length);return{moduleFileToTry:De.replace("*",tr)}}break}}else{if(Array.isArray(N))return e.forEach(N,function(Ae){return re(ee,J,de,De,Ae,b)});if(typeof N=="object"&&N!==null){if(e.allKeysStartWithDot(N))return e.forEach(e.getOwnKeys(N),function(Ae){var qe=e.getNormalizedAbsolutePath(e.combinePaths(De,Ae),void 0),xe=e.endsWith(Ae,"/")?1:e.stringContains(Ae,"*")?2:0;return re(ee,J,de,qe,N[Ae],b,xe)});for(var me=0,He=e.getOwnKeys(N);me<He.length;me++){var rr=He[me];if(rr==="default"||b.indexOf(rr)>=0||e.isApplicableVersionedTypesKey(b,rr)){var je=N[rr],Ce=re(ee,J,de,De,je,b);if(Ce)return Ce}}}}}function M(ee,J,de,De,N,b){var Q=q(J,ee,De);if(Q!==void 0){var G=q(de,ee,De),ae=e.flatMap(G,function(Ne){return e.map(Q,function(we){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Ne,we,De))})}),Te=e.min(ae,e.compareNumberOfDirectorySeparators);if(Te)return e.getEmitModuleResolutionKind(b)===e.ModuleResolutionKind.NodeJs?R(Te,N,b):e.removeFileExtension(Te)}}function U(ee,J,de,De,N,b,Q,G){var ae=ee.path,Te=ee.isRedirect,Ne=J.getCanonicalFileName,we=J.sourceDirectory;if(!De.fileExists||!De.readFile)return;var nr=e.getNodeModulePathParts(ae);if(!nr)return;var tr=s(De,b,N,de),me=ae,He=!1;if(!Q)for(var rr=nr.packageRootIndex,je=void 0;;){var Ce=mr(rr),Ae=Ce.moduleFileToTry,qe=Ce.packageRootPath,xe=Ce.blockedByExports,L=Ce.verbatimFromExports;if(e.getEmitModuleResolutionKind(N)!==e.ModuleResolutionKind.Classic){if(xe)return;if(L)return Ae}if(qe){me=qe,He=!0;break}if(je||(je=Ae),rr=ae.indexOf(e.directorySeparator,rr+1),rr===-1){me=R(je,tr.ending,N,De);break}}if(Te&&!He)return;var ue=De.getGlobalTypingsCacheLocation&&De.getGlobalTypingsCacheLocation(),Ue=Ne(me.substring(0,nr.topLevelNodeModulesIndex));if(!(e.startsWith(we,Ue)||ue&&e.startsWith(Ne(ue),Ue)))return;var Je=me.substring(nr.topLevelPackageNameIndex+1),lr=e.getPackageNameFromTypesPackageName(Je);return e.getEmitModuleResolutionKind(N)===e.ModuleResolutionKind.Classic&&lr===Je?void 0:lr;function mr(Hr){var wr,Oe,Ze=ae.substring(0,Hr),tt=e.combinePaths(Ze,"package.json"),ut=ae,or=!1,qr=(Oe=(wr=De.getPackageJsonInfoCache)===null||wr===void 0?void 0:wr.call(De))===null||Oe===void 0?void 0:Oe.getPackageJsonInfo(tt);if(typeof qr=="object"||qr===void 0&&De.fileExists(tt)){var Rr=(qr==null?void 0:qr.contents.packageJsonContent)||JSON.parse(De.readFile(tt)),zr=G||de.impliedNodeFormat;if(e.getEmitModuleResolutionKind(N)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(N)===e.ModuleResolutionKind.NodeNext){var Fr=["node",zr===e.ModuleKind.ESNext?"import":"require","types"],_t=Rr.exports&&typeof Rr.name=="string"?re(N,ae,Ze,e.getPackageNameFromTypesPackageName(Rr.name),Rr.exports,Fr):void 0;if(_t){var Ct=e.hasTSFileExtension(_t.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(_t.moduleFileToTry)+I(_t.moduleFileToTry,N)}:_t;return n(n({},Ct),{verbatimFromExports:!0})}if(Rr.exports)return{moduleFileToTry:ae,blockedByExports:!0}}var yt=Rr.typesVersions?e.getPackageJsonTypesVersionsPaths(Rr.typesVersions):void 0;if(yt){var Fe=ae.slice(Ze.length+1),vr=oe(Fe,yt.paths,ne(tr.ending,N,zr),De,N);vr===void 0?or=!0:ut=e.combinePaths(Ze,vr)}var Le=Rr.typings||Rr.types||Rr.main||"index.js";if(e.isString(Le)&&!(or&&e.matchPatternOrExact(e.tryParsePatterns(yt.paths),Le))){var cr=e.toPath(Le,Ze,Ne);if(e.removeFileExtension(cr)===e.removeFileExtension(Ne(ut)))return{packageRootPath:Ze,moduleFileToTry:ut}}}else{var $r=Ne(ut.substring(nr.packageRootIndex+1));if($r==="index.d.ts"||$r==="index.js"||$r==="index.ts"||$r==="index.tsx")return{moduleFileToTry:ut,packageRootPath:Ze}}return{moduleFileToTry:ut}}}function H(ee,J){if(ee.fileExists)for(var de=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),De=0,N=de;De<N.length;De++){var b=N[De],Q=J+b;if(ee.fileExists(Q))return Q}}function q(ee,J,de){return e.mapDefined(J,function(De){var N=he(ee,De,de);return N!==void 0&&le(N)?void 0:N})}function R(ee,J,de,De){if(e.fileExtensionIsOneOf(ee,[".json",".mjs",".cjs"]))return ee;var N=e.removeFileExtension(ee);if(ee===N)return ee;if(e.fileExtensionIsOneOf(ee,[".d.mts",".mts",".d.cts",".cts"]))return N+K(ee,de);switch(J){case 0:var b=e.removeSuffix(N,"/index");return De&&b!==N&&H(De,b)?N:b;case 1:return N;case 2:return N+K(ee,de);default:return e.Debug.assertNever(J)}}function K(ee,J){var de;return(de=I(ee,J))!==null&&de!==void 0?de:e.Debug.fail("Extension ".concat(e.extensionFromPath(ee)," is unsupported:: FileName:: ").concat(ee))}function I(ee,J){var de=e.tryGetExtensionFromPath(ee);switch(de){case".ts":case".d.ts":return".js";case".tsx":return J.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return de;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}c.tryGetJSExtensionForFile=I;function he(ee,J,de){var De=e.getRelativePathToDirectoryOrUrl(J,ee,J,de,!1);return e.isRootedDiskPath(De)?void 0:De}function le(ee){return e.startsWith(ee,"..")}})(e.moduleSpecifiers||(e.moduleSpecifiers={}))})(h||(h={}));var h;(function(e){var c=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function P(q,R){var K=q===e.sys&&c?c:{getCurrentDirectory:function(){return q.getCurrentDirectory()},getNewLine:function(){return q.newLine},getCanonicalFileName:e.createGetCanonicalFileName(q.useCaseSensitiveFileNames)};if(!R)return function(he){return q.write(e.formatDiagnostic(he,K))};var I=new Array(1);return function(he){I[0]=he,q.write(e.formatDiagnosticsWithColorAndContext(I,K)+K.getNewLine()),I[0]=void 0}}e.createDiagnosticReporter=P;function T(q,R,K){return q.clearScreen&&!K.preserveWatchOutput&&!K.extendedDiagnostics&&!K.diagnostics&&e.contains(e.screenStartingMessageCodes,R.code)?(q.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function s(q,R){return e.contains(e.screenStartingMessageCodes,q.code)?R+R:R}function D(q){return q.now?q.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}e.getLocaleTimeString=D;function O(q,R){return R?function(K,I,he){T(q,K,he);var le="[".concat(e.formatColorAndReset(D(q),e.ForegroundColorEscapeSequences.Grey),"] ");le+="".concat(e.flattenDiagnosticMessageText(K.messageText,q.newLine)).concat(I+I),q.write(le)}:function(K,I,he){var le="";T(q,K,he)||(le+=I),le+="".concat(D(q)," - "),le+="".concat(e.flattenDiagnosticMessageText(K.messageText,q.newLine)).concat(s(K,I)),q.write(le)}}e.createWatchStatusReporter=O;function W(q,R,K,I,he,le){var ee=he;ee.onUnRecoverableConfigFileDiagnostic=function(de){return re(he,le,de)};var J=e.getParsedCommandLineOfConfigFile(q,R,ee,K,I);return ee.onUnRecoverableConfigFileDiagnostic=void 0,J}e.parseConfigFileWithSystem=W;function E(q){return e.countWhere(q,function(R){return R.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=E;function v(q){var R=e.filter(q,function(K){return K.category===e.DiagnosticCategory.Error}).map(function(K){if(K.file!==void 0)return"".concat(K.file.fileName)});return R.map(function(K){var I=e.find(q,function(le){return le.file!==void 0&&le.file.fileName===K});if(I!==void 0){var he=e.getLineAndCharacterOfPosition(I.file,I.start).line;return{fileName:K,line:he+1}}})}e.getFilesInErrorForSummary=v;function S(q){return q===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=S;function te(q,R){var K=e.formatColorAndReset(":"+q.line,e.ForegroundColorEscapeSequences.Grey);return e.pathIsAbsolute(q.fileName)&&e.pathIsAbsolute(R)?e.getRelativePathFromDirectory(R,q.fileName,!1)+K:q.fileName+K}function Y(q,R,K,I){if(q===0)return"";var he=R.filter(function(De){return De!==void 0}),le=he.map(function(De){return"".concat(De.fileName,":").concat(De.line)}).filter(function(De,N,b){return b.indexOf(De)===N}),ee=he[0]&&te(he[0],I.getCurrentDirectory()),J=q===1?e.createCompilerDiagnostic(R[0]!==void 0?e.Diagnostics.Found_1_error_in_1:e.Diagnostics.Found_1_error,q,ee):e.createCompilerDiagnostic(le.length===0?e.Diagnostics.Found_0_errors:le.length===1?e.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:e.Diagnostics.Found_0_errors_in_1_files,q,le.length===1?ee:le.length),de=le.length>1?Z(he,I):"";return"".concat(K).concat(e.flattenDiagnosticMessageText(J.messageText,K)).concat(K).concat(K).concat(de)}e.getErrorSummaryText=Y;function Z(q,R){var K=q.filter(function(b,Q,G){return Q===G.findIndex(function(ae){return(ae==null?void 0:ae.fileName)===(b==null?void 0:b.fileName)})});if(K.length===0)return"";var I=function(b){return Math.log(b)*Math.LOG10E+1},he=K.map(function(b){return[b,e.countWhere(q,function(Q){return Q.fileName===b.fileName})]}),le=he.reduce(function(b,Q){return Math.max(b,Q[1]||0)},0),ee=e.Diagnostics.Errors_Files.message,J=ee.split(" ")[0].length,de=Math.max(J,I(le)),De=Math.max(I(le)-J,0),N="";return N+=" ".repeat(De)+ee+`
`,he.forEach(function(b){var Q=b[0],G=b[1],ae=Math.log(G)*Math.LOG10E+1|0,Te=ae<de?" ".repeat(de-ae):"",Ne=te(Q,R.getCurrentDirectory());N+="".concat(Te).concat(G," ").concat(Ne,`
`)}),N}function ce(q){return!!q.getState}e.isBuilderProgram=ce;function k(q,R){var K=q.getCompilerOptions();K.explainFiles?X(ce(q)?q.getProgram():q,R):(K.listFiles||K.listFilesOnly)&&e.forEach(q.getSourceFiles(),function(I){R(I.fileName)})}e.listFiles=k;function X(q,R){for(var K,I,he=q.getFileIncludeReasons(),le=e.createGetCanonicalFileName(q.useCaseSensitiveFileNames()),ee=function(N){return e.convertToRelativePath(N,q.getCurrentDirectory(),le)},J=0,de=q.getSourceFiles();J<de.length;J++){var De=de[J];R("".concat(F(De,ee))),(K=he.get(De.path))===null||K===void 0||K.forEach(function(N){return R(" ".concat(B(q,N,ee).messageText))}),(I=A(De,ee))===null||I===void 0||I.forEach(function(N){return R(" ".concat(N.messageText))})}}e.explainFiles=X;function A(q,R){var K,I;if(q.path!==q.resolvedPath&&(I??(I=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,F(q.originalFileName,R))),q.redirectInfo&&(I??(I=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,F(q.redirectInfo.redirectTarget,R))),e.isExternalOrCommonJsModule(q))switch(q.impliedNodeFormat){case e.ModuleKind.ESNext:q.packageJsonScope&&(I??(I=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,F(e.last(q.packageJsonLocations),R)));break;case e.ModuleKind.CommonJS:q.packageJsonScope?(I??(I=[])).push(e.chainDiagnosticMessages(void 0,q.packageJsonScope.contents.packageJsonContent.type?e.Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:e.Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type,F(e.last(q.packageJsonLocations),R))):!((K=q.packageJsonLocations)===null||K===void 0)&&K.length&&(I??(I=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found));break}return I}e.explainIfFileIsRedirectAndImpliedFormat=A;function y(q,R){var K,I=q.getCompilerOptions().configFile;if(!((K=I==null?void 0:I.configFileSpecs)===null||K===void 0)&&K.validatedFilesSpec){var he=e.createGetCanonicalFileName(q.useCaseSensitiveFileNames()),le=he(R),ee=e.getDirectoryPath(e.getNormalizedAbsolutePath(I.fileName,q.getCurrentDirectory()));return e.find(I.configFileSpecs.validatedFilesSpec,function(J){return he(e.getNormalizedAbsolutePath(J,ee))===le})}}e.getMatchedFileSpec=y;function C(q,R){var K,I,he=q.getCompilerOptions().configFile;if(!((K=he==null?void 0:he.configFileSpecs)===null||K===void 0)&&K.validatedIncludeSpecs){if(he.configFileSpecs.isDefaultIncludeSpec)return!0;var le=e.fileExtensionIs(R,".json"),ee=e.getDirectoryPath(e.getNormalizedAbsolutePath(he.fileName,q.getCurrentDirectory())),J=q.useCaseSensitiveFileNames();return e.find((I=he==null?void 0:he.configFileSpecs)===null||I===void 0?void 0:I.validatedIncludeSpecs,function(de){if(le&&!e.endsWith(de,".json"))return!1;var De=e.getPatternFromSpec(de,ee,"files");return!!De&&e.getRegexFromPattern("(".concat(De,")$"),J).test(R)})}}e.getMatchedIncludeSpec=C;function B(q,R,K){var I,he,le=q.getCompilerOptions();if(e.isReferencedFile(R)){var ee=e.getReferencedFileLocation(function(Te){return q.getSourceFileByPath(Te)},R),J=e.isReferenceFileLocation(ee)?ee.file.text.substring(ee.pos,ee.end):'"'.concat(ee.text,'"'),de=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(ee)||R.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),R.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(ee)?de=ee.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:ee.text===e.externalHelpersModuleNameText?de=ee.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:de=ee.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!ee.packageId),de=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:de=ee.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!ee.packageId),de=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(R)}return e.chainDiagnosticMessages(void 0,de,J,F(ee.file,K),ee.packageId&&e.packageIdToString(ee.packageId))}switch(R.kind){case e.FileIncludeKind.RootFile:if(!(!((I=le.configFile)===null||I===void 0)&&I.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var De=e.getNormalizedAbsolutePath(q.getRootFileNames()[R.index],q.getCurrentDirectory()),N=y(q,De);if(N)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var b=C(q,De);return e.isString(b)?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,b,F(le.configFile,K)):e.chainDiagnosticMessages(void 0,b?e.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Q=R.kind===e.FileIncludeKind.OutputFromProjectReference,G=e.Debug.checkDefined((he=q.getResolvedProjectReferences())===null||he===void 0?void 0:he[R.index]);return e.chainDiagnosticMessages(void 0,e.outFile(le)?Q?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:Q?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,F(G.sourceFile.fileName,K),le.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,le.types?R.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:R.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,R.typeReference,R.packageId&&e.packageIdToString(R.packageId));case e.FileIncludeKind.LibFile:if(R.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,le.lib[R.index]);var ae=e.forEachEntry(e.targetOptionDeclaration.type,function(Te,Ne){return Te===e.getEmitScriptTarget(le)?Ne:void 0});return e.chainDiagnosticMessages(void 0,ae?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,ae);default:e.Debug.assertNever(R)}}e.fileIncludeReasonToDiagnostics=B;function F(q,R){var K=e.isString(q)?q:q.fileName;return R?R(K):K}function z(q,R,K,I,he,le,ee,J){var de=!!q.getCompilerOptions().listFilesOnly,De=q.getConfigFileParsingDiagnostics().slice(),N=De.length;e.addRange(De,q.getSyntacticDiagnostics(void 0,le)),De.length===N&&(e.addRange(De,q.getOptionsDiagnostics(le)),de||(e.addRange(De,q.getGlobalDiagnostics(le)),De.length===N&&e.addRange(De,q.getSemanticDiagnostics(void 0,le))));var b=de?{emitSkipped:!0,diagnostics:e.emptyArray}:q.emit(void 0,he,le,ee,J),Q=b.emittedFiles,G=b.diagnostics;e.addRange(De,G);var ae=e.sortAndDeduplicateDiagnostics(De);if(ae.forEach(R),K){var Te=q.getCurrentDirectory();e.forEach(Q,function(Ne){var we=e.getNormalizedAbsolutePath(Ne,Te);K("TSFILE: ".concat(we))}),k(q,K)}return I&&I(E(ae),v(ae)),{emitResult:b,diagnostics:ae}}e.emitFilesAndReportErrors=z;function ge(q,R,K,I,he,le,ee,J){var de=z(q,R,K,I,he,le,ee,J),De=de.emitResult,N=de.diagnostics;return De.emitSkipped&&N.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:N.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=ge,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function Pe(q,R){q===void 0&&(q=e.sys);var K=R||O(q);return{onWatchStatusChange:K,watchFile:e.maybeBind(q,q.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(q,q.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(q,q.setTimeout)||e.noop,clearTimeout:e.maybeBind(q,q.clearTimeout)||e.noop}}e.createWatchHost=Pe,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"};function fe(q,R){var K=q.trace?R.extendedDiagnostics?e.WatchLogLevel.Verbose:R.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,I=K!==e.WatchLogLevel.None?function(le){return q.trace(le)}:e.noop,he=e.getWatchFactory(q,K,I);return he.writeLog=I,he}e.createWatchFactory=fe;function _e(q,R,K){K===void 0&&(K=q);var I=q.useCaseSensitiveFileNames(),he=e.memoize(function(){return q.getNewLine()}),le={getSourceFile:function(J,de,De){var N;try{e.performance.mark("beforeIORead");var b=R().charset;N=b?q.readFile(J,b):le.readFile(J),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Q){De&&De(Q.message),N=""}return N!==void 0?e.createSourceFile(J,N,de):void 0},getDefaultLibLocation:e.maybeBind(q,q.getDefaultLibLocation),getDefaultLibFileName:function(J){return q.getDefaultLibFileName(J)},writeFile:ee,getCurrentDirectory:e.memoize(function(){return q.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return I},getCanonicalFileName:e.createGetCanonicalFileName(I),getNewLine:function(){return e.getNewLineCharacter(R(),he)},fileExists:function(J){return q.fileExists(J)},readFile:function(J){return q.readFile(J)},trace:e.maybeBind(q,q.trace),directoryExists:e.maybeBind(K,K.directoryExists),getDirectories:e.maybeBind(K,K.getDirectories),realpath:e.maybeBind(q,q.realpath),getEnvironmentVariable:e.maybeBind(q,q.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(q,q.createHash),readDirectory:e.maybeBind(q,q.readDirectory),disableUseFileVersionAsSignature:q.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:q.storeFilesChangingSignatureDuringEmit};return le;function ee(J,de,De,N){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(J,de,De,function(b,Q,G){return q.writeFile(b,Q,G)},function(b){return q.createDirectory(b)},function(b){return q.directoryExists(b)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(b){N&&N(b.message)}}}e.createCompilerHostFromProgramHost=_e;function ne(q){var R=q.getSourceFile,K=e.maybeBind(q,q.createHash)||e.generateDjb2Hash;q.getSourceFile=function(){for(var I=[],he=0;he<arguments.length;he++)I[he]=arguments[he];var le=R.call.apply(R,t([q],I,!1));return le&&(le.version=K(le.text)),le}}e.setGetSourceFileAsHashVersioned=ne;function oe(q,R){var K=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(q.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return q.useCaseSensitiveFileNames},getNewLine:function(){return q.newLine},getCurrentDirectory:e.memoize(function(){return q.getCurrentDirectory()}),getDefaultLibLocation:K,getDefaultLibFileName:function(I){return e.combinePaths(K(),e.getDefaultLibFileName(I))},fileExists:function(I){return q.fileExists(I)},readFile:function(I,he){return q.readFile(I,he)},directoryExists:function(I){return q.directoryExists(I)},getDirectories:function(I){return q.getDirectories(I)},readDirectory:function(I,he,le,ee,J){return q.readDirectory(I,he,le,ee,J)},realpath:e.maybeBind(q,q.realpath),getEnvironmentVariable:e.maybeBind(q,q.getEnvironmentVariable),trace:function(I){return q.write(I+q.newLine)},createDirectory:function(I){return q.createDirectory(I)},writeFile:function(I,he,le){return q.writeFile(I,he,le)},createHash:e.maybeBind(q,q.createHash),createProgram:R||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:q.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:q.storeFilesChangingSignatureDuringEmit,now:e.maybeBind(q,q.now)}}e.createProgramHost=oe;function w(q,R,K,I){q===void 0&&(q=e.sys);var he=function(ee){return q.write(ee+q.newLine)},le=oe(q,R);return e.copyProperties(le,Pe(q,I)),le.afterProgramCreate=function(ee){var J=ee.getCompilerOptions(),de=e.getNewLineCharacter(J,function(){return q.newLine});z(ee,K,he,function(De){return le.onWatchStatusChange(e.createCompilerDiagnostic(S(De),De),de,J,De)})},le}function re(q,R,K){R(K),q.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function M(q){var R=q.configFileName,K=q.optionsToExtend,I=q.watchOptionsToExtend,he=q.extraFileExtensions,le=q.system,ee=q.createProgram,J=q.reportDiagnostic,de=q.reportWatchStatus,De=J||P(le),N=w(le,ee,De,de);return N.onUnRecoverableConfigFileDiagnostic=function(b){return re(le,De,b)},N.configFileName=R,N.optionsToExtend=K,N.watchOptionsToExtend=I,N.extraFileExtensions=he,N}e.createWatchCompilerHostOfConfigFile=M;function U(q){var R=q.rootFiles,K=q.options,I=q.watchOptions,he=q.projectReferences,le=q.system,ee=q.createProgram,J=q.reportDiagnostic,de=q.reportWatchStatus,De=w(le,ee,J||P(le),de);return De.rootFiles=R,De.options=K,De.watchOptions=I,De.projectReferences=he,De}e.createWatchCompilerHostOfFilesAndCompilerOptions=U;function H(q){var R=q.system||e.sys,K=q.host||(q.host=e.createIncrementalCompilerHost(q.options,R)),I=e.createIncrementalProgram(q),he=ge(I,q.reportDiagnostic||P(R),function(le){return K.trace&&K.trace(le)},q.reportErrorSummary||q.options.pretty?function(le,ee){return R.write(Y(le,ee,R.newLine,K))}:void 0);return q.afterProgramEmitAndDiagnostics&&q.afterProgramEmitAndDiagnostics(I),he}e.performIncrementalCompilation=H})(h||(h={}));var h;(function(e){function c(O,W){var E=e.getTsBuildInfoEmitOutputFilePath(O);if(E){var v;if(W.getBuildInfo)v=W.getBuildInfo(E,O.configFilePath);else{var S=W.readFile(E);if(!S)return;v=e.getBuildInfo(E,S)}if(!(!v||v.version!==e.version||!v.program))return e.createBuilderProgramUsingProgramBuildInfo(v.program,E,W)}}e.readBuilderProgram=c;function P(O,W){W===void 0&&(W=e.sys);var E=e.createCompilerHostWorker(O,void 0,W);return E.createHash=e.maybeBind(W,W.createHash),E.disableUseFileVersionAsSignature=W.disableUseFileVersionAsSignature,E.storeFilesChangingSignatureDuringEmit=W.storeFilesChangingSignatureDuringEmit,e.setGetSourceFileAsHashVersioned(E),e.changeCompilerHostLikeToUseCache(E,function(v){return e.toPath(v,E.getCurrentDirectory(),E.getCanonicalFileName)}),E}e.createIncrementalCompilerHost=P;function T(O){var W=O.rootNames,E=O.options,v=O.configFileParsingDiagnostics,S=O.projectReferences,te=O.host,Y=O.createProgram;te=te||P(E),Y=Y||e.createEmitAndSemanticDiagnosticsBuilderProgram;var Z=c(E,te);return Y(W,E,te,Z,v,S)}e.createIncrementalProgram=T;function s(O,W,E,v,S,te,Y,Z){return e.isArray(O)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:O,options:W,watchOptions:Z,projectReferences:Y,system:E,createProgram:v,reportDiagnostic:S,reportWatchStatus:te}):e.createWatchCompilerHostOfConfigFile({configFileName:O,optionsToExtend:W,watchOptionsToExtend:Y,extraFileExtensions:Z,system:E,createProgram:v,reportDiagnostic:S,reportWatchStatus:te})}e.createWatchCompilerHost=s;function D(O){var W,E,v,S,te,Y,Z,ce,k=O.extendedConfigCache,X=!1,A=new e.Map,y,C=!1,B=O.useCaseSensitiveFileNames(),F=O.getCurrentDirectory(),z=O.configFileName,ge=O.optionsToExtend,Pe=ge===void 0?{}:ge,fe=O.watchOptionsToExtend,_e=O.extraFileExtensions,ne=O.createProgram,oe=O.rootFiles,w=O.options,re=O.watchOptions,M=O.projectReferences,U,H,q=!1,R=!1,K=z===void 0?void 0:e.createCachedDirectoryStructureHost(O,F,B),I=K||O,he=e.parseConfigHostFromCompilerHostLike(O,I),le=je();z&&O.configFileParsingResult&&(Fr(O.configFileParsingResult),le=je()),lr(e.Diagnostics.Starting_compilation_in_watch_mode),z&&!O.configFileParsingResult&&(le=e.getNewLineCharacter(Pe,function(){return O.getNewLine()}),e.Debug.assert(!oe),zr(),le=je());var ee=e.createWatchFactory(O,w),J=ee.watchFile,de=ee.watchDirectory,De=ee.writeLog,N=e.createGetCanonicalFileName(B);De("Current directory: ".concat(F," CaseSensitiveFileNames: ").concat(B));var b;z&&(b=J(z,tt,e.PollingInterval.High,re,e.WatchType.ConfigFile));var Q=e.createCompilerHostFromProgramHost(O,function(){return w},I);e.setGetSourceFileAsHashVersioned(Q);var G=Q.getSourceFile;Q.getSourceFile=function(ct){for(var ft=[],Dt=1;Dt<arguments.length;Dt++)ft[Dt-1]=arguments[Dt];return L.apply(void 0,t([ct,Ce(ct)],ft,!1))},Q.getSourceFileByPath=L,Q.getNewLine=function(){return le},Q.fileExists=xe,Q.onReleaseOldSourceFile=Je,Q.onReleaseParsedCommandLine=yt,Q.toPath=Ce,Q.getCompilationSettings=function(){return w},Q.useSourceOfProjectReferenceRedirect=e.maybeBind(O,O.useSourceOfProjectReferenceRedirect),Q.watchDirectoryOfFailedLookupLocation=function(ct,ft,Dt){return de(ct,ft,Dt,re,e.WatchType.FailedLookupLocations)},Q.watchAffectingFileLocation=function(ct,ft){return J(ct,ft,e.PollingInterval.High,re,e.WatchType.AffectingFileLocation)},Q.watchTypeRootsDirectory=function(ct,ft,Dt){return de(ct,ft,Dt,re,e.WatchType.TypeRoots)},Q.getCachedDirectoryStructureHost=function(){return K},Q.scheduleInvalidateResolutionsOfFailedLookupLocations=wr,Q.onInvalidatedResolution=Ze,Q.onChangedAutomaticTypeDirectiveNames=Ze,Q.fileIsOpen=e.returnFalse,Q.getCurrentProgram=tr,Q.writeLog=De,Q.getParsedCommandLine=_t;var ae=e.createResolutionCache(Q,z?e.getDirectoryPath(e.getNormalizedAbsolutePath(z,F)):F,!1);Q.resolveModuleNames=O.resolveModuleNames?function(){for(var ct=[],ft=0;ft<arguments.length;ft++)ct[ft]=arguments[ft];return O.resolveModuleNames.apply(O,ct)}:function(ct,ft,Dt,Me,Ke,Vr){return ae.resolveModuleNames(ct,ft,Dt,Me,Vr)},Q.resolveTypeReferenceDirectives=O.resolveTypeReferenceDirectives?function(){for(var ct=[],ft=0;ft<arguments.length;ft++)ct[ft]=arguments[ft];return O.resolveTypeReferenceDirectives.apply(O,ct)}:function(ct,ft,Dt,Me,Ke){return ae.resolveTypeReferenceDirectives(ct,ft,Dt,Ke)},Q.getModuleResolutionCache=O.resolveModuleNames?e.maybeBind(O,O.getModuleResolutionCache):function(){return ae.getModuleResolutionCache()};var Te=!!O.resolveModuleNames||!!O.resolveTypeReferenceDirectives,Ne=Te?e.maybeBind(O,O.hasInvalidatedResolutions)||e.returnTrue:e.returnFalse;return W=c(w,Q),me(),Re(),z&&Br(Ce(z),w,re,e.WatchType.ExtendedConfigFile),z?{getCurrentProgram:nr,getProgram:or,close:we}:{getCurrentProgram:nr,getProgram:or,updateRootFileNames:rr,close:we};function we(){Hr(),ae.clear(),e.clearMap(A,function(ct){ct&&ct.fileWatcher&&(ct.fileWatcher.close(),ct.fileWatcher=void 0)}),b&&(b.close(),b=void 0),k==null||k.clear(),k=void 0,ce&&(e.clearMap(ce,e.closeFileWatcherOf),ce=void 0),S&&(e.clearMap(S,e.closeFileWatcherOf),S=void 0),v&&(e.clearMap(v,e.closeFileWatcher),v=void 0),Z&&(e.clearMap(Z,function(ct){var ft;(ft=ct.watcher)===null||ft===void 0||ft.close(),ct.watcher=void 0,ct.watchedDirectories&&e.clearMap(ct.watchedDirectories,e.closeFileWatcherOf),ct.watchedDirectories=void 0}),Z=void 0)}function nr(){return W}function tr(){return W&&W.getProgramOrUndefined()}function me(){De("Synchronizing program"),Hr();var ct=nr();C&&(le=je(),ct&&e.changesAffectModuleResolution(ct.getCompilerOptions(),w)&&ae.clear());var ft=ae.createHasInvalidatedResolutions(Ne),Dt=e.changeCompilerHostLikeToUseCache(Q,Ce),Me=Dt.originalReadFile,Ke=Dt.originalFileExists,Vr=Dt.originalDirectoryExists,Yr=Dt.originalCreateDirectory,Nt=Dt.originalWriteFile,Wt=Dt.readFileWithCache;return e.isProgramUptoDate(tr(),oe,w,function(sn){return Ue(sn,Wt)},function(sn){return Q.fileExists(sn)},ft,mr,_t,M)?R&&(X&&lr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),W=ne(void 0,void 0,Q,W,H,M),R=!1):(X&&lr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),He(ft)),X=!1,O.afterProgramCreate&&ct!==W&&O.afterProgramCreate(W),Q.readFile=Me,Q.fileExists=Ke,Q.directoryExists=Vr,Q.createDirectory=Yr,Q.writeFile=Nt,W}function He(ct){De("CreatingProgramWith::"),De(" roots: ".concat(JSON.stringify(oe))),De(" options: ".concat(JSON.stringify(w))),M&&De(" projectReferences: ".concat(JSON.stringify(M)));var ft=C||!tr();C=!1,R=!1,ae.startCachingPerDirectoryResolution(),Q.hasInvalidatedResolutions=ct,Q.hasChangedAutomaticTypeDirectiveNames=mr;var Dt=tr();if(W=ne(oe,w,Q,W,H,M),ae.finishCachingPerDirectoryResolution(W.getProgram(),Dt),e.updateMissingFilePathsWatch(W.getProgram(),v||(v=new e.Map),cr),ft&&ae.updateTypeRootsWatch(),y){for(var Me=0,Ke=y;Me<Ke.length;Me++){var Vr=Ke[Me];v.has(Vr)||A.delete(Vr)}y=void 0}}function rr(ct){e.Debug.assert(!z,"Cannot update root file names with config file watch mode"),oe=ct,Ze()}function je(){return e.getNewLineCharacter(w||Pe,function(){return O.getNewLine()})}function Ce(ct){return e.toPath(ct,F,N)}function Ae(ct){return typeof ct=="boolean"}function qe(ct){return typeof ct.version=="boolean"}function xe(ct){var ft=Ce(ct);return Ae(A.get(ft))?!1:I.fileExists(ct)}function L(ct,ft,Dt,Me,Ke){var Vr=A.get(ft);if(!Ae(Vr)){if(Vr===void 0||Ke||qe(Vr)){var Yr=G(ct,Dt,Me);if(Vr)Yr?(Vr.sourceFile=Yr,Vr.version=Yr.version,Vr.fileWatcher||(Vr.fileWatcher=Fe(ft,ct,vr,e.PollingInterval.Low,re,e.WatchType.SourceFile))):(Vr.fileWatcher&&Vr.fileWatcher.close(),A.set(ft,!1));else if(Yr){var Nt=Fe(ft,ct,vr,e.PollingInterval.Low,re,e.WatchType.SourceFile);A.set(ft,{sourceFile:Yr,version:Yr.version,fileWatcher:Nt})}else A.set(ft,!1);return Yr}return Vr.sourceFile}}function ue(ct){var ft=A.get(ct);ft!==void 0&&(Ae(ft)?A.set(ct,{version:!1}):ft.version=!1)}function Ue(ct,ft){var Dt=A.get(ct);if(Dt){if(Dt.version)return Dt.version;var Me=ft(ct);return Me!==void 0?(Q.createHash||e.generateDjb2Hash)(Me):void 0}}function Je(ct,ft,Dt){var Me=A.get(ct.resolvedPath);Me!==void 0&&(Ae(Me)?(y||(y=[])).push(ct.path):Me.sourceFile===ct&&(Me.fileWatcher&&Me.fileWatcher.close(),A.delete(ct.resolvedPath),Dt||ae.removeResolutionsOfFile(ct.path)))}function lr(ct){O.onWatchStatusChange&&O.onWatchStatusChange(e.createCompilerDiagnostic(ct),le,w||Pe)}function mr(){return ae.hasChangedAutomaticTypeDirectiveNames()}function Hr(){return Y?(O.clearTimeout(Y),Y=void 0,!0):!1}function wr(){if(!O.setTimeout||!O.clearTimeout)return ae.invalidateResolutionsOfFailedLookupLocations();var ct=Hr();De("Scheduling invalidateFailedLookup".concat(ct?", Cancelled earlier one":"")),Y=O.setTimeout(Oe,250)}function Oe(){Y=void 0,ae.invalidateResolutionsOfFailedLookupLocations()&&Ze()}function Ze(){!O.setTimeout||!O.clearTimeout||(te&&O.clearTimeout(te),De("Scheduling update"),te=O.setTimeout(ut,250))}function tt(){e.Debug.assert(!!z),E=e.ConfigFileProgramReloadLevel.Full,Ze()}function ut(){te=void 0,X=!0,or()}function or(){switch(E){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),qr();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),Rr();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),me();break}return e.perfLogger.logStopUpdateProgram("Done"),nr()}function qr(){De("Reloading new file names and options"),E=e.ConfigFileProgramReloadLevel.None,oe=e.getFileNamesFromConfigSpecs(w.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(z),F),w,he,_e),e.updateErrorForNoInputFiles(oe,e.getNormalizedAbsolutePath(z,F),w.configFile.configFileSpecs,H,q)&&(R=!0),me()}function Rr(){De("Reloading config file: ".concat(z)),E=e.ConfigFileProgramReloadLevel.None,K&&K.clearCache(),zr(),C=!0,me(),Re(),Br(Ce(z),w,re,e.WatchType.ExtendedConfigFile)}function zr(){Fr(e.getParsedCommandLineOfConfigFile(z,Pe,he,k||(k=new e.Map),fe,_e))}function Fr(ct){oe=ct.fileNames,w=ct.options,re=ct.watchOptions,M=ct.projectReferences,U=ct.wildcardDirectories,H=e.getConfigFileParsingDiagnostics(ct).slice(),q=e.canJsonReportNoInputFiles(ct.raw),R=!0}function _t(ct){var ft=Ce(ct),Dt=Z==null?void 0:Z.get(ft);if(Dt){if(!Dt.reloadLevel)return Dt.parsedCommandLine;if(Dt.parsedCommandLine&&Dt.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!O.getParsedCommandLine){De("Reloading new file names and options");var Me=e.getFileNamesFromConfigSpecs(Dt.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(ct),F),w,he);return Dt.parsedCommandLine=n(n({},Dt.parsedCommandLine),{fileNames:Me}),Dt.reloadLevel=void 0,Dt.parsedCommandLine}}De("Loading config file: ".concat(ct));var Ke=O.getParsedCommandLine?O.getParsedCommandLine(ct):Ct(ct);return Dt?(Dt.parsedCommandLine=Ke,Dt.reloadLevel=void 0):(Z||(Z=new e.Map)).set(ft,Dt={parsedCommandLine:Ke}),Qr(ct,ft,Dt),Ke}function Ct(ct){var ft=he.onUnRecoverableConfigFileDiagnostic;he.onUnRecoverableConfigFileDiagnostic=e.noop;var Dt=e.getParsedCommandLineOfConfigFile(ct,void 0,he,k||(k=new e.Map),fe);return he.onUnRecoverableConfigFileDiagnostic=ft,Dt}function yt(ct){var ft,Dt=Ce(ct),Me=Z==null?void 0:Z.get(Dt);Me&&(Z.delete(Dt),Me.watchedDirectories&&e.clearMap(Me.watchedDirectories,e.closeFileWatcherOf),(ft=Me.watcher)===null||ft===void 0||ft.close(),e.clearSharedExtendedConfigFileWatcher(Dt,ce))}function Fe(ct,ft,Dt,Me,Ke,Vr){return J(ft,function(Yr,Nt){return Dt(Yr,Nt,ct)},Me,Ke,Vr)}function vr(ct,ft,Dt){Le(ct,Dt,ft),ft===e.FileWatcherEventKind.Deleted&&A.has(Dt)&&ae.invalidateResolutionOfFile(Dt),ue(Dt),Ze()}function Le(ct,ft,Dt){K&&K.addOrDeleteFile(ct,ft,Dt)}function cr(ct){return Z!=null&&Z.has(ct)?e.noopFileWatcher:Fe(ct,ct,$r,e.PollingInterval.Medium,re,e.WatchType.MissingFile)}function $r(ct,ft,Dt){Le(ct,Dt,ft),ft===e.FileWatcherEventKind.Created&&v.has(Dt)&&(v.get(Dt).close(),v.delete(Dt),ue(Dt),Ze())}function Re(){U?e.updateWatchingWildcardDirectories(S||(S=new e.Map),new e.Map(e.getEntries(U)),xr):S&&e.clearMap(S,e.closeFileWatcherOf)}function xr(ct,ft){return de(ct,function(Dt){e.Debug.assert(!!z);var Me=Ce(Dt);K&&K.addOrDeleteFileOrDirectory(Dt,Me),ue(Me),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:Ce(ct),fileOrDirectory:Dt,fileOrDirectoryPath:Me,configFileName:z,extraFileExtensions:_e,options:w,program:nr()||oe,currentDirectory:F,useCaseSensitiveFileNames:B,writeLog:De,toPath:Ce})&&E!==e.ConfigFileProgramReloadLevel.Full&&(E=e.ConfigFileProgramReloadLevel.Partial,Ze())},ft,re,e.WatchType.WildcardDirectory)}function Br(ct,ft,Dt,Me){e.updateSharedExtendedConfigFileWatcher(ct,ft,ce||(ce=new e.Map),function(Ke,Vr){return J(Ke,function(Yr,Nt){var Wt;Le(Ke,Vr,Nt),k&&e.cleanExtendedConfigCache(k,Vr,Ce);var sn=(Wt=ce.get(Vr))===null||Wt===void 0?void 0:Wt.projects;sn!=null&&sn.size&&sn.forEach(function(en){if(Ce(z)===en)E=e.ConfigFileProgramReloadLevel.Full;else{var Ir=Z==null?void 0:Z.get(en);Ir&&(Ir.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ae.removeResolutionsFromProjectReferenceRedirects(en)}Ze()})},e.PollingInterval.High,Dt,Me)},Ce)}function Qr(ct,ft,Dt){var Me,Ke,Vr,Yr,Nt;Dt.watcher||(Dt.watcher=J(ct,function(Wt,sn){Le(ct,ft,sn);var en=Z==null?void 0:Z.get(ft);en&&(en.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ae.removeResolutionsFromProjectReferenceRedirects(ft),Ze()},e.PollingInterval.High,((Me=Dt.parsedCommandLine)===null||Me===void 0?void 0:Me.watchOptions)||re,e.WatchType.ConfigFileOfReferencedProject)),!((Ke=Dt.parsedCommandLine)===null||Ke===void 0)&&Ke.wildcardDirectories?e.updateWatchingWildcardDirectories(Dt.watchedDirectories||(Dt.watchedDirectories=new e.Map),new e.Map(e.getEntries((Vr=Dt.parsedCommandLine)===null||Vr===void 0?void 0:Vr.wildcardDirectories)),function(Wt,sn){var en;return de(Wt,function(Ir){var Jr=Ce(Ir);K&&K.addOrDeleteFileOrDirectory(Ir,Jr),ue(Jr);var ye=Z==null?void 0:Z.get(ft);ye!=null&&ye.parsedCommandLine&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:Ce(Wt),fileOrDirectory:Ir,fileOrDirectoryPath:Jr,configFileName:ct,options:ye.parsedCommandLine.options,program:ye.parsedCommandLine.fileNames,currentDirectory:F,useCaseSensitiveFileNames:B,writeLog:De,toPath:Ce})||ye.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(ye.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,Ze()))},sn,((en=Dt.parsedCommandLine)===null||en===void 0?void 0:en.watchOptions)||re,e.WatchType.WildcardDirectoryOfReferencedProject)}):Dt.watchedDirectories&&(e.clearMap(Dt.watchedDirectories,e.closeFileWatcherOf),Dt.watchedDirectories=void 0),Br(ft,(Yr=Dt.parsedCommandLine)===null||Yr===void 0?void 0:Yr.options,((Nt=Dt.parsedCommandLine)===null||Nt===void 0?void 0:Nt.watchOptions)||re,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=D})(h||(h={}));var h;(function(e){(function(P){P[P.Unbuildable=0]="Unbuildable",P[P.UpToDate=1]="UpToDate",P[P.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",P[P.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",P[P.OutputMissing=4]="OutputMissing",P[P.ErrorReadingFile=5]="ErrorReadingFile",P[P.OutOfDateWithSelf=6]="OutOfDateWithSelf",P[P.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",P[P.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",P[P.UpstreamOutOfDate=9]="UpstreamOutOfDate",P[P.UpstreamBlocked=10]="UpstreamBlocked",P[P.ComputingUpstream=11]="ComputingUpstream",P[P.TsVersionOutputOfDate=12]="TsVersionOutputOfDate",P[P.UpToDateWithInputFileText=13]="UpToDateWithInputFileText",P[P.ContainerOnly=14]="ContainerOnly",P[P.ForceBuild=15]="ForceBuild"})(e.UpToDateStatusType||(e.UpToDateStatusType={}));function c(P){return e.fileExtensionIs(P,".json")?P:e.combinePaths(P,"tsconfig.json")}e.resolveConfigFileProjectName=c})(h||(h={}));var h;(function(e){var c=new Date(-864e13),P=new Date(864e13),T;(function(Re){Re[Re.None=0]="None",Re[Re.Success=1]="Success",Re[Re.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",Re[Re.ConfigFileErrors=4]="ConfigFileErrors",Re[Re.SyntaxErrors=8]="SyntaxErrors",Re[Re.TypeErrors=16]="TypeErrors",Re[Re.DeclarationEmitErrors=32]="DeclarationEmitErrors",Re[Re.EmitErrors=64]="EmitErrors",Re[Re.AnyErrors=124]="AnyErrors"})(T||(T={}));function s(Re,xr,Br){var Qr=Re.get(xr),ct;return Qr||(ct=Br(),Re.set(xr,ct)),Qr||ct}function D(Re,xr){return s(Re,xr,function(){return new e.Map})}function O(Re){return Re.now?Re.now():new Date}e.getCurrentTime=O;function W(Re){return!!Re&&!!Re.buildOrder}e.isCircularBuildOrder=W;function E(Re){return W(Re)?Re.buildOrder:Re}e.getBuildOrderFromAnyBuildOrder=E;function v(Re,xr){return function(Br){var Qr=xr?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(Re),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(Re)," - ");Qr+="".concat(e.flattenDiagnosticMessageText(Br.messageText,Re.newLine)).concat(Re.newLine+Re.newLine),Re.write(Qr)}}e.createBuilderStatusReporter=v;function S(Re,xr,Br,Qr){var ct=e.createProgramHost(Re,xr);return ct.getModifiedTime=Re.getModifiedTime?function(ft){return Re.getModifiedTime(ft)}:e.returnUndefined,ct.setModifiedTime=Re.setModifiedTime?function(ft,Dt){return Re.setModifiedTime(ft,Dt)}:e.noop,ct.deleteFile=Re.deleteFile?function(ft){return Re.deleteFile(ft)}:e.noop,ct.reportDiagnostic=Br||e.createDiagnosticReporter(Re),ct.reportSolutionBuilderStatus=Qr||v(Re),ct.now=e.maybeBind(Re,Re.now),ct}function te(Re,xr,Br,Qr,ct){Re===void 0&&(Re=e.sys);var ft=S(Re,xr,Br,Qr);return ft.reportErrorSummary=ct,ft}e.createSolutionBuilderHost=te;function Y(Re,xr,Br,Qr,ct){Re===void 0&&(Re=e.sys);var ft=S(Re,xr,Br,Qr),Dt=e.createWatchHost(Re,ct);return e.copyProperties(ft,Dt),ft}e.createSolutionBuilderWithWatchHost=Y;function Z(Re){var xr={};return e.commonOptionsWithBuild.forEach(function(Br){e.hasProperty(Re,Br.name)&&(xr[Br.name]=Re[Br.name])}),xr}function ce(Re,xr,Br){return Rr(!1,Re,xr,Br)}e.createSolutionBuilder=ce;function k(Re,xr,Br,Qr){return Rr(!0,Re,xr,Br,Qr)}e.createSolutionBuilderWithWatch=k;function X(Re,xr,Br,Qr,ct){var ft=xr,Dt=xr,Me=ft.getCurrentDirectory(),Ke=e.createGetCanonicalFileName(ft.useCaseSensitiveFileNames()),Vr=Z(Qr),Yr=e.createCompilerHostFromProgramHost(ft,function(){return We.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Yr),Yr.getParsedCommandLine=function(dr){return F(We,dr,y(We,dr))},Yr.resolveModuleNames=e.maybeBind(ft,ft.resolveModuleNames),Yr.resolveTypeReferenceDirectives=e.maybeBind(ft,ft.resolveTypeReferenceDirectives),Yr.getModuleResolutionCache=e.maybeBind(ft,ft.getModuleResolutionCache);var Nt=Yr.resolveModuleNames?void 0:e.createModuleResolutionCache(Me,Ke),Wt=Yr.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(Me,Ke,void 0,Nt==null?void 0:Nt.getPackageJsonInfoCache());if(!Yr.resolveModuleNames){var sn=function(dr,ar,Sr,Or){return e.resolveModuleName(dr,Sr,We.projectCompilerOptions,Yr,Nt,Or,ar).resolvedModule};Yr.resolveModuleNames=function(dr,ar,Sr,Or,Ge,ur){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(dr),e.Debug.checkDefined(ur),ar,Or,sn)},Yr.getModuleResolutionCache=function(){return Nt}}if(!Yr.resolveTypeReferenceDirectives){var en=function(dr,ar,Sr,Or){return e.resolveTypeReferenceDirective(dr,ar,We.projectCompilerOptions,Yr,Sr,We.typeReferenceDirectiveResolutionCache,Or).resolvedTypeReferenceDirective};Yr.resolveTypeReferenceDirectives=function(dr,ar,Sr,Or,Ge){return e.loadWithTypeDirectiveCache(e.Debug.checkEachDefined(dr),ar,Sr,Ge,en)}}Yr.getBuildInfo=function(dr,ar){return we(We,dr,y(We,ar),void 0)};var Ir=e.createWatchFactory(Dt,Qr),Jr=Ir.watchFile,ye=Ir.watchDirectory,Ie=Ir.writeLog,We={host:ft,hostWithWatch:Dt,currentDirectory:Me,getCanonicalFileName:Ke,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(ft),write:e.maybeBind(ft,ft.trace),options:Qr,baseCompilerOptions:Vr,rootNames:Br,baseWatchOptions:ct,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,extendedConfigCache:new e.Map,buildInfoCache:new e.Map,outputTimeStamps:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Yr,moduleResolutionCache:Nt,typeReferenceDirectiveResolutionCache:Wt,buildOrder:void 0,readFileWithCache:function(dr){return ft.readFile(dr)},projectCompilerOptions:Vr,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:Re,watch:Re,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,filesWatched:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:Jr,watchDirectory:ye,writeLog:Ie};return We}function A(Re,xr){return e.toPath(xr,Re.currentDirectory,Re.getCanonicalFileName)}function y(Re,xr){var Br=Re.resolvedConfigFilePaths,Qr=Br.get(xr);if(Qr!==void 0)return Qr;var ct=A(Re,xr);return Br.set(xr,ct),ct}function C(Re){return!!Re.options}function B(Re,xr){var Br=Re.configFileCache.get(xr);return Br&&C(Br)?Br:void 0}function F(Re,xr,Br){var Qr=Re.configFileCache,ct=Qr.get(Br);if(ct)return C(ct)?ct:void 0;e.performance.mark("SolutionBuilder::beforeConfigFileParsing");var ft,Dt=Re.parseConfigFileHost,Me=Re.baseCompilerOptions,Ke=Re.baseWatchOptions,Vr=Re.extendedConfigCache,Yr=Re.host,Nt;return Yr.getParsedCommandLine?(Nt=Yr.getParsedCommandLine(xr),Nt||(ft=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,xr))):(Dt.onUnRecoverableConfigFileDiagnostic=function(Wt){return ft=Wt},Nt=e.getParsedCommandLineOfConfigFile(xr,Me,Dt,Vr,Ke),Dt.onUnRecoverableConfigFileDiagnostic=e.noop),Qr.set(Br,Nt||ft),e.performance.mark("SolutionBuilder::afterConfigFileParsing"),e.performance.measure("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),Nt}function z(Re,xr){return e.resolveConfigFileProjectName(e.resolvePath(Re.currentDirectory,xr))}function ge(Re,xr){for(var Br=new e.Map,Qr=new e.Map,ct=[],ft,Dt,Me=0,Ke=xr;Me<Ke.length;Me++){var Vr=Ke[Me];Yr(Vr)}return Dt?{buildOrder:ft||e.emptyArray,circularDiagnostics:Dt}:ft||e.emptyArray;function Yr(Nt,Wt){var sn=y(Re,Nt);if(!Qr.has(sn)){if(Br.has(sn)){Wt||(Dt||(Dt=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,ct.join(`\r
`)));return}Br.set(sn,!0),ct.push(Nt);var en=F(Re,Nt,sn);if(en&&en.projectReferences)for(var Ir=0,Jr=en.projectReferences;Ir<Jr.length;Ir++){var ye=Jr[Ir],Ie=z(Re,ye.path);Yr(Ie,Wt||ye.circular)}ct.pop(),Qr.set(sn,!0),(ft||(ft=[])).push(Nt)}}}function Pe(Re){return Re.buildOrder||fe(Re)}function fe(Re){var xr=ge(Re,Re.rootNames.map(function(ct){return z(Re,ct)}));Re.resolvedConfigFilePaths.clear();var Br=new e.Map(E(xr).map(function(ct){return[y(Re,ct),!0]})),Qr={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(Re.configFileCache,Br,Qr),e.mutateMapSkippingNewValues(Re.projectStatus,Br,Qr),e.mutateMapSkippingNewValues(Re.builderPrograms,Br,Qr),e.mutateMapSkippingNewValues(Re.diagnostics,Br,Qr),e.mutateMapSkippingNewValues(Re.projectPendingBuild,Br,Qr),e.mutateMapSkippingNewValues(Re.projectErrorsReported,Br,Qr),e.mutateMapSkippingNewValues(Re.buildInfoCache,Br,Qr),e.mutateMapSkippingNewValues(Re.outputTimeStamps,Br,Qr),Re.watch&&(e.mutateMapSkippingNewValues(Re.allWatchedConfigFiles,Br,{onDeleteValue:e.closeFileWatcher}),Re.allWatchedExtendedConfigFiles.forEach(function(ct){ct.projects.forEach(function(ft){Br.has(ft)||ct.projects.delete(ft)}),ct.close()}),e.mutateMapSkippingNewValues(Re.allWatchedWildcardDirectories,Br,{onDeleteValue:function(ct){return ct.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(Re.allWatchedInputFiles,Br,{onDeleteValue:function(ct){return ct.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(Re.allWatchedPackageJsonFiles,Br,{onDeleteValue:function(ct){return ct.forEach(e.closeFileWatcher)}})),Re.buildOrder=xr}function _e(Re,xr,Br){var Qr=xr&&z(Re,xr),ct=Pe(Re);if(W(ct))return ct;if(Qr){var ft=y(Re,Qr),Dt=e.findIndex(ct,function(Ke){return y(Re,Ke)===ft});if(Dt===-1)return}var Me=Qr?ge(Re,[Qr]):ct;return e.Debug.assert(!W(Me)),e.Debug.assert(!Br||Qr!==void 0),e.Debug.assert(!Br||Me[Me.length-1]===Qr),Br?Me.slice(0,Me.length-1):Me}function ne(Re){Re.cache&&oe(Re);var xr=Re.compilerHost,Br=Re.host,Qr=Re.readFileWithCache,ct=xr.getSourceFile,ft=e.changeCompilerHostLikeToUseCache(Br,function(sn){return A(Re,sn)},function(){for(var sn=[],en=0;en<arguments.length;en++)sn[en]=arguments[en];return ct.call.apply(ct,t([xr],sn,!1))}),Dt=ft.originalReadFile,Me=ft.originalFileExists,Ke=ft.originalDirectoryExists,Vr=ft.originalCreateDirectory,Yr=ft.originalWriteFile,Nt=ft.getSourceFileWithCache,Wt=ft.readFileWithCache;Re.readFileWithCache=Wt,xr.getSourceFile=Nt,Re.cache={originalReadFile:Dt,originalFileExists:Me,originalDirectoryExists:Ke,originalCreateDirectory:Vr,originalWriteFile:Yr,originalReadFileWithCache:Qr,originalGetSourceFile:ct}}function oe(Re){if(Re.cache){var xr=Re.cache,Br=Re.host,Qr=Re.compilerHost,ct=Re.extendedConfigCache,ft=Re.moduleResolutionCache,Dt=Re.typeReferenceDirectiveResolutionCache;Br.readFile=xr.originalReadFile,Br.fileExists=xr.originalFileExists,Br.directoryExists=xr.originalDirectoryExists,Br.createDirectory=xr.originalCreateDirectory,Br.writeFile=xr.originalWriteFile,Qr.getSourceFile=xr.originalGetSourceFile,Re.readFileWithCache=xr.originalReadFileWithCache,ct.clear(),ft==null||ft.clear(),Dt==null||Dt.clear(),Re.cache=void 0}}function w(Re,xr){Re.projectStatus.delete(xr),Re.diagnostics.delete(xr)}function re(Re,xr,Br){var Qr=Re.projectPendingBuild,ct=Qr.get(xr);(ct===void 0||ct<Br)&&Qr.set(xr,Br)}function M(Re,xr){if(Re.allProjectBuildPending){Re.allProjectBuildPending=!1,Re.options.watch&&_t(Re,e.Diagnostics.Starting_compilation_in_watch_mode),ne(Re);var Br=E(Pe(Re));Br.forEach(function(Qr){return Re.projectPendingBuild.set(y(Re,Qr),e.ConfigFileProgramReloadLevel.None)}),xr&&xr.throwIfCancellationRequested()}}var U;(function(Re){Re[Re.Build=0]="Build",Re[Re.UpdateBundle=1]="UpdateBundle",Re[Re.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(U=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function H(Re,xr){return Re.projectPendingBuild.delete(xr),Re.diagnostics.has(xr)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function q(Re,xr,Br,Qr,ct){var ft=!0;return{kind:U.UpdateOutputFileStamps,project:xr,projectPath:Br,buildOrder:ct,getCompilerOptions:function(){return Qr.options},getCurrentDirectory:function(){return Re.currentDirectory},updateOutputFileStatmps:function(){Ce(Re,Qr,Br),ft=!1},done:function(){return ft&&Ce(Re,Qr,Br),e.performance.mark("SolutionBuilder::Timestamps only updates"),H(Re,Br)}}}var R;(function(Re){Re[Re.CreateProgram=0]="CreateProgram",Re[Re.SyntaxDiagnostics=1]="SyntaxDiagnostics",Re[Re.SemanticDiagnostics=2]="SemanticDiagnostics",Re[Re.Emit=3]="Emit",Re[Re.EmitBundle=4]="EmitBundle",Re[Re.EmitBuildInfo=5]="EmitBuildInfo",Re[Re.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",Re[Re.QueueReferencingProjects=7]="QueueReferencingProjects",Re[Re.Done=8]="Done"})(R||(R={}));function K(Re,xr,Br,Qr,ct,ft,Dt){var Me=Re===U.Build?R.CreateProgram:R.EmitBundle,Ke,Vr,Yr;return Re===U.Build?{kind:Re,project:Br,projectPath:Qr,buildOrder:Dt,getCompilerOptions:function(){return ft.options},getCurrentDirectory:function(){return xr.currentDirectory},getBuilderProgram:function(){return Wt(e.identity)},getProgram:function(){return Wt(function(Or){return Or.getProgramOrUndefined()})},getSourceFile:function(Or){return Wt(function(Ge){return Ge.getSourceFile(Or)})},getSourceFiles:function(){return sn(function(Or){return Or.getSourceFiles()})},getOptionsDiagnostics:function(Or){return sn(function(Ge){return Ge.getOptionsDiagnostics(Or)})},getGlobalDiagnostics:function(Or){return sn(function(Ge){return Ge.getGlobalDiagnostics(Or)})},getConfigFileParsingDiagnostics:function(){return sn(function(Or){return Or.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(Or,Ge){return sn(function(ur){return ur.getSyntacticDiagnostics(Or,Ge)})},getAllDependencies:function(Or){return sn(function(Ge){return Ge.getAllDependencies(Or)})},getSemanticDiagnostics:function(Or,Ge){return sn(function(ur){return ur.getSemanticDiagnostics(Or,Ge)})},getSemanticDiagnosticsOfNextAffectedFile:function(Or,Ge){return Wt(function(ur){return ur.getSemanticDiagnosticsOfNextAffectedFile&&ur.getSemanticDiagnosticsOfNextAffectedFile(Or,Ge)})},emit:function(Or,Ge,ur,Lr,Ar){if(Or||Lr)return Wt(function(rt){var Et,St;return rt.emit(Or,Ge,ur,Lr,Ar||((St=(Et=xr.host).getCustomTransformers)===null||St===void 0?void 0:St.call(Et,Br)))});if(Sr(R.SemanticDiagnostics,ur),Me===R.EmitBuildInfo)return We(Ge,ur);if(Me===R.Emit)return Ie(Ge,ur,Ar)},done:Nt}:{kind:Re,project:Br,projectPath:Qr,buildOrder:Dt,getCompilerOptions:function(){return ft.options},getCurrentDirectory:function(){return xr.currentDirectory},emit:function(Or,Ge){return Me!==R.EmitBundle?Yr:ar(Or,Ge)},done:Nt};function Nt(Or,Ge,ur){return Sr(R.Done,Or,Ge,ur),Re===U.Build?e.performance.mark("SolutionBuilder::Projects built"):e.performance.mark("SolutionBuilder::Bundles updated"),H(xr,Qr)}function Wt(Or){return Sr(R.CreateProgram),Ke&&Or(Ke)}function sn(Or){return Wt(Or)||e.emptyArray}function en(){var Or,Ge;if(e.Debug.assert(Ke===void 0),xr.options.dry){Fr(xr,e.Diagnostics.A_non_dry_build_would_build_project_0,Br),Vr=T.Success,Me=R.QueueReferencingProjects;return}if(xr.options.verbose&&Fr(xr,e.Diagnostics.Building_project_0,Br),ft.fileNames.length===0){yt(xr,Qr,e.getConfigFileParsingDiagnostics(ft)),Vr=T.None,Me=R.QueueReferencingProjects;return}var ur=xr.host,Lr=xr.compilerHost;xr.projectCompilerOptions=ft.options,(Or=xr.moduleResolutionCache)===null||Or===void 0||Or.update(ft.options),(Ge=xr.typeReferenceDirectiveResolutionCache)===null||Ge===void 0||Ge.update(ft.options),Ke=ur.createProgram(ft.fileNames,ft.options,Lr,de(xr,Qr,ft),e.getConfigFileParsingDiagnostics(ft),ft.projectReferences),xr.watch&&(xr.lastCachedPackageJsonLookups.set(Qr,xr.moduleResolutionCache&&e.map(xr.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(Ar){var rt=Ar[0],Et=Ar[1];return[xr.host.realpath&&Et?A(xr,xr.host.realpath(rt)):rt,Et]})),xr.builderPrograms.set(Qr,Ke)),Me++}function Ir(Or,Ge,ur){var Lr;Or.length?(Lr=N(xr,Qr,Ke,ft,Or,Ge,ur),Vr=Lr.buildResult,Me=Lr.step):Me++}function Jr(Or){e.Debug.assertIsDefined(Ke),Ir(t(t(t(t([],Ke.getConfigFileParsingDiagnostics(),!0),Ke.getOptionsDiagnostics(Or),!0),Ke.getGlobalDiagnostics(Or),!0),Ke.getSyntacticDiagnostics(void 0,Or),!0),T.SyntaxErrors,"Syntactic")}function ye(Or){Ir(e.Debug.checkDefined(Ke).getSemanticDiagnostics(void 0,Or),T.TypeErrors,"Semantic")}function Ie(Or,Ge,ur){var Lr,Ar,rt,Et;e.Debug.assertIsDefined(Ke),e.Debug.assert(Me===R.Emit);var St=Ke.saveEmitState(),Pt,pt=function(hr){return(Pt||(Pt=[])).push(hr)},Ft=[],ht=e.emitFilesAndReportErrors(Ke,pt,void 0,void 0,function(hr,at,Qe,Qt,Zt,Tt){return Ft.push({name:hr,text:at,writeByteOrderMark:Qe,buildInfo:Tt==null?void 0:Tt.buildInfo})},Ge,!1,ur||((rt=(Ar=xr.host).getCustomTransformers)===null||rt===void 0?void 0:rt.call(Ar,Br))).emitResult;if(Pt)return Ke.restoreEmitState(St),Lr=N(xr,Qr,Ke,ft,Pt,T.DeclarationEmitErrors,"Declaration file"),Vr=Lr.buildResult,Me=Lr.step,{emitSkipped:!0,diagnostics:ht.diagnostics};var Yt=xr.host,un=xr.compilerHost,wn=!((Et=Ke.hasChangedEmitSignature)===null||Et===void 0)&&Et.call(Ke)?T.None:T.DeclarationOutputUnchanged,Bn=e.createDiagnosticCollection(),yn=new e.Map,Tn=Ke.getCompilerOptions(),An=e.isIncrementalCompilation(Tn),ii,Xe;return Ft.forEach(function(hr){var at=hr.name,Qe=hr.text,Qt=hr.writeByteOrderMark,Zt=hr.buildInfo,Tt=A(xr,at);yn.set(A(xr,at),at),Zt&&Te(xr,Zt,Qr,Tn,wn),e.writeFile(Or?{writeFile:Or}:un,Bn,at,Qe,Qt),!An&&xr.watch&&(ii||(ii=ae(xr,Qr))).set(Tt,Xe||(Xe=O(xr.host)))}),dr(Bn,yn,Ft.length?Ft[0].name:e.getFirstProjectOutput(ft,!Yt.useCaseSensitiveFileNames()),wn),ht}function We(Or,Ge){e.Debug.assertIsDefined(Ke),e.Debug.assert(Me===R.EmitBuildInfo);var ur=Ke.emitBuildInfo(function(Lr,Ar,rt,Et,St,Pt){Pt!=null&&Pt.buildInfo&&Te(xr,Pt.buildInfo,Qr,Ke.getCompilerOptions(),T.DeclarationOutputUnchanged),Or?Or(Lr,Ar,rt,Et,St,Pt):xr.compilerHost.writeFile(Lr,Ar,rt,Et,St,Pt)},Ge);return ur.diagnostics.length&&(Ct(xr,ur.diagnostics),xr.diagnostics.set(Qr,t(t([],xr.diagnostics.get(Qr),!0),ur.diagnostics,!0)),Vr=T.EmitErrors&Vr),ur.emittedFiles&&xr.write&&ur.emittedFiles.forEach(function(Lr){return J(xr,ft,Lr)}),De(xr,Ke,ft),Me=R.QueueReferencingProjects,ur}function dr(Or,Ge,ur,Lr){var Ar,rt=Or.getDiagnostics();return rt.length?(Ar=N(xr,Qr,Ke,ft,rt,T.EmitErrors,"Emit"),Vr=Ar.buildResult,Me=Ar.step,rt):(xr.write&&Ge.forEach(function(Et){return J(xr,ft,Et)}),rr(xr,ft,Qr,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,Ge),xr.diagnostics.delete(Qr),xr.projectStatus.set(Qr,{type:e.UpToDateStatusType.UpToDate,oldestOutputFileName:ur}),De(xr,Ke,ft),Me=R.QueueReferencingProjects,Vr=Lr,rt)}function ar(Or,Ge){var ur,Lr;if(e.Debug.assert(Re===U.UpdateBundle),xr.options.dry){Fr(xr,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,Br),Vr=T.Success,Me=R.QueueReferencingProjects;return}xr.options.verbose&&Fr(xr,e.Diagnostics.Updating_output_of_project_0,Br);var Ar=xr.compilerHost;xr.projectCompilerOptions=ft.options;var rt=e.emitUsingBuildInfo(ft,Ar,function(ht){var Yt=z(xr,ht.path);return F(xr,Yt,y(xr,Yt))},Ge||((Lr=(ur=xr.host).getCustomTransformers)===null||Lr===void 0?void 0:Lr.call(ur,Br)));if(e.isString(rt))return Fr(xr,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,Br,zr(xr,rt)),Me=R.BuildInvalidatedProjectOfBundle,Yr=K(U.Build,xr,Br,Qr,ct,ft,Dt);e.Debug.assert(!!rt.length);var Et=e.createDiagnosticCollection(),St=new e.Map,Pt=T.DeclarationOutputUnchanged,pt=xr.buildInfoCache.get(Qr).buildInfo||void 0;rt.forEach(function(ht){var Yt,un,wn=ht.name,Bn=ht.text,yn=ht.writeByteOrderMark,Tn=ht.buildInfo;St.set(A(xr,wn),wn),Tn&&(((Yt=Tn.program)===null||Yt===void 0?void 0:Yt.outSignature)!==((un=pt==null?void 0:pt.program)===null||un===void 0?void 0:un.outSignature)&&(Pt&=~T.DeclarationOutputUnchanged),Te(xr,Tn,Qr,ft.options,Pt)),e.writeFile(Or?{writeFile:Or}:Ar,Et,wn,Bn,yn)});var Ft=dr(Et,St,rt[0].name,Pt);return{emitSkipped:!1,diagnostics:Ft}}function Sr(Or,Ge,ur,Lr){for(;Me<=Or&&Me<R.Done;){var Ar=Me;switch(Me){case R.CreateProgram:en();break;case R.SyntaxDiagnostics:Jr(Ge);break;case R.SemanticDiagnostics:ye(Ge);break;case R.Emit:Ie(ur,Ge,Lr);break;case R.EmitBuildInfo:We(ur,Ge);break;case R.EmitBundle:ar(ur,Lr);break;case R.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Yr).done(Ge,ur,Lr),Me=R.Done;break;case R.QueueReferencingProjects:Ae(xr,Br,Qr,ct,ft,Dt,e.Debug.checkDefined(Vr)),Me++;break;case R.Done:default:e.assertType(Me)}e.Debug.assert(Me>Ar)}}}function I(Re,xr,Br){var Qr=Re.options;return xr.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Qr.force?!0:Br.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(Br).length||!e.isIncrementalCompilation(Br.options)}function he(Re,xr,Br){if(Re.projectPendingBuild.size&&!W(xr))for(var Qr=Re.options,ct=Re.projectPendingBuild,ft=0;ft<xr.length;ft++){var Dt=xr[ft],Me=y(Re,Dt),Ke=Re.projectPendingBuild.get(Me);if(Ke!==void 0){Br&&(Br=!1,Le(Re,xr));var Vr=F(Re,Dt,Me);if(!Vr){Fe(Re,Me),ct.delete(Me);continue}Ke===e.ConfigFileProgramReloadLevel.Full?(wr(Re,Dt,Me,Vr),Oe(Re,Me,Vr),Ze(Re,Dt,Me,Vr),tt(Re,Dt,Me,Vr),ut(Re,Dt,Me,Vr)):Ke===e.ConfigFileProgramReloadLevel.Partial&&(Vr.fileNames=e.getFileNamesFromConfigSpecs(Vr.options.configFile.configFileSpecs,e.getDirectoryPath(Dt),Vr.options,Re.parseConfigFileHost),e.updateErrorForNoInputFiles(Vr.fileNames,Dt,Vr.options.configFile.configFileSpecs,Vr.errors,e.canJsonReportNoInputFiles(Vr.raw)),tt(Re,Dt,Me,Vr),ut(Re,Dt,Me,Vr));var Yr=He(Re,Vr,Me);if(!Qr.force){if(Yr.type===e.UpToDateStatusType.UpToDate){$r(Re,Dt,Yr),yt(Re,Me,e.getConfigFileParsingDiagnostics(Vr)),ct.delete(Me),Qr.dry&&Fr(Re,e.Diagnostics.Project_0_is_up_to_date,Dt);continue}if(Yr.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes||Yr.type===e.UpToDateStatusType.UpToDateWithInputFileText)return yt(Re,Me,e.getConfigFileParsingDiagnostics(Vr)),{kind:U.UpdateOutputFileStamps,status:Yr,project:Dt,projectPath:Me,projectIndex:ft,config:Vr}}if(Yr.type===e.UpToDateStatusType.UpstreamBlocked){$r(Re,Dt,Yr),yt(Re,Me,e.getConfigFileParsingDiagnostics(Vr)),ct.delete(Me),Qr.verbose&&Fr(Re,Yr.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,Dt,Yr.upstreamProjectName);continue}if(Yr.type===e.UpToDateStatusType.ContainerOnly){$r(Re,Dt,Yr),yt(Re,Me,e.getConfigFileParsingDiagnostics(Vr)),ct.delete(Me);continue}return{kind:I(Re,Yr,Vr)?U.Build:U.UpdateBundle,status:Yr,project:Dt,projectPath:Me,projectIndex:ft,config:Vr}}}}function le(Re,xr,Br){return $r(Re,xr.project,xr.status),xr.kind!==U.UpdateOutputFileStamps?K(xr.kind,Re,xr.project,xr.projectPath,xr.projectIndex,xr.config,Br):q(Re,xr.project,xr.projectPath,xr.config,Br)}function ee(Re,xr,Br){var Qr=he(Re,xr,Br);return Qr&&le(Re,Qr,xr)}function J(Re,xr,Br){var Qr=Re.write;Qr&&xr.options.listEmittedFiles&&Qr("TSFILE: ".concat(Br))}function de(Re,xr,Br){var Qr=Re.options,ct=Re.builderPrograms,ft=Re.compilerHost;if(!Qr.force){var Dt=ct.get(xr);return Dt||e.readBuilderProgram(Br.options,ft)}}function De(Re,xr,Br){xr?(Re.write&&e.listFiles(xr,Re.write),Re.host.afterProgramEmitAndDiagnostics&&Re.host.afterProgramEmitAndDiagnostics(xr),xr.releaseProgram()):Re.host.afterEmitBundle&&Re.host.afterEmitBundle(Br),Re.projectCompilerOptions=Re.baseCompilerOptions}function N(Re,xr,Br,Qr,ct,ft,Dt){var Me=Br&&!e.outFile(Br.getCompilerOptions());return yt(Re,xr,ct),Re.projectStatus.set(xr,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(Dt," errors")}),Me?{buildResult:ft,step:R.EmitBuildInfo}:(De(Re,Br,Qr),{buildResult:ft,step:R.QueueReferencingProjects})}function b(Re){return!!Re.watcher}function Q(Re,xr){var Br=A(Re,xr),Qr=Re.filesWatched.get(Br);if(Re.watch&&Qr){if(!b(Qr))return Qr;if(Qr.modifiedTime)return Qr.modifiedTime}var ct=e.getModifiedTime(Re.host,xr);return Re.watch&&(Qr?Qr.modifiedTime=ct:Re.filesWatched.set(Br,ct)),ct}function G(Re,xr,Br,Qr,ct,ft,Dt){var Me=A(Re,xr),Ke=Re.filesWatched.get(Me);if(Ke&&b(Ke))Ke.callbacks.push(Br);else{var Vr=Re.watchFile(xr,function(Yr,Nt,Wt){var sn=e.Debug.checkDefined(Re.filesWatched.get(Me));e.Debug.assert(b(sn)),sn.modifiedTime=Wt,sn.callbacks.forEach(function(en){return en(Yr,Nt,Wt)})},Qr,ct,ft,Dt);Re.filesWatched.set(Me,{callbacks:[Br],watcher:Vr,modifiedTime:Ke})}return{close:function(){var Yr=e.Debug.checkDefined(Re.filesWatched.get(Me));e.Debug.assert(b(Yr)),Yr.callbacks.length===1?(Re.filesWatched.delete(Me),e.closeFileWatcherOf(Yr)):e.unorderedRemoveItem(Yr.callbacks,Br)}}}function ae(Re,xr){if(Re.watch){var Br=Re.outputTimeStamps.get(xr);return Br||Re.outputTimeStamps.set(xr,Br=new e.Map),Br}}function Te(Re,xr,Br,Qr,ct){var ft=e.getTsBuildInfoEmitOutputFilePath(Qr),Dt=Ne(Re,ft,Br),Me=O(Re.host);Dt?(Dt.buildInfo=xr,Dt.modifiedTime=Me,ct&T.DeclarationOutputUnchanged||(Dt.latestChangedDtsTime=Me)):Re.buildInfoCache.set(Br,{path:A(Re,ft),buildInfo:xr,modifiedTime:Me,latestChangedDtsTime:ct&T.DeclarationOutputUnchanged?void 0:Me})}function Ne(Re,xr,Br){var Qr=A(Re,xr),ct=Re.buildInfoCache.get(Br);return(ct==null?void 0:ct.path)===Qr?ct:void 0}function we(Re,xr,Br,Qr){var ct=A(Re,xr),ft=Re.buildInfoCache.get(Br);if(ft!==void 0&&ft.path===ct)return ft.buildInfo||void 0;var Dt=Re.readFileWithCache(xr),Me=Dt?e.getBuildInfo(xr,Dt):void 0;return Re.buildInfoCache.set(Br,{path:ct,buildInfo:Me||!1,modifiedTime:Qr||e.missingFileModifiedTime}),Me}function nr(Re,xr,Br,Qr){var ct=Q(Re,xr);if(Br<ct)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Qr,newerInputFileName:xr}}function tr(Re,xr,Br){var Qr,ct;if(!xr.fileNames.length&&!e.canJsonReportNoInputFiles(xr.raw))return{type:e.UpToDateStatusType.ContainerOnly};var ft,Dt=!!Re.options.force;if(xr.projectReferences){Re.projectStatus.set(Br,{type:e.UpToDateStatusType.ComputingUpstream});for(var Me=0,Ke=xr.projectReferences;Me<Ke.length;Me++){var Vr=Ke[Me],Yr=e.resolveProjectReferencePath(Vr),Nt=y(Re,Yr),Wt=F(Re,Yr,Nt),sn=He(Re,Wt,Nt);if(!(sn.type===e.UpToDateStatusType.ComputingUpstream||sn.type===e.UpToDateStatusType.ContainerOnly)){if(sn.type===e.UpToDateStatusType.Unbuildable||sn.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:Vr.path,upstreamProjectBlocked:sn.type===e.UpToDateStatusType.UpstreamBlocked};if(sn.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:Vr.path};Dt||(ft||(ft=[])).push({ref:Vr,refStatus:sn,resolvedRefPath:Nt,resolvedConfig:Wt})}}}if(Dt)return{type:e.UpToDateStatusType.ForceBuild};var en=Re.host,Ir=e.getTsBuildInfoEmitOutputFilePath(xr.options),Jr,ye=P,Ie,We,dr;if(Ir){var ar=Ne(Re,Ir,Br);if(Ie=(ar==null?void 0:ar.modifiedTime)||e.getModifiedTime(en,Ir),Ie===e.missingFileModifiedTime)return ar||Re.buildInfoCache.set(Br,{path:A(Re,Ir),buildInfo:!1,modifiedTime:Ie}),{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:Ir};var Sr=we(Re,Ir,Br,Ie);if(!Sr)return{type:e.UpToDateStatusType.ErrorReadingFile,fileName:Ir};if((Sr.bundle||Sr.program)&&Sr.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:Sr.version};if(Sr.program){if(!((Qr=Sr.program.changeFileSet)===null||Qr===void 0)&&Qr.length||(xr.options.noEmit?e.some(Sr.program.semanticDiagnosticsPerFile,e.isArray):!((ct=Sr.program.affectedFilesPendingEmit)===null||ct===void 0)&&ct.length))return{type:e.UpToDateStatusType.OutOfDateBuildInfo,buildInfoFile:Ir};We=Sr.program}ye=Ie,Jr=Ir}for(var Or=void 0,Ge=c,ur=!1,Lr=0,Ar=xr.fileNames;Lr<Ar.length;Lr++){var rt=Ar[Lr],Et=Q(Re,rt);if(Et===e.missingFileModifiedTime)return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(rt," does not exist")};if(Ie&&Ie<Et){var St=void 0,Pt=void 0;if(We){dr||(dr=e.getBuildInfoFileVersionMap(We,Ir,en)),St=dr.get(A(Re,rt));var pt=St?Re.readFileWithCache(rt):void 0;Pt=pt!==void 0?(en.createHash||e.generateDjb2Hash)(pt):void 0,St&&St===Pt&&(ur=!0)}if(!St||St!==Pt)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Ir,newerInputFileName:rt}}Et>Ge&&(Or=rt,Ge=Et)}if(!Ir)for(var Ft=e.getAllProjectOutputs(xr,!en.useCaseSensitiveFileNames()),ht=ae(Re,Br),Yt=0,un=Ft;Yt<un.length;Yt++){var wn=un[Yt],Bn=A(Re,wn),yn=ht==null?void 0:ht.get(Bn);if(yn||(yn=e.getModifiedTime(Re.host,wn),ht==null||ht.set(Bn,yn)),yn===e.missingFileModifiedTime)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:wn};if(yn<Ge)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:wn,newerInputFileName:Or};yn<ye&&(ye=yn,Jr=wn)}var Tn=Re.buildInfoCache.get(Br),An=!1,ii=!1,Xe;if(ft)for(var hr=0,at=ft;hr<at.length;hr++){var Qe=at[hr],Vr=Qe.ref,sn=Qe.refStatus,Wt=Qe.resolvedConfig,Nt=Qe.resolvedRefPath;if(ii=ii||!!Vr.prepend,!(sn.newestInputFileTime&&sn.newestInputFileTime<=ye)){if(Tn&&me(Re,Tn,Nt))return{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:Ir,newerProjectName:Vr.path};var Qt=je(Re,Wt.options,Nt);if(Qt&&Qt<=ye){An=!0,Xe=Vr.path;continue}return e.Debug.assert(Jr!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:Jr,newerProjectName:Vr.path}}}var Zt=nr(Re,xr.options.configFilePath,ye,Jr);if(Zt)return Zt;var Tt=e.forEach(xr.options.configFile.extendedSourceFiles||e.emptyArray,function(kt){return nr(Re,kt,ye,Jr)});if(Tt)return Tt;var gt=e.forEach(Re.lastCachedPackageJsonLookups.get(Br)||e.emptyArray,function(kt){var Lt=kt[0];return nr(Re,Lt,ye,Jr)});return gt||(ii&&An?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:Jr,newerProjectName:Xe}:{type:An?e.UpToDateStatusType.UpToDateWithUpstreamTypes:ur?e.UpToDateStatusType.UpToDateWithInputFileText:e.UpToDateStatusType.UpToDate,newestInputFileTime:Ge,newestInputFileName:Or,oldestOutputFileName:Jr})}function me(Re,xr,Br){var Qr=Re.buildInfoCache.get(Br);return Qr.path===xr.path}function He(Re,xr,Br){if(xr===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Qr=Re.projectStatus.get(Br);if(Qr!==void 0)return Qr;e.performance.mark("SolutionBuilder::beforeUpToDateCheck");var ct=tr(Re,xr,Br);return e.performance.mark("SolutionBuilder::afterUpToDateCheck"),e.performance.measure("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),Re.projectStatus.set(Br,ct),ct}function rr(Re,xr,Br,Qr,ct){if(!xr.options.noEmit){var ft,Dt=e.getTsBuildInfoEmitOutputFilePath(xr.options);if(Dt){ct!=null&&ct.has(A(Re,Dt))||(Re.options.verbose&&Fr(Re,Qr,xr.options.configFilePath),Re.host.setModifiedTime(Dt,ft=O(Re.host)),Ne(Re,Dt,Br).modifiedTime=ft),Re.outputTimeStamps.delete(Br);return}var Me=Re.host,Ke=e.getAllProjectOutputs(xr,!Me.useCaseSensitiveFileNames()),Vr=ae(Re,Br),Yr=Vr?new e.Set:void 0;if(!ct||Ke.length!==ct.size)for(var Nt=!!Re.options.verbose,Wt=0,sn=Ke;Wt<sn.length;Wt++){var en=sn[Wt],Ir=A(Re,en);ct!=null&&ct.has(Ir)||(Nt&&(Nt=!1,Fr(Re,Qr,xr.options.configFilePath)),Me.setModifiedTime(en,ft||(ft=O(Re.host))),Vr&&(Vr.set(Ir,ft),Yr.add(Ir)))}Vr==null||Vr.forEach(function(Jr,ye){!(ct!=null&&ct.has(ye))&&!Yr.has(ye)&&Vr.delete(ye)})}}function je(Re,xr,Br){if(xr.composite){var Qr=e.Debug.checkDefined(Re.buildInfoCache.get(Br));if(Qr.latestChangedDtsTime!==void 0)return Qr.latestChangedDtsTime||void 0;var ct=Qr.buildInfo&&Qr.buildInfo.program&&Qr.buildInfo.program.latestChangedDtsFile?Re.host.getModifiedTime(e.getNormalizedAbsolutePath(Qr.buildInfo.program.latestChangedDtsFile,e.getDirectoryPath(Qr.path))):void 0;return Qr.latestChangedDtsTime=ct||!1,ct}}function Ce(Re,xr,Br){if(Re.options.dry)return Fr(Re,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,xr.options.configFilePath);rr(Re,xr,Br,e.Diagnostics.Updating_output_timestamps_of_project_0),Re.projectStatus.set(Br,{type:e.UpToDateStatusType.UpToDate,oldestOutputFileName:e.getFirstProjectOutput(xr,!Re.host.useCaseSensitiveFileNames())})}function Ae(Re,xr,Br,Qr,ct,ft,Dt){if(!(Dt&T.AnyErrors)&&ct.options.composite)for(var Me=Qr+1;Me<ft.length;Me++){var Ke=ft[Me],Vr=y(Re,Ke);if(!Re.projectPendingBuild.has(Vr)){var Yr=F(Re,Ke,Vr);if(!(!Yr||!Yr.projectReferences))for(var Nt=0,Wt=Yr.projectReferences;Nt<Wt.length;Nt++){var sn=Wt[Nt],en=z(Re,sn.path);if(y(Re,en)===Br){var Ir=Re.projectStatus.get(Vr);if(Ir)switch(Ir.type){case e.UpToDateStatusType.UpToDate:if(Dt&T.DeclarationOutputUnchanged){sn.prepend?Re.projectStatus.set(Vr,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:Ir.oldestOutputFileName,newerProjectName:xr}):Ir.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithInputFileText:case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:Dt&T.DeclarationOutputUnchanged||Re.projectStatus.set(Vr,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:Ir.type===e.UpToDateStatusType.OutOfDateWithPrepend?Ir.outOfDateOutputFileName:Ir.oldestOutputFileName,newerProjectName:xr});break;case e.UpToDateStatusType.UpstreamBlocked:y(Re,z(Re,Ir.upstreamProjectName))===Br&&w(Re,Vr);break}re(Re,Vr,e.ConfigFileProgramReloadLevel.None);break}}}}}function qe(Re,xr,Br,Qr,ct,ft){e.performance.mark("SolutionBuilder::beforeBuild");var Dt=xe(Re,xr,Br,Qr,ct,ft);return e.performance.mark("SolutionBuilder::afterBuild"),e.performance.measure("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),Dt}function xe(Re,xr,Br,Qr,ct,ft){var Dt=_e(Re,xr,ft);if(!Dt)return e.ExitStatus.InvalidProject_OutputsSkipped;M(Re,Br);for(var Me=!0,Ke=0;;){var Vr=ee(Re,Dt,Me);if(!Vr)break;Me=!1,Vr.done(Br,Qr,ct==null?void 0:ct(Vr.project)),Re.diagnostics.has(Vr.projectPath)||Ke++}return oe(Re),vr(Re,Dt),or(Re,Dt),W(Dt)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:Dt.some(function(Yr){return Re.diagnostics.has(y(Re,Yr))})?Ke?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function L(Re,xr,Br){e.performance.mark("SolutionBuilder::beforeClean");var Qr=ue(Re,xr,Br);return e.performance.mark("SolutionBuilder::afterClean"),e.performance.measure("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),Qr}function ue(Re,xr,Br){var Qr=_e(Re,xr,Br);if(!Qr)return e.ExitStatus.InvalidProject_OutputsSkipped;if(W(Qr))return Ct(Re,Qr.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var ct=Re.options,ft=Re.host,Dt=ct.dry?[]:void 0,Me=0,Ke=Qr;Me<Ke.length;Me++){var Vr=Ke[Me],Yr=y(Re,Vr),Nt=F(Re,Vr,Yr);if(Nt===void 0){Fe(Re,Yr);continue}var Wt=e.getAllProjectOutputs(Nt,!ft.useCaseSensitiveFileNames());if(Wt.length)for(var sn=new e.Set(Nt.fileNames.map(function(ye){return A(Re,ye)})),en=0,Ir=Wt;en<Ir.length;en++){var Jr=Ir[en];sn.has(A(Re,Jr))||ft.fileExists(Jr)&&(Dt?Dt.push(Jr):(ft.deleteFile(Jr),Ue(Re,Yr,e.ConfigFileProgramReloadLevel.None)))}}return Dt&&Fr(Re,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,Dt.map(function(ye){return`\r
* `.concat(ye)}).join("")),e.ExitStatus.Success}function Ue(Re,xr,Br){Re.host.getParsedCommandLine&&Br===e.ConfigFileProgramReloadLevel.Partial&&(Br=e.ConfigFileProgramReloadLevel.Full),Br===e.ConfigFileProgramReloadLevel.Full&&(Re.configFileCache.delete(xr),Re.buildOrder=void 0),Re.needsSummary=!0,w(Re,xr),re(Re,xr,Br),ne(Re)}function Je(Re,xr,Br){Re.reportFileChangeDetected=!0,Ue(Re,xr,Br),lr(Re,250,!0)}function lr(Re,xr,Br){var Qr=Re.hostWithWatch;!Qr.setTimeout||!Qr.clearTimeout||(Re.timerToBuildInvalidatedProject&&Qr.clearTimeout(Re.timerToBuildInvalidatedProject),Re.timerToBuildInvalidatedProject=Qr.setTimeout(mr,xr,Re,Br))}function mr(Re,xr){e.performance.mark("SolutionBuilder::beforeBuild");var Br=Hr(Re,xr);e.performance.mark("SolutionBuilder::afterBuild"),e.performance.measure("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),Br&&vr(Re,Br)}function Hr(Re,xr){Re.timerToBuildInvalidatedProject=void 0,Re.reportFileChangeDetected&&(Re.reportFileChangeDetected=!1,Re.projectErrorsReported.clear(),_t(Re,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Br=0,Qr=Pe(Re),ct=ee(Re,Qr,!1);if(ct)for(ct.done(),Br++;Re.projectPendingBuild.size;){if(Re.timerToBuildInvalidatedProject)return;var ft=he(Re,Qr,!1);if(!ft)break;if(ft.kind!==U.UpdateOutputFileStamps&&(xr||Br===5)){lr(Re,100,!1);return}var Dt=le(Re,ft,Qr);Dt.done(),ft.kind!==U.UpdateOutputFileStamps&&Br++}return oe(Re),Qr}function wr(Re,xr,Br,Qr){!Re.watch||Re.allWatchedConfigFiles.has(Br)||Re.allWatchedConfigFiles.set(Br,G(Re,xr,function(){return Je(Re,Br,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Qr==null?void 0:Qr.watchOptions,e.WatchType.ConfigFile,xr))}function Oe(Re,xr,Br){e.updateSharedExtendedConfigFileWatcher(xr,Br==null?void 0:Br.options,Re.allWatchedExtendedConfigFiles,function(Qr,ct){return G(Re,Qr,function(){var ft;return(ft=Re.allWatchedExtendedConfigFiles.get(ct))===null||ft===void 0?void 0:ft.projects.forEach(function(Dt){return Je(Re,Dt,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,Br==null?void 0:Br.watchOptions,e.WatchType.ExtendedConfigFile)},function(Qr){return A(Re,Qr)})}function Ze(Re,xr,Br,Qr){Re.watch&&e.updateWatchingWildcardDirectories(D(Re.allWatchedWildcardDirectories,Br),new e.Map(e.getEntries(Qr.wildcardDirectories)),function(ct,ft){return Re.watchDirectory(ct,function(Dt){var Me;e.isIgnoredFileFromWildCardWatching({watchedDirPath:A(Re,ct),fileOrDirectory:Dt,fileOrDirectoryPath:A(Re,Dt),configFileName:xr,currentDirectory:Re.currentDirectory,options:Qr.options,program:Re.builderPrograms.get(Br)||((Me=B(Re,Br))===null||Me===void 0?void 0:Me.fileNames),useCaseSensitiveFileNames:Re.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(Ke){return Re.writeLog(Ke)},toPath:function(Ke){return A(Re,Ke)}})||Je(Re,Br,e.ConfigFileProgramReloadLevel.Partial)},ft,Qr==null?void 0:Qr.watchOptions,e.WatchType.WildcardDirectory,xr)})}function tt(Re,xr,Br,Qr){Re.watch&&e.mutateMap(D(Re.allWatchedInputFiles,Br),e.arrayToMap(Qr.fileNames,function(ct){return A(Re,ct)}),{createNewValue:function(ct,ft){return G(Re,ft,function(){return Je(Re,Br,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Qr==null?void 0:Qr.watchOptions,e.WatchType.SourceFile,xr)},onDeleteValue:e.closeFileWatcher})}function ut(Re,xr,Br,Qr){!Re.watch||!Re.lastCachedPackageJsonLookups||e.mutateMap(D(Re.allWatchedPackageJsonFiles,Br),new e.Map(Re.lastCachedPackageJsonLookups.get(Br)),{createNewValue:function(ct,ft){return G(Re,ct,function(){return Je(Re,Br,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.High,Qr==null?void 0:Qr.watchOptions,e.WatchType.PackageJson,xr)},onDeleteValue:e.closeFileWatcher})}function or(Re,xr){if(Re.watchAllProjectsPending){e.performance.mark("SolutionBuilder::beforeWatcherCreation"),Re.watchAllProjectsPending=!1;for(var Br=0,Qr=E(xr);Br<Qr.length;Br++){var ct=Qr[Br],ft=y(Re,ct),Dt=F(Re,ct,ft);wr(Re,ct,ft,Dt),Oe(Re,ft,Dt),Dt&&(Ze(Re,ct,ft,Dt),tt(Re,ct,ft,Dt),ut(Re,ct,ft,Dt))}e.performance.mark("SolutionBuilder::afterWatcherCreation"),e.performance.measure("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function qr(Re){e.clearMap(Re.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(Re.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(Re.allWatchedWildcardDirectories,function(xr){return e.clearMap(xr,e.closeFileWatcherOf)}),e.clearMap(Re.allWatchedInputFiles,function(xr){return e.clearMap(xr,e.closeFileWatcher)}),e.clearMap(Re.allWatchedPackageJsonFiles,function(xr){return e.clearMap(xr,e.closeFileWatcher)})}function Rr(Re,xr,Br,Qr,ct){var ft=X(Re,xr,Br,Qr,ct);return{build:function(Dt,Me,Ke,Vr){return qe(ft,Dt,Me,Ke,Vr)},clean:function(Dt){return L(ft,Dt)},buildReferences:function(Dt,Me,Ke,Vr){return qe(ft,Dt,Me,Ke,Vr,!0)},cleanReferences:function(Dt){return L(ft,Dt,!0)},getNextInvalidatedProject:function(Dt){return M(ft,Dt),ee(ft,Pe(ft),!1)},getBuildOrder:function(){return Pe(ft)},getUpToDateStatusOfProject:function(Dt){var Me=z(ft,Dt),Ke=y(ft,Me);return He(ft,F(ft,Me,Ke),Ke)},invalidateProject:function(Dt,Me){return Ue(ft,Dt,Me||e.ConfigFileProgramReloadLevel.None)},close:function(){return qr(ft)}}}function zr(Re,xr){return e.convertToRelativePath(xr,Re.currentDirectory,function(Br){return Re.getCanonicalFileName(Br)})}function Fr(Re,xr){for(var Br=[],Qr=2;Qr<arguments.length;Qr++)Br[Qr-2]=arguments[Qr];Re.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,t([xr],Br,!1)))}function _t(Re,xr){for(var Br,Qr,ct=[],ft=2;ft<arguments.length;ft++)ct[ft-2]=arguments[ft];(Qr=(Br=Re.hostWithWatch).onWatchStatusChange)===null||Qr===void 0||Qr.call(Br,e.createCompilerDiagnostic.apply(void 0,t([xr],ct,!1)),Re.host.getNewLine(),Re.baseCompilerOptions)}function Ct(Re,xr){var Br=Re.host;xr.forEach(function(Qr){return Br.reportDiagnostic(Qr)})}function yt(Re,xr,Br){Ct(Re,Br),Re.projectErrorsReported.set(xr,!0),Br.length&&Re.diagnostics.set(xr,Br)}function Fe(Re,xr){yt(Re,xr,[Re.configFileCache.get(xr)])}function vr(Re,xr){if(Re.needsSummary){Re.needsSummary=!1;var Br=Re.watch||!!Re.host.reportErrorSummary,Qr=Re.diagnostics,ct=0,ft=[];W(xr)?(Le(Re,xr.buildOrder),Ct(Re,xr.circularDiagnostics),Br&&(ct+=e.getErrorCountForSummary(xr.circularDiagnostics)),Br&&(ft=t(t([],ft,!0),e.getFilesInErrorForSummary(xr.circularDiagnostics),!0))):(xr.forEach(function(Dt){var Me=y(Re,Dt);Re.projectErrorsReported.has(Me)||Ct(Re,Qr.get(Me)||e.emptyArray)}),Br&&Qr.forEach(function(Dt){return ct+=e.getErrorCountForSummary(Dt)}),Br&&Qr.forEach(function(Dt){return t(t([],ft,!0),e.getFilesInErrorForSummary(Dt),!0)})),Re.watch?_t(Re,e.getWatchErrorSummaryDiagnosticMessage(ct),ct):Re.host.reportErrorSummary&&Re.host.reportErrorSummary(ct,ft)}}function Le(Re,xr){Re.options.verbose&&Fr(Re,e.Diagnostics.Projects_in_this_build_Colon_0,xr.map(function(Br){return`\r
* `+zr(Re,Br)}).join(""))}function cr(Re,xr,Br){switch(Br.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,zr(Re,xr),zr(Re,Br.outOfDateOutputFileName),zr(Re,Br.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,zr(Re,xr),zr(Re,Br.outOfDateOutputFileName),zr(Re,Br.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,zr(Re,xr),zr(Re,Br.missingOutputFileName));case e.UpToDateStatusType.ErrorReadingFile:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_there_was_error_reading_file_1,zr(Re,xr),zr(Re,Br.fileName));case e.UpToDateStatusType.OutOfDateBuildInfo:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,zr(Re,xr),zr(Re,Br.buildInfoFile));case e.UpToDateStatusType.UpToDate:if(Br.newestInputFileTime!==void 0)return Fr(Re,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,zr(Re,xr),zr(Re,Br.newestInputFileName||""),zr(Re,Br.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,zr(Re,xr),zr(Re,Br.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Fr(Re,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,zr(Re,xr));case e.UpToDateStatusType.UpToDateWithInputFileText:return Fr(Re,e.Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,zr(Re,xr));case e.UpToDateStatusType.UpstreamOutOfDate:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,zr(Re,xr),zr(Re,Br.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Fr(Re,Br.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,zr(Re,xr),zr(Re,Br.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Fr(Re,e.Diagnostics.Failed_to_parse_file_0_Colon_1,zr(Re,xr),Br.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Fr(Re,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,zr(Re,xr),Br.version,e.version);case e.UpToDateStatusType.ForceBuild:return Fr(Re,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,zr(Re,xr));case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(Br)}}function $r(Re,xr,Br){Re.options.verbose&&cr(Re,xr,Br)}})(h||(h={}));var h;(function(e){(function(c){c.ActionSet="action::set",c.ActionInvalidate="action::invalidate",c.ActionPackageInstalled="action::packageInstalled",c.EventTypesRegistry="event::typesRegistry",c.EventBeginInstallTypes="event::beginInstallTypes",c.EventEndInstallTypes="event::endInstallTypes",c.EventInitializationFailed="event::initializationFailed",function(D){D.GlobalCacheLocation="--globalTypingsCacheLocation",D.LogFile="--logFile",D.EnableTelemetry="--enableTelemetry",D.TypingSafeListLocation="--typingSafeListLocation",D.TypesMapLocation="--typesMapLocation",D.NpmLocation="--npmLocation",D.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"}(c.Arguments||(c.Arguments={}));function P(D){return e.sys.args.indexOf(D)>=0}c.hasArgument=P;function T(D){var O=e.sys.args.indexOf(D);return O>=0&&O<e.sys.args.length-1?e.sys.args[O+1]:void 0}c.findArgument=T;function s(){var D=new Date;return"".concat(e.padLeft(D.getHours().toString(),2,"0"),":").concat(e.padLeft(D.getMinutes().toString(),2,"0"),":").concat(e.padLeft(D.getSeconds().toString(),2,"0"),".").concat(e.padLeft(D.getMilliseconds().toString(),3,"0"))}c.nowString=s})(e.server||(e.server={}))})(h||(h={}));var h;(function(e){(function(c){function P(Z,ce){var k=new e.Version(e.getProperty(ce,"ts".concat(e.versionMajorMinor))||e.getProperty(ce,"latest"));return k.compareTo(Z.version)<=0}c.isTypingUpToDate=P;var T=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];c.prefixedNodeCoreModuleList=T.map(function(Z){return"node:".concat(Z)}),c.nodeCoreModuleList=t(t([],T,!0),c.prefixedNodeCoreModuleList,!0),c.nodeCoreModules=new e.Set(c.nodeCoreModuleList);function s(Z){return c.nodeCoreModules.has(Z)?"node":Z}c.nonRelativeModuleNameForTypingCache=s;function D(Z,ce){var k=e.readConfigFile(ce,function(X){return Z.readFile(X)});return new e.Map(e.getEntries(k.config))}c.loadSafeList=D;function O(Z,ce){var k=e.readConfigFile(ce,function(X){return Z.readFile(X)});if(k.config)return new e.Map(e.getEntries(k.config.simpleMap))}c.loadTypesMap=O;function W(Z,ce,k,X,A,y,C,B,F,z){if(!C||!C.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var ge=new e.Map;k=e.mapDefined(k,function(le){var ee=e.normalizePath(le);if(e.hasJSFileExtension(ee))return ee});var Pe=[];C.include&&K(C.include,"Explicitly included types");var fe=C.exclude||[];if(!z.types){var _e=new e.Set(k.map(e.getDirectoryPath));_e.add(X),_e.forEach(function(le){I(le,"bower.json","bower_components",Pe),I(le,"package.json","node_modules",Pe)})}if(C.disableFilenameBasedTypeAcquisition||he(k),B){var ne=e.deduplicate(B.map(s),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);K(ne,"Inferred typings from unresolved imports")}y.forEach(function(le,ee){var J=F.get(ee);ge.has(ee)&&ge.get(ee)===void 0&&J!==void 0&&P(le,J)&&ge.set(ee,le.typingLocation)});for(var oe=0,w=fe;oe<w.length;oe++){var re=w[oe],M=ge.delete(re);M&&ce&&ce("Typing for ".concat(re," is in exclude list, will be ignored."))}var U=[],H=[];ge.forEach(function(le,ee){le!==void 0?H.push(le):U.push(ee)});var q={cachedTypingPaths:H,newTypingNames:U,filesToWatch:Pe};return ce&&ce("Result: ".concat(JSON.stringify(q))),q;function R(le){ge.has(le)||ge.set(le,void 0)}function K(le,ee){ce&&ce("".concat(ee,": ").concat(JSON.stringify(le))),e.forEach(le,R)}function I(le,ee,J,de){var De=e.combinePaths(le,ee),N,b;Z.fileExists(De)&&(de.push(De),N=e.readConfigFile(De,function(je){return Z.readFile(je)}).config,b=e.flatMap([N.dependencies,N.devDependencies,N.optionalDependencies,N.peerDependencies],e.getOwnKeys),K(b,"Typing names in '".concat(De,"' dependencies")));var Q=e.combinePaths(le,J);if(de.push(Q),!!Z.directoryExists(Q)){var G=[],ae=b?b.map(function(je){return e.combinePaths(Q,je,ee)}):Z.readDirectory(Q,[".json"],void 0,void 0,3).filter(function(je){if(e.getBaseFileName(je)!==ee)return!1;var Ce=e.getPathComponents(e.normalizePath(je)),Ae=Ce[Ce.length-3][0]==="@";return Ae&&Ce[Ce.length-4].toLowerCase()===J||!Ae&&Ce[Ce.length-3].toLowerCase()===J});ce&&ce("Searching for typing names in ".concat(Q,"; all files: ").concat(JSON.stringify(ae)));for(var Te=0,Ne=ae;Te<Ne.length;Te++){var we=Ne[Te],nr=e.normalizePath(we),tr=e.readConfigFile(nr,function(je){return Z.readFile(je)}),me=tr.config;if(me.name){var He=me.types||me.typings;if(He){var rr=e.getNormalizedAbsolutePath(He,e.getDirectoryPath(nr));Z.fileExists(rr)?(ce&&ce(" Package '".concat(me.name,"' provides its own types.")),ge.set(me.name,rr)):ce&&ce(" Package '".concat(me.name,"' provides its own types but they are missing."))}else G.push(me.name)}}K(G," Found package names")}}function he(le){var ee=e.mapDefined(le,function(de){if(e.hasJSFileExtension(de)){var De=e.removeFileExtension(e.getBaseFileName(de.toLowerCase())),N=e.removeMinAndVersionNumbers(De);return A.get(N)}});ee.length&&K(ee,"Inferred typings from file names");var J=e.some(le,function(de){return e.fileExtensionIs(de,".jsx")});J&&(ce&&ce("Inferred 'react' typings due to presence of '.jsx' extension"),R("react"))}}c.discoverTypings=W,function(Z){Z[Z.Ok=0]="Ok",Z[Z.EmptyName=1]="EmptyName",Z[Z.NameTooLong=2]="NameTooLong",Z[Z.NameStartsWithDot=3]="NameStartsWithDot",Z[Z.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",Z[Z.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"}(c.NameValidationResult||(c.NameValidationResult={}));var E=214;function v(Z){return S(Z,!0)}c.validatePackageName=v;function S(Z,ce){if(!Z)return 1;if(Z.length>E)return 2;if(Z.charCodeAt(0)===46)return 3;if(Z.charCodeAt(0)===95)return 4;if(ce){var k=/^@([^/]+)\/([^/]+)$/.exec(Z);if(k){var X=S(k[1],!1);if(X!==0)return{name:k[1],isScopeName:!0,result:X};var A=S(k[2],!1);return A!==0?{name:k[2],isScopeName:!1,result:A}:0}}return encodeURIComponent(Z)!==Z?5:0}function te(Z,ce){return typeof Z=="object"?Y(ce,Z.result,Z.name,Z.isScopeName):Y(ce,Z,ce,!1)}c.renderPackageNameValidationFailure=te;function Y(Z,ce,k,X){var A=X?"Scope":"Package";switch(ce){case 1:return"'".concat(Z,"':: ").concat(A," name '").concat(k,"' cannot be empty");case 2:return"'".concat(Z,"':: ").concat(A," name '").concat(k,"' should be less than ").concat(E," characters");case 3:return"'".concat(Z,"':: ").concat(A," name '").concat(k,"' cannot start with '.'");case 4:return"'".concat(Z,"':: ").concat(A," name '").concat(k,"' cannot start with '_'");case 5:return"'".concat(Z,"':: ").concat(A," name '").concat(k,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(ce)}}})(e.JsTyping||(e.JsTyping={}))})(h||(h={}));var h;(function(e){(function(s){var D=function(){function W(E){this.text=E}return W.prototype.getText=function(E,v){return E===0&&v===this.text.length?this.text:this.text.substring(E,v)},W.prototype.getLength=function(){return this.text.length},W.prototype.getChangeRange=function(){},W}();function O(W){return new D(W)}s.fromString=O})(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(s){s[s.Dependencies=1]="Dependencies",s[s.DevDependencies=2]="DevDependencies",s[s.PeerDependencies=4]="PeerDependencies",s[s.OptionalDependencies=8]="OptionalDependencies",s[s.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(s){s[s.Semantic=0]="Semantic",s[s.PartialSemantic=1]="PartialSemantic",s[s.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(s){s.Original="original",s.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(s){s.All="All",s.SortAndCombine="SortAndCombine",s.RemoveUnused="RemoveUnused"}(e.OrganizeImportsMode||(e.OrganizeImportsMode={})),function(s){s[s.Invoked=1]="Invoked",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"}(e.CompletionTriggerKind||(e.CompletionTriggerKind={})),function(s){s.Type="Type",s.Parameter="Parameter",s.Enum="Enum"}(e.InlayHintKind||(e.InlayHintKind={})),function(s){s.none="none",s.definition="definition",s.reference="reference",s.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={}));var c;(function(s){s[s.None=0]="None",s[s.Block=1]="Block",s[s.Smart=2]="Smart"})(c=e.IndentStyle||(e.IndentStyle={}));var P;(function(s){s.Ignore="ignore",s.Insert="insert",s.Remove="remove"})(P=e.SemicolonPreference||(e.SemicolonPreference={}));function T(s){return{indentSize:4,tabSize:4,newLineCharacter:s||`
`,convertTabsToSpaces:!0,indentStyle:c.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:P.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=T,e.testFormatSettings=T(`
`),function(s){s[s.aliasName=0]="aliasName",s[s.className=1]="className",s[s.enumName=2]="enumName",s[s.fieldName=3]="fieldName",s[s.interfaceName=4]="interfaceName",s[s.keyword=5]="keyword",s[s.lineBreak=6]="lineBreak",s[s.numericLiteral=7]="numericLiteral",s[s.stringLiteral=8]="stringLiteral",s[s.localName=9]="localName",s[s.methodName=10]="methodName",s[s.moduleName=11]="moduleName",s[s.operator=12]="operator",s[s.parameterName=13]="parameterName",s[s.propertyName=14]="propertyName",s[s.punctuation=15]="punctuation",s[s.space=16]="space",s[s.text=17]="text",s[s.typeParameterName=18]="typeParameterName",s[s.enumMemberName=19]="enumMemberName",s[s.functionName=20]="functionName",s[s.regularExpressionLiteral=21]="regularExpressionLiteral",s[s.link=22]="link",s[s.linkName=23]="linkName",s[s.linkText=24]="linkText"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(s){s[s.None=0]="None",s[s.MayIncludeAutoImports=1]="MayIncludeAutoImports",s[s.IsImportStatementCompletion=2]="IsImportStatementCompletion",s[s.IsContinuation=4]="IsContinuation",s[s.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",s[s.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",s[s.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets"}(e.CompletionInfoFlags||(e.CompletionInfoFlags={})),function(s){s.Comment="comment",s.Region="region",s.Code="code",s.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(s){s[s.JavaScript=0]="JavaScript",s[s.SourceMap=1]="SourceMap",s[s.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(s){s[s.None=0]="None",s[s.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",s[s.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",s[s.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",s[s.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",s[s.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",s[s.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(s){s[s.Punctuation=0]="Punctuation",s[s.Keyword=1]="Keyword",s[s.Operator=2]="Operator",s[s.Comment=3]="Comment",s[s.Whitespace=4]="Whitespace",s[s.Identifier=5]="Identifier",s[s.NumberLiteral=6]="NumberLiteral",s[s.BigIntLiteral=7]="BigIntLiteral",s[s.StringLiteral=8]="StringLiteral",s[s.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(s){s.unknown="",s.warning="warning",s.keyword="keyword",s.scriptElement="script",s.moduleElement="module",s.classElement="class",s.localClassElement="local class",s.interfaceElement="interface",s.typeElement="type",s.enumElement="enum",s.enumMemberElement="enum member",s.variableElement="var",s.localVariableElement="local var",s.functionElement="function",s.localFunctionElement="local function",s.memberFunctionElement="method",s.memberGetAccessorElement="getter",s.memberSetAccessorElement="setter",s.memberVariableElement="property",s.memberAccessorVariableElement="accessor",s.constructorImplementationElement="constructor",s.callSignatureElement="call",s.indexSignatureElement="index",s.constructSignatureElement="construct",s.parameterElement="parameter",s.typeParameterElement="type parameter",s.primitiveType="primitive type",s.label="label",s.alias="alias",s.constElement="const",s.letElement="let",s.directory="directory",s.externalModuleName="external module name",s.jsxAttribute="JSX attribute",s.string="string",s.link="link",s.linkName="link name",s.linkText="link text"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(s){s.none="",s.publicMemberModifier="public",s.privateMemberModifier="private",s.protectedMemberModifier="protected",s.exportedModifier="export",s.ambientModifier="declare",s.staticModifier="static",s.abstractModifier="abstract",s.optionalModifier="optional",s.deprecatedModifier="deprecated",s.dtsModifier=".d.ts",s.tsModifier=".ts",s.tsxModifier=".tsx",s.jsModifier=".js",s.jsxModifier=".jsx",s.jsonModifier=".json",s.dmtsModifier=".d.mts",s.mtsModifier=".mts",s.mjsModifier=".mjs",s.dctsModifier=".d.cts",s.ctsModifier=".cts",s.cjsModifier=".cjs"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(s){s.comment="comment",s.identifier="identifier",s.keyword="keyword",s.numericLiteral="number",s.bigintLiteral="bigint",s.operator="operator",s.stringLiteral="string",s.whiteSpace="whitespace",s.text="text",s.punctuation="punctuation",s.className="class name",s.enumName="enum name",s.interfaceName="interface name",s.moduleName="module name",s.typeParameterName="type parameter name",s.typeAliasName="type alias name",s.parameterName="parameter name",s.docCommentTagName="doc comment tag name",s.jsxOpenTagName="jsx open tag name",s.jsxCloseTagName="jsx close tag name",s.jsxSelfClosingTagName="jsx self closing tag name",s.jsxAttribute="jsx attribute",s.jsxText="jsx text",s.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(s){s[s.comment=1]="comment",s[s.identifier=2]="identifier",s[s.keyword=3]="keyword",s[s.numericLiteral=4]="numericLiteral",s[s.operator=5]="operator",s[s.stringLiteral=6]="stringLiteral",s[s.regularExpressionLiteral=7]="regularExpressionLiteral",s[s.whiteSpace=8]="whiteSpace",s[s.text=9]="text",s[s.punctuation=10]="punctuation",s[s.className=11]="className",s[s.enumName=12]="enumName",s[s.interfaceName=13]="interfaceName",s[s.moduleName=14]="moduleName",s[s.typeParameterName=15]="typeParameterName",s[s.typeAliasName=16]="typeAliasName",s[s.parameterName=17]="parameterName",s[s.docCommentTagName=18]="docCommentTagName",s[s.jsxOpenTagName=19]="jsxOpenTagName",s[s.jsxCloseTagName=20]="jsxCloseTagName",s[s.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",s[s.jsxAttribute=22]="jsxAttribute",s[s.jsxText=23]="jsxText",s[s.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",s[s.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))})(h||(h={}));var h;(function(e){e.scanner=e.createScanner(99,!0),function(Ee){Ee[Ee.None=0]="None",Ee[Ee.Value=1]="Value",Ee[Ee.Type=2]="Type",Ee[Ee.Namespace=4]="Namespace",Ee[Ee.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={}));function c(Ee){switch(Ee.kind){case 257:return e.isInJSFile(Ee)&&e.getJSDocEnumTag(Ee)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 348:return Ee.name===void 0?3:2;case 302:case 260:return 3;case 264:return e.isAmbientModule(Ee)||e.getModuleInstanceState(Ee)===1?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}e.getMeaningFromDeclaration=c;function P(Ee){Ee=mr(Ee);var Dr=Ee.parent;return Ee.kind===308?1:e.isExportAssignment(Dr)||e.isExportSpecifier(Dr)||e.isExternalModuleReference(Dr)||e.isImportSpecifier(Dr)||e.isImportClause(Dr)||e.isImportEqualsDeclaration(Dr)&&Ee===Dr.name?7:s(Ee)?T(Ee):e.isDeclarationName(Ee)?c(Dr):e.isEntityName(Ee)&&e.findAncestor(Ee,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:E(Ee)?2:D(Ee)?4:e.isTypeParameterDeclaration(Dr)?(e.Debug.assert(e.isJSDocTemplateTag(Dr.parent)),2):e.isLiteralTypeNode(Dr)?3:1}e.getMeaningFromLocation=P;function T(Ee){var Dr=Ee.kind===163?Ee:e.isQualifiedName(Ee.parent)&&Ee.parent.right===Ee?Ee.parent:void 0;return Dr&&Dr.parent.kind===268?7:4}function s(Ee){for(;Ee.parent.kind===163;)Ee=Ee.parent;return e.isInternalModuleImportEqualsDeclaration(Ee.parent)&&Ee.parent.moduleReference===Ee}e.isInRightSideOfInternalImportEqualsDeclaration=s;function D(Ee){return O(Ee)||W(Ee)}function O(Ee){var Dr=Ee,Nr=!0;if(Dr.parent.kind===163){for(;Dr.parent&&Dr.parent.kind===163;)Dr=Dr.parent;Nr=Dr.right===Ee}return Dr.parent.kind===180&&!Nr}function W(Ee){var Dr=Ee,Nr=!0;if(Dr.parent.kind===208){for(;Dr.parent&&Dr.parent.kind===208;)Dr=Dr.parent;Nr=Dr.name===Ee}if(!Nr&&Dr.parent.kind===230&&Dr.parent.parent.kind===294){var Mt=Dr.parent.parent.parent;return Mt.kind===260&&Dr.parent.parent.token===117||Mt.kind===261&&Dr.parent.parent.token===94}return!1}function E(Ee){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(Ee)&&(Ee=Ee.parent),Ee.kind){case 108:return!e.isExpressionNode(Ee);case 194:return!0}switch(Ee.parent.kind){case 180:return!0;case 202:return!Ee.parent.isTypeOf;case 230:return e.isPartOfTypeNode(Ee.parent)}return!1}function v(Ee,Dr,Nr){return Dr===void 0&&(Dr=!1),Nr===void 0&&(Nr=!1),y(Ee,e.isCallExpression,k,Dr,Nr)}e.isCallExpressionTarget=v;function S(Ee,Dr,Nr){return Dr===void 0&&(Dr=!1),Nr===void 0&&(Nr=!1),y(Ee,e.isNewExpression,k,Dr,Nr)}e.isNewExpressionTarget=S;function te(Ee,Dr,Nr){return Dr===void 0&&(Dr=!1),Nr===void 0&&(Nr=!1),y(Ee,e.isCallOrNewExpression,k,Dr,Nr)}e.isCallOrNewExpressionTarget=te;function Y(Ee,Dr,Nr){return Dr===void 0&&(Dr=!1),Nr===void 0&&(Nr=!1),y(Ee,e.isTaggedTemplateExpression,X,Dr,Nr)}e.isTaggedTemplateTag=Y;function Z(Ee,Dr,Nr){return Dr===void 0&&(Dr=!1),Nr===void 0&&(Nr=!1),y(Ee,e.isDecorator,k,Dr,Nr)}e.isDecoratorTarget=Z;function ce(Ee,Dr,Nr){return Dr===void 0&&(Dr=!1),Nr===void 0&&(Nr=!1),y(Ee,e.isJsxOpeningLikeElement,A,Dr,Nr)}e.isJsxOpeningLikeElementTagName=ce;function k(Ee){return Ee.expression}function X(Ee){return Ee.tag}function A(Ee){return Ee.tagName}function y(Ee,Dr,Nr,Mt,In){var Di=Mt?B(Ee):C(Ee);return In&&(Di=e.skipOuterExpressions(Di)),!!Di&&!!Di.parent&&Dr(Di.parent)&&Nr(Di.parent)===Di}function C(Ee){return oe(Ee)?Ee.parent:Ee}e.climbPastPropertyAccess=C;function B(Ee){return oe(Ee)||w(Ee)?Ee.parent:Ee}e.climbPastPropertyOrElementAccess=B;function F(Ee,Dr){for(;Ee;){if(Ee.kind===253&&Ee.label.escapedText===Dr)return Ee.label;Ee=Ee.parent}}e.getTargetLabel=F;function z(Ee,Dr){return e.isPropertyAccessExpression(Ee.expression)?Ee.expression.name.text===Dr:!1}e.hasPropertyAccessExpressionWithName=z;function ge(Ee){var Dr;return e.isIdentifier(Ee)&&((Dr=e.tryCast(Ee.parent,e.isBreakOrContinueStatement))===null||Dr===void 0?void 0:Dr.label)===Ee}e.isJumpStatementTarget=ge;function Pe(Ee){var Dr;return e.isIdentifier(Ee)&&((Dr=e.tryCast(Ee.parent,e.isLabeledStatement))===null||Dr===void 0?void 0:Dr.label)===Ee}e.isLabelOfLabeledStatement=Pe;function fe(Ee){return Pe(Ee)||ge(Ee)}e.isLabelName=fe;function _e(Ee){var Dr;return((Dr=e.tryCast(Ee.parent,e.isJSDocTag))===null||Dr===void 0?void 0:Dr.tagName)===Ee}e.isTagName=_e;function ne(Ee){var Dr;return((Dr=e.tryCast(Ee.parent,e.isQualifiedName))===null||Dr===void 0?void 0:Dr.right)===Ee}e.isRightSideOfQualifiedName=ne;function oe(Ee){var Dr;return((Dr=e.tryCast(Ee.parent,e.isPropertyAccessExpression))===null||Dr===void 0?void 0:Dr.name)===Ee}e.isRightSideOfPropertyAccess=oe;function w(Ee){var Dr;return((Dr=e.tryCast(Ee.parent,e.isElementAccessExpression))===null||Dr===void 0?void 0:Dr.argumentExpression)===Ee}e.isArgumentExpressionOfElementAccess=w;function re(Ee){var Dr;return((Dr=e.tryCast(Ee.parent,e.isModuleDeclaration))===null||Dr===void 0?void 0:Dr.name)===Ee}e.isNameOfModuleDeclaration=re;function M(Ee){var Dr;return e.isIdentifier(Ee)&&((Dr=e.tryCast(Ee.parent,e.isFunctionLike))===null||Dr===void 0?void 0:Dr.name)===Ee}e.isNameOfFunctionDeclaration=M;function U(Ee){switch(Ee.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return e.getNameOfDeclaration(Ee.parent)===Ee;case 209:return Ee.parent.argumentExpression===Ee;case 164:return!0;case 198:return Ee.parent.parent.kind===196;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=U;function H(Ee){return e.isExternalModuleImportEqualsDeclaration(Ee.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(Ee.parent.parent)===Ee}e.isExpressionOfExternalModuleImportEqualsDeclaration=H;function q(Ee){for(e.isJSDocTypeAlias(Ee)&&(Ee=Ee.parent.parent);;){if(Ee=Ee.parent,!Ee)return;switch(Ee.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return Ee}}}e.getContainerNode=q;function R(Ee){switch(Ee.kind){case 308:return e.isExternalModule(Ee)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 348:return"type";case 263:return"enum";case 257:return Pi(Ee);case 205:return Pi(e.getRootDeclaration(Ee));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:var Dr=Ee.initializer;return e.isFunctionLike(Dr)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return e.hasSyntacticModifier(Ee,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:var Nr=e.getAssignmentDeclarationKind(Ee),Mt=Ee.right;switch(Nr){case 7:case 8:case 9:case 0:return"";case 1:case 2:var In=R(Mt);return In===""?"const":In;case 3:return e.isFunctionExpression(Mt)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(Mt)?"method":"property";case 6:return"local class";default:return e.assertType(Nr),""}case 79:return e.isImportClause(Ee.parent)?"alias":"";case 274:var Di=R(Ee.expression);return Di===""?"const":Di;default:return""}function Pi(Aa){return e.isVarConst(Aa)?"const":e.isLet(Aa)?"let":"var"}}e.getNodeKind=R;function K(Ee){switch(Ee.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(Ee)&&Ee.parent.kind===166;default:return!1}}e.isThis=K;var I=/^\/\/\/\s*</;function he(Ee,Dr){var Nr=e.getLineStarts(Dr),Mt=Dr.getLineAndCharacterOfPosition(Ee).line;return Nr[Mt]}e.getLineStartPositionForPosition=he;function le(Ee,Dr){return De(Ee.pos,Ee.end,Dr)}e.rangeContainsRange=le;function ee(Ee,Dr){return de(Ee,Dr.pos)&&de(Ee,Dr.end)}e.rangeContainsRangeExclusive=ee;function J(Ee,Dr){return Ee.pos<=Dr&&Dr<=Ee.end}e.rangeContainsPosition=J;function de(Ee,Dr){return Ee.pos<Dr&&Dr<Ee.end}e.rangeContainsPositionExclusive=de;function De(Ee,Dr,Nr){return Ee<=Nr.pos&&Dr>=Nr.end}e.startEndContainsRange=De;function N(Ee,Dr,Nr){return Ee.pos<=Dr&&Ee.end>=Nr}e.rangeContainsStartEnd=N;function b(Ee,Dr,Nr){return G(Ee.pos,Ee.end,Dr,Nr)}e.rangeOverlapsWithStartEnd=b;function Q(Ee,Dr,Nr,Mt){return G(Ee.getStart(Dr),Ee.end,Nr,Mt)}e.nodeOverlapsWithStartEnd=Q;function G(Ee,Dr,Nr,Mt){var In=Math.max(Ee,Nr),Di=Math.min(Dr,Mt);return In<Di}e.startEndOverlapsWithStartEnd=G;function ae(Ee,Dr,Nr){return e.Debug.assert(Ee.pos<=Dr),Dr<Ee.end||!Te(Ee,Nr)}e.positionBelongsToNode=ae;function Te(Ee,Dr){if(Ee===void 0||e.nodeIsMissing(Ee))return!1;switch(Ee.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return Ne(Ee,19,Dr);case 295:return Te(Ee.block,Dr);case 211:if(!Ee.arguments)return!0;case 210:case 214:case 193:return Ne(Ee,21,Dr);case 181:case 182:return Te(Ee.type,Dr);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return Ee.body?Te(Ee.body,Dr):Ee.type?Te(Ee.type,Dr):nr(Ee,21,Dr);case 264:return!!Ee.body&&Te(Ee.body,Dr);case 242:return Ee.elseStatement?Te(Ee.elseStatement,Dr):Te(Ee.thenStatement,Dr);case 241:return Te(Ee.expression,Dr)||nr(Ee,26,Dr);case 206:case 204:case 209:case 164:case 186:return Ne(Ee,23,Dr);case 178:return Ee.type?Te(Ee.type,Dr):nr(Ee,23,Dr);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return Te(Ee.statement,Dr);case 243:return nr(Ee,115,Dr)?Ne(Ee,21,Dr):Te(Ee.statement,Dr);case 183:return Te(Ee.exprName,Dr);case 218:case 217:case 219:case 226:case 227:var Nr=Ee;return Te(Nr.expression,Dr);case 212:return Te(Ee.template,Dr);case 225:var Mt=e.lastOrUndefined(Ee.templateSpans);return Te(Mt,Dr);case 236:return e.nodeIsPresent(Ee.literal);case 275:case 269:return e.nodeIsPresent(Ee.moduleSpecifier);case 221:return Te(Ee.operand,Dr);case 223:return Te(Ee.right,Dr);case 224:return Te(Ee.whenFalse,Dr);default:return!0}}function Ne(Ee,Dr,Nr){var Mt=Ee.getChildren(Nr);if(Mt.length){var In=e.last(Mt);if(In.kind===Dr)return!0;if(In.kind===26&&Mt.length!==1)return Mt[Mt.length-2].kind===Dr}return!1}function we(Ee){var Dr=me(Ee);if(Dr){var Nr=Dr.getChildren(),Mt=e.indexOfNode(Nr,Ee);return{listItemIndex:Mt,list:Dr}}}e.findListItemInfo=we;function nr(Ee,Dr,Nr){return!!tr(Ee,Dr,Nr)}e.hasChildOfKind=nr;function tr(Ee,Dr,Nr){return e.find(Ee.getChildren(Nr),function(Mt){return Mt.kind===Dr})}e.findChildOfKind=tr;function me(Ee){var Dr=e.find(Ee.parent.getChildren(),function(Nr){return e.isSyntaxList(Nr)&&le(Nr,Ee)});return e.Debug.assert(!Dr||e.contains(Dr.getChildren(),Ee)),Dr}e.findContainingList=me;function He(Ee){return Ee.kind===88}function rr(Ee){return Ee.kind===84}function je(Ee){return Ee.kind===98}function Ce(Ee){if(e.isNamedDeclaration(Ee))return Ee.name;if(e.isClassDeclaration(Ee)){var Dr=Ee.modifiers&&e.find(Ee.modifiers,He);if(Dr)return Dr}if(e.isClassExpression(Ee)){var Nr=e.find(Ee.getChildren(),rr);if(Nr)return Nr}}function Ae(Ee){if(e.isNamedDeclaration(Ee))return Ee.name;if(e.isFunctionDeclaration(Ee)){var Dr=e.find(Ee.modifiers,He);if(Dr)return Dr}if(e.isFunctionExpression(Ee)){var Nr=e.find(Ee.getChildren(),je);if(Nr)return Nr}}function qe(Ee){var Dr;return e.findAncestor(Ee,function(Nr){return e.isTypeNode(Nr)&&(Dr=Nr),!e.isQualifiedName(Nr.parent)&&!e.isTypeNode(Nr.parent)&&!e.isTypeElement(Nr.parent)}),Dr}function xe(Ee,Dr){if(!(Ee.flags&8388608)){var Nr=At(Ee,Dr);if(Nr)return Nr;var Mt=qe(Ee);return Mt&&Dr.getTypeAtLocation(Mt)}}e.getContextualTypeFromParentOrAncestorTypeNode=xe;function L(Ee,Dr){if(!Dr)switch(Ee.kind){case 260:case 228:return Ce(Ee);case 259:case 215:return Ae(Ee);case 173:return Ee}if(e.isNamedDeclaration(Ee))return Ee.name}function ue(Ee,Dr){if(Ee.importClause){if(Ee.importClause.name&&Ee.importClause.namedBindings)return;if(Ee.importClause.name)return Ee.importClause.name;if(Ee.importClause.namedBindings){if(e.isNamedImports(Ee.importClause.namedBindings)){var Nr=e.singleOrUndefined(Ee.importClause.namedBindings.elements);return Nr?Nr.name:void 0}else if(e.isNamespaceImport(Ee.importClause.namedBindings))return Ee.importClause.namedBindings.name}}if(!Dr)return Ee.moduleSpecifier}function Ue(Ee,Dr){if(Ee.exportClause){if(e.isNamedExports(Ee.exportClause)){var Nr=e.singleOrUndefined(Ee.exportClause.elements);return Nr?Ee.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(Ee.exportClause))return Ee.exportClause.name}if(!Dr)return Ee.moduleSpecifier}function Je(Ee){if(Ee.types.length===1)return Ee.types[0].expression}function lr(Ee,Dr){var Nr=Ee.parent;if(e.isModifier(Ee)&&(Dr||Ee.kind!==88)?e.canHaveModifiers(Nr)&&e.contains(Nr.modifiers,Ee):Ee.kind===84?e.isClassDeclaration(Nr)||e.isClassExpression(Ee):Ee.kind===98?e.isFunctionDeclaration(Nr)||e.isFunctionExpression(Ee):Ee.kind===118?e.isInterfaceDeclaration(Nr):Ee.kind===92?e.isEnumDeclaration(Nr):Ee.kind===154?e.isTypeAliasDeclaration(Nr):Ee.kind===143||Ee.kind===142?e.isModuleDeclaration(Nr):Ee.kind===100?e.isImportEqualsDeclaration(Nr):Ee.kind===137?e.isGetAccessorDeclaration(Nr):Ee.kind===151&&e.isSetAccessorDeclaration(Nr)){var Mt=L(Nr,Dr);if(Mt)return Mt}if((Ee.kind===113||Ee.kind===85||Ee.kind===119)&&e.isVariableDeclarationList(Nr)&&Nr.declarations.length===1){var In=Nr.declarations[0];if(e.isIdentifier(In.name))return In.name}if(Ee.kind===154){if(e.isImportClause(Nr)&&Nr.isTypeOnly){var Mt=ue(Nr.parent,Dr);if(Mt)return Mt}if(e.isExportDeclaration(Nr)&&Nr.isTypeOnly){var Mt=Ue(Nr,Dr);if(Mt)return Mt}}if(Ee.kind===128){if(e.isImportSpecifier(Nr)&&Nr.propertyName||e.isExportSpecifier(Nr)&&Nr.propertyName||e.isNamespaceImport(Nr)||e.isNamespaceExport(Nr))return Nr.name;if(e.isExportDeclaration(Nr)&&Nr.exportClause&&e.isNamespaceExport(Nr.exportClause))return Nr.exportClause.name}if(Ee.kind===100&&e.isImportDeclaration(Nr)){var Mt=ue(Nr,Dr);if(Mt)return Mt}if(Ee.kind===93){if(e.isExportDeclaration(Nr)){var Mt=Ue(Nr,Dr);if(Mt)return Mt}if(e.isExportAssignment(Nr))return e.skipOuterExpressions(Nr.expression)}if(Ee.kind===147&&e.isExternalModuleReference(Nr))return Nr.expression;if(Ee.kind===158&&(e.isImportDeclaration(Nr)||e.isExportDeclaration(Nr))&&Nr.moduleSpecifier)return Nr.moduleSpecifier;if((Ee.kind===94||Ee.kind===117)&&e.isHeritageClause(Nr)&&Nr.token===Ee.kind){var Mt=Je(Nr);if(Mt)return Mt}if(Ee.kind===94){if(e.isTypeParameterDeclaration(Nr)&&Nr.constraint&&e.isTypeReferenceNode(Nr.constraint))return Nr.constraint.typeName;if(e.isConditionalTypeNode(Nr)&&e.isTypeReferenceNode(Nr.extendsType))return Nr.extendsType.typeName}if(Ee.kind===138&&e.isInferTypeNode(Nr))return Nr.typeParameter.name;if(Ee.kind===101&&e.isTypeParameterDeclaration(Nr)&&e.isMappedTypeNode(Nr.parent))return Nr.name;if(Ee.kind===141&&e.isTypeOperatorNode(Nr)&&Nr.operator===141&&e.isTypeReferenceNode(Nr.type))return Nr.type.typeName;if(Ee.kind===146&&e.isTypeOperatorNode(Nr)&&Nr.operator===146&&e.isArrayTypeNode(Nr.type)&&e.isTypeReferenceNode(Nr.type.elementType))return Nr.type.elementType.typeName;if(!Dr){if((Ee.kind===103&&e.isNewExpression(Nr)||Ee.kind===114&&e.isVoidExpression(Nr)||Ee.kind===112&&e.isTypeOfExpression(Nr)||Ee.kind===133&&e.isAwaitExpression(Nr)||Ee.kind===125&&e.isYieldExpression(Nr)||Ee.kind===89&&e.isDeleteExpression(Nr))&&Nr.expression)return e.skipOuterExpressions(Nr.expression);if((Ee.kind===101||Ee.kind===102)&&e.isBinaryExpression(Nr)&&Nr.operatorToken===Ee)return e.skipOuterExpressions(Nr.right);if(Ee.kind===128&&e.isAsExpression(Nr)&&e.isTypeReferenceNode(Nr.type))return Nr.type.typeName;if(Ee.kind===101&&e.isForInStatement(Nr)||Ee.kind===162&&e.isForOfStatement(Nr))return e.skipOuterExpressions(Nr.expression)}return Ee}function mr(Ee){return lr(Ee,!1)}e.getAdjustedReferenceLocation=mr;function Hr(Ee){return lr(Ee,!0)}e.getAdjustedRenameLocation=Hr;function wr(Ee,Dr){return Oe(Ee,Dr,function(Nr){return e.isPropertyNameLiteral(Nr)||e.isKeyword(Nr.kind)||e.isPrivateIdentifier(Nr)})}e.getTouchingPropertyName=wr;function Oe(Ee,Dr,Nr){return tt(Ee,Dr,!1,Nr,!1)}e.getTouchingToken=Oe;function Ze(Ee,Dr){return tt(Ee,Dr,!0,void 0,!1)}e.getTokenAtPosition=Ze;function tt(Ee,Dr,Nr,Mt,In){var Di=Ee,Pi,Aa=function(){var qo=Di.getChildren(Ee),no=e.binarySearchKey(qo,Dr,function(uo,_s){return _s},function(uo,_s){var fs=qo[uo].getEnd();if(fs<Dr)return-1;var Xs=Nr?qo[uo].getFullStart():qo[uo].getStart(Ee,!0);return Xs>Dr?1:os(qo[uo],Xs,fs)?qo[uo-1]&&os(qo[uo-1])?1:0:Mt&&Xs===Dr&&qo[uo-1]&&qo[uo-1].getEnd()===Dr&&os(qo[uo-1])?1:-1});return Pi?{value:Pi}:no>=0&&qo[no]?(Di=qo[no],"continue-outer"):{value:Di}};e:for(;;){var co=Aa();if(typeof co=="object")return co.value;switch(co){case"continue-outer":continue e}}function os(qo,no,uo){if(uo??(uo=qo.getEnd()),uo<Dr||(no??(no=Nr?qo.getFullStart():qo.getStart(Ee,!0)),no>Dr))return!1;if(Dr<uo||Dr===uo&&(qo.kind===1||In))return!0;if(Mt&&uo===Dr){var _s=Rr(Dr,Ee,qo);if(_s&&Mt(_s))return Pi=_s,!0}return!1}}function ut(Ee,Dr){for(var Nr=Ze(Ee,Dr);Fe(Nr);){var Mt=qr(Nr,Nr.parent,Ee);if(!Mt)return;Nr=Mt}return Nr}e.findFirstNonJsxWhitespaceToken=ut;function or(Ee,Dr){var Nr=Ze(Ee,Dr);return e.isToken(Nr)&&Dr>Nr.getStart(Ee)&&Dr<Nr.getEnd()?Nr:Rr(Dr,Ee)}e.findTokenOnLeftOfPosition=or;function qr(Ee,Dr,Nr){return Mt(Dr);function Mt(In){return e.isToken(In)&&In.pos===Ee.end?In:e.firstDefined(In.getChildren(Nr),function(Di){var Pi=Di.pos<=Ee.pos&&Di.end>Ee.end||Di.pos===Ee.end;return Pi&&Dt(Di,Nr)?Mt(Di):void 0})}}e.findNextToken=qr;function Rr(Ee,Dr,Nr,Mt){var In=Di(Nr||Dr);return e.Debug.assert(!(In&&Fe(In))),In;function Di(Pi){if(zr(Pi)&&Pi.kind!==1)return Pi;var Aa=Pi.getChildren(Dr),co=e.binarySearchKey(Aa,Ee,function(fs,Xs){return Xs},function(fs,Xs){return Ee<Aa[fs].end?!Aa[fs-1]||Ee>=Aa[fs-1].end?0:1:-1});if(co>=0&&Aa[co]){var os=Aa[co];if(Ee<os.end){var qo=os.getStart(Dr,!Mt),no=qo>=Ee||!Dt(os,Dr)||Fe(os);if(no){var uo=_t(Aa,co,Dr,Pi.kind);return uo&&Fr(uo,Dr)}else return Di(os)}}e.Debug.assert(Nr!==void 0||Pi.kind===308||Pi.kind===1||e.isJSDocCommentContainingNode(Pi));var _s=_t(Aa,Aa.length,Dr,Pi.kind);return _s&&Fr(_s,Dr)}}e.findPrecedingToken=Rr;function zr(Ee){return e.isToken(Ee)&&!Fe(Ee)}function Fr(Ee,Dr){if(zr(Ee))return Ee;var Nr=Ee.getChildren(Dr);if(Nr.length===0)return Ee;var Mt=_t(Nr,Nr.length,Dr,Ee.kind);return Mt&&Fr(Mt,Dr)}function _t(Ee,Dr,Nr,Mt){for(var In=Dr-1;In>=0;In--){var Di=Ee[In];if(Fe(Di))In===0&&(Mt===11||Mt===282)&&e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Dt(Ee[In],Nr))return Ee[In]}}function Ct(Ee,Dr,Nr){if(Nr===void 0&&(Nr=Rr(Dr,Ee)),Nr&&e.isStringTextContainingNode(Nr)){var Mt=Nr.getStart(Ee),In=Nr.getEnd();if(Mt<Dr&&Dr<In)return!0;if(Dr===In)return!!Nr.isUnterminated}return!1}e.isInString=Ct;function yt(Ee,Dr){var Nr=Ze(Ee,Dr);return Nr?!!(Nr.kind===11||Nr.kind===29&&Nr.parent.kind===11||Nr.kind===29&&Nr.parent.kind===291||Nr&&Nr.kind===19&&Nr.parent.kind===291||Nr.kind===29&&Nr.parent.kind===284):!1}e.isInsideJsxElementOrAttribute=yt;function Fe(Ee){return e.isJsxText(Ee)&&Ee.containsOnlyTriviaWhiteSpaces}function vr(Ee,Dr){var Nr=Ze(Ee,Dr);return e.isTemplateLiteralKind(Nr.kind)&&Dr>Nr.getStart(Ee)}e.isInTemplateString=vr;function Le(Ee,Dr){var Nr=Ze(Ee,Dr);return!!(e.isJsxText(Nr)||Nr.kind===18&&e.isJsxExpression(Nr.parent)&&e.isJsxElement(Nr.parent.parent)||Nr.kind===29&&e.isJsxOpeningLikeElement(Nr.parent)&&e.isJsxElement(Nr.parent.parent))}e.isInJSXText=Le;function cr(Ee,Dr){function Nr(Mt){for(;Mt;)if(Mt.kind>=282&&Mt.kind<=291||Mt.kind===11||Mt.kind===29||Mt.kind===31||Mt.kind===79||Mt.kind===19||Mt.kind===18||Mt.kind===43)Mt=Mt.parent;else if(Mt.kind===281){if(Dr>Mt.getStart(Ee))return!0;Mt=Mt.parent}else return!1;return!1}return Nr(Ze(Ee,Dr))}e.isInsideJsxElement=cr;function $r(Ee,Dr,Nr){var Mt=e.tokenToString(Ee.kind),In=e.tokenToString(Dr),Di=Ee.getFullStart(),Pi=Nr.text.lastIndexOf(In,Di);if(Pi!==-1){if(Nr.text.lastIndexOf(Mt,Di-1)<Pi){var Aa=Rr(Pi+1,Nr);if(Aa&&Aa.kind===Dr)return Aa}for(var co=Ee.kind,os=0;;){var qo=Rr(Ee.getFullStart(),Nr);if(!qo)return;if(Ee=qo,Ee.kind===Dr){if(os===0)return Ee;os--}else Ee.kind===co&&os++}}}e.findPrecedingMatchingToken=$r;function Re(Ee,Dr,Nr){return Dr?Ee.getNonNullableType():Nr?Ee.getNonOptionalType():Ee}e.removeOptionality=Re;function xr(Ee,Dr,Nr){var Mt=Qr(Ee,Dr);return Mt!==void 0&&(e.isPartOfTypeNode(Mt.called)||Br(Mt.called,Mt.nTypeArguments,Nr).length!==0||xr(Mt.called,Dr,Nr))}e.isPossiblyTypeArgumentPosition=xr;function Br(Ee,Dr,Nr){var Mt=Nr.getTypeAtLocation(Ee);e.isOptionalChain(Ee.parent)&&(Mt=Re(Mt,e.isOptionalChainRoot(Ee.parent),!0));var In=e.isNewExpression(Ee.parent)?Mt.getConstructSignatures():Mt.getCallSignatures();return In.filter(function(Di){return!!Di.typeParameters&&Di.typeParameters.length>=Dr})}e.getPossibleGenericSignatures=Br;function Qr(Ee,Dr){if(Dr.text.lastIndexOf("<",Ee?Ee.pos:Dr.text.length)!==-1)for(var Nr=Ee,Mt=0,In=0;Nr;){switch(Nr.kind){case 29:if(Nr=Rr(Nr.getFullStart(),Dr),Nr&&Nr.kind===28&&(Nr=Rr(Nr.getFullStart(),Dr)),!Nr||!e.isIdentifier(Nr))return;if(!Mt)return e.isDeclarationName(Nr)?void 0:{called:Nr,nTypeArguments:In};Mt--;break;case 49:Mt=3;break;case 48:Mt=2;break;case 31:Mt++;break;case 19:if(Nr=$r(Nr,18,Dr),!Nr)return;break;case 21:if(Nr=$r(Nr,20,Dr),!Nr)return;break;case 23:if(Nr=$r(Nr,22,Dr),!Nr)return;break;case 27:In++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(Nr))break;return}Nr=Rr(Nr.getFullStart(),Dr)}}e.getPossibleTypeArgumentsInfo=Qr;function ct(Ee,Dr,Nr){return e.formatting.getRangeOfEnclosingComment(Ee,Dr,void 0,Nr)}e.isInComment=ct;function ft(Ee,Dr){var Nr=Ze(Ee,Dr);return!!e.findAncestor(Nr,e.isJSDoc)}e.hasDocComment=ft;function Dt(Ee,Dr){return Ee.kind===1?!!Ee.jsDoc:Ee.getWidth(Dr)!==0}function Me(Ee,Dr){Dr===void 0&&(Dr=0);var Nr=[],Mt=e.isDeclaration(Ee)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(Ee)&~Dr:0;return Mt&8&&Nr.push("private"),Mt&16&&Nr.push("protected"),Mt&4&&Nr.push("public"),(Mt&32||e.isClassStaticBlockDeclaration(Ee))&&Nr.push("static"),Mt&256&&Nr.push("abstract"),Mt&1&&Nr.push("export"),Mt&8192&&Nr.push("deprecated"),Ee.flags&16777216&&Nr.push("declare"),Ee.kind===274&&Nr.push("export"),Nr.length>0?Nr.join(","):""}e.getNodeModifiers=Me;function Ke(Ee){if(Ee.kind===180||Ee.kind===210)return Ee.typeArguments;if(e.isFunctionLike(Ee)||Ee.kind===260||Ee.kind===261)return Ee.typeParameters}e.getTypeArgumentOrTypeParameterList=Ke;function Vr(Ee){return Ee===2||Ee===3}e.isComment=Vr;function Yr(Ee){return!!(Ee===10||Ee===13||e.isTemplateLiteralKind(Ee))}e.isStringOrRegularExpressionOrTemplateLiteral=Yr;function Nt(Ee){return 18<=Ee&&Ee<=78}e.isPunctuation=Nt;function Wt(Ee,Dr,Nr){return e.isTemplateLiteralKind(Ee.kind)&&Ee.getStart(Nr)<Dr&&Dr<Ee.end||!!Ee.isUnterminated&&Dr===Ee.end}e.isInsideTemplateLiteral=Wt;function sn(Ee){switch(Ee){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=sn;function en(Ee){var Dr=e.clone(Ee);return e.setConfigFileInOptions(Dr,Ee&&Ee.configFile),Dr}e.cloneCompilerOptions=en;function Ir(Ee){return!!((Ee.kind===206||Ee.kind===207)&&(Ee.parent.kind===223&&Ee.parent.left===Ee&&Ee.parent.operatorToken.kind===63||Ee.parent.kind===247&&Ee.parent.initializer===Ee||Ir(Ee.parent.kind===299?Ee.parent.parent:Ee.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=Ir;function Jr(Ee,Dr){return Ie(Ee,Dr,!0)}e.isInReferenceComment=Jr;function ye(Ee,Dr){return Ie(Ee,Dr,!1)}e.isInNonReferenceComment=ye;function Ie(Ee,Dr,Nr){var Mt=ct(Ee,Dr,void 0);return!!Mt&&Nr===I.test(Ee.text.substring(Mt.pos,Mt.end))}function We(Ee){if(Ee)switch(Ee.kind){case 10:case 14:return ar(Ee);default:return dr(Ee)}}e.getReplacementSpanForContextToken=We;function dr(Ee,Dr,Nr){return e.createTextSpanFromBounds(Ee.getStart(Dr),(Nr||Ee).getEnd())}e.createTextSpanFromNode=dr;function ar(Ee){if(!Ee.isUnterminated)return e.createTextSpanFromBounds(Ee.getStart()+1,Ee.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=ar;function Sr(Ee,Dr){return e.createRange(Ee.getStart(Dr),Ee.end)}e.createTextRangeFromNode=Sr;function Or(Ee){return e.createTextSpanFromBounds(Ee.pos,Ee.end)}e.createTextSpanFromRange=Or;function Ge(Ee){return e.createRange(Ee.start,Ee.start+Ee.length)}e.createTextRangeFromSpan=Ge;function ur(Ee,Dr,Nr){return Lr(e.createTextSpan(Ee,Dr),Nr)}e.createTextChangeFromStartLength=ur;function Lr(Ee,Dr){return{span:Ee,newText:Dr}}e.createTextChange=Lr,e.typeKeywords=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157];function Ar(Ee){return e.contains(e.typeKeywords,Ee)}e.isTypeKeyword=Ar;function rt(Ee){return Ee.kind===154}e.isTypeKeywordToken=rt;function Et(Ee){return rt(Ee)||e.isIdentifier(Ee)&&Ee.text==="type"}e.isTypeKeywordTokenOrIdentifier=Et;function St(Ee){return!!(Ee.flags&1536)&&Ee.name.charCodeAt(0)===34}e.isExternalModuleSymbol=St;function Pt(){var Ee=[];return function(Dr){var Nr=e.getNodeId(Dr);return!Ee[Nr]&&(Ee[Nr]=!0)}}e.nodeSeenTracker=Pt;function pt(Ee){return Ee.getText(0,Ee.getLength())}e.getSnapshotText=pt;function Ft(Ee,Dr){for(var Nr="",Mt=0;Mt<Dr;Mt++)Nr+=Ee;return Nr}e.repeatString=Ft;function ht(Ee){return Ee.isTypeParameter()&&Ee.getConstraint()||Ee}e.skipConstraint=ht;function Yt(Ee){return Ee.kind===164?e.isStringOrNumericLiteralLike(Ee.expression)?Ee.expression.text:void 0:e.isPrivateIdentifier(Ee)?e.idText(Ee):e.getTextOfIdentifierOrLiteral(Ee)}e.getNameFromPropertyName=Yt;function un(Ee){return Ee.getSourceFiles().some(function(Dr){return!Dr.isDeclarationFile&&!Ee.isSourceFileFromExternalLibrary(Dr)&&!!(Dr.externalModuleIndicator||Dr.commonJsModuleIndicator)})}e.programContainsModules=un;function wn(Ee){return Ee.getSourceFiles().some(function(Dr){return!Dr.isDeclarationFile&&!Ee.isSourceFileFromExternalLibrary(Dr)&&!!Dr.externalModuleIndicator})}e.programContainsEsModules=wn;function Bn(Ee){return!!Ee.module||e.getEmitScriptTarget(Ee)>=2||!!Ee.noEmit}e.compilerOptionsIndicateEsModules=Bn;function yn(Ee,Dr){return{fileExists:function(Nr){return Ee.fileExists(Nr)},getCurrentDirectory:function(){return Dr.getCurrentDirectory()},readFile:e.maybeBind(Dr,Dr.readFile),useCaseSensitiveFileNames:e.maybeBind(Dr,Dr.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(Dr,Dr.getSymlinkCache)||Ee.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(Dr,Dr.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var Nr;return(Nr=Ee.getModuleResolutionCache())===null||Nr===void 0?void 0:Nr.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(Dr,Dr.getGlobalTypingsCacheLocation),redirectTargetsMap:Ee.redirectTargetsMap,getProjectReferenceRedirect:function(Nr){return Ee.getProjectReferenceRedirect(Nr)},isSourceOfProjectReferenceRedirect:function(Nr){return Ee.isSourceOfProjectReferenceRedirect(Nr)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(Dr,Dr.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return Ee.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=yn;function Tn(Ee,Dr){return n(n({},yn(Ee,Dr)),{getCommonSourceDirectory:function(){return Ee.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=Tn;function An(Ee){return Ee>=e.ModuleResolutionKind.Node16&&Ee<=e.ModuleResolutionKind.NodeNext}e.moduleResolutionRespectsExports=An;function ii(Ee){return Ee===e.ModuleResolutionKind.NodeJs||Ee>=e.ModuleResolutionKind.Node16&&Ee<=e.ModuleResolutionKind.NodeNext}e.moduleResolutionUsesNodeModules=ii;function Xe(Ee,Dr,Nr,Mt){return Ee||Dr&&Dr.length?hr(Ee,Dr,Nr,Mt):void 0}e.makeImportIfNecessary=Xe;function hr(Ee,Dr,Nr,Mt,In){return e.factory.createImportDeclaration(void 0,Ee||Dr?e.factory.createImportClause(!!In,Ee,Dr&&Dr.length?e.factory.createNamedImports(Dr):void 0):void 0,typeof Nr=="string"?at(Nr,Mt):Nr,void 0)}e.makeImport=hr;function at(Ee,Dr){return e.factory.createStringLiteral(Ee,Dr===0)}e.makeStringLiteral=at,function(Ee){Ee[Ee.Single=0]="Single",Ee[Ee.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={}));function Qe(Ee,Dr){return e.isStringDoubleQuoted(Ee,Dr)?1:0}e.quotePreferenceFromString=Qe;function Qt(Ee,Dr){if(Dr.quotePreference&&Dr.quotePreference!=="auto")return Dr.quotePreference==="single"?0:1;var Nr=Ee.imports&&e.find(Ee.imports,function(Mt){return e.isStringLiteral(Mt)&&!e.nodeIsSynthesized(Mt.parent)});return Nr?Qe(Nr,Ee):1}e.getQuotePreference=Qt;function Zt(Ee){switch(Ee){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(Ee)}}e.getQuoteFromPreference=Zt;function Tt(Ee){var Dr=gt(Ee);return Dr===void 0?void 0:e.unescapeLeadingUnderscores(Dr)}e.symbolNameNoDefault=Tt;function gt(Ee){return Ee.escapedName!=="default"?Ee.escapedName:e.firstDefined(Ee.declarations,function(Dr){var Nr=e.getNameOfDeclaration(Dr);return Nr&&Nr.kind===79?Nr.escapedText:void 0})}e.symbolEscapedNameNoDefault=gt;function kt(Ee){return e.isStringLiteralLike(Ee)&&(e.isExternalModuleReference(Ee.parent)||e.isImportDeclaration(Ee.parent)||e.isRequireCall(Ee.parent,!1)&&Ee.parent.arguments[0]===Ee||e.isImportCall(Ee.parent)&&Ee.parent.arguments[0]===Ee)}e.isModuleSpecifierLike=kt;function Lt(Ee){return e.isBindingElement(Ee)&&e.isObjectBindingPattern(Ee.parent)&&e.isIdentifier(Ee.name)&&!Ee.propertyName}e.isObjectBindingElementWithoutPropertyName=Lt;function $e(Ee,Dr){var Nr=Ee.getTypeAtLocation(Dr.parent);return Nr&&Ee.getPropertyOfType(Nr,Dr.name.text)}e.getPropertySymbolFromBindingElement=$e;function et(Ee,Dr,Nr){if(Ee)for(;Ee.parent;){if(e.isSourceFile(Ee.parent)||!It(Nr,Ee.parent,Dr))return Ee;Ee=Ee.parent}}e.getParentNodeInSpan=et;function It(Ee,Dr,Nr){return e.textSpanContainsPosition(Ee,Dr.getStart(Nr))&&Dr.getEnd()<=e.textSpanEnd(Ee)}function xn(Ee,Dr){return e.canHaveModifiers(Ee)?e.find(Ee.modifiers,function(Nr){return Nr.kind===Dr}):void 0}e.findModifier=xn;function pi(Ee,Dr,Nr,Mt){var In=e.isArray(Nr)?Nr[0]:Nr,Di=In.kind===240?e.isRequireVariableStatement:e.isAnyImportSyntax,Pi=e.filter(Dr.statements,Di),Aa=e.isArray(Nr)?e.stableSort(Nr,e.OrganizeImports.compareImportsOrRequireStatements):[Nr];if(!Pi.length)Ee.insertNodesAtTopOfFile(Dr,Aa,Mt);else if(Pi&&e.OrganizeImports.importsAreSorted(Pi))for(var co=0,os=Aa;co<os.length;co++){var qo=os[co],no=e.OrganizeImports.getImportDeclarationInsertionIndex(Pi,qo);if(no===0){var uo=Pi[0]===Dr.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};Ee.insertNodeBefore(Dr,Pi[0],qo,!1,uo)}else{var _s=Pi[no-1];Ee.insertNodeAfter(Dr,_s,qo)}}else{var fs=e.lastOrUndefined(Pi);fs?Ee.insertNodesAfter(Dr,fs,Aa):Ee.insertNodesAtTopOfFile(Dr,Aa,Mt)}}e.insertImports=pi;function ai(Ee,Dr){return e.Debug.assert(Ee.isTypeOnly),e.cast(Ee.getChildAt(0,Dr),rt)}e.getTypeKeywordOfTypeOnlyImport=ai;function Wi(Ee,Dr){return!!Ee&&!!Dr&&Ee.start===Dr.start&&Ee.length===Dr.length}e.textSpansEqual=Wi;function ji(Ee,Dr){return Ee.fileName===Dr.fileName&&Wi(Ee.textSpan,Dr.textSpan)}e.documentSpansEqual=ji;function fn(Ee,Dr){if(Ee){for(var Nr=0;Nr<Ee.length;Nr++)if(Ee.indexOf(Ee[Nr])===Nr){var Mt=Dr(Ee[Nr],Nr);if(Mt)return Mt}}}e.forEachUnique=fn;function Ri(Ee,Dr,Nr){for(var Mt=Dr;Mt<Nr;Mt++)if(!e.isWhiteSpaceLike(Ee.charCodeAt(Mt)))return!1;return!0}e.isTextWhiteSpaceLike=Ri;function ma(Ee,Dr,Nr){var Mt=Dr.tryGetSourcePosition(Ee);return Mt&&(!Nr||Nr(e.normalizePath(Mt.fileName))?Mt:void 0)}e.getMappedLocation=ma;function ra(Ee,Dr,Nr){var Mt=Ee.fileName,In=Ee.textSpan,Di=ma({fileName:Mt,pos:In.start},Dr,Nr);if(Di){var Pi=ma({fileName:Mt,pos:In.start+In.length},Dr,Nr),Aa=Pi?Pi.pos-Di.pos:In.length;return{fileName:Di.fileName,textSpan:{start:Di.pos,length:Aa},originalFileName:Ee.fileName,originalTextSpan:Ee.textSpan,contextSpan:vn(Ee,Dr,Nr),originalContextSpan:Ee.contextSpan}}}e.getMappedDocumentSpan=ra;function vn(Ee,Dr,Nr){var Mt=Ee.contextSpan&&ma({fileName:Ee.fileName,pos:Ee.contextSpan.start},Dr,Nr),In=Ee.contextSpan&&ma({fileName:Ee.fileName,pos:Ee.contextSpan.start+Ee.contextSpan.length},Dr,Nr);return Mt&&In?{start:Mt.pos,length:In.pos-Mt.pos}:void 0}e.getMappedContextSpan=vn;function zo(Ee){var Dr=Ee.declarations?e.firstOrUndefined(Ee.declarations):void 0;return!!e.findAncestor(Dr,function(Nr){return e.isParameter(Nr)?!0:e.isBindingElement(Nr)||e.isObjectBindingPattern(Nr)||e.isArrayBindingPattern(Nr)?!1:"quit"})}e.isFirstDeclarationOfSymbolParameter=zo;var _a=Ha();function Ha(){var Ee=e.defaultMaximumTruncationLength*10,Dr,Nr,Mt,In;qo();var Di=function(no){return Aa(no,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var no=Dr.length&&Dr[Dr.length-1].text;return In>Ee&&no&&no!=="..."&&(e.isWhiteSpaceLike(no.charCodeAt(no.length-1))||Dr.push(Ka(" ",e.SymbolDisplayPartKind.space)),Dr.push(Ka("...",e.SymbolDisplayPartKind.punctuation))),Dr},writeKeyword:function(no){return Aa(no,e.SymbolDisplayPartKind.keyword)},writeOperator:function(no){return Aa(no,e.SymbolDisplayPartKind.operator)},writePunctuation:function(no){return Aa(no,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(no){return Aa(no,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(no){return Aa(no,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(no){return Aa(no,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(no){return Aa(no,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(no){return Aa(no,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(no){return Aa(no,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:co,writeLine:os,write:Di,writeComment:Di,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return Mt},increaseIndent:function(){Mt++},decreaseIndent:function(){Mt--},clear:qo,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Pi(){if(!(In>Ee)&&Nr){var no=e.getIndentString(Mt);no&&(In+=no.length,Dr.push(Ka(no,e.SymbolDisplayPartKind.space))),Nr=!1}}function Aa(no,uo){In>Ee||(Pi(),In+=no.length,Dr.push(Ka(no,uo)))}function co(no,uo){In>Ee||(Pi(),In+=no.length,Dr.push(Do(no,uo)))}function os(){In>Ee||(In+=1,Dr.push(Ye()),Nr=!0)}function qo(){Dr=[],Nr=!0,Mt=0,In=0}}function Do(Ee,Dr){return Ka(Ee,Nr(Dr));function Nr(Mt){var In=Mt.flags;return In&3?zo(Mt)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:In&4||In&32768||In&65536?e.SymbolDisplayPartKind.propertyName:In&8?e.SymbolDisplayPartKind.enumMemberName:In&16?e.SymbolDisplayPartKind.functionName:In&32?e.SymbolDisplayPartKind.className:In&64?e.SymbolDisplayPartKind.interfaceName:In&384?e.SymbolDisplayPartKind.enumName:In&1536?e.SymbolDisplayPartKind.moduleName:In&8192?e.SymbolDisplayPartKind.methodName:In&262144?e.SymbolDisplayPartKind.typeParameterName:In&524288||In&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=Do;function Ka(Ee,Dr){return{text:Ee,kind:e.SymbolDisplayPartKind[Dr]}}e.displayPart=Ka;function rs(){return Ka(" ",e.SymbolDisplayPartKind.space)}e.spacePart=rs;function ts(Ee){return Ka(e.tokenToString(Ee),e.SymbolDisplayPartKind.keyword)}e.keywordPart=ts;function En(Ee){return Ka(e.tokenToString(Ee),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=En;function ca(Ee){return Ka(e.tokenToString(Ee),e.SymbolDisplayPartKind.operator)}e.operatorPart=ca;function bo(Ee){return Ka(Ee,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=bo;function Oo(Ee){return Ka(Ee,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Oo;function Ws(Ee){var Dr=e.stringToToken(Ee);return Dr===void 0?Co(Ee):ts(Dr)}e.textOrKeywordPart=Ws;function Co(Ee){return Ka(Ee,e.SymbolDisplayPartKind.text)}e.textPart=Co;function qs(Ee){return Ka(Ee,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=qs;function gs(Ee){return Ka(Ee,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=gs;function Ds(Ee){return Ka(Ee,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=Ds;function Ko(Ee,Dr){return{text:Ee,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(Dr).fileName,textSpan:dr(Dr)}}}e.linkNamePart=Ko;function kr(Ee){return Ka(Ee,e.SymbolDisplayPartKind.link)}e.linkPart=kr;function jr(Ee,Dr){var Nr,Mt=e.isJSDocLink(Ee)?"link":e.isJSDocLinkCode(Ee)?"linkcode":"linkplain",In=[kr("{@".concat(Mt," "))];if(!Ee.name)Ee.text&&In.push(Ds(Ee.text));else{var Di=Dr==null?void 0:Dr.getSymbolAtLocation(Ee.name),Pi=xi(Ee.text),Aa=e.getTextOfNode(Ee.name)+Ee.text.slice(0,Pi),co=Nn(Ee.text.slice(Pi)),os=(Di==null?void 0:Di.valueDeclaration)||((Nr=Di==null?void 0:Di.declarations)===null||Nr===void 0?void 0:Nr[0]);os?(In.push(Ko(Aa,os)),co&&In.push(Ds(co))):In.push(Ds(Aa+(Pi||co.indexOf("://")===0?"":" ")+co))}return In.push(kr("}")),In}e.buildLinkParts=jr;function Nn(Ee){var Dr=0;if(Ee.charCodeAt(Dr++)===124){for(;Dr<Ee.length&&Ee.charCodeAt(Dr)===32;)Dr++;return Ee.slice(Dr)}return Ee}function xi(Ee){if(Ee.indexOf("()")===0)return 2;if(Ee[0]!=="<")return 0;for(var Dr=0,Nr=0;Nr<Ee.length;)if(Ee[Nr]==="<"&&Dr++,Ee[Nr]===">"&&Dr--,Nr++,!Dr)return Nr;return 0}var ka=`\r
`;function ro(Ee,Dr){var Nr;return(Dr==null?void 0:Dr.newLineCharacter)||((Nr=Ee.getNewLine)===null||Nr===void 0?void 0:Nr.call(Ee))||ka}e.getNewLineOrDefaultFromHost=ro;function Ye(){return Ka(`
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=Ye;function lt(Ee){try{return Ee(_a),_a.displayParts()}finally{_a.clear()}}e.mapToDisplayParts=lt;function Ut(Ee,Dr,Nr,Mt){return Mt===void 0&&(Mt=0),lt(function(In){Ee.writeType(Dr,Nr,Mt|1024|16384,In)})}e.typeToDisplayParts=Ut;function Ve(Ee,Dr,Nr,Mt,In){return In===void 0&&(In=0),lt(function(Di){Ee.writeSymbol(Dr,Nr,Mt,In|8,Di)})}e.symbolToDisplayParts=Ve;function yr(Ee,Dr,Nr,Mt){return Mt===void 0&&(Mt=0),Mt|=25632,lt(function(In){Ee.writeSignature(Dr,Nr,Mt,void 0,In)})}e.signatureToDisplayParts=yr;function Er(Ee,Dr){var Nr=Dr.getSourceFile();return lt(function(Mt){var In=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});In.writeNode(4,Ee,Nr,Mt)})}e.nodeToDisplayParts=Er;function Wr(Ee){return!!Ee.parent&&e.isImportOrExportSpecifier(Ee.parent)&&Ee.parent.propertyName===Ee}e.isImportOrExportSpecifierName=Wr;function Ot(Ee,Dr){return e.ensureScriptKind(Ee,Dr.getScriptKind&&Dr.getScriptKind(Ee))}e.getScriptKind=Ot;function ln(Ee,Dr){for(var Nr=Ee;Cn(Nr)||kn(Nr)&&Nr.target;)kn(Nr)&&Nr.target?Nr=Nr.target:Nr=e.skipAlias(Nr,Dr);return Nr}e.getSymbolTarget=ln;function kn(Ee){return(Ee.flags&33554432)!==0}function Cn(Ee){return(Ee.flags&2097152)!==0}function _i(Ee,Dr){return e.getSymbolId(e.skipAlias(Ee,Dr))}e.getUniqueSymbolId=_i;function qi(Ee,Dr){for(;e.isWhiteSpaceLike(Ee.charCodeAt(Dr));)Dr+=1;return Dr}e.getFirstNonSpaceCharacterPosition=qi;function va(Ee,Dr){for(;Dr>-1&&e.isWhiteSpaceSingleLine(Ee.charCodeAt(Dr));)Dr-=1;return Dr+1}e.getPrecedingNonSpaceCharacterPosition=va;function Ia(Ee,Dr){Dr===void 0&&(Dr=!0);var Nr=Ee&&ws(Ee);return Nr&&!Dr&&ds(Nr),Nr}e.getSynthesizedDeepClone=Ia;function $a(Ee,Dr,Nr){var Mt=Nr(Ee);return Mt?e.setOriginalNode(Mt,Ee):Mt=ws(Ee,Nr),Mt&&!Dr&&ds(Mt),Mt}e.getSynthesizedDeepCloneWithReplacements=$a;function ws(Ee,Dr){var Nr=Dr?function(Pi){return $a(Pi,!0,Dr)}:Ia,Mt=Dr?function(Pi){return Pi&&Wo(Pi,!0,Dr)}:function(Pi){return Pi&&rc(Pi)},In=e.visitEachChild(Ee,Nr,e.nullTransformationContext,Mt,Nr);if(In===Ee){var Di=e.isStringLiteral(Ee)?e.setOriginalNode(e.factory.createStringLiteralFromNode(Ee),Ee):e.isNumericLiteral(Ee)?e.setOriginalNode(e.factory.createNumericLiteral(Ee.text,Ee.numericLiteralFlags),Ee):e.factory.cloneNode(Ee);return e.setTextRange(Di,Ee)}return In.parent=void 0,In}function rc(Ee,Dr){return Dr===void 0&&(Dr=!0),Ee&&e.factory.createNodeArray(Ee.map(function(Nr){return Ia(Nr,Dr)}),Ee.hasTrailingComma)}e.getSynthesizedDeepClones=rc;function Wo(Ee,Dr,Nr){return e.factory.createNodeArray(Ee.map(function(Mt){return $a(Mt,Dr,Nr)}),Ee.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=Wo;function ds(Ee){yu(Ee),bu(Ee)}e.suppressLeadingAndTrailingTrivia=ds;function yu(Ee){Su(Ee,512,Lc)}e.suppressLeadingTrivia=yu;function bu(Ee){Su(Ee,1024,e.getLastChild)}e.suppressTrailingTrivia=bu;function tu(Ee,Dr){var Nr=Ee.getSourceFile(),Mt=Nr.text;$c(Ee,Mt)?fc(Ee,Dr,Nr):nc(Ee,Dr,Nr),nu(Ee,Dr,Nr)}e.copyComments=tu;function $c(Ee,Dr){for(var Nr=Ee.getFullStart(),Mt=Ee.getStart(),In=Nr;In<Mt;In++)if(Dr.charCodeAt(In)===10)return!0;return!1}function Su(Ee,Dr,Nr){e.addEmitFlags(Ee,Dr);var Mt=Nr(Ee);Mt&&Su(Mt,Dr,Nr)}function Lc(Ee){return Ee.forEachChild(function(Dr){return Dr})}function Hc(Ee,Dr){for(var Nr=Ee,Mt=1;!e.isFileLevelUniqueName(Dr,Nr);Mt++)Nr="".concat(Ee,"_").concat(Mt);return Nr}e.getUniqueName=Hc;function tc(Ee,Dr,Nr,Mt){for(var In=0,Di=-1,Pi=0,Aa=Ee;Pi<Aa.length;Pi++){var co=Aa[Pi],os=co.fileName,qo=co.textChanges;e.Debug.assert(os===Dr);for(var no=0,uo=qo;no<uo.length;no++){var _s=uo[no],fs=_s.span,Xs=_s.newText,bc=be(Xs,e.escapeString(Nr));if(bc!==-1&&(Di=fs.start+In+bc,!Mt))return Di;In+=Xs.length-fs.length}}return e.Debug.assert(Mt),e.Debug.assert(Di>=0),Di}e.getRenameLocation=tc;function fc(Ee,Dr,Nr,Mt,In){e.forEachLeadingCommentRange(Nr.text,Ee.pos,Xt(Dr,Nr,Mt,In,e.addSyntheticLeadingComment))}e.copyLeadingComments=fc;function nu(Ee,Dr,Nr,Mt,In){e.forEachTrailingCommentRange(Nr.text,Ee.end,Xt(Dr,Nr,Mt,In,e.addSyntheticTrailingComment))}e.copyTrailingComments=nu;function nc(Ee,Dr,Nr,Mt,In){e.forEachTrailingCommentRange(Nr.text,Ee.pos,Xt(Dr,Nr,Mt,In,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=nc;function Xt(Ee,Dr,Nr,Mt,In){return function(Di,Pi,Aa,co){Aa===3?(Di+=2,Pi-=2):Di+=2,In(Ee,Nr||Aa,Dr.text.slice(Di,Pi),Mt!==void 0?Mt:co)}}function be(Ee,Dr){if(e.startsWith(Ee,Dr))return 0;var Nr=Ee.indexOf(" "+Dr);return Nr===-1&&(Nr=Ee.indexOf("."+Dr)),Nr===-1&&(Nr=Ee.indexOf('"'+Dr)),Nr===-1?-1:Nr+1}function Ur(Ee){return e.isBinaryExpression(Ee)&&Ee.operatorToken.kind===27||e.isObjectLiteralExpression(Ee)||e.isAsExpression(Ee)&&e.isObjectLiteralExpression(Ee.expression)}e.needsParentheses=Ur;function At(Ee,Dr){var Nr=Ee.parent;switch(Nr.kind){case 211:return Dr.getContextualType(Nr);case 223:{var Mt=Nr,In=Mt.left,Di=Mt.operatorToken,Pi=Mt.right;return Kn(Di.kind)?Dr.getTypeAtLocation(Ee===Pi?In:Pi):Dr.getContextualType(Ee)}case 292:return Nr.expression===Ee?vi(Nr,Dr):void 0;default:return Dr.getContextualType(Ee)}}e.getContextualTypeFromParent=At;function an(Ee,Dr,Nr){var Mt=Qt(Ee,Dr),In=JSON.stringify(Nr);return Mt===0?"'".concat(e.stripQuotes(In).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):In}e.quote=an;function Kn(Ee){switch(Ee){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=Kn;function Yn(Ee){switch(Ee.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}e.isStringLiteralOrTemplate=Yn;function Si(Ee){return!!Ee.getStringIndexType()||!!Ee.getNumberIndexType()}e.hasIndexSignature=Si;function vi(Ee,Dr){return Dr.getTypeAtLocation(Ee.parent.parent.expression)}e.getSwitchedType=vi,e.ANONYMOUS="anonymous function";function Da(Ee,Dr,Nr,Mt){var In=Nr.getTypeChecker(),Di=!0,Pi=function(){return Di=!1},Aa=In.typeToTypeNode(Ee,Dr,1,{trackSymbol:function(co,os,qo){return Di=Di&&In.isSymbolAccessible(co,os,qo,!1).accessibility===0,!Di},reportInaccessibleThisError:Pi,reportPrivateInBaseOfClassExpression:Pi,reportInaccessibleUniqueSymbolError:Pi,moduleResolverHost:Tn(Nr,Mt)});return Di?Aa:void 0}e.getTypeNodeIfAccessible=Da;function ta(Ee){return Ee===176||Ee===177||Ee===178||Ee===168||Ee===170}function fo(Ee){return Ee===259||Ee===173||Ee===171||Ee===174||Ee===175}function oo(Ee){return Ee===264}function er(Ee){return Ee===240||Ee===241||Ee===243||Ee===248||Ee===249||Ee===250||Ee===254||Ee===256||Ee===169||Ee===262||Ee===269||Ee===268||Ee===275||Ee===267||Ee===274}e.syntaxRequiresTrailingSemicolonOrASI=er,e.syntaxMayBeASICandidate=e.or(ta,fo,oo,er);function Bt(Ee,Dr){var Nr=Ee.getLastToken(Dr);if(Nr&&Nr.kind===26)return!1;if(ta(Ee.kind)){if(Nr&&Nr.kind===27)return!1}else if(oo(Ee.kind)){var Mt=e.last(Ee.getChildren(Dr));if(Mt&&e.isModuleBlock(Mt))return!1}else if(fo(Ee.kind)){var Mt=e.last(Ee.getChildren(Dr));if(Mt&&e.isFunctionBlock(Mt))return!1}else if(!er(Ee.kind))return!1;if(Ee.kind===243)return!0;var In=e.findAncestor(Ee,function(co){return!co.parent}),Di=qr(Ee,In,Dr);if(!Di||Di.kind===19)return!0;var Pi=Dr.getLineAndCharacterOfPosition(Ee.getEnd()).line,Aa=Dr.getLineAndCharacterOfPosition(Di.getStart(Dr)).line;return Pi!==Aa}function Mr(Ee,Dr,Nr){var Mt=e.findAncestor(Dr,function(In){return In.end!==Ee?"quit":e.syntaxMayBeASICandidate(In.kind)});return!!Mt&&Bt(Mt,Nr)}e.positionIsASICandidate=Mr;function ua(Ee){var Dr=0,Nr=0,Mt=5;return e.forEachChild(Ee,function In(Di){if(er(Di.kind)){var Pi=Di.getLastToken(Ee);(Pi==null?void 0:Pi.kind)===26?Dr++:Nr++}else if(ta(Di.kind)){var Pi=Di.getLastToken(Ee);if((Pi==null?void 0:Pi.kind)===26)Dr++;else if(Pi&&Pi.kind!==27){var Aa=e.getLineAndCharacterOfPosition(Ee,Pi.getStart(Ee)).line,co=e.getLineAndCharacterOfPosition(Ee,e.getSpanOfTokenAtPosition(Ee,Pi.end).start).line;Aa!==co&&Nr++}}return Dr+Nr>=Mt?!0:e.forEachChild(Di,In)}),Dr===0&&Nr<=1?!0:Dr/Nr>1/Mt}e.probablyUsesSemicolons=ua;function _o(Ee,Dr){return iu(Ee,Ee.getDirectories,Dr)||[]}e.tryGetDirectories=_o;function xs(Ee,Dr,Nr,Mt,In){return iu(Ee,Ee.readDirectory,Dr,Nr,Mt,In)||e.emptyArray}e.tryReadDirectory=xs;function yc(Ee,Dr){return iu(Ee,Ee.fileExists,Dr)}e.tryFileExists=yc;function kc(Ee,Dr){return oc(function(){return e.directoryProbablyExists(Dr,Ee)})||!1}e.tryDirectoryExists=kc;function oc(Ee){try{return Ee()}catch{return}}e.tryAndIgnoreErrors=oc;function iu(Ee,Dr){for(var Nr=[],Mt=2;Mt<arguments.length;Mt++)Nr[Mt-2]=arguments[Mt];return oc(function(){return Dr&&Dr.apply(Ee,Nr)})}e.tryIOAndConsumeErrors=iu;function _u(Ee,Dr,Nr){var Mt=[];return e.forEachAncestorDirectory(Ee,function(In){if(In===Nr)return!0;var Di=e.combinePaths(In,"package.json");yc(Dr,Di)&&Mt.push(Di)}),Mt}e.findPackageJsons=_u;function wl(Ee,Dr){var Nr;return e.forEachAncestorDirectory(Ee,function(Mt){if(Mt==="node_modules"||(Nr=e.findConfigFile(Mt,function(In){return yc(Dr,In)},"package.json"),Nr))return!0}),Nr}e.findPackageJson=wl;function Du(Ee,Dr){if(!Dr.fileExists)return[];var Nr=[];return e.forEachAncestorDirectory(e.getDirectoryPath(Ee),function(Mt){var In=e.combinePaths(Mt,"package.json");if(Dr.fileExists(In)){var Di=Jo(In,Dr);Di&&Nr.push(Di)}}),Nr}e.getPackageJsonsVisibleToFile=Du;function Jo(Ee,Dr){if(!Dr.readFile)return;var Nr=["dependencies","devDependencies","optionalDependencies","peerDependencies"],Mt=Dr.readFile(Ee)||"",In=Ju(Mt),Di={};if(In)for(var Pi=0,Aa=Nr;Pi<Aa.length;Pi++){var co=Aa[Pi],os=In[co];if(os){var qo=new e.Map;for(var no in os)qo.set(no,os[no]);Di[co]=qo}}var uo=[[1,Di.dependencies],[2,Di.devDependencies],[8,Di.optionalDependencies],[4,Di.peerDependencies]];return n(n({},Di),{parseable:!!In,fileName:Ee,get:_s,has:function(fs,Xs){return!!_s(fs,Xs)}});function _s(fs,Xs){Xs===void 0&&(Xs=15);for(var bc=0,fp=uo;bc<fp.length;bc++){var zp=fp[bc],pc=zp[0],vl=zp[1];if(vl&&Xs&pc){var nt=vl.get(fs);if(nt!==void 0)return nt}}}}e.createPackageJsonInfo=Jo;function $s(Ee,Dr,Nr){var Mt=(Nr.getPackageJsonsVisibleToFile&&Nr.getPackageJsonsVisibleToFile(Ee.fileName)||Du(Ee.fileName,Nr)).filter(function(uo){return uo.parseable}),In;return{allowsImportingAmbientModule:Pi,allowsImportingSourceFile:Aa,allowsImportingSpecifier:co};function Di(uo){for(var _s=no(uo),fs=0,Xs=Mt;fs<Xs.length;fs++){var bc=Xs[fs];if(bc.has(_s)||bc.has(e.getTypesPackageName(_s)))return!0}return!1}function Pi(uo,_s){if(!Mt.length||!uo.valueDeclaration)return!0;var fs=uo.valueDeclaration.getSourceFile(),Xs=qo(fs.fileName,_s);if(typeof Xs>"u")return!0;var bc=e.stripQuotes(uo.getName());return os(bc)?!0:Di(Xs)||Di(bc)}function Aa(uo,_s){if(!Mt.length)return!0;var fs=qo(uo.fileName,_s);return fs?Di(fs):!0}function co(uo){return!Mt.length||os(uo)||e.pathIsRelative(uo)||e.isRootedDiskPath(uo)?!0:Di(uo)}function os(uo){return!!(e.isSourceFileJS(Ee)&&e.JsTyping.nodeCoreModules.has(uo)&&(In===void 0&&(In=Up(Ee)),In))}function qo(uo,_s){if(e.stringContains(uo,"node_modules")){var fs=e.moduleSpecifiers.getNodeModulesPackageName(Nr.getCompilationSettings(),Ee,uo,_s,Dr);if(fs&&!e.pathIsRelative(fs)&&!e.isRootedDiskPath(fs))return no(fs)}}function no(uo){var _s=e.getPathComponents(e.getPackageNameFromTypesPackageName(uo)).slice(1);return e.startsWith(_s[0],"@")?"".concat(_s[0],"/").concat(_s[1]):_s[0]}}e.createPackageJsonImportFilter=$s;function Ju(Ee){try{return JSON.parse(Ee)}catch{return}}function Up(Ee){return e.some(Ee.imports,function(Dr){var Nr=Dr.text;return e.JsTyping.nodeCoreModules.has(Nr)})}e.consumesNodeCoreModules=Up;function Vp(Ee){return e.contains(e.getPathComponents(Ee),"node_modules")}e.isInsideNodeModules=Vp;function wu(Ee){return Ee.file!==void 0&&Ee.start!==void 0&&Ee.length!==void 0}e.isDiagnosticWithLocation=wu;function Nl(Ee,Dr){var Nr=dr(Ee),Mt=e.binarySearchKey(Dr,Nr,e.identity,e.compareTextSpans);if(Mt>=0){var In=Dr[Mt];return e.Debug.assertEqual(In.file,Ee.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(In,wu)}}e.findDiagnosticForNode=Nl;function pf(Ee,Dr){var Nr,Mt=e.binarySearchKey(Dr,Ee.start,function(Aa){return Aa.start},e.compareValues);for(Mt<0&&(Mt=~Mt);((Nr=Dr[Mt-1])===null||Nr===void 0?void 0:Nr.start)===Ee.start;)Mt--;for(var In=[],Di=e.textSpanEnd(Ee);;){var Pi=e.tryCast(Dr[Mt],wu);if(!Pi||Pi.start>Di)break;e.textSpanContainsTextSpan(Ee,Pi)&&In.push(Pi),Mt++}return In}e.getDiagnosticsWithinSpan=pf;function Il(Ee){var Dr=Ee.startPosition,Nr=Ee.endPosition;return e.createTextSpanFromBounds(Dr,Nr===void 0?Dr:Nr)}e.getRefactorContextSpan=Il;function Xl(Ee,Dr){var Nr=Ze(Ee,Dr.start),Mt=e.findAncestor(Nr,function(In){return In.getStart(Ee)<Dr.start||In.getEnd()>e.textSpanEnd(Dr)?"quit":e.isExpression(In)&&Wi(Dr,dr(In,Ee))});return Mt}e.getFixableErrorSpanExpression=Xl;function Zr(Ee,Dr,Nr){return Nr===void 0&&(Nr=e.identity),Ee?e.isArray(Ee)?Nr(e.map(Ee,Dr)):Dr(Ee,0):void 0}e.mapOneOrMany=Zr;function Xr(Ee){return e.isArray(Ee)?e.first(Ee):Ee}e.firstOrOnly=Xr;function $t(Ee,Dr){if(Mn(Ee)){var Nr=zn(Ee);if(Nr)return Nr;var Mt=e.codefix.moduleSymbolToValidIdentifier(mi(Ee),Dr,!1),In=e.codefix.moduleSymbolToValidIdentifier(mi(Ee),Dr,!0);return Mt===In?Mt:[Mt,In]}return Ee.name}e.getNamesForExportedSymbol=$t;function Dn(Ee,Dr,Nr){return Mn(Ee)?zn(Ee)||e.codefix.moduleSymbolToValidIdentifier(mi(Ee),Dr,!!Nr):Ee.name}e.getNameForExportedSymbol=Dn;function Mn(Ee){return!(Ee.flags&33554432)&&(Ee.escapedName==="export="||Ee.escapedName==="default")}function zn(Ee){return e.firstDefined(Ee.declarations,function(Dr){var Nr;return e.isExportAssignment(Dr)?(Nr=e.tryCast(e.skipOuterExpressions(Dr.expression),e.isIdentifier))===null||Nr===void 0?void 0:Nr.text:void 0})}function mi(Ee){var Dr;return e.Debug.checkDefined(Ee.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(Ee.flags),". ")+"Declarations: ".concat((Dr=Ee.declarations)===null||Dr===void 0?void 0:Dr.map(function(Nr){var Mt=e.Debug.formatSyntaxKind(Nr.kind),In=e.isInJSFile(Nr),Di=Nr.expression;return(In?"[JS]":"")+Mt+(Di?" (expression: ".concat(e.Debug.formatSyntaxKind(Di.kind),")"):"")}).join(", "),"."))}function Qn(Ee,Dr,Nr){var Mt=Dr.length;if(Mt+Nr>Ee.length)return!1;for(var In=0;In<Mt;In++)if(Dr.charCodeAt(In)!==Ee.charCodeAt(In+Nr))return!1;return!0}e.stringContainsAt=Qn;function Xi(Ee){return Ee.charCodeAt(0)===95}e.startsWithUnderscore=Xi;function Va(Ee){return!ga(Ee)}e.isGlobalDeclaration=Va;function ga(Ee){var Dr=Ee.getSourceFile();return!Dr.externalModuleIndicator&&!Dr.commonJsModuleIndicator?!1:e.isInJSFile(Ee)||!e.findAncestor(Ee,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=ga;function Yi(Ee){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(Ee)&8192)}e.isDeprecatedDeclaration=Yi;function so(Ee,Dr){var Nr=e.firstDefined(Ee.imports,function(Mt){if(e.JsTyping.nodeCoreModules.has(Mt.text))return e.startsWith(Mt.text,"node:")});return Nr??Dr.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=so;function da(Ee){return Ee===`
`?1:0}e.getNewLineKind=da;function Po(Ee){return e.isArray(Ee)?e.formatStringFromArgs(e.getLocaleSpecificMessage(Ee[0]),Ee.slice(1)):e.getLocaleSpecificMessage(Ee)}e.diagnosticToString=Po;function Uo(Ee,Dr){var Nr=Ee.options,Mt=!Nr.semicolons||Nr.semicolons===e.SemicolonPreference.Ignore,In=Nr.semicolons===e.SemicolonPreference.Remove||Mt&&!ua(Dr);return n(n({},Nr),{semicolons:In?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}e.getFormatCodeSettingsForWriting=Uo;function Qs(Ee){return Ee===2||Ee===3}e.jsxModeNeedsExplicitImport=Qs;function ya(Ee,Dr){return Ee.isSourceFileFromExternalLibrary(Dr)||Ee.isSourceFileDefaultLibrary(Dr)}e.isSourceFileFromLibrary=ya})(h||(h={}));var h;(function(e){(function(Y){Y[Y.Named=0]="Named",Y[Y.Default=1]="Default",Y[Y.Namespace=2]="Namespace",Y[Y.CommonJS=3]="CommonJS"})(e.ImportKind||(e.ImportKind={})),function(Y){Y[Y.Named=0]="Named",Y[Y.Default=1]="Default",Y[Y.ExportEquals=2]="ExportEquals",Y[Y.UMD=3]="UMD"}(e.ExportKind||(e.ExportKind={}));function c(Y){var Z=1,ce=e.createMultiMap(),k=new e.Map,X=new e.Map,A,y={isUsableByFile:function(fe){return fe===A},isEmpty:function(){return!ce.size},clear:function(){ce.clear(),k.clear(),A=void 0},add:function(fe,_e,ne,oe,w,re,M,U){fe!==A&&(y.clear(),A=fe);var H;if(w){var q=e.getNodeModulePathParts(w.fileName);if(q){var R=q.topLevelNodeModulesIndex,K=q.topLevelPackageNameIndex,I=q.packageRootIndex;if(H=e.unmangleScopedPackageName(e.getPackageNameFromTypesPackageName(w.fileName.substring(K+1,I))),e.startsWith(fe,w.path.substring(0,R))){var he=X.get(H),le=w.fileName.substring(0,K+1);if(he){var ee=he.indexOf(e.nodeModulesPathPart);R>ee&&X.set(H,le)}else X.set(H,le)}}}var J=re===1,de=J&&e.getLocalSymbolForExportDefault(_e)||_e,De=re===0||e.isExternalModuleSymbol(de)?e.unescapeLeadingUnderscores(ne):e.getNamesForExportedSymbol(de,void 0),N=typeof De=="string"?De:De[0],b=typeof De=="string"?void 0:De[1],Q=e.stripQuotes(oe.name),G=Z++,ae=e.skipAlias(_e,U),Te=_e.flags&33554432?void 0:_e,Ne=oe.flags&33554432?void 0:oe;(!Te||!Ne)&&k.set(G,[_e,oe]),ce.add(B(N,_e,e.isExternalModuleNameRelative(Q)?void 0:Q,U),{id:G,symbolTableKey:ne,symbolName:N,capitalizedSymbolName:b,moduleName:Q,moduleFile:w,moduleFileName:w==null?void 0:w.fileName,packageName:H,exportKind:re,targetFlags:ae.flags,isFromPackageJson:M,symbol:Te,moduleSymbol:Ne})},get:function(fe,_e){if(fe===A){var ne=ce.get(_e);return ne==null?void 0:ne.map(C)}},search:function(fe,_e,ne,oe){if(fe===A)return e.forEachEntry(ce,function(w,re){var M=F(re),U=M.symbolName,H=M.ambientModuleName,q=_e&&w[0].capitalizedSymbolName||U;if(ne(q,w[0].targetFlags)){var R=w.map(C),K=R.filter(function(he,le){return Pe(he,w[le].packageName)});if(K.length){var I=oe(K,q,!!H,re);if(I!==void 0)return I}}})},releaseSymbols:function(){k.clear()},onFileChanged:function(fe,_e,ne){return z(fe)&&z(_e)?!1:A&&A!==_e.path||ne&&e.consumesNodeCoreModules(fe)!==e.consumesNodeCoreModules(_e)||!e.arrayIsEqualTo(fe.moduleAugmentations,_e.moduleAugmentations)||!ge(fe,_e)?(y.clear(),!0):(A=_e.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(y,"__cache",{get:function(){return ce}}),y;function C(fe){if(fe.symbol&&fe.moduleSymbol)return fe;var _e=fe.id,ne=fe.exportKind,oe=fe.targetFlags,w=fe.isFromPackageJson,re=fe.moduleFileName,M=k.get(_e)||e.emptyArray,U=M[0],H=M[1];if(U&&H)return{symbol:U,moduleSymbol:H,moduleFileName:re,exportKind:ne,targetFlags:oe,isFromPackageJson:w};var q=(w?Y.getPackageJsonAutoImportProvider():Y.getCurrentProgram()).getTypeChecker(),R=fe.moduleSymbol||H||e.Debug.checkDefined(fe.moduleFile?q.getMergedSymbol(fe.moduleFile.symbol):q.tryFindAmbientModule(fe.moduleName)),K=fe.symbol||U||e.Debug.checkDefined(ne===2?q.resolveExternalModuleSymbol(R):q.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(fe.symbolTableKey),R),"Could not find symbol '".concat(fe.symbolName,"' by key '").concat(fe.symbolTableKey,"' in module ").concat(R.name));return k.set(_e,[K,R]),{symbol:K,moduleSymbol:R,moduleFileName:re,exportKind:ne,targetFlags:oe,isFromPackageJson:w}}function B(fe,_e,ne,oe){var w=ne||"";return"".concat(fe,"|").concat(e.getSymbolId(e.skipAlias(_e,oe)),"|").concat(w)}function F(fe){var _e=fe.substring(0,fe.indexOf("|")),ne=fe.substring(fe.lastIndexOf("|")+1),oe=ne===""?void 0:ne;return{symbolName:_e,ambientModuleName:oe}}function z(fe){return!fe.commonJsModuleIndicator&&!fe.externalModuleIndicator&&!fe.moduleAugmentations&&!fe.ambientModuleNames}function ge(fe,_e){if(!e.arrayIsEqualTo(fe.ambientModuleNames,_e.ambientModuleNames))return!1;for(var ne=-1,oe=-1,w=function(q){var R=function(K){return e.isNonGlobalAmbientModule(K)&&K.name.text===q};if(ne=e.findIndex(fe.statements,R,ne+1),oe=e.findIndex(_e.statements,R,oe+1),fe.statements[ne]!==_e.statements[oe])return{value:!1}},re=0,M=_e.ambientModuleNames;re<M.length;re++){var U=M[re],H=w(U);if(typeof H=="object")return H.value}return!0}function Pe(fe,_e){if(!_e||!fe.moduleFileName)return!0;var ne=Y.getGlobalTypingsCacheLocation();if(ne&&e.startsWith(fe.moduleFileName,ne))return!0;var oe=X.get(_e);return!oe||e.startsWith(fe.moduleFileName,oe)}}e.createCacheableExportInfoMap=c;function P(Y,Z,ce,k,X,A,y){var C;if(Z===ce)return!1;var B=y==null?void 0:y.get(Z.path,ce.path,k,{});if((B==null?void 0:B.isBlockedByPackageJsonDependencies)!==void 0)return!B.isBlockedByPackageJsonDependencies;var F=e.hostGetCanonicalFileName(A),z=(C=A.getGlobalTypingsCacheLocation)===null||C===void 0?void 0:C.call(A),ge=!!e.moduleSpecifiers.forEachFileNameOfModule(Z.fileName,ce.fileName,A,!1,function(fe){var _e=Y.getSourceFile(fe);return(_e===ce||!_e)&&T(Z.fileName,fe,F,z)});if(X){var Pe=ge&&X.allowsImportingSourceFile(ce,A);return y==null||y.setBlockedByPackageJsonDependencies(Z.path,ce.path,k,{},!Pe),Pe}return ge}e.isImportableFile=P;function T(Y,Z,ce,k){var X=e.forEachAncestorDirectory(Z,function(y){return e.getBaseFileName(y)==="node_modules"?y:void 0}),A=X&&e.getDirectoryPath(ce(X));return A===void 0||e.startsWith(ce(Y),A)||!!k&&e.startsWith(ce(k),A)}function s(Y,Z,ce,k,X){var A,y,C=e.hostUsesCaseSensitiveFileNames(Z),B=ce.autoImportFileExcludePatterns&&e.mapDefined(ce.autoImportFileExcludePatterns,function(ge){var Pe=e.getPatternFromSpec(ge,"","exclude");return Pe?e.getRegexFromPattern(Pe,C):void 0});D(Y.getTypeChecker(),Y.getSourceFiles(),B,function(ge,Pe){return X(ge,Pe,Y,!1)});var F=k&&((A=Z.getPackageJsonAutoImportProvider)===null||A===void 0?void 0:A.call(Z));if(F){var z=e.timestamp();D(F.getTypeChecker(),F.getSourceFiles(),B,function(ge,Pe){return X(ge,Pe,F,!0)}),(y=Z.log)===null||y===void 0||y.call(Z,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-z))}}e.forEachExternalModuleToImportFrom=s;function D(Y,Z,ce,k){for(var X,A=function(Pe){return ce==null?void 0:ce.some(function(fe){return fe.test(Pe)})},y=0,C=Y.getAmbientModules();y<C.length;y++){var B=C[y];!e.stringContains(B.name,"*")&&!(ce&&(!((X=B.declarations)===null||X===void 0)&&X.every(function(Pe){return A(Pe.getSourceFile().fileName)})))&&k(B,void 0)}for(var F=0,z=Z;F<z.length;F++){var ge=z[F];e.isExternalOrCommonJsModule(ge)&&!A(ge.fileName)&&k(Y.getMergedSymbol(ge.symbol),ge)}}function O(Y,Z,ce,k,X){var A,y,C,B,F,z=e.timestamp();(A=Z.getPackageJsonAutoImportProvider)===null||A===void 0||A.call(Z);var ge=((y=Z.getCachedExportInfoMap)===null||y===void 0?void 0:y.call(Z))||c({getCurrentProgram:function(){return ce},getPackageJsonAutoImportProvider:function(){var _e;return(_e=Z.getPackageJsonAutoImportProvider)===null||_e===void 0?void 0:_e.call(Z)},getGlobalTypingsCacheLocation:function(){var _e;return(_e=Z.getGlobalTypingsCacheLocation)===null||_e===void 0?void 0:_e.call(Z)}});if(ge.isUsableByFile(Y.path))return(C=Z.log)===null||C===void 0||C.call(Z,"getExportInfoMap: cache hit"),ge;(B=Z.log)===null||B===void 0||B.call(Z,"getExportInfoMap: cache miss or empty; calculating new results");var Pe=ce.getCompilerOptions(),fe=0;try{s(ce,Z,k,!0,function(_e,ne,oe,w){++fe%100===0&&(X==null||X.throwIfCancellationRequested());var re=new e.Map,M=oe.getTypeChecker(),U=W(_e,M,Pe);U&&E(U.symbol,M)&&ge.add(Y.path,U.symbol,U.exportKind===1?"default":"export=",_e,ne,U.exportKind,w,M),M.forEachExportAndPropertyOfModule(_e,function(H,q){H!==(U==null?void 0:U.symbol)&&E(H,M)&&e.addToSeen(re,q)&&ge.add(Y.path,H,q,_e,ne,0,w,M)})})}catch(_e){throw ge.clear(),_e}return(F=Z.log)===null||F===void 0||F.call(Z,"getExportInfoMap: done in ".concat(e.timestamp()-z," ms")),ge}e.getExportInfoMap=O;function W(Y,Z,ce){var k=v(Y,Z);if(k){var X=k.symbol,A=k.exportKind,y=S(X,Z,ce);return y&&n({symbol:X,exportKind:A},y)}}e.getDefaultLikeExportInfo=W;function E(Y,Z){return!Z.isUndefinedSymbol(Y)&&!Z.isUnknownSymbol(Y)&&!e.isKnownSymbol(Y)&&!e.isPrivateIdentifierSymbol(Y)}function v(Y,Z){var ce=Z.resolveExternalModuleSymbol(Y);if(ce!==Y)return{symbol:ce,exportKind:2};var k=Z.tryGetMemberInModuleExports("default",Y);if(k)return{symbol:k,exportKind:1}}function S(Y,Z,ce){var k=e.getLocalSymbolForExportDefault(Y);if(k)return{symbolForMeaning:k,name:k.name};var X=te(Y);if(X!==void 0)return{symbolForMeaning:Y,name:X};if(Y.flags&2097152){var A=Z.getImmediateAliasedSymbol(Y);if(A&&A.parent)return S(A,Z,ce)}return Y.escapedName!=="default"&&Y.escapedName!=="export="?{symbolForMeaning:Y,name:Y.getName()}:{symbolForMeaning:Y,name:e.getNameForExportedSymbol(Y,ce.target)}}function te(Y){return Y.declarations&&e.firstDefined(Y.declarations,function(Z){var ce;if(e.isExportAssignment(Z))return(ce=e.tryCast(e.skipOuterExpressions(Z.expression),e.isIdentifier))===null||ce===void 0?void 0:ce.text;if(e.isExportSpecifier(Z))return e.Debug.assert(Z.name.text==="default","Expected the specifier to be a default export"),Z.propertyName&&Z.propertyName.text})}})(h||(h={}));var h;(function(e){function c(){var F=e.createScanner(99,!1);function z(Pe,fe,_e){return D(ge(Pe,fe,_e),Pe)}function ge(Pe,fe,_e){var ne=0,oe=0,w=[],re=E(fe),M=re.prefix,U=re.pushTemplate;Pe=M+Pe;var H=M.length;U&&w.push(15),F.setText(Pe);var q=0,R=[],K=0;do{ne=F.scan(),e.isTrivia(ne)||(le(),oe=ne);var I=F.getTextPos();if(s(F.getTokenPos(),I,H,te(ne),R),I>=Pe.length){var he=T(F,ne,e.lastOrUndefined(w));he!==void 0&&(q=he)}}while(ne!==1);function le(){switch(ne){case 43:case 68:!P[oe]&&F.reScanSlashToken()===13&&(ne=13);break;case 29:oe===79&&K++;break;case 31:K>0&&K--;break;case 131:case 152:case 148:case 134:case 153:K>0&&!_e&&(ne=79);break;case 15:w.push(ne);break;case 18:w.length>0&&w.push(ne);break;case 19:if(w.length>0){var ee=e.lastOrUndefined(w);ee===15?(ne=F.reScanTemplateToken(!1),ne===17?w.pop():e.Debug.assertEqual(ne,16,"Should have been a template middle.")):(e.Debug.assertEqual(ee,18,"Should have been an open brace"),w.pop())}break;default:if(!e.isKeyword(ne))break;(oe===24||e.isKeyword(oe)&&e.isKeyword(ne)&&!W(oe,ne))&&(ne=79)}}return{endOfLineState:q,spans:R}}return{getClassificationsForLine:z,getEncodedLexicalClassifications:ge}}e.createClassifier=c;var P=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(F){return F},function(){return!0});function T(F,z,ge){switch(z){case 10:{if(!F.isUnterminated())return;for(var Pe=F.getTokenText(),fe=Pe.length-1,_e=0;Pe.charCodeAt(fe-_e)===92;)_e++;return _e&1?Pe.charCodeAt(0)===34?3:2:void 0}case 3:return F.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(z)){if(!F.isUnterminated())return;switch(z){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+z)}}return ge===15?6:void 0}}function s(F,z,ge,Pe,fe){if(Pe!==8){F===0&&ge>0&&(F+=ge);var _e=z-F;_e>0&&fe.push(F-ge,_e,Pe)}}function D(F,z){for(var ge=[],Pe=F.spans,fe=0,_e=0;_e<Pe.length;_e+=3){var ne=Pe[_e],oe=Pe[_e+1],w=Pe[_e+2];if(fe>=0){var re=ne-fe;re>0&&ge.push({length:re,classification:e.TokenClass.Whitespace})}ge.push({length:oe,classification:O(w)}),fe=ne+oe}var M=z.length-fe;return M>0&&ge.push({length:M,classification:e.TokenClass.Whitespace}),{entries:ge,finalLexState:F.endOfLineState}}function O(F){switch(F){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function W(F,z){if(!e.isAccessibilityModifier(F))return!0;switch(z){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}function E(F){switch(F){case 3:return{prefix:`"\\
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(F)}}function v(F){switch(F){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function S(F){switch(F){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function te(F){if(e.isKeyword(F))return 3;if(v(F)||S(F))return 5;if(F>=18&&F<=78)return 10;switch(F){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(F)?6:2}}function Y(F,z,ge,Pe,fe){return y(ce(F,z,ge,Pe,fe))}e.getSemanticClassifications=Y;function Z(F,z){switch(z){case 264:case 260:case 261:case 259:case 228:case 215:case 216:F.throwIfCancellationRequested()}}function ce(F,z,ge,Pe,fe){var _e=[];return ge.forEachChild(function oe(w){if(!(!w||!e.textSpanIntersectsWith(fe,w.pos,w.getFullWidth()))){if(Z(z,w.kind),e.isIdentifier(w)&&!e.nodeIsMissing(w)&&Pe.has(w.escapedText)){var re=F.getSymbolAtLocation(w),M=re&&k(re,e.getMeaningFromLocation(w),F);M&&ne(w.getStart(ge),w.getEnd(),M)}w.forEachChild(oe)}}),{spans:_e,endOfLineState:0};function ne(oe,w,re){var M=w-oe;e.Debug.assert(M>0,"Classification had non-positive length of ".concat(M)),_e.push(oe),_e.push(M),_e.push(re)}}e.getEncodedSemanticClassifications=ce;function k(F,z,ge){var Pe=F.getFlags();if(Pe&2885600)return Pe&32?11:Pe&384?12:Pe&524288?16:Pe&1536?z&4||z&1&&X(F)?14:void 0:Pe&2097152?k(ge.getAliasedSymbol(F),z,ge):z&2?Pe&64?13:Pe&262144?15:void 0:void 0}function X(F){return e.some(F.declarations,function(z){return e.isModuleDeclaration(z)&&e.getModuleInstanceState(z)===1})}function A(F){switch(F){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function y(F){e.Debug.assert(F.spans.length%3===0);for(var z=F.spans,ge=[],Pe=0;Pe<z.length;Pe+=3)ge.push({textSpan:e.createTextSpan(z[Pe],z[Pe+1]),classificationType:A(z[Pe+2])});return ge}function C(F,z,ge){return y(B(F,z,ge))}e.getSyntacticClassifications=C;function B(F,z,ge){var Pe=ge.start,fe=ge.length,_e=e.createScanner(99,!1,z.languageVariant,z.text),ne=e.createScanner(99,!1,z.languageVariant,z.text),oe=[];return J(z),{spans:oe,endOfLineState:0};function w(de,De,N){oe.push(de),oe.push(De),oe.push(N)}function re(de){for(_e.setTextPos(de.pos);;){var De=_e.getTextPos();if(!e.couldStartTrivia(z.text,De))return De;var N=_e.scan(),b=_e.getTextPos(),Q=b-De;if(!e.isTrivia(N))return De;switch(N){case 4:case 5:continue;case 2:case 3:M(de,N,De,Q),_e.setTextPos(b);continue;case 7:var G=z.text,ae=G.charCodeAt(De);if(ae===60||ae===62){w(De,Q,1);continue}e.Debug.assert(ae===124||ae===61),K(G,De,b);break;case 6:break;default:e.Debug.assertNever(N)}}}function M(de,De,N,b){if(De===3){var Q=e.parseIsolatedJSDocComment(z.text,N,b);if(Q&&Q.jsDoc){e.setParent(Q.jsDoc,de),H(Q.jsDoc);return}}else if(De===2&&q(N,b))return;U(N,b)}function U(de,De){w(de,De,1)}function H(de){var De,N,b,Q,G,ae,Te,Ne=de.pos;if(de.tags)for(var we=0,nr=de.tags;we<nr.length;we++){var tr=nr[we];tr.pos!==Ne&&U(Ne,tr.pos-Ne),w(tr.pos,1,10),w(tr.tagName.pos,tr.tagName.end-tr.tagName.pos,18),Ne=tr.tagName.end;var me=tr.tagName.end;switch(tr.kind){case 343:var He=tr;Ce(He),me=He.isNameFirst&&((De=He.typeExpression)===null||De===void 0?void 0:De.end)||He.name.end;break;case 350:var rr=tr;me=rr.isNameFirst&&((N=rr.typeExpression)===null||N===void 0?void 0:N.end)||rr.name.end;break;case 347:R(tr),Ne=tr.end,me=tr.typeParameters.end;break;case 348:var je=tr;me=((b=je.typeExpression)===null||b===void 0?void 0:b.kind)===312&&((Q=je.fullName)===null||Q===void 0?void 0:Q.end)||((G=je.typeExpression)===null||G===void 0?void 0:G.end)||me;break;case 341:me=tr.typeExpression.end;break;case 346:J(tr.typeExpression),Ne=tr.end,me=tr.typeExpression.end;break;case 345:case 342:me=tr.typeExpression.end;break;case 344:J(tr.typeExpression),Ne=tr.end,me=((ae=tr.typeExpression)===null||ae===void 0?void 0:ae.end)||me;break;case 349:me=((Te=tr.name)===null||Te===void 0?void 0:Te.end)||me;break;case 331:case 332:me=tr.class.end;break}typeof tr.comment=="object"?U(tr.comment.pos,tr.comment.end-tr.comment.pos):typeof tr.comment=="string"&&U(me,tr.end-me)}Ne!==de.end&&U(Ne,de.end-Ne);return;function Ce(Ae){Ae.isNameFirst&&(U(Ne,Ae.name.pos-Ne),w(Ae.name.pos,Ae.name.end-Ae.name.pos,17),Ne=Ae.name.end),Ae.typeExpression&&(U(Ne,Ae.typeExpression.pos-Ne),J(Ae.typeExpression),Ne=Ae.typeExpression.end),Ae.isNameFirst||(U(Ne,Ae.name.pos-Ne),w(Ae.name.pos,Ae.name.end-Ae.name.pos,17),Ne=Ae.name.end)}}function q(de,De){var N=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,b=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Q=z.text.substr(de,De),G=N.exec(Q);if(!G||!G[3]||!(G[3]in e.commentPragmas))return!1;var ae=de;U(ae,G[1].length),ae+=G[1].length,w(ae,G[2].length,10),ae+=G[2].length,w(ae,G[3].length,21),ae+=G[3].length;for(var Te=G[4],Ne=ae;;){var we=b.exec(Te);if(!we)break;var nr=ae+we.index+we[1].length;nr>Ne&&(U(Ne,nr-Ne),Ne=nr),w(Ne,we[2].length,22),Ne+=we[2].length,we[3].length&&(U(Ne,we[3].length),Ne+=we[3].length),w(Ne,we[4].length,5),Ne+=we[4].length,we[5].length&&(U(Ne,we[5].length),Ne+=we[5].length),w(Ne,we[6].length,24),Ne+=we[6].length}ae+=G[4].length,ae>Ne&&U(Ne,ae-Ne),G[5]&&(w(ae,G[5].length,10),ae+=G[5].length);var tr=de+De;return ae<tr&&U(ae,tr-ae),!0}function R(de){for(var De=0,N=de.getChildren();De<N.length;De++){var b=N[De];J(b)}}function K(de,De,N){var b;for(b=De;b<N&&!e.isLineBreak(de.charCodeAt(b));b++);for(w(De,b-De,1),ne.setTextPos(b);ne.getTextPos()<N;)I()}function I(){var de=ne.getTextPos(),De=ne.scan(),N=ne.getTextPos(),b=ee(De);b&&w(de,N-de,b)}function he(de){if(e.isJSDoc(de)||e.nodeIsMissing(de))return!0;var De=le(de);if(!e.isToken(de)&&de.kind!==11&&De===void 0)return!1;var N=de.kind===11?de.pos:re(de),b=de.end-N;if(e.Debug.assert(b>=0),b>0){var Q=De||ee(de.kind,de);Q&&w(N,b,Q)}return!0}function le(de){switch(de.parent&&de.parent.kind){case 283:if(de.parent.tagName===de)return 19;break;case 284:if(de.parent.tagName===de)return 20;break;case 282:if(de.parent.tagName===de)return 21;break;case 288:if(de.parent.name===de)return 22;break}}function ee(de,De){if(e.isKeyword(de))return 3;if((de===29||de===31)&&De&&e.getTypeArgumentOrTypeParameterList(De.parent))return 10;if(e.isPunctuation(de)){if(De){var N=De.parent;if(de===63&&(N.kind===257||N.kind===169||N.kind===166||N.kind===288)||N.kind===223||N.kind===221||N.kind===222||N.kind===224)return 5}return 10}else{if(de===8)return 4;if(de===9)return 25;if(de===10)return De&&De.parent.kind===288?24:6;if(de===13)return 6;if(e.isTemplateLiteralKind(de))return 6;if(de===11)return 23;if(de===79){if(De){switch(De.parent.kind){case 260:return De.parent.name===De?11:void 0;case 165:return De.parent.name===De?15:void 0;case 261:return De.parent.name===De?13:void 0;case 263:return De.parent.name===De?12:void 0;case 264:return De.parent.name===De?14:void 0;case 166:return De.parent.name===De?e.isThisIdentifier(De)?3:17:void 0}if(e.isConstTypeReference(De.parent))return 3}return 2}}}function J(de){if(de&&e.decodedTextSpanIntersectsWith(Pe,fe,de.pos,de.getFullWidth())){Z(F,de.kind);for(var De=0,N=de.getChildren(z);De<N.length;De++){var b=N[De];he(b)||J(b)}}}}e.getEncodedSyntacticClassifications=B})(h||(h={}));var h;(function(e){(function(c){(function(P){(function(k){k[k.typeOffset=8]="typeOffset",k[k.modifierMask=255]="modifierMask"})(P.TokenEncodingConsts||(P.TokenEncodingConsts={})),function(k){k[k.class=0]="class",k[k.enum=1]="enum",k[k.interface=2]="interface",k[k.namespace=3]="namespace",k[k.typeParameter=4]="typeParameter",k[k.type=5]="type",k[k.parameter=6]="parameter",k[k.variable=7]="variable",k[k.enumMember=8]="enumMember",k[k.property=9]="property",k[k.function=10]="function",k[k.member=11]="member"}(P.TokenType||(P.TokenType={})),function(k){k[k.declaration=0]="declaration",k[k.static=1]="static",k[k.async=2]="async",k[k.readonly=3]="readonly",k[k.defaultLibrary=4]="defaultLibrary",k[k.local=5]="local"}(P.TokenModifier||(P.TokenModifier={}));function T(k,X,A,y){var C=s(k,X,A,y);e.Debug.assert(C.spans.length%3===0);for(var B=C.spans,F=[],z=0;z<B.length;z+=3)F.push({textSpan:e.createTextSpan(B[z],B[z+1]),classificationType:B[z+2]});return F}P.getSemanticClassifications=T;function s(k,X,A,y){return{spans:D(k,A,y,X),endOfLineState:0}}P.getEncodedSemanticClassifications=s;function D(k,X,A,y){var C=[],B=function(F,z,ge){C.push(F.getStart(X),F.getWidth(X),(z+1<<8)+ge)};return k&&X&&O(k,X,A,B,y),C}function O(k,X,A,y,C){var B=k.getTypeChecker(),F=!1;function z(ge){switch(ge.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:C.throwIfCancellationRequested()}if(!(!ge||!e.textSpanIntersectsWith(A,ge.pos,ge.getFullWidth())||ge.getFullWidth()===0)){var Pe=F;if((e.isJsxElement(ge)||e.isJsxSelfClosingElement(ge))&&(F=!0),e.isJsxExpression(ge)&&(F=!1),e.isIdentifier(ge)&&!F&&!te(ge)&&!e.isInfinityOrNaNString(ge.escapedText)){var fe=B.getSymbolAtLocation(ge);if(fe){fe.flags&2097152&&(fe=B.getAliasedSymbol(fe));var _e=W(fe,e.getMeaningFromLocation(ge));if(_e!==void 0){var ne=0;if(ge.parent){var oe=e.isBindingElement(ge.parent)||ce.get(ge.parent.kind)===_e;oe&&ge.parent.name===ge&&(ne=1)}_e===6&&Z(ge)&&(_e=9),_e=E(B,ge,_e);var w=fe.valueDeclaration;if(w){var re=e.getCombinedModifierFlags(w),M=e.getCombinedNodeFlags(w);re&32&&(ne|=2),re&512&&(ne|=4),_e!==0&&_e!==2&&(re&64||M&2||fe.getFlags()&8)&&(ne|=8),(_e===7||_e===10)&&v(w,X)&&(ne|=32),k.isSourceFileDefaultLibrary(w.getSourceFile())&&(ne|=16)}else fe.declarations&&fe.declarations.some(function(U){return k.isSourceFileDefaultLibrary(U.getSourceFile())})&&(ne|=16);y(ge,_e,ne)}}}e.forEachChild(ge,z),F=Pe}}z(X)}function W(k,X){var A=k.getFlags();if(A&32)return 0;if(A&384)return 1;if(A&524288)return 5;if(A&64){if(X&2)return 2}else if(A&262144)return 4;var y=k.valueDeclaration||k.declarations&&k.declarations[0];return y&&e.isBindingElement(y)&&(y=S(y)),y&&ce.get(y.kind)}function E(k,X,A){if(A===7||A===9||A===6){var y=k.getTypeAtLocation(X);if(y){var C=function(B){return B(y)||y.isUnion()&&y.types.some(B)};if(A!==6&&C(function(B){return B.getConstructSignatures().length>0}))return 0;if(C(function(B){return B.getCallSignatures().length>0})&&!C(function(B){return B.getProperties().length>0})||Y(X))return A===9?11:10}}return A}function v(k,X){return e.isBindingElement(k)&&(k=S(k)),e.isVariableDeclaration(k)?(!e.isSourceFile(k.parent.parent.parent)||e.isCatchClause(k.parent))&&k.getSourceFile()===X:e.isFunctionDeclaration(k)?!e.isSourceFile(k.parent)&&k.getSourceFile()===X:!1}function S(k){for(;;)if(e.isBindingElement(k.parent.parent))k=k.parent.parent;else return k.parent.parent}function te(k){var X=k.parent;return X&&(e.isImportClause(X)||e.isImportSpecifier(X)||e.isNamespaceImport(X))}function Y(k){for(;Z(k);)k=k.parent;return e.isCallExpression(k.parent)&&k.parent.expression===k}function Z(k){return e.isQualifiedName(k.parent)&&k.parent.right===k||e.isPropertyAccessExpression(k.parent)&&k.parent.name===k}var ce=new e.Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])})(c.v2020||(c.v2020={}))})(e.classifier||(e.classifier={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T,s=(T={},T.directory=0,T.script=1,T["external module name"]=2,T);function D(){var me=new e.Map;function He(rr){var je=me.get(rr.name);(!je||s[je.kind]<s[rr.kind])&&me.set(rr.name,rr)}return{add:He,has:me.has.bind(me),values:me.values.bind(me)}}function O(me,He,rr,je,Ce,Ae,qe,xe){if(e.isInReferenceComment(me,He)){var L=b(me,He,je,Ce);return L&&S(L)}if(e.isInString(me,He,rr)){if(!rr||!e.isStringLiteralLike(rr))return;var L=Z(me,rr,He,Ae.getTypeChecker(),je,Ce,xe);return W(L,rr,me,Ce,Ae,qe,je,xe)}}P.getStringLiteralCompletions=O;function W(me,He,rr,je,Ce,Ae,qe,xe){if(me!==void 0){var L=e.createTextSpanFromStringLiteralLikeContent(He);switch(me.kind){case 0:return S(me.paths);case 1:{var ue=e.createSortedArray();return c.getCompletionEntriesFromSymbols(me.symbols,ue,He,He,rr,rr,je,Ce,99,Ae,4,xe,qe,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:me.hasIndexSignature,optionalReplacementSpan:L,entries:ue}}case 2:{var ue=me.types.map(function(Je){return{name:Je.value,kindModifiers:"",kind:"string",sortText:c.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(He)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:me.isNewIdentifier,optionalReplacementSpan:L,entries:ue}}default:return e.Debug.assertNever(me)}}}function E(me,He,rr,je,Ce,Ae,qe,xe,L){if(!(!je||!e.isStringLiteralLike(je))){var ue=Z(He,je,rr,Ce,Ae,qe,L);return ue&&v(me,je,ue,He,Ce,xe)}}P.getStringLiteralCompletionDetails=E;function v(me,He,rr,je,Ce,Ae){switch(rr.kind){case 0:{var qe=e.find(rr.paths,function(xe){return xe.name===me});return qe&&c.createCompletionDetails(me,te(qe.extension),qe.kind,[e.textPart(me)])}case 1:{var qe=e.find(rr.symbols,function(L){return L.name===me});return qe&&c.createCompletionDetailsForSymbol(qe,Ce,je,He,Ae)}case 2:return e.find(rr.types,function(xe){return xe.value===me})?c.createCompletionDetails(me,"","type",[e.textPart(me)]):void 0;default:return e.Debug.assertNever(rr)}}function S(me){var He=!1,rr=!0,je=me.map(function(Ce){var Ae=Ce.name,qe=Ce.kind,xe=Ce.span,L=Ce.extension;return{name:Ae,kind:qe,kindModifiers:te(L),sortText:c.SortText.LocationPriority,replacementSpan:xe}});return{isGlobalCompletion:He,isMemberCompletion:!1,isNewIdentifierLocation:rr,entries:je}}function te(me){switch(me){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(me)}}var Y;(function(me){me[me.Paths=0]="Paths",me[me.Properties=1]="Properties",me[me.Types=2]="Types"})(Y||(Y={}));function Z(me,He,rr,je,Ce,Ae,qe){var xe=ce(He.parent);switch(xe.kind){case 198:{var L=ce(xe.parent);switch(L.kind){case 230:case 180:{var ue=e.findAncestor(xe,function(or){return or.parent===L});return ue?{kind:2,types:C(je.getTypeArgumentConstraint(ue)),isNewIdentifier:!1}:void 0}case 196:var Ue=L,Je=Ue.indexType,lr=Ue.objectType;return e.rangeContainsPosition(Je,rr)?A(je.getTypeFromTypeNode(lr)):void 0;case 202:return{kind:0,paths:ge(me,He,Ce,Ae,je,qe)};case 189:{if(!e.isTypeReferenceNode(L.parent))return;var mr=k(L,xe),Hr=C(je.getTypeArgumentConstraint(L)).filter(function(or){return!e.contains(mr,or.value)});return{kind:2,types:Hr,isNewIdentifier:!1}}default:return}}case 299:return e.isObjectLiteralExpression(xe.parent)&&xe.name===He?y(je,xe.parent):ut();case 209:{var wr=xe,Oe=wr.expression,Ze=wr.argumentExpression;return He===e.skipParentheses(Ze)?A(je.getTypeAtLocation(Oe)):void 0}case 210:case 211:case 288:if(!tr(He)&&!e.isImportCall(xe)){var tt=e.SignatureHelp.getArgumentInfoForCompletions(xe.kind===288?xe.parent:He,rr,me);return tt&&X(tt.invocation,He,tt,je)||ut()}case 269:case 275:case 280:return{kind:0,paths:ge(me,He,Ce,Ae,je,qe)};default:return ut()}function ut(){return{kind:2,types:C(e.getContextualTypeFromParent(He,je)),isNewIdentifier:!1}}}function ce(me){switch(me.kind){case 193:return e.walkUpParenthesizedTypes(me);case 214:return e.walkUpParenthesizedExpressions(me);default:return me}}function k(me,He){return e.mapDefined(me.types,function(rr){return rr!==He&&e.isLiteralTypeNode(rr)&&e.isStringLiteral(rr.literal)?rr.literal.text:void 0})}function X(me,He,rr,je){var Ce=!1,Ae=new e.Map,qe=[],xe=e.isJsxOpeningLikeElement(me)?e.Debug.checkDefined(e.findAncestor(He.parent,e.isJsxAttribute)):He;je.getResolvedSignatureForStringLiteralCompletions(me,xe,qe);var L=e.flatMap(qe,function(ue){if(!(!e.signatureHasRestParameter(ue)&&rr.argumentCount>ue.parameters.length)){var Ue=ue.getTypeParameterAtPosition(rr.argumentIndex);if(e.isJsxOpeningLikeElement(me)){var Je=je.getTypeOfPropertyOfType(Ue,xe.name.text);Je&&(Ue=Je)}return Ce=Ce||!!(Ue.flags&4),C(Ue,Ae)}});return e.length(L)?{kind:2,types:L,isNewIdentifier:Ce}:void 0}function A(me){return me&&{kind:1,symbols:e.filter(me.getApparentProperties(),function(He){return!(He.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(He.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(me)}}function y(me,He){var rr=me.getContextualType(He);if(rr){var je=me.getContextualType(He,4),Ce=c.getPropertiesForObjectExpression(rr,je,He,me);return{kind:1,symbols:Ce,hasIndexSignature:e.hasIndexSignature(rr)}}}function C(me,He){return He===void 0&&(He=new e.Map),me?(me=e.skipConstraint(me),me.isUnion()?e.flatMap(me.types,function(rr){return C(rr,He)}):me.isStringLiteral()&&!(me.flags&1024)&&e.addToSeen(He,me.value)?[me]:e.emptyArray):e.emptyArray}function B(me,He,rr){return{name:me,kind:He,extension:rr}}function F(me){return B(me,"directory",void 0)}function z(me,He,rr){var je=ae(me,He),Ce=me.length===0?void 0:e.createTextSpan(He,me.length);return rr.map(function(Ae){var qe=Ae.name,xe=Ae.kind,L=Ae.extension;return Math.max(qe.indexOf(e.directorySeparator),qe.indexOf(e.altDirectorySeparator))!==-1?{name:qe,kind:xe,extension:L,span:Ce}:{name:qe,kind:xe,extension:L,span:je}})}function ge(me,He,rr,je,Ce,Ae){return z(He.text,He.getStart(me)+1,Pe(me,He,rr,je,Ce,Ae))}function Pe(me,He,rr,je,Ce,Ae){var qe=e.normalizeSlashes(He.text),xe=e.isStringLiteralLike(He)?e.getModeForUsageLocation(me,He):void 0,L=me.path,ue=e.getDirectoryPath(L);return Te(qe)||!rr.baseUrl&&(e.isRootedDiskPath(qe)||e.isUrl(qe))?_e(qe,ue,rr,je,L,Ue()):I(qe,ue,xe,rr,je,Ue(),Ce);function Ue(){var Je=e.isStringLiteralLike(He)?e.getModeForUsageLocation(me,He):void 0;return Ae.importModuleSpecifierEnding==="js"||Je===e.ModuleKind.ESNext?2:0}}function fe(me,He){return He===void 0&&(He=0),{extensions:e.flatten(w(me)),includeExtensionsOption:He}}function _e(me,He,rr,je,Ce,Ae){var qe=fe(rr,Ae);return rr.rootDirs?M(rr.rootDirs,me,He,qe,rr,je,Ce):e.arrayFrom(H(me,He,qe,je,Ce).values())}function ne(me){return e.getEmitModuleResolutionKind(me)===e.ModuleResolutionKind.NodeJs||e.getEmitModuleResolutionKind(me)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(me)===e.ModuleResolutionKind.NodeNext}function oe(me){return e.getEmitModuleResolutionKind(me)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(me)===e.ModuleResolutionKind.NodeNext}function w(me){var He=e.getSupportedExtensions(me);return ne(me)?e.getSupportedExtensionsWithJsonIfResolveJsonModule(me,He):He}function re(me,He,rr,je){me=me.map(function(Ae){return e.normalizePath(e.isRootedDiskPath(Ae)?Ae:e.combinePaths(He,Ae))});var Ce=e.firstDefined(me,function(Ae){return e.containsPath(Ae,rr,He,je)?rr.substr(Ae.length):void 0});return e.deduplicate(t(t([],me.map(function(Ae){return e.combinePaths(Ae,Ce)}),!0),[rr],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function M(me,He,rr,je,Ce,Ae,qe){var xe=Ce.project||Ae.getCurrentDirectory(),L=!(Ae.useCaseSensitiveFileNames&&Ae.useCaseSensitiveFileNames()),ue=re(me,xe,rr,L);return e.flatMap(ue,function(Ue){return e.arrayFrom(H(He,Ue,je,Ae,qe).values())})}var U;(function(me){me[me.Exclude=0]="Exclude",me[me.Include=1]="Include",me[me.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(U||(U={}));function H(me,He,rr,je,Ce,Ae){var qe;Ae===void 0&&(Ae=D()),me===void 0&&(me=""),me=e.normalizeSlashes(me),e.hasTrailingDirectorySeparator(me)||(me=e.getDirectoryPath(me)),me===""&&(me="."+e.directorySeparator),me=e.ensureTrailingDirectorySeparator(me);var xe=e.resolvePath(He,me),L=e.hasTrailingDirectorySeparator(xe)?xe:e.getDirectoryPath(xe),ue=e.findPackageJson(L,je);if(ue){var Ue=e.readJson(ue,je),Je=Ue.typesVersions;if(typeof Je=="object"){var lr=(qe=e.getPackageJsonTypesVersionsPaths(Je))===null||qe===void 0?void 0:qe.paths;if(lr){var mr=e.getDirectoryPath(ue),Hr=xe.slice(e.ensureTrailingDirectorySeparator(mr).length);if(R(Ae,Hr,mr,rr,je,lr))return Ae}}}var wr=!(je.useCaseSensitiveFileNames&&je.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(je,L))return Ae;var Oe=e.tryReadDirectory(je,L,rr.extensions,void 0,["./*"]);if(Oe)for(var Ze=0,tt=Oe;Ze<tt.length;Ze++){var ut=tt[Ze];if(ut=e.normalizePath(ut),!(Ce&&e.comparePaths(ut,Ce,He,wr)===0)){var or=q(e.getBaseFileName(ut),je.getCompilationSettings(),rr.includeExtensionsOption),qr=or.name,Rr=or.extension;Ae.add(B(qr,"script",Rr))}}var zr=e.tryGetDirectories(je,L);if(zr)for(var Fr=0,_t=zr;Fr<_t.length;Fr++){var Ct=_t[Fr],yt=e.getBaseFileName(e.normalizePath(Ct));yt!=="@types"&&Ae.add(F(yt))}return Ae}function q(me,He,rr){var je=e.moduleSpecifiers.tryGetJSExtensionForFile(me,He);return rr===0&&!e.fileExtensionIsOneOf(me,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?{name:e.removeFileExtension(me),extension:e.tryGetExtensionFromPath(me)}:(e.fileExtensionIsOneOf(me,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||rr===2)&&je?{name:e.changeExtension(me,je),extension:je}:{name:me,extension:e.tryGetExtensionFromPath(me)}}function R(me,He,rr,je,Ce,Ae){var qe=function(L){return Ae[L]},xe=function(L,ue){var Ue=e.tryParsePattern(L),Je=e.tryParsePattern(ue),lr=typeof Ue=="object"?Ue.prefix.length:L.length,mr=typeof Je=="object"?Je.prefix.length:ue.length;return e.compareValues(mr,lr)};return K(me,He,rr,je,Ce,e.getOwnKeys(Ae),qe,xe)}function K(me,He,rr,je,Ce,Ae,qe,xe){for(var L=[],ue,Ue=0,Je=Ae;Ue<Je.length;Ue++){var lr=Je[Ue];if(lr!=="."){var mr=lr.replace(/^\.\//,""),Hr=qe(lr);if(Hr){var wr=e.tryParsePattern(mr);if(!wr)continue;var Oe=typeof wr=="object"&&e.isPatternMatch(wr,He),Ze=Oe&&(ue===void 0||xe(lr,ue)===-1);Ze&&(ue=lr,L=L.filter(function(tt){return!tt.matchedPattern})),(typeof wr=="string"||ue===void 0||xe(lr,ue)!==1)&&L.push({matchedPattern:Oe,results:ee(mr,Hr,He,rr,je,Ce).map(function(tt){var ut=tt.name,or=tt.kind,qr=tt.extension;return B(ut,or,qr)})})}}}return L.forEach(function(tt){return tt.results.forEach(function(ut){return me.add(ut)})}),ue!==void 0}function I(me,He,rr,je,Ce,Ae,qe){var xe=je.baseUrl,L=je.paths,ue=D(),Ue=fe(je,Ae);if(xe){var Je=je.project||Ce.getCurrentDirectory(),lr=e.normalizePath(e.combinePaths(Je,xe));H(me,lr,Ue,Ce,void 0,ue),L&&R(ue,me,lr,Ue,Ce,L)}for(var mr=le(me),Hr=0,wr=N(me,mr,qe);Hr<wr.length;Hr++){var Oe=wr[Hr];ue.add(B(Oe,"external module name",void 0))}if(Q(Ce,je,He,mr,Ue,ue),ne(je)){var Ze=!1;if(mr===void 0)for(var tt=0,ut=G(Ce,He);tt<ut.length;tt++){var or=ut[tt],qr=B(or,"external module name",void 0);ue.has(qr.name)||(Ze=!0,ue.add(qr))}if(!Ze){var Rr=function(Fr){var _t=e.combinePaths(Fr,"node_modules");e.tryDirectoryExists(Ce,_t)&&H(me,_t,Ue,Ce,void 0,ue)};if(mr&&oe(je)){var zr=Rr;Rr=function(Fr){var _t=e.getPathComponents(me);_t.shift();var Ct=_t.shift();if(!Ct)return zr(Fr);if(e.startsWith(Ct,"@")){var yt=_t.shift();if(!yt)return zr(Fr);Ct=e.combinePaths(Ct,yt)}var Fe=e.combinePaths(Fr,"node_modules",Ct),vr=e.combinePaths(Fe,"package.json");if(e.tryFileExists(Ce,vr)){var Le=e.readJson(vr,Ce),cr=Le.exports;if(cr){if(typeof cr!="object"||cr===null)return;var $r=e.getOwnKeys(cr),Re=_t.join("/")+(_t.length&&e.hasTrailingDirectorySeparator(me)?"/":""),xr=rr===e.ModuleKind.ESNext?["node","import","types"]:["node","require","types"];K(ue,Re,Fe,Ue,Ce,$r,function(Br){return e.singleElementArray(he(cr[Br],xr))},e.comparePatternKeys);return}}return zr(Fr)}}e.forEachAncestorDirectory(He,Rr)}}return e.arrayFrom(ue.values())}function he(me,He){if(typeof me=="string")return me;if(me&&typeof me=="object"&&!e.isArray(me)){for(var rr in me)if(rr==="default"||He.indexOf(rr)>-1||e.isApplicableVersionedTypesKey(He,rr)){var je=me[rr];return he(je,He)}}}function le(me){return nr(me)?e.hasTrailingDirectorySeparator(me)?me:e.getDirectoryPath(me):void 0}function ee(me,He,rr,je,Ce,Ae){if(!e.endsWith(me,"*"))return e.stringContains(me,"*")?e.emptyArray:ue(me,"script");var qe=me.slice(0,me.length-1),xe=e.tryRemovePrefix(rr,qe);if(xe===void 0){var L=me[me.length-2]==="/";return L?ue(qe,"directory"):e.flatMap(He,function(Ue){var Je;return(Je=J("",je,Ue,Ce,Ae))===null||Je===void 0?void 0:Je.map(function(lr){var mr=lr.name,Hr=d(lr,["name"]);return n({name:qe+mr},Hr)})})}return e.flatMap(He,function(Ue){return J(xe,je,Ue,Ce,Ae)});function ue(Ue,Je){return e.startsWith(Ue,rr)?[{name:e.removeTrailingDirectorySeparator(Ue),kind:Je,extension:void 0}]:e.emptyArray}}function J(me,He,rr,je,Ce){if(!Ce.readDirectory)return;var Ae=e.tryParsePattern(rr);if(Ae===void 0||e.isString(Ae))return;var qe=e.resolvePath(Ae.prefix),xe=e.hasTrailingDirectorySeparator(Ae.prefix)?qe:e.getDirectoryPath(qe),L=e.hasTrailingDirectorySeparator(Ae.prefix)?"":e.getBaseFileName(qe),ue=nr(me),Ue=ue?e.hasTrailingDirectorySeparator(me)?me:e.getDirectoryPath(me):void 0,Je=ue?e.combinePaths(xe,L+Ue):xe,lr=e.normalizePath(Ae.suffix),mr=e.normalizePath(e.combinePaths(He,Je)),Hr=ue?mr:e.ensureTrailingDirectorySeparator(mr)+L,wr=lr?"**/*"+lr:"./*",Oe=e.mapDefined(e.tryReadDirectory(Ce,mr,je.extensions,void 0,[wr]),function(ut){var or=tt(ut);if(or){if(nr(or))return F(e.getPathComponents(De(or))[1]);var qr=q(or,Ce.getCompilationSettings(),je.includeExtensionsOption),Rr=qr.name,zr=qr.extension;return B(Rr,"script",zr)}}),Ze=lr?e.emptyArray:e.mapDefined(e.tryGetDirectories(Ce,mr),function(ut){return ut==="node_modules"?void 0:F(ut)});return t(t([],Oe,!0),Ze,!0);function tt(ut){var or=de(e.normalizePath(ut),Hr,lr);return or===void 0?void 0:De(or)}}function de(me,He,rr){return e.startsWith(me,He)&&e.endsWith(me,rr)?me.slice(He.length,me.length-rr.length):void 0}function De(me){return me[0]===e.directorySeparator?me.slice(1):me}function N(me,He,rr){var je=rr.getAmbientModules().map(function(qe){return e.stripQuotes(qe.name)}),Ce=je.filter(function(qe){return e.startsWith(qe,me)});if(He!==void 0){var Ae=e.ensureTrailingDirectorySeparator(He);return Ce.map(function(qe){return e.removePrefix(qe,Ae)})}return Ce}function b(me,He,rr,je){var Ce=e.getTokenAtPosition(me,He),Ae=e.getLeadingCommentRanges(me.text,Ce.pos),qe=Ae&&e.find(Ae,function(Hr){return He>=Hr.pos&&He<=Hr.end});if(qe){var xe=me.text.slice(qe.pos,He),L=Ne.exec(xe);if(L){var ue=L[1],Ue=L[2],Je=L[3],lr=e.getDirectoryPath(me.path),mr=Ue==="path"?H(Je,lr,fe(rr,1),je,me.path):Ue==="types"?Q(je,rr,lr,le(Je),fe(rr)):e.Debug.fail();return z(Je,qe.pos+ue.length,e.arrayFrom(mr.values()))}}}function Q(me,He,rr,je,Ce,Ae){Ae===void 0&&(Ae=D());for(var qe=new e.Map,xe=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(He,me)})||e.emptyArray,L=0,ue=xe;L<ue.length;L++){var Ue=ue[L];wr(Ue)}for(var Je=0,lr=e.findPackageJsons(rr,me);Je<lr.length;Je++){var mr=lr[Je],Hr=e.combinePaths(e.getDirectoryPath(mr),"node_modules/@types");wr(Hr)}return Ae;function wr(Oe){if(e.tryDirectoryExists(me,Oe))for(var Ze=0,tt=e.tryGetDirectories(me,Oe);Ze<tt.length;Ze++){var ut=tt[Ze],or=e.unmangleScopedPackageName(ut);if(!(He.types&&!e.contains(He.types,or)))if(je===void 0)qe.has(or)||(Ae.add(B(or,"external module name",void 0)),qe.set(or,!0));else{var qr=e.combinePaths(Oe,ut),Rr=e.tryRemoveDirectoryPrefix(je,or,e.hostGetCanonicalFileName(me));Rr!==void 0&&H(Rr,qr,Ce,me,void 0,Ae)}}}}function G(me,He){if(!me.readFile||!me.fileExists)return e.emptyArray;for(var rr=[],je=0,Ce=e.findPackageJsons(He,me);je<Ce.length;je++)for(var Ae=Ce[je],qe=e.readJson(Ae,me),xe=0,L=we;xe<L.length;xe++){var ue=L[xe],Ue=qe[ue];if(Ue)for(var Je in Ue)e.hasProperty(Ue,Je)&&!e.startsWith(Je,"@types/")&&rr.push(Je)}return rr}function ae(me,He){var rr=Math.max(me.lastIndexOf(e.directorySeparator),me.lastIndexOf(e.altDirectorySeparator)),je=rr!==-1?rr+1:0,Ce=me.length-je;return Ce===0||e.isIdentifierText(me.substr(je,Ce),99)?void 0:e.createTextSpan(He+je,Ce)}function Te(me){if(me&&me.length>=2&&me.charCodeAt(0)===46){var He=me.length>=3&&me.charCodeAt(1)===46?2:1,rr=me.charCodeAt(He);return rr===47||rr===92}return!1}var Ne=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,we=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function nr(me){return e.stringContains(me,e.directorySeparator)}function tr(me){return e.isCallExpression(me.parent)&&e.firstOrUndefined(me.parent.arguments)===me&&e.isIdentifier(me.parent.expression)&&me.parent.expression.escapedText==="require"}})(c.StringCompletions||(c.StringCompletions={}))})(e.Completions||(e.Completions={}))})(h||(h={}));var h;(function(e){(function(c){c.moduleSpecifierResolutionLimit=100,c.moduleSpecifierResolutionCacheAttemptLimit=1e3,c.SortText={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:function(ye){return"z"+ye},ObjectLiteralProperty:function(ye,Ie){return"".concat(ye,"\0").concat(Ie,"\0")},SortBelow:function(ye){return ye+"1"}};var P;(function(ye){ye.ThisProperty="ThisProperty/",ye.ClassMemberSnippet="ClassMemberSnippet/",ye.TypeOnlyAlias="TypeOnlyAlias/",ye.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/"})(P=c.CompletionSource||(c.CompletionSource={}));var T;(function(ye){ye[ye.ThisType=1]="ThisType",ye[ye.SymbolMember=2]="SymbolMember",ye[ye.Export=4]="Export",ye[ye.Promise=8]="Promise",ye[ye.Nullable=16]="Nullable",ye[ye.ResolvedExport=32]="ResolvedExport",ye[ye.TypeOnlyAlias=64]="TypeOnlyAlias",ye[ye.ObjectLiteralMethod=128]="ObjectLiteralMethod",ye[ye.SymbolMemberNoExport=2]="SymbolMemberNoExport",ye[ye.SymbolMemberExport=6]="SymbolMemberExport"})(T||(T={}));function s(ye){return!!(ye.kind&1)}function D(ye){return!!(ye.kind&2)}function O(ye){return!!(ye&&ye.kind&4)}function W(ye){return!!(ye&&ye.kind===32)}function E(ye){return O(ye)||W(ye)}function v(ye){return(O(ye)||W(ye))&&!!ye.isFromPackageJson}function S(ye){return!!(ye.kind&8)}function te(ye){return!!(ye.kind&16)}function Y(ye){return!!(ye&&ye.kind&64)}function Z(ye){return!!(ye&&ye.kind&128)}var ce;(function(ye){ye[ye.None=0]="None",ye[ye.All=1]="All",ye[ye.ClassElementKeywords=2]="ClassElementKeywords",ye[ye.InterfaceElementKeywords=3]="InterfaceElementKeywords",ye[ye.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",ye[ye.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",ye[ye.TypeAssertionKeywords=6]="TypeAssertionKeywords",ye[ye.TypeKeywords=7]="TypeKeywords",ye[ye.TypeKeyword=8]="TypeKeyword",ye[ye.Last=8]="Last"})(ce||(ce={}));var k;(function(ye){ye[ye.Continue=0]="Continue",ye[ye.Success=1]="Success",ye[ye.Fail=2]="Fail"})(k||(k={}));function X(ye,Ie,We,dr,ar,Sr,Or,Ge,ur){var Lr,Ar,rt,Et=e.timestamp(),St=Or||e.moduleResolutionRespectsExports(e.getEmitModuleResolutionKind(dr.getCompilerOptions())),Pt=!1,pt=0,Ft=0,ht=0,Yt=0,un=ur({tryResolve:Bn,skippedAny:function(){return Pt},resolvedAny:function(){return Ft>0},resolvedBeyondLimit:function(){return Ft>c.moduleSpecifierResolutionLimit}}),wn=Yt?" (".concat((ht/Yt*100).toFixed(1),"% hit rate)"):"";return(Lr=Ie.log)===null||Lr===void 0||Lr.call(Ie,"".concat(ye,": resolved ").concat(Ft," module specifiers, plus ").concat(pt," ambient and ").concat(ht," from cache").concat(wn)),(Ar=Ie.log)===null||Ar===void 0||Ar.call(Ie,"".concat(ye,": response is ").concat(Pt?"incomplete":"complete")),(rt=Ie.log)===null||rt===void 0||rt.call(Ie,"".concat(ye,": ").concat(e.timestamp()-Et)),un;function Bn(yn,Tn,An){if(An){var ii=We.getModuleSpecifierForBestExportInfo(yn,Tn,ar,Ge);return ii&&pt++,ii||"failed"}var Xe=St||Sr.allowIncompleteCompletions&&Ft<c.moduleSpecifierResolutionLimit,hr=!Xe&&Sr.allowIncompleteCompletions&&Yt<c.moduleSpecifierResolutionCacheAttemptLimit,at=Xe||hr?We.getModuleSpecifierForBestExportInfo(yn,Tn,ar,Ge,hr):void 0;return(!Xe&&!hr||hr&&!at)&&(Pt=!0),Ft+=(at==null?void 0:at.computedWithoutCacheCount)||0,ht+=yn.length-((at==null?void 0:at.computedWithoutCacheCount)||0),hr&&Yt++,at||(St?"failed":"skipped")}}function A(ye,Ie,We,dr,ar,Sr,Or,Ge,ur,Lr){var Ar,rt=Je(ar,dr).previousToken;if(!(Or&&!e.isInString(dr,ar,rt)&&!Re(dr,Or,rt,ar))){if(Or===" ")return Sr.includeCompletionsForImportStatements&&Sr.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var Et=Ie.getCompilerOptions(),St=Sr.allowIncompleteCompletions?(Ar=ye.getIncompleteCompletionsCache)===null||Ar===void 0?void 0:Ar.call(ye):void 0;if(St&&Ge===3&&rt&&e.isIdentifier(rt)){var Pt=B(St,dr,rt,Ie,ye,Sr,ur);if(Pt)return Pt}else St==null||St.clear();var pt=c.StringCompletions.getStringLiteralCompletions(dr,ar,rt,Et,ye,Ie,We,Sr);if(pt)return pt;if(rt&&e.isBreakOrContinueStatement(rt.parent)&&(rt.kind===81||rt.kind===86||rt.kind===79))return Te(rt.parent);var Ft=ue(Ie,We,dr,Et,ar,Sr,void 0,ye,Lr,ur);if(Ft)switch(Ft.kind){case 0:var ht=ne(dr,ye,Ie,Et,We,Ft,Sr,Lr,ar);return ht!=null&&ht.isIncomplete&&(St==null||St.set(ht)),ht;case 1:return F(e.JsDoc.getJSDocTagNameCompletions());case 2:return F(e.JsDoc.getJSDocTagCompletions());case 3:return F(e.JsDoc.getJSDocParameterNameCompletions(Ft.tag));case 4:return ge(Ft.keywordCompletions,Ft.isNewIdentifierLocation);default:return e.Debug.assertNever(Ft)}}}c.getCompletionsAtPosition=A;function y(ye,Ie){var We,dr,ar=e.compareStringsCaseSensitiveUI(ye.sortText,Ie.sortText);return ar===0&&(ar=e.compareStringsCaseSensitiveUI(ye.name,Ie.name)),ar===0&&(!((We=ye.data)===null||We===void 0)&&We.moduleSpecifier)&&(!((dr=Ie.data)===null||dr===void 0)&&dr.moduleSpecifier)&&(ar=e.compareNumberOfDirectorySeparators(ye.data.moduleSpecifier,Ie.data.moduleSpecifier)),ar===0?-1:ar}function C(ye){return!!(ye!=null&&ye.moduleSpecifier)}function B(ye,Ie,We,dr,ar,Sr,Or){var Ge=ye.get();if(Ge){var ur=We.text.toLowerCase(),Lr=e.getExportInfoMap(Ie,ar,dr,Sr,Or),Ar=X("continuePreviousIncompleteResponse",ar,e.codefix.createImportSpecifierResolver(Ie,dr,ar,Sr),dr,We.getStart(),Sr,!1,e.isValidTypeOnlyAliasUseSite(We),function(rt){var Et=e.mapDefined(Ge.entries,function(St){var Pt;if(!St.hasAction||!St.source||!St.data||C(St.data))return St;if(Ir(St.name,ur)){var pt=e.Debug.checkDefined(lr(St.name,St.data,dr,ar)).origin,Ft=Lr.get(Ie.path,St.data.exportMapKey),ht=Ft&&rt.tryResolve(Ft,St.name,!e.isExternalModuleNameRelative(e.stripQuotes(pt.moduleSymbol.name)));if(ht==="skipped")return St;if(!ht||ht==="failed"){(Pt=ar.log)===null||Pt===void 0||Pt.call(ar,"Unexpected failure resolving auto import for '".concat(St.name,"' from '").concat(St.source,"'"));return}var Yt=n(n({},pt),{kind:32,moduleSpecifier:ht.moduleSpecifier});return St.data=de(Yt),St.source=G(Yt),St.sourceDisplay=[e.textPart(Yt.moduleSpecifier)],St}});return rt.skippedAny()||(Ge.isIncomplete=void 0),Et});return Ge.entries=Ar,Ge.flags=(Ge.flags||0)|4,Ge}}function F(ye){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:ye}}function z(ye){return{name:e.tokenToString(ye),kind:"keyword",kindModifiers:"",sortText:c.SortText.GlobalsOrKeywords}}function ge(ye,Ie){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:Ie,entries:ye.slice()}}function Pe(ye,Ie,We){return{kind:4,keywordCompletions:Oe(ye,Ie),isNewIdentifierLocation:We}}function fe(ye){switch(ye){case 154:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function _e(ye){return(ye==null?void 0:ye.kind)===79?e.createTextSpanFromNode(ye):void 0}function ne(ye,Ie,We,dr,ar,Sr,Or,Ge,ur){var Lr=Sr.symbols,Ar=Sr.contextToken,rt=Sr.completionKind,Et=Sr.isInSnippetScope,St=Sr.isNewIdentifierLocation,Pt=Sr.location,pt=Sr.propertyAccessToConvert,Ft=Sr.keywordFilters,ht=Sr.literals,Yt=Sr.symbolToOriginInfoMap,un=Sr.recommendedCompletion,wn=Sr.isJsxInitializer,Bn=Sr.isTypeOnlyLocation,yn=Sr.isJsxIdentifierExpected,Tn=Sr.isRightOfOpenTag,An=Sr.importStatementCompletion,ii=Sr.insideJsDocTagTypeExpression,Xe=Sr.symbolToSortTextMap,hr=Sr.hasUnresolvedAutoImports;if(e.getLanguageVariant(ye.scriptKind)===1){var at=re(Pt,ye);if(at)return at}var Qe=e.createSortedArray(),Qt=oe(ye,dr);if(!(Qt&&!St&&(!Lr||Lr.length===0)&&Ft===0)){var Zt=ae(Lr,Qe,void 0,Ar,Pt,ye,Ie,We,e.getEmitScriptTarget(dr),ar,rt,Or,dr,Ge,Bn,pt,yn,wn,An,un,Yt,Xe,yn,Tn);if(Ft!==0)for(var Tt=0,gt=Oe(Ft,!ii&&e.isSourceFileJS(ye));Tt<gt.length;Tt++){var kt=gt[Tt];(Bn&&e.isTypeKeyword(e.stringToToken(kt.name))||!Zt.has(kt.name))&&(Zt.add(kt.name),e.insertSorted(Qe,kt,y,!0))}for(var Lt=0,$e=zr(Ar,ur);Lt<$e.length;Lt++){var kt=$e[Lt];Zt.has(kt.name)||(Zt.add(kt.name),e.insertSorted(Qe,kt,y,!0))}for(var et=0,It=ht;et<It.length;et++){var xn=It[et],pi=H(ye,Or,xn);Zt.add(pi.name),e.insertSorted(Qe,pi,y,!0)}return Qt||M(ye,Pt.pos,Zt,e.getEmitScriptTarget(dr),Qe),{flags:Sr.flags,isGlobalCompletion:Et,isIncomplete:Or.allowIncompleteCompletions&&hr?!0:void 0,isMemberCompletion:w(rt),isNewIdentifierLocation:St,optionalReplacementSpan:_e(Pt),entries:Qe}}}function oe(ye,Ie){return!e.isSourceFileJS(ye)||!!e.isCheckJsEnabledForFile(ye,Ie)}function w(ye){switch(ye){case 0:case 3:case 2:return!0;default:return!1}}function re(ye,Ie){var We=e.findAncestor(ye,function(Lr){switch(Lr.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}});if(We){var dr=!!e.findChildOfKind(We,31,Ie),ar=We.parent.openingElement.tagName,Sr=ar.getText(Ie),Or=Sr+(dr?"":">"),Ge=e.createTextSpanFromNode(We.tagName),ur={name:Or,kind:"class",kindModifiers:void 0,sortText:c.SortText.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Ge,entries:[ur]}}}function M(ye,Ie,We,dr,ar){e.getNameTable(ye).forEach(function(Sr,Or){if(Sr!==Ie){var Ge=e.unescapeLeadingUnderscores(Or);!We.has(Ge)&&e.isIdentifierText(Ge,dr)&&(We.add(Ge),e.insertSorted(ar,{name:Ge,kind:"warning",kindModifiers:"",sortText:c.SortText.JavascriptIdentifiers,isFromUncheckedFile:!0},y))}})}function U(ye,Ie,We){return typeof We=="object"?e.pseudoBigIntToString(We)+"n":e.isString(We)?e.quote(ye,Ie,We):JSON.stringify(We)}function H(ye,Ie,We){return{name:U(ye,Ie,We),kind:"string",kindModifiers:"",sortText:c.SortText.LocationPriority}}function q(ye,Ie,We,dr,ar,Sr,Or,Ge,ur,Lr,Ar,rt,Et,St,Pt,pt,Ft,ht,Yt,un,wn,Bn){var yn,Tn,An,ii=e.getReplacementSpanForContextToken(We),Xe,hr,at=G(Ar),Qe,Qt,Zt,Tt=Ge.getTypeChecker(),gt=Ar&&te(Ar),kt=Ar&&D(Ar)||Lr;if(Ar&&s(Ar))An=Lr?"this".concat(gt?"?.":"","[").concat(b(Sr,ht,ur),"]"):"this".concat(gt?"?.":".").concat(ur);else if((kt||gt)&&Et){An=kt?Lr?"[".concat(b(Sr,ht,ur),"]"):"[".concat(ur,"]"):ur,(gt||Et.questionDotToken)&&(An="?.".concat(An));var Lt=e.findChildOfKind(Et,24,Sr)||e.findChildOfKind(Et,28,Sr);if(!Lt)return;var $e=e.startsWith(ur,Et.name.text)?Et.name.end:Lt.end;ii=e.createTextSpanFromBounds(Lt.getStart(Sr),$e)}if(St&&(An===void 0&&(An=ur),An="{".concat(An,"}"),typeof St!="boolean"&&(ii=e.createTextSpanFromNode(St,Sr))),Ar&&S(Ar)&&Et){An===void 0&&(An=ur);var et=e.findPrecedingToken(Et.pos,Sr),It="";et&&e.positionIsASICandidate(et.end,et.parent,Sr)&&(It=";"),It+="(await ".concat(Et.expression.getText(),")"),An=Lr?"".concat(It).concat(An):"".concat(It).concat(gt?"?.":".").concat(An),ii=e.createTextSpanFromBounds(Et.getStart(Sr),Et.end)}if(W(Ar)&&(Qe=[e.textPart(Ar.moduleSpecifier)],Pt&&(yn=N(ur,Pt,Ar,pt,Sr,Ft,ht),An=yn.insertText,ii=yn.replacementSpan,hr=ht.includeCompletionsWithSnippetText?!0:void 0)),(Ar==null?void 0:Ar.kind)===64&&(Qt=!0),ht.includeCompletionsWithClassMemberSnippets&&ht.includeCompletionsWithInsertText&&Yt===3&&R(ye,ar,Sr)){var xn=void 0;Tn=K(Or,Ge,Ft,ht,ur,ye,ar,dr,un),An=Tn.insertText,hr=Tn.isSnippet,xn=Tn.importAdder,ii=Tn.replacementSpan,Ie=c.SortText.ClassMemberSnippets,xn!=null&&xn.hasFixes()&&(Qt=!0,at=P.ClassMemberSnippet)}if(Ar&&Z(Ar)&&(An=Ar.insertText,hr=Ar.isSnippet,Zt=Ar.labelDetails,ht.useLabelDetailsInCompletionEntries||(ur=ur+Zt.detail,Zt=void 0),at=P.ObjectLiteralMethodSnippet,Ie=c.SortText.SortBelow(Ie)),wn&&!Bn&&ht.includeCompletionsWithSnippetText&&ht.jsxAttributeCompletionStyle&&ht.jsxAttributeCompletionStyle!=="none"){var pi=ht.jsxAttributeCompletionStyle==="braces",ai=Tt.getTypeOfSymbolAtLocation(ye,ar);ht.jsxAttributeCompletionStyle==="auto"&&!(ai.flags&528)&&!(ai.flags&1048576&&e.find(ai.types,function(Wi){return!!(Wi.flags&528)}))&&(ai.flags&402653316||ai.flags&1048576&&e.every(ai.types,function(Wi){return!!(Wi.flags&402686084)})?(An="".concat(e.escapeSnippetText(ur),"=").concat(e.quote(Sr,ht,"$1")),hr=!0):pi=!0),pi&&(An="".concat(e.escapeSnippetText(ur),"={$1}"),hr=!0)}if(!(An!==void 0&&!ht.includeCompletionsWithInsertText))return(O(Ar)||W(Ar))&&(Xe=de(Ar),Qt=!Pt),{name:ur,kind:e.SymbolDisplay.getSymbolKind(Tt,ye,ar),kindModifiers:e.SymbolDisplay.getSymbolModifiers(Tt,ye),sortText:Ie,source:at,hasAction:Qt?!0:void 0,isRecommended:Q(ye,rt,Tt)||void 0,insertText:An,replacementSpan:ii,sourceDisplay:Qe,labelDetails:Zt,isSnippet:hr,isPackageJsonImport:v(Ar)||void 0,isImportStatementCompletion:!!Pt||void 0,data:Xe}}function R(ye,Ie,We){if(e.isInJSFile(Ie))return!1;var dr=106500;return!!(ye.flags&dr)&&(e.isClassLike(Ie)||Ie.parent&&Ie.parent.parent&&e.isClassElement(Ie.parent)&&Ie===Ie.parent.name&&Ie.parent.getLastToken(We)===Ie.parent.name&&e.isClassLike(Ie.parent.parent)||Ie.parent&&e.isSyntaxList(Ie)&&e.isClassLike(Ie.parent))}function K(ye,Ie,We,dr,ar,Sr,Or,Ge,ur){var Lr=e.findAncestor(Or,e.isClassLike);if(!Lr)return{insertText:ar};var Ar,rt,Et=ar,St=Ie.getTypeChecker(),Pt=Or.getSourceFile(),pt=J({removeComments:!0,module:We.module,target:We.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(We,e.maybeBind(ye,ye.getNewLine)))}),Ft=e.codefix.createImportAdder(Pt,Ie,dr,ye),ht;if(dr.includeCompletionsWithSnippetText){Ar=!0;var Yt=e.factory.createEmptyStatement();ht=e.factory.createBlock([Yt],!0),e.setSnippetElement(Yt,{kind:0,order:0})}else ht=e.factory.createBlock([],!0);var un=0,wn=I(Ge),Bn=wn.modifiers,yn=wn.span,Tn=!!(Bn&256),An=[];if(e.codefix.addNewNodeForMemberSymbol(Sr,Lr,Pt,{program:Ie,host:ye},dr,Ft,function(Xe){var hr=0;Tn&&(hr|=256),e.isClassElement(Xe)&&St.getMemberOverrideModifierStatus(Lr,Xe)===1&&(hr|=16384),An.length||(un=Xe.modifierFlagsCache|hr|Bn),Xe=e.factory.updateModifiers(Xe,un),An.push(Xe)},ht,2,Tn),An.length){var ii=131073;rt=yn,ur?Et=pt.printAndFormatSnippetList(ii,e.factory.createNodeArray(An),Pt,ur):Et=pt.printSnippetList(ii,e.factory.createNodeArray(An),Pt)}return{insertText:Et,isSnippet:Ar,importAdder:Ft,replacementSpan:rt}}function I(ye){if(!ye)return{modifiers:0};var Ie=0,We,dr;return(dr=he(ye))&&(Ie|=e.modifierToFlag(dr),We=e.createTextSpanFromNode(ye)),e.isPropertyDeclaration(ye.parent)&&(Ie|=e.modifiersToFlags(ye.parent.modifiers)&126975,We=e.createTextSpanFromNode(ye.parent)),{modifiers:Ie,span:We}}function he(ye){if(e.isModifier(ye))return ye.kind;if(e.isIdentifier(ye)&&ye.originalKeywordKind&&e.isModifierKind(ye.originalKeywordKind))return ye.originalKeywordKind}function le(ye,Ie,We,dr,ar,Sr,Or,Ge){var ur=Or.includeCompletionsWithSnippetText||void 0,Lr=Ie,Ar=We.getSourceFile(),rt=ee(ye,We,Ar,dr,ar,Or);if(rt){var Et=J({removeComments:!0,module:Sr.module,target:Sr.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(Sr,e.maybeBind(ar,ar.getNewLine)))});Ge?Lr=Et.printAndFormatSnippetList(80,e.factory.createNodeArray([rt],!0),Ar,Ge):Lr=Et.printSnippetList(80,e.factory.createNodeArray([rt],!0),Ar);var St=e.createPrinter({removeComments:!0,module:Sr.module,target:Sr.target,omitTrailingSemicolon:!0}),Pt=e.factory.createMethodSignature(void 0,"",rt.questionToken,rt.typeParameters,rt.parameters,rt.type),pt={detail:St.printNode(4,Pt,Ar)};return{isSnippet:ur,insertText:Lr,labelDetails:pt}}}function ee(ye,Ie,We,dr,ar,Sr){var Or=ye.getDeclarations();if(Or&&Or.length){var Ge=dr.getTypeChecker(),ur=Or[0],Lr=e.getSynthesizedDeepClone(e.getNameOfDeclaration(ur),!1),Ar=Ge.getWidenedType(Ge.getTypeOfSymbolAtLocation(ye,Ie)),rt=e.getQuotePreference(We,Sr),Et=33554432|(rt===0?268435456:0);switch(ur.kind){case 168:case 169:case 170:case 171:{var St=Ar.flags&1048576&&Ar.types.length<10?Ge.getUnionType(Ar.types,2):Ar;if(St.flags&1048576){var Pt=e.filter(St.types,function(wn){return Ge.getSignaturesOfType(wn,0).length>0});if(Pt.length===1)St=Pt[0];else return}var pt=Ge.getSignaturesOfType(St,0);if(pt.length!==1)return;var Ft=Ge.typeToTypeNode(St,Ie,Et,e.codefix.getNoopSymbolTrackerWithResolver({program:dr,host:ar}));if(!Ft||!e.isFunctionTypeNode(Ft))return;var ht=void 0;if(Sr.includeCompletionsWithSnippetText){var Yt=e.factory.createEmptyStatement();ht=e.factory.createBlock([Yt],!0),e.setSnippetElement(Yt,{kind:0,order:0})}else ht=e.factory.createBlock([],!0);var un=Ft.parameters.map(function(wn){return e.factory.createParameterDeclaration(void 0,wn.dotDotDotToken,wn.name,void 0,void 0,wn.initializer)});return e.factory.createMethodDeclaration(void 0,void 0,Lr,void 0,void 0,un,void 0,ht)}default:return}}}function J(ye){var Ie,We=e.textChanges.createWriter(e.getNewLineCharacter(ye)),dr=e.createPrinter(ye,We),ar=n(n({},We),{write:function(Lr){return Sr(Lr,function(){return We.write(Lr)})},nonEscapingWrite:We.write,writeLiteral:function(Lr){return Sr(Lr,function(){return We.writeLiteral(Lr)})},writeStringLiteral:function(Lr){return Sr(Lr,function(){return We.writeStringLiteral(Lr)})},writeSymbol:function(Lr,Ar){return Sr(Lr,function(){return We.writeSymbol(Lr,Ar)})},writeParameter:function(Lr){return Sr(Lr,function(){return We.writeParameter(Lr)})},writeComment:function(Lr){return Sr(Lr,function(){return We.writeComment(Lr)})},writeProperty:function(Lr){return Sr(Lr,function(){return We.writeProperty(Lr)})}});return{printSnippetList:Or,printAndFormatSnippetList:ur};function Sr(Lr,Ar){var rt=e.escapeSnippetText(Lr);if(rt!==Lr){var Et=We.getTextPos();Ar();var St=We.getTextPos();Ie=e.append(Ie||(Ie=[]),{newText:rt,span:{start:Et,length:St-Et}})}else Ar()}function Or(Lr,Ar,rt){var Et=Ge(Lr,Ar,rt);return Ie?e.textChanges.applyChanges(Et,Ie):Et}function Ge(Lr,Ar,rt){return Ie=void 0,ar.clear(),dr.writeList(Lr,Ar,rt,ar),ar.getText()}function ur(Lr,Ar,rt,Et){var St={text:Ge(Lr,Ar,rt),getLineAndCharacterOfPosition:function(ht){return e.getLineAndCharacterOfPosition(this,ht)}},Pt=e.getFormatCodeSettingsForWriting(Et,rt),pt=e.flatMap(Ar,function(ht){var Yt=e.textChanges.assignPositionsToNode(ht);return e.formatting.formatNodeGivenIndentation(Yt,St,rt.languageVariant,0,0,n(n({},Et),{options:Pt}))}),Ft=Ie?e.stableSort(e.concatenate(pt,Ie),function(ht,Yt){return e.compareTextSpans(ht.span,Yt.span)}):pt;return e.textChanges.applyChanges(St.text,Ft)}}function de(ye){var Ie=ye.fileName?void 0:e.stripQuotes(ye.moduleSymbol.name),We=ye.isFromPackageJson?!0:void 0;if(W(ye)){var dr={exportName:ye.exportName,moduleSpecifier:ye.moduleSpecifier,ambientModuleName:Ie,fileName:ye.fileName,isPackageJsonImport:We};return dr}var ar={exportName:ye.exportName,exportMapKey:ye.exportMapKey,fileName:ye.fileName,ambientModuleName:ye.fileName?void 0:e.stripQuotes(ye.moduleSymbol.name),isPackageJsonImport:ye.isFromPackageJson?!0:void 0};return ar}function De(ye,Ie,We){var dr=ye.exportName==="default",ar=!!ye.isPackageJsonImport;if(C(ye)){var Sr={kind:32,exportName:ye.exportName,moduleSpecifier:ye.moduleSpecifier,symbolName:Ie,fileName:ye.fileName,moduleSymbol:We,isDefaultExport:dr,isFromPackageJson:ar};return Sr}var Or={kind:4,exportName:ye.exportName,exportMapKey:ye.exportMapKey,symbolName:Ie,fileName:ye.fileName,moduleSymbol:We,isDefaultExport:dr,isFromPackageJson:ar};return Or}function N(ye,Ie,We,dr,ar,Sr,Or){var Ge=Ie.replacementSpan,ur=e.quote(ar,Or,We.moduleSpecifier),Lr=We.isDefaultExport?1:We.exportName==="export="?2:0,Ar=Or.includeCompletionsWithSnippetText?"$1":"",rt=e.codefix.getImportKind(ar,Lr,Sr,!0),Et=Ie.couldBeTypeOnlyImportSpecifier,St=Ie.isTopLevelTypeOnly?" ".concat(e.tokenToString(154)," "):" ",Pt=Et?"".concat(e.tokenToString(154)," "):"",pt=dr?";":"";switch(rt){case 3:return{replacementSpan:Ge,insertText:"import".concat(St).concat(e.escapeSnippetText(ye)).concat(Ar," = require(").concat(ur,")").concat(pt)};case 1:return{replacementSpan:Ge,insertText:"import".concat(St).concat(e.escapeSnippetText(ye)).concat(Ar," from ").concat(ur).concat(pt)};case 2:return{replacementSpan:Ge,insertText:"import".concat(St,"* as ").concat(e.escapeSnippetText(ye)," from ").concat(ur).concat(pt)};case 0:return{replacementSpan:Ge,insertText:"import".concat(St,"{ ").concat(Pt).concat(e.escapeSnippetText(ye)).concat(Ar," } from ").concat(ur).concat(pt)}}}function b(ye,Ie,We){return/^\d+$/.test(We)?We:e.quote(ye,Ie,We)}function Q(ye,Ie,We){return ye===Ie||!!(ye.flags&1048576)&&We.getExportSymbolOfSymbol(ye)===Ie}function G(ye){if(O(ye))return e.stripQuotes(ye.moduleSymbol.name);if(W(ye))return ye.moduleSpecifier;if((ye==null?void 0:ye.kind)===1)return P.ThisProperty;if((ye==null?void 0:ye.kind)===64)return P.TypeOnlyAlias}function ae(ye,Ie,We,dr,ar,Sr,Or,Ge,ur,Lr,Ar,rt,Et,St,Pt,pt,Ft,ht,Yt,un,wn,Bn,yn,Tn){for(var An,ii=e.timestamp(),Xe=Nt(ar),hr=e.probablyUsesSemicolons(Sr),at=Ge.getTypeChecker(),Qe=new e.Map,Qt=0;Qt<ye.length;Qt++){var Zt=ye[Qt],Tt=wn==null?void 0:wn[Qt],gt=mr(Zt,ur,Tt,Ar,!!Ft);if(!(!gt||Qe.get(gt.name)&&(!Tt||!Z(Tt))||Ar===1&&Bn&&!pi(Zt,Bn))){var kt=gt.name,Lt=gt.needsConvertPropertyAccess,$e=(An=Bn==null?void 0:Bn[e.getSymbolId(Zt)])!==null&&An!==void 0?An:c.SortText.LocationPriority,et=en(Zt,at)?c.SortText.Deprecated($e):$e,It=q(Zt,et,We,dr,ar,Sr,Or,Ge,kt,Lt,Tt,un,pt,ht,Yt,hr,Et,rt,Ar,St,yn,Tn);if(It){var xn=(!Tt||Y(Tt))&&!(Zt.parent===void 0&&!e.some(Zt.declarations,function(ai){return ai.getSourceFile()===ar.getSourceFile()}));Qe.set(kt,xn),e.insertSorted(Ie,It,y,!0)}}}return Lr("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-ii)),{has:function(ai){return Qe.has(ai)},add:function(ai){return Qe.set(ai,!0)}};function pi(ai,Wi){var ji=ai.flags;if(!e.isSourceFile(ar)){if(e.isExportAssignment(ar.parent))return!0;if(Xe&&ai.valueDeclaration===Xe)return!1;var fn=e.skipAlias(ai,at);if(Sr.externalModuleIndicator&&!Et.allowUmdGlobalAccess&&Wi[e.getSymbolId(ai)]===c.SortText.GlobalsOrKeywords&&(Wi[e.getSymbolId(fn)]===c.SortText.AutoImportSuggestions||Wi[e.getSymbolId(fn)]===c.SortText.LocationPriority))return!1;if(ji|=e.getCombinedLocalAndExportSymbolFlags(fn),e.isInRightSideOfInternalImportEqualsDeclaration(ar))return!!(ji&1920);if(Pt)return sn(ai,at)}return!!(ji&111551)}}c.getCompletionEntriesFromSymbols=ae;function Te(ye){var Ie=Ne(ye);if(Ie.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Ie}}function Ne(ye){for(var Ie=[],We=new e.Map,dr=ye;dr&&!e.isFunctionLike(dr);){if(e.isLabeledStatement(dr)){var ar=dr.label.text;We.has(ar)||(We.set(ar,!0),Ie.push({name:ar,kindModifiers:"",kind:"label",sortText:c.SortText.LocationPriority}))}dr=dr.parent}return Ie}function we(ye,Ie,We,dr,ar,Sr,Or){if(ar.data){var Ge=lr(ar.name,ar.data,ye,Sr);if(Ge){var ur=Je(dr,We),Lr=ur.contextToken,Ar=ur.previousToken;return{type:"symbol",symbol:Ge.symbol,location:e.getTouchingPropertyName(We,dr),previousToken:Ar,contextToken:Lr,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Ge.origin}}}var rt=ye.getCompilerOptions(),Et=ue(ye,Ie,We,rt,dr,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},ar,Sr,void 0);if(!Et)return{type:"none"};if(Et.kind!==0)return{type:"request",request:Et};var St=Et.symbols,Pt=Et.literals,pt=Et.location,Ft=Et.completionKind,ht=Et.symbolToOriginInfoMap,Yt=Et.contextToken,un=Et.previousToken,wn=Et.isJsxInitializer,Bn=Et.isTypeOnlyLocation,yn=e.find(Pt,function(Tn){return U(We,Or,Tn)===ar.name});return yn!==void 0?{type:"literal",literal:yn}:e.firstDefined(St,function(Tn,An){var ii=ht[An],Xe=mr(Tn,e.getEmitScriptTarget(rt),ii,Ft,Et.isJsxIdentifierExpected);return Xe&&Xe.name===ar.name&&(ar.source===P.ClassMemberSnippet&&Tn.flags&106500||ar.source===P.ObjectLiteralMethodSnippet&&Tn.flags&8196||G(ii)===ar.source)?{type:"symbol",symbol:Tn,location:pt,origin:ii,contextToken:Yt,previousToken:un,isJsxInitializer:wn,isTypeOnlyLocation:Bn}:void 0})||{type:"none"}}function nr(ye,Ie,We,dr,ar,Sr,Or,Ge,ur){var Lr=ye.getTypeChecker(),Ar=ye.getCompilerOptions(),rt=ar.name,Et=ar.source,St=ar.data,Pt=e.findPrecedingToken(dr,We);if(e.isInString(We,dr,Pt))return c.StringCompletions.getStringLiteralCompletionDetails(rt,We,dr,Pt,Lr,Ar,Sr,ur,Ge);var pt=we(ye,Ie,We,dr,ar,Sr,Ge);switch(pt.type){case"request":{var Ft=pt.request;switch(Ft.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(rt);case 2:return e.JsDoc.getJSDocTagCompletionDetails(rt);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(rt);case 4:return e.some(Ft.keywordCompletions,function(Xe){return Xe.name===rt})?tr(rt,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(Ft)}}case"symbol":{var ht=pt.symbol,Yt=pt.location,un=pt.contextToken,wn=pt.origin,Bn=pt.previousToken,yn=rr(rt,Yt,un,wn,ht,ye,Sr,Ar,We,dr,Bn,Or,Ge,St,Et,ur),Tn=yn.codeActions,An=yn.sourceDisplay;return me(ht,Lr,We,Yt,ur,Tn,An)}case"literal":{var ii=pt.literal;return tr(U(We,Ge,ii),"string",typeof ii=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return wr().some(function(Xe){return Xe.name===rt})?tr(rt,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(pt)}}c.getCompletionEntryDetails=nr;function tr(ye,Ie,We){return He(ye,"",Ie,[e.displayPart(ye,We)])}function me(ye,Ie,We,dr,ar,Sr,Or){var Ge=Ie.runWithCancellationToken(ar,function(Et){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(Et,ye,We,dr,dr,7)}),ur=Ge.displayParts,Lr=Ge.documentation,Ar=Ge.symbolKind,rt=Ge.tags;return He(ye.name,e.SymbolDisplay.getSymbolModifiers(Ie,ye),Ar,ur,Lr,rt,Sr,Or)}c.createCompletionDetailsForSymbol=me;function He(ye,Ie,We,dr,ar,Sr,Or,Ge){return{name:ye,kindModifiers:Ie,kind:We,displayParts:dr,documentation:ar,tags:Sr,codeActions:Or,source:Ge,sourceDisplay:Ge}}c.createCompletionDetails=He;function rr(ye,Ie,We,dr,ar,Sr,Or,Ge,ur,Lr,Ar,rt,Et,St,Pt,pt){if(St!=null&&St.moduleSpecifier&&Ar&&ft(We||Ar).replacementSpan)return{codeActions:void 0,sourceDisplay:[e.textPart(St.moduleSpecifier)]};if(Pt===P.ClassMemberSnippet){var Ft=K(Or,Sr,Ge,Et,ye,ar,Ie,We,rt).importAdder;if(Ft){var ht=e.textChanges.ChangeTracker.with({host:Or,formatContext:rt,preferences:Et},Ft.writeFixes);return{sourceDisplay:void 0,codeActions:[{changes:ht,description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,ye])}]}}}if(Y(dr)){var Yt=e.codefix.getPromoteTypeOnlyCompletionAction(ur,dr.declaration.name,Sr,Or,rt,Et);return e.Debug.assertIsDefined(Yt,"Expected to have a code action for promoting type-only alias"),{codeActions:[Yt],sourceDisplay:void 0}}if(!dr||!(O(dr)||W(dr)))return{codeActions:void 0,sourceDisplay:void 0};var un=dr.isFromPackageJson?Or.getPackageJsonAutoImportProvider().getTypeChecker():Sr.getTypeChecker(),wn=dr.moduleSymbol,Bn=un.getMergedSymbol(e.skipAlias(ar.exportSymbol||ar,un)),yn=(We==null?void 0:We.kind)===29&&e.isJsxOpeningLikeElement(We.parent),Tn=e.codefix.getImportCompletionAction(Bn,wn,ur,e.getNameForExportedSymbol(ar,e.getEmitScriptTarget(Ge),yn),yn,Or,Sr,rt,Ar&&e.isIdentifier(Ar)?Ar.getStart(ur):Lr,Et,pt),An=Tn.moduleSpecifier,ii=Tn.codeAction;return e.Debug.assert(!(St!=null&&St.moduleSpecifier)||An===St.moduleSpecifier),{sourceDisplay:[e.textPart(An)],codeActions:[ii]}}function je(ye,Ie,We,dr,ar,Sr,Or){var Ge=we(ye,Ie,We,dr,ar,Sr,Or);return Ge.type==="symbol"?Ge.symbol:void 0}c.getCompletionEntrySymbol=je;var Ce;(function(ye){ye[ye.Data=0]="Data",ye[ye.JsDocTagName=1]="JsDocTagName",ye[ye.JsDocTag=2]="JsDocTag",ye[ye.JsDocParameterName=3]="JsDocParameterName",ye[ye.Keywords=4]="Keywords"})(Ce||(Ce={})),function(ye){ye[ye.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",ye[ye.Global=1]="Global",ye[ye.PropertyAccess=2]="PropertyAccess",ye[ye.MemberLike=3]="MemberLike",ye[ye.String=4]="String",ye[ye.None=5]="None"}(c.CompletionKind||(c.CompletionKind={}));function Ae(ye,Ie,We){return e.firstDefined(Ie&&(Ie.isUnion()?Ie.types:[Ie]),function(dr){var ar=dr&&dr.symbol;return ar&&ar.flags&424&&!e.isAbstractConstructorSymbol(ar)?xe(ar,ye,We):void 0})}function qe(ye,Ie,We,dr){var ar=ye.parent;switch(ye.kind){case 79:return e.getContextualTypeFromParent(ye,dr);case 63:switch(ar.kind){case 257:return dr.getContextualType(ar.initializer);case 223:return dr.getTypeAtLocation(ar.left);case 288:return dr.getContextualTypeForJsxAttribute(ar);default:return}case 103:return dr.getContextualType(ar);case 82:var Sr=e.tryCast(ar,e.isCaseClause);return Sr?e.getSwitchedType(Sr,dr):void 0;case 18:return e.isJsxExpression(ar)&&!e.isJsxElement(ar.parent)&&!e.isJsxFragment(ar.parent)?dr.getContextualTypeForJsxAttribute(ar.parent):void 0;default:var Or=e.SignatureHelp.getArgumentInfoForCompletions(ye,Ie,We);return Or?dr.getContextualTypeForArgumentAtIndex(Or.invocation,Or.argumentIndex+(ye.kind===27?1:0)):e.isEqualityOperatorKind(ye.kind)&&e.isBinaryExpression(ar)&&e.isEqualityOperatorKind(ar.operatorToken.kind)?dr.getTypeAtLocation(ar.left):dr.getContextualType(ye)}}function xe(ye,Ie,We){var dr=We.getAccessibleSymbolChain(ye,Ie,67108863,!1);return dr?e.first(dr):ye.parent&&(L(ye.parent)?ye:xe(ye.parent,Ie,We))}function L(ye){var Ie;return!!(!((Ie=ye.declarations)===null||Ie===void 0)&&Ie.some(function(We){return We.kind===308}))}function ue(ye,Ie,We,dr,ar,Sr,Or,Ge,ur,Lr){var Ar=ye.getTypeChecker(),rt=oe(We,dr),Et=e.timestamp(),St=e.getTokenAtPosition(We,ar);Ie("getCompletionData: Get current token: "+(e.timestamp()-Et)),Et=e.timestamp();var Pt=e.isInComment(We,ar,St);Ie("getCompletionData: Is inside comment: "+(e.timestamp()-Et));var pt=!1,Ft=!1;if(Pt){if(e.hasDocComment(We,ar)){if(We.text.charCodeAt(ar-1)===64)return{kind:1};var ht=e.getLineStartPositionForPosition(ar,We);if(!/[^\*|\s(/)]/.test(We.text.substring(ht,ar)))return{kind:2}}var Yt=Fr(St,ar);if(Yt){if(Yt.tagName.pos<=ar&&ar<=Yt.tagName.end)return{kind:1};var un=ca(Yt);if(un&&(St=e.getTokenAtPosition(We,ar),(!St||!e.isDeclarationName(St)&&(St.parent.kind!==350||St.parent.name!==St))&&(pt=nc(un))),!pt&&e.isJSDocParameterTag(Yt)&&(e.nodeIsMissing(Yt.name)||Yt.name.pos<=ar&&ar<=Yt.name.end))return{kind:3,tag:Yt}}if(!pt){Ie("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}Et=e.timestamp();var wn=!pt&&e.isSourceFileJS(We),Bn=Je(ar,We),yn=Bn.previousToken,Tn=Bn.contextToken;Ie("getCompletionData: Get previous token: "+(e.timestamp()-Et));var An=St,ii,Xe=!1,hr=!1,at=!1,Qe=!1,Qt=!1,Zt=!1,Tt,gt=e.getTouchingPropertyName(We,ar),kt=0,Lt=!1,$e=0;if(Tn){var et=ft(Tn);if(et.keywordCompletion){if(et.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[z(et.keywordCompletion)],isNewIdentifierLocation:et.isNewIdentifierLocation};kt=fe(et.keywordCompletion)}if(et.replacementSpan&&Sr.includeCompletionsForImportStatements&&Sr.includeCompletionsWithInsertText&&($e|=2,Tt=et,Lt=et.isNewIdentifierLocation),!et.replacementSpan&&Er(Tn))return Ie("Returning an empty list because completion was requested in an invalid position."),kt?Pe(kt,wn,Ot()):void 0;var It=Tn.parent;if(Tn.kind===24||Tn.kind===28)switch(Xe=Tn.kind===24,hr=Tn.kind===28,It.kind){case 208:ii=It,An=ii.expression;var xn=e.getLeftmostAccessExpression(ii);if(e.nodeIsMissing(xn)||(e.isCallExpression(An)||e.isFunctionLike(An))&&An.end===Tn.pos&&An.getChildCount(We)&&e.last(An.getChildren(We)).kind!==21)return;break;case 163:An=It.left;break;case 264:An=It.name;break;case 202:An=It;break;case 233:An=It.getFirstToken(We),e.Debug.assert(An.kind===100||An.kind===103);break;default:return}else if(!Tt){if(It&&It.kind===208&&(Tn=It,It=It.parent),St.parent===gt)switch(St.kind){case 31:(St.parent.kind===281||St.parent.kind===283)&&(gt=St);break;case 43:St.parent.kind===282&&(gt=St);break}switch(It.kind){case 284:Tn.kind===43&&(Qe=!0,gt=Tn);break;case 223:if(!xr(It))break;case 282:case 281:case 283:Zt=!0,Tn.kind===29&&(at=!0,gt=Tn);break;case 291:case 290:yn.kind===19&&St.kind===31&&(Zt=!0);break;case 288:if(It.initializer===yn&&yn.end<ar){Zt=!0;break}switch(yn.kind){case 63:Qt=!0;break;case 79:Zt=!0,It!==yn.parent&&!It.initializer&&e.findChildOfKind(It,63,We)&&(Qt=yn)}break}}}var pi=e.timestamp(),ai=5,Wi=!1,ji=!1,fn=[],Ri,ma=[],ra=[],vn=new e.Map,zo=xi(),_a=e.memoizeOne(function(Xt){return e.createModuleSpecifierResolutionHost(Xt?Ge.getPackageJsonAutoImportProvider():ye,Ge)});if(Xe||hr)bo();else if(at)fn=Ar.getJsxIntrinsicTagNamesAt(gt),e.Debug.assertEachIsDefined(fn,"getJsxIntrinsicTagNames() should all be defined"),qs(),ai=1,kt=0;else if(Qe){var Ha=Tn.parent.parent.openingElement.tagName,Do=Ar.getSymbolAtLocation(Ha);Do&&(fn=[Do]),ai=1,kt=0}else if(!qs())return kt?Pe(kt,wn,Lt):void 0;Ie("getCompletionData: Semantic work: "+(e.timestamp()-pi));var Ka=yn&&qe(yn,ar,We,Ar),rs=e.mapDefined(Ka&&(Ka.isUnion()?Ka.types:[Ka]),function(Xt){return Xt.isLiteral()&&!(Xt.flags&1024)?Xt.value:void 0}),ts=yn&&Ka&&Ae(yn,Ka,Ar);return{kind:0,symbols:fn,completionKind:ai,isInSnippetScope:Ft,propertyAccessToConvert:ii,isNewIdentifierLocation:Lt,location:gt,keywordFilters:kt,literals:rs,symbolToOriginInfoMap:ma,recommendedCompletion:ts,previousToken:yn,contextToken:Tn,isJsxInitializer:Qt,insideJsDocTagTypeExpression:pt,symbolToSortTextMap:ra,isTypeOnlyLocation:zo,isJsxIdentifierExpected:Zt,isRightOfOpenTag:at,importStatementCompletion:Tt,hasUnresolvedAutoImports:ji,flags:$e};function En(Xt){switch(Xt.kind){case 343:case 350:case 344:case 346:case 348:return!0;case 347:return!!Xt.constraint;default:return!1}}function ca(Xt){if(En(Xt)){var be=e.isJSDocTemplateTag(Xt)?Xt.constraint:Xt.typeExpression;return be&&be.kind===312?be:void 0}}function bo(){ai=2;var Xt=e.isLiteralImportTypeNode(An),be=pt||Xt&&!An.isTypeOf||e.isPartOfTypeNode(An.parent)||e.isPossiblyTypeArgumentPosition(Tn,We,Ar),Ur=e.isInRightSideOfInternalImportEqualsDeclaration(An);if(e.isEntityName(An)||Xt||e.isPropertyAccessExpression(An)){var At=e.isModuleDeclaration(An.parent);At&&(Lt=!0);var an=Ar.getSymbolAtLocation(An);if(an&&(an=e.skipAlias(an,Ar),an.flags&1920)){var Kn=Ar.getExportsOfModule(an);e.Debug.assertEachIsDefined(Kn,"getExportsOfModule() should all be defined");for(var Yn=function(Mr){return Ar.isValidPropertyAccess(Xt?An:An.parent,Mr.name)},Si=function(Mr){return sn(Mr,Ar)},vi=At?function(Mr){var ua;return!!(Mr.flags&1920)&&!(!((ua=Mr.declarations)===null||ua===void 0)&&ua.every(function(_o){return _o.parent===An.parent}))}:Ur?function(Mr){return Si(Mr)||Yn(Mr)}:be?Si:Yn,Da=0,ta=Kn;Da<ta.length;Da++){var fo=ta[Da];vi(fo)&&fn.push(fo)}if(!be&&an.declarations&&an.declarations.some(function(Mr){return Mr.kind!==308&&Mr.kind!==264&&Mr.kind!==263})){var oo=Ar.getTypeOfSymbolAtLocation(an,An).getNonOptionalType(),er=!1;if(oo.isNullableType()){var Bt=Xe&&!hr&&Sr.includeAutomaticOptionalChainCompletions!==!1;(Bt||hr)&&(oo=oo.getNonNullableType(),Bt&&(er=!0))}Oo(oo,!!(An.flags&32768),er)}return}}if(!be){Ar.tryGetThisTypeAt(An,!1);var oo=Ar.getTypeAtLocation(An).getNonOptionalType(),er=!1;if(oo.isNullableType()){var Bt=Xe&&!hr&&Sr.includeAutomaticOptionalChainCompletions!==!1;(Bt||hr)&&(oo=oo.getNonNullableType(),Bt&&(er=!0))}Oo(oo,!!(An.flags&32768),er)}}function Oo(Xt,be,Ur){Lt=!!Xt.getStringIndexType(),hr&&e.some(Xt.getCallSignatures())&&(Lt=!0);var At=An.kind===202?An:An.parent;if(rt)for(var an=0,Kn=Xt.getApparentProperties();an<Kn.length;an++){var Yn=Kn[an];Ar.isValidPropertyAccessForCompletions(At,Xt,Yn)&&Ws(Yn,!1,Ur)}else fn.push.apply(fn,e.filter(Fe(Xt,Ar),function(ta){return Ar.isValidPropertyAccessForCompletions(At,Xt,ta)}));if(be&&Sr.includeCompletionsWithInsertText){var Si=Ar.getPromisedTypeOfPromise(Xt);if(Si)for(var vi=0,Da=Si.getApparentProperties();vi<Da.length;vi++){var Yn=Da[vi];Ar.isValidPropertyAccessForCompletions(At,Si,Yn)&&Ws(Yn,!0,Ur)}}}function Ws(Xt,be,Ur){var At,an=e.firstDefined(Xt.declarations,function(ua){return e.tryCast(e.getNameOfDeclaration(ua),e.isComputedPropertyName)});if(an){var Kn=Co(an.expression),Yn=Kn&&Ar.getSymbolAtLocation(Kn),Si=Yn&&xe(Yn,Tn,Ar);if(Si&&e.addToSeen(vn,e.getSymbolId(Si))){var vi=fn.length;fn.push(Si);var Da=Si.parent;if(!Da||!e.isExternalModuleSymbol(Da)||Ar.tryGetMemberInModuleExportsAndProperties(Si.name,Da)!==Si)ma[vi]={kind:Mr(2)};else{var ta=e.isExternalModuleNameRelative(e.stripQuotes(Da.name))?(At=e.getSourceFileOfModule(Da))===null||At===void 0?void 0:At.fileName:void 0,fo=((Ri||(Ri=e.codefix.createImportSpecifierResolver(We,ye,Ge,Sr))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:ta,isFromPackageJson:!1,moduleSymbol:Da,symbol:Si,targetFlags:e.skipAlias(Si,Ar).flags}],Si.name,ar,e.isValidTypeOnlyAliasUseSite(gt))||{}).moduleSpecifier;if(fo){var oo={kind:Mr(6),moduleSymbol:Da,isDefaultExport:!1,symbolName:Si.name,exportName:Si.name,fileName:ta,moduleSpecifier:fo};ma[vi]=oo}}}else Sr.includeCompletionsWithInsertText&&(Bt(Xt),er(Xt),fn.push(Xt))}else Bt(Xt),er(Xt),fn.push(Xt);function er(ua){Qr(ua)&&(ra[e.getSymbolId(ua)]=c.SortText.LocalDeclarationPriority)}function Bt(ua){Sr.includeCompletionsWithInsertText&&(be&&e.addToSeen(vn,e.getSymbolId(ua))?ma[fn.length]={kind:Mr(8)}:Ur&&(ma[fn.length]={kind:16}))}function Mr(ua){return Ur?ua|16:ua}}function Co(Xt){return e.isIdentifier(Xt)?Xt:e.isPropertyAccessExpression(Xt)?Co(Xt.expression):void 0}function qs(){var Xt=kn()||Cn()||Ko()||_i()||qi()||gs()||va()||Ds()||(kr(),1);return Xt===1}function gs(){return $a(Tn)?(ai=5,Lt=!0,kt=4,1):0}function Ds(){var Xt=rc(Tn),be=Xt&&Ar.getContextualType(Xt.attributes);if(!be)return 0;var Ur=Xt&&Ar.getContextualType(Xt.attributes,4);return fn=e.concatenate(fn,nu(_t(be,Ur,Xt.attributes,Ar),Xt.attributes.properties)),Lc(),ai=3,Lt=!1,1}function Ko(){return Tt?(Lt=!0,Ye(),1):0}function kr(){kt=ws(Tn)?5:1,ai=1,Lt=Ot(),yn!==Tn&&e.Debug.assert(!!yn,"Expected 'contextToken' to be defined when different from 'previousToken'.");var Xt=yn!==Tn?yn.getStart():ar,be=yr(Tn,Xt,We)||We;Ft=Nn(be);var Ur=(zo?0:111551)|788968|1920|2097152,At=yn&&!e.isValidTypeOnlyAliasUseSite(yn);fn=e.concatenate(fn,Ar.getSymbolsInScope(be,Ur)),e.Debug.assertEachIsDefined(fn,"getSymbolsInScope() should all be defined");for(var an=0;an<fn.length;an++){var Kn=fn[an];if(!Ar.isArgumentsSymbol(Kn)&&!e.some(Kn.declarations,function(fo){return fo.getSourceFile()===We})&&(ra[e.getSymbolId(Kn)]=c.SortText.GlobalsOrKeywords),At&&!(Kn.flags&111551)){var Yn=Kn.declarations&&e.find(Kn.declarations,e.isTypeOnlyImportOrExportDeclaration);if(Yn){var Si={kind:64,declaration:Yn};ma[an]=Si}}}if(Sr.includeCompletionsWithInsertText&&be.kind!==308){var vi=Ar.tryGetThisTypeAt(be,!1,e.isClassLike(be.parent)?be:void 0);if(vi&&!Br(vi,We,Ar))for(var Da=0,ta=Fe(vi,Ar);Da<ta.length;Da++){var Kn=ta[Da];ma[fn.length]={kind:1},fn.push(Kn),ra[e.getSymbolId(Kn)]=c.SortText.SuggestedClassMembers}}Ye(),zo&&(kt=Tn&&e.isAssertionExpression(Tn.parent)?6:7)}function jr(){return Tt?!0:Wi||!Sr.includeCompletionsForModuleExports?!1:We.externalModuleIndicator||We.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(ye.getCompilerOptions())?!0:e.programContainsModules(ye)}function Nn(Xt){switch(Xt.kind){case 308:case 225:case 291:case 238:return!0;default:return e.isStatement(Xt)}}function xi(){return pt||!!Tt&&e.isTypeOnlyImportOrExportDeclaration(gt.parent)||!ka(Tn)&&(e.isPossiblyTypeArgumentPosition(Tn,We,Ar)||e.isPartOfTypeNode(gt)||ro(Tn))}function ka(Xt){return Xt&&(Xt.kind===112&&(Xt.parent.kind===183||e.isTypeOfExpression(Xt.parent))||Xt.kind===129&&Xt.parent.kind===179)}function ro(Xt){if(Xt){var be=Xt.parent.kind;switch(Xt.kind){case 58:return be===169||be===168||be===166||be===257||e.isFunctionLikeKind(be);case 63:return be===262;case 128:return be===231;case 29:return be===180||be===213;case 94:return be===165;case 150:return be===235}}return!1}function Ye(){var Xt,be;if(!jr()||(e.Debug.assert(!(Or!=null&&Or.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),Or&&!Or.source))return;$e|=1;var Ur=yn===Tn&&Tt,At=Ur?"":yn&&e.isIdentifier(yn)?yn.text.toLowerCase():"",an=(Xt=Ge.getModuleSpecifierCache)===null||Xt===void 0?void 0:Xt.call(Ge),Kn=e.getExportInfoMap(We,Ge,ye,Sr,Lr),Yn=(be=Ge.getPackageJsonAutoImportProvider)===null||be===void 0?void 0:be.call(Ge),Si=Or?void 0:e.createPackageJsonImportFilter(We,Sr,Ge);X("collectAutoImports",Ge,Ri||(Ri=e.codefix.createImportSpecifierResolver(We,ye,Ge,Sr)),ye,ar,Sr,!!Tt,e.isValidTypeOnlyAliasUseSite(gt),function(Da){Kn.search(We.path,at,function(ta,fo){if(!e.isIdentifierText(ta,e.getEmitScriptTarget(Ge.getCompilationSettings()))||!Or&&e.isStringANonContextualKeyword(ta)||!zo&&!Tt&&!(fo&111551)||zo&&!(fo&790504))return!1;var oo=ta.charCodeAt(0);return at&&(oo<65||oo>90)?!1:Or?!0:Ir(ta,At)},function(ta,fo,oo,er){var Bt;if(!(Or&&!e.some(ta,function(oc){return Or.source===e.stripQuotes(oc.moduleSymbol.name)}))){var Mr=e.find(ta,vi);if(Mr){var ua=Da.tryResolve(ta,fo,oo)||{};if(ua!=="failed"){var _o=Mr,xs;ua!=="skipped"&&(Bt=ua.exportInfo,_o=Bt===void 0?Mr:Bt,xs=ua.moduleSpecifier);var yc=_o.exportKind===1,kc=yc&&e.getLocalSymbolForExportDefault(_o.symbol)||_o.symbol;lt(kc,{kind:xs?32:4,moduleSpecifier:xs,symbolName:fo,exportMapKey:er,exportName:_o.exportKind===2?"export=":_o.symbol.name,fileName:_o.moduleFileName,isDefaultExport:yc,moduleSymbol:_o.moduleSymbol,isFromPackageJson:_o.isFromPackageJson})}}}}),ji=Da.skippedAny(),$e|=Da.resolvedAny()?8:0,$e|=Da.resolvedBeyondLimit()?16:0});function vi(Da){var ta=e.tryCast(Da.moduleSymbol.valueDeclaration,e.isSourceFile);if(!ta){var fo=e.stripQuotes(Da.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(fo)&&e.startsWith(fo,"node:")!==e.shouldUseUriStyleNodeCoreModules(We,ye)?!1:Si?Si.allowsImportingAmbientModule(Da.moduleSymbol,_a(Da.isFromPackageJson)):!0}return e.isImportableFile(Da.isFromPackageJson?Yn:ye,We,ta,Sr,Si,_a(Da.isFromPackageJson),an)}}function lt(Xt,be){var Ur=e.getSymbolId(Xt);ra[Ur]!==c.SortText.GlobalsOrKeywords&&(ma[fn.length]=be,ra[Ur]=Tt?c.SortText.LocationPriority:c.SortText.AutoImportSuggestions,fn.push(Xt))}function Ut(Xt,be){e.isInJSFile(gt)||Xt.forEach(function(Ur){if(Ve(Ur)){var At=mr(Ur,e.getEmitScriptTarget(dr),void 0,0,!1);if(At){var an=At.name,Kn=le(Ur,an,be,ye,Ge,dr,Sr,ur);if(Kn){var Yn=n({kind:128},Kn);$e|=32,ma[fn.length]=Yn,fn.push(Ur)}}}})}function Ve(Xt){return!!(Xt.flags&8196)}function yr(Xt,be,Ur){for(var At=Xt;At&&!e.positionBelongsToNode(At,be,Ur);)At=At.parent;return At}function Er(Xt){var be=e.timestamp(),Ur=ln(Xt)||Wo(Xt)||bu(Xt)||Wr(Xt)||e.isBigIntLiteral(Xt);return Ie("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-be)),Ur}function Wr(Xt){if(Xt.kind===11)return!0;if(Xt.kind===31&&Xt.parent){if(gt===Xt.parent&&(gt.kind===283||gt.kind===282))return!1;if(Xt.parent.kind===283)return gt.parent.kind!==283;if(Xt.parent.kind===284||Xt.parent.kind===282)return!!Xt.parent.parent&&Xt.parent.parent.kind===281}return!1}function Ot(){if(Tn){var Xt=Tn.parent.kind,be=Rr(Tn);switch(be){case 27:return Xt===210||Xt===173||Xt===211||Xt===206||Xt===223||Xt===181||Xt===207;case 20:return Xt===210||Xt===173||Xt===211||Xt===214||Xt===193;case 22:return Xt===206||Xt===178||Xt===164;case 142:case 143:case 100:return!0;case 24:return Xt===264;case 18:return Xt===260||Xt===207;case 63:return Xt===257||Xt===223;case 15:return Xt===225;case 16:return Xt===236;case 132:return Xt===171||Xt===300;case 41:return Xt===171}if(or(be))return!0}return!1}function ln(Xt){return(e.isRegularExpressionLiteral(Xt)||e.isStringTextContainingNode(Xt))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(Xt)),ar)||ar===Xt.end&&(!!Xt.isUnterminated||e.isRegularExpressionLiteral(Xt)))}function kn(){var Xt=Le(Tn);if(!Xt)return 0;var be=e.isIntersectionTypeNode(Xt.parent)?Xt.parent:void 0,Ur=be||Xt,At=cr(Ur,Ar);if(!At)return 0;var an=Ar.getTypeFromTypeNode(Ur),Kn=Fe(At,Ar),Yn=Fe(an,Ar),Si=new e.Set;return Yn.forEach(function(vi){return Si.add(vi.escapedName)}),fn=e.concatenate(fn,e.filter(Kn,function(vi){return!Si.has(vi.escapedName)})),ai=0,Lt=!0,1}function Cn(){var Xt=fn.length,be=Ue(Tn);if(!be)return 0;ai=0;var Ur,At;if(be.kind===207){var an=ct(be,Ar);if(an===void 0)return be.flags&33554432?2:(Wi=!0,0);var Kn=Ar.getContextualType(be,4),Yn=(Kn||an).getStringIndexType(),Si=(Kn||an).getNumberIndexType();if(Lt=!!Yn||!!Si,Ur=_t(an,Kn,be,Ar),At=be.properties,Ur.length===0&&!Si)return Wi=!0,0}else{e.Debug.assert(be.kind===203),Lt=!1;var vi=e.getRootDeclaration(be.parent);if(!e.isVariableLike(vi))return e.Debug.fail("Root declaration is not variable-like.");var Da=e.hasInitializer(vi)||!!e.getEffectiveTypeAnnotationNode(vi)||vi.parent.parent.kind===247;if(!Da&&vi.kind===166&&(e.isExpression(vi.parent)?Da=!!Ar.getContextualType(vi.parent):(vi.parent.kind===171||vi.parent.kind===175)&&(Da=e.isExpression(vi.parent.parent)&&!!Ar.getContextualType(vi.parent.parent))),Da){var ta=Ar.getTypeAtLocation(be);if(!ta)return 2;Ur=Ar.getPropertiesOfType(ta).filter(function(oo){return Ar.isPropertyAccessible(be,!1,!1,ta,oo)}),At=be.elements}}if(Ur&&Ur.length>0){var fo=$c(Ur,e.Debug.checkDefined(At));fn=e.concatenate(fn,fo),Lc(),be.kind===207&&Sr.includeCompletionsWithObjectLiteralMethodSnippets&&Sr.includeCompletionsWithInsertText&&(tc(Xt),Ut(fo,be))}return 1}function _i(){if(!Tn)return 0;var Xt=Tn.kind===18||Tn.kind===27?e.tryCast(Tn.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(Tn)?e.tryCast(Tn.parent.parent,e.isNamedImportsOrExports):void 0;if(!Xt)return 0;e.isTypeKeywordTokenOrIdentifier(Tn)||(kt=8);var be=(Xt.kind===272?Xt.parent.parent:Xt.parent).moduleSpecifier;if(!be)return Lt=!0,Xt.kind===272?2:0;var Ur=Ar.getSymbolAtLocation(be);if(!Ur)return Lt=!0,2;ai=3,Lt=!1;var At=Ar.getExportsAndPropertiesOfModule(Ur),an=new e.Set(Xt.elements.filter(function(Yn){return!nc(Yn)}).map(function(Yn){return(Yn.propertyName||Yn.name).escapedText})),Kn=At.filter(function(Yn){return Yn.escapedName!=="default"&&!an.has(Yn.escapedName)});return fn=e.concatenate(fn,Kn),Kn.length||(kt=0),1}function qi(){var Xt,be=Tn&&(Tn.kind===18||Tn.kind===27)?e.tryCast(Tn.parent,e.isNamedExports):void 0;if(!be)return 0;var Ur=e.findAncestor(be,e.or(e.isSourceFile,e.isModuleDeclaration));return ai=5,Lt=!1,(Xt=Ur.locals)===null||Xt===void 0||Xt.forEach(function(At,an){var Kn,Yn;fn.push(At),!((Yn=(Kn=Ur.symbol)===null||Kn===void 0?void 0:Kn.exports)===null||Yn===void 0)&&Yn.has(an)&&(ra[e.getSymbolId(At)]=c.SortText.OptionalMember)}),1}function va(){var Xt=vr(We,Tn,gt,ar);if(!Xt)return 0;if(ai=3,Lt=!0,kt=Tn.kind===41?0:e.isClassLike(Xt)?2:3,!e.isClassLike(Xt))return 1;var be=Tn.kind===26?Tn.parent.parent:Tn.parent,Ur=e.isClassElement(be)?e.getEffectiveModifierFlags(be):0;if(Tn.kind===79&&!nc(Tn))switch(Tn.getText()){case"private":Ur=Ur|8;break;case"static":Ur=Ur|32;break;case"override":Ur=Ur|16384;break}if(e.isClassStaticBlockDeclaration(be)&&(Ur|=32),!(Ur&8)){var At=e.isClassLike(Xt)&&Ur&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(Xt)):e.getAllSuperTypeNodes(Xt),an=e.flatMap(At,function(Kn){var Yn=Ar.getTypeAtLocation(Kn);return Ur&32?(Yn==null?void 0:Yn.symbol)&&Ar.getPropertiesOfType(Ar.getTypeOfSymbolAtLocation(Yn.symbol,Xt)):Yn&&Ar.getPropertiesOfType(Yn)});fn=e.concatenate(fn,fc(an,Xt.members,Ur))}return 1}function Ia(Xt){return!!Xt.parent&&e.isParameter(Xt.parent)&&e.isConstructorDeclaration(Xt.parent.parent)&&(e.isParameterPropertyModifier(Xt.kind)||e.isDeclarationName(Xt))}function $a(Xt){if(Xt){var be=Xt.parent;switch(Xt.kind){case 20:case 27:return e.isConstructorDeclaration(Xt.parent)?Xt.parent:void 0;default:if(Ia(Xt))return be.parent}}}function ws(Xt){if(Xt){var be,Ur=e.findAncestor(Xt.parent,function(At){return e.isClassLike(At)?"quit":e.isFunctionLikeDeclaration(At)&&be===At.body?!0:(be=At,!1)});return Ur&&Ur}}function rc(Xt){if(Xt){var be=Xt.parent;switch(Xt.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(be&&(be.kind===282||be.kind===283)){if(Xt.kind===31){var Ur=e.findPrecedingToken(Xt.pos,We,void 0);if(!be.typeArguments||Ur&&Ur.kind===43)break}return be}else if(be.kind===288)return be.parent.parent;break;case 10:if(be&&(be.kind===288||be.kind===290))return be.parent.parent;break;case 19:if(be&&be.kind===291&&be.parent&&be.parent.kind===288)return be.parent.parent.parent;if(be&&be.kind===290)return be.parent.parent;break}}}function Wo(Xt){var be=Xt.parent,Ur=be.kind;switch(Xt.kind){case 27:return Ur===257||tu(Xt)||Ur===240||Ur===263||yu(Ur)||Ur===261||Ur===204||Ur===262||e.isClassLike(be)&&!!be.typeParameters&&be.typeParameters.end>=Xt.pos;case 24:return Ur===204;case 58:return Ur===205;case 22:return Ur===204;case 20:return Ur===295||yu(Ur);case 18:return Ur===263;case 29:return Ur===260||Ur===228||Ur===261||Ur===262||e.isFunctionLikeKind(Ur);case 124:return Ur===169&&!e.isClassLike(be.parent);case 25:return Ur===166||!!be.parent&&be.parent.kind===204;case 123:case 121:case 122:return Ur===166&&!e.isConstructorDeclaration(be.parent);case 128:return Ur===273||Ur===278||Ur===271;case 137:case 151:return!$r(Xt);case 79:if(Ur===273&&Xt===be.name&&Xt.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return Ur!==273;case 41:return e.isFunctionLike(Xt.parent)&&!e.isMethodDeclaration(Xt.parent)}if(or(Rr(Xt))&&$r(Xt)||Ia(Xt)&&(!e.isIdentifier(Xt)||e.isParameterPropertyModifier(Rr(Xt))||nc(Xt)))return!1;switch(Rr(Xt)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return e.isPropertyDeclaration(Xt.parent)}var At=e.findAncestor(Xt.parent,e.isClassLike);if(At&&Xt===yn&&ds(Xt,ar))return!1;var an=e.getAncestor(Xt.parent,169);if(an&&Xt!==yn&&e.isClassLike(yn.parent.parent)&&ar<=yn.end){if(ds(Xt,yn.end))return!1;if(Xt.kind!==63&&(e.isInitializedProperty(an)||e.hasType(an)))return!0}return e.isDeclarationName(Xt)&&!e.isShorthandPropertyAssignment(Xt.parent)&&!e.isJsxAttribute(Xt.parent)&&!(e.isClassLike(Xt.parent)&&(Xt!==yn||ar>yn.end))}function ds(Xt,be){return Xt.kind!==63&&(Xt.kind===26||!e.positionsAreOnSameLine(Xt.end,be,We))}function yu(Xt){return e.isFunctionLikeKind(Xt)&&Xt!==173}function bu(Xt){if(Xt.kind===8){var be=Xt.getFullText();return be.charAt(be.length-1)==="."}return!1}function tu(Xt){return Xt.parent.kind===258&&!e.isPossiblyTypeArgumentPosition(Xt,We,Ar)}function $c(Xt,be){if(be.length===0)return Xt;for(var Ur=new e.Set,At=new e.Set,an=0,Kn=be;an<Kn.length;an++){var Yn=Kn[an];if(!(Yn.kind!==299&&Yn.kind!==300&&Yn.kind!==205&&Yn.kind!==171&&Yn.kind!==174&&Yn.kind!==175&&Yn.kind!==301)&&!nc(Yn)){var Si=void 0;if(e.isSpreadAssignment(Yn))Su(Yn,Ur);else if(e.isBindingElement(Yn)&&Yn.propertyName)Yn.propertyName.kind===79&&(Si=Yn.propertyName.escapedText);else{var vi=e.getNameOfDeclaration(Yn);Si=vi&&e.isPropertyNameLiteral(vi)?e.getEscapedTextOfIdentifierOrLiteral(vi):void 0}Si!==void 0&&At.add(Si)}}var Da=Xt.filter(function(ta){return!At.has(ta.escapedName)});return Hc(Ur,Da),Da}function Su(Xt,be){var Ur=Xt.expression,At=Ar.getSymbolAtLocation(Ur),an=At&&Ar.getTypeOfSymbolAtLocation(At,Ur),Kn=an&&an.properties;Kn&&Kn.forEach(function(Yn){be.add(Yn.name)})}function Lc(){fn.forEach(function(Xt){var be;if(Xt.flags&16777216){var Ur=e.getSymbolId(Xt);ra[Ur]=(be=ra[Ur])!==null&&be!==void 0?be:c.SortText.OptionalMember}})}function Hc(Xt,be){if(Xt.size!==0)for(var Ur=0,At=be;Ur<At.length;Ur++){var an=At[Ur];Xt.has(an.name)&&(ra[e.getSymbolId(an)]=c.SortText.MemberDeclaredBySpreadAssignment)}}function tc(Xt){for(var be,Ur=Xt;Ur<fn.length;Ur++){var At=fn[Ur],an=e.getSymbolId(At),Kn=ma==null?void 0:ma[Ur],Yn=e.getEmitScriptTarget(dr),Si=mr(At,Yn,Kn,0,!1);if(Si){var vi=(be=ra[an])!==null&&be!==void 0?be:c.SortText.LocationPriority,Da=Si.name;ra[an]=c.SortText.ObjectLiteralProperty(vi,Da)}}}function fc(Xt,be,Ur){for(var At=new e.Set,an=0,Kn=be;an<Kn.length;an++){var Yn=Kn[an];if(!(Yn.kind!==169&&Yn.kind!==171&&Yn.kind!==174&&Yn.kind!==175)&&!nc(Yn)&&!e.hasEffectiveModifier(Yn,8)&&e.isStatic(Yn)===!!(Ur&32)){var Si=e.getPropertyNameForPropertyNameNode(Yn.name);Si&&At.add(Si)}}return Xt.filter(function(vi){return!At.has(vi.escapedName)&&!!vi.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(vi)&8)&&!(vi.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(vi.valueDeclaration))})}function nu(Xt,be){for(var Ur=new e.Set,At=new e.Set,an=0,Kn=be;an<Kn.length;an++){var Yn=Kn[an];nc(Yn)||(Yn.kind===288?Ur.add(Yn.name.escapedText):e.isJsxSpreadAttribute(Yn)&&Su(Yn,At))}var Si=Xt.filter(function(vi){return!Ur.has(vi.escapedName)});return Hc(At,Si),Si}function nc(Xt){return Xt.getStart(We)<=ar&&ar<=Xt.getEnd()}}function Ue(ye){if(ye){var Ie=ye.parent;switch(ye.kind){case 18:case 27:if(e.isObjectLiteralExpression(Ie)||e.isObjectBindingPattern(Ie))return Ie;break;case 41:return e.isMethodDeclaration(Ie)?e.tryCast(Ie.parent,e.isObjectLiteralExpression):void 0;case 79:return ye.text==="async"&&e.isShorthandPropertyAssignment(ye.parent)?ye.parent.parent:void 0}}}function Je(ye,Ie){var We=e.findPrecedingToken(ye,Ie);if(We&&ye<=We.end&&(e.isMemberName(We)||e.isKeyword(We.kind))){var dr=e.findPrecedingToken(We.getFullStart(),Ie,void 0);return{contextToken:dr,previousToken:We}}return{contextToken:We,previousToken:We}}function lr(ye,Ie,We,dr){var ar=Ie.isPackageJsonImport?dr.getPackageJsonAutoImportProvider():We,Sr=ar.getTypeChecker(),Or=Ie.ambientModuleName?Sr.tryFindAmbientModule(Ie.ambientModuleName):Ie.fileName?Sr.getMergedSymbol(e.Debug.checkDefined(ar.getSourceFile(Ie.fileName)).symbol):void 0;if(Or){var Ge=Ie.exportName==="export="?Sr.resolveExternalModuleSymbol(Or):Sr.tryGetMemberInModuleExportsAndProperties(Ie.exportName,Or);if(Ge){var ur=Ie.exportName==="default";return Ge=ur&&e.getLocalSymbolForExportDefault(Ge)||Ge,{symbol:Ge,origin:De(Ie,ye,Or)}}}}function mr(ye,Ie,We,dr,ar){var Sr=E(We)?We.symbolName:ye.name;if(!(Sr===void 0||ye.flags&1536&&e.isSingleOrDoubleQuote(Sr.charCodeAt(0))||e.isKnownSymbol(ye))){var Or={name:Sr,needsConvertPropertyAccess:!1};if(e.isIdentifierText(Sr,Ie,ar?1:0)||ye.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(ye.valueDeclaration))return Or;switch(dr){case 3:return;case 0:return{name:JSON.stringify(Sr),needsConvertPropertyAccess:!1};case 2:case 1:return Sr.charCodeAt(0)===32?void 0:{name:Sr,needsConvertPropertyAccess:!0};case 5:case 4:return Or;default:e.Debug.assertNever(dr)}}}var Hr=[],wr=e.memoize(function(){for(var ye=[],Ie=81;Ie<=162;Ie++)ye.push({name:e.tokenToString(Ie),kind:"keyword",kindModifiers:"",sortText:c.SortText.GlobalsOrKeywords});return ye});function Oe(ye,Ie){if(!Ie)return Ze(ye);var We=ye+8+1;return Hr[We]||(Hr[We]=Ze(ye).filter(function(dr){return!tt(e.stringToToken(dr.name))}))}function Ze(ye){return Hr[ye]||(Hr[ye]=wr().filter(function(Ie){var We=e.stringToToken(Ie.name);switch(ye){case 0:return!1;case 1:return qr(We)||We===136||We===142||We===154||We===143||We===126||e.isTypeKeyword(We)&&We!==155;case 5:return qr(We);case 2:return or(We);case 3:return ut(We);case 4:return e.isParameterPropertyModifier(We);case 6:return e.isTypeKeyword(We)||We===85;case 7:return e.isTypeKeyword(We);case 8:return We===154;default:return e.Debug.assertNever(ye)}}))}function tt(ye){switch(ye){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}function ut(ye){return ye===146}function or(ye){switch(ye){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return e.isClassMemberModifier(ye)}}function qr(ye){return ye===132||ye===133||ye===128||ye===150||ye===154||!e.isContextualKeyword(ye)&&!or(ye)}function Rr(ye){return e.isIdentifier(ye)?ye.originalKeywordKind||0:ye.kind}function zr(ye,Ie){var We=[];if(ye){var dr=ye.getSourceFile(),ar=ye.parent,Sr=dr.getLineAndCharacterOfPosition(ye.end).line,Or=dr.getLineAndCharacterOfPosition(Ie).line;(e.isImportDeclaration(ar)||e.isExportDeclaration(ar)&&ar.moduleSpecifier)&&ye===ar.moduleSpecifier&&Sr===Or&&We.push({name:e.tokenToString(130),kind:"keyword",kindModifiers:"",sortText:c.SortText.GlobalsOrKeywords})}return We}function Fr(ye,Ie){return e.findAncestor(ye,function(We){return e.isJSDocTag(We)&&e.rangeContainsPosition(We,Ie)?!0:e.isJSDoc(We)?"quit":!1})}function _t(ye,Ie,We,dr){var ar=Ie&&Ie!==ye,Sr=ar&&!(Ie.flags&3)?dr.getUnionType([ye,Ie]):ye,Or=Ct(Sr,We,dr);return Sr.isClass()&&yt(Or)?[]:ar?e.filter(Or,Ge):Or;function Ge(ur){return e.length(ur.declarations)?e.some(ur.declarations,function(Lr){return Lr.parent!==We}):!0}}c.getPropertiesForObjectExpression=_t;function Ct(ye,Ie,We){return ye.isUnion()?We.getAllPossiblePropertiesOfTypes(e.filter(ye.types,function(dr){return!(dr.flags&131068||We.isArrayLikeType(dr)||We.isTypeInvalidDueToUnionDiscriminant(dr,Ie)||e.typeHasCallOrConstructSignatures(dr,We)||dr.isClass()&&yt(dr.getApparentProperties()))})):ye.getApparentProperties()}function yt(ye){return e.some(ye,function(Ie){return!!(e.getDeclarationModifierFlagsFromSymbol(Ie)&24)})}function Fe(ye,Ie){return ye.isUnion()?e.Debug.checkEachDefined(Ie.getAllPossiblePropertiesOfTypes(ye.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(ye.getApparentProperties(),"getApparentProperties() should all be defined")}function vr(ye,Ie,We,dr){switch(We.kind){case 351:return e.tryCast(We.parent,e.isObjectTypeDeclaration);case 1:var ar=e.tryCast(e.lastOrUndefined(e.cast(We.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(ar&&!e.findChildOfKind(ar,19,ye))return ar;break;case 79:{var Sr=We.originalKeywordKind;if(Sr&&e.isKeyword(Sr)||e.isPropertyDeclaration(We.parent)&&We.parent.initializer===We)return;if($r(We))return e.findAncestor(We,e.isObjectTypeDeclaration)}}if(Ie){if(We.kind===135||e.isIdentifier(Ie)&&e.isPropertyDeclaration(Ie.parent)&&e.isClassLike(We))return e.findAncestor(Ie,e.isClassLike);switch(Ie.kind){case 63:return;case 26:case 19:return $r(We)&&We.parent.name===We?We.parent.parent:e.tryCast(We,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(Ie.parent,e.isObjectTypeDeclaration);default:if(!$r(Ie))return e.getLineAndCharacterOfPosition(ye,Ie.getEnd()).line!==e.getLineAndCharacterOfPosition(ye,dr).line&&e.isObjectTypeDeclaration(We)?We:void 0;var Or=e.isClassLike(Ie.parent.parent)?or:ut;return Or(Ie.kind)||Ie.kind===41||e.isIdentifier(Ie)&&Or(e.stringToToken(Ie.text))?Ie.parent.parent:void 0}}}function Le(ye){if(ye){var Ie=ye.parent;switch(ye.kind){case 18:if(e.isTypeLiteralNode(Ie))return Ie;break;case 26:case 27:case 79:if(Ie.kind===168&&e.isTypeLiteralNode(Ie.parent))return Ie.parent;break}}}function cr(ye,Ie){if(ye){if(e.isTypeNode(ye)&&e.isTypeReferenceType(ye.parent))return Ie.getTypeArgumentConstraint(ye);var We=cr(ye.parent,Ie);if(We)switch(ye.kind){case 168:return Ie.getTypeOfPropertyOfContextualType(We,ye.symbol.escapedName);case 190:case 184:case 189:return We}}}function $r(ye){return ye.parent&&e.isClassOrTypeElement(ye.parent)&&e.isObjectTypeDeclaration(ye.parent.parent)}function Re(ye,Ie,We,dr){switch(Ie){case".":case"@":return!0;case'"':case"'":case"`":return!!We&&e.isStringLiteralOrTemplate(We)&&dr===We.getStart(ye)+1;case"#":return!!We&&e.isPrivateIdentifier(We)&&!!e.getContainingClass(We);case"<":return!!We&&We.kind===29&&(!e.isBinaryExpression(We.parent)||xr(We.parent));case"/":return!!We&&(e.isStringLiteralLike(We)?!!e.tryGetImportFromModuleSpecifier(We):We.kind===43&&e.isJsxClosingElement(We.parent));case" ":return!!We&&e.isImportKeyword(We)&&We.parent.kind===308;default:return e.Debug.assertNever(Ie)}}function xr(ye){var Ie=ye.left;return e.nodeIsMissing(Ie)}function Br(ye,Ie,We){var dr=We.resolveName("self",void 0,111551,!1);if(dr&&We.getTypeOfSymbolAtLocation(dr,Ie)===ye)return!0;var ar=We.resolveName("global",void 0,111551,!1);if(ar&&We.getTypeOfSymbolAtLocation(ar,Ie)===ye)return!0;var Sr=We.resolveName("globalThis",void 0,111551,!1);return!!(Sr&&We.getTypeOfSymbolAtLocation(Sr,Ie)===ye)}function Qr(ye){return!!(ye.valueDeclaration&&e.getEffectiveModifierFlags(ye.valueDeclaration)&32&&e.isClassLike(ye.valueDeclaration.parent))}function ct(ye,Ie){var We=Ie.getContextualType(ye);if(We)return We;var dr=e.walkUpParenthesizedExpressions(ye.parent);if(e.isBinaryExpression(dr)&&dr.operatorToken.kind===63&&ye===dr.left)return Ie.getTypeAtLocation(dr);if(e.isExpression(dr))return Ie.getContextualType(dr)}function ft(ye){var Ie,We,dr,ar,Sr=!1,Or=Ge();return{isKeywordOnlyCompletion:Sr,keywordCompletion:ar,isNewIdentifierLocation:!!(Or||ar===154),isTopLevelTypeOnly:!!(!((We=(Ie=e.tryCast(Or,e.isImportDeclaration))===null||Ie===void 0?void 0:Ie.importClause)===null||We===void 0)&&We.isTypeOnly)||!!(!((dr=e.tryCast(Or,e.isImportEqualsDeclaration))===null||dr===void 0)&&dr.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!Or&&Ke(Or,ye),replacementSpan:Dt(Or)};function Ge(){var ur=ye.parent;if(e.isImportEqualsDeclaration(ur))return ar=ye.kind===154?void 0:154,Yr(ur.moduleReference)?ur:void 0;if(Ke(ur,ye)&&Vr(ur.parent))return ur;if(e.isNamedImports(ur)||e.isNamespaceImport(ur)){if(!ur.parent.isTypeOnly&&(ye.kind===18||ye.kind===100||ye.kind===27)&&(ar=154),Vr(ur))if(ye.kind===19||ye.kind===79)Sr=!0,ar=158;else return ur.parent.parent;return}if(e.isImportKeyword(ye)&&e.isSourceFile(ur))return ar=154,ye;if(e.isImportKeyword(ye)&&e.isImportDeclaration(ur))return ar=154,Yr(ur.moduleSpecifier)?ur:void 0}}function Dt(ye){var Ie,We,dr;if(ye){var ar=(Ie=e.findAncestor(ye,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration)))!==null&&Ie!==void 0?Ie:ye,Sr=ar.getSourceFile();if(e.rangeIsOnSingleLine(ar,Sr))return e.createTextSpanFromNode(ar,Sr);e.Debug.assert(ar.kind!==100&&ar.kind!==273);var Or=ar.kind===269?(dr=Me((We=ar.importClause)===null||We===void 0?void 0:We.namedBindings))!==null&&dr!==void 0?dr:ar.moduleSpecifier:ar.moduleReference,Ge={pos:ar.getFirstToken().getStart(),end:Or.pos};if(e.rangeIsOnSingleLine(Ge,Sr))return e.createTextSpanFromRange(Ge)}}function Me(ye){var Ie;return e.find((Ie=e.tryCast(ye,e.isNamedImports))===null||Ie===void 0?void 0:Ie.elements,function(We){var dr;return!We.propertyName&&e.isStringANonContextualKeyword(We.name.text)&&((dr=e.findPrecedingToken(We.name.pos,ye.getSourceFile(),ye))===null||dr===void 0?void 0:dr.kind)!==27})}function Ke(ye,Ie){return e.isImportSpecifier(ye)&&(ye.isTypeOnly||Ie===ye.name&&e.isTypeKeywordTokenOrIdentifier(Ie))}function Vr(ye){if(!Yr(ye.parent.parent.moduleSpecifier)||ye.parent.name)return!1;if(e.isNamedImports(ye)){var Ie=Me(ye),We=Ie?ye.elements.indexOf(Ie):ye.elements.length;return We<2}return!0}function Yr(ye){var Ie;return e.nodeIsMissing(ye)?!0:!(!((Ie=e.tryCast(e.isExternalModuleReference(ye)?ye.expression:ye,e.isStringLiteralLike))===null||Ie===void 0)&&Ie.text)}function Nt(ye){var Ie=e.findAncestor(ye,function(We){return e.isFunctionBlock(We)||Wt(We)||e.isBindingPattern(We)?"quit":e.isVariableDeclaration(We)});return Ie}function Wt(ye){return ye.parent&&e.isArrowFunction(ye.parent)&&ye.parent.body===ye}function sn(ye,Ie,We){return We===void 0&&(We=new e.Map),dr(ye)||dr(e.skipAlias(ye.exportSymbol||ye,Ie));function dr(ar){return!!(ar.flags&788968)||Ie.isUnknownSymbol(ar)||!!(ar.flags&1536)&&e.addToSeen(We,e.getSymbolId(ar))&&Ie.getExportsOfModule(ar).some(function(Sr){return sn(Sr,Ie,We)})}}function en(ye,Ie){var We=e.skipAlias(ye,Ie).declarations;return!!e.length(We)&&e.every(We,e.isDeprecatedDeclaration)}function Ir(ye,Ie){if(Ie.length===0)return!0;for(var We=!1,dr,ar=0,Sr=ye.length,Or=0;Or<Sr;Or++){var Ge=ye.charCodeAt(Or),ur=Ie.charCodeAt(ar);if((Ge===ur||Ge===Jr(ur))&&(We||(We=dr===void 0||97<=dr&&dr<=122&&65<=Ge&&Ge<=90||dr===95&&Ge!==95),We&&ar++,ar===Ie.length))return!0;dr=Ge}return!1}function Jr(ye){return 97<=ye&&ye<=122?ye-32:ye}})(e.Completions||(e.Completions={}))})(h||(h={}));var h;(function(e){(function(c){function P(oe,w,re,M,U){var H=e.getTouchingPropertyName(re,M);if(H.parent&&(e.isJsxOpeningElement(H.parent)&&H.parent.tagName===H||e.isJsxClosingElement(H.parent))){var q=H.parent.parent,R=q.openingElement,K=q.closingElement,I=[R,K].map(function(he){var le=he.tagName;return T(le,re)});return[{fileName:re.fileName,highlightSpans:I}]}return s(M,H,oe,w,U)||D(H,re)}c.getDocumentHighlights=P;function T(oe,w){return{fileName:w.fileName,textSpan:e.createTextSpanFromNode(oe,w),kind:"none"}}function s(oe,w,re,M,U){var H=new e.Set(U.map(function(I){return I.fileName})),q=e.FindAllReferences.getReferenceEntriesForNode(oe,w,re,U,M,void 0,H);if(q){var R=e.arrayToMultiMap(q.map(e.FindAllReferences.toHighlightSpan),function(I){return I.fileName},function(I){return I.span}),K=e.createGetCanonicalFileName(re.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(R.entries()),function(I){var he=I[0],le=I[1];if(!H.has(he)){if(!re.redirectTargetsMap.has(e.toPath(he,re.getCurrentDirectory(),K)))return;var ee=re.getSourceFile(he),J=e.find(U,function(de){return!!de.redirectInfo&&de.redirectInfo.redirectTarget===ee});he=J.fileName,e.Debug.assert(H.has(he))}return{fileName:he,highlightSpans:le}})}}function D(oe,w){var re=O(oe,w);return re&&[{fileName:w.fileName,highlightSpans:re}]}function O(oe,w){switch(oe.kind){case 99:case 91:return e.isIfStatement(oe.parent)?fe(oe.parent,w):void 0;case 105:return U(oe.parent,e.isReturnStatement,F);case 109:return U(oe.parent,e.isThrowStatement,B);case 111:case 83:case 96:var re=oe.kind===83?oe.parent.parent:oe.parent;return U(re,e.isTryStatement,C);case 107:return U(oe.parent,e.isSwitchStatement,y);case 82:case 88:return e.isDefaultClause(oe.parent)||e.isCaseClause(oe.parent)?U(oe.parent.parent.parent,e.isSwitchStatement,y):void 0;case 81:case 86:return U(oe.parent,e.isBreakOrContinueStatement,A);case 97:case 115:case 90:return U(oe.parent,function(q){return e.isIterationStatement(q,!0)},X);case 135:return M(e.isConstructorDeclaration,[135]);case 137:case 151:return M(e.isAccessor,[137,151]);case 133:return U(oe.parent,e.isAwaitExpression,z);case 132:return H(z(oe));case 125:return H(ge(oe));case 101:return;default:return e.isModifierKind(oe.kind)&&(e.isDeclaration(oe.parent)||e.isVariableStatement(oe.parent))?H(Z(oe.kind,oe.parent)):void 0}function M(q,R){return U(oe.parent,q,function(K){return e.mapDefined(K.symbol.declarations,function(I){return q(I)?e.find(I.getChildren(w),function(he){return e.contains(R,he.kind)}):void 0})})}function U(q,R,K){return R(q)?H(K(q,w)):void 0}function H(q){return q&&q.map(function(R){return T(R,w)})}}function W(oe){return e.isThrowStatement(oe)?[oe]:e.isTryStatement(oe)?e.concatenate(oe.catchClause?W(oe.catchClause):oe.tryBlock&&W(oe.tryBlock),oe.finallyBlock&&W(oe.finallyBlock)):e.isFunctionLike(oe)?void 0:S(oe,W)}function E(oe){for(var w=oe;w.parent;){var re=w.parent;if(e.isFunctionBlock(re)||re.kind===308)return re;if(e.isTryStatement(re)&&re.tryBlock===w&&re.catchClause)return w;w=re}}function v(oe){return e.isBreakOrContinueStatement(oe)?[oe]:e.isFunctionLike(oe)?void 0:S(oe,v)}function S(oe,w){var re=[];return oe.forEachChild(function(M){var U=w(M);U!==void 0&&re.push.apply(re,e.toArray(U))}),re}function te(oe,w){var re=Y(w);return!!re&&re===oe}function Y(oe){return e.findAncestor(oe,function(w){switch(w.kind){case 252:if(oe.kind===248)return!1;case 245:case 246:case 247:case 244:case 243:return!oe.label||ne(w,oe.label.escapedText);default:return e.isFunctionLike(w)&&"quit"}})}function Z(oe,w){return e.mapDefined(ce(w,e.modifierToFlag(oe)),function(re){return e.findModifier(re,oe)})}function ce(oe,w){var re=oe.parent;switch(re.kind){case 265:case 308:case 238:case 292:case 293:return w&256&&e.isClassDeclaration(oe)?t(t([],oe.members,!0),[oe],!1):re.statements;case 173:case 171:case 259:return t(t([],re.parameters,!0),e.isClassLike(re.parent)?re.parent.members:[],!0);case 260:case 228:case 261:case 184:var M=re.members;if(w&92){var U=e.find(re.members,e.isConstructorDeclaration);if(U)return t(t([],M,!0),U.parameters,!0)}else if(w&256)return t(t([],M,!0),[re],!1);return M;case 207:return;default:e.Debug.assertNever(re,"Invalid container kind.")}}function k(oe,w){for(var re=[],M=2;M<arguments.length;M++)re[M-2]=arguments[M];return w&&e.contains(re,w.kind)?(oe.push(w),!0):!1}function X(oe){var w=[];if(k(w,oe.getFirstToken(),97,115,90)&&oe.kind===243)for(var re=oe.getChildren(),M=re.length-1;M>=0&&!k(w,re[M],115);M--);return e.forEach(v(oe.statement),function(U){te(oe,U)&&k(w,U.getFirstToken(),81,86)}),w}function A(oe){var w=Y(oe);if(w)switch(w.kind){case 245:case 246:case 247:case 243:case 244:return X(w);case 252:return y(w)}}function y(oe){var w=[];return k(w,oe.getFirstToken(),107),e.forEach(oe.caseBlock.clauses,function(re){k(w,re.getFirstToken(),82,88),e.forEach(v(re),function(M){te(oe,M)&&k(w,M.getFirstToken(),81)})}),w}function C(oe,w){var re=[];if(k(re,oe.getFirstToken(),111),oe.catchClause&&k(re,oe.catchClause.getFirstToken(),83),oe.finallyBlock){var M=e.findChildOfKind(oe,96,w);k(re,M,96)}return re}function B(oe,w){var re=E(oe);if(re){var M=[];return e.forEach(W(re),function(U){M.push(e.findChildOfKind(U,109,w))}),e.isFunctionBlock(re)&&e.forEachReturnStatement(re,function(U){M.push(e.findChildOfKind(U,105,w))}),M}}function F(oe,w){var re=e.getContainingFunction(oe);if(re){var M=[];return e.forEachReturnStatement(e.cast(re.body,e.isBlock),function(U){M.push(e.findChildOfKind(U,105,w))}),e.forEach(W(re.body),function(U){M.push(e.findChildOfKind(U,109,w))}),M}}function z(oe){var w=e.getContainingFunction(oe);if(w){var re=[];return w.modifiers&&w.modifiers.forEach(function(M){k(re,M,132)}),e.forEachChild(w,function(M){Pe(M,function(U){e.isAwaitExpression(U)&&k(re,U.getFirstToken(),133)})}),re}}function ge(oe){var w=e.getContainingFunction(oe);if(w){var re=[];return e.forEachChild(w,function(M){Pe(M,function(U){e.isYieldExpression(U)&&k(re,U.getFirstToken(),125)})}),re}}function Pe(oe,w){w(oe),!e.isFunctionLike(oe)&&!e.isClassLike(oe)&&!e.isInterfaceDeclaration(oe)&&!e.isModuleDeclaration(oe)&&!e.isTypeAliasDeclaration(oe)&&!e.isTypeNode(oe)&&e.forEachChild(oe,function(re){return Pe(re,w)})}function fe(oe,w){for(var re=_e(oe,w),M=[],U=0;U<re.length;U++){if(re[U].kind===91&&U<re.length-1){for(var H=re[U],q=re[U+1],R=!0,K=q.getStart(w)-1;K>=H.end;K--)if(!e.isWhiteSpaceSingleLine(w.text.charCodeAt(K))){R=!1;break}if(R){M.push({fileName:w.fileName,textSpan:e.createTextSpanFromBounds(H.getStart(),q.end),kind:"reference"}),U++;continue}}M.push(T(re[U],w))}return M}function _e(oe,w){for(var re=[];e.isIfStatement(oe.parent)&&oe.parent.elseStatement===oe;)oe=oe.parent;for(;;){var M=oe.getChildren(w);k(re,M[0],99);for(var U=M.length-1;U>=0&&!k(re,M[U],91);U--);if(!oe.elseStatement||!e.isIfStatement(oe.elseStatement))break;oe=oe.elseStatement}return re}function ne(oe,w){return!!e.findAncestor(oe.parent,function(re){return e.isLabeledStatement(re)?re.label.escapedText===w:"quit"})}})(e.DocumentHighlights||(e.DocumentHighlights={}))})(h||(h={}));var h;(function(e){function c(W){return!!W.sourceFile}function P(W,E){return T(W,E)}e.createDocumentRegistry=P;function T(W,E,v){E===void 0&&(E="");var S=new e.Map,te=e.createGetCanonicalFileName(!!W);function Y(){var ge=e.arrayFrom(S.keys()).filter(function(Pe){return Pe&&Pe.charAt(0)==="_"}).map(function(Pe){var fe=S.get(Pe),_e=[];return fe.forEach(function(ne,oe){c(ne)?_e.push({name:oe,scriptKind:ne.sourceFile.scriptKind,refCount:ne.languageServiceRefCount}):ne.forEach(function(w,re){return _e.push({name:oe,scriptKind:re,refCount:w.languageServiceRefCount})})}),_e.sort(function(ne,oe){return oe.refCount-ne.refCount}),{bucket:Pe,sourceFiles:_e}});return JSON.stringify(ge,void 0,2)}function Z(ge){return typeof ge.getCompilationSettings=="function"?ge.getCompilationSettings():ge}function ce(ge,Pe,fe,_e,ne,oe){var w=e.toPath(ge,E,te),re=D(Z(Pe));return k(ge,w,Pe,re,fe,_e,ne,oe)}function k(ge,Pe,fe,_e,ne,oe,w,re){return C(ge,Pe,fe,_e,ne,oe,!0,w,re)}function X(ge,Pe,fe,_e,ne,oe){var w=e.toPath(ge,E,te),re=D(Z(Pe));return A(ge,w,Pe,re,fe,_e,ne,oe)}function A(ge,Pe,fe,_e,ne,oe,w,re){return C(ge,Pe,Z(fe),_e,ne,oe,!1,w,re)}function y(ge,Pe){var fe=c(ge)?ge:ge.get(e.Debug.checkDefined(Pe,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(Pe===void 0||!fe||fe.sourceFile.scriptKind===Pe,"Script kind should match provided ScriptKind:".concat(Pe," and sourceFile.scriptKind: ").concat(fe==null?void 0:fe.sourceFile.scriptKind,", !entry: ").concat(!fe)),fe}function C(ge,Pe,fe,_e,ne,oe,w,re,M){var U,H,q,R;re=e.ensureScriptKind(ge,re);var K=Z(fe),I=fe===K?void 0:fe,he=re===6?100:e.getEmitScriptTarget(K),le=typeof M=="object"?M:{languageVersion:he,impliedNodeFormat:I&&e.getImpliedNodeFormatForFile(Pe,(R=(q=(H=(U=I.getCompilerHost)===null||U===void 0?void 0:U.call(I))===null||H===void 0?void 0:H.getModuleResolutionCache)===null||q===void 0?void 0:q.call(H))===null||R===void 0?void 0:R.getPackageJsonInfoCache(),I,K),setExternalModuleIndicator:e.getSetExternalModuleIndicator(K)};le.languageVersion=he;var ee=S.size,J=O(_e,le.impliedNodeFormat),de=e.getOrUpdate(S,J,function(){return new e.Map});if(e.tracing){S.size>ee&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:K.configFilePath,key:J});var De=!e.isDeclarationFileName(Pe)&&e.forEachEntry(S,function(ae,Te){return Te!==J&&ae.has(Pe)&&Te});De&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:Pe,key1:De,key2:J})}var N=de.get(Pe),b=N&&y(N,re);if(!b&&v){var Q=v.getDocument(J,Pe);Q&&(e.Debug.assert(w),b={sourceFile:Q,languageServiceRefCount:0},G())}if(b)b.sourceFile.version!==oe&&(b.sourceFile=e.updateLanguageServiceSourceFile(b.sourceFile,ne,oe,ne.getChangeRange(b.sourceFile.scriptSnapshot)),v&&v.setDocument(J,Pe,b.sourceFile)),w&&b.languageServiceRefCount++;else{var Q=e.createLanguageServiceSourceFile(ge,ne,le,oe,!1,re);v&&v.setDocument(J,Pe,Q),b={sourceFile:Q,languageServiceRefCount:1},G()}return e.Debug.assert(b.languageServiceRefCount!==0),b.sourceFile;function G(){if(!N)de.set(Pe,b);else if(c(N)){var ae=new e.Map;ae.set(N.sourceFile.scriptKind,N),ae.set(re,b),de.set(Pe,ae)}else N.set(re,b)}}function B(ge,Pe,fe,_e){var ne=e.toPath(ge,E,te),oe=D(Pe);return F(ne,oe,fe,_e)}function F(ge,Pe,fe,_e){var ne=e.Debug.checkDefined(S.get(O(Pe,_e))),oe=ne.get(ge),w=y(oe,fe);w.languageServiceRefCount--,e.Debug.assert(w.languageServiceRefCount>=0),w.languageServiceRefCount===0&&(c(oe)?ne.delete(ge):(oe.delete(fe),oe.size===1&&ne.set(ge,e.firstDefinedIterator(oe.values(),e.identity))))}function z(ge,Pe){return e.arrayFrom(S.entries(),function(fe){var _e=fe[0],ne=fe[1],oe=ne.get(ge),w=oe&&y(oe,Pe);return[_e,w&&w.languageServiceRefCount]})}return{acquireDocument:ce,acquireDocumentWithKey:k,updateDocument:X,updateDocumentWithKey:A,releaseDocument:B,releaseDocumentWithKey:F,getLanguageServiceRefCounts:z,reportStats:Y,getKeyForCompilationSettings:D}}e.createDocumentRegistryInternal=T;function s(W){var E;if(W===null||typeof W!="object")return""+W;if(e.isArray(W))return"[".concat((E=e.map(W,function(te){return s(te)}))===null||E===void 0?void 0:E.join(","),"]");var v="{";for(var S in W)e.hasProperty(W,S)&&(v+="".concat(S,": ").concat(s(W[S])));return v+"}"}function D(W){return e.sourceFileAffectingCompilerOptions.map(function(E){return s(e.getCompilerOptionValue(W,E))}).join("|")+(W.pathsBasePath?"|".concat(W.pathsBasePath):void 0)}function O(W,E){return E?"".concat(W,"|").concat(E):W}})(h||(h={}));var h;(function(e){(function(c){function P(B,F,z,ge){var Pe=W(B,z,ge);return function(fe,_e,ne){var oe=T(B,F,Pe,_e,z,ge),w=oe.directImports,re=oe.indirectUsers;return n({indirectUsers:re},s(w,fe,_e.exportKind,z,ne))}}c.createImportTracker=P,function(B){B[B.Named=0]="Named",B[B.Default=1]="Default",B[B.ExportEquals=2]="ExportEquals"}(c.ExportKind||(c.ExportKind={})),function(B){B[B.Import=0]="Import",B[B.Export=1]="Export"}(c.ImportExport||(c.ImportExport={}));function T(B,F,z,ge,Pe,fe){var _e=ge.exportingModuleSymbol,ne=ge.exportKind,oe=e.nodeSeenTracker(),w=e.nodeSeenTracker(),re=[],M=!!_e.globalExports,U=M?void 0:[];return q(_e),{directImports:re,indirectUsers:H()};function H(){if(M)return B;if(_e.declarations)for(var ee=0,J=_e.declarations;ee<J.length;ee++){var de=J[ee];e.isExternalModuleAugmentation(de)&&F.has(de.getSourceFile().fileName)&&he(de)}return U.map(e.getSourceFileOfNode)}function q(ee){var J=le(ee);if(J)for(var de=0,De=J;de<De.length;de++){var N=De[de];if(oe(N))switch(fe&&fe.throwIfCancellationRequested(),N.kind){case 210:if(e.isImportCall(N)){R(N);break}if(!M){var b=N.parent;if(ne===2&&b.kind===257){var Q=b.name;if(Q.kind===79){re.push(Q);break}}}break;case 79:break;case 268:I(N,N.name,e.hasSyntacticModifier(N,1),!1);break;case 269:re.push(N);var G=N.importClause&&N.importClause.namedBindings;G&&G.kind===271?I(N,G.name,!1,!0):!M&&e.isDefaultImport(N)&&he(A(N));break;case 275:N.exportClause?N.exportClause.kind===277?he(A(N),!0):re.push(N):q(X(N,Pe));break;case 202:!M&&N.isTypeOf&&!N.qualifier&&K(N)&&he(N.getSourceFile(),!0),re.push(N);break;default:e.Debug.failBadSyntaxKind(N,"Unexpected import kind.")}}}function R(ee){var J=e.findAncestor(ee,y)||ee.getSourceFile();he(J,!!K(ee,!0))}function K(ee,J){return J===void 0&&(J=!1),e.findAncestor(ee,function(de){return J&&y(de)?"quit":e.canHaveModifiers(de)&&e.some(de.modifiers,e.isExportModifier)})}function I(ee,J,de,De){if(ne===2)De||re.push(ee);else if(!M){var N=A(ee);e.Debug.assert(N.kind===308||N.kind===264),de||D(N,J,Pe)?he(N,!0):he(N)}}function he(ee,J){J===void 0&&(J=!1),e.Debug.assert(!M);var de=w(ee);if(de&&(U.push(ee),!!J)){var De=Pe.getMergedSymbol(ee.symbol);if(De){e.Debug.assert(!!(De.flags&1536));var N=le(De);if(N)for(var b=0,Q=N;b<Q.length;b++){var G=Q[b];e.isImportTypeNode(G)||he(A(G),!0)}}}}function le(ee){return z.get(e.getSymbolId(ee).toString())}}function s(B,F,z,ge,Pe){var fe=[],_e=[];function ne(R,K){fe.push([R,K])}if(B)for(var oe=0,w=B;oe<w.length;oe++){var re=w[oe];M(re)}return{importSearches:fe,singleReferences:_e};function M(R){if(R.kind===268){C(R)&&U(R.name);return}if(R.kind===79){U(R);return}if(R.kind===202){if(R.qualifier){var K=e.getFirstIdentifier(R.qualifier);K.escapedText===e.symbolName(F)&&_e.push(K)}else z===2&&_e.push(R.argument.literal);return}if(R.moduleSpecifier.kind===10){if(R.kind===275){R.exportClause&&e.isNamedExports(R.exportClause)&&H(R.exportClause);return}var I=R.importClause||{name:void 0,namedBindings:void 0},he=I.name,le=I.namedBindings;if(le)switch(le.kind){case 271:U(le.name);break;case 272:(z===0||z===1)&&H(le);break;default:e.Debug.assertNever(le)}if(he&&(z===1||z===2)&&(!Pe||he.escapedText===e.symbolEscapedNameNoDefault(F))){var ee=ge.getSymbolAtLocation(he);ne(he,ee)}}}function U(R){z===2&&(!Pe||q(R.escapedText))&&ne(R,ge.getSymbolAtLocation(R))}function H(R){if(R)for(var K=0,I=R.elements;K<I.length;K++){var he=I[K],le=he.name,ee=he.propertyName;if(q((ee||le).escapedText))if(ee)_e.push(ee),(!Pe||le.escapedText===F.escapedName)&&ne(le,ge.getSymbolAtLocation(le));else{var J=he.kind===278&&he.propertyName?ge.getExportSpecifierLocalTargetSymbol(he):ge.getSymbolAtLocation(le);ne(le,J)}}}function q(R){return R===F.escapedName||z!==0&&R==="default"}}function D(B,F,z){var ge=z.getSymbolAtLocation(F);return!!E(B,function(Pe){if(e.isExportDeclaration(Pe)){var fe=Pe.exportClause,_e=Pe.moduleSpecifier;return!_e&&fe&&e.isNamedExports(fe)&&fe.elements.some(function(ne){return z.getExportSpecifierLocalTargetSymbol(ne)===ge})}})}function O(B,F,z){for(var ge=[],Pe=B.getTypeChecker(),fe=0,_e=F;fe<_e.length;fe++){var ne=_e[fe],oe=z.valueDeclaration;if((oe==null?void 0:oe.kind)===308){for(var w=0,re=ne.referencedFiles;w<re.length;w++){var M=re[w];B.getSourceFileFromReference(ne,M)===oe&&ge.push({kind:"reference",referencingFile:ne,ref:M})}for(var U=0,H=ne.typeReferenceDirectives;U<H.length;U++){var M=H[U],q=B.getResolvedTypeReferenceDirectives().get(M.fileName,M.resolutionMode||ne.impliedNodeFormat);q!==void 0&&q.resolvedFileName===oe.fileName&&ge.push({kind:"reference",referencingFile:ne,ref:M})}}v(ne,function(R,K){var I=Pe.getSymbolAtLocation(K);I===z&&ge.push({kind:"import",literal:K})})}return ge}c.findModuleReferences=O;function W(B,F,z){for(var ge=new e.Map,Pe=0,fe=B;Pe<fe.length;Pe++){var _e=fe[Pe];z&&z.throwIfCancellationRequested(),v(_e,function(ne,oe){var w=F.getSymbolAtLocation(oe);if(w){var re=e.getSymbolId(w).toString(),M=ge.get(re);M||ge.set(re,M=[]),M.push(ne)}})}return ge}function E(B,F){return e.forEach(B.kind===308?B.statements:B.body.statements,function(z){return F(z)||y(z)&&e.forEach(z.body&&z.body.statements,F)})}function v(B,F){if(B.externalModuleIndicator||B.imports!==void 0)for(var z=0,ge=B.imports;z<ge.length;z++){var Pe=ge[z];F(e.importFromModuleSpecifier(Pe),Pe)}else E(B,function(fe){switch(fe.kind){case 275:case 269:{var _e=fe;_e.moduleSpecifier&&e.isStringLiteral(_e.moduleSpecifier)&&F(_e,_e.moduleSpecifier);break}case 268:{var _e=fe;C(_e)&&F(_e,_e.moduleReference.expression);break}}})}function S(B,F,z,ge){return ge?Pe():Pe()||fe();function Pe(){var oe,w=B.parent,re=w.parent;if(F.exportSymbol)return w.kind===208?!((oe=F.declarations)===null||oe===void 0)&&oe.some(function(R){return R===w})&&e.isBinaryExpression(re)?q(re,!1):void 0:_e(F.exportSymbol,ne(w));var M=Y(w,B);if(M&&e.hasSyntacticModifier(M,1))if(e.isImportEqualsDeclaration(M)&&M.moduleReference===B){if(ge)return;var U=z.getSymbolAtLocation(M.name);return{kind:0,symbol:U}}else return _e(F,ne(M));else{if(e.isNamespaceExport(w))return _e(F,0);if(e.isExportAssignment(w))return H(w);if(e.isExportAssignment(re))return H(re);if(e.isBinaryExpression(w))return q(w,!0);if(e.isBinaryExpression(re))return q(re,!0);if(e.isJSDocTypedefTag(w))return _e(F,0)}function H(R){if(R.symbol.parent){var K=R.isExportEquals?2:1;return{kind:1,symbol:F,exportInfo:{exportingModuleSymbol:R.symbol.parent,exportKind:K}}}}function q(R,K){var I;switch(e.getAssignmentDeclarationKind(R)){case 1:I=0;break;case 2:I=2;break;default:return}var he=K?z.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(R.left,e.isAccessExpression))):F;return he&&_e(he,I)}}function fe(){var oe=Z(B);if(oe){var w=z.getImmediateAliasedSymbol(F);if(w&&(w=k(w,z),!(w.escapedName==="export="&&(w=te(w,z),w===void 0)))){var re=e.symbolEscapedNameNoDefault(w);if(re===void 0||re==="default"||re===F.escapedName)return{kind:0,symbol:w}}}}function _e(oe,w){var re=ce(oe,w,z);return re&&{kind:1,symbol:oe,exportInfo:re}}function ne(oe){return e.hasSyntacticModifier(oe,1024)?1:0}}c.getImportOrExportSymbol=S;function te(B,F){if(B.flags&2097152)return F.getImmediateAliasedSymbol(B);var z=e.Debug.checkDefined(B.valueDeclaration);if(e.isExportAssignment(z))return z.expression.symbol;if(e.isBinaryExpression(z))return z.right.symbol;if(e.isSourceFile(z))return z.symbol}function Y(B,F){var z=e.isVariableDeclaration(B)?B:e.isBindingElement(B)?e.walkUpBindingElementsAndPatterns(B):void 0;return z?B.name!==F||e.isCatchClause(z.parent)?void 0:e.isVariableStatement(z.parent.parent)?z.parent.parent:void 0:B}function Z(B){var F=B.parent;switch(F.kind){case 268:return F.name===B&&C(F);case 273:return!F.propertyName;case 270:case 271:return e.Debug.assert(F.name===B),!0;case 205:return e.isInJSFile(B)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(F.parent.parent);default:return!1}}function ce(B,F,z){var ge=B.parent;if(ge){var Pe=z.getMergedSymbol(ge);return e.isExternalModuleSymbol(Pe)?{exportingModuleSymbol:Pe,exportKind:F}:void 0}}c.getExportInfo=ce;function k(B,F){if(B.declarations)for(var z=0,ge=B.declarations;z<ge.length;z++){var Pe=ge[z];if(e.isExportSpecifier(Pe)&&!Pe.propertyName&&!Pe.parent.parent.moduleSpecifier)return F.getExportSpecifierLocalTargetSymbol(Pe);if(e.isPropertyAccessExpression(Pe)&&e.isModuleExportsAccessExpression(Pe.expression)&&!e.isPrivateIdentifier(Pe.name))return F.getSymbolAtLocation(Pe);if(e.isShorthandPropertyAssignment(Pe)&&e.isBinaryExpression(Pe.parent.parent)&&e.getAssignmentDeclarationKind(Pe.parent.parent)===2)return F.getExportSpecifierLocalTargetSymbol(Pe.name)}return B}function X(B,F){return F.getMergedSymbol(A(B).symbol)}function A(B){if(B.kind===210)return B.getSourceFile();var F=B.parent;return F.kind===308?F:(e.Debug.assert(F.kind===265),e.cast(F.parent,y))}function y(B){return B.kind===264&&B.name.kind===10}function C(B){return B.moduleReference.kind===280&&B.moduleReference.expression.kind===10}})(e.FindAllReferences||(e.FindAllReferences={}))})(h||(h={}));var h;(function(e){(function(c){(function(M){M[M.Symbol=0]="Symbol",M[M.Label=1]="Label",M[M.Keyword=2]="Keyword",M[M.This=3]="This",M[M.String=4]="String",M[M.TripleSlashReference=5]="TripleSlashReference"})(c.DefinitionKind||(c.DefinitionKind={})),function(M){M[M.Span=0]="Span",M[M.Node=1]="Node",M[M.StringLiteral=2]="StringLiteral",M[M.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",M[M.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(c.EntryKind||(c.EntryKind={}));function P(M,U){return U===void 0&&(U=1),{kind:U,node:M.name||M,context:s(M)}}c.nodeEntry=P;function T(M){return M&&M.kind===void 0}c.isContextWithStartAndEndNode=T;function s(M){if(e.isDeclaration(M))return D(M);if(M.parent){if(!e.isDeclaration(M.parent)&&!e.isExportAssignment(M.parent)){if(e.isInJSFile(M)){var U=e.isBinaryExpression(M.parent)?M.parent:e.isAccessExpression(M.parent)&&e.isBinaryExpression(M.parent.parent)&&M.parent.parent.left===M.parent?M.parent.parent:void 0;if(U&&e.getAssignmentDeclarationKind(U)!==0)return D(U)}if(e.isJsxOpeningElement(M.parent)||e.isJsxClosingElement(M.parent))return M.parent.parent;if(e.isJsxSelfClosingElement(M.parent)||e.isLabeledStatement(M.parent)||e.isBreakOrContinueStatement(M.parent))return M.parent;if(e.isStringLiteralLike(M)){var H=e.tryGetImportFromModuleSpecifier(M);if(H){var q=e.findAncestor(H,function(K){return e.isDeclaration(K)||e.isStatement(K)||e.isJSDocTag(K)});return e.isDeclaration(q)?D(q):q}}var R=e.findAncestor(M,e.isComputedPropertyName);return R?D(R.parent):void 0}if(M.parent.name===M||e.isConstructorDeclaration(M.parent)||e.isExportAssignment(M.parent)||(e.isImportOrExportSpecifier(M.parent)||e.isBindingElement(M.parent))&&M.parent.propertyName===M||M.kind===88&&e.hasSyntacticModifier(M.parent,1025))return D(M.parent)}}function D(M){if(M)switch(M.kind){case 257:return!e.isVariableDeclarationList(M.parent)||M.parent.declarations.length!==1?M:e.isVariableStatement(M.parent.parent)?M.parent.parent:e.isForInOrOfStatement(M.parent.parent)?D(M.parent.parent):M.parent;case 205:return D(M.parent.parent);case 273:return M.parent.parent.parent;case 278:case 271:return M.parent.parent;case 270:case 277:return M.parent;case 223:return e.isExpressionStatement(M.parent)?M.parent:M;case 247:case 246:return{start:M.initializer,end:M.expression};case 299:case 300:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(M.parent)?D(e.findAncestor(M.parent,function(U){return e.isBinaryExpression(U)||e.isForInOrOfStatement(U)})):M;default:return M}}c.getContextNode=D;function O(M,U,H){if(H){var q=T(H)?fe(H.start,U,H.end):fe(H,U);return q.start!==M.start||q.length!==M.length?{contextSpan:q}:void 0}}c.toContextSpan=O,function(M){M[M.Other=0]="Other",M[M.References=1]="References",M[M.Rename=2]="Rename"}(c.FindReferencesUse||(c.FindReferencesUse={}));function W(M,U,H,q,R){var K=e.getTouchingPropertyName(q,R),I={use:1},he=re.getReferencedSymbolsForNode(R,K,M,H,U,I),le=M.getTypeChecker(),ee=re.getAdjustedNode(K,I),J=E(ee)?le.getSymbolAtLocation(ee):void 0;return!he||!he.length?void 0:e.mapDefined(he,function(de){var De=de.definition,N=de.references;return De&&{definition:le.runWithCancellationToken(U,function(b){return ce(De,b,K)}),references:N.map(function(b){return y(b,J)})}})}c.findReferencedSymbols=W;function E(M){return M.kind===88||!!e.getDeclarationFromName(M)||e.isLiteralComputedPropertyDeclarationName(M)||M.kind===135&&e.isConstructorDeclaration(M.parent)}function v(M,U,H,q,R){var K=e.getTouchingPropertyName(q,R),I,he=S(M,U,H,K,R);if(K.parent.kind===208||K.parent.kind===205||K.parent.kind===209||K.kind===106)I=he&&t([],he,!0);else if(he)for(var le=e.createQueue(he),ee=new e.Map;!le.isEmpty();){var J=le.dequeue();if(e.addToSeen(ee,e.getNodeId(J.node))){I=e.append(I,J);var de=S(M,U,H,J.node,J.node.pos);de&&le.enqueue.apply(le,de)}}var De=M.getTypeChecker();return e.map(I,function(N){return z(N,De)})}c.getImplementationsAtPosition=v;function S(M,U,H,q,R){if(q.kind!==308){var K=M.getTypeChecker();if(q.parent.kind===300){var I=[];return re.getReferenceEntriesForShorthandPropertyAssignment(q,K,function(le){return I.push(P(le))}),I}else if(q.kind===106||e.isSuperProperty(q.parent)){var he=K.getSymbolAtLocation(q);return he.valueDeclaration&&[P(he.valueDeclaration)]}else return Y(R,q,M,H,U,{implementations:!0,use:1})}}function te(M,U,H,q,R,K,I){return e.map(Z(re.getReferencedSymbolsForNode(R,q,M,H,U,K)),function(he){return I(he,q,M.getTypeChecker())})}c.findReferenceOrRenameEntries=te;function Y(M,U,H,q,R,K,I){return K===void 0&&(K={}),I===void 0&&(I=new e.Set(q.map(function(he){return he.fileName}))),Z(re.getReferencedSymbolsForNode(M,U,H,q,R,K,I))}c.getReferenceEntriesForNode=Y;function Z(M){return M&&e.flatMap(M,function(U){return U.references})}function ce(M,U,H){var q=function(){switch(M.type){case 0:{var J=M.symbol,de=X(J,U,H),De=de.displayParts,N=de.kind,b=De.map(function(Ne){return Ne.text}).join(""),Q=J.declarations&&e.firstOrUndefined(J.declarations),G=Q?e.getNameOfDeclaration(Q)||Q:H;return n(n({},k(G)),{name:b,kind:N,displayParts:De,context:D(Q)})}case 1:{var G=M.node;return n(n({},k(G)),{name:G.text,kind:"label",displayParts:[e.displayPart(G.text,e.SymbolDisplayPartKind.text)]})}case 2:{var G=M.node,ae=e.tokenToString(G.kind);return n(n({},k(G)),{name:ae,kind:"keyword",displayParts:[{text:ae,kind:"keyword"}]})}case 3:{var G=M.node,J=U.getSymbolAtLocation(G),Te=J&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(U,J,G.getSourceFile(),e.getContainerNode(G),G).displayParts||[e.textPart("this")];return n(n({},k(G)),{name:"this",kind:"var",displayParts:Te})}case 4:{var G=M.node;return n(n({},k(G)),{name:G.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(G),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(M.reference),sourceFile:M.file,name:M.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(M.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(M)}}(),R=q.sourceFile,K=q.textSpan,I=q.name,he=q.kind,le=q.displayParts,ee=q.context;return n({containerKind:"",containerName:"",fileName:R.fileName,kind:he,name:I,textSpan:K,displayParts:le},O(K,R,ee))}function k(M){var U=M.getSourceFile();return{sourceFile:U,textSpan:fe(e.isComputedPropertyName(M)?M.expression:M,U)}}function X(M,U,H){var q=re.getIntersectingMeaningFromDeclarations(H,M),R=M.declarations&&e.firstOrUndefined(M.declarations)||H,K=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(U,M,R.getSourceFile(),R,R,q),I=K.displayParts,he=K.symbolKind;return{displayParts:I,kind:he}}function A(M,U,H,q){return n(n({},B(M)),q&&F(M,U,H))}c.toRenameLocation=A;function y(M,U){var H=C(M);return U?n(n({},H),{isDefinition:M.kind!==0&&oe(M.node,U)}):H}function C(M){var U=B(M);if(M.kind===0)return n(n({},U),{isWriteAccess:!1});var H=M.kind,q=M.node;return n(n({},U),{isWriteAccess:ne(q),isInString:H===2?!0:void 0})}c.toReferenceEntry=C;function B(M){if(M.kind===0)return{textSpan:M.textSpan,fileName:M.fileName};var U=M.node.getSourceFile(),H=fe(M.node,U);return n({textSpan:H,fileName:U.fileName},O(H,U,M.context))}function F(M,U,H){if(M.kind!==0&&e.isIdentifier(U)){var q=M.node,R=M.kind,K=q.parent,I=U.text,he=e.isShorthandPropertyAssignment(K);if(he||e.isObjectBindingElementWithoutPropertyName(K)&&K.name===q&&K.dotDotDotToken===void 0){var le={prefixText:I+": "},ee={suffixText:": "+I};if(R===3)return le;if(R===4)return ee;if(he){var J=K.parent;return e.isObjectLiteralExpression(J)&&e.isBinaryExpression(J.parent)&&e.isModuleExportsAccessExpression(J.parent.left)?le:ee}else return le}else if(e.isImportSpecifier(K)&&!K.propertyName){var de=e.isExportSpecifier(U.parent)?H.getExportSpecifierLocalTargetSymbol(U.parent):H.getSymbolAtLocation(U);return e.contains(de.declarations,K)?{prefixText:I+" as "}:e.emptyOptions}else if(e.isExportSpecifier(K)&&!K.propertyName)return U===M.node||H.getSymbolAtLocation(U)===H.getSymbolAtLocation(M.node)?{prefixText:I+" as "}:{suffixText:" as "+I}}return e.emptyOptions}function z(M,U){var H=B(M);if(M.kind!==0){var q=M.node;return n(n({},H),ge(q,U))}else return n(n({},H),{kind:"",displayParts:[]})}function ge(M,U){var H=U.getSymbolAtLocation(e.isDeclaration(M)&&M.name?M.name:M);return H?X(H,U,M):M.kind===207?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:M.kind===228?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(M),displayParts:[]}}function Pe(M){var U=B(M);if(M.kind===0)return{fileName:U.fileName,span:{textSpan:U.textSpan,kind:"reference"}};var H=ne(M.node),q=n({textSpan:U.textSpan,kind:H?"writtenReference":"reference",isInString:M.kind===2?!0:void 0},U.contextSpan&&{contextSpan:U.contextSpan});return{fileName:U.fileName,span:q}}c.toHighlightSpan=Pe;function fe(M,U,H){var q=M.getStart(U),R=(H||M).getEnd();return e.isStringLiteralLike(M)&&R-q>2&&(e.Debug.assert(H===void 0),q+=1,R-=1),e.createTextSpanFromBounds(q,R)}function _e(M){return M.kind===0?M.textSpan:fe(M.node,M.node.getSourceFile())}c.getTextSpanOfEntry=_e;function ne(M){var U=e.getDeclarationFromName(M);return!!U&&w(U)||M.kind===88||e.isWriteAccess(M)}function oe(M,U){var H;if(!U)return!1;var q=e.getDeclarationFromName(M)||(M.kind===88?M.parent:e.isLiteralComputedPropertyDeclarationName(M)||M.kind===135&&e.isConstructorDeclaration(M.parent)?M.parent.parent:void 0),R=q&&e.isBinaryExpression(q)?q.left:void 0;return!!(q&&(!((H=U.declarations)===null||H===void 0)&&H.some(function(K){return K===q||K===R})))}c.isDeclarationOfSymbol=oe;function w(M){if(M.flags&16777216)return!0;switch(M.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 348:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(M.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!M.body;case 257:case 169:return!!M.initializer||e.isCatchClause(M.parent);case 170:case 168:case 350:case 343:return!1;default:return e.Debug.failBadSyntaxKind(M)}}var re;(function(M){function U(ye,Ie,We,dr,ar,Sr,Or){var Ge,ur;if(Sr===void 0&&(Sr={}),Or===void 0&&(Or=new e.Set(dr.map(function(Bn){return Bn.fileName}))),Ie=H(Ie,Sr),e.isSourceFile(Ie)){var Lr=e.GoToDefinition.getReferenceAtPosition(Ie,ye,We);if(!(Lr!=null&&Lr.file))return;var Ar=We.getTypeChecker().getMergedSymbol(Lr.file.symbol);if(Ar)return ee(We,Ar,!1,dr,Or);var rt=We.getFileIncludeReasons();return rt?[{definition:{type:5,reference:Lr.reference,file:Ie},references:R(Lr.file,rt,We)||e.emptyArray}]:void 0}if(!Sr.implementations){var Et=de(Ie,dr,ar);if(Et)return Et}var St=We.getTypeChecker(),Pt=St.getSymbolAtLocation(e.isConstructorDeclaration(Ie)&&Ie.parent.name||Ie);if(!Pt){if(!Sr.implementations&&e.isStringLiteralLike(Ie)){if(e.isModuleSpecifierLike(Ie)){var rt=We.getFileIncludeReasons(),pt=(ur=(Ge=Ie.getSourceFile().resolvedModules)===null||Ge===void 0?void 0:Ge.get(Ie.text,e.getModeForUsageLocation(Ie.getSourceFile(),Ie)))===null||ur===void 0?void 0:ur.resolvedFileName,Ft=pt?We.getSourceFile(pt):void 0;if(Ft)return[{definition:{type:4,node:Ie},references:R(Ft,rt,We)||e.emptyArray}]}return ct(Ie,dr,St,ar)}return}if(Pt.escapedName==="export=")return ee(We,Pt.parent,!1,dr,Or);var ht=I(Pt,We,dr,ar,Sr,Or);if(ht&&!(Pt.flags&33554432))return ht;var Yt=K(Ie,Pt,St),un=Yt&&I(Yt,We,dr,ar,Sr,Or),wn=De(Pt,Ie,dr,Or,St,ar,Sr);return he(We,ht,wn,un)}M.getReferencedSymbolsForNode=U;function H(ye,Ie){return Ie.use===1?ye=e.getAdjustedReferenceLocation(ye):Ie.use===2&&(ye=e.getAdjustedRenameLocation(ye)),ye}M.getAdjustedNode=H;function q(ye,Ie,We,dr){var ar,Sr;dr===void 0&&(dr=new e.Set(We.map(function(Lr){return Lr.fileName})));var Or=(ar=Ie.getSourceFile(ye))===null||ar===void 0?void 0:ar.symbol;if(Or)return((Sr=ee(Ie,Or,!1,We,dr)[0])===null||Sr===void 0?void 0:Sr.references)||e.emptyArray;var Ge=Ie.getFileIncludeReasons(),ur=Ie.getSourceFile(ye);return ur&&Ge&&R(ur,Ge,Ie)||e.emptyArray}M.getReferencesForFileName=q;function R(ye,Ie,We){for(var dr,ar=Ie.get(ye.path)||e.emptyArray,Sr=0,Or=ar;Sr<Or.length;Sr++){var Ge=Or[Sr];if(e.isReferencedFile(Ge)){var ur=We.getSourceFileByPath(Ge.file),Lr=e.getReferencedFileLocation(We.getSourceFileByPath,Ge);e.isReferenceFileLocation(Lr)&&(dr=e.append(dr,{kind:0,fileName:ur.fileName,textSpan:e.createTextSpanFromRange(Lr)}))}}return dr}function K(ye,Ie,We){if(ye.parent&&e.isNamespaceExportDeclaration(ye.parent)){var dr=We.getAliasedSymbol(Ie),ar=We.getMergedSymbol(dr);if(dr!==ar)return ar}}function I(ye,Ie,We,dr,ar,Sr){var Or=ye.flags&1536&&ye.declarations&&e.find(ye.declarations,e.isSourceFile);if(Or){var Ge=ye.exports.get("export="),ur=ee(Ie,ye,!!Ge,We,Sr);if(!Ge||!Sr.has(Or.fileName))return ur;var Lr=Ie.getTypeChecker();return ye=e.skipAlias(Ge,Lr),he(Ie,ur,De(ye,void 0,We,Sr,Lr,dr,ar))}}function he(ye){for(var Ie=[],We=1;We<arguments.length;We++)Ie[We-1]=arguments[We];for(var dr,ar=0,Sr=Ie;ar<Sr.length;ar++){var Or=Sr[ar];if(!(!Or||!Or.length)){if(!dr){dr=Or;continue}for(var Ge=function(rt){if(!rt.definition||rt.definition.type!==0)return dr.push(rt),"continue";var Et=rt.definition.symbol,St=e.findIndex(dr,function(pt){return!!pt.definition&&pt.definition.type===0&&pt.definition.symbol===Et});if(St===-1)return dr.push(rt),"continue";var Pt=dr[St];dr[St]={definition:Pt.definition,references:Pt.references.concat(rt.references).sort(function(pt,Ft){var ht=le(ye,pt),Yt=le(ye,Ft);if(ht!==Yt)return e.compareValues(ht,Yt);var un=_e(pt),wn=_e(Ft);return un.start!==wn.start?e.compareValues(un.start,wn.start):e.compareValues(un.length,wn.length)})}},ur=0,Lr=Or;ur<Lr.length;ur++){var Ar=Lr[ur];Ge(Ar)}}}return dr}function le(ye,Ie){var We=Ie.kind===0?ye.getSourceFile(Ie.fileName):Ie.node.getSourceFile();return ye.getSourceFiles().indexOf(We)}function ee(ye,Ie,We,dr,ar){e.Debug.assert(!!Ie.valueDeclaration);var Sr=e.mapDefined(c.findModuleReferences(ye,dr,Ie),function(Pt){if(Pt.kind==="import"){var pt=Pt.literal.parent;if(e.isLiteralTypeNode(pt)){var Ft=e.cast(pt.parent,e.isImportTypeNode);if(We&&!Ft.qualifier)return}return P(Pt.literal)}else return{kind:0,fileName:Pt.referencingFile.fileName,textSpan:e.createTextSpanFromRange(Pt.ref)}});if(Ie.declarations)for(var Or=0,Ge=Ie.declarations;Or<Ge.length;Or++){var ur=Ge[Or];switch(ur.kind){case 308:break;case 264:ar.has(ur.getSourceFile().fileName)&&Sr.push(P(ur.name));break;default:e.Debug.assert(!!(Ie.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var Lr=Ie.exports.get("export=");if(Lr!=null&&Lr.declarations)for(var Ar=0,rt=Lr.declarations;Ar<rt.length;Ar++){var ur=rt[Ar],Et=ur.getSourceFile();if(ar.has(Et.fileName)){var St=e.isBinaryExpression(ur)&&e.isPropertyAccessExpression(ur.left)?ur.left.expression:e.isExportAssignment(ur)?e.Debug.checkDefined(e.findChildOfKind(ur,93,Et)):e.getNameOfDeclaration(ur)||ur;Sr.push(P(St))}}return Sr.length?[{definition:{type:0,symbol:Ie},references:Sr}]:e.emptyArray}function J(ye){return ye.kind===146&&e.isTypeOperatorNode(ye.parent)&&ye.parent.operator===146}function de(ye,Ie,We){if(e.isTypeKeyword(ye.kind))return ye.kind===114&&e.isVoidExpression(ye.parent)||ye.kind===146&&!J(ye)?void 0:lr(Ie,ye.kind,We,ye.kind===146?J:void 0);if(e.isImportMeta(ye.parent)&&ye.parent.name===ye)return Je(Ie,We);if(e.isStaticModifier(ye)&&e.isClassStaticBlockDeclaration(ye.parent))return[{definition:{type:2,node:ye},references:[P(ye)]}];if(e.isJumpStatementTarget(ye)){var dr=e.getTargetLabel(ye.parent,ye.text);return dr&&ue(dr.parent,dr)}else if(e.isLabelOfLabeledStatement(ye))return ue(ye.parent,ye);if(e.isThis(ye))return Qr(ye,Ie,We);if(ye.kind===106)return xr(ye)}function De(ye,Ie,We,dr,ar,Sr,Or){var Ge=Ie&&Q(ye,Ie,ar,!Jr(Or))||ye,ur=Ie?Yr(Ie,Ge):7,Lr=[],Ar=new Te(We,dr,Ie?b(Ie):0,ar,Sr,ur,Or,Lr),rt=!Jr(Or)||!Ge.declarations?void 0:e.find(Ge.declarations,e.isExportSpecifier);if(rt)Ze(rt.name,Ge,rt,Ar.createSearch(Ie,ye,void 0),Ar,!0,!0);else if(Ie&&Ie.kind===88&&Ge.escapedName==="default"&&Ge.parent)Rr(Ie,Ge,Ar),Ne(Ie,Ge,{exportingModuleSymbol:Ge.parent,exportKind:1},Ar);else{var Et=Ar.createSearch(Ie,Ge,void 0,{allSearchSymbols:Ie?ft(Ge,Ie,ar,Or.use===2,!!Or.providePrefixAndSuffixTextForRename,!!Or.implementations):[Ge]});N(Ge,Ar,Et)}return Lr}function N(ye,Ie,We){var dr=rr(ye);if(dr)Hr(dr,dr.getSourceFile(),We,Ie,!(e.isSourceFile(dr)&&!e.contains(Ie.sourceFiles,dr)));else for(var ar=0,Sr=Ie.sourceFiles;ar<Sr.length;ar++){var Or=Sr[ar];Ie.cancellationToken.throwIfCancellationRequested(),me(Or,We,Ie)}}function b(ye){switch(ye.kind){case 173:case 135:return 1;case 79:if(e.isClassLike(ye.parent))return e.Debug.assert(ye.parent.name===ye),2;default:return 0}}function Q(ye,Ie,We,dr){var ar=Ie.parent;return e.isExportSpecifier(ar)&&dr?tt(Ie,ye,ar,We):e.firstDefined(ye.declarations,function(Sr){if(!Sr.parent){if(ye.flags&33554432)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(Ie.kind),": ").concat(e.Debug.formatSymbol(ye)))}return e.isTypeLiteralNode(Sr.parent)&&e.isUnionTypeNode(Sr.parent.parent)?We.getPropertyOfType(We.getTypeFromTypeNode(Sr.parent.parent),ye.name):void 0})}var G;(function(ye){ye[ye.None=0]="None",ye[ye.Constructor=1]="Constructor",ye[ye.Class=2]="Class"})(G||(G={}));function ae(ye){if(ye.flags&33555968){var Ie=ye.declarations&&e.find(ye.declarations,function(We){return!e.isSourceFile(We)&&!e.isModuleDeclaration(We)});return Ie&&Ie.symbol}}var Te=function(){function ye(Ie,We,dr,ar,Sr,Or,Ge,ur){this.sourceFiles=Ie,this.sourceFilesSet=We,this.specialSearchKind=dr,this.checker=ar,this.cancellationToken=Sr,this.searchMeaning=Or,this.options=Ge,this.result=ur,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return ye.prototype.includesSourceFile=function(Ie){return this.sourceFilesSet.has(Ie.fileName)},ye.prototype.getImportSearches=function(Ie,We){return this.importTracker||(this.importTracker=c.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Ie,We,this.options.use===2)},ye.prototype.createSearch=function(Ie,We,dr,ar){ar===void 0&&(ar={});var Sr=ar.text,Or=Sr===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(We)||ae(We)||We)):Sr,Ge=ar.allSearchSymbols,ur=Ge===void 0?[We]:Ge,Lr=e.escapeLeadingUnderscores(Or),Ar=this.options.implementations&&Ie?Ir(Ie,We,this.checker):void 0;return{symbol:We,comingFrom:dr,text:Or,escapedText:Lr,parents:Ar,allSearchSymbols:ur,includes:function(rt){return e.contains(ur,rt)}}},ye.prototype.referenceAdder=function(Ie){var We=e.getSymbolId(Ie),dr=this.symbolIdToReferences[We];return dr||(dr=this.symbolIdToReferences[We]=[],this.result.push({definition:{type:0,symbol:Ie},references:dr})),function(ar,Sr){return dr.push(P(ar,Sr))}},ye.prototype.addStringOrCommentReference=function(Ie,We){this.result.push({definition:void 0,references:[{kind:0,fileName:Ie,textSpan:We}]})},ye.prototype.markSearchedSymbols=function(Ie,We){for(var dr=e.getNodeId(Ie),ar=this.sourceFileToSeenSymbols[dr]||(this.sourceFileToSeenSymbols[dr]=new e.Set),Sr=!1,Or=0,Ge=We;Or<Ge.length;Or++){var ur=Ge[Or];Sr=e.tryAddToSet(ar,e.getSymbolId(ur))||Sr}return Sr},ye}();function Ne(ye,Ie,We,dr){var ar=dr.getImportSearches(Ie,We),Sr=ar.importSearches,Or=ar.singleReferences,Ge=ar.indirectUsers;if(Or.length)for(var ur=dr.referenceAdder(Ie),Lr=0,Ar=Or;Lr<Ar.length;Lr++){var rt=Ar[Lr];nr(rt,dr)&&ur(rt)}for(var Et=0,St=Sr;Et<St.length;Et++){var Pt=St[Et],pt=Pt[0],Ft=Pt[1];mr(pt.getSourceFile(),dr.createSearch(pt,Ft,1),dr)}if(Ge.length){var ht=void 0;switch(We.exportKind){case 0:ht=dr.createSearch(ye,Ie,1);break;case 1:ht=dr.options.use===2?void 0:dr.createSearch(ye,Ie,1,{text:"default"});break}if(ht)for(var Yt=0,un=Ge;Yt<un.length;Yt++){var wn=un[Yt];me(wn,ht,dr)}}}function we(ye,Ie,We,dr,ar,Sr,Or,Ge){for(var ur=c.createImportTracker(ye,new e.Set(ye.map(function(hr){return hr.fileName})),Ie,We),Lr=ur(dr,{exportKind:Or?1:0,exportingModuleSymbol:ar},!1),Ar=Lr.importSearches,rt=Lr.indirectUsers,Et=Lr.singleReferences,St=0,Pt=Ar;St<Pt.length;St++){var pt=Pt[St][0];Ge(pt)}for(var Ft=0,ht=Et;Ft<ht.length;Ft++){var Yt=ht[Ft];e.isIdentifier(Yt)&&e.isImportTypeNode(Yt.parent)&&Ge(Yt)}for(var un=0,wn=rt;un<wn.length;un++)for(var Bn=wn[un],yn=0,Tn=xe(Bn,Or?"default":Sr);yn<Tn.length;yn++){var An=Tn[yn],ii=Ie.getSymbolAtLocation(An),Xe=e.some(ii==null?void 0:ii.declarations,function(hr){return!!e.tryCast(hr,e.isExportAssignment)});e.isIdentifier(An)&&!e.isImportOrExportSpecifier(An.parent)&&(ii===dr||Xe)&&Ge(An)}}M.eachExportReference=we;function nr(ye,Ie){return wr(ye,Ie)?Ie.options.use!==2?!0:e.isIdentifier(ye)?!(e.isImportOrExportSpecifier(ye.parent)&&ye.escapedText==="default"):!1:!1}function tr(ye,Ie){if(ye.declarations)for(var We=0,dr=ye.declarations;We<dr.length;We++){var ar=dr[We],Sr=ar.getSourceFile();mr(Sr,Ie.createSearch(ar,ye,0),Ie,Ie.includesSourceFile(Sr))}}function me(ye,Ie,We){e.getNameTable(ye).get(Ie.escapedText)!==void 0&&mr(ye,Ie,We)}function He(ye,Ie){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(ye.parent.parent)?Ie.getPropertySymbolOfDestructuringAssignment(ye):void 0}function rr(ye){var Ie=ye.declarations,We=ye.flags,dr=ye.parent,ar=ye.valueDeclaration;if(ar&&(ar.kind===215||ar.kind===228))return ar;if(Ie){if(We&8196){var Sr=e.find(Ie,function(St){return e.hasEffectiveModifier(St,8)||e.isPrivateIdentifierClassElementDeclaration(St)});return Sr?e.getAncestor(Sr,260):void 0}if(!Ie.some(e.isObjectBindingElementWithoutPropertyName)){var Or=dr&&!(ye.flags&262144);if(!(Or&&!(e.isExternalModuleSymbol(dr)&&!dr.globalExports))){for(var Ge,ur=0,Lr=Ie;ur<Lr.length;ur++){var Ar=Lr[ur],rt=e.getContainerNode(Ar);if(Ge&&Ge!==rt||!rt||rt.kind===308&&!e.isExternalOrCommonJsModule(rt))return;if(Ge=rt,e.isFunctionExpression(Ge))for(var Et=void 0;Et=e.getNextJSDocCommentLocation(Ge);)Ge=Et}return Or?Ge.getSourceFile():Ge}}}}function je(ye,Ie,We,dr){return dr===void 0&&(dr=We),Ce(ye,Ie,We,function(){return!0},dr)||!1}M.isSymbolReferencedInFile=je;function Ce(ye,Ie,We,dr,ar){ar===void 0&&(ar=We);var Sr=e.isParameterPropertyDeclaration(ye.parent,ye.parent.parent)?e.first(Ie.getSymbolsOfParameterPropertyDeclaration(ye.parent,ye.text)):Ie.getSymbolAtLocation(ye);if(Sr)for(var Or=0,Ge=xe(We,Sr.name,ar);Or<Ge.length;Or++){var ur=Ge[Or];if(!(!e.isIdentifier(ur)||ur===ye||ur.escapedText!==ye.escapedText)){var Lr=Ie.getSymbolAtLocation(ur);if(Lr===Sr||Ie.getShorthandAssignmentValueSymbol(ur.parent)===Sr||e.isExportSpecifier(ur.parent)&&tt(ur,Lr,ur.parent,Ie)===Sr){var Ar=dr(ur);if(Ar)return Ar}}}}M.eachSymbolReferenceInFile=Ce;function Ae(ye,Ie){var We=e.filter(xe(Ie,ye),function(ar){return!!e.getDeclarationFromName(ar)});return We.reduce(function(ar,Sr){var Or=dr(Sr);return!e.some(ar.declarationNames)||Or===ar.depth?(ar.declarationNames.push(Sr),ar.depth=Or):Or<ar.depth&&(ar.declarationNames=[Sr],ar.depth=Or),ar},{depth:1/0,declarationNames:[]}).declarationNames;function dr(ar){for(var Sr=0;ar;)ar=e.getContainerNode(ar),Sr++;return Sr}}M.getTopMostDeclarationNamesInFile=Ae;function qe(ye,Ie,We,dr){if(!ye.name||!e.isIdentifier(ye.name))return!1;for(var ar=e.Debug.checkDefined(We.getSymbolAtLocation(ye.name)),Sr=0,Or=Ie;Sr<Or.length;Sr++)for(var Ge=Or[Sr],ur=0,Lr=xe(Ge,ar.name);ur<Lr.length;ur++){var Ar=Lr[ur];if(!(!e.isIdentifier(Ar)||Ar===ye.name||Ar.escapedText!==ye.name.escapedText)){var rt=e.climbPastPropertyAccess(Ar),Et=e.isCallExpression(rt.parent)&&rt.parent.expression===rt?rt.parent:void 0,St=We.getSymbolAtLocation(Ar);if(St&&We.getRootSymbols(St).some(function(Pt){return Pt===ar})&&dr(Ar,Et))return!0}}return!1}M.someSignatureUsage=qe;function xe(ye,Ie,We){return We===void 0&&(We=ye),L(ye,Ie,We).map(function(dr){return e.getTouchingPropertyName(ye,dr)})}function L(ye,Ie,We){We===void 0&&(We=ye);var dr=[];if(!Ie||!Ie.length)return dr;for(var ar=ye.text,Sr=ar.length,Or=Ie.length,Ge=ar.indexOf(Ie,We.pos);Ge>=0&&!(Ge>We.end);){var ur=Ge+Or;(Ge===0||!e.isIdentifierPart(ar.charCodeAt(Ge-1),99))&&(ur===Sr||!e.isIdentifierPart(ar.charCodeAt(ur),99))&&dr.push(Ge),Ge=ar.indexOf(Ie,Ge+Or+1)}return dr}function ue(ye,Ie){var We=ye.getSourceFile(),dr=Ie.text,ar=e.mapDefined(xe(We,dr,ye),function(Sr){return Sr===Ie||e.isJumpStatementTarget(Sr)&&e.getTargetLabel(Sr,dr)===Ie?P(Sr):void 0});return[{definition:{type:1,node:Ie},references:ar}]}function Ue(ye,Ie){switch(ye.kind){case 80:if(e.isJSDocMemberName(ye.parent))return!0;case 79:return ye.text.length===Ie.length;case 14:case 10:{var We=ye;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(We)||e.isNameOfModuleDeclaration(ye)||e.isExpressionOfExternalModuleImportEqualsDeclaration(ye)||e.isCallExpression(ye.parent)&&e.isBindableObjectDefinePropertyCall(ye.parent)&&ye.parent.arguments[1]===ye)&&We.text.length===Ie.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(ye)&&ye.text.length===Ie.length;case 88:return Ie.length===7;default:return!1}}function Je(ye,Ie){var We=e.flatMap(ye,function(dr){return Ie.throwIfCancellationRequested(),e.mapDefined(xe(dr,"meta",dr),function(ar){var Sr=ar.parent;if(e.isImportMeta(Sr))return P(Sr)})});return We.length?[{definition:{type:2,node:We[0].node},references:We}]:void 0}function lr(ye,Ie,We,dr){var ar=e.flatMap(ye,function(Sr){return We.throwIfCancellationRequested(),e.mapDefined(xe(Sr,e.tokenToString(Ie),Sr),function(Or){if(Or.kind===Ie&&(!dr||dr(Or)))return P(Or)})});return ar.length?[{definition:{type:2,node:ar[0].node},references:ar}]:void 0}function mr(ye,Ie,We,dr){return dr===void 0&&(dr=!0),We.cancellationToken.throwIfCancellationRequested(),Hr(ye,ye,Ie,We,dr)}function Hr(ye,Ie,We,dr,ar){if(dr.markSearchedSymbols(Ie,We.allSearchSymbols))for(var Sr=0,Or=L(Ie,We.text,ye);Sr<Or.length;Sr++){var Ge=Or[Sr];Oe(Ie,Ge,We,dr,ar)}}function wr(ye,Ie){return!!(e.getMeaningFromLocation(ye)&Ie.searchMeaning)}function Oe(ye,Ie,We,dr,ar){var Sr=e.getTouchingPropertyName(ye,Ie);if(!Ue(Sr,We.text)){!dr.options.implementations&&(dr.options.findInStrings&&e.isInString(ye,Ie)||dr.options.findInComments&&e.isInNonReferenceComment(ye,Ie))&&dr.addStringOrCommentReference(ye.fileName,e.createTextSpan(Ie,We.text.length));return}if(wr(Sr,dr)){var Or=dr.checker.getSymbolAtLocation(Sr);if(Or){var Ge=Sr.parent;if(!(e.isImportSpecifier(Ge)&&Ge.propertyName===Sr)){if(e.isExportSpecifier(Ge)){e.Debug.assert(Sr.kind===79),Ze(Sr,Or,Ge,We,dr,ar);return}var ur=Vr(We,Or,Sr,dr);if(!ur){qr(Or,We,dr);return}switch(dr.specialSearchKind){case 0:ar&&Rr(Sr,ur,dr);break;case 1:zr(Sr,ye,We,dr);break;case 2:Fr(Sr,We,dr);break;default:e.Debug.assertNever(dr.specialSearchKind)}e.isInJSFile(Sr)&&Sr.parent.kind===205&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Sr.parent.parent.parent)&&(Or=Sr.parent.symbol,!Or)||or(Sr,Or,We,dr)}}}}function Ze(ye,Ie,We,dr,ar,Sr,Or){e.Debug.assert(!Or||!!ar.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var Ge=We.parent,ur=We.propertyName,Lr=We.name,Ar=Ge.parent,rt=tt(ye,Ie,We,ar.checker);if(!Or&&!dr.includes(rt))return;if(ur?ye===ur?(Ar.moduleSpecifier||ht(),Sr&&ar.options.use!==2&&ar.markSeenReExportRHS(Lr)&&Rr(Lr,e.Debug.checkDefined(We.symbol),ar)):ar.markSeenReExportRHS(ye)&&ht():ar.options.use===2&&Lr.escapedText==="default"||ht(),!Jr(ar.options)||Or){var Et=ye.originalKeywordKind===88||We.name.originalKeywordKind===88,St=Et?1:0,Pt=e.Debug.checkDefined(We.symbol),pt=c.getExportInfo(Pt,St,ar.checker);pt&&Ne(ye,Pt,pt,ar)}if(dr.comingFrom!==1&&Ar.moduleSpecifier&&!ur&&!Jr(ar.options)){var Ft=ar.checker.getExportSpecifierLocalTargetSymbol(We);Ft&&tr(Ft,ar)}function ht(){Sr&&Rr(ye,rt,ar)}}function tt(ye,Ie,We,dr){return ut(ye,We)&&dr.getExportSpecifierLocalTargetSymbol(We)||Ie}function ut(ye,Ie){var We=Ie.parent,dr=Ie.propertyName,ar=Ie.name;return e.Debug.assert(dr===ye||ar===ye),dr?dr===ye:!We.parent.moduleSpecifier}function or(ye,Ie,We,dr){var ar=c.getImportOrExportSymbol(ye,Ie,dr.checker,We.comingFrom===1);if(ar){var Sr=ar.symbol;ar.kind===0?Jr(dr.options)||tr(Sr,dr):Ne(ye,Sr,ar.exportInfo,dr)}}function qr(ye,Ie,We){var dr=ye.flags,ar=ye.valueDeclaration,Sr=We.checker.getShorthandAssignmentValueSymbol(ar),Or=ar&&e.getNameOfDeclaration(ar);!(dr&33554432)&&Or&&Ie.includes(Sr)&&Rr(Or,Sr,We)}function Rr(ye,Ie,We){var dr="kind"in Ie?Ie:{kind:void 0,symbol:Ie},ar=dr.kind,Sr=dr.symbol;if(!(We.options.use===2&&ye.kind===88)){var Or=We.referenceAdder(Sr);We.options.implementations?Le(ye,Or,We):Or(ye,ar)}}function zr(ye,Ie,We,dr){e.isNewExpressionTarget(ye)&&Rr(ye,We.symbol,dr);var ar=function(){return dr.referenceAdder(We.symbol)};if(e.isClassLike(ye.parent))e.Debug.assert(ye.kind===88||ye.parent.name===ye),_t(We.symbol,Ie,ar());else{var Sr=en(ye);Sr&&(yt(Sr,ar()),vr(Sr,dr))}}function Fr(ye,Ie,We){Rr(ye,Ie.symbol,We);var dr=ye.parent;if(!(We.options.use===2||!e.isClassLike(dr))){e.Debug.assert(dr.name===ye);for(var ar=We.referenceAdder(Ie.symbol),Sr=0,Or=dr.members;Sr<Or.length;Sr++){var Ge=Or[Sr];e.isMethodOrAccessor(Ge)&&e.isStatic(Ge)&&Ge.body&&Ge.body.forEachChild(function ur(Lr){Lr.kind===108?ar(Lr):!e.isFunctionLike(Lr)&&!e.isClassLike(Lr)&&Lr.forEachChild(ur)})}}}function _t(ye,Ie,We){var dr=Ct(ye);if(dr&&dr.declarations)for(var ar=0,Sr=dr.declarations;ar<Sr.length;ar++){var Or=Sr[ar],Ge=e.findChildOfKind(Or,135,Ie);e.Debug.assert(Or.kind===173&&!!Ge),We(Ge)}ye.exports&&ye.exports.forEach(function(ur){var Lr=ur.valueDeclaration;if(Lr&&Lr.kind===171){var Ar=Lr.body;Ar&&sn(Ar,108,function(rt){e.isNewExpressionTarget(rt)&&We(rt)})}})}function Ct(ye){return ye.members&&ye.members.get("__constructor")}function yt(ye,Ie){var We=Ct(ye.symbol);if(We&&We.declarations)for(var dr=0,ar=We.declarations;dr<ar.length;dr++){var Sr=ar[dr];e.Debug.assert(Sr.kind===173);var Or=Sr.body;Or&&sn(Or,106,function(Ge){e.isCallExpressionTarget(Ge)&&Ie(Ge)})}}function Fe(ye){return!!Ct(ye.symbol)}function vr(ye,Ie){if(!Fe(ye)){var We=ye.symbol,dr=Ie.createSearch(void 0,We,void 0);N(We,Ie,dr)}}function Le(ye,Ie,We){if(e.isDeclarationName(ye)&&Nt(ye.parent)){Ie(ye);return}if(ye.kind!==79)return;ye.parent.kind===300&&Wt(ye,We.checker,Ie);var dr=cr(ye);if(dr){Ie(dr);return}var ar=e.findAncestor(ye,function(ur){return!e.isQualifiedName(ur.parent)&&!e.isTypeNode(ur.parent)&&!e.isTypeElement(ur.parent)}),Sr=ar.parent;if(e.hasType(Sr)&&Sr.type===ar&&We.markSeenContainingTypeReference(Sr))if(e.hasInitializer(Sr))Ge(Sr.initializer);else if(e.isFunctionLike(Sr)&&Sr.body){var Or=Sr.body;Or.kind===238?e.forEachReturnStatement(Or,function(ur){ur.expression&&Ge(ur.expression)}):Ge(Or)}else e.isAssertionExpression(Sr)&&Ge(Sr.expression);function Ge(ur){$r(ur)&&Ie(ur)}}function cr(ye){return e.isIdentifier(ye)||e.isPropertyAccessExpression(ye)?cr(ye.parent):e.isExpressionWithTypeArguments(ye)?e.tryCast(ye.parent.parent,e.isClassLike):void 0}function $r(ye){switch(ye.kind){case 214:return $r(ye.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function Re(ye,Ie,We,dr){if(ye===Ie)return!0;var ar=e.getSymbolId(ye)+","+e.getSymbolId(Ie),Sr=We.get(ar);if(Sr!==void 0)return Sr;We.set(ar,!1);var Or=!!ye.declarations&&ye.declarations.some(function(Ge){return e.getAllSuperTypeNodes(Ge).some(function(ur){var Lr=dr.getTypeAtLocation(ur);return!!Lr&&!!Lr.symbol&&Re(Lr.symbol,Ie,We,dr)})});return We.set(ar,Or),Or}function xr(ye){var Ie=e.getSuperContainer(ye,!1);if(Ie){var We=32;switch(Ie.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:We&=e.getSyntacticModifierFlags(Ie),Ie=Ie.parent;break;default:return}var dr=Ie.getSourceFile(),ar=e.mapDefined(xe(dr,"super",Ie),function(Sr){if(Sr.kind===106){var Or=e.getSuperContainer(Sr,!1);return Or&&e.isStatic(Or)===!!We&&Or.parent.symbol===Ie.symbol?P(Sr):void 0}});return[{definition:{type:0,symbol:Ie.symbol},references:ar}]}}function Br(ye){return ye.kind===79&&ye.parent.kind===166&&ye.parent.name===ye}function Qr(ye,Ie,We){var dr=e.getThisContainer(ye,!1),ar=32;switch(dr.kind){case 171:case 170:if(e.isObjectLiteralMethod(dr)){ar&=e.getSyntacticModifierFlags(dr),dr=dr.parent;break}case 169:case 168:case 173:case 174:case 175:ar&=e.getSyntacticModifierFlags(dr),dr=dr.parent;break;case 308:if(e.isExternalModule(dr)||Br(ye))return;case 259:case 215:break;default:return}var Sr=e.flatMap(dr.kind===308?Ie:[dr.getSourceFile()],function(Ge){return We.throwIfCancellationRequested(),xe(Ge,"this",e.isSourceFile(dr)?Ge:dr).filter(function(ur){if(!e.isThis(ur))return!1;var Lr=e.getThisContainer(ur,!1);switch(dr.kind){case 215:case 259:return dr.symbol===Lr.symbol;case 171:case 170:return e.isObjectLiteralMethod(dr)&&dr.symbol===Lr.symbol;case 228:case 260:case 207:return Lr.parent&&dr.symbol===Lr.parent.symbol&&e.isStatic(Lr)===!!ar;case 308:return Lr.kind===308&&!e.isExternalModule(Lr)&&!Br(ur)}})}).map(function(Ge){return P(Ge)}),Or=e.firstDefined(Sr,function(Ge){return e.isParameter(Ge.node.parent)?Ge.node:void 0});return[{definition:{type:3,node:Or||ye},references:Sr}]}function ct(ye,Ie,We,dr){var ar=e.getContextualTypeFromParentOrAncestorTypeNode(ye,We),Sr=e.flatMap(Ie,function(Or){return dr.throwIfCancellationRequested(),e.mapDefined(xe(Or,ye.text),function(Ge){if(e.isStringLiteralLike(Ge)&&Ge.text===ye.text)if(ar){var ur=e.getContextualTypeFromParentOrAncestorTypeNode(Ge,We);if(ar!==We.getStringType()&&ar===ur)return P(Ge,2)}else return e.isNoSubstitutionTemplateLiteral(Ge)&&!e.rangeIsOnSingleLine(Ge,Or)?void 0:P(Ge,2)})});return[{definition:{type:4,node:ye},references:Sr}]}function ft(ye,Ie,We,dr,ar,Sr){var Or=[];return Dt(ye,Ie,We,dr,!(dr&&ar),function(Ge,ur,Lr){Lr&&Ke(ye)!==Ke(Lr)&&(Lr=void 0),Or.push(Lr||ur||Ge)},function(){return!Sr}),Or}function Dt(ye,Ie,We,dr,ar,Sr,Or){var Ge=e.getContainingObjectLiteralElement(Ie);if(Ge){var ur=We.getShorthandAssignmentValueSymbol(Ie.parent);if(ur&&dr)return Sr(ur,void 0,void 0,3);var Lr=We.getContextualType(Ge.parent),Ar=Lr&&e.firstDefined(e.getPropertySymbolsFromContextualType(Ge,We,Lr,!0),function(ii){return Tn(ii,4)});if(Ar)return Ar;var rt=He(Ie,We),Et=rt&&Sr(rt,void 0,void 0,4);if(Et)return Et;var St=ur&&Sr(ur,void 0,void 0,3);if(St)return St}var Pt=K(Ie,ye,We);if(Pt){var pt=Sr(Pt,void 0,void 0,1);if(pt)return pt}var Ft=Tn(ye);if(Ft)return Ft;if(ye.valueDeclaration&&e.isParameterPropertyDeclaration(ye.valueDeclaration,ye.valueDeclaration.parent)){var ht=We.getSymbolsOfParameterPropertyDeclaration(e.cast(ye.valueDeclaration,e.isParameter),ye.name);return e.Debug.assert(ht.length===2&&!!(ht[0].flags&1)&&!!(ht[1].flags&4)),Tn(ye.flags&1?ht[1]:ht[0])}var Yt=e.getDeclarationOfKind(ye,278);if(!dr||Yt&&!Yt.propertyName){var un=Yt&&We.getExportSpecifierLocalTargetSymbol(Yt);if(un){var wn=Sr(un,void 0,void 0,1);if(wn)return wn}}if(!dr){var Bn=void 0;return ar?Bn=e.isObjectBindingElementWithoutPropertyName(Ie.parent)?e.getPropertySymbolFromBindingElement(We,Ie.parent):void 0:Bn=An(ye,We),Bn&&Tn(Bn,4)}e.Debug.assert(dr);var yn=ar;if(yn){var Bn=An(ye,We);return Bn&&Tn(Bn,4)}function Tn(ii,Xe){return e.firstDefined(We.getRootSymbols(ii),function(hr){return Sr(ii,hr,void 0,Xe)||(hr.parent&&hr.parent.flags&96&&Or(hr)?Me(hr.parent,hr.name,We,function(at){return Sr(ii,hr,at,Xe)}):void 0)})}function An(ii,Xe){var hr=e.getDeclarationOfKind(ii,205);if(hr&&e.isObjectBindingElementWithoutPropertyName(hr))return e.getPropertySymbolFromBindingElement(Xe,hr)}}function Me(ye,Ie,We,dr){var ar=new e.Map;return Sr(ye);function Sr(Or){if(!(!(Or.flags&96)||!e.addToSeen(ar,e.getSymbolId(Or))))return e.firstDefined(Or.declarations,function(Ge){return e.firstDefined(e.getAllSuperTypeNodes(Ge),function(ur){var Lr=We.getTypeAtLocation(ur),Ar=Lr&&Lr.symbol&&We.getPropertyOfType(Lr,Ie);return Lr&&Ar&&(e.firstDefined(We.getRootSymbols(Ar),dr)||Sr(Lr.symbol))})})}}function Ke(ye){if(!ye.valueDeclaration)return!1;var Ie=e.getEffectiveModifierFlags(ye.valueDeclaration);return!!(Ie&32)}function Vr(ye,Ie,We,dr){var ar=dr.checker;return Dt(Ie,We,ar,!1,dr.options.use!==2||!!dr.options.providePrefixAndSuffixTextForRename,function(Sr,Or,Ge,ur){return Ge&&Ke(Ie)!==Ke(Ge)&&(Ge=void 0),ye.includes(Ge||Or||Sr)?{symbol:Or&&!(e.getCheckFlags(Sr)&6)?Or:Sr,kind:ur}:void 0},function(Sr){return!(ye.parents&&!ye.parents.some(function(Or){return Re(Sr.parent,Or,dr.inheritsFromCache,ar)}))})}function Yr(ye,Ie){var We=e.getMeaningFromLocation(ye),dr=Ie.declarations;if(dr){var ar=void 0;do{ar=We;for(var Sr=0,Or=dr;Sr<Or.length;Sr++){var Ge=Or[Sr],ur=e.getMeaningFromDeclaration(Ge);ur&We&&(We|=ur)}}while(We!==ar)}return We}M.getIntersectingMeaningFromDeclarations=Yr;function Nt(ye){return ye.flags&16777216?!(e.isInterfaceDeclaration(ye)||e.isTypeAliasDeclaration(ye)):e.isVariableLike(ye)?e.hasInitializer(ye):e.isFunctionLikeDeclaration(ye)?!!ye.body:e.isClassLike(ye)||e.isModuleOrEnumDeclaration(ye)}function Wt(ye,Ie,We){var dr=Ie.getSymbolAtLocation(ye),ar=Ie.getShorthandAssignmentValueSymbol(dr.valueDeclaration);if(ar)for(var Sr=0,Or=ar.getDeclarations();Sr<Or.length;Sr++){var Ge=Or[Sr];e.getMeaningFromDeclaration(Ge)&1&&We(Ge)}}M.getReferenceEntriesForShorthandPropertyAssignment=Wt;function sn(ye,Ie,We){e.forEachChild(ye,function(dr){dr.kind===Ie&&We(dr),sn(dr,Ie,We)})}function en(ye){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(ye).parent)}function Ir(ye,Ie,We){var dr=e.isRightSideOfPropertyAccess(ye)?ye.parent:void 0,ar=dr&&We.getTypeAtLocation(dr.expression),Sr=e.mapDefined(ar&&(ar.isUnionOrIntersection()?ar.types:ar.symbol===Ie.parent?void 0:[ar]),function(Or){return Or.symbol&&Or.symbol.flags&96?Or.symbol:void 0});return Sr.length===0?void 0:Sr}function Jr(ye){return ye.use===2&&ye.providePrefixAndSuffixTextForRename}})(re=c.Core||(c.Core={}))})(e.FindAllReferences||(e.FindAllReferences={}))})(h||(h={}));var h;(function(e){(function(c){function P(U){return(e.isFunctionExpression(U)||e.isClassExpression(U))&&e.isNamedDeclaration(U)}function T(U){return(e.isFunctionExpression(U)||e.isArrowFunction(U)||e.isClassExpression(U))&&e.isVariableDeclaration(U.parent)&&U===U.parent.initializer&&e.isIdentifier(U.parent.name)&&!!(e.getCombinedNodeFlags(U.parent)&2)}function s(U){return e.isSourceFile(U)||e.isModuleDeclaration(U)||e.isFunctionDeclaration(U)||e.isFunctionExpression(U)||e.isClassDeclaration(U)||e.isClassExpression(U)||e.isClassStaticBlockDeclaration(U)||e.isMethodDeclaration(U)||e.isMethodSignature(U)||e.isGetAccessorDeclaration(U)||e.isSetAccessorDeclaration(U)}function D(U){return e.isSourceFile(U)||e.isModuleDeclaration(U)&&e.isIdentifier(U.name)||e.isFunctionDeclaration(U)||e.isClassDeclaration(U)||e.isClassStaticBlockDeclaration(U)||e.isMethodDeclaration(U)||e.isMethodSignature(U)||e.isGetAccessorDeclaration(U)||e.isSetAccessorDeclaration(U)||P(U)||T(U)}function O(U){return e.isSourceFile(U)?U:e.isNamedDeclaration(U)?U.name:T(U)?U.parent.name:e.Debug.checkDefined(U.modifiers&&e.find(U.modifiers,W))}function W(U){return U.kind===88}function E(U,H){var q=O(H);return q&&U.getSymbolAtLocation(q)}function v(U,H){if(e.isSourceFile(H))return{text:H.fileName,pos:0,end:0};if((e.isFunctionDeclaration(H)||e.isClassDeclaration(H))&&!e.isNamedDeclaration(H)){var q=H.modifiers&&e.find(H.modifiers,W);if(q)return{text:"default",pos:q.getStart(),end:q.getEnd()}}if(e.isClassStaticBlockDeclaration(H)){var R=H.getSourceFile(),K=e.skipTrivia(R.text,e.moveRangePastModifiers(H).pos),I=K+6,he=U.getTypeChecker(),le=he.getSymbolAtLocation(H.parent),ee=le?"".concat(he.symbolToString(le,H.parent)," "):"";return{text:"".concat(ee,"static {}"),pos:K,end:I}}var J=T(H)?H.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(H),"Expected call hierarchy item to have a name"),de=e.isIdentifier(J)?e.idText(J):e.isStringOrNumericLiteralLike(J)?J.text:e.isComputedPropertyName(J)&&e.isStringOrNumericLiteralLike(J.expression)?J.expression.text:void 0;if(de===void 0){var he=U.getTypeChecker(),le=he.getSymbolAtLocation(J);le&&(de=he.symbolToString(le,H))}if(de===void 0){var De=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});de=e.usingSingleLineStringWriter(function(N){return De.writeNode(4,H,H.getSourceFile(),N)})}return{text:de,pos:J.getStart(),end:J.getEnd()}}function S(U){var H,q;if(T(U))return e.isModuleBlock(U.parent.parent.parent.parent)&&e.isIdentifier(U.parent.parent.parent.parent.parent.name)?U.parent.parent.parent.parent.parent.name.getText():void 0;switch(U.kind){case 174:case 175:case 171:return U.parent.kind===207?(H=e.getAssignedName(U.parent))===null||H===void 0?void 0:H.getText():(q=e.getNameOfDeclaration(U.parent))===null||q===void 0?void 0:q.getText();case 259:case 260:case 264:if(e.isModuleBlock(U.parent)&&e.isIdentifier(U.parent.parent.name))return U.parent.parent.name.getText()}}function te(U,H){if(H.body)return H;if(e.isConstructorDeclaration(H))return e.getFirstConstructorWithBody(H.parent);if(e.isFunctionDeclaration(H)||e.isMethodDeclaration(H)){var q=E(U,H);return q&&q.valueDeclaration&&e.isFunctionLikeDeclaration(q.valueDeclaration)&&q.valueDeclaration.body?q.valueDeclaration:void 0}return H}function Y(U,H){var q=E(U,H),R;if(q&&q.declarations){var K=e.indicesOf(q.declarations),I=e.map(q.declarations,function(De){return{file:De.getSourceFile().fileName,pos:De.pos}});K.sort(function(De,N){return e.compareStringsCaseSensitive(I[De].file,I[N].file)||I[De].pos-I[N].pos});for(var he=e.map(K,function(De){return q.declarations[De]}),le=void 0,ee=0,J=he;ee<J.length;ee++){var de=J[ee];D(de)&&((!le||le.parent!==de.parent||le.end!==de.pos)&&(R=e.append(R,de)),le=de)}}return R}function Z(U,H){var q,R,K;return e.isClassStaticBlockDeclaration(H)?H:e.isFunctionLikeDeclaration(H)?(R=(q=te(U,H))!==null&&q!==void 0?q:Y(U,H))!==null&&R!==void 0?R:H:(K=Y(U,H))!==null&&K!==void 0?K:H}function ce(U,H){for(var q=U.getTypeChecker(),R=!1;;){if(D(H))return Z(q,H);if(s(H)){var K=e.findAncestor(H,D);return K&&Z(q,K)}if(e.isDeclarationName(H)){if(D(H.parent))return Z(q,H.parent);if(s(H.parent)){var K=e.findAncestor(H.parent,D);return K&&Z(q,K)}return e.isVariableDeclaration(H.parent)&&H.parent.initializer&&T(H.parent.initializer)?H.parent.initializer:void 0}if(e.isConstructorDeclaration(H))return D(H.parent)?H.parent:void 0;if(H.kind===124&&e.isClassStaticBlockDeclaration(H.parent)){H=H.parent;continue}if(e.isVariableDeclaration(H)&&H.initializer&&T(H.initializer))return H.initializer;if(!R){var I=q.getSymbolAtLocation(H);if(I&&(I.flags&2097152&&(I=q.getAliasedSymbol(I)),I.valueDeclaration)){R=!0,H=I.valueDeclaration;continue}}return}}c.resolveCallHierarchyDeclaration=ce;function k(U,H){var q=H.getSourceFile(),R=v(U,H),K=S(H),I=e.getNodeKind(H),he=e.getNodeModifiers(H),le=e.createTextSpanFromBounds(e.skipTrivia(q.text,H.getFullStart(),!1,!0),H.getEnd()),ee=e.createTextSpanFromBounds(R.pos,R.end);return{file:q.fileName,kind:I,kindModifiers:he,name:R.text,containerName:K,span:le,selectionSpan:ee}}c.createCallHierarchyItem=k;function X(U){return U!==void 0}function A(U){if(U.kind===1){var H=U.node;if(e.isCallOrNewExpressionTarget(H,!0,!0)||e.isTaggedTemplateTag(H,!0,!0)||e.isDecoratorTarget(H,!0,!0)||e.isJsxOpeningLikeElementTagName(H,!0,!0)||e.isRightSideOfPropertyAccess(H)||e.isArgumentExpressionOfElementAccess(H)){var q=H.getSourceFile(),R=e.findAncestor(H,D)||q;return{declaration:R,range:e.createTextRangeFromNode(H,q)}}}}function y(U){return e.getNodeId(U.declaration)}function C(U,H){return{from:U,fromSpans:H}}function B(U,H){return C(k(U,H[0].declaration),e.map(H,function(q){return e.createTextSpanFromRange(q.range)}))}function F(U,H,q){if(e.isSourceFile(H)||e.isModuleDeclaration(H)||e.isClassStaticBlockDeclaration(H))return[];var R=O(H),K=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(U,q,U.getSourceFiles(),R,0,{use:1},A),X);return K?e.group(K,y,function(I){return B(U,I)}):[]}c.getIncomingCalls=F;function z(U,H){function q(K){var I=e.isTaggedTemplateExpression(K)?K.tag:e.isJsxOpeningLikeElement(K)?K.tagName:e.isAccessExpression(K)||e.isClassStaticBlockDeclaration(K)?K:K.expression,he=ce(U,I);if(he){var le=e.createTextRangeFromNode(I,K.getSourceFile());if(e.isArray(he))for(var ee=0,J=he;ee<J.length;ee++){var de=J[ee];H.push({declaration:de,range:le})}else H.push({declaration:he,range:le})}}function R(K){if(K&&!(K.flags&16777216)){if(D(K)){if(e.isClassLike(K))for(var I=0,he=K.members;I<he.length;I++){var le=he[I];le.name&&e.isComputedPropertyName(le.name)&&R(le.name.expression)}return}switch(K.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:q(K);return;case 213:case 231:R(K.expression);return;case 257:case 166:R(K.name),R(K.initializer);return;case 210:q(K),R(K.expression),e.forEach(K.arguments,R);return;case 211:q(K),R(K.expression),e.forEach(K.arguments,R);return;case 212:q(K),R(K.tag),R(K.template);return;case 283:case 282:q(K),R(K.tagName),R(K.attributes);return;case 167:q(K),R(K.expression);return;case 208:case 209:q(K),e.forEachChild(K,R);break;case 235:R(K.expression);return}e.isPartOfTypeNode(K)||e.forEachChild(K,R)}}return R}function ge(U,H){e.forEach(U.statements,H)}function Pe(U,H){!e.hasSyntacticModifier(U,2)&&U.body&&e.isModuleBlock(U.body)&&e.forEach(U.body.statements,H)}function fe(U,H,q){var R=te(U,H);R&&(e.forEach(R.parameters,q),q(R.body))}function _e(U,H){H(U.body)}function ne(U,H){e.forEach(U.modifiers,H);var q=e.getClassExtendsHeritageElement(U);q&&H(q.expression);for(var R=0,K=U.members;R<K.length;R++){var I=K[R];e.canHaveModifiers(I)&&e.forEach(I.modifiers,H),e.isPropertyDeclaration(I)?H(I.initializer):e.isConstructorDeclaration(I)&&I.body?(e.forEach(I.parameters,H),H(I.body)):e.isClassStaticBlockDeclaration(I)&&H(I)}}function oe(U,H){var q=[],R=z(U,q);switch(H.kind){case 308:ge(H,R);break;case 264:Pe(H,R);break;case 259:case 215:case 216:case 171:case 174:case 175:fe(U.getTypeChecker(),H,R);break;case 260:case 228:ne(H,R);break;case 172:_e(H,R);break;default:e.Debug.assertNever(H)}return q}function w(U,H){return{to:U,fromSpans:H}}function re(U,H){return w(k(U,H[0].declaration),e.map(H,function(q){return e.createTextSpanFromRange(q.range)}))}function M(U,H){return H.flags&16777216||e.isMethodSignature(H)?[]:e.group(oe(U,H),y,function(q){return re(U,q)})}c.getOutgoingCalls=M})(e.CallHierarchy||(e.CallHierarchy={}))})(h||(h={}));var h;(function(e){function c(Z,ce,k,X,A,y,C){var B=e.hostUsesCaseSensitiveFileNames(X),F=e.createGetCanonicalFileName(B),z=P(ce,k,F,C),ge=P(k,ce,F,C);return e.textChanges.ChangeTracker.with({host:X,formatContext:A,preferences:y},function(Pe){s(Z,Pe,z,ce,k,X.getCurrentDirectory(),B),D(Z,Pe,z,ge,X,F)})}e.getEditsForFileRename=c;function P(Z,ce,k,X){var A=k(Z);return function(C){var B=X&&X.tryGetSourcePosition({fileName:C,pos:0}),F=y(B?B.fileName:C);return B?F===void 0?void 0:T(B.fileName,F,C,k):F};function y(C){if(k(C)===A)return ce;var B=e.tryRemoveDirectoryPrefix(C,A,k);return B===void 0?void 0:ce+"/"+B}}e.getPathUpdater=P;function T(Z,ce,k,X){var A=e.getRelativePathFromFile(Z,ce,X);return W(e.getDirectoryPath(k),A)}function s(Z,ce,k,X,A,y,C){var B=Z.getCompilerOptions().configFile;if(!B)return;var F=e.getDirectoryPath(B.fileName),z=e.getTsConfigObjectLiteralExpression(B);if(!z)return;Y(z,function(_e,ne){switch(ne){case"files":case"include":case"exclude":{var oe=ge(_e);if(oe||ne!=="include"||!e.isArrayLiteralExpression(_e.initializer))return;var w=e.mapDefined(_e.initializer.elements,function(M){return e.isStringLiteral(M)?M.text:void 0});if(w.length===0)return;var re=e.getFileMatcherPatterns(F,[],w,C,y);e.getRegexFromPattern(e.Debug.checkDefined(re.includeFilePattern),C).test(X)&&!e.getRegexFromPattern(e.Debug.checkDefined(re.includeFilePattern),C).test(A)&&ce.insertNodeAfter(B,e.last(_e.initializer.elements),e.factory.createStringLiteral(fe(A)));return}case"compilerOptions":Y(_e.initializer,function(M,U){var H=e.getOptionFromName(U);H&&(H.isFilePath||H.type==="list"&&H.element.isFilePath)?ge(M):U==="paths"&&Y(M.initializer,function(q){if(e.isArrayLiteralExpression(q.initializer))for(var R=0,K=q.initializer.elements;R<K.length;R++){var I=K[R];Pe(I)}})});return}});function ge(_e){for(var ne=e.isArrayLiteralExpression(_e.initializer)?_e.initializer.elements:[_e.initializer],oe=!1,w=0,re=ne;w<re.length;w++){var M=re[w];oe=Pe(M)||oe}return oe}function Pe(_e){if(!e.isStringLiteral(_e))return!1;var ne=W(F,_e.text),oe=k(ne);return oe!==void 0?(ce.replaceRangeWithText(B,te(_e,B),fe(oe)),!0):!1}function fe(_e){return e.getRelativePathFromDirectory(F,_e,!C)}}function D(Z,ce,k,X,A,y){for(var C=Z.getSourceFiles(),B=function(Pe){var fe=k(Pe.fileName),_e=fe??Pe.fileName,ne=e.getDirectoryPath(_e),oe=X(Pe.fileName),w=oe||Pe.fileName,re=e.getDirectoryPath(w),M=fe!==void 0||oe!==void 0;S(Pe,ce,function(U){if(e.pathIsRelative(U)){var H=W(re,U),q=k(H);return q===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ne,q,y))}},function(U){var H=Z.getTypeChecker().getSymbolAtLocation(U);if(!(H!=null&&H.declarations&&H.declarations.some(function(R){return e.isAmbientModule(R)}))){var q=oe!==void 0?v(U,e.resolveModuleName(U.text,w,Z.getCompilerOptions(),A),k,C):E(H,U,Pe,Z,A,k);return q!==void 0&&(q.updated||M&&e.pathIsRelative(U.text))?e.moduleSpecifiers.updateModuleSpecifier(Z.getCompilerOptions(),Pe,y(_e),q.newFileName,e.createModuleSpecifierResolutionHost(Z,A),U.text):void 0}})},F=0,z=C;F<z.length;F++){var ge=z[F];B(ge)}}function O(Z,ce){return e.normalizePath(e.combinePaths(Z,ce))}function W(Z,ce){return e.ensurePathIsNonModuleName(O(Z,ce))}function E(Z,ce,k,X,A,y){if(Z){var C=e.find(Z.declarations,e.isSourceFile).fileName,B=y(C);return B===void 0?{newFileName:C,updated:!1}:{newFileName:B,updated:!0}}else{var F=e.getModeForUsageLocation(k,ce),z=A.resolveModuleNames?A.getResolvedModuleWithFailedLookupLocationsFromCache&&A.getResolvedModuleWithFailedLookupLocationsFromCache(ce.text,k.fileName,F):X.getResolvedModuleWithFailedLookupLocationsFromCache(ce.text,k.fileName,F);return v(ce,z,y,X.getSourceFiles())}}function v(Z,ce,k,X){if(!ce)return;if(ce.resolvedModule){var A=F(ce.resolvedModule.resolvedFileName);if(A)return A}var y=e.forEach(ce.failedLookupLocations,C)||e.pathIsRelative(Z.text)&&e.forEach(ce.failedLookupLocations,B);if(y)return y;return ce.resolvedModule&&{newFileName:ce.resolvedModule.resolvedFileName,updated:!1};function C(z){var ge=k(z);return ge&&e.find(X,function(Pe){return Pe.fileName===ge})?B(z):void 0}function B(z){return e.endsWith(z,"/package.json")?void 0:F(z)}function F(z){var ge=k(z);return ge&&{newFileName:ge,updated:!0}}}function S(Z,ce,k,X){for(var A=0,y=Z.referencedFiles||e.emptyArray;A<y.length;A++){var C=y[A],B=k(C.fileName);B!==void 0&&B!==Z.text.slice(C.pos,C.end)&&ce.replaceRangeWithText(Z,C,B)}for(var F=0,z=Z.imports;F<z.length;F++){var ge=z[F],B=X(ge);B!==void 0&&B!==ge.text&&ce.replaceRangeWithText(Z,te(ge,Z),B)}}function te(Z,ce){return e.createRange(Z.getStart(ce)+1,Z.end-1)}function Y(Z,ce){if(e.isObjectLiteralExpression(Z))for(var k=0,X=Z.properties;k<X.length;k++){var A=X[k];e.isPropertyAssignment(A)&&e.isStringLiteral(A.name)&&ce(A,A.name.text)}}})(h||(h={}));var h;(function(e){(function(c){function P(fe,_e,ne,oe,w){var re,M,U=O(_e,ne,fe),H=U&&[F(U.reference.fileName,U.fileName,U.unverified)]||e.emptyArray;if(U!=null&&U.file)return H;var q=e.getTouchingPropertyName(_e,ne);if(q!==_e){var R=q.parent,K=fe.getTypeChecker();if(q.kind===161||e.isIdentifier(q)&&e.isJSDocOverrideTag(R)&&R.tagName===q)return D(K,q)||e.emptyArray;if(e.isJumpStatementTarget(q)){var I=e.getTargetLabel(q.parent,q.text);return I?[A(K,I,"label",q.text,void 0)]:void 0}if(q.kind===105){var he=e.findAncestor(q.parent,function(qe){return e.isClassStaticBlockDeclaration(qe)?"quit":e.isFunctionLikeDeclaration(qe)});return he?[C(K,he)]:void 0}if(e.isStaticModifier(q)&&e.isClassStaticBlockDeclaration(q.parent)){var le=q.parent.parent,ee=Y(le,K,w),J=ee.symbol,de=ee.failedAliasResolution,De=e.filter(le.members,e.isClassStaticBlockDeclaration),N=J?K.symbolToString(J,le):"",b=q.getSourceFile();return e.map(De,function(qe){var xe=e.moveRangePastModifiers(qe).pos;return xe=e.skipTrivia(b.text,xe),A(K,qe,"constructor","static {}",N,!1,de,{start:xe,length:6})})}var Q=Y(q,K,w),G=Q.symbol,ae=Q.failedAliasResolution,Te=q;if(oe&&ae){var Ne=e.forEach(t([q],(G==null?void 0:G.declarations)||e.emptyArray,!0),function(qe){return e.findAncestor(qe,e.isAnyImportOrBareOrAccessedRequire)}),we=Ne&&e.tryGetModuleSpecifierFromDeclaration(Ne);we&&(re=Y(we,K,w),G=re.symbol,ae=re.failedAliasResolution,Te=we)}if(!G&&e.isModuleSpecifierLike(Te)){var nr=(M=_e.resolvedModules)===null||M===void 0?void 0:M.get(Te.text,e.getModeForUsageLocation(_e,Te));if(nr)return[{name:Te.text,fileName:nr.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:e.createTextSpan(0,0),failedAliasResolution:ae,isAmbient:e.isDeclarationFileName(nr.resolvedFileName),unverified:Te!==q}]}if(!G)return e.concatenate(H,te(q,K));if(!(oe&&e.every(G.declarations,function(qe){return qe.getSourceFile().fileName===_e.fileName}))){var tr=ge(K,q);if(tr&&!(e.isJsxOpeningLikeElement(q.parent)&&Pe(tr))){var me=C(K,tr,ae);if(K.getRootSymbols(G).some(function(qe){return T(qe,tr)}))return[me];var He=k(K,G,q,ae,tr)||e.emptyArray;return q.kind===106?t([me],He,!0):t(t([],He,!0),[me],!1)}if(q.parent.kind===300){var rr=K.getShorthandAssignmentValueSymbol(G.valueDeclaration),je=rr!=null&&rr.declarations?rr.declarations.map(function(qe){return X(qe,K,rr,q,!1,ae)}):e.emptyArray;return e.concatenate(je,s(K,q)||e.emptyArray)}if(e.isPropertyName(q)&&e.isBindingElement(R)&&e.isObjectBindingPattern(R.parent)&&q===(R.propertyName||R.name)){var Ce=e.getNameFromPropertyName(q),Ae=K.getTypeAtLocation(R.parent);return Ce===void 0?e.emptyArray:e.flatMap(Ae.isUnion()?Ae.types:[Ae],function(qe){var xe=qe.getProperty(Ce);return xe&&k(K,xe,q)})}return e.concatenate(H,s(K,q)||k(K,G,q,ae))}}}c.getDefinitionAtPosition=P;function T(fe,_e){return fe===_e.symbol||fe===_e.symbol.parent||e.isAssignmentExpression(_e.parent)||!e.isCallLikeExpression(_e.parent)&&fe===_e.parent.symbol}function s(fe,_e){var ne=e.getContainingObjectLiteralElement(_e);if(ne){var oe=ne&&fe.getContextualType(ne.parent);if(oe)return e.flatMap(e.getPropertySymbolsFromContextualType(ne,fe,oe,!1),function(w){return k(fe,w,_e)})}}function D(fe,_e){var ne=e.findAncestor(_e,e.isClassElement);if(ne&&ne.name){var oe=e.findAncestor(ne,e.isClassLike);if(oe){var w=e.getEffectiveBaseTypeNode(oe);if(w){var re=e.skipParentheses(w.expression),M=e.isClassExpression(re)?re.symbol:fe.getSymbolAtLocation(re);if(M){var U=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(ne.name)),H=e.hasStaticModifier(ne)?fe.getPropertyOfType(fe.getTypeOfSymbol(M),U):fe.getPropertyOfType(fe.getDeclaredTypeOfSymbol(M),U);if(H)return k(fe,H,_e)}}}}}function O(fe,_e,ne){var oe,w,re=B(fe.referencedFiles,_e);if(re){var M=ne.getSourceFileFromReference(fe,re);return M&&{reference:re,fileName:M.fileName,file:M,unverified:!1}}var U=B(fe.typeReferenceDirectives,_e);if(U){var H=ne.getResolvedTypeReferenceDirectives().get(U.fileName,U.resolutionMode||fe.impliedNodeFormat),M=H&&ne.getSourceFile(H.resolvedFileName);return M&&{reference:U,fileName:M.fileName,file:M,unverified:!1}}var q=B(fe.libReferenceDirectives,_e);if(q){var M=ne.getLibFileFromReference(q);return M&&{reference:q,fileName:M.fileName,file:M,unverified:!1}}if(!((oe=fe.resolvedModules)===null||oe===void 0)&&oe.size()){var R=e.getTouchingToken(fe,_e);if(e.isModuleSpecifierLike(R)&&e.isExternalModuleNameRelative(R.text)&&fe.resolvedModules.has(R.text,e.getModeForUsageLocation(fe,R))){var K=(w=fe.resolvedModules.get(R.text,e.getModeForUsageLocation(fe,R)))===null||w===void 0?void 0:w.resolvedFileName,I=K||e.resolvePath(e.getDirectoryPath(fe.fileName),R.text);return{file:ne.getSourceFile(I),fileName:I,reference:{pos:R.getStart(),end:R.getEnd(),fileName:R.text},unverified:!K}}}}c.getReferenceAtPosition=O;function W(fe,_e,ne){var oe=e.getTouchingPropertyName(_e,ne);if(oe!==_e){if(e.isImportMeta(oe.parent)&&oe.parent.name===oe)return E(fe.getTypeAtLocation(oe.parent),fe,oe.parent,!1);var w=Y(oe,fe,!1),re=w.symbol,M=w.failedAliasResolution;if(re){var U=fe.getTypeOfSymbolAtLocation(re,oe),H=v(re,U,fe),q=H&&E(H,fe,oe,M),R=q&&q.length!==0?q:E(U,fe,oe,M);return R.length?R:!(re.flags&111551)&&re.flags&788968?k(fe,e.skipAlias(re,fe),oe,M):void 0}}}c.getTypeDefinitionAtPosition=W;function E(fe,_e,ne,oe){return e.flatMap(fe.isUnion()&&!(fe.flags&32)?fe.types:[fe],function(w){return w.symbol&&k(_e,w.symbol,ne,oe)})}function v(fe,_e,ne){if(_e.symbol===fe||fe.valueDeclaration&&_e.symbol&&e.isVariableDeclaration(fe.valueDeclaration)&&fe.valueDeclaration.initializer===_e.symbol.valueDeclaration){var oe=_e.getCallSignatures();if(oe.length===1)return ne.getReturnTypeOfSignature(e.first(oe))}}function S(fe,_e,ne){var oe=P(fe,_e,ne);if(!(!oe||oe.length===0)){var w=B(_e.referencedFiles,ne)||B(_e.typeReferenceDirectives,ne)||B(_e.libReferenceDirectives,ne);if(w)return{definitions:oe,textSpan:e.createTextSpanFromRange(w)};var re=e.getTouchingPropertyName(_e,ne),M=e.createTextSpan(re.getStart(),re.getWidth());return{definitions:oe,textSpan:M}}}c.getDefinitionAndBoundSpan=S;function te(fe,_e){return e.mapDefined(_e.getIndexInfosAtLocation(fe),function(ne){return ne.declaration&&C(_e,ne.declaration)})}function Y(fe,_e,ne){var oe=_e.getSymbolAtLocation(fe),w=!1;if(oe!=null&&oe.declarations&&oe.flags&2097152&&!ne&&Z(fe,oe.declarations[0])){var re=_e.getAliasedSymbol(oe);if(re.declarations)return{symbol:re};w=!0}return{symbol:oe,failedAliasResolution:w}}function Z(fe,_e){return fe.kind!==79?!1:fe.parent===_e?!0:_e.kind!==271}function ce(fe){if(!e.isAssignmentDeclaration(fe))return!1;var _e=e.findAncestor(fe,function(ne){return e.isAssignmentExpression(ne)?!0:e.isAssignmentDeclaration(ne)?!1:"quit"});return!!_e&&e.getAssignmentDeclarationKind(_e)===5}function k(fe,_e,ne,oe,w){var re=e.filter(_e.declarations,function(K){return K!==w}),M=e.filter(re,function(K){return!ce(K)}),U=e.some(M)?M:re;return H()||q()||e.map(U,function(K){return X(K,fe,_e,ne,!1,oe)});function H(){if(_e.flags&32&&!(_e.flags&19)&&(e.isNewExpressionTarget(ne)||ne.kind===135)){var K=e.find(re,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return R(K.members,!0)}}function q(){return e.isCallOrNewExpressionTarget(ne)||e.isNameOfFunctionDeclaration(ne)?R(re,!1):void 0}function R(K,I){if(K){var he=K.filter(I?e.isConstructorDeclaration:e.isFunctionLike),le=he.filter(function(ee){return!!ee.body});return he.length?le.length!==0?le.map(function(ee){return X(ee,fe,_e,ne)}):[X(e.last(he),fe,_e,ne,!1,oe)]:void 0}}}function X(fe,_e,ne,oe,w,re){var M=_e.symbolToString(ne),U=e.SymbolDisplay.getSymbolKind(_e,ne,oe),H=ne.parent?_e.symbolToString(ne.parent,oe):"";return A(_e,fe,U,M,H,w,re)}c.createDefinitionInfo=X;function A(fe,_e,ne,oe,w,re,M,U){var H=_e.getSourceFile();if(!U){var q=e.getNameOfDeclaration(_e)||_e;U=e.createTextSpanFromNode(q,H)}return n(n({fileName:H.fileName,textSpan:U,kind:ne,name:oe,containerKind:void 0,containerName:w},e.FindAllReferences.toContextSpan(U,H,e.FindAllReferences.getContextNode(_e))),{isLocal:!y(fe,_e),isAmbient:!!(_e.flags&16777216),unverified:re,failedAliasResolution:M})}function y(fe,_e){if(fe.isDeclarationVisible(_e))return!0;if(!_e.parent)return!1;if(e.hasInitializer(_e.parent)&&_e.parent.initializer===_e)return y(fe,_e.parent);switch(_e.kind){case 169:case 174:case 175:case 171:if(e.hasEffectiveModifier(_e,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return y(fe,_e.parent);default:return!1}}function C(fe,_e,ne){return X(_e,fe,_e.symbol,_e,!1,ne)}function B(fe,_e){return e.find(fe,function(ne){return e.textRangeContainsPositionInclusive(ne,_e)})}c.findReferenceInPosition=B;function F(fe,_e,ne){return{fileName:_e,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:fe,containerName:void 0,containerKind:void 0,unverified:ne}}function z(fe){var _e=e.findAncestor(fe,function(oe){return!e.isRightSideOfPropertyAccess(oe)}),ne=_e==null?void 0:_e.parent;return ne&&e.isCallLikeExpression(ne)&&e.getInvokedExpression(ne)===_e?ne:void 0}function ge(fe,_e){var ne=z(_e),oe=ne&&fe.getResolvedSignature(ne);return e.tryCast(oe&&oe.declaration,function(w){return e.isFunctionLike(w)&&!e.isFunctionTypeNode(w)})}function Pe(fe){switch(fe.kind){case 173:case 182:case 177:return!0;default:return!1}}})(e.GoToDefinition||(e.GoToDefinition={}))})(h||(h={}));var h;(function(e){(function(c){var P=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],T,s;function D(fe,_e){var ne=[];return e.forEachUnique(fe,function(oe){for(var w=0,re=W(oe);w<re.length;w++){var M=re[w],U=e.isJSDoc(M)&&M.tags&&e.find(M.tags,function(q){return q.kind===330&&(q.tagName.escapedText==="inheritDoc"||q.tagName.escapedText==="inheritdoc")});if(!(M.comment===void 0&&!U||e.isJSDoc(M)&&oe.kind!==348&&oe.kind!==341&&M.tags&&M.tags.some(function(q){return q.kind===348||q.kind===341})&&!M.tags.some(function(q){return q.kind===343||q.kind===344}))){var H=M.comment?v(M.comment,_e):[];U&&U.comment&&(H=H.concat(v(U.comment,_e))),e.contains(ne,H,O)||ne.push(H)}}}),e.flatten(e.intersperse(ne,[e.lineBreakPart()]))}c.getJsDocCommentsFromDeclarations=D;function O(fe,_e){return e.arraysEqual(fe,_e,function(ne,oe){return ne.kind===oe.kind&&ne.text===oe.text})}function W(fe){switch(fe.kind){case 343:case 350:return[fe];case 341:case 348:return[fe,fe.parent];default:return e.getJSDocCommentsAndTags(fe)}}function E(fe,_e){var ne=[];return e.forEachUnique(fe,function(oe){var w=e.getJSDocTags(oe);if(!(w.some(function(H){return H.kind===348||H.kind===341})&&!w.some(function(H){return H.kind===343||H.kind===344})))for(var re=0,M=w;re<M.length;re++){var U=M[re];ne.push({name:U.tagName.text,text:S(U,_e)})}}),ne}c.getJsDocTagsFromDeclarations=E;function v(fe,_e){return typeof fe=="string"?[e.textPart(fe)]:e.flatMap(fe,function(ne){return ne.kind===324?[e.textPart(ne.text)]:e.buildLinkParts(ne,_e)})}function S(fe,_e){var ne=fe.comment,oe=fe.kind,w=te(oe);switch(oe){case 332:return q(fe.class);case 331:return q(fe.class);case 347:var re=fe,M=[];if(re.constraint&&M.push(e.textPart(re.constraint.getText())),e.length(re.typeParameters)){e.length(M)&&M.push(e.spacePart());var U=re.typeParameters[re.typeParameters.length-1];e.forEach(re.typeParameters,function(K){M.push(w(K.getText())),U!==K&&M.push.apply(M,[e.punctuationPart(27),e.spacePart()])})}return ne&&M.push.apply(M,t([e.spacePart()],v(ne,_e),!0)),M;case 346:return q(fe.typeExpression);case 348:case 341:case 350:case 343:case 349:var H=fe.name;return H?q(H):ne===void 0?void 0:v(ne,_e);default:return ne===void 0?void 0:v(ne,_e)}function q(K){return R(K.getText())}function R(K){return ne?K.match(/^https?$/)?t([e.textPart(K)],v(ne,_e),!0):t([w(K),e.spacePart()],v(ne,_e),!0):[e.textPart(K)]}}function te(fe){switch(fe){case 343:return e.parameterNamePart;case 350:return e.propertyNamePart;case 347:return e.typeParameterNamePart;case 348:case 341:return e.typeAliasNamePart;default:return e.textPart}}function Y(){return T||(T=e.map(P,function(fe){return{name:fe,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}c.getJSDocTagNameCompletions=Y,c.getJSDocTagNameCompletionDetails=ce;function Z(){return s||(s=e.map(P,function(fe){return{name:"@".concat(fe),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}c.getJSDocTagCompletions=Z;function ce(fe){return{name:fe,kind:"",kindModifiers:"",displayParts:[e.textPart(fe)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}c.getJSDocTagCompletionDetails=ce;function k(fe){if(!e.isIdentifier(fe.name))return e.emptyArray;var _e=fe.name.text,ne=fe.parent,oe=ne.parent;return e.isFunctionLike(oe)?e.mapDefined(oe.parameters,function(w){if(e.isIdentifier(w.name)){var re=w.name.text;if(!(ne.tags.some(function(M){return M!==fe&&e.isJSDocParameterTag(M)&&e.isIdentifier(M.name)&&M.name.escapedText===re})||_e!==void 0&&!e.startsWith(re,_e)))return{name:re,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}c.getJSDocParameterNameCompletions=k;function X(fe){return{name:fe,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(fe)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}c.getJSDocParameterNameCompletionDetails=X;function A(fe,_e,ne,oe){var w=e.getTokenAtPosition(_e,ne),re=e.findAncestor(w,e.isJSDoc);if(!(re&&(re.comment!==void 0||e.length(re.tags)))){var M=w.getStart(_e);if(!(!re&&M<ne)){var U=F(w,oe);if(U){var H=U.commentOwner,q=U.parameters,R=U.hasReturn,K=e.hasJSDocNodes(H)&&H.jsDoc?H.jsDoc:void 0,I=e.lastOrUndefined(K);if(!(H.getStart(_e)<ne||I&&re&&I!==re)){var he=y(_e,ne),le=e.hasJSFileExtension(_e.fileName),ee=(q?C(q||[],le,he,fe):"")+(R?B(he,fe):""),J="/**",de=" */",De=(K||[]).some(function(G){return!!G.tags});if(ee&&!De){var N=J+fe+he+" * ",b=M===ne?fe+he:"",Q=N+fe+ee+he+de+b;return{newText:Q,caretOffset:N.length}}return{newText:J+de,caretOffset:3}}}}}}c.getDocCommentTemplateAtPosition=A;function y(fe,_e){for(var ne=fe.text,oe=e.getLineStartPositionForPosition(_e,fe),w=oe;w<=_e&&e.isWhiteSpaceSingleLine(ne.charCodeAt(w));w++);return ne.slice(oe,w)}function C(fe,_e,ne,oe){return fe.map(function(w,re){var M=w.name,U=w.dotDotDotToken,H=M.kind===79?M.text:"param"+re,q=_e?U?"{...any} ":"{any} ":"";return"".concat(ne," * @param ").concat(q).concat(H).concat(oe)}).join("")}function B(fe,_e){return"".concat(fe," * @returns").concat(_e)}function F(fe,_e){return e.forEachAncestor(fe,function(ne){return z(ne,_e)})}function z(fe,_e){switch(fe.kind){case 259:case 215:case 171:case 173:case 170:case 216:var ne=fe;return{commentOwner:fe,parameters:ne.parameters,hasReturn:ge(ne,_e)};case 299:return z(fe.initializer,_e);case 260:case 261:case 263:case 302:case 262:return{commentOwner:fe};case 168:{var oe=fe;return oe.type&&e.isFunctionTypeNode(oe.type)?{commentOwner:fe,parameters:oe.type.parameters,hasReturn:ge(oe.type,_e)}:{commentOwner:fe}}case 240:{var w=fe,re=w.declarationList.declarations,M=re.length===1&&re[0].initializer?Pe(re[0].initializer):void 0;return M?{commentOwner:fe,parameters:M.parameters,hasReturn:ge(M,_e)}:{commentOwner:fe}}case 308:return"quit";case 264:return fe.parent.kind===264?void 0:{commentOwner:fe};case 241:return z(fe.expression,_e);case 223:{var U=fe;return e.getAssignmentDeclarationKind(U)===0?"quit":e.isFunctionLike(U.right)?{commentOwner:fe,parameters:U.right.parameters,hasReturn:ge(U.right,_e)}:{commentOwner:fe}}case 169:var H=fe.initializer;if(H&&(e.isFunctionExpression(H)||e.isArrowFunction(H)))return{commentOwner:fe,parameters:H.parameters,hasReturn:ge(H,_e)}}}function ge(fe,_e){return!!(_e!=null&&_e.generateReturnInDocTemplate)&&(e.isFunctionTypeNode(fe)||e.isArrowFunction(fe)&&e.isExpression(fe.body)||e.isFunctionLikeDeclaration(fe)&&fe.body&&e.isBlock(fe.body)&&!!e.forEachReturnStatement(fe.body,function(ne){return ne}))}function Pe(fe){for(;fe.kind===214;)fe=fe.expression;switch(fe.kind){case 215:case 216:return fe;case 228:return e.find(fe.members,e.isConstructorDeclaration)}}})(e.JsDoc||(e.JsDoc={}))})(h||(h={}));var h;(function(e){(function(c){function P(te,Y,Z,ce,k,X){var A=e.createPatternMatcher(ce);if(!A)return e.emptyArray;for(var y=[],C=function(ge){if(Z.throwIfCancellationRequested(),X&&ge.isDeclarationFile)return"continue";ge.getNamedDeclarations().forEach(function(Pe,fe){T(A,fe,Pe,Y,ge.fileName,y)})},B=0,F=te;B<F.length;B++){var z=F[B];C(z)}return y.sort(v),(k===void 0?y:y.slice(0,k)).map(S)}c.getNavigateToItems=P;function T(te,Y,Z,ce,k,X){var A=te.getMatchForLastSegmentOfPattern(Y);if(A)for(var y=0,C=Z;y<C.length;y++){var B=C[y];if(s(B,ce))if(te.patternContainsDots){var F=te.getFullMatch(E(B),Y);F&&X.push({name:Y,fileName:k,matchKind:F.kind,isCaseSensitive:F.isCaseSensitive,declaration:B})}else X.push({name:Y,fileName:k,matchKind:A.kind,isCaseSensitive:A.isCaseSensitive,declaration:B})}}function s(te,Y){switch(te.kind){case 270:case 273:case 268:var Z=Y.getSymbolAtLocation(te.name),ce=Y.getAliasedSymbol(Z);return Z.escapedName!==ce.escapedName;default:return!0}}function D(te,Y){var Z=e.getNameOfDeclaration(te);return!!Z&&(W(Z,Y)||Z.kind===164&&O(Z.expression,Y))}function O(te,Y){return W(te,Y)||e.isPropertyAccessExpression(te)&&(Y.push(te.name.text),!0)&&O(te.expression,Y)}function W(te,Y){return e.isPropertyNameLiteral(te)&&(Y.push(e.getTextOfIdentifierOrLiteral(te)),!0)}function E(te){var Y=[],Z=e.getNameOfDeclaration(te);if(Z&&Z.kind===164&&!O(Z.expression,Y))return e.emptyArray;Y.shift();for(var ce=e.getContainerNode(te);ce;){if(!D(ce,Y))return e.emptyArray;ce=e.getContainerNode(ce)}return Y.reverse()}function v(te,Y){return e.compareValues(te.matchKind,Y.matchKind)||e.compareStringsCaseSensitiveUI(te.name,Y.name)}function S(te){var Y=te.declaration,Z=e.getContainerNode(Y),ce=Z&&e.getNameOfDeclaration(Z);return{name:te.name,kind:e.getNodeKind(Y),kindModifiers:e.getNodeModifiers(Y),matchKind:e.PatternMatchKind[te.matchKind],isCaseSensitive:te.isCaseSensitive,fileName:te.fileName,textSpan:e.createTextSpanFromNode(Y),containerName:ce?ce.text:"",containerKind:ce?e.getNodeKind(Z):""}}})(e.NavigateTo||(e.NavigateTo={}))})(h||(h={}));var h;(function(e){(function(c){var P,T=/\s+/g,s=150,D,O,W=[],E,v=[],S,te=[];function Y(je,Ce){D=Ce,O=je;try{return e.map(De(y(je)),b)}finally{ce()}}c.getNavigationBarItems=Y;function Z(je,Ce){D=Ce,O=je;try{return N(y(je))}finally{ce()}}c.getNavigationTree=Z;function ce(){O=void 0,D=void 0,W=[],E=void 0,te=[]}function k(je){return rr(je.getText(O))}function X(je){return je.node.kind}function A(je,Ce){je.children?je.children.push(Ce):je.children=[Ce]}function y(je){e.Debug.assert(!W.length);var Ce={node:je,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};E=Ce;for(var Ae=0,qe=je.statements;Ae<qe.length;Ae++){var xe=qe[Ae];w(xe)}return fe(),e.Debug.assert(!E&&!W.length),Ce}function C(je,Ce){A(E,B(je,Ce))}function B(je,Ce){return{node:je,name:Ce||(e.isDeclaration(je)||e.isExpression(je)?e.getNameOfDeclaration(je):void 0),additionalNodes:void 0,parent:E,children:void 0,indent:E.indent+1}}function F(je){S||(S=new e.Map),S.set(je,!0)}function z(je){for(var Ce=0;Ce<je;Ce++)fe()}function ge(je,Ce){for(var Ae=[];!e.isPropertyNameLiteral(Ce);){var qe=e.getNameOrArgument(Ce),xe=e.getElementOrPropertyAccessName(Ce);Ce=Ce.expression,!(xe==="prototype"||e.isPrivateIdentifier(qe))&&Ae.push(qe)}Ae.push(Ce);for(var L=Ae.length-1;L>0;L--){var qe=Ae[L];Pe(je,qe)}return[Ae.length-1,Ae[0]]}function Pe(je,Ce){var Ae=B(je,Ce);A(E,Ae),W.push(E),v.push(S),S=void 0,E=Ae}function fe(){E.children&&(re(E.children,E),le(E.children)),E=W.pop(),S=v.pop()}function _e(je,Ce,Ae){Pe(je,Ae),w(Ce),fe()}function ne(je){je.initializer&&He(je.initializer)?(Pe(je),e.forEachChild(je.initializer,w),fe()):_e(je,je.initializer)}function oe(je){return!e.hasDynamicName(je)||je.kind!==223&&e.isPropertyAccessExpression(je.name.expression)&&e.isIdentifier(je.name.expression.expression)&&e.idText(je.name.expression.expression)==="Symbol"}function w(je){var Ce;if(D.throwIfCancellationRequested(),!(!je||e.isToken(je)))switch(je.kind){case 173:var Ae=je;_e(Ae,Ae.body);for(var qe=0,xe=Ae.parameters;qe<xe.length;qe++){var L=xe[qe];e.isParameterPropertyDeclaration(L,Ae)&&C(L)}break;case 171:case 174:case 175:case 170:oe(je)&&_e(je,je.body);break;case 169:oe(je)&&ne(je);break;case 168:oe(je)&&C(je);break;case 270:var ue=je;ue.name&&C(ue.name);var Ue=ue.namedBindings;if(Ue)if(Ue.kind===271)C(Ue);else for(var Je=0,lr=Ue.elements;Je<lr.length;Je++){var mr=lr[Je];C(mr)}break;case 300:_e(je,je.name);break;case 301:var Hr=je.expression;e.isIdentifier(Hr)?C(je,Hr):C(je);break;case 205:case 299:case 257:{var wr=je;e.isBindingPattern(wr.name)?w(wr.name):ne(wr);break}case 259:var Oe=je.name;Oe&&e.isIdentifier(Oe)&&F(Oe.text),_e(je,je.body);break;case 216:case 215:_e(je,je.body);break;case 263:Pe(je);for(var Ze=0,tt=je.members;Ze<tt.length;Ze++){var ut=tt[Ze];Ne(ut)||C(ut)}fe();break;case 260:case 228:case 261:Pe(je);for(var or=0,qr=je.members;or<qr.length;or++){var ut=qr[or];w(ut)}fe();break;case 264:_e(je,Te(je).body);break;case 274:{var Rr=je.expression,wr=e.isObjectLiteralExpression(Rr)||e.isCallExpression(Rr)?Rr:e.isArrowFunction(Rr)||e.isFunctionExpression(Rr)?Rr.body:void 0;wr?(Pe(je),w(wr),fe()):C(je);break}case 278:case 268:case 178:case 176:case 177:case 262:C(je);break;case 210:case 223:{var zr=e.getAssignmentDeclarationKind(je);switch(zr){case 1:case 2:_e(je,je.right);return;case 6:case 3:{var Fr=je,_t=Fr.left,Ct=zr===3?_t.expression:_t,yt=0,Fe=void 0;e.isIdentifier(Ct.expression)?(F(Ct.expression.text),Fe=Ct.expression):(Ce=ge(Fr,Ct.expression),yt=Ce[0],Fe=Ce[1]),zr===6?e.isObjectLiteralExpression(Fr.right)&&Fr.right.properties.length>0&&(Pe(Fr,Fe),e.forEachChild(Fr.right,w),fe()):e.isFunctionExpression(Fr.right)||e.isArrowFunction(Fr.right)?_e(je,Fr.right,Fe):(Pe(Fr,Fe),_e(je,Fr.right,_t.name),fe()),z(yt);return}case 7:case 9:{var vr=je,Fe=zr===7?vr.arguments[0]:vr.arguments[0].expression,Le=vr.arguments[1],cr=ge(je,Fe),yt=cr[0],$r=cr[1];Pe(je,$r),Pe(je,e.setTextRange(e.factory.createIdentifier(Le.text),Le)),w(je.arguments[2]),fe(),fe(),z(yt);return}case 5:{var Fr=je,_t=Fr.left,Re=_t.expression;if(e.isIdentifier(Re)&&e.getElementOrPropertyAccessName(_t)!=="prototype"&&S&&S.has(Re.text)){e.isFunctionExpression(Fr.right)||e.isArrowFunction(Fr.right)?_e(je,Fr.right,Re):e.isBindableStaticAccessExpression(_t)&&(Pe(Fr,Re),_e(Fr.left,Fr.right,e.getNameOrArgument(_t)),fe());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(zr)}}default:e.hasJSDocNodes(je)&&e.forEach(je.jsDoc,function(xr){e.forEach(xr.tags,function(Br){e.isJSDocTypeAlias(Br)&&C(Br)})}),e.forEachChild(je,w)}}function re(je,Ce){var Ae=new e.Map;e.filterMutate(je,function(qe,xe){var L=qe.name||e.getNameOfDeclaration(qe.node),ue=L&&k(L);if(!ue)return!0;var Ue=Ae.get(ue);if(!Ue)return Ae.set(ue,qe),!0;if(Ue instanceof Array){for(var Je=0,lr=Ue;Je<lr.length;Je++){var mr=lr[Je];if(H(mr,qe,xe,Ce))return!1}return Ue.push(qe),!0}else{var mr=Ue;return H(mr,qe,xe,Ce)?!1:(Ae.set(ue,[mr,qe]),!0)}})}var M=(P={},P[5]=!0,P[3]=!0,P[7]=!0,P[9]=!0,P[0]=!1,P[1]=!1,P[2]=!1,P[8]=!1,P[6]=!0,P[4]=!1,P);function U(je,Ce,Ae,qe){function xe(wr){return e.isFunctionExpression(wr)||e.isFunctionDeclaration(wr)||e.isVariableDeclaration(wr)}var L=e.isBinaryExpression(Ce.node)||e.isCallExpression(Ce.node)?e.getAssignmentDeclarationKind(Ce.node):0,ue=e.isBinaryExpression(je.node)||e.isCallExpression(je.node)?e.getAssignmentDeclarationKind(je.node):0;if(M[L]&&M[ue]||xe(je.node)&&M[L]||xe(Ce.node)&&M[ue]||e.isClassDeclaration(je.node)&&R(je.node)&&M[L]||e.isClassDeclaration(Ce.node)&&M[ue]||e.isClassDeclaration(je.node)&&R(je.node)&&xe(Ce.node)||e.isClassDeclaration(Ce.node)&&xe(je.node)&&R(je.node)){var Ue=je.additionalNodes&&e.lastOrUndefined(je.additionalNodes)||je.node;if(!e.isClassDeclaration(je.node)&&!e.isClassDeclaration(Ce.node)||xe(je.node)||xe(Ce.node)){var Je=xe(je.node)?je.node:xe(Ce.node)?Ce.node:void 0;if(Je!==void 0){var lr=e.setTextRange(e.factory.createConstructorDeclaration(void 0,[],void 0),Je),mr=B(lr);mr.indent=je.indent+1,mr.children=je.node===Je?je.children:Ce.children,je.children=je.node===Je?e.concatenate([mr],Ce.children||[Ce]):e.concatenate(je.children||[n({},je)],[mr])}else(je.children||Ce.children)&&(je.children=e.concatenate(je.children||[n({},je)],Ce.children||[Ce]),je.children&&(re(je.children,je),le(je.children)));Ue=je.node=e.setTextRange(e.factory.createClassDeclaration(void 0,je.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),je.node)}else je.children=e.concatenate(je.children,Ce.children),je.children&&re(je.children,je);var Hr=Ce.node;return qe.children[Ae-1].node.end===Ue.end?e.setTextRange(Ue,{pos:Ue.pos,end:Hr.end}):(je.additionalNodes||(je.additionalNodes=[]),je.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,je.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),Ce.node))),!0}return L!==0}function H(je,Ce,Ae,qe){return U(je,Ce,Ae,qe)?!0:q(je.node,Ce.node,qe)?(he(je,Ce),!0):!1}function q(je,Ce,Ae){if(je.kind!==Ce.kind||je.parent!==Ce.parent&&!(K(je,Ae)&&K(Ce,Ae)))return!1;switch(je.kind){case 169:case 171:case 174:case 175:return e.isStatic(je)===e.isStatic(Ce);case 264:return I(je,Ce)&&ae(je)===ae(Ce);default:return!0}}function R(je){return!!(je.flags&8)}function K(je,Ce){var Ae=e.isModuleBlock(je.parent)?je.parent.parent:je.parent;return Ae===Ce.node||e.contains(Ce.additionalNodes,Ae)}function I(je,Ce){return!je.body||!Ce.body?je.body===Ce.body:je.body.kind===Ce.body.kind&&(je.body.kind!==264||I(je.body,Ce.body))}function he(je,Ce){var Ae;je.additionalNodes=je.additionalNodes||[],je.additionalNodes.push(Ce.node),Ce.additionalNodes&&(Ae=je.additionalNodes).push.apply(Ae,Ce.additionalNodes),je.children=e.concatenate(je.children,Ce.children),je.children&&(re(je.children,je),le(je.children))}function le(je){je.sort(ee)}function ee(je,Ce){return e.compareStringsCaseSensitiveUI(J(je.node),J(Ce.node))||e.compareValues(X(je),X(Ce))}function J(je){if(je.kind===264)return G(je);var Ce=e.getNameOfDeclaration(je);if(Ce&&e.isPropertyName(Ce)){var Ae=e.getPropertyNameForPropertyNameNode(Ce);return Ae&&e.unescapeLeadingUnderscores(Ae)}switch(je.kind){case 215:case 216:case 228:return tr(je);default:return}}function de(je,Ce){if(je.kind===264)return rr(G(je));if(Ce){var Ae=e.isIdentifier(Ce)?Ce.text:e.isElementAccessExpression(Ce)?"[".concat(k(Ce.argumentExpression),"]"):k(Ce);if(Ae.length>0)return rr(Ae)}switch(je.kind){case 308:var qe=je;return e.isExternalModule(qe)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(qe.fileName)))),'"'):"<global>";case 274:return e.isExportAssignment(je)&&je.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return e.getSyntacticModifierFlags(je)&1024?"default":tr(je);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function De(je){var Ce=[];function Ae(xe){if(qe(xe)&&(Ce.push(xe),xe.children))for(var L=0,ue=xe.children;L<ue.length;L++){var Ue=ue[L];Ae(Ue)}}return Ae(je),Ce;function qe(xe){if(xe.children)return!0;switch(X(xe)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 348:case 341:return!0;case 216:case 259:case 215:return L(xe);default:return!1}function L(ue){if(!ue.node.body)return!1;switch(X(ue.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}function N(je){return{text:de(je.node,je.name),kind:e.getNodeKind(je.node),kindModifiers:nr(je.node),spans:Q(je),nameSpan:je.name&&we(je.name),childItems:e.map(je.children,N)}}function b(je){return{text:de(je.node,je.name),kind:e.getNodeKind(je.node),kindModifiers:nr(je.node),spans:Q(je),childItems:e.map(je.children,Ce)||te,indent:je.indent,bolded:!1,grayed:!1};function Ce(Ae){return{text:de(Ae.node,Ae.name),kind:e.getNodeKind(Ae.node),kindModifiers:e.getNodeModifiers(Ae.node),spans:Q(Ae),childItems:te,indent:0,bolded:!1,grayed:!1}}}function Q(je){var Ce=[we(je.node)];if(je.additionalNodes)for(var Ae=0,qe=je.additionalNodes;Ae<qe.length;Ae++){var xe=qe[Ae];Ce.push(we(xe))}return Ce}function G(je){return e.isAmbientModule(je)?e.getTextOfNode(je.name):ae(je)}function ae(je){for(var Ce=[e.getTextOfIdentifierOrLiteral(je.name)];je.body&&je.body.kind===264;)je=je.body,Ce.push(e.getTextOfIdentifierOrLiteral(je.name));return Ce.join(".")}function Te(je){return je.body&&e.isModuleDeclaration(je.body)?Te(je.body):je}function Ne(je){return!je.name||je.name.kind===164}function we(je){return je.kind===308?e.createTextSpanFromRange(je):e.createTextSpanFromNode(je,O)}function nr(je){return je.parent&&je.parent.kind===257&&(je=je.parent),e.getNodeModifiers(je)}function tr(je){var Ce=je.parent;if(je.name&&e.getFullWidth(je.name)>0)return rr(e.declarationNameToString(je.name));if(e.isVariableDeclaration(Ce))return rr(e.declarationNameToString(Ce.name));if(e.isBinaryExpression(Ce)&&Ce.operatorToken.kind===63)return k(Ce.left).replace(T,"");if(e.isPropertyAssignment(Ce))return k(Ce.name);if(e.getSyntacticModifierFlags(je)&1024)return"default";if(e.isClassLike(je))return"<class>";if(e.isCallExpression(Ce)){var Ae=me(Ce.expression);if(Ae!==void 0){if(Ae=rr(Ae),Ae.length>s)return"".concat(Ae," callback");var qe=rr(e.mapDefined(Ce.arguments,function(xe){return e.isStringLiteralLike(xe)?xe.getText(O):void 0}).join(", "));return"".concat(Ae,"(").concat(qe,") callback")}}return"<function>"}function me(je){if(e.isIdentifier(je))return je.text;if(e.isPropertyAccessExpression(je)){var Ce=me(je.expression),Ae=je.name.text;return Ce===void 0?Ae:"".concat(Ce,".").concat(Ae)}else return}function He(je){switch(je.kind){case 216:case 215:case 228:return!0;default:return!1}}function rr(je){return je=je.length>s?je.substring(0,s)+"...":je,je.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))})(h||(h={}));var h;(function(e){(function(c){function P(_e,ne,oe,w,re,M){var U=e.textChanges.ChangeTracker.fromContext({host:oe,formatContext:ne,preferences:re}),H=M==="SortAndCombine"||M==="All",q=H,R=M==="RemoveUnused"||M==="All",K=R?D:e.identity,I=q?E:e.identity,he=function(G){var ae=I(K(G,_e,w));return H?e.stableSort(ae,function(Te,Ne){return F(Te,Ne)}):ae},le=T(_e,_e.statements.filter(e.isImportDeclaration));if(le.forEach(function(G){return Q(G,he)}),M!=="RemoveUnused"){var ee=_e.statements.filter(e.isExportDeclaration);Q(ee,S)}for(var J=0,de=_e.statements.filter(e.isAmbientModule);J<de.length;J++){var De=de[J];if(De.body){var N=T(_e,De.body.statements.filter(e.isImportDeclaration));if(N.forEach(function(G){return Q(G,he)}),M!=="RemoveUnused"){var b=De.body.statements.filter(e.isExportDeclaration);Q(b,S)}}}return U.getChanges();function Q(G,ae){if(e.length(G)!==0){e.suppressLeadingTrivia(G[0]);var Te=q?e.group(G,function(me){return W(me.moduleSpecifier)}):[G],Ne=H?e.stableSort(Te,function(me,He){return ce(me[0].moduleSpecifier,He[0].moduleSpecifier)}):Te,we=e.flatMap(Ne,function(me){return W(me[0].moduleSpecifier)?ae(me):me});if(we.length===0)U.deleteNodes(_e,G,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var nr={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(oe,ne.options)};U.replaceNodeWithNodes(_e,G[0],we,nr);var tr=U.nodeHasTrailingComment(_e,G[0],nr);U.deleteNodes(_e,G.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},tr)}}}}c.organizeImports=P;function T(_e,ne){for(var oe=e.createScanner(_e.languageVersion,!1,_e.languageVariant),w=[],re=0,M=0,U=ne;M<U.length;M++){var H=U[M];s(_e,H,oe)&&re++,w[re]||(w[re]=[]),w[re].push(H)}return w}function s(_e,ne,oe){var w=ne.getFullStart(),re=ne.getStart();oe.setText(_e.text,w,re-w);for(var M=0;oe.getTokenPos()<re;){var U=oe.scan();if(U===4&&(M++,M>=2))return!0}return!1}function D(_e,ne,oe){for(var w=oe.getTypeChecker(),re=oe.getCompilerOptions(),M=w.getJsxNamespace(ne),U=w.getJsxFragmentFactory(ne),H=!!(ne.transformFlags&2),q=[],R=0,K=_e;R<K.length;R++){var I=K[R],he=I.importClause,le=I.moduleSpecifier;if(!he){q.push(I);continue}var ee=he.name,J=he.namedBindings;if(ee&&!De(ee)&&(ee=void 0),J)if(e.isNamespaceImport(J))De(J.name)||(J=void 0);else{var de=J.elements.filter(function(N){return De(N.name)});de.length<J.elements.length&&(J=de.length?e.factory.updateNamedImports(J,de):void 0)}ee||J?q.push(te(I,ee,J)):O(ne,le)&&(ne.isDeclarationFile?q.push(e.factory.createImportDeclaration(I.modifiers,void 0,le,void 0)):q.push(I))}return q;function De(N){return H&&(N.text===M||U&&N.text===U)&&e.jsxModeNeedsExplicitImport(re.jsx)||e.FindAllReferences.Core.isSymbolReferencedInFile(N,w,ne)}}function O(_e,ne){var oe=e.isStringLiteral(ne)&&ne.text;return e.isString(oe)&&e.some(_e.moduleAugmentations,function(w){return e.isStringLiteral(w)&&w.text===oe})}function W(_e){return _e!==void 0&&e.isStringLiteralLike(_e)?_e.text:void 0}function E(_e){var ne;if(_e.length===0)return _e;var oe=v(_e),w=oe.importWithoutClause,re=oe.typeOnlyImports,M=oe.regularImports,U=[];w&&U.push(w);for(var H=0,q=[M,re];H<q.length;H++){var R=q[H],K=R===re,I=R.defaultImports,he=R.namespaceImports,le=R.namedImports;if(!K&&I.length===1&&he.length===1&&le.length===0){var ee=I[0];U.push(te(ee,ee.importClause.name,he[0].importClause.namedBindings));continue}for(var J=e.stableSort(he,function(nr,tr){return k(nr.importClause.namedBindings.name,tr.importClause.namedBindings.name)}),de=0,De=J;de<De.length;de++){var N=De[de];U.push(te(N,void 0,N.importClause.namedBindings))}if(!(I.length===0&&le.length===0)){var b=void 0,Q=[];if(I.length===1)b=I[0].importClause.name;else for(var G=0,ae=I;G<ae.length;G++){var ee=ae[G];Q.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),ee.importClause.name))}Q.push.apply(Q,Pe(le));var Te=Y(Q),Ne=I.length>0?I[0]:le[0],we=Te.length===0?b?void 0:e.factory.createNamedImports(e.emptyArray):le.length===0?e.factory.createNamedImports(Te):e.factory.updateNamedImports(le[0].importClause.namedBindings,Te);K&&b&&we?(U.push(te(Ne,b,void 0)),U.push(te((ne=le[0])!==null&&ne!==void 0?ne:Ne,void 0,we))):U.push(te(Ne,b,we))}}return U}c.coalesceImports=E;function v(_e){for(var ne,oe={defaultImports:[],namespaceImports:[],namedImports:[]},w={defaultImports:[],namespaceImports:[],namedImports:[]},re=0,M=_e;re<M.length;re++){var U=M[re];if(U.importClause===void 0){ne=ne||U;continue}var H=U.importClause.isTypeOnly?oe:w,q=U.importClause,R=q.name,K=q.namedBindings;R&&H.defaultImports.push(U),K&&(e.isNamespaceImport(K)?H.namespaceImports.push(U):H.namedImports.push(U))}return{importWithoutClause:ne,typeOnlyImports:oe,regularImports:w}}function S(_e){if(_e.length===0)return _e;var ne=he(_e),oe=ne.exportWithoutClause,w=ne.namedExports,re=ne.typeOnlyExports,M=[];oe&&M.push(oe);for(var U=0,H=[w,re];U<H.length;U++){var q=H[U];if(q.length!==0){var R=[];R.push.apply(R,e.flatMap(q,function(le){return le.exportClause&&e.isNamedExports(le.exportClause)?le.exportClause.elements:e.emptyArray}));var K=Y(R),I=q[0];M.push(e.factory.updateExportDeclaration(I,I.modifiers,I.isTypeOnly,I.exportClause&&(e.isNamedExports(I.exportClause)?e.factory.updateNamedExports(I.exportClause,K):e.factory.updateNamespaceExport(I.exportClause,I.exportClause.name)),I.moduleSpecifier,I.assertClause))}}return M;function he(le){for(var ee,J=[],de=[],De=0,N=le;De<N.length;De++){var b=N[De];b.exportClause===void 0?ee=ee||b:b.isTypeOnly?de.push(b):J.push(b)}return{exportWithoutClause:ee,namedExports:J,typeOnlyExports:de}}}c.coalesceExports=S;function te(_e,ne,oe){return e.factory.updateImportDeclaration(_e,_e.modifiers,e.factory.updateImportClause(_e.importClause,_e.importClause.isTypeOnly,ne,oe),_e.moduleSpecifier,_e.assertClause)}function Y(_e){return e.stableSort(_e,Z)}function Z(_e,ne){return e.compareBooleans(_e.isTypeOnly,ne.isTypeOnly)||k(_e.propertyName||_e.name,ne.propertyName||ne.name)||k(_e.name,ne.name)}c.compareImportOrExportSpecifiers=Z;function ce(_e,ne){var oe=_e===void 0?void 0:W(_e),w=ne===void 0?void 0:W(ne);return e.compareBooleans(oe===void 0,w===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(oe),e.isExternalModuleNameRelative(w))||e.compareStringsCaseInsensitive(oe,w)}c.compareModuleSpecifiers=ce;function k(_e,ne){return e.compareStringsCaseInsensitive(_e.text,ne.text)}function X(_e){var ne;switch(_e.kind){case 268:return(ne=e.tryCast(_e.moduleReference,e.isExternalModuleReference))===null||ne===void 0?void 0:ne.expression;case 269:return _e.moduleSpecifier;case 240:return _e.declarationList.declarations[0].initializer.arguments[0]}}function A(_e){return e.arrayIsSorted(_e,F)}c.importsAreSorted=A;function y(_e){return e.arrayIsSorted(_e,Z)}c.importSpecifiersAreSorted=y;function C(_e,ne){var oe=e.binarySearch(_e,ne,e.identity,F);return oe<0?~oe:oe}c.getImportDeclarationInsertionIndex=C;function B(_e,ne){var oe=e.binarySearch(_e,ne,e.identity,Z);return oe<0?~oe:oe}c.getImportSpecifierInsertionIndex=B;function F(_e,ne){return ce(X(_e),X(ne))||z(_e,ne)}c.compareImportsOrRequireStatements=F;function z(_e,ne){return e.compareValues(ge(_e),ge(ne))}function ge(_e){var ne;switch(_e.kind){case 269:return _e.importClause?_e.importClause.isTypeOnly?1:((ne=_e.importClause.namedBindings)===null||ne===void 0?void 0:ne.kind)===271?2:_e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function Pe(_e){return e.flatMap(_e,function(ne){return e.map(fe(ne),function(oe){return oe.name&&oe.propertyName&&oe.name.escapedText===oe.propertyName.escapedText?e.factory.updateImportSpecifier(oe,oe.isTypeOnly,void 0,oe.name):oe})})}function fe(_e){var ne;return!((ne=_e.importClause)===null||ne===void 0)&&ne.namedBindings&&e.isNamedImports(_e.importClause.namedBindings)?_e.importClause.namedBindings.elements:void 0}})(e.OrganizeImports||(e.OrganizeImports={}))})(h||(h={}));var h;(function(e){(function(c){function P(k,X){var A=[];return T(k,X,A),s(k,A),A.sort(function(y,C){return y.textSpan.start-C.textSpan.start})}c.collectElements=P;function T(k,X,A){for(var y=40,C=0,B=t(t([],k.statements,!0),[k.endOfFileToken],!1),F=B.length;C<F;){for(;C<F&&!e.isAnyImportSyntax(B[C]);)Pe(B[C]),C++;if(C===F)break;for(var z=C;C<F&&e.isAnyImportSyntax(B[C]);)E(B[C],k,X,A),C++;var ge=C-1;ge!==z&&A.push(v(e.findChildOfKind(B[z],100,k).getStart(k),B[ge].getEnd(),"imports"))}function Pe(fe){var _e;if(y!==0){X.throwIfCancellationRequested(),(e.isDeclaration(fe)||e.isVariableStatement(fe)||e.isReturnStatement(fe)||e.isCallOrNewExpression(fe)||fe.kind===1)&&E(fe,k,X,A),e.isFunctionLike(fe)&&e.isBinaryExpression(fe.parent)&&e.isPropertyAccessExpression(fe.parent.left)&&E(fe.parent.left,k,X,A),(e.isBlock(fe)||e.isModuleBlock(fe))&&W(fe.statements.end,k,X,A),(e.isClassLike(fe)||e.isInterfaceDeclaration(fe))&&W(fe.members.end,k,X,A);var ne=S(fe,k);ne&&A.push(ne),y--,e.isCallExpression(fe)?(y++,Pe(fe.expression),y--,fe.arguments.forEach(Pe),(_e=fe.typeArguments)===null||_e===void 0||_e.forEach(Pe)):e.isIfStatement(fe)&&fe.elseStatement&&e.isIfStatement(fe.elseStatement)?(Pe(fe.expression),Pe(fe.thenStatement),y++,Pe(fe.elseStatement),y--):fe.forEachChild(Pe),y++}}}function s(k,X){for(var A=[],y=k.getLineStarts(),C=0,B=y;C<B.length;C++){var F=B[C],z=k.getLineEndOfPosition(F),ge=k.text.substring(F,z),Pe=O(ge);if(!(!Pe||e.isInComment(k,F)))if(Pe[1]){var _e=A.pop();_e&&(_e.textSpan.length=z-_e.textSpan.start,_e.hintSpan.length=z-_e.textSpan.start,X.push(_e))}else{var fe=e.createTextSpanFromBounds(k.text.indexOf("//",F),z);A.push(Z(fe,"region",fe,!1,Pe[2]||"#region"))}}}var D=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function O(k){return k=e.trimStringStart(k),e.startsWith(k,"//")?(k=e.trimString(k.slice(2)),D.exec(k)):null}function W(k,X,A,y){var C=e.getLeadingCommentRanges(X.text,k);if(!C)return;for(var B=-1,F=-1,z=0,ge=X.getFullText(),Pe=0,fe=C;Pe<fe.length;Pe++){var _e=fe[Pe],ne=_e.kind,oe=_e.pos,w=_e.end;switch(A.throwIfCancellationRequested(),ne){case 2:var re=ge.slice(oe,w);if(O(re)){M(),z=0;break}z===0&&(B=oe),F=w,z++;break;case 3:M(),y.push(v(oe,w,"comment")),z=0;break;default:e.Debug.assertNever(ne)}}M();function M(){z>1&&y.push(v(B,F,"comment"))}}function E(k,X,A,y){e.isJsxText(k)||W(k.pos,X,A,y)}function v(k,X,A){return Z(e.createTextSpanFromBounds(k,X),A)}function S(k,X){switch(k.kind){case 238:if(e.isFunctionLike(k.parent))return te(k.parent,k,X);switch(k.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return _e(k.parent);case 255:var A=k.parent;if(A.tryBlock===k)return _e(k.parent);if(A.finallyBlock===k){var y=e.findChildOfKind(A,96,X);if(y)return _e(y)}default:return Z(e.createTextSpanFromNode(k,X),"code")}case 265:return _e(k.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return _e(k);case 186:return _e(k,!1,!e.isTupleTypeNode(k.parent),22);case 292:case 293:return ne(k.statements);case 207:return fe(k);case 206:return fe(k,22);case 281:return F(k);case 285:return z(k);case 282:case 283:return ge(k.attributes);case 225:case 14:return Pe(k);case 204:return _e(k,!1,!e.isBindingElement(k.parent),22);case 216:return B(k);case 210:return C(k);case 214:return oe(k)}function C(w){if(w.arguments.length){var re=e.findChildOfKind(w,20,X),M=e.findChildOfKind(w,21,X);if(!(!re||!M||e.positionsAreOnSameLine(re.pos,M.pos,X)))return Y(re,M,w,X,!1,!0)}}function B(w){if(!(e.isBlock(w.body)||e.isParenthesizedExpression(w.body)||e.positionsAreOnSameLine(w.body.getFullStart(),w.body.getEnd(),X))){var re=e.createTextSpanFromBounds(w.body.getFullStart(),w.body.getEnd());return Z(re,"code",e.createTextSpanFromNode(w))}}function F(w){var re=e.createTextSpanFromBounds(w.openingElement.getStart(X),w.closingElement.getEnd()),M=w.openingElement.tagName.getText(X),U="<"+M+">...</"+M+">";return Z(re,"code",re,!1,U)}function z(w){var re=e.createTextSpanFromBounds(w.openingFragment.getStart(X),w.closingFragment.getEnd()),M="<>...</>";return Z(re,"code",re,!1,M)}function ge(w){if(w.properties.length!==0)return v(w.getStart(X),w.getEnd(),"code")}function Pe(w){if(!(w.kind===14&&w.text.length===0))return v(w.getStart(X),w.getEnd(),"code")}function fe(w,re){return re===void 0&&(re=18),_e(w,!1,!e.isArrayLiteralExpression(w.parent)&&!e.isCallExpression(w.parent),re)}function _e(w,re,M,U,H){re===void 0&&(re=!1),M===void 0&&(M=!0),U===void 0&&(U=18),H===void 0&&(H=U===18?19:23);var q=e.findChildOfKind(k,U,X),R=e.findChildOfKind(k,H,X);return q&&R&&Y(q,R,w,X,re,M)}function ne(w){return w.length?Z(e.createTextSpanFromRange(w),"code"):void 0}function oe(w){if(!e.positionsAreOnSameLine(w.getStart(),w.getEnd(),X)){var re=e.createTextSpanFromBounds(w.getStart(),w.getEnd());return Z(re,"code",e.createTextSpanFromNode(w))}}}function te(k,X,A){var y=ce(k,X,A),C=e.findChildOfKind(X,19,A);return y&&C&&Y(y,C,k,A,k.kind!==216)}function Y(k,X,A,y,C,B){C===void 0&&(C=!1),B===void 0&&(B=!0);var F=e.createTextSpanFromBounds(B?k.getFullStart():k.getStart(y),X.getEnd());return Z(F,"code",e.createTextSpanFromNode(A,y),C)}function Z(k,X,A,y,C){return A===void 0&&(A=k),y===void 0&&(y=!1),C===void 0&&(C="..."),{textSpan:k,kind:X,hintSpan:A,bannerText:C,autoCollapse:y}}function ce(k,X,A){if(e.isNodeArrayMultiLine(k.parameters,A)){var y=e.findChildOfKind(k,20,A);if(y)return y}return e.findChildOfKind(X,18,A)}})(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(h||(h={}));var h;(function(e){var c;(function(M){M[M.exact=0]="exact",M[M.prefix=1]="prefix",M[M.substring=2]="substring",M[M.camelCase=3]="camelCase"})(c=e.PatternMatchKind||(e.PatternMatchKind={}));function P(M,U){return{kind:M,isCaseSensitive:U}}function T(M){var U=new e.Map,H=M.trim().split(".").map(function(q){return Z(q.trim())});if(!H.some(function(q){return!q.subWordTextChunks.length}))return{getFullMatch:function(q,R){return s(q,R,H,U)},getMatchForLastSegmentOfPattern:function(q){return W(q,e.last(H),U)},patternContainsDots:H.length>1}}e.createPatternMatcher=T;function s(M,U,H,q){var R=W(U,e.last(H),q);if(R&&!(H.length-1>M.length)){for(var K,I=H.length-2,he=M.length-1;I>=0;I-=1,he-=1)K=E(K,W(M[he],H[I],q));return K}}function D(M,U){var H=U.get(M);return H||U.set(M,H=ge(M)),H}function O(M,U,H){var q=X(M,U.textLowerCase);if(q===0)return P(U.text.length===M.length?c.exact:c.prefix,e.startsWith(M,U.text));if(U.isLowerCase){if(q===-1)return;for(var R=D(M,H),K=0,I=R;K<I.length;K++){var he=I[K];if(S(M,he,U.text,!0))return P(c.substring,S(M,he,U.text,!1))}if(U.text.length<M.length&&ce(M.charCodeAt(q)))return P(c.substring,!1)}else{if(M.indexOf(U.text)>0)return P(c.substring,!0);if(U.characterSpans.length>0){var le=D(M,H),ee=Y(M,le,U,!1)?!0:Y(M,le,U,!0)?!1:void 0;if(ee!==void 0)return P(c.camelCase,ee)}}}function W(M,U,H){if(re(U.totalTextChunk.text,function(ee){return ee!==32&&ee!==42})){var q=O(M,U.totalTextChunk,H);if(q)return q}for(var R=U.subWordTextChunks,K,I=0,he=R;I<he.length;I++){var le=he[I];K=E(K,O(M,le,H))}return K}function E(M,U){return e.min([M,U],v)}function v(M,U){return M===void 0?1:U===void 0?-1:e.compareValues(M.kind,U.kind)||e.compareBooleans(!M.isCaseSensitive,!U.isCaseSensitive)}function S(M,U,H,q,R){return R===void 0&&(R={start:0,length:H.length}),R.length<=U.length&&w(0,R.length,function(K){return te(H.charCodeAt(R.start+K),M.charCodeAt(U.start+K),q)})}function te(M,U,H){return H?A(M)===A(U):M===U}function Y(M,U,H,q){for(var R=H.characterSpans,K=0,I=0;;){if(I===R.length)return!0;if(K===U.length)return!1;for(var he=U[K],le=!1;I<R.length;I++){var ee=R[I];if(le&&(!ce(H.text.charCodeAt(R[I-1].start))||!ce(H.text.charCodeAt(R[I].start)))||!S(M,he,H.text,q,ee))break;le=!0,he=e.createTextSpan(he.start+ee.length,he.length-ee.length)}K++}}function Z(M){return{totalTextChunk:F(M),subWordTextChunks:B(M)}}function ce(M){if(M>=65&&M<=90)return!0;if(M<127||!e.isUnicodeIdentifierStart(M,99))return!1;var U=String.fromCharCode(M);return U===U.toUpperCase()}function k(M){if(M>=97&&M<=122)return!0;if(M<127||!e.isUnicodeIdentifierStart(M,99))return!1;var U=String.fromCharCode(M);return U===U.toLowerCase()}function X(M,U){for(var H=M.length-U.length,q=function(I){if(re(U,function(he,le){return A(M.charCodeAt(le+I))===he}))return{value:I}},R=0;R<=H;R++){var K=q(R);if(typeof K=="object")return K.value}return-1}function A(M){return M>=65&&M<=90?97+(M-65):M<127?M:String.fromCharCode(M).toLowerCase().charCodeAt(0)}function y(M){return M>=48&&M<=57}function C(M){return ce(M)||k(M)||y(M)||M===95||M===36}function B(M){for(var U=[],H=0,q=0,R=0;R<M.length;R++){var K=M.charCodeAt(R);C(K)?(q===0&&(H=R),q++):q>0&&(U.push(F(M.substr(H,q))),q=0)}return q>0&&U.push(F(M.substr(H,q))),U}function F(M){var U=M.toLowerCase();return{text:M,textLowerCase:U,isLowerCase:M===U,characterSpans:z(M)}}function z(M){return Pe(M,!1)}e.breakIntoCharacterSpans=z;function ge(M){return Pe(M,!0)}e.breakIntoWordSpans=ge;function Pe(M,U){for(var H=[],q=0,R=1;R<M.length;R++){var K=y(M.charCodeAt(R-1)),I=y(M.charCodeAt(R)),he=oe(M,U,R),le=U&&ne(M,R,q);(fe(M.charCodeAt(R-1))||fe(M.charCodeAt(R))||K!==I||he||le)&&(_e(M,q,R)||H.push(e.createTextSpan(q,R-q)),q=R)}return _e(M,q,M.length)||H.push(e.createTextSpan(q,M.length-q)),H}function fe(M){switch(M){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function _e(M,U,H){return re(M,function(q){return fe(q)&&q!==95},U,H)}function ne(M,U,H){return U!==H&&U+1<M.length&&ce(M.charCodeAt(U))&&k(M.charCodeAt(U+1))&&re(M,ce,H,U)}function oe(M,U,H){var q=ce(M.charCodeAt(H-1)),R=ce(M.charCodeAt(H));return R&&(!U||!q)}function w(M,U,H){for(var q=M;q<U;q++)if(!H(q))return!1;return!0}function re(M,U,H,q){return H===void 0&&(H=0),q===void 0&&(q=M.length),w(H,q,function(R){return U(M.charCodeAt(R),R)})}})(h||(h={}));var h;(function(e){function c(P,T,s){T===void 0&&(T=!0),s===void 0&&(s=!1);var D={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},O=[],W,E,v,S=0,te=!1;function Y(){return E=v,v=e.scanner.scan(),v===18?S++:v===19&&S--,v}function Z(){var w=e.scanner.getTokenValue(),re=e.scanner.getTokenPos();return{fileName:w,pos:re,end:re+w.length}}function ce(){W||(W=[]),W.push({ref:Z(),depth:S})}function k(){O.push(Z()),X()}function X(){S===0&&(te=!0)}function A(){var w=e.scanner.getToken();return w===136?(w=Y(),w===142&&(w=Y(),w===10&&ce()),!0):!1}function y(){if(E===24)return!1;var w=e.scanner.getToken();if(w===100){if(w=Y(),w===20){if(w=Y(),w===10||w===14)return k(),!0}else{if(w===10)return k(),!0;if(w===154){var re=e.scanner.lookAhead(function(){var M=e.scanner.scan();return M!==158&&(M===41||M===18||M===79||e.isKeyword(M))});re&&(w=Y())}if(w===79||e.isKeyword(w))if(w=Y(),w===158){if(w=Y(),w===10)return k(),!0}else if(w===63){if(B(!0))return!0}else if(w===27)w=Y();else return!0;if(w===18){for(w=Y();w!==19&&w!==1;)w=Y();w===19&&(w=Y(),w===158&&(w=Y(),w===10&&k()))}else w===41&&(w=Y(),w===128&&(w=Y(),(w===79||e.isKeyword(w))&&(w=Y(),w===158&&(w=Y(),w===10&&k()))))}return!0}return!1}function C(){var w=e.scanner.getToken();if(w===93){if(X(),w=Y(),w===154){var re=e.scanner.lookAhead(function(){var M=e.scanner.scan();return M===41||M===18});re&&(w=Y())}if(w===18){for(w=Y();w!==19&&w!==1;)w=Y();w===19&&(w=Y(),w===158&&(w=Y(),w===10&&k()))}else if(w===41)w=Y(),w===158&&(w=Y(),w===10&&k());else if(w===100){if(w=Y(),w===154){var re=e.scanner.lookAhead(function(){var U=e.scanner.scan();return U===79||e.isKeyword(U)});re&&(w=Y())}if((w===79||e.isKeyword(w))&&(w=Y(),w===63&&B(!0)))return!0}return!0}return!1}function B(w,re){re===void 0&&(re=!1);var M=w?Y():e.scanner.getToken();return M===147?(M=Y(),M===20&&(M=Y(),(M===10||re&&M===14)&&k()),!0):!1}function F(){var w=e.scanner.getToken();if(w===79&&e.scanner.getTokenValue()==="define"){if(w=Y(),w!==20)return!0;if(w=Y(),w===10||w===14)if(w=Y(),w===27)w=Y();else return!0;if(w!==22)return!0;for(w=Y();w!==23&&w!==1;)(w===10||w===14)&&k(),w=Y();return!0}return!1}function z(){for(e.scanner.setText(P),Y();e.scanner.getToken()!==1;){if(e.scanner.getToken()===15){var w=[e.scanner.getToken()];e:for(;e.length(w);){var re=e.scanner.scan();switch(re){case 1:break e;case 100:y();break;case 15:w.push(re);break;case 18:e.length(w)&&w.push(re);break;case 19:e.length(w)&&(e.lastOrUndefined(w)===15?e.scanner.reScanTemplateToken(!1)===17&&w.pop():w.pop());break}}Y()}A()||y()||C()||s&&(B(!1,!0)||F())||Y()}e.scanner.setText(void 0)}if(T&&z(),e.processCommentPragmas(D,P),e.processPragmasIntoFields(D,e.noop),te){if(W)for(var ge=0,Pe=W;ge<Pe.length;ge++){var fe=Pe[ge];O.push(fe.ref)}return{referencedFiles:D.referencedFiles,typeReferenceDirectives:D.typeReferenceDirectives,libReferenceDirectives:D.libReferenceDirectives,importedFiles:O,isLibFile:!!D.hasNoDefaultLib,ambientExternalModules:void 0}}else{var _e=void 0;if(W)for(var ne=0,oe=W;ne<oe.length;ne++){var fe=oe[ne];fe.depth===0?(_e||(_e=[]),_e.push(fe.ref.fileName)):O.push(fe.ref)}return{referencedFiles:D.referencedFiles,typeReferenceDirectives:D.typeReferenceDirectives,libReferenceDirectives:D.libReferenceDirectives,importedFiles:O,isLibFile:!!D.hasNoDefaultLib,ambientExternalModules:_e}}}e.preProcessFile=c})(h||(h={}));var h;(function(e){(function(c){function P(Y,Z,ce,k){var X=e.getAdjustedRenameLocation(e.getTouchingPropertyName(Z,ce));if(te(X)){var A=T(X,Y.getTypeChecker(),Z,Y,k);if(A)return A}return v(e.Diagnostics.You_cannot_rename_this_element)}c.getRenameInfo=P;function T(Y,Z,ce,k,X){var A=Z.getSymbolAtLocation(Y);if(!A){if(e.isStringLiteralLike(Y)){var y=e.getContextualTypeFromParentOrAncestorTypeNode(Y,Z);if(y&&(y.flags&128||y.flags&1048576&&e.every(y.types,function(_e){return!!(_e.flags&128)})))return E(Y.text,Y.text,"string","",Y,ce)}else if(e.isLabelName(Y)){var C=e.getTextOfNode(Y);return E(C,C,"label","",Y,ce)}return}var B=A.declarations;if(!(!B||B.length===0)){if(B.some(function(_e){return s(k,_e)}))return v(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(Y)&&Y.originalKeywordKind===88&&A.parent&&A.parent.flags&1536)){if(e.isStringLiteralLike(Y)&&e.tryGetImportFromModuleSpecifier(Y))return X.allowRenameOfImportPath?W(Y,ce,A):void 0;var F=D(ce,A,Z,X);if(F)return v(F);var z=e.SymbolDisplay.getSymbolKind(Z,A,Y),ge=e.isImportOrExportSpecifierName(Y)||e.isStringOrNumericLiteralLike(Y)&&Y.parent.kind===164?e.stripQuotes(e.getTextOfIdentifierOrLiteral(Y)):void 0,Pe=ge||Z.symbolToString(A),fe=ge||Z.getFullyQualifiedName(A);return E(Pe,fe,z,e.SymbolDisplay.getSymbolModifiers(Z,A),Y,ce)}}}function s(Y,Z){var ce=Z.getSourceFile();return Y.isSourceFileDefaultLibrary(ce)&&e.fileExtensionIs(ce.fileName,".d.ts")}function D(Y,Z,ce,k){if(!k.providePrefixAndSuffixTextForRename&&Z.flags&2097152){var X=Z.declarations&&e.find(Z.declarations,function(fe){return e.isImportSpecifier(fe)});X&&!X.propertyName&&(Z=ce.getAliasedSymbol(Z))}var A=Z.declarations;if(A){var y=O(Y.path);if(y===void 0)return e.some(A,function(fe){return e.isInsideNodeModules(fe.getSourceFile().path)})?e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(var C=0,B=A;C<B.length;C++){var F=B[C],z=O(F.getSourceFile().path);if(z){for(var ge=Math.min(y.length,z.length),Pe=0;Pe<=ge;Pe++)if(e.compareStringsCaseSensitive(y[Pe],z[Pe])!==0)return e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}}function O(Y){var Z=e.getPathComponents(Y),ce=Z.lastIndexOf("node_modules");if(ce!==-1)return Z.slice(0,ce+2)}function W(Y,Z,ce){if(!e.isExternalModuleNameRelative(Y.text))return v(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var k=ce.declarations&&e.find(ce.declarations,e.isSourceFile);if(k){var X=e.endsWith(Y.text,"/index")||e.endsWith(Y.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(k.fileName),"/index"),A=X===void 0?k.fileName:X,y=X===void 0?"module":"directory",C=Y.text.lastIndexOf("/")+1,B=e.createTextSpan(Y.getStart(Z)+1+C,Y.text.length-C);return{canRename:!0,fileToRename:A,kind:y,displayName:A,fullDisplayName:A,kindModifiers:"",triggerSpan:B}}}function E(Y,Z,ce,k,X,A){return{canRename:!0,fileToRename:void 0,kind:ce,displayName:Y,fullDisplayName:Z,kindModifiers:k,triggerSpan:S(X,A)}}function v(Y){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(Y)}}function S(Y,Z){var ce=Y.getStart(Z),k=Y.getWidth(Z);return e.isStringLiteralLike(Y)&&(ce+=1,k-=2),e.createTextSpan(ce,k)}function te(Y){switch(Y.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Y);default:return!1}}c.nodeIsEligibleForRename=te})(e.Rename||(e.Rename={}))})(h||(h={}));var h;(function(e){(function(c){function P(Y,Z){var ce,k,X={textSpan:e.createTextSpanFromBounds(Z.getFullStart(),Z.getEnd())},A=Z;e:for(;;){var y=D(A);if(!y.length)break;for(var C=0;C<y.length;C++){var B=y[C-1],F=y[C],z=y[C+1];if(e.getTokenPosOfNode(F,Z,!0)>Y)break e;var ge=e.singleOrUndefined(e.getTrailingCommentRanges(Z.text,F.end));if(ge&&ge.kind===2&&M(ge.pos,ge.end),T(Z,Y,F)){if(e.isFunctionBody(F)&&e.isFunctionLikeDeclaration(A)&&!e.positionsAreOnSameLine(F.getStart(Z),F.getEnd(),Z)&&re(F.getStart(Z),F.getEnd()),e.isBlock(F)||e.isTemplateSpan(F)||e.isTemplateHead(F)||e.isTemplateTail(F)||B&&e.isTemplateHead(B)||e.isVariableDeclarationList(F)&&e.isVariableStatement(A)||e.isSyntaxList(F)&&e.isVariableDeclarationList(A)||e.isVariableDeclaration(F)&&e.isSyntaxList(A)&&y.length===1||e.isJSDocTypeExpression(F)||e.isJSDocSignature(F)||e.isJSDocTypeLiteral(F)){A=F;break}if(e.isTemplateSpan(A)&&z&&e.isTemplateMiddleOrTemplateTail(z)){var Pe=F.getFullStart()-2,fe=z.getStart()+1;re(Pe,fe)}var _e=e.isSyntaxList(F)&&v(B)&&S(z)&&!e.positionsAreOnSameLine(B.getStart(),z.getStart(),Z),ne=_e?B.getEnd():F.getStart(),oe=_e?z.getStart():te(Z,F);if(e.hasJSDocNodes(F)&&(!((ce=F.jsDoc)===null||ce===void 0)&&ce.length)&&re(e.first(F.jsDoc).getStart(),oe),e.isSyntaxList(F)){var w=F.getChildren()[0];w&&e.hasJSDocNodes(w)&&(!((k=w.jsDoc)===null||k===void 0)&&k.length)&&w.getStart()!==F.pos&&(ne=Math.min(ne,e.first(w.jsDoc).getStart()))}re(ne,oe),(e.isStringLiteral(F)||e.isTemplateLiteral(F))&&re(ne+1,oe-1),A=F;break}if(C===y.length-1)break e}}return X;function re(U,H){if(U!==H){var q=e.createTextSpanFromBounds(U,H);(!X||!e.textSpansEqual(q,X.textSpan)&&e.textSpanIntersectsWithPosition(q,Y))&&(X=n({textSpan:q},X&&{parent:X}))}}function M(U,H){re(U,H);for(var q=U;Z.text.charCodeAt(q)===47;)q++;re(q,H)}}c.getSmartSelectionRange=P;function T(Y,Z,ce){if(e.Debug.assert(ce.pos<=Z),Z<ce.end)return!0;var k=ce.getEnd();return k===Z?e.getTouchingPropertyName(Y,Z).pos<ce.end:!1}var s=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function D(Y){var Z;if(e.isSourceFile(Y))return O(Y.getChildAt(0).getChildren(),s);if(e.isMappedTypeNode(Y)){var ce=Y.getChildren(),k=ce[0],X=ce.slice(1),A=e.Debug.checkDefined(X.pop());e.Debug.assertEqual(k.kind,18),e.Debug.assertEqual(A.kind,19);var y=O(X,function(fe){return fe===Y.readonlyToken||fe.kind===146||fe===Y.questionToken||fe.kind===57}),C=O(y,function(fe){var _e=fe.kind;return _e===22||_e===165||_e===23});return[k,E(W(C,function(fe){var _e=fe.kind;return _e===58})),A]}if(e.isPropertySignature(Y)){var X=O(Y.getChildren(),function(_e){return _e===Y.name||e.contains(Y.modifiers,_e)}),B=((Z=X[0])===null||Z===void 0?void 0:Z.kind)===323?X[0]:void 0,F=B?X.slice(1):X,z=W(F,function(_e){var ne=_e.kind;return ne===58});return B?[B,E(z)]:z}if(e.isParameter(Y)){var ge=O(Y.getChildren(),function(fe){return fe===Y.dotDotDotToken||fe===Y.name}),Pe=O(ge,function(fe){return fe===ge[0]||fe===Y.questionToken});return W(Pe,function(fe){var _e=fe.kind;return _e===63})}return e.isBindingElement(Y)?W(Y.getChildren(),function(fe){var _e=fe.kind;return _e===63}):Y.getChildren()}function O(Y,Z){for(var ce=[],k,X=0,A=Y;X<A.length;X++){var y=A[X];Z(y)?(k=k||[],k.push(y)):(k&&(ce.push(E(k)),k=void 0),ce.push(y))}return k&&ce.push(E(k)),ce}function W(Y,Z,ce){if(ce===void 0&&(ce=!0),Y.length<2)return Y;var k=e.findIndex(Y,Z);if(k===-1)return Y;var X=Y.slice(0,k),A=Y[k],y=e.last(Y),C=ce&&y.kind===26,B=Y.slice(k+1,C?Y.length-1:void 0),F=e.compact([X.length?E(X):void 0,A,B.length?E(B):void 0]);return C?F.concat(y):F}function E(Y){return e.Debug.assertGreaterThanOrEqual(Y.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(Y),Y[0].pos,e.last(Y).end)}function v(Y){var Z=Y&&Y.kind;return Z===18||Z===22||Z===20||Z===283}function S(Y){var Z=Y&&Y.kind;return Z===19||Z===23||Z===21||Z===284}function te(Y,Z){switch(Z.kind){case 343:case 341:case 350:case 348:case 345:return Y.getLineEndOfPosition(Z.getStart());default:return Z.getEnd()}}})(e.SmartSelectionRange||(e.SmartSelectionRange={}))})(h||(h={}));var h;(function(e){(function(c){var P;(function(ee){ee[ee.Call=0]="Call",ee[ee.TypeArgs=1]="TypeArgs",ee[ee.Contextual=2]="Contextual"})(P||(P={}));function T(ee,J,de,De,N){var b=ee.getTypeChecker(),Q=e.findTokenOnLeftOfPosition(J,de);if(Q){var G=!!De&&De.kind==="characterTyped";if(!(G&&(e.isInString(J,de,Q)||e.isInComment(J,de)))){var ae=!!De&&De.kind==="invoked",Te=fe(Q,de,J,b,ae);if(Te){N.throwIfCancellationRequested();var Ne=D(Te,b,J,Q,G);return N.throwIfCancellationRequested(),Ne?b.runWithCancellationToken(N,function(we){return Ne.kind===0?re(Ne.candidates,Ne.resolvedSignature,Te,J,we):M(Ne.symbol,Te,J,we)}):e.isSourceFileJS(J)?W(Te,ee,N):void 0}}}}c.getSignatureHelpItems=T;var s;(function(ee){ee[ee.Candidate=0]="Candidate",ee[ee.Type=1]="Type"})(s||(s={}));function D(ee,J,de,De,N){var b=ee.invocation,Q=ee.argumentCount;switch(b.kind){case 0:{if(N&&!O(De,b.node,de))return;var G=[],ae=J.getResolvedSignatureForSignatureHelp(b.node,G,Q);return G.length===0?void 0:{kind:0,candidates:G,resolvedSignature:ae}}case 1:{var Te=b.called;if(N&&!E(De,de,e.isIdentifier(Te)?Te.parent:Te))return;var G=e.getPossibleGenericSignatures(Te,Q,J);if(G.length!==0)return{kind:0,candidates:G,resolvedSignature:e.first(G)};var Ne=J.getSymbolAtLocation(Te);return Ne&&{kind:1,symbol:Ne}}case 2:return{kind:0,candidates:[b.signature],resolvedSignature:b.signature};default:return e.Debug.assertNever(b)}}function O(ee,J,de){if(!e.isCallOrNewExpression(J))return!1;var De=J.getChildren(de);switch(ee.kind){case 20:return e.contains(De,ee);case 27:{var N=e.findContainingList(ee);return!!N&&e.contains(De,N)}case 29:return E(ee,de,J.expression);default:return!1}}function W(ee,J,de){if(ee.invocation.kind!==2){var De=ne(ee.invocation),N=e.isPropertyAccessExpression(De)?De.name.text:void 0,b=J.getTypeChecker();return N===void 0?void 0:e.firstDefined(J.getSourceFiles(),function(Q){return e.firstDefined(Q.getNamedDeclarations().get(N),function(G){var ae=G.symbol&&b.getTypeOfSymbolAtLocation(G.symbol,G),Te=ae&&ae.getCallSignatures();if(Te&&Te.length)return b.runWithCancellationToken(de,function(Ne){return re(Te,Te[0],ee,Q,Ne,!0)})})})}}function E(ee,J,de){for(var De=ee.getFullStart(),N=ee.parent;N;){var b=e.findPrecedingToken(De,J,N,!0);if(b)return e.rangeContainsRange(de,b);N=N.parent}return e.Debug.fail("Could not find preceding token")}function v(ee,J,de){var De=Y(ee,J,de);return!De||De.isTypeParameterList||De.invocation.kind!==0?void 0:{invocation:De.invocation.node,argumentCount:De.argumentCount,argumentIndex:De.argumentIndex}}c.getArgumentInfoForCompletions=v;function S(ee,J,de){var De=te(ee,de);if(De){var N=De.list,b=De.argumentIndex,Q=B(N,e.isInString(de,J,ee));b!==0&&e.Debug.assertLessThan(b,Q);var G=ge(N,de);return{list:N,argumentIndex:b,argumentCount:Q,argumentsSpan:G}}}function te(ee,J){if(ee.kind===29||ee.kind===20)return{list:_e(ee.parent,ee,J),argumentIndex:0};var de=e.findContainingList(ee);return de&&{list:de,argumentIndex:C(de,ee)}}function Y(ee,J,de){var De=ee.parent;if(e.isCallOrNewExpression(De)){var N=De,b=S(ee,J,de);if(!b)return;var Q=b.list,G=b.argumentIndex,ae=b.argumentCount,Te=b.argumentsSpan,Ne=!!De.typeArguments&&De.typeArguments.pos===Q.pos;return{isTypeParameterList:Ne,invocation:{kind:0,node:N},argumentsSpan:Te,argumentIndex:G,argumentCount:ae}}else{if(e.isNoSubstitutionTemplateLiteral(ee)&&e.isTaggedTemplateExpression(De))return e.isInsideTemplateLiteral(ee,J,de)?z(De,0,de):void 0;if(e.isTemplateHead(ee)&&De.parent.kind===212){var we=De,nr=we.parent;e.Debug.assert(we.kind===225);var G=e.isInsideTemplateLiteral(ee,J,de)?0:1;return z(nr,G,de)}else if(e.isTemplateSpan(De)&&e.isTaggedTemplateExpression(De.parent.parent)){var tr=De,nr=De.parent.parent;if(e.isTemplateTail(ee)&&!e.isInsideTemplateLiteral(ee,J,de))return;var me=tr.parent.templateSpans.indexOf(tr),G=F(me,ee,J,de);return z(nr,G,de)}else if(e.isJsxOpeningLikeElement(De)){var He=De.attributes.pos,rr=e.skipTrivia(de.text,De.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:De},argumentsSpan:e.createTextSpan(He,rr-He),argumentIndex:0,argumentCount:1}}else{var je=e.getPossibleTypeArgumentsInfo(ee,de);if(je){var Ce=je.called,Ae=je.nTypeArguments,N={kind:1,called:Ce},Te=e.createTextSpanFromBounds(Ce.getStart(de),ee.end);return{isTypeParameterList:!0,invocation:N,argumentsSpan:Te,argumentIndex:Ae,argumentCount:Ae+1}}return}}}function Z(ee,J,de,De){return X(ee,J,de,De)||Y(ee,J,de)}function ce(ee){return e.isBinaryExpression(ee.parent)?ce(ee.parent):ee}function k(ee){return e.isBinaryExpression(ee.left)?k(ee.left)+1:2}function X(ee,J,de,De){var N=A(ee,de,J,De);if(N){var b=N.contextualType,Q=N.argumentIndex,G=N.argumentCount,ae=N.argumentsSpan,Te=b.getNonNullableType(),Ne=Te.symbol;if(Ne!==void 0){var we=e.lastOrUndefined(Te.getCallSignatures());if(we!==void 0){var nr={kind:2,signature:we,node:ee,symbol:y(Ne)};return{isTypeParameterList:!1,invocation:nr,argumentsSpan:ae,argumentIndex:Q,argumentCount:G}}}}}function A(ee,J,de,De){if(!(ee.kind!==20&&ee.kind!==27)){var N=ee.parent;switch(N.kind){case 214:case 171:case 215:case 216:var b=S(ee,de,J);if(!b)return;var Q=b.argumentIndex,G=b.argumentCount,ae=b.argumentsSpan,Te=e.isMethodDeclaration(N)?De.getContextualTypeForObjectLiteralElement(N):De.getContextualType(N);return Te&&{contextualType:Te,argumentIndex:Q,argumentCount:G,argumentsSpan:ae};case 223:{var Ne=ce(N),we=De.getContextualType(Ne),nr=ee.kind===20?0:k(N)-1,tr=k(Ne);return we&&{contextualType:we,argumentIndex:nr,argumentCount:tr,argumentsSpan:e.createTextSpanFromNode(N)}}default:return}}}function y(ee){return ee.name==="__type"&&e.firstDefined(ee.declarations,function(J){return e.isFunctionTypeNode(J)?J.parent.symbol:void 0})||ee}function C(ee,J){for(var de=0,De=0,N=ee.getChildren();De<N.length;De++){var b=N[De];if(b===J)break;b.kind!==27&&de++}return de}function B(ee,J){var de=ee.getChildren(),De=e.countWhere(de,function(N){return N.kind!==27});return!J&&de.length>0&&e.last(de).kind===27&&De++,De}function F(ee,J,de,De){return e.Debug.assert(de>=J.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(J)?e.isInsideTemplateLiteral(J,de,De)?0:ee+2:ee+1}function z(ee,J,de){var De=e.isNoSubstitutionTemplateLiteral(ee.template)?1:ee.template.templateSpans.length+1;return J!==0&&e.Debug.assertLessThan(J,De),{isTypeParameterList:!1,invocation:{kind:0,node:ee},argumentsSpan:Pe(ee,de),argumentIndex:J,argumentCount:De}}function ge(ee,J){var de=ee.getFullStart(),De=e.skipTrivia(J.text,ee.getEnd(),!1);return e.createTextSpan(de,De-de)}function Pe(ee,J){var de=ee.template,De=de.getStart(),N=de.getEnd();if(de.kind===225){var b=e.last(de.templateSpans);b.literal.getFullWidth()===0&&(N=e.skipTrivia(J.text,N,!1))}return e.createTextSpan(De,N-De)}function fe(ee,J,de,De,N){for(var b=function(ae){e.Debug.assert(e.rangeContainsRange(ae.parent,ae),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(ae.kind),", parent: ").concat(e.Debug.formatSyntaxKind(ae.parent.kind))});var Te=Z(ae,J,de,De);if(Te)return{value:Te}},Q=ee;!e.isSourceFile(Q)&&(N||!e.isBlock(Q));Q=Q.parent){var G=b(Q);if(typeof G=="object")return G.value}}function _e(ee,J,de){var De=ee.getChildren(de),N=De.indexOf(J);return e.Debug.assert(N>=0&&De.length>N+1),De[N+1]}function ne(ee){return ee.kind===0?e.getInvokedExpression(ee.node):ee.called}function oe(ee){return ee.kind===0?ee.node:ee.kind===1?ee.called:ee.node}var w=70246400;function re(ee,J,de,De,N,b){var Q,G=de.isTypeParameterList,ae=de.argumentCount,Te=de.argumentsSpan,Ne=de.invocation,we=de.argumentIndex,nr=oe(Ne),tr=Ne.kind===2?Ne.symbol:N.getSymbolAtLocation(ne(Ne))||b&&((Q=J.declaration)===null||Q===void 0?void 0:Q.symbol),me=tr?e.symbolToDisplayParts(N,tr,b?De:void 0,void 0):e.emptyArray,He=e.map(ee,function(mr){return q(mr,me,G,N,nr,De)});we!==0&&e.Debug.assertLessThan(we,ae);for(var rr=0,je=0,Ce=0;Ce<He.length;Ce++){var Ae=He[Ce];if(ee[Ce]===J&&(rr=je,Ae.length>1))for(var qe=0,xe=0,L=Ae;xe<L.length;xe++){var ue=L[xe];if(ue.isVariadic||ue.parameters.length>=ae){rr=je+qe;break}qe++}je+=Ae.length}e.Debug.assert(rr!==-1);var Ue={items:e.flatMapToMutable(He,e.identity),applicableSpan:Te,selectedItemIndex:rr,argumentIndex:we,argumentCount:ae},Je=Ue.items[rr];if(Je.isVariadic){var lr=e.findIndex(Je.parameters,function(mr){return!!mr.isRest});-1<lr&&lr<Je.parameters.length-1?Ue.argumentIndex=Je.parameters.length:Ue.argumentIndex=Math.min(Ue.argumentIndex,Je.parameters.length-1)}return Ue}function M(ee,J,de,De){var N=J.argumentCount,b=J.argumentsSpan,Q=J.invocation,G=J.argumentIndex,ae=De.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(ee);if(ae){var Te=[U(ee,ae,De,oe(Q),de)];return{items:Te,applicableSpan:b,selectedItemIndex:0,argumentIndex:G,argumentCount:N}}}function U(ee,J,de,De,N){var b=e.symbolToDisplayParts(de,ee),Q=e.createPrinter({removeComments:!0}),G=J.map(function(we){return le(we,de,De,N,Q)}),ae=ee.getDocumentationComment(de),Te=ee.getJsDocTags(de),Ne=t(t([],b,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:Ne,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:H,parameters:G,documentation:ae,tags:Te}}var H=[e.punctuationPart(27),e.spacePart()];function q(ee,J,de,De,N,b){var Q=(de?K:I)(ee,De,N,b);return e.map(Q,function(G){var ae=G.isVariadic,Te=G.parameters,Ne=G.prefix,we=G.suffix,nr=t(t([],J,!0),Ne,!0),tr=t(t([],we,!0),R(ee,N,De),!0),me=ee.getDocumentationComment(De),He=ee.getJsDocTags();return{isVariadic:ae,prefixDisplayParts:nr,suffixDisplayParts:tr,separatorDisplayParts:H,parameters:Te,documentation:me,tags:He}})}function R(ee,J,de){return e.mapToDisplayParts(function(De){De.writePunctuation(":"),De.writeSpace(" ");var N=de.getTypePredicateOfSignature(ee);N?de.writeTypePredicate(N,J,void 0,De):de.writeType(de.getReturnTypeOfSignature(ee),J,void 0,De)})}function K(ee,J,de,De){var N=(ee.target||ee).typeParameters,b=e.createPrinter({removeComments:!0}),Q=(N||e.emptyArray).map(function(ae){return le(ae,J,de,De,b)}),G=ee.thisParameter?[J.symbolToParameterDeclaration(ee.thisParameter,de,w)]:[];return J.getExpandedParameters(ee).map(function(ae){var Te=e.factory.createNodeArray(t(t([],G,!0),e.map(ae,function(we){return J.symbolToParameterDeclaration(we,de,w)}),!0)),Ne=e.mapToDisplayParts(function(we){b.writeList(2576,Te,De,we)});return{isVariadic:!1,parameters:Q,prefix:[e.punctuationPart(29)],suffix:t([e.punctuationPart(31)],Ne,!0)}})}function I(ee,J,de,De){var N=e.createPrinter({removeComments:!0}),b=e.mapToDisplayParts(function(ae){if(ee.typeParameters&&ee.typeParameters.length){var Te=e.factory.createNodeArray(ee.typeParameters.map(function(Ne){return J.typeParameterToDeclaration(Ne,de,w)}));N.writeList(53776,Te,De,ae)}}),Q=J.getExpandedParameters(ee),G=J.hasEffectiveRestParameter(ee)?Q.length===1?function(ae){return!0}:function(ae){return!!(ae.length&&ae[ae.length-1].checkFlags&32768)}:function(ae){return!1};return Q.map(function(ae){return{isVariadic:G(ae),parameters:ae.map(function(Te){return he(Te,J,de,De,N)}),prefix:t(t([],b,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function he(ee,J,de,De,N){var b=e.mapToDisplayParts(function(ae){var Te=J.symbolToParameterDeclaration(ee,de,w);N.writeNode(4,Te,De,ae)}),Q=J.isOptionalParameter(ee.valueDeclaration),G=!!(ee.checkFlags&32768);return{name:ee.name,documentation:ee.getDocumentationComment(J),displayParts:b,isOptional:Q,isRest:G}}function le(ee,J,de,De,N){var b=e.mapToDisplayParts(function(Q){var G=J.typeParameterToDeclaration(ee,de,w);N.writeNode(4,G,De,Q)});return{name:ee.symbol.name,documentation:ee.symbol.getDocumentationComment(J),displayParts:b,isOptional:!1,isRest:!1}}})(e.SignatureHelp||(e.SignatureHelp={}))})(h||(h={}));var h;(function(e){(function(c){var P=30,T=function(W){return new RegExp("^\\s?/\\*\\*?\\s?".concat(W,"\\s?\\*\\/\\s?$"))};function s(W){return W.includeInlayParameterNameHints==="literals"||W.includeInlayParameterNameHints==="all"}function D(W){return W.includeInlayParameterNameHints==="literals"}function O(W){var E=W.file,v=W.program,S=W.span,te=W.cancellationToken,Y=W.preferences,Z=E.text,ce=v.getCompilerOptions(),k=v.getTypeChecker(),X=[];return A(E),X;function A(I){if(!(!I||I.getFullWidth()===0)){switch(I.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:te.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(S,I.pos,I.getFullWidth())&&!(e.isTypeNode(I)&&!e.isExpressionWithTypeArguments(I)))return Y.includeInlayVariableTypeHints&&e.isVariableDeclaration(I)||Y.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(I)?Pe(I):Y.includeInlayEnumMemberValueHints&&e.isEnumMember(I)?z(I):s(Y)&&(e.isCallExpression(I)||e.isNewExpression(I))?fe(I):(Y.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(I)&&e.hasContextSensitiveParameters(I)&&M(I),Y.includeInlayFunctionLikeReturnTypeHints&&y(I)&&w(I)),e.forEachChild(I,A)}}function y(I){return e.isArrowFunction(I)||e.isFunctionExpression(I)||e.isFunctionDeclaration(I)||e.isMethodDeclaration(I)||e.isGetAccessorDeclaration(I)}function C(I,he,le){X.push({text:"".concat(le?"...":"").concat(H(I,P),":"),position:he,kind:"Parameter",whitespaceAfter:!0})}function B(I,he){X.push({text:": ".concat(H(I,P)),position:he,kind:"Type",whitespaceBefore:!0})}function F(I,he){X.push({text:"= ".concat(H(I,P)),position:he,kind:"Enum",whitespaceBefore:!0})}function z(I){if(!I.initializer){var he=k.getConstantValue(I);he!==void 0&&F(he.toString(),I.end)}}function ge(I){return I.symbol&&I.symbol.flags&1536}function Pe(I){if(!(!I.initializer||e.isBindingPattern(I.name)||e.isVariableDeclaration(I)&&!K(I))){var he=e.getEffectiveTypeAnnotationNode(I);if(!he){var le=k.getTypeAtLocation(I);if(!ge(le)){var ee=q(le);if(ee){var J=Y.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&e.equateStringsCaseInsensitive(I.name.getText(),ee);if(J)return;B(ee,I.name.end)}}}}}function fe(I){var he=I.arguments;if(!(!he||!he.length)){var le=[],ee=k.getResolvedSignatureForSignatureHelp(I,le);if(!(!ee||!le.length))for(var J=0;J<he.length;++J){var de=he[J],De=e.skipParentheses(de);if(!(D(Y)&&!oe(De))){var N=k.getParameterIdentifierNameAtPosition(ee,J);if(N){var b=N[0],Q=N[1],G=Y.includeInlayParameterNameHintsWhenArgumentMatchesName||!_e(De,b);if(!G&&!Q)continue;var ae=e.unescapeLeadingUnderscores(b);if(ne(De,ae))continue;C(ae,de.getStart(),Q)}}}}}function _e(I,he){return e.isIdentifier(I)?I.text===he:e.isPropertyAccessExpression(I)?I.name.text===he:!1}function ne(I,he){if(!e.isIdentifierText(he,ce.target,e.getLanguageVariant(E.scriptKind)))return!1;var le=e.getLeadingCommentRanges(Z,I.pos);if(!(le!=null&&le.length))return!1;var ee=T(he);return e.some(le,function(J){return ee.test(Z.substring(J.pos,J.end))})}function oe(I){switch(I.kind){case 221:{var he=I.operand;return e.isLiteralExpression(he)||e.isIdentifier(he)&&e.isInfinityOrNaNString(he.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{var le=I.escapedText;return R(le)||e.isInfinityOrNaNString(le)}}return e.isLiteralExpression(I)}function w(I){if(!(e.isArrowFunction(I)&&!e.findChildOfKind(I,20,E))){var he=e.getEffectiveReturnTypeNode(I);if(!(he||!I.body)){var le=k.getSignatureFromDeclaration(I);if(le){var ee=k.getReturnTypeOfSignature(le);if(!ge(ee)){var J=q(ee);J&&B(J,re(I))}}}}}function re(I){var he=e.findChildOfKind(I,21,E);return he?he.end:I.parameters.end}function M(I){var he=k.getSignatureFromDeclaration(I);if(he)for(var le=0;le<I.parameters.length&&le<he.parameters.length;++le){var ee=I.parameters[le];if(K(ee)){var J=e.getEffectiveTypeAnnotationNode(ee);if(!J){var de=U(he.parameters[le]);de&&B(de,ee.questionToken?ee.questionToken.end:ee.name.end)}}}}function U(I){var he=I.valueDeclaration;if(!(!he||!e.isParameter(he))){var le=k.getTypeOfSymbolAtLocation(I,he);if(!ge(le))return q(le)}}function H(I,he){return I.length>he?I.substr(0,he-3)+"...":I}function q(I){var he=71286784,le={removeComments:!0},ee=e.createPrinter(le);return e.usingSingleLineStringWriter(function(J){var de=k.typeToTypeNode(I,void 0,he,J);e.Debug.assertIsDefined(de,"should always get typenode"),ee.writeNode(4,de,E,J)})}function R(I){return I==="undefined"}function K(I){if((e.isParameterDeclaration(I)||e.isVariableDeclaration(I)&&e.isVarConst(I))&&I.initializer){var he=e.skipParentheses(I.initializer);return!(oe(he)||e.isNewExpression(he)||e.isObjectLiteralExpression(he)||e.isAssertionExpression(he))}return!0}}c.provideInlayHints=O})(e.InlayHints||(e.InlayHints={}))})(h||(h={}));var h;(function(e){var c=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function P(O){var W=e.createGetCanonicalFileName(O.useCaseSensitiveFileNames()),E=O.getCurrentDirectory(),v=new e.Map,S=new e.Map;return{tryGetSourcePosition:Z,tryGetGeneratedPosition:ce,toLineColumnOffset:y,clearCache:C};function te(B){return e.toPath(B,E,W)}function Y(B,F){var z=te(B),ge=S.get(z);if(ge)return ge;var Pe;if(O.getDocumentPositionMapper)Pe=O.getDocumentPositionMapper(B,F);else if(O.readFile){var fe=A(B);Pe=fe&&e.getDocumentPositionMapper({getSourceFileLike:A,getCanonicalFileName:W,log:function(_e){return O.log(_e)}},B,e.getLineInfo(fe.text,e.getLineStarts(fe)),function(_e){return!O.fileExists||O.fileExists(_e)?O.readFile(_e):void 0})}return S.set(z,Pe||e.identitySourceMapConsumer),Pe||e.identitySourceMapConsumer}function Z(B){if(e.isDeclarationFileName(B.fileName)){var F=k(B.fileName);if(F){var z=Y(B.fileName).getSourcePosition(B);return!z||z===B?void 0:Z(z)||z}}}function ce(B){if(!e.isDeclarationFileName(B.fileName)){var F=k(B.fileName);if(F){var z=O.getProgram();if(!z.isSourceOfProjectReferenceRedirect(F.fileName)){var ge=z.getCompilerOptions(),Pe=e.outFile(ge),fe=Pe?e.removeFileExtension(Pe)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(B.fileName,z.getCompilerOptions(),E,z.getCommonSourceDirectory(),W);if(fe!==void 0){var _e=Y(fe,B.fileName).getGeneratedPosition(B);return _e===B?void 0:_e}}}}}function k(B){var F=O.getProgram();if(F){var z=te(B),ge=F.getSourceFileByPath(z);return ge&&ge.resolvedPath===z?ge:void 0}}function X(B){var F=te(B),z=v.get(F);if(z!==void 0)return z||void 0;if(!O.readFile||O.fileExists&&!O.fileExists(F)){v.set(F,!1);return}var ge=O.readFile(F),Pe=ge?D(ge):!1;return v.set(F,Pe),Pe||void 0}function A(B){return O.getSourceFileLike?O.getSourceFileLike(B):k(B)||X(B)}function y(B,F){var z=A(B);return z.getLineAndCharacterOfPosition(F)}function C(){v.clear(),S.clear()}}e.getSourceMapper=P;function T(O,W,E,v){var S=e.tryGetSourceMappingURL(E);if(S){var te=c.exec(S);if(te){if(te[1]){var Y=te[1];return s(O,e.base64decode(e.sys,Y),W)}S=void 0}}var Z=[];S&&Z.push(S),Z.push(W+".map");for(var ce=S&&e.getNormalizedAbsolutePath(S,e.getDirectoryPath(W)),k=0,X=Z;k<X.length;k++){var A=X[k],y=e.getNormalizedAbsolutePath(A,e.getDirectoryPath(W)),C=v(y,ce);if(e.isString(C))return s(O,C,y);if(C!==void 0)return C||void 0}}e.getDocumentPositionMapper=T;function s(O,W,E){var v=e.tryParseRawSourceMap(W);if(!(!v||!v.sources||!v.file||!v.mappings)&&!(v.sourcesContent&&v.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(O,v,E)}function D(O,W){return{text:O,lineMap:W,getLineAndCharacterOfPosition:function(E){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),E)}}}})(h||(h={}));var h;(function(e){var c=new e.Map;function P(C,B,F){B.getSemanticDiagnostics(C,F);var z=[],ge=B.getTypeChecker(),Pe=C.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(C.fileName,[".cts",".cjs"]);!Pe&&C.commonJsModuleIndicator&&(e.programContainsEsModules(B)||e.compilerOptionsIndicateEsModules(B.getCompilerOptions()))&&T(C)&&z.push(e.createDiagnosticForNode(v(C.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var fe=e.isSourceFileJS(C);if(c.clear(),H(C),e.getAllowSyntheticDefaultImports(B.getCompilerOptions()))for(var _e=0,ne=C.imports;_e<ne.length;_e++){var oe=ne[_e],w=e.importFromModuleSpecifier(oe),re=D(w);if(re){var M=e.getResolvedModule(C,oe.text,e.getModeForUsageLocation(C,oe)),U=M&&B.getSourceFile(M.resolvedFileName);U&&U.externalModuleIndicator&&U.externalModuleIndicator!==!0&&e.isExportAssignment(U.externalModuleIndicator)&&U.externalModuleIndicator.isExportEquals&&z.push(e.createDiagnosticForNode(re,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(z,C.bindSuggestionDiagnostics),e.addRange(z,B.getSuggestionDiagnostics(C,F)),z.sort(function(q,R){return q.start-R.start});function H(q){if(fe)A(q,ge)&&z.push(e.createDiagnosticForNode(e.isVariableDeclaration(q.parent)?q.parent.name:q,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(q)&&q.parent===C&&q.declarationList.flags&2&&q.declarationList.declarations.length===1){var R=q.declarationList.declarations[0].initializer;R&&e.isRequireCall(R,!0)&&z.push(e.createDiagnosticForNode(R,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(q)&&z.push(e.createDiagnosticForNode(q.name||q,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}y(q)&&O(q,ge,z),q.forEachChild(H)}}e.computeSuggestionDiagnostics=P;function T(C){return C.statements.some(function(B){switch(B.kind){case 240:return B.declarationList.declarations.some(function(ge){return!!ge.initializer&&e.isRequireCall(s(ge.initializer),!0)});case 241:{var F=B.expression;if(!e.isBinaryExpression(F))return e.isRequireCall(F,!0);var z=e.getAssignmentDeclarationKind(F);return z===1||z===2}default:return!1}})}function s(C){return e.isPropertyAccessExpression(C)?s(C.expression):C}function D(C){switch(C.kind){case 269:var B=C.importClause,F=C.moduleSpecifier;return B&&!B.name&&B.namedBindings&&B.namedBindings.kind===271&&e.isStringLiteral(F)?B.namedBindings.name:void 0;case 268:return C.name;default:return}}function O(C,B,F){W(C,B)&&!c.has(X(C))&&F.push(e.createDiagnosticForNode(!C.name&&e.isVariableDeclaration(C.parent)&&e.isIdentifier(C.parent.name)?C.parent.name:C,e.Diagnostics.This_may_be_converted_to_an_async_function))}function W(C,B){return!e.isAsyncFunction(C)&&C.body&&e.isBlock(C.body)&&S(C.body,B)&&E(C,B)}function E(C,B){var F=B.getSignatureFromDeclaration(C),z=F?B.getReturnTypeOfSignature(F):void 0;return!!z&&!!B.getPromisedTypeOfPromise(z)}e.returnsPromise=E;function v(C){return e.isBinaryExpression(C)?C.left:C}function S(C,B){return!!e.forEachReturnStatement(C,function(F){return te(F,B)})}function te(C,B){return e.isReturnStatement(C)&&!!C.expression&&Y(C.expression,B)}e.isReturnStatementWithFixablePromiseHandler=te;function Y(C,B){if(!Z(C)||!ce(C)||!C.arguments.every(function(z){return k(z,B)}))return!1;for(var F=C.expression.expression;Z(F)||e.isPropertyAccessExpression(F);)if(e.isCallExpression(F)){if(!ce(F)||!F.arguments.every(function(z){return k(z,B)}))return!1;F=F.expression.expression}else F=F.expression;return!0}e.isFixablePromiseHandler=Y;function Z(C){return e.isCallExpression(C)&&(e.hasPropertyAccessExpressionWithName(C,"then")||e.hasPropertyAccessExpressionWithName(C,"catch")||e.hasPropertyAccessExpressionWithName(C,"finally"))}function ce(C){var B=C.expression.name.text,F=B==="then"?2:B==="catch"||B==="finally"?1:0;return C.arguments.length>F?!1:C.arguments.length<F?!0:F===1||e.some(C.arguments,function(z){return z.kind===104||e.isIdentifier(z)&&z.text==="undefined"})}function k(C,B){switch(C.kind){case 259:case 215:var F=e.getFunctionFlags(C);if(F&1)return!1;case 216:c.set(X(C),!0);case 104:return!0;case 79:case 208:{var z=B.getSymbolAtLocation(C);return z?B.isUndefinedSymbol(z)||e.some(e.skipAlias(z,B).declarations,function(ge){return e.isFunctionLike(ge)||e.hasInitializer(ge)&&!!ge.initializer&&e.isFunctionLike(ge.initializer)}):!1}default:return!1}}function X(C){return"".concat(C.pos.toString(),":").concat(C.end.toString())}function A(C,B){var F,z,ge,Pe;if(C.kind===215){if(e.isVariableDeclaration(C.parent)&&(!((F=C.symbol.members)===null||F===void 0)&&F.size))return!0;var fe=B.getSymbolOfExpando(C,!1);return!!(fe&&(!((z=fe.exports)===null||z===void 0)&&z.size||!((ge=fe.members)===null||ge===void 0)&&ge.size))}return C.kind===259?!!(!((Pe=C.symbol.members)===null||Pe===void 0)&&Pe.size):!1}function y(C){switch(C.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}e.canBeConvertedToAsync=y})(h||(h={}));var h;(function(e){(function(c){var P=70246400;function T(v,S,te){var Y=s(v,S,te);if(Y!=="")return Y;var Z=e.getCombinedLocalAndExportSymbolFlags(S);return Z&32?e.getDeclarationOfKind(S,228)?"local class":"class":Z&384?"enum":Z&524288?"type":Z&64?"interface":Z&262144?"type parameter":Z&8?"enum member":Z&2097152?"alias":Z&1536?"module":Y}c.getSymbolKind=T;function s(v,S,te){var Y=v.getRootSymbols(S);if(Y.length===1&&e.first(Y).flags&8192&&v.getTypeOfSymbolAtLocation(S,te).getNonNullableType().getCallSignatures().length!==0)return"method";if(v.isUndefinedSymbol(S))return"var";if(v.isArgumentsSymbol(S))return"local var";if(te.kind===108&&e.isExpression(te)||e.isThisInTypeQuery(te))return"parameter";var Z=e.getCombinedLocalAndExportSymbolFlags(S);if(Z&3)return e.isFirstDeclarationOfSymbolParameter(S)?"parameter":S.valueDeclaration&&e.isVarConst(S.valueDeclaration)?"const":e.forEach(S.declarations,e.isLet)?"let":E(S)?"local var":"var";if(Z&16)return E(S)?"local function":"function";if(Z&32768)return"getter";if(Z&65536)return"setter";if(Z&8192)return"method";if(Z&16384)return"constructor";if(Z&131072)return"index";if(Z&4){if(Z&33554432&&S.checkFlags&6){var ce=e.forEach(v.getRootSymbols(S),function(X){var A=X.getFlags();if(A&98311)return"property"});if(!ce){var k=v.getTypeOfSymbolAtLocation(S,te);return k.getCallSignatures().length?"method":"property"}return ce}return"property"}return""}function D(v){if(v.declarations&&v.declarations.length){var S=v.declarations,te=S[0],Y=S.slice(1),Z=e.length(Y)&&e.isDeprecatedDeclaration(te)&&e.some(Y,function(k){return!e.isDeprecatedDeclaration(k)})?8192:0,ce=e.getNodeModifiers(te,Z);if(ce)return ce.split(",")}return[]}function O(v,S){if(!S)return"";var te=new e.Set(D(S));if(S.flags&2097152){var Y=v.getAliasedSymbol(S);Y!==S&&e.forEach(D(Y),function(Z){te.add(Z)})}return S.flags&16777216&&te.add("optional"),te.size>0?e.arrayFrom(te.values()).join(","):""}c.getSymbolModifiers=O;function W(v,S,te,Y,Z,ce,k){var X;ce===void 0&&(ce=e.getMeaningFromLocation(Z));var A=[],y=[],C=[],B=e.getCombinedLocalAndExportSymbolFlags(S),F=ce&1?s(v,S,Z):"",z=!1,ge=Z.kind===108&&e.isInExpressionContext(Z)||e.isThisInTypeQuery(Z),Pe,fe,_e,ne,oe=!1;if(Z.kind===108&&!ge)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(F!==""||B&32||B&2097152){if(F==="getter"||F==="setter"){var w=e.find(S.declarations,function(ue){return ue.name===Z});if(w)switch(w.kind){case 174:F="getter";break;case 175:F="setter";break;case 169:F="accessor";break;default:e.Debug.assertNever(w)}else F="property"}var re=void 0;if(Pe=ge?v.getTypeAtLocation(Z):v.getTypeOfSymbolAtLocation(S,Z),Z.parent&&Z.parent.kind===208){var M=Z.parent.name;(M===Z||M&&M.getFullWidth()===0)&&(Z=Z.parent)}var U=void 0;if(e.isCallOrNewExpression(Z)?U=Z:(e.isCallExpressionTarget(Z)||e.isNewExpressionTarget(Z)||Z.parent&&(e.isJsxOpeningLikeElement(Z.parent)||e.isTaggedTemplateExpression(Z.parent))&&e.isFunctionLike(S.valueDeclaration))&&(U=Z.parent),U){re=v.getResolvedSignature(U);var H=U.kind===211||e.isCallExpression(U)&&U.expression.kind===106,q=H?Pe.getConstructSignatures():Pe.getCallSignatures();if(re&&!e.contains(q,re.target)&&!e.contains(q,re)&&(re=q.length?q[0]:void 0),re){switch(H&&B&32?(F="constructor",Ae(Pe.symbol,F)):B&2097152?(F="alias",qe(F),A.push(e.spacePart()),H&&(re.flags&4&&(A.push(e.keywordPart(126)),A.push(e.spacePart())),A.push(e.keywordPart(103)),A.push(e.spacePart())),Ce(S)):Ae(S,F),F){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":A.push(e.punctuationPart(58)),A.push(e.spacePart()),!(e.getObjectFlags(Pe)&16)&&Pe.symbol&&(e.addRange(A,e.symbolToDisplayParts(v,Pe.symbol,Y,void 0,5)),A.push(e.lineBreakPart())),H&&(re.flags&4&&(A.push(e.keywordPart(126)),A.push(e.spacePart())),A.push(e.keywordPart(103)),A.push(e.spacePart())),xe(re,q,262144);break;default:xe(re,q)}z=!0,oe=q.length>1}}else if(e.isNameOfFunctionDeclaration(Z)&&!(B&98304)||Z.kind===135&&Z.parent.kind===173){var R=Z.parent,K=S.declarations&&e.find(S.declarations,function(ue){return ue===(Z.kind===135?R.parent:R)});if(K){var q=R.kind===173?Pe.getNonNullableType().getConstructSignatures():Pe.getNonNullableType().getCallSignatures();v.isImplementationOfOverload(R)?re=q[0]:re=v.getSignatureFromDeclaration(R),R.kind===173?(F="constructor",Ae(Pe.symbol,F)):Ae(R.kind===176&&!(Pe.symbol.flags&2048||Pe.symbol.flags&4096)?Pe.symbol:S,F),re&&xe(re,q),z=!0,oe=q.length>1}}}if(B&32&&!z&&!ge&&(rr(),e.getDeclarationOfKind(S,228)?qe("local class"):A.push(e.keywordPart(84)),A.push(e.spacePart()),Ce(S),L(S,te)),B&64&&ce&2&&(He(),A.push(e.keywordPart(118)),A.push(e.spacePart()),Ce(S),L(S,te)),B&524288&&ce&2&&(He(),A.push(e.keywordPart(154)),A.push(e.spacePart()),Ce(S),L(S,te),A.push(e.spacePart()),A.push(e.operatorPart(63)),A.push(e.spacePart()),e.addRange(A,e.typeToDisplayParts(v,e.isConstTypeReference(Z.parent)?v.getTypeAtLocation(Z.parent):v.getDeclaredTypeOfSymbol(S),Y,8388608))),B&384&&(He(),e.some(S.declarations,function(ue){return e.isEnumDeclaration(ue)&&e.isEnumConst(ue)})&&(A.push(e.keywordPart(85)),A.push(e.spacePart())),A.push(e.keywordPart(92)),A.push(e.spacePart()),Ce(S)),B&1536&&!ge){He();var w=e.getDeclarationOfKind(S,264),I=w&&w.name&&w.name.kind===79;A.push(e.keywordPart(I?143:142)),A.push(e.spacePart()),Ce(S)}if(B&262144&&ce&2)if(He(),A.push(e.punctuationPart(20)),A.push(e.textPart("type parameter")),A.push(e.punctuationPart(21)),A.push(e.spacePart()),Ce(S),S.parent)je(),Ce(S.parent,Y),L(S.parent,Y);else{var he=e.getDeclarationOfKind(S,165);if(he===void 0)return e.Debug.fail();var w=he.parent;if(w)if(e.isFunctionLikeKind(w.kind)){je();var re=v.getSignatureFromDeclaration(w);w.kind===177?(A.push(e.keywordPart(103)),A.push(e.spacePart())):w.kind!==176&&w.name&&Ce(w.symbol),e.addRange(A,e.signatureToDisplayParts(v,re,te,32))}else w.kind===262&&(je(),A.push(e.keywordPart(154)),A.push(e.spacePart()),Ce(w.symbol),L(w.symbol,te))}if(B&8){F="enum member",Ae(S,"enum member");var w=(X=S.declarations)===null||X===void 0?void 0:X[0];if((w==null?void 0:w.kind)===302){var le=v.getConstantValue(w);le!==void 0&&(A.push(e.spacePart()),A.push(e.operatorPart(63)),A.push(e.spacePart()),A.push(e.displayPart(e.getTextOfConstantValue(le),typeof le=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(S.flags&2097152){if(He(),!z){var ee=v.getAliasedSymbol(S);if(ee!==S&&ee.declarations&&ee.declarations.length>0){var J=ee.declarations[0],de=e.getNameOfDeclaration(J);if(de){var De=e.isModuleWithStringLiteralName(J)&&e.hasSyntacticModifier(J,2),N=S.name!=="default"&&!De,b=W(v,ee,e.getSourceFileOfNode(J),J,de,ce,N?S:ee);A.push.apply(A,b.displayParts),A.push(e.lineBreakPart()),_e=b.documentation,ne=b.tags}else _e=ee.getContextualDocumentationComment(J,v),ne=ee.getJsDocTags(v)}}if(S.declarations)switch(S.declarations[0].kind){case 267:A.push(e.keywordPart(93)),A.push(e.spacePart()),A.push(e.keywordPart(143));break;case 274:A.push(e.keywordPart(93)),A.push(e.spacePart()),A.push(e.keywordPart(S.declarations[0].isExportEquals?63:88));break;case 278:A.push(e.keywordPart(93));break;default:A.push(e.keywordPart(100))}A.push(e.spacePart()),Ce(S),e.forEach(S.declarations,function(ue){if(ue.kind===268){var Ue=ue;if(e.isExternalModuleImportEqualsDeclaration(Ue))A.push(e.spacePart()),A.push(e.operatorPart(63)),A.push(e.spacePart()),A.push(e.keywordPart(147)),A.push(e.punctuationPart(20)),A.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(Ue)),e.SymbolDisplayPartKind.stringLiteral)),A.push(e.punctuationPart(21));else{var Je=v.getSymbolAtLocation(Ue.moduleReference);Je&&(A.push(e.spacePart()),A.push(e.operatorPart(63)),A.push(e.spacePart()),Ce(Je,Y))}return!0}})}if(!z)if(F!==""){if(Pe){if(ge?(He(),A.push(e.keywordPart(108))):Ae(S,F),F==="property"||F==="accessor"||F==="getter"||F==="setter"||F==="JSX attribute"||B&3||F==="local var"||F==="index"||ge){if(A.push(e.punctuationPart(58)),A.push(e.spacePart()),Pe.symbol&&Pe.symbol.flags&262144&&F!=="index"){var Q=e.mapToDisplayParts(function(ue){var Ue=v.typeParameterToDeclaration(Pe,Y,P);me().writeNode(4,Ue,e.getSourceFileOfNode(e.getParseTreeNode(Y)),ue)});e.addRange(A,Q)}else e.addRange(A,e.typeToDisplayParts(v,Pe,Y));if(S.target&&S.target.tupleLabelDeclaration){var G=S.target.tupleLabelDeclaration;e.Debug.assertNode(G.name,e.isIdentifier),A.push(e.spacePart()),A.push(e.punctuationPart(20)),A.push(e.textPart(e.idText(G.name))),A.push(e.punctuationPart(21))}}else if(B&16||B&8192||B&16384||B&131072||B&98304||F==="method"){var q=Pe.getNonNullableType().getCallSignatures();q.length&&(xe(q[0],q),oe=q.length>1)}}}else F=T(v,S,Z);if(y.length===0&&!oe&&(y=S.getContextualDocumentationComment(Y,v)),y.length===0&&B&4&&S.parent&&S.declarations&&e.forEach(S.parent.declarations,function(ue){return ue.kind===308}))for(var ae=0,Te=S.declarations;ae<Te.length;ae++){var w=Te[ae];if(!(!w.parent||w.parent.kind!==223)){var Ne=v.getSymbolAtLocation(w.parent.right);if(Ne&&(y=Ne.getDocumentationComment(v),C=Ne.getJsDocTags(v),y.length>0))break}}if(y.length===0&&e.isIdentifier(Z)&&S.valueDeclaration&&e.isBindingElement(S.valueDeclaration)){var w=S.valueDeclaration,we=w.parent;if(e.isIdentifier(w.name)&&e.isObjectBindingPattern(we)){var nr=e.getTextOfIdentifierOrLiteral(w.name),tr=v.getTypeAtLocation(we);y=e.firstDefined(tr.isUnion()?tr.types:[tr],function(Ue){var Je=Ue.getProperty(nr);return Je?Je.getDocumentationComment(v):void 0})||e.emptyArray}}return C.length===0&&!oe&&(C=S.getContextualJsDocTags(Y,v)),y.length===0&&_e&&(y=_e),C.length===0&&ne&&(C=ne),{displayParts:A,documentation:y,symbolKind:F,tags:C.length===0?void 0:C};function me(){return fe||(fe=e.createPrinter({removeComments:!0})),fe}function He(){A.length&&A.push(e.lineBreakPart()),rr()}function rr(){k&&(qe("alias"),A.push(e.spacePart()))}function je(){A.push(e.spacePart()),A.push(e.keywordPart(101)),A.push(e.spacePart())}function Ce(ue,Ue){var Je;k&&ue===S&&(ue=k),F==="index"&&(Je=v.getIndexInfosOfIndexSymbol(ue));var lr=[];ue.flags&131072&&Je?(ue.parent&&(lr=e.symbolToDisplayParts(v,ue.parent)),lr.push(e.punctuationPart(22)),Je.forEach(function(mr,Hr){lr.push.apply(lr,e.typeToDisplayParts(v,mr.keyType)),Hr!==Je.length-1&&(lr.push(e.spacePart()),lr.push(e.punctuationPart(51)),lr.push(e.spacePart()))}),lr.push(e.punctuationPart(23))):lr=e.symbolToDisplayParts(v,ue,Ue||te,void 0,7),e.addRange(A,lr),S.flags&16777216&&A.push(e.punctuationPart(57))}function Ae(ue,Ue){He(),Ue&&(qe(Ue),ue&&!e.some(ue.declarations,function(Je){return e.isArrowFunction(Je)||(e.isFunctionExpression(Je)||e.isClassExpression(Je))&&!Je.name})&&(A.push(e.spacePart()),Ce(ue)))}function qe(ue){switch(ue){case"var":case"function":case"let":case"const":case"constructor":A.push(e.textOrKeywordPart(ue));return;default:A.push(e.punctuationPart(20)),A.push(e.textOrKeywordPart(ue)),A.push(e.punctuationPart(21));return}}function xe(ue,Ue,Je){Je===void 0&&(Je=0),e.addRange(A,e.signatureToDisplayParts(v,ue,Y,Je|32)),Ue.length>1&&(A.push(e.spacePart()),A.push(e.punctuationPart(20)),A.push(e.operatorPart(39)),A.push(e.displayPart((Ue.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),A.push(e.spacePart()),A.push(e.textPart(Ue.length===2?"overload":"overloads")),A.push(e.punctuationPart(21))),y=ue.getDocumentationComment(v),C=ue.getJsDocTags(),Ue.length>1&&y.length===0&&C.length===0&&(y=Ue[0].getDocumentationComment(v),C=Ue[0].getJsDocTags().filter(function(lr){return lr.name!=="deprecated"}))}function L(ue,Ue){var Je=e.mapToDisplayParts(function(lr){var mr=v.symbolToTypeParameterDeclarations(ue,Ue,P);me().writeList(53776,mr,e.getSourceFileOfNode(e.getParseTreeNode(Ue)),lr)});e.addRange(A,Je)}}c.getSymbolDisplayPartsDocumentationAndSymbolKind=W;function E(v){return v.parent?!1:e.forEach(v.declarations,function(S){if(S.kind===215)return!0;if(S.kind!==257&&S.kind!==259)return!1;for(var te=S.parent;!e.isFunctionBlock(te);te=te.parent)if(te.kind===308||te.kind===265)return!1;return!0})}})(e.SymbolDisplay||(e.SymbolDisplay={}))})(h||(h={}));var h;(function(e){function c(D,O){var W=[],E=O.compilerOptions?s(O.compilerOptions,W):{},v=e.getDefaultCompilerOptions();for(var S in v)e.hasProperty(v,S)&&E[S]===void 0&&(E[S]=v[S]);for(var te=0,Y=e.transpileOptionValueCompilerOptions;te<Y.length;te++){var Z=Y[te];E[Z.name]=Z.transpileOptionValue}E.suppressOutputPathCheck=!0,E.allowNonTsExtensions=!0;var ce=e.getNewLineCharacter(E),k={getSourceFile:function(F){return F===e.normalizePath(X)?A:void 0},writeFile:function(F,z){e.fileExtensionIs(F,".map")?(e.Debug.assertEqual(C,void 0,"Unexpected multiple source map outputs, file:",F),C=z):(e.Debug.assertEqual(y,void 0,"Unexpected multiple outputs, file:",F),y=z)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(F){return F},getCurrentDirectory:function(){return""},getNewLine:function(){return ce},fileExists:function(F){return F===X},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},X=O.fileName||(O.compilerOptions&&O.compilerOptions.jsx?"module.tsx":"module.ts"),A=e.createSourceFile(X,D,{languageVersion:e.getEmitScriptTarget(E),impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(X,"",k.getCanonicalFileName),void 0,k,E),setExternalModuleIndicator:e.getSetExternalModuleIndicator(E)});O.moduleName&&(A.moduleName=O.moduleName),O.renamedDependencies&&(A.renamedDependencies=new e.Map(e.getEntries(O.renamedDependencies)));var y,C,B=e.createProgram([X],E,k);return O.reportDiagnostics&&(e.addRange(W,B.getSyntacticDiagnostics(A)),e.addRange(W,B.getOptionsDiagnostics())),B.emit(void 0,void 0,void 0,void 0,O.transformers),y===void 0?e.Debug.fail("Output generation failed"):{outputText:y,diagnostics:W,sourceMapText:C}}e.transpileModule=c;function P(D,O,W,E,v){var S=c(D,{compilerOptions:O,fileName:W,reportDiagnostics:!!E,moduleName:v});return e.addRange(E,S.diagnostics),S.outputText}e.transpile=P;var T;function s(D,O){T=T||e.filter(e.optionDeclarations,function(te){return typeof te.type=="object"&&!e.forEachEntry(te.type,function(Y){return typeof Y!="number"})}),D=e.cloneCompilerOptions(D);for(var W=function(te){if(!e.hasProperty(D,te.name))return"continue";var Y=D[te.name];e.isString(Y)?D[te.name]=e.parseCustomTypeOption(te,Y,O):e.forEachEntry(te.type,function(Z){return Z===Y})||O.push(e.createCompilerDiagnosticForInvalidCustomType(te))},E=0,v=T;E<v.length;E++){var S=v[E];W(S)}return D}e.fixupCompilerOptions=s})(h||(h={}));var h;(function(e){(function(c){(function(T){T[T.FormatDocument=0]="FormatDocument",T[T.FormatSelection=1]="FormatSelection",T[T.FormatOnEnter=2]="FormatOnEnter",T[T.FormatOnSemicolon=3]="FormatOnSemicolon",T[T.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",T[T.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(c.FormattingRequestKind||(c.FormattingRequestKind={}));var P=function(){function T(s,D,O){this.sourceFile=s,this.formattingRequestKind=D,this.options=O}return T.prototype.updateContext=function(s,D,O,W,E){this.currentTokenSpan=e.Debug.checkDefined(s),this.currentTokenParent=e.Debug.checkDefined(D),this.nextTokenSpan=e.Debug.checkDefined(O),this.nextTokenParent=e.Debug.checkDefined(W),this.contextNode=e.Debug.checkDefined(E),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},T.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},T.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},T.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var s=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,D=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=s===D}return this.tokensAreOnSameLine},T.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},T.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},T.prototype.NodeIsOnOneLine=function(s){var D=this.sourceFile.getLineAndCharacterOfPosition(s.getStart(this.sourceFile)).line,O=this.sourceFile.getLineAndCharacterOfPosition(s.getEnd()).line;return D===O},T.prototype.BlockIsOnOneLine=function(s){var D=e.findChildOfKind(s,18,this.sourceFile),O=e.findChildOfKind(s,19,this.sourceFile);if(D&&O){var W=this.sourceFile.getLineAndCharacterOfPosition(D.getEnd()).line,E=this.sourceFile.getLineAndCharacterOfPosition(O.getStart(this.sourceFile)).line;return W===E}return!1},T}();c.FormattingContext=P})(e.formatting||(e.formatting={}))})(h||(h={}));var h;(function(e){(function(c){var P=e.createScanner(99,!1,0),T=e.createScanner(99,!1,1),s;(function(O){O[O.Scan=0]="Scan",O[O.RescanGreaterThanToken=1]="RescanGreaterThanToken",O[O.RescanSlashToken=2]="RescanSlashToken",O[O.RescanTemplateToken=3]="RescanTemplateToken",O[O.RescanJsxIdentifier=4]="RescanJsxIdentifier",O[O.RescanJsxText=5]="RescanJsxText",O[O.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(s||(s={}));function D(O,W,E,v,S){var te=W===1?T:P;te.setText(O),te.setTextPos(E);var Y=!0,Z,ce,k,X,A,y=S({advance:C,readTokenInfo:ne,readEOFTokenRange:w,isOnToken:re,isOnEOF:M,getCurrentLeadingTrivia:function(){return Z},lastTrailingTriviaWasNewLine:function(){return Y},skipToEndOf:H,skipToStartOf:q,getStartPos:function(){var R;return(R=A==null?void 0:A.token.pos)!==null&&R!==void 0?R:te.getTokenPos()}});return A=void 0,te.setText(void 0),y;function C(){A=void 0;var R=te.getStartPos()!==E;R?Y=!!ce&&e.last(ce).kind===4:te.scan(),Z=void 0,ce=void 0;for(var K=te.getStartPos();K<v;){var I=te.getToken();if(!e.isTrivia(I))break;te.scan();var he={pos:K,end:te.getStartPos(),kind:I};K=te.getStartPos(),Z=e.append(Z,he)}k=te.getStartPos()}function B(R){switch(R.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function F(R){if(R.parent)switch(R.parent.kind){case 288:case 283:case 284:case 282:return e.isKeyword(R.kind)||R.kind===79}return!1}function z(R){return e.isJsxText(R)||e.isJsxElement(R)&&(A==null?void 0:A.token.kind)===11}function ge(R){return R.kind===13}function Pe(R){return R.kind===16||R.kind===17}function fe(R){return R.parent&&e.isJsxAttribute(R.parent)&&R.parent.initializer===R}function _e(R){return R===43||R===68}function ne(R){e.Debug.assert(re());var K=B(R)?1:ge(R)?2:Pe(R)?3:F(R)?4:z(R)?5:fe(R)?6:0;if(A&&K===X)return U(A,R);te.getStartPos()!==k&&(e.Debug.assert(A!==void 0),te.setTextPos(k),te.scan());var I=oe(R,K),he=c.createTextRangeWithKind(te.getStartPos(),te.getTextPos(),I);for(ce&&(ce=void 0);te.getStartPos()<v&&(I=te.scan(),!!e.isTrivia(I));){var le=c.createTextRangeWithKind(te.getStartPos(),te.getTextPos(),I);if(ce||(ce=[]),ce.push(le),I===4){te.scan();break}}return A={leadingTrivia:Z,trailingTrivia:ce,token:he},U(A,R)}function oe(R,K){var I=te.getToken();switch(X=0,K){case 1:if(I===31){X=1;var he=te.reScanGreaterToken();return e.Debug.assert(R.kind===he),he}break;case 2:if(_e(I)){X=2;var he=te.reScanSlashToken();return e.Debug.assert(R.kind===he),he}break;case 3:if(I===19)return X=3,te.reScanTemplateToken(!1);break;case 4:return X=4,te.scanJsxIdentifier();case 5:return X=5,te.reScanJsxToken(!1);case 6:return X=6,te.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(K)}return I}function w(){return e.Debug.assert(M()),c.createTextRangeWithKind(te.getStartPos(),te.getTextPos(),1)}function re(){var R=A?A.token.kind:te.getToken();return R!==1&&!e.isTrivia(R)}function M(){var R=A?A.token.kind:te.getToken();return R===1}function U(R,K){return e.isToken(K)&&R.token.kind!==K.kind&&(R.token.kind=K.kind),R}function H(R){te.setTextPos(R.end),k=te.getStartPos(),X=void 0,A=void 0,Y=!1,Z=void 0,ce=void 0}function q(R){te.setTextPos(R.pos),k=te.getStartPos(),X=void 0,A=void 0,Y=!1,Z=void 0,ce=void 0}}c.getFormattingScanner=D})(e.formatting||(e.formatting={}))})(h||(h={}));var h;(function(e){(function(c){c.anyContext=e.emptyArray,function(P){P[P.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",P[P.StopProcessingTokenActions=2]="StopProcessingTokenActions",P[P.InsertSpace=4]="InsertSpace",P[P.InsertNewLine=8]="InsertNewLine",P[P.DeleteSpace=16]="DeleteSpace",P[P.DeleteToken=32]="DeleteToken",P[P.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",P[P.StopAction=3]="StopAction",P[P.ModifySpaceAction=28]="ModifySpaceAction",P[P.ModifyTokenAction=96]="ModifyTokenAction"}(c.RuleAction||(c.RuleAction={})),function(P){P[P.None=0]="None",P[P.CanDeleteNewLines=1]="CanDeleteNewLines"}(c.RuleFlags||(c.RuleFlags={}))})(e.formatting||(e.formatting={}))})(h||(h={}));var h;(function(e){(function(c){function P(){for(var Oe=[],Ze=0;Ze<=162;Ze++)Ze!==1&&Oe.push(Ze);function tt(){for(var Dt=[],Me=0;Me<arguments.length;Me++)Dt[Me]=arguments[Me];return{tokens:Oe.filter(function(Ke){return!Dt.some(function(Vr){return Vr===Ke})}),isSpecific:!1}}var ut={tokens:Oe,isSpecific:!1},or=s(t(t([],Oe,!0),[3],!1)),qr=s(t(t([],Oe,!0),[1],!1)),Rr=O(81,162),zr=O(29,78),Fr=[101,102,162,128,140],_t=[45,46,54,53],Ct=[8,9,79,20,22,18,108,103],yt=[79,20,108,103],Fe=[79,21,23,103],vr=[79,20,108,103],Le=[79,21,23,103],cr=[2,3],$r=t([79],e.typeKeywords,!0),Re=or,xr=s([79,3,84,93,100]),Br=s([21,3,90,111,96,91]),Qr=[T("IgnoreBeforeComment",ut,cr,c.anyContext,1),T("IgnoreAfterLineComment",2,ut,c.anyContext,1),T("NotSpaceBeforeColon",ut,58,[N,X,A],16),T("SpaceAfterColon",58,ut,[N,X],4),T("NoSpaceBeforeQuestionMark",ut,57,[N,X,A],16),T("SpaceAfterQuestionMarkInConditionalOperator",57,ut,[N,C],4),T("NoSpaceAfterQuestionMark",57,ut,[N],16),T("NoSpaceBeforeDot",ut,[24,28],[N,wr],16),T("NoSpaceAfterDot",[24,28],ut,[N],16),T("NoSpaceBetweenImportParenInImportType",100,20,[N,De],16),T("NoSpaceAfterUnaryPrefixOperator",_t,Ct,[N,X],16),T("NoSpaceAfterUnaryPreincrementOperator",45,yt,[N],16),T("NoSpaceAfterUnaryPredecrementOperator",46,vr,[N],16),T("NoSpaceBeforeUnaryPostincrementOperator",Fe,45,[N,Je],16),T("NoSpaceBeforeUnaryPostdecrementOperator",Le,46,[N,Je],16),T("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[N,k],4),T("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[N,k],4),T("SpaceAfterAddWhenFollowedByPreincrement",39,45,[N,k],4),T("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[N,k],4),T("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[N,k],4),T("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[N,k],4),T("NoSpaceAfterCloseBrace",19,[27,26],[N],16),T("NewLineBeforeCloseBraceInBlockContext",or,19,[ge],8),T("SpaceAfterCloseBrace",19,tt(21),[N,H],4),T("SpaceBetweenCloseBraceAndElse",19,91,[N],4),T("SpaceBetweenCloseBraceAndWhile",19,115,[N],4),T("NoSpaceBetweenEmptyBraceBrackets",18,19,[N,R],16),T("SpaceAfterConditionalClosingParen",21,22,[q],4),T("NoSpaceBetweenFunctionKeywordAndStar",98,41,[re],16),T("SpaceAfterStarInGeneratorDeclaration",41,79,[re],4),T("SpaceAfterFunctionInFuncDecl",98,ut,[oe],4),T("NewLineAfterOpenBraceInBlockContext",18,ut,[ge],8),T("SpaceAfterGetSetInMember",[137,151],79,[oe],4),T("NoSpaceBetweenYieldKeywordAndStar",125,41,[N,ue],16),T("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],ut,[N,ue],4),T("NoSpaceBetweenReturnAndSemicolon",105,26,[N],16),T("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],ut,[N],4),T("SpaceAfterLetConstInVariableDeclaration",[119,85],ut,[N,me],4),T("NoSpaceBeforeOpenParenInFuncCall",ut,20,[N,he,le],16),T("SpaceBeforeBinaryKeywordOperator",ut,Fr,[N,k],4),T("SpaceAfterBinaryKeywordOperator",Fr,ut,[N,k],4),T("SpaceAfterVoidOperator",114,ut,[N,L],4),T("SpaceBetweenAsyncAndOpenParen",132,20,[de,N],4),T("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[N],4),T("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[N],16),T("SpaceBeforeJsxAttribute",ut,79,[ae,N],4),T("SpaceBeforeSlashInJsxOpeningElement",ut,43,[Ne,N],4),T("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Ne,N],16),T("NoSpaceBeforeEqualInJsxAttribute",ut,63,[Te,N],16),T("NoSpaceAfterEqualInJsxAttribute",63,ut,[Te,N],16),T("NoSpaceAfterModuleImport",[142,147],20,[N],16),T("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],ut,[N],4),T("SpaceBeforeCertainTypeScriptKeywords",ut,[94,117,158],[N],4),T("SpaceAfterModuleName",10,18,[rr],4),T("SpaceBeforeArrow",ut,38,[N],4),T("SpaceAfterArrow",38,ut,[N],4),T("NoSpaceAfterEllipsis",25,79,[N],16),T("NoSpaceAfterOptionalParameters",57,[21,27],[N,X],16),T("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[N,je],16),T("NoSpaceBeforeOpenAngularBracket",$r,29,[N,qe],16),T("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[N,qe],16),T("NoSpaceAfterOpenAngularBracket",29,ut,[N,qe],16),T("NoSpaceBeforeCloseAngularBracket",ut,31,[N,qe],16),T("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[N,qe,w],16),T("SpaceBeforeAt",[21,79],59,[N],4),T("NoSpaceAfterAt",59,ut,[N],16),T("SpaceAfterDecorator",ut,[126,79,93,88,84,124,123,121,122,137,151,22,41],[nr],4),T("NoSpaceBeforeNonNullAssertionOperator",ut,53,[N,Ue],16),T("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[N,Ce],16),T("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[N],4)],ct=[T("SpaceAfterConstructor",135,20,[E("insertSpaceAfterConstructor"),N],4),T("NoSpaceAfterConstructor",135,20,[S("insertSpaceAfterConstructor"),N],16),T("SpaceAfterComma",27,ut,[E("insertSpaceAfterCommaDelimiter"),N,Q,ee,J],4),T("NoSpaceAfterComma",27,ut,[S("insertSpaceAfterCommaDelimiter"),N,Q],16),T("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[E("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),oe],4),T("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[S("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),oe],16),T("SpaceAfterKeywordInControl",Rr,20,[E("insertSpaceAfterKeywordsInControlFlowStatements"),q],4),T("NoSpaceAfterKeywordInControl",Rr,20,[S("insertSpaceAfterKeywordsInControlFlowStatements"),q],16),T("SpaceAfterOpenParen",20,ut,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),N],4),T("SpaceBeforeCloseParen",ut,21,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),N],4),T("SpaceBetweenOpenParens",20,20,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),N],4),T("NoSpaceBetweenParens",20,21,[N],16),T("NoSpaceAfterOpenParen",20,ut,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),N],16),T("NoSpaceBeforeCloseParen",ut,21,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),N],16),T("SpaceAfterOpenBracket",22,ut,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),N],4),T("SpaceBeforeCloseBracket",ut,23,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),N],4),T("NoSpaceBetweenBrackets",22,23,[N],16),T("NoSpaceAfterOpenBracket",22,ut,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),N],16),T("NoSpaceBeforeCloseBracket",ut,23,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),N],16),T("SpaceAfterOpenBrace",18,ut,[Y("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),F],4),T("SpaceBeforeCloseBrace",ut,19,[Y("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),F],4),T("NoSpaceBetweenEmptyBraceBrackets",18,19,[N,R],16),T("NoSpaceAfterOpenBrace",18,ut,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),N],16),T("NoSpaceBeforeCloseBrace",ut,19,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),N],16),T("SpaceBetweenEmptyBraceBrackets",18,19,[E("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),T("NoSpaceBetweenEmptyBraceBrackets",18,19,[v("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),N],16),T("SpaceAfterTemplateHeadAndMiddle",[15,16],ut,[E("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),b],4,1),T("SpaceBeforeTemplateMiddleAndTail",ut,[16,17],[E("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),N],4),T("NoSpaceAfterTemplateHeadAndMiddle",[15,16],ut,[S("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),b],16,1),T("NoSpaceBeforeTemplateMiddleAndTail",ut,[16,17],[S("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),N],16),T("SpaceAfterOpenBraceInJsxExpression",18,ut,[E("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),N,G],4),T("SpaceBeforeCloseBraceInJsxExpression",ut,19,[E("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),N,G],4),T("NoSpaceAfterOpenBraceInJsxExpression",18,ut,[S("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),N,G],16),T("NoSpaceBeforeCloseBraceInJsxExpression",ut,19,[S("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),N,G],16),T("SpaceAfterSemicolonInFor",26,ut,[E("insertSpaceAfterSemicolonInForStatements"),N,Z],4),T("NoSpaceAfterSemicolonInFor",26,ut,[S("insertSpaceAfterSemicolonInForStatements"),N,Z],16),T("SpaceBeforeBinaryOperator",ut,zr,[E("insertSpaceBeforeAndAfterBinaryOperators"),N,k],4),T("SpaceAfterBinaryOperator",zr,ut,[E("insertSpaceBeforeAndAfterBinaryOperators"),N,k],4),T("NoSpaceBeforeBinaryOperator",ut,zr,[S("insertSpaceBeforeAndAfterBinaryOperators"),N,k],16),T("NoSpaceAfterBinaryOperator",zr,ut,[S("insertSpaceBeforeAndAfterBinaryOperators"),N,k],16),T("SpaceBeforeOpenParenInFuncDecl",ut,20,[E("insertSpaceBeforeFunctionParenthesis"),N,oe],4),T("NoSpaceBeforeOpenParenInFuncDecl",ut,20,[S("insertSpaceBeforeFunctionParenthesis"),N,oe],16),T("NewLineBeforeOpenBraceInControl",Br,18,[E("placeOpenBraceOnNewLineForControlBlocks"),q,z],8,1),T("NewLineBeforeOpenBraceInFunction",Re,18,[E("placeOpenBraceOnNewLineForFunctions"),oe,z],8,1),T("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",xr,18,[E("placeOpenBraceOnNewLineForFunctions"),M,z],8,1),T("SpaceAfterTypeAssertion",31,ut,[E("insertSpaceAfterTypeAssertion"),N,xe],4),T("NoSpaceAfterTypeAssertion",31,ut,[S("insertSpaceAfterTypeAssertion"),N,xe],16),T("SpaceBeforeTypeAnnotation",ut,[57,58],[E("insertSpaceBeforeTypeAnnotation"),N,y],4),T("NoSpaceBeforeTypeAnnotation",ut,[57,58],[S("insertSpaceBeforeTypeAnnotation"),N,y],16),T("NoOptionalSemicolon",26,qr,[W("semicolons",e.SemicolonPreference.Remove),mr],32),T("OptionalSemicolon",ut,qr,[W("semicolons",e.SemicolonPreference.Insert),Hr],64)],ft=[T("NoSpaceBeforeSemicolon",ut,26,[N],16),T("SpaceBeforeOpenBraceInControl",Br,18,[te("placeOpenBraceOnNewLineForControlBlocks"),q,He,B],4,1),T("SpaceBeforeOpenBraceInFunction",Re,18,[te("placeOpenBraceOnNewLineForFunctions"),oe,_e,He,B],4,1),T("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",xr,18,[te("placeOpenBraceOnNewLineForFunctions"),M,He,B],4,1),T("NoSpaceBeforeComma",ut,27,[N],16),T("NoSpaceBeforeOpenBracket",tt(132,82),22,[N],16),T("NoSpaceAfterCloseBracket",23,ut,[N,we],16),T("SpaceAfterSemicolon",26,ut,[N],4),T("SpaceBetweenForAndAwaitKeyword",97,133,[N],4),T("SpaceBetweenStatements",[21,90,91,82],ut,[N,Q,ce],4),T("SpaceAfterTryCatchFinally",[111,83,96],18,[N],4)];return t(t(t([],Qr,!0),ct,!0),ft,!0)}c.getAllRules=P;function T(Oe,Ze,tt,ut,or,qr){return qr===void 0&&(qr=0),{leftTokenRange:D(Ze),rightTokenRange:D(tt),rule:{debugName:Oe,context:ut,action:or,flags:qr}}}function s(Oe){return{tokens:Oe,isSpecific:!0}}function D(Oe){return typeof Oe=="number"?s([Oe]):e.isArray(Oe)?s(Oe):Oe}function O(Oe,Ze,tt){tt===void 0&&(tt=[]);for(var ut=[],or=Oe;or<=Ze;or++)e.contains(tt,or)||ut.push(or);return s(ut)}function W(Oe,Ze){return function(tt){return tt.options&&tt.options[Oe]===Ze}}function E(Oe){return function(Ze){return Ze.options&&e.hasProperty(Ze.options,Oe)&&!!Ze.options[Oe]}}function v(Oe){return function(Ze){return Ze.options&&e.hasProperty(Ze.options,Oe)&&!Ze.options[Oe]}}function S(Oe){return function(Ze){return!Ze.options||!e.hasProperty(Ze.options,Oe)||!Ze.options[Oe]}}function te(Oe){return function(Ze){return!Ze.options||!e.hasProperty(Ze.options,Oe)||!Ze.options[Oe]||Ze.TokensAreOnSameLine()}}function Y(Oe){return function(Ze){return!Ze.options||!e.hasProperty(Ze.options,Oe)||!!Ze.options[Oe]}}function Z(Oe){return Oe.contextNode.kind===245}function ce(Oe){return!Z(Oe)}function k(Oe){switch(Oe.contextNode.kind){case 223:return Oe.contextNode.operatorToken.kind!==27;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return Oe.currentTokenSpan.kind===63||Oe.nextTokenSpan.kind===63;case 246:case 165:return Oe.currentTokenSpan.kind===101||Oe.nextTokenSpan.kind===101||Oe.currentTokenSpan.kind===63||Oe.nextTokenSpan.kind===63;case 247:return Oe.currentTokenSpan.kind===162||Oe.nextTokenSpan.kind===162}return!1}function X(Oe){return!k(Oe)}function A(Oe){return!y(Oe)}function y(Oe){var Ze=Oe.contextNode.kind;return Ze===169||Ze===168||Ze===166||Ze===257||e.isFunctionLikeKind(Ze)}function C(Oe){return Oe.contextNode.kind===224||Oe.contextNode.kind===191}function B(Oe){return Oe.TokensAreOnSameLine()||_e(Oe)}function F(Oe){return Oe.contextNode.kind===203||Oe.contextNode.kind===197||Pe(Oe)}function z(Oe){return _e(Oe)&&!(Oe.NextNodeAllOnSameLine()||Oe.NextNodeBlockIsOnOneLine())}function ge(Oe){return fe(Oe)&&!(Oe.ContextNodeAllOnSameLine()||Oe.ContextNodeBlockIsOnOneLine())}function Pe(Oe){return fe(Oe)&&(Oe.ContextNodeAllOnSameLine()||Oe.ContextNodeBlockIsOnOneLine())}function fe(Oe){return ne(Oe.contextNode)}function _e(Oe){return ne(Oe.nextTokenParent)}function ne(Oe){if(U(Oe))return!0;switch(Oe.kind){case 238:case 266:case 207:case 265:return!0}return!1}function oe(Oe){switch(Oe.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function w(Oe){return!oe(Oe)}function re(Oe){return Oe.contextNode.kind===259||Oe.contextNode.kind===215}function M(Oe){return U(Oe.contextNode)}function U(Oe){switch(Oe.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function H(Oe){switch(Oe.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{var Ze=Oe.currentTokenParent.parent;if(!Ze||Ze.kind!==216&&Ze.kind!==215)return!0}}return!1}function q(Oe){switch(Oe.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function R(Oe){return Oe.contextNode.kind===207}function K(Oe){return Oe.contextNode.kind===210}function I(Oe){return Oe.contextNode.kind===211}function he(Oe){return K(Oe)||I(Oe)}function le(Oe){return Oe.currentTokenSpan.kind!==27}function ee(Oe){return Oe.nextTokenSpan.kind!==23}function J(Oe){return Oe.nextTokenSpan.kind!==21}function de(Oe){return Oe.contextNode.kind===216}function De(Oe){return Oe.contextNode.kind===202}function N(Oe){return Oe.TokensAreOnSameLine()&&Oe.contextNode.kind!==11}function b(Oe){return Oe.contextNode.kind!==11}function Q(Oe){return Oe.contextNode.kind!==281&&Oe.contextNode.kind!==285}function G(Oe){return Oe.contextNode.kind===291||Oe.contextNode.kind===290}function ae(Oe){return Oe.nextTokenParent.kind===288}function Te(Oe){return Oe.contextNode.kind===288}function Ne(Oe){return Oe.contextNode.kind===282}function we(Oe){return!oe(Oe)&&!_e(Oe)}function nr(Oe){return Oe.TokensAreOnSameLine()&&e.hasDecorators(Oe.contextNode)&&tr(Oe.currentTokenParent)&&!tr(Oe.nextTokenParent)}function tr(Oe){for(;Oe&&e.isExpression(Oe);)Oe=Oe.parent;return Oe&&Oe.kind===167}function me(Oe){return Oe.currentTokenParent.kind===258&&Oe.currentTokenParent.getStart(Oe.sourceFile)===Oe.currentTokenSpan.pos}function He(Oe){return Oe.formattingRequestKind!==2}function rr(Oe){return Oe.contextNode.kind===264}function je(Oe){return Oe.contextNode.kind===184}function Ce(Oe){return Oe.contextNode.kind===177}function Ae(Oe,Ze){if(Oe.kind!==29&&Oe.kind!==31)return!1;switch(Ze.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function qe(Oe){return Ae(Oe.currentTokenSpan,Oe.currentTokenParent)||Ae(Oe.nextTokenSpan,Oe.nextTokenParent)}function xe(Oe){return Oe.contextNode.kind===213}function L(Oe){return Oe.currentTokenSpan.kind===114&&Oe.currentTokenParent.kind===219}function ue(Oe){return Oe.contextNode.kind===226&&Oe.contextNode.expression!==void 0}function Ue(Oe){return Oe.contextNode.kind===232}function Je(Oe){return!lr(Oe)}function lr(Oe){switch(Oe.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}function mr(Oe){var Ze=Oe.nextTokenSpan.kind,tt=Oe.nextTokenSpan.pos;if(e.isTrivia(Ze)){var ut=Oe.nextTokenParent===Oe.currentTokenParent?e.findNextToken(Oe.currentTokenParent,e.findAncestor(Oe.currentTokenParent,function(Rr){return!Rr.parent}),Oe.sourceFile):Oe.nextTokenParent.getFirstToken(Oe.sourceFile);if(!ut)return!0;Ze=ut.kind,tt=ut.getStart(Oe.sourceFile)}var or=Oe.sourceFile.getLineAndCharacterOfPosition(Oe.currentTokenSpan.pos).line,qr=Oe.sourceFile.getLineAndCharacterOfPosition(tt).line;return or===qr?Ze===19||Ze===1:Ze===237||Ze===26?!1:Oe.contextNode.kind===261||Oe.contextNode.kind===262?!e.isPropertySignature(Oe.currentTokenParent)||!!Oe.currentTokenParent.type||Ze!==20:e.isPropertyDeclaration(Oe.currentTokenParent)?!Oe.currentTokenParent.initializer:Oe.currentTokenParent.kind!==245&&Oe.currentTokenParent.kind!==239&&Oe.currentTokenParent.kind!==237&&Ze!==22&&Ze!==20&&Ze!==39&&Ze!==40&&Ze!==43&&Ze!==13&&Ze!==27&&Ze!==225&&Ze!==15&&Ze!==14&&Ze!==24}function Hr(Oe){return e.positionIsASICandidate(Oe.currentTokenSpan.end,Oe.currentTokenParent,Oe.sourceFile)}function wr(Oe){return!e.isPropertyAccessExpression(Oe.contextNode)||!e.isNumericLiteral(Oe.contextNode.expression)||Oe.contextNode.expression.getText().indexOf(".")!==-1}})(e.formatting||(e.formatting={}))})(h||(h={}));var h;(function(e){(function(c){function P(X,A){return{options:X,getRules:s(),host:A}}c.getFormatContext=P;var T;function s(){return T===void 0&&(T=O(c.getAllRules())),T}function D(X){var A=0;return X&1&&(A|=28),X&2&&(A|=96),X&28&&(A|=28),X&96&&(A|=96),A}function O(X){var A=W(X);return function(y){var C=A[E(y.currentTokenSpan.kind,y.nextTokenSpan.kind)];if(C){for(var B=[],F=0,z=0,ge=C;z<ge.length;z++){var Pe=ge[z],fe=~D(F);Pe.action&fe&&e.every(Pe.context,function(_e){return _e(y)})&&(B.push(Pe),F|=Pe.action)}if(B.length)return B}}}function W(X){for(var A=new Array(te*te),y=new Array(A.length),C=0,B=X;C<B.length;C++)for(var F=B[C],z=F.leftTokenRange.isSpecific&&F.rightTokenRange.isSpecific,ge=0,Pe=F.leftTokenRange.tokens;ge<Pe.length;ge++)for(var fe=Pe[ge],_e=0,ne=F.rightTokenRange.tokens;_e<ne.length;_e++){var oe=ne[_e],w=E(fe,oe),re=A[w];re===void 0&&(re=A[w]=[]),Z(re,F.rule,z,y,w)}return A}function E(X,A){return e.Debug.assert(X<=162&&A<=162,"Must compute formatting context from tokens"),X*te+A}var v=5,S=31,te=162+1,Y;(function(X){X[X.StopRulesSpecific=0]="StopRulesSpecific",X[X.StopRulesAny=v*1]="StopRulesAny",X[X.ContextRulesSpecific=v*2]="ContextRulesSpecific",X[X.ContextRulesAny=v*3]="ContextRulesAny",X[X.NoContextRulesSpecific=v*4]="NoContextRulesSpecific",X[X.NoContextRulesAny=v*5]="NoContextRulesAny"})(Y||(Y={}));function Z(X,A,y,C,B){var F=A.action&3?y?Y.StopRulesSpecific:Y.StopRulesAny:A.context!==c.anyContext?y?Y.ContextRulesSpecific:Y.ContextRulesAny:y?Y.NoContextRulesSpecific:Y.NoContextRulesAny,z=C[B]||0;X.splice(ce(z,F),0,A),C[B]=k(z,F)}function ce(X,A){for(var y=0,C=0;C<=A;C+=v)y+=X&S,X>>=v;return y}function k(X,A){var y=(X>>A&S)+1;return e.Debug.assert((y&S)===y,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),X&~(S<<A)|y<<A}})(e.formatting||(e.formatting={}))})(h||(h={}));var h;(function(e){(function(c){function P(w,re,M){var U={pos:w,end:re,kind:M};return e.Debug.isDebugging&&Object.defineProperty(U,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(M)}}),U}c.createTextRangeWithKind=P;var T;(function(w){w[w.Unknown=-1]="Unknown"})(T||(T={}));function s(w,re,M){var U=re.getLineAndCharacterOfPosition(w).line;if(U===0)return[];for(var H=e.getEndLinePosition(U,re);e.isWhiteSpaceSingleLine(re.text.charCodeAt(H));)H--;e.isLineBreak(re.text.charCodeAt(H))&&H--;var q={pos:e.getStartPositionOfLine(U-1,re),end:H+1};return C(q,re,M,2)}c.formatOnEnter=s;function D(w,re,M){var U=S(w,26,re);return y(te(U),re,M,3)}c.formatOnSemicolon=D;function O(w,re,M){var U=S(w,18,re);if(!U)return[];var H=U.parent,q=te(H),R={pos:e.getLineStartPositionForPosition(q.getStart(re),re),end:w};return C(R,re,M,4)}c.formatOnOpeningCurly=O;function W(w,re,M){var U=S(w,19,re);return y(te(U),re,M,5)}c.formatOnClosingCurly=W;function E(w,re){var M={pos:0,end:w.text.length};return C(M,w,re,0)}c.formatDocument=E;function v(w,re,M,U){var H={pos:e.getLineStartPositionForPosition(w,M),end:re};return C(H,M,U,1)}c.formatSelection=v;function S(w,re,M){var U=e.findPrecedingToken(w,M);return U&&U.kind===re&&w===U.getEnd()?U:void 0}function te(w){for(var re=w;re&&re.parent&&re.parent.end===w.end&&!Y(re.parent,re);)re=re.parent;return re}function Y(w,re){switch(w.kind){case 260:case 261:return e.rangeContainsRange(w.members,re);case 264:var M=w.body;return!!M&&M.kind===265&&e.rangeContainsRange(M.statements,re);case 308:case 238:case 265:return e.rangeContainsRange(w.statements,re);case 295:return e.rangeContainsRange(w.block.statements,re)}return!1}function Z(w,re){return M(re);function M(U){var H=e.forEachChild(U,function(R){return e.startEndContainsRange(R.getStart(re),R.end,w)&&R});if(H){var q=M(H);if(q)return q}return U}}function ce(w,re){if(!w.length)return H;var M=w.filter(function(q){return e.rangeOverlapsWithStartEnd(re,q.start,q.start+q.length)}).sort(function(q,R){return q.start-R.start});if(!M.length)return H;var U=0;return function(q){for(;;){if(U>=M.length)return!1;var R=M[U];if(q.end<=R.start)return!1;if(e.startEndOverlapsWithStartEnd(q.pos,q.end,R.start,R.start+R.length))return!0;U++}};function H(){return!1}}function k(w,re,M){var U=w.getStart(M);if(U===re.pos&&w.end===re.end)return U;var H=e.findPrecedingToken(re.pos,M);return!H||H.end>=re.pos?w.pos:H.end}function X(w,re,M){for(var U=-1,H;w;){var q=M.getLineAndCharacterOfPosition(w.getStart(M)).line;if(U!==-1&&q!==U)break;if(c.SmartIndenter.shouldIndentChildNode(re,w,H,M))return re.indentSize;U=q,H=w,w=w.parent}return 0}function A(w,re,M,U,H,q){var R={pos:w.pos,end:w.end};return c.getFormattingScanner(re.text,M,R.pos,R.end,function(K){return B(R,w,U,H,K,q,1,function(I){return!1},re)})}c.formatNodeGivenIndentation=A;function y(w,re,M,U){if(!w)return[];var H={pos:e.getLineStartPositionForPosition(w.getStart(re),re),end:w.end};return C(H,re,M,U)}function C(w,re,M,U){var H=Z(w,re);return c.getFormattingScanner(re.text,re.languageVariant,k(H,w,re),w.end,function(q){return B(w,H,c.SmartIndenter.getIndentationForNode(H,w,re,M.options),X(H,M.options,re),q,M,U,ce(re.parseDiagnostics,w),re)})}function B(w,re,M,U,H,q,R,K,I){var he,le=q.options,ee=q.getRules,J=q.host,de=new c.FormattingContext(I,R,le),De,N,b,Q,G,ae=-1,Te=[];if(H.advance(),H.isOnToken()){var Ne=I.getLineAndCharacterOfPosition(re.getStart(I)).line,we=Ne;e.hasDecorators(re)&&(we=I.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(re,I)).line),qe(re,re,Ne,we,M,U)}if(!H.isOnToken()){var nr=c.SmartIndenter.nodeWillIndentChild(le,re,void 0,I,!1)?M+le.indentSize:M,tr=H.getCurrentLeadingTrivia();tr&&(xe(tr,nr,!1,function(zr){return ue(zr,I.getLineAndCharacterOfPosition(zr.pos),re,re,void 0)}),le.trimTrailingWhitespace!==!1&&Ze(tr))}if(N&&H.getStartPos()>=w.end){var me=H.isOnEOF()?H.readEOFTokenRange():H.isOnToken()?H.readTokenInfo(re).token:void 0;if(me&&me.pos===De){var He=((he=e.findPrecedingToken(me.end,I,re))===null||he===void 0?void 0:he.parent)||b;Ue(me,I.getLineAndCharacterOfPosition(me.pos).line,He,N,Q,b,He,void 0)}}return Te;function rr(zr,Fr,_t,Ct,yt){if(e.rangeOverlapsWithStartEnd(Ct,zr,Fr)||e.rangeContainsStartEnd(Ct,zr,Fr)){if(yt!==-1)return yt}else{var Fe=I.getLineAndCharacterOfPosition(zr).line,vr=e.getLineStartPositionForPosition(zr,I),Le=c.SmartIndenter.findFirstNonWhitespaceColumn(vr,zr,I,le);if(Fe!==_t||zr===Le){var cr=c.SmartIndenter.getBaseIndentation(le);return cr>Le?cr:Le}}return-1}function je(zr,Fr,_t,Ct,yt,Fe){var vr=c.SmartIndenter.shouldIndentChildNode(le,zr)?le.indentSize:0;return Fe===Fr?{indentation:Fr===G?ae:yt.getIndentation(),delta:Math.min(le.indentSize,yt.getDelta(zr)+vr)}:_t===-1?zr.kind===20&&Fr===G?{indentation:ae,delta:yt.getDelta(zr)}:c.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(Ct,zr,Fr,I)||c.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(Ct,zr,Fr,I)||c.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(Ct,zr,Fr,I)?{indentation:yt.getIndentation(),delta:vr}:{indentation:yt.getIndentation()+yt.getDelta(zr),delta:vr}:{indentation:_t,delta:vr}}function Ce(zr){if(e.canHaveModifiers(zr)){var Fr=e.find(zr.modifiers,e.isModifier,e.findIndex(zr.modifiers,e.isDecorator));if(Fr)return Fr.kind}switch(zr.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(zr.asteriskToken)return 41;case 169:case 166:var _t=e.getNameOfDeclaration(zr);if(_t)return _t.kind}}function Ae(zr,Fr,_t,Ct){return{getIndentationForComment:function(vr,Le,cr){switch(vr){case 19:case 23:case 21:return _t+Fe(cr)}return Le!==-1?Le:_t},getIndentationForToken:function(vr,Le,cr,$r){return!$r&&yt(vr,Le,cr)?_t+Fe(cr):_t},getIndentation:function(){return _t},getDelta:Fe,recomputeIndentation:function(vr,Le){c.SmartIndenter.shouldIndentChildNode(le,Le,zr,I)&&(_t+=vr?le.indentSize:-le.indentSize,Ct=c.SmartIndenter.shouldIndentChildNode(le,zr)?le.indentSize:0)}};function yt(vr,Le,cr){switch(Le){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(cr.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(cr.kind!==197)return!1;break}return Fr!==vr&&!(e.hasDecorators(zr)&&Le===Ce(zr))}function Fe(vr){return c.SmartIndenter.nodeWillIndentChild(le,zr,vr,I,!0)?Ct:0}}function qe(zr,Fr,_t,Ct,yt,Fe){if(!e.rangeOverlapsWithStartEnd(w,zr.getStart(I),zr.getEnd()))return;var vr=Ae(zr,_t,yt,Fe),Le=Fr;for(e.forEachChild(zr,function(Br){$r(Br,-1,zr,vr,_t,Ct,!1)},function(Br){Re(Br,zr,_t,vr)});H.isOnToken()&&H.getStartPos()<w.end;){var cr=H.readTokenInfo(zr);if(cr.token.end>Math.min(zr.end,w.end))break;xr(cr,zr,vr,zr)}function $r(Br,Qr,ct,ft,Dt,Me,Ke,Vr){if(e.Debug.assert(!e.nodeIsSynthesized(Br)),e.nodeIsMissing(Br))return Qr;var Yr=Br.getStart(I),Nt=I.getLineAndCharacterOfPosition(Yr).line,Wt=Nt;e.hasDecorators(Br)&&(Wt=I.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(Br,I)).line);var sn=-1;if(Ke&&e.rangeContainsRange(w,ct)&&(sn=rr(Yr,Br.end,Dt,w,Qr),sn!==-1&&(Qr=sn)),!e.rangeOverlapsWithStartEnd(w,Br.pos,Br.end))return Br.end<w.pos&&H.skipToEndOf(Br),Qr;if(Br.getFullWidth()===0)return Qr;for(;H.isOnToken()&&H.getStartPos()<w.end;){var en=H.readTokenInfo(zr);if(en.token.end>w.end)return Qr;if(en.token.end>Yr){en.token.pos>Yr&&H.skipToStartOf(Br);break}xr(en,zr,ft,zr)}if(!H.isOnToken()||H.getStartPos()>=w.end)return Qr;if(e.isToken(Br)){var en=H.readTokenInfo(Br);if(Br.kind!==11)return e.Debug.assert(en.token.end===Br.end,"Token end is child end"),xr(en,zr,ft,Br),Qr}var Ir=Br.kind===167?Nt:Me,Jr=je(Br,Nt,sn,zr,ft,Ir);return qe(Br,Le,Nt,Wt,Jr.indentation,Jr.delta),Le=zr,Vr&&ct.kind===206&&Qr===-1&&(Qr=Jr.indentation),Qr}function Re(Br,Qr,ct,ft){e.Debug.assert(e.isNodeArray(Br)),e.Debug.assert(!e.nodeIsSynthesized(Br));var Dt=ge(Qr,Br),Me=ft,Ke=ct;if(!e.rangeOverlapsWithStartEnd(w,Br.pos,Br.end)){Br.end<w.pos&&H.skipToEndOf(Br);return}if(Dt!==0)for(;H.isOnToken()&&H.getStartPos()<w.end;){var Vr=H.readTokenInfo(Qr);if(Vr.token.end>Br.pos)break;if(Vr.token.kind===Dt){Ke=I.getLineAndCharacterOfPosition(Vr.token.pos).line,xr(Vr,Qr,ft,Qr);var Yr=void 0;if(ae!==-1)Yr=ae;else{var Nt=e.getLineStartPositionForPosition(Vr.token.pos,I);Yr=c.SmartIndenter.findFirstNonWhitespaceColumn(Nt,Vr.token.pos,I,le)}Me=Ae(Qr,ct,Yr,le.indentSize)}else xr(Vr,Qr,ft,Qr)}for(var Wt=-1,sn=0;sn<Br.length;sn++){var en=Br[sn];Wt=$r(en,Wt,zr,Me,Ke,Ke,!0,sn===0)}var Ir=Pe(Dt);if(Ir!==0&&H.isOnToken()&&H.getStartPos()<w.end){var Vr=H.readTokenInfo(Qr);Vr.token.kind===27&&(xr(Vr,Qr,Me,Qr),Vr=H.isOnToken()?H.readTokenInfo(Qr):void 0),Vr&&Vr.token.kind===Ir&&e.rangeContainsRange(Qr,Vr.token)&&xr(Vr,Qr,Me,Qr,!0)}}function xr(Br,Qr,ct,ft,Dt){e.Debug.assert(e.rangeContainsRange(Qr,Br.token));var Me=H.lastTrailingTriviaWasNewLine(),Ke=!1;Br.leadingTrivia&&L(Br.leadingTrivia,Qr,Le,ct);var Vr=0,Yr=e.rangeContainsRange(w,Br.token),Nt=I.getLineAndCharacterOfPosition(Br.token.pos);if(Yr){var Wt=K(Br.token),sn=N;if(Vr=ue(Br.token,Nt,Qr,Le,ct),!Wt)if(Vr===0){var en=sn&&I.getLineAndCharacterOfPosition(sn.end).line;Ke=Me&&Nt.line!==en}else Ke=Vr===1}if(Br.trailingTrivia&&(De=e.last(Br.trailingTrivia).end,L(Br.trailingTrivia,Qr,Le,ct)),Ke){var Ir=Yr&&!K(Br.token)?ct.getIndentationForToken(Nt.line,Br.token.kind,ft,!!Dt):-1,Jr=!0;if(Br.leadingTrivia){var ye=ct.getIndentationForComment(Br.token.kind,Ir,ft);Jr=xe(Br.leadingTrivia,ye,Jr,function(Ie){return Je(Ie.pos,ye,!1)})}Ir!==-1&&Jr&&(Je(Br.token.pos,Ir,Vr===1),G=Nt.line,ae=Ir)}H.advance(),Le=Qr}}function xe(zr,Fr,_t,Ct){for(var yt=0,Fe=zr;yt<Fe.length;yt++){var vr=Fe[yt],Le=e.rangeContainsRange(w,vr);switch(vr.kind){case 3:Le&&Hr(vr,Fr,!_t),_t=!1;break;case 2:_t&&Le&&Ct(vr),_t=!1;break;case 4:_t=!0;break}}return _t}function L(zr,Fr,_t,Ct){for(var yt=0,Fe=zr;yt<Fe.length;yt++){var vr=Fe[yt];if(e.isComment(vr.kind)&&e.rangeContainsRange(w,vr)){var Le=I.getLineAndCharacterOfPosition(vr.pos);ue(vr,Le,Fr,_t,Ct)}}}function ue(zr,Fr,_t,Ct,yt){var Fe=K(zr),vr=0;if(!Fe)if(N)vr=Ue(zr,Fr.line,_t,N,Q,b,Ct,yt);else{var Le=I.getLineAndCharacterOfPosition(w.pos);wr(Le.line,Fr.line)}return N=zr,De=zr.end,b=_t,Q=Fr.line,vr}function Ue(zr,Fr,_t,Ct,yt,Fe,vr,Le){de.updateContext(Ct,Fe,zr,_t,vr);var cr=ee(de),$r=de.options.trimTrailingWhitespace!==!1,Re=0;return cr?e.forEachRight(cr,function(xr){if(Re=Rr(xr,Ct,yt,zr,Fr),Le)switch(Re){case 2:_t.getStart(I)===zr.pos&&Le.recomputeIndentation(!1,vr);break;case 1:_t.getStart(I)===zr.pos&&Le.recomputeIndentation(!0,vr);break;default:e.Debug.assert(Re===0)}$r=$r&&!(xr.action&16)&&xr.flags!==1}):$r=$r&&zr.kind!==1,Fr!==yt&&$r&&wr(yt,Fr,Ct),Re}function Je(zr,Fr,_t){var Ct=oe(Fr,le);if(_t)or(zr,0,Ct);else{var yt=I.getLineAndCharacterOfPosition(zr),Fe=e.getStartPositionOfLine(yt.line,I);(Fr!==lr(Fe,yt.character)||mr(Ct,Fe))&&or(Fe,yt.character,Ct)}}function lr(zr,Fr){for(var _t=0,Ct=0;Ct<Fr;Ct++)I.text.charCodeAt(zr+Ct)===9?_t+=le.tabSize-_t%le.tabSize:_t++;return _t}function mr(zr,Fr){return zr!==I.text.substr(Fr,zr.length)}function Hr(zr,Fr,_t,Ct){Ct===void 0&&(Ct=!0);var yt=I.getLineAndCharacterOfPosition(zr.pos).line,Fe=I.getLineAndCharacterOfPosition(zr.end).line;if(yt===Fe){_t||Je(zr.pos,Fr,!1);return}for(var vr=[],Le=zr.pos,cr=yt;cr<Fe;cr++){var $r=e.getEndLinePosition(cr,I);vr.push({pos:Le,end:$r}),Le=e.getStartPositionOfLine(cr+1,I)}if(Ct&&vr.push({pos:Le,end:zr.end}),vr.length!==0){var Re=e.getStartPositionOfLine(yt,I),xr=c.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Re,vr[0].pos,I,le),Br=0;_t&&(Br=1,yt++);for(var Qr=Fr-xr.column,ct=Br;ct<vr.length;ct++,yt++){var ft=e.getStartPositionOfLine(yt,I),Dt=ct===0?xr:c.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(vr[ct].pos,vr[ct].end,I,le),Me=Dt.column+Qr;if(Me>0){var Ke=oe(Me,le);or(ft,Dt.character,Ke)}else ut(ft,Dt.character)}}}function wr(zr,Fr,_t){for(var Ct=zr;Ct<Fr;Ct++){var yt=e.getStartPositionOfLine(Ct,I),Fe=e.getEndLinePosition(Ct,I);if(!(_t&&(e.isComment(_t.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(_t.kind))&&_t.pos<=Fe&&_t.end>Fe)){var vr=Oe(yt,Fe);vr!==-1&&(e.Debug.assert(vr===yt||!e.isWhiteSpaceSingleLine(I.text.charCodeAt(vr-1))),ut(vr,Fe+1-vr))}}}function Oe(zr,Fr){for(var _t=Fr;_t>=zr&&e.isWhiteSpaceSingleLine(I.text.charCodeAt(_t));)_t--;return _t!==Fr?_t+1:-1}function Ze(zr){for(var Fr=N?N.end:w.pos,_t=0,Ct=zr;_t<Ct.length;_t++){var yt=Ct[_t];e.isComment(yt.kind)&&(Fr<yt.pos&&tt(Fr,yt.pos-1,N),Fr=yt.end+1)}Fr<w.end&&tt(Fr,w.end,N)}function tt(zr,Fr,_t){var Ct=I.getLineAndCharacterOfPosition(zr).line,yt=I.getLineAndCharacterOfPosition(Fr).line;wr(Ct,yt+1,_t)}function ut(zr,Fr){Fr&&Te.push(e.createTextChangeFromStartLength(zr,Fr,""))}function or(zr,Fr,_t){(Fr||_t)&&Te.push(e.createTextChangeFromStartLength(zr,Fr,_t))}function qr(zr,Fr){Fr&&Te.push(e.createTextChangeFromStartLength(zr,0,Fr))}function Rr(zr,Fr,_t,Ct,yt){var Fe=yt!==_t;switch(zr.action){case 1:return 0;case 16:if(Fr.end!==Ct.pos)return ut(Fr.end,Ct.pos-Fr.end),Fe?2:0;break;case 32:ut(Fr.pos,Fr.end-Fr.pos);break;case 8:if(zr.flags!==1&&_t!==yt)return 0;var vr=yt-_t;if(vr!==1)return or(Fr.end,Ct.pos-Fr.end,e.getNewLineOrDefaultFromHost(J,le)),Fe?0:1;break;case 4:if(zr.flags!==1&&_t!==yt)return 0;var Le=Ct.pos-Fr.end;if(Le!==1||I.text.charCodeAt(Fr.end)!==32)return or(Fr.end,Ct.pos-Fr.end," "),Fe?2:0;break;case 64:qr(Fr.end,";")}return 0}}var F;(function(w){w[w.None=0]="None",w[w.LineAdded=1]="LineAdded",w[w.LineRemoved=2]="LineRemoved"})(F||(F={}));function z(w,re,M,U){U===void 0&&(U=e.getTokenAtPosition(w,re));var H=e.findAncestor(U,e.isJSDoc);H&&(U=H.parent);var q=U.getStart(w);if(!(q<=re&&re<U.getEnd())){M=M===null?void 0:M===void 0?e.findPrecedingToken(re,w):M;var R=M&&e.getTrailingCommentRanges(w.text,M.end),K=e.getLeadingCommentRangesOfNode(U,w),I=e.concatenate(R,K);return I&&e.find(I,function(he){return e.rangeContainsPositionExclusive(he,re)||re===he.end&&(he.kind===2||re===w.getFullWidth())})}}c.getRangeOfEnclosingComment=z;function ge(w,re){switch(w.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(w.typeParameters===re)return 29;if(w.parameters===re)return 20;break;case 210:case 211:if(w.typeArguments===re)return 29;if(w.arguments===re)return 20;break;case 260:case 228:case 261:case 262:if(w.typeParameters===re)return 29;break;case 180:case 212:case 183:case 230:case 202:if(w.typeArguments===re)return 29;break;case 184:return 18}return 0}function Pe(w){switch(w){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var fe,_e,ne;function oe(w,re){var M=!fe||fe.tabSize!==re.tabSize||fe.indentSize!==re.indentSize;if(M&&(fe={tabSize:re.tabSize,indentSize:re.indentSize},_e=ne=void 0),re.convertTabsToSpaces){var R=void 0,K=Math.floor(w/re.indentSize),I=w%re.indentSize;return ne||(ne=[]),ne[K]===void 0?(R=e.repeatString(" ",re.indentSize*K),ne[K]=R):R=ne[K],I?R+e.repeatString(" ",I):R}else{var U=Math.floor(w/re.tabSize),H=w-U*re.tabSize,q=void 0;return _e||(_e=[]),_e[U]===void 0?_e[U]=q=e.repeatString(" ",U):q=_e[U],H?q+e.repeatString(" ",H):q}}c.getIndentationString=oe})(e.formatting||(e.formatting={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T;(function(R){R[R.Unknown=-1]="Unknown"})(T||(T={}));function s(R,K,I,he){if(he===void 0&&(he=!1),R>K.text.length)return v(I);if(I.indentStyle===e.IndentStyle.None)return 0;var le=e.findPrecedingToken(R,K,void 0,!0),ee=c.getRangeOfEnclosingComment(K,R,le||null);if(ee&&ee.kind===3)return D(K,R,I,ee);if(!le)return v(I);var J=e.isStringOrRegularExpressionOrTemplateLiteral(le.kind);if(J&&le.getStart(K)<=R&&R<le.end)return 0;var de=K.getLineAndCharacterOfPosition(R).line,De=e.getTokenAtPosition(K,R),N=De.kind===18&&De.parent.kind===207;if(I.indentStyle===e.IndentStyle.Block||N)return O(K,R,I);if(le.kind===27&&le.parent.kind!==223){var b=Y(le,K,I);if(b!==-1)return b}var Q=z(R,le.parent,K);if(Q&&!e.rangeContainsRange(Q,le)){var G=[215,216].indexOf(De.parent.kind)!==-1,ae=G?0:I.indentSize;return fe(Q,K,I)+ae}return W(K,R,le,de,he,I)}P.getIndentation=s;function D(R,K,I,he){var le=e.getLineAndCharacterOfPosition(R,K).line-1,ee=e.getLineAndCharacterOfPosition(R,he.pos).line;if(e.Debug.assert(ee>=0),le<=ee)return re(e.getStartPositionOfLine(ee,R),K,R,I);var J=e.getStartPositionOfLine(le,R),de=w(J,K,R,I),De=de.column,N=de.character;if(De===0)return De;var b=R.text.charCodeAt(J+N);return b===42?De-1:De}function O(R,K,I){for(var he=K;he>0;){var le=R.text.charCodeAt(he);if(!e.isWhiteSpaceLike(le))break;he--}var ee=e.getLineStartPositionForPosition(he,R);return re(ee,he,R,I)}function W(R,K,I,he,le,ee){for(var J,de=I;de;){if(e.positionBelongsToNode(de,K,R)&&H(ee,de,J,R,!0)){var De=X(de,R),N=k(I,de,he,R),b=N!==0?le&&N===2?ee.indentSize:0:he!==De.line?ee.indentSize:0;return S(de,De,void 0,b,R,!0,ee)}var Q=_e(de,R,ee,!0);if(Q!==-1)return Q;J=de,de=de.parent}return v(ee)}function E(R,K,I,he){var le=I.getLineAndCharacterOfPosition(R.getStart(I));return S(R,le,K,0,I,!1,he)}P.getIndentationForNode=E;function v(R){return R.baseIndentSize||0}P.getBaseIndentation=v;function S(R,K,I,he,le,ee,J){for(var de,De=R.parent;De;){var N=!0;if(I){var b=R.getStart(le);N=b<I.pos||b>I.end}var Q=te(De,R,le),G=Q.line===K.line||y(De,R,K.line,le);if(N){var ae=(de=F(R,le))===null||de===void 0?void 0:de[0],Te=!!ae&&X(ae,le).line>Q.line,Ne=_e(R,le,J,Te);if(Ne!==-1||(Ne=Z(R,De,K,G,le,J),Ne!==-1))return Ne+he}H(J,De,R,le,ee)&&!G&&(he+=J.indentSize);var we=A(De,R,K.line,le);R=De,De=R.parent,K=we?le.getLineAndCharacterOfPosition(R.getStart(le)):Q}return he+v(J)}function te(R,K,I){var he=F(K,I),le=he?he.pos:R.getStart(I);return I.getLineAndCharacterOfPosition(le)}function Y(R,K,I){var he=e.findListItemInfo(R);return he&&he.listItemIndex>0?ne(he.list.getChildren(),he.listItemIndex-1,K,I):-1}function Z(R,K,I,he,le,ee){var J=(e.isDeclaration(R)||e.isStatementButNotDeclaration(R))&&(K.kind===308||!he);return J?oe(I,le,ee):-1}var ce;(function(R){R[R.Unknown=0]="Unknown",R[R.OpenBrace=1]="OpenBrace",R[R.CloseBrace=2]="CloseBrace"})(ce||(ce={}));function k(R,K,I,he){var le=e.findNextToken(R,K,he);if(!le)return 0;if(le.kind===18)return 1;if(le.kind===19){var ee=X(le,he).line;return I===ee?2:0}return 0}function X(R,K){return K.getLineAndCharacterOfPosition(R.getStart(K))}function A(R,K,I,he){if(!(e.isCallExpression(R)&&e.contains(R.arguments,K)))return!1;var le=R.expression.getEnd(),ee=e.getLineAndCharacterOfPosition(he,le).line;return ee===I}P.isArgumentAndStartLineOverlapsExpressionBeingCalled=A;function y(R,K,I,he){if(R.kind===242&&R.elseStatement===K){var le=e.findChildOfKind(R,91,he);e.Debug.assert(le!==void 0);var ee=X(le,he).line;return ee===I}return!1}P.childStartsOnTheSameLineWithElseInIfStatement=y;function C(R,K,I,he){if(e.isConditionalExpression(R)&&(K===R.whenTrue||K===R.whenFalse)){var le=e.getLineAndCharacterOfPosition(he,R.condition.end).line;if(K===R.whenTrue)return I===le;var ee=X(R.whenTrue,he).line,J=e.getLineAndCharacterOfPosition(he,R.whenTrue.end).line;return le===ee&&J===I}return!1}P.childIsUnindentedBranchOfConditionalExpression=C;function B(R,K,I,he){if(e.isCallOrNewExpression(R)){if(!R.arguments)return!1;var le=e.find(R.arguments,function(De){return De.pos===K.pos});if(!le)return!1;var ee=R.arguments.indexOf(le);if(ee===0)return!1;var J=R.arguments[ee-1],de=e.getLineAndCharacterOfPosition(he,J.getEnd()).line;if(I===de)return!0}return!1}P.argumentStartsOnSameLineAsPreviousArgument=B;function F(R,K){return R.parent&&ge(R.getStart(K),R.getEnd(),R.parent,K)}P.getContainingList=F;function z(R,K,I){return K&&ge(R,R,K,I)}function ge(R,K,I,he){switch(I.kind){case 180:return le(I.typeArguments);case 207:return le(I.properties);case 206:return le(I.elements);case 184:return le(I.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return le(I.typeParameters)||le(I.parameters);case 174:return le(I.parameters);case 260:case 228:case 261:case 262:case 347:return le(I.typeParameters);case 211:case 210:return le(I.typeArguments)||le(I.arguments);case 258:return le(I.declarations);case 272:case 276:return le(I.elements);case 203:case 204:return le(I.elements)}function le(ee){return ee&&e.rangeContainsStartEnd(Pe(I,ee,he),R,K)?ee:void 0}}function Pe(R,K,I){for(var he=R.getChildren(I),le=1;le<he.length-1;le++)if(he[le].pos===K.pos&&he[le].end===K.end)return{pos:he[le-1].end,end:he[le+1].getStart(I)};return K}function fe(R,K,I){return R?oe(K.getLineAndCharacterOfPosition(R.pos),K,I):-1}function _e(R,K,I,he){if(R.parent&&R.parent.kind===258)return-1;var le=F(R,K);if(le){var ee=le.indexOf(R);if(ee!==-1){var J=ne(le,ee,K,I);if(J!==-1)return J}return fe(le,K,I)+(he?I.indentSize:0)}return-1}function ne(R,K,I,he){e.Debug.assert(K>=0&&K<R.length);for(var le=R[K],ee=X(le,I),J=K-1;J>=0;J--)if(R[J].kind!==27){var de=I.getLineAndCharacterOfPosition(R[J].end).line;if(de!==ee.line)return oe(ee,I,he);ee=X(R[J],I)}return-1}function oe(R,K,I){var he=K.getPositionOfLineAndCharacter(R.line,0);return re(he,he+R.character,K,I)}function w(R,K,I,he){for(var le=0,ee=0,J=R;J<K;J++){var de=I.text.charCodeAt(J);if(!e.isWhiteSpaceSingleLine(de))break;de===9?ee+=he.tabSize+ee%he.tabSize:ee++,le++}return{column:ee,character:le}}P.findFirstNonWhitespaceCharacterAndColumn=w;function re(R,K,I,he){return w(R,K,I,he).column}P.findFirstNonWhitespaceColumn=re;function M(R,K,I,he,le){var ee=I?I.kind:0;switch(K.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!R.indentMultiLineObjectLiteralBeginningOnBlankLine&&he&&ee===207)return q(he,I);if(K.kind===223&&he&&I&&ee===281){var J=he.getLineAndCharacterOfPosition(e.skipTrivia(he.text,K.pos)).line,de=he.getLineAndCharacterOfPosition(e.skipTrivia(he.text,I.pos)).line;return J!==de}if(K.kind!==223)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return ee!==238;case 216:return he&&ee===214?q(he,I):ee!==238;case 275:return ee!==276;case 269:return ee!==270||!!I.namedBindings&&I.namedBindings.kind!==272;case 281:return ee!==284;case 285:return ee!==287;case 190:case 189:if(ee===184||ee===186)return!1;break}return le}P.nodeWillIndentChild=M;function U(R,K){switch(R){case 250:case 254:case 248:case 249:return K.kind!==238;default:return!1}}function H(R,K,I,he,le){return le===void 0&&(le=!1),M(R,K,I,he,!1)&&!(le&&I&&U(I.kind,K))}P.shouldIndentChildNode=H;function q(R,K){var I=e.skipTrivia(R.text,K.pos),he=R.getLineAndCharacterOfPosition(I).line,le=R.getLineAndCharacterOfPosition(K.end).line;return he===le}})(c.SmartIndenter||(c.SmartIndenter={}))})(e.formatting||(e.formatting={}))})(h||(h={}));var h;(function(e){(function(c){function P(le){var ee=le.__pos;return e.Debug.assert(typeof ee=="number"),ee}function T(le,ee){e.Debug.assert(typeof ee=="number"),le.__pos=ee}function s(le){var ee=le.__end;return e.Debug.assert(typeof ee=="number"),ee}function D(le,ee){e.Debug.assert(typeof ee=="number"),le.__end=ee}var O;(function(le){le[le.Exclude=0]="Exclude",le[le.IncludeAll=1]="IncludeAll",le[le.JSDoc=2]="JSDoc",le[le.StartLine=3]="StartLine"})(O=c.LeadingTriviaOption||(c.LeadingTriviaOption={}));var W;(function(le){le[le.Exclude=0]="Exclude",le[le.ExcludeWhitespace=1]="ExcludeWhitespace",le[le.Include=2]="Include"})(W=c.TrailingTriviaOption||(c.TrailingTriviaOption={}));function E(le,ee){return e.skipTrivia(le,ee,!1,!0)}function v(le,ee){for(var J=ee;J<le.length;){var de=le.charCodeAt(J);if(e.isWhiteSpaceSingleLine(de)){J++;continue}return de===47}return!1}var S={leadingTriviaOption:O.Exclude,trailingTriviaOption:W.Exclude},te;(function(le){le[le.Remove=0]="Remove",le[le.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",le[le.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",le[le.Text=3]="Text"})(te||(te={}));function Y(le,ee,J,de){return{pos:Z(le,ee,de),end:k(le,J,de)}}function Z(le,ee,J,de){var De,N;de===void 0&&(de=!1);var b=J.leadingTriviaOption;if(b===O.Exclude)return ee.getStart(le);if(b===O.StartLine){var Q=ee.getStart(le),G=e.getLineStartPositionForPosition(Q,le);return e.rangeContainsPosition(ee,G)?G:Q}if(b===O.JSDoc){var ae=e.getJSDocCommentRanges(ee,le.text);if(ae!=null&&ae.length)return e.getLineStartPositionForPosition(ae[0].pos,le)}var Te=ee.getFullStart(),Ne=ee.getStart(le);if(Te===Ne)return Ne;var we=e.getLineStartPositionForPosition(Te,le),nr=e.getLineStartPositionForPosition(Ne,le);if(nr===we)return b===O.IncludeAll?Te:Ne;if(de){var tr=((De=e.getLeadingCommentRanges(le.text,Te))===null||De===void 0?void 0:De[0])||((N=e.getTrailingCommentRanges(le.text,Te))===null||N===void 0?void 0:N[0]);if(tr)return e.skipTrivia(le.text,tr.end,!0,!0)}var me=Te>0?1:0,He=e.getStartPositionOfLine(e.getLineOfLocalPosition(le,we)+me,le);return He=E(le.text,He),e.getStartPositionOfLine(e.getLineOfLocalPosition(le,He),le)}function ce(le,ee,J){var de=ee.end,De=J.trailingTriviaOption;if(De===W.Include){var N=e.getTrailingCommentRanges(le.text,de);if(N)for(var b=e.getLineOfLocalPosition(le,ee.end),Q=0,G=N;Q<G.length;Q++){var ae=G[Q];if(ae.kind===2||e.getLineOfLocalPosition(le,ae.pos)>b)break;var Te=e.getLineOfLocalPosition(le,ae.end);if(Te>b)return e.skipTrivia(le.text,ae.end,!0,!0)}}}function k(le,ee,J){var de,De=ee.end,N=J.trailingTriviaOption;if(N===W.Exclude)return De;if(N===W.ExcludeWhitespace){var b=e.concatenate(e.getTrailingCommentRanges(le.text,De),e.getLeadingCommentRanges(le.text,De)),Q=(de=b==null?void 0:b[b.length-1])===null||de===void 0?void 0:de.end;return Q||De}var G=ce(le,ee,J);if(G)return G;var ae=e.skipTrivia(le.text,De,!0);return ae!==De&&(N===W.Include||e.isLineBreak(le.text.charCodeAt(ae-1)))?ae:De}function X(le,ee){return!!ee&&!!le.parent&&(ee.kind===27||ee.kind===26&&le.parent.kind===207)}function A(le){return e.isFunctionExpression(le)||e.isFunctionDeclaration(le)}c.isThisTypeAnnotatable=A;var y=function(){function le(ee,J){this.newLineCharacter=ee,this.formatContext=J,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return le.fromContext=function(ee){return new le(e.getNewLineOrDefaultFromHost(ee.host,ee.formatContext.options),ee.formatContext)},le.with=function(ee,J){var de=le.fromContext(ee);return J(de),de.getChanges()},le.prototype.pushRaw=function(ee,J){e.Debug.assertEqual(ee.fileName,J.fileName);for(var de=0,De=J.textChanges;de<De.length;de++){var N=De[de];this.changes.push({kind:te.Text,sourceFile:ee,text:N.newText,range:e.createTextRangeFromSpan(N.span)})}},le.prototype.deleteRange=function(ee,J){this.changes.push({kind:te.Remove,sourceFile:ee,range:J})},le.prototype.delete=function(ee,J){this.deletedNodes.push({sourceFile:ee,node:J})},le.prototype.deleteNode=function(ee,J,de){de===void 0&&(de={leadingTriviaOption:O.IncludeAll}),this.deleteRange(ee,Y(ee,J,J,de))},le.prototype.deleteNodes=function(ee,J,de,De){de===void 0&&(de={leadingTriviaOption:O.IncludeAll});for(var N=0,b=J;N<b.length;N++){var Q=b[N],G=Z(ee,Q,de,De),ae=k(ee,Q,de);this.deleteRange(ee,{pos:G,end:ae}),De=!!ce(ee,Q,de)}},le.prototype.deleteModifier=function(ee,J){this.deleteRange(ee,{pos:J.getStart(ee),end:e.skipTrivia(ee.text,J.end,!0)})},le.prototype.deleteNodeRange=function(ee,J,de,De){De===void 0&&(De={leadingTriviaOption:O.IncludeAll});var N=Z(ee,J,De),b=k(ee,de,De);this.deleteRange(ee,{pos:N,end:b})},le.prototype.deleteNodeRangeExcludingEnd=function(ee,J,de,De){De===void 0&&(De={leadingTriviaOption:O.IncludeAll});var N=Z(ee,J,De),b=de===void 0?ee.text.length:Z(ee,de,De);this.deleteRange(ee,{pos:N,end:b})},le.prototype.replaceRange=function(ee,J,de,De){De===void 0&&(De={}),this.changes.push({kind:te.ReplaceWithSingleNode,sourceFile:ee,range:J,options:De,node:de})},le.prototype.replaceNode=function(ee,J,de,De){De===void 0&&(De=S),this.replaceRange(ee,Y(ee,J,J,De),de,De)},le.prototype.replaceNodeRange=function(ee,J,de,De,N){N===void 0&&(N=S),this.replaceRange(ee,Y(ee,J,de,N),De,N)},le.prototype.replaceRangeWithNodes=function(ee,J,de,De){De===void 0&&(De={}),this.changes.push({kind:te.ReplaceWithMultipleNodes,sourceFile:ee,range:J,options:De,nodes:de})},le.prototype.replaceNodeWithNodes=function(ee,J,de,De){De===void 0&&(De=S),this.replaceRangeWithNodes(ee,Y(ee,J,J,De),de,De)},le.prototype.replaceNodeWithText=function(ee,J,de){this.replaceRangeWithText(ee,Y(ee,J,J,S),de)},le.prototype.replaceNodeRangeWithNodes=function(ee,J,de,De,N){N===void 0&&(N=S),this.replaceRangeWithNodes(ee,Y(ee,J,de,N),De,N)},le.prototype.nodeHasTrailingComment=function(ee,J,de){return de===void 0&&(de=S),!!ce(ee,J,de)},le.prototype.nextCommaToken=function(ee,J){var de=e.findNextToken(J,J.parent,ee);return de&&de.kind===27?de:void 0},le.prototype.replacePropertyAssignment=function(ee,J,de){var De=this.nextCommaToken(ee,J)?"":","+this.newLineCharacter;this.replaceNode(ee,J,de,{suffix:De})},le.prototype.insertNodeAt=function(ee,J,de,De){De===void 0&&(De={}),this.replaceRange(ee,e.createRange(J),de,De)},le.prototype.insertNodesAt=function(ee,J,de,De){De===void 0&&(De={}),this.replaceRangeWithNodes(ee,e.createRange(J),de,De)},le.prototype.insertNodeAtTopOfFile=function(ee,J,de){this.insertAtTopOfFile(ee,J,de)},le.prototype.insertNodesAtTopOfFile=function(ee,J,de){this.insertAtTopOfFile(ee,J,de)},le.prototype.insertAtTopOfFile=function(ee,J,de){var De=H(ee),N={prefix:De===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(ee.text.charCodeAt(De))?"":this.newLineCharacter)+(de?this.newLineCharacter:"")};e.isArray(J)?this.insertNodesAt(ee,De,J,N):this.insertNodeAt(ee,De,J,N)},le.prototype.insertFirstParameter=function(ee,J,de){var De=e.firstOrUndefined(J);De?this.insertNodeBefore(ee,De,de):this.insertNodeAt(ee,J.pos,de)},le.prototype.insertNodeBefore=function(ee,J,de,De,N){De===void 0&&(De=!1),N===void 0&&(N={}),this.insertNodeAt(ee,Z(ee,J,N),de,this.getOptionsForInsertNodeBefore(J,de,De))},le.prototype.insertModifierAt=function(ee,J,de,De){De===void 0&&(De={}),this.insertNodeAt(ee,J,e.factory.createToken(de),De)},le.prototype.insertModifierBefore=function(ee,J,de){return this.insertModifierAt(ee,de.getStart(ee),J,{suffix:" "})},le.prototype.insertCommentBeforeLine=function(ee,J,de,De){var N=e.getStartPositionOfLine(J,ee),b=e.getFirstNonSpaceCharacterPosition(ee.text,N),Q=q(ee,b),G=e.getTouchingToken(ee,Q?b:de),ae=ee.text.slice(N,b),Te="".concat(Q?"":this.newLineCharacter,"//").concat(De).concat(this.newLineCharacter).concat(ae);this.insertText(ee,G.getStart(ee),Te)},le.prototype.insertJsdocCommentBefore=function(ee,J,de){var De=J.getStart(ee);if(J.jsDoc)for(var N=0,b=J.jsDoc;N<b.length;N++){var Q=b[N];this.deleteRange(ee,{pos:e.getLineStartPositionForPosition(Q.getStart(ee),ee),end:k(ee,Q,{})})}var G=e.getPrecedingNonSpaceCharacterPosition(ee.text,De-1),ae=ee.text.slice(G,De);this.insertNodeAt(ee,De,de,{suffix:this.newLineCharacter+ae})},le.prototype.createJSDocText=function(ee,J){var de=e.flatMap(J.jsDoc,function(N){return e.isString(N.comment)?e.factory.createJSDocText(N.comment):N.comment}),De=e.singleOrUndefined(J.jsDoc);return De&&e.positionsAreOnSameLine(De.pos,De.end,ee)&&e.length(de)===0?void 0:e.factory.createNodeArray(e.intersperse(de,e.factory.createJSDocText(`
`)))},le.prototype.replaceJSDocComment=function(ee,J,de){this.insertJsdocCommentBefore(ee,C(J),e.factory.createJSDocComment(this.createJSDocText(ee,J),e.factory.createNodeArray(de)))},le.prototype.addJSDocTags=function(ee,J,de){var De=e.flatMapToMutable(J.jsDoc,function(b){return b.tags}),N=de.filter(function(b){return!De.some(function(Q,G){var ae=B(Q,b);return ae&&(De[G]=ae),!!ae})});this.replaceJSDocComment(ee,J,t(t([],De,!0),N,!0))},le.prototype.filterJSDocTags=function(ee,J,de){this.replaceJSDocComment(ee,J,e.filter(e.flatMapToMutable(J.jsDoc,function(De){return De.tags}),de))},le.prototype.replaceRangeWithText=function(ee,J,de){this.changes.push({kind:te.Text,sourceFile:ee,range:J,text:de})},le.prototype.insertText=function(ee,J,de){this.replaceRangeWithText(ee,e.createRange(J),de)},le.prototype.tryInsertTypeAnnotation=function(ee,J,de){var De,N;if(e.isFunctionLike(J)){if(N=e.findChildOfKind(J,21,ee),!N){if(!e.isArrowFunction(J))return!1;N=e.first(J.parameters)}}else N=(De=J.kind===257?J.exclamationToken:J.questionToken)!==null&&De!==void 0?De:J.name;return this.insertNodeAt(ee,N.end,de,{prefix:": "}),!0},le.prototype.tryInsertThisTypeAnnotation=function(ee,J,de){var De=e.findChildOfKind(J,20,ee).getStart(ee)+1,N=J.parameters.length?", ":"";this.insertNodeAt(ee,De,de,{prefix:"this: ",suffix:N})},le.prototype.insertTypeParameters=function(ee,J,de){var De=(e.findChildOfKind(J,20,ee)||e.first(J.parameters)).getStart(ee);this.insertNodesAt(ee,De,de,{prefix:"<",suffix:">",joiner:", "})},le.prototype.getOptionsForInsertNodeBefore=function(ee,J,de){return e.isStatement(ee)||e.isClassElement(ee)?{suffix:de?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(ee)?{suffix:", "}:e.isParameter(ee)?e.isParameter(J)?{suffix:", "}:{}:e.isStringLiteral(ee)&&e.isImportDeclaration(ee.parent)||e.isNamedImports(ee)?{suffix:", "}:e.isImportSpecifier(ee)?{suffix:","+(de?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(ee)},le.prototype.insertNodeAtConstructorStart=function(ee,J,de){var De=e.firstOrUndefined(J.body.statements);!De||!J.body.multiLine?this.replaceConstructorBody(ee,J,t([de],J.body.statements,!0)):this.insertNodeBefore(ee,De,de)},le.prototype.insertNodeAtConstructorStartAfterSuperCall=function(ee,J,de){var De=e.find(J.body.statements,function(N){return e.isExpressionStatement(N)&&e.isSuperCall(N.expression)});!De||!J.body.multiLine?this.replaceConstructorBody(ee,J,t(t([],J.body.statements,!0),[de],!1)):this.insertNodeAfter(ee,De,de)},le.prototype.insertNodeAtConstructorEnd=function(ee,J,de){var De=e.lastOrUndefined(J.body.statements);!De||!J.body.multiLine?this.replaceConstructorBody(ee,J,t(t([],J.body.statements,!0),[de],!1)):this.insertNodeAfter(ee,De,de)},le.prototype.replaceConstructorBody=function(ee,J,de){this.replaceNode(ee,J.body,e.factory.createBlock(de,!0))},le.prototype.insertNodeAtEndOfScope=function(ee,J,de){var De=Z(ee,J.getLastToken(),{});this.insertNodeAt(ee,De,de,{prefix:e.isLineBreak(ee.text.charCodeAt(J.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},le.prototype.insertMemberAtStart=function(ee,J,de){this.insertNodeAtStartWorker(ee,J,de)},le.prototype.insertNodeAtObjectStart=function(ee,J,de){this.insertNodeAtStartWorker(ee,J,de)},le.prototype.insertNodeAtStartWorker=function(ee,J,de){var De,N=(De=this.guessIndentationFromExistingMembers(ee,J))!==null&&De!==void 0?De:this.computeIndentationForNewMember(ee,J);this.insertNodeAt(ee,Pe(J).pos,de,this.getInsertNodeAtStartInsertOptions(ee,J,N))},le.prototype.guessIndentationFromExistingMembers=function(ee,J){for(var de,De=J,N=0,b=Pe(J);N<b.length;N++){var Q=b[N];if(e.rangeStartPositionsAreOnSameLine(De,Q,ee))return;var G=Q.getStart(ee),ae=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(G,ee),G,ee,this.formatContext.options);if(de===void 0)de=ae;else if(ae!==de)return;De=Q}return de},le.prototype.computeIndentationForNewMember=function(ee,J){var de,De=J.getStart(ee);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(De,ee),De,ee,this.formatContext.options)+((de=this.formatContext.options.indentSize)!==null&&de!==void 0?de:4)},le.prototype.getInsertNodeAtStartInsertOptions=function(ee,J,de){var De=Pe(J),N=De.length===0,b=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(J),{node:J,sourceFile:ee}),Q=e.isObjectLiteralExpression(J)&&(!e.isJsonSourceFile(ee)||!N),G=e.isObjectLiteralExpression(J)&&e.isJsonSourceFile(ee)&&N&&!b;return{indentation:de,prefix:(G?",":"")+this.newLineCharacter,suffix:Q?",":e.isInterfaceDeclaration(J)&&N?";":""}},le.prototype.insertNodeAfterComma=function(ee,J,de){var De=this.insertNodeAfterWorker(ee,this.nextCommaToken(ee,J)||J,de);this.insertNodeAt(ee,De,de,this.getInsertNodeAfterOptions(ee,J))},le.prototype.insertNodeAfter=function(ee,J,de){var De=this.insertNodeAfterWorker(ee,J,de);this.insertNodeAt(ee,De,de,this.getInsertNodeAfterOptions(ee,J))},le.prototype.insertNodeAtEndOfList=function(ee,J,de){this.insertNodeAt(ee,J.end,de,{prefix:", "})},le.prototype.insertNodesAfter=function(ee,J,de){var De=this.insertNodeAfterWorker(ee,J,e.first(de));this.insertNodesAt(ee,De,de,this.getInsertNodeAfterOptions(ee,J))},le.prototype.insertNodeAfterWorker=function(ee,J,de){R(J,de)&&ee.text.charCodeAt(J.end-1)!==59&&this.replaceRange(ee,e.createRange(J.end),e.factory.createToken(26));var De=k(ee,J,{});return De},le.prototype.getInsertNodeAfterOptions=function(ee,J){var de=this.getInsertNodeAfterOptionsWorker(J);return n(n({},de),{prefix:J.end===ee.end&&e.isStatement(J)?de.prefix?`
`.concat(de.prefix):`
`:de.prefix})},le.prototype.getInsertNodeAfterOptionsWorker=function(ee){switch(ee.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return e.Debug.assert(e.isStatement(ee)||e.isClassOrTypeElement(ee)),{suffix:this.newLineCharacter}}},le.prototype.insertName=function(ee,J,de){if(e.Debug.assert(!J.name),J.kind===216){var De=e.findChildOfKind(J,38,ee),N=e.findChildOfKind(J,20,ee);N?(this.insertNodesAt(ee,N.getStart(ee),[e.factory.createToken(98),e.factory.createIdentifier(de)],{joiner:" "}),I(this,ee,De)):(this.insertText(ee,e.first(J.parameters).getStart(ee),"function ".concat(de,"(")),this.replaceRange(ee,De,e.factory.createToken(21))),J.body.kind!==238&&(this.insertNodesAt(ee,J.body.getStart(ee),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(ee,J.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var b=e.findChildOfKind(J,J.kind===215?98:84,ee).end;this.insertNodeAt(ee,b,e.factory.createIdentifier(de),{prefix:" "})}},le.prototype.insertExportModifier=function(ee,J){this.insertText(ee,J.getStart(ee),"export ")},le.prototype.insertImportSpecifierAtIndex=function(ee,J,de,De){var N=de.elements[De-1];N?this.insertNodeInListAfter(ee,N,J):this.insertNodeBefore(ee,de.elements[0],J,!e.positionsAreOnSameLine(de.elements[0].getStart(),de.parent.parent.getStart(),ee))},le.prototype.insertNodeInListAfter=function(ee,J,de,De){if(De===void 0&&(De=e.formatting.SmartIndenter.getContainingList(J,ee)),!De){e.Debug.fail("node is not a list element");return}var N=e.indexOfNode(De,J);if(!(N<0)){var b=J.getEnd();if(N!==De.length-1){var Q=e.getTokenAtPosition(ee,J.end);if(Q&&X(J,Q)){var G=De[N+1],ae=E(ee.text,G.getFullStart()),Te="".concat(e.tokenToString(Q.kind)).concat(ee.text.substring(Q.end,ae));this.insertNodesAt(ee,ae,[de],{suffix:Te})}}else{var Ne=J.getStart(ee),we=e.getLineStartPositionForPosition(Ne,ee),nr=void 0,tr=!1;if(De.length===1)nr=27;else{var me=e.findPrecedingToken(J.pos,ee);nr=X(J,me)?me.kind:27;var He=e.getLineStartPositionForPosition(De[N-1].getStart(ee),ee);tr=He!==we}if(v(ee.text,J.end)&&(tr=!0),tr){this.replaceRange(ee,e.createRange(b),e.factory.createToken(nr));for(var rr=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(we,Ne,ee,this.formatContext.options),je=e.skipTrivia(ee.text,b,!0,!1);je!==b&&e.isLineBreak(ee.text.charCodeAt(je-1));)je--;this.replaceRange(ee,e.createRange(je),de,{indentation:rr,prefix:this.newLineCharacter})}else this.replaceRange(ee,e.createRange(b),de,{prefix:"".concat(e.tokenToString(nr)," ")})}}},le.prototype.parenthesizeExpression=function(ee,J){this.replaceRange(ee,e.rangeOfNode(J),e.factory.createParenthesizedExpression(J))},le.prototype.finishClassesWithNodesInsertedAtStart=function(){var ee=this;this.classesWithNodesInsertedAtStart.forEach(function(J){var de=J.node,De=J.sourceFile,N=ge(de,De),b=N[0],Q=N[1];if(b!==void 0&&Q!==void 0){var G=Pe(de).length===0,ae=e.positionsAreOnSameLine(b,Q,De);G&&ae&&b!==Q-1&&ee.deleteRange(De,e.createRange(b,Q-1)),ae&&ee.insertText(De,Q-1,ee.newLineCharacter)}})},le.prototype.finishDeleteDeclarations=function(){for(var ee=this,J=new e.Set,de=function(Te,Ne){De.deletedNodes.some(function(we){return we.sourceFile===Te&&e.rangeContainsRangeExclusive(we.node,Ne)})||(e.isArray(Ne)?De.deleteRange(Te,e.rangeOfTypeParameters(Te,Ne)):K.deleteDeclaration(De,J,Te,Ne))},De=this,N=0,b=this.deletedNodes;N<b.length;N++){var Q=b[N],G=Q.sourceFile,ae=Q.node;de(G,ae)}J.forEach(function(Te){var Ne=Te.getSourceFile(),we=e.formatting.SmartIndenter.getContainingList(Te,Ne);if(Te===e.last(we)){var nr=e.findLastIndex(we,function(tr){return!J.has(tr)},we.length-2);nr!==-1&&ee.deleteRange(Ne,{pos:we[nr].end,end:F(Ne,we[nr+1])})}})},le.prototype.getChanges=function(ee){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var J=_e.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,ee),de=0,De=this.newFiles;de<De.length;de++){var N=De[de],b=N.oldFile,Q=N.fileName,G=N.statements;J.push(_e.newFileChanges(b,Q,G,this.newLineCharacter,this.formatContext))}return J},le.prototype.createNewFile=function(ee,J,de){this.newFiles.push({oldFile:ee,fileName:J,statements:de})},le}();c.ChangeTracker=y;function C(le){if(le.kind!==216)return le;var ee=le.parent.kind===169?le.parent:le.parent.parent;return ee.jsDoc=le.jsDoc,ee.jsDocCache=le.jsDocCache,ee}function B(le,ee){if(le.kind===ee.kind)switch(le.kind){case 343:{var J=le,de=ee;return e.isIdentifier(J.name)&&e.isIdentifier(de.name)&&J.name.escapedText===de.name.escapedText?e.factory.createJSDocParameterTag(void 0,de.name,!1,de.typeExpression,de.isNameFirst,J.comment):void 0}case 344:return e.factory.createJSDocReturnTag(void 0,ee.typeExpression,le.comment);case 346:return e.factory.createJSDocTypeTag(void 0,ee.typeExpression,le.comment)}}function F(le,ee){return e.skipTrivia(le.text,Z(le,ee,{leadingTriviaOption:O.IncludeAll}),!1,!0)}function z(le,ee,J,de){var De=F(le,de);if(J===void 0||e.positionsAreOnSameLine(k(le,ee,{}),De,le))return De;var N=e.findPrecedingToken(de.getStart(le),le);if(X(ee,N)){var b=e.findPrecedingToken(ee.getStart(le),le);if(X(J,b)){var Q=e.skipTrivia(le.text,N.getEnd(),!0,!0);if(e.positionsAreOnSameLine(b.getStart(le),N.getStart(le),le))return e.isLineBreak(le.text.charCodeAt(Q-1))?Q-1:Q;if(e.isLineBreak(le.text.charCodeAt(Q)))return Q}}return De}function ge(le,ee){var J=e.findChildOfKind(le,18,ee),de=e.findChildOfKind(le,19,ee);return[J==null?void 0:J.end,de==null?void 0:de.end]}function Pe(le){return e.isObjectLiteralExpression(le)?le.properties:le.members}function fe(le,ee,J,de){return _e.newFileChangesWorker(void 0,ee,le,J,de)}c.getNewFileText=fe;var _e;(function(le){function ee(Q,G,ae,Te){return e.mapDefined(e.group(Q,function(Ne){return Ne.sourceFile.path}),function(Ne){for(var we=Ne[0].sourceFile,nr=e.stableSort(Ne,function(rr,je){return rr.range.pos-je.range.pos||rr.range.end-je.range.end}),tr=function(rr){e.Debug.assert(nr[rr].range.end<=nr[rr+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(nr[rr].range)," and ").concat(JSON.stringify(nr[rr+1].range))})},me=0;me<nr.length-1;me++)tr(me);var He=e.mapDefined(nr,function(rr){var je=e.createTextSpanFromRange(rr.range),Ce=De(rr,we,G,ae,Te);if(!(je.length===Ce.length&&e.stringContainsAt(we.text,Ce,je.start)))return e.createTextChange(je,Ce)});return He.length>0?{fileName:we.fileName,textChanges:He}:void 0})}le.getTextChangesFromChanges=ee;function J(Q,G,ae,Te,Ne){var we=de(Q,e.getScriptKindFromFileName(G),ae,Te,Ne);return{fileName:G,textChanges:[e.createTextChange(e.createTextSpan(0,0),we)],isNewFile:!0}}le.newFileChanges=J;function de(Q,G,ae,Te,Ne){var we=ae.map(function(me){return me===4?"":b(me,Q,Te).text}).join(Te),nr=e.createSourceFile("any file name",we,99,!0,G),tr=e.formatting.formatDocument(nr,Ne);return ne(we,tr)+Te}le.newFileChangesWorker=de;function De(Q,G,ae,Te,Ne){var we;if(Q.kind===te.Remove)return"";if(Q.kind===te.Text)return Q.text;var nr=Q.options,tr=nr===void 0?{}:nr,me=Q.range.pos,He=function(Ce){return N(Ce,G,me,tr,ae,Te,Ne)},rr=Q.kind===te.ReplaceWithMultipleNodes?Q.nodes.map(function(Ce){return e.removeSuffix(He(Ce),ae)}).join(((we=Q.options)===null||we===void 0?void 0:we.joiner)||ae):He(Q.node),je=tr.indentation!==void 0||e.getLineStartPositionForPosition(me,G)===me?rr:rr.replace(/^\s+/,"");return(tr.prefix||"")+je+(!tr.suffix||e.endsWith(je,tr.suffix)?"":tr.suffix)}function N(Q,G,ae,Te,Ne,we,nr){var tr=Te.indentation,me=Te.prefix,He=Te.delta,rr=b(Q,G,Ne),je=rr.node,Ce=rr.text;nr&&nr(je,Ce);var Ae=e.getFormatCodeSettingsForWriting(we,G),qe=tr!==void 0?tr:e.formatting.SmartIndenter.getIndentation(ae,G,Ae,me===Ne||e.getLineStartPositionForPosition(ae,G)===ae);He===void 0&&(He=e.formatting.SmartIndenter.shouldIndentChildNode(Ae,Q)&&Ae.indentSize||0);var xe={text:Ce,getLineAndCharacterOfPosition:function(ue){return e.getLineAndCharacterOfPosition(this,ue)}},L=e.formatting.formatNodeGivenIndentation(je,xe,G.languageVariant,qe,He,n(n({},we),{options:Ae}));return ne(Ce,L)}function b(Q,G,ae){var Te=U(ae),Ne=e.getNewLineKind(ae);return e.createPrinter({newLine:Ne,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},Te).writeNode(4,Q,G,Te),{text:Te.getText(),node:re(Q)}}le.getNonformattedText=b})(_e||(_e={}));function ne(le,ee){for(var J=ee.length-1;J>=0;J--){var de=ee[J],De=de.span,N=de.newText;le="".concat(le.substring(0,De.start)).concat(N).concat(le.substring(e.textSpanEnd(De)))}return le}c.applyChanges=ne;function oe(le){return e.skipTrivia(le,0)===le.length}var w=n(n({},e.nullTransformationContext),{factory:e.createNodeFactory(e.nullTransformationContext.factory.flags|1,e.nullTransformationContext.factory.baseFactory)});function re(le){var ee=e.visitEachChild(le,re,w,M,re),J=e.nodeIsSynthesized(ee)?ee:Object.create(ee);return e.setTextRangePosEnd(J,P(le),s(le)),J}c.assignPositionsToNode=re;function M(le,ee,J,de,De){var N=e.visitNodes(le,ee,J,de,De);if(!N)return N;var b=N===le?e.factory.createNodeArray(N.slice(0)):N;return e.setTextRangePosEnd(b,P(le),s(le)),b}function U(le){var ee=0,J=e.createTextWriter(le),de=function(tt){tt&&T(tt,ee)},De=function(tt){tt&&D(tt,ee)},N=function(tt){tt&&T(tt,ee)},b=function(tt){tt&&D(tt,ee)},Q=function(tt){tt&&T(tt,ee)},G=function(tt){tt&&D(tt,ee)};function ae(tt,ut){if(ut||!oe(tt)){ee=J.getTextPos();for(var or=0;e.isWhiteSpaceLike(tt.charCodeAt(tt.length-or-1));)or++;ee-=or}}function Te(tt){J.write(tt),ae(tt,!1)}function Ne(tt){J.writeComment(tt)}function we(tt){J.writeKeyword(tt),ae(tt,!1)}function nr(tt){J.writeOperator(tt),ae(tt,!1)}function tr(tt){J.writePunctuation(tt),ae(tt,!1)}function me(tt){J.writeTrailingSemicolon(tt),ae(tt,!1)}function He(tt){J.writeParameter(tt),ae(tt,!1)}function rr(tt){J.writeProperty(tt),ae(tt,!1)}function je(tt){J.writeSpace(tt),ae(tt,!1)}function Ce(tt){J.writeStringLiteral(tt),ae(tt,!1)}function Ae(tt,ut){J.writeSymbol(tt,ut),ae(tt,!1)}function qe(tt){J.writeLine(tt)}function xe(){J.increaseIndent()}function L(){J.decreaseIndent()}function ue(){return J.getText()}function Ue(tt){J.rawWrite(tt),ae(tt,!1)}function Je(tt){J.writeLiteral(tt),ae(tt,!0)}function lr(){return J.getTextPos()}function mr(){return J.getLine()}function Hr(){return J.getColumn()}function wr(){return J.getIndent()}function Oe(){return J.isAtStartOfLine()}function Ze(){J.clear(),ee=0}return{onBeforeEmitNode:de,onAfterEmitNode:De,onBeforeEmitNodeArray:N,onAfterEmitNodeArray:b,onBeforeEmitToken:Q,onAfterEmitToken:G,write:Te,writeComment:Ne,writeKeyword:we,writeOperator:nr,writePunctuation:tr,writeTrailingSemicolon:me,writeParameter:He,writeProperty:rr,writeSpace:je,writeStringLiteral:Ce,writeSymbol:Ae,writeLine:qe,increaseIndent:xe,decreaseIndent:L,getText:ue,rawWrite:Ue,writeLiteral:Je,getTextPos:lr,getLine:mr,getColumn:Hr,getIndent:wr,isAtStartOfLine:Oe,hasTrailingComment:function(){return J.hasTrailingComment()},hasTrailingWhitespace:function(){return J.hasTrailingWhitespace()},clear:Ze}}c.createWriter=U;function H(le){for(var ee,J=0,de=le.statements;J<de.length;J++){var De=de[J];if(e.isPrologueDirective(De))ee=De;else break}var N=0,b=le.text;if(ee)return N=ee.end,rr(),N;var Q=e.getShebang(b);Q!==void 0&&(N=Q.length,rr());var G=e.getLeadingCommentRanges(b,N);if(!G)return N;for(var ae,Te,Ne=0,we=G;Ne<we.length;Ne++){var nr=we[Ne];if(nr.kind===3){if(e.isPinnedComment(b,nr.pos)){ae={range:nr,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(b,nr.pos,nr.end)){ae={range:nr,pinnedOrTripleSlash:!0};continue}if(ae){if(ae.pinnedOrTripleSlash)break;var tr=le.getLineAndCharacterOfPosition(nr.pos).line,me=le.getLineAndCharacterOfPosition(ae.range.end).line;if(tr>=me+2)break}if(le.statements.length){Te===void 0&&(Te=le.getLineAndCharacterOfPosition(le.statements[0].getStart()).line);var He=le.getLineAndCharacterOfPosition(nr.end).line;if(Te<He+2)break}ae={range:nr,pinnedOrTripleSlash:!1}}return ae&&(N=ae.range.end,rr()),N;function rr(){if(N<b.length){var je=b.charCodeAt(N);e.isLineBreak(je)&&(N++,N<b.length&&je===13&&b.charCodeAt(N)===10&&N++)}}}function q(le,ee){return!e.isInComment(le,ee)&&!e.isInString(le,ee)&&!e.isInTemplateString(le,ee)&&!e.isInJSXText(le,ee)}c.isValidLocationToAddComment=q;function R(le,ee){return(e.isPropertySignature(le)||e.isPropertyDeclaration(le))&&e.isClassOrTypeElement(ee)&&ee.name.kind===164||e.isStatementButNotDeclaration(le)&&e.isStatementButNotDeclaration(ee)}var K;(function(le){function ee(N,b,Q,G){switch(G.kind){case 166:{var ae=G.parent;e.isArrowFunction(ae)&&ae.parameters.length===1&&!e.findChildOfKind(ae,20,Q)?N.replaceNodeWithText(Q,G,"()"):he(N,b,Q,G);break}case 269:case 268:var Te=Q.imports.length&&G===e.first(Q.imports).parent||G===e.find(Q.statements,e.isAnyImportSyntax);I(N,Q,G,{leadingTriviaOption:Te?O.Exclude:e.hasJSDocNodes(G)?O.JSDoc:O.StartLine});break;case 205:var Ne=G.parent,we=Ne.kind===204&&G!==e.last(Ne.elements);we?I(N,Q,G):he(N,b,Q,G);break;case 257:De(N,b,Q,G);break;case 165:he(N,b,Q,G);break;case 273:var nr=G.parent;nr.elements.length===1?de(N,Q,nr):he(N,b,Q,G);break;case 271:de(N,Q,G);break;case 26:I(N,Q,G,{trailingTriviaOption:W.Exclude});break;case 98:I(N,Q,G,{leadingTriviaOption:O.Exclude});break;case 260:case 259:I(N,Q,G,{leadingTriviaOption:e.hasJSDocNodes(G)?O.JSDoc:O.StartLine});break;default:G.parent?e.isImportClause(G.parent)&&G.parent.name===G?J(N,Q,G.parent):e.isCallExpression(G.parent)&&e.contains(G.parent.arguments,G)?he(N,b,Q,G):I(N,Q,G):I(N,Q,G)}}le.deleteDeclaration=ee;function J(N,b,Q){if(!Q.namedBindings)I(N,b,Q.parent);else{var G=Q.name.getStart(b),ae=e.getTokenAtPosition(b,Q.name.end);if(ae&&ae.kind===27){var Te=e.skipTrivia(b.text,ae.end,!1,!0);N.deleteRange(b,{pos:G,end:Te})}else I(N,b,Q.name)}}function de(N,b,Q){if(Q.parent.name){var G=e.Debug.checkDefined(e.getTokenAtPosition(b,Q.pos-1));N.deleteRange(b,{pos:G.getStart(b),end:Q.end})}else{var ae=e.getAncestor(Q,269);I(N,b,ae)}}function De(N,b,Q,G){var ae=G.parent;if(ae.kind===295){N.deleteNodeRange(Q,e.findChildOfKind(ae,20,Q),e.findChildOfKind(ae,21,Q));return}if(ae.declarations.length!==1){he(N,b,Q,G);return}var Te=ae.parent;switch(Te.kind){case 247:case 246:N.replaceNode(Q,G,e.factory.createObjectLiteralExpression());break;case 245:I(N,Q,ae);break;case 240:I(N,Q,Te,{leadingTriviaOption:e.hasJSDocNodes(Te)?O.JSDoc:O.StartLine});break;default:e.Debug.assertNever(Te)}}})(K||(K={}));function I(le,ee,J,de){de===void 0&&(de={leadingTriviaOption:O.IncludeAll});var De=Z(ee,J,de),N=k(ee,J,de);le.deleteRange(ee,{pos:De,end:N})}c.deleteNode=I;function he(le,ee,J,de){var De=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(de,J)),N=e.indexOfNode(De,de);if(e.Debug.assert(N!==-1),De.length===1){I(le,J,de);return}e.Debug.assert(!ee.has(de),"Deleting a node twice"),ee.add(de),le.deleteRange(J,{pos:F(J,de),end:N===De.length-1?k(J,de,{}):z(J,de,De[N-1],De[N+1])})}})(e.textChanges||(e.textChanges={}))})(h||(h={}));var h;(function(e){(function(c){var P=e.createMultiMap(),T=new e.Map;function s(y,C,B){return W(y,e.diagnosticToString(B),C,void 0,void 0)}c.createCodeFixActionWithoutFixAll=s;function D(y,C,B,F,z,ge){return W(y,e.diagnosticToString(B),C,F,e.diagnosticToString(z),ge)}c.createCodeFixAction=D;function O(y,C,B,F,z,ge){return W(y,e.diagnosticToString(B),C,F,z&&e.diagnosticToString(z),ge)}c.createCodeFixActionMaybeFixAll=O;function W(y,C,B,F,z,ge){return{fixName:y,description:C,changes:B,fixId:F,fixAllDescription:z,commands:ge?[ge]:void 0}}function E(y){for(var C=0,B=y.errorCodes;C<B.length;C++){var F=B[C];P.add(String(F),y)}if(y.fixIds)for(var z=0,ge=y.fixIds;z<ge.length;z++){var Pe=ge[z];e.Debug.assert(!T.has(Pe)),T.set(Pe,y)}}c.registerCodeFix=E;function v(){return e.arrayFrom(P.keys())}c.getSupportedErrorCodes=v;function S(y,C){for(var B=y.errorCodes,F=0,z=0,ge=C;z<ge.length;z++){var Pe=ge[z];if(e.contains(B,Pe.code)&&F++,F>1)break}var fe=F<2;return function(_e){var ne=_e.fixId,oe=_e.fixAllDescription,w=d(_e,["fixId","fixAllDescription"]);return fe?w:n(n({},w),{fixId:ne,fixAllDescription:oe})}}function te(y){var C=A(y),B=P.get(String(y.errorCode));return e.flatMap(B,function(F){return e.map(F.getCodeActions(y),S(F,C))})}c.getFixes=te;function Y(y){return T.get(e.cast(y.fixId,e.isString)).getAllCodeActions(y)}c.getAllFixes=Y;function Z(y,C){return{changes:y,commands:C}}c.createCombinedCodeActions=Z;function ce(y,C){return{fileName:y,textChanges:C}}c.createFileTextChanges=ce;function k(y,C,B){var F=[],z=e.textChanges.ChangeTracker.with(y,function(ge){return X(y,C,function(Pe){return B(ge,Pe,F)})});return Z(z,F.length===0?void 0:F)}c.codeFixAll=k;function X(y,C,B){for(var F=0,z=A(y);F<z.length;F++){var ge=z[F];e.contains(C,ge.code)&&B(ge)}}c.eachDiagnostic=X;function A(y){var C=y.program,B=y.sourceFile,F=y.cancellationToken;return t(t(t([],C.getSemanticDiagnostics(B,F),!0),C.getSyntacticDiagnostics(B,F),!0),e.computeSuggestionDiagnostics(B,C,F),!0)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P=new e.Map;function T(O,W){P.set(O,W)}c.registerRefactor=T;function s(O){return e.arrayFrom(e.flatMapIterator(P.values(),function(W){var E;return O.cancellationToken&&O.cancellationToken.isCancellationRequested()||!(!((E=W.kinds)===null||E===void 0)&&E.some(function(v){return c.refactorKindBeginsWith(v,O.kind)}))?void 0:W.getAvailableActions(O)}))}c.getApplicableRefactors=s;function D(O,W,E){var v=P.get(W);return v&&v.getEditsForAction(O,E)}c.getEditsForRefactor=D})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){var P="addConvertToUnknownForNonOverlappingTypes",T=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=D(W.sourceFile,W.span.start);if(E!==void 0){var v=e.textChanges.ChangeTracker.with(W,function(S){return s(S,W.sourceFile,E)});return[c.createCodeFixAction(P,v,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,P,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){var v=D(E.file,E.start);v&&s(W,E.file,v)})}});function s(O,W,E){var v=e.isAsExpression(E)?e.factory.createAsExpression(E.expression,e.factory.createKeywordTypeNode(157)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(157),E.expression);O.replaceNode(W,E.expression,v)}function D(O,W){if(!e.isInJSFile(O))return e.findAncestor(e.getTokenAtPosition(O,W),function(E){return e.isAsExpression(E)||e.isTypeAssertionExpression(E)})}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){c.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(T){var s=T.sourceFile,D=e.textChanges.ChangeTracker.with(T,function(O){var W=e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([]),void 0);O.insertNodeAtEndOfScope(s,s,W)});return[c.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",D,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addMissingAsync",T=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];c.registerCodeFix({fixIds:[P],errorCodes:T,getCodeActions:function(v){var S=v.sourceFile,te=v.errorCode,Y=v.cancellationToken,Z=v.program,ce=v.span,k=e.find(Z.getTypeChecker().getDiagnostics(S,Y),W(ce,te)),X=k&&k.relatedInformation&&e.find(k.relatedInformation,function(C){return C.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),A=O(S,X);if(A){var y=function(C){return e.textChanges.ChangeTracker.with(v,C)};return[s(v,A,y)]}},getAllCodeActions:function(E){var v=E.sourceFile,S=new e.Set;return c.codeFixAll(E,T,function(te,Y){var Z=Y.relatedInformation&&e.find(Y.relatedInformation,function(X){return X.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),ce=O(v,Z);if(ce){var k=function(X){return X(te),[]};return s(E,ce,k,S)}})}});function s(E,v,S,te){var Y=S(function(Z){return D(Z,E.sourceFile,v,te)});return c.createCodeFixAction(P,Y,e.Diagnostics.Add_async_modifier_to_containing_function,P,e.Diagnostics.Add_all_missing_async_modifiers)}function D(E,v,S,te){if(!(te&&te.has(e.getNodeId(S)))){te==null||te.add(e.getNodeId(S));var Y=e.factory.updateModifiers(e.getSynthesizedDeepClone(S,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(S)|512)));E.replaceNode(v,S,Y)}}function O(E,v){if(v){var S=e.getTokenAtPosition(E,v.start),te=e.findAncestor(S,function(Y){return Y.getStart(E)<v.start||Y.getEnd()>e.textSpanEnd(v)?"quit":(e.isArrowFunction(Y)||e.isMethodDeclaration(Y)||e.isFunctionExpression(Y)||e.isFunctionDeclaration(Y))&&e.textSpansEqual(v,e.createTextSpanFromNode(Y,E))});return te}}function W(E,v){return function(S){var te=S.start,Y=S.length,Z=S.relatedInformation,ce=S.code;return e.isNumber(te)&&e.isNumber(Y)&&e.textSpansEqual({start:te,length:Y},E)&&ce===v&&!!Z&&e.some(Z,function(k){return k.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addMissingAwait",T=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,s=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],D=t([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,T],s,!0);c.registerCodeFix({fixIds:[P],errorCodes:D,getCodeActions:function(A){var y=A.sourceFile,C=A.errorCode,B=A.span,F=A.cancellationToken,z=A.program,ge=O(y,C,B,F,z);if(ge){var Pe=A.program.getTypeChecker(),fe=function(_e){return e.textChanges.ChangeTracker.with(A,_e)};return e.compact([W(A,ge,C,Pe,fe),E(A,ge,C,Pe,fe)])}},getAllCodeActions:function(X){var A=X.sourceFile,y=X.program,C=X.cancellationToken,B=X.program.getTypeChecker(),F=new e.Set;return c.codeFixAll(X,D,function(z,ge){var Pe=O(A,ge.code,ge,C,y);if(Pe){var fe=function(_e){return _e(z),[]};return W(X,Pe,ge.code,B,fe,F)||E(X,Pe,ge.code,B,fe,F)}})}});function O(X,A,y,C,B){var F=e.getFixableErrorSpanExpression(X,y);return F&&v(X,A,y,C,B)&&Z(F)?F:void 0}function W(X,A,y,C,B,F){var z=X.sourceFile,ge=X.program,Pe=X.cancellationToken,fe=S(A,z,Pe,ge,C);if(fe){var _e=B(function(ne){e.forEach(fe.initializers,function(oe){var w=oe.expression;return ce(ne,y,z,C,w,F)}),F&&fe.needsSecondPassForFixAll&&ce(ne,y,z,C,A,F)});return c.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",_e,fe.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,fe.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function E(X,A,y,C,B,F){var z=B(function(ge){return ce(ge,y,X.sourceFile,C,A,F)});return c.createCodeFixAction(P,z,e.Diagnostics.Add_await,P,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function v(X,A,y,C,B){var F=B.getTypeChecker(),z=F.getDiagnostics(X,C);return e.some(z,function(ge){var Pe=ge.start,fe=ge.length,_e=ge.relatedInformation,ne=ge.code;return e.isNumber(Pe)&&e.isNumber(fe)&&e.textSpansEqual({start:Pe,length:fe},y)&&ne===A&&!!_e&&e.some(_e,function(oe){return oe.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function S(X,A,y,C,B){var F=te(X,B);if(F){for(var z=F.isCompleteFix,ge,Pe=function(oe){var w=B.getSymbolAtLocation(oe);if(!w)return"continue";var re=e.tryCast(w.valueDeclaration,e.isVariableDeclaration),M=re&&e.tryCast(re.name,e.isIdentifier),U=e.getAncestor(re,240);if(!re||!U||re.type||!re.initializer||U.getSourceFile()!==A||e.hasSyntacticModifier(U,1)||!M||!Z(re.initializer))return z=!1,"continue";var H=C.getSemanticDiagnostics(A,y),q=e.FindAllReferences.Core.eachSymbolReferenceInFile(M,B,A,function(R){return oe!==R&&!Y(R,H,A,B)});if(q)return z=!1,"continue";(ge||(ge=[])).push({expression:re.initializer,declarationSymbol:w})},fe=0,_e=F.identifiers;fe<_e.length;fe++){var ne=_e[fe];Pe(ne)}return ge&&{initializers:ge,needsSecondPassForFixAll:!z}}}function te(X,A){if(e.isPropertyAccessExpression(X.parent)&&e.isIdentifier(X.parent.expression))return{identifiers:[X.parent.expression],isCompleteFix:!0};if(e.isIdentifier(X))return{identifiers:[X],isCompleteFix:!0};if(e.isBinaryExpression(X)){for(var y=void 0,C=!0,B=0,F=[X.left,X.right];B<F.length;B++){var z=F[B],ge=A.getTypeAtLocation(z);if(A.getPromisedTypeOfPromise(ge)){if(!e.isIdentifier(z)){C=!1;continue}(y||(y=[])).push(z)}}return y&&{identifiers:y,isCompleteFix:C}}}function Y(X,A,y,C){var B=e.isPropertyAccessExpression(X.parent)?X.parent.name:e.isBinaryExpression(X.parent)?X.parent:X,F=e.find(A,function(z){return z.start===B.getStart(y)&&z.start+z.length===B.getEnd()});return F&&e.contains(D,F.code)||C.getTypeAtLocation(B).flags&1}function Z(X){return X.kind&32768||!!e.findAncestor(X,function(A){return A.parent&&e.isArrowFunction(A.parent)&&A.parent.body===A||e.isBlock(A)&&(A.parent.kind===259||A.parent.kind===215||A.parent.kind===216||A.parent.kind===171)})}function ce(X,A,y,C,B,F){if(e.isForOfStatement(B.parent)&&!B.parent.awaitModifier){var z=C.getTypeAtLocation(B),ge=C.getAsyncIterableType();if(ge&&C.isTypeAssignableTo(z,ge)){var Pe=B.parent;X.replaceNode(y,Pe,e.factory.updateForOfStatement(Pe,e.factory.createToken(133),Pe.initializer,Pe.expression,Pe.statement));return}}if(e.isBinaryExpression(B))for(var fe=0,_e=[B.left,B.right];fe<_e.length;fe++){var ne=_e[fe];if(F&&e.isIdentifier(ne)){var oe=C.getSymbolAtLocation(ne);if(oe&&F.has(e.getSymbolId(oe)))continue}var w=C.getTypeAtLocation(ne),re=C.getPromisedTypeOfPromise(w)?e.factory.createAwaitExpression(ne):ne;X.replaceNode(y,ne,re)}else if(A===T&&e.isPropertyAccessExpression(B.parent)){if(F&&e.isIdentifier(B.parent.expression)){var oe=C.getSymbolAtLocation(B.parent.expression);if(oe&&F.has(e.getSymbolId(oe)))return}X.replaceNode(y,B.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(B.parent.expression))),k(X,B.parent.expression,y)}else if(e.contains(s,A)&&e.isCallOrNewExpression(B.parent)){if(F&&e.isIdentifier(B)){var oe=C.getSymbolAtLocation(B);if(oe&&F.has(e.getSymbolId(oe)))return}X.replaceNode(y,B,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(B))),k(X,B,y)}else{if(F&&e.isVariableDeclaration(B.parent)&&e.isIdentifier(B.parent.name)){var oe=C.getSymbolAtLocation(B.parent.name);if(oe&&!e.tryAddToSet(F,e.getSymbolId(oe)))return}X.replaceNode(y,B,e.factory.createAwaitExpression(B))}}function k(X,A,y){var C=e.findPrecedingToken(A.pos,y);C&&e.positionIsASICandidate(C.end,C.parent,y)&&X.insertText(y,A.getStart(y),";")}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addMissingConst",T=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(te){var Y=e.textChanges.ChangeTracker.with(te,function(Z){return s(Z,te.sourceFile,te.span.start,te.program)});if(Y.length>0)return[c.createCodeFixAction(P,Y,e.Diagnostics.Add_const_to_unresolved_variable,P,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[P],getAllCodeActions:function(S){var te=new e.Set;return c.codeFixAll(S,T,function(Y,Z){return s(Y,Z.file,Z.start,S.program,te)})}});function s(S,te,Y,Z,ce){var k=e.getTokenAtPosition(te,Y),X=e.findAncestor(k,function(F){return e.isForInOrOfStatement(F.parent)?F.parent.initializer===F:O(F)?!1:"quit"});if(X)return D(S,X,te,ce);var A=k.parent;if(e.isBinaryExpression(A)&&A.operatorToken.kind===63&&e.isExpressionStatement(A.parent))return D(S,k,te,ce);if(e.isArrayLiteralExpression(A)){var y=Z.getTypeChecker();return e.every(A.elements,function(F){return W(F,y)})?D(S,A,te,ce):void 0}var C=e.findAncestor(k,function(F){return e.isExpressionStatement(F.parent)?!0:E(F)?!1:"quit"});if(C){var B=Z.getTypeChecker();return v(C,B)?D(S,C,te,ce):void 0}}function D(S,te,Y,Z){(!Z||e.tryAddToSet(Z,te))&&S.insertModifierBefore(Y,85,te)}function O(S){switch(S.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}function W(S,te){var Y=e.isIdentifier(S)?S:e.isAssignmentExpression(S,!0)&&e.isIdentifier(S.left)?S.left:void 0;return!!Y&&!te.getSymbolAtLocation(Y)}function E(S){switch(S.kind){case 79:case 223:case 27:return!0;default:return!1}}function v(S,te){return e.isBinaryExpression(S)?S.operatorToken.kind===27?e.every([S.left,S.right],function(Y){return v(Y,te)}):S.operatorToken.kind===63&&e.isIdentifier(S.left)&&!te.getSymbolAtLocation(S.left):!1}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addMissingDeclareProperty",T=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=e.textChanges.ChangeTracker.with(O,function(E){return s(E,O.sourceFile,O.span.start)});if(W.length>0)return[c.createCodeFixAction(P,W,e.Diagnostics.Prefix_with_declare,P,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[P],getAllCodeActions:function(D){var O=new e.Set;return c.codeFixAll(D,T,function(W,E){return s(W,E.file,E.start,O)})}});function s(D,O,W,E){var v=e.getTokenAtPosition(O,W);if(e.isIdentifier(v)){var S=v.parent;S.kind===169&&(!E||e.tryAddToSet(E,S))&&D.insertModifierBefore(O,136,S)}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addMissingInvocationForDecorator",T=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=e.textChanges.ChangeTracker.with(O,function(E){return s(E,O.sourceFile,O.span.start)});return[c.createCodeFixAction(P,W,e.Diagnostics.Call_decorator_expression,P,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O,W){return s(O,W.file,W.start)})}});function s(D,O,W){var E=e.getTokenAtPosition(O,W),v=e.findAncestor(E,e.isDecorator);e.Debug.assert(!!v,"Expected position to be owned by a decorator.");var S=e.factory.createCallExpression(v.expression,void 0,void 0);D.replaceNode(O,v.expression,S)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addNameToNamelessParameter",T=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=e.textChanges.ChangeTracker.with(O,function(E){return s(E,O.sourceFile,O.span.start)});return[c.createCodeFixAction(P,W,e.Diagnostics.Add_parameter_name,P,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O,W){return s(O,W.file,W.start)})}});function s(D,O,W){var E=e.getTokenAtPosition(O,W),v=E.parent;if(!e.isParameter(v))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(E.kind));var S=v.parent.parameters.indexOf(v);e.Debug.assert(!v.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(S>-1,"Parameter not found in parent parameter list.");var te=e.factory.createTypeReferenceNode(v.name,void 0),Y=e.factory.createParameterDeclaration(v.modifiers,v.dotDotDotToken,"arg"+S,v.questionToken,v.dotDotDotToken?e.factory.createArrayTypeNode(te):te,v.initializer);D.replaceNode(O,v,Y)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addOptionalPropertyUndefined",T=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(E){var v=E.program.getTypeChecker(),S=s(E.sourceFile,E.span,v);if(S.length){var te=e.textChanges.ChangeTracker.with(E,function(Y){return W(Y,S)});return[c.createCodeFixActionWithoutFixAll(P,te,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[P]});function s(E,v,S){var te,Y,Z=O(e.getFixableErrorSpanExpression(E,v),S);if(!Z)return e.emptyArray;var ce=Z.source,k=Z.target,X=D(ce,k,S)?S.getTypeAtLocation(k.expression):S.getTypeAtLocation(k);return!((Y=(te=X.symbol)===null||te===void 0?void 0:te.declarations)===null||Y===void 0)&&Y.some(function(A){return e.getSourceFileOfNode(A).fileName.match(/\.d\.ts$/)})?e.emptyArray:S.getExactOptionalProperties(X)}function D(E,v,S){return e.isPropertyAccessExpression(v)&&!!S.getExactOptionalProperties(S.getTypeAtLocation(v.expression)).length&&S.getTypeAtLocation(E)===S.getUndefinedType()}function O(E,v){var S;if(E){if(e.isBinaryExpression(E.parent)&&E.parent.operatorToken.kind===63)return{source:E.parent.right,target:E.parent.left};if(e.isVariableDeclaration(E.parent)&&E.parent.initializer)return{source:E.parent.initializer,target:E.parent.name};if(e.isCallExpression(E.parent)){var te=v.getSymbolAtLocation(E.parent.expression);if(!(te!=null&&te.valueDeclaration)||!e.isFunctionLikeKind(te.valueDeclaration.kind)||!e.isExpression(E))return;var Y=E.parent.arguments.indexOf(E);if(Y===-1)return;var Z=te.valueDeclaration.parameters[Y].name;if(e.isIdentifier(Z))return{source:E,target:Z}}else if(e.isPropertyAssignment(E.parent)&&e.isIdentifier(E.parent.name)||e.isShorthandPropertyAssignment(E.parent)){var ce=O(E.parent.parent,v);if(!ce)return;var k=v.getPropertyOfType(v.getTypeAtLocation(ce.target),E.parent.name.text),X=(S=k==null?void 0:k.declarations)===null||S===void 0?void 0:S[0];return X?{source:e.isPropertyAssignment(E.parent)?E.parent.initializer:E.parent.name,target:X}:void 0}}else return}function W(E,v){for(var S=0,te=v;S<te.length;S++){var Y=te[S],Z=Y.valueDeclaration;if(Z&&(e.isPropertySignature(Z)||e.isPropertyDeclaration(Z))&&Z.type){var ce=e.factory.createUnionTypeNode(t(t([],Z.type.kind===189?Z.type.types:[Z.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));E.replaceNode(Z.getSourceFile(),Z.type,ce)}}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="annotateWithTypeFromJSDoc",T=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(A){var y=s(A.sourceFile,A.span.start);if(y){var C=e.textChanges.ChangeTracker.with(A,function(B){return W(B,A.sourceFile,y)});return[c.createCodeFixAction(P,C,e.Diagnostics.Annotate_with_type_from_JSDoc,P,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[P],getAllCodeActions:function(A){return c.codeFixAll(A,T,function(y,C){var B=s(C.file,C.start);B&&W(y,C.file,B)})}});function s(A,y){var C=e.getTokenAtPosition(A,y);return e.tryCast(e.isParameter(C.parent)?C.parent.parent:C.parent,D)}function D(A){return E(A)&&O(A)}c.parameterShouldGetTypeFromJSDoc=D;function O(A){return e.isFunctionLikeDeclaration(A)?A.parameters.some(O)||!A.type&&!!e.getJSDocReturnType(A):!A.type&&!!e.getJSDocType(A)}function W(A,y,C){if(e.isFunctionLikeDeclaration(C)&&(e.getJSDocReturnType(C)||C.parameters.some(function(oe){return!!e.getJSDocType(oe)}))){if(!C.typeParameters){var B=e.getJSDocTypeParameterDeclarations(C);B.length&&A.insertTypeParameters(y,C,B)}var F=e.isArrowFunction(C)&&!e.findChildOfKind(C,20,y);F&&A.insertNodeBefore(y,e.first(C.parameters),e.factory.createToken(20));for(var z=0,ge=C.parameters;z<ge.length;z++){var Pe=ge[z];if(!Pe.type){var fe=e.getJSDocType(Pe);fe&&A.tryInsertTypeAnnotation(y,Pe,v(fe))}}if(F&&A.insertNodeAfter(y,e.last(C.parameters),e.factory.createToken(21)),!C.type){var _e=e.getJSDocReturnType(C);_e&&A.tryInsertTypeAnnotation(y,C,v(_e))}}else{var ne=e.Debug.checkDefined(e.getJSDocType(C),"A JSDocType for this declaration should exist");e.Debug.assert(!C.type,"The JSDocType decl should have a type"),A.tryInsertTypeAnnotation(y,C,v(ne))}}function E(A){return e.isFunctionLikeDeclaration(A)||A.kind===257||A.kind===168||A.kind===169}function v(A){switch(A.kind){case 315:case 316:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 319:return S(A);case 318:return v(A.type);case 317:return te(A);case 321:return Y(A);case 320:return Z(A);case 180:return k(A);default:var y=e.visitEachChild(A,v,e.nullTransformationContext);return e.setEmitFlags(y,1),y}}function S(A){return e.factory.createUnionTypeNode([e.visitNode(A.type,v),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function te(A){return e.factory.createUnionTypeNode([e.visitNode(A.type,v),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function Y(A){return e.factory.createArrayTypeNode(e.visitNode(A.type,v))}function Z(A){var y;return e.factory.createFunctionTypeNode(e.emptyArray,A.parameters.map(ce),(y=A.type)!==null&&y!==void 0?y:e.factory.createKeywordTypeNode(131))}function ce(A){var y=A.parent.parameters.indexOf(A),C=A.type.kind===321&&y===A.parent.parameters.length-1,B=A.name||(C?"rest":"arg"+y),F=C?e.factory.createToken(25):A.dotDotDotToken;return e.factory.createParameterDeclaration(A.modifiers,F,B,A.questionToken,e.visitNode(A.type,v),A.initializer)}function k(A){var y=A.typeName,C=A.typeArguments;if(e.isIdentifier(A.typeName)){if(e.isJSDocIndexSignature(A))return X(A);var B=A.typeName.text;switch(A.typeName.text){case"String":case"Boolean":case"Object":case"Number":B=B.toLowerCase();break;case"array":case"date":case"promise":B=B[0].toUpperCase()+B.slice(1);break}y=e.factory.createIdentifier(B),(B==="Array"||B==="Promise")&&!A.typeArguments?C=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):C=e.visitNodes(A.typeArguments,v)}return e.factory.createTypeReferenceNode(y,C)}function X(A){var y=e.factory.createParameterDeclaration(void 0,void 0,A.typeArguments[0].kind===148?"n":"s",void 0,e.factory.createTypeReferenceNode(A.typeArguments[0].kind===148?"number":"string",[]),void 0),C=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[y],A.typeArguments[1])]);return e.setEmitFlags(C,1),C}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="convertFunctionToEs6Class",T=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(E){var v=e.textChanges.ChangeTracker.with(E,function(S){return s(S,E.sourceFile,E.span.start,E.program.getTypeChecker(),E.preferences,E.program.getCompilerOptions())});return[c.createCodeFixAction(P,v,e.Diagnostics.Convert_function_to_an_ES2015_class,P,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[P],getAllCodeActions:function(E){return c.codeFixAll(E,T,function(v,S){return s(v,S.file,S.start,E.program.getTypeChecker(),E.preferences,E.program.getCompilerOptions())})}});function s(E,v,S,te,Y,Z){var ce=te.getSymbolAtLocation(e.getTokenAtPosition(v,S));if(!ce||!ce.valueDeclaration||!(ce.flags&19))return;var k=ce.valueDeclaration;if(e.isFunctionDeclaration(k)||e.isFunctionExpression(k))E.replaceNode(v,k,B(k));else if(e.isVariableDeclaration(k)){var X=C(k);if(!X)return;var A=k.parent.parent;e.isVariableDeclarationList(k.parent)&&k.parent.declarations.length>1?(E.delete(v,k),E.insertNodeAfter(v,A,X)):E.replaceNode(v,A,X)}function y(F){var z=[];return F.exports&&F.exports.forEach(function(fe){if(fe.name==="prototype"&&fe.declarations){var _e=fe.declarations[0];if(fe.declarations.length===1&&e.isPropertyAccessExpression(_e)&&e.isBinaryExpression(_e.parent)&&_e.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(_e.parent.right)){var ne=_e.parent.right;Pe(ne.symbol,void 0,z)}}else Pe(fe,[e.factory.createToken(124)],z)}),F.members&&F.members.forEach(function(fe,_e){var ne,oe,w,re;if(_e==="constructor"&&fe.valueDeclaration){var M=(re=(w=(oe=(ne=F.exports)===null||ne===void 0?void 0:ne.get("prototype"))===null||oe===void 0?void 0:oe.declarations)===null||w===void 0?void 0:w[0])===null||re===void 0?void 0:re.parent;M&&e.isBinaryExpression(M)&&e.isObjectLiteralExpression(M.right)&&e.some(M.right.properties,O)||E.delete(v,fe.valueDeclaration.parent);return}Pe(fe,void 0,z)}),z;function ge(fe,_e){return e.isAccessExpression(fe)?e.isPropertyAccessExpression(fe)&&O(fe)?!0:e.isFunctionLike(_e):e.every(fe.properties,function(ne){return!!(e.isMethodDeclaration(ne)||e.isGetOrSetAccessorDeclaration(ne)||e.isPropertyAssignment(ne)&&e.isFunctionExpression(ne.initializer)&&ne.name||O(ne))})}function Pe(fe,_e,ne){if(!(fe.flags&8192)&&!(fe.flags&4096))return;var oe=fe.valueDeclaration,w=oe.parent,re=w.right;if(!ge(oe,re)||e.some(ne,function(he){var le=e.getNameOfDeclaration(he);return!!(le&&e.isIdentifier(le)&&e.idText(le)===e.symbolName(fe))}))return;var M=w.parent&&w.parent.kind===241?w.parent:w;if(E.delete(v,M),!re){ne.push(e.factory.createPropertyDeclaration(_e,fe.name,void 0,void 0,void 0));return}if(e.isAccessExpression(oe)&&(e.isFunctionExpression(re)||e.isArrowFunction(re))){var U=e.getQuotePreference(v,Y),H=W(oe,Z,U);H&&R(ne,re,H);return}else if(e.isObjectLiteralExpression(re)){e.forEach(re.properties,function(he){(e.isMethodDeclaration(he)||e.isGetOrSetAccessorDeclaration(he))&&ne.push(he),e.isPropertyAssignment(he)&&e.isFunctionExpression(he.initializer)&&R(ne,he.initializer,he.name),O(he)});return}else{if(e.isSourceFileJS(v)||!e.isPropertyAccessExpression(oe))return;var q=e.factory.createPropertyDeclaration(_e,oe.name,void 0,void 0,re);e.copyLeadingComments(w.parent,q,v),ne.push(q);return}function R(he,le,ee){return e.isFunctionExpression(le)?K(he,le,ee):I(he,le,ee)}function K(he,le,ee){var J=e.concatenate(_e,D(le,132)),de=e.factory.createMethodDeclaration(J,void 0,ee,void 0,void 0,le.parameters,void 0,le.body);e.copyLeadingComments(w,de,v),he.push(de)}function I(he,le,ee){var J=le.body,de;J.kind===238?de=J:de=e.factory.createBlock([e.factory.createReturnStatement(J)]);var De=e.concatenate(_e,D(le,132)),N=e.factory.createMethodDeclaration(De,void 0,ee,void 0,void 0,le.parameters,void 0,de);e.copyLeadingComments(w,N,v),he.push(N)}}}function C(F){var z=F.initializer;if(!(!z||!e.isFunctionExpression(z)||!e.isIdentifier(F.name))){var ge=y(F.symbol);z.body&&ge.unshift(e.factory.createConstructorDeclaration(void 0,z.parameters,z.body));var Pe=D(F.parent.parent,93),fe=e.factory.createClassDeclaration(Pe,F.name,void 0,void 0,ge);return fe}}function B(F){var z=y(ce);F.body&&z.unshift(e.factory.createConstructorDeclaration(void 0,F.parameters,F.body));var ge=D(F,93),Pe=e.factory.createClassDeclaration(ge,F.name,void 0,void 0,z);return Pe}}function D(E,v){return e.canHaveModifiers(E)?e.filter(E.modifiers,function(S){return S.kind===v}):void 0}function O(E){return E.name?!!(e.isIdentifier(E.name)&&E.name.text==="constructor"):!1}function W(E,v,S){if(e.isPropertyAccessExpression(E))return E.name;var te=E.argumentExpression;if(e.isNumericLiteral(te))return te;if(e.isStringLiteralLike(te))return e.isIdentifierText(te.text,e.getEmitScriptTarget(v))?e.factory.createIdentifier(te.text):e.isNoSubstitutionTemplateLiteral(te)?e.factory.createStringLiteral(te.text,S===0):te}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="convertToAsyncFunction",T=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],s=!0;c.registerCodeFix({errorCodes:T,getCodeActions:function(N){s=!0;var b=e.textChanges.ChangeTracker.with(N,function(Q){return O(Q,N.sourceFile,N.span.start,N.program.getTypeChecker())});return s?[c.createCodeFixAction(P,b,e.Diagnostics.Convert_to_async_function,P,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[P],getAllCodeActions:function(N){return c.codeFixAll(N,T,function(b,Q){return O(b,Q.file,Q.start,N.program.getTypeChecker())})}});var D;(function(N){N[N.Identifier=0]="Identifier",N[N.BindingPattern=1]="BindingPattern"})(D||(D={}));function O(N,b,Q,G){var ae=e.getTokenAtPosition(b,Q),Te;if(e.isIdentifier(ae)&&e.isVariableDeclaration(ae.parent)&&ae.parent.initializer&&e.isFunctionLikeDeclaration(ae.parent.initializer)?Te=ae.parent.initializer:Te=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(b,Q)),e.canBeConvertedToAsync),!!Te){var Ne=new e.Map,we=e.isInJSFile(Te),nr=E(Te,G),tr=Z(Te,G,Ne);if(e.returnsPromise(tr,G)){var me=tr.body&&e.isBlock(tr.body)?W(tr.body,G):e.emptyArray,He={checker:G,synthNamesMap:Ne,setOfExpressionsToReturn:nr,isInJSFile:we};if(me.length){var rr=e.skipTrivia(b.text,e.moveRangePastModifiers(Te).pos);N.insertModifierAt(b,rr,132,{suffix:" "});for(var je=function(L){if(e.forEachChild(L,function ue(Ue){if(e.isCallExpression(Ue)){var Je=A(Ue,Ue,He,!1);if(k())return!0;N.replaceNodeWithNodes(b,L,Je)}else if(!e.isFunctionLike(Ue)&&(e.forEachChild(Ue,ue),k()))return!0}),k())return{value:void 0}},Ce=0,Ae=me;Ce<Ae.length;Ce++){var qe=Ae[Ce],xe=je(qe);if(typeof xe=="object")return xe.value}}}}}function W(N,b){var Q=[];return e.forEachReturnStatement(N,function(G){e.isReturnStatementWithFixablePromiseHandler(G,b)&&Q.push(G)}),Q}function E(N,b){if(!N.body)return new e.Set;var Q=new e.Set;return e.forEachChild(N.body,function G(ae){v(ae,b,"then")?(Q.add(e.getNodeId(ae)),e.forEach(ae.arguments,G)):v(ae,b,"catch")||v(ae,b,"finally")?(Q.add(e.getNodeId(ae)),e.forEachChild(ae,G)):Y(ae,b)?Q.add(e.getNodeId(ae)):e.forEachChild(ae,G)}),Q}function v(N,b,Q){if(!e.isCallExpression(N))return!1;var G=e.hasPropertyAccessExpressionWithName(N,Q),ae=G&&b.getTypeAtLocation(N);return!!(ae&&b.getPromisedTypeOfPromise(ae))}function S(N,b){return(e.getObjectFlags(N)&4)!==0&&N.target===b}function te(N,b,Q){if(N.expression.name.escapedText!=="finally"){var G=Q.getTypeAtLocation(N.expression.expression);if(S(G,Q.getPromiseType())||S(G,Q.getPromiseLikeType()))if(N.expression.name.escapedText==="then"){if(b===e.elementAt(N.arguments,0))return e.elementAt(N.typeArguments,0);if(b===e.elementAt(N.arguments,1))return e.elementAt(N.typeArguments,1)}else return e.elementAt(N.typeArguments,0)}}function Y(N,b){return e.isExpression(N)?!!b.getPromisedTypeOfPromise(b.getTypeAtLocation(N)):!1}function Z(N,b,Q){var G=new e.Map,ae=e.createMultiMap();return e.forEachChild(N,function Te(Ne){if(!e.isIdentifier(Ne)){e.forEachChild(Ne,Te);return}var we=b.getSymbolAtLocation(Ne);if(we){var nr=b.getTypeAtLocation(Ne),tr=re(nr,b),me=e.getSymbolId(we).toString();if(tr&&!e.isParameter(Ne.parent)&&!e.isFunctionLikeDeclaration(Ne.parent)&&!Q.has(me)){var He=e.firstOrUndefined(tr.parameters),rr=(He==null?void 0:He.valueDeclaration)&&e.isParameter(He.valueDeclaration)&&e.tryCast(He.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),je=ce(rr,ae);Q.set(me,je),ae.add(rr.text,we)}else if(Ne.parent&&(e.isParameter(Ne.parent)||e.isVariableDeclaration(Ne.parent)||e.isBindingElement(Ne.parent))){var Ce=Ne.text,Ae=ae.get(Ce);if(Ae&&Ae.some(function(L){return L!==we})){var qe=ce(Ne,ae);G.set(me,qe.identifier),Q.set(me,qe),ae.add(Ce,we)}else{var xe=e.getSynthesizedDeepClone(Ne);Q.set(me,R(xe)),ae.add(Ce,we)}}}}),e.getSynthesizedDeepCloneWithReplacements(N,!0,function(Te){if(e.isBindingElement(Te)&&e.isIdentifier(Te.name)&&e.isObjectBindingPattern(Te.parent)){var Ne=b.getSymbolAtLocation(Te.name),we=Ne&&G.get(String(e.getSymbolId(Ne)));if(we&&we.text!==(Te.name||Te.propertyName).getText())return e.factory.createBindingElement(Te.dotDotDotToken,Te.propertyName||Te.name,we,Te.initializer)}else if(e.isIdentifier(Te)){var Ne=b.getSymbolAtLocation(Te),we=Ne&&G.get(String(e.getSymbolId(Ne)));if(we)return e.factory.createIdentifier(we.text)}})}function ce(N,b){var Q=(b.get(N.text)||e.emptyArray).length,G=Q===0?N:e.factory.createIdentifier(N.text+"_"+Q);return R(G)}function k(){return!s}function X(){return s=!1,e.emptyArray}function A(N,b,Q,G,ae){if(v(b,Q.checker,"then"))return Pe(b,e.elementAt(b.arguments,0),e.elementAt(b.arguments,1),Q,G,ae);if(v(b,Q.checker,"catch"))return ge(b,e.elementAt(b.arguments,0),Q,G,ae);if(v(b,Q.checker,"finally"))return z(b,e.elementAt(b.arguments,0),Q,G,ae);if(e.isPropertyAccessExpression(b))return A(N,b.expression,Q,G,ae);var Te=Q.checker.getTypeAtLocation(b);return Te&&Q.checker.getPromisedTypeOfPromise(Te)?(e.Debug.assertNode(e.getOriginalNode(b).parent,e.isPropertyAccessExpression),fe(N,b,Q,G,ae)):X()}function y(N,b){var Q=N.checker;if(b.kind===104)return!0;if(e.isIdentifier(b)&&!e.isGeneratedIdentifier(b)&&e.idText(b)==="undefined"){var G=Q.getSymbolAtLocation(b);return!G||Q.isUndefinedSymbol(G)}return!1}function C(N){var b=e.factory.createUniqueName(N.identifier.text,16);return R(b)}function B(N,b,Q){var G;return Q&&!De(N,b)&&(J(Q)?(G=Q,b.synthNamesMap.forEach(function(ae,Te){if(ae.identifier.text===Q.identifier.text){var Ne=C(Q);b.synthNamesMap.set(Te,Ne)}})):G=R(e.factory.createUniqueName("result",16),Q.types),ee(G)),G}function F(N,b,Q,G,ae){var Te=[],Ne;if(G&&!De(N,b)){Ne=e.getSynthesizedDeepClone(ee(G));var we=G.types,nr=b.checker.getUnionType(we,2),tr=b.isInJSFile?void 0:b.checker.typeToTypeNode(nr,void 0,void 0),me=[e.factory.createVariableDeclaration(Ne,void 0,tr)],He=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(me,1));Te.push(He)}return Te.push(Q),ae&&Ne&&de(ae)&&Te.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(le(ae)),void 0,void 0,Ne)],2))),Te}function z(N,b,Q,G,ae){if(!b||y(Q,b))return A(N,N.expression.expression,Q,G,ae);var Te=B(N,Q,ae),Ne=A(N,N.expression.expression,Q,!0,Te);if(k())return X();var we=oe(b,G,void 0,void 0,N,Q);if(k())return X();var nr=e.factory.createBlock(Ne),tr=e.factory.createBlock(we),me=e.factory.createTryStatement(nr,void 0,tr);return F(N,Q,me,Te,ae)}function ge(N,b,Q,G,ae){if(!b||y(Q,b))return A(N,N.expression.expression,Q,G,ae);var Te=H(b,Q),Ne=B(N,Q,ae),we=A(N,N.expression.expression,Q,!0,Ne);if(k())return X();var nr=oe(b,G,Ne,Te,N,Q);if(k())return X();var tr=e.factory.createBlock(we),me=e.factory.createCatchClause(Te&&e.getSynthesizedDeepClone(he(Te)),e.factory.createBlock(nr)),He=e.factory.createTryStatement(tr,me,void 0);return F(N,Q,He,Ne,ae)}function Pe(N,b,Q,G,ae,Te){if(!b||y(G,b))return ge(N,Q,G,ae,Te);if(Q&&!y(G,Q))return X();var Ne=H(b,G),we=A(N.expression.expression,N.expression.expression,G,!0,Ne);if(k())return X();var nr=oe(b,ae,Te,Ne,N,G);return k()?X():e.concatenate(we,nr)}function fe(N,b,Q,G,ae){if(De(N,Q)){var Te=e.getSynthesizedDeepClone(b);return G&&(Te=e.factory.createAwaitExpression(Te)),[e.factory.createReturnStatement(Te)]}return _e(ae,e.factory.createAwaitExpression(b),void 0)}function _e(N,b,Q){return!N||q(N)?[e.factory.createExpressionStatement(b)]:J(N)&&N.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(I(N)),b))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(he(N)),void 0,Q,b)],2))]}function ne(N,b){if(b&&N){var Q=e.factory.createUniqueName("result",16);return t(t([],_e(R(Q),N,b),!0),[e.factory.createReturnStatement(Q)],!1)}return[e.factory.createReturnStatement(N)]}function oe(N,b,Q,G,ae,Te){var Ne;switch(N.kind){case 104:break;case 208:case 79:if(!G)break;var we=e.factory.createCallExpression(e.getSynthesizedDeepClone(N),void 0,J(G)?[I(G)]:[]);if(De(ae,Te))return ne(we,te(ae,N,Te.checker));var nr=Te.checker.getTypeAtLocation(N),tr=Te.checker.getSignaturesOfType(nr,0);if(!tr.length)return X();var me=tr[0].getReturnType(),He=_e(Q,e.factory.createAwaitExpression(we),te(ae,N,Te.checker));return Q&&Q.types.push(Te.checker.getAwaitedType(me)||me),He;case 215:case 216:{var rr=N.body,je=(Ne=re(Te.checker.getTypeAtLocation(N),Te.checker))===null||Ne===void 0?void 0:Ne.getReturnType();if(e.isBlock(rr)){for(var Ce=[],Ae=!1,qe=0,xe=rr.statements;qe<xe.length;qe++){var L=xe[qe];if(e.isReturnStatement(L))if(Ae=!0,e.isReturnStatementWithFixablePromiseHandler(L,Te.checker))Ce=Ce.concat(U(Te,L,b,Q));else{var ue=je&&L.expression?w(Te.checker,je,L.expression):L.expression;Ce.push.apply(Ce,ne(ue,te(ae,N,Te.checker)))}else{if(b&&e.forEachReturnStatement(L,e.returnTrue))return X();Ce.push(L)}}return De(ae,Te)?Ce.map(function(lr){return e.getSynthesizedDeepClone(lr)}):M(Ce,Q,Te,Ae)}else{var Ue=e.isFixablePromiseHandler(rr,Te.checker)?U(Te,e.factory.createReturnStatement(rr),b,Q):e.emptyArray;if(Ue.length>0)return Ue;if(je){var ue=w(Te.checker,je,rr);if(De(ae,Te))return ne(ue,te(ae,N,Te.checker));var Je=_e(Q,ue,void 0);return Q&&Q.types.push(Te.checker.getAwaitedType(je)||je),Je}else return X()}}default:return X()}return e.emptyArray}function w(N,b,Q){var G=e.getSynthesizedDeepClone(Q);return N.getPromisedTypeOfPromise(b)?e.factory.createAwaitExpression(G):G}function re(N,b){var Q=b.getSignaturesOfType(N,0);return e.lastOrUndefined(Q)}function M(N,b,Q,G){for(var ae=[],Te=0,Ne=N;Te<Ne.length;Te++){var we=Ne[Te];if(e.isReturnStatement(we)){if(we.expression){var nr=Y(we.expression,Q.checker)?e.factory.createAwaitExpression(we.expression):we.expression;b===void 0?ae.push(e.factory.createExpressionStatement(nr)):J(b)&&b.hasBeenDeclared?ae.push(e.factory.createExpressionStatement(e.factory.createAssignment(I(b),nr))):ae.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(he(b),void 0,void 0,nr)],2)))}}else ae.push(e.getSynthesizedDeepClone(we))}return!G&&b!==void 0&&ae.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(he(b),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),ae}function U(N,b,Q,G){var ae=[];return e.forEachChild(b,function Te(Ne){if(e.isCallExpression(Ne)){var we=A(Ne,Ne,N,Q,G);if(ae=ae.concat(we),ae.length>0)return}else e.isFunctionLike(Ne)||e.forEachChild(Ne,Te)}),ae}function H(N,b){var Q=[],G;if(e.isFunctionLikeDeclaration(N)){if(N.parameters.length>0){var ae=N.parameters[0].name;G=Te(ae)}}else e.isIdentifier(N)?G=Ne(N):e.isPropertyAccessExpression(N)&&e.isIdentifier(N.name)&&(G=Ne(N.name));if(!G||"identifier"in G&&G.identifier.text==="undefined")return;return G;function Te(tr){if(e.isIdentifier(tr))return Ne(tr);var me=e.flatMap(tr.elements,function(He){return e.isOmittedExpression(He)?[]:[Te(He.name)]});return K(tr,me)}function Ne(tr){var me=nr(tr),He=we(me);if(!He)return R(tr,Q);var rr=b.synthNamesMap.get(e.getSymbolId(He).toString());return rr||R(tr,Q)}function we(tr){return tr.symbol?tr.symbol:b.checker.getSymbolAtLocation(tr)}function nr(tr){return tr.original?tr.original:tr}}function q(N){return N?J(N)?!N.identifier.text:e.every(N.elements,q):!0}function R(N,b){return b===void 0&&(b=[]),{kind:0,identifier:N,types:b,hasBeenDeclared:!1,hasBeenReferenced:!1}}function K(N,b,Q){return b===void 0&&(b=e.emptyArray),Q===void 0&&(Q=[]),{kind:1,bindingPattern:N,elements:b,types:Q}}function I(N){return N.hasBeenReferenced=!0,N.identifier}function he(N){return J(N)?ee(N):le(N)}function le(N){for(var b=0,Q=N.elements;b<Q.length;b++){var G=Q[b];he(G)}return N.bindingPattern}function ee(N){return N.hasBeenDeclared=!0,N.identifier}function J(N){return N.kind===0}function de(N){return N.kind===1}function De(N,b){return!!N.original&&b.setOfExpressionsToReturn.has(e.getNodeId(N.original))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){c.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(U){var H=U.sourceFile,q=U.program,R=U.preferences,K=e.textChanges.ChangeTracker.with(U,function(I){var he=T(H,q.getTypeChecker(),I,e.getEmitScriptTarget(q.getCompilerOptions()),e.getQuotePreference(H,R));if(he)for(var le=0,ee=q.getSourceFiles();le<ee.length;le++){var J=ee[le];P(J,H,I,e.getQuotePreference(J,R))}});return[c.createCodeFixActionWithoutFixAll("convertToEsModule",K,e.Diagnostics.Convert_to_ES_module)]}});function P(U,H,q,R){for(var K=0,I=U.imports;K<I.length;K++){var he=I[K],le=e.getResolvedModule(U,he.text,e.getModeForUsageLocation(U,he));if(!(!le||le.resolvedFileName!==H.fileName)){var ee=e.importFromModuleSpecifier(he);switch(ee.kind){case 268:q.replaceNode(U,ee,e.makeImport(ee.name,void 0,he,R));break;case 210:e.isRequireCall(ee,!1)&&q.replaceNode(U,ee,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(ee),"default"));break}}}}function T(U,H,q,R,K){var I={original:z(U),additional:new e.Set},he=s(U,H,I);D(U,he,q);for(var le=!1,ee,J=0,de=e.filter(U.statements,e.isVariableStatement);J<de.length;J++){var De=de[J],N=E(U,De,q,H,I,R,K);N&&e.copyEntries(N,ee??(ee=new e.Map))}for(var b=0,Q=e.filter(U.statements,function(ae){return!e.isVariableStatement(ae)});b<Q.length;b++){var De=Q[b],G=W(U,De,H,q,I,R,he,ee,K);le=le||G}return ee==null||ee.forEach(function(ae,Te){q.replaceNode(U,Te,ae)}),le}function s(U,H,q){var R=new e.Map;return O(U,function(K){var I=K.name,he=I.text,le=I.originalKeywordKind;!R.has(he)&&(le!==void 0&&e.isNonContextualKeyword(le)||H.resolveName(he,K,111551,!0))&&R.set(he,F("_".concat(he),q))}),R}function D(U,H,q){O(U,function(R,K){if(!K){var I=R.name.text;q.replaceNode(U,R,e.factory.createIdentifier(H.get(I)||I))}})}function O(U,H){U.forEachChild(function q(R){if(e.isPropertyAccessExpression(R)&&e.isExportsOrModuleExportsOrAlias(U,R.expression)&&e.isIdentifier(R.name)){var K=R.parent;H(R,e.isBinaryExpression(K)&&K.left===R&&K.operatorToken.kind===63)}R.forEachChild(q)})}function W(U,H,q,R,K,I,he,le,ee){switch(H.kind){case 240:return E(U,H,R,q,K,I,ee),!1;case 241:{var J=H.expression;switch(J.kind){case 210:return e.isRequireCall(J,!0)&&R.replaceNode(U,H,e.makeImport(void 0,void 0,J.arguments[0],ee)),!1;case 223:{var de=J.operatorToken;return de.kind===63&&S(U,q,J,R,he,le)}}}default:return!1}}function E(U,H,q,R,K,I,he){var le=H.declarationList,ee=!1,J=e.map(le.declarations,function(De){var N=De.name,b=De.initializer;if(b){if(e.isExportsOrModuleExportsOrAlias(U,b))return ee=!0,M([]);if(e.isRequireCall(b,!0))return ee=!0,C(N,b.arguments[0],R,K,I,he);if(e.isPropertyAccessExpression(b)&&e.isRequireCall(b.expression,!0))return ee=!0,v(N,b.name.text,b.expression.arguments[0],K,he)}return M([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([De],le.flags))])});if(ee){q.replaceNodeWithNodes(U,H,e.flatMap(J,function(De){return De.newImports}));var de;return e.forEach(J,function(De){De.useSitesToUnqualify&&e.copyEntries(De.useSitesToUnqualify,de??(de=new e.Map))}),de}}function v(U,H,q,R,K){switch(U.kind){case 203:case 204:{var I=F(H,R);return M([ne(I,H,q,K),w(void 0,U,e.factory.createIdentifier(I))])}case 79:return M([ne(U.text,H,q,K)]);default:return e.Debug.assertNever(U,"Convert to ES module got invalid syntax form ".concat(U.kind))}}function S(U,H,q,R,K,I){var he=q.left,le=q.right;if(!e.isPropertyAccessExpression(he))return!1;if(e.isExportsOrModuleExportsOrAlias(U,he))if(e.isExportsOrModuleExportsOrAlias(U,le))R.delete(U,q.parent);else{var ee=e.isObjectLiteralExpression(le)?te(le,I):e.isRequireCall(le,!0)?Z(le.arguments[0],H):void 0;return ee?(R.replaceNodeWithNodes(U,q.parent,ee[0]),ee[1]):(R.replaceRangeWithText(U,e.createRange(he.getStart(U),le.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(U,he.expression)&&Y(U,q,R,K);return!1}function te(U,H){var q=e.mapAllOrFail(U.properties,function(R){switch(R.kind){case 174:case 175:case 300:case 301:return;case 299:return e.isIdentifier(R.name)?A(R.name.text,R.initializer,H):void 0;case 171:return e.isIdentifier(R.name)?fe(R.name.text,[e.factory.createToken(93)],R,H):void 0;default:e.Debug.assertNever(R,"Convert to ES6 got invalid prop kind ".concat(R.kind))}});return q&&[q,!1]}function Y(U,H,q,R){var K=H.left.name.text,I=R.get(K);if(I!==void 0){var he=[w(void 0,I,H.right),re([e.factory.createExportSpecifier(!1,I,K)])];q.replaceNodeWithNodes(U,H.parent,he)}else X(H,U,q)}function Z(U,H){var q=U.text,R=H.getSymbolAtLocation(U),K=R?R.exports:e.emptyMap;return K.has("export=")?[[k(q)],!0]:K.has("default")?K.size>1?[[ce(q),k(q)],!0]:[[k(q)],!0]:[[ce(q)],!1]}function ce(U){return re(void 0,U)}function k(U){return re([e.factory.createExportSpecifier(!1,void 0,"default")],U)}function X(U,H,q){var R=U.left,K=U.right,I=U.parent,he=R.name.text;if((e.isFunctionExpression(K)||e.isArrowFunction(K)||e.isClassExpression(K))&&(!K.name||K.name.text===he)){q.replaceRange(H,{pos:R.getStart(H),end:K.getStart(H)},e.factory.createToken(93),{suffix:" "}),K.name||q.insertName(H,K,he);var le=e.findChildOfKind(I,26,H);le&&q.delete(H,le)}else q.replaceNodeRangeWithNodes(H,R.expression,e.findChildOfKind(R,24,H),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function A(U,H,q){var R=[e.factory.createToken(93)];switch(H.kind){case 215:{var K=H.name;if(K&&K.text!==U)return I()}case 216:return fe(U,R,H,q);case 228:return _e(U,R,H,q);default:return I()}function I(){return w(R,e.factory.createIdentifier(U),y(H,q))}}function y(U,H){if(!H||!e.some(e.arrayFrom(H.keys()),function(R){return e.rangeContainsRange(U,R)}))return U;return e.isArray(U)?e.getSynthesizedDeepClonesWithReplacements(U,!0,q):e.getSynthesizedDeepCloneWithReplacements(U,!0,q);function q(R){if(R.kind===208){var K=H.get(R);return H.delete(R),K}}}function C(U,H,q,R,K,I){switch(U.kind){case 203:{var he=e.mapAllOrFail(U.elements,function(ee){return ee.dotDotDotToken||ee.initializer||ee.propertyName&&!e.isIdentifier(ee.propertyName)||!e.isIdentifier(ee.name)?void 0:oe(ee.propertyName&&ee.propertyName.text,ee.name.text)});if(he)return M([e.makeImport(void 0,he,H,I)])}case 204:{var le=F(c.moduleSpecifierToValidIdentifier(H.text,K),R);return M([e.makeImport(e.factory.createIdentifier(le),void 0,H,I),w(void 0,e.getSynthesizedDeepClone(U),e.factory.createIdentifier(le))])}case 79:return B(U,H,q,R,I);default:return e.Debug.assertNever(U,"Convert to ES module got invalid name kind ".concat(U.kind))}}function B(U,H,q,R,K){for(var I=q.getSymbolAtLocation(U),he=new e.Map,le=!1,ee,J=0,de=R.original.get(U.text);J<de.length;J++){var De=de[J];if(!(q.getSymbolAtLocation(De)!==I||De===U)){var N=De.parent;if(e.isPropertyAccessExpression(N)){var b=N.name.text;if(b==="default"){le=!0;var Q=De.getText();(ee??(ee=new e.Map)).set(N,e.factory.createIdentifier(Q))}else{e.Debug.assert(N.expression===De,"Didn't expect expression === use");var G=he.get(b);G===void 0&&(G=F(b,R),he.set(b,G)),(ee??(ee=new e.Map)).set(N,e.factory.createIdentifier(G))}}else le=!0}}var ae=he.size===0?void 0:e.arrayFrom(e.mapIterator(he.entries(),function(Te){var Ne=Te[0],we=Te[1];return e.factory.createImportSpecifier(!1,Ne===we?void 0:e.factory.createIdentifier(Ne),e.factory.createIdentifier(we))}));return ae||(le=!0),M([e.makeImport(le?e.getSynthesizedDeepClone(U):void 0,ae,H,K)],ee)}function F(U,H){for(;H.original.has(U)||H.additional.has(U);)U="_".concat(U);return H.additional.add(U),U}function z(U){var H=e.createMultiMap();return ge(U,function(q){return H.add(q.text,q)}),H}function ge(U,H){e.isIdentifier(U)&&Pe(U)&&H(U),U.forEachChild(function(q){return ge(q,H)})}function Pe(U){var H=U.parent;switch(H.kind){case 208:return H.name!==U;case 205:return H.propertyName!==U;case 273:return H.propertyName!==U;default:return!0}}function fe(U,H,q,R){return e.factory.createFunctionDeclaration(e.concatenate(H,e.getSynthesizedDeepClones(q.modifiers)),e.getSynthesizedDeepClone(q.asteriskToken),U,e.getSynthesizedDeepClones(q.typeParameters),e.getSynthesizedDeepClones(q.parameters),e.getSynthesizedDeepClone(q.type),e.factory.converters.convertToFunctionBlock(y(q.body,R)))}function _e(U,H,q,R){return e.factory.createClassDeclaration(e.concatenate(H,e.getSynthesizedDeepClones(q.modifiers)),U,e.getSynthesizedDeepClones(q.typeParameters),e.getSynthesizedDeepClones(q.heritageClauses),y(q.members,R))}function ne(U,H,q,R){return H==="default"?e.makeImport(e.factory.createIdentifier(U),void 0,q,R):e.makeImport(void 0,[oe(H,U)],q,R)}function oe(U,H){return e.factory.createImportSpecifier(!1,U!==void 0&&U!==H?e.factory.createIdentifier(U):void 0,e.factory.createIdentifier(H))}function w(U,H,q){return e.factory.createVariableStatement(U,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(H,void 0,void 0,q)],2))}function re(U,H){return e.factory.createExportDeclaration(void 0,!1,U&&e.factory.createNamedExports(U),H===void 0?void 0:e.factory.createStringLiteral(H))}function M(U,H){return{newImports:U,useSitesToUnqualify:H}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="correctQualifiedNameToIndexedAccessType",T=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=s(O.sourceFile,O.span.start);if(W){var E=e.textChanges.ChangeTracker.with(O,function(S){return D(S,O.sourceFile,W)}),v="".concat(W.left.text,'["').concat(W.right.text,'"]');return[c.createCodeFixAction(P,E,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,v],P,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){var v=s(E.file,E.start);v&&D(W,E.file,v)})}});function s(O,W){var E=e.findAncestor(e.getTokenAtPosition(O,W),e.isQualifiedName);return e.Debug.assert(!!E,"Expected position to be owned by a qualified name."),e.isIdentifier(E.left)?E:void 0}function D(O,W,E){var v=E.right.text,S=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(E.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(v)));O.replaceNode(W,E,S)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],T="convertToTypeOnlyExport";c.registerCodeFix({errorCodes:P,getCodeActions:function(E){var v=e.textChanges.ChangeTracker.with(E,function(S){return D(S,s(E.span,E.sourceFile),E)});if(v.length)return[c.createCodeFixAction(T,v,e.Diagnostics.Convert_to_type_only_export,T,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[T],getAllCodeActions:function(E){var v=new e.Map;return c.codeFixAll(E,P,function(S,te){var Y=s(te,E.sourceFile);Y&&e.addToSeen(v,e.getNodeId(Y.parent.parent))&&D(S,Y,E)})}});function s(W,E){return e.tryCast(e.getTokenAtPosition(E,W.start).parent,e.isExportSpecifier)}function D(W,E,v){if(E){var S=E.parent,te=S.parent,Y=O(E,v);if(Y.length===S.elements.length)W.insertModifierBefore(v.sourceFile,154,S);else{var Z=e.factory.updateExportDeclaration(te,te.modifiers,!1,e.factory.updateNamedExports(S,e.filter(S.elements,function(k){return!e.contains(Y,k)})),te.moduleSpecifier,void 0),ce=e.factory.createExportDeclaration(void 0,!0,e.factory.createNamedExports(Y),te.moduleSpecifier,void 0);W.replaceNode(v.sourceFile,te,Z,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),W.insertNodeAfter(v.sourceFile,te,ce)}}}function O(W,E){var v=W.parent;if(v.elements.length===1)return v.elements;var S=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(v),E.program.getSemanticDiagnostics(E.sourceFile,E.cancellationToken));return e.filter(v.elements,function(te){var Y;return te===W||((Y=e.findDiagnosticForNode(te,S))===null||Y===void 0?void 0:Y.code)===P[0]})}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],T="convertToTypeOnlyImport";c.registerCodeFix({errorCodes:P,getCodeActions:function(W){var E=e.textChanges.ChangeTracker.with(W,function(v){var S=s(W.span,W.sourceFile);D(v,S,W)});if(E.length)return[c.createCodeFixAction(T,E,e.Diagnostics.Convert_to_type_only_import,T,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[T],getAllCodeActions:function(W){return c.codeFixAll(W,P,function(E,v){var S=s(v,W.sourceFile);D(E,S,W)})}});function s(O,W){return e.tryCast(e.getTokenAtPosition(W,O.start).parent,e.isImportDeclaration)}function D(O,W,E){if(W!=null&&W.importClause){var v=W.importClause;O.insertText(E.sourceFile,W.getStart()+6," type"),v.name&&v.namedBindings&&(O.deleteNodeRangeExcludingEnd(E.sourceFile,v.name,W.importClause.namedBindings),O.insertNodeBefore(E.sourceFile,W,e.factory.updateImportDeclaration(W,void 0,e.factory.createImportClause(!0,v.name,void 0),W.moduleSpecifier,void 0)))}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="convertLiteralTypeToMappedType",T=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=W.sourceFile,v=W.span,S=s(E,v.start);if(S){var te=S.name,Y=S.constraint,Z=e.textChanges.ChangeTracker.with(W,function(ce){return D(ce,E,S)});return[c.createCodeFixAction(P,Z,[e.Diagnostics.Convert_0_to_1_in_0,Y,te],P,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){var v=s(E.file,E.start);v&&D(W,E.file,v)})}});function s(O,W){var E=e.getTokenAtPosition(O,W);if(e.isIdentifier(E)){var v=e.cast(E.parent.parent,e.isPropertySignature),S=E.getText(O);return{container:e.cast(v.parent,e.isTypeLiteralNode),typeNode:v.type,constraint:S,name:S==="K"?"P":"K"}}}function D(O,W,E){var v=E.container,S=E.typeNode,te=E.constraint,Y=E.name;O.replaceNode(W,v,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(void 0,Y,e.factory.createTypeReferenceNode(te)),void 0,void 0,S,void 0))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],T="fixClassIncorrectlyImplementsInterface";c.registerCodeFix({errorCodes:P,getCodeActions:function(E){var v=E.sourceFile,S=E.span,te=s(v,S.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(te),function(Y){var Z=e.textChanges.ChangeTracker.with(E,function(ce){return O(E,Y,v,te,ce,E.preferences)});return Z.length===0?void 0:c.createCodeFixAction(T,Z,[e.Diagnostics.Implement_interface_0,Y.getText(v)],T,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[T],getAllCodeActions:function(E){var v=new e.Map;return c.codeFixAll(E,P,function(S,te){var Y=s(te.file,te.start);if(e.addToSeen(v,e.getNodeId(Y)))for(var Z=0,ce=e.getEffectiveImplementsTypeNodes(Y);Z<ce.length;Z++){var k=ce[Z];O(E,k,te.file,Y,S,E.preferences)}})}});function s(E,v){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(E,v)),"There should be a containing class")}function D(E){return!E.valueDeclaration||!(e.getEffectiveModifierFlags(E.valueDeclaration)&8)}function O(E,v,S,te,Y,Z){var ce=E.program.getTypeChecker(),k=W(te,ce),X=ce.getTypeAtLocation(v),A=ce.getPropertiesOfType(X),y=A.filter(e.and(D,function(Pe){return!k.has(Pe.escapedName)})),C=ce.getTypeAtLocation(te),B=e.find(te.members,function(Pe){return e.isConstructorDeclaration(Pe)});C.getNumberIndexType()||z(X,1),C.getStringIndexType()||z(X,0);var F=c.createImportAdder(S,E.program,Z,E.host);c.createMissingMemberNodes(te,y,S,E,Z,F,function(Pe){return ge(S,te,Pe)}),F.writeFixes(Y);function z(Pe,fe){var _e=ce.getIndexInfoOfType(Pe,fe);_e&&ge(S,te,ce.indexInfoToIndexSignatureDeclaration(_e,te,void 0,c.getNoopSymbolTrackerWithResolver(E)))}function ge(Pe,fe,_e){B?Y.insertNodeAfter(Pe,B,_e):Y.insertMemberAtStart(Pe,fe,_e)}}function W(E,v){var S=e.getEffectiveBaseTypeNode(E);if(!S)return e.createSymbolTable();var te=v.getTypeAtLocation(S),Y=v.getPropertiesOfType(te);return e.createSymbolTable(Y.filter(D))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){c.importFixName="import";var P="fixMissingImport",T=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(Ae){var qe=Ae.errorCode,xe=Ae.preferences,L=Ae.sourceFile,ue=Ae.span,Ue=Ae.program,Je=ne(Ae,qe,ue.start,!0);if(Je){var lr=e.getQuotePreference(L,xe);return Je.map(function(mr){var Hr=mr.fix,wr=mr.symbolName,Oe=mr.errorIdentifierText;return N(Ae,L,wr,Hr,wr!==Oe,lr,Ue.getCompilerOptions())})}},fixIds:[P],getAllCodeActions:function(Ae){var qe=Ae.sourceFile,xe=Ae.program,L=Ae.preferences,ue=Ae.host,Ue=Ae.cancellationToken,Je=D(qe,xe,!0,L,ue,Ue);return c.eachDiagnostic(Ae,T,function(lr){return Je.addImportFromDiagnostic(lr,Ae)}),c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(Ae,Je.writeFixes))}});function s(Ae,qe,xe,L,ue){return D(Ae,qe,!1,xe,L,ue)}c.createImportAdder=s;function D(Ae,qe,xe,L,ue,Ue){var Je=qe.getCompilerOptions(),lr=[],mr=[],Hr=new e.Map,wr=new e.Map;return{addImportFromDiagnostic:Oe,addImportFromExportedSymbol:Ze,writeFixes:ut,hasFixes:or};function Oe(qr,Rr){var zr=ne(Rr,qr.code,qr.start,xe);!zr||!zr.length||tt(e.first(zr))}function Ze(qr,Rr){var zr=e.Debug.checkDefined(qr.parent),Fr=e.getNameForExportedSymbol(qr,e.getEmitScriptTarget(Je)),_t=qe.getTypeChecker(),Ct=_t.getMergedSymbol(e.skipAlias(qr,_t)),yt=Z(Ae,Ct,Fr,!1,qe,ue,L,Ue),Fe=z(Ae,qe),vr=te(Ae,e.Debug.checkDefined(yt),zr,qe,void 0,!!Rr,Fe,ue,L);vr&&tt({fix:vr,symbolName:Fr,errorIdentifierText:void 0})}function tt(qr){var Rr,zr,Fr=qr.fix,_t=qr.symbolName;switch(Fr.kind){case 0:lr.push(Fr);break;case 1:mr.push(Fr);break;case 2:{var Ct=Fr.importClauseOrBindingPattern,yt=Fr.importKind,Fe=Fr.addAsTypeOnly,vr=String(e.getNodeId(Ct)),Le=Hr.get(vr);if(Le||Hr.set(vr,Le={importClauseOrBindingPattern:Ct,defaultImport:void 0,namedImports:new e.Map}),yt===0){var cr=Le==null?void 0:Le.namedImports.get(_t);Le.namedImports.set(_t,xr(cr,Fe))}else e.Debug.assert(Le.defaultImport===void 0||Le.defaultImport.name===_t,"(Add to Existing) Default import should be missing or match symbolName"),Le.defaultImport={name:_t,addAsTypeOnly:xr((Rr=Le.defaultImport)===null||Rr===void 0?void 0:Rr.addAsTypeOnly,Fe)};break}case 3:{var $r=Fr.moduleSpecifier,yt=Fr.importKind,Re=Fr.useRequire,Fe=Fr.addAsTypeOnly,Le=Br($r,yt,Re,Fe);switch(e.Debug.assert(Le.useRequire===Re,"(Add new) Tried to add an `import` and a `require` for the same module"),yt){case 1:e.Debug.assert(Le.defaultImport===void 0||Le.defaultImport.name===_t,"(Add new) Default import should be missing or match symbolName"),Le.defaultImport={name:_t,addAsTypeOnly:xr((zr=Le.defaultImport)===null||zr===void 0?void 0:zr.addAsTypeOnly,Fe)};break;case 0:var cr=(Le.namedImports||(Le.namedImports=new e.Map)).get(_t);Le.namedImports.set(_t,xr(cr,Fe));break;case 3:case 2:e.Debug.assert(Le.namespaceLikeImport===void 0||Le.namespaceLikeImport.name===_t,"Namespacelike import shoudl be missing or match symbolName"),Le.namespaceLikeImport={importKind:yt,name:_t,addAsTypeOnly:Fe};break}break}case 4:break;default:e.Debug.assertNever(Fr,"fix wasn't never - got kind ".concat(Fr.kind))}function xr(ct,ft){return Math.max(ct??0,ft)}function Br(ct,ft,Dt,Me){var Ke=Qr(ct,!0),Vr=Qr(ct,!1),Yr=wr.get(Ke),Nt=wr.get(Vr),Wt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Dt};return ft===1&&Me===2?Yr||(wr.set(Ke,Wt),Wt):Me===1&&(Yr||Nt)?Yr||Nt:Nt||(wr.set(Vr,Wt),Wt)}function Qr(ct,ft){return"".concat(ft?1:0,"|").concat(ct)}}function ut(qr){for(var Rr=e.getQuotePreference(Ae,L),zr=0,Fr=lr;zr<Fr.length;zr++){var _t=Fr[zr];Te(qr,Ae,_t)}for(var Ct=0,yt=mr;Ct<yt.length;Ct++){var _t=yt[Ct];Ne(qr,Ae,_t,Rr)}Hr.forEach(function(vr){var Le=vr.importClauseOrBindingPattern,cr=vr.defaultImport,$r=vr.namedImports;ae(qr,Ae,Le,cr,e.arrayFrom($r.entries(),function(Re){var xr=Re[0],Br=Re[1];return{addAsTypeOnly:Br,name:xr}}),Je)});var Fe;wr.forEach(function(vr,Le){var cr=vr.useRequire,$r=vr.defaultImport,Re=vr.namedImports,xr=vr.namespaceLikeImport,Br=Le.slice(2),Qr=cr?me:tr,ct=Qr(Br,Rr,$r,Re&&e.arrayFrom(Re.entries(),function(ft){var Dt=ft[0],Me=ft[1];return{addAsTypeOnly:Me,name:Dt}}),xr);Fe=e.combine(Fe,ct)}),Fe&&e.insertImports(qr,Ae,Fe,!0)}function or(){return lr.length>0||mr.length>0||Hr.size>0||wr.size>0}}function O(Ae,qe,xe,L){var ue=e.createPackageJsonImportFilter(Ae,L,xe),Ue=F(qe.getTypeChecker(),Ae,qe.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:Je};function Je(lr,mr,Hr,wr,Oe){var Ze=k(lr,{symbolName:mr,position:Hr},wr,!1,qe,Ae,xe,L,Ue,Oe),tt=Ze.fixes,ut=Ze.computedWithoutCacheCount,or=w(tt,Ae,qe,ue,xe);return or&&n(n({},or),{computedWithoutCacheCount:ut})}}c.createImportSpecifierResolver=O;var W;(function(Ae){Ae[Ae.UseNamespace=0]="UseNamespace",Ae[Ae.JsdocTypeImport=1]="JsdocTypeImport",Ae[Ae.AddToExisting=2]="AddToExisting",Ae[Ae.AddNew=3]="AddNew",Ae[Ae.PromoteTypeOnly=4]="PromoteTypeOnly"})(W||(W={}));var E;(function(Ae){Ae[Ae.Allowed=1]="Allowed",Ae[Ae.Required=2]="Required",Ae[Ae.NotAllowed=4]="NotAllowed"})(E||(E={}));function v(Ae,qe,xe,L,ue,Ue,Je,lr,mr,Hr,wr){var Oe=Je.getCompilerOptions(),Ze=e.pathIsBareSpecifier(e.stripQuotes(qe.name))?[ce(Ae,qe,Je,Ue)]:Z(xe,Ae,L,ue,Je,Ue,Hr,wr);e.Debug.assertIsDefined(Ze);var tt=z(xe,Je),ut=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(xe,mr)),or=e.Debug.checkDefined(te(xe,Ze,qe,Je,{symbolName:L,position:mr},ut,tt,Ue,Hr));return{moduleSpecifier:or.moduleSpecifier,codeAction:Y(N({host:Ue,formatContext:lr,preferences:Hr},xe,L,or,!1,e.getQuotePreference(xe,Hr),Oe))}}c.getImportCompletionAction=v;function S(Ae,qe,xe,L,ue,Ue){var Je=xe.getCompilerOptions(),lr=e.single(ee(Ae,xe.getTypeChecker(),qe,Je)),mr=le(Ae,qe,lr,xe),Hr=lr!==qe.text;return mr&&Y(N({host:L,formatContext:ue,preferences:Ue},Ae,lr,mr,Hr,1,Je))}c.getPromoteTypeOnlyCompletionAction=S;function te(Ae,qe,xe,L,ue,Ue,Je,lr,mr){e.Debug.assert(qe.some(function(wr){return wr.moduleSymbol===xe||wr.symbol.parent===xe}),"Some exportInfo should match the specified moduleSymbol");var Hr=e.createPackageJsonImportFilter(Ae,mr,lr);return w(k(qe,ue,Ue,Je,L,Ae,lr,mr).fixes,Ae,L,Hr,lr)}function Y(Ae){var qe=Ae.description,xe=Ae.changes,L=Ae.commands;return{description:qe,changes:xe,commands:L}}function Z(Ae,qe,xe,L,ue,Ue,Je,lr){var mr=ge(ue,Ue);return e.getExportInfoMap(Ae,Ue,ue,Je,lr).search(Ae.path,L,function(Hr){return Hr===xe},function(Hr){if(e.skipAlias(Hr[0].symbol,mr(Hr[0].isFromPackageJson))===qe)return Hr})}function ce(Ae,qe,xe,L){var ue,Ue,Je=xe.getCompilerOptions(),lr=Hr(xe.getTypeChecker(),!1);if(lr)return lr;var mr=(Ue=(ue=L.getPackageJsonAutoImportProvider)===null||ue===void 0?void 0:ue.call(L))===null||Ue===void 0?void 0:Ue.getTypeChecker();return e.Debug.checkDefined(mr&&Hr(mr,!0),"Could not find symbol in specified module for code actions");function Hr(wr,Oe){var Ze=e.getDefaultLikeExportInfo(qe,wr,Je);if(Ze&&e.skipAlias(Ze.symbol,wr)===Ae)return{symbol:Ze.symbol,moduleSymbol:qe,moduleFileName:void 0,exportKind:Ze.exportKind,targetFlags:e.skipAlias(Ae,wr).flags,isFromPackageJson:Oe};var tt=wr.tryGetMemberInModuleExportsAndProperties(Ae.name,qe);if(tt&&e.skipAlias(tt,wr)===Ae)return{symbol:tt,moduleSymbol:qe,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(Ae,wr).flags,isFromPackageJson:Oe}}}function k(Ae,qe,xe,L,ue,Ue,Je,lr,mr,Hr){mr===void 0&&(mr=F(ue.getTypeChecker(),Ue,ue.getCompilerOptions()));var wr=ue.getTypeChecker(),Oe=e.flatMap(Ae,mr.getImportsForExportInfo),Ze=qe&&X(Oe,qe.symbolName,qe.position,wr),tt=B(Oe,xe,wr,ue.getCompilerOptions());if(tt)return{computedWithoutCacheCount:0,fixes:t(t([],Ze?[Ze]:e.emptyArray,!0),[tt],!1)};var ut=fe(Ae,Oe,ue,Ue,qe==null?void 0:qe.position,xe,L,Je,lr,Hr),or=ut.fixes,qr=ut.computedWithoutCacheCount,Rr=qr===void 0?0:qr;return{computedWithoutCacheCount:Rr,fixes:t(t([],Ze?[Ze]:e.emptyArray,!0),or,!0)}}function X(Ae,qe,xe,L){return e.firstDefined(Ae,function(ue){var Ue,Je=ue.declaration,lr=y(Je),mr=(Ue=e.tryGetModuleSpecifierFromDeclaration(Je))===null||Ue===void 0?void 0:Ue.text;if(lr&&mr){var Hr=A(Je,L);if(Hr&&Hr.exports.has(e.escapeLeadingUnderscores(qe)))return{kind:0,namespacePrefix:lr,position:xe,moduleSpecifier:mr}}})}function A(Ae,qe){var xe;switch(Ae.kind){case 257:return qe.resolveExternalModuleName(Ae.initializer.arguments[0]);case 268:return qe.getAliasedSymbol(Ae.symbol);case 269:var L=e.tryCast((xe=Ae.importClause)===null||xe===void 0?void 0:xe.namedBindings,e.isNamespaceImport);return L&&qe.getAliasedSymbol(L.symbol);default:return e.Debug.assertNever(Ae)}}function y(Ae){var qe,xe,L;switch(Ae.kind){case 257:return(qe=e.tryCast(Ae.name,e.isIdentifier))===null||qe===void 0?void 0:qe.text;case 268:return Ae.name.text;case 269:return(L=e.tryCast((xe=Ae.importClause)===null||xe===void 0?void 0:xe.namedBindings,e.isNamespaceImport))===null||L===void 0?void 0:L.name.text;default:return e.Debug.assertNever(Ae)}}function C(Ae,qe,xe,L,ue,Ue){return Ae?qe&&Ue.importsNotUsedAsValues===2||Ue.isolatedModules&&Ue.preserveValueImports&&(!(L&111551)||ue.getTypeOnlyAliasDeclaration(xe))?2:1:4}function B(Ae,qe,xe,L){return e.firstDefined(Ae,function(ue){var Ue=ue.declaration,Je=ue.importKind,lr=ue.symbol,mr=ue.targetFlags;if(!(Je===3||Je===2||Ue.kind===268)){if(Ue.kind===257)return(Je===0||Je===1)&&Ue.name.kind===203?{kind:2,importClauseOrBindingPattern:Ue.name,importKind:Je,moduleSpecifier:Ue.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;var Hr=Ue.importClause;if(!(!Hr||!e.isStringLiteralLike(Ue.moduleSpecifier))){var wr=Hr.name,Oe=Hr.namedBindings;if(!(Hr.isTypeOnly&&!(Je===0&&Oe))){var Ze=C(qe,!1,lr,mr,xe,L);if(!(Je===1&&(wr||Ze===2&&Oe))&&!(Je===0&&(Oe==null?void 0:Oe.kind)===271))return{kind:2,importClauseOrBindingPattern:Hr,importKind:Je,moduleSpecifier:Ue.moduleSpecifier.text,addAsTypeOnly:Ze}}}}})}function F(Ae,qe,xe){for(var L,ue=0,Ue=qe.imports;ue<Ue.length;ue++){var Je=Ue[ue],lr=e.importFromModuleSpecifier(Je);if(e.isVariableDeclarationInitializedToRequire(lr.parent)){var mr=Ae.resolveExternalModuleName(Je);mr&&(L||(L=e.createMultiMap())).add(e.getSymbolId(mr),lr.parent)}else if(lr.kind===269||lr.kind===268){var mr=Ae.getSymbolAtLocation(Je);mr&&(L||(L=e.createMultiMap())).add(e.getSymbolId(mr),lr)}}return{getImportsForExportInfo:function(Hr){var wr=Hr.moduleSymbol,Oe=Hr.exportKind,Ze=Hr.targetFlags,tt=Hr.symbol;if(!(Ze&111551)&&e.isSourceFileJS(qe))return e.emptyArray;var ut=L==null?void 0:L.get(e.getSymbolId(wr));if(!ut)return e.emptyArray;var or=K(qe,Oe,xe);return ut.map(function(qr){return{declaration:qr,importKind:or,symbol:tt,targetFlags:Ze}})}}}function z(Ae,qe){if(!e.isSourceFileJS(Ae))return!1;if(Ae.commonJsModuleIndicator&&!Ae.externalModuleIndicator)return!0;if(Ae.externalModuleIndicator&&!Ae.commonJsModuleIndicator)return!1;var xe=qe.getCompilerOptions();if(xe.configFile)return e.getEmitModuleKind(xe)<e.ModuleKind.ES2015;for(var L=0,ue=qe.getSourceFiles();L<ue.length;L++){var Ue=ue[L];if(!(Ue===Ae||!e.isSourceFileJS(Ue)||qe.isSourceFileFromExternalLibrary(Ue))){if(Ue.commonJsModuleIndicator&&!Ue.externalModuleIndicator)return!0;if(Ue.externalModuleIndicator&&!Ue.commonJsModuleIndicator)return!1}}return!0}function ge(Ae,qe){return e.memoizeOne(function(xe){return xe?qe.getPackageJsonAutoImportProvider().getTypeChecker():Ae.getTypeChecker()})}function Pe(Ae,qe,xe,L,ue,Ue,Je,lr,mr){var Hr=e.isSourceFileJS(qe),wr=Ae.getCompilerOptions(),Oe=e.createModuleSpecifierResolutionHost(Ae,Je),Ze=ge(Ae,Je),tt=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(wr)),ut=mr?function(Rr){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(Rr,qe,Oe,lr),computedWithoutCache:!1}}:function(Rr,zr){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(Rr,zr,wr,qe,Oe,lr)},or=0,qr=e.flatMap(Ue,function(Rr,zr){var Fr=Ze(Rr.isFromPackageJson),_t=ut(Rr.moduleSymbol,Fr),Ct=_t.computedWithoutCache,yt=_t.moduleSpecifiers,Fe=!!(Rr.targetFlags&111551),vr=C(L,!0,Rr.symbol,Rr.targetFlags,Fr,wr);return or+=Ct?1:0,e.mapDefined(yt,function(Le){return tt&&e.pathContainsNodeModules(Le)?void 0:!Fe&&Hr&&xe!==void 0?{kind:1,moduleSpecifier:Le,position:xe,exportInfo:Rr,isReExport:zr>0}:{kind:3,moduleSpecifier:Le,importKind:K(qe,Rr.exportKind,wr),useRequire:ue,addAsTypeOnly:vr,exportInfo:Rr,isReExport:zr>0}})});return{computedWithoutCacheCount:or,fixes:qr}}function fe(Ae,qe,xe,L,ue,Ue,Je,lr,mr,Hr){var wr=e.firstDefined(qe,function(Oe){return _e(Oe,Ue,Je,xe.getTypeChecker(),xe.getCompilerOptions())});return wr?{fixes:[wr]}:Pe(xe,L,ue,Ue,Je,Ae,lr,mr,Hr)}function _e(Ae,qe,xe,L,ue){var Ue,Je=Ae.declaration,lr=Ae.importKind,mr=Ae.symbol,Hr=Ae.targetFlags,wr=(Ue=e.tryGetModuleSpecifierFromDeclaration(Je))===null||Ue===void 0?void 0:Ue.text;if(wr){var Oe=xe?4:C(qe,!0,mr,Hr,L,ue);return{kind:3,moduleSpecifier:wr,importKind:lr,addAsTypeOnly:Oe,useRequire:xe}}}function ne(Ae,qe,xe,L){var ue=e.getTokenAtPosition(Ae.sourceFile,xe),Ue;if(qe===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)Ue=q(Ae,ue);else if(e.isIdentifier(ue))if(qe===e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){var Je=e.single(ee(Ae.sourceFile,Ae.program.getTypeChecker(),ue,Ae.program.getCompilerOptions())),lr=le(Ae.sourceFile,ue,Je,Ae.program);return lr&&[{fix:lr,symbolName:Je,errorIdentifierText:ue.text}]}else Ue=he(Ae,ue,L);else return;var mr=e.createPackageJsonImportFilter(Ae.sourceFile,Ae.preferences,Ae.host);return Ue&&oe(Ue,Ae.sourceFile,Ae.program,mr,Ae.host)}function oe(Ae,qe,xe,L,ue){var Ue=function(Je){return e.toPath(Je,ue.getCurrentDirectory(),e.hostGetCanonicalFileName(ue))};return e.sort(Ae,function(Je,lr){return e.compareBooleans(!!Je.isJsxNamespaceFix,!!lr.isJsxNamespaceFix)||e.compareValues(Je.fix.kind,lr.fix.kind)||re(Je.fix,lr.fix,qe,xe,L.allowsImportingSpecifier,Ue)})}function w(Ae,qe,xe,L,ue){if(e.some(Ae))return Ae[0].kind===0||Ae[0].kind===2?Ae[0]:Ae.reduce(function(Ue,Je){return re(Je,Ue,qe,xe,L.allowsImportingSpecifier,function(lr){return e.toPath(lr,ue.getCurrentDirectory(),e.hostGetCanonicalFileName(ue))})===-1?Je:Ue})}function re(Ae,qe,xe,L,ue,Ue){return Ae.kind!==0&&qe.kind!==0?e.compareBooleans(ue(qe.moduleSpecifier),ue(Ae.moduleSpecifier))||H(Ae.moduleSpecifier,qe.moduleSpecifier,xe,L)||e.compareBooleans(M(Ae,xe,L.getCompilerOptions(),Ue),M(qe,xe,L.getCompilerOptions(),Ue))||e.compareNumberOfDirectorySeparators(Ae.moduleSpecifier,qe.moduleSpecifier):0}function M(Ae,qe,xe,L){var ue;if(Ae.isReExport&&(!((ue=Ae.exportInfo)===null||ue===void 0)&&ue.moduleFileName)&&e.getEmitModuleResolutionKind(xe)===e.ModuleResolutionKind.NodeJs&&U(Ae.exportInfo.moduleFileName)){var Ue=L(e.getDirectoryPath(Ae.exportInfo.moduleFileName));return e.startsWith(qe.path,Ue)}return!1}function U(Ae){return e.getBaseFileName(Ae,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function H(Ae,qe,xe,L){return e.startsWith(Ae,"node:")&&!e.startsWith(qe,"node:")?e.shouldUseUriStyleNodeCoreModules(xe,L)?-1:1:e.startsWith(qe,"node:")&&!e.startsWith(Ae,"node:")?e.shouldUseUriStyleNodeCoreModules(xe,L)?1:-1:0}function q(Ae,qe){var xe=Ae.sourceFile,L=Ae.program,ue=Ae.host,Ue=Ae.preferences,Je=L.getTypeChecker(),lr=R(qe,Je);if(lr){var mr=Je.getAliasedSymbol(lr),Hr=lr.name,wr=[{symbol:lr,moduleSymbol:mr,moduleFileName:void 0,exportKind:3,targetFlags:mr.flags,isFromPackageJson:!1}],Oe=z(xe,L),Ze=e.isIdentifier(qe)?qe.getStart(xe):void 0,tt=k(wr,Ze?{position:Ze,symbolName:Hr}:void 0,!1,Oe,L,xe,ue,Ue).fixes;return tt.map(function(ut){var or;return{fix:ut,symbolName:Hr,errorIdentifierText:(or=e.tryCast(qe,e.isIdentifier))===null||or===void 0?void 0:or.text}})}}function R(Ae,qe){var xe=e.isIdentifier(Ae)?qe.getSymbolAtLocation(Ae):void 0;if(e.isUMDExportSymbol(xe))return xe;var L=Ae.parent;return e.isJsxOpeningLikeElement(L)&&L.tagName===Ae||e.isJsxOpeningFragment(L)?e.tryCast(qe.resolveName(qe.getJsxNamespace(L),e.isJsxOpeningLikeElement(L)?Ae:L,111551,!1),e.isUMDExportSymbol):void 0}function K(Ae,qe,xe,L){switch(qe){case 0:return 0;case 1:return 1;case 2:return De(Ae,xe,!!L);case 3:return I(Ae,xe,!!L);default:return e.Debug.assertNever(qe)}}c.getImportKind=K;function I(Ae,qe,xe){if(e.getAllowSyntheticDefaultImports(qe))return 1;var L=e.getEmitModuleKind(qe);switch(L){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(Ae)&&(e.isExternalModule(Ae)||xe)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return Ae.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(L,"Unexpected moduleKind ".concat(L))}}function he(Ae,qe,xe){var L=Ae.sourceFile,ue=Ae.program,Ue=Ae.cancellationToken,Je=Ae.host,lr=Ae.preferences,mr=ue.getTypeChecker(),Hr=ue.getCompilerOptions();return e.flatMap(ee(L,mr,qe,Hr),function(wr){if(wr!=="default"){var Oe=e.isValidTypeOnlyAliasUseSite(qe),Ze=z(L,ue),tt=de(wr,e.isJSXTagName(qe),e.getMeaningFromLocation(qe),Ue,L,ue,xe,Je,lr),ut=e.arrayFrom(e.flatMapIterator(tt.entries(),function(or){or[0];var qr=or[1];return k(qr,{symbolName:wr,position:qe.getStart(L)},Oe,Ze,ue,L,Je,lr).fixes}));return ut.map(function(or){return{fix:or,symbolName:wr,errorIdentifierText:qe.text,isJsxNamespaceFix:wr!==qe.text}})}})}function le(Ae,qe,xe,L){var ue=L.getTypeChecker(),Ue=ue.resolveName(xe,qe,111551,!0);if(Ue){var Je=ue.getTypeOnlyAliasDeclaration(Ue);if(!(!Je||e.getSourceFileOfNode(Je)!==Ae))return{kind:4,typeOnlyAliasDeclaration:Je}}}function ee(Ae,qe,xe,L){var ue=xe.parent;if((e.isJsxOpeningLikeElement(ue)||e.isJsxClosingElement(ue))&&ue.tagName===xe&&e.jsxModeNeedsExplicitImport(L.jsx)){var Ue=qe.getJsxNamespace(Ae);if(J(Ue,xe,qe)){var Je=!e.isIntrinsicJsxName(xe.text)&&!qe.resolveName(xe.text,xe,111551,!1);return Je?[xe.text,Ue]:[Ue]}}return[xe.text]}function J(Ae,qe,xe){if(e.isIntrinsicJsxName(qe.text))return!0;var L=xe.resolveName(Ae,qe,111551,!0);return!L||e.some(L.declarations,e.isTypeOnlyImportOrExportDeclaration)&&!(L.flags&111551)}function de(Ae,qe,xe,L,ue,Ue,Je,lr,mr){var Hr,wr=e.createMultiMap(),Oe=e.createPackageJsonImportFilter(ue,mr,lr),Ze=(Hr=lr.getModuleSpecifierCache)===null||Hr===void 0?void 0:Hr.call(lr),tt=e.memoizeOne(function(or){return e.createModuleSpecifierResolutionHost(or?lr.getPackageJsonAutoImportProvider():Ue,lr)});function ut(or,qr,Rr,zr,Fr,_t){var Ct=tt(_t);if(qr&&e.isImportableFile(Fr,ue,qr,mr,Oe,Ct,Ze)||!qr&&Oe.allowsImportingAmbientModule(or,Ct)){var yt=Fr.getTypeChecker();wr.add(e.getUniqueSymbolId(Rr,yt).toString(),{symbol:Rr,moduleSymbol:or,moduleFileName:qr==null?void 0:qr.fileName,exportKind:zr,targetFlags:e.skipAlias(Rr,yt).flags,isFromPackageJson:_t})}}return e.forEachExternalModuleToImportFrom(Ue,lr,mr,Je,function(or,qr,Rr,zr){var Fr=Rr.getTypeChecker();L.throwIfCancellationRequested();var _t=Rr.getCompilerOptions(),Ct=e.getDefaultLikeExportInfo(or,Fr,_t);Ct&&(Ct.name===Ae||je(or,e.getEmitScriptTarget(_t),qe)===Ae)&&rr(Ct.symbolForMeaning,xe)&&ut(or,qr,Ct.symbol,Ct.exportKind,Rr,zr);var yt=Fr.tryGetMemberInModuleExportsAndProperties(Ae,or);yt&&rr(yt,xe)&&ut(or,qr,yt,0,Rr,zr)}),wr}function De(Ae,qe,xe){var L=e.getAllowSyntheticDefaultImports(qe),ue=e.isInJSFile(Ae);if(!ue&&e.getEmitModuleKind(qe)>=e.ModuleKind.ES2015)return L?1:2;if(ue)return e.isExternalModule(Ae)||xe?L?1:2:3;for(var Ue=0,Je=Ae.statements;Ue<Je.length;Ue++){var lr=Je[Ue];if(e.isImportEqualsDeclaration(lr)&&!e.nodeIsMissing(lr.moduleReference))return 3}return L?1:3}function N(Ae,qe,xe,L,ue,Ue,Je){var lr,mr=e.textChanges.ChangeTracker.with(Ae,function(Hr){lr=b(Hr,qe,xe,L,ue,Ue,Je)});return c.createCodeFixAction(c.importFixName,mr,lr,P,e.Diagnostics.Add_all_missing_imports)}function b(Ae,qe,xe,L,ue,Ue,Je){switch(L.kind){case 0:return Te(Ae,qe,L),[e.Diagnostics.Change_0_to_1,xe,"".concat(L.namespacePrefix,".").concat(xe)];case 1:return Ne(Ae,qe,L,Ue),[e.Diagnostics.Change_0_to_1,xe,we(L.moduleSpecifier,Ue)+xe];case 2:{var lr=L.importClauseOrBindingPattern,mr=L.importKind,Hr=L.addAsTypeOnly,wr=L.moduleSpecifier;ae(Ae,qe,lr,mr===1?{name:xe,addAsTypeOnly:Hr}:void 0,mr===0?[{name:xe,addAsTypeOnly:Hr}]:e.emptyArray,Je);var Oe=e.stripQuotes(wr);return ue?[e.Diagnostics.Import_0_from_1,xe,Oe]:[e.Diagnostics.Update_import_from_0,Oe]}case 3:{var mr=L.importKind,wr=L.moduleSpecifier,Hr=L.addAsTypeOnly,Ze=L.useRequire,tt=Ze?me:tr,ut=mr===1?{name:xe,addAsTypeOnly:Hr}:void 0,or=mr===0?[{name:xe,addAsTypeOnly:Hr}]:void 0,qr=mr===2||mr===3?{importKind:mr,name:xe,addAsTypeOnly:Hr}:void 0;return e.insertImports(Ae,qe,tt(wr,Ue,ut,or,qr),!0),ue?[e.Diagnostics.Import_0_from_1,xe,wr]:[e.Diagnostics.Add_import_from_0,wr]}case 4:{var Rr=L.typeOnlyAliasDeclaration,zr=G(Ae,Rr,Je,qe);return zr.kind===273?[e.Diagnostics.Remove_type_from_import_of_0_from_1,xe,Q(zr.parent.parent)]:[e.Diagnostics.Remove_type_from_import_declaration_from_0,Q(zr)]}default:return e.Debug.assertNever(L,"Unexpected fix kind ".concat(L.kind))}}function Q(Ae){var qe,xe;return Ae.kind===268?((xe=e.tryCast((qe=e.tryCast(Ae.moduleReference,e.isExternalModuleReference))===null||qe===void 0?void 0:qe.expression,e.isStringLiteralLike))===null||xe===void 0?void 0:xe.text)||Ae.moduleReference.getText():e.cast(Ae.parent.moduleSpecifier,e.isStringLiteral).text}function G(Ae,qe,xe,L){var ue=xe.preserveValueImports&&xe.isolatedModules;switch(qe.kind){case 273:if(qe.isTypeOnly){if(qe.parent.elements.length>1&&e.OrganizeImports.importSpecifiersAreSorted(qe.parent.elements)){Ae.delete(L,qe);var Ue=e.factory.updateImportSpecifier(qe,!1,qe.propertyName,qe.name),Je=e.OrganizeImports.getImportSpecifierInsertionIndex(qe.parent.elements,Ue);Ae.insertImportSpecifierAtIndex(L,Ue,qe.parent,Je)}else Ae.deleteRange(L,qe.getFirstToken());return qe}else return e.Debug.assert(qe.parent.parent.isTypeOnly),lr(qe.parent.parent),qe.parent.parent;case 270:return lr(qe),qe;case 271:return lr(qe.parent),qe.parent;case 268:return Ae.deleteRange(L,qe.getChildAt(1)),qe;default:e.Debug.failBadSyntaxKind(qe)}function lr(mr){if(Ae.delete(L,e.getTypeKeywordOfTypeOnlyImport(mr,L)),ue){var Hr=e.tryCast(mr.namedBindings,e.isNamedImports);if(Hr&&Hr.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(Hr.elements)&&qe.kind===273&&Hr.elements.indexOf(qe)!==0&&(Ae.delete(L,qe),Ae.insertImportSpecifierAtIndex(L,qe,Hr,0));for(var wr=0,Oe=Hr.elements;wr<Oe.length;wr++){var Ze=Oe[wr];Ze!==qe&&!Ze.isTypeOnly&&Ae.insertModifierBefore(L,154,Ze)}}}}}function ae(Ae,qe,xe,L,ue,Ue){var Je;if(xe.kind===203){L&&Fe(xe,L.name,"default");for(var lr=0,mr=ue;lr<mr.length;lr++){var Hr=mr[lr];Fe(xe,Hr.name,void 0)}return}var wr=xe.isTypeOnly&&e.some(t([L],ue,!0),function(vr){return(vr==null?void 0:vr.addAsTypeOnly)===4}),Oe=xe.namedBindings&&((Je=e.tryCast(xe.namedBindings,e.isNamedImports))===null||Je===void 0?void 0:Je.elements),Ze=wr&&Ue.preserveValueImports&&Ue.isolatedModules;if(L&&(e.Debug.assert(!xe.name,"Cannot add a default import to an import clause that already has one"),Ae.insertNodeAt(qe,xe.getStart(qe),e.factory.createIdentifier(L.name),{suffix:", "})),ue.length){var tt=e.stableSort(ue.map(function(vr){return e.factory.createImportSpecifier((!xe.isTypeOnly||wr)&&nr(vr),void 0,e.factory.createIdentifier(vr.name))}),e.OrganizeImports.compareImportOrExportSpecifiers);if(Oe!=null&&Oe.length&&e.OrganizeImports.importSpecifiersAreSorted(Oe))for(var ut=0,or=tt;ut<or.length;ut++){var qr=or[ut],Rr=Ze&&!qr.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(Oe,qr);Ae.insertImportSpecifierAtIndex(qe,qr,xe.namedBindings,Rr)}else if(Oe!=null&&Oe.length)for(var zr=0,Fr=tt;zr<Fr.length;zr++){var qr=Fr[zr];Ae.insertNodeInListAfter(qe,e.last(Oe),qr,Oe)}else if(tt.length){var _t=e.factory.createNamedImports(tt);xe.namedBindings?Ae.replaceNode(qe,xe.namedBindings,_t):Ae.insertNodeAfter(qe,e.Debug.checkDefined(xe.name,"Import clause must have either named imports or a default import"),_t)}}if(wr&&(Ae.delete(qe,e.getTypeKeywordOfTypeOnlyImport(xe,qe)),Ze&&Oe))for(var Ct=0,yt=Oe;Ct<yt.length;Ct++){var Hr=yt[Ct];Ae.insertModifierBefore(qe,154,Hr)}function Fe(vr,Le,cr){var $r=e.factory.createBindingElement(void 0,cr,Le);vr.elements.length?Ae.insertNodeInListAfter(qe,e.last(vr.elements),$r):Ae.replaceNode(qe,vr,e.factory.createObjectBindingPattern([$r]))}}function Te(Ae,qe,xe){var L=xe.namespacePrefix,ue=xe.position;Ae.insertText(qe,ue,L+".")}function Ne(Ae,qe,xe,L){var ue=xe.moduleSpecifier,Ue=xe.position;Ae.insertText(qe,Ue,we(ue,L))}function we(Ae,qe){var xe=e.getQuoteFromPreference(qe);return"import(".concat(xe).concat(Ae).concat(xe,").")}function nr(Ae){var qe=Ae.addAsTypeOnly;return qe===2}function tr(Ae,qe,xe,L,ue){var Ue=e.makeStringLiteral(Ae,qe),Je;if(xe!==void 0||L!=null&&L.length){var lr=(!xe||nr(xe))&&e.every(L,nr);Je=e.combine(Je,e.makeImport(xe&&e.factory.createIdentifier(xe.name),L==null?void 0:L.map(function(Hr){var wr=Hr.addAsTypeOnly,Oe=Hr.name;return e.factory.createImportSpecifier(!lr&&wr===2,void 0,e.factory.createIdentifier(Oe))}),Ae,qe,lr))}if(ue){var mr=ue.importKind===3?e.factory.createImportEqualsDeclaration(void 0,nr(ue),e.factory.createIdentifier(ue.name),e.factory.createExternalModuleReference(Ue)):e.factory.createImportDeclaration(void 0,e.factory.createImportClause(nr(ue),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(ue.name))),Ue,void 0);Je=e.combine(Je,mr)}return e.Debug.checkDefined(Je)}function me(Ae,qe,xe,L,ue){var Ue=e.makeStringLiteral(Ae,qe),Je;if(xe||L!=null&&L.length){var lr=(L==null?void 0:L.map(function(Hr){var wr=Hr.name;return e.factory.createBindingElement(void 0,void 0,wr)}))||[];xe&&lr.unshift(e.factory.createBindingElement(void 0,"default",xe.name));var mr=He(e.factory.createObjectBindingPattern(lr),Ue);Je=e.combine(Je,mr)}if(ue){var mr=He(ue.name,Ue);Je=e.combine(Je,mr)}return e.Debug.checkDefined(Je)}function He(Ae,qe){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof Ae=="string"?e.factory.createIdentifier(Ae):Ae,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[qe]))],2))}function rr(Ae,qe){var xe=Ae.declarations;return e.some(xe,function(L){return!!(e.getMeaningFromDeclaration(L)&qe)})}function je(Ae,qe,xe){return Ce(e.removeFileExtension(e.stripQuotes(Ae.name)),qe,xe)}c.moduleSymbolToValidIdentifier=je;function Ce(Ae,qe,xe){var L=e.getBaseFileName(e.removeSuffix(Ae,"/index")),ue="",Ue=!0,Je=L.charCodeAt(0);e.isIdentifierStart(Je,qe)?(ue+=String.fromCharCode(Je),xe&&(ue=ue.toUpperCase())):Ue=!1;for(var lr=1;lr<L.length;lr++){var mr=L.charCodeAt(lr),Hr=e.isIdentifierPart(mr,qe);if(Hr){var wr=String.fromCharCode(mr);Ue||(wr=wr.toUpperCase()),ue+=wr}Ue=Hr}return e.isStringANonContextualKeyword(ue)?"_".concat(ue):ue||"_"}c.moduleSpecifierToValidIdentifier=Ce})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addMissingConstraint",T=[e.Diagnostics.Type_0_is_not_comparable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Property_0_is_incompatible_with_index_signature.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(E){var v=E.sourceFile,S=E.span,te=E.program,Y=E.preferences,Z=E.host,ce=s(te,v,S);if(ce!==void 0){var k=e.textChanges.ChangeTracker.with(E,function(X){return D(X,te,Y,Z,v,ce)});return[c.createCodeFixAction(P,k,e.Diagnostics.Add_extends_constraint,P,e.Diagnostics.Add_extends_constraint_to_all_type_parameters)]}},fixIds:[P],getAllCodeActions:function(E){var v=E.program,S=E.preferences,te=E.host,Y=new e.Map;return c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(E,function(Z){c.eachDiagnostic(E,T,function(ce){var k=s(v,ce.file,e.createTextSpan(ce.start,ce.length));if(k&&e.addToSeen(Y,e.getNodeId(k.declaration)))return D(Z,v,S,te,ce.file,k)})}))}});function s(E,v,S){var te=e.find(E.getSemanticDiagnostics(v),function(A){return A.start===S.start&&A.length===S.length});if(!(te===void 0||te.relatedInformation===void 0)){var Y=e.find(te.relatedInformation,function(A){return A.code===e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint.code});if(!(Y===void 0||Y.file===void 0||Y.start===void 0||Y.length===void 0)){var Z=c.findAncestorMatchingSpan(Y.file,e.createTextSpan(Y.start,Y.length));if(Z!==void 0&&(e.isIdentifier(Z)&&e.isTypeParameterDeclaration(Z.parent)&&(Z=Z.parent),e.isTypeParameterDeclaration(Z))){if(e.isMappedTypeNode(Z.parent))return;var ce=e.getTokenAtPosition(v,S.start),k=E.getTypeChecker(),X=W(k,ce)||O(Y.messageText);return{constraint:X,declaration:Z,token:ce}}}}}function D(E,v,S,te,Y,Z){var ce=Z.declaration,k=Z.constraint,X=v.getTypeChecker();if(e.isString(k))E.insertText(Y,ce.name.end," extends ".concat(k));else{var A=e.getEmitScriptTarget(v.getCompilerOptions()),y=c.getNoopSymbolTrackerWithResolver({program:v,host:te}),C=c.createImportAdder(Y,v,S,te),B=c.typeToAutoImportableTypeNode(X,C,k,void 0,A,void 0,y);B&&(E.replaceNode(Y,ce,e.factory.updateTypeParameterDeclaration(ce,void 0,ce.name,B,ce.default)),C.writeFixes(E))}}function O(E){var v=e.flattenDiagnosticMessageText(E,`
`,0).match(/`extends (.*)`/)||[];v[0];var S=v[1];return S}function W(E,v){if(e.isTypeNode(v.parent))return E.getTypeArgumentConstraint(v.parent);var S=e.isExpression(v)?E.getContextualType(v):void 0;return S||E.getTypeAtLocation(v)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P,T="fixOverrideModifier",s="fixAddOverrideModifier",D="fixRemoveOverrideModifier",O=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],W=(P={},P[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:s,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},P[e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:s,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},P[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:D,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},P[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:D,fixAllDescriptions:e.Diagnostics.Remove_override_modifier},P[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:s,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},P[e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:s,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},P[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:s,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},P[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:D,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},P[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:D,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},P);c.registerCodeFix({errorCodes:O,getCodeActions:function(ce){var k=ce.errorCode,X=ce.span,A=W[k];if(!A)return e.emptyArray;var y=A.descriptions,C=A.fixId,B=A.fixAllDescriptions,F=e.textChanges.ChangeTracker.with(ce,function(z){return E(z,ce,k,X.start)});return[c.createCodeFixActionMaybeFixAll(T,F,y,C,B)]},fixIds:[T,s,D],getAllCodeActions:function(Z){return c.codeFixAll(Z,O,function(ce,k){var X=k.code,A=k.start,y=W[X];!y||y.fixId!==Z.fixId||E(ce,Z,X,A)})}});function E(Z,ce,k,X){switch(k){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return v(Z,ce.sourceFile,X);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return S(Z,ce.sourceFile,X);default:e.Debug.fail("Unexpected error code: "+k)}}function v(Z,ce,k){var X=Y(ce,k);if(e.isSourceFileJS(ce)){Z.addJSDocTags(ce,X,[e.factory.createJSDocOverrideTag(e.factory.createIdentifier("override"))]);return}var A=X.modifiers||e.emptyArray,y=e.find(A,e.isStaticModifier),C=e.find(A,e.isAbstractModifier),B=e.find(A,function(Pe){return e.isAccessibilityModifier(Pe.kind)}),F=e.findLast(A,e.isDecorator),z=C?C.end:y?y.end:B?B.end:F?e.skipTrivia(ce.text,F.end):X.getStart(ce),ge=B||y||C?{prefix:" "}:{suffix:" "};Z.insertModifierAt(ce,z,161,ge)}function S(Z,ce,k){var X=Y(ce,k);if(e.isSourceFileJS(ce)){Z.filterJSDocTags(ce,X,e.not(e.isJSDocOverrideTag));return}var A=e.find(X.modifiers,e.isOverrideModifier);e.Debug.assertIsDefined(A),Z.deleteModifier(ce,A)}function te(Z){switch(Z.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return e.isParameterPropertyDeclaration(Z,Z.parent);default:return!1}}function Y(Z,ce){var k=e.getTokenAtPosition(Z,ce),X=e.findAncestor(k,function(A){return e.isClassLike(A)?"quit":te(A)});return e.Debug.assert(X&&te(X)),X}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixNoPropertyAccessFromIndexSignature",T=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];c.registerCodeFix({errorCodes:T,fixIds:[P],getCodeActions:function(O){var W=O.sourceFile,E=O.span,v=O.preferences,S=D(W,E.start),te=e.textChanges.ChangeTracker.with(O,function(Y){return s(Y,O.sourceFile,S,v)});return[c.createCodeFixAction(P,te,[e.Diagnostics.Use_element_access_for_0,S.name.text],P,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){return s(W,E.file,D(E.file,E.start),O.preferences)})}});function s(O,W,E,v){var S=e.getQuotePreference(W,v),te=e.factory.createStringLiteral(E.name.text,S===0);O.replaceNode(W,E,e.isPropertyAccessChain(E)?e.factory.createElementAccessChain(E.expression,E.questionDotToken,te):e.factory.createElementAccessExpression(E.expression,te))}function D(O,W){return e.cast(e.getTokenAtPosition(O,W).parent,e.isPropertyAccessExpression)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixImplicitThis",T=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.sourceFile,E=O.program,v=O.span,S,te=e.textChanges.ChangeTracker.with(O,function(Y){S=s(Y,W,v.start,E.getTypeChecker())});return S?[c.createCodeFixAction(P,te,S,P,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O,W){s(O,W.file,W.start,D.program.getTypeChecker())})}});function s(D,O,W,E){var v=e.getTokenAtPosition(O,W);if(e.isThis(v)){var S=e.getThisContainer(v,!1);if(!(!e.isFunctionDeclaration(S)&&!e.isFunctionExpression(S))&&!e.isSourceFile(e.getThisContainer(S,!1))){var te=e.Debug.checkDefined(e.findChildOfKind(S,98,O)),Y=S.name,Z=e.Debug.checkDefined(S.body);return e.isFunctionExpression(S)?Y&&e.FindAllReferences.Core.isSymbolReferencedInFile(Y,E,O,Z)?void 0:(D.delete(O,te),Y&&D.delete(O,Y),D.insertText(O,Z.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,Y?Y.text:e.ANONYMOUS]):(D.replaceNode(O,te,e.factory.createToken(85)),D.insertText(O,Y.end," = "),D.insertText(O,Z.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,Y.text])}}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixImportNonExportedMember",T=[e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code];c.registerCodeFix({errorCodes:T,fixIds:[P],getCodeActions:function(Y){var Z=Y.sourceFile,ce=Y.span,k=Y.program,X=s(Z,ce.start,k);if(X!==void 0){var A=e.textChanges.ChangeTracker.with(Y,function(y){return D(y,k,X)});return[c.createCodeFixAction(P,A,[e.Diagnostics.Export_0_from_module_1,X.exportName.node.text,X.moduleSpecifier],P,e.Diagnostics.Export_all_referenced_locals)]}},getAllCodeActions:function(Y){var Z=Y.program;return c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(Y,function(ce){var k=new e.Map;c.eachDiagnostic(Y,T,function(X){var A=s(X.file,X.start,Z);if(A!==void 0){var y=A.exportName,C=A.node,B=A.moduleSourceFile;if(W(B,y.isTypeOnly)===void 0&&e.canHaveExportModifier(C))ce.insertExportModifier(B,C);else{var F=k.get(B)||{typeOnlyExports:[],exports:[]};y.isTypeOnly?F.typeOnlyExports.push(y):F.exports.push(y),k.set(B,F)}}}),k.forEach(function(X,A){var y=W(A,!0);y&&y.isTypeOnly?(O(ce,Z,A,X.typeOnlyExports,y),O(ce,Z,A,X.exports,W(A,!1))):O(ce,Z,A,t(t([],X.exports,!0),X.typeOnlyExports,!0),y)})}))}});function s(Y,Z,ce){var k,X=e.getTokenAtPosition(Y,Z);if(e.isIdentifier(X)){var A=e.findAncestor(X,e.isImportDeclaration);if(A===void 0)return;var y=e.isStringLiteral(A.moduleSpecifier)?A.moduleSpecifier.text:void 0;if(y===void 0)return;var C=e.getResolvedModule(Y,y,void 0);if(C===void 0)return;var B=ce.getSourceFile(C.resolvedFileName);if(B===void 0||e.isSourceFileFromLibrary(ce,B))return;var F=B.symbol,z=(k=F.valueDeclaration)===null||k===void 0?void 0:k.locals;if(z===void 0)return;var ge=z.get(X.escapedText);if(ge===void 0)return;var Pe=te(ge);if(Pe===void 0)return;var fe={node:X,isTypeOnly:e.isTypeDeclaration(Pe)};return{exportName:fe,node:Pe,moduleSourceFile:B,moduleSpecifier:y}}}function D(Y,Z,ce){var k=ce.exportName,X=ce.node,A=ce.moduleSourceFile,y=W(A,k.isTypeOnly);y?E(Y,Z,A,y,[k]):e.canHaveExportModifier(X)?Y.insertExportModifier(A,X):v(Y,Z,A,[k])}function O(Y,Z,ce,k,X){e.length(k)&&(X?E(Y,Z,ce,X,k):v(Y,Z,ce,k))}function W(Y,Z){var ce=function(k){return e.isExportDeclaration(k)&&(Z&&k.isTypeOnly||!k.isTypeOnly)};return e.findLast(Y.statements,ce)}function E(Y,Z,ce,k,X){var A=k.exportClause&&e.isNamedExports(k.exportClause)?k.exportClause.elements:e.factory.createNodeArray([]),y=!k.isTypeOnly&&!!(Z.getCompilerOptions().isolatedModules||e.find(A,function(C){return C.isTypeOnly}));Y.replaceNode(ce,k,e.factory.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,e.factory.createNamedExports(e.factory.createNodeArray(t(t([],A,!0),S(X,y),!0),A.hasTrailingComma)),k.moduleSpecifier,k.assertClause))}function v(Y,Z,ce,k){Y.insertNodeAtEndOfScope(ce,ce,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(S(k,!!Z.getCompilerOptions().isolatedModules)),void 0,void 0))}function S(Y,Z){return e.factory.createNodeArray(e.map(Y,function(ce){return e.factory.createExportSpecifier(Z&&ce.isTypeOnly,void 0,ce.node)}))}function te(Y){if(Y.valueDeclaration===void 0)return e.firstOrUndefined(Y.declarations);var Z=Y.valueDeclaration,ce=e.isVariableDeclaration(Z)?e.tryCast(Z.parent.parent,e.isVariableStatement):void 0;return ce&&e.length(ce.declarationList.declarations)===1?ce:Z}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixIncorrectNamedTupleSyntax",T=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=W.sourceFile,v=W.span,S=s(E,v.start),te=e.textChanges.ChangeTracker.with(W,function(Y){return D(Y,E,S)});return[c.createCodeFixAction(P,te,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,P,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[P]});function s(O,W){var E=e.getTokenAtPosition(O,W);return e.findAncestor(E,function(v){return v.kind===199})}function D(O,W,E){if(E){for(var v=E.type,S=!1,te=!1;v.kind===187||v.kind===188||v.kind===193;)v.kind===187?S=!0:v.kind===188&&(te=!0),v=v.type;var Y=e.factory.updateNamedTupleMember(E,E.dotDotDotToken||(te?e.factory.createToken(25):void 0),E.name,E.questionToken||(S?e.factory.createToken(57):void 0),v);Y!==E&&O.replaceNode(W,E,Y)}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixSpelling",T=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(E){var v=E.sourceFile,S=E.errorCode,te=s(v,E.span.start,E,S);if(te){var Y=te.node,Z=te.suggestedSymbol,ce=e.getEmitScriptTarget(E.host.getCompilationSettings()),k=e.textChanges.ChangeTracker.with(E,function(X){return D(X,v,Y,Z,ce)});return[c.createCodeFixAction("spelling",k,[e.Diagnostics.Change_spelling_to_0,e.symbolName(Z)],P,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[P],getAllCodeActions:function(E){return c.codeFixAll(E,T,function(v,S){var te=s(S.file,S.start,E,S.code),Y=e.getEmitScriptTarget(E.host.getCompilationSettings());te&&D(v,E.sourceFile,te.node,te.suggestedSymbol,Y)})}});function s(E,v,S,te){var Y=e.getTokenAtPosition(E,v),Z=Y.parent;if(!((te===e.Diagnostics.No_overload_matches_this_call.code||te===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(Z))){var ce=S.program.getTypeChecker(),k;if(e.isPropertyAccessExpression(Z)&&Z.name===Y){e.Debug.assert(e.isMemberName(Y),"Expected an identifier for spelling (property access)");var X=ce.getTypeAtLocation(Z.expression);Z.flags&32&&(X=ce.getNonNullableType(X)),k=ce.getSuggestedSymbolForNonexistentProperty(Y,X)}else if(e.isBinaryExpression(Z)&&Z.operatorToken.kind===101&&Z.left===Y&&e.isPrivateIdentifier(Y)){var A=ce.getTypeAtLocation(Z.right);k=ce.getSuggestedSymbolForNonexistentProperty(Y,A)}else if(e.isQualifiedName(Z)&&Z.right===Y){var y=ce.getSymbolAtLocation(Z.left);y&&y.flags&1536&&(k=ce.getSuggestedSymbolForNonexistentModule(Z.right,y))}else if(e.isImportSpecifier(Z)&&Z.name===Y){e.Debug.assertNode(Y,e.isIdentifier,"Expected an identifier for spelling (import)");var C=e.findAncestor(Y,e.isImportDeclaration),B=W(E,S,C);B&&B.symbol&&(k=ce.getSuggestedSymbolForNonexistentModule(Y,B.symbol))}else if(e.isJsxAttribute(Z)&&Z.name===Y){e.Debug.assertNode(Y,e.isIdentifier,"Expected an identifier for JSX attribute");var F=e.findAncestor(Y,e.isJsxOpeningLikeElement),z=ce.getContextualTypeForArgumentAtIndex(F,0);k=ce.getSuggestedSymbolForNonexistentJSXAttribute(Y,z)}else if(e.hasSyntacticModifier(Z,16384)&&e.isClassElement(Z)&&Z.name===Y){var ge=e.findAncestor(Y,e.isClassLike),Pe=ge?e.getEffectiveBaseTypeNode(ge):void 0,fe=Pe?ce.getTypeAtLocation(Pe):void 0;fe&&(k=ce.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(Y),fe))}else{var _e=e.getMeaningFromLocation(Y),ne=e.getTextOfNode(Y);e.Debug.assert(ne!==void 0,"name should be defined"),k=ce.getSuggestedSymbolForNonexistentSymbol(Y,ne,O(_e))}return k===void 0?void 0:{node:Y,suggestedSymbol:k}}}function D(E,v,S,te,Y){var Z=e.symbolName(te);if(!e.isIdentifierText(Z,Y)&&e.isPropertyAccessExpression(S.parent)){var ce=te.valueDeclaration;ce&&e.isNamedDeclaration(ce)&&e.isPrivateIdentifier(ce.name)?E.replaceNode(v,S,e.factory.createIdentifier(Z)):E.replaceNode(v,S.parent,e.factory.createElementAccessExpression(S.parent.expression,e.factory.createStringLiteral(Z)))}else E.replaceNode(v,S,e.factory.createIdentifier(Z))}function O(E){var v=0;return E&4&&(v|=1920),E&2&&(v|=788968),E&1&&(v|=111551),v}function W(E,v,S){if(!(!S||!e.isStringLiteralLike(S.moduleSpecifier))){var te=e.getResolvedModule(E,S.moduleSpecifier.text,e.getModeForUsageLocation(E,S.moduleSpecifier));if(te)return v.program.getSourceFile(te.resolvedFileName)}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="returnValueCorrect",T="fixAddReturnStatement",s="fixRemoveBracesFromArrowFunctionBody",D="fixWrapTheBlockWithParen",O=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],W;(function(C){C[C.MissingReturnStatement=0]="MissingReturnStatement",C[C.MissingParentheses=1]="MissingParentheses"})(W||(W={})),c.registerCodeFix({errorCodes:O,fixIds:[T,s,D],getCodeActions:function(B){var F=B.program,z=B.sourceFile,ge=B.span.start,Pe=B.errorCode,fe=te(F.getTypeChecker(),z,ge,Pe);if(fe)return fe.kind===W.MissingReturnStatement?e.append([X(B,fe.expression,fe.statement)],e.isArrowFunction(fe.declaration)?A(B,fe.declaration,fe.expression,fe.commentSource):void 0):[y(B,fe.declaration,fe.expression)]},getAllCodeActions:function(C){return c.codeFixAll(C,O,function(B,F){var z=te(C.program.getTypeChecker(),F.file,F.start,F.code);if(z)switch(C.fixId){case T:Z(B,F.file,z.expression,z.statement);break;case s:if(!e.isArrowFunction(z.declaration))return;ce(B,F.file,z.declaration,z.expression,z.commentSource,!1);break;case D:if(!e.isArrowFunction(z.declaration))return;k(B,F.file,z.declaration,z.expression);break;default:e.Debug.fail(JSON.stringify(C.fixId))}})}});function E(C,B,F){var z=C.createSymbol(4,B.escapedText);z.type=C.getTypeAtLocation(F);var ge=e.createSymbolTable([z]);return C.createAnonymousType(void 0,ge,[],[],[])}function v(C,B,F,z){if(!(!B.body||!e.isBlock(B.body)||e.length(B.body.statements)!==1)){var ge=e.first(B.body.statements);if(e.isExpressionStatement(ge)&&S(C,B,C.getTypeAtLocation(ge.expression),F,z))return{declaration:B,kind:W.MissingReturnStatement,expression:ge.expression,statement:ge,commentSource:ge.expression};if(e.isLabeledStatement(ge)&&e.isExpressionStatement(ge.statement)){var Pe=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(ge.label,ge.statement.expression)]),fe=E(C,ge.label,ge.statement.expression);if(S(C,B,fe,F,z))return e.isArrowFunction(B)?{declaration:B,kind:W.MissingParentheses,expression:Pe,statement:ge,commentSource:ge.statement.expression}:{declaration:B,kind:W.MissingReturnStatement,expression:Pe,statement:ge,commentSource:ge.statement.expression}}else if(e.isBlock(ge)&&e.length(ge.statements)===1){var _e=e.first(ge.statements);if(e.isLabeledStatement(_e)&&e.isExpressionStatement(_e.statement)){var Pe=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(_e.label,_e.statement.expression)]),fe=E(C,_e.label,_e.statement.expression);if(S(C,B,fe,F,z))return{declaration:B,kind:W.MissingReturnStatement,expression:Pe,statement:ge,commentSource:_e}}}}}function S(C,B,F,z,ge){if(ge){var Pe=C.getSignatureFromDeclaration(B);if(Pe){e.hasSyntacticModifier(B,512)&&(F=C.createPromiseType(F));var fe=C.createSignature(B,Pe.typeParameters,Pe.thisParameter,Pe.parameters,F,void 0,Pe.minArgumentCount,Pe.flags);F=C.createAnonymousType(void 0,e.createSymbolTable(),[fe],[],[])}else F=C.getAnyType()}return C.isTypeAssignableTo(F,z)}function te(C,B,F,z){var ge=e.getTokenAtPosition(B,F);if(ge.parent){var Pe=e.findAncestor(ge.parent,e.isFunctionLikeDeclaration);switch(z){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!Pe||!Pe.body||!Pe.type||!e.rangeContainsRange(Pe.type,ge)?void 0:v(C,Pe,C.getTypeFromTypeNode(Pe.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!Pe||!e.isCallExpression(Pe.parent)||!Pe.body)return;var fe=Pe.parent.arguments.indexOf(Pe),_e=C.getContextualTypeForArgumentAtIndex(Pe.parent,fe);return _e?v(C,Pe,_e,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(ge)||!e.isVariableLike(ge.parent)&&!e.isJsxAttribute(ge.parent))return;var ne=Y(ge.parent);return!ne||!e.isFunctionLikeDeclaration(ne)||!ne.body?void 0:v(C,ne,C.getTypeAtLocation(ge.parent),!0)}}}function Y(C){switch(C.kind){case 257:case 166:case 205:case 169:case 299:return C.initializer;case 288:return C.initializer&&(e.isJsxExpression(C.initializer)?C.initializer.expression:void 0);case 300:case 168:case 302:case 350:case 343:return}}function Z(C,B,F,z){e.suppressLeadingAndTrailingTrivia(F);var ge=e.probablyUsesSemicolons(B);C.replaceNode(B,z,e.factory.createReturnStatement(F),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:ge?";":void 0})}function ce(C,B,F,z,ge,Pe){var fe=Pe||e.needsParentheses(z)?e.factory.createParenthesizedExpression(z):z;e.suppressLeadingAndTrailingTrivia(ge),e.copyComments(ge,fe),C.replaceNode(B,F.body,fe)}function k(C,B,F,z){C.replaceNode(B,F.body,e.factory.createParenthesizedExpression(z))}function X(C,B,F){var z=e.textChanges.ChangeTracker.with(C,function(ge){return Z(ge,C.sourceFile,B,F)});return c.createCodeFixAction(P,z,e.Diagnostics.Add_a_return_statement,T,e.Diagnostics.Add_all_missing_return_statement)}function A(C,B,F,z){var ge=e.textChanges.ChangeTracker.with(C,function(Pe){return ce(Pe,C.sourceFile,B,F,z,!1)});return c.createCodeFixAction(P,ge,e.Diagnostics.Remove_braces_from_arrow_function_body,s,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function y(C,B,F){var z=e.textChanges.ChangeTracker.with(C,function(ge){return k(ge,C.sourceFile,B,F)});return c.createCodeFixAction(P,z,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,D,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixMissingMember",T="fixMissingProperties",s="fixMissingAttributes",D="fixMissingFunctionDeclaration",O=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code],W;(function(M){M[M.TypeLikeDeclaration=0]="TypeLikeDeclaration",M[M.Enum=1]="Enum",M[M.Function=2]="Function",M[M.ObjectLiteral=3]="ObjectLiteral",M[M.JsxAttributes=4]="JsxAttributes",M[M.Signature=5]="Signature"})(W||(W={})),c.registerCodeFix({errorCodes:O,getCodeActions:function(M){var U=M.program.getTypeChecker(),H=E(M.sourceFile,M.span.start,M.errorCode,U,M.program);if(H){if(H.kind===W.ObjectLiteral){var q=e.textChanges.ChangeTracker.with(M,function(R){return ge(R,M,H)});return[c.createCodeFixAction(T,q,e.Diagnostics.Add_missing_properties,T,e.Diagnostics.Add_all_missing_properties)]}if(H.kind===W.JsxAttributes){var q=e.textChanges.ChangeTracker.with(M,function(K){return z(K,M,H)});return[c.createCodeFixAction(s,q,e.Diagnostics.Add_missing_attributes,s,e.Diagnostics.Add_all_missing_attributes)]}if(H.kind===W.Function||H.kind===W.Signature){var q=e.textChanges.ChangeTracker.with(M,function(K){return F(K,M,H)});return[c.createCodeFixAction(D,q,[e.Diagnostics.Add_missing_function_declaration_0,H.token.text],D,e.Diagnostics.Add_all_missing_function_declarations)]}if(H.kind===W.Enum){var q=e.textChanges.ChangeTracker.with(M,function(K){return B(K,M.program.getTypeChecker(),H)});return[c.createCodeFixAction(P,q,[e.Diagnostics.Add_missing_enum_member_0,H.token.text],P,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(y(M,H),v(M,H))}},fixIds:[P,D,T,s],getAllCodeActions:function(M){var U=M.program,H=M.fixId,q=U.getTypeChecker(),R=new e.Map,K=new e.Map;return c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(M,function(I){c.eachDiagnostic(M,O,function(he){var le=E(he.file,he.start,he.code,q,M.program);if(!(!le||!e.addToSeen(R,e.getNodeId(le.parentDeclaration)+"#"+le.token.text))){if(H===D&&(le.kind===W.Function||le.kind===W.Signature))F(I,M,le);else if(H===T&&le.kind===W.ObjectLiteral)ge(I,M,le);else if(H===s&&le.kind===W.JsxAttributes)z(I,M,le);else if(le.kind===W.Enum&&B(I,q,le),le.kind===W.TypeLikeDeclaration){var ee=le.parentDeclaration,J=le.token,de=e.getOrUpdate(K,ee,function(){return[]});de.some(function(De){return De.token.text===J.text})||de.push(le)}}}),K.forEach(function(he,le){for(var ee=e.isTypeLiteralNode(le)?void 0:c.getAllSupers(le,q),J=function(b){if(ee!=null&&ee.some(function(tr){var me=K.get(tr);return!!me&&me.some(function(He){var rr=He.token;return rr.text===b.token.text})}))return"continue";var Q=b.parentDeclaration,G=b.declSourceFile,ae=b.modifierFlags,Te=b.token,Ne=b.call,we=b.isJSFile;if(Ne&&!e.isPrivateIdentifier(Te))C(M,I,Ne,Te,ae&32,Q,G);else if(we&&!e.isInterfaceDeclaration(Q)&&!e.isTypeLiteralNode(Q))te(I,G,Q,Te,!!(ae&32));else{var nr=ce(q,Q,Te);k(I,G,Q,Te.text,nr,ae&32)}},de=0,De=he;de<De.length;de++){var N=De[de];J(N)}})}))}});function E(M,U,H,q,R){var K=e.getTokenAtPosition(M,U),I=K.parent;if(H===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(K.kind===18&&e.isObjectLiteralExpression(I)&&e.isCallExpression(I.parent)))return;var he=e.findIndex(I.parent.arguments,function(Ce){return Ce===I});if(he<0)return;var le=q.getResolvedSignature(I.parent);if(!(le&&le.declaration&&le.parameters[he]))return;var ee=le.parameters[he].valueDeclaration;if(!(ee&&e.isParameter(ee)&&e.isIdentifier(ee.name)))return;var J=e.arrayFrom(q.getUnmatchedProperties(q.getTypeAtLocation(I),q.getParameterType(le,he),!1,!1));return e.length(J)?{kind:W.ObjectLiteral,token:ee.name,properties:J,parentDeclaration:I}:void 0}if(e.isMemberName(K)){if(e.isIdentifier(K)&&e.hasInitializer(I)&&I.initializer&&e.isObjectLiteralExpression(I.initializer)){var J=e.arrayFrom(q.getUnmatchedProperties(q.getTypeAtLocation(I.initializer),q.getTypeAtLocation(K),!1,!1));return e.length(J)?{kind:W.ObjectLiteral,token:K,properties:J,parentDeclaration:I.initializer}:void 0}if(e.isIdentifier(K)&&e.isJsxOpeningLikeElement(K.parent)){var de=e.getEmitScriptTarget(R.getCompilerOptions()),De=ne(q,de,K.parent);return e.length(De)?{kind:W.JsxAttributes,token:K,attributes:De,parentDeclaration:K.parent}:void 0}if(e.isIdentifier(K)){var N=q.getContextualType(K);if(N&&e.getObjectFlags(N)&16){var le=e.firstOrUndefined(q.getSignaturesOfType(N,0));return le===void 0?void 0:{kind:W.Signature,token:K,signature:le,sourceFile:M,parentDeclaration:re(K)}}if(e.isCallExpression(I)&&I.expression===K)return{kind:W.Function,token:K,call:I,sourceFile:M,modifierFlags:0,parentDeclaration:re(K)}}if(e.isPropertyAccessExpression(I)){var b=e.skipConstraint(q.getTypeAtLocation(I.expression)),Q=b.symbol;if(!(!Q||!Q.declarations)){if(e.isIdentifier(K)&&e.isCallExpression(I.parent)){var G=e.find(Q.declarations,e.isModuleDeclaration),ae=G==null?void 0:G.getSourceFile();if(G&&ae&&!e.isSourceFileFromLibrary(R,ae))return{kind:W.Function,token:K,call:I.parent,sourceFile:M,modifierFlags:1,parentDeclaration:G};var Te=e.find(Q.declarations,e.isSourceFile);if(M.commonJsModuleIndicator)return;if(Te&&!e.isSourceFileFromLibrary(R,Te))return{kind:W.Function,token:K,call:I.parent,sourceFile:Te,modifierFlags:1,parentDeclaration:Te}}var Ne=e.find(Q.declarations,e.isClassLike);if(!(!Ne&&e.isPrivateIdentifier(K))){var we=Ne||e.find(Q.declarations,function(Ce){return e.isInterfaceDeclaration(Ce)||e.isTypeLiteralNode(Ce)});if(we&&!e.isSourceFileFromLibrary(R,we.getSourceFile())){var nr=!e.isTypeLiteralNode(we)&&(b.target||b)!==q.getDeclaredTypeOfSymbol(Q);if(nr&&(e.isPrivateIdentifier(K)||e.isInterfaceDeclaration(we)))return;var tr=we.getSourceFile(),me=e.isTypeLiteralNode(we)?0:(nr?32:0)|(e.startsWithUnderscore(K.text)?8:0),He=e.isSourceFileJS(tr),rr=e.tryCast(I.parent,e.isCallExpression);return{kind:W.TypeLikeDeclaration,token:K,call:rr,modifierFlags:me,parentDeclaration:we,declSourceFile:tr,isJSFile:He}}var je=e.find(Q.declarations,e.isEnumDeclaration);if(je&&!(b.flags&1056)&&!e.isPrivateIdentifier(K)&&!e.isSourceFileFromLibrary(R,je.getSourceFile()))return{kind:W.Enum,token:K,parentDeclaration:je}}}}}}function v(M,U){return U.isJSFile?e.singleElementArray(S(M,U)):Z(M,U)}function S(M,U){var H=U.parentDeclaration,q=U.declSourceFile,R=U.modifierFlags,K=U.token;if(!(e.isInterfaceDeclaration(H)||e.isTypeLiteralNode(H))){var I=e.textChanges.ChangeTracker.with(M,function(le){return te(le,q,H,K,!!(R&32))});if(I.length!==0){var he=R&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(K)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return c.createCodeFixAction(P,I,[he,K.text],P,e.Diagnostics.Add_all_missing_members)}}}function te(M,U,H,q,R){var K=q.text;if(R){if(H.kind===228)return;var I=H.name.getText(),he=Y(e.factory.createIdentifier(I),K);M.insertNodeAfter(U,H,he)}else if(e.isPrivateIdentifier(q)){var le=e.factory.createPropertyDeclaration(void 0,K,void 0,void 0,void 0),ee=X(H);ee?M.insertNodeAfter(U,ee,le):M.insertMemberAtStart(U,H,le)}else{var J=e.getFirstConstructorWithBody(H);if(!J)return;var de=Y(e.factory.createThis(),K);M.insertNodeAtConstructorEnd(U,J,de)}}function Y(M,U){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(M,U),fe()))}function Z(M,U){var H=U.parentDeclaration,q=U.declSourceFile,R=U.modifierFlags,K=U.token,I=K.text,he=R&32,le=ce(M.program.getTypeChecker(),H,K),ee=function(de){return e.textChanges.ChangeTracker.with(M,function(De){return k(De,q,H,I,le,de)})},J=[c.createCodeFixAction(P,ee(R&32),[he?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,I],P,e.Diagnostics.Add_all_missing_members)];return he||e.isPrivateIdentifier(K)||(R&8&&J.unshift(c.createCodeFixActionWithoutFixAll(P,ee(8),[e.Diagnostics.Declare_private_property_0,I])),J.push(A(M,q,H,K.text,le))),J}function ce(M,U,H){var q;if(H.parent.parent.kind===223){var R=H.parent.parent,K=H.parent===R.left?R.right:R.left,I=M.getWidenedType(M.getBaseTypeOfLiteralType(M.getTypeAtLocation(K)));q=M.typeToTypeNode(I,U,1)}else{var he=M.getContextualType(H.parent);q=he?M.typeToTypeNode(he,void 0,1):void 0}return q||e.factory.createKeywordTypeNode(131)}function k(M,U,H,q,R,K){var I=K?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(K)):void 0,he=e.isClassLike(H)?e.factory.createPropertyDeclaration(I,q,void 0,R,void 0):e.factory.createPropertySignature(void 0,q,void 0,R),le=X(H);le?M.insertNodeAfter(U,le,he):M.insertMemberAtStart(U,H,he)}function X(M){for(var U,H=0,q=M.members;H<q.length;H++){var R=q[H];if(!e.isPropertyDeclaration(R))break;U=R}return U}function A(M,U,H,q,R){var K=e.factory.createKeywordTypeNode(152),I=e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,K,void 0),he=e.factory.createIndexSignature(void 0,[I],R),le=e.textChanges.ChangeTracker.with(M,function(ee){return ee.insertMemberAtStart(U,H,he)});return c.createCodeFixActionWithoutFixAll(P,le,[e.Diagnostics.Add_index_signature_for_property_0,q])}function y(M,U){var H=U.parentDeclaration,q=U.declSourceFile,R=U.modifierFlags,K=U.token,I=U.call;if(I!==void 0&&!e.isPrivateIdentifier(K)){var he=K.text,le=function(J){return e.textChanges.ChangeTracker.with(M,function(de){return C(M,de,I,K,J,H,q)})},ee=[c.createCodeFixAction(P,le(R&32),[R&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,he],P,e.Diagnostics.Add_all_missing_members)];return R&8&&ee.unshift(c.createCodeFixActionWithoutFixAll(P,le(8),[e.Diagnostics.Declare_private_method_0,he])),ee}}function C(M,U,H,q,R,K,I){var he=c.createImportAdder(I,M.program,M.preferences,M.host),le=e.isClassLike(K)?171:170,ee=c.createSignatureDeclarationFromCallExpression(le,M,he,H,q,R,K),J=oe(K,H);J?U.insertNodeAfter(I,J,ee):U.insertMemberAtStart(I,K,ee),he.writeFixes(U)}function B(M,U,H){var q=H.token,R=H.parentDeclaration,K=e.some(R.members,function(he){var le=U.getTypeAtLocation(he);return!!(le&&le.flags&402653316)}),I=e.factory.createEnumMember(q,K?e.factory.createStringLiteral(q.text):void 0);M.replaceNode(R.getSourceFile(),R,e.factory.updateEnumDeclaration(R,R.modifiers,R.name,e.concatenate(R.members,e.singleElementArray(I))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function F(M,U,H){var q=e.getQuotePreference(U.sourceFile,U.preferences),R=c.createImportAdder(U.sourceFile,U.program,U.preferences,U.host),K=H.kind===W.Function?c.createSignatureDeclarationFromCallExpression(259,U,R,H.call,e.idText(H.token),H.modifierFlags,H.parentDeclaration):c.createSignatureDeclarationFromSignature(259,U,q,H.signature,c.createStubbedBody(e.Diagnostics.Function_not_implemented.message,q),H.token,void 0,void 0,void 0,R);K===void 0&&e.Debug.fail("fixMissingFunctionDeclaration codefix got unexpected error."),e.isReturnStatement(H.parentDeclaration)?M.insertNodeBefore(H.sourceFile,H.parentDeclaration,K,!0):M.insertNodeAtEndOfScope(H.sourceFile,H.parentDeclaration,K),R.writeFixes(M)}function z(M,U,H){var q=c.createImportAdder(U.sourceFile,U.program,U.preferences,U.host),R=e.getQuotePreference(U.sourceFile,U.preferences),K=U.program.getTypeChecker(),I=H.parentDeclaration.attributes,he=e.some(I.properties,e.isJsxSpreadAttribute),le=e.map(H.attributes,function(de){var De=Pe(U,K,q,R,K.getTypeOfSymbol(de),H.parentDeclaration),N=e.factory.createIdentifier(de.name),b=e.factory.createJsxAttribute(N,e.factory.createJsxExpression(void 0,De));return e.setParent(N,b),b}),ee=e.factory.createJsxAttributes(he?t(t([],le,!0),I.properties,!0):t(t([],I.properties,!0),le,!0)),J={prefix:I.pos===I.end?" ":void 0};M.replaceNode(U.sourceFile,I,ee,J),q.writeFixes(M)}function ge(M,U,H){var q=c.createImportAdder(U.sourceFile,U.program,U.preferences,U.host),R=e.getQuotePreference(U.sourceFile,U.preferences),K=e.getEmitScriptTarget(U.program.getCompilerOptions()),I=U.program.getTypeChecker(),he=e.map(H.properties,function(ee){var J=Pe(U,I,q,R,I.getTypeOfSymbol(ee),H.parentDeclaration);return e.factory.createPropertyAssignment(w(ee,K,R,I),J)}),le={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:H.indentation};M.replaceNode(U.sourceFile,H.parentDeclaration,e.factory.createObjectLiteralExpression(t(t([],H.parentDeclaration.properties,!0),he,!0),!0),le),q.writeFixes(M)}function Pe(M,U,H,q,R,K){if(R.flags&3)return fe();if(R.flags&134217732)return e.factory.createStringLiteral("",q===0);if(R.flags&8)return e.factory.createNumericLiteral(0);if(R.flags&64)return e.factory.createBigIntLiteral("0n");if(R.flags&16)return e.factory.createFalse();if(R.flags&1056){var I=R.symbol.exports?e.firstOrUndefined(e.arrayFrom(R.symbol.exports.values())):R.symbol,he=U.symbolToExpression(R.symbol.parent?R.symbol.parent:R.symbol,111551,void 0,void 0);return I===void 0||he===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(he,U.symbolToString(I))}if(R.flags&256)return e.factory.createNumericLiteral(R.value);if(R.flags&2048)return e.factory.createBigIntLiteral(R.value);if(R.flags&128)return e.factory.createStringLiteral(R.value,q===0);if(R.flags&512)return R===U.getFalseType()||R===U.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(R.flags&65536)return e.factory.createNull();if(R.flags&1048576){var le=e.firstDefined(R.types,function(Q){return Pe(M,U,H,q,Q,K)});return le??fe()}if(U.isArrayLikeType(R))return e.factory.createArrayLiteralExpression();if(_e(R)){var ee=e.map(U.getPropertiesOfType(R),function(Q){var G=Q.valueDeclaration?Pe(M,U,H,q,U.getTypeAtLocation(Q.valueDeclaration),K):fe();return e.factory.createPropertyAssignment(Q.name,G)});return e.factory.createObjectLiteralExpression(ee,!0)}if(e.getObjectFlags(R)&16){var J=e.find(R.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(J===void 0)return fe();var de=U.getSignaturesOfType(R,0);if(de===void 0)return fe();var De=c.createSignatureDeclarationFromSignature(215,M,q,de[0],c.createStubbedBody(e.Diagnostics.Function_not_implemented.message,q),void 0,void 0,void 0,K,H);return De??fe()}if(e.getObjectFlags(R)&1){var N=e.getClassLikeDeclarationOfSymbol(R.symbol);if(N===void 0||e.hasAbstractModifier(N))return fe();var b=e.getFirstConstructorWithBody(N);return b&&e.length(b.parameters)?fe():e.factory.createNewExpression(e.factory.createIdentifier(R.symbol.name),void 0,void 0)}return fe()}function fe(){return e.factory.createIdentifier("undefined")}function _e(M){return M.flags&524288&&(e.getObjectFlags(M)&128||M.symbol&&e.tryCast(e.singleOrUndefined(M.symbol.declarations),e.isTypeLiteralNode))}function ne(M,U,H){var q=M.getContextualType(H.attributes);if(q===void 0)return e.emptyArray;var R=q.getProperties();if(!e.length(R))return e.emptyArray;for(var K=new e.Set,I=0,he=H.attributes.properties;I<he.length;I++){var le=he[I];if(e.isJsxAttribute(le)&&K.add(le.name.escapedText),e.isJsxSpreadAttribute(le))for(var ee=M.getTypeAtLocation(le.expression),J=0,de=ee.getProperties();J<de.length;J++){var De=de[J];K.add(De.escapedName)}}return e.filter(R,function(N){return e.isIdentifierText(N.name,U,1)&&!(N.flags&16777216||e.getCheckFlags(N)&48||K.has(N.escapedName))})}function oe(M,U){if(!e.isTypeLiteralNode(M)){var H=e.findAncestor(U,function(q){return e.isMethodDeclaration(q)||e.isConstructorDeclaration(q)});return H&&H.parent===M?H:void 0}}function w(M,U,H,q){if(e.isTransientSymbol(M)){var R=q.symbolToNode(M,111551,void 0,1073741824);if(R&&e.isComputedPropertyName(R))return R}return e.createPropertyNameNodeForIdentifierOrLiteral(M.name,U,H===0)}function re(M){if(e.findAncestor(M,e.isJsxExpression)){var U=e.findAncestor(M.parent,e.isReturnStatement);if(U)return U}return e.getSourceFileOfNode(M)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addMissingNewOperator",T=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.sourceFile,E=O.span,v=e.textChanges.ChangeTracker.with(O,function(S){return s(S,W,E)});return[c.createCodeFixAction(P,v,e.Diagnostics.Add_missing_new_operator_to_call,P,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){return s(W,O.sourceFile,E)})}});function s(O,W,E){var v=e.cast(D(W,E),e.isCallExpression),S=e.factory.createNewExpression(v.expression,v.typeArguments,v.arguments);O.replaceNode(W,v,S)}function D(O,W){for(var E=e.getTokenAtPosition(O,W.start),v=e.textSpanEnd(W);E.end<v;)E=E.parent;return E}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixCannotFindModule",T="installTypesPackage",s=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,D=[s,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];c.registerCodeFix({errorCodes:D,getCodeActions:function(S){var te=S.host,Y=S.sourceFile,Z=S.span.start,ce=W(Y,Z);if(ce!==void 0){var k=E(ce,te,S.errorCode);return k===void 0?[]:[c.createCodeFixAction(P,[],[e.Diagnostics.Install_0,k],T,e.Diagnostics.Install_all_missing_types_packages,O(Y.fileName,k))]}},fixIds:[T],getAllCodeActions:function(v){return c.codeFixAll(v,D,function(S,te,Y){var Z=W(te.file,te.start);if(Z!==void 0)switch(v.fixId){case T:{var ce=E(Z,v.host,te.code);ce&&Y.push(O(te.file.fileName,ce));break}default:e.Debug.fail("Bad fixId: ".concat(v.fixId))}})}});function O(v,S){return{type:"install package",file:v,packageName:S}}function W(v,S){var te=e.tryCast(e.getTokenAtPosition(v,S),e.isStringLiteral);if(te){var Y=te.text,Z=e.parsePackageName(Y).packageName;return e.isExternalModuleNameRelative(Z)?void 0:Z}}function E(v,S,te){var Y;return te===s?e.JsTyping.nodeCoreModules.has(v)?"@types/node":void 0:!((Y=S.isKnownTypesPackageName)===null||Y===void 0)&&Y.call(S,v)?e.getTypesPackageName(v):void 0}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],T="fixClassDoesntImplementInheritedAbstractMember";c.registerCodeFix({errorCodes:P,getCodeActions:function(E){var v=E.sourceFile,S=E.span,te=e.textChanges.ChangeTracker.with(E,function(Y){return D(s(v,S.start),v,E,Y,E.preferences)});return te.length===0?void 0:[c.createCodeFixAction(T,te,e.Diagnostics.Implement_inherited_abstract_class,T,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[T],getAllCodeActions:function(E){var v=new e.Map;return c.codeFixAll(E,P,function(S,te){var Y=s(te.file,te.start);e.addToSeen(v,e.getNodeId(Y))&&D(Y,E.sourceFile,E,S,E.preferences)})}});function s(W,E){var v=e.getTokenAtPosition(W,E);return e.cast(v.parent,e.isClassLike)}function D(W,E,v,S,te){var Y=e.getEffectiveBaseTypeNode(W),Z=v.program.getTypeChecker(),ce=Z.getTypeAtLocation(Y),k=Z.getPropertiesOfType(ce).filter(O),X=c.createImportAdder(E,v.program,te,v.host);c.createMissingMemberNodes(W,k,E,v,te,X,function(A){return S.insertMemberAtStart(E,W,A)}),X.writeFixes(S)}function O(W){var E=e.getSyntacticModifierFlags(e.first(W.getDeclarations()));return!(E&8)&&!!(E&256)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="classSuperMustPrecedeThisAccess",T=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=W.sourceFile,v=W.span,S=D(E,v.start);if(S){var te=S.constructor,Y=S.superCall,Z=e.textChanges.ChangeTracker.with(W,function(ce){return s(ce,E,te,Y)});return[c.createCodeFixAction(P,Z,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,P,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[P],getAllCodeActions:function(W){var E=W.sourceFile,v=new e.Map;return c.codeFixAll(W,T,function(S,te){var Y=D(te.file,te.start);if(Y){var Z=Y.constructor,ce=Y.superCall;e.addToSeen(v,e.getNodeId(Z.parent))&&s(S,E,Z,ce)}})}});function s(W,E,v,S){W.insertNodeAtConstructorStart(E,v,S),W.delete(E,S)}function D(W,E){var v=e.getTokenAtPosition(W,E);if(v.kind===108){var S=e.getContainingFunction(v),te=O(S.body);return te&&!te.expression.arguments.some(function(Y){return e.isPropertyAccessExpression(Y)&&Y.expression===v})?{constructor:S,superCall:te}:void 0}}function O(W){return e.isExpressionStatement(W)&&e.isSuperCall(W.expression)?W:e.isFunctionLike(W)?void 0:e.forEachChild(W,O)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="constructorForDerivedNeedSuperCall",T=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.sourceFile,E=O.span,v=s(W,E.start),S=e.textChanges.ChangeTracker.with(O,function(te){return D(te,W,v)});return[c.createCodeFixAction(P,S,e.Diagnostics.Add_missing_super_call,P,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){return D(W,O.sourceFile,s(E.file,E.start))})}});function s(O,W){var E=e.getTokenAtPosition(O,W);return e.Debug.assert(e.isConstructorDeclaration(E.parent),"token should be at the constructor declaration"),E.parent}function D(O,W,E){var v=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));O.insertNodeAtConstructorStart(W,E,v)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="enableExperimentalDecorators",T=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.program.getCompilerOptions().configFile;if(W!==void 0){var E=e.textChanges.ChangeTracker.with(O,function(v){return s(v,W)});return[c.createCodeFixActionWithoutFixAll(P,E,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O){var W=D.program.getCompilerOptions().configFile;W!==void 0&&s(O,W)})}});function s(D,O){c.setJsonCompilerOptionValue(D,O,"experimentalDecorators",e.factory.createTrue())}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixEnableJsxFlag",T=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.program.getCompilerOptions().configFile;if(W!==void 0){var E=e.textChanges.ChangeTracker.with(O,function(v){return s(v,W)});return[c.createCodeFixActionWithoutFixAll(P,E,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O){var W=D.program.getCompilerOptions().configFile;W!==void 0&&s(O,W)})}});function s(D,O){c.setJsonCompilerOptionValue(D,O,"jsx",e.factory.createStringLiteral("react"))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixNaNEquality",T=[e.Diagnostics.This_condition_will_always_return_0.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=W.sourceFile,v=W.span,S=W.program,te=s(S,E,v);if(te!==void 0){var Y=te.suggestion,Z=te.expression,ce=te.arg,k=e.textChanges.ChangeTracker.with(W,function(X){return D(X,E,ce,Z)});return[c.createCodeFixAction(P,k,[e.Diagnostics.Use_0,Y],P,e.Diagnostics.Use_Number_isNaN_in_all_conditions)]}},fixIds:[P],getAllCodeActions:function(W){return c.codeFixAll(W,T,function(E,v){var S=s(W.program,v.file,e.createTextSpan(v.start,v.length));S&&D(E,v.file,S.arg,S.expression)})}});function s(W,E,v){var S=e.find(W.getSemanticDiagnostics(E),function(Z){return Z.start===v.start&&Z.length===v.length});if(!(S===void 0||S.relatedInformation===void 0)){var te=e.find(S.relatedInformation,function(Z){return Z.code===e.Diagnostics.Did_you_mean_0.code});if(!(te===void 0||te.file===void 0||te.start===void 0||te.length===void 0)){var Y=c.findAncestorMatchingSpan(te.file,e.createTextSpan(te.start,te.length));if(Y!==void 0&&e.isExpression(Y)&&e.isBinaryExpression(Y.parent))return{suggestion:O(te.messageText),expression:Y.parent,arg:Y}}}}function D(W,E,v,S){var te=e.factory.createCallExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Number"),e.factory.createIdentifier("isNaN")),void 0,[v]),Y=S.operatorToken.kind;W.replaceNode(E,S,Y===37||Y===35?e.factory.createPrefixUnaryExpression(53,te):te)}function O(W){var E=e.flattenDiagnosticMessageText(W,`
`,0).match(/\'(.*)\'/)||[];E[0];var v=E[1];return v}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){c.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(T){var s=T.program.getCompilerOptions(),D=s.configFile;if(D!==void 0){var O=[],W=e.getEmitModuleKind(s),E=W>=e.ModuleKind.ES2015&&W<e.ModuleKind.ESNext;if(E){var v=e.textChanges.ChangeTracker.with(T,function(Y){c.setJsonCompilerOptionValue(Y,D,"module",e.factory.createStringLiteral("esnext"))});O.push(c.createCodeFixActionWithoutFixAll("fixModuleOption",v,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var S=e.getEmitScriptTarget(s),te=S<4||S>99;if(te){var v=e.textChanges.ChangeTracker.with(T,function(Z){var ce=e.getTsConfigObjectLiteralExpression(D);if(ce){var k=[["target",e.factory.createStringLiteral("es2017")]];W===e.ModuleKind.CommonJS&&k.push(["module",e.factory.createStringLiteral("commonjs")]),c.setJsonCompilerOptionValues(Z,D,k)}});O.push(c.createCodeFixActionWithoutFixAll("fixTargetOption",v,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return O.length?O:void 0}}})})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixPropertyAssignment",T=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];c.registerCodeFix({errorCodes:T,fixIds:[P],getCodeActions:function(O){var W=O.sourceFile,E=O.span,v=D(W,E.start),S=e.textChanges.ChangeTracker.with(O,function(te){return s(te,O.sourceFile,v)});return[c.createCodeFixAction(P,S,[e.Diagnostics.Change_0_to_1,"=",":"],P,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){return s(W,E.file,D(E.file,E.start))})}});function s(O,W,E){O.replaceNode(W,E,e.factory.createPropertyAssignment(E.name,E.objectAssignmentInitializer))}function D(O,W){return e.cast(e.getTokenAtPosition(O,W).parent,e.isShorthandPropertyAssignment)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="extendsInterfaceBecomesImplements",T=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.sourceFile,E=s(W,O.span.start);if(E){var v=E.extendsToken,S=E.heritageClauses,te=e.textChanges.ChangeTracker.with(O,function(Y){return D(Y,W,v,S)});return[c.createCodeFixAction(P,te,e.Diagnostics.Change_extends_to_implements,P,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){var v=s(E.file,E.start);v&&D(W,E.file,v.extendsToken,v.heritageClauses)})}});function s(O,W){var E=e.getTokenAtPosition(O,W),v=e.getContainingClass(E).heritageClauses,S=v[0].getFirstToken();return S.kind===94?{extendsToken:S,heritageClauses:v}:void 0}function D(O,W,E,v){if(O.replaceNode(W,E,e.factory.createToken(117)),v.length===2&&v[0].token===94&&v[1].token===117){var S=v[1].getFirstToken(),te=S.getFullStart();O.replaceRange(W,{pos:te,end:te},e.factory.createToken(27));for(var Y=W.text,Z=S.end;Z<Y.length&&e.isWhiteSpaceSingleLine(Y.charCodeAt(Z));)Z++;O.deleteRange(W,{pos:S.getStart(),end:Z})}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="forgottenThisPropertyAccess",T=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,s=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,T];c.registerCodeFix({errorCodes:s,getCodeActions:function(W){var E=W.sourceFile,v=D(E,W.span.start,W.errorCode);if(v){var S=e.textChanges.ChangeTracker.with(W,function(te){return O(te,E,v)});return[c.createCodeFixAction(P,S,[e.Diagnostics.Add_0_to_unresolved_variable,v.className||"this"],P,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[P],getAllCodeActions:function(W){return c.codeFixAll(W,s,function(E,v){var S=D(v.file,v.start,v.code);S&&O(E,W.sourceFile,S)})}});function D(W,E,v){var S=e.getTokenAtPosition(W,E);if(e.isIdentifier(S)||e.isPrivateIdentifier(S))return{node:S,className:v===T?e.getContainingClass(S).name.text:void 0}}function O(W,E,v){var S=v.node,te=v.className;e.suppressLeadingAndTrailingTrivia(S),W.replaceNode(E,S,e.factory.createPropertyAccessExpression(te?e.factory.createIdentifier(te):e.factory.createThis(),S))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixInvalidJsxCharacters_expression",T="fixInvalidJsxCharacters_htmlEntity",s=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];c.registerCodeFix({errorCodes:s,fixIds:[P,T],getCodeActions:function(E){var v=E.sourceFile,S=E.preferences,te=E.span,Y=e.textChanges.ChangeTracker.with(E,function(ce){return W(ce,S,v,te.start,!1)}),Z=e.textChanges.ChangeTracker.with(E,function(ce){return W(ce,S,v,te.start,!0)});return[c.createCodeFixAction(P,Y,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,P,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),c.createCodeFixAction(T,Z,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,T,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(E){return c.codeFixAll(E,s,function(v,S){return W(v,E.preferences,S.file,S.start,E.fixId===T)})}});var D={">":"&gt;","}":"&rbrace;"};function O(E){return e.hasProperty(D,E)}function W(E,v,S,te,Y){var Z=S.getText()[te];if(O(Z)){var ce=Y?D[Z]:"{".concat(e.quote(S,v,Z),"}");E.replaceRangeWithText(S,{pos:te,end:te+1},ce)}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="deleteUnmatchedParameter",T="renameUnmatchedParameter",s=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];c.registerCodeFix({fixIds:[P,T],errorCodes:s,getCodeActions:function(v){var S=v.sourceFile,te=v.span,Y=[],Z=W(S,te.start);if(Z)return e.append(Y,D(v,Z)),e.append(Y,O(v,Z)),Y},getAllCodeActions:function(v){var S=new e.Map;return c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(v,function(te){c.eachDiagnostic(v,s,function(Y){var Z=Y.file,ce=Y.start,k=W(Z,ce);k&&S.set(k.signature,e.append(S.get(k.signature),k.jsDocParameterTag))}),S.forEach(function(Y,Z){if(v.fixId===P){var ce=new e.Set(Y);te.filterJSDocTags(Z.getSourceFile(),Z,function(k){return!ce.has(k)})}})}))}});function D(E,v){var S=v.name,te=v.signature,Y=v.jsDocParameterTag,Z=e.textChanges.ChangeTracker.with(E,function(ce){return ce.filterJSDocTags(E.sourceFile,te,function(k){return k!==Y})});return c.createCodeFixAction(P,Z,[e.Diagnostics.Delete_unused_param_tag_0,S.getText(E.sourceFile)],P,e.Diagnostics.Delete_all_unused_param_tags)}function O(E,v){var S=v.name,te=v.signature,Y=v.jsDocParameterTag;if(e.length(te.parameters)){for(var Z=E.sourceFile,ce=e.getJSDocTags(te),k=new e.Set,X=0,A=ce;X<A.length;X++){var y=A[X];e.isJSDocParameterTag(y)&&e.isIdentifier(y.name)&&k.add(y.name.escapedText)}var C=e.firstDefined(te.parameters,function(z){return e.isIdentifier(z.name)&&!k.has(z.name.escapedText)?z.name.getText(Z):void 0});if(C!==void 0){var B=e.factory.updateJSDocParameterTag(Y,Y.tagName,e.factory.createIdentifier(C),Y.isBracketed,Y.typeExpression,Y.isNameFirst,Y.comment),F=e.textChanges.ChangeTracker.with(E,function(z){return z.replaceJSDocComment(Z,te,e.map(ce,function(ge){return ge===Y?B:ge}))});return c.createCodeFixActionWithoutFixAll(T,F,[e.Diagnostics.Rename_param_tag_name_0_to_1,S.getText(Z),C])}}}function W(E,v){var S=e.getTokenAtPosition(E,v);if(S.parent&&e.isJSDocParameterTag(S.parent)&&e.isIdentifier(S.parent.name)){var te=S.parent,Y=e.getHostSignatureFromJSDoc(te);if(Y)return{signature:Y,name:S.parent.name,jsDocParameterTag:te}}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixUnreferenceableDecoratorMetadata",T=[e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=s(W.sourceFile,W.program,W.span.start);if(E){var v=e.textChanges.ChangeTracker.with(W,function(Y){return E.kind===273&&O(Y,W.sourceFile,E,W.program)}),S=e.textChanges.ChangeTracker.with(W,function(Y){return D(Y,W.sourceFile,E,W.program)}),te;return v.length&&(te=e.append(te,c.createCodeFixActionWithoutFixAll(P,v,e.Diagnostics.Convert_named_imports_to_namespace_import))),S.length&&(te=e.append(te,c.createCodeFixActionWithoutFixAll(P,S,e.Diagnostics.Convert_to_type_only_import))),te}},fixIds:[P]});function s(W,E,v){var S=e.tryCast(e.getTokenAtPosition(W,v),e.isIdentifier);if(!(!S||S.parent.kind!==180)){var te=E.getTypeChecker(),Y=te.getSymbolAtLocation(S);return e.find((Y==null?void 0:Y.declarations)||e.emptyArray,e.or(e.isImportClause,e.isImportSpecifier,e.isImportEqualsDeclaration))}}function D(W,E,v,S){if(v.kind===268){W.insertModifierBefore(E,154,v.name);return}var te=v.kind===270?v:v.parent.parent;if(!(te.name&&te.namedBindings)){var Y=S.getTypeChecker(),Z=!!e.forEachImportClauseDeclaration(te,function(ce){if(e.skipAlias(ce.symbol,Y).flags&111551)return!0});Z||W.insertModifierBefore(E,154,te)}}function O(W,E,v,S){e.refactor.doChangeNamedToNamespaceOrDefault(E,S,W,v.parent)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="unusedIdentifier",T="unusedIdentifier_prefix",s="unusedIdentifier_delete",D="unusedIdentifier_deleteImports",O="unusedIdentifier_infer",W=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];c.registerCodeFix({errorCodes:W,getCodeActions:function(_e){var ne=_e.errorCode,oe=_e.sourceFile,w=_e.program,re=_e.cancellationToken,M=w.getTypeChecker(),U=w.getSourceFiles(),H=e.getTokenAtPosition(oe,_e.span.start);if(e.isJSDocTemplateTag(H))return[v(e.textChanges.ChangeTracker.with(_e,function(de){return de.delete(oe,H)}),e.Diagnostics.Remove_template_tag)];if(H.kind===29){var q=e.textChanges.ChangeTracker.with(_e,function(de){return S(de,oe,H)});return[v(q,e.Diagnostics.Remove_type_parameters)]}var R=Y(H);if(R){var q=e.textChanges.ChangeTracker.with(_e,function(De){return De.delete(oe,R)});return[c.createCodeFixAction(P,q,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(R)],D,e.Diagnostics.Delete_all_unused_imports)]}else if(te(H)){var K=e.textChanges.ChangeTracker.with(_e,function(de){return y(oe,H,de,M,U,w,re,!1)});if(K.length)return[c.createCodeFixAction(P,K,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,H.getText(oe)],D,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(H.parent)||e.isArrayBindingPattern(H.parent)){if(e.isParameter(H.parent.parent)){var I=H.parent.elements,he=[I.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(I,function(de){return de.getText(oe)}).join(", ")];return[v(e.textChanges.ChangeTracker.with(_e,function(de){return k(de,oe,H.parent)}),he)]}return[v(e.textChanges.ChangeTracker.with(_e,function(de){return de.delete(oe,H.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(Z(oe,H))return[v(e.textChanges.ChangeTracker.with(_e,function(de){return ce(de,oe,H.parent)}),e.Diagnostics.Remove_variable_statement)];var le=[];if(H.kind===138){var q=e.textChanges.ChangeTracker.with(_e,function(De){return E(De,oe,H)}),ee=e.cast(H.parent,e.isInferTypeNode).typeParameter.name.text;le.push(c.createCodeFixAction(P,q,[e.Diagnostics.Replace_infer_0_with_unknown,ee],O,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var K=e.textChanges.ChangeTracker.with(_e,function(De){return y(oe,H,De,M,U,w,re,!1)});if(K.length){var ee=e.isComputedPropertyName(H.parent)?H.parent:H;le.push(v(K,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,ee.getText(oe)]))}}var J=e.textChanges.ChangeTracker.with(_e,function(de){return X(de,ne,oe,H)});return J.length&&le.push(c.createCodeFixAction(P,J,[e.Diagnostics.Prefix_0_with_an_underscore,H.getText(oe)],T,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),le},fixIds:[T,s,D,O],getAllCodeActions:function(_e){var ne=_e.sourceFile,oe=_e.program,w=_e.cancellationToken,re=oe.getTypeChecker(),M=oe.getSourceFiles();return c.codeFixAll(_e,W,function(U,H){var q=e.getTokenAtPosition(ne,H.start);switch(_e.fixId){case T:X(U,H.code,ne,q);break;case D:{var R=Y(q);R?U.delete(ne,R):te(q)&&y(ne,q,U,re,M,oe,w,!0);break}case s:{if(q.kind===138||te(q))break;if(e.isJSDocTemplateTag(q))U.delete(ne,q);else if(q.kind===29)S(U,ne,q);else if(e.isObjectBindingPattern(q.parent)){if(q.parent.parent.initializer)break;(!e.isParameter(q.parent.parent)||F(q.parent.parent,re,M))&&U.delete(ne,q.parent.parent)}else{if(e.isArrayBindingPattern(q.parent.parent)&&q.parent.parent.parent.initializer)break;Z(ne,q)?ce(U,ne,q.parent):y(ne,q,U,re,M,oe,w,!0)}break}case O:q.kind===138&&E(U,ne,q);break;default:e.Debug.fail(JSON.stringify(_e.fixId))}})}});function E(_e,ne,oe){_e.replaceNode(ne,oe.parent,e.factory.createKeywordTypeNode(157))}function v(_e,ne){return c.createCodeFixAction(P,_e,ne,s,e.Diagnostics.Delete_all_unused_declarations)}function S(_e,ne,oe){_e.delete(ne,e.Debug.checkDefined(e.cast(oe.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function te(_e){return _e.kind===100||_e.kind===79&&(_e.parent.kind===273||_e.parent.kind===270)}function Y(_e){return _e.kind===100?e.tryCast(_e.parent,e.isImportDeclaration):void 0}function Z(_e,ne){return e.isVariableDeclarationList(ne.parent)&&e.first(ne.parent.getChildren(_e))===ne}function ce(_e,ne,oe){_e.delete(ne,oe.parent.kind===240?oe.parent:oe)}function k(_e,ne,oe){e.forEach(oe.elements,function(w){return _e.delete(ne,w)})}function X(_e,ne,oe,w){ne!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(w.kind===138&&(w=e.cast(w.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(w)&&A(w)&&(_e.replaceNode(oe,w,e.factory.createIdentifier("_".concat(w.text))),e.isParameter(w.parent)&&e.getJSDocParameterTags(w.parent).forEach(function(re){e.isIdentifier(re.name)&&_e.replaceNode(oe,re.name,e.factory.createIdentifier("_".concat(re.name.text)))})))}function A(_e){switch(_e.parent.kind){case 166:case 165:return!0;case 257:{var ne=_e.parent;switch(ne.parent.parent.kind){case 247:case 246:return!0}}}return!1}function y(_e,ne,oe,w,re,M,U,H){C(ne,oe,_e,w,re,M,U,H),e.isIdentifier(ne)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(ne,w,_e,function(q){e.isPropertyAccessExpression(q.parent)&&q.parent.name===q&&(q=q.parent),!H&&fe(q)&&oe.delete(_e,q.parent.parent)})}function C(_e,ne,oe,w,re,M,U,H){var q=_e.parent;if(e.isParameter(q))B(ne,oe,q,w,re,M,U,H);else if(!(H&&e.isIdentifier(_e)&&e.FindAllReferences.Core.isSymbolReferencedInFile(_e,w,oe))){var R=e.isImportClause(q)?_e:e.isComputedPropertyName(q)?q.parent:q;e.Debug.assert(R!==oe,"should not delete whole source file"),ne.delete(oe,R)}}function B(_e,ne,oe,w,re,M,U,H){if(H===void 0&&(H=!1),z(w,ne,oe,re,M,U,H))if(oe.modifiers&&oe.modifiers.length>0&&(!e.isIdentifier(oe.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(oe.name,w,ne)))for(var q=0,R=oe.modifiers;q<R.length;q++){var K=R[q];e.isModifier(K)&&_e.deleteModifier(ne,K)}else!oe.initializer&&F(oe,w,re)&&_e.delete(ne,oe)}function F(_e,ne,oe){var w=_e.parent.parameters.indexOf(_e);return!e.FindAllReferences.Core.someSignatureUsage(_e.parent,oe,ne,function(re,M){return!M||M.arguments.length>w})}function z(_e,ne,oe,w,re,M,U){var H=oe.parent;switch(H.kind){case 171:case 173:var q=H.parameters.indexOf(oe),R=e.isMethodDeclaration(H)?H.name:H,K=e.FindAllReferences.Core.getReferencedSymbolsForNode(H.pos,R,re,w,M);if(K)for(var I=0,he=K;I<he.length;I++)for(var le=he[I],ee=0,J=le.references;ee<J.length;ee++){var de=J[ee];if(de.kind===1){var De=e.isSuperKeyword(de.node)&&e.isCallExpression(de.node.parent)&&de.node.parent.arguments.length>q,N=e.isPropertyAccessExpression(de.node.parent)&&e.isSuperKeyword(de.node.parent.expression)&&e.isCallExpression(de.node.parent.parent)&&de.node.parent.parent.arguments.length>q,b=(e.isMethodDeclaration(de.node.parent)||e.isMethodSignature(de.node.parent))&&de.node.parent!==oe.parent&&de.node.parent.parameters.length>q;if(De||N||b)return!1}}return!0;case 259:return H.name&&ge(_e,ne,H.name)?Pe(H,oe,U):!0;case 215:case 216:return Pe(H,oe,U);case 175:return!1;case 174:return!0;default:return e.Debug.failBadSyntaxKind(H)}}function ge(_e,ne,oe){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(oe,_e,ne,function(w){return e.isIdentifier(w)&&e.isCallExpression(w.parent)&&w.parent.arguments.indexOf(w)>=0})}function Pe(_e,ne,oe){var w=_e.parameters,re=w.indexOf(ne);return e.Debug.assert(re!==-1,"The parameter should already be in the list"),oe?w.slice(re+1).every(function(M){return e.isIdentifier(M.name)&&!M.symbol.isReferenced}):re===w.length-1}function fe(_e){return(e.isBinaryExpression(_e.parent)&&_e.parent.left===_e||(e.isPostfixUnaryExpression(_e.parent)||e.isPrefixUnaryExpression(_e.parent))&&_e.parent.operand===_e)&&e.isExpressionStatement(_e.parent.parent)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixUnreachableCode",T=[e.Diagnostics.Unreachable_code_detected.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.program.getSyntacticDiagnostics(O.sourceFile,O.cancellationToken);if(!W.length){var E=e.textChanges.ChangeTracker.with(O,function(v){return s(v,O.sourceFile,O.span.start,O.span.length,O.errorCode)});return[c.createCodeFixAction(P,E,e.Diagnostics.Remove_unreachable_code,P,e.Diagnostics.Remove_all_unreachable_code)]}},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){return s(W,E.file,E.start,E.length,E.code)})}});function s(O,W,E,v,S){var te=e.getTokenAtPosition(W,E),Y=e.findAncestor(te,e.isStatement);if(Y.getStart(W)!==te.getStart(W)){var Z=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(Y.kind),tokenKind:e.Debug.formatSyntaxKind(te.kind),errorCode:S,start:E,length:v});e.Debug.fail("Token and statement should start at the same point. "+Z)}var ce=(e.isBlock(Y.parent)?Y.parent:Y).parent;if(!e.isBlock(Y.parent)||Y===e.first(Y.parent.statements))switch(ce.kind){case 242:if(ce.elseStatement){if(e.isBlock(Y.parent))break;O.replaceNode(W,Y,e.factory.createBlock(e.emptyArray));return}case 244:case 245:O.delete(W,ce);return}if(e.isBlock(Y.parent)){var k=E+v,X=e.Debug.checkDefined(D(e.sliceAfter(Y.parent.statements,Y),function(A){return A.pos<k}),"Some statement should be last");O.deleteNodeRange(W,Y,X)}else O.delete(W,Y)}function D(O,W){for(var E,v=0,S=O;v<S.length;v++){var te=S[v];if(!W(te))break;E=te}return E}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixUnusedLabel",T=[e.Diagnostics.Unused_label.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(D){var O=e.textChanges.ChangeTracker.with(D,function(W){return s(W,D.sourceFile,D.span.start)});return[c.createCodeFixAction(P,O,e.Diagnostics.Remove_unused_label,P,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O,W){return s(O,W.file,W.start)})}});function s(D,O,W){var E=e.getTokenAtPosition(O,W),v=e.cast(E.parent,e.isLabeledStatement),S=E.getStart(O),te=v.statement.getStart(O),Y=e.positionsAreOnSameLine(S,te,O)?te:e.skipTrivia(O.text,e.findChildOfKind(v,58,O).end,!0);D.deleteRange(O,{pos:S,end:Y})}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixJSDocTypes_plain",T="fixJSDocTypes_nullable",s=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];c.registerCodeFix({errorCodes:s,getCodeActions:function(E){var v=E.sourceFile,S=E.program.getTypeChecker(),te=O(v,E.span.start,S);if(!te)return;var Y=te.typeNode,Z=te.type,ce=Y.getText(v),k=[X(Z,P,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return Y.kind===317&&k.push(X(S.getNullableType(Z,32768),T,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),k;function X(A,y,C){var B=e.textChanges.ChangeTracker.with(E,function(F){return D(F,v,Y,A,S)});return c.createCodeFixAction("jdocTypes",B,[e.Diagnostics.Change_0_to_1,ce,S.typeToString(A)],y,C)}},fixIds:[P,T],getAllCodeActions:function(E){var v=E.fixId,S=E.program,te=E.sourceFile,Y=S.getTypeChecker();return c.codeFixAll(E,s,function(Z,ce){var k=O(ce.file,ce.start,Y);if(k){var X=k.typeNode,A=k.type,y=X.kind===317&&v===T?Y.getNullableType(A,32768):A;D(Z,te,X,y,Y)}})}});function D(E,v,S,te,Y){E.replaceNode(v,S,Y.typeToTypeNode(te,S,void 0))}function O(E,v,S){var te=e.findAncestor(e.getTokenAtPosition(E,v),W),Y=te&&te.type;return Y&&{typeNode:Y,type:S.getTypeFromTypeNode(Y)}}function W(E){switch(E.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixMissingCallParentheses",T=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];c.registerCodeFix({errorCodes:T,fixIds:[P],getCodeActions:function(O){var W=O.sourceFile,E=O.span,v=D(W,E.start);if(v){var S=e.textChanges.ChangeTracker.with(O,function(te){return s(te,O.sourceFile,v)});return[c.createCodeFixAction(P,S,e.Diagnostics.Add_missing_call_parentheses,P,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){var v=D(E.file,E.start);v&&s(W,E.file,v)})}});function s(O,W,E){O.replaceNodeWithText(W,E,"".concat(E.text,"()"))}function D(O,W){var E=e.getTokenAtPosition(O,W);if(e.isPropertyAccessExpression(E.parent)){for(var v=E.parent;e.isPropertyAccessExpression(v.parent);)v=v.parent;return v.name}if(e.isIdentifier(E))return E}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixAwaitInSyncFunction",T=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=W.sourceFile,v=W.span,S=D(E,v.start);if(S){var te=e.textChanges.ChangeTracker.with(W,function(Y){return O(Y,E,S)});return[c.createCodeFixAction(P,te,e.Diagnostics.Add_async_modifier_to_containing_function,P,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[P],getAllCodeActions:function(E){var v=new e.Map;return c.codeFixAll(E,T,function(S,te){var Y=D(te.file,te.start);!Y||!e.addToSeen(v,e.getNodeId(Y.insertBefore))||O(S,E.sourceFile,Y)})}});function s(W){if(W.type)return W.type;if(e.isVariableDeclaration(W.parent)&&W.parent.type&&e.isFunctionTypeNode(W.parent.type))return W.parent.type.type}function D(W,E){var v=e.getTokenAtPosition(W,E),S=e.getContainingFunction(v);if(S){var te;switch(S.kind){case 171:te=S.name;break;case 259:case 215:te=e.findChildOfKind(S,98,W);break;case 216:var Y=S.typeParameters?29:20;te=e.findChildOfKind(S,Y,W)||e.first(S.parameters);break;default:return}return te&&{insertBefore:te,returnType:s(S)}}}function O(W,E,v){var S=v.insertBefore,te=v.returnType;if(te){var Y=e.getEntityNameFromTypeNode(te);(!Y||Y.kind!==79||Y.text!=="Promise")&&W.replaceNode(E,te,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([te])))}W.insertModifierBefore(E,132,S)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],T="fixPropertyOverrideAccessor";c.registerCodeFix({errorCodes:P,getCodeActions:function(D){var O=s(D.sourceFile,D.span.start,D.span.length,D.errorCode,D);if(O)return[c.createCodeFixAction(T,O,e.Diagnostics.Generate_get_and_set_accessors,T,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[T],getAllCodeActions:function(D){return c.codeFixAll(D,P,function(O,W){var E=s(W.file,W.start,W.length,W.code,D);if(E)for(var v=0,S=E;v<S.length;v++){var te=S[v];O.pushRaw(D.sourceFile,te)}})}});function s(D,O,W,E,v){var S,te;if(E===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)S=O,te=O+W;else if(E===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var Y=v.program.getTypeChecker(),Z=e.getTokenAtPosition(D,O).parent;e.Debug.assert(e.isAccessor(Z),"error span of fixPropertyOverrideAccessor should only be on an accessor");var ce=Z.parent;e.Debug.assert(e.isClassLike(ce),"erroneous accessors should only be inside classes");var k=e.singleOrUndefined(c.getAllSupers(ce,Y));if(!k)return[];var X=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(Z.name)),A=Y.getPropertyOfType(Y.getTypeAtLocation(k),X);if(!A||!A.valueDeclaration)return[];S=A.valueDeclaration.pos,te=A.valueDeclaration.end,D=e.getSourceFileOfNode(A.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+E);return c.generateAccessorFromProperty(D,v.program,S,te,v,e.Diagnostics.Generate_get_and_set_accessors.message)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="inferFromUsage",T=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(B){var F=B.sourceFile,z=B.program,ge=B.span.start,Pe=B.errorCode,fe=B.cancellationToken,_e=B.host,ne=B.preferences,oe=e.getTokenAtPosition(F,ge),w,re=e.textChanges.ChangeTracker.with(B,function(U){w=O(U,F,oe,Pe,z,fe,e.returnTrue,_e,ne)}),M=w&&e.getNameOfDeclaration(w);return!M||re.length===0?void 0:[c.createCodeFixAction(P,re,[s(Pe,oe),e.getTextOfNode(M)],P,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[P],getAllCodeActions:function(B){var F=B.sourceFile,z=B.program,ge=B.cancellationToken,Pe=B.host,fe=B.preferences,_e=e.nodeSeenTracker();return c.codeFixAll(B,T,function(ne,oe){O(ne,F,e.getTokenAtPosition(oe.file,oe.start),oe.code,z,ge,_e,Pe,fe)})}});function s(B,F){switch(B){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(F))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function D(B){switch(B){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return B}function O(B,F,z,ge,Pe,fe,_e,ne,oe){if(!(!e.isParameterPropertyModifier(z.kind)&&z.kind!==79&&z.kind!==25&&z.kind!==108)){var w=z.parent,re=c.createImportAdder(F,Pe,oe,ne);switch(ge=D(ge),ge){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(w)&&_e(w)||e.isPropertyDeclaration(w)||e.isPropertySignature(w))return W(B,re,F,w,Pe,ne,fe),re.writeFixes(B),w;if(e.isPropertyAccessExpression(w)){var M=X(w.name,Pe,fe),U=e.getTypeNodeIfAccessible(M,w,Pe,ne);if(U){var H=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(U),void 0);B.addJSDocTags(F,e.cast(w.parent.parent,e.isExpressionStatement),[H])}return re.writeFixes(B),w}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var q=Pe.getTypeChecker().getSymbolAtLocation(z);return q&&q.valueDeclaration&&e.isVariableDeclaration(q.valueDeclaration)&&_e(q.valueDeclaration)?(W(B,re,e.getSourceFileOfNode(q.valueDeclaration),q.valueDeclaration,Pe,ne,fe),re.writeFixes(B),q.valueDeclaration):void 0}}var R=e.getContainingFunction(z);if(R!==void 0){var K;switch(ge){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(R)){te(B,re,F,R,Pe,ne,fe),K=R;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(_e(R)){var I=e.cast(w,e.isParameter);E(B,re,F,I,R,Pe,ne,fe),K=I}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(R)&&e.isIdentifier(R.name)&&(Y(B,re,F,R,X(R.name,Pe,fe),Pe,ne),K=R);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(R)&&(te(B,re,F,R,Pe,ne,fe),K=R);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(R)&&_e(R)&&(v(B,F,R,Pe,ne,fe),K=R);break;default:return e.Debug.fail(String(ge))}return re.writeFixes(B),K}}}function W(B,F,z,ge,Pe,fe,_e){e.isIdentifier(ge.name)&&Y(B,F,z,ge,X(ge.name,Pe,_e),Pe,fe)}function E(B,F,z,ge,Pe,fe,_e,ne){if(e.isIdentifier(ge.name)){var oe=A(Pe,z,fe,ne);if(e.Debug.assert(Pe.parameters.length===oe.length,"Parameter count and inference count should match"),e.isInJSFile(Pe))ce(B,z,oe,fe,_e);else{var w=e.isArrowFunction(Pe)&&!e.findChildOfKind(Pe,20,z);w&&B.insertNodeBefore(z,e.first(Pe.parameters),e.factory.createToken(20));for(var re=0,M=oe;re<M.length;re++){var U=M[re],H=U.declaration,q=U.type;H&&!H.type&&!H.initializer&&Y(B,F,z,H,q,fe,_e)}w&&B.insertNodeAfter(z,e.last(Pe.parameters),e.factory.createToken(21))}}}function v(B,F,z,ge,Pe,fe){var _e=y(z,F,ge,fe);if(!(!_e||!_e.length)){var ne=C(ge,_e,fe).thisParameter(),oe=e.getTypeNodeIfAccessible(ne,z,ge,Pe);oe&&(e.isInJSFile(z)?S(B,F,z,oe):B.tryInsertThisTypeAnnotation(F,z,oe))}}function S(B,F,z,ge){B.addJSDocTags(F,z,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(ge))])}function te(B,F,z,ge,Pe,fe,_e){var ne=e.firstOrUndefined(ge.parameters);if(ne&&e.isIdentifier(ge.name)&&e.isIdentifier(ne.name)){var oe=X(ge.name,Pe,_e);oe===Pe.getTypeChecker().getAnyType()&&(oe=X(ne.name,Pe,_e)),e.isInJSFile(ge)?ce(B,z,[{declaration:ne,type:oe}],Pe,fe):Y(B,F,z,ne,oe,Pe,fe)}}function Y(B,F,z,ge,Pe,fe,_e){var ne=e.getTypeNodeIfAccessible(Pe,ge,fe,_e);if(ne)if(e.isInJSFile(z)&&ge.kind!==168){var oe=e.isVariableDeclaration(ge)?e.tryCast(ge.parent.parent,e.isVariableStatement):ge;if(!oe)return;var w=e.factory.createJSDocTypeExpression(ne),re=e.isGetAccessorDeclaration(ge)?e.factory.createJSDocReturnTag(void 0,w,void 0):e.factory.createJSDocTypeTag(void 0,w,void 0);B.addJSDocTags(z,oe,[re])}else Z(ne,ge,z,B,F,e.getEmitScriptTarget(fe.getCompilerOptions()))||B.tryInsertTypeAnnotation(z,ge,ne)}function Z(B,F,z,ge,Pe,fe){var _e=c.tryGetAutoImportableReferenceFromTypeNode(B,fe);return _e&&ge.tryInsertTypeAnnotation(z,F,_e.typeNode)?(e.forEach(_e.symbols,function(ne){return Pe.addImportFromExportedSymbol(ne,!0)}),!0):!1}function ce(B,F,z,ge,Pe){var fe=z.length&&z[0].declaration.parent;if(fe){var _e=e.mapDefined(z,function(w){var re=w.declaration;if(!(re.initializer||e.getJSDocType(re)||!e.isIdentifier(re.name))){var M=w.type&&e.getTypeNodeIfAccessible(w.type,re,ge,Pe);if(M){var U=e.factory.cloneNode(re.name);return e.setEmitFlags(U,3584),{name:e.factory.cloneNode(re.name),param:re,isOptional:!!w.isOptional,typeNode:M}}}});if(_e.length)if(e.isArrowFunction(fe)||e.isFunctionExpression(fe)){var ne=e.isArrowFunction(fe)&&!e.findChildOfKind(fe,20,F);ne&&B.insertNodeBefore(F,e.first(fe.parameters),e.factory.createToken(20)),e.forEach(_e,function(w){var re=w.typeNode,M=w.param,U=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(re)),H=e.factory.createJSDocComment(void 0,[U]);B.insertNodeAt(F,M.getStart(F),H,{suffix:" "})}),ne&&B.insertNodeAfter(F,e.last(fe.parameters),e.factory.createToken(21))}else{var oe=e.map(_e,function(w){var re=w.name,M=w.typeNode,U=w.isOptional;return e.factory.createJSDocParameterTag(void 0,re,!!U,e.factory.createJSDocTypeExpression(M),!1,void 0)});B.addJSDocTags(F,fe,oe)}}}function k(B,F,z){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,B,F,F.getSourceFiles(),z),function(ge){return ge.kind!==0?e.tryCast(ge.node,e.isIdentifier):void 0})}function X(B,F,z){var ge=k(B,F,z);return C(F,ge,z).single()}function A(B,F,z,ge){var Pe=y(B,F,z,ge);return Pe&&C(z,Pe,ge).parameters(B)||B.parameters.map(function(fe){return{declaration:fe,type:e.isIdentifier(fe.name)?X(fe.name,z,ge):z.getTypeChecker().getAnyType()}})}function y(B,F,z,ge){var Pe;switch(B.kind){case 173:Pe=e.findChildOfKind(B,135,F);break;case 216:case 215:var fe=B.parent;Pe=(e.isVariableDeclaration(fe)||e.isPropertyDeclaration(fe))&&e.isIdentifier(fe.name)?fe.name:B.name;break;case 259:case 171:case 170:Pe=B.name;break}if(Pe)return k(Pe,z,ge)}function C(B,F,z){var ge=B.getTypeChecker(),Pe={string:function(){return ge.getStringType()},number:function(){return ge.getNumberType()},Array:function(Ce){return ge.createArrayType(Ce)},Promise:function(Ce){return ge.createPromiseType(Ce)}},fe=[ge.getStringType(),ge.getNumberType(),ge.createArrayType(ge.getAnyType()),ge.createPromiseType(ge.getAnyType())];return{single:oe,parameters:w,thisParameter:re};function _e(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function ne(Ce){for(var Ae=new e.Map,qe=0,xe=Ce;qe<xe.length;qe++){var L=xe[qe];L.properties&&L.properties.forEach(function(Ue,Je){Ae.has(Je)||Ae.set(Je,[]),Ae.get(Je).push(Ue)})}var ue=new e.Map;return Ae.forEach(function(Ue,Je){ue.set(Je,ne(Ue))}),{isNumber:Ce.some(function(Ue){return Ue.isNumber}),isString:Ce.some(function(Ue){return Ue.isString}),isNumberOrString:Ce.some(function(Ue){return Ue.isNumberOrString}),candidateTypes:e.flatMap(Ce,function(Ue){return Ue.candidateTypes}),properties:ue,calls:e.flatMap(Ce,function(Ue){return Ue.calls}),constructs:e.flatMap(Ce,function(Ue){return Ue.constructs}),numberIndex:e.forEach(Ce,function(Ue){return Ue.numberIndex}),stringIndex:e.forEach(Ce,function(Ue){return Ue.stringIndex}),candidateThisTypes:e.flatMap(Ce,function(Ue){return Ue.candidateThisTypes}),inferredTypes:void 0}}function oe(){return b(M(F))}function w(Ce){if(!(F.length===0||!Ce.parameters)){for(var Ae=_e(),qe=0,xe=F;qe<xe.length;qe++){var L=xe[qe];z.throwIfCancellationRequested(),U(L,Ae)}var ue=t(t([],Ae.constructs||[],!0),Ae.calls||[],!0);return Ce.parameters.map(function(Ue,Je){for(var lr=[],mr=e.isRestParameter(Ue),Hr=!1,wr=0,Oe=ue;wr<Oe.length;wr++){var Ze=Oe[wr];if(Ze.argumentTypes.length<=Je)Hr=e.isInJSFile(Ce),lr.push(ge.getUndefinedType());else if(mr)for(var tt=Je;tt<Ze.argumentTypes.length;tt++)lr.push(ge.getBaseTypeOfLiteralType(Ze.argumentTypes[tt]));else lr.push(ge.getBaseTypeOfLiteralType(Ze.argumentTypes[Je]))}if(e.isIdentifier(Ue.name)){var ut=M(k(Ue.name,B,z));lr.push.apply(lr,mr?e.mapDefined(ut,ge.getElementTypeOfArrayType):ut)}var or=b(lr);return{type:mr?ge.createArrayType(or):or,isOptional:Hr&&!mr,declaration:Ue}})}}function re(){for(var Ce=_e(),Ae=0,qe=F;Ae<qe.length;Ae++){var xe=qe[Ae];z.throwIfCancellationRequested(),U(xe,Ce)}return b(Ce.candidateThisTypes||e.emptyArray)}function M(Ce){for(var Ae=_e(),qe=0,xe=Ce;qe<xe.length;qe++){var L=xe[qe];z.throwIfCancellationRequested(),U(L,Ae)}return G(Ae)}function U(Ce,Ae){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(Ce);)Ce=Ce.parent;switch(Ce.parent.kind){case 241:q(Ce,Ae);break;case 222:Ae.isNumber=!0;break;case 221:R(Ce.parent,Ae);break;case 223:K(Ce,Ce.parent,Ae);break;case 292:case 293:I(Ce.parent,Ae);break;case 210:case 211:Ce.parent.expression===Ce?he(Ce.parent,Ae):H(Ce,Ae);break;case 208:le(Ce.parent,Ae);break;case 209:ee(Ce.parent,Ce,Ae);break;case 299:case 300:J(Ce.parent,Ae);break;case 169:de(Ce.parent,Ae);break;case 257:{var qe=Ce.parent,xe=qe.name,L=qe.initializer;if(Ce===xe){L&&rr(Ae,ge.getTypeAtLocation(L));break}}default:return H(Ce,Ae)}}function H(Ce,Ae){e.isExpressionNode(Ce)&&rr(Ae,ge.getContextualType(Ce))}function q(Ce,Ae){rr(Ae,e.isCallExpression(Ce)?ge.getVoidType():ge.getAnyType())}function R(Ce,Ae){switch(Ce.operator){case 45:case 46:case 40:case 54:Ae.isNumber=!0;break;case 39:Ae.isNumberOrString=!0;break}}function K(Ce,Ae,qe){switch(Ae.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var xe=ge.getTypeAtLocation(Ae.left===Ce?Ae.right:Ae.left);xe.flags&1056?rr(qe,xe):qe.isNumber=!0;break;case 64:case 39:var L=ge.getTypeAtLocation(Ae.left===Ce?Ae.right:Ae.left);L.flags&1056?rr(qe,L):L.flags&296?qe.isNumber=!0:L.flags&402653316?qe.isString=!0:L.flags&1||(qe.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:rr(qe,ge.getTypeAtLocation(Ae.left===Ce?Ae.right:Ae.left));break;case 101:Ce===Ae.left&&(qe.isString=!0);break;case 56:case 60:Ce===Ae.left&&(Ce.parent.parent.kind===257||e.isAssignmentExpression(Ce.parent.parent,!0))&&rr(qe,ge.getTypeAtLocation(Ae.right));break}}function I(Ce,Ae){rr(Ae,ge.getTypeAtLocation(Ce.parent.parent.expression))}function he(Ce,Ae){var qe={argumentTypes:[],return_:_e()};if(Ce.arguments)for(var xe=0,L=Ce.arguments;xe<L.length;xe++){var ue=L[xe];qe.argumentTypes.push(ge.getTypeAtLocation(ue))}U(Ce,qe.return_),Ce.kind===210?(Ae.calls||(Ae.calls=[])).push(qe):(Ae.constructs||(Ae.constructs=[])).push(qe)}function le(Ce,Ae){var qe=e.escapeLeadingUnderscores(Ce.name.text);Ae.properties||(Ae.properties=new e.Map);var xe=Ae.properties.get(qe)||_e();U(Ce,xe),Ae.properties.set(qe,xe)}function ee(Ce,Ae,qe){if(Ae===Ce.argumentExpression){qe.isNumberOrString=!0;return}else{var xe=ge.getTypeAtLocation(Ce.argumentExpression),L=_e();U(Ce,L),xe.flags&296?qe.numberIndex=L:qe.stringIndex=L}}function J(Ce,Ae){var qe=e.isVariableDeclaration(Ce.parent.parent)?Ce.parent.parent:Ce.parent;je(Ae,ge.getTypeAtLocation(qe))}function de(Ce,Ae){je(Ae,ge.getTypeAtLocation(Ce.parent))}function De(Ce,Ae){for(var qe=[],xe=0,L=Ce;xe<L.length;xe++)for(var ue=L[xe],Ue=0,Je=Ae;Ue<Je.length;Ue++){var lr=Je[Ue],mr=lr.high,Hr=lr.low;mr(ue)&&(e.Debug.assert(!Hr(ue),"Priority can't have both low and high"),qe.push(Hr))}return Ce.filter(function(wr){return qe.every(function(Oe){return!Oe(wr)})})}function N(Ce){return b(G(Ce))}function b(Ce){if(!Ce.length)return ge.getAnyType();var Ae=ge.getUnionType([ge.getStringType(),ge.getNumberType()]),qe=[{high:function(ue){return ue===ge.getStringType()||ue===ge.getNumberType()},low:function(ue){return ue===Ae}},{high:function(ue){return!(ue.flags&16385)},low:function(ue){return!!(ue.flags&16385)}},{high:function(ue){return!(ue.flags&114689)&&!(e.getObjectFlags(ue)&16)},low:function(ue){return!!(e.getObjectFlags(ue)&16)}}],xe=De(Ce,qe),L=xe.filter(function(ue){return e.getObjectFlags(ue)&16});return L.length&&(xe=xe.filter(function(ue){return!(e.getObjectFlags(ue)&16)}),xe.push(Q(L))),ge.getWidenedType(ge.getUnionType(xe.map(ge.getBaseTypeOfLiteralType),2))}function Q(Ce){if(Ce.length===1)return Ce[0];for(var Ae=[],qe=[],xe=[],L=[],ue=!1,Ue=!1,Je=e.createMultiMap(),lr=0,mr=Ce;lr<mr.length;lr++){for(var Hr=mr[lr],wr=0,Oe=ge.getPropertiesOfType(Hr);wr<Oe.length;wr++){var Ze=Oe[wr];Je.add(Ze.name,Ze.valueDeclaration?ge.getTypeOfSymbolAtLocation(Ze,Ze.valueDeclaration):ge.getAnyType())}Ae.push.apply(Ae,ge.getSignaturesOfType(Hr,0)),qe.push.apply(qe,ge.getSignaturesOfType(Hr,1));var tt=ge.getIndexInfoOfType(Hr,0);tt&&(xe.push(tt.type),ue=ue||tt.isReadonly);var ut=ge.getIndexInfoOfType(Hr,1);ut&&(L.push(ut.type),Ue=Ue||ut.isReadonly)}var or=e.mapEntries(Je,function(Rr,zr){var Fr=zr.length<Ce.length?16777216:0,_t=ge.createSymbol(4|Fr,Rr);return _t.type=ge.getUnionType(zr),[Rr,_t]}),qr=[];return xe.length&&qr.push(ge.createIndexInfo(ge.getStringType(),ge.getUnionType(xe),ue)),L.length&&qr.push(ge.createIndexInfo(ge.getNumberType(),ge.getUnionType(L),Ue)),ge.createAnonymousType(Ce[0].symbol,or,Ae,qe,qr)}function G(Ce){var Ae,qe,xe,L=[];Ce.isNumber&&L.push(ge.getNumberType()),Ce.isString&&L.push(ge.getStringType()),Ce.isNumberOrString&&L.push(ge.getUnionType([ge.getStringType(),ge.getNumberType()])),Ce.numberIndex&&L.push(ge.createArrayType(N(Ce.numberIndex))),(!((Ae=Ce.properties)===null||Ae===void 0)&&Ae.size||!((qe=Ce.constructs)===null||qe===void 0)&&qe.length||Ce.stringIndex)&&L.push(ae(Ce));var ue=(Ce.candidateTypes||[]).map(function(Je){return ge.getBaseTypeOfLiteralType(Je)}),Ue=!((xe=Ce.calls)===null||xe===void 0)&&xe.length?ae(Ce):void 0;return Ue&&ue?L.push(ge.getUnionType(t([Ue],ue,!0),2)):(Ue&&L.push(Ue),e.length(ue)&&L.push.apply(L,ue)),L.push.apply(L,Te(Ce)),L}function ae(Ce){var Ae=new e.Map;Ce.properties&&Ce.properties.forEach(function(ue,Ue){var Je=ge.createSymbol(4,Ue);Je.type=N(ue),Ae.set(Ue,Je)});var qe=Ce.calls?[He(Ce.calls)]:[],xe=Ce.constructs?[He(Ce.constructs)]:[],L=Ce.stringIndex?[ge.createIndexInfo(ge.getStringType(),N(Ce.stringIndex),!1)]:[];return ge.createAnonymousType(void 0,Ae,qe,xe,L)}function Te(Ce){if(!Ce.properties||!Ce.properties.size)return[];var Ae=fe.filter(function(qe){return Ne(qe,Ce)});return 0<Ae.length&&Ae.length<3?Ae.map(function(qe){return we(qe,Ce)}):[]}function Ne(Ce,Ae){return Ae.properties?!e.forEachEntry(Ae.properties,function(qe,xe){var L=ge.getTypeOfPropertyOfType(Ce,xe);if(!L)return!0;if(qe.calls){var ue=ge.getSignaturesOfType(L,0);return!ue.length||!ge.isTypeAssignableTo(L,me(qe.calls))}else return!ge.isTypeAssignableTo(L,N(qe))}):!1}function we(Ce,Ae){if(!(e.getObjectFlags(Ce)&4)||!Ae.properties)return Ce;var qe=Ce.target,xe=e.singleOrUndefined(qe.typeParameters);if(!xe)return Ce;var L=[];return Ae.properties.forEach(function(ue,Ue){var Je=ge.getTypeOfPropertyOfType(qe,Ue);e.Debug.assert(!!Je,"generic should have all the properties of its reference."),L.push.apply(L,nr(Je,N(ue),xe))}),Pe[Ce.symbol.escapedName](b(L))}function nr(Ce,Ae,qe){if(Ce===qe)return[Ae];if(Ce.flags&3145728)return e.flatMap(Ce.types,function(mr){return nr(mr,Ae,qe)});if(e.getObjectFlags(Ce)&4&&e.getObjectFlags(Ae)&4){var xe=ge.getTypeArguments(Ce),L=ge.getTypeArguments(Ae),ue=[];if(xe&&L)for(var Ue=0;Ue<xe.length;Ue++)L[Ue]&&ue.push.apply(ue,nr(xe[Ue],L[Ue],qe));return ue}var Je=ge.getSignaturesOfType(Ce,0),lr=ge.getSignaturesOfType(Ae,0);return Je.length===1&&lr.length===1?tr(Je[0],lr[0],qe):[]}function tr(Ce,Ae,qe){for(var xe=[],L=0;L<Ce.parameters.length;L++){var ue=Ce.parameters[L],Ue=Ae.parameters[L],Je=Ce.declaration&&e.isRestParameter(Ce.declaration.parameters[L]);if(!Ue)break;var lr=ue.valueDeclaration?ge.getTypeOfSymbolAtLocation(ue,ue.valueDeclaration):ge.getAnyType(),mr=Je&&ge.getElementTypeOfArrayType(lr);mr&&(lr=mr);var Hr=Ue.type||(Ue.valueDeclaration?ge.getTypeOfSymbolAtLocation(Ue,Ue.valueDeclaration):ge.getAnyType());xe.push.apply(xe,nr(lr,Hr,qe))}var wr=ge.getReturnTypeOfSignature(Ce),Oe=ge.getReturnTypeOfSignature(Ae);return xe.push.apply(xe,nr(wr,Oe,qe)),xe}function me(Ce){return ge.createAnonymousType(void 0,e.createSymbolTable(),[He(Ce)],e.emptyArray,e.emptyArray)}function He(Ce){for(var Ae=[],qe=Math.max.apply(Math,Ce.map(function(Ue){return Ue.argumentTypes.length})),xe=function(Ue){var Je=ge.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(Ue)));Je.type=b(Ce.map(function(lr){return lr.argumentTypes[Ue]||ge.getUndefinedType()})),Ce.some(function(lr){return lr.argumentTypes[Ue]===void 0})&&(Je.flags|=16777216),Ae.push(Je)},L=0;L<qe;L++)xe(L);var ue=N(ne(Ce.map(function(Ue){return Ue.return_})));return ge.createSignature(void 0,void 0,void 0,Ae,ue,void 0,qe,0)}function rr(Ce,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(Ce.candidateTypes||(Ce.candidateTypes=[])).push(Ae)}function je(Ce,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(Ce.candidateThisTypes||(Ce.candidateThisTypes=[])).push(Ae)}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixReturnTypeInAsyncFunction",T=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];c.registerCodeFix({errorCodes:T,fixIds:[P],getCodeActions:function(W){var E=W.sourceFile,v=W.program,S=W.span,te=v.getTypeChecker(),Y=s(E,v.getTypeChecker(),S.start);if(Y){var Z=Y.returnTypeNode,ce=Y.returnType,k=Y.promisedTypeNode,X=Y.promisedType,A=e.textChanges.ChangeTracker.with(W,function(y){return D(y,E,Z,k)});return[c.createCodeFixAction(P,A,[e.Diagnostics.Replace_0_with_Promise_1,te.typeToString(ce),te.typeToString(X)],P,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){var v=s(E.file,O.program.getTypeChecker(),E.start);v&&D(W,E.file,v.returnTypeNode,v.promisedTypeNode)})}});function s(O,W,E){if(!e.isInJSFile(O)){var v=e.getTokenAtPosition(O,E),S=e.findAncestor(v,e.isFunctionLikeDeclaration),te=S==null?void 0:S.type;if(te){var Y=W.getTypeFromTypeNode(te),Z=W.getAwaitedType(Y)||W.getVoidType(),ce=W.typeToTypeNode(Z,te,void 0);if(ce)return{returnTypeNode:te,returnType:Y,promisedTypeNode:ce,promisedType:Z}}}}function D(O,W,E,v){O.replaceNode(W,E,e.factory.createTypeReferenceNode("Promise",[v]))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="disableJsDiagnostics",T="disableJsDiagnostics",s=e.mapDefined(Object.keys(e.Diagnostics),function(O){var W=e.Diagnostics[O];return W.category===e.DiagnosticCategory.Error?W.code:void 0});c.registerCodeFix({errorCodes:s,getCodeActions:function(W){var E=W.sourceFile,v=W.program,S=W.span,te=W.host,Y=W.formatContext;if(!(!e.isInJSFile(E)||!e.isCheckJsEnabledForFile(E,v.getCompilerOptions()))){var Z=E.checkJsDirective?"":e.getNewLineOrDefaultFromHost(te,Y.options),ce=[c.createCodeFixActionWithoutFixAll(P,[c.createFileTextChanges(E.fileName,[e.createTextChange(E.checkJsDirective?e.createTextSpanFromBounds(E.checkJsDirective.pos,E.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(Z))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(E,S.start)&&ce.unshift(c.createCodeFixAction(P,e.textChanges.ChangeTracker.with(W,function(k){return D(k,E,S.start)}),e.Diagnostics.Ignore_this_error_message,T,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),ce}},fixIds:[T],getAllCodeActions:function(O){var W=new e.Set;return c.codeFixAll(O,s,function(E,v){e.textChanges.isValidLocationToAddComment(v.file,v.start)&&D(E,v.file,v.start,W)})}});function D(O,W,E,v){var S=e.getLineAndCharacterOfPosition(W,E).line;(!v||e.tryAddToSet(v,S))&&O.insertCommentBeforeLine(W,S,E," @ts-ignore")}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){function P(oe,w,re,M,U,H,q){for(var R=oe.symbol.members,K=0,I=w;K<I.length;K++){var he=I[K];R.has(he.escapedName)||s(he,oe,re,M,U,H,q,void 0)}}c.createMissingMemberNodes=P;function T(oe){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(oe.program,oe.host)}}c.getNoopSymbolTrackerWithResolver=T,function(oe){oe[oe.Method=1]="Method",oe[oe.Property=2]="Property",oe[oe.All=3]="All"}(c.PreserveOptionalFlags||(c.PreserveOptionalFlags={}));function s(oe,w,re,M,U,H,q,R,K,I){var he;K===void 0&&(K=3),I===void 0&&(I=!1);var le=oe.getDeclarations(),ee=le==null?void 0:le[0],J=M.program.getTypeChecker(),de=e.getEmitScriptTarget(M.program.getCompilerOptions()),De=(he=ee==null?void 0:ee.kind)!==null&&he!==void 0?he:168,N=e.getSynthesizedDeepClone(e.getNameOfDeclaration(ee),!1),b=ee?e.getEffectiveModifierFlags(ee):0,Q=b&4?4:b&16?16:0;ee&&e.isAutoAccessorPropertyDeclaration(ee)&&(Q|=128);var G=Q?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(Q)):void 0,ae=J.getWidenedType(J.getTypeOfSymbolAtLocation(oe,w)),Te=!!(oe.flags&16777216),Ne=!!(w.flags&16777216)||I,we=e.getQuotePreference(re,U);switch(De){case 168:case 169:var nr=we===0?268435456:void 0,tr=J.typeToTypeNode(ae,w,nr,T(M));if(H){var me=Pe(tr,de);me&&(tr=me.typeNode,_e(H,me.symbols))}q(e.factory.createPropertyDeclaration(G,ee?Hr(N):oe.getName(),Te&&K&2?e.factory.createToken(57):void 0,tr,void 0));break;case 174:case 175:{e.Debug.assertIsDefined(le);var He=J.typeToTypeNode(ae,w,void 0,T(M)),rr=e.getAllAccessorDeclarations(le,ee),je=rr.secondAccessor?[rr.firstAccessor,rr.secondAccessor]:[rr.firstAccessor];if(H){var me=Pe(He,de);me&&(He=me.typeNode,_e(H,me.symbols))}for(var Ce=0,Ae=je;Ce<Ae.length;Ce++){var qe=Ae[Ce];if(e.isGetAccessorDeclaration(qe))q(e.factory.createGetAccessorDeclaration(G,Hr(N),e.emptyArray,Oe(He),wr(R,we,Ne)));else{e.Debug.assertNode(qe,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var xe=e.getSetAccessorValueParameter(qe),L=xe&&e.isIdentifier(xe.name)?e.idText(xe.name):void 0;q(e.factory.createSetAccessorDeclaration(G,Hr(N),ce(1,[L],[Oe(He)],1,!1),wr(R,we,Ne)))}}break}case 170:case 171:e.Debug.assertIsDefined(le);var ue=ae.isUnion()?e.flatMap(ae.types,function(Ze){return Ze.getCallSignatures()}):ae.getCallSignatures();if(!e.some(ue))break;if(le.length===1){e.Debug.assert(ue.length===1,"One declaration implies one signature");var Ue=ue[0];mr(we,Ue,G,Hr(N),wr(R,we,Ne));break}for(var Je=0,lr=ue;Je<lr.length;Je++){var Ue=lr[Je];mr(we,Ue,G,Hr(N))}if(!Ne)if(le.length>ue.length){var Ue=J.getSignatureFromDeclaration(le[le.length-1]);mr(we,Ue,G,Hr(N),wr(R,we))}else e.Debug.assert(le.length===ue.length,"Declarations and signatures should match count"),q(k(J,M,w,ue,Hr(N),Te&&!!(K&1),G,we,R));break}function mr(Ze,tt,ut,or,qr){var Rr=D(171,M,Ze,tt,qr,or,ut,Te&&!!(K&1),w,H);Rr&&q(Rr)}function Hr(Ze){return e.getSynthesizedDeepClone(Ze,!1)}function wr(Ze,tt,ut){return ut?void 0:e.getSynthesizedDeepClone(Ze,!1)||y(tt)}function Oe(Ze){return e.getSynthesizedDeepClone(Ze,!1)}}c.addNewNodeForMemberSymbol=s;function D(oe,w,re,M,U,H,q,R,K,I){var he=w.program,le=he.getTypeChecker(),ee=e.getEmitScriptTarget(he.getCompilerOptions()),J=524545|(re===0?268435456:0),de=le.signatureToSignatureDeclaration(M,oe,K,J,T(w));if(de){var De=de.typeParameters,N=de.parameters,b=de.type;if(I){if(De){var Q=e.sameMap(De,function(we){var nr=we.constraint,tr=we.default;if(nr){var me=Pe(nr,ee);me&&(nr=me.typeNode,_e(I,me.symbols))}if(tr){var me=Pe(tr,ee);me&&(tr=me.typeNode,_e(I,me.symbols))}return e.factory.updateTypeParameterDeclaration(we,we.modifiers,we.name,nr,tr)});De!==Q&&(De=e.setTextRange(e.factory.createNodeArray(Q,De.hasTrailingComma),De))}var G=e.sameMap(N,function(we){var nr=Pe(we.type,ee),tr=we.type;return nr&&(tr=nr.typeNode,_e(I,nr.symbols)),e.factory.updateParameterDeclaration(we,we.modifiers,we.dotDotDotToken,we.name,we.questionToken,tr,we.initializer)});if(N!==G&&(N=e.setTextRange(e.factory.createNodeArray(G,N.hasTrailingComma),N)),b){var ae=Pe(b,ee);ae&&(b=ae.typeNode,_e(I,ae.symbols))}}var Te=R?e.factory.createToken(57):void 0,Ne=de.asteriskToken;if(e.isFunctionExpression(de))return e.factory.updateFunctionExpression(de,q,de.asteriskToken,e.tryCast(H,e.isIdentifier),De,N,b,U??de.body);if(e.isArrowFunction(de))return e.factory.updateArrowFunction(de,q,De,N,b,de.equalsGreaterThanToken,U??de.body);if(e.isMethodDeclaration(de))return e.factory.updateMethodDeclaration(de,q,Ne,H??e.factory.createIdentifier(""),Te,De,N,b,U);if(e.isFunctionDeclaration(de))return e.factory.updateFunctionDeclaration(de,q,de.asteriskToken,e.tryCast(H,e.isIdentifier),De,N,b,U??de.body)}}c.createSignatureDeclarationFromSignature=D;function O(oe,w,re,M,U,H,q){var R=e.getQuotePreference(w.sourceFile,w.preferences),K=e.getEmitScriptTarget(w.program.getCompilerOptions()),I=T(w),he=w.program.getTypeChecker(),le=e.isInJSFile(q),ee=M.typeArguments,J=M.arguments,de=M.parent,De=le?void 0:he.getContextualType(M),N=e.map(J,function(me){return e.isIdentifier(me)?me.text:e.isPropertyAccessExpression(me)&&e.isIdentifier(me.name)?me.name.text:void 0}),b=le?[]:e.map(J,function(me){return he.getTypeAtLocation(me)}),Q=te(he,re,b,q,K,void 0,I),G=Q.argumentTypeNodes,ae=Q.argumentTypeParameters,Te=H?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(H)):void 0,Ne=e.isYieldExpression(de)?e.factory.createToken(41):void 0,we=le?void 0:W(he,ae,ee),nr=ce(J.length,N,G,void 0,le),tr=le||De===void 0?void 0:he.typeToTypeNode(De,q,void 0,I);switch(oe){case 171:return e.factory.createMethodDeclaration(Te,Ne,U,void 0,we,nr,tr,y(R));case 170:return e.factory.createMethodSignature(Te,U,void 0,we,nr,tr===void 0?e.factory.createKeywordTypeNode(157):tr);case 259:return e.factory.createFunctionDeclaration(Te,Ne,U,we,nr,tr,C(e.Diagnostics.Function_not_implemented.message,R));default:e.Debug.fail("Unexpected kind")}}c.createSignatureDeclarationFromCallExpression=O;function W(oe,w,re){var M=new e.Set(w.map(function(K){return K[0]})),U=new e.Map(w);if(re)for(var H=re.filter(function(K){return!w.some(function(I){var he;return oe.getTypeAtLocation(K)===((he=I[1])===null||he===void 0?void 0:he.argumentType)})}),q=M.size+H.length,R=0;M.size<q;R+=1)M.add(E(R));return e.map(e.arrayFrom(M.values()),function(K){var I;return e.factory.createTypeParameterDeclaration(void 0,K,(I=U.get(K))===null||I===void 0?void 0:I.constraint)})}function E(oe){return 84+oe<=90?String.fromCharCode(84+oe):"T".concat(oe)}function v(oe,w,re,M,U,H,q){var R=oe.typeToTypeNode(re,M,H,q);if(R&&e.isImportTypeNode(R)){var K=Pe(R,U);K&&(_e(w,K.symbols),R=K.typeNode)}return e.getSynthesizedDeepClone(R)}c.typeToAutoImportableTypeNode=v;function S(oe){return oe.isUnionOrIntersection()?oe.types.some(S):oe.flags&262144}function te(oe,w,re,M,U,H,q){for(var R=[],K=new e.Map,I=0;I<re.length;I+=1){var he=re[I];if(he.isUnionOrIntersection()&&he.types.some(S)){var le=E(I);R.push(e.factory.createTypeReferenceNode(le)),K.set(le,void 0);continue}var ee=oe.getBaseTypeOfLiteralType(he),J=v(oe,w,ee,M,U,H,q);if(J){R.push(J);var de=Z(he),De=he.isTypeParameter()&&he.constraint&&!Y(he.constraint)?v(oe,w,he.constraint,M,U,H,q):void 0;de&&K.set(de,{argumentType:he,constraint:De})}}return{argumentTypeNodes:R,argumentTypeParameters:e.arrayFrom(K.entries())}}c.getArgumentTypesAndTypeParameters=te;function Y(oe){return oe.flags&524288&&oe.objectFlags===16}function Z(oe){var w;if(oe.flags&3145728)for(var re=0,M=oe.types;re<M.length;re++){var U=M[re],H=Z(U);if(H)return H}return oe.flags&262144?(w=oe.getSymbol())===null||w===void 0?void 0:w.getName():void 0}function ce(oe,w,re,M,U){for(var H=[],q=new e.Map,R=0;R<oe;R++){var K=(w==null?void 0:w[R])||"arg".concat(R),I=q.get(K);q.set(K,(I||0)+1);var he=e.factory.createParameterDeclaration(void 0,void 0,K+(I||""),M!==void 0&&R>=M?e.factory.createToken(57):void 0,U?void 0:(re==null?void 0:re[R])||e.factory.createKeywordTypeNode(157),void 0);H.push(he)}return H}function k(oe,w,re,M,U,H,q,R,K){for(var I=M[0],he=M[0].minArgumentCount,le=!1,ee=0,J=M;ee<J.length;ee++){var de=J[ee];he=Math.min(de.minArgumentCount,he),e.signatureHasRestParameter(de)&&(le=!0),de.parameters.length>=I.parameters.length&&(!e.signatureHasRestParameter(de)||e.signatureHasRestParameter(I))&&(I=de)}var De=I.parameters.length-(e.signatureHasRestParameter(I)?1:0),N=I.parameters.map(function(G){return G.name}),b=ce(De,N,void 0,he,!1);if(le){var Q=e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),N[De]||"rest",De>=he?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(157)),void 0);b.push(Q)}return A(q,U,H,void 0,b,X(M,oe,w,re),R,K)}function X(oe,w,re,M){if(e.length(oe)){var U=w.getUnionType(e.map(oe,w.getReturnTypeOfSignature));return w.typeToTypeNode(U,M,void 0,T(re))}}function A(oe,w,re,M,U,H,q,R){return e.factory.createMethodDeclaration(oe,void 0,w,re?e.factory.createToken(57):void 0,M,U,H,R||y(q))}function y(oe){return C(e.Diagnostics.Method_not_implemented.message,oe)}function C(oe,w){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(oe,w===0)]))],!0)}c.createStubbedBody=C;function B(oe,w,re){var M=e.getTsConfigObjectLiteralExpression(w);if(M){var U=ge(M,"compilerOptions");if(U===void 0){oe.insertNodeAtObjectStart(w,M,z("compilerOptions",e.factory.createObjectLiteralExpression(re.map(function(ee){var J=ee[0],de=ee[1];return z(J,de)}),!0)));return}var H=U.initializer;if(e.isObjectLiteralExpression(H))for(var q=0,R=re;q<R.length;q++){var K=R[q],I=K[0],he=K[1],le=ge(H,I);le===void 0?oe.insertNodeAtObjectStart(w,H,z(I,he)):oe.replaceNode(w,le.initializer,he)}}}c.setJsonCompilerOptionValues=B;function F(oe,w,re,M){B(oe,w,[[re,M]])}c.setJsonCompilerOptionValue=F;function z(oe,w){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(oe),w)}c.createJsonPropertyAssignment=z;function ge(oe,w){return e.find(oe.properties,function(re){return e.isPropertyAssignment(re)&&!!re.name&&e.isStringLiteral(re.name)&&re.name.text===w})}c.findJsonProperty=ge;function Pe(oe,w){var re,M=e.visitNode(oe,U);if(re&&M)return{typeNode:M,symbols:re};function U(H){var q;if(e.isLiteralImportTypeNode(H)&&H.qualifier){var R=e.getFirstIdentifier(H.qualifier),K=e.getNameForExportedSymbol(R.symbol,w),I=K!==R.text?fe(H.qualifier,e.factory.createIdentifier(K)):H.qualifier;re=e.append(re,R.symbol);var he=(q=H.typeArguments)===null||q===void 0?void 0:q.map(U);return e.factory.createTypeReferenceNode(I,he)}return e.visitEachChild(H,U,e.nullTransformationContext)}}c.tryGetAutoImportableReferenceFromTypeNode=Pe;function fe(oe,w){return oe.kind===79?w:e.factory.createQualifiedName(fe(oe.left,w),oe.right)}function _e(oe,w){w.forEach(function(re){return oe.addImportFromExportedSymbol(re,!0)})}c.importSymbols=_e;function ne(oe,w){for(var re=e.textSpanEnd(w),M=e.getTokenAtPosition(oe,w.start);M.end<re;)M=M.parent;return M}c.findAncestorMatchingSpan=ne})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){function P(C,B,F,z,ge,Pe){var fe=v(C,B,F,z);if(!(!fe||e.refactor.isRefactorErrorInfo(fe))){var _e=e.textChanges.ChangeTracker.fromContext(ge),ne=fe.isStatic,oe=fe.isReadonly,w=fe.fieldName,re=fe.accessorName,M=fe.originalName,U=fe.type,H=fe.container,q=fe.declaration;e.suppressLeadingAndTrailingTrivia(w),e.suppressLeadingAndTrailingTrivia(re),e.suppressLeadingAndTrailingTrivia(q),e.suppressLeadingAndTrailingTrivia(H);var R,K;if(e.isClassLike(H)){var I=e.getEffectiveModifierFlags(q);if(e.isSourceFileJS(C)){var he=e.factory.createModifiersFromModifierFlags(I);R=he,K=he}else R=e.factory.createModifiersFromModifierFlags(W(I)),K=e.factory.createModifiersFromModifierFlags(E(I));e.canHaveDecorators(q)&&(K=e.concatenate(e.getDecorators(q),K))}ce(_e,C,q,U,w,K);var le=S(w,re,U,R,ne,H);if(e.suppressLeadingAndTrailingTrivia(le),k(_e,C,le,q,H),oe){var ee=e.getFirstConstructorWithBody(H);ee&&X(_e,C,ee,w.text,M)}else{var J=te(w,re,U,R,ne,H);e.suppressLeadingAndTrailingTrivia(J),k(_e,C,J,q,H)}return _e.getChanges()}}c.generateAccessorFromProperty=P;function T(C){return e.isIdentifier(C)||e.isStringLiteral(C)}function s(C){return e.isParameterPropertyDeclaration(C,C.parent)||e.isPropertyDeclaration(C)||e.isPropertyAssignment(C)}function D(C,B){return e.isIdentifier(B)?e.factory.createIdentifier(C):e.factory.createStringLiteral(C)}function O(C,B,F){var z=B?F.name:e.factory.createThis();return e.isIdentifier(C)?e.factory.createPropertyAccessExpression(z,C):e.factory.createElementAccessExpression(z,e.factory.createStringLiteralFromNode(C))}function W(C){return C&=-65,C&=-9,C&16||(C|=4),C}function E(C){return C&=-5,C&=-17,C|=8,C}function v(C,B,F,z,ge){ge===void 0&&(ge=!0);var Pe=e.getTokenAtPosition(C,F),fe=F===z&&ge,_e=e.findAncestor(Pe.parent,s),ne=124;if(!_e||!(e.nodeOverlapsWithStartEnd(_e.name,C,F,z)||fe))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!T(_e.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(_e)&126975|ne)!==ne)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var oe=_e.name.text,w=e.startsWithUnderscore(oe),re=D(w?oe:e.getUniqueName("_".concat(oe),C),_e.name),M=D(w?e.getUniqueName(oe.substring(1),C):oe,_e.name);return{isStatic:e.hasStaticModifier(_e),isReadonly:e.hasEffectiveReadonlyModifier(_e),type:A(_e,B),container:_e.kind===166?_e.parent.parent:_e.parent,originalName:_e.name.text,declaration:_e,fieldName:re,accessorName:M,renameAccessor:w}}c.getAccessorConvertiblePropertyAtPosition=v;function S(C,B,F,z,ge,Pe){return e.factory.createGetAccessorDeclaration(z,B,void 0,F,e.factory.createBlock([e.factory.createReturnStatement(O(C,ge,Pe))],!0))}function te(C,B,F,z,ge,Pe){return e.factory.createSetAccessorDeclaration(z,B,[e.factory.createParameterDeclaration(void 0,void 0,e.factory.createIdentifier("value"),void 0,F)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(O(C,ge,Pe),e.factory.createIdentifier("value")))],!0))}function Y(C,B,F,z,ge,Pe){var fe=e.factory.updatePropertyDeclaration(F,Pe,ge,F.questionToken||F.exclamationToken,z,F.initializer);C.replaceNode(B,F,fe)}function Z(C,B,F,z){var ge=e.factory.updatePropertyAssignment(F,z,F.initializer);C.replacePropertyAssignment(B,F,ge)}function ce(C,B,F,z,ge,Pe){e.isPropertyDeclaration(F)?Y(C,B,F,z,ge,Pe):e.isPropertyAssignment(F)?Z(C,B,F,ge):C.replaceNode(B,F,e.factory.updateParameterDeclaration(F,Pe,F.dotDotDotToken,e.cast(ge,e.isIdentifier),F.questionToken,F.type,F.initializer))}function k(C,B,F,z,ge){e.isParameterPropertyDeclaration(z,z.parent)?C.insertMemberAtStart(B,ge,F):e.isPropertyAssignment(z)?C.insertNodeAfterComma(B,z,F):C.insertNodeAfter(B,z,F)}function X(C,B,F,z,ge){F.body&&F.body.forEachChild(function Pe(fe){e.isElementAccessExpression(fe)&&fe.expression.kind===108&&e.isStringLiteral(fe.argumentExpression)&&fe.argumentExpression.text===ge&&e.isWriteAccess(fe)&&C.replaceNode(B,fe.argumentExpression,e.factory.createStringLiteral(z)),e.isPropertyAccessExpression(fe)&&fe.expression.kind===108&&fe.name.text===ge&&e.isWriteAccess(fe)&&C.replaceNode(B,fe.name,e.factory.createIdentifier(z)),!e.isFunctionLike(fe)&&!e.isClassLike(fe)&&fe.forEachChild(Pe)})}function A(C,B){var F=e.getTypeAnnotationNode(C);if(e.isPropertyDeclaration(C)&&F&&C.questionToken){var z=B.getTypeChecker(),ge=z.getTypeFromTypeNode(F);if(!z.isTypeAssignableTo(z.getUndefinedType(),ge)){var Pe=e.isUnionTypeNode(F)?F.types:[F];return e.factory.createUnionTypeNode(t(t([],Pe,!0),[e.factory.createKeywordTypeNode(155)],!1))}}return F}function y(C,B){for(var F=[];C;){var z=e.getClassExtendsHeritageElement(C),ge=z&&B.getSymbolAtLocation(z.expression);if(!ge)break;var Pe=ge.flags&2097152?B.getAliasedSymbol(ge):ge,fe=Pe.declarations&&e.find(Pe.declarations,e.isClassLike);if(!fe)break;F.push(fe),C=fe}return F}c.getAllSupers=y})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="invalidImportSyntax";function T(E,v){var S=e.getSourceFileOfNode(v),te=e.getNamespaceDeclarationNode(v),Y=E.program.getCompilerOptions(),Z=[];return Z.push(s(E,S,v,e.makeImport(te.name,void 0,v.moduleSpecifier,e.getQuotePreference(S,E.preferences)))),e.getEmitModuleKind(Y)===e.ModuleKind.CommonJS&&Z.push(s(E,S,v,e.factory.createImportEqualsDeclaration(void 0,!1,te.name,e.factory.createExternalModuleReference(v.moduleSpecifier)))),Z}function s(E,v,S,te){var Y=e.textChanges.ChangeTracker.with(E,function(Z){return Z.replaceNode(v,S,te)});return c.createCodeFixActionWithoutFixAll(P,Y,[e.Diagnostics.Replace_import_with_0,Y[0].textChanges[0].newText])}c.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:D});function D(E){var v=E.sourceFile,S=e.Diagnostics.This_expression_is_not_callable.code===E.errorCode?210:211,te=e.findAncestor(e.getTokenAtPosition(v,E.span.start),function(Z){return Z.kind===S});if(!te)return[];var Y=te.expression;return W(E,Y)}c.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:O});function O(E){var v=E.sourceFile,S=e.findAncestor(e.getTokenAtPosition(v,E.span.start),function(te){return te.getStart()===E.span.start&&te.getEnd()===E.span.start+E.span.length});return S?W(E,S):[]}function W(E,v){var S=E.program.getTypeChecker().getTypeAtLocation(v);if(!(S.symbol&&S.symbol.originatingImport))return[];var te=[],Y=S.symbol.originatingImport;if(e.isImportCall(Y)||e.addRange(te,T(E,Y)),e.isExpression(v)&&!(e.isNamedDeclaration(v.parent)&&v.parent.name===v)){var Z=E.sourceFile,ce=e.textChanges.ChangeTracker.with(E,function(k){return k.replaceNode(Z,v,e.factory.createPropertyAccessExpression(v,"default"),{})});te.push(c.createCodeFixActionWithoutFixAll(P,ce,e.Diagnostics.Use_synthetic_default_member))}return te}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="strictClassInitialization",T="addMissingPropertyDefiniteAssignmentAssertions",s="addMissingPropertyUndefinedType",D="addMissingPropertyInitializer",O=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];c.registerCodeFix({errorCodes:O,getCodeActions:function(A){var y=W(A.sourceFile,A.span.start);if(y){var C=[];return e.append(C,S(A,y)),e.append(C,E(A,y)),e.append(C,Y(A,y)),C}},fixIds:[T,s,D],getAllCodeActions:function(X){return c.codeFixAll(X,O,function(A,y){var C=W(y.file,y.start);if(C)switch(X.fixId){case T:v(A,y.file,C.prop);break;case s:te(A,y.file,C);break;case D:var B=X.program.getTypeChecker(),F=ce(B,C.prop);if(!F)return;Z(A,y.file,C.prop,F);break;default:e.Debug.fail(JSON.stringify(X.fixId))}})}});function W(X,A){var y=e.getTokenAtPosition(X,A);if(e.isIdentifier(y)&&e.isPropertyDeclaration(y.parent)){var C=e.getEffectiveTypeAnnotationNode(y.parent);if(C)return{type:C,prop:y.parent,isJs:e.isInJSFile(y.parent)}}}function E(X,A){if(!A.isJs){var y=e.textChanges.ChangeTracker.with(X,function(C){return v(C,X.sourceFile,A.prop)});return c.createCodeFixAction(P,y,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,A.prop.getText()],T,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}}function v(X,A,y){e.suppressLeadingAndTrailingTrivia(y);var C=e.factory.updatePropertyDeclaration(y,y.modifiers,y.name,e.factory.createToken(53),y.type,y.initializer);X.replaceNode(A,y,C)}function S(X,A){var y=e.textChanges.ChangeTracker.with(X,function(C){return te(C,X.sourceFile,A)});return c.createCodeFixAction(P,y,[e.Diagnostics.Add_undefined_type_to_property_0,A.prop.name.getText()],s,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function te(X,A,y){var C=e.factory.createKeywordTypeNode(155),B=e.isUnionTypeNode(y.type)?y.type.types.concat(C):[y.type,C],F=e.factory.createUnionTypeNode(B);y.isJs?X.addJSDocTags(A,y.prop,[e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(F))]):X.replaceNode(A,y.type,F)}function Y(X,A){if(!A.isJs){var y=X.program.getTypeChecker(),C=ce(y,A.prop);if(C){var B=e.textChanges.ChangeTracker.with(X,function(F){return Z(F,X.sourceFile,A.prop,C)});return c.createCodeFixAction(P,B,[e.Diagnostics.Add_initializer_to_property_0,A.prop.name.getText()],D,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}}function Z(X,A,y,C){e.suppressLeadingAndTrailingTrivia(y);var B=e.factory.updatePropertyDeclaration(y,y.modifiers,y.name,y.questionToken,y.type,C);X.replaceNode(A,y,B)}function ce(X,A){return k(X,X.getTypeFromTypeNode(A.type))}function k(X,A){if(A.flags&512)return A===X.getFalseType()||A===X.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(A.isStringLiteral())return e.factory.createStringLiteral(A.value);if(A.isNumberLiteral())return e.factory.createNumericLiteral(A.value);if(A.flags&2048)return e.factory.createBigIntLiteral(A.value);if(A.isUnion())return e.firstDefined(A.types,function(B){return k(X,B)});if(A.isClass()){var y=e.getClassLikeDeclarationOfSymbol(A.symbol);if(!y||e.hasSyntacticModifier(y,256))return;var C=e.getFirstConstructorWithBody(y);return C&&C.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(A.symbol.name),void 0,void 0)}else if(X.isArrayLikeType(A))return e.factory.createArrayLiteralExpression()}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="requireInTs",T=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=D(W.sourceFile,W.program,W.span.start);if(E){var v=e.textChanges.ChangeTracker.with(W,function(S){return s(S,W.sourceFile,E)});return[c.createCodeFixAction(P,v,e.Diagnostics.Convert_require_to_import,P,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[P],getAllCodeActions:function(W){return c.codeFixAll(W,T,function(E,v){var S=D(v.file,W.program,v.start);S&&s(E,W.sourceFile,S)})}});function s(W,E,v){var S=v.allowSyntheticDefaults,te=v.defaultImportName,Y=v.namedImports,Z=v.statement,ce=v.required;W.replaceNode(E,Z,te&&!S?e.factory.createImportEqualsDeclaration(void 0,!1,te,e.factory.createExternalModuleReference(ce)):e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,te,Y),ce,void 0))}function D(W,E,v){var S=e.getTokenAtPosition(W,v).parent;if(!e.isRequireCall(S,!0))throw e.Debug.failBadSyntaxKind(S);var te=e.cast(S.parent,e.isVariableDeclaration),Y=e.tryCast(te.name,e.isIdentifier),Z=e.isObjectBindingPattern(te.name)?O(te.name):void 0;if(Y||Z)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(E.getCompilerOptions()),defaultImportName:Y,namedImports:Z,statement:e.cast(te.parent.parent,e.isVariableStatement),required:e.first(S.arguments)}}function O(W){for(var E=[],v=0,S=W.elements;v<S.length;v++){var te=S[v];if(!e.isIdentifier(te.name)||te.initializer)return;E.push(e.factory.createImportSpecifier(!1,e.tryCast(te.propertyName,e.isIdentifier),te.name))}if(E.length)return e.factory.createNamedImports(E)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="useDefaultImport",T=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=O.sourceFile,E=O.span.start,v=s(W,E);if(v){var S=e.textChanges.ChangeTracker.with(O,function(te){return D(te,W,v,O.preferences)});return[c.createCodeFixAction(P,S,e.Diagnostics.Convert_to_default_import,P,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[P],getAllCodeActions:function(O){return c.codeFixAll(O,T,function(W,E){var v=s(E.file,E.start);v&&D(W,E.file,v,O.preferences)})}});function s(O,W){var E=e.getTokenAtPosition(O,W);if(e.isIdentifier(E)){var v=E.parent;if(e.isImportEqualsDeclaration(v)&&e.isExternalModuleReference(v.moduleReference))return{importNode:v,name:E,moduleSpecifier:v.moduleReference.expression};if(e.isNamespaceImport(v)){var S=v.parent.parent;return{importNode:S,name:E,moduleSpecifier:S.moduleSpecifier}}}}function D(O,W,E,v){O.replaceNode(W,E.importNode,e.makeImport(E.name,void 0,E.moduleSpecifier,e.getQuotePreference(W,v)))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="useBigintLiteral",T=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=e.textChanges.ChangeTracker.with(O,function(E){return s(E,O.sourceFile,O.span)});if(W.length>0)return[c.createCodeFixAction(P,W,e.Diagnostics.Convert_to_a_bigint_numeric_literal,P,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O,W){return s(O,W.file,W)})}});function s(D,O,W){var E=e.tryCast(e.getTokenAtPosition(O,W.start),e.isNumericLiteral);if(E){var v=E.getText(O)+"n";D.replaceNode(O,E,e.factory.createBigIntLiteral(v))}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixAddModuleReferTypeMissingTypeof",T=P,s=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];c.registerCodeFix({errorCodes:s,getCodeActions:function(E){var v=E.sourceFile,S=E.span,te=D(v,S.start),Y=e.textChanges.ChangeTracker.with(E,function(Z){return O(Z,v,te)});return[c.createCodeFixAction(T,Y,e.Diagnostics.Add_missing_typeof,T,e.Diagnostics.Add_missing_typeof)]},fixIds:[T],getAllCodeActions:function(W){return c.codeFixAll(W,s,function(E,v){return O(E,W.sourceFile,D(v.file,v.start))})}});function D(W,E){var v=e.getTokenAtPosition(W,E);return e.Debug.assert(v.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(v.parent.kind===202,"Token parent should be an ImportType"),v.parent}function O(W,E,v){var S=e.factory.updateImportTypeNode(v,v.argument,v.assertions,v.qualifier,v.typeArguments,!0);W.replaceNode(E,v,S)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="wrapJsxInFragment",T=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(E){var v=E.sourceFile,S=E.span,te=s(v,S.start);if(te){var Y=e.textChanges.ChangeTracker.with(E,function(Z){return D(Z,v,te)});return[c.createCodeFixAction(P,Y,e.Diagnostics.Wrap_in_JSX_fragment,P,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[P],getAllCodeActions:function(W){return c.codeFixAll(W,T,function(E,v){var S=s(W.sourceFile,v.start);S&&D(E,W.sourceFile,S)})}});function s(W,E){var v=e.getTokenAtPosition(W,E),S=v.parent,te=S.parent;if(!(!e.isBinaryExpression(te)&&(te=te.parent,!e.isBinaryExpression(te)))&&e.nodeIsMissing(te.operatorToken))return te}function D(W,E,v){var S=O(v);S&&W.replaceNode(E,v,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),S,e.factory.createJsxJsxClosingFragment()))}function O(W){for(var E=[],v=W;;)if(e.isBinaryExpression(v)&&e.nodeIsMissing(v.operatorToken)&&v.operatorToken.kind===27){if(E.push(v.left),e.isJsxChild(v.right))return E.push(v.right),E;if(e.isBinaryExpression(v.right)){v=v.right;continue}else return}else return}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixConvertToMappedObjectType",T=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(E){var v=E.sourceFile,S=E.span,te=s(v,S.start);if(te){var Y=e.textChanges.ChangeTracker.with(E,function(ce){return O(ce,v,te)}),Z=e.idText(te.container.name);return[c.createCodeFixAction(P,Y,[e.Diagnostics.Convert_0_to_mapped_object_type,Z],P,[e.Diagnostics.Convert_0_to_mapped_object_type,Z])]}},fixIds:[P],getAllCodeActions:function(W){return c.codeFixAll(W,T,function(E,v){var S=s(v.file,v.start);S&&O(E,v.file,S)})}});function s(W,E){var v=e.getTokenAtPosition(W,E),S=e.tryCast(v.parent.parent,e.isIndexSignatureDeclaration);if(S){var te=e.isInterfaceDeclaration(S.parent)?S.parent:e.tryCast(S.parent.parent,e.isTypeAliasDeclaration);if(te)return{indexSignature:S,container:te}}}function D(W,E){return e.factory.createTypeAliasDeclaration(W.modifiers,W.name,W.typeParameters,E)}function O(W,E,v){var S=v.indexSignature,te=v.container,Y=e.isInterfaceDeclaration(te)?te.members:te.type.members,Z=Y.filter(function(y){return!e.isIndexSignatureDeclaration(y)}),ce=e.first(S.parameters),k=e.factory.createTypeParameterDeclaration(void 0,e.cast(ce.name,e.isIdentifier),ce.type),X=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(S)?e.factory.createModifier(146):void 0,k,void 0,S.questionToken,S.type,void 0),A=e.factory.createIntersectionTypeNode(t(t(t([],e.getAllSuperTypeNodes(te),!0),[X],!1),Z.length?[e.factory.createTypeLiteralNode(Z)]:e.emptyArray,!0));W.replaceNode(E,te,D(te,A))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="removeAccidentalCallParentheses",T=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(s){var D=e.findAncestor(e.getTokenAtPosition(s.sourceFile,s.span.start),e.isCallExpression);if(D){var O=e.textChanges.ChangeTracker.with(s,function(W){W.deleteRange(s.sourceFile,{pos:D.expression.end,end:D.end})});return[c.createCodeFixActionWithoutFixAll(P,O,e.Diagnostics.Remove_parentheses)]}},fixIds:[P]})})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="removeUnnecessaryAwait",T=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(O){var W=e.textChanges.ChangeTracker.with(O,function(E){return s(E,O.sourceFile,O.span)});if(W.length>0)return[c.createCodeFixAction(P,W,e.Diagnostics.Remove_unnecessary_await,P,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[P],getAllCodeActions:function(D){return c.codeFixAll(D,T,function(O,W){return s(O,W.file,W)})}});function s(D,O,W){var E=e.tryCast(e.getTokenAtPosition(O,W.start),function(ce){return ce.kind===133}),v=E&&e.tryCast(E.parent,e.isAwaitExpression);if(v){var S=v,te=e.isParenthesizedExpression(v.parent);if(te){var Y=e.getLeftmostExpression(v.expression,!1);if(e.isIdentifier(Y)){var Z=e.findPrecedingToken(v.parent.pos,O);Z&&Z.kind!==103&&(S=v.parent)}}D.replaceNode(O,S,v.expression)}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],T="splitTypeOnlyImport";c.registerCodeFix({errorCodes:P,fixIds:[T],getCodeActions:function(W){var E=e.textChanges.ChangeTracker.with(W,function(v){return D(v,s(W.sourceFile,W.span),W)});if(E.length)return[c.createCodeFixAction(T,E,e.Diagnostics.Split_into_two_separate_import_declarations,T,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(O){return c.codeFixAll(O,P,function(W,E){D(W,s(O.sourceFile,E),O)})}});function s(O,W){return e.findAncestor(e.getTokenAtPosition(O,W.start),e.isImportDeclaration)}function D(O,W,E){if(W){var v=e.Debug.checkDefined(W.importClause);O.replaceNode(E.sourceFile,W,e.factory.updateImportDeclaration(W,W.modifiers,e.factory.updateImportClause(v,v.isTypeOnly,v.name,void 0),W.moduleSpecifier,W.assertClause)),O.insertNodeAfter(E.sourceFile,W,e.factory.createImportDeclaration(void 0,e.factory.updateImportClause(v,v.isTypeOnly,void 0,v.namedBindings),W.moduleSpecifier,W.assertClause))}}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixConvertConstToLet",T=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];c.registerCodeFix({errorCodes:T,getCodeActions:function(W){var E=W.sourceFile,v=W.span,S=W.program,te=s(E,v.start,S);if(te!==void 0){var Y=e.textChanges.ChangeTracker.with(W,function(Z){return D(Z,E,te.token)});return[c.createCodeFixActionMaybeFixAll(P,Y,e.Diagnostics.Convert_const_to_let,P,e.Diagnostics.Convert_all_const_to_let)]}},getAllCodeActions:function(O){var W=O.program,E=new e.Map;return c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(O,function(v){c.eachDiagnostic(O,T,function(S){var te=s(S.file,S.start,W);if(te&&e.addToSeen(E,e.getSymbolId(te.symbol)))return D(v,S.file,te.token)})}))},fixIds:[P]});function s(O,W,E){var v,S=E.getTypeChecker(),te=S.getSymbolAtLocation(e.getTokenAtPosition(O,W));if(te!==void 0){var Y=e.tryCast((v=te==null?void 0:te.valueDeclaration)===null||v===void 0?void 0:v.parent,e.isVariableDeclarationList);if(Y!==void 0){var Z=e.findChildOfKind(Y,85,O);if(Z!==void 0)return{symbol:te,token:Z}}}}function D(O,W,E){O.replaceNode(W,E,e.factory.createToken(119))}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="fixExpectedComma",T=e.Diagnostics._0_expected.code,s=[T];c.registerCodeFix({errorCodes:s,getCodeActions:function(W){var E=W.sourceFile,v=D(E,W.span.start,W.errorCode);if(v){var S=e.textChanges.ChangeTracker.with(W,function(te){return O(te,E,v)});return[c.createCodeFixAction(P,S,[e.Diagnostics.Change_0_to_1,";",","],P,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[P],getAllCodeActions:function(W){return c.codeFixAll(W,s,function(E,v){var S=D(v.file,v.start,v.code);S&&O(E,W.sourceFile,S)})}});function D(W,E,v){var S=e.getTokenAtPosition(W,E);return S.kind===26&&S.parent&&(e.isObjectLiteralExpression(S.parent)||e.isArrayLiteralExpression(S.parent))?{node:S}:void 0}function O(W,E,v){var S=v.node,te=e.factory.createToken(27);W.replaceNode(E,S,te)}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="addVoidToPromise",T="addVoidToPromise",s=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];c.registerCodeFix({errorCodes:s,fixIds:[T],getCodeActions:function(W){var E=e.textChanges.ChangeTracker.with(W,function(v){return D(v,W.sourceFile,W.span,W.program)});if(E.length>0)return[c.createCodeFixAction(P,E,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,T,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(W){return c.codeFixAll(W,s,function(E,v){return D(E,v.file,v,W.program,new e.Set)})}});function D(W,E,v,S,te){var Y=e.getTokenAtPosition(E,v.start);if(!(!e.isIdentifier(Y)||!e.isCallExpression(Y.parent)||Y.parent.expression!==Y||Y.parent.arguments.length!==0)){var Z=S.getTypeChecker(),ce=Z.getSymbolAtLocation(Y),k=ce==null?void 0:ce.valueDeclaration;if(!(!k||!e.isParameter(k)||!e.isNewExpression(k.parent.parent))&&!(te!=null&&te.has(k))){te==null||te.add(k);var X=O(k.parent.parent);if(e.some(X)){var A=X[0],y=!e.isUnionTypeNode(A)&&!e.isParenthesizedTypeNode(A)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([A,e.factory.createKeywordTypeNode(114)]).types[0]);y&&W.insertText(E,A.pos,"("),W.insertText(E,A.end,y?") | void":" | void")}else{var C=Z.getResolvedSignature(Y.parent),B=C==null?void 0:C.parameters[0],F=B&&Z.getTypeOfSymbolAtLocation(B,k.parent.parent);e.isInJSFile(k)?(!F||F.flags&3)&&(W.insertText(E,k.parent.parent.end,")"),W.insertText(E,e.skipTrivia(E.text,k.parent.parent.pos),"/** @type {Promise<void>} */(")):(!F||F.flags&2)&&W.insertText(E,k.parent.parent.expression.end,"<void>")}}}}function O(W){var E;if(e.isInJSFile(W)){if(e.isParenthesizedExpression(W.parent)){var v=(E=e.getJSDocTypeTag(W.parent))===null||E===void 0?void 0:E.typeExpression.type;if(v&&e.isTypeReferenceNode(v)&&e.isIdentifier(v.typeName)&&e.idText(v.typeName)==="Promise")return v.typeArguments}}else return W.typeArguments}})(e.codefix||(e.codefix={}))})(h||(h={}));var h;(function(e){(function(c){var P="Convert export",T={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},s={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};c.registerRefactor(P,{kinds:[T.kind,s.kind],getAvailableActions:function(k){var X=D(k,k.triggerReason==="invoked");if(!X)return e.emptyArray;if(!c.isRefactorErrorInfo(X)){var A=X.wasDefault?T:s;return[{name:P,description:A.description,actions:[A]}]}return k.preferences.provideRefactorNotApplicableReason?[{name:P,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[n(n({},T),{notApplicableReason:X.error}),n(n({},s),{notApplicableReason:X.error})]}]:e.emptyArray},getEditsForAction:function(k,X){e.Debug.assert(X===T.name||X===s.name,"Unexpected action name");var A=D(k);e.Debug.assert(A&&!c.isRefactorErrorInfo(A),"Expected applicable refactor info");var y=e.textChanges.ChangeTracker.with(k,function(C){return O(k.file,k.program,A,C,k.cancellationToken)});return{edits:y,renameFilename:void 0,renameLocation:void 0}}});function D(ce,k){k===void 0&&(k=!0);var X=ce.file,A=ce.program,y=e.getRefactorContextSpan(ce),C=e.getTokenAtPosition(X,y.start),B=C.parent&&e.getSyntacticModifierFlags(C.parent)&1&&k?C.parent:e.getParentNodeInSpan(C,X,y);if(!B||!e.isSourceFile(B.parent)&&!(e.isModuleBlock(B.parent)&&e.isAmbientModule(B.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var F=A.getTypeChecker(),z=Z(B,F),ge=e.getSyntacticModifierFlags(B)||(e.isExportAssignment(B)&&!B.isExportEquals?1025:0),Pe=!!(ge&1024);if(!(ge&1)||!Pe&&z.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var fe=function(w){return e.isIdentifier(w)&&F.getSymbolAtLocation(w)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(B.kind){case 259:case 260:case 261:case 263:case 262:case 264:{var _e=B;return _e.name?fe(_e.name)||{exportNode:_e,exportName:_e.name,wasDefault:Pe,exportingModuleSymbol:z}:void 0}case 240:{var ne=B;if(!(ne.declarationList.flags&2)||ne.declarationList.declarations.length!==1)return;var oe=e.first(ne.declarationList.declarations);return oe.initializer?(e.Debug.assert(!Pe,"Can't have a default flag here"),fe(oe.name)||{exportNode:ne,exportName:oe.name,wasDefault:Pe,exportingModuleSymbol:z}):void 0}case 274:{var _e=B;return _e.isExportEquals?void 0:fe(_e.expression)||{exportNode:_e,exportName:_e.expression,wasDefault:Pe,exportingModuleSymbol:z}}default:return}}function O(ce,k,X,A,y){W(ce,X,A,k.getTypeChecker()),E(k,X,A,y)}function W(ce,k,X,A){var y=k.wasDefault,C=k.exportNode,B=k.exportName;if(y)if(e.isExportAssignment(C)&&!C.isExportEquals){var F=C.expression,z=Y(F.text,F.text);X.replaceNode(ce,C,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([z])))}else X.delete(ce,e.Debug.checkDefined(e.findModifier(C,88),"Should find a default keyword in modifier list"));else{var ge=e.Debug.checkDefined(e.findModifier(C,93),"Should find an export keyword in modifier list");switch(C.kind){case 259:case 260:case 261:X.insertNodeAfter(ce,ge,e.factory.createToken(88));break;case 240:var Pe=e.first(C.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(B,A,ce)&&!Pe.type){X.replaceNode(ce,C,e.factory.createExportDefault(e.Debug.checkDefined(Pe.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:X.deleteModifier(ce,ge),X.insertNodeAfter(ce,C,e.factory.createExportDefault(e.factory.createIdentifier(B.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(C.kind))}}}function E(ce,k,X,A){var y=k.wasDefault,C=k.exportName,B=k.exportingModuleSymbol,F=ce.getTypeChecker(),z=e.Debug.checkDefined(F.getSymbolAtLocation(C),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(ce.getSourceFiles(),F,A,z,B,C.text,y,function(ge){if(C!==ge){var Pe=ge.getSourceFile();y?v(Pe,ge,X,C.text):S(Pe,ge,X)}})}function v(ce,k,X,A){var y=k.parent;switch(y.kind){case 208:X.replaceNode(ce,k,e.factory.createIdentifier(A));break;case 273:case 278:{var C=y;X.replaceNode(ce,C,te(A,C.name.text));break}case 270:{var B=y;e.Debug.assert(B.name===k,"Import clause name should match provided ref");var C=te(A,k.text),F=B.namedBindings;if(!F)X.replaceNode(ce,k,e.factory.createNamedImports([C]));else if(F.kind===271){X.deleteRange(ce,{pos:k.getStart(ce),end:F.getStart(ce)});var z=e.isStringLiteral(B.parent.moduleSpecifier)?e.quotePreferenceFromString(B.parent.moduleSpecifier,ce):1,ge=e.makeImport(void 0,[te(A,k.text)],B.parent.moduleSpecifier,z);X.insertNodeAfter(ce,B.parent,ge)}else X.delete(ce,k),X.insertNodeAtEndOfList(ce,F.elements,C);break}case 202:var Pe=y;X.replaceNode(ce,y,e.factory.createImportTypeNode(Pe.argument,Pe.assertions,e.factory.createIdentifier(A),Pe.typeArguments,Pe.isTypeOf));break;default:e.Debug.failBadSyntaxKind(y)}}function S(ce,k,X){var A=k.parent;switch(A.kind){case 208:X.replaceNode(ce,k,e.factory.createIdentifier("default"));break;case 273:{var y=e.factory.createIdentifier(A.name.text);A.parent.elements.length===1?X.replaceNode(ce,A.parent,y):(X.delete(ce,A),X.insertNodeBefore(ce,A.parent,y));break}case 278:{X.replaceNode(ce,A,Y("default",A.name.text));break}default:e.Debug.assertNever(A,"Unexpected parent kind ".concat(A.kind))}}function te(ce,k){return e.factory.createImportSpecifier(!1,ce===k?void 0:e.factory.createIdentifier(ce),e.factory.createIdentifier(k))}function Y(ce,k){return e.factory.createExportSpecifier(!1,ce===k?void 0:e.factory.createIdentifier(ce),e.factory.createIdentifier(k))}function Z(ce,k){var X=ce.parent;if(e.isSourceFile(X))return X.symbol;var A=X.parent.symbol;return A.valueDeclaration&&e.isExternalModuleAugmentation(A.valueDeclaration)?k.getMergedSymbol(A):A}})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){var P,T="Convert import",s=(P={},P[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},P[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},P[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},P);c.registerRefactor(T,{kinds:e.getOwnValues(s).map(function(ce){return ce.kind}),getAvailableActions:function(k){var X=D(k,k.triggerReason==="invoked");if(!X)return e.emptyArray;if(!c.isRefactorErrorInfo(X)){var A=s[X.convertTo];return[{name:T,description:A.description,actions:[A]}]}return k.preferences.provideRefactorNotApplicableReason?e.getOwnValues(s).map(function(y){return{name:T,description:y.description,actions:[n(n({},y),{notApplicableReason:X.error})]}}):e.emptyArray},getEditsForAction:function(k,X){e.Debug.assert(e.some(e.getOwnValues(s),function(C){return C.name===X}),"Unexpected action name");var A=D(k);e.Debug.assert(A&&!c.isRefactorErrorInfo(A),"Expected applicable refactor info");var y=e.textChanges.ChangeTracker.with(k,function(C){return W(k.file,k.program,C,A)});return{edits:y,renameFilename:void 0,renameLocation:void 0}}});function D(ce,k){k===void 0&&(k=!0);var X=ce.file,A=e.getRefactorContextSpan(ce),y=e.getTokenAtPosition(X,A.start),C=k?e.findAncestor(y,e.isImportDeclaration):e.getParentNodeInSpan(y,X,A);if(!C||!e.isImportDeclaration(C))return{error:"Selection is not an import declaration."};var B=A.start+A.length,F=e.findNextToken(C,C.parent,X);if(!(F&&B>F.getStart())){var z=C.importClause;if(!z)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)};if(!z.namedBindings)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)};if(z.namedBindings.kind===271)return{convertTo:0,import:z.namedBindings};var ge=O(ce.program,z);return ge?{convertTo:1,import:z.namedBindings}:{convertTo:2,import:z.namedBindings}}}function O(ce,k){return e.getAllowSyntheticDefaultImports(ce.getCompilerOptions())&&Y(k.parent.moduleSpecifier,ce.getTypeChecker())}function W(ce,k,X,A){var y=k.getTypeChecker();A.convertTo===0?E(ce,y,X,A.import,e.getAllowSyntheticDefaultImports(k.getCompilerOptions())):te(ce,k,X,A.import,A.convertTo===1)}function E(ce,k,X,A,y){var C=!1,B=[],F=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(A.name,k,ce,function(re){if(!e.isPropertyAccessOrQualifiedName(re.parent))C=!0;else{var M=v(re.parent).text;k.resolveName(M,re,67108863,!0)&&F.set(M,!0),e.Debug.assert(S(re.parent)===re,"Parent expression should match id"),B.push(re.parent)}});for(var z=new e.Map,ge=0,Pe=B;ge<Pe.length;ge++){var fe=Pe[ge],_e=v(fe).text,ne=z.get(_e);ne===void 0&&z.set(_e,ne=F.has(_e)?e.getUniqueName(_e,ce):_e),X.replaceNode(ce,fe,e.factory.createIdentifier(ne))}var oe=[];z.forEach(function(re,M){oe.push(e.factory.createImportSpecifier(!1,re===M?void 0:e.factory.createIdentifier(M),e.factory.createIdentifier(re)))});var w=A.parent.parent;C&&!y?X.insertNodeAfter(ce,w,Z(w,void 0,oe)):X.replaceNode(ce,w,Z(w,C?e.factory.createIdentifier(A.name.text):void 0,oe))}function v(ce){return e.isPropertyAccessExpression(ce)?ce.name:ce.right}function S(ce){return e.isPropertyAccessExpression(ce)?ce.expression:ce.left}function te(ce,k,X,A,y){y===void 0&&(y=O(k,A.parent));var C=k.getTypeChecker(),B=A.parent.parent,F=B.moduleSpecifier,z=new e.Set;A.elements.forEach(function(H){var q=C.getSymbolAtLocation(H.name);q&&z.add(q)});var ge=F&&e.isStringLiteral(F)?e.codefix.moduleSpecifierToValidIdentifier(F.text,99):"module";function Pe(H){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(H.name,C,ce,function(q){var R=C.resolveName(ge,q,67108863,!0);return R?z.has(R)?e.isExportSpecifier(q.parent):!0:!1})}for(var fe=A.elements.some(Pe),_e=fe?e.getUniqueName(ge,ce):ge,ne=new e.Set,oe=function(H){var q=(H.propertyName||H.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(H.name,C,ce,function(R){var K=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(_e),q);e.isShorthandPropertyAssignment(R.parent)?X.replaceNode(ce,R.parent,e.factory.createPropertyAssignment(R.text,K)):e.isExportSpecifier(R.parent)?ne.add(H):X.replaceNode(ce,R,K)})},w=0,re=A.elements;w<re.length;w++){var M=re[w];oe(M)}if(X.replaceNode(ce,A,y?e.factory.createIdentifier(_e):e.factory.createNamespaceImport(e.factory.createIdentifier(_e))),ne.size){var U=e.arrayFrom(ne.values()).map(function(H){return e.factory.createImportSpecifier(H.isTypeOnly,H.propertyName&&e.factory.createIdentifier(H.propertyName.text),e.factory.createIdentifier(H.name.text))});X.insertNodeAfter(ce,A.parent.parent,Z(B,void 0,U))}}c.doChangeNamedToNamespaceOrDefault=te;function Y(ce,k){var X=k.resolveExternalModuleName(ce);if(!X)return!1;var A=k.resolveExternalModuleSymbol(X);return X!==A}function Z(ce,k,X){return e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,k,X&&X.length?e.factory.createNamedImports(X):void 0),ce.moduleSpecifier,void 0)}})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Convert to optional chain expression",s=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),D={name:T,description:s,kind:"refactor.rewrite.expression.optionalChain"};c.registerRefactor(T,{kinds:[D.kind],getEditsForAction:W,getAvailableActions:O});function O(Pe){var fe=te(Pe,Pe.triggerReason==="invoked");return fe?c.isRefactorErrorInfo(fe)?Pe.preferences.provideRefactorNotApplicableReason?[{name:T,description:s,actions:[n(n({},D),{notApplicableReason:fe.error})]}]:e.emptyArray:[{name:T,description:s,actions:[D]}]:e.emptyArray}function W(Pe,fe){var _e=te(Pe);e.Debug.assert(_e&&!c.isRefactorErrorInfo(_e),"Expected applicable refactor info");var ne=e.textChanges.ChangeTracker.with(Pe,function(oe){return ge(Pe.file,Pe.program.getTypeChecker(),oe,_e)});return{edits:ne,renameFilename:void 0,renameLocation:void 0}}function E(Pe){return e.isBinaryExpression(Pe)||e.isConditionalExpression(Pe)}function v(Pe){return e.isExpressionStatement(Pe)||e.isReturnStatement(Pe)||e.isVariableStatement(Pe)}function S(Pe){return E(Pe)||v(Pe)}function te(Pe,fe){fe===void 0&&(fe=!0);var _e=Pe.file,ne=Pe.program,oe=e.getRefactorContextSpan(Pe),w=oe.length===0;if(!(w&&!fe)){var re=e.getTokenAtPosition(_e,oe.start),M=e.findTokenOnLeftOfPosition(_e,oe.start+oe.length),U=e.createTextSpanFromBounds(re.pos,M&&M.end>=re.pos?M.getEnd():re.getEnd()),H=w?C(re):y(re,U),q=H&&S(H)?B(H):void 0;if(!q)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var R=ne.getTypeChecker();return e.isConditionalExpression(q)?Y(q,R):Z(q)}}function Y(Pe,fe){var _e=Pe.condition,ne=F(Pe.whenTrue);if(!ne||fe.isNullableType(fe.getTypeAtLocation(ne)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(_e)||e.isIdentifier(_e))&&k(_e,ne.expression))return{finalExpression:ne,occurrences:[_e],expression:Pe};if(e.isBinaryExpression(_e)){var oe=ce(ne.expression,_e);return oe?{finalExpression:ne,occurrences:oe,expression:Pe}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function Z(Pe){if(Pe.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var fe=F(Pe.right);if(!fe)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var _e=ce(fe.expression,Pe.left);return _e?{finalExpression:fe,occurrences:_e,expression:Pe}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function ce(Pe,fe){for(var _e=[];e.isBinaryExpression(fe)&&fe.operatorToken.kind===55;){var ne=k(e.skipParentheses(Pe),e.skipParentheses(fe.right));if(!ne)break;_e.push(ne),Pe=ne,fe=fe.left}var oe=k(Pe,fe);return oe&&_e.push(oe),_e.length>0?_e:void 0}function k(Pe,fe){if(!(!e.isIdentifier(fe)&&!e.isPropertyAccessExpression(fe)&&!e.isElementAccessExpression(fe)))return X(Pe,fe)?fe:void 0}function X(Pe,fe){for(;(e.isCallExpression(Pe)||e.isPropertyAccessExpression(Pe)||e.isElementAccessExpression(Pe))&&A(Pe)!==A(fe);)Pe=Pe.expression;for(;e.isPropertyAccessExpression(Pe)&&e.isPropertyAccessExpression(fe)||e.isElementAccessExpression(Pe)&&e.isElementAccessExpression(fe);){if(A(Pe)!==A(fe))return!1;Pe=Pe.expression,fe=fe.expression}return e.isIdentifier(Pe)&&e.isIdentifier(fe)&&Pe.getText()===fe.getText()}function A(Pe){if(e.isIdentifier(Pe)||e.isStringOrNumericLiteralLike(Pe))return Pe.getText();if(e.isPropertyAccessExpression(Pe))return A(Pe.name);if(e.isElementAccessExpression(Pe))return A(Pe.argumentExpression)}function y(Pe,fe){for(;Pe.parent;){if(S(Pe)&&fe.length!==0&&Pe.end>=fe.start+fe.length)return Pe;Pe=Pe.parent}}function C(Pe){for(;Pe.parent;){if(S(Pe)&&!S(Pe.parent))return Pe;Pe=Pe.parent}}function B(Pe){if(E(Pe))return Pe;if(e.isVariableStatement(Pe)){var fe=e.getSingleVariableOfVariableStatement(Pe),_e=fe==null?void 0:fe.initializer;return _e&&E(_e)?_e:void 0}return Pe.expression&&E(Pe.expression)?Pe.expression:void 0}function F(Pe){if(Pe=e.skipParentheses(Pe),e.isBinaryExpression(Pe))return F(Pe.left);if((e.isPropertyAccessExpression(Pe)||e.isElementAccessExpression(Pe)||e.isCallExpression(Pe))&&!e.isOptionalChain(Pe))return Pe}function z(Pe,fe,_e){if(e.isPropertyAccessExpression(fe)||e.isElementAccessExpression(fe)||e.isCallExpression(fe)){var ne=z(Pe,fe.expression,_e),oe=_e.length>0?_e[_e.length-1]:void 0,w=(oe==null?void 0:oe.getText())===fe.expression.getText();if(w&&_e.pop(),e.isCallExpression(fe))return w?e.factory.createCallChain(ne,e.factory.createToken(28),fe.typeArguments,fe.arguments):e.factory.createCallChain(ne,fe.questionDotToken,fe.typeArguments,fe.arguments);if(e.isPropertyAccessExpression(fe))return w?e.factory.createPropertyAccessChain(ne,e.factory.createToken(28),fe.name):e.factory.createPropertyAccessChain(ne,fe.questionDotToken,fe.name);if(e.isElementAccessExpression(fe))return w?e.factory.createElementAccessChain(ne,e.factory.createToken(28),fe.argumentExpression):e.factory.createElementAccessChain(ne,fe.questionDotToken,fe.argumentExpression)}return fe}function ge(Pe,fe,_e,ne,oe){var w=ne.finalExpression,re=ne.occurrences,M=ne.expression,U=re[re.length-1],H=z(fe,w,re);H&&(e.isPropertyAccessExpression(H)||e.isElementAccessExpression(H)||e.isCallExpression(H))&&(e.isBinaryExpression(M)?_e.replaceNodeRange(Pe,U,w,H):e.isConditionalExpression(M)&&_e.replaceNode(Pe,M,e.factory.createBinaryExpression(H,e.factory.createToken(60),M.whenFalse)))}})(c.convertToOptionalChainExpression||(c.convertToOptionalChainExpression={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Convert overload list to single signature",s=e.Diagnostics.Convert_overload_list_to_single_signature.message,D={name:T,description:s,kind:"refactor.rewrite.function.overloadList"};c.registerRefactor(T,{kinds:[D.kind],getEditsForAction:W,getAvailableActions:O});function O(S){var te=S.file,Y=S.startPosition,Z=S.program,ce=v(te,Y,Z);return ce?[{name:T,description:s,actions:[D]}]:e.emptyArray}function W(S){var te=S.file,Y=S.startPosition,Z=S.program,ce=v(te,Y,Z);if(!ce)return;var k=Z.getTypeChecker(),X=ce[ce.length-1],A=X;switch(X.kind){case 170:{A=e.factory.updateMethodSignature(X,X.modifiers,X.name,X.questionToken,X.typeParameters,C(ce),X.type);break}case 171:{A=e.factory.updateMethodDeclaration(X,X.modifiers,X.asteriskToken,X.name,X.questionToken,X.typeParameters,C(ce),X.type,X.body);break}case 176:{A=e.factory.updateCallSignature(X,X.typeParameters,C(ce),X.type);break}case 173:{A=e.factory.updateConstructorDeclaration(X,X.modifiers,C(ce),X.body);break}case 177:{A=e.factory.updateConstructSignature(X,X.typeParameters,C(ce),X.type);break}case 259:{A=e.factory.updateFunctionDeclaration(X,X.modifiers,X.asteriskToken,X.name,X.typeParameters,C(ce),X.type,X.body);break}default:return e.Debug.failBadSyntaxKind(X,"Unhandled signature kind in overload list conversion refactoring")}if(A===X)return;var y=e.textChanges.ChangeTracker.with(S,function(z){z.replaceNodeRange(te,ce[0],ce[ce.length-1],A)});return{renameFilename:void 0,renameLocation:void 0,edits:y};function C(z){var ge=z[z.length-1];return e.isFunctionLikeDeclaration(ge)&&ge.body&&(z=z.slice(0,z.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(z,B)))])}function B(z){var ge=e.map(z.parameters,F);return e.setEmitFlags(e.factory.createTupleTypeNode(ge),e.some(ge,function(Pe){return!!e.length(e.getSyntheticLeadingComments(Pe))})?0:1)}function F(z){e.Debug.assert(e.isIdentifier(z.name));var ge=e.setTextRange(e.factory.createNamedTupleMember(z.dotDotDotToken,z.name,z.questionToken,z.type||e.factory.createKeywordTypeNode(131)),z),Pe=z.symbol&&z.symbol.getDocumentationComment(k);if(Pe){var fe=e.displayPartsToString(Pe);fe.length&&e.setSyntheticLeadingComments(ge,[{text:`*
`.concat(fe.split(`
`).map(function(_e){return" * ".concat(_e)}).join(`
`),`
`),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return ge}}function E(S){switch(S.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function v(S,te,Y){var Z=e.getTokenAtPosition(S,te),ce=e.findAncestor(Z,E);if(ce&&!(e.isFunctionLikeDeclaration(ce)&&ce.body&&e.rangeContainsPosition(ce.body,te))){var k=Y.getTypeChecker(),X=ce.symbol;if(X){var A=X.declarations;if(!(e.length(A)<=1)&&e.every(A,function(z){return e.getSourceFileOfNode(z)===S})&&E(A[0])){var y=A[0].kind;if(e.every(A,function(z){return z.kind===y})){var C=A;if(!e.some(C,function(z){return!!z.typeParameters||e.some(z.parameters,function(ge){return!!ge.modifiers||!e.isIdentifier(ge.name)})})){var B=e.mapDefined(C,function(z){return k.getSignatureFromDeclaration(z)});if(e.length(B)===e.length(A)){var F=k.getReturnTypeOfSignature(B[0]);if(e.every(B,function(z){return k.getReturnTypeOfSignature(z)===F}))return C}}}}}}}})(c.addOrRemoveBracesToArrowFunction||(c.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Extract Symbol",s={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},D={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};c.registerRefactor(T,{kinds:[s.kind,D.kind],getEditsForAction:W,getAvailableActions:O});function O(G){var ae=G.kind,Te=S(G.file,e.getRefactorContextSpan(G),G.triggerReason==="invoked"),Ne=Te.targetRange;if(Ne===void 0){if(!Te.errors||Te.errors.length===0||!G.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var we=[];return c.refactorKindBeginsWith(D.kind,ae)&&we.push({name:T,description:D.description,actions:[n(n({},D),{notApplicableReason:mr(Te.errors)})]}),c.refactorKindBeginsWith(s.kind,ae)&&we.push({name:T,description:s.description,actions:[n(n({},s),{notApplicableReason:mr(Te.errors)})]}),we}var nr=A(Ne,G);if(nr===void 0)return e.emptyArray;for(var tr=[],me=new e.Map,He,rr=[],je=new e.Map,Ce,Ae=0,qe=0,xe=nr;qe<xe.length;qe++){var L=xe[qe],ue=L.functionExtraction,Ue=L.constantExtraction;if(c.refactorKindBeginsWith(D.kind,ae)){var Je=ue.description;ue.errors.length===0?me.has(Je)||(me.set(Je,!0),tr.push({description:Je,name:"function_scope_".concat(Ae),kind:D.kind})):He||(He={description:Je,name:"function_scope_".concat(Ae),notApplicableReason:mr(ue.errors),kind:D.kind})}if(c.refactorKindBeginsWith(s.kind,ae)){var Je=Ue.description;Ue.errors.length===0?je.has(Je)||(je.set(Je,!0),rr.push({description:Je,name:"constant_scope_".concat(Ae),kind:s.kind})):Ce||(Ce={description:Je,name:"constant_scope_".concat(Ae),notApplicableReason:mr(Ue.errors),kind:s.kind})}Ae++}var lr=[];return tr.length?lr.push({name:T,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:tr}):G.preferences.provideRefactorNotApplicableReason&&He&&lr.push({name:T,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[He]}),rr.length?lr.push({name:T,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:rr}):G.preferences.provideRefactorNotApplicableReason&&Ce&&lr.push({name:T,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[Ce]}),lr.length?lr:e.emptyArray;function mr(Hr){var wr=Hr[0].messageText;return typeof wr!="string"&&(wr=wr.messageText),wr}}P.getRefactorActionsToExtractSymbol=O;function W(G,ae){var Te=S(G.file,e.getRefactorContextSpan(G)),Ne=Te.targetRange,we=/^function_scope_(\d+)$/.exec(ae);if(we){var nr=+we[1];return e.Debug.assert(isFinite(nr),"Expected to parse a finite number from the function scope index"),k(Ne,G,nr)}var tr=/^constant_scope_(\d+)$/.exec(ae);if(tr){var nr=+tr[1];return e.Debug.assert(isFinite(nr),"Expected to parse a finite number from the constant scope index"),X(Ne,G,nr)}e.Debug.fail("Unrecognized action name")}P.getRefactorEditsToExtractSymbol=W;var E;(function(G){function ae(Te){return{message:Te,code:0,category:e.DiagnosticCategory.Message,key:Te}}G.cannotExtractRange=ae("Cannot extract range."),G.cannotExtractImport=ae("Cannot extract import statement."),G.cannotExtractSuper=ae("Cannot extract super call."),G.cannotExtractJSDoc=ae("Cannot extract JSDoc."),G.cannotExtractEmpty=ae("Cannot extract empty range."),G.expressionExpected=ae("expression expected."),G.uselessConstantType=ae("No reason to extract constant of type."),G.statementOrExpressionExpected=ae("Statement or expression expected."),G.cannotExtractRangeContainingConditionalBreakOrContinueStatements=ae("Cannot extract range containing conditional break or continue statements."),G.cannotExtractRangeContainingConditionalReturnStatement=ae("Cannot extract range containing conditional return statement."),G.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=ae("Cannot extract range containing labeled break or continue with target outside of the range."),G.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=ae("Cannot extract range containing writes to references located outside of the target range in generators."),G.typeWillNotBeVisibleInTheNewScope=ae("Type will not visible in the new scope."),G.functionWillNotBeVisibleInTheNewScope=ae("Function will not visible in the new scope."),G.cannotExtractIdentifier=ae("Select more than a single identifier."),G.cannotExtractExportedEntity=ae("Cannot extract exported declaration"),G.cannotWriteInExpression=ae("Cannot write back side-effects when extracting an expression"),G.cannotExtractReadonlyPropertyInitializerOutsideConstructor=ae("Cannot move initialization of read-only class property outside of the constructor"),G.cannotExtractAmbientBlock=ae("Cannot extract code from ambient contexts"),G.cannotAccessVariablesFromNestedScopes=ae("Cannot access variables from nested scopes"),G.cannotExtractToJSClass=ae("Cannot extract constant to a class scope in JS"),G.cannotExtractToExpressionArrowFunction=ae("Cannot extract constant to an arrow function without a block"),G.cannotExtractFunctionsContainingThisToMethod=ae("Cannot extract functions containing this to method")})(E=P.Messages||(P.Messages={}));var v;(function(G){G[G.None=0]="None",G[G.HasReturn=1]="HasReturn",G[G.IsGenerator=2]="IsGenerator",G[G.IsAsyncFunction=4]="IsAsyncFunction",G[G.UsesThis=8]="UsesThis",G[G.UsesThisInFunction=16]="UsesThisInFunction",G[G.InStaticRegion=32]="InStaticRegion"})(v||(v={}));function S(G,ae,Te){Te===void 0&&(Te=!0);var Ne=ae.length;if(Ne===0&&!Te)return{errors:[e.createFileDiagnostic(G,ae.start,Ne,E.cannotExtractEmpty)]};var we=Ne===0&&Te,nr=e.findFirstNonJsxWhitespaceToken(G,ae.start),tr=e.findTokenOnLeftOfPosition(G,e.textSpanEnd(ae)),me=nr&&tr&&Te?te(nr,tr,G):ae,He=we?de(nr):e.getParentNodeInSpan(nr,G,me),rr=we?He:e.getParentNodeInSpan(tr,G,me),je=v.None,Ce;if(!He||!rr)return{errors:[e.createFileDiagnostic(G,ae.start,Ne,E.cannotExtractRange)]};if(He.flags&8388608)return{errors:[e.createFileDiagnostic(G,ae.start,Ne,E.cannotExtractJSDoc)]};if(He.parent!==rr.parent)return{errors:[e.createFileDiagnostic(G,ae.start,Ne,E.cannotExtractRange)]};if(He!==rr){if(!N(He.parent))return{errors:[e.createFileDiagnostic(G,ae.start,Ne,E.cannotExtractRange)]};for(var Ae=[],qe=0,xe=He.parent.statements;qe<xe.length;qe++){var L=xe[qe];if(L===He||Ae.length){var ue=wr(L);if(ue)return{errors:ue};Ae.push(L)}if(L===rr)break}return Ae.length?{targetRange:{range:Ae,facts:je,thisNode:Ce}}:{errors:[e.createFileDiagnostic(G,ae.start,Ne,E.cannotExtractRange)]}}if(e.isReturnStatement(He)&&!He.expression)return{errors:[e.createFileDiagnostic(G,ae.start,Ne,E.cannotExtractRange)]};var Ue=lr(He),Je=mr(Ue)||wr(Ue);if(Je)return{errors:Je};return{targetRange:{range:Y(Ue),facts:je,thisNode:Ce}};function lr(Oe){if(e.isReturnStatement(Oe)){if(Oe.expression)return Oe.expression}else if(e.isVariableStatement(Oe)||e.isVariableDeclarationList(Oe)){for(var Ze=e.isVariableStatement(Oe)?Oe.declarationList.declarations:Oe.declarations,tt=0,ut=void 0,or=0,qr=Ze;or<qr.length;or++){var Rr=qr[or];Rr.initializer&&(tt++,ut=Rr.initializer)}if(tt===1)return ut}else if(e.isVariableDeclaration(Oe)&&Oe.initializer)return Oe.initializer;return Oe}function mr(Oe){if(e.isIdentifier(e.isExpressionStatement(Oe)?Oe.expression:Oe))return[e.createDiagnosticForNode(Oe,E.cannotExtractIdentifier)]}function Hr(Oe,Ze){for(var tt=Oe;tt!==Ze;){if(tt.kind===169){e.isStatic(tt)&&(je|=v.InStaticRegion);break}else if(tt.kind===166){var ut=e.getContainingFunction(tt);ut.kind===173&&(je|=v.InStaticRegion);break}else tt.kind===171&&e.isStatic(tt)&&(je|=v.InStaticRegion);tt=tt.parent}}function wr(Oe){var Ze;if(function(Fr){Fr[Fr.None=0]="None",Fr[Fr.Break=1]="Break",Fr[Fr.Continue=2]="Continue",Fr[Fr.Return=4]="Return"}(Ze||(Ze={})),e.Debug.assert(Oe.pos<=Oe.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(Oe.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(Oe)&&!(e.isExpressionNode(Oe)&&De(Oe))&&!Q(Oe))return[e.createDiagnosticForNode(Oe,E.statementOrExpressionExpected)];if(Oe.flags&16777216)return[e.createDiagnosticForNode(Oe,E.cannotExtractAmbientBlock)];var tt=e.getContainingClass(Oe);tt&&Hr(Oe,tt);var ut,or=4,qr;if(zr(Oe),je&v.UsesThis){var Rr=e.getThisContainer(Oe,!1);(Rr.kind===259||Rr.kind===171&&Rr.parent.kind===207||Rr.kind===215)&&(je|=v.UsesThisInFunction)}return ut;function zr(Fr){if(ut)return!0;if(e.isDeclaration(Fr)){var _t=Fr.kind===257?Fr.parent.parent:Fr;if(e.hasSyntacticModifier(_t,1))return(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.cannotExtractExportedEntity)),!0}switch(Fr.kind){case 269:return(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.cannotExtractImport)),!0;case 274:return(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.cannotExtractExportedEntity)),!0;case 106:if(Fr.parent.kind===210){var Ct=e.getContainingClass(Fr);if(Ct===void 0||Ct.pos<ae.start||Ct.end>=ae.start+ae.length)return(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.cannotExtractSuper)),!0}else je|=v.UsesThis,Ce=Fr;break;case 216:e.forEachChild(Fr,function vr(Le){if(e.isThis(Le))je|=v.UsesThis,Ce=Fr;else{if(e.isClassLike(Le)||e.isFunctionLike(Le)&&!e.isArrowFunction(Le))return!1;e.forEachChild(Le,vr)}});case 260:case 259:e.isSourceFile(Fr.parent)&&Fr.parent.externalModuleIndicator===void 0&&(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}var yt=or;switch(Fr.kind){case 242:or&=-5;break;case 255:or=0;break;case 238:Fr.parent&&Fr.parent.kind===255&&Fr.parent.finallyBlock===Fr&&(or=4);break;case 293:case 292:or|=1;break;default:e.isIterationStatement(Fr,!1)&&(or|=3);break}switch(Fr.kind){case 194:case 108:je|=v.UsesThis,Ce=Fr;break;case 253:{var Fe=Fr.label;(qr||(qr=[])).push(Fe.escapedText),e.forEachChild(Fr,zr),qr.pop();break}case 249:case 248:{var Fe=Fr.label;Fe?e.contains(qr,Fe.escapedText)||(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):or&(Fr.kind===249?1:2)||(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:je|=v.IsAsyncFunction;break;case 226:je|=v.IsGenerator;break;case 250:or&4?je|=v.HasReturn:(ut||(ut=[])).push(e.createDiagnosticForNode(Fr,E.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(Fr,zr);break}or=yt}}}P.getRangeToExtract=S;function te(G,ae,Te){var Ne=G.getStart(Te),we=ae.getEnd();return Te.text.charCodeAt(we)===59&&we++,{start:Ne,length:we-Ne}}function Y(G){if(e.isStatement(G))return[G];if(e.isExpressionNode(G))return e.isExpressionStatement(G.parent)?[G.parent]:G;if(Q(G))return G}function Z(G){return e.isArrowFunction(G)?e.isFunctionBody(G.body):e.isFunctionLikeDeclaration(G)||e.isSourceFile(G)||e.isModuleBlock(G)||e.isClassLike(G)}function ce(G){var ae=he(G.range)?e.first(G.range):G.range;if(G.facts&v.UsesThis&&!(G.facts&v.UsesThisInFunction)){var Te=e.getContainingClass(ae);if(Te){var Ne=e.findAncestor(ae,e.isFunctionLikeDeclaration);return Ne?[Ne,Te]:[Te]}}for(var we=[];;)if(ae=ae.parent,ae.kind===166&&(ae=e.findAncestor(ae,function(nr){return e.isFunctionLikeDeclaration(nr)}).parent),Z(ae)&&(we.push(ae),ae.kind===308))return we}function k(G,ae,Te){var Ne=y(G,ae),we=Ne.scopes,nr=Ne.readsAndWrites,tr=nr.target,me=nr.usagesPerScope,He=nr.functionErrorsPerScope,rr=nr.exposedVariableDeclarations;return e.Debug.assert(!He[Te].length,"The extraction went missing? How?"),ae.cancellationToken.throwIfCancellationRequested(),fe(tr,we[Te],me[Te],rr,G,ae)}function X(G,ae,Te){var Ne=y(G,ae),we=Ne.scopes,nr=Ne.readsAndWrites,tr=nr.target,me=nr.usagesPerScope,He=nr.constantErrorsPerScope,rr=nr.exposedVariableDeclarations;e.Debug.assert(!He[Te].length,"The extraction went missing? How?"),e.Debug.assert(rr.length===0,"Extract constant accepted a range containing a variable declaration?"),ae.cancellationToken.throwIfCancellationRequested();var je=e.isExpression(tr)?tr:tr.statements[0].expression;return _e(je,we[Te],me[Te],G.facts,ae)}function A(G,ae){var Te=y(G,ae),Ne=Te.scopes,we=Te.readsAndWrites,nr=we.functionErrorsPerScope,tr=we.constantErrorsPerScope,me=Ne.map(function(He,rr){var je=C(He),Ce=B(He),Ae=e.isFunctionLikeDeclaration(He)?F(He):e.isClassLike(He)?z(He):ge(He),qe,xe;return Ae===1?(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[je,"global"]),xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ce,"global"])):Ae===0?(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[je,"module"]),xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ce,"module"])):(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[je,Ae]),xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[Ce,Ae])),rr===0&&!e.isClassLike(He)&&(xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[Ce])),{functionExtraction:{description:qe,errors:nr[rr]},constantExtraction:{description:xe,errors:tr[rr]}}});return me}function y(G,ae){var Te=ae.file,Ne=ce(G),we=le(G,Te),nr=J(G,Ne,we,Te,ae.program.getTypeChecker(),ae.cancellationToken);return{scopes:Ne,readsAndWrites:nr}}function C(G){return e.isFunctionLikeDeclaration(G)?"inner function":e.isClassLike(G)?"method":"function"}function B(G){return e.isClassLike(G)?"readonly field":"constant"}function F(G){switch(G.kind){case 173:return"constructor";case 215:case 259:return G.name?"function '".concat(G.name.text,"'"):e.ANONYMOUS;case 216:return"arrow function";case 171:return"method '".concat(G.name.getText(),"'");case 174:return"'get ".concat(G.name.getText(),"'");case 175:return"'set ".concat(G.name.getText(),"'");default:throw e.Debug.assertNever(G,"Unexpected scope kind ".concat(G.kind))}}function z(G){return G.kind===260?G.name?"class '".concat(G.name.text,"'"):"anonymous class declaration":G.name?"class expression '".concat(G.name.text,"'"):"anonymous class expression"}function ge(G){return G.kind===265?"namespace '".concat(G.parent.name.getText(),"'"):G.externalModuleIndicator?0:1}var Pe;(function(G){G[G.Module=0]="Module",G[G.Global=1]="Global"})(Pe||(Pe={}));function fe(G,ae,Te,Ne,we,nr){var tr=Te.usages,me=Te.typeParameterUsages,He=Te.substitutions,rr=nr.program.getTypeChecker(),je=e.getEmitScriptTarget(nr.program.getCompilerOptions()),Ce=e.codefix.createImportAdder(nr.file,nr.program,nr.preferences,nr.host),Ae=ae.getSourceFile(),qe=e.getUniqueName(e.isClassLike(ae)?"newMethod":"newFunction",Ae),xe=e.isInJSFile(ae),L=e.factory.createIdentifier(qe),ue,Ue=[],Je=[],lr;tr.forEach(function(Ir,Jr){var ye;if(!xe){var Ie=rr.getTypeOfSymbolAtLocation(Ir.symbol,Ir.node);Ie=rr.getBaseTypeOfLiteralType(Ie),ye=e.codefix.typeToAutoImportableTypeNode(rr,Ce,Ie,ae,je,1)}var We=e.factory.createParameterDeclaration(void 0,void 0,Jr,void 0,ye);Ue.push(We),Ir.usage===2&&(lr||(lr=[])).push(Ir),Je.push(e.factory.createIdentifier(Jr))});var mr=e.arrayFrom(me.values()).map(function(Ir){return{type:Ir,declaration:oe(Ir)}}),Hr=mr.sort(w),wr=Hr.length===0?void 0:Hr.map(function(Ir){return Ir.declaration}),Oe=wr!==void 0?wr.map(function(Ir){return e.factory.createTypeReferenceNode(Ir.name,void 0)}):void 0;if(e.isExpression(G)&&!xe){var Ze=rr.getContextualType(G);ue=rr.typeToTypeNode(Ze,ae,1)}var tt=M(G,Ne,lr,He,!!(we.facts&v.HasReturn)),ut=tt.body,or=tt.returnValueProperty;e.suppressLeadingAndTrailingTrivia(ut);var qr,Rr=!!(we.facts&v.UsesThisInFunction);if(e.isClassLike(ae)){var zr=xe?[]:[e.factory.createModifier(121)];we.facts&v.InStaticRegion&&zr.push(e.factory.createModifier(124)),we.facts&v.IsAsyncFunction&&zr.push(e.factory.createModifier(132)),qr=e.factory.createMethodDeclaration(zr.length?zr:void 0,we.facts&v.IsGenerator?e.factory.createToken(41):void 0,L,void 0,wr,Ue,ue,ut)}else Rr&&Ue.unshift(e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,rr.typeToTypeNode(rr.getTypeAtLocation(we.thisNode),ae,1),void 0)),qr=e.factory.createFunctionDeclaration(we.facts&v.IsAsyncFunction?[e.factory.createToken(132)]:void 0,we.facts&v.IsGenerator?e.factory.createToken(41):void 0,L,wr,Ue,ue,ut);var Fr=e.textChanges.ChangeTracker.fromContext(nr),_t=(he(we.range)?e.last(we.range):we.range).end,Ct=q(_t,ae);Ct?Fr.insertNodeBefore(nr.file,Ct,qr,!0):Fr.insertNodeAtEndOfScope(nr.file,ae,qr),Ce.writeFixes(Fr);var yt=[],Fe=re(ae,we,qe);Rr&&Je.unshift(e.factory.createIdentifier("this"));var vr=e.factory.createCallExpression(Rr?e.factory.createPropertyAccessExpression(Fe,"call"):Fe,Oe,Je);if(we.facts&v.IsGenerator&&(vr=e.factory.createYieldExpression(e.factory.createToken(41),vr)),we.facts&v.IsAsyncFunction&&(vr=e.factory.createAwaitExpression(vr)),b(G)&&(vr=e.factory.createJsxExpression(void 0,vr)),Ne.length&&!lr)if(e.Debug.assert(!or,"Expected no returnValueProperty"),e.Debug.assert(!(we.facts&v.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),Ne.length===1){var Le=Ne[0];yt.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Le.name),void 0,e.getSynthesizedDeepClone(Le.type),vr)],Le.parent.flags)))}else{for(var cr=[],$r=[],Re=Ne[0].parent.flags,xr=!1,Br=0,Qr=Ne;Br<Qr.length;Br++){var Le=Qr[Br];cr.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Le.name)));var ct=rr.typeToTypeNode(rr.getBaseTypeOfLiteralType(rr.getTypeAtLocation(Le)),ae,1);$r.push(e.factory.createPropertySignature(void 0,Le.symbol.name,void 0,ct)),xr=xr||Le.type!==void 0,Re=Re&Le.parent.flags}var ft=xr?e.factory.createTypeLiteralNode($r):void 0;ft&&e.setEmitFlags(ft,1),yt.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(cr),void 0,ft,vr)],Re)))}else if(Ne.length||lr){if(Ne.length)for(var Dt=0,Me=Ne;Dt<Me.length;Dt++){var Le=Me[Dt],Ke=Le.parent.flags;Ke&2&&(Ke=Ke&-3|1),yt.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Le.symbol.name,void 0,en(Le.type))],Ke)))}or&&yt.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(or,void 0,en(ue))],1)));var Vr=I(Ne,lr);or&&Vr.unshift(e.factory.createShorthandPropertyAssignment(or)),Vr.length===1?(e.Debug.assert(!or,"Shouldn't have returnValueProperty here"),yt.push(e.factory.createExpressionStatement(e.factory.createAssignment(Vr[0].name,vr))),we.facts&v.HasReturn&&yt.push(e.factory.createReturnStatement())):(yt.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Vr),vr))),or&&yt.push(e.factory.createReturnStatement(e.factory.createIdentifier(or))))}else we.facts&v.HasReturn?yt.push(e.factory.createReturnStatement(vr)):he(we.range)?yt.push(e.factory.createExpressionStatement(vr)):yt.push(vr);he(we.range)?Fr.replaceNodeRangeWithNodes(nr.file,e.first(we.range),e.last(we.range),yt):Fr.replaceNodeWithNodes(nr.file,we.range,yt);var Yr=Fr.getChanges(),Nt=he(we.range)?e.first(we.range):we.range,Wt=Nt.getSourceFile().fileName,sn=e.getRenameLocation(Yr,Wt,qe,!1);return{renameFilename:Wt,renameLocation:sn,edits:Yr};function en(Ir){if(Ir!==void 0){for(var Jr=e.getSynthesizedDeepClone(Ir),ye=Jr;e.isParenthesizedTypeNode(ye);)ye=ye.type;return e.isUnionTypeNode(ye)&&e.find(ye.types,function(Ie){return Ie.kind===155})?Jr:e.factory.createUnionTypeNode([Jr,e.factory.createKeywordTypeNode(155)])}}}function _e(G,ae,Te,Ne,we){var nr,tr=Te.substitutions,me=we.program.getTypeChecker(),He=ae.getSourceFile(),rr=e.isPropertyAccessExpression(G)&&!e.isClassLike(ae)&&!me.resolveName(G.name.text,G,111551,!1)&&!e.isPrivateIdentifier(G.name)&&!e.isKeyword(G.name.originalKeywordKind)?G.name.text:e.getUniqueName(e.isClassLike(ae)?"newProperty":"newLocal",He),je=e.isInJSFile(ae),Ce=je||!me.isContextSensitive(G)?void 0:me.typeToTypeNode(me.getContextualType(G),ae,1),Ae=U(e.skipParentheses(G),tr);nr=tt(Ce,Ae),Ce=nr.variableType,Ae=nr.initializer,e.suppressLeadingAndTrailingTrivia(Ae);var qe=e.textChanges.ChangeTracker.fromContext(we);if(e.isClassLike(ae)){e.Debug.assert(!je,"Cannot extract to a JS class");var xe=[];xe.push(e.factory.createModifier(121)),Ne&v.InStaticRegion&&xe.push(e.factory.createModifier(124)),xe.push(e.factory.createModifier(146));var L=e.factory.createPropertyDeclaration(xe,rr,void 0,Ce,Ae),ue=e.factory.createPropertyAccessExpression(Ne&v.InStaticRegion?e.factory.createIdentifier(ae.name.getText()):e.factory.createThis(),e.factory.createIdentifier(rr));b(G)&&(ue=e.factory.createJsxExpression(void 0,ue));var Ue=G.pos,Je=R(Ue,ae);qe.insertNodeBefore(we.file,Je,L,!0),qe.replaceNode(we.file,G,ue)}else{var lr=e.factory.createVariableDeclaration(rr,void 0,Ce,Ae),mr=ne(G,ae);if(mr){qe.insertNodeBefore(we.file,mr,lr);var ue=e.factory.createIdentifier(rr);qe.replaceNode(we.file,G,ue)}else if(G.parent.kind===241&&ae===e.findAncestor(G,Z)){var Hr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([lr],2));qe.replaceNode(we.file,G.parent,Hr)}else{var Hr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([lr],2)),Je=K(G,ae);if(Je.pos===0?qe.insertNodeAtTopOfFile(we.file,Hr,!1):qe.insertNodeBefore(we.file,Je,Hr,!1),G.parent.kind===241)qe.delete(we.file,G.parent);else{var ue=e.factory.createIdentifier(rr);b(G)&&(ue=e.factory.createJsxExpression(void 0,ue)),qe.replaceNode(we.file,G,ue)}}}var wr=qe.getChanges(),Oe=G.getSourceFile().fileName,Ze=e.getRenameLocation(wr,Oe,rr,!0);return{renameFilename:Oe,renameLocation:Ze,edits:wr};function tt(ut,or){if(ut===void 0)return{variableType:ut,initializer:or};if(!e.isFunctionExpression(or)&&!e.isArrowFunction(or)||or.typeParameters)return{variableType:ut,initializer:or};var qr=me.getTypeAtLocation(G),Rr=e.singleOrUndefined(me.getSignaturesOfType(qr,0));if(!Rr)return{variableType:ut,initializer:or};if(Rr.getTypeParameters())return{variableType:ut,initializer:or};for(var zr=[],Fr=!1,_t=0,Ct=or.parameters;_t<Ct.length;_t++){var yt=Ct[_t];if(yt.type)zr.push(yt);else{var Fe=me.getTypeAtLocation(yt);Fe===me.getAnyType()&&(Fr=!0),zr.push(e.factory.updateParameterDeclaration(yt,yt.modifiers,yt.dotDotDotToken,yt.name,yt.questionToken,yt.type||me.typeToTypeNode(Fe,ae,1),yt.initializer))}}if(Fr)return{variableType:ut,initializer:or};if(ut=void 0,e.isArrowFunction(or))or=e.factory.updateArrowFunction(or,e.canHaveModifiers(G)?e.getModifiers(G):void 0,or.typeParameters,zr,or.type||me.typeToTypeNode(Rr.getReturnType(),ae,1),or.equalsGreaterThanToken,or.body);else{if(Rr&&Rr.thisParameter){var vr=e.firstOrUndefined(zr);if(!vr||e.isIdentifier(vr.name)&&vr.name.escapedText!=="this"){var Le=me.getTypeOfSymbolAtLocation(Rr.thisParameter,G);zr.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,me.typeToTypeNode(Le,ae,1)))}}or=e.factory.updateFunctionExpression(or,e.canHaveModifiers(G)?e.getModifiers(G):void 0,or.asteriskToken,or.name,or.typeParameters,zr,or.type||me.typeToTypeNode(Rr.getReturnType(),ae,1),or.body)}return{variableType:ut,initializer:or}}}function ne(G,ae){for(var Te;G!==void 0&&G!==ae;){if(e.isVariableDeclaration(G)&&G.initializer===Te&&e.isVariableDeclarationList(G.parent)&&G.parent.declarations.length>1)return G;Te=G,G=G.parent}}function oe(G){var ae,Te=G.symbol;if(Te&&Te.declarations)for(var Ne=0,we=Te.declarations;Ne<we.length;Ne++){var nr=we[Ne];(ae===void 0||nr.pos<ae.pos)&&(ae=nr)}return ae}function w(G,ae){var Te=G.type,Ne=G.declaration,we=ae.type,nr=ae.declaration;return e.compareProperties(Ne,nr,"pos",e.compareValues)||e.compareStringsCaseSensitive(Te.symbol?Te.symbol.getName():"",we.symbol?we.symbol.getName():"")||e.compareValues(Te.id,we.id)}function re(G,ae,Te){var Ne=e.factory.createIdentifier(Te);if(e.isClassLike(G)){var we=ae.facts&v.InStaticRegion?e.factory.createIdentifier(G.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(we,Ne)}else return Ne}function M(G,ae,Te,Ne,we){var nr=Te!==void 0||ae.length>0;if(e.isBlock(G)&&!nr&&Ne.size===0)return{body:e.factory.createBlock(G.statements,!0),returnValueProperty:void 0};var tr,me=!1,He=e.factory.createNodeArray(e.isBlock(G)?G.statements.slice(0):[e.isStatement(G)?G:e.factory.createReturnStatement(e.skipParentheses(G))]);if(nr||Ne.size){var rr=e.visitNodes(He,Ce).slice();if(nr&&!we&&e.isStatement(G)){var je=I(ae,Te);je.length===1?rr.push(e.factory.createReturnStatement(je[0].name)):rr.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(je)))}return{body:e.factory.createBlock(rr,!0),returnValueProperty:tr}}else return{body:e.factory.createBlock(He,!0),returnValueProperty:void 0};function Ce(Ae){if(!me&&e.isReturnStatement(Ae)&&nr){var qe=I(ae,Te);return Ae.expression&&(tr||(tr="__return"),qe.unshift(e.factory.createPropertyAssignment(tr,e.visitNode(Ae.expression,Ce)))),qe.length===1?e.factory.createReturnStatement(qe[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(qe))}else{var xe=me;me=me||e.isFunctionLikeDeclaration(Ae)||e.isClassLike(Ae);var L=Ne.get(e.getNodeId(Ae).toString()),ue=L?e.getSynthesizedDeepClone(L):e.visitEachChild(Ae,Ce,e.nullTransformationContext);return me=xe,ue}}}function U(G,ae){return ae.size?Te(G):G;function Te(Ne){var we=ae.get(e.getNodeId(Ne).toString());return we?e.getSynthesizedDeepClone(we):e.visitEachChild(Ne,Te,e.nullTransformationContext)}}function H(G){if(e.isFunctionLikeDeclaration(G)){var ae=G.body;if(e.isBlock(ae))return ae.statements}else{if(e.isModuleBlock(G)||e.isSourceFile(G))return G.statements;if(e.isClassLike(G))return G.members;e.assertType(G)}return e.emptyArray}function q(G,ae){return e.find(H(ae),function(Te){return Te.pos>=G&&e.isFunctionLikeDeclaration(Te)&&!e.isConstructorDeclaration(Te)})}function R(G,ae){var Te=ae.members;e.Debug.assert(Te.length>0,"Found no members");for(var Ne,we=!0,nr=0,tr=Te;nr<tr.length;nr++){var me=tr[nr];if(me.pos>G)return Ne||Te[0];if(we&&!e.isPropertyDeclaration(me)){if(Ne!==void 0)return me;we=!1}Ne=me}return Ne===void 0?e.Debug.fail():Ne}function K(G,ae){e.Debug.assert(!e.isClassLike(ae));for(var Te,Ne=G;Ne!==ae;Ne=Ne.parent)Z(Ne)&&(Te=Ne);for(var Ne=(Te||G).parent;;Ne=Ne.parent){if(N(Ne)){for(var we=void 0,nr=0,tr=Ne.statements;nr<tr.length;nr++){var me=tr[nr];if(me.pos>G.pos)break;we=me}return!we&&e.isCaseClause(Ne)?(e.Debug.assert(e.isSwitchStatement(Ne.parent.parent),"Grandparent isn't a switch statement"),Ne.parent.parent):e.Debug.checkDefined(we,"prevStatement failed to get set")}e.Debug.assert(Ne!==ae,"Didn't encounter a block-like before encountering scope")}}function I(G,ae){var Te=e.map(G,function(we){return e.factory.createShorthandPropertyAssignment(we.symbol.name)}),Ne=e.map(ae,function(we){return e.factory.createShorthandPropertyAssignment(we.symbol.name)});return Te===void 0?Ne:Ne===void 0?Te:Te.concat(Ne)}function he(G){return e.isArray(G)}function le(G,ae){return he(G.range)?{pos:e.first(G.range).getStart(ae),end:e.last(G.range).getEnd()}:G.range}var ee;(function(G){G[G.Read=1]="Read",G[G.Write=2]="Write"})(ee||(ee={}));function J(G,ae,Te,Ne,we,nr){var tr=new e.Map,me=[],He=[],rr=[],je=[],Ce=[],Ae=new e.Map,qe=[],xe,L=he(G.range)?G.range.length===1&&e.isExpressionStatement(G.range[0])?G.range[0].expression:void 0:G.range,ue;if(L===void 0){var Ue=G.range,Je=e.first(Ue).getStart(),lr=e.last(Ue).end;ue=e.createFileDiagnostic(Ne,Je,lr-Je,E.expressionExpected)}else we.getTypeAtLocation(L).flags&147456&&(ue=e.createDiagnosticForNode(L,E.uselessConstantType));for(var mr=0,Hr=ae;mr<Hr.length;mr++){var wr=Hr[mr];me.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),He.push(new e.Map),rr.push([]);var Oe=[];ue&&Oe.push(ue),e.isClassLike(wr)&&e.isInJSFile(wr)&&Oe.push(e.createDiagnosticForNode(wr,E.cannotExtractToJSClass)),e.isArrowFunction(wr)&&!e.isBlock(wr.body)&&Oe.push(e.createDiagnosticForNode(wr,E.cannotExtractToExpressionArrowFunction)),je.push(Oe)}var Ze=new e.Map,tt=he(G.range)?e.factory.createBlock(G.range):G.range,ut=he(G.range)?e.first(G.range):G.range,or=$r(ut);if(xr(tt),or&&!he(G.range)&&!e.isJsxAttribute(G.range)){var qr=we.getContextualType(G.range);Re(qr)}if(tr.size>0){for(var Rr=new e.Map,zr=0,Fr=ut;Fr!==void 0&&zr<ae.length;Fr=Fr.parent)if(Fr===ae[zr]&&(Rr.forEach(function(Me,Ke){me[zr].typeParameterUsages.set(Ke,Me)}),zr++),e.isDeclarationWithTypeParameters(Fr))for(var _t=0,Ct=e.getEffectiveTypeParameterDeclarations(Fr);_t<Ct.length;_t++){var yt=Ct[_t],Fe=we.getTypeAtLocation(yt);tr.has(Fe.id.toString())&&Rr.set(Fe.id.toString(),Fe)}e.Debug.assert(zr===ae.length,"Should have iterated all scopes")}if(Ce.length){var vr=e.isBlockScope(ae[0],ae[0].parent)?ae[0]:e.getEnclosingBlockScopeContainer(ae[0]);e.forEachChild(vr,ct)}for(var Le=function(Me){var Ke=me[Me];if(Me>0&&(Ke.usages.size>0||Ke.typeParameterUsages.size>0)){var Vr=he(G.range)?G.range[0]:G.range;je[Me].push(e.createDiagnosticForNode(Vr,E.cannotAccessVariablesFromNestedScopes))}G.facts&v.UsesThisInFunction&&e.isClassLike(ae[Me])&&rr[Me].push(e.createDiagnosticForNode(G.thisNode,E.cannotExtractFunctionsContainingThisToMethod));var Yr=!1,Nt;if(me[Me].usages.forEach(function(sn){sn.usage===2&&(Yr=!0,sn.symbol.flags&106500&&sn.symbol.valueDeclaration&&e.hasEffectiveModifier(sn.symbol.valueDeclaration,64)&&(Nt=sn.symbol.valueDeclaration))}),e.Debug.assert(he(G.range)||qe.length===0,"No variable declarations expected if something was extracted"),Yr&&!he(G.range)){var Wt=e.createDiagnosticForNode(G.range,E.cannotWriteInExpression);rr[Me].push(Wt),je[Me].push(Wt)}else if(Nt&&Me>0){var Wt=e.createDiagnosticForNode(Nt,E.cannotExtractReadonlyPropertyInitializerOutsideConstructor);rr[Me].push(Wt),je[Me].push(Wt)}else if(xe){var Wt=e.createDiagnosticForNode(xe,E.cannotExtractExportedEntity);rr[Me].push(Wt),je[Me].push(Wt)}},cr=0;cr<ae.length;cr++)Le(cr);return{target:tt,usagesPerScope:me,functionErrorsPerScope:rr,constantErrorsPerScope:je,exposedVariableDeclarations:qe};function $r(Me){return!!e.findAncestor(Me,function(Ke){return e.isDeclarationWithTypeParameters(Ke)&&e.getEffectiveTypeParameterDeclarations(Ke).length!==0})}function Re(Me){for(var Ke=we.getSymbolWalker(function(){return nr.throwIfCancellationRequested(),!0}),Vr=Ke.walkType(Me).visitedTypes,Yr=0,Nt=Vr;Yr<Nt.length;Yr++){var Wt=Nt[Yr];Wt.isTypeParameter()&&tr.set(Wt.id.toString(),Wt)}}function xr(Me,Ke){if(Ke===void 0&&(Ke=1),or){var Vr=we.getTypeAtLocation(Me);Re(Vr)}if(e.isDeclaration(Me)&&Me.symbol&&Ce.push(Me),e.isAssignmentExpression(Me))xr(Me.left,2),xr(Me.right);else if(e.isUnaryExpressionWithWrite(Me))xr(Me.operand,2);else if(e.isPropertyAccessExpression(Me)||e.isElementAccessExpression(Me))e.forEachChild(Me,xr);else if(e.isIdentifier(Me)){if(!Me.parent||e.isQualifiedName(Me.parent)&&Me!==Me.parent.left||e.isPropertyAccessExpression(Me.parent)&&Me!==Me.parent.expression)return;Br(Me,Ke,e.isPartOfTypeNode(Me))}else e.forEachChild(Me,xr)}function Br(Me,Ke,Vr){var Yr=Qr(Me,Ke,Vr);if(Yr)for(var Nt=0;Nt<ae.length;Nt++){var Wt=He[Nt].get(Yr);Wt&&me[Nt].substitutions.set(e.getNodeId(Me).toString(),Wt)}}function Qr(Me,Ke,Vr){var Yr=ft(Me);if(Yr){var Nt=e.getSymbolId(Yr).toString(),Wt=Ze.get(Nt);if(Wt&&Wt>=Ke)return Nt;if(Ze.set(Nt,Ke),Wt){for(var sn=0,en=me;sn<en.length;sn++){var Ir=en[sn],Jr=Ir.usages.get(Me.text);Jr&&Ir.usages.set(Me.text,{usage:Ke,symbol:Yr,node:Me})}return Nt}var ye=Yr.getDeclarations(),Ie=ye&&e.find(ye,function(Et){return Et.getSourceFile()===Ne});if(Ie&&!e.rangeContainsStartEnd(Te,Ie.getStart(),Ie.end)){if(G.facts&v.IsGenerator&&Ke===2){for(var We=e.createDiagnosticForNode(Me,E.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),dr=0,ar=rr;dr<ar.length;dr++){var Sr=ar[dr];Sr.push(We)}for(var Or=0,Ge=je;Or<Ge.length;Or++){var Sr=Ge[Or];Sr.push(We)}}for(var ur=0;ur<ae.length;ur++){var Lr=ae[ur],Ar=we.resolveName(Yr.name,Lr,Yr.flags,!1);if(Ar!==Yr&&!He[ur].has(Nt)){var rt=Dt(Yr.exportSymbol||Yr,Lr,Vr);if(rt)He[ur].set(Nt,rt);else if(Vr){if(!(Yr.flags&262144)){var We=e.createDiagnosticForNode(Me,E.typeWillNotBeVisibleInTheNewScope);rr[ur].push(We),je[ur].push(We)}}else me[ur].usages.set(Me.text,{usage:Ke,symbol:Yr,node:Me})}}return Nt}}}function ct(Me){if(!(Me===G.range||he(G.range)&&G.range.indexOf(Me)>=0)){var Ke=e.isIdentifier(Me)?ft(Me):we.getSymbolAtLocation(Me);if(Ke){var Vr=e.find(Ce,function(Nt){return Nt.symbol===Ke});if(Vr)if(e.isVariableDeclaration(Vr)){var Yr=Vr.symbol.id.toString();Ae.has(Yr)||(qe.push(Vr),Ae.set(Yr,!0))}else xe=xe||Vr}e.forEachChild(Me,ct)}}function ft(Me){return Me.parent&&e.isShorthandPropertyAssignment(Me.parent)&&Me.parent.name===Me?we.getShorthandAssignmentValueSymbol(Me.parent):we.getSymbolAtLocation(Me)}function Dt(Me,Ke,Vr){if(Me){var Yr=Me.getDeclarations();if(Yr&&Yr.some(function(Wt){return Wt.parent===Ke}))return e.factory.createIdentifier(Me.name);var Nt=Dt(Me.parent,Ke,Vr);if(Nt!==void 0)return Vr?e.factory.createQualifiedName(Nt,e.factory.createIdentifier(Me.name)):e.factory.createPropertyAccessExpression(Nt,Me.name)}}}function de(G){return e.findAncestor(G,function(ae){return ae.parent&&De(ae)&&!e.isBinaryExpression(ae.parent)})}function De(G){var ae=G.parent;switch(ae.kind){case 302:return!1}switch(G.kind){case 10:return ae.kind!==269&&ae.kind!==273;case 227:case 203:case 205:return!1;case 79:return ae.kind!==205&&ae.kind!==273&&ae.kind!==278}return!0}function N(G){switch(G.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function b(G){return Q(G)||(e.isJsxElement(G)||e.isJsxSelfClosingElement(G)||e.isJsxFragment(G))&&(e.isJsxElement(G.parent)||e.isJsxFragment(G.parent))}function Q(G){return e.isStringLiteral(G)&&G.parent&&e.isJsxAttribute(G.parent)}})(c.extractSymbol||(c.extractSymbol={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){var P="Extract type",T={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},s={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},D={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};c.registerRefactor(P,{kinds:[T.kind,s.kind,D.kind],getAvailableActions:function(ce){var k=O(ce,ce.triggerReason==="invoked");return k?c.isRefactorErrorInfo(k)?ce.preferences.provideRefactorNotApplicableReason?[{name:P,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[n(n({},D),{notApplicableReason:k.error}),n(n({},T),{notApplicableReason:k.error}),n(n({},s),{notApplicableReason:k.error})]}]:e.emptyArray:[{name:P,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:k.isJS?[D]:e.append([T],k.typeElements&&s)}]:e.emptyArray},getEditsForAction:function(ce,k){var X=ce.file,A=O(ce);e.Debug.assert(A&&!c.isRefactorErrorInfo(A),"Expected to find a range to extract");var y=e.getUniqueName("NewType",X),C=e.textChanges.ChangeTracker.with(ce,function(z){switch(k){case T.name:return e.Debug.assert(!A.isJS,"Invalid actionName/JS combo"),S(z,X,y,A);case D.name:return e.Debug.assert(A.isJS,"Invalid actionName/JS combo"),Y(z,X,y,A);case s.name:return e.Debug.assert(!A.isJS&&!!A.typeElements,"Invalid actionName/JS combo"),te(z,X,y,A);default:e.Debug.fail("Unexpected action name")}}),B=X.fileName,F=e.getRenameLocation(C,B,y,!1);return{edits:C,renameFilename:B,renameLocation:F}}});function O(Z,ce){ce===void 0&&(ce=!0);var k=Z.file,X=Z.startPosition,A=e.isSourceFileJS(k),y=e.getTokenAtPosition(k,X),C=e.createTextRangeFromSpan(e.getRefactorContextSpan(Z)),B=C.pos===C.end&&ce,F=e.findAncestor(y,function(_e){return _e.parent&&e.isTypeNode(_e)&&!E(C,_e.parent,k)&&(B||e.nodeOverlapsWithStartEnd(y,k,C.pos,C.end))});if(!F||!e.isTypeNode(F))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var z=Z.program.getTypeChecker(),ge=e.Debug.checkDefined(e.findAncestor(F,e.isStatement),"Should find a statement"),Pe=v(z,F,ge,k);if(!Pe)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var fe=W(z,F);return{isJS:A,selection:F,firstStatement:ge,typeParameters:Pe,typeElements:fe}}function W(Z,ce){if(ce)if(e.isIntersectionTypeNode(ce)){for(var k=[],X=new e.Map,A=0,y=ce.types;A<y.length;A++){var C=y[A],B=W(Z,C);if(!B||!B.every(function(F){return F.name&&e.addToSeen(X,e.getNameFromPropertyName(F.name))}))return;e.addRange(k,B)}return k}else{if(e.isParenthesizedTypeNode(ce))return W(Z,ce.type);if(e.isTypeLiteralNode(ce))return ce.members}}function E(Z,ce,k){return e.rangeContainsStartEnd(Z,e.skipTrivia(k.text,ce.pos),ce.end)}function v(Z,ce,k,X){var A=[];return y(ce)?void 0:A;function y(C){if(e.isTypeReferenceNode(C)){if(e.isIdentifier(C.typeName))for(var B=C.typeName,F=Z.resolveName(B.text,B,262144,!0),z=0,ge=(F==null?void 0:F.declarations)||e.emptyArray;z<ge.length;z++){var Pe=ge[z];if(e.isTypeParameterDeclaration(Pe)&&Pe.getSourceFile()===X){if(Pe.name.escapedText===B.escapedText&&E(Pe,ce,X))return!0;if(E(k,Pe,X)&&!E(ce,Pe,X)){e.pushIfUnique(A,Pe);break}}}}else if(e.isInferTypeNode(C)){var fe=e.findAncestor(C,function(ne){return e.isConditionalTypeNode(ne)&&E(ne.extendsType,C,X)});if(!fe||!E(ce,fe,X))return!0}else if(e.isTypePredicateNode(C)||e.isThisTypeNode(C)){var _e=e.findAncestor(C.parent,e.isFunctionLike);if(_e&&_e.type&&E(_e.type,C,X)&&!E(ce,_e,X))return!0}else if(e.isTypeQueryNode(C)){if(e.isIdentifier(C.exprName)){var F=Z.resolveName(C.exprName.text,C.exprName,111551,!1);if(F!=null&&F.valueDeclaration&&E(k,F.valueDeclaration,X)&&!E(ce,F.valueDeclaration,X))return!0}else if(e.isThisIdentifier(C.exprName.left)&&!E(ce,C.parent,X))return!0}return X&&e.isTupleTypeNode(C)&&e.getLineAndCharacterOfPosition(X,C.pos).line===e.getLineAndCharacterOfPosition(X,C.end).line&&e.setEmitFlags(C,1),e.forEachChild(C,y)}}function S(Z,ce,k,X){var A=X.firstStatement,y=X.selection,C=X.typeParameters,B=e.factory.createTypeAliasDeclaration(void 0,k,C.map(function(F){return e.factory.updateTypeParameterDeclaration(F,F.modifiers,F.name,F.constraint,void 0)}),y);Z.insertNodeBefore(ce,A,e.ignoreSourceNewlines(B),!0),Z.replaceNode(ce,y,e.factory.createTypeReferenceNode(k,C.map(function(F){return e.factory.createTypeReferenceNode(F.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function te(Z,ce,k,X){var A,y=X.firstStatement,C=X.selection,B=X.typeParameters,F=X.typeElements,z=e.factory.createInterfaceDeclaration(void 0,k,B,void 0,F);e.setTextRange(z,(A=F[0])===null||A===void 0?void 0:A.parent),Z.insertNodeBefore(ce,y,e.ignoreSourceNewlines(z),!0),Z.replaceNode(ce,C,e.factory.createTypeReferenceNode(k,B.map(function(ge){return e.factory.createTypeReferenceNode(ge.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function Y(Z,ce,k,X){var A=X.firstStatement,y=X.selection,C=X.typeParameters;e.setEmitFlags(y,3584);var B=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(y),e.factory.createIdentifier(k)),F=[];e.forEach(C,function(z){var ge=e.getEffectiveConstraintOfTypeParameter(z),Pe=e.factory.createTypeParameterDeclaration(void 0,z.name),fe=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),ge&&e.cast(ge,e.isJSDocTypeExpression),[Pe]);F.push(fe)}),Z.insertNodeBefore(ce,A,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(F,[B]))),!0),Z.replaceNode(ce,y,e.factory.createTypeReferenceNode(k,C.map(function(z){return e.factory.createTypeReferenceNode(z.name,void 0)})))}})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Generate 'get' and 'set' accessors",s=e.Diagnostics.Generate_get_and_set_accessors.message,D={name:T,description:s,kind:"refactor.rewrite.property.generateAccessors"};c.registerRefactor(T,{kinds:[D.kind],getEditsForAction:function(W,E){if(W.endPosition){var v=e.codefix.getAccessorConvertiblePropertyAtPosition(W.file,W.program,W.startPosition,W.endPosition);e.Debug.assert(v&&!c.isRefactorErrorInfo(v),"Expected applicable refactor info");var S=e.codefix.generateAccessorFromProperty(W.file,W.program,W.startPosition,W.endPosition,W,E);if(S){var te=W.file.fileName,Y=v.renameAccessor?v.accessorName:v.fieldName,Z=e.isIdentifier(Y)?0:-1,ce=Z+e.getRenameLocation(S,te,Y.text,e.isParameter(v.declaration));return{renameFilename:te,renameLocation:ce,edits:S}}}},getAvailableActions:function(O){if(!O.endPosition)return e.emptyArray;var W=e.codefix.getAccessorConvertiblePropertyAtPosition(O.file,O.program,O.startPosition,O.endPosition,O.triggerReason==="invoked");return W?c.isRefactorErrorInfo(W)?O.preferences.provideRefactorNotApplicableReason?[{name:T,description:s,actions:[n(n({},D),{notApplicableReason:W.error})]}]:e.emptyArray:[{name:T,description:s,actions:[D]}]:e.emptyArray}})})(c.generateGetAccessorAndSetAccessor||(c.generateGetAccessorAndSetAccessor={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){function P(s){return s.error!==void 0}c.isRefactorErrorInfo=P;function T(s,D){return D?s.substr(0,D.length)===D:!0}c.refactorKindBeginsWith=T})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){var P="Move to a new file",T=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),s={name:P,description:T,kind:"refactor.move.newFile"};c.registerRefactor(P,{kinds:[s.kind],getAvailableActions:function(He){var rr=W(He);return He.preferences.allowTextChangesInNewFiles&&rr?[{name:P,description:T,actions:[s]}]:He.preferences.provideRefactorNotApplicableReason?[{name:P,description:T,actions:[n(n({},s),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(He,rr){e.Debug.assert(rr===P,"Wrong refactor invoked");var je=e.Debug.checkDefined(W(He)),Ce=e.textChanges.ChangeTracker.with(He,function(Ae){return O(He.file,He.program,je,Ae,He.host,He.preferences)});return{edits:Ce,renameFilename:void 0,renameLocation:void 0}}});function D(me){var He=me.file,rr=e.createTextRangeFromSpan(e.getRefactorContextSpan(me)),je=He.statements,Ce=e.findIndex(je,function(xe){return xe.end>rr.pos});if(Ce!==-1){var Ae=je[Ce];if(e.isNamedDeclaration(Ae)&&Ae.name&&e.rangeContainsRange(Ae.name,rr))return{toMove:[je[Ce]],afterLast:je[Ce+1]};if(!(rr.pos>Ae.getStart(He))){var qe=e.findIndex(je,function(xe){return xe.end>rr.end},Ce);if(!(qe!==-1&&(qe===0||je[qe].getStart(He)<rr.end)))return{toMove:je.slice(Ce,qe===-1?je.length:qe),afterLast:qe===-1?void 0:je[qe]}}}}function O(me,He,rr,je,Ce,Ae){var qe=He.getTypeChecker(),xe=M(me,rr.all,qe),L=e.getDirectoryPath(me.fileName),ue=e.extensionFromPath(me.fileName),Ue=w(re(xe.oldFileImportsFromNewFile,xe.movedSymbols),ue,L,Ce),Je=Ue+ue;je.createNewFile(me,e.combinePaths(L,Je),te(me,xe,je,rr,He,Ue,Ae)),S(He,je,me.fileName,Je,e.hostGetCanonicalFileName(Ce))}function W(me){var He=D(me);if(He!==void 0){var rr=[],je=[],Ce=He.toMove,Ae=He.afterLast;return e.getRangesWhere(Ce,E,function(qe,xe){for(var L=qe;L<xe;L++)rr.push(Ce[L]);je.push({first:Ce[qe],afterLast:Ae})}),rr.length===0?void 0:{all:rr,ranges:je}}}function E(me){return!v(me)&&!e.isPrologueDirective(me)}function v(me){switch(me.kind){case 269:return!0;case 268:return!e.hasSyntacticModifier(me,1);case 240:return me.declarationList.declarations.every(function(He){return!!He.initializer&&e.isRequireCall(He.initializer,!0)});default:return!1}}function S(me,He,rr,je,Ce){var Ae=me.getCompilerOptions().configFile;if(Ae){var qe=e.normalizePath(e.combinePaths(rr,"..",je)),xe=e.getRelativePathFromFile(Ae.fileName,qe,Ce),L=Ae.statements[0]&&e.tryCast(Ae.statements[0].expression,e.isObjectLiteralExpression),ue=L&&e.find(L.properties,function(Ue){return e.isPropertyAssignment(Ue)&&e.isStringLiteral(Ue.name)&&Ue.name.text==="files"});ue&&e.isArrayLiteralExpression(ue.initializer)&&He.insertNodeInListAfter(Ae,e.last(ue.initializer.elements),e.factory.createStringLiteral(xe),ue.initializer.elements)}}function te(me,He,rr,je,Ce,Ae,qe){var xe=Ce.getTypeChecker(),L=e.takeWhile(me.statements,e.isPrologueDirective);if(me.externalModuleIndicator===void 0&&me.commonJsModuleIndicator===void 0&&He.oldImportsNeededByNewFile.size()===0)return Y(me,je.ranges,rr),t(t([],L,!0),je.all,!0);var ue=!!me.externalModuleIndicator,Ue=e.getQuotePreference(me,qe),Je=B(He.oldFileImportsFromNewFile,Ae,ue,Ue);Je&&e.insertImports(rr,me,Je,!0),Z(me,je.all,rr,He.unusedImportsFromOldFile,xe),Y(me,je.ranges,rr),ce(rr,Ce,me,He.movedSymbols,Ae);var lr=oe(me,He.oldImportsNeededByNewFile,He.newFileImportsFromOldFile,rr,xe,ue,Ue),mr=Pe(me,je.all,He.oldFileImportsFromNewFile,ue);return lr.length&&mr.length?t(t(t(t([],L,!0),lr,!0),[4],!1),mr,!0):t(t(t([],L,!0),lr,!0),mr,!0)}function Y(me,He,rr){for(var je=0,Ce=He;je<Ce.length;je++){var Ae=Ce[je],qe=Ae.first,xe=Ae.afterLast;rr.deleteNodeRangeExcludingEnd(me,qe,xe)}}function Z(me,He,rr,je,Ce){for(var Ae=0,qe=me.statements;Ae<qe.length;Ae++){var xe=qe[Ae];e.contains(He,xe)||C(xe,function(L){return fe(me,L,rr,function(ue){return je.has(Ce.getSymbolAtLocation(ue))})})}}function ce(me,He,rr,je,Ce){for(var Ae=He.getTypeChecker(),qe=function(Ue){if(Ue===rr)return"continue";for(var Je=function(wr){C(wr,function(Oe){if(Ae.getSymbolAtLocation(y(Oe))===rr.symbol){var Ze=function(qr){var Rr=e.isBindingElement(qr.parent)?e.getPropertySymbolFromBindingElement(Ae,qr.parent):e.skipAlias(Ae.getSymbolAtLocation(qr),Ae);return!!Rr&&je.has(Rr)};fe(Ue,Oe,me,Ze);var tt=e.combinePaths(e.getDirectoryPath(y(Oe).text),Ce),ut=q(Oe,e.factory.createStringLiteral(tt),Ze);ut&&me.insertNodeAfter(Ue,wr,ut);var or=k(Oe);or&&X(me,Ue,Ae,je,Ce,tt,or,Oe)}})},lr=0,mr=Ue.statements;lr<mr.length;lr++){var Hr=mr[lr];Je(Hr)}},xe=0,L=He.getSourceFiles();xe<L.length;xe++){var ue=L[xe];qe(ue)}}function k(me){switch(me.kind){case 269:return me.importClause&&me.importClause.namedBindings&&me.importClause.namedBindings.kind===271?me.importClause.namedBindings.name:void 0;case 268:return me.name;case 257:return e.tryCast(me.name,e.isIdentifier);default:return e.Debug.assertNever(me,"Unexpected node kind ".concat(me.kind))}}function X(me,He,rr,je,Ce,Ae,qe,xe){var L=e.codefix.moduleSpecifierToValidIdentifier(Ce,99),ue=!1,Ue=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(qe,rr,He,function(wr){e.isPropertyAccessExpression(wr.parent)&&(ue=ue||!!rr.resolveName(L,wr,67108863,!0),je.has(rr.getSymbolAtLocation(wr.parent.name))&&Ue.push(wr))}),Ue.length){for(var Je=ue?e.getUniqueName(L,He):L,lr=0,mr=Ue;lr<mr.length;lr++){var Hr=mr[lr];me.replaceNode(He,Hr,e.factory.createIdentifier(Je))}me.insertNodeAfter(He,xe,A(xe,Ce,Ae))}}function A(me,He,rr){var je=e.factory.createIdentifier(He),Ce=e.factory.createStringLiteral(rr);switch(me.kind){case 269:return e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(je)),Ce,void 0);case 268:return e.factory.createImportEqualsDeclaration(void 0,!1,je,e.factory.createExternalModuleReference(Ce));case 257:return e.factory.createVariableDeclaration(je,void 0,void 0,ge(Ce));default:return e.Debug.assertNever(me,"Unexpected node kind ".concat(me.kind))}}function y(me){return me.kind===269?me.moduleSpecifier:me.kind===268?me.moduleReference.expression:me.initializer.arguments[0]}function C(me,He){if(e.isImportDeclaration(me))e.isStringLiteral(me.moduleSpecifier)&&He(me);else if(e.isImportEqualsDeclaration(me))e.isExternalModuleReference(me.moduleReference)&&e.isStringLiteralLike(me.moduleReference.expression)&&He(me);else if(e.isVariableStatement(me))for(var rr=0,je=me.declarationList.declarations;rr<je.length;rr++){var Ce=je[rr];Ce.initializer&&e.isRequireCall(Ce.initializer,!0)&&He(Ce)}}function B(me,He,rr,je){var Ce,Ae=[];return me.forEach(function(qe){qe.escapedName==="default"?Ce=e.factory.createIdentifier(e.symbolNameNoDefault(qe)):Ae.push(qe.name)}),F(Ce,Ae,He,rr,je)}function F(me,He,rr,je,Ce){if(rr=e.ensurePathIsNonModuleName(rr),je){var Ae=He.map(function(xe){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(xe))});return e.makeImportIfNecessary(me,Ae,rr,Ce)}else{e.Debug.assert(!me,"No default import should exist");var qe=He.map(function(xe){return e.factory.createBindingElement(void 0,void 0,xe)});return qe.length?z(e.factory.createObjectBindingPattern(qe),void 0,ge(e.factory.createStringLiteral(rr))):void 0}}function z(me,He,rr,je){return je===void 0&&(je=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(me,void 0,He,rr)],je))}function ge(me){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[me])}function Pe(me,He,rr,je){return e.flatMap(He,function(Ce){if(J(Ce)&&!ae(me,Ce,je)&&De(Ce,function(qe){return rr.has(e.Debug.checkDefined(qe.symbol))})){var Ae=Te(Ce,je);if(Ae)return Ae}return Ce})}function fe(me,He,rr,je){switch(He.kind){case 269:_e(me,He,rr,je);break;case 268:je(He.name)&&rr.delete(me,He);break;case 257:ne(me,He,rr,je);break;default:e.Debug.assertNever(He,"Unexpected import decl kind ".concat(He.kind))}}function _e(me,He,rr,je){if(He.importClause){var Ce=He.importClause,Ae=Ce.name,qe=Ce.namedBindings,xe=!Ae||je(Ae),L=!qe||(qe.kind===271?je(qe.name):qe.elements.length!==0&&qe.elements.every(function(lr){return je(lr.name)}));if(xe&&L)rr.delete(me,He);else if(Ae&&xe&&rr.delete(me,Ae),qe){if(L)rr.replaceNode(me,He.importClause,e.factory.updateImportClause(He.importClause,He.importClause.isTypeOnly,Ae,void 0));else if(qe.kind===272)for(var ue=0,Ue=qe.elements;ue<Ue.length;ue++){var Je=Ue[ue];je(Je.name)&&rr.delete(me,Je)}}}}function ne(me,He,rr,je){var Ce=He.name;switch(Ce.kind){case 79:je(Ce)&&(He.initializer&&e.isRequireCall(He.initializer,!0)?rr.delete(me,e.isVariableDeclarationList(He.parent)&&e.length(He.parent.declarations)===1?He.parent.parent:He):rr.delete(me,Ce));break;case 204:break;case 203:if(Ce.elements.every(function(L){return e.isIdentifier(L.name)&&je(L.name)}))rr.delete(me,e.isVariableDeclarationList(He.parent)&&He.parent.declarations.length===1?He.parent.parent:He);else for(var Ae=0,qe=Ce.elements;Ae<qe.length;Ae++){var xe=qe[Ae];e.isIdentifier(xe.name)&&je(xe.name)&&rr.delete(me,xe.name)}break}}function oe(me,He,rr,je,Ce,Ae,qe){for(var xe=[],L=0,ue=me.statements;L<ue.length;L++){var Ue=ue[L];C(Ue,function(Hr){e.append(xe,q(Hr,y(Hr),function(wr){return He.has(Ce.getSymbolAtLocation(wr))}))})}var Je,lr=[],mr=e.nodeSeenTracker();return rr.forEach(function(Hr){if(Hr.declarations)for(var wr=0,Oe=Hr.declarations;wr<Oe.length;wr++){var Ze=Oe[wr];if(le(Ze)){var tt=b(Ze);if(tt){var ut=Q(Ze);mr(ut)&&G(me,ut,tt,je,Ae),e.hasSyntacticModifier(Ze,1024)?Je=tt:lr.push(tt.text)}}}}),e.append(xe,F(Je,lr,e.removeFileExtension(e.getBaseFileName(me.fileName)),Ae,qe)),xe}function w(me,He,rr,je){for(var Ce=me,Ae=1;;Ae++){var qe=e.combinePaths(rr,Ce+He);if(!je.fileExists(qe))return Ce;Ce="".concat(me,".").concat(Ae)}}function re(me,He){return me.forEachEntry(e.symbolNameNoDefault)||He.forEachEntry(e.symbolNameNoDefault)||"newFile"}function M(me,He,rr){var je=new he,Ce=new he,Ae=new he,qe=e.find(He,function(tt){return!!(tt.transformFlags&2)}),xe=Ze(qe);xe&&Ce.add(xe);for(var L=0,ue=He;L<ue.length;L++){var Ue=ue[L];De(Ue,function(tt){je.add(e.Debug.checkDefined(e.isExpressionStatement(tt)?rr.getSymbolAtLocation(tt.expression.left):tt.symbol,"Need a symbol here"))})}for(var Je=0,lr=He;Je<lr.length;Je++){var Ue=lr[Je];I(Ue,rr,function(ut){if(ut.declarations)for(var or=0,qr=ut.declarations;or<qr.length;or++){var Rr=qr[or];U(Rr)?Ce.add(ut):le(Rr)&&ee(Rr)===me&&!je.has(ut)&&Ae.add(ut)}})}for(var mr=Ce.clone(),Hr=new he,wr=0,Oe=me.statements;wr<Oe.length;wr++){var Ue=Oe[wr];e.contains(He,Ue)||(xe&&Ue.transformFlags&2&&mr.delete(xe),I(Ue,rr,function(ut){je.has(ut)&&Hr.add(ut),mr.delete(ut)}))}return{movedSymbols:je,newFileImportsFromOldFile:Ae,oldFileImportsFromNewFile:Hr,oldImportsNeededByNewFile:Ce,unusedImportsFromOldFile:mr};function Ze(tt){if(tt!==void 0){var ut=rr.getJsxNamespace(tt),or=rr.resolveName(ut,tt,1920,!0);return or&&e.some(or.declarations,U)?or:void 0}}}function U(me){switch(me.kind){case 268:case 273:case 270:case 271:return!0;case 257:return H(me);case 205:return e.isVariableDeclaration(me.parent.parent)&&H(me.parent.parent);default:return!1}}function H(me){return e.isSourceFile(me.parent.parent.parent)&&!!me.initializer&&e.isRequireCall(me.initializer,!0)}function q(me,He,rr){switch(me.kind){case 269:{var je=me.importClause;if(!je)return;var Ce=je.name&&rr(je.name)?je.name:void 0,Ae=je.namedBindings&&R(je.namedBindings,rr);return Ce||Ae?e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,Ce,Ae),He,void 0):void 0}case 268:return rr(me.name)?me:void 0;case 257:{var qe=K(me.name,rr);return qe?z(qe,me.type,ge(He),me.parent.flags):void 0}default:return e.Debug.assertNever(me,"Unexpected import kind ".concat(me.kind))}}function R(me,He){if(me.kind===271)return He(me.name)?me:void 0;var rr=me.elements.filter(function(je){return He(je.name)});return rr.length?e.factory.createNamedImports(rr):void 0}function K(me,He){switch(me.kind){case 79:return He(me)?me:void 0;case 204:return me;case 203:{var rr=me.elements.filter(function(je){return je.propertyName||!e.isIdentifier(je.name)||He(je.name)});return rr.length?e.factory.createObjectBindingPattern(rr):void 0}}}function I(me,He,rr){me.forEachChild(function je(Ce){if(e.isIdentifier(Ce)&&!e.isDeclarationName(Ce)){var Ae=He.getSymbolAtLocation(Ce);Ae&&rr(Ae)}else Ce.forEachChild(je)})}var he=function(){function me(){this.map=new e.Map}return me.prototype.add=function(He){this.map.set(String(e.getSymbolId(He)),He)},me.prototype.has=function(He){return this.map.has(String(e.getSymbolId(He)))},me.prototype.delete=function(He){this.map.delete(String(e.getSymbolId(He)))},me.prototype.forEach=function(He){this.map.forEach(He)},me.prototype.forEachEntry=function(He){return e.forEachEntry(this.map,He)},me.prototype.clone=function(){var He=new me;return e.copyEntries(this.map,He.map),He},me.prototype.size=function(){return this.map.size},me}();function le(me){return de(me)&&e.isSourceFile(me.parent)||e.isVariableDeclaration(me)&&e.isSourceFile(me.parent.parent.parent)}function ee(me){return e.isVariableDeclaration(me)?me.parent.parent.parent:me.parent}function J(me){return e.Debug.assert(e.isSourceFile(me.parent),"Node parent should be a SourceFile"),de(me)||e.isVariableStatement(me)}function de(me){switch(me.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function De(me,He){switch(me.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return He(me);case 240:return e.firstDefined(me.declarationList.declarations,function(je){return N(je.name,He)});case 241:{var rr=me.expression;return e.isBinaryExpression(rr)&&e.getAssignmentDeclarationKind(rr)===1?He(me):void 0}}}function N(me,He){switch(me.kind){case 79:return He(e.cast(me.parent,function(rr){return e.isVariableDeclaration(rr)||e.isBindingElement(rr)}));case 204:case 203:return e.firstDefined(me.elements,function(rr){return e.isOmittedExpression(rr)?void 0:N(rr.name,He)});default:return e.Debug.assertNever(me,"Unexpected name kind ".concat(me.kind))}}function b(me){return e.isExpressionStatement(me)?e.tryCast(me.expression.left.name,e.isIdentifier):e.tryCast(me.name,e.isIdentifier)}function Q(me){switch(me.kind){case 257:return me.parent.parent;case 205:return Q(e.cast(me.parent.parent,function(He){return e.isVariableDeclaration(He)||e.isBindingElement(He)}));default:return me}}function G(me,He,rr,je,Ce){if(!ae(me,He,Ce,rr))if(Ce)e.isExpressionStatement(He)||je.insertExportModifier(me,He);else{var Ae=nr(He);Ae.length!==0&&je.insertNodesAfter(me,He,Ae.map(tr))}}function ae(me,He,rr,je){var Ce;return rr?!e.isExpressionStatement(He)&&e.hasSyntacticModifier(He,1)||!!(je&&(!((Ce=me.symbol.exports)===null||Ce===void 0)&&Ce.has(je.escapedText))):!!me.symbol&&!!me.symbol.exports&&nr(He).some(function(Ae){return me.symbol.exports.has(e.escapeLeadingUnderscores(Ae))})}function Te(me,He){return He?[Ne(me)]:we(me)}function Ne(me){var He=e.canHaveModifiers(me)?e.concatenate([e.factory.createModifier(93)],e.getModifiers(me)):void 0;switch(me.kind){case 259:return e.factory.updateFunctionDeclaration(me,He,me.asteriskToken,me.name,me.typeParameters,me.parameters,me.type,me.body);case 260:var rr=e.canHaveDecorators(me)?e.getDecorators(me):void 0;return e.factory.updateClassDeclaration(me,e.concatenate(rr,He),me.name,me.typeParameters,me.heritageClauses,me.members);case 240:return e.factory.updateVariableStatement(me,He,me.declarationList);case 264:return e.factory.updateModuleDeclaration(me,He,me.name,me.body);case 263:return e.factory.updateEnumDeclaration(me,He,me.name,me.members);case 262:return e.factory.updateTypeAliasDeclaration(me,He,me.name,me.typeParameters,me.type);case 261:return e.factory.updateInterfaceDeclaration(me,He,me.name,me.typeParameters,me.heritageClauses,me.members);case 268:return e.factory.updateImportEqualsDeclaration(me,He,me.isTypeOnly,me.name,me.moduleReference);case 241:return e.Debug.fail();default:return e.Debug.assertNever(me,"Unexpected declaration kind ".concat(me.kind))}}function we(me){return t([me],nr(me).map(tr),!0)}function nr(me){switch(me.kind){case 259:case 260:return[me.name.text];case 240:return e.mapDefined(me.declarationList.declarations,function(He){return e.isIdentifier(He.name)?He.name.text:void 0});case 264:case 263:case 262:case 261:case 268:return e.emptyArray;case 241:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(me,"Unexpected decl kind ".concat(me.kind))}}function tr(me){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(me)),63,e.factory.createIdentifier(me)))}})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Add or remove braces in an arrow function",s=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,D={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},O={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};c.registerRefactor(T,{kinds:[O.kind],getEditsForAction:E,getAvailableActions:W});function W(S){var te=S.file,Y=S.startPosition,Z=S.triggerReason,ce=v(te,Y,Z==="invoked");return ce?c.isRefactorErrorInfo(ce)?S.preferences.provideRefactorNotApplicableReason?[{name:T,description:s,actions:[n(n({},D),{notApplicableReason:ce.error}),n(n({},O),{notApplicableReason:ce.error})]}]:e.emptyArray:[{name:T,description:s,actions:[ce.addBraces?D:O]}]:e.emptyArray}function E(S,te){var Y=S.file,Z=S.startPosition,ce=v(Y,Z);e.Debug.assert(ce&&!c.isRefactorErrorInfo(ce),"Expected applicable refactor info");var k=ce.expression,X=ce.returnStatement,A=ce.func,y;if(te===D.name){var C=e.factory.createReturnStatement(k);y=e.factory.createBlock([C],!0),e.copyLeadingComments(k,C,Y,3,!0)}else if(te===O.name&&X){var B=k||e.factory.createVoidZero();y=e.needsParentheses(B)?e.factory.createParenthesizedExpression(B):B,e.copyTrailingAsLeadingComments(X,y,Y,3,!1),e.copyLeadingComments(X,y,Y,3,!1),e.copyTrailingComments(X,y,Y,3,!1)}else e.Debug.fail("invalid action");var F=e.textChanges.ChangeTracker.with(S,function(z){z.replaceNode(Y,A.body,y)});return{renameFilename:void 0,renameLocation:void 0,edits:F}}function v(S,te,Y,Z){Y===void 0&&(Y=!0);var ce=e.getTokenAtPosition(S,te),k=e.getContainingFunction(ce);if(!k)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(k))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(k,ce)||e.rangeContainsRange(k.body,ce)&&!Y)){if(c.refactorKindBeginsWith(D.kind,Z)&&e.isExpression(k.body))return{func:k,addBraces:!0,expression:k.body};if(c.refactorKindBeginsWith(O.kind,Z)&&e.isBlock(k.body)&&k.body.statements.length===1){var X=e.first(k.body.statements);if(e.isReturnStatement(X))return{func:k,addBraces:!1,expression:X.expression,returnStatement:X}}}}})(c.addOrRemoveBracesToArrowFunction||(c.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Convert parameters to destructured object",s=1,D=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),O={name:T,description:D,kind:"refactor.rewrite.parameters.toDestructured"};c.registerRefactor(T,{kinds:[O.kind],getEditsForAction:E,getAvailableActions:W});function W(R){var K=R.file,I=R.startPosition,he=e.isSourceFileJS(K);if(he)return e.emptyArray;var le=A(K,I,R.program.getTypeChecker());return le?[{name:T,description:D,actions:[O]}]:e.emptyArray}function E(R,K){e.Debug.assert(K===T,"Unexpected action name");var I=R.file,he=R.startPosition,le=R.program,ee=R.cancellationToken,J=R.host,de=A(I,he,le.getTypeChecker());if(!(!de||!ee)){var De=S(de,le,ee);if(De.valid){var N=e.textChanges.ChangeTracker.with(R,function(b){return v(I,le,J,b,de,De)});return{renameFilename:void 0,renameLocation:void 0,edits:N}}return{edits:[]}}}function v(R,K,I,he,le,ee){var J=ee.signature,de=e.map(M(le,K,I),function(Ne){return e.getSynthesizedDeepClone(Ne)});if(J){var De=e.map(M(J,K,I),function(Ne){return e.getSynthesizedDeepClone(Ne)});Te(J,De)}Te(le,de);for(var N=e.sortAndDeduplicate(ee.functionCalls,function(Ne,we){return e.compareValues(Ne.pos,we.pos)}),b=0,Q=N;b<Q.length;b++){var G=Q[b];if(G.arguments&&G.arguments.length){var ae=e.getSynthesizedDeepClone(re(le,G.arguments),!0);he.replaceNodeRange(e.getSourceFileOfNode(G),e.first(G.arguments),e.last(G.arguments),ae,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function Te(Ne,we){he.replaceNodeRangeWithNodes(R,e.first(Ne.parameters),e.last(Ne.parameters),we,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function S(R,K,I){var he=q(R),le=e.isConstructorDeclaration(R)?H(R):[],ee=e.deduplicate(t(t([],he,!0),le,!0),e.equateValues),J=K.getTypeChecker(),de=e.flatMap(ee,function(Q){return e.FindAllReferences.getReferenceEntriesForNode(-1,Q,K,K.getSourceFiles(),I)}),De=N(de);return e.every(De.declarations,function(Q){return e.contains(ee,Q)})||(De.valid=!1),De;function N(Q){for(var G={accessExpressions:[],typeUsages:[]},ae={functionCalls:[],declarations:[],classReferences:G,valid:!0},Te=e.map(he,b),Ne=e.map(le,b),we=e.isConstructorDeclaration(R),nr=e.map(he,function(L){return te(L,J)}),tr=0,me=Q;tr<me.length;tr++){var He=me[tr];if(He.kind===0){ae.valid=!1;continue}if(e.contains(nr,b(He.node))){if(C(He.node.parent)){ae.signature=He.node.parent;continue}var rr=ce(He);if(rr){ae.functionCalls.push(rr);continue}}var je=te(He.node,J);if(je&&e.contains(nr,je)){var Ce=Z(He);if(Ce){ae.declarations.push(Ce);continue}}if(e.contains(Te,b(He.node))||e.isNewExpressionTarget(He.node)){var Ae=Y(He);if(Ae)continue;var Ce=Z(He);if(Ce){ae.declarations.push(Ce);continue}var rr=ce(He);if(rr){ae.functionCalls.push(rr);continue}}if(we&&e.contains(Ne,b(He.node))){var Ae=Y(He);if(Ae)continue;var Ce=Z(He);if(Ce){ae.declarations.push(Ce);continue}var qe=k(He);if(qe){G.accessExpressions.push(qe);continue}if(e.isClassDeclaration(R.parent)){var xe=X(He);if(xe){G.typeUsages.push(xe);continue}}}ae.valid=!1}return ae}function b(Q){var G=J.getSymbolAtLocation(Q);return G&&e.getSymbolTarget(G,J)}}function te(R,K){var I=e.getContainingObjectLiteralElement(R);if(I){var he=K.getContextualTypeForObjectLiteralElement(I),le=he==null?void 0:he.getSymbol();if(le&&!(e.getCheckFlags(le)&6))return le}}function Y(R){var K=R.node;if(e.isImportSpecifier(K.parent)||e.isImportClause(K.parent)||e.isImportEqualsDeclaration(K.parent)||e.isNamespaceImport(K.parent)||e.isExportSpecifier(K.parent)||e.isExportAssignment(K.parent))return K}function Z(R){if(e.isDeclaration(R.node.parent))return R.node}function ce(R){if(R.node.parent){var K=R.node,I=K.parent;switch(I.kind){case 210:case 211:var he=e.tryCast(I,e.isCallOrNewExpression);if(he&&he.expression===K)return he;break;case 208:var le=e.tryCast(I,e.isPropertyAccessExpression);if(le&&le.parent&&le.name===K){var ee=e.tryCast(le.parent,e.isCallOrNewExpression);if(ee&&ee.expression===le)return ee}break;case 209:var J=e.tryCast(I,e.isElementAccessExpression);if(J&&J.parent&&J.argumentExpression===K){var de=e.tryCast(J.parent,e.isCallOrNewExpression);if(de&&de.expression===J)return de}break}}}function k(R){if(R.node.parent){var K=R.node,I=K.parent;switch(I.kind){case 208:var he=e.tryCast(I,e.isPropertyAccessExpression);if(he&&he.expression===K)return he;break;case 209:var le=e.tryCast(I,e.isElementAccessExpression);if(le&&le.expression===K)return le;break}}}function X(R){var K=R.node;if(e.getMeaningFromLocation(K)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(K.parent))return K}function A(R,K,I){var he=e.getTouchingToken(R,K),le=e.getContainingFunctionDeclaration(he);if(!y(he)&&le&&B(le,I)&&e.rangeContainsRange(le,he)&&!(le.body&&e.rangeContainsRange(le.body,he)))return le}function y(R){var K=e.findAncestor(R,e.isJSDocNode);if(K){var I=e.findAncestor(K,function(he){return!e.isJSDocNode(he)});return!!I&&e.isFunctionLikeDeclaration(I)}return!1}function C(R){return e.isMethodSignature(R)&&(e.isInterfaceDeclaration(R.parent)||e.isTypeLiteralNode(R.parent))}function B(R,K){var I;if(!ge(R.parameters,K))return!1;switch(R.kind){case 259:return z(R)&&F(R,K);case 171:if(e.isObjectLiteralExpression(R.parent)){var he=te(R.name,K);return((I=he==null?void 0:he.declarations)===null||I===void 0?void 0:I.length)===1&&F(R,K)}return F(R,K);case 173:return e.isClassDeclaration(R.parent)?z(R.parent)&&F(R,K):fe(R.parent.parent)&&F(R,K);case 215:case 216:return fe(R.parent)}return!1}function F(R,K){return!!R.body&&!K.isImplementationOfOverload(R)}function z(R){if(!R.name){var K=e.findModifier(R,88);return!!K}return!0}function ge(R,K){return ne(R)>=s&&e.every(R,function(I){return Pe(I,K)})}function Pe(R,K){if(e.isRestParameter(R)){var I=K.getTypeAtLocation(R);if(!K.isArrayType(I)&&!K.isTupleType(I))return!1}return!R.modifiers&&e.isIdentifier(R.name)}function fe(R){return e.isVariableDeclaration(R)&&e.isVarConst(R)&&e.isIdentifier(R.name)&&!R.type}function _e(R){return R.length>0&&e.isThis(R[0].name)}function ne(R){return _e(R)?R.length-1:R.length}function oe(R){return _e(R)&&(R=e.factory.createNodeArray(R.slice(1),R.hasTrailingComma)),R}function w(R,K){return e.isIdentifier(K)&&e.getTextOfIdentifierOrLiteral(K)===R?e.factory.createShorthandPropertyAssignment(R):e.factory.createPropertyAssignment(R,K)}function re(R,K){var I=oe(R.parameters),he=e.isRestParameter(e.last(I)),le=he?K.slice(0,I.length-1):K,ee=e.map(le,function(N,b){var Q=U(I[b]),G=w(Q,N);return e.suppressLeadingAndTrailingTrivia(G.name),e.isPropertyAssignment(G)&&e.suppressLeadingAndTrailingTrivia(G.initializer),e.copyComments(N,G),G});if(he&&K.length>=I.length){var J=K.slice(I.length-1),de=e.factory.createPropertyAssignment(U(e.last(I)),e.factory.createArrayLiteralExpression(J));ee.push(de)}var De=e.factory.createObjectLiteralExpression(ee,!1);return De}function M(R,K,I){var he=K.getTypeChecker(),le=oe(R.parameters),ee=e.map(le,G),J=e.factory.createObjectBindingPattern(ee),de=ae(le),De;e.every(le,we)&&(De=e.factory.createObjectLiteralExpression());var N=e.factory.createParameterDeclaration(void 0,void 0,J,void 0,de,De);if(_e(R.parameters)){var b=R.parameters[0],Q=e.factory.createParameterDeclaration(void 0,void 0,b.name,void 0,b.type);return e.suppressLeadingAndTrailingTrivia(Q.name),e.copyComments(b.name,Q.name),b.type&&(e.suppressLeadingAndTrailingTrivia(Q.type),e.copyComments(b.type,Q.type)),e.factory.createNodeArray([Q,N])}return e.factory.createNodeArray([N]);function G(nr){var tr=e.factory.createBindingElement(void 0,void 0,U(nr),e.isRestParameter(nr)&&we(nr)?e.factory.createArrayLiteralExpression():nr.initializer);return e.suppressLeadingAndTrailingTrivia(tr),nr.initializer&&tr.initializer&&e.copyComments(nr.initializer,tr.initializer),tr}function ae(nr){var tr=e.map(nr,Te),me=e.addEmitFlags(e.factory.createTypeLiteralNode(tr),1);return me}function Te(nr){var tr=nr.type;!tr&&(nr.initializer||e.isRestParameter(nr))&&(tr=Ne(nr));var me=e.factory.createPropertySignature(void 0,U(nr),we(nr)?e.factory.createToken(57):nr.questionToken,tr);return e.suppressLeadingAndTrailingTrivia(me),e.copyComments(nr.name,me.name),nr.type&&me.type&&e.copyComments(nr.type,me.type),me}function Ne(nr){var tr=he.getTypeAtLocation(nr);return e.getTypeNodeIfAccessible(tr,nr,K,I)}function we(nr){if(e.isRestParameter(nr)){var tr=he.getTypeAtLocation(nr);return!he.isTupleType(tr)}return he.isOptionalParameter(nr)}}function U(R){return e.getTextOfIdentifierOrLiteral(R.name)}function H(R){switch(R.parent.kind){case 260:var K=R.parent;if(K.name)return[K.name];var I=e.Debug.checkDefined(e.findModifier(K,88),"Nameless class declaration should be a default export");return[I];case 228:var he=R.parent,le=R.parent.parent,ee=he.name;return ee?[ee,le.name]:[le.name]}}function q(R){switch(R.kind){case 259:if(R.name)return[R.name];var K=e.Debug.checkDefined(e.findModifier(R,88),"Nameless function declaration should be a default export");return[K];case 171:return[R.name];case 173:var I=e.Debug.checkDefined(e.findChildOfKind(R,135,R.getSourceFile()),"Constructor declaration should have constructor keyword");if(R.parent.kind===228){var he=R.parent.parent;return[he.name,I]}return[I];case 216:return[R.parent.name];case 215:return R.name?[R.name,R.parent.name]:[R.parent.name];default:return e.Debug.assertNever(R,"Unexpected function declaration kind ".concat(R.kind))}}})(c.convertParamsToDestructuredObject||(c.convertParamsToDestructuredObject={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Convert to template string",s=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),D={name:T,description:s,kind:"refactor.rewrite.string"};c.registerRefactor(T,{kinds:[D.kind],getEditsForAction:E,getAvailableActions:O});function O(F){var z=F.file,ge=F.startPosition,Pe=W(z,ge),fe=te(Pe),_e={name:T,description:s,actions:[]};return e.isBinaryExpression(fe)&&Y(fe).isValidConcatenation?(_e.actions.push(D),[_e]):F.preferences.provideRefactorNotApplicableReason?(_e.actions.push(n(n({},D),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[_e]):e.emptyArray}function W(F,z){var ge=e.getTokenAtPosition(F,z),Pe=te(ge),fe=!Y(Pe).isValidConcatenation;return fe&&e.isParenthesizedExpression(Pe.parent)&&e.isBinaryExpression(Pe.parent.parent)?Pe.parent.parent:ge}function E(F,z){var ge=F.file,Pe=F.startPosition,fe=W(ge,Pe);switch(z){case s:return{edits:v(F,fe)};default:return e.Debug.fail("invalid action")}}function v(F,z){var ge=te(z),Pe=F.file,fe=y(Y(ge),Pe),_e=e.getTrailingCommentRanges(Pe.text,ge.end);if(_e){var ne=_e[_e.length-1],oe={pos:_e[0].pos,end:ne.end};return e.textChanges.ChangeTracker.with(F,function(w){w.deleteRange(Pe,oe),w.replaceNode(Pe,ge,fe)})}else return e.textChanges.ChangeTracker.with(F,function(w){return w.replaceNode(Pe,ge,fe)})}function S(F){return F.operatorToken.kind!==63}function te(F){var z=e.findAncestor(F.parent,function(ge){switch(ge.kind){case 208:case 209:return!1;case 225:case 223:return!(e.isBinaryExpression(ge.parent)&&S(ge.parent));default:return"quit"}});return z||F}function Y(F){var z=function(oe){if(!e.isBinaryExpression(oe))return{nodes:[oe],operators:[],validOperators:!0,hasString:e.isStringLiteral(oe)||e.isNoSubstitutionTemplateLiteral(oe)};var w=z(oe.left),re=w.nodes,M=w.operators,U=w.hasString,H=w.validOperators;if(!(U||e.isStringLiteral(oe.right)||e.isTemplateExpression(oe.right)))return{nodes:[oe],operators:[],hasString:!1,validOperators:!0};var q=oe.operatorToken.kind===39,R=H&&q;return re.push(oe.right),M.push(oe.operatorToken),{nodes:re,operators:M,hasString:!0,validOperators:R}},ge=z(F),Pe=ge.nodes,fe=ge.operators,_e=ge.validOperators,ne=ge.hasString;return{nodes:Pe,operators:fe,isValidConcatenation:_e&&ne}}var Z=function(F,z){return function(ge,Pe){ge<F.length&&e.copyTrailingComments(F[ge],Pe,z,3,!1)}},ce=function(F,z,ge){return function(Pe,fe){for(;Pe.length>0;){var _e=Pe.shift();e.copyTrailingComments(F[_e],fe,z,3,!1),ge(_e,fe)}}};function k(F){return F.replace(/\\.|[$`]/g,function(z){return z[0]==="\\"?z:"\\"+z})}function X(F){var z=e.isTemplateHead(F)||e.isTemplateMiddle(F)?-2:-1;return e.getTextOfNode(F).slice(1,z)}function A(F,z){for(var ge=[],Pe="",fe="";F<z.length;){var _e=z[F];if(e.isStringLiteralLike(_e))Pe+=_e.text,fe+=k(e.getTextOfNode(_e).slice(1,-1)),ge.push(F),F++;else if(e.isTemplateExpression(_e)){Pe+=_e.head.text,fe+=X(_e.head);break}else break}return[F,Pe,fe,ge]}function y(F,z){var ge=F.nodes,Pe=F.operators,fe=Z(Pe,z),_e=ce(ge,z,fe),ne=A(0,ge),oe=ne[0],w=ne[1],re=ne[2],M=ne[3];if(oe===ge.length){var U=e.factory.createNoSubstitutionTemplateLiteral(w,re);return _e(M,U),U}var H=[],q=e.factory.createTemplateHead(w,re);_e(M,q);for(var R=function(he){var le=B(ge[he]);fe(he,le);var ee=A(he+1,ge),J=ee[0],de=ee[1],De=ee[2],N=ee[3];he=J-1;var b=he===ge.length-1;if(e.isTemplateExpression(le)){var Q=e.map(le.templateSpans,function(ae,Te){C(ae);var Ne=Te===le.templateSpans.length-1,we=ae.literal.text+(Ne?de:""),nr=X(ae.literal)+(Ne?De:"");return e.factory.createTemplateSpan(ae.expression,b&&Ne?e.factory.createTemplateTail(we,nr):e.factory.createTemplateMiddle(we,nr))});H.push.apply(H,Q)}else{var G=b?e.factory.createTemplateTail(de,De):e.factory.createTemplateMiddle(de,De);_e(N,G),H.push(e.factory.createTemplateSpan(le,G))}K=he},K,I=oe;I<ge.length;I++)R(I),I=K;return e.factory.createTemplateExpression(q,H)}function C(F){var z=F.getSourceFile();e.copyTrailingComments(F,F.expression,z,3,!1),e.copyTrailingAsLeadingComments(F.expression,F.expression,z,3,!1)}function B(F){return e.isParenthesizedExpression(F)&&(C(F),F=F.expression),F}})(c.convertStringOrTemplateLiteral||(c.convertStringOrTemplateLiteral={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Convert arrow function or function expression",s=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),D={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},O={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},W={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};c.registerRefactor(T,{kinds:[D.kind,O.kind,W.kind],getEditsForAction:v,getAvailableActions:E});function E(F){var z=F.file,ge=F.startPosition,Pe=F.program,fe=F.kind,_e=te(z,ge,Pe);if(!_e)return e.emptyArray;var ne=_e.selectedVariableDeclaration,oe=_e.func,w=[],re=[];if(c.refactorKindBeginsWith(O.kind,fe)){var M=ne||e.isArrowFunction(oe)&&e.isVariableDeclaration(oe.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);M?re.push(n(n({},O),{notApplicableReason:M})):w.push(O)}if(c.refactorKindBeginsWith(D.kind,fe)){var M=!ne&&e.isArrowFunction(oe)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);M?re.push(n(n({},D),{notApplicableReason:M})):w.push(D)}if(c.refactorKindBeginsWith(W.kind,fe)){var M=e.isFunctionExpression(oe)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);M?re.push(n(n({},W),{notApplicableReason:M})):w.push(W)}return[{name:T,description:s,actions:w.length===0&&F.preferences.provideRefactorNotApplicableReason?re:w}]}function v(F,z){var ge=F.file,Pe=F.startPosition,fe=F.program,_e=te(ge,Pe,fe);if(_e){var ne=_e.func,oe=[];switch(z){case D.name:oe.push.apply(oe,X(F,ne));break;case O.name:var w=k(ne);if(!w)return;oe.push.apply(oe,A(F,ne,w));break;case W.name:if(!e.isFunctionExpression(ne))return;oe.push.apply(oe,y(F,ne));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:oe}}}function S(F){var z=!1;return F.forEachChild(function ge(Pe){if(e.isThis(Pe)){z=!0;return}!e.isClassLike(Pe)&&!e.isFunctionDeclaration(Pe)&&!e.isFunctionExpression(Pe)&&e.forEachChild(Pe,ge)}),z}function te(F,z,ge){var Pe=e.getTokenAtPosition(F,z),fe=ge.getTypeChecker(),_e=Z(F,fe,Pe.parent);if(_e&&!S(_e.body)&&!fe.containsArgumentsReference(_e))return{selectedVariableDeclaration:!0,func:_e};var ne=e.getContainingFunction(Pe);if(ne&&(e.isFunctionExpression(ne)||e.isArrowFunction(ne))&&!e.rangeContainsRange(ne.body,Pe)&&!S(ne.body)&&!fe.containsArgumentsReference(ne))return e.isFunctionExpression(ne)&&B(F,fe,ne)?void 0:{selectedVariableDeclaration:!1,func:ne}}function Y(F){return e.isVariableDeclaration(F)||e.isVariableDeclarationList(F)&&F.declarations.length===1}function Z(F,z,ge){if(Y(ge)){var Pe=e.isVariableDeclaration(ge)?ge:e.first(ge.declarations),fe=Pe.initializer;if(fe&&(e.isArrowFunction(fe)||e.isFunctionExpression(fe)&&!B(F,z,fe)))return fe}}function ce(F){if(e.isExpression(F)){var z=e.factory.createReturnStatement(F),ge=F.getSourceFile();return e.suppressLeadingAndTrailingTrivia(z),e.copyTrailingAsLeadingComments(F,z,ge,void 0,!0),e.factory.createBlock([z],!0)}else return F}function k(F){var z=F.parent;if(!(!e.isVariableDeclaration(z)||!e.isVariableDeclarationInVariableStatement(z))){var ge=z.parent,Pe=ge.parent;if(!(!e.isVariableDeclarationList(ge)||!e.isVariableStatement(Pe)||!e.isIdentifier(z.name)))return{variableDeclaration:z,variableDeclarationList:ge,statement:Pe,name:z.name}}}function X(F,z){var ge=F.file,Pe=ce(z.body),fe=e.factory.createFunctionExpression(z.modifiers,z.asteriskToken,void 0,z.typeParameters,z.parameters,z.type,Pe);return e.textChanges.ChangeTracker.with(F,function(_e){return _e.replaceNode(ge,z,fe)})}function A(F,z,ge){var Pe=F.file,fe=ce(z.body),_e=ge.variableDeclaration,ne=ge.variableDeclarationList,oe=ge.statement,w=ge.name;e.suppressLeadingTrivia(oe);var re=e.getCombinedModifierFlags(_e)&1|e.getEffectiveModifierFlags(z),M=e.factory.createModifiersFromModifierFlags(re),U=e.factory.createFunctionDeclaration(e.length(M)?M:void 0,z.asteriskToken,w,z.typeParameters,z.parameters,z.type,fe);return ne.declarations.length===1?e.textChanges.ChangeTracker.with(F,function(H){return H.replaceNode(Pe,oe,U)}):e.textChanges.ChangeTracker.with(F,function(H){H.delete(Pe,_e),H.insertNodeAfter(Pe,oe,U)})}function y(F,z){var ge=F.file,Pe=z.body.statements,fe=Pe[0],_e;C(z.body,fe)?(_e=fe.expression,e.suppressLeadingAndTrailingTrivia(_e),e.copyComments(fe,_e)):_e=z.body;var ne=e.factory.createArrowFunction(z.modifiers,z.typeParameters,z.parameters,z.type,e.factory.createToken(38),_e);return e.textChanges.ChangeTracker.with(F,function(oe){return oe.replaceNode(ge,z,ne)})}function C(F,z){return F.statements.length===1&&e.isReturnStatement(z)&&!!z.expression}function B(F,z,ge){return!!ge.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(ge.name,z,F)}})(c.convertArrowFunctionOrFunctionExpression||(c.convertArrowFunctionOrFunctionExpression={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){(function(c){(function(P){var T="Infer function return type",s=e.Diagnostics.Infer_function_return_type.message,D={name:T,description:s,kind:"refactor.rewrite.function.returnType"};c.registerRefactor(T,{kinds:[D.kind],getEditsForAction:O,getAvailableActions:W});function O(Y){var Z=v(Y);if(Z&&!c.isRefactorErrorInfo(Z)){var ce=e.textChanges.ChangeTracker.with(Y,function(k){return E(Y.file,k,Z.declaration,Z.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:ce}}}function W(Y){var Z=v(Y);return Z?c.isRefactorErrorInfo(Z)?Y.preferences.provideRefactorNotApplicableReason?[{name:T,description:s,actions:[n(n({},D),{notApplicableReason:Z.error})]}]:e.emptyArray:[{name:T,description:s,actions:[D]}]:e.emptyArray}function E(Y,Z,ce,k){var X=e.findChildOfKind(ce,21,Y),A=e.isArrowFunction(ce)&&X===void 0,y=A?e.first(ce.parameters):X;y&&(A&&(Z.insertNodeBefore(Y,y,e.factory.createToken(20)),Z.insertNodeAfter(Y,y,e.factory.createToken(21))),Z.insertNodeAt(Y,y.end,k,{prefix:": "}))}function v(Y){if(!(e.isInJSFile(Y.file)||!c.refactorKindBeginsWith(D.kind,Y.kind))){var Z=e.getTokenAtPosition(Y.file,Y.startPosition),ce=e.findAncestor(Z,function(y){return e.isBlock(y)||y.parent&&e.isArrowFunction(y.parent)&&(y.kind===38||y.parent.body===y)?"quit":S(y)});if(!ce||!ce.body||ce.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var k=Y.program.getTypeChecker(),X=te(k,ce);if(!X)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var A=k.typeToTypeNode(X,ce,1);if(A)return{declaration:ce,returnTypeNode:A}}}function S(Y){switch(Y.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}function te(Y,Z){if(Y.isImplementationOfOverload(Z)){var ce=Y.getTypeAtLocation(Z).getCallSignatures();if(ce.length>1)return Y.getUnionType(e.mapDefined(ce,function(X){return X.getReturnType()}))}var k=Y.getSignatureFromDeclaration(Z);if(k)return Y.getReturnTypeOfSignature(k)}})(c.inferFunctionReturnType||(c.inferFunctionReturnType={}))})(e.refactor||(e.refactor={}))})(h||(h={}));var h;(function(e){e.servicesVersion="0.8";function c(N,b,Q,G){var ae=e.isNodeKind(N)?new P(N,b,Q):N===79?new v(79,b,Q):N===80?new S(80,b,Q):new E(N,b,Q);return ae.parent=G,ae.flags=G.flags&50720768,ae}var P=function(){function N(b,Q,G){this.pos=Q,this.end=G,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=b}return N.prototype.assertHasRealPosition=function(b){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),b||"Node must have a real position for this operation")},N.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},N.prototype.getStart=function(b,Q){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,b,Q)},N.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},N.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},N.prototype.getWidth=function(b){return this.assertHasRealPosition(),this.getEnd()-this.getStart(b)},N.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},N.prototype.getLeadingTriviaWidth=function(b){return this.assertHasRealPosition(),this.getStart(b)-this.pos},N.prototype.getFullText=function(b){return this.assertHasRealPosition(),(b||this.getSourceFile()).text.substring(this.pos,this.end)},N.prototype.getText=function(b){return this.assertHasRealPosition(),b||(b=this.getSourceFile()),b.text.substring(this.getStart(b),this.getEnd())},N.prototype.getChildCount=function(b){return this.getChildren(b).length},N.prototype.getChildAt=function(b,Q){return this.getChildren(Q)[b]},N.prototype.getChildren=function(b){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=T(this,b))},N.prototype.getFirstToken=function(b){this.assertHasRealPosition();var Q=this.getChildren(b);if(Q.length){var G=e.find(Q,function(ae){return ae.kind<312||ae.kind>350});return G.kind<163?G:G.getFirstToken(b)}},N.prototype.getLastToken=function(b){this.assertHasRealPosition();var Q=this.getChildren(b),G=e.lastOrUndefined(Q);if(G)return G.kind<163?G:G.getLastToken(b)},N.prototype.forEachChild=function(b,Q){return e.forEachChild(this,b,Q)},N}();function T(N,b){if(!e.isNodeKind(N.kind))return e.emptyArray;var Q=[];if(e.isJSDocCommentContainingNode(N))return N.forEachChild(function(Ne){Q.push(Ne)}),Q;e.scanner.setText((b||N.getSourceFile()).text);var G=N.pos,ae=function(Ne){s(Q,G,Ne.pos,N),Q.push(Ne),G=Ne.end},Te=function(Ne){s(Q,G,Ne.pos,N),Q.push(D(Ne,N)),G=Ne.end};return e.forEach(N.jsDoc,ae),G=N.pos,N.forEachChild(ae,Te),s(Q,G,N.end,N),e.scanner.setText(void 0),Q}function s(N,b,Q,G){for(e.scanner.setTextPos(b);b<Q;){var ae=e.scanner.scan(),Te=e.scanner.getTextPos();if(Te<=Q&&(ae===79&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(G.kind)," to have an Identifier in its trivia")),N.push(c(ae,b,Te,G))),b=Te,ae===1)break}}function D(N,b){var Q=c(351,N.pos,N.end,b);Q._children=[];for(var G=N.pos,ae=0,Te=N;ae<Te.length;ae++){var Ne=Te[ae];s(Q._children,G,Ne.pos,b),Q._children.push(Ne),G=Ne.end}return s(Q._children,G,N.end,b),Q}var O=function(){function N(b,Q){this.pos=b,this.end=Q,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return N.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},N.prototype.getStart=function(b,Q){return e.getTokenPosOfNode(this,b,Q)},N.prototype.getFullStart=function(){return this.pos},N.prototype.getEnd=function(){return this.end},N.prototype.getWidth=function(b){return this.getEnd()-this.getStart(b)},N.prototype.getFullWidth=function(){return this.end-this.pos},N.prototype.getLeadingTriviaWidth=function(b){return this.getStart(b)-this.pos},N.prototype.getFullText=function(b){return(b||this.getSourceFile()).text.substring(this.pos,this.end)},N.prototype.getText=function(b){return b||(b=this.getSourceFile()),b.text.substring(this.getStart(b),this.getEnd())},N.prototype.getChildCount=function(){return this.getChildren().length},N.prototype.getChildAt=function(b){return this.getChildren()[b]},N.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},N.prototype.getFirstToken=function(){},N.prototype.getLastToken=function(){},N.prototype.forEachChild=function(){},N}(),W=function(){function N(b,Q){this.flags=b,this.escapedName=Q}return N.prototype.getFlags=function(){return this.flags},Object.defineProperty(N.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),N.prototype.getEscapedName=function(){return this.escapedName},N.prototype.getName=function(){return this.name},N.prototype.getDeclarations=function(){return this.declarations},N.prototype.getDocumentationComment=function(b){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var Q=this.target.tupleLabelDeclaration;this.documentationComment=k([Q],b)}else this.documentationComment=k(this.declarations,b);return this.documentationComment},N.prototype.getContextualDocumentationComment=function(b,Q){if(b){if(e.isGetAccessor(b)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=k(e.filter(this.declarations,e.isGetAccessor),Q)),e.length(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(e.isSetAccessor(b)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=k(e.filter(this.declarations,e.isSetAccessor),Q)),e.length(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(Q)},N.prototype.getJsDocTags=function(b){return this.tags===void 0&&(this.tags=ce(this.declarations,b)),this.tags},N.prototype.getContextualJsDocTags=function(b,Q){if(b){if(e.isGetAccessor(b)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=ce(e.filter(this.declarations,e.isGetAccessor),Q)),e.length(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(e.isSetAccessor(b)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=ce(e.filter(this.declarations,e.isSetAccessor),Q)),e.length(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(Q)},N}(),E=function(N){m(b,N);function b(Q,G,ae){var Te=N.call(this,G,ae)||this;return Te.kind=Q,Te}return b}(O),v=function(N){m(b,N);function b(Q,G,ae){var Te=N.call(this,G,ae)||this;return Te.kind=79,Te}return Object.defineProperty(b.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),b}(O);v.prototype.kind=79;var S=function(N){m(b,N);function b(Q,G,ae){return N.call(this,G,ae)||this}return Object.defineProperty(b.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),b}(O);S.prototype.kind=80;var te=function(){function N(b,Q){this.checker=b,this.flags=Q}return N.prototype.getFlags=function(){return this.flags},N.prototype.getSymbol=function(){return this.symbol},N.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},N.prototype.getProperty=function(b){return this.checker.getPropertyOfType(this,b)},N.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},N.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},N.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},N.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},N.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},N.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},N.prototype.isNullableType=function(){return this.checker.isNullableType(this)},N.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},N.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},N.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},N.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},N.prototype.isUnion=function(){return!!(this.flags&1048576)},N.prototype.isIntersection=function(){return!!(this.flags&2097152)},N.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},N.prototype.isLiteral=function(){return!!(this.flags&384)},N.prototype.isStringLiteral=function(){return!!(this.flags&128)},N.prototype.isNumberLiteral=function(){return!!(this.flags&256)},N.prototype.isTypeParameter=function(){return!!(this.flags&262144)},N.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},N.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},N.prototype.isIndexType=function(){return!!(this.flags&4194304)},Object.defineProperty(N.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),N}(),Y=function(){function N(b,Q){this.checker=b,this.flags=Q}return N.prototype.getDeclaration=function(){return this.declaration},N.prototype.getTypeParameters=function(){return this.typeParameters},N.prototype.getParameters=function(){return this.parameters},N.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},N.prototype.getTypeParameterAtPosition=function(b){var Q=this.checker.getParameterType(this,b);if(Q.isIndexType()&&e.isThisTypeParameter(Q.type)){var G=Q.type.getConstraint();if(G)return this.checker.getIndexType(G)}return Q},N.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=k(e.singleElementArray(this.declaration),this.checker))},N.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=ce(e.singleElementArray(this.declaration),this.checker))},N}();function Z(N){return e.getJSDocTags(N).some(function(b){return b.tagName.text==="inheritDoc"||b.tagName.text==="inheritdoc"})}function ce(N,b){if(!N)return e.emptyArray;var Q=e.JsDoc.getJsDocTagsFromDeclarations(N,b);if(b&&(Q.length===0||N.some(Z)))for(var G=new e.Set,ae=function(nr){var tr=X(b,nr,function(me){var He;if(!G.has(me))return G.add(me),nr.kind===174||nr.kind===175?me.getContextualJsDocTags(nr,b):((He=me.declarations)===null||He===void 0?void 0:He.length)===1?me.getJsDocTags():void 0});tr&&(Q=t(t([],tr,!0),Q,!0))},Te=0,Ne=N;Te<Ne.length;Te++){var we=Ne[Te];ae(we)}return Q}function k(N,b){if(!N)return e.emptyArray;var Q=e.JsDoc.getJsDocCommentsFromDeclarations(N,b);if(b&&(Q.length===0||N.some(Z)))for(var G=new e.Set,ae=function(nr){var tr=X(b,nr,function(me){if(!G.has(me))return G.add(me),nr.kind===174||nr.kind===175?me.getContextualDocumentationComment(nr,b):me.getDocumentationComment(b)});tr&&(Q=Q.length===0?tr.slice():tr.concat(e.lineBreakPart(),Q))},Te=0,Ne=N;Te<Ne.length;Te++){var we=Ne[Te];ae(we)}return Q}function X(N,b,Q){var G,ae=((G=b.parent)===null||G===void 0?void 0:G.kind)===173?b.parent.parent:b.parent;if(ae){var Te=e.hasStaticModifier(b);return e.firstDefined(e.getAllSuperTypeNodes(ae),function(Ne){var we=N.getTypeAtLocation(Ne),nr=Te&&we.symbol?N.getTypeOfSymbol(we.symbol):we,tr=N.getPropertyOfType(nr,b.symbol.name);return tr?Q(tr):void 0})}}var A=function(N){m(b,N);function b(Q,G,ae){var Te=N.call(this,Q,G,ae)||this;return Te.kind=308,Te}return b.prototype.update=function(Q,G){return e.updateSourceFile(this,Q,G)},b.prototype.getLineAndCharacterOfPosition=function(Q){return e.getLineAndCharacterOfPosition(this,Q)},b.prototype.getLineStarts=function(){return e.getLineStarts(this)},b.prototype.getPositionOfLineAndCharacter=function(Q,G,ae){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),Q,G,this.text,ae)},b.prototype.getLineEndOfPosition=function(Q){var G=this.getLineAndCharacterOfPosition(Q).line,ae=this.getLineStarts(),Te;G+1>=ae.length&&(Te=this.getEnd()),Te||(Te=ae[G+1]-1);var Ne=this.getFullText();return Ne[Te]===`
`&&Ne[Te-1]==="\r"?Te-1:Te},b.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},b.prototype.computeNamedDeclarations=function(){var Q=e.createMultiMap();return this.forEachChild(Ne),Q;function G(we){var nr=Te(we);nr&&Q.add(nr,we)}function ae(we){var nr=Q.get(we);return nr||Q.set(we,nr=[]),nr}function Te(we){var nr=e.getNonAssignedNameOfDeclaration(we);return nr&&(e.isComputedPropertyName(nr)&&e.isPropertyAccessExpression(nr.expression)?nr.expression.name.text:e.isPropertyName(nr)?e.getNameFromPropertyName(nr):void 0)}function Ne(we){switch(we.kind){case 259:case 215:case 171:case 170:var nr=we,tr=Te(nr);if(tr){var me=ae(tr),He=e.lastOrUndefined(me);He&&nr.parent===He.parent&&nr.symbol===He.symbol?nr.body&&!He.body&&(me[me.length-1]=nr):me.push(nr)}e.forEachChild(we,Ne);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:G(we),e.forEachChild(we,Ne);break;case 166:if(!e.hasSyntacticModifier(we,16476))break;case 257:case 205:{var rr=we;if(e.isBindingPattern(rr.name)){e.forEachChild(rr.name,Ne);break}rr.initializer&&Ne(rr.initializer)}case 302:case 169:case 168:G(we);break;case 275:var je=we;je.exportClause&&(e.isNamedExports(je.exportClause)?e.forEach(je.exportClause.elements,Ne):Ne(je.exportClause.name));break;case 269:var Ce=we.importClause;Ce&&(Ce.name&&G(Ce.name),Ce.namedBindings&&(Ce.namedBindings.kind===271?G(Ce.namedBindings):e.forEach(Ce.namedBindings.elements,Ne)));break;case 223:e.getAssignmentDeclarationKind(we)!==0&&G(we);default:e.forEachChild(we,Ne)}}},b}(P),y=function(){function N(b,Q,G){this.fileName=b,this.text=Q,this.skipTrivia=G}return N.prototype.getLineAndCharacterOfPosition=function(b){return e.getLineAndCharacterOfPosition(this,b)},N}();function C(){return{getNodeConstructor:function(){return P},getTokenConstructor:function(){return E},getIdentifierConstructor:function(){return v},getPrivateIdentifierConstructor:function(){return S},getSourceFileConstructor:function(){return A},getSymbolConstructor:function(){return W},getTypeConstructor:function(){return te},getSignatureConstructor:function(){return Y},getSourceMapSourceConstructor:function(){return y}}}function B(N){var b=!0;for(var Q in N)if(e.hasProperty(N,Q)&&!F(Q)){b=!1;break}if(b)return N;var G={};for(var Q in N)if(e.hasProperty(N,Q)){var ae=F(Q)?Q:Q.charAt(0).toLowerCase()+Q.substr(1);G[ae]=N[Q]}return G}e.toEditorSettings=B;function F(N){return!N.length||N.charAt(0)===N.charAt(0).toLowerCase()}function z(N){return N?e.map(N,function(b){return b.text}).join(""):""}e.displayPartsToString=z;function ge(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=ge;function Pe(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=Pe;var fe=function(){function N(b){this.host=b}return N.prototype.getCurrentSourceFile=function(b){var Q,G,ae,Te,Ne,we,nr,tr,me=this.host.getScriptSnapshot(b);if(!me)throw new Error("Could not find file: '"+b+"'.");var He=e.getScriptKind(b,this.host),rr=this.host.getScriptVersion(b),je;if(this.currentFileName!==b){var Ce={languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(b,this.host.getCurrentDirectory(),((ae=(G=(Q=this.host).getCompilerHost)===null||G===void 0?void 0:G.call(Q))===null||ae===void 0?void 0:ae.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),(tr=(nr=(we=(Ne=(Te=this.host).getCompilerHost)===null||Ne===void 0?void 0:Ne.call(Te))===null||we===void 0?void 0:we.getModuleResolutionCache)===null||nr===void 0?void 0:nr.call(we))===null||tr===void 0?void 0:tr.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())};je=ne(b,me,Ce,rr,!0,He)}else if(this.currentFileVersion!==rr){var Ae=me.getChangeRange(this.currentFileScriptSnapshot);je=oe(this.currentSourceFile,me,rr,Ae)}return je&&(this.currentFileVersion=rr,this.currentFileName=b,this.currentFileScriptSnapshot=me,this.currentSourceFile=je),this.currentSourceFile},N}();function _e(N,b,Q){N.version=Q,N.scriptSnapshot=b}function ne(N,b,Q,G,ae,Te){var Ne=e.createSourceFile(N,e.getSnapshotText(b),Q,ae,Te);return _e(Ne,b,G),Ne}e.createLanguageServiceSourceFile=ne;function oe(N,b,Q,G,ae){if(G&&Q!==N.version){var Te=void 0,Ne=G.span.start!==0?N.text.substr(0,G.span.start):"",we=e.textSpanEnd(G.span)!==N.text.length?N.text.substr(e.textSpanEnd(G.span)):"";if(G.newLength===0)Te=Ne&&we?Ne+we:Ne||we;else{var nr=b.getText(G.span.start,G.span.start+G.newLength);Te=Ne&&we?Ne+nr+we:Ne?Ne+nr:nr+we}var tr=e.updateSourceFile(N,Te,G,ae);return _e(tr,b,Q),tr.nameTable=void 0,N!==tr&&N.scriptSnapshot&&(N.scriptSnapshot.dispose&&N.scriptSnapshot.dispose(),N.scriptSnapshot=void 0),tr}var me={languageVersion:N.languageVersion,impliedNodeFormat:N.impliedNodeFormat,setExternalModuleIndicator:N.setExternalModuleIndicator};return ne(N.fileName,b,me,Q,!0,N.scriptKind)}e.updateLanguageServiceSourceFile=oe;var w={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},re=function(){function N(b){this.cancellationToken=b}return N.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},N.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},N}(),M=function(){function N(b,Q){Q===void 0&&(Q=20),this.hostCancellationToken=b,this.throttleWaitMilliseconds=Q,this.lastCancellationCheckTime=0}return N.prototype.isCancellationRequested=function(){var b=e.timestamp(),Q=Math.abs(b-this.lastCancellationCheckTime);return Q>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=b,this.hostCancellationToken.isCancellationRequested()):!1},N.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},N}();e.ThrottledCancellationToken=M;var U=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],H=t(t([],U,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function q(N,b,Q){var G,ae;b===void 0&&(b=e.createDocumentRegistry(N.useCaseSensitiveFileNames&&N.useCaseSensitiveFileNames(),N.getCurrentDirectory()));var Te;Q===void 0?Te=e.LanguageServiceMode.Semantic:typeof Q=="boolean"?Te=Q?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:Te=Q;var Ne=new fe(N),we,nr,tr=0,me=N.getCancellationToken?new re(N.getCancellationToken()):w,He=N.getCurrentDirectory();e.maybeSetLocalizedDiagnosticMessages((ae=N.getLocalizedDiagnosticMessages)===null||ae===void 0?void 0:ae.bind(N));function rr(gt){N.log&&N.log(gt)}var je=e.hostUsesCaseSensitiveFileNames(N),Ce=e.createGetCanonicalFileName(je),Ae=e.getSourceMapper({useCaseSensitiveFileNames:function(){return je},getCurrentDirectory:function(){return He},getProgram:L,fileExists:e.maybeBind(N,N.fileExists),readFile:e.maybeBind(N,N.readFile),getDocumentPositionMapper:e.maybeBind(N,N.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(N,N.getSourceFileLike),log:rr});function qe(gt){var kt=we.getSourceFile(gt);if(!kt){var Lt=new Error("Could not find source file: '".concat(gt,"'."));throw Lt.ProgramFiles=we.getSourceFiles().map(function($e){return $e.fileName}),Lt}return kt}function xe(){var gt,kt,Lt;if(e.Debug.assert(Te!==e.LanguageServiceMode.Syntactic),N.getProjectVersion){var $e=N.getProjectVersion();if($e){if(nr===$e&&!(!((gt=N.hasChangedAutomaticTypeDirectiveNames)===null||gt===void 0)&&gt.call(N)))return;nr=$e}}var et=N.getTypeRootsVersion?N.getTypeRootsVersion():0;tr!==et&&(rr("TypeRoots version has changed; provide new program"),we=void 0,tr=et);var It=N.getScriptFileNames().slice(),xn=N.getCompilationSettings()||ge(),pi=N.hasInvalidatedResolutions||e.returnFalse,ai=e.maybeBind(N,N.hasChangedAutomaticTypeDirectiveNames),Wi=(kt=N.getProjectReferences)===null||kt===void 0?void 0:kt.call(N),ji,fn={getSourceFile:rs,getSourceFileByPath:ts,getCancellationToken:function(){return me},getCanonicalFileName:Ce,useCaseSensitiveFileNames:function(){return je},getNewLine:function(){return e.getNewLineCharacter(xn,function(){return e.getNewLineOrDefaultFromHost(N)})},getDefaultLibFileName:function(En){return N.getDefaultLibFileName(En)},writeFile:e.noop,getCurrentDirectory:function(){return He},fileExists:function(En){return N.fileExists(En)},readFile:function(En){return N.readFile&&N.readFile(En)},getSymlinkCache:e.maybeBind(N,N.getSymlinkCache),realpath:e.maybeBind(N,N.realpath),directoryExists:function(En){return e.directoryProbablyExists(En,N)},getDirectories:function(En){return N.getDirectories?N.getDirectories(En):[]},readDirectory:function(En,ca,bo,Oo,Ws){return e.Debug.checkDefined(N.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),N.readDirectory(En,ca,bo,Oo,Ws)},onReleaseOldSourceFile:Ka,onReleaseParsedCommandLine:Do,hasInvalidatedResolutions:pi,hasChangedAutomaticTypeDirectiveNames:ai,trace:e.maybeBind(N,N.trace),resolveModuleNames:e.maybeBind(N,N.resolveModuleNames),getModuleResolutionCache:e.maybeBind(N,N.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(N,N.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(N,N.useSourceOfProjectReferenceRedirect),getParsedCommandLine:_a},Ri=fn.getSourceFile,ma=e.changeCompilerHostLikeToUseCache(fn,function(En){return e.toPath(En,He,Ce)},function(){for(var En=[],ca=0;ca<arguments.length;ca++)En[ca]=arguments[ca];return Ri.call.apply(Ri,t([fn],En,!1))}).getSourceFileWithCache;fn.getSourceFile=ma,(Lt=N.setCompilerHost)===null||Lt===void 0||Lt.call(N,fn);var ra={useCaseSensitiveFileNames:je,fileExists:function(En){return fn.fileExists(En)},readFile:function(En){return fn.readFile(En)},readDirectory:function(){for(var En,ca=[],bo=0;bo<arguments.length;bo++)ca[bo]=arguments[bo];return(En=fn).readDirectory.apply(En,ca)},trace:fn.trace,getCurrentDirectory:fn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:e.noop},vn=b.getKeyForCompilationSettings(xn);if(e.isProgramUptoDate(we,It,xn,function(En,ca){return N.getScriptVersion(ca)},function(En){return fn.fileExists(En)},pi,ai,_a,Wi))return;var zo={rootNames:It,options:xn,host:fn,oldProgram:we,projectReferences:Wi};we=e.createProgram(zo),fn=void 0,ji=void 0,Ae.clearCache(),we.getTypeChecker();return;function _a(En){var ca=e.toPath(En,He,Ce),bo=ji==null?void 0:ji.get(ca);if(bo!==void 0)return bo||void 0;var Oo=N.getParsedCommandLine?N.getParsedCommandLine(En):Ha(En);return(ji||(ji=new e.Map)).set(ca,Oo||!1),Oo}function Ha(En){var ca=rs(En,100);if(ca)return ca.path=e.toPath(En,He,Ce),ca.resolvedPath=ca.path,ca.originalFileName=ca.fileName,e.parseJsonSourceFileConfigFileContent(ca,ra,e.getNormalizedAbsolutePath(e.getDirectoryPath(En),He),void 0,e.getNormalizedAbsolutePath(En,He))}function Do(En,ca,bo){var Oo;N.getParsedCommandLine?(Oo=N.onReleaseParsedCommandLine)===null||Oo===void 0||Oo.call(N,En,ca,bo):ca&&Ka(ca.sourceFile,bo)}function Ka(En,ca){var bo=b.getKeyForCompilationSettings(ca);b.releaseDocumentWithKey(En.resolvedPath,bo,En.scriptKind,En.impliedNodeFormat)}function rs(En,ca,bo,Oo){return ts(En,e.toPath(En,He,Ce),ca,bo,Oo)}function ts(En,ca,bo,Oo,Ws){e.Debug.assert(fn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var Co=N.getScriptSnapshot(En);if(Co){var qs=e.getScriptKind(En,N),gs=N.getScriptVersion(En);if(!Ws){var Ds=we&&we.getSourceFileByPath(ca);if(Ds){if(qs===Ds.scriptKind)return b.updateDocumentWithKey(En,ca,N,vn,Co,gs,qs,bo);b.releaseDocumentWithKey(Ds.resolvedPath,b.getKeyForCompilationSettings(we.getCompilerOptions()),Ds.scriptKind,Ds.impliedNodeFormat)}}return b.acquireDocumentWithKey(En,ca,N,vn,Co,gs,qs,bo)}}}function L(){if(Te===e.LanguageServiceMode.Syntactic){e.Debug.assert(we===void 0);return}return xe(),we}function ue(){var gt;return(gt=N.getPackageJsonAutoImportProvider)===null||gt===void 0?void 0:gt.call(N)}function Ue(gt,kt){var Lt=we.getTypeChecker(),$e=Ri();if(!$e)return!1;for(var et=0,It=gt;et<It.length;et++)for(var xn=It[et],pi=0,ai=xn.references;pi<ai.length;pi++){var Wi=ai[pi],ji=ma(Wi);if(e.Debug.assertIsDefined(ji),kt.has(Wi)||e.FindAllReferences.isDeclarationOfSymbol(ji,$e)){kt.add(Wi),Wi.isDefinition=!0;var fn=e.getMappedDocumentSpan(Wi,Ae,e.maybeBind(N,N.fileExists));fn&&kt.add(fn)}else Wi.isDefinition=!1}return!0;function Ri(){for(var ra=0,vn=gt;ra<vn.length;ra++)for(var zo=vn[ra],_a=0,Ha=zo.references;_a<Ha.length;_a++){var Do=Ha[_a];if(kt.has(Do)){var Ka=ma(Do);return e.Debug.assertIsDefined(Ka),Lt.getSymbolAtLocation(Ka)}var rs=e.getMappedDocumentSpan(Do,Ae,e.maybeBind(N,N.fileExists));if(rs&&kt.has(rs)){var Ka=ma(rs);if(Ka)return Lt.getSymbolAtLocation(Ka)}}}function ma(ra){var vn=we.getSourceFile(ra.fileName);if(vn){var zo=e.getTouchingPropertyName(vn,ra.textSpan.start),_a=e.FindAllReferences.Core.getAdjustedNode(zo,{use:1});return _a}}}function Je(){we=void 0}function lr(){if(we){var gt=b.getKeyForCompilationSettings(we.getCompilerOptions());e.forEach(we.getSourceFiles(),function(kt){return b.releaseDocumentWithKey(kt.resolvedPath,gt,kt.scriptKind,kt.impliedNodeFormat)}),we=void 0}N=void 0}function mr(gt){return xe(),we.getSyntacticDiagnostics(qe(gt),me).slice()}function Hr(gt){xe();var kt=qe(gt),Lt=we.getSemanticDiagnostics(kt,me);if(!e.getEmitDeclarations(we.getCompilerOptions()))return Lt.slice();var $e=we.getDeclarationDiagnostics(kt,me);return t(t([],Lt,!0),$e,!0)}function wr(gt){return xe(),e.computeSuggestionDiagnostics(qe(gt),we,me)}function Oe(){return xe(),t(t([],we.getOptionsDiagnostics(me),!0),we.getGlobalDiagnostics(me),!0)}function Ze(gt,kt,Lt,$e){Lt===void 0&&(Lt=e.emptyOptions);var et=n(n({},e.identity(Lt)),{includeCompletionsForModuleExports:Lt.includeCompletionsForModuleExports||Lt.includeExternalModuleExports,includeCompletionsWithInsertText:Lt.includeCompletionsWithInsertText||Lt.includeInsertTextCompletions});return xe(),e.Completions.getCompletionsAtPosition(N,we,rr,qe(gt),kt,et,Lt.triggerCharacter,Lt.triggerKind,me,$e&&e.formatting.getFormatContext($e,N))}function tt(gt,kt,Lt,$e,et,It,xn){return It===void 0&&(It=e.emptyOptions),xe(),e.Completions.getCompletionEntryDetails(we,rr,qe(gt),kt,{name:Lt,source:et,data:xn},N,$e&&e.formatting.getFormatContext($e,N),It,me)}function ut(gt,kt,Lt,$e,et){return et===void 0&&(et=e.emptyOptions),xe(),e.Completions.getCompletionEntrySymbol(we,rr,qe(gt),kt,{name:Lt,source:$e},N,et)}function or(gt,kt){xe();var Lt=qe(gt),$e=e.getTouchingPropertyName(Lt,kt);if($e!==Lt){var et=we.getTypeChecker(),It=qr($e),xn=ee(It,et);if(!xn||et.isUnknownSymbol(xn)){var pi=Rr(Lt,It,kt)?et.getTypeAtLocation(It):void 0;return pi&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(It,Lt),displayParts:et.runWithCancellationToken(me,function(ma){return e.typeToDisplayParts(ma,pi,e.getContainerNode(It))}),documentation:pi.symbol?pi.symbol.getDocumentationComment(et):void 0,tags:pi.symbol?pi.symbol.getJsDocTags(et):void 0}}var ai=et.runWithCancellationToken(me,function(ma){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(ma,xn,Lt,e.getContainerNode(It),It)}),Wi=ai.symbolKind,ji=ai.displayParts,fn=ai.documentation,Ri=ai.tags;return{kind:Wi,kindModifiers:e.SymbolDisplay.getSymbolModifiers(et,xn),textSpan:e.createTextSpanFromNode(It,Lt),displayParts:ji,documentation:fn,tags:Ri}}}function qr(gt){return e.isNewExpression(gt.parent)&&gt.pos===gt.parent.pos?gt.parent.expression:e.isNamedTupleMember(gt.parent)&&gt.pos===gt.parent.pos||e.isImportMeta(gt.parent)&&gt.parent.name===gt?gt.parent:gt}function Rr(gt,kt,Lt){switch(kt.kind){case 79:return!e.isLabelName(kt)&&!e.isTagName(kt)&&!e.isConstTypeReference(kt.parent);case 208:case 163:return!e.isInComment(gt,Lt);case 108:case 194:case 106:case 199:return!0;case 233:return e.isImportMeta(kt);default:return!1}}function zr(gt,kt,Lt,$e){return xe(),e.GoToDefinition.getDefinitionAtPosition(we,qe(gt),kt,Lt,$e)}function Fr(gt,kt){return xe(),e.GoToDefinition.getDefinitionAndBoundSpan(we,qe(gt),kt)}function _t(gt,kt){return xe(),e.GoToDefinition.getTypeDefinitionAtPosition(we.getTypeChecker(),qe(gt),kt)}function Ct(gt,kt){return xe(),e.FindAllReferences.getImplementationsAtPosition(we,me,we.getSourceFiles(),qe(gt),kt)}function yt(gt,kt){return e.flatMap(Fe(gt,kt,[gt]),function(Lt){return Lt.highlightSpans.map(function($e){return n(n({fileName:Lt.fileName,textSpan:$e.textSpan,isWriteAccess:$e.kind==="writtenReference"},$e.isInString&&{isInString:!0}),$e.contextSpan&&{contextSpan:$e.contextSpan})})})}function Fe(gt,kt,Lt){var $e=e.normalizePath(gt);e.Debug.assert(Lt.some(function(xn){return e.normalizePath(xn)===$e})),xe();var et=e.mapDefined(Lt,function(xn){return we.getSourceFile(xn)}),It=qe(gt);return e.DocumentHighlights.getDocumentHighlights(we,me,It,kt,et)}function vr(gt,kt,Lt,$e,et){xe();var It=qe(gt),xn=e.getAdjustedRenameLocation(e.getTouchingPropertyName(It,kt));if(e.Rename.nodeIsEligibleForRename(xn))if(e.isIdentifier(xn)&&(e.isJsxOpeningElement(xn.parent)||e.isJsxClosingElement(xn.parent))&&e.isIntrinsicJsxName(xn.escapedText)){var pi=xn.parent.parent,ai=pi.openingElement,Wi=pi.closingElement;return[ai,Wi].map(function(ji){var fn=e.createTextSpanFromNode(ji.tagName,It);return n({fileName:It.fileName,textSpan:fn},e.FindAllReferences.toContextSpan(fn,It,ji.parent))})}else return cr(xn,kt,{findInStrings:Lt,findInComments:$e,providePrefixAndSuffixTextForRename:et,use:2},function(ji,fn,Ri){return e.FindAllReferences.toRenameLocation(ji,fn,Ri,et||!1)})}function Le(gt,kt){return xe(),cr(e.getTouchingPropertyName(qe(gt),kt),kt,{use:1},e.FindAllReferences.toReferenceEntry)}function cr(gt,kt,Lt,$e){xe();var et=Lt&&Lt.use===2?we.getSourceFiles().filter(function(It){return!we.isSourceFileDefaultLibrary(It)}):we.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(we,me,et,gt,kt,Lt,$e)}function $r(gt,kt){return xe(),e.FindAllReferences.findReferencedSymbols(we,me,we.getSourceFiles(),qe(gt),kt)}function Re(gt){return xe(),e.FindAllReferences.Core.getReferencesForFileName(gt,we,we.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)}function xr(gt,kt,Lt,$e){$e===void 0&&($e=!1),xe();var et=Lt?[qe(Lt)]:we.getSourceFiles();return e.NavigateTo.getNavigateToItems(et,we.getTypeChecker(),me,gt,kt,$e)}function Br(gt,kt,Lt){xe();var $e=qe(gt),et=N.getCustomTransformers&&N.getCustomTransformers();return e.getFileEmitOutput(we,$e,!!kt,me,et,Lt)}function Qr(gt,kt,Lt){var $e=Lt===void 0?e.emptyOptions:Lt,et=$e.triggerReason;xe();var It=qe(gt);return e.SignatureHelp.getSignatureHelpItems(we,It,kt,et,me)}function ct(gt){return Ne.getCurrentSourceFile(gt)}function ft(gt,kt,Lt){var $e=Ne.getCurrentSourceFile(gt),et=e.getTouchingPropertyName($e,kt);if(et!==$e){switch(et.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}for(var It=et;;)if(e.isRightSideOfPropertyAccess(It)||e.isRightSideOfQualifiedName(It))It=It.parent;else if(e.isNameOfModuleDeclaration(It))if(It.parent.parent.kind===264&&It.parent.parent.body===It.parent)It=It.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(It.getStart(),et.getEnd())}}function Dt(gt,kt){var Lt=Ne.getCurrentSourceFile(gt);return e.BreakpointResolver.spanInSourceFileAtLocation(Lt,kt)}function Me(gt){return e.NavigationBar.getNavigationBarItems(Ne.getCurrentSourceFile(gt),me)}function Ke(gt){return e.NavigationBar.getNavigationTree(Ne.getCurrentSourceFile(gt),me)}function Vr(gt,kt,Lt){xe();var $e=Lt||"original";return $e==="2020"?e.classifier.v2020.getSemanticClassifications(we,me,qe(gt),kt):e.getSemanticClassifications(we.getTypeChecker(),me,qe(gt),we.getClassifiableNames(),kt)}function Yr(gt,kt,Lt){xe();var $e=Lt||"original";return $e==="original"?e.getEncodedSemanticClassifications(we.getTypeChecker(),me,qe(gt),we.getClassifiableNames(),kt):e.classifier.v2020.getEncodedSemanticClassifications(we,me,qe(gt),kt)}function Nt(gt,kt){return e.getSyntacticClassifications(me,Ne.getCurrentSourceFile(gt),kt)}function Wt(gt,kt){return e.getEncodedSyntacticClassifications(me,Ne.getCurrentSourceFile(gt),kt)}function sn(gt){var kt=Ne.getCurrentSourceFile(gt);return e.OutliningElementsCollector.collectElements(kt,me)}var en=new e.Map(e.getEntries((G={},G[18]=19,G[20]=21,G[22]=23,G[31]=29,G)));en.forEach(function(gt,kt){return en.set(gt.toString(),Number(kt))});function Ir(gt,kt){var Lt=Ne.getCurrentSourceFile(gt),$e=e.getTouchingToken(Lt,kt),et=$e.getStart(Lt)===kt?en.get($e.kind.toString()):void 0,It=et&&e.findChildOfKind($e.parent,et,Lt);return It?[e.createTextSpanFromNode($e,Lt),e.createTextSpanFromNode(It,Lt)].sort(function(xn,pi){return xn.start-pi.start}):e.emptyArray}function Jr(gt,kt,Lt){var $e=e.timestamp(),et=B(Lt),It=Ne.getCurrentSourceFile(gt);rr("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-$e)),$e=e.timestamp();var xn=e.formatting.SmartIndenter.getIndentation(kt,It,et);return rr("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-$e)),xn}function ye(gt,kt,Lt,$e){var et=Ne.getCurrentSourceFile(gt);return e.formatting.formatSelection(kt,Lt,et,e.formatting.getFormatContext(B($e),N))}function Ie(gt,kt){return e.formatting.formatDocument(Ne.getCurrentSourceFile(gt),e.formatting.getFormatContext(B(kt),N))}function We(gt,kt,Lt,$e){var et=Ne.getCurrentSourceFile(gt),It=e.formatting.getFormatContext(B($e),N);if(!e.isInComment(et,kt))switch(Lt){case"{":return e.formatting.formatOnOpeningCurly(kt,et,It);case"}":return e.formatting.formatOnClosingCurly(kt,et,It);case";":return e.formatting.formatOnSemicolon(kt,et,It);case`
`:return e.formatting.formatOnEnter(kt,et,It)}return[]}function dr(gt,kt,Lt,$e,et,It){It===void 0&&(It=e.emptyOptions),xe();var xn=qe(gt),pi=e.createTextSpanFromBounds(kt,Lt),ai=e.formatting.getFormatContext(et,N);return e.flatMap(e.deduplicate($e,e.equateValues,e.compareValues),function(Wi){return me.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:Wi,sourceFile:xn,span:pi,program:we,host:N,cancellationToken:me,formatContext:ai,preferences:It})})}function ar(gt,kt,Lt,$e){$e===void 0&&($e=e.emptyOptions),xe(),e.Debug.assert(gt.type==="file");var et=qe(gt.fileName),It=e.formatting.getFormatContext(Lt,N);return e.codefix.getAllFixes({fixId:kt,sourceFile:et,program:we,host:N,cancellationToken:me,formatContext:It,preferences:$e})}function Sr(gt,kt,Lt){var $e;Lt===void 0&&(Lt=e.emptyOptions),xe(),e.Debug.assert(gt.type==="file");var et=qe(gt.fileName),It=e.formatting.getFormatContext(kt,N),xn=($e=gt.mode)!==null&&$e!==void 0?$e:gt.skipDestructiveCodeActions?"SortAndCombine":"All";return e.OrganizeImports.organizeImports(et,It,N,we,Lt,xn)}function Or(gt,kt,Lt,$e){return $e===void 0&&($e=e.emptyOptions),e.getEditsForFileRename(L(),gt,kt,N,e.formatting.getFormatContext(Lt,N),$e,Ae)}function Ge(gt,kt){var Lt=typeof gt=="string"?kt:gt;return e.isArray(Lt)?Promise.all(Lt.map(function($e){return ur($e)})):ur(Lt)}function ur(gt){var kt=function(Lt){return e.toPath(Lt,He,Ce)};return e.Debug.assertEqual(gt.type,"install package"),N.installPackage?N.installPackage({fileName:kt(gt.file),packageName:gt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Lr(gt,kt,Lt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(N),Ne.getCurrentSourceFile(gt),kt,Lt)}function Ar(gt,kt,Lt){if(Lt===60)return!1;var $e=Ne.getCurrentSourceFile(gt);if(e.isInString($e,kt))return!1;if(e.isInsideJsxElementOrAttribute($e,kt))return Lt===123;if(e.isInTemplateString($e,kt))return!1;switch(Lt){case 39:case 34:case 96:return!e.isInComment($e,kt)}return!0}function rt(gt,kt){var Lt=Ne.getCurrentSourceFile(gt),$e=e.findPrecedingToken(kt,Lt);if($e){var et=$e.kind===31&&e.isJsxOpeningElement($e.parent)?$e.parent.parent:e.isJsxText($e)&&e.isJsxElement($e.parent)?$e.parent:void 0;if(et&&ht(et))return{newText:"</".concat(et.openingElement.tagName.getText(Lt),">")};var It=$e.kind===31&&e.isJsxOpeningFragment($e.parent)?$e.parent.parent:e.isJsxText($e)&&e.isJsxFragment($e.parent)?$e.parent:void 0;if(It&&Yt(It))return{newText:"</>"}}}function Et(gt,kt){return{lineStarts:gt.getLineStarts(),firstLine:gt.getLineAndCharacterOfPosition(kt.pos).line,lastLine:gt.getLineAndCharacterOfPosition(kt.end).line}}function St(gt,kt,Lt){for(var $e=Ne.getCurrentSourceFile(gt),et=[],It=Et($e,kt),xn=It.lineStarts,pi=It.firstLine,ai=It.lastLine,Wi=Lt||!1,ji=Number.MAX_VALUE,fn=new e.Map,Ri=new RegExp(/\S/),ma=e.isInsideJsxElement($e,xn[pi]),ra=ma?"{/*":"//",vn=pi;vn<=ai;vn++){var zo=$e.text.substring(xn[vn],$e.getLineEndOfPosition(xn[vn])),_a=Ri.exec(zo);_a&&(ji=Math.min(ji,_a.index),fn.set(vn.toString(),_a.index),zo.substr(_a.index,ra.length)!==ra&&(Wi=Lt===void 0||Lt))}for(var vn=pi;vn<=ai;vn++)if(!(pi!==ai&&xn[vn]===kt.end)){var Ha=fn.get(vn.toString());Ha!==void 0&&(ma?et.push.apply(et,Pt(gt,{pos:xn[vn]+ji,end:$e.getLineEndOfPosition(xn[vn])},Wi,ma)):Wi?et.push({newText:ra,span:{length:0,start:xn[vn]+ji}}):$e.text.substr(xn[vn]+Ha,ra.length)===ra&&et.push({newText:"",span:{length:ra.length,start:xn[vn]+Ha}}))}return et}function Pt(gt,kt,Lt,$e){for(var et,It=Ne.getCurrentSourceFile(gt),xn=[],pi=It.text,ai=!1,Wi=Lt||!1,ji=[],fn=kt.pos,Ri=$e!==void 0?$e:e.isInsideJsxElement(It,fn),ma=Ri?"{/*":"/*",ra=Ri?"*/}":"*/",vn=Ri?"\\{\\/\\*":"\\/\\*",zo=Ri?"\\*\\/\\}":"\\*\\/";fn<=kt.end;){var _a=pi.substr(fn,ma.length)===ma?ma.length:0,Ha=e.isInComment(It,fn+_a);if(Ha)Ri&&(Ha.pos--,Ha.end++),ji.push(Ha.pos),Ha.kind===3&&ji.push(Ha.end),ai=!0,fn=Ha.end+1;else{var Do=pi.substring(fn,kt.end).search("(".concat(vn,")|(").concat(zo,")"));Wi=Lt!==void 0?Lt:Wi||!e.isTextWhiteSpaceLike(pi,fn,Do===-1?kt.end:fn+Do),fn=Do===-1?kt.end+1:fn+Do+ra.length}}if(Wi||!ai){((et=e.isInComment(It,kt.pos))===null||et===void 0?void 0:et.kind)!==2&&e.insertSorted(ji,kt.pos,e.compareValues),e.insertSorted(ji,kt.end,e.compareValues);var Ka=ji[0];pi.substr(Ka,ma.length)!==ma&&xn.push({newText:ma,span:{length:0,start:Ka}});for(var rs=1;rs<ji.length-1;rs++)pi.substr(ji[rs]-ra.length,ra.length)!==ra&&xn.push({newText:ra,span:{length:0,start:ji[rs]}}),pi.substr(ji[rs],ma.length)!==ma&&xn.push({newText:ma,span:{length:0,start:ji[rs]}});xn.length%2!==0&&xn.push({newText:ra,span:{length:0,start:ji[ji.length-1]}})}else for(var ts=0,En=ji;ts<En.length;ts++){var ca=En[ts],bo=ca-ra.length>0?ca-ra.length:0,_a=pi.substr(bo,ra.length)===ra?ra.length:0;xn.push({newText:"",span:{length:ma.length,start:ca-_a}})}return xn}function pt(gt,kt){var Lt=Ne.getCurrentSourceFile(gt),$e=Et(Lt,kt),et=$e.firstLine,It=$e.lastLine;return et===It&&kt.pos!==kt.end?Pt(gt,kt,!0):St(gt,kt,!0)}function Ft(gt,kt){var Lt=Ne.getCurrentSourceFile(gt),$e=[],et=kt.pos,It=kt.end;et===It&&(It+=e.isInsideJsxElement(Lt,et)?2:1);for(var xn=et;xn<=It;xn++){var pi=e.isInComment(Lt,xn);if(pi){switch(pi.kind){case 2:$e.push.apply($e,St(gt,{end:pi.end,pos:pi.pos+1},!1));break;case 3:$e.push.apply($e,Pt(gt,{end:pi.end,pos:pi.pos+1},!1))}xn=pi.end+1}}return $e}function ht(gt){var kt=gt.openingElement,Lt=gt.closingElement,$e=gt.parent;return!e.tagNamesAreEquivalent(kt.tagName,Lt.tagName)||e.isJsxElement($e)&&e.tagNamesAreEquivalent(kt.tagName,$e.openingElement.tagName)&&ht($e)}function Yt(gt){var kt=gt.closingFragment,Lt=gt.parent;return!!(kt.flags&131072)||e.isJsxFragment(Lt)&&Yt(Lt)}function un(gt,kt,Lt){var $e=Ne.getCurrentSourceFile(gt),et=e.formatting.getRangeOfEnclosingComment($e,kt);return et&&(!Lt||et.kind===3)?e.createTextSpanFromRange(et):void 0}function wn(gt,kt){xe();var Lt=qe(gt);me.throwIfCancellationRequested();var $e=Lt.text,et=[];if(kt.length>0&&!zo(Lt.fileName))for(var It=ra(),xn=void 0;xn=It.exec($e);){me.throwIfCancellationRequested();var pi=3;e.Debug.assert(xn.length===kt.length+pi);var ai=xn[1],Wi=xn.index+ai.length;if(e.isInComment(Lt,Wi)){for(var ji=void 0,fn=0;fn<kt.length;fn++)xn[fn+pi]&&(ji=kt[fn]);if(ji===void 0)return e.Debug.fail();if(!vn($e.charCodeAt(Wi+ji.text.length))){var Ri=xn[2];et.push({descriptor:ji,message:Ri,position:Wi})}}}return et;function ma(_a){return _a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ra(){var _a=/(?:\/\/+\s*)/.source,Ha=/(?:\/\*+\s*)/.source,Do=/(?:^(?:\s|\*)*)/.source,Ka="("+Do+"|"+_a+"|"+Ha+")",rs="(?:"+e.map(kt,function(Oo){return"("+ma(Oo.text)+")"}).join("|")+")",ts=/(?:$|\*\/)/.source,En=/(?:.*?)/.source,ca="("+rs+En+")",bo=Ka+ca+ts;return new RegExp(bo,"gim")}function vn(_a){return _a>=97&&_a<=122||_a>=65&&_a<=90||_a>=48&&_a<=57}function zo(_a){return e.stringContains(_a,"/node_modules/")}}function Bn(gt,kt,Lt){return xe(),e.Rename.getRenameInfo(we,qe(gt),kt,Lt||{})}function yn(gt,kt,Lt,$e,et,It){var xn=typeof kt=="number"?[kt,void 0]:[kt.pos,kt.end],pi=xn[0],ai=xn[1];return{file:gt,startPosition:pi,endPosition:ai,program:L(),host:N,formatContext:e.formatting.getFormatContext($e,N),cancellationToken:me,preferences:Lt,triggerReason:et,kind:It}}function Tn(gt,kt,Lt){return{file:gt,program:L(),host:N,span:kt,preferences:Lt,cancellationToken:me}}function An(gt,kt){return e.SmartSelectionRange.getSmartSelectionRange(kt,Ne.getCurrentSourceFile(gt))}function ii(gt,kt,Lt,$e,et){Lt===void 0&&(Lt=e.emptyOptions),xe();var It=qe(gt);return e.refactor.getApplicableRefactors(yn(It,kt,Lt,e.emptyOptions,$e,et))}function Xe(gt,kt,Lt,$e,et,It){It===void 0&&(It=e.emptyOptions),xe();var xn=qe(gt);return e.refactor.getEditsForRefactor(yn(xn,Lt,It,kt),$e,et)}function hr(gt,kt){return kt===0?{line:0,character:0}:Ae.toLineColumnOffset(gt,kt)}function at(gt,kt){xe();var Lt=e.CallHierarchy.resolveCallHierarchyDeclaration(we,e.getTouchingPropertyName(qe(gt),kt));return Lt&&e.mapOneOrMany(Lt,function($e){return e.CallHierarchy.createCallHierarchyItem(we,$e)})}function Qe(gt,kt){xe();var Lt=qe(gt),$e=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(we,kt===0?Lt:e.getTouchingPropertyName(Lt,kt)));return $e?e.CallHierarchy.getIncomingCalls(we,$e,me):[]}function Qt(gt,kt){xe();var Lt=qe(gt),$e=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(we,kt===0?Lt:e.getTouchingPropertyName(Lt,kt)));return $e?e.CallHierarchy.getOutgoingCalls(we,$e):[]}function Zt(gt,kt,Lt){Lt===void 0&&(Lt=e.emptyOptions),xe();var $e=qe(gt);return e.InlayHints.provideInlayHints(Tn($e,kt,Lt))}var Tt={dispose:lr,cleanupSemanticCache:Je,getSyntacticDiagnostics:mr,getSemanticDiagnostics:Hr,getSuggestionDiagnostics:wr,getCompilerOptionsDiagnostics:Oe,getSyntacticClassifications:Nt,getSemanticClassifications:Vr,getEncodedSyntacticClassifications:Wt,getEncodedSemanticClassifications:Yr,getCompletionsAtPosition:Ze,getCompletionEntryDetails:tt,getCompletionEntrySymbol:ut,getSignatureHelpItems:Qr,getQuickInfoAtPosition:or,getDefinitionAtPosition:zr,getDefinitionAndBoundSpan:Fr,getImplementationAtPosition:Ct,getTypeDefinitionAtPosition:_t,getReferencesAtPosition:Le,findReferences:$r,getFileReferences:Re,getOccurrencesAtPosition:yt,getDocumentHighlights:Fe,getNameOrDottedNameSpan:ft,getBreakpointStatementAtPosition:Dt,getNavigateToItems:xr,getRenameInfo:Bn,getSmartSelectionRange:An,findRenameLocations:vr,getNavigationBarItems:Me,getNavigationTree:Ke,getOutliningSpans:sn,getTodoComments:wn,getBraceMatchingAtPosition:Ir,getIndentationAtPosition:Jr,getFormattingEditsForRange:ye,getFormattingEditsForDocument:Ie,getFormattingEditsAfterKeystroke:We,getDocCommentTemplateAtPosition:Lr,isValidBraceCompletionAtPosition:Ar,getJsxClosingTagAtPosition:rt,getSpanOfEnclosingComment:un,getCodeFixesAtPosition:dr,getCombinedCodeFix:ar,applyCodeActionCommand:Ge,organizeImports:Sr,getEditsForFileRename:Or,getEmitOutput:Br,getNonBoundSourceFile:ct,getProgram:L,getCurrentProgram:function(){return we},getAutoImportProvider:ue,updateIsDefinitionOfReferencedSymbols:Ue,getApplicableRefactors:ii,getEditsForRefactor:Xe,toLineColumnOffset:hr,getSourceMapper:function(){return Ae},clearSourceMapperCache:function(){return Ae.clearCache()},prepareCallHierarchy:at,provideCallHierarchyIncomingCalls:Qe,provideCallHierarchyOutgoingCalls:Qt,toggleLineComment:St,toggleMultilineComment:Pt,commentSelection:pt,uncommentSelection:Ft,provideInlayHints:Zt};switch(Te){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:U.forEach(function(gt){return Tt[gt]=function(){throw new Error("LanguageService Operation: ".concat(gt," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:H.forEach(function(gt){return Tt[gt]=function(){throw new Error("LanguageService Operation: ".concat(gt," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(Te)}return Tt}e.createLanguageService=q;function R(N){return N.nameTable||K(N),N.nameTable}e.getNameTable=R;function K(N){var b=N.nameTable=new e.Map;N.forEachChild(function Q(G){if(e.isIdentifier(G)&&!e.isTagName(G)&&G.escapedText||e.isStringOrNumericLiteralLike(G)&&I(G)){var ae=e.getEscapedTextOfIdentifierOrLiteral(G);b.set(ae,b.get(ae)===void 0?G.pos:-1)}else if(e.isPrivateIdentifier(G)){var ae=G.escapedText;b.set(ae,b.get(ae)===void 0?G.pos:-1)}if(e.forEachChild(G,Q),e.hasJSDocNodes(G))for(var Te=0,Ne=G.jsDoc;Te<Ne.length;Te++){var we=Ne[Te];e.forEachChild(we,Q)}})}function I(N){return e.isDeclarationName(N)||N.parent.kind===280||de(N)||e.isLiteralComputedPropertyDeclarationName(N)}function he(N){var b=le(N);return b&&(e.isObjectLiteralExpression(b.parent)||e.isJsxAttributes(b.parent))?b:void 0}e.getContainingObjectLiteralElement=he;function le(N){switch(N.kind){case 10:case 14:case 8:if(N.parent.kind===164)return e.isObjectLiteralElement(N.parent.parent)?N.parent.parent:void 0;case 79:return e.isObjectLiteralElement(N.parent)&&(N.parent.parent.kind===207||N.parent.parent.kind===289)&&N.parent.name===N?N.parent:void 0}}function ee(N,b){var Q=he(N);if(Q){var G=b.getContextualType(Q.parent),ae=G&&J(Q,b,G,!1);if(ae&&ae.length===1)return e.first(ae)}return b.getSymbolAtLocation(N)}function J(N,b,Q,G){var ae=e.getNameFromPropertyName(N.name);if(!ae)return e.emptyArray;if(!Q.isUnion()){var Te=Q.getProperty(ae);return Te?[Te]:e.emptyArray}var Ne=e.mapDefined(Q.types,function(we){return(e.isObjectLiteralExpression(N.parent)||e.isJsxAttributes(N.parent))&&b.isTypeInvalidDueToUnionDiscriminant(we,N.parent)?void 0:we.getProperty(ae)});if(G&&(Ne.length===0||Ne.length===Q.types.length)){var Te=Q.getProperty(ae);if(Te)return[Te]}return Ne.length===0?e.mapDefined(Q.types,function(we){return we.getProperty(ae)}):Ne}e.getPropertySymbolsFromContextualType=J;function de(N){return N&&N.parent&&N.parent.kind===209&&N.parent.argumentExpression===N}function De(N){if(typeof __dirname<"u")return e.combinePaths(__dirname,e.getDefaultLibFileName(N));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}e.getDefaultLibFilePath=De,e.setObjectAllocator(C())})(h||(h={}));var h;(function(e){(function(c){function P(T,s){if(T.isDeclarationFile)return;var D=e.getTokenAtPosition(T,s),O=T.getLineAndCharacterOfPosition(s).line;if(T.getLineAndCharacterOfPosition(D.getStart(T)).line>O){var W=e.findPrecedingToken(D.pos,T);if(!W||T.getLineAndCharacterOfPosition(W.getEnd()).line!==O)return;D=W}if(D.flags&16777216)return;return ce(D);function E(k,X){var A=e.canHaveDecorators(k)?e.findLast(k.modifiers,e.isDecorator):void 0,y=A?e.skipTrivia(T.text,A.end):k.getStart(T);return e.createTextSpanFromBounds(y,(X||k).getEnd())}function v(k,X){return E(k,e.findNextToken(X,X.parent,T))}function S(k,X){return k&&O===T.getLineAndCharacterOfPosition(k.getStart(T)).line?ce(k):ce(X)}function te(k,X,A){if(k){var y=k.indexOf(X);if(y>=0){for(var C=y,B=y+1;C>0&&A(k[C-1]);)C--;for(;B<k.length&&A(k[B]);)B++;return e.createTextSpanFromBounds(e.skipTrivia(T.text,k[C].pos),k[B-1].end)}}return E(X)}function Y(k){return ce(e.findPrecedingToken(k.pos,T))}function Z(k){return ce(e.findNextToken(k,k.parent,T))}function ce(k){if(k){var X=k.parent;switch(k.kind){case 240:return Pe(k.declarationList.declarations[0]);case 257:case 169:case 168:return Pe(k);case 166:return _e(k);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return oe(k);case 238:if(e.isFunctionBlock(k))return w(k);case 265:return re(k);case 295:return re(k.block);case 241:return E(k.expression);case 250:return E(k.getChildAt(0),k.expression);case 244:return v(k,k.expression);case 243:return ce(k.statement);case 256:return E(k.getChildAt(0));case 242:return v(k,k.expression);case 253:return ce(k.statement);case 249:case 248:return E(k.getChildAt(0),k.label);case 245:return U(k);case 246:return v(k,k.expression);case 247:return M(k);case 252:return v(k,k.expression);case 292:case 293:return ce(k.statements[0]);case 255:return re(k.tryBlock);case 254:return E(k,k.expression);case 274:return E(k,k.expression);case 268:return E(k,k.moduleReference);case 269:return E(k,k.moduleSpecifier);case 275:return E(k,k.moduleSpecifier);case 264:if(e.getModuleInstanceState(k)!==1)return;case 260:case 263:case 302:case 205:return E(k);case 251:return ce(k.statement);case 167:return te(X.modifiers,k,e.isDecorator);case 203:case 204:return H(k);case 261:case 262:return;case 26:case 1:return S(e.findPrecedingToken(k.pos,T));case 27:return Y(k);case 18:return R(k);case 19:return K(k);case 23:return I(k);case 20:return he(k);case 21:return le(k);case 58:return ee(k);case 31:case 29:return J(k);case 115:return de(k);case 91:case 83:case 96:return Z(k);case 162:return De(k);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(k))return q(k);if((k.kind===79||k.kind===227||k.kind===299||k.kind===300)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(X))return E(k);if(k.kind===223){var A=k,y=A.left,C=A.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(y))return q(y);if(C.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(k.parent))return E(k);if(C.kind===27)return ce(y)}if(e.isExpressionNode(k))switch(X.kind){case 243:return Y(k);case 167:return ce(k.parent);case 245:case 247:return E(k);case 223:if(k.parent.operatorToken.kind===27)return E(k);break;case 216:if(k.parent.body===k)return E(k);break}switch(k.parent.kind){case 299:if(k.parent.name===k&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(k.parent.parent))return ce(k.parent.initializer);break;case 213:if(k.parent.type===k)return Z(k.parent.type);break;case 257:case 166:{var B=k.parent,F=B.initializer,z=B.type;if(F===k||z===k||e.isAssignmentOperator(k.kind))return Y(k);break}case 223:{var y=k.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(y)&&k!==y)return Y(k);break}default:if(e.isFunctionLike(k.parent)&&k.parent.type===k)return Y(k)}return ce(k.parent)}}function ge(N){return e.isVariableDeclarationList(N.parent)&&N.parent.declarations[0]===N?E(e.findPrecedingToken(N.pos,T,N.parent),N):E(N)}function Pe(N){if(N.parent.parent.kind===246)return ce(N.parent.parent);var b=N.parent;if(e.isBindingPattern(N.name))return H(N.name);if(e.hasOnlyExpressionInitializer(N)&&N.initializer||e.hasSyntacticModifier(N,1)||b.parent.kind===247)return ge(N);if(e.isVariableDeclarationList(N.parent)&&N.parent.declarations[0]!==N)return ce(e.findPrecedingToken(N.pos,T,N.parent))}function fe(N){return!!N.initializer||N.dotDotDotToken!==void 0||e.hasSyntacticModifier(N,12)}function _e(N){if(e.isBindingPattern(N.name))return H(N.name);if(fe(N))return E(N);var b=N.parent,Q=b.parameters.indexOf(N);return e.Debug.assert(Q!==-1),Q!==0?_e(b.parameters[Q-1]):ce(b.body)}function ne(N){return e.hasSyntacticModifier(N,1)||N.parent.kind===260&&N.kind!==173}function oe(N){if(N.body)return ne(N)?E(N):ce(N.body)}function w(N){var b=N.statements.length?N.statements[0]:N.getLastToken();return ne(N.parent)?S(N.parent,b):ce(b)}function re(N){switch(N.parent.kind){case 264:if(e.getModuleInstanceState(N.parent)!==1)return;case 244:case 242:case 246:return S(N.parent,N.statements[0]);case 245:case 247:return S(e.findPrecedingToken(N.pos,T,N.parent),N.statements[0])}return ce(N.statements[0])}function M(N){if(N.initializer.kind===258){var b=N.initializer;if(b.declarations.length>0)return ce(b.declarations[0])}else return ce(N.initializer)}function U(N){if(N.initializer)return M(N);if(N.condition)return E(N.condition);if(N.incrementor)return E(N.incrementor)}function H(N){var b=e.forEach(N.elements,function(Q){return Q.kind!==229?Q:void 0});return b?ce(b):N.parent.kind===205?E(N.parent):ge(N.parent)}function q(N){e.Debug.assert(N.kind!==204&&N.kind!==203);var b=N.kind===206?N.elements:N.properties,Q=e.forEach(b,function(G){return G.kind!==229?G:void 0});return Q?ce(Q):E(N.parent.kind===223?N.parent:N)}function R(N){switch(N.parent.kind){case 263:var b=N.parent;return S(e.findPrecedingToken(N.pos,T,N.parent),b.members.length?b.members[0]:b.getLastToken(T));case 260:var Q=N.parent;return S(e.findPrecedingToken(N.pos,T,N.parent),Q.members.length?Q.members[0]:Q.getLastToken(T));case 266:return S(N.parent.parent,N.parent.clauses[0])}return ce(N.parent)}function K(N){switch(N.parent.kind){case 265:if(e.getModuleInstanceState(N.parent.parent)!==1)return;case 263:case 260:return E(N);case 238:if(e.isFunctionBlock(N.parent))return E(N);case 295:return ce(e.lastOrUndefined(N.parent.statements));case 266:var b=N.parent,Q=e.lastOrUndefined(b.clauses);return Q?ce(e.lastOrUndefined(Q.statements)):void 0;case 203:var G=N.parent;return ce(e.lastOrUndefined(G.elements)||G);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(N.parent)){var ae=N.parent;return E(e.lastOrUndefined(ae.properties)||ae)}return ce(N.parent)}}function I(N){switch(N.parent.kind){case 204:var b=N.parent;return E(e.lastOrUndefined(b.elements)||b);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(N.parent)){var Q=N.parent;return E(e.lastOrUndefined(Q.elements)||Q)}return ce(N.parent)}}function he(N){return N.parent.kind===243||N.parent.kind===210||N.parent.kind===211?Y(N):N.parent.kind===214?Z(N):ce(N.parent)}function le(N){switch(N.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return Y(N);default:return ce(N.parent)}}function ee(N){return e.isFunctionLike(N.parent)||N.parent.kind===299||N.parent.kind===166?Y(N):ce(N.parent)}function J(N){return N.parent.kind===213?Z(N):ce(N.parent)}function de(N){return N.parent.kind===243?v(N,N.parent.expression):ce(N.parent)}function De(N){return N.parent.kind===247?Z(N):ce(N.parent)}}}c.spanInSourceFileAtLocation=P})(e.BreakpointResolver||(e.BreakpointResolver={}))})(h||(h={}));var h;(function(e){function c(P,T,s){var D=[];s=e.fixupCompilerOptions(s,D);var O=e.isArray(P)?P:[P],W=e.transformNodes(void 0,void 0,e.factory,s,O,T,!0);return W.diagnostics=e.concatenate(W.diagnostics,D),W}e.transform=c})(h||(h={}));var $=function(){return this}(),h;(function(e){function c(X,A){X&&X.log("*INTERNAL ERROR* - Exception in typescript services: "+A.message)}var P=function(){function X(A){this.scriptSnapshotShim=A}return X.prototype.getText=function(A,y){return this.scriptSnapshotShim.getText(A,y)},X.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},X.prototype.getChangeRange=function(A){var y=A,C=this.scriptSnapshotShim.getChangeRange(y.scriptSnapshotShim);if(C===null)return null;var B=JSON.parse(C);return e.createTextChangeRange(e.createTextSpan(B.span.start,B.span.length),B.newLength)},X.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},X}(),T=function(){function X(A){var y=this;this.shimHost=A,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(C,B){var F=JSON.parse(y.shimHost.getModuleResolutionsForFile(B));return e.map(C,function(z){var ge=e.getProperty(F,z);return ge?{resolvedFileName:ge,extension:e.extensionFromPath(ge),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(C){return y.shimHost.directoryExists(C)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(C,B){var F=JSON.parse(y.shimHost.getTypeReferenceDirectiveResolutionsForFile(B));return e.map(C,function(z){return e.getProperty(F,e.isString(z)?z:z.fileName.toLowerCase())})})}return X.prototype.log=function(A){this.loggingEnabled&&this.shimHost.log(A)},X.prototype.trace=function(A){this.tracingEnabled&&this.shimHost.trace(A)},X.prototype.error=function(A){this.shimHost.error(A)},X.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},X.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},X.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},X.prototype.getCompilationSettings=function(){var A=this.shimHost.getCompilationSettings();if(A===null||A==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var y=JSON.parse(A);return y.allowNonTsExtensions=!0,y},X.prototype.getScriptFileNames=function(){var A=this.shimHost.getScriptFileNames();return JSON.parse(A)},X.prototype.getScriptSnapshot=function(A){var y=this.shimHost.getScriptSnapshot(A);return y&&new P(y)},X.prototype.getScriptKind=function(A){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(A):0},X.prototype.getScriptVersion=function(A){return this.shimHost.getScriptVersion(A)},X.prototype.getLocalizedDiagnosticMessages=function(){var A=this.shimHost.getLocalizedDiagnosticMessages();if(A===null||A==="")return null;try{return JSON.parse(A)}catch(y){return this.log(y.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},X.prototype.getCancellationToken=function(){var A=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(A)},X.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},X.prototype.getDirectories=function(A){return JSON.parse(this.shimHost.getDirectories(A))},X.prototype.getDefaultLibFileName=function(A){return this.shimHost.getDefaultLibFileName(JSON.stringify(A))},X.prototype.readDirectory=function(A,y,C,B,F){var z=e.getFileMatcherPatterns(A,C,B,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(A,JSON.stringify(y),JSON.stringify(z.basePaths),z.excludePattern,z.includeFilePattern,z.includeDirectoryPattern,F))},X.prototype.readFile=function(A,y){return this.shimHost.readFile(A,y)},X.prototype.fileExists=function(A){return this.shimHost.fileExists(A)},X}();e.LanguageServiceShimHostAdapter=T;var s=function(){function X(A){var y=this;this.shimHost=A,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(C){return y.shimHost.directoryExists(C)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(C){return y.shimHost.realpath(C)}:this.realpath=void 0}return X.prototype.readDirectory=function(A,y,C,B,F){var z=e.getFileMatcherPatterns(A,C,B,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(A,JSON.stringify(y),JSON.stringify(z.basePaths),z.excludePattern,z.includeFilePattern,z.includeDirectoryPattern,F))},X.prototype.fileExists=function(A){return this.shimHost.fileExists(A)},X.prototype.readFile=function(A){return this.shimHost.readFile(A)},X.prototype.getDirectories=function(A){return JSON.parse(this.shimHost.getDirectories(A))},X}();e.CoreServicesShimHostAdapter=s;function D(X,A,y,C){var B;C&&(X.log(A),B=e.timestamp());var F=y();if(C){var z=e.timestamp();if(X.log("".concat(A," completed in ").concat(z-B," msec")),e.isString(F)){var ge=F;ge.length>128&&(ge=ge.substring(0,128)+"..."),X.log(" result.length=".concat(ge.length,", result='").concat(JSON.stringify(ge),"'"))}}return F}function O(X,A,y,C){return W(X,A,!0,y,C)}function W(X,A,y,C,B){try{var F=D(X,A,C,B);return y?JSON.stringify({result:F}):F}catch(z){return z instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(c(X,z),z.description=A,JSON.stringify({error:z}))}}var E=function(){function X(A){this.factory=A,A.registerShim(this)}return X.prototype.dispose=function(A){this.factory.unregisterShim(this)},X}();function v(X,A){return X.map(function(y){return S(y,A)})}e.realizeDiagnostics=v;function S(X,A){return{message:e.flattenDiagnosticMessageText(X.messageText,A),start:X.start,length:X.length,category:e.diagnosticCategoryName(X),code:X.code,reportsUnnecessary:X.reportsUnnecessary,reportsDeprecated:X.reportsDeprecated}}var te=function(X){m(A,X);function A(y,C,B){var F=X.call(this,y)||this;return F.host=C,F.languageService=B,F.logPerformance=!1,F.logger=F.host,F}return A.prototype.forwardJSONCall=function(y,C){return O(this.logger,y,C,this.logPerformance)},A.prototype.dispose=function(y){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,$&&$.CollectGarbage&&($.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,X.prototype.dispose.call(this,y)},A.prototype.refresh=function(y){this.forwardJSONCall("refresh(".concat(y,")"),function(){return null})},A.prototype.cleanupSemanticCache=function(){var y=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return y.languageService.cleanupSemanticCache(),null})},A.prototype.realizeDiagnostics=function(y){var C=e.getNewLineOrDefaultFromHost(this.host);return v(y,C)},A.prototype.getSyntacticClassifications=function(y,C,B){var F=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){return F.languageService.getSyntacticClassifications(y,e.createTextSpan(C,B))})},A.prototype.getSemanticClassifications=function(y,C,B){var F=this;return this.forwardJSONCall("getSemanticClassifications('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){return F.languageService.getSemanticClassifications(y,e.createTextSpan(C,B))})},A.prototype.getEncodedSyntacticClassifications=function(y,C,B){var F=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){return Y(F.languageService.getEncodedSyntacticClassifications(y,e.createTextSpan(C,B)))})},A.prototype.getEncodedSemanticClassifications=function(y,C,B){var F=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){return Y(F.languageService.getEncodedSemanticClassifications(y,e.createTextSpan(C,B)))})},A.prototype.getSyntacticDiagnostics=function(y){var C=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(y,"')"),function(){var B=C.languageService.getSyntacticDiagnostics(y);return C.realizeDiagnostics(B)})},A.prototype.getSemanticDiagnostics=function(y){var C=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(y,"')"),function(){var B=C.languageService.getSemanticDiagnostics(y);return C.realizeDiagnostics(B)})},A.prototype.getSuggestionDiagnostics=function(y){var C=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(y,"')"),function(){return C.realizeDiagnostics(C.languageService.getSuggestionDiagnostics(y))})},A.prototype.getCompilerOptionsDiagnostics=function(){var y=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var C=y.languageService.getCompilerOptionsDiagnostics();return y.realizeDiagnostics(C)})},A.prototype.getQuickInfoAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getQuickInfoAtPosition(y,C)})},A.prototype.getNameOrDottedNameSpan=function(y,C,B){var F=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){return F.languageService.getNameOrDottedNameSpan(y,C,B)})},A.prototype.getBreakpointStatementAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getBreakpointStatementAtPosition(y,C)})},A.prototype.getSignatureHelpItems=function(y,C,B){var F=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(y,"', ").concat(C,")"),function(){return F.languageService.getSignatureHelpItems(y,C,B)})},A.prototype.getDefinitionAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getDefinitionAtPosition(y,C)})},A.prototype.getDefinitionAndBoundSpan=function(y,C){var B=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getDefinitionAndBoundSpan(y,C)})},A.prototype.getTypeDefinitionAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getTypeDefinitionAtPosition(y,C)})},A.prototype.getImplementationAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getImplementationAtPosition(y,C)})},A.prototype.getRenameInfo=function(y,C,B){var F=this;return this.forwardJSONCall("getRenameInfo('".concat(y,"', ").concat(C,")"),function(){return F.languageService.getRenameInfo(y,C,B)})},A.prototype.getSmartSelectionRange=function(y,C){var B=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getSmartSelectionRange(y,C)})},A.prototype.findRenameLocations=function(y,C,B,F,z){var ge=this;return this.forwardJSONCall("findRenameLocations('".concat(y,"', ").concat(C,", ").concat(B,", ").concat(F,", ").concat(z,")"),function(){return ge.languageService.findRenameLocations(y,C,B,F,z)})},A.prototype.getBraceMatchingAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getBraceMatchingAtPosition(y,C)})},A.prototype.isValidBraceCompletionAtPosition=function(y,C,B){var F=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){return F.languageService.isValidBraceCompletionAtPosition(y,C,B)})},A.prototype.getSpanOfEnclosingComment=function(y,C,B){var F=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(y,"', ").concat(C,")"),function(){return F.languageService.getSpanOfEnclosingComment(y,C,B)})},A.prototype.getIndentationAtPosition=function(y,C,B){var F=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(y,"', ").concat(C,")"),function(){var z=JSON.parse(B);return F.languageService.getIndentationAtPosition(y,C,z)})},A.prototype.getReferencesAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getReferencesAtPosition(y,C)})},A.prototype.findReferences=function(y,C){var B=this;return this.forwardJSONCall("findReferences('".concat(y,"', ").concat(C,")"),function(){return B.languageService.findReferences(y,C)})},A.prototype.getFileReferences=function(y){var C=this;return this.forwardJSONCall("getFileReferences('".concat(y,")"),function(){return C.languageService.getFileReferences(y)})},A.prototype.getOccurrencesAtPosition=function(y,C){var B=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(y,"', ").concat(C,")"),function(){return B.languageService.getOccurrencesAtPosition(y,C)})},A.prototype.getDocumentHighlights=function(y,C,B){var F=this;return this.forwardJSONCall("getDocumentHighlights('".concat(y,"', ").concat(C,")"),function(){var z=F.languageService.getDocumentHighlights(y,C,JSON.parse(B)),ge=e.toFileNameLowerCase(e.normalizeSlashes(y));return e.filter(z,function(Pe){return e.toFileNameLowerCase(e.normalizeSlashes(Pe.fileName))===ge})})},A.prototype.getCompletionsAtPosition=function(y,C,B,F){var z=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(y,"', ").concat(C,", ").concat(B,", ").concat(F,")"),function(){return z.languageService.getCompletionsAtPosition(y,C,B,F)})},A.prototype.getCompletionEntryDetails=function(y,C,B,F,z,ge,Pe){var fe=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(y,"', ").concat(C,", '").concat(B,"')"),function(){var _e=F===void 0?void 0:JSON.parse(F);return fe.languageService.getCompletionEntryDetails(y,C,B,_e,z,ge,Pe)})},A.prototype.getFormattingEditsForRange=function(y,C,B,F){var z=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){var ge=JSON.parse(F);return z.languageService.getFormattingEditsForRange(y,C,B,ge)})},A.prototype.getFormattingEditsForDocument=function(y,C){var B=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(y,"')"),function(){var F=JSON.parse(C);return B.languageService.getFormattingEditsForDocument(y,F)})},A.prototype.getFormattingEditsAfterKeystroke=function(y,C,B,F){var z=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(y,"', ").concat(C,", '").concat(B,"')"),function(){var ge=JSON.parse(F);return z.languageService.getFormattingEditsAfterKeystroke(y,C,B,ge)})},A.prototype.getDocCommentTemplateAtPosition=function(y,C,B){var F=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(y,"', ").concat(C,")"),function(){return F.languageService.getDocCommentTemplateAtPosition(y,C,B)})},A.prototype.getNavigateToItems=function(y,C,B){var F=this;return this.forwardJSONCall("getNavigateToItems('".concat(y,"', ").concat(C,", ").concat(B,")"),function(){return F.languageService.getNavigateToItems(y,C,B)})},A.prototype.getNavigationBarItems=function(y){var C=this;return this.forwardJSONCall("getNavigationBarItems('".concat(y,"')"),function(){return C.languageService.getNavigationBarItems(y)})},A.prototype.getNavigationTree=function(y){var C=this;return this.forwardJSONCall("getNavigationTree('".concat(y,"')"),function(){return C.languageService.getNavigationTree(y)})},A.prototype.getOutliningSpans=function(y){var C=this;return this.forwardJSONCall("getOutliningSpans('".concat(y,"')"),function(){return C.languageService.getOutliningSpans(y)})},A.prototype.getTodoComments=function(y,C){var B=this;return this.forwardJSONCall("getTodoComments('".concat(y,"')"),function(){return B.languageService.getTodoComments(y,JSON.parse(C))})},A.prototype.prepareCallHierarchy=function(y,C){var B=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(y,"', ").concat(C,")"),function(){return B.languageService.prepareCallHierarchy(y,C)})},A.prototype.provideCallHierarchyIncomingCalls=function(y,C){var B=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(y,"', ").concat(C,")"),function(){return B.languageService.provideCallHierarchyIncomingCalls(y,C)})},A.prototype.provideCallHierarchyOutgoingCalls=function(y,C){var B=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(y,"', ").concat(C,")"),function(){return B.languageService.provideCallHierarchyOutgoingCalls(y,C)})},A.prototype.provideInlayHints=function(y,C,B){var F=this;return this.forwardJSONCall("provideInlayHints('".concat(y,"', '").concat(JSON.stringify(C),"', ").concat(JSON.stringify(B),")"),function(){return F.languageService.provideInlayHints(y,C,B)})},A.prototype.getEmitOutput=function(y){var C=this;return this.forwardJSONCall("getEmitOutput('".concat(y,"')"),function(){var B=C.languageService.getEmitOutput(y),F=B.diagnostics,z=d(B,["diagnostics"]);return n(n({},z),{diagnostics:C.realizeDiagnostics(F)})})},A.prototype.getEmitOutputObject=function(y){var C=this;return W(this.logger,"getEmitOutput('".concat(y,"')"),!1,function(){return C.languageService.getEmitOutput(y)},this.logPerformance)},A.prototype.toggleLineComment=function(y,C){var B=this;return this.forwardJSONCall("toggleLineComment('".concat(y,"', '").concat(JSON.stringify(C),"')"),function(){return B.languageService.toggleLineComment(y,C)})},A.prototype.toggleMultilineComment=function(y,C){var B=this;return this.forwardJSONCall("toggleMultilineComment('".concat(y,"', '").concat(JSON.stringify(C),"')"),function(){return B.languageService.toggleMultilineComment(y,C)})},A.prototype.commentSelection=function(y,C){var B=this;return this.forwardJSONCall("commentSelection('".concat(y,"', '").concat(JSON.stringify(C),"')"),function(){return B.languageService.commentSelection(y,C)})},A.prototype.uncommentSelection=function(y,C){var B=this;return this.forwardJSONCall("uncommentSelection('".concat(y,"', '").concat(JSON.stringify(C),"')"),function(){return B.languageService.uncommentSelection(y,C)})},A}(E);function Y(X){return{spans:X.spans.join(","),endOfLineState:X.endOfLineState}}var Z=function(X){m(A,X);function A(y,C){var B=X.call(this,y)||this;return B.logger=C,B.logPerformance=!1,B.classifier=e.createClassifier(),B}return A.prototype.getEncodedLexicalClassifications=function(y,C,B){var F=this;return B===void 0&&(B=!1),O(this.logger,"getEncodedLexicalClassifications",function(){return Y(F.classifier.getEncodedLexicalClassifications(y,C,B))},this.logPerformance)},A.prototype.getClassificationsForLine=function(y,C,B){B===void 0&&(B=!1);for(var F=this.classifier.getClassificationsForLine(y,C,B),z="",ge=0,Pe=F.entries;ge<Pe.length;ge++){var fe=Pe[ge];z+=fe.length+`
`,z+=fe.classification+`
`}return z+=F.finalLexState,z},A}(E),ce=function(X){m(A,X);function A(y,C,B){var F=X.call(this,y)||this;return F.logger=C,F.host=B,F.logPerformance=!1,F}return A.prototype.forwardJSONCall=function(y,C){return O(this.logger,y,C,this.logPerformance)},A.prototype.resolveModuleName=function(y,C,B){var F=this;return this.forwardJSONCall("resolveModuleName('".concat(y,"')"),function(){var z=JSON.parse(B),ge=e.resolveModuleName(C,e.normalizeSlashes(y),z,F.host),Pe=ge.resolvedModule?ge.resolvedModule.resolvedFileName:void 0;return ge.resolvedModule&&ge.resolvedModule.extension!==".ts"&&ge.resolvedModule.extension!==".tsx"&&ge.resolvedModule.extension!==".d.ts"&&(Pe=void 0),{resolvedFileName:Pe,failedLookupLocations:ge.failedLookupLocations,affectingLocations:ge.affectingLocations}})},A.prototype.resolveTypeReferenceDirective=function(y,C,B){var F=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(y,")"),function(){var z=JSON.parse(B),ge=e.resolveTypeReferenceDirective(C,e.normalizeSlashes(y),z,F.host);return{resolvedFileName:ge.resolvedTypeReferenceDirective?ge.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:ge.resolvedTypeReferenceDirective?ge.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:ge.failedLookupLocations}})},A.prototype.getPreProcessedFileInfo=function(y,C){var B=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(y,"')"),function(){var F=e.preProcessFile(e.getSnapshotText(C),!0,!0);return{referencedFiles:B.convertFileReferences(F.referencedFiles),importedFiles:B.convertFileReferences(F.importedFiles),ambientExternalModules:F.ambientExternalModules,isLibFile:F.isLibFile,typeReferenceDirectives:B.convertFileReferences(F.typeReferenceDirectives),libReferenceDirectives:B.convertFileReferences(F.libReferenceDirectives)}})},A.prototype.getAutomaticTypeDirectiveNames=function(y){var C=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(y,"')"),function(){var B=JSON.parse(y);return e.getAutomaticTypeDirectiveNames(B,C.host)})},A.prototype.convertFileReferences=function(y){if(y){for(var C=[],B=0,F=y;B<F.length;B++){var z=F[B];C.push({path:e.normalizeSlashes(z.fileName),position:z.pos,length:z.end-z.pos})}return C}},A.prototype.getTSConfigFileInfo=function(y,C){var B=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(y,"')"),function(){var F=e.parseJsonText(y,e.getSnapshotText(C)),z=e.normalizeSlashes(y),ge=e.parseJsonSourceFileConfigFileContent(F,B.host,e.getDirectoryPath(z),{},z);return{options:ge.options,typeAcquisition:ge.typeAcquisition,files:ge.fileNames,raw:ge.raw,errors:v(t(t([],F.parseDiagnostics,!0),ge.errors,!0),`\r
`)}})},A.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},A.prototype.discoverTypings=function(y){var C=this,B=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var F=JSON.parse(y);return C.safeList===void 0&&(C.safeList=e.JsTyping.loadSafeList(C.host,e.toPath(F.safeListPath,F.safeListPath,B))),e.JsTyping.discoverTypings(C.host,function(z){return C.logger.log(z)},F.fileNames,e.toPath(F.projectRootPath,F.projectRootPath,B),C.safeList,F.packageNameToTypingLocation,F.typeAcquisition,F.unresolvedImports,F.typesRegistry,e.emptyOptions)})},A}(E),k=function(){function X(){this._shims=[]}return X.prototype.getServicesVersion=function(){return e.servicesVersion},X.prototype.createLanguageServiceShim=function(A){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(A.useCaseSensitiveFileNames&&A.useCaseSensitiveFileNames(),A.getCurrentDirectory()));var y=new T(A),C=e.createLanguageService(y,this.documentRegistry,!1);return new te(this,A,C)}catch(B){throw c(A,B),B}},X.prototype.createClassifierShim=function(A){try{return new Z(this,A)}catch(y){throw c(A,y),y}},X.prototype.createCoreServicesShim=function(A){try{var y=new s(A);return new ce(this,A,y)}catch(C){throw c(A,C),C}},X.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},X.prototype.registerShim=function(A){this._shims.push(A)},X.prototype.unregisterShim=function(A){for(var y=0;y<this._shims.length;y++)if(this._shims[y]===A){delete this._shims[y];return}throw new Error("Invalid operation")},X}();e.TypeScriptServicesFactory=k})(h||(h={})),function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}}(),(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=h.TypeScriptServicesFactory,globalThis.toolsVersion=h.versionMajorMinor),i.exports&&(i.exports=h);var h;(function(e){function c(s,D,O,W){if(Object.defineProperty(Z,"name",n(n({},Object.getOwnPropertyDescriptor(Z,"name")),{value:s})),W)for(var E=0,v=Object.keys(W);E<v.length;E++){var S=v[E],te=+S;!isNaN(te)&&e.hasProperty(D,"".concat(te))&&(D[te]=e.Debug.deprecate(D[te],n(n({},W[te]),{name:s})))}var Y=P(D,O);return Z;function Z(){for(var ce=[],k=0;k<arguments.length;k++)ce[k]=arguments[k];var X=Y(ce),A=X!==void 0?D[X]:void 0;if(typeof A=="function")return A.apply(void 0,ce);throw new TypeError("Invalid arguments")}}e.createOverload=c;function P(s,D){return function(O){for(var W=0;e.hasProperty(s,"".concat(W))&&e.hasProperty(D,"".concat(W));W++){var E=D[W];if(E(O))return W}}}function T(s){return{overload:function(D){return{bind:function(O){return{finish:function(){return c(s,D,O)},deprecate:function(W){return{finish:function(){return c(s,D,O,W)}}}}}}}}}e.buildOverload=T})(h||(h={}));var h;(function(e){var c={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,c),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,c),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,c),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,c),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,c),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,c),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,c),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,c),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,c),e.createSuper=e.Debug.deprecate(e.factory.createSuper,c),e.createThis=e.Debug.deprecate(e.factory.createThis,c),e.createNull=e.Debug.deprecate(e.factory.createNull,c),e.createTrue=e.Debug.deprecate(e.factory.createTrue,c),e.createFalse=e.Debug.deprecate(e.factory.createFalse,c),e.createModifier=e.Debug.deprecate(e.factory.createModifier,c),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,c),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,c),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,c),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,c),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,c),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,c),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,c),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,c),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,c),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,c),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,c),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,c),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,c),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,c),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,c),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,c),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,c),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,c),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,c),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,c),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,c),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,c),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,c),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,c),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,c),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,c),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,c),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,c),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,c),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,c),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,c),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,c),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,c),e.createConstructorTypeNode=e.Debug.deprecate(function(P,T,s){return e.factory.createConstructorTypeNode(void 0,P,T,s)},c),e.updateConstructorTypeNode=e.Debug.deprecate(function(P,T,s,D){return e.factory.updateConstructorTypeNode(P,P.modifiers,T,s,D)},c),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,c),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,c),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,c),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,c),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,c),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,c),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,c),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,c),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,c),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,c),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,c),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,c),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,c),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,c),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,c),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,c),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,c),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,c),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,c),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,c),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,c),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,c),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,c),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,c),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,c),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,c),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,c),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,c),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,c),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,c),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,c),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,c),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,c),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,c),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,c),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,c),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,c),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,c),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,c),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,c),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,c),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,c),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,c),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,c),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,c),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,c),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,c),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,c),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,c),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,c),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,c),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,c),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,c),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,c),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,c),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,c),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,c),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,c),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,c),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,c),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,c),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,c),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,c),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,c),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,c),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,c),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,c),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,c),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,c),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,c),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,c),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,c),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,c),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,c),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,c),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,c),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,c),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,c),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,c),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,c),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,c),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,c),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,c),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,c),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,c),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,c),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,c),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,c),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,c),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,c),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,c),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,c),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,c),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,c),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,c),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,c),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,c),e.createBlock=e.Debug.deprecate(e.factory.createBlock,c),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,c),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,c),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,c),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,c),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,c),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,c),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,c),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,c),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,c),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,c),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,c),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,c),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,c),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,c),e.createFor=e.Debug.deprecate(e.factory.createForStatement,c),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,c),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,c),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,c),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,c),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,c),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,c),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,c),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,c),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,c),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,c),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,c),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,c),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,c),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,c),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,c),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,c),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,c),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,c),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,c),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,c),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,c),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,c),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,c),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,c),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,c),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,c),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,c),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,c),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,c),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,c),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,c),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,c),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,c),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,c),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,c),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,c),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,c),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,c),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,c),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,c),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,c),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,c),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,c),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,c),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,c),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,c),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,c),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,c),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,c),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,c),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,c),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,c),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,c),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,c),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,c),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,c),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,c),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,c),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,c),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,c),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,c),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,c),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,c),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,c),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,c),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,c),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,c),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,c),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,c),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,c),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,c),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,c),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,c),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,c),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,c),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,c),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,c),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,c),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,c),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,c),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,c),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,c),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,c),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,c),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,c),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,c),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,c),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,c),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,c),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,c),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,c),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,c),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,c),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,c),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,c),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,c),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,c),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,c),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,c),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,c),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,c),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,c),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,c),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,c),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,c),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,c),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,c),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,c),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,c),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,c),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,c),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,c),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,c),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,c),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,c),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,c),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,c),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,c),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,c),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,c),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,c),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,c),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,c),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,c),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,c),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,c),e.createBundle=e.Debug.deprecate(e.factory.createBundle,c),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,c),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,c),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,c),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,c),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,c),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,c),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,c),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,c),e.createToken=e.Debug.deprecate(function(T){return e.factory.createToken(T)},c),e.createIdentifier=e.Debug.deprecate(function(T){return e.factory.createIdentifier(T,void 0,void 0)},c),e.createTempVariable=e.Debug.deprecate(function(T){return e.factory.createTempVariable(T,void 0)},c),e.getGeneratedNameForNode=e.Debug.deprecate(function(T){return e.factory.getGeneratedNameForNode(T,void 0)},c),e.createOptimisticUniqueName=e.Debug.deprecate(function(T){return e.factory.createUniqueName(T,16)},c),e.createFileLevelUniqueName=e.Debug.deprecate(function(T){return e.factory.createUniqueName(T,48)},c),e.createIndexSignature=e.Debug.deprecate(function(T,s,D,O){return e.factory.createIndexSignature(T,s,D,O)},c),e.createTypePredicateNode=e.Debug.deprecate(function(T,s){return e.factory.createTypePredicateNode(void 0,T,s)},c),e.updateTypePredicateNode=e.Debug.deprecate(function(T,s,D){return e.factory.updateTypePredicateNode(T,void 0,s,D)},c),e.createLiteral=e.Debug.deprecate(function(T){return typeof T=="number"?e.factory.createNumericLiteral(T):typeof T=="object"&&"base10Value"in T?e.factory.createBigIntLiteral(T):typeof T=="boolean"?T?e.factory.createTrue():e.factory.createFalse():typeof T=="string"?e.factory.createStringLiteral(T,void 0):e.factory.createStringLiteralFromNode(T)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(T,s,D,O,W){return e.factory.createMethodSignature(void 0,O,W,T,s,D)},c),e.updateMethodSignature=e.Debug.deprecate(function(T,s,D,O,W,E){return e.factory.updateMethodSignature(T,T.modifiers,W,E,s,D,O)},c),e.createTypeOperatorNode=e.Debug.deprecate(function(T,s){var D;return s?D=T:(s=T,D=141),e.factory.createTypeOperatorNode(D,s)},c),e.createTaggedTemplate=e.Debug.deprecate(function(T,s,D){var O;return D?O=s:D=s,e.factory.createTaggedTemplateExpression(T,O,D)},c),e.updateTaggedTemplate=e.Debug.deprecate(function(T,s,D,O){var W;return O?W=D:O=D,e.factory.updateTaggedTemplateExpression(T,s,W,O)},c),e.updateBinary=e.Debug.deprecate(function(T,s,D,O){return O===void 0&&(O=T.operatorToken),typeof O=="number"&&(O=O===T.operatorToken.kind?T.operatorToken:e.factory.createToken(O)),e.factory.updateBinaryExpression(T,s,O,D)},c),e.createConditional=e.Debug.deprecate(function(T,s,D,O,W){return arguments.length===5?e.factory.createConditionalExpression(T,s,D,O,W):arguments.length===3?e.factory.createConditionalExpression(T,e.factory.createToken(57),s,e.factory.createToken(58),D):e.Debug.fail("Argument count mismatch")},c),e.createYield=e.Debug.deprecate(function(T,s){var D;return s?D=T:s=T,e.factory.createYieldExpression(D,s)},c),e.createClassExpression=e.Debug.deprecate(function(T,s,D,O,W){return e.factory.createClassExpression(void 0,T,s,D,O,W)},c),e.updateClassExpression=e.Debug.deprecate(function(T,s,D,O,W,E){return e.factory.updateClassExpression(T,void 0,s,D,O,W,E)},c),e.createPropertySignature=e.Debug.deprecate(function(T,s,D,O,W){var E=e.factory.createPropertySignature(T,s,D,O);return E.initializer=W,E},c),e.updatePropertySignature=e.Debug.deprecate(function(T,s,D,O,W,E){var v=e.factory.updatePropertySignature(T,s,D,O,W);return T.initializer!==E&&(v===T&&(v=e.factory.cloneNode(T)),v.initializer=E),v},c),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(T,s){return e.factory.createExpressionWithTypeArguments(s,T)},c),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(T,s,D){return e.factory.updateExpressionWithTypeArguments(T,D,s)},c),e.createArrowFunction=e.Debug.deprecate(function(T,s,D,O,W,E){return arguments.length===6?e.factory.createArrowFunction(T,s,D,O,W,E):arguments.length===5?e.factory.createArrowFunction(T,s,D,O,void 0,W):e.Debug.fail("Argument count mismatch")},c),e.updateArrowFunction=e.Debug.deprecate(function(T,s,D,O,W,E,v){return arguments.length===7?e.factory.updateArrowFunction(T,s,D,O,W,E,v):arguments.length===6?e.factory.updateArrowFunction(T,s,D,O,W,T.equalsGreaterThanToken,E):e.Debug.fail("Argument count mismatch")},c),e.createVariableDeclaration=e.Debug.deprecate(function(T,s,D,O){return arguments.length===4?e.factory.createVariableDeclaration(T,s,D,O):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(T,void 0,s,D):e.Debug.fail("Argument count mismatch")},c),e.updateVariableDeclaration=e.Debug.deprecate(function(T,s,D,O,W){return arguments.length===5?e.factory.updateVariableDeclaration(T,s,D,O,W):arguments.length===4?e.factory.updateVariableDeclaration(T,s,T.exclamationToken,D,O):e.Debug.fail("Argument count mismatch")},c),e.createImportClause=e.Debug.deprecate(function(T,s,D){return D===void 0&&(D=!1),e.factory.createImportClause(D,T,s)},c),e.updateImportClause=e.Debug.deprecate(function(T,s,D,O){return e.factory.updateImportClause(T,O,s,D)},c),e.createExportDeclaration=e.Debug.deprecate(function(T,s,D,O,W){return W===void 0&&(W=!1),e.factory.createExportDeclaration(T,s,W,D,O)},c),e.updateExportDeclaration=e.Debug.deprecate(function(T,s,D,O,W,E){return e.factory.updateExportDeclaration(T,s,D,E,O,W,T.assertClause)},c),e.createJSDocParamTag=e.Debug.deprecate(function(T,s,D,O){return e.factory.createJSDocParameterTag(void 0,T,s,D,!1,O?e.factory.createNodeArray([e.factory.createJSDocText(O)]):void 0)},c),e.createComma=e.Debug.deprecate(function(T,s){return e.factory.createComma(T,s)},c),e.createLessThan=e.Debug.deprecate(function(T,s){return e.factory.createLessThan(T,s)},c),e.createAssignment=e.Debug.deprecate(function(T,s){return e.factory.createAssignment(T,s)},c),e.createStrictEquality=e.Debug.deprecate(function(T,s){return e.factory.createStrictEquality(T,s)},c),e.createStrictInequality=e.Debug.deprecate(function(T,s){return e.factory.createStrictInequality(T,s)},c),e.createAdd=e.Debug.deprecate(function(T,s){return e.factory.createAdd(T,s)},c),e.createSubtract=e.Debug.deprecate(function(T,s){return e.factory.createSubtract(T,s)},c),e.createLogicalAnd=e.Debug.deprecate(function(T,s){return e.factory.createLogicalAnd(T,s)},c),e.createLogicalOr=e.Debug.deprecate(function(T,s){return e.factory.createLogicalOr(T,s)},c),e.createPostfixIncrement=e.Debug.deprecate(function(T){return e.factory.createPostfixIncrement(T)},c),e.createLogicalNot=e.Debug.deprecate(function(T){return e.factory.createLogicalNot(T)},c),e.createNode=e.Debug.deprecate(function(T,s,D){return s===void 0&&(s=0),D===void 0&&(D=0),e.setTextRangePosEnd(T===308?e.parseBaseNodeFactory.createBaseSourceFileNode(T):T===79?e.parseBaseNodeFactory.createBaseIdentifierNode(T):T===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(T):e.isNodeKind(T)?e.parseBaseNodeFactory.createBaseNode(T):e.parseBaseNodeFactory.createBaseTokenNode(T),s,D)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(T){var s=e.factory.cloneNode(T);return e.setTextRange(s,T),e.setParent(s,T.parent),s},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})})(h||(h={}));var h;(function(e){e.isTypeAssertion=e.Debug.deprecate(function(P){return P.kind===213},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})})(h||(h={}));var h;(function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(P){return e.isMemberName(P)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(h||(h={}));var h;(function(e){function c(T){var s=T.createConstructorTypeNode,D=T.updateConstructorTypeNode;T.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(O,W,E,v){return s(O,W,E,v)},1:function(O,W,E){return s(void 0,O,W,E)}}).bind({0:function(O){return O.length===4},1:function(O){return O.length===3}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),T.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(O,W,E,v,S){return D(O,W,E,v,S)},1:function(O,W,E,v){return D(O,O.modifiers,W,E,v)}}).bind({0:function(O){return O.length===5},1:function(O){return O.length===4}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var P=e.createNodeFactory;e.createNodeFactory=function(T,s){var D=P(T,s);return c(D),D},c(e.factory)})(h||(h={}));var h;(function(e){function c(T){var s=T.createImportTypeNode,D=T.updateImportTypeNode;T.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(O,W,E,v,S){return s(O,W,E,v,S)},1:function(O,W,E,v){return s(O,void 0,W,E,v)}}).bind({0:function(O){var W=O[1],E=O[2],v=O[3],S=O[4];return(W===void 0||e.isImportTypeAssertionContainer(W))&&(E===void 0||!e.isArray(E))&&(v===void 0||e.isArray(v))&&(S===void 0||typeof S=="boolean")},1:function(O){var W=O[1],E=O[2],v=O[3],S=O[4];return S===void 0&&(W===void 0||e.isEntityName(W))&&(E===void 0||e.isArray(E))&&(v===void 0||typeof v=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),T.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(O,W,E,v,S,te){return D(O,W,E,v,S,te)},1:function(O,W,E,v,S){return D(O,W,O.assertions,E,v,S)}}).bind({0:function(O){var W=O[2],E=O[3],v=O[4],S=O[5];return(W===void 0||e.isImportTypeAssertionContainer(W))&&(E===void 0||!e.isArray(E))&&(v===void 0||e.isArray(v))&&(S===void 0||typeof S=="boolean")},1:function(O){var W=O[2],E=O[3],v=O[4],S=O[5];return S===void 0&&(W===void 0||e.isEntityName(W))&&(E===void 0||e.isArray(E))&&(v===void 0||typeof v=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var P=e.createNodeFactory;e.createNodeFactory=function(T,s){var D=P(T,s);return c(D),D},c(e.factory)})(h||(h={}));var h;(function(e){function c(T){var s=T.createTypeParameterDeclaration,D=T.updateTypeParameterDeclaration;T.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(O,W,E,v){return s(O,W,E,v)},1:function(O,W,E){return s(void 0,O,W,E)}}).bind({0:function(O){var W=O[0];return W===void 0||e.isArray(W)},1:function(O){var W=O[0];return W!==void 0&&!e.isArray(W)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),T.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(O,W,E,v,S){return D(O,W,E,v,S)},1:function(O,W,E,v){return D(O,O.modifiers,W,E,v)}}).bind({0:function(O){var W=O[1];return W===void 0||e.isArray(W)},1:function(O){var W=O[1];return W!==void 0&&!e.isArray(W)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var P=e.createNodeFactory;e.createNodeFactory=function(T,s){var D=P(T,s);return c(D),D},c(e.factory)})(h||(h={}));var h;(function(e){var c={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},P={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},T={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function s(O){var W=O.createParameterDeclaration,E=O.updateParameterDeclaration,v=O.createPropertyDeclaration,S=O.updatePropertyDeclaration,te=O.createMethodDeclaration,Y=O.updateMethodDeclaration,Z=O.createConstructorDeclaration,ce=O.updateConstructorDeclaration,k=O.createGetAccessorDeclaration,X=O.updateGetAccessorDeclaration,A=O.createSetAccessorDeclaration,y=O.updateSetAccessorDeclaration,C=O.createIndexSignature,B=O.updateIndexSignature,F=O.createClassStaticBlockDeclaration,z=O.updateClassStaticBlockDeclaration,ge=O.createClassExpression,Pe=O.updateClassExpression,fe=O.createFunctionDeclaration,_e=O.updateFunctionDeclaration,ne=O.createClassDeclaration,oe=O.updateClassDeclaration,w=O.createInterfaceDeclaration,re=O.updateInterfaceDeclaration,M=O.createTypeAliasDeclaration,U=O.updateTypeAliasDeclaration,H=O.createEnumDeclaration,q=O.updateEnumDeclaration,R=O.createModuleDeclaration,K=O.updateModuleDeclaration,I=O.createImportEqualsDeclaration,he=O.updateImportEqualsDeclaration,le=O.createImportDeclaration,ee=O.updateImportDeclaration,J=O.createExportAssignment,de=O.updateExportAssignment,De=O.createExportDeclaration,N=O.updateExportDeclaration;O.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(b,Q,G,ae,Te,Ne){return W(b,Q,G,ae,Te,Ne)},1:function(b,Q,G,ae,Te,Ne,we){return W(e.concatenate(b,Q),G,ae,Te,Ne,we)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6];return we===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||typeof G=="string"||e.isBindingName(G))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(Te===void 0||e.isTypeNode(Te))&&(Ne===void 0||e.isExpression(Ne))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G=="object"&&e.isDotDotDotToken(G))&&(ae===void 0||typeof ae=="string"||e.isBindingName(ae))&&(Te===void 0||e.isQuestionToken(Te))&&(Ne===void 0||e.isTypeNode(Ne))&&(we===void 0||e.isExpression(we))}}).deprecate({1:c}).finish(),O.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(b,Q,G,ae,Te,Ne,we){return E(b,Q,G,ae,Te,Ne,we)},1:function(b,Q,G,ae,Te,Ne,we,nr){return E(b,e.concatenate(Q,G),ae,Te,Ne,we,nr)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6],we=b[7];return we===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||typeof G=="string"||e.isBindingName(G))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(Te===void 0||e.isTypeNode(Te))&&(Ne===void 0||e.isExpression(Ne))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6],we=b[7];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G=="object"&&e.isDotDotDotToken(G))&&(ae===void 0||typeof ae=="string"||e.isBindingName(ae))&&(Te===void 0||e.isQuestionToken(Te))&&(Ne===void 0||e.isTypeNode(Ne))&&(we===void 0||e.isExpression(we))}}).deprecate({1:c}).finish(),O.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(b,Q,G,ae,Te){return v(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return v(e.concatenate(b,Q),G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||typeof G=="object"&&e.isQuestionOrExclamationToken(G))&&(ae===void 0||e.isTypeNode(ae))&&(Te===void 0||e.isExpression(Te))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G=="string"||e.isPropertyName(G))&&(ae===void 0||e.isQuestionOrExclamationToken(ae))&&(Te===void 0||e.isTypeNode(Te))&&(Ne===void 0||e.isExpression(Ne))}}).deprecate({1:c}).finish(),O.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(b,Q,G,ae,Te,Ne){return S(b,Q,G,ae,Te,Ne)},1:function(b,Q,G,ae,Te,Ne,we){return S(b,e.concatenate(Q,G),ae,Te,Ne,we)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||typeof G=="object"&&e.isQuestionOrExclamationToken(G))&&(ae===void 0||e.isTypeNode(ae))&&(Te===void 0||e.isExpression(Te))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G=="string"||e.isPropertyName(G))&&(ae===void 0||e.isQuestionOrExclamationToken(ae))&&(Te===void 0||e.isTypeNode(Te))&&(Ne===void 0||e.isExpression(Ne))}}).deprecate({1:c}).finish(),O.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(b,Q,G,ae,Te,Ne,we,nr){return te(b,Q,G,ae,Te,Ne,we,nr)},1:function(b,Q,G,ae,Te,Ne,we,nr,tr){return te(e.concatenate(b,Q),G,ae,Te,Ne,we,nr,tr)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6],nr=b[7],tr=b[8];return tr===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||typeof G=="string"||e.isPropertyName(G))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(Te===void 0||e.isArray(Te))&&(Ne===void 0||!e.some(Ne,e.isTypeParameterDeclaration))&&(we===void 0||!e.isArray(we))&&(nr===void 0||e.isBlock(nr))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6],nr=b[7],tr=b[8];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G=="object"&&e.isAsteriskToken(G))&&(ae===void 0||typeof ae=="string"||e.isPropertyName(ae))&&(Te===void 0||!e.isArray(Te))&&(Ne===void 0||!e.some(Ne,e.isParameter))&&(we===void 0||e.isArray(we))&&(nr===void 0||e.isTypeNode(nr))&&(tr===void 0||e.isBlock(tr))}}).deprecate({1:c}).finish(),O.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(b,Q,G,ae,Te,Ne,we,nr,tr){return Y(b,Q,G,ae,Te,Ne,we,nr,tr)},1:function(b,Q,G,ae,Te,Ne,we,nr,tr,me){return Y(b,e.concatenate(Q,G),ae,Te,Ne,we,nr,tr,me)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6],we=b[7],nr=b[8],tr=b[9];return tr===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||typeof G=="string"||e.isPropertyName(G))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(Te===void 0||e.isArray(Te))&&(Ne===void 0||!e.some(Ne,e.isTypeParameterDeclaration))&&(we===void 0||!e.isArray(we))&&(nr===void 0||e.isBlock(nr))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6],we=b[7],nr=b[8],tr=b[9];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G=="object"&&e.isAsteriskToken(G))&&(ae===void 0||typeof ae=="string"||e.isPropertyName(ae))&&(Te===void 0||!e.isArray(Te))&&(Ne===void 0||!e.some(Ne,e.isParameter))&&(we===void 0||e.isArray(we))&&(nr===void 0||e.isTypeNode(nr))&&(tr===void 0||e.isBlock(tr))}}).deprecate({1:c}).finish(),O.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(b,Q,G){return Z(b,Q,G)},1:function(b,Q,G,ae){return Z(Q,G,ae)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return Te===void 0&&(Q===void 0||!e.some(Q,e.isDecorator))&&(G===void 0||!e.some(G,e.isModifier))&&(ae===void 0||!e.isArray(ae))},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return(Q===void 0||!e.some(Q,e.isModifier))&&(G===void 0||!e.some(G,e.isParameter))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isBlock(Te))}}).deprecate({1:P}).finish(),O.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(b,Q,G,ae){return ce(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return ce(b,G,ae,Te)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return Te===void 0&&(Q===void 0||!e.some(Q,e.isDecorator))&&(G===void 0||!e.some(G,e.isModifier))&&(ae===void 0||!e.isArray(ae))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return(Q===void 0||!e.some(Q,e.isModifier))&&(G===void 0||!e.some(G,e.isParameter))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isBlock(Te))}}).deprecate({1:P}).finish(),O.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(b,Q,G,ae,Te){return k(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return k(e.concatenate(b,Q),G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.isBlock(Te))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return(Q===void 0||e.isArray(Q))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isTypeNode(Te))&&(Ne===void 0||e.isBlock(Ne))}}).deprecate({1:c}).finish(),O.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(b,Q,G,ae,Te,Ne){return X(b,Q,G,ae,Te,Ne)},1:function(b,Q,G,ae,Te,Ne,we){return X(b,e.concatenate(Q,G),ae,Te,Ne,we)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.isBlock(Te))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return(Q===void 0||e.isArray(Q))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isTypeNode(Te))&&(Ne===void 0||e.isBlock(Ne))}}).deprecate({1:c}).finish(),O.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(b,Q,G,ae){return A(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return A(e.concatenate(b,Q),G,ae,Te)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return Te===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return(Q===void 0||e.isArray(Q))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isBlock(Te))}}).deprecate({1:c}).finish(),O.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(b,Q,G,ae,Te){return y(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return y(b,e.concatenate(Q,G),ae,Te,Ne)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5];return Te===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5];return(Q===void 0||e.isArray(Q))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isBlock(Te))}}).deprecate({1:c}).finish(),O.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(b,Q,G){return C(b,Q,G)},1:function(b,Q,G,ae){return C(Q,G,ae)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return Te===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||e.every(G,e.isParameter))&&(ae===void 0||!e.isArray(ae))},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.every(G,e.isModifier))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isTypeNode(Te))}}).deprecate({1:P}).finish(),O.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(b,Q,G,ae){return B(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return B(b,G,ae,Te)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return Te===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||e.every(G,e.isParameter))&&(ae===void 0||!e.isArray(ae))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.every(G,e.isModifier))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.isTypeNode(Te))}}).deprecate({1:P}).finish(),O.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(b){return F(b)},1:function(b,Q,G){return F(G)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2];return G===void 0&&ae===void 0&&(Q===void 0||!e.isArray(Q))},1:function(b){var Q=b[0],G=b[1],ae=b[2];return(Q===void 0||e.isArray(Q))&&(G===void 0||e.isArray(Q))&&(ae===void 0||e.isBlock(ae))}}).deprecate({1:T}).finish(),O.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(b,Q){return z(b,Q)},1:function(b,Q,G,ae){return z(b,ae)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3];return G===void 0&&ae===void 0&&(Q===void 0||!e.isArray(Q))},1:function(b){var Q=b[1],G=b[2],ae=b[3];return(Q===void 0||e.isArray(Q))&&(G===void 0||e.isArray(Q))&&(ae===void 0||e.isBlock(ae))}}).deprecate({1:T}).finish(),O.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(b,Q,G,ae,Te){return ge(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return ge(e.concatenate(b,Q),G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(Te===void 0||e.every(Te,e.isClassElement))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return(Q===void 0||e.isArray(Q))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(Te===void 0||e.every(Te,e.isHeritageClause))&&(Ne===void 0||e.isArray(Ne))}}).deprecate({1:P}).finish(),O.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(b,Q,G,ae,Te,Ne){return Pe(b,Q,G,ae,Te,Ne)},1:function(b,Q,G,ae,Te,Ne,we){return Pe(b,e.concatenate(Q,G),ae,Te,Ne,we)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(Te===void 0||e.every(Te,e.isClassElement))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return(Q===void 0||e.isArray(Q))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(Te===void 0||e.every(Te,e.isHeritageClause))&&(Ne===void 0||e.isArray(Ne))}}).deprecate({1:P}).finish(),O.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(b,Q,G,ae,Te,Ne,we){return fe(b,Q,G,ae,Te,Ne,we)},1:function(b,Q,G,ae,Te,Ne,we,nr){return fe(Q,G,ae,Te,Ne,we,nr)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6],nr=b[7];return nr===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||typeof G=="string"||e.isIdentifier(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.every(Te,e.isParameter))&&(Ne===void 0||!e.isArray(Ne))&&(we===void 0||e.isBlock(we))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6],nr=b[7];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G!="string"&&e.isAsteriskToken(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.every(Te,e.isTypeParameterDeclaration))&&(Ne===void 0||e.isArray(Ne))&&(we===void 0||e.isTypeNode(we))&&(nr===void 0||e.isBlock(nr))}}).deprecate({1:P}).finish(),O.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(b,Q,G,ae,Te,Ne,we,nr){return _e(b,Q,G,ae,Te,Ne,we,nr)},1:function(b,Q,G,ae,Te,Ne,we,nr,tr){return _e(b,G,ae,Te,Ne,we,nr,tr)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6],we=b[7],nr=b[8];return nr===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isIdentifier(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.every(Te,e.isParameter))&&(Ne===void 0||!e.isArray(Ne))&&(we===void 0||e.isBlock(we))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6],we=b[7],nr=b[8];return(Q===void 0||e.isArray(Q))&&(G===void 0||typeof G!="string"&&e.isAsteriskToken(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.every(Te,e.isTypeParameterDeclaration))&&(Ne===void 0||e.isArray(Ne))&&(we===void 0||e.isTypeNode(we))&&(nr===void 0||e.isBlock(nr))}}).deprecate({1:P}).finish(),O.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(b,Q,G,ae,Te){return ne(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return ne(e.concatenate(b,Q),G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(Te===void 0||e.every(Te,e.isClassElement))},1:function(){return!0}}).deprecate({1:c}).finish(),O.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(b,Q,G,ae,Te,Ne){return oe(b,Q,G,ae,Te,Ne)},1:function(b,Q,G,ae,Te,Ne,we){return oe(b,e.concatenate(Q,G),ae,Te,Ne,we)}}).bind({0:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return Ne===void 0&&(Q===void 0||!e.isArray(Q))&&(G===void 0||e.isArray(G))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(Te===void 0||e.every(Te,e.isClassElement))},1:function(b){var Q=b[2],G=b[3],ae=b[4],Te=b[5],Ne=b[6];return(Q===void 0||e.isArray(Q))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(Te===void 0||e.every(Te,e.isHeritageClause))&&(Ne===void 0||e.isArray(Ne))}}).deprecate({1:c}).finish(),O.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(b,Q,G,ae,Te){return w(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return w(Q,G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4],we=b[5];return we===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.every(Te,e.isHeritageClause))&&(Ne===void 0||e.every(Ne,e.isTypeElement))},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4],we=b[5];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.every(Te,e.isTypeParameterDeclaration))&&(Ne===void 0||e.every(Ne,e.isHeritageClause))&&(we===void 0||e.every(we,e.isTypeElement))}}).deprecate({1:P}).finish(),O.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(b,Q,G,ae,Te,Ne){return re(b,Q,G,ae,Te,Ne)},1:function(b,Q,G,ae,Te,Ne,we){return re(b,G,ae,Te,Ne,we)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6];return we===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||e.every(Te,e.isHeritageClause))&&(Ne===void 0||e.every(Ne,e.isTypeElement))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.every(Te,e.isTypeParameterDeclaration))&&(Ne===void 0||e.every(Ne,e.isHeritageClause))&&(we===void 0||e.every(we,e.isTypeElement))}}).deprecate({1:P}).finish(),O.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(b,Q,G,ae){return M(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return M(Q,G,ae,Te)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return Ne===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||!e.isArray(Te))},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.isArray(Te))&&(Ne===void 0||e.isTypeNode(Ne))}}).deprecate({1:P}).finish(),O.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(b,Q,G,ae,Te){return U(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return U(b,G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return Ne===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))&&(Te===void 0||!e.isArray(Te))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.isArray(Te))&&(Ne===void 0||e.isTypeNode(Ne))}}).deprecate({1:P}).finish(),O.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(b,Q,G){return H(b,Q,G)},1:function(b,Q,G,ae){return H(Q,G,ae)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return Te===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.isArray(Te))}}).deprecate({1:P}).finish(),O.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(b,Q,G,ae){return q(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return q(b,G,ae,Te)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return Te===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isArray(ae))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||!e.isArray(ae))&&(Te===void 0||e.isArray(Te))}}).deprecate({1:P}).finish(),O.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(b,Q,G,ae){return R(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return R(Q,G,ae,Te)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return Ne===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&G!==void 0&&!e.isArray(G)&&(ae===void 0||e.isModuleBody(ae))&&(Te===void 0||typeof Te=="number")},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&ae!==void 0&&e.isModuleName(ae)&&(Te===void 0||typeof Te=="object")&&(Ne===void 0||typeof Ne=="number")}}).deprecate({1:P}).finish(),O.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(b,Q,G,ae){return K(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return K(b,G,ae,Te)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return Te===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isModuleBody(ae))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&ae!==void 0&&e.isModuleName(ae)&&(Te===void 0||e.isModuleBody(Te))}}).deprecate({1:P}).finish(),O.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(b,Q,G,ae){return I(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return I(Q,G,ae,Te)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return Ne===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||typeof G=="boolean")&&typeof ae!="boolean"&&typeof Te!="string"},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||typeof ae=="boolean")&&(typeof Te=="string"||e.isIdentifier(Te))&&Ne!==void 0&&e.isModuleReference(Ne)}}).deprecate({1:P}).finish(),O.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(b,Q,G,ae,Te){return he(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return he(b,G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return Ne===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||typeof G=="boolean")&&typeof ae!="boolean"&&typeof Te!="string"},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||typeof ae=="boolean")&&(typeof Te=="string"||e.isIdentifier(Te))&&Ne!==void 0&&e.isModuleReference(Ne)}}).deprecate({1:P}).finish(),O.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(b,Q,G,ae){return le(b,Q,G,ae)},1:function(b,Q,G,ae,Te){return le(Q,G,ae,Te)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return Ne===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&ae!==void 0&&e.isExpression(ae)&&(Te===void 0||e.isAssertClause(Te))},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||e.isImportClause(ae))&&Te!==void 0&&e.isExpression(Te)&&(Ne===void 0||e.isAssertClause(Ne))}}).deprecate({1:P}).finish(),O.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(b,Q,G,ae,Te){return ee(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return ee(b,G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return Ne===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||!e.isArray(G))&&(ae===void 0||e.isExpression(ae))&&(Te===void 0||e.isAssertClause(Te))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||e.isImportClause(ae))&&Te!==void 0&&e.isExpression(Te)&&(Ne===void 0||e.isAssertClause(Ne))}}).deprecate({1:P}).finish(),O.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(b,Q,G){return J(b,Q,G)},1:function(b,Q,G,ae){return J(Q,G,ae)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return Te===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&(G===void 0||typeof G=="boolean")&&typeof ae=="object"},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&(ae===void 0||typeof ae=="boolean")&&Te!==void 0&&e.isExpression(Te)}}).deprecate({1:P}).finish(),O.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(b,Q,G){return de(b,Q,G)},1:function(b,Q,G,ae){return de(b,G,ae)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3];return ae===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&G!==void 0&&!e.isArray(G)},1:function(b){var Q=b[1],G=b[2],ae=b[3];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&ae!==void 0&&e.isExpression(ae)}}).deprecate({1:P}).finish(),O.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(b,Q,G,ae,Te){return De(b,Q,G,ae,Te)},1:function(b,Q,G,ae,Te,Ne){return De(Q,G,ae,Te,Ne)}}).bind({0:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4],we=b[5];return we===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&typeof G=="boolean"&&typeof ae!="boolean"&&(Te===void 0||e.isExpression(Te))&&(Ne===void 0||e.isAssertClause(Ne))},1:function(b){var Q=b[0],G=b[1],ae=b[2],Te=b[3],Ne=b[4],we=b[5];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&typeof ae=="boolean"&&(Te===void 0||e.isNamedExportBindings(Te))&&(Ne===void 0||e.isExpression(Ne))&&(we===void 0||e.isAssertClause(we))}}).deprecate({1:P}).finish(),O.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(b,Q,G,ae,Te,Ne){return N(b,Q,G,ae,Te,Ne)},1:function(b,Q,G,ae,Te,Ne,we){return N(b,G,ae,Te,Ne,we)}}).bind({0:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6];return we===void 0&&(Q===void 0||e.every(Q,e.isModifier))&&typeof G=="boolean"&&typeof ae!="boolean"&&(Te===void 0||e.isExpression(Te))&&(Ne===void 0||e.isAssertClause(Ne))},1:function(b){var Q=b[1],G=b[2],ae=b[3],Te=b[4],Ne=b[5],we=b[6];return(Q===void 0||e.every(Q,e.isDecorator))&&(G===void 0||e.isArray(G))&&typeof ae=="boolean"&&(Te===void 0||e.isNamedExportBindings(Te))&&(Ne===void 0||e.isExpression(Ne))&&(we===void 0||e.isAssertClause(we))}}).deprecate({1:P}).finish()}var D=e.createNodeFactory;e.createNodeFactory=function(O,W){var E=D(O,W);return s(E),E},s(e.factory)})(h||(h={}));var h;(function(e){typeof console<"u"&&(e.Debug.loggingHost={log:function(c,P){switch(c){case e.LogLevel.Error:return console.error(P);case e.LogLevel.Warning:return console.warn(P);case e.LogLevel.Info:return console.log(P);case e.LogLevel.Verbose:return console.log(P)}}})})(h||(h={}))}(IN)),IN.exports}if(typeof DS<"u")try{F_e.registerTS(B_e())}catch{}const H9=Object.freeze(Object.defineProperty({__proto__:null,MagicString:yh,babelParse:gv,compileScript:mV,compileStyle:XU,compileStyleAsync:YU,compileTemplate:z4,extractIdentifiers:A_,generateCodeFrame:w1,inferRuntimeType:Yd,invalidateTypeCache:uV,isInDestructureAssignment:Cy,isStaticProperty:ky,parse:C4,parseCache:KE,registerTS:cV,resolveTypeElements:np,rewriteDefault:nV,rewriteDefaultAST:Tk,shouldTransformRef:yD,transformRef:rV,transformRefAST:S2,version:yV,walk:x3,walkIdentifiers:U1},Symbol.toStringTag,{value:"Module"})),j_e=["onMousedown"],J_e=Ey({__name:"SplitPane",props:{layout:{}},setup(i){const t=i,n=AE(()=>t.layout==="vertical"),o=I_(),l=dv("store"),d=I_(l.initialShowOutput),m=CR({dragging:!1,split:50}),$=AE(()=>{const{split:s}=m;return s<20?20:s>80?80:s});let h=0,e=0;function c(s){m.dragging=!0,h=n.value?s.pageY:s.pageX,e=$.value}function P(s){if(m.dragging){const D=n.value?s.pageY:s.pageX,O=n.value?o.value.offsetHeight:o.value.offsetWidth,W=D-h;m.split=e+~~(W/O*100)}}function T(){m.dragging=!1}return(s,D)=>($l(),ip("div",{ref_key:"container",ref:o,class:dy(["split-pane",{dragging:m.dragging,"show-output":d.value,vertical:n.value}]),onMousemove:P,onMouseup:T,onMouseleave:T},[ol("div",{class:"left",style:PF({[n.value?"height":"width"]:$.value+"%"})},[AF(s.$slots,"left",{},void 0,!0),ol("div",{class:"dragger",onMousedown:PR(c,["prevent"])},null,40,j_e)],4),ol("div",{class:"right",style:PF({[n.value?"height":"width"]:100-$.value+"%"})},[AF(s.$slots,"right",{},void 0,!0)],4),ol("button",{class:"toggler",onClick:D[0]||(D[0]=O=>d.value=!d.value)},EC(d.value?"< Code":"Output >"),1)],34))}}),Py=(i,t)=>{const n=i.__vccOpts||i;for(const[o,l]of t)n[o]=l;return n},U_e=Py(J_e,[["__scopeId","data-v-b004c5a4"]]),V_e=Ey({__name:"Message",props:["err","warn"],setup(i){const t=i,n=I_(!1);JS(()=>[t.err,t.warn],()=>{n.value=!1});function o(l){if(typeof l=="string")return l;{let d=l.message;const m=l.loc;return m&&m.start&&(d=`(${m.start.line}:${m.start.column}) `+d),d}}return(l,d)=>($l(),o6(Dee,{name:"fade"},{default:jN(()=>[!n.value&&(i.err||i.warn)?($l(),ip("div",{key:0,class:dy(["msg",i.err?"err":"warn"])},[ol("pre",null,EC(o(i.err||i.warn)),1),ol("button",{class:"dismiss",onClick:d[0]||(d[0]=m=>n.value=!0)},"✕")],2)):fy("",!0)]),_:1}))}}),WI=Py(V_e,[["__scopeId","data-v-92411507"]]),z_e=`<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
</style>
<!-- PREVIEW-OPTIONS-HEAD-HTML -->
<script>
;(() => {
let scriptEls = []
window.process = { env: {} }
window.__modules__ = {}
window.__export__ = (mod, key, get) => {
Object.defineProperty(mod, key, {
enumerable: true,
configurable: true,
get,
})
}
window.__dynamic_import__ = (key) => {
return Promise.resolve(window.__modules__[key])
}
async function handle_message(ev) {
let { action, cmd_id } = ev.data
const send_message = (payload) =>
parent.postMessage({ ...payload }, ev.origin)
const send_reply = (payload) => send_message({ ...payload, cmd_id })
const send_ok = () => send_reply({ action: 'cmd_ok' })
const send_error = (message, stack) =>
send_reply({ action: 'cmd_error', message, stack })
if (action === 'eval') {
try {
if (scriptEls.length) {
scriptEls.forEach((el) => {
document.head.removeChild(el)
})
scriptEls.length = 0
}
let { script: scripts } = ev.data.args
if (typeof scripts === 'string') scripts = [scripts]
for (const script of scripts) {
const scriptEl = document.createElement('script')
scriptEl.setAttribute('type', 'module')
// send ok in the module script to ensure sequential evaluation
// of multiple proxy.eval() calls
const done = new Promise((resolve) => {
window.__next__ = resolve
})
scriptEl.innerHTML = script + \`\\nwindow.__next__()\`
document.head.appendChild(scriptEl)
scriptEl.onerror = (err) => send_error(err.message, err.stack)
scriptEls.push(scriptEl)
await done
}
send_ok()
} catch (e) {
send_error(e.message, e.stack)
}
}
if (action === 'catch_clicks') {
try {
const top_origin = ev.origin
document.body.addEventListener('click', (event) => {
if (event.which !== 1) return
if (event.metaKey || event.ctrlKey || event.shiftKey) return
if (event.defaultPrevented) return
// ensure target is a link
let el = event.target
while (el && el.nodeName !== 'A') el = el.parentNode
if (!el || el.nodeName !== 'A') return
if (
el.hasAttribute('download') ||
el.getAttribute('rel') === 'external' ||
el.target ||
el.href.startsWith('javascript:')
)
return
event.preventDefault()
if (el.href.startsWith(top_origin)) {
const url = new URL(el.href)
if (url.hash[0] === '#') {
window.location.hash = url.hash
return
}
}
window.open(el.href, '_blank')
})
send_ok()
} catch (e) {
send_error(e.message, e.stack)
}
}
}
window.addEventListener('message', handle_message, false)
window.onerror = function (msg, url, lineNo, columnNo, error) {
// ignore errors from import map polyfill - these are necessary for
// it to detect browser support
if (msg.includes('module specifier “vue”')) {
// firefox only error, ignore
return false
}
if (msg.includes("Module specifier, 'vue")) {
// Safari only
return false
}
try {
parent.postMessage({ action: 'error', value: error }, '*')
} catch (e) {
parent.postMessage({ action: 'error', value: msg }, '*')
}
}
window.addEventListener('unhandledrejection', (event) => {
if (
event.reason.message &&
event.reason.message.includes('Cross-origin')
) {
event.preventDefault()
return
}
try {
parent.postMessage(
{ action: 'unhandledrejection', value: event.reason },
'*'
)
} catch (e) {
parent.postMessage(
{ action: 'unhandledrejection', value: event.reason.message },
'*'
)
}
})
let previous = { level: null, args: null }
;['clear', 'log', 'info', 'dir', 'warn', 'error', 'table'].forEach(
(level) => {
const original = console[level]
console[level] = (...args) => {
const msg = args[0]
if (typeof msg === 'string') {
if (
msg.includes('You are running a development build of Vue') ||
msg.includes('You are running the esm-bundler build of Vue')
) {
return
}
}
original(...args)
const stringifiedArgs = stringify(args)
if (
previous.level === level &&
previous.args &&
previous.args === stringifiedArgs
) {
parent.postMessage(
{ action: 'console', level, duplicate: true },
'*'
)
} else {
previous = { level, args: stringifiedArgs }
try {
parent.postMessage({ action: 'console', level, args }, '*')
} catch (err) {
parent.postMessage(
{ action: 'console', level, args: args.map(toString) },
'*'
)
}
}
}
}
)
;[
{ method: 'group', action: 'console_group' },
{ method: 'groupEnd', action: 'console_group_end' },
{ method: 'groupCollapsed', action: 'console_group_collapsed' },
].forEach((group_action) => {
const original = console[group_action.method]
console[group_action.method] = (label) => {
parent.postMessage({ action: group_action.action, label }, '*')
original(label)
}
})
const timers = new Map()
const original_time = console.time
const original_timelog = console.timeLog
const original_timeend = console.timeEnd
console.time = (label = 'default') => {
original_time(label)
timers.set(label, performance.now())
}
console.timeLog = (label = 'default') => {
original_timelog(label)
const now = performance.now()
if (timers.has(label)) {
parent.postMessage(
{
action: 'console',
level: 'system-log',
args: [\`\${label}: \${now - timers.get(label)}ms\`],
},
'*'
)
} else {
parent.postMessage(
{
action: 'console',
level: 'system-warn',
args: [\`Timer '\${label}' does not exist\`],
},
'*'
)
}
}
console.timeEnd = (label = 'default') => {
original_timeend(label)
const now = performance.now()
if (timers.has(label)) {
parent.postMessage(
{
action: 'console',
level: 'system-log',
args: [\`\${label}: \${now - timers.get(label)}ms\`],
},
'*'
)
} else {
parent.postMessage(
{
action: 'console',
level: 'system-warn',
args: [\`Timer '\${label}' does not exist\`],
},
'*'
)
}
timers.delete(label)
}
const original_assert = console.assert
console.assert = (condition, ...args) => {
if (condition) {
const stack = new Error().stack
parent.postMessage(
{ action: 'console', level: 'assert', args, stack },
'*'
)
}
original_assert(condition, ...args)
}
const counter = new Map()
const original_count = console.count
const original_countreset = console.countReset
console.count = (label = 'default') => {
counter.set(label, (counter.get(label) || 0) + 1)
parent.postMessage(
{
action: 'console',
level: 'system-log',
args: \`\${label}: \${counter.get(label)}\`,
},
'*'
)
original_count(label)
}
console.countReset = (label = 'default') => {
if (counter.has(label)) {
counter.set(label, 0)
} else {
parent.postMessage(
{
action: 'console',
level: 'system-warn',
args: \`Count for '\${label}' does not exist\`,
},
'*'
)
}
original_countreset(label)
}
const original_trace = console.trace
console.trace = (...args) => {
const stack = new Error().stack
parent.postMessage(
{ action: 'console', level: 'trace', args, stack },
'*'
)
original_trace(...args)
}
function toString(value) {
if (value instanceof Error) {
return value.message
}
for (const fn of [
String,
(v) => Object.prototype.toString.call(v),
(v) => typeof v,
]) {
try {
return fn(value)
} catch (err) {}
}
}
function isComponentProxy(value) {
return (
value &&
typeof value === 'object' &&
value.__v_skip === true &&
typeof value.$nextTick === 'function' &&
value.$ &&
value._
)
}
function stringify(args) {
try {
return JSON.stringify(args, (key, value) => {
return isComponentProxy(value) ? '{component proxy}' : value
})
} catch (error) {
return null
}
}
})()
<\/script>
<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) -->
<script
async
src="https://cdn.jsdelivr.net/npm/es-module-shims@1.5.18/dist/es-module-shims.wasm.js"
><\/script>
<script type="importmap">
<!--IMPORT_MAP-->
<\/script>
</head>
<body></body>
</html>
`;let W_e=1;class q_e{constructor(t,n){this.iframe=t,this.handlers=n,this.pending_cmds=new Map,this.handle_event=o=>this.handle_repl_message(o),window.addEventListener("message",this.handle_event,!1)}destroy(){window.removeEventListener("message",this.handle_event)}iframe_command(t,n){return new Promise((o,l)=>{const d=W_e++;this.pending_cmds.set(d,{resolve:o,reject:l}),this.iframe.contentWindow.postMessage({action:t,cmd_id:d,args:n},"*")})}handle_command_message(t){let n=t.action,o=t.cmd_id,l=this.pending_cmds.get(o);if(l){if(this.pending_cmds.delete(o),n==="cmd_error"){let{message:d,stack:m}=t,$=new Error(d);$.stack=m,l.reject($)}n==="cmd_ok"&&l.resolve(t.args)}else n!=="cmd_error"&&n!=="cmd_ok"&&console.error("command not found",o,t,[...this.pending_cmds.keys()])}handle_repl_message(t){if(t.source!==this.iframe.contentWindow)return;const{action:n,args:o}=t.data;switch(n){case"cmd_error":case"cmd_ok":return this.handle_command_message(t.data);case"fetch_progress":return this.handlers.on_fetch_progress(o.remaining);case"error":return this.handlers.on_error(t.data);case"unhandledrejection":return this.handlers.on_unhandled_rejection(t.data);case"console":return this.handlers.on_console(t.data);case"console_group":return this.handlers.on_console_group(t.data);case"console_group_collapsed":return this.handlers.on_console_group_collapsed(t.data);case"console_group_end":return this.handlers.on_console_group_end(t.data)}}eval(t){return this.iframe_command("eval",{script:t})}handle_links(){return this.iframe_command("catch_clicks",{})}}function G9(i,t=!1){const n=new Set,o=[];if(qI(i,i.state.files[i.state.mainFile],o,n,t),!t){for(const l in i.state.files)if(l.endsWith(".css")){const d=i.state.files[l];n.has(d)||o.push(`
window.__css__.push(${JSON.stringify(d.compiled.css)})`)}}return o}const K9="__modules__",ON="__export__",$_e="__dynamic_import__",vS="__module__";function qI(i,t,n,o,l){if(o.has(t))return[];if(o.add(t),!l&&t.filename.endsWith(".html"))return K_e(i,t.code,t.filename,n,o);let{code:d,importedFiles:m,hasDynamicImport:$}=SV(i,l?t.compiled.ssr:t.compiled.js,t.filename);bV(i,m,$,n,o,l),t.compiled.css&&!l&&(d+=`
window.__css__.push(${JSON.stringify(t.compiled.css)})`),n.push(d)}function bV(i,t,n,o,l,d){if(n)for(const m of Object.values(i.state.files))l.has(m)||qI(i,m,o,l,d);else if(t.size>0)for(const m of t)qI(i,i.state.files[m],o,l,d)}function SV(i,t,n){const o=new yh(t),l=gv(t,{sourceFilename:n,sourceType:"module"}).program.body,d=new Map,m=new Set,$=new Set,h=new Map;function e(s){const D=i.state.files;let O=s;return D[O]||D[O=s+".ts"]||D[O=s+".js"]?O:void 0}function c(s,D){const O=e(D.replace(/^\.\/+/,"src/"));if(!O)throw new Error(`File "${D}" does not exist.`);if($.has(O))return h.get(O);$.add(O);const W=`__import_${$.size}__`;return h.set(O,W),o.appendLeft(s.start,`const ${W} = ${K9}[${JSON.stringify(O)}]
`),W}function P(s,D=s){o.append(`
${ON}(${vS}, "${s}", () => ${D})`)}o.prepend(`const ${vS} = ${K9}[${JSON.stringify(n)}] = { [Symbol.toStringTag]: "Module" }
`);for(const s of l)if(s.type==="ImportDeclaration"&&s.source.value.startsWith("./")){const O=c(s,s.source.value);for(const W of s.specifiers)W.type==="ImportSpecifier"?d.set(W.local.name,`${O}.${W.imported.name}`):W.type==="ImportDefaultSpecifier"?d.set(W.local.name,`${O}.default`):d.set(W.local.name,O);o.remove(s.start,s.end)}for(const s of l){if(s.type==="ExportNamedDeclaration")if(s.declaration){if(s.declaration.type==="FunctionDeclaration"||s.declaration.type==="ClassDeclaration")P(s.declaration.id.name);else if(s.declaration.type==="VariableDeclaration")for(const D of s.declaration.declarations)for(const O of A_(D.id))P(O.name);o.remove(s.start,s.declaration.start)}else if(s.source){const D=c(s,s.source.value);for(const O of s.specifiers)P(O.exported.name,`${D}.${O.local.name}`);o.remove(s.start,s.end)}else{for(const D of s.specifiers){const O=D.local.name,W=d.get(O);P(D.exported.name,W||O)}o.remove(s.start,s.end)}if(s.type==="ExportDefaultDeclaration")if("id"in s.declaration&&s.declaration.id){const{name:D}=s.declaration.id;o.remove(s.start,s.start+15),o.append(`
${ON}(${vS}, "default", () => ${D})`)}else o.overwrite(s.start,s.start+14,`${vS}.default =`);if(s.type==="ExportAllDeclaration"){const D=c(s,s.source.value);o.remove(s.start,s.end),o.append(`
for (const key in ${D}) {
if (key !== 'default') {
${ON}(${vS}, key, () => ${D}[key])
}
}`)}}for(const s of l)s.type!=="ImportDeclaration"&&U1(s,(D,O,W)=>{const E=d.get(D.name);if(E)if(ky(O)&&O.shorthand)(!O.inPattern||Cy(O,W))&&o.appendLeft(D.end,`: ${E}`);else if(O.type==="ClassDeclaration"&&D===O.superClass){if(!m.has(D.name)){m.add(D.name);const v=W[1];o.prependRight(v.start,`const ${D.name} = ${E};
`)}}else o.overwrite(D.start,D.end,E)});let T=!1;return x3(l,{enter(s,D){if(s.type==="Import"&&D.type==="CallExpression"){const O=D.arguments[0];O.type==="StringLiteral"&&O.value.startsWith("./")&&(T=!0,o.overwrite(s.start,s.start+6,$_e),o.overwrite(O.start,O.end,JSON.stringify(O.value.replace(/^\.\/+/,""))))}}}),{code:o.toString(),importedFiles:$,hasDynamicImport:T}}const H_e=/<script\b(?:\s[^>]*>|>)([^]*?)<\/script>/gi,G_e=/<script\b[^>]*type\s*=\s*(?:"module"|'module')[^>]*>([^]*?)<\/script>/gi;function K_e(i,t,n,o,l){const d=[];let m="";const $=t.replace(G_e,(h,e)=>{const{code:c,importedFiles:P,hasDynamicImport:T}=SV(i,e,n);return bV(i,P,T,d,l,!1),m+=`
`+c,""}).replace(H_e,(h,e)=>(m+=`
`+e,""));o.push(`document.body.innerHTML = ${JSON.stringify($)}`),o.push(...d),o.push(m)}const Q_e=Ey({__name:"Preview",props:{show:{type:Boolean},ssr:{type:Boolean}},setup(i,{expose:t}){const n=i,o=dv("store"),l=dv("clear-console"),d=dv("preview-options"),m=I_(),$=I_(),h=I_();let e,c,P;bee(T),JS(()=>o.getImportMap(),()=>{try{T()}catch(O){o.state.errors=[O];return}}),JS(()=>o.state.resetFlip,T),See(()=>{c.destroy(),P&&P()});function T(){e&&(c.destroy(),P&&P(),m.value.removeChild(e)),e=document.createElement("iframe"),e.setAttribute("sandbox",["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation"].join(" "));const O=o.getImportMap();O.imports||(O.imports={}),O.imports.vue||(O.imports.vue=o.state.vueRuntimeURL);const W=z_e.replace(/<!--IMPORT_MAP-->/,JSON.stringify(O)).replace(/<!-- PREVIEW-OPTIONS-HEAD-HTML -->/,(d==null?void 0:d.headHTML)||"");e.srcdoc=W,m.value.appendChild(e),c=new q_e(e,{on_fetch_progress:E=>{},on_error:E=>{const v=E.value instanceof Error?E.value.message:E.value;v.includes("Failed to resolve module specifier")||v.includes("Error resolving module specifier")?$.value=v.replace(/\. Relative references must.*$/,"")+`.
Tip: edit the "Import Map" tab to specify import paths for dependencies.`:$.value=E.value},on_unhandled_rejection:E=>{let v=E.value;typeof v=="string"&&(v={message:v}),$.value="Uncaught (in promise): "+v.message},on_console:E=>{E.duplicate||(E.level==="error"?E.args[0]instanceof Error?$.value=E.args[0].message:$.value=E.args[0]:E.level==="warn"&&E.args[0].toString().includes("[Vue warn]")&&(h.value=E.args.join("").replace(/\[Vue warn\]:/,"").trim()))},on_console_group:E=>{},on_console_group_end:()=>{},on_console_group_collapsed:E=>{}}),e.addEventListener("load",()=>{c.handle_links(),P=kR(s)})}async function s(){var W,E;l.value&&console.clear(),$.value=null,h.value=null;let O=n.ssr;if(o.vueVersion){const[v,S,te]=o.vueVersion.split(".").map(Y=>parseInt(Y,10));v===3&&(S<2||S===2&&te<27)&&(alert(`The selected version of Vue (${o.vueVersion}) does not support in-browser SSR. Rendering in client mode instead.`),O=!1)}try{const v=o.state.mainFile;if(O&&v.endsWith(".vue")){const Y=G9(o,!0);console.log(`[@vue/repl] successfully compiled ${Y.length} modules for SSR.`),await c.eval(["const __modules__ = {};",...Y,`import { renderToString as _renderToString } from 'vue/server-renderer'
import { createSSRApp as _createApp } from 'vue'
const AppComponent = __modules__["${v}"].default
AppComponent.name = 'Repl'
const app = _createApp(AppComponent)
if (!app.config.hasOwnProperty('unwrapInjectedRef')) {
app.config.unwrapInjectedRef = true
}
app.config.warnHandler = () => {}
window.__ssr_promise__ = _renderToString(app).then(html => {
document.body.innerHTML = '<div id="app">' + html + '</div>' + \`${(d==null?void 0:d.bodyHTML)||""}\`
}).catch(err => {
console.error("SSR Error", err)
})
`])}const S=G9(o);console.log(`[@vue/repl] successfully compiled ${S.length} module${S.length>1?"s":""}.`);const te=["window.__modules__ = {};window.__css__ = [];if (window.__app__) window.__app__.unmount();"+(O?"":`document.body.innerHTML = '<div id="app"></div>' + \`${(d==null?void 0:d.bodyHTML)||""}\``),...S,"setTimeout(()=> {\n document.querySelectorAll('style[css]').forEach(el => el.remove())\n document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => `<style css>${s}</style>`).join('\\n'))\n }, 1)"];v.endsWith(".vue")&&te.push(`import { ${O?"createSSRApp":"createApp"} as _createApp } from "vue"
${((W=d==null?void 0:d.customCode)==null?void 0:W.importCode)||""}
const _mount = () => {
const AppComponent = __modules__["${v}"].default
AppComponent.name = 'Repl'
const app = window.__app__ = _createApp(AppComponent)
if (!app.config.hasOwnProperty('unwrapInjectedRef')) {
app.config.unwrapInjectedRef = true
}
app.config.errorHandler = e => console.error(e)
${((E=d==null?void 0:d.customCode)==null?void 0:E.useCode)||""}
app.mount('#app')
}
if (window.__ssr_promise__) {
window.__ssr_promise__.then(_mount)
} else {
_mount()
}`),await c.eval(te)}catch(v){console.error(v),$.value=v.message}}function D(){var O;(O=e.contentWindow)==null||O.location.reload()}return t({reload:D}),(O,W)=>($l(),ip(n2,null,[a6(ol("div",{class:"iframe-container",ref_key:"container",ref:m},null,512),[[AR,O.show]]),av(WI,{err:$.value},null,8,["err"]),$.value?fy("",!0):($l(),o6(WI,{key:0,warn:h.value},null,8,["warn"]))],64))}}),X_e=Py(Q_e,[["__scopeId","data-v-b9352b63"]]),Y_e={class:"tab-buttons"},Z_e=["onClick"],eme={class:"output-container"},rme=Ey({__name:"Output",props:{editorComponent:{},showCompileOutput:{type:Boolean},ssr:{type:Boolean}},setup(i,{expose:t}){const n=i,o=dv("store"),l=I_(),d=AE(()=>n.showCompileOutput?["preview","js","css","ssr"]:["preview"]),m=I_(d.value.includes(o.initialOutputMode)?o.initialOutputMode:"preview");function $(){var h;(h=l.value)==null||h.reload()}return t({reload:$}),(h,e)=>($l(),ip(n2,null,[ol("div",Y_e,[($l(!0),ip(n2,null,wR(d.value,c=>($l(),ip("button",{class:dy({active:m.value===c}),onClick:P=>m.value=c},[ol("span",null,EC(c),1)],10,Z_e))),256))]),ol("div",eme,[av(X_e,{ref_key:"previewRef",ref:l,show:m.value==="preview",ssr:h.ssr},null,8,["show","ssr"]),m.value!=="preview"?($l(),o6(n.editorComponent,{key:0,readonly:"",filename:Pl(o).state.activeFile.filename,value:Pl(o).state.activeFile.compiled[m.value],mode:m.value},null,8,["filename","value","mode"])):fy("",!0)])],64))}}),tme=Py(rme,[["__scopeId","data-v-f221f6e0"]]);var pn;(function(i){i[i.NONE=0]="NONE";const n=0+1;i[i._abstract=n]="_abstract";const o=n+1;i[i._accessor=o]="_accessor";const l=o+1;i[i._as=l]="_as";const d=l+1;i[i._assert=d]="_assert";const m=d+1;i[i._asserts=m]="_asserts";const $=m+1;i[i._async=$]="_async";const h=$+1;i[i._await=h]="_await";const e=h+1;i[i._checks=e]="_checks";const c=e+1;i[i._constructor=c]="_constructor";const P=c+1;i[i._declare=P]="_declare";const T=P+1;i[i._enum=T]="_enum";const s=T+1;i[i._exports=s]="_exports";const D=s+1;i[i._from=D]="_from";const O=D+1;i[i._get=O]="_get";const W=O+1;i[i._global=W]="_global";const E=W+1;i[i._implements=E]="_implements";const v=E+1;i[i._infer=v]="_infer";const S=v+1;i[i._interface=S]="_interface";const te=S+1;i[i._is=te]="_is";const Y=te+1;i[i._keyof=Y]="_keyof";const Z=Y+1;i[i._mixins=Z]="_mixins";const ce=Z+1;i[i._module=ce]="_module";const k=ce+1;i[i._namespace=k]="_namespace";const X=k+1;i[i._of=X]="_of";const A=X+1;i[i._opaque=A]="_opaque";const y=A+1;i[i._out=y]="_out";const C=y+1;i[i._override=C]="_override";const B=C+1;i[i._private=B]="_private";const F=B+1;i[i._protected=F]="_protected";const z=F+1;i[i._proto=z]="_proto";const ge=z+1;i[i._public=ge]="_public";const Pe=ge+1;i[i._readonly=Pe]="_readonly";const fe=Pe+1;i[i._require=fe]="_require";const _e=fe+1;i[i._satisfies=_e]="_satisfies";const ne=_e+1;i[i._set=ne]="_set";const oe=ne+1;i[i._static=oe]="_static";const w=oe+1;i[i._symbol=w]="_symbol";const re=w+1;i[i._type=re]="_type";const M=re+1;i[i._unique=M]="_unique";const U=M+1;i[i._using=U]="_using"})(pn||(pn={}));var ie;(function(i){i[i.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;i[i.IS_KEYWORD=n]="IS_KEYWORD";const o=32;i[i.IS_ASSIGN=o]="IS_ASSIGN";const l=64;i[i.IS_RIGHT_ASSOCIATIVE=l]="IS_RIGHT_ASSOCIATIVE";const d=128;i[i.IS_PREFIX=d]="IS_PREFIX";const m=256;i[i.IS_POSTFIX=m]="IS_POSTFIX";const $=512;i[i.IS_EXPRESSION_START=$]="IS_EXPRESSION_START";const h=512;i[i.num=h]="num";const e=1536;i[i.bigint=e]="bigint";const c=2560;i[i.decimal=c]="decimal";const P=3584;i[i.regexp=P]="regexp";const T=4608;i[i.string=T]="string";const s=5632;i[i.name=s]="name";const D=6144;i[i.eof=D]="eof";const O=7680;i[i.bracketL=O]="bracketL";const W=8192;i[i.bracketR=W]="bracketR";const E=9728;i[i.braceL=E]="braceL";const v=10752;i[i.braceBarL=v]="braceBarL";const S=11264;i[i.braceR=S]="braceR";const te=12288;i[i.braceBarR=te]="braceBarR";const Y=13824;i[i.parenL=Y]="parenL";const Z=14336;i[i.parenR=Z]="parenR";const ce=15360;i[i.comma=ce]="comma";const k=16384;i[i.semi=k]="semi";const X=17408;i[i.colon=X]="colon";const A=18432;i[i.doubleColon=A]="doubleColon";const y=19456;i[i.dot=y]="dot";const C=20480;i[i.question=C]="question";const B=21504;i[i.questionDot=B]="questionDot";const F=22528;i[i.arrow=F]="arrow";const z=23552;i[i.template=z]="template";const ge=24576;i[i.ellipsis=ge]="ellipsis";const Pe=25600;i[i.backQuote=Pe]="backQuote";const fe=27136;i[i.dollarBraceL=fe]="dollarBraceL";const _e=27648;i[i.at=_e]="at";const ne=29184;i[i.hash=ne]="hash";const oe=29728;i[i.eq=oe]="eq";const w=30752;i[i.assign=w]="assign";const re=32640;i[i.preIncDec=re]="preIncDec";const M=33664;i[i.postIncDec=M]="postIncDec";const U=34432;i[i.bang=U]="bang";const H=35456;i[i.tilde=H]="tilde";const q=35841;i[i.pipeline=q]="pipeline";const R=36866;i[i.nullishCoalescing=R]="nullishCoalescing";const K=37890;i[i.logicalOR=K]="logicalOR";const I=38915;i[i.logicalAND=I]="logicalAND";const he=39940;i[i.bitwiseOR=he]="bitwiseOR";const le=40965;i[i.bitwiseXOR=le]="bitwiseXOR";const ee=41990;i[i.bitwiseAND=ee]="bitwiseAND";const J=43015;i[i.equality=J]="equality";const de=44040;i[i.lessThan=de]="lessThan";const De=45064;i[i.greaterThan=De]="greaterThan";const N=46088;i[i.relationalOrEqual=N]="relationalOrEqual";const b=47113;i[i.bitShiftL=b]="bitShiftL";const Q=48137;i[i.bitShiftR=Q]="bitShiftR";const G=49802;i[i.plus=G]="plus";const ae=50826;i[i.minus=ae]="minus";const Te=51723;i[i.modulo=Te]="modulo";const Ne=52235;i[i.star=Ne]="star";const we=53259;i[i.slash=we]="slash";const nr=54348;i[i.exponent=nr]="exponent";const tr=55296;i[i.jsxName=tr]="jsxName";const me=56320;i[i.jsxText=me]="jsxText";const He=57344;i[i.jsxEmptyText=He]="jsxEmptyText";const rr=58880;i[i.jsxTagStart=rr]="jsxTagStart";const je=59392;i[i.jsxTagEnd=je]="jsxTagEnd";const Ce=60928;i[i.typeParameterStart=Ce]="typeParameterStart";const Ae=61440;i[i.nonNullAssertion=Ae]="nonNullAssertion";const qe=62480;i[i._break=qe]="_break";const xe=63504;i[i._case=xe]="_case";const L=64528;i[i._catch=L]="_catch";const ue=65552;i[i._continue=ue]="_continue";const Ue=66576;i[i._debugger=Ue]="_debugger";const Je=67600;i[i._default=Je]="_default";const lr=68624;i[i._do=lr]="_do";const mr=69648;i[i._else=mr]="_else";const Hr=70672;i[i._finally=Hr]="_finally";const wr=71696;i[i._for=wr]="_for";const Oe=73232;i[i._function=Oe]="_function";const Ze=73744;i[i._if=Ze]="_if";const tt=74768;i[i._return=tt]="_return";const ut=75792;i[i._switch=ut]="_switch";const or=77456;i[i._throw=or]="_throw";const qr=77840;i[i._try=qr]="_try";const Rr=78864;i[i._var=Rr]="_var";const zr=79888;i[i._let=zr]="_let";const Fr=80912;i[i._const=Fr]="_const";const _t=81936;i[i._while=_t]="_while";const Ct=82960;i[i._with=Ct]="_with";const yt=84496;i[i._new=yt]="_new";const Fe=85520;i[i._this=Fe]="_this";const vr=86544;i[i._super=vr]="_super";const Le=87568;i[i._class=Le]="_class";const cr=88080;i[i._extends=cr]="_extends";const $r=89104;i[i._export=$r]="_export";const Re=90640;i[i._import=Re]="_import";const xr=91664;i[i._yield=xr]="_yield";const Br=92688;i[i._null=Br]="_null";const Qr=93712;i[i._true=Qr]="_true";const ct=94736;i[i._false=ct]="_false";const ft=95256;i[i._in=ft]="_in";const Dt=96280;i[i._instanceof=Dt]="_instanceof";const Me=97936;i[i._typeof=Me]="_typeof";const Ke=98960;i[i._void=Ke]="_void";const Vr=99984;i[i._delete=Vr]="_delete";const Yr=100880;i[i._async=Yr]="_async";const Nt=101904;i[i._get=Nt]="_get";const Wt=102928;i[i._set=Wt]="_set";const sn=103952;i[i._declare=sn]="_declare";const en=104976;i[i._readonly=en]="_readonly";const Ir=106e3;i[i._abstract=Ir]="_abstract";const Jr=107024;i[i._static=Jr]="_static";const ye=107536;i[i._public=ye]="_public";const Ie=108560;i[i._private=Ie]="_private";const We=109584;i[i._protected=We]="_protected";const dr=110608;i[i._override=dr]="_override";const ar=112144;i[i._as=ar]="_as";const Sr=113168;i[i._enum=Sr]="_enum";const Or=114192;i[i._type=Or]="_type";const Ge=115216;i[i._implements=Ge]="_implements"})(ie||(ie={}));function nme(i){switch(i){case ie.num:return"num";case ie.bigint:return"bigint";case ie.decimal:return"decimal";case ie.regexp:return"regexp";case ie.string:return"string";case ie.name:return"name";case ie.eof:return"eof";case ie.bracketL:return"[";case ie.bracketR:return"]";case ie.braceL:return"{";case ie.braceBarL:return"{|";case ie.braceR:return"}";case ie.braceBarR:return"|}";case ie.parenL:return"(";case ie.parenR:return")";case ie.comma:return",";case ie.semi:return";";case ie.colon:return":";case ie.doubleColon:return"::";case ie.dot:return".";case ie.question:return"?";case ie.questionDot:return"?.";case ie.arrow:return"=>";case ie.template:return"template";case ie.ellipsis:return"...";case ie.backQuote:return"`";case ie.dollarBraceL:return"${";case ie.at:return"@";case ie.hash:return"#";case ie.eq:return"=";case ie.assign:return"_=";case ie.preIncDec:return"++/--";case ie.postIncDec:return"++/--";case ie.bang:return"!";case ie.tilde:return"~";case ie.pipeline:return"|>";case ie.nullishCoalescing:return"??";case ie.logicalOR:return"||";case ie.logicalAND:return"&&";case ie.bitwiseOR:return"|";case ie.bitwiseXOR:return"^";case ie.bitwiseAND:return"&";case ie.equality:return"==/!=";case ie.lessThan:return"<";case ie.greaterThan:return">";case ie.relationalOrEqual:return"<=/>=";case ie.bitShiftL:return"<<";case ie.bitShiftR:return">>/>>>";case ie.plus:return"+";case ie.minus:return"-";case ie.modulo:return"%";case ie.star:return"*";case ie.slash:return"/";case ie.exponent:return"**";case ie.jsxName:return"jsxName";case ie.jsxText:return"jsxText";case ie.jsxEmptyText:return"jsxEmptyText";case ie.jsxTagStart:return"jsxTagStart";case ie.jsxTagEnd:return"jsxTagEnd";case ie.typeParameterStart:return"typeParameterStart";case ie.nonNullAssertion:return"nonNullAssertion";case ie._break:return"break";case ie._case:return"case";case ie._catch:return"catch";case ie._continue:return"continue";case ie._debugger:return"debugger";case ie._default:return"default";case ie._do:return"do";case ie._else:return"else";case ie._finally:return"finally";case ie._for:return"for";case ie._function:return"function";case ie._if:return"if";case ie._return:return"return";case ie._switch:return"switch";case ie._throw:return"throw";case ie._try:return"try";case ie._var:return"var";case ie._let:return"let";case ie._const:return"const";case ie._while:return"while";case ie._with:return"with";case ie._new:return"new";case ie._this:return"this";case ie._super:return"super";case ie._class:return"class";case ie._extends:return"extends";case ie._export:return"export";case ie._import:return"import";case ie._yield:return"yield";case ie._null:return"null";case ie._true:return"true";case ie._false:return"false";case ie._in:return"in";case ie._instanceof:return"instanceof";case ie._typeof:return"typeof";case ie._void:return"void";case ie._delete:return"delete";case ie._async:return"async";case ie._get:return"get";case ie._set:return"set";case ie._declare:return"declare";case ie._readonly:return"readonly";case ie._abstract:return"abstract";case ie._static:return"static";case ie._public:return"public";case ie._private:return"private";case ie._protected:return"protected";case ie._override:return"override";case ie._as:return"as";case ie._enum:return"enum";case ie._type:return"type";case ie._implements:return"implements";default:return""}}class bh{constructor(t,n,o){this.startTokenIndex=t,this.endTokenIndex=n,this.isFunctionScope=o}}class ime{constructor(t,n,o,l,d,m,$,h,e,c,P,T,s){this.potentialArrowAt=t,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=o,this.tokensLength=l,this.scopesLength=d,this.pos=m,this.type=$,this.contextualKeyword=h,this.start=e,this.end=c,this.isType=P,this.scopeDepth=T,this.error=s}}class vd{constructor(){vd.prototype.__init.call(this),vd.prototype.__init2.call(this),vd.prototype.__init3.call(this),vd.prototype.__init4.call(this),vd.prototype.__init5.call(this),vd.prototype.__init6.call(this),vd.prototype.__init7.call(this),vd.prototype.__init8.call(this),vd.prototype.__init9.call(this),vd.prototype.__init10.call(this),vd.prototype.__init11.call(this),vd.prototype.__init12.call(this),vd.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=ie.eof}__init8(){this.contextualKeyword=pn.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new ime(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}var Jn;(function(i){i[i.backSpace=8]="backSpace";const n=10;i[i.lineFeed=n]="lineFeed";const o=9;i[i.tab=o]="tab";const l=13;i[i.carriageReturn=l]="carriageReturn";const d=14;i[i.shiftOut=d]="shiftOut";const m=32;i[i.space=m]="space";const $=33;i[i.exclamationMark=$]="exclamationMark";const h=34;i[i.quotationMark=h]="quotationMark";const e=35;i[i.numberSign=e]="numberSign";const c=36;i[i.dollarSign=c]="dollarSign";const P=37;i[i.percentSign=P]="percentSign";const T=38;i[i.ampersand=T]="ampersand";const s=39;i[i.apostrophe=s]="apostrophe";const D=40;i[i.leftParenthesis=D]="leftParenthesis";const O=41;i[i.rightParenthesis=O]="rightParenthesis";const W=42;i[i.asterisk=W]="asterisk";const E=43;i[i.plusSign=E]="plusSign";const v=44;i[i.comma=v]="comma";const S=45;i[i.dash=S]="dash";const te=46;i[i.dot=te]="dot";const Y=47;i[i.slash=Y]="slash";const Z=48;i[i.digit0=Z]="digit0";const ce=49;i[i.digit1=ce]="digit1";const k=50;i[i.digit2=k]="digit2";const X=51;i[i.digit3=X]="digit3";const A=52;i[i.digit4=A]="digit4";const y=53;i[i.digit5=y]="digit5";const C=54;i[i.digit6=C]="digit6";const B=55;i[i.digit7=B]="digit7";const F=56;i[i.digit8=F]="digit8";const z=57;i[i.digit9=z]="digit9";const ge=58;i[i.colon=ge]="colon";const Pe=59;i[i.semicolon=Pe]="semicolon";const fe=60;i[i.lessThan=fe]="lessThan";const _e=61;i[i.equalsTo=_e]="equalsTo";const ne=62;i[i.greaterThan=ne]="greaterThan";const oe=63;i[i.questionMark=oe]="questionMark";const w=64;i[i.atSign=w]="atSign";const re=65;i[i.uppercaseA=re]="uppercaseA";const M=66;i[i.uppercaseB=M]="uppercaseB";const U=67;i[i.uppercaseC=U]="uppercaseC";const H=68;i[i.uppercaseD=H]="uppercaseD";const q=69;i[i.uppercaseE=q]="uppercaseE";const R=70;i[i.uppercaseF=R]="uppercaseF";const K=71;i[i.uppercaseG=K]="uppercaseG";const I=72;i[i.uppercaseH=I]="uppercaseH";const he=73;i[i.uppercaseI=he]="uppercaseI";const le=74;i[i.uppercaseJ=le]="uppercaseJ";const ee=75;i[i.uppercaseK=ee]="uppercaseK";const J=76;i[i.uppercaseL=J]="uppercaseL";const de=77;i[i.uppercaseM=de]="uppercaseM";const De=78;i[i.uppercaseN=De]="uppercaseN";const N=79;i[i.uppercaseO=N]="uppercaseO";const b=80;i[i.uppercaseP=b]="uppercaseP";const Q=81;i[i.uppercaseQ=Q]="uppercaseQ";const G=82;i[i.uppercaseR=G]="uppercaseR";const ae=83;i[i.uppercaseS=ae]="uppercaseS";const Te=84;i[i.uppercaseT=Te]="uppercaseT";const Ne=85;i[i.uppercaseU=Ne]="uppercaseU";const we=86;i[i.uppercaseV=we]="uppercaseV";const nr=87;i[i.uppercaseW=nr]="uppercaseW";const tr=88;i[i.uppercaseX=tr]="uppercaseX";const me=89;i[i.uppercaseY=me]="uppercaseY";const He=90;i[i.uppercaseZ=He]="uppercaseZ";const rr=91;i[i.leftSquareBracket=rr]="leftSquareBracket";const je=92;i[i.backslash=je]="backslash";const Ce=93;i[i.rightSquareBracket=Ce]="rightSquareBracket";const Ae=94;i[i.caret=Ae]="caret";const qe=95;i[i.underscore=qe]="underscore";const xe=96;i[i.graveAccent=xe]="graveAccent";const L=97;i[i.lowercaseA=L]="lowercaseA";const ue=98;i[i.lowercaseB=ue]="lowercaseB";const Ue=99;i[i.lowercaseC=Ue]="lowercaseC";const Je=100;i[i.lowercaseD=Je]="lowercaseD";const lr=101;i[i.lowercaseE=lr]="lowercaseE";const mr=102;i[i.lowercaseF=mr]="lowercaseF";const Hr=103;i[i.lowercaseG=Hr]="lowercaseG";const wr=104;i[i.lowercaseH=wr]="lowercaseH";const Oe=105;i[i.lowercaseI=Oe]="lowercaseI";const Ze=106;i[i.lowercaseJ=Ze]="lowercaseJ";const tt=107;i[i.lowercaseK=tt]="lowercaseK";const ut=108;i[i.lowercaseL=ut]="lowercaseL";const or=109;i[i.lowercaseM=or]="lowercaseM";const qr=110;i[i.lowercaseN=qr]="lowercaseN";const Rr=111;i[i.lowercaseO=Rr]="lowercaseO";const zr=112;i[i.lowercaseP=zr]="lowercaseP";const Fr=113;i[i.lowercaseQ=Fr]="lowercaseQ";const _t=114;i[i.lowercaseR=_t]="lowercaseR";const Ct=115;i[i.lowercaseS=Ct]="lowercaseS";const yt=116;i[i.lowercaseT=yt]="lowercaseT";const Fe=117;i[i.lowercaseU=Fe]="lowercaseU";const vr=118;i[i.lowercaseV=vr]="lowercaseV";const Le=119;i[i.lowercaseW=Le]="lowercaseW";const cr=120;i[i.lowercaseX=cr]="lowercaseX";const $r=121;i[i.lowercaseY=$r]="lowercaseY";const Re=122;i[i.lowercaseZ=Re]="lowercaseZ";const xr=123;i[i.leftCurlyBrace=xr]="leftCurlyBrace";const Br=124;i[i.verticalBar=Br]="verticalBar";const Qr=125;i[i.rightCurlyBrace=Qr]="rightCurlyBrace";const ct=126;i[i.tilde=ct]="tilde";const ft=160;i[i.nonBreakingSpace=ft]="nonBreakingSpace";const Dt=5760;i[i.oghamSpaceMark=Dt]="oghamSpaceMark";const Me=8232;i[i.lineSeparator=Me]="lineSeparator";const Ke=8233;i[i.paragraphSeparator=Ke]="paragraphSeparator"})(Jn||(Jn={}));let kk,ec,vc,br,Ba,DV;function bD(){return DV++}function ame(i){if("pos"in i){const t=sme(i.pos);i.message+=` (${t.line}:${t.column})`,i.loc=t}return i}class ome{constructor(t,n){this.line=t,this.column=n}}function sme(i){let t=1,n=1;for(let o=0;o<i;o++)Ba.charCodeAt(o)===Jn.lineFeed?(t++,n=1):n++;return new ome(t,n)}function cme(i,t,n,o){Ba=i,br=new vd,DV=1,kk=t,ec=n,vc=o}function Fo(i){return br.contextualKeyword===i}function T3(i){const t=BD();return t.type===ie.name&&t.contextualKeyword===i}function Ql(i){return br.contextualKeyword===i&&gi(ie.name)}function Kl(i){Ql(i)||Ss()}function N_(){return Jt(ie.eof)||Jt(ie.braceR)||B_()}function B_(){const i=br.tokens[br.tokens.length-1],t=i?i.end:0;for(let n=t;n<br.start;n++){const o=Ba.charCodeAt(n);if(o===Jn.lineFeed||o===Jn.carriageReturn||o===8232||o===8233)return!0}return!1}function xV(){const i=E3();for(let t=br.end;t<i;t++){const n=Ba.charCodeAt(t);if(n===Jn.lineFeed||n===Jn.carriageReturn||n===8232||n===8233)return!0}return!1}function lh(){return gi(ie.semi)||N_()}function Pu(){lh()||Ss('Unexpected token, expected ";"')}function Ji(i){gi(i)||Ss(`Unexpected token, expected "${nme(i)}"`)}function Ss(i="Unexpected token",t=br.start){if(br.error)return;const n=new SyntaxError(i);n.pos=t,br.error=n,br.pos=Ba.length,bs(ie.eof)}const TV=[9,11,12,Jn.space,Jn.nonBreakingSpace,Jn.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Q9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,EV=new Uint8Array(65536);for(const i of TV)EV[i]=1;function ume(i){if(i<48)return i===36;if(i<58)return!0;if(i<65)return!1;if(i<91)return!0;if(i<97)return i===95;if(i<123)return!0;if(i<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const kg=new Uint8Array(65536);for(let i=0;i<128;i++)kg[i]=ume(i)?1:0;for(let i=128;i<65536;i++)kg[i]=1;for(const i of TV)kg[i]=0;kg[8232]=0;kg[8233]=0;const RD=kg.slice();for(let i=Jn.digit0;i<=Jn.digit9;i++)RD[i]=0;const X9=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,pn._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,pn._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,pn._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,pn._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,pn._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,pn._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,(ie._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,(ie._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,pn._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,(ie._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,(ie._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,(ie._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,pn._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,(ie._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,(ie._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,(ie._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,pn._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,(ie._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,pn._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,(ie._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._in<<1)+1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,pn._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,(ie._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,pn._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,(ie._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,pn._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,pn._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,pn._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,pn._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,pn._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,(ie._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,(ie._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,(ie._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,pn._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,(ie._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(ie._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function lme(){let i=0,t=0,n=br.pos;for(;n<Ba.length&&(t=Ba.charCodeAt(n),!(t<Jn.lowercaseA||t>Jn.lowercaseZ));){const l=X9[i+(t-Jn.lowercaseA)+1];if(l===-1)break;i=l,n++}const o=X9[i];if(o>-1&&!kg[t]){br.pos=n,o&1?bs(o>>>1):bs(ie.name,o>>>1);return}for(;n<Ba.length;){const l=Ba.charCodeAt(n);if(kg[l])n++;else if(l===Jn.backslash){if(n+=2,Ba.charCodeAt(n)===Jn.leftCurlyBrace){for(;n<Ba.length&&Ba.charCodeAt(n)!==Jn.rightCurlyBrace;)n++;n++}}else if(l===Jn.atSign&&Ba.charCodeAt(n+1)===Jn.atSign)n+=2;else break}br.pos=n,bs(ie.name)}var $o;(function(i){i[i.Access=0]="Access";const n=0+1;i[i.ExportAccess=n]="ExportAccess";const o=n+1;i[i.TopLevelDeclaration=o]="TopLevelDeclaration";const l=o+1;i[i.FunctionScopedDeclaration=l]="FunctionScopedDeclaration";const d=l+1;i[i.BlockScopedDeclaration=d]="BlockScopedDeclaration";const m=d+1;i[i.ObjectShorthandTopLevelDeclaration=m]="ObjectShorthandTopLevelDeclaration";const $=m+1;i[i.ObjectShorthandFunctionScopedDeclaration=$]="ObjectShorthandFunctionScopedDeclaration";const h=$+1;i[i.ObjectShorthandBlockScopedDeclaration=h]="ObjectShorthandBlockScopedDeclaration";const e=h+1;i[i.ObjectShorthand=e]="ObjectShorthand";const c=e+1;i[i.ImportDeclaration=c]="ImportDeclaration";const P=c+1;i[i.ObjectKey=P]="ObjectKey";const T=P+1;i[i.ImportAccess=T]="ImportAccess"})($o||($o={}));var xg;(function(i){i[i.NoChildren=0]="NoChildren";const n=0+1;i[i.OneChild=n]="OneChild";const o=n+1;i[i.StaticChildren=o]="StaticChildren";const l=o+1;i[i.KeyAfterPropSpread=l]="KeyAfterPropSpread"})(xg||(xg={}));function CV(i){const t=i.identifierRole;return t===$o.TopLevelDeclaration||t===$o.FunctionScopedDeclaration||t===$o.BlockScopedDeclaration||t===$o.ObjectShorthandTopLevelDeclaration||t===$o.ObjectShorthandFunctionScopedDeclaration||t===$o.ObjectShorthandBlockScopedDeclaration}function fme(i){const t=i.identifierRole;return t===$o.FunctionScopedDeclaration||t===$o.BlockScopedDeclaration||t===$o.ObjectShorthandFunctionScopedDeclaration||t===$o.ObjectShorthandBlockScopedDeclaration}function kV(i){const t=i.identifierRole;return t===$o.TopLevelDeclaration||t===$o.ObjectShorthandTopLevelDeclaration||t===$o.ImportDeclaration}function pme(i){const t=i.identifierRole;return t===$o.TopLevelDeclaration||t===$o.BlockScopedDeclaration||t===$o.ObjectShorthandTopLevelDeclaration||t===$o.ObjectShorthandBlockScopedDeclaration}function dme(i){const t=i.identifierRole;return t===$o.FunctionScopedDeclaration||t===$o.ObjectShorthandFunctionScopedDeclaration}function _me(i){return i.identifierRole===$o.ObjectShorthandTopLevelDeclaration||i.identifierRole===$o.ObjectShorthandBlockScopedDeclaration||i.identifierRole===$o.ObjectShorthandFunctionScopedDeclaration}class Ak{constructor(){this.type=br.type,this.contextualKeyword=br.contextualKeyword,this.start=br.start,this.end=br.end,this.scopeDepth=br.scopeDepth,this.isType=br.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function Ui(){br.tokens.push(new Ak),NV()}function _y(){br.tokens.push(new Ak),br.start=br.pos,Ime()}function mme(){br.type===ie.assign&&--br.pos,Pme()}function As(i){for(let n=br.tokens.length-i;n<br.tokens.length;n++)br.tokens[n].isType=!0;const t=br.isType;return br.isType=!0,t}function Ps(i){br.isType=i}function gi(i){return Jt(i)?(Ui(),!0):!1}function AV(i){const t=br.isType;br.isType=!0,gi(i),br.isType=t}function Jt(i){return br.type===i}function Zu(){const i=br.snapshot();Ui();const t=br.type;return br.restoreFromSnapshot(i),t}class gme{constructor(t,n){this.type=t,this.contextualKeyword=n}}function BD(){const i=br.snapshot();Ui();const t=br.type,n=br.contextualKeyword;return br.restoreFromSnapshot(i),new gme(t,n)}function E3(){return PV(br.pos)}function PV(i){Q9.lastIndex=i;const t=Q9.exec(Ba);return i+t[0].length}function wV(){return Ba.charCodeAt(E3())}function NV(){if(OV(),br.start=br.pos,br.pos>=Ba.length){const i=br.tokens;i.length>=2&&i[i.length-1].start>=Ba.length&&i[i.length-2].start>=Ba.length&&Ss("Unexpectedly reached the end of input."),bs(ie.eof);return}hme(Ba.charCodeAt(br.pos))}function hme(i){RD[i]||i===Jn.backslash||i===Jn.atSign&&Ba.charCodeAt(br.pos+1)===Jn.atSign?lme():FV(i)}function vme(){for(;Ba.charCodeAt(br.pos)!==Jn.asterisk||Ba.charCodeAt(br.pos+1)!==Jn.slash;)if(br.pos++,br.pos>Ba.length){Ss("Unterminated comment",br.pos-2);return}br.pos+=2}function IV(i){let t=Ba.charCodeAt(br.pos+=i);if(br.pos<Ba.length)for(;t!==Jn.lineFeed&&t!==Jn.carriageReturn&&t!==Jn.lineSeparator&&t!==Jn.paragraphSeparator&&++br.pos<Ba.length;)t=Ba.charCodeAt(br.pos)}function OV(){for(;br.pos<Ba.length;){const i=Ba.charCodeAt(br.pos);switch(i){case Jn.carriageReturn:Ba.charCodeAt(br.pos+1)===Jn.lineFeed&&++br.pos;case Jn.lineFeed:case Jn.lineSeparator:case Jn.paragraphSeparator:++br.pos;break;case Jn.slash:switch(Ba.charCodeAt(br.pos+1)){case Jn.asterisk:br.pos+=2,vme();break;case Jn.slash:IV(2);break;default:return}break;default:if(EV[i])++br.pos;else return}}}function bs(i,t=pn.NONE){br.end=br.pos,br.type=i,br.contextualKeyword=t}function yme(){const i=Ba.charCodeAt(br.pos+1);if(i>=Jn.digit0&&i<=Jn.digit9){LV(!0);return}i===Jn.dot&&Ba.charCodeAt(br.pos+2)===Jn.dot?(br.pos+=3,bs(ie.ellipsis)):(++br.pos,bs(ie.dot))}function bme(){Ba.charCodeAt(br.pos+1)===Jn.equalsTo?Ec(ie.assign,2):Ec(ie.slash,1)}function Sme(i){let t=i===Jn.asterisk?ie.star:ie.modulo,n=1,o=Ba.charCodeAt(br.pos+1);i===Jn.asterisk&&o===Jn.asterisk&&(n++,o=Ba.charCodeAt(br.pos+2),t=ie.exponent),o===Jn.equalsTo&&Ba.charCodeAt(br.pos+2)!==Jn.greaterThan&&(n++,t=ie.assign),Ec(t,n)}function Dme(i){const t=Ba.charCodeAt(br.pos+1);if(t===i){Ba.charCodeAt(br.pos+2)===Jn.equalsTo?Ec(ie.assign,3):Ec(i===Jn.verticalBar?ie.logicalOR:ie.logicalAND,2);return}if(i===Jn.verticalBar){if(t===Jn.greaterThan){Ec(ie.pipeline,2);return}else if(t===Jn.rightCurlyBrace&&vc){Ec(ie.braceBarR,2);return}}if(t===Jn.equalsTo){Ec(ie.assign,2);return}Ec(i===Jn.verticalBar?ie.bitwiseOR:ie.bitwiseAND,1)}function xme(){Ba.charCodeAt(br.pos+1)===Jn.equalsTo?Ec(ie.assign,2):Ec(ie.bitwiseXOR,1)}function Tme(i){const t=Ba.charCodeAt(br.pos+1);if(t===i){Ec(ie.preIncDec,2);return}t===Jn.equalsTo?Ec(ie.assign,2):i===Jn.plusSign?Ec(ie.plus,1):Ec(ie.minus,1)}function Eme(){const i=Ba.charCodeAt(br.pos+1);if(i===Jn.lessThan){if(Ba.charCodeAt(br.pos+2)===Jn.equalsTo){Ec(ie.assign,3);return}br.isType?Ec(ie.lessThan,1):Ec(ie.bitShiftL,2);return}i===Jn.equalsTo?Ec(ie.relationalOrEqual,2):Ec(ie.lessThan,1)}function MV(){if(br.isType){Ec(ie.greaterThan,1);return}const i=Ba.charCodeAt(br.pos+1);if(i===Jn.greaterThan){const t=Ba.charCodeAt(br.pos+2)===Jn.greaterThan?3:2;if(Ba.charCodeAt(br.pos+t)===Jn.equalsTo){Ec(ie.assign,t+1);return}Ec(ie.bitShiftR,t);return}i===Jn.equalsTo?Ec(ie.relationalOrEqual,2):Ec(ie.greaterThan,1)}function Cme(){br.type===ie.greaterThan&&(br.pos-=1,MV())}function kme(i){const t=Ba.charCodeAt(br.pos+1);if(t===Jn.equalsTo){Ec(ie.equality,Ba.charCodeAt(br.pos+2)===Jn.equalsTo?3:2);return}if(i===Jn.equalsTo&&t===Jn.greaterThan){br.pos+=2,bs(ie.arrow);return}Ec(i===Jn.equalsTo?ie.eq:ie.bang,1)}function Ame(){const i=Ba.charCodeAt(br.pos+1),t=Ba.charCodeAt(br.pos+2);i===Jn.questionMark&&!(vc&&br.isType)?t===Jn.equalsTo?Ec(ie.assign,3):Ec(ie.nullishCoalescing,2):i===Jn.dot&&!(t>=Jn.digit0&&t<=Jn.digit9)?(br.pos+=2,bs(ie.questionDot)):(++br.pos,bs(ie.question))}function FV(i){switch(i){case Jn.numberSign:++br.pos,bs(ie.hash);return;case Jn.dot:yme();return;case Jn.leftParenthesis:++br.pos,bs(ie.parenL);return;case Jn.rightParenthesis:++br.pos,bs(ie.parenR);return;case Jn.semicolon:++br.pos,bs(ie.semi);return;case Jn.comma:++br.pos,bs(ie.comma);return;case Jn.leftSquareBracket:++br.pos,bs(ie.bracketL);return;case Jn.rightSquareBracket:++br.pos,bs(ie.bracketR);return;case Jn.leftCurlyBrace:vc&&Ba.charCodeAt(br.pos+1)===Jn.verticalBar?Ec(ie.braceBarL,2):(++br.pos,bs(ie.braceL));return;case Jn.rightCurlyBrace:++br.pos,bs(ie.braceR);return;case Jn.colon:Ba.charCodeAt(br.pos+1)===Jn.colon?Ec(ie.doubleColon,2):(++br.pos,bs(ie.colon));return;case Jn.questionMark:Ame();return;case Jn.atSign:++br.pos,bs(ie.at);return;case Jn.graveAccent:++br.pos,bs(ie.backQuote);return;case Jn.digit0:{const t=Ba.charCodeAt(br.pos+1);if(t===Jn.lowercaseX||t===Jn.uppercaseX||t===Jn.lowercaseO||t===Jn.uppercaseO||t===Jn.lowercaseB||t===Jn.uppercaseB){wme();return}}case Jn.digit1:case Jn.digit2:case Jn.digit3:case Jn.digit4:case Jn.digit5:case Jn.digit6:case Jn.digit7:case Jn.digit8:case Jn.digit9:LV(!1);return;case Jn.quotationMark:case Jn.apostrophe:Nme(i);return;case Jn.slash:bme();return;case Jn.percentSign:case Jn.asterisk:Sme(i);return;case Jn.verticalBar:case Jn.ampersand:Dme(i);return;case Jn.caret:xme();return;case Jn.plusSign:case Jn.dash:Tme(i);return;case Jn.lessThan:Eme();return;case Jn.greaterThan:MV();return;case Jn.equalsTo:case Jn.exclamationMark:kme(i);return;case Jn.tilde:Ec(ie.tilde,1);return}Ss(`Unexpected character '${String.fromCharCode(i)}'`,br.pos)}function Ec(i,t){br.pos+=t,bs(i)}function Pme(){const i=br.pos;let t=!1,n=!1;for(;;){if(br.pos>=Ba.length){Ss("Unterminated regular expression",i);return}const o=Ba.charCodeAt(br.pos);if(t)t=!1;else{if(o===Jn.leftSquareBracket)n=!0;else if(o===Jn.rightSquareBracket&&n)n=!1;else if(o===Jn.slash&&!n)break;t=o===Jn.backslash}++br.pos}++br.pos,Ome(),bs(ie.regexp)}function MN(){for(;;){const i=Ba.charCodeAt(br.pos);if(i>=Jn.digit0&&i<=Jn.digit9||i===Jn.underscore)br.pos++;else break}}function wme(){for(br.pos+=2;;){const t=Ba.charCodeAt(br.pos);if(t>=Jn.digit0&&t<=Jn.digit9||t>=Jn.lowercaseA&&t<=Jn.lowercaseF||t>=Jn.uppercaseA&&t<=Jn.uppercaseF||t===Jn.underscore)br.pos++;else break}Ba.charCodeAt(br.pos)===Jn.lowercaseN?(++br.pos,bs(ie.bigint)):bs(ie.num)}function LV(i){let t=!1,n=!1;i||MN();let o=Ba.charCodeAt(br.pos);if(o===Jn.dot&&(++br.pos,MN(),o=Ba.charCodeAt(br.pos)),(o===Jn.uppercaseE||o===Jn.lowercaseE)&&(o=Ba.charCodeAt(++br.pos),(o===Jn.plusSign||o===Jn.dash)&&++br.pos,MN(),o=Ba.charCodeAt(br.pos)),o===Jn.lowercaseN?(++br.pos,t=!0):o===Jn.lowercaseM&&(++br.pos,n=!0),t){bs(ie.bigint);return}if(n){bs(ie.decimal);return}bs(ie.num)}function Nme(i){for(br.pos++;;){if(br.pos>=Ba.length){Ss("Unterminated string constant");return}const t=Ba.charCodeAt(br.pos);if(t===Jn.backslash)br.pos++;else if(t===i)break;br.pos++}br.pos++,bs(ie.string)}function Ime(){for(;;){if(br.pos>=Ba.length){Ss("Unterminated template");return}const i=Ba.charCodeAt(br.pos);if(i===Jn.graveAccent||i===Jn.dollarSign&&Ba.charCodeAt(br.pos+1)===Jn.leftCurlyBrace){if(br.pos===br.start&&Jt(ie.template))if(i===Jn.dollarSign){br.pos+=2,bs(ie.dollarBraceL);return}else{++br.pos,bs(ie.backQuote);return}bs(ie.template);return}i===Jn.backslash&&br.pos++,br.pos++}}function Ome(){for(;br.pos<Ba.length;){const i=Ba.charCodeAt(br.pos);if(kg[i])br.pos++;else if(i===Jn.backslash){if(br.pos+=2,Ba.charCodeAt(br.pos)===Jn.leftCurlyBrace){for(;br.pos<Ba.length&&Ba.charCodeAt(br.pos)!==Jn.rightCurlyBrace;)br.pos++;br.pos++}}else break}}function SD(i,t=i.currentIndex()){let n=t+1;if(tE(i,n)){const o=i.identifierNameAtIndex(t);return{isType:!1,leftName:o,rightName:o,endIndex:n}}if(n++,tE(i,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,tE(i,n))return{isType:!1,leftName:i.identifierNameAtIndex(t),rightName:i.identifierNameAtIndex(t+2),endIndex:n};if(n++,tE(i,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}function tE(i,t){const n=i.tokens[t];return n.type===ie.braceR||n.type===ie.comma}const Mme=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj","‌"],["zwj","‍"],["lrm","‎"],["rlm","‏"],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function RV(i){const[t,n]=Y9(i.jsxPragma||"React.createElement"),[o,l]=Y9(i.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:o,fragmentSuffix:l}}function Y9(i){let t=i.indexOf(".");return t===-1&&(t=i.length),[i.slice(0,t),i.slice(t)]}class wg{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class m1 extends wg{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,n,o,l,d){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=o,this.nameManager=l,this.options=d,m1.prototype.__init.call(this),m1.prototype.__init2.call(this),m1.prototype.__init3.call(this),m1.prototype.__init4.call(this),m1.prototype.__init5.call(this),this.jsxPragmaInfo=RV(d),this.isAutomaticRuntime=d.jsxRuntime==="automatic",this.jsxImportSource=d.jsxImportSource||"react"}process(){return this.tokens.matches1(ie.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[n,o]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${o} = require("${n}");`;else{const{createElement:n,...o}=this.esmAutomaticImportNameResolutions;n&&(t+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);const l=Object.entries(o).map(([d,m])=>`${d} as ${m}`).join(", ");if(l){const d=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");t+=`import {${l}} from "${d}";`}}return t}processJSXTag(){const{jsxRole:t,start:n}=this.tokens.currentToken(),o=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&t!==xg.KeyAfterPropSpread?this.transformTagToJSXFunc(o,t):this.transformTagToCreateElement(o)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const n=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<n.length;)n[this.lastIndex]===`
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,n){const o=n===xg.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(o));let l=null;if(this.tokens.matches1(ie.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),l=this.processProps(!0),this.tokens.matches2(ie.slash,ie.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(ie.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");l&&this.tokens.appendCode(`, ${l}`)}for(this.options.production||(l===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${o}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(ie.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(ie.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(ie.slash,ie.jsxTagEnd))if(this.tokens.matches1(ie.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(ie.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,n){const o=this.claimAutoImportedName(t,n);return this.importProcessor?`${o}.call(void 0, `:`${o}(`}claimAutoImportedName(t,n){if(this.importProcessor){const o=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[o]||(this.cjsAutomaticModuleNameResolutions[o]=this.importProcessor.getFreeIdentifierForPath(o)),`${this.cjsAutomaticModuleNameResolutions[o]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,ie.jsxName,ie.jsxName)&&!this.tokens.matches2AtIndex(t-1,ie.greaterThan,ie.jsxName)&&!this.tokens.matches1AtIndex(t,ie.braceL)&&!this.tokens.matches1AtIndex(t,ie.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,ie.slash,ie.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const n=this.tokens.identifierName();BV(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){const n=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(ie.jsxName)&&!this.tokens.matches1(ie.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(t){let n=null;for(;;){if(this.tokens.matches2(ie.jsxName,ie.eq)){const o=this.tokens.identifierName();if(t&&o==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const l=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(l);continue}else this.processPropName(o),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(ie.jsxName)){const o=this.tokens.identifierName();this.processPropName(o),this.tokens.appendCode(": true")}else if(this.tokens.matches1(ie.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(t){t.includes("-")?this.tokens.replaceToken(`'${t}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(ie.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(ie.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start+1,t.end-1),o=Z9(n),l=Lme(n);this.tokens.replaceToken(l+o)}processAutomaticChildrenAndEndProps(t){t===xg.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(t===xg.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(t){let n=t;for(;;){if(this.tokens.matches2(ie.jsxTagStart,ie.slash))return;let o=!1;if(this.tokens.matches1(ie.braceL))this.tokens.matches2(ie.braceL,ie.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(n?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),o=!0);else if(this.tokens.matches1(ie.jsxTagStart))this.tokens.appendCode(n?", ":""),this.processJSXTag(),o=!0;else if(this.tokens.matches1(ie.jsxText)||this.tokens.matches1(ie.jsxEmptyText))o=this.processChildTextElement(n);else throw new Error("Unexpected token when processing JSX children.");o&&(n=!0)}}processChildTextElement(t){const n=this.tokens.currentToken(),o=this.tokens.code.slice(n.start,n.end),l=Z9(o),d=Fme(o);return d==='""'?(this.tokens.replaceToken(l),!1):(this.tokens.replaceToken(`${t?", ":""}${d}${l}`),!0)}getDevSource(t){return`{fileName: ${this.getFilenameVarName()}, ${t}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function BV(i){const t=i.charCodeAt(0);return t>=Jn.lowercaseA&&t<=Jn.lowercaseZ}function Fme(i){let t="",n="",o=!1,l=!1;for(let d=0;d<i.length;d++){const m=i[d];if(m===" "||m===" "||m==="\r")o||(n+=m);else if(m===`
`)n="",o=!0;else{if(l&&o&&(t+=" "),t+=n,n="",m==="&"){const{entity:$,newI:h}=jV(i,d+1);d=h-1,t+=$}else t+=m;l=!0,o=!1}}return o||(t+=n),JSON.stringify(t)}function Z9(i){let t=0,n=0;for(const o of i)o===`
`?(t++,n=0):o===" "&&n++;return`
`.repeat(t)+" ".repeat(n)}function Lme(i){let t="";for(let n=0;n<i.length;n++){const o=i[n];if(o===`
`)if(/\s/.test(i[n+1]))for(t+=" ";n<i.length&&/\s/.test(i[n+1]);)n++;else t+=`
`;else if(o==="&"){const{entity:l,newI:d}=jV(i,n+1);t+=l,n=d-1}else t+=o}return JSON.stringify(t)}function jV(i,t){let n="",o=0,l,d=t;if(i[d]==="#"){let m=10;d++;let $;if(i[d]==="x")for(m=16,d++,$=d;d<i.length&&Bme(i.charCodeAt(d));)d++;else for($=d;d<i.length&&Rme(i.charCodeAt(d));)d++;if(i[d]===";"){const h=i.slice($,d);h&&(d++,l=String.fromCodePoint(parseInt(h,m)))}}else for(;d<i.length&&o++<10;){const m=i[d];if(d++,m===";"){l=Mme.get(n);break}n+=m}return l?{entity:l,newI:d}:{entity:"&",newI:t}}function Rme(i){return i>=Jn.digit0&&i<=Jn.digit9}function Bme(i){return i>=Jn.digit0&&i<=Jn.digit9||i>=Jn.lowercaseA&&i<=Jn.lowercaseF||i>=Jn.uppercaseA&&i<=Jn.uppercaseF}function JV(i,t){const n=RV(t),o=new Set;for(let l=0;l<i.tokens.length;l++){const d=i.tokens[l];if(d.type===ie.name&&!d.isType&&(d.identifierRole===$o.Access||d.identifierRole===$o.ObjectShorthand||d.identifierRole===$o.ExportAccess)&&!d.shadowsGlobal&&o.add(i.identifierNameForToken(d)),d.type===ie.jsxTagStart&&o.add(n.base),d.type===ie.jsxTagStart&&l+1<i.tokens.length&&i.tokens[l+1].type===ie.jsxTagEnd&&(o.add(n.base),o.add(n.fragmentBase)),d.type===ie.jsxName&&d.identifierRole===$o.Access){const m=i.identifierNameForToken(d);(!BV(m)||i.tokens[l+1].type===ie.dot)&&o.add(i.identifierNameForToken(d))}}return o}class g1{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,n,o,l,d,m){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=o,this.options=l,this.isTypeScriptTransformEnabled=d,this.helperManager=m,g1.prototype.__init.call(this),g1.prototype.__init2.call(this),g1.prototype.__init3.call(this),g1.prototype.__init4.call(this),g1.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,ie._import)&&!this.tokens.matches3AtIndex(t,ie._import,ie.name,ie.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,ie._export)&&!this.tokens.matches2AtIndex(t,ie._export,ie.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=JV(this.tokens,this.options);for(const[t,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:l})=>l)].every(l=>this.isTypeName(l))&&this.importsToReplace.set(t,"")}}isTypeName(t){return this.isTypeScriptTransformEnabled&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,n]of this.importInfoByPath.entries()){const{defaultNames:o,wildcardNames:l,namedImports:d,namedExports:m,exportStarNames:$,hasStarExport:h}=n;if(o.length===0&&l.length===0&&d.length===0&&m.length===0&&$.length===0&&!h){this.importsToReplace.set(t,`require('${t}');`);continue}const e=this.getFreeIdentifierForPath(t);let c;this.enableLegacyTypeScriptModuleInterop?c=e:c=l.length>0?l[0]:this.getFreeIdentifierForPath(t);let P=`var ${e} = require('${t}');`;if(l.length>0)for(const T of l){const s=this.enableLegacyTypeScriptModuleInterop?e:`${this.helperManager.getHelperName("interopRequireWildcard")}(${e})`;P+=` var ${T} = ${s};`}else $.length>0&&c!==e?P+=` var ${c} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${e});`:o.length>0&&c!==e&&(P+=` var ${c} = ${this.helperManager.getHelperName("interopRequireDefault")}(${e});`);for(const{importedName:T,localName:s}of m)P+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${e}, '${s}', '${T}');`;for(const T of $)P+=` exports.${T} = ${c};`;h&&(P+=` ${this.helperManager.getHelperName("createStarExport")}(${e});`),this.importsToReplace.set(t,P);for(const T of o)this.identifierReplacements.set(T,`${c}.default`);for(const{importedName:T,localName:s}of d)this.identifierReplacements.set(s,`${e}.${T}`)}}getFreeIdentifierForPath(t){const n=t.split("/"),l=n[n.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${l}`)}preprocessImportAtIndex(t){const n=[],o=[],l=[];if(t++,(this.tokens.matchesContextualAtIndex(t,pn._type)||this.tokens.matches1AtIndex(t,ie._typeof))&&!this.tokens.matches1AtIndex(t+1,ie.comma)&&!this.tokens.matchesContextualAtIndex(t+1,pn._from)||this.tokens.matches1AtIndex(t,ie.parenL))return;if(this.tokens.matches1AtIndex(t,ie.name)&&(n.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,ie.comma)&&t++),this.tokens.matches1AtIndex(t,ie.star)&&(t+=2,o.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,ie.braceL)){const $=this.getNamedImports(t+1);t=$.newIndex;for(const h of $.namedImports)h.importedName==="default"?n.push(h.localName):l.push(h)}if(this.tokens.matchesContextualAtIndex(t,pn._from)&&t++,!this.tokens.matches1AtIndex(t,ie.string))throw new Error("Expected string token at the end of import statement.");const d=this.tokens.stringValueAtIndex(t),m=this.getImportInfo(d);m.defaultNames.push(...n),m.wildcardNames.push(...o),m.namedImports.push(...l),n.length===0&&o.length===0&&l.length===0&&(m.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,ie._export,ie._var)||this.tokens.matches2AtIndex(t,ie._export,ie._let)||this.tokens.matches2AtIndex(t,ie._export,ie._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,ie._export,ie._function)||this.tokens.matches2AtIndex(t,ie._export,ie._class)){const n=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(t,ie._export,ie.name,ie._function)){const n=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(t,ie._export,ie.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,ie._export,ie.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let n=0;for(let o=t+2;;o++)if(this.tokens.matches1AtIndex(o,ie.braceL)||this.tokens.matches1AtIndex(o,ie.dollarBraceL)||this.tokens.matches1AtIndex(o,ie.bracketL))n++;else if(this.tokens.matches1AtIndex(o,ie.braceR)||this.tokens.matches1AtIndex(o,ie.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(o,ie.name))break;if(this.tokens.matches1AtIndex(1,ie.eq)){const l=this.tokens.currentToken().rhsEndIndex;if(l==null)throw new Error("Expected = token with an end index.");o=l-1}else{const l=this.tokens.tokens[o];if(CV(l)){const d=this.tokens.identifierNameAtIndex(o);this.identifierReplacements.set(d,`exports.${d}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:n,namedImports:o}=this.getNamedImports(t);if(t=n,this.tokens.matchesContextualAtIndex(t,pn._from))t++;else{for(const{importedName:m,localName:$}of o)this.addExportBinding(m,$);return}if(!this.tokens.matches1AtIndex(t,ie.string))throw new Error("Expected string token at the end of import statement.");const l=this.tokens.stringValueAtIndex(t);this.getImportInfo(l).namedExports.push(...o)}preprocessExportStarAtIndex(t){let n=null;if(this.tokens.matches3AtIndex(t,ie._export,ie.star,ie._as)?(t+=3,n=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,ie.string))throw new Error("Expected string token at the end of star export statement.");const o=this.tokens.stringValueAtIndex(t),l=this.getImportInfo(o);n!==null?l.exportStarNames.push(n):l.hasStarExport=!0}getNamedImports(t){const n=[];for(;;){if(this.tokens.matches1AtIndex(t,ie.braceR)){t++;break}const o=SD(this.tokens,t);if(t=o.endIndex,o.isType||n.push({importedName:o.leftName,localName:o.rightName}),this.tokens.matches2AtIndex(t,ie.comma,ie.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,ie.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,ie.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:n}}getImportInfo(t){const n=this.importInfoByPath.get(t);if(n)return n;const o={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,o),o}addExportBinding(t,n){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(n)}claimImportCode(t){const n=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),n||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const n=this.exportBindingsByLocalName.get(t);return!n||n.length===0?null:n.map(o=>`exports.${o}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var $I={exports:{}},nE={exports:{}},eR;function jme(){return eR||(eR=1,function(i,t){(function(n,o){o(t)})(Pm,function(n){n.get=void 0,n.put=void 0,n.pop=void 0;class o{constructor(){this._indexes={__proto__:null},this.array=[]}}n.get=(l,d)=>l._indexes[d],n.put=(l,d)=>{const m=n.get(l,d);if(m!==void 0)return m;const{array:$,_indexes:h}=l;return h[d]=$.push(d)-1},n.pop=l=>{const{array:d,_indexes:m}=l;if(d.length===0)return;const $=d.pop();m[$]=void 0},n.SetArray=o,Object.defineProperty(n,"__esModule",{value:!0})})}(nE,nE.exports)),nE.exports}var iE={exports:{}},rR;function Jme(){return rR||(rR=1,function(i,t){(function(n,o){o(t)})(Pm,function(n){const o=",".charCodeAt(0),l=";".charCodeAt(0),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=new Uint8Array(64),$=new Uint8Array(128);for(let E=0;E<d.length;E++){const v=d.charCodeAt(E);m[E]=v,$[v]=E}const h=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(E){return Buffer.from(E.buffer,E.byteOffset,E.byteLength).toString()}}:{decode(E){let v="";for(let S=0;S<E.length;S++)v+=String.fromCharCode(E[S]);return v}};function e(E){const v=new Int32Array(5),S=[];let te=0;do{const Y=c(E,te),Z=[];let ce=!0,k=0;v[0]=0;for(let X=te;X<Y;X++){let A;X=P(E,X,v,0);const y=v[0];y<k&&(ce=!1),k=y,T(E,X,Y)?(X=P(E,X,v,1),X=P(E,X,v,2),X=P(E,X,v,3),T(E,X,Y)?(X=P(E,X,v,4),A=[y,v[1],v[2],v[3],v[4]]):A=[y,v[1],v[2],v[3]]):A=[y],Z.push(A)}ce||s(Z),S.push(Z),te=Y+1}while(te<=E.length);return S}function c(E,v){const S=E.indexOf(";",v);return S===-1?E.length:S}function P(E,v,S,te){let Y=0,Z=0,ce=0;do{const X=E.charCodeAt(v++);ce=$[X],Y|=(ce&31)<<Z,Z+=5}while(ce&32);const k=Y&1;return Y>>>=1,k&&(Y=-2147483648|-Y),S[te]+=Y,v}function T(E,v,S){return v>=S?!1:E.charCodeAt(v)!==o}function s(E){E.sort(D)}function D(E,v){return E[0]-v[0]}function O(E){const v=new Int32Array(5),S=1024*16,te=S-36,Y=new Uint8Array(S),Z=Y.subarray(0,te);let ce=0,k="";for(let X=0;X<E.length;X++){const A=E[X];if(X>0&&(ce===S&&(k+=h.decode(Y),ce=0),Y[ce++]=l),A.length!==0){v[0]=0;for(let y=0;y<A.length;y++){const C=A[y];ce>te&&(k+=h.decode(Z),Y.copyWithin(0,te,ce),ce-=te),y>0&&(Y[ce++]=o),ce=W(Y,ce,v,C,0),C.length!==1&&(ce=W(Y,ce,v,C,1),ce=W(Y,ce,v,C,2),ce=W(Y,ce,v,C,3),C.length!==4&&(ce=W(Y,ce,v,C,4)))}}}return k+h.decode(Y.subarray(0,ce))}function W(E,v,S,te,Y){const Z=te[Y];let ce=Z-S[Y];S[Y]=Z,ce=ce<0?-ce<<1|1:ce<<1;do{let k=ce&31;ce>>>=5,ce>0&&(k|=32),E[v++]=m[k]}while(ce>0);return v}n.decode=e,n.encode=O,Object.defineProperty(n,"__esModule",{value:!0})})}(iE,iE.exports)),iE.exports}var aE={exports:{}},oE={exports:{}},tR;function Ume(){return tR||(tR=1,function(i,t){(function(n,o){o(t)})(Pm,function(n){const o=",".charCodeAt(0),l=";".charCodeAt(0),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=new Uint8Array(64),$=new Uint8Array(128);for(let E=0;E<d.length;E++){const v=d.charCodeAt(E);m[E]=v,$[v]=E}const h=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(E){return Buffer.from(E.buffer,E.byteOffset,E.byteLength).toString()}}:{decode(E){let v="";for(let S=0;S<E.length;S++)v+=String.fromCharCode(E[S]);return v}};function e(E){const v=new Int32Array(5),S=[];let te=0;do{const Y=c(E,te),Z=[];let ce=!0,k=0;v[0]=0;for(let X=te;X<Y;X++){let A;X=P(E,X,v,0);const y=v[0];y<k&&(ce=!1),k=y,T(E,X,Y)?(X=P(E,X,v,1),X=P(E,X,v,2),X=P(E,X,v,3),T(E,X,Y)?(X=P(E,X,v,4),A=[y,v[1],v[2],v[3],v[4]]):A=[y,v[1],v[2],v[3]]):A=[y],Z.push(A)}ce||s(Z),S.push(Z),te=Y+1}while(te<=E.length);return S}function c(E,v){const S=E.indexOf(";",v);return S===-1?E.length:S}function P(E,v,S,te){let Y=0,Z=0,ce=0;do{const X=E.charCodeAt(v++);ce=$[X],Y|=(ce&31)<<Z,Z+=5}while(ce&32);const k=Y&1;return Y>>>=1,k&&(Y=-2147483648|-Y),S[te]+=Y,v}function T(E,v,S){return v>=S?!1:E.charCodeAt(v)!==o}function s(E){E.sort(D)}function D(E,v){return E[0]-v[0]}function O(E){const v=new Int32Array(5),S=1024*16,te=S-36,Y=new Uint8Array(S),Z=Y.subarray(0,te);let ce=0,k="";for(let X=0;X<E.length;X++){const A=E[X];if(X>0&&(ce===S&&(k+=h.decode(Y),ce=0),Y[ce++]=l),A.length!==0){v[0]=0;for(let y=0;y<A.length;y++){const C=A[y];ce>te&&(k+=h.decode(Z),Y.copyWithin(0,te,ce),ce-=te),y>0&&(Y[ce++]=o),ce=W(Y,ce,v,C,0),C.length!==1&&(ce=W(Y,ce,v,C,1),ce=W(Y,ce,v,C,2),ce=W(Y,ce,v,C,3),C.length!==4&&(ce=W(Y,ce,v,C,4)))}}}return k+h.decode(Y.subarray(0,ce))}function W(E,v,S,te,Y){const Z=te[Y];let ce=Z-S[Y];S[Y]=Z,ce=ce<0?-ce<<1|1:ce<<1;do{let k=ce&31;ce>>>=5,ce>0&&(k|=32),E[v++]=m[k]}while(ce>0);return v}n.decode=e,n.encode=O,Object.defineProperty(n,"__esModule",{value:!0})})}(oE,oE.exports)),oE.exports}var FN={exports:{}},nR;function Vme(){return nR||(nR=1,function(i,t){(function(n,o){i.exports=o()})(Pm,function(){const n=/^[\w+.-]+:\/\//,o=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,l=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var d;(function(S){S[S.Empty=1]="Empty",S[S.Hash=2]="Hash",S[S.Query=3]="Query",S[S.RelativePath=4]="RelativePath",S[S.AbsolutePath=5]="AbsolutePath",S[S.SchemeRelative=6]="SchemeRelative",S[S.Absolute=7]="Absolute"})(d||(d={}));function m(S){return n.test(S)}function $(S){return S.startsWith("//")}function h(S){return S.startsWith("/")}function e(S){return S.startsWith("file:")}function c(S){return/^[.?#]/.test(S)}function P(S){const te=o.exec(S);return s(te[1],te[2]||"",te[3],te[4]||"",te[5]||"/",te[6]||"",te[7]||"")}function T(S){const te=l.exec(S),Y=te[2];return s("file:","",te[1]||"","",h(Y)?Y:"/"+Y,te[3]||"",te[4]||"")}function s(S,te,Y,Z,ce,k,X){return{scheme:S,user:te,host:Y,port:Z,path:ce,query:k,hash:X,type:d.Absolute}}function D(S){if($(S)){const Y=P("http:"+S);return Y.scheme="",Y.type=d.SchemeRelative,Y}if(h(S)){const Y=P("http://foo.com"+S);return Y.scheme="",Y.host="",Y.type=d.AbsolutePath,Y}if(e(S))return T(S);if(m(S))return P(S);const te=P("http://foo.com/"+S);return te.scheme="",te.host="",te.type=S?S.startsWith("?")?d.Query:S.startsWith("#")?d.Hash:d.RelativePath:d.Empty,te}function O(S){if(S.endsWith("/.."))return S;const te=S.lastIndexOf("/");return S.slice(0,te+1)}function W(S,te){E(te,te.type),S.path==="/"?S.path=te.path:S.path=O(te.path)+S.path}function E(S,te){const Y=te<=d.RelativePath,Z=S.path.split("/");let ce=1,k=0,X=!1;for(let y=1;y<Z.length;y++){const C=Z[y];if(!C){X=!0;continue}if(X=!1,C!=="."){if(C===".."){k?(X=!0,k--,ce--):Y&&(Z[ce++]=C);continue}Z[ce++]=C,k++}}let A="";for(let y=1;y<ce;y++)A+="/"+Z[y];(!A||X&&!A.endsWith("/.."))&&(A+="/"),S.path=A}function v(S,te){if(!S&&!te)return"";const Y=D(S);let Z=Y.type;if(te&&Z!==d.Absolute){const k=D(te),X=k.type;switch(Z){case d.Empty:Y.hash=k.hash;case d.Hash:Y.query=k.query;case d.Query:case d.RelativePath:W(Y,k);case d.AbsolutePath:Y.user=k.user,Y.host=k.host,Y.port=k.port;case d.SchemeRelative:Y.scheme=k.scheme}X>Z&&(Z=X)}E(Y,Z);const ce=Y.query+Y.hash;switch(Z){case d.Hash:case d.Query:return ce;case d.RelativePath:{const k=Y.path.slice(1);return k?c(te||S)&&!c(k)?"./"+k+ce:k+ce:ce||"."}case d.AbsolutePath:return Y.path+ce;default:return Y.scheme+"//"+Y.user+Y.host+Y.port+Y.path+ce}}return v})}(FN)),FN.exports}var iR;function zme(){return iR||(iR=1,function(i,t){(function(n,o){o(t,Ume(),Vme())})(Pm,function(n,o,l){function d(K){return K&&typeof K=="object"&&"default"in K?K:{default:K}}var m=d(l);function $(K,I){return I&&!I.endsWith("/")&&(I+="/"),m.default(K,I)}function h(K){if(!K)return"";const I=K.lastIndexOf("/");return K.slice(0,I+1)}const e=0,c=1,P=2,T=3,s=4,D=1,O=2;function W(K,I){const he=E(K,0);if(he===K.length)return K;I||(K=K.slice());for(let le=he;le<K.length;le=E(K,le+1))K[le]=S(K[le],I);return K}function E(K,I){for(let he=I;he<K.length;he++)if(!v(K[he]))return he;return K.length}function v(K){for(let I=1;I<K.length;I++)if(K[I][e]<K[I-1][e])return!1;return!0}function S(K,I){return I||(K=K.slice()),K.sort(te)}function te(K,I){return K[e]-I[e]}let Y=!1;function Z(K,I,he,le){for(;he<=le;){const ee=he+(le-he>>1),J=K[ee][e]-I;if(J===0)return Y=!0,ee;J<0?he=ee+1:le=ee-1}return Y=!1,he-1}function ce(K,I,he){for(let le=he+1;le<K.length&&K[le][e]===I;he=le++);return he}function k(K,I,he){for(let le=he-1;le>=0&&K[le][e]===I;he=le--);return he}function X(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function A(K,I,he,le){const{lastKey:ee,lastNeedle:J,lastIndex:de}=he;let De=0,N=K.length-1;if(le===ee){if(I===J)return Y=de!==-1&&K[de][e]===I,de;I>=J?De=de===-1?0:de:N=de}return he.lastKey=le,he.lastNeedle=I,he.lastIndex=Z(K,I,De,N)}function y(K,I){const he=I.map(B);for(let le=0;le<K.length;le++){const ee=K[le];for(let J=0;J<ee.length;J++){const de=ee[J];if(de.length===1)continue;const De=de[c],N=de[P],b=de[T],Q=he[De],G=Q[N]||(Q[N]=[]),ae=I[De],Te=ce(G,b,A(G,b,ae,N));C(G,ae.lastIndex=Te+1,[b,le,de[e]])}}return he}function C(K,I,he){for(let le=K.length;le>I;le--)K[le]=K[le-1];K[I]=he}function B(){return{__proto__:null}}const F=function(K,I){const he=typeof K=="string"?JSON.parse(K):K;if(!("sections"in he))return new re(he,I);const le=[],ee=[],J=[],de=[];z(he,I,le,ee,J,de,0,0,1/0,1/0);const De={version:3,file:he.file,names:de,sources:ee,sourcesContent:J,mappings:le};return n.presortedDecodedMap(De)};function z(K,I,he,le,ee,J,de,De,N,b){const{sections:Q}=K;for(let G=0;G<Q.length;G++){const{map:ae,offset:Te}=Q[G];let Ne=N,we=b;if(G+1<Q.length){const nr=Q[G+1].offset;Ne=Math.min(N,de+nr.line),Ne===N?we=Math.min(b,De+nr.column):Ne<N&&(we=De+nr.column)}ge(ae,I,he,le,ee,J,de+Te.line,De+Te.column,Ne,we)}}function ge(K,I,he,le,ee,J,de,De,N,b){if("sections"in K)return z(...arguments);const Q=new re(K,I),G=le.length,ae=J.length,Te=n.decodedMappings(Q),{resolvedSources:Ne,sourcesContent:we}=Q;if(Pe(le,Ne),Pe(J,Q.names),we)Pe(ee,we);else for(let nr=0;nr<Ne.length;nr++)ee.push(null);for(let nr=0;nr<Te.length;nr++){const tr=de+nr;if(tr>N)return;const me=fe(he,tr),He=nr===0?De:0,rr=Te[nr];for(let je=0;je<rr.length;je++){const Ce=rr[je],Ae=He+Ce[e];if(tr===N&&Ae>=b)return;if(Ce.length===1){me.push([Ae]);continue}const qe=G+Ce[c],xe=Ce[P],L=Ce[T];me.push(Ce.length===4?[Ae,qe,xe,L]:[Ae,qe,xe,L,ae+Ce[s]])}}}function Pe(K,I){for(let he=0;he<I.length;he++)K.push(I[he])}function fe(K,I){for(let he=K.length;he<=I;he++)K[he]=[];return K[I]}const _e="`line` must be greater than 0 (lines start at line 1)",ne="`column` must be greater than or equal to 0 (columns start at column 0)",oe=-1,w=1;n.encodedMappings=void 0,n.decodedMappings=void 0,n.traceSegment=void 0,n.originalPositionFor=void 0,n.generatedPositionFor=void 0,n.allGeneratedPositionsFor=void 0,n.eachMapping=void 0,n.sourceContentFor=void 0,n.presortedDecodedMap=void 0,n.decodedMap=void 0,n.encodedMap=void 0;class re{constructor(I,he){const le=typeof I=="string";if(!le&&I._decodedMemo)return I;const ee=le?JSON.parse(I):I,{version:J,file:de,names:De,sourceRoot:N,sources:b,sourcesContent:Q}=ee;this.version=J,this.file=de,this.names=De,this.sourceRoot=N,this.sources=b,this.sourcesContent=Q;const G=$(N||"",h(he));this.resolvedSources=b.map(Te=>$(Te||"",G));const{mappings:ae}=ee;typeof ae=="string"?(this._encoded=ae,this._decoded=void 0):(this._encoded=void 0,this._decoded=W(ae,le)),this._decodedMemo=X(),this._bySources=void 0,this._bySourceMemos=void 0}}(()=>{n.encodedMappings=I=>{var he;return(he=I._encoded)!==null&&he!==void 0?he:I._encoded=o.encode(I._decoded)},n.decodedMappings=I=>I._decoded||(I._decoded=o.decode(I._encoded)),n.traceSegment=(I,he,le)=>{const ee=n.decodedMappings(I);if(he>=ee.length)return null;const J=ee[he],de=q(J,I._decodedMemo,he,le,w);return de===-1?null:J[de]},n.originalPositionFor=(I,{line:he,column:le,bias:ee})=>{if(he--,he<0)throw new Error(_e);if(le<0)throw new Error(ne);const J=n.decodedMappings(I);if(he>=J.length)return U(null,null,null,null);const de=J[he],De=q(de,I._decodedMemo,he,le,ee||w);if(De===-1)return U(null,null,null,null);const N=de[De];if(N.length===1)return U(null,null,null,null);const{names:b,resolvedSources:Q}=I;return U(Q[N[c]],N[P]+1,N[T],N.length===5?b[N[s]]:null)},n.allGeneratedPositionsFor=(I,{source:he,line:le,column:ee,bias:J})=>K(I,he,le,ee,J||oe,!0),n.generatedPositionFor=(I,{source:he,line:le,column:ee,bias:J})=>K(I,he,le,ee,J||w,!1),n.eachMapping=(I,he)=>{const le=n.decodedMappings(I),{names:ee,resolvedSources:J}=I;for(let de=0;de<le.length;de++){const De=le[de];for(let N=0;N<De.length;N++){const b=De[N],Q=de+1,G=b[0];let ae=null,Te=null,Ne=null,we=null;b.length!==1&&(ae=J[b[1]],Te=b[2]+1,Ne=b[3]),b.length===5&&(we=ee[b[4]]),he({generatedLine:Q,generatedColumn:G,source:ae,originalLine:Te,originalColumn:Ne,name:we})}}},n.sourceContentFor=(I,he)=>{const{sources:le,resolvedSources:ee,sourcesContent:J}=I;if(J==null)return null;let de=le.indexOf(he);return de===-1&&(de=ee.indexOf(he)),de===-1?null:J[de]},n.presortedDecodedMap=(I,he)=>{const le=new re(M(I,[]),he);return le._decoded=I.mappings,le},n.decodedMap=I=>M(I,n.decodedMappings(I)),n.encodedMap=I=>M(I,n.encodedMappings(I));function K(I,he,le,ee,J,de){if(le--,le<0)throw new Error(_e);if(ee<0)throw new Error(ne);const{sources:De,resolvedSources:N}=I;let b=De.indexOf(he);if(b===-1&&(b=N.indexOf(he)),b===-1)return de?[]:H(null,null);const G=(I._bySources||(I._bySources=y(n.decodedMappings(I),I._bySourceMemos=De.map(X))))[b][le];if(G==null)return de?[]:H(null,null);const ae=I._bySourceMemos[b];if(de)return R(G,ae,le,ee,J);const Te=q(G,ae,le,ee,J);if(Te===-1)return H(null,null);const Ne=G[Te];return H(Ne[D]+1,Ne[O])}})();function M(K,I){return{version:K.version,file:K.file,names:K.names,sourceRoot:K.sourceRoot,sources:K.sources,sourcesContent:K.sourcesContent,mappings:I}}function U(K,I,he,le){return{source:K,line:I,column:he,name:le}}function H(K,I){return{line:K,column:I}}function q(K,I,he,le,ee){let J=A(K,le,I,he);return Y?J=(ee===oe?ce:k)(K,le,J):ee===oe&&J++,J===-1||J===K.length?-1:J}function R(K,I,he,le,ee){let J=q(K,I,he,le,w);if(!Y&&ee===oe&&J++,J===-1||J===K.length)return[];const de=Y?le:K[J][e];Y||(J=k(K,de,J));const De=ce(K,de,J),N=[];for(;J<=De;J++){const b=K[J];N.push(H(b[D]+1,b[O]))}return N}n.AnyMap=F,n.GREATEST_LOWER_BOUND=w,n.LEAST_UPPER_BOUND=oe,n.TraceMap=re,Object.defineProperty(n,"__esModule",{value:!0})})}(aE,aE.exports)),aE.exports}(function(i,t){(function(n,o){o(t,jme(),Jme(),zme())})(Pm,function(n,o,l,d){n.addSegment=void 0,n.addMapping=void 0,n.maybeAddSegment=void 0,n.maybeAddMapping=void 0,n.setSourceContent=void 0,n.toDecodedMap=void 0,n.toEncodedMap=void 0,n.fromMap=void 0,n.allMappings=void 0;let T;class s{constructor({file:ce,sourceRoot:k}={}){this._names=new o.SetArray,this._sources=new o.SetArray,this._sourcesContent=[],this._mappings=[],this.file=ce,this.sourceRoot=k}}n.addSegment=(Z,ce,k,X,A,y,C,B)=>T(!1,Z,ce,k,X,A,y,C,B),n.maybeAddSegment=(Z,ce,k,X,A,y,C,B)=>T(!0,Z,ce,k,X,A,y,C,B),n.addMapping=(Z,ce)=>Y(!1,Z,ce),n.maybeAddMapping=(Z,ce)=>Y(!0,Z,ce),n.setSourceContent=(Z,ce,k)=>{const{_sources:X,_sourcesContent:A}=Z;A[o.put(X,ce)]=k},n.toDecodedMap=Z=>{const{file:ce,sourceRoot:k,_mappings:X,_sources:A,_sourcesContent:y,_names:C}=Z;return E(X),{version:3,file:ce||void 0,names:C.array,sourceRoot:k||void 0,sources:A.array,sourcesContent:y,mappings:X}},n.toEncodedMap=Z=>{const ce=n.toDecodedMap(Z);return Object.assign(Object.assign({},ce),{mappings:l.encode(ce.mappings)})},n.allMappings=Z=>{const ce=[],{_mappings:k,_sources:X,_names:A}=Z;for(let y=0;y<k.length;y++){const C=k[y];for(let B=0;B<C.length;B++){const F=C[B],z={line:y+1,column:F[0]};let ge,Pe,fe;F.length!==1&&(ge=X.array[F[1]],Pe={line:F[2]+1,column:F[3]},F.length===5&&(fe=A.array[F[4]])),ce.push({generated:z,source:ge,original:Pe,name:fe})}}return ce},n.fromMap=Z=>{const ce=new d.TraceMap(Z),k=new s({file:ce.file,sourceRoot:ce.sourceRoot});return v(k._names,ce.names),v(k._sources,ce.sources),k._sourcesContent=ce.sourcesContent||ce.sources.map(()=>null),k._mappings=d.decodedMappings(ce),k},T=(Z,ce,k,X,A,y,C,B,F)=>{const{_mappings:z,_sources:ge,_sourcesContent:Pe,_names:fe}=ce,_e=D(z,k),ne=O(_e,X);if(!A)return Z&&S(_e,ne)?void 0:W(_e,ne,[X]);const oe=o.put(ge,A),w=B?o.put(fe,B):-1;if(oe===Pe.length&&(Pe[oe]=F??null),!(Z&&te(_e,ne,oe,y,C,w)))return W(_e,ne,B?[X,oe,y,C,w]:[X,oe,y,C])};function D(Z,ce){for(let k=Z.length;k<=ce;k++)Z[k]=[];return Z[ce]}function O(Z,ce){let k=Z.length;for(let X=k-1;X>=0;k=X--){const A=Z[X];if(ce>=A[0])break}return k}function W(Z,ce,k){for(let X=Z.length;X>ce;X--)Z[X]=Z[X-1];Z[ce]=k}function E(Z){const{length:ce}=Z;let k=ce;for(let X=k-1;X>=0&&!(Z[X].length>0);k=X,X--);k<ce&&(Z.length=k)}function v(Z,ce){for(let k=0;k<ce.length;k++)o.put(Z,ce[k])}function S(Z,ce){return ce===0?!0:Z[ce-1].length===1}function te(Z,ce,k,X,A,y){if(ce===0)return!1;const C=Z[ce-1];return C.length===1?!1:k===C[1]&&X===C[2]&&A===C[3]&&y===(C.length===5?C[4]:-1)}function Y(Z,ce,k){const{generated:X,source:A,original:y,name:C,content:B}=k;if(!A)return T(Z,ce,X.line-1,X.column,null,null,null,null,null);const F=A;return T(Z,ce,X.line-1,X.column,F,y.line-1,y.column,C,B)}n.GenMapping=s,Object.defineProperty(n,"__esModule",{value:!0})})})($I,$I.exports);var yS=$I.exports;function Wme({code:i,mappings:t},n,o,l,d){const m=qme(l,d),$=new yS.GenMapping({file:o.compiledFilename});let h=0,e=t[0];for(;e===void 0&&h<t.length-1;)h++,e=t[h];let c=0,P=0;e!==P&&yS.maybeAddSegment($,c,0,n,c,0);for(let O=0;O<i.length;O++){if(O===e){const W=e-P,E=m[h];for(yS.maybeAddSegment($,c,W,n,c,E);(e===O||e===void 0)&&h<t.length-1;)h++,e=t[h]}i.charCodeAt(O)===Jn.lineFeed&&(c++,P=O+1,e!==P&&yS.maybeAddSegment($,c,0,n,c,0))}const{sourceRoot:T,sourcesContent:s,...D}=yS.toEncodedMap($);return D}function qme(i,t){const n=new Array(t.length);let o=0,l=t[o].start,d=0;for(let m=0;m<i.length;m++)m===l&&(n[o]=l-d,o++,l=t[o].start),i.charCodeAt(m)===Jn.lineFeed&&(d=m+1);return n}const $me={require:`
import {createRequire as CREATE_REQUIRE_NAME} from "module";
const require = CREATE_REQUIRE_NAME(import.meta.url);
`,interopRequireWildcard:`
function interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
return newObj;
}
}
`,interopRequireDefault:`
function interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
`,createNamedExportFrom:`
function createNamedExportFrom(obj, localName, importedName) {
Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
}
`,createStarExport:`
function createStarExport(obj) {
Object.keys(obj)
.filter((key) => key !== "default" && key !== "__esModule")
.forEach((key) => {
if (exports.hasOwnProperty(key)) {
return;
}
Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
});
}
`,nullishCoalesce:`
function nullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return rhsFn();
}
}
`,asyncNullishCoalesce:`
async function asyncNullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return await rhsFn();
}
}
`,optionalChain:`
function optionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,asyncOptionalChain:`
async function asyncOptionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = await fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = await fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,optionalChainDelete:`
function optionalChainDelete(ops) {
const result = OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`,asyncOptionalChainDelete:`
async function asyncOptionalChainDelete(ops) {
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`};class gC{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,gC.prototype.__init.call(this),gC.prototype.__init2.call(this)}getHelperName(t){let n=this.helperNames[t];return n||(n=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=n,n)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[n,o]of Object.entries($me)){const l=this.helperNames[n];let d=o;n==="optionalChainDelete"?d=d.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?d=d.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),d=d.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),l&&(t+=" ",t+=d.replace(n,l).replace(/\s+/g," ").trim())}return t}}function aR(i,t,n){Hme(i,n)&&Gme(i,t,n)}function Hme(i,t){for(const n of i.tokens)if(n.type===ie.name&&fme(n)&&t.has(i.identifierNameForToken(n)))return!0;return!1}function Gme(i,t,n){const o=[];let l=t.length-1;for(let d=i.tokens.length-1;;d--){for(;o.length>0&&o[o.length-1].startTokenIndex===d+1;)o.pop();for(;l>=0&&t[l].endTokenIndex===d+1;)o.push(t[l]),l--;if(d<0)break;const m=i.tokens[d],$=i.identifierNameForToken(m);if(o.length>1&&m.type===ie.name&&n.has($)){if(pme(m))oR(o[o.length-1],i,$);else if(dme(m)){let h=o.length-1;for(;h>0&&!o[h].isFunctionScope;)h--;if(h<0)throw new Error("Did not find parent function scope.");oR(o[h],i,$)}}}if(o.length>0)throw new Error("Expected empty scope stack after processing file.")}function oR(i,t,n){for(let o=i.startTokenIndex;o<i.endTokenIndex;o++){const l=t.tokens[o];(l.type===ie.name||l.type===ie.jsxName)&&t.identifierNameForToken(l)===n&&(l.shadowsGlobal=!0)}}function Kme(i,t){const n=[];for(const o of t)o.type===ie.name&&n.push(i.slice(o.start,o.end));return n}class C3{__init(){this.usedNames=new Set}constructor(t,n){C3.prototype.__init.call(this),this.usedNames=new Set(Kme(t,n))}claimFreeName(t){const n=this.findFreeName(t);return this.usedNames.add(n),n}findFreeName(t){if(!this.usedNames.has(t))return t;let n=2;for(;this.usedNames.has(t+String(n));)n++;return t+String(n)}}var pu={},HI={},_h={},Qme=Pm&&Pm.__extends||function(){var i=function(t,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var d in l)l.hasOwnProperty(d)&&(o[d]=l[d])},i(t,n)};return function(t,n){i(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(_h,"__esModule",{value:!0});_h.DetailContext=_h.NoopContext=_h.VError=void 0;var UV=function(i){Qme(t,i);function t(n,o){var l=i.call(this,o)||this;return l.path=n,Object.setPrototypeOf(l,t.prototype),l}return t}(Error);_h.VError=UV;var Xme=function(){function i(){}return i.prototype.fail=function(t,n,o){return!1},i.prototype.unionResolver=function(){return this},i.prototype.createContext=function(){return this},i.prototype.resolveUnion=function(t){},i}();_h.NoopContext=Xme;var VV=function(){function i(){this._propNames=[""],this._messages=[null],this._score=0}return i.prototype.fail=function(t,n,o){return this._propNames.push(t),this._messages.push(n),this._score+=o,!1},i.prototype.unionResolver=function(){return new Yme},i.prototype.resolveUnion=function(t){for(var n,o,l=t,d=null,m=0,$=l.contexts;m<$.length;m++){var h=$[m];(!d||h._score>=d._score)&&(d=h)}d&&d._score>0&&((n=this._propNames).push.apply(n,d._propNames),(o=this._messages).push.apply(o,d._messages))},i.prototype.getError=function(t){for(var n=[],o=this._propNames.length-1;o>=0;o--){var l=this._propNames[o];t+=typeof l=="number"?"["+l+"]":l?"."+l:"";var d=this._messages[o];d&&n.push(t+" "+d)}return new UV(t,n.join("; "))},i.prototype.getErrorDetail=function(t){for(var n=[],o=this._propNames.length-1;o>=0;o--){var l=this._propNames[o];t+=typeof l=="number"?"["+l+"]":l?"."+l:"";var d=this._messages[o];d&&n.push({path:t,message:d})}for(var m=null,o=n.length-1;o>=0;o--)m&&(n[o].nested=[m]),m=n[o];return m},i}();_h.DetailContext=VV;var Yme=function(){function i(){this.contexts=[]}return i.prototype.createContext=function(){var t=new VV;return this.contexts.push(t),t},i}();(function(i){var t=Pm&&Pm.__extends||function(){var U=function(H,q){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,K){R.__proto__=K}||function(R,K){for(var I in K)K.hasOwnProperty(I)&&(R[I]=K[I])},U(H,q)};return function(H,q){U(H,q);function R(){this.constructor=H}H.prototype=q===null?Object.create(q):(R.prototype=q.prototype,new R)}}();Object.defineProperty(i,"__esModule",{value:!0}),i.basicTypes=i.BasicType=i.TParamList=i.TParam=i.param=i.TFunc=i.func=i.TProp=i.TOptional=i.opt=i.TIface=i.iface=i.TEnumLiteral=i.enumlit=i.TEnumType=i.enumtype=i.TIntersection=i.intersection=i.TUnion=i.union=i.TTuple=i.tuple=i.TArray=i.array=i.TLiteral=i.lit=i.TName=i.name=i.TType=void 0;var n=_h,o=function(){function U(){}return U}();i.TType=o;function l(U){return typeof U=="string"?m(U):U}function d(U,H){var q=U[H];if(!q)throw new Error("Unknown type "+H);return q}function m(U){return new $(U)}i.name=m;var $=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.name=q,R._failMsg="is not a "+q,R}return H.prototype.getChecker=function(q,R,K){var I=this,he=d(q,this.name),le=he.getChecker(q,R,K);return he instanceof fe||he instanceof H?le:function(ee,J){return le(ee,J)?!0:J.fail(null,I._failMsg,0)}},H}(o);i.TName=$;function h(U){return new e(U)}i.lit=h;var e=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.value=q,R.name=JSON.stringify(q),R._failMsg="is not "+R.name,R}return H.prototype.getChecker=function(q,R){var K=this;return function(I,he){return I===K.value?!0:he.fail(null,K._failMsg,-1)}},H}(o);i.TLiteral=e;function c(U){return new P(l(U))}i.array=c;var P=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.ttype=q,R}return H.prototype.getChecker=function(q,R){var K=this.ttype.getChecker(q,R);return function(I,he){if(!Array.isArray(I))return he.fail(null,"is not an array",0);for(var le=0;le<I.length;le++){var ee=K(I[le],he);if(!ee)return he.fail(le,null,1)}return!0}},H}(o);i.TArray=P;function T(){for(var U=[],H=0;H<arguments.length;H++)U[H]=arguments[H];return new s(U.map(function(q){return l(q)}))}i.tuple=T;var s=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.ttypes=q,R}return H.prototype.getChecker=function(q,R){var K=this.ttypes.map(function(he){return he.getChecker(q,R)}),I=function(he,le){if(!Array.isArray(he))return le.fail(null,"is not an array",0);for(var ee=0;ee<K.length;ee++){var J=K[ee](he[ee],le);if(!J)return le.fail(ee,null,1)}return!0};return R?function(he,le){return I(he,le)?he.length<=K.length?!0:le.fail(K.length,"is extraneous",2):!1}:I},H}(o);i.TTuple=s;function D(){for(var U=[],H=0;H<arguments.length;H++)U[H]=arguments[H];return new O(U.map(function(q){return l(q)}))}i.union=D;var O=function(U){t(H,U);function H(q){var R=U.call(this)||this;R.ttypes=q;var K=q.map(function(he){return he instanceof $||he instanceof e?he.name:null}).filter(function(he){return he}),I=q.length-K.length;return K.length?(I>0&&K.push(I+" more"),R._failMsg="is none of "+K.join(", ")):R._failMsg="is none of "+I+" types",R}return H.prototype.getChecker=function(q,R){var K=this,I=this.ttypes.map(function(he){return he.getChecker(q,R)});return function(he,le){for(var ee=le.unionResolver(),J=0;J<I.length;J++){var de=I[J](he,ee.createContext());if(de)return!0}return le.resolveUnion(ee),le.fail(null,K._failMsg,0)}},H}(o);i.TUnion=O;function W(){for(var U=[],H=0;H<arguments.length;H++)U[H]=arguments[H];return new E(U.map(function(q){return l(q)}))}i.intersection=W;var E=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.ttypes=q,R}return H.prototype.getChecker=function(q,R){var K=new Set,I=this.ttypes.map(function(he){return he.getChecker(q,R,K)});return function(he,le){var ee=I.every(function(J){return J(he,le)});return ee?!0:le.fail(null,null,0)}},H}(o);i.TIntersection=E;function v(U){return new S(U)}i.enumtype=v;var S=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.members=q,R.validValues=new Set,R._failMsg="is not a valid enum value",R.validValues=new Set(Object.keys(q).map(function(K){return q[K]})),R}return H.prototype.getChecker=function(q,R){var K=this;return function(I,he){return K.validValues.has(I)?!0:he.fail(null,K._failMsg,0)}},H}(o);i.TEnumType=S;function te(U,H){return new Y(U,H)}i.enumlit=te;var Y=function(U){t(H,U);function H(q,R){var K=U.call(this)||this;return K.enumName=q,K.prop=R,K._failMsg="is not "+q+"."+R,K}return H.prototype.getChecker=function(q,R){var K=this,I=d(q,this.enumName);if(!(I instanceof S))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var he=I.members[this.prop];if(!I.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(le,ee){return le===he?!0:ee.fail(null,K._failMsg,-1)}},H}(o);i.TEnumLiteral=Y;function Z(U){return Object.keys(U).map(function(H){return ce(H,U[H])})}function ce(U,H){return H instanceof y?new C(U,H.ttype,!0):new C(U,l(H),!1)}function k(U,H){return new X(U,Z(H))}i.iface=k;var X=function(U){t(H,U);function H(q,R){var K=U.call(this)||this;return K.bases=q,K.props=R,K.propSet=new Set(R.map(function(I){return I.name})),K}return H.prototype.getChecker=function(q,R,K){var I=this,he=this.bases.map(function(N){return d(q,N).getChecker(q,R)}),le=this.props.map(function(N){return N.ttype.getChecker(q,R)}),ee=new n.NoopContext,J=this.props.map(function(N,b){return!N.isOpt&&!le[b](void 0,ee)}),de=function(N,b){if(typeof N!="object"||N===null)return b.fail(null,"is not an object",0);for(var Q=0;Q<he.length;Q++)if(!he[Q](N,b))return!1;for(var Q=0;Q<le.length;Q++){var G=I.props[Q].name,ae=N[G];if(ae===void 0){if(J[Q])return b.fail(G,"is missing",1)}else{var Te=le[Q](ae,b);if(!Te)return b.fail(G,null,1)}}return!0};if(!R)return de;var De=this.propSet;return K&&(this.propSet.forEach(function(N){return K.add(N)}),De=K),function(N,b){if(!de(N,b))return!1;for(var Q in N)if(!De.has(Q))return b.fail(Q,"is extraneous",2);return!0}},H}(o);i.TIface=X;function A(U){return new y(l(U))}i.opt=A;var y=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.ttype=q,R}return H.prototype.getChecker=function(q,R){var K=this.ttype.getChecker(q,R);return function(I,he){return I===void 0||K(I,he)}},H}(o);i.TOptional=y;var C=function(){function U(H,q,R){this.name=H,this.ttype=q,this.isOpt=R}return U}();i.TProp=C;function B(U){for(var H=[],q=1;q<arguments.length;q++)H[q-1]=arguments[q];return new F(new Pe(H),l(U))}i.func=B;var F=function(U){t(H,U);function H(q,R){var K=U.call(this)||this;return K.paramList=q,K.result=R,K}return H.prototype.getChecker=function(q,R){return function(K,I){return typeof K=="function"?!0:I.fail(null,"is not a function",0)}},H}(o);i.TFunc=F;function z(U,H,q){return new ge(U,l(H),!!q)}i.param=z;var ge=function(){function U(H,q,R){this.name=H,this.ttype=q,this.isOpt=R}return U}();i.TParam=ge;var Pe=function(U){t(H,U);function H(q){var R=U.call(this)||this;return R.params=q,R}return H.prototype.getChecker=function(q,R){var K=this,I=this.params.map(function(J){return J.ttype.getChecker(q,R)}),he=new n.NoopContext,le=this.params.map(function(J,de){return!J.isOpt&&!I[de](void 0,he)}),ee=function(J,de){if(!Array.isArray(J))return de.fail(null,"is not an array",0);for(var De=0;De<I.length;De++){var N=K.params[De];if(J[De]===void 0){if(le[De])return de.fail(N.name,"is missing",1)}else{var b=I[De](J[De],de);if(!b)return de.fail(N.name,null,1)}}return!0};return R?function(J,de){return ee(J,de)?J.length<=I.length?!0:de.fail(I.length,"is extraneous",2):!1}:ee},H}(o);i.TParamList=Pe;var fe=function(U){t(H,U);function H(q,R){var K=U.call(this)||this;return K.validator=q,K.message=R,K}return H.prototype.getChecker=function(q,R){var K=this;return function(I,he){return K.validator(I)?!0:he.fail(null,K.message,0)}},H}(o);i.BasicType=fe,i.basicTypes={any:new fe(function(U){return!0},"is invalid"),number:new fe(function(U){return typeof U=="number"},"is not a number"),object:new fe(function(U){return typeof U=="object"&&U},"is not an object"),boolean:new fe(function(U){return typeof U=="boolean"},"is not a boolean"),string:new fe(function(U){return typeof U=="string"},"is not a string"),symbol:new fe(function(U){return typeof U=="symbol"},"is not a symbol"),void:new fe(function(U){return U==null},"is not void"),undefined:new fe(function(U){return U===void 0},"is not undefined"),null:new fe(function(U){return U===null},"is not null"),never:new fe(function(U){return!1},"is unexpected"),Date:new fe(ne("[object Date]"),"is not a Date"),RegExp:new fe(ne("[object RegExp]"),"is not a RegExp")};var _e=Object.prototype.toString;function ne(U){return function(H){return typeof H=="object"&&H&&_e.call(H)===U}}typeof Buffer<"u"&&(i.basicTypes.Buffer=new fe(function(U){return Buffer.isBuffer(U)},"is not a Buffer"));for(var oe=function(U){i.basicTypes[U.name]=new fe(function(H){return H instanceof U},"is not a "+U.name)},w=0,re=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];w<re.length;w++){var M=re[w];oe(M)}})(HI);(function(i){var t=Pm&&Pm.__spreadArrays||function(){for(var h=0,e=0,c=arguments.length;e<c;e++)h+=arguments[e].length;for(var P=Array(h),T=0,e=0;e<c;e++)for(var s=arguments[e],D=0,O=s.length;D<O;D++,T++)P[T]=s[D];return P};Object.defineProperty(i,"__esModule",{value:!0}),i.Checker=i.createCheckers=void 0;var n=HI,o=_h,l=HI;Object.defineProperty(i,"TArray",{enumerable:!0,get:function(){return l.TArray}}),Object.defineProperty(i,"TEnumType",{enumerable:!0,get:function(){return l.TEnumType}}),Object.defineProperty(i,"TEnumLiteral",{enumerable:!0,get:function(){return l.TEnumLiteral}}),Object.defineProperty(i,"TFunc",{enumerable:!0,get:function(){return l.TFunc}}),Object.defineProperty(i,"TIface",{enumerable:!0,get:function(){return l.TIface}}),Object.defineProperty(i,"TLiteral",{enumerable:!0,get:function(){return l.TLiteral}}),Object.defineProperty(i,"TName",{enumerable:!0,get:function(){return l.TName}}),Object.defineProperty(i,"TOptional",{enumerable:!0,get:function(){return l.TOptional}}),Object.defineProperty(i,"TParam",{enumerable:!0,get:function(){return l.TParam}}),Object.defineProperty(i,"TParamList",{enumerable:!0,get:function(){return l.TParamList}}),Object.defineProperty(i,"TProp",{enumerable:!0,get:function(){return l.TProp}}),Object.defineProperty(i,"TTuple",{enumerable:!0,get:function(){return l.TTuple}}),Object.defineProperty(i,"TType",{enumerable:!0,get:function(){return l.TType}}),Object.defineProperty(i,"TUnion",{enumerable:!0,get:function(){return l.TUnion}}),Object.defineProperty(i,"TIntersection",{enumerable:!0,get:function(){return l.TIntersection}}),Object.defineProperty(i,"array",{enumerable:!0,get:function(){return l.array}}),Object.defineProperty(i,"enumlit",{enumerable:!0,get:function(){return l.enumlit}}),Object.defineProperty(i,"enumtype",{enumerable:!0,get:function(){return l.enumtype}}),Object.defineProperty(i,"func",{enumerable:!0,get:function(){return l.func}}),Object.defineProperty(i,"iface",{enumerable:!0,get:function(){return l.iface}}),Object.defineProperty(i,"lit",{enumerable:!0,get:function(){return l.lit}}),Object.defineProperty(i,"name",{enumerable:!0,get:function(){return l.name}}),Object.defineProperty(i,"opt",{enumerable:!0,get:function(){return l.opt}}),Object.defineProperty(i,"param",{enumerable:!0,get:function(){return l.param}}),Object.defineProperty(i,"tuple",{enumerable:!0,get:function(){return l.tuple}}),Object.defineProperty(i,"union",{enumerable:!0,get:function(){return l.union}}),Object.defineProperty(i,"intersection",{enumerable:!0,get:function(){return l.intersection}}),Object.defineProperty(i,"BasicType",{enumerable:!0,get:function(){return l.BasicType}});var d=_h;Object.defineProperty(i,"VError",{enumerable:!0,get:function(){return d.VError}});function m(){for(var h=[],e=0;e<arguments.length;e++)h[e]=arguments[e];for(var c=Object.assign.apply(Object,t([{},n.basicTypes],h)),P={},T=0,s=h;T<s.length;T++)for(var D=s[T],O=0,W=Object.keys(D);O<W.length;O++){var E=W[O];P[E]=new $(c,D[E])}return P}i.createCheckers=m;var $=function(){function h(e,c,P){if(P===void 0&&(P="value"),this.suite=e,this.ttype=c,this._path=P,this.props=new Map,c instanceof n.TIface)for(var T=0,s=c.props;T<s.length;T++){var D=s[T];this.props.set(D.name,D.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return h.prototype.setReportedPath=function(e){this._path=e},h.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},h.prototype.test=function(e){return this.checkerPlain(e,new o.NoopContext)},h.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},h.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},h.prototype.strictTest=function(e){return this.checkerStrict(e,new o.NoopContext)},h.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},h.prototype.getProp=function(e){var c=this.props.get(e);if(!c)throw new Error("Type has no property "+e);return new h(this.suite,c,this._path+"."+e)},h.prototype.methodArgs=function(e){var c=this._getMethod(e);return new h(this.suite,c.paramList)},h.prototype.methodResult=function(e){var c=this._getMethod(e);return new h(this.suite,c.result)},h.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new h(this.suite,this.ttype.paramList)},h.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new h(this.suite,this.ttype.result)},h.prototype.getType=function(){return this.ttype},h.prototype._doCheck=function(e,c){var P=new o.NoopContext;if(!e(c,P)){var T=new o.DetailContext;throw e(c,T),T.getError(this._path)}},h.prototype._doValidate=function(e,c){var P=new o.NoopContext;if(e(c,P))return null;var T=new o.DetailContext;return e(c,T),T.getErrorDetail(this._path)},h.prototype._getMethod=function(e){var c=this.props.get(e);if(!c)throw new Error("Type has no property "+e);if(!(c instanceof n.TFunc))throw new Error("Property "+e+" is not a method");return c},h}();i.Checker=$})(pu);const Zme=pu.union(pu.lit("jsx"),pu.lit("typescript"),pu.lit("flow"),pu.lit("imports"),pu.lit("react-hot-loader"),pu.lit("jest")),ege=pu.iface([],{compiledFilename:"string"}),rge=pu.iface([],{transforms:pu.array("Transform"),disableESTransforms:pu.opt("boolean"),jsxRuntime:pu.opt(pu.union(pu.lit("classic"),pu.lit("automatic"),pu.lit("preserve"))),production:pu.opt("boolean"),jsxImportSource:pu.opt("string"),jsxPragma:pu.opt("string"),jsxFragmentPragma:pu.opt("string"),preserveDynamicImport:pu.opt("boolean"),injectCreateRequireForImportRequire:pu.opt("boolean"),enableLegacyTypeScriptModuleInterop:pu.opt("boolean"),enableLegacyBabel5ModuleInterop:pu.opt("boolean"),sourceMapOptions:pu.opt("SourceMapOptions"),filePath:pu.opt("string")}),tge={Transform:Zme,SourceMapOptions:ege,Options:rge},{Options:nge}=pu.createCheckers(tge);function ige(i){nge.strictCheck(i)}function zV(){Ui(),Of(!1)}function WV(i){Ui(),Pk(i)}function wy(i){as(),k3(i)}function hC(){as(),br.tokens[br.tokens.length-1].identifierRole=$o.ImportDeclaration}function k3(i){let t;br.scopeDepth===0?t=$o.TopLevelDeclaration:i?t=$o.BlockScopedDeclaration:t=$o.FunctionScopedDeclaration,br.tokens[br.tokens.length-1].identifierRole=t}function Pk(i){switch(br.type){case ie._this:{const t=As(0);Ui(),Ps(t);return}case ie._yield:case ie.name:{br.type=ie.name,wy(i);return}case ie.bracketL:{Ui(),A3(ie.bracketR,i,!0);return}case ie.braceL:j3(!0,i);return;default:Ss()}}function A3(i,t,n=!1,o=!1,l=0){let d=!0,m=!1;const $=br.tokens.length;for(;!gi(i)&&!br.error;)if(d?d=!1:(Ji(ie.comma),br.tokens[br.tokens.length-1].contextId=l,!m&&br.tokens[$].isType&&(br.tokens[br.tokens.length-1].isType=!0,m=!0)),!(n&&Jt(ie.comma))){if(gi(i))break;if(Jt(ie.ellipsis)){WV(t),qV(),gi(ie.comma),Ji(i);break}else age(o,t)}}function age(i,t){i&&P3([pn._public,pn._protected,pn._private,pn._readonly,pn._override]),vC(t),qV(),vC(t,!0)}function qV(){vc?xve():ec&&dhe()}function vC(i,t=!1){if(t||Pk(i),!gi(ie.eq))return;const n=br.tokens.length-1;Of(),br.tokens[n].rhsEndIndex=br.tokens.length}function GI(){return Jt(ie.name)}function oge(){return Jt(ie.name)||!!(br.type&ie.IS_KEYWORD)||Jt(ie.string)||Jt(ie.num)||Jt(ie.bigint)||Jt(ie.decimal)}function $V(){const i=br.snapshot();return Ui(),(Jt(ie.bracketL)||Jt(ie.braceL)||Jt(ie.star)||Jt(ie.ellipsis)||Jt(ie.hash)||oge())&&!B_()?!0:(br.restoreFromSnapshot(i),!1)}function P3(i){for(;HV(i)!==null;);}function HV(i){if(!Jt(ie.name))return null;const t=br.contextualKeyword;if(i.indexOf(t)!==-1&&$V()){switch(t){case pn._readonly:br.tokens[br.tokens.length-1].type=ie._readonly;break;case pn._abstract:br.tokens[br.tokens.length-1].type=ie._abstract;break;case pn._static:br.tokens[br.tokens.length-1].type=ie._static;break;case pn._public:br.tokens[br.tokens.length-1].type=ie._public;break;case pn._private:br.tokens[br.tokens.length-1].type=ie._private;break;case pn._protected:br.tokens[br.tokens.length-1].type=ie._protected;break;case pn._override:br.tokens[br.tokens.length-1].type=ie._override;break;case pn._declare:br.tokens[br.tokens.length-1].type=ie._declare;break}return t}return null}function jD(){for(as();gi(ie.dot);)as()}function sge(){jD(),!B_()&&Jt(ie.lessThan)&&J2()}function cge(){Ui(),JD()}function uge(){Ui()}function lge(){Ji(ie._typeof),Jt(ie._import)?GV():jD(),!B_()&&Jt(ie.lessThan)&&J2()}function GV(){Ji(ie._import),Ji(ie.parenL),Ji(ie.string),Ji(ie.parenR),gi(ie.dot)&&jD(),Jt(ie.lessThan)&&J2()}function fge(){gi(ie._const);const i=gi(ie._in),t=Ql(pn._out);gi(ie._const),(i||t)&&!Jt(ie.name)?br.tokens[br.tokens.length-1].type=ie.name:as(),gi(ie._extends)&&el(),gi(ie.eq)&&el()}function W1(){Jt(ie.lessThan)&&wk()}function wk(){const i=As(0);for(Jt(ie.lessThan)||Jt(ie.typeParameterStart)?Ui():Ss();!gi(ie.greaterThan)&&!br.error;)fge(),gi(ie.comma);Ps(i)}function w3(i){const t=i===ie.arrow;W1(),Ji(ie.parenL),br.scopeDepth++,pge(!1),br.scopeDepth--,(t||Jt(i))&&DD(i)}function pge(i){A3(ie.parenR,i)}function yC(){gi(ie.comma)||Pu()}function sR(){w3(ie.colon),yC()}function dge(){const i=br.snapshot();Ui();const t=gi(ie.name)&&Jt(ie.colon);return br.restoreFromSnapshot(i),t}function KV(){if(!(Jt(ie.bracketL)&&dge()))return!1;const i=As(0);return Ji(ie.bracketL),as(),JD(),Ji(ie.bracketR),j2(),yC(),Ps(i),!0}function cR(i){gi(ie.question),!i&&(Jt(ie.parenL)||Jt(ie.lessThan))?(w3(ie.colon),yC()):(j2(),yC())}function _ge(){if(Jt(ie.parenL)||Jt(ie.lessThan)){sR();return}if(Jt(ie._new)){Ui(),Jt(ie.parenL)||Jt(ie.lessThan)?sR():cR(!1);return}const i=!!HV([pn._readonly]);KV()||((Fo(pn._get)||Fo(pn._set))&&$V(),xD(-1),cR(i))}function mge(){QV()}function QV(){for(Ji(ie.braceL);!gi(ie.braceR)&&!br.error;)_ge()}function gge(){const i=br.snapshot(),t=hge();return br.restoreFromSnapshot(i),t}function hge(){return Ui(),gi(ie.plus)||gi(ie.minus)?Fo(pn._readonly):(Fo(pn._readonly)&&Ui(),!Jt(ie.bracketL)||(Ui(),!GI())?!1:(Ui(),Jt(ie._in)))}function vge(){as(),Ji(ie._in),el()}function yge(){Ji(ie.braceL),Jt(ie.plus)||Jt(ie.minus)?(Ui(),Kl(pn._readonly)):Ql(pn._readonly),Ji(ie.bracketL),vge(),Ql(pn._as)&&el(),Ji(ie.bracketR),Jt(ie.plus)||Jt(ie.minus)?(Ui(),Ji(ie.question)):gi(ie.question),Oge(),Pu(),Ji(ie.braceR)}function bge(){for(Ji(ie.bracketL);!gi(ie.bracketR)&&!br.error;)Sge(),gi(ie.comma)}function Sge(){gi(ie.ellipsis)?el():(el(),gi(ie.question)),gi(ie.colon)&&el()}function Dge(){Ji(ie.parenL),el(),Ji(ie.parenR)}function xge(){for(_y(),_y();!Jt(ie.backQuote)&&!br.error;)Ji(ie.dollarBraceL),el(),_y(),_y();Ui()}var hy;(function(i){i[i.TSFunctionType=0]="TSFunctionType";const n=0+1;i[i.TSConstructorType=n]="TSConstructorType";const o=n+1;i[i.TSAbstractConstructorType=o]="TSAbstractConstructorType"})(hy||(hy={}));function LN(i){i===hy.TSAbstractConstructorType&&Kl(pn._abstract),(i===hy.TSConstructorType||i===hy.TSAbstractConstructorType)&&Ji(ie._new);const t=br.inDisallowConditionalTypesContext;br.inDisallowConditionalTypesContext=!1,w3(ie.arrow),br.inDisallowConditionalTypesContext=t}function Tge(){switch(br.type){case ie.name:sge();return;case ie._void:case ie._null:Ui();return;case ie.string:case ie.num:case ie.bigint:case ie.decimal:case ie._true:case ie._false:D2();return;case ie.minus:Ui(),D2();return;case ie._this:{uge(),Fo(pn._is)&&!B_()&&cge();return}case ie._typeof:lge();return;case ie._import:GV();return;case ie.braceL:gge()?yge():mge();return;case ie.bracketL:bge();return;case ie.parenL:Dge();return;case ie.backQuote:xge();return;default:if(br.type&ie.IS_KEYWORD){Ui(),br.tokens[br.tokens.length-1].type=ie.name;return}break}Ss()}function Ege(){for(Tge();!B_()&&gi(ie.bracketL);)gi(ie.bracketR)||(el(),Ji(ie.bracketR))}function Cge(){if(Kl(pn._infer),as(),Jt(ie._extends)){const i=br.snapshot();Ji(ie._extends);const t=br.inDisallowConditionalTypesContext;br.inDisallowConditionalTypesContext=!0,el(),br.inDisallowConditionalTypesContext=t,(br.error||!br.inDisallowConditionalTypesContext&&Jt(ie.question))&&br.restoreFromSnapshot(i)}}function KI(){if(Fo(pn._keyof)||Fo(pn._unique)||Fo(pn._readonly))Ui(),KI();else if(Fo(pn._infer))Cge();else{const i=br.inDisallowConditionalTypesContext;br.inDisallowConditionalTypesContext=!1,Ege(),br.inDisallowConditionalTypesContext=i}}function uR(){if(gi(ie.bitwiseAND),KI(),Jt(ie.bitwiseAND))for(;gi(ie.bitwiseAND);)KI()}function kge(){if(gi(ie.bitwiseOR),uR(),Jt(ie.bitwiseOR))for(;gi(ie.bitwiseOR);)uR()}function Age(){return Jt(ie.lessThan)?!0:Jt(ie.parenL)&&wge()}function Pge(){if(Jt(ie.name)||Jt(ie._this))return Ui(),!0;if(Jt(ie.braceL)||Jt(ie.bracketL)){let i=1;for(Ui();i>0&&!br.error;)Jt(ie.braceL)||Jt(ie.bracketL)?i++:(Jt(ie.braceR)||Jt(ie.bracketR))&&i--,Ui();return!0}return!1}function wge(){const i=br.snapshot(),t=Nge();return br.restoreFromSnapshot(i),t}function Nge(){return Ui(),!!(Jt(ie.parenR)||Jt(ie.ellipsis)||Pge()&&(Jt(ie.colon)||Jt(ie.comma)||Jt(ie.question)||Jt(ie.eq)||Jt(ie.parenR)&&(Ui(),Jt(ie.arrow))))}function DD(i){const t=As(0);Ji(i),Mge()||el(),Ps(t)}function Ige(){Jt(ie.colon)&&DD(ie.colon)}function j2(){Jt(ie.colon)&&JD()}function Oge(){gi(ie.colon)&&el()}function Mge(){const i=br.snapshot();return Fo(pn._asserts)?(Ui(),Ql(pn._is)?(el(),!0):GI()||Jt(ie._this)?(Ui(),Ql(pn._is)&&el(),!0):(br.restoreFromSnapshot(i),!1)):GI()||Jt(ie._this)?(Ui(),Fo(pn._is)&&!B_()?(Ui(),el(),!0):(br.restoreFromSnapshot(i),!1)):!1}function JD(){const i=As(0);Ji(ie.colon),el(),Ps(i)}function el(){if(lR(),br.inDisallowConditionalTypesContext||B_()||!gi(ie._extends))return;const i=br.inDisallowConditionalTypesContext;br.inDisallowConditionalTypesContext=!0,lR(),br.inDisallowConditionalTypesContext=i,Ji(ie.question),el(),Ji(ie.colon),el()}function Fge(){return Fo(pn._abstract)&&Zu()===ie._new}function lR(){if(Age()){LN(hy.TSFunctionType);return}if(Jt(ie._new)){LN(hy.TSConstructorType);return}else if(Fge()){LN(hy.TSAbstractConstructorType);return}kge()}function Lge(){const i=As(1);el(),Ji(ie.greaterThan),Ps(i),UD()}function Rge(){if(gi(ie.jsxTagStart)){br.tokens[br.tokens.length-1].type=ie.typeParameterStart;const i=As(1);for(;!Jt(ie.greaterThan)&&!br.error;)el(),gi(ie.comma);Am(),Ps(i)}}function XV(){for(;!Jt(ie.braceL)&&!br.error;)Bge(),gi(ie.comma)}function Bge(){jD(),Jt(ie.lessThan)&&J2()}function jge(){wy(!1),W1(),gi(ie._extends)&&XV(),QV()}function Jge(){wy(!1),W1(),Ji(ie.eq),el(),Pu()}function Uge(){if(Jt(ie.string)?D2():as(),gi(ie.eq)){const i=br.tokens.length-1;Of(),br.tokens[i].rhsEndIndex=br.tokens.length}}function N3(){for(wy(!1),Ji(ie.braceL);!gi(ie.braceR)&&!br.error;)Uge(),gi(ie.comma)}function I3(){Ji(ie.braceL),Mk(ie.braceR)}function QI(){wy(!1),gi(ie.dot)?QI():I3()}function YV(){Fo(pn._global)?as():Jt(ie.string)?Sv():Ss(),Jt(ie.braceL)?I3():Pu()}function XI(){hC(),Ji(ie.eq),zge(),Pu()}function Vge(){return Fo(pn._require)&&Zu()===ie.parenL}function zge(){Vge()?Wge():jD()}function Wge(){Kl(pn._require),Ji(ie.parenL),Jt(ie.string)||Ss(),D2(),Ji(ie.parenR)}function qge(){if(lh())return!1;switch(br.type){case ie._function:{const i=As(1);Ui();const t=br.start;return B1(t,!0),Ps(i),!0}case ie._class:{const i=As(1);return j1(!0,!1),Ps(i),!0}case ie._const:if(Jt(ie._const)&&T3(pn._enum)){const i=As(1);return Ji(ie._const),Kl(pn._enum),br.tokens[br.tokens.length-1].type=ie._enum,N3(),Ps(i),!0}case ie._var:case ie._let:{const i=As(1);return n6(br.type!==ie._var),Ps(i),!0}case ie.name:{const i=As(1),t=br.contextualKeyword;let n=!1;return t===pn._global?(YV(),n=!0):n=Nk(t,!0),Ps(i),n}default:return!1}}function fR(){return Nk(br.contextualKeyword,!0)}function $ge(i){switch(i){case pn._declare:{const t=br.tokens.length-1;if(qge())return br.tokens[t].type=ie._declare,!0;break}case pn._global:if(Jt(ie.braceL))return I3(),!0;break;default:return Nk(i,!1)}return!1}function Nk(i,t){switch(i){case pn._abstract:if(B0(t)&&Jt(ie._class))return br.tokens[br.tokens.length-1].type=ie._abstract,j1(!0,!1),!0;break;case pn._enum:if(B0(t)&&Jt(ie.name))return br.tokens[br.tokens.length-1].type=ie._enum,N3(),!0;break;case pn._interface:if(B0(t)&&Jt(ie.name)){const n=As(t?2:1);return jge(),Ps(n),!0}break;case pn._module:if(B0(t)){if(Jt(ie.string)){const n=As(t?2:1);return YV(),Ps(n),!0}else if(Jt(ie.name)){const n=As(t?2:1);return QI(),Ps(n),!0}}break;case pn._namespace:if(B0(t)&&Jt(ie.name)){const n=As(t?2:1);return QI(),Ps(n),!0}break;case pn._type:if(B0(t)&&Jt(ie.name)){const n=As(t?2:1);return Jge(),Ps(n),!0}break}return!1}function B0(i){return i?(Ui(),!0):!lh()}function Hge(){const i=br.snapshot();return wk(),U2(),Ige(),Ji(ie.arrow),br.error?(br.restoreFromSnapshot(i),!1):(VD(!0),!0)}function O3(){br.type===ie.bitShiftL&&(br.pos-=1,bs(ie.lessThan)),J2()}function J2(){const i=As(0);for(Ji(ie.lessThan);!gi(ie.greaterThan)&&!br.error;)el(),gi(ie.comma);Ps(i)}function ZV(){if(Jt(ie.name))switch(br.contextualKeyword){case pn._abstract:case pn._declare:case pn._enum:case pn._interface:case pn._module:case pn._namespace:case pn._type:return!0}return!1}function Gge(i,t){if(Jt(ie.colon)&&DD(ie.colon),!Jt(ie.braceL)&&lh()){let n=br.tokens.length-1;for(;n>=0&&(br.tokens[n].start>=i||br.tokens[n].type===ie._default||br.tokens[n].type===ie._export);)br.tokens[n].isType=!0,n--;return}VD(!1,t)}function Kge(i,t,n){if(!B_()&&gi(ie.bang)){br.tokens[br.tokens.length-1].type=ie.nonNullAssertion;return}if(Jt(ie.lessThan)||Jt(ie.bitShiftL)){const o=br.snapshot();if(!t&&sz()&&Hge())return;if(O3(),!t&&gi(ie.parenL)?(br.tokens[br.tokens.length-1].subscriptStartIndex=i,vy()):Jt(ie.backQuote)?B3():(br.type===ie.greaterThan||br.type!==ie.parenL&&br.type&ie.IS_EXPRESSION_START&&!B_())&&Ss(),br.error)br.restoreFromSnapshot(o);else return}else!t&&Jt(ie.questionDot)&&Zu()===ie.lessThan&&(Ui(),br.tokens[i].isOptionalChainStart=!0,br.tokens[br.tokens.length-1].subscriptStartIndex=i,J2(),Ji(ie.parenL),vy());F3(i,t,n)}function Qge(){if(gi(ie._import))return Fo(pn._type)&&Zu()!==ie.eq&&Kl(pn._type),XI(),!0;if(gi(ie.eq))return If(),Pu(),!0;if(Ql(pn._as))return Kl(pn._namespace),as(),Pu(),!0;if(Fo(pn._type)){const i=Zu();(i===ie.braceL||i===ie.star)&&Ui()}return!1}function Xge(){if(as(),Jt(ie.comma)||Jt(ie.braceR)){br.tokens[br.tokens.length-1].identifierRole=$o.ImportDeclaration;return}if(as(),Jt(ie.comma)||Jt(ie.braceR)){br.tokens[br.tokens.length-1].identifierRole=$o.ImportDeclaration,br.tokens[br.tokens.length-2].isType=!0,br.tokens[br.tokens.length-1].isType=!0;return}if(as(),Jt(ie.comma)||Jt(ie.braceR)){br.tokens[br.tokens.length-3].identifierRole=$o.ImportAccess,br.tokens[br.tokens.length-1].identifierRole=$o.ImportDeclaration;return}as(),br.tokens[br.tokens.length-3].identifierRole=$o.ImportAccess,br.tokens[br.tokens.length-1].identifierRole=$o.ImportDeclaration,br.tokens[br.tokens.length-4].isType=!0,br.tokens[br.tokens.length-3].isType=!0,br.tokens[br.tokens.length-2].isType=!0,br.tokens[br.tokens.length-1].isType=!0}function Yge(){if(as(),Jt(ie.comma)||Jt(ie.braceR)){br.tokens[br.tokens.length-1].identifierRole=$o.ExportAccess;return}if(as(),Jt(ie.comma)||Jt(ie.braceR)){br.tokens[br.tokens.length-1].identifierRole=$o.ExportAccess,br.tokens[br.tokens.length-2].isType=!0,br.tokens[br.tokens.length-1].isType=!0;return}if(as(),Jt(ie.comma)||Jt(ie.braceR)){br.tokens[br.tokens.length-3].identifierRole=$o.ExportAccess;return}as(),br.tokens[br.tokens.length-3].identifierRole=$o.ExportAccess,br.tokens[br.tokens.length-4].isType=!0,br.tokens[br.tokens.length-3].isType=!0,br.tokens[br.tokens.length-2].isType=!0,br.tokens[br.tokens.length-1].isType=!0}function Zge(){if(Fo(pn._abstract)&&Zu()===ie._class)return br.type=ie._abstract,Ui(),j1(!0,!0),!0;if(Fo(pn._interface)){const i=As(2);return Nk(pn._interface,!0),Ps(i),!0}return!1}function ehe(){if(br.type===ie._const){const i=BD();if(i.type===ie.name&&i.contextualKeyword===pn._enum)return Ji(ie._const),Kl(pn._enum),br.tokens[br.tokens.length-1].type=ie._enum,N3(),!0}return!1}function rhe(i){const t=br.tokens.length;P3([pn._abstract,pn._readonly,pn._declare,pn._static,pn._override]);const n=br.tokens.length;if(KV()){const l=i?t-1:t;for(let d=l;d<n;d++)br.tokens[d].isType=!0;return!0}return!1}function the(i){$ge(i)||Pu()}function nhe(){const i=Ql(pn._declare);i&&(br.tokens[br.tokens.length-1].type=ie._declare);let t=!1;if(Jt(ie.name))if(i){const n=As(2);t=fR(),Ps(n)}else t=fR();if(!t)if(i){const n=As(2);j_(!0),Ps(n)}else j_(!0)}function ihe(i){if(i&&(Jt(ie.lessThan)||Jt(ie.bitShiftL))&&O3(),Ql(pn._implements)){br.tokens[br.tokens.length-1].type=ie._implements;const t=As(1);XV(),Ps(t)}}function ahe(){W1()}function ohe(){W1()}function she(){const i=As(0);B_()||gi(ie.bang),j2(),Ps(i)}function che(){Jt(ie.colon)&&JD()}function uhe(i,t){return kk?lhe(i,t):fhe(i,t)}function lhe(i,t){if(!Jt(ie.lessThan))return mh(i,t);const n=br.snapshot();let o=mh(i,t);if(br.error)br.restoreFromSnapshot(n);else return o;return br.type=ie.typeParameterStart,wk(),o=mh(i,t),o||Ss(),o}function fhe(i,t){if(!Jt(ie.lessThan))return mh(i,t);const n=br.snapshot();wk();const o=mh(i,t);if(o||Ss(),br.error)br.restoreFromSnapshot(n);else return o;return mh(i,t)}function phe(){if(Jt(ie.colon)){const i=br.snapshot();DD(ie.colon),N_()&&Ss(),Jt(ie.arrow)||Ss(),br.error&&br.restoreFromSnapshot(i)}return gi(ie.arrow)}function dhe(){const i=As(0);gi(ie.question),j2(),Ps(i)}function _he(){(Jt(ie.lessThan)||Jt(ie.bitShiftL))&&O3(),vz()}function mhe(){let i=!1,t=!1;for(;;){if(br.pos>=Ba.length){Ss("Unterminated JSX contents");return}const n=Ba.charCodeAt(br.pos);if(n===Jn.lessThan||n===Jn.leftCurlyBrace){if(br.pos===br.start){if(n===Jn.lessThan){br.pos++,bs(ie.jsxTagStart);return}FV(n);return}bs(i&&!t?ie.jsxEmptyText:ie.jsxText);return}n===Jn.lineFeed?i=!0:n!==Jn.space&&n!==Jn.carriageReturn&&n!==Jn.tab&&(t=!0),br.pos++}}function ghe(i){for(br.pos++;;){if(br.pos>=Ba.length){Ss("Unterminated string constant");return}if(Ba.charCodeAt(br.pos)===i){br.pos++;break}br.pos++}bs(ie.string)}function hhe(){let i;do{if(br.pos>Ba.length){Ss("Unexpectedly reached the end of input.");return}i=Ba.charCodeAt(++br.pos)}while(kg[i]||i===Jn.dash);bs(ie.jsxName)}function YI(){Am()}function ez(i){if(YI(),!gi(ie.colon)){br.tokens[br.tokens.length-1].identifierRole=i;return}YI()}function rz(){const i=br.tokens.length;ez($o.Access);let t=!1;for(;Jt(ie.dot);)t=!0,Am(),YI();if(!t){const n=br.tokens[i],o=Ba.charCodeAt(n.start);o>=Jn.lowercaseA&&o<=Jn.lowercaseZ&&(n.identifierRole=null)}}function vhe(){switch(br.type){case ie.braceL:Ui(),If(),Am();return;case ie.jsxTagStart:nz(),Am();return;case ie.string:Am();return;default:Ss("JSX value should be either an expression or a quoted JSX text")}}function yhe(){Ji(ie.ellipsis),If()}function bhe(i){if(Jt(ie.jsxTagEnd))return!1;rz(),ec&&Rge();let t=!1;for(;!Jt(ie.slash)&&!Jt(ie.jsxTagEnd)&&!br.error;){if(gi(ie.braceL)){t=!0,Ji(ie.ellipsis),Of(),Am();continue}t&&br.end-br.start===3&&Ba.charCodeAt(br.start)===Jn.lowercaseK&&Ba.charCodeAt(br.start+1)===Jn.lowercaseE&&Ba.charCodeAt(br.start+2)===Jn.lowercaseY&&(br.tokens[i].jsxRole=xg.KeyAfterPropSpread),ez($o.ObjectKey),Jt(ie.eq)&&(Am(),vhe())}const n=Jt(ie.slash);return n&&Am(),n}function She(){Jt(ie.jsxTagEnd)||rz()}function tz(){const i=br.tokens.length-1;br.tokens[i].jsxRole=xg.NoChildren;let t=0;if(!bhe(i))for(j0();;)switch(br.type){case ie.jsxTagStart:if(Am(),Jt(ie.slash)){Am(),She(),br.tokens[i].jsxRole!==xg.KeyAfterPropSpread&&(t===1?br.tokens[i].jsxRole=xg.OneChild:t>1&&(br.tokens[i].jsxRole=xg.StaticChildren));return}t++,tz(),j0();break;case ie.jsxText:t++,j0();break;case ie.jsxEmptyText:j0();break;case ie.braceL:Ui(),Jt(ie.ellipsis)?(yhe(),j0(),t+=2):(Jt(ie.braceR)||(t++,If()),j0());break;default:Ss();return}}function nz(){Am(),tz()}function Am(){br.tokens.push(new Ak),OV(),br.start=br.pos;const i=Ba.charCodeAt(br.pos);if(RD[i])hhe();else if(i===Jn.quotationMark||i===Jn.apostrophe)ghe(i);else switch(++br.pos,i){case Jn.greaterThan:bs(ie.jsxTagEnd);break;case Jn.lessThan:bs(ie.jsxTagStart);break;case Jn.slash:bs(ie.slash);break;case Jn.equalsTo:bs(ie.eq);break;case Jn.leftCurlyBrace:bs(ie.braceL);break;case Jn.dot:bs(ie.dot);break;case Jn.colon:bs(ie.colon);break;default:Ss()}}function j0(){br.tokens.push(new Ak),br.start=br.pos,mhe()}function Dhe(i){if(Jt(ie.question)){const t=Zu();if(t===ie.colon||t===ie.comma||t===ie.parenR)return}iz(i)}function xhe(){AV(ie.question),Jt(ie.colon)&&(ec?JD():vc&&q1())}class The{constructor(t){this.stop=t}}function If(i=!1){if(Of(i),Jt(ie.comma))for(;gi(ie.comma);)Of(i)}function Of(i=!1,t=!1){return ec?uhe(i,t):vc?Pve(i,t):mh(i,t)}function mh(i,t){if(Jt(ie._yield))return Jhe(),!1;(Jt(ie.parenL)||Jt(ie.name)||Jt(ie._yield))&&(br.potentialArrowAt=br.start);const n=Ehe(i);return t&&R3(),br.type&ie.IS_ASSIGN?(Ui(),Of(i),!1):n}function Ehe(i){return khe(i)?!0:(Che(i),!1)}function Che(i){ec||vc?Dhe(i):iz(i)}function iz(i){gi(ie.question)&&(Of(),Ji(ie.colon),Of(i))}function khe(i){const t=br.tokens.length;return UD()?!0:(TE(t,-1,i),!1)}function TE(i,t,n){if(ec&&(ie._in&ie.PRECEDENCE_MASK)>t&&!B_()&&(Ql(pn._as)||Ql(pn._satisfies))){const l=As(1);el(),Ps(l),Cme(),TE(i,t,n);return}const o=br.type&ie.PRECEDENCE_MASK;if(o>0&&(!n||!Jt(ie._in))&&o>t){const l=br.type;Ui(),l===ie.nullishCoalescing&&(br.tokens[br.tokens.length-1].nullishStartIndex=i);const d=br.tokens.length;UD(),TE(d,l&ie.IS_RIGHT_ASSOCIATIVE?o-1:o,n),l===ie.nullishCoalescing&&(br.tokens[i].numNullishCoalesceStarts++,br.tokens[br.tokens.length-1].numNullishCoalesceEnds++),TE(i,t,n)}}function UD(){if(ec&&!kk&&gi(ie.lessThan))return Lge(),!1;if(Fo(pn._module)&&wV()===Jn.leftCurlyBrace&&!xV())return Uhe(),!1;if(br.type&ie.IS_PREFIX)return Ui(),UD(),!1;if(az())return!0;for(;br.type&ie.IS_POSTFIX&&!N_();)br.type===ie.preIncDec&&(br.type=ie.postIncDec),Ui();return!1}function az(){const i=br.tokens.length;return Sv()?!0:(M3(i),br.tokens.length>i&&br.tokens[i].isOptionalChainStart&&(br.tokens[br.tokens.length-1].isOptionalChainEnd=!0),!1)}function M3(i,t=!1){vc?Nve(i,t):oz(i,t)}function oz(i,t=!1){const n=new The(!1);do Ahe(i,t,n);while(!n.stop&&!br.error)}function Ahe(i,t,n){ec?Kge(i,t,n):vc?fve(i,t,n):F3(i,t,n)}function F3(i,t,n){if(!t&&gi(ie.doubleColon))L3(),n.stop=!0,M3(i,t);else if(Jt(ie.questionDot)){if(br.tokens[i].isOptionalChainStart=!0,t&&Zu()===ie.parenL){n.stop=!0;return}Ui(),br.tokens[br.tokens.length-1].subscriptStartIndex=i,gi(ie.bracketL)?(If(),Ji(ie.bracketR)):gi(ie.parenL)?vy():bC()}else if(gi(ie.dot))br.tokens[br.tokens.length-1].subscriptStartIndex=i,bC();else if(gi(ie.bracketL))br.tokens[br.tokens.length-1].subscriptStartIndex=i,If(),Ji(ie.bracketR);else if(!t&&Jt(ie.parenL))if(sz()){const o=br.snapshot(),l=br.tokens.length;Ui(),br.tokens[br.tokens.length-1].subscriptStartIndex=i;const d=bD();br.tokens[br.tokens.length-1].contextId=d,vy(),br.tokens[br.tokens.length-1].contextId=d,Phe()&&(br.restoreFromSnapshot(o),n.stop=!0,br.scopeDepth++,U2(),whe(l))}else{Ui(),br.tokens[br.tokens.length-1].subscriptStartIndex=i;const o=bD();br.tokens[br.tokens.length-1].contextId=o,vy(),br.tokens[br.tokens.length-1].contextId=o}else Jt(ie.backQuote)?B3():n.stop=!0}function sz(){return br.tokens[br.tokens.length-1].contextualKeyword===pn._async&&!N_()}function vy(){let i=!0;for(;!gi(ie.parenR)&&!br.error;){if(i)i=!1;else if(Ji(ie.comma),gi(ie.parenR))break;fz(!1)}}function Phe(){return Jt(ie.colon)||Jt(ie.arrow)}function whe(i){ec?che():vc&&Ave(),Ji(ie.arrow),TD(i)}function L3(){const i=br.tokens.length;Sv(),M3(i,!0)}function Sv(){if(gi(ie.modulo))return as(),!1;if(Jt(ie.jsxText)||Jt(ie.jsxEmptyText))return D2(),!1;if(Jt(ie.lessThan)&&kk)return br.type=ie.jsxTagStart,nz(),Ui(),!1;const i=br.potentialArrowAt===br.start;switch(br.type){case ie.slash:case ie.assign:mme();case ie._super:case ie._this:case ie.regexp:case ie.num:case ie.bigint:case ie.decimal:case ie.string:case ie._null:case ie._true:case ie._false:return Ui(),!1;case ie._import:return Ui(),Jt(ie.dot)&&(br.tokens[br.tokens.length-1].type=ie.name,Ui(),as()),!1;case ie.name:{const t=br.tokens.length,n=br.start,o=br.contextualKeyword;return as(),o===pn._await?(jhe(),!1):o===pn._async&&Jt(ie._function)&&!N_()?(Ui(),B1(n,!1),!1):i&&o===pn._async&&!N_()&&Jt(ie.name)?(br.scopeDepth++,wy(!1),Ji(ie.arrow),TD(t),!0):Jt(ie._do)&&!N_()?(Ui(),yy(),!1):i&&!N_()&&Jt(ie.arrow)?(br.scopeDepth++,k3(!1),Ji(ie.arrow),TD(t),!0):(br.tokens[br.tokens.length-1].identifierRole=$o.Access,!1)}case ie._do:return Ui(),yy(),!1;case ie.parenL:return cz(i);case ie.bracketL:return Ui(),lz(ie.bracketR,!0),!1;case ie.braceL:return j3(!1,!1),!1;case ie._function:return Nhe(),!1;case ie.at:G3();case ie._class:return j1(!1),!1;case ie._new:return Ohe(),!1;case ie.backQuote:return B3(),!1;case ie.doubleColon:return Ui(),L3(),!1;case ie.hash:{const t=wV();return RD[t]||t===Jn.backslash?bC():Ui(),!1}default:return Ss(),!1}}function bC(){gi(ie.hash),as()}function Nhe(){const i=br.start;as(),gi(ie.dot)&&as(),B1(i,!1)}function D2(){Ui()}function Ik(){Ji(ie.parenL),If(),Ji(ie.parenR)}function cz(i){const t=br.snapshot(),n=br.tokens.length;Ji(ie.parenL);let o=!0;for(;!Jt(ie.parenR)&&!br.error;){if(o)o=!1;else if(Ji(ie.comma),Jt(ie.parenR))break;if(Jt(ie.ellipsis)){WV(!1),R3();break}else Of(!1,!0)}return Ji(ie.parenR),i&&Ihe()&&ZI()?(br.restoreFromSnapshot(t),br.scopeDepth++,U2(),ZI(),TD(n),br.error?(br.restoreFromSnapshot(t),cz(!1),!1):!0):!1}function Ihe(){return Jt(ie.colon)||!N_()}function ZI(){return ec?phe():vc?wve():gi(ie.arrow)}function R3(){(ec||vc)&&xhe()}function Ohe(){if(Ji(ie._new),gi(ie.dot)){as();return}Mhe(),vc&&pve(),gi(ie.parenL)&&lz(ie.parenR)}function Mhe(){L3(),gi(ie.questionDot)}function B3(){for(_y(),_y();!Jt(ie.backQuote)&&!br.error;)Ji(ie.dollarBraceL),If(),_y(),_y();Ui()}function j3(i,t){const n=bD();let o=!0;for(Ui(),br.tokens[br.tokens.length-1].contextId=n;!gi(ie.braceR)&&!br.error;){if(o)o=!1;else if(Ji(ie.comma),gi(ie.braceR))break;let l=!1;if(Jt(ie.ellipsis)){const d=br.tokens.length;if(zV(),i&&(br.tokens.length===d+2&&k3(t),gi(ie.braceR)))break;continue}i||(l=gi(ie.star)),!i&&Fo(pn._async)?(l&&Ss(),as(),Jt(ie.colon)||Jt(ie.parenL)||Jt(ie.braceR)||Jt(ie.eq)||Jt(ie.comma)||(Jt(ie.star)&&(Ui(),l=!0),xD(n))):xD(n),Bhe(i,t,n)}br.tokens[br.tokens.length-1].contextId=n}function Fhe(i){return!i&&(Jt(ie.string)||Jt(ie.num)||Jt(ie.bracketL)||Jt(ie.name)||!!(br.type&ie.IS_KEYWORD))}function Lhe(i,t){const n=br.start;return Jt(ie.parenL)?(i&&Ss(),e6(n,!1),!0):Fhe(i)?(xD(t),e6(n,!1),!0):!1}function Rhe(i,t){if(gi(ie.colon)){i?vC(t):Of(!1);return}let n;i?br.scopeDepth===0?n=$o.ObjectShorthandTopLevelDeclaration:t?n=$o.ObjectShorthandBlockScopedDeclaration:n=$o.ObjectShorthandFunctionScopedDeclaration:n=$o.ObjectShorthand,br.tokens[br.tokens.length-1].identifierRole=n,vC(t,!0)}function Bhe(i,t,n){ec?ahe():vc&&Dve(),Lhe(i,n)||Rhe(i,t)}function xD(i){vc&&H3(),gi(ie.bracketL)?(br.tokens[br.tokens.length-1].contextId=i,Of(),Ji(ie.bracketR),br.tokens[br.tokens.length-1].contextId=i):(Jt(ie.num)||Jt(ie.string)||Jt(ie.bigint)||Jt(ie.decimal)?Sv():bC(),br.tokens[br.tokens.length-1].identifierRole=$o.ObjectKey,br.tokens[br.tokens.length-1].contextId=i)}function e6(i,t){const n=bD();br.scopeDepth++;const o=br.tokens.length;U2(t,n),uz(i,n);const d=br.tokens.length;br.scopes.push(new bh(o,d,!0)),br.scopeDepth--}function TD(i){VD(!0);const t=br.tokens.length;br.scopes.push(new bh(i,t,!0)),br.scopeDepth--}function uz(i,t=0){ec?Gge(i,t):vc?lve(t):VD(!1,t)}function VD(i,t=0){i&&!Jt(ie.braceL)?Of():yy(!0,t)}function lz(i,t=!1){let n=!0;for(;!gi(i)&&!br.error;){if(n)n=!1;else if(Ji(ie.comma),gi(i))break;fz(t)}}function fz(i){i&&Jt(ie.comma)||(Jt(ie.ellipsis)?(zV(),R3()):Jt(ie.question)?Ui():Of(!1,!0))}function as(){Ui(),br.tokens[br.tokens.length-1].type=ie.name}function jhe(){UD()}function Jhe(){Ui(),!Jt(ie.semi)&&!N_()&&(gi(ie.star),Of())}function Uhe(){Kl(pn._module),Ji(ie.braceL),Mk(ie.braceR)}function Vhe(i){return(i.type===ie.name||!!(i.type&ie.IS_KEYWORD))&&i.contextualKeyword!==pn._from}function Sh(i){const t=As(0);Ji(i||ie.colon),t_(),Ps(t)}function pR(){Ji(ie.modulo),Kl(pn._checks),gi(ie.parenL)&&(If(),Ji(ie.parenR))}function J3(){const i=As(0);Ji(ie.colon),Jt(ie.modulo)?pR():(t_(),Jt(ie.modulo)&&pR()),Ps(i)}function zhe(){Ui(),U3(!0)}function Whe(){Ui(),as(),Jt(ie.lessThan)&&Ng(),Ji(ie.parenL),t6(),Ji(ie.parenR),J3(),Pu()}function r6(){Jt(ie._class)?zhe():Jt(ie._function)?Whe():Jt(ie._var)?qhe():Ql(pn._module)?gi(ie.dot)?Ghe():$he():Fo(pn._type)?Khe():Fo(pn._opaque)?Qhe():Fo(pn._interface)?Xhe():Jt(ie._export)?Hhe():Ss()}function qhe(){Ui(),mz(),Pu()}function $he(){for(Jt(ie.string)?Sv():as(),Ji(ie.braceL);!Jt(ie.braceR)&&!br.error;)Jt(ie._import)?(Ui(),Tz()):Ss();Ji(ie.braceR)}function Hhe(){Ji(ie._export),gi(ie._default)?Jt(ie._function)||Jt(ie._class)?r6():(t_(),Pu()):Jt(ie._var)||Jt(ie._function)||Jt(ie._class)||Fo(pn._opaque)?r6():Jt(ie.star)||Jt(ie.braceL)||Fo(pn._interface)||Fo(pn._type)||Fo(pn._opaque)?Dz():Ss()}function Ghe(){Kl(pn._exports),q1(),Pu()}function Khe(){Ui(),z3()}function Qhe(){Ui(),W3(!0)}function Xhe(){Ui(),U3()}function U3(i=!1){if(Ok(),Jt(ie.lessThan)&&Ng(),gi(ie._extends))do EE();while(!i&&gi(ie.comma));if(Fo(pn._mixins)){Ui();do EE();while(gi(ie.comma))}if(Fo(pn._implements)){Ui();do EE();while(gi(ie.comma))}SC(i,!1,i)}function EE(){pz(!1),Jt(ie.lessThan)&&R1()}function V3(){U3()}function Ok(){as()}function z3(){Ok(),Jt(ie.lessThan)&&Ng(),Sh(ie.eq),Pu()}function W3(i){Kl(pn._type),Ok(),Jt(ie.lessThan)&&Ng(),Jt(ie.colon)&&Sh(ie.colon),i||Sh(ie.eq),Pu()}function Yhe(){H3(),mz(),gi(ie.eq)&&t_()}function Ng(){const i=As(0);Jt(ie.lessThan)||Jt(ie.typeParameterStart)?Ui():Ss();do Yhe(),Jt(ie.greaterThan)||Ji(ie.comma);while(!Jt(ie.greaterThan)&&!br.error);Ji(ie.greaterThan),Ps(i)}function R1(){const i=As(0);for(Ji(ie.lessThan);!Jt(ie.greaterThan)&&!br.error;)t_(),Jt(ie.greaterThan)||Ji(ie.comma);Ji(ie.greaterThan),Ps(i)}function Zhe(){if(Kl(pn._interface),gi(ie._extends))do EE();while(gi(ie.comma));SC(!1,!1,!1)}function q3(){Jt(ie.num)||Jt(ie.string)?Sv():as()}function eve(){Zu()===ie.colon?(q3(),Sh()):t_(),Ji(ie.bracketR),Sh()}function rve(){q3(),Ji(ie.bracketR),Ji(ie.bracketR),Jt(ie.lessThan)||Jt(ie.parenL)?$3():(gi(ie.question),Sh())}function $3(){for(Jt(ie.lessThan)&&Ng(),Ji(ie.parenL);!Jt(ie.parenR)&&!Jt(ie.ellipsis)&&!br.error;)DC(),Jt(ie.parenR)||Ji(ie.comma);gi(ie.ellipsis)&&DC(),Ji(ie.parenR),Sh()}function tve(){$3()}function SC(i,t,n){let o;for(t&&Jt(ie.braceBarL)?(Ji(ie.braceBarL),o=ie.braceBarR):(Ji(ie.braceL),o=ie.braceR);!Jt(o)&&!br.error;){if(n&&Fo(pn._proto)){const l=Zu();l!==ie.colon&&l!==ie.question&&(Ui(),i=!1)}if(i&&Fo(pn._static)){const l=Zu();l!==ie.colon&&l!==ie.question&&Ui()}if(H3(),gi(ie.bracketL))gi(ie.bracketL)?rve():eve();else if(Jt(ie.parenL)||Jt(ie.lessThan))tve();else{if(Fo(pn._get)||Fo(pn._set)){const l=Zu();(l===ie.name||l===ie.string||l===ie.num)&&Ui()}nve()}ive()}Ji(o)}function nve(){if(Jt(ie.ellipsis)){if(Ji(ie.ellipsis),gi(ie.comma)||gi(ie.semi),Jt(ie.braceR))return;t_()}else q3(),Jt(ie.lessThan)||Jt(ie.parenL)?$3():(gi(ie.question),Sh())}function ive(){!gi(ie.semi)&&!gi(ie.comma)&&!Jt(ie.braceR)&&!Jt(ie.braceBarR)&&Ss()}function pz(i){for(i||as();gi(ie.dot);)as()}function ave(){pz(!0),Jt(ie.lessThan)&&R1()}function ove(){Ji(ie._typeof),dz()}function sve(){for(Ji(ie.bracketL);br.pos<Ba.length&&!Jt(ie.bracketR)&&(t_(),!Jt(ie.bracketR));)Ji(ie.comma);Ji(ie.bracketR)}function DC(){const i=Zu();i===ie.colon||i===ie.question?(as(),gi(ie.question),Sh()):t_()}function t6(){for(;!Jt(ie.parenR)&&!Jt(ie.ellipsis)&&!br.error;)DC(),Jt(ie.parenR)||Ji(ie.comma);gi(ie.ellipsis)&&DC()}function dz(){let i=!1;const t=br.noAnonFunctionType;switch(br.type){case ie.name:{if(Fo(pn._interface)){Zhe();return}as(),ave();return}case ie.braceL:SC(!1,!1,!1);return;case ie.braceBarL:SC(!1,!0,!1);return;case ie.bracketL:sve();return;case ie.lessThan:Ng(),Ji(ie.parenL),t6(),Ji(ie.parenR),Ji(ie.arrow),t_();return;case ie.parenL:if(Ui(),!Jt(ie.parenR)&&!Jt(ie.ellipsis))if(Jt(ie.name)){const n=Zu();i=n!==ie.question&&n!==ie.colon}else i=!0;if(i)if(br.noAnonFunctionType=!1,t_(),br.noAnonFunctionType=t,br.noAnonFunctionType||!(Jt(ie.comma)||Jt(ie.parenR)&&Zu()===ie.arrow)){Ji(ie.parenR);return}else gi(ie.comma);t6(),Ji(ie.parenR),Ji(ie.arrow),t_();return;case ie.minus:Ui(),D2();return;case ie.string:case ie.num:case ie._true:case ie._false:case ie._null:case ie._this:case ie._void:case ie.star:Ui();return;default:if(br.type===ie._typeof){ove();return}else if(br.type&ie.IS_KEYWORD){Ui(),br.tokens[br.tokens.length-1].type=ie.name;return}}Ss()}function cve(){for(dz();!N_()&&(Jt(ie.bracketL)||Jt(ie.questionDot));)gi(ie.questionDot),Ji(ie.bracketL),gi(ie.bracketR)||(t_(),Ji(ie.bracketR))}function _z(){gi(ie.question)?_z():cve()}function dR(){_z(),!br.noAnonFunctionType&&gi(ie.arrow)&&t_()}function _R(){for(gi(ie.bitwiseAND),dR();gi(ie.bitwiseAND);)dR()}function uve(){for(gi(ie.bitwiseOR),_R();gi(ie.bitwiseOR);)_R()}function t_(){uve()}function q1(){Sh()}function mz(){as(),Jt(ie.colon)&&q1()}function H3(){(Jt(ie.plus)||Jt(ie.minus))&&(Ui(),br.tokens[br.tokens.length-1].isType=!0)}function lve(i){Jt(ie.colon)&&J3(),VD(!1,i)}function fve(i,t,n){if(Jt(ie.questionDot)&&Zu()===ie.lessThan){if(t){n.stop=!0;return}Ui(),R1(),Ji(ie.parenL),vy();return}else if(!t&&Jt(ie.lessThan)){const o=br.snapshot();if(R1(),Ji(ie.parenL),vy(),br.error)br.restoreFromSnapshot(o);else return}F3(i,t,n)}function pve(){if(Jt(ie.lessThan)){const i=br.snapshot();R1(),br.error&&br.restoreFromSnapshot(i)}}function dve(){if(Jt(ie.name)&&br.contextualKeyword===pn._interface){const i=As(0);return Ui(),V3(),Ps(i),!0}else if(Fo(pn._enum))return gz(),!0;return!1}function _ve(){return Fo(pn._enum)?(gz(),!0):!1}function mve(i){if(i===pn._declare){if(Jt(ie._class)||Jt(ie.name)||Jt(ie._function)||Jt(ie._var)||Jt(ie._export)){const t=As(1);r6(),Ps(t)}}else if(Jt(ie.name)){if(i===pn._interface){const t=As(1);V3(),Ps(t)}else if(i===pn._type){const t=As(1);z3(),Ps(t)}else if(i===pn._opaque){const t=As(1);W3(!1),Ps(t)}}Pu()}function gve(){return Fo(pn._type)||Fo(pn._interface)||Fo(pn._opaque)||Fo(pn._enum)}function hve(){return Jt(ie.name)&&(br.contextualKeyword===pn._type||br.contextualKeyword===pn._interface||br.contextualKeyword===pn._opaque||br.contextualKeyword===pn._enum)}function vve(){if(Fo(pn._type)){const i=As(1);Ui(),Jt(ie.braceL)?(K3(),ED()):z3(),Ps(i)}else if(Fo(pn._opaque)){const i=As(1);Ui(),W3(!1),Ps(i)}else if(Fo(pn._interface)){const i=As(1);Ui(),V3(),Ps(i)}else j_(!0)}function yve(){return Jt(ie.star)||Fo(pn._type)&&Zu()===ie.star}function bve(){if(Ql(pn._type)){const i=As(2);i6(),Ps(i)}else i6()}function Sve(i){if(i&&Jt(ie.lessThan)&&R1(),Fo(pn._implements)){const t=As(0);Ui(),br.tokens[br.tokens.length-1].type=ie._implements;do Ok(),Jt(ie.lessThan)&&R1();while(gi(ie.comma));Ps(t)}}function Dve(){Jt(ie.lessThan)&&(Ng(),Jt(ie.parenL)||Ss())}function xve(){const i=As(0);gi(ie.question),Jt(ie.colon)&&q1(),Ps(i)}function Tve(){if(Jt(ie._typeof)||Fo(pn._type)){const i=BD();(Vhe(i)||i.type===ie.braceL||i.type===ie.star)&&Ui()}}function Eve(){const i=br.contextualKeyword===pn._type||br.type===ie._typeof;i?Ui():as(),Fo(pn._as)&&!T3(pn._as)?(as(),i&&!Jt(ie.name)&&!(br.type&ie.IS_KEYWORD)||as()):(i&&(Jt(ie.name)||br.type&ie.IS_KEYWORD)&&as(),Ql(pn._as)&&as())}function Cve(){if(Jt(ie.lessThan)){const i=As(0);Ng(),Ps(i)}}function kve(){Jt(ie.colon)&&q1()}function Ave(){if(Jt(ie.colon)){const i=br.noAnonFunctionType;br.noAnonFunctionType=!0,q1(),br.noAnonFunctionType=i}}function Pve(i,t){if(Jt(ie.lessThan)){const n=br.snapshot();let o=mh(i,t);if(br.error)br.restoreFromSnapshot(n),br.type=ie.typeParameterStart;else return o;const l=As(0);if(Ng(),Ps(l),o=mh(i,t),o)return!0;Ss()}return mh(i,t)}function wve(){if(Jt(ie.colon)){const i=As(0),t=br.snapshot(),n=br.noAnonFunctionType;br.noAnonFunctionType=!0,J3(),br.noAnonFunctionType=n,N_()&&Ss(),Jt(ie.arrow)||Ss(),br.error&&br.restoreFromSnapshot(t),Ps(i)}return gi(ie.arrow)}function Nve(i,t=!1){if(br.tokens[br.tokens.length-1].contextualKeyword===pn._async&&Jt(ie.lessThan)){const n=br.snapshot();if(Ive()&&!br.error)return;br.restoreFromSnapshot(n)}oz(i,t)}function Ive(){br.scopeDepth++;const i=br.tokens.length;return U2(),ZI()?(TD(i),!0):!1}function gz(){Kl(pn._enum),br.tokens[br.tokens.length-1].type=ie._enum,as(),Ove()}function Ove(){Ql(pn._of)&&Ui(),Ji(ie.braceL),Mve(),Ji(ie.braceR)}function Mve(){for(;!Jt(ie.braceR)&&!br.error&&!gi(ie.ellipsis);)Fve(),Jt(ie.braceR)||Ji(ie.comma)}function Fve(){as(),gi(ie.eq)&&Ui()}function Lve(){if(Mk(ie.eof),br.scopes.push(new bh(0,br.tokens.length,!0)),br.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${br.scopeDepth}`);return new Dye(br.tokens,br.scopes)}function j_(i){vc&&dve()||(Jt(ie.at)&&G3(),Rve(i))}function Rve(i){if(ec&&ehe())return;const t=br.type;switch(t){case ie._break:case ie._continue:jve();return;case ie._debugger:Jve();return;case ie._do:Uve();return;case ie._for:Vve();return;case ie._function:if(Zu()===ie.dot)break;i||Ss(),qve();return;case ie._class:i||Ss(),j1(!0);return;case ie._if:$ve();return;case ie._return:Hve();return;case ie._switch:Gve();return;case ie._throw:Kve();return;case ie._try:Xve();return;case ie._let:case ie._const:i||Ss();case ie._var:n6(t!==ie._var);return;case ie._while:Yve();return;case ie.braceL:yy();return;case ie.semi:Zve();return;case ie._export:case ie._import:{const l=Zu();if(l===ie.parenL||l===ie.dot)break;Ui(),t===ie._import?Tz():Dz();return}case ie.name:if(br.contextualKeyword===pn._async){const l=br.start,d=br.snapshot();if(Ui(),Jt(ie._function)&&!N_()){Ji(ie._function),B1(l,!0);return}else br.restoreFromSnapshot(d)}else if(br.contextualKeyword===pn._using&&!xV()&&Zu()===ie.name){n6(!0);return}}const n=br.tokens.length;If();let o=null;if(br.tokens.length===n+1){const l=br.tokens[br.tokens.length-1];l.type===ie.name&&(o=l.contextualKeyword)}if(o==null){Pu();return}gi(ie.colon)?eye():rye(o)}function G3(){for(;Jt(ie.at);)hz()}function hz(){if(Ui(),gi(ie.parenL))If(),Ji(ie.parenR);else{for(as();gi(ie.dot);)as();Bve()}}function Bve(){ec?_he():vz()}function vz(){gi(ie.parenL)&&vy()}function jve(){Ui(),lh()||(as(),Pu())}function Jve(){Ui(),Pu()}function Uve(){Ui(),j_(!1),Ji(ie._while),Ik(),gi(ie.semi)}function Vve(){br.scopeDepth++;const i=br.tokens.length;Wve();const t=br.tokens.length;br.scopes.push(new bh(i,t,!1)),br.scopeDepth--}function zve(){return!(!Fo(pn._using)||T3(pn._of))}function Wve(){Ui();let i=!1;if(Fo(pn._await)&&(i=!0,Ui()),Ji(ie.parenL),Jt(ie.semi)){i&&Ss(),RN();return}if(Jt(ie._var)||Jt(ie._let)||Jt(ie._const)||zve()){if(Ui(),yz(!0,br.type!==ie._var),Jt(ie._in)||Fo(pn._of)){mR(i);return}RN();return}if(If(!0),Jt(ie._in)||Fo(pn._of)){mR(i);return}i&&Ss(),RN()}function qve(){const i=br.start;Ui(),B1(i,!0)}function $ve(){Ui(),Ik(),j_(!1),gi(ie._else)&&j_(!1)}function Hve(){Ui(),lh()||(If(),Pu())}function Gve(){Ui(),Ik(),br.scopeDepth++;const i=br.tokens.length;for(Ji(ie.braceL);!Jt(ie.braceR)&&!br.error;)if(Jt(ie._case)||Jt(ie._default)){const n=Jt(ie._case);Ui(),n&&If(),Ji(ie.colon)}else j_(!0);Ui();const t=br.tokens.length;br.scopes.push(new bh(i,t,!1)),br.scopeDepth--}function Kve(){Ui(),If(),Pu()}function Qve(){Pk(!0),ec&&j2()}function Xve(){if(Ui(),yy(),Jt(ie._catch)){Ui();let i=null;if(Jt(ie.parenL)&&(br.scopeDepth++,i=br.tokens.length,Ji(ie.parenL),Qve(),Ji(ie.parenR)),yy(),i!=null){const t=br.tokens.length;br.scopes.push(new bh(i,t,!1)),br.scopeDepth--}}gi(ie._finally)&&yy()}function n6(i){Ui(),yz(!1,i),Pu()}function Yve(){Ui(),Ik(),j_(!1)}function Zve(){Ui()}function eye(){j_(!0)}function rye(i){ec?the(i):vc?mve(i):Pu()}function yy(i=!1,t=0){const n=br.tokens.length;br.scopeDepth++,Ji(ie.braceL),t&&(br.tokens[br.tokens.length-1].contextId=t),Mk(ie.braceR),t&&(br.tokens[br.tokens.length-1].contextId=t);const o=br.tokens.length;br.scopes.push(new bh(n,o,i)),br.scopeDepth--}function Mk(i){for(;!gi(i)&&!br.error;)j_(!0)}function RN(){Ji(ie.semi),Jt(ie.semi)||If(),Ji(ie.semi),Jt(ie.parenR)||If(),Ji(ie.parenR),j_(!1)}function mR(i){i?Ql(pn._of):Ui(),If(),Ji(ie.parenR),j_(!1)}function yz(i,t){for(;;){if(tye(t),gi(ie.eq)){const n=br.tokens.length-1;Of(i),br.tokens[n].rhsEndIndex=br.tokens.length}if(!gi(ie.comma))break}}function tye(i){Pk(i),ec?she():vc&&kve()}function B1(i,t,n=!1){Jt(ie.star)&&Ui(),t&&!n&&!Jt(ie.name)&&!Jt(ie._yield)&&Ss();let o=null;Jt(ie.name)&&(t||(o=br.tokens.length,br.scopeDepth++),wy(!1));const l=br.tokens.length;br.scopeDepth++,U2(),uz(i);const d=br.tokens.length;br.scopes.push(new bh(l,d,!0)),br.scopeDepth--,o!==null&&(br.scopes.push(new bh(o,d,!0)),br.scopeDepth--)}function U2(i=!1,t=0){ec?ohe():vc&&Cve(),Ji(ie.parenL),t&&(br.tokens[br.tokens.length-1].contextId=t),A3(ie.parenR,!1,!1,i,t),t&&(br.tokens[br.tokens.length-1].contextId=t)}function j1(i,t=!1){const n=bD();Ui(),br.tokens[br.tokens.length-1].contextId=n,br.tokens[br.tokens.length-1].isExpression=!i;let o=null;i||(o=br.tokens.length,br.scopeDepth++),oye(i,t),sye();const l=br.tokens.length;if(nye(n),!br.error&&(br.tokens[l].contextId=n,br.tokens[br.tokens.length-1].contextId=n,o!==null)){const d=br.tokens.length;br.scopes.push(new bh(o,d,!1)),br.scopeDepth--}}function bz(){return Jt(ie.eq)||Jt(ie.semi)||Jt(ie.braceR)||Jt(ie.bang)||Jt(ie.colon)}function Sz(){return Jt(ie.parenL)||Jt(ie.lessThan)}function nye(i){for(Ji(ie.braceL);!gi(ie.braceR)&&!br.error;){if(gi(ie.semi))continue;if(Jt(ie.at)){hz();continue}const t=br.start;iye(t,i)}}function iye(i,t){ec&&P3([pn._declare,pn._public,pn._protected,pn._private,pn._override]);let n=!1;if(Jt(ie.name)&&br.contextualKeyword===pn._static){if(as(),Sz()){ES(i,!1);return}else if(bz()){CE();return}if(br.tokens[br.tokens.length-1].type=ie._static,n=!0,Jt(ie.braceL)){br.tokens[br.tokens.length-1].contextId=t,yy();return}}aye(i,n,t)}function aye(i,t,n){if(ec&&rhe(t))return;if(gi(ie.star)){bS(n),ES(i,!1);return}bS(n);let o=!1;const l=br.tokens[br.tokens.length-1];l.contextualKeyword===pn._constructor&&(o=!0),gR(),Sz()?ES(i,o):bz()?CE():l.contextualKeyword===pn._async&&!lh()?(br.tokens[br.tokens.length-1].type=ie._async,Jt(ie.star)&&Ui(),bS(n),gR(),ES(i,!1)):(l.contextualKeyword===pn._get||l.contextualKeyword===pn._set)&&!(lh()&&Jt(ie.star))?(l.contextualKeyword===pn._get?br.tokens[br.tokens.length-1].type=ie._get:br.tokens[br.tokens.length-1].type=ie._set,bS(n),ES(i,!1)):l.contextualKeyword===pn._accessor&&!lh()?(bS(n),CE()):lh()?CE():Ss()}function ES(i,t){ec?W1():vc&&Jt(ie.lessThan)&&Ng(),e6(i,t)}function bS(i){xD(i)}function gR(){if(ec){const i=As(0);gi(ie.question),Ps(i)}}function CE(){if(ec?(AV(ie.bang),j2()):vc&&Jt(ie.colon)&&q1(),Jt(ie.eq)){const i=br.tokens.length;Ui(),Of(),br.tokens[i].rhsEndIndex=br.tokens.length}Pu()}function oye(i,t=!1){ec&&(!i||t)&&Fo(pn._implements)||(Jt(ie.name)&&wy(!0),ec?W1():vc&&Jt(ie.lessThan)&&Ng())}function sye(){let i=!1;gi(ie._extends)?(az(),i=!0):i=!1,ec?ihe(i):vc&&Sve(i)}function Dz(){const i=br.tokens.length-1;ec&&Qge()||(fye()?pye():lye()?(as(),Jt(ie.comma)&&Zu()===ie.star?(Ji(ie.comma),Ji(ie.star),Kl(pn._as),as()):xz(),ED()):gi(ie._default)?cye():_ye()?uye():(K3(),ED()),br.tokens[i].rhsEndIndex=br.tokens.length)}function cye(){if(ec&&Zge()||vc&&_ve())return;const i=br.start;gi(ie._function)?B1(i,!0,!0):Fo(pn._async)&&Zu()===ie._function?(Ql(pn._async),gi(ie._function),B1(i,!0,!0)):Jt(ie._class)?j1(!0,!0):Jt(ie.at)?(G3(),j1(!0,!0)):(Of(),Pu())}function uye(){ec?nhe():vc?vve():j_(!0)}function lye(){if(ec&&ZV())return!1;if(vc&&hve())return!1;if(Jt(ie.name))return br.contextualKeyword!==pn._async;if(!Jt(ie._default))return!1;const i=E3(),t=BD(),n=t.type===ie.name&&t.contextualKeyword===pn._from;if(t.type===ie.comma)return!0;if(n){const o=Ba.charCodeAt(PV(i+4));return o===Jn.quotationMark||o===Jn.apostrophe}return!1}function xz(){gi(ie.comma)&&K3()}function ED(){Ql(pn._from)&&(Sv(),Ez()),Pu()}function fye(){return vc?yve():Jt(ie.star)}function pye(){vc?bve():i6()}function i6(){Ji(ie.star),Fo(pn._as)?dye():ED()}function dye(){Ui(),br.tokens[br.tokens.length-1].type=ie._as,as(),xz(),ED()}function _ye(){return ec&&ZV()||vc&&gve()||br.type===ie._var||br.type===ie._const||br.type===ie._let||br.type===ie._function||br.type===ie._class||Fo(pn._async)||Jt(ie.at)}function K3(){let i=!0;for(Ji(ie.braceL);!gi(ie.braceR)&&!br.error;){if(i)i=!1;else if(Ji(ie.comma),gi(ie.braceR))break;mye()}}function mye(){if(ec){Yge();return}as(),br.tokens[br.tokens.length-1].identifierRole=$o.ExportAccess,Ql(pn._as)&&as()}function gye(){const i=br.snapshot();return Kl(pn._module),Ql(pn._from)?Fo(pn._from)?(br.restoreFromSnapshot(i),!0):(br.restoreFromSnapshot(i),!1):Jt(ie.comma)?(br.restoreFromSnapshot(i),!1):(br.restoreFromSnapshot(i),!0)}function hye(){Fo(pn._module)&&gye()&&Ui()}function Tz(){if(ec&&Jt(ie.name)&&Zu()===ie.eq){XI();return}if(ec&&Fo(pn._type)){const i=BD();if(i.type===ie.name&&i.contextualKeyword!==pn._from){if(Kl(pn._type),Zu()===ie.eq){XI();return}}else(i.type===ie.star||i.type===ie.braceL)&&Kl(pn._type)}Jt(ie.string)||(hye(),yye(),Kl(pn._from)),Sv(),Ez(),Pu()}function vye(){return Jt(ie.name)}function hR(){hC()}function yye(){vc&&Tve();let i=!0;if(!(vye()&&(hR(),!gi(ie.comma)))){if(Jt(ie.star)){Ui(),Kl(pn._as),hR();return}for(Ji(ie.braceL);!gi(ie.braceR)&&!br.error;){if(i)i=!1;else if(gi(ie.colon)&&Ss("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),Ji(ie.comma),gi(ie.braceR))break;bye()}}}function bye(){if(ec){Xge();return}if(vc){Eve();return}hC(),Fo(pn._as)&&(br.tokens[br.tokens.length-1].identifierRole=$o.ImportAccess,Ui(),hC())}function Ez(){Fo(pn._assert)&&!B_()&&(Ui(),j3(!1,!1))}function Sye(){return br.pos===0&&Ba.charCodeAt(0)===Jn.numberSign&&Ba.charCodeAt(1)===Jn.exclamationMark&&IV(2),NV(),Lve()}let Dye=class{constructor(t,n){this.tokens=t,this.scopes=n}};function xye(i,t,n,o){if(o&&n)throw new Error("Cannot combine flow and typescript plugins.");cme(i,t,n,o);const l=Sye();if(br.error)throw ame(br.error);return l}function Tye(i){let t=i.currentIndex(),n=0;const o=i.currentToken();do{const l=i.tokens[t];if(l.isOptionalChainStart&&n++,l.isOptionalChainEnd&&n--,n+=l.numNullishCoalesceStarts,n-=l.numNullishCoalesceEnds,l.contextualKeyword===pn._await&&l.identifierRole==null&&l.scopeDepth===o.scopeDepth)return!0;t+=1}while(n>0&&t<i.tokens.length);return!1}class RS{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,n,o,l,d){this.code=t,this.tokens=n,this.isFlowEnabled=o,this.disableESTransforms=l,this.helperManager=d,RS.prototype.__init.call(this),RS.prototype.__init2.call(this),RS.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){const n=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,n){return this.matches1AtIndex(t,ie.name)&&this.tokens[t].contextualKeyword===n}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,n){return this.tokens[t].type===n}matches2AtIndex(t,n,o){return this.tokens[t].type===n&&this.tokens[t+1].type===o}matches3AtIndex(t,n,o,l){return this.tokens[t].type===n&&this.tokens[t+1].type===o&&this.tokens[t+2].type===l}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,n){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n}matches3(t,n,o){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o}matches4(t,n,o,l){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===l}matches5(t,n,o,l,d){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===l&&this.tokens[this.tokenIndex+4].type===d}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,n){return this.matches1(t)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(ie.braceL))t++;else if(this.matches1(ie.braceR)){if(t===0)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=Tye(this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let n=0;n<t.numNullishCoalesceStarts;n++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===ie._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<t.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Eye(i,t,n,o){const l=t.snapshot(),d=Cye(t);let m=[];const $=[],h=[];let e=null;const c=[],P=[],T=t.currentToken().contextId;if(T==null)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(ie.braceR,T);)if(t.matchesContextual(pn._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:m,constructorInsertPos:e}=vR(t));else if(t.matches1(ie.semi))o||P.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const s=t.currentIndex();let D=!1,O=!1,W=!1;for(;xC(t.currentToken());)t.matches1(ie._static)&&(D=!0),t.matches1(ie.hash)&&(O=!0),(t.matches1(ie._declare)||t.matches1(ie._abstract))&&(W=!0),t.nextToken();if(D&&t.matches1(ie.braceL)){BN(t,T);continue}if(O){BN(t,T);continue}if(t.matchesContextual(pn._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:m,constructorInsertPos:e}=vR(t));continue}const E=t.currentIndex();if(kye(t),t.matches1(ie.lessThan)||t.matches1(ie.parenL)){BN(t,T);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(ie.eq)){const v=t.currentIndex(),S=t.currentToken().rhsEndIndex;if(S==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<S;)i.processToken();let te;D?(te=n.claimFreeName("__initStatic"),h.push(te)):(te=n.claimFreeName("__init"),$.push(te)),c.push({initializerName:te,equalsIndex:v,start:E,end:t.currentIndex()})}else(!o||W)&&P.push({start:s,end:t.currentIndex()})}return t.restoreToSnapshot(l),o?{headerInfo:d,constructorInitializerStatements:m,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:e,fields:[],rangesToRemove:P}:{headerInfo:d,constructorInitializerStatements:m,instanceInitializerNames:$,staticInitializerNames:h,constructorInsertPos:e,fields:c,rangesToRemove:P}}function BN(i,t){for(i.nextToken();i.currentToken().contextId!==t;)i.nextToken();for(;xC(i.tokenAtRelativeIndex(-1));)i.previousToken()}function Cye(i){const t=i.currentToken(),n=t.contextId;if(n==null)throw new Error("Expected context ID on class token.");const o=t.isExpression;if(o==null)throw new Error("Expected isExpression on class token.");let l=null,d=!1;for(i.nextToken(),i.matches1(ie.name)&&(l=i.identifierName());!i.matchesContextIdAndLabel(ie.braceL,n);)i.matches1(ie._extends)&&!i.currentToken().isType&&(d=!0),i.nextToken();return{isExpression:o,className:l,hasSuperclass:d}}function vR(i){const t=[];i.nextToken();const n=i.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!i.matchesContextIdAndLabel(ie.parenR,n);)if(i.currentToken().contextId===n){if(i.nextToken(),xC(i.currentToken())){for(i.nextToken();xC(i.currentToken());)i.nextToken();const d=i.currentToken();if(d.type!==ie.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const m=i.identifierNameForToken(d);t.push(`this.${m} = ${m}`)}}else i.nextToken();i.nextToken();let o=i.currentIndex(),l=!1;for(;!i.matchesContextIdAndLabel(ie.braceR,n);){if(!l&&i.matches2(ie._super,ie.parenL)){i.nextToken();const d=i.currentToken().contextId;if(d==null)throw new Error("Expected a context ID on the super call");for(;!i.matchesContextIdAndLabel(ie.parenR,d);)i.nextToken();o=i.currentIndex(),l=!0}i.nextToken()}return i.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:o}}function xC(i){return[ie._async,ie._get,ie._set,ie.plus,ie.minus,ie._readonly,ie._static,ie._public,ie._private,ie._protected,ie._override,ie._abstract,ie.star,ie._declare,ie.hash].includes(i.type)}function kye(i){if(i.matches1(ie.bracketL)){const n=i.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!i.matchesContextIdAndLabel(ie.bracketR,n);)i.nextToken();i.nextToken()}else i.nextToken()}function Cz(i){if(i.removeInitialToken(),i.removeToken(),i.removeToken(),i.removeToken(),i.matches1(ie.parenL))i.removeToken(),i.removeToken(),i.removeToken();else for(;i.matches1(ie.dot);)i.removeToken(),i.removeToken()}const kz={typeDeclarations:new Set,valueDeclarations:new Set};function Az(i){const t=new Set,n=new Set;for(let o=0;o<i.tokens.length;o++){const l=i.tokens[o];l.type===ie.name&&kV(l)&&(l.isType?t.add(i.identifierNameForToken(l)):n.add(i.identifierNameForToken(l)))}return{typeDeclarations:t,valueDeclarations:n}}function G0(i){i.matches2(ie.name,ie.braceL)&&i.matchesContextual(pn._assert)&&(i.removeToken(),i.removeToken(),i.removeBalancedCode(),i.removeToken())}function Pz(i,t,n){if(!i)return!1;const o=t.currentToken();if(o.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const l=o.rhsEndIndex-t.currentIndex();if(l!==3&&!(l===4&&t.matches1AtIndex(o.rhsEndIndex-1,ie.semi)))return!1;const d=t.tokenAtRelativeIndex(2);if(d.type!==ie.name)return!1;const m=t.identifierNameForToken(d);return n.typeDeclarations.has(m)&&!n.valueDeclarations.has(m)}class BS extends wg{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,n,o,l,d,m,$,h,e,c){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=o,this.nameManager=l,this.helperManager=d,this.reactHotLoaderTransformer=m,this.enableLegacyBabel5ModuleInterop=$,this.enableLegacyTypeScriptModuleInterop=h,this.isTypeScriptTransformEnabled=e,this.preserveDynamicImport=c,BS.prototype.__init.call(this),BS.prototype.__init2.call(this),BS.prototype.__init3.call(this),this.declarationInfo=e?Az(n):kz}getPrefixCode(){let t="";return this.hadExport&&(t+='Object.defineProperty(exports, "__esModule", {value: true});'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
module.exports = exports.default;
`:""}process(){return this.tokens.matches3(ie._import,ie.name,ie.eq)?this.processImportEquals():this.tokens.matches1(ie._import)?(this.processImport(),!0):this.tokens.matches2(ie._export,ie.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(ie._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(ie.name,ie.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(ie.name)||this.tokens.matches1(ie.jsxName)?this.processIdentifier():this.tokens.matches1(ie.eq)?this.processAssignment():this.tokens.matches1(ie.assign)?this.processComplexAssignment():this.tokens.matches1(ie.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.isTypeName(t)?Cz(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(ie._import,ie.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(ie.parenR,o);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfType())this.tokens.removeToken();else{const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}G0(this.tokens),this.tokens.matches1(ie.semi)&&this.tokens.removeToken()}removeImportAndDetectIfType(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(pn._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,ie.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,pn._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(ie.name)||this.tokens.matches1(ie.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(ie.string))return!1;let t=!1;for(;!this.tokens.matches1(ie.string);)(!t&&this.tokens.matches1(ie.braceL)||this.tokens.matches1(ie.comma))&&(this.tokens.removeToken(),(this.tokens.matches2(ie.name,ie.comma)||this.tokens.matches2(ie.name,ie.braceR)||this.tokens.matches4(ie.name,ie.name,ie.name,ie.comma)||this.tokens.matches4(ie.name,ie.name,ie.name,ie.braceR))&&(t=!0)),this.tokens.removeToken();return!t}removeRemainingImport(){for(;!this.tokens.matches1(ie.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===$o.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==$o.Access)return!1;const n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!n)return!1;let o=this.tokens.currentIndex()+1;for(;o<this.tokens.tokens.length&&this.tokens.tokens[o].type===ie.parenR;)o++;return this.tokens.tokens[o].type===ie.parenL?this.tokens.tokenAtRelativeIndex(1).type===ie.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==ie._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){const t=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(t);return n?(this.tokens.replaceToken(`${t}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(ie._export,ie._enum)||this.tokens.matches3(ie._export,ie._const,ie._enum))return!1;if(this.tokens.matches2(ie._export,ie._default))return this.hadDefaultExport=!0,this.tokens.matches3(ie._export,ie._default,ie._enum)?!1:(this.processExportDefault(),!0);if(this.hadNamedExport=!0,this.tokens.matches2(ie._export,ie._var)||this.tokens.matches2(ie._export,ie._let)||this.tokens.matches2(ie._export,ie._const))return this.processExportVar(),!0;if(this.tokens.matches2(ie._export,ie._function)||this.tokens.matches3(ie._export,ie.name,ie._function))return this.processExportFunction(),!0;if(this.tokens.matches2(ie._export,ie._class)||this.tokens.matches3(ie._export,ie._abstract,ie._class)||this.tokens.matches2(ie._export,ie.at))return this.processExportClass(),!0;if(this.tokens.matches2(ie._export,ie.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(ie._export,ie.star))return this.processExportStar(),!0;if(this.tokens.matches2(ie._export,ie.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,pn._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(ie.braceL)){for(;!this.tokens.matches1(ie.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(ie._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(pn._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,ie.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),G0(this.tokens)),!0}else throw new Error("Unrecognized export syntax.")}processAssignment(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t-1];if(n.isType||n.type!==ie.name||n.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,ie.dot)||t>=2&&[ie._var,ie._let,ie._const].includes(this.tokens.tokens[t-2].type))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return o?(this.tokens.copyToken(),this.tokens.appendCode(` ${o} =`),!0):!1}processComplexAssignment(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t-1];if(n.type!==ie.name||n.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,ie.dot))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return o?(this.tokens.appendCode(` = ${o}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t+1];if(n.type!==ie.name||n.shadowsGlobal||t+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(t+2,ie.dot)||this.tokens.matches1AtIndex(t+2,ie.bracketL)||this.tokens.matches1AtIndex(t+2,ie.parenL)))return!1;const o=this.tokens.identifierNameForToken(n),l=this.importProcessor.resolveExportBinding(o);return l?(this.tokens.appendCode(`${l} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const t=this.tokens.currentIndex(),n=this.tokens.tokens[t],o=this.tokens.tokens[t+1];if(n.type!==ie.name||n.shadowsGlobal||t>=1&&this.tokens.matches1AtIndex(t-1,ie.dot))return!1;const l=this.tokens.identifierNameForToken(n),d=this.importProcessor.resolveExportBinding(l);if(!d)return!1;const m=this.tokens.rawCodeForToken(o),$=this.importProcessor.getIdentifierReplacement(l)||l;if(m==="++")this.tokens.replaceToken(`(${$} = ${d} = ${$} + 1, ${$} - 1)`);else if(m==="--")this.tokens.replaceToken(`(${$} = ${d} = ${$} - 1, ${$} + 1)`);else throw new Error(`Unexpected operator: ${m}`);return this.tokens.removeToken(),!0}processExportDefault(){if(this.tokens.matches4(ie._export,ie._default,ie._function,ie.name)||this.tokens.matches5(ie._export,ie._default,ie.name,ie._function,ie.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,pn._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${t};`)}else if(this.tokens.matches4(ie._export,ie._default,ie._class,ie.name)||this.tokens.matches5(ie._export,ie._default,ie._abstract,ie._class,ie.name)||this.tokens.matches3(ie._export,ie._default,ie.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(ie._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${t};`)}else if(Pz(this.isTypeScriptTransformEnabled,this.tokens,this.declarationInfo))this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const t=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${t}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =")}copyDecorators(){for(;this.tokens.matches1(ie.at);)if(this.tokens.copyToken(),this.tokens.matches1(ie.parenL))this.tokens.copyExpectedToken(ie.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.parenR);else{for(this.tokens.copyExpectedToken(ie.name);this.tokens.matches1(ie.dot);)this.tokens.copyExpectedToken(ie.dot),this.tokens.copyExpectedToken(ie.name);this.tokens.matches1(ie.parenL)&&(this.tokens.copyExpectedToken(ie.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,ie.name))return!1;for(t++;t<this.tokens.tokens.length&&this.tokens.tokens[t].isType;)t++;return!!this.tokens.matches1AtIndex(t,ie.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const t=this.tokens.identifierName();for(;!this.tokens.matches1(ie.eq);)this.rootTransformer.processToken();const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${t} = ${t}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.matches1(ie.braceL);t&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(ie.braceL)||this.tokens.matches1(ie.dollarBraceL)||this.tokens.matches1(ie.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(ie.braceR)||this.tokens.matches1(ie.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(ie.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(ie.eq)){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<o;)this.rootTransformer.processToken()}else{const o=this.tokens.currentToken();if(CV(o)){const l=this.tokens.identifierName();let d=this.importProcessor.getIdentifierReplacement(l);if(d===null)throw new Error(`Expected a replacement for ${l} in \`export var\` syntax.`);_me(o)&&(d=`${l}: ${d}`),this.tokens.replaceToken(d)}else this.rootTransformer.processToken()}}if(t){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<o;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const t=this.processNamedFunction();this.tokens.appendCode(` exports.${t} = ${t};`)}processNamedFunction(){if(this.tokens.matches1(ie._function))this.tokens.copyToken();else if(this.tokens.matches2(ie.name,ie._function)){if(!this.tokens.matchesContextual(pn._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(ie.star)&&this.tokens.copyToken(),!this.tokens.matches1(ie.name))throw new Error("Expected identifier for exported function name.");const t=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(ie.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(ie.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.braceR),t}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(ie._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${t} = ${t};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=[];for(;;){if(this.tokens.matches1(ie.braceR)){this.tokens.removeToken();break}const n=SD(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!n.isType&&!this.shouldElideExportedIdentifier(n.leftName)){const o=n.leftName,l=n.rightName,d=this.importProcessor.getIdentifierReplacement(o);t.push(`exports.${l} = ${d||o};`)}if(this.tokens.matches1(ie.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(ie.comma,ie.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(ie.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(pn._from)){this.tokens.removeToken();const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),G0(this.tokens)}else this.tokens.appendCode(t.join(" "));this.tokens.matches1(ie.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(ie.string);)this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),G0(this.tokens),this.tokens.matches1(ie.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(t){return this.isTypeScriptTransformEnabled&&!this.declarationInfo.valueDeclarations.has(t)}}class Aye extends wg{constructor(t,n,o,l,d,m){super(),this.tokens=t,this.nameManager=n,this.helperManager=o,this.reactHotLoaderTransformer=l,this.isTypeScriptTransformEnabled=d,this.nonTypeIdentifiers=d?JV(t,m):new Set,this.declarationInfo=d?Az(t):kz,this.injectCreateRequireForImportRequire=!!m.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(ie._import,ie.name,ie.eq))return this.processImportEquals();if(this.tokens.matches4(ie._import,ie.name,ie.name,ie.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,pn._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(ie._export,ie.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(ie._export,ie._import,ie.name,ie.name,ie.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,pn._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(ie._import))return this.processImport();if(this.tokens.matches2(ie._export,ie._default))return this.processExportDefault();if(this.tokens.matches2(ie._export,ie.braceL))return this.processNamedExports();if(this.tokens.matches2(ie._export,ie.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,pn._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(ie.braceL)){for(;!this.tokens.matches1(ie.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(ie._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(pn._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,ie.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),G0(this.tokens)),!0}return!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.isTypeName(t)?Cz(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(ie._import,ie.parenL))return!1;const t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(ie.string);)this.tokens.removeToken();this.tokens.removeToken(),G0(this.tokens),this.tokens.matches1(ie.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(ie._import),this.tokens.matchesContextual(pn._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,ie.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,pn._from))return!0;if(this.tokens.matches1(ie.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(pn._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,pn._from)&&this.tokens.copyToken();let t=!1,n=!1;if(this.tokens.matches1(ie.name)&&(this.isTypeName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(ie.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(ie.comma)&&(n=!0,this.tokens.removeToken()))),this.tokens.matches1(ie.star))this.isTypeName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(n&&this.tokens.appendCode(","),t=!0,this.tokens.copyExpectedToken(ie.star),this.tokens.copyExpectedToken(ie.name),this.tokens.copyExpectedToken(ie.name));else if(this.tokens.matches1(ie.braceL)){for(n&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(ie.braceR);){const o=SD(this.tokens);if(o.isType||this.isTypeName(o.rightName)){for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();this.tokens.matches1(ie.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<o.endIndex;)this.tokens.copyToken();this.tokens.matches1(ie.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(ie.braceR)}return!t}isTypeName(t){return this.isTypeScriptTransformEnabled&&!this.nonTypeIdentifiers.has(t)}processExportDefault(){if(Pz(this.isTypeScriptTransformEnabled,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(ie._export,ie._default,ie._function,ie.name)||this.tokens.matches5(ie._export,ie._default,ie.name,ie._function,ie.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,pn._async)||this.tokens.matches4(ie._export,ie._default,ie._class,ie.name)||this.tokens.matches5(ie._export,ie._default,ie._abstract,ie._class,ie.name))&&this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;for(this.tokens.copyExpectedToken(ie._export),this.tokens.copyExpectedToken(ie.braceL);!this.tokens.matches1(ie.braceR);){const t=SD(this.tokens);if(t.isType||this.shouldElideExportedName(t.leftName)){for(;this.tokens.currentIndex()<t.endIndex;)this.tokens.removeToken();this.tokens.matches1(ie.comma)&&this.tokens.removeToken()}else{for(;this.tokens.currentIndex()<t.endIndex;)this.tokens.copyToken();this.tokens.matches1(ie.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(ie.braceR),!0}shouldElideExportedName(t){return this.isTypeScriptTransformEnabled&&this.declarationInfo.typeDeclarations.has(t)&&!this.declarationInfo.valueDeclarations.has(t)}}class Pye extends wg{constructor(t,n,o){super(),this.rootTransformer=t,this.tokens=n,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(ie._enum)?(this.processEnum(),!0):this.tokens.matches2(ie._export,ie._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(ie._export,ie._default,ie._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(ie.name);let t=!1;this.tokens.matchesContextual(pn._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(pn._symbol),this.tokens.removeToken());const n=this.tokens.matches3(ie.braceL,ie.name,ie.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const o=!t&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(o?".Mirrored([":"({");!this.tokens.matches1(ie.braceR);){if(this.tokens.matches1(ie.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,n),this.tokens.matches1(ie.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(o?"]);":"});")}processEnumElement(t,n){if(t){const o=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${o}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function wye(i){let t,n=i[0],o=1;for(;o<i.length;){const l=i[o],d=i[o+1];if(o+=2,(l==="optionalAccess"||l==="optionalCall")&&n==null)return;l==="access"||l==="optionalAccess"?(t=n,n=d(n)):(l==="call"||l==="optionalCall")&&(n=d((...m)=>n.call(t,...m)),t=void 0)}return n}const sE="jest",Nye=["mock","unmock","enableAutomock","disableAutomock"];class Q3 extends wg{__init(){this.hoistedFunctionNames=[]}constructor(t,n,o,l){super(),this.rootTransformer=t,this.tokens=n,this.nameManager=o,this.importProcessor=l,Q3.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(ie.name,ie.dot,ie.name,ie.parenL)&&this.tokens.identifierName()===sE?wye([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(sE)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(t=>`${t}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(ie.dot,ie.name,ie.parenL);){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Nye.includes(n)){const l=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(l),this.tokens.replaceToken(`function ${l}(){${sE}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${sE}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.parenR),t=!0}return!0}}class Iye extends wg{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(ie.num)){const t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}}class Oye extends wg{constructor(t,n){super(),this.tokens=t,this.nameManager=n}process(){return this.tokens.matches2(ie._catch,ie.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Mye extends wg{constructor(t,n){super(),this.tokens=t,this.nameManager=n}process(){if(this.tokens.matches1(ie.nullishCoalescing)){const o=this.tokens.currentToken();return this.tokens.tokens[o.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(ie._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==ie._super){const o=this.nameManager.claimFreeName("_");let l;if(n>0&&this.tokens.matches1AtIndex(n-1,ie._delete)&&this.isLastSubscriptInChain()?l=`${o} => delete ${o}`:l=`${o} => ${o}`,this.tokens.tokens[n].isAsyncOperation&&(l=`async ${l}`),this.tokens.matches2(ie.questionDot,ie.parenL)||this.tokens.matches2(ie.questionDot,ie.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${l}`);else if(this.tokens.matches2(ie.questionDot,ie.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${l}`);else if(this.tokens.matches1(ie.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${l}.`);else if(this.tokens.matches1(ie.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${l}.`);else if(this.tokens.matches1(ie.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${l}[`);else if(this.tokens.matches1(ie.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${l}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let t=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?t++:this.tokens.tokens[n].isOptionalChainEnd&&t--,t<0)return!0;if(t===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let t=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?t--:this.tokens.tokens[n].isOptionalChainEnd&&t++,t<0)return!1;if(t===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===ie._super;n--}}}class Fye extends wg{constructor(t,n,o,l){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=o,this.options=l}process(){const t=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(ie.name,ie.dot,ie.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return n?(this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){const n=this.findDisplayName(t);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(ie.parenL),this.tokens.copyExpectedToken(ie.braceL),this.tokens.appendCode(`displayName: '${n}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(ie.braceR),this.tokens.copyExpectedToken(ie.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,ie.name,ie.eq)?this.tokens.identifierNameAtIndex(t-2):t>=2&&this.tokens.tokens[t-2].identifierRole===$o.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,ie._export,ie._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const n=(this.options.filePath||"unknown").split("/"),o=n[n.length-1],l=o.lastIndexOf("."),d=l===-1?o:o.slice(0,l);return d==="index"&&n[n.length-2]?n[n.length-2]:d}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(ie.parenL,ie.braceL))return!1;const n=t+1,o=this.tokens.tokens[n].contextId;if(o==null)throw new Error("Expected non-null context ID on object open-brace.");for(;t<this.tokens.tokens.length;t++){const l=this.tokens.tokens[t];if(l.type===ie.braceR&&l.contextId===o){t++;break}if(this.tokens.identifierNameAtIndex(t)==="displayName"&&this.tokens.tokens[t].identifierRole===$o.ObjectKey&&l.contextId===o)return!1}if(t===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(t,ie.parenR)||this.tokens.matches2AtIndex(t,ie.comma,ie.parenR)}}class X3 extends wg{__init(){this.extractedDefaultExportName=null}constructor(t,n){super(),this.tokens=t,this.filePath=n,X3.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return`
(function () {
var enterModule = require('react-hot-loader').enterModule;
enterModule && enterModule(module);
})();`.replace(/\s+/g," ").trim()}getSuffixCode(){const t=new Set;for(const o of this.tokens.tokens)!o.isType&&kV(o)&&o.identifierRole!==$o.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(o));const n=Array.from(t).map(o=>({variableName:o,uniqueLocalName:o}));return this.extractedDefaultExportName&&n.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
;(function () {
var reactHotLoader = require('react-hot-loader').default;
var leaveModule = require('react-hot-loader').leaveModule;
if (!reactHotLoader) {
return;
}
${n.map(({variableName:o,uniqueLocalName:l})=>` reactHotLoader.register(${o}, "${l}", ${JSON.stringify(this.filePath||"")});`).join(`
`)}
leaveModule(module);
})();`}process(){return!1}}const Lye=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function yR(i){if(i.length===0||!RD[i.charCodeAt(0)])return!1;for(let t=1;t<i.length;t++)if(!kg[i.charCodeAt(t)])return!1;return!Lye.has(i)}class Rye extends wg{constructor(t,n,o){super(),this.rootTransformer=t,this.tokens=n,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(ie._public)||this.tokens.matches1(ie._protected)||this.tokens.matches1(ie._private)||this.tokens.matches1(ie._abstract)||this.tokens.matches1(ie._readonly)||this.tokens.matches1(ie._override)||this.tokens.matches1(ie.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(ie._enum)||this.tokens.matches2(ie._const,ie._enum)?(this.processEnum(),!0):this.tokens.matches2(ie._export,ie._enum)||this.tokens.matches3(ie._export,ie._const,ie._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(ie._const)||this.tokens.matches1(ie._enum);)this.tokens.removeToken();const n=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(ie.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(ie.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(t){let n=null;for(;!this.tokens.matches1(ie.braceR);){const{nameStringCode:o,variableName:l}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(ie.eq,ie.string,ie.comma)||this.tokens.matches3(ie.eq,ie.string,ie.braceR)?this.processStringLiteralEnumMember(t,o,l):this.tokens.matches1(ie.eq)?this.processExplicitValueEnumMember(t,o,l):this.processImplicitValueEnumMember(t,o,l,n),this.tokens.matches1(ie.comma)&&this.tokens.removeToken(),l!=null?n=l:n=`${t}[${o}]`}}extractEnumKeyInfo(t){if(t.type===ie.name){const n=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${n}"`,variableName:yR(n)?n:null}}else if(t.type===ie.string){const n=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:yR(n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,n,o){o!=null?(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${n}] = ${o};`)):(this.tokens.appendCode(`${t}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,n,o){const l=this.tokens.currentToken().rhsEndIndex;if(l==null)throw new Error("Expected rhsEndIndex on enum assign.");if(o!=null){for(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken();this.tokens.currentIndex()<l;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${n}] = ${o}] = ${n};`)}else{for(this.tokens.appendCode(`${t}[${t}[${n}]`),this.tokens.copyToken();this.tokens.currentIndex()<l;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${n};`)}}processImplicitValueEnumMember(t,n,o,l){let d=l!=null?`${l} + 1`:"0";o!=null&&(this.tokens.appendCode(`const ${o} = ${d}; `),d=o),this.tokens.appendCode(`${t}[${t}[${n}] = ${d}] = ${n};`)}}class TC{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,n,o,l){TC.prototype.__init.call(this),TC.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;const{tokenProcessor:d,importProcessor:m}=t;this.tokens=d,this.isImportsTransformEnabled=n.includes("imports"),this.isReactHotLoaderTransformEnabled=n.includes("react-hot-loader"),this.disableESTransforms=!!l.disableESTransforms,l.disableESTransforms||(this.transformers.push(new Mye(d,this.nameManager)),this.transformers.push(new Iye(d)),this.transformers.push(new Oye(d,this.nameManager))),n.includes("jsx")&&(l.jsxRuntime!=="preserve"&&this.transformers.push(new m1(this,d,m,this.nameManager,l)),this.transformers.push(new Fye(this,d,m,l)));let $=null;if(n.includes("react-hot-loader")){if(!l.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");$=new X3(d,l.filePath),this.transformers.push($)}if(n.includes("imports")){if(m===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new BS(this,d,m,this.nameManager,this.helperManager,$,o,!!l.enableLegacyTypeScriptModuleInterop,n.includes("typescript"),!!l.preserveDynamicImport))}else this.transformers.push(new Aye(d,this.nameManager,this.helperManager,$,n.includes("typescript"),l));n.includes("flow")&&this.transformers.push(new Pye(this,d,n.includes("imports"))),n.includes("typescript")&&this.transformers.push(new Rye(this,d,n.includes("imports"))),n.includes("jest")&&this.transformers.push(new Q3(this,d,this.nameManager,m))}transform(){this.tokens.reset(),this.processBalancedCode();let n=this.isImportsTransformEnabled?'"use strict";':"";for(const m of this.transformers)n+=m.getPrefixCode();n+=this.helperManager.emitHelpers(),n+=this.generatedVariables.map(m=>` var ${m};`).join("");for(const m of this.transformers)n+=m.getHoistedCode();let o="";for(const m of this.transformers)o+=m.getSuffixCode();const l=this.tokens.finish();let{code:d}=l;if(d.startsWith("#!")){let m=d.indexOf(`
`);return m===-1&&(m=d.length,d+=`
`),{code:d.slice(0,m+1)+n+d.slice(m+1)+o,mappings:this.shiftMappings(l.mappings,n.length)}}else return{code:n+d+o,mappings:this.shiftMappings(l.mappings,n.length)}}processBalancedCode(){let t=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(ie.braceL)||this.tokens.matches1(ie.dollarBraceL))t++;else if(this.tokens.matches1(ie.braceR)){if(t===0)return;t--}if(this.tokens.matches1(ie.parenL))n++;else if(this.tokens.matches1(ie.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(ie._class)){this.processClass();return}for(const t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(ie._class,ie.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=Eye(this,this.tokens,this.nameManager,this.disableESTransforms),n=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let o=t.headerInfo.className;n&&(o=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(o),this.tokens.appendCode(` (${o} =`));const d=this.tokens.currentToken().contextId;if(d==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(ie._class);!this.tokens.matchesContextIdAndLabel(ie.braceL,d);)this.processToken();this.processClassBody(t,o);const m=t.staticInitializerNames.map($=>`${o}.${$}()`);n?this.tokens.appendCode(`, ${m.map($=>`${$}, `).join("")}${o})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${m.map($=>`${$};`).join(" ")}`)}processClassBody(t,n){const{headerInfo:o,constructorInsertPos:l,constructorInitializerStatements:d,fields:m,instanceInitializerNames:$,rangesToRemove:h}=t;let e=0,c=0;const P=this.tokens.currentToken().contextId;if(P==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(ie.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const T=d.length+$.length>0;if(l===null&&T){const s=this.makeConstructorInitCode(d,$,n);if(o.hasSuperclass){const D=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${D}) { super(...${D}); ${s}; }`)}else this.tokens.appendCode(`constructor() { ${s}; }`)}for(;!this.tokens.matchesContextIdAndLabel(ie.braceR,P);)if(e<m.length&&this.tokens.currentIndex()===m[e].start){let s=!1;for(this.tokens.matches1(ie.bracketL)?this.tokens.copyTokenWithPrefix(`${m[e].initializerName}() {this`):this.tokens.matches1(ie.string)||this.tokens.matches1(ie.num)?(this.tokens.copyTokenWithPrefix(`${m[e].initializerName}() {this[`),s=!0):this.tokens.copyTokenWithPrefix(`${m[e].initializerName}() {this.`);this.tokens.currentIndex()<m[e].end;)s&&this.tokens.currentIndex()===m[e].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),e++}else if(c<h.length&&this.tokens.currentIndex()>=h[c].start){for(this.tokens.currentIndex()<h[c].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<h[c].end;)this.tokens.removeToken();c++}else this.tokens.currentIndex()===l?(this.tokens.copyToken(),T&&this.tokens.appendCode(`;${this.makeConstructorInitCode(d,$,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(ie.braceR)}makeConstructorInitCode(t,n,o){return[...t,...n.map(l=>`${o}.prototype.${l}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(ie.parenR,ie.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,ie.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(pn._async)&&!this.tokens.matches1(ie._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==ie.lessThan||!t.isType)return!1;let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,ie.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(t,n){for(let o=0;o<t.length;o++){const l=t[o];l!==void 0&&(t[o]=l+n)}return t}}var Bye={};(function(i){i.__esModule=!0,i.LinesAndColumns=void 0;var t=`
`,n="\r",o=function(){function l(d){this.string=d;for(var m=[0],$=0;$<d.length;)switch(d[$]){case t:$+=t.length,m.push($);break;case n:$+=n.length,d[$]===t&&($+=t.length),m.push($);break;default:$++;break}this.offsets=m}return l.prototype.locationForIndex=function(d){if(d<0||d>this.string.length)return null;for(var m=0,$=this.offsets;$[m+1]<=d;)m++;var h=d-$[m];return{line:m,column:h}},l.prototype.indexForLocation=function(d){var m=d.line,$=d.column;return m<0||m>=this.offsets.length||$<0||$>this.lengthOfLine(m)?null:this.offsets[m]+$},l.prototype.lengthOfLine=function(d){var m=this.offsets[d],$=d===this.offsets.length-1?this.string.length:this.offsets[d+1];return $-m},l}();i.LinesAndColumns=o,i.default=o})(Bye);function jye(i){const t=new Set;for(let n=0;n<i.tokens.length;n++)i.matches1AtIndex(n,ie._import)&&!i.matches3AtIndex(n,ie._import,ie.name,ie.eq)&&Jye(i,n,t);return t}function Jye(i,t,n){t++,!i.matches1AtIndex(t,ie.parenL)&&(i.matches1AtIndex(t,ie.name)&&(n.add(i.identifierNameAtIndex(t)),t++,i.matches1AtIndex(t,ie.comma)&&t++),i.matches1AtIndex(t,ie.star)&&(t+=2,n.add(i.identifierNameAtIndex(t)),t++),i.matches1AtIndex(t,ie.braceL)&&(t++,Uye(i,t,n)))}function Uye(i,t,n){for(;;){if(i.matches1AtIndex(t,ie.braceR))return;const o=SD(i,t);if(t=o.endIndex,o.isType||n.add(o.rightName),i.matches2AtIndex(t,ie.comma,ie.braceR))return;if(i.matches1AtIndex(t,ie.braceR))return;if(i.matches1AtIndex(t,ie.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(i.tokens[t])}`)}}function Vye(i,t){ige(t);try{const n=zye(i,t),l=new TC(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform();let d={code:l.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");d={...d,sourceMap:Wme(l,t.filePath,t.sourceMapOptions,i,n.tokenProcessor.tokens)}}return d}catch(n){throw t.filePath&&(n.message=`Error transforming ${t.filePath}: ${n.message}`),n}}function zye(i,t){const n=t.transforms.includes("jsx"),o=t.transforms.includes("typescript"),l=t.transforms.includes("flow"),d=t.disableESTransforms===!0,m=xye(i,n,o,l),$=m.tokens,h=m.scopes,e=new C3(i,$),c=new gC(e),P=new RS(i,$,l,d,c),T=!!t.enableLegacyTypeScriptModuleInterop;let s=null;return t.transforms.includes("imports")?(s=new g1(e,P,T,t,t.transforms.includes("typescript"),c),s.preprocessTokens(),aR(P,h,s.getGlobalNames()),t.transforms.includes("typescript")&&s.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&aR(P,h,jye(P)),{tokenProcessor:P,scopes:h,nameManager:e,importProcessor:s,helperManager:c}}function Wye(i,t){for(;i.length<t;)i="0"+i;return i}function Zh(i,t){var n,o,l;if(t.length===0)return i;for(n=0,l=t.length;n<l;n++)o=t.charCodeAt(n),i=(i<<5)-i+o,i|=0;return i<0?i*-2:i}function qye(i,t,n){return Object.keys(t).sort().reduce(o,i);function o(l,d){return wz(l,t[d],d,n)}}function wz(i,t,n,o){var l=Zh(Zh(Zh(i,n),$ye(t)),typeof t);if(t===null)return Zh(l,"null");if(t===void 0)return Zh(l,"undefined");if(typeof t=="object"||typeof t=="function"){if(o.indexOf(t)!==-1)return Zh(l,"[Circular]"+n);o.push(t);var d=qye(l,t,o);if(!("valueOf"in t)||typeof t.valueOf!="function")return d;try{return Zh(d,String(t.valueOf()))}catch(m){return Zh(d,"[valueOf exception]"+(m.stack||m.message))}}return Zh(l,t.toString())}function $ye(i){return Object.prototype.toString.call(i)}function Hye(i){return Wye(wz(0,i,"",[]).toString(16),8)}var Gye=Hye;const Kye=kee(Gye),t2="__sfc__";async function Y3(i){return Vye(i,{transforms:["typescript"]}).code}async function cE(i,{filename:t,code:n,compiled:o}){var W,E,v;if(!n.trim())return[];if(t.endsWith(".css"))return o.css=n,[];if(t.endsWith(".js")||t.endsWith(".ts"))return t.endsWith(".ts")&&(n=await Y3(n)),o.js=o.ssr=n,[];if(t.endsWith(".json")){let S;try{S=JSON.parse(n)}catch(te){return console.error(`Error parsing ${t}`,te.message),[te.message]}return o.js=o.ssr=`export default ${JSON.stringify(S)}`,[]}if(!t.endsWith(".vue"))return[];const l=Kye(t),{errors:d,descriptor:m}=i.compiler.parse(n,{filename:t,sourceMap:!0});if(d.length)return d;if(m.styles.some(S=>S.lang)||m.template&&m.template.lang)return['lang="x" pre-processors for <template> or <style> are currently not supported.'];const $=m.script&&m.script.lang||m.scriptSetup&&m.scriptSetup.lang,h=$==="ts";if($&&!h)return['Only lang="ts" is supported for <script> blocks.'];const e=m.styles.some(S=>S.scoped);let c="",P="";const T=S=>{c+=S,P+=S};let s,D;try{[s,D]=await bR(i,m,l,!1,h)}catch(S){return[S.stack.split(`
`).slice(0,12).join(`
`)]}if(c+=s,m.scriptSetup||m.cssVars.length>0)try{const S=await bR(i,m,l,!0,h);P+=S[0]}catch(S){P=`/* SSR compile error: ${S} */`}else P+=s;if(m.template&&(!m.scriptSetup||((E=(W=i.options)==null?void 0:W.script)==null?void 0:E.inlineTemplate)===!1)){const S=await SR(i,m,l,D,!1,h);if(Array.isArray(S))return S;c+=`;${S}`;const te=await SR(i,m,l,D,!0,h);typeof te=="string"?P+=`;${te}`:P=`/* SSR compile error: ${te[0]} */`}e&&T(`
${t2}.__scopeId = ${JSON.stringify(`data-v-${l}`)}`),(c||P)&&(T(`
${t2}.__file = ${JSON.stringify(t)}
export default ${t2}`),o.js=c.trimStart(),o.ssr=P.trimStart());let O="";for(const S of m.styles){if(S.module)return["<style module> is not supported in the playground."];const te=await i.compiler.compileStyleAsync({...(v=i.options)==null?void 0:v.style,source:S.content,filename:t,id:l,scoped:S.scoped,modules:!!S.module});te.errors.length?te.errors[0].message.includes("pathToFileURL")||(i.state.errors=te.errors):O+=te.code+`
`}return O?o.css=O.trim():o.css="/* No <style> tags present */",[]}async function bR(i,t,n,o,l){var d,m,$,h;if(t.script||t.scriptSetup){const e=l?["typescript"]:void 0,c=i.compiler.compileScript(t,{inlineTemplate:!0,...(d=i.options)==null?void 0:d.script,id:n,templateOptions:{...(m=i.options)==null?void 0:m.template,ssr:o,ssrCssVars:t.cssVars,compilerOptions:{...(h=($=i.options)==null?void 0:$.template)==null?void 0:h.compilerOptions,expressionPlugins:e}}});let P="";return c.bindings&&(P+=`
/* Analyzed bindings: ${JSON.stringify(c.bindings,null,2)} */`),P+=`
`+i.compiler.rewriteDefault(c.content,t2,e),(t.script||t.scriptSetup).lang==="ts"&&(P=await Y3(P)),[P,c.bindings]}else return[`
const ${t2} = {}`,void 0]}async function SR(i,t,n,o,l,d){var e,c,P,T;let{code:m,errors:$}=i.compiler.compileTemplate({isProd:!1,...(e=i.options)==null?void 0:e.template,source:t.template.content,filename:t.filename,id:n,scoped:t.styles.some(s=>s.scoped),slotted:t.slotted,ssr:l,ssrCssVars:t.cssVars,compilerOptions:{...(P=(c=i.options)==null?void 0:c.template)==null?void 0:P.compilerOptions,bindingMetadata:o,expressionPlugins:d?["typescript"]:void 0}});if($.length)return $;const h=l?"ssrRender":"render";return m=`
${m.replace(/\nexport (function|const) (render|ssrRender)/,`$1 ${h}`)}
${t2}.${h} = ${h}`,((T=t.script||t.scriptSetup)==null?void 0:T.lang)==="ts"&&(m=await Y3(m)),m}const SS="src/App.vue",k_="import-map.json",iv="tsconfig.json",DR=`
<script setup>
import { ref } from 'vue'
const msg = ref('Hello World!')
<\/script>
<template>
<h1>{{ msg }}</h1>
<input v-model="msg">
</template>
`.trim(),Qye={compilerOptions:{allowJs:!0,checkJs:!0,jsx:"Preserve",target:"ESNext",module:"ESNext",moduleResolution:"Bundler",allowImportingTsExtensions:!0},vueCompilerOptions:{target:3.3}};class kE{constructor(t,n="",o=!1){this.compiled={js:"",css:"",ssr:""},this.editorViewState=null,this.filename=t,this.code=n,this.hidden=o}get language(){return this.filename.endsWith(".vue")?"vue":this.filename.endsWith(".html")?"html":this.filename.endsWith(".css")?"css":this.filename.endsWith(".ts")?"typescript":"javascript"}}class Xye{constructor({serializedState:t="",defaultVueRuntimeURL:n=`https://cdn.jsdelivr.net/npm/@vue/runtime-dom@${kF}/dist/runtime-dom.esm-browser.js`,defaultVueServerRendererURL:o=`https://cdn.jsdelivr.net/npm/@vue/server-renderer@${kF}/dist/server-renderer.esm-browser.js`,showOutput:l=!1,outputMode:d="preview"}={}){this.compiler=H9,this.pendingCompiler=null;const m={};if(t){const h=JSON.parse(Eee(t));for(const e in h)uE(m,e,h[e])}else uE(m,SS,DR);this.defaultVueRuntimeURL=n,this.defaultVueServerRendererURL=o,this.initialShowOutput=l,this.initialOutputMode=d;let $=SS;m[$]||($=Object.keys(m)[0]),this.state=CR({mainFile:$,files:m,activeFile:m[$],errors:[],vueRuntimeURL:this.defaultVueRuntimeURL,vueServerRendererURL:this.defaultVueServerRendererURL,typescriptVersion:"latest",typescriptLocale:void 0,resetFlip:!0}),this.initImportMap(),this.initTsConfig()}init(){kR(()=>cE(this,this.state.activeFile).then(t=>this.state.errors=t)),JS(()=>{var t;return[(t=this.state.files[iv])==null?void 0:t.code,this.state.typescriptVersion,this.state.typescriptLocale,this.state.locale,this.state.dependencyVersion]},()=>{var t;return(t=this.reloadLanguageTools)==null?void 0:t.call(this)},{deep:!0}),this.state.errors=[];for(const t in this.state.files)t!==SS&&cE(this,this.state.files[t]).then(n=>this.state.errors.push(...n))}initTsConfig(){this.state.files[iv]||this.setTsConfig(Qye)}setTsConfig(t){this.state.files[iv]=new kE(iv,JSON.stringify(t,void 0,2))}getTsConfig(){try{return JSON.parse(this.state.files[iv].code)}catch{return{}}}setActive(t){this.state.activeFile=this.state.files[t]}addFile(t){const n=typeof t=="string"?new kE(t):t;this.state.files[n.filename]=n,n.hidden||this.setActive(n.filename)}deleteFile(t){confirm(`Are you sure you want to delete ${jS(t)}?`)&&(this.state.activeFile.filename===t&&(this.state.activeFile=this.state.files[this.state.mainFile]),delete this.state.files[t])}renameFile(t,n){const{files:o}=this.state,l=o[t];if(!l){this.state.errors=[`Could not rename "${t}", file not found`];return}if(!n||t===n){this.state.errors=[`Cannot rename "${t}" to "${n}"`];return}l.filename=n;const d={};for(const m in o)m===t?d[n]=l:d[m]=o[m];this.state.files=d,this.state.mainFile===t&&(this.state.mainFile=n),cE(this,l).then(m=>this.state.errors=m)}serialize(){const t=this.getFiles(),n=t[k_];if(n){const{imports:o}=JSON.parse(n);o.vue===this.defaultVueRuntimeURL&&delete o.vue,o["vue/server-renderer"]===this.defaultVueServerRendererURL&&delete o["vue/server-renderer"],Object.keys(o).length?t[k_]=JSON.stringify({imports:o},null,2):delete t[k_]}return"#"+Cee(JSON.stringify(t))}getFiles(){const t={};for(const n in this.state.files){const o=n===k_?n:jS(n);t[o]=this.state.files[n].code}return t}async setFiles(t,n=SS){const o={};n===SS&&!t[n]&&uE(o,n,DR);for(const l in t)uE(o,l,t[l]);this.state.errors=[];for(const l in o)this.state.errors.push(...await cE(this,o[l]));this.state.mainFile=n,this.state.files=o,this.initImportMap(),this.setActive(n),this.forceSandboxReset()}forceSandboxReset(){this.state.resetFlip=!this.state.resetFlip}initImportMap(){const t=this.state.files[k_];if(!t)this.state.files[k_]=new kE(k_,JSON.stringify({imports:{vue:this.defaultVueRuntimeURL,"vue/server-renderer":this.defaultVueServerRendererURL}},null,2));else try{const n=JSON.parse(t.code);n.imports.vue?n.imports.vue=xR(n.imports.vue):n.imports.vue=this.defaultVueRuntimeURL,n.imports["vue/server-renderer"]?n.imports["vue/server-renderer"]=xR(n.imports["vue/server-renderer"]):n.imports["vue/server-renderer"]=this.defaultVueServerRendererURL,t.code=JSON.stringify(n,null,2)}catch{}}getImportMap(){try{return JSON.parse(this.state.files[k_].code)}catch(t){return this.state.errors=[`Syntax error in import-map.json: ${t.message}`],{}}}setImportMap(t){this.state.files[k_].code=JSON.stringify(t,null,2)}setTypeScriptVersion(t){this.state.typescriptVersion=t,console.info(`[@vue/repl] Now using TypeScript version: ${t}`)}async setVueVersion(t){var $;this.vueVersion=t;const n=`https://cdn.jsdelivr.net/npm/@vue/compiler-sfc@${t}/dist/compiler-sfc.esm-browser.js`,o=`https://cdn.jsdelivr.net/npm/@vue/runtime-dom@${t}/dist/runtime-dom.esm-browser.js`,l=`https://cdn.jsdelivr.net/npm/@vue/server-renderer@${t}/dist/server-renderer.esm-browser.js`;this.pendingCompiler=yee(()=>import(n),[]),this.compiler=await this.pendingCompiler,this.pendingCompiler=null,this.state.vueRuntimeURL=o,this.state.vueServerRendererURL=l;const d=this.getImportMap(),m=d.imports||(d.imports={});m.vue=o,m["vue/server-renderer"]=l,this.setImportMap(d),this.forceSandboxReset(),($=this.reloadLanguageTools)==null||$.call(this),console.info(`[@vue/repl] Now using Vue version: ${t}`)}resetVueVersion(){this.vueVersion=void 0,this.compiler=H9,this.state.vueRuntimeURL=this.defaultVueRuntimeURL,this.state.vueServerRendererURL=this.defaultVueServerRendererURL;const t=this.getImportMap(),n=t.imports||(t.imports={});n.vue=this.defaultVueRuntimeURL,n["vue/server-renderer"]=this.defaultVueServerRendererURL,this.setImportMap(t),this.forceSandboxReset(),console.info("[@vue/repl] Now using default Vue version")}}function uE(i,t,n){const o=t!==k_&&t!==iv&&!t.startsWith("src/")?`src/${t}`:t;i[o]=new kE(o,n)}function xR(i){return i.replace("https://sfc.vuejs","https://play.vuejs")}function jS(i){return i.replace(/^src\//,"")}const Z3=i=>(NR("data-v-f661725b"),i=i(),IR(),i),Yye=["onClick","onDblclick"],Zye={class:"label"},e1e=["onClick"],r1e=Z3(()=>ol("svg",{class:"icon",width:"12",height:"12",viewBox:"0 0 24 24"},[ol("line",{stroke:"#999",x1:"18",y1:"6",x2:"6",y2:"18"}),ol("line",{stroke:"#999",x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),t1e=[r1e],n1e={key:1,class:"file pending"},i1e=["onKeyup"],a1e={class:"import-map-wrapper"},o1e=Z3(()=>ol("span",{class:"label"},"tsconfig.json",-1)),s1e=[o1e],c1e=Z3(()=>ol("span",{class:"label"},"Import Map",-1)),u1e=[c1e],l1e=Ey({__name:"FileSelector",setup(i){const t=dv("store"),n=I_(!1),o=I_("Comp.vue"),l=dv("tsconfig"),d=dv("import-map"),m=AE(()=>Object.entries(t.state.files).filter(([D,O])=>D!==k_&&D!==iv&&!O.hidden).map(([D])=>D));function $(){let D=0,O="Comp.vue";for(;;){let W=!1;for(const E in t.state.files)if(jS(E)===O){W=!0,O=`Comp${++D}.vue`;break}if(!W)break}o.value=O,n.value=!0}function h(){n.value=!1}function e({el:D}){D.focus()}function c(){if(!n.value)return;const D="src/"+o.value,O=n.value===!0?"":n.value;if(!/\.(vue|js|ts|css|json)$/.test(D)){t.state.errors=["Playground only supports *.vue, *.js, *.ts, *.css, *.json files."];return}if(D!==O&&D in t.state.files){t.state.errors=[`File "${D}" already exists.`];return}t.state.errors=[],h(),D!==O&&(O?t.renameFile(O,D):t.addFile(D))}function P(D){o.value=jS(D),n.value=D}const T=I_(null);function s(D){D.preventDefault();const O=T.value,E=30*((Math.abs(D.deltaX)>=Math.abs(D.deltaY)?D.deltaX:D.deltaY)>0?1:-1);O.scrollTo({left:O.scrollLeft+E})}return(D,O)=>($l(),ip("div",{class:dy(["file-selector",{"has-import-map":Pl(d)}]),onWheel:s,ref_key:"fileSel",ref:T},[($l(!0),ip(n2,null,wR(m.value,(W,E)=>($l(),ip(n2,null,[n.value!==W?($l(),ip("div",{key:0,class:dy(["file",{active:Pl(t).state.activeFile.filename===W}]),onClick:v=>Pl(t).setActive(W),onDblclick:v=>E>0&&P(W)},[ol("span",Zye,EC(Pl(jS)(W)),1),E>0?($l(),ip("span",{key:0,class:"remove",onClick:PR(v=>Pl(t).deleteFile(W),["stop"])},t1e,8,e1e)):fy("",!0)],42,Yye)):fy("",!0),n.value===!0&&E===m.value.length-1||n.value===W?($l(),ip("div",n1e,[a6(ol("input",{"onUpdate:modelValue":O[0]||(O[0]=v=>o.value=v),spellcheck:"false",onBlur:c,onKeyup:[wF(c,["enter"]),wF(h,["esc"])],onVnodeMounted:e},null,40,i1e),[[xee,o.value]])])):fy("",!0)],64))),256)),ol("button",{class:"add",onClick:$},"+"),ol("div",a1e,[Pl(l)?($l(),ip("div",{key:0,class:dy(["file",{active:Pl(t).state.activeFile.filename===Pl(iv)}]),onClick:O[1]||(O[1]=W=>Pl(t).setActive(Pl(iv)))},s1e,2)):fy("",!0),Pl(d)?($l(),ip("div",{key:1,class:dy(["file",{active:Pl(t).state.activeFile.filename===Pl(k_)}]),onClick:O[2]||(O[2]=W=>Pl(t).setActive(Pl(k_)))},u1e,2)):fy("",!0)])],34))}}),f1e=Py(l1e,[["__scopeId","data-v-f661725b"]]),Nz=i=>(NR("data-v-70b24951"),i=i(),IR(),i),p1e=Nz(()=>ol("span",null,"Show Error",-1)),d1e=Nz(()=>ol("div",{class:"indicator"},null,-1)),_1e=[d1e],m1e=Ey({__name:"MessageToggle",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(i){const t=Tee(i,"modelValue");return(n,o)=>($l(),ip("div",{class:"wrapper",onClick:o[0]||(o[0]=l=>t.value=!t.value)},[p1e,ol("div",{class:dy(["toggle",[{active:i.modelValue}]])},_1e,2)]))}}),g1e=Py(m1e,[["__scopeId","data-v-70b24951"]]),h1e={class:"editor-container"},TR="repl_show_error",v1e=Ey({__name:"EditorContainer",props:{editorComponent:{}},setup(i){const t=i,n=dv("store"),o=I_(m()),l=Aee($=>{n.state.activeFile.code=$},250);function d(){localStorage.setItem(TR,o.value?"true":"false")}function m(){return localStorage.getItem(TR)!=="false"}return JS(o,()=>{d()}),($,h)=>($l(),ip(n2,null,[av(f1e),ol("div",h1e,[av(t.editorComponent,{onChange:Pl(l),value:Pl(n).state.activeFile.code,filename:Pl(n).state.activeFile.filename},null,8,["onChange","value","filename"]),a6(av(WI,{err:Pl(n).state.errors[0]},null,8,["err"]),[[AR,o.value]]),av(g1e,{modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=e=>o.value=e)},null,8,["modelValue"])])],64))}}),y1e=Py(v1e,[["__scopeId","data-v-3500c8e7"]]),b1e={class:"vue-repl"},S1e=Ey({__name:"Repl",props:{theme:{default:"light"},editor:{},store:{default:()=>new Xye},autoResize:{type:Boolean,default:!0},showCompileOutput:{type:Boolean,default:!0},showImportMap:{type:Boolean,default:!0},showTsConfig:{type:Boolean,default:!0},clearConsole:{type:Boolean,default:!0},sfcOptions:{},layout:{},ssr:{type:Boolean,default:!1},previewOptions:{default:()=>({headHTML:"",bodyHTML:"",customCode:{importCode:"",useCode:""}})}},setup(i,{expose:t}){const n=i;if(!n.editor)throw new Error('The "editor" prop is now required.');const o=I_(),{store:l}=n,d=l.options=n.sfcOptions||{};d.script||(d.script={}),d.script.fs={fileExists($){return $.startsWith("/")&&($=$.slice(1)),!!l.state.files[$]},readFile($){return $.startsWith("/")&&($=$.slice(1)),l.state.files[$].code}},l.init(),l1("store",l),l1("autoresize",n.autoResize),l1("import-map",BT(n,"showImportMap")),l1("tsconfig",BT(n,"showTsConfig")),l1("clear-console",BT(n,"clearConsole")),l1("preview-options",n.previewOptions),l1("theme",BT(n,"theme"));function m(){var $;($=o.value)==null||$.reload()}return t({reload:m}),($,h)=>($l(),ip("div",b1e,[av(U_e,{layout:$.layout},{left:jN(()=>[av(y1e,{editorComponent:$.editor},null,8,["editorComponent"])]),right:jN(()=>[av(tme,{ref_key:"outputRef",ref:o,editorComponent:$.editor,showCompileOutput:n.showCompileOutput,ssr:!!n.ssr},null,8,["editorComponent","showCompileOutput","ssr"])]),_:1},8,["layout"])]))}}),Y1e=Py(S1e,[["__scopeId","data-v-f0baea56"]]);export{kE as File,X_e as Preview,Y1e as Repl,Xye as ReplStore,cE as compileFile};