328 lines
1.8 MiB
JavaScript
328 lines
1.8 MiB
JavaScript
|
|
var SK=Object.create,m0=Object.defineProperty,wK=Object.getPrototypeOf,_K=Object.prototype.hasOwnProperty,BK=Object.getOwnPropertyNames,TK=Object.getOwnPropertyDescriptor;var at=e=>m0(e,"__esModule",{value:!0});var T=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports),ot=(e,t)=>{for(var r in t)m0(e,r,{get:t[r],enumerable:!0})},IK=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of BK(t))!_K.call(e,n)&&n!=="default"&&m0(e,n,{get:()=>t[n],enumerable:!(r=TK(t,n))||r.enumerable});return e},Mt=e=>IK(at(m0(e!=null?SK(wK(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Yy=T((CDe,qS)=>{var al=1e3,ol=al*60,ul=ol*60,So=ul*24,UK=So*7,VK=So*365.25;qS.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return HK(e);if(r==="number"&&isFinite(e))return t.long?GK(e):zK(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function HK(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*VK;case"weeks":case"week":case"w":return r*UK;case"days":case"day":case"d":return r*So;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ul;case"minutes":case"minute":case"mins":case"min":case"m":return r*ol;case"seconds":case"second":case"secs":case"sec":case"s":return r*al;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function zK(e){var t=Math.abs(e);return t>=So?Math.round(e/So)+"d":t>=ul?Math.round(e/ul)+"h":t>=ol?Math.round(e/ol)+"m":t>=al?Math.round(e/al)+"s":e+"ms"}function GK(e){var t=Math.abs(e);return t>=So?g0(e,t,So,"day"):t>=ul?g0(e,t,ul,"hour"):t>=ol?g0(e,t,ol,"minute"):t>=al?g0(e,t,al,"second"):e+" ms"}function g0(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var US=T((FDe,jS)=>{function WK(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=a,r.humanize=Yy(),r.destroy=h,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let g=0;for(let m=0;m<c.length;m++)g=(g<<5)-g+c.charCodeAt(m),g|=0;return r.colors[Math.abs(g)%r.colors.length]}r.selectColor=t;function r(c){let g,m=null,p,d;function y(...E){if(!y.enabled)return;let D=y,b=Number(new Date),A=b-(g||b);D.diff=A,D.prev=g,D.curr=b,g=b,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let F=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(_,H)=>{if(_==="%%")return"%";F++;let B=r.formatters[H];if(typeof B=="function"){let G=E[F];_=B.call(D,G),E.splice(F,1),F--}return _}),r.formatArgs.call(D,E),(D.log||r.log).apply(D,E)}return y.namespace=c,y.useColors=r.useColors(),y.color=r.selectColor(c),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(p!==r.namespaces&&(p=r.namespaces,d=r.enabled(c)),d),set:E=>{m=E}}),typeof r.init=="function"&&r.init(y),y}function n(c,g){let m=r(this.namespace+(typeof g=="undefined"?":":g)+c);return m.log=this.log,m}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let g,m=(typeof c=="string"?c:"").split(/[\s,]+/),p=m.length;for(g=0;g<p;g++)!m[g]||(c=m[g].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(o),...r.skips.map(o).map(g=>"-"+g)].join(",");return r.enable(""),c}function a(c){if(c[c.length-1]==="*")return!0;let g,m;for(g=0,m=r.skips.length;g<m;g++)if(r.skips[g].test(c))return!1;for(g=0,m=r.names.length;g<m;g++)if(r.names[g].test(c))return!0;return!1}function o(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}r
|
|||
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Zy)});var ws=T((zS,Ma)=>{(function(){var e,t,r,n,i,s,a,o=[].slice,l={}.hasOwnProperty;e=function(){var h,c,g,m,p,d;if(d=arguments[0],p=2<=arguments.length?o.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(h=0,g=p.length;h<g;h++)if(m=p[h],m!=null)for(c in m)!l.call(m,c)||(d[c]=m[c]);return d},i=function(h){return!!h&&Object.prototype.toString.call(h)==="[object Function]"},s=function(h){var c;return!!h&&((c=typeof h)==="function"||c==="object")},r=function(h){return i(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},n=function(h){var c;if(r(h))return!h.length;for(c in h)if(!!l.call(h,c))return!1;return!0},a=function(h){var c,g;return s(h)&&(g=Object.getPrototypeOf(h))&&(c=g.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},t=function(h){return i(h.valueOf)?h.valueOf():h},Ma.exports.assign=e,Ma.exports.isFunction=i,Ma.exports.isObject=s,Ma.exports.isArray=r,Ma.exports.isEmpty=n,Ma.exports.isPlainObject=a,Ma.exports.getValue=t}).call(zS)});var Qy=T((GS,WS)=>{(function(){var e;WS.exports=e=function(){function t(){}return t.prototype.hasFeature=function(r,n){return!0},t.prototype.createDocumentType=function(r,n,i){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(r,n,i){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(r){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(r,n){throw new Error("This DOM method is not implemented.")},t}()}).call(GS)});var KS=T((XS,$S)=>{(function(){var e;$S.exports=e=function(){function t(){}return t.prototype.handleError=function(r){throw new Error(r)},t}()}).call(XS)});var ZS=T((JS,YS)=>{(function(){var e;YS.exports=e=function(){function t(r){this.arr=r||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(r){return this.arr[r]||null},t.prototype.contains=function(r){return this.arr.indexOf(r)!==-1},t}()}).call(JS)});var tw=T((QS,ew)=>{(function(){var e,t,r;t=KS(),r=ZS(),ew.exports=e=function(){function n(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=Object.create(this.defaultParams)}return Object.defineProperty(n.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),n.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},n.prototype.canSetParameter=function(i,s){return!0},n.prototype.setParameter=function(i,s){return s!=null?this.params[i]=s:delete this.params[i]},n}()}).call(QS)});var Mr=T((rw,nw)=>{(function(){nw.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(rw)});var ev=T((iw,sw)=>{(function(){var e,t,r;e=Mr(),r=Ei(),sw.exports=t=function(){function n(i,s,a){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),s==null)throw new Error("Missing attribute name. "+this.debugInfo(s));this.name=this.stringify.name(s),this.value=this.stringify.attValue(a),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(n.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(n.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.d
|
|||
|
|
`,F.offset=(H=A.offset)!=null?H:0,F.dontPrettyTextNodes=(B=(G=A.dontPrettyTextNodes)!=null?G:A.dontprettytextnodes)!=null?B:0,F.spaceBeforeSlash=(N=(z=A.spaceBeforeSlash)!=null?z:A.spacebeforeslash)!=null?N:"",F.spaceBeforeSlash===!0&&(F.spaceBeforeSlash=" "),F.suppressPrettyCount=0,F.user={},F.state=t.None,F},b.prototype.indent=function(A,F,C){var _;return!F.pretty||F.suppressPrettyCount?"":F.pretty&&(_=(C||0)+F.offset+1,_>0)?new Array(_).join(F.indent):""},b.prototype.endline=function(A,F,C){return!F.pretty||F.suppressPrettyCount?"":F.newline},b.prototype.attribute=function(A,F,C){var _;return this.openAttribute(A,F,C),_=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,F,C),_},b.prototype.cdata=function(A,F,C){var _;return this.openNode(A,F,C),F.state=t.OpenTag,_=this.indent(A,F,C)+"<![CDATA[",F.state=t.InsideTag,_+=A.value,F.state=t.CloseTag,_+="]]>"+this.endline(A,F,C),F.state=t.None,this.closeNode(A,F,C),_},b.prototype.comment=function(A,F,C){var _;return this.openNode(A,F,C),F.state=t.OpenTag,_=this.indent(A,F,C)+"<!-- ",F.state=t.InsideTag,_+=A.value,F.state=t.CloseTag,_+=" -->"+this.endline(A,F,C),F.state=t.None,this.closeNode(A,F,C),_},b.prototype.declaration=function(A,F,C){var _;return this.openNode(A,F,C),F.state=t.OpenTag,_=this.indent(A,F,C)+"<?xml",F.state=t.InsideTag,_+=' version="'+A.version+'"',A.encoding!=null&&(_+=' encoding="'+A.encoding+'"'),A.standalone!=null&&(_+=' standalone="'+A.standalone+'"'),F.state=t.CloseTag,_+=F.spaceBeforeSlash+"?>",_+=this.endline(A,F,C),F.state=t.None,this.closeNode(A,F,C),_},b.prototype.docType=function(A,F,C){var _,H,B,G,N;if(C||(C=0),this.openNode(A,F,C),F.state=t.OpenTag,G=this.indent(A,F,C),G+="<!DOCTYPE "+A.root().name,A.pubID&&A.sysID?G+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(G+=' SYSTEM "'+A.sysID+'"'),A.children.length>0){for(G+=" [",G+=this.endline(A,F,C),F.state=t.InsideTag,N=A.children,H=0,B=N.length;H<B;H++)_=N[H],G+=this.writeChildNode(_,F,C+1);F.state=t.CloseTag,G+="]"}return F.state=t.CloseTag,G+=F.spaceBeforeSlash+">",G+=this.endline(A,F,C),F.state=t.None,this.closeNode(A,F,C),G},b.prototype.element=function(A,F,C){var _,H,B,G,N,z,I,J,ne,U,se,te,he,Q;C||(C=0),U=!1,se="",this.openNode(A,F,C),F.state=t.OpenTag,se+=this.indent(A,F,C)+"<"+A.name,te=A.attribs;for(ne in te)!D.call(te,ne)||(_=te[ne],se+=this.attribute(_,F,C));if(B=A.children.length,G=B===0?null:A.children[0],B===0||A.children.every(function(ee){return(ee.type===e.Text||ee.type===e.Raw)&&ee.value===""}))F.allowEmpty?(se+=">",F.state=t.CloseTag,se+="</"+A.name+">"+this.endline(A,F,C)):(F.state=t.CloseTag,se+=F.spaceBeforeSlash+"/>"+this.endline(A,F,C));else if(F.pretty&&B===1&&(G.type===e.Text||G.type===e.Raw)&&G.value!=null)se+=">",F.state=t.InsideTag,F.suppressPrettyCount++,U=!0,se+=this.writeChildNode(G,F,C+1),F.suppressPrettyCount--,U=!1,F.state=t.CloseTag,se+="</"+A.name+">"+this.endline(A,F,C);else{if(F.dontPrettyTextNodes){for(he=A.children,N=0,I=he.length;N<I;N++)if(H=he[N],(H.type===e.Text||H.type===e.Raw)&&H.value!=null){F.suppressPrettyCount++,U=!0;break}}for(se+=">"+this.endline(A,F,C),F.state=t.InsideTag,Q=A.children,z=0,J=Q.length;z<J;z++)H=Q[z],se+=this.writeChildNode(H,F,C+1);F.state=t.CloseTag,se+=this.indent(A,F,C)+"</"+A.name+">",U&&F.suppressPrettyCount--,se+=this.endline(A,F,C),F.state=t.None}return this.closeNode(A,F,C),se},b.prototype.writeChildNode=function(A,F,C){switch(A.type){case e.CData:return this.cdata(A,F,C);case e.Comment:return this.comment(A,F,C);case e.Element:return this.element(A,F,C);case e.Raw:return this.raw(A,F,C);case e.Text:return this.text(A,F,C);case e.ProcessingInstruction:return this.processingInstruction(A,F,C);case e.Dummy:return"";case e.Declaration:return this.declaration(A,F,C);case e.DocType:return this.docType(A,F,C);case e.AttributeDeclaration:return this.dtdAttList(A,F,C);case e.ElementDeclaration:return this.dtdElement(A,F,C);case e.EntityDeclaration:return this.dtdEntity(A,F,C);case e.NotationDeclaration:return this.dtdNotation(A,F,C);default:throw new Error("Unknown XML node type: "+A.constructor.name)}},b.prototype.processin
|
|||
|
|
`||q==="\r"||q===" "}function F(q){return q==='"'||q==="'"}function C(q){return q===">"||A(q)}function _(q,w){return q.test(w)}function H(q,w){return!_(q,w)}var B=0;e.STATE={BEGIN:B++,BEGIN_WHITESPACE:B++,TEXT:B++,TEXT_ENTITY:B++,OPEN_WAKA:B++,SGML_DECL:B++,SGML_DECL_QUOTED:B++,DOCTYPE:B++,DOCTYPE_QUOTED:B++,DOCTYPE_DTD:B++,DOCTYPE_DTD_QUOTED:B++,COMMENT_STARTING:B++,COMMENT:B++,COMMENT_ENDING:B++,COMMENT_ENDED:B++,CDATA:B++,CDATA_ENDING:B++,CDATA_ENDING_2:B++,PROC_INST:B++,PROC_INST_BODY:B++,PROC_INST_ENDING:B++,OPEN_TAG:B++,OPEN_TAG_SLASH:B++,ATTRIB:B++,ATTRIB_NAME:B++,ATTRIB_NAME_SAW_WHITE:B++,ATTRIB_VALUE:B++,ATTRIB_VALUE_QUOTED:B++,ATTRIB_VALUE_CLOSED:B++,ATTRIB_VALUE_UNQUOTED:B++,ATTRIB_VALUE_ENTITY_Q:B++,ATTRIB_VALUE_ENTITY_U:B++,CLOSE_TAG:B++,CLOSE_TAG_SAW_WHITE:B++,SCRIPT:B++,SCRIPT_ENDING:B++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(q){var w=e.ENTITIES[q],ge=typeof w=="number"?String.fromCharCode(w):w;e.ENTITIES[q]=ge});for(var G in e.STATE)e.STATE[e.STATE[G]]=G;B=e.STATE;function N(q,w,ge){q[w]&&q[w](ge)}function z(q,w,ge){q.textNode&&I(q),N(q,w,ge)}function I(q){q.textNode=J(q.opt,q.textNode),q.textNode&&N(q,"ontext",q.textNode),q.textNode=""}function J(q,w){return q.trim&&(w=w.trim()),q.normalize&&(w=w.replace(/\s+/g," ")),w}function ne(q,w){return I(q),q.trackPosition&&(w+=`
|
|||
|
|
Line: `+q.line+`
|
|||
|
|
Column: `+q.column+`
|
|||
|
|
Char: `+q.c),w=new Error(w),q.error=w,N(q,"onerror",w),q}function U(q){return q.sawRoot&&!q.closedRoot&&se(q,"Unclosed root tag"),q.state!==B.BEGIN&&q.state!==B.BEGIN_WHITESPACE&&q.state!==B.TEXT&&ne(q,"Unexpected end"),I(q),q.c="",q.closed=!0,N(q,"onend"),r.call(q,q.strict,q.opt),q}function se(q,w){if(typeof q!="object"||!(q instanceof r))throw new Error("bad call to strictFail");q.strict&&ne(q,w)}function te(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var w=q.tags[q.tags.length-1]||q,ge=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&(ge.ns=w.ns),q.attribList.length=0,z(q,"onopentagstart",ge)}function he(q,w){var ge=q.indexOf(":"),$=ge<0?["",q]:q.split(":"),me=$[0],pe=$[1];return w&&q==="xmlns"&&(me="xmlns",pe=""),{prefix:me,local:pe}}function Q(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),q.attribList.indexOf(q.attribName)!==-1||q.tag.attributes.hasOwnProperty(q.attribName)){q.attribName=q.attribValue="";return}if(q.opt.xmlns){var w=he(q.attribName,!0),ge=w.prefix,$=w.local;if(ge==="xmlns")if($==="xml"&&q.attribValue!==m)se(q,"xml: prefix must be bound to "+m+`
|
|||
|
|
Actual: `+q.attribValue);else if($==="xmlns"&&q.attribValue!==p)se(q,"xmlns: prefix must be bound to "+p+`
|
|||
|
|
Actual: `+q.attribValue);else{var me=q.tag,pe=q.tags[q.tags.length-1]||q;me.ns===pe.ns&&(me.ns=Object.create(pe.ns)),me.ns[$]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,z(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}function ee(q,w){if(q.opt.xmlns){var ge=q.tag,$=he(q.tagName);ge.prefix=$.prefix,ge.local=$.local,ge.uri=ge.ns[$.prefix]||"",ge.prefix&&!ge.uri&&(se(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),ge.uri=$.prefix);var me=q.tags[q.tags.length-1]||q;ge.ns&&me.ns!==ge.ns&&Object.keys(ge.ns).forEach(function(kr){z(q,"onopennamespace",{prefix:kr,uri:ge.ns[kr]})});for(var pe=0,re=q.attribList.length;pe<re;pe++){var Se=q.attribList[pe],De=Se[0],ve=Se[1],_e=he(De,!0),et=_e.prefix,Ne=_e.local,pt=et===""?"":ge.ns[et]||"",dr={name:De,value:ve,prefix:et,local:Ne,uri:pt};et&&et!=="xmlns"&&!pt&&(se(q,"Unbound namespace prefix: "+JSON.stringify(et)),dr.uri=et),q.tag.attributes[De]=dr,z(q,"onattribute",dr)}q.attribList.length=0}q.tag.isSelfClosing=!!w,q.sawRoot=!0,q.tags.push(q.tag),z(q,"onopentag",q.tag),w||(!q.noscript&&q.tagName.toLowerCase()==="script"?q.state=B.SCRIPT:q.state=B.TEXT,q.tag=null,q.tagName=""),q.attribName=q.attribValue="",q.attribList.length=0}function ue(q){if(!q.tagName){se(q,"Weird empty close tag."),q.textNode+="</>",q.state=B.TEXT;return}if(q.script){if(q.tagName!=="script"){q.script+="</"+q.tagName+">",q.tagName="",q.state=B.SCRIPT;return}z(q,"onscript",q.script),q.script=""}var w=q.tags.length,ge=q.tagName;q.strict||(ge=ge[q.looseCase]());for(var $=ge;w--;){var me=q.tags[w];if(me.name!==$)se(q,"Unexpected close tag");else break}if(w<0){se(q,"Unmatched closing tag: "+q.tagName),q.textNode+="</"+q.tagName+">",q.state=B.TEXT;return}q.tagName=ge;for(var pe=q.tags.length;pe-- >w;){var re=q.tag=q.tags.pop();q.tagName=q.tag.name,z(q,"onclosetag",q.tagName);var Se={};for(var De in re.ns)Se[De]=re.ns[De];var ve=q.tags[q.tags.length-1]||q;q.opt.xmlns&&re.ns!==ve.ns&&Object.keys(re.ns).forEach(function(_e){var et=re.ns[_e];z(q,"onclosenamespace",{prefix:_e,uri:et})})}w===0&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=B.TEXT}function ce(q){var w=q.entity,ge=w.toLowerCase(),$,me="";return q.ENTITIES[w]?q.ENTITIES[w]:q.ENTITIES[ge]?q.ENTITIES[ge]:(w=ge,w.charAt(0)==="#"&&(w.charAt(1)==="x"?(w=w.slice(2),$=parseInt(w,16),me=$.toString(16)):(w=w.slice(1),$=parseInt(w,10),me=$.toString(10))),w=w.replace(/^0+/,""),isNaN($)||me.toLowerCase()!==w?(se(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint($))}function Ae(q,w){w==="<"?(q.state=B.OPEN_WAKA,q.startTagPosition=q.position):A(w)||(se(q,"Non-whitespace before first tag."),q.textNode=w,q.state=B.TEXT)}function xe(q,w){var ge="";return w<q.length&&(ge=q.charAt(w)),ge}function Ie(q){var w=this;if(this.error)throw this.error;if(w.closed)return ne(w,"Cannot write after close. Assign an onready handler.");if(q===null)return U(w);typeof q=="object"&&(q=q.toString());for(var ge=0,$="";$=xe(q,ge++),w.c=$,!!$;)switch(w.trackPosition&&(w.position++,$===`
|
|||
|
|
`?(w.line++,w.column=0):w.column++),w.state){case B.BEGIN:if(w.state=B.BEGIN_WHITESPACE,$==="\uFEFF")continue;Ae(w,$);continue;case B.BEGIN_WHITESPACE:Ae(w,$);continue;case B.TEXT:if(w.sawRoot&&!w.closedRoot){for(var me=ge-1;$&&$!=="<"&&$!=="&";)$=xe(q,ge++),$&&w.trackPosition&&(w.position++,$===`
|
|||
|
|
`?(w.line++,w.column=0):w.column++);w.textNode+=q.substring(me,ge-1)}$==="<"&&!(w.sawRoot&&w.closedRoot&&!w.strict)?(w.state=B.OPEN_WAKA,w.startTagPosition=w.position):(!A($)&&(!w.sawRoot||w.closedRoot)&&se(w,"Text data outside of root node."),$==="&"?w.state=B.TEXT_ENTITY:w.textNode+=$);continue;case B.SCRIPT:$==="<"?w.state=B.SCRIPT_ENDING:w.script+=$;continue;case B.SCRIPT_ENDING:$==="/"?w.state=B.CLOSE_TAG:(w.script+="<"+$,w.state=B.SCRIPT);continue;case B.OPEN_WAKA:if($==="!")w.state=B.SGML_DECL,w.sgmlDecl="";else if(!A($))if(_(y,$))w.state=B.OPEN_TAG,w.tagName=$;else if($==="/")w.state=B.CLOSE_TAG,w.tagName="";else if($==="?")w.state=B.PROC_INST,w.procInstName=w.procInstBody="";else{if(se(w,"Unencoded <"),w.startTagPosition+1<w.position){var pe=w.position-w.startTagPosition;$=new Array(pe).join(" ")+$}w.textNode+="<"+$,w.state=B.TEXT}continue;case B.SGML_DECL:if(w.sgmlDecl+$==="--"){w.state=B.COMMENT,w.comment="",w.sgmlDecl="";continue}w.doctype&&w.doctype!==!0&&w.sgmlDecl?(w.state=B.DOCTYPE_DTD,w.doctype+="<!"+w.sgmlDecl+$,w.sgmlDecl=""):(w.sgmlDecl+$).toUpperCase()===c?(z(w,"onopencdata"),w.state=B.CDATA,w.sgmlDecl="",w.cdata=""):(w.sgmlDecl+$).toUpperCase()===g?(w.state=B.DOCTYPE,(w.doctype||w.sawRoot)&&se(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):$===">"?(z(w,"onsgmldeclaration",w.sgmlDecl),w.sgmlDecl="",w.state=B.TEXT):(F($)&&(w.state=B.SGML_DECL_QUOTED),w.sgmlDecl+=$);continue;case B.SGML_DECL_QUOTED:$===w.q&&(w.state=B.SGML_DECL,w.q=""),w.sgmlDecl+=$;continue;case B.DOCTYPE:$===">"?(w.state=B.TEXT,z(w,"ondoctype",w.doctype),w.doctype=!0):(w.doctype+=$,$==="["?w.state=B.DOCTYPE_DTD:F($)&&(w.state=B.DOCTYPE_QUOTED,w.q=$));continue;case B.DOCTYPE_QUOTED:w.doctype+=$,$===w.q&&(w.q="",w.state=B.DOCTYPE);continue;case B.DOCTYPE_DTD:$==="]"?(w.doctype+=$,w.state=B.DOCTYPE):$==="<"?(w.state=B.OPEN_WAKA,w.startTagPosition=w.position):F($)?(w.doctype+=$,w.state=B.DOCTYPE_DTD_QUOTED,w.q=$):w.doctype+=$;continue;case B.DOCTYPE_DTD_QUOTED:w.doctype+=$,$===w.q&&(w.state=B.DOCTYPE_DTD,w.q="");continue;case B.COMMENT:$==="-"?w.state=B.COMMENT_ENDING:w.comment+=$;continue;case B.COMMENT_ENDING:$==="-"?(w.state=B.COMMENT_ENDED,w.comment=J(w.opt,w.comment),w.comment&&z(w,"oncomment",w.comment),w.comment=""):(w.comment+="-"+$,w.state=B.COMMENT);continue;case B.COMMENT_ENDED:$!==">"?(se(w,"Malformed comment"),w.comment+="--"+$,w.state=B.COMMENT):w.doctype&&w.doctype!==!0?w.state=B.DOCTYPE_DTD:w.state=B.TEXT;continue;case B.CDATA:$==="]"?w.state=B.CDATA_ENDING:w.cdata+=$;continue;case B.CDATA_ENDING:$==="]"?w.state=B.CDATA_ENDING_2:(w.cdata+="]"+$,w.state=B.CDATA);continue;case B.CDATA_ENDING_2:$===">"?(w.cdata&&z(w,"oncdata",w.cdata),z(w,"onclosecdata"),w.cdata="",w.state=B.TEXT):$==="]"?w.cdata+="]":(w.cdata+="]]"+$,w.state=B.CDATA);continue;case B.PROC_INST:$==="?"?w.state=B.PROC_INST_ENDING:A($)?w.state=B.PROC_INST_BODY:w.procInstName+=$;continue;case B.PROC_INST_BODY:if(!w.procInstBody&&A($))continue;$==="?"?w.state=B.PROC_INST_ENDING:w.procInstBody+=$;continue;case B.PROC_INST_ENDING:$===">"?(z(w,"onprocessinginstruction",{name:w.procInstName,body:w.procInstBody}),w.procInstName=w.procInstBody="",w.state=B.TEXT):(w.procInstBody+="?"+$,w.state=B.PROC_INST_BODY);continue;case B.OPEN_TAG:_(E,$)?w.tagName+=$:(te(w),$===">"?ee(w):$==="/"?w.state=B.OPEN_TAG_SLASH:(A($)||se(w,"Invalid character in tag name"),w.state=B.ATTRIB));continue;case B.OPEN_TAG_SLASH:$===">"?(ee(w,!0),ue(w)):(se(w,"Forward-slash in opening tag not followed by >"),w.state=B.ATTRIB);continue;case B.ATTRIB:if(A($))continue;$===">"?ee(w):$==="/"?w.state=B.OPEN_TAG_SLASH:_(y,$)?(w.attribName=$,w.attribValue="",w.state=B.ATTRIB_NAME):se(w,"Invalid attribute name");continue;case B.ATTRIB_NAME:$==="="?w.state=B.ATTRIB_VALUE:$===">"?(se(w,"Attribute without value"),w.attribValue=w.attribName,Q(w),ee(w)):A($)?w.state=B.ATTRIB_NAME_SAW_WHITE:_(E,$)?w.attribName+=$:se(w,"Invalid attribute name");continue;case B.ATTRIB_NAME_SAW_WHITE:if($==="=")w.state=B.ATTRIB_VALUE;else{if(A($))continue;se(w,"Attribute without value"),w.tag.attribut
|
|||
|
|
GFS4: `),console.error(e)});gr[yn]||(K_=global[yn]||[],$_(gr,K_),gr.close=function(e){function t(r,n){return e.call(gr,r,function(i){i||J_(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,L0,{value:e}),t}(gr.close),gr.closeSync=function(e){function t(r){e.apply(gr,arguments),J_()}return Object.defineProperty(t,L0,{value:e}),t}(gr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Bo(gr[yn]),require("assert").equal(gr[yn].length,0)}));var K_;global[yn]||$_(global,gr[yn]);hv.exports=pv(dJ(gr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!gr.__patched&&(hv.exports=pv(gr),gr.__patched=!0);function pv(e){hJ(e),e.gracefulify=pv,e.createReadStream=C,e.createWriteStream=_;var t=e.readFile;e.readFile=r;function r(G,N,z){return typeof N=="function"&&(z=N,N=null),I(G,N,z);function I(J,ne,U,se){return t(J,ne,function(te){te&&(te.code==="EMFILE"||te.code==="ENFILE")?hl([I,[J,ne,U],te,se||Date.now(),Date.now()]):typeof U=="function"&&U.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(G,N,z,I){return typeof z=="function"&&(I=z,z=null),J(G,N,z,I);function J(ne,U,se,te,he){return n(ne,U,se,function(Q){Q&&(Q.code==="EMFILE"||Q.code==="ENFILE")?hl([J,[ne,U,se,te],Q,he||Date.now(),Date.now()]):typeof te=="function"&&te.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(G,N,z,I){return typeof z=="function"&&(I=z,z=null),J(G,N,z,I);function J(ne,U,se,te,he){return s(ne,U,se,function(Q){Q&&(Q.code==="EMFILE"||Q.code==="ENFILE")?hl([J,[ne,U,se,te],Q,he||Date.now(),Date.now()]):typeof te=="function"&&te.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=l);function l(G,N,z,I){return typeof z=="function"&&(I=z,z=0),J(G,N,z,I);function J(ne,U,se,te,he){return o(ne,U,se,function(Q){Q&&(Q.code==="EMFILE"||Q.code==="ENFILE")?hl([J,[ne,U,se,te],Q,he||Date.now(),Date.now()]):typeof te=="function"&&te.apply(this,arguments)})}}var h=e.readdir;e.readdir=g;var c=/^v[0-5]\./;function g(G,N,z){typeof N=="function"&&(z=N,N=null);var I=c.test(process.version)?function(U,se,te,he){return h(U,J(U,se,te,he))}:function(U,se,te,he){return h(U,se,J(U,se,te,he))};return I(G,N,z);function J(ne,U,se,te){return function(he,Q){he&&(he.code==="EMFILE"||he.code==="ENFILE")?hl([I,[ne,U,se],he,te||Date.now(),Date.now()]):(Q&&Q.sort&&Q.sort(),typeof se=="function"&&se.call(this,he,Q))}}}if(process.version.substr(0,4)==="v0.8"){var m=pJ(e);D=m.ReadStream,A=m.WriteStream}var p=e.ReadStream;p&&(D.prototype=Object.create(p.prototype),D.prototype.open=b);var d=e.WriteStream;d&&(A.prototype=Object.create(d.prototype),A.prototype.open=F),Object.defineProperty(e,"ReadStream",{get:function(){return D},set:function(G){D=G},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return A},set:function(G){A=G},enumerable:!0,configurable:!0});var y=D;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(G){y=G},enumerable:!0,configurable:!0});var E=A;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(G){E=G},enumerable:!0,configurable:!0});function D(G,N){return this instanceof D?(p.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function b(){var G=this;B(G.path,G.flags,G.mode,function(N,z){N?(G.autoClose&&G.destroy(),G.emit("error",N)):(G.fd=z,G.emit("open",z),G.read())})}function A(G,N){return this instanceof A?(d.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function F(){var G=this;B(G.path,G.flags,G.mode,function(N,z){N?(G.destroy(),G.emit("error",N)):(G.fd=z,G.emit("open",z))})}function C(G,N){return new e.ReadStream(G,N)}function _(G,N){return new e.WriteStream(G,N)}var H=e.open;e.open=B;function B(G,N,z,I){return typeof z=="function"&&(I=z,z=null),J(G,N,z,I);function J(ne,U,se,te,he){return H(ne,U,se,function(Q,ee){Q&&(Q.code==="EMFILE"||Q.code==="ENFILE")?hl([J,[ne,U,se,te],Q,he||Date.now(),Date.now()]):typeof te=="function"&&te.apply(this,arguments)})}}return e}function hl(e){Bo("ENQUEUE",e[0].name,e[1]),gr[yn].push(e),dv()}var
|
|||
|
|
`),dl().writeFileSync(e,t)};pl.readJSON=function(e){return dl().exists(e).then(function(t){if(!t)throw new Error(e+" is not found");return dl().readFile(e)}).then(function(t){return JSON.parse(t)})};pl.writeJSON=function(e,t,r){return r=r||{},"space"in r||(r.space=2),typeof t=="object"&&(t=JSON.stringify(t,r.replacer,r.space)+`
|
|||
|
|
`),bJ(aB.dirname(e)).then(function(){return dl().writeFile(e,t)})};function bJ(e){return new Promise(function(t,r){oB()(e,function(n){if(n)return r(n);t()})})}});var lB=T(Ua=>{"use strict";var DJ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],U0=" ",To=parseInt(-new Date().getTimezoneOffset()/60,10);To>=0?U0+="+":U0+="-";To=Math.abs(To);To<10&&(To="0"+To);U0+=To+"00";Ua.accessLogDate=function(e){e=e||new Date;var t=e.getDate();t<10&&(t="0"+t);var r=e.getHours();r<10&&(r="0"+r);var n=e.getMinutes();n<10&&(n="0"+n);var i=e.getSeconds();return i<10&&(i="0"+i),t+"/"+DJ[e.getMonth()]+"/"+e.getFullYear()+":"+r+":"+n+":"+i+U0};Ua.logDate=Ua.YYYYMMDDHHmmssSSS=function(e,t){typeof e=="string"?(t=e,e=new Date):e=e||new Date;var r=e.getDate();r<10&&(r="0"+r);var n=e.getMonth()+1;n<10&&(n="0"+n);var i=e.getHours();i<10&&(i="0"+i);var s=e.getMinutes();s<10&&(s="0"+s);var a=e.getSeconds();a<10&&(a="0"+a);var o=e.getMilliseconds();return o<10?o="00"+o:o<100&&(o="0"+o),e.getFullYear()+"-"+n+"-"+r+" "+i+":"+s+":"+a+(t||".")+o};Ua.YYYYMMDDHHmmss=function(e,t){e=e||new Date,e instanceof Date||(e=new Date(e));var r="-",n=":";t&&(t.dateSep&&(r=t.dateSep),t.timeSep&&(n=t.timeSep));var i=e.getDate();i<10&&(i="0"+i);var s=e.getMonth()+1;s<10&&(s="0"+s);var a=e.getHours();a<10&&(a="0"+a);var o=e.getMinutes();o<10&&(o="0"+o);var l=e.getSeconds();return l<10&&(l="0"+l),e.getFullYear()+r+s+r+i+" "+a+n+o+n+l};Ua.YYYYMMDD=function(t,r){typeof t=="string"?(r=t,t=new Date):(t=t||new Date,typeof r!="string"&&(r="-"));var n=t.getDate();n<10&&(n="0"+n);var i=t.getMonth()+1;return i<10&&(i="0"+i),t.getFullYear()+r+i+r+n};Ua.datestruct=function(e){return e=e||new Date,{YYYYMMDD:e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate(),H:e.getHours()}};Ua.timestamp=function(t){if(t){var r=t;return typeof r=="string"&&(r=Number(r)),String(t).length===10&&(r*=1e3),new Date(r)}return Math.round(Date.now()/1e3)}});var fB=T(ml=>{"use strict";ml.assign=function(e,t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n)for(var i=Object.keys(n),s=0;s<i.length;s++){var a=i[s];e[a]=n[a]}}return e};ml.has=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};ml.getOwnEnumerables=function(t,r){return!t||typeof t!="object"||Array.isArray(t)?[]:Object.keys(t).filter(function(n){if(r){var i=t[n];if(i==null||Number.isNaN(i))return!1}return ml.has(t,n)})};ml.map=function(t){var r=new cB;if(!t)return r;for(var n in t)r[n]=t[n];return r};function cB(){}cB.prototype=Object.create(null)});var pB=T((nCe,hB)=>{"use strict";var CJ=/["'&<>]/;hB.exports=FJ;function FJ(e){var t=""+e,r=CJ.exec(t);if(!r)return t;var n,i="",s=0,a=0;for(s=r.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==s&&(i+=t.substring(a,s)),a=s+1,i+=n}return a!==s?i+t.substring(a,s):i}});var mB=T((iCe,dB)=>{"use strict";dB.exports=function(t){return typeof t!="undefined"&&t!==null&&(typeof t=="object"||typeof t=="function")}});var vB=T((sCe,gB)=>{"use strict";var yB=mB();gB.exports=function(t){yB(t)||(t={});for(var r=arguments.length,n=1;n<r;n++){var i=arguments[n];yB(i)&&xJ(t,i)}return t};function xJ(e,t){for(var r in t)SJ(t,r)&&(e[r]=t[r])}function SJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var bB=T((aCe,EB)=>{"use strict";var wJ=vB(),Av={},AB,Io={default:{""":'"',""":'"',"'":"'","'":"'","&":"&","&":"&",">":">",">":">","<":"<","<":"<"},extras:{"¢":"\xA2","¢":"\xA2","©":"\xA9","©":"\xA9","€":"\u20AC","€":"\u20AC","£":"\xA3","£":"\xA3","®":"\xAE","®":"\xAE","¥":"\xA5","¥":"\xA5"}};Object.defineProperty(Io,"all",{get:function(){return AB||(AB=wJ({},Io.default,Io.extras))}});function V0(e,t){if(!BJ(e))return"";var r=Io[t||"default"],n=_J(t,r);return e.replace(n,function(i){return r[i]})}function _J(e,t){if(Av[e])return Av[e];var r=Object.keys(t).join("|"),n=new RegExp("(?=("+r+"))\\1","g");return Av[e]=n,n}function BJ(e
|
|||
|
|
`)>=0)return!1;return!0}function QY(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Is.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Is.call(Array(t+1),r)}}function Uv(e,t){if(e.length===0)return"";var r=`
|
|||
|
|
`+t.prev+t.base;return r+Is.call(e,","+r)+`
|
|||
|
|
`+t.prev}function td(e,t){var r=qv(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=za(e,i)?t(e[i],e):""}var s=typeof Rv=="function"?Rv(e):[],a;if(Dl){a={};for(var o=0;o<s.length;o++)a["$"+s[o]]=s[o]}for(var l in e)!za(e,l)||r&&String(Number(l))===l&&l<e.length||Dl&&a["$"+l]instanceof Symbol||(M8.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e)));if(typeof Rv=="function")for(var h=0;h<s.length;h++)j8.call(e,s[h])&&n.push("["+t(s[h])+"]: "+t(e[s[h]],e));return n}});var e3=T((OCe,Z8)=>{"use strict";var Q8=Po(),Cl=B8(),rZ=Y8(),nZ=gl(),rd=Q8("%WeakMap%",!0),nd=Q8("%Map%",!0),iZ=Cl("WeakMap.prototype.get",!0),sZ=Cl("WeakMap.prototype.set",!0),aZ=Cl("WeakMap.prototype.has",!0),oZ=Cl("Map.prototype.get",!0),uZ=Cl("Map.prototype.set",!0),lZ=Cl("Map.prototype.has",!0),Vv=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},cZ=function(e,t){var r=Vv(e,t);return r&&r.value},fZ=function(e,t,r){var n=Vv(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},hZ=function(e,t){return!!Vv(e,t)};Z8.exports=function(){var t,r,n,i={assert:function(s){if(!i.has(s))throw new nZ("Side channel does not contain "+rZ(s))},get:function(s){if(rd&&s&&(typeof s=="object"||typeof s=="function")){if(t)return iZ(t,s)}else if(nd){if(r)return oZ(r,s)}else if(n)return cZ(n,s)},has:function(s){if(rd&&s&&(typeof s=="object"||typeof s=="function")){if(t)return aZ(t,s)}else if(nd){if(r)return lZ(r,s)}else if(n)return hZ(n,s);return!1},set:function(s,a){rd&&s&&(typeof s=="object"||typeof s=="function")?(t||(t=new rd),sZ(t,s,a)):nd?(r||(r=new nd),uZ(r,s,a)):(n||(n={key:{},next:null}),fZ(n,s,a))}};return i}});var id=T((PCe,t3)=>{"use strict";var pZ=String.prototype.replace,dZ=/%20/g,Hv={RFC1738:"RFC1738",RFC3986:"RFC3986"};t3.exports={default:Hv.RFC3986,formatters:{RFC1738:function(e){return pZ.call(e,dZ,"+")},RFC3986:function(e){return String(e)}},RFC1738:Hv.RFC1738,RFC3986:Hv.RFC3986}});var Wv=T((NCe,r3)=>{"use strict";var mZ=id(),zv=Object.prototype.hasOwnProperty,No=Array.isArray,ks=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),gZ=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(No(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]!="undefined"&&i.push(n[s]);r.obj[r.prop]=i}}},n3=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]!="undefined"&&(n[i]=t[i]);return n},yZ=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(No(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!zv.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return No(t)&&!No(r)&&(i=n3(t,n)),No(t)&&No(r)?(r.forEach(function(s,a){if(zv.call(t,a)){var o=t[a];o&&typeof o=="object"&&s&&typeof s=="object"?t[a]=e(o,s,n):t.push(s)}else t[a]=s}),t):Object.keys(r).reduce(function(s,a){var o=r[a];return zv.call(s,a)?s[a]=e(s[a],o,n):s[a]=o,s},i)},vZ=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},EZ=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},Gv=1024,AZ=function(t,r,n,i,s){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});for(var o="",l=0;l<a.length;l+=Gv){for(var h=a.length>=Gv?a.slice(l,l+Gv):a,c=[],g=0;g<h.length;++g){var m=h.charCodeAt(g);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||s===mZ.RFC1738&&(m===40||m===41)){c[c.length]=h.charAt(g);continue}if(m<128){c[c.length]=ks[m];continue}if(m<2048){c[c.length]=ks[192|m>>6]+ks[128|m&63];continue}if(m<55296||m>=57344){c[c.length]=ks[224|m>>12]+ks[128|m>>6&63]+ks[128|m&63];continue}g+=1,m=65536+((m&1023)<<10|h.charCodeAt(g)&1023),c[c.length]=ks[240|m>>18]+ks[128|m>>12&63]+k
|
|||
|
|
`}return s}});var O4=T((oFe,I4)=>{"use strict";var Fr=require("util").debuglog("formstream"),See=require("stream"),wee=y4(),_ee=require("util"),Ed=Tf(),k4=require("path"),Bee=require("fs"),Tee=w4(),Wa=T4(),DE="--",CE=`\r
|
|||
|
|
`,jo=Buffer.from(CE);function jr(e){if(!(this instanceof jr))return new jr(e);jr.super_.call(this),this._boundary=this._generateBoundary(),this._streams=[],this._buffers=[],this._endData=Buffer.from(DE+this._boundary+DE+CE),this._contentLength=0,this._isAllStreamSizeKnown=!0,this._knownStreamSize=0,this._minChunkSize=e&&e.minChunkSize||0,this.isFormStream=!0,Fr(`start boundary
|
|||
|
|
%s`,this._boundary)}_ee.inherits(jr,See);I4.exports=jr;jr.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(Math.random()*10).toString(16);return e};jr.prototype.setTotalStreamSize=function(e){if(this._isAllStreamSizeKnown)return this;e=e||0;for(var t=0;t<this._streams.length;t++)e+=this._streams[t][0].length,e+=jo.length;return this._knownStreamSize=e,this._isAllStreamSizeKnown=!0,Fr("set total size: %s",e),this};jr.prototype.headers=function(e){var t={"Content-Type":"multipart/form-data; boundary="+this._boundary};if(this._contentLength+=this._knownStreamSize,this._contentLength+=this._endData.length,this._isAllStreamSizeKnown&&(t["Content-Length"]=String(this._contentLength)),e)for(var r in e)t[r]=e[r];return Fr("headers: %j",t),t};jr.prototype.file=function(e,t,r,n){typeof r=="number"&&!n&&(n=r,r=k4.basename(t)),r||(r=k4.basename(t));var i=Ed.getType(r),s=Bee.createReadStream(t);return this.stream(e,s,r,i,n)};jr.prototype.field=function(e,t,r){return Buffer.isBuffer(t)||(typeof t=="number"&&(t=String(t)),t=Buffer.from(t)),this.buffer(e,t,null,r)};jr.prototype.stream=function(e,t,r,n,i){typeof n=="number"&&!i?(i=n,n=Ed.getType(r)):n||(n=Ed.getType(r)),t.once("error",this.emit.bind(this,"error")),this.once("destroy",function(){Tee(t)});var s=this._leading({name:e,filename:r},n),a=wee().pause();return t.pipe(a),this._streams.push([s,a]),typeof i=="number"?(this._knownStreamSize+=s.length,this._knownStreamSize+=i,this._knownStreamSize+=jo.length):this._isAllStreamSizeKnown=!1,process.nextTick(this.resume.bind(this)),this};jr.prototype.buffer=function(e,t,r,n){r&&!n&&(n=Ed.getType(r));var i={name:e};r&&(i.filename=r);var s=this._leading(i,n),a=s.length+t.length+jo.length;return this._buffers.push(Buffer.concat([s,t,jo],a)),this._contentLength+=a,process.nextTick(this.resume.bind(this)),Fr.enabled&&(t.length>512?Fr(`new buffer field, content size: %d
|
|||
|
|
%s%s`,t.length,s.toString(),Wa(t.slice(0,512))):Fr(`new buffer field, content size: %d
|
|||
|
|
%s%s`,t.length,s.toString(),Wa(t))),this};jr.prototype._leading=function(e,t){var r=[DE+this._boundary],n=[];if(e)for(var i in e)n.push(i+'="'+e[i]+'"');return r.push("Content-Disposition: form-data; "+n.join("; ")),t&&r.push("Content-Type: "+t),r.push(""),r.push(""),Buffer.from(r.join(CE))};jr.prototype._emitBuffers=function(){if(!!this._buffers.length){for(var e=0;e<this._buffers.length;e++)this.emit("data",this._buffers[e]);this._buffers=[]}};jr.prototype._emitStream=function(e){var t=this,r=0,n=0;let i=e[0];t.emit("data",i),n++,Fr.enabled&&Fr(`new stream, chunk index %d
|
|||
|
|
%s`,n,i.toString());var s=e[1];s.on("data",function(a){t.emit("data",a),r+=i.length,n++,Fr.enabled&&(a.length>512?Fr(`stream chunk, size %d, chunk index %d, stream size %d
|
|||
|
|
%s...... only show 512 bytes ......`,a.length,n,r,Wa(a.slice(0,512))):Fr(`stream chunk, size %d, chunk index %d, stream size %d
|
|||
|
|
%s`,a.length,n,r,Wa(a)))}),s.on("end",function(){return t.emit("data",jo),n++,Fr("stream end, chunk index %d, stream size %d",n,r),process.nextTick(t.drain.bind(t))}),s.resume()};jr.prototype._emitStreamWithChunkSize=function(e,t){var r=this,n=0,i=0,s=0,a=[];let o=e[0];a.push(o),s+=o.length,Fr.enabled&&Fr(`new stream, with min chunk size: %d
|
|||
|
|
%s`,t,o.toString());var l=e[1];l.on("data",function(h){if(typeof h=="string"&&(h=Buffer.from(h,"utf-8")),a.push(h),s+=h.length,n+=h.length,Fr("got stream data size %d, buffer size %d, stream size %d",h.length,s,n),s>=t){let c=Buffer.concat(a,s);a=[],s=0,r.emit("data",c),i++,Fr.enabled&&(c.length>512?Fr(`stream chunk, size %d, chunk index %d, stream size %d
|
|||
|
|
%s...... only show 512 bytes ......`,c.length,i,n,Wa(c.slice(0,512))):Fr(`stream chunk, size %d, chunk index %d, stream size %d
|
|||
|
|
%s`,c.length,i,n,Wa(c)))}}),l.on("end",function(){a.push(jo),s+=jo.length;let h=Buffer.concat(a,s);return r.emit("data",h),i++,h.length>512?Fr(`stream end, size %d, chunk index %d, stream size %d
|
|||
|
|
%s...... only show 512 bytes ......`,h.length,i,n,Wa(h.slice(0,512))):Fr(`stream end, size %d, chunk index %d, stream size %d
|
|||
|
|
%s`,h.length,i,n,Wa(h)),process.nextTick(r.drain.bind(r))}),l.resume()};jr.prototype._emitEnd=function(){this.emit("data",this._endData),this.emit("end"),Fr.enabled&&Fr(`end boundary
|
|||
|
|
%s`,this._endData.toString())};jr.prototype.drain=function(){this._emitBuffers();var e=this._streams.shift();return e?this._minChunkSize&&this._minChunkSize>0?this._emitStreamWithChunkSize(e,this._minChunkSize):this._emitStream(e):this._emitEnd(),this};jr.prototype.resume=function(){return this.paused=!1,this._draining||(this._draining=!0,this.drain()),this};jr.prototype.close=jr.prototype.destroy=function(){this.emit("destroy")}});var R4=T((uFe,P4)=>{"use strict";function N4(e){return e.replace(/^\.*/,".").toLowerCase()}function Iee(e){e=e.trim().toLowerCase();var t=e.split(":",2),r=N4(t[0]),n=t[1],i=e.indexOf(":")>-1;return{hostname:r,port:n,hasPort:i}}function kee(e,t){var r=e.port||(e.protocol==="https:"?"443":"80"),n=N4(e.hostname),i=t.split(",");return i.map(Iee).some(function(s){var a=n.indexOf(s.hostname),o=a>-1&&a===n.length-s.hostname.length;return s.hasPort?r===s.port&&o:o})}function Oee(e){var t=process.env.NO_PROXY||process.env.no_proxy||"";return t==="*"||t!==""&&kee(e,t)?null:e.protocol==="http:"?process.env.HTTP_PROXY||process.env.http_proxy||null:e.protocol==="https:"&&(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy)||null}P4.exports=Oee});var L4=T((lFe,M4)=>{"use strict";M4.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var j4=T((cFe,q4)=>{"use strict";q4.exports=qt;qt.Node=Uo;qt.create=qt;function qt(e){var t=this;if(t instanceof qt||(t=new qt),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}qt.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};qt.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};qt.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};qt.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Pee(this,arguments[e]);return this.length};qt.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Nee(this,arguments[e]);return this.length};qt.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};qt.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};qt.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};qt.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};qt.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};qt.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};qt.prototype.map=function(e,t){t=t||this;for(var r=new qt,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};qt.prototype.mapReverse=function(e,t){t=t||this;for(var r=new qt,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};qt.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};qt.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Re
|
|||
|
|
`).some(t=>t.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1)}function bd(e,t){return new bd.Agent(e,t)}(function(e){class t extends qee.EventEmitter{constructor(n,i){super();let s=i;typeof n=="function"?this.callback=n:n&&(s=n),this.timeout=null,s&&typeof s.timeout=="number"&&(this.timeout=s.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=Infinity,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:_E()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:_E()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,i,s){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,i){let s=Object.assign({},i);typeof s.secureEndpoint!="boolean"&&(s.secureEndpoint=_E()),s.host==null&&(s.host="localhost"),s.port==null&&(s.port=s.secureEndpoint?443:80),s.protocol==null&&(s.protocol=s.secureEndpoint?"https:":"http:"),s.host&&s.path&&delete s.path,delete s.agent,delete s.hostname,delete s._defaultAgent,delete s.defaultPort,delete s.createConnection,n._last=!0,n.shouldKeepAlive=!1;let a=!1,o=null,l=s.timeout||this.timeout,h=p=>{n._hadError||(n.emit("error",p),n._hadError=!0)},c=()=>{o=null,a=!0;let p=new Error(`A "socket" was not created for HTTP request before ${l}ms`);p.code="ETIMEOUT",h(p)},g=p=>{a||(o!==null&&(clearTimeout(o),o=null),h(p))},m=p=>{if(a)return;if(o!=null&&(clearTimeout(o),o=null),Vee(p)){Of("Callback returned another Agent instance %o",p.constructor.name),p.addRequest(n,s);return}if(p){p.once("free",()=>{this.freeSocket(p,s)}),n.onSocket(p);return}let d=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);h(d)};if(typeof this.callback!="function"){h(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Of("Converting legacy callback function to promise"),this.promisifiedCallback=Uee.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(c,l)),"port"in s&&typeof s.port!="number"&&(s.port=Number(s.port));try{Of("Resolving socket for %o request: %o",s.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,s)).then(m,g)}catch(p){Promise.reject(p).catch(g)}}freeSocket(n,i){Of("Freeing socket %o %o",n.constructor.name,i),n.destroy()}destroy(){Of("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(bd||(bd={}));K4.exports=bd});var BE=T(Y4=>{"use strict";var Hee=require("url").parse,zee={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Gee=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function Xee(e){var t=typeof e=="string"?Hee(e):e||{},r=t.protocol,n=t.host,i=t.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),i=parseInt(i)||zee[r]||0,!Wee(n,i)))return"";var s=Nl("npm_config_"+r+"_proxy")||Nl(r+"_proxy")||Nl("npm_config_proxy")||Nl("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function Wee(e,t){var r=(Nl("npm_config_no_proxy")||Nl("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),s=i?i[1]:n,a=i?parseInt(i[2]):0;return a&&a!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!Gee.call(e,s)):e!==s}):!0}function Nl(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Y4.getProxyForUrl=Xee});var Q4=T((dFe,Z4)=>{"use strict";function $ee(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),n="",i=!1,s=r[0]||"text/plain",a=s;for(let c=1;c<r.length;c++)r[c]==="base64"?i=!0:(a+=`;${r[c]}`,r[c].indexOf("charset=")===0&&(n=r[c].su
|
|||
|
|
|
|||
|
|
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=qf.checkPathsSync(e,t,"copy");return qf.checkParentPathsSync(e,n,t,"copy"),xte(i,e,t,r)}function xte(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Lf.dirname(r);return pr.existsSync(i)||Cte(i),D6(e,t,r,n)}function D6(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return wte(e,t,r,n)}function wte(e,t,r,n){let s=(n.dereference?pr.statSync:pr.lstatSync)(t);if(s.isDirectory())return Bte(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return _te(s,e,t,r,n);if(s.isSymbolicLink())return Tte(e,t,r,n)}function _te(e,t,r,n,i){return t?Ite(e,r,n,i):C6(e,r,n,i)}function Ite(e,t,r,n){if(n.overwrite)return pr.unlinkSync(r),C6(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function C6(e,t,r,n){return typeof pr.copyFileSync=="function"?(pr.copyFileSync(t,r),pr.chmodSync(r,e.mode),n.preserveTimestamps?Fte(r,e.atime,e.mtime):void 0):kte(e,t,r,n)}function kte(e,t,r,n){let i=64*1024,s=A6()(i),a=pr.openSync(t,"r"),o=pr.openSync(r,"w",e.mode),l=0;for(;l<e.size;){let h=pr.readSync(a,s,0,i,l);pr.writeSync(o,s,0,h),l+=h}n.preserveTimestamps&&pr.futimesSync(o,e.atime,e.mtime),pr.closeSync(a),pr.closeSync(o)}function Bte(e,t,r,n,i){if(!t)return Ote(e,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return F6(r,n,i)}function Ote(e,t,r,n){return pr.mkdirSync(r),F6(t,r,n),pr.chmodSync(r,e.mode)}function F6(e,t,r){pr.readdirSync(e).forEach(n=>Pte(n,e,t,r))}function Pte(e,t,r,n){let i=Lf.join(t,e),s=Lf.join(r,e),{destStat:a}=qf.checkPathsSync(i,s,"copy");return D6(a,i,s,n)}function Tte(e,t,r,n){let i=pr.readlinkSync(t);if(n.dereference&&(i=Lf.resolve(process.cwd(),i)),e){let s;try{s=pr.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return pr.symlinkSync(i,r);throw a}if(n.dereference&&(s=Lf.resolve(process.cwd(),s)),qf.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(pr.statSync(r).isDirectory()&&qf.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Nte(i,r)}else return pr.symlinkSync(i,r)}function Nte(e,t){return pr.unlinkSync(t),pr.symlinkSync(e,t)}b6.exports=Ste});var XE=T((wFe,S6)=>{"use strict";S6.exports={copySync:x6()}});var Ns=T((_Fe,w6)=>{"use strict";var Rte=ti().fromPromise,_6=PE();function Mte(e){return _6.access(e).then(()=>!0).catch(()=>!1)}w6.exports={pathExists:Rte(Mte),pathExistsSync:_6.existsSync}});var M6=T((BFe,B6)=>{"use strict";var vn=Lr(),jf=require("path"),Lte=Ai().mkdirs,qte=Ns().pathExists,jte=HE().utimesMillis,Uf=Mf();function Ute(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|||
|
|
|
|||
|
|
see https://github.com/jprichardson/node-fs-extra/issues/269`),Uf.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:o}=s;Uf.checkParentPaths(e,a,t,"copy",l=>l?n(l):r.filter?I6(T6,o,e,t,r,n):T6(o,e,t,r,n))})}function T6(e,t,r,n,i){let s=jf.dirname(r);qte(s,(a,o)=>{if(a)return i(a);if(o)return $E(e,t,r,n,i);Lte(s,l=>l?i(l):$E(e,t,r,n,i))})}function I6(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,s):s(),a=>s(a))}function $E(e,t,r,n,i){return n.filter?I6(k6,e,t,r,n,i):k6(e,t,r,n,i)}function k6(e,t,r,n,i){(n.dereference?vn.stat:vn.lstat)(t,(a,o)=>{if(a)return i(a);if(o.isDirectory())return Hte(o,e,t,r,n,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Vte(o,e,t,r,n,i);if(o.isSymbolicLink())return zte(e,t,r,n,i)})}function Vte(e,t,r,n,i,s){return t?Gte(e,r,n,i,s):O6(e,r,n,i,s)}function Gte(e,t,r,n,i){if(n.overwrite)vn.unlink(r,s=>s?i(s):O6(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function O6(e,t,r,n,i){return typeof vn.copyFile=="function"?vn.copyFile(t,r,s=>s?i(s):P6(e,r,n,i)):Wte(e,t,r,n,i)}function Wte(e,t,r,n,i){let s=vn.createReadStream(t);s.on("error",a=>i(a)).once("open",()=>{let a=vn.createWriteStream(r,{mode:e.mode});a.on("error",o=>i(o)).on("open",()=>s.pipe(a)).once("close",()=>P6(e,r,n,i))})}function P6(e,t,r,n){vn.chmod(t,e.mode,i=>i?n(i):r.preserveTimestamps?jte(t,e.atime,e.mtime,n):n())}function Hte(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):N6(r,n,i,s):Xte(e,r,n,i,s)}function Xte(e,t,r,n,i){vn.mkdir(r,s=>{if(s)return i(s);N6(t,r,n,a=>a?i(a):vn.chmod(r,e.mode,i))})}function N6(e,t,r,n){vn.readdir(e,(i,s)=>i?n(i):R6(s,e,t,r,n))}function R6(e,t,r,n,i){let s=e.pop();return s?$te(e,s,t,r,n,i):i()}function $te(e,t,r,n,i,s){let a=jf.join(r,t),o=jf.join(n,t);Uf.checkPaths(a,o,"copy",(l,h)=>{if(l)return s(l);let{destStat:c}=h;$E(c,a,o,i,g=>g?s(g):R6(e,r,n,i,s))})}function zte(e,t,r,n,i){vn.readlink(t,(s,a)=>{if(s)return i(s);if(n.dereference&&(a=jf.resolve(process.cwd(),a)),e)vn.readlink(r,(o,l)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?vn.symlink(a,r,i):i(o):(n.dereference&&(l=jf.resolve(process.cwd(),l)),Uf.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&Uf.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):Kte(a,r,i)));else return vn.symlink(a,r,i)})}function Kte(e,t,r){vn.unlink(t,n=>n?r(n):vn.symlink(e,t,r))}B6.exports=Ute});var KE=T((TFe,L6)=>{"use strict";var Jte=ti().fromCallback;L6.exports={copy:Jte(M6())}});var X6=T((IFe,q6)=>{"use strict";var j6=Lr(),U6=require("path"),Gt=require("assert"),Vf=process.platform==="win32";function V6(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||j6[r],r=r+"Sync",e[r]=e[r]||j6[r]}),e.maxBusyTries=e.maxBusyTries||3}function JE(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),Gt(e,"rimraf: missing path"),Gt.strictEqual(typeof e,"string","rimraf: path should be a string"),Gt.strictEqual(typeof r,"function","rimraf: callback function required"),Gt(t,"rimraf: invalid options argument provided"),Gt.strictEqual(typeof t,"object","rimraf: options should be object"),V6(t),H6(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>H6(e,t,i),a)}s.code==="ENOENT"&&(s=null)}r(s)})}function H6(e,t,r){Gt(e),Gt(t),Gt(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Vf)return z6(e,t,n,r);if(i&&i.isDirectory())return Cd(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Vf?z6(e,t,s,r):Cd(e,t,s,r);if(s.code==="EISDIR")return Cd(e,t,s,r)}return r(s)})})}function z6(e,t,r,n){Gt(e),Gt(t),Gt(typeof n=="function"),r&&Gt(r instanceof Error),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,a)=>{s?n(s.code==="ENOENT"?null:r):a.isDirectory()?Cd(e,t,r,n):t.unlink(e,n)})})}function G6(e,t,r){let n;Gt(e),Gt(t),r&&Gt(r instanceof Error);try{t
|
|||
|
|
`;typeof t=="object"&&t!==null&&(t.spaces&&(r=t.spaces),t.EOL&&(n=t.EOL));var i=JSON.stringify(e,t?t.replacer:null,r);return i.replace(/\n/g,n)+n}function Fre(e,t,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Ml,s="";try{s=BT(t,r)}catch(a){n&&n(a,null);return}i.writeFile(e,s,r,n)}function xre(e,t,r){r=r||{};var n=r.fs||Ml,i=BT(t,r);return n.writeFileSync(e,i,r)}function _T(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e=e.replace(/^\uFEFF/,""),e}var Sre={readFile:Dre,readFileSync:Cre,writeFile:Fre,writeFileSync:xre};wT.exports=Sre});var Bd=T((UFe,IT)=>{"use strict";var kT=ti().fromCallback,_d=TT();IT.exports={readJson:kT(_d.readFile),readJsonSync:_d.readFileSync,writeJson:kT(_d.writeFile),writeJsonSync:_d.writeFileSync}});var NT=T((VFe,OT)=>{"use strict";var wre=require("path"),_re=Ai(),Bre=Ns().pathExists,PT=Bd();function Tre(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=wre.dirname(e);Bre(i,(s,a)=>{if(s)return n(s);if(a)return PT.writeJson(e,t,r,n);_re.mkdirs(i,o=>{if(o)return n(o);PT.writeJson(e,t,r,n)})})}OT.exports=Tre});var MT=T((HFe,RT)=>{"use strict";var Ire=Lr(),kre=require("path"),Ore=Ai(),Pre=Bd();function Nre(e,t,r){let n=kre.dirname(e);Ire.existsSync(n)||Ore.mkdirsSync(n),Pre.writeJsonSync(e,t,r)}RT.exports=Nre});var qT=T((zFe,LT)=>{"use strict";var Rre=ti().fromCallback,zn=Bd();zn.outputJson=Rre(NT());zn.outputJsonSync=MT();zn.outputJSON=zn.outputJson;zn.outputJSONSync=zn.outputJsonSync;zn.writeJSON=zn.writeJson;zn.writeJSONSync=zn.writeJsonSync;zn.readJSON=zn.readJson;zn.readJSONSync=zn.readJsonSync;LT.exports=zn});var GT=T((GFe,jT)=>{"use strict";var UT=Lr(),Mre=require("path"),Lre=XE().copySync,VT=Hf().removeSync,qre=Ai().mkdirpSync,HT=Mf();function Ure(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=HT.checkPathsSync(e,t,"move");return HT.checkParentPathsSync(e,i,t,"move"),qre(Mre.dirname(t)),jre(e,t,n)}function jre(e,t,r){if(r)return VT(t),zT(e,t,r);if(UT.existsSync(t))throw new Error("dest already exists.");return zT(e,t,r)}function zT(e,t,r){try{UT.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Vre(e,t,r)}}function Vre(e,t,r){return Lre(e,t,{overwrite:r,errorOnExist:!0}),VT(e)}jT.exports=Ure});var XT=T((WFe,WT)=>{"use strict";WT.exports={moveSync:GT()}});var ZT=T((XFe,$T)=>{"use strict";var Hre=Lr(),zre=require("path"),Gre=KE().copy,KT=Hf().remove,Wre=Ai().mkdirp,Xre=Ns().pathExists,JT=Mf();function Kre(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;JT.checkPaths(e,t,"move",(s,a)=>{if(s)return n(s);let{srcStat:o}=a;JT.checkParentPaths(e,o,t,"move",l=>{if(l)return n(l);Wre(zre.dirname(t),h=>h?n(h):$re(e,t,i,n))})})}function $re(e,t,r,n){if(r)return KT(t,i=>i?n(i):YT(e,t,r,n));Xre(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):YT(e,t,r,n))}function YT(e,t,r,n){Hre.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Jre(e,t,r,n):n())}function Jre(e,t,r,n){Gre(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):KT(e,n))}$T.exports=Kre});var e9=T(($Fe,QT)=>{"use strict";var Yre=ti().fromCallback;QT.exports={move:Yre(ZT())}});var i9=T((KFe,t9)=>{"use strict";var Zre=ti().fromCallback,Wf=Lr(),r9=require("path"),n9=Ai(),Qre=Ns().pathExists;function ene(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=r9.dirname(e);Qre(i,(s,a)=>{if(s)return n(s);if(a)return Wf.writeFile(e,t,r,n);n9.mkdirs(i,o=>{if(o)return n(o);Wf.writeFile(e,t,r,n)})})}function tne(e,...t){let r=r9.dirname(e);if(Wf.existsSync(r))return Wf.writeFileSync(e,...t);n9.mkdirsSync(r),Wf.writeFileSync(e,...t)}t9.exports={outputFile:Zre(ene),outputFileSync:tne}});var a9=T((JFe,YE)=>{"use strict";YE.exports=Object.assign({},PE(),XE(),KE(),nT(),ST(),qT(),Ai(),XT(),e9(),i9(),Ns(),Hf());var s9=require("fs");Object.getOwnPropertyDescriptor(s9,"promises")&&Object.defineProperty(YE.exports,"promises",{get(){return s9.promises}})});var u9=T((YFe,o9)=>{"use strict";var Td=require("path");function rne(e){if(typeof e!="string"||e.length<=7||e.substring(0,7)!=="file://")throw new TypeError("must pass in a file:// URI to convert to a file path");let t=decodeURI(e.substring(7)),r=t.indexOf("/"),n=t.substring(0,r),
|
|||
|
|
`),Lt=G9.exports=function(){if(!(this instanceof Lt))return new Lt;this._socket=void 0,this._pasvSock=void 0,this._feat=void 0,this._curReq=void 0,this._queue=[],this._secstate=void 0,this._debug=void 0,this._keepalive=void 0,this._ending=!1,this._parser=void 0,this.options={host:void 0,port:void 0,user:void 0,password:void 0,secure:!1,secureOptions:void 0,connTimeout:void 0,pasvTimeout:void 0,aliveTimeout:void 0},this.connected=!1};uie(Lt,oie);Lt.prototype.connect=function(e){var t=this;typeof e!="object"&&(e={}),this.connected=!1,this.options.host=e.host||"localhost",this.options.port=e.port||21,this.options.user=e.user||"anonymous",this.options.password=e.password||"anonymous@",this.options.secure=e.secure||!1,this.options.secureOptions=e.secureOptions,this.options.connTimeout=e.connTimeout||1e4,this.options.pasvTimeout=e.pasvTimeout||1e4,this.options.aliveTimeout=e.keepalive||1e4,typeof e.debug=="function"&&(this._debug=e.debug);var r,n=this._debug,i=new X9;if(i.setTimeout(0),i.setKeepAlive(!0),this._parser=new gA({debug:n}),this._parser.on("response",function(y,E){var D=y/100>>0;D===yA.ERR_TEMP||D===yA.ERR_PERM?t._curReq?t._curReq.cb(Zo(y,E),void 0,y):t.emit("error",Zo(y,E)):t._curReq&&t._curReq.cb(void 0,E,y),t._curReq&&D!==yA.PRELIM&&(t._curReq=void 0,t._send()),a.cb()}),this.options.secure){r={},r.host=this.options.host;for(var s in this.options.secureOptions)r[s]=this.options.secureOptions[s];r.socket=i,this.options.secureOptions=r}this.options.secure==="implicit"?this._socket=dA.connect(r,l):(i.once("connect",l),this._socket=i);var a={cmd:"NOOP",cb:function(){clearTimeout(t._keepalive),t._keepalive=setTimeout(o,t.options.aliveTimeout)}};function o(){!t._socket||!t._socket.writable?clearTimeout(t._keepalive):!t._curReq&&t._queue.length===0?(t._curReq=a,n&&n("[connection] > NOOP"),t._socket.write(pie)):a.cb()}function l(){clearTimeout(d),clearTimeout(t._keepalive),t.connected=!0,t._socket=i;var y;t._secstate?t._secstate==="upgraded-tls"&&t.options.secure===!0?(y="PBSZ",t._send("PBSZ 0",E,!0)):(y="USER",t._send("USER "+t.options.user,E,!0)):t._curReq={cmd:"",cb:E};function E(D,b,A){if(D&&(!y||y==="USER"||y==="PASS"||y==="TYPE"))return t.emit("error",D),t._socket&&t._socket.end();if(y==="AUTH TLS"&&A!==234&&t.options.secure!==!0||y==="AUTH SSL"&&A!==334||y==="PBSZ"&&A!==200||y==="PROT"&&A!==200)return t.emit("error",Zo(A,"Unable to secure connection(s)")),t._socket&&t._socket.end();if(!y)t.emit("greeting",b),t.options.secure&&t.options.secure!=="implicit"?(y="AUTH TLS",t._send(y,E,!0)):(y="USER",t._send("USER "+t.options.user,E,!0));else if(y==="USER")if(A!==230){if(!t.options.password)return t.emit("error",Zo(A,"Password required")),t._socket&&t._socket.end();y="PASS",t._send("PASS "+t.options.password,E,!0)}else y="PASS",E(void 0,b,A);else if(y==="PASS")y="FEAT",t._send(y,E,!0);else if(y==="FEAT")D||(t._feat=gA.parseFeat(b)),y="TYPE",t._send("TYPE I",E,!0);else if(y==="TYPE")t.emit("ready");else if(y==="PBSZ")y="PROT",t._send("PROT P",E,!0);else if(y==="PROT")y="USER",t._send("USER "+t.options.user,E,!0);else if(y.substr(0,4)==="AUTH"){if(y==="AUTH TLS"&&A!==234)return y="AUTH SSL",t._send(y,E,!0);y==="AUTH TLS"?t._secstate="upgraded-tls":y==="AUTH SSL"&&(t._secstate="upgraded-ssl"),i.removeAllListeners("data"),i.removeAllListeners("error"),i._decoder=null,t._curReq=null,r.socket=t._socket,r.session=void 0,i=dA.connect(r,l),i.setEncoding("binary"),i.on("data",h),i.once("end",g),i.on("error",c)}}}i.on("data",h);function h(y){n&&n("[connection] < "+$9(y.toString("binary"))),t._parser&&t._parser.write(y)}i.on("error",c);function c(y){clearTimeout(d),clearTimeout(t._keepalive),t.emit("error",y)}i.once("end",g);function g(){p(),t.emit("end")}i.once("close",function(y){p(),t.emit("close",y)});var m=!1;function p(){m||(m=!0,clearTimeout(d),t._reset())}var d=setTimeout(function(){t.emit("error",new Error("Timeout while connecting to server")),t._socket&&t._socket.destroy(),t._reset()},this.options.connTimeout);this._socket.connect(this.options.port,this.options.host)};Lt.prototype.end=function(){this._queue.length?this.
|
|||
|
|
`)):!this._curReq&&!n&&this._ending&&this._reset()};Lt.prototype._reset=function(){this._pasvSock&&this._pasvSock.writable&&this._pasvSock.end(),this._socket&&this._socket.writable&&this._socket.end(),this._socket=void 0,this._pasvSock=void 0,this._feat=void 0,this._curReq=void 0,this._secstate=void 0,clearTimeout(this._keepalive),this._keepalive=void 0,this._queue=[],this._ending=!1,this._parser=void 0,this.options.host=this.options.port=this.options.user=this.options.password=this.options.secure=this.options.connTimeout=this.options.pasvTimeout=this.options.keepalive=this._debug=void 0,this.connected=!1};function Zo(e,t){var r=new Error(t);return r.code=e,r}});var t5=T(Qo=>{"use strict";var die=Qo&&Qo.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(c){try{h(n.next(c))}catch(g){a(g)}}function l(c){try{h(n.throw(c))}catch(g){a(g)}}function h(c){c.done?s(c.value):i(c.value).then(o,l)}h((n=n.apply(e,t||[])).next())})},Jf=Qo&&Qo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qo,"__esModule",{value:!0});var mie=Jf(Xf()),gie=Jf(Y9()),Z9=require("path"),yie=Jf(Zr()),Q9=Jf(Id()),vie=Jf(Pf()),e5=yie.default("get-uri:ftp");function Eie(e,t){return die(this,void 0,void 0,function*(){let{cache:r}=t,n=e.pathname,i=null;if(!n)throw new TypeError('No "pathname"!');let s=new gie.default;s.once("greeting",l=>{e5("FTP greeting: %o",l)});function a(){s.end()}try{if(t.host=e.hostname||e.host||"localhost",t.port=parseInt(e.port||"0",10)||21,t.debug=e5,e.auth){let[c,g]=e.auth.split(":");t.user=c,t.password=g}let l=mie.default(s,"ready");s.connect(t),yield l;try{i=yield new Promise((c,g)=>{s.lastMod(n,(m,p)=>m?g(m):c(p))})}catch(c){if(c.code===550)throw new Q9.default}if(!i){let c=yield new Promise((p,d)=>{s.list(Z9.dirname(n),(y,E)=>y?d(y):p(E))}),g=Z9.basename(n),m=c.find(p=>p.name===g);m&&(i=m.date)}if(i){if(o())throw new vie.default}else throw new Q9.default;let h=yield new Promise((c,g)=>{s.get(n,(m,p)=>m?g(m):c(p))});return h.once("end",a),h.lastModified=i,h}catch(l){throw s.destroy(),l}function o(){return r&&r.lastModified&&i?+r.lastModified==+i:!1}})}Qo.default=Eie});var n5=T(vA=>{"use strict";Object.defineProperty(vA,"__esModule",{value:!0});var Aie=require("http"),r5=class extends Error{constructor(t,r=Aie.STATUS_CODES[t]){super(r);Object.setPrototypeOf(this,new.target.prototype),this.statusCode=t,this.code=`E${String(r).toUpperCase().replace(/\s+/g,"")}`}};vA.default=r5});var EA=T(eu=>{"use strict";var bie=eu&&eu.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(c){try{h(n.next(c))}catch(g){a(g)}}function l(c){try{h(n.throw(c))}catch(g){a(g)}}function h(c){c.done?s(c.value):i(c.value).then(o,l)}h((n=n.apply(e,t||[])).next())})},tu=eu&&eu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eu,"__esModule",{value:!0});var Die=tu(require("http")),Cie=tu(require("https")),Fie=tu(Xf()),xie=tu(Zr()),i5=require("url"),Sie=tu(n5()),wie=tu(Id()),s5=tu(Pf()),Bn=xie.default("get-uri:http");function a5(e,t){return bie(this,void 0,void 0,function*(){Bn("GET %o",e.href);let r=o5(e,t.cache);if(r&&_ie(r)&&typeof r.statusCode=="number")throw(r.statusCode/100|0)===3&&r.headers.location?(Bn("cached redirect"),new Error("TODO: implement cached redirects!")):new s5.default;let n=typeof t.maxRedirects=="number"?t.maxRedirects:5;Bn("allowing %o max redirects",n);let i;t.http?(i=t.http,Bn("using secure `https` core module")):(i=Die.default,Bn("using `http` core module"));let s=Object.assign(Object.assign({},t),e);if(r){s.headers||(s.headers={});let g=r.headers["last-modified"];g&&(s.headers["If-Modified-Since"]=g,Bn('added "If-Modified-Since" request header: %o',g));let m=r.headers.etag;m&&(s.headers["If-None-Match"]=m,Bn('added "If-None-Match" request header: %o',m))}let a=i.get(s),o=yield Fie.default(a,"response"),l=o.statusCode||0;o.date=Date.now(),o.parsed=e,Bn("got %o response status c
|
|||
|
|
\v\f\r !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\u
|
|||
|
|
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
|
|||
|
|
\v\f\r\u1EF6\u1EF8\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
|
|||
|
|
\v\f\r !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
|
|||
|
|
\v\f\r !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var $5=T(W5=>{"use strict";var zl=nu().Buffer;W5._dbcs=pa;var ni=-1,X5=-2,Gi=-10,Ls=-1e3,Gl=new Array(256),Qf=-1;for(var XA=0;XA<256;XA++)Gl[XA]=ni;function pa(e,t){if(this.encodingName=e.encodingName,!e)throw new Error("DBCS codec is called without the data.");if(!e.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=e.table();this.decodeTables=[],this.deco
|
|||
|
|
\r
|
|||
|
|
`)+4,t.output[0]=t._header+o.substring(l),Ya("Output buffer: %o",t.output)):t.outputData&&t.outputData.length>0&&(Ya("Patching connection write() output buffer with updated header"),o=t.outputData[0].data,l=o.indexOf(`\r
|
|||
|
|
\r
|
|||
|
|
`)+4,t.outputData[0].data=t._header+o.substring(l),Ya("Output buffer: %o",t.outputData[0].data))}return yield Fse.default(a,"connect"),a})}};ou.default=_I});var sb=T((rb,TI)=>{"use strict";var wse=rb&&rb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},nb=wse(BI());function ib(e){return new nb.default(e)}(function(e){e.HttpProxyAgent=nb.default,e.prototype=nb.default.prototype})(ib||(ib={}));TI.exports=ib});var II=T(th=>{"use strict";var _se=th&&th.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(th,"__esModule",{value:!0});var Bse=_se(Zr()),rh=Bse.default("https-proxy-agent:parse-proxy-response");function Tse(e){return new Promise((t,r)=>{let n=0,i=[];function s(){let g=e.read();g?c(g):e.once("readable",s)}function a(){e.removeListener("end",l),e.removeListener("error",h),e.removeListener("close",o),e.removeListener("readable",s)}function o(g){rh("onclose had error %o",g)}function l(){rh("onend")}function h(g){a(),rh("onerror %o",g),r(g)}function c(g){i.push(g),n+=g.length;let m=Buffer.concat(i,n);if(m.indexOf(`\r
|
|||
|
|
\r
|
|||
|
|
`)===-1){rh("have not received end of HTTP headers yet..."),s();return}let d=m.toString("ascii",0,m.indexOf(`\r
|
|||
|
|
`)),y=+d.split(" ")[1];rh("got proxy server response: %o",d),t({statusCode:y,buffered:m})}e.on("error",h),e.on("close",o),e.on("end",l),s()})}th.default=Tse});var NI=T(uu=>{"use strict";var Ise=uu&&uu.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(c){try{h(n.next(c))}catch(g){a(g)}}function l(c){try{h(n.throw(c))}catch(g){a(g)}}function h(c){c.done?s(c.value):i(c.value).then(o,l)}h((n=n.apply(e,t||[])).next())})},Xl=uu&&uu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uu,"__esModule",{value:!0});var kI=Xl(require("net")),OI=Xl(require("tls")),kse=Xl(require("url")),Ose=Xl(require("assert")),Pse=Xl(Zr()),Nse=Pl(),Rse=Xl(II()),nh=Pse.default("https-proxy-agent:agent"),PI=class extends Nse.Agent{constructor(t){let r;if(typeof t=="string"?r=kse.default.parse(t):r=t,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");nh("creating new HttpsProxyAgent instance: %o",r),super(r);let n=Object.assign({},r);this.secureProxy=r.secureProxy||qse(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(t,r){return Ise(this,void 0,void 0,function*(){let{proxy:n,secureProxy:i}=this,s;i?(nh("Creating `tls.Socket`: %o",n),s=OI.default.connect(n)):(nh("Creating `net.Socket`: %o",n),s=kI.default.connect(n));let a=Object.assign({},n.headers),l=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
|
|||
|
|
`;n.auth&&(a["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:h,port:c,secureEndpoint:g}=r;Lse(c,g)||(h+=`:${c}`),a.Host=h,a.Connection="close";for(let E of Object.keys(a))l+=`${E}: ${a[E]}\r
|
|||
|
|
`;let m=Rse.default(s);s.write(`${l}\r
|
|||
|
|
`);let{statusCode:p,buffered:d}=yield m;if(p===200){if(t.once("socket",Mse),r.secureEndpoint){nh("Upgrading socket connection to TLS");let E=r.servername||r.host;return OI.default.connect(Object.assign(Object.assign({},jse(r,"host","hostname","path","port")),{socket:s,servername:E}))}return s}s.destroy();let y=new kI.default.Socket({writable:!1});return y.readable=!0,t.once("socket",E=>{nh("replaying proxy buffer for failed request"),Ose.default(E.listenerCount("data")>0),E.push(d),E.push(null)}),y})}};uu.default=PI;function Mse(e){e.resume()}function Lse(e,t){return Boolean(!t&&e===80||t&&e===443)}function qse(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function jse(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}});var lb=T((ab,RI)=>{"use strict";var Use=ab&&ab.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ob=Use(NI());function ub(e){return new ob.default(e)}(function(e){e.HttpsProxyAgent=ob.default,e.prototype=ob.default.prototype})(ub||(ub={}));RI.exports=ub});var jI=T(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var MI=require("buffer"),lu={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};da.ERRORS=lu;function Vse(e){if(!MI.Buffer.isEncoding(e))throw new Error(lu.INVALID_ENCODING)}da.checkEncoding=Vse;function LI(e){return typeof e=="number"&&isFinite(e)&&Hse(e)}da.isFiniteInteger=LI;function qI(e,t){if(typeof e=="number"){if(!LI(e)||e<0)throw new Error(t?lu.INVALID_OFFSET:lu.INVALID_LENGTH)}else throw new Error(t?lu.INVALID_OFFSET_NON_NUMBER:lu.INVALID_LENGTH_NON_NUMBER)}function zse(e){qI(e,!1)}da.checkLengthValue=zse;function Gse(e){qI(e,!0)}da.checkOffsetValue=Gse;function Wse(e,t){if(e<0||e>t.length)throw new Error(lu.INVALID_TARGET_OFFSET)}da.checkTargetOffset=Wse;function Hse(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Xse(e){if(typeof BigInt=="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof MI.Buffer.prototype[e]=="undefined")throw new Error(`Platform does not support Buffer.prototype.${e}.`)}da.bigIntAndBufferInt64Check=Xse});var VI=T(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});var yt=jI(),UI=4096,$se="utf8",em=class{constructor(t){if(this.length=0,this._encoding=$se,this._writeOffset=0,this._readOffset=0,em.isSmartBufferOptions(t))if(t.encoding&&(yt.checkEncoding(t.encoding),this._encoding=t.encoding),t.size)if(yt.isFiniteInteger(t.size)&&t.size>0)this._buff=Buffer.allocUnsafe(t.size);else throw new Error(yt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(t.buff)if(Buffer.isBuffer(t.buff))this._buff=t.buff,this.length=t.buff.length;else throw new Error(yt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(UI);else{if(typeof t!="undefined")throw new Error(yt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(UI)}}static fromSize(t,r){return new this({size:t,encoding:r})}static fromBuffer(t,r){return new this({buff:t,encoding:r})}static fromOptions(t){return new this(t)}static isSmartBufferOptions(t){let r=t;r
|
|||
|
|
`,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 me(x,R){var O="";for(R|=0;R>0;R>>>=1,x+=x)R&1&&(O+=x);return O}function pe(x){return/[\r\n]/g.test(x)}function re(x){var R=x.length;return R&&s.code.isLineTerminator(x.charCodeAt(R-1))}function Se(x,R){var O;for(O in R)R.hasOwnProperty(O)&&(x[O]=R[O]);return x}function De(x,R){var O,L;function K(Y){return typeof Y=="object"&&Y instanceof Object&&!(Y instanceof RegExp)}for(O in R)R.hasOwnProperty(O)&&(L=R[O],K(L)?K(x[O])?De(x[O],L):x[O]=De({},L):x[O]=L);return x}function ve(x){var R,O,L,K,Y;if(x!==x)throw new Error("Numeric literal whose value is NaN");if(x<0||x===0&&1/x<0)throw new Error("Numeric literal whose value is negative");if(x===1/0)return l?"null":h?"1e400":"1e+400";if(R=""+x,!h||R.length<3)return R;for(O=R.indexOf("."),!l&&R.charCodeAt(0)===48&&O===1&&(O=0,R=R.slice(1)),L=R,R=R.replace("e+","e"),K=0,(Y=L.indexOf("e"))>0&&(K=+L.slice(Y+1),L=L.slice(0,Y)),O>=0&&(K-=L.length-O-1,L=+(L.slice(0,O)+L.slice(O+1))+""),Y=0;L.charCodeAt(L.length+Y-1)===48;)--Y;return Y!==0&&(K-=Y,L=L.slice(0,Y)),K!==0&&(L+="e"+K),(L.length<R.length||c&&x>1e12&&Math.floor(x)===x&&(L="0x"+x.toString(16)).length<R.length)&&+L===x&&(R=L),R}function _e(x,R){return(x&~1)==8232?(R?"u":"\\u")+(x===8232?"2028":"2029"):x===10||x===13?(R?"":"\\")+(x===10?"n":"r"):String.fromCharCode(x)}function et(x){var R,O,L,K,Y,de,Ce,Me;if(O=x.toString(),x.source){if(R=O.match(/\/([^/]*)$/),!R)return O;for(L=R[1],O="",Ce=!1,Me=!1,K=0,Y=x.source.length;K<Y;++K)de=x.source.charCodeAt(K),Me?(O+=_e(de,Me),Me=!1):(Ce?de===93&&(Ce=!1):de===47?O+="\\":de===91&&(Ce=!0),O+=_e(de,Me),Me=de===92);return"/"+O+"/"+L}return O}function Ne(x,R){var O;return x===8?"\\b":x===12?"\\f":x===9?"\\t":(O=x.toString(16).toUpperCase(),l||x>255?"\\u"+"0000".slice(O.length)+O:x===0&&!s.code.isDecimalDigit(R)?"\\0":x===11?"\\x0B":"\\x"+"00".slice(O.length)+O)}function pt(x){if(x===92)return"\\\\";if(x===10)return"\\n";if(x===13)return"\\r";if(x===8232)return"\\u2028";if(x===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function dr(x){var R,O,L,K;for(K=g==="double"?'"':"'",R=0,O=x.length;R<O;++R)if(L=x.charCodeAt(R),L===39){K='"';break}else if(L===34){K="'";break}else L===92&&++R;return K+x+K}function kr(x){var R="",O,L,K,Y=0,de=0,Ce,Me;for(O=0,L=x.length;O<L;++O){if(K=x.charCodeAt(O),K===39)++Y;else if(K===34)++de;else if(K===47&&l)R+="\\";else if(s.code.isLineTerminator(K)||K===92){R+=pt(K);continue}else if(!s.code.isIdentifierPartES5(K)&&(l&&K<32||!l&&!m&&(K<32||K>126))){R+=Ne(K,x.charCodeAt(O+1));continue}R+=String.fromCharCode(K)}if(Ce=!(g==="double"||g==="auto"&&de<Y),Me=Ce?"'":'"',!(Ce?Y:de))return Me+R+Me;for(x=R,R=Me,O=0,L=x.length;O<L;++O)K=x.charCodeAt(O),(K===39&&Ce||K===34&&!Ce)&&(R+="\\"),R+=String.fromCharCode(K);return R+Me}function sn(x){var R,O,L,K="";for(R=0,O=x.length;R<O;++R)L=x[R],K+=Array.isArray(L)?sn(L):L;return K}function Ze(x,R){if(!C)return Array.isArray(x)?sn(x):x;if(R==null){if(x instanceof n)return x;R={}}return R.loc==null?new n(null,null,C,x,R.name||null):new n(R.loc.start.line,R.loc.start.column,C===!0?R.loc.source||null:C,x,R.name||null)}function At(){return d||" "}function Ge(x,R){var O,L,K,Y;return O=Ze(x).toString(),O.length===0?[R]:(L=Ze(R).toString(),L.length===0?[x]:(K=O.charCodeAt(O.length-1),Y=L.charCodeAt(0),(K===43||K===45)&&K===Y||s.code.isIdentifierPartES5(K)&&s.code.isIdentifierPartES5(Y)||K===47&&Y===105?[x,At(),R]:s.code.isWhiteSpace(K)||s.code.isLineTerminator(K)||s.code.isWhiteSpace(Y)||s.code.isLineTerminator(Y)?[x,R]:[x,d,R]))}function ut(x){return[a,x]}function st(x){var R;R=a,a+=o,x(a),a=R}function dt(x){var R;for(R=x.length-1;R>=0&&!s.code.isLineTerminator(x.charCodeAt(R));--R);return x.length-1-R}function Qe(x,R){var O,L,K,Y,de,Ce,Me,He;for(O=x.split(/\r\n|[\r\n]/
|
|||
|
|
`)}function bt(x,R){if(x.type==="Line"){if(re(x.value))return"//"+x.value;var O="//"+x.value;return H||(O+=`
|
|||
|
|
`),O}return A.format.indent.adjustMultilineComment&&/[\n\r]/.test(x.value)?Qe("/*"+x.value+"*/",R):"/*"+x.value+"*/"}function Nn(x,R){var O,L,K,Y,de,Ce,Me,He,tt,Rt,an,bn,dn,Gr;if(x.leadingComments&&x.leadingComments.length>0){if(Y=R,H){for(K=x.leadingComments[0],R=[],He=K.extendedRange,tt=K.range,an=_.substring(He[0],tt[0]),Gr=(an.match(/\n/g)||[]).length,Gr>0?(R.push(me(`
|
|||
|
|
`,Gr)),R.push(ut(bt(K)))):(R.push(an),R.push(bt(K))),Rt=tt,O=1,L=x.leadingComments.length;O<L;O++)K=x.leadingComments[O],tt=K.range,bn=_.substring(Rt[1],tt[0]),Gr=(bn.match(/\n/g)||[]).length,R.push(me(`
|
|||
|
|
`,Gr)),R.push(ut(bt(K))),Rt=tt;dn=_.substring(tt[1],He[1]),Gr=(dn.match(/\n/g)||[]).length,R.push(me(`
|
|||
|
|
`,Gr))}else for(K=x.leadingComments[0],R=[],D&&x.type===e.Program&&x.body.length===0&&R.push(`
|
|||
|
|
`),R.push(bt(K)),re(Ze(R).toString())||R.push(`
|
|||
|
|
`),O=1,L=x.leadingComments.length;O<L;++O)K=x.leadingComments[O],Me=[bt(K)],re(Ze(Me).toString())||Me.push(`
|
|||
|
|
`),R.push(ut(Me));R.push(ut(Y))}if(x.trailingComments)if(H)K=x.trailingComments[0],He=K.extendedRange,tt=K.range,an=_.substring(He[0],tt[0]),Gr=(an.match(/\n/g)||[]).length,Gr>0?(R.push(me(`
|
|||
|
|
`,Gr)),R.push(ut(bt(K)))):(R.push(an),R.push(bt(K)));else for(de=!re(Ze(R).toString()),Ce=me(" ",dt(Ze([a,R,o]).toString())),O=0,L=x.trailingComments.length;O<L;++O)K=x.trailingComments[O],de?(O===0?R=[R,o]:R=[R,Ce],R.push(bt(K,Ce))):R=[R,ut(bt(K))],O!==L-1&&!re(Ze(R).toString())&&(R=[R,`
|
|||
|
|
`]);return R}function br(x,R,O){var L,K=0;for(L=x;L<R;L++)_[L]===`
|
|||
|
|
`&&K++;for(L=1;L<K;L++)O.push(p)}function Ut(x,R,O){return R<O?["(",x,")"]:x}function Or(x){var R,O,L;for(L=x.split(/\r\n|\n/),R=1,O=L.length;R<O;R++)L[R]=p+a+L[R];return L}function Pr(x,R){var O,L,K;return O=x[A.verbatim],typeof O=="string"?L=Ut(Or(O),t.Sequence,R):(L=Or(O.content),K=O.precedence!=null?O.precedence:t.Sequence,L=Ut(L,K,R)),Ze(L,x)}function Vt(){}Vt.prototype.maybeBlock=function(x,R){var O,L,K=this;return L=!A.comment||!x.leadingComments,x.type===e.BlockStatement&&L?[d,this.generateStatement(x,R)]:x.type===e.EmptyStatement&&L?";":(st(function(){O=[p,ut(K.generateStatement(x,R))]}),O)},Vt.prototype.maybeBlockSuffix=function(x,R){var O=re(Ze(R).toString());return x.type===e.BlockStatement&&(!A.comment||!x.leadingComments)&&!O?[R,d]:O?[R,a]:[R,p,a]};function cr(x){return Ze(x.name,x)}function Kr(x,R){return x.async?"async"+(R?At():d):""}function Jr(x){var R=x.generator&&!A.moz.starlessGenerator;return R?"*"+d:""}function ye(x){var R=x.value,O="";return R.async&&(O+=Kr(R,!x.computed)),R.generator&&(O+=Jr(R)?"*":""),O}Vt.prototype.generatePattern=function(x,R,O){return x.type===e.Identifier?cr(x):this.generateExpression(x,R,O)},Vt.prototype.generateFunctionParams=function(x){var R,O,L,K;if(K=!1,x.type===e.ArrowFunctionExpression&&!x.rest&&(!x.defaults||x.defaults.length===0)&&x.params.length===1&&x.params[0].type===e.Identifier)L=[Kr(x,!0),cr(x.params[0])];else{for(L=x.type===e.ArrowFunctionExpression?[Kr(x,!1)]:[],L.push("("),x.defaults&&(K=!0),R=0,O=x.params.length;R<O;++R)K&&x.defaults[R]?L.push(this.generateAssignment(x.params[R],x.defaults[R],"=",t.Assignment,ee)):L.push(this.generatePattern(x.params[R],t.Assignment,ee)),R+1<O&&L.push(","+d);x.rest&&(x.params.length&&L.push(","+d),L.push("..."),L.push(cr(x.rest))),L.push(")")}return L},Vt.prototype.generateFunctionBody=function(x){var R,O;return R=this.generateFunctionParams(x),x.type===e.ArrowFunctionExpression&&(R.push(d),R.push("=>")),x.expression?(R.push(d),O=this.generateExpression(x.body,t.Assignment,ee),O.toString().charAt(0)==="{"&&(O=["(",O,")"]),R.push(O)):R.push(this.maybeBlock(x.body,ge)),R},Vt.prototype.generateIterationForStatement=function(x,R,O){var L=["for"+(R.await?At()+"await":"")+d+"("],K=this;return st(function(){R.left.type===e.VariableDeclaration?st(function(){L.push(R.left.kind+At()),L.push(K.generateStatement(R.left.declarations[0],q))}):L.push(K.generateExpression(R.left,t.Call,ee)),L=Ge(L,x),L=[Ge(L,K.generateExpression(R.right,t.Assignment,ee)),")"]}),L.push(this.maybeBlock(R.body,O)),L},Vt.prototype.generatePropertyKey=function(x,R){var O=[];return R&&O.push("["),O.push(this.generateExpression(x,t.Assignment,ee)),R&&O.push("]"),O},Vt.prototype.generateAssignment=function(x,R,O,L,K){return t.Assignment<L&&(K|=I),Ut([this.generateExpression(x,t.Call,K),d+O+d,this.generateExpression(R,t.Assignment,K)],t.Assignment,L)},Vt.prototype.semicolon=function(x){return!E&&x&te?"":";"},Vt.Statement={BlockStatement:function(x,R){var O,L,K=["{",p],Y=this;return st(function(){x.body.length===0&&H&&(O=x.range,O[1]-O[0]>2&&(L=_.substring(O[0]+1,O[1]-1),L[0]===`
|
|||
|
|
`&&(K=["{"]),K.push(L)));var de,Ce,Me,He;for(He=xe,R&U&&(He|=se),de=0,Ce=x.body.length;de<Ce;++de)H&&(de===0&&(x.body[0].leadingComments&&(O=x.body[0].leadingComments[0].extendedRange,L=_.substring(O[0],O[1]),L[0]===`
|
|||
|
|
`&&(K=["{"])),x.body[0].leadingComments||br(x.range[0],x.body[0].range[0],K)),de>0&&!x.body[de-1].trailingComments&&!x.body[de].leadingComments&&br(x.body[de-1].range[1],x.body[de].range[0],K)),de===Ce-1&&(He|=te),x.body[de].leadingComments&&H?Me=Y.generateStatement(x.body[de],He):Me=ut(Y.generateStatement(x.body[de],He)),K.push(Me),re(Ze(Me).toString())||H&&de<Ce-1&&x.body[de+1].leadingComments||K.push(p),H&&de===Ce-1&&(x.body[de].trailingComments||br(x.body[de].range[1],x.range[1],K))}),K.push(ut("}")),K},BreakStatement:function(x,R){return x.label?"break "+x.label.name+this.semicolon(R):"break"+this.semicolon(R)},ContinueStatement:function(x,R){return x.label?"continue "+x.label.name+this.semicolon(R):"continue"+this.semicolon(R)},ClassBody:function(x,R){var O=["{",p],L=this;return st(function(K){var Y,de;for(Y=0,de=x.body.length;Y<de;++Y)O.push(K),O.push(L.generateExpression(x.body[Y],t.Sequence,ee)),Y+1<de&&O.push(p)}),re(Ze(O).toString())||O.push(p),O.push(a),O.push("}"),O},ClassDeclaration:function(x,R){var O,L;return O=["class"],x.id&&(O=Ge(O,this.generateExpression(x.id,t.Sequence,ee))),x.superClass&&(L=Ge("extends",this.generateExpression(x.superClass,t.Unary,ee)),O=Ge(O,L)),O.push(d),O.push(this.generateStatement(x.body,Ie)),O},DirectiveStatement:function(x,R){return A.raw&&x.raw?x.raw+this.semicolon(R):dr(x.directive)+this.semicolon(R)},DoWhileStatement:function(x,R){var O=Ge("do",this.maybeBlock(x.body,xe));return O=this.maybeBlockSuffix(x.body,O),Ge(O,["while"+d+"(",this.generateExpression(x.test,t.Sequence,ee),")"+this.semicolon(R)])},CatchClause:function(x,R){var O,L=this;return st(function(){var K;x.param?(O=["catch"+d+"(",L.generateExpression(x.param,t.Sequence,ee),")"],x.guard&&(K=L.generateExpression(x.guard,t.Sequence,ee),O.splice(2,0," if ",K))):O=["catch"]}),O.push(this.maybeBlock(x.body,xe)),O},DebuggerStatement:function(x,R){return"debugger"+this.semicolon(R)},EmptyStatement:function(x,R){return";"},ExportDefaultDeclaration:function(x,R){var O=["export"],L;return L=R&te?Ie:xe,O=Ge(O,"default"),z(x.declaration)?O=Ge(O,this.generateStatement(x.declaration,L)):O=Ge(O,this.generateExpression(x.declaration,t.Assignment,ee)+this.semicolon(R)),O},ExportNamedDeclaration:function(x,R){var O=["export"],L,K=this;return L=R&te?Ie:xe,x.declaration?Ge(O,this.generateStatement(x.declaration,L)):(x.specifiers&&(x.specifiers.length===0?O=Ge(O,"{"+d+"}"):x.specifiers[0].type===e.ExportBatchSpecifier?O=Ge(O,this.generateExpression(x.specifiers[0],t.Sequence,ee)):(O=Ge(O,"{"),st(function(Y){var de,Ce;for(O.push(p),de=0,Ce=x.specifiers.length;de<Ce;++de)O.push(Y),O.push(K.generateExpression(x.specifiers[de],t.Sequence,ee)),de+1<Ce&&O.push(","+p)}),re(Ze(O).toString())||O.push(p),O.push(a+"}")),x.source?O=Ge(O,["from"+d,this.generateExpression(x.source,t.Sequence,ee),this.semicolon(R)]):O.push(this.semicolon(R))),O)},ExportAllDeclaration:function(x,R){return["export"+d,"*"+d,"from"+d,this.generateExpression(x.source,t.Sequence,ee),this.semicolon(R)]},ExpressionStatement:function(x,R){var O,L;function K(Ce){var Me;return Ce.slice(0,5)!=="class"?!1:(Me=Ce.charCodeAt(5),Me===123||s.code.isWhiteSpace(Me)||s.code.isLineTerminator(Me))}function Y(Ce){var Me;return Ce.slice(0,8)!=="function"?!1:(Me=Ce.charCodeAt(8),Me===40||s.code.isWhiteSpace(Me)||Me===42||s.code.isLineTerminator(Me))}function de(Ce){var Me,He,tt;if(Ce.slice(0,5)!=="async"||!s.code.isWhiteSpace(Ce.charCodeAt(5)))return!1;for(He=6,tt=Ce.length;He<tt&&s.code.isWhiteSpace(Ce.charCodeAt(He));++He);return He===tt||Ce.slice(He,He+8)!=="function"?!1:(Me=Ce.charCodeAt(He+8),Me===40||s.code.isWhiteSpace(Me)||Me===42||s.code.isLineTerminator(Me))}return O=[this.generateExpression(x.expression,t.Sequence,ee)],L=Ze(O).toString(),L.charCodeAt(0)===123||K(L)||Y(L)||de(L)||b&&R&se&&x.expression.type===e.Literal&&typeof x.expression.value=="string"?O=["(",O,")"+this.semicolon(R)]:O.push(this.semicolon(R)),O},ImportDeclaration:function(x,R){var O,L,K=this;return x.specifiers.length===0?["import",d,this.generateExpression(x.source,t.Sequence,ee),this.semicolon(R)]:(O=["impo
|
|||
|
|
`),O.push(ut(Ce.generateStatement(Y,de)))):(O.push(At()),O.push(Ce.generateStatement(Y,de))),L=1,K=x.declarations.length;L<K;++L)Y=x.declarations[L],A.comment&&Y.leadingComments?(O.push(","+p),O.push(ut(Ce.generateStatement(Y,de)))):(O.push(","+d),O.push(Ce.generateStatement(Y,de)))}return x.declarations.length>1?st(Me):Me(),O.push(this.semicolon(R)),O},ThrowStatement:function(x,R){return[Ge("throw",this.generateExpression(x.argument,t.Sequence,ee)),this.semicolon(R)]},TryStatement:function(x,R){var O,L,K,Y;if(O=["try",this.maybeBlock(x.block,xe)],O=this.maybeBlockSuffix(x.block,O),x.handlers)for(L=0,K=x.handlers.length;L<K;++L)O=Ge(O,this.generateStatement(x.handlers[L],xe)),(x.finalizer||L+1!==K)&&(O=this.maybeBlockSuffix(x.handlers[L].body,O));else{for(Y=x.guardedHandlers||[],L=0,K=Y.length;L<K;++L)O=Ge(O,this.generateStatement(Y[L],xe)),(x.finalizer||L+1!==K)&&(O=this.maybeBlockSuffix(Y[L].body,O));if(x.handler)if(Array.isArray(x.handler))for(L=0,K=x.handler.length;L<K;++L)O=Ge(O,this.generateStatement(x.handler[L],xe)),(x.finalizer||L+1!==K)&&(O=this.maybeBlockSuffix(x.handler[L].body,O));else O=Ge(O,this.generateStatement(x.handler,xe)),x.finalizer&&(O=this.maybeBlockSuffix(x.handler.body,O))}return x.finalizer&&(O=Ge(O,["finally",this.maybeBlock(x.finalizer,xe)])),O},SwitchStatement:function(x,R){var O,L,K,Y,de,Ce=this;if(st(function(){O=["switch"+d+"(",Ce.generateExpression(x.discriminant,t.Sequence,ee),")"+d+"{"+p]}),x.cases)for(de=xe,K=0,Y=x.cases.length;K<Y;++K)K===Y-1&&(de|=te),L=ut(this.generateStatement(x.cases[K],de)),O.push(L),re(Ze(L).toString())||O.push(p);return O.push(ut("}")),O},SwitchCase:function(x,R){var O,L,K,Y,de,Ce=this;return st(function(){for(x.test?O=[Ge("case",Ce.generateExpression(x.test,t.Sequence,ee)),":"]:O=["default:"],K=0,Y=x.consequent.length,Y&&x.consequent[0].type===e.BlockStatement&&(L=Ce.maybeBlock(x.consequent[0],xe),O.push(L),K=1),K!==Y&&!re(Ze(O).toString())&&O.push(p),de=xe;K<Y;++K)K===Y-1&&R&te&&(de|=te),L=ut(Ce.generateStatement(x.consequent[K],de)),O.push(L),K+1!==Y&&!re(Ze(L).toString())&&O.push(p)}),O},IfStatement:function(x,R){var O,L,K,Y=this;return st(function(){O=["if"+d+"(",Y.generateExpression(x.test,t.Sequence,ee),")"]}),K=R&te,L=xe,K&&(L|=te),x.alternate?(O.push(this.maybeBlock(x.consequent,xe)),O=this.maybeBlockSuffix(x.consequent,O),x.alternate.type===e.IfStatement?O=Ge(O,["else ",this.generateStatement(x.alternate,L)]):O=Ge(O,Ge("else",this.maybeBlock(x.alternate,L)))):O.push(this.maybeBlock(x.consequent,L)),O},ForStatement:function(x,R){var O,L=this;return st(function(){O=["for"+d+"("],x.init?x.init.type===e.VariableDeclaration?O.push(L.generateStatement(x.init,q)):(O.push(L.generateExpression(x.init,t.Sequence,he)),O.push(";")):O.push(";"),x.test&&(O.push(d),O.push(L.generateExpression(x.test,t.Sequence,ee))),O.push(";"),x.update&&(O.push(d),O.push(L.generateExpression(x.update,t.Sequence,ee))),O.push(")")}),O.push(this.maybeBlock(x.body,R&te?Ie:xe)),O},ForInStatement:function(x,R){return this.generateIterationForStatement("in",x,R&te?Ie:xe)},ForOfStatement:function(x,R){return this.generateIterationForStatement("of",x,R&te?Ie:xe)},LabeledStatement:function(x,R){return[x.label.name+":",this.maybeBlock(x.body,R&te?Ie:xe)]},Program:function(x,R){var O,L,K,Y,de;for(Y=x.body.length,O=[D&&Y>0?`
|
|||
|
|
`:""],de=w,K=0;K<Y;++K)!D&&K===Y-1&&(de|=te),H&&(K===0&&(x.body[0].leadingComments||br(x.range[0],x.body[K].range[0],O)),K>0&&!x.body[K-1].trailingComments&&!x.body[K].leadingComments&&br(x.body[K-1].range[1],x.body[K].range[0],O)),L=ut(this.generateStatement(x.body[K],de)),O.push(L),K+1<Y&&!re(Ze(L).toString())&&(H&&x.body[K+1].leadingComments||O.push(p)),H&&K===Y-1&&(x.body[K].trailingComments||br(x.body[K].range[1],x.range[1],O));return O},FunctionDeclaration:function(x,R){return[Kr(x,!0),"function",Jr(x)||At(),x.id?cr(x.id):"",this.generateFunctionBody(x)]},ReturnStatement:function(x,R){return x.argument?[Ge("return",this.generateExpression(x.argument,t.Sequence,ee)),this.semicolon(R)]:["return"+this.semicolon(R)]},WhileStatement:function(x,R){var O,L=this;return st(function(){O=["while"+d+"(",L.generateExpression(x.test,t.Sequence,ee),")"]}),O.push(this.maybeBlock(x.body,R&te?Ie:xe)),O},WithStatement:function(x,R){var O,L=this;return st(function(){O=["with"+d+"(",L.generateExpression(x.object,t.Sequence,ee),")"]}),O.push(this.maybeBlock(x.body,R&te?Ie:xe)),O}},Se(Vt.prototype,Vt.Statement),Vt.Expression={SequenceExpression:function(x,R,O){var L,K,Y;for(t.Sequence<R&&(O|=I),L=[],K=0,Y=x.expressions.length;K<Y;++K)L.push(this.generateExpression(x.expressions[K],t.Assignment,O)),K+1<Y&&L.push(","+d);return Ut(L,t.Sequence,R)},AssignmentExpression:function(x,R,O){return this.generateAssignment(x.left,x.right,x.operator,R,O)},ArrowFunctionExpression:function(x,R,O){return Ut(this.generateFunctionBody(x),t.ArrowFunction,R)},ConditionalExpression:function(x,R,O){return t.Conditional<R&&(O|=I),Ut([this.generateExpression(x.test,t.LogicalOR,O),d+"?"+d,this.generateExpression(x.consequent,t.Assignment,O),d+":"+d,this.generateExpression(x.alternate,t.Assignment,O)],t.Conditional,R)},LogicalExpression:function(x,R,O){return this.BinaryExpression(x,R,O)},BinaryExpression:function(x,R,O){var L,K,Y,de,Ce,Me;return de=r[x.operator],K=x.operator==="**"?t.Postfix:de,Y=x.operator==="**"?de:de+1,de<R&&(O|=I),Ce=this.generateExpression(x.left,K,O),Me=Ce.toString(),Me.charCodeAt(Me.length-1)===47&&s.code.isIdentifierPartES5(x.operator.charCodeAt(0))?L=[Ce,At(),x.operator]:L=Ge(Ce,x.operator),Ce=this.generateExpression(x.right,Y,O),x.operator==="/"&&Ce.toString().charAt(0)==="/"||x.operator.slice(-1)==="<"&&Ce.toString().slice(0,3)==="!--"?(L.push(At()),L.push(Ce)):L=Ge(L,Ce),x.operator==="in"&&!(O&I)?["(",L,")"]:Ut(L,de,R)},CallExpression:function(x,R,O){var L,K,Y;for(L=[this.generateExpression(x.callee,t.Call,Q)],L.push("("),K=0,Y=x.arguments.length;K<Y;++K)L.push(this.generateExpression(x.arguments[K],t.Assignment,ee)),K+1<Y&&L.push(","+d);return L.push(")"),O&J?Ut(L,t.Call,R):["(",L,")"]},NewExpression:function(x,R,O){var L,K,Y,de,Ce;if(K=x.arguments.length,Ce=O&ne&&!y&&K===0?Ae:ue,L=Ge("new",this.generateExpression(x.callee,t.New,Ce)),!(O&ne)||y||K>0){for(L.push("("),Y=0,de=K;Y<de;++Y)L.push(this.generateExpression(x.arguments[Y],t.Assignment,ee)),Y+1<de&&L.push(","+d);L.push(")")}return Ut(L,t.New,R)},MemberExpression:function(x,R,O){var L,K;return L=[this.generateExpression(x.object,t.Call,O&J?Q:ue)],x.computed?(L.push("["),L.push(this.generateExpression(x.property,t.Sequence,O&J?ee:Ae)),L.push("]")):(x.object.type===e.Literal&&typeof x.object.value=="number"&&(K=Ze(L).toString(),K.indexOf(".")<0&&!/[eExX]/.test(K)&&s.code.isDecimalDigit(K.charCodeAt(K.length-1))&&!(K.length>=2&&K.charCodeAt(0)===48)&&L.push(" ")),L.push("."),L.push(cr(x.property))),Ut(L,t.Member,R)},MetaProperty:function(x,R,O){var L;return L=[],L.push(typeof x.meta=="string"?x.meta:cr(x.meta)),L.push("."),L.push(typeof x.property=="string"?x.property:cr(x.property)),Ut(L,t.Member,R)},UnaryExpression:function(x,R,O){var L,K,Y,de,Ce;return K=this.generateExpression(x.argument,t.Unary,ee),d===""?L=Ge(x.operator,K):(L=[x.operator],x.operator.length>2?L=Ge(L,K):(de=Ze(L).toString(),Ce=de.charCodeAt(de.length-1),Y=K.toString().charCodeAt(0),((Ce===43||Ce===45)&&Ce===Y||s.code.isIdentifierPartES5(Ce)&&s.code.isIdentifierPartES5(Y))&&L.push(At()),L.push(K))),Ut(L,t.Unar
|
|||
|
|
`&&(O=C?Ze(O).replaceRight(/\s+$/,""):L.replace(/\s+$/,"")),Ze(O,x)};function Ee(x){var R;if(R=new Vt,z(x))return R.generateStatement(x,xe);if(N(x))return R.generateExpression(x,t.Sequence,ee);throw new Error("Unknown node type: "+x.type)}function Oe(x,R){var O=$(),L,K;return R!=null?(typeof R.indent=="string"&&(O.format.indent.style=R.indent),typeof R.base=="number"&&(O.format.indent.base=R.base),R=De(O,R),o=R.format.indent.style,typeof R.base=="string"?a=R.base:a=me(o,R.format.indent.base)):(R=O,o=R.format.indent.style,a=me(o,R.format.indent.base)),l=R.format.json,h=R.format.renumber,c=l?!1:R.format.hexadecimal,g=l?"double":R.format.quotes,m=R.format.escapeless,p=R.format.newline,d=R.format.space,R.format.compact&&(p=d=o=a=""),y=R.format.parentheses,E=R.format.semicolons,D=R.format.safeConcatenation,b=R.directive,F=l?null:R.parse,C=R.sourceMap,_=R.sourceCode,H=R.format.preserveBlankLines&&_!==null,A=R,C&&(ya.browser?n=global.sourceMap.SourceNode:n=tk().SourceNode),L=Ee(x),C?(K=L.toStringWithSourceMap({file:R.file,sourceRoot:R.sourceMapRoot}),R.sourceContent&&K.map.setSourceContent(R.sourceMap,R.sourceContent),R.sourceMapWithCode?K:K.map.toString()):(K={code:L.toString(),map:null},R.sourceMapWithCode?K:K.code)}B={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},G=$().format,ya.version=nk().version,ya.generate=Oe,ya.attachComments=i.attachComments,ya.Precedence=De({},t),ya.browser=!1,ya.FORMAT_MINIFY=B,ya.FORMAT_DEFAULTS=G})()});var sk=T((ch,zb)=>{(function(t,r){typeof ch=="object"&&typeof zb=="object"?zb.exports=r():typeof define=="function"&&define.amd?define([],r):typeof ch=="object"?ch.esprima=r():t.esprima=r()})(ch,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(3),s=r(8),a=r(15);function o(m,p,d){var y=null,E=function(B,G){d&&d(B,G),y&&y.visit(B,G)},D=typeof d=="function"?E:null,b=!1;if(p){b=typeof p.comment=="boolean"&&p.comment;var A=typeof p.attachComment=="boolean"&&p.attachComment;(b||A)&&(y=new n.CommentHandler,y.attach=A,p.comment=!0,D=E)}var F=!1;p&&typeof p.sourceType=="string"&&(F=p.sourceType==="module");var C;p&&typeof p.jsx=="boolean"&&p.jsx?C=new i.JSXParser(m,p,D):C=new s.Parser(m,p,D);var _=F?C.parseModule():C.parseScript(),H=_;return b&&y&&(H.comments=y.comments),C.config.tokens&&(H.tokens=C.tokens),C.config.tolerant&&(H.errors=C.errorHandler.errors),H}t.parse=o;function l(m,p,d){var y=p||{};return y.sourceType="module",o(m,y,d)}t.parseModule=l;function h(m,p,d){var y=p||{};return y.sourceType="script",o(m,y,d)}t.parseScript=h;function c(m,p,d){var y=new a.Tokenizer(m,p),E;E=[];try{for(;;){var D=y.getNextToken();if(!D)break;d&&(D=d(D)),E.push(D)}}catch(b){y.errorHandler.tolerate(b)}return y.errorHandler.tolerant&&(E.errors=y.errors()),E}t.tokenize=c;var g=r(2);t.Syntax=g.Syntax,t.version="4.0.1"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=function(){function s(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return s.prototype.insertInnerComments=function(a,o){if(a.type===n.Syntax.BlockStatement&&a.body.length===0){for(var l=[],h=this.leading.length-1;h>=0;--h){var c=this.leading[h];o.end.offset>=c.start&&(l.unshift(c.comment),this.leading.splice(h,1),this.trailing.splice(h,1))}l.length&&(a.innerComments=l)}},s.prototype.findTrailingComments=function(a){var o=[];if(this.trailing.length>0){for(var l=this.trailing.length-1;l>=0;--l){var h=this.trailing[l];h.start>=a.end.offset&&o.unshift(h.comment)}return this.trailing.length=0,o}var c=this.stack[this.stack.length-1];if(c&&c.node.trailingComments){var g=c.node.trailingComments[0];g&&g.range[0]>=a.end.offset&&(o=c.node.trailingComments,delete c.node.trailingComments)}return o},s.prototype.findLeadingComments=function(a){for(var o=[],l;this.stac
|
|||
|
|
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var b={type:101,value:E,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index};return E.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(b)),b},d.prototype.peekJSXToken=function(){var y=this.scanner.saveState();this.scanner.scanComments();var E=this.lexJSX();return this.scanner.restoreState(y),E},d.prototype.expectJSX=function(y){var E=this.nextJSXToken();(E.type!==7||E.value!==y)&&this.throwUnexpectedToken(E)},d.prototype.matchJSX=function(y){var E=this.peekJSXToken();return E.type===7&&E.value===y},d.prototype.parseJSXIdentifier=function(){var y=this.createJSXNode(),E=this.nextJSXToken();return E.type!==100&&this.throwUnexpectedToken(E),this.finalize(y,new s.JSXIdentifier(E.value))},d.prototype.parseJSXElementName=function(){var y=this.createJSXNode(),E=this.parseJSXIdentifier();if(this.matchJSX(":")){var D=E;this.expectJSX(":");var b=this.parseJSXIdentifier();E=this.finalize(y,new s.JSXNamespacedName(D,b))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var A=E;this.expectJSX(".");var F=this.parseJSXIdentifier();E=this.finalize(y,new s.JSXMemberExpression(A,F))}return E},d.prototype.parseJSXAttributeName=function(){var y=this.createJSXNode(),E,D=this.parseJSXIdentifier();if(this.matchJSX(":")){var b=D;this.expectJSX(":");var A=this.parseJSXIdentifier();E=this.finalize(y,new s.JSXNamespacedName(b,A))}else E=D;return E},d.prototype.parseJSXStringLiteralAttribute=function(){var y=this.createJSXNode(),E=this.nextJSXToken();E.type!==8&&this.throwUnexpectedToken(E);var D=this.getTokenRaw(E);return this.finalize(y,new o.Literal(E.value,D))},d.prototype.parseJSXExpressionAttribute=function(){var y=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var E=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(y,new s.JSXExpressionContainer(E))},d.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},d.prototype.parseJSXNameValueAttribute=function(){var y=this.createJSXNode(),E=this.parseJSXAttributeName(),D=null;return this.matchJSX("=")&&(this.expectJSX("="),D=this.parseJSXAttributeValue()),this.finalize(y,new s.JSXAttribute(E,D))},d.prototype.parseJSXSpreadAttribute=function(){var y=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var E=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(y,new s.JSXSpreadAttribute(E))},d.prototype.parseJSXAttributes=function(){for(var y=[];!this.matchJSX("/")&&!this.matchJSX(">");){var E=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();y.push(E)}return y},d.prototype.parseJSXOpeningElement=function(){var y=this.createJSXNode();this.expectJSX("<");var E=this.parseJSXElementName(),D=this.parseJSXAttributes(),b=this.matchJSX("/");return b&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(y,new s.JSXOpeningElement(E,b,D))},d.prototype.parseJSXBoundaryElement=function(){var y=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var E=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(y,new s.JSXClosingElement(E))}var D=this.parseJSXElementName(),b=this.parseJSXAttributes(),A=this.matchJSX("/");return A&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(y,new s.JSXOpeningElement(D,A,b))},d.prototype.parseJSXEmptyExpression=function(){var y=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(y,new s.JSXEmptyExpression)},d.prototype.parseJSXExpressionContainer=func
|
|||
|
|
`;break;case"r":p+="\r";break;case"t":p+=" ";break;case"b":p+="\b";break;case"f":p+="\f";break;case"v":p+="\v";break;case"8":case"9":p+=d,this.tolerateUnexpectedToken();break;default:if(d&&i.Character.isOctalDigit(d.charCodeAt(0))){var D=this.octalToDecimal(d);m=D.octal||m,p+=String.fromCharCode(D.code)}else p+=d;break}else++this.lineNumber,d==="\r"&&this.source[this.index]===`
|
|||
|
|
`&&++this.index,this.lineStart=this.index;else{if(i.Character.isLineTerminator(d.charCodeAt(0)))break;p+=d}}return g!==""&&(this.index=c,this.throwUnexpectedToken()),{type:8,value:p,octal:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},h.prototype.scanTemplate=function(){var c="",g=!1,m=this.index,p=this.source[m]==="`",d=!1,y=2;for(++this.index;!this.eof();){var E=this.source[this.index++];if(E==="`"){y=1,d=!0,g=!0;break}else if(E==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,g=!0;break}c+=E}else if(E==="\\")if(E=this.source[this.index++],i.Character.isLineTerminator(E.charCodeAt(0)))++this.lineNumber,E==="\r"&&this.source[this.index]===`
|
|||
|
|
`&&++this.index,this.lineStart=this.index;else switch(E){case"n":c+=`
|
|||
|
|
`;break;case"r":c+="\r";break;case"t":c+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,c+=this.scanUnicodeCodePointEscape();else{var D=this.index,b=this.scanHexEscape(E);b!==null?c+=b:(this.index=D,c+=E)}break;case"x":var A=this.scanHexEscape(E);A===null&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),c+=A;break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="\v";break;default:E==="0"?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral),c+="\0"):i.Character.isOctalDigit(E.charCodeAt(0))?this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral):c+=E;break}else i.Character.isLineTerminator(E.charCodeAt(0))?(++this.lineNumber,E==="\r"&&this.source[this.index]===`
|
|||
|
|
`&&++this.index,this.lineStart=this.index,c+=`
|
|||
|
|
`):c+=E}return g||this.throwUnexpectedToken(),p||this.curlyStack.pop(),{type:10,value:this.source.slice(m+1,this.index-y),cooked:c,head:p,tail:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},h.prototype.testRegExp=function(c,g){var m="\uFFFF",p=c,d=this;g.indexOf("u")>=0&&(p=p.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(y,E,D){var b=parseInt(E||D,16);return b>1114111&&d.throwUnexpectedToken(s.Messages.InvalidRegExp),b<=65535?String.fromCharCode(b):m}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m));try{RegExp(p)}catch(y){this.throwUnexpectedToken(s.Messages.InvalidRegExp)}try{return new RegExp(c,g)}catch(y){return null}},h.prototype.scanRegExpBody=function(){var c=this.source[this.index];n.assert(c==="/","Regular expression literal must start with a slash");for(var g=this.source[this.index++],m=!1,p=!1;!this.eof();)if(c=this.source[this.index++],g+=c,c==="\\")c=this.source[this.index++],i.Character.isLineTerminator(c.charCodeAt(0))&&this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),g+=c;else if(i.Character.isLineTerminator(c.charCodeAt(0)))this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);else if(m)c==="]"&&(m=!1);else if(c==="/"){p=!0;break}else c==="["&&(m=!0);return p||this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),g.substr(1,g.length-2)},h.prototype.scanRegExpFlags=function(){for(var c="",g="";!this.eof();){var m=this.source[this.index];if(!i.Character.isIdentifierPart(m.charCodeAt(0)))break;if(++this.index,m==="\\"&&!this.eof())if(m=this.source[this.index],m==="u"){++this.index;var p=this.index,d=this.scanHexEscape("u");if(d!==null)for(g+=d,c+="\\u";p<this.index;++p)c+=this.source[p];else this.index=p,g+="u",c+="\\u";this.tolerateUnexpectedToken()}else c+="\\",this.tolerateUnexpectedToken();else g+=m,c+=m}return g},h.prototype.scanRegExp=function(){var c=this.index,g=this.scanRegExpBody(),m=this.scanRegExpFlags(),p=this.testRegExp(g,m);return{type:9,value:"",pattern:g,flags:m,regex:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},h.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var c=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(c)?this.scanIdentifier():c===40||c===41||c===59?this.scanPunctuator():c===39||c===34?this.scanStringLiteral():c===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(c)?this.scanNumericLiteral():c===96||c===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():c>=55296&&c<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},h}();t.Scanner=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THOR
|
|||
|
|
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),TO(t.onToken)){var n=t.onToken;t.onToken=function(i){return n.push(i)}}return TO(t.onComment)&&(t.onComment=Qle(t,t.onComment)),t}function Qle(e,t){return function(r,n,i,s,a,o){var l={type:r?"Block":"Line",value:n,start:i,end:s};e.locations&&(l.loc=new vh(this,a,o)),e.ranges&&(l.range=[i,s]),t.push(l)}}var Eh=1,lc=2,DD=4,OO=8,PO=16,NO=32,CD=64,RO=128,Ah=256,FD=Eh|lc|Ah;function xD(e,t){return lc|(e?DD:0)|(t?OO:0)}var n1=0,SD=1,Ea=2,MO=3,LO=4,qO=5,_r=function(t,r,n){this.options=t=ece(t),this.sourceFile=t.sourceFile,this.keywords=eo(Wle[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=yD[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=eo(i);var s=(i?i+" ":"")+yD.strict;this.reservedWordsStrict=eo(s),this.reservedWordsStrictBind=eo(s+" "+yD.strictBind),this.input=String(r),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
|
|||
|
|
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Si).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=V.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Eh),this.regexpState=null,this.privateNameStack=[]},Gs={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};_r.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Gs.inFunction.get=function(){return(this.currentVarScope().flags&lc)>0};Gs.inGenerator.get=function(){return(this.currentVarScope().flags&OO)>0&&!this.currentVarScope().inClassFieldInit};Gs.inAsync.get=function(){return(this.currentVarScope().flags&DD)>0&&!this.currentVarScope().inClassFieldInit};Gs.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Ah)return!1;if(t.flags&lc)return(t.flags&DD)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Gs.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&CD)>0||r||this.options.allowSuperOutsideMethod};Gs.allowDirectSuper.get=function(){return(this.currentThisScope().flags&RO)>0};Gs.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Gs.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(lc|Ah))>0||r};Gs.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ah)>0};_r.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n=this,i=0;i<t.length;i++)n=t[i](n);return n};_r.parse=function(t,r){return new this(r,t).parse()};_r.parseExpressionAt=function(t,r,n){var i=new this(n,t,r);return i.nextToken(),i.parseExpression()};_r.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(_r.prototype,Gs);var $n=_r.prototype,tce=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;$n.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Yi.lastIndex=e,e+=Yi.exec(this.input)[0].length;var t=tce.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Yi.lastIndex=e+t[0].length;var r=Yi.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||Si.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}e+=t[0].length,Yi.lastIndex=e,e+=Yi.exec(this.input)[0].length,this.input[e]===";"&&e++}};$n.eat=function(e){return this.type===e?(this.next(),!0):!1};$n.isContextual=function(e){return this.type===V.name&&this.value===e&&!this.containsEsc};$n.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};$n.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};$n.canInsertSemicolon=function(){return this.type===V.eof||this.type===V.braceR||Si.test(this.input.slice(this.lastTokEnd,this.start))};$n.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};$n.semicolon=function(){!this.eat(V.semi)&&!this.insertSemicolon()&&this.unexpected()};$n.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokS
|
|||
|
|
`),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|||
|
|
`),cooked:this.value},this.next(),r.tail=this.type===V.backQuote,this.finishNode(r,"TemplateElement")};lt.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===V.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(V.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(V.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};lt.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===V.name||this.type===V.num||this.type===V.string||this.type===V.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===V.star)&&!Si.test(this.input.slice(this.lastTokEnd,this.start))};lt.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(V.braceR);){if(n)n=!1;else if(this.expect(V.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(V.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};lt.parseProperty=function(e,t){var r=this.startNode(),n,i,s,a;if(this.options.ecmaVersion>=9&&this.eat(V.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===V.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===V.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(s=this.start,a=this.startLoc),e||(n=this.eat(V.star)));var o=this.containsEsc;return this.parsePropertyName(r),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(r)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(V.star),this.parsePropertyName(r)):i=!1,this.parsePropertyValue(r,e,n,i,s,a,t,o),this.finishNode(r,"Property")};lt.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};lt.parsePropertyValue=function(e,t,r,n,i,s,a,o){(r||n)&&this.type===V.colon&&this.unexpected(),this.eat(V.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===V.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n)):!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==V.comma&&this.type!==V.braceR&&this.type!==V.eq?((r||n)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===V.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};lt.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(V.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(V.bracketR),e.key;e.computed=!1}return e.key=this.type===V.num||this.type===V.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};lt.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};lt.parseMethod=function(e,t,r){var n=this.startNode
|
|||
|
|
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};_t.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(V.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|||
|
|
`&&++this.pos;case`
|
|||
|
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};_t.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|||
|
|
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return to(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Au(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};_t.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};_t.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Eu(i,n))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?zs:Eu)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=to(a),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};_t.readWord=function(){var e=this.readWord1(),t=V.name;return this.keywords.test(e)&&(t=t1[e]),this.finishToken(t,e)};var hP="8.12.1";_r.acorn={Parser:_r,version:hP,defaultOptions:r1,Position:uc,SourceLocation:vh,getLineInfo:bD,Node:Dh,TokenType:Pt,tokTypes:V,keywordTypes:t1,TokContext:Qi,tokContexts:ur,isIdentifierChar:Eu,isIdentifierStart:zs,Token:l1,isNewLine:Au,lineBreak:Si,lineBreakG:wO,nonASCIIwhitespace:AD};function Fce(e,t){return _r.parse(e,t)}function xce(e,t,r){return _r.parseExpressionAt(e,t,r)}function Sce(e,t){return _r.tokenizer(e,t)}});var mP=T(wce=>{at(wce);ot(wce,{ancestor:()=>Bce,base:()=>qe,findNodeAfter:()=>Nce,findNodeAround:()=>Pce,findNodeAt:()=>Oce,findNodeBefore:()=>Rce,full:()=>Ice,fullAncestor:()=>kce,make:()=>dP,recursive:()=>Tce,simple:()=>_ce});function _ce(e,t,r,n,i){r||(r=qe),function s(a,o,l){var h=l||a.type;r[h](a,o,s),t[h]&&t[h](a,o)}(e,n,i)}function Bce(e,t,r,n,i){var s=[];r||(r=qe),function a(o,l,h){var c=h||o.type,g=o!==s[s.length-1];g&&s.push(o),r[c](o,l,a),t[c]&&t[c](o,l||s,s),g&&s.pop()}(e,n,i)}function Tce(e,t,r,n,i){var s=r?dP(r,n||void 0):n;(function a(o,l,h){s[h||o.type](o,l,a)})(e,t,i)}function c1(e){return typeof e=="string"?function(t){return t===e}:e||function(){return!0}}var bu=function(t,r){this.node=t,this.state=r};function Ice(e,t,r,n,i){r||(r=qe);var s;(function a(o,l,h){var c=h||o.type;r[c](o,l,a),s!==o&&(t(o,l,c),s=o)})(e,n,i)}function kce(e,t,r,n){r||(r=qe);var i=[],s;(function a(o,l,h){var c=h||o.type,g=o!==i[i.length-1];g&&i.push(o),r[c](o,l,a),s!==o&&(t(o,l||i,i,c),s=o),g&&i.pop()})(e,n)}function Oce(e,t,r,n,i,s){i||(i=qe),n=c1(n);try{(function a(o,l,h){var c=h||o.type;if((t==null||o.start<=t)&&(r==null||o.end>=r)&&i[c](o,l,a),(t==null||o.start===t)&&(r==null||o.end===r)&&n(c,o))throw new bu(o,l)})(e,s)}catch(a){if(a instanceof bu)return a;throw a}}function Pce(e,t,r,n,i){r=c1(r),n||(n=qe);try{(function s(a,o,l){var h=l||a.type;if(!(a.start>t||a.end<t)&&(n[h](a,o,s),r(h,a)))throw new bu(a,o)})(e,i)}catch(s){if(s instanceof bu)return s;throw s}}function Nce(e,t,r,n,i){r=c1(r),n||(n=qe);try{(function s(a,o,l){if(!(a.end<t)){var h=l||a.type;if(a.start>=t&&r(h,a))throw new bu(a,o);n[h](a,o,s)}})(e,i)}catch(s){if(s instanceof bu)return s;throw s}}function Rce(e,t,r,n,i){r=c1(r),n||(n=qe);var s;return function a(o,l,h){if(!(o.start>t)){var c=h||o.type;o.end<=t&&(
|
|||
|
|
${c}
|
|||
|
|
${g}
|
|||
|
|
|
|||
|
|
${h.stack}`,h}function Uce(e,t,r,n,i){let s,a;if(e===null){if(s=t,!/\b(?:catch|import|async)\b/.test(s))return{__proto__:null,code:s,hasAsync:!1}}else s=r?"(async function":"(function",n&&(s+="*"),s+=" anonymous(",s+=e,a=s.length,s+=`
|
|||
|
|
) {
|
|||
|
|
`,s+=t,s+=`
|
|||
|
|
})`;let o=new Mce({__proto__:null,ecmaVersion:2022,allowAwaitOutsideFunction:e===null&&r,allowReturnOutsideFunction:e===null},s),l;try{l=o.parse()}catch(D){if(D instanceof SyntaxError&&D.pos!==void 0){let b=D.message,A=b.match(/^(.*) \(\d+:\d+\)$/);A&&(b=A[1]),D=gP(b,s,i,D.pos,o)}throw D}if(e!==null){let D=OD(l,"Program").body;if(D.length!==1)throw new SyntaxError("Single function literal required");let b=D[0];if(b.type!=="ExpressionStatement")throw new SyntaxError("Single function literal required");let A=b.expression;if(A.type!=="FunctionExpression")throw new SyntaxError("Single function literal required");if(A.body.start!==a+3)throw new SyntaxError("Unexpected end of arg string")}let h=[],c=!1,g=-100,m=100,p,d="VM2_INTERNAL_TMPNAME";if(jce(l,(D,b,A)=>{A==="Function"&&D.async&&(c=!0);let F=D.type;if(F==="CatchClause"){let C=D.param;if(C)if(C.type==="Identifier"){let _=OD(C,"Identifier").name,H=OD(D.body,"BlockStatement");H.body.length>0&&h.push({__proto__:null,pos:H.body[0].start,order:g,coder:()=>`${_}=${fc}.handleException(${_});`})}else h.push({__proto__:null,pos:D.start,order:m,coder:()=>`catch(${d}){${d}=${fc}.handleException(${d});try{throw ${d};}`}),h.push({__proto__:null,pos:D.body.end,order:g,coder:()=>"}"})}else F==="WithStatement"?(h.push({__proto__:null,pos:D.object.start,order:g,coder:()=>fc+".wrapWith("}),h.push({__proto__:null,pos:D.object.end,order:m,coder:()=>")"})):F==="Identifier"?D.name===fc?(p===void 0||p.start>D.start)&&(p=D):D.name.startsWith(d)&&(d=D.name+"_UNIQUE"):F==="ImportExpression"&&h.push({__proto__:null,pos:D.start,order:m,coder:()=>fc+"."})}),p)throw gP("Use of internal vm2 state variable",s,i,p.start,{__proto__:null,start:p.start,end:p.end});if(h.length===0)return{__proto__:null,code:s,hasAsync:c};h.sort((D,b)=>D.pos==b.pos?D.order-b.order:D.pos-b.pos);let y="",E=0;for(let D=0;D<h.length;D++){let b=h[D];y+=s.substring(E,b.pos)+b.coder(),E=b.pos}return y+=s.substring(E),{__proto__:null,code:y,hasAsync:c}}kD.INTERNAL_STATE_NAME=fc;kD.transformer=Uce});var hc=T(Fh=>{"use strict";var{Script:Vce}=require("vm"),{lookupCompiler:Hce,removeShebang:zce}=gh(),{transformer:Gce}=f1(),Wce=Object.defineProperties,PD="(function (exports, require, module, __filename, __dirname) { ",yP=PD+'"use strict"; ',ND=`
|
|||
|
|
});`,vP=class{constructor(t,r){let n=`${t}`,i,s;arguments.length===2?typeof r=="object"?(s=r||{__proto__:null},i=s.filename):(s={__proto__:null},i=r):arguments.length>2?(s=arguments[2]||{__proto__:null},i=r||s.filename):s={__proto__:null};let{compiler:a="javascript",lineOffset:o=0,columnOffset:l=0}=s,h=Hce(a);Wce(this,{__proto__:null,code:{__proto__:null,get(){return this._prefix+this._code+this._suffix},set(c){let g=String(c);g===this._code&&this._prefix===""&&this._suffix===""||(this._code=g,this._prefix="",this._suffix="",this._compiledVM=null,this._compiledNodeVM=null,this._compiledCode=null)},enumerable:!0},filename:{__proto__:null,value:i||"vm.js",enumerable:!0},lineOffset:{__proto__:null,value:o,enumerable:!0},columnOffset:{__proto__:null,value:l,enumerable:!0},compiler:{__proto__:null,value:a,enumerable:!0},_code:{__proto__:null,value:n,writable:!0},_prefix:{__proto__:null,value:"",writable:!0},_suffix:{__proto__:null,value:"",writable:!0},_compiledVM:{__proto__:null,value:null,writable:!0},_compiledNodeVM:{__proto__:null,value:null,writable:!0},_compiledNodeVMStrict:{__proto__:null,value:null,writable:!0},_compiledCode:{__proto__:null,value:null,writable:!0},_hasAsync:{__proto__:null,value:!1,writable:!0},_compiler:{__proto__:null,value:h}})}wrap(t,r){let n=`${t}`,i=`${r}`;return this._prefix===n&&this._suffix===i?this:(this._prefix=n,this._suffix=i,this._compiledVM=null,this._compiledNodeVM=null,this._compiledNodeVMStrict=null,this)}compile(){return this._compileVM(),this}getCompiledCode(){if(!this._compiledCode){let t=this._compiler(this._prefix+zce(this._code)+this._suffix,this.filename),r=Gce(null,t,!1,!1,this.filename);this._compiledCode=r.code,this._hasAsync=r.hasAsync}return this._compiledCode}_compile(t,r){return new Vce(t+this.getCompiledCode()+r,{__proto__:null,filename:this.filename,displayErrors:!1,lineOffset:this.lineOffset,columnOffset:this.columnOffset})}_compileVM(){let t=this._compiledVM;return t||(this._compiledVM=t=this._compile("","")),t}_compileNodeVM(){let t=this._compiledNodeVM;return t||(this._compiledNodeVM=t=this._compile(PD,ND)),t}_compileNodeVMStrict(){let t=this._compiledNodeVMStrict;return t||(this._compiledNodeVMStrict=t=this._compile(yP,ND)),t}};Fh.MODULE_PREFIX=PD;Fh.STRICT_MODULE_PREFIX=yP;Fh.MODULE_SUFFIX=ND;Fh.VMScript=vP});var p1=T(EP=>{"use strict";var xh=require("fs"),Xce=require("path"),{Script:RD,createContext:AP}=require("vm"),{EventEmitter:$ce}=require("events"),{INSPECT_MAX_BYTES:Kce}=require("buffer"),{createBridge:Jce,VMError:h1}=vu(),{transformer:bP,INTERNAL_STATE_NAME:Yce}=f1(),{lookupCompiler:Zce}=gh(),{VMScript:Qce}=hc(),{inspect:efe}=require("util"),tfe=Object.defineProperties,nfe=Object.freeze({Buffer,Function,Object,transformAndCheck:rfe,INSPECT_MAX_BYTES:Kce,INTERNAL_STATE_NAME:Yce});function pc(e,t){return new RD(t,{__proto__:null,filename:e,displayErrors:!1})}var Cu=Object.freeze({__proto__:null,displayErrors:!1});function MD(e){if(!e)throw new h1("Async not available")}function rfe(e,t,r,n,i){let s=bP(e,t,r,n,void 0);return MD(i||!s.hasAsync),s.code}var Sh=null,DP=null;function ife(e,t){Sh||(Sh=AP(),DP=new RD("fn()",{__proto__:null,filename:"timeout_bridge.js",displayErrors:!1})),Sh.fn=e;try{return DP.runInContext(Sh,{__proto__:null,displayErrors:!1,timeout:t})}finally{Sh.fn=null}}var sfe=pc(`${__dirname}/bridge.js`,`(function(global) {"use strict"; const exports = {};${xh.readFileSync(`${__dirname}/bridge.js`,"utf8")}
|
|||
|
|
return exports;})`),afe=pc(`${__dirname}/setup-sandbox.js`,`(function(global, host, bridge, data, context) { ${xh.readFileSync(`${__dirname}/setup-sandbox.js`,"utf8")}
|
|||
|
|
})`),ofe=pc("get_global.js","this"),LD=null,qD=null,jD=null;try{LD=pc("get_generator_function.js","(function*(){}).constructor")}catch(e){}try{qD=pc("get_async_function.js","(async function(){}).constructor")}catch(e){}try{jD=pc("get_async_generator_function.js","(async function*(){}).constructor")}catch(e){}var CP=class extends $ce{constructor(t={}){super();let{timeout:r,sandbox:n,compiler:i="javascript",allowAsync:s=!0}=t,a=t.eval!==!1,o=t.wasm!==!1,l=s&&!t.fixAsync;if(n&&typeof n!="object")throw new h1("Sandbox must be object.");let h=Zce(i),c=AP(void 0,{__proto__:null,codeGeneration:{__proto__:null,strings:a,wasm:o}}),g=ofe.runInContext(c,Cu),{createBridge:m}=sfe.runInContext(c,Cu)(g),p=Jce(m,()=>{}),d={__proto__:null,allowAsync:l};LD&&(d.GeneratorFunction=LD.runInContext(c,Cu)),qD&&(d.AsyncFunction=qD.runInContext(c,Cu)),jD&&(d.AsyncGeneratorFunction=jD.runInContext(c,Cu));let y=afe.runInContext(c,Cu)(g,nfe,p.other,d,c),E=C=>{let _;try{_=C.runInContext(c,Cu)}catch(H){throw p.from(H)}return p.from(_)},D=(C,_)=>{try{y.readonly(C,_)}catch(H){throw p.from(H)}return C},b=C=>{let _=p.other;try{_.fromWithFactory(_.protectedFactory,C)}catch(H){throw p.from(H)}return C},A=(C,_)=>{let H=p.other,B;try{B=H.from(_),H.addProtoMapping(B,C)}catch(G){throw p.from(G)}p.addProtoMapping(C,B)},F=(C,_)=>{let H=p.other,B=()=>{let G=_(this);return p.addProtoMapping(C,G),G};try{let G=H.from(B);H.addProtoMappingFactory(G,C)}catch(G){throw p.from(G)}};tfe(this,{__proto__:null,timeout:{__proto__:null,value:r,writable:!0,enumerable:!0},compiler:{__proto__:null,value:i,enumerable:!0},sandbox:{__proto__:null,value:p.from(g),enumerable:!0},_runScript:{__proto__:null,value:E},_makeReadonly:{__proto__:null,value:D},_makeProtected:{__proto__:null,value:b},_addProtoMapping:{__proto__:null,value:A},_addProtoMappingFactory:{__proto__:null,value:F},_compiler:{__proto__:null,value:h},_allowAsync:{__proto__:null,value:l}}),this.readonly(efe),n&&this.setGlobals(n)}setGlobals(t){for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.sandbox[r]=t[r]);return this}setGlobal(t,r){return this.sandbox[t]=r,this}getGlobal(t){return this.sandbox[t]}freeze(t,r){return this.readonly(t),r&&(this.sandbox[r]=t),t}readonly(t,r){return this._makeReadonly(t,r)}protect(t,r){return this._makeProtected(t),r&&(this.sandbox[r]=t),t}run(t,r){let n,i;if(typeof r=="object"?i=r.filename:i=r,t instanceof Qce)n=t._compileVM(),MD(this._allowAsync||!t._hasAsync);else{let s=i||"vm.js",a=this._compiler(t,s),o=bP(null,a,!1,!1,s);a=o.code,MD(this._allowAsync||!o.hasAsync),n=new RD(a,{__proto__:null,filename:s,displayErrors:!1})}return this.timeout?ife(()=>this._runScript(n),this.timeout):this._runScript(n)}runFile(t){let r=Xce.resolve(t);if(!xh.existsSync(r))throw new h1(`Script '${t}' not found.`);if(xh.statSync(r).isDirectory())throw new h1("Script must be file, got directory.");return this.run(xh.readFileSync(r,"utf8"),r)}};EP.VM=CP});var d1=T(UD=>{"use strict";var{VMError:tr}=vu(),{VMScript:ufe}=hc(),{jsCopmiler:lfe}=gh(),cfe=/^((?:@[^/\\%]+\/)?[^/\\%]+)(\/.*)?$/;function ffe(e){let t=+e;return`${t}`!==e?!1:t>=0&&t<4294967295}var VD=class{constructor(t,r,n){this.fs=t,this.globalPaths=r,this.builtins=n}init(t){}isPathAllowed(t){return!1}checkAccess(t,r){if(!this.isPathAllowed(r))throw new tr(`Module '${r}' is not allowed to be required. The path is outside the border!`,"EDENIED")}pathIsRelative(t){if(t===""||t[0]!==".")return!1;if(t.length===1)return!0;let r=t[1]==="."?2:1;return t.length<=r?!1:this.fs.isSeparator(t[r])}pathIsAbsolute(t){return t!==""&&(this.fs.isSeparator(t[0])||this.fs.isAbsolute(t))}lookupPaths(t,r){return this.pathIsRelative(r)?[t.path||"."]:[...t.paths,...this.globalPaths]}getBuiltinModulesList(t){if(this.builtins===void 0)return[];let r=[];return this.builtins.forEach((n,i)=>{typeof n=="object"&&n.init(t),r.push(i)}),r}loadBuiltinModule(t,r){if(this.builtins===void 0)return;let n=this.builtins.get(r);if(!!n)return typeof n=="function"?n(t):n.load(t)}makeExtensionHandler(t,r){return(n,i)=>{i=this.fs.resolve(i),this.checkAccess(n,i),this[r](t,n,i)}}getExten
|
|||
|
|
ctor.super_ = superCtor;
|
|||
|
|
Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
|
|||
|
|
}`,{__proto__:null,filename:"util.js"}));let t=e.run(JD,{__proto__:null,strict:!0,wrapper:"none"}),r=Object.assign({},gfe);return r.inherits=t,e.readonly(r)}var mc=(mfe.builtinModules||Object.getOwnPropertyNames(process.binding("natives"))).filter(e=>!e.startsWith("internal/")),BP=null;if(dc.EventEmitterAsyncResource){let{AsyncResource:e}=require("async_hooks"),t=Symbol("kEventEmitter");class r extends e{constructor(i,s,a){super(s,a);this[t]=i}get eventEmitter(){return this[t]}}BP=r}var YD,bfe={events:{init(e){if(!YD){let n=dfe.readFileSync(`${__dirname}/events.js`,"utf8");YD=new $D(`(function (fromhost) { const module = {}; module.exports={};{ ${n}
|
|||
|
|
} return module.exports;})`,{filename:"events.js"})}let r=yfe.prototype.run.call(e,YD)(e.readonly({kErrorMonitor:dc.errorMonitor,once:dc.once,on:dc.on,getEventListeners:dc.getEventListeners,EventEmitterReferencingAsyncResource:BP}));_P.set(e,r),e._addProtoMapping(dc.prototype,r.EventEmitter.prototype)},load:vfe},buffer:Efe,util:Afe};function m1(e,t,r){if(e.has(t))return;let n=bfe[t];e.set(t,n||(i=>i.readonly(r(t))))}function Dfe(e,t,r,n){let i=new Map;if(r){let s=Object.getOwnPropertyNames(r);for(let a=0;a<s.length;a++){let o=s[a];i.set(o,l=>l.readonly(r[o]))}}if(n){let s=Object.getOwnPropertyNames(n);for(let a=0;a<s.length;a++){let o=s[a];i.set(o,n[o])}}if(Array.isArray(e))if(e.indexOf("*")>=0)for(let a=0;a<mc.length;a++){let o=mc[a];e.indexOf(`-${o}`)===-1&&m1(i,o,t)}else for(let a=0;a<mc.length;a++){let o=mc[a];e.indexOf(o)!==-1&&m1(i,o,t)}else if(e)for(let s=0;s<mc.length;s++){let a=mc[s];e[a]&&m1(i,a,t)}return i}function Cfe(e,t){let r=new Map;for(let n=0;n<e.length;n++){let i=e[n];m1(r,i,t)}return r}XD.makeBuiltinsFromLegacyOptions=Dfe;XD.makeBuiltins=Cfe});var rC=T(IP=>{"use strict";var{Resolver:ZD,DefaultResolver:Ffe}=d1(),{VMError:xfe}=vu(),{DefaultFileSystem:Sfe}=WD(),{makeBuiltinsFromLegacyOptions:kP}=TP(),{jsCompiler:wfe}=gh();function OP(e){return require(e)}function QD(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function PP(e){return QD(e).replace(/\\\\|\//g,"[\\\\/]").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^\\\\/]*").replace(/\\\?/g,"[^\\\\/]")}function _fe(e){let t=PP(e);return new RegExp(`[\\\\/]node_modules[\\\\/]${t}(?:[\\\\/](?!(?:.*[\\\\/])?node_modules[\\\\/]).*)?$`)}var eC=class extends Ffe{constructor(t,r,n,i,s,a,o,l,h){super(t,r,n);this.rootPaths=i,this.pathContext=s,this.customResolver=a,this.hostRequire=o,this.compiler=l,this.strict=h}isPathAllowed(t){return this.rootPaths===void 0||this.rootPaths.some(r=>{if(!t.startsWith(r))return!1;let n=r.length;return t.length===n||n>0&&this.fs.isSeparator(r[n-1])?!0:this.fs.isSeparator(t[n])})}loadJS(t,r,n){if(this.pathContext(n,"js")!=="host")return super.loadJS(t,r,n);let i=this.hostRequire(n);r.exports=t.readonly(i)}loadNode(t,r,n){if(this.pathContext(n,"node")!=="host")return super.loadNode(t,r,n);let i=this.hostRequire(n);r.exports=t.readonly(i)}customResolve(t,r,n){if(this.customResolver===void 0)return;let i=this.customResolver(t,r);if(!i)return;if(typeof i=="string")return this.loadAsFileOrDirectory(i,n);let{module:s=t,path:a}=i;return this.loadNodeModules(s,[a],n)}getCompiler(t){return this.compiler}isStrict(t){return this.strict}},NP=class extends eC{constructor(t,r,n,i,s,a,o,l,h,c,g){super(t,r,n,i,s,a,o,l,h);this.externals=c.map(_fe),this.externalCache=c.map(m=>new RegExp(PP(m))),this.currMod=void 0,this.trustedMods=new WeakMap,this.allowTransitive=g}isPathAllowed(t){return this.isPathAllowedForModule(t,this.currMod)}isPathAllowedForModule(t,r){if(!super.isPathAllowed(t))return!1;if(r){if(r.allowTransitive)return!0;if(t.startsWith(r.path)){let n=t.slice(r.path.length);if(!/(?:^|[\\\\/])node_modules(?:$|[\\\\/])/.test(n))return!0}}return this.externals.some(n=>n.test(t))}registerModule(t,r,n,i,s){let a=this.trustedMods.get(i);this.trustedMods.set(t,{filename:r,path:n,paths:this.genLookupPaths(n),allowTransitive:this.allowTransitive&&(s&&a&&a.allowTransitive||this.externals.some(o=>o.test(r)))})}resolveFull(t,r,n,i,s){if(this.currMod=void 0,!s)return super.resolveFull(t,r,n,i,!1);let a=this.trustedMods.get(t);if(!a||t.path!==a.path)return super.resolveFull(t,r,n,i,!1);let o=[...t.paths];if(o.length!==a.paths.length)return super.resolveFull(t,r,n,i,!1);for(let l=0;l<o.length;l++)if(o[l]!==a.paths[l])return super.resolveFull(t,r,n,i,!1);try{return this.currMod=a,super.resolveFull(a,r,n,i,!0)}finally{this.currMod=void 0}}checkAccess(t,r){let n=this.trustedMods.get(t);if((!n||n.filename!==r)&&!this.isPathAllowedForModule(r,void 0))throw new xfe(`Module '${r}' is not allowed to be required. The path is outside the border!`,"EDENIED")}loadJS(t,r,n){if(this.pathContext(n,"js")!=="host"){let i=this.trustedMods.get(r),s=this.readScript(n);t
|
|||
|
|
})`));let E=this._runScript(nC),D=Ufe(this,y,h);this.readonly(UP);let{Module:b,jsonParse:A,createRequireForModule:F,requireImpl:C}=E(UP,{__proto__:null,argv:c,env:g,console:s,extensions:D,emitArgs:(_,H)=>{if(typeof _!="string"&&typeof _!="symbol")throw new Error("Event is not a string");return this.emit(_,...H)},globalPaths:[...y.globalPaths],getLookupPathsFor:_=>typeof _!="string"?[]:[...y.genLookupPaths(_)],resolve:(_,H,B,G,N)=>{if(typeof H!="string")throw new Error("Id is not a string");let z=Object.getOwnPropertyNames(G);return y.resolve(_,H,Hfe(B),z,!!N)},lookupPaths:(_,H)=>{if(typeof H!="string")throw new Error("Id is not a string");return[...y.lookupPaths(_,H)]},loadBuiltinModule:_=>{if(typeof _!="string")throw new Error("Id is not a string");return y.loadBuiltinModule(this,_)},registerModule:(_,H,B,G,N)=>y.registerModule(_,H,B,G,N),builtinModules:[...y.getBuiltinModulesList(this)],dirname:_=>typeof _!="string"?_:y.fs.dirname(_),basename:_=>typeof _!="string"?_:y.fs.basename(_)});if(Lfe(this,{__proto__:null,_Module:{__proto__:null,value:b},_jsonParse:{__proto__:null,value:A},_createRequireForModule:{__proto__:null,value:F},_requireImpl:{__proto__:null,value:C},_cacheRequireModule:{__proto__:null,value:null,writable:!0}}),y.init(this),p&&this.setGlobals(p),!d&&a&&a.import)if(Array.isArray(a.import))for(let _=0,H=a.import.length;_<H;_++)this.require(a.import[_]);else this.require(a.import)}get _resolver(){return this.resolver}call(t,...r){if(typeof t=="function")return t(...r);throw new gc("Unrecognized method type.")}require(t){let r=this.resolver.fs.resolve("."),n=this._cacheRequireModule;if(!n||n.path!==r){let i=this.resolver.fs.join(r,"/vm.js");n=new this._Module(i,r),this.resolver.registerModule(n,i,r,null,!1),this._cacheRequireModule=n}return this._requireImpl(n,t,!0)}run(t,r){let n,i;typeof r=="object"?i=r.filename:(i=r,r={__proto__:null});let{strict:s=this.options.strict,wrapper:a=this.options.wrapper,module:o,require:l,dirname:h=null}=r,c=o,g=h;if(t instanceof Ife){if(n=s?t._compileNodeVMStrict():t._compileNodeVM(),!c){let y=this.resolver.fs.resolve(t.filename);g=this.resolver.fs.dirname(y),c=new this._Module(y,g),this.resolver.registerModule(c,y,g,null,!1)}}else{let y=i||"vm.js";if(!c)if(i){let b=this.resolver.fs.resolve(i);g=this.resolver.fs.dirname(b),c=new this._Module(b,g),this.resolver.registerModule(c,b,g,null,!1)}else c=new this._Module(null,null),c.id=y;let E=s?Ofe:kfe,D=this._compiler(t,y);D=Nfe(null,D,!1,!1,y).code,n=new LP(E+D+Pfe,{__proto__:null,filename:y,displayErrors:!1})}let m=this._runScript(n),p=l||this._createRequireForModule(c),d=Reflect.apply(m,this.sandbox,[c.exports,p,c,i,g]);return a==="commonjs"?c.exports:d}static code(t,r,n){let i;if(r!=null)if(typeof r=="object")n=r,i=n.filename;else if(typeof r=="string")i=r;else throw new gc("Invalid arguments.");else typeof n=="object"&&(i=n.filename);if(arguments.length>3)throw new gc("Invalid number of arguments.");let s=typeof i=="string"?MP.resolve(i):void 0;return new yc(n).run(t,s)}static file(t,r){let n=MP.resolve(t);if(!g1.existsSync(n))throw new gc(`Script '${t}' not found.`);if(g1.statSync(n).isDirectory())throw new gc("Script must be file, got directory.");return new yc(r).run(g1.readFileSync(n,"utf8"),n)}};function qfe(e){return iC||(iC=VP("nesting.js","(vm, nodevm) => ({VM: vm, NodeVM: nodevm})")),e._runScript(iC)(e.readonly(qP),e.readonly(yc))}RP.NodeVM=yc});var zP=T(no=>{"use strict";var{VMError:zfe}=vu(),{VMScript:Gfe}=hc(),{VM:Wfe}=p1(),{NodeVM:Xfe}=HP(),{VMFileSystem:$fe}=WD(),{Resolver:Kfe}=d1(),{makeResolverFromLegacyOptions:Jfe}=rC();no.VMError=zfe;no.VMScript=Gfe;no.NodeVM=Xfe;no.VM=Wfe;no.VMFileSystem=$fe;no.Resolver=Kfe;no.makeResolverFromLegacyOptions=Jfe});var WP=T((J2e,GP)=>{if(parseInt(process.versions.node.split(".")[0])<6)throw new Error("vm2 requires Node.js version 6 or newer.");GP.exports=zP()});var JP=T((Y2e,XP)=>{"use strict";var Yfe=require("util"),Zfe=ik(),Qfe=sk(),Kn=mO(),$P=WP();function sC(e,t){if(!Array.isArray(t))throw new TypeError('an array of async function "names" is required');let r=t.slice(0),n=
|
|||
|
|
--------------------
|
|||
|
|
`;Vr.TIMEOUT=bc("5s");Vr.TIMEOUTS=[bc("5s"),bc("5s")];var wC=0,Tpe=Math.pow(2,31)-10,UN=/^v0\.10\.\d+$/.test(process.version),Ipe=/^v0\.12\.\d+$/.test(process.version),kpe=["json","text"],VN=/^https?:\/\//i,Ope=/^timeout=(\d+)/i,HN="_URLLIB_SOCKET_REQUEST_COUNT",A1="_URLLIB_SOCKET_RESPONSE_COUNT";Vr.request=function(t,r,n){return arguments.length===2&&typeof r=="function"&&(n=r,r=null),typeof n=="function"?Vr.requestWithCallback(t,r,n):(xC||(xC=ff()),new xC(function(i,s){Vr.requestWithCallback(t,r,Ppe(i,s))}))};Vr.curl=Vr.request;function Ppe(e,t){return function(r,n,i){if(r)return t(r);e({data:n,status:i.statusCode,headers:i.headers,res:i})}}Vr.requestThunk=function(t,r){return function(n){Vr.requestWithCallback(t,r,function(i,s,a){if(i)return n(i);n(null,{data:s,status:a.statusCode,headers:a.headers,res:a})})}};function zN(e,t,r){var n;if(!e||typeof e!="string"&&typeof e!="object"){var i=ype.format("expect request url to be a string or a http request options, but got %j",e);throw new Error(i)}arguments.length===2&&typeof t=="function"&&(r=t,t=null),t=t||{},wC>=Tpe&&(wC=0);var s=++wC;t.requestUrls=t.requestUrls||[],t.timeout=t.timeout||Vr.TIMEOUTS,t.maxRedirects=t.maxRedirects||10,t.streaming=t.streaming||t.customResponse;var a=Date.now(),o;typeof e=="string"?(VN.test(e)||(e="http://"+e),MN?o=E1.parse(new MN(e).href):o=E1.parse(e)):o=e;var l={requestId:s,url:o.href,args:t,ctx:t.ctx};t.emitter&&t.emitter.emit("request",l);var h=(t.type||t.method||o.method||"GET").toUpperCase(),c=o.port||80,g=NN,m=GN(t.agent,Vr.agent),p=t.fixJSONCtlChars;o.protocol==="https:"&&(g=RN,m=GN(t.httpsAgent,Vr.httpsAgent),o.port||(c=443));var d=xpe(o,t);d&&(m=d);var y=t.lookup;if(t.checkAddress){var E=y||gpe.lookup;y=function(Y,de,Ce){E(Y,de,function(He,tt,Rt){!He&&!t.checkAddress(tt,Rt)&&(He=new Error("illegal address"),He.name="IllegalAddressError",He.hostname=Y,He.ip=tt,He.family=Rt),Ce(He,tt,Rt)})}}var D=0,b={host:o.hostname||o.host||"localhost",path:o.path||"/",method:h,port:c,agent:m,headers:{},lookup:y},A={};if(t.headers)for(var F=FC.getOwnEnumerables(t.headers,!0),C=0;C<F.length;C++){var _=F[C],H=_.toLowerCase();H!==_&&(A[H]=_),b.headers[H]=t.headers[_]}t.socketPath&&(b.socketPath=t.socketPath);for(var B=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],C=0;C<B.length;C++){var _=B[C];t.hasOwnProperty(_)&&(b[_]=t[_])}_pe<12&&b.rejectUnauthorized===!1&&!b.hasOwnProperty("secureOptions")&&(b.secureOptions=require("constants").SSL_OP_NO_TLSv1_2);var G=t.auth||o.auth;G&&(b.auth=G);var N=null,z=!1;if(t.files){(!b.method||b.method==="GET"||b.method==="HEAD")&&(b.method="POST");var I=t.files,J=[];if(Array.isArray(I))for(var C=0;C<I.length;C++){var ne="file"+(C===0?"":C);J.push([ne,I[C]])}else if(Buffer.isBuffer(I)||typeof I.pipe=="function"||typeof I=="string")J.push(["file",I]);else if(typeof I=="object")for(var ne in I)J.push([ne,I[ne]]);var U=new Fpe;if(t.data)for(var se in t.data)U.field(se,t.data[se]);for(var C=0;C<J.length;C++){var te=J[C];if(Buffer.isBuffer(te[1]))U.buffer(te[0],te[1],"bufferfile"+C);else if(typeof te[1].pipe=="function"){var he=te[1].path||"streamfile"+C;he=mpe.basename(he),U.stream(te[0],te[1],he)}else U.file(te[0],te[1])}for(var Q=U.headers(),ee=FC.getOwnEnumerables(Q,!0),C=0;C<ee.length;C++){var _=ee[C];b.headers[_.toLowerCase()]=Q[_]}Nt("set multipart headers: %j, method: %s",Q,b.method),t.stream=U}else if(N=t.content||t.data,z=h==="GET"||h==="HEAD"||t.dataAsQueryString,!t.content&&N&&!(typeof N=="string"||Buffer.isBuffer(N)))if(z)N=t.nestedQuerystring?LN.stringify(N):jN.stringify(N);else{var ue=b.headers["content-type"];ue||(t.contentType==="json"?ue="application/json":ue="application/x-www-form-urlencoded",b.headers["content-type"]=ue),WN(ue).type==="application/json"?N=JSON.stringify(N):N=t.nestedQuerystring?LN.stringify(N):jN.stringify(N)}if(N&&(z&&(b.path+=(o.query?"&":"?")+N,N=null),N)){var ce=N.length;Buffer.isBuffer(N)||(ce=Buffer.byteLength(N)),D=ce,b.headers["content-length"]=ce.toString()}t.dataType==="json"&&(b.headers.accept||(b.headers.accept="applic
|
|||
|
|
stack: %s`,Date(),s,process.pid,Y.name,Y.message,Y.stack);return}var Me=r;r=null;var He={};if(Ce&&(pe=Ce.statusCode,re=Ce.statusMessage,He=Ce.headers),!Ze(Ce,Me)){var tt=kr(de,Ce);if(Nt("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j, socketHandledRequests: %s, socketHandledResponses: %s",tt.requestUseTime,me,pe,b.method,b.host,b.path,w,_e,ge,$),Y){var Rt="";m&&typeof m.getCurrentStatus=="function"&&(Rt=", agent status: "+JSON.stringify(m.getCurrentStatus())),Y.message+=", "+b.method+" "+e+" "+pe+" (connected: "+q+", keepalive socket: "+w+Rt+", socketHandledRequests: "+ge+", socketHandledResponses: "+$+`)
|
|||
|
|
headers: `+JSON.stringify(He),Y.data=de,Y.path=b.path,Y.status=pe,Y.headers=He,Y.res=tt,Mpe(Y,n)}var an=m&&(m.options&&m.options.freeSocketTimeout||m.freeSocketKeepAliveTimeout);if(m&&m.keepAlive&&an>0&&pe>=200&&He.connection==="keep-alive"&&He["keep-alive"]){var bn=Ope.exec(He["keep-alive"]);if(bn){var dn=parseInt(bn[1]);if(dn>0){var Gr=dn*1e3-500;if(Gr<an){var As=Ce.socket||n&&n.socket;m.options&&m.options.freeSocketTimeout?As.freeSocketTimeout=Gr:As.freeSocketKeepAliveTimeout=Gr}}}}Me(Y,de,t.streaming?Ce:tt),sn(Y,tt)}}function dr(Y,de){var Ce=kr(Y,de);sn(null,Ce)}function kr(Y,de){var Ce=Date.now()-a;_e&&(_e.contentDownload=Ce);var Me=de&&de.headers||{},He=de&&de.statusCode||pe,tt=de&&de.statusMessage||re;return{status:He,statusCode:He,statusMessage:tt,headers:Me,size:me,aborted:Se,rt:Ce,keepAliveSocket:w,data:Y,requestUrls:t.requestUrls,timing:_e,remoteAddress:De,remotePort:ve,socketHandledRequests:ge,socketHandledResponses:$}}function sn(Y,de){t.emitter&&(l.url=o.href,l.socket=n&&n.connection,l.options=b,l.size=D,t.emitter.emit("response",{requestId:s,error:Y,ctx:t.ctx,req:l,res:de}))}function Ze(Y,de){var Ce={};if(Y&&Y.headers&&(Ce=Y.headers),pe===401&&Ce["www-authenticate"]&&!b.headers.authorization&&t.digestAuth){var Me=Ce["www-authenticate"];if(Me.indexOf("Digest ")>=0)return Nt("Request#%d %s: got digest auth header WWW-Authenticate: %s",s,e,Me),b.headers.authorization=Ape(b.method,b.path,Me,t.digestAuth),Nt("Request#%d %s: auth with digest header: %s",s,e,b.headers.authorization),Y.headers["set-cookie"]&&(b.headers.cookie=Y.headers["set-cookie"].join(";")),t.headers=b.headers,Vr.requestWithCallback(e,t,de),!0}return!1}function At(Y){var de=null;if(t.followRedirect&&bpe.redirect[Y.statusCode]){t._followRedirectCount=(t._followRedirectCount||0)+1;var Ce=Y.headers.location;if(!Ce)de=new Error("Got statusCode "+Y.statusCode+" but cannot resolve next location from headers"),de.name="FollowRedirectError";else if(t._followRedirectCount>t.maxRedirects)de=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+e),de.name="MaxRedirectError";else{var Me=t.formatRedirectUrl?t.formatRedirectUrl(e,Ce):E1.resolve(e,Ce);Nt("Request#%d %s: `redirected` from %s to %s",s,b.path,e,Me),Ne(),b.headers.host&&VN.test(Ce)&&(b.headers.host=null,t.headers=b.headers);var He=r;return r=null,Vr.requestWithCallback(Me,t,He),{redirect:!0,error:null}}}return{redirect:!1,error:de}}if(t.headers&&(t.headers["User-Agent"]===null||t.headers["user-agent"]===null))b.headers["user-agent"]&&delete b.headers["user-agent"];else{var Ge=b.headers["user-agent"];Ge||(b.headers["user-agent"]=wpe)}if(t.gzip){var ut=t.headers&&(t.headers["Accept-Encoding"]===null||t.headers["accept-encoding"]===null);if(!ut){var st=b.headers["accept-encoding"];st||(b.headers["accept-encoding"]="gzip, deflate")}}function dt(Y,de,Ce){if(Se){Nt("Request#%d %s: Remote socket was terminated before `response.end()` was called",s,e);var Me=br||new Error("Remote socket was terminated before `response.end()` was called");return Ce(Me)}var He=Y.headers["content-encoding"];if(de.length===0||!He)return Ce(null,de,He);switch(He=He.toLowerCase(),He){case"gzip":case"deflate":Nt("unzip %d length body",de.length),vpe.unzip(de,function(tt,Rt){tt&&tt.name==="Error"&&(tt.name="UnzipError"),Ce(tt,Rt)});break;default:Ce(null,de,He)}}var Qe=t.writeStream,bt=!1;Nt("Request#%d %s %s with headers %j, options.path: %s",s,h,e,b.headers,b.path),t.requestUrls.push(o.href);var Nn=!1,br;function Ut(Y){if(Nn=!0,$=Y.socket[A1]=(Y.socket[A1]||0)+1,_e&&(_e.waiting=Date.now()-a),Nt("Request#%d %s `req response` event emit: status %d, headers: %j",s,e,Y.statusCode,Y.headers),t.streaming){var de=At(Y);if(de.redirect){Y.resume(),dr(null,Y);return}return de.error?(Y.resume(),pt(de.error,null,Y)):pt(null,null,Y)}if(Y.on("error",function(tt){br=tt,Nt("Request#%d %s: `res error` event emit, total size %d, socket handled %s requests and %s responses",s,e,me,ge,$)}),Y.on("aborted",function(){Se=!0,Nt("Request#%d %s: `res aborted` event emit, total size %d",s,e,me)}),Qe){var de=At(Y);if(de.redirect){Y.resume
|
|||
|
|
`);n!==-1&&(e._longStack=!0,e.stack+=Bpe+r.substr(n+1))}}}function Lpe(e){return e.timeout||e._idleTimeout}});var BC=T((gSe,XN)=>{"use strict";var $N=require("events").EventEmitter,Hpe=require("util"),KN=Va(),b1=_C();XN.exports=Ph;function Ph(e){$N.call(this),e=e||{},e.agent!==void 0?(this.agent=e.agent,this.hasCustomAgent=!0):(this.agent=b1.agent,this.hasCustomAgent=!1),e.httpsAgent!==void 0?(this.httpsAgent=e.httpsAgent,this.hasCustomHttpsAgent=!0):(this.httpsAgent=b1.httpsAgent,this.hasCustomHttpsAgent=!1),this.defaultArgs=e.defaultArgs}Hpe.inherits(Ph,$N);Ph.prototype.request=Ph.prototype.curl=function(e,t,r){return typeof t=="function"&&(r=t,t=null),t=t||{},this.defaultArgs&&(t=KN.assign({},[this.defaultArgs,t])),t.emitter=this,t.agent=D1(t.agent,this.agent),t.httpsAgent=D1(t.httpsAgent,this.httpsAgent),b1.request(e,t,r)};Ph.prototype.requestThunk=function(e,t){return t=t||{},this.defaultArgs&&(t=KN.assign({},[this.defaultArgs,t])),t.emitter=this,t.agent=D1(t.agent,this.agent),t.httpsAgent=D1(t.httpsAgent,this.httpsAgent),b1.requestThunk(e,t)};function D1(e,t){return e===void 0?t:e}});var ZN=T((ySe,JN)=>{"use strict";var zpe=require("util"),C1=z0()("urllib"),Gpe=_f(),TC=BC(),IC;JN.exports=Nh;function Nh(e){TC.call(this,e)}zpe.inherits(Nh,TC);Nh.prototype.request=Nh.prototype.curl=function(t,r){var n=this;return r=r||{},r.retry=r.retry||0,r.retryDelay&&(r.retryDelay=Gpe(r.retryDelay)),r.isRetry=r.isRetry||function(i){return i.status>=500},TC.prototype.request.call(n,t,r).then(function(i){return r.retry>0&&typeof r.isRetry=="function"&&r.isRetry(i)?(r.retry--,C1("retry request %s, remain %s",t,r.retry),r.retryDelay?(C1("retry after %sms",r.retryDelay),YN(r.retryDelay).then(function(){return n.request(t,r)})):n.request(t,r)):i}).catch(function(i){if(r.retry>0)return r.retry--,C1("retry request %s, remain %s, err %s",t,r.retry,i),r.retryDelay?(C1("retry after %sms",r.retryDelay),YN(r.retryDelay).then(function(){return n.request(t,r)})):n.request(t,r);throw i})};Nh.prototype.requestThunk=function(t,r){var n=this;return function(i){n.request(t,r).then(function(s){var a=i;i=null,a(null,s)}).catch(function(s){!i||i(s)})}};function YN(e){return IC||(IC=ff()),new IC(function(t){setTimeout(t,e)})}});var kC=T(oi=>{"use strict";var ba=_C();oi.USER_AGENT=ba.USER_AGENT;oi.TIMEOUT=ba.TIMEOUT;oi.TIMEOUTS=ba.TIMEOUTS;oi.agent=ba.agent;oi.httpsAgent=ba.httpsAgent;oi.curl=ba.curl;oi.request=ba.request;oi.requestWithCallback=ba.requestWithCallback;oi.requestThunk=ba.requestThunk;oi.HttpClient=BC();oi.HttpClient2=ZN();oi.create=function(e){return new oi.HttpClient(e)}});var eR=T((ESe,QN)=>{QN.exports={name:"ali-oss",version:"6.20.0",description:"aliyun oss(object storage service) node client",main:"./lib/client.js",files:["lib","shims","dist"],browser:{"./lib/client.js":"./dist/aliyun-oss-sdk.js",mime:"mime/lite",urllib:"./shims/xhr.js",utility:"./shims/utility.js",crypto:"./shims/crypto/crypto.js",debug:"./shims/debug",fs:!1,child_process:!1,"is-type-of":"./shims/is-type-of.js"},scripts:{"build-change-log":"standard-version",test:"npm run tsc && mocha -t 120000 -r should -r dotenv/config test/node/*.test.js test/node/**/*.test.js","test-cov":"npm run tsc && nyc --reporter=lcov node_modules/.bin/_mocha -t 120000 -r should test/node/*.test.js test/node/**/*.test.js",jshint:"jshint .","build-test":"MINIFY=1 node browser-build.js > test/browser/build/aliyun-oss-sdk.min.js && node -r dotenv/config task/browser-test-build.js > test/browser/build/tests.js","browser-test":"npm run build-test && karma start","build-dist":"npm run tsc && node browser-build.js > dist/aliyun-oss-sdk.js && MINIFY=1 node browser-build.js > dist/aliyun-oss-sdk.min.js","publish-to-npm":"node publish-npm-check.js && npm publish","publish-to-cdn":"node publish.js","snyk-protect":"snyk-protect","lint-staged":"lint-staged","detect-secrets":"node task/detect-secrets",tsc:"npm run tsc:clean && npm run tsc:build","tsc:build":"tsc -b tsconfig.json tsconfig-cjs.json","tsc:watch":"tsc -b tsconfig.json tsconfig-cjs.json --watch","tsc:clean":"tsc -b tsconfig.json tsconfig-cjs.jso
|
|||
|
|
`)};gs.computeSignature=function(t,r,n="utf-8"){return _u.createHmac("sha1",t).update(Buffer.from(r,n)).digest("base64")};gs.authorization=function(t,r,n,i){return`OSS ${t}:${this.computeSignature(r,n,i)}`};gs.fixAdditionalHeaders=e=>{if(!e)return[];let t="x-oss-";return[...new Set(e.map(r=>r.toLowerCase()))].filter(r=>r!=="content-type"&&r!=="content-md5"&&!r.startsWith(t)).sort()};gs.getCanonicalRequest=function(t,r,n,i,s){let a=qR(r.headers),o=r.queries||{},l="x-oss-";if(i&&!n)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");let h=[t.toUpperCase(),jR(`/${n?`${n}/`:""}${i||""}`).replace(/%2F/g,"/")];h.push(k0e.stringify(o,{encoder:jR,sort:(m,p)=>m.localeCompare(p),strictNullHandling:!0})),s&&s.forEach(m=>{if(!Object.prototype.hasOwnProperty.call(a,m))throw Error(`Can't find additional header ${m} in request headers.`)});let c=new Set(s);Object.keys(a).forEach(m=>{(m==="content-type"||m==="content-md5"||m.startsWith(l))&&c.add(m)});let g=`${[...c].sort().map(m=>`${m}:${I1.string(a[m])?a[m].trim():a[m]}
|
|||
|
|
`).join("")}`;return h.push(g),s.length>0?h.push(s.join(";")):h.push(""),h.push(a["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),h.join(`
|
|||
|
|
`)};gs.getStringToSign=function(t,r,n){return["OSS4-HMAC-SHA256",r,`${r.split("T")[0]}/${t}/oss/aliyun_v4_request`,_u.createHash("sha256").update(n).digest("hex")].join(`
|
|||
|
|
`)};gs.getSignatureV4=function(t,r,n,i){let s=_u.createHmac("sha256",`aliyun_v4${t}`).update(r).digest(),a=_u.createHmac("sha256",s).update(n).digest(),o=_u.createHmac("sha256",a).update("oss").digest(),l=_u.createHmac("sha256",o).update("aliyun_v4_request").digest();return _u.createHmac("sha256",l).update(i).digest("hex")};gs.authorizationV4=function(t,r,n,i,s,a,o,l,h="utf-8"){let c=this.fixAdditionalHeaders(l),g={};Object.entries(s.headers).forEach(b=>{g[b[0]]=I1.string(b[1])?Buffer.from(b[1],h).toString():b[1]});let m=g["x-oss-date"]||s.queries&&s.queries["x-oss-date"],p=this.getCanonicalRequest(i,{headers:g,queries:s.queries},a,o,c),d=this.getStringToSign(n,m,p),y=m.split("T")[0],E=this.getSignatureV4(r,y,n,d),D=c.length>0?`AdditionalHeaders=${c.join(";")},`:"";return`OSS4-HMAC-SHA256 Credential=${t}/${y}/${n}/oss/aliyun_v4_request,${D}Signature=${E}`};gs._signatureForURL=function(t,r={},n,i,s){let a={},{subResource:o={}}=r;if(r.process){let h="x-oss-process";o[h]=r.process}if(r.trafficLimit){let h="x-oss-traffic-limit";o[h]=r.trafficLimit}if(r.response&&Object.keys(r.response).forEach(h=>{let c=`response-${h.toLowerCase()}`;o[c]=r.response[h]}),Object.keys(r).forEach(h=>{let c=h.toLowerCase(),g=r[h];c.indexOf("x-oss-")===0?a[c]=g:(c.indexOf("content-md5")===0||c.indexOf("content-type")===0)&&(a[h]=g)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(o["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){let h={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(h.callbackHost=r.callback.host),r.callback.contentType&&(h.callbackBodyType=r.callback.contentType),o.callback=Buffer.from(JSON.stringify(h)).toString("base64"),r.callback.customValue){let c={};Object.keys(r.callback.customValue).forEach(g=>{c[`x:${g}`]=r.callback.customValue[g]}),o["callback-var"]=Buffer.from(JSON.stringify(c)).toString("base64")}}let l=this.buildCanonicalString(r.method,n,{headers:a,parameters:o},i.toString());return{Signature:this.computeSignature(t,l,s),subResource:o}}});var kt=T(O0e=>{at(O0e);ot(O0e,{checkBucketName:()=>P0e});var P0e=(e,t=!1)=>{if(!(t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/).test(e))throw new Error("The bucket must be conform to the specifications")}});var O1=T(N0e=>{at(N0e);ot(N0e,{checkConfigValid:()=>M0e});var k1={endpoint:R0e,region:/^[a-zA-Z0-9\-_]+$/};function R0e(e){return typeof e=="string"?/^[a-zA-Z0-9._:/-]+$/.test(e):e.host?/^[a-zA-Z0-9._:/-]+$/.test(e.host):!1}var M0e=(e,t)=>{if(k1[t]){let r=!0;if(k1[t]instanceof Function?r=k1[t](e):r=k1[t].test(e),!r)throw new Error(`The ${t} must be conform to the specifications`)}}});var RC=T(L0e=>{at(L0e);ot(L0e,{setRegion:()=>q0e});var UR=Mt(require("url")),VR=O1();function q0e(e,t=!1,r=!1){(0,VR.checkConfigValid)(e,"region");let n=r?"https://":"http://",i=t?"-internal.aliyuncs.com":".aliyuncs.com",s="vpc100-oss-cn-";return e.substr(0,s.length)===s&&(i=".aliyuncs.com"),UR.default.parse(n+e+i)}});var GR=T((USe,HR)=>{var j0e=_f(),zR=require("url"),{checkBucketName:U0e}=kt(),{setRegion:V0e}=RC(),{checkConfigValid:H0e}=O1();function z0e(e,t){H0e(e,"endpoint");let r=zR.parse(e);if(r.protocol||(r=zR.parse(`http${t?"s":""}://${e}`)),r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return r}HR.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");e.stsToken&&!e.refreshSTSToken&&!e.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),e.bucket&&U0e(e.bucket);let t=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0,authorizationV4:!1},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.t
|
|||
|
|
`),t&&t.firstUpperCase&&(e=(0,bM.formatObjKey)(e,"firstUpperCase")),Tu(e)==="object"?Object.keys(e).forEach(n=>{Tu(e[n])!=="undefined"&&Tu(e[n])!=="null"&&(Tu(e[n])==="string"||Tu(e[n])==="number"?r+=`<${n}>${e[n]}</${n}>`:Tu(e[n])==="object"?r+=`<${n}>${WC(e[n])}</${n}>`:Tu(e[n])==="array"?r+=e[n].map(i=>`<${n}>${WC(i)}</${n}>`).join(""):r+=`<${n}>${e[n].toString()}</${n}>`)}):r+=e.toString(),r}});var XC=T(zde=>{at(zde);ot(zde,{checkValid:()=>Gde});function Gde(e,t){t.forEach(r=>{if(r.validator)r.validator(e);else if(r.pattern&&!r.pattern.test(e))throw new Error(r.msg)})}});var $C=T(Wde=>{at(Wde);ot(Wde,{checkObjectTag:()=>Jde});var{checkValid:Xde}=XC(),{isObject:$de}=wi(),DM=[{validator:e=>{if(typeof e!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],Kde={key:[...DM,{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}],value:[...DM,{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}]};function Jde(e){if(!$de(e))throw new Error("tag must be Object");let t=Object.entries(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");let r=["key","value"];t.forEach(n=>{n.forEach((i,s)=>{Xde(i,Kde[r[s]])})})}});var FM=T(CM=>{var{obj2xml:Yde}=Jn(),{checkObjectTag:Zde}=$C(),Qde=CM;Qde.putObjectTagging=async function(t,r,n={}){Zde(r),n.subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t);let i=this._objectRequestParams("PUT",t,n);i.successStatuses=[200],r=Object.keys(r).map(o=>({Key:o,Value:r[o]}));let s={Tagging:{TagSet:{Tag:r}}};i.mime="xml",i.content=Yde(s);let a=await this.request(i);return{res:a.res,status:a.status}}});var SM=T(xM=>{var eme=xM;eme.deleteObjectTagging=async function(t,r={}){r.subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t);let n=this._objectRequestParams("DELETE",t,r);n.successStatuses=[204];let i=await this.request(n);return{status:i.status,res:i.res}}});var Da=T(tme=>{at(tme);ot(tme,{isArray:()=>rme});var rme=e=>Object.prototype.toString.call(e)==="[object Array]"});var IM=T(wM=>{var _M=wM,{isObject:nme}=wi(),{isArray:BM}=Da();_M.getBucketVersions=TM;_M.listObjectVersions=TM;async function TM(e={},t={}){if(e.versionIdMarker&&e.keyMarker===void 0)throw new Error("A version-id marker cannot be specified without a key marker");t.subres=Object.assign({versions:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId);let r=this._objectRequestParams("GET","",t);r.xmlResponse=!0,r.successStatuses=[200],r.query=ime(e);let n=await this.request(r),i=n.data.Version||[],s=n.data.DeleteMarker||[],a=this;i&&(Array.isArray(i)||(i=[i]),i=i.map(l=>({name:l.Key,url:a._objectUrl(l.Key),lastModified:l.LastModified,isLatest:l.IsLatest==="true",versionId:l.VersionId,etag:l.ETag,type:l.Type,size:Number(l.Size),storageClass:l.StorageClass,owner:{id:l.Owner.ID,displayName:l.Owner.DisplayName}}))),s&&(BM(s)||(s=[s]),s=s.map(l=>({name:l.Key,lastModified:l.LastModified,versionId:l.VersionId,owner:{id:l.Owner.ID,displayName:l.Owner.DisplayName}})));let o=n.data.CommonPrefixes||null;return o&&(BM(o)||(o=[o]),o=o.map(l=>l.Prefix)),{res:n.res,objects:i,deleteMarker:s,prefixes:o,nextMarker:n.data.NextKeyMarker||null,NextVersionIdMarker:n.data.NextVersionIdMarker||null,nextKeyMarker:n.data.NextKeyMarker||null,nextVersionIdMarker:n.data.NextVersionIdMarker||null,isTruncated:n.data.IsTruncated==="true"}}function sme(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ime(e={}){let t={};return nme(e)&&Object.keys(e).forEach(r=>{t[sme(r)]=e[r]}),t}});var PM=T(kM=>{var OM=Va(),{obj2xml:ame}=Jn(),ome=kM;ome.deleteMulti=async function(t,r={}){let n=[];if(!t||!t.length)throw new Error("names is required");for(let c=0;c<t.length;c++){let g={};if(typeof t[c]=="string")g.Key=OM.escape(this._objectName(t[c]));else{let{key:
|
|||
|
|
<BucketLoggingStatus>
|
|||
|
|
<LoggingEnabled>
|
|||
|
|
<TargetBucket>${t}</TargetBucket>
|
|||
|
|
`;return r&&(s+=`<TargetPrefix>${r}</TargetPrefix>
|
|||
|
|
`),s+=`</LoggingEnabled>
|
|||
|
|
</BucketLoggingStatus>`,i.content=s,i.mime="xml",i.successStatuses=[200],{res:(await this.request(i)).res}};nn.getBucketLogging=async function(t,r){On(t);let n=this._bucketRequestParams("GET",t,"logging",r);n.successStatuses=[200],n.xmlResponse=!0;let i=await this.request(n),s=i.data.LoggingEnabled;return{enable:!!s,prefix:s&&s.TargetPrefix||null,res:i.res}};nn.deleteBucketLogging=async function(t,r){On(t);let n=this._bucketRequestParams("DELETE",t,"logging",r);return n.successStatuses=[204,200],{res:(await this.request(n)).res}};nn.putBucketCORS=async function(t,r,n){On(t),r=r||[],iF(r.length,"rules is required"),r.forEach(g=>{iF(g.allowedOrigin,"allowedOrigin is required"),iF(g.allowedMethod,"allowedMethod is required")});let i=this._bucketRequestParams("PUT",t,"cors",n),s=`<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
|
<CORSConfiguration>`,a=g=>{s+=`<AllowedOrigin>${g}</AllowedOrigin>`},o=g=>{s+=`<AllowedMethod>${g}</AllowedMethod>`},l=g=>{s+=`<AllowedHeader>${g}</AllowedHeader>`},h=g=>{s+=`<ExposeHeader>${g}</ExposeHeader>`};for(let g=0,m=r.length;g<m;g++){let p=r[g];s+="<CORSRule>",j1(p.allowedOrigin).forEach(a),j1(p.allowedMethod).forEach(o),j1(p.allowedHeader).forEach(l),j1(p.exposeHeader).forEach(h),p.maxAgeSeconds&&(s+=`<MaxAgeSeconds>${p.maxAgeSeconds}</MaxAgeSeconds>`),s+="</CORSRule>"}return s+="</CORSConfiguration>",i.content=s,i.mime="xml",i.successStatuses=[200],{res:(await this.request(i)).res}};nn.getBucketCORS=async function(t,r){On(t);let n=this._bucketRequestParams("GET",t,"cors",r);n.successStatuses=[200],n.xmlResponse=!0;let i=await this.request(n),s=[];if(i.data&&i.data.CORSRule){let{CORSRule:a}=i.data;q1(a)||(a=[a]),a.forEach(o=>{let l={};Object.keys(o).forEach(h=>{l[h.slice(0,1).toLowerCase()+h.slice(1,h.length)]=o[h]}),s.push(l)})}return{rules:s,res:i.res}};nn.deleteBucketCORS=async function(t,r){On(t);let n=this._bucketRequestParams("DELETE",t,"cors",r);return n.successStatuses=[204],{res:(await this.request(n)).res}};nn.putBucketReferer=async function(t,r,n,i){On(t);let s=this._bucketRequestParams("PUT",t,"referer",i),a=`<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
|
<RefererConfiguration>
|
|||
|
|
`;if(a+=` <AllowEmptyReferer>${r?"true":"false"}</AllowEmptyReferer>
|
|||
|
|
`,n&&n.length>0){a+=` <RefererList>
|
|||
|
|
`;for(let l=0;l<n.length;l++)a+=` <Referer>${n[l]}</Referer>
|
|||
|
|
`;a+=` </RefererList>
|
|||
|
|
`}else a+=` <RefererList />
|
|||
|
|
`;return a+="</RefererConfiguration>",s.content=a,s.mime="xml",s.successStatuses=[200],{res:(await this.request(s)).res}};nn.getBucketReferer=async function(t,r){On(t);let n=this._bucketRequestParams("GET",t,"referer",r);n.successStatuses=[200],n.xmlResponse=!0;let i=await this.request(n),s=i.data.RefererList.Referer||null;return s&&(q1(s)||(s=[s])),{allowEmpty:i.data.AllowEmptyReferer==="true",referers:s,res:i.res}};nn.deleteBucketReferer=async function(t,r){return On(t),await this.putBucketReferer(t,!0,null,r)};nn._bucketRequestParams=function(t,r,n,i){return{method:t,bucket:r,subres:n,additionalHeaders:i&&i.additionalHeaders,timeout:i&&i.timeout,ctx:i&&i.ctx}}});var zq=T(Yge=>{at(Yge);ot(Yge,{isFile:()=>Zge});var Zge=e=>typeof File!="undefined"&&e instanceof File});var $q=T(Gq=>{var Qge=require("fs"),sF=wu(),eye=require("util"),Wq=require("path"),Xq=Tf(),{isFile:aF}=zq(),{isArray:tye}=Da(),{isBuffer:oF}=qh(),{retry:rye}=N1(),xc=Gq;xc.multipartUpload=async function(t,r,n){if(this.resetCancelFlag(),n=n||{},n.checkpoint&&n.checkpoint.uploadId)return await this._resumeMultipart(n.checkpoint,n);let i=100*1024;n.mime||(aF(r)?n.mime=Xq.getType(Wq.extname(r.name)):oF(r)?n.mime="":n.mime=Xq.getType(Wq.extname(r))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers);let s=await this._getFileSize(r);if(s<i){n.contentLength=s;let c=await this.put(t,r,n);n&&n.progress&&await n.progress(1);let g={res:c.res,bucket:this.options.bucket,name:t,etag:c.res.headers.etag};return(n.headers&&n.headers["x-oss-callback"]||n.callback)&&(g.data=c.data),g}if(n.partSize&&parseInt(n.partSize,10)!==n.partSize)throw new Error("partSize must be int number");if(n.partSize&&n.partSize<i)throw new Error(`partSize must not be smaller than ${i}`);let a=await this.initMultipartUpload(t,n),{uploadId:o}=a,l=this._getPartSize(s,n.partSize),h={file:r,name:t,fileSize:s,partSize:l,uploadId:o,doneParts:[]};return n&&n.progress&&await n.progress(0,h,a.res),await this._resumeMultipart(h,n)};xc._resumeMultipart=async function(t,r){let n=this;if(this.isCancel())throw this._makeCancelEvent();let{file:i,fileSize:s,partSize:a,uploadId:o,doneParts:l,name:h}=t,c=this._divideParts(s,a),g=c.length,m=rye((b,A)=>new Promise(async(F,C)=>{try{if(!b.isCancel()){let _=c[A-1],H=await b._createStream(i,_.start,_.end),B={stream:H,size:_.end-_.start};tye(b.multipartUploadStreams)?b.multipartUploadStreams.push(B.stream):b.multipartUploadStreams=[B.stream];let G=function(){H.destroyed||H.destroy();let z=b.multipartUploadStreams.indexOf(H);z!==-1&&b.multipartUploadStreams.splice(z,1)};H.on("close",G),H.on("error",G);let N;try{N=await b._uploadPart(h,o,A,B,r)}catch(z){throw G(),z.status===404?b._makeAbortEvent():z}b.isCancel()||(l.push({number:A,etag:N.res.headers.etag}),t.doneParts=l,r.progress&&await r.progress(l.length/(g+1),t,N.res))}F()}catch(_){_.partNum=A,C(_)}}),this.options.retryMax,{errorHandler:b=>!!(F=>{let C=[-1,-2].includes(F.status),_=this.options.requestErrorRetryHandle||(()=>!0);return C&&_(F)})(b)}),p=Array.from(new Array(g),(b,A)=>A+1),d=l.map(b=>b.number),y=p.filter(b=>d.indexOf(b)<0),E=5,D=r.parallel||E;if(this.checkBrowserAndVersion("Internet Explorer","10")||D===1)for(let b=0;b<y.length;b++){if(this.isCancel())throw this._makeCancelEvent();await m(this,y[b])}else{let b=await this._parallel(y,D,F=>new Promise((C,_)=>{m(n,F).then(()=>{C()}).catch(_)})),A=b.find(F=>F.name==="abort");if(A)throw A;if(this.isCancel())throw m=null,this._makeCancelEvent();if(b&&b.length>0)throw b[0].message=`Failed to upload some parts with error: ${b[0].toString()} part_num: ${b[0].partNum}`,b[0]}return await this.completeMultipartUpload(h,o,l,r)};xc._getFileSize=async function(t){if(oF(t))return t.length;if(aF(t))return t.size;if(sF.string(t))return(await this._statFile(t)).size;throw new Error("_getFileSize requires Buffer/File/String.")};var{Readable:uF}=require("stream");function Sc(e,t){if(!(this instanceof Sc))return new Sc(e,t);uF.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}eye.inherits(Sc,uF);Sc.prototype.re
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(ue,ce){if(!!ue){if(typeof ue=="string")return a(ue,ce);var Ae=Object.prototype.toString.call(ue).slice(8,-1);if(Ae==="Object"&&ue.constructor&&(Ae=ue.constructor.name),Ae==="Map"||Ae==="Set")return Array.from(ue);if(Ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return a(ue,ce)}}function i(ue){if(typeof Symbol!="undefined"&&ue[Symbol.iterator]!=null||ue["@@iterator"]!=null)return Array.from(ue)}function s(ue){if(Array.isArray(ue))return a(ue)}function a(ue,ce){(ce==null||ce>ue.length)&&(ce=ue.length);for(var Ae=0,xe=new Array(ce);Ae<ce;Ae++)xe[Ae]=ue[Ae];return xe}function o(ue,ce){var Ae=Object.keys(ue);if(Object.getOwnPropertySymbols){var xe=Object.getOwnPropertySymbols(ue);ce&&(xe=xe.filter(function(Ie){return Object.getOwnPropertyDescriptor(ue,Ie).enumerable})),Ae.push.apply(Ae,xe)}return Ae}function l(ue){for(var ce=1;ce<arguments.length;ce++){var Ae=arguments[ce]!=null?arguments[ce]:{};ce%2?o(Object(Ae),!0).forEach(function(xe){h(ue,xe,Ae[xe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Ae)):o(Object(Ae)).forEach(function(xe){Object.defineProperty(ue,xe,Object.getOwnPropertyDescriptor(Ae,xe))})}return ue}function h(ue,ce,Ae){return ce in ue?Object.defineProperty(ue,ce,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):ue[ce]=Ae,ue}function c(ue){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},c(ue)}var g="array",m="boolean",p="date",d="null",y="number",E="object",D="special-object",b="string",A=["_selfCloseTag","_attrs"],F=new RegExp(A.join("|"),"g"),C=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ce.repeat(Ae)},_=function(ce){return Array.isArray(ce)&&g||c(ce)===E&&ce!==null&&ce._name&&D||ce instanceof Date&&p||ce===null&&d||c(ce)},H=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof ce!="string")return ce;var xe=new RegExp("(".concat(Object.keys(Ae).join("|"),")(?!(\\w|#)*;)"),"g");return String(ce).replace(xe,function(Ie,q){return Ae[q]||""})},B=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ae=arguments.length>1?arguments[1]:void 0,xe=[];if(Array.isArray(ce))xe=ce.map(function(q){var w=Object.keys(q)[0],ge=q[w],$=Ae?H(ge,Ae):ge,me=$===!0?"":'="'.concat($,'"');return"".concat(w).concat(me)});else{var Ie=Object.keys(ce);xe=Ie.map(function(q){var w=Ae?H(ce[q],Ae):ce[q],ge=ce[q]===!0?"":'="'.concat(w,'"');return"".concat(q).concat(ge)})}return xe},G=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ae=arguments.length>1?arguments[1]:void 0,xe=B(ce,Ae);if(xe.length===0)return"";var Ie=xe.join(" ");return" ".concat(Ie)},N=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ce).map(function(Ae){return{_name:Ae,_content:ce[Ae]}})},z=[b,y,m],I=function(ce){return z.includes(_(ce))},J=[].concat(z,[p,D]),ne=function(ce){return J.includes(_(ce))},U=function(ce){return!ce.match("<")},se='<?xml version="1.0" encoding="UTF-8"?>',te=function(ce){var Ae=ce.header,xe=ce.indent,Ie=ce.isOutputStart,q=Ae&&Ie;if(!q)return"";var w=c(Ae)===m;return w?se:Ae},he={"<":"<",">":">","&":"&"},Q=function ue(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=Ae.depth,Ie=xe===void 0?0:xe,q=Ae.indent,w=Ae._isFirstItem,ge=Ae._isOutputStart,$=ge===void 0?!0:ge,me=Ae.header,pe=Ae.attributesFilter,re=pe===void 0?{}:pe,Se=Ae.filter,De=Se===void 0?{}:Se,ve=typeof re=="boolean"&&!re,_e=ve?{}:l(l(l({},he),{'"':"""}),re),et=typeof De=="boolean"&&!De,Ne=et?{}:l(l({},he),De),pt=C(q,Ie),dr=_(ce),kr=te({header:me,indent:q,depth:Ie,isOutputSta
|
|||
|
|
`:"",br="".concat(Nn).concat(pt);if(At==="_comment"){Ze+="".concat(br,"<!-- ").concat(Ge," -->");break}var Ut=Qe==="undefined"||dt==="",Or=c(ce._selfCloseTag)===m?Ut&&ce._selfCloseTag:Ut,Pr=Or?"/":"",Vt=G(ce._attrs,_e),cr="<".concat(At).concat(Vt).concat(Pr,">"),Kr=q&&!bt?`
|
|||
|
|
`.concat(pt):"",Jr=Or?"":"".concat(dt).concat(Kr,"</").concat(At,">");Ze+="".concat(br).concat(cr).concat(Jr);break}case"object":{var ye=Object.keys(ce),Ee=ye.map(function(R,O){var L=l(l({},Ae),{},{_isFirstItem:O===0,_isLastItem:O+1===ye.length,_isOutputStart:sn}),K={_name:R};if(_(ce[R])==="object"){A.forEach(function(Me){var He=ce[R][Me];typeof He!="undefined"&&(K[Me]=He,delete ce[R][Me])});var Y=typeof ce[R]._content!="undefined";if(Y&&Object.keys(ce[R]).length>1){var de=Object.assign({},ce[R]);delete de._content,K._content=[].concat(t(N(de)),[ce[R]._content])}}typeof K._content=="undefined"&&(K._content=ce[R]);var Ce=ue(K,L,R);return Ce},Ae);Ze=Ee.join("");break}case"function":{var Oe=ce(Ae);Ze=ue(Oe,Ae);break}case"array":{var x=ce.map(function(R,O){var L=l(l({},Ae),{},{_isFirstItem:O===0,_isLastItem:O+1===ce.length,_isOutputStart:sn});return ue(R,L)});Ze=x.join("");break}default:{Ze=H(ce,Ne);break}}return"".concat(kr).concat(Ze)};e.toXML=Q;var ee={toXML:Q};e.default=ee})});var Zq=T(Jq=>{var nye=Kq(),iye=Va(),Yq=Li(),sye=require("url"),Ca=Jq;Ca.putChannel=async function(t,r,n){n=n||{},n.subres="live";let i=this._objectRequestParams("PUT",t,n);i.xmlResponse=!0,i.content=nye.toXML({LiveChannelConfiguration:r}),i.successStatuses=[200];let s=await this.request(i),a=s.data.PublishUrls.Url;Array.isArray(a)||(a=[a]);let o=s.data.PlayUrls.Url;return Array.isArray(o)||(o=[o]),{publishUrls:a,playUrls:o,res:s.res}};Ca.getChannel=async function(t,r){r=r||{},r.subres="live";let n=this._objectRequestParams("GET",t,r);n.xmlResponse=!0,n.successStatuses=[200];let i=await this.request(n);return{data:i.data,res:i.res}};Ca.deleteChannel=async function(t,r){r=r||{},r.subres="live";let n=this._objectRequestParams("DELETE",t,r);return n.successStatuses=[204],{res:(await this.request(n)).res}};Ca.putChannelStatus=async function(t,r,n){n=n||{},n.subres={live:null,status:r};let i=this._objectRequestParams("PUT",t,n);return i.successStatuses=[200],{res:(await this.request(i)).res}};Ca.getChannelStatus=async function(t,r){r=r||{},r.subres={live:null,comp:"stat"};let n=this._objectRequestParams("GET",t,r);n.xmlResponse=!0,n.successStatuses=[200];let i=await this.request(n);return{data:i.data,res:i.res}};Ca.listChannels=async function(t,r){r=r||{},r.subres="live";let n=this._objectRequestParams("GET","",r);n.query=t,n.xmlResponse=!0,n.successStatuses=[200];let i=await this.request(n),s=i.data.LiveChannel||[];return Array.isArray(s)||(s=[s]),s=s.map(a=>(a.PublishUrls=a.PublishUrls.Url,Array.isArray(a.PublishUrls)||(a.PublishUrls=[a.PublishUrls]),a.PlayUrls=a.PlayUrls.Url,Array.isArray(a.PlayUrls)||(a.PlayUrls=[a.PlayUrls]),a)),{channels:s,nextMarker:i.data.NextMarker||null,isTruncated:i.data.IsTruncated==="true",res:i.res}};Ca.getChannelHistory=async function(t,r){r=r||{},r.subres={live:null,comp:"history"};let n=this._objectRequestParams("GET",t,r);n.xmlResponse=!0,n.successStatuses=[200];let i=await this.request(n),s=i.data.LiveRecord||[];return Array.isArray(s)||(s=[s]),{records:s,res:i.res}};Ca.createVod=async function(t,r,n,i){i=i||{},i.subres={vod:null},Yq(n).to(i.subres);let s=this._objectRequestParams("POST",`${t}/${r}`,i);return s.query=n,s.successStatuses=[200],{res:(await this.request(s)).res}};Ca.getRtmpUrl=function(e,t){t=t||{};let r=iye.timestamp()+(t.expires||1800),n={bucket:this.options.bucket,object:this._objectName(`live/${e}`)},i=`/${n.bucket}/${e}`;t.params=t.params||{};let s=Object.keys(t.params).sort().map(h=>`${h}:${t.params[h]}
|
|||
|
|
`).join(""),a=`${r}
|
|||
|
|
${s}${i}`,o=this.signature(a),l=sye.parse(this._getReqUrl(n));return l.protocol="rtmp:",l.query={OSSAccessKeyId:this.options.accessKeyId,Expires:r,Signature:o},Yq(t.params).to(l.query),l.format()}});var tj=T(Qq=>{var aye=Zr()("ali-oss:multipart-copy"),ej=Li(),Vh=Qq;Vh.uploadPartCopy=async function(t,r,n,i,s,a={}){a.headers=a.headers||{};let o=a.versionId||a.subres&&a.subres.versionId||null,l;o?l=`/${s.sourceBucketName}/${encodeURIComponent(s.sourceKey)}?versionId=${o}`:l=`/${s.sourceBucketName}/${encodeURIComponent(s.sourceKey)}`,a.headers["x-oss-copy-source"]=l,i&&(a.headers["x-oss-copy-source-range"]=`bytes=${i}`),a.subres={partNumber:n,uploadId:r};let h=this._objectRequestParams("PUT",t,a);h.mime=a.mime,h.successStatuses=[200];let c=await this.request(h);return{name:t,etag:c.res.headers.etag,res:c.res}};Vh.multipartUploadCopy=async function(t,r,n={}){this.resetCancelFlag();let{versionId:i=null}=n,s={versionId:i},o=(await this._getObjectMeta(r.sourceBucketName,r.sourceKey,s)).res.headers["content-length"];if(r.startOffset=r.startOffset||0,r.endOffset=r.endOffset||o,n.checkpoint&&n.checkpoint.uploadId)return await this._resumeMultipartCopy(n.checkpoint,r,n);let l=100*1024,h=r.endOffset-r.startOffset;if(h<l)throw new Error(`copySize must not be smaller than ${l}`);if(n.partSize&&n.partSize<l)throw new Error(`partSize must not be smaller than ${l}`);let c=await this.initMultipartUpload(t,n),{uploadId:g}=c,m=this._getPartSize(h,n.partSize),p={name:t,copySize:h,partSize:m,uploadId:g,doneParts:[]};return n&&n.progress&&await n.progress(0,p,c.res),await this._resumeMultipartCopy(p,r,n)};Vh._resumeMultipartCopy=async function(t,r,n){if(this.isCancel())throw this._makeCancelEvent();let{versionId:i=null}=n,s={versionId:i},{copySize:a,partSize:o,uploadId:l,doneParts:h,name:c}=t,g=this._divideMultipartCopyParts(a,o,r.startOffset),m=g.length,p={headers:{}};n.copyheaders&&ej(n.copyheaders).to(p.headers),i&&ej(s).to(p);let d=function(C,_,H){return new Promise(async(B,G)=>{try{if(!C.isCancel()){let N=g[_-1],z=`${N.start}-${N.end-1}`,I;try{I=await C.uploadPartCopy(c,l,_,z,H,p)}catch(J){throw J.status===404?C._makeAbortEvent():J}C.isCancel()||(aye(`content-range ${I.res.headers["content-range"]}`),h.push({number:_,etag:I.res.headers.etag}),t.doneParts=h,n&&n.progress&&await n.progress(h.length/m,t,I.res))}B()}catch(N){N.partNum=_,G(N)}})},y=Array.from(new Array(m),(F,C)=>C+1),E=h.map(F=>F.number),D=y.filter(F=>E.indexOf(F)<0),b=5,A=n.parallel||b;if(this.checkBrowserAndVersion("Internet Explorer","10")||A===1)for(let F=0;F<D.length;F++){if(this.isCancel())throw this._makeCancelEvent();await d(this,D[F],r)}else{let F=await this._parallelNode(D,A,d,r),C=F.find(_=>_.name==="abort");if(C)throw C;if(this.isCancel())throw this._makeCancelEvent();if(F&&F.length>0){let _=F[0];throw _.message=`Failed to copy some parts with error: ${_.toString()} part_num: ${_.partNum}`,_}}return await this.completeMultipartUpload(c,l,h,n)};Vh._divideMultipartCopyParts=function(t,r,n){let i=Math.ceil(t/r),s=[];for(let a=0;a<i;a++){let o=r*a+n,l=Math.min(o+r,t+n);s.push({start:o,end:l})}return s};Vh._getObjectMeta=async function(t,r,n){let i=this.getBucket();this.setBucket(t);let s=await this.head(r,n);return this.setBucket(i),s}});var nj=T(rj=>{var{isArray:oye}=Da(),so=rj;so._parallelNode=async function(t,r,n,i){let s=this,a=[],o=[],l=t.length/r,h=t.length%r,c=h===0?l:(t.length-h)/r+1,g=1;for(let m=0;m<t.length&&!s.isCancel();m++)if(i?o.push(n(s,t[m],i)):o.push(n(s,t[m])),o.length===r||g===c&&m===t.length-1){try{g+=1,await Promise.all(o)}catch(p){a.push(p)}o=[]}return a};so._parallel=function(t,r,n){let i=this;return new Promise(s=>{let a=[];if(r<=0||!t){s(a);return}function o(E){return function(...D){if(E===null)throw new Error("Callback was already called.");let b=E;E=null,b.apply(this,D)}}function l(E){let D=-1,b=E.length;return function(){return++D<b&&!i.isCancel()?{value:E[D],key:D}:null}}let h=l(t),c=!1,g=0,m=!1;function p(E){g-=1,E?(c=!0,a.push(E),s(a)):c&&g<=0?(c=!0,s(a)):m||(i.isCancel()?s(a):y())}function d(E,D){n(E).then(b=>{D(null,b)}).catch(b=>{D(b)
|
|||
|
|
<CompleteMultipartUpload>
|
|||
|
|
`;for(let g=0;g<s.length;g++){let m=s[g];a+=`<Part>
|
|||
|
|
`,a+=`<PartNumber>${m.number}</PartNumber>
|
|||
|
|
`,a+=`<ETag>${m.etag}</ETag>
|
|||
|
|
`,a+=`</Part>
|
|||
|
|
`}a+="</CompleteMultipartUpload>",i=i||{};let o={};o=fye(i,g=>{if(hye(g))return null}),o.subres={uploadId:r},o.headers=aj(o.headers,["x-oss-server-side-encryption","x-oss-storage-class"]);let l=this._objectRequestParams("POST",t,o);cye.encodeCallback(l,o),l.mime="xml",l.content=a,l.headers&&l.headers["x-oss-callback"]||(l.xmlResponse=!0),l.successStatuses=[200];let h=await this.request(l);i.progress&&await i.progress(1,null,h.res);let c={res:h.res,bucket:l.bucket,name:t,etag:h.res.headers.etag};return l.headers&&l.headers["x-oss-callback"]&&(c.data=JSON.parse(h.data.toString())),c};Iu._uploadPart=async function(t,r,n,i,s){s=s||{};let a={};Hh(s).to(a),a.headers=a.headers||{},a.headers["Content-Length"]=i.size,a.headers=aj(a.headers,["x-oss-server-side-encryption"]),a.subres={partNumber:n,uploadId:r};let o=this._objectRequestParams("PUT",t,a);o.mime=a.mime,process&&process.browser?o.content=i.content:o.stream=i.stream,o.successStatuses=[200],o.disabledMD5=s.disabledMD5;let h=await this.request(o);if(!h.res.headers.etag)throw new Error(`Please set the etag of expose-headers in OSS
|
|||
|
|
https://help.aliyun.com/document_detail/32069.html`);return i.stream&&(i.stream=null,o.stream=null),{name:t,etag:h.res.headers.etag,res:h.res}}});var lj=T((T_e,uj)=>{uj.exports=function(e){function t(r){if(!(this instanceof t))return new t(r);if(!r.bucket)throw new Error("require bucket for image service instance");if(!r.imageHost)throw new Error("require imageHost for image service instance");r.endpoint=r.imageHost,this.ossClient=new e(r),this.ossClient.options.imageHost=r.imageHost}return t.prototype.get=async function(n,i,s){return await this.ossClient.get(n,i,s)},t.prototype.getStream=async function(n,i){return await this.ossClient.getStream(n,i)},t.prototype.getExif=async function(n,i){let s=this.ossClient._objectRequestParams("GET",`${n}@exif`,i);s.successStatuses=[200];let a=await this.ossClient.request(s);return a=await this._parseResponse(a),{res:a.res,data:a.data}},t.prototype.getInfo=async function(n,i){let s=this.ossClient._objectRequestParams("GET",`${n}@infoexif`,i);s.successStatuses=[200];let a=await this.ossClient.request(s);return a=await this._parseResponse(a),{res:a.res,data:a.data}},t.prototype.putStyle=async function(n,i,s){let a=this.ossClient._objectRequestParams("PUT",`/?style&styleName=${n}`,s);a.successStatuses=[200],a.content=`<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
|
<Style><Content>${i}</Content></Style>`;let o=await this.ossClient.request(a);return o=await this._parseResponse(o),{res:o.res,data:o.data}},t.prototype.getStyle=async function(n,i){let s=this.ossClient._objectRequestParams("GET",`/?style&styleName=${n}`,i);s.successStatuses=[200];let a=await this.ossClient.request(s);return a=await this._parseResponse(a),{res:a.res,data:a.data}},t.prototype.listStyle=async function(n){let i=this.ossClient._objectRequestParams("GET","/?style",n);i.successStatuses=[200];let s=await this.ossClient.request(i);return s=await this._parseResponse(s),{res:s.res,data:s.data.Style}},t.prototype.deleteStyle=async function(n,i){let s=this.ossClient._objectRequestParams("DELETE",`/?style&styleName=${n}`,i);return s.successStatuses=[204],{res:(await this.ossClient.request(s)).res}},t.prototype.signatureUrl=function(n){return this.ossClient.signatureUrl(n)},t.prototype._parseResponse=async function(n){let i=n.data.toString(),s=n.res.headers["content-type"];if(s==="application/json"){let a=JSON.parse(i);n.data={},a&&Object.keys(a).forEach(o=>{n.data[o]=parseFloat(a[o].value,10)||a[o].value})}else s==="application/xml"&&(n.data=await this.ossClient.parseXML(i));return n},t}});var cF=T((I_e,lF)=>{"use strict";function pye(e){if(this._ready=!!this._ready,this._readyCallbacks=this._readyCallbacks||[],arguments.length===0)return new Promise(function(t){if(this._ready)return t();this._readyCallbacks.push(t)}.bind(this));typeof e=="function"?this._readyCallbacks.push(e):this._ready=!!e,this._ready&&this._readyCallbacks.splice(0,Infinity).forEach(function(t){process.nextTick(t)})}function cj(e){e.ready=pye}lF.exports=cj;lF.exports.mixin=cj});var dj=T((k_e,fj)=>{"use strict";var dye=cF(),hj=require("events").EventEmitter,pj=require("util");fj.exports=V1;function V1(){hj.call(this),this.on("error",this.defaultErrorHandler.bind(this))}pj.inherits(V1,hj);dye.mixin(V1.prototype);V1.prototype.defaultErrorHandler=function(e){if(!(this.listeners("error").length>1)){console.error(`
|
|||
|
|
[%s][pid: %s][%s][%s] %s: %s
|
|||
|
|
Error Stack:
|
|||
|
|
%s`,Date(),process.pid,this.constructor.name,__filename,e.name,e.message,e.stack);var t=[];for(var r in e)r==="name"||r==="message"||t.push(pj.format(" %s: %j",r,e[r]));t.length&&console.error(`Error Additions:
|
|||
|
|
%s`,t.join(`
|
|||
|
|
`)),console.error()}}});var bj=T((O_e,mj)=>{"use strict";var fF=require("os"),mye=require("fs"),gye=require("child_process"),yye="/etc/resolv.conf";function gj(){var e="eth",t=fF.platform();return t==="darwin"?e="en":t==="win32"&&(e=null),e}function vye(){return fF.platform()==="win32"?"ipconfig/all":"/sbin/ifconfig"}function yj(e,t){return t==="IPv4"?e==="IPv4"||e===4:t==="IPv6"?e==="IPv6"||e===6:e===t}function li(e,t){typeof e=="function"&&(t=e,e=null);var r={ip:li.ip(e),ipv6:li.ipv6(e),mac:null};li.mac(e,function(n,i){i&&(r.mac=i),t(n,r)})}li.interface=function(e,t){var r=fF.networkInterfaces(),n=!t;t=t||gj(),e=e||"IPv4";for(var i=-1;i<8;i++){var s=t+(i>=0?i:""),a=r[s];if(a)for(var o=0;o<a.length;o++){var l=a[o];if(yj(l.family,e))return l}}if(n)for(var h in r)for(var a=r[h],i=0;i<a.length;i++){var l=a[i];if(yj(l.family,e)&&!l.address.startsWith("127."))return l}};li.ip=function(e){var t=li.interface("IPv4",e);return t&&t.address};li.ipv6=function(e){var t=li.interface("IPv6",e);return t&&t.address};var vj=/^(\w+)\:\s+flags=/,Ej=/^(\w+)\s{2,}link encap:\w+/i,Aj=li.MAC_RE=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,Eye=li.MAC_IP_RE=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function Aye(e,t,r){for(var n=e.split(`
|
|||
|
|
`),i=0;i<n.length;i++){var s=n[i].trimRight(),a=vj.exec(s)||Ej.exec(s);if(!!a){var o=a[1];if(o.indexOf(t)===0){var l=null,h=null,c=Aj.exec(s);for(c&&(h=c[1]),i++;;){if(s=n[i],!s||vj.exec(s)||Ej.exec(s)){i--;break}h||(c=Aj.exec(s),c&&(h=c[1])),l||(c=Eye.exec(s),c&&(l=c[1])),i++}if(l===r)return h}}}}li.mac=function(e,t){typeof e=="function"&&(t=e,e=null),e=e||gj();var r=li.interface("IPv4",e);if(!r)return t();if(!process.env.CI&&(r.mac==="ff:00:00:00:00:00"||r.mac==="00:00:00:00:00:00")&&(r.mac=""),r.mac)return t(null,r.mac);gye.exec(vye(),{timeout:5e3},function(n,i,s){if(n||!i)return t(n);var a=Aye(i||"",e,r.address);t(null,a)})};var bye=/^nameserver\s+(\d+\.\d+\.\d+\.\d+)$/i;li.dns=function(e,t){typeof e=="function"&&(t=e,e=null),e=e||yye,mye.readFile(e,"utf8",function(r,n){if(r)return t(r);var i=[];n=n||"";for(var s=n.split(`
|
|||
|
|
`),a=0;a<s.length;a++){var o=s[a].trim(),l=bye.exec(o);l&&i.push(l[1])}t(null,i)})};mj.exports=li});var Fj=T((P_e,Dj)=>{var Cj=dj(),Dye=require("util"),Cye=cF(),Fye=Li(),xye=bj().ip(),Sye="roundRobin",wye="masterSlave";Dj.exports=function(e){function t(s){if(!(this instanceof t))return new t(s);if(!s||!Array.isArray(s.cluster))throw new Error("require options.cluster to be an array");Cj.call(this),this.clients=[],this.availables={};for(let o=0;o<s.cluster.length;o++){let l=s.cluster[o];Fye(s).pick("timeout","agent","urllib").to(l),this.clients.push(new e(l)),this.availables[o]=!0}this.schedule=s.schedule||Sye,this.masterOnly=!!s.masterOnly,this.index=0;let a=s.heartbeatInterval||1e4;this._checkAvailableLock=!1,this._timerId=this._deferInterval(this._checkAvailable.bind(this,!0),a),this._ignoreStatusFile=s.ignoreStatusFile||!1,this._init()}Dye.inherits(t,Cj);let r=t.prototype;Cye.mixin(r);let n=["head","get","getStream","list","getACL"],i=["put","putStream","delete","deleteMulti","copy","putMeta","putACL"];return n.forEach(s=>{r[s]=async function(...a){let o=this.chooseAvailable(),l;try{return await o[s](...a)}catch(h){if(h.status&&h.status>=200&&h.status<500)throw h;l=h}for(let h=0;h<this.clients.length;h++){let c=this.clients[h];if(c!==o)try{return await c[s].apply(o,a)}catch(g){if(g.status&&g.status>=200&&g.status<500)throw g;l=g}}throw l.message+=" (all clients are down)",l}}),i.forEach(s=>{r[s]=async function(...a){return(await Promise.all(this.clients.map(l=>l[s](...a))))[0]}}),r.signatureUrl=function(...a){return this.chooseAvailable().signatureUrl(...a)},r.getObjectUrl=function(...a){return this.chooseAvailable().getObjectUrl(...a)},r._init=function(){let a=this;(async()=>{await a._checkAvailable(a._ignoreStatusFile),a.ready(!0)})().catch(o=>{a.emit("error",o)})},r._checkAvailable=async function(a){let o=`._ali-oss/check.status.${xye}.txt`;if(a||await this.put(o,Buffer.from(`check available started at ${Date()}`)),this._checkAvailableLock)return;this._checkAvailableLock=!0;let l=[];for(let h=0;h<this.clients.length;h++){let c=this.clients[h],g=await this._checkStatus(c,o);g||(g=await this._checkStatus(c,o)),g||(g=await this._checkStatus(c,o),g||l.push(c._objectUrl(o))),this.availables[h]=g}if(this._checkAvailableLock=!1,l.length>0){let h=new Error(`${l.length} data node down, please check status file: ${l.join(", ")}`);h.name="CheckAvailableError",this.emit("error",h)}},r._checkStatus=async function(a,o){let l=!0;try{await a.head(o)}catch(h){(!h.status||h.status>=500||h.status<200)&&(l=!1)}return l},r.chooseAvailable=function(){if(this.schedule===wye){if(this.masterOnly)return this.clients[0];for(let o=0;o<this.clients.length;o++)if(this.availables[o])return this.clients[o];return this.clients[0]}let a=this.clients.length;for(;a>0;){let o=this._nextRRIndex();if(this.availables[o])return this.clients[o];a--}return this.clients[0]},r._nextRRIndex=function(){let a=this.index++;return this.index>=this.clients.length&&(this.index=0),a},r._error=function(a){if(a)throw a},r._createCallback=function(a,o,l){return()=>{l=l||this._error,o.call(a).then(()=>{l()},l)}},r._deferInterval=function(a,o,l){return setInterval(this._createCallback(this,a,l),o)},r.close=function(){clearInterval(this._timerId),this._timerId=null},t}});var Sj=T((N_e,xj)=>{var hF=Zr()("ali-oss:sts"),_ye=require("crypto"),Bye=require("querystring"),Tye=Li(),Iye=P0(),kye=wu(),Oye=_f(),Pye=kC(),Nye=new Iye;function H1(e){if(!(this instanceof H1))return new H1(e);if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");this.options={endpoint:e.endpoint||"https://sts.aliyuncs.com",format:"JSON",apiVersion:"2015-04-01",sigMethod:"HMAC-SHA1",sigVersion:"1.0",timeout:"60s"},Tye(e).to(this.options),this.options.urllib?this.urllib=this.options.urllib:(this.urllib=Pye,this.agent=this.options.agent||Nye)}xj.exports=H1;var z1=H1.prototype;z1.assumeRole=async function(t,r,n,i,s){let a=this.options,o={Action:"AssumeRole",RoleArn:t,RoleSessionName:i||"app",DurationSeconds:n||3600,Format:a.format,Version:a.apiVersion,AccessKeyId:a
|
|||
|
|
raw xml: ${n}`,a.status=t.status,a.requestId=t.headers["x-oss-request-id"],a}let s=i.Message||`unknow request error, status: ${t.status}`;i.Condition&&(s+=` (condition: ${i.Condition})`),r=new Error(s),r.name=i.Code?`${i.Code}Error`:"UnknownError",r.status=t.status,r.code=i.Code,r.requestId=i.RequestId,r.hostId=i.HostId}return zh("generate error %j",r),r};vr.setSLDEnabled=function(t){return this.options.sldEnable=!!t,this}});var _c=T((wc,Gh)=>{(function(){var e,t="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",o=500,l="__lodash_placeholder__",h=1,c=2,g=4,m=1,p=2,d=1,y=2,E=4,D=8,b=16,A=32,F=64,C=128,_=256,H=512,B=30,G="...",N=800,z=16,I=1,J=2,ne=3,U=1/0,se=9007199254740991,te=17976931348623157e292,he=0/0,Q=4294967295,ee=Q-1,ue=Q>>>1,ce=[["ary",C],["bind",d],["bindKey",y],["curry",D],["curryRight",b],["flip",H],["partial",A],["partialRight",F],["rearg",_]],Ae="[object Arguments]",xe="[object Array]",Ie="[object AsyncFunction]",q="[object Boolean]",w="[object Date]",ge="[object DOMException]",$="[object Error]",me="[object Function]",pe="[object GeneratorFunction]",re="[object Map]",Se="[object Number]",De="[object Null]",ve="[object Object]",_e="[object Promise]",et="[object Proxy]",Ne="[object RegExp]",pt="[object Set]",dr="[object String]",kr="[object Symbol]",sn="[object Undefined]",Ze="[object WeakMap]",At="[object WeakSet]",Ge="[object ArrayBuffer]",ut="[object DataView]",st="[object Float32Array]",dt="[object Float64Array]",Qe="[object Int8Array]",bt="[object Int16Array]",Nn="[object Int32Array]",br="[object Uint8Array]",Ut="[object Uint8ClampedArray]",Or="[object Uint16Array]",Pr="[object Uint32Array]",Vt=/\b__p \+= '';/g,cr=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jr=/&(?:amp|lt|gt|quot|#39);/g,ye=/[&<>"']/g,Ee=RegExp(Jr.source),Oe=RegExp(ye.source),x=/<%-([\s\S]+?)%>/g,R=/<%([\s\S]+?)%>/g,O=/<%=([\s\S]+?)%>/g,L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,de=/[\\^$.*+?()[\]{}|]/g,Ce=RegExp(de.source),Me=/^\s+/,He=/\s/,tt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rt=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,bn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dn=/[()=,{}\[\]\/\s]/,Gr=/\\(\\)?/g,As=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bs=/\w*$/,bp=/^[-+]0x[0-9a-f]+$/i,xg=/^0b[01]+$/i,Sg=/^\[object .+?Constructor\]$/,wg=/^0o[0-7]+$/i,_g=/^(?:0|[1-9]\d*)$/,Bg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bi=/($^)/,Tg=/['\n\r\u2028\u2029\\]/g,zu="\\ud800-\\udfff",Ig="\\u0300-\\u036f",kg="\\ufe20-\\ufe2f",Og="\\u20d0-\\u20ff",Dp=Ig+kg+Og,Cp="\\u2700-\\u27bf",Fp="a-z\\xdf-\\xf6\\xf8-\\xff",Pg="\\xac\\xb1\\xd7\\xf7",mn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ng="\\u2000-\\u206f",Rg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xp="A-Z\\xc0-\\xd6\\xd8-\\xde",po="\\ufe0e\\ufe0f",Dn=Pg+mn+Ng+Rg,Dr="['\u2019]",Mg="["+zu+"]",Lc="["+Dn+"]",Cn="["+Dp+"]",qc="\\d+",Sp="["+Cp+"]",wp="["+Fp+"]",_p="[^"+zu+Dn+qc+Cp+Fp+xp+"]",mo="\\ud83c[\\udffb-\\udfff]",jc="(?:"+Cn+"|"+mo+")",Bp="[^"+zu+"]",Uc="(?:\\ud83c[\\udde6-\\uddff]){2}",Vc="[\\ud800-\\udbff][\\udc00-\\udfff]",Ds="["+xp+"]",k="\\u200d",M="(?:"+wp+"|"+_p+")",X="(?:"+Ds+"|"+_p+")",ae="(?:"+Dr+"(?:d|ll|m|re|s|t|ve))?",Te="(?:"+Dr+"(?:D|LL|M|RE|S|T|VE))?",Pe=jc+"?",je="["+po+"]?",ze="(?:"+k+"(?:"+[Bp,Uc,Vc].join("|")+")"+je+Pe+")*",er="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rn=je+Pe+ze,Mn="(?:"+[Sp,Uc,Vc].join("|")+")"+Rn,ns="(?:"+[Bp+Cn+"?",Cn,Uc,Vc,Mg].join("|")+")",Gu=RegExp(Dr,"g"),fi=RegExp(Cn,"g"),Ln=RegExp(mo+"(?="+mo+")|"+ns+Rn,"g"),Wu=RegExp([Ds+"?"+wp+"+"+ae+"(?="+[Lc,Ds,"$"].join("|")+")",X+"+"+Te+"(?="+[Lc,Ds+M,"$"].join("|")+")",Ds+"?"+M+"+"+ae,Ds+"+"+Te,Wr,er,qc,Mn].join("|"),"g"),Cs=RegExp("["+k+zu+Dp+po+"]"),Hc=
|
|||
|
|
/* [wrapped with `+f+`] */
|
|||
|
|
`)}function iG(u){return ht(u)||Fo(u)||!!(Ux&&u&&u[Ux])}function ta(u,f){var v=typeof u;return f=f??se,!!f&&(v=="number"||v!="symbol"&&_g.test(u))&&u>-1&&u%1==0&&u<f}function jn(u,f,v){if(!mr(v))return!1;var S=typeof f;return(S=="number"?Zn(v)&&ta(f,v.length):S=="string"&&f in v)?as(v[f],u):!1}function Fy(u,f){if(ht(u))return!1;var v=typeof u;return v=="number"||v=="symbol"||v=="boolean"||u==null||mi(u)?!0:K.test(u)||!L.test(u)||f!=null&&u in zt(f)}function sG(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function xy(u){var f=i0(u),v=j[f];if(typeof v!="function"||!(f in xt.prototype))return!1;if(u===v)return!0;var S=by(v);return!!S&&u===S[0]}function aG(u){return!!Mx&&Mx in u}var oG=Pp?ra:Vy;function rf(u){var f=u&&u.constructor,v=typeof f=="function"&&f.prototype||Ju;return u===v}function M2(u){return u===u&&!mr(u)}function L2(u,f){return function(v){return v==null?!1:v[u]===f&&(f!==e||u in zt(v))}}function uG(u){var f=c0(u,function(S){return v.size===o&&v.clear(),S}),v=f.cache;return f}function lG(u,f){var v=u[1],S=f[1],P=v|S,W=P<(d|y|C),Z=S==C&&v==D||S==C&&v==_&&u[7].length<=f[8]||S==(C|_)&&f[7].length<=f[8]&&v==D;if(!(W||Z))return u;S&d&&(u[2]=f[2],P|=v&d?0:E);var ie=f[3];if(ie){var fe=u[3];u[3]=fe?A2(fe,ie,f[4]):ie,u[4]=fe?_a(u[3],l):f[4]}return ie=f[5],ie&&(fe=u[5],u[5]=fe?b2(fe,ie,f[6]):ie,u[6]=fe?_a(u[5],l):f[6]),ie=f[7],ie&&(u[7]=ie),S&C&&(u[8]=u[8]==null?f[8]:Fn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=P,u}function cG(u){var f=[];if(u!=null)for(var v in zt(u))f.push(v);return f}function fG(u){return Rp.call(u)}function q2(u,f,v){return f=Yr(f===e?u.length-1:f,0),function(){for(var S=arguments,P=-1,W=Yr(S.length-f,0),Z=be(W);++P<W;)Z[P]=S[f+P];P=-1;for(var ie=be(f+1);++P<f;)ie[P]=S[P];return ie[f]=v(Z),hi(u,this,ie)}}function j2(u,f){return f.length<2?u:bo(u,Ni(f,0,-1))}function hG(u,f){for(var v=u.length,S=Fn(f.length,v),P=Yn(u);S--;){var W=f[S];u[S]=ta(W,v)?P[W]:e}return u}function Sy(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var U2=H2(c2),nf=wH||function(u,f){return on.setTimeout(u,f)},wy=H2(Nz);function V2(u,f,v){var S=f+"";return wy(u,nG(S,pG(eG(S),v)))}function H2(u){var f=0,v=0;return function(){var S=IH(),P=z-(S-v);if(v=S,P>0){if(++f>=N)return arguments[0]}else f=0;return u.apply(e,arguments)}}function a0(u,f){var v=-1,S=u.length,P=S-1;for(f=f===e?S:f;++v<f;){var W=ly(v,P),Z=u[W];u[W]=u[v],u[v]=Z}return u.length=f,u}var z2=uG(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(Y,function(v,S,P,W){f.push(P?W.replace(Gr,"$1"):S||v)}),f});function Ss(u){if(typeof u=="string"||mi(u))return u;var f=u+"";return f=="0"&&1/u==-U?"-0":f}function Co(u){if(u!=null){try{return Np.call(u)}catch(f){}try{return u+""}catch(f){}}return""}function pG(u,f){return Ii(ce,function(v){var S="_."+v[0];f&v[1]&&!Tp(u,S)&&u.push(S)}),u.sort()}function G2(u){if(u instanceof xt)return u.clone();var f=new Oi(u.__wrapped__,u.__chain__);return f.__actions__=Yn(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function dG(u,f,v){(v?jn(u,f,v):f===e)?f=1:f=Yr(mt(f),0);var S=u==null?0:u.length;if(!S||f<1)return[];for(var P=0,W=0,Z=be(Vp(S/f));P<S;)Z[W++]=Ni(u,P,P+=f);return Z}function mG(u){for(var f=-1,v=u==null?0:u.length,S=0,P=[];++f<v;){var W=u[f];W&&(P[S++]=W)}return P}function gG(){var u=arguments.length;if(!u)return[];for(var f=be(u-1),v=arguments[0],S=u;S--;)f[S-1]=arguments[S];return wa(ht(v)?Yn(v):[v],gn(f,1))}var yG=vt(function(u,f){return Nr(u)?Yc(u,gn(f,1,Nr,!0)):[]}),vG=vt(function(u,f){var v=Ri(f);return Nr(v)&&(v=e),Nr(u)?Yc(u,gn(f,1,Nr,!0),rt(v,2)):[]}),EG=vt(function(u,f){var v=Ri(f);return Nr(v)&&(v=e),Nr(u)?Yc(u,gn(f,1,Nr,!0),e,v):[]});function AG(u,f,v){var S=u==null?0:u.length;return S?(f=v||f===e?1:mt(f),Ni(u,f<0?0:f,S)):[]}function bG(u,f,v){var S=u==null?0:u.length;return S?(f=v||f===e?1:mt(f),f=S-f,Ni(u,0,f<0?0:f)):[]}function DG(u,f){return u&&u.length?Zp(u,rt(f,3),!0,!0):[]}function CG(u,f){return u&&u.length?Zp(u,rt(f,3),!0):[]}function FG(u,f,v,S){var P=u==null?0:u.leng
|
|||
|
|
`;u.replace(Ue,function(it,Dt,Bt,gi,Un,yi){return Bt||(Bt=gi),ke+=u.slice(we,yi).replace(Tg,oH),Dt&&(ie=!0,ke+=`' +
|
|||
|
|
__e(`+Dt+`) +
|
|||
|
|
'`),Un&&(fe=!0,ke+=`';
|
|||
|
|
`+Un+`;
|
|||
|
|
__p += '`),Bt&&(ke+=`' +
|
|||
|
|
((__t = (`+Bt+`)) == null ? '' : __t) +
|
|||
|
|
'`),we=yi+it.length,it}),ke+=`';
|
|||
|
|
`;var nt=Yt.call(f,"variable")&&f.variable;if(!nt)ke=`with (obj) {
|
|||
|
|
`+ke+`
|
|||
|
|
}
|
|||
|
|
`;else if(dn.test(nt))throw new ft(s);ke=(fe?ke.replace(Vt,""):ke).replace(cr,"$1").replace(Kr,"$1;"),ke="function("+(nt||"obj")+`) {
|
|||
|
|
`+(nt?"":`obj || (obj = {});
|
|||
|
|
`)+"var __t, __p = ''"+(ie?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join;
|
|||
|
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
|
`:`;
|
|||
|
|
`)+ke+`return __p
|
|||
|
|
}`;var gt=CS(function(){return Ht(W,Ke+"return "+ke).apply(e,Z)});if(gt.source=ke,ky(gt))throw gt;return gt}function O$(u){return Xt(u).toLowerCase()}function P$(u){return Xt(u).toUpperCase()}function N$(u,f,v){if(u=Xt(u),u&&(v||f===e))return kx(u);if(!u||!(f=di(f)))return u;var S=is(u),P=is(f),W=Ox(S,P),Z=Px(S,P)+1;return Pa(S,W,Z).join("")}function R$(u,f,v){if(u=Xt(u),u&&(v||f===e))return u.slice(0,Rx(u)+1);if(!u||!(f=di(f)))return u;var S=is(u),P=Px(S,is(f))+1;return Pa(S,0,P).join("")}function M$(u,f,v){if(u=Xt(u),u&&(v||f===e))return u.replace(Me,"");if(!u||!(f=di(f)))return u;var S=is(u),P=Ox(S,is(f));return Pa(S,P).join("")}function L$(u,f){var v=B,S=G;if(mr(f)){var P="separator"in f?f.separator:P;v="length"in f?mt(f.length):v,S="omission"in f?di(f.omission):S}u=Xt(u);var W=u.length;if($u(u)){var Z=is(u);W=Z.length}if(v>=W)return u;var ie=v-Ku(S);if(ie<1)return S;var fe=Z?Pa(Z,0,ie).join(""):u.slice(0,ie);if(P===e)return fe+S;if(Z&&(ie+=fe.length-ie),Oy(P)){if(u.slice(ie).search(P)){var we,Be=fe;for(P.global||(P=Kg(P.source,Xt(bs.exec(P))+"g")),P.lastIndex=0;we=P.exec(Be);)var ke=we.index;fe=fe.slice(0,ke===e?ie:ke)}}else if(u.indexOf(di(P),ie)!=ie){var Ue=fe.lastIndexOf(P);Ue>-1&&(fe=fe.slice(0,Ue))}return fe+S}function q$(u){return u=Xt(u),u&&Ee.test(u)?u.replace(Jr,dH):u}var j$=tl(function(u,f,v){return u+(v?" ":"")+f.toUpperCase()}),Ry=F2("toUpperCase");function DS(u,f,v){return u=Xt(u),f=v?e:f,f===e?lH(u)?yH(u):eH(u):u.match(f)||[]}var CS=vt(function(u,f){try{return hi(u,e,f)}catch(v){return ky(v)?v:new ft(v)}}),U$=ea(function(u,f){return Ii(f,function(v){v=Ss(v),Zs(u,v,Ty(u[v],u))}),u});function V$(u){var f=u==null?0:u.length,v=rt();return u=f?fr(u,function(S){if(typeof S[1]!="function")throw new ki(i);return[v(S[0]),S[1]]}):[],vt(function(S){for(var P=-1;++P<f;){var W=u[P];if(hi(W[0],this,S))return hi(W[1],this,S)}})}function H$(u){return dz(Pi(u,h))}function My(u){return function(){return u}}function z$(u,f){return u==null||u!==u?f:u}var G$=S2(),W$=S2(!0);function ei(u){return u}function Ly(u){return r2(typeof u=="function"?u:Pi(u,h))}function X$(u){return i2(Pi(u,h))}function $$(u,f){return s2(u,Pi(f,h))}var K$=vt(function(u,f){return function(v){return Zc(v,u,f)}}),J$=vt(function(u,f){return function(v){return Zc(u,v,f)}});function qy(u,f,v){var S=un(f),P=Kp(f,S);v==null&&!(mr(f)&&(P.length||!S.length))&&(v=f,f=u,u=this,P=Kp(f,un(f)));var W=!(mr(v)&&"chain"in v)||!!v.chain,Z=ra(u);return Ii(P,function(ie){var fe=f[ie];u[ie]=fe,Z&&(u.prototype[ie]=function(){var we=this.__chain__;if(W||we){var Be=u(this.__wrapped__),ke=Be.__actions__=Yn(this.__actions__);return ke.push({func:fe,args:arguments,thisArg:u}),Be.__chain__=we,Be}return fe.apply(u,wa([this.value()],arguments))})}),u}function Y$(){return on._===this&&(on._=CH),this}function jy(){}function Z$(u){return u=mt(u),vt(function(f){return a2(f,u)})}var Q$=yy(fr),eK=yy(wx),tK=yy(Vg);function FS(u){return Fy(u)?Hg(Ss(u)):Iz(u)}function rK(u){return function(f){return u==null?e:bo(u,f)}}var nK=_2(),iK=_2(!0);function Uy(){return[]}function Vy(){return!1}function sK(){return{}}function aK(){return""}function oK(){return!0}function uK(u,f){if(u=mt(u),u<1||u>se)return[];var v=Q,S=Fn(u,Q);f=rt(f),u-=Q;for(var P=Wg(S,f);++v<u;)f(v);return P}function lK(u){return ht(u)?fr(u,Ss):mi(u)?[u]:Yn(z2(Xt(u)))}function cK(u){var f=++bH;return Xt(u)+f}var fK=t0(function(u,f){return u+f},0),hK=vy("ceil"),pK=t0(function(u,f){return u/f},1),dK=vy("floor");function mK(u){return u&&u.length?$p(u,ei,ny):e}function gK(u,f){return u&&u.length?$p(u,rt(f,2),ny):e}function yK(u){return Tx(u,ei)}function vK(u,f){return Tx(u,rt(f,2))}function EK(u){return u&&u.length?$p(u,ei,oy):e}function AK(u,f){return u&&u.length?$p(u,rt(f,2),oy):e}var bK=t0(function(u,f){return u*f},1),DK=vy("round"),CK=t0(function(u,f){return u-f},0);function FK(u){return u&&u.length?Gg(u,ei):0}function xK(u,f){return u&&u.length?Gg(u,rt(f,2)):0}return j.after=XW,j.ary=tS,j.assign=PX,j.assignIn=mS,j.assignInWith=d0,j.assignWith=NX,j.at=RX,j.before=rS,j.bind=Ty,j.bindAll=U$,j.bindKey=nS,j.castArray=sX,j.chain=Z2,
|
|||
|
|
`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||t[r]&&$ve[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};"use strict";var sU=Symbol("internals");function Kh(e){return e&&String(e).trim().toLowerCase()}function Z1(e){return e===!1||e==null?e:oe.isArray(e)?e.map(Z1):String(e)}function Kve(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var Jve=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function SF(e,t,r,n,i){if(oe.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!oe.isString(t)){if(oe.isString(n))return t.indexOf(n)!==-1;if(oe.isRegExp(n))return n.test(t)}}function Yve(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Zve(e,t){let r=oe.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,a){return this[n].call(this,t,i,s,a)},configurable:!0})})}var Jh=class{constructor(t){t&&this.set(t)}set(t,r,n){let i=this;function s(o,l,h){let c=Kh(l);if(!c)throw new Error("header name must be a non-empty string");let g=oe.findKey(i,c);(!g||i[g]===void 0||h===!0||h===void 0&&i[g]!==!1)&&(i[g||l]=Z1(o))}let a=(o,l)=>oe.forEach(o,(h,c)=>s(h,c,l));if(oe.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(oe.isString(t)&&(t=t.trim())&&!Jve(t))a(iU(t),r);else if(oe.isHeaders(t))for(let[o,l]of t.entries())s(l,o,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=Kh(t),t){let n=oe.findKey(this,t);if(n){let i=this[n];if(!r)return i;if(r===!0)return Kve(i);if(oe.isFunction(r))return r.call(this,i,n);if(oe.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Kh(t),t){let n=oe.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||SF(this,this[n],n,r)))}return!1}delete(t,r){let n=this,i=!1;function s(a){if(a=Kh(a),a){let o=oe.findKey(n,a);o&&(!r||SF(n,n[o],o,r))&&(delete n[o],i=!0)}}return oe.isArray(t)?t.forEach(s):s(t),i}clear(t){let r=Object.keys(this),n=r.length,i=!1;for(;n--;){let s=r[n];(!t||SF(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){let r=this,n={};return oe.forEach(this,(i,s)=>{let a=oe.findKey(n,s);if(a){r[a]=Z1(i),delete r[s];return}let o=t?Yve(s):String(s).trim();o!==s&&delete r[s],r[o]=Z1(i),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return oe.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&oe.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|||
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){let n=(this[sU]=this[sU]={accessors:{}}).accessors,i=this.prototype;function s(a){let o=Kh(a);n[o]||(Zve(i,a),n[o]=!0)}return oe.isArray(t)?t.forEach(s):s(t),this}};Jh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(Jh.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});oe.freezeMethods(Jh);var Er=Jh;"use strict";function Yh(e,t){let r=this||Oc,n=t||r,i=Er.from(n.headers),s=n.data;return oe.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}"use strict";function Zh(e){return!!(e&&e.__CANCEL__)}"use strict";function aU(e,t,r){Ve.call(this,e??"canceled",Ve.ERR_CANCELED,t,r),this.name="CanceledError"}oe.inherits(aU,Ve,{__CANCEL__:!0});var _i=aU;"use strict";function Ks(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ve("Request failed with status code "+r.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}"use strict";function wF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}"use strict";function _F(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}"use strict";function Ou(e,t){return e&&!wF(t)?_F(e,t):t}var xU=Mt(BE()),SU=Mt(require("http")),wU=Mt(require("https")),_U=Mt(require("util")),BU=Mt(pU()),Fa=Mt(require("zlib"));var Nu="1.7.2";"use strict";function ip(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}"use strict";var cEe=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function UF(e,t,r){let n=r&&r.Blob||Ir.classes.Blob,i=ip(e);if(t===void 0&&n&&(t=!0),i==="data"){e=i.length?e.slice(i.length+1):e;let s=cEe.exec(e);if(!s)throw new Ve("Invalid URL",Ve.ERR_INVALID_URL);let a=s[1],o=s[2],l=s[3],h=Buffer.from(decodeURIComponent(l),o?"base64":"utf8");if(t){if(!n)throw new Ve("Blob is not supported",Ve.ERR_NOT_SUPPORT);return new n([h],{type:a})}return h}throw new Ve("Unsupported protocol "+i,Ve.ERR_NOT_SUPPORT)}var Ru=Mt(require("stream"));var dU=Mt(require("stream"));"use strict";function fEe(e,t){let r=0,n=1e3/t,i=null;return function(){let a=this===!0,o=Date.now();if(a||o-r>n)return i&&(clearTimeout(i),i=null),r=o,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,r=Date.now(),e.apply(null,arguments)),n-(o-r)))}}var Q1=fEe;"use strict";function hEe(e,t){e=e||10;let r=new Array(e),n=new Array(e),i=0,s=0,a;return t=t!==void 0?t:1e3,function(l){let h=Date.now(),c=n[s];a||(a=h),r[i]=l,n[i]=h;let g=s,m=0;for(;g!==i;)m+=r[g++],g=g%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),h-a<t)return;let p=c&&h-c;return p?Math.round(m*1e3/p):void 0}}var eg=hEe;"use strict";var tg=Symbol("internals"),mU=class extends dU.default.Transform{constructor(t){t=oe.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(o,l)=>!oe.isUndefined(l[o])),super({readableHighWaterMark:t.chunkSize});let r=this,n=this[tg]={length:t.length,timeWindow:t.timeWindow,ticksRate:t.ticksRate,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=eg(n.ticksRate*t.samplesCount,n.timeWindow);this.on("newListener",o=>{o==="progress"&&(n.isCaptured||(n.isCaptured=!0))});let s=0;n.updateProgress=Q1(function(){let l=n.length,h=n.bytesSeen,c=h-s;if(!c||r.destroyed)return;let g=i(c);s=h,process.nextTick(()=>{r.emit("progress",{loaded:h,total:l,progress:l?h/l:void 0,bytes:c,rate:g||void 0,estimated:g&&l&&h<=l?(l-h)/g:void 0,lengthComputable:l!=null})})},n.ticksRate);let a=()=>{n.updateProgress.call(!0)};this.once("end",a),this.once("error",a)}_read(t){let r=this[tg];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let i=this,s=this[tg],a=s.maxRate,o=this.readableHighWaterMark,l=s.timeWindow,h=1e3/l,c=a/h,g=s.minChunkSize!==!1?Math.max(s.minChunkSiz
|
|||
|
|
`,mEe=sp.encode(uo),gEe=2,EU=class{constructor(t,r){let{escapeName:n}=this.constructor,i=oe.isString(r),s=`Content-Disposition: form-data; name="${n(t)}"${!i&&r.name?`; filename="${n(r.name)}"`:""}${uo}`;i?r=sp.encode(String(r).replace(/\r?\n|\r\n?/g,uo)):s+=`Content-Type: ${r.type||"application/octet-stream"}${uo}`,this.headers=sp.encode(s+uo),this.contentLength=i?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+gEe,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;oe.isTypedArray(t)?yield t:yield*rg(t),yield mEe}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},yEe=(e,t,r)=>{let{tag:n="form-data-boundary",size:i=25,boundary:s=n+"-"+oe.generateString(i,dEe)}=r||{};if(!oe.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let a=sp.encode("--"+s+uo),o=sp.encode("--"+s+"--"+uo+uo),l=o.byteLength,h=Array.from(e.entries()).map(([g,m])=>{let p=new EU(g,m);return l+=p.size,p});l+=a.byteLength*h.length,l=oe.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(l)&&(c["Content-Length"]=l),t&&t(c),vU.Readable.from(async function*(){for(let g of h)yield a,yield*g.encode();yield o}())},AU=yEe;var bU=Mt(require("stream"));"use strict";var DU=class extends bU.default.Transform{__transform(t,r,n){this.push(t),n()}_transform(t,r,n){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,r)}this.__transform(t,r,n)}},CU=DU;var vEe=(e,t)=>oe.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(i=>{try{t?n(null,...t(i)):n(null,i)}catch(s){n(s)}},n)}:e,FU=vEe;"use strict";var IU={flush:Fa.default.constants.Z_SYNC_FLUSH,finishFlush:Fa.default.constants.Z_SYNC_FLUSH},EEe={flush:Fa.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Fa.default.constants.BROTLI_OPERATION_FLUSH},kU=oe.isFunction(Fa.default.createBrotliDecompress),{http:AEe,https:bEe}=BU.default,DEe=/https:?/,OU=Ir.protocols.map(e=>e+":");function CEe(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function PU(e,t,r){let n=t;if(!n&&n!==!1){let i=(0,xU.getProxyForUrl)(r);i&&(n=new URL(i))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let s=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+s}e.headers.host=e.hostname+(e.port?":"+e.port:"");let i=n.hostname||n.host;e.hostname=i,e.host=i,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(s){PU(s,t,s.href)}}var FEe=typeof process!="undefined"&&oe.kindOf(process)==="process",xEe=e=>new Promise((t,r)=>{let n,i,s=(l,h)=>{i||(i=!0,n&&n(l,h))},a=l=>{s(l),t(l)},o=l=>{s(l,!0),r(l)};e(a,o,l=>n=l).catch(o)}),SEe=({address:e,family:t})=>{if(!oe.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},NU=(e,t)=>SEe(oe.isObject(e)?e:{address:e,family:t}),RU=FEe&&function(t){return xEe(async function(n,i,s){let{data:a,lookup:o,family:l}=t,{responseType:h,responseEncoding:c}=t,g=t.method.toUpperCase(),m,p=!1,d;if(o){let te=FU(o,he=>oe.isArray(he)?he:[he]);o=(he,Q,ee)=>{te(he,Q,(ue,ce,Ae)=>{if(ue)return ee(ue);let xe=oe.isArray(ce)?ce.map(Ie=>NU(Ie)):[NU(ce,Ae)];Q.all?ee(ue,xe):ee(ue,xe[0].address,xe[0].family)})}}let y=new TU.EventEmitter,E=()=>{t.cancelToken&&t.cancelToken.unsubscribe(D),t.signal&&t.signal.removeEventListener("abort",D),y.removeAllListeners()};s((te,he)=>{m=!0,he&&(p=!0,E())});function D(te){y.emit("abort",!te||te.type?new _i(null,t,d):te)}y.once("abort",i),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(D),t.signal&&(t.signal.aborted?D():t.signal.addEventListener("abort",D)));let b=Ou(t.baseURL,t.url),A=new URL(b,"http://localhost"),F=A.protocol||OU[0]
|
|||
|
|
`+s.map(WU).join(`
|
|||
|
|
`):" "+WU(s[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:WF};"use strict";function XF(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _i(null,e)}function og(e){return XF(e),e.headers=Er.from(e.headers),e.data=Yh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ag.getAdapter(e.adapter||Oc.adapter)(e).then(function(n){return XF(e),n.data=Yh.call(e,e.transformResponse,n),n.headers=Er.from(n.headers),n},function(n){return Zh(n)||(XF(e),n&&n.response&&(n.response.data=Yh.call(e,e.transformResponse,n.response),n.response.headers=Er.from(n.response.headers))),Promise.reject(n)})}"use strict";var $F={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$F[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var XU={};$F.transitional=function(t,r,n){function i(s,a){return"[Axios v"+Nu+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return(s,a,o)=>{if(t===!1)throw new Ve(i(a," has been removed"+(r?" in "+r:"")),Ve.ERR_DEPRECATED);return r&&!XU[a]&&(XU[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,o):!0}};function NEe(e,t,r){if(typeof e!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let s=n[i],a=t[s];if(a){let o=e[s],l=o===void 0||a(o,s,e);if(l!==!0)throw new Ve("option "+s+" must be "+l,Ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ve("Unknown option "+s,Ve.ERR_BAD_OPTION)}}var ug={assertOptions:NEe,validators:$F};"use strict";var lo=ug.validators,ap=class{constructor(t){this.defaults=t,this.interceptors={request:new bF,response:new bF}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|||
|
|
`+s):n.stack=s}catch(a){}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Es(this.defaults,r);let{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&ug.assertOptions(n,{silentJSONParsing:lo.transitional(lo.boolean),forcedJSONParsing:lo.transitional(lo.boolean),clarifyTimeoutError:lo.transitional(lo.boolean)},!1),i!=null&&(oe.isFunction(i)?r.paramsSerializer={serialize:i}:ug.assertOptions(i,{encode:lo.function,serialize:lo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&oe.merge(s.common,s[r.method]);s&&oe.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=Er.concat(a,s);let o=[],l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,o.unshift(y.fulfilled,y.rejected))});let h=[];this.interceptors.response.forEach(function(y){h.push(y.fulfilled,y.rejected)});let c,g=0,m;if(!l){let d=[og.bind(this),void 0];for(d.unshift.apply(d,o),d.push.apply(d,h),m=d.length,c=Promise.resolve(r);g<m;)c=c.then(d[g++],d[g++]);return c}m=o.length;let p=r;for(g=0;g<m;){let d=o[g++],y=o[g++];try{p=d(p)}catch(E){y.call(this,E);break}}try{c=og.call(this,p)}catch(d){return Promise.reject(d)}for(g=0,m=h.length;g<m;)c=c.then(h[g++],h[g++]);return c}getUri(t){t=Es(this.defaults,t);let r=Ou(t.baseURL,t.url);return ku(r,t.params,t.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(t){ap.prototype[t]=function(r,n){return this.request(Es(n||{},{method:t,url:r,data:(n||{}).data}))}});oe.forEach(["post","put","patch"],function(t){function r(n){return function(s,a,o){return this.request(Es(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}ap.prototype[t]=r(),ap.prototype[t+"Form"]=r(!0)});var op=ap;"use strict";var lg=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(o=>{n.subscribe(o),s=o}).then(i);return a.cancel=function(){n.unsubscribe(s)},a},t(function(s,a,o){n.reason||(n.reason=new _i(s,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new lg(function(i){t=i}),cancel:t}}},$U=lg;"use strict";function KF(e){return function(r){return e.apply(null,r)}}"use strict";function JF(e){return oe.isObject(e)&&e.isAxiosError===!0}var YF={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(YF).forEach(([e,t])=>{YF[t]=e});var KU=YF;"use strict";function JU(e){let
|
|||
|
|
Support {year} {mon} {day} {random} {filename} vars. For example, /{year}/{mon}/{day}/{filename} with uploading pic.jpg, it will store as /2023/06/08/pic.jpg.`).addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.ossSetting.path).onChange(n=>this.plugin.settings.ossSetting.path=n)),new lr.Setting(t).setName("Custom Domain Name").setDesc("If the custom domain name is example.com, you can use https://example.com/pic.jpg to access pic.img.").addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.ossSetting.customDomainName).onChange(n=>this.plugin.settings.ossSetting.customDomainName=n))}drawImageKitSetting(t){new lr.Setting(t).setName("Imagekit ID").setDesc(Mc.imagekitSettingDescription()).addText(r=>r.setPlaceholder("Enter your ImagekitID").setValue(this.plugin.settings.imagekitSetting.imagekitID).onChange(n=>{this.plugin.settings.imagekitSetting.imagekitID=n,this.plugin.settings.imagekitSetting.endpoint=`https://ik.imagekit.io/${n}/`})),new lr.Setting(t).setName("Folder name").setDesc("Please enter the directory name, otherwise leave it blank").addText(r=>r.setPlaceholder("Enter the folder name").setValue(this.plugin.settings.imagekitSetting.folder).onChange(n=>this.plugin.settings.imagekitSetting.folder=n)),new lr.Setting(t).setName("Public Key").addText(r=>r.setPlaceholder("Enter your Public Key").setValue(this.plugin.settings.imagekitSetting.publicKey).onChange(n=>this.plugin.settings.imagekitSetting.publicKey=n)),new lr.Setting(t).setName("Private Key").addText(r=>r.setPlaceholder("Enter your Private Key").setValue(this.plugin.settings.imagekitSetting.privateKey).onChange(n=>this.plugin.settings.imagekitSetting.privateKey=n))}static imagekitSettingDescription(){let t=document.createDocumentFragment(),r=document.createElement("a"),n="https://imagekit.io/dashboard/developer/api-keys";return r.textContent=n,r.setAttribute("href",n),t.append("Obtain id and keys from "),t.append(r),t}},LV=Mc;var qV=Mt(require("obsidian"));var Ap="note-preview",yx=class extends qV.ItemView{constructor(t,r,n){super(t);this.workspace=this.app.workspace,this.settings=r,this.yuqueProcessor=n}getViewType(){return Ap}getIcon(){return"clipboard-paste"}getDisplayText(){return"\u7B14\u8BB0\u9884\u89C8"}async onOpen(){this.buildUI()}async onClose(){}async postArticle(){await this.yuqueProcessor.process(Wy,{uuid:this.currentUuid})}async copyArticle(){await this.yuqueProcessor.process(Xy,{uuid:this.currentUuid})}addSection(t,r,n){for(let i of r){let s=t.createEl("option");s.value=i.uuid,s.text=i.title,s.selected=i.value==n}}async buildToolbar(t){this.toolbar=t.createDiv({cls:"preview-toolbar"});let r=this.toolbar.createDiv({cls:"toolbar-line"});r.createDiv({cls:"style-label"}).innerText="\u77E5\u8BC6\u5E93\u76EE\u5F55\uFF08\u9ED8\u8BA4\u7B2C\u4E00\u4E2A\uFF09:";let n=r.createEl("select",{cls:"style-select"});n.setAttr("style","width: 200px"),n.onchange=async()=>{this.currentUuid=n.value};let s=(await Gy(this.settings.yuqueSetting)).data.filter(l=>l.level==0);this.addSection(n,s,s[0].uuid),r=this.toolbar.createDiv({cls:"toolbar-line"});let a=r.createEl("button",{cls:"copy-button"},async l=>{l.setText("\u590D\u5236")});a.onclick=async()=>{await this.copyArticle()};let o=r.createEl("button",{cls:"copy-button"},async l=>{l.setText("\u53D1\u5E03\u5230\u8BED\u96C0")});o.onclick=async()=>{await this.postArticle()}}async buildUI(){this.container=this.containerEl.children[1],this.container.empty(),this.mainDiv=this.container.createDiv({cls:"note-preview"}),this.buildToolbar(this.mainDiv)}};var nDe={imageAltText:!0,replaceOriginalDoc:!0,deleteAttachments:!0,ignoreProperties:!0,attachmentLocation:".",imageStore:us.IMGUR.id,imgurAnonymousSetting:{clientId:PS},ossSetting:{region:"oss-cn-hangzhou",accessKeyId:"",accessKeySecret:"",bucket:"",endpoint:"https://oss-cn-hangzhou.aliyuncs.com/",path:"",customDomainName:""},imagekitSetting:{endpoint:"",imagekitID:"",privateKey:"",publicKey:"",folder:""},yuqueSetting:{token:"",bookSlug:"",public:!0}},vx=class extends Fg.Plugin{async onload(){await this.loadSettings(),this.setupImageUpl
|
|||
|
|
/*!
|
|||
|
|
* Bowser - a browser detector
|
|||
|
|
* https://github.com/ded/bowser
|
|||
|
|
* MIT License | (c) Dustin Diaz 2015
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* Platform.js v1.3.6
|
|||
|
|
* Copyright 2014-2020 Benjamin Tan
|
|||
|
|
* Copyright 2011-2013 John-David Dalton
|
|||
|
|
* Available under MIT license
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp Prototype Methods v1.0.0
|
|||
|
|
* (c) 2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp Unicode Base v1.0.0
|
|||
|
|
* (c) 2008-2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
* Uses Unicode 6.1 <http://unicode.org/>
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp Unicode Blocks v1.2.0
|
|||
|
|
* (c) 2010-2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
* Uses Unicode 6.1 <http://unicode.org/>
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp Unicode Categories v1.2.0
|
|||
|
|
* (c) 2010-2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
* Uses Unicode 6.1 <http://unicode.org/>
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp Unicode Properties v1.0.0
|
|||
|
|
* (c) 2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
* Uses Unicode 6.1 <http://unicode.org/>
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp Unicode Scripts v1.2.0
|
|||
|
|
* (c) 2010-2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
* Uses Unicode 6.1 <http://unicode.org/>
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp v2.0.0
|
|||
|
|
* (c) 2007-2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp.build v0.1.0
|
|||
|
|
* (c) 2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
* Inspired by RegExp.create by Lea Verou <http://lea.verou.me/>
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* XRegExp.matchRecursive v0.2.0
|
|||
|
|
* (c) 2009-2012 Steven Levithan <http://xregexp.com/>
|
|||
|
|
* MIT License
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* bytes
|
|||
|
|
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|||
|
|
* Copyright(c) 2015 Jed Watson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* content-type
|
|||
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* copy-to - index.js
|
|||
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* depd
|
|||
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* destroy
|
|||
|
|
* Copyright(c) 2014 Jonathan Ong
|
|||
|
|
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* ee-first
|
|||
|
|
* Copyright(c) 2014 Jonathan Ong
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* escape-html
|
|||
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|||
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|||
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* http-errors
|
|||
|
|
* Copyright(c) 2014 Jonathan Ong
|
|||
|
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* humanize-ms - index.js
|
|||
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2015, Jon Schlinkert.
|
|||
|
|
* Licensed under the MIT License.
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* merge-descriptors
|
|||
|
|
* Copyright(c) 2014 Jonathan Ong
|
|||
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* raw-body
|
|||
|
|
* Copyright(c) 2013-2014 Jonathan Ong
|
|||
|
|
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* statuses
|
|||
|
|
* Copyright(c) 2014 Jonathan Ong
|
|||
|
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* toidentifier
|
|||
|
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*!
|
|||
|
|
* unpipe
|
|||
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*/
|
|||
|
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|||
|
|
/**
|
|||
|
|
* @license
|
|||
|
|
* Lodash <https://lodash.com/>
|
|||
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|||
|
|
* Released under MIT license <https://lodash.com/license>
|
|||
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|||
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|||
|
|
*/
|