UNPKG

@vercel/ncc

Version:

Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.

1 lines 8.75 MB
(()=>{var __webpack_modules__={64973:E=>{function webpackEmptyContext(E){var P=new Error("Cannot find module '"+E+"'");P.code="MODULE_NOT_FOUND";throw P}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=64973;E.exports=webpackEmptyContext},57258:function(E,P,N){(function(E,R){true?R(P,N(12288),N(78424),N(38916)):0})(this,(function(E,P,N,R){"use strict";const L=0;const $=1;const q=2;const K=3;const ae=4;const ge=-1;class GenMapping{constructor({file:E,sourceRoot:N}={}){this._names=new P.SetArray;this._sources=new P.SetArray;this._sourcesContent=[];this._mappings=[];this.file=E;this.sourceRoot=N;this._ignoreList=new P.SetArray}}function cast(E){return E}function addSegment(E,P,N,R,L,$,q,K){return addSegmentInternal(false,E,P,N,R,L,$,q,K)}function addMapping(E,P){return addMappingInternal(false,E,P)}const maybeAddSegment=(E,P,N,R,L,$,q,K)=>addSegmentInternal(true,E,P,N,R,L,$,q,K);const maybeAddMapping=(E,P)=>addMappingInternal(true,E,P);function setSourceContent(E,N,R){const{_sources:L,_sourcesContent:$}=cast(E);const q=P.put(L,N);$[q]=R}function setIgnore(E,N,R=true){const{_sources:L,_sourcesContent:$,_ignoreList:q}=cast(E);const K=P.put(L,N);if(K===$.length)$[K]=null;if(R)P.put(q,K);else P.remove(q,K)}function toDecodedMap(E){const{_mappings:P,_sources:N,_sourcesContent:R,_names:L,_ignoreList:$}=cast(E);removeEmptyFinalLines(P);return{version:3,file:E.file||undefined,names:L.array,sourceRoot:E.sourceRoot||undefined,sources:N.array,sourcesContent:R,mappings:P,ignoreList:$.array}}function toEncodedMap(E){const P=toDecodedMap(E);return Object.assign(Object.assign({},P),{mappings:N.encode(P.mappings)})}function fromMap(E){const P=new R.TraceMap(E);const N=new GenMapping({file:P.file,sourceRoot:P.sourceRoot});putAll(cast(N)._names,P.names);putAll(cast(N)._sources,P.sources);cast(N)._sourcesContent=P.sourcesContent||P.sources.map((()=>null));cast(N)._mappings=R.decodedMappings(P);if(P.ignoreList)putAll(cast(N)._ignoreList,P.ignoreList);return N}function allMappings(E){const P=[];const{_mappings:N,_sources:R,_names:ge}=cast(E);for(let E=0;E<N.length;E++){const ve=N[E];for(let N=0;N<ve.length;N++){const be=ve[N];const xe={line:E+1,column:be[L]};let Ce=undefined;let Ie=undefined;let Je=undefined;if(be.length!==1){Ce=R.array[be[$]];Ie={line:be[q]+1,column:be[K]};if(be.length===5)Je=ge.array[be[ae]]}P.push({generated:xe,source:Ce,original:Ie,name:Je})}}return P}function addSegmentInternal(E,N,R,L,$,q,K,ae,ve){const{_mappings:be,_sources:xe,_sourcesContent:Ce,_names:Ie}=cast(N);const Je=getLine(be,R);const Ve=getColumnIndex(Je,L);if(!$){if(E&&skipSourceless(Je,Ve))return;return insert(Je,Ve,[L])}const He=P.put(xe,$);const Ke=ae?P.put(Ie,ae):ge;if(He===Ce.length)Ce[He]=ve!==null&&ve!==void 0?ve:null;if(E&&skipSource(Je,Ve,He,q,K,Ke)){return}return insert(Je,Ve,ae?[L,He,q,K,Ke]:[L,He,q,K])}function getLine(E,P){for(let N=E.length;N<=P;N++){E[N]=[]}return E[P]}function getColumnIndex(E,P){let N=E.length;for(let R=N-1;R>=0;N=R--){const N=E[R];if(P>=N[L])break}return N}function insert(E,P,N){for(let N=E.length;N>P;N--){E[N]=E[N-1]}E[P]=N}function removeEmptyFinalLines(E){const{length:P}=E;let N=P;for(let P=N-1;P>=0;N=P,P--){if(E[P].length>0)break}if(N<P)E.length=N}function putAll(E,N){for(let R=0;R<N.length;R++)P.put(E,N[R])}function skipSourceless(E,P){if(P===0)return true;const N=E[P-1];return N.length===1}function skipSource(E,P,N,R,L,ve){if(P===0)return false;const be=E[P-1];if(be.length===1)return false;return N===be[$]&&R===be[q]&&L===be[K]&&ve===(be.length===5?be[ae]:ge)}function addMappingInternal(E,P,N){const{generated:R,source:L,original:$,name:q,content:K}=N;if(!L){return addSegmentInternal(E,P,R.line-1,R.column,null,null,null,null,null)}return addSegmentInternal(E,P,R.line-1,R.column,L,$.line-1,$.column,q,K)}E.GenMapping=GenMapping;E.addMapping=addMapping;E.addSegment=addSegment;E.allMappings=allMappings;E.fromMap=fromMap;E.maybeAddMapping=maybeAddMapping;E.maybeAddSegment=maybeAddSegment;E.setIgnore=setIgnore;E.setSourceContent=setSourceContent;E.toDecodedMap=toDecodedMap;E.toEncodedMap=toEncodedMap;Object.defineProperty(E,"__esModule",{value:true})}))},32642:function(E){(function(P,N){true?E.exports=N():0})(this,(function(){"use strict";const E=/^[\w+.-]+:\/\//;const P=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const N=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(P){return E.test(P)}function isSchemeRelativeUrl(E){return E.startsWith("//")}function isAbsolutePath(E){return E.startsWith("/")}function isFileUrl(E){return E.startsWith("file:")}function isRelative(E){return/^[.?#]/.test(E)}function parseAbsoluteUrl(E){const N=P.exec(E);return makeUrl(N[1],N[2]||"",N[3],N[4]||"",N[5]||"/",N[6]||"",N[7]||"")}function parseFileUrl(E){const P=N.exec(E);const R=P[2];return makeUrl("file:","",P[1]||"","",isAbsolutePath(R)?R:"/"+R,P[3]||"",P[4]||"")}function makeUrl(E,P,N,R,L,$,q){return{scheme:E,user:P,host:N,port:R,path:L,query:$,hash:q,type:7}}function parseUrl(E){if(isSchemeRelativeUrl(E)){const P=parseAbsoluteUrl("http:"+E);P.scheme="";P.type=6;return P}if(isAbsolutePath(E)){const P=parseAbsoluteUrl("http://foo.com"+E);P.scheme="";P.host="";P.type=5;return P}if(isFileUrl(E))return parseFileUrl(E);if(isAbsoluteUrl(E))return parseAbsoluteUrl(E);const P=parseAbsoluteUrl("http://foo.com/"+E);P.scheme="";P.host="";P.type=E?E.startsWith("?")?3:E.startsWith("#")?2:4:1;return P}function stripPathFilename(E){if(E.endsWith("/.."))return E;const P=E.lastIndexOf("/");return E.slice(0,P+1)}function mergePaths(E,P){normalizePath(P,P.type);if(E.path==="/"){E.path=P.path}else{E.path=stripPathFilename(P.path)+E.path}}function normalizePath(E,P){const N=P<=4;const R=E.path.split("/");let L=1;let $=0;let q=false;for(let E=1;E<R.length;E++){const P=R[E];if(!P){q=true;continue}q=false;if(P===".")continue;if(P===".."){if($){q=true;$--;L--}else if(N){R[L++]=P}continue}R[L++]=P;$++}let K="";for(let E=1;E<L;E++){K+="/"+R[E]}if(!K||q&&!K.endsWith("/..")){K+="/"}E.path=K}function resolve(E,P){if(!E&&!P)return"";const N=parseUrl(E);let R=N.type;if(P&&R!==7){const E=parseUrl(P);const L=E.type;switch(R){case 1:N.hash=E.hash;case 2:N.query=E.query;case 3:case 4:mergePaths(N,E);case 5:N.user=E.user;N.host=E.host;N.port=E.port;case 6:N.scheme=E.scheme}if(L>R)R=L}normalizePath(N,R);const L=N.query+N.hash;switch(R){case 2:case 3:return L;case 4:{const R=N.path.slice(1);if(!R)return L||".";if(isRelative(P||E)&&!isRelative(R)){return"./"+R+L}return R+L}case 5:return N.path+L;default:return N.scheme+"//"+N.user+N.host+N.port+N.path+L}}return resolve}))},12288:function(E,P){(function(E,N){true?N(P):0})(this,(function(E){"use strict";class SetArray{constructor(){this._indexes={__proto__:null};this.array=[]}}function cast(E){return E}function get(E,P){return cast(E)._indexes[P]}function put(E,P){const N=get(E,P);if(N!==undefined)return N;const{array:R,_indexes:L}=cast(E);const $=R.push(P);return L[P]=$-1}function pop(E){const{array:P,_indexes:N}=cast(E);if(P.length===0)return;const R=P.pop();N[R]=undefined}function remove(E,P){const N=get(E,P);if(N===undefined)return;const{array:R,_indexes:L}=cast(E);for(let E=N+1;E<R.length;E++){const P=R[E];R[E-1]=P;L[P]--}L[P]=undefined;R.pop()}E.SetArray=SetArray;E.get=get;E.pop=pop;E.put=put;E.remove=remove;Object.defineProperty(E,"__esModule",{value:true})}))},78424:function(E,P){(function(E,N){true?N(P):0})(this,(function(E){"use strict";const P=",".charCodeAt(0);const N=";".charCodeAt(0);const R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const L=new Uint8Array(64);const $=new Uint8Array(128);for(let E=0;E<R.length;E++){const P=R.charCodeAt(E);L[E]=P;$[P]=E}function decodeInteger(E,P){let N=0;let R=0;let L=0;do{const P=E.next();L=$[P];N|=(L&31)<<R;R+=5}while(L&32);const q=N&1;N>>>=1;if(q){N=-2147483648|-N}return P+N}function encodeInteger(E,P,N){let R=P-N;R=R<0?-R<<1|1:R<<1;do{let P=R&31;R>>>=5;if(R>0)P|=32;E.write(L[P])}while(R>0);return P}function hasMoreVlq(E,N){if(E.pos>=N)return false;return E.peek()!==P}const q=1024*16;const K=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(E){const P=Buffer.from(E.buffer,E.byteOffset,E.byteLength);return P.toString()}}:{decode(E){let P="";for(let N=0;N<E.length;N++){P+=String.fromCharCode(E[N])}return P}};class StringWriter{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(q)}write(E){const{buffer:P}=this;P[this.pos++]=E;if(this.pos===q){this.out+=K.decode(P);this.pos=0}}flush(){const{buffer:E,out:P,pos:N}=this;return N>0?P+K.decode(E.subarray(0,N)):P}}class StringReader{constructor(E){this.pos=0;this.buffer=E}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(E){const{buffer:P,pos:N}=this;const R=P.indexOf(E,N);return R===-1?P.length:R}}const ae=[];function decodeOriginalScopes(E){const{length:P}=E;const N=new StringReader(E);const R=[];const L=[];let $=0;for(;N.pos<P;N.pos++){$=decodeInteger(N,$);const E=decodeInteger(N,0);if(!hasMoreVlq(N,P)){const P=L.pop();P[2]=$;P[3]=E;continue}const q=decodeInteger(N,0);const K=decodeInteger(N,0);const ge=K&1;const ve=ge?[$,E,0,0,q,decodeInteger(N,0)]:[$,E,0,0,q];let be=ae;if(hasMoreVlq(N,P)){be=[];do{const E=decodeInteger(N,0);be.push(E)}while(hasMoreVlq(N,P))}ve.vars=be;R.push(ve);L.push(ve)}return R}function encodeOriginalScopes(E){const P=new StringWriter;for(let N=0;N<E.length;){N=_encodeOriginalScopes(E,N,P,[0])}return P.flush()}function _encodeOriginalScopes(E,N,R,L){const $=E[N];const{0:q,1:K,2:ae,3:ge,4:ve,vars:be}=$;if(N>0)R.write(P);L[0]=encodeInteger(R,q,L[0]);encodeInteger(R,K,0);encodeInteger(R,ve,0);const xe=$.length===6?1:0;encodeInteger(R,xe,0);if($.length===6)encodeInteger(R,$[5],0);for(const E of be){encodeInteger(R,E,0)}for(N++;N<E.length;){const P=E[N];const{0:$,1:q}=P;if($>ae||$===ae&&q>=ge){break}N=_encodeOriginalScopes(E,N,R,L)}R.write(P);L[0]=encodeInteger(R,ae,L[0]);encodeInteger(R,ge,0);return N}function decodeGeneratedRanges(E){const{length:P}=E;const N=new StringReader(E);const R=[];const L=[];let $=0;let q=0;let K=0;let ge=0;let ve=0;let be=0;let xe=0;let Ce=0;do{const E=N.indexOf(";");let P=0;for(;N.pos<E;N.pos++){P=decodeInteger(N,P);if(!hasMoreVlq(N,E)){const E=L.pop();E[2]=$;E[3]=P;continue}const Ie=decodeInteger(N,0);const Je=Ie&1;const Ve=Ie&2;const He=Ie&4;let Ke=null;let Qe=ae;let Xe;if(Je){const E=decodeInteger(N,q);K=decodeInteger(N,q===E?K:0);q=E;Xe=[$,P,0,0,E,K]}else{Xe=[$,P,0,0]}Xe.isScope=!!He;if(Ve){const E=ge;const P=ve;ge=decodeInteger(N,ge);const R=E===ge;ve=decodeInteger(N,R?ve:0);be=decodeInteger(N,R&&P===ve?be:0);Ke=[ge,ve,be]}Xe.callsite=Ke;if(hasMoreVlq(N,E)){Qe=[];do{xe=$;Ce=P;const E=decodeInteger(N,0);let R;if(E<-1){R=[[decodeInteger(N,0)]];for(let P=-1;P>E;P--){const E=xe;xe=decodeInteger(N,xe);Ce=decodeInteger(N,xe===E?Ce:0);const P=decodeInteger(N,0);R.push([P,xe,Ce])}}else{R=[[E]]}Qe.push(R)}while(hasMoreVlq(N,E))}Xe.bindings=Qe;R.push(Xe);L.push(Xe)}$++;N.pos=E+1}while(N.pos<P);return R}function encodeGeneratedRanges(E){if(E.length===0)return"";const P=new StringWriter;for(let N=0;N<E.length;){N=_encodeGeneratedRanges(E,N,P,[0,0,0,0,0,0,0])}return P.flush()}function _encodeGeneratedRanges(E,N,R,L){const $=E[N];const{0:q,1:K,2:ae,3:ge,isScope:ve,callsite:be,bindings:xe}=$;if(L[0]<q){catchupLine(R,L[0],q);L[0]=q;L[1]=0}else if(N>0){R.write(P)}L[1]=encodeInteger(R,$[1],L[1]);const Ce=($.length===6?1:0)|(be?2:0)|(ve?4:0);encodeInteger(R,Ce,0);if($.length===6){const{4:E,5:P}=$;if(E!==L[2]){L[3]=0}L[2]=encodeInteger(R,E,L[2]);L[3]=encodeInteger(R,P,L[3])}if(be){const{0:E,1:P,2:N}=$.callsite;if(E!==L[4]){L[5]=0;L[6]=0}else if(P!==L[5]){L[6]=0}L[4]=encodeInteger(R,E,L[4]);L[5]=encodeInteger(R,P,L[5]);L[6]=encodeInteger(R,N,L[6])}if(xe){for(const E of xe){if(E.length>1)encodeInteger(R,-E.length,0);const P=E[0][0];encodeInteger(R,P,0);let N=q;let L=K;for(let P=1;P<E.length;P++){const $=E[P];N=encodeInteger(R,$[1],N);L=encodeInteger(R,$[2],L);encodeInteger(R,$[0],0)}}}for(N++;N<E.length;){const P=E[N];const{0:$,1:q}=P;if($>ae||$===ae&&q>=ge){break}N=_encodeGeneratedRanges(E,N,R,L)}if(L[0]<ae){catchupLine(R,L[0],ae);L[0]=ae;L[1]=0}else{R.write(P)}L[1]=encodeInteger(R,ge,L[1]);return N}function catchupLine(E,P,R){do{E.write(N)}while(++P<R)}function decode(E){const{length:P}=E;const N=new StringReader(E);const R=[];let L=0;let $=0;let q=0;let K=0;let ae=0;do{const E=N.indexOf(";");const P=[];let ge=true;let ve=0;L=0;while(N.pos<E){let R;L=decodeInteger(N,L);if(L<ve)ge=false;ve=L;if(hasMoreVlq(N,E)){$=decodeInteger(N,$);q=decodeInteger(N,q);K=decodeInteger(N,K);if(hasMoreVlq(N,E)){ae=decodeInteger(N,ae);R=[L,$,q,K,ae]}else{R=[L,$,q,K]}}else{R=[L]}P.push(R);N.pos++}if(!ge)sort(P);R.push(P);N.pos=E+1}while(N.pos<=P);return R}function sort(E){E.sort(sortComparator)}function sortComparator(E,P){return E[0]-P[0]}function encode(E){const R=new StringWriter;let L=0;let $=0;let q=0;let K=0;for(let ae=0;ae<E.length;ae++){const ge=E[ae];if(ae>0)R.write(N);if(ge.length===0)continue;let ve=0;for(let E=0;E<ge.length;E++){const N=ge[E];if(E>0)R.write(P);ve=encodeInteger(R,N[0],ve);if(N.length===1)continue;L=encodeInteger(R,N[1],L);$=encodeInteger(R,N[2],$);q=encodeInteger(R,N[3],q);if(N.length===4)continue;K=encodeInteger(R,N[4],K)}}return R.flush()}E.decode=decode;E.decodeGeneratedRanges=decodeGeneratedRanges;E.decodeOriginalScopes=decodeOriginalScopes;E.encode=encode;E.encodeGeneratedRanges=encodeGeneratedRanges;E.encodeOriginalScopes=encodeOriginalScopes;Object.defineProperty(E,"__esModule",{value:true})}))},38916:function(E,P,N){(function(E,R){true?R(P,N(78424),N(32642)):0})(this,(function(E,P,N){"use strict";function resolve(E,P){if(P&&!P.endsWith("/"))P+="/";return N(E,P)}function stripFilename(E){if(!E)return"";const P=E.lastIndexOf("/");return E.slice(0,P+1)}const R=0;const L=1;const $=2;const q=3;const K=4;const ae=1;const ge=2;function maybeSort(E,P){const N=nextUnsortedSegmentLine(E,0);if(N===E.length)return E;if(!P)E=E.slice();for(let R=N;R<E.length;R=nextUnsortedSegmentLine(E,R+1)){E[R]=sortSegments(E[R],P)}return E}function nextUnsortedSegmentLine(E,P){for(let N=P;N<E.length;N++){if(!isSorted(E[N]))return N}return E.length}function isSorted(E){for(let P=1;P<E.length;P++){if(E[P][R]<E[P-1][R]){return false}}return true}function sortSegments(E,P){if(!P)E=E.slice();return E.sort(sortComparator)}function sortComparator(E,P){return E[R]-P[R]}let ve=false;function binarySearch(E,P,N,L){while(N<=L){const $=N+(L-N>>1);const q=E[$][R]-P;if(q===0){ve=true;return $}if(q<0){N=$+1}else{L=$-1}}ve=false;return N-1}function upperBound(E,P,N){for(let L=N+1;L<E.length;N=L++){if(E[L][R]!==P)break}return N}function lowerBound(E,P,N){for(let L=N-1;L>=0;N=L--){if(E[L][R]!==P)break}return N}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(E,P,N,L){const{lastKey:$,lastNeedle:q,lastIndex:K}=N;let ae=0;let ge=E.length-1;if(L===$){if(P===q){ve=K!==-1&&E[K][R]===P;return K}if(P>=q){ae=K===-1?0:K}else{ge=K}}N.lastKey=L;N.lastNeedle=P;return N.lastIndex=binarySearch(E,P,ae,ge)}function buildBySources(E,P){const N=P.map(buildNullArray);for(let K=0;K<E.length;K++){const ae=E[K];for(let E=0;E<ae.length;E++){const ge=ae[E];if(ge.length===1)continue;const ve=ge[L];const be=ge[$];const xe=ge[q];const Ce=N[ve];const Ie=Ce[be]||(Ce[be]=[]);const Je=P[ve];let Ve=upperBound(Ie,xe,memoizedBinarySearch(Ie,xe,Je,be));Je.lastIndex=++Ve;insert(Ie,Ve,[xe,K,ge[R]])}}return N}function insert(E,P,N){for(let N=E.length;N>P;N--){E[N]=E[N-1]}E[P]=N}function buildNullArray(){return{__proto__:null}}const AnyMap=function(E,P){const N=parse(E);if(!("sections"in N)){return new TraceMap(N,P)}const R=[];const L=[];const $=[];const q=[];const K=[];recurse(N,P,R,L,$,q,K,0,0,Infinity,Infinity);const ae={version:3,file:N.file,names:q,sources:L,sourcesContent:$,mappings:R,ignoreList:K};return presortedDecodedMap(ae)};function parse(E){return typeof E==="string"?JSON.parse(E):E}function recurse(E,P,N,R,L,$,q,K,ae,ge,ve){const{sections:be}=E;for(let E=0;E<be.length;E++){const{map:xe,offset:Ce}=be[E];let Ie=ge;let Je=ve;if(E+1<be.length){const P=be[E+1].offset;Ie=Math.min(ge,K+P.line);if(Ie===ge){Je=Math.min(ve,ae+P.column)}else if(Ie<ge){Je=ae+P.column}}addSection(xe,P,N,R,L,$,q,K+Ce.line,ae+Ce.column,Ie,Je)}}function addSection(E,P,N,ae,ge,ve,be,xe,Ce,Ie,Je){const Ve=parse(E);if("sections"in Ve)return recurse(...arguments);const He=new TraceMap(Ve,P);const Ke=ae.length;const Qe=ve.length;const Xe=decodedMappings(He);const{resolvedSources:Ye,sourcesContent:Ze,ignoreList:et}=He;append(ae,Ye);append(ve,He.names);if(Ze)append(ge,Ze);else for(let E=0;E<Ye.length;E++)ge.push(null);if(et)for(let E=0;E<et.length;E++)be.push(et[E]+Ke);for(let E=0;E<Xe.length;E++){const P=xe+E;if(P>Ie)return;const ae=getLine(N,P);const ge=E===0?Ce:0;const ve=Xe[E];for(let E=0;E<ve.length;E++){const N=ve[E];const be=ge+N[R];if(P===Ie&&be>=Je)return;if(N.length===1){ae.push([be]);continue}const xe=Ke+N[L];const Ce=N[$];const Ve=N[q];ae.push(N.length===4?[be,xe,Ce,Ve]:[be,xe,Ce,Ve,Qe+N[K]])}}}function append(E,P){for(let N=0;N<P.length;N++)E.push(P[N])}function getLine(E,P){for(let N=E.length;N<=P;N++)E[N]=[];return E[P]}const be="`line` must be greater than 0 (lines start at line 1)";const xe="`column` must be greater than or equal to 0 (columns start at column 0)";const Ce=-1;const Ie=1;class TraceMap{constructor(E,P){const N=typeof E==="string";if(!N&&E._decodedMemo)return E;const R=N?JSON.parse(E):E;const{version:L,file:$,names:q,sourceRoot:K,sources:ae,sourcesContent:ge}=R;this.version=L;this.file=$;this.names=q||[];this.sourceRoot=K;this.sources=ae;this.sourcesContent=ge;this.ignoreList=R.ignoreList||R.x_google_ignoreList||undefined;const ve=resolve(K||"",stripFilename(P));this.resolvedSources=ae.map((E=>resolve(E||"",ve)));const{mappings:be}=R;if(typeof be==="string"){this._encoded=be;this._decoded=undefined}else{this._encoded=undefined;this._decoded=maybeSort(be,N)}this._decodedMemo=memoizedState();this._bySources=undefined;this._bySourceMemos=undefined}}function cast(E){return E}function encodedMappings(E){var N;var R;return(N=(R=cast(E))._encoded)!==null&&N!==void 0?N:R._encoded=P.encode(cast(E)._decoded)}function decodedMappings(E){var N;return(N=cast(E))._decoded||(N._decoded=P.decode(cast(E)._encoded))}function traceSegment(E,P,N){const R=decodedMappings(E);if(P>=R.length)return null;const L=R[P];const $=traceSegmentInternal(L,cast(E)._decodedMemo,P,N,Ie);return $===-1?null:L[$]}function originalPositionFor(E,P){let{line:N,column:R,bias:ae}=P;N--;if(N<0)throw new Error(be);if(R<0)throw new Error(xe);const ge=decodedMappings(E);if(N>=ge.length)return OMapping(null,null,null,null);const ve=ge[N];const Ce=traceSegmentInternal(ve,cast(E)._decodedMemo,N,R,ae||Ie);if(Ce===-1)return OMapping(null,null,null,null);const Je=ve[Ce];if(Je.length===1)return OMapping(null,null,null,null);const{names:Ve,resolvedSources:He}=E;return OMapping(He[Je[L]],Je[$]+1,Je[q],Je.length===5?Ve[Je[K]]:null)}function generatedPositionFor(E,P){const{source:N,line:R,column:L,bias:$}=P;return generatedPosition(E,N,R,L,$||Ie,false)}function allGeneratedPositionsFor(E,P){const{source:N,line:R,column:L,bias:$}=P;return generatedPosition(E,N,R,L,$||Ce,true)}function eachMapping(E,P){const N=decodedMappings(E);const{names:R,resolvedSources:L}=E;for(let E=0;E<N.length;E++){const $=N[E];for(let N=0;N<$.length;N++){const q=$[N];const K=E+1;const ae=q[0];let ge=null;let ve=null;let be=null;let xe=null;if(q.length!==1){ge=L[q[1]];ve=q[2]+1;be=q[3]}if(q.length===5)xe=R[q[4]];P({generatedLine:K,generatedColumn:ae,source:ge,originalLine:ve,originalColumn:be,name:xe})}}}function sourceIndex(E,P){const{sources:N,resolvedSources:R}=E;let L=N.indexOf(P);if(L===-1)L=R.indexOf(P);return L}function sourceContentFor(E,P){const{sourcesContent:N}=E;if(N==null)return null;const R=sourceIndex(E,P);return R===-1?null:N[R]}function isIgnored(E,P){const{ignoreList:N}=E;if(N==null)return false;const R=sourceIndex(E,P);return R===-1?false:N.includes(R)}function presortedDecodedMap(E,P){const N=new TraceMap(clone(E,[]),P);cast(N)._decoded=E.mappings;return N}function decodedMap(E){return clone(E,decodedMappings(E))}function encodedMap(E){return clone(E,encodedMappings(E))}function clone(E,P){return{version:E.version,file:E.file,names:E.names,sourceRoot:E.sourceRoot,sources:E.sources,sourcesContent:E.sourcesContent,mappings:P,ignoreList:E.ignoreList||E.x_google_ignoreList}}function OMapping(E,P,N,R){return{source:E,line:P,column:N,name:R}}function GMapping(E,P){return{line:E,column:P}}function traceSegmentInternal(E,P,N,R,L){let $=memoizedBinarySearch(E,R,P,N);if(ve){$=(L===Ce?upperBound:lowerBound)(E,R,$)}else if(L===Ce)$++;if($===-1||$===E.length)return-1;return $}function sliceGeneratedPositions(E,P,N,L,$){let q=traceSegmentInternal(E,P,N,L,Ie);if(!ve&&$===Ce)q++;if(q===-1||q===E.length)return[];const K=ve?L:E[q][R];if(!ve)q=lowerBound(E,K,q);const be=upperBound(E,K,q);const xe=[];for(;q<=be;q++){const P=E[q];xe.push(GMapping(P[ae]+1,P[ge]))}return xe}function generatedPosition(E,P,N,R,L,$){var q;N--;if(N<0)throw new Error(be);if(R<0)throw new Error(xe);const{sources:K,resolvedSources:ve}=E;let Ce=K.indexOf(P);if(Ce===-1)Ce=ve.indexOf(P);if(Ce===-1)return $?[]:GMapping(null,null);const Ie=(q=cast(E))._bySources||(q._bySources=buildBySources(decodedMappings(E),cast(E)._bySourceMemos=K.map(memoizedState)));const Je=Ie[Ce][N];if(Je==null)return $?[]:GMapping(null,null);const Ve=cast(E)._bySourceMemos[Ce];if($)return sliceGeneratedPositions(Je,Ve,N,R,L);const He=traceSegmentInternal(Je,Ve,N,R,L);if(He===-1)return GMapping(null,null);const Ke=Je[He];return GMapping(Ke[ae]+1,Ke[ge])}E.AnyMap=AnyMap;E.GREATEST_LOWER_BOUND=Ie;E.LEAST_UPPER_BOUND=Ce;E.TraceMap=TraceMap;E.allGeneratedPositionsFor=allGeneratedPositionsFor;E.decodedMap=decodedMap;E.decodedMappings=decodedMappings;E.eachMapping=eachMapping;E.encodedMap=encodedMap;E.encodedMappings=encodedMappings;E.generatedPositionFor=generatedPositionFor;E.isIgnored=isIgnored;E.originalPositionFor=originalPositionFor;E.presortedDecodedMap=presortedDecodedMap;E.sourceContentFor=sourceContentFor;E.traceSegment=traceSegment}))},5612:(E,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.cloneNode=cloneNode;function cloneNode(E){return Object.assign({},E)}},97921:(E,P,N)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});var R={numberLiteralFromRaw:true,withLoc:true,withRaw:true,funcParam:true,indexLiteral:true,memIndexLiteral:true,instruction:true,objectInstruction:true,traverse:true,signatures:true,cloneNode:true,moduleContextFromModuleAST:true};Object.defineProperty(P,"numberLiteralFromRaw",{enumerable:true,get:function get(){return $.numberLiteralFromRaw}});Object.defineProperty(P,"withLoc",{enumerable:true,get:function get(){return $.withLoc}});Object.defineProperty(P,"withRaw",{enumerable:true,get:function get(){return $.withRaw}});Object.defineProperty(P,"funcParam",{enumerable:true,get:function get(){return $.funcParam}});Object.defineProperty(P,"indexLiteral",{enumerable:true,get:function get(){return $.indexLiteral}});Object.defineProperty(P,"memIndexLiteral",{enumerable:true,get:function get(){return $.memIndexLiteral}});Object.defineProperty(P,"instruction",{enumerable:true,get:function get(){return $.instruction}});Object.defineProperty(P,"objectInstruction",{enumerable:true,get:function get(){return $.objectInstruction}});Object.defineProperty(P,"traverse",{enumerable:true,get:function get(){return q.traverse}});Object.defineProperty(P,"signatures",{enumerable:true,get:function get(){return K.signatures}});Object.defineProperty(P,"cloneNode",{enumerable:true,get:function get(){return ge.cloneNode}});Object.defineProperty(P,"moduleContextFromModuleAST",{enumerable:true,get:function get(){return ve.moduleContextFromModuleAST}});var L=N(73356);Object.keys(L).forEach((function(E){if(E==="default"||E==="__esModule")return;if(Object.prototype.hasOwnProperty.call(R,E))return;if(E in P&&P[E]===L[E])return;Object.defineProperty(P,E,{enumerable:true,get:function get(){return L[E]}})}));var $=N(49401);var q=N(7887);var K=N(64034);var ae=N(34828);Object.keys(ae).forEach((function(E){if(E==="default"||E==="__esModule")return;if(Object.prototype.hasOwnProperty.call(R,E))return;if(E in P&&P[E]===ae[E])return;Object.defineProperty(P,E,{enumerable:true,get:function get(){return ae[E]}})}));var ge=N(5612);var ve=N(88063)},49401:(E,P,N)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.numberLiteralFromRaw=numberLiteralFromRaw;P.instruction=instruction;P.objectInstruction=objectInstruction;P.withLoc=withLoc;P.withRaw=withRaw;P.funcParam=funcParam;P.indexLiteral=indexLiteral;P.memIndexLiteral=memIndexLiteral;var R=N(45804);var L=N(73356);function numberLiteralFromRaw(E){var P=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"i32";var N=E;if(typeof E==="string"){E=E.replace(/_/g,"")}if(typeof E==="number"){return(0,L.numberLiteral)(E,String(N))}else{switch(P){case"i32":{return(0,L.numberLiteral)((0,R.parse32I)(E),String(N))}case"u32":{return(0,L.numberLiteral)((0,R.parseU32)(E),String(N))}case"i64":{return(0,L.longNumberLiteral)((0,R.parse64I)(E),String(N))}case"f32":{return(0,L.floatLiteral)((0,R.parse32F)(E),(0,R.isNanLiteral)(E),(0,R.isInfLiteral)(E),String(N))}default:{return(0,L.floatLiteral)((0,R.parse64F)(E),(0,R.isNanLiteral)(E),(0,R.isInfLiteral)(E),String(N))}}}}function instruction(E){var P=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var N=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return(0,L.instr)(E,undefined,P,N)}function objectInstruction(E,P){var N=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var R=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return(0,L.instr)(E,P,N,R)}function withLoc(E,P,N){var R={start:N,end:P};E.loc=R;return E}function withRaw(E,P){E.raw=P;return E}function funcParam(E,P){return{id:P,valtype:E}}function indexLiteral(E){var P=numberLiteralFromRaw(E,"u32");return P}function memIndexLiteral(E){var P=numberLiteralFromRaw(E,"u32");return P}},20765:(E,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.createPath=createPath;function ownKeys(E,P){var N=Object.keys(E);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(E);if(P){R=R.filter((function(P){return Object.getOwnPropertyDescriptor(E,P).enumerable}))}N.push.apply(N,R)}return N}function _objectSpread(E){for(var P=1;P<arguments.length;P++){var N=arguments[P]!=null?arguments[P]:{};if(P%2){ownKeys(Object(N),true).forEach((function(P){_defineProperty(E,P,N[P])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(E,Object.getOwnPropertyDescriptors(N))}else{ownKeys(Object(N)).forEach((function(P){Object.defineProperty(E,P,Object.getOwnPropertyDescriptor(N,P))}))}}return E}function _defineProperty(E,P,N){if(P in E){Object.defineProperty(E,P,{value:N,enumerable:true,configurable:true,writable:true})}else{E[P]=N}return E}function findParent(E,P){var N=E.parentPath;if(N==null){throw new Error("node is root")}var R=N;while(P(R)!==false){if(R.parentPath==null){return null}R=R.parentPath}return R.node}function insertBefore(E,P){return insert(E,P)}function insertAfter(E,P){return insert(E,P,1)}function insert(E,P){var N=E.node,R=E.inList,L=E.parentPath,$=E.parentKey;var q=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(!R){throw new Error("inList"+" error: "+("insert can only be used for nodes that are within lists"||0))}if(!(L!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var K=L.node[$];var ae=K.findIndex((function(E){return E===N}));K.splice(ae+q,0,P)}function remove(E){var P=E.node,N=E.parentKey,R=E.parentPath;if(!(R!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var L=R.node;var $=L[N];if(Array.isArray($)){L[N]=$.filter((function(E){return E!==P}))}else{delete L[N]}P._deleted=true}function stop(E){E.shouldStop=true}function replaceWith(E,P){var N=E.parentPath.node;var R=N[E.parentKey];if(Array.isArray(R)){var L=R.findIndex((function(P){return P===E.node}));R.splice(L,1,P)}else{N[E.parentKey]=P}E.node._deleted=true;E.node=P}function bindNodeOperations(E,P){var N=Object.keys(E);var R={};N.forEach((function(N){R[N]=E[N].bind(null,P)}));return R}function createPathOperations(E){return bindNodeOperations({findParent:findParent,replaceWith:replaceWith,remove:remove,insertBefore:insertBefore,insertAfter:insertAfter,stop:stop},E)}function createPath(E){var P=_objectSpread({},E);Object.assign(P,createPathOperations(P));return P}},73356:(E,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.module=_module;P.moduleMetadata=moduleMetadata;P.moduleNameMetadata=moduleNameMetadata;P.functionNameMetadata=functionNameMetadata;P.localNameMetadata=localNameMetadata;P.binaryModule=binaryModule;P.quoteModule=quoteModule;P.sectionMetadata=sectionMetadata;P.producersSectionMetadata=producersSectionMetadata;P.producerMetadata=producerMetadata;P.producerMetadataVersionedName=producerMetadataVersionedName;P.loopInstruction=loopInstruction;P.instr=instr;P.ifInstruction=ifInstruction;P.stringLiteral=stringLiteral;P.numberLiteral=numberLiteral;P.longNumberLiteral=longNumberLiteral;P.floatLiteral=floatLiteral;P.elem=elem;P.indexInFuncSection=indexInFuncSection;P.valtypeLiteral=valtypeLiteral;P.typeInstruction=typeInstruction;P.start=start;P.globalType=globalType;P.leadingComment=leadingComment;P.blockComment=blockComment;P.data=data;P.global=global;P.table=table;P.memory=memory;P.funcImportDescr=funcImportDescr;P.moduleImport=moduleImport;P.moduleExportDescr=moduleExportDescr;P.moduleExport=moduleExport;P.limit=limit;P.signature=signature;P.program=program;P.identifier=identifier;P.blockInstruction=blockInstruction;P.callInstruction=callInstruction;P.callIndirectInstruction=callIndirectInstruction;P.byteArray=byteArray;P.func=func;P.internalBrUnless=internalBrUnless;P.internalGoto=internalGoto;P.internalCallExtern=internalCallExtern;P.internalEndAndReturn=internalEndAndReturn;P.assertInternalCallExtern=P.assertInternalGoto=P.assertInternalBrUnless=P.assertFunc=P.assertByteArray=P.assertCallIndirectInstruction=P.assertCallInstruction=P.assertBlockInstruction=P.assertIdentifier=P.assertProgram=P.assertSignature=P.assertLimit=P.assertModuleExport=P.assertModuleExportDescr=P.assertModuleImport=P.assertFuncImportDescr=P.assertMemory=P.assertTable=P.assertGlobal=P.assertData=P.assertBlockComment=P.assertLeadingComment=P.assertGlobalType=P.assertStart=P.assertTypeInstruction=P.assertValtypeLiteral=P.assertIndexInFuncSection=P.assertElem=P.assertFloatLiteral=P.assertLongNumberLiteral=P.assertNumberLiteral=P.assertStringLiteral=P.assertIfInstruction=P.assertInstr=P.assertLoopInstruction=P.assertProducerMetadataVersionedName=P.assertProducerMetadata=P.assertProducersSectionMetadata=P.assertSectionMetadata=P.assertQuoteModule=P.assertBinaryModule=P.assertLocalNameMetadata=P.assertFunctionNameMetadata=P.assertModuleNameMetadata=P.assertModuleMetadata=P.assertModule=P.isIntrinsic=P.isImportDescr=P.isNumericLiteral=P.isExpression=P.isInstruction=P.isBlock=P.isNode=P.isInternalEndAndReturn=P.isInternalCallExtern=P.isInternalGoto=P.isInternalBrUnless=P.isFunc=P.isByteArray=P.isCallIndirectInstruction=P.isCallInstruction=P.isBlockInstruction=P.isIdentifier=P.isProgram=P.isSignature=P.isLimit=P.isModuleExport=P.isModuleExportDescr=P.isModuleImport=P.isFuncImportDescr=P.isMemory=P.isTable=P.isGlobal=P.isData=P.isBlockComment=P.isLeadingComment=P.isGlobalType=P.isStart=P.isTypeInstruction=P.isValtypeLiteral=P.isIndexInFuncSection=P.isElem=P.isFloatLiteral=P.isLongNumberLiteral=P.isNumberLiteral=P.isStringLiteral=P.isIfInstruction=P.isInstr=P.isLoopInstruction=P.isProducerMetadataVersionedName=P.isProducerMetadata=P.isProducersSectionMetadata=P.isSectionMetadata=P.isQuoteModule=P.isBinaryModule=P.isLocalNameMetadata=P.isFunctionNameMetadata=P.isModuleNameMetadata=P.isModuleMetadata=P.isModule=void 0;P.nodeAndUnionTypes=P.unionTypesMap=P.assertInternalEndAndReturn=void 0;function _typeof(E){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(E){return typeof E}}else{_typeof=function _typeof(E){return E&&typeof Symbol==="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E}}return _typeof(E)}function isTypeOf(E){return function(P){return P.type===E}}function assertTypeOf(E){return function(P){return function(){if(!(P.type===E)){throw new Error("n.type === t"+" error: "+(false||"unknown"))}}()}}function _module(E,P,N){if(E!==null&&E!==undefined){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof fields === "object" && typeof fields.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"Module",id:E,fields:P};if(typeof N!=="undefined"){R.metadata=N}return R}function moduleMetadata(E,P,N,R){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof sections === "object" && typeof sections.length !== "undefined"'+" error: "+(false||"unknown"))}if(P!==null&&P!==undefined){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof functionNames === "object" && typeof functionNames.length !== "undefined"'+" error: "+(false||"unknown"))}}if(N!==null&&N!==undefined){if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof localNames === "object" && typeof localNames.length !== "undefined"'+" error: "+(false||"unknown"))}}if(R!==null&&R!==undefined){if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof producers === "object" && typeof producers.length !== "undefined"'+" error: "+(false||"unknown"))}}var L={type:"ModuleMetadata",sections:E};if(typeof P!=="undefined"&&P.length>0){L.functionNames=P}if(typeof N!=="undefined"&&N.length>0){L.localNames=N}if(typeof R!=="undefined"&&R.length>0){L.producers=R}return L}function moduleNameMetadata(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"ModuleNameMetadata",value:E};return P}function functionNameMetadata(E,P){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="number")){throw new Error('typeof index === "number"'+" error: "+("Argument index must be of type number, given: "+_typeof(P)||0))}var N={type:"FunctionNameMetadata",value:E,index:P};return N}function localNameMetadata(E,P,N){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="number")){throw new Error('typeof localIndex === "number"'+" error: "+("Argument localIndex must be of type number, given: "+_typeof(P)||0))}if(!(typeof N==="number")){throw new Error('typeof functionIndex === "number"'+" error: "+("Argument functionIndex must be of type number, given: "+_typeof(N)||0))}var R={type:"LocalNameMetadata",value:E,localIndex:P,functionIndex:N};return R}function binaryModule(E,P){if(E!==null&&E!==undefined){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof blob === "object" && typeof blob.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"BinaryModule",id:E,blob:P};return N}function quoteModule(E,P){if(E!==null&&E!==undefined){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof string === "object" && typeof string.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"QuoteModule",id:E,string:P};return N}function sectionMetadata(E,P,N,R){if(!(typeof P==="number")){throw new Error('typeof startOffset === "number"'+" error: "+("Argument startOffset must be of type number, given: "+_typeof(P)||0))}var L={type:"SectionMetadata",section:E,startOffset:P,size:N,vectorOfSize:R};return L}function producersSectionMetadata(E){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof producers === "object" && typeof producers.length !== "undefined"'+" error: "+(false||"unknown"))}var P={type:"ProducersSectionMetadata",producers:E};return P}function producerMetadata(E,P,N){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof language === "object" && typeof language.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof processedBy === "object" && typeof processedBy.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof sdk === "object" && typeof sdk.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"ProducerMetadata",language:E,processedBy:P,sdk:N};return R}function producerMetadataVersionedName(E,P){if(!(typeof E==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="string")){throw new Error('typeof version === "string"'+" error: "+("Argument version must be of type string, given: "+_typeof(P)||0))}var N={type:"ProducerMetadataVersionedName",name:E,version:P};return N}function loopInstruction(E,P,N){if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"LoopInstruction",id:"loop",label:E,resulttype:P,instr:N};return R}function instr(E,P,N,R){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof args === "object" && typeof args.length !== "undefined"'+" error: "+(false||"unknown"))}var L={type:"Instr",id:E,args:N};if(typeof P!=="undefined"){L.object=P}if(typeof R!=="undefined"&&Object.keys(R).length!==0){L.namedArgs=R}return L}function ifInstruction(E,P,N,R,L){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof test === "object" && typeof test.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof consequent === "object" && typeof consequent.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(L)==="object"&&typeof L.length!=="undefined")){throw new Error('typeof alternate === "object" && typeof alternate.length !== "undefined"'+" error: "+(false||"unknown"))}var $={type:"IfInstruction",id:"if",testLabel:E,test:P,result:N,consequent:R,alternate:L};return $}function stringLiteral(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"StringLiteral",value:E};return P}function numberLiteral(E,P){if(!(typeof E==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(E)||0))}if(!(typeof P==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(P)||0))}var N={type:"NumberLiteral",value:E,raw:P};return N}function longNumberLiteral(E,P){if(!(typeof P==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(P)||0))}var N={type:"LongNumberLiteral",value:E,raw:P};return N}function floatLiteral(E,P,N,R){if(!(typeof E==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(E)||0))}if(P!==null&&P!==undefined){if(!(typeof P==="boolean")){throw new Error('typeof nan === "boolean"'+" error: "+("Argument nan must be of type boolean, given: "+_typeof(P)||0))}}if(N!==null&&N!==undefined){if(!(typeof N==="boolean")){throw new Error('typeof inf === "boolean"'+" error: "+("Argument inf must be of type boolean, given: "+_typeof(N)||0))}}if(!(typeof R==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(R)||0))}var L={type:"FloatLiteral",value:E,raw:R};if(P===true){L.nan=true}if(N===true){L.inf=true}return L}function elem(E,P,N){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof offset === "object" && typeof offset.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof funcs === "object" && typeof funcs.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"Elem",table:E,offset:P,funcs:N};return R}function indexInFuncSection(E){var P={type:"IndexInFuncSection",index:E};return P}function valtypeLiteral(E){var P={type:"ValtypeLiteral",name:E};return P}function typeInstruction(E,P){var N={type:"TypeInstruction",id:E,functype:P};return N}function start(E){var P={type:"Start",index:E};return P}function globalType(E,P){var N={type:"GlobalType",valtype:E,mutability:P};return N}function leadingComment(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"LeadingComment",value:E};return P}function blockComment(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"BlockComment",value:E};return P}function data(E,P,N){var R={type:"Data",memoryIndex:E,offset:P,init:N};return R}function global(E,P,N){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof init === "object" && typeof init.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"Global",globalType:E,init:P,name:N};return R}function table(E,P,N,R){if(!(P.type==="Limit")){throw new Error('limits.type === "Limit"'+" error: "+("Argument limits must be of type Limit, given: "+P.type||0))}if(R!==null&&R!==undefined){if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof elements === "object" && typeof elements.length !== "undefined"'+" error: "+(false||"unknown"))}}var L={type:"Table",elementType:E,limits:P,name:N};if(typeof R!=="undefined"&&R.length>0){L.elements=R}return L}function memory(E,P){var N={type:"Memory",limits:E,id:P};return N}function funcImportDescr(E,P){var N={type:"FuncImportDescr",id:E,signature:P};return N}function moduleImport(E,P,N){if(!(typeof E==="string")){throw new Error('typeof module === "string"'+" error: "+("Argument module must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(P)||0))}var R={type:"ModuleImport",module:E,name:P,descr:N};return R}function moduleExportDescr(E,P){var N={type:"ModuleExportDescr",exportType:E,id:P};return N}function moduleExport(E,P){if(!(typeof E==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(E)||0))}var N={type:"ModuleExport",name:E,descr:P};return N}function limit(E,P,N){if(!(typeof E==="number")){throw new Error('typeof min === "number"'+" error: "+("Argument min must be of type number, given: "+_typeof(E)||0))}if(P!==null&&P!==undefined){if(!(typeof P==="number")){throw new Error('typeof max === "number"'+" error: "+("Argument max must be of type number, given: "+_typeof(P)||0))}}if(N!==null&&N!==undefined){if(!(typeof N==="boolean")){throw new Error('typeof shared === "boolean"'+" error: "+("Argument shared must be of type boolean, given: "+_typeof(N)||0))}}var R={type:"Limit",min:E};if(typeof P!=="undefined"){R.max=P}if(N===true){R.shared=true}return R}function signature(E,P){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof params === "object" && typeof params.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof results === "object" && typeof results.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"Signature",params:E,results:P};return N}function program(E){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(false||"unknown"))}var P={type:"Program",body:E};return P}function identifier(E,P){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}if(P!==null&&P!==undefined){if(!(typeof P==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(P)||0))}}var N={type:"Identifier",value:E};if(typeof P!=="undefined"){N.raw=P}return N}function blockInstruction(E,P,N){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"BlockInstruction",id:"block",label:E,instr:P,result:N};return R}function callInstruction(E,P,N){if(P!==null&&P!==undefined){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof instrArgs === "object" && typeof instrArgs.length !== "undefined"'+" error: "+(false||"unknown"))}}var R={type:"CallInstruction",id:"call",index:E};if(typeof P!=="undefined"&&P.length>0){R.instrArgs=P}if(typeof N!=="undefined"){R.numeric=N}return R}function callIndirectInstruction(E,P){if(P!==null&&P!==undefined){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof intrs === "object" && typeof intrs.length !== "undefined"'+" error: "+(false||"unknown"))}}var N={type:"CallIndirectInstruction",id:"call_indirect",signature:E};if(typeof P!=="undefined"&&P.length>0){N.intrs=P}return N}function byteArray(E){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof values === "object" && typeof values.length !== "undefined"'+" error: "+(false||"unknown"))}var P={type:"ByteArray",values:E};return P}function func(E,P,N,R,L){if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(false||"unknown"))}if(R!==null&&R!==undefined){if(!(typeof R==="boolean")){throw new Error('typeof isExternal === "boolean"'+" error: "+("Argument isExternal must be of type boolean, given: "+_typeof(R)||0))}}var $={type:"Func",name:E,signature:P,body:N};if(R===true){$.isExternal=true}if(typeof L!=="undefined"){$.metadata=L}return $}function internalBrUnless(E){if(!(typeof E==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(E)||0))}var P={type:"InternalBrUnless",target:E};return P}function internalGoto(E){if(!(typeof E==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(E)||0))}var P={type:"InternalGoto",target:E};return P}function internalCallExtern(E){if(!(typeof E==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(E)||0))}var P={type:"InternalCallExtern",target:E};return P}function internalEndAndReturn(){var E={type:"InternalEndAndReturn"};return E}var N=isTypeOf("Module");P.isModule=N;var R=isTypeOf("ModuleMetadata");P.isModuleMetadata=R;var L=isTypeOf("ModuleNameMetadata");P.isModuleNameMetadata=L;var $=isTypeOf("FunctionNameMetadata");P.isFunctionNameMetadata=$;var q=isTypeOf("LocalNameMetadata");P.isLocalNameMetadata=q;var K=isTypeOf("BinaryModule");P.isBinaryModule=K;var ae=isTypeOf("QuoteModule");P.isQuoteModule=ae;var ge=isTypeOf("SectionMetadata");P.isSectionMetadata=ge;var ve=isTypeOf("ProducersSectionMetadata");P.isProducersSectionMetadata=ve;var be=isTypeOf("ProducerMetadata");P.isProducerMetadata=be;var xe=isTypeOf("ProducerMetadataVersionedName");P.isProducerMetadataVersionedName=xe;var Ce=isTypeOf("LoopInstruction");P.isLoopInstruction=Ce;var Ie=isTypeOf("Instr");P.isInstr=Ie;var Je=isTypeOf("IfInstruction");P.isIfInstruction=Je;var Ve=isTypeOf("StringLiteral");P.isStringLiteral=Ve;var He=isTypeOf("NumberLiteral");P.isNumberLiteral=He;var Ke=isTypeOf("LongNumberLiteral");P.isLongNumberLiteral=Ke;var Qe=isTypeOf("FloatLiteral");P.isFloatLiteral=Qe;var Xe=isTypeOf("Elem");P.isElem=Xe;var Ye=isTypeOf("IndexInFuncSection");P.isIndexInFuncSection=Ye;var Ze=isTypeOf("ValtypeLiteral");P.isValtypeLiteral=Ze;var et=isTypeOf("TypeInstruction");P.isTypeInstruction=et;var tt=isTypeOf("Start");P.isStart=tt;var nt=isTypeOf("GlobalType");P.isGlobalType=nt;var rt=isTypeOf("LeadingComment");P.isLeadingComment=rt;var it=isTypeOf("BlockComment");P.isBlockComment=it;var ot=isTypeOf("Data");P.isData=ot;var st=isTypeOf("Global");P.isGlobal=st;var ct=isTypeOf("Table");P.isTable=ct;var ut=isTypeOf("Memory");P.isMemory=ut;var dt=isTypeOf("FuncImportDescr");P.isFuncImportDescr=dt;var pt=isTypeOf("ModuleImport");P.isModuleImport=pt;var ft=isTypeOf("ModuleExportDescr");P.isModuleExportDescr=ft;var mt=isTypeOf("ModuleExport");P.isModuleExport=mt;var ht=isTypeOf("Limit");P.isLimit