nfets 0.0.93 → 0.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-HNU77B3G.mjs +20 -0
- package/dist/{chunk-POAIEFMR.mjs → chunk-IJON6HO5.mjs} +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +34 -34
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +38 -38
- package/dist/nfe/index.d.cts +40 -36
- package/dist/nfe/index.d.ts +40 -36
- package/dist/nfe/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3QLHNM2Q.mjs +0 -20
|
@@ -96,7 +96,7 @@ Char: `+N.c),S=new Error(S),N.error=S,K(N,"onerror",S),N}o(pe,"error");function
|
|
|
96
96
|
Actual: `+N.attribValue);else if(P==="xmlns"&&N.attribValue!==y)Y(N,"xmlns: prefix must be bound to "+y+`
|
|
97
97
|
Actual: `+N.attribValue);else{var Ee=N.tag,Ce=N.tags[N.tags.length-1]||N;Ee.ns===Ce.ns&&(Ee.ns=Object.create(Ce.ns)),Ee.ns[P]=N.attribValue}N.attribList.push([N.attribName,N.attribValue])}else N.tag.attributes[N.attribName]=N.attribValue,q(N,"onattribute",{name:N.attribName,value:N.attribValue});N.attribName=N.attribValue=""}o(Je,"attrib");function ne(N,S){if(N.opt.xmlns){var G=N.tag,P=Oe(N.tagName);G.prefix=P.prefix,G.local=P.local,G.uri=G.ns[P.prefix]||"",G.prefix&&!G.uri&&(Y(N,"Unbound namespace prefix: "+JSON.stringify(N.tagName)),G.uri=P.prefix);var Ee=N.tags[N.tags.length-1]||N;G.ns&&Ee.ns!==G.ns&&Object.keys(G.ns).forEach(function(Nn){q(N,"onopennamespace",{prefix:Nn,uri:G.ns[Nn]})});for(var Ce=0,Ae=N.attribList.length;Ce<Ae;Ce++){var Ye=N.attribList[Ce],Tt=Ye[0],Me=Ye[1],St=Oe(Tt,!0),Yr=St.prefix,Qe=St.local,Dr=Yr===""?"":G.ns[Yr]||"",Gr={name:Tt,value:Me,prefix:Yr,local:Qe,uri:Dr};Yr&&Yr!=="xmlns"&&!Dr&&(Y(N,"Unbound namespace prefix: "+JSON.stringify(Yr)),Gr.uri=Yr),N.tag.attributes[Tt]=Gr,q(N,"onattribute",Gr)}N.attribList.length=0}N.tag.isSelfClosing=!!S,N.sawRoot=!0,N.tags.push(N.tag),q(N,"onopentag",N.tag),S||(!N.noscript&&N.tagName.toLowerCase()==="script"?N.state=I.SCRIPT:N.state=I.TEXT,N.tag=null,N.tagName=""),N.attribName=N.attribValue="",N.attribList.length=0}o(ne,"openTag");function Z(N){if(!N.tagName){Y(N,"Weird empty close tag."),N.textNode+="</>",N.state=I.TEXT;return}if(N.script){if(N.tagName!=="script"){N.script+="</"+N.tagName+">",N.tagName="",N.state=I.SCRIPT;return}q(N,"onscript",N.script),N.script=""}var S=N.tags.length,G=N.tagName;N.strict||(G=G[N.looseCase]());for(var P=G;S--;){var Ee=N.tags[S];if(Ee.name!==P)Y(N,"Unexpected close tag");else break}if(S<0){Y(N,"Unmatched closing tag: "+N.tagName),N.textNode+="</"+N.tagName+">",N.state=I.TEXT;return}N.tagName=G;for(var Ce=N.tags.length;Ce-- >S;){var Ae=N.tag=N.tags.pop();N.tagName=N.tag.name,q(N,"onclosetag",N.tagName);var Ye={};for(var Tt in Ae.ns)Ye[Tt]=Ae.ns[Tt];var Me=N.tags[N.tags.length-1]||N;N.opt.xmlns&&Ae.ns!==Me.ns&&Object.keys(Ae.ns).forEach(function(St){var Yr=Ae.ns[St];q(N,"onclosenamespace",{prefix:St,uri:Yr})})}S===0&&(N.closedRoot=!0),N.tagName=N.attribValue=N.attribName="",N.attribList.length=0,N.state=I.TEXT}o(Z,"closeTag");function Se(N){var S=N.entity,G=S.toLowerCase(),P,Ee="";return N.ENTITIES[S]?N.ENTITIES[S]:N.ENTITIES[G]?N.ENTITIES[G]:(S=G,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),P=parseInt(S,16),Ee=P.toString(16)):(S=S.slice(1),P=parseInt(S,10),Ee=P.toString(10))),S=S.replace(/^0+/,""),isNaN(P)||Ee.toLowerCase()!==S?(Y(N,"Invalid character entity"),"&"+N.entity+";"):String.fromCodePoint(P))}o(Se,"parseEntity");function He(N,S){S==="<"?(N.state=I.OPEN_WAKA,N.startTagPosition=N.position):b(S)||(Y(N,"Non-whitespace before first tag."),N.textNode=S,N.state=I.TEXT)}o(He,"beginWhiteSpace");function Le(N,S){var G="";return S<N.length&&(G=N.charAt(S)),G}o(Le,"charAt");function rt(N){var S=this;if(this.error)throw this.error;if(S.closed)return pe(S,"Cannot write after close. Assign an onready handler.");if(N===null)return ue(S);typeof N=="object"&&(N=N.toString());for(var G=0,P="";P=Le(N,G++),S.c=P,!!P;)switch(S.trackPosition&&(S.position++,P===`
|
|
98
98
|
`?(S.line++,S.column=0):S.column++),S.state){case I.BEGIN:if(S.state=I.BEGIN_WHITESPACE,P==="\uFEFF")continue;He(S,P);continue;case I.BEGIN_WHITESPACE:He(S,P);continue;case I.TEXT:if(S.sawRoot&&!S.closedRoot){for(var Ee=G-1;P&&P!=="<"&&P!=="&";)P=Le(N,G++),P&&S.trackPosition&&(S.position++,P===`
|
|
99
|
-
`?(S.line++,S.column=0):S.column++);S.textNode+=N.substring(Ee,G-1)}P==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=I.OPEN_WAKA,S.startTagPosition=S.position):(!b(P)&&(!S.sawRoot||S.closedRoot)&&Y(S,"Text data outside of root node."),P==="&"?S.state=I.TEXT_ENTITY:S.textNode+=P);continue;case I.SCRIPT:P==="<"?S.state=I.SCRIPT_ENDING:S.script+=P;continue;case I.SCRIPT_ENDING:P==="/"?S.state=I.CLOSE_TAG:(S.script+="<"+P,S.state=I.SCRIPT);continue;case I.OPEN_WAKA:if(P==="!")S.state=I.SGML_DECL,S.sgmlDecl="";else if(!b(P))if(B(E,P))S.state=I.OPEN_TAG,S.tagName=P;else if(P==="/")S.state=I.CLOSE_TAG,S.tagName="";else if(P==="?")S.state=I.PROC_INST,S.procInstName=S.procInstBody="";else{if(Y(S,"Unencoded <"),S.startTagPosition+1<S.position){var Ce=S.position-S.startTagPosition;P=new Array(Ce).join(" ")+P}S.textNode+="<"+P,S.state=I.TEXT}continue;case I.SGML_DECL:if(S.sgmlDecl+P==="--"){S.state=I.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=I.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+P,S.sgmlDecl=""):(S.sgmlDecl+P).toUpperCase()===h?(q(S,"onopencdata"),S.state=I.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+P).toUpperCase()===m?(S.state=I.DOCTYPE,(S.doctype||S.sawRoot)&&Y(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):P===">"?(q(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=I.TEXT):(A(P)&&(S.state=I.SGML_DECL_QUOTED),S.sgmlDecl+=P);continue;case I.SGML_DECL_QUOTED:P===S.q&&(S.state=I.SGML_DECL,S.q=""),S.sgmlDecl+=P;continue;case I.DOCTYPE:P===">"?(S.state=I.TEXT,q(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=P,P==="["?S.state=I.DOCTYPE_DTD:A(P)&&(S.state=I.DOCTYPE_QUOTED,S.q=P));continue;case I.DOCTYPE_QUOTED:S.doctype+=P,P===S.q&&(S.q="",S.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:P==="]"?(S.doctype+=P,S.state=I.DOCTYPE):P==="<"?(S.state=I.OPEN_WAKA,S.startTagPosition=S.position):A(P)?(S.doctype+=P,S.state=I.DOCTYPE_DTD_QUOTED,S.q=P):S.doctype+=P;continue;case I.DOCTYPE_DTD_QUOTED:S.doctype+=P,P===S.q&&(S.state=I.DOCTYPE_DTD,S.q="");continue;case I.COMMENT:P==="-"?S.state=I.COMMENT_ENDING:S.comment+=P;continue;case I.COMMENT_ENDING:P==="-"?(S.state=I.COMMENT_ENDED,S.comment=he(S.opt,S.comment),S.comment&&q(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+P,S.state=I.COMMENT);continue;case I.COMMENT_ENDED:P!==">"?(Y(S,"Malformed comment"),S.comment+="--"+P,S.state=I.COMMENT):S.doctype&&S.doctype!==!0?S.state=I.DOCTYPE_DTD:S.state=I.TEXT;continue;case I.CDATA:P==="]"?S.state=I.CDATA_ENDING:S.cdata+=P;continue;case I.CDATA_ENDING:P==="]"?S.state=I.CDATA_ENDING_2:(S.cdata+="]"+P,S.state=I.CDATA);continue;case I.CDATA_ENDING_2:P===">"?(S.cdata&&q(S,"oncdata",S.cdata),q(S,"onclosecdata"),S.cdata="",S.state=I.TEXT):P==="]"?S.cdata+="]":(S.cdata+="]]"+P,S.state=I.CDATA);continue;case I.PROC_INST:P==="?"?S.state=I.PROC_INST_ENDING:b(P)?S.state=I.PROC_INST_BODY:S.procInstName+=P;continue;case I.PROC_INST_BODY:if(!S.procInstBody&&b(P))continue;P==="?"?S.state=I.PROC_INST_ENDING:S.procInstBody+=P;continue;case I.PROC_INST_ENDING:P===">"?(q(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=I.TEXT):(S.procInstBody+="?"+P,S.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:B(w,P)?S.tagName+=P:(ve(S),P===">"?ne(S):P==="/"?S.state=I.OPEN_TAG_SLASH:(b(P)||Y(S,"Invalid character in tag name"),S.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:P===">"?(ne(S,!0),Z(S)):(Y(S,"Forward-slash in opening tag not followed by >"),S.state=I.ATTRIB);continue;case I.ATTRIB:if(b(P))continue;P===">"?ne(S):P==="/"?S.state=I.OPEN_TAG_SLASH:B(E,P)?(S.attribName=P,S.attribValue="",S.state=I.ATTRIB_NAME):Y(S,"Invalid attribute name");continue;case I.ATTRIB_NAME:P==="="?S.state=I.ATTRIB_VALUE:P===">"?(Y(S,"Attribute without value"),S.attribValue=S.attribName,Je(S),ne(S)):b(P)?S.state=I.ATTRIB_NAME_SAW_WHITE:B(w,P)?S.attribName+=P:Y(S,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(P==="=")S.state=I.ATTRIB_VALUE;else{if(b(P))continue;Y(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",q(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",P===">"?ne(S):B(E,P)?(S.attribName=P,S.state=I.ATTRIB_NAME):(Y(S,"Invalid attribute name"),S.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(b(P))continue;A(P)?(S.q=P,S.state=I.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||pe(S,"Unquoted attribute value"),S.state=I.ATTRIB_VALUE_UNQUOTED,S.attribValue=P);continue;case I.ATTRIB_VALUE_QUOTED:if(P!==S.q){P==="&"?S.state=I.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=P;continue}Je(S),S.q="",S.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:b(P)?S.state=I.ATTRIB:P===">"?ne(S):P==="/"?S.state=I.OPEN_TAG_SLASH:B(E,P)?(Y(S,"No whitespace between attributes"),S.attribName=P,S.attribValue="",S.state=I.ATTRIB_NAME):Y(S,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!T(P)){P==="&"?S.state=I.ATTRIB_VALUE_ENTITY_U:S.attribValue+=P;continue}Je(S),P===">"?ne(S):S.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(S.tagName)P===">"?Z(S):B(w,P)?S.tagName+=P:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=I.SCRIPT):(b(P)||Y(S,"Invalid tagname in closing tag"),S.state=I.CLOSE_TAG_SAW_WHITE);else{if(b(P))continue;M(E,P)?S.script?(S.script+="</"+P,S.state=I.SCRIPT):Y(S,"Invalid tagname in closing tag."):S.tagName=P}continue;case I.CLOSE_TAG_SAW_WHITE:if(b(P))continue;P===">"?Z(S):Y(S,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Ae,Ye;switch(S.state){case I.TEXT_ENTITY:Ae=I.TEXT,Ye="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Ae=I.ATTRIB_VALUE_QUOTED,Ye="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Ae=I.ATTRIB_VALUE_UNQUOTED,Ye="attribValue";break}if(P===";"){var Tt=Se(S);S.opt.unparsedEntities&&!Object.values(r.XML_ENTITIES).includes(Tt)?(S.entity="",S.state=Ae,S.write(Tt)):(S[Ye]+=Tt,S.entity="",S.state=Ae)}else B(S.entity.length?_:C,P)?S.entity+=P:(Y(S,"Invalid character in entity name"),S[Ye]+="&"+S.entity+P,S.entity="",S.state=Ae);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&n(S),S}o(rt,"write");String.fromCodePoint||(function(){var N=String.fromCharCode,S=Math.floor,G=o(function(){var P=16384,Ee=[],Ce,Ae,Ye=-1,Tt=arguments.length;if(!Tt)return"";for(var Me="";++Ye<Tt;){var St=Number(arguments[Ye]);if(!isFinite(St)||St<0||St>1114111||S(St)!==St)throw RangeError("Invalid code point: "+St);St<=65535?Ee.push(St):(St-=65536,Ce=(St>>10)+55296,Ae=St%1024+56320,Ee.push(Ce,Ae)),(Ye+1===Tt||Ee.length>P)&&(Me+=N.apply(null,Ee),Ee.length=0)}return Me},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:G,configurable:!0,writable:!0}):String.fromCodePoint=G})()})(typeof Cb>"u"?Cb.sax={}:Cb)});var P9=te(ZD=>{"use strict";(function(){"use strict";ZD.stripBOM=function(r){return r[0]==="\uFEFF"?r.substring(1):r}}).call(ZD)});var eB=te(bf=>{"use strict";(function(){"use strict";var r;r=new RegExp(/(?!xmlns)^.*:/),bf.normalize=function(e){return e.toLowerCase()},bf.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},bf.stripPrefix=function(e){return e.replace(r,"")},bf.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},bf.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e=e.toLowerCase()==="true"),e}}).call(bf)});var k9=te(Yo=>{"use strict";(function(){"use strict";var r,e,t,n,s,i,a,u,c,l=o(function(g,y){return function(){return g.apply(y,arguments)}},"bind"),h=o(function(g,y){for(var v in y)m.call(y,v)&&(g[v]=y[v]);function E(){this.constructor=g}return o(E,"ctor"),E.prototype=y.prototype,g.prototype=new E,g.__super__=y.prototype,g},"extend"),m={}.hasOwnProperty;u=O9(),n=Ge("events"),r=P9(),a=eB(),c=Ge("timers").setImmediate,e=lb().defaults,s=o(function(g){return typeof g=="object"&&g!=null&&Object.keys(g).length===0},"isEmpty"),i=o(function(g,y,v){var E,w,C;for(E=0,w=g.length;E<w;E++)C=g[E],y=C(y,v);return y},"processItem"),t=o(function(g,y,v){var E;return E=Object.create(null),E.value=v,E.writable=!0,E.enumerable=!0,E.configurable=!0,Object.defineProperty(g,y,E)},"defineProperty"),Yo.Parser=(function(g){h(y,g);function y(v){this.parseStringPromise=l(this.parseStringPromise,this),this.parseString=l(this.parseString,this),this.reset=l(this.reset,this),this.assignOrPush=l(this.assignOrPush,this),this.processAsync=l(this.processAsync,this);var E,w,C;if(!(this instanceof Yo.Parser))return new Yo.Parser(v);this.options={},w=e["0.2"];for(E in w)m.call(w,E)&&(C=w[E],this.options[E]=C);for(E in v)m.call(v,E)&&(C=v[E],this.options[E]=C);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return o(y,"Parser"),y.prototype.processAsync=function(){var v,E;try{return this.remaining.length<=this.options.chunkSize?(v=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(v),this.saxParser.close()):(v=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(v),c(this.processAsync))}catch(w){if(E=w,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(E)}},y.prototype.assignOrPush=function(v,E,w){return E in v?(v[E]instanceof Array||t(v,E,[v[E]]),v[E].push(w)):this.options.explicitArray?t(v,E,[w]):t(v,E,w)},y.prototype.reset=function(){var v,E,w,C;return this.removeAllListeners(),this.saxParser=u.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(_){return function(b){if(_.saxParser.resume(),!_.saxParser.errThrown)return _.saxParser.errThrown=!0,_.emit("error",b)}})(this),this.saxParser.onend=(function(_){return function(){if(!_.saxParser.ended)return _.saxParser.ended=!0,_.emit("end",_.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,C=[],v=this.options.attrkey,E=this.options.charkey,this.saxParser.onopentag=(function(_){return function(b){var A,T,B,M,I;if(B={},B[E]="",!_.options.ignoreAttrs){I=b.attributes;for(A in I)m.call(I,A)&&(!(v in B)&&!_.options.mergeAttrs&&(B[v]={}),T=_.options.attrValueProcessors?i(_.options.attrValueProcessors,b.attributes[A],A):b.attributes[A],M=_.options.attrNameProcessors?i(_.options.attrNameProcessors,A):A,_.options.mergeAttrs?_.assignOrPush(B,M,T):t(B[v],M,T))}return B["#name"]=_.options.tagNameProcessors?i(_.options.tagNameProcessors,b.name):b.name,_.options.xmlns&&(B[_.options.xmlnskey]={uri:b.uri,local:b.local}),C.push(B)}})(this),this.saxParser.onclosetag=(function(_){return function(){var b,A,T,B,M,I,H,K,q,W;if(I=C.pop(),M=I["#name"],(!_.options.explicitChildren||!_.options.preserveChildrenOrder)&&delete I["#name"],I.cdata===!0&&(b=I.cdata,delete I.cdata),q=C[C.length-1],I[E].match(/^\s*$/)&&!b?(A=I[E],delete I[E]):(_.options.trim&&(I[E]=I[E].trim()),_.options.normalize&&(I[E]=I[E].replace(/\s{2,}/g," ").trim()),I[E]=_.options.valueProcessors?i(_.options.valueProcessors,I[E],M):I[E],Object.keys(I).length===1&&E in I&&!_.EXPLICIT_CHARKEY&&(I=I[E])),s(I)&&(typeof _.options.emptyTag=="function"?I=_.options.emptyTag():I=_.options.emptyTag!==""?_.options.emptyTag:A),_.options.validator!=null&&(W="/"+(function(){var he,pe,ue;for(ue=[],he=0,pe=C.length;he<pe;he++)B=C[he],ue.push(B["#name"]);return ue})().concat(M).join("/"),(function(){var he;try{return I=_.options.validator(W,q&&q[M],I)}catch(pe){return he=pe,_.emit("error",he)}})()),_.options.explicitChildren&&!_.options.mergeAttrs&&typeof I=="object"){if(!_.options.preserveChildrenOrder)B={},_.options.attrkey in I&&(B[_.options.attrkey]=I[_.options.attrkey],delete I[_.options.attrkey]),!_.options.charsAsChildren&&_.options.charkey in I&&(B[_.options.charkey]=I[_.options.charkey],delete I[_.options.charkey]),Object.getOwnPropertyNames(I).length>0&&(B[_.options.childkey]=I),I=B;else if(q){q[_.options.childkey]=q[_.options.childkey]||[],H={};for(T in I)m.call(I,T)&&t(H,T,I[T]);q[_.options.childkey].push(H),delete I["#name"],Object.keys(I).length===1&&E in I&&!_.EXPLICIT_CHARKEY&&(I=I[E])}}return C.length>0?_.assignOrPush(q,M,I):(_.options.explicitRoot&&(K=I,I={},t(I,M,K)),_.resultObject=I,_.saxParser.ended=!0,_.emit("end",_.resultObject))}})(this),w=(function(_){return function(b){var A,T;if(T=C[C.length-1],T)return T[E]+=b,_.options.explicitChildren&&_.options.preserveChildrenOrder&&_.options.charsAsChildren&&(_.options.includeWhiteChars||b.replace(/\\n/g,"").trim()!=="")&&(T[_.options.childkey]=T[_.options.childkey]||[],A={"#name":"__text__"},A[E]=b,_.options.normalize&&(A[E]=A[E].replace(/\s{2,}/g," ").trim()),T[_.options.childkey].push(A)),T}})(this),this.saxParser.ontext=w,this.saxParser.oncdata=(function(_){return function(b){var A;if(A=w(b),A)return A.cdata=!0}})(this)},y.prototype.parseString=function(v,E){var w;E!=null&&typeof E=="function"&&(this.on("end",function(C){return this.reset(),E(null,C)}),this.on("error",function(C){return this.reset(),E(C)}));try{return v=v.toString(),v.trim()===""?(this.emit("end",null),!0):(v=r.stripBOM(v),this.options.async?(this.remaining=v,c(this.processAsync),this.saxParser):this.saxParser.write(v).close())}catch(C){if(w=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw w}else return this.emit("error",w),this.saxParser.errThrown=!0}},y.prototype.parseStringPromise=function(v){return new Promise((function(E){return function(w,C){return E.parseString(v,function(_,b){return _?C(_):w(b)})}})(this))},y})(n),Yo.parseString=function(g,y,v){var E,w,C;return v!=null?(typeof v=="function"&&(E=v),typeof y=="object"&&(w=y)):(typeof y=="function"&&(E=y),w={}),C=new Yo.Parser(w),C.parseString(g,E)},Yo.parseStringPromise=function(g,y){var v,E;return typeof y=="object"&&(v=y),E=new Yo.Parser(v),E.parseStringPromise(g)}}).call(Yo)});var L9=te(Qo=>{"use strict";(function(){"use strict";var r,e,t,n,s=o(function(a,u){for(var c in u)i.call(u,c)&&(a[c]=u[c]);function l(){this.constructor=a}return o(l,"ctor"),l.prototype=u.prototype,a.prototype=new l,a.__super__=u.prototype,a},"extend"),i={}.hasOwnProperty;e=lb(),r=R9(),t=k9(),n=eB(),Qo.defaults=e.defaults,Qo.processors=n,Qo.ValidationError=(function(a){s(u,a);function u(c){this.message=c}return o(u,"ValidationError"),u})(Error),Qo.Builder=r.Builder,Qo.Parser=t.Parser,Qo.parseString=t.parseString,Qo.parseStringPromise=t.parseStringPromise}).call(Qo)});var ON="http://www.w3.org/2000/09/xmldsig#",rk="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",PN=(function(r){return r.RSA_SHA1="http://www.w3.org/2000/09/xmldsig#rsa-sha1",r.RSA_SHA256="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",r})({}),Fu=(function(r){return r.SHA1="sha1",r.SHA256="sha256",r})({}),kN=(function(r){return r.SHA1="http://www.w3.org/2000/09/xmldsig#sha1",r.SHA256="http://www.w3.org/2001/04/xmlenc#sha256",r})({});var Nr={AC:"12",AL:"27",AM:"13",AP:"16",BA:"29",CE:"23",DF:"53",ES:"32",GO:"52",MA:"21",MG:"31",MS:"50",MT:"51",PA:"15",PB:"25",PE:"26",PI:"22",PR:"41",RJ:"33",RN:"24",RO:"11",RR:"14",RS:"43",SC:"42",SE:"28",SP:"35",TO:"17"},Vge=Object.keys(Nr);var jge={Production:"1",Homolog:"2"};var Wr=class extends Error{static{o(this,"NFeTsError")}};var nk=class extends Wr{static{o(this,"ValidationError")}};var Sg={includeComments:!1,exclusive:!0};var LN=o(r=>{throw new Wr("Didn't expect to get here")},"unreachable");var Cp=class{static{o(this,"Signer")}toolkit;certificateRepository;algorithm;canonical;constructor(e,t,n=Fu.SHA1,s=Sg){this.toolkit=e,this.certificateRepository=t,this.algorithm=n,this.canonical=s}assemble(e,t,n){let s=this.certificateRepository.getStringCertificate(n);return{$:{xmlns:ON},SignedInfo:e,SignatureValue:t,KeyInfo:{X509Data:{X509Certificate:s}}}}signedInfo(e,t){return{CanonicalizationMethod:{$:{Algorithm:rk}},SignatureMethod:{$:{Algorithm:this.signatureMethod}},Reference:{$:{URI:`#${this.toolkit.getAttribute(e,t)}`},Transforms:this.transforms,DigestMethod:{$:{Algorithm:this.digestAlgorithm}},DigestValue:this.digest(e)}}}digest(e){return this.toolkit.digest(e,this.algorithm,this.canonical)}async signOrLeft(e,t){let n=this.toolkit.canonicalize(await this.toolkit.build({$:{xmlns:ON},...e},{rootName:"SignedInfo"}),this.canonical);return this.certificateRepository.sign(n,t,this.algorithm)}get transforms(){return{Transform:[{$:{Algorithm:"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},{$:{Algorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}]}}get digestAlgorithm(){switch(this.algorithm){case Fu.SHA256:return kN.SHA256;case Fu.SHA1:return kN.SHA1;default:return LN(this.algorithm)}}get signatureMethod(){switch(this.algorithm){case Fu.SHA256:return PN.RSA_SHA256;case Fu.SHA1:return PN.RSA_SHA1;default:return LN(this.algorithm)}}};var VN=class{static{o(this,"Left")}value;constructor(e){this.value=e}isLeft(){return!0}isRight(){return!1}},Mw=class{static{o(this,"Right")}value;constructor(e){this.value=e}isLeft(){return!1}isRight(){return!0}},ls=o(r=>new VN(r),"left"),Bi=o(r=>r===void 0?new Mw(void 0):new Mw(r),"right");var sk=class extends Cp{static{o(this,"EntitySigner")}async sign(e,t,n){let{tag:s,mark:i}=t,{certificate:a}=n;if(!e[s])return ls(new Wr(`Node ${String(s)} not found`));let u=await this.toolkit.build(this.ns(e,s),{headless:!0,rootName:String(s),renderOpts:{pretty:!1}}),c=this.signedInfo(u,i),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let h=e;return h.Signature=this.assemble(c,l.value,a),Bi(h)}ns(e,t){let n=e.$?.xmlns,{$:s,...i}=e[t],{xmlns:a,...u}=s??{};return{$:{xmlns:n,...u},...i}}};var ik=class extends Cp{static{o(this,"XmlSigner")}async sign(e,t,n){let{tag:s,mark:i}=t,{certificate:a}=n,u=this.toolkit.getNode(e,s);if(!u)return ls(new Wr(`Node ${s} not found`));let c=this.signedInfo(u,i),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let h=await this.toolkit.build(this.assemble(c,l.value,a),{rootName:"Signature"});return Bi(this.toolkit.appendNode(e,h))}};import"reflect-metadata";var bg="__SkipValidation__",dve=o(()=>(r,e)=>{Reflect.defineMetadata(bg,!0,r,e.toString())},"SkipValidation"),mve=o(()=>r=>{Reflect.defineMetadata(bg,!0,r)},"SkipAllValidations");import{plainToInstance as yY}from"class-transformer";var qw=o(r=>{for(let[e,t]of Object.entries(r))typeof t>"u"&&delete r[e],t===""&&delete r[e],t&&typeof t=="object"&&qw(t)},"clearEmptyValues"),ak=o((r,e,t={})=>{let n=yY(e,r);return t.clearEmptyValues&&qw(n),n},"plainToInstance");import"reflect-metadata";import{validateSync as xY}from"class-validator";var ok="__ValidateErrors__",uk=o((r,e)=>r.reduce((t,n)=>{if(n.children?.length)return t.concat(uk(n.children,e?`${e}.${n.property}`:n.property));let s=Object.values(n.constraints??{}).map(i=>e?`${e}.${i}`:i).join(", ");return s?t.concat(s):t},[]),"mapConstraintsToErrors"),Cve=o(r=>(e,t,n)=>{let s=n.value;n.value=function(...i){let a=Reflect.getMetadata(bg,this.constructor);if(Reflect.getMetadata(bg,this.constructor.prototype,t.toString())===!0||a===!0)return s?.apply(this,i);let[c,...l]=i,h=ak(c,r),m=xY(h,{whitelist:!0});if(qw(h),m.length){let g=Reflect.getMetadata(ok,this)??[];Reflect.defineMetadata(ok,g.concat(uk(m,s?.name)),this)}return s?.apply(this,[h,...l])}},"Validates");var Np=9e15,Ku=1e9,UN="0123456789abcdef",$w="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Gw="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",jN={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Np,maxE:Np,crypto:!1},hk,Uo,Ot=!0,Ww="[DecimalError] ",Hu=Ww+"Invalid argument: ",pk=Ww+"Precision limit exceeded",dk=Ww+"crypto unavailable",mk="[object Decimal]",fs=Math.floor,_n=Math.pow,wY=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,EY=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,SY=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,gk=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ua=1e7,Ct=7,bY=9007199254740991,AY=$w.length-1,FN=Gw.length-1,Ve={toStringTag:mk};Ve.absoluteValue=Ve.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),yt(r)};Ve.ceil=function(){return yt(new this.constructor(this),this.e+1,2)};Ve.clampedTo=Ve.clamp=function(r,e){var t,n=this,s=n.constructor;if(r=new s(r),e=new s(e),!r.s||!e.s)return new s(NaN);if(r.gt(e))throw Error(Hu+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new s(n)};Ve.comparedTo=Ve.cmp=function(r){var e,t,n,s,i=this,a=i.d,u=(r=new i.constructor(r)).d,c=i.s,l=r.s;if(!a||!u)return!c||!l?NaN:c!==l?c:a===u?0:!a^c<0?1:-1;if(!a[0]||!u[0])return a[0]?c:u[0]?-l:0;if(c!==l)return c;if(i.e!==r.e)return i.e>r.e^c<0?1:-1;for(n=a.length,s=u.length,e=0,t=n<s?n:s;e<t;++e)if(a[e]!==u[e])return a[e]>u[e]^c<0?1:-1;return n===s?0:n>s^c<0?1:-1};Ve.cosine=Ve.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Ct,n.rounding=1,t=CY(n,Ek(n,t)),n.precision=r,n.rounding=e,yt(Uo==2||Uo==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};Ve.cubeRoot=Ve.cbrt=function(){var r,e,t,n,s,i,a,u,c,l,h=this,m=h.constructor;if(!h.isFinite()||h.isZero())return new m(h);for(Ot=!1,i=h.s*_n(h.s*h,1/3),!i||Math.abs(i)==1/0?(t=zn(h.d),r=h.e,(i=(r-t.length+1)%3)&&(t+=i==1||i==-2?"0":"00"),i=_n(t,1/3),r=fs((r+1)/3)-(r%3==(r<0?-1:2)),i==1/0?t="5e"+r:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new m(t),n.s=h.s):n=new m(i.toString()),a=(r=m.precision)+3;;)if(u=n,c=u.times(u).times(u),l=c.plus(h),n=Rr(l.plus(h).times(u),l.plus(c),a+2,1),zn(u.d).slice(0,a)===(t=zn(n.d)).slice(0,a))if(t=t.slice(a-3,a+1),t=="9999"||!s&&t=="4999"){if(!s&&(yt(u,r+1,0),u.times(u).times(u).eq(h))){n=u;break}a+=4,s=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(yt(n,r+1,1),e=!n.times(n).times(n).eq(h));break}return Ot=!0,yt(n,r,m.rounding,e)};Ve.decimalPlaces=Ve.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-fs(this.e/Ct))*Ct,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};Ve.dividedBy=Ve.div=function(r){return Rr(this,new this.constructor(r))};Ve.dividedToIntegerBy=Ve.divToInt=function(r){var e=this,t=e.constructor;return yt(Rr(e,new t(r),0,1,1),t.precision,t.rounding)};Ve.equals=Ve.eq=function(r){return this.cmp(r)===0};Ve.floor=function(){return yt(new this.constructor(this),this.e+1,3)};Ve.greaterThan=Ve.gt=function(r){return this.cmp(r)>0};Ve.greaterThanOrEqualTo=Ve.gte=function(r){var e=this.cmp(r);return e==1||e===0};Ve.hyperbolicCosine=Ve.cosh=function(){var r,e,t,n,s,i=this,a=i.constructor,u=new a(1);if(!i.isFinite())return new a(i.s?1/0:NaN);if(i.isZero())return u;t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,s=i.d.length,s<32?(r=Math.ceil(s/3),e=(1/Jw(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),i=Tp(a,1,i.times(e),new a(1),!0);for(var c,l=r,h=new a(8);l--;)c=i.times(i),i=u.minus(c.times(h.minus(c.times(h))));return yt(i,a.precision=t,a.rounding=n,!0)};Ve.hyperbolicSine=Ve.sinh=function(){var r,e,t,n,s=this,i=s.constructor;if(!s.isFinite()||s.isZero())return new i(s);if(e=i.precision,t=i.rounding,i.precision=e+Math.max(s.e,s.sd())+4,i.rounding=1,n=s.d.length,n<3)s=Tp(i,2,s,s,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,s=s.times(1/Jw(5,r)),s=Tp(i,2,s,s,!0);for(var a,u=new i(5),c=new i(16),l=new i(20);r--;)a=s.times(s),s=s.times(u.plus(a.times(c.times(a).plus(l))))}return i.precision=e,i.rounding=t,yt(s,e,t,!0)};Ve.hyperbolicTangent=Ve.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,Rr(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};Ve.inverseCosine=Ve.acos=function(){var r=this,e=r.constructor,t=r.abs().cmp(1),n=e.precision,s=e.rounding;return t!==-1?t===0?r.isNeg()?ja(e,n,s):new e(0):new e(NaN):r.isZero()?ja(e,n+4,s).times(.5):(e.precision=n+6,e.rounding=1,r=new e(1).minus(r).div(r.plus(1)).sqrt().atan(),e.precision=n,e.rounding=s,r.times(2))};Ve.inverseHyperbolicCosine=Ve.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Ot=!1,t=t.times(t).minus(1).sqrt().plus(t),Ot=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};Ve.inverseHyperbolicSine=Ve.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Ot=!1,t=t.times(t).plus(1).sqrt().plus(t),Ot=!0,n.precision=r,n.rounding=e,t.ln())};Ve.inverseHyperbolicTangent=Ve.atanh=function(){var r,e,t,n,s=this,i=s.constructor;return s.isFinite()?s.e>=0?new i(s.abs().eq(1)?s.s/0:s.isZero()?s:NaN):(r=i.precision,e=i.rounding,n=s.sd(),Math.max(n,r)<2*-s.e-1?yt(new i(s),r,e,!0):(i.precision=t=n-s.e,s=Rr(s.plus(1),new i(1).minus(s),t+r,1),i.precision=r+4,i.rounding=1,s=s.ln(),i.precision=r,i.rounding=e,s.times(.5))):new i(NaN)};Ve.inverseSine=Ve.asin=function(){var r,e,t,n,s=this,i=s.constructor;return s.isZero()?new i(s):(e=s.abs().cmp(1),t=i.precision,n=i.rounding,e!==-1?e===0?(r=ja(i,t+4,n).times(.5),r.s=s.s,r):new i(NaN):(i.precision=t+6,i.rounding=1,s=s.div(new i(1).minus(s.times(s)).sqrt().plus(1)).atan(),i.precision=t,i.rounding=n,s.times(2)))};Ve.inverseTangent=Ve.atan=function(){var r,e,t,n,s,i,a,u,c,l=this,h=l.constructor,m=h.precision,g=h.rounding;if(l.isFinite()){if(l.isZero())return new h(l);if(l.abs().eq(1)&&m+4<=FN)return a=ja(h,m+4,g).times(.25),a.s=l.s,a}else{if(!l.s)return new h(NaN);if(m+4<=FN)return a=ja(h,m+4,g).times(.5),a.s=l.s,a}for(h.precision=u=m+10,h.rounding=1,t=Math.min(28,u/Ct+2|0),r=t;r;--r)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Ot=!1,e=Math.ceil(u/Ct),n=1,c=l.times(l),a=new h(l),s=l;r!==-1;)if(s=s.times(c),i=a.minus(s.div(n+=2)),s=s.times(c),a=i.plus(s.div(n+=2)),a.d[e]!==void 0)for(r=e;a.d[r]===i.d[r]&&r--;);return t&&(a=a.times(2<<t-1)),Ot=!0,yt(a,h.precision=m,h.rounding=g,!0)};Ve.isFinite=function(){return!!this.d};Ve.isInteger=Ve.isInt=function(){return!!this.d&&fs(this.e/Ct)>this.d.length-2};Ve.isNaN=function(){return!this.s};Ve.isNegative=Ve.isNeg=function(){return this.s<0};Ve.isPositive=Ve.isPos=function(){return this.s>0};Ve.isZero=function(){return!!this.d&&this.d[0]===0};Ve.lessThan=Ve.lt=function(r){return this.cmp(r)<0};Ve.lessThanOrEqualTo=Ve.lte=function(r){return this.cmp(r)<1};Ve.logarithm=Ve.log=function(r){var e,t,n,s,i,a,u,c,l=this,h=l.constructor,m=h.precision,g=h.rounding,y=5;if(r==null)r=new h(10),e=!0;else{if(r=new h(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new h(NaN);e=r.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new h(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)i=!0;else{for(s=t[0];s%10===0;)s/=10;i=s!==1}if(Ot=!1,u=m+y,a=qu(l,u),n=e?Xw(h,u+10):qu(r,u),c=Rr(a,n,u,1),Ag(c.d,s=m,g))do if(u+=10,a=qu(l,u),n=e?Xw(h,u+10):qu(r,u),c=Rr(a,n,u,1),!i){+zn(c.d).slice(s+1,s+15)+1==1e14&&(c=yt(c,m+1,0));break}while(Ag(c.d,s+=10,g));return Ot=!0,yt(c,m,g)};Ve.minus=Ve.sub=function(r){var e,t,n,s,i,a,u,c,l,h,m,g,y=this,v=y.constructor;if(r=new v(r),!y.d||!r.d)return!y.s||!r.s?r=new v(NaN):y.d?r.s=-r.s:r=new v(r.d||y.s!==r.s?y:NaN),r;if(y.s!=r.s)return r.s=-r.s,y.plus(r);if(l=y.d,g=r.d,u=v.precision,c=v.rounding,!l[0]||!g[0]){if(g[0])r.s=-r.s;else if(l[0])r=new v(y);else return new v(c===3?-0:0);return Ot?yt(r,u,c):r}if(t=fs(r.e/Ct),h=fs(y.e/Ct),l=l.slice(),i=h-t,i){for(m=i<0,m?(e=l,i=-i,a=g.length):(e=g,t=h,a=l.length),n=Math.max(Math.ceil(u/Ct),a)+2,i>n&&(i=n,e.length=1),e.reverse(),n=i;n--;)e.push(0);e.reverse()}else{for(n=l.length,a=g.length,m=n<a,m&&(a=n),n=0;n<a;n++)if(l[n]!=g[n]){m=l[n]<g[n];break}i=0}for(m&&(e=l,l=g,g=e,r.s=-r.s),a=l.length,n=g.length-a;n>0;--n)l[a++]=0;for(n=g.length;n>i;){if(l[--n]<g[n]){for(s=n;s&&l[--s]===0;)l[s]=ua-1;--l[s],l[n]+=ua}l[n]-=g[n]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(r.d=l,r.e=zw(l,t),Ot?yt(r,u,c):r):new v(c===3?-0:0)};Ve.modulo=Ve.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?yt(new n(t),n.precision,n.rounding):(Ot=!1,n.modulo==9?(e=Rr(t,r.abs(),0,3,1),e.s*=r.s):e=Rr(t,r,0,n.modulo,1),e=e.times(r),Ot=!0,t.minus(e))};Ve.naturalExponential=Ve.exp=function(){return MN(this)};Ve.naturalLogarithm=Ve.ln=function(){return qu(this)};Ve.negated=Ve.neg=function(){var r=new this.constructor(this);return r.s=-r.s,yt(r)};Ve.plus=Ve.add=function(r){var e,t,n,s,i,a,u,c,l,h,m=this,g=m.constructor;if(r=new g(r),!m.d||!r.d)return!m.s||!r.s?r=new g(NaN):m.d||(r=new g(r.d||m.s===r.s?m:NaN)),r;if(m.s!=r.s)return r.s=-r.s,m.minus(r);if(l=m.d,h=r.d,u=g.precision,c=g.rounding,!l[0]||!h[0])return h[0]||(r=new g(m)),Ot?yt(r,u,c):r;if(i=fs(m.e/Ct),n=fs(r.e/Ct),l=l.slice(),s=i-n,s){for(s<0?(t=l,s=-s,a=h.length):(t=h,n=i,a=l.length),i=Math.ceil(u/Ct),a=i>a?i+1:a+1,s>a&&(s=a,t.length=1),t.reverse();s--;)t.push(0);t.reverse()}for(a=l.length,s=h.length,a-s<0&&(s=a,t=h,h=l,l=t),e=0;s;)e=(l[--s]=l[s]+h[s]+e)/ua|0,l[s]%=ua;for(e&&(l.unshift(e),++n),a=l.length;l[--a]==0;)l.pop();return r.d=l,r.e=zw(l,n),Ot?yt(r,u,c):r};Ve.precision=Ve.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(Hu+r);return t.d?(e=vk(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};Ve.round=function(){var r=this,e=r.constructor;return yt(new e(r),r.e+1,e.rounding)};Ve.sine=Ve.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Ct,n.rounding=1,t=TY(n,Ek(n,t)),n.precision=r,n.rounding=e,yt(Uo>2?t.neg():t,r,e,!0)):new n(NaN)};Ve.squareRoot=Ve.sqrt=function(){var r,e,t,n,s,i,a=this,u=a.d,c=a.e,l=a.s,h=a.constructor;if(l!==1||!u||!u[0])return new h(!l||l<0&&(!u||u[0])?NaN:u?a:1/0);for(Ot=!1,l=Math.sqrt(+a),l==0||l==1/0?(e=zn(u),(e.length+c)%2==0&&(e+="0"),l=Math.sqrt(e),c=fs((c+1)/2)-(c<0||c%2),l==1/0?e="5e"+c:(e=l.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),n=new h(e)):n=new h(l.toString()),t=(c=h.precision)+3;;)if(i=n,n=i.plus(Rr(a,i,t+2,1)).times(.5),zn(i.d).slice(0,t)===(e=zn(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!s&&e=="4999"){if(!s&&(yt(i,c+1,0),i.times(i).eq(a))){n=i;break}t+=4,s=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(yt(n,c+1,1),r=!n.times(n).eq(a));break}return Ot=!0,yt(n,c,h.rounding,r)};Ve.tangent=Ve.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=Rr(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,yt(Uo==2||Uo==4?t.neg():t,r,e,!0)):new n(NaN)};Ve.times=Ve.mul=function(r){var e,t,n,s,i,a,u,c,l,h=this,m=h.constructor,g=h.d,y=(r=new m(r)).d;if(r.s*=h.s,!g||!g[0]||!y||!y[0])return new m(!r.s||g&&!g[0]&&!y||y&&!y[0]&&!g?NaN:!g||!y?r.s/0:r.s*0);for(t=fs(h.e/Ct)+fs(r.e/Ct),c=g.length,l=y.length,c<l&&(i=g,g=y,y=i,a=c,c=l,l=a),i=[],a=c+l,n=a;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,s=c+n;s>n;)u=i[s]+y[n]*g[s-n-1]+e,i[s--]=u%ua|0,e=u/ua|0;i[s]=(i[s]+e)%ua|0}for(;!i[--a];)i.pop();return e?++t:i.shift(),r.d=i,r.e=zw(i,t),Ot?yt(r,m.precision,m.rounding):r};Ve.toBinary=function(r,e){return qN(this,2,r,e)};Ve.toDecimalPlaces=Ve.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(Ls(r,0,Ku),e===void 0?e=n.rounding:Ls(e,0,8),yt(t,r+t.e+1,e))};Ve.toExponential=function(r,e){var t,n=this,s=n.constructor;return r===void 0?t=Fa(n,!0):(Ls(r,0,Ku),e===void 0?e=s.rounding:Ls(e,0,8),n=yt(new s(n),r+1,e),t=Fa(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};Ve.toFixed=function(r,e){var t,n,s=this,i=s.constructor;return r===void 0?t=Fa(s):(Ls(r,0,Ku),e===void 0?e=i.rounding:Ls(e,0,8),n=yt(new i(s),r+s.e+1,e),t=Fa(n,!1,r+n.e+1)),s.isNeg()&&!s.isZero()?"-"+t:t};Ve.toFraction=function(r){var e,t,n,s,i,a,u,c,l,h,m,g,y=this,v=y.d,E=y.constructor;if(!v)return new E(y);if(l=t=new E(1),n=c=new E(0),e=new E(n),i=e.e=vk(v)-y.e-1,a=i%Ct,e.d[0]=_n(10,a<0?Ct+a:a),r==null)r=i>0?e:l;else{if(u=new E(r),!u.isInt()||u.lt(l))throw Error(Hu+u);r=u.gt(e)?i>0?e:l:u}for(Ot=!1,u=new E(zn(v)),h=E.precision,E.precision=i=v.length*Ct*2;m=Rr(u,e,0,1,1),s=t.plus(m.times(n)),s.cmp(r)!=1;)t=n,n=s,s=l,l=c.plus(m.times(s)),c=s,s=e,e=u.minus(m.times(s)),u=s;return s=Rr(r.minus(t),n,0,1,1),c=c.plus(s.times(l)),t=t.plus(s.times(n)),c.s=l.s=y.s,g=Rr(l,n,i,1).minus(y).abs().cmp(Rr(c,t,i,1).minus(y).abs())<1?[l,n]:[c,t],E.precision=h,Ot=!0,g};Ve.toHexadecimal=Ve.toHex=function(r,e){return qN(this,16,r,e)};Ve.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:Ls(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(Ot=!1,t=Rr(t,r,0,e,1).times(r),Ot=!0,yt(t)):(r.s=t.s,t=r),t};Ve.toNumber=function(){return+this};Ve.toOctal=function(r,e){return qN(this,8,r,e)};Ve.toPower=Ve.pow=function(r){var e,t,n,s,i,a,u=this,c=u.constructor,l=+(r=new c(r));if(!u.d||!r.d||!u.d[0]||!r.d[0])return new c(_n(+u,l));if(u=new c(u),u.eq(1))return u;if(n=c.precision,i=c.rounding,r.eq(1))return yt(u,n,i);if(e=fs(r.e/Ct),e>=r.d.length-1&&(t=l<0?-l:l)<=bY)return s=yk(c,u,t,n),r.s<0?new c(1).div(s):yt(s,n,i);if(a=u.s,a<0){if(e<r.d.length-1)return new c(NaN);if((r.d[e]&1)==0&&(a=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=a,u}return t=_n(+u,l),e=t==0||!isFinite(t)?fs(l*(Math.log("0."+zn(u.d))/Math.LN10+u.e+1)):new c(t+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?a/0:0):(Ot=!1,c.rounding=u.s=1,t=Math.min(12,(e+"").length),s=MN(r.times(qu(u,n+t)),n),s.d&&(s=yt(s,n+5,1),Ag(s.d,n,i)&&(e=n+10,s=yt(MN(r.times(qu(u,e+t)),e),e+5,1),+zn(s.d).slice(n+1,n+15)+1==1e14&&(s=yt(s,n+1,0)))),s.s=a,Ot=!0,c.rounding=i,yt(s,n,i))};Ve.toPrecision=function(r,e){var t,n=this,s=n.constructor;return r===void 0?t=Fa(n,n.e<=s.toExpNeg||n.e>=s.toExpPos):(Ls(r,1,Ku),e===void 0?e=s.rounding:Ls(e,0,8),n=yt(new s(n),r,e),t=Fa(n,r<=n.e||n.e<=s.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};Ve.toSignificantDigits=Ve.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(Ls(r,1,Ku),e===void 0?e=n.rounding:Ls(e,0,8)),yt(new n(t),r,e)};Ve.toString=function(){var r=this,e=r.constructor,t=Fa(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};Ve.truncated=Ve.trunc=function(){return yt(new this.constructor(this),this.e+1,1)};Ve.valueOf=Ve.toJSON=function(){var r=this,e=r.constructor,t=Fa(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function zn(r){var e,t,n,s=r.length-1,i="",a=r[0];if(s>0){for(i+=a,e=1;e<s;e++)n=r[e]+"",t=Ct-n.length,t&&(i+=Mu(t)),i+=n;a=r[e],n=a+"",t=Ct-n.length,t&&(i+=Mu(t))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}o(zn,"digitsToString");function Ls(r,e,t){if(r!==~~r||r<e||r>t)throw Error(Hu+r)}o(Ls,"checkInt32");function Ag(r,e,t,n){var s,i,a,u;for(i=r[0];i>=10;i/=10)--e;return--e<0?(e+=Ct,s=0):(s=Math.ceil((e+1)/Ct),e%=Ct),i=_n(10,Ct-e),u=r[s]%i|0,n==null?e<3?(e==0?u=u/100|0:e==1&&(u=u/10|0),a=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):a=(t<4&&u+1==i||t>3&&u+1==i/2)&&(r[s+1]/i/100|0)==_n(10,e-2)-1||(u==i/2||u==0)&&(r[s+1]/i/100|0)==0:e<4?(e==0?u=u/1e3|0:e==1?u=u/100|0:e==2&&(u=u/10|0),a=(n||t<4)&&u==9999||!n&&t>3&&u==4999):a=((n||t<4)&&u+1==i||!n&&t>3&&u+1==i/2)&&(r[s+1]/i/1e3|0)==_n(10,e-3)-1,a}o(Ag,"checkRoundingDigits");function Hw(r,e,t){for(var n,s=[0],i,a=0,u=r.length;a<u;){for(i=s.length;i--;)s[i]*=e;for(s[0]+=UN.indexOf(r.charAt(a++)),n=0;n<s.length;n++)s[n]>t-1&&(s[n+1]===void 0&&(s[n+1]=0),s[n+1]+=s[n]/t|0,s[n]%=t)}return s.reverse()}o(Hw,"convertBase");function CY(r,e){var t,n,s;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),s=(1/Jw(4,t)).toString()):(t=16,s="2.3283064365386962890625e-10"),r.precision+=t,e=Tp(r,1,e.times(s),new r(1));for(var i=t;i--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return r.precision-=t,e}o(CY,"cosine");var Rr=(function(){function r(n,s,i){var a,u=0,c=n.length;for(n=n.slice();c--;)a=n[c]*s+u,n[c]=a%i|0,u=a/i|0;return u&&n.unshift(u),n}o(r,"multiplyInteger");function e(n,s,i,a){var u,c;if(i!=a)c=i>a?1:-1;else for(u=c=0;u<i;u++)if(n[u]!=s[u]){c=n[u]>s[u]?1:-1;break}return c}o(e,"compare");function t(n,s,i,a){for(var u=0;i--;)n[i]-=u,u=n[i]<s[i]?1:0,n[i]=u*a+n[i]-s[i];for(;!n[0]&&n.length>1;)n.shift()}return o(t,"subtract"),function(n,s,i,a,u,c){var l,h,m,g,y,v,E,w,C,_,b,A,T,B,M,I,H,K,q,W,he=n.constructor,pe=n.s==s.s?1:-1,ue=n.d,Y=s.d;if(!ue||!ue[0]||!Y||!Y[0])return new he(!n.s||!s.s||(ue?Y&&ue[0]==Y[0]:!Y)?NaN:ue&&ue[0]==0||!Y?pe*0:pe/0);for(c?(y=1,h=n.e-s.e):(c=ua,y=Ct,h=fs(n.e/y)-fs(s.e/y)),q=Y.length,H=ue.length,C=new he(pe),_=C.d=[],m=0;Y[m]==(ue[m]||0);m++);if(Y[m]>(ue[m]||0)&&h--,i==null?(B=i=he.precision,a=he.rounding):u?B=i+(n.e-s.e)+1:B=i,B<0)_.push(1),v=!0;else{if(B=B/y+2|0,m=0,q==1){for(g=0,Y=Y[0],B++;(m<H||g)&&B--;m++)M=g*c+(ue[m]||0),_[m]=M/Y|0,g=M%Y|0;v=g||m<H}else{for(g=c/(Y[0]+1)|0,g>1&&(Y=r(Y,g,c),ue=r(ue,g,c),q=Y.length,H=ue.length),I=q,b=ue.slice(0,q),A=b.length;A<q;)b[A++]=0;W=Y.slice(),W.unshift(0),K=Y[0],Y[1]>=c/2&&++K;do g=0,l=e(Y,b,q,A),l<0?(T=b[0],q!=A&&(T=T*c+(b[1]||0)),g=T/K|0,g>1?(g>=c&&(g=c-1),E=r(Y,g,c),w=E.length,A=b.length,l=e(E,b,w,A),l==1&&(g--,t(E,q<w?W:Y,w,c))):(g==0&&(l=g=1),E=Y.slice()),w=E.length,w<A&&E.unshift(0),t(b,E,A,c),l==-1&&(A=b.length,l=e(Y,b,q,A),l<1&&(g++,t(b,q<A?W:Y,A,c))),A=b.length):l===0&&(g++,b=[0]),_[m++]=g,l&&b[0]?b[A++]=ue[I]||0:(b=[ue[I]],A=1);while((I++<H||b[0]!==void 0)&&B--);v=b[0]!==void 0}_[0]||_.shift()}if(y==1)C.e=h,hk=v;else{for(m=1,g=_[0];g>=10;g/=10)m++;C.e=m+h*y-1,yt(C,u?i+C.e+1:i,a,v)}return C}})();function yt(r,e,t,n){var s,i,a,u,c,l,h,m,g,y=r.constructor;e:if(e!=null){if(m=r.d,!m)return r;for(s=1,u=m[0];u>=10;u/=10)s++;if(i=e-s,i<0)i+=Ct,a=e,h=m[g=0],c=h/_n(10,s-a-1)%10|0;else if(g=Math.ceil((i+1)/Ct),u=m.length,g>=u)if(n){for(;u++<=g;)m.push(0);h=c=0,s=1,i%=Ct,a=i-Ct+1}else break e;else{for(h=u=m[g],s=1;u>=10;u/=10)s++;i%=Ct,a=i-Ct+s,c=a<0?0:h/_n(10,s-a-1)%10|0}if(n=n||e<0||m[g+1]!==void 0||(a<0?h:h%_n(10,s-a-1)),l=t<4?(c||n)&&(t==0||t==(r.s<0?3:2)):c>5||c==5&&(t==4||n||t==6&&(i>0?a>0?h/_n(10,s-a):0:m[g-1])%10&1||t==(r.s<0?8:7)),e<1||!m[0])return m.length=0,l?(e-=r.e+1,m[0]=_n(10,(Ct-e%Ct)%Ct),r.e=-e||0):m[0]=r.e=0,r;if(i==0?(m.length=g,u=1,g--):(m.length=g+1,u=_n(10,Ct-i),m[g]=a>0?(h/_n(10,s-a)%_n(10,a)|0)*u:0),l)for(;;)if(g==0){for(i=1,a=m[0];a>=10;a/=10)i++;for(a=m[0]+=u,u=1;a>=10;a/=10)u++;i!=u&&(r.e++,m[0]==ua&&(m[0]=1));break}else{if(m[g]+=u,m[g]!=ua)break;m[g--]=0,u=1}for(i=m.length;m[--i]===0;)m.pop()}return Ot&&(r.e>y.maxE?(r.d=null,r.e=NaN):r.e<y.minE&&(r.e=0,r.d=[0])),r}o(yt,"finalise");function Fa(r,e,t){if(!r.isFinite())return wk(r);var n,s=r.e,i=zn(r.d),a=i.length;return e?(t&&(n=t-a)>0?i=i.charAt(0)+"."+i.slice(1)+Mu(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(r.e<0?"e":"e+")+r.e):s<0?(i="0."+Mu(-s-1)+i,t&&(n=t-a)>0&&(i+=Mu(n))):s>=a?(i+=Mu(s+1-a),t&&(n=t-s-1)>0&&(i=i+"."+Mu(n))):((n=s+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),t&&(n=t-a)>0&&(s+1===a&&(i+="."),i+=Mu(n))),i}o(Fa,"finiteToString");function zw(r,e){var t=r[0];for(e*=Ct;t>=10;t/=10)e++;return e}o(zw,"getBase10Exponent");function Xw(r,e,t){if(e>AY)throw Ot=!0,t&&(r.precision=t),Error(pk);return yt(new r($w),e,1,!0)}o(Xw,"getLn10");function ja(r,e,t){if(e>FN)throw Error(pk);return yt(new r(Gw),e,t,!0)}o(ja,"getPi");function vk(r){var e=r.length-1,t=e*Ct+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}o(vk,"getPrecision");function Mu(r){for(var e="";r--;)e+="0";return e}o(Mu,"getZeroString");function yk(r,e,t,n){var s,i=new r(1),a=Math.ceil(n/Ct+4);for(Ot=!1;;){if(t%2&&(i=i.times(e),lk(i.d,a)&&(s=!0)),t=fs(t/2),t===0){t=i.d.length-1,s&&i.d[t]===0&&++i.d[t];break}e=e.times(e),lk(e.d,a)}return Ot=!0,i}o(yk,"intPow");function ck(r){return r.d[r.d.length-1]&1}o(ck,"isOdd");function xk(r,e,t){for(var n,s,i=new r(e[0]),a=0;++a<e.length;){if(s=new r(e[a]),!s.s){i=s;break}n=i.cmp(s),(n===t||n===0&&i.s===t)&&(i=s)}return i}o(xk,"maxOrMin");function MN(r,e){var t,n,s,i,a,u,c,l=0,h=0,m=0,g=r.constructor,y=g.rounding,v=g.precision;if(!r.d||!r.d[0]||r.e>17)return new g(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:NaN);for(e==null?(Ot=!1,c=v):c=e,u=new g(.03125);r.e>-2;)r=r.times(u),m+=5;for(n=Math.log(_n(2,m))/Math.LN10*2+5|0,c+=n,t=i=a=new g(1),g.precision=c;;){if(i=yt(i.times(r),c,1),t=t.times(++h),u=a.plus(Rr(i,t,c,1)),zn(u.d).slice(0,c)===zn(a.d).slice(0,c)){for(s=m;s--;)a=yt(a.times(a),c,1);if(e==null)if(l<3&&Ag(a.d,c-n,y,l))g.precision=c+=10,t=i=u=new g(1),h=0,l++;else return yt(a,g.precision=v,y,Ot=!0);else return g.precision=v,a}a=u}}o(MN,"naturalExponential");function qu(r,e){var t,n,s,i,a,u,c,l,h,m,g,y=1,v=10,E=r,w=E.d,C=E.constructor,_=C.rounding,b=C.precision;if(E.s<0||!w||!w[0]||!E.e&&w[0]==1&&w.length==1)return new C(w&&!w[0]?-1/0:E.s!=1?NaN:w?0:E);if(e==null?(Ot=!1,h=b):h=e,C.precision=h+=v,t=zn(w),n=t.charAt(0),Math.abs(i=E.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)E=E.times(r),t=zn(E.d),n=t.charAt(0),y++;i=E.e,n>1?(E=new C("0."+t),i++):E=new C(n+"."+t.slice(1))}else return l=Xw(C,h+2,b).times(i+""),E=qu(new C(n+"."+t.slice(1)),h-v).plus(l),C.precision=b,e==null?yt(E,b,_,Ot=!0):E;for(m=E,c=a=E=Rr(E.minus(1),E.plus(1),h,1),g=yt(E.times(E),h,1),s=3;;){if(a=yt(a.times(g),h,1),l=c.plus(Rr(a,new C(s),h,1)),zn(l.d).slice(0,h)===zn(c.d).slice(0,h))if(c=c.times(2),i!==0&&(c=c.plus(Xw(C,h+2,b).times(i+""))),c=Rr(c,new C(y),h,1),e==null)if(Ag(c.d,h-v,_,u))C.precision=h+=v,l=a=E=Rr(m.minus(1),m.plus(1),h,1),g=yt(E.times(E),h,1),s=u=1;else return yt(c,C.precision=b,_,Ot=!0);else return C.precision=b,c;c=l,s+=2}}o(qu,"naturalLogarithm");function wk(r){return String(r.s*r.s/0)}o(wk,"nonFiniteToString");function Kw(r,e){var t,n,s;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(s=e.length;e.charCodeAt(s-1)===48;--s);if(e=e.slice(n,s),e){if(s-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%Ct,t<0&&(n+=Ct),n<s){for(n&&r.d.push(+e.slice(0,n)),s-=Ct;n<s;)r.d.push(+e.slice(n,n+=Ct));e=e.slice(n),n=Ct-e.length}else n-=s;for(;n--;)e+="0";r.d.push(+e),Ot&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}o(Kw,"parseDecimal");function NY(r,e){var t,n,s,i,a,u,c,l,h;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),gk.test(e))return Kw(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(EY.test(e))t=16,e=e.toLowerCase();else if(wY.test(e))t=2;else if(SY.test(e))t=8;else throw Error(Hu+e);for(i=e.search(/p/i),i>0?(c=+e.slice(i+1),e=e.substring(2,i)):e=e.slice(2),i=e.indexOf("."),a=i>=0,n=r.constructor,a&&(e=e.replace(".",""),u=e.length,i=u-i,s=yk(n,new n(t),i,i*2)),l=Hw(e,t,ua),h=l.length-1,i=h;l[i]===0;--i)l.pop();return i<0?new n(r.s*0):(r.e=zw(l,h),r.d=l,Ot=!1,a&&(r=Rr(r,s,u*4)),c&&(r=r.times(Math.abs(c)<54?_n(2,c):Ip.pow(2,c))),Ot=!0,r)}o(NY,"parseOther");function TY(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Tp(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/Jw(5,t)),e=Tp(r,2,e,e);for(var s,i=new r(5),a=new r(16),u=new r(20);t--;)s=e.times(e),e=e.times(i.plus(s.times(a.times(s).minus(u))));return e}o(TY,"sine");function Tp(r,e,t,n,s){var i,a,u,c,l=1,h=r.precision,m=Math.ceil(h/Ct);for(Ot=!1,c=t.times(t),u=new r(n);;){if(a=Rr(u.times(c),new r(e++*e++),h,1),u=s?n.plus(a):n.minus(a),n=Rr(a.times(c),new r(e++*e++),h,1),a=u.plus(n),a.d[m]!==void 0){for(i=m;a.d[i]===u.d[i]&&i--;);if(i==-1)break}i=u,u=n,n=a,a=i,l++}return Ot=!0,a.d.length=m+1,a}o(Tp,"taylorSeries");function Jw(r,e){for(var t=r;--e;)t*=r;return t}o(Jw,"tinyPow");function Ek(r,e){var t,n=e.s<0,s=ja(r,r.precision,1),i=s.times(.5);if(e=e.abs(),e.lte(i))return Uo=n?4:1,e;if(t=e.divToInt(s),t.isZero())Uo=n?3:2;else{if(e=e.minus(t.times(s)),e.lte(i))return Uo=ck(t)?n?2:3:n?4:1,e;Uo=ck(t)?n?1:4:n?3:2}return e.minus(s).abs()}o(Ek,"toLessThanHalfPi");function qN(r,e,t,n){var s,i,a,u,c,l,h,m,g,y=r.constructor,v=t!==void 0;if(v?(Ls(t,1,Ku),n===void 0?n=y.rounding:Ls(n,0,8)):(t=y.precision,n=y.rounding),!r.isFinite())h=wk(r);else{for(h=Fa(r),a=h.indexOf("."),v?(s=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):s=e,a>=0&&(h=h.replace(".",""),g=new y(1),g.e=h.length-a,g.d=Hw(Fa(g),10,s),g.e=g.d.length),m=Hw(h,10,s),i=c=m.length;m[--c]==0;)m.pop();if(!m[0])h=v?"0p+0":"0";else{if(a<0?i--:(r=new y(r),r.d=m,r.e=i,r=Rr(r,g,t,n,0,s),m=r.d,i=r.e,l=hk),a=m[t],u=s/2,l=l||m[t+1]!==void 0,l=n<4?(a!==void 0||l)&&(n===0||n===(r.s<0?3:2)):a>u||a===u&&(n===4||l||n===6&&m[t-1]&1||n===(r.s<0?8:7)),m.length=t,l)for(;++m[--t]>s-1;)m[t]=0,t||(++i,m.unshift(1));for(c=m.length;!m[c-1];--c);for(a=0,h="";a<c;a++)h+=UN.charAt(m[a]);if(v){if(c>1)if(e==16||e==8){for(a=e==16?4:3,--c;c%a;c++)h+="0";for(m=Hw(h,s,e),c=m.length;!m[c-1];--c);for(a=1,h="1.";a<c;a++)h+=UN.charAt(m[a])}else h=h.charAt(0)+"."+h.slice(1);h=h+(i<0?"p":"p+")+i}else if(i<0){for(;++i;)h="0"+h;h="0."+h}else if(++i>c)for(i-=c;i--;)h+="0";else i<c&&(h=h.slice(0,i)+"."+h.slice(i))}h=(e==16?"0x":e==2?"0b":e==8?"0o":"")+h}return r.s<0?"-"+h:h}o(qN,"toStringBinary");function lk(r,e){if(r.length>e)return r.length=e,!0}o(lk,"truncate");function IY(r){return new this(r).abs()}o(IY,"abs");function _Y(r){return new this(r).acos()}o(_Y,"acos");function DY(r){return new this(r).acosh()}o(DY,"acosh");function BY(r,e){return new this(r).plus(e)}o(BY,"add");function RY(r){return new this(r).asin()}o(RY,"asin");function OY(r){return new this(r).asinh()}o(OY,"asinh");function PY(r){return new this(r).atan()}o(PY,"atan");function kY(r){return new this(r).atanh()}o(kY,"atanh");function LY(r,e){r=new this(r),e=new this(e);var t,n=this.precision,s=this.rounding,i=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=ja(this,i,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?ja(this,n,s):new this(0),t.s=r.s):!r.d||e.isZero()?(t=ja(this,i,1).times(.5),t.s=r.s):e.s<0?(this.precision=i,this.rounding=1,t=this.atan(Rr(r,e,i,1)),e=ja(this,i,1),this.precision=n,this.rounding=s,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(Rr(r,e,i,1)),t}o(LY,"atan2");function VY(r){return new this(r).cbrt()}o(VY,"cbrt");function UY(r){return yt(r=new this(r),r.e+1,2)}o(UY,"ceil");function jY(r,e,t){return new this(r).clamp(e,t)}o(jY,"clamp");function FY(r){if(!r||typeof r!="object")throw Error(Ww+"Object expected");var e,t,n,s=r.defaults===!0,i=["precision",1,Ku,"rounding",0,8,"toExpNeg",-Np,0,"toExpPos",0,Np,"maxE",0,Np,"minE",-Np,0,"modulo",0,9];for(e=0;e<i.length;e+=3)if(t=i[e],s&&(this[t]=jN[t]),(n=r[t])!==void 0)if(fs(n)===n&&n>=i[e+1]&&n<=i[e+2])this[t]=n;else throw Error(Hu+t+": "+n);if(t="crypto",s&&(this[t]=jN[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(dk);else this[t]=!1;else throw Error(Hu+t+": "+n);return this}o(FY,"config");function MY(r){return new this(r).cos()}o(MY,"cos");function qY(r){return new this(r).cosh()}o(qY,"cosh");function Sk(r){var e,t,n;function s(i){var a,u,c,l=this;if(!(l instanceof s))return new s(i);if(l.constructor=s,fk(i)){l.s=i.s,Ot?!i.d||i.e>s.maxE?(l.e=NaN,l.d=null):i.e<s.minE?(l.e=0,l.d=[0]):(l.e=i.e,l.d=i.d.slice()):(l.e=i.e,l.d=i.d?i.d.slice():i.d);return}if(c=typeof i,c==="number"){if(i===0){l.s=1/i<0?-1:1,l.e=0,l.d=[0];return}if(i<0?(i=-i,l.s=-1):l.s=1,i===~~i&&i<1e7){for(a=0,u=i;u>=10;u/=10)a++;Ot?a>s.maxE?(l.e=NaN,l.d=null):a<s.minE?(l.e=0,l.d=[0]):(l.e=a,l.d=[i]):(l.e=a,l.d=[i]);return}if(i*0!==0){i||(l.s=NaN),l.e=NaN,l.d=null;return}return Kw(l,i.toString())}if(c==="string")return(u=i.charCodeAt(0))===45?(i=i.slice(1),l.s=-1):(u===43&&(i=i.slice(1)),l.s=1),gk.test(i)?Kw(l,i):NY(l,i);if(c==="bigint")return i<0?(i=-i,l.s=-1):l.s=1,Kw(l,i.toString());throw Error(Hu+i)}if(o(s,"Decimal"),s.prototype=Ve,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=FY,s.clone=Sk,s.isDecimal=fk,s.abs=IY,s.acos=_Y,s.acosh=DY,s.add=BY,s.asin=RY,s.asinh=OY,s.atan=PY,s.atanh=kY,s.atan2=LY,s.cbrt=VY,s.ceil=UY,s.clamp=jY,s.cos=MY,s.cosh=qY,s.div=HY,s.exp=KY,s.floor=$Y,s.hypot=GY,s.ln=XY,s.log=WY,s.log10=JY,s.log2=zY,s.max=YY,s.min=QY,s.mod=ZY,s.mul=eQ,s.pow=tQ,s.random=rQ,s.round=nQ,s.sign=sQ,s.sin=iQ,s.sinh=aQ,s.sqrt=oQ,s.sub=uQ,s.sum=cQ,s.tan=lQ,s.tanh=fQ,s.trunc=hQ,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return s.config(r),s}o(Sk,"clone");function HY(r,e){return new this(r).div(e)}o(HY,"div");function KY(r){return new this(r).exp()}o(KY,"exp");function $Y(r){return yt(r=new this(r),r.e+1,3)}o($Y,"floor");function GY(){var r,e,t=new this(0);for(Ot=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return Ot=!0,new this(1/0);t=e}return Ot=!0,t.sqrt()}o(GY,"hypot");function fk(r){return r instanceof Ip||r&&r.toStringTag===mk||!1}o(fk,"isDecimalInstance");function XY(r){return new this(r).ln()}o(XY,"ln");function WY(r,e){return new this(r).log(e)}o(WY,"log");function zY(r){return new this(r).log(2)}o(zY,"log2");function JY(r){return new this(r).log(10)}o(JY,"log10");function YY(){return xk(this,arguments,-1)}o(YY,"max");function QY(){return xk(this,arguments,1)}o(QY,"min");function ZY(r,e){return new this(r).mod(e)}o(ZY,"mod");function eQ(r,e){return new this(r).mul(e)}o(eQ,"mul");function tQ(r,e){return new this(r).pow(e)}o(tQ,"pow");function rQ(r){var e,t,n,s,i=0,a=new this(1),u=[];if(r===void 0?r=this.precision:Ls(r,1,Ku),n=Math.ceil(r/Ct),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));i<n;)s=e[i],s>=429e7?e[i]=crypto.getRandomValues(new Uint32Array(1))[0]:u[i++]=s%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);i<n;)s=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+((e[i+3]&127)<<24),s>=214e7?crypto.randomBytes(4).copy(e,i):(u.push(s%1e7),i+=4);i=n/4}else throw Error(dk);else for(;i<n;)u[i++]=Math.random()*1e7|0;for(n=u[--i],r%=Ct,n&&r&&(s=_n(10,Ct-r),u[i]=(n/s|0)*s);u[i]===0;i--)u.pop();if(i<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=Ct)u.shift();for(n=1,s=u[0];s>=10;s/=10)n++;n<Ct&&(t-=Ct-n)}return a.e=t,a.d=u,a}o(rQ,"random");function nQ(r){return yt(r=new this(r),r.e+1,this.rounding)}o(nQ,"round");function sQ(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}o(sQ,"sign");function iQ(r){return new this(r).sin()}o(iQ,"sin");function aQ(r){return new this(r).sinh()}o(aQ,"sinh");function oQ(r){return new this(r).sqrt()}o(oQ,"sqrt");function uQ(r,e){return new this(r).sub(e)}o(uQ,"sub");function cQ(){var r=0,e=arguments,t=new this(e[r]);for(Ot=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return Ot=!0,yt(t,this.precision,this.rounding)}o(cQ,"sum");function lQ(r){return new this(r).tan()}o(lQ,"tan");function fQ(r){return new this(r).tanh()}o(fQ,"tanh");function hQ(r){return yt(r=new this(r),r.e+1,1)}o(hQ,"trunc");Ve[Symbol.for("nodejs.util.inspect.custom")]=Ve.toString;Ve[Symbol.toStringTag]="Decimal";var Ip=Ve.constructor=Sk(jN);$w=new Ip($w);Gw=new Ip(Gw);var _p=class r extends Ip{static{o(this,"Decimal")}static from(e){return new r(e)}static newOrZero(e){return e===void 0?r.from(0):r.from(e)}static newOrUndefined(e){if(e!==void 0)return r.from(e)}};import pQ from"pdfkit";var bk=class r{static{o(this,"PdfkitPdfBuilder")}defaults={autoFirstPage:!1};doc=new pQ(this.defaults);constructor(e){e&&this.configure(e)}static new(e){return new r(e)}configure(e){return this.doc.options={...this.doc.options,...e},this}pipe(e){return this.doc.pipe(e),this}end(){return this.doc.end()}restore(){return this.doc.restore(),this}save(){return this.doc.save(),this}stroke(e){return this.doc.stroke(e),this}page(e){return this.doc.addPage(e),this}table(e){return this.doc.table(e),this}text(e,t){let{x:n,y:s,...i}=t??{};return n||s?(this.doc.text(e,n,s,i),this):(this.doc.text(e,t),this)}fontSize(e){return this.doc.fontSize(e),this}font(e,t,n){return typeof t=="string"?(this.doc.font(e,t,n),this):typeof t=="number"?(this.doc.font(e,t),this):(this.doc.font(e),this)}image(e,t,n,s){return typeof t=="number"&&typeof n=="number"?(this.doc.image(e,t,n,s),this):(this.doc.image(e,t),this)}rect(e,t,n,s){return this.doc.rect(e,t,n,s),this}path(e){return this.doc.path(e),this}translate(e,t){return this.doc.translate(e,t),this}scale(e,t){return this.doc.scale(e,t),this}fill(e,t){return this.doc.fill(e,t),this}pageWidth(){return this.doc.page.width}pageHeight(){return this.doc.page.height}heightOfString(e,t){return this.doc.heightOfString(e,t)}widthOfString(e,t){return this.doc.widthOfString(e,t)}pageMargins(){return this.doc.page.margins}currentLineHeight(e){return this.doc.currentLineHeight(e)}x(){return this.doc.x}y(){return this.doc.y}moveDown(e){return this.doc.moveDown(e),this}row(e,...t){let n,s;typeof e=="function"?(n={},s=[e,...t]):(n=e??{},s=t),n.columns??=1;let i=this.y(),a=n.right??0,u=n.left??0,c=n.gap??0,l=this.pageWidth(),h=l-u-a-c*(n.columns-1);n.size??=Array(n.columns).fill(12/n.columns);let m=[];for(let g=0;g<n.columns;g++){let y=n.size[g]/12;m[g]=h*y}for(let g=0,y=u;g<n.columns;g++){let v=g===n.columns-1,E=m[g];if(v&&n.columns>1){let _=l-a-y;_>0&&Math.abs(_-E)>.01&&(E=_)}let w={y:i,x:y,width:E};s[g](w),y+=E,c>0&&!v&&(y+=c)}return this}};var Ak=class{static{o(this,"MemoryCacheAdapter")}cache=new Map;async get(e){return Promise.resolve(this.cache.get(e)??null)}has(e){return Promise.resolve(this.cache.has(e))}set(e,t){return this.cache.set(e,t),Promise.resolve(!0)}};var Yw=class{static{o(this,"NullCacheAdapter")}async get(e){return Promise.resolve(null)}has(e){return Promise.resolve(!1)}set(e,t){return Promise.resolve(!0)}};var Ll=Xl(FL(),1);import rK from"fs";import kge from"path";import v2 from"crypto";var Jte=o(r=>!!r&&typeof r=="object"&&"message"in r,"hasMessageInRecord"),nf=o(r=>typeof r=="string"?ls(new Wr(r)):r instanceof Error?ls(new Wr(r.message,{cause:r.cause})):Jte(r)?ls(new Wr(r.message)):ls(new Wr("unexpected error")),"leftFromError");import"reflect-metadata";var hM=Xl(Zj(),1);import Dpe from"os";import{constants as Bpe}from"crypto";import{Agent as KD}from"https";function bv(r,e){return o(function(){return r.apply(e,arguments)},"wrap")}o(bv,"bind");var{toString:hfe}=Object.prototype,{getPrototypeOf:mD}=Object,{iterator:GS,toStringTag:tF}=Symbol,XS=(r=>e=>{let t=hfe.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),va=o(r=>(r=r.toLowerCase(),e=>XS(e)===r),"kindOfTest"),WS=o(r=>e=>typeof e===r,"typeOfTest"),{isArray:bd}=Array,Sd=WS("undefined");function Av(r){return r!==null&&!Sd(r)&&r.constructor!==null&&!Sd(r.constructor)&&Ws(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}o(Av,"isBuffer");var rF=va("ArrayBuffer");function pfe(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&rF(r.buffer),e}o(pfe,"isArrayBufferView");var dfe=WS("string"),Ws=WS("function"),nF=WS("number"),Cv=o(r=>r!==null&&typeof r=="object","isObject"),mfe=o(r=>r===!0||r===!1,"isBoolean"),$S=o(r=>{if(XS(r)!=="object")return!1;let e=mD(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tF in r)&&!(GS in r)},"isPlainObject"),gfe=o(r=>{if(!Cv(r)||Av(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},"isEmptyObject"),vfe=va("Date"),yfe=va("File"),xfe=va("Blob"),wfe=va("FileList"),Efe=o(r=>Cv(r)&&Ws(r.pipe),"isStream"),Sfe=o(r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||Ws(r.append)&&((e=XS(r))==="formdata"||e==="object"&&Ws(r.toString)&&r.toString()==="[object FormData]"))},"isFormData"),bfe=va("URLSearchParams"),[Afe,Cfe,Nfe,Tfe]=["ReadableStream","Request","Response","Headers"].map(va),Ife=o(r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function Nv(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,s;if(typeof r!="object"&&(r=[r]),bd(r))for(n=0,s=r.length;n<s;n++)e.call(null,r[n],n,r);else{if(Av(r))return;let i=t?Object.getOwnPropertyNames(r):Object.keys(r),a=i.length,u;for(n=0;n<a;n++)u=i[n],e.call(null,r[u],u,r)}}o(Nv,"forEach");function sF(r,e){if(Av(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,s;for(;n-- >0;)if(s=t[n],e===s.toLowerCase())return s;return null}o(sF,"findKey");var vf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iF=o(r=>!Sd(r)&&r!==vf,"isContextDefined");function dD(){let{caseless:r,skipUndefined:e}=iF(this)&&this||{},t={},n=o((s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;let a=r&&sF(t,i)||i;$S(t[a])&&$S(s)?t[a]=dD(t[a],s):$S(s)?t[a]=dD({},s):bd(s)?t[a]=s.slice():(!e||!Sd(s))&&(t[a]=s)},"assignValue");for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Nv(arguments[s],n);return t}o(dD,"merge");var _fe=o((r,e,t,{allOwnKeys:n}={})=>(Nv(e,(s,i)=>{t&&Ws(s)?Object.defineProperty(r,i,{value:bv(s,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),"extend"),Dfe=o(r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),"stripBOM"),Bfe=o((r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},"inherits"),Rfe=o((r,e,t,n)=>{let s,i,a,u={};if(e=e||{},r==null)return e;do{for(s=Object.getOwnPropertyNames(r),i=s.length;i-- >0;)a=s[i],(!n||n(a,r,e))&&!u[a]&&(e[a]=r[a],u[a]=!0);r=t!==!1&&mD(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},"toFlatObject"),Ofe=o((r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},"endsWith"),Pfe=o(r=>{if(!r)return null;if(bd(r))return r;let e=r.length;if(!nF(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},"toArray"),kfe=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&mD(Uint8Array)),Lfe=o((r,e)=>{let n=(r&&r[GS]).call(r),s;for(;(s=n.next())&&!s.done;){let i=s.value;e.call(r,i[0],i[1])}},"forEachEntry"),Vfe=o((r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},"matchAll"),Ufe=va("HTMLFormElement"),jfe=o(r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,o(function(t,n,s){return n.toUpperCase()+s},"replacer")),"toCamelCase"),eF=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Ffe=va("RegExp"),aF=o((r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Nv(t,(s,i)=>{let a;(a=e(s,i,r))!==!1&&(n[i]=a||s)}),Object.defineProperties(r,n)},"reduceDescriptors"),Mfe=o(r=>{aF(r,(e,t)=>{if(Ws(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(Ws(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},"freezeMethods"),qfe=o((r,e)=>{let t={},n=o(s=>{s.forEach(i=>{t[i]=!0})},"define");return bd(r)?n(r):n(String(r).split(e)),t},"toObjectSet"),Hfe=o(()=>{},"noop"),Kfe=o((r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,"toFiniteNumber");function $fe(r){return!!(r&&Ws(r.append)&&r[tF]==="FormData"&&r[GS])}o($fe,"isSpecCompliantForm");var Gfe=o(r=>{let e=new Array(10),t=o((n,s)=>{if(Cv(n)){if(e.indexOf(n)>=0)return;if(Av(n))return n;if(!("toJSON"in n)){e[s]=n;let i=bd(n)?[]:{};return Nv(n,(a,u)=>{let c=t(a,s+1);!Sd(c)&&(i[u]=c)}),e[s]=void 0,i}}return n},"visit");return t(r,0)},"toJSONObject"),Xfe=va("AsyncFunction"),Wfe=o(r=>r&&(Cv(r)||Ws(r))&&Ws(r.then)&&Ws(r.catch),"isThenable"),oF=((r,e)=>r?setImmediate:e?((t,n)=>(vf.addEventListener("message",({source:s,data:i})=>{s===vf&&i===t&&n.length&&n.shift()()},!1),s=>{n.push(s),vf.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Ws(vf.postMessage)),zfe=typeof queueMicrotask<"u"?queueMicrotask.bind(vf):typeof process<"u"&&process.nextTick||oF,Jfe=o(r=>r!=null&&Ws(r[GS]),"isIterable"),ie={isArray:bd,isArrayBuffer:rF,isBuffer:Av,isFormData:Sfe,isArrayBufferView:pfe,isString:dfe,isNumber:nF,isBoolean:mfe,isObject:Cv,isPlainObject:$S,isEmptyObject:gfe,isReadableStream:Afe,isRequest:Cfe,isResponse:Nfe,isHeaders:Tfe,isUndefined:Sd,isDate:vfe,isFile:yfe,isBlob:xfe,isRegExp:Ffe,isFunction:Ws,isStream:Efe,isURLSearchParams:bfe,isTypedArray:kfe,isFileList:wfe,forEach:Nv,merge:dD,extend:_fe,trim:Ife,stripBOM:Dfe,inherits:Bfe,toFlatObject:Rfe,kindOf:XS,kindOfTest:va,endsWith:Ofe,toArray:Pfe,forEachEntry:Lfe,matchAll:Vfe,isHTMLForm:Ufe,hasOwnProperty:eF,hasOwnProp:eF,reduceDescriptors:aF,freezeMethods:Mfe,toObjectSet:qfe,toCamelCase:jfe,noop:Hfe,toFiniteNumber:Kfe,findKey:sF,global:vf,isContextDefined:iF,isSpecCompliantForm:$fe,toJSONObject:Gfe,isAsyncFn:Xfe,isThenable:Wfe,setImmediate:oF,asap:zfe,isIterable:Jfe};var pi=class uF extends Error{static{o(this,"AxiosError")}static from(e,t,n,s,i,a){let u=new uF(e.message,t||e.code,n,s,i);return u.cause=e,u.name=e.name,a&&Object.assign(u,a),u}constructor(e,t,n,s,i){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.status}}};pi.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";pi.ERR_BAD_OPTION="ERR_BAD_OPTION";pi.ECONNABORTED="ECONNABORTED";pi.ETIMEDOUT="ETIMEDOUT";pi.ERR_NETWORK="ERR_NETWORK";pi.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";pi.ERR_DEPRECATED="ERR_DEPRECATED";pi.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";pi.ERR_BAD_REQUEST="ERR_BAD_REQUEST";pi.ERR_CANCELED="ERR_CANCELED";pi.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";pi.ERR_INVALID_URL="ERR_INVALID_URL";var Ze=pi;var pF=Xl(hF(),1),zS=pF.default;function wD(r){return ie.isPlainObject(r)||ie.isArray(r)}o(wD,"isVisitable");function mF(r){return ie.endsWith(r,"[]")?r.slice(0,-2):r}o(mF,"removeBrackets");function dF(r,e,t){return r?r.concat(e).map(o(function(s,i){return s=mF(s),!t&&i?"["+s+"]":s},"each")).join(t?".":""):e}o(dF,"renderKey");function ahe(r){return ie.isArray(r)&&!r.some(wD)}o(ahe,"isFlatArray");var ohe=ie.toFlatObject(ie,{},null,o(function(e){return/^is[A-Z]/.test(e)},"filter"));function uhe(r,e,t){if(!ie.isObject(r))throw new TypeError("target must be an object");e=e||new(zS||FormData),t=ie.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,o(function(E,w){return!ie.isUndefined(w[E])},"defined"));let n=t.metaTokens,s=t.visitor||h,i=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(e);if(!ie.isFunction(s))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(ie.isDate(v))return v.toISOString();if(ie.isBoolean(v))return v.toString();if(!c&&ie.isBlob(v))throw new Ze("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(v)||ie.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}o(l,"convertValue");function h(v,E,w){let C=v;if(v&&!w&&typeof v=="object"){if(ie.endsWith(E,"{}"))E=n?E:E.slice(0,-2),v=JSON.stringify(v);else if(ie.isArray(v)&&ahe(v)||(ie.isFileList(v)||ie.endsWith(E,"[]"))&&(C=ie.toArray(v)))return E=mF(E),C.forEach(o(function(b,A){!(ie.isUndefined(b)||b===null)&&e.append(a===!0?dF([E],A,i):a===null?E:E+"[]",l(b))},"each")),!1}return wD(v)?!0:(e.append(dF(w,E,i),l(v)),!1)}o(h,"defaultVisitor");let m=[],g=Object.assign(ohe,{defaultVisitor:h,convertValue:l,isVisitable:wD});function y(v,E){if(!ie.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+E.join("."));m.push(v),ie.forEach(v,o(function(C,_){(!(ie.isUndefined(C)||C===null)&&s.call(e,C,ie.isString(_)?_.trim():_,E,g))===!0&&y(C,E?E.concat(_):[_])},"each")),m.pop()}}if(o(y,"build"),!ie.isObject(r))throw new TypeError("data must be an object");return y(r),e}o(uhe,"toFormData");var Sc=uhe;function gF(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,o(function(n){return e[n]},"replacer"))}o(gF,"encode");function vF(r,e){this._pairs=[],r&&Sc(r,this,e)}o(vF,"AxiosURLSearchParams");var yF=vF.prototype;yF.append=o(function(e,t){this._pairs.push([e,t])},"append");yF.toString=o(function(e){let t=e?function(n){return e.call(this,n,gF)}:gF;return this._pairs.map(o(function(s){return t(s[0])+"="+t(s[1])},"each"),"").join("&")},"toString");var xF=vF;function che(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}o(che,"encode");function yf(r,e,t){if(!e)return r;let n=t&&t.encode||che,s=ie.isFunction(t)?{serialize:t}:t,i=s&&s.serialize,a;if(i?a=i(e,s):a=ie.isURLSearchParams(e)?e.toString():new xF(e,s).toString(n),a){let u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r}o(yf,"buildURL");var lhe=class{static{o(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ie.forEach(this.handlers,o(function(n){n!==null&&e(n)},"forEachHandler"))}},ED=lhe;var bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};import hhe from"crypto";import fhe from"url";var wF=fhe.URLSearchParams;var SD="abcdefghijklmnopqrstuvwxyz",EF="0123456789",SF={DIGIT:EF,ALPHA:SD,ALPHA_DIGIT:SD+SD.toUpperCase()+EF},phe=o((r=16,e=SF.ALPHA_DIGIT)=>{let t="",{length:n}=e,s=new Uint32Array(r);hhe.randomFillSync(s);for(let i=0;i<r;i++)t+=e[s[i]%n];return t},"generateString"),bF={isNode:!0,classes:{URLSearchParams:wF,FormData:zS,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:SF,generateString:phe,protocols:["http","https","file","data"]};var CD={};vY(CD,{hasBrowserEnv:()=>AD,hasStandardBrowserEnv:()=>dhe,hasStandardBrowserWebWorkerEnv:()=>mhe,navigator:()=>bD,origin:()=>ghe});var AD=typeof window<"u"&&typeof document<"u",bD=typeof navigator=="object"&&navigator||void 0,dhe=AD&&(!bD||["ReactNative","NativeScript","NS"].indexOf(bD.product)<0),mhe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ghe=AD&&window.location.href||"http://localhost";var wr={...CD,...bF};function ND(r,e){return Sc(r,new wr.classes.URLSearchParams,{visitor:o(function(t,n,s,i){return wr.isNode&&ie.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},"visitor"),...e})}o(ND,"toURLEncodedForm");function vhe(r){return ie.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}o(vhe,"parsePropPath");function yhe(r){let e={},t=Object.keys(r),n,s=t.length,i;for(n=0;n<s;n++)i=t[n],e[i]=r[i];return e}o(yhe,"arrayToObject");function xhe(r){function e(t,n,s,i){let a=t[i++];if(a==="__proto__")return!0;let u=Number.isFinite(+a),c=i>=t.length;return a=!a&&ie.isArray(s)?s.length:a,c?(ie.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!u):((!s[a]||!ie.isObject(s[a]))&&(s[a]=[]),e(t,n,s[a],i)&&ie.isArray(s[a])&&(s[a]=yhe(s[a])),!u)}if(o(e,"buildPath"),ie.isFormData(r)&&ie.isFunction(r.entries)){let t={};return ie.forEachEntry(r,(n,s)=>{e(vhe(n),s,t,0)}),t}return null}o(xhe,"formDataToJSON");var JS=xhe;function whe(r,e,t){if(ie.isString(r))try{return(e||JSON.parse)(r),ie.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}o(whe,"stringifySafely");var TD={transitional:bc,adapter:["xhr","http","fetch"],transformRequest:[o(function(e,t){let n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=ie.isObject(e);if(i&&ie.isHTMLForm(e)&&(e=new FormData(e)),ie.isFormData(e))return s?JSON.stringify(JS(e)):e;if(ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)||ie.isReadableStream(e))return e;if(ie.isArrayBufferView(e))return e.buffer;if(ie.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ND(e,this.formSerializer).toString();if((u=ie.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return Sc(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),whe(e)):e},"transformRequest")],transformResponse:[o(function(e){let t=this.transitional||TD.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(ie.isResponse(e)||ie.isReadableStream(e))return e;if(e&&ie.isString(e)&&(n&&!this.responseType||s)){let a=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?Ze.from(u,Ze.ERR_BAD_RESPONSE,this,null,this.response):u}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wr.classes.FormData,Blob:wr.classes.Blob},validateStatus:o(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],r=>{TD.headers[r]={}});var Ad=TD;var Ehe=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AF=o((r=>{let e={},t,n,s;return r&&r.split(`
|
|
99
|
+
`?(S.line++,S.column=0):S.column++);S.textNode+=N.substring(Ee,G-1)}P==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=I.OPEN_WAKA,S.startTagPosition=S.position):(!b(P)&&(!S.sawRoot||S.closedRoot)&&Y(S,"Text data outside of root node."),P==="&"?S.state=I.TEXT_ENTITY:S.textNode+=P);continue;case I.SCRIPT:P==="<"?S.state=I.SCRIPT_ENDING:S.script+=P;continue;case I.SCRIPT_ENDING:P==="/"?S.state=I.CLOSE_TAG:(S.script+="<"+P,S.state=I.SCRIPT);continue;case I.OPEN_WAKA:if(P==="!")S.state=I.SGML_DECL,S.sgmlDecl="";else if(!b(P))if(B(E,P))S.state=I.OPEN_TAG,S.tagName=P;else if(P==="/")S.state=I.CLOSE_TAG,S.tagName="";else if(P==="?")S.state=I.PROC_INST,S.procInstName=S.procInstBody="";else{if(Y(S,"Unencoded <"),S.startTagPosition+1<S.position){var Ce=S.position-S.startTagPosition;P=new Array(Ce).join(" ")+P}S.textNode+="<"+P,S.state=I.TEXT}continue;case I.SGML_DECL:if(S.sgmlDecl+P==="--"){S.state=I.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=I.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+P,S.sgmlDecl=""):(S.sgmlDecl+P).toUpperCase()===h?(q(S,"onopencdata"),S.state=I.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+P).toUpperCase()===m?(S.state=I.DOCTYPE,(S.doctype||S.sawRoot)&&Y(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):P===">"?(q(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=I.TEXT):(A(P)&&(S.state=I.SGML_DECL_QUOTED),S.sgmlDecl+=P);continue;case I.SGML_DECL_QUOTED:P===S.q&&(S.state=I.SGML_DECL,S.q=""),S.sgmlDecl+=P;continue;case I.DOCTYPE:P===">"?(S.state=I.TEXT,q(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=P,P==="["?S.state=I.DOCTYPE_DTD:A(P)&&(S.state=I.DOCTYPE_QUOTED,S.q=P));continue;case I.DOCTYPE_QUOTED:S.doctype+=P,P===S.q&&(S.q="",S.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:P==="]"?(S.doctype+=P,S.state=I.DOCTYPE):P==="<"?(S.state=I.OPEN_WAKA,S.startTagPosition=S.position):A(P)?(S.doctype+=P,S.state=I.DOCTYPE_DTD_QUOTED,S.q=P):S.doctype+=P;continue;case I.DOCTYPE_DTD_QUOTED:S.doctype+=P,P===S.q&&(S.state=I.DOCTYPE_DTD,S.q="");continue;case I.COMMENT:P==="-"?S.state=I.COMMENT_ENDING:S.comment+=P;continue;case I.COMMENT_ENDING:P==="-"?(S.state=I.COMMENT_ENDED,S.comment=he(S.opt,S.comment),S.comment&&q(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+P,S.state=I.COMMENT);continue;case I.COMMENT_ENDED:P!==">"?(Y(S,"Malformed comment"),S.comment+="--"+P,S.state=I.COMMENT):S.doctype&&S.doctype!==!0?S.state=I.DOCTYPE_DTD:S.state=I.TEXT;continue;case I.CDATA:P==="]"?S.state=I.CDATA_ENDING:S.cdata+=P;continue;case I.CDATA_ENDING:P==="]"?S.state=I.CDATA_ENDING_2:(S.cdata+="]"+P,S.state=I.CDATA);continue;case I.CDATA_ENDING_2:P===">"?(S.cdata&&q(S,"oncdata",S.cdata),q(S,"onclosecdata"),S.cdata="",S.state=I.TEXT):P==="]"?S.cdata+="]":(S.cdata+="]]"+P,S.state=I.CDATA);continue;case I.PROC_INST:P==="?"?S.state=I.PROC_INST_ENDING:b(P)?S.state=I.PROC_INST_BODY:S.procInstName+=P;continue;case I.PROC_INST_BODY:if(!S.procInstBody&&b(P))continue;P==="?"?S.state=I.PROC_INST_ENDING:S.procInstBody+=P;continue;case I.PROC_INST_ENDING:P===">"?(q(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=I.TEXT):(S.procInstBody+="?"+P,S.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:B(w,P)?S.tagName+=P:(ve(S),P===">"?ne(S):P==="/"?S.state=I.OPEN_TAG_SLASH:(b(P)||Y(S,"Invalid character in tag name"),S.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:P===">"?(ne(S,!0),Z(S)):(Y(S,"Forward-slash in opening tag not followed by >"),S.state=I.ATTRIB);continue;case I.ATTRIB:if(b(P))continue;P===">"?ne(S):P==="/"?S.state=I.OPEN_TAG_SLASH:B(E,P)?(S.attribName=P,S.attribValue="",S.state=I.ATTRIB_NAME):Y(S,"Invalid attribute name");continue;case I.ATTRIB_NAME:P==="="?S.state=I.ATTRIB_VALUE:P===">"?(Y(S,"Attribute without value"),S.attribValue=S.attribName,Je(S),ne(S)):b(P)?S.state=I.ATTRIB_NAME_SAW_WHITE:B(w,P)?S.attribName+=P:Y(S,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(P==="=")S.state=I.ATTRIB_VALUE;else{if(b(P))continue;Y(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",q(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",P===">"?ne(S):B(E,P)?(S.attribName=P,S.state=I.ATTRIB_NAME):(Y(S,"Invalid attribute name"),S.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(b(P))continue;A(P)?(S.q=P,S.state=I.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||pe(S,"Unquoted attribute value"),S.state=I.ATTRIB_VALUE_UNQUOTED,S.attribValue=P);continue;case I.ATTRIB_VALUE_QUOTED:if(P!==S.q){P==="&"?S.state=I.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=P;continue}Je(S),S.q="",S.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:b(P)?S.state=I.ATTRIB:P===">"?ne(S):P==="/"?S.state=I.OPEN_TAG_SLASH:B(E,P)?(Y(S,"No whitespace between attributes"),S.attribName=P,S.attribValue="",S.state=I.ATTRIB_NAME):Y(S,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!T(P)){P==="&"?S.state=I.ATTRIB_VALUE_ENTITY_U:S.attribValue+=P;continue}Je(S),P===">"?ne(S):S.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(S.tagName)P===">"?Z(S):B(w,P)?S.tagName+=P:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=I.SCRIPT):(b(P)||Y(S,"Invalid tagname in closing tag"),S.state=I.CLOSE_TAG_SAW_WHITE);else{if(b(P))continue;M(E,P)?S.script?(S.script+="</"+P,S.state=I.SCRIPT):Y(S,"Invalid tagname in closing tag."):S.tagName=P}continue;case I.CLOSE_TAG_SAW_WHITE:if(b(P))continue;P===">"?Z(S):Y(S,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Ae,Ye;switch(S.state){case I.TEXT_ENTITY:Ae=I.TEXT,Ye="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Ae=I.ATTRIB_VALUE_QUOTED,Ye="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Ae=I.ATTRIB_VALUE_UNQUOTED,Ye="attribValue";break}if(P===";"){var Tt=Se(S);S.opt.unparsedEntities&&!Object.values(r.XML_ENTITIES).includes(Tt)?(S.entity="",S.state=Ae,S.write(Tt)):(S[Ye]+=Tt,S.entity="",S.state=Ae)}else B(S.entity.length?_:C,P)?S.entity+=P:(Y(S,"Invalid character in entity name"),S[Ye]+="&"+S.entity+P,S.entity="",S.state=Ae);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&n(S),S}o(rt,"write");String.fromCodePoint||(function(){var N=String.fromCharCode,S=Math.floor,G=o(function(){var P=16384,Ee=[],Ce,Ae,Ye=-1,Tt=arguments.length;if(!Tt)return"";for(var Me="";++Ye<Tt;){var St=Number(arguments[Ye]);if(!isFinite(St)||St<0||St>1114111||S(St)!==St)throw RangeError("Invalid code point: "+St);St<=65535?Ee.push(St):(St-=65536,Ce=(St>>10)+55296,Ae=St%1024+56320,Ee.push(Ce,Ae)),(Ye+1===Tt||Ee.length>P)&&(Me+=N.apply(null,Ee),Ee.length=0)}return Me},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:G,configurable:!0,writable:!0}):String.fromCodePoint=G})()})(typeof Cb>"u"?Cb.sax={}:Cb)});var P9=te(ZD=>{"use strict";(function(){"use strict";ZD.stripBOM=function(r){return r[0]==="\uFEFF"?r.substring(1):r}}).call(ZD)});var eB=te(bf=>{"use strict";(function(){"use strict";var r;r=new RegExp(/(?!xmlns)^.*:/),bf.normalize=function(e){return e.toLowerCase()},bf.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},bf.stripPrefix=function(e){return e.replace(r,"")},bf.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},bf.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e=e.toLowerCase()==="true"),e}}).call(bf)});var k9=te(Yo=>{"use strict";(function(){"use strict";var r,e,t,n,s,i,a,u,c,l=o(function(g,y){return function(){return g.apply(y,arguments)}},"bind"),h=o(function(g,y){for(var v in y)m.call(y,v)&&(g[v]=y[v]);function E(){this.constructor=g}return o(E,"ctor"),E.prototype=y.prototype,g.prototype=new E,g.__super__=y.prototype,g},"extend"),m={}.hasOwnProperty;u=O9(),n=Ge("events"),r=P9(),a=eB(),c=Ge("timers").setImmediate,e=lb().defaults,s=o(function(g){return typeof g=="object"&&g!=null&&Object.keys(g).length===0},"isEmpty"),i=o(function(g,y,v){var E,w,C;for(E=0,w=g.length;E<w;E++)C=g[E],y=C(y,v);return y},"processItem"),t=o(function(g,y,v){var E;return E=Object.create(null),E.value=v,E.writable=!0,E.enumerable=!0,E.configurable=!0,Object.defineProperty(g,y,E)},"defineProperty"),Yo.Parser=(function(g){h(y,g);function y(v){this.parseStringPromise=l(this.parseStringPromise,this),this.parseString=l(this.parseString,this),this.reset=l(this.reset,this),this.assignOrPush=l(this.assignOrPush,this),this.processAsync=l(this.processAsync,this);var E,w,C;if(!(this instanceof Yo.Parser))return new Yo.Parser(v);this.options={},w=e["0.2"];for(E in w)m.call(w,E)&&(C=w[E],this.options[E]=C);for(E in v)m.call(v,E)&&(C=v[E],this.options[E]=C);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return o(y,"Parser"),y.prototype.processAsync=function(){var v,E;try{return this.remaining.length<=this.options.chunkSize?(v=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(v),this.saxParser.close()):(v=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(v),c(this.processAsync))}catch(w){if(E=w,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(E)}},y.prototype.assignOrPush=function(v,E,w){return E in v?(v[E]instanceof Array||t(v,E,[v[E]]),v[E].push(w)):this.options.explicitArray?t(v,E,[w]):t(v,E,w)},y.prototype.reset=function(){var v,E,w,C;return this.removeAllListeners(),this.saxParser=u.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(_){return function(b){if(_.saxParser.resume(),!_.saxParser.errThrown)return _.saxParser.errThrown=!0,_.emit("error",b)}})(this),this.saxParser.onend=(function(_){return function(){if(!_.saxParser.ended)return _.saxParser.ended=!0,_.emit("end",_.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,C=[],v=this.options.attrkey,E=this.options.charkey,this.saxParser.onopentag=(function(_){return function(b){var A,T,B,M,I;if(B={},B[E]="",!_.options.ignoreAttrs){I=b.attributes;for(A in I)m.call(I,A)&&(!(v in B)&&!_.options.mergeAttrs&&(B[v]={}),T=_.options.attrValueProcessors?i(_.options.attrValueProcessors,b.attributes[A],A):b.attributes[A],M=_.options.attrNameProcessors?i(_.options.attrNameProcessors,A):A,_.options.mergeAttrs?_.assignOrPush(B,M,T):t(B[v],M,T))}return B["#name"]=_.options.tagNameProcessors?i(_.options.tagNameProcessors,b.name):b.name,_.options.xmlns&&(B[_.options.xmlnskey]={uri:b.uri,local:b.local}),C.push(B)}})(this),this.saxParser.onclosetag=(function(_){return function(){var b,A,T,B,M,I,H,K,q,W;if(I=C.pop(),M=I["#name"],(!_.options.explicitChildren||!_.options.preserveChildrenOrder)&&delete I["#name"],I.cdata===!0&&(b=I.cdata,delete I.cdata),q=C[C.length-1],I[E].match(/^\s*$/)&&!b?(A=I[E],delete I[E]):(_.options.trim&&(I[E]=I[E].trim()),_.options.normalize&&(I[E]=I[E].replace(/\s{2,}/g," ").trim()),I[E]=_.options.valueProcessors?i(_.options.valueProcessors,I[E],M):I[E],Object.keys(I).length===1&&E in I&&!_.EXPLICIT_CHARKEY&&(I=I[E])),s(I)&&(typeof _.options.emptyTag=="function"?I=_.options.emptyTag():I=_.options.emptyTag!==""?_.options.emptyTag:A),_.options.validator!=null&&(W="/"+(function(){var he,pe,ue;for(ue=[],he=0,pe=C.length;he<pe;he++)B=C[he],ue.push(B["#name"]);return ue})().concat(M).join("/"),(function(){var he;try{return I=_.options.validator(W,q&&q[M],I)}catch(pe){return he=pe,_.emit("error",he)}})()),_.options.explicitChildren&&!_.options.mergeAttrs&&typeof I=="object"){if(!_.options.preserveChildrenOrder)B={},_.options.attrkey in I&&(B[_.options.attrkey]=I[_.options.attrkey],delete I[_.options.attrkey]),!_.options.charsAsChildren&&_.options.charkey in I&&(B[_.options.charkey]=I[_.options.charkey],delete I[_.options.charkey]),Object.getOwnPropertyNames(I).length>0&&(B[_.options.childkey]=I),I=B;else if(q){q[_.options.childkey]=q[_.options.childkey]||[],H={};for(T in I)m.call(I,T)&&t(H,T,I[T]);q[_.options.childkey].push(H),delete I["#name"],Object.keys(I).length===1&&E in I&&!_.EXPLICIT_CHARKEY&&(I=I[E])}}return C.length>0?_.assignOrPush(q,M,I):(_.options.explicitRoot&&(K=I,I={},t(I,M,K)),_.resultObject=I,_.saxParser.ended=!0,_.emit("end",_.resultObject))}})(this),w=(function(_){return function(b){var A,T;if(T=C[C.length-1],T)return T[E]+=b,_.options.explicitChildren&&_.options.preserveChildrenOrder&&_.options.charsAsChildren&&(_.options.includeWhiteChars||b.replace(/\\n/g,"").trim()!=="")&&(T[_.options.childkey]=T[_.options.childkey]||[],A={"#name":"__text__"},A[E]=b,_.options.normalize&&(A[E]=A[E].replace(/\s{2,}/g," ").trim()),T[_.options.childkey].push(A)),T}})(this),this.saxParser.ontext=w,this.saxParser.oncdata=(function(_){return function(b){var A;if(A=w(b),A)return A.cdata=!0}})(this)},y.prototype.parseString=function(v,E){var w;E!=null&&typeof E=="function"&&(this.on("end",function(C){return this.reset(),E(null,C)}),this.on("error",function(C){return this.reset(),E(C)}));try{return v=v.toString(),v.trim()===""?(this.emit("end",null),!0):(v=r.stripBOM(v),this.options.async?(this.remaining=v,c(this.processAsync),this.saxParser):this.saxParser.write(v).close())}catch(C){if(w=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw w}else return this.emit("error",w),this.saxParser.errThrown=!0}},y.prototype.parseStringPromise=function(v){return new Promise((function(E){return function(w,C){return E.parseString(v,function(_,b){return _?C(_):w(b)})}})(this))},y})(n),Yo.parseString=function(g,y,v){var E,w,C;return v!=null?(typeof v=="function"&&(E=v),typeof y=="object"&&(w=y)):(typeof y=="function"&&(E=y),w={}),C=new Yo.Parser(w),C.parseString(g,E)},Yo.parseStringPromise=function(g,y){var v,E;return typeof y=="object"&&(v=y),E=new Yo.Parser(v),E.parseStringPromise(g)}}).call(Yo)});var L9=te(Qo=>{"use strict";(function(){"use strict";var r,e,t,n,s=o(function(a,u){for(var c in u)i.call(u,c)&&(a[c]=u[c]);function l(){this.constructor=a}return o(l,"ctor"),l.prototype=u.prototype,a.prototype=new l,a.__super__=u.prototype,a},"extend"),i={}.hasOwnProperty;e=lb(),r=R9(),t=k9(),n=eB(),Qo.defaults=e.defaults,Qo.processors=n,Qo.ValidationError=(function(a){s(u,a);function u(c){this.message=c}return o(u,"ValidationError"),u})(Error),Qo.Builder=r.Builder,Qo.Parser=t.Parser,Qo.parseString=t.parseString,Qo.parseStringPromise=t.parseStringPromise}).call(Qo)});var ON="http://www.w3.org/2000/09/xmldsig#",rk="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",PN=(function(r){return r.RSA_SHA1="http://www.w3.org/2000/09/xmldsig#rsa-sha1",r.RSA_SHA256="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",r})({}),Fu=(function(r){return r.SHA1="sha1",r.SHA256="sha256",r})({}),kN=(function(r){return r.SHA1="http://www.w3.org/2000/09/xmldsig#sha1",r.SHA256="http://www.w3.org/2001/04/xmlenc#sha256",r})({});var Nr={AC:"12",AL:"27",AM:"13",AP:"16",BA:"29",CE:"23",DF:"53",ES:"32",GO:"52",MA:"21",MG:"31",MS:"50",MT:"51",PA:"15",PB:"25",PE:"26",PI:"22",PR:"41",RJ:"33",RN:"24",RO:"11",RR:"14",RS:"43",SC:"42",SE:"28",SP:"35",TO:"17"},Vge=Object.keys(Nr);var jge={Production:"1",Homolog:"2"};var Wr=class extends Error{static{o(this,"NFeTsError")}};var nk=class extends Wr{static{o(this,"ValidationError")}};var Sg={includeComments:!1,exclusive:!0};var LN=o(r=>{throw new Wr("Didn't expect to get here")},"unreachable");var Cp=class{static{o(this,"Signer")}toolkit;certificateRepository;algorithm;canonical;constructor(e,t,n=Fu.SHA1,s=Sg){this.toolkit=e,this.certificateRepository=t,this.algorithm=n,this.canonical=s}assemble(e,t,n){let s=this.certificateRepository.getStringCertificate(n);return{$:{xmlns:ON},SignedInfo:e,SignatureValue:t,KeyInfo:{X509Data:{X509Certificate:s}}}}signedInfo(e,t){return{CanonicalizationMethod:{$:{Algorithm:rk}},SignatureMethod:{$:{Algorithm:this.signatureMethod}},Reference:{$:{URI:`#${this.toolkit.getAttribute(e,t)}`},Transforms:this.transforms,DigestMethod:{$:{Algorithm:this.digestAlgorithm}},DigestValue:this.digest(e)}}}digest(e){return this.toolkit.digest(e,this.algorithm,this.canonical)}async signOrLeft(e,t){let n=this.toolkit.canonicalize(await this.toolkit.build({$:{xmlns:ON},...e},{rootName:"SignedInfo"}),this.canonical);return this.certificateRepository.sign(n,t,this.algorithm)}get transforms(){return{Transform:[{$:{Algorithm:"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},{$:{Algorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}]}}get digestAlgorithm(){switch(this.algorithm){case Fu.SHA256:return kN.SHA256;case Fu.SHA1:return kN.SHA1;default:return LN(this.algorithm)}}get signatureMethod(){switch(this.algorithm){case Fu.SHA256:return PN.RSA_SHA256;case Fu.SHA1:return PN.RSA_SHA1;default:return LN(this.algorithm)}}};var VN=class{static{o(this,"Left")}value;constructor(e){this.value=e}isLeft(){return!0}isRight(){return!1}},Mw=class{static{o(this,"Right")}value;constructor(e){this.value=e}isLeft(){return!1}isRight(){return!0}},ls=o(r=>new VN(r),"left"),Bi=o(r=>r===void 0?new Mw(void 0):new Mw(r),"right");var sk=class extends Cp{static{o(this,"EntitySigner")}async sign(e,t,n){let{tag:s,mark:i}=t,{certificate:a}=n;if(!e[s])return ls(new Wr(`Node ${String(s)} not found`));let u=await this.toolkit.build(this.ns(e,s),{headless:!0,rootName:String(s),renderOpts:{pretty:!1}}),c=this.signedInfo(u,i),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let h=e;return h.Signature=this.assemble(c,l.value,a),Bi(h)}ns(e,t){let n=e.$?.xmlns,{$:s,...i}=e[t],{xmlns:a,...u}=s??{};return{$:{xmlns:n,...u},...i}}};var ik=class extends Cp{static{o(this,"XmlSigner")}async sign(e,t,n){let{tag:s,mark:i}=t,{certificate:a}=n,u=this.toolkit.getNode(e,s);if(!u)return ls(new Wr(`Node ${s} not found`));let c=this.signedInfo(u,i),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let h=await this.toolkit.build(this.assemble(c,l.value,a),{rootName:"Signature"});return Bi(this.toolkit.appendNode(e,h))}};import"reflect-metadata";var bg="__SkipValidation__",dve=o(()=>(r,e)=>{Reflect.defineMetadata(bg,!0,r,e.toString())},"SkipValidation"),mve=o(()=>r=>{Reflect.defineMetadata(bg,!0,r)},"SkipAllValidations");import{plainToInstance as yY}from"class-transformer";var qw=o(r=>{for(let[e,t]of Object.entries(r))typeof t>"u"&&delete r[e],t===""&&delete r[e],t&&typeof t=="object"&&qw(t)},"clearEmptyValues"),ak=o((r,e,t={})=>{let n=yY(e,r);return t.clearEmptyValues&&qw(n),n},"plainToInstance");import"reflect-metadata";import{validateSync as xY}from"class-validator";var ok="__ValidateErrors__",uk=o((r,e)=>r.reduce((t,n)=>{if(n.children?.length)return t.concat(uk(n.children,e?`${e}.${n.property}`:n.property));let s=Object.values(n.constraints??{}).map(i=>e?`${e}.${i}`:i).join(", ");return s?t.concat(s):t},[]),"mapConstraintsToErrors"),Cve=o(r=>(e,t,n)=>{let s=n.value;n.value=function(...i){let a=Reflect.getMetadata(bg,this.constructor);if(Reflect.getMetadata(bg,this.constructor.prototype,t.toString())===!0||a===!0)return s?.apply(this,i);let[c,...l]=i;if(!c)return s?.apply(this,i);let h=ak(c,r),m=xY(h,{whitelist:!0});if(qw(h),m.length){let g=Reflect.getMetadata(ok,this)??[];Reflect.defineMetadata(ok,g.concat(uk(m,s?.name)),this)}return s?.apply(this,[h,...l])}},"Validates");var Np=9e15,Ku=1e9,UN="0123456789abcdef",$w="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Gw="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",jN={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Np,maxE:Np,crypto:!1},hk,Uo,Ot=!0,Ww="[DecimalError] ",Hu=Ww+"Invalid argument: ",pk=Ww+"Precision limit exceeded",dk=Ww+"crypto unavailable",mk="[object Decimal]",fs=Math.floor,_n=Math.pow,wY=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,EY=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,SY=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,gk=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ua=1e7,Ct=7,bY=9007199254740991,AY=$w.length-1,FN=Gw.length-1,Ve={toStringTag:mk};Ve.absoluteValue=Ve.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),yt(r)};Ve.ceil=function(){return yt(new this.constructor(this),this.e+1,2)};Ve.clampedTo=Ve.clamp=function(r,e){var t,n=this,s=n.constructor;if(r=new s(r),e=new s(e),!r.s||!e.s)return new s(NaN);if(r.gt(e))throw Error(Hu+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new s(n)};Ve.comparedTo=Ve.cmp=function(r){var e,t,n,s,i=this,a=i.d,u=(r=new i.constructor(r)).d,c=i.s,l=r.s;if(!a||!u)return!c||!l?NaN:c!==l?c:a===u?0:!a^c<0?1:-1;if(!a[0]||!u[0])return a[0]?c:u[0]?-l:0;if(c!==l)return c;if(i.e!==r.e)return i.e>r.e^c<0?1:-1;for(n=a.length,s=u.length,e=0,t=n<s?n:s;e<t;++e)if(a[e]!==u[e])return a[e]>u[e]^c<0?1:-1;return n===s?0:n>s^c<0?1:-1};Ve.cosine=Ve.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Ct,n.rounding=1,t=CY(n,Ek(n,t)),n.precision=r,n.rounding=e,yt(Uo==2||Uo==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};Ve.cubeRoot=Ve.cbrt=function(){var r,e,t,n,s,i,a,u,c,l,h=this,m=h.constructor;if(!h.isFinite()||h.isZero())return new m(h);for(Ot=!1,i=h.s*_n(h.s*h,1/3),!i||Math.abs(i)==1/0?(t=zn(h.d),r=h.e,(i=(r-t.length+1)%3)&&(t+=i==1||i==-2?"0":"00"),i=_n(t,1/3),r=fs((r+1)/3)-(r%3==(r<0?-1:2)),i==1/0?t="5e"+r:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new m(t),n.s=h.s):n=new m(i.toString()),a=(r=m.precision)+3;;)if(u=n,c=u.times(u).times(u),l=c.plus(h),n=Rr(l.plus(h).times(u),l.plus(c),a+2,1),zn(u.d).slice(0,a)===(t=zn(n.d)).slice(0,a))if(t=t.slice(a-3,a+1),t=="9999"||!s&&t=="4999"){if(!s&&(yt(u,r+1,0),u.times(u).times(u).eq(h))){n=u;break}a+=4,s=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(yt(n,r+1,1),e=!n.times(n).times(n).eq(h));break}return Ot=!0,yt(n,r,m.rounding,e)};Ve.decimalPlaces=Ve.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-fs(this.e/Ct))*Ct,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};Ve.dividedBy=Ve.div=function(r){return Rr(this,new this.constructor(r))};Ve.dividedToIntegerBy=Ve.divToInt=function(r){var e=this,t=e.constructor;return yt(Rr(e,new t(r),0,1,1),t.precision,t.rounding)};Ve.equals=Ve.eq=function(r){return this.cmp(r)===0};Ve.floor=function(){return yt(new this.constructor(this),this.e+1,3)};Ve.greaterThan=Ve.gt=function(r){return this.cmp(r)>0};Ve.greaterThanOrEqualTo=Ve.gte=function(r){var e=this.cmp(r);return e==1||e===0};Ve.hyperbolicCosine=Ve.cosh=function(){var r,e,t,n,s,i=this,a=i.constructor,u=new a(1);if(!i.isFinite())return new a(i.s?1/0:NaN);if(i.isZero())return u;t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,s=i.d.length,s<32?(r=Math.ceil(s/3),e=(1/Jw(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),i=Tp(a,1,i.times(e),new a(1),!0);for(var c,l=r,h=new a(8);l--;)c=i.times(i),i=u.minus(c.times(h.minus(c.times(h))));return yt(i,a.precision=t,a.rounding=n,!0)};Ve.hyperbolicSine=Ve.sinh=function(){var r,e,t,n,s=this,i=s.constructor;if(!s.isFinite()||s.isZero())return new i(s);if(e=i.precision,t=i.rounding,i.precision=e+Math.max(s.e,s.sd())+4,i.rounding=1,n=s.d.length,n<3)s=Tp(i,2,s,s,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,s=s.times(1/Jw(5,r)),s=Tp(i,2,s,s,!0);for(var a,u=new i(5),c=new i(16),l=new i(20);r--;)a=s.times(s),s=s.times(u.plus(a.times(c.times(a).plus(l))))}return i.precision=e,i.rounding=t,yt(s,e,t,!0)};Ve.hyperbolicTangent=Ve.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,Rr(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};Ve.inverseCosine=Ve.acos=function(){var r=this,e=r.constructor,t=r.abs().cmp(1),n=e.precision,s=e.rounding;return t!==-1?t===0?r.isNeg()?ja(e,n,s):new e(0):new e(NaN):r.isZero()?ja(e,n+4,s).times(.5):(e.precision=n+6,e.rounding=1,r=new e(1).minus(r).div(r.plus(1)).sqrt().atan(),e.precision=n,e.rounding=s,r.times(2))};Ve.inverseHyperbolicCosine=Ve.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Ot=!1,t=t.times(t).minus(1).sqrt().plus(t),Ot=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};Ve.inverseHyperbolicSine=Ve.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Ot=!1,t=t.times(t).plus(1).sqrt().plus(t),Ot=!0,n.precision=r,n.rounding=e,t.ln())};Ve.inverseHyperbolicTangent=Ve.atanh=function(){var r,e,t,n,s=this,i=s.constructor;return s.isFinite()?s.e>=0?new i(s.abs().eq(1)?s.s/0:s.isZero()?s:NaN):(r=i.precision,e=i.rounding,n=s.sd(),Math.max(n,r)<2*-s.e-1?yt(new i(s),r,e,!0):(i.precision=t=n-s.e,s=Rr(s.plus(1),new i(1).minus(s),t+r,1),i.precision=r+4,i.rounding=1,s=s.ln(),i.precision=r,i.rounding=e,s.times(.5))):new i(NaN)};Ve.inverseSine=Ve.asin=function(){var r,e,t,n,s=this,i=s.constructor;return s.isZero()?new i(s):(e=s.abs().cmp(1),t=i.precision,n=i.rounding,e!==-1?e===0?(r=ja(i,t+4,n).times(.5),r.s=s.s,r):new i(NaN):(i.precision=t+6,i.rounding=1,s=s.div(new i(1).minus(s.times(s)).sqrt().plus(1)).atan(),i.precision=t,i.rounding=n,s.times(2)))};Ve.inverseTangent=Ve.atan=function(){var r,e,t,n,s,i,a,u,c,l=this,h=l.constructor,m=h.precision,g=h.rounding;if(l.isFinite()){if(l.isZero())return new h(l);if(l.abs().eq(1)&&m+4<=FN)return a=ja(h,m+4,g).times(.25),a.s=l.s,a}else{if(!l.s)return new h(NaN);if(m+4<=FN)return a=ja(h,m+4,g).times(.5),a.s=l.s,a}for(h.precision=u=m+10,h.rounding=1,t=Math.min(28,u/Ct+2|0),r=t;r;--r)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Ot=!1,e=Math.ceil(u/Ct),n=1,c=l.times(l),a=new h(l),s=l;r!==-1;)if(s=s.times(c),i=a.minus(s.div(n+=2)),s=s.times(c),a=i.plus(s.div(n+=2)),a.d[e]!==void 0)for(r=e;a.d[r]===i.d[r]&&r--;);return t&&(a=a.times(2<<t-1)),Ot=!0,yt(a,h.precision=m,h.rounding=g,!0)};Ve.isFinite=function(){return!!this.d};Ve.isInteger=Ve.isInt=function(){return!!this.d&&fs(this.e/Ct)>this.d.length-2};Ve.isNaN=function(){return!this.s};Ve.isNegative=Ve.isNeg=function(){return this.s<0};Ve.isPositive=Ve.isPos=function(){return this.s>0};Ve.isZero=function(){return!!this.d&&this.d[0]===0};Ve.lessThan=Ve.lt=function(r){return this.cmp(r)<0};Ve.lessThanOrEqualTo=Ve.lte=function(r){return this.cmp(r)<1};Ve.logarithm=Ve.log=function(r){var e,t,n,s,i,a,u,c,l=this,h=l.constructor,m=h.precision,g=h.rounding,y=5;if(r==null)r=new h(10),e=!0;else{if(r=new h(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new h(NaN);e=r.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new h(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)i=!0;else{for(s=t[0];s%10===0;)s/=10;i=s!==1}if(Ot=!1,u=m+y,a=qu(l,u),n=e?Xw(h,u+10):qu(r,u),c=Rr(a,n,u,1),Ag(c.d,s=m,g))do if(u+=10,a=qu(l,u),n=e?Xw(h,u+10):qu(r,u),c=Rr(a,n,u,1),!i){+zn(c.d).slice(s+1,s+15)+1==1e14&&(c=yt(c,m+1,0));break}while(Ag(c.d,s+=10,g));return Ot=!0,yt(c,m,g)};Ve.minus=Ve.sub=function(r){var e,t,n,s,i,a,u,c,l,h,m,g,y=this,v=y.constructor;if(r=new v(r),!y.d||!r.d)return!y.s||!r.s?r=new v(NaN):y.d?r.s=-r.s:r=new v(r.d||y.s!==r.s?y:NaN),r;if(y.s!=r.s)return r.s=-r.s,y.plus(r);if(l=y.d,g=r.d,u=v.precision,c=v.rounding,!l[0]||!g[0]){if(g[0])r.s=-r.s;else if(l[0])r=new v(y);else return new v(c===3?-0:0);return Ot?yt(r,u,c):r}if(t=fs(r.e/Ct),h=fs(y.e/Ct),l=l.slice(),i=h-t,i){for(m=i<0,m?(e=l,i=-i,a=g.length):(e=g,t=h,a=l.length),n=Math.max(Math.ceil(u/Ct),a)+2,i>n&&(i=n,e.length=1),e.reverse(),n=i;n--;)e.push(0);e.reverse()}else{for(n=l.length,a=g.length,m=n<a,m&&(a=n),n=0;n<a;n++)if(l[n]!=g[n]){m=l[n]<g[n];break}i=0}for(m&&(e=l,l=g,g=e,r.s=-r.s),a=l.length,n=g.length-a;n>0;--n)l[a++]=0;for(n=g.length;n>i;){if(l[--n]<g[n]){for(s=n;s&&l[--s]===0;)l[s]=ua-1;--l[s],l[n]+=ua}l[n]-=g[n]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(r.d=l,r.e=zw(l,t),Ot?yt(r,u,c):r):new v(c===3?-0:0)};Ve.modulo=Ve.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?yt(new n(t),n.precision,n.rounding):(Ot=!1,n.modulo==9?(e=Rr(t,r.abs(),0,3,1),e.s*=r.s):e=Rr(t,r,0,n.modulo,1),e=e.times(r),Ot=!0,t.minus(e))};Ve.naturalExponential=Ve.exp=function(){return MN(this)};Ve.naturalLogarithm=Ve.ln=function(){return qu(this)};Ve.negated=Ve.neg=function(){var r=new this.constructor(this);return r.s=-r.s,yt(r)};Ve.plus=Ve.add=function(r){var e,t,n,s,i,a,u,c,l,h,m=this,g=m.constructor;if(r=new g(r),!m.d||!r.d)return!m.s||!r.s?r=new g(NaN):m.d||(r=new g(r.d||m.s===r.s?m:NaN)),r;if(m.s!=r.s)return r.s=-r.s,m.minus(r);if(l=m.d,h=r.d,u=g.precision,c=g.rounding,!l[0]||!h[0])return h[0]||(r=new g(m)),Ot?yt(r,u,c):r;if(i=fs(m.e/Ct),n=fs(r.e/Ct),l=l.slice(),s=i-n,s){for(s<0?(t=l,s=-s,a=h.length):(t=h,n=i,a=l.length),i=Math.ceil(u/Ct),a=i>a?i+1:a+1,s>a&&(s=a,t.length=1),t.reverse();s--;)t.push(0);t.reverse()}for(a=l.length,s=h.length,a-s<0&&(s=a,t=h,h=l,l=t),e=0;s;)e=(l[--s]=l[s]+h[s]+e)/ua|0,l[s]%=ua;for(e&&(l.unshift(e),++n),a=l.length;l[--a]==0;)l.pop();return r.d=l,r.e=zw(l,n),Ot?yt(r,u,c):r};Ve.precision=Ve.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(Hu+r);return t.d?(e=vk(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};Ve.round=function(){var r=this,e=r.constructor;return yt(new e(r),r.e+1,e.rounding)};Ve.sine=Ve.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+Ct,n.rounding=1,t=TY(n,Ek(n,t)),n.precision=r,n.rounding=e,yt(Uo>2?t.neg():t,r,e,!0)):new n(NaN)};Ve.squareRoot=Ve.sqrt=function(){var r,e,t,n,s,i,a=this,u=a.d,c=a.e,l=a.s,h=a.constructor;if(l!==1||!u||!u[0])return new h(!l||l<0&&(!u||u[0])?NaN:u?a:1/0);for(Ot=!1,l=Math.sqrt(+a),l==0||l==1/0?(e=zn(u),(e.length+c)%2==0&&(e+="0"),l=Math.sqrt(e),c=fs((c+1)/2)-(c<0||c%2),l==1/0?e="5e"+c:(e=l.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),n=new h(e)):n=new h(l.toString()),t=(c=h.precision)+3;;)if(i=n,n=i.plus(Rr(a,i,t+2,1)).times(.5),zn(i.d).slice(0,t)===(e=zn(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!s&&e=="4999"){if(!s&&(yt(i,c+1,0),i.times(i).eq(a))){n=i;break}t+=4,s=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(yt(n,c+1,1),r=!n.times(n).eq(a));break}return Ot=!0,yt(n,c,h.rounding,r)};Ve.tangent=Ve.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=Rr(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,yt(Uo==2||Uo==4?t.neg():t,r,e,!0)):new n(NaN)};Ve.times=Ve.mul=function(r){var e,t,n,s,i,a,u,c,l,h=this,m=h.constructor,g=h.d,y=(r=new m(r)).d;if(r.s*=h.s,!g||!g[0]||!y||!y[0])return new m(!r.s||g&&!g[0]&&!y||y&&!y[0]&&!g?NaN:!g||!y?r.s/0:r.s*0);for(t=fs(h.e/Ct)+fs(r.e/Ct),c=g.length,l=y.length,c<l&&(i=g,g=y,y=i,a=c,c=l,l=a),i=[],a=c+l,n=a;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,s=c+n;s>n;)u=i[s]+y[n]*g[s-n-1]+e,i[s--]=u%ua|0,e=u/ua|0;i[s]=(i[s]+e)%ua|0}for(;!i[--a];)i.pop();return e?++t:i.shift(),r.d=i,r.e=zw(i,t),Ot?yt(r,m.precision,m.rounding):r};Ve.toBinary=function(r,e){return qN(this,2,r,e)};Ve.toDecimalPlaces=Ve.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(Ls(r,0,Ku),e===void 0?e=n.rounding:Ls(e,0,8),yt(t,r+t.e+1,e))};Ve.toExponential=function(r,e){var t,n=this,s=n.constructor;return r===void 0?t=Fa(n,!0):(Ls(r,0,Ku),e===void 0?e=s.rounding:Ls(e,0,8),n=yt(new s(n),r+1,e),t=Fa(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};Ve.toFixed=function(r,e){var t,n,s=this,i=s.constructor;return r===void 0?t=Fa(s):(Ls(r,0,Ku),e===void 0?e=i.rounding:Ls(e,0,8),n=yt(new i(s),r+s.e+1,e),t=Fa(n,!1,r+n.e+1)),s.isNeg()&&!s.isZero()?"-"+t:t};Ve.toFraction=function(r){var e,t,n,s,i,a,u,c,l,h,m,g,y=this,v=y.d,E=y.constructor;if(!v)return new E(y);if(l=t=new E(1),n=c=new E(0),e=new E(n),i=e.e=vk(v)-y.e-1,a=i%Ct,e.d[0]=_n(10,a<0?Ct+a:a),r==null)r=i>0?e:l;else{if(u=new E(r),!u.isInt()||u.lt(l))throw Error(Hu+u);r=u.gt(e)?i>0?e:l:u}for(Ot=!1,u=new E(zn(v)),h=E.precision,E.precision=i=v.length*Ct*2;m=Rr(u,e,0,1,1),s=t.plus(m.times(n)),s.cmp(r)!=1;)t=n,n=s,s=l,l=c.plus(m.times(s)),c=s,s=e,e=u.minus(m.times(s)),u=s;return s=Rr(r.minus(t),n,0,1,1),c=c.plus(s.times(l)),t=t.plus(s.times(n)),c.s=l.s=y.s,g=Rr(l,n,i,1).minus(y).abs().cmp(Rr(c,t,i,1).minus(y).abs())<1?[l,n]:[c,t],E.precision=h,Ot=!0,g};Ve.toHexadecimal=Ve.toHex=function(r,e){return qN(this,16,r,e)};Ve.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:Ls(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(Ot=!1,t=Rr(t,r,0,e,1).times(r),Ot=!0,yt(t)):(r.s=t.s,t=r),t};Ve.toNumber=function(){return+this};Ve.toOctal=function(r,e){return qN(this,8,r,e)};Ve.toPower=Ve.pow=function(r){var e,t,n,s,i,a,u=this,c=u.constructor,l=+(r=new c(r));if(!u.d||!r.d||!u.d[0]||!r.d[0])return new c(_n(+u,l));if(u=new c(u),u.eq(1))return u;if(n=c.precision,i=c.rounding,r.eq(1))return yt(u,n,i);if(e=fs(r.e/Ct),e>=r.d.length-1&&(t=l<0?-l:l)<=bY)return s=yk(c,u,t,n),r.s<0?new c(1).div(s):yt(s,n,i);if(a=u.s,a<0){if(e<r.d.length-1)return new c(NaN);if((r.d[e]&1)==0&&(a=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=a,u}return t=_n(+u,l),e=t==0||!isFinite(t)?fs(l*(Math.log("0."+zn(u.d))/Math.LN10+u.e+1)):new c(t+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?a/0:0):(Ot=!1,c.rounding=u.s=1,t=Math.min(12,(e+"").length),s=MN(r.times(qu(u,n+t)),n),s.d&&(s=yt(s,n+5,1),Ag(s.d,n,i)&&(e=n+10,s=yt(MN(r.times(qu(u,e+t)),e),e+5,1),+zn(s.d).slice(n+1,n+15)+1==1e14&&(s=yt(s,n+1,0)))),s.s=a,Ot=!0,c.rounding=i,yt(s,n,i))};Ve.toPrecision=function(r,e){var t,n=this,s=n.constructor;return r===void 0?t=Fa(n,n.e<=s.toExpNeg||n.e>=s.toExpPos):(Ls(r,1,Ku),e===void 0?e=s.rounding:Ls(e,0,8),n=yt(new s(n),r,e),t=Fa(n,r<=n.e||n.e<=s.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};Ve.toSignificantDigits=Ve.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(Ls(r,1,Ku),e===void 0?e=n.rounding:Ls(e,0,8)),yt(new n(t),r,e)};Ve.toString=function(){var r=this,e=r.constructor,t=Fa(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};Ve.truncated=Ve.trunc=function(){return yt(new this.constructor(this),this.e+1,1)};Ve.valueOf=Ve.toJSON=function(){var r=this,e=r.constructor,t=Fa(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function zn(r){var e,t,n,s=r.length-1,i="",a=r[0];if(s>0){for(i+=a,e=1;e<s;e++)n=r[e]+"",t=Ct-n.length,t&&(i+=Mu(t)),i+=n;a=r[e],n=a+"",t=Ct-n.length,t&&(i+=Mu(t))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}o(zn,"digitsToString");function Ls(r,e,t){if(r!==~~r||r<e||r>t)throw Error(Hu+r)}o(Ls,"checkInt32");function Ag(r,e,t,n){var s,i,a,u;for(i=r[0];i>=10;i/=10)--e;return--e<0?(e+=Ct,s=0):(s=Math.ceil((e+1)/Ct),e%=Ct),i=_n(10,Ct-e),u=r[s]%i|0,n==null?e<3?(e==0?u=u/100|0:e==1&&(u=u/10|0),a=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):a=(t<4&&u+1==i||t>3&&u+1==i/2)&&(r[s+1]/i/100|0)==_n(10,e-2)-1||(u==i/2||u==0)&&(r[s+1]/i/100|0)==0:e<4?(e==0?u=u/1e3|0:e==1?u=u/100|0:e==2&&(u=u/10|0),a=(n||t<4)&&u==9999||!n&&t>3&&u==4999):a=((n||t<4)&&u+1==i||!n&&t>3&&u+1==i/2)&&(r[s+1]/i/1e3|0)==_n(10,e-3)-1,a}o(Ag,"checkRoundingDigits");function Hw(r,e,t){for(var n,s=[0],i,a=0,u=r.length;a<u;){for(i=s.length;i--;)s[i]*=e;for(s[0]+=UN.indexOf(r.charAt(a++)),n=0;n<s.length;n++)s[n]>t-1&&(s[n+1]===void 0&&(s[n+1]=0),s[n+1]+=s[n]/t|0,s[n]%=t)}return s.reverse()}o(Hw,"convertBase");function CY(r,e){var t,n,s;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),s=(1/Jw(4,t)).toString()):(t=16,s="2.3283064365386962890625e-10"),r.precision+=t,e=Tp(r,1,e.times(s),new r(1));for(var i=t;i--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return r.precision-=t,e}o(CY,"cosine");var Rr=(function(){function r(n,s,i){var a,u=0,c=n.length;for(n=n.slice();c--;)a=n[c]*s+u,n[c]=a%i|0,u=a/i|0;return u&&n.unshift(u),n}o(r,"multiplyInteger");function e(n,s,i,a){var u,c;if(i!=a)c=i>a?1:-1;else for(u=c=0;u<i;u++)if(n[u]!=s[u]){c=n[u]>s[u]?1:-1;break}return c}o(e,"compare");function t(n,s,i,a){for(var u=0;i--;)n[i]-=u,u=n[i]<s[i]?1:0,n[i]=u*a+n[i]-s[i];for(;!n[0]&&n.length>1;)n.shift()}return o(t,"subtract"),function(n,s,i,a,u,c){var l,h,m,g,y,v,E,w,C,_,b,A,T,B,M,I,H,K,q,W,he=n.constructor,pe=n.s==s.s?1:-1,ue=n.d,Y=s.d;if(!ue||!ue[0]||!Y||!Y[0])return new he(!n.s||!s.s||(ue?Y&&ue[0]==Y[0]:!Y)?NaN:ue&&ue[0]==0||!Y?pe*0:pe/0);for(c?(y=1,h=n.e-s.e):(c=ua,y=Ct,h=fs(n.e/y)-fs(s.e/y)),q=Y.length,H=ue.length,C=new he(pe),_=C.d=[],m=0;Y[m]==(ue[m]||0);m++);if(Y[m]>(ue[m]||0)&&h--,i==null?(B=i=he.precision,a=he.rounding):u?B=i+(n.e-s.e)+1:B=i,B<0)_.push(1),v=!0;else{if(B=B/y+2|0,m=0,q==1){for(g=0,Y=Y[0],B++;(m<H||g)&&B--;m++)M=g*c+(ue[m]||0),_[m]=M/Y|0,g=M%Y|0;v=g||m<H}else{for(g=c/(Y[0]+1)|0,g>1&&(Y=r(Y,g,c),ue=r(ue,g,c),q=Y.length,H=ue.length),I=q,b=ue.slice(0,q),A=b.length;A<q;)b[A++]=0;W=Y.slice(),W.unshift(0),K=Y[0],Y[1]>=c/2&&++K;do g=0,l=e(Y,b,q,A),l<0?(T=b[0],q!=A&&(T=T*c+(b[1]||0)),g=T/K|0,g>1?(g>=c&&(g=c-1),E=r(Y,g,c),w=E.length,A=b.length,l=e(E,b,w,A),l==1&&(g--,t(E,q<w?W:Y,w,c))):(g==0&&(l=g=1),E=Y.slice()),w=E.length,w<A&&E.unshift(0),t(b,E,A,c),l==-1&&(A=b.length,l=e(Y,b,q,A),l<1&&(g++,t(b,q<A?W:Y,A,c))),A=b.length):l===0&&(g++,b=[0]),_[m++]=g,l&&b[0]?b[A++]=ue[I]||0:(b=[ue[I]],A=1);while((I++<H||b[0]!==void 0)&&B--);v=b[0]!==void 0}_[0]||_.shift()}if(y==1)C.e=h,hk=v;else{for(m=1,g=_[0];g>=10;g/=10)m++;C.e=m+h*y-1,yt(C,u?i+C.e+1:i,a,v)}return C}})();function yt(r,e,t,n){var s,i,a,u,c,l,h,m,g,y=r.constructor;e:if(e!=null){if(m=r.d,!m)return r;for(s=1,u=m[0];u>=10;u/=10)s++;if(i=e-s,i<0)i+=Ct,a=e,h=m[g=0],c=h/_n(10,s-a-1)%10|0;else if(g=Math.ceil((i+1)/Ct),u=m.length,g>=u)if(n){for(;u++<=g;)m.push(0);h=c=0,s=1,i%=Ct,a=i-Ct+1}else break e;else{for(h=u=m[g],s=1;u>=10;u/=10)s++;i%=Ct,a=i-Ct+s,c=a<0?0:h/_n(10,s-a-1)%10|0}if(n=n||e<0||m[g+1]!==void 0||(a<0?h:h%_n(10,s-a-1)),l=t<4?(c||n)&&(t==0||t==(r.s<0?3:2)):c>5||c==5&&(t==4||n||t==6&&(i>0?a>0?h/_n(10,s-a):0:m[g-1])%10&1||t==(r.s<0?8:7)),e<1||!m[0])return m.length=0,l?(e-=r.e+1,m[0]=_n(10,(Ct-e%Ct)%Ct),r.e=-e||0):m[0]=r.e=0,r;if(i==0?(m.length=g,u=1,g--):(m.length=g+1,u=_n(10,Ct-i),m[g]=a>0?(h/_n(10,s-a)%_n(10,a)|0)*u:0),l)for(;;)if(g==0){for(i=1,a=m[0];a>=10;a/=10)i++;for(a=m[0]+=u,u=1;a>=10;a/=10)u++;i!=u&&(r.e++,m[0]==ua&&(m[0]=1));break}else{if(m[g]+=u,m[g]!=ua)break;m[g--]=0,u=1}for(i=m.length;m[--i]===0;)m.pop()}return Ot&&(r.e>y.maxE?(r.d=null,r.e=NaN):r.e<y.minE&&(r.e=0,r.d=[0])),r}o(yt,"finalise");function Fa(r,e,t){if(!r.isFinite())return wk(r);var n,s=r.e,i=zn(r.d),a=i.length;return e?(t&&(n=t-a)>0?i=i.charAt(0)+"."+i.slice(1)+Mu(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(r.e<0?"e":"e+")+r.e):s<0?(i="0."+Mu(-s-1)+i,t&&(n=t-a)>0&&(i+=Mu(n))):s>=a?(i+=Mu(s+1-a),t&&(n=t-s-1)>0&&(i=i+"."+Mu(n))):((n=s+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),t&&(n=t-a)>0&&(s+1===a&&(i+="."),i+=Mu(n))),i}o(Fa,"finiteToString");function zw(r,e){var t=r[0];for(e*=Ct;t>=10;t/=10)e++;return e}o(zw,"getBase10Exponent");function Xw(r,e,t){if(e>AY)throw Ot=!0,t&&(r.precision=t),Error(pk);return yt(new r($w),e,1,!0)}o(Xw,"getLn10");function ja(r,e,t){if(e>FN)throw Error(pk);return yt(new r(Gw),e,t,!0)}o(ja,"getPi");function vk(r){var e=r.length-1,t=e*Ct+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}o(vk,"getPrecision");function Mu(r){for(var e="";r--;)e+="0";return e}o(Mu,"getZeroString");function yk(r,e,t,n){var s,i=new r(1),a=Math.ceil(n/Ct+4);for(Ot=!1;;){if(t%2&&(i=i.times(e),lk(i.d,a)&&(s=!0)),t=fs(t/2),t===0){t=i.d.length-1,s&&i.d[t]===0&&++i.d[t];break}e=e.times(e),lk(e.d,a)}return Ot=!0,i}o(yk,"intPow");function ck(r){return r.d[r.d.length-1]&1}o(ck,"isOdd");function xk(r,e,t){for(var n,s,i=new r(e[0]),a=0;++a<e.length;){if(s=new r(e[a]),!s.s){i=s;break}n=i.cmp(s),(n===t||n===0&&i.s===t)&&(i=s)}return i}o(xk,"maxOrMin");function MN(r,e){var t,n,s,i,a,u,c,l=0,h=0,m=0,g=r.constructor,y=g.rounding,v=g.precision;if(!r.d||!r.d[0]||r.e>17)return new g(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:NaN);for(e==null?(Ot=!1,c=v):c=e,u=new g(.03125);r.e>-2;)r=r.times(u),m+=5;for(n=Math.log(_n(2,m))/Math.LN10*2+5|0,c+=n,t=i=a=new g(1),g.precision=c;;){if(i=yt(i.times(r),c,1),t=t.times(++h),u=a.plus(Rr(i,t,c,1)),zn(u.d).slice(0,c)===zn(a.d).slice(0,c)){for(s=m;s--;)a=yt(a.times(a),c,1);if(e==null)if(l<3&&Ag(a.d,c-n,y,l))g.precision=c+=10,t=i=u=new g(1),h=0,l++;else return yt(a,g.precision=v,y,Ot=!0);else return g.precision=v,a}a=u}}o(MN,"naturalExponential");function qu(r,e){var t,n,s,i,a,u,c,l,h,m,g,y=1,v=10,E=r,w=E.d,C=E.constructor,_=C.rounding,b=C.precision;if(E.s<0||!w||!w[0]||!E.e&&w[0]==1&&w.length==1)return new C(w&&!w[0]?-1/0:E.s!=1?NaN:w?0:E);if(e==null?(Ot=!1,h=b):h=e,C.precision=h+=v,t=zn(w),n=t.charAt(0),Math.abs(i=E.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)E=E.times(r),t=zn(E.d),n=t.charAt(0),y++;i=E.e,n>1?(E=new C("0."+t),i++):E=new C(n+"."+t.slice(1))}else return l=Xw(C,h+2,b).times(i+""),E=qu(new C(n+"."+t.slice(1)),h-v).plus(l),C.precision=b,e==null?yt(E,b,_,Ot=!0):E;for(m=E,c=a=E=Rr(E.minus(1),E.plus(1),h,1),g=yt(E.times(E),h,1),s=3;;){if(a=yt(a.times(g),h,1),l=c.plus(Rr(a,new C(s),h,1)),zn(l.d).slice(0,h)===zn(c.d).slice(0,h))if(c=c.times(2),i!==0&&(c=c.plus(Xw(C,h+2,b).times(i+""))),c=Rr(c,new C(y),h,1),e==null)if(Ag(c.d,h-v,_,u))C.precision=h+=v,l=a=E=Rr(m.minus(1),m.plus(1),h,1),g=yt(E.times(E),h,1),s=u=1;else return yt(c,C.precision=b,_,Ot=!0);else return C.precision=b,c;c=l,s+=2}}o(qu,"naturalLogarithm");function wk(r){return String(r.s*r.s/0)}o(wk,"nonFiniteToString");function Kw(r,e){var t,n,s;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(s=e.length;e.charCodeAt(s-1)===48;--s);if(e=e.slice(n,s),e){if(s-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%Ct,t<0&&(n+=Ct),n<s){for(n&&r.d.push(+e.slice(0,n)),s-=Ct;n<s;)r.d.push(+e.slice(n,n+=Ct));e=e.slice(n),n=Ct-e.length}else n-=s;for(;n--;)e+="0";r.d.push(+e),Ot&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}o(Kw,"parseDecimal");function NY(r,e){var t,n,s,i,a,u,c,l,h;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),gk.test(e))return Kw(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(EY.test(e))t=16,e=e.toLowerCase();else if(wY.test(e))t=2;else if(SY.test(e))t=8;else throw Error(Hu+e);for(i=e.search(/p/i),i>0?(c=+e.slice(i+1),e=e.substring(2,i)):e=e.slice(2),i=e.indexOf("."),a=i>=0,n=r.constructor,a&&(e=e.replace(".",""),u=e.length,i=u-i,s=yk(n,new n(t),i,i*2)),l=Hw(e,t,ua),h=l.length-1,i=h;l[i]===0;--i)l.pop();return i<0?new n(r.s*0):(r.e=zw(l,h),r.d=l,Ot=!1,a&&(r=Rr(r,s,u*4)),c&&(r=r.times(Math.abs(c)<54?_n(2,c):Ip.pow(2,c))),Ot=!0,r)}o(NY,"parseOther");function TY(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Tp(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/Jw(5,t)),e=Tp(r,2,e,e);for(var s,i=new r(5),a=new r(16),u=new r(20);t--;)s=e.times(e),e=e.times(i.plus(s.times(a.times(s).minus(u))));return e}o(TY,"sine");function Tp(r,e,t,n,s){var i,a,u,c,l=1,h=r.precision,m=Math.ceil(h/Ct);for(Ot=!1,c=t.times(t),u=new r(n);;){if(a=Rr(u.times(c),new r(e++*e++),h,1),u=s?n.plus(a):n.minus(a),n=Rr(a.times(c),new r(e++*e++),h,1),a=u.plus(n),a.d[m]!==void 0){for(i=m;a.d[i]===u.d[i]&&i--;);if(i==-1)break}i=u,u=n,n=a,a=i,l++}return Ot=!0,a.d.length=m+1,a}o(Tp,"taylorSeries");function Jw(r,e){for(var t=r;--e;)t*=r;return t}o(Jw,"tinyPow");function Ek(r,e){var t,n=e.s<0,s=ja(r,r.precision,1),i=s.times(.5);if(e=e.abs(),e.lte(i))return Uo=n?4:1,e;if(t=e.divToInt(s),t.isZero())Uo=n?3:2;else{if(e=e.minus(t.times(s)),e.lte(i))return Uo=ck(t)?n?2:3:n?4:1,e;Uo=ck(t)?n?1:4:n?3:2}return e.minus(s).abs()}o(Ek,"toLessThanHalfPi");function qN(r,e,t,n){var s,i,a,u,c,l,h,m,g,y=r.constructor,v=t!==void 0;if(v?(Ls(t,1,Ku),n===void 0?n=y.rounding:Ls(n,0,8)):(t=y.precision,n=y.rounding),!r.isFinite())h=wk(r);else{for(h=Fa(r),a=h.indexOf("."),v?(s=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):s=e,a>=0&&(h=h.replace(".",""),g=new y(1),g.e=h.length-a,g.d=Hw(Fa(g),10,s),g.e=g.d.length),m=Hw(h,10,s),i=c=m.length;m[--c]==0;)m.pop();if(!m[0])h=v?"0p+0":"0";else{if(a<0?i--:(r=new y(r),r.d=m,r.e=i,r=Rr(r,g,t,n,0,s),m=r.d,i=r.e,l=hk),a=m[t],u=s/2,l=l||m[t+1]!==void 0,l=n<4?(a!==void 0||l)&&(n===0||n===(r.s<0?3:2)):a>u||a===u&&(n===4||l||n===6&&m[t-1]&1||n===(r.s<0?8:7)),m.length=t,l)for(;++m[--t]>s-1;)m[t]=0,t||(++i,m.unshift(1));for(c=m.length;!m[c-1];--c);for(a=0,h="";a<c;a++)h+=UN.charAt(m[a]);if(v){if(c>1)if(e==16||e==8){for(a=e==16?4:3,--c;c%a;c++)h+="0";for(m=Hw(h,s,e),c=m.length;!m[c-1];--c);for(a=1,h="1.";a<c;a++)h+=UN.charAt(m[a])}else h=h.charAt(0)+"."+h.slice(1);h=h+(i<0?"p":"p+")+i}else if(i<0){for(;++i;)h="0"+h;h="0."+h}else if(++i>c)for(i-=c;i--;)h+="0";else i<c&&(h=h.slice(0,i)+"."+h.slice(i))}h=(e==16?"0x":e==2?"0b":e==8?"0o":"")+h}return r.s<0?"-"+h:h}o(qN,"toStringBinary");function lk(r,e){if(r.length>e)return r.length=e,!0}o(lk,"truncate");function IY(r){return new this(r).abs()}o(IY,"abs");function _Y(r){return new this(r).acos()}o(_Y,"acos");function DY(r){return new this(r).acosh()}o(DY,"acosh");function BY(r,e){return new this(r).plus(e)}o(BY,"add");function RY(r){return new this(r).asin()}o(RY,"asin");function OY(r){return new this(r).asinh()}o(OY,"asinh");function PY(r){return new this(r).atan()}o(PY,"atan");function kY(r){return new this(r).atanh()}o(kY,"atanh");function LY(r,e){r=new this(r),e=new this(e);var t,n=this.precision,s=this.rounding,i=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=ja(this,i,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?ja(this,n,s):new this(0),t.s=r.s):!r.d||e.isZero()?(t=ja(this,i,1).times(.5),t.s=r.s):e.s<0?(this.precision=i,this.rounding=1,t=this.atan(Rr(r,e,i,1)),e=ja(this,i,1),this.precision=n,this.rounding=s,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(Rr(r,e,i,1)),t}o(LY,"atan2");function VY(r){return new this(r).cbrt()}o(VY,"cbrt");function UY(r){return yt(r=new this(r),r.e+1,2)}o(UY,"ceil");function jY(r,e,t){return new this(r).clamp(e,t)}o(jY,"clamp");function FY(r){if(!r||typeof r!="object")throw Error(Ww+"Object expected");var e,t,n,s=r.defaults===!0,i=["precision",1,Ku,"rounding",0,8,"toExpNeg",-Np,0,"toExpPos",0,Np,"maxE",0,Np,"minE",-Np,0,"modulo",0,9];for(e=0;e<i.length;e+=3)if(t=i[e],s&&(this[t]=jN[t]),(n=r[t])!==void 0)if(fs(n)===n&&n>=i[e+1]&&n<=i[e+2])this[t]=n;else throw Error(Hu+t+": "+n);if(t="crypto",s&&(this[t]=jN[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(dk);else this[t]=!1;else throw Error(Hu+t+": "+n);return this}o(FY,"config");function MY(r){return new this(r).cos()}o(MY,"cos");function qY(r){return new this(r).cosh()}o(qY,"cosh");function Sk(r){var e,t,n;function s(i){var a,u,c,l=this;if(!(l instanceof s))return new s(i);if(l.constructor=s,fk(i)){l.s=i.s,Ot?!i.d||i.e>s.maxE?(l.e=NaN,l.d=null):i.e<s.minE?(l.e=0,l.d=[0]):(l.e=i.e,l.d=i.d.slice()):(l.e=i.e,l.d=i.d?i.d.slice():i.d);return}if(c=typeof i,c==="number"){if(i===0){l.s=1/i<0?-1:1,l.e=0,l.d=[0];return}if(i<0?(i=-i,l.s=-1):l.s=1,i===~~i&&i<1e7){for(a=0,u=i;u>=10;u/=10)a++;Ot?a>s.maxE?(l.e=NaN,l.d=null):a<s.minE?(l.e=0,l.d=[0]):(l.e=a,l.d=[i]):(l.e=a,l.d=[i]);return}if(i*0!==0){i||(l.s=NaN),l.e=NaN,l.d=null;return}return Kw(l,i.toString())}if(c==="string")return(u=i.charCodeAt(0))===45?(i=i.slice(1),l.s=-1):(u===43&&(i=i.slice(1)),l.s=1),gk.test(i)?Kw(l,i):NY(l,i);if(c==="bigint")return i<0?(i=-i,l.s=-1):l.s=1,Kw(l,i.toString());throw Error(Hu+i)}if(o(s,"Decimal"),s.prototype=Ve,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=FY,s.clone=Sk,s.isDecimal=fk,s.abs=IY,s.acos=_Y,s.acosh=DY,s.add=BY,s.asin=RY,s.asinh=OY,s.atan=PY,s.atanh=kY,s.atan2=LY,s.cbrt=VY,s.ceil=UY,s.clamp=jY,s.cos=MY,s.cosh=qY,s.div=HY,s.exp=KY,s.floor=$Y,s.hypot=GY,s.ln=XY,s.log=WY,s.log10=JY,s.log2=zY,s.max=YY,s.min=QY,s.mod=ZY,s.mul=eQ,s.pow=tQ,s.random=rQ,s.round=nQ,s.sign=sQ,s.sin=iQ,s.sinh=aQ,s.sqrt=oQ,s.sub=uQ,s.sum=cQ,s.tan=lQ,s.tanh=fQ,s.trunc=hQ,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return s.config(r),s}o(Sk,"clone");function HY(r,e){return new this(r).div(e)}o(HY,"div");function KY(r){return new this(r).exp()}o(KY,"exp");function $Y(r){return yt(r=new this(r),r.e+1,3)}o($Y,"floor");function GY(){var r,e,t=new this(0);for(Ot=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return Ot=!0,new this(1/0);t=e}return Ot=!0,t.sqrt()}o(GY,"hypot");function fk(r){return r instanceof Ip||r&&r.toStringTag===mk||!1}o(fk,"isDecimalInstance");function XY(r){return new this(r).ln()}o(XY,"ln");function WY(r,e){return new this(r).log(e)}o(WY,"log");function zY(r){return new this(r).log(2)}o(zY,"log2");function JY(r){return new this(r).log(10)}o(JY,"log10");function YY(){return xk(this,arguments,-1)}o(YY,"max");function QY(){return xk(this,arguments,1)}o(QY,"min");function ZY(r,e){return new this(r).mod(e)}o(ZY,"mod");function eQ(r,e){return new this(r).mul(e)}o(eQ,"mul");function tQ(r,e){return new this(r).pow(e)}o(tQ,"pow");function rQ(r){var e,t,n,s,i=0,a=new this(1),u=[];if(r===void 0?r=this.precision:Ls(r,1,Ku),n=Math.ceil(r/Ct),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));i<n;)s=e[i],s>=429e7?e[i]=crypto.getRandomValues(new Uint32Array(1))[0]:u[i++]=s%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);i<n;)s=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+((e[i+3]&127)<<24),s>=214e7?crypto.randomBytes(4).copy(e,i):(u.push(s%1e7),i+=4);i=n/4}else throw Error(dk);else for(;i<n;)u[i++]=Math.random()*1e7|0;for(n=u[--i],r%=Ct,n&&r&&(s=_n(10,Ct-r),u[i]=(n/s|0)*s);u[i]===0;i--)u.pop();if(i<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=Ct)u.shift();for(n=1,s=u[0];s>=10;s/=10)n++;n<Ct&&(t-=Ct-n)}return a.e=t,a.d=u,a}o(rQ,"random");function nQ(r){return yt(r=new this(r),r.e+1,this.rounding)}o(nQ,"round");function sQ(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}o(sQ,"sign");function iQ(r){return new this(r).sin()}o(iQ,"sin");function aQ(r){return new this(r).sinh()}o(aQ,"sinh");function oQ(r){return new this(r).sqrt()}o(oQ,"sqrt");function uQ(r,e){return new this(r).sub(e)}o(uQ,"sub");function cQ(){var r=0,e=arguments,t=new this(e[r]);for(Ot=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return Ot=!0,yt(t,this.precision,this.rounding)}o(cQ,"sum");function lQ(r){return new this(r).tan()}o(lQ,"tan");function fQ(r){return new this(r).tanh()}o(fQ,"tanh");function hQ(r){return yt(r=new this(r),r.e+1,1)}o(hQ,"trunc");Ve[Symbol.for("nodejs.util.inspect.custom")]=Ve.toString;Ve[Symbol.toStringTag]="Decimal";var Ip=Ve.constructor=Sk(jN);$w=new Ip($w);Gw=new Ip(Gw);var _p=class r extends Ip{static{o(this,"Decimal")}static from(e){return new r(e)}static newOrZero(e){return e===void 0?r.from(0):r.from(e)}static newOrUndefined(e){if(e!==void 0)return r.from(e)}};import pQ from"pdfkit";var bk=class r{static{o(this,"PdfkitPdfBuilder")}defaults={autoFirstPage:!1};doc=new pQ(this.defaults);constructor(e){e&&this.configure(e)}static new(e){return new r(e)}configure(e){return this.doc.options={...this.doc.options,...e},this}pipe(e){return this.doc.pipe(e),this}end(){return this.doc.end()}restore(){return this.doc.restore(),this}save(){return this.doc.save(),this}stroke(e){return this.doc.stroke(e),this}page(e){return this.doc.addPage(e),this}table(e){return this.doc.table(e),this}text(e,t){let{x:n,y:s,...i}=t??{};return n||s?(this.doc.text(e,n,s,i),this):(this.doc.text(e,t),this)}fontSize(e){return this.doc.fontSize(e),this}font(e,t,n){return typeof t=="string"?(this.doc.font(e,t,n),this):typeof t=="number"?(this.doc.font(e,t),this):(this.doc.font(e),this)}image(e,t,n,s){return typeof t=="number"&&typeof n=="number"?(this.doc.image(e,t,n,s),this):(this.doc.image(e,t),this)}rect(e,t,n,s){return this.doc.rect(e,t,n,s),this}path(e){return this.doc.path(e),this}translate(e,t){return this.doc.translate(e,t),this}scale(e,t){return this.doc.scale(e,t),this}fill(e,t){return this.doc.fill(e,t),this}pageWidth(){return this.doc.page.width}pageHeight(){return this.doc.page.height}heightOfString(e,t){return this.doc.heightOfString(e,t)}widthOfString(e,t){return this.doc.widthOfString(e,t)}pageMargins(){return this.doc.page.margins}currentLineHeight(e){return this.doc.currentLineHeight(e)}x(){return this.doc.x}y(){return this.doc.y}moveDown(e){return this.doc.moveDown(e),this}row(e,...t){let n,s;typeof e=="function"?(n={},s=[e,...t]):(n=e??{},s=t),n.columns??=1;let i=this.y(),a=n.right??0,u=n.left??0,c=n.gap??0,l=this.pageWidth(),h=l-u-a-c*(n.columns-1);n.size??=Array(n.columns).fill(12/n.columns);let m=[];for(let g=0;g<n.columns;g++){let y=n.size[g]/12;m[g]=h*y}for(let g=0,y=u;g<n.columns;g++){let v=g===n.columns-1,E=m[g];if(v&&n.columns>1){let _=l-a-y;_>0&&Math.abs(_-E)>.01&&(E=_)}let w={y:i,x:y,width:E};s[g](w),y+=E,c>0&&!v&&(y+=c)}return this}};var Ak=class{static{o(this,"MemoryCacheAdapter")}cache=new Map;async get(e){return Promise.resolve(this.cache.get(e)??null)}has(e){return Promise.resolve(this.cache.has(e))}set(e,t){return this.cache.set(e,t),Promise.resolve(!0)}};var Yw=class{static{o(this,"NullCacheAdapter")}async get(e){return Promise.resolve(null)}has(e){return Promise.resolve(!1)}set(e,t){return Promise.resolve(!0)}};var Ll=Xl(FL(),1);import rK from"fs";import kge from"path";import v2 from"crypto";var Jte=o(r=>!!r&&typeof r=="object"&&"message"in r,"hasMessageInRecord"),nf=o(r=>typeof r=="string"?ls(new Wr(r)):r instanceof Error?ls(new Wr(r.message,{cause:r.cause})):Jte(r)?ls(new Wr(r.message)):ls(new Wr("unexpected error")),"leftFromError");import"reflect-metadata";var hM=Xl(Zj(),1);import Dpe from"os";import{constants as Bpe}from"crypto";import{Agent as KD}from"https";function bv(r,e){return o(function(){return r.apply(e,arguments)},"wrap")}o(bv,"bind");var{toString:hfe}=Object.prototype,{getPrototypeOf:mD}=Object,{iterator:GS,toStringTag:tF}=Symbol,XS=(r=>e=>{let t=hfe.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),va=o(r=>(r=r.toLowerCase(),e=>XS(e)===r),"kindOfTest"),WS=o(r=>e=>typeof e===r,"typeOfTest"),{isArray:bd}=Array,Sd=WS("undefined");function Av(r){return r!==null&&!Sd(r)&&r.constructor!==null&&!Sd(r.constructor)&&Ws(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}o(Av,"isBuffer");var rF=va("ArrayBuffer");function pfe(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&rF(r.buffer),e}o(pfe,"isArrayBufferView");var dfe=WS("string"),Ws=WS("function"),nF=WS("number"),Cv=o(r=>r!==null&&typeof r=="object","isObject"),mfe=o(r=>r===!0||r===!1,"isBoolean"),$S=o(r=>{if(XS(r)!=="object")return!1;let e=mD(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tF in r)&&!(GS in r)},"isPlainObject"),gfe=o(r=>{if(!Cv(r)||Av(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},"isEmptyObject"),vfe=va("Date"),yfe=va("File"),xfe=va("Blob"),wfe=va("FileList"),Efe=o(r=>Cv(r)&&Ws(r.pipe),"isStream"),Sfe=o(r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||Ws(r.append)&&((e=XS(r))==="formdata"||e==="object"&&Ws(r.toString)&&r.toString()==="[object FormData]"))},"isFormData"),bfe=va("URLSearchParams"),[Afe,Cfe,Nfe,Tfe]=["ReadableStream","Request","Response","Headers"].map(va),Ife=o(r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function Nv(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,s;if(typeof r!="object"&&(r=[r]),bd(r))for(n=0,s=r.length;n<s;n++)e.call(null,r[n],n,r);else{if(Av(r))return;let i=t?Object.getOwnPropertyNames(r):Object.keys(r),a=i.length,u;for(n=0;n<a;n++)u=i[n],e.call(null,r[u],u,r)}}o(Nv,"forEach");function sF(r,e){if(Av(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,s;for(;n-- >0;)if(s=t[n],e===s.toLowerCase())return s;return null}o(sF,"findKey");var vf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iF=o(r=>!Sd(r)&&r!==vf,"isContextDefined");function dD(){let{caseless:r,skipUndefined:e}=iF(this)&&this||{},t={},n=o((s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;let a=r&&sF(t,i)||i;$S(t[a])&&$S(s)?t[a]=dD(t[a],s):$S(s)?t[a]=dD({},s):bd(s)?t[a]=s.slice():(!e||!Sd(s))&&(t[a]=s)},"assignValue");for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Nv(arguments[s],n);return t}o(dD,"merge");var _fe=o((r,e,t,{allOwnKeys:n}={})=>(Nv(e,(s,i)=>{t&&Ws(s)?Object.defineProperty(r,i,{value:bv(s,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),"extend"),Dfe=o(r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),"stripBOM"),Bfe=o((r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},"inherits"),Rfe=o((r,e,t,n)=>{let s,i,a,u={};if(e=e||{},r==null)return e;do{for(s=Object.getOwnPropertyNames(r),i=s.length;i-- >0;)a=s[i],(!n||n(a,r,e))&&!u[a]&&(e[a]=r[a],u[a]=!0);r=t!==!1&&mD(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},"toFlatObject"),Ofe=o((r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},"endsWith"),Pfe=o(r=>{if(!r)return null;if(bd(r))return r;let e=r.length;if(!nF(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},"toArray"),kfe=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&mD(Uint8Array)),Lfe=o((r,e)=>{let n=(r&&r[GS]).call(r),s;for(;(s=n.next())&&!s.done;){let i=s.value;e.call(r,i[0],i[1])}},"forEachEntry"),Vfe=o((r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},"matchAll"),Ufe=va("HTMLFormElement"),jfe=o(r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,o(function(t,n,s){return n.toUpperCase()+s},"replacer")),"toCamelCase"),eF=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Ffe=va("RegExp"),aF=o((r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Nv(t,(s,i)=>{let a;(a=e(s,i,r))!==!1&&(n[i]=a||s)}),Object.defineProperties(r,n)},"reduceDescriptors"),Mfe=o(r=>{aF(r,(e,t)=>{if(Ws(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(Ws(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},"freezeMethods"),qfe=o((r,e)=>{let t={},n=o(s=>{s.forEach(i=>{t[i]=!0})},"define");return bd(r)?n(r):n(String(r).split(e)),t},"toObjectSet"),Hfe=o(()=>{},"noop"),Kfe=o((r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,"toFiniteNumber");function $fe(r){return!!(r&&Ws(r.append)&&r[tF]==="FormData"&&r[GS])}o($fe,"isSpecCompliantForm");var Gfe=o(r=>{let e=new Array(10),t=o((n,s)=>{if(Cv(n)){if(e.indexOf(n)>=0)return;if(Av(n))return n;if(!("toJSON"in n)){e[s]=n;let i=bd(n)?[]:{};return Nv(n,(a,u)=>{let c=t(a,s+1);!Sd(c)&&(i[u]=c)}),e[s]=void 0,i}}return n},"visit");return t(r,0)},"toJSONObject"),Xfe=va("AsyncFunction"),Wfe=o(r=>r&&(Cv(r)||Ws(r))&&Ws(r.then)&&Ws(r.catch),"isThenable"),oF=((r,e)=>r?setImmediate:e?((t,n)=>(vf.addEventListener("message",({source:s,data:i})=>{s===vf&&i===t&&n.length&&n.shift()()},!1),s=>{n.push(s),vf.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Ws(vf.postMessage)),zfe=typeof queueMicrotask<"u"?queueMicrotask.bind(vf):typeof process<"u"&&process.nextTick||oF,Jfe=o(r=>r!=null&&Ws(r[GS]),"isIterable"),ie={isArray:bd,isArrayBuffer:rF,isBuffer:Av,isFormData:Sfe,isArrayBufferView:pfe,isString:dfe,isNumber:nF,isBoolean:mfe,isObject:Cv,isPlainObject:$S,isEmptyObject:gfe,isReadableStream:Afe,isRequest:Cfe,isResponse:Nfe,isHeaders:Tfe,isUndefined:Sd,isDate:vfe,isFile:yfe,isBlob:xfe,isRegExp:Ffe,isFunction:Ws,isStream:Efe,isURLSearchParams:bfe,isTypedArray:kfe,isFileList:wfe,forEach:Nv,merge:dD,extend:_fe,trim:Ife,stripBOM:Dfe,inherits:Bfe,toFlatObject:Rfe,kindOf:XS,kindOfTest:va,endsWith:Ofe,toArray:Pfe,forEachEntry:Lfe,matchAll:Vfe,isHTMLForm:Ufe,hasOwnProperty:eF,hasOwnProp:eF,reduceDescriptors:aF,freezeMethods:Mfe,toObjectSet:qfe,toCamelCase:jfe,noop:Hfe,toFiniteNumber:Kfe,findKey:sF,global:vf,isContextDefined:iF,isSpecCompliantForm:$fe,toJSONObject:Gfe,isAsyncFn:Xfe,isThenable:Wfe,setImmediate:oF,asap:zfe,isIterable:Jfe};var pi=class uF extends Error{static{o(this,"AxiosError")}static from(e,t,n,s,i,a){let u=new uF(e.message,t||e.code,n,s,i);return u.cause=e,u.name=e.name,a&&Object.assign(u,a),u}constructor(e,t,n,s,i){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.status}}};pi.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";pi.ERR_BAD_OPTION="ERR_BAD_OPTION";pi.ECONNABORTED="ECONNABORTED";pi.ETIMEDOUT="ETIMEDOUT";pi.ERR_NETWORK="ERR_NETWORK";pi.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";pi.ERR_DEPRECATED="ERR_DEPRECATED";pi.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";pi.ERR_BAD_REQUEST="ERR_BAD_REQUEST";pi.ERR_CANCELED="ERR_CANCELED";pi.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";pi.ERR_INVALID_URL="ERR_INVALID_URL";var Ze=pi;var pF=Xl(hF(),1),zS=pF.default;function wD(r){return ie.isPlainObject(r)||ie.isArray(r)}o(wD,"isVisitable");function mF(r){return ie.endsWith(r,"[]")?r.slice(0,-2):r}o(mF,"removeBrackets");function dF(r,e,t){return r?r.concat(e).map(o(function(s,i){return s=mF(s),!t&&i?"["+s+"]":s},"each")).join(t?".":""):e}o(dF,"renderKey");function ahe(r){return ie.isArray(r)&&!r.some(wD)}o(ahe,"isFlatArray");var ohe=ie.toFlatObject(ie,{},null,o(function(e){return/^is[A-Z]/.test(e)},"filter"));function uhe(r,e,t){if(!ie.isObject(r))throw new TypeError("target must be an object");e=e||new(zS||FormData),t=ie.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,o(function(E,w){return!ie.isUndefined(w[E])},"defined"));let n=t.metaTokens,s=t.visitor||h,i=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(e);if(!ie.isFunction(s))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(ie.isDate(v))return v.toISOString();if(ie.isBoolean(v))return v.toString();if(!c&&ie.isBlob(v))throw new Ze("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(v)||ie.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}o(l,"convertValue");function h(v,E,w){let C=v;if(v&&!w&&typeof v=="object"){if(ie.endsWith(E,"{}"))E=n?E:E.slice(0,-2),v=JSON.stringify(v);else if(ie.isArray(v)&&ahe(v)||(ie.isFileList(v)||ie.endsWith(E,"[]"))&&(C=ie.toArray(v)))return E=mF(E),C.forEach(o(function(b,A){!(ie.isUndefined(b)||b===null)&&e.append(a===!0?dF([E],A,i):a===null?E:E+"[]",l(b))},"each")),!1}return wD(v)?!0:(e.append(dF(w,E,i),l(v)),!1)}o(h,"defaultVisitor");let m=[],g=Object.assign(ohe,{defaultVisitor:h,convertValue:l,isVisitable:wD});function y(v,E){if(!ie.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+E.join("."));m.push(v),ie.forEach(v,o(function(C,_){(!(ie.isUndefined(C)||C===null)&&s.call(e,C,ie.isString(_)?_.trim():_,E,g))===!0&&y(C,E?E.concat(_):[_])},"each")),m.pop()}}if(o(y,"build"),!ie.isObject(r))throw new TypeError("data must be an object");return y(r),e}o(uhe,"toFormData");var Sc=uhe;function gF(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,o(function(n){return e[n]},"replacer"))}o(gF,"encode");function vF(r,e){this._pairs=[],r&&Sc(r,this,e)}o(vF,"AxiosURLSearchParams");var yF=vF.prototype;yF.append=o(function(e,t){this._pairs.push([e,t])},"append");yF.toString=o(function(e){let t=e?function(n){return e.call(this,n,gF)}:gF;return this._pairs.map(o(function(s){return t(s[0])+"="+t(s[1])},"each"),"").join("&")},"toString");var xF=vF;function che(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}o(che,"encode");function yf(r,e,t){if(!e)return r;let n=t&&t.encode||che,s=ie.isFunction(t)?{serialize:t}:t,i=s&&s.serialize,a;if(i?a=i(e,s):a=ie.isURLSearchParams(e)?e.toString():new xF(e,s).toString(n),a){let u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r}o(yf,"buildURL");var lhe=class{static{o(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ie.forEach(this.handlers,o(function(n){n!==null&&e(n)},"forEachHandler"))}},ED=lhe;var bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};import hhe from"crypto";import fhe from"url";var wF=fhe.URLSearchParams;var SD="abcdefghijklmnopqrstuvwxyz",EF="0123456789",SF={DIGIT:EF,ALPHA:SD,ALPHA_DIGIT:SD+SD.toUpperCase()+EF},phe=o((r=16,e=SF.ALPHA_DIGIT)=>{let t="",{length:n}=e,s=new Uint32Array(r);hhe.randomFillSync(s);for(let i=0;i<r;i++)t+=e[s[i]%n];return t},"generateString"),bF={isNode:!0,classes:{URLSearchParams:wF,FormData:zS,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:SF,generateString:phe,protocols:["http","https","file","data"]};var CD={};vY(CD,{hasBrowserEnv:()=>AD,hasStandardBrowserEnv:()=>dhe,hasStandardBrowserWebWorkerEnv:()=>mhe,navigator:()=>bD,origin:()=>ghe});var AD=typeof window<"u"&&typeof document<"u",bD=typeof navigator=="object"&&navigator||void 0,dhe=AD&&(!bD||["ReactNative","NativeScript","NS"].indexOf(bD.product)<0),mhe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ghe=AD&&window.location.href||"http://localhost";var wr={...CD,...bF};function ND(r,e){return Sc(r,new wr.classes.URLSearchParams,{visitor:o(function(t,n,s,i){return wr.isNode&&ie.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},"visitor"),...e})}o(ND,"toURLEncodedForm");function vhe(r){return ie.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}o(vhe,"parsePropPath");function yhe(r){let e={},t=Object.keys(r),n,s=t.length,i;for(n=0;n<s;n++)i=t[n],e[i]=r[i];return e}o(yhe,"arrayToObject");function xhe(r){function e(t,n,s,i){let a=t[i++];if(a==="__proto__")return!0;let u=Number.isFinite(+a),c=i>=t.length;return a=!a&&ie.isArray(s)?s.length:a,c?(ie.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!u):((!s[a]||!ie.isObject(s[a]))&&(s[a]=[]),e(t,n,s[a],i)&&ie.isArray(s[a])&&(s[a]=yhe(s[a])),!u)}if(o(e,"buildPath"),ie.isFormData(r)&&ie.isFunction(r.entries)){let t={};return ie.forEachEntry(r,(n,s)=>{e(vhe(n),s,t,0)}),t}return null}o(xhe,"formDataToJSON");var JS=xhe;function whe(r,e,t){if(ie.isString(r))try{return(e||JSON.parse)(r),ie.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}o(whe,"stringifySafely");var TD={transitional:bc,adapter:["xhr","http","fetch"],transformRequest:[o(function(e,t){let n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=ie.isObject(e);if(i&&ie.isHTMLForm(e)&&(e=new FormData(e)),ie.isFormData(e))return s?JSON.stringify(JS(e)):e;if(ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)||ie.isReadableStream(e))return e;if(ie.isArrayBufferView(e))return e.buffer;if(ie.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ND(e,this.formSerializer).toString();if((u=ie.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return Sc(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),whe(e)):e},"transformRequest")],transformResponse:[o(function(e){let t=this.transitional||TD.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(ie.isResponse(e)||ie.isReadableStream(e))return e;if(e&&ie.isString(e)&&(n&&!this.responseType||s)){let a=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?Ze.from(u,Ze.ERR_BAD_RESPONSE,this,null,this.response):u}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wr.classes.FormData,Blob:wr.classes.Blob},validateStatus:o(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],r=>{TD.headers[r]={}});var Ad=TD;var Ehe=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AF=o((r=>{let e={},t,n,s;return r&&r.split(`
|
|
100
100
|
`).forEach(o(function(a){s=a.indexOf(":"),t=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!t||e[t]&&Ehe[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)},"parser")),e}),"default");var CF=Symbol("internals");function Tv(r){return r&&String(r).trim().toLowerCase()}o(Tv,"normalizeHeader");function YS(r){return r===!1||r==null?r:ie.isArray(r)?r.map(YS):String(r)}o(YS,"normalizeValue");function She(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}o(She,"parseTokens");var bhe=o(r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()),"isValidHeaderName");function ID(r,e,t,n,s){if(ie.isFunction(n))return n.call(this,e,t);if(s&&(e=t),!!ie.isString(e)){if(ie.isString(n))return e.indexOf(n)!==-1;if(ie.isRegExp(n))return n.test(e)}}o(ID,"matchHeaderValue");function Ahe(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}o(Ahe,"formatHeader");function Che(r,e){let t=ie.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:o(function(s,i,a){return this[n].call(this,e,s,i,a)},"value"),configurable:!0})})}o(Che,"buildAccessors");var QS=class{static{o(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,t,n){let s=this;function i(u,c,l){let h=Tv(c);if(!h)throw new Error("header name must be a non-empty string");let m=ie.findKey(s,h);(!m||s[m]===void 0||l===!0||l===void 0&&s[m]!==!1)&&(s[m||c]=YS(u))}o(i,"setHeader");let a=o((u,c)=>ie.forEach(u,(l,h)=>i(l,h,c)),"setHeaders");if(ie.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ie.isString(e)&&(e=e.trim())&&!bhe(e))a(AF(e),t);else if(ie.isObject(e)&&ie.isIterable(e)){let u={},c,l;for(let h of e){if(!ie.isArray(h))throw TypeError("Object iterator must return a key-value pair");u[l=h[0]]=(c=u[l])?ie.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}a(u,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Tv(e),e){let n=ie.findKey(this,e);if(n){let s=this[n];if(!t)return s;if(t===!0)return She(s);if(ie.isFunction(t))return t.call(this,s,n);if(ie.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Tv(e),e){let n=ie.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||ID(this,this[n],n,t)))}return!1}delete(e,t){let n=this,s=!1;function i(a){if(a=Tv(a),a){let u=ie.findKey(n,a);u&&(!t||ID(n,n[u],u,t))&&(delete n[u],s=!0)}}return o(i,"deleteHeader"),ie.isArray(e)?e.forEach(i):i(e),s}clear(e){let t=Object.keys(this),n=t.length,s=!1;for(;n--;){let i=t[n];(!e||ID(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){let t=this,n={};return ie.forEach(this,(s,i)=>{let a=ie.findKey(n,i);if(a){t[a]=YS(s),delete t[i];return}let u=e?Ahe(i):String(i).trim();u!==i&&delete t[i],t[u]=YS(s),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ie.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=e&&ie.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
101
101
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(s=>n.set(s)),n}static accessor(e){let n=(this[CF]=this[CF]={accessors:{}}).accessors,s=this.prototype;function i(a){let u=Tv(a);n[u]||(Che(s,a),n[u]=!0)}return o(i,"defineAccessor"),ie.isArray(e)?e.forEach(i):i(e),this}};QS.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(QS.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:o(()=>r,"get"),set(n){this[t]=n}}});ie.freezeMethods(QS);var Zr=QS;function Iv(r,e){let t=this||Ad,n=e||t,s=Zr.from(n.headers),i=n.data;return ie.forEach(r,o(function(u){i=u.call(t,i,s.normalize(),e?e.status:void 0)},"transform")),s.normalize(),i}o(Iv,"transformData");function _v(r){return!!(r&&r.__CANCEL__)}o(_v,"isCancel");var Nhe=class extends Ze{static{o(this,"CanceledError")}constructor(e,t,n){super(e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}},di=Nhe;function lo(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new Ze("Request failed with status code "+t.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}o(lo,"settle");function _D(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}o(_D,"isAbsoluteURL");function DD(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}o(DD,"combineURLs");function xf(r,e,t){let n=!_D(e);return r&&(n||t==!1)?DD(r,e):e}o(xf,"buildFullPath");var VF=Xl(wI(),1),FF=Xl(OI(),1);import Hhe from"http";import Khe from"https";import UF from"http2";import jF from"util";import Cc from"zlib";var wf="1.13.5";function Dv(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}o(Dv,"parseProtocol");var The=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function BD(r,e,t){let n=t&&t.Blob||wr.classes.Blob,s=Dv(r);if(e===void 0&&n&&(e=!0),s==="data"){r=s.length?r.slice(s.length+1):r;let i=The.exec(r);if(!i)throw new Ze("Invalid URL",Ze.ERR_INVALID_URL);let a=i[1],u=i[2],c=i[3],l=Buffer.from(decodeURIComponent(c),u?"base64":"utf8");if(e){if(!n)throw new Ze("Blob is not supported",Ze.ERR_NOT_SUPPORT);return new n([l],{type:a})}return l}throw new Ze("Unsupported protocol "+s,Ze.ERR_NOT_SUPPORT)}o(BD,"fromDataURI");import Ac from"stream";import Ihe from"stream";var RD=Symbol("internals"),_he=class extends Ihe.Transform{static{o(this,"AxiosTransformStream")}constructor(e){e=ie.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,s)=>!ie.isUndefined(s[n])),super({readableHighWaterMark:e.chunkSize});let t=this[RD]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){let t=this[RD];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let s=this[RD],i=s.maxRate,a=this.readableHighWaterMark,u=s.timeWindow,c=1e3/u,l=i/c,h=s.minChunkSize!==!1?Math.max(s.minChunkSize,l*.01):0,m=o((y,v)=>{let E=Buffer.byteLength(y);s.bytesSeen+=E,s.bytes+=E,s.isCaptured&&this.emit("progress",s.bytesSeen),this.push(y)?process.nextTick(v):s.onReadCallback=()=>{s.onReadCallback=null,process.nextTick(v)}},"pushChunk"),g=o((y,v)=>{let E=Buffer.byteLength(y),w=null,C=a,_,b=0;if(i){let A=Date.now();(!s.ts||(b=A-s.ts)>=u)&&(s.ts=A,_=l-s.bytes,s.bytes=_<0?-_:0,b=0),_=l-s.bytes}if(i){if(_<=0)return setTimeout(()=>{v(null,y)},u-b);_<C&&(C=_)}C&&E>C&&E-C>h&&(w=y.subarray(C),y=y.subarray(0,C)),m(y,w?()=>{process.nextTick(v,null,w)}:v)},"transformChunk");g(e,o(function y(v,E){if(v)return n(v);E?g(E,y):n(null)},"transformNextChunk"))}},OD=_he;import{EventEmitter as $he}from"events";import Bhe from"util";import{Readable as Rhe}from"stream";var{asyncIterator:NF}=Symbol,Dhe=o(async function*(r){r.stream?yield*r.stream():r.arrayBuffer?yield await r.arrayBuffer():r[NF]?yield*r[NF]():yield r},"readBlob"),ZS=Dhe;var Ohe=wr.ALPHABET.ALPHA_DIGIT+"-_",Bv=typeof TextEncoder=="function"?new TextEncoder:new Bhe.TextEncoder,Ef=`\r
|
|
102
102
|
`,Phe=Bv.encode(Ef),khe=2,Lhe=class{static{o(this,"FormDataPart")}constructor(e,t){let{escapeName:n}=this.constructor,s=ie.isString(t),i=`Content-Disposition: form-data; name="${n(e)}"${!s&&t.name?`; filename="${n(t.name)}"`:""}${Ef}`;s?t=Bv.encode(String(t).replace(/\r?\n|\r\n?/g,Ef)):i+=`Content-Type: ${t.type||"application/octet-stream"}${Ef}`,this.headers=Bv.encode(i+Ef),this.contentLength=s?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+khe,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;ie.isTypedArray(e)?yield e:yield*ZS(e),yield Phe}static escapeName(e){return String(e).replace(/[\r\n"]/g,t=>({"\r":"%0D","\n":"%0A",'"':"%22"})[t])}},Vhe=o((r,e,t)=>{let{tag:n="form-data-boundary",size:s=25,boundary:i=n+"-"+wr.generateString(s,Ohe)}=t||{};if(!ie.isFormData(r))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let a=Bv.encode("--"+i+Ef),u=Bv.encode("--"+i+"--"+Ef),c=u.byteLength,l=Array.from(r.entries()).map(([m,g])=>{let y=new Lhe(m,g);return c+=y.size,y});c+=a.byteLength*l.length,c=ie.toFiniteNumber(c);let h={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(h["Content-Length"]=c),e&&e(h),Rhe.from((async function*(){for(let m of l)yield a,yield*m.encode();yield u})())},"formDataToStream"),TF=Vhe;import Uhe from"stream";var jhe=class extends Uhe.Transform{static{o(this,"ZlibHeaderTransformStream")}__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let s=Buffer.alloc(2);s[0]=120,s[1]=156,this.push(s,t)}this.__transform(e,t,n)}},IF=jhe;var Fhe=o((r,e)=>ie.isAsyncFn(r)?function(...t){let n=t.pop();r.apply(this,t).then(s=>{try{e?n(null,...e(s)):n(null,s)}catch(i){n(i)}},n)}:r,"callbackify"),_F=Fhe;function Mhe(r,e){r=r||10;let t=new Array(r),n=new Array(r),s=0,i=0,a;return e=e!==void 0?e:1e3,o(function(c){let l=Date.now(),h=n[i];a||(a=l),t[s]=c,n[s]=l;let m=i,g=0;for(;m!==s;)g+=t[m++],m=m%r;if(s=(s+1)%r,s===i&&(i=(i+1)%r),l-a<e)return;let y=h&&l-h;return y?Math.round(g*1e3/y):void 0},"push")}o(Mhe,"speedometer");var DF=Mhe;function qhe(r,e){let t=0,n=1e3/e,s,i,a=o((l,h=Date.now())=>{t=h,s=null,i&&(clearTimeout(i),i=null),r(...l)},"invoke");return[o((...l)=>{let h=Date.now(),m=h-t;m>=n?a(l,h):(s=l,i||(i=setTimeout(()=>{i=null,a(s)},n-m)))},"throttled"),o(()=>s&&a(s),"flush")]}o(qhe,"throttle");var BF=qhe;var Jo=o((r,e,t=3)=>{let n=0,s=DF(50,250);return BF(i=>{let a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=s(c),h=a<=u;n=a;let m={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&h?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[e?"download":"upload"]:!0};r(m)},t)},"progressEventReducer"),Cd=o((r,e)=>{let t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},"progressEventDecorator"),Nd=o(r=>(...e)=>ie.asap(()=>r(...e)),"asyncDecorator");function PD(r){if(!r||typeof r!="string"||!r.startsWith("data:"))return 0;let e=r.indexOf(",");if(e<0)return 0;let t=r.slice(5,e),n=r.slice(e+1);if(/;base64/i.test(t)){let i=n.length,a=n.length;for(let g=0;g<a;g++)if(n.charCodeAt(g)===37&&g+2<a){let y=n.charCodeAt(g+1),v=n.charCodeAt(g+2);(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(i-=2,g+=2)}let u=0,c=a-1,l=o(g=>g>=2&&n.charCodeAt(g-2)===37&&n.charCodeAt(g-1)===51&&(n.charCodeAt(g)===68||n.charCodeAt(g)===100),"tailIsPct3D");c>=0&&(n.charCodeAt(c)===61?(u++,c--):l(c)&&(u++,c-=3)),u===1&&c>=0&&(n.charCodeAt(c)===61||l(c))&&u++;let m=Math.floor(i/4)*3-(u||0);return m>0?m:0}return Buffer.byteLength(n,"utf8")}o(PD,"estimateDataURLDecodedBytes");var RF={flush:Cc.constants.Z_SYNC_FLUSH,finishFlush:Cc.constants.Z_SYNC_FLUSH},Ghe={flush:Cc.constants.BROTLI_OPERATION_FLUSH,finishFlush:Cc.constants.BROTLI_OPERATION_FLUSH},OF=ie.isFunction(Cc.createBrotliDecompress),{http:Xhe,https:Whe}=FF.default,zhe=/https:?/,PF=wr.protocols.map(r=>r+":"),kF=o((r,[e,t])=>(r.on("end",t).on("error",t),e),"flushOnFinish"),Jhe=class{static{o(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let h=n.length;for(let m=0;m<h;m++){let[g,y]=n[m];if(!g.destroyed&&!g.closed&&jF.isDeepStrictEqual(y,t))return g}}let s=UF.connect(e,t),i,a=o(()=>{if(i)return;i=!0;let h=n,m=h.length,g=m;for(;g--;)if(h[g][0]===s){m===1?delete this.sessions[e]:h.splice(g,1);return}},"removeSession"),u=s.request,{sessionTimeout:c}=t;if(c!=null){let h,m=0;s.request=function(){let g=u.apply(this,arguments);return m++,h&&(clearTimeout(h),h=null),g.once("close",()=>{--m||(h=setTimeout(()=>{h=null,a()},c))}),g}}s.once("close",a);let l=[s,t];return n?n.push(l):n=this.sessions[e]=[l],s}},Yhe=new Jhe;function Qhe(r,e){r.beforeRedirects.proxy&&r.beforeRedirects.proxy(r),r.beforeRedirects.config&&r.beforeRedirects.config(r,e)}o(Qhe,"dispatchBeforeRedirect");function MF(r,e,t){let n=e;if(!n&&n!==!1){let s=VF.default.getProxyForUrl(t);s&&(n=new URL(s))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){if(!!(n.auth.username||n.auth.password))n.auth=(n.auth.username||"")+":"+(n.auth.password||"");else if(typeof n.auth=="object")throw new Ze("Invalid proxy authorization",Ze.ERR_BAD_OPTION,{proxy:n});let a=Buffer.from(n.auth,"utf8").toString("base64");r.headers["Proxy-Authorization"]="Basic "+a}r.headers.host=r.hostname+(r.port?":"+r.port:"");let s=n.hostname||n.host;r.hostname=s,r.host=s,r.port=n.port,r.path=t,n.protocol&&(r.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}r.beforeRedirects.proxy=o(function(i){MF(i,e,i.href)},"beforeRedirect")}o(MF,"setProxy");var Zhe=typeof process<"u"&&ie.kindOf(process)==="process",epe=o(r=>new Promise((e,t)=>{let n,s,i=o((c,l)=>{s||(s=!0,n&&n(c,l))},"done"),a=o(c=>{i(c),e(c)},"_resolve"),u=o(c=>{i(c,!0),t(c)},"_reject");r(a,u,c=>n=c).catch(u)}),"wrapAsync"),tpe=o(({address:r,family:e})=>{if(!ie.isString(r))throw TypeError("address must be a string");return{address:r,family:e||(r.indexOf(".")<0?6:4)}},"resolveFamily"),LF=o((r,e)=>tpe(ie.isObject(r)?r:{address:r,family:e}),"buildAddressEntry"),rpe={request(r,e){let t=r.protocol+"//"+r.hostname+":"+(r.port||(r.protocol==="https:"?443:80)),{http2Options:n,headers:s}=r,i=Yhe.getSession(t,n),{HTTP2_HEADER_SCHEME:a,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=UF.constants,h={[a]:r.protocol.replace(":",""),[u]:r.method,[c]:r.path};ie.forEach(s,(g,y)=>{y.charAt(0)!==":"&&(h[y]=g)});let m=i.request(h);return m.once("response",g=>{let y=m;g=Object.assign({},g);let v=g[l];delete g[l],y.headers=g,y.statusCode=+v,e(y)}),m}},qF=Zhe&&o(function(e){return epe(o(async function(n,s,i){let{data:a,lookup:u,family:c,httpVersion:l=1,http2Options:h}=e,{responseType:m,responseEncoding:g}=e,y=e.method.toUpperCase(),v,E=!1,w;if(l=+l,Number.isNaN(l))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(l!==1&&l!==2)throw TypeError(`Unsupported protocol version '${l}'`);let C=l===2;if(u){let ne=_F(u,Z=>ie.isArray(Z)?Z:[Z]);u=o((Z,Se,He)=>{ne(Z,Se,(Le,rt,N)=>{if(Le)return He(Le);let S=ie.isArray(rt)?rt.map(G=>LF(G)):[LF(rt,N)];Se.all?He(Le,S):He(Le,S[0].address,S[0].family)})},"lookup")}let _=new $he;function b(ne){try{_.emit("abort",!ne||ne.type?new di(null,e,w):ne)}catch(Z){console.warn("emit error",Z)}}o(b,"abort"),_.once("abort",s);let A=o(()=>{e.cancelToken&&e.cancelToken.unsubscribe(b),e.signal&&e.signal.removeEventListener("abort",b),_.removeAllListeners()},"onFinished");(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(b),e.signal&&(e.signal.aborted?b():e.signal.addEventListener("abort",b))),i((ne,Z)=>{if(v=!0,Z){E=!0,A();return}let{data:Se}=ne;if(Se instanceof Ac.Readable||Se instanceof Ac.Duplex){let He=Ac.finished(Se,()=>{He(),A()})}else A()});let T=xf(e.baseURL,e.url,e.allowAbsoluteUrls),B=new URL(T,wr.hasBrowserEnv?wr.origin:void 0),M=B.protocol||PF[0];if(M==="data:"){if(e.maxContentLength>-1){let Z=String(e.url||T||"");if(PD(Z)>e.maxContentLength)return s(new Ze("maxContentLength size of "+e.maxContentLength+" exceeded",Ze.ERR_BAD_RESPONSE,e))}let ne;if(y!=="GET")return lo(n,s,{status:405,statusText:"method not allowed",headers:{},config:e});try{ne=BD(e.url,m==="blob",{Blob:e.env&&e.env.Blob})}catch(Z){throw Ze.from(Z,Ze.ERR_BAD_REQUEST,e)}return m==="text"?(ne=ne.toString(g),(!g||g==="utf8")&&(ne=ie.stripBOM(ne))):m==="stream"&&(ne=Ac.Readable.from(ne)),lo(n,s,{data:ne,status:200,statusText:"OK",headers:new Zr,config:e})}if(PF.indexOf(M)===-1)return s(new Ze("Unsupported protocol "+M,Ze.ERR_BAD_REQUEST,e));let I=Zr.from(e.headers).normalize();I.set("User-Agent","axios/"+wf,!1);let{onUploadProgress:H,onDownloadProgress:K}=e,q=e.maxRate,W,he;if(ie.isSpecCompliantForm(a)){let ne=I.getContentType(/boundary=([-_\w\d]{10,70})/i);a=TF(a,Z=>{I.set(Z)},{tag:`axios-${wf}-boundary`,boundary:ne&&ne[1]||void 0})}else if(ie.isFormData(a)&&ie.isFunction(a.getHeaders)){if(I.set(a.getHeaders()),!I.hasContentLength())try{let ne=await jF.promisify(a.getLength).call(a);Number.isFinite(ne)&&ne>=0&&I.setContentLength(ne)}catch{}}else if(ie.isBlob(a)||ie.isFile(a))a.size&&I.setContentType(a.type||"application/octet-stream"),I.setContentLength(a.size||0),a=Ac.Readable.from(ZS(a));else if(a&&!ie.isStream(a)){if(!Buffer.isBuffer(a))if(ie.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(ie.isString(a))a=Buffer.from(a,"utf-8");else return s(new Ze("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Ze.ERR_BAD_REQUEST,e));if(I.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return s(new Ze("Request body larger than maxBodyLength limit",Ze.ERR_BAD_REQUEST,e))}let pe=ie.toFiniteNumber(I.getContentLength());ie.isArray(q)?(W=q[0],he=q[1]):W=he=q,a&&(H||W)&&(ie.isStream(a)||(a=Ac.Readable.from(a,{objectMode:!1})),a=Ac.pipeline([a,new OD({maxRate:ie.toFiniteNumber(W)})],ie.noop),H&&a.on("progress",kF(a,Cd(pe,Jo(Nd(H),!1,3)))));let ue;if(e.auth){let ne=e.auth.username||"",Z=e.auth.password||"";ue=ne+":"+Z}if(!ue&&B.username){let ne=B.username,Z=B.password;ue=ne+":"+Z}ue&&I.delete("authorization");let Y;try{Y=yf(B.pathname+B.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(ne){let Z=new Error(ne.message);return Z.config=e,Z.url=e.url,Z.exists=!0,s(Z)}I.set("Accept-Encoding","gzip, compress, deflate"+(OF?", br":""),!1);let ve={path:Y,method:y,headers:I.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:ue,protocol:M,family:c,beforeRedirect:Qhe,beforeRedirects:{},http2Options:h};!ie.isUndefined(u)&&(ve.lookup=u),e.socketPath?ve.socketPath=e.socketPath:(ve.hostname=B.hostname.startsWith("[")?B.hostname.slice(1,-1):B.hostname,ve.port=B.port,MF(ve,e.proxy,M+"//"+B.hostname+(B.port?":"+B.port:"")+ve.path));let Oe,Je=zhe.test(ve.protocol);if(ve.agent=Je?e.httpsAgent:e.httpAgent,C?Oe=rpe:e.transport?Oe=e.transport:e.maxRedirects===0?Oe=Je?Khe:Hhe:(e.maxRedirects&&(ve.maxRedirects=e.maxRedirects),e.beforeRedirect&&(ve.beforeRedirects.config=e.beforeRedirect),Oe=Je?Whe:Xhe),e.maxBodyLength>-1?ve.maxBodyLength=e.maxBodyLength:ve.maxBodyLength=1/0,e.insecureHTTPParser&&(ve.insecureHTTPParser=e.insecureHTTPParser),w=Oe.request(ve,o(function(Z){if(w.destroyed)return;let Se=[Z],He=ie.toFiniteNumber(Z.headers["content-length"]);if(K||he){let S=new OD({maxRate:ie.toFiniteNumber(he)});K&&S.on("progress",kF(S,Cd(He,Jo(Nd(K),!0,3)))),Se.push(S)}let Le=Z,rt=Z.req||w;if(e.decompress!==!1&&Z.headers["content-encoding"])switch((y==="HEAD"||Z.statusCode===204)&&delete Z.headers["content-encoding"],(Z.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Se.push(Cc.createUnzip(RF)),delete Z.headers["content-encoding"];break;case"deflate":Se.push(new IF),Se.push(Cc.createUnzip(RF)),delete Z.headers["content-encoding"];break;case"br":OF&&(Se.push(Cc.createBrotliDecompress(Ghe)),delete Z.headers["content-encoding"])}Le=Se.length>1?Ac.pipeline(Se,ie.noop):Se[0];let N={status:Z.statusCode,statusText:Z.statusMessage,headers:new Zr(Z.headers),config:e,request:rt};if(m==="stream")N.data=Le,lo(n,s,N);else{let S=[],G=0;Le.on("data",o(function(Ee){S.push(Ee),G+=Ee.length,e.maxContentLength>-1&&G>e.maxContentLength&&(E=!0,Le.destroy(),b(new Ze("maxContentLength size of "+e.maxContentLength+" exceeded",Ze.ERR_BAD_RESPONSE,e,rt)))},"handleStreamData")),Le.on("aborted",o(function(){if(E)return;let Ee=new Ze("stream has been aborted",Ze.ERR_BAD_RESPONSE,e,rt);Le.destroy(Ee),s(Ee)},"handlerStreamAborted")),Le.on("error",o(function(Ee){w.destroyed||s(Ze.from(Ee,null,e,rt))},"handleStreamError")),Le.on("end",o(function(){try{let Ee=S.length===1?S[0]:Buffer.concat(S);m!=="arraybuffer"&&(Ee=Ee.toString(g),(!g||g==="utf8")&&(Ee=ie.stripBOM(Ee))),N.data=Ee}catch(Ee){return s(Ze.from(Ee,null,e,N.request,N))}lo(n,s,N)},"handleStreamEnd"))}_.once("abort",S=>{Le.destroyed||(Le.emit("error",S),Le.destroy())})},"handleResponse")),_.once("abort",ne=>{w.close?w.close():w.destroy(ne)}),w.on("error",o(function(Z){s(Ze.from(Z,null,e,w))},"handleRequestError")),w.on("socket",o(function(Z){Z.setKeepAlive(!0,1e3*60)},"handleRequestSocket")),e.timeout){let ne=parseInt(e.timeout,10);if(Number.isNaN(ne)){b(new Ze("error trying to parse `config.timeout` to int",Ze.ERR_BAD_OPTION_VALUE,e,w));return}w.setTimeout(ne,o(function(){if(v)return;let Se=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",He=e.transitional||bc;e.timeoutErrorMessage&&(Se=e.timeoutErrorMessage),b(new Ze(Se,He.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,w))},"handleRequestTimeout"))}else w.setTimeout(0);if(ie.isStream(a)){let ne=!1,Z=!1;a.on("end",()=>{ne=!0}),a.once("error",Se=>{Z=!0,w.destroy(Se)}),a.on("close",()=>{!ne&&!Z&&b(new di("Request stream has been aborted",e,w))}),a.pipe(w)}else a&&w.write(a),w.end()},"dispatchHttpRequest"))},"httpAdapter");var HF=wr.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,wr.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(wr.origin),wr.navigator&&/(msie|trident)/i.test(wr.navigator.userAgent)):()=>!0;var KF=wr.hasStandardBrowserEnv?{write(r,e,t,n,s,i,a){if(typeof document>"u")return;let u=[`${r}=${encodeURIComponent(e)}`];ie.isNumber(t)&&u.push(`expires=${new Date(t).toUTCString()}`),ie.isString(n)&&u.push(`path=${n}`),ie.isString(s)&&u.push(`domain=${s}`),i===!0&&u.push("secure"),ie.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(r){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var $F=o(r=>r instanceof Zr?{...r}:r,"headersToObject");function ya(r,e){e=e||{};let t={};function n(l,h,m,g){return ie.isPlainObject(l)&&ie.isPlainObject(h)?ie.merge.call({caseless:g},l,h):ie.isPlainObject(h)?ie.merge({},h):ie.isArray(h)?h.slice():h}o(n,"getMergedValue");function s(l,h,m,g){if(ie.isUndefined(h)){if(!ie.isUndefined(l))return n(void 0,l,m,g)}else return n(l,h,m,g)}o(s,"mergeDeepProperties");function i(l,h){if(!ie.isUndefined(h))return n(void 0,h)}o(i,"valueFromConfig2");function a(l,h){if(ie.isUndefined(h)){if(!ie.isUndefined(l))return n(void 0,l)}else return n(void 0,h)}o(a,"defaultToConfig2");function u(l,h,m){if(m in e)return n(l,h);if(m in r)return n(void 0,l)}o(u,"mergeDirectKeys");let c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:o((l,h,m)=>s($F(l),$F(h),m,!0),"headers")};return ie.forEach(Object.keys({...r,...e}),o(function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;let m=ie.hasOwnProp(c,h)?c[h]:s,g=m(r[h],e[h],h);ie.isUndefined(g)&&m!==u||(t[h]=g)},"computeConfigValue")),t}o(ya,"mergeConfig");var eb=o((r=>{let e=ya({},r),{data:t,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:u}=e;if(e.headers=a=Zr.from(a),e.url=yf(xf(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ie.isFormData(t)){if(wr.hasStandardBrowserEnv||wr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ie.isFunction(t.getHeaders)){let c=t.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([h,m])=>{l.includes(h.toLowerCase())&&a.set(h,m)})}}if(wr.hasStandardBrowserEnv&&(n&&ie.isFunction(n)&&(n=n(e)),n||n!==!1&&HF(e.url))){let c=s&&i&&KF.read(i);c&&a.set(s,c)}return e}),"default");var npe=typeof XMLHttpRequest<"u",GF=npe&&function(r){return new Promise(o(function(t,n){let s=eb(r),i=s.data,a=Zr.from(s.headers).normalize(),{responseType:u,onUploadProgress:c,onDownloadProgress:l}=s,h,m,g,y,v;function E(){y&&y(),v&&v(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}o(E,"done");let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function C(){if(!w)return;let b=Zr.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),T={data:!u||u==="text"||u==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:b,config:r,request:w};lo(o(function(M){t(M),E()},"_resolve"),o(function(M){n(M),E()},"_reject"),T),w=null}o(C,"onloadend"),"onloadend"in w?w.onloadend=C:w.onreadystatechange=o(function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(C)},"handleLoad"),w.onabort=o(function(){w&&(n(new Ze("Request aborted",Ze.ECONNABORTED,r,w)),w=null)},"handleAbort"),w.onerror=o(function(A){let T=A&&A.message?A.message:"Network Error",B=new Ze(T,Ze.ERR_NETWORK,r,w);B.event=A||null,n(B),w=null},"handleError"),w.ontimeout=o(function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",T=s.transitional||bc;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),n(new Ze(A,T.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,r,w)),w=null},"handleTimeout"),i===void 0&&a.setContentType(null),"setRequestHeader"in w&&ie.forEach(a.toJSON(),o(function(A,T){w.setRequestHeader(T,A)},"setRequestHeader")),ie.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),u&&u!=="json"&&(w.responseType=s.responseType),l&&([g,v]=Jo(l,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,y]=Jo(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(h=o(b=>{w&&(n(!b||b.type?new di(null,r,w):b),w.abort(),w=null)},"onCanceled"),s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));let _=Dv(s.url);if(_&&wr.protocols.indexOf(_)===-1){n(new Ze("Unsupported protocol "+_+":",Ze.ERR_BAD_REQUEST,r));return}w.send(i||null)},"dispatchXhrRequest"))};var spe=o((r,e)=>{let{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,s,i=o(function(l){if(!s){s=!0,u();let h=l instanceof Error?l:this.reason;n.abort(h instanceof Ze?h:new di(h instanceof Error?h.message:h))}},"onabort"),a=e&&setTimeout(()=>{a=null,i(new Ze(`timeout of ${e}ms exceeded`,Ze.ETIMEDOUT))},e),u=o(()=>{r&&(a&&clearTimeout(a),a=null,r.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),r=null)},"unsubscribe");r.forEach(l=>l.addEventListener("abort",i));let{signal:c}=n;return c.unsubscribe=()=>ie.asap(u),c}},"composeSignals"),XF=spe;var ipe=o(function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let n=0,s;for(;n<t;)s=n+e,yield r.slice(n,s),n=s},"streamChunk"),ape=o(async function*(r,e){for await(let t of ope(r))yield*ipe(t,e)},"readBytes"),ope=o(async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}let e=r.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},"readStream"),kD=o((r,e,t,n)=>{let s=ape(r,e),i=0,a,u=o(c=>{a||(a=!0,n&&n(c))},"_onFinish");return new ReadableStream({async pull(c){try{let{done:l,value:h}=await s.next();if(l){u(),c.close();return}let m=h.byteLength;if(t){let g=i+=m;t(g)}c.enqueue(new Uint8Array(h))}catch(l){throw u(l),l}},cancel(c){return u(c),s.return()}},{highWaterMark:2})},"trackStream");var WF=64*1024,{isFunction:tb}=ie,upe=(({Request:r,Response:e})=>({Request:r,Response:e}))(ie.global),{ReadableStream:zF,TextEncoder:JF}=ie.global,YF=o((r,...e)=>{try{return!!r(...e)}catch{return!1}},"test"),cpe=o(r=>{r=ie.merge.call({skipUndefined:!0},upe,r);let{fetch:e,Request:t,Response:n}=r,s=e?tb(e):typeof fetch=="function",i=tb(t),a=tb(n);if(!s)return!1;let u=s&&tb(zF),c=s&&(typeof JF=="function"?(v=>E=>v.encode(E))(new JF):async v=>new Uint8Array(await new t(v).arrayBuffer())),l=i&&u&&YF(()=>{let v=!1,E=new t(wr.origin,{body:new zF,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!E}),h=a&&u&&YF(()=>ie.isReadableStream(new n("").body)),m={stream:h&&(v=>v.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!m[v]&&(m[v]=(E,w)=>{let C=E&&E[v];if(C)return C.call(E);throw new Ze(`Response type '${v}' is not supported`,Ze.ERR_NOT_SUPPORT,w)})});let g=o(async v=>{if(v==null)return 0;if(ie.isBlob(v))return v.size;if(ie.isSpecCompliantForm(v))return(await new t(wr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(v)||ie.isArrayBuffer(v))return v.byteLength;if(ie.isURLSearchParams(v)&&(v=v+""),ie.isString(v))return(await c(v)).byteLength},"getBodyLength"),y=o(async(v,E)=>{let w=ie.toFiniteNumber(v.getContentLength());return w??g(E)},"resolveBodyLength");return async v=>{let{url:E,method:w,data:C,signal:_,cancelToken:b,timeout:A,onDownloadProgress:T,onUploadProgress:B,responseType:M,headers:I,withCredentials:H="same-origin",fetchOptions:K}=eb(v),q=e||fetch;M=M?(M+"").toLowerCase():"text";let W=XF([_,b&&b.toAbortSignal()],A),he=null,pe=W&&W.unsubscribe&&(()=>{W.unsubscribe()}),ue;try{if(B&&l&&w!=="get"&&w!=="head"&&(ue=await y(I,C))!==0){let Z=new t(E,{method:"POST",body:C,duplex:"half"}),Se;if(ie.isFormData(C)&&(Se=Z.headers.get("content-type"))&&I.setContentType(Se),Z.body){let[He,Le]=Cd(ue,Jo(Nd(B)));C=kD(Z.body,WF,He,Le)}}ie.isString(H)||(H=H?"include":"omit");let Y=i&&"credentials"in t.prototype,ve={...K,signal:W,method:w.toUpperCase(),headers:I.normalize().toJSON(),body:C,duplex:"half",credentials:Y?H:void 0};he=i&&new t(E,ve);let Oe=await(i?q(he,K):q(E,ve)),Je=h&&(M==="stream"||M==="response");if(h&&(T||Je&&pe)){let Z={};["status","statusText","headers"].forEach(rt=>{Z[rt]=Oe[rt]});let Se=ie.toFiniteNumber(Oe.headers.get("content-length")),[He,Le]=T&&Cd(Se,Jo(Nd(T),!0))||[];Oe=new n(kD(Oe.body,WF,He,()=>{Le&&Le(),pe&&pe()}),Z)}M=M||"text";let ne=await m[ie.findKey(m,M)||"text"](Oe,v);return!Je&&pe&&pe(),await new Promise((Z,Se)=>{lo(Z,Se,{data:ne,headers:Zr.from(Oe.headers),status:Oe.status,statusText:Oe.statusText,config:v,request:he})})}catch(Y){throw pe&&pe(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,v,he,Y&&Y.response),{cause:Y.cause||Y}):Ze.from(Y,Y&&Y.code,v,he,Y&&Y.response)}}},"factory"),lpe=new Map,LD=o(r=>{let e=r&&r.env||{},{fetch:t,Request:n,Response:s}=e,i=[n,s,t],a=i.length,u=a,c,l,h=lpe;for(;u--;)c=i[u],l=h.get(c),l===void 0&&h.set(c,l=u?new Map:cpe(e)),h=l;return l},"getFetch"),tNe=LD();var VD={http:qF,xhr:GF,fetch:{get:LD}};ie.forEach(VD,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});var QF=o(r=>`- ${r}`,"renderReason"),hpe=o(r=>ie.isFunction(r)||r===null||r===!1,"isResolvedHandle");function ppe(r,e){r=ie.isArray(r)?r:[r];let{length:t}=r,n,s,i={};for(let a=0;a<t;a++){n=r[a];let u;if(s=n,!hpe(n)&&(s=VD[(u=String(n)).toLowerCase()],s===void 0))throw new Ze(`Unknown adapter '${u}'`);if(s&&(ie.isFunction(s)||(s=s.get(e))))break;i[u||"#"+a]=s}if(!s){let a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build")),u=t?a.length>1?`since :
|