UNPKG

pkg-components

Version:
13 lines 215 kB
import{u as Gn,_ as zn,e as Wn,a as $n,S as Jn,c as te,g as Xn,b as Ur,h as Hn,d as Qn,T as Gr,i as ft,f as Yn}from"./_getPrototype-C6fF5Upg.js";import{P as zr}from"./index-B3IC6ylx.js";import{a as Nt,c as lt,g as Kn}from"./_commonjsHelpers-C4iS2aBk.js";import{d as Zn}from"./index-DrFu-skq.js";import{j as bi,k as Si,f as es,l as Wr}from"./_baseIteratee-goBjEgV6.js";import{R as at,r as ze}from"./index-DPzuYzxM.js";const ts=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var rs=ts;const is=Nt(rs);var _i={},Ei={};(function(e){(function t(r){var i,s,a,c,f,p;function y(m){var x={},_,k;for(_ in m)m.hasOwnProperty(_)&&(k=m[_],typeof k=="object"&&k!==null?x[_]=y(k):x[_]=k);return x}function g(m,x){var _,k,B,R;for(k=m.length,B=0;k;)_=k>>>1,R=B+_,x(m[R])?k=_:(B=R+1,k-=_+1);return B}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"},a={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"]},c={},f={},p={},s={Break:c,Skip:f,Remove:p};function b(m,x){this.parent=m,this.key=x}b.prototype.replace=function(x){this.parent[this.key]=x},b.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function E(m,x,_,k){this.node=m,this.path=x,this.wrap=_,this.ref=k}function S(){}S.prototype.path=function(){var x,_,k,B,R,G;function q(D,H){if(Array.isArray(H))for(k=0,B=H.length;k<B;++k)D.push(H[k]);else D.push(H)}if(!this.__current.path)return null;for(R=[],x=2,_=this.__leavelist.length;x<_;++x)G=this.__leavelist[x],q(R,G.path);return q(R,this.__current.path),R},S.prototype.type=function(){var m=this.current();return m.type||this.__current.wrap},S.prototype.parents=function(){var x,_,k;for(k=[],x=1,_=this.__leavelist.length;x<_;++x)k.push(this.__leavelist[x].node);return k},S.prototype.current=function(){return this.__current.node},S.prototype.__execute=function(x,_){var k,B;return B=void 0,k=this.__current,this.__current=_,this.__state=null,x&&(B=x.call(this,_.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=k,B},S.prototype.notify=function(x){this.__state=x},S.prototype.skip=function(){this.notify(f)},S.prototype.break=function(){this.notify(c)},S.prototype.remove=function(){this.notify(p)},S.prototype.__initialize=function(m,x){this.visitor=x,this.root=m,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,x.fallback==="iteration"?this.__fallback=Object.keys:typeof x.fallback=="function"&&(this.__fallback=x.fallback),this.__keys=a,x.keys&&(this.__keys=Object.assign(Object.create(this.__keys),x.keys))};function C(m){return m==null?!1:typeof m=="object"&&typeof m.type=="string"}function v(m,x){return(m===i.ObjectExpression||m===i.ObjectPattern)&&x==="properties"}function I(m,x){for(var _=m.length-1;_>=0;--_)if(m[_].node===x)return!0;return!1}S.prototype.traverse=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe;for(this.__initialize(x,_),xe={},k=this.__worklist,B=this.__leavelist,k.push(new E(x,null,null,null)),B.push(new E(null,null,null,null));k.length;){if(R=k.pop(),R===xe){if(R=B.pop(),D=this.__execute(_.leave,R),this.__state===c||D===c)return;continue}if(R.node){if(D=this.__execute(_.enter,R),this.__state===c||D===c)return;if(k.push(xe),B.push(R),this.__state===f||D===f)continue;if(G=R.node,q=G.type||R.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(G);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(H=ie[ne],Q=G[H],!!Q){if(Array.isArray(Q)){for(ue=Q.length;(ue-=1)>=0;)if(Q[ue]&&!I(B,Q[ue])){if(v(q,ie[ne]))R=new E(Q[ue],[H,ue],"Property",null);else if(C(Q[ue]))R=new E(Q[ue],[H,ue],null,null);else continue;k.push(R)}}else if(C(Q)){if(I(B,Q))continue;k.push(new E(Q,H,null,null))}}}}},S.prototype.replace=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe,Te;function Je(M){var Ve,vt,Fe,ee;if(M.ref.remove()){for(vt=M.ref.key,ee=M.ref.parent,Ve=k.length;Ve--;)if(Fe=k[Ve],Fe.ref&&Fe.ref.parent===ee){if(Fe.ref.key<vt)break;--Fe.ref.key}}}for(this.__initialize(x,_),Q={},k=this.__worklist,B=this.__leavelist,xe={root:x},D=new E(x,null,null,new b(xe,"root")),k.push(D),B.push(D);k.length;){if(D=k.pop(),D===Q){if(D=B.pop(),q=this.__execute(_.leave,D),q!==void 0&&q!==c&&q!==f&&q!==p&&D.ref.replace(q),(this.__state===p||q===p)&&Je(D),this.__state===c||q===c)return xe.root;continue}if(q=this.__execute(_.enter,D),q!==void 0&&q!==c&&q!==f&&q!==p&&(D.ref.replace(q),D.node=q),(this.__state===p||q===p)&&(Je(D),D.node=null),this.__state===c||q===c)return xe.root;if(R=D.node,!!R&&(k.push(Q),B.push(D),!(this.__state===f||q===f))){if(G=R.type||D.wrap,ue=this.__keys[G],!ue)if(this.__fallback)ue=this.__fallback(R);else throw new Error("Unknown node type "+G+".");for(H=ue.length;(H-=1)>=0;)if(Te=ue[H],ie=R[Te],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(v(G,ue[H]))D=new E(ie[ne],[Te,ne],"Property",new b(ie,ne));else if(C(ie[ne]))D=new E(ie[ne],[Te,ne],null,new b(ie,ne));else continue;k.push(D)}}else C(ie)&&k.push(new E(ie,Te,null,new b(R,Te)))}}return xe.root};function O(m,x){var _=new S;return _.traverse(m,x)}function L(m,x){var _=new S;return _.replace(m,x)}function V(m,x){var _;return _=g(x,function(B){return B.range[0]>m.range[0]}),m.extendedRange=[m.range[0],m.range[1]],_!==x.length&&(m.extendedRange[1]=x[_].range[0]),_-=1,_>=0&&(m.extendedRange[0]=x[_].range[1]),m}function A(m,x,_){var k=[],B,R,G,q;if(!m.range)throw new Error("attachComments needs range information");if(!_.length){if(x.length){for(G=0,R=x.length;G<R;G+=1)B=y(x[G]),B.extendedRange=[0,m.range[0]],k.push(B);m.leadingComments=k}return m}for(G=0,R=x.length;G<R;G+=1)k.push(V(y(x[G]),_));return q=0,O(m,{enter:function(D){for(var H;q<k.length&&(H=k[q],!(H.extendedRange[1]>D.range[0]));)H.extendedRange[1]===D.range[0]?(D.leadingComments||(D.leadingComments=[]),D.leadingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>D.range[1])return s.Skip}}),q=0,O(m,{leave:function(D){for(var H;q<k.length&&(H=k[q],!(D.range[1]<H.extendedRange[0]));)D.range[1]===H.extendedRange[0]?(D.trailingComments||(D.trailingComments=[]),D.trailingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>D.range[1])return s.Skip}}),m}return r.Syntax=i,r.traverse=O,r.replace=L,r.attachComments=A,r.VisitorKeys=a,r.VisitorOption=s,r.Controller=S,r.cloneEnvironment=function(){return t({})},r})(e)})(Ei);var it={},Kt={},_t={},Et={},$r;function ns(){if($r)return Et;$r=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Et.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Et.decode=function(t){var r=65,i=90,s=97,a=122,c=48,f=57,p=43,y=47,g=26,b=52;return r<=t&&t<=i?t-r:s<=t&&t<=a?t-s+g:c<=t&&t<=f?t-c+b:t==p?62:t==y?63:-1},Et}var Jr;function Ci(){if(Jr)return _t;Jr=1;var e=ns(),t=5,r=1<<t,i=r-1,s=r;function a(f){return f<0?(-f<<1)+1:(f<<1)+0}function c(f){var p=(f&1)===1,y=f>>1;return p?-y:y}return _t.encode=function(p){var y="",g,b=a(p);do g=b&i,b>>>=t,b>0&&(g|=s),y+=e.encode(g);while(b>0);return y},_t.decode=function(p,y,g){var b=p.length,E=0,S=0,C,v;do{if(y>=b)throw new Error("Expected more digits in base 64 VLQ value.");if(v=e.decode(p.charCodeAt(y++)),v===-1)throw new Error("Invalid base64 digit: "+p.charAt(y-1));C=!!(v&s),v&=i,E=E+(v<<S),S+=t}while(C);g.value=c(E),g.rest=y},_t}var Zt={},Xr;function pt(){return Xr||(Xr=1,function(e){function t(A,m,x){if(m in A)return A[m];if(arguments.length===3)return x;throw new Error('"'+m+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,i=/^data:.+\,.+$/;function s(A){var m=A.match(r);return m?{scheme:m[1],auth:m[2],host:m[3],port:m[4],path:m[5]}:null}e.urlParse=s;function a(A){var m="";return A.scheme&&(m+=A.scheme+":"),m+="//",A.auth&&(m+=A.auth+"@"),A.host&&(m+=A.host),A.port&&(m+=":"+A.port),A.path&&(m+=A.path),m}e.urlGenerate=a;function c(A){var m=A,x=s(A);if(x){if(!x.path)return A;m=x.path}for(var _=e.isAbsolute(m),k=m.split(/\/+/),B,R=0,G=k.length-1;G>=0;G--)B=k[G],B==="."?k.splice(G,1):B===".."?R++:R>0&&(B===""?(k.splice(G+1,R),R=0):(k.splice(G,2),R--));return m=k.join("/"),m===""&&(m=_?"/":"."),x?(x.path=m,a(x)):m}e.normalize=c;function f(A,m){A===""&&(A="."),m===""&&(m=".");var x=s(m),_=s(A);if(_&&(A=_.path||"/"),x&&!x.scheme)return _&&(x.scheme=_.scheme),a(x);if(x||m.match(i))return m;if(_&&!_.host&&!_.path)return _.host=m,a(_);var k=m.charAt(0)==="/"?m:c(A.replace(/\/+$/,"")+"/"+m);return _?(_.path=k,a(_)):k}e.join=f,e.isAbsolute=function(A){return A.charAt(0)==="/"||r.test(A)};function p(A,m){A===""&&(A="."),A=A.replace(/\/$/,"");for(var x=0;m.indexOf(A+"/")!==0;){var _=A.lastIndexOf("/");if(_<0||(A=A.slice(0,_),A.match(/^([^\/]+:\/)?\/*$/)))return m;++x}return Array(x+1).join("../")+m.substr(A.length+1)}e.relative=p;var y=function(){var A=Object.create(null);return!("__proto__"in A)}();function g(A){return A}function b(A){return S(A)?"$"+A:A}e.toSetString=y?g:b;function E(A){return S(A)?A.slice(1):A}e.fromSetString=y?g:E;function S(A){if(!A)return!1;var m=A.length;if(m<9||A.charCodeAt(m-1)!==95||A.charCodeAt(m-2)!==95||A.charCodeAt(m-3)!==111||A.charCodeAt(m-4)!==116||A.charCodeAt(m-5)!==111||A.charCodeAt(m-6)!==114||A.charCodeAt(m-7)!==112||A.charCodeAt(m-8)!==95||A.charCodeAt(m-9)!==95)return!1;for(var x=m-10;x>=0;x--)if(A.charCodeAt(x)!==36)return!1;return!0}function C(A,m,x){var _=I(A.source,m.source);return _!==0||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0||x)||(_=A.generatedColumn-m.generatedColumn,_!==0)||(_=A.generatedLine-m.generatedLine,_!==0)?_:I(A.name,m.name)}e.compareByOriginalPositions=C;function v(A,m,x){var _=A.generatedLine-m.generatedLine;return _!==0||(_=A.generatedColumn-m.generatedColumn,_!==0||x)||(_=I(A.source,m.source),_!==0)||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0)?_:I(A.name,m.name)}e.compareByGeneratedPositionsDeflated=v;function I(A,m){return A===m?0:A===null?1:m===null?-1:A>m?1:-1}function O(A,m){var x=A.generatedLine-m.generatedLine;return x!==0||(x=A.generatedColumn-m.generatedColumn,x!==0)||(x=I(A.source,m.source),x!==0)||(x=A.originalLine-m.originalLine,x!==0)||(x=A.originalColumn-m.originalColumn,x!==0)?x:I(A.name,m.name)}e.compareByGeneratedPositionsInflated=O;function L(A){return JSON.parse(A.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function V(A,m,x){if(m=m||"",A&&(A[A.length-1]!=="/"&&m[0]!=="/"&&(A+="/"),m=A+m),x){var _=s(x);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var k=_.path.lastIndexOf("/");k>=0&&(_.path=_.path.substring(0,k+1))}m=f(a(_),m)}return c(m)}e.computeSourceURL=V}(Zt)),Zt}var er={},Hr;function Ai(){if(Hr)return er;Hr=1;var e=pt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(a,c){for(var f=new i,p=0,y=a.length;p<y;p++)f.add(a[p],c);return f},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(a,c){var f=r?a:e.toSetString(a),p=r?this.has(a):t.call(this._set,f),y=this._array.length;(!p||c)&&this._array.push(a),p||(r?this._set.set(a,y):this._set[f]=y)},i.prototype.has=function(a){if(r)return this._set.has(a);var c=e.toSetString(a);return t.call(this._set,c)},i.prototype.indexOf=function(a){if(r){var c=this._set.get(a);if(c>=0)return c}else{var f=e.toSetString(a);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+a+'" is not in the set.')},i.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},i.prototype.toArray=function(){return this._array.slice()},er.ArraySet=i,er}var tr={},Qr;function ss(){if(Qr)return tr;Qr=1;var e=pt();function t(i,s){var a=i.generatedLine,c=s.generatedLine,f=i.generatedColumn,p=s.generatedColumn;return c>a||c==a&&p>=f||e.compareByGeneratedPositionsInflated(i,s)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(s,a){this._array.forEach(s,a)},r.prototype.add=function(s){t(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=!1,this._array.push(s))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},tr.MappingList=r,tr}var Yr;function wi(){if(Yr)return Kt;Yr=1;var e=Ci(),t=pt(),r=Ai().ArraySet,i=ss().MappingList;function s(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return s.prototype._version=3,s.fromSourceMap=function(c){var f=c.sourceRoot,p=new s({file:c.file,sourceRoot:f});return c.eachMapping(function(y){var g={generated:{line:y.generatedLine,column:y.generatedColumn}};y.source!=null&&(g.source=y.source,f!=null&&(g.source=t.relative(f,g.source)),g.original={line:y.originalLine,column:y.originalColumn},y.name!=null&&(g.name=y.name)),p.addMapping(g)}),c.sources.forEach(function(y){var g=y;f!==null&&(g=t.relative(f,y)),p._sources.has(g)||p._sources.add(g);var b=c.sourceContentFor(y);b!=null&&p.setSourceContent(y,b)}),p},s.prototype.addMapping=function(c){var f=t.getArg(c,"generated"),p=t.getArg(c,"original",null),y=t.getArg(c,"source",null),g=t.getArg(c,"name",null);this._skipValidation||this._validateMapping(f,p,y,g),y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:y,name:g})},s.prototype.setSourceContent=function(c,f){var p=c;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(c,f,p){var y=f;if(f==null){if(c.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=c.file}var g=this._sourceRoot;g!=null&&(y=t.relative(g,y));var b=new r,E=new r;this._mappings.unsortedForEach(function(S){if(S.source===y&&S.originalLine!=null){var C=c.originalPositionFor({line:S.originalLine,column:S.originalColumn});C.source!=null&&(S.source=C.source,p!=null&&(S.source=t.join(p,S.source)),g!=null&&(S.source=t.relative(g,S.source)),S.originalLine=C.line,S.originalColumn=C.column,C.name!=null&&(S.name=C.name))}var v=S.source;v!=null&&!b.has(v)&&b.add(v);var I=S.name;I!=null&&!E.has(I)&&E.add(I)},this),this._sources=b,this._names=E,c.sources.forEach(function(S){var C=c.sourceContentFor(S);C!=null&&(p!=null&&(S=t.join(p,S)),g!=null&&(S=t.relative(g,S)),this.setSourceContent(S,C))},this)},s.prototype._validateMapping=function(c,f,p,y){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(c&&"line"in c&&"column"in c&&c.line>0&&c.column>=0&&!f&&!p&&!y)){if(c&&"line"in c&&"column"in c&&f&&"line"in f&&"column"in f&&c.line>0&&c.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:c,source:p,original:f,name:y}))}},s.prototype._serializeMappings=function(){for(var c=0,f=1,p=0,y=0,g=0,b=0,E="",S,C,v,I,O=this._mappings.toArray(),L=0,V=O.length;L<V;L++){if(C=O[L],S="",C.generatedLine!==f)for(c=0;C.generatedLine!==f;)S+=";",f++;else if(L>0){if(!t.compareByGeneratedPositionsInflated(C,O[L-1]))continue;S+=","}S+=e.encode(C.generatedColumn-c),c=C.generatedColumn,C.source!=null&&(I=this._sources.indexOf(C.source),S+=e.encode(I-b),b=I,S+=e.encode(C.originalLine-1-y),y=C.originalLine-1,S+=e.encode(C.originalColumn-p),p=C.originalColumn,C.name!=null&&(v=this._names.indexOf(C.name),S+=e.encode(v-g),g=v)),E+=S}return E},s.prototype._generateSourcesContent=function(c,f){return c.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var y=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},s.prototype.toJSON=function(){var c={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(c.file=this._file),this._sourceRoot!=null&&(c.sourceRoot=this._sourceRoot),this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,c.sourceRoot)),c},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},Kt.SourceMapGenerator=s,Kt}var nt={},rr={},Kr;function as(){return Kr||(Kr=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,s,a,c,f){var p=Math.floor((i-r)/2)+r,y=c(s,a[p],!0);return y===0?p:y>0?i-p>1?t(p,i,s,a,c,f):f==e.LEAST_UPPER_BOUND?i<a.length?i:-1:p:p-r>1?t(r,p,s,a,c,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,s,a,c){if(s.length===0)return-1;var f=t(-1,s.length,i,s,a,c||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&a(s[f],s[f-1],!0)===0;)--f;return f}}(rr)),rr}var ir={},Zr;function os(){if(Zr)return ir;Zr=1;function e(i,s,a){var c=i[s];i[s]=i[a],i[a]=c}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,a,c){if(a<c){var f=t(a,c),p=a-1;e(i,f,c);for(var y=i[c],g=a;g<c;g++)s(i[g],y)<=0&&(p+=1,e(i,p,g));e(i,p+1,g);var b=p+1;r(i,s,a,b-1),r(i,s,b+1,c)}}return ir.quickSort=function(i,s){r(i,s,0,i.length-1)},ir}var ei;function us(){if(ei)return nt;ei=1;var e=pt(),t=as(),r=Ai().ArraySet,i=Ci(),s=os().quickSort;function a(y,g){var b=y;return typeof y=="string"&&(b=e.parseSourceMapInput(y)),b.sections!=null?new p(b,g):new c(b,g)}a.fromSourceMap=function(y,g){return c.fromSourceMap(y,g)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(g,b){var E=g.charAt(b);return E===";"||E===","},a.prototype._parseMappings=function(g,b){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(g,b,E){var S=b||null,C=E||a.GENERATED_ORDER,v;switch(C){case a.GENERATED_ORDER:v=this._generatedMappings;break;case a.ORIGINAL_ORDER:v=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var I=this.sourceRoot;v.map(function(O){var L=O.source===null?null:this._sources.at(O.source);return L=e.computeSourceURL(I,L,this._sourceMapURL),{source:L,generatedLine:O.generatedLine,generatedColumn:O.generatedColumn,originalLine:O.originalLine,originalColumn:O.originalColumn,name:O.name===null?null:this._names.at(O.name)}},this).forEach(g,S)},a.prototype.allGeneratedPositionsFor=function(g){var b=e.getArg(g,"line"),E={source:e.getArg(g,"source"),originalLine:b,originalColumn:e.getArg(g,"column",0)};if(E.source=this._findSourceIndex(E.source),E.source<0)return[];var S=[],C=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(C>=0){var v=this._originalMappings[C];if(g.column===void 0)for(var I=v.originalLine;v&&v.originalLine===I;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C];else for(var O=v.originalColumn;v&&v.originalLine===b&&v.originalColumn==O;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C]}return S},nt.SourceMapConsumer=a;function c(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sources"),C=e.getArg(b,"names",[]),v=e.getArg(b,"sourceRoot",null),I=e.getArg(b,"sourcesContent",null),O=e.getArg(b,"mappings"),L=e.getArg(b,"file",null);if(E!=this._version)throw new Error("Unsupported version: "+E);v&&(v=e.normalize(v)),S=S.map(String).map(e.normalize).map(function(V){return v&&e.isAbsolute(v)&&e.isAbsolute(V)?e.relative(v,V):V}),this._names=r.fromArray(C.map(String),!0),this._sources=r.fromArray(S,!0),this._absoluteSources=this._sources.toArray().map(function(V){return e.computeSourceURL(v,V,g)}),this.sourceRoot=v,this.sourcesContent=I,this._mappings=O,this._sourceMapURL=g,this.file=L}c.prototype=Object.create(a.prototype),c.prototype.consumer=a,c.prototype._findSourceIndex=function(y){var g=y;if(this.sourceRoot!=null&&(g=e.relative(this.sourceRoot,g)),this._sources.has(g))return this._sources.indexOf(g);var b;for(b=0;b<this._absoluteSources.length;++b)if(this._absoluteSources[b]==y)return b;return-1},c.fromSourceMap=function(g,b){var E=Object.create(c.prototype),S=E._names=r.fromArray(g._names.toArray(),!0),C=E._sources=r.fromArray(g._sources.toArray(),!0);E.sourceRoot=g._sourceRoot,E.sourcesContent=g._generateSourcesContent(E._sources.toArray(),E.sourceRoot),E.file=g._file,E._sourceMapURL=b,E._absoluteSources=E._sources.toArray().map(function(x){return e.computeSourceURL(E.sourceRoot,x,b)});for(var v=g._mappings.toArray().slice(),I=E.__generatedMappings=[],O=E.__originalMappings=[],L=0,V=v.length;L<V;L++){var A=v[L],m=new f;m.generatedLine=A.generatedLine,m.generatedColumn=A.generatedColumn,A.source&&(m.source=C.indexOf(A.source),m.originalLine=A.originalLine,m.originalColumn=A.originalColumn,A.name&&(m.name=S.indexOf(A.name)),O.push(m)),I.push(m)}return s(E.__originalMappings,e.compareByOriginalPositions),E},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}c.prototype._parseMappings=function(g,b){for(var E=1,S=0,C=0,v=0,I=0,O=0,L=g.length,V=0,A={},m={},x=[],_=[],k,B,R,G,q;V<L;)if(g.charAt(V)===";")E++,V++,S=0;else if(g.charAt(V)===",")V++;else{for(k=new f,k.generatedLine=E,G=V;G<L&&!this._charIsMappingSeparator(g,G);G++);if(B=g.slice(V,G),R=A[B],R)V+=B.length;else{for(R=[];V<G;)i.decode(g,V,m),q=m.value,V=m.rest,R.push(q);if(R.length===2)throw new Error("Found a source, but no line and column");if(R.length===3)throw new Error("Found a source and line, but no column");A[B]=R}k.generatedColumn=S+R[0],S=k.generatedColumn,R.length>1&&(k.source=I+R[1],I+=R[1],k.originalLine=C+R[2],C=k.originalLine,k.originalLine+=1,k.originalColumn=v+R[3],v=k.originalColumn,R.length>4&&(k.name=O+R[4],O+=R[4])),_.push(k),typeof k.originalLine=="number"&&x.push(k)}s(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,s(x,e.compareByOriginalPositions),this.__originalMappings=x},c.prototype._findMapping=function(g,b,E,S,C,v){if(g[E]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+g[E]);if(g[S]<0)throw new TypeError("Column must be greater than or equal to 0, got "+g[S]);return t.search(g,b,C,v)},c.prototype.computeColumnSpans=function(){for(var g=0;g<this._generatedMappings.length;++g){var b=this._generatedMappings[g];if(g+1<this._generatedMappings.length){var E=this._generatedMappings[g+1];if(b.generatedLine===E.generatedLine){b.lastGeneratedColumn=E.generatedColumn-1;continue}}b.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(g){var b={generatedLine:e.getArg(g,"line"),generatedColumn:e.getArg(g,"column")},E=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(E>=0){var S=this._generatedMappings[E];if(S.generatedLine===b.generatedLine){var C=e.getArg(S,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var v=e.getArg(S,"name",null);return v!==null&&(v=this._names.at(v)),{source:C,line:e.getArg(S,"originalLine",null),column:e.getArg(S,"originalColumn",null),name:v}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(g){return g==null}):!1},c.prototype.sourceContentFor=function(g,b){if(!this.sourcesContent)return null;var E=this._findSourceIndex(g);if(E>=0)return this.sourcesContent[E];var S=g;this.sourceRoot!=null&&(S=e.relative(this.sourceRoot,S));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var v=S.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!C.path||C.path=="/")&&this._sources.has("/"+S))return this.sourcesContent[this._sources.indexOf("/"+S)]}if(b)return null;throw new Error('"'+S+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(g){var b=e.getArg(g,"source");if(b=this._findSourceIndex(b),b<0)return{line:null,column:null,lastColumn:null};var E={source:b,originalLine:e.getArg(g,"line"),originalColumn:e.getArg(g,"column")},S=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(S>=0){var C=this._originalMappings[S];if(C.source===E.source)return{line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},nt.BasicSourceMapConsumer=c;function p(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sections");if(E!=this._version)throw new Error("Unsupported version: "+E);this._sources=new r,this._names=new r;var C={line:-1,column:0};this._sections=S.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var I=e.getArg(v,"offset"),O=e.getArg(I,"line"),L=e.getArg(I,"column");if(O<C.line||O===C.line&&L<C.column)throw new Error("Section offsets must be ordered and non-overlapping.");return C=I,{generatedOffset:{generatedLine:O+1,generatedColumn:L+1},consumer:new a(e.getArg(v,"map"),g)}})}return p.prototype=Object.create(a.prototype),p.prototype.constructor=a,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var y=[],g=0;g<this._sections.length;g++)for(var b=0;b<this._sections[g].consumer.sources.length;b++)y.push(this._sections[g].consumer.sources[b]);return y}}),p.prototype.originalPositionFor=function(g){var b={generatedLine:e.getArg(g,"line"),generatedColumn:e.getArg(g,"column")},E=t.search(b,this._sections,function(C,v){var I=C.generatedLine-v.generatedOffset.generatedLine;return I||C.generatedColumn-v.generatedOffset.generatedColumn}),S=this._sections[E];return S?S.consumer.originalPositionFor({line:b.generatedLine-(S.generatedOffset.generatedLine-1),column:b.generatedColumn-(S.generatedOffset.generatedLine===b.generatedLine?S.generatedOffset.generatedColumn-1:0),bias:g.bias}):{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(g){return g.consumer.hasContentsOfAllSources()})},p.prototype.sourceContentFor=function(g,b){for(var E=0;E<this._sections.length;E++){var S=this._sections[E],C=S.consumer.sourceContentFor(g,!0);if(C)return C}if(b)return null;throw new Error('"'+g+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(g){for(var b=0;b<this._sections.length;b++){var E=this._sections[b];if(E.consumer._findSourceIndex(e.getArg(g,"source"))!==-1){var S=E.consumer.generatedPositionFor(g);if(S){var C={line:S.line+(E.generatedOffset.generatedLine-1),column:S.column+(E.generatedOffset.generatedLine===S.line?E.generatedOffset.generatedColumn-1:0)};return C}}}return{line:null,column:null}},p.prototype._parseMappings=function(g,b){this.__generatedMappings=[],this.__originalMappings=[];for(var E=0;E<this._sections.length;E++)for(var S=this._sections[E],C=S.consumer._generatedMappings,v=0;v<C.length;v++){var I=C[v],O=S.consumer._sources.at(I.source);O=e.computeSourceURL(S.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var L=null;I.name&&(L=S.consumer._names.at(I.name),this._names.add(L),L=this._names.indexOf(L));var V={source:O,generatedLine:I.generatedLine+(S.generatedOffset.generatedLine-1),generatedColumn:I.generatedColumn+(S.generatedOffset.generatedLine===I.generatedLine?S.generatedOffset.generatedColumn-1:0),originalLine:I.originalLine,originalColumn:I.originalColumn,name:L};this.__generatedMappings.push(V),typeof V.originalLine=="number"&&this.__originalMappings.push(V)}s(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),s(this.__originalMappings,e.compareByOriginalPositions)},nt.IndexedSourceMapConsumer=p,nt}var nr={},ti;function ls(){if(ti)return nr;ti=1;var e=wi().SourceMapGenerator,t=pt(),r=/(\r?\n)/,i=10,s="$$$isSourceNode$$$";function a(c,f,p,y,g){this.children=[],this.sourceContents={},this.line=c??null,this.column=f??null,this.source=p??null,this.name=g??null,this[s]=!0,y!=null&&this.add(y)}return a.fromStringWithSourceMap=function(f,p,y){var g=new a,b=f.split(r),E=0,S=function(){var L=A(),V=A()||"";return L+V;function A(){return E<b.length?b[E++]:void 0}},C=1,v=0,I=null;return p.eachMapping(function(L){if(I!==null)if(C<L.generatedLine)O(I,S()),C++,v=0;else{var V=b[E]||"",A=V.substr(0,L.generatedColumn-v);b[E]=V.substr(L.generatedColumn-v),v=L.generatedColumn,O(I,A),I=L;return}for(;C<L.generatedLine;)g.add(S()),C++;if(v<L.generatedColumn){var V=b[E]||"";g.add(V.substr(0,L.generatedColumn)),b[E]=V.substr(L.generatedColumn),v=L.generatedColumn}I=L},this),E<b.length&&(I&&O(I,S()),g.add(b.splice(E).join(""))),p.sources.forEach(function(L){var V=p.sourceContentFor(L);V!=null&&(y!=null&&(L=t.join(y,L)),g.setSourceContent(L,V))}),g;function O(L,V){if(L===null||L.source===void 0)g.add(V);else{var A=y?t.join(y,L.source):L.source;g.add(new a(L.originalLine,L.originalColumn,A,V,L.name))}}},a.prototype.add=function(f){if(Array.isArray(f))f.forEach(function(p){this.add(p)},this);else if(f[s]||typeof f=="string")f&&this.children.push(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.prepend=function(f){if(Array.isArray(f))for(var p=f.length-1;p>=0;p--)this.prepend(f[p]);else if(f[s]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.walk=function(f){for(var p,y=0,g=this.children.length;y<g;y++)p=this.children[y],p[s]?p.walk(f):p!==""&&f(p,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(f){var p,y,g=this.children.length;if(g>0){for(p=[],y=0;y<g-1;y++)p.push(this.children[y]),p.push(f);p.push(this.children[y]),this.children=p}return this},a.prototype.replaceRight=function(f,p){var y=this.children[this.children.length-1];return y[s]?y.replaceRight(f,p):typeof y=="string"?this.children[this.children.length-1]=y.replace(f,p):this.children.push("".replace(f,p)),this},a.prototype.setSourceContent=function(f,p){this.sourceContents[t.toSetString(f)]=p},a.prototype.walkSourceContents=function(f){for(var p=0,y=this.children.length;p<y;p++)this.children[p][s]&&this.children[p].walkSourceContents(f);for(var g=Object.keys(this.sourceContents),p=0,y=g.length;p<y;p++)f(t.fromSetString(g[p]),this.sourceContents[g[p]])},a.prototype.toString=function(){var f="";return this.walk(function(p){f+=p}),f},a.prototype.toStringWithSourceMap=function(f){var p={code:"",line:1,column:0},y=new e(f),g=!1,b=null,E=null,S=null,C=null;return this.walk(function(v,I){p.code+=v,I.source!==null&&I.line!==null&&I.column!==null?((b!==I.source||E!==I.line||S!==I.column||C!==I.name)&&y.addMapping({source:I.source,original:{line:I.line,column:I.column},generated:{line:p.line,column:p.column},name:I.name}),b=I.source,E=I.line,S=I.column,C=I.name,g=!0):g&&(y.addMapping({generated:{line:p.line,column:p.column}}),b=null,g=!1);for(var O=0,L=v.length;O<L;O++)v.charCodeAt(O)===i?(p.line++,p.column=0,O+1===L?(b=null,g=!1):g&&y.addMapping({source:I.source,original:{line:I.line,column:I.column},generated:{line:p.line,column:p.column},name:I.name})):p.column++}),this.walkSourceContents(function(v,I){y.setSourceContent(v,I)}),{code:p.code,map:y}},nr.SourceNode=a,nr}var ri;function cs(){return ri||(ri=1,it.SourceMapGenerator=wi().SourceMapGenerator,it.SourceMapConsumer=us().SourceMapConsumer,it.SourceNode=ls().SourceNode),it}const hs="escodegen",fs="ECMAScript code generator",ps="http://github.com/estools/escodegen",ds="escodegen.js",ms={esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},gs=["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],ys="2.1.0",vs={node:">=6.0"},xs=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],bs={type:"git",url:"http://github.com/estools/escodegen.git"},Ss={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},_s={"source-map":"~0.6.1"},Es={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Cs="BSD-2-Clause",As={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},ws={name:hs,description:fs,homepage:ps,main:ds,bin:ms,files:gs,version:ys,engines:vs,maintainers:xs,repository:bs,dependencies:Ss,optionalDependencies:_s,devDependencies:Es,license:Cs,scripts:As};(function(e){(function(){var t,r,i,s,a,c,f,p,y,g,b,E,S,C,v,I,O,L,V,A,m,x,_,k,B,R;a=Ei,c=Gn,t=a.Syntax;function G(n){return oe.Expression.hasOwnProperty(n.type)}function q(n){return oe.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var D=1,H=2,ne=4,ue=8,ie=16,Q=32,xe=64,Te=H|ne,Je=D|H,M=D|H|ne,Ve=D,vt=ne,Fe=D|ne,ee=D,Ae=D|Q,xt=0,In=D|ie,Pn=D|ue;function Or(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` `,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function je(n,u){var o="";for(u|=0;u>0;u>>>=1,n+=n)u&1&&(o+=n);return o}function Nn(n){return/[\r\n]/g.test(n)}function he(n){var u=n.length;return u&&c.code.isLineTerminator(n.charCodeAt(u-1))}function Rr(n,u){var o;for(o in u)u.hasOwnProperty(o)&&(n[o]=u[o]);return n}function bt(n,u){var o,l;function d(w){return typeof w=="object"&&w instanceof Object&&!(w instanceof RegExp)}for(o in u)u.hasOwnProperty(o)&&(l=u[o],d(l)?d(n[o])?bt(n[o],l):n[o]=bt({},l):n[o]=l);return n}function Ln(n){var u,o,l,d,w;if(n!==n)throw new Error("Numeric literal whose value is NaN");if(n<0||n===0&&1/n<0)throw new Error("Numeric literal whose value is negative");if(n===1/0)return y?"null":g?"1e400":"1e+400";if(u=""+n,!g||u.length<3)return u;for(o=u.indexOf("."),!y&&u.charCodeAt(0)===48&&o===1&&(o=0,u=u.slice(1)),l=u,u=u.replace("e+","e"),d=0,(w=l.indexOf("e"))>0&&(d=+l.slice(w+1),l=l.slice(0,w)),o>=0&&(d-=l.length-o-1,l=+(l.slice(0,o)+l.slice(o+1))+""),w=0;l.charCodeAt(l.length+w-1)===48;)--w;return w!==0&&(d-=w,l=l.slice(0,w)),d!==0&&(l+="e"+d),(l.length<u.length||b&&n>1e12&&Math.floor(n)===n&&(l="0x"+n.toString(16)).length<u.length)&&+l===n&&(u=l),u}function Fr(n,u){return(n&-2)===8232?(u?"u":"\\u")+(n===8232?"2028":"2029"):n===10||n===13?(u?"":"\\")+(n===10?"n":"r"):String.fromCharCode(n)}function On(n){var u,o,l,d,w,T,P,F;if(o=n.toString(),n.source){if(u=o.match(/\/([^/]*)$/),!u)return o;for(l=u[1],o="",P=!1,F=!1,d=0,w=n.source.length;d<w;++d)T=n.source.charCodeAt(d),F?(o+=Fr(T,F),F=!1):(P?T===93&&(P=!1):T===47?o+="\\":T===91&&(P=!0),o+=Fr(T,F),F=T===92);return"/"+o+"/"+l}return o}function Rn(n,u){var o;return n===8?"\\b":n===12?"\\f":n===9?"\\t":(o=n.toString(16).toUpperCase(),y||n>255?"\\u"+"0000".slice(o.length)+o:n===0&&!c.code.isDecimalDigit(u)?"\\0":n===11?"\\x0B":"\\x"+"00".slice(o.length)+o)}function Fn(n){if(n===92)return"\\\\";if(n===10)return"\\n";if(n===13)return"\\r";if(n===8232)return"\\u2028";if(n===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function Mn(n){var u,o,l,d;for(d=E==="double"?'"':"'",u=0,o=n.length;u<o;++u)if(l=n.charCodeAt(u),l===39){d='"';break}else if(l===34){d="'";break}else l===92&&++u;return d+n+d}function Bn(n){var u="",o,l,d,w=0,T=0,P,F;for(o=0,l=n.length;o<l;++o){if(d=n.charCodeAt(o),d===39)++w;else if(d===34)++T;else if(d===47&&y)u+="\\";else if(c.code.isLineTerminator(d)||d===92){u+=Fn(d);continue}else if(!c.code.isIdentifierPartES5(d)&&(y&&d<32||!y&&!S&&(d<32||d>126))){u+=Rn(d,n.charCodeAt(o+1));continue}u+=String.fromCharCode(d)}if(P=!(E==="double"||E==="auto"&&T<w),F=P?"'":'"',!(P?w:T))return F+u+F;for(n=u,u=F,o=0,l=n.length;o<l;++o)d=n.charCodeAt(o),(d===39&&P||d===34&&!P)&&(u+="\\"),u+=String.fromCharCode(d);return u+F}function Mr(n){var u,o,l,d="";for(u=0,o=n.length;u<o;++u)l=n[u],d+=Array.isArray(l)?Mr(l):l;return d}function K(n,u){if(!x)return Array.isArray(n)?Mr(n):n;if(u==null){if(n instanceof s)return n;u={}}return u.loc==null?new s(null,null,x,n,u.name||null):new s(u.loc.start.line,u.loc.start.column,x===!0?u.loc.source||null:x,n,u.name||null)}function fe(){return v||" "}function U(n,u){var o,l,d,w;return o=K(n).toString(),o.length===0?[u]:(l=K(u).toString(),l.length===0?[n]:(d=o.charCodeAt(o.length-1),w=l.charCodeAt(0),(d===43||d===45)&&d===w||c.code.isIdentifierPartES5(d)&&c.code.isIdentifierPartES5(w)||d===47&&w===105?[n,fe(),u]:c.code.isWhiteSpace(d)||c.code.isLineTerminator(d)||c.code.isWhiteSpace(w)||c.code.isLineTerminator(w)?[n,u]:[n,v,u]))}function pe(n){return[f,n]}function ae(n){var u;u=f,f+=p,n(f),f=u}function Dn(n){var u;for(u=n.length-1;u>=0&&!c.code.isLineTerminator(n.charCodeAt(u));--u);return n.length-1-u}function Vn(n,u){var o,l,d,w,T,P,F,J;for(o=n.split(/\r\n|[\r\n]/),P=Number.MAX_VALUE,l=1,d=o.length;l<d;++l){for(w=o[l],T=0;T<w.length&&c.code.isWhiteSpace(w.charCodeAt(T));)++T;P>T&&(P=T)}for(typeof u<"u"?(F=f,o[1][P]==="*"&&(u+=" "),f=u):(P&1&&--P,F=f),l=1,d=o.length;l<d;++l)J=K(pe(o[l].slice(P))),o[l]=x?J.join(""):J;return f=F,o.join(` `)}function Ie(n,u){if(n.type==="Line"){if(he(n.value))return"//"+n.value;var o="//"+n.value;return k||(o+=` `),o}return A.format.indent.adjustMultilineComment&&/[\n\r]/.test(n.value)?Vn("/*"+n.value+"*/",u):"/*"+n.value+"*/"}function Br(n,u){var o,l,d,w,T,P,F,J,ce,qe,He,jr,qr,we;if(n.leadingComments&&n.leadingComments.length>0){if(w=u,k){for(d=n.leadingComments[0],u=[],J=d.extendedRange,ce=d.range,He=_.substring(J[0],ce[0]),we=(He.match(/\n/g)||[]).length,we>0?(u.push(je(` `,we)),u.push(pe(Ie(d)))):(u.push(He),u.push(Ie(d))),qe=ce,o=1,l=n.leadingComments.length;o<l;o++)d=n.leadingComments[o],ce=d.range,jr=_.substring(qe[1],ce[0]),we=(jr.match(/\n/g)||[]).length,u.push(je(` `,we)),u.push(pe(Ie(d))),qe=ce;qr=_.substring(ce[1],J[1]),we=(qr.match(/\n/g)||[]).length,u.push(je(` `,we))}else for(d=n.leadingComments[0],u=[],L&&n.type===t.Program&&n.body.length===0&&u.push(` `),u.push(Ie(d)),he(K(u).toString())||u.push(` `),o=1,l=n.leadingComments.length;o<l;++o)d=n.leadingComments[o],F=[Ie(d)],he(K(F).toString())||F.push(` `),u.push(pe(F));u.push(pe(w))}if(n.trailingComments)if(k)d=n.trailingComments[0],J=d.extendedRange,ce=d.range,He=_.substring(J[0],ce[0]),we=(He.match(/\n/g)||[]).length,we>0?(u.push(je(` `,we)),u.push(pe(Ie(d)))):(u.push(He),u.push(Ie(d)));else for(T=!he(K(u).toString()),P=je(" ",Dn(K([f,u,p]).toString())),o=0,l=n.trailingComments.length;o<l;++o)d=n.trailingComments[o],T?(o===0?u=[u,p]:u=[u,P],u.push(Ie(d,P))):u=[u,pe(Ie(d))],o!==l-1&&!he(K(u).toString())&&(u=[u,` `]);return u}function Xe(n,u,o){var l,d=0;for(l=n;l<u;l++)_[l]===` `&&d++;for(l=1;l<d;l++)o.push(C)}function le(n,u,o){return u<o?["(",n,")"]:n}function Dr(n){var u,o,l;for(l=n.split(/\r\n|\n/),u=1,o=l.length;u<o;u++)l[u]=C+f+l[u];return l}function jn(n,u){var o,l,d;return o=n[A.verbatim],typeof o=="string"?l=le(Dr(o),r.Sequence,u):(l=Dr(o.content),d=o.precedence!=null?o.precedence:r.Sequence,l=le(l,d,u)),K(l,n)}function oe(){}oe.prototype.maybeBlock=function(n,u){var o,l,d=this;return l=!A.comment||!n.leadingComments,n.type===t.BlockStatement&&l?[v,this.generateStatement(n,u)]:n.type===t.EmptyStatement&&l?";":(ae(function(){o=[C,pe(d.generateStatement(n,u))]}),o)},oe.prototype.maybeBlockSuffix=function(n,u){var o=he(K(u).toString());return n.type===t.BlockStatement&&(!A.comment||!n.leadingComments)&&!o?[u,v]:o?[u,f]:[u,C,f]};function ge(n){return K(n.name,n)}function rt(n,u){return n.async?"async"+(u?fe():v):""}function St(n){var u=n.generator&&!A.moz.starlessGenerator;return u?"*"+v:""}function Vr(n){var u=n.value,o="";return u.async&&(o+=rt(u,!n.computed)),u.generator&&(o+=St(u)?"*":""),o}oe.prototype.generatePattern=function(n,u,o){return n.type===t.Identifier?ge(n):this.generateExpression(n,u,o)},oe.prototype.generateFunctionParams=function(n){var u,o,l,d;if(d=!1,n.type===t.ArrowFunctionExpression&&!n.rest&&(!n.defaults||n.defaults.length===0)&&n.params.length===1&&n.params[0].type===t.Identifier)l=[rt(n,!0),ge(n.params[0])];else{for(l=n.type===t.ArrowFunctionExpression?[rt(n,!1)]:[],l.push("("),n.defaults&&(d=!0),u=0,o=n.params.length;u<o;++u)d&&n.defaults[u]?l.push(this.generateAssignment(n.params[u],n.defaults[u],"=",r.Assignment,M)):l.push(this.generatePattern(n.params[u],r.Assignment,M)),u+1<o&&l.push(","+v);n.rest&&(n.params.length&&l.push(","+v),l.push("..."),l.push(ge(n.rest))),l.push(")")}return l},oe.prototype.generateFunctionBody=function(n){var u,o;return u=this.generateFunctionParams(n),n.type===t.ArrowFunctionExpression&&(u.push(v),u.push("=>")),n.expression?(u.push(v),o=this.generateExpression(n.body,r.Assignment,M),o.toString().charAt(0)==="{"&&(o=["(",o,")"]),u.push(o)):u.push(this.maybeBlock(n.body,Pn)),u},oe.prototype.generateIterationForStatement=function(n,u,o){var l=["for"+(u.await?fe()+"await":"")+v+"("],d=this;return ae(function(){u.left.type===t.VariableDeclaration?ae(fu