var e,t;e=this,t=function(e){"use strict";function t(e,t){return typeof e===t}function n(e){const t=e.ownerSVGElement;return!!t||null===t}function r(e){return"template"===e.tagName.toLowerCase()}function i(e){return t(e,"function")}function a(e){return!s(e)&&e.constructor===Object}function s(e){return null==e}function o(){return void 0!==globalThis.process}const l=0,c=2,u=3,p={ATTRIBUTE:l,EVENT:1,TEXT:c,VALUE:u};function h(e){return e.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))}function d(e,t){throw Error(e,{cause:t})}function f(e){const t=new Map,n=n=>(t.has(n)||t.set(n,e.call(this,n)))&&t.get(n);return n.cache=t,n}function m(e){return e.reduce(((e,t)=>{const{value:n,type:r}=t;switch(!0){case!t.name&&r===l:return{...e,...n};case r===u:e.value=t.value;break;default:e[h(t.name)]=t.value}return e}),{})}const y="exports",g="css",b="template",v="name",x="riot",S="RiotComponentWrapper",E="RiotComponent",T="javascript",k="template",_="script",P="style",w="textarea",A="isRaw",C="isSelfClosing",I="isVoid",N="isBoolean",O="isCustom",D="isSpread";var L=Object.freeze({__proto__:null,CSS_OUTPUT_NAME:"css",IS_BOOLEAN:N,IS_CUSTOM:O,IS_RAW:A,IS_SELF_CLOSING:C,IS_SPREAD:D,IS_VOID:I,JAVASCRIPT_OUTPUT_NAME:T,JAVASCRIPT_TAG:_,STYLE_TAG:P,TEMPLATE_OUTPUT_NAME:k,TEXTAREA_TAG:w});const j=1,M=2,F=3,B=8;var V=Object.freeze({__proto__:null,ATTR:M,CDATA:4,COMMENT:B,DOCTYPE:10,DOCUMENT:9,DOCUMENT_FRAGMENT:11,TAG:j,TEXT:F});const R="Unclosed ES6 template literal.",q='Unclosed "%1" block.',U="Unexpected character %1.",z=/^(?:\/[a-zA-Z]|[a-zA-Z][^\s>/]?)/,W=/(\/?[^\s>/]+)\s*(>)?/g,G=/(\S[^>/=\s]*)(?:\s*=\s*([^>/])?)?/g,J=/\.\.\./,$={script:/<\/script\s*>/gi,style:/<\/style\s*>/gi,textarea:/<\/textarea\s*>/gi},H=/^\/?(?:pre|textarea)$/;function X(e,t,n){return e.lastIndex=t,e.exec(n)}var K=e=>e.replace(/(?=[-[\](){^*+?.$|\\])/g,"\\");const Q="`";function Y(e,t,n){const r=/[`$\\]/g;let i;for(;r.lastIndex=t,r.exec(e);){if(i=e[(t=r.lastIndex)-1],"`"===i)return t;if("$"===i&&"{"===e[t++])return n.push(Q,"}"),t}throw function(e,t,n){n||(n=e.length);const r=(e.slice(0,n).match(/\r\n?|\n/g)||"").length+1;let i=0;for(;--n>=0&&!/[\r\n]/.test(e[n]);)++i;return`[${r},${i}]: ${t}`}(e,R,t)}const Z="[{(,;:?=|&!^~>%*/",ee=Z+"+-",te=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],ne=te.reduce(((e,t)=>e+t.slice(-1)),""),re=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,ie=/[$\w]/,ae=/.*/g;function se(e,t){for(;--t>=0&&/\s/.test(e[t]););return t}const oe=/'[^'\n\r\\]*(?:\\(?:\r\n?|[\S\s])[^'\n\r\\]*)*'/.source,le=`${oe}|${oe.replace(/'/g,'"')}`,ce={};function ue(e,t,n,r){let i=0;switch(t){case"[":case"(":case"{":e.push("["===t?"]":"("===t?")":"}");break;case")":case"]":case"}":t!==e.pop()&&U.replace("%1",t),"}"===t&&e[e.length-1]===Q&&(t=e.pop()),i=n+1;break;case"/":i=function(e,t){let n=ae.lastIndex=t++;const r=(ae.exec(e)||" ")[0].match(re);if(r){const i=n+r[0].length;n=se(e,n);let a=e[n];if(n<0||Z.includes(a))return i;if("."===a)"."===e[n-1]&&(t=i);else{if(("+"===a||"-"===a)&&(e[--n]!==a||(n=se(e,n))<0||ee.includes(a=e[n])))return i;if(ne.includes(a)){const r=n+1;for(;--n>=0&&ie.test(e[n]););te.includes(e.slice(n+1,r))&&(t=i)}}}return t}(r,n)}return{char:t,index:i}}function pe(e,t,n){const[r,i]=n,a=t+r.length,s=[],o=function(e){let t=ce[e];if(!t){let n=K(e);e.length>1?n+="|[":n=/[{}[\]()]/.test(e)?"[":"["+n,ce[e]=t=RegExp(`${le}|${n}\`/\\{}[\\]()]`,"g")}return t}(i);let l,c;for(o.lastIndex=a;c=o.exec(e);){const n=c.index,r=c[0];if(l=o.lastIndex,r===i&&!s.length)return{text:e.slice(a,n),start:t,end:l};const{char:u,index:p}=ue(s,r[0],n,e);l=p||l,o.lastIndex=u===Q?Y(e,l,s):l}}function he(e){const t=e.last;e.last=null,t&&e.root&&e.builder.push(t)}function de(e,t,n){return e.slice(t,n)}function fe(e,t,n,r={}){const i=de(e.data,t,n),a=r.expressions,s=r.unescape;let o=e.last;return e.pos=n,o&&o.type===F?(o.text+=i,o.end=n):(he(e),e.last=o={type:F,text:i,start:t,end:n}),a&&a.length&&(o.expressions=(o.expressions||[]).concat(a)),s&&(o.unescape=s),F}function me(e,t,n,r){const i=function(e,t){const{brackets:n}=e.options,r=e.regexCache[t];if(r)return r;const i=K(n[0]);return Object.assign(e.regexCache,{[t]:RegExp(`(${t})|${i}`,"g")}),e.regexCache[t]}(e,n);i.lastIndex=r;const{unescape:a,expressions:s,end:o}=function(e,t){const{data:n,options:r}=e,{brackets:i}=r,a=[];let s,o,l;for(;(l=t.exec(n))&&!l[1];)if(o=l.index,"\\"===n[o-1])s=l[0];else{const e=pe(n,o,i);e&&(a.push(e),t.lastIndex=e.end)}return{unescape:s,expressions:a,end:l.index}}(e,i);return t?(a&&(t.unescape=a),s.length&&(t.expressions=s)):fe(e,r,o,{expressions:s,unescape:a}),o}const ye=e=>e.filter(((e,t,n)=>n.indexOf(e)===t)),ge=["circle","ellipse","line","path","polygon","polyline","rect","stop","use"],be=["button","data","input","select","li","meter","option","output","progress","textarea","param"],ve=ye(["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","animation","audio","canvas","clipPath","color-profile","cursor","defs","desc","discard","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","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","handler","hatch","hatchpath","hkern","iframe","image","linearGradient","listener","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","pattern","prefetch","radialGradient","script","set","solidColor","solidcolor","style","svg","switch","symbol","tbreak","text","textArea","textPath","title","tref","tspan","unknown","video","view","vkern"].concat(ge)).sort(),xe=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function Se(e){return e.join("|")}function Ee(...e){return RegExp(`^/?(?:${Se(e.map(Se))})$`,"i")}const Te=Ee(ye(["a","abbr","address","article","aside","audio","b","bdi","bdo","blockquote","body","canvas","caption","cite","code","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","html","i","iframe","ins","kbd","label","legend","main","map","mark","math","menu","nav","noscript","object","ol","optgroup","p","picture","pre","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","tfoot","th","thead","time","title","tr","u","ul","var","video"].concat(xe).concat(be)).sort()),ke=Ee(ve),_e=Ee(xe),Pe=Ee(ge);Ee(be);const we=Ee(["disabled","visible","checked","readonly","required","allowfullscreen","autofocus","autoplay","compact","controls","default","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","noresize","noshade","novalidate","nowrap","open","reversed","seamless","selected","sortable","truespeed","typemustmatch"]),Ae=function(e){const t=new WeakMap;return(...e)=>{if(t.has(e[0]))return t.get(e[0]);const n=(e=>RegExp(`(${e[0]}[^${e[1]}]*?${e[1]})`,"g"))(...e);return t.set(e[0],n),n}}(),Ce=e=>J.test(e),Ie=(e,t)=>e[0]===t[0],Ne=(e,t)=>me(e,t,"[>/\\s]",t.start);function Oe(e,...t){return(...n)=>(n=[...t,...n]).length!e.test(s)))&&(a[O]=!0),function(e){return[_e,Pe].some((t=>t.test(e)))}(t)&&(a[I]=!0),e.pos=r,i?(t===i.name?e.count++:t===i.close&&e.count--,he(e)):(e.root={name:a.name,close:"/"+t},e.count=1),e.last=a}function Le(e){return e.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}function je(e){return e.replace(/\\/g,"\\\\")}const Me=Object.seal({get(){const e=this.store;return{[k]:e.root.nodes[0],css:e[P],[T]:e[_]}},push(e){const t=this.store;switch(e.type){case B:this.pushComment(t,e);break;case F:this.pushText(t,e);break;case j:{const n=e.name,r="/",[i]=n;i!==r||e.isVoid?i!==r&&this.openTag(t,e):this.closeTag(t,e,n);break}}},pushComment(e,t){e.last.nodes.push(t)},closeTag(e,t){(e.scryle||e.last).end=t.end,e.root.nodes[0]&&(e.root.nodes[0].end=t.end),e.scryle?e.scryle=null:e.last=e.stack.pop()},openTag(e,t){const n=t.name,r=t.attributes,i=_===n&&!(e=>(e.attributes||[]).some((e=>"src"===e.name)))(t)||n===P;if(i)e[n]&&(this.store.data,t.start),e[n]=t,e.scryle=e[n];else{const r=e.last,i=t;r.nodes.push(i),(r[A]||H.test(n))&&(t[A]=!0),t[C]||t[I]||(e.stack.push(r),i.nodes=[],e.last=i)}r&&this.attrs(r)},attrs(e){e.forEach((e=>{e.value&&this.split(e,e.value,e.valueStart,!0)}))},pushText(e,t){const n=t.text,r=!/\S/.test(n),i=e.scryle;if(i)r||(i.text=t);else{const i=e.last,a=this.compact&&!i[A];if(a&&r)return;this.split(t,n,t.start,a),i.nodes.push(t)}},split(e,t,n,r){const i=e.expressions,a=[];if(i){let s=0;i.forEach((i=>{const o=t.slice(s,i.start-n),l=i.text;a.push(this.sanitise(e,o,r),Le(je(l).trim())),s=i.end-n})),se))},sanitise(e,t,n){let r=e.unescape;if(r){let e=0;for(r="\\"+r;-1!==(e=t.indexOf(r,e));)t=t.substr(0,e)+t.substr(e+1),e++}return t=je(t),n?t.replace(/\s+/g," "):Le(t)}});function Fe(e,t){const n={type:j,name:"",start:0,end:0,nodes:[]};return Object.assign(Object.create(Me),{compact:!1!==t.compact,store:{last:n,stack:[],scryle:null,root:n,style:null,script:null,data:e}})}function Be(e,t){const n=Oe(Ve)(e,t||Fe);return{parse:e=>function(e){const{data:t}=e;return Re(e),he(e),e.count&&(e.count,e.pos),{data:t,output:e.builder.get()}}(n(e))}}function Ve(e,t,n){const r=Object.assign({brackets:["{","}"]},e);return{options:r,regexCache:{},pos:0,count:-1,root:null,last:null,scryle:null,builder:t(n,r),data:n}}function Re(e,t){const{data:n}=e,r=n.length;e.pos",a=t.indexOf(i,r);return function(e,t,n,r){e.pos=n,!0===e.options.comments&&(he(e),e.last={type:B,start:t,end:n,text:r})}(e,n,a+i.length,t.substring(n,a+i.length)),F}(e,n,r);case z.test(i):return function(e,t){const{data:n,pos:r}=e,i=W,a=X(i,r,n),s=i.lastIndex,o=a[1].toLowerCase();return o in $&&(e.scryle=o),De(e,o,t,s),a[2]?F:M}(e,r);default:return fe(e,r,t)}}(e);case M:return function(e){const{data:t,last:n,pos:r,root:i}=e,a=n,s=/\S/g,o=X(s,r,t);switch(!0){case!o:e.pos=t.length;break;case">"===o[0]:return e.pos=a.end=s.lastIndex,a[C]&&(e.scryle=null,i&&i.name===a.name&&e.count--),F;case"/"===o[0]:e.pos=s.lastIndex,a[C]=!0;break;default:delete a[C],function(e,t,n){const{data:r}=e,i=Ae(e.options.brackets),a=G,s=a.lastIndex=i.lastIndex=t,o=a.exec(r),l=Ie(o[1],e.options.brackets),c=l?[null,i.exec(r)[1],null]:o;if(c){const t=function(e,t,n,r,i){const a={name:t[1],value:"",start:n,end:r},s=t[2];switch(!0){case Ce(a.name):return function(e,t){const n=Ne(e,t);return{[D]:!0,start:t.start,expressions:t.expressions.map((e=>Object.assign(e,{text:e.text.replace(J,"").trim()}))),end:n}}(e,a);case!0===i:return function(e,t){const n=Ne(e,t);return{start:t.start,name:t.expressions[0].text.trim(),expressions:t.expressions,end:n}}(e,a);default:return function(e,t,n){const{data:r}=e;let{end:i}=t;var a;if(a=t.name,we.test(a)&&(t[N]=!0),n){let a=i;return'"'!==n&&"'"!==n&&(n="",a--),i=me(e,t,n||"[>/\\s]",a),Object.assign(t,{value:de(r,a,i),valueStart:a,end:n?++i:i})}return t}(e,a,s)}}(e,c,s,a.lastIndex,l);e.pos=n.end=t.end,n.attributes=function(e=[],t){return e.push(t),e}(n.attributes,t)}}(e,o.index,a)}return M}(e);default:return function(e){const{pos:t,data:n,scryle:r}=e;switch(!0){case"string"==typeof r:{const i=r,a=$[i],s=X(a,t,n);s||q.replace("%1",i);const o=s.index,l=a.lastIndex;e.scryle=null,o>t&&function(e,t,n){const{pos:r}=e,i=n.index;t===w?me(e,null,n[0],r):fe(e,r,i)}(e,i,s),De(e,"/"+i,o,l);break}case"<"===n[t]:return e.pos++,j;default:me(e,null,"<",t)}return F}(e)}}(e,t))}const qe=L,Ue=V,ze="bindingTypes",We="EACH",Ge="IF",Je="TAG",$e="SLOT",He="expressionTypes",Xe="ATTRIBUTE",Ke="VALUE",Qe="TEXT",Ye="EVENT",Ze="template",et="getComponent",tt="selector",nt="getComponent",rt="template",it="type",at="redundantAttribute",st="condition",ot="getKey",lt="evaluate",ct="name",ut="slots",pt="expressions",ht="isBoolean",dt="childNodeIndex",ft="bindings",mt="id",yt="html",gt="attributes",bt="if",vt="each",xt="key",St="slot",Et="name",Tt="is",kt="default",_t=" ",Pt="slot",wt="progress",At="template";qe.IS_RAW;const Ct=qe.IS_VOID,It=qe.IS_CUSTOM,Nt=qe.IS_BOOLEAN,Ot=qe.IS_SPREAD;function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var jt={},Mt=function(e,t){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Mt(e,t)};function Ft(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function n(){this.constructor=e}Mt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Bt=function(){return Bt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function qt(e,t){return function(n,r){t(n,r,e)}}function Ut(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function zt(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((r=r.apply(e,t||[])).next())}))}function Wt(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function Xt(){for(var e=[],t=0;t1||o(e,t)}))})}function o(e,t){try{(n=i[e](t)).value instanceof Yt?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function l(e){o("next",e)}function c(e){o("throw",e)}function u(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function en(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Yt(e[r](t)),done:!1}:i?i(t):t}:i}}function tn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=$t(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function nn(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var rn=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function an(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&Gt(t,e,n);return rn(t,e),t}function sn(e){return e&&e.__esModule?e:{default:e}}function on(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function ln(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function cn(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function un(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var pn="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function hn(e){function t(t){e.error=e.hasError?new pn(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}var dn,fn,mn=Object.freeze({__proto__:null,__addDisposableResource:un,get __assign(){return Bt},__asyncDelegator:en,__asyncGenerator:Zt,__asyncValues:tn,__await:Yt,__awaiter:zt,__classPrivateFieldGet:on,__classPrivateFieldIn:cn,__classPrivateFieldSet:ln,__createBinding:Gt,__decorate:Rt,__disposeResources:hn,__esDecorate:function(e,t,n,r,i,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),h=!1,d=n.length-1;d>=0;d--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var y=(0,n[d])("accessor"===l?{get:p.get,set:p.set}:p[c],f);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(o=s(y.get))&&(p.get=o),(o=s(y.set))&&(p.set=o),(o=s(y.init))&&i.unshift(o)}else(o=s(y))&&("field"===l?i.unshift(o):p[c]=o)}u&&Object.defineProperty(u,r.name,p),h=!0},__exportStar:Jt,__extends:Ft,__generator:Wt,__importDefault:sn,__importStar:an,__makeTemplateObject:nn,__metadata:Ut,__param:qt,__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:Ht,__rest:Vt,__runInitializers:function(e,t,n){for(var r=arguments.length>2,i=0;i=e}),a+" >= "+e)},defaults:{null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},isPrimitive:r.from((function(e){if(null===e)return!0;var t=typeof e;return"object"!==t&&"function"!==t}),s.toString())}},xn.maybeSetModuleExports=function(e){try{var t=e(),n=t.exports,r=n.default}catch(e){return}r&&r!==n&&"object"==typeof n&&(Object.assign(r,n,{default:r}),n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0}),t.exports=r)},xn}function En(){return fn||(fn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Def=void 0;var n=yn,r=Sn(),i=Object.prototype,a=i.toString,s=i.hasOwnProperty,o=function(){function e(){}return e.prototype.assert=function(e,t){if(!this.check(e,t)){var n=m(e);throw Error(n+" does not match type "+this)}return!0},e.prototype.arrayOf=function(){return new l(this)},e}(),l=function(e){function t(t){var n=e.call(this)||this;return n.elemType=t,n.kind="ArrayType",n}return n.__extends(t,e),t.prototype.toString=function(){return"["+this.elemType+"]"},t.prototype.check=function(e,t){var n=this;return Array.isArray(e)&&e.every((function(e){return n.elemType.check(e,t)}))},t}(o),c=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n.kind="IdentityType",n}return n.__extends(t,e),t.prototype.toString=function(){return this.value+""},t.prototype.check=function(e,t){var n=e===this.value;return n||"function"!=typeof t||t(this,e),n},t}(o),u=function(e){function t(t){var n=e.call(this)||this;return n.fields=t,n.kind="ObjectType",n}return n.__extends(t,e),t.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},t.prototype.check=function(e,t){return a.call(e)===a.call({})&&this.fields.every((function(n){return n.type.check(e[n.name],t)}))},t}(o),p=function(e){function t(t){var n=e.call(this)||this;return n.types=t,n.kind="OrType",n}return n.__extends(t,e),t.prototype.toString=function(){return this.types.join(" | ")},t.prototype.check=function(e,t){return!!this.types.some((function(n){return n.check(e,!!t)}))||("function"==typeof t&&t(this,e),!1)},t}(o),h=function(e){function t(t,n){var r=e.call(this)||this;return r.name=t,r.predicate=n,r.kind="PredicateType",r}return n.__extends(t,e),t.prototype.toString=function(){return this.name},t.prototype.check=function(e,t){var n=this.predicate(e,t);return n||"function"!=typeof t||t(this,e),n},t}(o),d=function(){function e(e,t){this.type=e,this.typeName=t,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(!0!==this.finalized||!0!==t.finalized)throw Error("");return s.call(t.allSupertypes,this.typeName)}throw Error(t+" is not a Def")},e.prototype.checkAllFields=function(e,t){var n=this.allFields;if(!0!==this.finalized)throw Error(""+this.typeName);return null!==e&&"object"==typeof e&&Object.keys(n).every((function(r){var i=n[r],a=i.type,s=i.getValue(e);return a.check(s,t)}))},e.prototype.bases=function(){for(var e=[],t=0;t=0)return i[a];if("string"!=typeof n)throw Error("missing name");return new h(n,e)}return new c(e)},def:function(e){return s.call(A,e)?A[e]:A[e]=new I(e)},hasDef:function(e){return s.call(A,e)}},r=[],i=[];function o(e,t){var n=a.call(t),s=new h(e,(function(e){return a.call(e)===n}));return t&&"function"==typeof t.constructor&&(r.push(t.constructor),i.push(s)),s}var y=o("string","truthy"),g=o("function",(function(){})),b=o("array",[]),v=o("object",{}),x=o("RegExp",/./),S=o("Date",new Date),E=o("number",3),T=o("boolean",!0),k=o("null",null),_=o("undefined",void 0),P="function"==typeof BigInt?o("BigInt",BigInt(1234)):new h("BigInt",(function(){return!1})),w={string:y,function:g,array:b,object:v,RegExp:x,Date:S,number:E,boolean:T,null:k,undefined:_,BigInt:P},A=Object.create(null);function C(e){if(e&&"object"==typeof e){var t=e.type;if("string"==typeof t&&s.call(A,t)){var n=A[t];if(n.finalized)return n}}return null}var I=function(e){function r(t){var n=e.call(this,new h(t,(function(e,t){return n.check(e,t)})),t)||this;return n}return n.__extends(r,e),r.prototype.check=function(e,t){if(!0!==this.finalized)throw Error("prematurely checking unfinalized type "+this.typeName);if(null===e||"object"!=typeof e)return!1;var n=C(e);return n?t&&n===this?this.checkAllFields(e,t):!!this.isSupertypeOf(n)&&(!t||n.checkAllFields(e,t)&&this.checkAllFields(e,!1)):("SourceLocation"===this.typeName||"Position"===this.typeName)&&this.checkAllFields(e,t)},r.prototype.build=function(){for(var e=this,t=[],n=0;n=0&&function(e){var t=L(e);if(!N[t]){var n=N[D(e)];if(n){var r=function(){for(var e=[],t=0;t=0&&(i[e.name=a]=e)}else r[e.name]=e.value,i[e.name]=e;if(r[e.name]!==e.value)throw Error("");if(e.parentPath.get(e.name)!==e)throw Error("")}(this),n.check(r)){for(var o=r.length,c=p(this.parentPath,a-1,this.name+1),u=[this.name,1],h=0;hu)return!0;if(l===u&&"right"===this.name){if(i.right!==a)throw Error("Nodes must be equal");return!0}default:return!1}case"SequenceExpression":switch(i.type){case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==this.name;default:return!0}case"YieldExpression":switch(i.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return"MemberExpression"===i.type&&o.check(r.value)&&"object"===this.name&&i.object===r;case"AssignmentExpression":case"ConditionalExpression":switch(i.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return"callee"===this.name&&i.callee===r;case"ConditionalExpression":return"test"===this.name&&i.test===r;case"MemberExpression":return"object"===this.name&&i.object===r;default:return!1}default:if("NewExpression"===i.type&&"callee"===this.name&&i.callee===r)return m(r)}return!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())};var f={};function m(e){return!!n.CallExpression.check(e)||(l.check(e)?e.some(m):!!n.Node.check(e)&&t.someField(e,(function(e,t){return m(t)})))}return[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach((function(e,t){e.forEach((function(e){f[e]=t}))})),h.canBeFirstInStatement=function(){var e=this.node;return!n.FunctionExpression.check(e)&&!n.ObjectExpression.check(e)},h.firstInStatement=function(){return function(e){for(var t,r;e.parent;e=e.parent){if(t=e.node,r=e.parent.node,n.BlockStatement.check(r)&&"body"===e.parent.name&&0===e.name){if(r.body[0]!==t)throw Error("Nodes must be equal");return!0}if(n.ExpressionStatement.check(r)&&"expression"===e.name){if(r.expression!==t)throw Error("Nodes must be equal");return!0}if(n.SequenceExpression.check(r)&&"expressions"===e.parent.name&&0===e.name){if(r.expressions[0]!==t)throw Error("Nodes must be equal")}else if(n.CallExpression.check(r)&&"callee"===e.name){if(r.callee!==t)throw Error("Nodes must be equal")}else if(n.MemberExpression.check(r)&&"object"===e.name){if(r.object!==t)throw Error("Nodes must be equal")}else if(n.ConditionalExpression.check(r)&&"test"===e.name){if(r.test!==t)throw Error("Nodes must be equal")}else if(d(r)&&"left"===e.name){if(r.left!==t)throw Error("Nodes must be equal")}else{if(!n.UnaryExpression.check(r)||r.prefix||"argument"!==e.name)return!1;if(r.argument!==t)throw Error("Nodes must be equal")}}return!0}(this)},p},(0,s.maybeSetModuleExports)((function(){return e}))}(_n,_n.exports)),_n.exports}Nn.exports,_n.exports,kn.exports;var Dn,Ln,jn={exports:{}};function Mn(){return Dn||(Dn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=Sn(),i=n.__importDefault(En());t.default=function(e){var t=e.use(i.default),n=t.getFieldNames,r=t.getFieldValue,a=t.builtInTypes.array,s=t.builtInTypes.object,o=t.builtInTypes.Date,l=t.builtInTypes.RegExp,c=Object.prototype.hasOwnProperty;function u(e,t,n){return a.check(n)?n.length=0:n=null,h(e,t,n)}function p(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function h(e,t,i){return e===t||(a.check(e)?function(e,t,n){a.assert(e);var r=e.length;if(!a.check(t)||t.length!==r)return n&&n.push("length"),!1;for(var i=0;i",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}},(0,n.maybeSetModuleExports)((function(){return e}))}($n,$n.exports)),$n.exports}function Xn(){return Bn||(Bn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=Sn(),i=n.__importDefault(Hn());t.default=function(e){var t=e.use(i.default);return t.BinaryOperators.indexOf("**")<0&&t.BinaryOperators.push("**"),t.AssignmentOperators.indexOf("**=")<0&&t.AssignmentOperators.push("**="),t},(0,r.maybeSetModuleExports)((function(){return e}))}(Jn,Jn.exports)),Jn.exports}function Kn(){return Vn||(Vn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=Sn(),i=n.__importDefault(Xn());t.default=function(e){var t=e.use(i.default);return t.LogicalOperators.indexOf("??")<0&&t.LogicalOperators.push("??"),t},(0,r.maybeSetModuleExports)((function(){return e}))}(Gn,Gn.exports)),Gn.exports}$n.exports,Jn.exports,Gn.exports,Wn.exports;var Qn,Yn,Zn,er,tr,nr,rr,ir,ar,sr,or={exports:{}},lr={exports:{}},cr={exports:{}},ur={exports:{}},pr={exports:{}},hr={exports:{}},dr={exports:{}};function fr(){return sr||(sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(En()),i=n.__importStar(Sn()),a=n.__importDefault((ar||(ar=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault((ir||(ir=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault((Rn||(Rn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=Sn(),i=n.__importDefault(Kn());t.default=function(e){var t=e.use(i.default);return t.LogicalOperators.forEach((function(e){var n=e+"=";t.AssignmentOperators.indexOf(n)<0&&t.AssignmentOperators.push(n)})),t},(0,r.maybeSetModuleExports)((function(){return e}))}(Wn,Wn.exports)),Wn.exports)),i=n.__importDefault((rr||(rr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(Kn()),i=n.__importDefault((nr||(nr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault((tr||(tr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault((er||(er=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault((Zn||(Zn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(Xn()),i=n.__importDefault((Yn||(Yn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault((Qn||(Qn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(Hn()),i=n.__importDefault(En()),a=n.__importStar(Sn());t.default=function(e){var t=e.use(i.default).Type,n=t.def,s=t.or,o=e.use(a.default),l=o.defaults,c=o.geq,u=e.use(r.default),p=u.BinaryOperators,h=u.AssignmentOperators,d=u.LogicalOperators;n("Printable").field("loc",s(n("SourceLocation"),null),l.null,!0),n("Node").bases("Printable").field("type",String).field("comments",s([n("Comment")],null),l.null,!0),n("SourceLocation").field("start",n("Position")).field("end",n("Position")).field("source",s(String,null),l.null),n("Position").field("line",c(1)).field("column",c(0)),n("File").bases("Node").build("program","name").field("program",n("Program")).field("name",s(String,null),l.null),n("Program").bases("Node").build("body").field("body",[n("Statement")]),n("Function").bases("Node").field("id",s(n("Identifier"),null),l.null).field("params",[n("Pattern")]).field("body",n("BlockStatement")).field("generator",Boolean,l.false).field("async",Boolean,l.false),n("Statement").bases("Node"),n("EmptyStatement").bases("Statement").build(),n("BlockStatement").bases("Statement").build("body").field("body",[n("Statement")]),n("ExpressionStatement").bases("Statement").build("expression").field("expression",n("Expression")),n("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Statement")).field("alternate",s(n("Statement"),null),l.null),n("LabeledStatement").bases("Statement").build("label","body").field("label",n("Identifier")).field("body",n("Statement")),n("BreakStatement").bases("Statement").build("label").field("label",s(n("Identifier"),null),l.null),n("ContinueStatement").bases("Statement").build("label").field("label",s(n("Identifier"),null),l.null),n("WithStatement").bases("Statement").build("object","body").field("object",n("Expression")).field("body",n("Statement")),n("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",n("Expression")).field("cases",[n("SwitchCase")]).field("lexical",Boolean,l.false),n("ReturnStatement").bases("Statement").build("argument").field("argument",s(n("Expression"),null)),n("ThrowStatement").bases("Statement").build("argument").field("argument",n("Expression")),n("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",n("BlockStatement")).field("handler",s(n("CatchClause"),null),(function(){return this.handlers&&this.handlers[0]||null})).field("handlers",[n("CatchClause")],(function(){return this.handler?[this.handler]:[]}),!0).field("guardedHandlers",[n("CatchClause")],l.emptyArray).field("finalizer",s(n("BlockStatement"),null),l.null),n("CatchClause").bases("Node").build("param","guard","body").field("param",n("Pattern")).field("guard",s(n("Expression"),null),l.null).field("body",n("BlockStatement")),n("WhileStatement").bases("Statement").build("test","body").field("test",n("Expression")).field("body",n("Statement")),n("DoWhileStatement").bases("Statement").build("body","test").field("body",n("Statement")).field("test",n("Expression")),n("ForStatement").bases("Statement").build("init","test","update","body").field("init",s(n("VariableDeclaration"),n("Expression"),null)).field("test",s(n("Expression"),null)).field("update",s(n("Expression"),null)).field("body",n("Statement")),n("ForInStatement").bases("Statement").build("left","right","body").field("left",s(n("VariableDeclaration"),n("Expression"))).field("right",n("Expression")).field("body",n("Statement")),n("DebuggerStatement").bases("Statement").build(),n("Declaration").bases("Statement"),n("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",n("Identifier")),n("FunctionExpression").bases("Function","Expression").build("id","params","body"),n("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",s("var","let","const")).field("declarations",[n("VariableDeclarator")]),n("VariableDeclarator").bases("Node").build("id","init").field("id",n("Pattern")).field("init",s(n("Expression"),null),l.null),n("Expression").bases("Node"),n("ThisExpression").bases("Expression").build(),n("ArrayExpression").bases("Expression").build("elements").field("elements",[s(n("Expression"),null)]),n("ObjectExpression").bases("Expression").build("properties").field("properties",[n("Property")]),n("Property").bases("Node").build("kind","key","value").field("kind",s("init","get","set")).field("key",s(n("Literal"),n("Identifier"))).field("value",n("Expression")),n("SequenceExpression").bases("Expression").build("expressions").field("expressions",[n("Expression")]);var f=s("-","+","!","~","typeof","void","delete");n("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",f).field("argument",n("Expression")).field("prefix",Boolean,l.true);var m=s.apply(void 0,p);n("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",m).field("left",n("Expression")).field("right",n("Expression"));var y=s.apply(void 0,h);n("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",y).field("left",s(n("Pattern"),n("MemberExpression"))).field("right",n("Expression"));var g=s("++","--");n("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",g).field("argument",n("Expression")).field("prefix",Boolean);var b=s.apply(void 0,d);n("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",b).field("left",n("Expression")).field("right",n("Expression")),n("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Expression")).field("alternate",n("Expression")),n("NewExpression").bases("Expression").build("callee","arguments").field("callee",n("Expression")).field("arguments",[n("Expression")]),n("CallExpression").bases("Expression").build("callee","arguments").field("callee",n("Expression")).field("arguments",[n("Expression")]),n("MemberExpression").bases("Expression").build("object","property","computed").field("object",n("Expression")).field("property",s(n("Identifier"),n("Expression"))).field("computed",Boolean,(function(){var e=this.property.type;return"Literal"===e||"MemberExpression"===e||"BinaryExpression"===e})),n("Pattern").bases("Node"),n("SwitchCase").bases("Node").build("test","consequent").field("test",s(n("Expression"),null)).field("consequent",[n("Statement")]),n("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,l.false),n("Literal").bases("Expression").build("value").field("value",s(String,Boolean,null,Number,RegExp,BigInt)),n("Comment").bases("Printable").field("value",String).field("leading",Boolean,l.true).field("trailing",Boolean,l.false)},(0,a.maybeSetModuleExports)((function(){return e}))}(dr,dr.exports)),dr.exports)),i=n.__importDefault(En()),a=n.__importStar(Sn());t.default=function(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,s=t.Type.or,o=e.use(a.default).defaults;n("Function").field("generator",Boolean,o.false).field("expression",Boolean,o.false).field("defaults",[s(n("Expression"),null)],o.emptyArray).field("rest",s(n("Identifier"),null),o.null),n("RestElement").bases("Pattern").build("argument").field("argument",n("Pattern")).field("typeAnnotation",s(n("TypeAnnotation"),n("TSTypeAnnotation"),null),o.null),n("SpreadElementPattern").bases("Pattern").build("argument").field("argument",n("Pattern")),n("FunctionDeclaration").build("id","params","body","generator","expression").field("id",s(n("Identifier"),null)),n("FunctionExpression").build("id","params","body","generator","expression"),n("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,o.null).field("body",s(n("BlockStatement"),n("Expression"))).field("generator",!1,o.false),n("ForOfStatement").bases("Statement").build("left","right","body").field("left",s(n("VariableDeclaration"),n("Pattern"))).field("right",n("Expression")).field("body",n("Statement")),n("YieldExpression").bases("Expression").build("argument","delegate").field("argument",s(n("Expression"),null)).field("delegate",Boolean,o.false),n("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",n("Expression")).field("blocks",[n("ComprehensionBlock")]).field("filter",s(n("Expression"),null)),n("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",n("Expression")).field("blocks",[n("ComprehensionBlock")]).field("filter",s(n("Expression"),null)),n("ComprehensionBlock").bases("Node").build("left","right","each").field("left",n("Pattern")).field("right",n("Expression")).field("each",Boolean),n("Property").field("key",s(n("Literal"),n("Identifier"),n("Expression"))).field("value",s(n("Expression"),n("Pattern"))).field("method",Boolean,o.false).field("shorthand",Boolean,o.false).field("computed",Boolean,o.false),n("ObjectProperty").field("shorthand",Boolean,o.false),n("PropertyPattern").bases("Pattern").build("key","pattern").field("key",s(n("Literal"),n("Identifier"),n("Expression"))).field("pattern",n("Pattern")).field("computed",Boolean,o.false),n("ObjectPattern").bases("Pattern").build("properties").field("properties",[s(n("PropertyPattern"),n("Property"))]),n("ArrayPattern").bases("Pattern").build("elements").field("elements",[s(n("Pattern"),null)]),n("SpreadElement").bases("Node").build("argument").field("argument",n("Expression")),n("ArrayExpression").field("elements",[s(n("Expression"),n("SpreadElement"),n("RestElement"),null)]),n("NewExpression").field("arguments",[s(n("Expression"),n("SpreadElement"))]),n("CallExpression").field("arguments",[s(n("Expression"),n("SpreadElement"))]),n("AssignmentPattern").bases("Pattern").build("left","right").field("left",n("Pattern")).field("right",n("Expression")),n("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",s("constructor","method","get","set")).field("key",n("Expression")).field("value",n("Function")).field("computed",Boolean,o.false).field("static",Boolean,o.false);var l=s(n("MethodDefinition"),n("VariableDeclarator"),n("ClassPropertyDefinition"),n("ClassProperty"),n("StaticBlock"));n("ClassProperty").bases("Declaration").build("key").field("key",s(n("Literal"),n("Identifier"),n("Expression"))).field("computed",Boolean,o.false),n("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",l),n("ClassBody").bases("Declaration").build("body").field("body",[l]),n("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",s(n("Identifier"),null)).field("body",n("ClassBody")).field("superClass",s(n("Expression"),null),o.null),n("ClassExpression").bases("Expression").build("id","body","superClass").field("id",s(n("Identifier"),null),o.null).field("body",n("ClassBody")).field("superClass",s(n("Expression"),null),o.null),n("Super").bases("Expression").build(),n("Specifier").bases("Node"),n("ModuleSpecifier").bases("Specifier").field("local",s(n("Identifier"),null),o.null).field("id",s(n("Identifier"),null),o.null).field("name",s(n("Identifier"),null),o.null),n("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",n("Identifier")),n("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),n("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),n("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[s(n("ImportSpecifier"),n("ImportNamespaceSpecifier"),n("ImportDefaultSpecifier"))],o.emptyArray).field("source",n("Literal")).field("importKind",s("value","type"),(function(){return"value"})),n("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",s(n("Declaration"),null)).field("specifiers",[n("ExportSpecifier")],o.emptyArray).field("source",s(n("Literal"),null),o.null),n("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",n("Identifier")),n("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",s(n("Declaration"),n("Expression"))),n("ExportAllDeclaration").bases("Declaration").build("source").field("source",n("Literal")),n("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",n("Expression")).field("quasi",n("TemplateLiteral")),n("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[n("TemplateElement")]).field("expressions",[n("Expression")]),n("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),n("MetaProperty").bases("Expression").build("meta","property").field("meta",n("Identifier")).field("property",n("Identifier"))},(0,a.maybeSetModuleExports)((function(){return e}))}(hr,hr.exports)),hr.exports)),a=Sn();t.default=function(e){e.use(r.default),e.use(i.default)},(0,a.maybeSetModuleExports)((function(){return e}))}(pr,pr.exports)),pr.exports)),i=n.__importDefault(En()),a=n.__importStar(Sn());t.default=function(e){e.use(r.default);var t=e.use(i.default).Type.def,n=e.use(a.default).defaults;t("Function").field("async",Boolean,n.false),t("AwaitExpression").bases("Expression").build("argument").field("argument",t("Expression"))},(0,a.maybeSetModuleExports)((function(){return e}))}(ur,ur.exports)),ur.exports)),i=n.__importDefault(En()),a=n.__importStar(Sn());t.default=function(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,s=t.Type.or,o=e.use(a.default).defaults;n("ForOfStatement").field("await",Boolean,o.false),n("SpreadProperty").bases("Node").build("argument").field("argument",n("Expression")),n("ObjectExpression").field("properties",[s(n("Property"),n("SpreadProperty"),n("SpreadElement"))]),n("TemplateElement").field("value",{cooked:s(String,null),raw:String}),n("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",n("Pattern")),n("ObjectPattern").field("properties",[s(n("PropertyPattern"),n("Property"),n("RestElement"),n("SpreadPropertyPattern"))])},(0,a.maybeSetModuleExports)((function(){return e}))}(cr,cr.exports)),cr.exports)),i=n.__importDefault(En()),a=n.__importStar(Sn());t.default=function(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,s=t.Type.or,o=e.use(a.default).defaults;n("CatchClause").field("param",s(n("Pattern"),null),o.null)},(0,a.maybeSetModuleExports)((function(){return e}))}(lr,lr.exports)),lr.exports)),a=n.__importDefault(En()),s=n.__importStar(Sn());t.default=function(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,o=t.Type.or,l=e.use(s.default).defaults;n("ImportExpression").bases("Expression").build("source").field("source",n("Expression")),n("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",n("Literal")).field("exported",o(n("Identifier"),null,void 0),l.null),n("ChainElement").bases("Node").field("optional",Boolean,l.false),n("CallExpression").bases("Expression","ChainElement"),n("MemberExpression").bases("Expression","ChainElement"),n("ChainExpression").bases("Expression").build("expression").field("expression",n("ChainElement")),n("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,l.true),n("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,l.true)},(0,s.maybeSetModuleExports)((function(){return e}))}(or,or.exports)),or.exports)),a=Sn();t.default=function(e){e.use(r.default),e.use(i.default)},(0,a.maybeSetModuleExports)((function(){return e}))}(zn,zn.exports)),zn.exports)),i=n.__importDefault(En()),a=Sn();t.default=function(e){e.use(r.default);var t=e.use(i.default).Type.def;t("StaticBlock").bases("Declaration").build("body").field("body",[t("Statement")])},(0,a.maybeSetModuleExports)((function(){return e}))}(Un,Un.exports)),Un.exports));t.default=function(e){e.use(a.default);var t=e.use(r.default),n=t.Type,s=t.Type.def,o=n.or,l=e.use(i.default).defaults;s("AwaitExpression").build("argument","all").field("argument",o(s("Expression"),null)).field("all",Boolean,l.false),s("Decorator").bases("Node").build("expression").field("expression",s("Expression")),s("Property").field("decorators",o([s("Decorator")],null),l.null),s("MethodDefinition").field("decorators",o([s("Decorator")],null),l.null),s("PrivateName").bases("Expression","Pattern").build("id").field("id",s("Identifier")),s("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",s("PrivateName")).field("value",o(s("Expression"),null),l.null),s("ImportAttribute").bases("Node").build("key","value").field("key",o(s("Identifier"),s("Literal"))).field("value",s("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach((function(e){s(e).field("assertions",[s("ImportAttribute")],l.emptyArray)})),s("RecordExpression").bases("Expression").build("properties").field("properties",[o(s("ObjectProperty"),s("ObjectMethod"),s("SpreadElement"))]),s("TupleExpression").bases("Expression").build("elements").field("elements",[o(s("Expression"),s("SpreadElement"),null)]),s("ModuleExpression").bases("Node").build("body").field("body",s("Program"))},(0,i.maybeSetModuleExports)((function(){return e}))}(qn,qn.exports)),qn.exports}dr.exports,hr.exports,pr.exports,ur.exports,cr.exports,lr.exports,or.exports,zn.exports,Un.exports,qn.exports;var mr,yr={exports:{}};yr.exports;var gr,br,vr={exports:{}},xr={exports:{}};function Sr(){return gr||(gr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(En()),i=n.__importStar(Sn());t.default=function(e){var t=e.use(r.default),n=t.Type.def,a=t.Type.or,s=e.use(i.default).defaults,o=a(n("TypeAnnotation"),n("TSTypeAnnotation"),null),l=a(n("TypeParameterDeclaration"),n("TSTypeParameterDeclaration"),null);n("Identifier").field("typeAnnotation",o,s.null),n("ObjectPattern").field("typeAnnotation",o,s.null),n("Function").field("returnType",o,s.null).field("typeParameters",l,s.null),n("ClassProperty").build("key","value","typeAnnotation","static").field("value",a(n("Expression"),null)).field("static",Boolean,s.false).field("typeAnnotation",o,s.null),["ClassDeclaration","ClassExpression"].forEach((function(e){n(e).field("typeParameters",l,s.null).field("superTypeParameters",a(n("TypeParameterInstantiation"),n("TSTypeParameterInstantiation"),null),s.null).field("implements",a([n("ClassImplements")],[n("TSExpressionWithTypeArguments")]),s.emptyArray)}))},(0,i.maybeSetModuleExports)((function(){return e}))}(xr,xr.exports)),xr.exports}function Er(){return br||(br=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(fr()),i=n.__importDefault(Sr()),a=n.__importDefault(En()),s=n.__importStar(Sn());t.default=function(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,o=t.Type.or,l=e.use(s.default).defaults;n("Flow").bases("Node"),n("FlowType").bases("Flow"),n("AnyTypeAnnotation").bases("FlowType").build(),n("EmptyTypeAnnotation").bases("FlowType").build(),n("MixedTypeAnnotation").bases("FlowType").build(),n("VoidTypeAnnotation").bases("FlowType").build(),n("SymbolTypeAnnotation").bases("FlowType").build(),n("NumberTypeAnnotation").bases("FlowType").build(),n("BigIntTypeAnnotation").bases("FlowType").build(),n("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),n("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),n("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),n("StringTypeAnnotation").bases("FlowType").build(),n("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),n("BooleanTypeAnnotation").bases("FlowType").build(),n("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),n("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",n("FlowType")),n("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",n("FlowType")),n("NullLiteralTypeAnnotation").bases("FlowType").build(),n("NullTypeAnnotation").bases("FlowType").build(),n("ThisTypeAnnotation").bases("FlowType").build(),n("ExistsTypeAnnotation").bases("FlowType").build(),n("ExistentialTypeParam").bases("FlowType").build(),n("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[n("FunctionTypeParam")]).field("returnType",n("FlowType")).field("rest",o(n("FunctionTypeParam"),null)).field("typeParameters",o(n("TypeParameterDeclaration"),null)),n("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",o(n("Identifier"),null)).field("typeAnnotation",n("FlowType")).field("optional",Boolean),n("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",n("FlowType")),n("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[o(n("ObjectTypeProperty"),n("ObjectTypeSpreadProperty"))]).field("indexers",[n("ObjectTypeIndexer")],l.emptyArray).field("callProperties",[n("ObjectTypeCallProperty")],l.emptyArray).field("inexact",o(Boolean,void 0),l[void 0]).field("exact",Boolean,l.false).field("internalSlots",[n("ObjectTypeInternalSlot")],l.emptyArray),n("Variance").bases("Node").build("kind").field("kind",o("plus","minus"));var c=o(n("Variance"),"plus","minus",null);n("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",o(n("Literal"),n("Identifier"))).field("value",n("FlowType")).field("optional",Boolean).field("variance",c,l.null),n("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",n("Identifier")).field("key",n("FlowType")).field("value",n("FlowType")).field("variance",c,l.null).field("static",Boolean,l.false),n("ObjectTypeCallProperty").bases("Node").build("value").field("value",n("FunctionTypeAnnotation")).field("static",Boolean,l.false),n("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",o(n("Identifier"),n("QualifiedTypeIdentifier"))).field("id",n("Identifier")),n("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",o(n("Identifier"),n("QualifiedTypeIdentifier"))).field("typeParameters",o(n("TypeParameterInstantiation"),null)),n("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",n("Identifier")).field("property",o(n("MemberTypeAnnotation"),n("GenericTypeAnnotation"))),n("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",n("FlowType")).field("indexType",n("FlowType")),n("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",n("FlowType")).field("indexType",n("FlowType")).field("optional",Boolean),n("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[n("FlowType")]),n("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[n("FlowType")]),n("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",n("FlowType")),n("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",n("FlowType")),n("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",n("Identifier")).field("value",n("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),n("TypeParameterDeclaration").bases("Node").build("params").field("params",[n("TypeParameter")]),n("TypeParameterInstantiation").bases("Node").build("params").field("params",[n("FlowType")]),n("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",c,l.null).field("bound",o(n("TypeAnnotation"),null),l.null).field("default",o(n("FlowType"),null),l.null),n("ClassProperty").field("variance",c,l.null),n("ClassImplements").bases("Node").build("id").field("id",n("Identifier")).field("superClass",o(n("Expression"),null),l.null).field("typeParameters",o(n("TypeParameterInstantiation"),null),l.null),n("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",n("ObjectTypeAnnotation")).field("extends",o([n("InterfaceExtends")],null),l.null),n("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",n("Identifier")).field("typeParameters",o(n("TypeParameterDeclaration"),null),l.null).field("body",n("ObjectTypeAnnotation")).field("extends",[n("InterfaceExtends")]),n("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),n("InterfaceExtends").bases("Node").build("id").field("id",n("Identifier")).field("typeParameters",o(n("TypeParameterInstantiation"),null),l.null),n("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",n("Identifier")).field("typeParameters",o(n("TypeParameterDeclaration"),null)).field("right",n("FlowType")),n("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),n("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",n("Identifier")).field("typeParameters",o(n("TypeParameterDeclaration"),null)).field("impltype",n("FlowType")).field("supertype",o(n("FlowType"),null)),n("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",o(n("FlowType"),null)),n("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",n("Expression")).field("typeAnnotation",n("TypeAnnotation")),n("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[n("FlowType")]),n("DeclareVariable").bases("Statement").build("id").field("id",n("Identifier")),n("DeclareFunction").bases("Statement").build("id").field("id",n("Identifier")).field("predicate",o(n("FlowPredicate"),null),l.null),n("DeclareClass").bases("InterfaceDeclaration").build("id"),n("DeclareModule").bases("Statement").build("id","body").field("id",o(n("Identifier"),n("Literal"))).field("body",n("BlockStatement")),n("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",n("TypeAnnotation")),n("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",o(n("DeclareVariable"),n("DeclareFunction"),n("DeclareClass"),n("FlowType"),n("TypeAlias"),n("DeclareOpaqueType"),n("InterfaceDeclaration"),null)).field("specifiers",[o(n("ExportSpecifier"),n("ExportBatchSpecifier"))],l.emptyArray).field("source",o(n("Literal"),null),l.null),n("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",o(n("Literal"),null),l.null),n("ImportDeclaration").field("importKind",o("value","type","typeof"),(function(){return"value"})),n("FlowPredicate").bases("Flow"),n("InferredPredicate").bases("FlowPredicate").build(),n("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",n("Expression")),n("Function").field("predicate",o(n("FlowPredicate"),null),l.null),n("CallExpression").field("typeArguments",o(null,n("TypeParameterInstantiation")),l.null),n("NewExpression").field("typeArguments",o(null,n("TypeParameterInstantiation")),l.null),n("EnumDeclaration").bases("Declaration").build("id","body").field("id",n("Identifier")).field("body",o(n("EnumBooleanBody"),n("EnumNumberBody"),n("EnumStringBody"),n("EnumSymbolBody"))),n("EnumBooleanBody").build("members","explicitType").field("members",[n("EnumBooleanMember")]).field("explicitType",Boolean),n("EnumNumberBody").build("members","explicitType").field("members",[n("EnumNumberMember")]).field("explicitType",Boolean),n("EnumStringBody").build("members","explicitType").field("members",o([n("EnumStringMember")],[n("EnumDefaultedMember")])).field("explicitType",Boolean),n("EnumSymbolBody").build("members").field("members",[n("EnumDefaultedMember")]),n("EnumBooleanMember").build("id","init").field("id",n("Identifier")).field("init",o(n("Literal"),Boolean)),n("EnumNumberMember").build("id","init").field("id",n("Identifier")).field("init",n("Literal")),n("EnumStringMember").build("id","init").field("id",n("Identifier")).field("init",n("Literal")),n("EnumDefaultedMember").build("id").field("id",n("Identifier"))},(0,s.maybeSetModuleExports)((function(){return e}))}(vr,vr.exports)),vr.exports}xr.exports,vr.exports;var Tr,kr={exports:{}};kr.exports;var _r,Pr,wr={exports:{}},Ar={exports:{}};function Cr(){return _r||(_r=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(fr()),i=n.__importDefault(En()),a=n.__importStar(Sn());t.default=function(e){var t,n,s,o,l;e.use(r.default);var c=e.use(i.default),u=e.use(a.default).defaults,p=c.Type.def,h=c.Type.or,d=c.builtInTypes.undefined;function f(e,t){return void 0===e&&(e=String),["extra",{rawValue:e,raw:String},function(){var e=c.getFieldValue(this,"value");return{rawValue:e,raw:t?t(e):e+""}}]}p("Noop").bases("Statement").build(),p("DoExpression").bases("Expression").build("body").field("body",[p("Statement")]),p("BindExpression").bases("Expression").build("object","callee").field("object",h(p("Expression"),null)).field("callee",p("Expression")),p("ParenthesizedExpression").bases("Expression").build("expression").field("expression",p("Expression")),p("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",p("Identifier")),p("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",p("Identifier")),p("CommentBlock").bases("Comment").build("value","leading","trailing"),p("CommentLine").bases("Comment").build("value","leading","trailing"),p("Directive").bases("Node").build("value").field("value",p("DirectiveLiteral")),p("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,u["use strict"]),p("InterpreterDirective").bases("Node").build("value").field("value",String),p("BlockStatement").bases("Statement").build("body").field("body",[p("Statement")]).field("directives",[p("Directive")],u.emptyArray),p("Program").bases("Node").build("body").field("body",[p("Statement")]).field("directives",[p("Directive")],u.emptyArray).field("interpreter",h(p("InterpreterDirective"),null),u.null),(t=p("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(t,f(String,(function(e){return JSON.stringify(e)}))),(n=p("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",h(String,null),u.null)).field.apply(n,f(Number)),(s=p("BigIntLiteral").bases("Literal").build("value").field("value",h(String,Number))).field.apply(s,f(String,(function(e){return e+"n"}))),(o=p("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(o,f(String,(function(e){return e+"m"}))),p("NullLiteral").bases("Literal").build().field("value",null,u.null),p("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(l=p("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,(function(){return RegExp(this.pattern,this.flags)}))).field.apply(l,f(h(RegExp,d),(function(e){return"/".concat(e.pattern,"/").concat(e.flags||"")}))).field("regex",{pattern:String,flags:String},(function(){return{pattern:this.pattern,flags:this.flags}}));var m=h(p("Property"),p("ObjectMethod"),p("ObjectProperty"),p("SpreadProperty"),p("SpreadElement"));p("ObjectExpression").bases("Expression").build("properties").field("properties",[m]),p("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",h("method","get","set")).field("key",h(p("Literal"),p("Identifier"),p("Expression"))).field("params",[p("Pattern")]).field("body",p("BlockStatement")).field("computed",Boolean,u.false).field("generator",Boolean,u.false).field("async",Boolean,u.false).field("accessibility",h(p("Literal"),null),u.null).field("decorators",h([p("Decorator")],null),u.null),p("ObjectProperty").bases("Node").build("key","value").field("key",h(p("Literal"),p("Identifier"),p("Expression"))).field("value",h(p("Expression"),p("Pattern"))).field("accessibility",h(p("Literal"),null),u.null).field("computed",Boolean,u.false);var y=h(p("MethodDefinition"),p("VariableDeclarator"),p("ClassPropertyDefinition"),p("ClassProperty"),p("ClassPrivateProperty"),p("ClassMethod"),p("ClassPrivateMethod"),p("ClassAccessorProperty"),p("StaticBlock"));p("ClassBody").bases("Declaration").build("body").field("body",[y]),p("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",h(p("Literal"),p("Identifier"),p("Expression"))),p("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",p("PrivateName")),p("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",h(p("Literal"),p("Identifier"),p("PrivateName"),p("Expression"))).field("value",h(p("Expression"),null),u.null),["ClassMethod","ClassPrivateMethod"].forEach((function(e){p(e).field("kind",h("get","set","method","constructor"),(function(){return"method"})).field("body",p("BlockStatement")).field("access",h("public","private","protected",null),u.null)})),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach((function(e){p(e).field("computed",Boolean,u.false).field("static",Boolean,u.false).field("abstract",Boolean,u.false).field("accessibility",h("public","private","protected",null),u.null).field("decorators",h([p("Decorator")],null),u.null).field("definite",Boolean,u.false).field("optional",Boolean,u.false).field("override",Boolean,u.false).field("readonly",Boolean,u.false)}));var g=h(p("Property"),p("PropertyPattern"),p("SpreadPropertyPattern"),p("SpreadProperty"),p("ObjectProperty"),p("RestProperty"),p("RestElement"));p("ObjectPattern").bases("Pattern").build("properties").field("properties",[g]).field("decorators",h([p("Decorator")],null),u.null),p("SpreadProperty").bases("Node").build("argument").field("argument",p("Expression")),p("RestProperty").bases("Node").build("argument").field("argument",p("Expression")),p("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",h(p("VariableDeclaration"),p("Expression"))).field("right",p("Expression")).field("body",p("Statement")),p("Import").bases("Expression").build()},(0,a.maybeSetModuleExports)((function(){return e}))}(Ar,Ar.exports)),Ar.exports}Ar.exports,wr.exports;var Ir,Nr={exports:{}};Nr.exports;var Or,Dr,Lr={};function jr(){return Dr||(Dr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.visit=e.use=e.Type=e.someField=e.PathVisitor=e.Path=e.NodePath=e.namedTypes=e.getSupertypeNames=e.getFieldValue=e.getFieldNames=e.getBuilderName=e.finalize=e.eachField=e.defineMethod=e.builtInTypes=e.builders=e.astNodesAreEquivalent=void 0;var t=yn,n=t.__importDefault((Ln||(Ln=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(En()),i=n.__importDefault((In||(In=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=yn,r=n.__importDefault(En()),i=n.__importDefault(On()),a=Sn(),s=Object.prototype.hasOwnProperty;t.default=function(e){var t=e.use(r.default),n=e.use(i.default),a=t.builtInTypes.array,o=t.builtInTypes.object,l=t.builtInTypes.function,c=function e(){if(!(this instanceof e))throw Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=function(e){var n=Object.create(null);for(var r in e)/^visit[A-Z]/.test(r)&&(n[r.slice(5)]=!0);for(var i=t.computeSupertypeLookupTable(n),a=Object.create(null),s=Object.keys(i),o=s.length,c=0;c({})}},Wr=function(){},Gr=function(){};var Jr=Lt(Object.freeze({__proto__:null,SourceMapConsumer:Wr,SourceMapGenerator:zr,SourceNode:Gr,default:{SourceNode:Gr,SourceMapConsumer:Wr,SourceMapGenerator:zr}})),$r=Lt(Object.freeze({__proto__:null,EOL:"\n"}));Object.defineProperty(qr,"__esModule",{value:!0}),qr.isTrailingCommaEnabled=qr.getParentExportDeclaration=qr.isExportDeclaration=qr.fixFaultyLocations=qr.getTrueLoc=ii=qr.composeSourceMaps=qr.copyPos=qr.comparePos=qr.getUnionOfKeys=qr.getOption=qr.isBrowser=qr.getLineTerminator=void 0;var Hr=yn,Xr=Hr.__importDefault(Vr()),Kr=Hr.__importStar(jr()).namedTypes,Qr=Hr.__importDefault(Jr),Yr=Qr.default.SourceMapConsumer,Zr=Qr.default.SourceMapGenerator,ei=Object.prototype.hasOwnProperty;function ti(){return"undefined"!=typeof window&&void 0!==window.document}function ni(e,t){return e.line-t.line||e.column-t.column}function ri(e){return{line:e.line,column:e.column}}qr.getLineTerminator=function(){return ti()?"\n":$r.EOL||"\n"},qr.isBrowser=ti,qr.getOption=function(e,t,n){return e&&ei.call(e,t)?e[t]:n},qr.getUnionOfKeys=function(){for(var e=[],t=0;t0?(o.column=0,l.column=0):(0,e.default)(0===u);(0,t.comparePos)(l,s)<0&&i.nextPos(l,!0);)(0,e.default)(n.nextPos(o,!0)),(0,e.default)(n.charAt(o)===i.charAt(l))}else for(o=n.skipSpaces(r,!0)||n.firstPos(),l=i.skipSpaces(a,!0)||i.firstPos(),u=s.line-l.line,o.line+=u,l.line+=u,u<0?(o.column=n.getLineLength(o.line),l.column=i.getLineLength(l.line)):(0,e.default)(0===u);(0,t.comparePos)(s,l)<0&&i.prevPos(l,!0);)(0,e.default)(n.prevPos(o,!0)),(0,e.default)(n.charAt(o)===i.charAt(l));return o}(o,i,r,u,p)}if((0,t.comparePos)(a,c.start)<=0)if((0,t.comparePos)(c.end,s)<=0)c={start:i(c.start,a.line,a.column),end:i(c.end,a.line,a.column)};else{if((0,t.comparePos)(s,c.start)<=0)return null;l={start:l.start,end:u("end")},c={start:i(c.start,a.line,a.column),end:i(s,a.line,a.column)}}else{if((0,t.comparePos)(c.end,a)<=0)return null;(0,t.comparePos)(c.end,s)<=0?(l={start:u("start"),end:l.end},c={start:{line:1,column:0},end:i(c.end,a.line,a.column)}):(l={start:u("start"),end:u("end")},c={start:{line:1,column:0},end:i(s,a.line,a.column)})}return new n(this.sourceLines,l,c)},n.prototype.add=function(e,t){return new n(this.sourceLines,this.sourceLoc,{start:r(this.targetLoc.start,e,t),end:r(this.targetLoc.end,e,t)})},n.prototype.subtract=function(e,t){return new n(this.sourceLines,this.sourceLoc,{start:i(this.targetLoc.start,e,t),end:i(this.targetLoc.end,e,t)})},n.prototype.indent=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),0===e)return this;var i=this.targetLoc,a=i.start.line,s=i.end.line;if(t&&1===a&&1===s)return this;if(i={start:i.start,end:i.end},!t||a>1){var o=i.start.column+e;i.start={line:a,column:r?Math.max(0,o):o}}if(!t||s>1){var l=i.end.column+e;i.end={line:s,column:r?Math.max(0,l):l}}return new n(this.sourceLines,this.sourceLoc,i)},n}();function r(e,t,n){return{line:e.line+t-1,column:1===e.line?e.column+n:e.column}}function i(e,t,n){return{line:e.line-t+1,column:e.line===t?e.column-n:e.column}}return yi.default=n,yi}()),s=function(){function s(e,n){void 0===n&&(n=null),this.infos=e,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,(0,t.default)(e.length>0),this.length=e.length,this.name=n||null,this.name&&this.mappings.push(new a.default(this,{start:this.firstPos(),end:this.lastPos()}))}return s.prototype.toString=function(e){return this.sliceString(this.firstPos(),this.lastPos(),e)},s.prototype.getSourceMap=function(e,r){if(!e)return null;var a=this;function s(t){return(t=t||{}).file=e,r&&(t.sourceRoot=r),t}if(a.cachedSourceMap)return s(a.cachedSourceMap.toJSON());var o=new n.default.SourceMapGenerator(s()),c={};return a.mappings.forEach((function(e){for(var n=e.sourceLines.skipSpaces(e.sourceLoc.start)||e.sourceLines.lastPos(),r=a.skipSpaces(e.targetLoc.start)||a.lastPos();(0,i.comparePos)(n,e.sourceLoc.end)<0&&(0,i.comparePos)(r,e.targetLoc.end)<0;){var s=e.sourceLines.charAt(n),u=a.charAt(r);(0,t.default)(s===u);var p=e.sourceLines.name;if(o.addMapping({source:p,original:{line:n.line,column:n.column},generated:{line:r.line,column:r.column}}),!l.call(c,p)){var h=e.sourceLines.toString();o.setSourceContent(p,h),c[p]=h}a.nextPos(r,!0),e.sourceLines.nextPos(n,!0)}})),a.cachedSourceMap=o,o.toJSON()},s.prototype.bootstrapCharAt=function(e){(0,t.default)("object"==typeof e),(0,t.default)("number"==typeof e.line),(0,t.default)("number"==typeof e.column);var n=e.line,r=e.column,i=this.toString().split(h),a=i[n-1];return void 0===a?"":r===a.length&&n=a.length?"":a.charAt(r)},s.prototype.charAt=function(e){(0,t.default)("object"==typeof e),(0,t.default)("number"==typeof e.line),(0,t.default)("number"==typeof e.column);var n=e.line,r=e.column,i=this.infos[n-1],a=r;if(void 0===i||a<0)return"";var s=this.getIndentAt(n);return a=i.sliceEnd?"":i.line.charAt(a)},s.prototype.stripMargin=function(n,r){if(0===n)return this;if((0,t.default)(n>0,"negative margin: "+n),r&&1===this.length)return this;var i=new s(this.infos.map((function(t,i){return t.line&&(i>0||!r)&&(t=e.__assign(e.__assign({},t),{indent:Math.max(0,t.indent-n)})),t})));if(this.mappings.length>0){var a=i.mappings;(0,t.default)(0===a.length),this.mappings.forEach((function(e){a.push(e.indent(n,r,!0))}))}return i},s.prototype.indent=function(n){if(0===n)return this;var r=new s(this.infos.map((function(t){return t.line&&!t.locked&&(t=e.__assign(e.__assign({},t),{indent:t.indent+n})),t})));if(this.mappings.length>0){var i=r.mappings;(0,t.default)(0===i.length),this.mappings.forEach((function(e){i.push(e.indent(n))}))}return r},s.prototype.indentTail=function(n){if(0===n)return this;if(this.length<2)return this;var r=new s(this.infos.map((function(t,r){return r>0&&t.line&&!t.locked&&(t=e.__assign(e.__assign({},t),{indent:t.indent+n})),t})));if(this.mappings.length>0){var i=r.mappings;(0,t.default)(0===i.length),this.mappings.forEach((function(e){i.push(e.indent(n,!0))}))}return r},s.prototype.lockIndentTail=function(){return this.length<2?this:new s(this.infos.map((function(t,n){return e.__assign(e.__assign({},t),{locked:n>0})})))},s.prototype.getIndentAt=function(e){return(0,t.default)(e>=1,"no line "+e+" (line numbers start from 1)"),Math.max(this.infos[e-1].indent,0)},s.prototype.guessTabWidth=function(){if("number"==typeof this.cachedTabWidth)return this.cachedTabWidth;for(var e=[],t=0,n=1,r=this.length;n<=r;++n){var i=this.infos[n-1];if(!f(i.line.slice(i.sliceStart,i.sliceEnd))){var a=Math.abs(i.indent-t);e[a]=1+~~e[a],t=i.indent}}for(var s=-1,o=2,c=1;cs&&(s=e[c],o=c);return this.cachedTabWidth=o},s.prototype.startsWithComment=function(){if(0===this.infos.length)return!1;var e=this.infos[0],t=e.sliceStart,n=e.sliceEnd,r=e.line.slice(t,n).trim();return 0===r.length||"//"===r.slice(0,2)||"/*"===r.slice(0,2)},s.prototype.isOnlyWhitespace=function(){return f(this.toString())},s.prototype.isPrecededOnlyByWhitespace=function(e){var t=this.infos[e.line-1],n=Math.max(t.indent,0),r=e.column-n;if(r<=0)return!0;var i=t.sliceStart,a=Math.min(i+r,t.sliceEnd);return f(t.line.slice(i,a))},s.prototype.getLineLength=function(e){var t=this.infos[e-1];return this.getIndentAt(e)+t.sliceEnd-t.sliceStart},s.prototype.nextPos=function(e,t){void 0===t&&(t=!1);var n=Math.max(e.line,0);return Math.max(e.column,0)0&&(n.push(n.pop().slice(0,t.column)),n[0]=n[0].slice(e.column)),d(n.join("\n"))},s.prototype.slice=function(e,n){if(!n){if(!e)return this;n=this.lastPos()}if(!e)throw Error("cannot slice with end but not start");var r=this.infos.slice(e.line-1,n.line);e.line===n.line?r[0]=m(r[0],e.column,n.column):((0,t.default)(e.line0){var a=i.mappings;(0,t.default)(0===a.length),this.mappings.forEach((function(t){var r=t.slice(this,e,n);r&&a.push(r)}),this)}return i},s.prototype.bootstrapSliceString=function(e,t,n){return this.slice(e,t).toString(n)},s.prototype.sliceString=function(e,t,n){void 0===e&&(e=this.firstPos()),void 0===t&&(t=this.lastPos());for(var i=(0,r.normalize)(n),a=i.tabWidth,s=i.useTabs,o=i.reuseWhitespace,l=i.lineTerminator,c=[],p=e.line;p<=t.line;++p){var h=this.infos[p-1];p===e.line?h=p===t.line?m(h,e.column,t.column):m(h,e.column):p===t.line&&(h=m(h,0,t.column));var d=Math.max(h.indent,0),y=h.line.slice(0,h.sliceStart);if(o&&f(y)&&u(y,a)===d)c.push(h.line.slice(0,h.sliceEnd));else{var g=0,b=d;s&&(b-=(g=Math.floor(d/a))*a);var v="";g>0&&(v+=Array(g+1).join("\t")),b>0&&(v+=Array(b+1).join(" ")),v+=h.line.slice(h.sliceStart,h.sliceEnd),c.push(v)}}return c.join(l)},s.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},s.prototype.join=function(t){var n,r=this,i=[],a=[];function o(t){if(null!==t){if(n){var r=t.infos[0],s=Array(r.indent+1).join(" "),o=i.length,l=Math.max(n.indent,0)+n.sliceEnd-n.sliceStart;n.line=n.line.slice(0,n.sliceEnd)+s+r.line.slice(r.sliceStart,r.sliceEnd),n.locked=n.locked||r.locked,n.sliceEnd=n.line.length,t.mappings.length>0&&t.mappings.forEach((function(e){a.push(e.add(o,l))}))}else t.mappings.length>0&&a.push.apply(a,t.mappings);t.infos.forEach((function(t,r){(!n||r>0)&&(n=e.__assign({},t),i.push(n))}))}}if(t.map((function(e){var t=d(e);return t.isEmpty()?null:t})).forEach((function(e,t){r.isEmpty()?o(e):function(e,t){t>0&&o(r),o(e)}(e,t)})),i.length<1)return y;var l=new s(i);return l.mappings=a,l},s.prototype.concat=function(){for(var e=[],n=0;n0);var s=Math.ceil(r/n)*n;s===r?r+=n:r=s;break;case 11:case 12:case 13:case 65279:break;default:r+=1}return r}mi.countSpaces=u;var p=/^\s*/,h=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function d(e,n){if(e instanceof s)return e;e+="";var i=n&&n.tabWidth,a=e.indexOf("\t")<0,d=!n&&a&&e.length<=c;if((0,t.default)(i||a,"No tab width specified but encountered tabs in string\n"+e),d&&l.call(o,e))return o[e];var f=new s(e.split(h).map((function(e){var t=p.exec(e)[0];return{line:e,indent:u(t,i),locked:!1,sliceStart:t.length,sliceEnd:e.length}})),(0,r.normalize)(n).sourceFileName);return d&&(o[e]=f),f}function f(e){return!/\S/.test(e)}function m(e,n,r){var i=e.sliceStart,a=e.sliceEnd,s=Math.max(e.indent,0),o=s+a-i;return void 0===r&&(r=o),n=Math.max(n,0),(r=Math.max(r=Math.min(r,o),n))=0),(0,t.default)(i<=a),(0,t.default)(o===s+a-i),e.indent===s&&e.sliceStart===i&&e.sliceEnd===a?e:{line:e.line,indent:s,locked:!1,sliceStart:i,sliceEnd:a}}mi.fromString=d,mi.concat=function(e){return y.join(e)};var y=d("");return mi}var bi,vi,xi={};function Si(){if(bi)return xi;bi=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.printComments=xi.attach=void 0;var e=yn,t=e.__importDefault(Vr()),n=e.__importStar(jr()),r=n.namedTypes,i=n.builtInTypes.array,a=n.builtInTypes.object,s=gi(),o=qr,l=new WeakMap;function c(e,t,s){if(!e)return s;if((0,o.fixFaultyLocations)(e,t),s){if(r.Node.check(e)&&r.SourceLocation.check(e.loc)){for(var u=s.length-1;u>=0;--u){var p=s[u];if(p&&p.loc&&(0,o.comparePos)(p.loc.end,e.loc.start)<=0)break}return s.splice(u+1,0,e),s}}else{var h=l.get(e);if(h)return h}var d;if(i.check(e))d=Object.keys(e);else{if(!a.check(e))return s;d=n.getFieldNames(e)}s||l.set(e,s=[]),u=0;for(var f=d.length;u>1,h=a[p];if((0,o.comparePos)(h.loc.start,t.loc.start)<=0&&(0,o.comparePos)(t.loc.end,h.loc.end)<=0)return void u(t.enclosingNode=h,t,n);if((0,o.comparePos)(h.loc.end,t.loc.start)<=0)r=h,s=p+1;else{if(!((0,o.comparePos)(t.loc.end,h.loc.start)<=0))throw Error("Comment location overlaps with node location");i=h,l=p}}r&&(t.precedingNode=r),i&&(t.followingNode=i)}function p(e,n){var r=e.length;if(0!==r){for(var i,a=e[0].precedingNode,s=e[0].followingNode,o=s.loc.start,l=r;l>0;--l){i=e[l-1],(0,t.default)(i.precedingNode===a),(0,t.default)(i.followingNode===s);var c=n.sliceString(i.loc.end,o);if(/\S/.test(c))break;o=i.loc.start}for(;l<=r&&(i=e[l])&&("Line"===i.type||"CommentLine"===i.type)&&i.loc.start.column>s.loc.start.column;)++l;if(l){var u=e[l-1].enclosingNode;"CallExpression"===(null==u?void 0:u.type)&&--l}e.forEach((function(e,t){t0){var c=a[l-1];(0,t.default)(c.precedingNode===e.precedingNode==(c.followingNode===e.followingNode)),c.followingNode!==e.followingNode&&p(a,r)}a.push(e)}else if(i)p(a,r),f(i,e);else if(o)p(a,r),d(o,e);else{if(!s)throw Error("AST contains no nodes at all?");p(a,r),function(e,t){t.leading=!1,t.trailing=!1,h(e,t)}(s,e)}})),p(a,r),e.forEach((function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))}},xi.printComments=function(e,t){var i=e.getValue(),a=t(e),o=r.Node.check(i)&&n.getFieldValue(i,"comments");if(!o||0===o.length)return a;var l=[],c=[a];return e.each((function(e){var a=e.getValue(),o=n.getFieldValue(a,"leading"),u=n.getFieldValue(a,"trailing");o||u&&!r.Statement.check(i)&&"Block"!==a.type&&"CommentBlock"!==a.type?l.push(function(e,t){var n=e.getValue();r.Comment.assert(n);var i=n.loc,a=i&&i.lines,o=[t(e)];if(n.trailing)o.push("\n");else if(a instanceof s.Lines){var l=a.slice(i.end,a.skipSpaces(i.end)||a.lastPos());1===l.length?o.push(l):o.push(Array(l.length).join("\n"))}else o.push("\n");return(0,s.concat)(o)}(e,t)):u&&c.push(function(e,t){var n=e.getValue(e);r.Comment.assert(n);var i=n.loc,a=i&&i.lines,o=[];if(a instanceof s.Lines){var l=a.skipSpaces(i.start,!0)||a.firstPos(),c=a.slice(l,i.start);1===c.length?o.push(c):o.push(Array(c.length).join("\n"))}return o.push(t(e)),(0,s.concat)(o)}(e,t))}),"comments"),l.push.apply(l,c),(0,s.concat)(l)},xi}var Ei,Ti={},ki={};function _i(){if(Ei)return ki;Ei=1,Object.defineProperty(ki,"__esModule",{value:!0});var e=yn,t=e.__importDefault(Vr()),n=e.__importStar(jr()),r=e.__importStar(qr),i=n.namedTypes,a=n.builtInTypes.array,s=n.builtInTypes.number,o={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){o[e]=t}))}));var l=function e(n){(0,t.default)(this instanceof e),this.stack=[n]},c=l.prototype;function u(e,t){for(var n=e.stack,r=n.length-1;r>=0;r-=2){var a=n[r];if(i.Node.check(a)&&--t<0)return a}return null}function p(e){return i.BinaryExpression.check(e)||i.LogicalExpression.check(e)}function h(e){return!!i.CallExpression.check(e)||(a.check(e)?e.some(h):!!i.Node.check(e)&&n.someField(e,(function(e,t){return h(t)})))}return l.from=function(e){if(e instanceof l)return e.copy();if(e instanceof n.NodePath){for(var t=Object.create(l.prototype),r=[e.value],i=void 0;i=e.parentPath;e=i)r.push(e.name,i.value);return t.stack=r.reverse(),t}return new l(e)},c.copy=function(){var e=Object.create(l.prototype);return e.stack=this.stack.slice(0),e},c.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},c.getValue=function(){var e=this.stack;return e[e.length-1]},c.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0},c.getNode=function(e){return void 0===e&&(e=0),u(this,~~e)},c.getParentNode=function(e){return void 0===e&&(e=0),u(this,1+~~e)},c.getRootValue=function(){var e=this.stack;return e.length%2==0?e[1]:e[0]},c.call=function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,a=1;a0){var i=n[t.start.token-1];if(i){var a=this.getRootValue().loc;if(r.comparePos(a.start,i.loc.start)<=0)return i}}return null},c.getNextToken=function(e){var t=(e=e||this.getNode())&&e.loc,n=t&&t.tokens;if(n&&t.end.tokend)return!0;if(c===d&&"right"===a)return(0,t.default)(r.right===n),!0;break;default:return!1}break;case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==a;default:return!0}case"OptionalIndexedAccessType":return n.optional&&"IndexedAccessType"===r.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"NullableTypeAnnotation"===r.type;case"Literal":return"MemberExpression"===r.type&&s.check(n.value)&&"object"===a&&r.object===n;case"NumericLiteral":return"MemberExpression"===r.type&&"object"===a&&r.object===n;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(r.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return"callee"===a&&r.callee===n;case"ConditionalExpression":return"test"===a&&r.test===n;case"MemberExpression":return"object"===a&&r.object===n;default:return!1}case"ArrowFunctionExpression":return!(!i.CallExpression.check(r)||"callee"!==a||r.callee!==n)||!(!i.MemberExpression.check(r)||"object"!==a||r.object!==n)||!(!i.TSAsExpression||!i.TSAsExpression.check(r)||"expression"!==a||r.expression!==n)||p(r);case"ObjectExpression":if("ArrowFunctionExpression"===r.type&&"body"===a&&r.body===n)return!0;break;case"TSAsExpression":if("ArrowFunctionExpression"===r.type&&"body"===a&&r.body===n&&"ObjectExpression"===n.expression.type)return!0;break;case"CallExpression":if("declaration"===a&&i.ExportDefaultDeclaration.check(r)&&i.FunctionExpression.check(n.callee))return!0}return"NewExpression"===r.type&&"callee"===a&&r.callee===n?h(n):!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())},c.canBeFirstInStatement=function(){var e=this.getNode();return!i.FunctionExpression.check(e)&&!i.ObjectExpression.check(e)&&!i.ClassExpression.check(e)},c.firstInStatement=function(){for(var e,n,r,a,s=this.stack,o=s.length-1;o>=0;o-=2)if(i.Node.check(s[o])&&(r=e,a=n,e=s[o-1],n=s[o]),n&&a){if(i.BlockStatement.check(n)&&"body"===e&&0===r)return(0,t.default)(n.body[0]===a),!0;if(i.ExpressionStatement.check(n)&&"expression"===r)return(0,t.default)(n.expression===a),!0;if(i.AssignmentExpression.check(n)&&"left"===r)return(0,t.default)(n.left===a),!0;if(i.ArrowFunctionExpression.check(n)&&"body"===r)return(0,t.default)(n.body===a),!0;if(i.SequenceExpression.check(n)&&"expressions"===s[o+1]&&0===r)(0,t.default)(n.expressions[0]===a);else if(i.CallExpression.check(n)&&"callee"===r)(0,t.default)(n.callee===a);else if(i.MemberExpression.check(n)&&"object"===r)(0,t.default)(n.object===a);else if(i.ConditionalExpression.check(n)&&"test"===r)(0,t.default)(n.test===a);else if(p(n)&&"left"===r)(0,t.default)(n.left===a);else{if(!i.UnaryExpression.check(n)||n.prefix||"argument"!==r)return!1;(0,t.default)(n.argument===a)}}return!0},ki.default=l,ki}var Pi,wi,Ai={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=e.prettyPrint=e.print=e.visit=e.types=e.parse=void 0;var t=yn,n=t.__importDefault(void 0),r=t.__importStar(jr());e.types=r;var i=function(){if(vi)return Br;vi=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.parse=void 0;var e=yn,t=e.__importDefault(Vr()),n=e.__importStar(jr()),r=n.builders,i=n.builtInTypes.object,a=n.builtInTypes.array,s=hi(),o=gi(),l=Si(),c=e.__importStar(qr);Br.parse=function(e,t){t=(0,s.normalize)(t);var n,i,a=(0,o.fromString)(e,t),p=a.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),h=[],d=t.parser.parse(p,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:h,tolerant:c.getOption(t,"tolerant",!0),ecmaVersion:6,sourceType:c.getOption(t,"sourceType","module")}),f=Array.isArray(d.tokens)?d.tokens:ui.tokenize(p,{loc:!0});delete d.tokens,f.forEach((function(e){"string"!=typeof e.value&&(e.value=a.sliceString(e.loc.start,e.loc.end))})),Array.isArray(d.comments)&&(h=d.comments,delete d.comments),d.loc?c.fixFaultyLocations(d,a):d.loc={start:a.firstPos(),end:a.lastPos()},d.loc.lines=a,d.loc.indent=0,"Program"===d.type?(i=d,(n=r.file(d,t.sourceFileName||null)).loc={start:a.firstPos(),end:a.lastPos(),lines:a,indent:0}):"File"===d.type&&(i=(n=d).program),t.tokens&&(n.tokens=f);var m=c.getTrueLoc({type:i.type,loc:i.loc,body:[],comments:h},a);return i.loc.start=m.start,i.loc.end=m.end,(0,l.attach)(h,i.body.length?n.program:n,a),new u(a,f).copy(n)};var u=function e(n,r){(0,t.default)(this instanceof e),this.lines=n,this.tokens=r,this.startTokenIndex=0,this.endTokenIndex=r.length,this.indent=0,this.seen=new Map},p=u.prototype;return p.copy=function(e){if(this.seen.has(e))return this.seen.get(e);if(a.check(e)){var t=Array(e.length);return this.seen.set(e,t),e.forEach((function(e,n){t[n]=this.copy(e)}),this),t}if(!i.check(e))return e;c.fixFaultyLocations(e,this.lines);var n=Object.create(Object.getPrototypeOf(e),{original:{value:e,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(e,n);var r=e.loc,s=this.indent,o=s,l=this.startTokenIndex,u=this.endTokenIndex;r&&(("Block"===e.type||"Line"===e.type||"CommentBlock"===e.type||"CommentLine"===e.type||this.lines.isPrecededOnlyByWhitespace(r.start))&&(o=this.indent=r.start.column),r.lines=this.lines,r.tokens=this.tokens,r.indent=o,this.findTokenRange(r));for(var p=Object.keys(e),h=p.length,d=0;d0;){var t=e.tokens[this.startTokenIndex];if(!(c.comparePos(e.start,t.loc.start)<0))break;--this.startTokenIndex}for(;this.endTokenIndexthis.startTokenIndex&&(t=e.tokens[this.endTokenIndex-1],c.comparePos(e.end,t.loc.end)<0);)--this.endTokenIndex;e.end.token=this.endTokenIndex},Br}();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var a=function(){if(wi)return Ti;wi=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.Printer=void 0;var e=yn,t=e.__importDefault(Vr()),n=e.__importStar(jr()),r=Si(),i=e.__importDefault(_i()),a=gi(),s=hi(),o=function(){if(Pi)return Ai;Pi=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.getReprinter=Ai.Patcher=void 0;var e=yn,t=e.__importDefault(Vr()),n=e.__importStar(gi()),r=e.__importStar(jr()),i=r.namedTypes.Printable,a=r.namedTypes.Expression,s=r.namedTypes.ReturnStatement,o=r.namedTypes.SourceLocation,l=qr,c=e.__importDefault(_i()),u=r.builtInTypes.object,p=r.builtInTypes.array,h=r.builtInTypes.string,d=/[0-9a-z_$]/i,f=function e(r){(0,t.default)(this instanceof e),(0,t.default)(r instanceof n.Lines);var i=[];this.replace=function(e,t){h.check(t)&&(t=n.fromString(t)),i.push({lines:t,start:e.start,end:e.end})},this.get=function(e){var a=(e=e||{start:{line:1,column:0},end:{line:r.length,column:r.getLineLength(r.length)}}).start,s=[];function o(e,n){(0,t.default)((0,l.comparePos)(e,n)<=0),s.push(r.slice(e,n))}return i.sort((function(e,t){return(0,l.comparePos)(e.start,t.start)})).forEach((function(e){(0,l.comparePos)(a,e.start)>0||(o(a,e.start),s.push(e.lines),a=e.end)})),o(a,e.end),n.concat(s)}};Ai.Patcher=f;var m=f.prototype;function y(e){var t=[];return e.comments&&e.comments.length>0&&e.comments.forEach((function(e){(e.leading||e.trailing)&&t.push(e)})),t}function g(e,t,n){var r=e.getValue();return r===t.getValue()||(p.check(r)?b(e,t,n):!!u.check(r)&&function(e,t,n){var r=e.getValue();if(u.assert(r),null===r.original)return!1;var s=t.getValue();if(!u.check(s))return!1;if(r===s||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;if(i.check(r)){if(!i.check(s))return!1;var o=e.getParentNode(),l=t.getParentNode();if(null!==l&&"FunctionTypeAnnotation"===l.type&&null!==o&&"FunctionTypeAnnotation"===o.type){var c=1!==l.params.length||!!l.params[0].name,p=1!==o.params.length||!!o.params[0].name;if(!c&&p)return!1}if(r.type===s.type){var h=[];if(v(e,t,h))n.push.apply(n,h);else{if(!s.loc)return!1;n.push({oldPath:t.copy(),newPath:e.copy()})}return!0}return!!(a.check(r)&&a.check(s)&&s.loc)&&(n.push({oldPath:t.copy(),newPath:e.copy()}),!0)}return v(e,t,n)}(e,t,n))}function b(e,t,n){var r=e.getValue(),i=t.getValue();if(r===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;p.assert(r);var a=r.length;if(!p.check(i)||i.length!==a)return!1;for(var s=0;sc)}return m.tryToReprintComments=function(e,n,r){var i=this;if(!e.comments&&!n.comments)return!0;var a=c.default.from(e),s=c.default.from(n);a.stack.push("comments",y(e)),s.stack.push("comments",y(n));var o=[],l=b(a,s,o);return l&&o.length>0&&o.forEach((function(e){var n=e.oldPath.getValue();(0,t.default)(n.leading||n.trailing),i.replace(n.loc,r(e.newPath).indentTail(n.loc.indent))})),l},m.deleteComments=function(e){if(e.comments){var t=this;e.comments.forEach((function(n){n.leading?t.replace({start:n.loc.start,end:e.loc.lines.skipSpaces(n.loc.end,!1,!1)},""):n.trailing&&t.replace({start:e.loc.lines.skipSpaces(n.loc.start,!0,!1),end:n.loc.end},"")}))}},Ai.getReprinter=function(e){(0,t.default)(e instanceof c.default);var r=e.getValue();if(i.check(r)){var a=r.original,s=a&&a.loc,u=s&&s.lines,p=[];if(u&&function(e,n){var r=e.getValue();i.assert(r);var a=r.original;if(i.assert(a),(0,t.default)(0===n.length),r.type!==a.type)return!1;var s=v(e,new c.default(a),n);return s||(n.length=0),s}(e,p))return function(t){var r=new f(u);p.forEach((function(e){var i=e.newPath.getValue(),a=e.oldPath.getValue();o.assert(a.loc,!0);var s=!r.tryToReprintComments(i,a,t);s&&r.deleteComments(a);var c=t(e.newPath,{includeComments:s,avoidRootParens:a.type===i.type&&e.oldPath.hasParens()}).indentTail(a.loc.indent),p=function(e,t,n){var r=(0,l.copyPos)(t.start),i=e.prevPos(r)&&e.charAt(r),a=n.charAt(n.firstPos());return i&&d.test(i)&&a&&d.test(a)}(u,a.loc,c),h=function(e,t,n){var r=e.charAt(t.end),i=n.lastPos(),a=n.prevPos(i)&&n.charAt(i);return a&&d.test(a)&&r&&d.test(r)}(u,a.loc,c);if(p||h){var f=[];p&&f.push(" "),f.push(c),h&&f.push(" "),c=n.concat(f)}r.replace(a.loc,c)}));var i=r.get(s).indentTail(-a.loc.indent);return e.needsParens()?n.concat(["(",i,")"]):i}}},Ai}(),l=e.__importStar(qr),c=n.namedTypes,u=n.builtInTypes.string,p=n.builtInTypes.object,h=function e(n,r){(0,t.default)(this instanceof e),u.assert(n),this.code=n,r&&(p.assert(r),this.map=r)},d=!1;h.prototype.toString=function(){return d||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),d=!0),this.code};var f=new h("");function m(r,s,o,u){(0,t.default)(r instanceof i.default);var p=r.getValue(),h=[],d=function(r,i,s){var o=r.getValue();if(!o)return(0,a.fromString)("");if("string"==typeof o)return(0,a.fromString)(o,i);c.Printable.assert(o);var u=[];switch(o.type){case"File":return r.call(s,"program");case"Program":return o.directives&&r.each((function(e){u.push(s(e),";\n")}),"directives"),o.interpreter&&u.push(r.call(s,"interpreter")),u.push(r.call((function(e){return y(e,i,s)}),"body")),(0,a.concat)(u);case"Noop":case"EmptyStatement":return(0,a.fromString)("");case"ExpressionStatement":return(0,a.concat)([r.call(s,"expression"),";"]);case"ParenthesizedExpression":return(0,a.concat)(["(",r.call(s,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return(0,a.fromString)(" ").join([r.call(s,"left"),o.operator,r.call(s,"right")]);case"AssignmentPattern":return(0,a.concat)([r.call(s,"left")," = ",r.call(s,"right")]);case"MemberExpression":case"OptionalMemberExpression":u.push(r.call(s,"object"));var p=r.call(s,"property"),h=n.getFieldValue(o,"optional");return o.computed?u.push(h?"?.[":"[",p,"]"):u.push(h?"?.":".",p),(0,a.concat)(u);case"ChainExpression":return r.call(s,"expression");case"MetaProperty":return(0,a.concat)([r.call(s,"meta"),".",r.call(s,"property")]);case"BindExpression":return o.object&&u.push(r.call(s,"object")),u.push("::",r.call(s,"callee")),(0,a.concat)(u);case"Path":return(0,a.fromString)(".").join(o.body);case"Identifier":return(0,a.concat)([(0,a.fromString)(o.name,i),o.optional?"?":"",r.call(s,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return(0,a.concat)(["...",r.call(s,"argument"),r.call(s,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return o.declare&&u.push("declare "),o.async&&u.push("async "),u.push("function"),o.generator&&u.push("*"),o.id?u.push(" ",r.call(s,"id"),r.call(s,"typeParameters")):o.typeParameters&&u.push(r.call(s,"typeParameters")),u.push("(",x(r,i,s),")",r.call(s,"returnType")),o.body&&u.push(" ",r.call(s,"body")),(0,a.concat)(u);case"ArrowFunctionExpression":return o.async&&u.push("async "),o.typeParameters&&u.push(r.call(s,"typeParameters")),i.arrowParensAlways||1!==o.params.length||o.rest||"Identifier"!==o.params[0].type||o.params[0].typeAnnotation||o.returnType?u.push("(",x(r,i,s),")",r.call(s,"returnType")):u.push(r.call(s,"params",0)),u.push(" => ",r.call(s,"body")),(0,a.concat)(u);case"MethodDefinition":return b(r,i,s);case"YieldExpression":return u.push("yield"),o.delegate&&u.push("*"),o.argument&&u.push(" ",r.call(s,"argument")),(0,a.concat)(u);case"AwaitExpression":return u.push("await"),o.all&&u.push("*"),o.argument&&u.push(" ",r.call(s,"argument")),(0,a.concat)(u);case"ModuleExpression":return(0,a.concat)(["module {\n",r.call(s,"body").indent(i.tabWidth),"\n}"]);case"ModuleDeclaration":return u.push("module",r.call(s,"id")),o.source?((0,t.default)(!o.body),u.push("from",r.call(s,"source"))):u.push(r.call(s,"body")),(0,a.fromString)(" ").join(u);case"ImportSpecifier":return o.importKind&&"value"!==o.importKind&&u.push(o.importKind+" "),o.imported?(u.push(r.call(s,"imported")),o.local&&o.local.name!==o.imported.name&&u.push(" as ",r.call(s,"local"))):o.id&&(u.push(r.call(s,"id")),o.name&&u.push(" as ",r.call(s,"name"))),(0,a.concat)(u);case"ExportSpecifier":return o.exportKind&&"value"!==o.exportKind&&u.push(o.exportKind+" "),o.local?(u.push(r.call(s,"local")),o.exported&&o.exported.name!==o.local.name&&u.push(" as ",r.call(s,"exported"))):o.id&&(u.push(r.call(s,"id")),o.name&&u.push(" as ",r.call(s,"name"))),(0,a.concat)(u);case"ExportBatchSpecifier":return(0,a.fromString)("*");case"ImportNamespaceSpecifier":return u.push("* as "),o.local?u.push(r.call(s,"local")):o.id&&u.push(r.call(s,"id")),(0,a.concat)(u);case"ImportDefaultSpecifier":return o.local?r.call(s,"local"):r.call(s,"id");case"TSExportAssignment":return(0,a.concat)(["export = ",r.call(s,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return E(r,i,s);case"ExportAllDeclaration":return u.push("export *"),o.exported&&u.push(" as ",r.call(s,"exported")),u.push(" from ",r.call(s,"source"),";"),(0,a.concat)(u);case"TSNamespaceExportDeclaration":return u.push("export as namespace ",r.call(s,"id")),O((0,a.concat)(u));case"ExportNamespaceSpecifier":return(0,a.concat)(["* as ",r.call(s,"exported")]);case"ExportDefaultSpecifier":return r.call(s,"exported");case"Import":return(0,a.fromString)("import",i);case"ImportExpression":return(0,a.concat)(["import(",r.call(s,"source"),")"]);case"ImportDeclaration":if(u.push("import "),o.importKind&&"value"!==o.importKind&&u.push(o.importKind+" "),o.specifiers&&o.specifiers.length>0){var d=[],f=[];r.each((function(e){var t=e.getValue();"ImportSpecifier"===t.type?f.push(s(e)):"ImportDefaultSpecifier"!==t.type&&"ImportNamespaceSpecifier"!==t.type||d.push(s(e))}),"specifiers"),d.forEach((function(e,t){t>0&&u.push(", "),u.push(e)})),f.length>0&&((ke=(0,a.fromString)(", ").join(f)).getLineLength(1)>i.wrapColumn&&(ke=(0,a.concat)([(0,a.fromString)(",\n").join(f).indent(i.tabWidth),","])),d.length>0&&u.push(", "),ke.length>1?u.push("{\n",ke,"\n}"):i.objectCurlySpacing?u.push("{ ",ke," }"):u.push("{",ke,"}")),u.push(" from ")}return u.push(r.call(s,"source"),S(r,i,s),";"),(0,a.concat)(u);case"ImportAttribute":return(0,a.concat)([r.call(s,"key"),": ",r.call(s,"value")]);case"StaticBlock":u.push("static ");case"BlockStatement":var m=r.call((function(e){return y(e,i,s)}),"body");return!m.isEmpty()||o.directives&&0!==o.directives.length?(u.push("{\n"),o.directives&&r.each((function(e){u.push(O(s(e).indent(i.tabWidth)),o.directives.length>1||!m.isEmpty()?"\n":"")}),"directives"),u.push(m.indent(i.tabWidth)),u.push("\n}"),(0,a.concat)(u)):(u.push("{}"),(0,a.concat)(u));case"ReturnStatement":if(u.push("return"),o.argument){var A=r.call(s,"argument");A.startsWithComment()||A.length>1&&c.JSXElement&&c.JSXElement.check(o.argument)?u.push(" (\n",A.indent(i.tabWidth),"\n)"):u.push(" ",A)}return u.push(";"),(0,a.concat)(u);case"CallExpression":case"OptionalCallExpression":return u.push(r.call(s,"callee")),o.typeParameters&&u.push(r.call(s,"typeParameters")),o.typeArguments&&u.push(r.call(s,"typeArguments")),n.getFieldValue(o,"optional")&&u.push("?."),u.push(v(r,i,s)),(0,a.concat)(u);case"RecordExpression":u.push("#");case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":var I="ObjectTypeAnnotation"===o.type,D=i.flowObjectCommas?",":I?";":",",L=[],j=!1;I&&(L.push("indexers","callProperties"),null!=o.internalSlots&&L.push("internalSlots")),L.push("properties");var M=0;L.forEach((function(e){M+=o[e].length}));var F=I&&1===M||0===M,B=o.exact?"{|":"{",V=o.exact?"|}":"}";u.push(F?B:B+"\n");var R=u.length-1,q=0;if(L.forEach((function(e){r.each((function(e){var t=s(e);F||(t=t.indent(i.tabWidth));var n=!I&&t.length>1;n&&j&&u.push("\n"),u.push(t),q0&&u.push(D," "),u.push(U)):u.push("\n",U.indent(i.tabWidth))}return u.push(F?V:"\n"+V),0!==q&&F&&i.objectCurlySpacing&&(u[R]=B+" ",u[u.length-1]=" "+V),o.typeAnnotation&&u.push(r.call(s,"typeAnnotation")),(0,a.concat)(u);case"PropertyPattern":return(0,a.concat)([r.call(s,"key"),": ",r.call(s,"pattern")]);case"ObjectProperty":case"Property":if(o.method||"get"===o.kind||"set"===o.kind)return b(r,i,s);if(o.shorthand&&"AssignmentPattern"===o.value.type)return r.call(s,"value");var z=r.call(s,"key");return o.computed?u.push("[",z,"]"):u.push(z),o.shorthand&&o.key.name===o.value.name||u.push(": ",r.call(s,"value")),(0,a.concat)(u);case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return b(r,i,s);case"PrivateName":return(0,a.concat)(["#",r.call(s,"id")]);case"Decorator":return(0,a.concat)(["@",r.call(s,"expression")]);case"TupleExpression":u.push("#");case"ArrayExpression":case"ArrayPattern":var W=o.elements.length,G=r.map(s,"elements"),J=(0,a.fromString)(", ").join(G).getLineLength(1)<=i.wrapColumn;return J?i.arrayBracketSpacing?u.push("[ "):u.push("["):u.push("[\n"),r.each((function(e){var t=e.getName();if(e.getValue()){var n=G[t];J?t>0&&u.push(" "):n=n.indent(i.tabWidth),u.push(n),(t1?u.push((0,a.fromString)(",\n").join(H).indentTail(o.kind.length+1)):u.push(H[0]);var X=r.getParentNode();return c.ForStatement.check(X)||c.ForInStatement.check(X)||c.ForOfStatement&&c.ForOfStatement.check(X)||c.ForAwaitStatement&&c.ForAwaitStatement.check(X)||u.push(";"),(0,a.concat)(u);case"VariableDeclarator":return o.init?(0,a.fromString)(" = ").join([r.call(s,"id"),r.call(s,"init")]):r.call(s,"id");case"WithStatement":return(0,a.concat)(["with (",r.call(s,"object"),") ",r.call(s,"body")]);case"IfStatement":var K=_(r.call(s,"consequent"),i);return u.push("if (",r.call(s,"test"),")",K),o.alternate&&u.push(w(K)?" else":"\nelse",_(r.call(s,"alternate"),i)),(0,a.concat)(u);case"ForStatement":var Q=r.call(s,"init"),Y=Q.length>1?";\n":"; ",Z=(0,a.fromString)(Y).join([Q,r.call(s,"test"),r.call(s,"update")]).indentTail(5),ee=(0,a.concat)(["for (",Z,")"]),te=_(r.call(s,"body"),i);return u.push(ee),ee.length>1&&(u.push("\n"),te=te.trimLeft()),u.push(te),(0,a.concat)(u);case"WhileStatement":return(0,a.concat)(["while (",r.call(s,"test"),")",_(r.call(s,"body"),i)]);case"ForInStatement":return(0,a.concat)([o.each?"for each (":"for (",r.call(s,"left")," in ",r.call(s,"right"),")",_(r.call(s,"body"),i)]);case"ForOfStatement":case"ForAwaitStatement":return u.push("for "),(o.await||"ForAwaitStatement"===o.type)&&u.push("await "),u.push("(",r.call(s,"left")," of ",r.call(s,"right"),")",_(r.call(s,"body"),i)),(0,a.concat)(u);case"DoWhileStatement":var ne=(0,a.concat)(["do",_(r.call(s,"body"),i)]);return u.push(ne),w(ne)?u.push(" while"):u.push("\nwhile"),u.push(" (",r.call(s,"test"),");"),(0,a.concat)(u);case"DoExpression":var re=r.call((function(e){return y(e,i,s)}),"body");return(0,a.concat)(["do {\n",re.indent(i.tabWidth),"\n}"]);case"BreakStatement":return u.push("break"),o.label&&u.push(" ",r.call(s,"label")),u.push(";"),(0,a.concat)(u);case"ContinueStatement":return u.push("continue"),o.label&&u.push(" ",r.call(s,"label")),u.push(";"),(0,a.concat)(u);case"LabeledStatement":return(0,a.concat)([r.call(s,"label"),":\n",r.call(s,"body")]);case"TryStatement":return u.push("try ",r.call(s,"block")),o.handler?u.push(" ",r.call(s,"handler")):o.handlers&&r.each((function(e){u.push(" ",s(e))}),"handlers"),o.finalizer&&u.push(" finally ",r.call(s,"finalizer")),(0,a.concat)(u);case"CatchClause":return u.push("catch "),o.param&&u.push("(",r.call(s,"param")),o.guard&&u.push(" if ",r.call(s,"guard")),o.param&&u.push(") "),u.push(r.call(s,"body")),(0,a.concat)(u);case"ThrowStatement":return(0,a.concat)(["throw ",r.call(s,"argument"),";"]);case"SwitchStatement":return(0,a.concat)(["switch (",r.call(s,"discriminant"),") {\n",(0,a.fromString)("\n").join(r.map(s,"cases")),"\n}"]);case"SwitchCase":return o.test?u.push("case ",r.call(s,"test"),":"):u.push("default:"),o.consequent.length>0&&u.push("\n",r.call((function(e){return y(e,i,s)}),"consequent").indent(i.tabWidth)),(0,a.concat)(u);case"DebuggerStatement":return(0,a.fromString)("debugger;");case"JSXAttribute":return u.push(r.call(s,"name")),o.value&&u.push("=",r.call(s,"value")),(0,a.concat)(u);case"JSXIdentifier":return(0,a.fromString)(o.name,i);case"JSXNamespacedName":return(0,a.fromString)(":").join([r.call(s,"namespace"),r.call(s,"name")]);case"JSXMemberExpression":return(0,a.fromString)(".").join([r.call(s,"object"),r.call(s,"property")]);case"JSXSpreadAttribute":return(0,a.concat)(["{...",r.call(s,"argument"),"}"]);case"JSXSpreadChild":return(0,a.concat)(["{...",r.call(s,"expression"),"}"]);case"JSXExpressionContainer":return(0,a.concat)(["{",r.call(s,"expression"),"}"]);case"JSXElement":case"JSXFragment":var ie="opening"+("JSXElement"===o.type?"Element":"Fragment"),ae="closing"+("JSXElement"===o.type?"Element":"Fragment"),se=r.call(s,ie);if(o[ie].selfClosing)return(0,t.default)(!o[ae],"unexpected "+ae+" element in self-closing "+o.type),se;var oe=(0,a.concat)(r.map((function(e){var t=e.getValue();if(c.Literal.check(t)&&"string"==typeof t.value){if(/\S/.test(t.value))return t.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(t.value))return"\n"}return s(e)}),"children")).indentTail(i.tabWidth),le=r.call(s,ae);return(0,a.concat)([se,oe,le]);case"JSXOpeningElement":u.push("<",r.call(s,"name"));var ce=[];r.each((function(e){ce.push(" ",s(e))}),"attributes");var ue=(0,a.concat)(ce);return(ue.length>1||ue.getLineLength(1)>i.wrapColumn)&&(ce.forEach((function(e,n){" "===e&&((0,t.default)(n%2==0),ce[n]="\n")})),ue=(0,a.concat)(ce).indentTail(i.tabWidth)),u.push(ue,o.selfClosing?" />":">"),(0,a.concat)(u);case"JSXClosingElement":return(0,a.concat)([""]);case"JSXOpeningFragment":return(0,a.fromString)("<>");case"JSXClosingFragment":return(0,a.fromString)("");case"JSXText":return(0,a.fromString)(o.value,i);case"JSXEmptyExpression":return(0,a.fromString)("");case"TypeAnnotatedIdentifier":return(0,a.concat)([r.call(s,"annotation")," ",r.call(s,"identifier")]);case"ClassBody":return 0===o.body.length?(0,a.fromString)("{}"):(0,a.concat)(["{\n",r.call((function(e){return y(e,i,s)}),"body").indent(i.tabWidth),"\n}"]);case"ClassPropertyDefinition":return u.push("static ",r.call(s,"definition")),c.MethodDefinition.check(o.definition)||u.push(";"),(0,a.concat)(u);case"ClassProperty":o.declare&&u.push("declare ");var pe=o.accessibility||o.access;return"string"==typeof pe&&u.push(pe," "),o.static&&u.push("static "),o.abstract&&u.push("abstract "),o.readonly&&u.push("readonly "),z=r.call(s,"key"),o.computed&&(z=(0,a.concat)(["[",z,"]"])),o.variance&&(z=(0,a.concat)([k(r,s),z])),u.push(z),o.optional&&u.push("?"),o.definite&&u.push("!"),o.typeAnnotation&&u.push(r.call(s,"typeAnnotation")),o.value&&u.push(" = ",r.call(s,"value")),u.push(";"),(0,a.concat)(u);case"ClassPrivateProperty":return o.static&&u.push("static "),u.push(r.call(s,"key")),o.typeAnnotation&&u.push(r.call(s,"typeAnnotation")),o.value&&u.push(" = ",r.call(s,"value")),u.push(";"),(0,a.concat)(u);case"ClassAccessorProperty":return u.push.apply(u,e.__spreadArray(e.__spreadArray([],g(o),!1),["accessor "],!1)),o.computed?u.push("[",r.call(s,"key"),"]"):u.push(r.call(s,"key")),o.optional&&u.push("?"),o.definite&&u.push("!"),o.typeAnnotation&&u.push(r.call(s,"typeAnnotation")),o.value&&u.push(" = ",r.call(s,"value")),u.push(";"),(0,a.concat)(u);case"ClassDeclaration":case"ClassExpression":case"DeclareClass":return o.declare&&u.push("declare "),o.abstract&&u.push("abstract "),u.push("class"),o.id&&u.push(" ",r.call(s,"id")),o.typeParameters&&u.push(r.call(s,"typeParameters")),o.superClass&&u.push(" extends ",r.call(s,"superClass"),r.call(s,"superTypeParameters")),o.extends&&o.extends.length>0&&u.push(" extends ",(0,a.fromString)(", ").join(r.map(s,"extends"))),o.implements&&o.implements.length>0&&u.push(" implements ",(0,a.fromString)(", ").join(r.map(s,"implements"))),u.push(" ",r.call(s,"body")),"DeclareClass"===o.type?T(r,u):(0,a.concat)(u);case"TemplateElement":return(0,a.fromString)(o.value.raw,i).lockIndentTail();case"TemplateLiteral":var he=r.map(s,"expressions");return u.push("`"),r.each((function(e){var t=e.getName();u.push(s(e)),t0&&u.push(" "):n=n.indent(i.tabWidth),u.push(n),(t0&&u.push(" extends ",(0,a.fromString)(", ").join(r.map(s,"extends"))),u.push(" ",r.call(s,"body")),(0,a.concat)(u);case"DeclareFunction":return T(r,["function ",r.call(s,"id"),";"]);case"DeclareModule":return T(r,["module ",r.call(s,"id")," ",r.call(s,"body")]);case"DeclareModuleExports":return T(r,["module.exports",r.call(s,"typeAnnotation")]);case"DeclareVariable":return T(r,["var ",r.call(s,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return(0,a.concat)(["declare ",E(r,i,s)]);case"EnumDeclaration":return(0,a.concat)(["enum ",r.call(s,"id"),r.call(s,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return("EnumSymbolBody"===o.type||o.explicitType)&&u.push(" of ",o.type.slice(4,-4).toLowerCase()),u.push(" {\n",(0,a.fromString)("\n").join(r.map(s,"members")).indent(i.tabWidth),"\n}"),(0,a.concat)(u);case"EnumDefaultedMember":return(0,a.concat)([r.call(s,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return(0,a.concat)([r.call(s,"id")," = ",r.call(s,"init"),","]);case"InferredPredicate":return(0,a.fromString)("%checks",i);case"DeclaredPredicate":return(0,a.concat)(["%checks(",r.call(s,"value"),")"]);case"FunctionTypeAnnotation":var me=r.getParentNode(0),ye=!(c.ObjectTypeCallProperty.check(me)||c.ObjectTypeInternalSlot.check(me)&&me.method||c.DeclareFunction.check(r.getParentNode(2)));ye&&!c.FunctionTypeParam.check(me)&&!c.TypeAlias.check(me)&&u.push(": ");var ge=!!o.typeParameters,be=ge||1!==o.params.length||o.params[0].name;return u.push(ge?r.call(s,"typeParameters"):"",be?"(":"",x(r,i,s),be?")":""),o.returnType&&u.push(ye?" => ":": ",r.call(s,"returnType")),(0,a.concat)(u);case"FunctionTypeParam":var ve=r.call(s,"name");return u.push(ve),o.optional&&u.push("?"),ve.infos[0].line&&u.push(": "),u.push(r.call(s,"typeAnnotation")),(0,a.concat)(u);case"GenericTypeAnnotation":return(0,a.concat)([r.call(s,"id"),r.call(s,"typeParameters")]);case"DeclareInterface":u.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return o.declare&&u.push("declare "),u.push("interface ",r.call(s,"id"),r.call(s,"typeParameters")," "),o.extends&&o.extends.length>0&&u.push("extends ",(0,a.fromString)(", ").join(r.map(s,"extends"))," "),o.body&&u.push(r.call(s,"body")),(0,a.concat)(u);case"ClassImplements":case"InterfaceExtends":return(0,a.concat)([r.call(s,"id"),r.call(s,"typeParameters")]);case"IntersectionTypeAnnotation":return(0,a.fromString)(" & ").join(r.map(s,"types"));case"NullableTypeAnnotation":return(0,a.concat)(["?",r.call(s,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return(0,a.fromString)("null",i);case"ThisTypeAnnotation":return(0,a.fromString)("this",i);case"NumberTypeAnnotation":return(0,a.fromString)("number",i);case"ObjectTypeCallProperty":return r.call(s,"value");case"ObjectTypeIndexer":return o.static&&u.push("static "),u.push(k(r,s),"["),o.id&&u.push(r.call(s,"id"),": "),u.push(r.call(s,"key"),"]: ",r.call(s,"value")),(0,a.concat)(u);case"ObjectTypeProperty":return(0,a.concat)([k(r,s),r.call(s,"key"),o.optional?"?":"",": ",r.call(s,"value")]);case"ObjectTypeInternalSlot":return(0,a.concat)([o.static?"static ":"","[[",r.call(s,"id"),"]]",o.optional?"?":"","FunctionTypeAnnotation"!==o.value.type?": ":"",r.call(s,"value")]);case"QualifiedTypeIdentifier":return(0,a.concat)([r.call(s,"qualification"),".",r.call(s,"id")]);case"StringLiteralTypeAnnotation":return(0,a.fromString)(N(o.value,i),i);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return(0,t.default)("number"==typeof o.value),(0,a.fromString)(JSON.stringify(o.value),i);case"BigIntLiteralTypeAnnotation":return(0,a.fromString)(o.raw,i);case"StringTypeAnnotation":return(0,a.fromString)("string",i);case"DeclareTypeAlias":u.push("declare ");case"TypeAlias":return(0,a.concat)(["type ",r.call(s,"id"),r.call(s,"typeParameters")," = ",r.call(s,"right"),";"]);case"DeclareOpaqueType":u.push("declare ");case"OpaqueType":return u.push("opaque type ",r.call(s,"id"),r.call(s,"typeParameters")),o.supertype&&u.push(": ",r.call(s,"supertype")),o.impltype&&u.push(" = ",r.call(s,"impltype")),u.push(";"),(0,a.concat)(u);case"TypeCastExpression":return(0,a.concat)(["(",r.call(s,"expression"),r.call(s,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return(0,a.concat)(["<",(0,a.fromString)(", ").join(r.map(s,"params")),">"]);case"Variance":return"plus"===o.kind?(0,a.fromString)("+"):"minus"===o.kind?(0,a.fromString)("-"):(0,a.fromString)("");case"TypeParameter":return o.variance&&u.push(k(r,s)),u.push(r.call(s,"name")),o.bound&&u.push(r.call(s,"bound")),o.default&&u.push("=",r.call(s,"default")),(0,a.concat)(u);case"TypeofTypeAnnotation":return(0,a.concat)([(0,a.fromString)("typeof ",i),r.call(s,"argument")]);case"IndexedAccessType":case"OptionalIndexedAccessType":return(0,a.concat)([r.call(s,"objectType"),o.optional?"?.":"","[",r.call(s,"indexType"),"]"]);case"UnionTypeAnnotation":return(0,a.fromString)(" | ").join(r.map(s,"types"));case"VoidTypeAnnotation":return(0,a.fromString)("void",i);case"NullTypeAnnotation":return(0,a.fromString)("null",i);case"SymbolTypeAnnotation":return(0,a.fromString)("symbol",i);case"BigIntTypeAnnotation":return(0,a.fromString)("bigint",i);case"TSType":throw Error("unprintable type: "+JSON.stringify(o.type));case"TSNumberKeyword":return(0,a.fromString)("number",i);case"TSBigIntKeyword":return(0,a.fromString)("bigint",i);case"TSObjectKeyword":return(0,a.fromString)("object",i);case"TSBooleanKeyword":return(0,a.fromString)("boolean",i);case"TSStringKeyword":return(0,a.fromString)("string",i);case"TSSymbolKeyword":return(0,a.fromString)("symbol",i);case"TSAnyKeyword":return(0,a.fromString)("any",i);case"TSVoidKeyword":return(0,a.fromString)("void",i);case"TSIntrinsicKeyword":return(0,a.fromString)("intrinsic",i);case"TSThisType":return(0,a.fromString)("this",i);case"TSNullKeyword":return(0,a.fromString)("null",i);case"TSUndefinedKeyword":return(0,a.fromString)("undefined",i);case"TSUnknownKeyword":return(0,a.fromString)("unknown",i);case"TSNeverKeyword":return(0,a.fromString)("never",i);case"TSArrayType":return(0,a.concat)([r.call(s,"elementType"),"[]"]);case"TSLiteralType":return r.call(s,"literal");case"TSUnionType":return(0,a.fromString)(" | ").join(r.map(s,"types"));case"TSIntersectionType":return(0,a.fromString)(" & ").join(r.map(s,"types"));case"TSConditionalType":return u.push(r.call(s,"checkType")," extends ",r.call(s,"extendsType")," ? ",r.call(s,"trueType")," : ",r.call(s,"falseType")),(0,a.concat)(u);case"TSInferType":return u.push("infer ",r.call(s,"typeParameter")),(0,a.concat)(u);case"TSParenthesizedType":return(0,a.concat)(["(",r.call(s,"typeAnnotation"),")"]);case"TSFunctionType":return(0,a.concat)([r.call(s,"typeParameters"),"(",x(r,i,s),") => ",r.call(s,"typeAnnotation","typeAnnotation")]);case"TSConstructorType":return(0,a.concat)(["new ",r.call(s,"typeParameters"),"(",x(r,i,s),") => ",r.call(s,"typeAnnotation","typeAnnotation")]);case"TSMappedType":return u.push(o.readonly?"readonly ":"","[",r.call(s,"typeParameter"),"]",o.optional?"?":""),o.typeAnnotation&&u.push(": ",r.call(s,"typeAnnotation"),";"),(0,a.concat)(["{\n",(0,a.concat)(u).indent(i.tabWidth),"\n}"]);case"TSTupleType":return(0,a.concat)(["[",(0,a.fromString)(", ").join(r.map(s,"elementTypes")),"]"]);case"TSNamedTupleMember":return u.push(r.call(s,"label")),o.optional&&u.push("?"),u.push(": ",r.call(s,"elementType")),(0,a.concat)(u);case"TSRestType":return(0,a.concat)(["...",r.call(s,"typeAnnotation")]);case"TSOptionalType":return(0,a.concat)([r.call(s,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return(0,a.concat)([r.call(s,"objectType"),"[",r.call(s,"indexType"),"]"]);case"TSTypeOperator":return(0,a.concat)([r.call(s,"operator")," ",r.call(s,"typeAnnotation")]);case"TSTypeLiteral":var xe=(0,a.fromString)("\n").join(r.map(s,"members").map((function(e){return";"!==P(e)?e.concat(";"):e})));return xe.isEmpty()?(0,a.fromString)("{}",i):(u.push("{\n",xe.indent(i.tabWidth),"\n}"),(0,a.concat)(u));case"TSEnumMember":return u.push(r.call(s,"id")),o.initializer&&u.push(" = ",r.call(s,"initializer")),(0,a.concat)(u);case"TSTypeQuery":return(0,a.concat)(["typeof ",r.call(s,"exprName")]);case"TSParameterProperty":return o.accessibility&&u.push(o.accessibility," "),o.export&&u.push("export "),o.static&&u.push("static "),o.readonly&&u.push("readonly "),u.push(r.call(s,"parameter")),(0,a.concat)(u);case"TSTypeReference":return(0,a.concat)([r.call(s,"typeName"),r.call(s,"typeParameters")]);case"TSQualifiedName":return(0,a.concat)([r.call(s,"left"),".",r.call(s,"right")]);case"TSAsExpression":case"TSSatisfiesExpression":var Se=r.call(s,"expression");return u.push(Se,"TSSatisfiesExpression"===o.type?" satisfies ":" as ",r.call(s,"typeAnnotation")),(0,a.concat)(u);case"TSTypeCastExpression":return(0,a.concat)([r.call(s,"expression"),r.call(s,"typeAnnotation")]);case"TSNonNullExpression":return(0,a.concat)([r.call(s,"expression"),"!"]);case"TSTypeAnnotation":return(0,a.concat)([": ",r.call(s,"typeAnnotation")]);case"TSIndexSignature":return(0,a.concat)([o.readonly?"readonly ":"","[",r.map(s,"parameters"),"]",r.call(s,"typeAnnotation")]);case"TSPropertySignature":return u.push(k(r,s),o.readonly?"readonly ":""),o.computed?u.push("[",r.call(s,"key"),"]"):u.push(r.call(s,"key")),u.push(o.optional?"?":"",r.call(s,"typeAnnotation")),(0,a.concat)(u);case"TSMethodSignature":return o.computed?u.push("[",r.call(s,"key"),"]"):u.push(r.call(s,"key")),o.optional&&u.push("?"),u.push(r.call(s,"typeParameters"),"(",x(r,i,s),")",r.call(s,"typeAnnotation")),(0,a.concat)(u);case"TSTypePredicate":return o.asserts&&u.push("asserts "),u.push(r.call(s,"parameterName")),o.typeAnnotation&&u.push(" is ",r.call(s,"typeAnnotation","typeAnnotation")),(0,a.concat)(u);case"TSCallSignatureDeclaration":return(0,a.concat)([r.call(s,"typeParameters"),"(",x(r,i,s),")",r.call(s,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return o.typeParameters?u.push("new",r.call(s,"typeParameters")):u.push("new "),u.push("(",x(r,i,s),")",r.call(s,"typeAnnotation")),(0,a.concat)(u);case"TSTypeAliasDeclaration":return(0,a.concat)([o.declare?"declare ":"","type ",r.call(s,"id"),r.call(s,"typeParameters")," = ",r.call(s,"typeAnnotation"),";"]);case"TSTypeParameter":u.push(r.call(s,"name")),me=r.getParentNode(0);var Ee=c.TSMappedType.check(me);return o.constraint&&u.push(Ee?" in ":" extends ",r.call(s,"constraint")),o.default&&u.push(" = ",r.call(s,"default")),(0,a.concat)(u);case"TSTypeAssertion":return u.push("<",r.call(s,"typeAnnotation"),"> ",r.call(s,"expression")),(0,a.concat)(u);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return(0,a.concat)(["<",(0,a.fromString)(", ").join(r.map(s,"params")),">"]);case"TSEnumDeclaration":u.push(o.declare?"declare ":"",o.const?"const ":"","enum ",r.call(s,"id"));var Te=(0,a.fromString)(",\n").join(r.map(s,"members"));return Te.isEmpty()?u.push(" {}"):u.push(" {\n",Te.indent(i.tabWidth),"\n}"),(0,a.concat)(u);case"TSExpressionWithTypeArguments":return(0,a.concat)([r.call(s,"expression"),r.call(s,"typeParameters")]);case"TSInterfaceBody":var ke;return(ke=(0,a.fromString)("\n").join(r.map(s,"body").map((function(e){return";"!==P(e)?e.concat(";"):e})))).isEmpty()?(0,a.fromString)("{}",i):(0,a.concat)(["{\n",ke.indent(i.tabWidth),"\n}"]);case"TSImportType":return u.push("import(",r.call(s,"argument"),")"),o.qualifier&&u.push(".",r.call(s,"qualifier")),o.typeParameters&&u.push(r.call(s,"typeParameters")),(0,a.concat)(u);case"TSImportEqualsDeclaration":return o.isExport&&u.push("export "),u.push("import ",r.call(s,"id")," = ",r.call(s,"moduleReference")),O((0,a.concat)(u));case"TSExternalModuleReference":return(0,a.concat)(["require(",r.call(s,"expression"),")"]);case"TSModuleDeclaration":return"TSModuleDeclaration"===(me=r.getParentNode()).type?u.push("."):(o.declare&&u.push("declare "),o.global||("StringLiteral"===o.id.type||"Literal"===o.id.type&&"string"==typeof o.id.value||o.loc&&o.loc.lines&&o.id.loc&&o.loc.lines.sliceString(o.loc.start,o.id.loc.start).indexOf("module")>=0?u.push("module "):u.push("namespace "))),u.push(r.call(s,"id")),o.body&&(u.push(" "),u.push(r.call(s,"body"))),(0,a.concat)(u);case"TSModuleBlock":var _e=r.call((function(e){return y(e,i,s)}),"body");return _e.isEmpty()?u.push("{}"):u.push("{\n",_e.indent(i.tabWidth),"\n}"),(0,a.concat)(u);case"TSInstantiationExpression":return u.push(r.call(s,"expression"),r.call(s,"typeParameters")),(0,a.concat)(u);case"V8IntrinsicIdentifier":return(0,a.concat)(["%",r.call(s,"name")]);case"TopicReference":return(0,a.fromString)("#");default:throw Error("unknown type: "+JSON.stringify(o.type))}}(r,s,u);if(!p||d.isEmpty())return d;var f=!1,m=function(e,t){var n=[],r=e.getValue();return r.decorators&&r.decorators.length>0&&!l.getParentExportDeclaration(e)?e.each((function(e){n.push(t(e),"\n")}),"decorators"):l.isExportDeclaration(r)&&r.declaration&&r.declaration.decorators&&e.each((function(e){n.push(t(e),"\n")}),"declaration","decorators"),(0,a.concat)(n)}(r,u);return m.isEmpty()?o.avoidRootParens||(f=r.needsParens()):h.push(m),f&&h.unshift("("),h.push(d),f&&h.push(")"),(0,a.concat)(h)}function y(e,n,r){var i=[],s=!1,o=!1;e.each((function(e){var t=e.getValue();t&&("EmptyStatement"!==t.type||t.comments&&t.comments.length>0)&&(c.Comment.check(t)?s=!0:c.Statement.check(t)?o=!0:u.assert(t),i.push({node:t,printed:r(e)}))})),s&&(0,t.default)(!1===o,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var p=null,h=i.length,d=[];return i.forEach((function(e,t){var r,i,s=e.printed,o=e.node,c=s.length>1,u=t>0,f=tn.length?r:n}(p,r),s),f?p=i:i&&d.push(i)})),(0,a.concat)(d)}function g(e){var t=[];e.declare&&t.push("declare ");var n=e.accessibility||e.access;return"string"==typeof n&&t.push(n," "),e.static&&t.push("static "),e.override&&t.push("override "),e.abstract&&t.push("abstract "),e.readonly&&t.push("readonly "),t}function b(e,t,n){var r=e.getNode(),i=r.kind,s=[],o=r.value;c.FunctionExpression.check(o)||(o=r),s.push.apply(s,g(r)),o.async&&s.push("async "),o.generator&&s.push("*"),"get"!==i&&"set"!==i||s.push(i," ");var l=e.call(n,"key");return r.computed&&(l=(0,a.concat)(["[",l,"]"])),s.push(l),r.optional&&s.push("?"),r===o?(s.push(e.call(n,"typeParameters"),"(",x(e,t,n),")",e.call(n,"returnType")),r.body?s.push(" ",e.call(n,"body")):s.push(";")):(s.push(e.call(n,"value","typeParameters"),"(",e.call((function(e){return x(e,t,n)}),"value"),")",e.call(n,"value","returnType")),o.body?s.push(" ",e.call(n,"value","body")):s.push(";")),(0,a.concat)(s)}function v(e,t,n){var r=e.map(n,"arguments"),i=l.isTrailingCommaEnabled(t,"parameters"),s=(0,a.fromString)(", ").join(r);return s.getLineLength(1)>t.wrapColumn?(s=(0,a.fromString)(",\n").join(r),(0,a.concat)(["(\n",s.indent(t.tabWidth),i?",\n)":"\n)"])):(0,a.concat)(["(",s,")"])}function x(e,t,n){var r,i=e.getValue(),s=[];i.params?(r=i.params,s=e.map(n,"params")):i.parameters&&(r=i.parameters,s=e.map(n,"parameters")),i.defaults&&e.each((function(e){var t=e.getName(),r=s[t];r&&e.getValue()&&(s[t]=(0,a.concat)([r," = ",n(e)]))}),"defaults"),i.rest&&s.push((0,a.concat)(["...",e.call(n,"rest")]));var o=(0,a.fromString)(", ").join(s);return o.length>1||o.getLineLength(1)>t.wrapColumn?(o=(0,a.fromString)(",\n").join(s),o=l.isTrailingCommaEnabled(t,"parameters")&&!i.rest&&"RestElement"!==r[r.length-1].type?(0,a.concat)([o,",\n"]):(0,a.concat)([o,"\n"]),(0,a.concat)(["\n",o.indent(t.tabWidth)])):o}function S(e,t,n){var r=e.getValue();if(r.assertions&&r.assertions.length>0){var i=[" assert {"],s=e.map(n,"assertions"),o=(0,a.fromString)(", ").join(s);return o.length>1||o.getLineLength(1)>t.wrapColumn?i.push("\n",(0,a.fromString)(",\n").join(s).indent(t.tabWidth),"\n}"):i.push(" ",o," }"),(0,a.concat)(i)}return(0,a.fromString)("")}function E(e,t,n){var r=e.getValue(),i=["export "];r.exportKind&&"type"===r.exportKind&&(r.declaration||i.push("type "));var s=t.objectCurlySpacing;if(c.Declaration.assert(r),(r.default||"ExportDefaultDeclaration"===r.type)&&i.push("default "),r.declaration)i.push(e.call(n,"declaration"));else if(r.specifiers){if(1===r.specifiers.length&&"ExportBatchSpecifier"===r.specifiers[0].type)i.push("*");else if(0===r.specifiers.length)i.push("{}");else if("ExportDefaultSpecifier"===r.specifiers[0].type||"ExportNamespaceSpecifier"===r.specifiers[0].type){var o=[],l=[];if(e.each((function(e){var t=e.getValue();"ExportDefaultSpecifier"===t.type||"ExportNamespaceSpecifier"===t.type?o.push(n(e)):l.push(n(e))}),"specifiers"),o.forEach((function(e,t){t>0&&i.push(", "),i.push(e)})),l.length>0){var u=(0,a.fromString)(", ").join(l);u.getLineLength(1)>t.wrapColumn&&(u=(0,a.concat)([(0,a.fromString)(",\n").join(l).indent(t.tabWidth),","])),o.length>0&&i.push(", "),u.length>1?i.push("{\n",u,"\n}"):t.objectCurlySpacing?i.push("{ ",u," }"):i.push("{",u,"}")}}else i.push(s?"{ ":"{",(0,a.fromString)(", ").join(e.map(n,"specifiers")),s?" }":"}");r.source&&i.push(" from ",e.call(n,"source"),S(e,t,n))}var p=(0,a.concat)(i);return";"===P(p)||r.declaration&&("FunctionDeclaration"===r.declaration.type||"ClassDeclaration"===r.declaration.type||"TSModuleDeclaration"===r.declaration.type||"TSInterfaceDeclaration"===r.declaration.type||"TSEnumDeclaration"===r.declaration.type)||(p=(0,a.concat)([p,";"])),p}function T(e,n){var r=l.getParentExportDeclaration(e);return r?(0,t.default)("DeclareExportDeclaration"===r.type):n.unshift("declare "),(0,a.concat)(n)}function k(e,t){return e.call((function(e){var n=e.getValue();return n?"plus"===n?(0,a.fromString)("+"):"minus"===n?(0,a.fromString)("-"):t(e):(0,a.fromString)("")}),"variance")}function _(e,t){return e.length>1?(0,a.concat)([" ",e]):(0,a.concat)(["\n",O(e).indent(t.tabWidth)])}function P(e){var t=e.lastPos();do{var n=e.charAt(t);if(/\S/.test(n))return n}while(e.prevPos(t))}function w(e){return"}"===P(e)}function A(e){return e.replace(/['"]/g,(function(e){return'"'===e?"'":'"'}))}function C(e){var t=n.getFieldValue(e,"value"),r=n.getFieldValue(e,"extra");if(r&&"string"==typeof r.raw&&t==r.rawValue)return r.raw;if("Literal"===e.type){var i=e.raw;if("string"==typeof i&&t==i)return i}}function I(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,(function(e){return"\\u"+e.charCodeAt(0).toString(16)}))}function N(e,t){switch(u.assert(e),t.quote){case"auto":var n=I(e),r=A(I(A(e)));return n.length>r.length?r:n;case"single":return A(I(A(e)));default:return I(e)}}function O(e){var t=P(e);return!t||"\n};".indexOf(t)<0?(0,a.concat)([e,";"]):e}return Ti.Printer=function e(n){(0,t.default)(this instanceof e);var a=n&&n.tabWidth;function c(e,t){return e=Object.assign({},e,t),function(t){return u(t,e)}}function u(e,s){if((0,t.default)(e instanceof i.default),(s=s||{}).includeComments)return(0,r.printComments)(e,c(s,{includeComments:!1}));var l=n.tabWidth;if(!a){var p=e.getNode().loc;p&&p.lines&&p.lines.guessTabWidth&&(n.tabWidth=p.lines.guessTabWidth())}var h=(0,o.getReprinter)(e),d=h?h(u):m(e,n,s,c(s,{includeComments:!0,avoidRootParens:!1}));return n.tabWidth=l,d}(n=(0,s.normalize)(n)).sourceFileName=null,this.print=function(e){if(!e)return f;var t=u(i.default.from(e),{includeComments:!0,avoidRootParens:!1});return new h(t.toString(n),l.composeSourceMaps(n.inputSourceMap,t.getSourceMap(n.sourceMapName,n.sourceRoot)))},this.printGenerically=function(e){if(!e)return f;var t=i.default.from(e),a=n.reuseWhitespace;n.reuseWhitespace=!1;var s=new h(function e(t){return(0,r.printComments)(t,(function(t){return m(t,n,{includeComments:!0,avoidRootParens:!1},e)}))}(t).toString(n));return n.reuseWhitespace=a,s}},Ti}(),s=jr();function o(e,t){return new a.Printer(t).print(e)}function l(e){process.stdout.write(e)}Object.defineProperty(e,"visit",{enumerable:!0,get:function(){return s.visit}}),e.print=o,e.prettyPrint=function(e,t){return new a.Printer(t).printGenerically(e)},e.run=function(e,t){return function(e,t,r){n.default.readFile(e,"utf-8",(function(e,n){e?console.error(e):function(e,t,n){var r=n&&n.writeback||l;t((0,i.parse)(e,n),(function(e){r(o(e,n).code)}))}(n,t,r)}))}(process.argv[2],e,t)}}(jt);const Ci=jt.types,Ii=jt.types.builders,Ni=jt.types.namedTypes,Oi=["window","document","console"],Di=Object.keys({AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1}),Li=e=>Ni.Identifier.check(e),ji=e=>Ni.Literal.check(e),Mi=e=>Ni.ExpressionStatement.check(e),Fi=e=>Ni.ObjectExpression.check(e),Bi=e=>Mi(e)&&Ui(e.expression.left)&&(e=>Ni.ThisExpression.check(e))(e.expression.left.object),Vi=e=>Ni.NewExpression.check(e),Ri=e=>Ni.SequenceExpression.check(e),qi=e=>Ni.ExportDefaultDeclaration.check(e),Ui=e=>Ni.MemberExpression.check(e),zi=e=>Ni.ImportDeclaration.check(e),Wi=e=>Ni.TSTypeAliasDeclaration.check(e),Gi=e=>Ni.TSInterfaceDeclaration.check(e),Ji=e=>Ni.ExportNamedDeclaration.check(e),$i=({name:e})=>Oi.includes(e),Hi=({name:e})=>Di.includes(e),Xi=e=>e&&e.raw;function Ki(...e){return e.reduce(((e,t)=>(...n)=>e(t(...n))))}function Qi(e){return function(e){return e.name===At}(e)&&!s(ua(St,e))&&!la(e)&&!oa(e)}function Yi({scope:e,node:t}){return t.object?Yi({node:t.object,scope:e}):!!(Xi(t)||Hi(t)||$i(t)||Vi(t)||function(e,t){return((n=!1)=>(Ci.visit(t,{visitIdentifier(t){e.lookup(Wa(t.node))&&(n=!0),this.abort()}}),n))()}(e,t))}function Zi(e){return!(!e[It]&&!ca(e))}function ea(e){return e.name===Pt}function ta(e){return!!e[Ct]}function na(e){return e.type===Ue.TAG}function ra(e){return e.type===Ue.TEXT}function ia(e){return e.isRoot}const aa=(()=>{const e=/^on/;return t=>e.test(t.name)})();function sa(e){return!!(e.expressions||ys(e).some((e=>sa(e)))||e.nodes&&e.nodes.some((e=>ra(e)&&sa(e))))}const oa=Ki(Boolean,pa),la=Ki(Boolean,ha),ca=Ki(Boolean,fa);function ua(e,t){return t.attributes&&t.attributes.find((t=>Wa(t)===e))}function pa(e){return ua(bt,e)}function ha(e){return ua(vt,e)}function da(e){return ua(xt,e)}function fa(e){return ua(Tt,e)}function ma(){return Ii.literal(null)}function ya(e,t){const n=Ii.property("init",Ii.identifier(e),t,!1);return n.sho,n}Ki(Boolean,da);const ga=/\r\n?|\n/g;function ba(e,t,n){const{column:r,line:i}=function(e,t){const n=function(e){return e.split(ga)}(e.slice(0,t));return{line:n.length,column:n[n.length-1].length}}(t,n.start);return`${"\n".repeat(i-1)}${" ".repeat(r+1)}${e}`}const va=e=>e.filter(((e,t,n)=>n.indexOf(e)===t)),xa=["circle","ellipse","line","path","polygon","polyline","rect","stop","use"],Sa=["button","data","input","select","li","meter","option","output","progress","textarea","param"],Ea=va(["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","animation","audio","canvas","clipPath","color-profile","cursor","defs","desc","discard","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","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","handler","hatch","hatchpath","hkern","iframe","image","linearGradient","listener","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","pattern","prefetch","radialGradient","script","set","solidColor","solidcolor","style","svg","switch","symbol","tbreak","text","textArea","textPath","title","tref","tspan","unknown","video","view","vkern"].concat(xa)).sort(),Ta=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function ka(e){return e.join("|")}function _a(...e){return RegExp(`^/?(?:${ka(e.map(ka))})$`,"i")}_a(va(["a","abbr","address","article","aside","audio","b","bdi","bdo","blockquote","body","canvas","caption","cite","code","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","html","i","iframe","ins","kbd","label","legend","main","map","mark","math","menu","nav","noscript","object","ol","optgroup","p","picture","pre","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","tfoot","th","thead","time","title","tr","u","ul","var","video"].concat(Ta).concat(Sa)).sort()),_a(Ea),_a(Ta),_a(xa);const Pa=_a(Sa);_a(["disabled","visible","checked","readonly","required","allowfullscreen","autofocus","autoplay","compact","controls","default","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","noresize","noshade","novalidate","nowrap","open","reversed","seamless","selected","sortable","truespeed","typemustmatch"]);var wa={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:"♦"};const Aa=/&(\S+);/g,Ca=/^[\da-fA-F]+$/,Ia=/^\d+$/;function Na(e){return e.replace(Aa,((e,t)=>{const[n,r]=t;return"#"===n?"x"===r?function(e){const t=e.substr(2);return Ca.test(t)?String.fromCodePoint(parseInt(t,16)):e}(t):function(e){const t=e.substr(1);return Ia.test(t)?String.fromCodePoint(parseInt(t,10)):e}(t):wa[t]||t}))}function Oa(e,t){return e.replace(RegExp("\\\\"+t,"gm"),t)}function Da(e,t,n){if(1===e.parts.length)return rs(e.expressions[0],t,n);const r=function(e,t){return e.expressions.reduce(((n,r,i)=>{const a=i?e.expressions[i-1].end:e.start,s=Na(t.substring(a,r.start));return n.push(0===i?function(e){return(e.trimStart||e.trimLeft).apply(e)}(s):s),i===e.expressions.length-1&&n.push(Na(function(e){return(e.trimEnd||e.trimRight).apply(e)}(t.substring(r.end,e.end)))),n}),[]).filter((e=>!(0===e.trim().indexOf("e.unescape?Oa(t,e.unescape):t))}(e,n),i=r.reduce(((r,i,a)=>{const s=e.expressions[a];return[...r,Ii.literal(i),s?rs(s,t,n):ma()]}),[]).filter((e=>!ji(e)||e.value));return xs(i)}function La(e,t,n,r,i){switch(!0){case ra(e):return function(e,t,n,r){return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(He),Ii.identifier(Qe),!1)),ya(dt,Ii.literal(r)),ya(lt,ts(Da(e,t,n)))])}(e,t,n,r);case"value"===e.name&&(a=i.name,Pa.test(a))&&!(i.name===wt):return function(e,t,n){return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(He),Ii.identifier(Ke),!1)),ya(lt,ks(e,t,n))])}(e,t,n);case aa(e):return function(e,t,n){return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(He),Ii.identifier(Ye),!1)),ya(ct,Ii.literal(e.name)),ya(lt,ks(e,t,n))])}(e,t,n);default:return function(e,t,n,r){const i=e[Ot];return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(He),Ii.identifier(Xe),!1)),ya(ht,Ii.literal(!("hidden"!==e.name&&(t[It]||(a=t,a.isRoot&&!a.isNestedRoot)||i||!e[Nt])))),ya(ct,i?ma():Ii.literal(e.name)),ya(lt,ks(e,n,r))]);var a}(e,i,t,n)}var a}function ja(e,t,n){return(r=e,ys(r).filter(sa)).map((r=>La(r,t,n,0,e)));var r}var Ma,Fa={},Ba={exports:{}};function Va(){return Ma||(Ma=1,function(e,t){!function(e){var t=[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],n=[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,16,621,2467,541,1507,4938,6,4191],r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:a,"5module":a+" export import",6:a+" const class extends export import super"},o=/^in(stanceof)?$/,l=RegExp("["+r+"]"),c=RegExp("["+r+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function u(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function p(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&u(e,n)))}function h(e,r){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==r&&(u(e,n)||u(e,t)))))}var d=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function f(e,t){return new d(e,{beforeExpr:!0,binop:t})}var m={beforeExpr:!0},y={startsExpr:!0},g={};function b(e,t){return void 0===t&&(t={}),t.keyword=e,g[e]=new d(e,t)}var v={num:new d("num",y),regexp:new d("regexp",y),string:new d("string",y),name:new d("name",y),privateId:new d("privateId",y),eof:new d("eof"),bracketL:new d("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new d("]"),braceL:new d("{",{beforeExpr:!0,startsExpr:!0}),braceR:new d("}"),parenL:new d("(",{beforeExpr:!0,startsExpr:!0}),parenR:new d(")"),comma:new d(",",m),semi:new d(";",m),colon:new d(":",m),dot:new d("."),question:new d("?",m),questionDot:new d("?."),arrow:new d("=>",m),template:new d("template"),invalidTemplate:new d("invalidTemplate"),ellipsis:new d("...",m),backQuote:new d("`",y),dollarBraceL:new d("${",{beforeExpr:!0,startsExpr:!0}),eq:new d("=",{beforeExpr:!0,isAssign:!0}),assign:new d("_=",{beforeExpr:!0,isAssign:!0}),incDec:new d("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new d("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("/<=/>=",7),bitShift:f("<>/>>>",8),plusMin:new d("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new d("**",{beforeExpr:!0}),coalesce:f("??",1),_break:b("break"),_case:b("case",m),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",m),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",m),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",y),_if:b("if"),_return:b("return",m),_switch:b("switch"),_throw:b("throw",m),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",y),_super:b("super",y),_class:b("class",y),_extends:b("extends",m),_export:b("export"),_import:b("import",y),_null:b("null",y),_true:b("true",y),_false:b("false",y),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=RegExp(x.source,"g");function E(e){return 10===e||13===e||8232===e||8233===e}function T(e,t,n){void 0===n&&(n=e.length);for(var r=t;r>10),56320+(1023&e))}var L=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,j=function(e,t){this.line=e,this.column=t};j.prototype.offset=function(e){return new j(this.line,this.column+e)};var M=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function F(e,t){for(var n=1,r=0;;){var i=T(e,r,t);if(i<0)return new j(n,t-r);++n,r=i}}var B={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},V=!1;function R(e,t){return 2|(e?4:0)|(t?8:0)}var q=function(e,t,n){this.options=e=function(e){var t={};for(var n in B)t[n]=e&&C(e,n)?e[n]:B[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!V&&"object"==typeof console&&console.warn&&(V=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),I(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return I(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,s,o){var l={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(l.loc=new M(this,s,o)),e.ranges&&(l.range=[i,a]),t.push(l)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=O(s[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=i[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=O(r);var a=(r?r+" ":"")+i.strict;this.reservedWordsStrict=O(a),this.reservedWordsStrictBind=O(a+" "+i.strictBind),this.input=t+"",this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},U={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};q.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},U.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},U.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},U.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},U.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},U.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},U.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},U.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},U.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},U.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},q.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,_.lastIndex=e,e+=_.exec(this.input)[0].length,";"===this.input[e]&&e++}},z.eat=function(e){return this.type===e&&(this.next(),!0)},z.isContextual=function(e){return this.type===v.name&&this.value===e&&!this.containsEsc},z.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},z.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},z.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},z.semicolon=function(){this.eat(v.semi)||this.insertSemicolon()||this.unexpected()},z.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},z.expect=function(e){this.eat(e)||this.unexpected()},z.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var G=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};z.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},z.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},z.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&r<56320)return!0;if(p(r,!0)){for(var i=n+1;h(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!o.test(a))return!0}return!1},J.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;_.lastIndex=this.pos;var e,t=_.exec(this.input),n=this.pos+t[0].length;return!(x.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(h(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},J.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=v._var,r="let"),i){case v._break:case v._continue:return this.parseBreakContinueStatement(a,i.keyword);case v._debugger:return this.parseDebuggerStatement(a);case v._do:return this.parseDoStatement(a);case v._for:return this.parseForStatement(a);case v._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case v._class:return e&&this.unexpected(),this.parseClass(a,!0);case v._if:return this.parseIfStatement(a);case v._return:return this.parseReturnStatement(a);case v._switch:return this.parseSwitchStatement(a);case v._throw:return this.parseThrowStatement(a);case v._try:return this.parseTryStatement(a);case v._const:case v._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case v._while:return this.parseWhileStatement(a);case v._with:return this.parseWithStatement(a);case v.braceL:return this.parseBlock(!0,a);case v.semi:return this.parseEmptyStatement(a);case v._export:case v._import:if(this.options.ecmaVersion>10&&i===v._import){_.lastIndex=this.pos;var s=_.exec(this.input),o=this.pos+s[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===v._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var c=this.value,u=this.parseExpression();return i===v.name&&"Identifier"===u.type&&this.eat(v.colon)?this.parseLabeledStatement(a,c,u,e):this.parseExpressionStatement(a,u)}},J.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(v.semi)||this.insertSemicolon()?e.label=null:this.type!==v.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(v.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},J.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push($),this.enterScope(0),this.expect(v.parenL),this.type===v.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===v._var||this.type===v._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),s=!1,o=new G,l=this.parseExpression(!(t>-1)||"await",o);return this.type===v._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&s&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,o),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},J.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,K|(n?0:Q),!1,t)},J.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(v._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},J.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},J.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(v.braceL),this.labels.push(H),this.enterScope(0);for(var n=!1;this.type!==v.braceR;)if(this.type===v._case||this.type===v._default){var r=this.type===v._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(v.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},J.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var X=[];J.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(v.parenR),e},J.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===v._catch){var t=this.startNode();this.next(),this.eat(v.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(v._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},J.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},J.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push($),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},J.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},J.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},J.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},J.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},J.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(v.braceL),e&&this.enterScope(0);this.type!==v.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},J.parseFor=function(e,t){return e.init=t,this.expect(v.semi),e.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),e.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},J.parseForIn=function(e,t){var n=this.type===v._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},J.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(v.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===v._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(v.comma))break}return e},J.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var K=1,Q=2;function Y(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function Z(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}J.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===v.star&&t&Q&&this.unexpected(),e.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&K&&(e.id=4&t&&this.type!==v.name?null:this.parseIdent(),!e.id||t&Q||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(R(e.async,e.generator)),t&K||(e.id=this.type===v.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&K?"FunctionDeclaration":"FunctionExpression")},J.parseFunctionParams=function(e){this.expect(v.parenL),e.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},J.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(v.braceL);this.type!==v.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(a&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),a=!0):s.key&&"PrivateIdentifier"===s.key.type&&Y(r,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},J.parseClassElement=function(e){if(this.eat(v.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,a=!1,s="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(v.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===v.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==v.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(v.star)&&(i=!0),!r&&!a&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===v.parenL||"method"!==s||i||a){var c=!n.static&&Z(n,"constructor"),u=c&&e;c&&"method"!==s&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":s,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},J.isClassElementNameStart=function(){return this.type===v.name||this.type===v.privateId||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword},J.parseClassElementName=function(e){this.type===v.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},J.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Z(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},J.parseClassField=function(e){if(Z(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Z(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(v.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},J.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==v.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},J.parseClassId=function(e,t){this.type===v.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},J.parseClassSuper=function(e){e.superClass=this.eat(v._extends)?this.parseExprSubscripts(null,!1):null},J.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},J.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],a=0;a=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},J.parseExport=function(e,t){if(this.next(),this.eat(v.star))return this.parseExportAllDeclaration(e,t);if(this.eat(v._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var n=0,r=e.specifiers;n=13&&this.type===v.string){var e=this.parseLiteral(this.value);return L.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},J.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ee=q.prototype;ee.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(v._function))return this.overrideContext(ne.f_expr),this.parseFunction(this.startNodeAt(a,s),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(a,s),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===v.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(v.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,s),[l],!0,t)}return l;case v.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return(r=this.startNode()).value=this.type===v._null?null:this.type===v._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case v.parenL:var u=this.start,p=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),p;case v.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(v.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case v.braceL:return this.overrideContext(ne.b_expr),this.parseObj(!1,e);case v._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();case v._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},ie.parseExprAtomDefault=function(){this.unexpected()},ie.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===v.parenL&&!e)return this.parseDynamicImport(t);if(this.type===v.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},ie.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(v.parenR)){var t=this.start;this.eat(v.comma)&&this.eat(v.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ie.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ie.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ie.parseParenExpression=function(){this.expect(v.parenL);var e=this.parseExpression();return this.expect(v.parenR),e},ie.shouldParseArrow=function(e){return!this.canInsertSemicolon()},ie.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,l=this.startLoc,c=[],u=!0,p=!1,h=new G,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;){if(u?u=!1:this.expect(v.comma),a&&this.afterTrailingComma(v.parenR,!0)){p=!0;break}if(this.type===v.ellipsis){s=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===v.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(v.parenR),e&&this.shouldParseArrow(c)&&this.eat(v.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(r,i,c,t);c.length&&!p||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((n=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(n,"SequenceExpression",m,y)):n=c[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,i);return g.expression=n,this.finishNode(g,"ParenthesizedExpression")}return n},ie.parseParenItem=function(e){return e},ie.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var se=[];ie.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===v.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(v.parenL)?e.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):e.arguments=se,this.finishNode(e,"NewExpression")},ie.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===v.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===v.backQuote,this.finishNode(n,"TemplateElement")},ie.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===v.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(v.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(v.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},ie.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===v.name||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===v.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},ie.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(v.braceR);){if(r)r=!1;else if(this.expect(v.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(v.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},ie.parseProperty=function(e,t){var n,r,i,a,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===v.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===v.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(v.star)));var o=this.containsEsc;return this.parsePropertyName(s),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(s)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(v.star),this.parsePropertyName(s)):r=!1,this.parsePropertyValue(s,e,n,r,i,a,t,o),this.finishNode(s,"Property")},ie.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},ie.parsePropertyValue=function(e,t,n,r,i,a,s,o){(n||r)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===v.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===v.comma||this.type===v.braceR||this.type===v.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===v.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},ie.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(v.bracketR),e.key;e.computed=!1}return e.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ie.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ie.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|R(t,r.generator)|(n?128:0)),this.expect(v.parenL),r.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(r,"FunctionExpression")},ie.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|R(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},ie.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==v.braceL,a=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!o||(s=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!a&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},ie.isSimpleParamList=function(e){for(var t=0,n=e;t-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var o=this.scopeStack[s];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},le.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},le.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},le.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},le.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var ue=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new M(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},pe=q.prototype;function he(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}pe.startNode=function(){return new ue(this,this.start,this.startLoc)},pe.startNodeAt=function(e,t){return new ue(this,e,t)},pe.finishNode=function(e,t){return he.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},pe.finishNodeAt=function(e,t,n,r){return he.call(this,e,t,n,r)},pe.copyNode=function(e){var t=new ue(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};for(var de,fe,me="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ye=me+" Extended_Pictographic",ge=ye+" EBase EComp EMod EPres ExtPict",be={9:me,10:ye,11:ye,12:ge,13:ge,14:ge},ve={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},xe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Se="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ee=Se+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Te=Ee+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ke=Te+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",_e=ke+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Pe={9:Se,10:Ee,11:Te,12:ke,13:_e,14:_e+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},we={},Ae=0,Ce=[9,10,11,12,13,14];Ae=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=we[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Oe(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function De(e){return e>=65&&e<=90||e>=97&&e<=122}function Le(e){return De(e)||95===e}function je(e){return Le(e)||Me(e)}function Me(e){return e>=48&&e<=57}function Fe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Be(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ve(e){return e>=48&&e<=55}Ne.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Ne.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ne.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ne.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Ne.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ne.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ne.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ne.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ne.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,i=e;r-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===s&&(r=!0),"v"===s&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},Ie.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Ie.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Ie.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ie.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ie.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Ie.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Ie.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ie.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Oe(t)&&(e.lastIntValue=t,e.advance(),!0)},Ie.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Oe(n);)e.advance();return e.pos!==t},Ie.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Ie.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Ie.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Ie.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=D(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=D(e.lastIntValue);return!0}return!1},Ie.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return p(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ie.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ie.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Ie.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Ie.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Ie.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Ie.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ie.regexp_eatZero=function(e){return 48===e.current()&&!Me(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ie.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Ie.regexp_eatControlLetter=function(e){var t=e.current();return!!De(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ie.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(a-55296)+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Ie.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Ie.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Ie.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},Ie.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},Ie.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){C(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Ie.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Ie.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Le(t=e.current());)e.lastStringValue+=D(t),e.advance();return""!==e.lastStringValue},Ie.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";je(t=e.current());)e.lastStringValue+=D(t),e.advance();return""!==e.lastStringValue},Ie.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ie.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},Ie.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Ie.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Ie.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Ve(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},Ie.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Ie.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},Ie.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Ie.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Ie.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},Ie.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},Ie.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Ie.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Ie.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n)||function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)||(e.advance(),e.lastIntValue=n,0))},Ie.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Ie.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Me(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Ie.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Ie.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Me(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Ie.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Fe(n=e.current());)e.lastIntValue=16*e.lastIntValue+Be(n),e.advance();return e.pos!==t},Ie.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Ie.regexp_eatOctalDigit=function(e){var t=e.current();return Ve(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ie.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(v.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},qe.readToken=function(e){return p(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},qe.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},qe.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=T(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},qe.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&k.test(String.fromCharCode(e))))break e;++this.pos}}},qe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},qe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},qe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},qe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?v.star:v.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=v.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(v.assign,n+1):this.finishOp(r,n)},qe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(124===e?v.logicalOR:v.logicalAND,2):61===t?this.finishOp(v.assign,2):this.finishOp(124===e?v.bitwiseOR:v.bitwiseAND,1)},qe.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},qe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!x.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(v.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},qe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(v.assign,n+1):this.finishOp(v.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(v.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},qe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(v.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(61===e?v.eq:v.prefix,1)},qe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(v.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(v.coalesce,2)}return this.finishOp(v.question,1)},qe.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(v.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+D(e)+"'")},qe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(v.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+D(e)+"'")},qe.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},qe.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new Ne(this));o.reset(n,i,s),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=RegExp(i,s)}catch(e){}return this.finishToken(v.regexp,{pattern:i,flags:s,value:l})},qe.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),a=this.pos,s=0,o=0,l=0,c=null==t?1/0:t;l=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;o=u,s=s*e+p}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:s},qe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Ue(this.input.slice(t,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,n)},qe.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=Ue(this.input.slice(t,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,s=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(v.num,s)},qe.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},qe.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(E(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(v.string,t)};var ze={};qe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ze)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},qe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ze;this.raise(e,t)},qe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==v.template&&this.type!==v.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(v.template,e)):36===n?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},qe.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return E(t)?"":String.fromCharCode(t)}},qe.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},qe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.posRa(e,{...t,ecmaVersion:"latest"})},...t})}Ra=Fa.parse=function(e,t){var n=[],r=[],i=Va().parse(e,{allowHashBang:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,ecmaVersion:(0,qa.getOption)(t,"ecmaVersion",8),sourceType:(0,qa.getOption)(t,"sourceType","module"),locations:!0,onComment:n,onToken:r});return i.comments||(i.comments=n),i.tokens||(i.tokens=r),i};const za=Ii.identifier("_scope"),Wa=e=>e&&e.name?e.name:e;function Ga(e,t){is(t),e.replace(Ii.memberExpression(za,t,!1))}function Ja(e){if(!Yi(e))return Ga(e,e.node),!1;this.traverse(e)}function $a(e){const t=()=>this.traverse(e.get("object")),n=e.node.object;switch(!0){case Yi(e):n.arguments&&n.arguments.length&&t();break;case!e.value.computed&&Li(n):Ga(e,e.node);break;default:this.traverse(e)}return!1}function Ha(e){const t=e.node.value,n=e.node.shorthand;return Li(t)||Ui(t)||n?(n&&(e.node.shorthand=!1),Ja.call(this,e.get("value"))):this.traverse(e.get("value")),!1}function Xa(e){e.replace(za),this.traverse(e)}function Ka(e){const t=e.parent.value;return(!Ui(t)&&t.key!==e.node||t.computed)&&Ja.call(this,e),!1}function Qa(e){return Ci.visit(e,{visitIdentifier:Ka,visitMemberExpression:$a,visitObjectProperty:Ha,visitThisExpression:Xa,visitClassExpression:()=>!1}),e}function Ya(e,t,n){return Ua(`(${t?ba(e.text,n,e):e.text})`,{sourceFileName:t})}function Za(e){return ya(rt,e?ss(...e):ma())}function es(e){return e.expressions?e.expressions[0]:{...e,text:e.value}}function ts(e){const t=Ii.arrowFunctionExpression([za],e);return Fi(e)&&(e.extra={parenthesized:!0}),t}function ns(e,t,n){return Ki(ts,rs)(e,t,n)}function rs(e,t,n){return Ki(is,as,Qa,Ya)(e,t,n)}function is(e){return e.extra&&(e.extra.parenthesized=!1),e}function as(e){const t=e.program.body;return t[0]?t[0].expression:t}function ss(e,t){return Ii.callExpression(Ii.identifier(Ze),[e?Ii.literal(e):ma(),t?Ii.arrayExpression(t):ma()])}const os=e=>Ii.arrowFunctionExpression([Ze,He,ze,et].map(Ii.identifier),e),ls=e=>`[${e}]`;function cs(e){return e?[ya(at,Ii.literal(e)),ya(tt,Ki(Ii.literal,ls)(e))]:[]}function us(e,t){return t?e.filter((e=>e.name!==t)):e}function ps(e){return ys(e).filter((e=>![bt,vt,xt,St,Tt].includes(e.name)))}function hs(e){return{nodes:ms(e),isRoot:!0}}function ds(e){return{...hs(e),isNestedRoot:!0,attributes:ps(e)}}function fs(e){return e.map((e=>e.expressions?e:{...e,expressions:[{start:e.valueStart,end:e.end,text:`'${e.value?e.value:e[Nt]?e.name:""}'`}]}))}function ms(e){return e&&e.nodes?e.nodes:[]}function ys(e){return e.attributes?e.attributes:[]}function gs(e,t,n){const r=fa(e),i=e=>`'${e}'`;return r?r.expressions?ts(Ss(r,t,n)):ns({...r,text:i(r.value)},t,n):ns({...e,text:i(Wa(e))},t,n)}function bs(e,t){return e.unescape?{...e,[t]:Oa(e[t],e.unescape)}:e}function vs(e){const t=function(e){return function(e){return ys(e).filter((e=>!sa(e)))}(e).map((e=>e[Nt]||!e.value?e.name:`${e.name}="${bs(e,"value").value}"`)).join(" ")}(e);switch(!0){case na(e):return`<${e.name}${t?" "+t:""}${ta(e)?"/":""}>`;case ra(e):return sa(e)?_t:bs(e,"text").text;default:return e.text||""}}function xs(e){return Ii.callExpression(Ii.memberExpression(Ii.arrayExpression(e),Ii.identifier("join"),!1),[Ii.literal("")])}function Ss(e,t,n){if(!e.parts||1===e.parts.length)return rs(e.expressions[0],t,n);const r=[...e.parts.reduce(((r,i)=>{const a=e.expressions.find((e=>e.text.trim()===i));return[...r,a?rs(a,t,n):Ii.literal(Na(i))]}),[])].filter((e=>!ji(e)||e.value));return xs(r)}const Es=function(e=0){return()=>"expr"+e++}();function Ts(e,t,n,r){return Ii.arrayExpression([...Ki((t=>t.map((t=>La(t,n,r,0,e)))),(e=>e.filter(sa)),(e=>us(e,t)),ps)(e)])}function ks(e,t,n){return ts(Ss(e,t,n))}function _s(e){return e&&e.toJSON?e.toJSON():e}const Ps=Object.freeze({code:"",ast:[],meta:{},map:null});function ws(e,t){const n={...Ps,...e,meta:t};return!n.map&&t&&t.options&&t.options.file?{...n,map:(t.options.file,new zr)}:n}const As=new Set,Cs=Object.freeze({javascript:new Map,css:new Map,template:(new Map).set("default",(e=>({code:e})))});function Is(e){d(`No preprocessor of type "${e}" was found, please make sure to use one of these: 'javascript', 'css' or 'template'`)}function Ns(e,t,n,r){return Cs[e]||Is(e),Cs[e].has(t)||function(e){d(`No preprocessor named "${e}" was found, are you sure you have registered it?'`)}(t),function(e,t,n){return ws(e?e(n,t):{code:n},t)}(Cs[e].get(t),n,r)}function Os(e,t){return jt.print(e,{...t,parser:{parse:(e,t)=>Ra(e,{...t,ecmaVersion:"latest"})},tabWidth:2,wrapColumn:0,quote:"single"})}const Ds=e=>Ri(e.left)?e.left.expressions[0]:e.left,Ls=e=>Ri(e.left)?e.left.expressions[1]:null,js=e=>e.right,Ms=Ki(Ii.literal,Wa),Fs=e=>ya("itemName",Ki(Ms,Ds)(e)),Bs=e=>ya("indexName",Ki(Ms,Ls)(e)),Vs=(e,t,n,r)=>ya(lt,Ki((e=>ns(e,n,r)),(e=>({...t,text:Os(e).code})),js)(e));function Rs(e,t,n){const r=Ya(e,t,n).program.body[0];Mi(r)||d(`The each directives supported should be of type "ExpressionStatement",you have provided a "${r.type}"`);const{expression:i}=r;return[Fs(i),Bs(i),Vs(i,e,t,n)]}function qs(e,t,n,r){const[i,a,s]=[pa,ha,da].map((t=>t(e))),o=e=>e?ns(es(e),n,r):ma();return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(ze),Ii.identifier(We),!1)),ya(ot,o(s)),ya(st,o(i)),Za(Ks(e,n,r,t)),...cs(t),...Ki(Rs,es)(a)])}function Us(e,t,n,r){const i=pa(e);return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(ze),Ii.identifier(Ge),!1)),ya(lt,ns(i.expressions[0],n,r)),...cs(t),Za(Ks(e,n,r,t))])}function zs(e,t,n){const r=ms(e);return r.filter(ra).filter(sa).map((i=>La(i,t,n,r.indexOf(i),e)))}function Ws(e,t,n,r){return Ii.objectExpression([...Qi(e)||ia(e)?[]:cs(t),ya(pt,Ii.arrayExpression([...zs(e,n,r),...ja(e,n,r)]))])}function Gs(e,t,n,r){const i=ua(Et,e),a=i?i.value:kt;return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(ze),Ii.identifier($e),!1)),ya(gt,Ts({...e,attributes:ys(e).filter((e=>Wa(e)!==Et))},t,n,r)),ya(ct,Ii.literal(a)),...cs(t)])}function Js(e){return ms(e).reduce(((e,t)=>{const n=function(e){return ys(e).find((e=>e.name===St))}(t);return n?e[n.value]=t:e.default=ds({nodes:[...ms(e.default),t]}),e}),{default:null})}function $s(e,t,n){return Ii.arrayExpression([...Ki((e=>e.map((([e,r])=>function(e,t,n,r){const i={...t,attributes:ys(t)},[a,s]=Qs(i,n,r);return Ii.objectExpression([ya(mt,Ii.literal(e)),ya(yt,Ii.literal(a)),ya(ft,Ii.arrayExpression(s))])}(e,r,t,n)))),(e=>e.filter((([,e])=>e))),Object.entries,Js)(e)])}function Hs(e,t,n,r){return Ii.objectExpression([ya(it,Ii.memberExpression(Ii.identifier(ze),Ii.identifier(Je),!1)),ya(nt,Ii.identifier(et)),ya(lt,gs(e,n,r)),ya(ut,$s(e,n,r)),ya(gt,Ts(e,t,n,r)),...cs(t)])}const Xs=Object.freeze({html:[],bindings:[],parent:null});function Ks(e,t,n,r){const i=Zi(e),a=function(e,t){return{...e,attributes:us(ys(e),t)}}(e,r);return i?[null,[Hs(a,null,t,n)]]:Qs(ds(a),t,n)}function Qs(e,t,n,r){e||d("Something went wrong with your tag DOM parsing, your tag template can't be created");const[i,a]=function(e,t,n,r){return i=e,[sa,ha,pa,Zi,ea].every((e=>!e(i)))?[vs(e),[]]:function(e,t,n,r){return!0===ra(e)?[vs(e),[]]:function(e,t,n){const r=ia(e)?null:Es(),i=function(e,t){return t?{...e,attributes:[{name:t,value:t},...ys(e)]}:e}(e,r),a=vs(i);switch(!0){case la(i):return[a,[qs(i,r,t,n)]];case oa(i):return[a,[Us(i,r,t,n)]];case Zi(i):return[a,[Hs(i,r,t,n)]];case ea(i):return[a,[Gs(i,r)]];default:return[a,[Ws(i,r,t,n)]]}}(e,t,n)}(e,t,n);var i}(e,t,n),s=ms(e),o=!1===Qi(e),l={...(c=Xs,JSON.parse(JSON.stringify(c))),...r};var c,u;return o&&l.html.push(...i),l.bindings.push(...a),s.length&&(u=e,![ha,pa,Zi].some((e=>e(u))))&&s.forEach((r=>Qs(r,t,n,{parent:e,...l}))),o&&na(e)&&!ta(e)&&l.html.push(function(e){return e.name?``:""}(e)),[l.html.join(""),l.bindings]}var Ys={}.hasOwnProperty,Zs=/[ -,\.\/:-@\[-\^`\{-~]/,eo=/[ -,\.\/:-@\[\]\^`\{-~]/,to=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,no=function e(t,n){"single"!=(n=function(e,t){if(!e)return t;var n={};for(var r in t)n[r]=Ys.call(e,r)?e[r]:t[r];return n}(n,e.options)).quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,a=t.charAt(0),s="",o=0,l=t.length;o126){if(u>=55296&&u<=56319&&oe.name===io)):null;return t?t.value.replace("text/",""):null}function so(e,t,n,r){const i=r.text;return t?Ns(e,t,n,i):{code:i}}const oo=":host",lo=["from","to"],co=/\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//g,uo=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+/"[^"\n\\]*(?:\\[\S\s][^"\n\\]*)*"|'[^'\n\\]*(?:\\[\S\s][^'\n\\]*)*'/.source,"g"),po=/([^,]+)(?::\w+(?:[\s|\S]*?\))?(?:[^,:]*)?)+|([^,]+)/g,ho=e=>e.replace(/\\/g,"\\\\"),fo=e=>ho(ro(e,{isIdentifier:!0}));function mo(e,t,n,r){const i=ao(e),{options:a}=n,s=so("css",i,n,e.text).code.replace(co,"").replace(/\s+/g," ").trim(),o=fo(n.tagName),l=(a.scopedCss?function(e,t){return t.replace(uo,(function(t,n,r){if(!r)return t;const i=function(e,t){return t.replace(po,((t,n)=>{const r=t.trim(),i=n?n.trim():r;return 0===i.indexOf(e)||!i||lo.indexOf(i)>-1||"%"===i.slice(-1)?t:r.indexOf(oo)<0?`${e} ${r},[is="${e}"] ${r}`:`${r.replace(oo,e)},${r.replace(oo,`[is="${e}"]`)}`}))}(e,r);return n?`${n} ${i}`:i}))}(o,ho(s)):ho(s)).trim();return Ci.visit(r,{visitProperty(e){if(e.value.key.name===g)return e.value.value=Ii.templateLiteral([Ii.templateElement({raw:l,cooked:""},!1)],[]),!1;this.traverse(e)}}),r}function yo(e,...t){return(...n)=>(n=[...t,...n]).length!zi(e)))}function So(e){return e.filter((e=>!Ji(e)||qi(e)))}function Eo(e){return e.body||e.program.body}function To(e,t){return Ci.visit(e,{visitProperty(e){if(e.value.key.name===y)return e.value.value=t.declaration,!1;this.traverse(e)}}),e}function ko(e,t,n,r){const i=ao(e),a=ba(e.text.text,t,e),{options:o}=n,l=so("javascript",i,n,{...e,text:a}),c=_s(l.map),u=Eo(Ua(l.code,{sourceFileName:o.file,inputSourceMap:bo(c)?null:c})),p=u.find(qi),h=s(p),d=Eo(r),f=function(e){const t=e.filter(Ji).map((e=>e.declaration)),n=t.filter(Wi),r=t.filter(Gi),i=({typeName:e})=>!(!e||!e.name)&&e.name===E,a=({expression:e})=>e.name===E;return n.find((e=>e.typeAnnotation.types&&e.typeAnnotation.types.some(i)||i(e.typeAnnotation)))||r.find((e=>e.extends&&e.extends.some(a)))}(u);if(p&&u.some(Bi))throw Error('You can\t use "export default {}" and root this statements in the same component');return d.unshift(...h?[...vo(u),...(m=u,m.filter(Ji))]:function(e){return e.filter((e=>!qi(e)&&!Bi(e)))}(u)),h&&To(r,function(e){return Ii.exportDefaultDeclaration(Ii.functionDeclaration(Ii.identifier(y),[],Ii.blockStatement([...Ki(xo,So)(e),Ii.returnStatement(Ii.thisExpression())])))}(u)),p&&To(r,p),f?function(e,t){const n=Eo(e),r=Ii.importSpecifier(Ii.identifier(S)),i=t.id.name,a=vo(n).find((e=>e.source.value===x)),s=n.find(qi),o=s.declaration;return a?a.specifiers.push(r):n.unshift(0,Ii.importDeclaration([r],Ii.stringLiteral(x))),s.declaration=Ii.tsAsExpression(o,Ii.tsTypeReference(Ii.identifier(S),Ii.tsTypeParameterInstantiation([Ii.tsTypeReference(Ii.identifier(i))]))),e}(r,f):r;var m}function _o(e,t,n,r){const{options:i}=n;return function(e,t,n,r){return Ci.visit(e,{visitProperty(e){if(e.value.key.name===b)return e.value.value=os(function(e,t,n){return ss(...Qs((r=e,{...hs(r),attributes:Ki(fs,ps)(r)}),t,n));var r}(r,t,n)),!1;this.traverse(e)}}),e}(r,i.file,t,e)}const Po={template:"default",file:"[unknown-source-file]",scopedCss:!0};function wo({tagName:e}){return Ii.program([Ii.exportDefaultDeclaration(Ii.objectExpression([ya(g,ma()),ya(y,ma()),ya(b,ma()),ya(v,Ii.literal(e))]))])}function Ao(e){const t=_s(e);return bo(t)?null:t}function Co(e,t){return{...e,sourcesContent:[t]}}const Io=(e,t)=>{const{parse:n}=Be(t);return n(e).output.template};function No(e,t){return Ki((({code:e})=>e),Os,os,$s)(Io(e,t),Po.file,e)}function Oo(e,t={}){const n=function(e,t){return{tagName:null,fragments:null,options:{...Po,...t},source:e}}(e,t),{options:r}=n,{code:i,map:s}=Ns("template",r.template,n,e),{parse:l}=Be(r),{template:c,css:u,javascript:p}=l(i).output;if(function(e,t,n){const r=e?(""+t.substr(0,e.start)+t.substr(e.end,t.length)).trim():"";if(r)try{const{template:e,javascript:t,css:i}=n(r).output;return[e,t,i].some(a)}catch(e){return!1}return!1}(c||u||p,i,l))throw Error("Multiple HTML root nodes are not supported");return Object.assign(n,{tagName:c.name,fragments:{template:c,css:u,javascript:p}}),Ki((e=>({...e,meta:n})),(e=>function(e,t){return Array.from(As).reduce((function(e,n){const{code:r,map:i}=e,a=n(r,t);return{code:a.code,map:(s=i,l=a.map,o()&&s&&l&&l.mappings?ii(_s(s),_s(l)):o()&&s?_s(s):{})};var s,l}),ws(e,t))}(e,n)),(t=>({...t,map:Co(t.map,e)})),(e=>n.ast=e&&Os(e,{sourceMapName:r.file+".map",inputSourceMap:Ao(s)})),Do(_o,c,i,n),Do(ko,p,i,n),Do(mo,u,i,n))(wo(n))}function Do(e,t,n,r){return!t||!t.text&&go(t.nodes)&&go(t.attributes)?e=>e:yo(e)(t,n,r)}const Lo=Object.freeze({__proto__:null,compile:Oo,createInitialInput:wo,generateSlotsFromString:No,generateTemplateFunctionFromString:function(e,t){return Ki((({code:e})=>e),Os,ss)(...Qs(Io(e,t),Po.file,e))},registerPostprocessor:function(e){return As.has(e)&&d(`This postprocessor "${e.name||e.toString()}" was already registered`),As.add(e),As},registerPreprocessor:function(e,t,n){return e||d("Please define the type of preprocessor you want to register 'javascript', 'css' or 'template'"),t||d("Please define a name for your preprocessor"),n||d("Please provide a preprocessor function"),Cs[e]||Is(e),Cs[e].has(t)&&d(`The preprocessor ${t} was already registered before`),Cs[e].set(t,n),Cs}}),jo={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4},Mo=new Map,Fo=Symbol(),Bo=new Set,Vo="is",Ro="mount",qo="update",Uo="unmount",zo="shouldUpdate",Wo="onBeforeMount",Go="onMounted",Jo="onBeforeUpdate",$o="onUpdated",Ho="onBeforeUnmount",Xo="onUnmounted",Ko="props",Qo="state",Yo="slots",Zo="root",el=Symbol(),tl=Symbol(),nl=Symbol(),rl=Symbol(),il=Symbol();function al(e){return Array.from(e.attributes).reduce(((e,t)=>(e[h(t.name)]=t.value,e)),{})}function sl(e){for(;e.firstChild;)e.removeChild(e.firstChild)}const ol=e=>e.remove(),ll=(e,t)=>t&&t.parentNode&&t.parentNode.insertBefore(e,t);function cl(){return this}function ul(e){return i(e)?e.prototype&&e.prototype.constructor?new e:e():e}function pl(e,t,n,r={}){return Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!1,configurable:!0,...r}),e}function hl(e,t,n){return Object.entries(t).forEach((([t,r])=>{pl(e,t,r,n)})),e}function dl(e,t){return Object.entries(t).forEach((([t,n])=>{e[t]||(e[t]=n)})),e}const fl={[Ro](e){this.el=e},[qo]:cl,[Uo](e,t,n=!1){n?ol(this.el):n||sl(this.el)},clone:cl,createDOM:cl},ml=Symbol(),yl=Symbol(),gl=Symbol(),bl={nodes:[],mount(e,t){return this.update(e,t)},update(e,t){const{placeholder:n,nodes:r,childrenMap:i}=this,a=e===gl?null:this.evaluate(e),s=a?Array.from(a):[],{newChildrenMap:o,batches:l,futureNodes:c}=function(e,t,n,r){const{condition:i,template:a,childrenMap:s,itemName:o,getKey:l,indexName:c,root:u,isTemplateTag:p}=r,h=new Map,d=[],f=[];return e.forEach(((e,r)=>{const m=function(e,{itemName:t,indexName:n,index:r,item:i}){return pl(e,t,i),n&&pl(e,n,r),e}(Object.create(t),{itemName:o,indexName:c,index:r,item:e}),y=l?l(m):r,g=s.get(y),b=[];if(function(e,t){return!!e&&!e(t)}(i,m))return;const v=!g,x=g?g.template:a.clone(),S=x.el||u.cloneNode(),E=p&&v?function(e){const t=e.dom.cloneNode(!0),{head:n,tail:r}=function(){const e=document.createTextNode(""),t=document.createTextNode("");return e[ml]=!0,t[yl]=!0,{head:e,tail:t}}();return{avoidDOMInjection:!0,fragment:t,head:n,tail:r,children:[n,...Array.from(t.childNodes),r]}}(x):x.meta;v?d.push((()=>x.mount(S,m,n,E))):d.push((()=>x.update(m,n))),p?b.push(...E.children):b.push(S),s.delete(y),f.push(...b),h.set(y,{nodes:b,template:x,context:m,index:r})})),{newChildrenMap:h,batches:d,futureNodes:f}}(s,e,t,this);return((e,t,n,r)=>{const i=t.length;let a=e.length,s=i,o=0,l=0,c=null;for(;or-l){const i=n(e[o],0);for(;l{if(r<0){const n=e[e.length-1];if(n){const{template:r,nodes:i,context:a}=n;i.pop(),i.length||(e.pop(),r.unmount(a,t,null))}}return n}}(Array.from(i.values()),t),n),l.forEach((e=>e())),this.childrenMap=o,this.nodes=c,this},unmount(e,t){return this.update(gl,t),this}},vl={mount(e,t){return this.update(e,t)},update(e,t){const n=!!this.evaluate(e),r=!this.value&&n,i=this.value&&!n,a=()=>{const n=this.node.cloneNode();ll(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,e,t)};switch(!0){case r:a();break;case i:this.unmount(e);break;default:n&&this.template.update(e,t)}return this.value=n,this},unmount(e,t){return this.template.unmount(e,t,!0),this}},xl="undefined"==typeof Element?{}:Element.prototype,Sl=f((e=>xl.hasOwnProperty(e))),El=/^on/,Tl={handleEvent(e){this[e.type](e)}},kl=new WeakMap;function _l(e){return s(e)?"":e}const Pl=(e,t)=>e.childNodes[t],wl={[l]:function e(n,{name:r,isBoolean:s},o,l){if(!r)return l&&function(e,t,n){const r=t?Object.keys(t):[];Object.keys(n).filter((e=>!r.includes(e))).forEach((t=>e.removeAttribute(t)))}(n,o,l),void(o&&function(t,n){Object.keys(n).forEach((r=>e(t,{name:r},n[r])))}(n,o));!Sl(r)&&(function(e){return t(e,"boolean")}(o)||a(o)||i(o))&&(n[r]=o),function(e,t){return t?!e&&0!==e:null==e}(o,s)?n.removeAttribute(r):function(e){return["string","number","boolean"].includes(typeof e)}(o)&&n.setAttribute(r,function(e,t,n){return!0===t&&n?e:t}(r,o,s))},1:function(e,{name:t},n){const r=t.replace(El,""),i=kl.get(e)||(e=>{const t=Object.create(Tl);return kl.set(e,t),t})(e),[a,s]=(e=>Array.isArray(e)?e:[e,!1])(n),o=i[r],l=a&&!o;o&&!a&&e.removeEventListener(r,i),l&&e.addEventListener(r,i,s),i[r]=a},[c]:function(e,t,n){e.data=_l(n)},[u]:function(e,t,n){e.value=_l(n)}},Al={mount(e){return this.value=this.evaluate(e),Cl(this,this.value),this},update(e){const t=this.evaluate(e);return this.value!==t&&(Cl(this,t),this.value=t),this},unmount(){return 1===this.type&&Cl(this,null),this}};function Cl(e,t){return wl[e.type](e.node,e,t,e.value)}function Il(e,t){return{...Al,...t,node:t.type===c?Pl(e,t.childNodeIndex):e}}const Nl=(e,t)=>e[nl]||t,Ol={attributes:[],getTemplateScope(e,t){return function(e,t,n){if(!e||!e.length)return n;const r=e.map((e=>({...e,value:e.evaluate(t)})));return Object.assign(Object.create(n||null),m(r))}(this.attributes,e,t)},mount(e,t){const n=!!e.slots&&e.slots.find((({id:e})=>e===this.name)),{parentNode:r}=this.node,i=Nl(e,t);return this.template=n&&Rl(n.html,n.bindings).createDOM(r),this.template&&(sl(this.node),this.template.mount(this.node,this.getTemplateScope(e,i),i),this.template.children=Array.from(this.node.childNodes)),Dl(this.node),ol(this.node),this},update(e,t){if(this.template){const n=Nl(e,t);this.template.update(this.getTemplateScope(e,n),n)}return this},unmount(e,t,n){return this.template&&this.template.unmount(this.getTemplateScope(e,t),null,n),this}};function Dl(e){const t=e&&e.firstChild;t&&(ll(t,e),Dl(e))}function Ll(e){return e.reduce(((e,{bindings:t})=>e.concat(t)),[])}const jl={mount(e){return this.update(e)},update(e,t){const n=this.evaluate(e);return n&&n===this.name?this.tag.update(e):(this.unmount(e,t,!0),this.name=n,this.tag=function(e,t=[],n=[]){return e?e({slots:t,attributes:n}):Rl(function(e){return e.reduce(((e,t)=>e+t.html),"")}(t),[...Ll(t),{expressions:n.map((e=>({type:l,...e})))}])}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,e)),this},unmount(e,t,n){return this.tag&&this.tag.unmount(n),this}},Ml={1:function(e,{evaluate:t,template:n}){const r=document.createTextNode("");return ll(r,e),ol(e),{...vl,node:e,evaluate:t,placeholder:r,template:n.createDOM(e)}},2:function(e,{expressions:t}){return n=t.map((t=>Il(e,t))),["mount","update","unmount"].reduce(((e,t)=>({...e,[t]:e=>n.map((n=>n[t](e)))&&void 0})),{});var n},0:function(e,{evaluate:t,condition:n,itemName:i,indexName:a,getKey:s,template:o}){const l=document.createTextNode(""),c=e.cloneNode();return ll(l,e),ol(e),{...bl,childrenMap:new Map,node:e,root:c,condition:n,evaluate:t,isTemplateTag:r(c),template:o.createDOM(e),getKey:s,indexName:a,itemName:i,placeholder:l}},3:function(e,{evaluate:t,getComponent:n,slots:r,attributes:i}){return{...jl,node:e,evaluate:t,slots:r,attributes:i,getComponent:n}},4:function(e,{name:t,attributes:n}){return{...Ol,attributes:n,node:e,name:t}}};function Fl(e,t){return e.map((e=>e.type===c?{...e,childNodeIndex:e.childNodeIndex+t}:e))}function Bl(e,t,n){const{selector:r,type:i,redundantAttribute:a,expressions:s}=t,o=r?e.querySelector(r):e;a&&o.removeAttribute(a);const l=s||[];return(Ml[i]||Ml[2])(o,{...t,expressions:n&&!r?Fl(l,n):l})}const Vl={createDOM(e){return this.dom=this.dom||function(e,t){return t&&("string"==typeof t?function(e,t){return n(e)?function(e,t){return t.ownerDocument.importNode((new window.DOMParser).parseFromString(`${e}`,"application/xml").documentElement,!0)}(t,e):function(e,t){const n=r(t)?t:document.createElement("template");return n.innerHTML=e,n.content}(t,e)}(e,t):t)}(e,this.html)||document.createDocumentFragment(),this},mount(e,t,i,a={}){e||d("Please provide DOM node to mount properly your template"),this.el&&this.unmount(t);const{fragment:s,children:o,avoidDOMInjection:l}=a,{parentNode:c}=o?o[0]:e,u=r(e),p=u?function(e,t,n){const r=Array.from(e.childNodes);return Math.max(r.indexOf(t),r.indexOf(n.head)+1,0)}(c,e,a):null;this.createDOM(e);const h=s||this.dom.cloneNode(!0);return this.el=u?c:e,this.children=u?o||Array.from(h.childNodes):null,!l&&h&&function(e,t){switch(!0){case n(e):!function(e,t){for(;e.firstChild;)t.appendChild(e.firstChild)}(t,e);break;case r(e):e.parentNode.replaceChild(t,e);break;default:e.appendChild(t)}}(e,h),this.bindings=this.bindingsData.map((e=>Bl(this.el,e,p))),this.bindings.forEach((e=>e.mount(t,i))),this.meta=a,this},update(e,t){return this.bindings.forEach((n=>n.update(e,t))),this},unmount(e,t,n=!1){const r=this.el;if(!r)return this;switch(this.bindings.forEach((r=>r.unmount(e,t,n))),!0){case r[el]||null===n:break;case Array.isArray(this.children):!function(e){for(let t=0;te[Fo]=t;function zl(e){return[Ro,qo,Uo].reduce(((t,n)=>(t[n]=e(n),t)),{})}function Wl(e){return Array.isArray(e)?e:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&"number"==typeof e.length?Array.from(e):[e]}function Gl(e,t){return Wl("string"==typeof e?(t||document).querySelectorAll(e):e)}const Jl=Object.freeze({$(e){return Gl(e,this.root)[0]},$$(e){return Gl(e,this.root)}}),$l=Object.freeze({[zo]:cl,[Wo]:cl,[Go]:cl,[Jo]:cl,[$o]:cl,[Ho]:cl,[Xo]:cl}),Hl=e=>1===e.length?e[0]:e;function Xl(e,t,n){const r="object"==typeof t?t:{[t]:n},i=Object.keys(r);return Wl(e).forEach((e=>{i.forEach((t=>e.setAttribute(t,r[t])))})),e}function Kl(e,t){return function(e,t,n){const r="string"==typeof t?[t]:t;return Hl(Wl(e).map((e=>Hl(r.map((t=>e.getAttribute(t)))))))}(e,t)}const Ql=new Map;var Yl;const Zl={CSS_BY_NAME:Ql,add(e,t){return Ql.has(e)||(Ql.set(e,t),this.inject()),this},inject(){return(Yl||(Xl(Yl=Gl("style[riot]")[0]||document.createElement("style"),"type","text/css"),Yl.parentNode||document.head.appendChild(Yl),Yl)).innerHTML=[...Ql.values()].join("\n"),this},remove(e){return Ql.has(e)&&(Ql.delete(e),this.inject()),this}};function ec(e,...t){return(...n)=>(n=[...t,...n]).lengthe?.bindingsData?.[0].expressions?.reduce(((e,{name:t,type:n})=>n===p.ATTRIBUTE?[...e,t]:e),[])??[]));function ac(e,{slots:t,attributes:n,props:r}){return s=function(e){return[...Bo].reduce(((e,t)=>t(e)||e),e)}(hl(a(e)?Object.create(e):e,{mount(i,a={},s){return pl(i,el,!1),this[nl]=s,this[rl]=function(e,t=[]){const n=t.map((t=>Il(e,t))),r={};return Object.assign(r,{expressions:n,...zl((e=>t=>(n.forEach((n=>n[e](t))),r)))})}(i,n).mount(s),pl(this,Ko,Object.freeze({...rc(i,r),...m(this[rl].expressions)})),this[Qo]=nc(this[Qo],a),this[il]=this.template.createDOM(i).clone(),Ul(i,this),e.name&&function(e,t){tc(e)!==t&&Xl(e,Vo,t)}(i,e.name),pl(this,Zo,i),pl(this,Yo,t),this[Wo](this[Ko],this[Qo]),this[il].mount(i,this,s),this[Go](this[Ko],this[Qo]),this},update(e={},t){t&&(this[nl]=t,this[rl].update(t));const n=ic(this[il]),r=al({attributes:Array.from(this[Zo].attributes).filter((({name:e})=>!n.includes(e)))}),{[Vo]:i,...a}={...r,...m(this[rl].expressions)};if(!1!==this[zo](a,this[Ko]))return pl(this,Ko,Object.freeze({...t?null:this[Ko],...a})),this[Qo]=nc(this[Qo],e),this[Jo](this[Ko],this[Qo]),this[tl]||(this[tl]=!0,this[il].update(this,this[nl])),this[$o](this[Ko],this[Qo]),this[tl]=!1,this},unmount(e){return this[Ho](this[Ko],this[Qo]),this[rl].unmount(),this[il].unmount(this,this[nl],null===e?null:!e),this[Xo](this[Ko],this[Qo]),this}})),Object.keys(e).filter((t=>i(e[t]))).forEach((e=>{s[e]=s[e].bind(s)})),s;var s}function sc({css:e,template:t,componentAPI:n,name:r}){return e&&r&&Zl.add(r,e),ec(ac)(hl(dl(n,{...$l,[Ko]:{},[Qo]:{}}),{[Yo]:null,[Zo]:null,...Jl,name:r,css:e,template:t}))}const oc=e=>{const t=function(e={}){return Object.entries(ul(e)).reduce(((e,[t,n])=>{var r;return e[(r=t,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=cc(n),e}),{})}(e.exports?e.exports.components:{});return n=>n===e.name?lc(e):t[n]||Mo.get(n)},lc=f(cc);function cc(e){const{css:t,template:n,exports:r,name:i}=e,a=n?function(e,t,n){return e(Rl,p,jo,n)}(n,0,oc(e)):fl;return({slots:e,attributes:s,props:o})=>{if(r&&r[el])return function(e,{slots:t,attributes:n,props:r,css:i,template:a}){a&&d("Pure components can not have html"),i&&d("Pure components do not have css");const s=dl(e({slots:t,attributes:n,props:r}),ql);return zl((e=>(...t)=>{if(e===Ro){const[e]=t;pl(e,el,!0),Ul(e,s)}return s[e](...t),s}))}(r,{slots:e,attributes:s,props:o,css:t,template:n});const l=ul(r)||{},c=sc({css:t,template:a,componentAPI:l,name:i})({slots:e,attributes:s,props:o});return{mount:(e,t,n)=>c.mount(e,n,t),update:(e,t)=>c.update(t,e),unmount:e=>c.unmount(e)}}}function uc(e,{css:t,template:n,exports:r}){return Mo.has(e)&&d(`The component "${e}" was already registered`),Mo.set(e,cc({name:e,css:t,template:n,exports:r})),Mo}const pc={cssManager:Zl,DOMBindings:{template:Rl,createBinding:Bl,createExpression:Il,bindingTypes:jo,expressionTypes:p},globals:{DOM_COMPONENT_INSTANCE_PROPERTY:Fo,PARENT_KEY_SYMBOL:nl}};async function hc(e,t){const n=await fetch(e);return Oo(await n.text(),{file:e,...t})}const dc="__riot_registry__",fc="undefined"==typeof process;function mc(e,t,n){window[dc]=window[dc]||{},function(e,t){fc?((e,t)=>{const n=document.createElement("script"),r=document.documentElement;n.text=t?`${e}\n//# sourceURL=${t}.js`:e,r.appendChild(n),r.removeChild(n)})(e,t):Function(e)()}(`window.${dc}['${t}'] = ${function(e){return`(function (global){${e}})(this)`.replace("export default","return")}(e)}`,n),uc(t,window[dc][t])}function yc(e){if(!e.innerHTML.trim())return null;const t=No(e.outerHTML);return e.innerHTML="",Function("return "+t)()(Rl,p,jo,(e=>Mo.get(e)))}e.__=pc,e.compile=async function(e){const t=Gl('script[type="riot"]').map((e=>Kl(e,"src")||Kl(e,"data-src")));(await Promise.all(t.map((t=>hc(t,e))))).forEach((({code:e,meta:n},r)=>{const i=t[r],{tagName:a}=n;mc(e,a,i)}))},e.compileFromString=function(e,t){return Oo(e,t)},e.compileFromUrl=hc,e.compiler=Lo,e.component=function(e){const t=function(e){return(t,n,{slots:r,attributes:i,parentScope:a}={})=>function(...e){return e.reduce(((e,t)=>(...n)=>e(t(...n))))}((e=>e.mount(t,a)),(e=>e({props:n,slots:r,attributes:i})),cc)(e)}(e);return(e,n,{slots:r,attributes:i,parentScope:a}={})=>t(e,n,{slots:r||yc(e),attributes:i,parentScope:a})},e.inject=mc,e.install=function(e){return i(e)||d("Plugins must be of type function"),Bo.has(e)&&d("This plugin was already installed"),Bo.add(e),Bo},e.mount=function(e,t,n){return Gl(e).map((e=>function(e,t,n,r){const i=n||tc(e);return Mo.has(i)||d(`The component named "${i}" was never registered`),Mo.get(i)({props:t,slots:r}).mount(e)}(e,t,n,yc(e))))},e.pure=function(e){return i(e)||d('riot.pure accepts only arguments of type "function"'),e[el]=!0,e},e.register=uc,e.uninstall=function(e){return Bo.has(e)||d("This plugin was never installed"),Bo.delete(e),Bo},e.unmount=function(e,t){return Gl(e).map((e=>(e[Fo]&&e[Fo].unmount(t),e)))},e.unregister=function(e){return Mo.has(e)||d(`The component "${e}" was never registered`),Mo.delete(e),Zl.remove(e),Mo},e.version="v9.1.5",e.withTypes=e=>e},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).riot={});