speice.io/assets/js/2570.d4c87d95.js

123 lines
227 KiB
JavaScript

(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["2570"],{92509:function(e,t,n){!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){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 i(e,n,r,s,o,i,c,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){var g,_;if(e&&(g=m,0===(_=k)||1===g[_-1].length))return;return a(m,k,[s])}let y=t.put(p,o),x=l?t.put(d,l):-1;if(y===f.length&&(f[y]=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,y,i,c,x)))return a(m,k,l?[s,y,i,c,x]:[s,y,i,c])}function a(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function c(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function l(e,t,n){let{generated:r,source:s,original:o,name:a,content:c}=n;return s?i(e,t,r.line-1,r.column,s,o.line-1,o.column,a,c):i(e,t,r.line-1,r.column,null,null,null,null,null)}e.GenMapping=s,e.addMapping=function(e,t){return l(!1,e,t)},e.addSegment=function(e,t,n,r,s,o,a,c){return i(!1,e,t,n,r,s,o,a,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;let 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});return c(n._names,t.names),c(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map(()=>null),n._mappings=r.decodedMappings(t),t.ignoreList&&c(n._ignoreList,t.ignoreList),n},e.maybeAddMapping=(e,t)=>l(!0,e,t),e.maybeAddSegment=(e,t,n,r,s,o,a,c)=>i(!0,e,t,n,r,s,o,a,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=o,e.toEncodedMap=function(e){let t=o(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;t=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){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(e.test(t))return o(t);let s=o("http://foo.com/"+t);return s.scheme="",s.host="",s.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,s}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:c(e,e.type),"/"===n.path?n.path=e.path:n.path=function(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}(e.path)+n.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 o=n.query+n.hash;switch(r){case 2:case 3:return o;case 4:{let r=n.path.slice(1);if(!r)return o||".";if(s(t||e)&&!s(r))return"./"+r+o;return r+o}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}},e.exports=t()},22208:function(e,t){!function(e){"use strict";function t(e,t){return e._indexes[t]}e.SetArray=class{constructor(){this._indexes={__proto__:null},this.array=[]}},e.get=t,e.pop=function(e){let{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.put=function(e,n){let r=t(e,n);if(void 0!==r)return r;let{array:s,_indexes:o}=e,i=s.push(n);return o[n]=i-1},e.remove=function(e,n){let r=t(e,n);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[n]=void 0,s.pop()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},92297:function(e,t){!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];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){!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){for(let n=0;n<t.length;n++)e.push(t[n])}let d="`line` must be greater than 0 (lines start at line 1)",m="`column` must be greater than or equal to 0 (columns start at column 0)";class k{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 i=n;i<e.length;i=s(e,i+1)){var r;e[i]=(r=e[i],t||(r=r.slice()),r.sort(o))}return e}(m,n)),this._decodedMemo=l(),this._bySources=void 0,this._bySourceMemos=void 0}}function g(e){var n;return null!==(n=e._encoded)&&void 0!==n?n:e._encoded=t.encode(e._decoded)}function _(e){return e._decoded||(e._decoded=t.decode(e._encoded))}function y(e,t){let{sources:n,resolvedSources:r}=e,s=n.indexOf(t);return -1===s&&(s=r.indexOf(t)),s}function x(e,t){let n=new k(T(e,[]),t);return n._decoded=e.mappings,n}function T(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 b(e,t,n,r){return{source:e,line:t,column:n,name:r}}function I(e,t){return{line:e,column:t}}function v(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 C(e,t,n,r,s,o){if(--n<0)throw Error(d);if(r<0)throw Error(m);let{sources:p,resolvedSources:f}=e,k=p.indexOf(t);if(-1===k&&(k=f.indexOf(t)),-1===k)return o?[]:I(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}(_(e),e._bySourceMemos=p.map(l))))[k][n];if(null==g)return o?[]:I(null,null);let y=e._bySourceMemos[k];if(o)return function(e,t,n,r,s){let o=v(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(I(t[1]+1,t[2]))}return h}(g,y,n,r,s);let x=v(g,y,n,r,s);if(-1===x)return I(null,null);let T=g[x];return I(T[1]+1,T[2])}e.AnyMap=function(e,t){let n=p(e);if(!("sections"in n))return new k(n,t);let r=[],s=[],o=[],i=[],a=[];return function e(t,n,r,s,o,i,a,c,l,u,h){let{sections:d}=t;for(let t=0;t<d.length;t++){let{map:m,offset:g}=d[t],y=u,x=h;if(t+1<d.length){let e=d[t+1].offset;(y=Math.min(u,c+e.line))===u?x=Math.min(h,l+e.column):y<u&&(x=l+e.column)}(function(t,n,r,s,o,i,a,c,l,u,h){let d=p(t);if("sections"in d)return e(...arguments);let m=new k(d,n),g=s.length,y=i.length,x=_(m),{resolvedSources:T,sourcesContent:b,ignoreList:I}=m;if(f(s,T),f(i,m.names),b)f(o,b);else for(let e=0;e<T.length;e++)o.push(null);if(I)for(let e=0;e<I.length;e++)a.push(I[e]+g);for(let e=0;e<x.length;e++){let t=c+e;if(t>u)return;let n=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(r,t),s=0===e?l:0,o=x[e];for(let e=0;e<o.length;e++){let r=o[e],i=s+r[0];if(t===u&&i>=h)return;if(1===r.length){n.push([i]);continue}let a=g+r[1],c=r[2],l=r[3];n.push(4===r.length?[i,a,c,l]:[i,a,c,l,y+r[4]])}}})(m,n,r,s,o,i,a,c+g.line,l+g.column,y,x)}}(n,t,r,s,o,i,a,0,0,1/0,1/0),x({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=k,e.allGeneratedPositionsFor=function(e,t){let{source:n,line:r,column:s,bias:o}=t;return C(e,n,r,s,o||-1,!0)},e.decodedMap=function(e){return T(e,_(e))},e.decodedMappings=_,e.eachMapping=function(e,t){let n=_(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 T(e,g(e))},e.encodedMappings=g,e.generatedPositionFor=function(e,t){let{source:n,line:r,column:s,bias:o}=t;return C(e,n,r,s,o||1,!1)},e.isIgnored=function(e,t){let{ignoreList:n}=e;if(null==n)return!1;let r=y(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(d);if(r<0)throw Error(m);let o=_(e);if(n>=o.length)return b(null,null,null,null);let i=o[n],a=v(i,e._decodedMemo,n,r,s||1);if(-1===a)return b(null,null,null,null);let c=i[a];if(1===c.length)return b(null,null,null,null);let{names:l,resolvedSources:u}=e;return b(u[c[1]],c[2]+1,c[3],5===c.length?l[c[4]]:null)},e.presortedDecodedMap=x,e.sourceContentFor=function(e,t){let{sourcesContent:n}=e;if(null==n)return null;let r=y(e,t);return -1===r?null:n[r]},e.traceSegment=function(e,t,n){let r=_(e);if(t>=r.length)return null;let s=r[t],o=v(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":t.push(n+=1);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){let e=(r=parseInt(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){return new _(e,Object.keys(t).map(function(e){var n,r;return n=e,(r=t[e])instanceof y?new x(n,r.ttype,!0):new x(n,a(r),!1)}))};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}()},44634:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);n(67294);var s=n(6735);function o(e){let{children:t,fallback:n}=e;return(0,s.Z)()?(0,r.jsx)(r.Fragment,{children:t?.()}):n??null}},3829:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var r=n(79207),s=n(66009);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}},47333:function(e,t,n){"use strict";n.d(t,{Z:()=>F});var r,s=n("85893"),o=n("67294"),i=n("13109");let a={React:o,...o};var c=n("6735"),l=n("67026"),u=n("3829"),h=n("66171"),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*$`)}function x(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,"codeBlockContainer_Ckt0",h.k.common.codeBlock)})}let T={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function b(e){let{children:t,className:n}=e;return(0,s.jsx)(x,{as:"pre",tabIndex:0,className:(0,l.Z)(T.codeBlockStandalone,"thin-scrollbar",n),children:(0,s.jsx)("code",{className:T.codeBlockLines,children:t})})}var I=n("66009"),v=n("11934");let C={attributes:!0,characterData:!0,childList:!0,subtree:!0};var w=n("83229");let E={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function A(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&&E.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:E.codeLineNumber}),(0,s.jsx)("span",{className:E.codeLineContent,children:c})]}):c,(0,s.jsx)("br",{})]})}var S=n("7670");function N(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 R(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 L={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function j(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{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,S.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,S.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,S.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,l.Z)("clean-btn",n,L.copyButton,r&&L.copyButtonCopied),onClick:c,children:(0,s.jsxs)("span",{className:L.copyButtonIcons,"aria-hidden":"true",children:[(0,s.jsx)(N,{className:L.copyButtonIcon}),(0,s.jsx)(R,{className:L.copyButtonSuccessIcon})]})})}function O(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 D={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function P(e){let{className:t,onClick:n,isEnabled:r}=e,o=(0,S.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&&D.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,s.jsx)(O,{className:D.wordWrapButtonIcon,"aria-hidden":"true"})})}function q(e){var t;let{children:n,className:r="",metastring:i,title:a,showLineNumbers:c,language:h}=e,{prism:{defaultLanguage:p,magicComments:k}}=(0,I.L)(),g=(t=h??function(e){let t=e.split(" ").find(e=>e.startsWith("language-"));return t?.replace(/language-/,"")}(r)??p,t?.toLowerCase()),b=(0,u.p)(),E=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]:C,r=(0,v.zX)(t),s=(0,v.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}}(),S=(i?.match(d)?.groups.title??"")||a,{lineClassNames:N,code:R}=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":return y(["lua"],t);case"sql":return y(["lua","jsBlock"],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}}(n,{metastring:i,language:g,magicComments:k}),L=c??!!i?.includes("showLineNumbers");return(0,s.jsxs)(x,{as:"div",className:(0,l.Z)(r,g&&!r.includes(`language-${g}`)&&`language-${g}`),children:[S&&(0,s.jsx)("div",{className:T.codeBlockTitle,children:S}),(0,s.jsxs)("div",{className:T.codeBlockContent,children:[(0,s.jsx)(w.y$,{theme:b,code:R,language:g??"text",children:e=>{let{className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i}=e;return(0,s.jsx)("pre",{tabIndex:0,ref:E.codeBlockRef,className:(0,l.Z)(t,T.codeBlock,"thin-scrollbar"),style:n,children:(0,s.jsx)("code",{className:(0,l.Z)(T.codeBlockLines,L&&T.codeBlockLinesWithNumbering),children:r.map((e,t)=>(0,s.jsx)(A,{line:e,getLineProps:o,getTokenProps:i,classNames:N[t],showLineNumbers:L},t))})})}}),(0,s.jsxs)("div",{className:T.buttonGroup,children:[(E.isEnabled||E.isCodeScrollable)&&(0,s.jsx)(P,{className:T.codeButton,onClick:()=>E.toggle(),isEnabled:E.isEnabled}),(0,s.jsx)(j,{className:T.codeButton,code:R})]})]})]})}let F=(r=function(e){let{children:t,...n}=e,r=(0,c.Z)(),i=o.Children.toArray(t).some(e=>(0,o.isValidElement)(e))?t:Array.isArray(t)?t.join(""):t;return(0,s.jsx)("string"==typeof i?q:b,{...n,children:i},String(r))},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,{uz:()=>rb,nu:()=>rT,IF:()=>rI,i5:()=>rv});var l,u,h,p,f,d,m,k,g,_=n("83229"),y=n("67294"),x={characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};function T(e){var t=window.getSelection();t.empty(),t.addRange(e)}function b(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&"KeyZ"===e.code}function I(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 v(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 C(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 w=n("85893");!function(e){e[e.NONE=0]="NONE";e[e._abstract=1]="_abstract";let t=2;e[e._accessor=t]="_accessor";let n=t+1;e[e._as=n]="_as";let r=n+1;e[e._assert=r]="_assert";let s=r+1;e[e._asserts=s]="_asserts";let o=s+1;e[e._async=o]="_async";let i=o+1;e[e._await=i]="_await";let a=i+1;e[e._checks=a]="_checks";let c=a+1;e[e._constructor=c]="_constructor";let l=c+1;e[e._declare=l]="_declare";let u=l+1;e[e._enum=u]="_enum";let h=u+1;e[e._exports=h]="_exports";let p=h+1;e[e._from=p]="_from";let f=p+1;e[e._get=f]="_get";let d=f+1;e[e._global=d]="_global";let m=d+1;e[e._implements=m]="_implements";let k=m+1;e[e._infer=k]="_infer";let g=k+1;e[e._interface=g]="_interface";let _=g+1;e[e._is=_]="_is";let y=_+1;e[e._keyof=y]="_keyof";let x=y+1;e[e._mixins=x]="_mixins";let T=x+1;e[e._module=T]="_module";let b=T+1;e[e._namespace=b]="_namespace";let I=b+1;e[e._of=I]="_of";let v=I+1;e[e._opaque=v]="_opaque";let C=v+1;e[e._out=C]="_out";let w=C+1;e[e._override=w]="_override";let E=w+1;e[e._private=E]="_private";let A=E+1;e[e._protected=A]="_protected";let S=A+1;e[e._proto=S]="_proto";let N=S+1;e[e._public=N]="_public";let R=N+1;e[e._readonly=R]="_readonly";let L=R+1;e[e._require=L]="_require";let j=L+1;e[e._satisfies=j]="_satisfies";let O=j+1;e[e._set=O]="_set";let D=O+1;e[e._static=D]="_static";let P=D+1;e[e._symbol=P]="_symbol";let q=P+1;e[e._type=q]="_type";let F=q+1;e[e._unique=F]="_unique";let B=F+1;e[e._using=B]="_using"}(p||(p={})),(u=f||(f={}))[u.PRECEDENCE_MASK=15]="PRECEDENCE_MASK",u[u.IS_KEYWORD=16]="IS_KEYWORD",u[u.IS_ASSIGN=32]="IS_ASSIGN",u[u.IS_RIGHT_ASSOCIATIVE=64]="IS_RIGHT_ASSOCIATIVE",u[u.IS_PREFIX=128]="IS_PREFIX",u[u.IS_POSTFIX=256]="IS_POSTFIX",u[u.IS_EXPRESSION_START=512]="IS_EXPRESSION_START",u[u.num=512]="num",u[u.bigint=1536]="bigint",u[u.decimal=2560]="decimal",u[u.regexp=3584]="regexp",u[u.string=4608]="string",u[u.name=5632]="name",u[u.eof=6144]="eof",u[u.bracketL=7680]="bracketL",u[u.bracketR=8192]="bracketR",u[u.braceL=9728]="braceL",u[u.braceBarL=10752]="braceBarL",u[u.braceR=11264]="braceR",u[u.braceBarR=12288]="braceBarR",u[u.parenL=13824]="parenL",u[u.parenR=14336]="parenR",u[u.comma=15360]="comma",u[u.semi=16384]="semi",u[u.colon=17408]="colon",u[u.doubleColon=18432]="doubleColon",u[u.dot=19456]="dot",u[u.question=20480]="question",u[u.questionDot=21504]="questionDot",u[u.arrow=22528]="arrow",u[u.template=23552]="template",u[u.ellipsis=24576]="ellipsis",u[u.backQuote=25600]="backQuote",u[u.dollarBraceL=27136]="dollarBraceL",u[u.at=27648]="at",u[u.hash=29184]="hash",u[u.eq=29728]="eq",u[u.assign=30752]="assign",u[u.preIncDec=32640]="preIncDec",u[u.postIncDec=33664]="postIncDec",u[u.bang=34432]="bang",u[u.tilde=35456]="tilde",u[u.pipeline=35841]="pipeline",u[u.nullishCoalescing=36866]="nullishCoalescing",u[u.logicalOR=37890]="logicalOR",u[u.logicalAND=38915]="logicalAND",u[u.bitwiseOR=39940]="bitwiseOR",u[u.bitwiseXOR=40965]="bitwiseXOR",u[u.bitwiseAND=41990]="bitwiseAND",u[u.equality=43015]="equality",u[u.lessThan=44040]="lessThan",u[u.greaterThan=45064]="greaterThan",u[u.relationalOrEqual=46088]="relationalOrEqual",u[u.bitShiftL=47113]="bitShiftL",u[u.bitShiftR=48137]="bitShiftR",u[u.plus=49802]="plus",u[u.minus=50826]="minus",u[u.modulo=51723]="modulo",u[u.star=52235]="star",u[u.slash=53259]="slash",u[u.exponent=54348]="exponent",u[u.jsxName=55296]="jsxName",u[u.jsxText=56320]="jsxText",u[u.jsxEmptyText=57344]="jsxEmptyText",u[u.jsxTagStart=58880]="jsxTagStart",u[u.jsxTagEnd=59392]="jsxTagEnd",u[u.typeParameterStart=60928]="typeParameterStart",u[u.nonNullAssertion=61440]="nonNullAssertion",u[u._break=62480]="_break",u[u._case=63504]="_case",u[u._catch=64528]="_catch",u[u._continue=65552]="_continue",u[u._debugger=66576]="_debugger",u[u._default=67600]="_default",u[u._do=68624]="_do",u[u._else=69648]="_else",u[u._finally=70672]="_finally",u[u._for=71696]="_for",u[u._function=73232]="_function",u[u._if=73744]="_if",u[u._return=74768]="_return",u[u._switch=75792]="_switch",u[u._throw=77456]="_throw",u[u._try=77840]="_try",u[u._var=78864]="_var",u[u._let=79888]="_let",u[u._const=80912]="_const",u[u._while=81936]="_while",u[u._with=82960]="_with",u[u._new=84496]="_new",u[u._this=85520]="_this",u[u._super=86544]="_super",u[u._class=87568]="_class",u[u._extends=88080]="_extends",u[u._export=89104]="_export",u[u._import=90640]="_import",u[u._yield=91664]="_yield",u[u._null=92688]="_null",u[u._true=93712]="_true",u[u._false=94736]="_false",u[u._in=95256]="_in",u[u._instanceof=96280]="_instanceof",u[u._typeof=97936]="_typeof",u[u._void=98960]="_void",u[u._delete=99984]="_delete",u[u._async=100880]="_async",u[u._get=101904]="_get",u[u._set=102928]="_set",u[u._declare=103952]="_declare",u[u._readonly=104976]="_readonly",u[u._abstract=106e3]="_abstract",u[u._static=107024]="_static",u[u._public=107536]="_public",u[u._private=108560]="_private",u[u._protected=109584]="_protected",u[u._override=110608]="_override",u[u._as=112144]="_as",u[u._enum=113168]="_enum",u[u._type=114192]="_type",u[u._implements=115216]="_implements";class E{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}}class A{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 S{constructor(){S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),S.prototype.__init5.call(this),S.prototype.__init6.call(this),S.prototype.__init7.call(this),S.prototype.__init8.call(this),S.prototype.__init9.call(this),S.prototype.__init10.call(this),S.prototype.__init11.call(this),S.prototype.__init12.call(this),S.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=f.eof}__init8(){this.contextualKeyword=p.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new A(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}}(h=d||(d={}))[h.backSpace=8]="backSpace",h[h.lineFeed=10]="lineFeed",h[h.tab=9]="tab",h[h.carriageReturn=13]="carriageReturn",h[h.shiftOut=14]="shiftOut",h[h.space=32]="space",h[h.exclamationMark=33]="exclamationMark",h[h.quotationMark=34]="quotationMark",h[h.numberSign=35]="numberSign",h[h.dollarSign=36]="dollarSign",h[h.percentSign=37]="percentSign",h[h.ampersand=38]="ampersand",h[h.apostrophe=39]="apostrophe",h[h.leftParenthesis=40]="leftParenthesis",h[h.rightParenthesis=41]="rightParenthesis",h[h.asterisk=42]="asterisk",h[h.plusSign=43]="plusSign",h[h.comma=44]="comma",h[h.dash=45]="dash",h[h.dot=46]="dot",h[h.slash=47]="slash",h[h.digit0=48]="digit0",h[h.digit1=49]="digit1",h[h.digit2=50]="digit2",h[h.digit3=51]="digit3",h[h.digit4=52]="digit4",h[h.digit5=53]="digit5",h[h.digit6=54]="digit6",h[h.digit7=55]="digit7",h[h.digit8=56]="digit8",h[h.digit9=57]="digit9",h[h.colon=58]="colon",h[h.semicolon=59]="semicolon",h[h.lessThan=60]="lessThan",h[h.equalsTo=61]="equalsTo",h[h.greaterThan=62]="greaterThan",h[h.questionMark=63]="questionMark",h[h.atSign=64]="atSign",h[h.uppercaseA=65]="uppercaseA",h[h.uppercaseB=66]="uppercaseB",h[h.uppercaseC=67]="uppercaseC",h[h.uppercaseD=68]="uppercaseD",h[h.uppercaseE=69]="uppercaseE",h[h.uppercaseF=70]="uppercaseF",h[h.uppercaseG=71]="uppercaseG",h[h.uppercaseH=72]="uppercaseH",h[h.uppercaseI=73]="uppercaseI",h[h.uppercaseJ=74]="uppercaseJ",h[h.uppercaseK=75]="uppercaseK",h[h.uppercaseL=76]="uppercaseL",h[h.uppercaseM=77]="uppercaseM",h[h.uppercaseN=78]="uppercaseN",h[h.uppercaseO=79]="uppercaseO",h[h.uppercaseP=80]="uppercaseP",h[h.uppercaseQ=81]="uppercaseQ",h[h.uppercaseR=82]="uppercaseR",h[h.uppercaseS=83]="uppercaseS",h[h.uppercaseT=84]="uppercaseT",h[h.uppercaseU=85]="uppercaseU",h[h.uppercaseV=86]="uppercaseV",h[h.uppercaseW=87]="uppercaseW",h[h.uppercaseX=88]="uppercaseX",h[h.uppercaseY=89]="uppercaseY",h[h.uppercaseZ=90]="uppercaseZ",h[h.leftSquareBracket=91]="leftSquareBracket",h[h.backslash=92]="backslash",h[h.rightSquareBracket=93]="rightSquareBracket",h[h.caret=94]="caret",h[h.underscore=95]="underscore",h[h.graveAccent=96]="graveAccent",h[h.lowercaseA=97]="lowercaseA",h[h.lowercaseB=98]="lowercaseB",h[h.lowercaseC=99]="lowercaseC",h[h.lowercaseD=100]="lowercaseD",h[h.lowercaseE=101]="lowercaseE",h[h.lowercaseF=102]="lowercaseF",h[h.lowercaseG=103]="lowercaseG",h[h.lowercaseH=104]="lowercaseH",h[h.lowercaseI=105]="lowercaseI",h[h.lowercaseJ=106]="lowercaseJ",h[h.lowercaseK=107]="lowercaseK",h[h.lowercaseL=108]="lowercaseL",h[h.lowercaseM=109]="lowercaseM",h[h.lowercaseN=110]="lowercaseN",h[h.lowercaseO=111]="lowercaseO",h[h.lowercaseP=112]="lowercaseP",h[h.lowercaseQ=113]="lowercaseQ",h[h.lowercaseR=114]="lowercaseR",h[h.lowercaseS=115]="lowercaseS",h[h.lowercaseT=116]="lowercaseT",h[h.lowercaseU=117]="lowercaseU",h[h.lowercaseV=118]="lowercaseV",h[h.lowercaseW=119]="lowercaseW",h[h.lowercaseX=120]="lowercaseX",h[h.lowercaseY=121]="lowercaseY",h[h.lowercaseZ=122]="lowercaseZ",h[h.leftCurlyBrace=123]="leftCurlyBrace",h[h.verticalBar=124]="verticalBar",h[h.rightCurlyBrace=125]="rightCurlyBrace",h[h.tilde=126]="tilde",h[h.nonBreakingSpace=160]="nonBreakingSpace",h[h.oghamSpaceMark=5760]="oghamSpaceMark",h[h.lineSeparator=8232]="lineSeparator",h[h.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===f.name&&t.contextualKeyword===e}function j(e){return i.contextualKeyword===e&&et(f.name)}function O(e){j(e)||M()}function D(){return er(f.eof)||er(f.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===d.lineFeed||t===d.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===d.lineFeed||e===d.carriageReturn||8232===e||8233===e)return!0}return!1}function F(){return et(f.semi)||D()}function B(){F()||M('Unexpected token, expected ";"')}function $(e){et(e)||M(`Unexpected token, expected "${function(e){switch(e){case f.num:return"num";case f.bigint:return"bigint";case f.decimal:return"decimal";case f.regexp:return"regexp";case f.string:return"string";case f.name:return"name";case f.eof:return"eof";case f.bracketL:return"[";case f.bracketR:return"]";case f.braceL:return"{";case f.braceBarL:return"{|";case f.braceR:return"}";case f.braceBarR:return"|}";case f.parenL:return"(";case f.parenR:return")";case f.comma:return",";case f.semi:return";";case f.colon:return":";case f.doubleColon:return"::";case f.dot:return".";case f.question:return"?";case f.questionDot:return"?.";case f.arrow:return"=>";case f.template:return"template";case f.ellipsis:return"...";case f.backQuote:return"`";case f.dollarBraceL:return"${";case f.at:return"@";case f.hash:return"#";case f.eq:return"=";case f.assign:return"_=";case f.preIncDec:case f.postIncDec:return"++/--";case f.bang:return"!";case f.tilde:return"~";case f.pipeline:return"|>";case f.nullishCoalescing:return"??";case f.logicalOR:return"||";case f.logicalAND:return"&&";case f.bitwiseOR:return"|";case f.bitwiseXOR:return"^";case f.bitwiseAND:return"&";case f.equality:return"==/!=";case f.lessThan:return"<";case f.greaterThan:return">";case f.relationalOrEqual:return"<=/>=";case f.bitShiftL:return"<<";case f.bitShiftR:return">>/>>>";case f.plus:return"+";case f.minus:return"-";case f.modulo:return"%";case f.star:return"*";case f.slash:return"/";case f.exponent:return"**";case f.jsxName:return"jsxName";case f.jsxText:return"jsxText";case f.jsxEmptyText:return"jsxEmptyText";case f.jsxTagStart:return"jsxTagStart";case f.jsxTagEnd:return"jsxTagEnd";case f.typeParameterStart:return"typeParameterStart";case f.nonNullAssertion:return"nonNullAssertion";case f._break:return"break";case f._case:return"case";case f._catch:return"catch";case f._continue:return"continue";case f._debugger:return"debugger";case f._default:return"default";case f._do:return"do";case f._else:return"else";case f._finally:return"finally";case f._for:return"for";case f._function:return"function";case f._if:return"if";case f._return:return"return";case f._switch:return"switch";case f._throw:return"throw";case f._try:return"try";case f._var:return"var";case f._let:return"let";case f._const:return"const";case f._while:return"while";case f._with:return"with";case f._new:return"new";case f._this:return"this";case f._super:return"super";case f._class:return"class";case f._extends:return"extends";case f._export:return"export";case f._import:return"import";case f._yield:return"yield";case f._null:return"null";case f._true:return"true";case f._false:return"false";case f._in:return"in";case f._instanceof:return"instanceof";case f._typeof:return"typeof";case f._void:return"void";case f._delete:return"delete";case f._async:return"async";case f._get:return"get";case f._set:return"set";case f._declare:return"declare";case f._readonly:return"readonly";case f._abstract:return"abstract";case f._static:return"static";case f._public:return"public";case f._private:return"private";case f._protected:return"protected";case f._override:return"override";case f._as:return"as";case f._enum:return"enum";case f._type:return"type";case f._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(f.eof)}let K=[9,11,12,d.space,d.nonBreakingSpace,d.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=d.digit0;e<=d.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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1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,-1,-1,-1,-1,-1,-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,(f._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===m.TopLevelDeclaration||t===m.FunctionScopedDeclaration||t===m.BlockScopedDeclaration||t===m.ObjectShorthandTopLevelDeclaration||t===m.ObjectShorthandFunctionScopedDeclaration||t===m.ObjectShorthandBlockScopedDeclaration}function J(e){let t=e.identifierRole;return t===m.TopLevelDeclaration||t===m.ObjectShorthandTopLevelDeclaration||t===m.ImportDeclaration}!function(e){e[e.Access=0]="Access";e[e.ExportAccess=1]="ExportAccess";let t=2;e[e.TopLevelDeclaration=t]="TopLevelDeclaration";let n=t+1;e[e.FunctionScopedDeclaration=n]="FunctionScopedDeclaration";let r=n+1;e[e.BlockScopedDeclaration=r]="BlockScopedDeclaration";let s=r+1;e[e.ObjectShorthandTopLevelDeclaration=s]="ObjectShorthandTopLevelDeclaration";let o=s+1;e[e.ObjectShorthandFunctionScopedDeclaration=o]="ObjectShorthandFunctionScopedDeclaration";let i=o+1;e[e.ObjectShorthandBlockScopedDeclaration=i]="ObjectShorthandBlockScopedDeclaration";let a=i+1;e[e.ObjectShorthand=a]="ObjectShorthand";let c=a+1;e[e.ImportDeclaration=c]="ImportDeclaration";let l=c+1;e[e.ObjectKey=l]="ObjectKey";let u=l+1;e[e.ImportAccess=u]="ImportAccess"}(m||(m={})),function(e){e[e.NoChildren=0]="NoChildren";e[e.OneChild=1]="OneChild";let t=2;e[e.StaticChildren=t]="StaticChildren";let n=t+1;e[e.KeyAfterPropSpread=n]="KeyAfterPropSpread"}(k||(k={}));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===d.graveAccent||e===d.dollarSign&&a.charCodeAt(i.pos+1)===d.leftCurlyBrace){if(i.pos===i.start&&er(f.template)){if(e===d.dollarSign){i.pos+=2,ef(f.dollarBraceL);return}++i.pos,ef(f.backQuote);return}ef(f.template);return}e===d.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(){var e;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(f.eof);return}H[e=a.charCodeAt(i.pos)]||e===d.backslash||e===d.atSign&&a.charCodeAt(i.pos+1)===d.atSign?function(){let e=0,t=0,n=i.pos;for(;n<a.length&&!((t=a.charCodeAt(n))<d.lowercaseA)&&!(t>d.lowercaseZ);){let r=X[e+(t-d.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(f.name,r>>>1);return}for(;n<a.length;){let e=a.charCodeAt(n);if(W[e])n++;else if(e===d.backslash){if(n+=2,a.charCodeAt(n)===d.leftCurlyBrace){for(;n<a.length&&a.charCodeAt(n)!==d.rightCurlyBrace;)n++;n++}}else if(e===d.atSign&&a.charCodeAt(n+1)===d.atSign)n+=2;else break}i.pos=n,ef(f.name)}():ek(e)}function eh(e){let t=a.charCodeAt(i.pos+=e);if(i.pos<a.length)for(;t!==d.lineFeed&&t!==d.carriageReturn&&t!==d.lineSeparator&&t!==d.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 d.carriageReturn:a.charCodeAt(i.pos+1)===d.lineFeed&&++i.pos;case d.lineFeed:case d.lineSeparator:case d.paragraphSeparator:++i.pos;break;case d.slash:switch(a.charCodeAt(i.pos+1)){case d.asterisk:i.pos+=2,function(){for(;a.charCodeAt(i.pos)!==d.asterisk||a.charCodeAt(i.pos+1)!==d.slash;)if(i.pos++,i.pos>a.length){M("Unterminated comment",i.pos-2);return}i.pos+=2}();break;case d.slash:eh(2);break;default:return}break;default:if(!U[e])return;++i.pos}}}function ef(e,t=p.NONE){i.end=i.pos,i.type=e,i.contextualKeyword=t}function ed(){if(i.isType){eg(f.greaterThan,1);return}let e=a.charCodeAt(i.pos+1);if(e===d.greaterThan){let e=a.charCodeAt(i.pos+2)===d.greaterThan?3:2;if(a.charCodeAt(i.pos+e)===d.equalsTo){eg(f.assign,e+1);return}eg(f.bitShiftR,e);return}e===d.equalsTo?eg(f.relationalOrEqual,2):eg(f.greaterThan,1)}function em(){i.type===f.greaterThan&&(i.pos-=1,ed())}function ek(e){switch(e){case d.numberSign:++i.pos,ef(f.hash);return;case d.dot:!function(){let e=a.charCodeAt(i.pos+1);if(e>=d.digit0&&e<=d.digit9){ey(!0);return}e===d.dot&&a.charCodeAt(i.pos+2)===d.dot?(i.pos+=3,ef(f.ellipsis)):(++i.pos,ef(f.dot))}();return;case d.leftParenthesis:++i.pos,ef(f.parenL);return;case d.rightParenthesis:++i.pos,ef(f.parenR);return;case d.semicolon:++i.pos,ef(f.semi);return;case d.comma:++i.pos,ef(f.comma);return;case d.leftSquareBracket:++i.pos,ef(f.bracketL);return;case d.rightSquareBracket:++i.pos,ef(f.bracketR);return;case d.leftCurlyBrace:o&&a.charCodeAt(i.pos+1)===d.verticalBar?eg(f.braceBarL,2):(++i.pos,ef(f.braceL));return;case d.rightCurlyBrace:++i.pos,ef(f.braceR);return;case d.colon:a.charCodeAt(i.pos+1)===d.colon?eg(f.doubleColon,2):(++i.pos,ef(f.colon));return;case d.questionMark:!function(){let e=a.charCodeAt(i.pos+1),t=a.charCodeAt(i.pos+2);e!==d.questionMark||o&&i.isType?e!==d.dot||t>=d.digit0&&t<=d.digit9?(++i.pos,ef(f.question)):(i.pos+=2,ef(f.questionDot)):t===d.equalsTo?eg(f.assign,3):eg(f.nullishCoalescing,2)}();return;case d.atSign:++i.pos,ef(f.at);return;case d.graveAccent:++i.pos,ef(f.backQuote);return;case d.digit0:{let e=a.charCodeAt(i.pos+1);if(e===d.lowercaseX||e===d.uppercaseX||e===d.lowercaseO||e===d.uppercaseO||e===d.lowercaseB||e===d.uppercaseB){!function(){for(i.pos+=2;;){let e=a.charCodeAt(i.pos);if(e>=d.digit0&&e<=d.digit9||e>=d.lowercaseA&&e<=d.lowercaseF||e>=d.uppercaseA&&e<=d.uppercaseF||e===d.underscore)i.pos++;else break}a.charCodeAt(i.pos)===d.lowercaseN?(++i.pos,ef(f.bigint)):ef(f.num)}();return}}case d.digit1:case d.digit2:case d.digit3:case d.digit4:case d.digit5:case d.digit6:case d.digit7:case d.digit8:case d.digit9:ey(!1);return;case d.quotationMark:case d.apostrophe:!function(e){for(i.pos++;;){if(i.pos>=a.length){M("Unterminated string constant");return}let t=a.charCodeAt(i.pos);if(t===d.backslash)i.pos++;else if(t===e)break;i.pos++}i.pos++,ef(f.string)}(e);return;case d.slash:a.charCodeAt(i.pos+1)===d.equalsTo?eg(f.assign,2):eg(f.slash,1);return;case d.percentSign:case d.asterisk:let t,n,r;t=e===d.asterisk?f.star:f.modulo,n=1,r=a.charCodeAt(i.pos+1),e===d.asterisk&&r===d.asterisk&&(n++,r=a.charCodeAt(i.pos+2),t=f.exponent),r===d.equalsTo&&a.charCodeAt(i.pos+2)!==d.greaterThan&&(n++,t=f.assign),eg(t,n);return;case d.verticalBar:case d.ampersand:!function(e){let t=a.charCodeAt(i.pos+1);if(t===e){a.charCodeAt(i.pos+2)===d.equalsTo?eg(f.assign,3):eg(e===d.verticalBar?f.logicalOR:f.logicalAND,2);return}if(e===d.verticalBar){if(t===d.greaterThan){eg(f.pipeline,2);return}if(t===d.rightCurlyBrace&&o){eg(f.braceBarR,2);return}}if(t===d.equalsTo){eg(f.assign,2);return}eg(e===d.verticalBar?f.bitwiseOR:f.bitwiseAND,1)}(e);return;case d.caret:a.charCodeAt(i.pos+1)===d.equalsTo?eg(f.assign,2):eg(f.bitwiseXOR,1);return;case d.plusSign:case d.dash:!function(e){let t=a.charCodeAt(i.pos+1);if(t===e){eg(f.preIncDec,2);return}t===d.equalsTo?eg(f.assign,2):e===d.plusSign?eg(f.plus,1):eg(f.minus,1)}(e);return;case d.lessThan:!function(){let e=a.charCodeAt(i.pos+1);if(e===d.lessThan){if(a.charCodeAt(i.pos+2)===d.equalsTo){eg(f.assign,3);return}i.isType?eg(f.lessThan,1):eg(f.bitShiftL,2);return}e===d.equalsTo?eg(f.relationalOrEqual,2):eg(f.lessThan,1)}();return;case d.greaterThan:ed();return;case d.equalsTo:case d.exclamationMark:!function(e){let t=a.charCodeAt(i.pos+1);if(t===d.equalsTo){eg(f.equality,a.charCodeAt(i.pos+2)===d.equalsTo?3:2);return}if(e===d.equalsTo&&t===d.greaterThan){i.pos+=2,ef(f.arrow);return}eg(e===d.equalsTo?f.eq:f.bang,1)}(e);return;case d.tilde:eg(f.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>=d.digit0&&e<=d.digit9||e===d.underscore)i.pos++;else break}}function ey(e){let t=!1,n=!1;e||e_();let r=a.charCodeAt(i.pos);if(r===d.dot&&(++i.pos,e_(),r=a.charCodeAt(i.pos)),(r===d.uppercaseE||r===d.lowercaseE)&&(((r=a.charCodeAt(++i.pos))===d.plusSign||r===d.dash)&&++i.pos,e_(),r=a.charCodeAt(i.pos)),r===d.lowercaseN?(++i.pos,t=!0):r===d.lowercaseM&&(++i.pos,n=!0),t){ef(f.bigint);return}if(n){ef(f.decimal);return}ef(f.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===f.braceR||n.type===f.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(f.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!==k.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===k.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let r=null;if(this.tokens.matches1(f.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),r=this.processProps(!0),this.tokens.matches2(f.slash,f.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(f.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(f.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(f.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(f.slash,f.jsxTagEnd));else if(this.tokens.matches1(f.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(f.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,f.jsxName,f.jsxName)&&!this.tokens.matches2AtIndex(e-1,f.greaterThan,f.jsxName)&&!this.tokens.matches1AtIndex(e,f.braceL)&&!this.tokens.matches1AtIndex(e,f.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,f.slash,f.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(f.jsxName)&&!this.tokens.matches1(f.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(f.jsxName,f.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(f.jsxName)){let e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(": true")}else if(this.tokens.matches1(f.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(f.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(f.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===k.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===k.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(f.jsxTagStart,f.slash))return;let e=!1;if(this.tokens.matches1(f.braceL))this.tokens.matches2(f.braceL,f.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(t?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),e=!0);else if(this.tokens.matches1(f.jsxTagStart))this.tokens.appendCode(t?", ":""),this.processJSXTag(),e=!0;else if(this.tokens.matches1(f.jsxText)||this.tokens.matches1(f.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>=d.lowercaseA&&t<=d.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]){var i,a;let t,r=10;if("x"===e[++o]){for(r=16,t=++o;o<e.length&&((i=e.charCodeAt(o))>=d.digit0&&i<=d.digit9||i>=d.lowercaseA&&i<=d.lowercaseF||i>=d.uppercaseA&&i<=d.uppercaseF);)o++}else{for(t=o;o<e.length&&(a=e.charCodeAt(o))>=d.digit0&&a<=d.digit9;)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!==f.name||s.isType||s.identifierRole!==m.Access&&s.identifierRole!==m.ObjectShorthand&&s.identifierRole!==m.ExportAccess||s.shadowsGlobal||r.add(e.identifierNameForToken(s)),s.type===f.jsxTagStart&&r.add(n.base),s.type===f.jsxTagStart&&t+1<e.tokens.length&&e.tokens[t+1].type===f.jsxTagEnd&&(r.add(n.base),r.add(n.fragmentBase)),s.type!==f.jsxName||s.identifierRole!==m.Access||eE(e.identifierNameForToken(s))&&e.tokens[t+1].type!==f.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,f._import)&&!this.tokens.matches3AtIndex(e,f._import,f.name,f.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,f._export)&&!this.tokens.matches2AtIndex(e,f._export,f.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){for(let[e,t]of(this.nonTypeIdentifiers=eN(this.tokens,this.options),this.importInfoByPath.entries()))!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,p._type)||this.tokens.matches1AtIndex(e,f._typeof))&&!this.tokens.matches1AtIndex(e+1,f.comma)&&!this.tokens.matchesContextualAtIndex(e+1,p._from)||this.tokens.matches1AtIndex(e,f.parenL))return;if(this.tokens.matches1AtIndex(e,f.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,f.comma)&&e++),this.tokens.matches1AtIndex(e,f.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,f.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,p._from)&&e++,!this.tokens.matches1AtIndex(e,f.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,f._export,f._var)||this.tokens.matches2AtIndex(e,f._export,f._let)||this.tokens.matches2AtIndex(e,f._export,f._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,f._export,f._function)||this.tokens.matches2AtIndex(e,f._export,f._class)){let t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,f._export,f.name,f._function)){let t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,f._export,f.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,f._export,f.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,f.braceL)||this.tokens.matches1AtIndex(n,f.dollarBraceL)||this.tokens.matches1AtIndex(n,f.bracketL))t++;else if(this.tokens.matches1AtIndex(n,f.braceR)||this.tokens.matches1AtIndex(n,f.bracketR))t--;else if(0!==t||this.tokens.matches1AtIndex(n,f.name)){if(this.tokens.matches1AtIndex(1,f.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,p._from))e++;else{for(let{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(!this.tokens.matches1AtIndex(e,f.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,f._export,f.star,f._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,f.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,f.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,f.comma,f.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,f.braceR)){e++;break}if(this.tokens.matches1AtIndex(e,f.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=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){(function(e,t){for(let n of e.tokens)if(n.type===f.name&&!n.isType&&function(e){let t=e.identifierRole;return t===m.FunctionScopedDeclaration||t===m.BlockScopedDeclaration||t===m.ObjectShorthandFunctionScopedDeclaration||t===m.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===f.name&&n.has(a)){if(function(e){let t=e.identifierRole;return t===m.TopLevelDeclaration||t===m.BlockScopedDeclaration||t===m.ObjectShorthandTopLevelDeclaration||t===m.ObjectShorthandBlockScopedDeclaration}(i))eP(r[r.length-1],e,a);else if(function(e){let t=e.identifierRole;return t===m.FunctionScopedDeclaration||t===m.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===f.name||e.type===f.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===f.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 eB=eF.union(eF.lit("jsx"),eF.lit("typescript"),eF.lit("flow"),eF.lit("imports"),eF.lit("react-hot-loader"),eF.lit("jest")),e$=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:eB,SourceMapOptions:e$,Options:eM});function eV(e){tZ(),eW(e)}function eU(){tZ(),i.tokens[i.tokens.length-1].identifierRole=m.ImportDeclaration}function eW(e){let t;t=0===i.scopeDepth?m.TopLevelDeclaration:e?m.BlockScopedDeclaration:m.FunctionScopedDeclaration,i.tokens[i.tokens.length-1].identifierRole=t}function eH(e){switch(i.type){case f._this:{let e=Y(0);Z(),ee(e);return}case f._yield:case f.name:i.type=f.name,eV(e);return;case f.bracketL:Z(),eX(f.bracketR,e,!0);return;case f.braceL:tV(!0,e);return;default:M()}}function eX(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:($(f.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(f.comma));else if(et(e))break;else if(er(f.ellipsis)){Z(),eH(t),eG(),et(f.comma),$(e);break}else{var l,u;l=r,u=t,l&&eQ([p._public,p._protected,p._private,p._readonly,p._override]),eJ(u),eG(),eJ(u,!0)}}function eG(){o?function(){let e=Y(0);et(f.question),er(f.colon)&&tQ(),ee(e)}():s&&function(){let e=Y(0);et(f.question),ts(),ee(e)}()}function eJ(e,t=!1){if(t||eH(e),!et(f.eq))return;let n=i.tokens.length-1;tw(),i.tokens[n].rhsEndIndex=i.tokens.length}function ez(){return er(f.name)}function eZ(){let e=i.snapshot();return Z(),!!(er(f.bracketL)||er(f.braceL)||er(f.star)||er(f.ellipsis)||er(f.hash)||er(f.name)||i.type&f.IS_KEYWORD||er(f.string)||er(f.num)||er(f.bigint)||er(f.decimal))&&!P()||(i.restoreFromSnapshot(e),!1)}function eQ(e){for(;null!==eY(e););}function eY(e){if(!er(f.name))return null;let t=i.contextualKeyword;if(-1!==e.indexOf(t)&&eZ()){switch(t){case p._readonly:i.tokens[i.tokens.length-1].type=f._readonly;break;case p._abstract:i.tokens[i.tokens.length-1].type=f._abstract;break;case p._static:i.tokens[i.tokens.length-1].type=f._static;break;case p._public:i.tokens[i.tokens.length-1].type=f._public;break;case p._private:i.tokens[i.tokens.length-1].type=f._private;break;case p._protected:i.tokens[i.tokens.length-1].type=f._protected;break;case p._override:i.tokens[i.tokens.length-1].type=f._override;break;case p._declare:i.tokens[i.tokens.length-1].type=f._declare}return t}return null}function e1(){for(tZ();et(f.dot);)tZ()}function e0(){$(f._import),$(f.parenL),$(f.string),$(f.parenR),et(f.dot)&&e1(),er(f.lessThan)&&t_()}function e2(){er(f.lessThan)&&e4()}function e4(){let e=Y(0);for(er(f.lessThan)||er(f.typeParameterStart)?Z():M();!et(f.greaterThan)&&!i.error;)!function(){et(f._const);let e=et(f._in),t=j(p._out);et(f._const),(e||t)&&!er(f.name)?i.tokens[i.tokens.length-1].type=f.name:tZ(),et(f._extends)&&ti(),et(f.eq)&&ti()}(),et(f.comma);ee(e)}function e3(e){var t;let n=e===f.arrow;e2(),$(f.parenL),i.scopeDepth++,t=!1,eX(f.parenR,t),i.scopeDepth--,n?tr(e):er(e)&&tr(e)}function e8(){et(f.comma)||B()}function e5(){e3(f.colon),e8()}function e6(){if(!(er(f.bracketL)&&function(){let e=i.snapshot();Z();let t=et(f.name)&&er(f.colon);return i.restoreFromSnapshot(e),t}()))return!1;let e=Y(0);return $(f.bracketL),tZ(),to(),$(f.bracketR),ts(),e8(),ee(e),!0}function e9(e){et(f.question),!e&&(er(f.parenL)||er(f.lessThan))?e3(f.colon):ts(),e8()}function e7(){for($(f.braceL);!et(f.braceR)&&!i.error;)!function(){if(er(f.parenL)||er(f.lessThan)){e5();return}if(er(f._new)){Z(),er(f.parenL)||er(f.lessThan)?e5():e9(!1);return}let e=!!eY([p._readonly]);!e6()&&((R(p._get)||R(p._set))&&eZ(),tU(-1),e9(e))}()}function te(e){e===g.TSAbstractConstructorType&&O(p._abstract),(e===g.TSConstructorType||e===g.TSAbstractConstructorType)&&$(f._new);let t=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!1,e3(f.arrow),i.inDisallowConditionalTypesContext=t}function tt(){if(R(p._keyof)||R(p._unique)||R(p._readonly))Z(),tt();else if(R(p._infer))!function(){if(O(p._infer),tZ(),er(f._extends)){let e=i.snapshot();$(f._extends);let t=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!0,ti(),i.inDisallowConditionalTypesContext=t,(i.error||!i.inDisallowConditionalTypesContext&&er(f.question))&&i.restoreFromSnapshot(e)}}();else{let e=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!1,function(){for(function(){switch(i.type){case f.name:e1(),!P()&&er(f.lessThan)&&t_();return;case f._void:case f._null:case f.string:case f.num:case f.bigint:case f.decimal:case f._true:case f._false:Z();return;case f.minus:Z(),Z();return;case f._this:Z(),R(p._is)&&!P()&&(Z(),to());return;case f._typeof:$(f._typeof),er(f._import)?e0():e1(),!P()&&er(f.lessThan)&&t_();return;case f._import:e0();return;case f.braceL:(function(){let e=i.snapshot(),t=(Z(),et(f.plus)||et(f.minus))?R(p._readonly):(R(p._readonly)&&Z(),!!er(f.bracketL)&&(Z(),!!ez()&&(Z(),er(f._in))));return i.restoreFromSnapshot(e),t})()?($(f.braceL),er(f.plus)||er(f.minus)?(Z(),O(p._readonly)):j(p._readonly),$(f.bracketL),tZ(),$(f._in),ti(),j(p._as)&&ti(),$(f.bracketR),er(f.plus)||er(f.minus)?(Z(),$(f.question)):et(f.question),et(f.colon)&&ti(),B(),$(f.braceR)):e7();return;case f.bracketL:!function(){for($(f.bracketL);!et(f.bracketR)&&!i.error;)et(f.ellipsis)?ti():(ti(),et(f.question)),et(f.colon)&&ti(),et(f.comma)}();return;case f.parenL:$(f.parenL),ti(),$(f.parenR);return;case f.backQuote:!function(){for(Q(),Q();!er(f.backQuote)&&!i.error;)$(f.dollarBraceL),ti(),Q(),Q();Z()}();return;default:if(i.type&f.IS_KEYWORD){Z(),i.tokens[i.tokens.length-1].type=f.name;return}}M()}();!P()&&et(f.bracketL);)et(f.bracketR)||(ti(),$(f.bracketR))}(),i.inDisallowConditionalTypesContext=e}}function tn(){if(et(f.bitwiseAND),tt(),er(f.bitwiseAND))for(;et(f.bitwiseAND);)tt()}function tr(e){let t=Y(0);$(e),!function(){let e=i.snapshot();if(R(p._asserts)){if(Z(),j(p._is))return ti(),!0;if(ez()||er(f._this))return Z(),j(p._is)&&ti(),!0;i.restoreFromSnapshot(e)}else if(ez()||er(f._this)){if(Z(),R(p._is)&&!P())return Z(),ti(),!0;i.restoreFromSnapshot(e)}return!1}()&&ti(),ee(t)}function ts(){er(f.colon)&&to()}function to(){let e=Y(0);$(f.colon),ti(),ee(e)}function ti(){if(ta(),i.inDisallowConditionalTypesContext||P()||!et(f._extends))return;let e=i.inDisallowConditionalTypesContext;i.inDisallowConditionalTypesContext=!0,ta(),i.inDisallowConditionalTypesContext=e,$(f.question),ti(),$(f.colon),ti()}function ta(){if(er(f.lessThan)||er(f.parenL)&&function(){let e=i.snapshot(),t=(Z(),!!(er(f.parenR)||er(f.ellipsis)||function(){if(er(f.name)||er(f._this))return Z(),!0;if(er(f.braceL)||er(f.bracketL)){let e=1;for(Z();e>0&&!i.error;)er(f.braceL)||er(f.bracketL)?e++:(er(f.braceR)||er(f.bracketR))&&e--,Z();return!0}return!1}()&&(er(f.colon)||er(f.comma)||er(f.question)||er(f.eq)||er(f.parenR)&&(Z(),er(f.arrow)))));return i.restoreFromSnapshot(e),t}()){te(g.TSFunctionType);return}if(er(f._new)){te(g.TSConstructorType);return}if(R(p._abstract)&&es()===f._new){te(g.TSAbstractConstructorType);return}!function(){if(et(f.bitwiseOR),tn(),er(f.bitwiseOR))for(;et(f.bitwiseOR);)tn()}()}function tc(){for(;!er(f.braceL)&&!i.error;)e1(),er(f.lessThan)&&t_(),et(f.comma)}function tl(){for(eV(!1),$(f.braceL);!et(f.braceR)&&!i.error;)!function(){if(er(f.string)?Z():tZ(),et(f.eq)){let e=i.tokens.length-1;tw(),i.tokens[e].rhsEndIndex=i.tokens.length}}(),et(f.comma)}function tu(){$(f.braceL),nm(f.braceR)}function th(){eV(!1),et(f.dot)?th():tu()}function tp(){R(p._global)?tZ():er(f.string)?tq():M(),er(f.braceL)?tu():B()}function tf(){eU(),$(f.eq),R(p._require)&&es()===f.parenL?(O(p._require),$(f.parenL),er(f.string)||M(),function(){Z()}(),$(f.parenR)):e1(),B()}function td(){return tm(i.contextualKeyword,!0)}function tm(e,t){switch(e){case p._abstract:if(tk(t)&&er(f._class))return i.tokens[i.tokens.length-1].type=f._abstract,nT(!0,!1),!0;break;case p._enum:if(tk(t)&&er(f.name))return i.tokens[i.tokens.length-1].type=f._enum,tl(),!0;break;case p._interface:if(tk(t)&&er(f.name)){let e=Y(t?2:1);return eV(!1),e2(),et(f._extends)&&tc(),e7(),ee(e),!0}break;case p._module:if(tk(t)){if(er(f.string)){let e=Y(t?2:1);return tp(),ee(e),!0}if(er(f.name)){let e=Y(t?2:1);return th(),ee(e),!0}}break;case p._namespace:if(tk(t)&&er(f.name)){let e=Y(t?2:1);return th(),ee(e),!0}break;case p._type:if(tk(t)&&er(f.name)){let e=Y(t?2:1);return eV(!1),e2(),$(f.eq),ti(),B(),ee(e),!0}}return!1}function tk(e){return e?(Z(),!0):!F()}function tg(){i.type===f.bitShiftL&&(i.pos-=1,ef(f.lessThan)),t_()}function t_(){let e=Y(0);for($(f.lessThan);!er(f.greaterThan)&&!i.error;)ti(),et(f.comma);e?($(f.greaterThan),ee(e)):(ee(e),em(),$(f.greaterThan),i.tokens[i.tokens.length-1].isType=!0)}function ty(){if(er(f.name))switch(i.contextualKeyword){case p._abstract:case p._declare:case p._enum:case p._interface:case p._module:case p._namespace:case p._type:return!0}return!1}(l=g||(g={}))[l.TSFunctionType=0]="TSFunctionType",l[l.TSConstructorType=1]="TSConstructorType",l[l.TSAbstractConstructorType=2]="TSAbstractConstructorType";function tx(e){if(tb(),!et(f.colon)){i.tokens[i.tokens.length-1].identifierRole=e;return}tb()}function tT(){let e=i.tokens.length;tx(m.Access);let t=!1;for(;er(f.dot);)t=!0,tb(),tb();if(!t){let t=i.tokens[e],n=a.charCodeAt(t.start);n>=d.lowercaseA&&n<=d.lowercaseZ&&(t.identifierRole=null)}}function tb(){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===d.dash);ef(f.jsxName)}();else if(e===d.quotationMark||e===d.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(f.string)}(e);else switch(++i.pos,e){case d.greaterThan:ef(f.jsxTagEnd);break;case d.lessThan:ef(f.jsxTagStart);break;case d.slash:ef(f.slash);break;case d.equalsTo:ef(f.eq);break;case d.leftCurlyBrace:ef(f.braceL);break;case d.dot:ef(f.dot);break;case d.colon:ef(f.colon);break;default:M()}}function tI(){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===d.lessThan||n===d.leftCurlyBrace){if(i.pos===i.start){if(n===d.lessThan){i.pos++,ef(f.jsxTagStart);return}ek(n);return}e&&!t?ef(f.jsxEmptyText):ef(f.jsxText);return}n===d.lineFeed?e=!0:n!==d.space&&n!==d.carriageReturn&&n!==d.tab&&(t=!0),i.pos++}}()}class tv{constructor(e){this.stop=e}}function tC(e=!1){if(tw(e),er(f.comma))for(;et(f.comma);)tw(e)}function tw(e=!1,t=!1){if(s)return r?function(e,t){if(!er(f.lessThan))return tE(e,t);let n=i.snapshot(),r=tE(e,t);return i.error&&(i.restoreFromSnapshot(n),i.type=f.typeParameterStart,e4(),(r=tE(e,t))||M()),r}(e,t):function(e,t){if(!er(f.lessThan))return tE(e,t);let n=i.snapshot();e4();let r=tE(e,t);return(r||M(),i.error)?(i.restoreFromSnapshot(n),tE(e,t)):r}(e,t);return o?function(e,t){if(er(f.lessThan)){let n=i.snapshot(),r=tE(e,t);if(!i.error)return r;i.restoreFromSnapshot(n),i.type=f.typeParameterStart;let s=Y(0);if(t8(),ee(s),r=tE(e,t))return!0;M()}return tE(e,t)}(e,t):tE(e,t)}function tE(e,t){var n,r;if(er(f._yield))return Z(),er(f.semi)||D()||(et(f.star),tw()),!1;(er(f.parenL)||er(f.name)||er(f._yield))&&(i.potentialArrowAt=i.start);let a=!!function(e){let t=i.tokens.length;return!!tS()||(function e(t,n,r){if(s&&(f._in&f.PRECEDENCE_MASK)>n&&!P()&&(j(p._as)||j(p._satisfies))){let s=Y(1);ti(),ee(s),em(),e(t,n,r);return}let o=i.type&f.PRECEDENCE_MASK;if(o>0&&(!r||!er(f._in))&&o>n){let s=i.type;Z(),s===f.nullishCoalescing&&(i.tokens[i.tokens.length-1].nullishStartIndex=t);let a=i.tokens.length;tS(),e(a,s&f.IS_RIGHT_ASSOCIATIVE?o-1:o,r),s===f.nullishCoalescing&&(i.tokens[t].numNullishCoalesceStarts++,i.tokens[i.tokens.length-1].numNullishCoalesceEnds++),e(t,n,r)}}(t,-1,e),!1)}(n=e)||(r=n,s||o?function(e){if(er(f.question)){let e=es();if(e===f.colon||e===f.comma||e===f.parenR)return}tA(e)}(r):tA(r),!1);return(t&&tM(),i.type&f.IS_ASSIGN)?(Z(),tw(e),!1):a}function tA(e){et(f.question)&&(tw(),$(f.colon),tw(e))}function tS(){if(s&&!r&&et(f.lessThan))return!function(){let e=Y(1);ti(),$(f.greaterThan),ee(e),tS()}(),!1;if(R(p._module)&&el()===d.leftCurlyBrace&&!q())return O(p._module),$(f.braceL),nm(f.braceR),!1;if(i.type&f.IS_PREFIX)return Z(),tS(),!1;if(tN())return!0;for(;i.type&f.IS_POSTFIX&&!D();)i.type===f.preIncDec&&(i.type=f.postIncDec),Z();return!1}function tN(){let e=i.tokens.length;return!!tq()||(tR(e),i.tokens.length>e&&i.tokens[e].isOptionalChainStart&&(i.tokens[i.tokens.length-1].isOptionalChainEnd=!0),!1)}function tR(e,t=!1){o?function(e,t=!1){if(i.tokens[i.tokens.length-1].contextualKeyword===p._async&&er(f.lessThan)){let e=i.snapshot();if(function(){i.scopeDepth++;let e=i.tokens.length;return nx(),!!t$()&&(tH(e),!0)}()&&!i.error)return;i.restoreFromSnapshot(e)}tL(e,t)}(e,t):tL(e,t)}function tL(e,t=!1){let n=new tv(!1);do{var r,a,c;r=e,a=t,c=n,s?function(e,t,n){if(!P()&&et(f.bang)){i.tokens[i.tokens.length-1].type=f.nonNullAssertion;return}if(er(f.lessThan)||er(f.bitShiftL)){let n=i.snapshot();if(!t&&tO()&&function(){let e=i.snapshot();return(e4(),nx(),er(f.colon)&&tr(f.colon),$(f.arrow),i.error)?(i.restoreFromSnapshot(e),!1):(tG(!0),!0)}()||(tg(),!t&&et(f.parenL)?(i.tokens[i.tokens.length-1].subscriptStartIndex=e,tD()):er(f.backQuote)?tK():(i.type===f.greaterThan||i.type!==f.parenL&&i.type&f.IS_EXPRESSION_START&&!P())&&M(),!i.error))return;i.restoreFromSnapshot(n)}else!t&&er(f.questionDot)&&es()===f.lessThan&&(Z(),i.tokens[e].isOptionalChainStart=!0,i.tokens[i.tokens.length-1].subscriptStartIndex=e,t_(),$(f.parenL),tD());tj(e,t,n)}(r,a,c):o?function(e,t,n){if(er(f.questionDot)&&es()===f.lessThan){if(t){n.stop=!0;return}Z(),t5(),$(f.parenL),tD();return}if(!t&&er(f.lessThan)){let e=i.snapshot();if(t5(),$(f.parenL),tD(),!i.error)return;i.restoreFromSnapshot(e)}tj(e,t,n)}(r,a,c):tj(r,a,c)}while(!n.stop&&!i.error)}function tj(e,t,n){if(!t&&et(f.doubleColon))tP(),n.stop=!0,tR(e,t);else if(er(f.questionDot)){if(i.tokens[e].isOptionalChainStart=!0,t&&es()===f.parenL){n.stop=!0;return}Z(),i.tokens[i.tokens.length-1].subscriptStartIndex=e,et(f.bracketL)?(tC(),$(f.bracketR)):et(f.parenL)?tD():tF()}else if(et(f.dot))i.tokens[i.tokens.length-1].subscriptStartIndex=e,tF();else if(et(f.bracketL))i.tokens[i.tokens.length-1].subscriptStartIndex=e,tC(),$(f.bracketR);else if(!t&&er(f.parenL)){if(tO()){var r;let t=i.snapshot(),a=i.tokens.length;Z(),i.tokens[i.tokens.length-1].subscriptStartIndex=e;let l=c++;i.tokens[i.tokens.length-1].contextId=l,tD(),i.tokens[i.tokens.length-1].contextId=l,(er(f.colon)||er(f.arrow))&&(i.restoreFromSnapshot(t),n.stop=!0,i.scopeDepth++,nx(),r=a,s?er(f.colon)&&to():o&&function(){if(er(f.colon)){let e=i.noAnonFunctionType;i.noAnonFunctionType=!0,tQ(),i.noAnonFunctionType=e}}(),$(f.arrow),tH(r))}else{Z(),i.tokens[i.tokens.length-1].subscriptStartIndex=e;let t=c++;i.tokens[i.tokens.length-1].contextId=t,tD(),i.tokens[i.tokens.length-1].contextId=t}}else er(f.backQuote)?tK():n.stop=!0}function tO(){return i.tokens[i.tokens.length-1].contextualKeyword===p._async&&!D()}function tD(){let e=!0;for(;!et(f.parenR)&&!i.error;){if(e)e=!1;else if($(f.comma),et(f.parenR))break;tz(!1)}}function tP(){let e=i.tokens.length;tq(),tR(e,!0)}function tq(){if(et(f.modulo))return tZ(),!1;if(er(f.jsxText)||er(f.jsxEmptyText))return Z(),!1;if(er(f.lessThan)&&r)return i.type=f.jsxTagStart,function e(){tb(),function t(){let n=i.tokens.length-1;i.tokens[n].jsxRole=k.NoChildren;let r=0;if(!function(t){if(er(f.jsxTagEnd))return!1;tT(),s&&function(){if(et(f.jsxTagStart)){i.tokens[i.tokens.length-1].type=f.typeParameterStart;let e=Y(1);for(;!er(f.greaterThan)&&!i.error;)ti(),et(f.comma);tb(),ee(e)}}();let n=!1;for(;!er(f.slash)&&!er(f.jsxTagEnd)&&!i.error;){if(et(f.braceL)){n=!0,$(f.ellipsis),tw(),tb();continue}n&&i.end-i.start==3&&a.charCodeAt(i.start)===d.lowercaseK&&a.charCodeAt(i.start+1)===d.lowercaseE&&a.charCodeAt(i.start+2)===d.lowercaseY&&(i.tokens[t].jsxRole=k.KeyAfterPropSpread),tx(m.ObjectKey),er(f.eq)&&(tb(),function(){switch(i.type){case f.braceL:Z(),tC(),tb();return;case f.jsxTagStart:e(),tb();return;case f.string:tb();return;default:M("JSX value should be either an expression or a quoted JSX text")}}())}let r=er(f.slash);return r&&tb(),r}(n))for(tI();;)switch(i.type){case f.jsxTagStart:if(tb(),er(f.slash)){tb(),er(f.jsxTagEnd)||tT(),i.tokens[n].jsxRole!==k.KeyAfterPropSpread&&(1===r?i.tokens[n].jsxRole=k.OneChild:r>1&&(i.tokens[n].jsxRole=k.StaticChildren));return}r++,t(),tI();break;case f.jsxText:r++,tI();break;case f.jsxEmptyText:tI();break;case f.braceL:Z(),er(f.ellipsis)?($(f.ellipsis),tC(),tI(),r+=2):(er(f.braceR)||(r++,tC()),tI());break;default:M();return}}()}(),Z(),!1;let e=i.potentialArrowAt===i.start;switch(i.type){case f.slash:case f.assign:i.type===f.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===d.leftSquareBracket)n=!0;else if(r===d.rightSquareBracket&&n)n=!1;else if(r===d.slash&&!n)break;t=r===d.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===d.backslash){if(i.pos+=2,a.charCodeAt(i.pos)===d.leftCurlyBrace){for(;i.pos<a.length&&a.charCodeAt(i.pos)!==d.rightCurlyBrace;)i.pos++;i.pos++}}else break}}(),ef(f.regexp)}();case f._super:case f._this:case f.regexp:case f.num:case f.bigint:case f.decimal:case f.string:case f._null:case f._true:case f._false:return Z(),!1;case f._import:return Z(),er(f.dot)&&(i.tokens[i.tokens.length-1].type=f.name,Z(),tZ()),!1;case f.name:{let t=i.tokens.length,n=i.start,r=i.contextualKeyword;if(tZ(),r===p._await)return tS(),!1;if(r===p._async&&er(f._function)&&!D())return Z(),ny(n,!1),!1;if(e&&r===p._async&&!D()&&er(f.name))return i.scopeDepth++,eV(!1),$(f.arrow),tH(t),!0;else if(er(f._do)&&!D())return Z(),nd(),!1;if(e&&!D()&&er(f.arrow))return i.scopeDepth++,eW(!1),$(f.arrow),tH(t),!0;return i.tokens[i.tokens.length-1].identifierRole=m.Access,!1}case f._do:return Z(),nd(),!1;case f.parenL:return function e(t){let n=i.snapshot(),r=i.tokens.length;$(f.parenL);let s=!0;for(;!er(f.parenR)&&!i.error;){if(s)s=!1;else if($(f.comma),er(f.parenR))break;if(er(f.ellipsis)){Z(),eH(!1),tM();break}tw(!1,!0)}return $(f.parenR),!!(t&&(er(f.colon)||!D())&&t$())&&(i.restoreFromSnapshot(n),i.scopeDepth++,nx(),t$(),tH(r),!i.error||(i.restoreFromSnapshot(n),e(!1),!1))}(e);case f.bracketL:return Z(),tJ(f.bracketR,!0),!1;case f.braceL:return tV(!1,!1),!1;case f._function:return function(){let e=i.start;tZ(),et(f.dot)&&tZ(),ny(e,!1)}(),!1;case f.at:nh();case f._class:return nT(!1),!1;case f._new:return function(){if($(f._new),et(f.dot)){tZ();return}tP(),et(f.questionDot),o&&function(){if(er(f.lessThan)){let e=i.snapshot();t5(),i.error&&i.restoreFromSnapshot(e)}}(),et(f.parenL)&&tJ(f.parenR)}(),!1;case f.backQuote:return tK(),!1;case f.doubleColon:return Z(),tP(),!1;case f.hash:{let e=el();return H[e]||e===d.backslash?tF():Z(),!1}default:return M(),!1}}function tF(){et(f.hash),tZ()}function tB(){$(f.parenL),tC(),$(f.parenR)}function t$(){return s?function(){if(er(f.colon)){let e=i.snapshot();tr(f.colon),D()&&M(),er(f.arrow)||M(),i.error&&i.restoreFromSnapshot(e)}return et(f.arrow)}():o?function(){if(er(f.colon)){let e=Y(0),t=i.snapshot(),n=i.noAnonFunctionType;i.noAnonFunctionType=!0,t1(),i.noAnonFunctionType=n,D()&&M(),er(f.arrow)||M(),i.error&&i.restoreFromSnapshot(t),ee(e)}return et(f.arrow)}():et(f.arrow)}function tM(){(s||o)&&(en(f.question),er(f.colon)&&(s?to():o&&tQ()))}function tK(){for(Q(),Q();!er(f.backQuote)&&!i.error;)$(f.dollarBraceL),tC(),Q(),Q();Z()}function tV(e,t){let n=c++,r=!0;for(Z(),i.tokens[i.tokens.length-1].contextId=n;!et(f.braceR)&&!i.error;){var a,l,u;if(r)r=!1;else if($(f.comma),et(f.braceR))break;let c=!1;if(er(f.ellipsis)){let n=i.tokens.length;if(Z(),tw(!1),e&&(i.tokens.length===n+2&&eW(t),et(f.braceR)))break;continue}e||(c=et(f.star)),!e&&R(p._async)?(c&&M(),tZ(),er(f.colon)||er(f.parenL)||er(f.braceR)||er(f.eq)||er(f.comma)||(er(f.star)&&(Z(),c=!0),tU(n))):tU(n),a=e,l=t,u=n,s?e2():o&&er(f.lessThan)&&(t8(),er(f.parenL)||M()),!function(e,t){let n=i.start;return er(f.parenL)?(e&&M(),tW(n,!1),!0):!!(!e&&(er(f.string)||er(f.num)||er(f.bracketL)||er(f.name)||i.type&f.IS_KEYWORD))&&(tU(t),tW(n,!1),!0)}(a,u)&&function(e,t){let n;if(et(f.colon)){e?eJ(t):tw(!1);return}n=e?0===i.scopeDepth?m.ObjectShorthandTopLevelDeclaration:t?m.ObjectShorthandBlockScopedDeclaration:m.ObjectShorthandFunctionScopedDeclaration:m.ObjectShorthand,i.tokens[i.tokens.length-1].identifierRole=n,eJ(t,!0)}(a,l)}i.tokens[i.tokens.length-1].contextId=n}function tU(e){o&&na(),et(f.bracketL)?(i.tokens[i.tokens.length-1].contextId=e,tw(),$(f.bracketR)):(er(f.num)||er(f.string)||er(f.bigint)||er(f.decimal)?tq():tF(),i.tokens[i.tokens.length-1].identifierRole=m.ObjectKey),i.tokens[i.tokens.length-1].contextId=e}function tW(e,t){let n=c++;i.scopeDepth++;let r=i.tokens.length;nx(t,n),tX(e,n);let s=i.tokens.length;i.scopes.push(new E(r,s,!0)),i.scopeDepth--}function tH(e){tG(!0);let t=i.tokens.length;i.scopes.push(new E(e,t,!0)),i.scopeDepth--}function tX(e,t=0){var n;s?function(e,t){if(er(f.colon)&&tr(f.colon),!er(f.braceL)&&F()){let t=i.tokens.length-1;for(;t>=0&&(i.tokens[t].start>=e||i.tokens[t].type===f._default||i.tokens[t].type===f._export);)i.tokens[t].isType=!0,t--;return}tG(!1,t)}(e,t):o?(n=t,er(f.colon)&&t1(),tG(!1,n)):tG(!1,t)}function tG(e,t=0){e&&!er(f.braceL)?tw():nd(!0,t)}function tJ(e,t=!1){let n=!0;for(;!et(e)&&!i.error;){if(n)n=!1;else if($(f.comma),et(e))break;tz(t)}}function tz(e){e&&er(f.comma)||(er(f.ellipsis)?(Z(),tw(!1),tM()):er(f.question)?Z():tw(!1,!0))}function tZ(){Z(),i.tokens[i.tokens.length-1].type=f.name}function tQ(e){let t=Y(0);$(e||f.colon),no(),ee(t)}function tY(){$(f.modulo),O(p._checks),et(f.parenL)&&(tC(),$(f.parenR))}function t1(){let e=Y(0);$(f.colon),er(f.modulo)?tY():(no(),er(f.modulo)&&tY()),ee(e)}function t0(e=!1){if(tZ(),er(f.lessThan)&&t8(),et(f._extends))do t2();while(!e&&et(f.comma));if(R(p._mixins)||R(p._implements)){Z();do t2();while(et(f.comma))}t7(e,!1,e)}function t2(){ne(!1),er(f.lessThan)&&t5()}function t4(){tZ(),er(f.lessThan)&&t8(),tQ(f.eq),B()}function t3(e){O(p._type),tZ(),er(f.lessThan)&&t8(),er(f.colon)&&tQ(f.colon),e||tQ(f.eq),B()}function t8(){let e=Y(0);er(f.lessThan)||er(f.typeParameterStart)?Z():M();do na(),ni(),et(f.eq)&&no(),er(f.greaterThan)||$(f.comma);while(!er(f.greaterThan)&&!i.error);$(f.greaterThan),ee(e)}function t5(){let e=Y(0);for($(f.lessThan);!er(f.greaterThan)&&!i.error;)no(),er(f.greaterThan)||$(f.comma);$(f.greaterThan),ee(e)}function t6(){er(f.num)||er(f.string)?tq():tZ()}function t9(){for(er(f.lessThan)&&t8(),$(f.parenL);!er(f.parenR)&&!er(f.ellipsis)&&!i.error;)nt(),er(f.parenR)||$(f.comma);et(f.ellipsis)&&nt(),$(f.parenR),tQ()}function t7(e,t,n){let r;for(t&&er(f.braceBarL)?($(f.braceBarL),r=f.braceBarR):($(f.braceL),r=f.braceR);!er(r)&&!i.error;){if(n&&R(p._proto)){let t=es();t!==f.colon&&t!==f.question&&(Z(),e=!1)}if(e&&R(p._static)){let e=es();e!==f.colon&&e!==f.question&&Z()}if(na(),et(f.bracketL))et(f.bracketL)?(t6(),$(f.bracketR),$(f.bracketR),er(f.lessThan)||er(f.parenL)?t9():(et(f.question),tQ())):(es()===f.colon?(t6(),tQ()):no(),$(f.bracketR),tQ());else if(er(f.parenL)||er(f.lessThan))t9();else{if(R(p._get)||R(p._set)){let e=es();(e===f.name||e===f.string||e===f.num)&&Z()}er(f.ellipsis)?($(f.ellipsis),et(f.comma)||et(f.semi),er(f.braceR)||no()):(t6(),er(f.lessThan)||er(f.parenL)?t9():(et(f.question),tQ()))}et(f.semi)||et(f.comma)||er(f.braceR)||er(f.braceBarR)||M()}$(r)}function ne(e){for(e||tZ();et(f.dot);)tZ()}function nt(){let e=es();e===f.colon||e===f.question?(tZ(),et(f.question),tQ()):no()}function nn(){for(;!er(f.parenR)&&!er(f.ellipsis)&&!i.error;)nt(),er(f.parenR)||$(f.comma);et(f.ellipsis)&&nt()}function nr(){!function e(){et(f.question)?e():function(){for(function e(){let t=!1,n=i.noAnonFunctionType;switch(i.type){case f.name:if(R(p._interface)){!function(){if(O(p._interface),et(f._extends))do t2();while(et(f.comma));t7(!1,!1,!1)}();return}tZ(),ne(!0),er(f.lessThan)&&t5();return;case f.braceL:t7(!1,!1,!1);return;case f.braceBarL:t7(!1,!0,!1);return;case f.bracketL:!function(){for($(f.bracketL);i.pos<a.length&&!er(f.bracketR)&&(no(),!er(f.bracketR));)$(f.comma);$(f.bracketR)}();return;case f.lessThan:t8(),$(f.parenL),nn(),$(f.parenR),$(f.arrow),no();return;case f.parenL:if(Z(),!er(f.parenR)&&!er(f.ellipsis)){if(er(f.name)){let e=es();t=e!==f.question&&e!==f.colon}else t=!0}if(t){if(i.noAnonFunctionType=!1,no(),i.noAnonFunctionType=n,i.noAnonFunctionType||!(er(f.comma)||er(f.parenR)&&es()===f.arrow)){$(f.parenR);return}et(f.comma)}nn(),$(f.parenR),$(f.arrow),no();return;case f.minus:Z(),Z();return;case f.string:case f.num:case f._true:case f._false:case f._null:case f._this:case f._void:case f.star:Z();return;default:if(i.type===f._typeof){$(f._typeof),e();return}if(i.type&f.IS_KEYWORD){Z(),i.tokens[i.tokens.length-1].type=f.name;return}}M()}();!D()&&(er(f.bracketL)||er(f.questionDot));)et(f.questionDot),$(f.bracketL),et(f.bracketR)||(no(),$(f.bracketR))}()}(),!i.noAnonFunctionType&&et(f.arrow)&&no()}function ns(){for(et(f.bitwiseAND),nr();et(f.bitwiseAND);)nr()}function no(){!function(){for(et(f.bitwiseOR),ns();et(f.bitwiseOR);)ns()}()}function ni(){tZ(),er(f.colon)&&tQ()}function na(){(er(f.plus)||er(f.minus))&&(Z(),i.tokens[i.tokens.length-1].isType=!0)}function nc(){O(p._enum),i.tokens[i.tokens.length-1].type=f._enum,tZ(),j(p._of)&&Z(),$(f.braceL),function(){for(;!er(f.braceR)&&!i.error&&!et(f.ellipsis);)tZ(),et(f.eq)&&Z(),er(f.braceR)||$(f.comma)}(),$(f.braceR)}function nl(e){!(o&&function(){if(er(f.name)&&i.contextualKeyword===p._interface){let e=Y(0);return Z(),t0(),ee(e),!0}return!!R(p._enum)&&(nc(),!0)}())&&(er(f.at)&&nh(),function(e){var t;if(s&&function(){if(i.type===f._const){let e=ei();if(e.type===f.name&&e.contextualKeyword===p._enum)return $(f._const),O(p._enum),i.tokens[i.tokens.length-1].type=f._enum,tl(),!0}return!1}())return;let n=i.type;switch(n){case f._break:case f._continue:Z(),F()||(tZ(),B());return;case f._debugger:Z(),B();return;case f._do:Z(),nl(!1),$(f._while),tB(),et(f.semi);return;case f._for:(function(){i.scopeDepth++;let e=i.tokens.length;(function(){Z();let e=!1;if(R(p._await)&&(e=!0,Z()),$(f.parenL),er(f.semi)){e&&M(),nk();return}let t=nu();if(t||er(f._var)||er(f._let)||er(f._const)||!(!R(p._using)||L(p._of))){if(t&&O(p._await),Z(),n_(!0,i.type!==f._var),er(f._in)||R(p._of)){ng(e);return}nk();return}if(tC(!0),er(f._in)||R(p._of)){ng(e);return}e&&M(),nk()})();let t=i.tokens.length;i.scopes.push(new E(e,t,!1)),i.scopeDepth--})();return;case f._function:if(es()===f.dot)break;e||M(),function(){let e=i.start;Z(),ny(e,!0)}();return;case f._class:e||M(),nT(!0);return;case f._if:Z(),tB(),nl(!1),et(f._else)&&nl(!1);return;case f._return:Z(),F()||(tC(),B());return;case f._switch:(function(){Z(),tB(),i.scopeDepth++;let e=i.tokens.length;for($(f.braceL);!er(f.braceR)&&!i.error;)if(er(f._case)||er(f._default)){let e=er(f._case);Z(),e&&tC(),$(f.colon)}else nl(!0);Z();let t=i.tokens.length;i.scopes.push(new E(e,t,!1)),i.scopeDepth--})();return;case f._throw:Z(),tC(),B();return;case f._try:(function(){if(Z(),nd(),er(f._catch)){Z();let e=null;if(er(f.parenL)&&(i.scopeDepth++,e=i.tokens.length,$(f.parenL),eH(!0),s&&ts(),$(f.parenR)),nd(),null!=e){let t=i.tokens.length;i.scopes.push(new E(e,t,!1)),i.scopeDepth--}}et(f._finally)&&nd()})();return;case f._let:case f._const:e||M();case f._var:nf(n!==f._var);return;case f._while:Z(),tB(),nl(!1);return;case f.braceL:nd();return;case f.semi:Z();return;case f._export:case f._import:{let e=es();if(e===f.parenL||e===f.dot)break;Z(),n===f._import?nj():nA();return}case f.name:if(i.contextualKeyword===p._async){let e=i.start,t=i.snapshot();if(Z(),er(f._function)&&!D()){$(f._function),ny(e,!0);return}i.restoreFromSnapshot(t)}else if(i.contextualKeyword!==p._using||q()||es()!==f.name){if(nu()){O(p._await),nf(!0);return}}else{nf(!0);return}}let r=i.tokens.length;tC();let a=null;if(i.tokens.length===r+1){let e=i.tokens[i.tokens.length-1];e.type===f.name&&(a=e.contextualKeyword)}if(null==a){B();return}et(f.colon)?nl(!0):(t=a,s?!function(e){switch(e){case p._declare:{let e=i.tokens.length-1;if(function(){if(F())return!1;switch(i.type){case f._function:{let e=Y(1);return Z(),ny(i.start,!0),ee(e),!0}case f._class:{let e=Y(1);return nT(!0,!1),ee(e),!0}case f._const:if(er(f._const)&&L(p._enum)){let e=Y(1);return $(f._const),O(p._enum),i.tokens[i.tokens.length-1].type=f._enum,tl(),ee(e),!0}case f._var:case f._let:{let e=Y(1);return nf(i.type!==f._var),ee(e),!0}case f.name:{let e=Y(1),t=i.contextualKeyword,n=!1;return t===p._global?(tp(),n=!0):n=tm(t,!0),ee(e),n}default:return!1}}())return i.tokens[e].type=f._declare,!0;break}case p._global:if(er(f.braceL))return tu(),!0;break;default:return tm(e,!1)}return!1}(t)&&B():o?function(e){if(e===p._declare){if(er(f._class)||er(f.name)||er(f._function)||er(f._var)||er(f._export)){let e=Y(1);(function e(){er(f._class)?(Z(),t0(!0)):er(f._function)?(Z(),tZ(),er(f.lessThan)&&t8(),$(f.parenL),nn(),$(f.parenR),t1(),B()):er(f._var)?(Z(),ni(),B()):j(p._module)?et(f.dot)?(O(p._exports),function(){tQ()}(),B()):function(){for(er(f.string)?tq():tZ(),$(f.braceL);!er(f.braceR)&&!i.error;)er(f._import)?(Z(),nj()):M();$(f.braceR)}():R(p._type)?(Z(),t4()):R(p._opaque)?(Z(),t3(!0)):R(p._interface)?(Z(),t0()):er(f._export)?($(f._export),et(f._default)?er(f._function)||er(f._class)?e():(no(),B()):er(f._var)||er(f._function)||er(f._class)||R(p._opaque)?e():er(f.star)||er(f.braceL)||R(p._interface)||R(p._type)||R(p._opaque)?nA():M()):M()})(),ee(e)}}else if(er(f.name)){if(e===p._interface){let e=Y(1);t0(),ee(e)}else if(e===p._type){let e=Y(1);t4(),ee(e)}else if(e===p._opaque){let e=Y(1);t3(!1),ee(e)}}B()}(t):B())}(e))}function nu(){if(!R(p._await))return!1;let e=i.snapshot();return(Z(),!R(p._using)||P())?(i.restoreFromSnapshot(e),!1):(Z(),!er(f.name)||P())?(i.restoreFromSnapshot(e),!1):(i.restoreFromSnapshot(e),!0)}function nh(){for(;er(f.at);)np()}function np(){if(Z(),et(f.parenL))tC(),$(f.parenR);else{for(tZ();et(f.dot);)tZ();s&&(er(f.lessThan)||er(f.bitShiftL))&&tg(),function(){et(f.parenL)&&tD()}()}}function nf(e){Z(),n_(!1,e),B()}function nd(e=!1,t=0){let n=i.tokens.length;i.scopeDepth++,$(f.braceL),t&&(i.tokens[i.tokens.length-1].contextId=t),nm(f.braceR),t&&(i.tokens[i.tokens.length-1].contextId=t);let r=i.tokens.length;i.scopes.push(new E(n,r,e)),i.scopeDepth--}function nm(e){for(;!et(e)&&!i.error;)nl(!0)}function nk(){$(f.semi),er(f.semi)||tC(),$(f.semi),er(f.parenR)||tC(),$(f.parenR),nl(!1)}function ng(e){e?j(p._of):Z(),tC(),$(f.parenR),nl(!1)}function n_(e,t){for(;;){if(eH(t),s?function(){let e=Y(0);P()||et(f.bang),ts(),ee(e)}():o&&er(f.colon)&&tQ(),et(f.eq)){let t=i.tokens.length-1;tw(e),i.tokens[t].rhsEndIndex=i.tokens.length}if(!et(f.comma))break}}function ny(e,t,n=!1){er(f.star)&&Z(),!t||n||er(f.name)||er(f._yield)||M();let r=null;er(f.name)&&(!t&&(r=i.tokens.length,i.scopeDepth++),eV(!1));let s=i.tokens.length;i.scopeDepth++,nx(),tX(e);let o=i.tokens.length;i.scopes.push(new E(s,o,!0)),i.scopeDepth--,null!==r&&(i.scopes.push(new E(r,o,!0)),i.scopeDepth--)}function nx(e=!1,t=0){s?e2():o&&function(){if(er(f.lessThan)){let e=Y(0);t8(),ee(e)}}(),$(f.parenL),t&&(i.tokens[i.tokens.length-1].contextId=t),eX(f.parenR,!1,!1,e,t),t&&(i.tokens[i.tokens.length-1].contextId=t)}function nT(e,t=!1){let n,r=c++;Z(),i.tokens[i.tokens.length-1].contextId=r,i.tokens[i.tokens.length-1].isExpression=!e;let a=null;!e&&(a=i.tokens.length,i.scopeDepth++),function(e,t=!1){!(s&&(!e||t)&&R(p._implements))&&(er(f.name)&&eV(!0),s?e2():o&&er(f.lessThan)&&t8())}(e,t),n=!1,et(f._extends)?(tN(),n=!0):n=!1,s?function(e){if(e&&(er(f.lessThan)||er(f.bitShiftL))&&tg(),j(p._implements)){i.tokens[i.tokens.length-1].type=f._implements;let e=Y(1);tc(),ee(e)}}(n):o&&function(e){if(e&&er(f.lessThan)&&t5(),R(p._implements)){let e=Y(0);Z(),i.tokens[i.tokens.length-1].type=f._implements;do tZ(),er(f.lessThan)&&t5();while(et(f.comma));ee(e)}}(n);let l=i.tokens.length;if(function(e){for($(f.braceL);!et(f.braceR)&&!i.error;)if(!et(f.semi)){if(er(f.at)){np();continue}(function(e,t){s&&eQ([p._declare,p._public,p._protected,p._private,p._override]);let n=!1;if(er(f.name)&&i.contextualKeyword===p._static){if(tZ(),nI()){nv(e,!1);return}if(nb()){nE();return}if(i.tokens[i.tokens.length-1].type=f._static,n=!0,er(f.braceL)){i.tokens[i.tokens.length-1].contextId=t,nd();return}}(function(e,t,n){if(s&&function(e){let t=i.tokens.length;eQ([p._abstract,p._readonly,p._declare,p._static,p._override]);let n=i.tokens.length;if(e6()){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(f.star)){(function(e){tU(e)})(n),nv(e,!1);return}(function(e){tU(e)})(n);let r=!1,o=i.tokens[i.tokens.length-1];o.contextualKeyword===p._constructor&&(r=!0),nw(),nI()?nv(e,r):nb()?nE():o.contextualKeyword!==p._async||F()?o.contextualKeyword!==p._get&&o.contextualKeyword!==p._set||F()&&er(f.star)?o.contextualKeyword!==p._accessor||F()?F()?nE():M():(function(e){tU(e)}(n),nE()):(o.contextualKeyword===p._get?i.tokens[i.tokens.length-1].type=f._get:i.tokens[i.tokens.length-1].type=f._set,function(e){tU(e)}(n),nv(e,!1)):(i.tokens[i.tokens.length-1].type=f._async,er(f.star)&&Z(),function(e){tU(e)}(n),nw(),nv(e,!1))})(e,n,t)})(i.start,e)}}(r),!i.error&&(i.tokens[l].contextId=r,i.tokens[i.tokens.length-1].contextId=r,null!==a)){let e=i.tokens.length;i.scopes.push(new E(a,e,!1)),i.scopeDepth--}}function nb(){return er(f.eq)||er(f.semi)||er(f.braceR)||er(f.bang)||er(f.colon)}function nI(){return er(f.parenL)||er(f.lessThan)}function nv(e,t){s?e2():o&&er(f.lessThan)&&t8(),tW(e,t)}function nC(e){tU(e)}function nw(){if(s){let e=Y(0);et(f.question),ee(e)}}function nE(){if(s?(en(f.bang),ts()):o&&er(f.colon)&&tQ(),er(f.eq)){let e=i.tokens.length;Z(),tw(),i.tokens[e].rhsEndIndex=i.tokens.length}B()}function nA(){let e=i.tokens.length-1;!(s&&function(){if(et(f._import))return R(p._type)&&es()!==f.eq&&O(p._type),tf(),!0;if(et(f.eq))return tC(),B(),!0;if(j(p._as))return O(p._namespace),tZ(),B(),!0;if(R(p._type)){let e=es();(e===f.braceL||e===f.star)&&Z()}return!1}())&&((o?er(f.star)||R(p._type)&&es()===f.star:er(f.star))?o?function(){if(j(p._type)){let e=Y(2);nR(),ee(e)}else nR()}():nR():function(){if(s&&ty()||o&&er(f.name)&&(i.contextualKeyword===p._type||i.contextualKeyword===p._interface||i.contextualKeyword===p._opaque||i.contextualKeyword===p._enum))return!1;if(er(f.name))return i.contextualKeyword!==p._async;if(!er(f._default))return!1;let e=ea(),t=ei(),n=t.type===f.name&&t.contextualKeyword===p._from;if(t.type===f.comma)return!0;if(n){let t=a.charCodeAt(ec(e+4));return t===d.quotationMark||t===d.apostrophe}return!1}()?(tZ(),er(f.comma)&&es()===f.star?($(f.comma),$(f.star),O(p._as),tZ()):nS(),nN()):et(f._default)?function(){if(s&&function(){if(R(p._abstract)&&es()===f._class)return i.type=f._abstract,Z(),nT(!0,!0),!0;if(R(p._interface)){let e=Y(2);return tm(p._interface,!0),ee(e),!0}return!1}()||o&&R(p._enum)&&(nc(),1))return;let e=i.start;et(f._function)?ny(e,!0,!0):R(p._async)&&es()===f._function?(j(p._async),et(f._function),ny(e,!0,!0)):er(f._class)?nT(!0,!0):er(f.at)?(nh(),nT(!0,!0)):(tw(),B())}():s&&ty()||o&&(R(p._type)||R(p._interface)||R(p._opaque)||R(p._enum))||i.type===f._var||i.type===f._const||i.type===f._let||i.type===f._function||i.type===f._class||R(p._async)||er(f.at)?s?function(){let e=j(p._declare);e&&(i.tokens[i.tokens.length-1].type=f._declare);let t=!1;if(er(f.name)){if(e){let e=Y(2);t=td(),ee(e)}else t=td()}if(!t){if(e){let e=Y(2);nl(!0),ee(e)}else nl(!0)}}():o?function(){if(R(p._type)){let e=Y(1);Z(),er(f.braceL)?(nL(),nN()):t4(),ee(e)}else if(R(p._opaque)){let e=Y(1);Z(),t3(!1),ee(e)}else if(R(p._interface)){let e=Y(1);Z(),t0(),ee(e)}else nl(!0)}():nl(!0):(nL(),nN()),i.tokens[e].rhsEndIndex=i.tokens.length)}function nS(){et(f.comma)&&nL()}function nN(){j(p._from)&&(tq(),nO()),B()}function nR(){$(f.star),R(p._as)?(Z(),i.tokens[i.tokens.length-1].type=f._as,tZ(),nS(),nN()):nN()}function nL(){let e=!0;for($(f.braceL);!et(f.braceR)&&!i.error;){if(e)e=!1;else if($(f.comma),et(f.braceR))break;!function(){if(s){!function(){if(tZ(),er(f.comma)||er(f.braceR)){i.tokens[i.tokens.length-1].identifierRole=m.ExportAccess;return}if(tZ(),er(f.comma)||er(f.braceR)){i.tokens[i.tokens.length-1].identifierRole=m.ExportAccess,i.tokens[i.tokens.length-2].isType=!0,i.tokens[i.tokens.length-1].isType=!0;return}if(tZ(),er(f.comma)||er(f.braceR)){i.tokens[i.tokens.length-3].identifierRole=m.ExportAccess;return}tZ(),i.tokens[i.tokens.length-3].identifierRole=m.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}tZ(),i.tokens[i.tokens.length-1].identifierRole=m.ExportAccess,j(p._as)&&tZ()}()}}function nj(){if(s&&er(f.name)&&es()===f.eq){tf();return}if(s&&R(p._type)){let e=ei();if(e.type===f.name&&e.contextualKeyword!==p._from){if(O(p._type),es()===f.eq){tf();return}}else(e.type===f.star||e.type===f.braceL)&&O(p._type)}er(f.string)||(R(p._module)&&function(){let e=i.snapshot();return(O(p._module),j(p._from))?R(p._from)?(i.restoreFromSnapshot(e),!0):(i.restoreFromSnapshot(e),!1):er(f.comma)?(i.restoreFromSnapshot(e),!1):(i.restoreFromSnapshot(e),!0)}()&&Z(),function(){o&&function(){if(er(f._typeof)||R(p._type)){let e=ei();((e.type===f.name||e.type&f.IS_KEYWORD)&&e.contextualKeyword!==p._from||e.type===f.braceL||e.type===f.star)&&Z()}}();let e=!0;if(!er(f.name)||(eU(),et(f.comma))){if(er(f.star)){Z(),O(p._as),eU();return}for($(f.braceL);!et(f.braceR)&&!i.error;){if(e)e=!1;else if(et(f.colon)&&M("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),$(f.comma),et(f.braceR))break;(function(){if(s){!function(){if(tZ(),er(f.comma)||er(f.braceR)){i.tokens[i.tokens.length-1].identifierRole=m.ImportDeclaration;return}if(tZ(),er(f.comma)||er(f.braceR)){i.tokens[i.tokens.length-1].identifierRole=m.ImportDeclaration,i.tokens[i.tokens.length-2].isType=!0,i.tokens[i.tokens.length-1].isType=!0;return}if(tZ(),er(f.comma)||er(f.braceR)){i.tokens[i.tokens.length-3].identifierRole=m.ImportAccess,i.tokens[i.tokens.length-1].identifierRole=m.ImportDeclaration;return}tZ(),i.tokens[i.tokens.length-3].identifierRole=m.ImportAccess,i.tokens[i.tokens.length-1].identifierRole=m.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===p._type||i.type===f._typeof;(e?Z():tZ(),R(p._as)&&!L(p._as))?(tZ(),(!e||er(f.name)||i.type&f.IS_KEYWORD)&&tZ()):(e&&(er(f.name)||i.type&f.IS_KEYWORD)&&tZ(),j(p._as)&&tZ())}();return}eU(),R(p._as)&&(i.tokens[i.tokens.length-1].identifierRole=m.ImportAccess,Z(),eU())})()}}}(),O(p._from)),tq(),nO(),B()}function nO(){(er(f._with)||R(p._assert)&&!P())&&(Z(),tV(!1,!1))}class nD{constructor(e,t){this.tokens=e,this.scopes=t}}class nP{__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,nP.prototype.__init.call(this),nP.prototype.__init2.call(this),nP.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,f.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(f.braceL))e++;else if(this.matches1(f.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===p._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===f._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 nq(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;nB(e.tokenAtRelativeIndex(-1));)e.previousToken()}function nF(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(f.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),nB(e.currentToken())){for(e.nextToken();nB(e.currentToken());)e.nextToken();let n=e.currentToken();if(n.type!==f.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(f.braceR,n);){if(!s&&e.matches2(f._super,f.parenL)){e.nextToken();let t=e.currentToken().contextId;if(null==t)throw Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(f.parenR,t);)e.nextToken();r=e.currentIndex(),s=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:r}}function nB(e){return[f._async,f._get,f._set,f.plus,f.minus,f._readonly,f._static,f._public,f._private,f._protected,f._override,f._abstract,f.star,f._declare,f.hash].includes(e.type)}function n$(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(f.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(f.dot);)e.removeToken(),e.removeToken()}let nM={typeDeclarations:new Set,valueDeclarations:new Set};function nK(e){let t=new Set,n=new Set;for(let r=0;r<e.tokens.length;r++){let s=e.tokens[r];s.type===f.name&&J(s)&&(s.isType?t.add(e.identifierNameForToken(s)):n.add(e.identifierNameForToken(s)))}return{typeDeclarations:t,valueDeclarations:n}}function nV(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,f.braceR);)t++;return e.matchesContextualAtIndex(t+1,p._from)&&e.matches1AtIndex(t+2,f.string)}function nU(e){(e.matches2(f._with,f.braceL)||e.matches2(f.name,f.braceL)&&e.matchesContextual(p._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function nW(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,f.semi)))return!1;let i=n.tokenAtRelativeIndex(2);if(i.type!==f.name)return!1;let a=n.identifierNameForToken(i);return r.typeDeclarations.has(a)&&!r.valueDeclarations.has(a)}class nH 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,nH.prototype.__init.call(this),nH.prototype.__init2.call(this),nH.prototype.__init3.call(this),this.declarationInfo=c?nK(t):nM}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(f._import,f.name,f.eq)?this.processImportEquals():this.tokens.matches1(f._import)?(this.processImport(),!0):this.tokens.matches2(f._export,f.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(f._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):!!(this.tokens.matches2(f.name,f.postIncDec)&&this.processPostIncDec())||(this.tokens.matches1(f.name)||this.tokens.matches1(f.jsxName)?this.processIdentifier():this.tokens.matches1(f.eq)?this.processAssignment():this.tokens.matches1(f.assign)?this.processComplexAssignment():!!this.tokens.matches1(f.preIncDec)&&this.processPreIncDec())}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?n$(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(f._import,f.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(f.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))}nU(this.tokens),this.tokens.matches1(f.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(p._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,f.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,p._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(f.name)||this.tokens.matches1(f.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(f.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(f.string);)(!e&&this.tokens.matches1(f.braceL)||this.tokens.matches1(f.comma))&&(this.tokens.removeToken(),this.tokens.matches1(f.braceR)||(t=!0),(this.tokens.matches2(f.name,f.comma)||this.tokens.matches2(f.name,f.braceR)||this.tokens.matches4(f.name,f.name,f.name,f.comma)||this.tokens.matches4(f.name,f.name,f.name,f.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&t&&!e)}removeRemainingImport(){for(;!this.tokens.matches1(f.string);)this.tokens.removeToken()}processIdentifier(){let e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===m.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==m.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===f.parenR;)n++;return this.tokens.tokens[n].type===f.parenL?this.tokens.tokenAtRelativeIndex(1).type===f.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==f._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.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(f._export,f._enum)||this.tokens.matches3(f._export,f._const,f._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(f._export,f._default))return this.tokens.matches3(f._export,f._default,f._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(f._export,f.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(f._export,f.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,p._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(f.braceL)){for(;!this.tokens.matches1(f.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(f._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(p._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,f.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),nU(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(f._export,f._var)||this.tokens.matches2(f._export,f._let)||this.tokens.matches2(f._export,f._const))return this.processExportVar(),!0;if(this.tokens.matches2(f._export,f._function)||this.tokens.matches3(f._export,f.name,f._function))return this.processExportFunction(),!0;if(this.tokens.matches2(f._export,f._class)||this.tokens.matches3(f._export,f._abstract,f._class)||this.tokens.matches2(f._export,f.at))return this.processExportClass(),!0;if(this.tokens.matches2(f._export,f.star))return this.processExportStar(),!0;throw Error("Unrecognized export syntax.")}processAssignment(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==f.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,f.dot)||e>=2&&[f._var,f._let,f._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!==f.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,f.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!==f.name||t.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,f.dot)||this.tokens.matches1AtIndex(e+2,f.bracketL)||this.tokens.matches1AtIndex(e+2,f.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!==f.name||t.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,f.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(f._export,f._default,f._function,f.name)||this.tokens.matches5(f._export,f._default,f.name,f._function,f.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,p._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(f._export,f._default,f._class,f.name)||this.tokens.matches5(f._export,f._default,f._abstract,f._class,f.name)||this.tokens.matches3(f._export,f._default,f.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(f._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(nW(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(f.at);)if(this.tokens.copyToken(),this.tokens.matches1(f.parenL))this.tokens.copyExpectedToken(f.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.parenR);else{for(this.tokens.copyExpectedToken(f.name);this.tokens.matches1(f.dot);)this.tokens.copyExpectedToken(f.dot),this.tokens.copyExpectedToken(f.name);this.tokens.matches1(f.parenL)&&(this.tokens.copyExpectedToken(f.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,f.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,f.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();let e=this.tokens.identifierName();for(;!this.tokens.matches1(f.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(f.braceL);e&&this.tokens.appendCode("(");let t=0;for(;;)if(this.tokens.matches1(f.braceL)||this.tokens.matches1(f.dollarBraceL)||this.tokens.matches1(f.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(f.braceR)||this.tokens.matches1(f.bracketR))t--,this.tokens.copyToken();else if(0!==t||this.tokens.matches1(f.name)||this.tokens.currentToken().isType){if(this.tokens.matches1(f.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)){let t=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(t);if(null===n)throw Error(`Expected a replacement for ${t} in \`export var\` syntax.`);(e.identifierRole===m.ObjectShorthandTopLevelDeclaration||e.identifierRole===m.ObjectShorthandBlockScopedDeclaration||e.identifierRole===m.ObjectShorthandFunctionScopedDeclaration)&&(n=`${t}: ${n}`),this.tokens.replaceToken(n)}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(f._function))this.tokens.copyToken();else if(this.tokens.matches2(f.name,f._function)){if(!this.tokens.matchesContextual(p._async))throw Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(f.star)&&this.tokens.copyToken(),!this.tokens.matches1(f.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(f.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(f.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(f._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=nV(this.tokens),t=[];for(;;){if(this.tokens.matches1(f.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(f.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(f.comma,f.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(this.tokens.matches1(f.comma))this.tokens.removeToken();else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(p._from)){this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),nU(this.tokens)}else this.tokens.appendCode(t.join(" "));this.tokens.matches1(f.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(f.string);)this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),nU(this.tokens),this.tokens.matches1(f.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class nX 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?nK(e):nM,this.injectCreateRequireForImportRequire=!!a.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(f._import,f.name,f.eq))return this.processImportEquals();if(this.tokens.matches4(f._import,f.name,f.name,f.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,p._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(f._export,f.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(f._export,f._import,f.name,f.name,f.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,p._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(f._import))return this.processImport();if(this.tokens.matches2(f._export,f._default))return this.processExportDefault();if(this.tokens.matches2(f._export,f.braceL))return this.processNamedExports();if(this.tokens.matches2(f._export,f.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,p._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(f.braceL)){for(;!this.tokens.matches1(f.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(f._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(p._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,f.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),nU(this.tokens)),!0}return!1}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?n$(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(f._import,f.parenL))return!1;let e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(f.string);)this.tokens.removeToken();this.tokens.removeToken(),nU(this.tokens),this.tokens.matches1(f.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(f._import),this.tokens.matchesContextual(p._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,f.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,p._from))return!0;if(this.tokens.matches1(f.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(p._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,p._from)&&this.tokens.copyToken();let e=!1,t=!1,n=!1;if(this.tokens.matches1(f.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(f.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(f.comma)&&(n=!0,this.tokens.removeToken()))),this.tokens.matches1(f.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(f.star),this.tokens.copyExpectedToken(f.name),this.tokens.copyExpectedToken(f.name));else if(this.tokens.matches1(f.braceL)){for(n&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(f.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(f.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(f.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(f.braceR)}return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&t&&!e)}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(nW(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(f._export,f._default,f._function,f.name)||this.tokens.matches5(f._export,f._default,f.name,f._function,f.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,p._async)||this.tokens.matches4(f._export,f._default,f._class,f.name)||this.tokens.matches5(f._export,f._default,f._abstract,f._class,f.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(f._export),this.tokens.copyExpectedToken(f.braceL);let e=nV(this.tokens),t=!1;for(;!this.tokens.matches1(f.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(f.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(f.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(f.braceR),this.keepUnusedImports||!e||t||(this.tokens.removeToken(),this.tokens.removeToken(),nU(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class nG 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(f._enum)?(this.processEnum(),!0):this.tokens.matches2(f._export,f._enum)?(this.processNamedExportEnum(),!0):!!this.tokens.matches3(f._export,f._default,f._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(f.name);let e=!1;this.tokens.matchesContextual(p._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(p._symbol),this.tokens.removeToken());let t=this.tokens.matches3(f.braceL,f.name,f.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');let n=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(n?".Mirrored([":"({");!this.tokens.matches1(f.braceR);){if(this.tokens.matches1(f.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(f.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 nJ="jest",nz=["mock","unmock","enableAutomock","disableAutomock"];class nZ extends eC{__init(){this.hoistedFunctionNames=[]}constructor(e,t,n,r){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=n,this.importProcessor=r,nZ.prototype.__init.call(this)}process(){return!!(0===this.tokens.currentToken().scopeDepth&&this.tokens.matches4(f.name,f.dot,f.name,f.parenL))&&this.tokens.identifierName()===nJ&&!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(nJ)])&&this.extractHoistedCalls()}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(f.dot,f.name,f.parenL);){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(nz.includes(t)){let t=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${nJ}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${nJ}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.parenR),e=!0}return!0}}class nQ extends eC{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(f.num)){let e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class nY extends eC{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(f._catch,f.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class n1 extends eC{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(f.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(f._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!==f._super){let t;let n=this.nameManager.claimFreeName("_");if(t=e>0&&this.tokens.matches1AtIndex(e-1,f._delete)&&this.isLastSubscriptInChain()?`${n} => delete ${n}`:`${n} => ${n}`,this.tokens.tokens[e].isAsyncOperation&&(t=`async ${t}`),this.tokens.matches2(f.questionDot,f.parenL)||this.tokens.matches2(f.questionDot,f.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${t}`);else if(this.tokens.matches2(f.questionDot,f.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${t}`);else if(this.tokens.matches1(f.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${t}.`);else if(this.tokens.matches1(f.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${t}.`);else if(this.tokens.matches1(f.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${t}[`);else if(this.tokens.matches1(f.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===f._super;t--}}}class n0 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(f.name,f.dot,f.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);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(f.parenL),this.tokens.copyExpectedToken(f.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(f.braceR),this.tokens.copyExpectedToken(f.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,f.name,f.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===m.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,f._export,f._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(f.parenL,f.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===f.braceR&&t.contextId===n){e++;break}if("displayName"===this.tokens.identifierNameAtIndex(e)&&this.tokens.tokens[e].identifierRole===m.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,f.parenR)||this.tokens.matches2AtIndex(e,f.comma,f.parenR)}}class n2 extends eC{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,n2.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!==m.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 n4=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 n3(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!n4.has(e)}class n8 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(f._public)||this.tokens.matches1(f._protected)||this.tokens.matches1(f._private)||this.tokens.matches1(f._abstract)||this.tokens.matches1(f._readonly)||this.tokens.matches1(f._override)||this.tokens.matches1(f.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(f._enum)||this.tokens.matches2(f._const,f._enum)?(this.processEnum(),!0):!!(this.tokens.matches2(f._export,f._enum)||this.tokens.matches3(f._export,f._const,f._enum))&&(this.processEnum(!0),!0))}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(f._const)||this.tokens.matches1(f._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(f.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(f.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(f.braceR);){let{nameStringCode:n,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(f.eq,f.string,f.comma)||this.tokens.matches3(f.eq,f.string,f.braceR)?this.processStringLiteralEnumMember(e,n,r):this.tokens.matches1(f.eq)?this.processExplicitValueEnumMember(e,n,r):this.processImplicitValueEnumMember(e,n,r,t),this.tokens.matches1(f.comma)&&this.tokens.removeToken(),t=null!=r?r:`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===f.name){let t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:n3(t)?t:null}}if(e.type===f.string){let t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:n3(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 n5{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,n,r){n5.prototype.__init.call(this),n5.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 n1(s,this.nameManager)),this.transformers.push(new nQ(s)),this.transformers.push(new nY(s,this.nameManager))),t.includes("jsx")&&("preserve"!==r.jsxRuntime&&this.transformers.push(new ew(this,s,o,this.nameManager,r)),this.transformers.push(new n0(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 n2(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 nH(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 nX(s,this.nameManager,this.helperManager,i,t.includes("typescript"),t.includes("flow"),!!r.keepUnusedImports,r));t.includes("flow")&&this.transformers.push(new nG(this,s,t.includes("imports"))),t.includes("typescript")&&this.transformers.push(new n8(this,s,t.includes("imports"))),t.includes("jest")&&this.transformers.push(new nZ(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(f.braceL)||this.tokens.matches1(f.dollarBraceL))e++;else if(this.tokens.matches1(f.braceR)){if(0===e)return;e--}if(this.tokens.matches1(f.parenL))t++;else if(this.tokens.matches1(f.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(f._class)){this.processClass();return}for(let e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(f._class,f.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(f.name)&&(s=e.identifierName());!e.matchesContextIdAndLabel(f.braceL,n);)e.matches1(f._extends)&&!e.currentToken().isType&&(o=!0),e.nextToken();return{isExpression:r,className:s,hasSuperclass:o}}(t),i=[],a=[],c=[],l=null,u=[],h=[],d=t.currentToken().contextId;if(null==d)throw Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(f.braceR,d);)if(t.matchesContextual(p._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:i,constructorInsertPos:l}=nF(t));else if(t.matches1(f.semi))r||h.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(;nB(t.currentToken());)t.matches1(f._static)&&(o=!0),t.matches1(f.hash)&&(m=!0),(t.matches1(f._declare)||t.matches1(f._abstract))&&(k=!0),t.nextToken();if(o&&t.matches1(f.braceL)||m){nq(t,d);continue}if(t.matchesContextual(p._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:i,constructorInsertPos:l}=nF(t));continue}let g=t.currentIndex();if(function(e){if(e.matches1(f.bracketL)){let t=e.currentToken().contextId;if(null==t)throw Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(f.bracketR,t);)e.nextToken();e.nextToken()}else e.nextToken()}(t),t.matches1(f.lessThan)||t.matches1(f.parenL)){nq(t,d);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(f.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)&&h.push({start:s,end:t.currentIndex()})}return(t.restoreToSnapshot(s),r)?{headerInfo:o,constructorInitializerStatements:i,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:l,fields:[],rangesToRemove:h}:{headerInfo:o,constructorInitializerStatements:i,instanceInitializerNames:a,staticInitializerNames:c,constructorInsertPos:l,fields:u,rangesToRemove:h}}(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(f._class);!this.tokens.matchesContextIdAndLabel(f.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(f.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(f.braceR,u);)if(c<o.length&&this.tokens.currentIndex()===o[c].start){let e=!1;for(this.tokens.matches1(f.bracketL)?this.tokens.copyTokenWithPrefix(`${o[c].initializerName}() {this`):this.tokens.matches1(f.string)||this.tokens.matches1(f.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(f.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(f.parenR,f.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,f.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(p._async)&&!this.tokens.matches1(f._async))return!1;let e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==f.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,f.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 n6=Object.defineProperty,n9=Object.defineProperties,n7=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,rr=(e,t,n)=>t in e?n6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rs=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&rr(e,n,t[n]);if(re)for(var n of re(t))rn.call(t,n)&&rr(e,n,t[n]);return e},ro=(e,t)=>n9(e,n7(t)),ri=(e,t)=>{var n={};for(var r in e)rt.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&re)for(var r of re(e))0>t.indexOf(r)&&rn.call(e,r)&&(n[r]=e[r]);return n},ra=(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())}),rc=e=>{let{tabMode:t="indentation"}=e,n=(0,y.useRef)(null),[r,s]=(0,y.useState)(e.code||""),{theme:o}=e;return(0,y.useEffect)(()=>{s(e.code)},[e.code]),!function(e,t,n){function r(t){var n=e.current;if(n){var r=v(n);n=I(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=C(r,n=(s=v(r)).position+(0>o?o:0),s.position+(0<o?o:0))).deleteContents(),t&&s.insertNode(document.createTextNode(t)),T(C(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=I(n).split("\n").slice(0,t.row);t.row&&(r+=s.join("\n").length+1),r+=t.column}T(C(n,r))}}function i(){var t=e.current;return{text:I(t),position:t=v(t)}}function a(){l.observer.disconnect()}n||(n={});var c=(0,y.useState)([])[1],l=(0,y.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,y.useMemo)(function(){return{update:r,insert:s,move:o,getState:i}},[]);"object"!=typeof navigator||((0,y.useLayoutEffect)(function(){if(l.onChange=t,e.current&&!n.disabled){if(l.disconnected=!1,l.observer.observe(e.current,x),l.position){var r=l.position,s=r.position;T(C(e.current,s,s+r.extent))}return a}}),(0,y.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;T(C(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=I(t),s=v(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=v(t),l.queue.length){l.observer.disconnect(),l.disconnected=!0;var n,r,s=I(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(b(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=v(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=v(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=v(t)).position-r.content.length;var o=I(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||(b(e)||d(),m(),t.focus())},_=function(e){l.position=window.getSelection().rangeCount&&e.target===t?v(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]))}(n,e=>s(e.slice(0,-1)),{disabled:e.disabled,indentation:"indentation"===t?2:void 0}),(0,y.useEffect)(()=>{e.onChange&&e.onChange(r)},[r]),(0,w.jsx)("div",{className:e.className,style:e.style,children:(0,w.jsx)(_.y$,{code:r,theme:e.theme||_.np.nightOwl,language:e.language,children:({className:e,tokens:t,getLineProps:r,getTokenProps:s,style:i})=>(0,w.jsx)("pre",{className:e,style:rs(rs({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,w.jsxs)("span",ro(rs({},r({line:e})),{children:[e.filter(e=>!e.empty).map((e,t)=>(0,w.jsx)("span",rs({},s({token:e})),`token-${t}`)),"\n"]}),`line-${t}`))})})})},rl=(0,y.createContext)({}),ru=["jsx","imports"];function rh(e={}){let t=Array.isArray(e.transforms)?e.transforms.filter(Boolean):ru;return e=>(function(e,t){eK.strictCheck(t);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,p=function(e,t,n,l){if(l&&n)throw Error("Cannot combine flow and typescript plugins.");a=e,i=new S,c=1,r=t,s=n,o=l;let u=(0===i.pos&&a.charCodeAt(0)===d.numberSign&&a.charCodeAt(1)===d.exclamationMark&&eh(2),eu(),function(){if(nm(f.eof),i.scopes.push(new E(0,i.tokens.length,!0)),0!==i.scopeDepth)throw Error(`Invalid scope depth at end of file: ${i.scopeDepth}`);return new nD(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)===d.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 u}(e,n,l,u),m=p.tokens,k=p.scopes,g=new eq(e,m),_=new eO(g),y=new nP(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 o=0;o<e.tokens.length;o++){var n,r,s;e.matches1AtIndex(o,f._import)&&!e.matches3AtIndex(o,f._import,f.name,f.eq)&&(n=e,r=o,s=t,r++,!n.matches1AtIndex(r,f.parenL)&&(n.matches1AtIndex(r,f.name)&&(s.add(n.identifierNameAtIndex(r)),r++,n.matches1AtIndex(r,f.comma)&&r++),n.matches1AtIndex(r,f.star)&&(r+=2,s.add(n.identifierNameAtIndex(r)),r++),n.matches1AtIndex(r,f.braceL)&&function(e,t,n){for(;;){if(e.matches1AtIndex(t,f.braceR))return;let r=ex(e,t);if(t=r.endIndex,r.isType||n.add(r.rightName),e.matches2AtIndex(t,f.comma,f.braceR))return;if(e.matches1AtIndex(t,f.braceR))return;if(e.matches1AtIndex(t,f.comma))t++;else throw Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}(n,++r,s)))}return t}(y)),{tokenProcessor:y,scopes:k,nameManager:g,importProcessor:T,helperManager:_}}(e,t),l=new n5(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)===d.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)===d.lineFeed&&(u++,l!==(h=r+1)&&(0,eL.maybeAddSegment)(a,u,0,n,u,0))}let{sourceRoot:p,sourcesContent:f,...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 rp=(e,t)=>class extends y.Component{componentDidCatch(e){t(e)}render(){return"function"==typeof e?(0,w.jsx)(e,{}):y.isValidElement(e)?e:null}},rf=(e,t)=>{let n=Object.keys(t),r=n.map(e=>t[e]);return Function(...n,e)(...r)},rd='const _jsxFileName = "";',rm=e=>e.trim().replace(/;$/,""),rk=e=>e.replace(rd,"").trim(),rg=e=>rd+e,r_=e=>`return (${e})`,ry=({code:e="",scope:t={},enableTypeScript:n=!0},r)=>{let s=["jsx"];return n&&s.push("typescript"),rp(rf((function(...e){return e.reduce((e,t)=>(...n)=>e(t(...n)))})(rg,rh({transforms:["imports"]}),rk,rm,rh({transforms:s}),r_,rm)(e),rs({React:y},t)),r)},rx=({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"),rf(rh({transforms:o})(e),ro(rs({React:y},t),{render:e=>{void 0===e?s(SyntaxError("`render` must be called with valid JSX.")):r(rp(e,s))}}))},rT=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,y.useState)({error:void 0,element:void 0});function h(e){return ra(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}),rx(o,r,t)):r(ry(o,t))}catch(e){return t(e)}}catch(e){return t(e),Promise.resolve()}})}let p=e=>u({error:e.toString()});return(0,y.useEffect)(()=>{h(t).catch(p)},[t,i,c,a]),(0,w.jsx)(rl.Provider,{value:ro(rs({},l),{code:t,language:n,theme:r,disabled:o,onError:p,onChange:e=>{h(e).catch(p)}}),children:e})};function rb(e){let{code:t,language:n,theme:r,disabled:s,onChange:o}=(0,y.useContext)(rl);return(0,w.jsx)(rc,rs({theme:r,code:t,language:n,disabled:s,onChange:o},e))}function rI(e){let{error:t}=(0,y.useContext)(rl);return t?(0,w.jsx)("pre",ro(rs({},e),{children:t})):null}var rv=function(e){var{Component:t="div"}=e,n=ri(e,["Component"]);let{element:r}=(0,y.useContext)(rl);return(0,w.jsx)(t,ro(rs({},n),{children:r?(0,w.jsx)(r,{}):null}))}}}]);