speice.io/assets/js/1359.3fc5336a.js

123 lines
228 KiB
JavaScript

(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["1359"],{92509:function(e,t,n){var r;r=0,function(e,t,n,r){"use strict";class s{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new t.SetArray}}function o(e){return e}function i(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:s,_ignoreList:o}=e;return function(e){let{length:t}=e,n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:o.array}}function a(e,n,r,s,o,i,a,l,u){let{_mappings:h,_sources:p,_sourcesContent:f,_names:d}=n,m=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(h,r),k=function(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][0]);n=r--);return n}(m,s);if(!o){if(e&&function(e,t){return 0===t||1===e[t-1].length}(m,k))return;return c(m,k,[s])}let g=t.put(p,o),_=l?t.put(d,l):-1;if(g===f.length&&(f[g]=null!=u?u:null),!(e&&function(e,t,n,r,s,o){if(0===t)return!1;let i=e[t-1];return 1!==i.length&&n===i[1]&&r===i[2]&&s===i[3]&&o===(5===i.length?i[4]:-1)}(m,k,g,i,a,_)))return c(m,k,l?[s,g,i,a,_]:[s,g,i,a])}function c(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function l(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function u(e,t,n){let{generated:r,source:s,original:o,name:i,content:c}=n;return s?a(e,t,r.line-1,r.column,s,o.line-1,o.column,i,c):a(e,t,r.line-1,r.column,null,null,null,null,null)}e.GenMapping=s,e.addMapping=function(e,t){return u(!1,e,t)},e.addSegment=function(e,t,n,r,s,o,i,c){return a(!1,e,t,n,r,s,o,i,c)},e.allMappings=function(e){let t=[],{_mappings:n,_sources:r,_names:s}=e;for(let e=0;e<n.length;e++){let o=n[e];for(let n=0;n<o.length;n++){let i,a,c,l=o[n],u={line:e+1,column:l[0]};1!==l.length&&(i=r.array[l[1]],a={line:l[2]+1,column:l[3]},5===l.length&&(c=s.array[l[4]])),t.push({generated:u,source:i,original:a,name:c})}}return t},e.fromMap=function(e){let t=new r.TraceMap(e),n=new s({file:t.file,sourceRoot:t.sourceRoot});if(l(n._names,t.names),l(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map(()=>null),n._mappings=r.decodedMappings(t),t.ignoreList)l(n._ignoreList,t.ignoreList);return n},e.maybeAddMapping=(e,t)=>u(!0,e,t),e.maybeAddSegment=(e,t,n,r,s,o,i,c)=>a(!0,e,t,n,r,s,o,i,c),e.setIgnore=function(e,n,r=!0){let{_sources:s,_sourcesContent:o,_ignoreList:i}=e,a=t.put(s,n);a===o.length&&(o[a]=null),r?t.put(i,a):t.remove(i,a)},e.setSourceContent=function(e,n,r){let{_sources:s,_sourcesContent:o}=e;o[t.put(s,n)]=r},e.toDecodedMap=i,e.toEncodedMap=function(e){let t=i(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(22208),n(92297),n(83446))},48435:function(e){var t,n;t=0,n=function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(e){return e.startsWith("/")}function s(e){return/^[.?#]/.test(e)}function o(e){let n=t.exec(e);return i(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function i(e,t,n,r,s,o,i){return{scheme:e,user:t,host:n,port:r,path:s,query:o,hash:i,type:7}}function a(t){var s;if(t.startsWith("//")){let e=o("http:"+t);return e.scheme="",e.type=6,e}if(r(t)){let e=o("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(t.startsWith("file:"))return function(e){let t=n.exec(e),s=t[2];return i("file:","",t[1]||"","",r(s)?s:"/"+s,t[3]||"",t[4]||"")}(t);if(s=t,e.test(s))return o(t);let a=o("http://foo.com/"+t);return a.scheme="",a.host="",a.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,a}function c(e,t){let n=t<=4,r=e.path.split("/"),s=1,o=0,i=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){i=!0;continue}if(i=!1,"."!==t){if(".."===t){o?(i=!0,o--,s--):n&&(r[s++]=t);continue}r[s++]=t,o++}}let a="";for(let e=1;e<s;e++)a+="/"+r[e];(!a||i&&!a.endsWith("/.."))&&(a+="/"),e.path=a}return function(e,t){if(!e&&!t)return"";let n=a(e),r=n.type;if(t&&7!==r){let e=a(t),s=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:var o,i;o=n,c(i=e,i.type),"/"===o.path?o.path=i.path:o.path=function(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}(i.path)+o.path;case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}s>r&&(r=s)}c(n,r);let l=n.query+n.hash;switch(r){case 2:case 3:return l;case 4:{let r=n.path.slice(1);if(!r)return l||".";if(s(t||e)&&!s(r))return"./"+r+l;return r+l}case 5:return n.path+l;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+l}}},e.exports=n()},22208:function(e,t){var n;n=0,function(e){"use strict";function t(e){return e}function n(e,t){return e._indexes[t]}e.SetArray=class e{constructor(){this._indexes={__proto__:null},this.array=[]}},e.get=n,e.pop=function(e){let{array:t,_indexes:n}=e;if(0!==t.length)n[t.pop()]=void 0},e.put=function(e,t){let r=n(e,t);if(void 0!==r)return r;let{array:s,_indexes:o}=e,i=s.push(t);return o[t]=i-1},e.remove=function(e,t){let r=n(e,t);if(void 0===r)return;let{array:s,_indexes:o}=e;for(let e=r+1;e<s.length;e++){let t=s[e];s[e-1]=t,o[t]--}o[t]=void 0,s.pop()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},92297:function(e,t){var n;n=0,function(e){"use strict";let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),r=new Uint8Array(128);for(let e=0;e<t.length;e++){let s=t.charCodeAt(e);n[e]=s,r[s]=e}function s(e,t){let n=0,s=0,o=0;do n|=(31&(o=r[e.next()]))<<s,s+=5;while(32&o);let i=1&n;return n>>>=1,i&&(n=-0x80000000|-n),t+n}function o(e,t,r){let s=t-r;s=s<0?-s<<1|1:s<<1;do{let t=31&s;(s>>>=5)>0&&(t|=32),e.write(n[t])}while(s>0);return t}function i(e,t){return!(e.pos>=t)&&44!==e.peek()}let a="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};class c{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){let{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=a.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+a.decode(e.subarray(0,n)):t}}class l{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return -1===r?t.length:r}}let u=[];function h(e,t,n){do e.write(59);while(++t<n)}function p(e,t){return e[0]-t[0]}e.decode=function(e){let{length:t}=e,n=new l(e),r=[],o=0,a=0,c=0,u=0,h=0;do{let e=n.indexOf(";"),t=[],l=!0,f=0;for(o=0;n.pos<e;){let r;(o=s(n,o))<f&&(l=!1),f=o,i(n,e)?(a=s(n,a),c=s(n,c),u=s(n,u),r=i(n,e)?[o,a,c,u,h=s(n,h)]:[o,a,c,u]):r=[o],t.push(r),n.pos++}!l&&function(e){e.sort(p)}(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r},e.decodeGeneratedRanges=function(e){let{length:t}=e,n=new l(e),r=[],o=[],a=0,c=0,h=0,p=0,f=0,d=0,m=0,k=0;do{let e=n.indexOf(";"),t=0;for(;n.pos<e;n.pos++){let l;if(t=s(n,t),!i(n,e)){let e=o.pop();e[2]=a,e[3]=t;continue}let g=s(n,0),_=1&g,y=2&g,x=4&g,T=null,b=u;if(_){let e=s(n,c);h=s(n,c===e?h:0),c=e,l=[a,t,0,0,e,h]}else l=[a,t,0,0];if(l.isScope=!!x,y){let e=f,t=p===(p=s(n,p));f=s(n,t?f:0),d=s(n,t&&e===f?d:0),T=[p,f,d]}if(l.callsite=T,i(n,e)){b=[];do{let e;m=a,k=t;let r=s(n,0);if(r<-1){e=[[s(n,0)]];for(let t=-1;t>r;t--){let t=m;m=s(n,m),k=s(n,m===t?k:0);let r=s(n,0);e.push([r,m,k])}}else e=[[r]];b.push(e)}while(i(n,e))}l.bindings=b,r.push(l),o.push(l)}a++,n.pos=e+1}while(n.pos<t);return r},e.decodeOriginalScopes=function(e){let{length:t}=e,n=new l(e),r=[],o=[],a=0;for(;n.pos<t;n.pos++){a=s(n,a);let e=s(n,0);if(!i(n,t)){let t=o.pop();t[2]=a,t[3]=e;continue}let c=s(n,0),l=1&s(n,0)?[a,e,0,0,c,s(n,0)]:[a,e,0,0,c],h=u;if(i(n,t)){h=[];do{let e=s(n,0);h.push(e)}while(i(n,t))}l.vars=h,r.push(l),o.push(l)}return r},e.encode=function(e){let t=new c,n=0,r=0,s=0,i=0;for(let a=0;a<e.length;a++){let c=e[a];if(a>0&&t.write(59),0===c.length)continue;let l=0;for(let e=0;e<c.length;e++){let a=c[e];if(e>0&&t.write(44),l=o(t,a[0],l),1!==a.length)n=o(t,a[1],n),r=o(t,a[2],r),s=o(t,a[3],s),4!==a.length&&(i=o(t,a[4],i))}}return t.flush()},e.encodeGeneratedRanges=function(e){if(0===e.length)return"";let t=new c;for(let n=0;n<e.length;)n=function e(t,n,r,s){let i=t[n],{0:a,1:c,2:l,3:u,isScope:p,callsite:f,bindings:d}=i;if(s[0]<a?(h(r,s[0],a),s[0]=a,s[1]=0):n>0&&r.write(44),s[1]=o(r,i[1],s[1]),o(r,(6===i.length?1:0)|(f?2:0)|(p?4:0),0),6===i.length){let{4:e,5:t}=i;e!==s[2]&&(s[3]=0),s[2]=o(r,e,s[2]),s[3]=o(r,t,s[3])}if(f){let{0:e,1:t,2:n}=i.callsite;e!==s[4]?(s[5]=0,s[6]=0):t!==s[5]&&(s[6]=0),s[4]=o(r,e,s[4]),s[5]=o(r,t,s[5]),s[6]=o(r,n,s[6])}if(d)for(let e of d){e.length>1&&o(r,-e.length,0),o(r,e[0][0],0);let t=a,n=c;for(let s=1;s<e.length;s++){let i=e[s];t=o(r,i[1],t),n=o(r,i[2],n),o(r,i[0],0)}}for(n++;n<t.length;){let{0:o,1:i}=t[n];if(o>l||o===l&&i>=u)break;n=e(t,n,r,s)}return s[0]<l?(h(r,s[0],l),s[0]=l,s[1]=0):r.write(44),s[1]=o(r,u,s[1]),n}(e,n,t,[0,0,0,0,0,0,0]);return t.flush()},e.encodeOriginalScopes=function(e){let t=new c;for(let n=0;n<e.length;)n=function e(t,n,r,s){let i=t[n],{0:a,1:c,2:l,3:u,4:h,vars:p}=i;for(let e of(n>0&&r.write(44),s[0]=o(r,a,s[0]),o(r,c,0),o(r,h,0),o(r,6===i.length?1:0,0),6===i.length&&o(r,i[5],0),p))o(r,e,0);for(n++;n<t.length;){let{0:o,1:i}=t[n];if(o>l||o===l&&i>=u)break;n=e(t,n,r,s)}return r.write(44),s[0]=o(r,l,s[0]),o(r,u,0),n}(e,n,t,[0]);return t.flush()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},83446:function(e,t,n){var r;r=0,function(e,t,n){"use strict";function r(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function s(e,t){for(let n=t;n<e.length;n++)if(!function(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}(e[n]))return n;return e.length}function o(e,t){return e[0]-t[0]}let i=!1;function a(e,t,n){for(let r=n+1;r<e.length&&e[r][0]===t;n=r++);return n}function c(e,t,n){for(let r=n-1;r>=0&&e[r][0]===t;n=r--);return n}function l(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function u(e,t,n,r){let{lastKey:s,lastNeedle:o,lastIndex:a}=n,c=0,l=e.length-1;if(r===s){if(t===o)return i=-1!==a&&e[a][0]===t,a;t>=o?c=-1===a?0:a:l=a}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){let s=n+(r-n>>1),o=e[s][0]-t;if(0===o)return i=!0,s;o<0?n=s+1:r=s-1}return i=!1,n-1}(e,t,c,l)}function h(){return{__proto__:null}}function p(e){return"string"==typeof e?JSON.parse(e):e}function f(e,t,n,r,s,o,i,a,c,l,u){let{sections:h}=e;for(let e=0;e<h.length;e++){let{map:m,offset:k}=h[e],_=l,y=u;if(e+1<h.length){let t=h[e+1].offset;(_=Math.min(l,a+t.line))===l?y=Math.min(u,c+t.column):_<l&&(y=c+t.column)}(function(e,t,n,r,s,o,i,a,c,l,u){let h=p(e);if("sections"in h)return f(...arguments);let m=new g(h,t),k=r.length,_=o.length,y=x(m),{resolvedSources:T,sourcesContent:b,ignoreList:I}=m;if(d(r,T),d(o,m.names),b)d(s,b);else for(let e=0;e<T.length;e++)s.push(null);if(I)for(let e=0;e<I.length;e++)i.push(I[e]+k);for(let e=0;e<y.length;e++){let t=a+e;if(t>l)return;let r=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(n,t),s=0===e?c:0,o=y[e];for(let e=0;e<o.length;e++){let n=o[e],i=s+n[0];if(t===l&&i>=u)return;if(1===n.length){r.push([i]);continue}let a=k+n[1],c=n[2],h=n[3];r.push(4===n.length?[i,a,c,h]:[i,a,c,h,_+n[4]])}}})(m,t,n,r,s,o,i,a+k.line,c+k.column,_,y)}}function d(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}let m="`line` must be greater than 0 (lines start at line 1)",k="`column` must be greater than or equal to 0 (columns start at column 0)";class g{constructor(e,t){let n="string"==typeof e;if(!n&&e._decodedMemo)return e;let i=n?JSON.parse(e):e,{version:a,file:c,names:u,sourceRoot:h,sources:p,sourcesContent:f}=i;this.version=a,this.file=c,this.names=u||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=f,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;let d=r(h||"",function(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=p.map(e=>r(e||"",d));let{mappings:m}=i;"string"==typeof m?(this._encoded=m,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){let n=s(e,0);if(n===e.length)return e;!t&&(e=e.slice());for(let r=n;r<e.length;r=s(e,r+1))e[r]=function(e,t){return!t&&(e=e.slice()),e.sort(o)}(e[r],t);return e}(m,n)),this._decodedMemo=l(),this._bySources=void 0,this._bySourceMemos=void 0}}function _(e){return e}function y(e){var n;return null!==(n=e._encoded)&&void 0!==n?n:e._encoded=t.encode(e._decoded)}function x(e){return e._decoded||(e._decoded=t.decode(e._encoded))}function T(e,t){let{sources:n,resolvedSources:r}=e,s=n.indexOf(t);return -1===s&&(s=r.indexOf(t)),s}function b(e,t){let n=new g(I(e,[]),t);return n._decoded=e.mappings,n}function I(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function v(e,t,n,r){return{source:e,line:t,column:n,name:r}}function C(e,t){return{line:e,column:t}}function w(e,t,n,r,s){let o=u(e,r,t,n);return(i?o=(-1===s?a:c)(e,r,o):-1===s&&o++,-1===o||o===e.length)?-1:o}function E(e,t,n,r,s,o){if(--n<0)throw Error(m);if(r<0)throw Error(k);let{sources:p,resolvedSources:f}=e,d=p.indexOf(t);if(-1===d&&(d=f.indexOf(t)),-1===d)return o?[]:C(null,null);let g=(e._bySources||(e._bySources=function(e,t){let n=t.map(h);for(let r=0;r<e.length;r++){let s=e[r];for(let e=0;e<s.length;e++){let o=s[e];if(1===o.length)continue;let i=o[1],c=o[2],l=o[3],h=n[i],p=h[c]||(h[c]=[]),f=t[i],d=a(p,l,u(p,l,f,c));f.lastIndex=++d,function(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}(p,d,[l,r,o[0]])}}return n}(x(e),e._bySourceMemos=p.map(l))))[d][n];if(null==g)return o?[]:C(null,null);let _=e._bySourceMemos[d];if(o)return function(e,t,n,r,s){let o=w(e,t,n,r,1);if(!i&&-1===s&&o++,-1===o||o===e.length)return[];let l=i?r:e[o][0];!i&&(o=c(e,l,o));let u=a(e,l,o),h=[];for(;o<=u;o++){let t=e[o];h.push(C(t[1]+1,t[2]))}return h}(g,_,n,r,s);let y=w(g,_,n,r,s);if(-1===y)return C(null,null);let T=g[y];return C(T[1]+1,T[2])}e.AnyMap=function(e,t){let n=p(e);if(!("sections"in n))return new g(n,t);let r=[],s=[],o=[],i=[],a=[];return f(n,t,r,s,o,i,a,0,0,1/0,1/0),b({version:3,file:n.file,names:i,sources:s,sourcesContent:o,mappings:r,ignoreList:a})},e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=-1,e.TraceMap=g,e.allGeneratedPositionsFor=function(e,t){let{source:n,line:r,column:s,bias:o}=t;return E(e,n,r,s,o||-1,!0)},e.decodedMap=function(e){return I(e,x(e))},e.decodedMappings=x,e.eachMapping=function(e,t){let n=x(e),{names:r,resolvedSources:s}=e;for(let e=0;e<n.length;e++){let o=n[e];for(let n=0;n<o.length;n++){let i=o[n],a=e+1,c=i[0],l=null,u=null,h=null,p=null;1!==i.length&&(l=s[i[1]],u=i[2]+1,h=i[3]),5===i.length&&(p=r[i[4]]),t({generatedLine:a,generatedColumn:c,source:l,originalLine:u,originalColumn:h,name:p})}}},e.encodedMap=function(e){return I(e,y(e))},e.encodedMappings=y,e.generatedPositionFor=function(e,t){let{source:n,line:r,column:s,bias:o}=t;return E(e,n,r,s,o||1,!1)},e.isIgnored=function(e,t){let{ignoreList:n}=e;if(null==n)return!1;let r=T(e,t);return -1!==r&&n.includes(r)},e.originalPositionFor=function(e,t){let{line:n,column:r,bias:s}=t;if(--n<0)throw Error(m);if(r<0)throw Error(k);let o=x(e);if(n>=o.length)return v(null,null,null,null);let i=o[n],a=w(i,e._decodedMemo,n,r,s||1);if(-1===a)return v(null,null,null,null);let c=i[a];if(1===c.length)return v(null,null,null,null);let{names:l,resolvedSources:u}=e;return v(u[c[1]],c[2]+1,c[3],5===c.length?l[c[4]]:null)},e.presortedDecodedMap=b,e.sourceContentFor=function(e,t){let{sourcesContent:n}=e;if(null==n)return null;let r=T(e,t);return -1===r?null:n[r]},e.traceSegment=function(e,t,n){let r=x(e);if(t>=r.length)return null;let s=r[t],o=w(s,e._decodedMemo,t,n,1);return -1===o?null:s[o]}}(t,n(92297),n(48435))},18589:function(e,t){"use strict";(function(){function e(e){this.string=e;for(var t=[0],n=0;n<e.length;)switch(e[n]){case"\n":n+=1,t.push(n);break;case"\r":"\n"===e[n+=1]&&(n+=1),t.push(n);break;default:n++}this.offsets=t}e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;var r=e-n[t];return{line:t,column:r}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t}})()},87594:function(e,t){function n(e){let t,n=[];for(let r of e.split(",").map(e=>e.trim()))if(/^-?\d+$/.test(r))n.push(parseInt(r,10));else if(t=r.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,r,s,o]=t;if(r&&o){r=parseInt(r);let e=r<(o=parseInt(o))?1:-1;("-"===s||".."===s||"\u2025"===s)&&(o+=e);for(let t=r;t!==o;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},41074:function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),s=0,t=0;t<n;t++)for(var o=arguments[t],i=0,a=o.length;i<a;i++,s++)r[s]=o[i];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var s=n(22746),o=n(67180),i=n(22746);Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var a=n(67180);Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return a.VError}});t.createCheckers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Object.assign.apply(Object,r([{},s.basicTypes],e)),o={},i=0;i<e.length;i++){for(var a=e[i],l=0,u=Object.keys(a);l<u.length;l++){var h=u[l];o[h]=new c(n,a[h])}}return o};var c=function(){function e(e,t,n){if(void 0===n&&(n="value"),this.suite=e,this.ttype=t,this._path=n,this.props=new Map,t instanceof s.TIface)for(var r=0,o=t.props;r<o.length;r++){var i=o[r];this.props.set(i.name,i.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return e.prototype.setReportedPath=function(e){this._path=e},e.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},e.prototype.test=function(e){return this.checkerPlain(e,new o.NoopContext)},e.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},e.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},e.prototype.strictTest=function(e){return this.checkerStrict(e,new o.NoopContext)},e.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw Error("Type has no property "+t);return new e(this.suite,n,this._path+"."+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof s.TFunc))throw Error("getArgs() applied to non-function");return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof s.TFunc))throw Error("getResult() applied to non-function");return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(e,t){if(!e(t,new o.NoopContext)){var n=new o.DetailContext;throw e(t,n),n.getError(this._path)}},e.prototype._doValidate=function(e,t){if(e(t,new o.NoopContext))return null;var n=new o.DetailContext;return e(t,n),n.getErrorDetail(this._path)},e.prototype._getMethod=function(e){var t=this.props.get(e);if(!t)throw Error("Type has no property "+e);if(!(t instanceof s.TFunc))throw Error("Property "+e+" is not a method");return t},e}();t.Checker=c},22746:function(e,t,n){"use strict";var r,s=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var o=n(67180),i=function(){};function a(e){return"string"==typeof e?l(e):e}function c(e,t){var n=e[t];if(!n)throw Error("Unknown type "+t);return n}function l(e){return new u(e)}t.TType=i,t.name=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n._failMsg="is not a "+t,n}return s(t,e),t.prototype.getChecker=function(e,n,r){var s=this,o=c(e,this.name),i=o.getChecker(e,n,r);return o instanceof v||o instanceof t?i:function(e,t){return!!i(e,t)||t.fail(null,s._failMsg,0)}},t}(i);t.TName=u;t.lit=function(e){return new h(e)};var h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n.name=JSON.stringify(t),n._failMsg="is not "+n.name,n}return s(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return e===n.value||t.fail(null,n._failMsg,-1)}},t}(i);t.TLiteral=h;t.array=function(e){return new p(a(e))};var p=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return s(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var r=0;r<e.length;r++)if(!n(e[r],t))return t.fail(r,null,1);return!0}},t}(i);t.TArray=p;t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new f(e.map(function(e){return a(e)}))};var f=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return s(t,e),t.prototype.getChecker=function(e,t){var n=this.ttypes.map(function(n){return n.getChecker(e,t)}),r=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var r=0;r<n.length;r++)if(!n[r](e[r],t))return t.fail(r,null,1);return!0};return t?function(e,t){return!!r(e,t)&&(e.length<=n.length||t.fail(n.length,"is extraneous",2))}:r},t}(i);t.TTuple=f;t.union=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new d(e.map(function(e){return a(e)}))};var d=function(e){function t(t){var n=e.call(this)||this;n.ttypes=t;var r=t.map(function(e){return e instanceof u||e instanceof h?e.name:null}).filter(function(e){return e}),s=t.length-r.length;return r.length?(s>0&&r.push(s+" more"),n._failMsg="is none of "+r.join(", ")):n._failMsg="is none of "+s+" types",n}return s(t,e),t.prototype.getChecker=function(e,t){var n=this,r=this.ttypes.map(function(n){return n.getChecker(e,t)});return function(e,t){for(var s=t.unionResolver(),o=0;o<r.length;o++)if(r[o](e,s.createContext()))return!0;return t.resolveUnion(s),t.fail(null,n._failMsg,0)}},t}(i);t.TUnion=d;t.intersection=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new m(e.map(function(e){return a(e)}))};var m=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return s(t,e),t.prototype.getChecker=function(e,t){var n=new Set,r=this.ttypes.map(function(r){return r.getChecker(e,t,n)});return function(e,t){return!!r.every(function(n){return n(e,t)})||t.fail(null,null,0)}},t}(i);t.TIntersection=m;t.enumtype=function(e){return new k(e)};var k=function(e){function t(t){var n=e.call(this)||this;return n.members=t,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(t).map(function(e){return t[e]})),n}return s(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validValues.has(e)||t.fail(null,n._failMsg,0)}},t}(i);t.TEnumType=k;t.enumlit=function(e,t){return new g(e,t)};var g=function(e){function t(t,n){var r=e.call(this)||this;return r.enumName=t,r.prop=n,r._failMsg="is not "+t+"."+n,r}return s(t,e),t.prototype.getChecker=function(e,t){var n=this,r=c(e,this.enumName);if(!(r instanceof k))throw Error("Type "+this.enumName+" used in enumlit is not an enum type");var s=r.members[this.prop];if(!r.members.hasOwnProperty(this.prop))throw Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(e,t){return e===s||t.fail(null,n._failMsg,-1)}},t}(i);t.TEnumLiteral=g;t.iface=function(e,t){var n;return new _(e,Object.keys(n=t).map(function(e){return function(e,t){return t instanceof y?new x(e,t.ttype,!0):new x(e,a(t),!1)}(e,n[e])}))};var _=function(e){function t(t,n){var r=e.call(this)||this;return r.bases=t,r.props=n,r.propSet=new Set(n.map(function(e){return e.name})),r}return s(t,e),t.prototype.getChecker=function(e,t,n){var r=this,s=this.bases.map(function(n){return c(e,n).getChecker(e,t)}),i=this.props.map(function(n){return n.ttype.getChecker(e,t)}),a=new o.NoopContext,l=this.props.map(function(e,t){return!e.isOpt&&!i[t](void 0,a)}),u=function(e,t){if("object"!=typeof e||null===e)return t.fail(null,"is not an object",0);for(var n=0;n<s.length;n++)if(!s[n](e,t))return!1;for(var n=0;n<i.length;n++){var o=r.props[n].name,a=e[o];if(void 0===a){if(l[n])return t.fail(o,"is missing",1)}else if(!i[n](a,t))return t.fail(o,null,1)}return!0};if(!t)return u;var h=this.propSet;return n&&(this.propSet.forEach(function(e){return n.add(e)}),h=n),function(e,t){if(!u(e,t))return!1;for(var n in e)if(!h.has(n))return t.fail(n,"is extraneous",2);return!0}},t}(i);t.TIface=_;t.opt=function(e){return new y(a(e))};var y=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return s(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){return void 0===e||n(e,t)}},t}(i);t.TOptional=y;var x=function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n};t.TProp=x;t.func=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new T(new I(t),a(e))};var T=function(e){function t(t,n){var r=e.call(this)||this;return r.paramList=t,r.result=n,r}return s(t,e),t.prototype.getChecker=function(e,t){return function(e,t){return"function"==typeof e||t.fail(null,"is not a function",0)}},t}(i);t.TFunc=T;t.param=function(e,t,n){return new b(e,a(t),!!n)};var b=function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n};t.TParam=b;var I=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n}return s(t,e),t.prototype.getChecker=function(e,t){var n=this,r=this.params.map(function(n){return n.ttype.getChecker(e,t)}),s=new o.NoopContext,i=this.params.map(function(e,t){return!e.isOpt&&!r[t](void 0,s)}),a=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<r.length;s++){var o=n.params[s];if(void 0===e[s]){if(i[s])return t.fail(o.name,"is missing",1)}else if(!r[s](e[s],t))return t.fail(o.name,null,1)}return!0};return t?function(e,t){return!!a(e,t)&&(e.length<=r.length||t.fail(r.length,"is extraneous",2))}:a},t}(i);t.TParamList=I;var v=function(e){function t(t,n){var r=e.call(this)||this;return r.validator=t,r.message=n,r}return s(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validator(e)||t.fail(null,n.message,0)}},t}(i);t.BasicType=v,t.basicTypes={any:new v(function(e){return!0},"is invalid"),number:new v(function(e){return"number"==typeof e},"is not a number"),object:new v(function(e){return"object"==typeof e&&e},"is not an object"),boolean:new v(function(e){return"boolean"==typeof e},"is not a boolean"),string:new v(function(e){return"string"==typeof e},"is not a string"),symbol:new v(function(e){return"symbol"==typeof e},"is not a symbol"),void:new v(function(e){return null==e},"is not void"),undefined:new v(function(e){return void 0===e},"is not undefined"),null:new v(function(e){return null===e},"is not null"),never:new v(function(e){return!1},"is unexpected"),Date:new v(w("[object Date]"),"is not a Date"),RegExp:new v(w("[object RegExp]"),"is not a RegExp")};var C=Object.prototype.toString;function w(e){return function(t){return"object"==typeof t&&t&&C.call(t)===e}}"undefined"!=typeof Buffer&&(t.basicTypes.Buffer=new v(function(e){return Buffer.isBuffer(e)},"is not a Buffer"));for(var E=function(e){t.basicTypes[e.name]=new v(function(t){return t instanceof e},"is not a "+e.name)},A=0,S=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];A<S.length;A++)E(S[A])},67180:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DetailContext=t.NoopContext=t.VError=void 0;var s=function(e){function t(n,r){var s=e.call(this,r)||this;return s.path=n,Object.setPrototypeOf(s,t.prototype),s}return r(t,e),t}(Error);t.VError=s;var o=function(){function e(){}return e.prototype.fail=function(e,t,n){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(e){},e}();t.NoopContext=o;var i=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},e.prototype.unionResolver=function(){return new a},e.prototype.resolveUnion=function(e){for(var t,n,r=null,s=0,o=e.contexts;s<o.length;s++){var i=o[s];(!r||i._score>=r._score)&&(r=i)}r&&r._score>0&&((t=this._propNames).push.apply(t,r._propNames),(n=this._messages).push.apply(n,r._messages))},e.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];e+="number"==typeof r?"["+r+"]":r?"."+r:"";var o=this._messages[n];o&&t.push(e+" "+o)}return new s(e,t.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];e+="number"==typeof r?"["+r+"]":r?"."+r:"";var s=this._messages[n];s&&t.push({path:e,message:s})}for(var o=null,n=t.length-1;n>=0;n--)o&&(t[n].nested=[o]),o=t[n];return o},e}();t.DetailContext=i;var a=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new i;return this.contexts.push(e),e},e}()},70144:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);n(67294);var s=n(7227);function o(e){let{children:t,fallback:n}=e;return(0,s.Z)()?(0,r.jsx)(r.Fragment,{children:t?.()}):n??null}},66856:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var r=n(84239),s=n(30140);function o(){let{prism:e}=(0,s.L)(),{colorMode:t}=(0,r.I)(),n=e.theme,o=e.darkTheme||n;return"dark"===t?o:n}},67:function(e,t,n){"use strict";n.d(t,{Z:()=>$});var r,s=n("85893"),o=n("67294"),i=n("40653");let a={React:o,...o};var c=n("7227"),l=n("67026"),u=n("66856"),h=n("84681"),p=n("87594"),f=n.n(p);let d=/title=(?<quote>["'])(?<title>.*?)\1/,m=/\{(?<range>[\d,-]+)\}/,k={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},g={...k,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},_=Object.keys(k);function y(e,t){let n=e.map(e=>{let{start:n,end:r}=g[e];return`(?:${n}\\s*(${t.flatMap(e=>[e.line,e.block?.start,e.block?.end].filter(Boolean)).join("|")})\\s*${r})`}).join("|");return RegExp(`^\\s*(?:${n})\\s*$`)}let x="codeBlockContainer_Ckt0";function T(e){let{as:t,...n}=e,r=function(e){let t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach(e=>{let[r,s]=e,o=t[r];o&&"string"==typeof s&&(n[o]=s)}),n}((0,u.p)());return(0,s.jsx)(t,{...n,style:r,className:(0,l.Z)(n.className,x,h.k.common.codeBlock)})}let b={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function I(e){let{children:t,className:n}=e;return(0,s.jsx)(T,{as:"pre",tabIndex:0,className:(0,l.Z)(b.codeBlockStandalone,"thin-scrollbar",n),children:(0,s.jsx)("code",{className:b.codeBlockLines,children:t})})}var v=n("30140"),C=n("85346");let w={attributes:!0,characterData:!0,childList:!0,subtree:!0};var E=n("83229");let A={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function S(e){let{line:t,classNames:n,showLineNumbers:r,getLineProps:o,getTokenProps:i}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");let a=o({line:t,className:(0,l.Z)(n,r&&A.codeLine)}),c=t.map((e,t)=>(0,s.jsx)("span",{...i({token:e})},t));return(0,s.jsxs)("span",{...a,children:[r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:A.codeLineNumber}),(0,s.jsx)("span",{className:A.codeLineContent,children:c})]}):c,(0,s.jsx)("br",{})]})}var N=n("96025");function R(e){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function L(e){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}let j={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function O(e){let{code:t,className:n}=e,[r,i]=(0,o.useState)(!1),a=(0,o.useRef)(void 0),c=(0,o.useCallback)(()=>{!function(e){let{target:t=document.body}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);let n=document.createElement("textarea"),r=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";let s=document.getSelection(),o=s.rangeCount>0&&s.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let i=!1;try{i=document.execCommand("copy")}catch{}n.remove(),o&&(s.removeAllRanges(),s.addRange(o)),r&&r.focus()}(t),i(!0),a.current=window.setTimeout(()=>{i(!1)},1e3)},[t]);return(0,o.useEffect)(()=>()=>window.clearTimeout(a.current),[]),(0,s.jsx)("button",{type:"button","aria-label":r?(0,N.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,N.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,N.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,l.Z)("clean-btn",n,j.copyButton,r&&j.copyButtonCopied),onClick:c,children:(0,s.jsxs)("span",{className:j.copyButtonIcons,"aria-hidden":"true",children:[(0,s.jsx)(R,{className:j.copyButtonIcon}),(0,s.jsx)(L,{className:j.copyButtonSuccessIcon})]})})}function D(e){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}let P={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function q(e){let{className:t,onClick:n,isEnabled:r}=e,o=(0,N.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,s.jsx)("button",{type:"button",onClick:n,className:(0,l.Z)("clean-btn",t,r&&P.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,s.jsx)(D,{className:P.wordWrapButtonIcon,"aria-hidden":"true"})})}function F(e){var t,n,r;let{children:i,className:a="",metastring:c,title:h,showLineNumbers:p,language:k}=e,{prism:{defaultLanguage:g,magicComments:x}}=(0,v.L)();let I=(t=k??function(e){let t=e.split(" ").find(e=>e.startsWith("language-"));return t?.replace(/language-/,"")}(a)??g,t?.toLowerCase()),A=(0,u.p)(),N=function(){let[e,t]=(0,o.useState)(!1),[n,r]=(0,o.useState)(!1),s=(0,o.useRef)(null),i=(0,o.useCallback)(()=>{let n=s.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t(e=>!e)},[s,e]),a=(0,o.useCallback)(()=>{let{scrollWidth:e,clientWidth:t}=s.current;r(e>t||s.current.querySelector("code").hasAttribute("style"))},[s]);return!function(e,t){let[n,r]=(0,o.useState)(),s=(0,o.useCallback)(()=>{r(e.current?.closest("[role=tabpanel][hidden]"))},[e,r]);(0,o.useEffect)(()=>{s()},[s]),!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w,r=(0,C.zX)(t),s=(0,C.Ql)(n);(0,o.useEffect)(()=>{let t=new MutationObserver(r);return e&&t.observe(e,s),()=>t.disconnect()},[e,r,s])}(n,e=>{e.forEach(e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),s())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1})}(s,a),(0,o.useEffect)(()=>{a()},[e,a]),(0,o.useEffect)(()=>(window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("resize",a)}),[a]),{codeBlockRef:s,isEnabled:e,isCodeScrollable:n,toggle:i}}();let R=(n=c,(n?.match(d)?.groups.title??"")||h),{lineClassNames:L,code:j}=function(e,t){let n=e.replace(/\n$/,""),{language:r,magicComments:s,metastring:o}=t;if(o&&m.test(o)){let e=o.match(m).groups.range;if(0===s.length)throw Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);let t=s[0].className;return{lineClassNames:Object.fromEntries(f()(e).filter(e=>e>0).map(e=>[e-1,[t]])),code:n}}if(void 0===r)return{lineClassNames:{},code:n};let i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return y(["js","jsBlock"],t);case"jsx":case"tsx":return y(["js","jsBlock","jsx"],t);case"html":return y(["js","jsBlock","html"],t);case"python":case"py":case"bash":return y(["bash"],t);case"markdown":case"md":return y(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return y(["tex"],t);case"lua":case"haskell":case"sql":return y(["lua"],t);case"wasm":return y(["wasm"],t);case"vb":case"vba":case"visual-basic":return y(["vb","rem"],t);case"vbnet":return y(["vbnet","rem"],t);case"batch":return y(["rem"],t);case"basic":return y(["rem","f90"],t);case"fsharp":return y(["js","ml"],t);case"ocaml":case"sml":return y(["ml"],t);case"fortran":return y(["f90"],t);case"cobol":return y(["cobol"],t);default:return y(_,t)}}(r,s),a=n.split("\n"),c=Object.fromEntries(s.map(e=>[e.className,{start:0,range:""}])),l=Object.fromEntries(s.filter(e=>e.line).map(e=>{let{className:t,line:n}=e;return[n,t]})),u=Object.fromEntries(s.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.start,t]})),h=Object.fromEntries(s.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.end,t]}));for(let e=0;e<a.length;){let t=a[e].match(i);if(!t){e+=1;continue}let n=t.slice(1).find(e=>void 0!==e);l[n]?c[l[n]].range+=`${e},`:u[n]?c[u[n]].start=e:h[n]&&(c[h[n]].range+=`${c[h[n]].start}-${e-1},`),a.splice(e,1)}n=a.join("\n");let p={};return Object.entries(c).forEach(e=>{let[t,{range:n}]=e;f()(n).forEach(e=>{p[e]??=[],p[e].push(t)})}),{lineClassNames:p,code:n}}(i,{metastring:c,language:I,magicComments:x});let D=p??(r=c,!!r?.includes("showLineNumbers"));return(0,s.jsxs)(T,{as:"div",className:(0,l.Z)(a,I&&!a.includes(`language-${I}`)&&`language-${I}`),children:[R&&(0,s.jsx)("div",{className:b.codeBlockTitle,children:R}),(0,s.jsxs)("div",{className:b.codeBlockContent,children:[(0,s.jsx)(E.y$,{theme:A,code:j,language:I??"text",children:e=>{let{className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i}=e;return(0,s.jsx)("pre",{tabIndex:0,ref:N.codeBlockRef,className:(0,l.Z)(t,b.codeBlock,"thin-scrollbar"),style:n,children:(0,s.jsx)("code",{className:(0,l.Z)(b.codeBlockLines,D&&b.codeBlockLinesWithNumbering),children:r.map((e,t)=>(0,s.jsx)(S,{line:e,getLineProps:o,getTokenProps:i,classNames:L[t],showLineNumbers:D},t))})})}}),(0,s.jsxs)("div",{className:b.buttonGroup,children:[(N.isEnabled||N.isCodeScrollable)&&(0,s.jsx)(q,{className:b.codeButton,onClick:()=>N.toggle(),isEnabled:N.isEnabled}),(0,s.jsx)(O,{className:b.codeButton,code:j})]})]})]})}let $=(r=function(e){var t;let{children:n,...r}=e,i=(0,c.Z)();let a=(t=n,o.Children.toArray(t).some(e=>(0,o.isValidElement)(e))?t:Array.isArray(t)?t.join(""):t),l="string"==typeof a?F:I;return(0,s.jsx)(l,{...r,children:a},String(i))},function(e){return e.live?(0,s.jsx)(i.Z,{scope:a,...e}):(0,s.jsx)(r,{...e})})},50065:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},a:function(){return i}});var r=n(67294);let s={},o=r.createContext(s);function i(e){let t=r.useContext(o);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(o.Provider,{value:t},e.children)}},34550:function(e,t,n){"use strict";let r,s,o,i,a,c;n.d(t,{nu:()=>rj,uz:()=>rO,IF:()=>rD,i5:()=>rP});var l,u,h,p,f,d,m,k,g=n("83229"),_=n("67294"),y={characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};function x(e){var t=window.getSelection();t.empty(),t.addRange(e)}function T(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&"KeyZ"===e.code}function b(e){e=[e.firstChild];for(var t,n="";t=e.pop();)t.nodeType===Node.TEXT_NODE?n+=t.textContent:t.nodeType===Node.ELEMENT_NODE&&"BR"===t.nodeName&&(n+="\n"),t.nextSibling&&e.push(t.nextSibling),t.firstChild&&e.push(t.firstChild);return"\n"!==n[n.length-1]&&(n+="\n"),n}function I(e){var t=window.getSelection().getRangeAt(0),n=t.collapsed?0:t.toString().length,r=document.createRange();return r.setStart(e,0),r.setEnd(t.startContainer,t.startOffset),{position:e=(r=r.toString()).length,extent:n,content:r=(r=r.split("\n"))[t=r.length-1],line:t}}function v(e,t,n){0>=t&&(t=0),(!n||0>n)&&(n=t);var r=document.createRange();e=[e.firstChild];for(var s,o=0,i=t;s=e[e.length-1];){if(s.nodeType===Node.TEXT_NODE){if(o+s.textContent.length>=i){var a=i-o;if(i===t){if(i=r,a<s.textContent.length?i.setStart(s,a):i.setStartAfter(s),n!==t){i=n;continue}break}t=r,a<(n=s).textContent.length?t.setEnd(n,a):t.setEndAfter(n);break}o+=s.textContent.length}else if(s.nodeType===Node.ELEMENT_NODE&&"BR"===s.nodeName){if(o+1>=i){if(i===t){if(a=r,0<s.textContent.length?a.setStart(s,0):a.setStartAfter(s),n!==t){i=n;continue}break}t=r,0<(n=s).textContent.length?t.setEnd(n,0):t.setEndAfter(n);break}o++}e.pop(),s.nextSibling&&e.push(s.nextSibling),s.firstChild&&e.push(s.firstChild)}return r}var C=n("85893");!function(e){e[e.NONE=0]="NONE";let t=1;e[e._abstract=t]="_abstract";let n=t+1;e[e._accessor=n]="_accessor";let r=n+1;e[e._as=r]="_as";let s=r+1;e[e._assert=s]="_assert";let o=s+1;e[e._asserts=o]="_asserts";let i=o+1;e[e._async=i]="_async";let a=i+1;e[e._await=a]="_await";let c=a+1;e[e._checks=c]="_checks";let l=c+1;e[e._constructor=l]="_constructor";let u=l+1;e[e._declare=u]="_declare";let h=u+1;e[e._enum=h]="_enum";let p=h+1;e[e._exports=p]="_exports";let f=p+1;e[e._from=f]="_from";let d=f+1;e[e._get=d]="_get";let m=d+1;e[e._global=m]="_global";let k=m+1;e[e._implements=k]="_implements";let g=k+1;e[e._infer=g]="_infer";let _=g+1;e[e._interface=_]="_interface";let y=_+1;e[e._is=y]="_is";let x=y+1;e[e._keyof=x]="_keyof";let T=x+1;e[e._mixins=T]="_mixins";let b=T+1;e[e._module=b]="_module";let I=b+1;e[e._namespace=I]="_namespace";let v=I+1;e[e._of=v]="_of";let C=v+1;e[e._opaque=C]="_opaque";let w=C+1;e[e._out=w]="_out";let E=w+1;e[e._override=E]="_override";let A=E+1;e[e._private=A]="_private";let S=A+1;e[e._protected=S]="_protected";let N=S+1;e[e._proto=N]="_proto";let R=N+1;e[e._public=R]="_public";let L=R+1;e[e._readonly=L]="_readonly";let j=L+1;e[e._require=j]="_require";let O=j+1;e[e._satisfies=O]="_satisfies";let D=O+1;e[e._set=D]="_set";let P=D+1;e[e._static=P]="_static";let q=P+1;e[e._symbol=q]="_symbol";let F=q+1;e[e._type=F]="_type";let $=F+1;e[e._unique=$]="_unique";let B=$+1;e[e._using=B]="_using"}(h||(h={})),(l=p||(p={}))[l.PRECEDENCE_MASK=15]="PRECEDENCE_MASK",l[l.IS_KEYWORD=16]="IS_KEYWORD",l[l.IS_ASSIGN=32]="IS_ASSIGN",l[l.IS_RIGHT_ASSOCIATIVE=64]="IS_RIGHT_ASSOCIATIVE",l[l.IS_PREFIX=128]="IS_PREFIX",l[l.IS_POSTFIX=256]="IS_POSTFIX",l[l.IS_EXPRESSION_START=512]="IS_EXPRESSION_START",l[l.num=512]="num",l[l.bigint=1536]="bigint",l[l.decimal=2560]="decimal",l[l.regexp=3584]="regexp",l[l.string=4608]="string",l[l.name=5632]="name",l[l.eof=6144]="eof",l[l.bracketL=7680]="bracketL",l[l.bracketR=8192]="bracketR",l[l.braceL=9728]="braceL",l[l.braceBarL=10752]="braceBarL",l[l.braceR=11264]="braceR",l[l.braceBarR=12288]="braceBarR",l[l.parenL=13824]="parenL",l[l.parenR=14336]="parenR",l[l.comma=15360]="comma",l[l.semi=16384]="semi",l[l.colon=17408]="colon",l[l.doubleColon=18432]="doubleColon",l[l.dot=19456]="dot",l[l.question=20480]="question",l[l.questionDot=21504]="questionDot",l[l.arrow=22528]="arrow",l[l.template=23552]="template",l[l.ellipsis=24576]="ellipsis",l[l.backQuote=25600]="backQuote",l[l.dollarBraceL=27136]="dollarBraceL",l[l.at=27648]="at",l[l.hash=29184]="hash",l[l.eq=29728]="eq",l[l.assign=30752]="assign",l[l.preIncDec=32640]="preIncDec",l[l.postIncDec=33664]="postIncDec",l[l.bang=34432]="bang",l[l.tilde=35456]="tilde",l[l.pipeline=35841]="pipeline",l[l.nullishCoalescing=36866]="nullishCoalescing",l[l.logicalOR=37890]="logicalOR",l[l.logicalAND=38915]="logicalAND",l[l.bitwiseOR=39940]="bitwiseOR",l[l.bitwiseXOR=40965]="bitwiseXOR",l[l.bitwiseAND=41990]="bitwiseAND",l[l.equality=43015]="equality",l[l.lessThan=44040]="lessThan",l[l.greaterThan=45064]="greaterThan",l[l.relationalOrEqual=46088]="relationalOrEqual",l[l.bitShiftL=47113]="bitShiftL",l[l.bitShiftR=48137]="bitShiftR",l[l.plus=49802]="plus",l[l.minus=50826]="minus",l[l.modulo=51723]="modulo",l[l.star=52235]="star",l[l.slash=53259]="slash",l[l.exponent=54348]="exponent",l[l.jsxName=55296]="jsxName",l[l.jsxText=56320]="jsxText",l[l.jsxEmptyText=57344]="jsxEmptyText",l[l.jsxTagStart=58880]="jsxTagStart",l[l.jsxTagEnd=59392]="jsxTagEnd",l[l.typeParameterStart=60928]="typeParameterStart",l[l.nonNullAssertion=61440]="nonNullAssertion",l[l._break=62480]="_break",l[l._case=63504]="_case",l[l._catch=64528]="_catch",l[l._continue=65552]="_continue",l[l._debugger=66576]="_debugger",l[l._default=67600]="_default",l[l._do=68624]="_do",l[l._else=69648]="_else",l[l._finally=70672]="_finally",l[l._for=71696]="_for",l[l._function=73232]="_function",l[l._if=73744]="_if",l[l._return=74768]="_return",l[l._switch=75792]="_switch",l[l._throw=77456]="_throw",l[l._try=77840]="_try",l[l._var=78864]="_var",l[l._let=79888]="_let",l[l._const=80912]="_const",l[l._while=81936]="_while",l[l._with=82960]="_with",l[l._new=84496]="_new",l[l._this=85520]="_this",l[l._super=86544]="_super",l[l._class=87568]="_class",l[l._extends=88080]="_extends",l[l._export=89104]="_export",l[l._import=90640]="_import",l[l._yield=91664]="_yield",l[l._null=92688]="_null",l[l._true=93712]="_true",l[l._false=94736]="_false",l[l._in=95256]="_in",l[l._instanceof=96280]="_instanceof",l[l._typeof=97936]="_typeof",l[l._void=98960]="_void",l[l._delete=99984]="_delete",l[l._async=100880]="_async",l[l._get=101904]="_get",l[l._set=102928]="_set",l[l._declare=103952]="_declare",l[l._readonly=104976]="_readonly",l[l._abstract=106e3]="_abstract",l[l._static=107024]="_static",l[l._public=107536]="_public",l[l._private=108560]="_private",l[l._protected=109584]="_protected",l[l._override=110608]="_override",l[l._as=112144]="_as",l[l._enum=113168]="_enum",l[l._type=114192]="_type",l[l._implements=115216]="_implements";class w{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}}class E{constructor(e,t,n,r,s,o,i,a,c,l,u,h,p){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.inDisallowConditionalTypesContext=n,this.tokensLength=r,this.scopesLength=s,this.pos=o,this.type=i,this.contextualKeyword=a,this.start=c,this.end=l,this.isType=u,this.scopeDepth=h,this.error=p}}class A{constructor(){A.prototype.__init.call(this),A.prototype.__init2.call(this),A.prototype.__init3.call(this),A.prototype.__init4.call(this),A.prototype.__init5.call(this),A.prototype.__init6.call(this),A.prototype.__init7.call(this),A.prototype.__init8.call(this),A.prototype.__init9.call(this),A.prototype.__init10.call(this),A.prototype.__init11.call(this),A.prototype.__init12.call(this),A.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=p.eof}__init8(){this.contextualKeyword=h.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new E(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}function S(){return c++}(u=f||(f={}))[u.backSpace=8]="backSpace",u[u.lineFeed=10]="lineFeed",u[u.tab=9]="tab",u[u.carriageReturn=13]="carriageReturn",u[u.shiftOut=14]="shiftOut",u[u.space=32]="space",u[u.exclamationMark=33]="exclamationMark",u[u.quotationMark=34]="quotationMark",u[u.numberSign=35]="numberSign",u[u.dollarSign=36]="dollarSign",u[u.percentSign=37]="percentSign",u[u.ampersand=38]="ampersand",u[u.apostrophe=39]="apostrophe",u[u.leftParenthesis=40]="leftParenthesis",u[u.rightParenthesis=41]="rightParenthesis",u[u.asterisk=42]="asterisk",u[u.plusSign=43]="plusSign",u[u.comma=44]="comma",u[u.dash=45]="dash",u[u.dot=46]="dot",u[u.slash=47]="slash",u[u.digit0=48]="digit0",u[u.digit1=49]="digit1",u[u.digit2=50]="digit2",u[u.digit3=51]="digit3",u[u.digit4=52]="digit4",u[u.digit5=53]="digit5",u[u.digit6=54]="digit6",u[u.digit7=55]="digit7",u[u.digit8=56]="digit8",u[u.digit9=57]="digit9",u[u.colon=58]="colon",u[u.semicolon=59]="semicolon",u[u.lessThan=60]="lessThan",u[u.equalsTo=61]="equalsTo",u[u.greaterThan=62]="greaterThan",u[u.questionMark=63]="questionMark",u[u.atSign=64]="atSign",u[u.uppercaseA=65]="uppercaseA",u[u.uppercaseB=66]="uppercaseB",u[u.uppercaseC=67]="uppercaseC",u[u.uppercaseD=68]="uppercaseD",u[u.uppercaseE=69]="uppercaseE",u[u.uppercaseF=70]="uppercaseF",u[u.uppercaseG=71]="uppercaseG",u[u.uppercaseH=72]="uppercaseH",u[u.uppercaseI=73]="uppercaseI",u[u.uppercaseJ=74]="uppercaseJ",u[u.uppercaseK=75]="uppercaseK",u[u.uppercaseL=76]="uppercaseL",u[u.uppercaseM=77]="uppercaseM",u[u.uppercaseN=78]="uppercaseN",u[u.uppercaseO=79]="uppercaseO",u[u.uppercaseP=80]="uppercaseP",u[u.uppercaseQ=81]="uppercaseQ",u[u.uppercaseR=82]="uppercaseR",u[u.uppercaseS=83]="uppercaseS",u[u.uppercaseT=84]="uppercaseT",u[u.uppercaseU=85]="uppercaseU",u[u.uppercaseV=86]="uppercaseV",u[u.uppercaseW=87]="uppercaseW",u[u.uppercaseX=88]="uppercaseX",u[u.uppercaseY=89]="uppercaseY",u[u.uppercaseZ=90]="uppercaseZ",u[u.leftSquareBracket=91]="leftSquareBracket",u[u.backslash=92]="backslash",u[u.rightSquareBracket=93]="rightSquareBracket",u[u.caret=94]="caret",u[u.underscore=95]="underscore",u[u.graveAccent=96]="graveAccent",u[u.lowercaseA=97]="lowercaseA",u[u.lowercaseB=98]="lowercaseB",u[u.lowercaseC=99]="lowercaseC",u[u.lowercaseD=100]="lowercaseD",u[u.lowercaseE=101]="lowercaseE",u[u.lowercaseF=102]="lowercaseF",u[u.lowercaseG=103]="lowercaseG",u[u.lowercaseH=104]="lowercaseH",u[u.lowercaseI=105]="lowercaseI",u[u.lowercaseJ=106]="lowercaseJ",u[u.lowercaseK=107]="lowercaseK",u[u.lowercaseL=108]="lowercaseL",u[u.lowercaseM=109]="lowercaseM",u[u.lowercaseN=110]="lowercaseN",u[u.lowercaseO=111]="lowercaseO",u[u.lowercaseP=112]="lowercaseP",u[u.lowercaseQ=113]="lowercaseQ",u[u.lowercaseR=114]="lowercaseR",u[u.lowercaseS=115]="lowercaseS",u[u.lowercaseT=116]="lowercaseT",u[u.lowercaseU=117]="lowercaseU",u[u.lowercaseV=118]="lowercaseV",u[u.lowercaseW=119]="lowercaseW",u[u.lowercaseX=120]="lowercaseX",u[u.lowercaseY=121]="lowercaseY",u[u.lowercaseZ=122]="lowercaseZ",u[u.leftCurlyBrace=123]="leftCurlyBrace",u[u.verticalBar=124]="verticalBar",u[u.rightCurlyBrace=125]="rightCurlyBrace",u[u.tilde=126]="tilde",u[u.nonBreakingSpace=160]="nonBreakingSpace",u[u.oghamSpaceMark=5760]="oghamSpaceMark",u[u.lineSeparator=8232]="lineSeparator",u[u.paragraphSeparator=8233]="paragraphSeparator";class N{constructor(e,t){this.line=e,this.column=t}}function R(e){return i.contextualKeyword===e}function L(e){let t=ei();return t.type===p.name&&t.contextualKeyword===e}function j(e){return i.contextualKeyword===e&&et(p.name)}function O(e){!j(e)&&M()}function D(){return er(p.eof)||er(p.braceR)||P()}function P(){let e=i.tokens[i.tokens.length-1],t=e?e.end:0;for(let e=t;e<i.start;e++){let t=a.charCodeAt(e);if(t===f.lineFeed||t===f.carriageReturn||8232===t||8233===t)return!0}return!1}function q(){let e=ea();for(let t=i.end;t<e;t++){let e=a.charCodeAt(t);if(e===f.lineFeed||e===f.carriageReturn||8232===e||8233===e)return!0}return!1}function F(){return et(p.semi)||D()}function $(){!F()&&M('Unexpected token, expected ";"')}function B(e){!et(e)&&M(`Unexpected token, expected "${function(e){switch(e){case p.num:return"num";case p.bigint:return"bigint";case p.decimal:return"decimal";case p.regexp:return"regexp";case p.string:return"string";case p.name:return"name";case p.eof:return"eof";case p.bracketL:return"[";case p.bracketR:return"]";case p.braceL:return"{";case p.braceBarL:return"{|";case p.braceR:return"}";case p.braceBarR:return"|}";case p.parenL:return"(";case p.parenR:return")";case p.comma:return",";case p.semi:return";";case p.colon:return":";case p.doubleColon:return"::";case p.dot:return".";case p.question:return"?";case p.questionDot:return"?.";case p.arrow:return"=>";case p.template:return"template";case p.ellipsis:return"...";case p.backQuote:return"`";case p.dollarBraceL:return"${";case p.at:return"@";case p.hash:return"#";case p.eq:return"=";case p.assign:return"_=";case p.preIncDec:case p.postIncDec:return"++/--";case p.bang:return"!";case p.tilde:return"~";case p.pipeline:return"|>";case p.nullishCoalescing:return"??";case p.logicalOR:return"||";case p.logicalAND:return"&&";case p.bitwiseOR:return"|";case p.bitwiseXOR:return"^";case p.bitwiseAND:return"&";case p.equality:return"==/!=";case p.lessThan:return"<";case p.greaterThan:return">";case p.relationalOrEqual:return"<=/>=";case p.bitShiftL:return"<<";case p.bitShiftR:return">>/>>>";case p.plus:return"+";case p.minus:return"-";case p.modulo:return"%";case p.star:return"*";case p.slash:return"/";case p.exponent:return"**";case p.jsxName:return"jsxName";case p.jsxText:return"jsxText";case p.jsxEmptyText:return"jsxEmptyText";case p.jsxTagStart:return"jsxTagStart";case p.jsxTagEnd:return"jsxTagEnd";case p.typeParameterStart:return"typeParameterStart";case p.nonNullAssertion:return"nonNullAssertion";case p._break:return"break";case p._case:return"case";case p._catch:return"catch";case p._continue:return"continue";case p._debugger:return"debugger";case p._default:return"default";case p._do:return"do";case p._else:return"else";case p._finally:return"finally";case p._for:return"for";case p._function:return"function";case p._if:return"if";case p._return:return"return";case p._switch:return"switch";case p._throw:return"throw";case p._try:return"try";case p._var:return"var";case p._let:return"let";case p._const:return"const";case p._while:return"while";case p._with:return"with";case p._new:return"new";case p._this:return"this";case p._super:return"super";case p._class:return"class";case p._extends:return"extends";case p._export:return"export";case p._import:return"import";case p._yield:return"yield";case p._null:return"null";case p._true:return"true";case p._false:return"false";case p._in:return"in";case p._instanceof:return"instanceof";case p._typeof:return"typeof";case p._void:return"void";case p._delete:return"delete";case p._async:return"async";case p._get:return"get";case p._set:return"set";case p._declare:return"declare";case p._readonly:return"readonly";case p._abstract:return"abstract";case p._static:return"static";case p._public:return"public";case p._private:return"private";case p._protected:return"protected";case p._override:return"override";case p._as:return"as";case p._enum:return"enum";case p._type:return"type";case p._implements:return"implements";default:return""}}(e)}"`)}function M(e="Unexpected token",t=i.start){if(i.error)return;let n=SyntaxError(e);n.pos=t,i.error=n,i.pos=a.length,ef(p.eof)}let K=[9,11,12,f.space,f.nonBreakingSpace,f.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],V=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,U=new Uint8Array(65536);for(let e of K)U[e]=1;let W=new Uint8Array(65536);for(let e=0;e<128;e++)W[e]=!function(e){if(e<48)return 36===e;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return 95===e;if(e<123)return!0;if(e<128)return!1;throw Error("Should not be called with non-ASCII char code.")}(e)?0:1;for(let e=128;e<65536;e++)W[e]=1;for(let e of K)W[e]=0;W[8232]=0,W[8233]=0;let H=W.slice();for(let e=f.digit0;e<=f.digit9;e++)H[e]=0;let X=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1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1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function G(e){let t=e.identifierRole;return t===d.TopLevelDeclaration||t===d.FunctionScopedDeclaration||t===d.BlockScopedDeclaration||t===d.ObjectShorthandTopLevelDeclaration||t===d.ObjectShorthandFunctionScopedDeclaration||t===d.ObjectShorthandBlockScopedDeclaration}!function(e){e[e.Access=0]="Access";let t=1;e[e.ExportAccess=t]="ExportAccess";let n=t+1;e[e.TopLevelDeclaration=n]="TopLevelDeclaration";let r=n+1;e[e.FunctionScopedDeclaration=r]="FunctionScopedDeclaration";let s=r+1;e[e.BlockScopedDeclaration=s]="BlockScopedDeclaration";let o=s+1;e[e.ObjectShorthandTopLevelDeclaration=o]="ObjectShorthandTopLevelDeclaration";let i=o+1;e[e.ObjectShorthandFunctionScopedDeclaration=i]="ObjectShorthandFunctionScopedDeclaration";let a=i+1;e[e.ObjectShorthandBlockScopedDeclaration=a]="ObjectShorthandBlockScopedDeclaration";let c=a+1;e[e.ObjectShorthand=c]="ObjectShorthand";let l=c+1;e[e.ImportDeclaration=l]="ImportDeclaration";let u=l+1;e[e.ObjectKey=u]="ObjectKey";let h=u+1;e[e.ImportAccess=h]="ImportAccess"}(d||(d={})),!function(e){e[e.NoChildren=0]="NoChildren";let t=1;e[e.OneChild=t]="OneChild";let n=t+1;e[e.StaticChildren=n]="StaticChildren";let r=n+1;e[e.KeyAfterPropSpread=r]="KeyAfterPropSpread"}(m||(m={}));function J(e){let t=e.identifierRole;return t===d.TopLevelDeclaration||t===d.ObjectShorthandTopLevelDeclaration||t===d.ImportDeclaration}class z{constructor(){this.type=i.type,this.contextualKeyword=i.contextualKeyword,this.start=i.start,this.end=i.end,this.scopeDepth=i.scopeDepth,this.isType=i.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function Z(){i.tokens.push(new z),eu()}function Q(){i.tokens.push(new z),i.start=i.pos,function(){for(;;){if(i.pos>=a.length){M("Unterminated template");return}let e=a.charCodeAt(i.pos);if(e===f.graveAccent||e===f.dollarSign&&a.charCodeAt(i.pos+1)===f.leftCurlyBrace){if(i.pos===i.start&&er(p.template)){if(e===f.dollarSign){i.pos+=2,ef(p.dollarBraceL);return}++i.pos,ef(p.backQuote);return}ef(p.template);return}e===f.backslash&&i.pos++,i.pos++}}()}function Y(e){for(let t=i.tokens.length-e;t<i.tokens.length;t++)i.tokens[t].isType=!0;let t=i.isType;return i.isType=!0,t}function ee(e){i.isType=e}function et(e){return!!er(e)&&(Z(),!0)}function en(e){let t=i.isType;i.isType=!0,et(e),i.isType=t}function er(e){return i.type===e}function es(){let e=i.snapshot();Z();let t=i.type;return i.restoreFromSnapshot(e),t}class eo{constructor(e,t){this.type=e,this.contextualKeyword=t}}function ei(){let e=i.snapshot();Z();let t=i.type,n=i.contextualKeyword;return i.restoreFromSnapshot(e),new eo(t,n)}function ea(){return ec(i.pos)}function ec(e){return V.lastIndex=e,e+V.exec(a)[0].length}function el(){return a.charCodeAt(ea())}function eu(){if(ep(),i.start=i.pos,i.pos>=a.length){let e=i.tokens;e.length>=2&&e[e.length-1].start>=a.length&&e[e.length-2].start>=a.length&&M("Unexpectedly reached the end of input."),ef(p.eof);return}(function(e){H[e]||e===f.backslash||e===f.atSign&&a.charCodeAt(i.pos+1)===f.atSign?!function(){let e=0,t=0,n=i.pos;for(;n<a.length&&!((t=a.charCodeAt(n))<f.lowercaseA)&&!(t>f.lowercaseZ);){;let r=X[e+(t-f.lowercaseA)+1];if(-1===r)break;e=r,n++}let r=X[e];if(r>-1&&!W[t]){i.pos=n,1&r?ef(r>>>1):ef(p.name,r>>>1);return}for(;n<a.length;){let e=a.charCodeAt(n);if(W[e])n++;else if(e===f.backslash){if(n+=2,a.charCodeAt(n)===f.leftCurlyBrace){for(;n<a.length&&a.charCodeAt(n)!==f.rightCurlyBrace;)n++;n++}}else if(e===f.atSign&&a.charCodeAt(n+1)===f.atSign)n+=2;else break}i.pos=n,ef(p.name)}():ek(e)})(a.charCodeAt(i.pos))}function eh(e){let t=a.charCodeAt(i.pos+=e);if(i.pos<a.length)for(;t!==f.lineFeed&&t!==f.carriageReturn&&t!==f.lineSeparator&&t!==f.paragraphSeparator&&++i.pos<a.length;)t=a.charCodeAt(i.pos)}function ep(){for(;i.pos<a.length;){let e=a.charCodeAt(i.pos);switch(e){case f.carriageReturn:a.charCodeAt(i.pos+1)===f.lineFeed&&++i.pos;case f.lineFeed:case f.lineSeparator:case f.paragraphSeparator:++i.pos;break;case f.slash:switch(a.charCodeAt(i.pos+1)){case f.asterisk:i.pos+=2,!function(){for(;a.charCodeAt(i.pos)!==f.asterisk||a.charCodeAt(i.pos+1)!==f.slash;)if(i.pos++,i.pos>a.length){M("Unterminated comment",i.pos-2);return}i.pos+=2}();break;case f.slash:eh(2);break;default:return}break;default:if(!U[e])return;++i.pos}}}function ef(e,t=h.NONE){i.end=i.pos,i.type=e,i.contextualKeyword=t}function ed(){if(i.isType){eg(p.greaterThan,1);return}let e=a.charCodeAt(i.pos+1);if(e===f.greaterThan){let e=a.charCodeAt(i.pos+2)===f.greaterThan?3:2;if(a.charCodeAt(i.pos+e)===f.equalsTo){eg(p.assign,e+1);return}eg(p.bitShiftR,e);return}e===f.equalsTo?eg(p.relationalOrEqual,2):eg(p.greaterThan,1)}function em(){i.type===p.greaterThan&&(i.pos-=1,ed())}function ek(e){switch(e){case f.numberSign:++i.pos,ef(p.hash);return;case f.dot:!function(){let e=a.charCodeAt(i.pos+1);if(e>=f.digit0&&e<=f.digit9){ey(!0);return}e===f.dot&&a.charCodeAt(i.pos+2)===f.dot?(i.pos+=3,ef(p.ellipsis)):(++i.pos,ef(p.dot))}();return;case f.leftParenthesis:++i.pos,ef(p.parenL);return;case f.rightParenthesis:++i.pos,ef(p.parenR);return;case f.semicolon:++i.pos,ef(p.semi);return;case f.comma:++i.pos,ef(p.comma);return;case f.leftSquareBracket:++i.pos,ef(p.bracketL);return;case f.rightSquareBracket:++i.pos,ef(p.bracketR);return;case f.leftCurlyBrace:o&&a.charCodeAt(i.pos+1)===f.verticalBar?eg(p.braceBarL,2):(++i.pos,ef(p.braceL));return;case f.rightCurlyBrace:++i.pos,ef(p.braceR);return;case f.colon:a.charCodeAt(i.pos+1)===f.colon?eg(p.doubleColon,2):(++i.pos,ef(p.colon));return;case f.questionMark:!function(){let e=a.charCodeAt(i.pos+1),t=a.charCodeAt(i.pos+2);e!==f.questionMark||o&&i.isType?e!==f.dot||t>=f.digit0&&t<=f.digit9?(++i.pos,ef(p.question)):(i.pos+=2,ef(p.questionDot)):t===f.equalsTo?eg(p.assign,3):eg(p.nullishCoalescing,2)}();return;case f.atSign:++i.pos,ef(p.at);return;case f.graveAccent:++i.pos,ef(p.backQuote);return;case f.digit0:{let e=a.charCodeAt(i.pos+1);if(e===f.lowercaseX||e===f.uppercaseX||e===f.lowercaseO||e===f.uppercaseO||e===f.lowercaseB||e===f.uppercaseB){(function(){for(i.pos+=2;;){let e=a.charCodeAt(i.pos);if(e>=f.digit0&&e<=f.digit9||e>=f.lowercaseA&&e<=f.lowercaseF||e>=f.uppercaseA&&e<=f.uppercaseF||e===f.underscore)i.pos++;else break}a.charCodeAt(i.pos)===f.lowercaseN?(++i.pos,ef(p.bigint)):ef(p.num)})();return}}case f.digit1:case f.digit2:case f.digit3:case f.digit4:case f.digit5:case f.digit6:case f.digit7:case f.digit8:case f.digit9:ey(!1);return;case f.quotationMark:case f.apostrophe:(function(e){for(i.pos++;;){if(i.pos>=a.length){M("Unterminated string constant");return}let t=a.charCodeAt(i.pos);if(t===f.backslash)i.pos++;else if(t===e)break;i.pos++}i.pos++,ef(p.string)})(e);return;case f.slash:a.charCodeAt(i.pos+1)===f.equalsTo?eg(p.assign,2):eg(p.slash,1);return;case f.percentSign:case f.asterisk:var t;let n,r,s;n=(t=e)===f.asterisk?p.star:p.modulo,r=1,s=a.charCodeAt(i.pos+1),t===f.asterisk&&s===f.asterisk&&(r++,s=a.charCodeAt(i.pos+2),n=p.exponent),s===f.equalsTo&&a.charCodeAt(i.pos+2)!==f.greaterThan&&(r++,n=p.assign),eg(n,r);return;case f.verticalBar:case f.ampersand:!function(e){let t=a.charCodeAt(i.pos+1);if(t===e){a.charCodeAt(i.pos+2)===f.equalsTo?eg(p.assign,3):eg(e===f.verticalBar?p.logicalOR:p.logicalAND,2);return}if(e===f.verticalBar){if(t===f.greaterThan){eg(p.pipeline,2);return}if(t===f.rightCurlyBrace&&o){eg(p.braceBarR,2);return}}if(t===f.equalsTo){eg(p.assign,2);return}eg(e===f.verticalBar?p.bitwiseOR:p.bitwiseAND,1)}(e);return;case f.caret:a.charCodeAt(i.pos+1)===f.equalsTo?eg(p.assign,2):eg(p.bitwiseXOR,1);return;case f.plusSign:case f.dash:!function(e){let t=a.charCodeAt(i.pos+1);if(t===e){eg(p.preIncDec,2);return}t===f.equalsTo?eg(p.assign,2):e===f.plusSign?eg(p.plus,1):eg(p.minus,1)}(e);return;case f.lessThan:!function(){let e=a.charCodeAt(i.pos+1);if(e===f.lessThan){if(a.charCodeAt(i.pos+2)===f.equalsTo){eg(p.assign,3);return}i.isType?eg(p.lessThan,1):eg(p.bitShiftL,2);return}e===f.equalsTo?eg(p.relationalOrEqual,2):eg(p.lessThan,1)}();return;case f.greaterThan:ed();return;case f.equalsTo:case f.exclamationMark:!function(e){let t=a.charCodeAt(i.pos+1);if(t===f.equalsTo){eg(p.equality,a.charCodeAt(i.pos+2)===f.equalsTo?3:2);return}if(e===f.equalsTo&&t===f.greaterThan){i.pos+=2,ef(p.arrow);return}eg(e===f.equalsTo?p.eq:p.bang,1)}(e);return;case f.tilde:eg(p.tilde,1);return}M(`Unexpected character '${String.fromCharCode(e)}'`,i.pos)}function eg(e,t){i.pos+=t,ef(e)}function e_(){for(;;){let e=a.charCodeAt(i.pos);if(e>=f.digit0&&e<=f.digit9||e===f.underscore)i.pos++;else break}}function ey(e){let t=!1,n=!1;!e&&e_();let r=a.charCodeAt(i.pos);if(r===f.dot&&(++i.pos,e_(),r=a.charCodeAt(i.pos)),(r===f.uppercaseE||r===f.lowercaseE)&&(((r=a.charCodeAt(++i.pos))===f.plusSign||r===f.dash)&&++i.pos,e_(),r=a.charCodeAt(i.pos)),r===f.lowercaseN?(++i.pos,t=!0):r===f.lowercaseM&&(++i.pos,n=!0),t){ef(p.bigint);return}if(n){ef(p.decimal);return}ef(p.num)}function ex(e,t=e.currentIndex()){let n=t+1;if(eT(e,n)){let r=e.identifierNameAtIndex(t);return{isType:!1,leftName:r,rightName:r,endIndex:n}}if(eT(e,++n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(eT(e,++n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(eT(e,++n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw Error(`Unexpected import/export specifier at ${t}`)}function eT(e,t){let n=e.tokens[t];return n.type===p.braceR||n.type===p.comma}let eb=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02C6"],["tilde","\u02DC"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039A"],["Lambda","\u039B"],["Mu","\u039C"],["Nu","\u039D"],["Xi","\u039E"],["Omicron","\u039F"],["Pi","\u03A0"],["Rho","\u03A1"],["Sigma","\u03A3"],["Tau","\u03A4"],["Upsilon","\u03A5"],["Phi","\u03A6"],["Chi","\u03A7"],["Psi","\u03A8"],["Omega","\u03A9"],["alpha","\u03B1"],["beta","\u03B2"],["gamma","\u03B3"],["delta","\u03B4"],["epsilon","\u03B5"],["zeta","\u03B6"],["eta","\u03B7"],["theta","\u03B8"],["iota","\u03B9"],["kappa","\u03BA"],["lambda","\u03BB"],["mu","\u03BC"],["nu","\u03BD"],["xi","\u03BE"],["omicron","\u03BF"],["pi","\u03C0"],["rho","\u03C1"],["sigmaf","\u03C2"],["sigma","\u03C3"],["tau","\u03C4"],["upsilon","\u03C5"],["phi","\u03C6"],["chi","\u03C7"],["psi","\u03C8"],["omega","\u03C9"],["thetasym","\u03D1"],["upsih","\u03D2"],["piv","\u03D6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200C"],["zwj","\u200D"],["lrm","\u200E"],["rlm","\u200F"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201A"],["ldquo","\u201C"],["rdquo","\u201D"],["bdquo","\u201E"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203A"],["oline","\u203E"],["frasl","\u2044"],["euro","\u20AC"],["image","\u2111"],["weierp","\u2118"],["real","\u211C"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21B5"],["lArr","\u21D0"],["uArr","\u21D1"],["rArr","\u21D2"],["dArr","\u21D3"],["hArr","\u21D4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220B"],["prod","\u220F"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221A"],["prop","\u221D"],["infin","\u221E"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222A"],["int","\u222B"],["there4","\u2234"],["sim","\u223C"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22A5"],["sdot","\u22C5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230A"],["rfloor","\u230B"],["lang","\u2329"],["rang","\u232A"],["loz","\u25CA"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function eI(e){let[t,n]=ev(e.jsxPragma||"React.createElement"),[r,s]=ev(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:r,fragmentSuffix:s}}function ev(e){let t=e.indexOf(".");return -1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}class eC{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class ew extends eC{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,n,r,s){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=r,this.options=s,ew.prototype.__init.call(this),ew.prototype.__init2.call(this),ew.prototype.__init3.call(this),ew.prototype.__init4.call(this),ew.prototype.__init5.call(this),this.jsxPragmaInfo=eI(s),this.isAutomaticRuntime="automatic"===s.jsxRuntime,this.jsxImportSource=s.jsxImportSource||"react"}process(){return!!this.tokens.matches1(p.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime){if(this.importProcessor)for(let[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{let{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);let r=Object.entries(n).map(([e,t])=>`${e} as ${t}`).join(", ");if(r){let t=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");e+=`import {${r}} from "${t}";`}}}return e}processJSXTag(){let{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==m.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){let t=this.getLineNumberForIndex(e);return`lineNumber: ${t}`}getLineNumberForIndex(e){let t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)"\n"===t[this.lastIndex]&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){let n=t===m.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let r=null;if(this.tokens.matches1(p.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),r=this.processProps(!0),this.tokens.matches2(p.slash,p.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(p.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t);else throw Error("Expected either /> or > at the end of the tag.");r&&this.tokens.appendCode(`, ${r}`)}for(!this.options.production&&(null===r&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(p.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(p.slash,p.jsxTagEnd));else if(this.tokens.matches1(p.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{let{jsxPragmaInfo:e}=this,t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base;return`${t}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{let{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){let n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(!this.importProcessor)return!this.esmAutomaticImportNameResolutions[e]&&(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e];{let n=this.jsxImportSource+t;return!this.cjsAutomaticModuleNameResolutions[n]&&(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,p.jsxName,p.jsxName)&&!this.tokens.matches2AtIndex(e-1,p.greaterThan,p.jsxName)&&!this.tokens.matches1AtIndex(e,p.braceL)&&!this.tokens.matches1AtIndex(e,p.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,p.slash,p.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){let e=this.tokens.identifierName();eE(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){let t=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;if(!this.tokens.matches1(p.jsxName)&&!this.tokens.matches1(p.braceL)){t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode("}")}processProps(e){let t=null;for(;;){if(this.tokens.matches2(p.jsxName,p.eq)){let n=this.tokens.identifierName();if(e&&"key"===n){null!==t&&this.tokens.appendCode(t.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();let e=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(e);continue}this.processPropName(n),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(p.jsxName)){let e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(": true")}else if(this.tokens.matches1(p.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return t}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(p.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(p.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){let e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),n=eA(t),r=function(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if("\n"===r){if(/\s/.test(e[n+1]))for(t+=" ";n<e.length&&/\s/.test(e[n+1]);)n++;else t+="\n"}else if("&"===r){let{entity:r,newI:s}=eS(e,n+1);t+=r,n=s-1}else t+=r}return JSON.stringify(t)}(t);this.tokens.replaceToken(r+n)}processAutomaticChildrenAndEndProps(e){e===m.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===m.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(p.jsxTagStart,p.slash))return;let e=!1;if(this.tokens.matches1(p.braceL))this.tokens.matches2(p.braceL,p.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(t?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),e=!0);else if(this.tokens.matches1(p.jsxTagStart))this.tokens.appendCode(t?", ":""),this.processJSXTag(),e=!0;else if(this.tokens.matches1(p.jsxText)||this.tokens.matches1(p.jsxEmptyText))e=this.processChildTextElement(t);else throw Error("Unexpected token when processing JSX children.");e&&(t=!0)}}processChildTextElement(e){let t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start,t.end),r=eA(n),s=function(e){let t="",n="",r=!1,s=!1;for(let o=0;o<e.length;o++){let i=e[o];if(" "===i||" "===i||"\r"===i)!r&&(n+=i);else if("\n"===i)n="",r=!0;else{if(s&&r&&(t+=" "),t+=n,n="","&"===i){let{entity:n,newI:r}=eS(e,o+1);o=r-1,t+=n}else t+=i;s=!0,r=!1}}return!r&&(t+=n),JSON.stringify(t)}(n);return'""'===s?(this.tokens.replaceToken(r),!1):(this.tokens.replaceToken(`${e?", ":""}${s}${r}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return!this.filenameVarName&&(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function eE(e){let t=e.charCodeAt(0);return t>=f.lowercaseA&&t<=f.lowercaseZ}function eA(e){let t=0,n=0;for(let r of e)"\n"===r?(t++,n=0):" "===r&&n++;return"\n".repeat(t)+" ".repeat(n)}function eS(e,t){let n,r="",s=0,o=t;if("#"===e[o]){let t,r=10;if("x"===e[++o])for(r=16,t=++o;o<e.length&&function(e){return e>=f.digit0&&e<=f.digit9||e>=f.lowercaseA&&e<=f.lowercaseF||e>=f.uppercaseA&&e<=f.uppercaseF}(e.charCodeAt(o));)o++;else for(t=o;o<e.length&&function(e){return e>=f.digit0&&e<=f.digit9}(e.charCodeAt(o));)o++;if(";"===e[o]){let s=e.slice(t,o);s&&(o++,n=String.fromCodePoint(parseInt(s,r)))}}else for(;o<e.length&&s++<10;){let t=e[o];if(o++,";"===t){n=eb.get(r);break}r+=t}return n?{entity:n,newI:o}:{entity:"&",newI:t}}function eN(e,t){let n=eI(t),r=new Set;for(let t=0;t<e.tokens.length;t++){let s=e.tokens[t];s.type===p.name&&!s.isType&&(s.identifierRole===d.Access||s.identifierRole===d.ObjectShorthand||s.identifierRole===d.ExportAccess)&&!s.shadowsGlobal&&r.add(e.identifierNameForToken(s)),s.type===p.jsxTagStart&&r.add(n.base),s.type===p.jsxTagStart&&t+1<e.tokens.length&&e.tokens[t+1].type===p.jsxTagEnd&&(r.add(n.base),r.add(n.fragmentBase)),s.type===p.jsxName&&s.identifierRole===d.Access&&(!eE(e.identifierNameForToken(s))||e.tokens[t+1].type===p.dot)&&r.add(e.identifierNameForToken(s))}return r}class eR{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,t,n,r,s,o,i){this.nameManager=e,this.tokens=t,this.enableLegacyTypeScriptModuleInterop=n,this.options=r,this.isTypeScriptTransformEnabled=s,this.keepUnusedImports=o,this.helperManager=i,eR.prototype.__init.call(this),eR.prototype.__init2.call(this),eR.prototype.__init3.call(this),eR.prototype.__init4.call(this),eR.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,p._import)&&!this.tokens.matches3AtIndex(e,p._import,p.name,p.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,p._export)&&!this.tokens.matches2AtIndex(e,p._export,p.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){for(let[e,t]of(this.nonTypeIdentifiers=eN(this.tokens,this.options),this.importInfoByPath.entries())){if(!t.hasBareImport&&!t.hasStarExport&&!(t.exportStarNames.length>0)&&!(t.namedExports.length>0))[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:e})=>e)].every(e=>this.shouldAutomaticallyElideImportedName(e))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(let[e,t]of this.importInfoByPath.entries()){let n;let{defaultNames:r,wildcardNames:s,namedImports:o,namedExports:i,exportStarNames:a,hasStarExport:c}=t;if(0===r.length&&0===s.length&&0===o.length&&0===i.length&&0===a.length&&!c){this.importsToReplace.set(e,`require('${e}');`);continue}let l=this.getFreeIdentifierForPath(e);n=this.enableLegacyTypeScriptModuleInterop?l:s.length>0?s[0]:this.getFreeIdentifierForPath(e);let u=`var ${l} = require('${e}');`;if(s.length>0)for(let e of s){let t=this.enableLegacyTypeScriptModuleInterop?l:`${this.helperManager.getHelperName("interopRequireWildcard")}(${l})`;u+=` var ${e} = ${t};`}else a.length>0&&n!==l?u+=` var ${n} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${l});`:r.length>0&&n!==l&&(u+=` var ${n} = ${this.helperManager.getHelperName("interopRequireDefault")}(${l});`);for(let{importedName:e,localName:t}of i)u+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${l}, '${t}', '${e}');`;for(let e of a)u+=` exports.${e} = ${n};`;for(let t of(c&&(u+=` ${this.helperManager.getHelperName("createStarExport")}(${l});`),this.importsToReplace.set(e,u),r))this.identifierReplacements.set(t,`${n}.default`);for(let{importedName:e,localName:t}of o)this.identifierReplacements.set(t,`${l}.${e}`)}}getFreeIdentifierForPath(e){let t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){let t=[],n=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,h._type)||this.tokens.matches1AtIndex(e,p._typeof))&&!this.tokens.matches1AtIndex(e+1,p.comma)&&!this.tokens.matchesContextualAtIndex(e+1,h._from)||this.tokens.matches1AtIndex(e,p.parenL))return;if(this.tokens.matches1AtIndex(e,p.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,p.comma)&&e++),this.tokens.matches1AtIndex(e,p.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,p.braceL)){let n=this.getNamedImports(e+1);for(let s of(e=n.newIndex,n.namedImports))"default"===s.importedName?t.push(s.localName):r.push(s)}if(this.tokens.matchesContextualAtIndex(e,h._from)&&e++,!this.tokens.matches1AtIndex(e,p.string))throw Error("Expected string token at the end of import statement.");let s=this.tokens.stringValueAtIndex(e),o=this.getImportInfo(s);o.defaultNames.push(...t),o.wildcardNames.push(...n),o.namedImports.push(...r),0===t.length&&0===n.length&&0===r.length&&(o.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,p._export,p._var)||this.tokens.matches2AtIndex(e,p._export,p._let)||this.tokens.matches2AtIndex(e,p._export,p._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,p._export,p._function)||this.tokens.matches2AtIndex(e,p._export,p._class)){let t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,p._export,p.name,p._function)){let t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,p._export,p.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,p._export,p.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,p.braceL)||this.tokens.matches1AtIndex(n,p.dollarBraceL)||this.tokens.matches1AtIndex(n,p.bracketL))t++;else if(this.tokens.matches1AtIndex(n,p.braceR)||this.tokens.matches1AtIndex(n,p.bracketR))t--;else if(0!==t||this.tokens.matches1AtIndex(n,p.name)){if(this.tokens.matches1AtIndex(1,p.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw Error("Expected = token with an end index.");n=e-1}else if(G(this.tokens.tokens[n])){let e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}else break}preprocessNamedExportAtIndex(e){e+=2;let{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,this.tokens.matchesContextualAtIndex(e,h._from))e++;else{for(let{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(!this.tokens.matches1AtIndex(e,p.string))throw Error("Expected string token at the end of import statement.");let r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,p._export,p.star,p._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,p.string))throw Error("Expected string token at the end of star export statement.");let n=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(n);null!==t?r.exportStarNames.push(t):r.hasStarExport=!0}getNamedImports(e){let t=[];for(;;){if(this.tokens.matches1AtIndex(e,p.braceR)){e++;break}let n=ex(this.tokens,e);if(e=n.endIndex,!n.isType&&t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,p.comma,p.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,p.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,p.comma))e++;else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:t}}getImportInfo(e){let t=this.importInfoByPath.get(e);if(t)return t;let n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){!this.exportBindingsByLocalName.has(e)&&this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){let t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){let t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map(e=>`exports.${e}`).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var eL=n("92509");let ej={require:`
import {createRequire as CREATE_REQUIRE_NAME} from "module";
const require = CREATE_REQUIRE_NAME(import.meta.url);
`,interopRequireWildcard:`
function interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
return newObj;
}
}
`,interopRequireDefault:`
function interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
`,createNamedExportFrom:`
function createNamedExportFrom(obj, localName, importedName) {
Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
}
`,createStarExport:`
function createStarExport(obj) {
Object.keys(obj)
.filter((key) => key !== "default" && key !== "__esModule")
.forEach((key) => {
if (exports.hasOwnProperty(key)) {
return;
}
Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
});
}
`,nullishCoalesce:`
function nullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return rhsFn();
}
}
`,asyncNullishCoalesce:`
async function asyncNullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return await rhsFn();
}
}
`,optionalChain:`
function optionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,asyncOptionalChain:`
async function asyncOptionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = await fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = await fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,optionalChainDelete:`
function optionalChainDelete(ops) {
const result = OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`,asyncOptionalChainDelete:`
async function asyncOptionalChainDelete(ops) {
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`};class eO{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,eO.prototype.__init.call(this),eO.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t?t:(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";for(let[t,n]of(this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain"),Object.entries(ej))){let r=this.helperNames[t],s=n;"optionalChainDelete"===t?s=s.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===t?s=s.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===t&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),s=s.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(e+=" ",e+=s.replace(t,r).replace(/\s+/g," ").trim())}return e}}function eD(e,t,n){if(!!function(e,t){for(let n of e.tokens)if(n.type===p.name&&!n.isType&&function(e){let t=e.identifierRole;return t===d.FunctionScopedDeclaration||t===d.BlockScopedDeclaration||t===d.ObjectShorthandFunctionScopedDeclaration||t===d.ObjectShorthandBlockScopedDeclaration}(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1}(e,n))(function(e,t,n){let r=[],s=t.length-1;for(let o=e.tokens.length-1;;o--){for(;r.length>0&&r[r.length-1].startTokenIndex===o+1;)r.pop();for(;s>=0&&t[s].endTokenIndex===o+1;)r.push(t[s]),s--;if(o<0)break;let i=e.tokens[o],a=e.identifierNameForToken(i);if(r.length>1&&!i.isType&&i.type===p.name&&n.has(a)){if(function(e){let t=e.identifierRole;return t===d.TopLevelDeclaration||t===d.BlockScopedDeclaration||t===d.ObjectShorthandTopLevelDeclaration||t===d.ObjectShorthandBlockScopedDeclaration}(i))eP(r[r.length-1],e,a);else if(function(e){let t=e.identifierRole;return t===d.FunctionScopedDeclaration||t===d.ObjectShorthandFunctionScopedDeclaration}(i)){let t=r.length-1;for(;t>0&&!r[t].isFunctionScope;)t--;if(t<0)throw Error("Did not find parent function scope.");eP(r[t],e,a)}}}if(r.length>0)throw Error("Expected empty scope stack after processing file.")})(e,t,n)}function eP(e,t,n){for(let r=e.startTokenIndex;r<e.endTokenIndex;r++){let e=t.tokens[r];(e.type===p.name||e.type===p.jsxName)&&t.identifierNameForToken(e)===n&&(e.shadowsGlobal=!0)}}class eq{__init(){this.usedNames=new Set}constructor(e,t){eq.prototype.__init.call(this),this.usedNames=new Set(function(e,t){let n=[];for(let r of t)r.type===p.name&&n.push(e.slice(r.start,r.end));return n}(e,t))}claimFreeName(e){let t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}}var eF=n("41074");let e$=eF.union(eF.lit("jsx"),eF.lit("typescript"),eF.lit("flow"),eF.lit("imports"),eF.lit("react-hot-loader"),eF.lit("jest")),eB=eF.iface([],{compiledFilename:"string"}),eM=eF.iface([],{transforms:eF.array("Transform"),disableESTransforms:eF.opt("boolean"),jsxRuntime:eF.opt(eF.union(eF.lit("classic"),eF.lit("automatic"),eF.lit("preserve"))),production:eF.opt("boolean"),jsxImportSource:eF.opt("string"),jsxPragma:eF.opt("string"),jsxFragmentPragma:eF.opt("string"),keepUnusedImports:eF.opt("boolean"),preserveDynamicImport:eF.opt("boolean"),injectCreateRequireForImportRequire:eF.opt("boolean"),enableLegacyTypeScriptModuleInterop:eF.opt("boolean"),enableLegacyBabel5ModuleInterop:eF.opt("boolean"),sourceMapOptions:eF.opt("SourceMapOptions"),filePath:eF.opt("string")}),{Options:eK}=(0,eF.createCheckers)({Transform:e$,SourceMapOptions:eB,Options:eM});function eV(){Z(),tN(!1)}function eU(e){Z(),eG(e)}function eW(e){t2(),eX(e)}function eH(){t2(),i.tokens[i.tokens.length-1].identifierRole=d.ImportDeclaration}function eX(e){let t;t=0===i.scopeDepth?d.TopLevelDeclaration:e?d.BlockScopedDeclaration:d.FunctionScopedDeclaration,i.tokens[i.tokens.length-1].identifierRole=t}function eG(e){switch(i.type){case p._this:{let e=Y(0);Z(),ee(e);return}case p._yield:case p.name:i.type=p.name,eW(e);return;case p.bracketL:Z(),eJ(p.bracketR,e,!0);return;case p.braceL:tG(!0,e);return;default:M()}}function eJ(e,t,n=!1,r=!1,s=0){let o=!0,a=!1,c=i.tokens.length;for(;!et(e)&&!i.error;)if(o?o=!1:(B(p.comma),i.tokens[i.tokens.length-1].contextId=s,!a&&i.tokens[c].isType&&(i.tokens[i.tokens.length-1].isType=!0,a=!0)),n&&er(p.comma));else if(et(e))break;else if(er(p.ellipsis)){var l;l=t,Z(),eG(l),ez(),et(p.comma),B(e);break}else(function(e,t){e&&e1([h._public,h._protected,h._private,h._readonly,h._override]),eZ(t),ez(),eZ(t,!0)})(r,t)}function ez(){o?function(){let e=Y(0);et(p.question),er(p.colon)&&t4(),ee(e)}():s&&function(){let e=Y(0);et(p.question),ti(),ee(e)}()}function eZ(e,t=!1){if(!t&&eG(e),!et(p.eq))return;let n=i.tokens.length-1;tN(),i.tokens[n].rhsEndIndex=i.tokens.length}function eQ(){return er(p.name)}function eY(){let e=i.snapshot();return Z(),!!(er(p.bracketL)||er(p.braceL)||er(p.star)||er(p.ellipsis)||er(p.hash)||er(p.name)||i.type&p.IS_KEYWORD||er(p.string)||er(p.num)||er(p.bigint)||er(p.decimal))&&!P()||(i.restoreFromSnapshot(e),!1)}function e1(e){for(;null!==e0(e););}function e0(e){if(!er(p.name))return null;let t=i.contextualKeyword;if(-1!==e.indexOf(t)&&eY()){switch(t){case h._readonly:i.tokens[i.tokens.length-1].type=p._readonly;break;case h._abstract:i.tokens[i.tokens.length-1].type=p._abstract;break;case h._static:i.tokens[i.tokens.length-1].type=p._static;break;case h._public:i.tokens[i.tokens.length-1].type=p._public;break;case h._private:i.tokens[i.tokens.length-1].type=p._private;break;case h._protected:i.tokens[i.tokens.length-1].type=p._protected;break;case h._override:i.tokens[i.tokens.length-1].type=p._override;break;case h._declare:i.tokens[i.tokens.length-1].type=p._declare}return t}return null}function e2(){for(t2();et(p.dot);)t2()}function e4(){B(p._import),B(p.parenL),B(p.string),B(p.parenR),et(p.dot)&&e2(),er(p.lessThan)&&tx()}function e3(){er(p.lessThan)&&e8()}function e8(){let e=Y(0);for(er(p.lessThan)||er(p.typeParameterStart)?Z():M();!et(p.greaterThan)&&!i.error;)!function(){et(p._const);let e=et(p._in),t=j(h._out);et(p._const),(e||t)&&!er(p.name)?i.tokens[i.tokens.length-1].type=p.name:t2(),et(p._extends)&&tc(),et(p.eq)&&tc()}(),et(p.comma);ee(e)}function e5(e){let t=e===p.arrow;e3(),B(p.parenL),i.scopeDepth++,function(e){eJ(p.parenR,e)}(!1),i.scopeDepth--,t?to(e):er(e)&&to(e)}function e6(){!et(p.comma)&&$()}function e9(){e5(p.colon),e6()}function e7(){if(!(er(p.bracketL)&&function(){let e=i.snapshot();Z();let t=et(p.name)&&er(p.colon);return i.restoreFromSnapshot(e),t}()))return!1;let e=Y(0);return B(p.bracketL),t2(),ta(),B(p.bracketR),ti(),e6(),ee(e),!0}function te(e){et(p.question),!e&&(er(p.parenL)||er(p.lessThan))?e5(p.colon):ti(),e6()}function tt(){for(B(p.braceL);!et(p.braceR)&&!i.error;)!function(){if(er(p.parenL)||er(p.lessThan)){e9();return}if(er(p._new)){Z(),er(p.parenL)||er(p.lessThan)?e9():te(!1);return}let e=!!e0([h._readonly]);if(!e7())(R(h._get)||R(h._set))&&eY(),tJ(-1),te(e)}()}function tn(e){e===k.TSAbstractConstructorType&&O(h._abstract),(e===k.TSConstructorType||e===k.TSAbstractConstructorType)&&B(p._new);let t=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!1,e5(p.arrow),i.inDisallowConditionalTypesContext=t}!function(e){e[e.TSFunctionType=0]="TSFunctionType";let t=1;e[e.TSConstructorType=t]="TSConstructorType";let n=t+1;e[e.TSAbstractConstructorType=n]="TSAbstractConstructorType"}(k||(k={}));function tr(){if(R(h._keyof)||R(h._unique)||R(h._readonly))Z(),tr();else if(R(h._infer))!function(){if(O(h._infer),t2(),er(p._extends)){let e=i.snapshot();B(p._extends);let t=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!0,tc(),i.inDisallowConditionalTypesContext=t,(i.error||!i.inDisallowConditionalTypesContext&&er(p.question))&&i.restoreFromSnapshot(e)}}();else{let e=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!1,!function(){for(!function(){switch(i.type){case p.name:e2(),!P()&&er(p.lessThan)&&tx();return;case p._void:case p._null:Z();return;case p.string:case p.num:case p.bigint:case p.decimal:case p._true:case p._false:(function(){Z()})();return;case p.minus:Z(),function(){Z()}();return;case p._this:Z(),R(h._is)&&!P()&&(Z(),ta());return;case p._typeof:B(p._typeof),er(p._import)?e4():e2(),!P()&&er(p.lessThan)&&tx();return;case p._import:e4();return;case p.braceL:(function(){let e=i.snapshot(),t=function(){return(Z(),et(p.plus)||et(p.minus))?R(h._readonly):(R(h._readonly)&&Z(),!!er(p.bracketL)&&(Z(),!!eQ()&&(Z(),er(p._in))))}();return i.restoreFromSnapshot(e),t})()?(B(p.braceL),er(p.plus)||er(p.minus)?(Z(),O(h._readonly)):j(h._readonly),B(p.bracketL),t2(),B(p._in),tc(),j(h._as)&&tc(),B(p.bracketR),er(p.plus)||er(p.minus)?(Z(),B(p.question)):et(p.question),function(){et(p.colon)&&tc()}(),$(),B(p.braceR)):tt();return;case p.bracketL:!function(){for(B(p.bracketL);!et(p.bracketR)&&!i.error;)(function(){et(p.ellipsis)?tc():(tc(),et(p.question)),et(p.colon)&&tc()})(),et(p.comma)}();return;case p.parenL:B(p.parenL),tc(),B(p.parenR);return;case p.backQuote:!function(){for(Q(),Q();!er(p.backQuote)&&!i.error;)B(p.dollarBraceL),tc(),Q(),Q();Z()}();return;default:if(i.type&p.IS_KEYWORD){Z(),i.tokens[i.tokens.length-1].type=p.name;return}}M()}();!P()&&et(p.bracketL);)!et(p.bracketR)&&(tc(),B(p.bracketR))}(),i.inDisallowConditionalTypesContext=e}}function ts(){if(et(p.bitwiseAND),tr(),er(p.bitwiseAND))for(;et(p.bitwiseAND);)tr()}function to(e){let t=Y(0);B(e),!function(){let e=i.snapshot();if(R(h._asserts)){if(Z(),j(h._is))return tc(),!0;if(eQ()||er(p._this))return Z(),j(h._is)&&tc(),!0;else i.restoreFromSnapshot(e)}else if(eQ()||er(p._this)){if(Z(),R(h._is)&&!P())return Z(),tc(),!0;i.restoreFromSnapshot(e)}return!1}()&&tc(),ee(t)}function ti(){er(p.colon)&&ta()}function ta(){let e=Y(0);B(p.colon),tc(),ee(e)}function tc(){if(tl(),i.inDisallowConditionalTypesContext||P()||!et(p._extends))return;let e=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!0,tl(),i.inDisallowConditionalTypesContext=e,B(p.question),tc(),B(p.colon),tc()}function tl(){if(er(p.lessThan)||er(p.parenL)&&function(){let e=i.snapshot(),t=function(){return Z(),!!(er(p.parenR)||er(p.ellipsis)||function(){if(er(p.name)||er(p._this))return Z(),!0;if(er(p.braceL)||er(p.bracketL)){let e=1;for(Z();e>0&&!i.error;)er(p.braceL)||er(p.bracketL)?e++:(er(p.braceR)||er(p.bracketR))&&e--,Z();return!0}return!1}()&&(er(p.colon)||er(p.comma)||er(p.question)||er(p.eq)||er(p.parenR)&&(Z(),er(p.arrow))))||!1}();return i.restoreFromSnapshot(e),t}()){tn(k.TSFunctionType);return}if(er(p._new)){tn(k.TSConstructorType);return}if(R(h._abstract)&&es()===p._new){tn(k.TSAbstractConstructorType);return}!function(){if(et(p.bitwiseOR),ts(),er(p.bitwiseOR))for(;et(p.bitwiseOR);)ts()}()}function tu(){for(;!er(p.braceL)&&!i.error;)(function(){e2(),er(p.lessThan)&&tx()})(),et(p.comma)}function th(){for(eW(!1),B(p.braceL);!et(p.braceR)&&!i.error;)!function(){if(er(p.string)?function(){Z()}():t2(),et(p.eq)){let e=i.tokens.length-1;tN(),i.tokens[e].rhsEndIndex=i.tokens.length}}(),et(p.comma)}function tp(){B(p.braceL),nw(p.braceR)}function tf(){eW(!1),et(p.dot)?tf():tp()}function td(){R(h._global)?t2():er(p.string)?tM():M(),er(p.braceL)?tp():$()}function tm(){eH(),B(p.eq),function(){R(h._require)&&es()===p.parenL?function(){O(h._require),B(p.parenL),!er(p.string)&&M(),tV(),B(p.parenR)}():e2()}(),$()}function tk(){return tg(i.contextualKeyword,!0)}function tg(e,t){switch(e){case h._abstract:if(t_(t)&&er(p._class))return i.tokens[i.tokens.length-1].type=p._abstract,nL(!0,!1),!0;break;case h._enum:if(t_(t)&&er(p.name))return i.tokens[i.tokens.length-1].type=p._enum,th(),!0;break;case h._interface:if(t_(t)&&er(p.name)){let e=Y(t?2:1);return eW(!1),e3(),et(p._extends)&&tu(),tt(),ee(e),!0}break;case h._module:if(t_(t)){if(er(p.string)){let e=Y(t?2:1);return td(),ee(e),!0}if(er(p.name)){let e=Y(t?2:1);return tf(),ee(e),!0}}break;case h._namespace:if(t_(t)&&er(p.name)){let e=Y(t?2:1);return tf(),ee(e),!0}break;case h._type:if(t_(t)&&er(p.name)){let e=Y(t?2:1);return eW(!1),e3(),B(p.eq),tc(),$(),ee(e),!0}}return!1}function t_(e){return e?(Z(),!0):!F()}function ty(){i.type===p.bitShiftL&&(i.pos-=1,ef(p.lessThan)),tx()}function tx(){let e=Y(0);for(B(p.lessThan);!er(p.greaterThan)&&!i.error;)tc(),et(p.comma);e?(B(p.greaterThan),ee(e)):(ee(e),em(),B(p.greaterThan),i.tokens[i.tokens.length-1].isType=!0)}function tT(){if(er(p.name))switch(i.contextualKeyword){case h._abstract:case h._declare:case h._enum:case h._interface:case h._module:case h._namespace:case h._type:return!0}return!1}function tb(){tw()}function tI(e){if(tw(),!et(p.colon)){i.tokens[i.tokens.length-1].identifierRole=e;return}tw()}function tv(){let e=i.tokens.length;tI(d.Access);let t=!1;for(;er(p.dot);)t=!0,tw(),tw();if(!t){let t=i.tokens[e],n=a.charCodeAt(t.start);n>=f.lowercaseA&&n<=f.lowercaseZ&&(t.identifierRole=null)}}function tC(){tw(),!function e(){let t=i.tokens.length-1;i.tokens[t].jsxRole=m.NoChildren;let n=0;if(!function(e){if(er(p.jsxTagEnd))return!1;tv(),s&&!function(){if(et(p.jsxTagStart)){i.tokens[i.tokens.length-1].type=p.typeParameterStart;let e=Y(1);for(;!er(p.greaterThan)&&!i.error;)tc(),et(p.comma);tw(),ee(e)}}();let t=!1;for(;!er(p.slash)&&!er(p.jsxTagEnd)&&!i.error;){if(et(p.braceL)){t=!0,B(p.ellipsis),tN(),tw();continue}t&&i.end-i.start==3&&a.charCodeAt(i.start)===f.lowercaseK&&a.charCodeAt(i.start+1)===f.lowercaseE&&a.charCodeAt(i.start+2)===f.lowercaseY&&(i.tokens[e].jsxRole=m.KeyAfterPropSpread),tI(d.ObjectKey),er(p.eq)&&(tw(),!function(){switch(i.type){case p.braceL:Z(),tS(),tw();return;case p.jsxTagStart:tC(),tw();return;case p.string:tw();return;default:M("JSX value should be either an expression or a quoted JSX text")}}())}let n=er(p.slash);return n&&tw(),n}(t))for(tE();;)switch(i.type){case p.jsxTagStart:if(tw(),er(p.slash)){tw(),!function(){if(!er(p.jsxTagEnd))tv()}(),i.tokens[t].jsxRole!==m.KeyAfterPropSpread&&(1===n?i.tokens[t].jsxRole=m.OneChild:n>1&&(i.tokens[t].jsxRole=m.StaticChildren));return}n++,e(),tE();break;case p.jsxText:n++,tE();break;case p.jsxEmptyText:tE();break;case p.braceL:Z(),er(p.ellipsis)?(B(p.ellipsis),tS(),tE(),n+=2):(!er(p.braceR)&&(n++,tS()),tE());break;default:M();return}}()}function tw(){i.tokens.push(new z),ep(),i.start=i.pos;let e=a.charCodeAt(i.pos);if(H[e])!function(){let e;do{if(i.pos>a.length){M("Unexpectedly reached the end of input.");return}e=a.charCodeAt(++i.pos)}while(W[e]||e===f.dash);ef(p.jsxName)}();else if(e===f.quotationMark||e===f.apostrophe)!function(e){for(i.pos++;;){if(i.pos>=a.length){M("Unterminated string constant");return}if(a.charCodeAt(i.pos)===e){i.pos++;break}i.pos++}ef(p.string)}(e);else switch(++i.pos,e){case f.greaterThan:ef(p.jsxTagEnd);break;case f.lessThan:ef(p.jsxTagStart);break;case f.slash:ef(p.slash);break;case f.equalsTo:ef(p.eq);break;case f.leftCurlyBrace:ef(p.braceL);break;case f.dot:ef(p.dot);break;case f.colon:ef(p.colon);break;default:M()}}function tE(){i.tokens.push(new z),i.start=i.pos,!function(){let e=!1,t=!1;for(;;){if(i.pos>=a.length){M("Unterminated JSX contents");return}let n=a.charCodeAt(i.pos);if(n===f.lessThan||n===f.leftCurlyBrace){if(i.pos===i.start){if(n===f.lessThan){i.pos++,ef(p.jsxTagStart);return}ek(n);return}e&&!t?ef(p.jsxEmptyText):ef(p.jsxText);return}n===f.lineFeed?e=!0:n!==f.space&&n!==f.carriageReturn&&n!==f.tab&&(t=!0),i.pos++}}()}class tA{constructor(e){this.stop=e}}function tS(e=!1){if(tN(e),er(p.comma))for(;et(p.comma);)tN(e)}function tN(e=!1,t=!1){if(s){var n,a;return n=e,a=t,r?function(e,t){if(!er(p.lessThan))return tR(e,t);let n=i.snapshot(),r=tR(e,t);return i.error?(i.restoreFromSnapshot(n),i.type=p.typeParameterStart,e8(),!(r=tR(e,t))&&M(),r):r}(n,a):function(e,t){if(!er(p.lessThan))return tR(e,t);let n=i.snapshot();e8();let r=tR(e,t);return(!r&&M(),i.error)?(i.restoreFromSnapshot(n),tR(e,t)):r}(n,a)}if(o)return function(e,t){if(er(p.lessThan)){let n=i.snapshot(),r=tR(e,t);if(!i.error)return r;i.restoreFromSnapshot(n),i.type=p.typeParameterStart;let s=Y(0);if(nr(),ee(s),r=tR(e,t))return!0;M()}return tR(e,t)}(e,t);return tR(e,t)}function tR(e,t){if(er(p._yield))return function(){Z(),!er(p.semi)&&!D()&&(et(p.star),tN())}(),!1;(er(p.parenL)||er(p.name)||er(p._yield))&&(i.potentialArrowAt=i.start);let n=function(e){return!!function(e){let t=i.tokens.length;return!!tj()||(function e(t,n,r){if(s&&(p._in&p.PRECEDENCE_MASK)>n&&!P()&&(j(h._as)||j(h._satisfies))){let s=Y(1);tc(),ee(s),em(),e(t,n,r);return}let o=i.type&p.PRECEDENCE_MASK;if(o>0&&(!r||!er(p._in))&&o>n){let s=i.type;Z(),s===p.nullishCoalescing&&(i.tokens[i.tokens.length-1].nullishStartIndex=t);let a=i.tokens.length;tj(),e(a,s&p.IS_RIGHT_ASSOCIATIVE?o-1:o,r),s===p.nullishCoalescing&&(i.tokens[t].numNullishCoalesceStarts++,i.tokens[i.tokens.length-1].numNullishCoalesceEnds++),e(t,n,r)}}(t,-1,e),!1)}(e)||(function(e){s||o?!function(e){if(er(p.question)){let e=es();if(e===p.colon||e===p.comma||e===p.parenR)return}tL(e)}(e):tL(e)}(e),!1)}(e);return(t&&tH(),i.type&p.IS_ASSIGN)?(Z(),tN(e),!1):n}function tL(e){et(p.question)&&(tN(),B(p.colon),tN(e))}function tj(){if(s&&!r&&et(p.lessThan))return!function(){let e=Y(1);tc(),B(p.greaterThan),ee(e),tj()}(),!1;if(R(h._module)&&el()===f.leftCurlyBrace&&!q())return function(){O(h._module),B(p.braceL),nw(p.braceR)}(),!1;if(i.type&p.IS_PREFIX)return Z(),tj(),!1;if(tO())return!0;for(;i.type&p.IS_POSTFIX&&!D();)i.type===p.preIncDec&&(i.type=p.postIncDec),Z();return!1}function tO(){let e=i.tokens.length;return!!tM()||(tD(e),i.tokens.length>e&&i.tokens[e].isOptionalChainStart&&(i.tokens[i.tokens.length-1].isOptionalChainEnd=!0),!1)}function tD(e,t=!1){o?function(e,t=!1){if(i.tokens[i.tokens.length-1].contextualKeyword===h._async&&er(p.lessThan)){let e=i.snapshot();if(function(){i.scopeDepth++;let e=i.tokens.length;return nR(),!!tW()&&(tZ(e),!0)}()&&!i.error)return;i.restoreFromSnapshot(e)}tP(e,t)}(e,t):tP(e,t)}function tP(e,t=!1){let n=new tA(!1);do(function(e,t,n){s?!function(e,t,n){if(!P()&&et(p.bang)){i.tokens[i.tokens.length-1].type=p.nonNullAssertion;return}if(er(p.lessThan)||er(p.bitShiftL)){let n=i.snapshot();if(!t&&tF()&&function(){let e=i.snapshot();return(e8(),nR(),er(p.colon)&&to(p.colon),B(p.arrow),i.error)?(i.restoreFromSnapshot(e),!1):(tY(!0),!0)}())return;if(ty(),!t&&et(p.parenL)?(i.tokens[i.tokens.length-1].subscriptStartIndex=e,t$()):er(p.backQuote)?tX():(i.type===p.greaterThan||i.type!==p.parenL&&i.type&p.IS_EXPRESSION_START&&!P())&&M(),!i.error)return;i.restoreFromSnapshot(n)}else!t&&er(p.questionDot)&&es()===p.lessThan&&(Z(),i.tokens[e].isOptionalChainStart=!0,i.tokens[i.tokens.length-1].subscriptStartIndex=e,tx(),B(p.parenL),t$());tq(e,t,n)}(e,t,n):o?function(e,t,n){if(er(p.questionDot)&&es()===p.lessThan){if(t){n.stop=!0;return}Z(),ns(),B(p.parenL),t$();return}if(!t&&er(p.lessThan)){let e=i.snapshot();if(ns(),B(p.parenL),t$(),!i.error)return;i.restoreFromSnapshot(e)}tq(e,t,n)}(e,t,n):tq(e,t,n)})(e,t,n);while(!n.stop&&!i.error)}function tq(e,t,n){if(!t&&et(p.doubleColon))tB(),n.stop=!0,tD(e,t);else if(er(p.questionDot)){if(i.tokens[e].isOptionalChainStart=!0,t&&es()===p.parenL){n.stop=!0;return}Z(),i.tokens[i.tokens.length-1].subscriptStartIndex=e,et(p.bracketL)?(tS(),B(p.bracketR)):et(p.parenL)?t$():tK()}else if(et(p.dot))i.tokens[i.tokens.length-1].subscriptStartIndex=e,tK();else if(et(p.bracketL))i.tokens[i.tokens.length-1].subscriptStartIndex=e,tS(),B(p.bracketR);else if(!t&&er(p.parenL)){if(tF()){let t=i.snapshot(),r=i.tokens.length;Z(),i.tokens[i.tokens.length-1].subscriptStartIndex=e;let a=c++;i.tokens[i.tokens.length-1].contextId=a,t$(),i.tokens[i.tokens.length-1].contextId=a,function(){return er(p.colon)||er(p.arrow)}()&&(i.restoreFromSnapshot(t),n.stop=!0,i.scopeDepth++,nR(),function(e){s?er(p.colon)&&ta():o&&function(){if(er(p.colon)){let e=i.noAnonFunctionType;i.noAnonFunctionType=!0,t4(),i.noAnonFunctionType=e}}(),B(p.arrow),tZ(e)}(r))}else{Z(),i.tokens[i.tokens.length-1].subscriptStartIndex=e;let t=c++;i.tokens[i.tokens.length-1].contextId=t,t$(),i.tokens[i.tokens.length-1].contextId=t}}else er(p.backQuote)?tX():n.stop=!0}function tF(){return i.tokens[i.tokens.length-1].contextualKeyword===h._async&&!D()}function t$(){let e=!0;for(;!et(p.parenR)&&!i.error;){if(e)e=!1;else if(B(p.comma),et(p.parenR))break;t0(!1)}}function tB(){let e=i.tokens.length;tM(),tD(e,!0)}function tM(){if(et(p.modulo))return t2(),!1;if(er(p.jsxText)||er(p.jsxEmptyText))return function(){Z()}(),!1;if(er(p.lessThan)&&r)return i.type=p.jsxTagStart,tC(),Z(),!1;let e=i.potentialArrowAt===i.start;switch(i.type){case p.slash:case p.assign:i.type===p.assign&&--i.pos,function(){let e=i.pos,t=!1,n=!1;for(;;){if(i.pos>=a.length){M("Unterminated regular expression",e);return}let r=a.charCodeAt(i.pos);if(t)t=!1;else{if(r===f.leftSquareBracket)n=!0;else if(r===f.rightSquareBracket&&n)n=!1;else if(r===f.slash&&!n)break;t=r===f.backslash}++i.pos}++i.pos,function(){for(;i.pos<a.length;){let e=a.charCodeAt(i.pos);if(W[e])i.pos++;else if(e===f.backslash){if(i.pos+=2,a.charCodeAt(i.pos)===f.leftCurlyBrace){for(;i.pos<a.length&&a.charCodeAt(i.pos)!==f.rightCurlyBrace;)i.pos++;i.pos++}}else break}}(),ef(p.regexp)}();case p._super:case p._this:case p.regexp:case p.num:case p.bigint:case p.decimal:case p.string:case p._null:case p._true:case p._false:return Z(),!1;case p._import:return Z(),er(p.dot)&&(i.tokens[i.tokens.length-1].type=p.name,Z(),t2()),!1;case p.name:{let t=i.tokens.length,n=i.start,r=i.contextualKeyword;if(t2(),r===h._await)return function(){tj()}(),!1;if(r===h._async&&er(p._function)&&!D())return Z(),nN(n,!1),!1;else if(e&&r===h._async&&!D()&&er(p.name))return i.scopeDepth++,eW(!1),B(p.arrow),tZ(t),!0;else if(er(p._do)&&!D())return Z(),nC(),!1;if(e&&!D()&&er(p.arrow))return i.scopeDepth++,eX(!1),B(p.arrow),tZ(t),!0;return i.tokens[i.tokens.length-1].identifierRole=d.Access,!1}case p._do:return Z(),nC(),!1;case p.parenL:return function e(t){let n=i.snapshot(),r=i.tokens.length;B(p.parenL);let s=!0;for(;!er(p.parenR)&&!i.error;){if(s)s=!1;else if(B(p.comma),er(p.parenR))break;if(er(p.ellipsis)){var o;o=!1,Z(),eG(o),tH();break}tN(!1,!0)}if(B(p.parenR),t&&function(){return er(p.colon)||!D()}()&&tW())return i.restoreFromSnapshot(n),i.scopeDepth++,nR(),tW(),tZ(r),!i.error||(i.restoreFromSnapshot(n),e(!1),!1);return!1}(e);case p.bracketL:return Z(),t1(p.bracketR,!0),!1;case p.braceL:return tG(!1,!1),!1;case p._function:return function(){let e=i.start;t2(),et(p.dot)&&t2(),nN(e,!1)}(),!1;case p.at:nT();case p._class:return nL(!1),!1;case p._new:return function(){if(B(p._new),et(p.dot)){t2();return}(function(){tB(),et(p.questionDot)})(),o&&function(){if(er(p.lessThan)){let e=i.snapshot();ns(),i.error&&i.restoreFromSnapshot(e)}}(),et(p.parenL)&&t1(p.parenR)}(),!1;case p.backQuote:return tX(),!1;case p.doubleColon:return Z(),tB(),!1;case p.hash:{let e=el();return H[e]||e===f.backslash?tK():Z(),!1}default:return M(),!1}}function tK(){et(p.hash),t2()}function tV(){Z()}function tU(){B(p.parenL),tS(),B(p.parenR)}function tW(){return s?function(){if(er(p.colon)){let e=i.snapshot();to(p.colon),D()&&M(),!er(p.arrow)&&M(),i.error&&i.restoreFromSnapshot(e)}return et(p.arrow)}():o?function(){if(er(p.colon)){let e=Y(0),t=i.snapshot(),n=i.noAnonFunctionType;i.noAnonFunctionType=!0,t8(),i.noAnonFunctionType=n,D()&&M(),!er(p.arrow)&&M(),i.error&&i.restoreFromSnapshot(t),ee(e)}return et(p.arrow)}():et(p.arrow)}function tH(){(s||o)&&(en(p.question),er(p.colon)&&(s?ta():o&&function(){t4()}()))}function tX(){for(Q(),Q();!er(p.backQuote)&&!i.error;)B(p.dollarBraceL),tS(),Q(),Q();Z()}function tG(e,t){let n=c++,r=!0;for(Z(),i.tokens[i.tokens.length-1].contextId=n;!et(p.braceR)&&!i.error;){if(r)r=!1;else if(B(p.comma),et(p.braceR))break;let a=!1;if(er(p.ellipsis)){let n=i.tokens.length;if(Z(),tN(!1),e&&(i.tokens.length===n+2&&eX(t),et(p.braceR)))break;continue}!e&&(a=et(p.star)),!e&&R(h._async)?(a&&M(),t2(),er(p.colon)||er(p.parenL)||er(p.braceR)||er(p.eq)||er(p.comma)||(er(p.star)&&(Z(),a=!0),tJ(n))):tJ(n),function(e,t,n){s?e3():o&&function(){er(p.lessThan)&&(nr(),!er(p.parenL)&&M())}(),!function(e,t){let n=i.start;if(er(p.parenL))return e&&M(),tz(n,!1),!0;return!!(!e&&(er(p.string)||er(p.num)||er(p.bracketL)||er(p.name)||i.type&p.IS_KEYWORD))&&(tJ(t),tz(n,!1),!0)}(e,n)&&!function(e,t){let n;if(et(p.colon)){e?eZ(t):tN(!1);return}n=e?0===i.scopeDepth?d.ObjectShorthandTopLevelDeclaration:t?d.ObjectShorthandBlockScopedDeclaration:d.ObjectShorthandFunctionScopedDeclaration:d.ObjectShorthand,i.tokens[i.tokens.length-1].identifierRole=n,eZ(t,!0)}(e,t)}(e,t,n)}i.tokens[i.tokens.length-1].contextId=n}function tJ(e){o&&ng(),et(p.bracketL)?(i.tokens[i.tokens.length-1].contextId=e,tN(),B(p.bracketR)):(er(p.num)||er(p.string)||er(p.bigint)||er(p.decimal)?tM():tK(),i.tokens[i.tokens.length-1].identifierRole=d.ObjectKey),i.tokens[i.tokens.length-1].contextId=e}function tz(e,t){let n=c++;i.scopeDepth++;let r=i.tokens.length;nR(t,n),tQ(e,n);let s=i.tokens.length;i.scopes.push(new w(r,s,!0)),i.scopeDepth--}function tZ(e){tY(!0);let t=i.tokens.length;i.scopes.push(new w(e,t,!0)),i.scopeDepth--}function tQ(e,t=0){s?!function(e,t){if(er(p.colon)&&to(p.colon),!er(p.braceL)&&F()){let t=i.tokens.length-1;for(;t>=0&&(i.tokens[t].start>=e||i.tokens[t].type===p._default||i.tokens[t].type===p._export);)i.tokens[t].isType=!0,t--;return}tY(!1,t)}(e,t):o?function(e){er(p.colon)&&t8(),tY(!1,e)}(t):tY(!1,t)}function tY(e,t=0){e&&!er(p.braceL)?tN():nC(!0,t)}function t1(e,t=!1){let n=!0;for(;!et(e)&&!i.error;){if(n)n=!1;else if(B(p.comma),et(e))break;t0(t)}}function t0(e){e&&er(p.comma)||(er(p.ellipsis)?(Z(),tN(!1),tH()):er(p.question)?Z():tN(!1,!0))}function t2(){Z(),i.tokens[i.tokens.length-1].type=p.name}function t4(e){let t=Y(0);B(e||p.colon),nd(),ee(t)}function t3(){B(p.modulo),O(h._checks),et(p.parenL)&&(tS(),B(p.parenR))}function t8(){let e=Y(0);B(p.colon),er(p.modulo)?t3():(nd(),er(p.modulo)&&t3()),ee(e)}function t5(){er(p._class)?(Z(),t6(!0)):er(p._function)?(Z(),t2(),er(p.lessThan)&&nr(),B(p.parenL),nu(),B(p.parenR),t8(),$()):er(p._var)?function(){Z(),nk(),$()}():j(h._module)?et(p.dot)?function(){O(h._exports),nm(),$()}():function(){for(er(p.string)?tM():t2(),B(p.braceL);!er(p.braceR)&&!i.error;)er(p._import)?(Z(),nU()):M();B(p.braceR)}():R(h._type)?function(){Z(),nt()}():R(h._opaque)?function(){Z(),nn(!0)}():R(h._interface)?function(){Z(),t6()}():er(p._export)?function(){B(p._export),et(p._default)?er(p._function)||er(p._class)?t5():(nd(),$()):er(p._var)||er(p._function)||er(p._class)||R(h._opaque)?t5():er(p.star)||er(p.braceL)||R(h._interface)||R(h._type)||R(h._opaque)?n$():M()}():M()}function t6(e=!1){if(function(){t2()}(),er(p.lessThan)&&nr(),et(p._extends))do t9();while(!e&&et(p.comma));if(R(h._mixins)||R(h._implements)){Z();do t9();while(et(p.comma))}na(e,!1,e)}function t9(){nc(!1),er(p.lessThan)&&ns()}function t7(){t6()}function ne(){t2()}function nt(){t2(),er(p.lessThan)&&nr(),t4(p.eq),$()}function nn(e){O(h._type),t2(),er(p.lessThan)&&nr(),er(p.colon)&&t4(p.colon),!e&&t4(p.eq),$()}function nr(){let e=Y(0);er(p.lessThan)||er(p.typeParameterStart)?Z():M();do ng(),nk(),et(p.eq)&&nd(),!er(p.greaterThan)&&B(p.comma);while(!er(p.greaterThan)&&!i.error);B(p.greaterThan),ee(e)}function ns(){let e=Y(0);for(B(p.lessThan);!er(p.greaterThan)&&!i.error;)nd(),!er(p.greaterThan)&&B(p.comma);B(p.greaterThan),ee(e)}function no(){er(p.num)||er(p.string)?tM():t2()}function ni(){for(er(p.lessThan)&&nr(),B(p.parenL);!er(p.parenR)&&!er(p.ellipsis)&&!i.error;)nl(),!er(p.parenR)&&B(p.comma);et(p.ellipsis)&&nl(),B(p.parenR),t4()}function na(e,t,n){let r;for(t&&er(p.braceBarL)?(B(p.braceBarL),r=p.braceBarR):(B(p.braceL),r=p.braceR);!er(r)&&!i.error;){if(n&&R(h._proto)){let t=es();t!==p.colon&&t!==p.question&&(Z(),e=!1)}if(e&&R(h._static)){let e=es();e!==p.colon&&e!==p.question&&Z()}if(ng(),et(p.bracketL))et(p.bracketL)?(no(),B(p.bracketR),B(p.bracketR),er(p.lessThan)||er(p.parenL)?ni():(et(p.question),t4())):(es()===p.colon?(no(),t4()):nd(),B(p.bracketR),t4());else if(er(p.parenL)||er(p.lessThan))ni();else{if(R(h._get)||R(h._set)){let e=es();(e===p.name||e===p.string||e===p.num)&&Z()}(function(){if(er(p.ellipsis)){if(B(p.ellipsis),!et(p.comma)&&et(p.semi),!er(p.braceR))nd()}else no(),er(p.lessThan)||er(p.parenL)?ni():(et(p.question),t4())})()}(function(){!et(p.semi)&&!et(p.comma)&&!er(p.braceR)&&!er(p.braceBarR)&&M()})()}B(r)}function nc(e){for(!e&&t2();et(p.dot);)t2()}function nl(){let e=es();e===p.colon||e===p.question?(t2(),et(p.question),t4()):nd()}function nu(){for(;!er(p.parenR)&&!er(p.ellipsis)&&!i.error;)nl(),!er(p.parenR)&&B(p.comma);et(p.ellipsis)&&nl()}function nh(){let e=!1,t=i.noAnonFunctionType;switch(i.type){case p.name:if(R(h._interface)){!function(){if(O(h._interface),et(p._extends))do t9();while(et(p.comma));na(!1,!1,!1)}();return}t2(),nc(!0),er(p.lessThan)&&ns();return;case p.braceL:na(!1,!1,!1);return;case p.braceBarL:na(!1,!0,!1);return;case p.bracketL:!function(){for(B(p.bracketL);i.pos<a.length&&!er(p.bracketR)&&(nd(),!er(p.bracketR));){;B(p.comma)}B(p.bracketR)}();return;case p.lessThan:nr(),B(p.parenL),nu(),B(p.parenR),B(p.arrow),nd();return;case p.parenL:if(Z(),!er(p.parenR)&&!er(p.ellipsis)){if(er(p.name)){let t=es();e=t!==p.question&&t!==p.colon}else e=!0}if(e){if(i.noAnonFunctionType=!1,nd(),i.noAnonFunctionType=t,i.noAnonFunctionType||!(er(p.comma)||er(p.parenR)&&es()===p.arrow)){B(p.parenR);return}et(p.comma)}nu(),B(p.parenR),B(p.arrow),nd();return;case p.minus:Z(),Z();return;case p.string:case p.num:case p._true:case p._false:case p._null:case p._this:case p._void:case p.star:Z();return;default:if(i.type===p._typeof){B(p._typeof),nh();return}if(i.type&p.IS_KEYWORD){Z(),i.tokens[i.tokens.length-1].type=p.name;return}}M()}function np(){!function e(){et(p.question)?e():!function(){for(nh();!D()&&(er(p.bracketL)||er(p.questionDot));)et(p.questionDot),B(p.bracketL),et(p.bracketR)||(nd(),B(p.bracketR))}()}(),!i.noAnonFunctionType&&et(p.arrow)&&nd()}function nf(){for(et(p.bitwiseAND),np();et(p.bitwiseAND);)np()}function nd(){!function(){for(et(p.bitwiseOR),nf();et(p.bitwiseOR);)nf()}()}function nm(){t4()}function nk(){t2(),er(p.colon)&&t4()}function ng(){(er(p.plus)||er(p.minus))&&(Z(),i.tokens[i.tokens.length-1].isType=!0)}function n_(){O(h._enum),i.tokens[i.tokens.length-1].type=p._enum,t2(),function(){j(h._of)&&Z(),B(p.braceL),function(){for(;!er(p.braceR)&&!i.error&&!et(p.ellipsis);){;(function(){t2(),et(p.eq)&&Z()})(),!er(p.braceR)&&B(p.comma)}}(),B(p.braceR)}()}function ny(e){if(!(o&&function(){if(er(p.name)&&i.contextualKeyword===h._interface){let e=Y(0);return Z(),t6(),ee(e),!0}return!!R(h._enum)&&(n_(),!0)}()))er(p.at)&&nT(),function(e){if(s&&function(){if(i.type===p._const){let e=ei();if(e.type===p.name&&e.contextualKeyword===h._enum)return B(p._const),O(h._enum),i.tokens[i.tokens.length-1].type=p._enum,th(),!0}return!1}())return;let t=i.type;switch(t){case p._break:case p._continue:(function(){Z(),!F()&&(t2(),$())})();return;case p._debugger:(function(){Z(),$()})();return;case p._do:(function(){Z(),ny(!1),B(p._while),tU(),et(p.semi)})();return;case p._for:(function(){i.scopeDepth++;let e=i.tokens.length;(function(){Z();let e=!1;if(R(h._await)&&(e=!0,Z()),B(p.parenL),er(p.semi)){e&&M(),nE();return}let t=nx();if(t||er(p._var)||er(p._let)||er(p._const)||!(!R(h._using)||L(h._of))){if(t&&O(h._await),Z(),nS(!0,i.type!==p._var),er(p._in)||R(h._of)){nA(e);return}nE();return}if(tS(!0),er(p._in)||R(h._of)){nA(e);return}e&&M(),nE()})();let t=i.tokens.length;i.scopes.push(new w(e,t,!1)),i.scopeDepth--})();return;case p._function:if(es()===p.dot)break;!e&&M(),function(){let e=i.start;Z(),nN(e,!0)}();return;case p._class:!e&&M(),nL(!0);return;case p._if:(function(){Z(),tU(),ny(!1),et(p._else)&&ny(!1)})();return;case p._return:(function(){Z(),!F()&&(tS(),$())})();return;case p._switch:(function(){Z(),tU(),i.scopeDepth++;let e=i.tokens.length;for(B(p.braceL);!er(p.braceR)&&!i.error;)if(er(p._case)||er(p._default)){let e=er(p._case);Z(),e&&tS(),B(p.colon)}else ny(!0);Z();let t=i.tokens.length;i.scopes.push(new w(e,t,!1)),i.scopeDepth--})();return;case p._throw:(function(){Z(),tS(),$()})();return;case p._try:(function(){if(Z(),nC(),er(p._catch)){Z();let e=null;if(er(p.parenL)&&(i.scopeDepth++,e=i.tokens.length,B(p.parenL),eG(!0),s&&ti(),B(p.parenR)),nC(),null!=e){let t=i.tokens.length;i.scopes.push(new w(e,t,!1)),i.scopeDepth--}}et(p._finally)&&nC()})();return;case p._let:case p._const:!e&&M();case p._var:nv(t!==p._var);return;case p._while:(function(){Z(),tU(),ny(!1)})();return;case p.braceL:nC();return;case p.semi:(function(){Z()})();return;case p._export:case p._import:{let e=es();if(e===p.parenL||e===p.dot)break;Z(),t===p._import?nU():n$();return}case p.name:if(i.contextualKeyword===h._async){let e=i.start,t=i.snapshot();if(Z(),er(p._function)&&!D()){B(p._function),nN(e,!0);return}i.restoreFromSnapshot(t)}else if(i.contextualKeyword!==h._using||q()||es()!==p.name){if(nx()){O(h._await),nv(!0);return}}else{nv(!0);return}}let n=i.tokens.length;tS();let r=null;if(i.tokens.length===n+1){let e=i.tokens[i.tokens.length-1];e.type===p.name&&(r=e.contextualKeyword)}if(null==r){$();return}et(p.colon)?function(){ny(!0)}():function(e){if(s)!function(e){switch(e){case h._declare:{let e=i.tokens.length-1;if(function(){if(F())return!1;switch(i.type){case p._function:{let e=Y(1);return Z(),nN(i.start,!0),ee(e),!0}case p._class:{let e=Y(1);return nL(!0,!1),ee(e),!0}case p._const:if(er(p._const)&&L(h._enum)){let e=Y(1);return B(p._const),O(h._enum),i.tokens[i.tokens.length-1].type=p._enum,th(),ee(e),!0}case p._var:case p._let:{let e=Y(1);return nv(i.type!==p._var),ee(e),!0}case p.name:{let e=Y(1),t=i.contextualKeyword,n=!1;return t===h._global?(td(),n=!0):n=tg(t,!0),ee(e),n}default:return!1}}())return i.tokens[e].type=p._declare,!0;break}case h._global:if(er(p.braceL))return tp(),!0;break;default:return tg(e,!1)}return!1}(e)&&$();else o?!function(e){if(e===h._declare){if(er(p._class)||er(p.name)||er(p._function)||er(p._var)||er(p._export)){let e=Y(1);t5(),ee(e)}}else if(er(p.name)){if(e===h._interface){let e=Y(1);t6(),ee(e)}else if(e===h._type){let e=Y(1);nt(),ee(e)}else if(e===h._opaque){let e=Y(1);nn(!1),ee(e)}}$()}(e):$()}(r)}(e)}function nx(){if(!R(h._await))return!1;let e=i.snapshot();return(Z(),!R(h._using)||P())?(i.restoreFromSnapshot(e),!1):(Z(),!er(p.name)||P())?(i.restoreFromSnapshot(e),!1):(i.restoreFromSnapshot(e),!0)}function nT(){for(;er(p.at);)nb()}function nb(){if(Z(),et(p.parenL))tS(),B(p.parenR);else{for(t2();et(p.dot);)t2();(function(){s&&(er(p.lessThan)||er(p.bitShiftL))&&ty(),nI()})()}}function nI(){et(p.parenL)&&t$()}function nv(e){Z(),nS(!1,e),$()}function nC(e=!1,t=0){let n=i.tokens.length;i.scopeDepth++,B(p.braceL),t&&(i.tokens[i.tokens.length-1].contextId=t),nw(p.braceR),t&&(i.tokens[i.tokens.length-1].contextId=t);let r=i.tokens.length;i.scopes.push(new w(n,r,e)),i.scopeDepth--}function nw(e){for(;!et(e)&&!i.error;)ny(!0)}function nE(){B(p.semi),!er(p.semi)&&tS(),B(p.semi),!er(p.parenR)&&tS(),B(p.parenR),ny(!1)}function nA(e){e?j(h._of):Z(),tS(),B(p.parenR),ny(!1)}function nS(e,t){for(;;){if(function(e){eG(e),s?!function(){let e=Y(0);!P()&&et(p.bang),ti(),ee(e)}():o&&er(p.colon)&&t4()}(t),et(p.eq)){let t=i.tokens.length-1;tN(e),i.tokens[t].rhsEndIndex=i.tokens.length}if(!et(p.comma))break}}function nN(e,t,n=!1){er(p.star)&&Z(),t&&!n&&!er(p.name)&&!er(p._yield)&&M();let r=null;er(p.name)&&(!t&&(r=i.tokens.length,i.scopeDepth++),eW(!1));let s=i.tokens.length;i.scopeDepth++,nR(),tQ(e);let o=i.tokens.length;i.scopes.push(new w(s,o,!0)),i.scopeDepth--,null!==r&&(i.scopes.push(new w(r,o,!0)),i.scopeDepth--)}function nR(e=!1,t=0){s?e3():o&&!function(){if(er(p.lessThan)){let e=Y(0);nr(),ee(e)}}(),B(p.parenL),t&&(i.tokens[i.tokens.length-1].contextId=t),eJ(p.parenR,!1,!1,e,t),t&&(i.tokens[i.tokens.length-1].contextId=t)}function nL(e,t=!1){let n=c++;Z(),i.tokens[i.tokens.length-1].contextId=n,i.tokens[i.tokens.length-1].isExpression=!e;let r=null;!e&&(r=i.tokens.length,i.scopeDepth++),function(e,t=!1){if(!(s&&(!e||t)&&R(h._implements)))er(p.name)&&eW(!0),s?e3():o&&er(p.lessThan)&&nr()}(e,t),function(){let e=!1;et(p._extends)?(tO(),e=!0):e=!1,s?!function(e){if(e&&(er(p.lessThan)||er(p.bitShiftL))&&ty(),j(h._implements)){i.tokens[i.tokens.length-1].type=p._implements;let e=Y(1);tu(),ee(e)}}(e):o&&!function(e){if(e&&er(p.lessThan)&&ns(),R(h._implements)){let e=Y(0);Z(),i.tokens[i.tokens.length-1].type=p._implements;do t2(),er(p.lessThan)&&ns();while(et(p.comma));ee(e)}}(e)}();let a=i.tokens.length;if(function(e){for(B(p.braceL);!et(p.braceR)&&!i.error;){if(!et(p.semi)){if(er(p.at)){nb();continue}(function(e,t){s&&e1([h._declare,h._public,h._protected,h._private,h._override]);let n=!1;if(er(p.name)&&i.contextualKeyword===h._static){if(t2(),nO()){nD(e,!1);return}if(nj()){nF();return}if(i.tokens[i.tokens.length-1].type=p._static,n=!0,er(p.braceL)){i.tokens[i.tokens.length-1].contextId=t,nC();return}}(function(e,t,n){if(s&&function(e){let t=i.tokens.length;e1([h._abstract,h._readonly,h._declare,h._static,h._override]);let n=i.tokens.length;if(e7()){let r=e?t-1:t;for(let e=r;e<n;e++)i.tokens[e].isType=!0;return!0}return!1}(t))return;if(et(p.star)){nP(n),nD(e,!1);return}nP(n);let r=!1,o=i.tokens[i.tokens.length-1];o.contextualKeyword===h._constructor&&(r=!0),nq(),nO()?nD(e,r):nj()?nF():o.contextualKeyword!==h._async||F()?o.contextualKeyword!==h._get&&o.contextualKeyword!==h._set||F()&&er(p.star)?o.contextualKeyword!==h._accessor||F()?F()?nF():M():(nP(n),nF()):(o.contextualKeyword===h._get?i.tokens[i.tokens.length-1].type=p._get:i.tokens[i.tokens.length-1].type=p._set,nP(n),nD(e,!1)):(i.tokens[i.tokens.length-1].type=p._async,er(p.star)&&Z(),nP(n),nq(),nD(e,!1))})(e,n,t)})(i.start,e)}}}(n),!i.error){if(i.tokens[a].contextId=n,i.tokens[i.tokens.length-1].contextId=n,null!==r){let e=i.tokens.length;i.scopes.push(new w(r,e,!1)),i.scopeDepth--}}}function nj(){return er(p.eq)||er(p.semi)||er(p.braceR)||er(p.bang)||er(p.colon)}function nO(){return er(p.parenL)||er(p.lessThan)}function nD(e,t){s?e3():o&&er(p.lessThan)&&nr(),tz(e,t)}function nP(e){tJ(e)}function nq(){if(s){let e=Y(0);et(p.question),ee(e)}}function nF(){if(s?(en(p.bang),ti()):o&&er(p.colon)&&t4(),er(p.eq)){let e=i.tokens.length;Z(),tN(),i.tokens[e].rhsEndIndex=i.tokens.length}$()}function n$(){let e=i.tokens.length-1;if(!(s&&function(){if(et(p._import))return R(h._type)&&es()!==p.eq&&O(h._type),tm(),!0;if(et(p.eq))return tS(),$(),!0;if(j(h._as))return O(h._namespace),t2(),$(),!0;else{if(R(h._type)){let e=es();(e===p.braceL||e===p.star)&&Z()}return!1}}()))(function(){return o?er(p.star)||R(h._type)&&es()===p.star:er(p.star)})()?function(){o?!function(){if(j(h._type)){let e=Y(2);nK(),ee(e)}else nK()}():nK()}():function(){if(s&&tT())return!1;if(o&&er(p.name)&&(i.contextualKeyword===h._type||i.contextualKeyword===h._interface||i.contextualKeyword===h._opaque||i.contextualKeyword===h._enum))return!1;if(er(p.name))return i.contextualKeyword!==h._async;if(!er(p._default))return!1;let e=ea(),t=ei(),n=t.type===p.name&&t.contextualKeyword===h._from;if(t.type===p.comma)return!0;if(n){let t=a.charCodeAt(ec(e+4));return t===f.quotationMark||t===f.apostrophe}return!1}()?(t2(),er(p.comma)&&es()===p.star?(B(p.comma),B(p.star),O(h._as),t2()):nB(),nM()):et(p._default)?function(){if(s&&function(){if(R(h._abstract)&&es()===p._class)return i.type=p._abstract,Z(),nL(!0,!0),!0;if(R(h._interface)){let e=Y(2);return tg(h._interface,!0),ee(e),!0}return!1}()||o&&R(h._enum)&&(n_(),1))return;let e=i.start;et(p._function)?nN(e,!0,!0):R(h._async)&&es()===p._function?(j(h._async),et(p._function),nN(e,!0,!0)):er(p._class)?nL(!0,!0):er(p.at)?(nT(),nL(!0,!0)):(tN(),$())}():function(){return s&&tT()||o&&(R(h._type)||R(h._interface)||R(h._opaque)||R(h._enum))||i.type===p._var||i.type===p._const||i.type===p._let||i.type===p._function||i.type===p._class||R(h._async)||er(p.at)}()?function(){s?!function(){let e=j(h._declare);e&&(i.tokens[i.tokens.length-1].type=p._declare);let t=!1;if(er(p.name)){if(e){let e=Y(2);t=tk(),ee(e)}else t=tk()}if(!t){if(e){let e=Y(2);ny(!0),ee(e)}else ny(!0)}}():o?!function(){if(R(h._type)){let e=Y(1);Z(),er(p.braceL)?(nV(),nM()):nt(),ee(e)}else if(R(h._opaque)){let e=Y(1);Z(),nn(!1),ee(e)}else if(R(h._interface)){let e=Y(1);Z(),t6(),ee(e)}else ny(!0)}():ny(!0)}():(nV(),nM()),i.tokens[e].rhsEndIndex=i.tokens.length}function nB(){et(p.comma)&&nV()}function nM(){j(h._from)&&(tM(),nH()),$()}function nK(){B(p.star),R(h._as)?function(){Z(),i.tokens[i.tokens.length-1].type=p._as,t2(),nB(),nM()}():nM()}function nV(){let e=!0;for(B(p.braceL);!et(p.braceR)&&!i.error;){if(e)e=!1;else if(B(p.comma),et(p.braceR))break;(function(){if(s){!function(){if(t2(),er(p.comma)||er(p.braceR)){i.tokens[i.tokens.length-1].identifierRole=d.ExportAccess;return}if(t2(),er(p.comma)||er(p.braceR)){i.tokens[i.tokens.length-1].identifierRole=d.ExportAccess,i.tokens[i.tokens.length-2].isType=!0,i.tokens[i.tokens.length-1].isType=!0;return}if(t2(),er(p.comma)||er(p.braceR)){i.tokens[i.tokens.length-3].identifierRole=d.ExportAccess;return}t2(),i.tokens[i.tokens.length-3].identifierRole=d.ExportAccess,i.tokens[i.tokens.length-4].isType=!0,i.tokens[i.tokens.length-3].isType=!0,i.tokens[i.tokens.length-2].isType=!0,i.tokens[i.tokens.length-1].isType=!0}();return}t2(),i.tokens[i.tokens.length-1].identifierRole=d.ExportAccess,j(h._as)&&t2()})()}}function nU(){if(s&&er(p.name)&&es()===p.eq){tm();return}if(s&&R(h._type)){let e=ei();if(e.type===p.name&&e.contextualKeyword!==h._from){if(O(h._type),es()===p.eq){tm();return}}else(e.type===p.star||e.type===p.braceL)&&O(h._type)}er(p.string)||(R(h._module)&&function(){let e=i.snapshot();if(O(h._module),j(h._from))return R(h._from)?(i.restoreFromSnapshot(e),!0):(i.restoreFromSnapshot(e),!1);if(er(p.comma))return i.restoreFromSnapshot(e),!1;return i.restoreFromSnapshot(e),!0}()&&Z(),function(){o&&!function(){if(er(p._typeof)||R(h._type)){var e;let t=ei();if(((e=t).type===p.name||e.type&p.IS_KEYWORD)&&e.contextualKeyword!==h._from||t.type===p.braceL||t.type===p.star)Z()}}();let e=!0;if(!er(p.name)||(eH(),!!et(p.comma))){if(er(p.star)){Z(),O(h._as),eH();return}for(B(p.braceL);!et(p.braceR)&&!i.error;){if(e)e=!1;else if(et(p.colon)&&M("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),B(p.comma),et(p.braceR))break;(function(){if(s){!function(){if(t2(),er(p.comma)||er(p.braceR)){i.tokens[i.tokens.length-1].identifierRole=d.ImportDeclaration;return}if(t2(),er(p.comma)||er(p.braceR)){i.tokens[i.tokens.length-1].identifierRole=d.ImportDeclaration,i.tokens[i.tokens.length-2].isType=!0,i.tokens[i.tokens.length-1].isType=!0;return}if(t2(),er(p.comma)||er(p.braceR)){i.tokens[i.tokens.length-3].identifierRole=d.ImportAccess,i.tokens[i.tokens.length-1].identifierRole=d.ImportDeclaration;return}t2(),i.tokens[i.tokens.length-3].identifierRole=d.ImportAccess,i.tokens[i.tokens.length-1].identifierRole=d.ImportDeclaration,i.tokens[i.tokens.length-4].isType=!0,i.tokens[i.tokens.length-3].isType=!0,i.tokens[i.tokens.length-2].isType=!0,i.tokens[i.tokens.length-1].isType=!0}();return}if(o){!function(){let e=i.contextualKeyword===h._type||i.type===p._typeof;if(e?Z():t2(),R(h._as)&&!L(h._as)){if(t2(),!e||er(p.name)||i.type&p.IS_KEYWORD)t2()}else e&&(er(p.name)||i.type&p.IS_KEYWORD)&&t2(),j(h._as)&&t2()}();return}eH(),R(h._as)&&(i.tokens[i.tokens.length-1].identifierRole=d.ImportAccess,Z(),eH())})()}}}(),O(h._from)),tM(),nH(),$()}function nW(){eH()}function nH(){(er(p._with)||R(h._assert)&&!P())&&(Z(),tG(!1,!1))}class nX{constructor(e,t){this.tokens=e,this.scopes=t}}class nG{__init(){this.resultCode=""}__init2(){this.resultMappings=Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,t,n,r,s){this.code=e,this.tokens=t,this.isFlowEnabled=n,this.disableESTransforms=r,this.helperManager=s,nG.prototype.__init.call(this),nG.prototype.__init2.call(this),nG.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){let t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode="",this.resultMappings=Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,p.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,n){return this.tokens[e].type===t&&this.tokens[e+1].type===n}matches3AtIndex(e,t,n,r){return this.tokens[e].type===t&&this.tokens[e+1].type===n&&this.tokens[e+2].type===r}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n}matches4(e,t,n,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===r}matches5(e,t,n,r,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===s}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(p.braceL))e++;else if(this.matches1(p.braceR)){if(0===e)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){let e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=function(e){let t=e.currentIndex(),n=0,r=e.currentToken();do{let s=e.tokens[t];if(s.isOptionalChainStart&&n++,s.isOptionalChainEnd&&n--,n+=s.numNullishCoalesceStarts,n-=s.numNullishCoalesceEnds,s.contextualKeyword===h._await&&null==s.identifierRole&&s.scopeDepth===r.scopeDepth)return!0;t+=1}while(n>0&&t<e.tokens.length);return!1}(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===p._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){let e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){let e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function nJ(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;nZ(e.tokenAtRelativeIndex(-1));)e.previousToken()}function nz(e){let t=[];e.nextToken();let n=e.currentToken().contextId;if(null==n)throw Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(p.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),nZ(e.currentToken())){for(e.nextToken();nZ(e.currentToken());)e.nextToken();let n=e.currentToken();if(n.type!==p.name)throw Error("Expected identifier after access modifiers in constructor arg.");let r=e.identifierNameForToken(n);t.push(`this.${r} = ${r}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let r=e.currentIndex(),s=!1;for(;!e.matchesContextIdAndLabel(p.braceR,n);){if(!s&&e.matches2(p._super,p.parenL)){e.nextToken();let t=e.currentToken().contextId;if(null==t)throw Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(p.parenR,t);)e.nextToken();r=e.currentIndex(),s=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:r}}function nZ(e){return[p._async,p._get,p._set,p.plus,p.minus,p._readonly,p._static,p._public,p._private,p._protected,p._override,p._abstract,p.star,p._declare,p.hash].includes(e.type)}function nQ(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(p.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(p.dot);)e.removeToken(),e.removeToken()}let nY={typeDeclarations:new Set,valueDeclarations:new Set};function n1(e){let t=new Set,n=new Set;for(let r=0;r<e.tokens.length;r++){let s=e.tokens[r];s.type===p.name&&J(s)&&(s.isType?t.add(e.identifierNameForToken(s)):n.add(e.identifierNameForToken(s)))}return{typeDeclarations:t,valueDeclarations:n}}function n0(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,p.braceR);)t++;return e.matchesContextualAtIndex(t+1,h._from)&&e.matches1AtIndex(t+2,p.string)}function n2(e){(e.matches2(p._with,p.braceL)||e.matches2(p.name,p.braceL)&&e.matchesContextual(h._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function n4(e,t,n,r){if(!e||t)return!1;let s=n.currentToken();if(null==s.rhsEndIndex)throw Error("Expected non-null rhsEndIndex on export token.");let o=s.rhsEndIndex-n.currentIndex();if(3!==o&&!(4===o&&n.matches1AtIndex(s.rhsEndIndex-1,p.semi)))return!1;let i=n.tokenAtRelativeIndex(2);if(i.type!==p.name)return!1;let a=n.identifierNameForToken(i);return r.typeDeclarations.has(a)&&!r.valueDeclarations.has(a)}class n3 extends eC{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,t,n,r,s,o,i,a,c,l,u,h){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=r,this.helperManager=s,this.reactHotLoaderTransformer=o,this.enableLegacyBabel5ModuleInterop=i,this.enableLegacyTypeScriptModuleInterop=a,this.isTypeScriptTransformEnabled=c,this.isFlowTransformEnabled=l,this.preserveDynamicImport=u,this.keepUnusedImports=h,n3.prototype.__init.call(this),n3.prototype.__init2.call(this),n3.prototype.__init3.call(this),this.declarationInfo=c?n1(t):nY}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?"\nmodule.exports = exports.default;\n":""}process(){return this.tokens.matches3(p._import,p.name,p.eq)?this.processImportEquals():this.tokens.matches1(p._import)?(this.processImport(),!0):this.tokens.matches2(p._export,p.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(p._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):!!(this.tokens.matches2(p.name,p.postIncDec)&&this.processPostIncDec())||(this.tokens.matches1(p.name)||this.tokens.matches1(p.jsxName)?this.processIdentifier():this.tokens.matches1(p.eq)?this.processAssignment():this.tokens.matches1(p.assign)?this.processComplexAssignment():!!this.tokens.matches1(p.preIncDec)&&this.processPreIncDec())}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?nQ(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(p._import,p.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}let e=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${e}require`);let t=this.tokens.currentToken().contextId;if(null==t)throw Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(p.parenR,t);)this.rootTransformer.processToken();this.tokens.replaceToken(e?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}n2(this.tokens),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(h._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,h._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(p.name)||this.tokens.matches1(p.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(p.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(p.string);)(!e&&this.tokens.matches1(p.braceL)||this.tokens.matches1(p.comma))&&(this.tokens.removeToken(),!this.tokens.matches1(p.braceR)&&(t=!0),(this.tokens.matches2(p.name,p.comma)||this.tokens.matches2(p.name,p.braceR)||this.tokens.matches4(p.name,p.name,p.name,p.comma)||this.tokens.matches4(p.name,p.name,p.name,p.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&t&&!e)}removeRemainingImport(){for(;!this.tokens.matches1(p.string);)this.tokens.removeToken()}processIdentifier(){let e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===d.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==d.Access)return!1;let t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===p.parenR;)n++;return this.tokens.tokens[n].type===p.parenL?this.tokens.tokenAtRelativeIndex(1).type===p.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==p._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){let e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return!!t&&(this.tokens.replaceToken(`${e}: ${t}`),!0)}processExport(){if(this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(p._export,p._default))return this.tokens.matches3(p._export,p._default,p._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(p._export,p.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(p._export,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,h._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(p.braceL)){for(;!this.tokens.matches1(p.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(p._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(h._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),n2(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(p._export,p._var)||this.tokens.matches2(p._export,p._let)||this.tokens.matches2(p._export,p._const))return this.processExportVar(),!0;if(this.tokens.matches2(p._export,p._function)||this.tokens.matches3(p._export,p.name,p._function))return this.processExportFunction(),!0;if(this.tokens.matches2(p._export,p._class)||this.tokens.matches3(p._export,p._abstract,p._class)||this.tokens.matches2(p._export,p.at))return this.processExportClass(),!0;else if(this.tokens.matches2(p._export,p.star))return this.processExportStar(),!0;else throw Error("Unrecognized export syntax.")}processAssignment(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==p.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,p.dot)||e>=2&&[p._var,p._let,p._const].includes(this.tokens.tokens[e-2].type))return!1;let n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==p.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,p.dot))return!1;let n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==p.name||t.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,p.dot)||this.tokens.matches1AtIndex(e+2,p.bracketL)||this.tokens.matches1AtIndex(e+2,p.parenL)))return!1;let n=this.tokens.identifierNameForToken(t),r=this.importProcessor.resolveExportBinding(n);return!!r&&(this.tokens.appendCode(`${r} = `),this.tokens.copyToken(),!0)}processPostIncDec(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e],n=this.tokens.tokens[e+1];if(t.type!==p.name||t.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,p.dot))return!1;let r=this.tokens.identifierNameForToken(t),s=this.importProcessor.resolveExportBinding(r);if(!s)return!1;let o=this.tokens.rawCodeForToken(n),i=this.importProcessor.getIdentifierReplacement(r)||r;if("++"===o)this.tokens.replaceToken(`(${i} = ${s} = ${i} + 1, ${i} - 1)`);else if("--"===o)this.tokens.replaceToken(`(${i} = ${s} = ${i} - 1, ${i} + 1)`);else throw Error(`Unexpected operator: ${o}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(p._export,p._default,p._function,p.name)||this.tokens.matches5(p._export,p._default,p.name,p._function,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,h._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(p._export,p._default,p._class,p.name)||this.tokens.matches5(p._export,p._default,p._abstract,p._class,p.name)||this.tokens.matches3(p._export,p._default,p.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(p._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(n4(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){let e=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(p.at);)if(this.tokens.copyToken(),this.tokens.matches1(p.parenL))this.tokens.copyExpectedToken(p.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR);else{for(this.tokens.copyExpectedToken(p.name);this.tokens.matches1(p.dot);)this.tokens.copyExpectedToken(p.dot),this.tokens.copyExpectedToken(p.name);this.tokens.matches1(p.parenL)&&(this.tokens.copyExpectedToken(p.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,p.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,p.eq)||!1}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();let e=this.tokens.identifierName();for(;!this.tokens.matches1(p.eq);)this.rootTransformer.processToken();let t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.tokens.matches1(p.braceL);e&&this.tokens.appendCode("(");let t=0;for(;;)if(this.tokens.matches1(p.braceL)||this.tokens.matches1(p.dollarBraceL)||this.tokens.matches1(p.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(p.braceR)||this.tokens.matches1(p.bracketR))t--,this.tokens.copyToken();else if(0!==t||this.tokens.matches1(p.name)||this.tokens.currentToken().isType){if(this.tokens.matches1(p.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}else{let e=this.tokens.currentToken();if(G(e)){var n;let t=this.tokens.identifierName(),r=this.importProcessor.getIdentifierReplacement(t);if(null===r)throw Error(`Expected a replacement for ${t} in \`export var\` syntax.`);if((n=e).identifierRole===d.ObjectShorthandTopLevelDeclaration||n.identifierRole===d.ObjectShorthandBlockScopedDeclaration||n.identifierRole===d.ObjectShorthandFunctionScopedDeclaration)r=`${t}: ${r}`;this.tokens.replaceToken(r)}else this.rootTransformer.processToken()}}else break;if(e){let e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");let e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(p._function))this.tokens.copyToken();else if(this.tokens.matches2(p.name,p._function)){if(!this.tokens.matchesContextual(h._async))throw Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(p.star)&&this.tokens.copyToken(),!this.tokens.matches1(p.name))throw Error("Expected identifier for exported function name.");let e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(p.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(p.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(p._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=n0(this.tokens),t=[];for(;;){if(this.tokens.matches1(p.braceR)){this.tokens.removeToken();break}let n=ex(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!(n.isType||!e&&this.shouldElideExportedIdentifier(n.leftName))){let e=n.rightName;"default"===e?this.hadDefaultExport=!0:this.hadNamedExport=!0;let r=n.leftName,s=this.importProcessor.getIdentifierReplacement(r);t.push(`exports.${e} = ${s||r};`)}if(this.tokens.matches1(p.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(p.comma,p.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(this.tokens.matches1(p.comma))this.tokens.removeToken();else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(h._from)){this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),n2(this.tokens)}else this.tokens.appendCode(t.join(" "));this.tokens.matches1(p.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(p.string);)this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),n2(this.tokens),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class n8 extends eC{constructor(e,t,n,r,s,o,i,a){super(),this.tokens=e,this.nameManager=t,this.helperManager=n,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=s,this.isFlowTransformEnabled=o,this.keepUnusedImports=i,this.nonTypeIdentifiers=s&&!i?eN(e,a):new Set,this.declarationInfo=s&&!i?n1(e):nY,this.injectCreateRequireForImportRequire=!!a.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(p._import,p.name,p.eq))return this.processImportEquals();if(this.tokens.matches4(p._import,p.name,p.name,p.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,h._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(p._export,p.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(p._export,p._import,p.name,p.name,p.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,h._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(p._import))return this.processImport();if(this.tokens.matches2(p._export,p._default))return this.processExportDefault();if(this.tokens.matches2(p._export,p.braceL))return this.processNamedExports();if(this.tokens.matches2(p._export,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,h._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(p.braceL)){for(;!this.tokens.matches1(p.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(p._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(h._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),n2(this.tokens)),!0}return!1}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?nQ(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(p._import,p.parenL))return!1;let e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(p.string);)this.tokens.removeToken();this.tokens.removeToken(),n2(this.tokens),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(p._import),this.tokens.matchesContextual(h._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,h._from))return!0;if(this.tokens.matches1(p.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(h._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,h._from)&&this.tokens.copyToken();let e=!1,t=!1,n=!1;if(this.tokens.matches1(p.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(p.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(p.comma)&&(n=!0,this.tokens.removeToken()))),this.tokens.matches1(p.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(n&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(p.star),this.tokens.copyExpectedToken(p.name),this.tokens.copyExpectedToken(p.name));else if(this.tokens.matches1(p.braceL)){for(n&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(p.braceR);){t=!0;let n=ex(this.tokens);if(n.isType||this.shouldAutomaticallyElideImportedName(n.rightName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(p.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(p.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(p.braceR)}return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&t&&!e)}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(n4(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(p._export,p._default,p._function,p.name)||this.tokens.matches5(p._export,p._default,p.name,p._function,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,h._async)||this.tokens.matches4(p._export,p._default,p._class,p.name)||this.tokens.matches5(p._export,p._default,p._abstract,p._class,p.name))&&this.reactHotLoaderTransformer){let e=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${e}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(p._export),this.tokens.copyExpectedToken(p.braceL);let e=n0(this.tokens),t=!1;for(;!this.tokens.matches1(p.braceR);){let n=ex(this.tokens);if(n.isType||!e&&this.shouldElideExportedName(n.leftName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(p.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(p.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(p.braceR),!this.keepUnusedImports&&e&&!t&&(this.tokens.removeToken(),this.tokens.removeToken(),n2(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class n5 extends eC{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(p._enum)?(this.processEnum(),!0):this.tokens.matches2(p._export,p._enum)?(this.processNamedExportEnum(),!0):!!this.tokens.matches3(p._export,p._default,p._enum)&&(this.processDefaultExportEnum(),!0))}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();let e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(p.name);let e=!1;this.tokens.matchesContextual(h._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(h._symbol),this.tokens.removeToken());let t=this.tokens.matches3(p.braceL,p.name,p.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');let n=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(n?".Mirrored([":"({");!this.tokens.matches1(p.braceR);){if(this.tokens.matches1(p.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(p.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(n?"]);":"});")}processEnumElement(e,t){if(e){let e=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${e}")`)}else t?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}let n6="jest",n9=["mock","unmock","enableAutomock","disableAutomock"];class n7 extends eC{__init(){this.hoistedFunctionNames=[]}constructor(e,t,n,r){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=n,this.importProcessor=r,n7.prototype.__init.call(this)}process(){if(0===this.tokens.currentToken().scopeDepth&&this.tokens.matches4(p.name,p.dot,p.name,p.parenL)&&this.tokens.identifierName()===n6)return!function(e){let t;let n=e[0],r=1;for(;r<e.length;){let s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(n6)])&&this.extractHoistedCalls();return!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(p.dot,p.name,p.parenL);){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(n9.includes(t)){let t=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${n6}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${n6}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),e=!0}return!0}}class re extends eC{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(p.num)){let e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class rt extends eC{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(p._catch,p.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class rn extends eC{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(p.nullishCoalescing)){let e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(p._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;let e=this.tokens.currentToken().subscriptStartIndex;if(null!=e&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==p._super){let t;let n=this.nameManager.claimFreeName("_");if(t=e>0&&this.tokens.matches1AtIndex(e-1,p._delete)&&this.isLastSubscriptInChain()?`${n} => delete ${n}`:`${n} => ${n}`,this.tokens.tokens[e].isAsyncOperation&&(t=`async ${t}`),this.tokens.matches2(p.questionDot,p.parenL)||this.tokens.matches2(p.questionDot,p.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${t}`);else if(this.tokens.matches2(p.questionDot,p.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${t}`);else if(this.tokens.matches1(p.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${t}.`);else if(this.tokens.matches1(p.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${t}.`);else if(this.tokens.matches1(p.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${t}[`);else if(this.tokens.matches1(p.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${t}(`);else throw Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===p._super;t--}}}class rr extends eC{constructor(e,t,n,r){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=r}process(){let e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){let t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(p.name,p.dot,p.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){let t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return t?this.tokens.replaceToken(t):this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){let t=this.findDisplayName(e);if(!!t)this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(p.parenL),this.tokens.copyExpectedToken(p.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.braceR),this.tokens.copyExpectedToken(p.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,p.name,p.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===d.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,p._export,p._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){let e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),r=-1===n?t:t.slice(0,n);return"index"===r&&e[e.length-2]?e[e.length-2]:r}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(p.parenL,p.braceL))return!1;let t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){let t=this.tokens.tokens[e];if(t.type===p.braceR&&t.contextId===n){e++;break}if("displayName"===this.tokens.identifierNameAtIndex(e)&&this.tokens.tokens[e].identifierRole===d.ObjectKey&&t.contextId===n)return!1}if(e===this.tokens.tokens.length)throw Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,p.parenR)||this.tokens.matches2AtIndex(e,p.comma,p.parenR)}}class rs extends eC{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,rs.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
(function () {
var enterModule = require('react-hot-loader').enterModule;
enterModule && enterModule(module);
})();`.replace(/\s+/g," ").trim()}getSuffixCode(){let e=new Set;for(let t of this.tokens.tokens)!t.isType&&J(t)&&t.identifierRole!==d.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(t));let t=Array.from(e).map(e=>({variableName:e,uniqueLocalName:e}));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
;(function () {
var reactHotLoader = require('react-hot-loader').default;
var leaveModule = require('react-hot-loader').leaveModule;
if (!reactHotLoader) {
return;
}
${t.map(({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||"")});`).join("\n")}
leaveModule(module);
})();`}process(){return!1}}let ro=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function ri(e){if(0===e.length||!H[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!W[e.charCodeAt(t)])return!1;return!ro.has(e)}class ra extends eC{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(p._public)||this.tokens.matches1(p._protected)||this.tokens.matches1(p._private)||this.tokens.matches1(p._abstract)||this.tokens.matches1(p._readonly)||this.tokens.matches1(p._override)||this.tokens.matches1(p.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(p._enum)||this.tokens.matches2(p._const,p._enum)?(this.processEnum(),!0):!!(this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum))&&(this.processEnum(!0),!0))}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(p._const)||this.tokens.matches1(p._enum);)this.tokens.removeToken();let t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(p.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(p.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(p.braceR);){;let{nameStringCode:n,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(p.eq,p.string,p.comma)||this.tokens.matches3(p.eq,p.string,p.braceR)?this.processStringLiteralEnumMember(e,n,r):this.tokens.matches1(p.eq)?this.processExplicitValueEnumMember(e,n,r):this.processImplicitValueEnumMember(e,n,r,t),this.tokens.matches1(p.comma)&&this.tokens.removeToken(),t=null!=r?r:`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===p.name){let t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:ri(t)?t:null}}if(e.type===p.string){let t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:ri(t)?t:null}}throw Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,t,n){null!=n?(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`)):(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,t,n){let r=this.tokens.currentToken().rhsEndIndex;if(null==r)throw Error("Expected rhsEndIndex on enum assign.");if(null!=n){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,r){let s=null!=r?`${r} + 1`:"0";null!=n&&(this.tokens.appendCode(`const ${n} = ${s}; `),s=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${s}] = ${t};`)}}class rc{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,n,r){rc.prototype.__init.call(this),rc.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;let{tokenProcessor:s,importProcessor:o}=e;this.tokens=s,this.isImportsTransformEnabled=t.includes("imports"),this.isReactHotLoaderTransformEnabled=t.includes("react-hot-loader"),this.disableESTransforms=!!r.disableESTransforms,!r.disableESTransforms&&(this.transformers.push(new rn(s,this.nameManager)),this.transformers.push(new re(s)),this.transformers.push(new rt(s,this.nameManager))),t.includes("jsx")&&("preserve"!==r.jsxRuntime&&this.transformers.push(new ew(this,s,o,this.nameManager,r)),this.transformers.push(new rr(this,s,o,r)));let i=null;if(t.includes("react-hot-loader")){if(!r.filePath)throw Error("filePath is required when using the react-hot-loader transform.");i=new rs(s,r.filePath),this.transformers.push(i)}if(t.includes("imports")){if(null===o)throw Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new n3(this,s,o,this.nameManager,this.helperManager,i,n,!!r.enableLegacyTypeScriptModuleInterop,t.includes("typescript"),t.includes("flow"),!!r.preserveDynamicImport,!!r.keepUnusedImports))}else this.transformers.push(new n8(s,this.nameManager,this.helperManager,i,t.includes("typescript"),t.includes("flow"),!!r.keepUnusedImports,r));t.includes("flow")&&this.transformers.push(new n5(this,s,t.includes("imports"))),t.includes("typescript")&&this.transformers.push(new ra(this,s,t.includes("imports"))),t.includes("jest")&&this.transformers.push(new n7(this,s,this.nameManager,o))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?'"use strict";':"";for(let t of this.transformers)e+=t.getPrefixCode();for(let t of(e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map(e=>` var ${e};`).join(""),this.transformers))e+=t.getHoistedCode();let t="";for(let e of this.transformers)t+=e.getSuffixCode();let n=this.tokens.finish(),{code:r}=n;if(!r.startsWith("#!"))return{code:e+r+t,mappings:this.shiftMappings(n.mappings,e.length)};{let s=r.indexOf("\n");return -1===s&&(s=r.length,r+="\n"),{code:r.slice(0,s+1)+e+r.slice(s+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(p.braceL)||this.tokens.matches1(p.dollarBraceL))e++;else if(this.tokens.matches1(p.braceR)){if(0===e)return;e--}if(this.tokens.matches1(p.parenL))t++;else if(this.tokens.matches1(p.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(p._class)){this.processClass();return}for(let e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(p._class,p.name))throw Error("Expected identifier for exported class name.");let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){let e=function(e,t,n,r){let s=t.snapshot(),o=function(e){let t=e.currentToken(),n=t.contextId;if(null==n)throw Error("Expected context ID on class token.");let r=t.isExpression;if(null==r)throw Error("Expected isExpression on class token.");let s=null,o=!1;for(e.nextToken(),e.matches1(p.name)&&(s=e.identifierName());!e.matchesContextIdAndLabel(p.braceL,n);)e.matches1(p._extends)&&!e.currentToken().isType&&(o=!0),e.nextToken();return{isExpression:r,className:s,hasSuperclass:o}}(t),i=[],a=[],c=[],l=null,u=[],f=[],d=t.currentToken().contextId;if(null==d)throw Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(p.braceR,d);)if(t.matchesContextual(h._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:i,constructorInsertPos:l}=nz(t));else if(t.matches1(p.semi))!r&&f.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{let s=t.currentIndex(),o=!1,m=!1,k=!1;for(;nZ(t.currentToken());)t.matches1(p._static)&&(o=!0),t.matches1(p.hash)&&(m=!0),(t.matches1(p._declare)||t.matches1(p._abstract))&&(k=!0),t.nextToken();if(o&&t.matches1(p.braceL)||m){nJ(t,d);continue}if(t.matchesContextual(h._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:i,constructorInsertPos:l}=nz(t));continue}let g=t.currentIndex();if(function(e){if(e.matches1(p.bracketL)){let t=e.currentToken().contextId;if(null==t)throw Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(p.bracketR,t);)e.nextToken();e.nextToken()}else e.nextToken()}(t),t.matches1(p.lessThan)||t.matches1(p.parenL)){nJ(t,d);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(p.eq)){let r;let s=t.currentIndex(),i=t.currentToken().rhsEndIndex;if(null==i)throw Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<i;)e.processToken();o?(r=n.claimFreeName("__initStatic"),c.push(r)):(r=n.claimFreeName("__init"),a.push(r)),u.push({initializerName:r,equalsIndex:s,start:g,end:t.currentIndex()})}else(!r||k)&&f.push({start:s,end:t.currentIndex()})}return(t.restoreToSnapshot(s),r)?{headerInfo:o,constructorInitializerStatements:i,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:l,fields:[],rangesToRemove:f}:{headerInfo:o,constructorInitializerStatements:i,instanceInitializerNames:a,staticInitializerNames:c,constructorInsertPos:l,fields:u,rangesToRemove:f}}(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0,n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));let r=this.tokens.currentToken().contextId;if(null==r)throw Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(p._class);!this.tokens.matchesContextIdAndLabel(p.braceL,r);)this.processToken();this.processClassBody(e,n);let s=e.staticInitializerNames.map(e=>`${n}.${e}()`);t?this.tokens.appendCode(`, ${s.map(e=>`${e}, `).join("")}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${s.map(e=>`${e};`).join(" ")}`)}processClassBody(e,t){let{headerInfo:n,constructorInsertPos:r,constructorInitializerStatements:s,fields:o,instanceInitializerNames:i,rangesToRemove:a}=e,c=0,l=0,u=this.tokens.currentToken().contextId;if(null==u)throw Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(p.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");let h=s.length+i.length>0;if(null===r&&h){let e=this.makeConstructorInitCode(s,i,t);if(n.hasSuperclass){let t=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(p.braceR,u);)if(c<o.length&&this.tokens.currentIndex()===o[c].start){let e=!1;for(this.tokens.matches1(p.bracketL)?this.tokens.copyTokenWithPrefix(`${o[c].initializerName}() {this`):this.tokens.matches1(p.string)||this.tokens.matches1(p.num)?(this.tokens.copyTokenWithPrefix(`${o[c].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${o[c].initializerName}() {this.`);this.tokens.currentIndex()<o[c].end;)e&&this.tokens.currentIndex()===o[c].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),c++}else if(l<a.length&&this.tokens.currentIndex()>=a[l].start){for(this.tokens.currentIndex()<a[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<a[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===r&&(this.tokens.copyToken(),h&&this.tokens.appendCode(`;${this.makeConstructorInitCode(s,i,t)};`)),this.processToken();this.tokens.copyExpectedToken(p.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(p.parenR,p.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,p.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(h._async)&&!this.tokens.matches1(p._async))return!1;let e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==p.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,p.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){let r=e[n];void 0!==r&&(e[n]=r+t)}return e}}n("18589");var rl=Object.defineProperty,ru=Object.defineProperties,rh=Object.getOwnPropertyDescriptors,rp=Object.getOwnPropertySymbols,rf=Object.prototype.hasOwnProperty,rd=Object.prototype.propertyIsEnumerable,rm=(e,t,n)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rk=(e,t)=>{for(var n in t||(t={}))rf.call(t,n)&&rm(e,n,t[n]);if(rp)for(var n of rp(t))rd.call(t,n)&&rm(e,n,t[n]);return e},rg=(e,t)=>ru(e,rh(t)),r_=(e,t)=>{var n={};for(var r in e)rf.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&rp)for(var r of rp(e))0>t.indexOf(r)&&rd.call(e,r)&&(n[r]=e[r]);return n},ry=(e,t,n)=>new Promise((r,s)=>{var o=e=>{try{a(n.next(e))}catch(e){s(e)}},i=e=>{try{a(n.throw(e))}catch(e){s(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);a((n=n.apply(e,t)).next())}),rx=e=>{let{tabMode:t="indentation"}=e,n=(0,_.useRef)(null),[r,s]=(0,_.useState)(e.code||""),{theme:o}=e;return(0,_.useEffect)(()=>{s(e.code)},[e.code]),!function(e,t,n){function r(t){var n=e.current;if(n){var r=I(n);n=b(n),r.position+=t.length-n.length,l.position=r,l.onChange(t,r)}}function s(t,n){var r=e.current;if(r){var s=window.getSelection().getRangeAt(0);s.deleteContents(),s.collapse();var o=n||0;(s=v(r,n=(s=I(r)).position+(0>o?o:0),s.position+(0<o?o:0))).deleteContents(),t&&s.insertNode(document.createTextNode(t)),x(v(r,n+t.length))}}function o(t){var n=e.current;if(n){n.focus();var r=0;if("number"==typeof t)r=t;else{var s=b(n).split("\n").slice(0,t.row);t.row&&(r+=s.join("\n").length+1),r+=t.column}x(v(n,r))}}function i(){var t=e.current;return{text:b(t),position:t=I(t)}}function a(){l.observer.disconnect()}n||(n={});var c=(0,_.useState)([])[1],l=(0,_.useState)(function(){var e={observer:null,disconnected:!1,onChange:t,queue:[],history:[],historyAt:-1,position:null};return"undefined"!=typeof MutationObserver&&(e.observer=new MutationObserver(function(t){var n;(n=e.queue).push.apply(n,t)})),e})[0],u=(0,_.useMemo)(function(){return{update:r,insert:s,move:o,getState:i}},[]);"object"!=typeof navigator?u:((0,_.useLayoutEffect)(function(){if(l.onChange=t,e.current&&!n.disabled){if(l.disconnected=!1,l.observer.observe(e.current,y),l.position){var r=l.position,s=r.position;x(v(e.current,s,s+r.extent))}return a}}),(0,_.useLayoutEffect)(function(){if(!e.current||n.disabled)l.history.length=0,l.historyAt=-1;else{var t=e.current;if(l.position){t.focus();var r=l.position,s=r.position;x(v(t,s,s+r.extent))}var o=t.style.whiteSpace,i=t.contentEditable,a=!0;try{t.contentEditable="plaintext-only"}catch(e){t.contentEditable="true",a=!1}"pre"!==o&&(t.style.whiteSpace="pre-wrap"),n.indentation&&(t.style.tabSize=t.style.MozTabSize=""+n.indentation);var h,p=RegExp("^(?:"+(r=""+" ".repeat(n.indentation||0))+")"),f=RegExp("^(?:"+r+")*("+r+")$"),d=function(n){if(e.current&&l.position){var r=b(t),s=I(t),o=(new Date).valueOf(),i=l.history[l.historyAt];!n&&500>o-h||i&&i[1]===r?h=o:(n=++l.historyAt,l.history[n]=[s,r],l.history.splice(n+1),500<n&&(l.historyAt--,l.history.shift()))}},m=function(){var e;if((e=l.queue).push.apply(e,l.observer.takeRecords()),e=I(t),l.queue.length){l.observer.disconnect(),l.disconnected=!0;var n,r,s=b(t);for(l.position=e;n=l.queue.pop();){for(null!==n.oldValue&&(n.target.textContent=n.oldValue),r=n.removedNodes.length-1;0<=r;r--)n.target.insertBefore(n.removedNodes[r],n.nextSibling);for(r=n.addedNodes.length-1;0<=r;r--)n.addedNodes[r].parentNode&&n.target.removeChild(n.addedNodes[r])}l.onChange(s,e)}},k=function(e){if(!e.defaultPrevented&&e.target===t){if(l.disconnected)return e.preventDefault(),c([]);if(T(e))e.preventDefault(),e.shiftKey?(e=++l.historyAt,(e=l.history[e])||(l.historyAt=l.history.length-1)):(e=--l.historyAt,(e=l.history[e])||(l.historyAt=0)),e&&(l.observer.disconnect(),l.disconnected=!0,l.position=e[0],l.onChange(e[1],e[0]));else{if(d(),"Enter"===e.key){e.preventDefault();var r=I(t),s=/\S/g.exec(r.content);r="\n"+r.content.slice(0,s?s.index:r.content.length),u.insert(r)}else if((!a||n.indentation)&&"Backspace"===e.key)e.preventDefault(),window.getSelection().getRangeAt(0).collapsed?(r=I(t),r=f.exec(r.content),u.insert("",r?-r[1].length:-1)):u.insert("",0);else if(n.indentation&&"Tab"===e.key){e.preventDefault(),s=(r=I(t)).position-r.content.length;var o=b(t);r=e.shiftKey?o.slice(0,s)+r.content.replace(p,"")+o.slice(s+r.content.length):o.slice(0,s)+(n.indentation?" ".repeat(n.indentation):" ")+o.slice(s),u.update(r)}e.repeat&&m()}}},g=function(e){e.defaultPrevented||e.isComposing||(T(e)||d(),m(),t.focus())},_=function(e){l.position=window.getSelection().rangeCount&&e.target===t?I(t):null},y=function(e){e.preventDefault(),d(!0),u.insert(e.clipboardData.getData("text/plain")),d(!0),m()};return document.addEventListener("selectstart",_),window.addEventListener("keydown",k),t.addEventListener("paste",y),t.addEventListener("keyup",g),function(){document.removeEventListener("selectstart",_),window.removeEventListener("keydown",k),t.removeEventListener("paste",y),t.removeEventListener("keyup",g),t.style.whiteSpace=o,t.contentEditable=i}}},[e.current,n.disabled,n.indentation]),u)}(n,e=>s(e.slice(0,-1)),{disabled:e.disabled,indentation:"indentation"===t?2:void 0}),(0,_.useEffect)(()=>{e.onChange&&e.onChange(r)},[r]),(0,C.jsx)("div",{className:e.className,style:e.style,children:(0,C.jsx)(g.y$,{code:r,theme:e.theme||g.np.nightOwl,language:e.language,children:({className:e,tokens:t,getLineProps:r,getTokenProps:s,style:i})=>(0,C.jsx)("pre",{className:e,style:rk(rk({margin:0,outline:"none",padding:10,fontFamily:"inherit"},o&&"object"==typeof o.plain?o.plain:{}),i),ref:n,spellCheck:"false",children:t.map((e,t)=>(0,C.jsxs)("span",rg(rk({},r({line:e})),{children:[e.filter(e=>!e.empty).map((e,t)=>(0,C.jsx)("span",rk({},s({token:e})),`token-${t}`)),"\n"]}),`line-${t}`))})})})},rT=(0,_.createContext)({}),rb=["jsx","imports"];function rI(e={}){let t=Array.isArray(e.transforms)?e.transforms.filter(Boolean):rb;return e=>(function(e,t){var n;n=t,eK.strictCheck(n);try{let n=function(e,t){let n=t.transforms.includes("jsx"),l=t.transforms.includes("typescript"),u=t.transforms.includes("flow"),h=!0===t.disableESTransforms,d=function(e,t,n,l){var u,h,d,m;if(l&&n)throw Error("Cannot combine flow and typescript plugins.");u=e,h=t,d=n,m=l,a=u,i=new A,c=1,r=h,s=d,o=m;let k=(0===i.pos&&a.charCodeAt(0)===f.numberSign&&a.charCodeAt(1)===f.exclamationMark&&eh(2),eu(),function(){if(nw(p.eof),i.scopes.push(new w(0,i.tokens.length,!0)),0!==i.scopeDepth)throw Error(`Invalid scope depth at end of file: ${i.scopeDepth}`);return new nX(i.tokens,i.scopes)}());if(i.error)throw function(e){if("pos"in e){let t=function(e){let t=1,n=1;for(let r=0;r<e;r++)a.charCodeAt(r)===f.lineFeed?(t++,n=1):n++;return new N(t,n)}(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}(i.error);return k}(e,n,l,u),m=d.tokens,k=d.scopes,g=new eq(e,m),_=new eO(g),y=new nG(e,m,u,h,_),x=!!t.enableLegacyTypeScriptModuleInterop,T=null;return t.transforms.includes("imports")?((T=new eR(g,y,x,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,_)).preprocessTokens(),eD(y,k,T.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&T.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&eD(y,k,function(e){let t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,p._import)&&!e.matches3AtIndex(n,p._import,p.name,p.eq)&&function(e,t,n){if(t++,!e.matches1AtIndex(t,p.parenL))e.matches1AtIndex(t,p.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,p.comma)&&t++),e.matches1AtIndex(t,p.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,p.braceL)&&function(e,t,n){for(;;){if(e.matches1AtIndex(t,p.braceR))return;let r=ex(e,t);if(t=r.endIndex,!r.isType&&n.add(r.rightName),e.matches2AtIndex(t,p.comma,p.braceR))return;if(e.matches1AtIndex(t,p.braceR))return;else if(e.matches1AtIndex(t,p.comma))t++;else throw Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}(e,++t,n)}(e,n,t);return t}(y)),{tokenProcessor:y,scopes:k,nameManager:g,importProcessor:T,helperManager:_}}(e,t),l=new rc(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),u={code:l.code};if(t.sourceMapOptions){if(!t.filePath)throw Error("filePath must be specified when generating a source map.");u={...u,sourceMap:function({code:e,mappings:t},n,r,s,o){let i=function(e,t){let n=Array(t.length),r=0,s=t[0].start,o=0;for(let i=0;i<e.length;i++)i===s&&(n[r]=s-o,s=t[++r].start),e.charCodeAt(i)===f.lineFeed&&(o=i+1);return n}(s,o),a=new eL.GenMapping({file:r.compiledFilename}),c=0,l=t[0];for(;void 0===l&&c<t.length-1;)l=t[++c];let u=0,h=0;0!==l&&(0,eL.maybeAddSegment)(a,u,0,n,u,0);for(let r=0;r<e.length;r++){if(r===l){let e=l-h,s=i[c];for((0,eL.maybeAddSegment)(a,u,e,n,u,s);(l===r||void 0===l)&&c<t.length-1;)l=t[++c]}e.charCodeAt(r)===f.lineFeed&&(u++,l!==(h=r+1)&&(0,eL.maybeAddSegment)(a,u,0,n,u,0))}let{sourceRoot:p,sourcesContent:d,...m}=(0,eL.toEncodedMap)(a);return m}(l,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return u}catch(e){throw t.filePath&&(e.message=`Error transforming ${t.filePath}: ${e.message}`),e}})(e,{transforms:t}).code}var rv=(e,t)=>class extends _.Component{componentDidCatch(e){t(e)}render(){return"function"==typeof e?(0,C.jsx)(e,{}):_.isValidElement(e)?e:null}},rC=(e,t)=>{let n=Object.keys(t),r=n.map(e=>t[e]);return Function(...n,e)(...r)},rw='const _jsxFileName = "";',rE=e=>e.trim().replace(/;$/,""),rA=e=>e.replace(rw,"").trim(),rS=e=>rw+e,rN=e=>`return (${e})`,rR=({code:e="",scope:t={},enableTypeScript:n=!0},r)=>{let s=["jsx"];return n&&s.push("typescript"),rv(rC((function(...e){return e.reduce((e,t)=>(...n)=>e(t(...n)))})(rS,rI({transforms:["imports"]}),rA,rE,rI({transforms:s}),rN,rE)(e),rk({React:_},t)),r)},rL=({code:e="",scope:t={},enableTypeScript:n=!0},r,s)=>{if(!/render\s*\(/.test(e))return s(SyntaxError("No-Inline evaluations must call `render`."));let o=["jsx","imports"];n&&o.splice(1,0,"typescript"),rC(rI({transforms:o})(e),rg(rk({React:_},t),{render:e=>{void 0===e?s(SyntaxError("`render` must be called with valid JSX.")):r(rv(e,s))}}))},rj=function({children:e,code:t="",language:n="tsx",theme:r,enableTypeScript:s=!0,disabled:o=!1,scope:i,transformCode:a,noInline:c=!1}){let[l,u]=(0,_.useState)({error:void 0,element:void 0});function h(e){return ry(this,null,function*(){let t=e=>{u({error:e.toString(),element:void 0})};try{let n=a?a(e):e;try{let e=yield Promise.resolve(n),r=e=>u({error:void 0,element:e});if("string"!=typeof e)throw Error("Code failed to transform");let o={code:e,scope:i,enableTypeScript:s};c?(u({error:void 0,element:null}),rL(o,r,t)):r(rR(o,t))}catch(e){return t(e)}}catch(e){return t(e),Promise.resolve()}})}let p=e=>u({error:e.toString()});return(0,_.useEffect)(()=>{h(t).catch(p)},[t,i,c,a]),(0,C.jsx)(rT.Provider,{value:rg(rk({},l),{code:t,language:n,theme:r,disabled:o,onError:p,onChange:e=>{h(e).catch(p)}}),children:e})};function rO(e){let{code:t,language:n,theme:r,disabled:s,onChange:o}=(0,_.useContext)(rT);return(0,C.jsx)(rx,rk({theme:r,code:t,language:n,disabled:s,onChange:o},e))}function rD(e){let{error:t}=(0,_.useContext)(rT);return t?(0,C.jsx)("pre",rg(rk({},e),{children:t})):null}var rP=function(e){var{Component:t="div"}=e,n=r_(e,["Component"]);let{element:r}=(0,_.useContext)(rT);return(0,C.jsx)(t,rg(rk({},n),{children:r?(0,C.jsx)(r,{}):null}))}}}]);