MCPcopy
hub / github.com/vercel/next.js / apply

Method apply

packages/next/src/compiled/webpack/bundle5.js:1–1  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

1(function(){var v={60485:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.cloneNode=cloneNode;function cloneNode(v){return Object.assign({},v)}},65008:function(v,I,P){"use strict";Object.defineProperty(I,"__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(I,"numberLiteralFromRaw",{enumerable:true,get:function get(){return L.numberLiteralFromRaw}});Object.defineProperty(I,"withLoc",{enumerable:true,get:function get(){return L.withLoc}});Object.defineProperty(I,"withRaw",{enumerable:true,get:function get(){return L.withRaw}});Object.defineProperty(I,"funcParam",{enumerable:true,get:function get(){return L.funcParam}});Object.defineProperty(I,"indexLiteral",{enumerable:true,get:function get(){return L.indexLiteral}});Object.defineProperty(I,"memIndexLiteral",{enumerable:true,get:function get(){return L.memIndexLiteral}});Object.defineProperty(I,"instruction",{enumerable:true,get:function get(){return L.instruction}});Object.defineProperty(I,"objectInstruction",{enumerable:true,get:function get(){return L.objectInstruction}});Object.defineProperty(I,"traverse",{enumerable:true,get:function get(){return q.traverse}});Object.defineProperty(I,"signatures",{enumerable:true,get:function get(){return K.signatures}});Object.defineProperty(I,"cloneNode",{enumerable:true,get:function get(){return ge.cloneNode}});Object.defineProperty(I,"moduleContextFromModuleAST",{enumerable:true,get:function get(){return be.moduleContextFromModuleAST}});var $=P(6881);Object.keys($).forEach((function(v){if(v==="default"||v==="__esModule")return;if(Object.prototype.hasOwnProperty.call(R,v))return;if(v in I&&I[v]===$[v])return;Object.defineProperty(I,v,{enumerable:true,get:function get(){return $[v]}})}));var L=P(72882);var q=P(87786);var K=P(10644);var ae=P(89095);Object.keys(ae).forEach((function(v){if(v==="default"||v==="__esModule")return;if(Object.prototype.hasOwnProperty.call(R,v))return;if(v in I&&I[v]===ae[v])return;Object.defineProperty(I,v,{enumerable:true,get:function get(){return ae[v]}})}));var ge=P(60485);var be=P(89711)},72882:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.numberLiteralFromRaw=numberLiteralFromRaw;I.instruction=instruction;I.objectInstruction=objectInstruction;I.withLoc=withLoc;I.withRaw=withRaw;I.funcParam=funcParam;I.indexLiteral=indexLiteral;I.memIndexLiteral=memIndexLiteral;var R=P(98260);var $=P(6881);function numberLiteralFromRaw(v){var I=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"i32";var P=v;if(typeof v==="string"){v=v.replace(/_/g,"")}if(typeof v==="number"){return(0,$.numberLiteral)(v,String(P))}else{switch(I){case"i32":{return(0,$.numberLiteral)((0,R.parse32I)(v),String(P))}case"u32":{return(0,$.numberLiteral)((0,R.parseU32)(v),String(P))}case"i64":{return(0,$.longNumberLiteral)((0,R.parse64I)(v),String(P))}case"f32":{return(0,$.floatLiteral)((0,R.parse32F)(v),(0,R.isNanLiteral)(v),(0,R.isInfLiteral)(v),String(P))}default:{return(0,$.floatLiteral)((0,R.parse64F)(v),(0,R.isNanLiteral)(v),(0,R.isInfLiteral)(v),String(P))}}}}function instruction(v){var I=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var P=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return(0,$.instr)(v,undefined,I,P)}function objectInstruction(v,I){var P=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var R=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return(0,$.instr)(v,I,P,R)}function withLoc(v,I,P){var R={start:P,end:I};v.loc=R;return v}function withRaw(v,I){v.raw=I;return v}function funcParam(v,I){return{id:I,valtype:v}}function indexLiteral(v){var I=numberLiteralFromRaw(v,"u32");return I}function memIndexLiteral(v){var I=numberLiteralFromRaw(v,"u32");return I}},98935:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.createPath=createPath;function ownKeys(v,I){var P=Object.keys(v);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(v);if(I){R=R.filter((function(I){return Object.getOwnPropertyDescriptor(v,I).enumerable}))}P.push.apply(P,R)}return P}function _objectSpread(v){for(var I=1;I<arguments.length;I++){var P=arguments[I]!=null?arguments[I]:{};if(I%2){ownKeys(Object(P),true).forEach((function(I){_defineProperty(v,I,P[I])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(v,Object.getOwnPropertyDescriptors(P))}else{ownKeys(Object(P)).forEach((function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(P,I))}))}}return v}function _defineProperty(v,I,P){if(I in v){Object.defineProperty(v,I,{value:P,enumerable:true,configurable:true,writable:true})}else{v[I]=P}return v}function findParent(v,I){var P=v.parentPath;if(P==null){throw new Error("node is root")}var R=P;while(I(R)!==false){if(R.parentPath==null){return null}R=R.parentPath}return R.node}function insertBefore(v,I){return insert(v,I)}function insertAfter(v,I){return insert(v,I,1)}function insert(v,I){var P=v.node,R=v.inList,$=v.parentPath,L=v.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(!($!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var K=$.node[L];var ae=K.findIndex((function(v){return v===P}));K.splice(ae+q,0,I)}function remove(v){var I=v.node,P=v.parentKey,R=v.parentPath;if(!(R!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var $=R.node;var L=$[P];if(Array.isArray(L)){$[P]=L.filter((function(v){return v!==I}))}else{delete $[P]}I._deleted=true}function stop(v){v.shouldStop=true}function replaceWith(v,I){var P=v.parentPath.node;var R=P[v.parentKey];if(Array.isArray(R)){var $=R.findIndex((function(I){return I===v.node}));R.splice($,1,I)}else{P[v.parentKey]=I}v.node._deleted=true;v.node=I}function bindNodeOperations(v,I){var P=Object.keys(v);var R={};P.forEach((function(P){R[P]=v[P].bind(null,I)}));return R}function createPathOperations(v){return bindNodeOperations({findParent:findParent,replaceWith:replaceWith,remove:remove,insertBefore:insertBefore,insertAfter:insertAfter,stop:stop},v)}function createPath(v){var I=_objectSpread({},v);Object.assign(I,createPathOperations(I));return I}},6881:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.module=_module;I.moduleMetadata=moduleMetadata;I.moduleNameMetadata=moduleNameMetadata;I.functionNameMetadata=functionNameMetadata;I.localNameMetadata=localNameMetadata;I.binaryModule=binaryModule;I.quoteModule=quoteModule;I.sectionMetadata=sectionMetadata;I.producersSectionMetadata=producersSectionMetadata;I.producerMetadata=producerMetadata;I.producerMetadataVersionedName=producerMetadataVersionedName;I.loopInstruction=loopInstruction;I.instr=instr;I.ifInstruction=ifInstruction;I.stringLiteral=stringLiteral;I.numberLiteral=numberLiteral;I.longNumberLiteral=longNumberLiteral;I.floatLiteral=floatLiteral;I.elem=elem;I.indexInFuncSection=indexInFuncSection;I.valtypeLiteral=valtypeLiteral;I.typeInstruction=typeInstruction;I.start=start;I.globalType=globalType;I.leadingComment=leadingComment;I.blockComment=blockComment;I.data=data;I.global=global;I.table=table;I.memory=memory;I.funcImportDescr=funcImportDescr;I.moduleImport=moduleImport;I.moduleExportDescr=moduleExportDescr;I.moduleExport=moduleExport;I.limit=limit;I.signature=signature;I.program=program;I.identifier=identifier;I.blockInstruction=blockInstruction;I.callInstruction=callInstruction;I.callIndirectInstruction=callIndirectInstruction;I.byteArray=byteArray;I.func=func;I.internalBrUnless=internalBrUnless;I.internalGoto=internalGoto;I.internalCallExtern=internalCallExtern;I.internalEndAndReturn=internalEndAndReturn;I.assertInternalCallExtern=I.assertInternalGoto=I.assertInternalBrUnless=I.assertFunc=I.assertByteArray=I.assertCallIndirectInstruction=I.assertCallInstruction=I.assertBlockInstruction=I.assertIdentifier=I.assertProgram=I.assertSignature=I.assertLimit=I.assertModuleExport=I.assertModuleExportDescr=I.assertModuleImport=I.assertFuncImportDescr=I.assertMemory=I.assertTable=I.assertGlobal=I.assertData=I.assertBlockComment=I.assertLeadingComment=I.assertGlobalType=I.assertStart=I.assertTypeInstruction=I.assertValtypeLiteral=I.assertIndexInFuncSection=I.assertElem=I.assertFloatLiteral=I.assertLongNumberLiteral=I.assertNumberLiteral=I.assertStringLiteral=I.assertIfInstruction=I.assertInstr=I.assertLoopInstruction=I.assertProducerMetadataVersionedName=I.assertProducerMetadata=I.assertProducersSectionMetadata=I.assertSectionMetadata=I.assertQuoteModule=I.assertBinaryModule=I.assertLocalNameMetadata=I.assertFunctionNameMetadata=I.assertModuleNameMetadata=I.assertModuleMetadata=I.assertModule=I.isIntrinsic=I.isImportDescr=I.isNumericLiteral=I.isExpression=I.isInstruction=I.isBlock=I.isNode=I.isInternalEndAndReturn=I.isInternalCallExtern=I.isInternalGoto=I.isInternalBrUnless=I.isFunc=I.isByteArray=I.isCallIndirectInstruction=I.isCallInstruction=I.isBlockInstruction=I.isIdentifier=I.isProgram=I.isSignature=I.isLimit=I.isModuleExport=I.isModuleExportDescr=I.isModuleImport=I.isFuncImportDescr=I.isMemory=I.isTable=I.isGlobal=I.isData=I.isBlockComment=I.isLeadingComment=I.isGlobalType=I.isStart=I.isTypeInstruction=I.isValtypeLiteral=I.isIndexInFuncSection=I.isElem=I.isFloatLiteral=I.isLongNumberLiteral=I.isNumberLiteral=I.isStringLiteral=I.isIfInstruction=I.isInstr=I.isLoopInstruction=I.isProducerMetadataVersionedName=I.isProducerMetadata=I.isProducersSectionMetadata=I.isSectionMetadata=I.isQuoteModule=I.isBinaryModule=I.isLocalNameMetadata=I.isFunctionNameMetadata=I.isModuleNameMetadata=I.isModuleMetadata=I.isModule=void 0;I.nodeAndUnionTypes=I.unionTypesMap=I.assertInternalEndAndReturn=void 0;function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}function isTypeOf(v){return function(I){return I.type===v}}function assertTypeOf(v){return function(I){return function(){if(!(I.type===v)){throw new Error("n.type === t"+" error: "+(undefined||"unknown"))}}()}}function _module(v,I,P){if(v!==null&&v!==undefined){if(!(typeof v==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(v)||0))}}if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof fields === "object" && typeof fields.length !== "undefined"'+" error: "+(undefined||"unknown"))}var R={type:"Module",id:v,fields:I};if(typeof P!=="undefined"){R.metadata=P}return R}function moduleMetadata(v,I,P,R){if(!(_typeof(v)==="object"&&typeof v.length!=="undefined")){throw new Error('typeof sections === "object" && typeof sections.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(I!==null&&I!==undefined){if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof functionNames === "object" && typeof functionNames.length !== "undefined"'+" error: "+(undefined||"unknown"))}}if(P!==null&&P!==undefined){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof localNames === "object" && typeof localNames.length !== "undefined"'+" error: "+(undefined||"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: "+(undefined||"unknown"))}}var $={type:"ModuleMetadata",sections:v};if(typeof I!=="undefined"&&I.length>0){$.functionNames=I}if(typeof P!=="undefined"&&P.length>0){$.localNames=P}if(typeof R!=="undefined"&&R.length>0){$.producers=R}return $}function moduleNameMetadata(v){if(!(typeof v==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(v)||0))}var I={type:"ModuleNameMetadata",value:v};return I}function functionNameMetadata(v,I){if(!(typeof v==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(v)||0))}if(!(typeof I==="number")){throw new Error('typeof index === "number"'+" error: "+("Argument index must be of type number, given: "+_typeof(I)||0))}var P={type:"FunctionNameMetadata",value:v,index:I};return P}function localNameMetadata(v,I,P){if(!(typeof v==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(v)||0))}if(!(typeof I==="number")){throw new Error('typeof localIndex === "number"'+" error: "+("Argument localIndex must be of type number, given: "+_typeof(I)||0))}if(!(typeof P==="number")){throw new Error('typeof functionIndex === "number"'+" error: "+("Argument functionIndex must be of type number, given: "+_typeof(P)||0))}var R={type:"LocalNameMetadata",value:v,localIndex:I,functionIndex:P};return R}function binaryModule(v,I){if(v!==null&&v!==undefined){if(!(typeof v==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(v)||0))}}if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof blob === "object" && typeof blob.length !== "undefined"'+" error: "+(undefined||"unknown"))}var P={type:"BinaryModule",id:v,blob:I};return P}function quoteModule(v,I){if(v!==null&&v!==undefined){if(!(typeof v==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(v)||0))}}if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof string === "object" && typeof string.length !== "undefined"'+" error: "+(undefined||"unknown"))}var P={type:"QuoteModule",id:v,string:I};return P}function sectionMetadata(v,I,P,R){if(!(typeof I==="number")){throw new Error('typeof startOffset === "number"'+" error: "+("Argument startOffset must be of type number, given: "+_typeof(I)||0))}var $={type:"SectionMetadata",section:v,startOffset:I,size:P,vectorOfSize:R};return $}function producersSectionMetadata(v){if(!(_typeof(v)==="object"&&typeof v.length!=="undefined")){throw new Error('typeof producers === "object" && typeof producers.length !== "undefined"'+" error: "+(undefined||"unknown"))}var I={type:"ProducersSectionMetadata",producers:v};return I}function producerMetadata(v,I,P){if(!(_typeof(v)==="object"&&typeof v.length!=="undefined")){throw new Error('typeof language === "object" && typeof language.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof processedBy === "object" && typeof processedBy.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof sdk === "object" && typeof sdk.length !== "undefined"'+" error: "+(undefined||"unknown"))}var R={type:"ProducerMetadata",language:v,processedBy:I,sdk:P};return R}function producerMetadataVersionedName(v,I){if(!(typeof v==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(v)||0))}if(!(typeof I==="string")){throw new Error('typeof version === "string"'+" error: "+("Argument version must be of type string, given: "+_typeof(I)||0))}var P={type:"ProducerMetadataVersionedName",name:v,version:I};return P}function loopInstruction(v,I,P){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(undefined||"unknown"))}var R={type:"LoopInstruction",id:"loop",label:v,resulttype:I,instr:P};return R}function instr(v,I,P,R){if(!(typeof v==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(v)||0))}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof args === "object" && typeof args.length !== "undefined"'+" error: "+(undefined||"unknown"))}var $={type:"Instr",id:v,args:P};if(typeof I!=="undefined"){$.object=I}if(typeof R!=="undefined"&&Object.keys(R).length!==0){$.namedArgs=R}return $}function ifInstruction(v,I,P,R,$){if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof test === "object" && typeof test.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof consequent === "object" && typeof consequent.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof($)==="object"&&typeof $.length!=="undefined")){throw new Error('typeof alternate === "object" && typeof alternate.length !== "undefined"'+" error: "+(undefined||"unknown"))}var L={type:"IfInstruction",id:"if",testLabel:v,test:I,result:P,consequent:R,alternate:$};return L}function stringLiteral(v){if(!(typeof v==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(v)||0))}var I={type:"StringLiteral",value:v};return I}function numberLiteral(v,I){if(!(typeof v==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(v)||0))}if(!(typeof I==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(I)||0))}var P={type:"NumberLiteral",value:v,raw:I};return P}function longNumberLiteral(v,I){if(!(typeof I==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(I)||0))}var P={type:"LongNumberLiteral",value:v,raw:I};return P}function floatLiteral(v,I,P,R){if(!(typeof v==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(v)||0))}if(I!==null&&I!==undefined){if(!(typeof I==="boolean")){throw new Error('typeof nan === "boolean"'+" error: "+("Argument nan must be of type boolean, given: "+_typeof(I)||0))}}if(P!==null&&P!==undefined){if(!(typeof P==="boolean")){throw new Error('typeof inf === "boolean"'+" error: "+("Argument inf must be of type boolean, given: "+_typeof(P)||0))}}if(!(typeof R==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(R)||0))}var $={type:"FloatLiteral",value:v,raw:R};if(I===true){$.nan=true}if(P===true){$.inf=true}return $}function elem(v,I,P){if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof offset === "object" && typeof offset.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof funcs === "object" && typeof funcs.length !== "undefined"'+" error: "+(undefined||"unknown"))}var R={type:"Elem",table:v,offset:I,funcs:P};return R}function indexInFuncSection(v){var I={type:"IndexInFuncSection",index:v};return I}function valtypeLiteral(v){var I={type:"ValtypeLiteral",name:v};return I}function typeInstruction(v,I){var P={type:"TypeInstruction",id:v,functype:I};return P}function start(v){var I={type:"Start",index:v};return I}function globalType(v,I){var P={type:"GlobalType",valtype:v,mutability:I};return P}function leadingComment(v){if(!(typeof v==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(v)||0))}var I={type:"LeadingComment",value:v};return I}function blockComment(v){if(!(typeof v==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(v)||0))}var I={type:"BlockComment",value:v};return I}function data(v,I,P){var R={type:"Data",memoryIndex:v,offset:I,init:P};return R}function global(v,I,P){if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof init === "object" && typeof init.length !== "undefined"'+" error: "+(undefined||"unknown"))}var R={type:"Global",globalType:v,init:I,name:P};return R}function table(v,I,P,R){if(!(I.type==="Limit")){throw new Error('limits.type === "Limit"'+" error: "+("Argument limits must be of type Limit, given: "+I.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: "+(undefined||"unknown"))}}var $={type:"Table",elementType:v,limits:I,name:P};if(typeof R!=="undefined"&&R.length>0){$.elements=R}return $}function memory(v,I){var P={type:"Memory",limits:v,id:I};return P}function funcImportDescr(v,I){var P={type:"FuncImportDescr",id:v,signature:I};return P}function moduleImport(v,I,P){if(!(typeof v==="string")){throw new Error('typeof module === "string"'+" error: "+("Argument module must be of type string, given: "+_typeof(v)||0))}if(!(typeof I==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(I)||0))}var R={type:"ModuleImport",module:v,name:I,descr:P};return R}function moduleExportDescr(v,I){var P={type:"ModuleExportDescr",exportType:v,id:I};return P}function moduleExport(v,I){if(!(typeof v==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(v)||0))}var P={type:"ModuleExport",name:v,descr:I};return P}function limit(v,I,P){if(!(typeof v==="number")){throw new Error('typeof min === "number"'+" error: "+("Argument min must be of type number, given: "+_typeof(v)||0))}if(I!==null&&I!==undefined){if(!(typeof I==="number")){throw new Error('typeof max === "number"'+" error: "+("Argument max must be of type number, given: "+_typeof(I)||0))}}if(P!==null&&P!==undefined){if(!(typeof P==="boolean")){throw new Error('typeof shared === "boolean"'+" error: "+("Argument shared must be of type boolean, given: "+_typeof(P)||0))}}var R={type:"Limit",min:v};if(typeof I!=="undefined"){R.max=I}if(P===true){R.shared=true}return R}function signature(v,I){if(!(_typeof(v)==="object"&&typeof v.length!=="undefined")){throw new Error('typeof params === "object" && typeof params.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof results === "object" && typeof results.length !== "undefined"'+" error: "+(undefined||"unknown"))}var P={type:"Signature",params:v,results:I};return P}function program(v){if(!(_typeof(v)==="object"&&typeof v.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(undefined||"unknown"))}var I={type:"Program",body:v};return I}function identifier(v,I){if(!(typeof v==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(v)||0))}if(I!==null&&I!==undefined){if(!(typeof I==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(I)||0))}}var P={type:"Identifier",value:v};if(typeof I!=="undefined"){P.raw=I}return P}function blockInstruction(v,I,P){if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(undefined||"unknown"))}var R={type:"BlockInstruction",id:"block",label:v,instr:I,result:P};return R}function callInstruction(v,I,P){if(I!==null&&I!==undefined){if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof instrArgs === "object" && typeof instrArgs.length !== "undefined"'+" error: "+(undefined||"unknown"))}}var R={type:"CallInstruction",id:"call",index:v};if(typeof I!=="undefined"&&I.length>0){R.instrArgs=I}if(typeof P!=="undefined"){R.numeric=P}return R}function callIndirectInstruction(v,I){if(I!==null&&I!==undefined){if(!(_typeof(I)==="object"&&typeof I.length!=="undefined")){throw new Error('typeof intrs === "object" && typeof intrs.length !== "undefined"'+" error: "+(undefined||"unknown"))}}var P={type:"CallIndirectInstruction",id:"call_indirect",signature:v};if(typeof I!=="undefined"&&I.length>0){P.intrs=I}return P}function byteArray(v){if(!(_typeof(v)==="object"&&typeof v.length!=="undefined")){throw new Error('typeof values === "object" && typeof values.length !== "undefined"'+" error: "+(undefined||"unknown"))}var I={type:"ByteArray",values:v};return I}function func(v,I,P,R,$){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(undefined||"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 L={type:"Func",name:v,signature:I,body:P};if(R===true){L.isExternal=true}if(typeof $!=="undefined"){L.metadata=$}return L}function internalBrUnless(v){if(!(typeof v==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(v)||0))}var I={type:"InternalBrUnless",target:v};return I}function internalGoto(v){if(!(typeof v==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(v)||0))}var I={type:"InternalGoto",target:v};return I}function internalCallExtern(v){if(!(typeof v==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(v)||0))}var I={type:"InternalCallExtern",target:v};return I}function internalEndAndReturn(){var v={type:"InternalEndAndReturn"};return v}var P=isTypeOf("Module");I.isModule=P;var R=isTypeOf("ModuleMetadata");I.isModuleMetadata=R;var $=isTypeOf("ModuleNameMetadata");I.isModuleNameMetadata=$;var L=isTypeOf("FunctionNameMetadata");I.isFunctionNameMetadata=L;var q=isTypeOf("LocalNameMetadata");I.isLocalNameMetadata=q;var K=isTypeOf("BinaryModule");I.isBinaryModule=K;var ae=isTypeOf("QuoteModule");I.isQuoteModule=ae;var ge=isTypeOf("SectionMetadata");I.isSectionMetadata=ge;var be=isTypeOf("ProducersSectionMetadata");I.isProducersSectionMetadata=be;var xe=isTypeOf("ProducerMetadata");I.isProducerMetadata=xe;var ve=isTypeOf("ProducerMetadataVersionedName");I.isProducerMetadataVersionedName=ve;var Ce=isTypeOf("LoopInstruction");I.isLoopInstruction=Ce;var Ne=isTypeOf("Instr");I.isInstr=Ne;var He=isTypeOf("IfInstruction");I.isIfInstruction=He;var Qe=isTypeOf("StringLiteral");I.isStringLiteral=Qe;var Je=isTypeOf("NumberLiteral");I.isNumberLiteral=Je;var Ve=isTypeOf("LongNumberLiteral");I.isLongNumberLiteral=Ve;var Ke=isTypeOf("FloatLiteral");I.isFloatLiteral=Ke;var Ye=isTypeOf("Elem");I.isElem=Ye;var Xe=isTypeOf("IndexInFuncSection");I.isIndexInFuncSection=Xe;var Ze=isTypeOf("ValtypeLiteral");I.isValtypeLiteral=Ze;var et=isTypeOf("TypeInstruction");I.isTypeInstruction=et;var tt=isTypeOf("Start");I.isStart=tt;var nt=isTypeOf("GlobalType");I.isGlobalType=nt;var st=isTypeOf("LeadingComment");I.isLeadingComment=st;var rt=isTypeOf("BlockComment");I.isBlockComment=rt;var ot=isTypeOf("Data");I.isData=ot;var it=isTypeOf("Global");I.isGlobal=it;var at=isTypeOf("Table");I.isTable=at;var ct=isTypeOf("Memory");I.isMemory=ct;var lt=isTypeOf("FuncImportDescr");I.isFuncImportDescr=lt;var ut=isTypeOf("ModuleImport");I.isModuleImport=ut;var pt=isTypeOf("ModuleExportDescr");I.isModuleExportDescr=pt;var dt=isTypeOf("ModuleExport");I.isModuleExport=dt;var ft=isTypeOf("Limit");I.isLimit=ft;var ht=isTypeOf("Signature");I.isSignature=ht;var mt=isTypeOf("Program");I.isProgram=mt;var gt=isTypeOf("Identifier");I.isIdentifier=gt;var yt=isTypeOf("BlockInstruction");I.isBlockInstruction=yt;var bt=isTypeOf("CallInstruction");I.isCallInstruction=bt;var xt=isTypeOf("CallIndirectInstruction");I.isCallIndirectInstruction=xt;var kt=isTypeOf("ByteArray");I.isByteArray=kt;var vt=isTypeOf("Func");I.isFunc=vt;var wt=isTypeOf("InternalBrUnless");I.isInternalBrUnless=wt;var Ct=isTypeOf("InternalGoto");I.isInternalGoto=Ct;var Et=isTypeOf("InternalCallExtern");I.isInternalCallExtern=Et;var At=isTypeOf("InternalEndAndReturn");I.isInternalEndAndReturn=At;var St=function isNode(v){return P(v)||R(v)||$(v)||L(v)||q(v)||K(v)||ae(v)||ge(v)||be(v)||xe(v)||ve(v)||Ce(v)||Ne(v)||He(v)||Qe(v)||Je(v)||Ve(v)||Ke(v)||Ye(v)||Xe(v)||Ze(v)||et(v)||tt(v)||nt(v)||st(v)||rt(v)||ot(v)||it(v)||at(v)||ct(v)||lt(v)||ut(v)||pt(v)||dt(v)||ft(v)||ht(v)||mt(v)||gt(v)||yt(v)||bt(v)||xt(v)||kt(v)||vt(v)||wt(v)||Ct(v)||Et(v)||At(v)};I.isNode=St;var _t=function isBlock(v){return Ce(v)||yt(v)||vt(v)};I.isBlock=_t;var It=function isInstruction(v){return Ce(v)||Ne(v)||He(v)||et(v)||yt(v)||bt(v)||xt(v)};I.isInstruction=It;var Pt=function isExpression(v){return Ne(v)||Qe(v)||Je(v)||Ve(v)||Ke(v)||Ze(v)||gt(v)};I.isExpression=Pt;var Mt=function isNumericLiteral(v){return Je(v)||Ve(v)||Ke(v)};I.isNumericLiteral=Mt;var Ot=function isImportDescr(v){return nt(v)||at(v)||ct(v)||lt(v)};I.isImportDescr=Ot;var Dt=function isIntrinsic(v){return wt(v)||Ct(v)||Et(v)||At(v)};I.isIntrinsic=Dt;var Rt=assertTypeOf("Module");I.assertModule=Rt;var Tt=assertTypeOf("ModuleMetadata");I.assertModuleMetadata=Tt;var $t=assertTypeOf("ModuleNameMetadata");I.assertModuleNameMetadata=$t;var Ft=assertTypeOf("FunctionNameMetadata");I.assertFunctionNameMetadata=Ft;var jt=assertTypeOf("LocalNameMetadata");I.assertLocalNameMetadata=jt;var Nt=assertTypeOf("BinaryModule");I.assertBinaryModule=Nt;var Lt=assertTypeOf("QuoteModule");I.assertQuoteModule=Lt;var Bt=assertTypeOf("SectionMetadata");I.assertSectionMetadata=Bt;var qt=assertTypeOf("ProducersSectionMetadata");I.assertProducersSectionMetadata=qt;var zt=assertTypeOf("ProducerMetadata");I.assertProducerMetadata=zt;var Ut=assertTypeOf("ProducerMetadataVersionedName");I.assertProducerMetadataVersionedName=Ut;var Gt=assertTypeOf("LoopInstruction");I.assertLoopInstruction=Gt;var Ht=assertTypeOf("Instr");I.assertInstr=Ht;var Wt=assertTypeOf("IfInstruction");I.assertIfInstruction=Wt;var Qt=assertTypeOf("StringLiteral");I.assertStringLiteral=Qt;var Jt=assertTypeOf("NumberLiteral");I.assertNumberLiteral=Jt;var Vt=assertTypeOf("LongNumberLiteral");I.assertLongNumberLiteral=Vt;var Kt=assertTypeOf("FloatLiteral");I.assertFloatLiteral=Kt;var Yt=assertTypeOf("Elem");I.assertElem=Yt;var Xt=assertTypeOf("IndexInFuncSection");I.assertIndexInFuncSection=Xt;var Zt=assertTypeOf("ValtypeLiteral");I.assertValtypeLiteral=Zt;var en=assertTypeOf("TypeInstruction");I.assertTypeInstruction=en;var tn=assertTypeOf("Start");I.assertStart=tn;var nn=assertTypeOf("GlobalType");I.assertGlobalType=nn;var sn=assertTypeOf("LeadingComment");I.assertLeadingComment=sn;var rn=assertTypeOf("BlockComment");I.assertBlockComment=rn;var on=assertTypeOf("Data");I.assertData=on;var an=assertTypeOf("Global");I.assertGlobal=an;var cn=assertTypeOf("Table");I.assertTable=cn;var ln=assertTypeOf("Memory");I.assertMemory=ln;var un=assertTypeOf("FuncImportDescr");I.assertFuncImportDescr=un;var pn=assertTypeOf("ModuleImport");I.assertModuleImport=pn;var dn=assertTypeOf("ModuleExportDescr");I.assertModuleExportDescr=dn;var hn=assertTypeOf("ModuleExport");I.assertModuleExport=hn;var mn=assertTypeOf("Limit");I.assertLimit=mn;var gn=assertTypeOf("Signature");I.assertSignature=gn;var yn=assertTypeOf("Program");I.assertProgram=yn;var bn=assertTypeOf("Identifier");I.assertIdentifier=bn;var xn=assertTypeOf("BlockInstruction");I.assertBlockInstruction=xn;var kn=assertTypeOf("CallInstruction");I.assertCallInstruction=kn;var vn=assertTypeOf("CallIndirectInstruction");I.assertCallIndirectInstruction=vn;var wn=assertTypeOf("ByteArray");I.assertByteArray=wn;var Cn=assertTypeOf("Func");I.assertFunc=Cn;var En=assertTypeOf("InternalBrUnless");I.assertInternalBrUnless=En;var An=assertTypeOf("InternalGoto");I.assertInternalGoto=An;var Sn=assertTypeOf("InternalCallExtern");I.assertInternalCallExtern=Sn;var _n=assertTypeOf("InternalEndAndReturn");I.assertInternalEndAndReturn=_n;var In={Module:["Node"],ModuleMetadata:["Node"],ModuleNameMetadata:["Node"],FunctionNameMetadata:["Node"],LocalNameMetadata:["Node"],BinaryModule:["Node"],QuoteModule:["Node"],SectionMetadata:["Node"],ProducersSectionMetadata:["Node"],ProducerMetadata:["Node"],ProducerMetadataVersionedName:["Node"],LoopInstruction:["Node","Block","Instruction"],Instr:["Node","Expression","Instruction"],IfInstruction:["Node","Instruction"],StringLiteral:["Node","Expression"],NumberLiteral:["Node","NumericLiteral","Expression"],LongNumberLiteral:["Node","NumericLiteral","Expression"],FloatLiteral:["Node","NumericLiteral","Expression"],Elem:["Node"],IndexInFuncSection:["Node"],ValtypeLiteral:["Node","Expression"],TypeInstruction:["Node","Instruction"],Start:["Node"],GlobalType:["Node","ImportDescr"],LeadingComment:["Node"],BlockComment:["Node"],Data:["Node"],Global:["Node"],Table:["Node","ImportDescr"],Memory:["Node","ImportDescr"],FuncImportDescr:["Node","ImportDescr"],ModuleImport:["Node"],ModuleExportDescr:["Node"],ModuleExport:["Node"],Limit:["Node"],Signature:["Node"],Program:["Node"],Identifier:["Node","Expression"],BlockInstruction:["Node","Block","Instruction"],CallInstruction:["Node","Instruction"],CallIndirectInstruction:["Node","Instruction"],ByteArray:["Node"],Func:["Node","Block"],InternalBrUnless:["Node","Intrinsic"],InternalGoto:["Node","Intrinsic"],InternalCallExtern:["Node","Intrinsic"],InternalEndAndReturn:["Node","Intrinsic"]};I.unionTypesMap=In;var Pn=["Module","ModuleMetadata","ModuleNameMetadata","FunctionNameMetadata","LocalNameMetadata","BinaryModule","QuoteModule","SectionMetadata","ProducersSectionMetadata","ProducerMetadata","ProducerMetadataVersionedName","LoopInstruction","Instr","IfInstruction","StringLiteral","NumberLiteral","LongNumberLiteral","FloatLiteral","Elem","IndexInFuncSection","ValtypeLiteral","TypeInstruction","Start","GlobalType","LeadingComment","BlockComment","Data","Global","Table","Memory","FuncImportDescr","ModuleImport","ModuleExportDescr","ModuleExport","Limit","Signature","Program","Identifier","BlockInstruction","CallInstruction","CallIndirectInstruction","ByteArray","Func","InternalBrUnless","InternalGoto","InternalCallExtern","InternalEndAndReturn","Node","Block","Instruction","Expression","NumericLiteral","ImportDescr","Intrinsic"];I.nodeAndUnionTypes=Pn},10644:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.signatures=void 0;function sign(v,I){return[v,I]}var P="u32";var R="i32";var $="i64";var L="f32";var q="f64";var K=function vector(v){var I=[v];I.vector=true;return I};var ae={unreachable:sign([],[]),nop:sign([],[]),br:sign([P],[]),br_if:sign([P],[]),br_table:sign(K(P),[]),return:sign([],[]),call:sign([P],[]),call_indirect:sign([P],[])};var ge={drop:sign([],[]),select:sign([],[])};var be={get_local:sign([P],[]),set_local:sign([P],[]),tee_local:sign([P],[]),get_global:sign([P],[]),set_global:sign([P],[])};var xe={"i32.load":sign([P,P],[R]),"i64.load":sign([P,P],[]),"f32.load":sign([P,P],[]),"f64.load":sign([P,P],[]),"i32.load8_s":sign([P,P],[R]),"i32.load8_u":sign([P,P],[R]),"i32.load16_s":sign([P,P],[R]),"i32.load16_u":sign([P,P],[R]),"i64.load8_s":sign([P,P],[$]),"i64.load8_u":sign([P,P],[$]),"i64.load16_s":sign([P,P],[$]),"i64.load16_u":sign([P,P],[$]),"i64.load32_s":sign([P,P],[$]),"i64.load32_u":sign([P,P],[$]),"i32.store":sign([P,P],[]),"i64.store":sign([P,P],[]),"f32.store":sign([P,P],[]),"f64.store":sign([P,P],[]),"i32.store8":sign([P,P],[]),"i32.store16":sign([P,P],[]),"i64.store8":sign([P,P],[]),"i64.store16":sign([P,P],[]),"i64.store32":sign([P,P],[]),current_memory:sign([],[]),grow_memory:sign([],[])};var ve={"i32.const":sign([R],[R]),"i64.const":sign([$],[$]),"f32.const":sign([L],[L]),"f64.const":sign([q],[q]),"i32.eqz":sign([R],[R]),"i32.eq":sign([R,R],[R]),"i32.ne":sign([R,R],[R]),"i32.lt_s":sign([R,R],[R]),"i32.lt_u":sign([R,R],[R]),"i32.gt_s":sign([R,R],[R]),"i32.gt_u":sign([R,R],[R]),"i32.le_s":sign([R,R],[R]),"i32.le_u":sign([R,R],[R]),"i32.ge_s":sign([R,R],[R]),"i32.ge_u":sign([R,R],[R]),"i64.eqz":sign([$],[$]),"i64.eq":sign([$,$],[R]),"i64.ne":sign([$,$],[R]),"i64.lt_s":sign([$,$],[R]),"i64.lt_u":sign([$,$],[R]),"i64.gt_s":sign([$,$],[R]),"i64.gt_u":sign([$,$],[R]),"i64.le_s":sign([$,$],[R]),"i64.le_u":sign([$,$],[R]),"i64.ge_s":sign([$,$],[R]),"i64.ge_u":sign([$,$],[R]),"f32.eq":sign([L,L],[R]),"f32.ne":sign([L,L],[R]),"f32.lt":sign([L,L],[R]),"f32.gt":sign([L,L],[R]),"f32.le":sign([L,L],[R]),"f32.ge":sign([L,L],[R]),"f64.eq":sign([q,q],[R]),"f64.ne":sign([q,q],[R]),"f64.lt":sign([q,q],[R]),"f64.gt":sign([q,q],[R]),"f64.le":sign([q,q],[R]),"f64.ge":sign([q,q],[R]),"i32.clz":sign([R],[R]),"i32.ctz":sign([R],[R]),"i32.popcnt":sign([R],[R]),"i32.add":sign([R,R],[R]),"i32.sub":sign([R,R],[R]),"i32.mul":sign([R,R],[R]),"i32.div_s":sign([R,R],[R]),"i32.div_u":sign([R,R],[R]),"i32.rem_s":sign([R,R],[R]),"i32.rem_u":sign([R,R],[R]),"i32.and":sign([R,R],[R]),"i32.or":sign([R,R],[R]),"i32.xor":sign([R,R],[R]),"i32.shl":sign([R,R],[R]),"i32.shr_s":sign([R,R],[R]),"i32.shr_u":sign([R,R],[R]),"i32.rotl":sign([R,R],[R]),"i32.rotr":sign([R,R],[R]),"i64.clz":sign([$],[$]),"i64.ctz":sign([$],[$]),"i64.popcnt":sign([$],[$]),"i64.add":sign([$,$],[$]),"i64.sub":sign([$,$],[$]),"i64.mul":sign([$,$],[$]),"i64.div_s":sign([$,$],[$]),"i64.div_u":sign([$,$],[$]),"i64.rem_s":sign([$,$],[$]),"i64.rem_u":sign([$,$],[$]),"i64.and":sign([$,$],[$]),"i64.or":sign([$,$],[$]),"i64.xor":sign([$,$],[$]),"i64.shl":sign([$,$],[$]),"i64.shr_s":sign([$,$],[$]),"i64.shr_u":sign([$,$],[$]),"i64.rotl":sign([$,$],[$]),"i64.rotr":sign([$,$],[$]),"f32.abs":sign([L],[L]),"f32.neg":sign([L],[L]),"f32.ceil":sign([L],[L]),"f32.floor":sign([L],[L]),"f32.trunc":sign([L],[L]),"f32.nearest":sign([L],[L]),"f32.sqrt":sign([L],[L]),"f32.add":sign([L,L],[L]),"f32.sub":sign([L,L],[L]),"f32.mul":sign([L,L],[L]),"f32.div":sign([L,L],[L]),"f32.min":sign([L,L],[L]),"f32.max":sign([L,L],[L]),"f32.copysign":sign([L,L],[L]),"f64.abs":sign([q],[q]),"f64.neg":sign([q],[q]),"f64.ceil":sign([q],[q]),"f64.floor":sign([q],[q]),"f64.trunc":sign([q],[q]),"f64.nearest":sign([q],[q]),"f64.sqrt":sign([q],[q]),"f64.add":sign([q,q],[q]),"f64.sub":sign([q,q],[q]),"f64.mul":sign([q,q],[q]),"f64.div":sign([q,q],[q]),"f64.min":sign([q,q],[q]),"f64.max":sign([q,q],[q]),"f64.copysign":sign([q,q],[q]),"i32.wrap/i64":sign([$],[R]),"i32.trunc_s/f32":sign([L],[R]),"i32.trunc_u/f32":sign([L],[R]),"i32.trunc_s/f64":sign([L],[R]),"i32.trunc_u/f64":sign([q],[R]),"i64.extend_s/i32":sign([R],[$]),"i64.extend_u/i32":sign([R],[$]),"i64.trunc_s/f32":sign([L],[$]),"i64.trunc_u/f32":sign([L],[$]),"i64.trunc_s/f64":sign([q],[$]),"i64.trunc_u/f64":sign([q],[$]),"f32.convert_s/i32":sign([R],[L]),"f32.convert_u/i32":sign([R],[L]),"f32.convert_s/i64":sign([$],[L]),"f32.convert_u/i64":sign([$],[L]),"f32.demote/f64":sign([q],[L]),"f64.convert_s/i32":sign([R],[q]),"f64.convert_u/i32":sign([R],[q]),"f64.convert_s/i64":sign([$],[q]),"f64.convert_u/i64":sign([$],[q]),"f64.promote/f32":sign([L],[q]),"i32.reinterpret/f32":sign([L],[R]),"i64.reinterpret/f64":sign([q],[$]),"f32.reinterpret/i32":sign([R],[L]),"f64.reinterpret/i64":sign([$],[q])};var Ce=Object.assign({},ae,ge,be,xe,ve);I.signatures=Ce},89711:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.moduleContextFromModuleAST=moduleContextFromModuleAST;I.ModuleContext=void 0;var R=P(6881);function _classCallCheck(v,I){if(!(v instanceof I)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(v,I){for(var P=0;P<I.length;P++){var R=I[P];R.enumerable=R.enumerable||false;R.configurable=true;if("value"in R)R.writable=true;Object.defineProperty(v,R.key,R)}}function _createClass(v,I,P){if(I)_defineProperties(v.prototype,I);if(P)_defineProperties(v,P);return v}function moduleContextFromModuleAST(v){var I=new $;if(!(v.type==="Module")){throw new Error('m.type === "Module"'+" error: "+(undefined||"unknown"))}v.fields.forEach((function(v){switch(v.type){case"Start":{I.setStart(v.index);break}case"TypeInstruction":{I.addType(v);break}case"Func":{I.addFunction(v);break}case"Global":{I.defineGlobal(v);break}case"ModuleImport":{switch(v.descr.type){case"GlobalType":{I.importGlobal(v.descr.valtype,v.descr.mutability);break}case"Memory":{I.addMemory(v.descr.limits.min,v.descr.limits.max);break}case"FuncImportDescr":{I.importFunction(v.descr);break}case"Table":{break}default:throw new Error("Unsupported ModuleImport of type "+JSON.stringify(v.descr.type))}break}case"Memory":{I.addMemory(v.limits.min,v.limits.max);break}}}));return I}var $=function(){function ModuleContext(){_classCallCheck(this,ModuleContext);this.funcs=[];this.funcsOffsetByIdentifier=[];this.types=[];this.globals=[];this.globalsOffsetByIdentifier=[];this.mems=[];this.locals=[];this.labels=[];this["return"]=[];this.debugName="unknown";this.start=null}_createClass(ModuleContext,[{key:"setStart",value:function setStart(v){this.start=v.value}},{key:"getStart",value:function getStart(){return this.start}},{key:"newContext",value:function newContext(v,I){this.locals=[];this.labels=[I];this["return"]=I;this.debugName=v}},{key:"addFunction",value:function addFunction(v){var I=v.signature||{},P=I.params,R=P===void 0?[]:P,$=I.results,L=$===void 0?[]:$;R=R.map((function(v){return v.valtype}));this.funcs.push({args:R,result:L});if(typeof v.name!=="undefined"){this.funcsOffsetByIdentifier[v.name.value]=this.funcs.length-1}}},{key:"importFunction",value:function importFunction(v){if((0,R.isSignature)(v.signature)){var I=v.signature,P=I.params,$=I.results;P=P.map((function(v){return v.valtype}));this.funcs.push({args:P,result:$})}else{if(!(0,R.isNumberLiteral)(v.signature)){throw new Error("isNumberLiteral(funcimport.signature)"+" error: "+(undefined||"unknown"))}var L=v.signature.value;if(!this.hasType(L)){throw new Error("this.hasType(typeId)"+" error: "+(undefined||"unknown"))}var q=this.getType(L);this.funcs.push({args:q.params.map((function(v){return v.valtype})),result:q.results})}if(typeof v.id!=="undefined"){this.funcsOffsetByIdentifier[v.id.value]=this.funcs.length-1}}},{key:"hasFunction",value:function hasFunction(v){return typeof this.getFunction(v)!=="undefined"}},{key:"getFunction",value:function getFunction(v){if(typeof v!=="number"){throw new Error("getFunction only supported for number index")}return this.funcs[v]}},{key:"getFunctionOffsetByIdentifier",value:function getFunctionOffsetByIdentifier(v){if(!(typeof v==="string")){throw new Error('typeof name === "string"'+" error: "+(undefined||"unknown"))}return this.funcsOffsetByIdentifier[v]}},{key:"addLabel",value:function addLabel(v){this.labels.unshift(v)}},{key:"hasLabel",value:function hasLabel(v){return this.labels.length>v&&v>=0}},{key:"getLabel",value:function getLabel(v){return this.labels[v]}},{key:"popLabel",value:function popLabel(){this.labels.shift()}},{key:"hasLocal",value:function hasLocal(v){return typeof this.getLocal(v)!=="undefined"}},{key:"getLocal",value:function getLocal(v){return this.locals[v]}},{key:"addLocal",value:function addLocal(v){this.locals.push(v)}},{key:"addType",value:function addType(v){if(!(v.functype.type==="Signature")){throw new Error('type.functype.type === "Signature"'+" error: "+(undefined||"unknown"))}this.types.push(v.functype)}},{key:"hasType",value:function hasType(v){return this.types[v]!==undefined}},{key:"getType",value:function getType(v){return this.types[v]}},{key:"hasGlobal",value:function hasGlobal(v){return this.globals.length>v&&v>=0}},{key:"getGlobal",value:function getGlobal(v){return this.globals[v].type}},{key:"getGlobalOffsetByIdentifier",value:function getGlobalOffsetByIdentifier(v){if(!(typeof v==="string")){throw new Error('typeof name === "string"'+" error: "+(undefined||"unknown"))}return this.globalsOffsetByIdentifier[v]}},{key:"defineGlobal",value:function defineGlobal(v){var I=v.globalType.valtype;var P=v.globalType.mutability;this.globals.push({type:I,mutability:P});if(typeof v.name!=="undefined"){this.globalsOffsetByIdentifier[v.name.value]=this.globals.length-1}}},{key:"importGlobal",value:function importGlobal(v,I){this.globals.push({type:v,mutability:I})}},{key:"isMutableGlobal",value:function isMutableGlobal(v){return this.globals[v].mutability==="var"}},{key:"isImmutableGlobal",value:function isImmutableGlobal(v){return this.globals[v].mutability==="const"}},{key:"hasMemory",value:function hasMemory(v){return this.mems.length>v&&v>=0}},{key:"addMemory",value:function addMemory(v,I){this.mems.push({min:v,max:I})}},{key:"getMemory",value:function getMemory(v){return this.mems[v]}}]);return ModuleContext}();I.ModuleContext=$},87786:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.traverse=traverse;var R=P(98935);var $=P(6881);function walk(v,I){var P=false;function innerWalk(v,I){if(P){return}var $=v.node;if($===undefined){console.warn("traversing with an empty context");return}if($._deleted===true){return}var L=(0,R.createPath)(v);I($.type,L);if(L.shouldStop){P=true;return}Object.keys($).forEach((function(v){var P=$[v];if(P===null||P===undefined){return}var R=Array.isArray(P)?P:[P];R.forEach((function(R){if(typeof R.type==="string"){var $={node:R,parentKey:v,parentPath:L,shouldStop:false,inList:Array.isArray(P)};innerWalk($,I)}}))}))}innerWalk(v,I)}var L=function noop(){};function traverse(v,I){var P=arguments.length>2&&arguments[2]!==undefined?arguments[2]:L;var R=arguments.length>3&&arguments[3]!==undefined?arguments[3]:L;Object.keys(I).forEach((function(v){if(!$.nodeAndUnionTypes.includes(v)){throw new Error("Unexpected visitor ".concat(v))}}));var q={node:v,inList:false,shouldStop:false,parentPath:null,parentKey:null};walk(q,(function(v,L){if(typeof I[v]==="function"){P(v,L);I[v](L);R(v,L)}var q=$.unionTypesMap[v];if(!q){throw new Error("Unexpected node type ".concat(v))}q.forEach((function(v){if(typeof I[v]==="function"){P(v,L);I[v](L);R(v,L)}}))}))}},89095:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.isAnonymous=isAnonymous;I.getSectionMetadata=getSectionMetadata;I.getSectionMetadatas=getSectionMetadatas;I.sortSectionMetadata=sortSectionMetadata;I.orderedInsertNode=orderedInsertNode;I.assertHasLoc=assertHasLoc;I.getEndOfSection=getEndOfSection;I.shiftLoc=shiftLoc;I.shiftSection=shiftSection;I.signatureForOpcode=signatureForOpcode;I.getUniqueNameGenerator=getUniqueNameGenerator;I.getStartByteOffset=getStartByteOffset;I.getEndByteOffset=getEndByteOffset;I.getFunctionBeginingByteOffset=getFunctionBeginingByteOffset;I.getEndBlockByteOffset=getEndBlockByteOffset;I.getStartBlockByteOffset=getStartBlockByteOffset;var R=P(10644);var $=P(87786);var L=_interopRequireWildcard(P(39622));function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}function _slicedToArray(v,I){return _arrayWithHoles(v)||_iterableToArrayLimit(v,I)||_unsupportedIterableToArray(v,I)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(v,I){if(!v)return;if(typeof v==="string")return _arrayLikeToArray(v,I);var P=Object.prototype.toString.call(v).slice(8,-1);if(P==="Object"&&v.constructor)P=v.constructor.name;if(P==="Map"||P==="Set")return Array.from(v);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return _arrayLikeToArray(v,I)}function _arrayLikeToArray(v,I){if(I==null||I>v.length)I=v.length;for(var P=0,R=new Array(I);P<I;P++){R[P]=v[P]}return R}function _iterableToArrayLimit(v,I){var P=v==null?null:typeof Symbol!=="undefined"&&v[Symbol.iterator]||v["@@iterator"];if(P==null)return;var R=[];var $=true;var L=false;var q,K;try{for(P=P.call(v);!($=(q=P.next()).done);$=true){R.push(q.value);if(I&&R.length===I)break}}catch(v){L=true;K=v}finally{try{if(!$&&P["return"]!=null)P["return"]()}finally{if(L)throw K}}return R}function _arrayWithHoles(v){if(Array.isArray(v))return v}function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}function isAnonymous(v){return v.raw===""}function getSectionMetadata(v,I){var P;(0,$.traverse)(v,{SectionMetadata:function(v){function SectionMetadata(I){return v.apply(this,arguments)}SectionMetadata.toString=function(){return v.toString()};return SectionMetadata}((function(v){var R=v.node;if(R.section===I){P=R}}))});return P}function getSectionMetadatas(v,I){var P=[];(0,$.traverse)(v,{SectionMetadata:function(v){function SectionMetadata(I){return v.apply(this,arguments)}SectionMetadata.toString=function(){return v.toString()};return SectionMetadata}((function(v){var R=v.node;if(R.section===I){P.push(R)}}))});return P}function sortSectionMetadata(v){if(v.metadata==null){console.warn("sortSectionMetadata: no metadata to sort");return}v.metadata.sections.sort((function(v,I){var P=L["default"].sections[v.section];var R=L["default"].sections[I.section];if(typeof P!=="number"||typeof R!=="number"){throw new Error("Section id not found")}return P-R}))}function orderedInsertNode(v,I){assertHasLoc(I);var P=false;if(I.type==="ModuleExport"){v.fields.push(I);return}v.fields=v.fields.reduce((function(v,R){var $=Infinity;if(R.loc!=null){$=R.loc.end.column}if(P===false&&I.loc.start.column<$){P=true;v.push(I)}v.push(R);return v}),[]);if(P===false){v.fields.push(I)}}function assertHasLoc(v){if(v.loc==null||v.loc.start==null||v.loc.end==null){throw new Error("Internal failure: node (".concat(JSON.stringify(v.type),") has no location information"))}}function getEndOfSection(v){assertHasLoc(v.size);return v.startOffset+v.size.value+(v.size.loc.end.column-v.size.loc.start.column)}function shiftLoc(v,I){v.loc.start.column+=I;v.loc.end.column+=I}function shiftSection(v,I,P){if(I.type!=="SectionMetadata"){throw new Error("Can not shift node "+JSON.stringify(I.type))}I.startOffset+=P;if(_typeof(I.size.loc)==="object"){shiftLoc(I.size,P)}if(_typeof(I.vectorOfSize)==="object"&&_typeof(I.vectorOfSize.loc)==="object"){shiftLoc(I.vectorOfSize,P)}var R=I.section;(0,$.traverse)(v,{Node:function Node(v){var I=v.node;var $=(0,L.getSectionForNode)(I);if($===R&&_typeof(I.loc)==="object"){shiftLoc(I,P)}}})}function signatureForOpcode(v,I){var P=I;if(v!==undefined&&v!==""){P=v+"."+I}var $=R.signatures[P];if($==undefined){return[v,v]}return $[0]}function getUniqueNameGenerator(){var v={};return function(){var I=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"temp";if(!(I in v)){v[I]=0}else{v[I]=v[I]+1}return I+"_"+v[I]}}function getStartByteOffset(v){if(typeof v.loc==="undefined"||typeof v.loc.start==="undefined"){throw new Error("Can not get byte offset without loc informations, node: "+String(v.id))}return v.loc.start.column}function getEndByteOffset(v){if(typeof v.loc==="undefined"||typeof v.loc.end==="undefined"){throw new Error("Can not get byte offset without loc informations, node: "+v.type)}return v.loc.end.column}function getFunctionBeginingByteOffset(v){if(!(v.body.length>0)){throw new Error("n.body.length > 0"+" error: "+(undefined||"unknown"))}var I=_slicedToArray(v.body,1),P=I[0];return getStartByteOffset(P)}function getEndBlockByteOffset(v){if(!(v.instr.length>0||v.body.length>0)){throw new Error("n.instr.length > 0 || n.body.length > 0"+" error: "+(undefined||"unknown"))}var I;if(v.instr){I=v.instr[v.instr.length-1]}if(v.body){I=v.body[v.body.length-1]}if(!(_typeof(I)==="object")){throw new Error('typeof lastInstruction === "object"'+" error: "+(undefined||"unknown"))}return getStartByteOffset(I)}function getStartBlockByteOffset(v){if(!(v.instr.length>0||v.body.length>0)){throw new Error("n.instr.length > 0 || n.body.length > 0"+" error: "+(undefined||"unknown"))}var I;if(v.instr){var P=_slicedToArray(v.instr,1);I=P[0]}if(v.body){var R=_slicedToArray(v.body,1);I=R[0]}if(!(_typeof(I)==="object")){throw new Error('typeof fistInstruction === "object"'+" error: "+(undefined||"unknown"))}return getStartByteOffset(I)}},21291:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I["default"]=parse;function parse(v){v=v.toUpperCase();var I=v.indexOf("P");var P,R;if(I!==-1){P=v.substring(0,I);R=parseInt(v.substring(I+1))}else{P=v;R=0}var $=P.indexOf(".");if($!==-1){var L=parseInt(P.substring(0,$),16);var q=Math.sign(L);L=q*L;var K=P.length-$-1;var ae=parseInt(P.substring($+1),16);var ge=K>0?ae/Math.pow(16,K):0;if(q===0){if(ge===0){P=q}else{if(Object.is(q,-0)){P=-ge}else{P=ge}}}else{P=q*(L+ge)}}else{P=parseInt(P,16)}return P*(I!==-1?Math.pow(2,R):1)}},72254:function(v,I){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I.LinkError=I.CompileError=I.RuntimeError=void 0;function _classCallCheck(v,I){if(!(v instanceof I)){throw new TypeError("Cannot call a class as a function")}}function _inherits(v,I){if(typeof I!=="function"&&I!==null){throw new TypeError("Super expression must either be null or a function")}v.prototype=Object.create(I&&I.prototype,{constructor:{value:v,writable:true,configurable:true}});if(I)_setPrototypeOf(v,I)}function _createSuper(v){var I=_isNativeReflectConstruct();return function _createSuperInternal(){var P=_getPrototypeOf(v),R;if(I){var $=_getPrototypeOf(this).constructor;R=Reflect.construct(P,arguments,$)}else{R=P.apply(this,arguments)}return _possibleConstructorReturn(this,R)}}function _possibleConstructorReturn(v,I){if(I&&(_typeof(I)==="object"||typeof I==="function")){return I}else if(I!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized(v)}function _assertThisInitialized(v){if(v===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return v}function _wrapNativeSuper(v){var I=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(v){if(v===null||!_isNativeFunction(v))return v;if(typeof v!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof I!=="undefined"){if(I.has(v))return I.get(v);I.set(v,Wrapper)}function Wrapper(){return _construct(v,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(v.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,v)};return _wrapNativeSuper(v)}function _construct(v,I,P){if(_isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function _construct(v,I,P){var R=[null];R.push.apply(R,I);var $=Function.bind.apply(v,R);var L=new $;if(P)_setPrototypeOf(L,P.prototype);return L}}return _construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(v){return false}}function _isNativeFunction(v){return Function.toString.call(v).indexOf("[native code]")!==-1}function _setPrototypeOf(v,I){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(v,I){v.__proto__=I;return v};return _setPrototypeOf(v,I)}function _getPrototypeOf(v){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(v){return v.__proto__||Object.getPrototypeOf(v)};return _getPrototypeOf(v)}var P=function(v){_inherits(RuntimeError,v);var I=_createSuper(RuntimeError);function RuntimeError(){_classCallCheck(this,RuntimeError);return I.apply(this,arguments)}return RuntimeError}(_wrapNativeSuper(Error));I.RuntimeError=P;var R=function(v){_inherits(CompileError,v);var I=_createSuper(CompileError);function CompileError(){_classCallCheck(this,CompileError);return I.apply(this,arguments)}return CompileError}(_wrapNativeSuper(Error));I.CompileError=R;var $=function(v){_inherits(LinkError,v);var I=_createSuper(LinkError);function LinkError(){_classCallCheck(this,LinkError);return I.apply(this,arguments)}return LinkError}(_wrapNativeSuper(Error));I.LinkError=$},66042:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.overrideBytesInBuffer=overrideBytesInBuffer;I.makeBuffer=makeBuffer;I.fromHexdump=fromHexdump;function _toConsumableArray(v){return _arrayWithoutHoles(v)||_iterableToArray(v)||_unsupportedIterableToArray(v)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(v,I){if(!v)return;if(typeof v==="string")return _arrayLikeToArray(v,I);var P=Object.prototype.toString.call(v).slice(8,-1);if(P==="Object"&&v.constructor)P=v.constructor.name;if(P==="Map"||P==="Set")return Array.from(v);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return _arrayLikeToArray(v,I)}function _iterableToArray(v){if(typeof Symbol!=="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function _arrayWithoutHoles(v){if(Array.isArray(v))return _arrayLikeToArray(v)}function _arrayLikeToArray(v,I){if(I==null||I>v.length)I=v.length;for(var P=0,R=new Array(I);P<I;P++){R[P]=v[P]}return R}function concatUint8Arrays(){for(var v=arguments.length,I=new Array(v),P=0;P<v;P++){I[P]=arguments[P]}var R=I.reduce((function(v,I){return v+I.length}),0);var $=new Uint8Array(R);var L=0;for(var q=0,K=I;q<K.length;q++){var ae=K[q];if(ae instanceof Uint8Array===false){throw new Error("arr must be of type Uint8Array")}$.set(ae,L);L+=ae.length}return $}function overrideBytesInBuffer(v,I,P,R){var $=v.slice(0,I);var L=v.slice(P,v.length);if(R.length===0){return concatUint8Arrays($,L)}var q=Uint8Array.from(R);return concatUint8Arrays($,q,L)}function makeBuffer(){for(var v=arguments.length,I=new Array(v),P=0;P<v;P++){I[P]=arguments[P]}var R=[].concat.apply([],I);return new Uint8Array(R).buffer}function fromHexdump(v){var I=v.split("\n");I=I.map((function(v){return v.trim()}));var P=I.reduce((function(v,I){var P=I.split(" ");P.shift();P=P.filter((function(v){return v!==""}));var R=P.map((function(v){return parseInt(v,16)}));v.push.apply(v,_toConsumableArray(R));return v}),[]);return new Uint8Array(P)}},98260:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.parse32F=parse32F;I.parse64F=parse64F;I.parse32I=parse32I;I.parseU32=parseU32;I.parse64I=parse64I;I.isInfLiteral=isInfLiteral;I.isNanLiteral=isNanLiteral;var R=_interopRequireDefault(P(85249));var $=_interopRequireDefault(P(21291));var L=P(72254);function _interopRequireDefault(v){return v&&v.__esModule?v:{default:v}}function parse32F(v){if(isHexLiteral(v)){return(0,$["default"])(v)}if(isInfLiteral(v)){return v[0]==="-"?-1:1}if(isNanLiteral(v)){return(v[0]==="-"?-1:1)*(v.includes(":")?parseInt(v.substring(v.indexOf(":")+1),16):4194304)}return parseFloat(v)}function parse64F(v){if(isHexLiteral(v)){return(0,$["default"])(v)}if(isInfLiteral(v)){return v[0]==="-"?-1:1}if(isNanLiteral(v)){return(v[0]==="-"?-1:1)*(v.includes(":")?parseInt(v.substring(v.indexOf(":")+1),16):0x8000000000000)}if(isHexLiteral(v)){return(0,$["default"])(v)}return parseFloat(v)}function parse32I(v){var I=0;if(isHexLiteral(v)){I=~~parseInt(v,16)}else if(isDecimalExponentLiteral(v)){throw new Error("This number literal format is yet to be implemented.")}else{I=parseInt(v,10)}return I}function parseU32(v){var I=parse32I(v);if(I<0){throw new L.CompileError("Illegal value for u32: "+v)}return I}function parse64I(v){var I;if(isHexLiteral(v)){I=R["default"].fromString(v,false,16)}else if(isDecimalExponentLiteral(v)){throw new Error("This number literal format is yet to be implemented.")}else{I=R["default"].fromString(v)}return{high:I.high,low:I.low}}var q=/^\+?-?nan/;var K=/^\+?-?inf/;function isInfLiteral(v){return K.test(v.toLowerCase())}function isNanLiteral(v){return q.test(v.toLowerCase())}function isDecimalExponentLiteral(v){return!isHexLiteral(v)&&v.toUpperCase().includes("E")}function isHexLiteral(v){return v.substring(0,2).toUpperCase()==="0X"||v.substring(0,3).toUpperCase()==="-0X"}},39622:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});Object.defineProperty(I,"getSectionForNode",{enumerable:true,get:function get(){return R.getSectionForNode}});I["default"]=void 0;var R=P(71066);var $="illegal";var L=[0,97,115,109];var q=[1,0,0,0];function invertMap(v){var I=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(v){return v};var P={};var R=Object.keys(v);for(var $=0,L=R.length;$<L;$++){P[I(v[R[$]])]=R[$]}return P}function createSymbolObject(v,I){var P=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return{name:v,object:I,numberOfArgs:P}}function createSymbol(v){var I=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return{name:v,numberOfArgs:I}}var K={func:96,result:64};var ae={0:"Func",1:"Table",2:"Memory",3:"Global"};var ge=invertMap(ae);var be={127:"i32",126:"i64",125:"f32",124:"f64",123:"v128",112:"anyfunc",111:"externref"};var xe=invertMap(be);var ve={112:"anyfunc",111:"externref"};var Ce=Object.assign({},be,{64:null,127:"i32",126:"i64",125:"f32",124:"f64"});var Ne={0:"const",1:"var"};var He=invertMap(Ne);var Qe={0:"func",1:"table",2:"memory",3:"global"};var Je={custom:0,type:1,import:2,func:3,table:4,memory:5,global:6,export:7,start:8,element:9,code:10,data:11};var Ve={0:createSymbol("unreachable"),1:createSymbol("nop"),2:createSymbol("block"),3:createSymbol("loop"),4:createSymbol("if"),5:createSymbol("else"),6:$,7:$,8:$,9:$,10:$,11:createSymbol("end"),12:createSymbol("br",1),13:createSymbol("br_if",1),14:createSymbol("br_table"),15:createSymbol("return"),16:createSymbol("call",1),17:createSymbol("call_indirect",2),18:$,19:$,20:$,21:$,22:$,23:$,24:$,25:$,26:createSymbol("drop"),27:createSymbol("select"),28:$,29:$,30:$,31:$,32:createSymbol("get_local",1),33:createSymbol("set_local",1),34:createSymbol("tee_local",1),35:createSymbol("get_global",1),36:createSymbol("set_global",1),37:createSymbol("table.get",1),38:createSymbol("table.set",1),39:$,40:createSymbolObject("load","u32",1),41:createSymbolObject("load","u64",1),42:createSymbolObject("load","f32",1),43:createSymbolObject("load","f64",1),44:createSymbolObject("load8_s","u32",1),45:createSymbolObject("load8_u","u32",1),46:createSymbolObject("load16_s","u32",1),47:createSymbolObject("load16_u","u32",1),48:createSymbolObject("load8_s","u64",1),49:createSymbolObject("load8_u","u64",1),50:createSymbolObject("load16_s","u64",1),51:createSymbolObject("load16_u","u64",1),52:createSymbolObject("load32_s","u64",1),53:createSymbolObject("load32_u","u64",1),54:createSymbolObject("store","u32",1),55:createSymbolObject("store","u64",1),56:createSymbolObject("store","f32",1),57:createSymbolObject("store","f64",1),58:createSymbolObject("store8","u32",1),59:createSymbolObject("store16","u32",1),60:createSymbolObject("store8","u64",1),61:createSymbolObject("store16","u64",1),62:createSymbolObject("store32","u64",1),63:createSymbolObject("current_memory"),64:createSymbolObject("grow_memory"),65:createSymbolObject("const","i32",1),66:createSymbolObject("const","i64",1),67:createSymbolObject("const","f32",1),68:createSymbolObject("const","f64",1),69:createSymbolObject("eqz","i32"),70:createSymbolObject("eq","i32"),71:createSymbolObject("ne","i32"),72:createSymbolObject("lt_s","i32"),73:createSymbolObject("lt_u","i32"),74:createSymbolObject("gt_s","i32"),75:createSymbolObject("gt_u","i32"),76:createSymbolObject("le_s","i32"),77:createSymbolObject("le_u","i32"),78:createSymbolObject("ge_s","i32"),79:createSymbolObject("ge_u","i32"),80:createSymbolObject("eqz","i64"),81:createSymbolObject("eq","i64"),82:createSymbolObject("ne","i64"),83:createSymbolObject("lt_s","i64"),84:createSymbolObject("lt_u","i64"),85:createSymbolObject("gt_s","i64"),86:createSymbolObject("gt_u","i64"),87:createSymbolObject("le_s","i64"),88:createSymbolObject("le_u","i64"),89:createSymbolObject("ge_s","i64"),90:createSymbolObject("ge_u","i64"),91:createSymbolObject("eq","f32"),92:createSymbolObject("ne","f32"),93:createSymbolObject("lt","f32"),94:createSymbolObject("gt","f32"),95:createSymbolObject("le","f32"),96:createSymbolObject("ge","f32"),97:createSymbolObject("eq","f64"),98:createSymbolObject("ne","f64"),99:createSymbolObject("lt","f64"),100:createSymbolObject("gt","f64"),101:createSymbolObject("le","f64"),102:createSymbolObject("ge","f64"),103:createSymbolObject("clz","i32"),104:createSymbolObject("ctz","i32"),105:createSymbolObject("popcnt","i32"),106:createSymbolObject("add","i32"),107:createSymbolObject("sub","i32"),108:createSymbolObject("mul","i32"),109:createSymbolObject("div_s","i32"),110:createSymbolObject("div_u","i32"),111:createSymbolObject("rem_s","i32"),112:createSymbolObject("rem_u","i32"),113:createSymbolObject("and","i32"),114:createSymbolObject("or","i32"),115:createSymbolObject("xor","i32"),116:createSymbolObject("shl","i32"),117:createSymbolObject("shr_s","i32"),118:createSymbolObject("shr_u","i32"),119:createSymbolObject("rotl","i32"),120:createSymbolObject("rotr","i32"),121:createSymbolObject("clz","i64"),122:createSymbolObject("ctz","i64"),123:createSymbolObject("popcnt","i64"),124:createSymbolObject("add","i64"),125:createSymbolObject("sub","i64"),126:createSymbolObject("mul","i64"),127:createSymbolObject("div_s","i64"),128:createSymbolObject("div_u","i64"),129:createSymbolObject("rem_s","i64"),130:createSymbolObject("rem_u","i64"),131:createSymbolObject("and","i64"),132:createSymbolObject("or","i64"),133:createSymbolObject("xor","i64"),134:createSymbolObject("shl","i64"),135:createSymbolObject("shr_s","i64"),136:createSymbolObject("shr_u","i64"),137:createSymbolObject("rotl","i64"),138:createSymbolObject("rotr","i64"),139:createSymbolObject("abs","f32"),140:createSymbolObject("neg","f32"),141:createSymbolObject("ceil","f32"),142:createSymbolObject("floor","f32"),143:createSymbolObject("trunc","f32"),144:createSymbolObject("nearest","f32"),145:createSymbolObject("sqrt","f32"),146:createSymbolObject("add","f32"),147:createSymbolObject("sub","f32"),148:createSymbolObject("mul","f32"),149:createSymbolObject("div","f32"),150:createSymbolObject("min","f32"),151:createSymbolObject("max","f32"),152:createSymbolObject("copysign","f32"),153:createSymbolObject("abs","f64"),154:createSymbolObject("neg","f64"),155:createSymbolObject("ceil","f64"),156:createSymbolObject("floor","f64"),157:createSymbolObject("trunc","f64"),158:createSymbolObject("nearest","f64"),159:createSymbolObject("sqrt","f64"),160:createSymbolObject("add","f64"),161:createSymbolObject("sub","f64"),162:createSymbolObject("mul","f64"),163:createSymbolObject("div","f64"),164:createSymbolObject("min","f64"),165:createSymbolObject("max","f64"),166:createSymbolObject("copysign","f64"),167:createSymbolObject("wrap/i64","i32"),168:createSymbolObject("trunc_s/f32","i32"),169:createSymbolObject("trunc_u/f32","i32"),170:createSymbolObject("trunc_s/f64","i32"),171:createSymbolObject("trunc_u/f64","i32"),172:createSymbolObject("extend_s/i32","i64"),173:createSymbolObject("extend_u/i32","i64"),174:createSymbolObject("trunc_s/f32","i64"),175:createSymbolObject("trunc_u/f32","i64"),176:createSymbolObject("trunc_s/f64","i64"),177:createSymbolObject("trunc_u/f64","i64"),178:createSymbolObject("convert_s/i32","f32"),179:createSymbolObject("convert_u/i32","f32"),180:createSymbolObject("convert_s/i64","f32"),181:createSymbolObject("convert_u/i64","f32"),182:createSymbolObject("demote/f64","f32"),183:createSymbolObject("convert_s/i32","f64"),184:createSymbolObject("convert_u/i32","f64"),185:createSymbolObject("convert_s/i64","f64"),186:createSymbolObject("convert_u/i64","f64"),187:createSymbolObject("promote/f32","f64"),188:createSymbolObject("reinterpret/f32","i32"),189:createSymbolObject("reinterpret/f64","i64"),190:createSymbolObject("reinterpret/i32","f32"),191:createSymbolObject("reinterpret/i64","f64"),192:createSymbolObject("extend8_s","i32"),193:createSymbolObject("extend16_s","i32"),194:createSymbolObject("extend8_s","i64"),195:createSymbolObject("extend16_s","i64"),196:createSymbolObject("extend32_s","i64"),208:createSymbol("ref.null"),209:createSymbol("ref.is_null"),210:createSymbol("ref.func",1),64522:createSymbol("memory.copy"),64523:createSymbol("memory.fill"),64524:createSymbol("table.init",2),64525:createSymbol("elem.drop",1),64526:createSymbol("table.copy",2),64527:createSymbol("table.grow",1),64528:createSymbol("table.size",1),64529:createSymbol("table.fill",1),65024:createSymbol("memory.atomic.notify",1),65025:createSymbol("memory.atomic.wait32",1),65026:createSymbol("memory.atomic.wait64",1),65040:createSymbolObject("atomic.load","i32",1),65041:createSymbolObject("atomic.load","i64",1),65042:createSymbolObject("atomic.load8_u","i32",1),65043:createSymbolObject("atomic.load16_u","i32",1),65044:createSymbolObject("atomic.load8_u","i64",1),65045:createSymbolObject("atomic.load16_u","i64",1),65046:createSymbolObject("atomic.load32_u","i64",1),65047:createSymbolObject("atomic.store","i32",1),65048:createSymbolObject("atomic.store","i64",1),65049:createSymbolObject("atomic.store8_u","i32",1),65050:createSymbolObject("atomic.store16_u","i32",1),65051:createSymbolObject("atomic.store8_u","i64",1),65052:createSymbolObject("atomic.store16_u","i64",1),65053:createSymbolObject("atomic.store32_u","i64",1),65054:createSymbolObject("atomic.rmw.add","i32",1),65055:createSymbolObject("atomic.rmw.add","i64",1),65056:createSymbolObject("atomic.rmw8_u.add_u","i32",1),65057:createSymbolObject("atomic.rmw16_u.add_u","i32",1),65058:createSymbolObject("atomic.rmw8_u.add_u","i64",1),65059:createSymbolObject("atomic.rmw16_u.add_u","i64",1),65060:createSymbolObject("atomic.rmw32_u.add_u","i64",1),65061:createSymbolObject("atomic.rmw.sub","i32",1),65062:createSymbolObject("atomic.rmw.sub","i64",1),65063:createSymbolObject("atomic.rmw8_u.sub_u","i32",1),65064:createSymbolObject("atomic.rmw16_u.sub_u","i32",1),65065:createSymbolObject("atomic.rmw8_u.sub_u","i64",1),65066:createSymbolObject("atomic.rmw16_u.sub_u","i64",1),65067:createSymbolObject("atomic.rmw32_u.sub_u","i64",1),65068:createSymbolObject("atomic.rmw.and","i32",1),65069:createSymbolObject("atomic.rmw.and","i64",1),65070:createSymbolObject("atomic.rmw8_u.and_u","i32",1),65071:createSymbolObject("atomic.rmw16_u.and_u","i32",1),65072:createSymbolObject("atomic.rmw8_u.and_u","i64",1),65073:createSymbolObject("atomic.rmw16_u.and_u","i64",1),65074:createSymbolObject("atomic.rmw32_u.and_u","i64",1),65075:createSymbolObject("atomic.rmw.or","i32",1),65076:createSymbolObject("atomic.rmw.or","i64",1),65077:createSymbolObject("atomic.rmw8_u.or_u","i32",1),65078:createSymbolObject("atomic.rmw16_u.or_u","i32",1),65079:createSymbolObject("atomic.rmw8_u.or_u","i64",1),65080:createSymbolObject("atomic.rmw16_u.or_u","i64",1),65081:createSymbolObject("atomic.rmw32_u.or_u","i64",1),65082:createSymbolObject("atomic.rmw.xor","i32",1),65083:createSymbolObject("atomic.rmw.xor","i64",1),65084:createSymbolObject("atomic.rmw8_u.xor_u","i32",1),65085:createSymbolObject("atomic.rmw16_u.xor_u","i32",1),65086:createSymbolObject("atomic.rmw8_u.xor_u","i64",1),65087:createSymbolObject("atomic.rmw16_u.xor_u","i64",1),65088:createSymbolObject("atomic.rmw32_u.xor_u","i64",1),65089:createSymbolObject("atomic.rmw.xchg","i32",1),65090:createSymbolObject("atomic.rmw.xchg","i64",1),65091:createSymbolObject("atomic.rmw8_u.xchg_u","i32",1),65092:createSymbolObject("atomic.rmw16_u.xchg_u","i32",1),65093:createSymbolObject("atomic.rmw8_u.xchg_u","i64",1),65094:createSymbolObject("atomic.rmw16_u.xchg_u","i64",1),65095:createSymbolObject("atomic.rmw32_u.xchg_u","i64",1),65096:createSymbolObject("atomic.rmw.cmpxchg","i32",1),65097:createSymbolObject("atomic.rmw.cmpxchg","i64",1),65098:createSymbolObject("atomic.rmw8_u.cmpxchg_u","i32",1),65099:createSymbolObject("atomic.rmw16_u.cmpxchg_u","i32",1),65100:createSymbolObject("atomic.rmw8_u.cmpxchg_u","i64",1),65101:createSymbolObject("atomic.rmw16_u.cmpxchg_u","i64",1),65102:createSymbolObject("atomic.rmw32_u.cmpxchg_u","i64",1)};var Ke=invertMap(Ve,(function(v){if(typeof v.object==="string"){return"".concat(v.object,".").concat(v.name)}return v.name}));var Ye={symbolsByByte:Ve,sections:Je,magicModuleHeader:L,moduleVersion:q,types:K,valtypes:be,exportTypes:ae,blockTypes:Ce,tableTypes:ve,globalTypes:Ne,importTypes:Qe,valtypesByString:xe,globalTypesByString:He,exportTypesByName:ge,symbolsByName:Ke};I["default"]=Ye},71066:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.getSectionForNode=getSectionForNode;function getSectionForNode(v){switch(v.type){case"ModuleImport":return"import";case"CallInstruction":case"CallIndirectInstruction":case"Func":case"Instr":return"code";case"ModuleExport":return"export";case"Start":return"start";case"TypeInstruction":return"type";case"IndexInFuncSection":return"func";case"Global":return"global";default:return}}},18467:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.createEmptySection=createEmptySection;var R=P(62755);var $=P(66042);var L=_interopRequireDefault(P(39622));var q=_interopRequireWildcard(P(65008));function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}function _interopRequireDefault(v){return v&&v.__esModule?v:{default:v}}function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}function findLastSection(v,I){var P=L["default"].sections[I];var R=v.body[0].metadata.sections;var $;var q=0;for(var K=0,ae=R.length;K<ae;K++){var ge=R[K];if(ge.section==="custom"){continue}var be=L["default"].sections[ge.section];if(P>q&&P<be){return $}q=be;$=ge}return $}function createEmptySection(v,I,P){var L=findLastSection(v,P);var K,ae;if(L==null||L.section==="custom"){K=8;ae=K}else{K=L.startOffset+L.size.value+1;ae=K}K+=1;var ge={line:-1,column:K};var be={line:-1,column:K+1};var xe=q.withLoc(q.numberLiteralFromRaw(1),be,ge);var ve={line:-1,column:be.column};var Ce={line:-1,column:be.column+1};var Ne=q.withLoc(q.numberLiteralFromRaw(0),Ce,ve);var He=q.sectionMetadata(P,K,xe,Ne);var Qe=(0,R.encodeNode)(He);I=(0,$.overrideBytesInBuffer)(I,K-1,ae,Qe);if(_typeof(v.body[0].metadata)==="object"){v.body[0].metadata.sections.push(He);q.sortSectionMetadata(v.body[0])}var Je=+Qe.length;var Ve=false;q.traverse(v,{SectionMetadata:function SectionMetadata(I){if(I.node.section===P){Ve=true;return}if(Ve===true){q.shiftSection(v,I.node,Je)}}});return{uint8Buffer:I,sectionMetadata:He}}},86577:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});Object.defineProperty(I,"resizeSectionByteSize",{enumerable:true,get:function get(){return R.resizeSectionByteSize}});Object.defineProperty(I,"resizeSectionVecSize",{enumerable:true,get:function get(){return R.resizeSectionVecSize}});Object.defineProperty(I,"createEmptySection",{enumerable:true,get:function get(){return $.createEmptySection}});Object.defineProperty(I,"removeSections",{enumerable:true,get:function get(){return L.removeSections}});var R=P(14868);var $=P(18467);var L=P(32396)},32396:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.removeSections=removeSections;var R=P(65008);var $=P(66042);function removeSections(v,I,P){var L=(0,R.getSectionMetadatas)(v,P);if(L.length===0){throw new Error("Section metadata not found")}return L.reverse().reduce((function(I,L){var q=L.startOffset-1;var K=P==="start"?L.size.loc.end.column+1:L.startOffset+L.size.value+1;var ae=-(K-q);var ge=false;(0,R.traverse)(v,{SectionMetadata:function SectionMetadata(I){if(I.node.section===P){ge=true;return I.remove()}if(ge===true){(0,R.shiftSection)(v,I.node,ae)}}});var be=[];return(0,$.overrideBytesInBuffer)(I,q,K,be)}),I)}},14868:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.resizeSectionByteSize=resizeSectionByteSize;I.resizeSectionVecSize=resizeSectionVecSize;var R=P(62755);var $=P(65008);var L=P(66042);function resizeSectionByteSize(v,I,P,q){var K=(0,$.getSectionMetadata)(v,P);if(typeof K==="undefined"){throw new Error("Section metadata not found")}if(typeof K.size.loc==="undefined"){throw new Error("SectionMetadata "+P+" has no loc")}var ae=K.size.loc.start.column;var ge=K.size.loc.end.column;var be=K.size.value+q;var xe=(0,R.encodeU32)(be);K.size.value=be;var ve=ge-ae;var Ce=xe.length;if(Ce!==ve){var Ne=Ce-ve;K.size.loc.end.column=ae+Ce;q+=Ne;K.vectorOfSize.loc.start.column+=Ne;K.vectorOfSize.loc.end.column+=Ne}var He=false;(0,$.traverse)(v,{SectionMetadata:function SectionMetadata(I){if(I.node.section===P){He=true;return}if(He===true){(0,$.shiftSection)(v,I.node,q)}}});return(0,L.overrideBytesInBuffer)(I,ae,ge,xe)}function resizeSectionVecSize(v,I,P,q){var K=(0,$.getSectionMetadata)(v,P);if(typeof K==="undefined"){throw new Error("Section metadata not found")}if(typeof K.vectorOfSize.loc==="undefined"){throw new Error("SectionMetadata "+P+" has no loc")}if(K.vectorOfSize.value===-1){return I}var ae=K.vectorOfSize.loc.start.column;var ge=K.vectorOfSize.loc.end.column;var be=K.vectorOfSize.value+q;var xe=(0,R.encodeU32)(be);K.vectorOfSize.value=be;K.vectorOfSize.loc.end.column=ae+xe.length;return(0,L.overrideBytesInBuffer)(I,ae,ge,xe)}},47289:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.encodeF32=encodeF32;I.encodeF64=encodeF64;I.decodeF32=decodeF32;I.decodeF64=decodeF64;I.DOUBLE_PRECISION_MANTISSA=I.SINGLE_PRECISION_MANTISSA=I.NUMBER_OF_BYTE_F64=I.NUMBER_OF_BYTE_F32=void 0;var R=P(62734);var $=4;I.NUMBER_OF_BYTE_F32=$;var L=8;I.NUMBER_OF_BYTE_F64=L;var q=23;I.SINGLE_PRECISION_MANTISSA=q;var K=52;I.DOUBLE_PRECISION_MANTISSA=K;function encodeF32(v){var I=[];(0,R.write)(I,v,0,true,q,$);return I}function encodeF64(v){var I=[];(0,R.write)(I,v,0,true,K,L);return I}function decodeF32(v){var I=new Uint8Array(v);return(0,R.read)(I,0,true,q,$)}function decodeF64(v){var I=new Uint8Array(v);return(0,R.read)(I,0,true,K,L)}},73313:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.extract=extract;I.inject=inject;I.getSign=getSign;I.highOrder=highOrder;function extract(v,I,P,R){if(P<0||P>32){throw new Error("Bad value for bitLength.")}if(R===undefined){R=0}else if(R!==0&&R!==1){throw new Error("Bad value for defaultBit.")}var $=R*255;var L=0;var q=I+P;var K=Math.floor(I/8);var ae=I%8;var ge=Math.floor(q/8);var be=q%8;if(be!==0){L=get(ge)&(1<<be)-1}while(ge>K){ge--;L=L<<8|get(ge)}L>>>=ae;return L;function get(I){var P=v[I];return P===undefined?$:P}}function inject(v,I,P,R){if(P<0||P>32){throw new Error("Bad value for bitLength.")}var $=Math.floor((I+P-1)/8);if(I<0||$>=v.length){throw new Error("Index out of range.")}var L=Math.floor(I/8);var q=I%8;while(P>0){if(R&1){v[L]|=1<<q}else{v[L]&=~(1<<q)}R>>=1;P--;q=(q+1)%8;if(q===0){L++}}}function getSign(v){return v[v.length-1]>>>7}function highOrder(v,I){var P=I.length;var R=(v^1)*255;while(P>0&&I[P-1]===R){P--}if(P===0){return-1}var $=I[P-1];var L=P*8-1;for(var q=7;q>0;q--){if(($>>q&1)===v){break}L--}return L}},66646:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.alloc=alloc;I.free=free;I.resize=resize;I.readInt=readInt;I.readUInt=readUInt;I.writeInt64=writeInt64;I.writeUInt64=writeUInt64;var P=[];var R=20;var $=-0x8000000000000000;var L=0x7ffffffffffffc00;var q=0xfffffffffffff800;var K=4294967296;var ae=0x10000000000000000;function lowestBit(v){return v&-v}function isLossyToAdd(v,I){if(I===0){return false}var P=lowestBit(I);var R=v+P;if(R===v){return true}if(R-P!==v){return true}return false}function alloc(v){var I=P[v];if(I){P[v]=undefined}else{I=new Uint8Array(v)}I.fill(0);return I}function free(v){var I=v.length;if(I<R){P[I]=v}}function resize(v,I){if(I===v.length){return v}var P=alloc(I);for(var R=0;R<=v.length;R++){P[R]=v[R]}free(v);return P}function readInt(v){var I=v.length;var P=v[I-1]<128;var R=P?0:-1;var $=false;if(I<7){for(var L=I-1;L>=0;L--){R=R*256+v[L]}}else{for(var q=I-1;q>=0;q--){var K=v[q];R*=256;if(isLossyToAdd(R,K)){$=true}R+=K}}return{value:R,lossy:$}}function readUInt(v){var I=v.length;var P=0;var R=false;if(I<7){for(var $=I-1;$>=0;$--){P=P*256+v[$]}}else{for(var L=I-1;L>=0;L--){var q=v[L];P*=256;if(isLossyToAdd(P,q)){R=true}P+=q}}return{value:P,lossy:R}}function writeInt64(v,I){if(v<$||v>L){throw new Error("Value out of range.")}if(v<0){v+=ae}writeUInt64(v,I)}function writeUInt64(v,I){if(v<0||v>q){throw new Error("Value out of range.")}var P=v%K;var R=Math.floor(v/K);I[0]=P&255;I[1]=P>>8&255;I[2]=P>>16&255;I[3]=P>>24&255;I[4]=R&255;I[5]=R>>8&255;I[6]=R>>16&255;I[7]=R>>24&255}},45957:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.decodeInt64=decodeInt64;I.decodeUInt64=decodeUInt64;I.decodeInt32=decodeInt32;I.decodeUInt32=decodeUInt32;I.encodeU32=encodeU32;I.encodeI32=encodeI32;I.encodeI64=encodeI64;I.MAX_NUMBER_OF_BYTE_U64=I.MAX_NUMBER_OF_BYTE_U32=void 0;var R=_interopRequireDefault(P(62212));function _interopRequireDefault(v){return v&&v.__esModule?v:{default:v}}var $=5;I.MAX_NUMBER_OF_BYTE_U32=$;var L=10;I.MAX_NUMBER_OF_BYTE_U64=L;function decodeInt64(v,I){return R["default"].decodeInt64(v,I)}function decodeUInt64(v,I){return R["default"].decodeUInt64(v,I)}function decodeInt32(v,I){return R["default"].decodeInt32(v,I)}function decodeUInt32(v,I){return R["default"].decodeUInt32(v,I)}function encodeU32(v){return R["default"].encodeUInt32(v)}function encodeI32(v){return R["default"].encodeInt32(v)}function encodeI64(v){return R["default"].encodeInt64(v)}},62212:function(v,I,P){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I["default"]=void 0;var R=_interopRequireDefault(P(85249));var $=_interopRequireWildcard(P(73313));var L=_interopRequireWildcard(P(66646));function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}function _interopRequireDefault(v){return v&&v.__esModule?v:{default:v}}var q=-2147483648;var K=2147483647;var ae=4294967295;function signedBitCount(v){return $.highOrder($.getSign(v)^1,v)+2}function unsignedBitCount(v){var I=$.highOrder(1,v)+1;return I?I:1}function encodeBufferCommon(v,I){var P;var R;if(I){P=$.getSign(v);R=signedBitCount(v)}else{P=0;R=unsignedBitCount(v)}var q=Math.ceil(R/7);var K=L.alloc(q);for(var ae=0;ae<q;ae++){var ge=$.extract(v,ae*7,7,P);K[ae]=ge|128}K[q-1]&=127;return K}function encodedLength(v,I){var P=0;while(v[I+P]>=128){P++}P++;if(I+P>v.length){}return P}function decodeBufferCommon(v,I,P){I=I===undefined?0:I;var R=encodedLength(v,I);var q=R*7;var K=Math.ceil(q/8);var ae=L.alloc(K);var ge=0;while(R>0){$.inject(ae,ge,7,v[I]);ge+=7;I++;R--}var be;var xe;if(P){var ve=ae[K-1];var Ce=ge%8;if(Ce!==0){var Ne=32-Ce;ve=ae[K-1]=ve<<Ne>>Ne&255}be=ve>>7;xe=be*255}else{be=0;xe=0}while(K>1&&ae[K-1]===xe&&(!P||ae[K-2]>>7===be)){K--}ae=L.resize(ae,K);return{value:ae,nextIndex:I}}function encodeIntBuffer(v){return encodeBufferCommon(v,true)}function decodeIntBuffer(v,I){return decodeBufferCommon(v,I,true)}function encodeInt32(v){var I=new Uint8Array(4);I[0]=v&255;I[1]=v>>8&255;I[2]=v>>16&255;I[3]=v>>24&255;var P=encodeIntBuffer(I);return P}function decodeInt32(v,I){var P=decodeIntBuffer(v,I);var R=L.readInt(P.value);var $=R.value;L.free(P.value);if($<q||$>K){throw new Error("integer too large")}return{value:$,nextIndex:P.nextIndex}}function encodeInt64(v){var I=L.alloc(8);L.writeInt64(v,I);var P=encodeIntBuffer(I);L.free(I);return P}function decodeInt64(v,I){var P=decodeIntBuffer(v,I);var $=P.value.length;if(P.value[$-1]>>7){P.value=L.resize(P.value,8);P.value.fill(255,$)}var q=R["default"].fromBytesLE(P.value,false);L.free(P.value);return{value:q,nextIndex:P.nextIndex,lossy:false}}function encodeUIntBuffer(v){return encodeBufferCommon(v,false)}function decodeUIntBuffer(v,I){return decodeBufferCommon(v,I,false)}function encodeUInt32(v){var I=new Uint8Array(4);I[0]=v&255;I[1]=v>>8&255;I[2]=v>>16&255;I[3]=v>>24&255;var P=encodeUIntBuffer(I);return P}function decodeUInt32(v,I){var P=decodeUIntBuffer(v,I);var R=L.readUInt(P.value);var $=R.value;L.free(P.value);if($>ae){throw new Error("integer too large")}return{value:$,nextIndex:P.nextIndex}}function encodeUInt64(v){var I=L.alloc(8);L.writeUInt64(v,I);var P=encodeUIntBuffer(I);L.free(I);return P}function decodeUInt64(v,I){var P=decodeUIntBuffer(v,I);var $=R["default"].fromBytesLE(P.value,true);L.free(P.value);return{value:$,nextIndex:P.nextIndex,lossy:false}}var ge={decodeInt32:decodeInt32,decodeInt64:decodeInt64,decodeIntBuffer:decodeIntBuffer,decodeUInt32:decodeUInt32,decodeUInt64:decodeUInt64,decodeUIntBuffer:decodeUIntBuffer,encodeInt32:encodeInt32,encodeInt64:encodeInt64,encodeIntBuffer:encodeIntBuffer,encodeUInt32:encodeUInt32,encodeUInt64:encodeUInt64,encodeUIntBuffer:encodeUIntBuffer};I["default"]=ge},82705:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.decode=decode;function con(v){if((v&192)===128){return v&63}else{throw new Error("invalid UTF-8 encoding")}}function code(v,I){if(I<v||55296<=I&&I<57344||I>=65536){throw new Error("invalid UTF-8 encoding")}else{return I}}function decode(v){return _decode(v).map((function(v){return String.fromCharCode(v)})).join("")}function _decode(v){var I=[];while(v.length>0){var P=v[0];if(P<128){I.push(code(0,P));v=v.slice(1);continue}if(P<192){throw new Error("invalid UTF-8 encoding")}var R=v[1];if(P<224){I.push(code(128,((P&31)<<6)+con(R)));v=v.slice(2);continue}var $=v[2];if(P<240){I.push(code(2048,((P&15)<<12)+(con(R)<<6)+con($)));v=v.slice(3);continue}var L=v[3];if(P<248){I.push(code(65536,(((P&7)<<18)+con(R)<<12)+(con($)<<6)+con(L)));v=v.slice(4);continue}throw new Error("invalid UTF-8 encoding")}return I}},89940:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.encode=encode;function _toConsumableArray(v){return _arrayWithoutHoles(v)||_iterableToArray(v)||_unsupportedIterableToArray(v)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _arrayWithoutHoles(v){if(Array.isArray(v))return _arrayLikeToArray(v)}function _toArray(v){return _arrayWithHoles(v)||_iterableToArray(v)||_unsupportedIterableToArray(v)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(v,I){if(!v)return;if(typeof v==="string")return _arrayLikeToArray(v,I);var P=Object.prototype.toString.call(v).slice(8,-1);if(P==="Object"&&v.constructor)P=v.constructor.name;if(P==="Map"||P==="Set")return Array.from(v);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return _arrayLikeToArray(v,I)}function _arrayLikeToArray(v,I){if(I==null||I>v.length)I=v.length;for(var P=0,R=new Array(I);P<I;P++){R[P]=v[P]}return R}function _iterableToArray(v){if(typeof Symbol!=="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function _arrayWithHoles(v){if(Array.isArray(v))return v}function con(v){return 128|v&63}function encode(v){var I=v.split("").map((function(v){return v.charCodeAt(0)}));return _encode(I)}function _encode(v){if(v.length===0){return[]}var I=_toArray(v),P=I[0],R=I.slice(1);if(P<0){throw new Error("utf8")}if(P<128){return[P].concat(_toConsumableArray(_encode(R)))}if(P<2048){return[192|P>>>6,con(P)].concat(_toConsumableArray(_encode(R)))}if(P<65536){return[224|P>>>12,con(P>>>6),con(P)].concat(_toConsumableArray(_encode(R)))}if(P<1114112){return[240|P>>>18,con(P>>>12),con(P>>>6),con(P)].concat(_toConsumableArray(_encode(R)))}throw new Error("utf8")}},31188:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});Object.defineProperty(I,"decode",{enumerable:true,get:function get(){return R.decode}});Object.defineProperty(I,"encode",{enumerable:true,get:function get(){return $.encode}});var R=P(82705);var $=P(89940)},65216:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.applyOperations=applyOperations;var R=P(62755);var $=P(59072);var L=P(65008);var q=P(86577);var K=P(66042);var ae=P(39622);function _slicedToArray(v,I){return _arrayWithHoles(v)||_iterableToArrayLimit(v,I)||_unsupportedIterableToArray(v,I)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(v,I){if(!v)return;if(typeof v==="string")return _arrayLikeToArray(v,I);var P=Object.prototype.toString.call(v).slice(8,-1);if(P==="Object"&&v.constructor)P=v.constructor.name;if(P==="Map"||P==="Set")return Array.from(v);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return _arrayLikeToArray(v,I)}function _arrayLikeToArray(v,I){if(I==null||I>v.length)I=v.length;for(var P=0,R=new Array(I);P<I;P++){R[P]=v[P]}return R}function _iterableToArrayLimit(v,I){var P=v==null?null:typeof Symbol!=="undefined"&&v[Symbol.iterator]||v["@@iterator"];if(P==null)return;var R=[];var $=true;var L=false;var q,K;try{for(P=P.call(v);!($=(q=P.next()).done);$=true){R.push(q.value);if(I&&R.length===I)break}}catch(v){L=true;K=v}finally{try{if(!$&&P["return"]!=null)P["return"]()}finally{if(L)throw K}}return R}function _arrayWithHoles(v){if(Array.isArray(v))return v}function shiftLocNodeByDelta(v,I){(0,L.assertHasLoc)(v);v.loc.start.column+=I;v.loc.end.column+=I}function applyUpdate(v,I,P){var q=_slicedToArray(P,2),ge=q[0],be=q[1];var xe=0;(0,L.assertHasLoc)(ge);var ve=(0,ae.getSectionForNode)(be);var Ce=(0,R.encodeNode)(be);I=(0,K.overrideBytesInBuffer)(I,ge.loc.start.column,ge.loc.end.column,Ce);if(ve==="code"){(0,L.traverse)(v,{Func:function Func(v){var P=v.node;var q=P.body.find((function(v){return v===be}))!==undefined;if(q===true){(0,L.assertHasLoc)(P);var ae=(0,R.encodeNode)(ge).length;var xe=Ce.length-ae;if(xe!==0){var ve=P.metadata.bodySize+xe;var Ne=(0,$.encodeU32)(ve);var He=P.loc.start.column;var Qe=He+1;I=(0,K.overrideBytesInBuffer)(I,He,Qe,Ne)}}}})}var Ne=Ce.length-(ge.loc.end.column-ge.loc.start.column);be.loc={start:{line:-1,column:-1},end:{line:-1,column:-1}};be.loc.start.column=ge.loc.start.column;be.loc.end.column=ge.loc.start.column+Ce.length;return{uint8Buffer:I,deltaBytes:Ne,deltaElements:xe}}function applyDelete(v,I,P){var R=-1;(0,L.assertHasLoc)(P);var $=(0,ae.getSectionForNode)(P);if($==="start"){var ge=(0,L.getSectionMetadata)(v,"start");I=(0,q.removeSections)(v,I,"start");var be=-(ge.size.value+1);return{uint8Buffer:I,deltaBytes:be,deltaElements:R}}var xe=[];I=(0,K.overrideBytesInBuffer)(I,P.loc.start.column,P.loc.end.column,xe);var ve=-(P.loc.end.column-P.loc.start.column);return{uint8Buffer:I,deltaBytes:ve,deltaElements:R}}function applyAdd(v,I,P){var $=+1;var ge=(0,ae.getSectionForNode)(P);var be=(0,L.getSectionMetadata)(v,ge);if(typeof be==="undefined"){var xe=(0,q.createEmptySection)(v,I,ge);I=xe.uint8Buffer;be=xe.sectionMetadata}if((0,L.isFunc)(P)){var ve=P.body;if(ve.length===0||ve[ve.length-1].id!=="end"){throw new Error("expressions must be ended")}}if((0,L.isGlobal)(P)){var ve=P.init;if(ve.length===0||ve[ve.length-1].id!=="end"){throw new Error("expressions must be ended")}}var Ce=(0,R.encodeNode)(P);var Ne=(0,L.getEndOfSection)(be);var He=Ne;var Qe=Ce.length;I=(0,K.overrideBytesInBuffer)(I,Ne,He,Ce);P.loc={start:{line:-1,column:Ne},end:{line:-1,column:Ne+Qe}};if(P.type==="Func"){var Je=Ce[0];P.metadata={bodySize:Je}}if(P.type!=="IndexInFuncSection"){(0,L.orderedInsertNode)(v.body[0],P)}return{uint8Buffer:I,deltaBytes:Qe,deltaElements:$}}function applyOperations(v,I,P){P.forEach((function(R){var $;var L;switch(R.kind){case"update":$=applyUpdate(v,I,[R.oldNode,R.node]);L=(0,ae.getSectionForNode)(R.node);break;case"delete":$=applyDelete(v,I,R.node);L=(0,ae.getSectionForNode)(R.node);break;case"add":$=applyAdd(v,I,R.node);L=(0,ae.getSectionForNode)(R.node);break;default:throw new Error("Unknown operation")}if($.deltaElements!==0&&L!=="start"){var K=$.uint8Buffer.length;$.uint8Buffer=(0,q.resizeSectionVecSize)(v,$.uint8Buffer,L,$.deltaElements);$.deltaBytes+=$.uint8Buffer.length-K}if($.deltaBytes!==0&&L!=="start"){var ge=$.uint8Buffer.length;$.uint8Buffer=(0,q.resizeSectionByteSize)(v,$.uint8Buffer,L,$.deltaBytes);$.deltaBytes+=$.uint8Buffer.length-ge}if($.deltaBytes!==0){P.forEach((function(v){switch(v.kind){case"update":shiftLocNodeByDelta(v.oldNode,$.deltaBytes);break;case"delete":shiftLocNodeByDelta(v.node,$.deltaBytes);break}}))}I=$.uint8Buffer}));return I}},24726:function(v,I,P){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I.edit=edit;I.editWithAST=editWithAST;I.add=add;I.addWithAST=addWithAST;var R=P(12183);var $=P(65008);var L=P(60485);var q=P(94029);var K=_interopRequireWildcard(P(39622));var ae=P(65216);function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}function _createForOfIteratorHelper(v,I){var P=typeof Symbol!=="undefined"&&v[Symbol.iterator]||v["@@iterator"];if(!P){if(Array.isArray(v)||(P=_unsupportedIterableToArray(v))||I&&v&&typeof v.length==="number"){if(P)v=P;var R=0;var $=function F(){};return{s:$,n:function n(){if(R>=v.length)return{done:true};return{done:false,value:v[R++]}},e:function e(v){throw v},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L=true,q=false,K;return{s:function s(){P=P.call(v)},n:function n(){var v=P.next();L=v.done;return v},e:function e(v){q=true;K=v},f:function f(){try{if(!L&&P["return"]!=null)P["return"]()}finally{if(q)throw K}}}}function _unsupportedIterableToArray(v,I){if(!v)return;if(typeof v==="string")return _arrayLikeToArray(v,I);var P=Object.prototype.toString.call(v).slice(8,-1);if(P==="Object"&&v.constructor)P=v.constructor.name;if(P==="Map"||P==="Set")return Array.from(v);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return _arrayLikeToArray(v,I)}function _arrayLikeToArray(v,I){if(I==null||I>v.length)I=v.length;for(var P=0,R=new Array(I);P<I;P++){R[P]=v[P]}return R}function hashNode(v){return JSON.stringify(v)}function preprocess(v){var I=(0,q.shrinkPaddedLEB128)(new Uint8Array(v));return I.buffer}function sortBySectionOrder(v){var I=new Map;var P=_createForOfIteratorHelper(v),R;try{for(P.s();!(R=P.n()).done;){var $=R.value;I.set($,I.size)}}catch(v){P.e(v)}finally{P.f()}v.sort((function(v,P){var R=(0,K.getSectionForNode)(v);var $=(0,K.getSectionForNode)(P);var L=K["default"].sections[R];var q=K["default"].sections[$];if(typeof L!=="number"||typeof q!=="number"){throw new Error("Section id not found")}if(L===q){return I.get(v)-I.get(P)}return L-q}))}function edit(v,I){v=preprocess(v);var P=(0,R.decode)(v);return editWithAST(P,v,I)}function editWithAST(v,I,P){var R=[];var q=new Uint8Array(I);var K;function before(v,I){K=(0,L.cloneNode)(I.node)}function after(v,I){if(I.node._deleted===true){R.push({kind:"delete",node:I.node})}else if(hashNode(K)!==hashNode(I.node)){R.push({kind:"update",oldNode:K,node:I.node})}}(0,$.traverse)(v,P,before,after);q=(0,ae.applyOperations)(v,q,R);return q.buffer}function add(v,I){v=preprocess(v);var P=(0,R.decode)(v);return addWithAST(P,v,I)}function addWithAST(v,I,P){sortBySectionOrder(P);var R=new Uint8Array(I);var $=P.map((function(v){return{kind:"add",node:v}}));R=(0,ae.applyOperations)(v,R,$);return R.buffer}},59072:function(v,I,P){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I.encodeVersion=encodeVersion;I.encodeHeader=encodeHeader;I.encodeU32=encodeU32;I.encodeI32=encodeI32;I.encodeI64=encodeI64;I.encodeVec=encodeVec;I.encodeValtype=encodeValtype;I.encodeMutability=encodeMutability;I.encodeUTF8Vec=encodeUTF8Vec;I.encodeLimits=encodeLimits;I.encodeModuleImport=encodeModuleImport;I.encodeSectionMetadata=encodeSectionMetadata;I.encodeCallInstruction=encodeCallInstruction;I.encodeCallIndirectInstruction=encodeCallIndirectInstruction;I.encodeModuleExport=encodeModuleExport;I.encodeTypeInstruction=encodeTypeInstruction;I.encodeInstr=encodeInstr;I.encodeStringLiteral=encodeStringLiteral;I.encodeGlobal=encodeGlobal;I.encodeFuncBody=encodeFuncBody;I.encodeIndexInFuncSection=encodeIndexInFuncSection;I.encodeElem=encodeElem;var R=_interopRequireWildcard(P(45957));var $=_interopRequireWildcard(P(47289));var L=_interopRequireWildcard(P(31188));var q=_interopRequireDefault(P(39622));var K=P(62755);function _interopRequireDefault(v){return v&&v.__esModule?v:{default:v}}function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}function _toConsumableArray(v){return _arrayWithoutHoles(v)||_iterableToArray(v)||_unsupportedIterableToArray(v)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(v,I){if(!v)return;if(typeof v==="string")return _arrayLikeToArray(v,I);var P=Object.prototype.toString.call(v).slice(8,-1);if(P==="Object"&&v.constructor)P=v.constructor.name;if(P==="Map"||P==="Set")return Array.from(v);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return _arrayLikeToArray(v,I)}function _iterableToArray(v){if(typeof Symbol!=="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function _arrayWithoutHoles(v){if(Array.isArray(v))return _arrayLikeToArray(v)}function _arrayLikeToArray(v,I){if(I==null||I>v.length)I=v.length;for(var P=0,R=new Array(I);P<I;P++){R[P]=v[P]}return R}function assertNotIdentifierNode(v){if(v.type==="Identifier"){throw new Error("Unsupported node Identifier")}}function encodeVersion(v){var I=q["default"].moduleVersion;I[0]=v;return I}function encodeHeader(){return q["default"].magicModuleHeader}function encodeU32(v){var I=new Uint8Array(R.encodeU32(v));var P=_toConsumableArray(I);return P}function encodeI32(v){var I=new Uint8Array(R.encodeI32(v));var P=_toConsumableArray(I);return P}function encodeI64(v){var I=new Uint8Array(R.encodeI64(v));var P=_toConsumableArray(I);return P}function encodeVec(v){var I=encodeU32(v.length);return[].concat(_toConsumableArray(I),_toConsumableArray(v))}function encodeValtype(v){var I=q["default"].valtypesByString[v];if(typeof I==="undefined"){throw new Error("Unknown valtype: "+v)}return parseInt(I,10)}function encodeMutability(v){var I=q["default"].globalTypesByString[v];if(typeof I==="undefined"){throw new Error("Unknown mutability: "+v)}return parseInt(I,10)}function encodeUTF8Vec(v){return encodeVec(L.encode(v))}function encodeLimits(v){var I=[];if(typeof v.max==="number"){I.push(1);I.push.apply(I,_toConsumableArray(encodeU32(v.min)));I.push.apply(I,_toConsumableArray(encodeU32(v.max)))}else{I.push(0);I.push.apply(I,_toConsumableArray(encodeU32(v.min)))}return I}function encodeModuleImport(v){var I=[];I.push.apply(I,_toConsumableArray(encodeUTF8Vec(v.module)));I.push.apply(I,_toConsumableArray(encodeUTF8Vec(v.name)));switch(v.descr.type){case"GlobalType":{I.push(3);I.push(encodeValtype(v.descr.valtype));I.push(encodeMutability(v.descr.mutability));break}case"Memory":{I.push(2);I.push.apply(I,_toConsumableArray(encodeLimits(v.descr.limits)));break}case"Table":{I.push(1);I.push(112);I.push.apply(I,_toConsumableArray(encodeLimits(v.descr.limits)));break}case"FuncImportDescr":{I.push(0);assertNotIdentifierNode(v.descr.id);I.push.apply(I,_toConsumableArray(encodeU32(v.descr.id.value)));break}default:throw new Error("Unsupport operation: encode module import of type: "+v.descr.type)}return I}function encodeSectionMetadata(v){var I=[];var P=q["default"].sections[v.section];if(typeof P==="undefined"){throw new Error("Unknown section: "+v.section)}if(v.section==="start"){throw new Error("Unsupported section encoding of type start")}I.push(P);I.push.apply(I,_toConsumableArray(encodeU32(v.size.value)));I.push.apply(I,_toConsumableArray(encodeU32(v.vectorOfSize.value)));return I}function encodeCallInstruction(v){var I=[];assertNotIdentifierNode(v.index);I.push(16);I.push.apply(I,_toConsumableArray(encodeU32(v.index.value)));return I}function encodeCallIndirectInstruction(v){var I=[];assertNotIdentifierNode(v.index);I.push(17);I.push.apply(I,_toConsumableArray(encodeU32(v.index.value)));I.push(0);return I}function encodeModuleExport(v){var I=[];assertNotIdentifierNode(v.descr.id);var P=q["default"].exportTypesByName[v.descr.exportType];if(typeof P==="undefined"){throw new Error("Unknown export of type: "+v.descr.exportType)}var R=parseInt(P,10);I.push.apply(I,_toConsumableArray(encodeUTF8Vec(v.name)));I.push(R);I.push.apply(I,_toConsumableArray(encodeU32(v.descr.id.value)));return I}function encodeTypeInstruction(v){var I=[96];var P=v.functype.params.map((function(v){return v.valtype})).map(encodeValtype);var R=v.functype.results.map(encodeValtype);I.push.apply(I,_toConsumableArray(encodeVec(P)));I.push.apply(I,_toConsumableArray(encodeVec(R)));return I}function encodeInstr(v){var I=[];var P=v.id;if(typeof v.object==="string"){P="".concat(v.object,".").concat(String(v.id))}var R=q["default"].symbolsByName[P];if(typeof R==="undefined"){throw new Error("encodeInstr: unknown instruction "+JSON.stringify(P))}var L=parseInt(R,10);I.push(L);if(v.args){v.args.forEach((function(P){var R=encodeU32;if(v.object==="i32"){R=encodeI32}if(v.object==="i64"){R=encodeI64}if(v.object==="f32"){R=$.encodeF32}if(v.object==="f64"){R=$.encodeF64}if(P.type==="NumberLiteral"||P.type==="FloatLiteral"||P.type==="LongNumberLiteral"){I.push.apply(I,_toConsumableArray(R(P.value)))}else{throw new Error("Unsupported instruction argument encoding "+JSON.stringify(P.type))}}))}return I}function encodeExpr(v){var I=[];v.forEach((function(v){var P=(0,K.encodeNode)(v);I.push.apply(I,_toConsumableArray(P))}));return I}function encodeStringLiteral(v){return encodeUTF8Vec(v.value)}function encodeGlobal(v){var I=[];var P=v.globalType,R=P.valtype,$=P.mutability;I.push(encodeValtype(R));I.push(encodeMutability($));I.push.apply(I,_toConsumableArray(encodeExpr(v.init)));return I}function encodeFuncBody(v){var I=[];I.push(-1);var P=encodeVec([]);I.push.apply(I,_toConsumableArray(P));var R=encodeExpr(v.body);I[0]=R.length+P.length;I.push.apply(I,_toConsumableArray(R));return I}function encodeIndexInFuncSection(v){assertNotIdentifierNode(v.index);return encodeU32(v.index.value)}function encodeElem(v){var I=[];assertNotIdentifierNode(v.table);I.push.apply(I,_toConsumableArray(encodeU32(v.table.value)));I.push.apply(I,_toConsumableArray(encodeExpr(v.offset)));var P=v.funcs.reduce((function(v,I){return[].concat(_toConsumableArray(v),_toConsumableArray(encodeU32(I.value)))}),[]);I.push.apply(I,_toConsumableArray(encodeVec(P)));return I}},62755:function(v,I,P){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I.encodeNode=encodeNode;I.encodeU32=void 0;var R=_interopRequireWildcard(P(59072));function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}function encodeNode(v){switch(v.type){case"ModuleImport":return R.encodeModuleImport(v);case"SectionMetadata":return R.encodeSectionMetadata(v);case"CallInstruction":return R.encodeCallInstruction(v);case"CallIndirectInstruction":return R.encodeCallIndirectInstruction(v);case"TypeInstruction":return R.encodeTypeInstruction(v);case"Instr":return R.encodeInstr(v);case"ModuleExport":return R.encodeModuleExport(v);case"Global":return R.encodeGlobal(v);case"Func":return R.encodeFuncBody(v);case"IndexInFuncSection":return R.encodeIndexInFuncSection(v);case"StringLiteral":return R.encodeStringLiteral(v);case"Elem":return R.encodeElem(v);default:throw new Error("Unsupported encoding for node of type: "+JSON.stringify(v.type))}}var $=R.encodeU32;I.encodeU32=$},94029:function(v,I,P){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I.shrinkPaddedLEB128=shrinkPaddedLEB128;var R=P(12183);var $=P(98710);function _classCallCheck(v,I){if(!(v instanceof I)){throw new TypeError("Cannot call a class as a function")}}function _inherits(v,I){if(typeof I!=="function"&&I!==null){throw new TypeError("Super expression must either be null or a function")}v.prototype=Object.create(I&&I.prototype,{constructor:{value:v,writable:true,configurable:true}});if(I)_setPrototypeOf(v,I)}function _createSuper(v){var I=_isNativeReflectConstruct();return function _createSuperInternal(){var P=_getPrototypeOf(v),R;if(I){var $=_getPrototypeOf(this).constructor;R=Reflect.construct(P,arguments,$)}else{R=P.apply(this,arguments)}return _possibleConstructorReturn(this,R)}}function _possibleConstructorReturn(v,I){if(I&&(_typeof(I)==="object"||typeof I==="function")){return I}else if(I!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized(v)}function _assertThisInitialized(v){if(v===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return v}function _wrapNativeSuper(v){var I=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(v){if(v===null||!_isNativeFunction(v))return v;if(typeof v!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof I!=="undefined"){if(I.has(v))return I.get(v);I.set(v,Wrapper)}function Wrapper(){return _construct(v,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(v.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,v)};return _wrapNativeSuper(v)}function _construct(v,I,P){if(_isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function _construct(v,I,P){var R=[null];R.push.apply(R,I);var $=Function.bind.apply(v,R);var L=new $;if(P)_setPrototypeOf(L,P.prototype);return L}}return _construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(v){return false}}function _isNativeFunction(v){return Function.toString.call(v).indexOf("[native code]")!==-1}function _setPrototypeOf(v,I){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(v,I){v.__proto__=I;return v};return _setPrototypeOf(v,I)}function _getPrototypeOf(v){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(v){return v.__proto__||Object.getPrototypeOf(v)};return _getPrototypeOf(v)}var L=function(v){_inherits(OptimizerError,v);var I=_createSuper(OptimizerError);function OptimizerError(v,P){var R;_classCallCheck(this,OptimizerError);R=I.call(this,"Error while optimizing: "+v+": "+P.message);R.stack=P.stack;return R}return OptimizerError}(_wrapNativeSuper(Error));var q={ignoreCodeSection:true,ignoreDataSection:true};function shrinkPaddedLEB128(v){try{var I=(0,R.decode)(v.buffer,q);return(0,$.shrinkPaddedLEB128)(I,v)}catch(v){throw new L("shrinkPaddedLEB128",v)}}},98710:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.shrinkPaddedLEB128=shrinkPaddedLEB128;var R=P(65008);var $=P(59072);var L=P(66042);function shiftFollowingSections(v,I,P){var $=I.section;var L=false;(0,R.traverse)(v,{SectionMetadata:function SectionMetadata(I){if(I.node.section===$){L=true;return}if(L===true){(0,R.shiftSection)(v,I.node,P)}}})}function shrinkPaddedLEB128(v,I){(0,R.traverse)(v,{SectionMetadata:function SectionMetadata(P){var R=P.node;{var q=(0,$.encodeU32)(R.size.value);var K=q.length;var ae=R.size.loc.start.column;var ge=R.size.loc.end.column;var be=ge-ae;if(K!==be){var xe=be-K;I=(0,L.overrideBytesInBuffer)(I,ae,ge,q);shiftFollowingSections(v,R,-xe)}}}});return I}},76112:function(v,I,P){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I.decode=decode;var R=P(72254);var $=_interopRequireWildcard(P(47289));var L=_interopRequireWildcard(P(31188));var q=_interopRequireWildcard(P(65008));var K=P(45957);var ae=_interopRequireDefault(P(39622));function _interopRequireDefault(v){return v&&v.__esModule?v:{default:v}}function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}function _toConsumableArray(v){return _arrayWithoutHoles(v)||_iterableToArray(v)||_unsupportedIterableToArray(v)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(v,I){if(!v)return;if(typeof v==="string")return _arrayLikeToArray(v,I);var P=Object.prototype.toString.call(v).slice(8,-1);if(P==="Object"&&v.constructor)P=v.constructor.name;if(P==="Map"||P==="Set")return Array.from(v);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return _arrayLikeToArray(v,I)}function _iterableToArray(v){if(typeof Symbol!=="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function _arrayWithoutHoles(v){if(Array.isArray(v))return _arrayLikeToArray(v)}function _arrayLikeToArray(v,I){if(I==null||I>v.length)I=v.length;for(var P=0,R=new Array(I);P<I;P++){R[P]=v[P]}return R}function toHex(v){return"0x"+Number(v).toString(16)}function byteArrayEq(v,I){if(v.length!==I.length){return false}for(var P=0;P<v.length;P++){if(v[P]!==I[P]){return false}}return true}function decode(v,I){var P=new Uint8Array(v);var ge=q.getUniqueNameGenerator();var be=0;function getPosition(){return{line:-1,column:be}}function dump(v,P){if(I.dump===false)return;var R="\t\t\t\t\t\t\t\t\t\t";var $="";if(v.length<5){$=v.map(toHex).join(" ")}else{$="..."}console.log(toHex(be)+":\t",$,R,";",P)}function dumpSep(v){if(I.dump===false)return;console.log(";",v)}var xe={elementsInFuncSection:[],elementsInExportSection:[],elementsInCodeSection:[],memoriesInModule:[],typesInModule:[],functionsInModule:[],tablesInModule:[],globalsInModule:[]};function isEOF(){return be>=P.length}function eatBytes(v){be=be+v}function readBytesAtOffset(v,I){var R=[];for(var $=0;$<I;$++){R.push(P[v+$])}return R}function readBytes(v){return readBytesAtOffset(be,v)}function readF64(){var v=readBytes($.NUMBER_OF_BYTE_F64);var I=$.decodeF64(v);if(Math.sign(I)*I===Infinity){return{value:Math.sign(I),inf:true,nextIndex:$.NUMBER_OF_BYTE_F64}}if(isNaN(I)){var P=v[v.length-1]>>7?-1:1;var R=0;for(var L=0;L<v.length-2;++L){R+=v[L]*Math.pow(256,L)}R+=v[v.length-2]%16*Math.pow(256,v.length-2);return{value:P*R,nan:true,nextIndex:$.NUMBER_OF_BYTE_F64}}return{value:I,nextIndex:$.NUMBER_OF_BYTE_F64}}function readF32(){var v=readBytes($.NUMBER_OF_BYTE_F32);var I=$.decodeF32(v);if(Math.sign(I)*I===Infinity){return{value:Math.sign(I),inf:true,nextIndex:$.NUMBER_OF_BYTE_F32}}if(isNaN(I)){var P=v[v.length-1]>>7?-1:1;var R=0;for(var L=0;L<v.length-2;++L){R+=v[L]*Math.pow(256,L)}R+=v[v.length-2]%128*Math.pow(256,v.length-2);return{value:P*R,nan:true,nextIndex:$.NUMBER_OF_BYTE_F32}}return{value:I,nextIndex:$.NUMBER_OF_BYTE_F32}}function readUTF8String(){var v=readU32();var I=v.value;dump([I],"string length");var P=readBytesAtOffset(be+v.nextIndex,I);var R=L.decode(P);return{value:R,nextIndex:I+v.nextIndex}}function readU32(){var v=readBytes(K.MAX_NUMBER_OF_BYTE_U32);var I=new Uint8Array(v);return(0,K.decodeUInt32)(I)}function readVaruint32(){var v=readBytes(4);var I=new Uint8Array(v);return(0,K.decodeUInt32)(I)}function readVaruint7(){var v=readBytes(1);var I=new Uint8Array(v);return(0,K.decodeUInt32)(I)}function read32(){var v=readBytes(K.MAX_NUMBER_OF_BYTE_U32);var I=new Uint8Array(v);return(0,K.decodeInt32)(I)}function read64(){var v=readBytes(K.MAX_NUMBER_OF_BYTE_U64);var I=new Uint8Array(v);return(0,K.decodeInt64)(I)}function readU64(){var v=readBytes(K.MAX_NUMBER_OF_BYTE_U64);var I=new Uint8Array(v);return(0,K.decodeUInt64)(I)}function readByte(){return readBytes(1)[0]}function parseModuleHeader(){if(isEOF()===true||be+4>P.length){throw new Error("unexpected end")}var v=readBytes(4);if(byteArrayEq(ae["default"].magicModuleHeader,v)===false){throw new R.CompileError("magic header not detected")}dump(v,"wasm magic header");eatBytes(4)}function parseVersion(){if(isEOF()===true||be+4>P.length){throw new Error("unexpected end")}var v=readBytes(4);if(byteArrayEq(ae["default"].moduleVersion,v)===false){throw new R.CompileError("unknown binary version")}dump(v,"wasm version");eatBytes(4)}function parseVec(v){var I=readU32();var P=I.value;eatBytes(I.nextIndex);dump([P],"number");if(P===0){return[]}var $=[];for(var L=0;L<P;L++){var q=readByte();eatBytes(1);var K=v(q);dump([q],K);if(typeof K==="undefined"){throw new R.CompileError("Internal failure: parseVec could not cast the value")}$.push(K)}return $}function parseTypeSection(v){var I=[];dump([v],"num types");for(var P=0;P<v;P++){var R=getPosition();dumpSep("type "+P);var $=readByte();eatBytes(1);if($==ae["default"].types.func){dump([$],"func");var L=parseVec((function(v){var I=ae["default"].valtypes[v];if(I===undefined){throw new Error("unexpected value type ".concat(v))}return I}));var K=L.map((function(v){return q.funcParam(v)}));var ge=parseVec((function(v){return ae["default"].valtypes[v]}));I.push(function(){var v=getPosition();return q.withLoc(q.typeInstruction(undefined,q.signature(K,ge)),v,R)}());xe.typesInModule.push({params:K,result:ge})}else{throw new Error("Unsupported type: "+toHex($))}}return I}function parseImportSection(v){var I=[];for(var P=0;P<v;P++){dumpSep("import header "+P);var $=getPosition();var L=readUTF8String();eatBytes(L.nextIndex);dump([],"module name (".concat(L.value,")"));var K=readUTF8String();eatBytes(K.nextIndex);dump([],"name (".concat(K.value,")"));var be=readByte();eatBytes(1);var ve=ae["default"].importTypes[be];dump([be],"import kind");if(typeof ve==="undefined"){throw new R.CompileError("Unknown import description type: "+toHex(be))}var Ce=void 0;if(ve==="func"){var Ne=readU32();var He=Ne.value;eatBytes(Ne.nextIndex);dump([He],"type index");var Qe=xe.typesInModule[He];if(typeof Qe==="undefined"){throw new R.CompileError("function signature not found (".concat(He,")"))}var Je=ge("func");Ce=q.funcImportDescr(Je,q.signature(Qe.params,Qe.result));xe.functionsInModule.push({id:q.identifier(K.value),signature:Qe,isExternal:true})}else if(ve==="global"){Ce=parseGlobalType();var Ve=q.global(Ce,[]);xe.globalsInModule.push(Ve)}else if(ve==="table"){Ce=parseTableType(P)}else if(ve==="memory"){var Ke=parseMemoryType(0);xe.memoriesInModule.push(Ke);Ce=Ke}else{throw new R.CompileError("Unsupported import of type: "+ve)}I.push(function(){var v=getPosition();return q.withLoc(q.moduleImport(L.value,K.value,Ce),v,$)}())}return I}function parseFuncSection(v){dump([v],"num funcs");for(var I=0;I<v;I++){var P=readU32();var $=P.value;eatBytes(P.nextIndex);dump([$],"type index");var L=xe.typesInModule[$];if(typeof L==="undefined"){throw new R.CompileError("function signature not found (".concat($,")"))}var K=q.withRaw(q.identifier(ge("func")),"");xe.functionsInModule.push({id:K,signature:L,isExternal:false})}}function parseExportSection(v){dump([v],"num exports");for(var I=0;I<v;I++){var P=getPosition();var $=readUTF8String();eatBytes($.nextIndex);dump([],"export name (".concat($.value,")"));var L=readByte();eatBytes(1);dump([L],"export kind");var K=readU32();var ge=K.value;eatBytes(K.nextIndex);dump([ge],"export index");var be=void 0,ve=void 0;if(ae["default"].exportTypes[L]==="Func"){var Ce=xe.functionsInModule[ge];if(typeof Ce==="undefined"){throw new R.CompileError("unknown function (".concat(ge,")"))}be=q.numberLiteralFromRaw(ge,String(ge));ve=Ce.signature}else if(ae["default"].exportTypes[L]==="Table"){var Ne=xe.tablesInModule[ge];if(typeof Ne==="undefined"){throw new R.CompileError("unknown table ".concat(ge))}be=q.numberLiteralFromRaw(ge,String(ge));ve=null}else if(ae["default"].exportTypes[L]==="Memory"){var He=xe.memoriesInModule[ge];if(typeof He==="undefined"){throw new R.CompileError("unknown memory ".concat(ge))}be=q.numberLiteralFromRaw(ge,String(ge));ve=null}else if(ae["default"].exportTypes[L]==="Global"){var Qe=xe.globalsInModule[ge];if(typeof Qe==="undefined"){throw new R.CompileError("unknown global ".concat(ge))}be=q.numberLiteralFromRaw(ge,String(ge));ve=null}else{console.warn("Unsupported export type: "+toHex(L));return}var Je=getPosition();xe.elementsInExportSection.push({name:$.value,type:ae["default"].exportTypes[L],signature:ve,id:be,index:ge,endLoc:Je,startLoc:P})}}function parseCodeSection(v){dump([v],"number functions");for(var I=0;I<v;I++){var P=getPosition();dumpSep("function body "+I);var $=readU32();eatBytes($.nextIndex);dump([$.value],"function body size");var L=[];var K=readU32();var ge=K.value;eatBytes(K.nextIndex);dump([ge],"num locals");var be=[];for(var ve=0;ve<ge;ve++){var Ce=getPosition();var Ne=readU32();var He=Ne.value;eatBytes(Ne.nextIndex);dump([He],"num local");var Qe=readByte();eatBytes(1);var Je=ae["default"].valtypes[Qe];var Ve=[];for(var Ke=0;Ke<He;Ke++){Ve.push(q.valtypeLiteral(Je))}var Ye=function(){var v=getPosition();return q.withLoc(q.instruction("local",Ve),v,Ce)}();be.push(Ye);dump([Qe],Je);if(typeof Je==="undefined"){throw new R.CompileError("Unexpected valtype: "+toHex(Qe))}}L.push.apply(L,be);parseInstructionBlock(L);var Xe=getPosition();xe.elementsInCodeSection.push({code:L,locals:be,endLoc:Xe,startLoc:P,bodySize:$.value})}}function parseInstructionBlock(v){while(true){var I=getPosition();var P=false;var $=readByte();eatBytes(1);if($===254){$=65024+readByte();eatBytes(1)}if($===252){$=64512+readByte();eatBytes(1)}var L=ae["default"].symbolsByByte[$];if(typeof L==="undefined"){throw new R.CompileError("Unexpected instruction: "+toHex($))}if(L==="illegal"){throw new Error("tried to decode an illegal bytecode: ".concat(toHex($)))}if(typeof L.object==="string"){dump([$],"".concat(L.object,".").concat(L.name))}else{dump([$],L.name)}if(L.name==="end"){var K=function(){var v=getPosition();return q.withLoc(q.instruction(L.name),v,I)}();v.push(K);break}var be=[];var ve=void 0;if(L.name==="loop"){var Ce=getPosition();var Ne=parseBlockType();var He=[];parseInstructionBlock(He);var Qe=q.withRaw(q.identifier(ge("loop")),"");var Je=function(){var v=getPosition();return q.withLoc(q.loopInstruction(Qe,Ne,He),v,Ce)}();v.push(Je);P=true}else if(L.name==="if"){var Ve=getPosition();var Ke=parseBlockType();var Ye=q.withRaw(q.identifier(ge("if")),"");var Xe=[];parseInstructionBlock(Xe);var Ze=0;for(Ze=0;Ze<Xe.length;++Ze){var et=Xe[Ze];if(et.type==="Instr"&&et.id==="else"){break}}var tt=Xe.slice(0,Ze);var nt=Xe.slice(Ze+1);var st=[];var rt=function(){var v=getPosition();return q.withLoc(q.ifInstruction(Ye,st,Ke,tt,nt),v,Ve)}();v.push(rt);P=true}else if(L.name==="block"){var ot=getPosition();var it=parseBlockType();var at=[];parseInstructionBlock(at);var ct=q.withRaw(q.identifier(ge("block")),"");var lt=function(){var v=getPosition();return q.withLoc(q.blockInstruction(ct,at,it),v,ot)}();v.push(lt);P=true}else if(L.name==="call"){var ut=readU32();var pt=ut.value;eatBytes(ut.nextIndex);dump([pt],"index");var dt=function(){var v=getPosition();return q.withLoc(q.callInstruction(q.indexLiteral(pt)),v,I)}();v.push(dt);P=true}else if(L.name==="call_indirect"){var ft=getPosition();var ht=readU32();var mt=ht.value;eatBytes(ht.nextIndex);dump([mt],"type index");var gt=xe.typesInModule[mt];if(typeof gt==="undefined"){throw new R.CompileError("call_indirect signature not found (".concat(mt,")"))}var yt=q.callIndirectInstruction(q.signature(gt.params,gt.result),[]);var bt=readU32();var xt=bt.value;eatBytes(bt.nextIndex);if(xt!==0){throw new R.CompileError("zero flag expected")}v.push(function(){var v=getPosition();return q.withLoc(yt,v,ft)}());P=true}else if(L.name==="br_table"){var kt=readU32();var vt=kt.value;eatBytes(kt.nextIndex);dump([vt],"num indices");for(var wt=0;wt<=vt;wt++){var Ct=readU32();var Et=Ct.value;eatBytes(Ct.nextIndex);dump([Et],"index");be.push(q.numberLiteralFromRaw(Ct.value.toString(),"u32"))}}else if($>=40&&$<=64){if(L.name==="grow_memory"||L.name==="current_memory"){var At=readU32();var St=At.value;eatBytes(At.nextIndex);if(St!==0){throw new Error("zero flag expected")}dump([St],"index")}else{var _t=readU32();var It=_t.value;eatBytes(_t.nextIndex);dump([It],"align");var Pt=readU32();var Mt=Pt.value;eatBytes(Pt.nextIndex);dump([Mt],"offset");if(ve===undefined)ve={};ve.offset=q.numberLiteralFromRaw(Mt)}}else if($>=65&&$<=68){if(L.object==="i32"){var Ot=read32();var Dt=Ot.value;eatBytes(Ot.nextIndex);dump([Dt],"i32 value");be.push(q.numberLiteralFromRaw(Dt))}if(L.object==="u32"){var Rt=readU32();var Tt=Rt.value;eatBytes(Rt.nextIndex);dump([Tt],"u32 value");be.push(q.numberLiteralFromRaw(Tt))}if(L.object==="i64"){var $t=read64();var Ft=$t.value;eatBytes($t.nextIndex);dump([Number(Ft.toString())],"i64 value");var jt=Ft.high,Nt=Ft.low;var Lt={type:"LongNumberLiteral",value:{high:jt,low:Nt}};be.push(Lt)}if(L.object==="u64"){var Bt=readU64();var qt=Bt.value;eatBytes(Bt.nextIndex);dump([Number(qt.toString())],"u64 value");var zt=qt.high,Ut=qt.low;var Gt={type:"LongNumberLiteral",value:{high:zt,low:Ut}};be.push(Gt)}if(L.object==="f32"){var Ht=readF32();var Wt=Ht.value;eatBytes(Ht.nextIndex);dump([Wt],"f32 value");be.push(q.floatLiteral(Wt,Ht.nan,Ht.inf,String(Wt)))}if(L.object==="f64"){var Qt=readF64();var Jt=Qt.value;eatBytes(Qt.nextIndex);dump([Jt],"f64 value");be.push(q.floatLiteral(Jt,Qt.nan,Qt.inf,String(Jt)))}}else if($>=65024&&$<=65279){var Vt=readU32();var Kt=Vt.value;eatBytes(Vt.nextIndex);dump([Kt],"align");var Yt=readU32();var Xt=Yt.value;eatBytes(Yt.nextIndex);dump([Xt],"offset")}else{for(var Zt=0;Zt<L.numberOfArgs;Zt++){var en=readU32();eatBytes(en.nextIndex);dump([en.value],"argument "+Zt);be.push(q.numberLiteralFromRaw(en.value))}}if(P===false){if(typeof L.object==="string"){var tn=function(){var v=getPosition();return q.withLoc(q.objectInstruction(L.name,L.object,be,ve),v,I)}();v.push(tn)}else{var nn=function(){var v=getPosition();return q.withLoc(q.instruction(L.name,be,ve),v,I)}();v.push(nn)}}}}function parseLimits(){var v=readByte();eatBytes(1);var I=v===3;dump([v],"limit type"+(I?" (shared)":""));var P,R;if(v===1||v===3){var $=readU32();P=parseInt($.value);eatBytes($.nextIndex);dump([P],"min");var L=readU32();R=parseInt(L.value);eatBytes(L.nextIndex);dump([R],"max")}if(v===0){var K=readU32();P=parseInt(K.value);eatBytes(K.nextIndex);dump([P],"min")}return q.limit(P,R,I)}function parseTableType(v){var I=q.withRaw(q.identifier(ge("table")),String(v));var P=readByte();eatBytes(1);dump([P],"element type");var $=ae["default"].tableTypes[P];if(typeof $==="undefined"){throw new R.CompileError("Unknown element type in table: "+toHex(P))}var L=parseLimits();return q.table($,L,I)}function parseGlobalType(){var v=readByte();eatBytes(1);var I=ae["default"].valtypes[v];dump([v],I);if(typeof I==="undefined"){throw new R.CompileError("Unknown valtype: "+toHex(v))}var P=readByte();eatBytes(1);var $=ae["default"].globalTypes[P];dump([P],"global type (".concat($,")"));if(typeof $==="undefined"){throw new R.CompileError("Invalid mutability: "+toHex(P))}return q.globalType(I,$)}function parseNameSectionFunctions(){var v=[];var I=readU32();var P=I.value;eatBytes(I.nextIndex);for(var R=0;R<P;R++){var $=readU32();var L=$.value;eatBytes($.nextIndex);var K=readUTF8String();eatBytes(K.nextIndex);v.push(q.functionNameMetadata(K.value,L))}return v}function parseNameSectionLocals(){var v=[];var I=readU32();var P=I.value;eatBytes(I.nextIndex);for(var R=0;R<P;R++){var $=readU32();var L=$.value;eatBytes($.nextIndex);var K=readU32();var ae=K.value;eatBytes(K.nextIndex);for(var ge=0;ge<ae;ge++){var be=readU32();var xe=be.value;eatBytes(be.nextIndex);var ve=readUTF8String();eatBytes(ve.nextIndex);v.push(q.localNameMetadata(ve.value,xe,L))}}return v}function parseNameSection(v){var I=[];var P=be;while(be-P<v){var R=readVaruint7();eatBytes(R.nextIndex);var $=readVaruint32();eatBytes($.nextIndex);switch(R.value){case 1:{I.push.apply(I,_toConsumableArray(parseNameSectionFunctions()));break}case 2:{I.push.apply(I,_toConsumableArray(parseNameSectionLocals()));break}default:{eatBytes($.value)}}}return I}function parseProducersSection(){var v=q.producersSectionMetadata([]);var I=readVaruint32();eatBytes(I.nextIndex);dump([I.value],"num of producers");var P={language:[],"processed-by":[],sdk:[]};for(var R=0;R<I.value;R++){var $=readUTF8String();eatBytes($.nextIndex);var L=readVaruint32();eatBytes(L.nextIndex);for(var K=0;K<L.value;K++){var ae=readUTF8String();eatBytes(ae.nextIndex);var ge=readUTF8String();eatBytes(ge.nextIndex);P[$.value].push(q.producerMetadataVersionedName(ae.value,ge.value))}v.producers.push(P[$.value])}return v}function parseGlobalSection(v){var I=[];dump([v],"num globals");for(var P=0;P<v;P++){var R=getPosition();var $=parseGlobalType();var L=[];parseInstructionBlock(L);var K=function(){var v=getPosition();return q.withLoc(q.global($,L),v,R)}();I.push(K);xe.globalsInModule.push(K)}return I}function parseElemSection(v){var I=[];dump([v],"num elements");for(var P=0;P<v;P++){var R=getPosition();var $=readU32();var L=$.value;eatBytes($.nextIndex);dump([L],"bitfield");if(L===0){var K=[];parseInstructionBlock(K);var ae=readU32();var ge=ae.value;eatBytes(ae.nextIndex);dump([ge],"num indices");var be=[];for(var xe=0;xe<ge;xe++){var ve=readU32();var Ce=ve.value;eatBytes(ve.nextIndex);dump([Ce],"index");be.push(q.indexLiteral(Ce))}var Ne=function(){var v=getPosition();return q.withLoc(q.elem(q.indexLiteral(L),K,be),v,R)}();I.push(Ne)}else if(L===1){var He=readByte();eatBytes(1);if(He!==0){throw new Error("unexpected Elem kind: ".concat(toHex(He)))}var Qe=readU32();var Je=Qe.value;eatBytes(Qe.nextIndex);dump([Je],"num indices");var Ve=[];for(var Ke=0;Ke<Je;Ke++){var Ye=readU32();var Xe=Ye.value;eatBytes(Ye.nextIndex);dump([Xe],"index");Ve.push(q.indexLiteral(Xe))}}else if(L===2){var Ze=readU32();var et=Ze.value;eatBytes(Ze.nextIndex);dump([et],"tableidx");var tt=[];parseInstructionBlock(tt);var nt=readByte();eatBytes(1);if(nt!==0){throw new Error("unexpected Elem kind: ".concat(toHex(nt)))}var st=readU32();var rt=st.value;eatBytes(st.nextIndex);dump([rt],"num indices");var ot=[];for(var it=0;it<rt;it++){var at=readU32();var ct=at.value;eatBytes(at.nextIndex);dump([ct],"index");ot.push(q.indexLiteral(ct))}var lt=function(){var v=getPosition();return q.withLoc(q.elem(q.indexLiteral(L),tt,ot),v,R)}();I.push(lt)}else if(L===3){var ut=readByte();eatBytes(1);if(ut!==0){throw new Error("unexpected Elem kind: ".concat(toHex(ut)))}var pt=readU32();var dt=pt.value;eatBytes(pt.nextIndex);dump([dt],"count");for(var ft=0;ft<dt;ft++){var ht=readU32();var mt=ht.value;eatBytes(ht.nextIndex);dump([mt],"index")}}else if(L===4){var gt=[];parseInstructionBlock(gt);var yt=readU32();var bt=yt.value;eatBytes(yt.nextIndex);dump([bt],"count");for(var xt=0;xt<bt;xt++){var kt=[];parseInstructionBlock(kt)}}else if(L===5){var vt=readByte();eatBytes(1);dump([vt],"reftype");var wt=readU32();var Ct=wt.value;eatBytes(wt.nextIndex);dump([Ct],"count");for(var Et=0;Et<Ct;Et++){var At=[];parseInstructionBlock(At)}}else if(L===7){var St=readByte();eatBytes(1);dump([St],"reftype");var _t=readU32();var It=_t.value;eatBytes(_t.nextIndex);dump([It],"count");for(var Pt=0;Pt<It;Pt++){var Mt=[];parseInstructionBlock(Mt)}}else{throw new Error("unexpected Elem with bitfield ".concat(toHex(L)))}}return I}function parseMemoryType(v){var I=parseLimits();return q.memory(I,q.indexLiteral(v))}function parseTableSection(v){var I=[];dump([v],"num elements");for(var P=0;P<v;P++){var R=parseTableType(P);xe.tablesInModule.push(R);I.push(R)}return I}function parseMemorySection(v){var I=[];dump([v],"num elements");for(var P=0;P<v;P++){var R=parseMemoryType(P);xe.memoriesInModule.push(R);I.push(R)}return I}function parseStartSection(){var v=getPosition();var I=readU32();var P=I.value;eatBytes(I.nextIndex);dump([P],"index");return function(){var I=getPosition();return q.withLoc(q.start(q.indexLiteral(P)),I,v)}()}function parseDataSection(v){var I=[];dump([v],"num elements");for(var P=0;P<v;P++){var $=readU32();var L=$.value;eatBytes($.nextIndex);dump([L],"memory index");var K=[];parseInstructionBlock(K);var ae=K.filter((function(v){return v.id!=="end"})).length!==1;if(ae){throw new R.CompileError("data section offset must be a single instruction")}var ge=parseVec((function(v){return v}));dump([],"init");I.push(q.data(q.memIndexLiteral(L),K[0],q.byteArray(ge)))}return I}function parseSection(v){var P=readByte();eatBytes(1);if(P>=v||v===ae["default"].sections.custom){v=P+1}else{if(P!==ae["default"].sections.custom)throw new R.CompileError("Unexpected section: "+toHex(P))}var $=v;var L=be;var K=getPosition();var ge=readU32();var xe=ge.value;eatBytes(ge.nextIndex);var ve=function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(xe),v,K)}();switch(P){case ae["default"].sections.type:{dumpSep("section Type");dump([P],"section code");dump([xe],"section size");var Ce=getPosition();var Ne=readU32();var He=Ne.value;eatBytes(Ne.nextIndex);var Qe=q.sectionMetadata("type",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(He),v,Ce)}());var Je=parseTypeSection(He);return{nodes:Je,metadata:Qe,nextSectionIndex:$}}case ae["default"].sections.table:{dumpSep("section Table");dump([P],"section code");dump([xe],"section size");var Ve=getPosition();var Ke=readU32();var Ye=Ke.value;eatBytes(Ke.nextIndex);dump([Ye],"num tables");var Xe=q.sectionMetadata("table",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(Ye),v,Ve)}());var Ze=parseTableSection(Ye);return{nodes:Ze,metadata:Xe,nextSectionIndex:$}}case ae["default"].sections["import"]:{dumpSep("section Import");dump([P],"section code");dump([xe],"section size");var et=getPosition();var tt=readU32();var nt=tt.value;eatBytes(tt.nextIndex);dump([nt],"number of imports");var st=q.sectionMetadata("import",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(nt),v,et)}());var rt=parseImportSection(nt);return{nodes:rt,metadata:st,nextSectionIndex:$}}case ae["default"].sections.func:{dumpSep("section Function");dump([P],"section code");dump([xe],"section size");var ot=getPosition();var it=readU32();var at=it.value;eatBytes(it.nextIndex);var ct=q.sectionMetadata("func",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(at),v,ot)}());parseFuncSection(at);var lt=[];return{nodes:lt,metadata:ct,nextSectionIndex:$}}case ae["default"].sections["export"]:{dumpSep("section Export");dump([P],"section code");dump([xe],"section size");var ut=getPosition();var pt=readU32();var dt=pt.value;eatBytes(pt.nextIndex);var ft=q.sectionMetadata("export",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(dt),v,ut)}());parseExportSection(dt);var ht=[];return{nodes:ht,metadata:ft,nextSectionIndex:$}}case ae["default"].sections.code:{dumpSep("section Code");dump([P],"section code");dump([xe],"section size");var mt=getPosition();var gt=readU32();var yt=gt.value;eatBytes(gt.nextIndex);var bt=q.sectionMetadata("code",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(yt),v,mt)}());if(I.ignoreCodeSection===true){var xt=xe-gt.nextIndex;eatBytes(xt)}else{parseCodeSection(yt)}var kt=[];return{nodes:kt,metadata:bt,nextSectionIndex:$}}case ae["default"].sections.start:{dumpSep("section Start");dump([P],"section code");dump([xe],"section size");var vt=q.sectionMetadata("start",L,ve);var wt=[parseStartSection()];return{nodes:wt,metadata:vt,nextSectionIndex:$}}case ae["default"].sections.element:{dumpSep("section Element");dump([P],"section code");dump([xe],"section size");var Ct=getPosition();var Et=readU32();var At=Et.value;eatBytes(Et.nextIndex);var St=q.sectionMetadata("element",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(At),v,Ct)}());var _t=parseElemSection(At);return{nodes:_t,metadata:St,nextSectionIndex:$}}case ae["default"].sections.global:{dumpSep("section Global");dump([P],"section code");dump([xe],"section size");var It=getPosition();var Pt=readU32();var Mt=Pt.value;eatBytes(Pt.nextIndex);var Ot=q.sectionMetadata("global",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(Mt),v,It)}());var Dt=parseGlobalSection(Mt);return{nodes:Dt,metadata:Ot,nextSectionIndex:$}}case ae["default"].sections.memory:{dumpSep("section Memory");dump([P],"section code");dump([xe],"section size");var Rt=getPosition();var Tt=readU32();var $t=Tt.value;eatBytes(Tt.nextIndex);var Ft=q.sectionMetadata("memory",L,ve,function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw($t),v,Rt)}());var jt=parseMemorySection($t);return{nodes:jt,metadata:Ft,nextSectionIndex:$}}case ae["default"].sections.data:{dumpSep("section Data");dump([P],"section code");dump([xe],"section size");var Nt=q.sectionMetadata("data",L,ve);var Lt=getPosition();var Bt=readU32();var qt=Bt.value;eatBytes(Bt.nextIndex);Nt.vectorOfSize=function(){var v=getPosition();return q.withLoc(q.numberLiteralFromRaw(qt),v,Lt)}();if(I.ignoreDataSection===true){var zt=xe-Bt.nextIndex;eatBytes(zt);dumpSep("ignore data ("+xe+" bytes)");return{nodes:[],metadata:Nt,nextSectionIndex:$}}else{var Ut=parseDataSection(qt);return{nodes:Ut,metadata:Nt,nextSectionIndex:$}}}case ae["default"].sections.custom:{dumpSep("section Custom");dump([P],"section code");dump([xe],"section size");var Gt=[q.sectionMetadata("custom",L,ve)];var Ht=readUTF8String();eatBytes(Ht.nextIndex);dump([],"section name (".concat(Ht.value,")"));var Wt=xe-Ht.nextIndex;if(Ht.value==="name"){var Qt=be;try{Gt.push.apply(Gt,_toConsumableArray(parseNameSection(Wt)))}catch(v){console.warn('Failed to decode custom "name" section @'.concat(be,"; ignoring (").concat(v.message,")."));eatBytes(be-(Qt+Wt))}}else if(Ht.value==="producers"){var Jt=be;try{Gt.push(parseProducersSection())}catch(v){console.warn('Failed to decode custom "producers" section @'.concat(be,"; ignoring (").concat(v.message,")."));eatBytes(be-(Jt+Wt))}}else{eatBytes(Wt);dumpSep("ignore custom "+JSON.stringify(Ht.value)+" section ("+Wt+" bytes)")}return{nodes:[],metadata:Gt,nextSectionIndex:$}}}if(I.errorOnUnknownSection){throw new R.CompileError("Unexpected section: "+toHex(P))}else{dumpSep("section "+toHex(P));dump([P],"section code");dump([xe],"section size");eatBytes(xe);dumpSep("ignoring ("+xe+" bytes)");return{nodes:[],metadata:[],nextSectionIndex:0}}}function parseBlockType(){var v=readByte();var I=ae["default"].blockTypes[v];if(typeof I!=="undefined"){eatBytes(1);dump([v],"blocktype");return I}else{var P=readU32();eatBytes(P.nextIndex);var R=xe.typesInModule[P.value];console.log({signature:R});dump([P.value],"typeidx");return P.value}}parseModuleHeader();parseVersion();var ve=[];var Ce=0;var Ne={sections:[],functionNames:[],localNames:[],producers:[]};while(be<P.length){var He=parseSection(Ce),Qe=He.nodes,Je=He.metadata,Ve=He.nextSectionIndex;ve.push.apply(ve,_toConsumableArray(Qe));var Ke=Array.isArray(Je)?Je:[Je];Ke.forEach((function(v){if(v.type==="FunctionNameMetadata"){Ne.functionNames.push(v)}else if(v.type==="LocalNameMetadata"){Ne.localNames.push(v)}else if(v.type==="ProducersSectionMetadata"){Ne.producers.push(v)}else{Ne.sections.push(v)}}));if(Ve){Ce=Ve}}var Ye=0;xe.functionsInModule.forEach((function(v){var P=v.signature.params;var $=v.signature.result;var L=[];if(v.isExternal===true){return}var K=xe.elementsInCodeSection[Ye];if(I.ignoreCodeSection===false){if(typeof K==="undefined"){throw new R.CompileError("func "+toHex(Ye)+" code not found")}L=K.code}Ye++;var ae=q.func(v.id,q.signature(P,$),L);if(v.isExternal===true){ae.isExternal=v.isExternal}if(I.ignoreCodeSection===false){var ge=K.startLoc,be=K.endLoc,Ce=K.bodySize;ae=q.withLoc(ae,be,ge);ae.metadata={bodySize:Ce}}ve.push(ae)}));xe.elementsInExportSection.forEach((function(v){if(v.id!=null){ve.push(q.withLoc(q.moduleExport(v.name,q.moduleExportDescr(v.type,v.id)),v.endLoc,v.startLoc))}}));dumpSep("end of program");var Xe=q.module(null,ve,q.moduleMetadata(Ne.sections,Ne.functionNames,Ne.localNames,Ne.producers));return q.program([Xe])}},12183:function(v,I,P){"use strict";function _typeof(v){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(v){return typeof v}}else{_typeof=function _typeof(v){return v&&typeof Symbol==="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v}}return _typeof(v)}Object.defineProperty(I,"__esModule",{value:true});I.decode=decode;var R=_interopRequireWildcard(P(76112));var $=_interopRequireWildcard(P(65008));function _getRequireWildcardCache(v){if(typeof WeakMap!=="function")return null;var I=new WeakMap;var P=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(v){return v?P:I})(v)}function _interopRequireWildcard(v,I){if(!I&&v&&v.__esModule){return v}if(v===null||_typeof(v)!=="object"&&typeof v!=="function"){return{default:v}}var P=_getRequireWildcardCache(I);if(P&&P.has(v)){return P.get(v)}var R={};var $=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in v){if(L!=="default"&&Object.prototype.hasOwnProperty.call(v,L)){var q=$?Object.getOwnPropertyDescriptor(v,L):null;if(q&&(q.get||q.set)){Object.defineProperty(R,L,q)}else{R[L]=v[L]}}}R["default"]=v;if(P){P.set(v,R)}return R}var L={dump:false,ignoreCodeSection:false,ignoreDataSection:false,ignoreCustomNameSection:false};function restoreFunctionNames(v){var I=[];$.traverse(v,{FunctionNameMetadata:function FunctionNameMetadata(v){var P=v.node;I.push({name:P.value,index:P.index})}});if(I.length===0){return}$.traverse(v,{Func:function(v){function Func(I){return v.apply(this,arguments)}Func.toString=function(){return v.toString()};return Func}((function(v){var P=v.node;var R=P.name;var $=R.value;var L=Number($.replace("func_",""));var q=I.find((function(v){return v.index===L}));if(q){var K=R.value;R.value=q.name;R.numeric=K;delete R.raw}})),ModuleExport:function(v){function ModuleExport(I){return v.apply(this,arguments)}ModuleExport.toString=function(){return v.toString()};return ModuleExport}((function(v){var P=v.node;if(P.descr.exportType==="Func"){var R=P.descr.id;var L=R.value;var q=I.find((function(v){return v.index===L}));if(q){P.descr.id=$.identifier(q.name)}}})),ModuleImport:function(v){function ModuleImport(I){return v.apply(this,arguments)}ModuleImport.toString=function(){return v.toString()};return ModuleImport}((function(v){var P=v.node;if(P.descr.type==="FuncImportDescr"){var R=P.descr.id;var L=Number(R.replace("func_",""));var q=I.find((function(v){return v.index===L}));if(q){P.descr.id=$.identifier(q.name)}}})),CallInstruction:function(v){function CallInstruction(I){return v.apply(this,arguments)}CallInstruction.toString=function(){return v.toString()};return CallInstruction}((function(v){var P=v.node;var R=P.index.value;var L=I.find((function(v){return v.index===R}));if(L){var q=P.index;P.index=$.identifier(L.name);P.numeric=q;delete P.raw}}))})}function restoreLocalNames(v){var I=[];$.traverse(v,{LocalNameMetadata:function LocalNameMetadata(v){var P=v.node;I.push({name:P.value,localIndex:P.localIndex,functionIndex:P.functionIndex})}});if(I.length===0){return}$.traverse(v,{Func:function(v){function Func(I){return v.apply(this,arguments)}Func.toString=function(){return v.toString()};return Func}((function(v){var P=v.node;var R=P.signature;if(R.type!=="Signature"){return}var $=P.name;var L=$.value;var q=Number(L.replace("func_",""));R.params.forEach((function(v,P){var R=I.find((function(v){return v.localIndex===P&&v.functionIndex===q}));if(R&&R.name!==""){v.id=R.name}}))}))})}function restoreModuleName(v){$.traverse(v,{ModuleNameMetadata:function(v){function ModuleNameMetadata(I){return v.apply(this,arguments)}ModuleNameMetadata.toString=function(){return v.toString()};return ModuleNameMetadata}((function(I){$.traverse(v,{Module:function(v){function Module(I){return v.apply(this,arguments)}Module.toString=function(){return v.toString()};return Module}((function(v){var P=v.node;var R=I.node.value;if(R===""){R=null}P.id=R}))})}))})}function decode(v,I){var P=Object.assign({},L,I);var $=R.decode(v,P);if(P.ignoreCustomNameSection===false){restoreFunctionNames($);restoreLocalNames($);restoreModuleName($)}return $}},62734:function(v,I){"use strict";Object.defineProperty(I,"__esModule",{value:true});I.read=read;I.write=write;function read(v,I,P,R,$){var L,q;var K=$*8-R-1;var ae=(1<<K)-1;var ge=ae>>1;var be=-7;var xe=P?$-1:0;var ve=P?-1:1;var Ce=v[I+xe];xe+=ve;L=Ce&(1<<-be)-1;Ce>>=-be;be+=K;for(;be>0;L=L*256+v[I+xe],xe+=ve,be-=8){}q=L&(1<<-be)-1;L>>=-be;be+=R;for(;be>0;q=q*256+v[I+xe],xe+=ve,be-=8){}if(L===0){L=1-ge}else if(L===ae){return q?NaN:(Ce?-1:1)*Infinity}else{q=q+Math.pow(2,R);L=L-ge}return(Ce?-1:1)*q*Math.pow(2,L-R)}function write(v,I,P,R,$,L){var q,K,ae;var ge=L*8-$-1;var be=(1<<ge)-1;var xe=be>>1;var ve=$===23?Math.pow(2,-24)-Math.pow(2,-77):0;var Ce=R?0:L-1;var Ne=R?1:-1;var He=I<0||I===0&&1/I<0?1:0;I=Math.abs(I);if(isNaN(I)||I===Infinity){K=isNaN(I)?1:0;q=be}else{q=Math.floor(Math.log(I)/Math.LN2);if(I*(ae=Math.pow(2,-q))<1){q--;ae*=2}if(q+xe>=1){I+=ve/ae}else{I+=ve*Math.pow(2,1-xe)}if(I*ae>=2){q++;ae/=2}if(q+xe>=be){K=0;q=be}else if(q+xe>=1){K=(I*ae-1)*Math.pow(2,$);q=q+xe}else{K=I*Math.pow(2,xe-1)*Math.pow(2,$);q=0}}for(;$>=8;v[P+Ce]=K&255,Ce+=Ne,K/=256,$-=8){}q=q<<$|K;ge+=$;for(;ge>0;v[P+Ce]=q&255,Ce+=Ne,q/=256,ge-=8){}v[P+Ce-Ne]|=He*128}},85249:function(v){v.exports=Long;var I=null;try{I=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(v){}function Long(v,I,P){this.low=v|0;this.high=I|0;this.unsigned=!!P}Long.prototype.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:true});function isLong(v){return(v&&v["__isLong__"])===true}Long.isLong=isLong;var P={};var R={};function fromInt(v,I){var $,L,q;if(I){v>>>=0;if(q=0<=v&&v<256){L=R[v];if(L)return L}$=fromBits(v,(v|0)<0?-1:0,true);if(q)R[v]=$;return $}else{v|=0;if(q=-128<=v&&v<128){L=P[v];if(L)return L}$=fromBits(v,v<0?-1:0,false);if(q)P[v]=$;return $}}Long.fromInt=fromInt;function fromNumber(v,I){if(isNaN(v))return I?ve:xe;if(I){if(v<0)return ve;if(v>=ae)return Je}else{if(v<=-ge)return Ve;if(v+1>=ge)return Qe}if(v<0)return fromNumber(-v,I).neg();return fromBits(v%K|0,v/K|0,I)}Long.fromNumber=fromNumber;function fromBits(v,I,P){return new Long(v,I,P)}Long.fromBits=fromBits;var $=Math.pow;function fromString(v,I,P){if(v.length===0)throw Error("empty string");if(v==="NaN"||v==="Infinity"||v==="+Infinity"||v==="-Infinity")return xe;if(typeof I==="number"){P=I,I=false}else{I=!!I}P=P||10;if(P<2||36<P)throw RangeError("radix");var R;if((R=v.indexOf("-"))>0)throw Error("interior hyphen");else if(R===0){return fromString(v.substring(1),I,P).neg()}var L=fromNumber($(P,8));var q=xe;for(var K=0;K<v.length;K+=8){var ae=Math.min(8,v.length-K),ge=parseInt(v.substring(K,K+ae),P);if(ae<8){var be=fromNumber($(P,ae));q=q.mul(be).add(fromNumber(ge))}else{q=q.mul(L);q=q.add(fromNumber(ge))}}q.unsigned=I;return q}Long.fromString=fromString;function fromValue(v,I){if(typeof v==="number")return fromNumber(v,I);if(typeof v==="string")return fromString(v,I);return fromBits(v.low,v.high,typeof I==="boolean"?I:v.unsigned)}Long.fromValue=fromValue;var L=1<<16;var q=1<<24;var K=L*L;var ae=K*K;var ge=ae/2;var be=fromInt(q);var xe=fromInt(0);Long.ZERO=xe;var ve=fromInt(0,true);Long.UZERO=ve;var Ce=fromInt(1);Long.ONE=Ce;var Ne=fromInt(1,true);Long.UONE=Ne;var He=fromInt(-1);Long.NEG_ONE=He;var Qe=fromBits(4294967295|0,2147483647|0,false);Long.MAX_VALUE=Qe;var Je=fromBits(4294967295|0,4294967295|0,true);Long.MAX_UNSIGNED_VALUE=Je;var Ve=fromBits(0,2147483648|0,false);Long.MIN_VALUE=Ve;var Ke=Long.prototype;Ke.toInt=function toInt(){return this.unsigned?this.low>>>0:this.low};Ke.toNumber=function toNumber(){if(this.unsigned)return(this.high>>>0)*K+(this.low>>>0);return this.high*K+(this.low>>>0)};Ke.toString=function toString(v){v=v||10;if(v<2||36<v)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Ve)){var I=fromNumber(v),P=this.div(I),R=P.mul(I).sub(this);return P.toString(v)+R.toInt().toString(v)}else return"-"+this.neg().toString(v)}var L=fromNumber($(v,6),this.unsigned),q=this;var K="";while(true){var ae=q.div(L),ge=q.sub(ae.mul(L)).toInt()>>>0,be=ge.toString(v);q=ae;if(q.isZero())return be+K;else{while(be.length<6)be="0"+be;K=""+be+K}}};Ke.getHighBits=function getHighBits(){return this.high};Ke.getHighBitsUnsigned=function getHighBitsUnsigned(){return this.high>>>0};Ke.getLowBits=function getLowBits(){return this.low};Ke.getLowBitsUnsigned=function getLowBitsUnsigned(){return this.low>>>0};Ke.getNumBitsAbs=function getNumBitsAbs(){if(this.isNegative())return this.eq(Ve)?64:this.neg().getNumBitsAbs();var v=this.high!=0?this.high:this.low;for(var I=31;I>0;I--)if((v&1<<I)!=0)break;return this.high!=0?I+33:I+1};Ke.isZero=function isZero(){return this.high===0&&this.low===0};Ke.eqz=Ke.isZero;Ke.isNegative=function isNegative(){return!this.unsigned&&this.high<0};Ke.isPositive=function isPositive(){return this.unsigned||this.high>=0};Ke.isOdd=function isOdd(){return(this.low&1)===1};Ke.isEven=function isEven(){return(this.low&1)===0};Ke.equals=function equals(v){if(!isLong(v))v=fromValue(v);if(this.unsigned!==v.unsigned&&this.high>>>31===1&&v.high>>>31===1)return false;return this.high===v.high&&this.low===v.low};Ke.eq=Ke.equals;Ke.notEquals=function notEquals(v){return!this.eq(v)};Ke.neq=Ke.notEquals;Ke.ne=Ke.notEquals;Ke.lessThan=function lessThan(v){return this.comp(v)<0};Ke.lt=Ke.lessThan;Ke.lessThanOrEqual=function lessThanOrEqual(v){return this.comp(v)<=0};Ke.lte=Ke.lessThanOrEqual;Ke.le=Ke.lessThanOrEqual;Ke.greaterThan=function greaterThan(v){return this.comp(v)>0};Ke.gt=Ke.greaterThan;Ke.greaterThanOrEqual=function greaterThanOrEqual(v){return this.comp(v)>=0};Ke.gte=Ke.greaterThanOrEqual;Ke.ge=Ke.greaterThanOrEqual;Ke.compare=function compare(v){if(!isLong(v))v=fromValue(v);if(this.eq(v))return 0;var I=this.isNegative(),P=v.isNegative();if(I&&!P)return-1;if(!I&&P)return 1;if(!this.unsigned)return this.sub(v).isNegative()?-1:1;return v.high>>>0>this.high>>>0||v.high===this.high&&v.low>>>0>this.low>>>0?-1:1};Ke.comp=Ke.compare;Ke.negate=function negate(){if(!this.unsigned&&this.eq(Ve))return Ve;return this.not().add(Ce)};Ke.neg=Ke.negate;Ke.add=function add(v){if(!isLong(v))v=fromValue(v);var I=this.high>>>16;var P=this.high&65535;var R=this.low>>>16;var $=this.low&65535;var L=v.high>>>16;var q=v.high&65535;var K=v.low>>>16;var ae=v.low&65535;var ge=0,be=0,xe=0,ve=0;ve+=$+ae;xe+=ve>>>16;ve&=65535;xe+=R+K;be+=xe>>>16;xe&=65535;be+=P+q;ge+=be>>>16;be&=65535;ge+=I+L;ge&=65535;return fromBits(xe<<16|ve,ge<<16|be,this.unsigned)};Ke.subtract=function subtract(v){if(!isLong(v))v=fromValue(v);return this.add(v.neg())};Ke.sub=Ke.subtract;Ke.multiply=function multiply(v){if(this.isZero())return xe;if(!isLong(v))v=fromValue(v);if(I){var P=I["mul"](this.low,this.high,v.low,v.high);return fromBits(P,I["get_high"](),this.unsigned)}if(v.isZero())return xe;if(this.eq(Ve))return v.isOdd()?Ve:xe;if(v.eq(Ve))return this.isOdd()?Ve:xe;if(this.isNegative()){if(v.isNegative())return this.neg().mul(v.neg());else return this.neg().mul(v).neg()}else if(v.isNegative())return this.mul(v.neg()).neg();if(this.lt(be)&&v.lt(be))return fromNumber(this.toNumber()*v.toNumber(),this.unsigned);var R=this.high>>>16;var $=this.high&65535;var L=this.low>>>16;var q=this.low&65535;var K=v.high>>>16;var ae=v.high&65535;var ge=v.low>>>16;var ve=v.low&65535;var Ce=0,Ne=0,He=0,Qe=0;Qe+=q*ve;He+=Qe>>>16;Qe&=65535;He+=L*ve;Ne+=He>>>16;He&=65535;He+=q*ge;Ne+=He>>>16;He&=65535;Ne+=$*ve;Ce+=Ne>>>16;Ne&=65535;Ne+=L*ge;Ce+=Ne>>>16;Ne&=65535;Ne+=q*ae;Ce+=Ne>>>16;Ne&=65535;Ce+=R*ve+$*ge+L*ae+q*K;Ce&=65535;return fromBits(He<<16|Qe,Ce<<16|Ne,this.unsigned)};Ke.mul=Ke.multiply;Ke.divide=function divide(v){if(!isLong(v))v=fromValue(v);if(v.isZero())throw Error("division by zero");if(I){if(!this.unsigned&&this.high===-2147483648&&v.low===-1&&v.high===-1){return this}var P=(this.unsigned?I["div_u"]:I["div_s"])(this.low,this.high,v.low,v.high);return fromBits(P,I["get_high"](),this.unsigned)}if(this.isZero())return this.unsigned?ve:xe;var R,L,q;if(!this.unsigned){if(this.eq(Ve)){if(v.eq(Ce)||v.eq(He))return Ve;else if(v.eq(Ve))return Ce;else{var K=this.shr(1);R=K.div(v).shl(1);if(R.eq(xe)){return v.isNegative()?Ce:He}else{L=this.sub(v.mul(R));q=R.add(L.div(v));return q}}}else if(v.eq(Ve))return this.unsigned?ve:xe;if(this.isNegative()){if(v.isNegative())return this.neg().div(v.neg());return this.neg().div(v).neg()}else if(v.isNegative())return this.div(v.neg()).neg();q=xe}else{if(!v.unsigned)v=v.toUnsigned();if(v.gt(this))return ve;if(v.gt(this.shru(1)))return Ne;q=ve}L=this;while(L.gte(v)){R=Math.max(1,Math.floor(L.toNumber()/v.toNumber()));var ae=Math.ceil(Math.log(R)/Math.LN2),ge=ae<=48?1:$(2,ae-48),be=fromNumber(R),Qe=be.mul(v);while(Qe.isNegative()||Qe.gt(L)){R-=ge;be=fromNumber(R,this.unsigned);Qe=be.mul(v)}if(be.isZero())be=Ce;q=q.add(be);L=L.sub(Qe)}return q};Ke.div=Ke.divide;Ke.modulo=function modulo(v){if(!isLong(v))v=fromValue(v);if(I){var P=(this.unsigned?I["rem_u"]:I["rem_s"])(this.low,this.high,v.low,v.high);return fromBits(P,I["get_high"](),this.unsigned)}return this.sub(this.div(v).mul(v))};Ke.mod=Ke.modulo;Ke.rem=Ke.modulo;Ke.not=function not(){return fromBits(~this.low,~this.high,this.unsigned)};Ke.and=function and(v){if(!isLong(v))v=fromValue(v);return fromBits(this.low&v.low,this.high&v.high,this.unsigned)};Ke.or=function or(v){if(!isLong(v))v=fromValue(v);return fromBits(this.low|v.low,this.high|v.high,this.unsigned)};Ke.xor=function xor(v){if(!isLong(v))v=fromValue(v);return fromBits(this.low^v.low,this.high^v.high,this.unsigned)};Ke.shiftLeft=function shiftLeft(v){if(isLong(v))v=v.toInt();if((v&=63)===0)return this;else if(v<32)return fromBits(this.low<<v,this.high<<v|this.low>>>32-v,this.unsigned);else return fromBits(0,this.low<<v-32,this.unsigned)};Ke.shl=Ke.shiftLeft;Ke.shiftRight=function shiftRight(v){if(isLong(v))v=v.toInt();if((v&=63)===0)return this;else if(v<32)return fromBits(this.low>>>v|this.high<<32-v,this.high>>v,this.unsigned);else return fromBits(this.high>>v-32,this.high>=0?0:-1,this.unsigned)};Ke.shr=Ke.shiftRight;Ke.shiftRightUnsigned=function shiftRightUnsigned(v){if(isLong(v))v=v.toInt();if((v&=63)===0)return this;if(v<32)return fromBits(this.low>>>v|this.high<<32-v,this.high>>>v,this.unsigned);if(v===32)return fromBits(this.high,0,this.unsigned);return fromBits(this.high>>>v-32,0,this.unsigned)};Ke.shru=Ke.shiftRightUnsigned;Ke.shr_u=Ke.shiftRightUnsigned;Ke.rotateLeft=function rotateLeft(v){var I;if(isLong(v))v=v.toInt();if((v&=63)===0)return this;if(v===32)return fromBits(this.high,this.low,this.unsigned);if(v<32){I=32-v;return fromBits(this.low<<v|this.high>>>I,this.high<<v|this.low>>>I,this.unsigned)}v-=32;I=32-v;return fromBits(this.high<<v|this.low>>>I,this.low<<v|this.high>>>I,this.unsigned)};Ke.rotl=Ke.rotateLeft;Ke.rotateRight=function rotateRight(v){var I;if(isLong(v))v=v.toInt();if((v&=63)===0)return this;if(v===32)return fromBits(this.high,this.low,this.unsigned);if(v<32){I=32-v;return fromBits(this.high<<I|this.low>>>v,this.low<<I|this.high>>>v,this.unsigned)}v-=32;I=32-v;return fromBits(this.low<<I|this.high>>>v,this.high<<I|this.low>>>v,this.unsigned)};Ke.rotr=Ke.rotateRight;Ke.toSigned=function toSigned(){if(!this.unsigned)return this;return fromBits(this.low,this.high,false)};Ke.toUnsigned=function toUnsigned(){if(this.unsigned)return this;return fromBits(this.low,this.high,true)};Ke.toBytes=function toBytes(v){return v?this.toBytesLE():this.toBytesBE()};Ke.toBytesLE=function toBytesLE(){var v=this.high,I=this.low;return[I&255,I>>>8&255,I>>>16&255,I>>>24,v&255,v>>>8&255,v>>>16&255,v>>>24]};Ke.toBytesBE=function toBytesBE(){var v=this.high,I=this.low;return[v>>>24,v>>>16&255,v>>>8&255,v&255,I>>>24,I>>>16&255,I>>>8&255,I&255]};Long.fromBytes=function fromBytes(v,I,P){return P?Long.fromBytesLE(v,I):Long.fromBytesBE(v,I)};Long.fromBytesLE=function fromBytesLE(v,I){return new Long(v[0]|v[1]<<8|v[2]<<16|v[3]<<24,v[4]|v[5]<<8|v[6]<<16|v[7]<<24,I)};Long.fromBytesBE=function fromBytesBE(v,I){return new Long(v[4]<<24|v[5]<<16|v[6]<<8|v[7],v[0]<<24|v[1]<<16|v[2]<<8|v[3],I)}},86853:function(v,I,P){"use strict";Object.defineProperty(I,"__esModule",{value:true});var R=P(99353);var $=P(12781);function evCommon(){var v=process.hrtime();var I=v[0]*1e6+Math.round(v[1]/1e3);return{ts:I,pid:process.pid,tid:process.pid}}var L=function(v){R.__extends(Tracer,v);function Tracer(I){if(I===void 0){I={}}var P=v.call(this)||this;P.noStream=false;P.events=[];if(typeof I!=="object"){throw new Error("Invalid options passed (must be an object)")}if(I.parent!=null&&typeof I.parent!=="object"){throw new Error("Invalid option (parent) passed (must be an object)")}if(I.fields!=null&&typeof I.fields!=="object"){throw new Error("Invalid option (fields) passed (must be an object)")}if(I.objectMode!=null&&(I.objectMode!==true&&I.objectMode!==false)){throw new Error("Invalid option (objectsMode) passed (must be a boolean)")}P.noStream=I.noStream||false;P.parent=I.parent;if(P.parent){P.fields=Object.assign({},I.parent&&I.parent.fields)}else{P.fields={}}if(I.fields){Object.assign(P.fields,I.fields)}if(!P.fields.cat){P.fields.cat="default"}else if(Array.isArray(P.fields.cat)){P.fields.cat=P.fields.cat.join(",")}if(!P.fields.args){P.fields.args={}}if(P.parent){P._push=P.parent._push.bind(P.parent)}else{P._objectMode=Boolean(I.objectMode);var R={objectMode:P._objectMode};if(P._objectMode){P._push=P.push}else{P._push=P._pushString;R.encoding="utf8"}$.Readable.call(P,R)}return P}Tracer.prototype.flush=function(){if(this.noStream===true){for(var v=0,I=this.events;v<I.length;v++){var P=I[v];this._push(P)}this._flush()}};Tracer.prototype._read=function(v){};Tracer.prototype._pushString=function(v){var I="";if(!this.firstPush){this.push("[");this.firstPush=true}else{I=",\n"}this.push(I+JSON.stringify(v),"utf8")};Tracer.prototype._flush=function(){if(!this._objectMode){this.push("]")}};Tracer.prototype.child=function(v){return new Tracer({parent:this,fields:v})};Tracer.prototype.begin=function(v){return this.mkEventFunc("b")(v)};Tracer.prototype.end=function(v){return this.mkEventFunc("e")(v)};Tracer.prototype.completeEvent=function(v){return this.mkEventFunc("X")(v)};Tracer.prototype.instantEvent=function(v){return this.mkEventFunc("I")(v)};Tracer.prototype.mkEventFunc=function(v){var I=this;return function(P){var R=evCommon();R.ph=v;if(P){if(typeof P==="string"){R.name=P}else{for(var $=0,L=Object.keys(P);$<L.length;$++){var q=L[$];if(q==="cat"){R.cat=P.cat.join(",")}else{R[q]=P[q]}}}}if(!I.noStream){I._push(R)}else{I.events.push(R)}}};return Tracer}($.Readable);I.Tracer=L},62553:function(v,I,P){"use strict";const R=P(87966);const $=P(26972);v.exports=class AliasFieldPlugin{constructor(v,I,P){this.source=v;this.field=I;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("AliasFieldPlugin",((P,L,q)=>{if(!P.descriptionFileData)return q();const K=$(v,P);if(!K)return q();const ae=R.getField(P.descriptionFileData,this.field);if(ae===null||typeof ae!=="object"){if(L.log)L.log("Field '"+this.field+"' doesn't contain a valid alias configuration");return q()}const ge=Object.prototype.hasOwnProperty.call(ae,K)?ae[K]:K.startsWith("./")?ae[K.slice(2)]:undefined;if(ge===K)return q();if(ge===undefined)return q();if(ge===false){const v={...P,path:false};if(typeof L.yield==="function"){L.yield(v);return q(null,null)}return q(null,v)}const be={...P,path:P.descriptionFileRoot,request:ge,fullySpecified:false};v.doResolve(I,be,"aliased from description file "+P.descriptionFilePath+" with mapping '"+K+"' to '"+ge+"'",L,((v,I)=>{if(v)return q(v);if(I===undefined)return q(null,null);q(null,I)}))}))}}},16719:function(v,I,P){"use strict";const R=P(80485);const{PathType:$,getType:L}=P(49272);v.exports=class AliasPlugin{constructor(v,I,P){this.source=v;this.options=Array.isArray(I)?I:[I];this.target=P}apply(v){const I=v.ensureHook(this.target);const getAbsolutePathWithSlashEnding=I=>{const P=L(I);if(P===$.AbsolutePosix||P===$.AbsoluteWin){return v.join(I,"_").slice(0,-1)}return null};const isSubPath=(v,I)=>{const P=getAbsolutePathWithSlashEnding(I);if(!P)return false;return v.startsWith(P)};v.getHook(this.source).tapAsync("AliasPlugin",((P,$,L)=>{const q=P.request||P.path;if(!q)return L();R(this.options,((L,K)=>{let ae=false;if(q===L.name||!L.onlyModule&&(P.request?q.startsWith(`${L.name}/`):isSubPath(q,L.name))){const ge=q.slice(L.name.length);const resolveWithAlias=(R,K)=>{if(R===false){const v={...P,path:false};if(typeof $.yield==="function"){$.yield(v);return K(null,null)}return K(null,v)}if(q!==R&&!q.startsWith(R+"/")){ae=true;const q=R+ge;const be={...P,request:q,fullySpecified:false};return v.doResolve(I,be,"aliased with mapping '"+L.name+"': '"+R+"' to '"+q+"'",$,((v,I)=>{if(v)return K(v);if(I)return K(null,I);return K()}))}return K()};const stoppingCallback=(v,I)=>{if(v)return K(v);if(I)return K(null,I);if(ae)return K(null,null);return K()};if(Array.isArray(L.alias)){return R(L.alias,resolveWithAlias,stoppingCallback)}else{return resolveWithAlias(L.alias,stoppingCallback)}}return K()}),L)}))}}},18115:function(v){"use strict";v.exports=class AppendPlugin{constructor(v,I,P){this.source=v;this.appending=I;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("AppendPlugin",((P,R,$)=>{const L={...P,path:P.path+this.appending,relativePath:P.relativePath&&P.relativePath+this.appending};v.doResolve(I,L,this.appending,R,$)}))}}},56631:function(v,I,P){"use strict";const R=P(77282).nextTick;const dirname=v=>{let I=v.length-1;while(I>=0){const P=v.charCodeAt(I);if(P===47||P===92)break;I--}if(I<0)return"";return v.slice(0,I)};const runCallbacks=(v,I,P)=>{if(v.length===1){v[0](I,P);v.length=0;return}let R;for(const $ of v){try{$(I,P)}catch(v){if(!R)R=v}}v.length=0;if(R)throw R};class OperationMergerBackend{constructor(v,I,P){this._provider=v;this._syncProvider=I;this._providerContext=P;this._activeAsyncOperations=new Map;this.provide=this._provider?(I,P,R)=>{if(typeof P==="function"){R=P;P=undefined}if(typeof I!=="string"&&!Buffer.isBuffer(I)&&!(I instanceof URL)&&typeof I!=="number"){R(new TypeError("path must be a string, Buffer, URL or number"));return}if(P){return this._provider.call(this._providerContext,I,P,R)}let $=this._activeAsyncOperations.get(I);if($){$.push(R);return}this._activeAsyncOperations.set(I,$=[R]);v(I,((v,P)=>{this._activeAsyncOperations.delete(I);runCallbacks($,v,P)}))}:null;this.provideSync=this._syncProvider?(v,I)=>this._syncProvider.call(this._providerContext,v,I):null}purge(){}purgeParent(){}}const $=0;const L=1;const q=2;class CacheBackend{constructor(v,I,P,R){this._duration=v;this._provider=I;this._syncProvider=P;this._providerContext=R;this._activeAsyncOperations=new Map;this._data=new Map;this._levels=[];for(let v=0;v<10;v++)this._levels.push(new Set);for(let I=5e3;I<v;I+=500)this._levels.push(new Set);this._currentLevel=0;this._tickInterval=Math.floor(v/this._levels.length);this._mode=$;this._timeout=undefined;this._nextDecay=undefined;this.provide=I?this.provide.bind(this):null;this.provideSync=P?this.provideSync.bind(this):null}provide(v,I,P){if(typeof I==="function"){P=I;I=undefined}if(typeof v!=="string"&&!Buffer.isBuffer(v)&&!(v instanceof URL)&&typeof v!=="number"){P(new TypeError("path must be a string, Buffer, URL or number"));return}const $=typeof v!=="string"?v.toString():v;if(I){return this._provider.call(this._providerContext,v,I,P)}if(this._mode===L){this._enterAsyncMode()}let q=this._data.get($);if(q!==undefined){if(q.err)return R(P,q.err);return R(P,null,q.result)}let K=this._activeAsyncOperations.get($);if(K!==undefined){K.push(P);return}this._activeAsyncOperations.set($,K=[P]);this._provider.call(this._providerContext,v,((v,I)=>{this._activeAsyncOperations.delete($);this._storeResult($,v,I);this._enterAsyncMode();runCallbacks(K,v,I)}))}provideSync(v,I){if(typeof v!=="string"&&!Buffer.isBuffer(v)&&!(v instanceof URL)&&typeof v!=="number"){throw new TypeError("path must be a string")}const P=typeof v!=="string"?v.toString():v;if(I){return this._syncProvider.call(this._providerContext,v,I)}if(this._mode===L){this._runDecays()}let R=this._data.get(P);if(R!==undefined){if(R.err)throw R.err;return R.result}const $=this._activeAsyncOperations.get(P);this._activeAsyncOperations.delete(P);let q;try{q=this._syncProvider.call(this._providerContext,v)}catch(v){this._storeResult(P,v,undefined);this._enterSyncModeWhenIdle();if($){runCallbacks($,v,undefined)}throw v}this._storeResult(P,null,q);this._enterSyncModeWhenIdle();if($){runCallbacks($,null,q)}return q}purge(v){if(!v){if(this._mode!==$){this._data.clear();for(const v of this._levels){v.clear()}this._enterIdleMode()}}else if(typeof v==="string"||Buffer.isBuffer(v)||v instanceof URL||typeof v==="number"){const I=typeof v!=="string"?v.toString():v;for(let[v,P]of this._data){if(v.startsWith(I)){this._data.delete(v);P.level.delete(v)}}if(this._data.size===0){this._enterIdleMode()}}else{for(let[I,P]of this._data){for(const R of v){const v=typeof R!=="string"?R.toString():R;if(I.startsWith(v)){this._data.delete(I);P.level.delete(I);break}}}if(this._data.size===0){this._enterIdleMode()}}}purgeParent(v){if(!v){this.purge()}else if(typeof v==="string"||Buffer.isBuffer(v)||v instanceof URL||typeof v==="number"){const I=typeof v!=="string"?v.toString():v;this.purge(dirname(I))}else{const I=new Set;for(const P of v){const v=typeof P!=="string"?P.toString():P;I.add(dirname(v))}this.purge(I)}}_storeResult(v,I,P){if(this._data.has(v))return;const R=this._levels[this._currentLevel];this._data.set(v,{err:I,result:P,level:R});R.add(v)}_decayLevel(){const v=(this._currentLevel+1)%this._levels.length;const I=this._levels[v];this._currentLevel=v;for(let v of I){this._data.delete(v)}I.clear();if(this._data.size===0){this._enterIdleMode()}else{this._nextDecay+=this._tickInterval}}_runDecays(){while(this._nextDecay<=Date.now()&&this._mode!==$){this._decayLevel()}}_enterAsyncMode(){let v=0;switch(this._mode){case q:return;case $:this._nextDecay=Date.now()+this._tickInterval;v=this._tickInterval;break;case L:this._runDecays();if(this._mode===$)return;v=Math.max(0,this._nextDecay-Date.now());break}this._mode=q;const I=setTimeout((()=>{this._mode=L;this._runDecays()}),v);if(I.unref)I.unref();this._timeout=I}_enterSyncModeWhenIdle(){if(this._mode===$){this._mode=L;this._nextDecay=Date.now()+this._tickInterval}}_enterIdleMode(){this._mode=$;this._nextDecay=undefined;if(this._timeout)clearTimeout(this._timeout)}}const createBackend=(v,I,P,R)=>{if(v>0){return new CacheBackend(v,I,P,R)}return new OperationMergerBackend(I,P,R)};v.exports=class CachedInputFileSystem{constructor(v,I){this.fileSystem=v;this._lstatBackend=createBackend(I,this.fileSystem.lstat,this.fileSystem.lstatSync,this.fileSystem);const P=this._lstatBackend.provide;this.lstat=P;const R=this._lstatBackend.provideSync;this.lstatSync=R;this._statBackend=createBackend(I,this.fileSystem.stat,this.fileSystem.statSync,this.fileSystem);const $=this._statBackend.provide;this.stat=$;const L=this._statBackend.provideSync;this.statSync=L;this._readdirBackend=createBackend(I,this.fileSystem.readdir,this.fileSystem.readdirSync,this.fileSystem);const q=this._readdirBackend.provide;this.readdir=q;const K=this._readdirBackend.provideSync;this.readdirSync=K;this._readFileBackend=createBackend(I,this.fileSystem.readFile,this.fileSystem.readFileSync,this.fileSystem);const ae=this._readFileBackend.provide;this.readFile=ae;const ge=this._readFileBackend.provideSync;this.readFileSync=ge;this._readJsonBackend=createBackend(I,this.fileSystem.readJson||this.readFile&&((v,I)=>{this.readFile(v,((v,P)=>{if(v)return I(v);if(!P||P.length===0)return I(new Error("No file content"));let R;try{R=JSON.parse(P.toString("utf-8"))}catch(v){return I(v)}I(null,R)}))}),this.fileSystem.readJsonSync||this.readFileSync&&(v=>{const I=this.readFileSync(v);const P=JSON.parse(I.toString("utf-8"));return P}),this.fileSystem);const be=this._readJsonBackend.provide;this.readJson=be;const xe=this._readJsonBackend.provideSync;this.readJsonSync=xe;this._readlinkBackend=createBackend(I,this.fileSystem.readlink,this.fileSystem.readlinkSync,this.fileSystem);const ve=this._readlinkBackend.provide;this.readlink=ve;const Ce=this._readlinkBackend.provideSync;this.readlinkSync=Ce;this._realpathBackend=createBackend(I,this.fileSystem.realpath,this.fileSystem.realpathSync,this.fileSystem);const Ne=this._realpathBackend.provide;this.realpath=Ne;const He=this._realpathBackend.provideSync;this.realpathSync=He}purge(v){this._statBackend.purge(v);this._lstatBackend.purge(v);this._readdirBackend.purgeParent(v);this._readFileBackend.purge(v);this._readlinkBackend.purge(v);this._readJsonBackend.purge(v);this._realpathBackend.purge(v)}}},93640:function(v,I,P){"use strict";const R=P(6516).basename;v.exports=class CloneBasenamePlugin{constructor(v,I){this.source=v;this.target=I}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("CloneBasenamePlugin",((P,$,L)=>{const q=P.path;const K=R(q);const ae=v.join(q,K);const ge={...P,path:ae,relativePath:P.relativePath&&v.join(P.relativePath,K)};v.doResolve(I,ge,"using path: "+ae,$,L)}))}}},87853:function(v){"use strict";v.exports=class ConditionalPlugin{constructor(v,I,P,R,$){this.source=v;this.test=I;this.message=P;this.allowAlternatives=R;this.target=$}apply(v){const I=v.ensureHook(this.target);const{test:P,message:R,allowAlternatives:$}=this;const L=Object.keys(P);v.getHook(this.source).tapAsync("ConditionalPlugin",((q,K,ae)=>{for(const v of L){if(q[v]!==P[v])return ae()}v.doResolve(I,q,R,K,$?ae:(v,I)=>{if(v)return ae(v);if(I===undefined)return ae(null,null);ae(null,I)})}))}}},5892:function(v,I,P){"use strict";const R=P(87966);v.exports=class DescriptionFilePlugin{constructor(v,I,P,R){this.source=v;this.filenames=I;this.pathIsFile=P;this.target=R}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("DescriptionFilePlugin",((P,$,L)=>{const q=P.path;if(!q)return L();const K=this.pathIsFile?R.cdUp(q):q;if(!K)return L();R.loadDescriptionFile(v,K,this.filenames,P.descriptionFilePath?{path:P.descriptionFilePath,content:P.descriptionFileData,directory:P.descriptionFileRoot}:undefined,$,((R,ae)=>{if(R)return L(R);if(!ae){if($.log)$.log(`No description file found in ${K} or above`);return L()}const ge="."+q.slice(ae.directory.length).replace(/\\/g,"/");const be={...P,descriptionFilePath:ae.path,descriptionFileData:ae.content,descriptionFileRoot:ae.directory,relativePath:ge};v.doResolve(I,be,"using description file: "+ae.path+" (relative path: "+ge+")",$,((v,I)=>{if(v)return L(v);if(I===undefined)return L(null,null);L(null,I)}))}))}))}}},87966:function(v,I,P){"use strict";const R=P(80485);function loadDescriptionFile(v,I,P,$,L,q){(function findDescriptionFile(){if($&&$.directory===I){return q(null,$)}R(P,((P,R)=>{const $=v.join(I,P);if(v.fileSystem.readJson){v.fileSystem.readJson($,((v,I)=>{if(v){if(typeof v.code!=="undefined"){if(L.missingDependencies){L.missingDependencies.add($)}return R()}if(L.fileDependencies){L.fileDependencies.add($)}return onJson(v)}if(L.fileDependencies){L.fileDependencies.add($)}onJson(null,I)}))}else{v.fileSystem.readFile($,((v,I)=>{if(v){if(L.missingDependencies){L.missingDependencies.add($)}return R()}if(L.fileDependencies){L.fileDependencies.add($)}let P;if(I){try{P=JSON.parse(I.toString())}catch(v){return onJson(v)}}else{return onJson(new Error("No content in file"))}onJson(null,P)}))}function onJson(v,P){if(v){if(L.log)L.log($+" (directory description file): "+v);else v.message=$+" (directory description file): "+v;return R(v)}R(null,{content:P,directory:I,path:$})}}),((v,P)=>{if(v)return q(v);if(P){return q(null,P)}else{const v=cdUp(I);if(!v){return q()}else{I=v;return findDescriptionFile()}}}))})()}function getField(v,I){if(!v)return undefined;if(Array.isArray(I)){let P=v;for(let v=0;v<I.length;v++){if(P===null||typeof P!=="object"){P=null;break}P=P[I[v]]}return P}else{return v[I]}}function cdUp(v){if(v==="/")return null;const I=v.lastIndexOf("/"),P=v.lastIndexOf("\\");const R=I<0?P:P<0?I:I<P?P:I;if(R<0)return null;return v.slice(0,R||1)}I.loadDescriptionFile=loadDescriptionFile;I.getField=getField;I.cdUp=cdUp},39814:function(v){"use strict";v.exports=class DirectoryExistsPlugin{constructor(v,I){this.source=v;this.target=I}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("DirectoryExistsPlugin",((P,R,$)=>{const L=v.fileSystem;const q=P.path;if(!q)return $();L.stat(q,((L,K)=>{if(L||!K){if(R.missingDependencies)R.missingDependencies.add(q);if(R.log)R.log(q+" doesn't exist");return $()}if(!K.isDirectory()){if(R.missingDependencies)R.missingDependencies.add(q);if(R.log)R.log(q+" is not a directory");return $()}if(R.fileDependencies)R.fileDependencies.add(q);v.doResolve(I,P,`existing directory ${q}`,R,$)}))}))}}},83885:function(v,I,P){"use strict";const R=P(87966);const $=P(80485);const{processExportsField:L}=P(65848);const{parseIdentifier:q}=P(65212);const{invalidSegmentRegEx:K,deprecatedInvalidSegmentRegEx:ae}=P(49272);v.exports=class ExportsFieldPlugin{constructor(v,I,P,R){this.source=v;this.target=R;this.conditionNames=I;this.fieldName=P;this.fieldProcessorCache=new WeakMap}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("ExportsFieldPlugin",((P,ge,be)=>{if(!P.descriptionFilePath)return be();if(P.relativePath!=="."||P.request===undefined)return be();const xe=P.query||P.fragment?(P.request==="."?"./":P.request)+P.query+P.fragment:P.request;const ve=R.getField(P.descriptionFileData,this.fieldName);if(!ve)return be();if(P.directory){return be(new Error(`Resolving to directories is not possible with the exports field (request was ${xe}/)`))}let Ce;let Ne;try{let v=this.fieldProcessorCache.get(P.descriptionFileData);if(v===undefined){v=L(ve);this.fieldProcessorCache.set(P.descriptionFileData,v)}[Ce,Ne]=v(xe,this.conditionNames)}catch(v){if(ge.log){ge.log(`Exports field in ${P.descriptionFilePath} can't be processed: ${v}`)}return be(v)}if(Ce.length===0){return be(new Error(`Package path ${xe} is not exported from package ${P.descriptionFileRoot} (see exports field in ${P.descriptionFilePath})`))}$(Ce,((R,$,L)=>{const be=q(R);if(!be)return $();const[xe,ve,He]=be;if(xe.length===0||!xe.startsWith("./")){if(Ce.length===L){return $(new Error(`Invalid "exports" target "${R}" defined for "${Ne}" in the package config ${P.descriptionFilePath}, targets must start with "./"`))}return $()}if(K.exec(xe.slice(2))!==null&&ae.test(xe.slice(2))!==null){if(Ce.length===L){return $(new Error(`Invalid "exports" target "${R}" defined for "${Ne}" in the package config ${P.descriptionFilePath}, targets must start with "./"`))}return $()}const Qe={...P,request:undefined,path:v.join(P.descriptionFileRoot,xe),relativePath:xe,query:ve,fragment:He};v.doResolve(I,Qe,"using exports field: "+R,ge,((v,I)=>{if(v)return $(v);if(I===undefined)return $(null,null);$(null,I)}))}),((v,I)=>be(v,I||null)))}))}}},9513:function(v,I,P){"use strict";const R=P(80485);v.exports=class ExtensionAliasPlugin{constructor(v,I,P){this.source=v;this.options=I;this.target=P}apply(v){const I=v.ensureHook(this.target);const{extension:P,alias:$}=this.options;v.getHook(this.source).tapAsync("ExtensionAliasPlugin",((L,q,K)=>{const ae=L.request;if(!ae||!ae.endsWith(P))return K();const ge=typeof $==="string";const resolve=(R,$,K)=>{const be=`${ae.slice(0,-P.length)}${R}`;return v.doResolve(I,{...L,request:be,fullySpecified:true},`aliased from extension alias with mapping '${P}' to '${R}'`,q,((v,I)=>{if(!ge&&K){if(K!==this.options.alias.length){if(q.log){q.log(`Failed to alias from extension alias with mapping '${P}' to '${R}' for '${be}': ${v}`)}return $(null,I)}return $(v,I)}else{$(v,I)}}))};const stoppingCallback=(v,I)=>{if(v)return K(v);if(I)return K(null,I);return K(null,null)};if(ge){resolve($,stoppingCallback)}else if($.length>1){R($,resolve,stoppingCallback)}else{resolve($[0],stoppingCallback)}}))}}},1839:function(v){"use strict";v.exports=class FileExistsPlugin{constructor(v,I){this.source=v;this.target=I}apply(v){const I=v.ensureHook(this.target);const P=v.fileSystem;v.getHook(this.source).tapAsync("FileExistsPlugin",((R,$,L)=>{const q=R.path;if(!q)return L();P.stat(q,((P,K)=>{if(P||!K){if($.missingDependencies)$.missingDependencies.add(q);if($.log)$.log(q+" doesn't exist");return L()}if(!K.isFile()){if($.missingDependencies)$.missingDependencies.add(q);if($.log)$.log(q+" is not a file");return L()}if($.fileDependencies)$.fileDependencies.add(q);v.doResolve(I,R,"existing file: "+q,$,L)}))}))}}},45579:function(v,I,P){"use strict";const R=P(87966);const $=P(80485);const{processImportsField:L}=P(65848);const{parseIdentifier:q}=P(65212);const{invalidSegmentRegEx:K,deprecatedInvalidSegmentRegEx:ae}=P(49272);const ge=".".charCodeAt(0);v.exports=class ImportsFieldPlugin{constructor(v,I,P,R,$){this.source=v;this.targetFile=R;this.targetPackage=$;this.conditionNames=I;this.fieldName=P;this.fieldProcessorCache=new WeakMap}apply(v){const I=v.ensureHook(this.targetFile);const P=v.ensureHook(this.targetPackage);v.getHook(this.source).tapAsync("ImportsFieldPlugin",((be,xe,ve)=>{if(!be.descriptionFilePath||be.request===undefined){return ve()}const Ce=be.request+be.query+be.fragment;const Ne=R.getField(be.descriptionFileData,this.fieldName);if(!Ne)return ve();if(be.directory){return ve(new Error(`Resolving to directories is not possible with the imports field (request was ${Ce}/)`))}let He;let Qe;try{let v=this.fieldProcessorCache.get(be.descriptionFileData);if(v===undefined){v=L(Ne);this.fieldProcessorCache.set(be.descriptionFileData,v)}[He,Qe]=v(Ce,this.conditionNames)}catch(v){if(xe.log){xe.log(`Imports field in ${be.descriptionFilePath} can't be processed: ${v}`)}return ve(v)}if(He.length===0){return ve(new Error(`Package import ${Ce} is not imported from package ${be.descriptionFileRoot} (see imports field in ${be.descriptionFilePath})`))}$(He,((R,$,L)=>{const ve=q(R);if(!ve)return $();const[Ce,Ne,Je]=ve;switch(Ce.charCodeAt(0)){case ge:{if(K.exec(Ce.slice(2))!==null&&ae.test(Ce.slice(2))!==null){if(He.length===L){return $(new Error(`Invalid "imports" target "${R}" defined for "${Qe}" in the package config ${be.descriptionFilePath}, targets must start with "./"`))}return $()}const P={...be,request:undefined,path:v.join(be.descriptionFileRoot,Ce),relativePath:Ce,query:Ne,fragment:Je};v.doResolve(I,P,"using imports field: "+R,xe,((v,I)=>{if(v)return $(v);if(I===undefined)return $(null,null);$(null,I)}));break}default:{const I={...be,request:Ce,relativePath:Ce,fullySpecified:true,query:Ne,fragment:Je};v.doResolve(P,I,"using imports field: "+R,xe,((v,I)=>{if(v)return $(v);if(I===undefined)return $(null,null);$(null,I)}))}}}),((v,I)=>ve(v,I||null)))}))}}},50092:function(v){"use strict";const I="@".charCodeAt(0);v.exports=class JoinRequestPartPlugin{constructor(v,I){this.source=v;this.target=I}apply(v){const P=v.ensureHook(this.target);v.getHook(this.source).tapAsync("JoinRequestPartPlugin",((R,$,L)=>{const q=R.request||"";let K=q.indexOf("/",3);if(K>=0&&q.charCodeAt(2)===I){K=q.indexOf("/",K+1)}let ae;let ge;let be;if(K<0){ae=q;ge=".";be=false}else{ae=q.slice(0,K);ge="."+q.slice(K);be=R.fullySpecified}const xe={...R,path:v.join(R.path,ae),relativePath:R.relativePath&&v.join(R.relativePath,ae),request:ge,fullySpecified:be};v.doResolve(P,xe,null,$,L)}))}}},67466:function(v){"use strict";v.exports=class JoinRequestPlugin{constructor(v,I){this.source=v;this.target=I}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("JoinRequestPlugin",((P,R,$)=>{const L=P.path;const q=P.request;const K={...P,path:v.join(L,q),relativePath:P.relativePath&&v.join(P.relativePath,q),request:undefined};v.doResolve(I,K,null,R,$)}))}}},77562:function(v){"use strict";v.exports=class LogInfoPlugin{constructor(v){this.source=v}apply(v){const I=this.source;v.getHook(this.source).tapAsync("LogInfoPlugin",((v,P,R)=>{if(!P.log)return R();const $=P.log;const L="["+I+"] ";if(v.path)$(L+"Resolving in directory: "+v.path);if(v.request)$(L+"Resolving request: "+v.request);if(v.module)$(L+"Request is an module request.");if(v.directory)$(L+"Request is a directory request.");if(v.query)$(L+"Resolving request query: "+v.query);if(v.fragment)$(L+"Resolving request fragment: "+v.fragment);if(v.descriptionFilePath)$(L+"Has description data from "+v.descriptionFilePath);if(v.relativePath)$(L+"Relative path from description file is: "+v.relativePath);R()}))}}},92841:function(v,I,P){"use strict";const R=P(71017);const $=P(87966);const L=Symbol("alreadyTriedMainField");v.exports=class MainFieldPlugin{constructor(v,I,P){this.source=v;this.options=I;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("MainFieldPlugin",((P,q,K)=>{if(P.path!==P.descriptionFileRoot||P[L]===P.descriptionFilePath||!P.descriptionFilePath)return K();const ae=R.basename(P.descriptionFilePath);let ge=$.getField(P.descriptionFileData,this.options.name);if(!ge||typeof ge!=="string"||ge==="."||ge==="./"){return K()}if(this.options.forceRelative&&!/^\.\.?\//.test(ge))ge="./"+ge;const be={...P,request:ge,module:false,directory:ge.endsWith("/"),[L]:P.descriptionFilePath};return v.doResolve(I,be,"use "+ge+" from "+this.options.name+" in "+ae,q,K)}))}}},16134:function(v,I,P){"use strict";const R=P(80485);const $=P(6516);v.exports=class ModulesInHierarchicalDirectoriesPlugin{constructor(v,I,P){this.source=v;this.directories=[].concat(I);this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("ModulesInHierarchicalDirectoriesPlugin",((P,L,q)=>{const K=v.fileSystem;const ae=$(P.path).paths.map((I=>this.directories.map((P=>v.join(I,P))))).reduce(((v,I)=>{v.push.apply(v,I);return v}),[]);R(ae,((R,$)=>{K.stat(R,((q,K)=>{if(!q&&K&&K.isDirectory()){const q={...P,path:R,request:"./"+P.request,module:false};const K="looking for modules in "+R;return v.doResolve(I,q,K,L,$)}if(L.log)L.log(R+" doesn't exist or is not a directory");if(L.missingDependencies)L.missingDependencies.add(R);return $()}))}),q)}))}}},60043:function(v){"use strict";v.exports=class ModulesInRootPlugin{constructor(v,I,P){this.source=v;this.path=I;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("ModulesInRootPlugin",((P,R,$)=>{const L={...P,path:this.path,request:"./"+P.request,module:false};v.doResolve(I,L,"looking for modules in "+this.path,R,$)}))}}},4550:function(v){"use strict";v.exports=class NextPlugin{constructor(v,I){this.source=v;this.target=I}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("NextPlugin",((P,R,$)=>{v.doResolve(I,P,null,R,$)}))}}},53850:function(v){"use strict";v.exports=class ParsePlugin{constructor(v,I,P){this.source=v;this.requestOptions=I;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("ParsePlugin",((P,R,$)=>{const L=v.parse(P.request);const q={...P,...L,...this.requestOptions};if(P.query&&!L.query){q.query=P.query}if(P.fragment&&!L.fragment){q.fragment=P.fragment}if(L&&R.log){if(L.module)R.log("Parsed request is a module");if(L.directory)R.log("Parsed request is a directory")}if(q.request&&!q.query&&q.fragment){const P=q.fragment.endsWith("/");const L={...q,directory:P,request:q.request+(q.directory?"/":"")+(P?q.fragment.slice(0,-1):q.fragment),fragment:""};v.doResolve(I,L,null,R,((P,L)=>{if(P)return $(P);if(L)return $(null,L);v.doResolve(I,q,null,R,$)}));return}v.doResolve(I,q,null,R,$)}))}}},5122:function(v){"use strict";v.exports=class PnpPlugin{constructor(v,I,P,R){this.source=v;this.pnpApi=I;this.target=P;this.alternateTarget=R}apply(v){const I=v.ensureHook(this.target);const P=v.ensureHook(this.alternateTarget);v.getHook(this.source).tapAsync("PnpPlugin",((R,$,L)=>{const q=R.request;if(!q)return L();const K=`${R.path}/`;const ae=/^(@[^/]+\/)?[^/]+/.exec(q);if(!ae)return L();const ge=ae[0];const be=`.${q.slice(ge.length)}`;let xe;let ve;try{xe=this.pnpApi.resolveToUnqualified(ge,K,{considerBuiltins:false});if(xe===null){v.doResolve(P,R,"issuer is not managed by a pnpapi",$,((v,I)=>{if(v)return L(v);if(I)return L(null,I);return L(null,null)}));return}if($.fileDependencies){ve=this.pnpApi.resolveToUnqualified("pnpapi",K,{considerBuiltins:false})}}catch(v){if(v.code==="MODULE_NOT_FOUND"&&v.pnpCode==="UNDECLARED_DEPENDENCY"){if($.log){$.log(`request is not managed by the pnpapi`);for(const I of v.message.split("\n").filter(Boolean))$.log(` ${I}`)}return L()}return L(v)}if(xe===ge)return L();if(ve&&$.fileDependencies){$.fileDependencies.add(ve)}const Ce={...R,path:xe,request:be,ignoreSymlinks:true,fullySpecified:R.fullySpecified&&be!=="."};v.doResolve(I,Ce,`resolved by pnp to ${xe}`,$,((v,I)=>{if(v)return L(v);if(I)return L(null,I);return L(null,null)}))}))}}},2073:function(v,I,P){"use strict";const{AsyncSeriesBailHook:R,AsyncSeriesHook:$,SyncHook:L}=P(84891);const q=P(66691);const{parseIdentifier:K}=P(65212);const{normalize:ae,cachedJoin:ge,getType:be,PathType:xe}=P(49272);function toCamelCase(v){return v.replace(/-([a-z])/g,(v=>v.slice(1).toUpperCase()))}class Resolver{static createStackEntry(v,I){return v.name+": ("+I.path+") "+(I.request||"")+(I.query||"")+(I.fragment||"")+(I.directory?" directory":"")+(I.module?" module":"")}constructor(v,I){this.fileSystem=v;this.options=I;this.hooks={resolveStep:new L(["hook","request"],"resolveStep"),noResolve:new L(["request","error"],"noResolve"),resolve:new R(["request","resolveContext"],"resolve"),result:new $(["result","resolveContext"],"result")}}ensureHook(v){if(typeof v!=="string"){return v}v=toCamelCase(v);if(/^before/.test(v)){return this.ensureHook(v[6].toLowerCase()+v.slice(7)).withOptions({stage:-10})}if(/^after/.test(v)){return this.ensureHook(v[5].toLowerCase()+v.slice(6)).withOptions({stage:10})}const I=this.hooks[v];if(!I){this.hooks[v]=new R(["request","resolveContext"],v);return this.hooks[v]}return I}getHook(v){if(typeof v!=="string"){return v}v=toCamelCase(v);if(/^before/.test(v)){return this.getHook(v[6].toLowerCase()+v.slice(7)).withOptions({stage:-10})}if(/^after/.test(v)){return this.getHook(v[5].toLowerCase()+v.slice(6)).withOptions({stage:10})}const I=this.hooks[v];if(!I){throw new Error(`Hook ${v} doesn't exist`)}return I}resolveSync(v,I,P){let R=undefined;let $=undefined;let L=false;this.resolve(v,I,P,{},((v,I)=>{R=v;$=I;L=true}));if(!L){throw new Error("Cannot 'resolveSync' because the fileSystem is not sync. Use 'resolve'!")}if(R)throw R;if($===undefined)throw new Error("No result");return $}resolve(v,I,P,R,$){if(!v||typeof v!=="object")return $(new Error("context argument is not an object"));if(typeof I!=="string")return $(new Error("path argument is not a string"));if(typeof P!=="string")return $(new Error("request argument is not a string"));if(!R)return $(new Error("resolveContext argument is not set"));const L={context:v,path:I,request:P};let q;let K=false;let ae;if(typeof R.yield==="function"){const v=R.yield;q=I=>{v(I);K=true};ae=v=>{if(v){q(v)}$(null)}}const ge=`resolve '${P}' in '${I}'`;const finishResolved=v=>$(null,v.path===false?false:`${v.path.replace(/#/g,"\0#")}${v.query?v.query.replace(/#/g,"\0#"):""}${v.fragment||""}`,v);const finishWithoutResolve=v=>{const I=new Error("Can't "+ge);I.details=v.join("\n");this.hooks.noResolve.call(L,I);return $(I)};if(R.log){const v=R.log;const I=[];return this.doResolve(this.hooks.resolve,L,ge,{log:P=>{v(P);I.push(P)},yield:q,fileDependencies:R.fileDependencies,contextDependencies:R.contextDependencies,missingDependencies:R.missingDependencies,stack:R.stack},((v,P)=>{if(v)return $(v);if(K||P&&q){return ae(P)}if(P)return finishResolved(P);return finishWithoutResolve(I)}))}else{return this.doResolve(this.hooks.resolve,L,ge,{log:undefined,yield:q,fileDependencies:R.fileDependencies,contextDependencies:R.contextDependencies,missingDependencies:R.missingDependencies,stack:R.stack},((v,I)=>{if(v)return $(v);if(K||I&&q){return ae(I)}if(I)return finishResolved(I);const P=[];return this.doResolve(this.hooks.resolve,L,ge,{log:v=>P.push(v),yield:q,stack:R.stack},((v,I)=>{if(v)return $(v);if(K||I&&q){return ae(I)}return finishWithoutResolve(P)}))}))}}doResolve(v,I,P,R,$){const L=Resolver.createStackEntry(v,I);let K;if(R.stack){K=new Set(R.stack);if(R.stack.has(L)){const v=new Error("Recursion in resolving\nStack:\n "+Array.from(K).join("\n "));v.recursion=true;if(R.log)R.log("abort resolving because of recursion");return $(v)}K.add(L)}else{K=new Set;K.add(L)}this.hooks.resolveStep.call(v,I);if(v.isUsed()){const L=q({log:R.log,yield:R.yield,fileDependencies:R.fileDependencies,contextDependencies:R.contextDependencies,missingDependencies:R.missingDependencies,stack:K},P);return v.callAsync(I,L,((v,I)=>{if(v)return $(v);if(I)return $(null,I);$()}))}else{$()}}parse(v){const I={request:"",query:"",fragment:"",module:false,directory:false,file:false,internal:false};const P=K(v);if(!P)return I;[I.request,I.query,I.fragment]=P;if(I.request.length>0){I.internal=this.isPrivate(v);I.module=this.isModule(I.request);I.directory=this.isDirectory(I.request);if(I.directory){I.request=I.request.slice(0,-1)}}return I}isModule(v){return be(v)===xe.Normal}isPrivate(v){return be(v)===xe.Internal}isDirectory(v){return v.endsWith("/")}join(v,I){return ge(v,I)}normalize(v){return ae(v)}}v.exports=Resolver},96108:function(v,I,P){"use strict";const R=P(77282).versions;const $=P(2073);const{getType:L,PathType:q}=P(49272);const K=P(76445);const ae=P(62553);const ge=P(16719);const be=P(18115);const xe=P(87853);const ve=P(5892);const Ce=P(39814);const Ne=P(83885);const He=P(9513);const Qe=P(1839);const Je=P(45579);const Ve=P(50092);const Ke=P(67466);const Ye=P(92841);const Xe=P(16134);const Ze=P(60043);const et=P(4550);const tt=P(53850);const nt=P(5122);const st=P(22634);const rt=P(71452);const ot=P(5872);const it=P(18660);const at=P(88791);const ct=P(53545);const lt=P(73566);const ut=P(87661);function processPnpApiOption(v){if(v===undefined&&R.pnp){const v=P(98188).findPnpApi;if(v){return{resolveToUnqualified(I,P,R){const $=v(P);if(!$){return null}return $.resolveToUnqualified(I,P,R)}}}}return v||null}function normalizeAlias(v){return typeof v==="object"&&!Array.isArray(v)&&v!==null?Object.keys(v).map((I=>{const P={name:I,onlyModule:false,alias:v[I]};if(/\$$/.test(I)){P.onlyModule=true;P.name=I.slice(0,-1)}return P})):v||[]}function createOptions(v){const I=new Set(v.mainFields||["main"]);const P=[];for(const v of I){if(typeof v==="string"){P.push({name:[v],forceRelative:true})}else if(Array.isArray(v)){P.push({name:v,forceRelative:true})}else{P.push({name:Array.isArray(v.name)?v.name:[v.name],forceRelative:v.forceRelative})}}return{alias:normalizeAlias(v.alias),fallback:normalizeAlias(v.fallback),aliasFields:new Set(v.aliasFields),cachePredicate:v.cachePredicate||function(){return true},cacheWithContext:typeof v.cacheWithContext!=="undefined"?v.cacheWithContext:true,exportsFields:new Set(v.exportsFields||["exports"]),importsFields:new Set(v.importsFields||["imports"]),conditionNames:new Set(v.conditionNames),descriptionFiles:Array.from(new Set(v.descriptionFiles||["package.json"])),enforceExtension:v.enforceExtension===undefined?v.extensions&&v.extensions.includes("")?true:false:v.enforceExtension,extensions:new Set(v.extensions||[".js",".json",".node"]),extensionAlias:v.extensionAlias?Object.keys(v.extensionAlias).map((I=>({extension:I,alias:v.extensionAlias[I]}))):[],fileSystem:v.useSyncFileSystemCalls?new K(v.fileSystem):v.fileSystem,unsafeCache:v.unsafeCache&&typeof v.unsafeCache!=="object"?{}:v.unsafeCache||false,symlinks:typeof v.symlinks!=="undefined"?v.symlinks:true,resolver:v.resolver,modules:mergeFilteredToArray(Array.isArray(v.modules)?v.modules:v.modules?[v.modules]:["node_modules"],(v=>{const I=L(v);return I===q.Normal||I===q.Relative})),mainFields:P,mainFiles:new Set(v.mainFiles||["index"]),plugins:v.plugins||[],pnpApi:processPnpApiOption(v.pnpApi),roots:new Set(v.roots||undefined),fullySpecified:v.fullySpecified||false,resolveToContext:v.resolveToContext||false,preferRelative:v.preferRelative||false,preferAbsolute:v.preferAbsolute||false,restrictions:new Set(v.restrictions)}}I.createResolver=function(v){const I=createOptions(v);const{alias:P,fallback:R,aliasFields:L,cachePredicate:q,cacheWithContext:K,conditionNames:pt,descriptionFiles:dt,enforceExtension:ft,exportsFields:ht,extensionAlias:mt,importsFields:gt,extensions:yt,fileSystem:bt,fullySpecified:xt,mainFields:kt,mainFiles:vt,modules:wt,plugins:Ct,pnpApi:Et,resolveToContext:At,preferRelative:St,preferAbsolute:_t,symlinks:It,unsafeCache:Pt,resolver:Mt,restrictions:Ot,roots:Dt}=I;const Rt=Ct.slice();const Tt=Mt?Mt:new $(bt,I);Tt.ensureHook("resolve");Tt.ensureHook("internalResolve");Tt.ensureHook("newInternalResolve");Tt.ensureHook("parsedResolve");Tt.ensureHook("describedResolve");Tt.ensureHook("rawResolve");Tt.ensureHook("normalResolve");Tt.ensureHook("internal");Tt.ensureHook("rawModule");Tt.ensureHook("alternateRawModule");Tt.ensureHook("module");Tt.ensureHook("resolveAsModule");Tt.ensureHook("undescribedResolveInPackage");Tt.ensureHook("resolveInPackage");Tt.ensureHook("resolveInExistingDirectory");Tt.ensureHook("relative");Tt.ensureHook("describedRelative");Tt.ensureHook("directory");Tt.ensureHook("undescribedExistingDirectory");Tt.ensureHook("existingDirectory");Tt.ensureHook("undescribedRawFile");Tt.ensureHook("rawFile");Tt.ensureHook("file");Tt.ensureHook("finalFile");Tt.ensureHook("existingFile");Tt.ensureHook("resolved");Tt.hooks.newInteralResolve=Tt.hooks.newInternalResolve;for(const{source:v,resolveOptions:I}of[{source:"resolve",resolveOptions:{fullySpecified:xt}},{source:"internal-resolve",resolveOptions:{fullySpecified:false}}]){if(Pt){Rt.push(new lt(v,q,Pt,K,`new-${v}`));Rt.push(new tt(`new-${v}`,I,"parsed-resolve"))}else{Rt.push(new tt(v,I,"parsed-resolve"))}}Rt.push(new ve("parsed-resolve",dt,false,"described-resolve"));Rt.push(new et("after-parsed-resolve","described-resolve"));Rt.push(new et("described-resolve","raw-resolve"));if(R.length>0){Rt.push(new ge("described-resolve",R,"internal-resolve"))}if(P.length>0){Rt.push(new ge("raw-resolve",P,"internal-resolve"))}L.forEach((v=>{Rt.push(new ae("raw-resolve",v,"internal-resolve"))}));mt.forEach((v=>Rt.push(new He("raw-resolve",v,"normal-resolve"))));Rt.push(new et("raw-resolve","normal-resolve"));if(St){Rt.push(new Ke("after-normal-resolve","relative"))}Rt.push(new xe("after-normal-resolve",{module:true},"resolve as module",false,"raw-module"));Rt.push(new xe("after-normal-resolve",{internal:true},"resolve as internal import",false,"internal"));if(_t){Rt.push(new Ke("after-normal-resolve","relative"))}if(Dt.size>0){Rt.push(new ot("after-normal-resolve",Dt,"relative"))}if(!St&&!_t){Rt.push(new Ke("after-normal-resolve","relative"))}gt.forEach((v=>{Rt.push(new Je("internal",pt,v,"relative","internal-resolve"))}));ht.forEach((v=>{Rt.push(new it("raw-module",v,"resolve-as-module"))}));wt.forEach((v=>{if(Array.isArray(v)){if(v.includes("node_modules")&&Et){Rt.push(new Xe("raw-module",v.filter((v=>v!=="node_modules")),"module"));Rt.push(new nt("raw-module",Et,"undescribed-resolve-in-package","alternate-raw-module"));Rt.push(new Xe("alternate-raw-module",["node_modules"],"module"))}else{Rt.push(new Xe("raw-module",v,"module"))}}else{Rt.push(new Ze("raw-module",v,"module"))}}));Rt.push(new Ve("module","resolve-as-module"));if(!At){Rt.push(new xe("resolve-as-module",{directory:false,request:"."},"single file module",true,"undescribed-raw-file"))}Rt.push(new Ce("resolve-as-module","undescribed-resolve-in-package"));Rt.push(new ve("undescribed-resolve-in-package",dt,false,"resolve-in-package"));Rt.push(new et("after-undescribed-resolve-in-package","resolve-in-package"));ht.forEach((v=>{Rt.push(new Ne("resolve-in-package",pt,v,"relative"))}));Rt.push(new et("resolve-in-package","resolve-in-existing-directory"));Rt.push(new Ke("resolve-in-existing-directory","relative"));Rt.push(new ve("relative",dt,true,"described-relative"));Rt.push(new et("after-relative","described-relative"));if(At){Rt.push(new et("described-relative","directory"))}else{Rt.push(new xe("described-relative",{directory:false},null,true,"raw-file"));Rt.push(new xe("described-relative",{fullySpecified:false},"as directory",true,"directory"))}Rt.push(new Ce("directory","undescribed-existing-directory"));if(At){Rt.push(new et("undescribed-existing-directory","resolved"))}else{Rt.push(new ve("undescribed-existing-directory",dt,false,"existing-directory"));vt.forEach((v=>{Rt.push(new ut("undescribed-existing-directory",v,"undescribed-raw-file"))}));kt.forEach((v=>{Rt.push(new Ye("existing-directory",v,"resolve-in-existing-directory"))}));vt.forEach((v=>{Rt.push(new ut("existing-directory",v,"undescribed-raw-file"))}));Rt.push(new ve("undescribed-raw-file",dt,true,"raw-file"));Rt.push(new et("after-undescribed-raw-file","raw-file"));Rt.push(new xe("raw-file",{fullySpecified:true},null,false,"file"));if(!ft){Rt.push(new ct("raw-file","no extension","file"))}yt.forEach((v=>{Rt.push(new be("raw-file",v,"file"))}));if(P.length>0)Rt.push(new ge("file",P,"internal-resolve"));L.forEach((v=>{Rt.push(new ae("file",v,"internal-resolve"))}));Rt.push(new et("file","final-file"));Rt.push(new Qe("final-file","existing-file"));if(It)Rt.push(new at("existing-file","existing-file"));Rt.push(new et("existing-file","resolved"))}const $t=Tt.hooks.resolved;if(Ot.size>0){Rt.push(new st($t,Ot))}Rt.push(new rt($t));for(const v of Rt){if(typeof v==="function"){v.call(Tt,Tt)}else if(v){v.apply(Tt)}}return Tt};function mergeFilteredToArray(v,I){const P=[];const R=new Set(v);for(const v of R){if(I(v)){const I=P.length>0?P[P.length-1]:undefined;if(Array.isArray(I)){I.push(v)}else{P.push([v])}}else{P.push(v)}}return P}},22634:function(v){"use strict";const I="/".charCodeAt(0);const P="\\".charCodeAt(0);const isInside=(v,R)=>{if(!v.startsWith(R))return false;if(v.length===R.length)return true;const $=v.charCodeAt(R.length);return $===I||$===P};v.exports=class RestrictionsPlugin{constructor(v,I){this.source=v;this.restrictions=I}apply(v){v.getHook(this.source).tapAsync("RestrictionsPlugin",((v,I,P)=>{if(typeof v.path==="string"){const R=v.path;for(const v of this.restrictions){if(typeof v==="string"){if(!isInside(R,v)){if(I.log){I.log(`${R} is not inside of the restriction ${v}`)}return P(null,null)}}else if(!v.test(R)){if(I.log){I.log(`${R} doesn't match the restriction ${v}`)}return P(null,null)}}}P()}))}}},71452:function(v){"use strict";v.exports=class ResultPlugin{constructor(v){this.source=v}apply(v){this.source.tapAsync("ResultPlugin",((I,P,R)=>{const $={...I};if(P.log)P.log("reporting result "+$.path);v.hooks.result.callAsync($,P,(v=>{if(v)return R(v);if(typeof P.yield==="function"){P.yield($);R(null,null)}else{R(null,$)}}))}))}}},5872:function(v,I,P){"use strict";const R=P(80485);class RootsPlugin{constructor(v,I,P){this.roots=Array.from(I);this.source=v;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("RootsPlugin",((P,$,L)=>{const q=P.request;if(!q)return L();if(!q.startsWith("/"))return L();R(this.roots,((R,L)=>{const K=v.join(R,q.slice(1));const ae={...P,path:K,relativePath:P.relativePath&&K};v.doResolve(I,ae,`root path ${R}`,$,L)}),L)}))}}v.exports=RootsPlugin},18660:function(v,I,P){"use strict";const R=P(87966);const $="/".charCodeAt(0);v.exports=class SelfReferencePlugin{constructor(v,I,P){this.source=v;this.target=P;this.fieldName=I}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("SelfReferencePlugin",((P,L,q)=>{if(!P.descriptionFilePath)return q();const K=P.request;if(!K)return q();const ae=R.getField(P.descriptionFileData,this.fieldName);if(!ae)return q();const ge=R.getField(P.descriptionFileData,"name");if(typeof ge!=="string")return q();if(K.startsWith(ge)&&(K.length===ge.length||K.charCodeAt(ge.length)===$)){const R=`.${K.slice(ge.length)}`;const $={...P,request:R,path:P.descriptionFileRoot,relativePath:"."};v.doResolve(I,$,"self reference",L,q)}else{return q()}}))}}},88791:function(v,I,P){"use strict";const R=P(80485);const $=P(6516);const{getType:L,PathType:q}=P(49272);v.exports=class SymlinkPlugin{constructor(v,I){this.source=v;this.target=I}apply(v){const I=v.ensureHook(this.target);const P=v.fileSystem;v.getHook(this.source).tapAsync("SymlinkPlugin",((K,ae,ge)=>{if(K.ignoreSymlinks)return ge();const be=$(K.path);const xe=be.segments;const ve=be.paths;let Ce=false;let Ne=-1;R(ve,((v,I)=>{Ne++;if(ae.fileDependencies)ae.fileDependencies.add(v);P.readlink(v,((v,P)=>{if(!v&&P){xe[Ne]=P;Ce=true;const v=L(P.toString());if(v===q.AbsoluteWin||v===q.AbsolutePosix){return I(null,Ne)}}I()}))}),((P,R)=>{if(!Ce)return ge();const $=typeof R==="number"?xe.slice(0,R+1):xe.slice();const L=$.reduceRight(((I,P)=>v.join(I,P)));const q={...K,path:L};v.doResolve(I,q,"resolved symlink to "+L,ae,ge)}))}))}}},76445:function(v){"use strict";function SyncAsyncFileSystemDecorator(v){this.fs=v;this.lstat=undefined;this.lstatSync=undefined;const I=v.lstatSync;if(I){this.lstat=(P,R,$)=>{let L;try{L=$?I.call(v,P,R):I.call(v,P)}catch(v){return($||R)(v)}($||R)(null,L)};this.lstatSync=(P,R)=>I.call(v,P,R)}this.stat=(I,P,R)=>{let $;try{$=R?v.statSync(I,P):v.statSync(I)}catch(v){return(R||P)(v)}(R||P)(null,$)};this.statSync=(I,P)=>v.statSync(I,P);this.readdir=(I,P,R)=>{let $;try{$=R?v.readdirSync(I,P):v.readdirSync(I)}catch(v){return(R||P)(v)}(R||P)(null,$)};this.readdirSync=(I,P)=>v.readdirSync(I,P);this.readFile=(I,P,R)=>{let $;try{$=R?v.readFileSync(I,P):v.readFileSync(I)}catch(v){return(R||P)(v)}(R||P)(null,$)};this.readFileSync=(I,P)=>v.readFileSync(I,P);this.readlink=(I,P,R)=>{let $;try{$=R?v.readlinkSync(I,P):v.readlinkSync(I)}catch(v){return(R||P)(v)}(R||P)(null,$)};this.readlinkSync=(I,P)=>v.readlinkSync(I,P);this.readJson=undefined;this.readJsonSync=undefined;const P=v.readJsonSync;if(P){this.readJson=(I,R)=>{let $;try{$=P.call(v,I)}catch(v){return R(v)}R(null,$)};this.readJsonSync=I=>P.call(v,I)}this.realpath=undefined;this.realpathSync=undefined;const R=v.realpathSync;if(R){this.realpath=(I,P,$)=>{let L;try{L=$?R.call(v,I,P):R.call(v,I)}catch(v){return($||P)(v)}($||P)(null,L)};this.realpathSync=(I,P)=>R.call(v,I,P)}}v.exports=SyncAsyncFileSystemDecorator},53545:function(v){"use strict";v.exports=class TryNextPlugin{constructor(v,I,P){this.source=v;this.message=I;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("TryNextPlugin",((P,R,$)=>{v.doResolve(I,P,this.message,R,$)}))}}},73566:function(v){"use strict";function getCacheId(v,I,P){return JSON.stringify({type:v,context:P?I.context:"",path:I.path,query:I.query,fragment:I.fragment,request:I.request})}v.exports=class UnsafeCachePlugin{constructor(v,I,P,R,$){this.source=v;this.filterPredicate=I;this.withContext=R;this.cache=P;this.target=$}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("UnsafeCachePlugin",((P,R,$)=>{if(!this.filterPredicate(P))return $();const L=typeof R.yield==="function";const q=getCacheId(L?"yield":"default",P,this.withContext);const K=this.cache[q];if(K){if(L){const v=R.yield;if(Array.isArray(K)){for(const I of K)v(I)}else{v(K)}return $(null,null)}return $(null,K)}let ae;let ge;const be=[];if(L){ae=R.yield;ge=v=>{be.push(v)}}v.doResolve(I,P,null,ge?{...R,yield:ge}:R,((v,I)=>{if(v)return $(v);if(L){if(I)be.push(I);for(const v of be){ae(v)}this.cache[q]=be;return $(null,null)}if(I)return $(null,this.cache[q]=I);$()}))}))}}},87661:function(v){"use strict";v.exports=class UseFilePlugin{constructor(v,I,P){this.source=v;this.filename=I;this.target=P}apply(v){const I=v.ensureHook(this.target);v.getHook(this.source).tapAsync("UseFilePlugin",((P,R,$)=>{const L=v.join(P.path,this.filename);const q={...P,path:L,relativePath:P.relativePath&&v.join(P.relativePath,this.filename)};v.doResolve(I,q,"using path: "+L,R,$)}))}}},66691:function(v){"use strict";v.exports=function createInnerContext(v,I){let P=false;let R=undefined;if(v.log){if(I){R=R=>{if(!P){v.log(I);P=true}v.log(" "+R)}}else{R=v.log}}return{log:R,yield:v.yield,fileDependencies:v.fileDependencies,contextDependencies:v.contextDependencies,missingDependencies:v.missingDependencies,stack:v.stack}}},80485:function(v){"use strict";v.exports=function forEachBail(v,I,P){if(v.length===0)return P();let R=0;const next=()=>{let $=undefined;I(v[R++],((I,L)=>{if(I||L!==undefined||R>=v.length){return P(I,L,R)}if($===false)while(next());$=true}),R);if(!$)$=false;return $};while(next());}},26972:function(v){"use strict";v.exports=function getInnerRequest(v,I){if(typeof I.__innerRequest==="string"&&I.__innerRequest_request===I.request&&I.__innerRequest_relativePath===I.relativePath)return I.__innerRequest;let P;if(I.request){P=I.request;if(/^\.\.?(?:\/|$)/.test(P)&&I.relativePath){P=v.join(I.relativePath,P)}}else{P=I.relativePath}I.__innerRequest_request=I.request;I.__innerRequest_relativePath=I.relativePath;return I.__innerRequest=P}},6516:function(v){"use strict";v.exports=function getPaths(v){if(v==="/")return{paths:["/"],segments:[""]};const I=v.split(/(.*?[\\/]+)/);const P=[v];const R=[I[I.length-1]];let $=I[I.length-1];v=v.substring(0,v.length-$.length-1);for(let L=I.length-2;L>2;L-=2){P.push(v);$=I[L];v=v.substring(0,v.length-$.length)||"/";R.push($.slice(0,-1))}$=I[1];R.push($);P.push($);return{paths:P,segments:R}};v.exports.basename=function basename(v){const I=v.lastIndexOf("/"),P=v.lastIndexOf("\\");const R=I<0?P:P<0?I:I<P?P:I;if(R<0)return null;const $=v.slice(R+1);return $}},90878:function(v,I,P){"use strict";const R=P(56450);const $=P(56631);const L=P(96108);const q=new $(R,4e3);const K={environments:["node+es3+es5+process+native"]};const ae=L.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],fileSystem:q});const resolve=(v,I,P,R,$)=>{if(typeof v==="string"){$=R;R=P;P=I;I=v;v=K}if(typeof $!=="function"){$=R}ae.resolve(v,I,P,R,$)};const ge=L.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],useSyncFileSystemCalls:true,fileSystem:q});const resolveSync=(v,I,P)=>{if(typeof v==="string"){P=I;I=v;v=K}return ge.resolveSync(v,I,P)};function create(v){const I=L.createResolver({fileSystem:q,...v});return function(v,P,R,$,L){if(typeof v==="string"){L=$;$=R;R=P;P=v;v=K}if(typeof L!=="function"){L=$}I.resolve(v,P,R,$,L)}}function createSync(v){const I=L.createResolver({useSyncFileSystemCalls:true,fileSystem:q,...v});return function(v,P,R){if(typeof v==="string"){R=P;P=v;v=K}return I.resolveSync(v,P,R)}}const mergeExports=(v,I)=>{const P=Object.getOwnPropertyDescriptors(I);Object.defineProperties(v,P);return Object.freeze(v)};v.exports=mergeExports(resolve,{get sync(){return resolveSync},create:mergeExports(create,{get sync(){return createSync}}),ResolverFactory:L,CachedInputFileSystem:$,get CloneBasenamePlugin(){return P(93640)},get LogInfoPlugin(){return P(77562)},get forEachBail(){return P(80485)}})},65848:function(v,I,P){"use strict";const{parseIdentifier:R}=P(65212);const $="/".charCodeAt(0);const L=".".charCodeAt(0);const q="#".charCodeAt(0);const K=/\*/g;v.exports.processExportsField=function processExportsField(v){return createFieldProcessor(buildExportsField(v),(v=>v.length===0?".":"./"+v),assertExportsFieldRequest,assertExportTarget)};v.exports.processImportsField=function processImportsField(v){return createFieldProcessor(v,(v=>"#"+v),assertImportsFieldRequest,assertImportTarget)};function createFieldProcessor(v,I,P,R){return function fieldProcessor($,L){$=P($);const q=findMatch(I($),v);if(q===null)return[[],null];const[K,ae,ge,be,xe]=q;let ve=null;if(isConditionalMapping(K)){ve=conditionalMapping(K,L);if(ve===null)return[[],null]}else{ve=K}return[directMapping(ae,be,ge,ve,L,R),xe]}}function assertExportsFieldRequest(v){if(v.charCodeAt(0)!==L){throw new Error('Request should be relative path and start with "."')}if(v.length===1)return"";if(v.charCodeAt(1)!==$){throw new Error('Request should be relative path and start with "./"')}if(v.charCodeAt(v.length-1)===$){throw new Error("Only requesting file allowed")}return v.slice(2)}function assertImportsFieldRequest(v){if(v.charCodeAt(0)!==q){throw new Error('Request should start with "#"')}if(v.length===1){throw new Error("Request should have at least 2 characters")}if(v.charCodeAt(1)===$){throw new Error('Request should not start with "#/"')}if(v.charCodeAt(v.length-1)===$){throw new Error("Only requesting file allowed")}return v.slice(1)}function assertExportTarget(v,I){const P=R(v);if(!P){return}const[L]=P;const q=L.charCodeAt(L.length-1)===$;if(q!==I){throw new Error(I?`Expecting folder to folder mapping. ${JSON.stringify(v)} should end with "/"`:`Expecting file to file mapping. ${JSON.stringify(v)} should not end with "/"`)}}function assertImportTarget(v,I){const P=R(v);if(!P){return}const[L]=P;const q=L.charCodeAt(L.length-1)===$;if(q!==I){throw new Error(I?`Expecting folder to folder mapping. ${JSON.stringify(v)} should end with "/"`:`Expecting file to file mapping. ${JSON.stringify(v)} should not end with "/"`)}}function patternKeyCompare(v,I){const P=v.indexOf("*");const R=I.indexOf("*");const $=P===-1?v.length:P+1;const L=R===-1?I.length:R+1;if($>L)return-1;if(L>$)return 1;if(P===-1)return 1;if(R===-1)return-1;if(v.length>I.length)return-1;if(I.length>v.length)return 1;return 0}function findMatch(v,I){if(Object.prototype.hasOwnProperty.call(I,v)&&!v.includes("*")&&!v.endsWith("/")){const P=I[v];return[P,"",false,false,v]}let P="";let R;const $=Object.getOwnPropertyNames(I);for(let I=0;I<$.length;I++){const L=$[I];const q=L.indexOf("*");if(q!==-1&&v.startsWith(L.slice(0,q))){const I=L.slice(q+1);if(v.length>=L.length&&v.endsWith(I)&&patternKeyCompare(P,L)===1&&L.lastIndexOf("*")===q){P=L;R=v.slice(q,v.length-I.length)}}else if(L[L.length-1]==="/"&&v.startsWith(L)&&patternKeyCompare(P,L)===1){P=L;R=v.slice(L.length)}}if(P==="")return null;const L=I[P];const q=P.endsWith("/");const K=P.includes("*");return[L,R,q,K,P]}function isConditionalMapping(v){return v!==null&&typeof v==="object"&&!Array.isArray(v)}function directMapping(v,I,P,R,$,L){if(R===null)return[];if(typeof R==="string"){return[targetMapping(v,I,P,R,L)]}const q=[];for(const K of R){if(typeof K==="string"){q.push(targetMapping(v,I,P,K,L));continue}const R=conditionalMapping(K,$);if(!R)continue;const ae=directMapping(v,I,P,R,$,L);for(const v of ae){q.push(v)}}return q}function targetMapping(v,I,P,R,$){if(v===undefined){$(R,false);return R}if(P){$(R,true);return R+v}$(R,false);let L=R;if(I){L=L.replace(K,v.replace(/\$/g,"$$"))}return L}function conditionalMapping(v,I){let P=[[v,Object.keys(v),0]];e:while(P.length>0){const[v,R,$]=P[P.length-1];for(let L=$;L<R.length;L++){const $=R[L];if($==="default"){const I=v[$];if(isConditionalMapping(I)){const v=I;P[P.length-1][2]=L+1;P.push([v,Object.keys(v),0]);continue e}return I}if(I.has($)){const I=v[$];if(isConditionalMapping(I)){const v=I;P[P.length-1][2]=L+1;P.push([v,Object.keys(v),0]);continue e}return I}}P.pop()}return null}function buildExportsField(v){if(typeof v==="string"||Array.isArray(v)){return{".":v}}const I=Object.keys(v);for(let P=0;P<I.length;P++){const R=I[P];if(R.charCodeAt(0)!==L){if(P===0){while(P<I.length){const v=I[P].charCodeAt(0);if(v===L||v===$){throw new Error(`Exports field key should be relative path and start with "." (key: ${JSON.stringify(R)})`)}P++}return{".":v}}throw new Error(`Exports field key should be relative path and start with "." (key: ${JSON.stringify(R)})`)}if(R.length===1){continue}if(R.charCodeAt(1)!==$){throw new Error(`Exports field key should be relative path and start with "./" (key: ${JSON.stringify(R)})`)}}return v}},65212:function(v){"use strict";const I=/^(#?(?:\0.|[^?#\0])*)(\?(?:\0.|[^#\0])*)?(#.*)?$/;function parseIdentifier(v){const P=I.exec(v);if(!P)return null;return[P[1].replace(/\0(.)/g,"$1"),P[2]?P[2].replace(/\0(.)/g,"$1"):"",P[3]||""]}v.exports.parseIdentifier=parseIdentifier},49272:function(v,I,P){"use strict";const R=P(71017);const $="#".charCodeAt(0);const L="/".charCodeAt(0);const q="\\".charCodeAt(0);const K="A".charCodeAt(0);const ae="Z".charCodeAt(0);const ge="a".charCodeAt(0);const be="z".charCodeAt(0);const xe=".".charCodeAt(0);const ve=":".charCodeAt(0);const Ce=R.posix.normalize;const Ne=R.win32.normalize;const He=Object.freeze({Empty:0,Normal:1,Relative:2,AbsoluteWin:3,AbsolutePosix:4,Internal:5});I.PathType=He;const Qe=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;I.invalidSegmentRegEx=Qe;const Je=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;I.deprecatedInvalidSegmentRegEx=Je;const getType=v=>{switch(v.length){case 0:return He.Empty;case 1:{const I=v.charCodeAt(0);switch(I){case xe:return He.Relative;case L:return He.AbsolutePosix;case $:return He.Internal}return He.Normal}case 2:{const I=v.charCodeAt(0);switch(I){case xe:{const I=v.charCodeAt(1);switch(I){case xe:case L:return He.Relative}return He.Normal}case L:return He.AbsolutePosix;case $:return He.Internal}const P=v.charCodeAt(1);if(P===ve){if(I>=K&&I<=ae||I>=ge&&I<=be){return He.AbsoluteWin}}return He.Normal}}const I=v.charCodeAt(0);switch(I){case xe:{const I=v.charCodeAt(1);switch(I){case L:return He.Relative;case xe:{const I=v.charCodeAt(2);if(I===L)return He.Relative;return He.Normal}}return He.Normal}case L:return He.AbsolutePosix;case $:return He.Internal}const P=v.charCodeAt(1);if(P===ve){const P=v.charCodeAt(2);if((P===q||P===L)&&(I>=K&&I<=ae||I>=ge&&I<=be)){return He.AbsoluteWin}}return He.Normal};I.getType=getType;const normalize=v=>{switch(getType(v)){case He.Empty:return v;case He.AbsoluteWin:return Ne(v);case He.Relative:{const I=Ce(v);return getType(I)===He.Relative?I:`./${I}`}}return Ce(v)};I.normalize=normalize;const join=(v,I)=>{if(!I)return normalize(v);const P=getType(I);switch(P){case He.AbsolutePosix:return Ce(I);case He.AbsoluteWin:return Ne(I)}switch(getType(v)){case He.Normal:case He.Relative:case He.AbsolutePosix:return Ce(`${v}/${I}`);case He.AbsoluteWin:return Ne(`${v}\\${I}`)}switch(P){case He.Empty:return v;case He.Relative:{const I=Ce(v);return getType(I)===He.Relative?I:`./${I}`}}return Ce(v)};I.join=join;const Ve=new Map;const cachedJoin=(v,I)=>{let P;let R=Ve.get(v);if(R===undefined){Ve.set(v,R=new Map)}else{P=R.get(I);if(P!==undefined)return P}P=join(v,I);R.set(I,P);return P};I.cachedJoin=cachedJoin},84494:function(v,I,P){"use strict";const R=P(30529);class Definition{constructor(v,I,P,R,$,L){this.type=v;this.name=I;this.node=P;this.parent=R;this.index=$;this.kind=L}}class ParameterDefinition extends Definition{constructor(v,I,P,$){super(R.Parameter,v,I,null,P,null);this.rest=$}}v.exports={ParameterDefinition:ParameterDefinition,Definition:Definition}},12836:function(v,I,P){"use strict";const R=P(39491);const $=P(40680);const L=P(48648);const q=P(21621);const K=P(30529);const ae=P(18802).Scope;const ge=P(13348).i8;function defaultOptions(){return{optimistic:false,directive:false,nodejsScope:false,impliedStrict:false,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"}}function updateDeeply(v,I){function isHashObject(v){return typeof v==="object"&&v instanceof Object&&!(v instanceof Array)&&!(v instanceof RegExp)}for(const P in I){if(Object.prototype.hasOwnProperty.call(I,P)){const R=I[P];if(isHashObject(R)){if(isHashObject(v[P])){updateDeeply(v[P],R)}else{v[P]=updateDeeply({},R)}}else{v[P]=R}}}return v}function analyze(v,I){const P=updateDeeply(defaultOptions(),I);const q=new $(P);const K=new L(P,q);K.visit(v);R(q.__currentScope===null,"currentScope should be null.");return q}v.exports={version:ge,Reference:q,Variable:K,Scope:ae,ScopeManager:$,analyze:analyze}},62999:function(v,I,P){"use strict";const R=P(12205).Syntax;const $=P(41396);function getLast(v){return v[v.length-1]||null}class PatternVisitor extends $.Visitor{static isPattern(v){const I=v.type;return I===R.Identifier||I===R.ObjectPattern||I===R.ArrayPattern||I===R.SpreadElement||I===R.RestElement||I===R.AssignmentPattern}constructor(v,I,P){super(null,v);this.rootPattern=I;this.callback=P;this.assignments=[];this.rightHandNodes=[];this.restElements=[]}Identifier(v){const I=getLast(this.restElements);this.callback(v,{topLevel:v===this.rootPattern,rest:I!==null&&I!==undefined&&I.argument===v,assignments:this.assignments})}Property(v){if(v.computed){this.rightHandNodes.push(v.key)}this.visit(v.value)}ArrayPattern(v){for(let I=0,P=v.elements.length;I<P;++I){const P=v.elements[I];this.visit(P)}}AssignmentPattern(v){this.assignments.push(v);this.visit(v.left);this.rightHandNodes.push(v.right);this.assignments.pop()}RestElement(v){this.restElements.push(v);this.visit(v.argument);this.restElements.pop()}MemberExpression(v){if(v.computed){this.rightHandNodes.push(v.property)}this.rightHandNodes.push(v.object)}SpreadElement(v){this.visit(v.argument)}ArrayExpression(v){v.elements.forEach(this.visit,this)}AssignmentExpression(v){this.assignments.push(v);this.visit(v.left);this.rightHandNodes.push(v.right);this.assignments.pop()}CallExpression(v){v.arguments.forEach((v=>{this.rightHandNodes.push(v)}));this.visit(v.callee)}}v.exports=PatternVisitor},21621:function(v){"use strict";const I=1;const P=2;const R=I|P;class Reference{constructor(v,I,P,R,$,L,q){this.identifier=v;this.from=I;this.tainted=false;this.resolved=null;this.flag=P;if(this.isWrite()){this.writeExpr=R;this.partial=L;this.init=q}this.__maybeImplicitGlobal=$}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&Reference.WRITE)}isRead(){return!!(this.flag&Reference.READ)}isReadOnly(){return this.flag===Reference.READ}isWriteOnly(){return this.flag===Reference.WRITE}isReadWrite(){return this.flag===Reference.RW}}Reference.READ=I;Reference.WRITE=P;Reference.RW=R;v.exports=Reference},48648:function(v,I,P){"use strict";const R=P(12205).Syntax;const $=P(41396);const L=P(21621);const q=P(30529);const K=P(62999);const ae=P(84494);const ge=P(39491);const be=ae.ParameterDefinition;const xe=ae.Definition;function traverseIdentifierInPattern(v,I,P,R){const $=new K(v,I,R);$.visit(I);if(P!==null&&P!==undefined){$.rightHandNodes.forEach(P.visit,P)}}class Importer extends $.Visitor{constructor(v,I){super(null,I.options);this.declaration=v;this.referencer=I}visitImport(v,I){this.referencer.visitPattern(v,(v=>{this.referencer.currentScope().__define(v,new xe(q.ImportBinding,v,I,this.declaration,null,null))}))}ImportNamespaceSpecifier(v){const I=v.local||v.id;if(I){this.visitImport(I,v)}}ImportDefaultSpecifier(v){const I=v.local||v.id;this.visitImport(I,v)}ImportSpecifier(v){const I=v.local||v.id;if(v.name){this.visitImport(v.name,v)}else{this.visitImport(I,v)}}}class Referencer extends $.Visitor{constructor(v,I){super(null,v);this.options=v;this.scopeManager=I;this.parent=null;this.isInnerMethodDefinition=false}currentScope(){return this.scopeManager.__currentScope}close(v){while(this.currentScope()&&v===this.currentScope().block){this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}}pushInnerMethodDefinition(v){const I=this.isInnerMethodDefinition;this.isInnerMethodDefinition=v;return I}popInnerMethodDefinition(v){this.isInnerMethodDefinition=v}referencingDefaultValue(v,I,P,R){const $=this.currentScope();I.forEach((I=>{$.__referencing(v,L.WRITE,I.right,P,v!==I.left,R)}))}visitPattern(v,I,P){let R=I;let $=P;if(typeof I==="function"){$=I;R={processRightHandNodes:false}}traverseIdentifierInPattern(this.options,v,R.processRightHandNodes?this:null,$)}visitFunction(v){let I,P;if(v.type===R.FunctionDeclaration){this.currentScope().__define(v.id,new xe(q.FunctionName,v.id,v,null,null,null))}if(v.type===R.FunctionExpression&&v.id){this.scopeManager.__nestFunctionExpressionNameScope(v)}this.scopeManager.__nestFunctionScope(v,this.isInnerMethodDefinition);const $=this;function visitPatternCallback(P,R){$.currentScope().__define(P,new be(P,v,I,R.rest));$.referencingDefaultValue(P,R.assignments,null,true)}for(I=0,P=v.params.length;I<P;++I){this.visitPattern(v.params[I],{processRightHandNodes:true},visitPatternCallback)}if(v.rest){this.visitPattern({type:"RestElement",argument:v.rest},(I=>{this.currentScope().__define(I,new be(I,v,v.params.length,true))}))}if(v.body){if(v.body.type===R.BlockStatement){this.visitChildren(v.body)}else{this.visit(v.body)}}this.close(v)}visitClass(v){if(v.type===R.ClassDeclaration){this.currentScope().__define(v.id,new xe(q.ClassName,v.id,v,null,null,null))}this.visit(v.superClass);this.scopeManager.__nestClassScope(v);if(v.id){this.currentScope().__define(v.id,new xe(q.ClassName,v.id,v))}this.visit(v.body);this.close(v)}visitProperty(v){let I;if(v.computed){this.visit(v.key)}const P=v.type===R.MethodDefinition;if(P){I=this.pushInnerMethodDefinition(true)}this.visit(v.value);if(P){this.popInnerMethodDefinition(I)}}visitForIn(v){if(v.left.type===R.VariableDeclaration&&v.left.kind!=="var"){this.scopeManager.__nestForScope(v)}if(v.left.type===R.VariableDeclaration){this.visit(v.left);this.visitPattern(v.left.declarations[0].id,(I=>{this.currentScope().__referencing(I,L.WRITE,v.right,null,true,true)}))}else{this.visitPattern(v.left,{processRightHandNodes:true},((I,P)=>{let R=null;if(!this.currentScope().isStrict){R={pattern:I,node:v}}this.referencingDefaultValue(I,P.assignments,R,false);this.currentScope().__referencing(I,L.WRITE,v.right,R,true,false)}))}this.visit(v.right);this.visit(v.body);this.close(v)}visitVariableDeclaration(v,I,P,R){const $=P.declarations[R];const q=$.init;this.visitPattern($.id,{processRightHandNodes:true},((K,ae)=>{v.__define(K,new xe(I,K,$,P,R,P.kind));this.referencingDefaultValue(K,ae.assignments,null,true);if(q){this.currentScope().__referencing(K,L.WRITE,q,null,!ae.topLevel,true)}}))}AssignmentExpression(v){if(K.isPattern(v.left)){if(v.operator==="="){this.visitPattern(v.left,{processRightHandNodes:true},((I,P)=>{let R=null;if(!this.currentScope().isStrict){R={pattern:I,node:v}}this.referencingDefaultValue(I,P.assignments,R,false);this.currentScope().__referencing(I,L.WRITE,v.right,R,!P.topLevel,false)}))}else{this.currentScope().__referencing(v.left,L.RW,v.right)}}else{this.visit(v.left)}this.visit(v.right)}CatchClause(v){this.scopeManager.__nestCatchScope(v);this.visitPattern(v.param,{processRightHandNodes:true},((I,P)=>{this.currentScope().__define(I,new xe(q.CatchClause,v.param,v,null,null,null));this.referencingDefaultValue(I,P.assignments,null,true)}));this.visit(v.body);this.close(v)}Program(v){this.scopeManager.__nestGlobalScope(v);if(this.scopeManager.__isNodejsScope()){this.currentScope().isStrict=false;this.scopeManager.__nestFunctionScope(v,false)}if(this.scopeManager.__isES6()&&this.scopeManager.isModule()){this.scopeManager.__nestModuleScope(v)}if(this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()){this.currentScope().isStrict=true}this.visitChildren(v);this.close(v)}Identifier(v){this.currentScope().__referencing(v)}UpdateExpression(v){if(K.isPattern(v.argument)){this.currentScope().__referencing(v.argument,L.RW,null)}else{this.visitChildren(v)}}MemberExpression(v){this.visit(v.object);if(v.computed){this.visit(v.property)}}Property(v){this.visitProperty(v)}MethodDefinition(v){this.visitProperty(v)}BreakStatement(){}ContinueStatement(){}LabeledStatement(v){this.visit(v.body)}ForStatement(v){if(v.init&&v.init.type===R.VariableDeclaration&&v.init.kind!=="var"){this.scopeManager.__nestForScope(v)}this.visitChildren(v);this.close(v)}ClassExpression(v){this.visitClass(v)}ClassDeclaration(v){this.visitClass(v)}CallExpression(v){if(!this.scopeManager.__ignoreEval()&&v.callee.type===R.Identifier&&v.callee.name==="eval"){this.currentScope().variableScope.__detectEval()}this.visitChildren(v)}BlockStatement(v){if(this.scopeManager.__isES6()){this.scopeManager.__nestBlockScope(v)}this.visitChildren(v);this.close(v)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(v){this.visit(v.object);this.scopeManager.__nestWithScope(v);this.visit(v.body);this.close(v)}VariableDeclaration(v){const I=v.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let P=0,R=v.declarations.length;P<R;++P){const R=v.declarations[P];this.visitVariableDeclaration(I,q.Variable,v,P);if(R.init){this.visit(R.init)}}}SwitchStatement(v){this.visit(v.discriminant);if(this.scopeManager.__isES6()){this.scopeManager.__nestSwitchScope(v)}for(let I=0,P=v.cases.length;I<P;++I){this.visit(v.cases[I])}this.close(v)}FunctionDeclaration(v){this.visitFunction(v)}FunctionExpression(v){this.visitFunction(v)}ForOfStatement(v){this.visitForIn(v)}ForInStatement(v){this.visitForIn(v)}ArrowFunctionExpression(v){this.visitFunction(v)}ImportDeclaration(v){ge(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context.");const I=new Importer(v,this);I.visit(v)}visitExportDeclaration(v){if(v.source){return}if(v.declaration){this.visit(v.declaration);return}this.visitChildren(v)}ExportDeclaration(v){this.visitExportDeclaration(v)}ExportAllDeclaration(v){this.visitExportDeclaration(v)}ExportDefaultDeclaration(v){this.visitExportDeclaration(v)}ExportNamedDeclaration(v){this.visitExportDeclaration(v)}ExportSpecifier(v){const I=v.id||v.local;this.visit(I)}MetaProperty(){}}v.exports=Referencer},40680:function(v,I,P){"use strict";const R=P(18802);const $=P(39491);const L=R.GlobalScope;const q=R.CatchScope;const K=R.WithScope;const ae=R.ModuleScope;const ge=R.ClassScope;const be=R.SwitchScope;const xe=R.FunctionScope;const ve=R.ForScope;const Ce=R.FunctionExpressionNameScope;const Ne=R.BlockScope;class ScopeManager{constructor(v){this.scopes=[];this.globalScope=null;this.__nodeToScope=new WeakMap;this.__currentScope=null;this.__options=v;this.__declaredVariables=new WeakMap}__useDirective(){return this.__options.directive}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isNodejsScope(){return this.__options.nodejsScope}isModule(){return this.__options.sourceType==="module"}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(v){return this.__nodeToScope.get(v)}getDeclaredVariables(v){return this.__declaredVariables.get(v)||[]}acquire(v,I){function predicate(v){if(v.type==="function"&&v.functionExpressionScope){return false}return true}const P=this.__get(v);if(!P||P.length===0){return null}if(P.length===1){return P[0]}if(I){for(let v=P.length-1;v>=0;--v){const I=P[v];if(predicate(I)){return I}}}else{for(let v=0,I=P.length;v<I;++v){const I=P[v];if(predicate(I)){return I}}}return null}acquireAll(v){return this.__get(v)}release(v,I){const P=this.__get(v);if(P&&P.length){const v=P[0].upper;if(!v){return null}return this.acquire(v.block,I)}return null}attach(){}detach(){}__nestScope(v){if(v instanceof L){$(this.__currentScope===null);this.globalScope=v}this.__currentScope=v;return v}__nestGlobalScope(v){return this.__nestScope(new L(this,v))}__nestBlockScope(v){return this.__nestScope(new Ne(this,this.__currentScope,v))}__nestFunctionScope(v,I){return this.__nestScope(new xe(this,this.__currentScope,v,I))}__nestForScope(v){return this.__nestScope(new ve(this,this.__currentScope,v))}__nestCatchScope(v){return this.__nestScope(new q(this,this.__currentScope,v))}__nestWithScope(v){return this.__nestScope(new K(this,this.__currentScope,v))}__nestClassScope(v){return this.__nestScope(new ge(this,this.__currentScope,v))}__nestSwitchScope(v){return this.__nestScope(new be(this,this.__currentScope,v))}__nestModuleScope(v){return this.__nestScope(new ae(this,this.__currentScope,v))}__nestFunctionExpressionNameScope(v){return this.__nestScope(new Ce(this,this.__currentScope,v))}__isES6(){return this.__options.ecmaVersion>=6}}v.exports=ScopeManager},18802:function(v,I,P){"use strict";const R=P(12205).Syntax;const $=P(21621);const L=P(30529);const q=P(84494).Definition;const K=P(39491);function isStrictScope(v,I,P,$){let L;if(v.upper&&v.upper.isStrict){return true}if(P){return true}if(v.type==="class"||v.type==="module"){return true}if(v.type==="block"||v.type==="switch"){return false}if(v.type==="function"){if(I.type===R.ArrowFunctionExpression&&I.body.type!==R.BlockStatement){return false}if(I.type===R.Program){L=I}else{L=I.body}if(!L){return false}}else if(v.type==="global"){L=I}else{return false}if($){for(let v=0,I=L.body.length;v<I;++v){const I=L.body[v];if(I.type!==R.DirectiveStatement){break}if(I.raw==='"use strict"'||I.raw==="'use strict'"){return true}}}else{for(let v=0,I=L.body.length;v<I;++v){const I=L.body[v];if(I.type!==R.ExpressionStatement){break}const P=I.expression;if(P.type!==R.Literal||typeof P.value!=="string"){break}if(P.raw!==null&&P.raw!==undefined){if(P.raw==='"use strict"'||P.raw==="'use strict'"){return true}}else{if(P.value==="use strict"){return true}}}}return false}function registerScope(v,I){v.scopes.push(I);const P=v.__nodeToScope.get(I.block);if(P){P.push(I)}else{v.__nodeToScope.set(I.block,[I])}}function shouldBeStatically(v){return v.type===L.ClassName||v.type===L.Variable&&v.parent.kind!=="var"}class Scope{constructor(v,I,P,R,$){this.type=I;this.set=new Map;this.taints=new Map;this.dynamic=this.type==="global"||this.type==="with";this.block=R;this.through=[];this.variables=[];this.references=[];this.variableScope=this.type==="global"||this.type==="function"||this.type==="module"?this:P.variableScope;this.functionExpressionScope=false;this.directCallToEvalScope=false;this.thisFound=false;this.__left=[];this.upper=P;this.isStrict=isStrictScope(this,R,$,v.__useDirective());this.childScopes=[];if(this.upper){this.upper.childScopes.push(this)}this.__declaredVariables=v.__declaredVariables;registerScope(v,this)}__shouldStaticallyClose(v){return!this.dynamic||v.__isOptimistic()}__shouldStaticallyCloseForGlobal(v){const I=v.identifier.name;if(!this.set.has(I)){return false}const P=this.set.get(I);const R=P.defs;return R.length>0&&R.every(shouldBeStatically)}__staticCloseRef(v){if(!this.__resolve(v)){this.__delegateToUpperScope(v)}}__dynamicCloseRef(v){let I=this;do{I.through.push(v);I=I.upper}while(I)}__globalCloseRef(v){if(this.__shouldStaticallyCloseForGlobal(v)){this.__staticCloseRef(v)}else{this.__dynamicCloseRef(v)}}__close(v){let I;if(this.__shouldStaticallyClose(v)){I=this.__staticCloseRef}else if(this.type!=="global"){I=this.__dynamicCloseRef}else{I=this.__globalCloseRef}for(let v=0,P=this.__left.length;v<P;++v){const P=this.__left[v];I.call(this,P)}this.__left=null;return this.upper}__isValidResolution(v,I){return true}__resolve(v){const I=v.identifier.name;if(!this.set.has(I)){return false}const P=this.set.get(I);if(!this.__isValidResolution(v,P)){return false}P.references.push(v);P.stack=P.stack&&v.from.variableScope===this.variableScope;if(v.tainted){P.tainted=true;this.taints.set(P.name,true)}v.resolved=P;return true}__delegateToUpperScope(v){if(this.upper){this.upper.__left.push(v)}this.through.push(v)}__addDeclaredVariablesOfNode(v,I){if(I===null||I===undefined){return}let P=this.__declaredVariables.get(I);if(P===null||P===undefined){P=[];this.__declaredVariables.set(I,P)}if(P.indexOf(v)===-1){P.push(v)}}__defineGeneric(v,I,P,R,$){let q;q=I.get(v);if(!q){q=new L(v,this);I.set(v,q);P.push(q)}if($){q.defs.push($);this.__addDeclaredVariablesOfNode(q,$.node);this.__addDeclaredVariablesOfNode(q,$.parent)}if(R){q.identifiers.push(R)}}__define(v,I){if(v&&v.type===R.Identifier){this.__defineGeneric(v.name,this.set,this.variables,v,I)}}__referencing(v,I,P,L,q,K){if(!v||v.type!==R.Identifier){return}if(v.name==="super"){return}const ae=new $(v,this,I||$.READ,P,L,!!q,!!K);this.references.push(ae);this.__left.push(ae)}__detectEval(){let v=this;this.directCallToEvalScope=true;do{v.dynamic=true;v=v.upper}while(v)}__detectThis(){this.thisFound=true}__isClosed(){return this.__left===null}resolve(v){let I,P,$;K(this.__isClosed(),"Scope should be closed.");K(v.type===R.Identifier,"Target should be identifier.");for(P=0,$=this.references.length;P<$;++P){I=this.references[P];if(I.identifier===v){return I}}return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return true}isThisMaterialized(){return true}isUsedName(v){if(this.set.has(v)){return true}for(let I=0,P=this.through.length;I<P;++I){if(this.through[I].identifier.name===v){return true}}return false}}class GlobalScope extends Scope{constructor(v,I){super(v,"global",null,I,false);this.implicit={set:new Map,variables:[],left:[]}}__close(v){const I=[];for(let v=0,P=this.__left.length;v<P;++v){const P=this.__left[v];if(P.__maybeImplicitGlobal&&!this.set.has(P.identifier.name)){I.push(P.__maybeImplicitGlobal)}}for(let v=0,P=I.length;v<P;++v){const P=I[v];this.__defineImplicit(P.pattern,new q(L.ImplicitGlobalVariable,P.pattern,P.node,null,null,null))}this.implicit.left=this.__left;return super.__close(v)}__defineImplicit(v,I){if(v&&v.type===R.Identifier){this.__defineGeneric(v.name,this.implicit.set,this.implicit.variables,v,I)}}}class ModuleScope extends Scope{constructor(v,I,P){super(v,"module",I,P,false)}}class FunctionExpressionNameScope extends Scope{constructor(v,I,P){super(v,"function-expression-name",I,P,false);this.__define(P.id,new q(L.FunctionName,P.id,P,null,null,null));this.functionExpressionScope=true}}class CatchScope extends Scope{constructor(v,I,P){super(v,"catch",I,P,false)}}class WithScope extends Scope{constructor(v,I,P){super(v,"with",I,P,false)}__close(v){if(this.__shouldStaticallyClose(v)){return super.__close(v)}for(let v=0,I=this.__left.length;v<I;++v){const I=this.__left[v];I.tainted=true;this.__delegateToUpperScope(I)}this.__left=null;return this.upper}}class BlockScope extends Scope{constructor(v,I,P){super(v,"block",I,P,false)}}class SwitchScope extends Scope{constructor(v,I,P){super(v,"switch",I,P,false)}}class FunctionScope extends Scope{constructor(v,I,P,$){super(v,"function",I,P,$);if(this.block.type!==R.ArrowFunctionExpression){this.__defineArguments()}}isArgumentsMaterialized(){if(this.block.type===R.ArrowFunctionExpression){return false}if(!this.isStatic()){return true}const v=this.set.get("arguments");K(v,"Always have arguments variable.");return v.tainted||v.references.length!==0}isThisMaterialized(){if(!this.isStatic()){return true}return this.thisFound}__defineArguments(){this.__defineGeneric("arguments",this.set,this.variables,null,null);this.taints.set("arguments",true)}__isValidResolution(v,I){if(this.block.type==="Program"){return true}const P=this.block.body.range[0];return!(I.scope===this&&v.identifier.range[0]<P&&I.defs.every((v=>v.name.range[0]>=P)))}}class ForScope extends Scope{constructor(v,I,P){super(v,"for",I,P,false)}}class ClassScope extends Scope{constructor(v,I,P){super(v,"class",I,P,false)}}v.exports={Scope:Scope,GlobalScope:GlobalScope,ModuleScope:ModuleScope,FunctionExpressionNameScope:FunctionExpressionNameScope,CatchScope:CatchScope,WithScope:WithScope,BlockScope:BlockScope,SwitchScope:SwitchScope,FunctionScope:FunctionScope,ForScope:ForScope,ClassScope:ClassScope}},30529:function(v){"use strict";class Variable{constructor(v,I){this.name=v;this.identifiers=[];this.references=[];this.defs=[];this.tainted=false;this.stack=true;this.scope=I}}Variable.CatchClause="CatchClause";Variable.Parameter="Parameter";Variable.FunctionName="FunctionName";Variable.ClassName="ClassName";Variable.Variable="Variable";Variable.ImportBinding="ImportBinding";Variable.ImplicitGlobalVariable="ImplicitGlobalVariable";v.exports=Variable},41396:function(v,I,P){(function(){"use strict";var v=P(41731);function isNode(v){if(v==null){return false}return typeof v==="object"&&typeof v.type==="string"}function isProperty(I,P){return(I===v.Syntax.ObjectExpression||I===v.Syntax.ObjectPattern)&&P==="properties"}function Visitor(I,P){P=P||{};this.__visitor=I||this;this.__childVisitorKeys=P.childVisitorKeys?Object.assign({},v.VisitorKeys,P.childVisitorKeys):v.VisitorKeys;if(P.fallback==="iteration"){this.__fallback=Object.keys}else if(typeof P.fallback==="function"){this.__fallback=P.fallback}}Visitor.prototype.visitChildren=function(I){var P,R,$,L,q,K,ae;if(I==null){return}P=I.type||v.Syntax.Property;R=this.__childVisitorKeys[P];if(!R){if(this.__fallback){R=this.__fallback(I)}else{throw new Error("Unknown node type "+P+".")}}for($=0,L=R.length;$<L;++$){ae=I[R[$]];if(ae){if(Array.isArray(ae)){for(q=0,K=ae.length;q<K;++q){if(ae[q]){if(isNode(ae[q])||isProperty(P,R[$])){this.visit(ae[q])}}}}else if(isNode(ae)){this.visit(ae)}}}};Visitor.prototype.visit=function(I){var P;if(I==null){return}P=I.type||v.Syntax.Property;if(this.__visitor[P]){this.__visitor[P].call(this,I);return}this.visitChildren(I)};I.version=P(14730).version;I.Visitor=Visitor;I.visit=function(v,I,P){var R=new Visitor(I,P);R.visit(v)}})()},12205:function(v,I,P){(function clone(v){"use strict";var I,R,$,L,q,K;function deepCopy(v){var I={},P,R;for(P in v){if(v.hasOwnProperty(P)){R=v[P];if(typeof R==="object"&&R!==null){I[P]=deepCopy(R)}else{I[P]=R}}}return I}function upperBound(v,I){var P,R,$,L;R=v.length;$=0;while(R){P=R>>>1;L=$+P;if(I(v[L])){R=P}else{$=L+1;R-=P+1}}return $}I={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};$={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};L={};q={};K={};R={Break:L,Skip:q,Remove:K};function Reference(v,I){this.parent=v;this.key=I}Reference.prototype.replace=function replace(v){this.parent[this.key]=v};Reference.prototype.remove=function remove(){if(Array.isArray(this.parent)){this.parent.splice(this.key,1);return true}else{this.replace(null);return false}};function Element(v,I,P,R){this.node=v;this.path=I;this.wrap=P;this.ref=R}function Controller(){}Controller.prototype.path=function path(){var v,I,P,R,$,L;function addToPath(v,I){if(Array.isArray(I)){for(P=0,R=I.length;P<R;++P){v.push(I[P])}}else{v.push(I)}}if(!this.__current.path){return null}$=[];for(v=2,I=this.__leavelist.length;v<I;++v){L=this.__leavelist[v];addToPath($,L.path)}addToPath($,this.__current.path);return $};Controller.prototype.type=function(){var v=this.current();return v.type||this.__current.wrap};Controller.prototype.parents=function parents(){var v,I,P;P=[];for(v=1,I=this.__leavelist.length;v<I;++v){P.push(this.__leavelist[v].node)}return P};Controller.prototype.current=function current(){return this.__current.node};Controller.prototype.__execute=function __execute(v,I){var P,R;R=undefined;P=this.__current;this.__current=I;this.__state=null;if(v){R=v.call(this,I.node,this.__leavelist[this.__leavelist.length-1].node)}this.__current=P;return R};Controller.prototype.notify=function notify(v){this.__state=v};Controller.prototype.skip=function(){this.notify(q)};Controller.prototype["break"]=function(){this.notify(L)};Controller.prototype.remove=function(){this.notify(K)};Controller.prototype.__initialize=function(v,I){this.visitor=I;this.root=v;this.__worklist=[];this.__leavelist=[];this.__current=null;this.__state=null;this.__fallback=null;if(I.fallback==="iteration"){this.__fallback=Object.keys}else if(typeof I.fallback==="function"){this.__fallback=I.fallback}this.__keys=$;if(I.keys){this.__keys=Object.assign(Object.create(this.__keys),I.keys)}};function isNode(v){if(v==null){return false}return typeof v==="object"&&typeof v.type==="string"}function isProperty(v,P){return(v===I.ObjectExpression||v===I.ObjectPattern)&&"properties"===P}Controller.prototype.traverse=function traverse(v,I){var P,R,$,K,ae,ge,be,xe,ve,Ce,Ne,He;this.__initialize(v,I);He={};P=this.__worklist;R=this.__leavelist;P.push(new Element(v,null,null,null));R.push(new Element(null,null,null,null));while(P.length){$=P.pop();if($===He){$=R.pop();ge=this.__execute(I.leave,$);if(this.__state===L||ge===L){return}continue}if($.node){ge=this.__execute(I.enter,$);if(this.__state===L||ge===L){return}P.push(He);R.push($);if(this.__state===q||ge===q){continue}K=$.node;ae=K.type||$.wrap;Ce=this.__keys[ae];if(!Ce){if(this.__fallback){Ce=this.__fallback(K)}else{throw new Error("Unknown node type "+ae+".")}}xe=Ce.length;while((xe-=1)>=0){be=Ce[xe];Ne=K[be];if(!Ne){continue}if(Array.isArray(Ne)){ve=Ne.length;while((ve-=1)>=0){if(!Ne[ve]){continue}if(isProperty(ae,Ce[xe])){$=new Element(Ne[ve],[be,ve],"Property",null)}else if(isNode(Ne[ve])){$=new Element(Ne[ve],[be,ve],null,null)}else{continue}P.push($)}}else if(isNode(Ne)){P.push(new Element(Ne,be,null,null))}}}}};Controller.prototype.replace=function replace(v,I){var P,R,$,ae,ge,be,xe,ve,Ce,Ne,He,Qe,Je;function removeElem(v){var I,R,$,L;if(v.ref.remove()){R=v.ref.key;L=v.ref.parent;I=P.length;while(I--){$=P[I];if($.ref&&$.ref.parent===L){if($.ref.key<R){break}--$.ref.key}}}}this.__initialize(v,I);He={};P=this.__worklist;R=this.__leavelist;Qe={root:v};be=new Element(v,null,null,new Reference(Qe,"root"));P.push(be);R.push(be);while(P.length){be=P.pop();if(be===He){be=R.pop();ge=this.__execute(I.leave,be);if(ge!==undefined&&ge!==L&&ge!==q&&ge!==K){be.ref.replace(ge)}if(this.__state===K||ge===K){removeElem(be)}if(this.__state===L||ge===L){return Qe.root}continue}ge=this.__execute(I.enter,be);if(ge!==undefined&&ge!==L&&ge!==q&&ge!==K){be.ref.replace(ge);be.node=ge}if(this.__state===K||ge===K){removeElem(be);be.node=null}if(this.__state===L||ge===L){return Qe.root}$=be.node;if(!$){continue}P.push(He);R.push(be);if(this.__state===q||ge===q){continue}ae=$.type||be.wrap;Ce=this.__keys[ae];if(!Ce){if(this.__fallback){Ce=this.__fallback($)}else{throw new Error("Unknown node type "+ae+".")}}xe=Ce.length;while((xe-=1)>=0){Je=Ce[xe];Ne=$[Je];if(!Ne){continue}if(Array.isArray(Ne)){ve=Ne.length;while((ve-=1)>=0){if(!Ne[ve]){continue}if(isProperty(ae,Ce[xe])){be=new Element(Ne[ve],[Je,ve],"Property",new Reference(Ne,ve))}else if(isNode(Ne[ve])){be=new Element(Ne[ve],[Je,ve],null,new Reference(Ne,ve))}else{continue}P.push(be)}}else if(isNode(Ne)){P.push(new Element(Ne,Je,null,new Reference($,Je)))}}}return Qe.root};function traverse(v,I){var P=new Controller;return P.traverse(v,I)}function replace(v,I){var P=new Controller;return P.replace(v,I)}function extendCommentRange(v,I){var P;P=upperBound(I,(function search(I){return I.range[0]>v.range[0]}));v.extendedRange=[v.range[0],v.range[1]];if(P!==I.length){v.extendedRange[1]=I[P].range[0]}P-=1;if(P>=0){v.extendedRange[0]=I[P].range[1]}return v}function attachComments(v,I,P){var $=[],L,q,K,ae;if(!v.range){throw new Error("attachComments needs range information")}if(!P.length){if(I.length){for(K=0,q=I.length;K<q;K+=1){L=deepCopy(I[K]);L.extendedRange=[0,v.range[0]];$.push(L)}v.leadingComments=$}return v}for(K=0,q=I.length;K<q;K+=1){$.push(extendCommentRange(deepCopy(I[K]),P))}ae=0;traverse(v,{enter:function(v){var I;while(ae<$.length){I=$[ae];if(I.extendedRange[1]>v.range[0]){break}if(I.extendedRange[1]===v.range[0]){if(!v.leadingComments){v.leadingComments=[]}v.leadingComments.push(I);$.splice(ae,1)}else{ae+=1}}if(ae===$.length){return R.Break}if($[ae].extendedRange[0]>v.range[1]){return R.Skip}}});ae=0;traverse(v,{leave:function(v){var I;while(ae<$.length){I=$[ae];if(v.range[1]<I.extendedRange[0]){break}if(v.range[1]===I.extendedRange[0]){if(!v.trailingComments){v.trailingComments=[]}v.trailingComments.push(I);$.splice(ae,1)}else{ae+=1}}if(ae===$.length){return R.Break}if($[ae].extendedRange[0]>v.range[1]){return R.Skip}}});return v}v.version=P(61752).i8;v.Syntax=I;v.traverse=traverse;v.replace=replace;v.attachComments=attachComments;v.VisitorKeys=$;v.VisitorOption=R;v.Controller=Controller;v.cloneEnvironment=function(){return clone({})};return v})(I)},41731:function(v,I){(function clone(v){"use strict";var I,P,R,$,L,q;function deepCopy(v){var I={},P,R;for(P in v){if(v.hasOwnProperty(P)){R=v[P];if(typeof R==="object"&&R!==null){I[P]=deepCopy(R)}else{I[P]=R}}}return I}function upperBound(v,I){var P,R,$,L;R=v.length;$=0;while(R){P=R>>>1;L=$+P;if(I(v[L])){R=P}else{$=L+1;R-=P+1}}return $}I={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};R={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};$={};L={};q={};P={Break:$,Skip:L,Remove:q};function Reference(v,I){this.parent=v;this.key=I}Reference.prototype.replace=function replace(v){this.parent[this.key]=v};Reference.prototype.remove=function remove(){if(Array.isArray(this.parent)){this.parent.splice(this.key,1);return true}else{this.replace(null);return false}};function Element(v,I,P,R){this.node=v;this.path=I;this.wrap=P;this.ref=R}function Controller(){}Controller.prototype.path=function path(){var v,I,P,R,$,L;function addToPath(v,I){if(Array.isArray(I)){for(P=0,R=I.length;P<R;++P){v.push(I[P])}}else{v.push(I)}}if(!this.__current.path){return null}$=[];for(v=2,I=this.__leavelist.length;v<I;++v){L=this.__leavelist[v];addToPath($,L.path)}addToPath($,this.__current.path);return $};Controller.prototype.type=function(){var v=this.current();return v.type||this.__current.wrap};Controller.prototype.parents=function parents(){var v,I,P;P=[];for(v=1,I=this.__leavelist.length;v<I;++v){P.push(this.__leavelist[v].node)}return P};Controller.prototype.current=function current(){return this.__current.node};Controller.prototype.__execute=function __execute(v,I){var P,R;R=undefined;P=this.__current;this.__current=I;this.__state=null;if(v){R=v.call(this,I.node,this.__leavelist[this.__leavelist.length-1].node)}this.__current=P;return R};Controller.prototype.notify=function notify(v){this.__state=v};Controller.prototype.skip=function(){this.notify(L)};Controller.prototype["break"]=function(){this.notify($)};Controller.prototype.remove=function(){this.notify(q)};Controller.prototype.__initialize=function(v,I){this.visitor=I;this.root=v;this.__worklist=[];this.__leavelist=[];this.__current=null;this.__state=null;this.__fallback=null;if(I.fallback==="iteration"){this.__fallback=Object.keys}else if(typeof I.fallback==="function"){this.__fallback=I.fallback}this.__keys=R;if(I.keys){this.__keys=Object.assign(Object.create(this.__keys),I.keys)}};function isNode(v){if(v==null){return false}return typeof v==="object"&&typeof v.type==="string"}function isProperty(v,P){return(v===I.ObjectExpression||v===I.ObjectPattern)&&"properties"===P}function candidateExistsInLeaveList(v,I){for(var P=v.length-1;P>=0;--P){if(v[P].node===I){return true}}return false}Controller.prototype.traverse=function traverse(v,I){var P,R,q,K,ae,ge,be,xe,ve,Ce,Ne,He;this.__initialize(v,I);He={};P=this.__worklist;R=this.__leavelist;P.push(new Element(v,null,null,null));R.push(new Element(null,null,null,null));while(P.length){q=P.pop();if(q===He){q=R.pop();ge=this.__execute(I.leave,q);if(this.__state===$||ge===$){return}continue}if(q.node){ge=this.__execute(I.enter,q);if(this.__state===$||ge===$){return}P.push(He);R.push(q);if(this.__state===L||ge===L){continue}K=q.node;ae=K.type||q.wrap;Ce=this.__keys[ae];if(!Ce){if(this.__fallback){Ce=this.__fallback(K)}else{throw new Error("Unknown node type "+ae+".")}}xe=Ce.length;while((xe-=1)>=0){be=Ce[xe];Ne=K[be];if(!Ne){continue}if(Array.isArray(Ne)){ve=Ne.length;while((ve-=1)>=0){if(!Ne[ve]){continue}if(candidateExistsInLeaveList(R,Ne[ve])){continue}if(isProperty(ae,Ce[xe])){q=new Element(Ne[ve],[be,ve],"Property",null)}else if(isNode(Ne[ve])){q=new Element(Ne[ve],[be,ve],null,null)}else{continue}P.push(q)}}else if(isNode(Ne)){if(candidateExistsInLeaveList(R,Ne)){continue}P.push(new Element(Ne,be,null,null))}}}}};Controller.prototype.replace=function replace(v,I){var P,R,K,ae,ge,be,xe,ve,Ce,Ne,He,Qe,Je;function removeElem(v){var I,R,$,L;if(v.ref.remove()){R=v.ref.key;L=v.ref.parent;I=P.length;while(I--){$=P[I];if($.ref&&$.ref.parent===L){if($.ref.key<R){break}--$.ref.key}}}}this.__initialize(v,I);He={};P=this.__worklist;R=this.__leavelist;Qe={root:v};be=new Element(v,null,null,new Reference(Qe,"root"));P.push(be);R.push(be);while(P.length){be=P.pop();if(be===He){be=R.pop();ge=this.__execute(I.leave,be);if(ge!==undefined&&ge!==$&&ge!==L&&ge!==q){be.ref.replace(ge)}if(this.__state===q||ge===q){removeElem(be)}if(this.__state===$||ge===$){return Qe.root}continue}ge=this.__execute(I.enter,be);if(ge!==undefined&&ge!==$&&ge!==L&&ge!==q){be.ref.replace(ge);be.node=ge}if(this.__state===q||ge===q){removeElem(be);be.node=null}if(this.__state===$||ge===$){return Qe.root}K=be.node;if(!K){continue}P.push(He);R.push(be);if(this.__state===L||ge===L){continue}ae=K.type||be.wrap;Ce=this.__keys[ae];if(!Ce){if(this.__fallback){Ce=this.__fallback(K)}else{throw new Error("Unknown node type "+ae+".")}}xe=Ce.length;while((xe-=1)>=0){Je=Ce[xe];Ne=K[Je];if(!Ne){continue}if(Array.isArray(Ne)){ve=Ne.length;while((ve-=1)>=0){if(!Ne[ve]){continue}if(isProperty(ae,Ce[xe])){be=new Element(Ne[ve],[Je,ve],"Property",new Reference(Ne,ve))}else if(isNode(Ne[ve])){be=new Element(Ne[ve],[Je,ve],null,new Reference(Ne,ve))}else{continue}P.push(be)}}else if(isNode(Ne)){P.push(new Element(Ne,Je,null,new Reference(K,Je)))}}}return Qe.root};function traverse(v,I){var P=new Controller;return P.traverse(v,I)}function replace(v,I){var P=new Controller;return P.replace(v,I)}function extendCommentRange(v,I){var P;P=upperBound(I,(function search(I){return I.range[0]>v.range[0]}));v.extendedRange=[v.range[0],v.range[1]];if(P!==I.length){v.extendedRange[1]=I[P].range[0]}P-=1;if(P>=0){v.extendedRange[0]=I[P].range[1]}return v}function attachComments(v,I,R){var $=[],L,q,K,ae;if(!v.range){throw new Error("attachComments needs range information")}if(!R.length){if(I.length){for(K=0,q=I.length;K<q;K+=1){L=deepCopy(I[K]);L.extendedRange=[0,v.range[0]];$.push(L)}v.leadingComments=$}return v}for(K=0,q=I.length;K<q;K+=1){$.push(extendCommentRange(deepCopy(I[K]),R))}ae=0;traverse(v,{enter:function(v){var I;while(ae<$.length){I=$[ae];if(I.extendedRange[1]>v.range[0]){break}if(I.extendedRange[1]===v.range[0]){if(!v.leadingComments){v.leadingComments=[]}v.leadingComments.push(I);$.splice(ae,1)}else{ae+=1}}if(ae===$.length){return P.Break}if($[ae].extendedRange[0]>v.range[1]){return P.Skip}}});ae=0;traverse(v,{leave:function(v){var I;while(ae<$.length){I=$[ae];if(v.range[1]<I.extendedRange[0]){break}if(v.range[1]===I.extendedRange[0]){if(!v.trailingComments){v.trailingComments=[]}v.trailingComments.push(I);$.splice(ae,1)}else{ae+=1}}if(ae===$.length){return P.Break}if($[ae].extendedRange[0]>v.range[1]){return P.Skip}}});return v}v.Syntax=I;v.traverse=traverse;v.replace=replace;v.attachComments=attachComments;v.VisitorKeys=R;v.VisitorOption=P;v.Controller=Controller;v.cloneEnvironment=function(){return clone({})};return v})(I)},21660:function(v){v.exports=function(v,I){if(typeof v!=="string"){throw new TypeError("Expected a string")}var P=String(v);var R="";var $=I?!!I.extended:false;var L=I?!!I.globstar:false;var q=false;var K=I&&typeof I.flags==="string"?I.flags:"";var ae;for(var ge=0,be=P.length;ge<be;ge++){ae=P[ge];switch(ae){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":R+="\\"+ae;break;case"?":if($){R+=".";break}case"[":case"]":if($){R+=ae;break}case"{":if($){q=true;R+="(";break}case"}":if($){q=false;R+=")";break}case",":if(q){R+="|";break}R+="\\"+ae;break;case"*":var xe=P[ge-1];var ve=1;while(P[ge+1]==="*"){ve++;ge++}var Ce=P[ge+1];if(!L){R+=".*"}else{var Ne=ve>1&&(xe==="/"||xe===undefined)&&(Ce==="/"||Ce===undefined);if(Ne){R+="((?:[^/]*(?:/|$))*)";ge++}else{R+="([^/]*)"}}break;default:R+=ae}}if(!K||!~K.indexOf("g")){R="^"+R+"$"}return new RegExp(R,K)}},8567:function(v){"use strict";v.exports=clone;var I=Object.getPrototypeOf||function(v){return v.__proto__};function clone(v){if(v===null||typeof v!=="object")return v;if(v instanceof Object)var P={__proto__:I(v)};else var P=Object.create(null);Object.getOwnPropertyNames(v).forEach((function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(v,I))}));return P}},56450:function(v,I,P){var R=P(57147);var $=P(72164);var L=P(55653);var q=P(8567);var K=P(73837);var ae;var ge;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){ae=Symbol.for("graceful-fs.queue");ge=Symbol.for("graceful-fs.previous")}else{ae="___graceful-fs.queue";ge="___graceful-fs.previous"}function noop(){}function publishQueue(v,I){Object.defineProperty(v,ae,{get:function(){return I}})}var be=noop;if(K.debuglog)be=K.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))be=function(){var v=K.format.apply(K,arguments);v="GFS4: "+v.split(/\n/).join("\nGFS4: ");console.error(v)};if(!R[ae]){var xe=global[ae]||[];publishQueue(R,xe);R.close=function(v){function close(I,P){return v.call(R,I,(function(v){if(!v){resetQueue()}if(typeof P==="function")P.apply(this,arguments)}))}Object.defineProperty(close,ge,{value:v});return close}(R.close);R.closeSync=function(v){function closeSync(I){v.apply(R,arguments);resetQueue()}Object.defineProperty(closeSync,ge,{value:v});return closeSync}(R.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){be(R[ae]);P(39491).equal(R[ae].length,0)}))}}if(!global[ae]){publishQueue(global,R[ae])}v.exports=patch(q(R));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!R.__patched){v.exports=patch(R);R.__patched=true}function patch(v){$(v);v.gracefulify=patch;v.createReadStream=createReadStream;v.createWriteStream=createWriteStream;var I=v.readFile;v.readFile=readFile;function readFile(v,P,R){if(typeof P==="function")R=P,P=null;return go$readFile(v,P,R);function go$readFile(v,P,R,$){return I(v,P,(function(I){if(I&&(I.code==="EMFILE"||I.code==="ENFILE"))enqueue([go$readFile,[v,P,R],I,$||Date.now(),Date.now()]);else{if(typeof R==="function")R.apply(this,arguments)}}))}}var P=v.writeFile;v.writeFile=writeFile;function writeFile(v,I,R,$){if(typeof R==="function")$=R,R=null;return go$writeFile(v,I,R,$);function go$writeFile(v,I,R,$,L){return P(v,I,R,(function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))enqueue([go$writeFile,[v,I,R,$],P,L||Date.now(),Date.now()]);else{if(typeof $==="function")$.apply(this,arguments)}}))}}var R=v.appendFile;if(R)v.appendFile=appendFile;function appendFile(v,I,P,$){if(typeof P==="function")$=P,P=null;return go$appendFile(v,I,P,$);function go$appendFile(v,I,P,$,L){return R(v,I,P,(function(R){if(R&&(R.code==="EMFILE"||R.code==="ENFILE"))enqueue([go$appendFile,[v,I,P,$],R,L||Date.now(),Date.now()]);else{if(typeof $==="function")$.apply(this,arguments)}}))}}var q=v.copyFile;if(q)v.copyFile=copyFile;function copyFile(v,I,P,R){if(typeof P==="function"){R=P;P=0}return go$copyFile(v,I,P,R);function go$copyFile(v,I,P,R,$){return q(v,I,P,(function(L){if(L&&(L.code==="EMFILE"||L.code==="ENFILE"))enqueue([go$copyFile,[v,I,P,R],L,$||Date.now(),Date.now()]);else{if(typeof R==="function")R.apply(this,arguments)}}))}}var K=v.readdir;v.readdir=readdir;var ae=/^v[0-5]\./;function readdir(v,I,P){if(typeof I==="function")P=I,I=null;var R=ae.test(process.version)?function go$readdir(v,I,P,R){return K(v,fs$readdirCallback(v,I,P,R))}:function go$readdir(v,I,P,R){return K(v,I,fs$readdirCallback(v,I,P,R))};return R(v,I,P);function fs$readdirCallback(v,I,P,$){return function(L,q){if(L&&(L.code==="EMFILE"||L.code==="ENFILE"))enqueue([R,[v,I,P],L,$||Date.now(),Date.now()]);else{if(q&&q.sort)q.sort();if(typeof P==="function")P.call(this,L,q)}}}}if(process.version.substr(0,4)==="v0.8"){var ge=L(v);ReadStream=ge.ReadStream;WriteStream=ge.WriteStream}var be=v.ReadStream;if(be){ReadStream.prototype=Object.create(be.prototype);ReadStream.prototype.open=ReadStream$open}var xe=v.WriteStream;if(xe){WriteStream.prototype=Object.create(xe.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(v,"ReadStream",{get:function(){return ReadStream},set:function(v){ReadStream=v},enumerable:true,configurable:true});Object.defineProperty(v,"WriteStream",{get:function(){return WriteStream},set:function(v){WriteStream=v},enumerable:true,configurable:true});var ve=ReadStream;Object.defineProperty(v,"FileReadStream",{get:function(){return ve},set:function(v){ve=v},enumerable:true,configurable:true});var Ce=WriteStream;Object.defineProperty(v,"FileWriteStream",{get:function(){return Ce},set:function(v){Ce=v},enumerable:true,configurable:true});function ReadStream(v,I){if(this instanceof ReadStream)return be.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var v=this;open(v.path,v.flags,v.mode,(function(I,P){if(I){if(v.autoClose)v.destroy();v.emit("error",I)}else{v.fd=P;v.emit("open",P);v.read()}}))}function WriteStream(v,I){if(this instanceof WriteStream)return xe.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var v=this;open(v.path,v.flags,v.mode,(function(I,P){if(I){v.destroy();v.emit("error",I)}else{v.fd=P;v.emit("open",P)}}))}function createReadStream(I,P){return new v.ReadStream(I,P)}function createWriteStream(I,P){return new v.WriteStream(I,P)}var Ne=v.open;v.open=open;function open(v,I,P,R){if(typeof P==="function")R=P,P=null;return go$open(v,I,P,R);function go$open(v,I,P,R,$){return Ne(v,I,P,(function(L,q){if(L&&(L.code==="EMFILE"||L.code==="ENFILE"))enqueue([go$open,[v,I,P,R],L,$||Date.now(),Date.now()]);else{if(typeof R==="function")R.apply(this,arguments)}}))}}return v}function enqueue(v){be("ENQUEUE",v[0].name,v[1]);R[ae].push(v);retry()}var ve;function resetQueue(){var v=Date.now();for(var I=0;I<R[ae].length;++I){if(R[ae][I].length>2){R[ae][I][3]=v;R[ae][I][4]=v}}retry()}function retry(){clearTimeout(ve);ve=undefined;if(R[ae].length===0)return;var v=R[ae].shift();var I=v[0];var P=v[1];var $=v[2];var L=v[3];var q=v[4];if(L===undefined){be("RETRY",I.name,P);I.apply(null,P)}else if(Date.now()-L>=6e4){be("TIMEOUT",I.name,P);var K=P.pop();if(typeof K==="function")K.call(null,$)}else{var ge=Date.now()-q;var xe=Math.max(q-L,1);var Ce=Math.min(xe*1.2,100);if(ge>=Ce){be("RETRY",I.name,P);I.apply(null,P.concat([L]))}else{R[ae].push(v)}}if(ve===undefined){ve=setTimeout(retry,0)}}},55653:function(v,I,P){var R=P(12781).Stream;v.exports=legacy;function legacy(v){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(I,P){if(!(this instanceof ReadStream))return new ReadStream(I,P);R.call(this);var $=this;this.path=I;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;P=P||{};var L=Object.keys(P);for(var q=0,K=L.length;q<K;q++){var ae=L[q];this[ae]=P[ae]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){$._read()}));return}v.open(this.path,this.flags,this.mode,(function(v,I){if(v){$.emit("error",v);$.readable=false;return}$.fd=I;$.emit("open",I);$._read()}))}function WriteStream(I,P){if(!(this instanceof WriteStream))return new WriteStream(I,P);R.call(this);this.path=I;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;P=P||{};var $=Object.keys(P);for(var L=0,q=$.length;L<q;L++){var K=$[L];this[K]=P[K]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=v.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},72164:function(v,I,P){var R=P(22057);var $=process.cwd;var L=null;var q=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!L)L=$.call(process);return L};try{process.cwd()}catch(v){}if(typeof process.chdir==="function"){var K=process.chdir;process.chdir=function(v){L=null;K.call(process,v)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,K)}v.exports=patch;function patch(v){if(R.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(v)}if(!v.lutimes){patchLutimes(v)}v.chown=chownFix(v.chown);v.fchown=chownFix(v.fchown);v.lchown=chownFix(v.lchown);v.chmod=chmodFix(v.chmod);v.fchmod=chmodFix(v.fchmod);v.lchmod=chmodFix(v.lchmod);v.chownSync=chownFixSync(v.chownSync);v.fchownSync=chownFixSync(v.fchownSync);v.lchownSync=chownFixSync(v.lchownSync);v.chmodSync=chmodFixSync(v.chmodSync);v.fchmodSync=chmodFixSync(v.fchmodSync);v.lchmodSync=chmodFixSync(v.lchmodSync);v.stat=statFix(v.stat);v.fstat=statFix(v.fstat);v.lstat=statFix(v.lstat);v.statSync=statFixSync(v.statSync);v.fstatSync=statFixSync(v.fstatSync);v.lstatSync=statFixSync(v.lstatSync);if(v.chmod&&!v.lchmod){v.lchmod=function(v,I,P){if(P)process.nextTick(P)};v.lchmodSync=function(){}}if(v.chown&&!v.lchown){v.lchown=function(v,I,P,R){if(R)process.nextTick(R)};v.lchownSync=function(){}}if(q==="win32"){v.rename=typeof v.rename!=="function"?v.rename:function(I){function rename(P,R,$){var L=Date.now();var q=0;I(P,R,(function CB(K){if(K&&(K.code==="EACCES"||K.code==="EPERM"||K.code==="EBUSY")&&Date.now()-L<6e4){setTimeout((function(){v.stat(R,(function(v,L){if(v&&v.code==="ENOENT")I(P,R,CB);else $(K)}))}),q);if(q<100)q+=10;return}if($)$(K)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,I);return rename}(v.rename)}v.read=typeof v.read!=="function"?v.read:function(I){function read(P,R,$,L,q,K){var ae;if(K&&typeof K==="function"){var ge=0;ae=function(be,xe,ve){if(be&&be.code==="EAGAIN"&&ge<10){ge++;return I.call(v,P,R,$,L,q,ae)}K.apply(this,arguments)}}return I.call(v,P,R,$,L,q,ae)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,I);return read}(v.read);v.readSync=typeof v.readSync!=="function"?v.readSync:function(I){return function(P,R,$,L,q){var K=0;while(true){try{return I.call(v,P,R,$,L,q)}catch(v){if(v.code==="EAGAIN"&&K<10){K++;continue}throw v}}}}(v.readSync);function patchLchmod(v){v.lchmod=function(I,P,$){v.open(I,R.O_WRONLY|R.O_SYMLINK,P,(function(I,R){if(I){if($)$(I);return}v.fchmod(R,P,(function(I){v.close(R,(function(v){if($)$(I||v)}))}))}))};v.lchmodSync=function(I,P){var $=v.openSync(I,R.O_WRONLY|R.O_SYMLINK,P);var L=true;var q;try{q=v.fchmodSync($,P);L=false}finally{if(L){try{v.closeSync($)}catch(v){}}else{v.closeSync($)}}return q}}function patchLutimes(v){if(R.hasOwnProperty("O_SYMLINK")&&v.futimes){v.lutimes=function(I,P,$,L){v.open(I,R.O_SYMLINK,(function(I,R){if(I){if(L)L(I);return}v.futimes(R,P,$,(function(I){v.close(R,(function(v){if(L)L(I||v)}))}))}))};v.lutimesSync=function(I,P,$){var L=v.openSync(I,R.O_SYMLINK);var q;var K=true;try{q=v.futimesSync(L,P,$);K=false}finally{if(K){try{v.closeSync(L)}catch(v){}}else{v.closeSync(L)}}return q}}else if(v.futimes){v.lutimes=function(v,I,P,R){if(R)process.nextTick(R)};v.lutimesSync=function(){}}}function chmodFix(I){if(!I)return I;return function(P,R,$){return I.call(v,P,R,(function(v){if(chownErOk(v))v=null;if($)$.apply(this,arguments)}))}}function chmodFixSync(I){if(!I)return I;return function(P,R){try{return I.call(v,P,R)}catch(v){if(!chownErOk(v))throw v}}}function chownFix(I){if(!I)return I;return function(P,R,$,L){return I.call(v,P,R,$,(function(v){if(chownErOk(v))v=null;if(L)L.apply(this,arguments)}))}}function chownFixSync(I){if(!I)return I;return function(P,R,$){try{return I.call(v,P,R,$)}catch(v){if(!chownErOk(v))throw v}}}function statFix(I){if(!I)return I;return function(P,R,$){if(typeof R==="function"){$=R;R=null}function callback(v,I){if(I){if(I.uid<0)I.uid+=4294967296;if(I.gid<0)I.gid+=4294967296}if($)$.apply(this,arguments)}return R?I.call(v,P,R,callback):I.call(v,P,callback)}}function statFixSync(I){if(!I)return I;return function(P,R){var $=R?I.call(v,P,R):I.call(v,P);if($){if($.uid<0)$.uid+=4294967296;if($.gid<0)$.gid+=4294967296}return $}}function chownErOk(v){if(!v)return true;if(v.code==="ENOSYS")return true;var I=!process.getuid||process.getuid()!==0;if(I){if(v.code==="EINVAL"||v.code==="EPERM")return true}return false}}},54650:function(v){"use strict";const hexify=v=>{const I=v.charCodeAt(0).toString(16).toUpperCase();return"0x"+(I.length%2?"0":"")+I};const parseError=(v,I,P)=>{if(!I){return{message:v.message+" while parsing empty string",position:0}}const R=v.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);const $=R?+R[2]:v.message.match(/^Unexpected end of JSON.*/i)?I.length-1:null;const L=R?v.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(R[1])} (${hexify(R[1])})`):v.message;if($!==null&&$!==undefined){const v=$<=P?0:$-P;const R=$+P>=I.length?I.length:$+P;const q=(v===0?"":"...")+I.slice(v,R)+(R===I.length?"":"...");const K=I===q?"":"near ";return{message:L+` while parsing ${K}${JSON.stringify(q)}`,position:$}}else{return{message:L+` while parsing '${I.slice(0,P*2)}'`,position:0}}};class JSONParseError extends SyntaxError{constructor(v,I,P,R){P=P||20;const $=parseError(v,I,P);super($.message);Object.assign(this,$);this.code="EJSONPARSE";this.systemError=v;Error.captureStackTrace(this,R||this.constructor)}get name(){return this.constructor.name}set name(v){}get[Symbol.toStringTag](){return this.constructor.name}}const I=Symbol.for("indent");const P=Symbol.for("newline");const R=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;const $=/^(?:\{\}|\[\])((?:\r?\n)+)?$/;const parseJson=(v,L,q)=>{const K=stripBOM(v);q=q||20;try{const[,v="\n",q=" "]=K.match($)||K.match(R)||[,"",""];const ae=JSON.parse(K,L);if(ae&&typeof ae==="object"){ae[P]=v;ae[I]=q}return ae}catch(I){if(typeof v!=="string"&&!Buffer.isBuffer(v)){const P=Array.isArray(v)&&v.length===0;throw Object.assign(new TypeError(`Cannot parse ${P?"an empty array":String(v)}`),{code:"EJSONPARSE",systemError:I})}throw new JSONParseError(I,K,q,parseJson)}};const stripBOM=v=>String(v).replace(/^\uFEFF/,"");v.exports=parseJson;parseJson.JSONParseError=JSONParseError;parseJson.noExceptions=(v,I)=>{try{return JSON.parse(stripBOM(v),I)}catch(v){}}},77734:function(v,I,P){
2/*!
3 * mime-db
4 * Copyright(c) 2014 Jonathan Ong

Callers

nothing calls this directly

Calls 15

ensureHookMethod · 0.80
getHookMethod · 0.80
charCodeAtMethod · 0.80
doResolveMethod · 0.80
LFunction · 0.70
$Function · 0.70
getMethod · 0.65
setMethod · 0.65
execMethod · 0.65
testMethod · 0.65
veFunction · 0.50
vFunction · 0.50

Tested by

no test coverage detected