@wormhole-foundation/wormhole-connect 1.1.10-beta.2-development → 1.2.0-beta.0-development

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.
Files changed (109) hide show
  1. package/dist/assets/{ccip-Dqfq17rS.js → ccip-DLVsVRZh.js} +1 -1
  2. package/dist/assets/{evm-COfrBnc9.js → evm-D7r3Ne49.js} +4 -4
  3. package/dist/assets/{index-BG2VrfUR.js → index-5UpuI6jk.js} +1 -1
  4. package/dist/assets/index-C0ho2skw.js +2 -0
  5. package/dist/assets/{index.es-CIBX3Khy.js → index.es-wOiA40sy.js} +2 -2
  6. package/dist/assets/{solana-CFQqPT08.js → solana--aMZfCgL.js} +1 -1
  7. package/dist/main.js +63 -63
  8. package/dist/src/hooks/useFetchSupportedRoutes.d.ts.map +1 -1
  9. package/dist/src/store/wallet.d.ts.map +1 -1
  10. package/dist/src/utils/address.d.ts +3 -0
  11. package/dist/src/utils/address.d.ts.map +1 -0
  12. package/dist/src/utils/transferValidation.d.ts +1 -0
  13. package/dist/src/utils/transferValidation.d.ts.map +1 -1
  14. package/dist/src/utils/wallet/ReadOnlyWallet.d.ts +28 -0
  15. package/dist/src/utils/wallet/ReadOnlyWallet.d.ts.map +1 -0
  16. package/dist/src/utils/wallet/index.d.ts.map +1 -1
  17. package/dist/src/views/v2/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  18. package/dist/src/views/v2/Bridge/WalletConnector/Sidebar.d.ts +1 -0
  19. package/dist/src/views/v2/Bridge/WalletConnector/Sidebar.d.ts.map +1 -1
  20. package/dist/src/views/v2/Bridge/WalletConnector/index.d.ts.map +1 -1
  21. package/lib/{aptos-CRNTc6L7.mjs → aptos-2J8A-FZO.mjs} +4 -4
  22. package/lib/{aptos-BFPHYYwB.mjs → aptos-BZuWMk3D.mjs} +2 -2
  23. package/lib/{aptos-C9yNNJ88.js → aptos-DL1Hgg15.js} +1 -1
  24. package/lib/{aptos-mogoJyiZ.js → aptos-DcCwQMe7.js} +2 -2
  25. package/lib/{base64-DXRmtf1k.mjs → base64-BdSgqiJl.mjs} +1 -1
  26. package/lib/{base64-CeUYKPyV.js → base64-Bit1A1if.js} +1 -1
  27. package/lib/{ccip-CA4MuynE.js → ccip-CMkUITDS.js} +1 -1
  28. package/lib/{ccip-My4RxVKs.mjs → ccip-Cw8-T0j-.mjs} +1 -1
  29. package/lib/{chunk-U2PRGW4O-x53BcOhQ.mjs → chunk-U2PRGW4O-CMIP41vB.mjs} +3 -3
  30. package/lib/{chunk-U2PRGW4O-BxqdS25n.js → chunk-U2PRGW4O-CuEEOygo.js} +1 -1
  31. package/lib/{events-DC6a2-Sg.js → events-Bs7CEKn9.js} +1 -1
  32. package/lib/{events-igbCMH1b.mjs → events-CpDIhB3C.mjs} +1 -1
  33. package/lib/{evm-2WaZZC2S.mjs → evm-1S_EvV1A.mjs} +7 -7
  34. package/lib/{evm-COF7KuEu.js → evm-CK7UNFtq.js} +1 -1
  35. package/lib/{evm-Cd33XUKJ.js → evm-D5NO24dh.js} +4 -4
  36. package/lib/{evm-CFNwIPA0.mjs → evm-DfX7cWQI.mjs} +5 -5
  37. package/lib/{index-DQAfIvK1.js → index-7Jgokx3S.js} +1 -1
  38. package/lib/{index-DEsBjkVZ.js → index-7_XTrYay.js} +1 -1
  39. package/lib/{index-DDbcGp0J.js → index-8nlb2LGX.js} +1 -1
  40. package/lib/{index-DR4zyYuY.mjs → index-B-UHVwW1.mjs} +2 -2
  41. package/lib/{index-D1gtqEYW.js → index-B-ZKCWaX.js} +1 -1
  42. package/lib/{index-alMojxTW.js → index-B96enquk.js} +1 -1
  43. package/lib/{index-DZQrBKFf.mjs → index-BDbrAqgW.mjs} +1 -1
  44. package/lib/{index-C82lB7cu.mjs → index-BNn38QYa.mjs} +2 -2
  45. package/lib/{index-B2veSSw2.mjs → index-BPtbGGHy.mjs} +3 -3
  46. package/lib/{index-ClvwatsF.js → index-BXPqhxjc.js} +1 -1
  47. package/lib/{index-B8tlz0ba.js → index-BfBNSTY8.js} +1 -1
  48. package/lib/{index-DHYRga2l.mjs → index-Bm1zXhFz.mjs} +1 -1
  49. package/lib/{index-B5oXso3x.js → index-Bq2G38s-.js} +1 -1
  50. package/lib/{index-BP2F5M_E.mjs → index-BzHjroj_.mjs} +2 -2
  51. package/lib/{index-CAi9E-SF.js → index-C42d1PS9.js} +1 -1
  52. package/lib/{index-BXwIpgqq.mjs → index-C6iaLaJq.mjs} +2477 -2276
  53. package/lib/{index-DqPUvI9A.mjs → index-C8__BuqK.mjs} +1 -1
  54. package/lib/{index-CFm8N5Xi.js → index-CXWWVJUC.js} +1 -1
  55. package/lib/{index-BmIsZNct.mjs → index-CbJWXG7l.mjs} +2 -2
  56. package/lib/index-CqSLXgKG.js +1 -0
  57. package/lib/{index--Rsk5p9T.mjs → index-CqfWDHV0.mjs} +2 -2
  58. package/lib/{index-D8xxFQ-B.mjs → index-Cqiy61ub.mjs} +1 -1
  59. package/lib/{index-DbQlC3Va.js → index-CwNerYWM.js} +1 -1
  60. package/lib/{index-cnw9ZOFM.js → index-D2Bw_LRJ.js} +1 -1
  61. package/lib/{index-BrPlrkIe.mjs → index-D5xkWCZ3.mjs} +2 -2
  62. package/lib/{index-C8EQUCCc.js → index-DKZeU-Xf.js} +1 -1
  63. package/lib/{index-dX0jT1Vo.mjs → index-D_BTWvYp.mjs} +2 -2
  64. package/lib/{index-CEHAu1eB.mjs → index-DbiW1-3L.mjs} +1 -1
  65. package/lib/{index-D3Nz3uR3.mjs → index-DhxGcoTC.mjs} +5 -5
  66. package/lib/{index-SNBxP3O0.mjs → index-Q-iWWETw.mjs} +2 -2
  67. package/lib/{index-usBR_325.js → index-S1YybQMR.js} +1 -1
  68. package/lib/{index-CC-5dTwe.js → index-TVlE0v9D.js} +1 -1
  69. package/lib/{index-BQsz7fau.js → index-hIJ0h_GZ.js} +20 -20
  70. package/lib/{index-UPOsoS-Q.mjs → index-hk3iRhUd.mjs} +4 -4
  71. package/lib/{index-Dr_uf4In.mjs → index-o0AEhklr.mjs} +2 -2
  72. package/lib/{index-CFuBVXxG.js → index-v3UQ6KEC.js} +1 -1
  73. package/lib/{index-CHL8DHIi.js → index-vWXFBAHR.js} +1 -1
  74. package/lib/{index-o6b-lvp4.mjs → index-wW7H3ciQ.mjs} +2 -2
  75. package/lib/{index.es-DMeEHMrx.mjs → index.es-BnuWmVuS.mjs} +5 -5
  76. package/lib/{index.es-C5Ka2DZ5.js → index.es-DN28d137.js} +2 -2
  77. package/lib/index.js +1 -1
  78. package/lib/index.mjs +1 -1
  79. package/lib/{signer-CPFRoEH8.mjs → signer-D5i4Nnyi.mjs} +1 -1
  80. package/lib/{signer-DbKqQsTf.js → signer-YETmMcF8.js} +1 -1
  81. package/lib/solana-B9GQ_Umb.js +1 -0
  82. package/lib/{solana-Cxrd1nin.js → solana-C7qBFXj3.js} +2 -2
  83. package/lib/{solana-DCTUiTS0.mjs → solana-DtBRFbad.mjs} +12 -5
  84. package/lib/{solana-DQAOwt4u.mjs → solana-tevnHUxv.mjs} +5 -5
  85. package/lib/{solanaEmbed.esm-BzxDdYYd.js → solanaEmbed.esm-BER_HE9G.js} +44 -44
  86. package/lib/{solanaEmbed.esm-Bed2Xiqd.mjs → solanaEmbed.esm-Bb5iLp3o.mjs} +4533 -4507
  87. package/lib/src/hooks/useFetchSupportedRoutes.d.ts.map +1 -1
  88. package/lib/src/store/wallet.d.ts.map +1 -1
  89. package/lib/src/utils/address.d.ts +3 -0
  90. package/lib/src/utils/address.d.ts.map +1 -0
  91. package/lib/src/utils/transferValidation.d.ts +1 -0
  92. package/lib/src/utils/transferValidation.d.ts.map +1 -1
  93. package/lib/src/utils/wallet/ReadOnlyWallet.d.ts +28 -0
  94. package/lib/src/utils/wallet/ReadOnlyWallet.d.ts.map +1 -0
  95. package/lib/src/utils/wallet/index.d.ts.map +1 -1
  96. package/lib/src/views/v2/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  97. package/lib/src/views/v2/Bridge/WalletConnector/Sidebar.d.ts +1 -0
  98. package/lib/src/views/v2/Bridge/WalletConnector/Sidebar.d.ts.map +1 -1
  99. package/lib/src/views/v2/Bridge/WalletConnector/index.d.ts.map +1 -1
  100. package/lib/{sui-CQawqcPv.mjs → sui-1QFb30Ta.mjs} +1 -1
  101. package/lib/{sui-CIzCa33J.mjs → sui-DAyysPh2.mjs} +5 -5
  102. package/lib/{sui-DPsMt4dZ.js → sui-De3Fl_fo.js} +1 -1
  103. package/lib/{sui-9hCEyW23.js → sui-c1d9xieM.js} +2 -2
  104. package/lib/{utf8-EAKedFib.js → utf8-B-nUZvyF.js} +1 -1
  105. package/lib/{utf8-Dcu-adVp.mjs → utf8-BxTDE5Vo.mjs} +1 -1
  106. package/package.json +1 -1
  107. package/dist/assets/index-BG_BL4Te.js +0 -2
  108. package/lib/index-c0xqh0gn.js +0 -1
  109. package/lib/solana-CVT_Som1.js +0 -1
@@ -1,36 +1,36 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./index-BQsz7fau.js"),UO=require("./events-DC6a2-Sg.js");var $d={exports:{}};(function(e,t){t=e.exports=ee.require_stream_readable(),t.Stream=t,t.Readable=t,t.Writable=ee.require_stream_writable(),t.Duplex=ee.require_stream_duplex(),t.Transform=ee.require_stream_transform(),t.PassThrough=ee.require_stream_passthrough(),t.finished=ee.requireEndOfStream(),t.pipeline=ee.requirePipeline()})($d,$d.exports);var Do=$d.exports,Ub={};const yy=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Ub.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],_=e[9]^e[19]^e[29]^e[39]^e[49];let b=h^(a<<1|s>>>31),y=_^(s<<1|a>>>31);const T=e[0]^b,k=e[1]^y,E=e[10]^b,I=e[11]^y,v=e[20]^b,w=e[21]^y,S=e[30]^b,H=e[31]^y,Q=e[40]^b,ie=e[41]^y;b=r^(f<<1|d>>>31),y=i^(d<<1|f>>>31);const he=e[2]^b,le=e[3]^y,Ee=e[12]^b,ve=e[13]^y,m=e[22]^b,O=e[23]^y,P=e[32]^b,Z=e[33]^y,ae=e[42]^b,X=e[43]^y;b=a^(c<<1|l>>>31),y=s^(l<<1|c>>>31);const ne=e[4]^b,F=e[5]^y,x=e[14]^b,Y=e[15]^y,B=e[24]^b,j=e[25]^y,$=e[34]^b,U=e[35]^y,G=e[44]^b,de=e[45]^y;b=f^(h<<1|_>>>31),y=d^(_<<1|h>>>31);const oe=e[6]^b,ue=e[7]^y,Se=e[16]^b,Be=e[17]^y,Me=e[26]^b,z=e[27]^y,J=e[36]^b,ge=e[37]^y,Ne=e[46]^b,Te=e[47]^y;b=c^(r<<1|i>>>31),y=l^(i<<1|r>>>31);const je=e[8]^b,me=e[9]^y,Ye=e[18]^b,et=e[19]^y,re=e[28]^b,xe=e[29]^y,M=e[38]^b,ce=e[39]^y,De=e[48]^b,Ve=e[49]^y,Ue=T,ke=k,Xe=I<<4|E>>>28,D=E<<4|I>>>28,Re=v<<3|w>>>29,$e=w<<3|v>>>29,qe=H<<9|S>>>23,C=S<<9|H>>>23,K=Q<<18|ie>>>14,A=ie<<18|Q>>>14,Oe=he<<1|le>>>31,Ke=le<<1|he>>>31,p=ve<<12|Ee>>>20,_e=Ee<<12|ve>>>20,Ie=m<<10|O>>>22,L=O<<10|m>>>22,fe=Z<<13|P>>>19,Ae=P<<13|Z>>>19,Je=ae<<2|X>>>30,N=X<<2|ae>>>30,W=F<<30|ne>>>2,Ce=ne<<30|F>>>2,ze=x<<6|Y>>>26,Ge=Y<<6|x>>>26,rt=j<<11|B>>>21,ot=B<<11|j>>>21,bt=$<<15|U>>>17,ht=U<<15|$>>>17,ar=de<<29|G>>>3,ur=G<<29|de>>>3,wt=oe<<28|ue>>>4,Dt=ue<<28|oe>>>4,St=Be<<23|Se>>>9,Tt=Se<<23|Be>>>9,qt=Me<<25|z>>>7,tr=z<<25|Me>>>7,Gt=J<<21|ge>>>11,Vt=ge<<21|J>>>11,$n=Te<<24|Ne>>>8,yn=Ne<<24|Te>>>8,xn=je<<27|me>>>5,_n=me<<27|je>>>5,bn=Ye<<20|et>>>12,Wr=et<<20|Ye>>>12,Ti=xe<<7|re>>>25,mn=re<<7|xe>>>25,ri=M<<8|ce>>>24,ni=ce<<8|M>>>24,ii=De<<14|Ve>>>18,oi=Ve<<14|De>>>18;e[0]=Ue^~p&rt,e[1]=ke^~_e&ot,e[10]=wt^~bn&Re,e[11]=Dt^~Wr&$e,e[20]=Oe^~ze&qt,e[21]=Ke^~Ge&tr,e[30]=xn^~Xe&Ie,e[31]=_n^~D&L,e[40]=W^~St&Ti,e[41]=Ce^~Tt&mn,e[2]=p^~rt&Gt,e[3]=_e^~ot&Vt,e[12]=bn^~Re&fe,e[13]=Wr^~$e&Ae,e[22]=ze^~qt&ri,e[23]=Ge^~tr&ni,e[32]=Xe^~Ie&bt,e[33]=D^~L&ht,e[42]=St^~Ti&qe,e[43]=Tt^~mn&C,e[4]=rt^~Gt&ii,e[5]=ot^~Vt&oi,e[14]=Re^~fe&ar,e[15]=$e^~Ae&ur,e[24]=qt^~ri&K,e[25]=tr^~ni&A,e[34]=Ie^~bt&$n,e[35]=L^~ht&yn,e[44]=Ti^~qe&Je,e[45]=mn^~C&N,e[6]=Gt^~ii&Ue,e[7]=Vt^~oi&ke,e[16]=fe^~ar&wt,e[17]=Ae^~ur&Dt,e[26]=ri^~K&Oe,e[27]=ni^~A&Ke,e[36]=bt^~$n&xn,e[37]=ht^~yn&_n,e[46]=qe^~Je&W,e[47]=C^~N&Ce,e[8]=ii^~Ue&p,e[9]=oi^~ke&_e,e[18]=ar^~wt&bn,e[19]=ur^~Dt&Wr,e[28]=K^~Oe&ze,e[29]=A^~Ke&Ge,e[38]=$n^~xn&Xe,e[39]=yn^~_n&D,e[48]=Je^~W&St,e[49]=N^~Ce&Tt,e[0]^=yy[t*2],e[1]^=yy[t*2+1]}};const mf=Ub;function Ba(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Ba.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Ba.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(mf.p1600(this.state),this.count=0)};Ba.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),e&128&&this.count===this.blockSize-1&&mf.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),mf.p1600(this.state),this.count=0,this.squeezing=!0};Ba.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=ee.dist.Buffer.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(mf.p1600(this.state),this.count=0);return t};Ba.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var qO=HO;function HO(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const WO=ee.getDefaultExportFromCjs(qO);var xd={exports:{}},xc,_y;function zO(){if(_y)return xc;_y=1;var e=1e3,t=e*60,r=t*60,i=r*24,a=i*7,s=i*365.25;xc=function(h,_){_=_||{};var b=typeof h;if(b==="string"&&h.length>0)return f(h);if(b==="number"&&isFinite(h))return _.long?c(h):d(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function f(h){if(h=String(h),!(h.length>100)){var _=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(_){var b=parseFloat(_[1]),y=(_[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return b*s;case"weeks":case"week":case"w":return b*a;case"days":case"day":case"d":return b*i;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*t;case"seconds":case"second":case"secs":case"sec":case"s":return b*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function d(h){var _=Math.abs(h);return _>=i?Math.round(h/i)+"d":_>=r?Math.round(h/r)+"h":_>=t?Math.round(h/t)+"m":_>=e?Math.round(h/e)+"s":h+"ms"}function c(h){var _=Math.abs(h);return _>=i?l(h,_,i,"day"):_>=r?l(h,_,r,"hour"):_>=t?l(h,_,t,"minute"):_>=e?l(h,_,e,"second"):h+" ms"}function l(h,_,b,y){var T=_>=b*1.5;return Math.round(h/b)+" "+y+(T?"s":"")}return xc}function GO(e){r.debug=r,r.default=r,r.coerce=c,r.disable=f,r.enable=a,r.enabled=d,r.humanize=zO(),r.destroy=l,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let _=0;for(let b=0;b<h.length;b++)_=(_<<5)-_+h.charCodeAt(b),_|=0;return r.colors[Math.abs(_)%r.colors.length]}r.selectColor=t;function r(h){let _,b=null,y,T;function k(...E){if(!k.enabled)return;const I=k,v=Number(new Date),w=v-(_||v);I.diff=w,I.prev=_,I.curr=v,_=v,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let S=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(Q,ie)=>{if(Q==="%%")return"%";S++;const he=r.formatters[ie];if(typeof he=="function"){const le=E[S];Q=he.call(I,le),E.splice(S,1),S--}return Q}),r.formatArgs.call(I,E),(I.log||r.log).apply(I,E)}return k.namespace=h,k.useColors=r.useColors(),k.color=r.selectColor(h),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(y!==r.namespaces&&(y=r.namespaces,T=r.enabled(h)),T),set:E=>{b=E}}),typeof r.init=="function"&&r.init(k),k}function i(h,_){const b=r(this.namespace+(typeof _>"u"?":":_)+h);return b.log=this.log,b}function a(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];const _=(typeof h=="string"?h:"").trim().replace(" ",",").split(",").filter(Boolean);for(const b of _)b[0]==="-"?r.skips.push(b.slice(1)):r.names.push(b)}function s(h,_){let b=0,y=0,T=-1,k=0;for(;b<h.length;)if(y<_.length&&(_[y]===h[b]||_[y]==="*"))_[y]==="*"?(T=y,k=b,y++):(b++,y++);else if(T!==-1)y=T+1,k++,b=k;else return!1;for(;y<_.length&&_[y]==="*";)y++;return y===_.length}function f(){const h=[...r.names,...r.skips.map(_=>"-"+_)].join(",");return r.enable(""),h}function d(h){for(const _ of r.skips)if(s(h,_))return!1;for(const _ of r.names)if(s(h,_))return!0;return!1}function c(h){return h instanceof Error?h.stack||h.message:h}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var VO=GO;(function(e,t){t.formatArgs=i,t.save=a,t.load=s,t.useColors=r,t.storage=f(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let h=0,_=0;c[0].replace(/%[a-zA-Z%]/g,b=>{b!=="%%"&&(h++,b==="%c"&&(_=h))}),c.splice(_,0,l)}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof ee.dist.process<"u"&&"env"in ee.dist.process&&(c=ee.dist.process.env.DEBUG),c}function f(){try{return localStorage}catch{}}e.exports=VO(t);const{formatters:d}=e.exports;d.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(xd,xd.exports);var ZO=xd.exports,hn={},Ei={},uh=Oa;Oa.default=Oa;Oa.stable=Wb;Oa.stableStringify=Wb;var vf="[...]",qb="[Circular]",Wi=[],qi=[];function Hb(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Oa(e,t,r,i){typeof i>"u"&&(i=Hb()),Dd(e,"",0,[],void 0,0,i);var a;try{qi.length===0?a=JSON.stringify(e,t,r):a=JSON.stringify(e,zb(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var s=Wi.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return a}function Io(e,t,r,i){var a=Object.getOwnPropertyDescriptor(i,r);a.get!==void 0?a.configurable?(Object.defineProperty(i,r,{value:e}),Wi.push([i,r,t,a])):qi.push([t,r,e]):(i[r]=e,Wi.push([i,r,t]))}function Dd(e,t,r,i,a,s,f){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(qb,e,t,a);return}if(typeof f.depthLimit<"u"&&s>f.depthLimit){Io(vf,e,t,a);return}if(typeof f.edgesLimit<"u"&&r+1>f.edgesLimit){Io(vf,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)Dd(e[d],d,d,i,e,s,f);else{var c=Object.keys(e);for(d=0;d<c.length;d++){var l=c[d];Dd(e[l],l,d,i,e,s,f)}}i.pop()}}function KO(e,t){return e<t?-1:e>t?1:0}function Wb(e,t,r,i){typeof i>"u"&&(i=Hb());var a=Md(e,"",0,[],void 0,0,i)||e,s;try{qi.length===0?s=JSON.stringify(a,t,r):s=JSON.stringify(a,zb(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var f=Wi.pop();f.length===4?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return s}function Md(e,t,r,i,a,s,f){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(qb,e,t,a);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof f.depthLimit<"u"&&s>f.depthLimit){Io(vf,e,t,a);return}if(typeof f.edgesLimit<"u"&&r+1>f.edgesLimit){Io(vf,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)Md(e[d],d,d,i,e,s,f);else{var c={},l=Object.keys(e).sort(KO);for(d=0;d<l.length;d++){var h=l[d];Md(e[h],h,d,i,e,s,f),c[h]=e[h]}if(typeof a<"u")Wi.push([a,t,e]),a[t]=c;else return c}i.pop()}}function zb(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(qi.length>0)for(var i=0;i<qi.length;i++){var a=qi[i];if(a[1]===t&&a[0]===r){r=a[2],qi.splice(i,1);break}}return e.call(this,t,r)}}const JO=ee.getDefaultExportFromCjs(uh);Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EthereumProviderError=Ei.EthereumRpcError=void 0;const XO=uh;class Gb extends Error{constructor(t,r,i){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,i!==void 0&&(this.data=i)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return XO.default(this.serialize(),eT,2)}}Ei.EthereumRpcError=Gb;let YO=class extends Gb{constructor(t,r,i){if(!QO(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,i)}};Ei.EthereumProviderError=YO;function QO(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function eT(e,t){if(t!=="[Circular]")return t}var ch={},Si={};Object.defineProperty(Si,"__esModule",{value:!0});Si.errorValues=Si.errorCodes=void 0;Si.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Si.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Si,r=Ei,i=t.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",s={code:i,message:f(i)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function f(b,y=a){if(Number.isInteger(b)){const T=b.toString();if(_(t.errorValues,T))return t.errorValues[T].message;if(l(b))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return y}e.getMessageFromCode=f;function d(b){if(!Number.isInteger(b))return!1;const y=b.toString();return!!(t.errorValues[y]||l(b))}e.isValidCode=d;function c(b,{fallbackError:y=s,shouldIncludeStack:T=!1}={}){var k,E;if(!y||!Number.isInteger(y.code)||typeof y.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(b instanceof r.EthereumRpcError)return b.serialize();const I={};if(b&&typeof b=="object"&&!Array.isArray(b)&&_(b,"code")&&d(b.code)){const w=b;I.code=w.code,w.message&&typeof w.message=="string"?(I.message=w.message,_(w,"data")&&(I.data=w.data)):(I.message=f(I.code),I.data={originalError:h(b)})}else{I.code=y.code;const w=(k=b)===null||k===void 0?void 0:k.message;I.message=w&&typeof w=="string"?w:y.message,I.data={originalError:h(b)}}const v=(E=b)===null||E===void 0?void 0:E.stack;return T&&b&&v&&typeof v=="string"&&(I.stack=v),I}e.serializeError=c;function l(b){return b>=-32099&&b<=-32e3}function h(b){return b&&typeof b=="object"&&!Array.isArray(b)?Object.assign({},b):b}function _(b,y){return Object.prototype.hasOwnProperty.call(b,y)}})(ch);var Nf={};Object.defineProperty(Nf,"__esModule",{value:!0});Nf.ethErrors=void 0;const lh=Ei,Vb=ch,_r=Si;Nf.ethErrors={rpc:{parse:e=>Yr(_r.errorCodes.rpc.parse,e),invalidRequest:e=>Yr(_r.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Yr(_r.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Yr(_r.errorCodes.rpc.methodNotFound,e),internal:e=>Yr(_r.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Yr(t,e)},invalidInput:e=>Yr(_r.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Yr(_r.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Yr(_r.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Yr(_r.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Yr(_r.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Yr(_r.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ha(_r.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ha(_r.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ha(_r.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ha(_r.errorCodes.provider.disconnected,e),chainDisconnected:e=>ha(_r.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new lh.EthereumProviderError(t,r,i)}}};function Yr(e,t){const[r,i]=Zb(t);return new lh.EthereumRpcError(e,r||Vb.getMessageFromCode(e),i)}function ha(e,t){const[r,i]=Zb(t);return new lh.EthereumProviderError(e,r||Vb.getMessageFromCode(e),i)}function Zb(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Ei;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=ch;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const i=Nf;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return i.ethErrors}});const a=Si;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(hn);var Dc,by;function tT(){if(by)return Dc;by=1,Dc=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},i=0;i<arguments.length;i++){var a=arguments[i];for(var s in a)e.call(a,s)&&(r[s]=a[s])}return r}return Dc}var Mc={exports:{}},Fc={},jc={},kc={},Uc,my;function dh(){return my||(my=1,Uc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var f=Object.getOwnPropertySymbols(t);if(f.length!==1||f[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,r);if(d.value!==a||d.enumerable!==!0)return!1}return!0}),Uc}var qc,vy;function hh(){if(vy)return qc;vy=1;var e=dh();return qc=function(){return e()&&!!Symbol.toStringTag},qc}var Hc,wy;function Kb(){return wy||(wy=1,Hc=Object),Hc}var Wc,Ey;function rT(){return Ey||(Ey=1,Wc=Error),Wc}var zc,Sy;function nT(){return Sy||(Sy=1,zc=EvalError),zc}var Gc,Ay;function iT(){return Ay||(Ay=1,Gc=RangeError),Gc}var Vc,Ry;function oT(){return Ry||(Ry=1,Vc=ReferenceError),Vc}var Zc,Iy;function Jb(){return Iy||(Iy=1,Zc=SyntaxError),Zc}var Ri=TypeError,Kc,Oy;function aT(){return Oy||(Oy=1,Kc=URIError),Kc}var Jc,Ty;function sT(){return Ty||(Ty=1,Jc=Math.abs),Jc}var Xc,Py;function fT(){return Py||(Py=1,Xc=Math.floor),Xc}var Yc,Cy;function uT(){return Cy||(Cy=1,Yc=Math.max),Yc}var Qc,Ly;function cT(){return Ly||(Ly=1,Qc=Math.min),Qc}var el,Ny;function lT(){return Ny||(Ny=1,el=Math.pow),el}var tl,By;function dT(){return By||(By=1,tl=Object.getOwnPropertyDescriptor),tl}var rl,$y;function $a(){if($y)return rl;$y=1;var e=dT();if(e)try{e([],"length")}catch{e=null}return rl=e,rl}var hf=Object.defineProperty||!1;if(hf)try{hf({},"a",{value:1})}catch{hf=!1}var Bf=hf,nl,xy;function hT(){if(xy)return nl;xy=1;var e=typeof Symbol<"u"&&Symbol,t=dh();return nl=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},nl}var pT="Function.prototype.bind called on incompatible ",gT=Object.prototype.toString,yT=Math.max,_T="[object Function]",Dy=function(t,r){for(var i=[],a=0;a<t.length;a+=1)i[a]=t[a];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},bT=function(t,r){for(var i=[],a=r,s=0;a<t.length;a+=1,s+=1)i[s]=t[a];return i},mT=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r},vT=function(t){var r=this;if(typeof r!="function"||gT.apply(r)!==_T)throw new TypeError(pT+r);for(var i=bT(arguments,1),a,s=function(){if(this instanceof a){var h=r.apply(this,Dy(i,arguments));return Object(h)===h?h:this}return r.apply(t,Dy(i,arguments))},f=yT(0,r.length-i.length),d=[],c=0;c<f;c++)d[c]="$"+c;if(a=Function("binder","return function ("+mT(d,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},wT=vT,xa=Function.prototype.bind||wT,ph=Function.prototype.call,gh=Function.prototype.apply,ET=typeof Reflect<"u"&&Reflect&&Reflect.apply,ST=xa,AT=gh,RT=ph,IT=ET,Xb=IT||ST.call(RT,AT),OT=xa,TT=Ri,PT=ph,CT=Xb,yh=function(t){if(t.length<1||typeof t[0]!="function")throw new TT("a function is required");return CT(OT,PT,t)},il,My;function LT(){if(My)return il;My=1;var e=yh,t=$a(),r;try{r=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return il=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(d){return s(d==null?d:a(d))}:!1,il}var ol,Fy;function NT(){if(Fy)return ol;Fy=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=xa;return ol=r.call(e,t),ol}var al,jy;function Da(){if(jy)return al;jy=1;var e,t=Kb(),r=rT(),i=nT(),a=iT(),s=oT(),f=Jb(),d=Ri,c=aT(),l=sT(),h=fT(),_=uT(),b=cT(),y=lT(),T=Function,k=function(G){try{return T('"use strict"; return ('+G+").constructor;")()}catch{}},E=$a(),I=Bf,v=function(){throw new d},w=E?function(){try{return arguments.callee,v}catch{try{return E(arguments,"callee").get}catch{return v}}}():v,S=hT()(),H=LT(),Q=typeof Reflect=="function"&&Reflect.getPrototypeOf||t.getPrototypeOf||H,ie=gh,he=ph,le={},Ee=typeof Uint8Array>"u"||!Q?e:Q(Uint8Array),ve={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&Q?Q([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&Q?Q(Q([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!Q?e:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!Q?e:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&Q?Q(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":f,"%ThrowTypeError%":w,"%TypedArray%":Ee,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":he,"%Function.prototype.apply%":ie,"%Object.defineProperty%":I,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":_,"%Math.min%":b,"%Math.pow%":y};if(Q)try{null.error}catch(G){var m=Q(Q(G));ve["%Error.prototype%"]=m}var O=function G(de){var oe;if(de==="%AsyncFunction%")oe=k("async function () {}");else if(de==="%GeneratorFunction%")oe=k("function* () {}");else if(de==="%AsyncGeneratorFunction%")oe=k("async function* () {}");else if(de==="%AsyncGenerator%"){var ue=G("%AsyncGeneratorFunction%");ue&&(oe=ue.prototype)}else if(de==="%AsyncIteratorPrototype%"){var Se=G("%AsyncGenerator%");Se&&Q&&(oe=Q(Se.prototype))}return ve[de]=oe,oe},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Z=xa,ae=NT(),X=Z.call(he,Array.prototype.concat),ne=Z.call(ie,Array.prototype.splice),F=Z.call(he,String.prototype.replace),x=Z.call(he,String.prototype.slice),Y=Z.call(he,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,$=function(de){var oe=x(de,0,1),ue=x(de,-1);if(oe==="%"&&ue!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&oe!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var Se=[];return F(de,B,function(Be,Me,z,J){Se[Se.length]=z?F(J,j,"$1"):Me||Be}),Se},U=function(de,oe){var ue=de,Se;if(ae(P,ue)&&(Se=P[ue],ue="%"+Se[0]+"%"),ae(ve,ue)){var Be=ve[ue];if(Be===le&&(Be=O(ue)),typeof Be>"u"&&!oe)throw new d("intrinsic "+de+" exists, but is not available. Please file an issue!");return{alias:Se,name:ue,value:Be}}throw new f("intrinsic "+de+" does not exist!")};return al=function(de,oe){if(typeof de!="string"||de.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof oe!="boolean")throw new d('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,de)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ue=$(de),Se=ue.length>0?ue[0]:"",Be=U("%"+Se+"%",oe),Me=Be.name,z=Be.value,J=!1,ge=Be.alias;ge&&(Se=ge[0],ne(ue,X([0,1],ge)));for(var Ne=1,Te=!0;Ne<ue.length;Ne+=1){var je=ue[Ne],me=x(je,0,1),Ye=x(je,-1);if((me==='"'||me==="'"||me==="`"||Ye==='"'||Ye==="'"||Ye==="`")&&me!==Ye)throw new f("property names with quotes must have matching quotes");if((je==="constructor"||!Te)&&(J=!0),Se+="."+je,Me="%"+Se+"%",ae(ve,Me))z=ve[Me];else if(z!=null){if(!(je in z)){if(!oe)throw new d("base intrinsic for "+de+" exists, but the property is not available.");return}if(E&&Ne+1>=ue.length){var et=E(z,je);Te=!!et,Te&&"get"in et&&!("originalValue"in et.get)?z=et.get:z=z[je]}else Te=ae(z,je),z=z[je];Te&&!J&&(ve[Me]=z)}}return z},al}var Yb=Da(),Qb=yh,BT=Qb([Yb("%String.prototype.indexOf%")]),Ma=function(t,r){var i=Yb(t,!!r);return typeof i=="function"&&BT(t,".prototype.")>-1?Qb([i]):i},sl,ky;function $T(){if(ky)return sl;ky=1;var e=hh()(),t=Ma,r=t("Object.prototype.toString"),i=function(d){return e&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:r(d)==="[object Arguments]"},a=function(d){return i(d)?!0:d!==null&&typeof d=="object"&&"length"in d&&typeof d.length=="number"&&d.length>=0&&r(d)!=="[object Array]"&&"callee"in d&&r(d.callee)==="[object Function]"},s=function(){return i(arguments)}();return i.isLegacyArguments=a,sl=s?i:a,sl}var fl,Uy;function xT(){if(Uy)return fl;Uy=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,i=hh()(),a=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},f;return fl=function(c){if(typeof c!="function")return!1;if(r.test(t.call(c)))return!0;if(!i){var l=e.call(c);return l==="[object GeneratorFunction]"}if(!a)return!1;if(typeof f>"u"){var h=s();f=h?a(h):!1}return a(c)===f},fl}var ul,qy;function DT(){if(qy)return ul;qy=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(v){v!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(w){try{var S=e.call(w);return a.test(S)}catch{return!1}},f=function(w){try{return s(w)?!1:(e.call(w),!0)}catch{return!1}},d=Object.prototype.toString,c="[object Object]",l="[object Function]",h="[object GeneratorFunction]",_="[object HTMLAllCollection]",b="[object HTML document.all class]",y="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var I=document.all;d.call(I)===d.call(document.all)&&(E=function(w){if((k||!w)&&(typeof w>"u"||typeof w=="object"))try{var S=d.call(w);return(S===_||S===b||S===y||S===c)&&w("")==null}catch{}return!1})}return ul=t?function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{t(w,null,r)}catch(S){if(S!==i)return!1}return!s(w)&&f(w)}:function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(T)return f(w);if(s(w))return!1;var S=d.call(w);return S!==l&&S!==h&&!/^\[object HTML/.test(S)?!1:f(w)},ul}var cl,Hy;function MT(){if(Hy)return cl;Hy=1;var e=DT(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(c,l,h){for(var _=0,b=c.length;_<b;_++)r.call(c,_)&&(h==null?l(c[_],_,c):l.call(h,c[_],_,c))},a=function(c,l,h){for(var _=0,b=c.length;_<b;_++)h==null?l(c.charAt(_),_,c):l.call(h,c.charAt(_),_,c)},s=function(c,l,h){for(var _ in c)r.call(c,_)&&(h==null?l(c[_],_,c):l.call(h,c[_],_,c))},f=function(c,l,h){if(!e(l))throw new TypeError("iterator must be a function");var _;arguments.length>=3&&(_=h),t.call(c)==="[object Array]"?i(c,l,_):typeof c=="string"?a(c,l,_):s(c,l,_)};return cl=f,cl}var ll,Wy;function FT(){return Wy||(Wy=1,ll=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),ll}var dl,zy;function jT(){if(zy)return dl;zy=1;var e=FT(),t=typeof globalThis>"u"?ee.commonjsGlobal:globalThis;return dl=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},dl}var em={exports:{}},Gy=Bf,kT=Jb(),vo=Ri,Vy=$a(),tm=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new vo("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new vo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new vo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new vo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new vo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new vo("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,c=!!Vy&&Vy(t,r);if(Gy)Gy(t,r,{configurable:f===null&&c?c.configurable:!f,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:s===null&&c?c.writable:!s});else if(d||!a&&!s&&!f)t[r]=i;else throw new kT("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Fd=Bf,rm=function(){return!!Fd};rm.hasArrayLengthDefineBug=function(){if(!Fd)return null;try{return Fd([],"length",{value:1}).length!==1}catch{return!0}};var nm=rm,UT=Da(),Zy=tm,qT=nm(),Ky=$a(),Jy=Ri,HT=UT("%Math.floor%"),WT=function(t,r){if(typeof t!="function")throw new Jy("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||HT(r)!==r)throw new Jy("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],a=!0,s=!0;if("length"in t&&Ky){var f=Ky(t,"length");f&&!f.configurable&&(a=!1),f&&!f.writable&&(s=!1)}return(a||s||!i)&&(qT?Zy(t,"length",r,!0,!0):Zy(t,"length",r)),t},zT=xa,GT=gh,VT=Xb,ZT=function(){return VT(zT,GT,arguments)};(function(e){var t=WT,r=Bf,i=yh,a=ZT;e.exports=function(f){var d=i(arguments),c=f.length-(arguments.length-1);return t(d,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a})(em);var $f=em.exports,hl,Xy;function im(){if(Xy)return hl;Xy=1;var e=MT(),t=jT(),r=$f,i=Ma,a=$a(),s=i("Object.prototype.toString"),f=hh()(),d=typeof globalThis>"u"?ee.commonjsGlobal:globalThis,c=t(),l=i("String.prototype.slice"),h=Object.getPrototypeOf,_=i("Array.prototype.indexOf",!0)||function(E,I){for(var v=0;v<E.length;v+=1)if(E[v]===I)return v;return-1},b={__proto__:null};f&&a&&h?e(c,function(k){var E=new d[k];if(Symbol.toStringTag in E){var I=h(E),v=a(I,Symbol.toStringTag);if(!v){var w=h(I);v=a(w,Symbol.toStringTag)}b["$"+k]=r(v.get)}}):e(c,function(k){var E=new d[k],I=E.slice||E.set;I&&(b["$"+k]=r(I))});var y=function(E){var I=!1;return e(b,function(v,w){if(!I)try{"$"+v(E)===w&&(I=l(w,1))}catch{}}),I},T=function(E){var I=!1;return e(b,function(v,w){if(!I)try{v(E),I=l(w,1)}catch{}}),I};return hl=function(E){if(!E||typeof E!="object")return!1;if(!f){var I=l(s(E),8,-1);return _(c,I)>-1?I:I!=="Object"?!1:T(E)}return a?y(E):null},hl}var pl,Yy;function KT(){if(Yy)return pl;Yy=1;var e=im();return pl=function(r){return!!e(r)},pl}var Qy;function JT(){return Qy||(Qy=1,function(e){var t=$T(),r=xT(),i=im(),a=KT();function s(me){return me.call.bind(me)}var f=typeof BigInt<"u",d=typeof Symbol<"u",c=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),_=s(Boolean.prototype.valueOf);if(f)var b=s(BigInt.prototype.valueOf);if(d)var y=s(Symbol.prototype.valueOf);function T(me,Ye){if(typeof me!="object")return!1;try{return Ye(me),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function k(me){return typeof Promise<"u"&&me instanceof Promise||me!==null&&typeof me=="object"&&typeof me.then=="function"&&typeof me.catch=="function"}e.isPromise=k;function E(me){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(me):a(me)||j(me)}e.isArrayBufferView=E;function I(me){return i(me)==="Uint8Array"}e.isUint8Array=I;function v(me){return i(me)==="Uint8ClampedArray"}e.isUint8ClampedArray=v;function w(me){return i(me)==="Uint16Array"}e.isUint16Array=w;function S(me){return i(me)==="Uint32Array"}e.isUint32Array=S;function H(me){return i(me)==="Int8Array"}e.isInt8Array=H;function Q(me){return i(me)==="Int16Array"}e.isInt16Array=Q;function ie(me){return i(me)==="Int32Array"}e.isInt32Array=ie;function he(me){return i(me)==="Float32Array"}e.isFloat32Array=he;function le(me){return i(me)==="Float64Array"}e.isFloat64Array=le;function Ee(me){return i(me)==="BigInt64Array"}e.isBigInt64Array=Ee;function ve(me){return i(me)==="BigUint64Array"}e.isBigUint64Array=ve;function m(me){return c(me)==="[object Map]"}m.working=typeof Map<"u"&&m(new Map);function O(me){return typeof Map>"u"?!1:m.working?m(me):me instanceof Map}e.isMap=O;function P(me){return c(me)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function Z(me){return typeof Set>"u"?!1:P.working?P(me):me instanceof Set}e.isSet=Z;function ae(me){return c(me)==="[object WeakMap]"}ae.working=typeof WeakMap<"u"&&ae(new WeakMap);function X(me){return typeof WeakMap>"u"?!1:ae.working?ae(me):me instanceof WeakMap}e.isWeakMap=X;function ne(me){return c(me)==="[object WeakSet]"}ne.working=typeof WeakSet<"u"&&ne(new WeakSet);function F(me){return ne(me)}e.isWeakSet=F;function x(me){return c(me)==="[object ArrayBuffer]"}x.working=typeof ArrayBuffer<"u"&&x(new ArrayBuffer);function Y(me){return typeof ArrayBuffer>"u"?!1:x.working?x(me):me instanceof ArrayBuffer}e.isArrayBuffer=Y;function B(me){return c(me)==="[object DataView]"}B.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&B(new DataView(new ArrayBuffer(1),0,1));function j(me){return typeof DataView>"u"?!1:B.working?B(me):me instanceof DataView}e.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(me){return c(me)==="[object SharedArrayBuffer]"}function G(me){return typeof $>"u"?!1:(typeof U.working>"u"&&(U.working=U(new $)),U.working?U(me):me instanceof $)}e.isSharedArrayBuffer=G;function de(me){return c(me)==="[object AsyncFunction]"}e.isAsyncFunction=de;function oe(me){return c(me)==="[object Map Iterator]"}e.isMapIterator=oe;function ue(me){return c(me)==="[object Set Iterator]"}e.isSetIterator=ue;function Se(me){return c(me)==="[object Generator]"}e.isGeneratorObject=Se;function Be(me){return c(me)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Be;function Me(me){return T(me,l)}e.isNumberObject=Me;function z(me){return T(me,h)}e.isStringObject=z;function J(me){return T(me,_)}e.isBooleanObject=J;function ge(me){return f&&T(me,b)}e.isBigIntObject=ge;function Ne(me){return d&&T(me,y)}e.isSymbolObject=Ne;function Te(me){return Me(me)||z(me)||J(me)||ge(me)||Ne(me)}e.isBoxedPrimitive=Te;function je(me){return typeof Uint8Array<"u"&&(Y(me)||G(me))}e.isAnyArrayBuffer=je,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(me){Object.defineProperty(e,me,{enumerable:!1,value:function(){throw new Error(me+" is not supported in userland")}})})}(kc)),kc}var gl,e0;function XT(){return e0||(e0=1,gl=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),gl}var t0;function zi(){return t0||(t0=1,function(e){var t=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),U={},G=0;G<$.length;G++)U[$[G]]=Object.getOwnPropertyDescriptor(j,$[G]);return U},r=/%[sdj%]/g;e.format=function(B){if(!H(B)){for(var j=[],$=0;$<arguments.length;$++)j.push(f(arguments[$]));return j.join(" ")}for(var $=1,U=arguments,G=U.length,de=String(B).replace(r,function(ue){if(ue==="%%")return"%";if($>=G)return ue;switch(ue){case"%s":return String(U[$++]);case"%d":return Number(U[$++]);case"%j":try{return JSON.stringify(U[$++])}catch{return"[Circular]"}default:return ue}}),oe=U[$];$<G;oe=U[++$])v(oe)||!le(oe)?de+=" "+oe:de+=" "+f(oe);return de},e.deprecate=function(B,j){if(typeof ee.dist.process<"u"&&ee.dist.process.noDeprecation===!0)return B;if(typeof ee.dist.process>"u")return function(){return e.deprecate(B,j).apply(this,arguments)};var $=!1;function U(){if(!$){if(ee.dist.process.throwDeprecation)throw new Error(j);ee.dist.process.traceDeprecation?console.trace(j):console.error(j),$=!0}return B.apply(this,arguments)}return U};var i={},a=/^$/;if(ee.dist.process.env.NODE_DEBUG){var s=ee.dist.process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}e.debuglog=function(B){if(B=B.toUpperCase(),!i[B])if(a.test(B)){var j=ee.dist.process.pid;i[B]=function(){var $=e.format.apply(e,arguments);console.error("%s %d: %s",B,j,$)}}else i[B]=function(){};return i[B]};function f(B,j){var $={seen:[],stylize:c};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),I(j)?$.showHidden=j:j&&e._extend($,j),ie($.showHidden)&&($.showHidden=!1),ie($.depth)&&($.depth=2),ie($.colors)&&($.colors=!1),ie($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=d),h($,B,$.depth)}e.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(B,j){var $=f.styles[j];return $?"\x1B["+f.colors[$][0]+"m"+B+"\x1B["+f.colors[$][1]+"m":B}function c(B,j){return B}function l(B){var j={};return B.forEach(function($,U){j[$]=!0}),j}function h(B,j,$){if(B.customInspect&&j&&m(j.inspect)&&j.inspect!==e.inspect&&!(j.constructor&&j.constructor.prototype===j)){var U=j.inspect($,B);return H(U)||(U=h(B,U,$)),U}var G=_(B,j);if(G)return G;var de=Object.keys(j),oe=l(de);if(B.showHidden&&(de=Object.getOwnPropertyNames(j)),ve(j)&&(de.indexOf("message")>=0||de.indexOf("description")>=0))return b(j);if(de.length===0){if(m(j)){var ue=j.name?": "+j.name:"";return B.stylize("[Function"+ue+"]","special")}if(he(j))return B.stylize(RegExp.prototype.toString.call(j),"regexp");if(Ee(j))return B.stylize(Date.prototype.toString.call(j),"date");if(ve(j))return b(j)}var Se="",Be=!1,Me=["{","}"];if(E(j)&&(Be=!0,Me=["[","]"]),m(j)){var z=j.name?": "+j.name:"";Se=" [Function"+z+"]"}if(he(j)&&(Se=" "+RegExp.prototype.toString.call(j)),Ee(j)&&(Se=" "+Date.prototype.toUTCString.call(j)),ve(j)&&(Se=" "+b(j)),de.length===0&&(!Be||j.length==0))return Me[0]+Se+Me[1];if($<0)return he(j)?B.stylize(RegExp.prototype.toString.call(j),"regexp"):B.stylize("[Object]","special");B.seen.push(j);var J;return Be?J=y(B,j,$,oe,de):J=de.map(function(ge){return T(B,j,$,oe,ge,Be)}),B.seen.pop(),k(J,Se,Me)}function _(B,j){if(ie(j))return B.stylize("undefined","undefined");if(H(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize($,"string")}if(S(j))return B.stylize(""+j,"number");if(I(j))return B.stylize(""+j,"boolean");if(v(j))return B.stylize("null","null")}function b(B){return"["+Error.prototype.toString.call(B)+"]"}function y(B,j,$,U,G){for(var de=[],oe=0,ue=j.length;oe<ue;++oe)ne(j,String(oe))?de.push(T(B,j,$,U,String(oe),!0)):de.push("");return G.forEach(function(Se){Se.match(/^\d+$/)||de.push(T(B,j,$,U,Se,!0))}),de}function T(B,j,$,U,G,de){var oe,ue,Se;if(Se=Object.getOwnPropertyDescriptor(j,G)||{value:j[G]},Se.get?Se.set?ue=B.stylize("[Getter/Setter]","special"):ue=B.stylize("[Getter]","special"):Se.set&&(ue=B.stylize("[Setter]","special")),ne(U,G)||(oe="["+G+"]"),ue||(B.seen.indexOf(Se.value)<0?(v($)?ue=h(B,Se.value,null):ue=h(B,Se.value,$-1),ue.indexOf(`
2
- `)>-1&&(de?ue=ue.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./index-hIJ0h_GZ.js"),JT=require("./events-Bs7CEKn9.js");var jd={exports:{}};(function(e,t){t=e.exports=ee.require_stream_readable(),t.Stream=t,t.Readable=t,t.Writable=ee.require_stream_writable(),t.Duplex=ee.require_stream_duplex(),t.Transform=ee.require_stream_transform(),t.PassThrough=ee.require_stream_passthrough(),t.finished=ee.requireEndOfStream(),t.pipeline=ee.requirePipeline()})(jd,jd.exports);var Do=jd.exports,Jb={};const wy=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Jb.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],g=e[9]^e[19]^e[29]^e[39]^e[49];let b=h^(a<<1|s>>>31),_=g^(s<<1|a>>>31);const T=e[0]^b,k=e[1]^_,E=e[10]^b,R=e[11]^_,v=e[20]^b,w=e[21]^_,S=e[30]^b,H=e[31]^_,Q=e[40]^b,ie=e[41]^_;b=r^(u<<1|d>>>31),_=i^(d<<1|u>>>31);const he=e[2]^b,le=e[3]^_,Ee=e[12]^b,ve=e[13]^_,m=e[22]^b,O=e[23]^_,P=e[32]^b,Z=e[33]^_,ae=e[42]^b,X=e[43]^_;b=a^(c<<1|l>>>31),_=s^(l<<1|c>>>31);const ne=e[4]^b,F=e[5]^_,x=e[14]^b,Y=e[15]^_,B=e[24]^b,j=e[25]^_,$=e[34]^b,U=e[35]^_,G=e[44]^b,de=e[45]^_;b=u^(h<<1|g>>>31),_=d^(g<<1|h>>>31);const oe=e[6]^b,fe=e[7]^_,Se=e[16]^b,Be=e[17]^_,Me=e[26]^b,z=e[27]^_,J=e[36]^b,ge=e[37]^_,Ne=e[46]^b,Oe=e[47]^_;b=c^(r<<1|i>>>31),_=l^(i<<1|r>>>31);const je=e[8]^b,me=e[9]^_,Ye=e[18]^b,et=e[19]^_,re=e[28]^b,xe=e[29]^_,M=e[38]^b,ce=e[39]^_,De=e[48]^b,Ve=e[49]^_,Ue=T,ke=k,Xe=R<<4|E>>>28,D=E<<4|R>>>28,Re=v<<3|w>>>29,$e=w<<3|v>>>29,qe=H<<9|S>>>23,C=S<<9|H>>>23,K=Q<<18|ie>>>14,A=ie<<18|Q>>>14,Te=he<<1|le>>>31,Ke=le<<1|he>>>31,p=ve<<12|Ee>>>20,_e=Ee<<12|ve>>>20,Ie=m<<10|O>>>22,L=O<<10|m>>>22,ue=Z<<13|P>>>19,Ae=P<<13|Z>>>19,Je=ae<<2|X>>>30,N=X<<2|ae>>>30,W=F<<30|ne>>>2,Ce=ne<<30|F>>>2,ze=x<<6|Y>>>26,Ge=Y<<6|x>>>26,rt=j<<11|B>>>21,ot=B<<11|j>>>21,bt=$<<15|U>>>17,ht=U<<15|$>>>17,ar=de<<29|G>>>3,fr=G<<29|de>>>3,wt=oe<<28|fe>>>4,Dt=fe<<28|oe>>>4,St=Be<<23|Se>>>9,Ot=Se<<23|Be>>>9,qt=Me<<25|z>>>7,tr=z<<25|Me>>>7,Gt=J<<21|ge>>>11,Vt=ge<<21|J>>>11,$n=Oe<<24|Ne>>>8,yn=Ne<<24|Oe>>>8,xn=je<<27|me>>>5,_n=me<<27|je>>>5,bn=Ye<<20|et>>>12,Wr=et<<20|Ye>>>12,Oi=xe<<7|re>>>25,mn=re<<7|xe>>>25,ri=M<<8|ce>>>24,ni=ce<<8|M>>>24,ii=De<<14|Ve>>>18,oi=Ve<<14|De>>>18;e[0]=Ue^~p&rt,e[1]=ke^~_e&ot,e[10]=wt^~bn&Re,e[11]=Dt^~Wr&$e,e[20]=Te^~ze&qt,e[21]=Ke^~Ge&tr,e[30]=xn^~Xe&Ie,e[31]=_n^~D&L,e[40]=W^~St&Oi,e[41]=Ce^~Ot&mn,e[2]=p^~rt&Gt,e[3]=_e^~ot&Vt,e[12]=bn^~Re&ue,e[13]=Wr^~$e&Ae,e[22]=ze^~qt&ri,e[23]=Ge^~tr&ni,e[32]=Xe^~Ie&bt,e[33]=D^~L&ht,e[42]=St^~Oi&qe,e[43]=Ot^~mn&C,e[4]=rt^~Gt&ii,e[5]=ot^~Vt&oi,e[14]=Re^~ue&ar,e[15]=$e^~Ae&fr,e[24]=qt^~ri&K,e[25]=tr^~ni&A,e[34]=Ie^~bt&$n,e[35]=L^~ht&yn,e[44]=Oi^~qe&Je,e[45]=mn^~C&N,e[6]=Gt^~ii&Ue,e[7]=Vt^~oi&ke,e[16]=ue^~ar&wt,e[17]=Ae^~fr&Dt,e[26]=ri^~K&Te,e[27]=ni^~A&Ke,e[36]=bt^~$n&xn,e[37]=ht^~yn&_n,e[46]=qe^~Je&W,e[47]=C^~N&Ce,e[8]=ii^~Ue&p,e[9]=oi^~ke&_e,e[18]=ar^~wt&bn,e[19]=fr^~Dt&Wr,e[28]=K^~Te&ze,e[29]=A^~Ke&Ge,e[38]=$n^~xn&Xe,e[39]=yn^~_n&D,e[48]=Je^~W&St,e[49]=N^~Ce&Ot,e[0]^=wy[t*2],e[1]^=wy[t*2+1]}};const bu=Jb;function Ba(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Ba.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Ba.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(bu.p1600(this.state),this.count=0)};Ba.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),e&128&&this.count===this.blockSize-1&&bu.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),bu.p1600(this.state),this.count=0,this.squeezing=!0};Ba.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=ee.dist.Buffer.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(bu.p1600(this.state),this.count=0);return t};Ba.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var XT=YT;function YT(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const QT=ee.getDefaultExportFromCjs(XT);var kd={exports:{}},xc,Ey;function eO(){if(Ey)return xc;Ey=1;var e=1e3,t=e*60,r=t*60,i=r*24,a=i*7,s=i*365.25;xc=function(h,g){g=g||{};var b=typeof h;if(b==="string"&&h.length>0)return u(h);if(b==="number"&&isFinite(h))return g.long?c(h):d(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function u(h){if(h=String(h),!(h.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(g){var b=parseFloat(g[1]),_=(g[2]||"ms").toLowerCase();switch(_){case"years":case"year":case"yrs":case"yr":case"y":return b*s;case"weeks":case"week":case"w":return b*a;case"days":case"day":case"d":return b*i;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*t;case"seconds":case"second":case"secs":case"sec":case"s":return b*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function d(h){var g=Math.abs(h);return g>=i?Math.round(h/i)+"d":g>=r?Math.round(h/r)+"h":g>=t?Math.round(h/t)+"m":g>=e?Math.round(h/e)+"s":h+"ms"}function c(h){var g=Math.abs(h);return g>=i?l(h,g,i,"day"):g>=r?l(h,g,r,"hour"):g>=t?l(h,g,t,"minute"):g>=e?l(h,g,e,"second"):h+" ms"}function l(h,g,b,_){var T=g>=b*1.5;return Math.round(h/b)+" "+_+(T?"s":"")}return xc}function tO(e){r.debug=r,r.default=r,r.coerce=c,r.disable=u,r.enable=a,r.enabled=d,r.humanize=eO(),r.destroy=l,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let g=0;for(let b=0;b<h.length;b++)g=(g<<5)-g+h.charCodeAt(b),g|=0;return r.colors[Math.abs(g)%r.colors.length]}r.selectColor=t;function r(h){let g,b=null,_,T;function k(...E){if(!k.enabled)return;const R=k,v=Number(new Date),w=v-(g||v);R.diff=w,R.prev=g,R.curr=v,g=v,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let S=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(Q,ie)=>{if(Q==="%%")return"%";S++;const he=r.formatters[ie];if(typeof he=="function"){const le=E[S];Q=he.call(R,le),E.splice(S,1),S--}return Q}),r.formatArgs.call(R,E),(R.log||r.log).apply(R,E)}return k.namespace=h,k.useColors=r.useColors(),k.color=r.selectColor(h),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(_!==r.namespaces&&(_=r.namespaces,T=r.enabled(h)),T),set:E=>{b=E}}),typeof r.init=="function"&&r.init(k),k}function i(h,g){const b=r(this.namespace+(typeof g>"u"?":":g)+h);return b.log=this.log,b}function a(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];const g=(typeof h=="string"?h:"").trim().replace(" ",",").split(",").filter(Boolean);for(const b of g)b[0]==="-"?r.skips.push(b.slice(1)):r.names.push(b)}function s(h,g){let b=0,_=0,T=-1,k=0;for(;b<h.length;)if(_<g.length&&(g[_]===h[b]||g[_]==="*"))g[_]==="*"?(T=_,k=b,_++):(b++,_++);else if(T!==-1)_=T+1,k++,b=k;else return!1;for(;_<g.length&&g[_]==="*";)_++;return _===g.length}function u(){const h=[...r.names,...r.skips.map(g=>"-"+g)].join(",");return r.enable(""),h}function d(h){for(const g of r.skips)if(s(h,g))return!1;for(const g of r.names)if(s(h,g))return!0;return!1}function c(h){return h instanceof Error?h.stack||h.message:h}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var rO=tO;(function(e,t){t.formatArgs=i,t.save=a,t.load=s,t.useColors=r,t.storage=u(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let h=0,g=0;c[0].replace(/%[a-zA-Z%]/g,b=>{b!=="%%"&&(h++,b==="%c"&&(g=h))}),c.splice(g,0,l)}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof ee.dist.process<"u"&&"env"in ee.dist.process&&(c=ee.dist.process.env.DEBUG),c}function u(){try{return localStorage}catch{}}e.exports=rO(t);const{formatters:d}=e.exports;d.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(kd,kd.exports);var nO=kd.exports,hn={},Ei={},ph=Ta;Ta.default=Ta;Ta.stable=Qb;Ta.stableStringify=Qb;var mu="[...]",Xb="[Circular]",Wi=[],qi=[];function Yb(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ta(e,t,r,i){typeof i>"u"&&(i=Yb()),Ud(e,"",0,[],void 0,0,i);var a;try{qi.length===0?a=JSON.stringify(e,t,r):a=JSON.stringify(e,em(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var s=Wi.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return a}function Io(e,t,r,i){var a=Object.getOwnPropertyDescriptor(i,r);a.get!==void 0?a.configurable?(Object.defineProperty(i,r,{value:e}),Wi.push([i,r,t,a])):qi.push([t,r,e]):(i[r]=e,Wi.push([i,r,t]))}function Ud(e,t,r,i,a,s,u){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(Xb,e,t,a);return}if(typeof u.depthLimit<"u"&&s>u.depthLimit){Io(mu,e,t,a);return}if(typeof u.edgesLimit<"u"&&r+1>u.edgesLimit){Io(mu,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)Ud(e[d],d,d,i,e,s,u);else{var c=Object.keys(e);for(d=0;d<c.length;d++){var l=c[d];Ud(e[l],l,d,i,e,s,u)}}i.pop()}}function iO(e,t){return e<t?-1:e>t?1:0}function Qb(e,t,r,i){typeof i>"u"&&(i=Yb());var a=qd(e,"",0,[],void 0,0,i)||e,s;try{qi.length===0?s=JSON.stringify(a,t,r):s=JSON.stringify(a,em(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var u=Wi.pop();u.length===4?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function qd(e,t,r,i,a,s,u){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(Xb,e,t,a);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof u.depthLimit<"u"&&s>u.depthLimit){Io(mu,e,t,a);return}if(typeof u.edgesLimit<"u"&&r+1>u.edgesLimit){Io(mu,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)qd(e[d],d,d,i,e,s,u);else{var c={},l=Object.keys(e).sort(iO);for(d=0;d<l.length;d++){var h=l[d];qd(e[h],h,d,i,e,s,u),c[h]=e[h]}if(typeof a<"u")Wi.push([a,t,e]),a[t]=c;else return c}i.pop()}}function em(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(qi.length>0)for(var i=0;i<qi.length;i++){var a=qi[i];if(a[1]===t&&a[0]===r){r=a[2],qi.splice(i,1);break}}return e.call(this,t,r)}}const oO=ee.getDefaultExportFromCjs(ph);Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EthereumProviderError=Ei.EthereumRpcError=void 0;const aO=ph;class tm extends Error{constructor(t,r,i){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,i!==void 0&&(this.data=i)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return aO.default(this.serialize(),fO,2)}}Ei.EthereumRpcError=tm;let sO=class extends tm{constructor(t,r,i){if(!uO(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,i)}};Ei.EthereumProviderError=sO;function uO(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function fO(e,t){if(t!=="[Circular]")return t}var gh={},Si={};Object.defineProperty(Si,"__esModule",{value:!0});Si.errorValues=Si.errorCodes=void 0;Si.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Si.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Si,r=Ei,i=t.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",s={code:i,message:u(i)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function u(b,_=a){if(Number.isInteger(b)){const T=b.toString();if(g(t.errorValues,T))return t.errorValues[T].message;if(l(b))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return _}e.getMessageFromCode=u;function d(b){if(!Number.isInteger(b))return!1;const _=b.toString();return!!(t.errorValues[_]||l(b))}e.isValidCode=d;function c(b,{fallbackError:_=s,shouldIncludeStack:T=!1}={}){var k,E;if(!_||!Number.isInteger(_.code)||typeof _.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(b instanceof r.EthereumRpcError)return b.serialize();const R={};if(b&&typeof b=="object"&&!Array.isArray(b)&&g(b,"code")&&d(b.code)){const w=b;R.code=w.code,w.message&&typeof w.message=="string"?(R.message=w.message,g(w,"data")&&(R.data=w.data)):(R.message=u(R.code),R.data={originalError:h(b)})}else{R.code=_.code;const w=(k=b)===null||k===void 0?void 0:k.message;R.message=w&&typeof w=="string"?w:_.message,R.data={originalError:h(b)}}const v=(E=b)===null||E===void 0?void 0:E.stack;return T&&b&&v&&typeof v=="string"&&(R.stack=v),R}e.serializeError=c;function l(b){return b>=-32099&&b<=-32e3}function h(b){return b&&typeof b=="object"&&!Array.isArray(b)?Object.assign({},b):b}function g(b,_){return Object.prototype.hasOwnProperty.call(b,_)}})(gh);var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});Lu.ethErrors=void 0;const yh=Ei,rm=gh,_r=Si;Lu.ethErrors={rpc:{parse:e=>Yr(_r.errorCodes.rpc.parse,e),invalidRequest:e=>Yr(_r.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Yr(_r.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Yr(_r.errorCodes.rpc.methodNotFound,e),internal:e=>Yr(_r.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Yr(t,e)},invalidInput:e=>Yr(_r.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Yr(_r.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Yr(_r.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Yr(_r.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Yr(_r.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Yr(_r.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ha(_r.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ha(_r.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ha(_r.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ha(_r.errorCodes.provider.disconnected,e),chainDisconnected:e=>ha(_r.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new yh.EthereumProviderError(t,r,i)}}};function Yr(e,t){const[r,i]=nm(t);return new yh.EthereumRpcError(e,r||rm.getMessageFromCode(e),i)}function ha(e,t){const[r,i]=nm(t);return new yh.EthereumProviderError(e,r||rm.getMessageFromCode(e),i)}function nm(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Ei;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=gh;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const i=Lu;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return i.ethErrors}});const a=Si;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(hn);var Dc,Sy;function cO(){if(Sy)return Dc;Sy=1,Dc=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},i=0;i<arguments.length;i++){var a=arguments[i];for(var s in a)e.call(a,s)&&(r[s]=a[s])}return r}return Dc}var Mc={exports:{}},Fc={},jc={},kc={},Uc,Ay;function _h(){return Ay||(Ay=1,Uc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var u=Object.getOwnPropertySymbols(t);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,r);if(d.value!==a||d.enumerable!==!0)return!1}return!0}),Uc}var qc,Ry;function bh(){if(Ry)return qc;Ry=1;var e=_h();return qc=function(){return e()&&!!Symbol.toStringTag},qc}var Hc,Iy;function im(){return Iy||(Iy=1,Hc=Object),Hc}var Wc,Ty;function lO(){return Ty||(Ty=1,Wc=Error),Wc}var zc,Oy;function dO(){return Oy||(Oy=1,zc=EvalError),zc}var Gc,Py;function hO(){return Py||(Py=1,Gc=RangeError),Gc}var Vc,Cy;function pO(){return Cy||(Cy=1,Vc=ReferenceError),Vc}var Zc,Ly;function om(){return Ly||(Ly=1,Zc=SyntaxError),Zc}var Kc,Ny;function Ri(){return Ny||(Ny=1,Kc=TypeError),Kc}var Jc,By;function gO(){return By||(By=1,Jc=URIError),Jc}var Xc,$y;function yO(){return $y||($y=1,Xc=Math.abs),Xc}var Yc,xy;function _O(){return xy||(xy=1,Yc=Math.floor),Yc}var Qc,Dy;function bO(){return Dy||(Dy=1,Qc=Math.max),Qc}var el,My;function mO(){return My||(My=1,el=Math.min),el}var tl,Fy;function vO(){return Fy||(Fy=1,tl=Math.pow),tl}var rl,jy;function wO(){return jy||(jy=1,rl=Object.getOwnPropertyDescriptor),rl}var nl,ky;function $a(){if(ky)return nl;ky=1;var e=wO();if(e)try{e([],"length")}catch{e=null}return nl=e,nl}var du=Object.defineProperty||!1;if(du)try{du({},"a",{value:1})}catch{du=!1}var Nu=du,il,Uy;function EO(){if(Uy)return il;Uy=1;var e=typeof Symbol<"u"&&Symbol,t=_h();return il=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},il}var ol,qy;function SO(){if(qy)return ol;qy=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,i="[object Function]",a=function(c,l){for(var h=[],g=0;g<c.length;g+=1)h[g]=c[g];for(var b=0;b<l.length;b+=1)h[b+c.length]=l[b];return h},s=function(c,l){for(var h=[],g=l,b=0;g<c.length;g+=1,b+=1)h[b]=c[g];return h},u=function(d,c){for(var l="",h=0;h<d.length;h+=1)l+=d[h],h+1<d.length&&(l+=c);return l};return ol=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==i)throw new TypeError(e+l);for(var h=s(arguments,1),g,b=function(){if(this instanceof g){var R=l.apply(this,a(h,arguments));return Object(R)===R?R:this}return l.apply(c,a(h,arguments))},_=r(0,l.length-h.length),T=[],k=0;k<_;k++)T[k]="$"+k;if(g=Function("binder","return function ("+u(T,",")+"){ return binder.apply(this,arguments); }")(b),l.prototype){var E=function(){};E.prototype=l.prototype,g.prototype=new E,E.prototype=null}return g},ol}var al,Hy;function xa(){if(Hy)return al;Hy=1;var e=SO();return al=Function.prototype.bind||e,al}var sl,Wy;function mh(){return Wy||(Wy=1,sl=Function.prototype.call),sl}var ul,zy;function vh(){return zy||(zy=1,ul=Function.prototype.apply),ul}var AO=typeof Reflect<"u"&&Reflect&&Reflect.apply,RO=xa(),IO=vh(),TO=mh(),OO=AO,am=OO||RO.call(TO,IO),PO=xa(),CO=Ri(),LO=mh(),NO=am,wh=function(t){if(t.length<1||typeof t[0]!="function")throw new CO("a function is required");return NO(PO,LO,t)},fl,Gy;function BO(){if(Gy)return fl;Gy=1;var e=wh,t=$a(),r;try{r=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return fl=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(d){return s(d==null?d:a(d))}:!1,fl}var cl,Vy;function $O(){if(Vy)return cl;Vy=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=xa();return cl=r.call(e,t),cl}var ll,Zy;function Da(){if(Zy)return ll;Zy=1;var e,t=im(),r=lO(),i=dO(),a=hO(),s=pO(),u=om(),d=Ri(),c=gO(),l=yO(),h=_O(),g=bO(),b=mO(),_=vO(),T=Function,k=function(G){try{return T('"use strict"; return ('+G+").constructor;")()}catch{}},E=$a(),R=Nu,v=function(){throw new d},w=E?function(){try{return arguments.callee,v}catch{try{return E(arguments,"callee").get}catch{return v}}}():v,S=EO()(),H=BO(),Q=typeof Reflect=="function"&&Reflect.getPrototypeOf||t.getPrototypeOf||H,ie=vh(),he=mh(),le={},Ee=typeof Uint8Array>"u"||!Q?e:Q(Uint8Array),ve={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&Q?Q([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&Q?Q(Q([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!Q?e:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!Q?e:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&Q?Q(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":u,"%ThrowTypeError%":w,"%TypedArray%":Ee,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":he,"%Function.prototype.apply%":ie,"%Object.defineProperty%":R,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":g,"%Math.min%":b,"%Math.pow%":_};if(Q)try{null.error}catch(G){var m=Q(Q(G));ve["%Error.prototype%"]=m}var O=function G(de){var oe;if(de==="%AsyncFunction%")oe=k("async function () {}");else if(de==="%GeneratorFunction%")oe=k("function* () {}");else if(de==="%AsyncGeneratorFunction%")oe=k("async function* () {}");else if(de==="%AsyncGenerator%"){var fe=G("%AsyncGeneratorFunction%");fe&&(oe=fe.prototype)}else if(de==="%AsyncIteratorPrototype%"){var Se=G("%AsyncGenerator%");Se&&Q&&(oe=Q(Se.prototype))}return ve[de]=oe,oe},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Z=xa(),ae=$O(),X=Z.call(he,Array.prototype.concat),ne=Z.call(ie,Array.prototype.splice),F=Z.call(he,String.prototype.replace),x=Z.call(he,String.prototype.slice),Y=Z.call(he,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,$=function(de){var oe=x(de,0,1),fe=x(de,-1);if(oe==="%"&&fe!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&oe!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Se=[];return F(de,B,function(Be,Me,z,J){Se[Se.length]=z?F(J,j,"$1"):Me||Be}),Se},U=function(de,oe){var fe=de,Se;if(ae(P,fe)&&(Se=P[fe],fe="%"+Se[0]+"%"),ae(ve,fe)){var Be=ve[fe];if(Be===le&&(Be=O(fe)),typeof Be>"u"&&!oe)throw new d("intrinsic "+de+" exists, but is not available. Please file an issue!");return{alias:Se,name:fe,value:Be}}throw new u("intrinsic "+de+" does not exist!")};return ll=function(de,oe){if(typeof de!="string"||de.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof oe!="boolean")throw new d('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,de)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var fe=$(de),Se=fe.length>0?fe[0]:"",Be=U("%"+Se+"%",oe),Me=Be.name,z=Be.value,J=!1,ge=Be.alias;ge&&(Se=ge[0],ne(fe,X([0,1],ge)));for(var Ne=1,Oe=!0;Ne<fe.length;Ne+=1){var je=fe[Ne],me=x(je,0,1),Ye=x(je,-1);if((me==='"'||me==="'"||me==="`"||Ye==='"'||Ye==="'"||Ye==="`")&&me!==Ye)throw new u("property names with quotes must have matching quotes");if((je==="constructor"||!Oe)&&(J=!0),Se+="."+je,Me="%"+Se+"%",ae(ve,Me))z=ve[Me];else if(z!=null){if(!(je in z)){if(!oe)throw new d("base intrinsic for "+de+" exists, but the property is not available.");return}if(E&&Ne+1>=fe.length){var et=E(z,je);Oe=!!et,Oe&&"get"in et&&!("originalValue"in et.get)?z=et.get:z=z[je]}else Oe=ae(z,je),z=z[je];Oe&&!J&&(ve[Me]=z)}}return z},ll}var sm=Da(),um=wh,xO=um([sm("%String.prototype.indexOf%")]),Ma=function(t,r){var i=sm(t,!!r);return typeof i=="function"&&xO(t,".prototype.")>-1?um([i]):i},dl,Ky;function DO(){if(Ky)return dl;Ky=1;var e=bh()(),t=Ma,r=t("Object.prototype.toString"),i=function(d){return e&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:r(d)==="[object Arguments]"},a=function(d){return i(d)?!0:d!==null&&typeof d=="object"&&"length"in d&&typeof d.length=="number"&&d.length>=0&&r(d)!=="[object Array]"&&"callee"in d&&r(d.callee)==="[object Function]"},s=function(){return i(arguments)}();return i.isLegacyArguments=a,dl=s?i:a,dl}var hl,Jy;function MO(){if(Jy)return hl;Jy=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,i=bh()(),a=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},u;return hl=function(c){if(typeof c!="function")return!1;if(r.test(t.call(c)))return!0;if(!i){var l=e.call(c);return l==="[object GeneratorFunction]"}if(!a)return!1;if(typeof u>"u"){var h=s();u=h?a(h):!1}return a(c)===u},hl}var pl,Xy;function FO(){if(Xy)return pl;Xy=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(v){v!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(w){try{var S=e.call(w);return a.test(S)}catch{return!1}},u=function(w){try{return s(w)?!1:(e.call(w),!0)}catch{return!1}},d=Object.prototype.toString,c="[object Object]",l="[object Function]",h="[object GeneratorFunction]",g="[object HTMLAllCollection]",b="[object HTML document.all class]",_="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var R=document.all;d.call(R)===d.call(document.all)&&(E=function(w){if((k||!w)&&(typeof w>"u"||typeof w=="object"))try{var S=d.call(w);return(S===g||S===b||S===_||S===c)&&w("")==null}catch{}return!1})}return pl=t?function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{t(w,null,r)}catch(S){if(S!==i)return!1}return!s(w)&&u(w)}:function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(T)return u(w);if(s(w))return!1;var S=d.call(w);return S!==l&&S!==h&&!/^\[object HTML/.test(S)?!1:u(w)},pl}var gl,Yy;function jO(){if(Yy)return gl;Yy=1;var e=FO(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(c,l,h){for(var g=0,b=c.length;g<b;g++)r.call(c,g)&&(h==null?l(c[g],g,c):l.call(h,c[g],g,c))},a=function(c,l,h){for(var g=0,b=c.length;g<b;g++)h==null?l(c.charAt(g),g,c):l.call(h,c.charAt(g),g,c)},s=function(c,l,h){for(var g in c)r.call(c,g)&&(h==null?l(c[g],g,c):l.call(h,c[g],g,c))},u=function(c,l,h){if(!e(l))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=h),t.call(c)==="[object Array]"?i(c,l,g):typeof c=="string"?a(c,l,g):s(c,l,g)};return gl=u,gl}var yl,Qy;function kO(){return Qy||(Qy=1,yl=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),yl}var _l,e0;function UO(){if(e0)return _l;e0=1;var e=kO(),t=typeof globalThis>"u"?ee.commonjsGlobal:globalThis;return _l=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},_l}var fm={exports:{}},t0=Nu,qO=om(),vo=Ri(),r0=$a(),cm=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new vo("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new vo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new vo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new vo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new vo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new vo("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,c=!!r0&&r0(t,r);if(t0)t0(t,r,{configurable:u===null&&c?c.configurable:!u,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:s===null&&c?c.writable:!s});else if(d||!a&&!s&&!u)t[r]=i;else throw new qO("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hd=Nu,lm=function(){return!!Hd};lm.hasArrayLengthDefineBug=function(){if(!Hd)return null;try{return Hd([],"length",{value:1}).length!==1}catch{return!0}};var dm=lm,HO=Da(),n0=cm,WO=dm(),i0=$a(),o0=Ri(),zO=HO("%Math.floor%"),GO=function(t,r){if(typeof t!="function")throw new o0("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||zO(r)!==r)throw new o0("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],a=!0,s=!0;if("length"in t&&i0){var u=i0(t,"length");u&&!u.configurable&&(a=!1),u&&!u.writable&&(s=!1)}return(a||s||!i)&&(WO?n0(t,"length",r,!0,!0):n0(t,"length",r)),t},VO=xa(),ZO=vh(),KO=am,JO=function(){return KO(VO,ZO,arguments)};(function(e){var t=GO,r=Nu,i=wh,a=JO;e.exports=function(u){var d=i(arguments),c=u.length-(arguments.length-1);return t(d,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a})(fm);var Bu=fm.exports,bl,a0;function hm(){if(a0)return bl;a0=1;var e=jO(),t=UO(),r=Bu,i=Ma,a=$a(),s=i("Object.prototype.toString"),u=bh()(),d=typeof globalThis>"u"?ee.commonjsGlobal:globalThis,c=t(),l=i("String.prototype.slice"),h=Object.getPrototypeOf,g=i("Array.prototype.indexOf",!0)||function(E,R){for(var v=0;v<E.length;v+=1)if(E[v]===R)return v;return-1},b={__proto__:null};u&&a&&h?e(c,function(k){var E=new d[k];if(Symbol.toStringTag in E){var R=h(E),v=a(R,Symbol.toStringTag);if(!v){var w=h(R);v=a(w,Symbol.toStringTag)}b["$"+k]=r(v.get)}}):e(c,function(k){var E=new d[k],R=E.slice||E.set;R&&(b["$"+k]=r(R))});var _=function(E){var R=!1;return e(b,function(v,w){if(!R)try{"$"+v(E)===w&&(R=l(w,1))}catch{}}),R},T=function(E){var R=!1;return e(b,function(v,w){if(!R)try{v(E),R=l(w,1)}catch{}}),R};return bl=function(E){if(!E||typeof E!="object")return!1;if(!u){var R=l(s(E),8,-1);return g(c,R)>-1?R:R!=="Object"?!1:T(E)}return a?_(E):null},bl}var ml,s0;function XO(){if(s0)return ml;s0=1;var e=hm();return ml=function(r){return!!e(r)},ml}var u0;function YO(){return u0||(u0=1,function(e){var t=DO(),r=MO(),i=hm(),a=XO();function s(me){return me.call.bind(me)}var u=typeof BigInt<"u",d=typeof Symbol<"u",c=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),g=s(Boolean.prototype.valueOf);if(u)var b=s(BigInt.prototype.valueOf);if(d)var _=s(Symbol.prototype.valueOf);function T(me,Ye){if(typeof me!="object")return!1;try{return Ye(me),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function k(me){return typeof Promise<"u"&&me instanceof Promise||me!==null&&typeof me=="object"&&typeof me.then=="function"&&typeof me.catch=="function"}e.isPromise=k;function E(me){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(me):a(me)||j(me)}e.isArrayBufferView=E;function R(me){return i(me)==="Uint8Array"}e.isUint8Array=R;function v(me){return i(me)==="Uint8ClampedArray"}e.isUint8ClampedArray=v;function w(me){return i(me)==="Uint16Array"}e.isUint16Array=w;function S(me){return i(me)==="Uint32Array"}e.isUint32Array=S;function H(me){return i(me)==="Int8Array"}e.isInt8Array=H;function Q(me){return i(me)==="Int16Array"}e.isInt16Array=Q;function ie(me){return i(me)==="Int32Array"}e.isInt32Array=ie;function he(me){return i(me)==="Float32Array"}e.isFloat32Array=he;function le(me){return i(me)==="Float64Array"}e.isFloat64Array=le;function Ee(me){return i(me)==="BigInt64Array"}e.isBigInt64Array=Ee;function ve(me){return i(me)==="BigUint64Array"}e.isBigUint64Array=ve;function m(me){return c(me)==="[object Map]"}m.working=typeof Map<"u"&&m(new Map);function O(me){return typeof Map>"u"?!1:m.working?m(me):me instanceof Map}e.isMap=O;function P(me){return c(me)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function Z(me){return typeof Set>"u"?!1:P.working?P(me):me instanceof Set}e.isSet=Z;function ae(me){return c(me)==="[object WeakMap]"}ae.working=typeof WeakMap<"u"&&ae(new WeakMap);function X(me){return typeof WeakMap>"u"?!1:ae.working?ae(me):me instanceof WeakMap}e.isWeakMap=X;function ne(me){return c(me)==="[object WeakSet]"}ne.working=typeof WeakSet<"u"&&ne(new WeakSet);function F(me){return ne(me)}e.isWeakSet=F;function x(me){return c(me)==="[object ArrayBuffer]"}x.working=typeof ArrayBuffer<"u"&&x(new ArrayBuffer);function Y(me){return typeof ArrayBuffer>"u"?!1:x.working?x(me):me instanceof ArrayBuffer}e.isArrayBuffer=Y;function B(me){return c(me)==="[object DataView]"}B.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&B(new DataView(new ArrayBuffer(1),0,1));function j(me){return typeof DataView>"u"?!1:B.working?B(me):me instanceof DataView}e.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(me){return c(me)==="[object SharedArrayBuffer]"}function G(me){return typeof $>"u"?!1:(typeof U.working>"u"&&(U.working=U(new $)),U.working?U(me):me instanceof $)}e.isSharedArrayBuffer=G;function de(me){return c(me)==="[object AsyncFunction]"}e.isAsyncFunction=de;function oe(me){return c(me)==="[object Map Iterator]"}e.isMapIterator=oe;function fe(me){return c(me)==="[object Set Iterator]"}e.isSetIterator=fe;function Se(me){return c(me)==="[object Generator]"}e.isGeneratorObject=Se;function Be(me){return c(me)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Be;function Me(me){return T(me,l)}e.isNumberObject=Me;function z(me){return T(me,h)}e.isStringObject=z;function J(me){return T(me,g)}e.isBooleanObject=J;function ge(me){return u&&T(me,b)}e.isBigIntObject=ge;function Ne(me){return d&&T(me,_)}e.isSymbolObject=Ne;function Oe(me){return Me(me)||z(me)||J(me)||ge(me)||Ne(me)}e.isBoxedPrimitive=Oe;function je(me){return typeof Uint8Array<"u"&&(Y(me)||G(me))}e.isAnyArrayBuffer=je,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(me){Object.defineProperty(e,me,{enumerable:!1,value:function(){throw new Error(me+" is not supported in userland")}})})}(kc)),kc}var vl,f0;function QO(){return f0||(f0=1,vl=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),vl}var c0;function zi(){return c0||(c0=1,function(e){var t=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),U={},G=0;G<$.length;G++)U[$[G]]=Object.getOwnPropertyDescriptor(j,$[G]);return U},r=/%[sdj%]/g;e.format=function(B){if(!H(B)){for(var j=[],$=0;$<arguments.length;$++)j.push(u(arguments[$]));return j.join(" ")}for(var $=1,U=arguments,G=U.length,de=String(B).replace(r,function(fe){if(fe==="%%")return"%";if($>=G)return fe;switch(fe){case"%s":return String(U[$++]);case"%d":return Number(U[$++]);case"%j":try{return JSON.stringify(U[$++])}catch{return"[Circular]"}default:return fe}}),oe=U[$];$<G;oe=U[++$])v(oe)||!le(oe)?de+=" "+oe:de+=" "+u(oe);return de},e.deprecate=function(B,j){if(typeof ee.dist.process<"u"&&ee.dist.process.noDeprecation===!0)return B;if(typeof ee.dist.process>"u")return function(){return e.deprecate(B,j).apply(this,arguments)};var $=!1;function U(){if(!$){if(ee.dist.process.throwDeprecation)throw new Error(j);ee.dist.process.traceDeprecation?console.trace(j):console.error(j),$=!0}return B.apply(this,arguments)}return U};var i={},a=/^$/;if(ee.dist.process.env.NODE_DEBUG){var s=ee.dist.process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}e.debuglog=function(B){if(B=B.toUpperCase(),!i[B])if(a.test(B)){var j=ee.dist.process.pid;i[B]=function(){var $=e.format.apply(e,arguments);console.error("%s %d: %s",B,j,$)}}else i[B]=function(){};return i[B]};function u(B,j){var $={seen:[],stylize:c};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),R(j)?$.showHidden=j:j&&e._extend($,j),ie($.showHidden)&&($.showHidden=!1),ie($.depth)&&($.depth=2),ie($.colors)&&($.colors=!1),ie($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=d),h($,B,$.depth)}e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(B,j){var $=u.styles[j];return $?"\x1B["+u.colors[$][0]+"m"+B+"\x1B["+u.colors[$][1]+"m":B}function c(B,j){return B}function l(B){var j={};return B.forEach(function($,U){j[$]=!0}),j}function h(B,j,$){if(B.customInspect&&j&&m(j.inspect)&&j.inspect!==e.inspect&&!(j.constructor&&j.constructor.prototype===j)){var U=j.inspect($,B);return H(U)||(U=h(B,U,$)),U}var G=g(B,j);if(G)return G;var de=Object.keys(j),oe=l(de);if(B.showHidden&&(de=Object.getOwnPropertyNames(j)),ve(j)&&(de.indexOf("message")>=0||de.indexOf("description")>=0))return b(j);if(de.length===0){if(m(j)){var fe=j.name?": "+j.name:"";return B.stylize("[Function"+fe+"]","special")}if(he(j))return B.stylize(RegExp.prototype.toString.call(j),"regexp");if(Ee(j))return B.stylize(Date.prototype.toString.call(j),"date");if(ve(j))return b(j)}var Se="",Be=!1,Me=["{","}"];if(E(j)&&(Be=!0,Me=["[","]"]),m(j)){var z=j.name?": "+j.name:"";Se=" [Function"+z+"]"}if(he(j)&&(Se=" "+RegExp.prototype.toString.call(j)),Ee(j)&&(Se=" "+Date.prototype.toUTCString.call(j)),ve(j)&&(Se=" "+b(j)),de.length===0&&(!Be||j.length==0))return Me[0]+Se+Me[1];if($<0)return he(j)?B.stylize(RegExp.prototype.toString.call(j),"regexp"):B.stylize("[Object]","special");B.seen.push(j);var J;return Be?J=_(B,j,$,oe,de):J=de.map(function(ge){return T(B,j,$,oe,ge,Be)}),B.seen.pop(),k(J,Se,Me)}function g(B,j){if(ie(j))return B.stylize("undefined","undefined");if(H(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize($,"string")}if(S(j))return B.stylize(""+j,"number");if(R(j))return B.stylize(""+j,"boolean");if(v(j))return B.stylize("null","null")}function b(B){return"["+Error.prototype.toString.call(B)+"]"}function _(B,j,$,U,G){for(var de=[],oe=0,fe=j.length;oe<fe;++oe)ne(j,String(oe))?de.push(T(B,j,$,U,String(oe),!0)):de.push("");return G.forEach(function(Se){Se.match(/^\d+$/)||de.push(T(B,j,$,U,Se,!0))}),de}function T(B,j,$,U,G,de){var oe,fe,Se;if(Se=Object.getOwnPropertyDescriptor(j,G)||{value:j[G]},Se.get?Se.set?fe=B.stylize("[Getter/Setter]","special"):fe=B.stylize("[Getter]","special"):Se.set&&(fe=B.stylize("[Setter]","special")),ne(U,G)||(oe="["+G+"]"),fe||(B.seen.indexOf(Se.value)<0?(v($)?fe=h(B,Se.value,null):fe=h(B,Se.value,$-1),fe.indexOf(`
2
+ `)>-1&&(de?fe=fe.split(`
3
3
  `).map(function(Be){return" "+Be}).join(`
4
- `).slice(2):ue=`
5
- `+ue.split(`
4
+ `).slice(2):fe=`
5
+ `+fe.split(`
6
6
  `).map(function(Be){return" "+Be}).join(`
7
- `))):ue=B.stylize("[Circular]","special")),ie(oe)){if(de&&G.match(/^\d+$/))return ue;oe=JSON.stringify(""+G),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.slice(1,-1),oe=B.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=B.stylize(oe,"string"))}return oe+": "+ue}function k(B,j,$){var U=B.reduce(function(G,de){return de.indexOf(`
7
+ `))):fe=B.stylize("[Circular]","special")),ie(oe)){if(de&&G.match(/^\d+$/))return fe;oe=JSON.stringify(""+G),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.slice(1,-1),oe=B.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=B.stylize(oe,"string"))}return oe+": "+fe}function k(B,j,$){var U=B.reduce(function(G,de){return de.indexOf(`
8
8
  `)>=0,G+de.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?$[0]+(j===""?"":j+`
9
9
  `)+" "+B.join(`,
10
- `)+" "+$[1]:$[0]+j+" "+B.join(", ")+" "+$[1]}e.types=JT();function E(B){return Array.isArray(B)}e.isArray=E;function I(B){return typeof B=="boolean"}e.isBoolean=I;function v(B){return B===null}e.isNull=v;function w(B){return B==null}e.isNullOrUndefined=w;function S(B){return typeof B=="number"}e.isNumber=S;function H(B){return typeof B=="string"}e.isString=H;function Q(B){return typeof B=="symbol"}e.isSymbol=Q;function ie(B){return B===void 0}e.isUndefined=ie;function he(B){return le(B)&&P(B)==="[object RegExp]"}e.isRegExp=he,e.types.isRegExp=he;function le(B){return typeof B=="object"&&B!==null}e.isObject=le;function Ee(B){return le(B)&&P(B)==="[object Date]"}e.isDate=Ee,e.types.isDate=Ee;function ve(B){return le(B)&&(P(B)==="[object Error]"||B instanceof Error)}e.isError=ve,e.types.isNativeError=ve;function m(B){return typeof B=="function"}e.isFunction=m;function O(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B>"u"}e.isPrimitive=O,e.isBuffer=XT();function P(B){return Object.prototype.toString.call(B)}function Z(B){return B<10?"0"+B.toString(10):B.toString(10)}var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(){var B=new Date,j=[Z(B.getHours()),Z(B.getMinutes()),Z(B.getSeconds())].join(":");return[B.getDate(),ae[B.getMonth()],j].join(" ")}e.log=function(){console.log("%s - %s",X(),e.format.apply(e,arguments))},e.inherits=ee.requireInherits_browser(),e._extend=function(B,j){if(!j||!le(j))return B;for(var $=Object.keys(j),U=$.length;U--;)B[$[U]]=j[$[U]];return B};function ne(B,j){return Object.prototype.hasOwnProperty.call(B,j)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&j[F]){var $=j[F];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,F,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var U,G,de=new Promise(function(Se,Be){U=Se,G=Be}),oe=[],ue=0;ue<arguments.length;ue++)oe.push(arguments[ue]);oe.push(function(Se,Be){Se?G(Se):U(Be)});try{j.apply(this,oe)}catch(Se){G(Se)}return de}return Object.setPrototypeOf($,Object.getPrototypeOf(j)),F&&Object.defineProperty($,F,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,t(j))},e.promisify.custom=F;function x(B,j){if(!B){var $=new Error("Promise was rejected with a falsy value");$.reason=B,B=$}return j(B)}function Y(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var $=[],U=0;U<arguments.length;U++)$.push(arguments[U]);var G=$.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var de=this,oe=function(){return G.apply(de,arguments)};B.apply(this,$).then(function(ue){ee.dist.process.nextTick(oe.bind(null,null,ue))},function(ue){ee.dist.process.nextTick(x.bind(null,ue,oe))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(B)),Object.defineProperties(j,t(B)),j}e.callbackify=Y}(jc)),jc}var r0;function om(){if(r0)return Fc;r0=1;function e(v){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},e(v)}function t(v,w,S){return Object.defineProperty(v,"prototype",{writable:!1}),v}function r(v,w){if(!(v instanceof w))throw new TypeError("Cannot call a class as a function")}function i(v,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(w&&w.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),w&&a(v,w)}function a(v,w){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,Q){return H.__proto__=Q,H},a(v,w)}function s(v){var w=c();return function(){var H=l(v),Q;if(w){var ie=l(this).constructor;Q=Reflect.construct(H,arguments,ie)}else Q=H.apply(this,arguments);return f(this,Q)}}function f(v,w){if(w&&(e(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(v)}function d(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(v){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},l(v)}var h={},_,b;function y(v,w,S){S||(S=Error);function H(ie,he,le){return typeof w=="string"?w:w(ie,he,le)}var Q=function(ie){i(le,ie);var he=s(le);function le(Ee,ve,m){var O;return r(this,le),O=he.call(this,H(Ee,ve,m)),O.code=v,O}return t(le)}(S);h[v]=Q}function T(v,w){if(Array.isArray(v)){var S=v.length;return v=v.map(function(H){return String(H)}),S>2?"one of ".concat(w," ").concat(v.slice(0,S-1).join(", "),", or ")+v[S-1]:S===2?"one of ".concat(w," ").concat(v[0]," or ").concat(v[1]):"of ".concat(w," ").concat(v[0])}else return"of ".concat(w," ").concat(String(v))}function k(v,w,S){return v.substr(0,w.length)===w}function E(v,w,S){return(S===void 0||S>v.length)&&(S=v.length),v.substring(S-w.length,S)===w}function I(v,w,S){return typeof S!="number"&&(S=0),S+w.length>v.length?!1:v.indexOf(w,S)!==-1}return y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",function(v,w,S){_===void 0&&(_=wf()),_(typeof v=="string","'name' must be a string");var H;typeof w=="string"&&k(w,"not ")?(H="must not be",w=w.replace(/^not /,"")):H="must be";var Q;if(E(v," argument"))Q="The ".concat(v," ").concat(H," ").concat(T(w,"type"));else{var ie=I(v,".")?"property":"argument";Q='The "'.concat(v,'" ').concat(ie," ").concat(H," ").concat(T(w,"type"))}return Q+=". Received type ".concat(e(S)),Q},TypeError),y("ERR_INVALID_ARG_VALUE",function(v,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=zi());var H=b.inspect(w);return H.length>128&&(H="".concat(H.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(S,". Received ").concat(H)},TypeError),y("ERR_INVALID_RETURN_VALUE",function(v,w,S){var H;return S&&S.constructor&&S.constructor.name?H="instance of ".concat(S.constructor.name):H="type ".concat(e(S)),"Expected ".concat(v,' to be returned from the "').concat(w,'"')+" function but got ".concat(H,".")},TypeError),y("ERR_MISSING_ARGS",function(){for(var v=arguments.length,w=new Array(v),S=0;S<v;S++)w[S]=arguments[S];_===void 0&&(_=wf()),_(w.length>0,"At least one arg needs to be specified");var H="The ",Q=w.length;switch(w=w.map(function(ie){return'"'.concat(ie,'"')}),Q){case 1:H+="".concat(w[0]," argument");break;case 2:H+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:H+=w.slice(0,Q-1).join(", "),H+=", and ".concat(w[Q-1]," arguments");break}return"".concat(H," must be specified")},TypeError),Fc.codes=h,Fc}var yl,n0;function YT(){if(n0)return yl;n0=1;function e(F,x){var Y=Object.keys(F);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(F);x&&(B=B.filter(function(j){return Object.getOwnPropertyDescriptor(F,j).enumerable})),Y.push.apply(Y,B)}return Y}function t(F){for(var x=1;x<arguments.length;x++){var Y=arguments[x]!=null?arguments[x]:{};x%2?e(Object(Y),!0).forEach(function(B){r(F,B,Y[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(Y)):e(Object(Y)).forEach(function(B){Object.defineProperty(F,B,Object.getOwnPropertyDescriptor(Y,B))})}return F}function r(F,x,Y){return x=f(x),x in F?Object.defineProperty(F,x,{value:Y,enumerable:!0,configurable:!0,writable:!0}):F[x]=Y,F}function i(F,x){if(!(F instanceof x))throw new TypeError("Cannot call a class as a function")}function a(F,x){for(var Y=0;Y<x.length;Y++){var B=x[Y];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,f(B.key),B)}}function s(F,x,Y){return x&&a(F.prototype,x),Object.defineProperty(F,"prototype",{writable:!1}),F}function f(F){var x=d(F,"string");return v(x)==="symbol"?x:String(x)}function d(F,x){if(v(F)!=="object"||F===null)return F;var Y=F[Symbol.toPrimitive];if(Y!==void 0){var B=Y.call(F,x||"default");if(v(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(F)}function c(F,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(x&&x.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),x&&E(F,x)}function l(F){var x=T();return function(){var B=I(F),j;if(x){var $=I(this).constructor;j=Reflect.construct(B,arguments,$)}else j=B.apply(this,arguments);return h(this,j)}}function h(F,x){if(x&&(v(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(F)}function _(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function b(F){var x=typeof Map=="function"?new Map:void 0;return b=function(B){if(B===null||!k(B))return B;if(typeof B!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x<"u"){if(x.has(B))return x.get(B);x.set(B,j)}function j(){return y(B,arguments,I(this).constructor)}return j.prototype=Object.create(B.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),E(j,B)},b(F)}function y(F,x,Y){return T()?y=Reflect.construct.bind():y=function(j,$,U){var G=[null];G.push.apply(G,$);var de=Function.bind.apply(j,G),oe=new de;return U&&E(oe,U.prototype),oe},y.apply(null,arguments)}function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(F){return Function.toString.call(F).indexOf("[native code]")!==-1}function E(F,x){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,j){return B.__proto__=j,B},E(F,x)}function I(F){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},I(F)}function v(F){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},v(F)}var w=zi(),S=w.inspect,H=om(),Q=H.codes.ERR_INVALID_ARG_TYPE;function ie(F,x,Y){return(Y===void 0||Y>F.length)&&(Y=F.length),F.substring(Y-x.length,Y)===x}function he(F,x){if(x=Math.floor(x),F.length==0||x==0)return"";var Y=F.length*x;for(x=Math.floor(Math.log(x)/Math.log(2));x;)F+=F,x--;return F+=F.substring(0,Y-F.length),F}var le="",Ee="",ve="",m="",O={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},P=10;function Z(F){var x=Object.keys(F),Y=Object.create(Object.getPrototypeOf(F));return x.forEach(function(B){Y[B]=F[B]}),Object.defineProperty(Y,"message",{value:F.message}),Y}function ae(F){return S(F,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function X(F,x,Y){var B="",j="",$=0,U="",G=!1,de=ae(F),oe=de.split(`
11
- `),ue=ae(x).split(`
12
- `),Se=0,Be="";if(Y==="strictEqual"&&v(F)==="object"&&v(x)==="object"&&F!==null&&x!==null&&(Y="strictEqualObject"),oe.length===1&&ue.length===1&&oe[0]!==ue[0]){var Me=oe[0].length+ue[0].length;if(Me<=P){if((v(F)!=="object"||F===null)&&(v(x)!=="object"||x===null)&&(F!==0||x!==0))return"".concat(O[Y],`
10
+ `)+" "+$[1]:$[0]+j+" "+B.join(", ")+" "+$[1]}e.types=YO();function E(B){return Array.isArray(B)}e.isArray=E;function R(B){return typeof B=="boolean"}e.isBoolean=R;function v(B){return B===null}e.isNull=v;function w(B){return B==null}e.isNullOrUndefined=w;function S(B){return typeof B=="number"}e.isNumber=S;function H(B){return typeof B=="string"}e.isString=H;function Q(B){return typeof B=="symbol"}e.isSymbol=Q;function ie(B){return B===void 0}e.isUndefined=ie;function he(B){return le(B)&&P(B)==="[object RegExp]"}e.isRegExp=he,e.types.isRegExp=he;function le(B){return typeof B=="object"&&B!==null}e.isObject=le;function Ee(B){return le(B)&&P(B)==="[object Date]"}e.isDate=Ee,e.types.isDate=Ee;function ve(B){return le(B)&&(P(B)==="[object Error]"||B instanceof Error)}e.isError=ve,e.types.isNativeError=ve;function m(B){return typeof B=="function"}e.isFunction=m;function O(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B>"u"}e.isPrimitive=O,e.isBuffer=QO();function P(B){return Object.prototype.toString.call(B)}function Z(B){return B<10?"0"+B.toString(10):B.toString(10)}var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(){var B=new Date,j=[Z(B.getHours()),Z(B.getMinutes()),Z(B.getSeconds())].join(":");return[B.getDate(),ae[B.getMonth()],j].join(" ")}e.log=function(){console.log("%s - %s",X(),e.format.apply(e,arguments))},e.inherits=ee.requireInherits_browser(),e._extend=function(B,j){if(!j||!le(j))return B;for(var $=Object.keys(j),U=$.length;U--;)B[$[U]]=j[$[U]];return B};function ne(B,j){return Object.prototype.hasOwnProperty.call(B,j)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&j[F]){var $=j[F];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,F,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var U,G,de=new Promise(function(Se,Be){U=Se,G=Be}),oe=[],fe=0;fe<arguments.length;fe++)oe.push(arguments[fe]);oe.push(function(Se,Be){Se?G(Se):U(Be)});try{j.apply(this,oe)}catch(Se){G(Se)}return de}return Object.setPrototypeOf($,Object.getPrototypeOf(j)),F&&Object.defineProperty($,F,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,t(j))},e.promisify.custom=F;function x(B,j){if(!B){var $=new Error("Promise was rejected with a falsy value");$.reason=B,B=$}return j(B)}function Y(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var $=[],U=0;U<arguments.length;U++)$.push(arguments[U]);var G=$.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var de=this,oe=function(){return G.apply(de,arguments)};B.apply(this,$).then(function(fe){ee.dist.process.nextTick(oe.bind(null,null,fe))},function(fe){ee.dist.process.nextTick(x.bind(null,fe,oe))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(B)),Object.defineProperties(j,t(B)),j}e.callbackify=Y}(jc)),jc}var l0;function pm(){if(l0)return Fc;l0=1;function e(v){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},e(v)}function t(v,w,S){return Object.defineProperty(v,"prototype",{writable:!1}),v}function r(v,w){if(!(v instanceof w))throw new TypeError("Cannot call a class as a function")}function i(v,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(w&&w.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),w&&a(v,w)}function a(v,w){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,Q){return H.__proto__=Q,H},a(v,w)}function s(v){var w=c();return function(){var H=l(v),Q;if(w){var ie=l(this).constructor;Q=Reflect.construct(H,arguments,ie)}else Q=H.apply(this,arguments);return u(this,Q)}}function u(v,w){if(w&&(e(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(v)}function d(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(v){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},l(v)}var h={},g,b;function _(v,w,S){S||(S=Error);function H(ie,he,le){return typeof w=="string"?w:w(ie,he,le)}var Q=function(ie){i(le,ie);var he=s(le);function le(Ee,ve,m){var O;return r(this,le),O=he.call(this,H(Ee,ve,m)),O.code=v,O}return t(le)}(S);h[v]=Q}function T(v,w){if(Array.isArray(v)){var S=v.length;return v=v.map(function(H){return String(H)}),S>2?"one of ".concat(w," ").concat(v.slice(0,S-1).join(", "),", or ")+v[S-1]:S===2?"one of ".concat(w," ").concat(v[0]," or ").concat(v[1]):"of ".concat(w," ").concat(v[0])}else return"of ".concat(w," ").concat(String(v))}function k(v,w,S){return v.substr(0,w.length)===w}function E(v,w,S){return(S===void 0||S>v.length)&&(S=v.length),v.substring(S-w.length,S)===w}function R(v,w,S){return typeof S!="number"&&(S=0),S+w.length>v.length?!1:v.indexOf(w,S)!==-1}return _("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),_("ERR_INVALID_ARG_TYPE",function(v,w,S){g===void 0&&(g=vu()),g(typeof v=="string","'name' must be a string");var H;typeof w=="string"&&k(w,"not ")?(H="must not be",w=w.replace(/^not /,"")):H="must be";var Q;if(E(v," argument"))Q="The ".concat(v," ").concat(H," ").concat(T(w,"type"));else{var ie=R(v,".")?"property":"argument";Q='The "'.concat(v,'" ').concat(ie," ").concat(H," ").concat(T(w,"type"))}return Q+=". Received type ".concat(e(S)),Q},TypeError),_("ERR_INVALID_ARG_VALUE",function(v,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=zi());var H=b.inspect(w);return H.length>128&&(H="".concat(H.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(S,". Received ").concat(H)},TypeError),_("ERR_INVALID_RETURN_VALUE",function(v,w,S){var H;return S&&S.constructor&&S.constructor.name?H="instance of ".concat(S.constructor.name):H="type ".concat(e(S)),"Expected ".concat(v,' to be returned from the "').concat(w,'"')+" function but got ".concat(H,".")},TypeError),_("ERR_MISSING_ARGS",function(){for(var v=arguments.length,w=new Array(v),S=0;S<v;S++)w[S]=arguments[S];g===void 0&&(g=vu()),g(w.length>0,"At least one arg needs to be specified");var H="The ",Q=w.length;switch(w=w.map(function(ie){return'"'.concat(ie,'"')}),Q){case 1:H+="".concat(w[0]," argument");break;case 2:H+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:H+=w.slice(0,Q-1).join(", "),H+=", and ".concat(w[Q-1]," arguments");break}return"".concat(H," must be specified")},TypeError),Fc.codes=h,Fc}var wl,d0;function e2(){if(d0)return wl;d0=1;function e(F,x){var Y=Object.keys(F);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(F);x&&(B=B.filter(function(j){return Object.getOwnPropertyDescriptor(F,j).enumerable})),Y.push.apply(Y,B)}return Y}function t(F){for(var x=1;x<arguments.length;x++){var Y=arguments[x]!=null?arguments[x]:{};x%2?e(Object(Y),!0).forEach(function(B){r(F,B,Y[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(Y)):e(Object(Y)).forEach(function(B){Object.defineProperty(F,B,Object.getOwnPropertyDescriptor(Y,B))})}return F}function r(F,x,Y){return x=u(x),x in F?Object.defineProperty(F,x,{value:Y,enumerable:!0,configurable:!0,writable:!0}):F[x]=Y,F}function i(F,x){if(!(F instanceof x))throw new TypeError("Cannot call a class as a function")}function a(F,x){for(var Y=0;Y<x.length;Y++){var B=x[Y];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,u(B.key),B)}}function s(F,x,Y){return x&&a(F.prototype,x),Object.defineProperty(F,"prototype",{writable:!1}),F}function u(F){var x=d(F,"string");return v(x)==="symbol"?x:String(x)}function d(F,x){if(v(F)!=="object"||F===null)return F;var Y=F[Symbol.toPrimitive];if(Y!==void 0){var B=Y.call(F,x||"default");if(v(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(F)}function c(F,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(x&&x.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),x&&E(F,x)}function l(F){var x=T();return function(){var B=R(F),j;if(x){var $=R(this).constructor;j=Reflect.construct(B,arguments,$)}else j=B.apply(this,arguments);return h(this,j)}}function h(F,x){if(x&&(v(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(F)}function g(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function b(F){var x=typeof Map=="function"?new Map:void 0;return b=function(B){if(B===null||!k(B))return B;if(typeof B!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x<"u"){if(x.has(B))return x.get(B);x.set(B,j)}function j(){return _(B,arguments,R(this).constructor)}return j.prototype=Object.create(B.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),E(j,B)},b(F)}function _(F,x,Y){return T()?_=Reflect.construct.bind():_=function(j,$,U){var G=[null];G.push.apply(G,$);var de=Function.bind.apply(j,G),oe=new de;return U&&E(oe,U.prototype),oe},_.apply(null,arguments)}function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(F){return Function.toString.call(F).indexOf("[native code]")!==-1}function E(F,x){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,j){return B.__proto__=j,B},E(F,x)}function R(F){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},R(F)}function v(F){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},v(F)}var w=zi(),S=w.inspect,H=pm(),Q=H.codes.ERR_INVALID_ARG_TYPE;function ie(F,x,Y){return(Y===void 0||Y>F.length)&&(Y=F.length),F.substring(Y-x.length,Y)===x}function he(F,x){if(x=Math.floor(x),F.length==0||x==0)return"";var Y=F.length*x;for(x=Math.floor(Math.log(x)/Math.log(2));x;)F+=F,x--;return F+=F.substring(0,Y-F.length),F}var le="",Ee="",ve="",m="",O={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},P=10;function Z(F){var x=Object.keys(F),Y=Object.create(Object.getPrototypeOf(F));return x.forEach(function(B){Y[B]=F[B]}),Object.defineProperty(Y,"message",{value:F.message}),Y}function ae(F){return S(F,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function X(F,x,Y){var B="",j="",$=0,U="",G=!1,de=ae(F),oe=de.split(`
11
+ `),fe=ae(x).split(`
12
+ `),Se=0,Be="";if(Y==="strictEqual"&&v(F)==="object"&&v(x)==="object"&&F!==null&&x!==null&&(Y="strictEqualObject"),oe.length===1&&fe.length===1&&oe[0]!==fe[0]){var Me=oe[0].length+fe[0].length;if(Me<=P){if((v(F)!=="object"||F===null)&&(v(x)!=="object"||x===null)&&(F!==0||x!==0))return"".concat(O[Y],`
13
13
 
14
- `)+"".concat(oe[0]," !== ").concat(ue[0],`
15
- `)}else if(Y!=="strictEqualObject"){var z=ee.dist.process.stderr&&ee.dist.process.stderr.isTTY?ee.dist.process.stderr.columns:80;if(Me<z){for(;oe[0][Se]===ue[0][Se];)Se++;Se>2&&(Be=`
16
- `.concat(he(" ",Se),"^"),Se=0)}}}for(var J=oe[oe.length-1],ge=ue[ue.length-1];J===ge&&(Se++<2?U=`
17
- `.concat(J).concat(U):B=J,oe.pop(),ue.pop(),!(oe.length===0||ue.length===0));)J=oe[oe.length-1],ge=ue[ue.length-1];var Ne=Math.max(oe.length,ue.length);if(Ne===0){var Te=de.split(`
18
- `);if(Te.length>30)for(Te[26]="".concat(le,"...").concat(m);Te.length>27;)Te.pop();return"".concat(O.notIdentical,`
14
+ `)+"".concat(oe[0]," !== ").concat(fe[0],`
15
+ `)}else if(Y!=="strictEqualObject"){var z=ee.dist.process.stderr&&ee.dist.process.stderr.isTTY?ee.dist.process.stderr.columns:80;if(Me<z){for(;oe[0][Se]===fe[0][Se];)Se++;Se>2&&(Be=`
16
+ `.concat(he(" ",Se),"^"),Se=0)}}}for(var J=oe[oe.length-1],ge=fe[fe.length-1];J===ge&&(Se++<2?U=`
17
+ `.concat(J).concat(U):B=J,oe.pop(),fe.pop(),!(oe.length===0||fe.length===0));)J=oe[oe.length-1],ge=fe[fe.length-1];var Ne=Math.max(oe.length,fe.length);if(Ne===0){var Oe=de.split(`
18
+ `);if(Oe.length>30)for(Oe[26]="".concat(le,"...").concat(m);Oe.length>27;)Oe.pop();return"".concat(O.notIdentical,`
19
19
 
20
- `).concat(Te.join(`
20
+ `).concat(Oe.join(`
21
21
  `),`
22
22
  `)}Se>3&&(U=`
23
23
  `.concat(le,"...").concat(m).concat(U),G=!0),B!==""&&(U=`
24
24
  `.concat(B).concat(U),B="");var je=0,me=O[Y]+`
25
25
  `.concat(Ee,"+ actual").concat(m," ").concat(ve,"- expected").concat(m),Ye=" ".concat(le,"...").concat(m," Lines skipped");for(Se=0;Se<Ne;Se++){var et=Se-$;if(oe.length<Se+1)et>1&&Se>2&&(et>4?(j+=`
26
26
  `.concat(le,"...").concat(m),G=!0):et>3&&(j+=`
27
- `.concat(ue[Se-2]),je++),j+=`
28
- `.concat(ue[Se-1]),je++),$=Se,B+=`
29
- `.concat(ve,"-").concat(m," ").concat(ue[Se]),je++;else if(ue.length<Se+1)et>1&&Se>2&&(et>4?(j+=`
27
+ `.concat(fe[Se-2]),je++),j+=`
28
+ `.concat(fe[Se-1]),je++),$=Se,B+=`
29
+ `.concat(ve,"-").concat(m," ").concat(fe[Se]),je++;else if(fe.length<Se+1)et>1&&Se>2&&(et>4?(j+=`
30
30
  `.concat(le,"...").concat(m),G=!0):et>3&&(j+=`
31
31
  `.concat(oe[Se-2]),je++),j+=`
32
32
  `.concat(oe[Se-1]),je++),$=Se,j+=`
33
- `.concat(Ee,"+").concat(m," ").concat(oe[Se]),je++;else{var re=ue[Se],xe=oe[Se],M=xe!==re&&(!ie(xe,",")||xe.slice(0,-1)!==re);M&&ie(re,",")&&re.slice(0,-1)===xe&&(M=!1,xe+=","),M?(et>1&&Se>2&&(et>4?(j+=`
33
+ `.concat(Ee,"+").concat(m," ").concat(oe[Se]),je++;else{var re=fe[Se],xe=oe[Se],M=xe!==re&&(!ie(xe,",")||xe.slice(0,-1)!==re);M&&ie(re,",")&&re.slice(0,-1)===xe&&(M=!1,xe+=","),M?(et>1&&Se>2&&(et>4?(j+=`
34
34
  `.concat(le,"...").concat(m),G=!0):et>3&&(j+=`
35
35
  `.concat(oe[Se-2]),je++),j+=`
36
36
  `.concat(oe[Se-1]),je++),$=Se,j+=`
@@ -40,73 +40,73 @@
40
40
  `).concat(j,`
41
41
  `).concat(le,"...").concat(m).concat(B,`
42
42
  `)+"".concat(le,"...").concat(m)}return"".concat(me).concat(G?Ye:"",`
43
- `).concat(j).concat(B).concat(U).concat(Be)}var ne=function(F,x){c(B,F);var Y=l(B);function B(j){var $;if(i(this,B),v(j)!=="object"||j===null)throw new Q("options","Object",j);var U=j.message,G=j.operator,de=j.stackStartFn,oe=j.actual,ue=j.expected,Se=Error.stackTraceLimit;if(Error.stackTraceLimit=0,U!=null)$=Y.call(this,String(U));else if(ee.dist.process.stderr&&ee.dist.process.stderr.isTTY&&(ee.dist.process.stderr&&ee.dist.process.stderr.getColorDepth&&ee.dist.process.stderr.getColorDepth()!==1?(le="\x1B[34m",Ee="\x1B[32m",m="\x1B[39m",ve="\x1B[31m"):(le="",Ee="",m="",ve="")),v(oe)==="object"&&oe!==null&&v(ue)==="object"&&ue!==null&&"stack"in oe&&oe instanceof Error&&"stack"in ue&&ue instanceof Error&&(oe=Z(oe),ue=Z(ue)),G==="deepStrictEqual"||G==="strictEqual")$=Y.call(this,X(oe,ue,G));else if(G==="notDeepStrictEqual"||G==="notStrictEqual"){var Be=O[G],Me=ae(oe).split(`
43
+ `).concat(j).concat(B).concat(U).concat(Be)}var ne=function(F,x){c(B,F);var Y=l(B);function B(j){var $;if(i(this,B),v(j)!=="object"||j===null)throw new Q("options","Object",j);var U=j.message,G=j.operator,de=j.stackStartFn,oe=j.actual,fe=j.expected,Se=Error.stackTraceLimit;if(Error.stackTraceLimit=0,U!=null)$=Y.call(this,String(U));else if(ee.dist.process.stderr&&ee.dist.process.stderr.isTTY&&(ee.dist.process.stderr&&ee.dist.process.stderr.getColorDepth&&ee.dist.process.stderr.getColorDepth()!==1?(le="\x1B[34m",Ee="\x1B[32m",m="\x1B[39m",ve="\x1B[31m"):(le="",Ee="",m="",ve="")),v(oe)==="object"&&oe!==null&&v(fe)==="object"&&fe!==null&&"stack"in oe&&oe instanceof Error&&"stack"in fe&&fe instanceof Error&&(oe=Z(oe),fe=Z(fe)),G==="deepStrictEqual"||G==="strictEqual")$=Y.call(this,X(oe,fe,G));else if(G==="notDeepStrictEqual"||G==="notStrictEqual"){var Be=O[G],Me=ae(oe).split(`
44
44
  `);if(G==="notStrictEqual"&&v(oe)==="object"&&oe!==null&&(Be=O.notStrictEqualObject),Me.length>30)for(Me[26]="".concat(le,"...").concat(m);Me.length>27;)Me.pop();Me.length===1?$=Y.call(this,"".concat(Be," ").concat(Me[0])):$=Y.call(this,"".concat(Be,`
45
45
 
46
46
  `).concat(Me.join(`
47
47
  `),`
48
48
  `))}else{var z=ae(oe),J="",ge=O[G];G==="notDeepEqual"||G==="notEqual"?(z="".concat(O[G],`
49
49
 
50
- `).concat(z),z.length>1024&&(z="".concat(z.slice(0,1021),"..."))):(J="".concat(ae(ue)),z.length>512&&(z="".concat(z.slice(0,509),"...")),J.length>512&&(J="".concat(J.slice(0,509),"...")),G==="deepEqual"||G==="equal"?z="".concat(ge,`
50
+ `).concat(z),z.length>1024&&(z="".concat(z.slice(0,1021),"..."))):(J="".concat(ae(fe)),z.length>512&&(z="".concat(z.slice(0,509),"...")),J.length>512&&(J="".concat(J.slice(0,509),"...")),G==="deepEqual"||G==="equal"?z="".concat(ge,`
51
51
 
52
52
  `).concat(z,`
53
53
 
54
54
  should equal
55
55
 
56
- `):J=" ".concat(G," ").concat(J)),$=Y.call(this,"".concat(z).concat(J))}return Error.stackTraceLimit=Se,$.generatedMessage=!U,Object.defineProperty(_($),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),$.code="ERR_ASSERTION",$.actual=oe,$.expected=ue,$.operator=G,Error.captureStackTrace&&Error.captureStackTrace(_($),de),$.stack,$.name="AssertionError",h($)}return s(B,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:x,value:function($,U){return S(this,t(t({},U),{},{customInspect:!1,depth:0}))}}]),B}(b(Error),S.custom);return yl=ne,yl}var i0=Object.prototype.toString,am=function(t){var r=i0.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&i0.call(t.callee)==="[object Function]"),i},_l,o0;function QT(){if(o0)return _l;o0=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=am,a=Object.prototype.propertyIsEnumerable,s=!a.call({toString:null},"toString"),f=a.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(b){var y=b.constructor;return y&&y.prototype===b},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var b in window)try{if(!l["$"+b]&&t.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{c(window[b])}catch{return!0}}catch{return!0}return!1}(),_=function(b){if(typeof window>"u"||!h)return c(b);try{return c(b)}catch{return!1}};e=function(y){var T=y!==null&&typeof y=="object",k=r.call(y)==="[object Function]",E=i(y),I=T&&r.call(y)==="[object String]",v=[];if(!T&&!k&&!E)throw new TypeError("Object.keys called on a non-object");var w=f&&k;if(I&&y.length>0&&!t.call(y,0))for(var S=0;S<y.length;++S)v.push(String(S));if(E&&y.length>0)for(var H=0;H<y.length;++H)v.push(String(H));else for(var Q in y)!(w&&Q==="prototype")&&t.call(y,Q)&&v.push(String(Q));if(s)for(var ie=_(y),he=0;he<d.length;++he)!(ie&&d[he]==="constructor")&&t.call(y,d[he])&&v.push(d[he]);return v}}return _l=e,_l}var e2=Array.prototype.slice,t2=am,a0=Object.keys,pf=a0?function(t){return a0(t)}:QT(),s0=Object.keys;pf.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(i){return t2(i)?s0(e2.call(i)):s0(i)})}else Object.keys=pf;return Object.keys||pf};var sm=pf,bl,f0;function r2(){if(f0)return bl;f0=1;var e=sm,t=dh()(),r=Ma,i=Kb(),a=r("Array.prototype.push"),s=r("Object.prototype.propertyIsEnumerable"),f=t?i.getOwnPropertySymbols:null;return bl=function(c,l){if(c==null)throw new TypeError("target must be an object");var h=i(c);if(arguments.length===1)return h;for(var _=1;_<arguments.length;++_){var b=i(arguments[_]),y=e(b),T=t&&(i.getOwnPropertySymbols||f);if(T)for(var k=T(b),E=0;E<k.length;++E){var I=k[E];s(b,I)&&a(y,I)}for(var v=0;v<y.length;++v){var w=y[v];if(s(b,w)){var S=b[w];h[w]=S}}}return h},bl}var ml,u0;function n2(){if(u0)return ml;u0=1;var e=r2(),t=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",a=i.split(""),s={},f=0;f<a.length;++f)s[a[f]]=a[f];var d=Object.assign({},s),c="";for(var l in d)c+=l;return i!==c},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var i=Object.preventExtensions({1:2});try{Object.assign(i,"xy")}catch{return i[1]==="y"}return!1};return ml=function(){return!Object.assign||t()||r()?e:Object.assign},ml}var vl,c0;function fm(){if(c0)return vl;c0=1;var e=function(t){return t!==t};return vl=function(r,i){return r===0&&i===0?1/r===1/i:!!(r===i||e(r)&&e(i))},vl}var wl,l0;function _h(){if(l0)return wl;l0=1;var e=fm();return wl=function(){return typeof Object.is=="function"?Object.is:e},wl}var El,d0;function i2(){if(d0)return El;d0=1;var e=Da(),t=$f,r=t(e("String.prototype.indexOf"));return El=function(a,s){var f=e(a,!!s);return typeof f=="function"&&r(a,".prototype.")>-1?t(f):f},El}var Sl,h0;function xf(){if(h0)return Sl;h0=1;var e=sm,t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,i=Array.prototype.concat,a=tm,s=function(l){return typeof l=="function"&&r.call(l)==="[object Function]"},f=nm(),d=function(l,h,_,b){if(h in l){if(b===!0){if(l[h]===_)return}else if(!s(b)||!b())return}f?a(l,h,_,!0):a(l,h,_)},c=function(l,h){var _=arguments.length>2?arguments[2]:{},b=e(h);t&&(b=i.call(b,Object.getOwnPropertySymbols(h)));for(var y=0;y<b.length;y+=1)d(l,b[y],h[b[y]],_[b[y]])};return c.supportsDescriptors=!!f,Sl=c,Sl}var Al,p0;function o2(){if(p0)return Al;p0=1;var e=_h(),t=xf();return Al=function(){var i=e();return t(Object,{is:i},{is:function(){return Object.is!==i}}),i},Al}var Rl,g0;function a2(){if(g0)return Rl;g0=1;var e=xf(),t=$f,r=fm(),i=_h(),a=o2(),s=t(i(),Object);return e(s,{getPolyfill:i,implementation:r,shim:a}),Rl=s,Rl}var Il,y0;function um(){return y0||(y0=1,Il=function(t){return t!==t}),Il}var Ol,_0;function cm(){if(_0)return Ol;_0=1;var e=um();return Ol=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Ol}var Tl,b0;function s2(){if(b0)return Tl;b0=1;var e=xf(),t=cm();return Tl=function(){var i=t();return e(Number,{isNaN:i},{isNaN:function(){return Number.isNaN!==i}}),i},Tl}var Pl,m0;function f2(){if(m0)return Pl;m0=1;var e=$f,t=xf(),r=um(),i=cm(),a=s2(),s=e(i(),Number);return t(s,{getPolyfill:i,implementation:r,shim:a}),Pl=s,Pl}var Cl,v0;function u2(){if(v0)return Cl;v0=1;function e(M,ce){return s(M)||a(M,ce)||r(M,ce)||t()}function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r(M,ce){if(M){if(typeof M=="string")return i(M,ce);var De=Object.prototype.toString.call(M).slice(8,-1);if(De==="Object"&&M.constructor&&(De=M.constructor.name),De==="Map"||De==="Set")return Array.from(M);if(De==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(De))return i(M,ce)}}function i(M,ce){(ce==null||ce>M.length)&&(ce=M.length);for(var De=0,Ve=new Array(ce);De<ce;De++)Ve[De]=M[De];return Ve}function a(M,ce){var De=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(De!=null){var Ve,Ue,ke,Xe,D=[],Re=!0,$e=!1;try{if(ke=(De=De.call(M)).next,ce!==0)for(;!(Re=(Ve=ke.call(De)).done)&&(D.push(Ve.value),D.length!==ce);Re=!0);}catch(qe){$e=!0,Ue=qe}finally{try{if(!Re&&De.return!=null&&(Xe=De.return(),Object(Xe)!==Xe))return}finally{if($e)throw Ue}}return D}}function s(M){if(Array.isArray(M))return M}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},f(M)}var d=/a/g.flags!==void 0,c=function(ce){var De=[];return ce.forEach(function(Ve){return De.push(Ve)}),De},l=function(ce){var De=[];return ce.forEach(function(Ve,Ue){return De.push([Ue,Ve])}),De},h=Object.is?Object.is:a2(),_=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},b=Number.isNaN?Number.isNaN:f2();function y(M){return M.call.bind(M)}var T=y(Object.prototype.hasOwnProperty),k=y(Object.prototype.propertyIsEnumerable),E=y(Object.prototype.toString),I=zi().types,v=I.isAnyArrayBuffer,w=I.isArrayBufferView,S=I.isDate,H=I.isMap,Q=I.isRegExp,ie=I.isSet,he=I.isNativeError,le=I.isBoxedPrimitive,Ee=I.isNumberObject,ve=I.isStringObject,m=I.isBooleanObject,O=I.isBigIntObject,P=I.isSymbolObject,Z=I.isFloat32Array,ae=I.isFloat64Array;function X(M){if(M.length===0||M.length>10)return!0;for(var ce=0;ce<M.length;ce++){var De=M.charCodeAt(ce);if(De<48||De>57)return!0}return M.length===10&&M>=Math.pow(2,32)}function ne(M){return Object.keys(M).filter(X).concat(_(M).filter(Object.prototype.propertyIsEnumerable.bind(M)))}/*!
56
+ `):J=" ".concat(G," ").concat(J)),$=Y.call(this,"".concat(z).concat(J))}return Error.stackTraceLimit=Se,$.generatedMessage=!U,Object.defineProperty(g($),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),$.code="ERR_ASSERTION",$.actual=oe,$.expected=fe,$.operator=G,Error.captureStackTrace&&Error.captureStackTrace(g($),de),$.stack,$.name="AssertionError",h($)}return s(B,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:x,value:function($,U){return S(this,t(t({},U),{},{customInspect:!1,depth:0}))}}]),B}(b(Error),S.custom);return wl=ne,wl}var h0=Object.prototype.toString,gm=function(t){var r=h0.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&h0.call(t.callee)==="[object Function]"),i},El,p0;function t2(){if(p0)return El;p0=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=gm,a=Object.prototype.propertyIsEnumerable,s=!a.call({toString:null},"toString"),u=a.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(b){var _=b.constructor;return _&&_.prototype===b},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var b in window)try{if(!l["$"+b]&&t.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{c(window[b])}catch{return!0}}catch{return!0}return!1}(),g=function(b){if(typeof window>"u"||!h)return c(b);try{return c(b)}catch{return!1}};e=function(_){var T=_!==null&&typeof _=="object",k=r.call(_)==="[object Function]",E=i(_),R=T&&r.call(_)==="[object String]",v=[];if(!T&&!k&&!E)throw new TypeError("Object.keys called on a non-object");var w=u&&k;if(R&&_.length>0&&!t.call(_,0))for(var S=0;S<_.length;++S)v.push(String(S));if(E&&_.length>0)for(var H=0;H<_.length;++H)v.push(String(H));else for(var Q in _)!(w&&Q==="prototype")&&t.call(_,Q)&&v.push(String(Q));if(s)for(var ie=g(_),he=0;he<d.length;++he)!(ie&&d[he]==="constructor")&&t.call(_,d[he])&&v.push(d[he]);return v}}return El=e,El}var r2=Array.prototype.slice,n2=gm,g0=Object.keys,hu=g0?function(t){return g0(t)}:t2(),y0=Object.keys;hu.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(i){return n2(i)?y0(r2.call(i)):y0(i)})}else Object.keys=hu;return Object.keys||hu};var ym=hu,Sl,_0;function i2(){if(_0)return Sl;_0=1;var e=ym,t=_h()(),r=Ma,i=im(),a=r("Array.prototype.push"),s=r("Object.prototype.propertyIsEnumerable"),u=t?i.getOwnPropertySymbols:null;return Sl=function(c,l){if(c==null)throw new TypeError("target must be an object");var h=i(c);if(arguments.length===1)return h;for(var g=1;g<arguments.length;++g){var b=i(arguments[g]),_=e(b),T=t&&(i.getOwnPropertySymbols||u);if(T)for(var k=T(b),E=0;E<k.length;++E){var R=k[E];s(b,R)&&a(_,R)}for(var v=0;v<_.length;++v){var w=_[v];if(s(b,w)){var S=b[w];h[w]=S}}}return h},Sl}var Al,b0;function o2(){if(b0)return Al;b0=1;var e=i2(),t=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",a=i.split(""),s={},u=0;u<a.length;++u)s[a[u]]=a[u];var d=Object.assign({},s),c="";for(var l in d)c+=l;return i!==c},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var i=Object.preventExtensions({1:2});try{Object.assign(i,"xy")}catch{return i[1]==="y"}return!1};return Al=function(){return!Object.assign||t()||r()?e:Object.assign},Al}var Rl,m0;function _m(){if(m0)return Rl;m0=1;var e=function(t){return t!==t};return Rl=function(r,i){return r===0&&i===0?1/r===1/i:!!(r===i||e(r)&&e(i))},Rl}var Il,v0;function Eh(){if(v0)return Il;v0=1;var e=_m();return Il=function(){return typeof Object.is=="function"?Object.is:e},Il}var Tl,w0;function a2(){if(w0)return Tl;w0=1;var e=Da(),t=Bu,r=t(e("String.prototype.indexOf"));return Tl=function(a,s){var u=e(a,!!s);return typeof u=="function"&&r(a,".prototype.")>-1?t(u):u},Tl}var Ol,E0;function $u(){if(E0)return Ol;E0=1;var e=ym,t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,i=Array.prototype.concat,a=cm,s=function(l){return typeof l=="function"&&r.call(l)==="[object Function]"},u=dm(),d=function(l,h,g,b){if(h in l){if(b===!0){if(l[h]===g)return}else if(!s(b)||!b())return}u?a(l,h,g,!0):a(l,h,g)},c=function(l,h){var g=arguments.length>2?arguments[2]:{},b=e(h);t&&(b=i.call(b,Object.getOwnPropertySymbols(h)));for(var _=0;_<b.length;_+=1)d(l,b[_],h[b[_]],g[b[_]])};return c.supportsDescriptors=!!u,Ol=c,Ol}var Pl,S0;function s2(){if(S0)return Pl;S0=1;var e=Eh(),t=$u();return Pl=function(){var i=e();return t(Object,{is:i},{is:function(){return Object.is!==i}}),i},Pl}var Cl,A0;function u2(){if(A0)return Cl;A0=1;var e=$u(),t=Bu,r=_m(),i=Eh(),a=s2(),s=t(i(),Object);return e(s,{getPolyfill:i,implementation:r,shim:a}),Cl=s,Cl}var Ll,R0;function bm(){return R0||(R0=1,Ll=function(t){return t!==t}),Ll}var Nl,I0;function mm(){if(I0)return Nl;I0=1;var e=bm();return Nl=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Nl}var Bl,T0;function f2(){if(T0)return Bl;T0=1;var e=$u(),t=mm();return Bl=function(){var i=t();return e(Number,{isNaN:i},{isNaN:function(){return Number.isNaN!==i}}),i},Bl}var $l,O0;function c2(){if(O0)return $l;O0=1;var e=Bu,t=$u(),r=bm(),i=mm(),a=f2(),s=e(i(),Number);return t(s,{getPolyfill:i,implementation:r,shim:a}),$l=s,$l}var xl,P0;function l2(){if(P0)return xl;P0=1;function e(M,ce){return s(M)||a(M,ce)||r(M,ce)||t()}function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r(M,ce){if(M){if(typeof M=="string")return i(M,ce);var De=Object.prototype.toString.call(M).slice(8,-1);if(De==="Object"&&M.constructor&&(De=M.constructor.name),De==="Map"||De==="Set")return Array.from(M);if(De==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(De))return i(M,ce)}}function i(M,ce){(ce==null||ce>M.length)&&(ce=M.length);for(var De=0,Ve=new Array(ce);De<ce;De++)Ve[De]=M[De];return Ve}function a(M,ce){var De=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(De!=null){var Ve,Ue,ke,Xe,D=[],Re=!0,$e=!1;try{if(ke=(De=De.call(M)).next,ce!==0)for(;!(Re=(Ve=ke.call(De)).done)&&(D.push(Ve.value),D.length!==ce);Re=!0);}catch(qe){$e=!0,Ue=qe}finally{try{if(!Re&&De.return!=null&&(Xe=De.return(),Object(Xe)!==Xe))return}finally{if($e)throw Ue}}return D}}function s(M){if(Array.isArray(M))return M}function u(M){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},u(M)}var d=/a/g.flags!==void 0,c=function(ce){var De=[];return ce.forEach(function(Ve){return De.push(Ve)}),De},l=function(ce){var De=[];return ce.forEach(function(Ve,Ue){return De.push([Ue,Ve])}),De},h=Object.is?Object.is:u2(),g=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},b=Number.isNaN?Number.isNaN:c2();function _(M){return M.call.bind(M)}var T=_(Object.prototype.hasOwnProperty),k=_(Object.prototype.propertyIsEnumerable),E=_(Object.prototype.toString),R=zi().types,v=R.isAnyArrayBuffer,w=R.isArrayBufferView,S=R.isDate,H=R.isMap,Q=R.isRegExp,ie=R.isSet,he=R.isNativeError,le=R.isBoxedPrimitive,Ee=R.isNumberObject,ve=R.isStringObject,m=R.isBooleanObject,O=R.isBigIntObject,P=R.isSymbolObject,Z=R.isFloat32Array,ae=R.isFloat64Array;function X(M){if(M.length===0||M.length>10)return!0;for(var ce=0;ce<M.length;ce++){var De=M.charCodeAt(ce);if(De<48||De>57)return!0}return M.length===10&&M>=Math.pow(2,32)}function ne(M){return Object.keys(M).filter(X).concat(g(M).filter(Object.prototype.propertyIsEnumerable.bind(M)))}/*!
58
58
  * The buffer module from node.js, for the browser.
59
59
  *
60
60
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
61
61
  * @license MIT
62
- */function F(M,ce){if(M===ce)return 0;for(var De=M.length,Ve=ce.length,Ue=0,ke=Math.min(De,Ve);Ue<ke;++Ue)if(M[Ue]!==ce[Ue]){De=M[Ue],Ve=ce[Ue];break}return De<Ve?-1:Ve<De?1:0}var x=!0,Y=!1,B=0,j=1,$=2,U=3;function G(M,ce){return d?M.source===ce.source&&M.flags===ce.flags:RegExp.prototype.toString.call(M)===RegExp.prototype.toString.call(ce)}function de(M,ce){if(M.byteLength!==ce.byteLength)return!1;for(var De=0;De<M.byteLength;De++)if(M[De]!==ce[De])return!1;return!0}function oe(M,ce){return M.byteLength!==ce.byteLength?!1:F(new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new Uint8Array(ce.buffer,ce.byteOffset,ce.byteLength))===0}function ue(M,ce){return M.byteLength===ce.byteLength&&F(new Uint8Array(M),new Uint8Array(ce))===0}function Se(M,ce){return Ee(M)?Ee(ce)&&h(Number.prototype.valueOf.call(M),Number.prototype.valueOf.call(ce)):ve(M)?ve(ce)&&String.prototype.valueOf.call(M)===String.prototype.valueOf.call(ce):m(M)?m(ce)&&Boolean.prototype.valueOf.call(M)===Boolean.prototype.valueOf.call(ce):O(M)?O(ce)&&BigInt.prototype.valueOf.call(M)===BigInt.prototype.valueOf.call(ce):P(ce)&&Symbol.prototype.valueOf.call(M)===Symbol.prototype.valueOf.call(ce)}function Be(M,ce,De,Ve){if(M===ce)return M!==0?!0:De?h(M,ce):!0;if(De){if(f(M)!=="object")return typeof M=="number"&&b(M)&&b(ce);if(f(ce)!=="object"||M===null||ce===null||Object.getPrototypeOf(M)!==Object.getPrototypeOf(ce))return!1}else{if(M===null||f(M)!=="object")return ce===null||f(ce)!=="object"?M==ce:!1;if(ce===null||f(ce)!=="object")return!1}var Ue=E(M),ke=E(ce);if(Ue!==ke)return!1;if(Array.isArray(M)){if(M.length!==ce.length)return!1;var Xe=ne(M),D=ne(ce);return Xe.length!==D.length?!1:z(M,ce,De,Ve,j,Xe)}if(Ue==="[object Object]"&&(!H(M)&&H(ce)||!ie(M)&&ie(ce)))return!1;if(S(M)){if(!S(ce)||Date.prototype.getTime.call(M)!==Date.prototype.getTime.call(ce))return!1}else if(Q(M)){if(!Q(ce)||!G(M,ce))return!1}else if(he(M)||M instanceof Error){if(M.message!==ce.message||M.name!==ce.name)return!1}else if(w(M)){if(!De&&(Z(M)||ae(M))){if(!de(M,ce))return!1}else if(!oe(M,ce))return!1;var Re=ne(M),$e=ne(ce);return Re.length!==$e.length?!1:z(M,ce,De,Ve,B,Re)}else{if(ie(M))return!ie(ce)||M.size!==ce.size?!1:z(M,ce,De,Ve,$);if(H(M))return!H(ce)||M.size!==ce.size?!1:z(M,ce,De,Ve,U);if(v(M)){if(!ue(M,ce))return!1}else if(le(M)&&!Se(M,ce))return!1}return z(M,ce,De,Ve,B)}function Me(M,ce){return ce.filter(function(De){return k(M,De)})}function z(M,ce,De,Ve,Ue,ke){if(arguments.length===5){ke=Object.keys(M);var Xe=Object.keys(ce);if(ke.length!==Xe.length)return!1}for(var D=0;D<ke.length;D++)if(!T(ce,ke[D]))return!1;if(De&&arguments.length===5){var Re=_(M);if(Re.length!==0){var $e=0;for(D=0;D<Re.length;D++){var qe=Re[D];if(k(M,qe)){if(!k(ce,qe))return!1;ke.push(qe),$e++}else if(k(ce,qe))return!1}var C=_(ce);if(Re.length!==C.length&&Me(ce,C).length!==$e)return!1}else{var K=_(ce);if(K.length!==0&&Me(ce,K).length!==0)return!1}}if(ke.length===0&&(Ue===B||Ue===j&&M.length===0||M.size===0))return!0;if(Ve===void 0)Ve={val1:new Map,val2:new Map,position:0};else{var A=Ve.val1.get(M);if(A!==void 0){var Oe=Ve.val2.get(ce);if(Oe!==void 0)return A===Oe}Ve.position++}Ve.val1.set(M,Ve.position),Ve.val2.set(ce,Ve.position);var Ke=et(M,ce,De,ke,Ve,Ue);return Ve.val1.delete(M),Ve.val2.delete(ce),Ke}function J(M,ce,De,Ve){for(var Ue=c(M),ke=0;ke<Ue.length;ke++){var Xe=Ue[ke];if(Be(ce,Xe,De,Ve))return M.delete(Xe),!0}return!1}function ge(M){switch(f(M)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":M=+M;case"number":if(b(M))return!1}return!0}function Ne(M,ce,De){var Ve=ge(De);return Ve??(ce.has(Ve)&&!M.has(Ve))}function Te(M,ce,De,Ve,Ue){var ke=ge(De);if(ke!=null)return ke;var Xe=ce.get(ke);return Xe===void 0&&!ce.has(ke)||!Be(Ve,Xe,!1,Ue)?!1:!M.has(ke)&&Be(Ve,Xe,!1,Ue)}function je(M,ce,De,Ve){for(var Ue=null,ke=c(M),Xe=0;Xe<ke.length;Xe++){var D=ke[Xe];if(f(D)==="object"&&D!==null)Ue===null&&(Ue=new Set),Ue.add(D);else if(!ce.has(D)){if(De||!Ne(M,ce,D))return!1;Ue===null&&(Ue=new Set),Ue.add(D)}}if(Ue!==null){for(var Re=c(ce),$e=0;$e<Re.length;$e++){var qe=Re[$e];if(f(qe)==="object"&&qe!==null){if(!J(Ue,qe,De,Ve))return!1}else if(!De&&!M.has(qe)&&!J(Ue,qe,De,Ve))return!1}return Ue.size===0}return!0}function me(M,ce,De,Ve,Ue,ke){for(var Xe=c(M),D=0;D<Xe.length;D++){var Re=Xe[D];if(Be(De,Re,Ue,ke)&&Be(Ve,ce.get(Re),Ue,ke))return M.delete(Re),!0}return!1}function Ye(M,ce,De,Ve){for(var Ue=null,ke=l(M),Xe=0;Xe<ke.length;Xe++){var D=e(ke[Xe],2),Re=D[0],$e=D[1];if(f(Re)==="object"&&Re!==null)Ue===null&&(Ue=new Set),Ue.add(Re);else{var qe=ce.get(Re);if(qe===void 0&&!ce.has(Re)||!Be($e,qe,De,Ve)){if(De||!Te(M,ce,Re,$e,Ve))return!1;Ue===null&&(Ue=new Set),Ue.add(Re)}}}if(Ue!==null){for(var C=l(ce),K=0;K<C.length;K++){var A=e(C[K],2),Oe=A[0],Ke=A[1];if(f(Oe)==="object"&&Oe!==null){if(!me(Ue,M,Oe,Ke,De,Ve))return!1}else if(!De&&(!M.has(Oe)||!Be(M.get(Oe),Ke,!1,Ve))&&!me(Ue,M,Oe,Ke,!1,Ve))return!1}return Ue.size===0}return!0}function et(M,ce,De,Ve,Ue,ke){var Xe=0;if(ke===$){if(!je(M,ce,De,Ue))return!1}else if(ke===U){if(!Ye(M,ce,De,Ue))return!1}else if(ke===j)for(;Xe<M.length;Xe++)if(T(M,Xe)){if(!T(ce,Xe)||!Be(M[Xe],ce[Xe],De,Ue))return!1}else{if(T(ce,Xe))return!1;for(var D=Object.keys(M);Xe<D.length;Xe++){var Re=D[Xe];if(!T(ce,Re)||!Be(M[Re],ce[Re],De,Ue))return!1}return D.length===Object.keys(ce).length}for(Xe=0;Xe<Ve.length;Xe++){var $e=Ve[Xe];if(!Be(M[$e],ce[$e],De,Ue))return!1}return!0}function re(M,ce){return Be(M,ce,Y)}function xe(M,ce){return Be(M,ce,x)}return Cl={isDeepEqual:re,isDeepStrictEqual:xe},Cl}var w0;function wf(){if(w0)return Mc.exports;w0=1;function e($){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},e($)}function t($,U,G){return Object.defineProperty($,"prototype",{writable:!1}),$}function r($,U){if(!($ instanceof U))throw new TypeError("Cannot call a class as a function")}var i=om(),a=i.codes,s=a.ERR_AMBIGUOUS_ARGUMENT,f=a.ERR_INVALID_ARG_TYPE,d=a.ERR_INVALID_ARG_VALUE,c=a.ERR_INVALID_RETURN_VALUE,l=a.ERR_MISSING_ARGS,h=YT(),_=zi(),b=_.inspect,y=zi().types,T=y.isPromise,k=y.isRegExp,E=n2()(),I=_h()(),v=i2()("RegExp.prototype.test"),w,S;function H(){var $=u2();w=$.isDeepEqual,S=$.isDeepStrictEqual}var Q=!1,ie=Mc.exports=m,he={};function le($){throw $.message instanceof Error?$.message:new h($)}function Ee($,U,G,de,oe){var ue=arguments.length,Se;if(ue===0)Se="Failed";else if(ue===1)G=$,$=void 0;else{if(Q===!1){Q=!0;var Be=ee.dist.process.emitWarning?ee.dist.process.emitWarning:console.warn.bind(console);Be("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}ue===2&&(de="!=")}if(G instanceof Error)throw G;var Me={actual:$,expected:U,operator:de===void 0?"fail":de,stackStartFn:oe||Ee};G!==void 0&&(Me.message=G);var z=new h(Me);throw Se&&(z.message=Se,z.generatedMessage=!0),z}ie.fail=Ee,ie.AssertionError=h;function ve($,U,G,de){if(!G){var oe=!1;if(U===0)oe=!0,de="No value argument passed to `assert.ok()`";else if(de instanceof Error)throw de;var ue=new h({actual:G,expected:!0,message:de,operator:"==",stackStartFn:$});throw ue.generatedMessage=oe,ue}}function m(){for(var $=arguments.length,U=new Array($),G=0;G<$;G++)U[G]=arguments[G];ve.apply(void 0,[m,U.length].concat(U))}ie.ok=m,ie.equal=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");U!=G&&le({actual:U,expected:G,message:de,operator:"==",stackStartFn:$})},ie.notEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");U==G&&le({actual:U,expected:G,message:de,operator:"!=",stackStartFn:$})},ie.deepEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),w(U,G)||le({actual:U,expected:G,message:de,operator:"deepEqual",stackStartFn:$})},ie.notDeepEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),w(U,G)&&le({actual:U,expected:G,message:de,operator:"notDeepEqual",stackStartFn:$})},ie.deepStrictEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),S(U,G)||le({actual:U,expected:G,message:de,operator:"deepStrictEqual",stackStartFn:$})},ie.notDeepStrictEqual=O;function O($,U,G){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),S($,U)&&le({actual:$,expected:U,message:G,operator:"notDeepStrictEqual",stackStartFn:O})}ie.strictEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");I(U,G)||le({actual:U,expected:G,message:de,operator:"strictEqual",stackStartFn:$})},ie.notStrictEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");I(U,G)&&le({actual:U,expected:G,message:de,operator:"notStrictEqual",stackStartFn:$})};var P=t(function $(U,G,de){var oe=this;r(this,$),G.forEach(function(ue){ue in U&&(de!==void 0&&typeof de[ue]=="string"&&k(U[ue])&&v(U[ue],de[ue])?oe[ue]=de[ue]:oe[ue]=U[ue])})});function Z($,U,G,de,oe,ue){if(!(G in $)||!S($[G],U[G])){if(!de){var Se=new P($,oe),Be=new P(U,oe,$),Me=new h({actual:Se,expected:Be,operator:"deepStrictEqual",stackStartFn:ue});throw Me.actual=$,Me.expected=U,Me.operator=ue.name,Me}le({actual:$,expected:U,message:de,operator:ue.name,stackStartFn:ue})}}function ae($,U,G,de){if(typeof U!="function"){if(k(U))return v(U,$);if(arguments.length===2)throw new f("expected",["Function","RegExp"],U);if(e($)!=="object"||$===null){var oe=new h({actual:$,expected:U,message:G,operator:"deepStrictEqual",stackStartFn:de});throw oe.operator=de.name,oe}var ue=Object.keys(U);if(U instanceof Error)ue.push("name","message");else if(ue.length===0)throw new d("error",U,"may not be an empty object");return w===void 0&&H(),ue.forEach(function(Se){typeof $[Se]=="string"&&k(U[Se])&&v(U[Se],$[Se])||Z($,U,Se,G,ue,de)}),!0}return U.prototype!==void 0&&$ instanceof U?!0:Error.isPrototypeOf(U)?!1:U.call({},$)===!0}function X($){if(typeof $!="function")throw new f("fn","Function",$);try{$()}catch(U){return U}return he}function ne($){return T($)||$!==null&&e($)==="object"&&typeof $.then=="function"&&typeof $.catch=="function"}function F($){return Promise.resolve().then(function(){var U;if(typeof $=="function"){if(U=$(),!ne(U))throw new c("instance of Promise","promiseFn",U)}else if(ne($))U=$;else throw new f("promiseFn",["Function","Promise"],$);return Promise.resolve().then(function(){return U}).then(function(){return he}).catch(function(G){return G})})}function x($,U,G,de){if(typeof G=="string"){if(arguments.length===4)throw new f("error",["Object","Error","Function","RegExp"],G);if(e(U)==="object"&&U!==null){if(U.message===G)throw new s("error/message",'The error message "'.concat(U.message,'" is identical to the message.'))}else if(U===G)throw new s("error/message",'The error "'.concat(U,'" is identical to the message.'));de=G,G=void 0}else if(G!=null&&e(G)!=="object"&&typeof G!="function")throw new f("error",["Object","Error","Function","RegExp"],G);if(U===he){var oe="";G&&G.name&&(oe+=" (".concat(G.name,")")),oe+=de?": ".concat(de):".";var ue=$.name==="rejects"?"rejection":"exception";le({actual:void 0,expected:G,operator:$.name,message:"Missing expected ".concat(ue).concat(oe),stackStartFn:$})}if(G&&!ae(U,G,de,$))throw U}function Y($,U,G,de){if(U!==he){if(typeof G=="string"&&(de=G,G=void 0),!G||ae(U,G)){var oe=de?": ".concat(de):".",ue=$.name==="doesNotReject"?"rejection":"exception";le({actual:U,expected:G,operator:$.name,message:"Got unwanted ".concat(ue).concat(oe,`
63
- `)+'Actual message: "'.concat(U&&U.message,'"'),stackStartFn:$})}throw U}}ie.throws=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];x.apply(void 0,[$,X(U)].concat(de))},ie.rejects=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];return F(U).then(function(ue){return x.apply(void 0,[$,ue].concat(de))})},ie.doesNotThrow=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];Y.apply(void 0,[$,X(U)].concat(de))},ie.doesNotReject=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];return F(U).then(function(ue){return Y.apply(void 0,[$,ue].concat(de))})},ie.ifError=function $(U){if(U!=null){var G="ifError got unwanted exception: ";e(U)==="object"&&typeof U.message=="string"?U.message.length===0&&U.constructor?G+=U.constructor.name:G+=U.message:G+=b(U);var de=new h({actual:U,expected:null,operator:"ifError",message:G,stackStartFn:$}),oe=U.stack;if(typeof oe=="string"){var ue=oe.split(`
64
- `);ue.shift();for(var Se=de.stack.split(`
65
- `),Be=0;Be<ue.length;Be++){var Me=Se.indexOf(ue[Be]);if(Me!==-1){Se=Se.slice(0,Me);break}}de.stack="".concat(Se.join(`
62
+ */function F(M,ce){if(M===ce)return 0;for(var De=M.length,Ve=ce.length,Ue=0,ke=Math.min(De,Ve);Ue<ke;++Ue)if(M[Ue]!==ce[Ue]){De=M[Ue],Ve=ce[Ue];break}return De<Ve?-1:Ve<De?1:0}var x=!0,Y=!1,B=0,j=1,$=2,U=3;function G(M,ce){return d?M.source===ce.source&&M.flags===ce.flags:RegExp.prototype.toString.call(M)===RegExp.prototype.toString.call(ce)}function de(M,ce){if(M.byteLength!==ce.byteLength)return!1;for(var De=0;De<M.byteLength;De++)if(M[De]!==ce[De])return!1;return!0}function oe(M,ce){return M.byteLength!==ce.byteLength?!1:F(new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new Uint8Array(ce.buffer,ce.byteOffset,ce.byteLength))===0}function fe(M,ce){return M.byteLength===ce.byteLength&&F(new Uint8Array(M),new Uint8Array(ce))===0}function Se(M,ce){return Ee(M)?Ee(ce)&&h(Number.prototype.valueOf.call(M),Number.prototype.valueOf.call(ce)):ve(M)?ve(ce)&&String.prototype.valueOf.call(M)===String.prototype.valueOf.call(ce):m(M)?m(ce)&&Boolean.prototype.valueOf.call(M)===Boolean.prototype.valueOf.call(ce):O(M)?O(ce)&&BigInt.prototype.valueOf.call(M)===BigInt.prototype.valueOf.call(ce):P(ce)&&Symbol.prototype.valueOf.call(M)===Symbol.prototype.valueOf.call(ce)}function Be(M,ce,De,Ve){if(M===ce)return M!==0?!0:De?h(M,ce):!0;if(De){if(u(M)!=="object")return typeof M=="number"&&b(M)&&b(ce);if(u(ce)!=="object"||M===null||ce===null||Object.getPrototypeOf(M)!==Object.getPrototypeOf(ce))return!1}else{if(M===null||u(M)!=="object")return ce===null||u(ce)!=="object"?M==ce:!1;if(ce===null||u(ce)!=="object")return!1}var Ue=E(M),ke=E(ce);if(Ue!==ke)return!1;if(Array.isArray(M)){if(M.length!==ce.length)return!1;var Xe=ne(M),D=ne(ce);return Xe.length!==D.length?!1:z(M,ce,De,Ve,j,Xe)}if(Ue==="[object Object]"&&(!H(M)&&H(ce)||!ie(M)&&ie(ce)))return!1;if(S(M)){if(!S(ce)||Date.prototype.getTime.call(M)!==Date.prototype.getTime.call(ce))return!1}else if(Q(M)){if(!Q(ce)||!G(M,ce))return!1}else if(he(M)||M instanceof Error){if(M.message!==ce.message||M.name!==ce.name)return!1}else if(w(M)){if(!De&&(Z(M)||ae(M))){if(!de(M,ce))return!1}else if(!oe(M,ce))return!1;var Re=ne(M),$e=ne(ce);return Re.length!==$e.length?!1:z(M,ce,De,Ve,B,Re)}else{if(ie(M))return!ie(ce)||M.size!==ce.size?!1:z(M,ce,De,Ve,$);if(H(M))return!H(ce)||M.size!==ce.size?!1:z(M,ce,De,Ve,U);if(v(M)){if(!fe(M,ce))return!1}else if(le(M)&&!Se(M,ce))return!1}return z(M,ce,De,Ve,B)}function Me(M,ce){return ce.filter(function(De){return k(M,De)})}function z(M,ce,De,Ve,Ue,ke){if(arguments.length===5){ke=Object.keys(M);var Xe=Object.keys(ce);if(ke.length!==Xe.length)return!1}for(var D=0;D<ke.length;D++)if(!T(ce,ke[D]))return!1;if(De&&arguments.length===5){var Re=g(M);if(Re.length!==0){var $e=0;for(D=0;D<Re.length;D++){var qe=Re[D];if(k(M,qe)){if(!k(ce,qe))return!1;ke.push(qe),$e++}else if(k(ce,qe))return!1}var C=g(ce);if(Re.length!==C.length&&Me(ce,C).length!==$e)return!1}else{var K=g(ce);if(K.length!==0&&Me(ce,K).length!==0)return!1}}if(ke.length===0&&(Ue===B||Ue===j&&M.length===0||M.size===0))return!0;if(Ve===void 0)Ve={val1:new Map,val2:new Map,position:0};else{var A=Ve.val1.get(M);if(A!==void 0){var Te=Ve.val2.get(ce);if(Te!==void 0)return A===Te}Ve.position++}Ve.val1.set(M,Ve.position),Ve.val2.set(ce,Ve.position);var Ke=et(M,ce,De,ke,Ve,Ue);return Ve.val1.delete(M),Ve.val2.delete(ce),Ke}function J(M,ce,De,Ve){for(var Ue=c(M),ke=0;ke<Ue.length;ke++){var Xe=Ue[ke];if(Be(ce,Xe,De,Ve))return M.delete(Xe),!0}return!1}function ge(M){switch(u(M)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":M=+M;case"number":if(b(M))return!1}return!0}function Ne(M,ce,De){var Ve=ge(De);return Ve??(ce.has(Ve)&&!M.has(Ve))}function Oe(M,ce,De,Ve,Ue){var ke=ge(De);if(ke!=null)return ke;var Xe=ce.get(ke);return Xe===void 0&&!ce.has(ke)||!Be(Ve,Xe,!1,Ue)?!1:!M.has(ke)&&Be(Ve,Xe,!1,Ue)}function je(M,ce,De,Ve){for(var Ue=null,ke=c(M),Xe=0;Xe<ke.length;Xe++){var D=ke[Xe];if(u(D)==="object"&&D!==null)Ue===null&&(Ue=new Set),Ue.add(D);else if(!ce.has(D)){if(De||!Ne(M,ce,D))return!1;Ue===null&&(Ue=new Set),Ue.add(D)}}if(Ue!==null){for(var Re=c(ce),$e=0;$e<Re.length;$e++){var qe=Re[$e];if(u(qe)==="object"&&qe!==null){if(!J(Ue,qe,De,Ve))return!1}else if(!De&&!M.has(qe)&&!J(Ue,qe,De,Ve))return!1}return Ue.size===0}return!0}function me(M,ce,De,Ve,Ue,ke){for(var Xe=c(M),D=0;D<Xe.length;D++){var Re=Xe[D];if(Be(De,Re,Ue,ke)&&Be(Ve,ce.get(Re),Ue,ke))return M.delete(Re),!0}return!1}function Ye(M,ce,De,Ve){for(var Ue=null,ke=l(M),Xe=0;Xe<ke.length;Xe++){var D=e(ke[Xe],2),Re=D[0],$e=D[1];if(u(Re)==="object"&&Re!==null)Ue===null&&(Ue=new Set),Ue.add(Re);else{var qe=ce.get(Re);if(qe===void 0&&!ce.has(Re)||!Be($e,qe,De,Ve)){if(De||!Oe(M,ce,Re,$e,Ve))return!1;Ue===null&&(Ue=new Set),Ue.add(Re)}}}if(Ue!==null){for(var C=l(ce),K=0;K<C.length;K++){var A=e(C[K],2),Te=A[0],Ke=A[1];if(u(Te)==="object"&&Te!==null){if(!me(Ue,M,Te,Ke,De,Ve))return!1}else if(!De&&(!M.has(Te)||!Be(M.get(Te),Ke,!1,Ve))&&!me(Ue,M,Te,Ke,!1,Ve))return!1}return Ue.size===0}return!0}function et(M,ce,De,Ve,Ue,ke){var Xe=0;if(ke===$){if(!je(M,ce,De,Ue))return!1}else if(ke===U){if(!Ye(M,ce,De,Ue))return!1}else if(ke===j)for(;Xe<M.length;Xe++)if(T(M,Xe)){if(!T(ce,Xe)||!Be(M[Xe],ce[Xe],De,Ue))return!1}else{if(T(ce,Xe))return!1;for(var D=Object.keys(M);Xe<D.length;Xe++){var Re=D[Xe];if(!T(ce,Re)||!Be(M[Re],ce[Re],De,Ue))return!1}return D.length===Object.keys(ce).length}for(Xe=0;Xe<Ve.length;Xe++){var $e=Ve[Xe];if(!Be(M[$e],ce[$e],De,Ue))return!1}return!0}function re(M,ce){return Be(M,ce,Y)}function xe(M,ce){return Be(M,ce,x)}return xl={isDeepEqual:re,isDeepStrictEqual:xe},xl}var C0;function vu(){if(C0)return Mc.exports;C0=1;function e($){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},e($)}function t($,U,G){return Object.defineProperty($,"prototype",{writable:!1}),$}function r($,U){if(!($ instanceof U))throw new TypeError("Cannot call a class as a function")}var i=pm(),a=i.codes,s=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,d=a.ERR_INVALID_ARG_VALUE,c=a.ERR_INVALID_RETURN_VALUE,l=a.ERR_MISSING_ARGS,h=e2(),g=zi(),b=g.inspect,_=zi().types,T=_.isPromise,k=_.isRegExp,E=o2()(),R=Eh()(),v=a2()("RegExp.prototype.test"),w,S;function H(){var $=l2();w=$.isDeepEqual,S=$.isDeepStrictEqual}var Q=!1,ie=Mc.exports=m,he={};function le($){throw $.message instanceof Error?$.message:new h($)}function Ee($,U,G,de,oe){var fe=arguments.length,Se;if(fe===0)Se="Failed";else if(fe===1)G=$,$=void 0;else{if(Q===!1){Q=!0;var Be=ee.dist.process.emitWarning?ee.dist.process.emitWarning:console.warn.bind(console);Be("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}fe===2&&(de="!=")}if(G instanceof Error)throw G;var Me={actual:$,expected:U,operator:de===void 0?"fail":de,stackStartFn:oe||Ee};G!==void 0&&(Me.message=G);var z=new h(Me);throw Se&&(z.message=Se,z.generatedMessage=!0),z}ie.fail=Ee,ie.AssertionError=h;function ve($,U,G,de){if(!G){var oe=!1;if(U===0)oe=!0,de="No value argument passed to `assert.ok()`";else if(de instanceof Error)throw de;var fe=new h({actual:G,expected:!0,message:de,operator:"==",stackStartFn:$});throw fe.generatedMessage=oe,fe}}function m(){for(var $=arguments.length,U=new Array($),G=0;G<$;G++)U[G]=arguments[G];ve.apply(void 0,[m,U.length].concat(U))}ie.ok=m,ie.equal=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");U!=G&&le({actual:U,expected:G,message:de,operator:"==",stackStartFn:$})},ie.notEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");U==G&&le({actual:U,expected:G,message:de,operator:"!=",stackStartFn:$})},ie.deepEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),w(U,G)||le({actual:U,expected:G,message:de,operator:"deepEqual",stackStartFn:$})},ie.notDeepEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),w(U,G)&&le({actual:U,expected:G,message:de,operator:"notDeepEqual",stackStartFn:$})},ie.deepStrictEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),S(U,G)||le({actual:U,expected:G,message:de,operator:"deepStrictEqual",stackStartFn:$})},ie.notDeepStrictEqual=O;function O($,U,G){if(arguments.length<2)throw new l("actual","expected");w===void 0&&H(),S($,U)&&le({actual:$,expected:U,message:G,operator:"notDeepStrictEqual",stackStartFn:O})}ie.strictEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");R(U,G)||le({actual:U,expected:G,message:de,operator:"strictEqual",stackStartFn:$})},ie.notStrictEqual=function $(U,G,de){if(arguments.length<2)throw new l("actual","expected");R(U,G)&&le({actual:U,expected:G,message:de,operator:"notStrictEqual",stackStartFn:$})};var P=t(function $(U,G,de){var oe=this;r(this,$),G.forEach(function(fe){fe in U&&(de!==void 0&&typeof de[fe]=="string"&&k(U[fe])&&v(U[fe],de[fe])?oe[fe]=de[fe]:oe[fe]=U[fe])})});function Z($,U,G,de,oe,fe){if(!(G in $)||!S($[G],U[G])){if(!de){var Se=new P($,oe),Be=new P(U,oe,$),Me=new h({actual:Se,expected:Be,operator:"deepStrictEqual",stackStartFn:fe});throw Me.actual=$,Me.expected=U,Me.operator=fe.name,Me}le({actual:$,expected:U,message:de,operator:fe.name,stackStartFn:fe})}}function ae($,U,G,de){if(typeof U!="function"){if(k(U))return v(U,$);if(arguments.length===2)throw new u("expected",["Function","RegExp"],U);if(e($)!=="object"||$===null){var oe=new h({actual:$,expected:U,message:G,operator:"deepStrictEqual",stackStartFn:de});throw oe.operator=de.name,oe}var fe=Object.keys(U);if(U instanceof Error)fe.push("name","message");else if(fe.length===0)throw new d("error",U,"may not be an empty object");return w===void 0&&H(),fe.forEach(function(Se){typeof $[Se]=="string"&&k(U[Se])&&v(U[Se],$[Se])||Z($,U,Se,G,fe,de)}),!0}return U.prototype!==void 0&&$ instanceof U?!0:Error.isPrototypeOf(U)?!1:U.call({},$)===!0}function X($){if(typeof $!="function")throw new u("fn","Function",$);try{$()}catch(U){return U}return he}function ne($){return T($)||$!==null&&e($)==="object"&&typeof $.then=="function"&&typeof $.catch=="function"}function F($){return Promise.resolve().then(function(){var U;if(typeof $=="function"){if(U=$(),!ne(U))throw new c("instance of Promise","promiseFn",U)}else if(ne($))U=$;else throw new u("promiseFn",["Function","Promise"],$);return Promise.resolve().then(function(){return U}).then(function(){return he}).catch(function(G){return G})})}function x($,U,G,de){if(typeof G=="string"){if(arguments.length===4)throw new u("error",["Object","Error","Function","RegExp"],G);if(e(U)==="object"&&U!==null){if(U.message===G)throw new s("error/message",'The error message "'.concat(U.message,'" is identical to the message.'))}else if(U===G)throw new s("error/message",'The error "'.concat(U,'" is identical to the message.'));de=G,G=void 0}else if(G!=null&&e(G)!=="object"&&typeof G!="function")throw new u("error",["Object","Error","Function","RegExp"],G);if(U===he){var oe="";G&&G.name&&(oe+=" (".concat(G.name,")")),oe+=de?": ".concat(de):".";var fe=$.name==="rejects"?"rejection":"exception";le({actual:void 0,expected:G,operator:$.name,message:"Missing expected ".concat(fe).concat(oe),stackStartFn:$})}if(G&&!ae(U,G,de,$))throw U}function Y($,U,G,de){if(U!==he){if(typeof G=="string"&&(de=G,G=void 0),!G||ae(U,G)){var oe=de?": ".concat(de):".",fe=$.name==="doesNotReject"?"rejection":"exception";le({actual:U,expected:G,operator:$.name,message:"Got unwanted ".concat(fe).concat(oe,`
63
+ `)+'Actual message: "'.concat(U&&U.message,'"'),stackStartFn:$})}throw U}}ie.throws=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];x.apply(void 0,[$,X(U)].concat(de))},ie.rejects=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];return F(U).then(function(fe){return x.apply(void 0,[$,fe].concat(de))})},ie.doesNotThrow=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];Y.apply(void 0,[$,X(U)].concat(de))},ie.doesNotReject=function $(U){for(var G=arguments.length,de=new Array(G>1?G-1:0),oe=1;oe<G;oe++)de[oe-1]=arguments[oe];return F(U).then(function(fe){return Y.apply(void 0,[$,fe].concat(de))})},ie.ifError=function $(U){if(U!=null){var G="ifError got unwanted exception: ";e(U)==="object"&&typeof U.message=="string"?U.message.length===0&&U.constructor?G+=U.constructor.name:G+=U.message:G+=b(U);var de=new h({actual:U,expected:null,operator:"ifError",message:G,stackStartFn:$}),oe=U.stack;if(typeof oe=="string"){var fe=oe.split(`
64
+ `);fe.shift();for(var Se=de.stack.split(`
65
+ `),Be=0;Be<fe.length;Be++){var Me=Se.indexOf(fe[Be]);if(Me!==-1){Se=Se.slice(0,Me);break}}de.stack="".concat(Se.join(`
66
66
  `),`
67
- `).concat(ue.join(`
68
- `))}throw de}};function B($,U,G,de,oe){if(!k(U))throw new f("regexp","RegExp",U);var ue=oe==="match";if(typeof $!="string"||v(U,$)!==ue){if(G instanceof Error)throw G;var Se=!G;G=G||(typeof $!="string"?'The "string" argument must be of type string. Received type '+"".concat(e($)," (").concat(b($),")"):(ue?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(b(U),`. Input:
67
+ `).concat(fe.join(`
68
+ `))}throw de}};function B($,U,G,de,oe){if(!k(U))throw new u("regexp","RegExp",U);var fe=oe==="match";if(typeof $!="string"||v(U,$)!==fe){if(G instanceof Error)throw G;var Se=!G;G=G||(typeof $!="string"?'The "string" argument must be of type string. Received type '+"".concat(e($)," (").concat(b($),")"):(fe?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(b(U),`. Input:
69
69
 
70
70
  `).concat(b($),`
71
- `));var Be=new h({actual:$,expected:U,message:G,operator:oe,stackStartFn:de});throw Be.generatedMessage=Se,Be}}ie.match=function $(U,G,de){B(U,G,de,$,"match")},ie.doesNotMatch=function $(U,G,de){B(U,G,de,$,"doesNotMatch")};function j(){for(var $=arguments.length,U=new Array($),G=0;G<$;G++)U[G]=arguments[G];ve.apply(void 0,[j,U.length].concat(U))}return ie.strict=E(j,ie,{equal:ie.strictEqual,deepEqual:ie.deepStrictEqual,notEqual:ie.notStrictEqual,notDeepEqual:ie.notDeepStrictEqual}),ie.strict.strict=ie.strict,Mc.exports}var c2={exports:{}},Ll={exports:{}},Jt={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},lm={exports:{}},pa={exports:{}},E0;function Ta(){if(E0)return pa.exports;E0=1;const{AbortController:e,AbortSignal:t}=typeof self<"u"?self:typeof window<"u"?window:void 0;return pa.exports=e,pa.exports.AbortSignal=t,pa.exports.default=e,pa.exports}(function(e){const t=ee.bufferPolyfill,{kResistStopPropagation:r,SymbolDispose:i}=Jt,a=globalThis.AbortSignal||Ta().AbortSignal,s=globalThis.AbortController||Ta().AbortController,f=Object.getPrototypeOf(async function(){}).constructor,d=globalThis.Blob||t.Blob,c=typeof d<"u"?function(y){return y instanceof d}:function(y){return!1},l=(b,y)=>{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new ERR_INVALID_ARG_TYPE(y,"AbortSignal",b)},h=(b,y)=>{if(typeof b!="function")throw new ERR_INVALID_ARG_TYPE(y,"Function",b)};class _ extends Error{constructor(y){if(!Array.isArray(y))throw new TypeError(`Expected input to be an Array, got ${typeof y}`);let T="";for(let k=0;k<y.length;k++)T+=` ${y[k].stack}
72
- `;super(T),this.name="AggregateError",this.errors=y}}e.exports={AggregateError:_,kEmptyObject:Object.freeze({}),once(b){let y=!1;return function(...T){y||(y=!0,b.apply(this,T))}},createDeferredPromise:function(){let b,y;return{promise:new Promise((k,E)=>{b=k,y=E}),resolve:b,reject:y}},promisify(b){return new Promise((y,T)=>{b((k,...E)=>k?T(k):y(...E))})},debuglog(){return function(){}},format(b,...y){return b.replace(/%([sdifj])/g,function(...[T,k]){const E=y.shift();return k==="f"?E.toFixed(6):k==="j"?JSON.stringify(E):k==="s"&&typeof E=="object"?`${E.constructor!==Object?E.constructor.name:""} {}`.trim():E.toString()})},inspect(b){switch(typeof b){case"string":if(b.includes("'"))if(b.includes('"')){if(!b.includes("`")&&!b.includes("${"))return`\`${b}\``}else return`"${b}"`;return`'${b}'`;case"number":return isNaN(b)?"NaN":Object.is(b,-0)?String(b):b;case"bigint":return`${String(b)}n`;case"boolean":case"undefined":return String(b);case"object":return"{}"}},types:{isAsyncFunction(b){return b instanceof f},isArrayBufferView(b){return ArrayBuffer.isView(b)}},isBlob:c,deprecate(b,y){return b},addAbortListener:ee.requireEvents().addAbortListener||function(y,T){if(y===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",y);l(y,"signal"),h(T,"listener");let k;return y.aborted?queueMicrotask(()=>T()):(y.addEventListener("abort",T,{__proto__:null,once:!0,[r]:!0}),k=()=>{y.removeEventListener("abort",T)}),{__proto__:null,[i](){var E;(E=k)===null||E===void 0||E()}}},AbortSignalAny:a.any||function(y){if(y.length===1)return y[0];const T=new s,k=()=>T.abort();return y.forEach(E=>{l(E,"signals"),E.addEventListener("abort",k,{once:!0})}),T.signal.addEventListener("abort",()=>{y.forEach(E=>E.removeEventListener("abort",k))},{once:!0}),T.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(lm);var Ir=lm.exports,bh={};const{format:l2,inspect:Ef,AggregateError:d2}=Ir,h2=globalThis.AggregateError||d2,p2=Symbol("kIsNodeError"),g2=["string","function","number","object","Function","Object","boolean","bigint","symbol"],y2=/^([A-Z][a-z0-9]*)+$/,_2="__node_internal_",Df={};function Hi(e,t){if(!e)throw new Df.ERR_INTERNAL_ASSERTION(t)}function S0(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function b2(e,t,r){if(typeof t=="function")return Hi(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return Hi(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:l2(t,...r)}function dr(e,t,r){r||(r=Error);class i extends r{constructor(...s){super(b2(e,t,s))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[p2]=!0,Df[e]=i}function A0(e){const t=_2+e.name;return Object.defineProperty(e,"name",{value:t}),e}function m2(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new h2([t,e],t.message);return r.code=t.code,r}return e||t}let v2=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Df.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};dr("ERR_ASSERTION","%s",Error);dr("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Hi(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const a=[],s=[],f=[];for(const c of t)Hi(typeof c=="string","All expected entries have to be of type string"),g2.includes(c)?a.push(c.toLowerCase()):y2.test(c)?s.push(c):(Hi(c!=="object",'The value "object" should be written as "Object"'),f.push(c));if(s.length>0){const c=a.indexOf("object");c!==-1&&(a.splice(a,c,1),s.push("Object"))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{const c=a.pop();i+=`one of type ${a.join(", ")}, or ${c}`}}(s.length>0||f.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const c=s.pop();i+=`an instance of ${s.join(", ")}, or ${c}`}}f.length>0&&(i+=" or ")}switch(f.length){case 0:break;case 1:f[0].toLowerCase()!==f[0]&&(i+="an "),i+=`${f[0]}`;break;case 2:i+=`one of ${f[0]} or ${f[1]}`;break;default:{const c=f.pop();i+=`one of ${f.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var d;if((d=r.constructor)!==null&&d!==void 0&&d.name)i+=`. Received an instance of ${r.constructor.name}`;else{const c=Ef(r,{depth:-1});i+=`. Received ${c}`}}else{let c=Ef(r,{colors:!1});c.length>25&&(c=`${c.slice(0,25)}...`),i+=`. Received type ${typeof r} (${c})`}return i},TypeError);dr("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=Ef(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);dr("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const a=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${a}.`},TypeError);dr("ERR_MISSING_ARGS",(...e)=>{Hi(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);dr("ERR_OUT_OF_RANGE",(e,t,r)=>{Hi(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=S0(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=S0(i)),i+="n"):i=Ef(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);dr("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);dr("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);dr("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);dr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);dr("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);dr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);dr("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);dr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);dr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);dr("ERR_STREAM_WRITE_AFTER_END","write after end",Error);dr("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Br={AbortError:v2,aggregateTwoErrors:A0(m2),hideStackFrames:A0,codes:Df};const{ArrayIsArray:mh,ArrayPrototypeIncludes:dm,ArrayPrototypeJoin:hm,ArrayPrototypeMap:w2,NumberIsInteger:vh,NumberIsNaN:E2,NumberMAX_SAFE_INTEGER:S2,NumberMIN_SAFE_INTEGER:A2,NumberParseInt:R2,ObjectPrototypeHasOwnProperty:I2,RegExpPrototypeExec:pm,String:O2,StringPrototypeToUpperCase:T2,StringPrototypeTrim:P2}=Jt,{hideStackFrames:on,codes:{ERR_SOCKET_BAD_PORT:C2,ERR_INVALID_ARG_TYPE:wr,ERR_INVALID_ARG_VALUE:Mo,ERR_OUT_OF_RANGE:Gi,ERR_UNKNOWN_SIGNAL:R0}}=Br,{normalizeEncoding:L2}=Ir,{isAsyncFunction:N2,isArrayBufferView:B2}=Ir.types,I0={};function $2(e){return e===(e|0)}function x2(e){return e===e>>>0}const D2=/^[0-7]+$/,M2="must be a 32-bit unsigned integer or an octal string";function F2(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(pm(D2,e)===null)throw new Mo(t,e,M2);e=R2(e,8)}return gm(e,t),e}const j2=on((e,t,r=A2,i=S2)=>{if(typeof e!="number")throw new wr(t,"number",e);if(!vh(e))throw new Gi(t,"an integer",e);if(e<r||e>i)throw new Gi(t,`>= ${r} && <= ${i}`,e)}),k2=on((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new wr(t,"number",e);if(!vh(e))throw new Gi(t,"an integer",e);if(e<r||e>i)throw new Gi(t,`>= ${r} && <= ${i}`,e)}),gm=on((e,t,r=!1)=>{if(typeof e!="number")throw new wr(t,"number",e);if(!vh(e))throw new Gi(t,"an integer",e);const i=r?1:0,a=4294967295;if(e<i||e>a)throw new Gi(t,`>= ${i} && <= ${a}`,e)});function wh(e,t){if(typeof e!="string")throw new wr(t,"string",e)}function U2(e,t,r=void 0,i){if(typeof e!="number")throw new wr(t,"number",e);if(r!=null&&e<r||i!=null&&e>i||(r!=null||i!=null)&&E2(e))throw new Gi(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const q2=on((e,t,r)=>{if(!dm(r,e)){const a="must be one of: "+hm(w2(r,s=>typeof s=="string"?`'${s}'`:O2(s)),", ");throw new Mo(t,e,a)}});function ym(e,t){if(typeof e!="boolean")throw new wr(t,"boolean",e)}function Nl(e,t,r){return e==null||!I2(e,t)?r:e[t]}const H2=on((e,t,r=null)=>{const i=Nl(r,"allowArray",!1),a=Nl(r,"allowFunction",!1);if(!Nl(r,"nullable",!1)&&e===null||!i&&mh(e)||typeof e!="object"&&(!a||typeof e!="function"))throw new wr(t,"Object",e)}),W2=on((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new wr(t,"a dictionary",e)}),Mf=on((e,t,r=0)=>{if(!mh(e))throw new wr(t,"Array",e);if(e.length<r){const i=`must be longer than ${r}`;throw new Mo(t,e,i)}});function z2(e,t){Mf(e,t);for(let r=0;r<e.length;r++)wh(e[r],`${t}[${r}]`)}function G2(e,t){Mf(e,t);for(let r=0;r<e.length;r++)ym(e[r],`${t}[${r}]`)}function V2(e,t){Mf(e,t);for(let r=0;r<e.length;r++){const i=e[r],a=`${t}[${r}]`;if(i==null)throw new wr(a,"AbortSignal",i);_m(i,a)}}function Z2(e,t="signal"){if(wh(e,t),I0[e]===void 0)throw I0[T2(e)]!==void 0?new R0(e+" (signals must use all capital letters)"):new R0(e)}const K2=on((e,t="buffer")=>{if(!B2(e))throw new wr(t,["Buffer","TypedArray","DataView"],e)});function J2(e,t){const r=L2(t),i=e.length;if(r==="hex"&&i%2!==0)throw new Mo("encoding",t,`is invalid for data of length ${i}`)}function X2(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&P2(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new C2(t,e,r);return e|0}const _m=on((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new wr(t,"AbortSignal",e)}),Y2=on((e,t)=>{if(typeof e!="function")throw new wr(t,"Function",e)}),Q2=on((e,t)=>{if(typeof e!="function"||N2(e))throw new wr(t,"Function",e)}),eP=on((e,t)=>{if(e!==void 0)throw new wr(t,"undefined",e)});function tP(e,t,r){if(!dm(r,e))throw new wr(t,`('${hm(r,"|")}')`,e)}const rP=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function O0(e,t){if(typeof e>"u"||!pm(rP,e))throw new Mo(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function nP(e){if(typeof e=="string")return O0(e,"hints"),e;if(mh(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i<t;i++){const a=e[i];O0(a,"hints"),r+=a,i!==t-1&&(r+=", ")}return r}throw new Mo("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}var Fa={isInt32:$2,isUint32:x2,parseFileMode:F2,validateArray:Mf,validateStringArray:z2,validateBooleanArray:G2,validateAbortSignalArray:V2,validateBoolean:ym,validateBuffer:K2,validateDictionary:W2,validateEncoding:J2,validateFunction:Y2,validateInt32:k2,validateInteger:j2,validateNumber:U2,validateObject:H2,validateOneOf:q2,validatePlainFunction:Q2,validatePort:X2,validateSignalName:Z2,validateString:wh,validateUint32:gm,validateUndefined:eP,validateUnion:tP,validateAbortSignal:_m,validateLinkHeaderValue:nP},Eh={exports:{}};const{SymbolAsyncIterator:T0,SymbolIterator:P0,SymbolFor:Ki}=Jt,bm=Ki("nodejs.stream.destroyed"),mm=Ki("nodejs.stream.errored"),jd=Ki("nodejs.stream.readable"),kd=Ki("nodejs.stream.writable"),vm=Ki("nodejs.stream.disturbed"),iP=Ki("nodejs.webstream.isClosedPromise"),oP=Ki("nodejs.webstream.controllerErrorFunction");function Ff(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function jf(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function aP(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function Bn(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function wm(e){return!!(e&&!Bn(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function Em(e){return!!(e&&!Bn(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Sm(e){return!!(e&&!Bn(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function sP(e){return wm(e)||Em(e)||Sm(e)}function fP(e,t){return e==null?!1:t===!0?typeof e[T0]=="function":t===!1?typeof e[P0]=="function":typeof e[T0]=="function"||typeof e[P0]=="function"}function kf(e){if(!Bn(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[bm]||i!=null&&i.destroyed)}function Am(e){if(!jf(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function uP(e,t){if(!jf(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function cP(e){if(!Ff(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function Rm(e,t){if(!Ff(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function Im(e){return e&&e[jd]!=null?e[jd]:typeof(e==null?void 0:e.readable)!="boolean"?null:kf(e)?!1:Ff(e)&&e.readable&&!Rm(e)}function Om(e){return e&&e[kd]!=null?e[kd]:typeof(e==null?void 0:e.writable)!="boolean"?null:kf(e)?!1:jf(e)&&e.writable&&!Am(e)}function lP(e,t){return Bn(e)?kf(e)?!0:!((t==null?void 0:t.readable)!==!1&&Im(e)||(t==null?void 0:t.writable)!==!1&&Om(e)):null}function dP(e){var t,r;return Bn(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function hP(e){var t,r;return Bn(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function pP(e){if(!Bn(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&Tm(e)?e._closed:null}function Tm(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function Pm(e){return typeof e._sent100=="boolean"&&Tm(e)}function gP(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function yP(e){if(!Bn(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&Pm(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function _P(e){var t;return!!(e&&((t=e[vm])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function bP(e){var t,r,i,a,s,f,d,c,l,h;return!!(e&&((t=(r=(i=(a=(s=(f=e[mm])!==null&&f!==void 0?f:e.readableErrored)!==null&&s!==void 0?s:e.writableErrored)!==null&&a!==void 0?a:(d=e._readableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&i!==void 0?i:(c=e._writableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&r!==void 0?r:(l=e._readableState)===null||l===void 0?void 0:l.errored)!==null&&t!==void 0?t:!((h=e._writableState)===null||h===void 0)&&h.errored))}var ti={isDestroyed:kf,kIsDestroyed:bm,isDisturbed:_P,kIsDisturbed:vm,isErrored:bP,kIsErrored:mm,isReadable:Im,kIsReadable:jd,kIsClosedPromise:iP,kControllerErrorFunction:oP,kIsWritable:kd,isClosed:pP,isDuplexNodeStream:aP,isFinished:lP,isIterable:fP,isReadableNodeStream:Ff,isReadableStream:wm,isReadableEnded:cP,isReadableFinished:Rm,isReadableErrored:hP,isNodeStream:Bn,isWebStream:sP,isWritable:Om,isWritableNodeStream:jf,isWritableStream:Em,isWritableEnded:Am,isWritableFinished:uP,isWritableErrored:dP,isServerRequest:gP,isServerResponse:Pm,willEmitClose:yP,isTransformStream:Sm};const bi=ee.browserExports,{AbortError:Cm,codes:mP}=Br,{ERR_INVALID_ARG_TYPE:vP,ERR_STREAM_PREMATURE_CLOSE:C0}=mP,{kEmptyObject:Ud,once:qd}=Ir,{validateAbortSignal:wP,validateFunction:EP,validateObject:SP,validateBoolean:AP}=Fa,{Promise:RP,PromisePrototypeThen:IP,SymbolDispose:Lm}=Jt,{isClosed:OP,isReadable:L0,isReadableNodeStream:Bl,isReadableStream:TP,isReadableFinished:N0,isReadableErrored:B0,isWritable:$0,isWritableNodeStream:x0,isWritableStream:PP,isWritableFinished:D0,isWritableErrored:M0,isNodeStream:CP,willEmitClose:LP,kIsClosedPromise:NP}=ti;let Oo;function BP(e){return e.setHeader&&typeof e.abort=="function"}const Hd=()=>{};function Nm(e,t,r){var i,a;if(arguments.length===2?(r=t,t=Ud):t==null?t=Ud:SP(t,"options"),EP(r,"callback"),wP(t.signal,"options.signal"),r=qd(r),TP(e)||PP(e))return $P(e,t,r);if(!CP(e))throw new vP("stream",["ReadableStream","WritableStream","Stream"],e);const s=(i=t.readable)!==null&&i!==void 0?i:Bl(e),f=(a=t.writable)!==null&&a!==void 0?a:x0(e),d=e._writableState,c=e._readableState,l=()=>{e.writable||b()};let h=LP(e)&&Bl(e)===s&&x0(e)===f,_=D0(e,!1);const b=()=>{_=!0,e.destroyed&&(h=!1),!(h&&(!e.readable||s))&&(!s||y)&&r.call(e)};let y=N0(e,!1);const T=()=>{y=!0,e.destroyed&&(h=!1),!(h&&(!e.writable||f))&&(!f||_)&&r.call(e)},k=H=>{r.call(e,H)};let E=OP(e);const I=()=>{E=!0;const H=M0(e)||B0(e);if(H&&typeof H!="boolean")return r.call(e,H);if(s&&!y&&Bl(e,!0)&&!N0(e,!1))return r.call(e,new C0);if(f&&!_&&!D0(e,!1))return r.call(e,new C0);r.call(e)},v=()=>{E=!0;const H=M0(e)||B0(e);if(H&&typeof H!="boolean")return r.call(e,H);r.call(e)},w=()=>{e.req.on("finish",b)};BP(e)?(e.on("complete",b),h||e.on("abort",I),e.req?w():e.on("request",w)):f&&!d&&(e.on("end",l),e.on("close",l)),!h&&typeof e.aborted=="boolean"&&e.on("aborted",I),e.on("end",T),e.on("finish",b),t.error!==!1&&e.on("error",k),e.on("close",I),E?bi.nextTick(I):d!=null&&d.errorEmitted||c!=null&&c.errorEmitted?h||bi.nextTick(v):(!s&&(!h||L0(e))&&(_||$0(e)===!1)||!f&&(!h||$0(e))&&(y||L0(e)===!1)||c&&e.req&&e.aborted)&&bi.nextTick(v);const S=()=>{r=Hd,e.removeListener("aborted",I),e.removeListener("complete",b),e.removeListener("abort",I),e.removeListener("request",w),e.req&&e.req.removeListener("finish",b),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",b),e.removeListener("end",T),e.removeListener("error",k),e.removeListener("close",I)};if(t.signal&&!E){const H=()=>{const Q=r;S(),Q.call(e,new Cm(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)bi.nextTick(H);else{Oo=Oo||Ir.addAbortListener;const Q=Oo(t.signal,H),ie=r;r=qd((...he)=>{Q[Lm](),ie.apply(e,he)})}}return S}function $P(e,t,r){let i=!1,a=Hd;if(t.signal)if(a=()=>{i=!0,r.call(e,new Cm(void 0,{cause:t.signal.reason}))},t.signal.aborted)bi.nextTick(a);else{Oo=Oo||Ir.addAbortListener;const f=Oo(t.signal,a),d=r;r=qd((...c)=>{f[Lm](),d.apply(e,c)})}const s=(...f)=>{i||bi.nextTick(()=>r.apply(e,f))};return IP(e[NP].promise,s,s),Hd}function xP(e,t){var r;let i=!1;return t===null&&(t=Ud),(r=t)!==null&&r!==void 0&&r.cleanup&&(AP(t.cleanup,"cleanup"),i=t.cleanup),new RP((a,s)=>{const f=Nm(e,t,d=>{i&&f(),d?s(d):a()})})}Eh.exports=Nm;Eh.exports.finished=xP;var Ii=Eh.exports;const Cn=ee.browserExports,{aggregateTwoErrors:DP,codes:{ERR_MULTIPLE_CALLBACK:MP},AbortError:FP}=Br,{Symbol:Bm}=Jt,{kIsDestroyed:jP,isDestroyed:kP,isFinished:UP,isServerRequest:qP}=ti,$m=Bm("kDestroy"),Wd=Bm("kConstruct");function xm(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function HP(e,t){const r=this._readableState,i=this._writableState,a=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(xm(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),a.constructed?F0(this,e,t):this.once($m,function(s){F0(this,DP(s,e),t)}),this)}function F0(e,t,r){let i=!1;function a(s){if(i)return;i=!0;const f=e._readableState,d=e._writableState;xm(s,d,f),d&&(d.closed=!0),f&&(f.closed=!0),typeof r=="function"&&r(s),s?Cn.nextTick(WP,e,s):Cn.nextTick(Dm,e)}try{e._destroy(t||null,a)}catch(s){a(s)}}function WP(e,t){zd(e,t),Dm(e)}function Dm(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function zd(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function zP(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Gd(e,t,r){const i=e._readableState,a=e._writableState;if(a!=null&&a.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||a!=null&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?Cn.nextTick(zd,e,t):zd(e,t))}function GP(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(Wd,t),!(e.listenerCount(Wd)>1)&&Cn.nextTick(VP,e)}function VP(e){let t=!1;function r(i){if(t){Gd(e,i??new MP);return}t=!0;const a=e._readableState,s=e._writableState,f=s||a;a&&(a.constructed=!0),s&&(s.constructed=!0),f.destroyed?e.emit($m,i):i?Gd(e,i,!0):Cn.nextTick(ZP,e)}try{e._construct(i=>{Cn.nextTick(r,i)})}catch(i){Cn.nextTick(r,i)}}function ZP(e){e.emit(Wd)}function j0(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Mm(e){e.emit("close")}function KP(e,t){e.emit("error",t),Cn.nextTick(Mm,e)}function JP(e,t){!e||kP(e)||(!t&&!UP(e)&&(t=new FP),qP(e)?(e.socket=null,e.destroy(t)):j0(e)?e.abort():j0(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?Cn.nextTick(KP,e,t):Cn.nextTick(Mm,e),e.destroyed||(e[jP]=!0))}var Fo={construct:GP,destroyer:JP,destroy:HP,undestroy:zP,errorOrDestroy:Gd};const{ArrayIsArray:XP,ObjectSetPrototypeOf:Fm}=Jt,{EventEmitter:Uf}=ee.requireEvents();function qf(e){Uf.call(this,e)}Fm(qf.prototype,Uf.prototype);Fm(qf,Uf);qf.prototype.pipe=function(e,t){const r=this;function i(h){e.writable&&e.write(h)===!1&&r.pause&&r.pause()}r.on("data",i);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",f),r.on("close",d));let s=!1;function f(){s||(s=!0,e.end())}function d(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function c(h){l(),Uf.listenerCount(this,"error")===0&&this.emit("error",h)}Vd(r,"error",c),Vd(e,"error",c);function l(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",f),r.removeListener("close",d),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e};function Vd(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):XP(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var Sh={Stream:qf,prependListener:Vd},jm={exports:{}};(function(e){const{SymbolDispose:t}=Jt,{AbortError:r,codes:i}=Br,{isNodeStream:a,isWebStream:s,kControllerErrorFunction:f}=ti,d=Ii,{ERR_INVALID_ARG_TYPE:c}=i;let l;const h=(_,b)=>{if(typeof _!="object"||!("aborted"in _))throw new c(b,"AbortSignal",_)};e.exports.addAbortSignal=function(b,y){if(h(b,"signal"),!a(y)&&!s(y))throw new c("stream",["ReadableStream","WritableStream","Stream"],y);return e.exports.addAbortSignalNoValidate(b,y)},e.exports.addAbortSignalNoValidate=function(_,b){if(typeof _!="object"||!("aborted"in _))return b;const y=a(b)?()=>{b.destroy(new r(void 0,{cause:_.reason}))}:()=>{b[f](new r(void 0,{cause:_.reason}))};if(_.aborted)y();else{l=l||Ir.addAbortListener;const T=l(_,y);d(b,T[t])}return b}})(jm);var Hf=jm.exports;const{StringPrototypeSlice:k0,SymbolIterator:YP,TypedArrayPrototypeSet:Xs,Uint8Array:QP}=Jt,{Buffer:$l}=ee.bufferPolyfill,{inspect:eC}=Ir;var tC=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return $l.alloc(0);const r=$l.allocUnsafe(t>>>0);let i=this.head,a=0;for(;i;)Xs(r,i.data,a),a+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(t<i.length){const a=i.slice(0,t);return this.head.data=i.slice(t),a}return t===i.length?this.shift():r?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[YP](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let r="",i=this.head,a=0;do{const s=i.data;if(t>s.length)r+=s,t-=s.length;else{t===s.length?(r+=s,++a,i.next?this.head=i.next:this.head=this.tail=null):(r+=k0(s,0,t),this.head=i,i.data=k0(s,t));break}++a}while((i=i.next)!==null);return this.length-=a,r}_getBuffer(t){const r=$l.allocUnsafe(t),i=t;let a=this.head,s=0;do{const f=a.data;if(t>f.length)Xs(r,f,i-t),t-=f.length;else{t===f.length?(Xs(r,f,i-t),++s,a.next?this.head=a.next:this.head=this.tail=null):(Xs(r,new QP(f.buffer,f.byteOffset,t),i-t),this.head=a,a.data=f.slice(t));break}++s}while((a=a.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return eC(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:rC,NumberIsInteger:nC}=Jt,{validateInteger:iC}=Fa,{ERR_INVALID_ARG_VALUE:oC}=Br.codes;let km=16*1024,Um=16;function aC(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function qm(e){return e?Um:km}function sC(e,t){iC(t,"value",0),e?Um=t:km=t}function fC(e,t,r,i){const a=aC(t,i,r);if(a!=null){if(!nC(a)||a<0){const s=i?`options.${r}`:"options.highWaterMark";throw new oC(s,a)}return rC(a)}return qm(e.objectMode)}var Wf={getHighWaterMark:fC,getDefaultHighWaterMark:qm,setDefaultHighWaterMark:sC};const U0=ee.browserExports,{PromisePrototypeThen:uC,SymbolAsyncIterator:q0,SymbolIterator:H0}=Jt,{Buffer:cC}=ee.bufferPolyfill,{ERR_INVALID_ARG_TYPE:lC,ERR_STREAM_NULL_VALUES:dC}=Br.codes;function hC(e,t,r){let i;if(typeof t=="string"||t instanceof cC)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let a;if(t&&t[q0])a=!0,i=t[q0]();else if(t&&t[H0])a=!1,i=t[H0]();else throw new lC("iterable",["Iterable"],t);const s=new e({objectMode:!0,highWaterMark:1,...r});let f=!1;s._read=function(){f||(f=!0,c())},s._destroy=function(l,h){uC(d(l),()=>U0.nextTick(h,l),_=>U0.nextTick(h,_||l))};async function d(l){const h=l!=null,_=typeof i.throw=="function";if(h&&_){const{value:b,done:y}=await i.throw(l);if(await b,y)return}if(typeof i.return=="function"){const{value:b}=await i.return();await b}}async function c(){for(;;){try{const{value:l,done:h}=a?await i.next():i.next();if(h)s.push(null);else{const _=l&&typeof l.then=="function"?await l:l;if(_===null)throw f=!1,new dC;if(s.push(_))continue;f=!1}}catch(l){s.destroy(l)}break}}return s}var Hm=hC,xl,W0;function zf(){if(W0)return xl;W0=1;const e=ee.browserExports,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:f,ObjectSetPrototypeOf:d,Promise:c,SafeSet:l,SymbolAsyncDispose:h,SymbolAsyncIterator:_,Symbol:b}=Jt;xl=re,re.ReadableState=et;const{EventEmitter:y}=ee.requireEvents(),{Stream:T,prependListener:k}=Sh,{Buffer:E}=ee.bufferPolyfill,{addAbortSignal:I}=Hf,v=Ii;let w=Ir.debuglog("stream",N=>{w=N});const S=tC,H=Fo,{getHighWaterMark:Q,getDefaultHighWaterMark:ie}=Wf,{aggregateTwoErrors:he,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:Ee,ERR_OUT_OF_RANGE:ve,ERR_STREAM_PUSH_AFTER_EOF:m,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:O},AbortError:P}=Br,{validateObject:Z}=Fa,ae=b("kPaused"),{StringDecoder:X}=ee.requireString_decoder(),ne=Hm;d(re.prototype,T.prototype),d(re,T);const F=()=>{},{errorOrDestroy:x}=H,Y=1,B=2,j=4,$=8,U=16,G=32,de=64,oe=128,ue=256,Se=512,Be=1024,Me=2048,z=4096,J=8192,ge=16384,Ne=32768,Te=65536,je=1<<17,me=1<<18;function Ye(N){return{enumerable:!1,get(){return(this.state&N)!==0},set(W){W?this.state|=N:this.state&=~N}}}s(et.prototype,{objectMode:Ye(Y),ended:Ye(B),endEmitted:Ye(j),reading:Ye($),constructed:Ye(U),sync:Ye(G),needReadable:Ye(de),emittedReadable:Ye(oe),readableListening:Ye(ue),resumeScheduled:Ye(Se),errorEmitted:Ye(Be),emitClose:Ye(Me),autoDestroy:Ye(z),destroyed:Ye(J),closed:Ye(ge),closeEmitted:Ye(Ne),multiAwaitDrain:Ye(Te),readingMore:Ye(je),dataEmitted:Ye(me)});function et(N,W,Ce){typeof Ce!="boolean"&&(Ce=W instanceof Yn()),this.state=Me|z|U|G,N&&N.objectMode&&(this.state|=Y),Ce&&N&&N.readableObjectMode&&(this.state|=Y),this.highWaterMark=N?Q(this,N,"readableHighWaterMark",Ce):ie(!1),this.buffer=new S,this.length=0,this.pipes=[],this.flowing=null,this[ae]=null,N&&N.emitClose===!1&&(this.state&=~Me),N&&N.autoDestroy===!1&&(this.state&=~z),this.errored=null,this.defaultEncoding=N&&N.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,N&&N.encoding&&(this.decoder=new X(N.encoding),this.encoding=N.encoding)}function re(N){if(!(this instanceof re))return new re(N);const W=this instanceof Yn();this._readableState=new et(N,this,W),N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.construct=="function"&&(this._construct=N.construct),N.signal&&!W&&I(N.signal,this)),T.call(this,N),H.construct(this,()=>{this._readableState.needReadable&&D(this,this._readableState)})}re.prototype.destroy=H.destroy,re.prototype._undestroy=H.undestroy,re.prototype._destroy=function(N,W){W(N)},re.prototype[y.captureRejectionSymbol]=function(N){this.destroy(N)},re.prototype[h]=function(){let N;return this.destroyed||(N=this.readableEnded?null:new P,this.destroy(N)),new c((W,Ce)=>v(this,ze=>ze&&ze!==N?Ce(ze):W(null)))},re.prototype.push=function(N,W){return xe(this,N,W,!1)},re.prototype.unshift=function(N,W){return xe(this,N,W,!0)};function xe(N,W,Ce,ze){w("readableAddChunk",W);const Ge=N._readableState;let rt;if(Ge.state&Y||(typeof W=="string"?(Ce=Ce||Ge.defaultEncoding,Ge.encoding!==Ce&&(ze&&Ge.encoding?W=E.from(W,Ce).toString(Ge.encoding):(W=E.from(W,Ce),Ce=""))):W instanceof E?Ce="":T._isUint8Array(W)?(W=T._uint8ArrayToBuffer(W),Ce=""):W!=null&&(rt=new le("chunk",["string","Buffer","Uint8Array"],W))),rt)x(N,rt);else if(W===null)Ge.state&=~$,Ue(N,Ge);else if(Ge.state&Y||W&&W.length>0)if(ze)if(Ge.state&j)x(N,new O);else{if(Ge.destroyed||Ge.errored)return!1;M(N,Ge,W,!0)}else if(Ge.ended)x(N,new m);else{if(Ge.destroyed||Ge.errored)return!1;Ge.state&=~$,Ge.decoder&&!Ce?(W=Ge.decoder.write(W),Ge.objectMode||W.length!==0?M(N,Ge,W,!1):D(N,Ge)):M(N,Ge,W,!1)}else ze||(Ge.state&=~$,D(N,Ge));return!Ge.ended&&(Ge.length<Ge.highWaterMark||Ge.length===0)}function M(N,W,Ce,ze){W.flowing&&W.length===0&&!W.sync&&N.listenerCount("data")>0?(W.state&Te?W.awaitDrainWriters.clear():W.awaitDrainWriters=null,W.dataEmitted=!0,N.emit("data",Ce)):(W.length+=W.objectMode?1:Ce.length,ze?W.buffer.unshift(Ce):W.buffer.push(Ce),W.state&de&&ke(N)),D(N,W)}re.prototype.isPaused=function(){const N=this._readableState;return N[ae]===!0||N.flowing===!1},re.prototype.setEncoding=function(N){const W=new X(N);this._readableState.decoder=W,this._readableState.encoding=this._readableState.decoder.encoding;const Ce=this._readableState.buffer;let ze="";for(const Ge of Ce)ze+=W.write(Ge);return Ce.clear(),ze!==""&&Ce.push(ze),this._readableState.length=ze.length,this};const ce=1073741824;function De(N){if(N>ce)throw new ve("size","<= 1GiB",N);return N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++,N}function Ve(N,W){return N<=0||W.length===0&&W.ended?0:W.state&Y?1:i(N)?W.flowing&&W.length?W.buffer.first().length:W.length:N<=W.length?N:W.ended?W.length:0}re.prototype.read=function(N){w("read",N),N===void 0?N=NaN:r(N)||(N=a(N,10));const W=this._readableState,Ce=N;if(N>W.highWaterMark&&(W.highWaterMark=De(N)),N!==0&&(W.state&=~oe),N===0&&W.needReadable&&((W.highWaterMark!==0?W.length>=W.highWaterMark:W.length>0)||W.ended))return w("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?Ie(this):ke(this),null;if(N=Ve(N,W),N===0&&W.ended)return W.length===0&&Ie(this),null;let ze=(W.state&de)!==0;if(w("need readable",ze),(W.length===0||W.length-N<W.highWaterMark)&&(ze=!0,w("length less than watermark",ze)),W.ended||W.reading||W.destroyed||W.errored||!W.constructed)ze=!1,w("reading, ended or constructing",ze);else if(ze){w("do read"),W.state|=$|G,W.length===0&&(W.state|=de);try{this._read(W.highWaterMark)}catch(rt){x(this,rt)}W.state&=~G,W.reading||(N=Ve(Ce,W))}let Ge;return N>0?Ge=_e(N,W):Ge=null,Ge===null?(W.needReadable=W.length<=W.highWaterMark,N=0):(W.length-=N,W.multiAwaitDrain?W.awaitDrainWriters.clear():W.awaitDrainWriters=null),W.length===0&&(W.ended||(W.needReadable=!0),Ce!==N&&W.ended&&Ie(this)),Ge!==null&&!W.errorEmitted&&!W.closeEmitted&&(W.dataEmitted=!0,this.emit("data",Ge)),Ge};function Ue(N,W){if(w("onEofChunk"),!W.ended){if(W.decoder){const Ce=W.decoder.end();Ce&&Ce.length&&(W.buffer.push(Ce),W.length+=W.objectMode?1:Ce.length)}W.ended=!0,W.sync?ke(N):(W.needReadable=!1,W.emittedReadable=!0,Xe(N))}}function ke(N){const W=N._readableState;w("emitReadable",W.needReadable,W.emittedReadable),W.needReadable=!1,W.emittedReadable||(w("emitReadable",W.flowing),W.emittedReadable=!0,e.nextTick(Xe,N))}function Xe(N){const W=N._readableState;w("emitReadable_",W.destroyed,W.length,W.ended),!W.destroyed&&!W.errored&&(W.length||W.ended)&&(N.emit("readable"),W.emittedReadable=!1),W.needReadable=!W.flowing&&!W.ended&&W.length<=W.highWaterMark,Oe(N)}function D(N,W){!W.readingMore&&W.constructed&&(W.readingMore=!0,e.nextTick(Re,N,W))}function Re(N,W){for(;!W.reading&&!W.ended&&(W.length<W.highWaterMark||W.flowing&&W.length===0);){const Ce=W.length;if(w("maybeReadMore read 0"),N.read(0),Ce===W.length)break}W.readingMore=!1}re.prototype._read=function(N){throw new Ee("_read()")},re.prototype.pipe=function(N,W){const Ce=this,ze=this._readableState;ze.pipes.length===1&&(ze.multiAwaitDrain||(ze.multiAwaitDrain=!0,ze.awaitDrainWriters=new l(ze.awaitDrainWriters?[ze.awaitDrainWriters]:[]))),ze.pipes.push(N),w("pipe count=%d opts=%j",ze.pipes.length,W);const rt=(!W||W.end!==!1)&&N!==e.stdout&&N!==e.stderr?bt:tr;ze.endEmitted?e.nextTick(rt):Ce.once("end",rt),N.on("unpipe",ot);function ot(Gt,Vt){w("onunpipe"),Gt===Ce&&Vt&&Vt.hasUnpiped===!1&&(Vt.hasUnpiped=!0,ur())}function bt(){w("onend"),N.end()}let ht,ar=!1;function ur(){w("cleanup"),N.removeListener("close",Tt),N.removeListener("finish",qt),ht&&N.removeListener("drain",ht),N.removeListener("error",St),N.removeListener("unpipe",ot),Ce.removeListener("end",bt),Ce.removeListener("end",tr),Ce.removeListener("data",Dt),ar=!0,ht&&ze.awaitDrainWriters&&(!N._writableState||N._writableState.needDrain)&&ht()}function wt(){ar||(ze.pipes.length===1&&ze.pipes[0]===N?(w("false write response, pause",0),ze.awaitDrainWriters=N,ze.multiAwaitDrain=!1):ze.pipes.length>1&&ze.pipes.includes(N)&&(w("false write response, pause",ze.awaitDrainWriters.size),ze.awaitDrainWriters.add(N)),Ce.pause()),ht||(ht=$e(Ce,N),N.on("drain",ht))}Ce.on("data",Dt);function Dt(Gt){w("ondata");const Vt=N.write(Gt);w("dest.write",Vt),Vt===!1&&wt()}function St(Gt){if(w("onerror",Gt),tr(),N.removeListener("error",St),N.listenerCount("error")===0){const Vt=N._writableState||N._readableState;Vt&&!Vt.errorEmitted?x(N,Gt):N.emit("error",Gt)}}k(N,"error",St);function Tt(){N.removeListener("finish",qt),tr()}N.once("close",Tt);function qt(){w("onfinish"),N.removeListener("close",Tt),tr()}N.once("finish",qt);function tr(){w("unpipe"),Ce.unpipe(N)}return N.emit("pipe",Ce),N.writableNeedDrain===!0?wt():ze.flowing||(w("pipe resume"),Ce.resume()),N};function $e(N,W){return function(){const ze=N._readableState;ze.awaitDrainWriters===W?(w("pipeOnDrain",1),ze.awaitDrainWriters=null):ze.multiAwaitDrain&&(w("pipeOnDrain",ze.awaitDrainWriters.size),ze.awaitDrainWriters.delete(W)),(!ze.awaitDrainWriters||ze.awaitDrainWriters.size===0)&&N.listenerCount("data")&&N.resume()}}re.prototype.unpipe=function(N){const W=this._readableState,Ce={hasUnpiped:!1};if(W.pipes.length===0)return this;if(!N){const Ge=W.pipes;W.pipes=[],this.pause();for(let rt=0;rt<Ge.length;rt++)Ge[rt].emit("unpipe",this,{hasUnpiped:!1});return this}const ze=t(W.pipes,N);return ze===-1?this:(W.pipes.splice(ze,1),W.pipes.length===0&&this.pause(),N.emit("unpipe",this,Ce),this)},re.prototype.on=function(N,W){const Ce=T.prototype.on.call(this,N,W),ze=this._readableState;return N==="data"?(ze.readableListening=this.listenerCount("readable")>0,ze.flowing!==!1&&this.resume()):N==="readable"&&!ze.endEmitted&&!ze.readableListening&&(ze.readableListening=ze.needReadable=!0,ze.flowing=!1,ze.emittedReadable=!1,w("on readable",ze.length,ze.reading),ze.length?ke(this):ze.reading||e.nextTick(C,this)),Ce},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(N,W){const Ce=T.prototype.removeListener.call(this,N,W);return N==="readable"&&e.nextTick(qe,this),Ce},re.prototype.off=re.prototype.removeListener,re.prototype.removeAllListeners=function(N){const W=T.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&e.nextTick(qe,this),W};function qe(N){const W=N._readableState;W.readableListening=N.listenerCount("readable")>0,W.resumeScheduled&&W[ae]===!1?W.flowing=!0:N.listenerCount("data")>0?N.resume():W.readableListening||(W.flowing=null)}function C(N){w("readable nexttick read 0"),N.read(0)}re.prototype.resume=function(){const N=this._readableState;return N.flowing||(w("resume"),N.flowing=!N.readableListening,K(this,N)),N[ae]=!1,this};function K(N,W){W.resumeScheduled||(W.resumeScheduled=!0,e.nextTick(A,N,W))}function A(N,W){w("resume",W.reading),W.reading||N.read(0),W.resumeScheduled=!1,N.emit("resume"),Oe(N),W.flowing&&!W.reading&&N.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ae]=!0,this};function Oe(N){const W=N._readableState;for(w("flow",W.flowing);W.flowing&&N.read()!==null;);}re.prototype.wrap=function(N){let W=!1;N.on("data",ze=>{!this.push(ze)&&N.pause&&(W=!0,N.pause())}),N.on("end",()=>{this.push(null)}),N.on("error",ze=>{x(this,ze)}),N.on("close",()=>{this.destroy()}),N.on("destroy",()=>{this.destroy()}),this._read=()=>{W&&N.resume&&(W=!1,N.resume())};const Ce=f(N);for(let ze=1;ze<Ce.length;ze++){const Ge=Ce[ze];this[Ge]===void 0&&typeof N[Ge]=="function"&&(this[Ge]=N[Ge].bind(N))}return this},re.prototype[_]=function(){return Ke(this)},re.prototype.iterator=function(N){return N!==void 0&&Z(N,"options"),Ke(this,N)};function Ke(N,W){typeof N.read!="function"&&(N=re.wrap(N,{objectMode:!0}));const Ce=p(N,W);return Ce.stream=N,Ce}async function*p(N,W){let Ce=F;function ze(ot){this===N?(Ce(),Ce=F):Ce=ot}N.on("readable",ze);let Ge;const rt=v(N,{writable:!1},ot=>{Ge=ot?he(Ge,ot):null,Ce(),Ce=F});try{for(;;){const ot=N.destroyed?null:N.read();if(ot!==null)yield ot;else{if(Ge)throw Ge;if(Ge===null)return;await new c(ze)}}}catch(ot){throw Ge=he(Ge,ot),Ge}finally{(Ge||(W==null?void 0:W.destroyOnReturn)!==!1)&&(Ge===void 0||N._readableState.autoDestroy)?H.destroyer(N,null):(N.off("readable",ze),rt())}}s(re.prototype,{readable:{__proto__:null,get(){const N=this._readableState;return!!N&&N.readable!==!1&&!N.destroyed&&!N.errorEmitted&&!N.endEmitted},set(N){this._readableState&&(this._readableState.readable=!!N)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(N){this._readableState&&(this._readableState.destroyed=N)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(et.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ae]!==!1},set(N){this[ae]=!!N}}}),re._fromList=_e;function _e(N,W){if(W.length===0)return null;let Ce;return W.objectMode?Ce=W.buffer.shift():!N||N>=W.length?(W.decoder?Ce=W.buffer.join(""):W.buffer.length===1?Ce=W.buffer.first():Ce=W.buffer.concat(W.length),W.buffer.clear()):Ce=W.buffer.consume(N,W.decoder),Ce}function Ie(N){const W=N._readableState;w("endReadable",W.endEmitted),W.endEmitted||(W.ended=!0,e.nextTick(L,W,N))}function L(N,W){if(w("endReadableNT",N.endEmitted,N.length),!N.errored&&!N.closeEmitted&&!N.endEmitted&&N.length===0){if(N.endEmitted=!0,W.emit("end"),W.writable&&W.allowHalfOpen===!1)e.nextTick(fe,W);else if(N.autoDestroy){const Ce=W._writableState;(!Ce||Ce.autoDestroy&&(Ce.finished||Ce.writable===!1))&&W.destroy()}}}function fe(N){N.writable&&!N.writableEnded&&!N.destroyed&&N.end()}re.from=function(N,W){return ne(re,N,W)};let Ae;function Je(){return Ae===void 0&&(Ae={}),Ae}return re.fromWeb=function(N,W){return Je().newStreamReadableFromReadableStream(N,W)},re.toWeb=function(N,W){return Je().newReadableStreamFromStreamReadable(N,W)},re.wrap=function(N,W){var Ce,ze;return new re({objectMode:(Ce=(ze=N.readableObjectMode)!==null&&ze!==void 0?ze:N.objectMode)!==null&&Ce!==void 0?Ce:!0,...W,destroy(Ge,rt){H.destroyer(N,Ge),rt(Ge)}}).wrap(N)},xl}var Dl,z0;function Ah(){if(z0)return Dl;z0=1;const e=ee.browserExports,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:f,StringPrototypeToLowerCase:d,Symbol:c,SymbolHasInstance:l}=Jt;Dl=Z,Z.WritableState=O;const{EventEmitter:h}=ee.requireEvents(),_=Sh.Stream,{Buffer:b}=ee.bufferPolyfill,y=Fo,{addAbortSignal:T}=Hf,{getHighWaterMark:k,getDefaultHighWaterMark:E}=Wf,{ERR_INVALID_ARG_TYPE:I,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:H,ERR_STREAM_ALREADY_FINISHED:Q,ERR_STREAM_NULL_VALUES:ie,ERR_STREAM_WRITE_AFTER_END:he,ERR_UNKNOWN_ENCODING:le}=Br.codes,{errorOrDestroy:Ee}=y;f(Z.prototype,_.prototype),f(Z,_);function ve(){}const m=c("kOnFinished");function O(z,J,ge){typeof ge!="boolean"&&(ge=J instanceof Yn()),this.objectMode=!!(z&&z.objectMode),ge&&(this.objectMode=this.objectMode||!!(z&&z.writableObjectMode)),this.highWaterMark=z?k(this,z,"writableHighWaterMark",ge):E(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const Ne=!!(z&&z.decodeStrings===!1);this.decodeStrings=!Ne,this.defaultEncoding=z&&z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=x.bind(void 0,J),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,P(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!z||z.emitClose!==!1,this.autoDestroy=!z||z.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[m]=[]}function P(z){z.buffered=[],z.bufferedIndex=0,z.allBuffers=!0,z.allNoop=!0}O.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},a(O.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Z(z){const J=this instanceof Yn();if(!J&&!i(Z,this))return new Z(z);this._writableState=new O(z,this,J),z&&(typeof z.write=="function"&&(this._write=z.write),typeof z.writev=="function"&&(this._writev=z.writev),typeof z.destroy=="function"&&(this._destroy=z.destroy),typeof z.final=="function"&&(this._final=z.final),typeof z.construct=="function"&&(this._construct=z.construct),z.signal&&T(z.signal,this)),_.call(this,z),y.construct(this,()=>{const ge=this._writableState;ge.writing||$(this,ge),oe(this,ge)})}a(Z,l,{__proto__:null,value:function(z){return i(this,z)?!0:this!==Z?!1:z&&z._writableState instanceof O}}),Z.prototype.pipe=function(){Ee(this,new S)};function ae(z,J,ge,Ne){const Te=z._writableState;if(typeof ge=="function")Ne=ge,ge=Te.defaultEncoding;else{if(!ge)ge=Te.defaultEncoding;else if(ge!=="buffer"&&!b.isEncoding(ge))throw new le(ge);typeof Ne!="function"&&(Ne=ve)}if(J===null)throw new ie;if(!Te.objectMode)if(typeof J=="string")Te.decodeStrings!==!1&&(J=b.from(J,ge),ge="buffer");else if(J instanceof b)ge="buffer";else if(_._isUint8Array(J))J=_._uint8ArrayToBuffer(J),ge="buffer";else throw new I("chunk",["string","Buffer","Uint8Array"],J);let je;return Te.ending?je=new he:Te.destroyed&&(je=new H("write")),je?(e.nextTick(Ne,je),Ee(z,je,!0),je):(Te.pendingcb++,X(z,Te,J,ge,Ne))}Z.prototype.write=function(z,J,ge){return ae(this,z,J,ge)===!0},Z.prototype.cork=function(){this._writableState.corked++},Z.prototype.uncork=function(){const z=this._writableState;z.corked&&(z.corked--,z.writing||$(this,z))},Z.prototype.setDefaultEncoding=function(J){if(typeof J=="string"&&(J=d(J)),!b.isEncoding(J))throw new le(J);return this._writableState.defaultEncoding=J,this};function X(z,J,ge,Ne,Te){const je=J.objectMode?1:ge.length;J.length+=je;const me=J.length<J.highWaterMark;return me||(J.needDrain=!0),J.writing||J.corked||J.errored||!J.constructed?(J.buffered.push({chunk:ge,encoding:Ne,callback:Te}),J.allBuffers&&Ne!=="buffer"&&(J.allBuffers=!1),J.allNoop&&Te!==ve&&(J.allNoop=!1)):(J.writelen=je,J.writecb=Te,J.writing=!0,J.sync=!0,z._write(ge,Ne,J.onwrite),J.sync=!1),me&&!J.errored&&!J.destroyed}function ne(z,J,ge,Ne,Te,je,me){J.writelen=Ne,J.writecb=me,J.writing=!0,J.sync=!0,J.destroyed?J.onwrite(new H("write")):ge?z._writev(Te,J.onwrite):z._write(Te,je,J.onwrite),J.sync=!1}function F(z,J,ge,Ne){--J.pendingcb,Ne(ge),j(J),Ee(z,ge)}function x(z,J){const ge=z._writableState,Ne=ge.sync,Te=ge.writecb;if(typeof Te!="function"){Ee(z,new w);return}ge.writing=!1,ge.writecb=null,ge.length-=ge.writelen,ge.writelen=0,J?(J.stack,ge.errored||(ge.errored=J),z._readableState&&!z._readableState.errored&&(z._readableState.errored=J),Ne?e.nextTick(F,z,ge,J,Te):F(z,ge,J,Te)):(ge.buffered.length>ge.bufferedIndex&&$(z,ge),Ne?ge.afterWriteTickInfo!==null&&ge.afterWriteTickInfo.cb===Te?ge.afterWriteTickInfo.count++:(ge.afterWriteTickInfo={count:1,cb:Te,stream:z,state:ge},e.nextTick(Y,ge.afterWriteTickInfo)):B(z,ge,1,Te))}function Y({stream:z,state:J,count:ge,cb:Ne}){return J.afterWriteTickInfo=null,B(z,J,ge,Ne)}function B(z,J,ge,Ne){for(!J.ending&&!z.destroyed&&J.length===0&&J.needDrain&&(J.needDrain=!1,z.emit("drain"));ge-- >0;)J.pendingcb--,Ne();J.destroyed&&j(J),oe(z,J)}function j(z){if(z.writing)return;for(let Te=z.bufferedIndex;Te<z.buffered.length;++Te){var J;const{chunk:je,callback:me}=z.buffered[Te],Ye=z.objectMode?1:je.length;z.length-=Ye,me((J=z.errored)!==null&&J!==void 0?J:new H("write"))}const ge=z[m].splice(0);for(let Te=0;Te<ge.length;Te++){var Ne;ge[Te]((Ne=z.errored)!==null&&Ne!==void 0?Ne:new H("end"))}P(z)}function $(z,J){if(J.corked||J.bufferProcessing||J.destroyed||!J.constructed)return;const{buffered:ge,bufferedIndex:Ne,objectMode:Te}=J,je=ge.length-Ne;if(!je)return;let me=Ne;if(J.bufferProcessing=!0,je>1&&z._writev){J.pendingcb-=je-1;const Ye=J.allNoop?ve:re=>{for(let xe=me;xe<ge.length;++xe)ge[xe].callback(re)},et=J.allNoop&&me===0?ge:t(ge,me);et.allBuffers=J.allBuffers,ne(z,J,!0,J.length,et,"",Ye),P(J)}else{do{const{chunk:Ye,encoding:et,callback:re}=ge[me];ge[me++]=null;const xe=Te?1:Ye.length;ne(z,J,!1,xe,Ye,et,re)}while(me<ge.length&&!J.writing);me===ge.length?P(J):me>256?(ge.splice(0,me),J.bufferedIndex=0):J.bufferedIndex=me}J.bufferProcessing=!1}Z.prototype._write=function(z,J,ge){if(this._writev)this._writev([{chunk:z,encoding:J}],ge);else throw new v("_write()")},Z.prototype._writev=null,Z.prototype.end=function(z,J,ge){const Ne=this._writableState;typeof z=="function"?(ge=z,z=null,J=null):typeof J=="function"&&(ge=J,J=null);let Te;if(z!=null){const je=ae(this,z,J);je instanceof r&&(Te=je)}return Ne.corked&&(Ne.corked=1,this.uncork()),Te||(!Ne.errored&&!Ne.ending?(Ne.ending=!0,oe(this,Ne,!0),Ne.ended=!0):Ne.finished?Te=new Q("end"):Ne.destroyed&&(Te=new H("end"))),typeof ge=="function"&&(Te||Ne.finished?e.nextTick(ge,Te):Ne[m].push(ge)),this};function U(z){return z.ending&&!z.destroyed&&z.constructed&&z.length===0&&!z.errored&&z.buffered.length===0&&!z.finished&&!z.writing&&!z.errorEmitted&&!z.closeEmitted}function G(z,J){let ge=!1;function Ne(Te){if(ge){Ee(z,Te??w());return}if(ge=!0,J.pendingcb--,Te){const je=J[m].splice(0);for(let me=0;me<je.length;me++)je[me](Te);Ee(z,Te,J.sync)}else U(J)&&(J.prefinished=!0,z.emit("prefinish"),J.pendingcb++,e.nextTick(ue,z,J))}J.sync=!0,J.pendingcb++;try{z._final(Ne)}catch(Te){Ne(Te)}J.sync=!1}function de(z,J){!J.prefinished&&!J.finalCalled&&(typeof z._final=="function"&&!J.destroyed?(J.finalCalled=!0,G(z,J)):(J.prefinished=!0,z.emit("prefinish")))}function oe(z,J,ge){U(J)&&(de(z,J),J.pendingcb===0&&(ge?(J.pendingcb++,e.nextTick((Ne,Te)=>{U(Te)?ue(Ne,Te):Te.pendingcb--},z,J)):U(J)&&(J.pendingcb++,ue(z,J))))}function ue(z,J){J.pendingcb--,J.finished=!0;const ge=J[m].splice(0);for(let Ne=0;Ne<ge.length;Ne++)ge[Ne]();if(z.emit("finish"),J.autoDestroy){const Ne=z._readableState;(!Ne||Ne.autoDestroy&&(Ne.endEmitted||Ne.readable===!1))&&z.destroy()}}s(Z.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(z){this._writableState&&(this._writableState.destroyed=z)}},writable:{__proto__:null,get(){const z=this._writableState;return!!z&&z.writable!==!1&&!z.destroyed&&!z.errored&&!z.ending&&!z.ended},set(z){this._writableState&&(this._writableState.writable=!!z)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){const z=this._writableState;return z?!z.destroyed&&!z.ending&&z.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});const Se=y.destroy;Z.prototype.destroy=function(z,J){const ge=this._writableState;return!ge.destroyed&&(ge.bufferedIndex<ge.buffered.length||ge[m].length)&&e.nextTick(j,ge),Se.call(this,z,J),this},Z.prototype._undestroy=y.undestroy,Z.prototype._destroy=function(z,J){J(z)},Z.prototype[h.captureRejectionSymbol]=function(z){this.destroy(z)};let Be;function Me(){return Be===void 0&&(Be={}),Be}return Z.fromWeb=function(z,J){return Me().newStreamWritableFromWritableStream(z,J)},Z.toWeb=function(z){return Me().newWritableStreamFromStreamWritable(z)},Dl}var Ml,G0;function pC(){if(G0)return Ml;G0=1;const e=ee.browserExports,t=ee.bufferPolyfill,{isReadable:r,isWritable:i,isIterable:a,isNodeStream:s,isReadableNodeStream:f,isWritableNodeStream:d,isDuplexNodeStream:c,isReadableStream:l,isWritableStream:h}=ti,_=Ii,{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:y,ERR_INVALID_RETURN_VALUE:T}}=Br,{destroyer:k}=Fo,E=Yn(),I=zf(),v=Ah(),{createDeferredPromise:w}=Ir,S=Hm,H=globalThis.Blob||t.Blob,Q=typeof H<"u"?function(O){return O instanceof H}:function(O){return!1},ie=globalThis.AbortController||Ta().AbortController,{FunctionPrototypeCall:he}=Jt;class le extends E{constructor(O){super(O),(O==null?void 0:O.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(O==null?void 0:O.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}Ml=function m(O,P){if(c(O))return O;if(f(O))return ve({readable:O});if(d(O))return ve({writable:O});if(s(O))return ve({writable:!1,readable:!1});if(l(O))return ve({readable:I.fromWeb(O)});if(h(O))return ve({writable:v.fromWeb(O)});if(typeof O=="function"){const{value:ae,write:X,final:ne,destroy:F}=Ee(O);if(a(ae))return S(le,ae,{objectMode:!0,write:X,final:ne,destroy:F});const x=ae==null?void 0:ae.then;if(typeof x=="function"){let Y;const B=he(x,ae,j=>{if(j!=null)throw new T("nully","body",j)},j=>{k(Y,j)});return Y=new le({objectMode:!0,readable:!1,write:X,final(j){ne(async()=>{try{await B,e.nextTick(j,null)}catch($){e.nextTick(j,$)}})},destroy:F})}throw new T("Iterable, AsyncIterable or AsyncFunction",P,ae)}if(Q(O))return m(O.arrayBuffer());if(a(O))return S(le,O,{objectMode:!0,writable:!1});if(l(O==null?void 0:O.readable)&&h(O==null?void 0:O.writable))return le.fromWeb(O);if(typeof(O==null?void 0:O.writable)=="object"||typeof(O==null?void 0:O.readable)=="object"){const ae=O!=null&&O.readable?f(O==null?void 0:O.readable)?O==null?void 0:O.readable:m(O.readable):void 0,X=O!=null&&O.writable?d(O==null?void 0:O.writable)?O==null?void 0:O.writable:m(O.writable):void 0;return ve({readable:ae,writable:X})}const Z=O==null?void 0:O.then;if(typeof Z=="function"){let ae;return he(Z,O,X=>{X!=null&&ae.push(X),ae.push(null)},X=>{k(ae,X)}),ae=new le({objectMode:!0,writable:!1,read(){}})}throw new y(P,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],O)};function Ee(m){let{promise:O,resolve:P}=w();const Z=new ie,ae=Z.signal;return{value:m(async function*(){for(;;){const ne=O;O=null;const{chunk:F,done:x,cb:Y}=await ne;if(e.nextTick(Y),x)return;if(ae.aborted)throw new b(void 0,{cause:ae.reason});({promise:O,resolve:P}=w()),yield F}}(),{signal:ae}),write(ne,F,x){const Y=P;P=null,Y({chunk:ne,done:!1,cb:x})},final(ne){const F=P;P=null,F({done:!0,cb:ne})},destroy(ne,F){Z.abort(),F(ne)}}}function ve(m){const O=m.readable&&typeof m.readable.read!="function"?I.wrap(m.readable):m.readable,P=m.writable;let Z=!!r(O),ae=!!i(P),X,ne,F,x,Y;function B(j){const $=x;x=null,$?$(j):j&&Y.destroy(j)}return Y=new le({readableObjectMode:!!(O!=null&&O.readableObjectMode),writableObjectMode:!!(P!=null&&P.writableObjectMode),readable:Z,writable:ae}),ae&&(_(P,j=>{ae=!1,j&&k(O,j),B(j)}),Y._write=function(j,$,U){P.write(j,$)?U():X=U},Y._final=function(j){P.end(),ne=j},P.on("drain",function(){if(X){const j=X;X=null,j()}}),P.on("finish",function(){if(ne){const j=ne;ne=null,j()}})),Z&&(_(O,j=>{Z=!1,j&&k(O,j),B(j)}),O.on("readable",function(){if(F){const j=F;F=null,j()}}),O.on("end",function(){Y.push(null)}),Y._read=function(){for(;;){const j=O.read();if(j===null){F=Y._read;return}if(!Y.push(j))return}}),Y._destroy=function(j,$){!j&&x!==null&&(j=new b),F=null,X=null,ne=null,x===null?$(j):(x=$,k(P,j),k(O,j))},Y}return Ml}var Fl,V0;function Yn(){if(V0)return Fl;V0=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=Jt;Fl=f;const a=zf(),s=Ah();i(f.prototype,a.prototype),i(f,a);{const h=r(s.prototype);for(let _=0;_<h.length;_++){const b=h[_];f.prototype[b]||(f.prototype[b]=s.prototype[b])}}function f(h){if(!(this instanceof f))return new f(h);a.call(this,h),s.call(this,h),h?(this.allowHalfOpen=h.allowHalfOpen!==!1,h.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),h.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(f.prototype,{writable:{__proto__:null,...t(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(s.prototype,"writableLength")},writableFinished:{__proto__:null,...t(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(h){this._readableState&&this._writableState&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}});let d;function c(){return d===void 0&&(d={}),d}f.fromWeb=function(h,_){return c().newStreamDuplexFromReadableWritablePair(h,_)},f.toWeb=function(h){return c().newReadableWritablePairFromDuplex(h)};let l;return f.from=function(h){return l||(l=pC()),l(h,"body")},Fl}const{ObjectSetPrototypeOf:Wm,Symbol:gC}=Jt;var zm=Qn;const{ERR_METHOD_NOT_IMPLEMENTED:yC}=Br.codes,Rh=Yn(),{getHighWaterMark:_C}=Wf;Wm(Qn.prototype,Rh.prototype);Wm(Qn,Rh);const Aa=gC("kCallback");function Qn(e){if(!(this instanceof Qn))return new Qn(e);const t=e?_C(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),Rh.call(this,e),this._readableState.sync=!1,this[Aa]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",bC)}function Zd(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function bC(){this._final!==Zd&&Zd.call(this)}Qn.prototype._final=Zd;Qn.prototype._transform=function(e,t,r){throw new yC("_transform()")};Qn.prototype._write=function(e,t,r){const i=this._readableState,a=this._writableState,s=i.length;this._transform(e,t,(f,d)=>{if(f){r(f);return}d!=null&&this.push(d),a.ended||s===i.length||i.length<i.highWaterMark?r():this[Aa]=r})};Qn.prototype._read=function(){if(this[Aa]){const e=this[Aa];this[Aa]=null,e()}};const{ObjectSetPrototypeOf:Gm}=Jt;var Vm=Co;const Ih=zm;Gm(Co.prototype,Ih.prototype);Gm(Co,Ih);function Co(e){if(!(this instanceof Co))return new Co(e);Ih.call(this,e)}Co.prototype._transform=function(e,t,r){r(null,e)};const Ea=ee.browserExports,{ArrayIsArray:mC,Promise:vC,SymbolAsyncIterator:wC,SymbolDispose:EC}=Jt,Sf=Ii,{once:SC}=Ir,AC=Fo,Z0=Yn(),{aggregateTwoErrors:RC,codes:{ERR_INVALID_ARG_TYPE:Kd,ERR_INVALID_RETURN_VALUE:jl,ERR_MISSING_ARGS:IC,ERR_STREAM_DESTROYED:OC,ERR_STREAM_PREMATURE_CLOSE:TC},AbortError:PC}=Br,{validateFunction:CC,validateAbortSignal:LC}=Fa,{isIterable:Ui,isReadable:kl,isReadableNodeStream:gf,isNodeStream:K0,isTransformStream:Ao,isWebStream:NC,isReadableStream:Ul,isReadableFinished:BC}=ti,$C=globalThis.AbortController||Ta().AbortController;let ql,Hl,Wl;function J0(e,t,r){let i=!1;e.on("close",()=>{i=!0});const a=Sf(e,{readable:t,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,AC.destroyer(e,s||new OC("pipe")))},cleanup:a}}function xC(e){return CC(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function zl(e){if(Ui(e))return e;if(gf(e))return DC(e);throw new Kd("val",["Readable","Iterable","AsyncIterable"],e)}async function*DC(e){Hl||(Hl=zf()),yield*Hl.prototype[wC].call(e)}async function Ys(e,t,r,{end:i}){let a,s=null;const f=l=>{if(l&&(a=l),s){const h=s;s=null,h()}},d=()=>new vC((l,h)=>{a?h(a):s=()=>{a?h(a):l()}});t.on("drain",f);const c=Sf(t,{readable:!1},f);try{t.writableNeedDrain&&await d();for await(const l of e)t.write(l)||await d();i&&(t.end(),await d()),r()}catch(l){r(a!==l?RC(a,l):l)}finally{c(),t.off("drain",f)}}async function Gl(e,t,r,{end:i}){Ao(t)&&(t=t.writable);const a=t.getWriter();try{for await(const s of e)await a.ready,a.write(s).catch(()=>{});await a.ready,i&&await a.close(),r()}catch(s){try{await a.abort(s),r(s)}catch(f){r(f)}}}function MC(...e){return Zm(e,SC(xC(e)))}function Zm(e,t,r){if(e.length===1&&mC(e[0])&&(e=e[0]),e.length<2)throw new IC("streams");const i=new $C,a=i.signal,s=r==null?void 0:r.signal,f=[];LC(s,"options.signal");function d(){T(new PC)}Wl=Wl||Ir.addAbortListener;let c;s&&(c=Wl(s,d));let l,h;const _=[];let b=0;function y(v){T(v,--b===0)}function T(v,w){var S;if(v&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=v),!(!l&&!w)){for(;_.length;)_.shift()(l);(S=c)===null||S===void 0||S[EC](),i.abort(),w&&(l||f.forEach(H=>H()),Ea.nextTick(t,l,h))}}let k;for(let v=0;v<e.length;v++){const w=e[v],S=v<e.length-1,H=v>0,Q=S||(r==null?void 0:r.end)!==!1,ie=v===e.length-1;if(K0(w)){let he=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&y(le)};if(Q){const{destroy:le,cleanup:Ee}=J0(w,S,H);_.push(le),kl(w)&&ie&&f.push(Ee)}w.on("error",he),kl(w)&&ie&&f.push(()=>{w.removeListener("error",he)})}if(v===0)if(typeof w=="function"){if(k=w({signal:a}),!Ui(k))throw new jl("Iterable, AsyncIterable or Stream","source",k)}else Ui(w)||gf(w)||Ao(w)?k=w:k=Z0.from(w);else if(typeof w=="function"){if(Ao(k)){var E;k=zl((E=k)===null||E===void 0?void 0:E.readable)}else k=zl(k);if(k=w(k,{signal:a}),S){if(!Ui(k,!0))throw new jl("AsyncIterable",`transform[${v-1}]`,k)}else{var I;ql||(ql=Vm);const he=new ql({objectMode:!0}),le=(I=k)===null||I===void 0?void 0:I.then;if(typeof le=="function")b++,le.call(k,m=>{h=m,m!=null&&he.write(m),Q&&he.end(),Ea.nextTick(y)},m=>{he.destroy(m),Ea.nextTick(y,m)});else if(Ui(k,!0))b++,Ys(k,he,y,{end:Q});else if(Ul(k)||Ao(k)){const m=k.readable||k;b++,Ys(m,he,y,{end:Q})}else throw new jl("AsyncIterable or Promise","destination",k);k=he;const{destroy:Ee,cleanup:ve}=J0(k,!1,!0);_.push(Ee),ie&&f.push(ve)}}else if(K0(w)){if(gf(k)){b+=2;const he=FC(k,w,y,{end:Q});kl(w)&&ie&&f.push(he)}else if(Ao(k)||Ul(k)){const he=k.readable||k;b++,Ys(he,w,y,{end:Q})}else if(Ui(k))b++,Ys(k,w,y,{end:Q});else throw new Kd("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],k);k=w}else if(NC(w)){if(gf(k))b++,Gl(zl(k),w,y,{end:Q});else if(Ul(k)||Ui(k))b++,Gl(k,w,y,{end:Q});else if(Ao(k))b++,Gl(k.readable,w,y,{end:Q});else throw new Kd("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],k);k=w}else k=Z0.from(w)}return(a!=null&&a.aborted||s!=null&&s.aborted)&&Ea.nextTick(d),k}function FC(e,t,r,{end:i}){let a=!1;if(t.on("close",()=>{a||r(new TC)}),e.pipe(t,{end:!1}),i){let s=function(){a=!0,t.end()};BC(e)?Ea.nextTick(s):e.once("end",s)}else r();return Sf(e,{readable:!0,writable:!1},s=>{const f=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&f&&f.ended&&!f.errored&&!f.errorEmitted?e.once("end",r).once("error",r):r(s)}),Sf(t,{readable:!1,writable:!0},r)}var Oh={pipelineImpl:Zm,pipeline:MC};const{pipeline:jC}=Oh,Qs=Yn(),{destroyer:kC}=Fo,{isNodeStream:ef,isReadable:X0,isWritable:Y0,isWebStream:Vl,isTransformStream:ji,isWritableStream:Q0,isReadableStream:e_}=ti,{AbortError:UC,codes:{ERR_INVALID_ARG_VALUE:t_,ERR_MISSING_ARGS:qC}}=Br,HC=Ii;var Km=function(...t){if(t.length===0)throw new qC("streams");if(t.length===1)return Qs.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=Qs.from(t[0])),typeof t[t.length-1]=="function"){const y=t.length-1;t[y]=Qs.from(t[y])}for(let y=0;y<t.length;++y)if(!(!ef(t[y])&&!Vl(t[y]))){if(y<t.length-1&&!(X0(t[y])||e_(t[y])||ji(t[y])))throw new t_(`streams[${y}]`,r[y],"must be readable");if(y>0&&!(Y0(t[y])||Q0(t[y])||ji(t[y])))throw new t_(`streams[${y}]`,r[y],"must be writable")}let i,a,s,f,d;function c(y){const T=f;f=null,T?T(y):y?d.destroy(y):!b&&!_&&d.destroy()}const l=t[0],h=jC(t,c),_=!!(Y0(l)||Q0(l)||ji(l)),b=!!(X0(h)||e_(h)||ji(h));if(d=new Qs({writableObjectMode:!!(l!=null&&l.writableObjectMode),readableObjectMode:!!(h!=null&&h.readableObjectMode),writable:_,readable:b}),_){if(ef(l))d._write=function(T,k,E){l.write(T,k)?E():i=E},d._final=function(T){l.end(),a=T},l.on("drain",function(){if(i){const T=i;i=null,T()}});else if(Vl(l)){const k=(ji(l)?l.writable:l).getWriter();d._write=async function(E,I,v){try{await k.ready,k.write(E).catch(()=>{}),v()}catch(w){v(w)}},d._final=async function(E){try{await k.ready,k.close().catch(()=>{}),a=E}catch(I){E(I)}}}const y=ji(h)?h.readable:h;HC(y,()=>{if(a){const T=a;a=null,T()}})}if(b){if(ef(h))h.on("readable",function(){if(s){const y=s;s=null,y()}}),h.on("end",function(){d.push(null)}),d._read=function(){for(;;){const y=h.read();if(y===null){s=d._read;return}if(!d.push(y))return}};else if(Vl(h)){const T=(ji(h)?h.readable:h).getReader();d._read=async function(){for(;;)try{const{value:k,done:E}=await T.read();if(!d.push(k))return;if(E){d.push(null);return}}catch{return}}}}return d._destroy=function(y,T){!y&&f!==null&&(y=new UC),s=null,i=null,a=null,f===null?T(y):(f=T,ef(h)&&kC(h,y))},d};const WC=globalThis.AbortController||Ta().AbortController,{codes:{ERR_INVALID_ARG_VALUE:zC,ERR_INVALID_ARG_TYPE:ja,ERR_MISSING_ARGS:GC,ERR_OUT_OF_RANGE:VC},AbortError:Nn}=Br,{validateAbortSignal:Ji,validateInteger:r_,validateObject:Xi}=Fa,ZC=Jt.Symbol("kWeak"),KC=Jt.Symbol("kResistStopPropagation"),{finished:JC}=Ii,XC=Km,{addAbortSignalNoValidate:YC}=Hf,{isWritable:QC,isNodeStream:eL}=ti,{deprecate:tL}=Ir,{ArrayPrototypePush:rL,Boolean:nL,MathFloor:n_,Number:iL,NumberIsNaN:oL,Promise:i_,PromiseReject:o_,PromiseResolve:aL,PromisePrototypeThen:a_,Symbol:Jm}=Jt,Af=Jm("kEmpty"),s_=Jm("kEof");function sL(e,t){if(t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal"),eL(e)&&!QC(e))throw new zC("stream",e,"must be writable");const r=XC(this,e);return t!=null&&t.signal&&YC(t.signal,r),r}function Gf(e,t){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=n_(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=n_(t.highWaterMark)),r_(r,"options.concurrency",1),r_(i,"options.highWaterMark",0),i+=r,(async function*(){const s=Ir.AbortSignalAny([t==null?void 0:t.signal].filter(nL)),f=this,d=[],c={signal:s};let l,h,_=!1,b=0;function y(){_=!0,T()}function T(){b-=1,k()}function k(){h&&!_&&b<r&&d.length<i&&(h(),h=null)}async function E(){try{for await(let I of f){if(_)return;if(s.aborted)throw new Nn;try{if(I=e(I,c),I===Af)continue;I=aL(I)}catch(v){I=o_(v)}b+=1,a_(I,T,y),d.push(I),l&&(l(),l=null),!_&&(d.length>=i||b>=r)&&await new i_(v=>{h=v})}d.push(s_)}catch(I){const v=o_(I);a_(v,T,y),d.push(v)}finally{_=!0,l&&(l(),l=null)}}E();try{for(;;){for(;d.length>0;){const I=await d[0];if(I===s_)return;if(s.aborted)throw new Nn;I!==Af&&(yield I),d.shift(),k()}await new i_(I=>{l=I})}}finally{_=!0,h&&(h(),h=null)}}).call(this)}function fL(e=void 0){return e!=null&&Xi(e,"options"),(e==null?void 0:e.signal)!=null&&Ji(e.signal,"options.signal"),(async function*(){let r=0;for await(const a of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new Nn({cause:e.signal.reason});yield[r++,a]}}).call(this)}async function Xm(e,t=void 0){for await(const r of Th.call(this,e,t))return!0;return!1}async function uL(e,t=void 0){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);return!await Xm.call(this,async(...r)=>!await e(...r),t)}async function cL(e,t){for await(const r of Th.call(this,e,t))return r}async function lL(e,t){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a),Af}for await(const i of Gf.call(this,r,t));}function Th(e,t){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a)?i:Af}return Gf.call(this,r,t)}class dL extends GC{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function hL(e,t,r){var i;if(typeof e!="function")throw new ja("reducer",["Function","AsyncFunction"],e);r!=null&&Xi(r,"options"),(r==null?void 0:r.signal)!=null&&Ji(r.signal,"options.signal");let a=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const l=new Nn(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await JC(this.destroy(l)),l}const s=new WC,f=s.signal;if(r!=null&&r.signal){const l={once:!0,[ZC]:this,[KC]:!0};r.signal.addEventListener("abort",()=>s.abort(),l)}let d=!1;try{for await(const l of this){var c;if(d=!0,r!=null&&(c=r.signal)!==null&&c!==void 0&&c.aborted)throw new Nn;a?t=await e(t,l,{signal:f}):(t=l,a=!0)}if(!d&&!a)throw new dL}finally{s.abort()}return t}async function pL(e){e!=null&&Xi(e,"options"),(e==null?void 0:e.signal)!=null&&Ji(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new Nn(void 0,{cause:e.signal.reason});rL(t,i)}return t}function gL(e,t){const r=Gf.call(this,e,t);return(async function*(){for await(const a of r)yield*a}).call(this)}function Ym(e){if(e=iL(e),oL(e))return 0;if(e<0)throw new VC("number",">= 0",e);return e}function yL(e,t=void 0){return t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal"),e=Ym(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Nn;for await(const s of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new Nn;e--<=0&&(yield s)}}).call(this)}function _L(e,t=void 0){return t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal"),e=Ym(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Nn;for await(const s of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new Nn;if(e-- >0&&(yield s),e<=0)return}}).call(this)}bh.streamReturningOperators={asIndexedPairs:tL(fL,"readable.asIndexedPairs will be removed in a future version."),drop:yL,filter:Th,flatMap:gL,map:Gf,take:_L,compose:sL};bh.promiseReturningOperators={every:uL,forEach:lL,reduce:hL,toArray:pL,some:Xm,find:cL};var Zl,f_;function Qm(){if(f_)return Zl;f_=1;const{ArrayPrototypePop:e,Promise:t}=Jt,{isIterable:r,isNodeStream:i,isWebStream:a}=ti,{pipelineImpl:s}=Oh,{finished:f}=Ii;ev();function d(...c){return new t((l,h)=>{let _,b;const y=c[c.length-1];if(y&&typeof y=="object"&&!i(y)&&!r(y)&&!a(y)){const T=e(c);_=T.signal,b=T.end}s(c,(T,k)=>{T?h(T):l(k)},{signal:_,end:b})})}return Zl={finished:f,pipeline:d},Zl}var u_;function ev(){if(u_)return Ll.exports;u_=1;const{Buffer:e}=ee.bufferPolyfill,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=Jt,{promisify:{custom:a}}=Ir,{streamReturningOperators:s,promiseReturningOperators:f}=bh,{codes:{ERR_ILLEGAL_CONSTRUCTOR:d}}=Br,c=Km,{setDefaultHighWaterMark:l,getDefaultHighWaterMark:h}=Wf,{pipeline:_}=Oh,{destroyer:b}=Fo,y=Ii,T=Qm(),k=ti,E=Ll.exports=Sh.Stream;E.isDestroyed=k.isDestroyed,E.isDisturbed=k.isDisturbed,E.isErrored=k.isErrored,E.isReadable=k.isReadable,E.isWritable=k.isWritable,E.Readable=zf();for(const v of r(s)){let S=function(...H){if(new.target)throw d();return E.Readable.from(i(w,this,H))};const w=s[v];t(S,"name",{__proto__:null,value:w.name}),t(S,"length",{__proto__:null,value:w.length}),t(E.Readable.prototype,v,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}for(const v of r(f)){let S=function(...H){if(new.target)throw d();return i(w,this,H)};const w=f[v];t(S,"name",{__proto__:null,value:w.name}),t(S,"length",{__proto__:null,value:w.length}),t(E.Readable.prototype,v,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}E.Writable=Ah(),E.Duplex=Yn(),E.Transform=zm,E.PassThrough=Vm,E.pipeline=_;const{addAbortSignal:I}=Hf;return E.addAbortSignal=I,E.finished=y,E.destroy=b,E.compose=c,E.setDefaultHighWaterMark=l,E.getDefaultHighWaterMark=h,t(E,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return T}}),t(_,a,{__proto__:null,enumerable:!0,get(){return T.pipeline}}),t(y,a,{__proto__:null,enumerable:!0,get(){return T.finished}}),E.Stream=E,E._isUint8Array=function(w){return w instanceof Uint8Array},E._uint8ArrayToBuffer=function(w){return e.from(w.buffer,w.byteOffset,w.byteLength)},Ll.exports}(function(e){const t=ev(),r=Qm(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(c2);var bL={},Vi={},Ph={},lr={};class tv extends TypeError{constructor(t,r){let i;const{message:a,explanation:s,...f}=t,{path:d}=t,c=d.length===0?a:`At path: ${d.join(".")} -- ${a}`;super(s??c),s!=null&&(this.cause=c),Object.assign(this,f),this.name=this.constructor.name,this.failures=()=>i??(i=[t,...r()])}}function mL(e){return nn(e)&&typeof e[Symbol.iterator]=="function"}function nn(e){return typeof e=="object"&&e!=null}function c_(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function or(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function vL(e){const{done:t,value:r}=e.next();return t?void 0:r}function wL(e,t,r,i){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:a,branch:s}=t,{type:f}=r,{refinement:d,message:c=`Expected a value of type \`${f}\`${d?` with refinement \`${d}\``:""}, but received: \`${or(i)}\``}=e;return{value:i,type:f,refinement:d,key:a[a.length-1],path:a,branch:s,...e,message:c}}function*Jd(e,t,r,i){mL(e)||(e=[e]);for(const a of e){const s=wL(a,t,r,i);s&&(yield s)}}function*Ch(e,t,r={}){const{path:i=[],branch:a=[e],coerce:s=!1,mask:f=!1}=r,d={path:i,branch:a};if(s&&(e=t.coercer(e,d),f&&t.type!=="type"&&nn(t.schema)&&nn(e)&&!Array.isArray(e)))for(const l in e)t.schema[l]===void 0&&delete e[l];let c="valid";for(const l of t.validator(e,d))l.explanation=r.message,c="not_valid",yield[l,void 0];for(let[l,h,_]of t.entries(e,d)){const b=Ch(h,_,{path:l===void 0?i:[...i,l],branch:l===void 0?a:[...a,h],coerce:s,mask:f,message:r.message});for(const y of b)y[0]?(c=y[0].refinement!=null?"not_refined":"not_valid",yield[y[0],void 0]):s&&(h=y[1],l===void 0?e=h:e instanceof Map?e.set(l,h):e instanceof Set?e.add(h):nn(e)&&(h!==void 0||l in e)&&(e[l]=h))}if(c!=="not_valid")for(const l of t.refiner(e,d))l.explanation=r.message,c="not_refined",yield[l,void 0];c==="valid"&&(yield[void 0,e])}class er{constructor(t){const{type:r,schema:i,validator:a,refiner:s,coercer:f=c=>c,entries:d=function*(){}}=t;this.type=r,this.schema=i,this.entries=d,this.coercer=f,a?this.validator=(c,l)=>{const h=a(c,l);return Jd(h,l,this,c)}:this.validator=()=>[],s?this.refiner=(c,l)=>{const h=s(c,l);return Jd(h,l,this,c)}:this.refiner=()=>[]}assert(t,r){return rv(t,this,r)}create(t,r){return nv(t,this,r)}is(t){return Lh(t,this)}mask(t,r){return iv(t,this,r)}validate(t,r={}){return jo(t,this,r)}}function rv(e,t,r){const i=jo(e,t,{message:r});if(i[0])throw i[0]}function nv(e,t,r){const i=jo(e,t,{coerce:!0,message:r});if(i[0])throw i[0];return i[1]}function iv(e,t,r){const i=jo(e,t,{coerce:!0,mask:!0,message:r});if(i[0])throw i[0];return i[1]}function Lh(e,t){return!jo(e,t)[0]}function jo(e,t,r={}){const i=Ch(e,t,r),a=vL(i);return a[0]?[new tv(a[0],function*(){for(const f of i)f[0]&&(yield f[0])}),void 0]:[void 0,a[1]]}function EL(...e){const t=e[0].type==="type",r=e.map(a=>a.schema),i=Object.assign({},...r);return t?Ua(i):ka(i)}function $r(e,t){return new er({type:e,schema:null,validator:t})}function SL(e,t){return new er({...e,refiner:(r,i)=>r===void 0||e.refiner(r,i),validator(r,i){return r===void 0?!0:(t(r,i),e.validator(r,i))}})}function AL(e){return new er({type:"dynamic",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function RL(e){let t;return new er({type:"lazy",schema:null,*entries(r,i){t??(t=e()),yield*t.entries(r,i)},validator(r,i){return t??(t=e()),t.validator(r,i)},coercer(r,i){return t??(t=e()),t.coercer(r,i)},refiner(r,i){return t??(t=e()),t.refiner(r,i)}})}function IL(e,t){const{schema:r}=e,i={...r};for(const a of t)delete i[a];switch(e.type){case"type":return Ua(i);default:return ka(i)}}function OL(e){const t=e instanceof er,r=t?{...e.schema}:{...e};for(const i in r)r[i]=ov(r[i]);return t&&e.type==="type"?Ua(r):ka(r)}function TL(e,t){const{schema:r}=e,i={};for(const a of t)i[a]=r[a];switch(e.type){case"type":return Ua(i);default:return ka(i)}}function PL(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),$r(e,t)}function CL(){return $r("any",()=>!0)}function LL(e){return new er({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,i]of t.entries())yield[r,i,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${or(t)}`}})}function NL(){return $r("bigint",e=>typeof e=="bigint")}function BL(){return $r("boolean",e=>typeof e=="boolean")}function $L(){return $r("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${or(e)}`)}function xL(e){const t={},r=e.map(i=>or(i)).join();for(const i of e)t[i]=i;return new er({type:"enums",schema:t,validator(i){return e.includes(i)||`Expected one of \`${r}\`, but received: ${or(i)}`}})}function DL(){return $r("func",e=>typeof e=="function"||`Expected a function, but received: ${or(e)}`)}function ML(e){return $r("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${or(t)}`)}function FL(){return $r("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${or(e)}`)}function jL(e){return new er({type:"intersection",schema:null,*entries(t,r){for(const i of e)yield*i.entries(t,r)},*validator(t,r){for(const i of e)yield*i.validator(t,r)},*refiner(t,r){for(const i of e)yield*i.refiner(t,r)}})}function kL(e){const t=or(e),r=typeof e;return new er({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(i){return i===e||`Expected the literal \`${t}\`, but received: ${or(i)}`}})}function UL(e,t){return new er({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[i,a]of r.entries())yield[i,i,e],yield[i,a,t]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \`Map\` object, but received: ${or(r)}`}})}function Nh(){return $r("never",()=>!1)}function qL(e){return new er({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function HL(){return $r("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${or(e)}`)}function ka(e){const t=e?Object.keys(e):[],r=Nh();return new er({type:"object",schema:e||null,*entries(i){if(e&&nn(i)){const a=new Set(Object.keys(i));for(const s of t)a.delete(s),yield[s,i[s],e[s]];for(const s of a)yield[s,i[s],r]}},validator(i){return nn(i)||`Expected an object, but received: ${or(i)}`},coercer(i){return nn(i)?{...i}:i}})}function ov(e){return new er({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function WL(e,t){return new er({type:"record",schema:null,*entries(r){if(nn(r))for(const i in r){const a=r[i];yield[i,i,e],yield[i,a,t]}},validator(r){return nn(r)||`Expected an object, but received: ${or(r)}`}})}function zL(){return $r("regexp",e=>e instanceof RegExp)}function GL(e){return new er({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \`Set\` object, but received: ${or(t)}`}})}function av(){return $r("string",e=>typeof e=="string"||`Expected a string, but received: ${or(e)}`)}function VL(e){const t=Nh();return new er({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const i=Math.max(e.length,r.length);for(let a=0;a<i;a++)yield[a,r[a],e[a]||t]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${or(r)}`}})}function Ua(e){const t=Object.keys(e);return new er({type:"type",schema:e,*entries(r){if(nn(r))for(const i of t)yield[i,r[i],e[i]]},validator(r){return nn(r)||`Expected an object, but received: ${or(r)}`},coercer(r){return nn(r)?{...r}:r}})}function ZL(e){const t=e.map(r=>r.type).join(" | ");return new er({type:"union",schema:null,coercer(r){for(const i of e){const[a,s]=i.validate(r,{coerce:!0});if(!a)return s}return r},validator(r,i){const a=[];for(const s of e){const[...f]=Ch(r,s,i),[d]=f;if(d[0])for(const[c]of f)c&&a.push(c);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${or(r)}`,...a]}})}function sv(){return $r("unknown",()=>!0)}function Bh(e,t,r){return new er({...e,coercer:(i,a)=>Lh(i,t)?e.coercer(r(i,a),a):e.coercer(i,a)})}function KL(e,t,r={}){return Bh(e,sv(),i=>{const a=typeof t=="function"?t():t;if(i===void 0)return a;if(!r.strict&&c_(i)&&c_(a)){const s={...i};let f=!1;for(const d in a)s[d]===void 0&&(s[d]=a[d],f=!0);if(f)return s}return i})}function JL(e){return Bh(e,av(),t=>t.trim())}function XL(e){return Yi(e,"empty",t=>{const r=fv(t);return r===0||`Expected an empty ${e.type} but received one with a size of \`${r}\``})}function fv(e){return e instanceof Map||e instanceof Set?e.size:e.length}function YL(e,t,r={}){const{exclusive:i}=r;return Yi(e,"max",a=>i?a<t:a<=t||`Expected a ${e.type} less than ${i?"":"or equal to "}${t} but received \`${a}\``)}function QL(e,t,r={}){const{exclusive:i}=r;return Yi(e,"min",a=>i?a>t:a>=t||`Expected a ${e.type} greater than ${i?"":"or equal to "}${t} but received \`${a}\``)}function eN(e){return Yi(e,"nonempty",t=>fv(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function tN(e,t){return Yi(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function rN(e,t,r=t){const i=`Expected a ${e.type}`,a=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return Yi(e,"size",s=>{if(typeof s=="number"||s instanceof Date)return t<=s&&s<=r||`${i} ${a} but received \`${s}\``;if(s instanceof Map||s instanceof Set){const{size:f}=s;return t<=f&&f<=r||`${i} with a size ${a} but received one with a size of \`${f}\``}else{const{length:f}=s;return t<=f&&f<=r||`${i} with a length ${a} but received one with a length of \`${f}\``}})}function Yi(e,t,r){return new er({...e,*refiner(i,a){yield*e.refiner(i,a);const s=r(i,a),f=Jd(s,a,e,i);for(const d of f)yield{...d,refinement:t}}})}const nN=Object.freeze(Object.defineProperty({__proto__:null,Struct:er,StructError:tv,any:CL,array:LL,assert:rv,assign:EL,bigint:NL,boolean:BL,coerce:Bh,create:nv,date:$L,defaulted:KL,define:$r,deprecated:SL,dynamic:AL,empty:XL,enums:xL,func:DL,instance:ML,integer:FL,intersection:jL,is:Lh,lazy:RL,literal:kL,map:UL,mask:iv,max:YL,min:QL,never:Nh,nonempty:eN,nullable:qL,number:HL,object:ka,omit:IL,optional:ov,partial:OL,pattern:tN,pick:TL,record:WL,refine:Yi,regexp:zL,set:GL,size:rN,string:av,struct:PL,trimmed:JL,tuple:VL,type:Ua,union:ZL,unknown:sv,validate:jo},Symbol.toStringTag,{value:"Module"})),Qi=ee.getAugmentedNamespace(nN);Object.defineProperty(lr,"__esModule",{value:!0});lr.assertExhaustive=lr.assertStruct=lr.assert=lr.AssertionError=void 0;const iN=Qi;function oN(e){return typeof e=="object"&&e!==null&&"message"in e}function aN(e){var t,r;return typeof((r=(t=e==null?void 0:e.prototype)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.name)=="string"}function sN(e){const t=oN(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}function uv(e,t){return aN(e)?new e({message:t}):e({message:t})}class $h extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}lr.AssertionError=$h;function fN(e,t="Assertion failed.",r=$h){if(!e)throw t instanceof Error?t:uv(r,t)}lr.assert=fN;function uN(e,t,r="Assertion failed",i=$h){try{(0,iN.assert)(e,t)}catch(a){throw uv(i,`${r}: ${sN(a)}.`)}}lr.assertStruct=uN;function cN(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}lr.assertExhaustive=cN;var qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.base64=void 0;const lN=Qi,dN=lr,hN=(e,t={})=>{var r,i;const a=(r=t.paddingRequired)!==null&&r!==void 0?r:!1,s=(i=t.characterSet)!==null&&i!==void 0?i:"base64";let f;s==="base64"?f=String.raw`[A-Za-z0-9+\/]`:((0,dN.assert)(s==="base64url"),f=String.raw`[-_A-Za-z0-9]`);let d;return a?d=new RegExp(`^(?:${f}{4})*(?:${f}{3}=|${f}{2}==)?$`,"u"):d=new RegExp(`^(?:${f}{4})*(?:${f}{2,3}|${f}{3}=|${f}{2}==)?$`,"u"),(0,lN.pattern)(e,d)};qa.base64=hN;var At={},Ha={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=Qi,r=lr;e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu);function i(l){return(0,t.is)(l,e.HexStruct)}e.isHexString=i;function a(l){return(0,t.is)(l,e.StrictHexStruct)}e.isStrictHexString=a;function s(l){(0,r.assert)(i(l),"Value must be a hexadecimal string.")}e.assertIsHexString=s;function f(l){(0,r.assert)(a(l),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=f;function d(l){return l.startsWith("0x")?l:l.startsWith("0X")?`0x${l.substring(2)}`:`0x${l}`}e.add0x=d;function c(l){return l.startsWith("0x")||l.startsWith("0X")?l.substring(2):l}e.remove0x=c})(Ha);Object.defineProperty(At,"__esModule",{value:!0});At.createDataView=At.concatBytes=At.valueToBytes=At.stringToBytes=At.numberToBytes=At.signedBigIntToBytes=At.bigIntToBytes=At.hexToBytes=At.bytesToString=At.bytesToNumber=At.bytesToSignedBigInt=At.bytesToBigInt=At.bytesToHex=At.assertIsBytes=At.isBytes=void 0;const Hr=lr,Xd=Ha,l_=48,d_=58,h_=87;function pN(){const e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}const gN=pN();function xh(e){return e instanceof Uint8Array}At.isBytes=xh;function ko(e){(0,Hr.assert)(xh(e),"Value must be a Uint8Array.")}At.assertIsBytes=ko;function cv(e){if(ko(e),e.length===0)return"0x";const t=gN(),r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=t[e[i]];return(0,Xd.add0x)(r.join(""))}At.bytesToHex=cv;function lv(e){ko(e);const t=cv(e);return BigInt(t)}At.bytesToBigInt=lv;function yN(e){ko(e);let t=BigInt(0);for(const r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(e.length*8,t)}At.bytesToSignedBigInt=yN;function _N(e){ko(e);const t=lv(e);return(0,Hr.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)}At.bytesToNumber=_N;function bN(e){return ko(e),new TextDecoder().decode(e)}At.bytesToString=bN;function Vf(e){var t;if(((t=e==null?void 0:e.toLowerCase)===null||t===void 0?void 0:t.call(e))==="0x")return new Uint8Array;(0,Xd.assertIsHexString)(e);const r=(0,Xd.remove0x)(e).toLowerCase(),i=r.length%2===0?r:`0${r}`,a=new Uint8Array(i.length/2);for(let s=0;s<a.length;s++){const f=i.charCodeAt(s*2),d=i.charCodeAt(s*2+1),c=f-(f<d_?l_:h_),l=d-(d<d_?l_:h_);a[s]=c*16+l}return a}At.hexToBytes=Vf;function dv(e){(0,Hr.assert)(typeof e=="bigint","Value must be a bigint."),(0,Hr.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");const t=e.toString(16);return Vf(t)}At.bigIntToBytes=dv;function mN(e,t){(0,Hr.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(t*8+-1))}function vN(e,t){(0,Hr.assert)(typeof e=="bigint","Value must be a bigint."),(0,Hr.assert)(typeof t=="number","Byte length must be a number."),(0,Hr.assert)(t>0,"Byte length must be greater than 0."),(0,Hr.assert)(mN(e,t),"Byte length is too small to represent the given value.");let r=e;const i=new Uint8Array(t);for(let a=0;a<i.length;a++)i[a]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return i.reverse()}At.signedBigIntToBytes=vN;function hv(e){(0,Hr.assert)(typeof e=="number","Value must be a number."),(0,Hr.assert)(e>=0,"Value must be a non-negative number."),(0,Hr.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");const t=e.toString(16);return Vf(t)}At.numberToBytes=hv;function pv(e){return(0,Hr.assert)(typeof e=="string","Value must be a string."),new TextEncoder().encode(e)}At.stringToBytes=pv;function gv(e){if(typeof e=="bigint")return dv(e);if(typeof e=="number")return hv(e);if(typeof e=="string")return e.startsWith("0x")?Vf(e):pv(e);if(xh(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}At.valueToBytes=gv;function wN(e){const t=new Array(e.length);let r=0;for(let a=0;a<e.length;a++){const s=gv(e[a]);t[a]=s,r+=s.length}const i=new Uint8Array(r);for(let a=0,s=0;a<t.length;a++)i.set(t[a],s),s+=t[a].length;return i}At.concatBytes=wN;function EN(e){if(typeof ee.dist.Buffer<"u"&&e instanceof ee.dist.Buffer){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}At.createDataView=EN;var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});Zf.ChecksumStruct=void 0;const p_=Qi,SN=qa;Zf.ChecksumStruct=(0,p_.size)((0,SN.base64)((0,p_.string)(),{paddingRequired:!0}),44,44);var In={};Object.defineProperty(In,"__esModule",{value:!0});In.createHex=In.createBytes=In.createBigInt=In.createNumber=void 0;const zt=Qi,AN=lr,yv=At,Kf=Ha,_v=(0,zt.union)([(0,zt.number)(),(0,zt.bigint)(),(0,zt.string)(),Kf.StrictHexStruct]),RN=(0,zt.coerce)((0,zt.number)(),_v,Number),IN=(0,zt.coerce)((0,zt.bigint)(),_v,BigInt);(0,zt.union)([Kf.StrictHexStruct,(0,zt.instance)(Uint8Array)]);const ON=(0,zt.coerce)((0,zt.instance)(Uint8Array),(0,zt.union)([Kf.StrictHexStruct]),yv.hexToBytes),TN=(0,zt.coerce)(Kf.StrictHexStruct,(0,zt.instance)(Uint8Array),yv.bytesToHex);function PN(e){try{const t=(0,zt.create)(e,RN);return(0,AN.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){throw t instanceof zt.StructError?new Error(`Expected a number-like value, got "${e}".`):t}}In.createNumber=PN;function CN(e){try{return(0,zt.create)(e,IN)}catch(t){throw t instanceof zt.StructError?new Error(`Expected a number-like value, got "${String(t.value)}".`):t}}In.createBigInt=CN;function LN(e){if(typeof e=="string"&&e.toLowerCase()==="0x")return new Uint8Array;try{return(0,zt.create)(e,ON)}catch(t){throw t instanceof zt.StructError?new Error(`Expected a bytes-like value, got "${String(t.value)}".`):t}}In.createBytes=LN;function NN(e){if(e instanceof Uint8Array&&e.length===0||typeof e=="string"&&e.toLowerCase()==="0x")return"0x";try{return(0,zt.create)(e,TN)}catch(t){throw t instanceof zt.StructError?new Error(`Expected a bytes-like value, got "${String(t.value)}".`):t}}In.createHex=NN;var Lo={},bv=ee.commonjsGlobal&&ee.commonjsGlobal.__classPrivateFieldSet||function(e,t,r,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},Rr=ee.commonjsGlobal&&ee.commonjsGlobal.__classPrivateFieldGet||function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},cn,Sn;Object.defineProperty(Lo,"__esModule",{value:!0});Lo.FrozenSet=Lo.FrozenMap=void 0;class Dh{constructor(t){cn.set(this,void 0),bv(this,cn,new Map(t),"f"),Object.freeze(this)}get size(){return Rr(this,cn,"f").size}[(cn=new WeakMap,Symbol.iterator)](){return Rr(this,cn,"f")[Symbol.iterator]()}entries(){return Rr(this,cn,"f").entries()}forEach(t,r){return Rr(this,cn,"f").forEach((i,a,s)=>t.call(r,i,a,this))}get(t){return Rr(this,cn,"f").get(t)}has(t){return Rr(this,cn,"f").has(t)}keys(){return Rr(this,cn,"f").keys()}values(){return Rr(this,cn,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,r])=>`${String(t)} => ${String(r)}`).join(", ")} `:""}}`}}Lo.FrozenMap=Dh;class Mh{constructor(t){Sn.set(this,void 0),bv(this,Sn,new Set(t),"f"),Object.freeze(this)}get size(){return Rr(this,Sn,"f").size}[(Sn=new WeakMap,Symbol.iterator)](){return Rr(this,Sn,"f")[Symbol.iterator]()}entries(){return Rr(this,Sn,"f").entries()}forEach(t,r){return Rr(this,Sn,"f").forEach((i,a,s)=>t.call(r,i,a,this))}has(t){return Rr(this,Sn,"f").has(t)}keys(){return Rr(this,Sn,"f").keys()}values(){return Rr(this,Sn,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(", ")} `:""}}`}}Lo.FrozenSet=Mh;Object.freeze(Dh);Object.freeze(Dh.prototype);Object.freeze(Mh);Object.freeze(Mh.prototype);var mv={};Object.defineProperty(mv,"__esModule",{value:!0});var vv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=void 0;const t=Qi,r=lr,i=()=>(0,t.define)("finite number",H=>(0,t.is)(H,(0,t.number)())&&Number.isFinite(H));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),i(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.define)("Json",(H,Q)=>{function ie(he,le){const ve=[...le.validator(he,Q)];return ve.length>0?ve:!0}try{const he=ie(H,e.UnsafeJsonStruct);return he!==!0?he:ie(JSON.parse(JSON.stringify(H)),e.UnsafeJsonStruct)}catch(he){return he instanceof RangeError?"Circular reference detected":!1}});function a(H){return(0,t.is)(H,e.JsonStruct)}e.isValidJson=a;function s(H){(0,r.assertStruct)(H,e.JsonStruct,"Invalid JSON value");const Q=JSON.stringify(H);return new TextEncoder().encode(Q).byteLength}e.getJsonSize=s,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]);function f(H){return(0,t.is)(H,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=f;function d(H,Q){(0,r.assertStruct)(H,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",Q)}e.assertIsJsonRpcNotification=d;function c(H){return(0,t.is)(H,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=c;function l(H,Q){(0,r.assertStruct)(H,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",Q)}e.assertIsJsonRpcRequest=l,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function h(H){return(0,t.is)(H,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=h;function _(H,Q){(0,r.assertStruct)(H,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",Q)}e.assertIsPendingJsonRpcResponse=_;function b(H){return(0,t.is)(H,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=b;function y(H,Q){(0,r.assertStruct)(H,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",Q)}e.assertIsJsonRpcResponse=y;function T(H){return(0,t.is)(H,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=T;function k(H,Q){(0,r.assertStruct)(H,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",Q)}e.assertIsJsonRpcSuccess=k;function E(H){return(0,t.is)(H,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=E;function I(H,Q){(0,r.assertStruct)(H,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",Q)}e.assertIsJsonRpcFailure=I;function v(H){return(0,t.is)(H,e.JsonRpcErrorStruct)}e.isJsonRpcError=v;function w(H,Q){(0,r.assertStruct)(H,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",Q)}e.assertIsJsonRpcError=w;function S(H){const{permitEmptyString:Q,permitFractions:ie,permitNull:he}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},H);return Ee=>!!(typeof Ee=="number"&&(ie||Number.isInteger(Ee))||typeof Ee=="string"&&(Q||Ee.length>0)||he&&Ee===null)}e.getJsonRpcIdValidator=S})(vv);var wv={};Object.defineProperty(wv,"__esModule",{value:!0});var No={},BN=ee.commonjsGlobal&&ee.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(No,"__esModule",{value:!0});No.createModuleLogger=No.createProjectLogger=void 0;const $N=BN(ZO),xN=(0,$N.default)("metamask");function DN(e){return xN.extend(e)}No.createProjectLogger=DN;function MN(e,t){return e.extend(t)}No.createModuleLogger=MN;var Ev={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(l){return Array.isArray(l)&&l.length>0}e.isNonEmptyArray=t;function r(l){return l==null}e.isNullOrUndefined=r;function i(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}e.isObject=i;const a=(l,h)=>Object.hasOwnProperty.call(l,h);e.hasProperty=a,function(l){l[l.Null=4]="Null",l[l.Comma=1]="Comma",l[l.Wrapper=1]="Wrapper",l[l.True=4]="True",l[l.False=5]="False",l[l.Quote=1]="Quote",l[l.Colon=1]="Colon",l[l.Date=24]="Date"}(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function s(l){if(typeof l!="object"||l===null)return!1;try{let h=l;for(;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);return Object.getPrototypeOf(l)===h}catch{return!1}}e.isPlainObject=s;function f(l){return l.charCodeAt(0)<=127}e.isASCII=f;function d(l){var h;return l.split("").reduce((b,y)=>f(y)?b+1:b+2,0)+((h=l.match(e.ESCAPE_CHARACTERS_REGEXP))!==null&&h!==void 0?h:[]).length}e.calculateStringSize=d;function c(l){return l.toString().length}e.calculateNumberSize=c})(Ev);var On={};Object.defineProperty(On,"__esModule",{value:!0});On.hexToBigInt=On.hexToNumber=On.bigIntToHex=On.numberToHex=void 0;const To=lr,Pa=Ha,FN=e=>((0,To.assert)(typeof e=="number","Value must be a number."),(0,To.assert)(e>=0,"Value must be a non-negative number."),(0,To.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,Pa.add0x)(e.toString(16)));On.numberToHex=FN;const jN=e=>((0,To.assert)(typeof e=="bigint","Value must be a bigint."),(0,To.assert)(e>=0,"Value must be a non-negative bigint."),(0,Pa.add0x)(e.toString(16)));On.bigIntToHex=jN;const kN=e=>{(0,Pa.assertIsHexString)(e);const t=parseInt(e,16);return(0,To.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};On.hexToNumber=kN;const UN=e=>((0,Pa.assertIsHexString)(e),BigInt((0,Pa.add0x)(e)));On.hexToBigInt=UN;var Sv={};Object.defineProperty(Sv,"__esModule",{value:!0});var Av={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,function(s){s[s.Millisecond=1]="Millisecond",s[s.Second=1e3]="Second",s[s.Minute=6e4]="Minute",s[s.Hour=36e5]="Hour",s[s.Day=864e5]="Day",s[s.Week=6048e5]="Week",s[s.Year=31536e6]="Year"}(e.Duration||(e.Duration={}));const t=s=>Number.isInteger(s)&&s>=0,r=(s,f)=>{if(!t(s))throw new Error(`"${f}" must be a non-negative integer. Received: "${s}".`)};function i(s,f){return r(s,"count"),s*f}e.inMilliseconds=i;function a(s){return r(s,"timestamp"),Date.now()-s}e.timeSince=a})(Av);var Rv={};Object.defineProperty(Rv,"__esModule",{value:!0});var Iv={},Yd={exports:{}};const qN="2.0.0",Ov=256,HN=Number.MAX_SAFE_INTEGER||9007199254740991,WN=16,zN=Ov-6,GN=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Jf={MAX_LENGTH:Ov,MAX_SAFE_COMPONENT_LENGTH:WN,MAX_SAFE_BUILD_LENGTH:zN,MAX_SAFE_INTEGER:HN,RELEASE_TYPES:GN,SEMVER_SPEC_VERSION:qN,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const VN=typeof ee.dist.process=="object"&&ee.dist.process.env&&ee.dist.process.env.NODE_DEBUG&&/\bsemver\b/i.test(ee.dist.process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Xf=VN;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=Jf,s=Xf;t=e.exports={};const f=t.re=[],d=t.safeRe=[],c=t.src=[],l=t.t={};let h=0;const _="[a-zA-Z0-9-]",b=[["\\s",1],["\\d",a],[_,i]],y=k=>{for(const[E,I]of b)k=k.split(`${E}*`).join(`${E}{0,${I}}`).split(`${E}+`).join(`${E}{1,${I}}`);return k},T=(k,E,I)=>{const v=y(E),w=h++;s(k,w,E),l[k]=w,c[w]=E,f[w]=new RegExp(E,I?"g":void 0),d[w]=new RegExp(v,I?"g":void 0)};T("NUMERICIDENTIFIER","0|[1-9]\\d*"),T("NUMERICIDENTIFIERLOOSE","\\d+"),T("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_}*`),T("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),T("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),T("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),T("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),T("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),T("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),T("BUILDIDENTIFIER",`${_}+`),T("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),T("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),T("FULL",`^${c[l.FULLPLAIN]}$`),T("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),T("LOOSE",`^${c[l.LOOSEPLAIN]}$`),T("GTLT","((?:<|>)?=?)"),T("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),T("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),T("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),T("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),T("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),T("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),T("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),T("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),T("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`),T("COERCERTL",c[l.COERCE],!0),T("COERCERTLFULL",c[l.COERCEFULL],!0),T("LONETILDE","(?:~>?)"),T("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",T("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),T("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),T("LONECARET","(?:\\^)"),T("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",T("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),T("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),T("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),T("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),T("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",T("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),T("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),T("STAR","(<|>)?=?\\s*\\*"),T("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),T("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Yd,Yd.exports);var Wa=Yd.exports;const ZN=Object.freeze({loose:!0}),KN=Object.freeze({}),JN=e=>e?typeof e!="object"?ZN:e:KN;var Fh=JN;const g_=/^[0-9]+$/,Tv=(e,t)=>{const r=g_.test(e),i=g_.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},XN=(e,t)=>Tv(t,e);var Pv={compareIdentifiers:Tv,rcompareIdentifiers:XN};const tf=Xf,{MAX_LENGTH:y_,MAX_SAFE_INTEGER:rf}=Jf,{safeRe:__,t:b_}=Wa,YN=Fh,{compareIdentifiers:wo}=Pv;let QN=class An{constructor(t,r){if(r=YN(r),t instanceof An){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>y_)throw new TypeError(`version is longer than ${y_} characters`);tf("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?__[b_.LOOSE]:__[b_.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>rf||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rf||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rf||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const s=+a;if(s>=0&&s<rf)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(tf("SemVer.compare",this.version,this.options,t),!(t instanceof An)){if(typeof t=="string"&&t===this.version)return 0;t=new An(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof An||(t=new An(t,this.options)),wo(this.major,t.major)||wo(this.minor,t.minor)||wo(this.patch,t.patch)}comparePre(t){if(t instanceof An||(t=new An(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const i=this.prerelease[r],a=t.prerelease[r];if(tf("prerelease compare",r,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return wo(i,a)}while(++r)}compareBuild(t){t instanceof An||(t=new An(t,this.options));let r=0;do{const i=this.build[r],a=t.build[r];if(tf("build compare",r,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return wo(i,a)}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const a=Number(i)?1:0;if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(r){let s=[r,a];i===!1&&(s=[r]),wo(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Or=QN;const m_=Or,eB=(e,t,r=!1)=>{if(e instanceof m_)return e;try{return new m_(e,t)}catch(i){if(!r)return null;throw i}};var Uo=eB;const tB=Uo,rB=(e,t)=>{const r=tB(e,t);return r?r.version:null};var nB=rB;const iB=Uo,oB=(e,t)=>{const r=iB(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var aB=oB;const v_=Or,sB=(e,t,r,i,a)=>{typeof r=="string"&&(a=i,i=r,r=void 0);try{return new v_(e instanceof v_?e.version:e,r).inc(t,i,a).version}catch{return null}};var fB=sB;const w_=Uo,uB=(e,t)=>{const r=w_(e,null,!0),i=w_(t,null,!0),a=r.compare(i);if(a===0)return null;const s=a>0,f=s?r:i,d=s?i:r,c=!!f.prerelease.length;if(!!d.prerelease.length&&!c)return!d.patch&&!d.minor?"major":f.patch?"patch":f.minor?"minor":"major";const h=c?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"};var cB=uB;const lB=Or,dB=(e,t)=>new lB(e,t).major;var hB=dB;const pB=Or,gB=(e,t)=>new pB(e,t).minor;var yB=gB;const _B=Or,bB=(e,t)=>new _B(e,t).patch;var mB=bB;const vB=Uo,wB=(e,t)=>{const r=vB(e,t);return r&&r.prerelease.length?r.prerelease:null};var EB=wB;const E_=Or,SB=(e,t,r)=>new E_(e,r).compare(new E_(t,r));var pn=SB;const AB=pn,RB=(e,t,r)=>AB(t,e,r);var IB=RB;const OB=pn,TB=(e,t)=>OB(e,t,!0);var PB=TB;const S_=Or,CB=(e,t,r)=>{const i=new S_(e,r),a=new S_(t,r);return i.compare(a)||i.compareBuild(a)};var jh=CB;const LB=jh,NB=(e,t)=>e.sort((r,i)=>LB(r,i,t));var BB=NB;const $B=jh,xB=(e,t)=>e.sort((r,i)=>$B(i,r,t));var DB=xB;const MB=pn,FB=(e,t,r)=>MB(e,t,r)>0;var Yf=FB;const jB=pn,kB=(e,t,r)=>jB(e,t,r)<0;var kh=kB;const UB=pn,qB=(e,t,r)=>UB(e,t,r)===0;var Cv=qB;const HB=pn,WB=(e,t,r)=>HB(e,t,r)!==0;var Lv=WB;const zB=pn,GB=(e,t,r)=>zB(e,t,r)>=0;var Uh=GB;const VB=pn,ZB=(e,t,r)=>VB(e,t,r)<=0;var qh=ZB;const KB=Cv,JB=Lv,XB=Yf,YB=Uh,QB=kh,e$=qh,t$=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return KB(e,r,i);case"!=":return JB(e,r,i);case">":return XB(e,r,i);case">=":return YB(e,r,i);case"<":return QB(e,r,i);case"<=":return e$(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}};var Nv=t$;const r$=Or,n$=Uo,{safeRe:nf,t:of}=Wa,i$=(e,t)=>{if(e instanceof r$)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?nf[of.COERCEFULL]:nf[of.COERCE]);else{const c=t.includePrerelease?nf[of.COERCERTLFULL]:nf[of.COERCERTL];let l;for(;(l=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;const i=r[2],a=r[3]||"0",s=r[4]||"0",f=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return n$(`${i}.${a}.${s}${f}${d}`,t)};var o$=i$;class a${constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(t,r)}return this}}var s$=a$,Kl,A_;function gn(){if(A_)return Kl;A_=1;const e=/\s+/g;class t{constructor(Z,ae){if(ae=a(ae),Z instanceof t)return Z.loose===!!ae.loose&&Z.includePrerelease===!!ae.includePrerelease?Z:new t(Z.raw,ae);if(Z instanceof s)return this.raw=Z.value,this.set=[[Z]],this.formatted=void 0,this;if(this.options=ae,this.loose=!!ae.loose,this.includePrerelease=!!ae.includePrerelease,this.raw=Z.trim().replace(e," "),this.set=this.raw.split("||").map(X=>this.parseRange(X.trim())).filter(X=>X.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const X=this.set[0];if(this.set=this.set.filter(ne=>!k(ne[0])),this.set.length===0)this.set=[X];else if(this.set.length>1){for(const ne of this.set)if(ne.length===1&&E(ne[0])){this.set=[ne];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Z=0;Z<this.set.length;Z++){Z>0&&(this.formatted+="||");const ae=this.set[Z];for(let X=0;X<ae.length;X++)X>0&&(this.formatted+=" "),this.formatted+=ae[X].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Z){const X=((this.options.includePrerelease&&y)|(this.options.loose&&T))+":"+Z,ne=i.get(X);if(ne)return ne;const F=this.options.loose,x=F?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];Z=Z.replace(x,m(this.options.includePrerelease)),f("hyphen replace",Z),Z=Z.replace(c[l.COMPARATORTRIM],h),f("comparator trim",Z),Z=Z.replace(c[l.TILDETRIM],_),f("tilde trim",Z),Z=Z.replace(c[l.CARETTRIM],b),f("caret trim",Z);let Y=Z.split(" ").map(U=>v(U,this.options)).join(" ").split(/\s+/).map(U=>ve(U,this.options));F&&(Y=Y.filter(U=>(f("loose invalid filter",U,this.options),!!U.match(c[l.COMPARATORLOOSE])))),f("range list",Y);const B=new Map,j=Y.map(U=>new s(U,this.options));for(const U of j){if(k(U))return[U];B.set(U.value,U)}B.size>1&&B.has("")&&B.delete("");const $=[...B.values()];return i.set(X,$),$}intersects(Z,ae){if(!(Z instanceof t))throw new TypeError("a Range is required");return this.set.some(X=>I(X,ae)&&Z.set.some(ne=>I(ne,ae)&&X.every(F=>ne.every(x=>F.intersects(x,ae)))))}test(Z){if(!Z)return!1;if(typeof Z=="string")try{Z=new d(Z,this.options)}catch{return!1}for(let ae=0;ae<this.set.length;ae++)if(O(this.set[ae],Z,this.options))return!0;return!1}}Kl=t;const r=s$,i=new r,a=Fh,s=Qf(),f=Xf,d=Or,{safeRe:c,t:l,comparatorTrimReplace:h,tildeTrimReplace:_,caretTrimReplace:b}=Wa,{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:T}=Jf,k=P=>P.value==="<0.0.0-0",E=P=>P.value==="",I=(P,Z)=>{let ae=!0;const X=P.slice();let ne=X.pop();for(;ae&&X.length;)ae=X.every(F=>ne.intersects(F,Z)),ne=X.pop();return ae},v=(P,Z)=>(f("comp",P,Z),P=Q(P,Z),f("caret",P),P=S(P,Z),f("tildes",P),P=he(P,Z),f("xrange",P),P=Ee(P,Z),f("stars",P),P),w=P=>!P||P.toLowerCase()==="x"||P==="*",S=(P,Z)=>P.trim().split(/\s+/).map(ae=>H(ae,Z)).join(" "),H=(P,Z)=>{const ae=Z.loose?c[l.TILDELOOSE]:c[l.TILDE];return P.replace(ae,(X,ne,F,x,Y)=>{f("tilde",P,X,ne,F,x,Y);let B;return w(ne)?B="":w(F)?B=`>=${ne}.0.0 <${+ne+1}.0.0-0`:w(x)?B=`>=${ne}.${F}.0 <${ne}.${+F+1}.0-0`:Y?(f("replaceTilde pr",Y),B=`>=${ne}.${F}.${x}-${Y} <${ne}.${+F+1}.0-0`):B=`>=${ne}.${F}.${x} <${ne}.${+F+1}.0-0`,f("tilde return",B),B})},Q=(P,Z)=>P.trim().split(/\s+/).map(ae=>ie(ae,Z)).join(" "),ie=(P,Z)=>{f("caret",P,Z);const ae=Z.loose?c[l.CARETLOOSE]:c[l.CARET],X=Z.includePrerelease?"-0":"";return P.replace(ae,(ne,F,x,Y,B)=>{f("caret",P,ne,F,x,Y,B);let j;return w(F)?j="":w(x)?j=`>=${F}.0.0${X} <${+F+1}.0.0-0`:w(Y)?F==="0"?j=`>=${F}.${x}.0${X} <${F}.${+x+1}.0-0`:j=`>=${F}.${x}.0${X} <${+F+1}.0.0-0`:B?(f("replaceCaret pr",B),F==="0"?x==="0"?j=`>=${F}.${x}.${Y}-${B} <${F}.${x}.${+Y+1}-0`:j=`>=${F}.${x}.${Y}-${B} <${F}.${+x+1}.0-0`:j=`>=${F}.${x}.${Y}-${B} <${+F+1}.0.0-0`):(f("no pr"),F==="0"?x==="0"?j=`>=${F}.${x}.${Y}${X} <${F}.${x}.${+Y+1}-0`:j=`>=${F}.${x}.${Y}${X} <${F}.${+x+1}.0-0`:j=`>=${F}.${x}.${Y} <${+F+1}.0.0-0`),f("caret return",j),j})},he=(P,Z)=>(f("replaceXRanges",P,Z),P.split(/\s+/).map(ae=>le(ae,Z)).join(" ")),le=(P,Z)=>{P=P.trim();const ae=Z.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return P.replace(ae,(X,ne,F,x,Y,B)=>{f("xRange",P,X,ne,F,x,Y,B);const j=w(F),$=j||w(x),U=$||w(Y),G=U;return ne==="="&&G&&(ne=""),B=Z.includePrerelease?"-0":"",j?ne===">"||ne==="<"?X="<0.0.0-0":X="*":ne&&G?($&&(x=0),Y=0,ne===">"?(ne=">=",$?(F=+F+1,x=0,Y=0):(x=+x+1,Y=0)):ne==="<="&&(ne="<",$?F=+F+1:x=+x+1),ne==="<"&&(B="-0"),X=`${ne+F}.${x}.${Y}${B}`):$?X=`>=${F}.0.0${B} <${+F+1}.0.0-0`:U&&(X=`>=${F}.${x}.0${B} <${F}.${+x+1}.0-0`),f("xRange return",X),X})},Ee=(P,Z)=>(f("replaceStars",P,Z),P.trim().replace(c[l.STAR],"")),ve=(P,Z)=>(f("replaceGTE0",P,Z),P.trim().replace(c[Z.includePrerelease?l.GTE0PRE:l.GTE0],"")),m=P=>(Z,ae,X,ne,F,x,Y,B,j,$,U,G)=>(w(X)?ae="":w(ne)?ae=`>=${X}.0.0${P?"-0":""}`:w(F)?ae=`>=${X}.${ne}.0${P?"-0":""}`:x?ae=`>=${ae}`:ae=`>=${ae}${P?"-0":""}`,w(j)?B="":w($)?B=`<${+j+1}.0.0-0`:w(U)?B=`<${j}.${+$+1}.0-0`:G?B=`<=${j}.${$}.${U}-${G}`:P?B=`<${j}.${$}.${+U+1}-0`:B=`<=${B}`,`${ae} ${B}`.trim()),O=(P,Z,ae)=>{for(let X=0;X<P.length;X++)if(!P[X].test(Z))return!1;if(Z.prerelease.length&&!ae.includePrerelease){for(let X=0;X<P.length;X++)if(f(P[X].semver),P[X].semver!==s.ANY&&P[X].semver.prerelease.length>0){const ne=P[X].semver;if(ne.major===Z.major&&ne.minor===Z.minor&&ne.patch===Z.patch)return!0}return!1}return!0};return Kl}var Jl,R_;function Qf(){if(R_)return Jl;R_=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(h,_){if(_=r(_),h instanceof t){if(h.loose===!!_.loose)return h;h=h.value}h=h.trim().split(/\s+/).join(" "),f("comparator",h,_),this.options=_,this.loose=!!_.loose,this.parse(h),this.semver===e?this.value="":this.value=this.operator+this.semver.version,f("comp",this)}parse(h){const _=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],b=h.match(_);if(!b)throw new TypeError(`Invalid comparator: ${h}`);this.operator=b[1]!==void 0?b[1]:"",this.operator==="="&&(this.operator=""),b[2]?this.semver=new d(b[2],this.options.loose):this.semver=e}toString(){return this.value}test(h){if(f("Comparator.test",h,this.options.loose),this.semver===e||h===e)return!0;if(typeof h=="string")try{h=new d(h,this.options)}catch{return!1}return s(h,this.operator,this.semver,this.options)}intersects(h,_){if(!(h instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(h.value,_).test(this.value):h.operator===""?h.value===""?!0:new c(this.value,_).test(h.semver):(_=r(_),_.includePrerelease&&(this.value==="<0.0.0-0"||h.value==="<0.0.0-0")||!_.includePrerelease&&(this.value.startsWith("<0.0.0")||h.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&h.operator.startsWith(">")||this.operator.startsWith("<")&&h.operator.startsWith("<")||this.semver.version===h.semver.version&&this.operator.includes("=")&&h.operator.includes("=")||s(this.semver,"<",h.semver,_)&&this.operator.startsWith(">")&&h.operator.startsWith("<")||s(this.semver,">",h.semver,_)&&this.operator.startsWith("<")&&h.operator.startsWith(">")))}}Jl=t;const r=Fh,{safeRe:i,t:a}=Wa,s=Nv,f=Xf,d=Or,c=gn();return Jl}const f$=gn(),u$=(e,t,r)=>{try{t=new f$(t,r)}catch{return!1}return t.test(e)};var eu=u$;const c$=gn(),l$=(e,t)=>new c$(e,t).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));var d$=l$;const h$=Or,p$=gn(),g$=(e,t,r)=>{let i=null,a=null,s=null;try{s=new p$(t,r)}catch{return null}return e.forEach(f=>{s.test(f)&&(!i||a.compare(f)===-1)&&(i=f,a=new h$(i,r))}),i};var y$=g$;const _$=Or,b$=gn(),m$=(e,t,r)=>{let i=null,a=null,s=null;try{s=new b$(t,r)}catch{return null}return e.forEach(f=>{s.test(f)&&(!i||a.compare(f)===1)&&(i=f,a=new _$(i,r))}),i};var v$=m$;const Xl=Or,w$=gn(),I_=Yf,E$=(e,t)=>{e=new w$(e,t);let r=new Xl("0.0.0");if(e.test(r)||(r=new Xl("0.0.0-0"),e.test(r)))return r;r=null;for(let i=0;i<e.set.length;++i){const a=e.set[i];let s=null;a.forEach(f=>{const d=new Xl(f.semver.version);switch(f.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!s||I_(d,s))&&(s=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${f.operator}`)}}),s&&(!r||I_(r,s))&&(r=s)}return r&&e.test(r)?r:null};var S$=E$;const A$=gn(),R$=(e,t)=>{try{return new A$(e,t).range||"*"}catch{return null}};var I$=R$;const O$=Or,Bv=Qf(),{ANY:T$}=Bv,P$=gn(),C$=eu,O_=Yf,T_=kh,L$=qh,N$=Uh,B$=(e,t,r,i)=>{e=new O$(e,i),t=new P$(t,i);let a,s,f,d,c;switch(r){case">":a=O_,s=L$,f=T_,d=">",c=">=";break;case"<":a=T_,s=N$,f=O_,d="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(C$(e,t,i))return!1;for(let l=0;l<t.set.length;++l){const h=t.set[l];let _=null,b=null;if(h.forEach(y=>{y.semver===T$&&(y=new Bv(">=0.0.0")),_=_||y,b=b||y,a(y.semver,_.semver,i)?_=y:f(y.semver,b.semver,i)&&(b=y)}),_.operator===d||_.operator===c||(!b.operator||b.operator===d)&&s(e,b.semver))return!1;if(b.operator===c&&f(e,b.semver))return!1}return!0};var Hh=B$;const $$=Hh,x$=(e,t,r)=>$$(e,t,">",r);var D$=x$;const M$=Hh,F$=(e,t,r)=>M$(e,t,"<",r);var j$=F$;const P_=gn(),k$=(e,t,r)=>(e=new P_(e,r),t=new P_(t,r),e.intersects(t,r));var U$=k$;const q$=eu,H$=pn;var W$=(e,t,r)=>{const i=[];let a=null,s=null;const f=e.sort((h,_)=>H$(h,_,r));for(const h of f)q$(h,t,r)?(s=h,a||(a=h)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const d=[];for(const[h,_]of i)h===_?d.push(h):!_&&h===f[0]?d.push("*"):_?h===f[0]?d.push(`<=${_}`):d.push(`${h} - ${_}`):d.push(`>=${h}`);const c=d.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return c.length<l.length?c:t};const C_=gn(),Wh=Qf(),{ANY:Yl}=Wh,ga=eu,zh=pn,z$=(e,t,r={})=>{if(e===t)return!0;e=new C_(e,r),t=new C_(t,r);let i=!1;e:for(const a of e.set){for(const s of t.set){const f=V$(a,s,r);if(i=i||f!==null,f)continue e}if(i)return!1}return!0},G$=[new Wh(">=0.0.0-0")],L_=[new Wh(">=0.0.0")],V$=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Yl){if(t.length===1&&t[0].semver===Yl)return!0;r.includePrerelease?e=G$:e=L_}if(t.length===1&&t[0].semver===Yl){if(r.includePrerelease)return!0;t=L_}const i=new Set;let a,s;for(const y of e)y.operator===">"||y.operator===">="?a=N_(a,y,r):y.operator==="<"||y.operator==="<="?s=B_(s,y,r):i.add(y.semver);if(i.size>1)return null;let f;if(a&&s){if(f=zh(a.semver,s.semver,r),f>0)return null;if(f===0&&(a.operator!==">="||s.operator!=="<="))return null}for(const y of i){if(a&&!ga(y,String(a),r)||s&&!ga(y,String(s),r))return null;for(const T of t)if(!ga(y,String(T),r))return!1;return!0}let d,c,l,h,_=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,b=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1;_&&_.prerelease.length===1&&s.operator==="<"&&_.prerelease[0]===0&&(_=!1);for(const y of t){if(h=h||y.operator===">"||y.operator===">=",l=l||y.operator==="<"||y.operator==="<=",a){if(b&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===b.major&&y.semver.minor===b.minor&&y.semver.patch===b.patch&&(b=!1),y.operator===">"||y.operator===">="){if(d=N_(a,y,r),d===y&&d!==a)return!1}else if(a.operator===">="&&!ga(a.semver,String(y),r))return!1}if(s){if(_&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===_.major&&y.semver.minor===_.minor&&y.semver.patch===_.patch&&(_=!1),y.operator==="<"||y.operator==="<="){if(c=B_(s,y,r),c===y&&c!==s)return!1}else if(s.operator==="<="&&!ga(s.semver,String(y),r))return!1}if(!y.operator&&(s||a)&&f!==0)return!1}return!(a&&l&&!s&&f!==0||s&&h&&!a&&f!==0||b||_)},N_=(e,t,r)=>{if(!e)return t;const i=zh(e.semver,t.semver,r);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},B_=(e,t,r)=>{if(!e)return t;const i=zh(e.semver,t.semver,r);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var Z$=z$;const Ql=Wa,$_=Jf,K$=Or,x_=Pv,J$=Uo,X$=nB,Y$=aB,Q$=fB,e3=cB,t3=hB,r3=yB,n3=mB,i3=EB,o3=pn,a3=IB,s3=PB,f3=jh,u3=BB,c3=DB,l3=Yf,d3=kh,h3=Cv,p3=Lv,g3=Uh,y3=qh,_3=Nv,b3=o$,m3=Qf(),v3=gn(),w3=eu,E3=d$,S3=y$,A3=v$,R3=S$,I3=I$,O3=Hh,T3=D$,P3=j$,C3=U$,L3=W$,N3=Z$;var B3={parse:J$,valid:X$,clean:Y$,inc:Q$,diff:e3,major:t3,minor:r3,patch:n3,prerelease:i3,compare:o3,rcompare:a3,compareLoose:s3,compareBuild:f3,sort:u3,rsort:c3,gt:l3,lt:d3,eq:h3,neq:p3,gte:g3,lte:y3,cmp:_3,coerce:b3,Comparator:m3,Range:v3,satisfies:w3,toComparators:E3,maxSatisfying:S3,minSatisfying:A3,minVersion:R3,validRange:I3,outside:O3,gtr:T3,ltr:P3,intersects:C3,simplifyRange:L3,subset:N3,SemVer:K$,re:Ql.re,src:Ql.src,tokens:Ql.t,SEMVER_SPEC_VERSION:$_.SEMVER_SPEC_VERSION,RELEASE_TYPES:$_.RELEASE_TYPES,compareIdentifiers:x_.compareIdentifiers,rcompareIdentifiers:x_.rcompareIdentifiers};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=B3,r=Qi,i=lr;e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",_=>(0,t.valid)(_)===null?`Expected SemVer version, got "${_}"`:!0),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",_=>(0,t.validRange)(_)===null?`Expected SemVer range, got "${_}"`:!0);function a(_){return(0,r.is)(_,e.VersionStruct)}e.isValidSemVerVersion=a;function s(_){return(0,r.is)(_,e.VersionRangeStruct)}e.isValidSemVerRange=s;function f(_){(0,i.assertStruct)(_,e.VersionStruct)}e.assertIsSemVerVersion=f;function d(_){(0,i.assertStruct)(_,e.VersionRangeStruct)}e.assertIsSemVerRange=d;function c(_,b){return(0,t.gt)(_,b)}e.gtVersion=c;function l(_,b){return(0,t.gtr)(_,b)}e.gtRange=l;function h(_,b){return(0,t.satisfies)(_,b,{includePrerelease:!0})}e.satisfiesVersionRange=h})(Iv);(function(e){var t=ee.commonjsGlobal&&ee.commonjsGlobal.__createBinding||(Object.create?function(i,a,s,f){f===void 0&&(f=s);var d=Object.getOwnPropertyDescriptor(a,s);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,f,d)}:function(i,a,s,f){f===void 0&&(f=s),i[f]=a[s]}),r=ee.commonjsGlobal&&ee.commonjsGlobal.__exportStar||function(i,a){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,i,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(lr,e),r(qa,e),r(At,e),r(Zf,e),r(In,e),r(Lo,e),r(mv,e),r(Ha,e),r(vv,e),r(wv,e),r(No,e),r(Ev,e),r(On,e),r(Sv,e),r(Av,e),r(Rv,e),r(Iv,e)})(Ph);var tu={},Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.errorValues=Ai.errorCodes=void 0;Ai.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Ai.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeCause=e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Ph,r=Ai,i=r.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",s={code:i,message:f(i)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function f(y,T=a){if(d(y)){const k=y.toString();if((0,t.hasProperty)(r.errorValues,k))return r.errorValues[k].message;if(h(y))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return T}e.getMessageFromCode=f;function d(y){return Number.isInteger(y)}e.isValidCode=d;function c(y,{fallbackError:T=s,shouldIncludeStack:k=!0}={}){if(!(0,t.isJsonRpcError)(T))throw new Error("Must provide fallback error with integer number code and string message.");const E=l(y,T);return k||delete E.stack,E}e.serializeError=c;function l(y,T){if(y&&typeof y=="object"&&"serialize"in y&&typeof y.serialize=="function")return y.serialize();if((0,t.isJsonRpcError)(y))return y;const k=_(y);return{...T,data:{cause:k}}}function h(y){return y>=-32099&&y<=-32e3}function _(y){return Array.isArray(y)?y.map(T=>(0,t.isValidJson)(T)?T:(0,t.isObject)(T)?b(T):null):(0,t.isObject)(y)?b(y):(0,t.isValidJson)(y)?y:null}e.serializeCause=_;function b(y){return Object.getOwnPropertyNames(y).reduce((T,k)=>{const E=y[k];return(0,t.isValidJson)(E)&&(T[k]=E),T},{})}})(tu);var $3=ee.commonjsGlobal&&ee.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.EthereumProviderError=Vi.JsonRpcError=void 0;const x3=Ph,D3=$3(uh),M3=tu;class $v extends Error{constructor(t,r,i){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a non-empty string.');super(r),this.code=t,i!==void 0&&(this.data=i)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data,(0,x3.isPlainObject)(this.data)&&(t.data.cause=(0,M3.serializeCause)(this.data.cause))),this.stack&&(t.stack=this.stack),t}toString(){return(0,D3.default)(this.serialize(),k3,2)}}Vi.JsonRpcError=$v;class F3 extends $v{constructor(t,r,i){if(!j3(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,i)}}Vi.EthereumProviderError=F3;function j3(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function k3(e,t){if(t!=="[Circular]")return t}var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.providerErrors=Bo.rpcErrors=void 0;const Gh=Vi,br=Ai,xv=tu;Bo.rpcErrors={parse:e=>Qr(br.errorCodes.rpc.parse,e),invalidRequest:e=>Qr(br.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Qr(br.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Qr(br.errorCodes.rpc.methodNotFound,e),internal:e=>Qr(br.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Qr(t,e)},invalidInput:e=>Qr(br.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Qr(br.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Qr(br.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Qr(br.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Qr(br.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Qr(br.errorCodes.rpc.limitExceeded,e)};Bo.providerErrors={userRejectedRequest:e=>ya(br.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ya(br.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ya(br.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ya(br.errorCodes.provider.disconnected,e),chainDisconnected:e=>ya(br.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Gh.EthereumProviderError(t,r,i)}};function Qr(e,t){const[r,i]=Dv(t);return new Gh.JsonRpcError(e,r??(0,xv.getMessageFromCode)(e),i)}function ya(e,t){const[r,i]=Dv(t);return new Gh.EthereumProviderError(e,r??(0,xv.getMessageFromCode)(e),i)}function Dv(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t??void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.errorCodes=e.providerErrors=e.rpcErrors=e.getMessageFromCode=e.serializeError=e.serializeCause=e.EthereumProviderError=e.JsonRpcError=void 0;var t=Vi;Object.defineProperty(e,"JsonRpcError",{enumerable:!0,get:function(){return t.JsonRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});var r=tu;Object.defineProperty(e,"serializeCause",{enumerable:!0,get:function(){return r.serializeCause}}),Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});var i=Bo;Object.defineProperty(e,"rpcErrors",{enumerable:!0,get:function(){return i.rpcErrors}}),Object.defineProperty(e,"providerErrors",{enumerable:!0,get:function(){return i.providerErrors}});var a=Ai;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(bL);var Vh={exports:{}},U3=Mv;function Mv(e,t){if(e&&t)return Mv(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){r[i]=e[i]}),r;function r(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];var s=e.apply(this,i),f=i[i.length-1];return typeof s=="function"&&s!==f&&Object.keys(f).forEach(function(d){s[d]=f[d]}),s}}var Fv=U3;Vh.exports=Fv(yf);Vh.exports.strict=Fv(jv);yf.proto=yf(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yf(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return jv(this)},configurable:!0})});function yf(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function jv(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}var Zh=Vh.exports;const q3=ee.getDefaultExportFromCjs(Zh);var H3=Zh,W3=function(){},z3=function(e){return e.setHeader&&typeof e.abort=="function"},G3=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},kv=function(e,t,r){if(typeof t=="function")return kv(e,null,t);t||(t={}),r=H3(r||W3);var i=e._writableState,a=e._readableState,s=t.readable||t.readable!==!1&&e.readable,f=t.writable||t.writable!==!1&&e.writable,d=!1,c=function(){e.writable||l()},l=function(){f=!1,s||r.call(e)},h=function(){s=!1,f||r.call(e)},_=function(E){r.call(e,E?new Error("exited with error code: "+E):null)},b=function(E){r.call(e,E)},y=function(){ee.dist.process.nextTick(T)},T=function(){if(!d){if(s&&!(a&&a.ended&&!a.destroyed))return r.call(e,new Error("premature close"));if(f&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"))}},k=function(){e.req.on("finish",l)};return z3(e)?(e.on("complete",l),e.on("abort",y),e.req?k():e.on("request",k)):f&&!i&&(e.on("end",c),e.on("close",c)),G3(e)&&e.on("exit",_),e.on("end",h),e.on("finish",l),t.error!==!1&&e.on("error",b),e.on("close",y),function(){d=!0,e.removeListener("complete",l),e.removeListener("abort",y),e.removeListener("request",k),e.req&&e.req.removeListener("finish",l),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("exit",_),e.removeListener("end",h),e.removeListener("error",b),e.removeListener("close",y)}},Uv=kv;const D_=ee.getDefaultExportFromCjs(Uv);var V3=Zh,Z3=Uv,_f;try{_f=ee.require$$0}catch{}var Ca=function(){},K3=/^v?\.0/.test(ee.dist.process.version),ru=function(e){return typeof e=="function"},J3=function(e){return!K3||!_f?!1:(e instanceof(_f.ReadStream||Ca)||e instanceof(_f.WriteStream||Ca))&&ru(e.close)},X3=function(e){return e.setHeader&&ru(e.abort)},Y3=function(e,t,r,i){i=V3(i);var a=!1;e.on("close",function(){a=!0}),Z3(e,{readable:t,writable:r},function(f){if(f)return i(f);a=!0,i()});var s=!1;return function(f){if(!a&&!s){if(s=!0,J3(e))return e.close(Ca);if(X3(e))return e.abort();if(ru(e.destroy))return e.destroy();i(f||new Error("stream was destroyed"))}}},M_=function(e){e()},Q3=function(e,t){return e.pipe(t)},ex=function(){var e=Array.prototype.slice.call(arguments),t=ru(e[e.length-1]||Ca)&&e.pop()||Ca;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,i=e.map(function(a,s){var f=s<e.length-1,d=s>0;return Y3(a,f,d,function(c){r||(r=c),c&&i.forEach(M_),!f&&(i.forEach(M_),t(r))})});return e.reduce(Q3)},tx=ex;const F_=ee.getDefaultExportFromCjs(tx);var rx={},nu={},iu={},qv={},$o={},wi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.output=Qt.exists=Qt.hash=Qt.bytes=Qt.bool=Qt.number=Qt.isBytes=void 0;function Rf(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}Qt.number=Rf;function Hv(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}Qt.bool=Hv;function Wv(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}Qt.isBytes=Wv;function Kh(e,...t){if(!Wv(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}Qt.bytes=Kh;function zv(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Rf(e.outputLen),Rf(e.blockLen)}Qt.hash=zv;function Gv(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Qt.exists=Gv;function Vv(e,t){Kh(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Qt.output=Vv;const nx={number:Rf,bool:Hv,bytes:Kh,hash:zv,exists:Gv,output:Vv};Qt.default=nx;var ei={},ou={};Object.defineProperty(ou,"__esModule",{value:!0});ou.crypto=void 0;ou.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.byteSwap32=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=e.isBytes=void 0;const t=ou,r=Qt;function i(m){return m instanceof Uint8Array||m!=null&&typeof m=="object"&&m.constructor.name==="Uint8Array"}e.isBytes=i;const a=m=>new Uint8Array(m.buffer,m.byteOffset,m.byteLength);e.u8=a;const s=m=>new Uint32Array(m.buffer,m.byteOffset,Math.floor(m.byteLength/4));e.u32=s;const f=m=>new DataView(m.buffer,m.byteOffset,m.byteLength);e.createView=f;const d=(m,O)=>m<<32-O|m>>>O;e.rotr=d;const c=(m,O)=>m<<O|m>>>32-O>>>0;e.rotl=c,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const l=m=>m<<24&4278190080|m<<8&16711680|m>>>8&65280|m>>>24&255;e.byteSwap=l,e.byteSwapIfBE=e.isLE?m=>m:m=>(0,e.byteSwap)(m);function h(m){for(let O=0;O<m.length;O++)m[O]=(0,e.byteSwap)(m[O])}e.byteSwap32=h;const _=Array.from({length:256},(m,O)=>O.toString(16).padStart(2,"0"));function b(m){(0,r.bytes)(m);let O="";for(let P=0;P<m.length;P++)O+=_[m[P]];return O}e.bytesToHex=b;const y={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function T(m){if(m>=y._0&&m<=y._9)return m-y._0;if(m>=y._A&&m<=y._F)return m-(y._A-10);if(m>=y._a&&m<=y._f)return m-(y._a-10)}function k(m){if(typeof m!="string")throw new Error("hex string expected, got "+typeof m);const O=m.length,P=O/2;if(O%2)throw new Error("padded hex string expected, got unpadded hex of length "+O);const Z=new Uint8Array(P);for(let ae=0,X=0;ae<P;ae++,X+=2){const ne=T(m.charCodeAt(X)),F=T(m.charCodeAt(X+1));if(ne===void 0||F===void 0){const x=m[X]+m[X+1];throw new Error('hex string expected, got non-hex character "'+x+'" at index '+X)}Z[ae]=ne*16+F}return Z}e.hexToBytes=k;const E=async()=>{};e.nextTick=E;async function I(m,O,P){let Z=Date.now();for(let ae=0;ae<m;ae++){P(ae);const X=Date.now()-Z;X>=0&&X<O||(await(0,e.nextTick)(),Z+=X)}}e.asyncLoop=I;function v(m){if(typeof m!="string")throw new Error(`utf8ToBytes expected string, got ${typeof m}`);return new Uint8Array(new TextEncoder().encode(m))}e.utf8ToBytes=v;function w(m){return typeof m=="string"&&(m=v(m)),(0,r.bytes)(m),m}e.toBytes=w;function S(...m){let O=0;for(let Z=0;Z<m.length;Z++){const ae=m[Z];(0,r.bytes)(ae),O+=ae.length}const P=new Uint8Array(O);for(let Z=0,ae=0;Z<m.length;Z++){const X=m[Z];P.set(X,ae),ae+=X.length}return P}e.concatBytes=S;class H{clone(){return this._cloneInto()}}e.Hash=H;const Q={}.toString;function ie(m,O){if(O!==void 0&&Q.call(O)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(m,O)}e.checkOpts=ie;function he(m){const O=Z=>m().update(w(Z)).digest(),P=m();return O.outputLen=P.outputLen,O.blockLen=P.blockLen,O.create=()=>m(),O}e.wrapConstructor=he;function le(m){const O=(Z,ae)=>m(ae).update(w(Z)).digest(),P=m({});return O.outputLen=P.outputLen,O.blockLen=P.blockLen,O.create=Z=>m(Z),O}e.wrapConstructorWithOpts=le;function Ee(m){const O=(Z,ae)=>m(ae).update(w(Z)).digest(),P=m({});return O.outputLen=P.outputLen,O.blockLen=P.blockLen,O.create=Z=>m(Z),O}e.wrapXOFConstructorWithOpts=Ee;function ve(m=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(m));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=ve})(ei);Object.defineProperty(wi,"__esModule",{value:!0});wi.HashMD=wi.Maj=wi.Chi=void 0;const ed=Qt,_a=ei;function ix(e,t,r,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,i);const a=BigInt(32),s=BigInt(4294967295),f=Number(r>>a&s),d=Number(r&s),c=i?4:0,l=i?0:4;e.setUint32(t+c,f,i),e.setUint32(t+l,d,i)}const ox=(e,t,r)=>e&t^~e&r;wi.Chi=ox;const ax=(e,t,r)=>e&t^e&r^t&r;wi.Maj=ax;class sx extends _a.Hash{constructor(t,r,i,a){super(),this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,_a.createView)(this.buffer)}update(t){(0,ed.exists)(this);const{view:r,buffer:i,blockLen:a}=this;t=(0,_a.toBytes)(t);const s=t.length;for(let f=0;f<s;){const d=Math.min(a-this.pos,s-f);if(d===a){const c=(0,_a.createView)(t);for(;a<=s-f;f+=a)this.process(c,f);continue}i.set(t.subarray(f,f+d),this.pos),this.pos+=d,f+=d,this.pos===a&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,ed.exists)(this),(0,ed.output)(t,this),this.finished=!0;const{buffer:r,view:i,blockLen:a,isLE:s}=this;let{pos:f}=this;r[f++]=128,this.buffer.subarray(f).fill(0),this.padOffset>a-f&&(this.process(i,0),f=0);for(let _=f;_<a;_++)r[_]=0;ix(i,a-8,BigInt(this.length*8),s),this.process(i,0);const d=(0,_a.createView)(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,h=this.get();if(l>h.length)throw new Error("_sha2: outputLen bigger than state");for(let _=0;_<l;_++)d.setUint32(4*_,h[_],s)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const i=t.slice(0,r);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:i,length:a,finished:s,destroyed:f,pos:d}=this;return t.length=a,t.pos=d,t.finished=s,t.destroyed=f,a%r&&t.buffer.set(i),t}}wi.HashMD=sx;Object.defineProperty($o,"__esModule",{value:!0});$o.sha224=$o.sha256=void 0;const td=wi,tn=ei,fx=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),yi=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_i=new Uint32Array(64);class Zv extends td.HashMD{constructor(){super(64,32,8,!1),this.A=yi[0]|0,this.B=yi[1]|0,this.C=yi[2]|0,this.D=yi[3]|0,this.E=yi[4]|0,this.F=yi[5]|0,this.G=yi[6]|0,this.H=yi[7]|0}get(){const{A:t,B:r,C:i,D:a,E:s,F:f,G:d,H:c}=this;return[t,r,i,a,s,f,d,c]}set(t,r,i,a,s,f,d,c){this.A=t|0,this.B=r|0,this.C=i|0,this.D=a|0,this.E=s|0,this.F=f|0,this.G=d|0,this.H=c|0}process(t,r){for(let _=0;_<16;_++,r+=4)_i[_]=t.getUint32(r,!1);for(let _=16;_<64;_++){const b=_i[_-15],y=_i[_-2],T=(0,tn.rotr)(b,7)^(0,tn.rotr)(b,18)^b>>>3,k=(0,tn.rotr)(y,17)^(0,tn.rotr)(y,19)^y>>>10;_i[_]=k+_i[_-7]+T+_i[_-16]|0}let{A:i,B:a,C:s,D:f,E:d,F:c,G:l,H:h}=this;for(let _=0;_<64;_++){const b=(0,tn.rotr)(d,6)^(0,tn.rotr)(d,11)^(0,tn.rotr)(d,25),y=h+b+(0,td.Chi)(d,c,l)+fx[_]+_i[_]|0,k=((0,tn.rotr)(i,2)^(0,tn.rotr)(i,13)^(0,tn.rotr)(i,22))+(0,td.Maj)(i,a,s)|0;h=l,l=c,c=d,d=f+y|0,f=s,s=a,a=i,i=y+k|0}i=i+this.A|0,a=a+this.B|0,s=s+this.C|0,f=f+this.D|0,d=d+this.E|0,c=c+this.F|0,l=l+this.G|0,h=h+this.H|0,this.set(i,a,s,f,d,c,l,h)}roundClean(){_i.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class ux extends Zv{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}$o.sha256=(0,tn.wrapConstructor)(()=>new Zv);$o.sha224=(0,tn.wrapConstructor)(()=>new ux);var au={},Kv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=Qt,r=ei;class i extends r.Hash{constructor(f,d){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(f);const c=(0,r.toBytes)(d);if(this.iHash=f.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const l=this.blockLen,h=new Uint8Array(l);h.set(c.length>l?f.create().update(c).digest():c);for(let _=0;_<h.length;_++)h[_]^=54;this.iHash.update(h),this.oHash=f.create();for(let _=0;_<h.length;_++)h[_]^=106;this.oHash.update(h),h.fill(0)}update(f){return(0,t.exists)(this),this.iHash.update(f),this}digestInto(f){(0,t.exists)(this),(0,t.bytes)(f,this.outputLen),this.finished=!0,this.iHash.digestInto(f),this.oHash.update(f),this.oHash.digestInto(f),this.destroy()}digest(){const f=new Uint8Array(this.oHash.outputLen);return this.digestInto(f),f}_cloneInto(f){f||(f=Object.create(Object.getPrototypeOf(this),{}));const{oHash:d,iHash:c,finished:l,destroyed:h,blockLen:_,outputLen:b}=this;return f=f,f.finished=l,f.destroyed=h,f.blockLen=_,f.outputLen=b,f.oHash=d._cloneInto(f.oHash),f.iHash=c._cloneInto(f.iHash),f}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=i;const a=(s,f,d)=>new i(s,f).update(d).digest();e.hmac=a,e.hmac.create=(s,f)=>new i(s,f)})(Kv);var Jh={},su={},Ut={},Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.bitMask=void 0;Lt.isBytes=uu;Lt.abytes=cu;Lt.bytesToHex=Xh;Lt.numberToHexUnpadded=Xv;Lt.hexToNumber=Yh;Lt.hexToBytes=lu;Lt.bytesToNumberBE=dx;Lt.bytesToNumberLE=hx;Lt.numberToBytesBE=Yv;Lt.numberToBytesLE=px;Lt.numberToVarBytesBE=gx;Lt.ensureBytes=yx;Lt.concatBytes=Qv;Lt.equalBytes=_x;Lt.utf8ToBytes=bx;Lt.bitLen=mx;Lt.bitGet=vx;Lt.bitSet=wx;Lt.createHmacDrbg=Sx;Lt.validateObject=Rx;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Jv=BigInt(0),fu=BigInt(1),cx=BigInt(2);function uu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function cu(e){if(!uu(e))throw new Error("Uint8Array expected")}const lx=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Xh(e){cu(e);let t="";for(let r=0;r<e.length;r++)t+=lx[e[r]];return t}function Xv(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function Yh(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}const Zn={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function j_(e){if(e>=Zn._0&&e<=Zn._9)return e-Zn._0;if(e>=Zn._A&&e<=Zn._F)return e-(Zn._A-10);if(e>=Zn._a&&e<=Zn._f)return e-(Zn._a-10)}function lu(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const i=new Uint8Array(r);for(let a=0,s=0;a<r;a++,s+=2){const f=j_(e.charCodeAt(s)),d=j_(e.charCodeAt(s+1));if(f===void 0||d===void 0){const c=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+s)}i[a]=f*16+d}return i}function dx(e){return Yh(Xh(e))}function hx(e){return cu(e),Yh(Xh(Uint8Array.from(e).reverse()))}function Yv(e,t){return lu(e.toString(16).padStart(t*2,"0"))}function px(e,t){return Yv(e,t).reverse()}function gx(e){return lu(Xv(e))}function yx(e,t,r){let i;if(typeof t=="string")try{i=lu(t)}catch(s){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${s}`)}else if(uu(t))i=Uint8Array.from(t);else throw new Error(`${e} must be hex string or Uint8Array`);const a=i.length;if(typeof r=="number"&&a!==r)throw new Error(`${e} expected ${r} bytes, got ${a}`);return i}function Qv(...e){let t=0;for(let i=0;i<e.length;i++){const a=e[i];cu(a),t+=a.length}const r=new Uint8Array(t);for(let i=0,a=0;i<e.length;i++){const s=e[i];r.set(s,a),a+=s.length}return r}function _x(e,t){if(e.length!==t.length)return!1;let r=0;for(let i=0;i<e.length;i++)r|=e[i]^t[i];return r===0}function bx(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function mx(e){let t;for(t=0;e>Jv;e>>=fu,t+=1);return t}function vx(e,t){return e>>BigInt(t)&fu}function wx(e,t,r){return e|(r?fu:Jv)<<BigInt(t)}const Ex=e=>(cx<<BigInt(e-1))-fu;Lt.bitMask=Ex;const rd=e=>new Uint8Array(e),k_=e=>Uint8Array.from(e);function Sx(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let i=rd(e),a=rd(e),s=0;const f=()=>{i.fill(1),a.fill(0),s=0},d=(..._)=>r(a,i,..._),c=(_=rd())=>{a=d(k_([0]),_),i=d(),_.length!==0&&(a=d(k_([1]),_),i=d())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let _=0;const b=[];for(;_<t;){i=d();const y=i.slice();b.push(y),_+=i.length}return Qv(...b)};return(_,b)=>{f(),c(_);let y;for(;!(y=b(l()));)c();return f(),y}}const Ax={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||uu(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Rx(e,t,r={}){const i=(a,s,f)=>{const d=Ax[s];if(typeof d!="function")throw new Error(`Invalid validator "${s}", expected function`);const c=e[a];if(!(f&&c===void 0)&&!d(c,e))throw new Error(`Invalid param ${String(a)}=${c} (${typeof c}), expected ${s}`)};for(const[a,s]of Object.entries(t))i(a,s,!1);for(const[a,s]of Object.entries(r))i(a,s,!0);return e}Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isNegativeLE=void 0;Ut.mod=Ur;Ut.pow=ew;Ut.pow2=Ox;Ut.invert=If;Ut.tonelliShanks=tw;Ut.FpSqrt=rw;Ut.validateField=Cx;Ut.FpPow=nw;Ut.FpInvertBatch=iw;Ut.FpDiv=Lx;Ut.FpIsSquare=Nx;Ut.nLength=Qh;Ut.Field=Bx;Ut.FpSqrtOdd=$x;Ut.FpSqrtEven=xx;Ut.hashToPrivateScalar=Dx;Ut.getFieldBytesLength=ep;Ut.getMinHashLength=ow;Ut.mapHashToField=Mx;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qr=Lt,fr=BigInt(0),kt=BigInt(1),vi=BigInt(2),Ix=BigInt(3),Qd=BigInt(4),U_=BigInt(5),q_=BigInt(8);BigInt(9);BigInt(16);function Ur(e,t){const r=e%t;return r>=fr?r:t+r}function ew(e,t,r){if(r<=fr||t<fr)throw new Error("Expected power/modulo > 0");if(r===kt)return fr;let i=kt;for(;t>fr;)t&kt&&(i=i*e%r),e=e*e%r,t>>=kt;return i}function Ox(e,t,r){let i=e;for(;t-- >fr;)i*=i,i%=r;return i}function If(e,t){if(e===fr||t<=fr)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Ur(e,t),i=t,a=fr,s=kt;for(;r!==fr;){const d=i/r,c=i%r,l=a-s*d;i=r,r=c,a=s,s=l}if(i!==kt)throw new Error("invert: does not exist");return Ur(a,t)}function tw(e){const t=(e-kt)/vi;let r,i,a;for(r=e-kt,i=0;r%vi===fr;r/=vi,i++);for(a=vi;a<e&&ew(a,t,e)!==e-kt;a++);if(i===1){const f=(e+kt)/Qd;return function(c,l){const h=c.pow(l,f);if(!c.eql(c.sqr(h),l))throw new Error("Cannot find square root");return h}}const s=(r+kt)/vi;return function(d,c){if(d.pow(c,t)===d.neg(d.ONE))throw new Error("Cannot find square root");let l=i,h=d.pow(d.mul(d.ONE,a),r),_=d.pow(c,s),b=d.pow(c,r);for(;!d.eql(b,d.ONE);){if(d.eql(b,d.ZERO))return d.ZERO;let y=1;for(let k=d.sqr(b);y<l&&!d.eql(k,d.ONE);y++)k=d.sqr(k);const T=d.pow(h,kt<<BigInt(l-y-1));h=d.sqr(T),_=d.mul(_,T),b=d.mul(b,h),l=y}return _}}function rw(e){if(e%Qd===Ix){const t=(e+kt)/Qd;return function(i,a){const s=i.pow(a,t);if(!i.eql(i.sqr(s),a))throw new Error("Cannot find square root");return s}}if(e%q_===U_){const t=(e-U_)/q_;return function(i,a){const s=i.mul(a,vi),f=i.pow(s,t),d=i.mul(a,f),c=i.mul(i.mul(d,vi),f),l=i.mul(d,i.sub(c,i.ONE));if(!i.eql(i.sqr(l),a))throw new Error("Cannot find square root");return l}}return tw(e)}const Tx=(e,t)=>(Ur(e,t)&kt)===kt;Ut.isNegativeLE=Tx;const Px=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Cx(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Px.reduce((i,a)=>(i[a]="function",i),t);return(0,qr.validateObject)(e,r)}function nw(e,t,r){if(r<fr)throw new Error("Expected power > 0");if(r===fr)return e.ONE;if(r===kt)return t;let i=e.ONE,a=t;for(;r>fr;)r&kt&&(i=e.mul(i,a)),a=e.sqr(a),r>>=kt;return i}function iw(e,t){const r=new Array(t.length),i=t.reduce((s,f,d)=>e.is0(f)?s:(r[d]=s,e.mul(s,f)),e.ONE),a=e.inv(i);return t.reduceRight((s,f,d)=>e.is0(f)?s:(r[d]=e.mul(s,r[d]),e.mul(s,f)),a),r}function Lx(e,t,r){return e.mul(t,typeof r=="bigint"?If(r,e.ORDER):e.inv(r))}function Nx(e){const t=(e.ORDER-kt)/vi;return r=>{const i=e.pow(r,t);return e.eql(i,e.ZERO)||e.eql(i,e.ONE)}}function Qh(e,t){const r=t!==void 0?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function Bx(e,t,r=!1,i={}){if(e<=fr)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:a,nByteLength:s}=Qh(e,t);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");const f=rw(e),d=Object.freeze({ORDER:e,BITS:a,BYTES:s,MASK:(0,qr.bitMask)(a),ZERO:fr,ONE:kt,create:c=>Ur(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return fr<=c&&c<e},is0:c=>c===fr,isOdd:c=>(c&kt)===kt,neg:c=>Ur(-c,e),eql:(c,l)=>c===l,sqr:c=>Ur(c*c,e),add:(c,l)=>Ur(c+l,e),sub:(c,l)=>Ur(c-l,e),mul:(c,l)=>Ur(c*l,e),pow:(c,l)=>nw(d,c,l),div:(c,l)=>Ur(c*If(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>If(c,e),sqrt:i.sqrt||(c=>f(d,c)),invertBatch:c=>iw(d,c),cmov:(c,l,h)=>h?l:c,toBytes:c=>r?(0,qr.numberToBytesLE)(c,s):(0,qr.numberToBytesBE)(c,s),fromBytes:c=>{if(c.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${c.length}`);return r?(0,qr.bytesToNumberLE)(c):(0,qr.bytesToNumberBE)(c)}});return Object.freeze(d)}function $x(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)}function xx(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r}function Dx(e,t,r=!1){e=(0,qr.ensureBytes)("privateHash",e);const i=e.length,a=Qh(t).nByteLength+8;if(a<24||i<a||i>1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);const s=r?(0,qr.bytesToNumberLE)(e):(0,qr.bytesToNumberBE)(e);return Ur(s,t-kt)+kt}function ep(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function ow(e){const t=ep(e);return t+Math.ceil(t/2)}function Mx(e,t,r=!1){const i=e.length,a=ep(t),s=ow(t);if(i<16||i<s||i>1024)throw new Error(`expected ${s}-1024 bytes of input, got ${i}`);const f=r?(0,qr.bytesToNumberBE)(e):(0,qr.bytesToNumberLE)(e),d=Ur(f,t-kt)+kt;return r?(0,qr.numberToBytesLE)(d,a):(0,qr.numberToBytesBE)(d,a)}Object.defineProperty(su,"__esModule",{value:!0});su.wNAF=kx;su.validateBasic=Ux;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const H_=Ut,Fx=Lt,jx=BigInt(0),nd=BigInt(1);function kx(e,t){const r=(a,s)=>{const f=s.negate();return a?f:s},i=a=>{const s=Math.ceil(t/a)+1,f=2**(a-1);return{windows:s,windowSize:f}};return{constTimeNegate:r,unsafeLadder(a,s){let f=e.ZERO,d=a;for(;s>jx;)s&nd&&(f=f.add(d)),d=d.double(),s>>=nd;return f},precomputeWindow(a,s){const{windows:f,windowSize:d}=i(s),c=[];let l=a,h=l;for(let _=0;_<f;_++){h=l,c.push(h);for(let b=1;b<d;b++)h=h.add(l),c.push(h);l=h.double()}return c},wNAF(a,s,f){const{windows:d,windowSize:c}=i(a);let l=e.ZERO,h=e.BASE;const _=BigInt(2**a-1),b=2**a,y=BigInt(a);for(let T=0;T<d;T++){const k=T*c;let E=Number(f&_);f>>=y,E>c&&(E-=b,f+=nd);const I=k,v=k+Math.abs(E)-1,w=T%2!==0,S=E<0;E===0?h=h.add(r(w,s[I])):l=l.add(r(S,s[v]))}return{p:l,f:h}},wNAFCached(a,s,f,d){const c=a._WINDOW_SIZE||1;let l=s.get(a);return l||(l=this.precomputeWindow(a,c),c!==1&&s.set(a,d(l))),this.wNAF(c,l,f)}}}function Ux(e){return(0,H_.validateField)(e.Fp),(0,Fx.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,H_.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=y,e.weierstrass=k,e.SWUFpSqrtRatio=E,e.mapToCurveSimpleSWU=I;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=su,r=Ut,i=Lt,a=Lt;function s(v){const w=(0,t.validateBasic)(v);i.validateObject(w,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:S,Fp:H,a:Q}=w;if(S){if(!H.eql(Q,H.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof S!="object"||typeof S.beta!="bigint"||typeof S.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...w})}const{bytesToNumberBE:f,hexToBytes:d}=i;e.DER={Err:class extends Error{constructor(w=""){super(w)}},_parseInt(v){const{Err:w}=e.DER;if(v.length<2||v[0]!==2)throw new w("Invalid signature integer tag");const S=v[1],H=v.subarray(2,S+2);if(!S||H.length!==S)throw new w("Invalid signature integer: wrong length");if(H[0]&128)throw new w("Invalid signature integer: negative");if(H[0]===0&&!(H[1]&128))throw new w("Invalid signature integer: unnecessary leading zero");return{d:f(H),l:v.subarray(S+2)}},toSig(v){const{Err:w}=e.DER,S=typeof v=="string"?d(v):v;i.abytes(S);let H=S.length;if(H<2||S[0]!=48)throw new w("Invalid signature tag");if(S[1]!==H-2)throw new w("Invalid signature: incorrect length");const{d:Q,l:ie}=e.DER._parseInt(S.subarray(2)),{d:he,l:le}=e.DER._parseInt(ie);if(le.length)throw new w("Invalid signature: left bytes after parsing");return{r:Q,s:he}},hexFromSig(v){const w=ve=>Number.parseInt(ve[0],16)&8?"00"+ve:ve,S=ve=>{const m=ve.toString(16);return m.length&1?`0${m}`:m},H=w(S(v.s)),Q=w(S(v.r)),ie=H.length/2,he=Q.length/2,le=S(ie),Ee=S(he);return`30${S(he+ie+4)}02${Ee}${Q}02${le}${H}`}};const c=BigInt(0),l=BigInt(1),h=BigInt(2),_=BigInt(3),b=BigInt(4);function y(v){const w=s(v),{Fp:S}=w,H=w.toBytes||((ae,X,ne)=>{const F=X.toAffine();return i.concatBytes(Uint8Array.from([4]),S.toBytes(F.x),S.toBytes(F.y))}),Q=w.fromBytes||(ae=>{const X=ae.subarray(1),ne=S.fromBytes(X.subarray(0,S.BYTES)),F=S.fromBytes(X.subarray(S.BYTES,2*S.BYTES));return{x:ne,y:F}});function ie(ae){const{a:X,b:ne}=w,F=S.sqr(ae),x=S.mul(F,ae);return S.add(S.add(x,S.mul(ae,X)),ne)}if(!S.eql(S.sqr(w.Gy),ie(w.Gx)))throw new Error("bad generator point: equation left != right");function he(ae){return typeof ae=="bigint"&&c<ae&&ae<w.n}function le(ae){if(!he(ae))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function Ee(ae){const{allowedPrivateKeyLengths:X,nByteLength:ne,wrapPrivateKey:F,n:x}=w;if(X&&typeof ae!="bigint"){if(i.isBytes(ae)&&(ae=i.bytesToHex(ae)),typeof ae!="string"||!X.includes(ae.length))throw new Error("Invalid key");ae=ae.padStart(ne*2,"0")}let Y;try{Y=typeof ae=="bigint"?ae:i.bytesToNumberBE((0,a.ensureBytes)("private key",ae,ne))}catch{throw new Error(`private key must be ${ne} bytes, hex or bigint, not ${typeof ae}`)}return F&&(Y=r.mod(Y,x)),le(Y),Y}const ve=new Map;function m(ae){if(!(ae instanceof O))throw new Error("ProjectivePoint expected")}class O{constructor(X,ne,F){if(this.px=X,this.py=ne,this.pz=F,X==null||!S.isValid(X))throw new Error("x required");if(ne==null||!S.isValid(ne))throw new Error("y required");if(F==null||!S.isValid(F))throw new Error("z required")}static fromAffine(X){const{x:ne,y:F}=X||{};if(!X||!S.isValid(ne)||!S.isValid(F))throw new Error("invalid affine point");if(X instanceof O)throw new Error("projective point not allowed");const x=Y=>S.eql(Y,S.ZERO);return x(ne)&&x(F)?O.ZERO:new O(ne,F,S.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(X){const ne=S.invertBatch(X.map(F=>F.pz));return X.map((F,x)=>F.toAffine(ne[x])).map(O.fromAffine)}static fromHex(X){const ne=O.fromAffine(Q((0,a.ensureBytes)("pointHex",X)));return ne.assertValidity(),ne}static fromPrivateKey(X){return O.BASE.multiply(Ee(X))}_setWindowSize(X){this._WINDOW_SIZE=X,ve.delete(this)}assertValidity(){if(this.is0()){if(w.allowInfinityPoint&&!S.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:X,y:ne}=this.toAffine();if(!S.isValid(X)||!S.isValid(ne))throw new Error("bad point: x or y not FE");const F=S.sqr(ne),x=ie(X);if(!S.eql(F,x))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:X}=this.toAffine();if(S.isOdd)return!S.isOdd(X);throw new Error("Field doesn't support isOdd")}equals(X){m(X);const{px:ne,py:F,pz:x}=this,{px:Y,py:B,pz:j}=X,$=S.eql(S.mul(ne,j),S.mul(Y,x)),U=S.eql(S.mul(F,j),S.mul(B,x));return $&&U}negate(){return new O(this.px,S.neg(this.py),this.pz)}double(){const{a:X,b:ne}=w,F=S.mul(ne,_),{px:x,py:Y,pz:B}=this;let j=S.ZERO,$=S.ZERO,U=S.ZERO,G=S.mul(x,x),de=S.mul(Y,Y),oe=S.mul(B,B),ue=S.mul(x,Y);return ue=S.add(ue,ue),U=S.mul(x,B),U=S.add(U,U),j=S.mul(X,U),$=S.mul(F,oe),$=S.add(j,$),j=S.sub(de,$),$=S.add(de,$),$=S.mul(j,$),j=S.mul(ue,j),U=S.mul(F,U),oe=S.mul(X,oe),ue=S.sub(G,oe),ue=S.mul(X,ue),ue=S.add(ue,U),U=S.add(G,G),G=S.add(U,G),G=S.add(G,oe),G=S.mul(G,ue),$=S.add($,G),oe=S.mul(Y,B),oe=S.add(oe,oe),G=S.mul(oe,ue),j=S.sub(j,G),U=S.mul(oe,de),U=S.add(U,U),U=S.add(U,U),new O(j,$,U)}add(X){m(X);const{px:ne,py:F,pz:x}=this,{px:Y,py:B,pz:j}=X;let $=S.ZERO,U=S.ZERO,G=S.ZERO;const de=w.a,oe=S.mul(w.b,_);let ue=S.mul(ne,Y),Se=S.mul(F,B),Be=S.mul(x,j),Me=S.add(ne,F),z=S.add(Y,B);Me=S.mul(Me,z),z=S.add(ue,Se),Me=S.sub(Me,z),z=S.add(ne,x);let J=S.add(Y,j);return z=S.mul(z,J),J=S.add(ue,Be),z=S.sub(z,J),J=S.add(F,x),$=S.add(B,j),J=S.mul(J,$),$=S.add(Se,Be),J=S.sub(J,$),G=S.mul(de,z),$=S.mul(oe,Be),G=S.add($,G),$=S.sub(Se,G),G=S.add(Se,G),U=S.mul($,G),Se=S.add(ue,ue),Se=S.add(Se,ue),Be=S.mul(de,Be),z=S.mul(oe,z),Se=S.add(Se,Be),Be=S.sub(ue,Be),Be=S.mul(de,Be),z=S.add(z,Be),ue=S.mul(Se,z),U=S.add(U,ue),ue=S.mul(J,z),$=S.mul(Me,$),$=S.sub($,ue),ue=S.mul(Me,Se),G=S.mul(J,G),G=S.add(G,ue),new O($,U,G)}subtract(X){return this.add(X.negate())}is0(){return this.equals(O.ZERO)}wNAF(X){return Z.wNAFCached(this,ve,X,ne=>{const F=S.invertBatch(ne.map(x=>x.pz));return ne.map((x,Y)=>x.toAffine(F[Y])).map(O.fromAffine)})}multiplyUnsafe(X){const ne=O.ZERO;if(X===c)return ne;if(le(X),X===l)return this;const{endo:F}=w;if(!F)return Z.unsafeLadder(this,X);let{k1neg:x,k1:Y,k2neg:B,k2:j}=F.splitScalar(X),$=ne,U=ne,G=this;for(;Y>c||j>c;)Y&l&&($=$.add(G)),j&l&&(U=U.add(G)),G=G.double(),Y>>=l,j>>=l;return x&&($=$.negate()),B&&(U=U.negate()),U=new O(S.mul(U.px,F.beta),U.py,U.pz),$.add(U)}multiply(X){le(X);let ne=X,F,x;const{endo:Y}=w;if(Y){const{k1neg:B,k1:j,k2neg:$,k2:U}=Y.splitScalar(ne);let{p:G,f:de}=this.wNAF(j),{p:oe,f:ue}=this.wNAF(U);G=Z.constTimeNegate(B,G),oe=Z.constTimeNegate($,oe),oe=new O(S.mul(oe.px,Y.beta),oe.py,oe.pz),F=G.add(oe),x=de.add(ue)}else{const{p:B,f:j}=this.wNAF(ne);F=B,x=j}return O.normalizeZ([F,x])[0]}multiplyAndAddUnsafe(X,ne,F){const x=O.BASE,Y=(j,$)=>$===c||$===l||!j.equals(x)?j.multiplyUnsafe($):j.multiply($),B=Y(this,ne).add(Y(X,F));return B.is0()?void 0:B}toAffine(X){const{px:ne,py:F,pz:x}=this,Y=this.is0();X==null&&(X=Y?S.ONE:S.inv(x));const B=S.mul(ne,X),j=S.mul(F,X),$=S.mul(x,X);if(Y)return{x:S.ZERO,y:S.ZERO};if(!S.eql($,S.ONE))throw new Error("invZ was invalid");return{x:B,y:j}}isTorsionFree(){const{h:X,isTorsionFree:ne}=w;if(X===l)return!0;if(ne)return ne(O,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:X,clearCofactor:ne}=w;return X===l?this:ne?ne(O,this):this.multiplyUnsafe(w.h)}toRawBytes(X=!0){return this.assertValidity(),H(O,this,X)}toHex(X=!0){return i.bytesToHex(this.toRawBytes(X))}}O.BASE=new O(w.Gx,w.Gy,S.ONE),O.ZERO=new O(S.ZERO,S.ONE,S.ZERO);const P=w.nBitLength,Z=(0,t.wNAF)(O,w.endo?Math.ceil(P/2):P);return{CURVE:w,ProjectivePoint:O,normPrivateKeyToScalar:Ee,weierstrassEquation:ie,isWithinCurveOrder:he}}function T(v){const w=(0,t.validateBasic)(v);return i.validateObject(w,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...w})}function k(v){const w=T(v),{Fp:S,n:H}=w,Q=S.BYTES+1,ie=2*S.BYTES+1;function he(z){return c<z&&z<S.ORDER}function le(z){return r.mod(z,H)}function Ee(z){return r.invert(z,H)}const{ProjectivePoint:ve,normPrivateKeyToScalar:m,weierstrassEquation:O,isWithinCurveOrder:P}=y({...w,toBytes(z,J,ge){const Ne=J.toAffine(),Te=S.toBytes(Ne.x),je=i.concatBytes;return ge?je(Uint8Array.from([J.hasEvenY()?2:3]),Te):je(Uint8Array.from([4]),Te,S.toBytes(Ne.y))},fromBytes(z){const J=z.length,ge=z[0],Ne=z.subarray(1);if(J===Q&&(ge===2||ge===3)){const Te=i.bytesToNumberBE(Ne);if(!he(Te))throw new Error("Point is not on curve");const je=O(Te);let me;try{me=S.sqrt(je)}catch(re){const xe=re instanceof Error?": "+re.message:"";throw new Error("Point is not on curve"+xe)}const Ye=(me&l)===l;return(ge&1)===1!==Ye&&(me=S.neg(me)),{x:Te,y:me}}else if(J===ie&&ge===4){const Te=S.fromBytes(Ne.subarray(0,S.BYTES)),je=S.fromBytes(Ne.subarray(S.BYTES,2*S.BYTES));return{x:Te,y:je}}else throw new Error(`Point of length ${J} was invalid. Expected ${Q} compressed bytes or ${ie} uncompressed bytes`)}}),Z=z=>i.bytesToHex(i.numberToBytesBE(z,w.nByteLength));function ae(z){const J=H>>l;return z>J}function X(z){return ae(z)?le(-z):z}const ne=(z,J,ge)=>i.bytesToNumberBE(z.slice(J,ge));class F{constructor(J,ge,Ne){this.r=J,this.s=ge,this.recovery=Ne,this.assertValidity()}static fromCompact(J){const ge=w.nByteLength;return J=(0,a.ensureBytes)("compactSignature",J,ge*2),new F(ne(J,0,ge),ne(J,ge,2*ge))}static fromDER(J){const{r:ge,s:Ne}=e.DER.toSig((0,a.ensureBytes)("DER",J));return new F(ge,Ne)}assertValidity(){if(!P(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!P(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(J){return new F(this.r,this.s,J)}recoverPublicKey(J){const{r:ge,s:Ne,recovery:Te}=this,je=U((0,a.ensureBytes)("msgHash",J));if(Te==null||![0,1,2,3].includes(Te))throw new Error("recovery id invalid");const me=Te===2||Te===3?ge+w.n:ge;if(me>=S.ORDER)throw new Error("recovery id 2 or 3 invalid");const Ye=Te&1?"03":"02",et=ve.fromHex(Ye+Z(me)),re=Ee(me),xe=le(-je*re),M=le(Ne*re),ce=ve.BASE.multiplyAndAddUnsafe(et,xe,M);if(!ce)throw new Error("point at infinify");return ce.assertValidity(),ce}hasHighS(){return ae(this.s)}normalizeS(){return this.hasHighS()?new F(this.r,le(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return Z(this.r)+Z(this.s)}}const x={isValidPrivateKey(z){try{return m(z),!0}catch{return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{const z=r.getMinHashLength(w.n);return r.mapHashToField(w.randomBytes(z),w.n)},precompute(z=8,J=ve.BASE){return J._setWindowSize(z),J.multiply(BigInt(3)),J}};function Y(z,J=!0){return ve.fromPrivateKey(z).toRawBytes(J)}function B(z){const J=i.isBytes(z),ge=typeof z=="string",Ne=(J||ge)&&z.length;return J?Ne===Q||Ne===ie:ge?Ne===2*Q||Ne===2*ie:z instanceof ve}function j(z,J,ge=!0){if(B(z))throw new Error("first arg must be private key");if(!B(J))throw new Error("second arg must be public key");return ve.fromHex(J).multiply(m(z)).toRawBytes(ge)}const $=w.bits2int||function(z){const J=i.bytesToNumberBE(z),ge=z.length*8-w.nBitLength;return ge>0?J>>BigInt(ge):J},U=w.bits2int_modN||function(z){return le($(z))},G=i.bitMask(w.nBitLength);function de(z){if(typeof z!="bigint")throw new Error("bigint expected");if(!(c<=z&&z<G))throw new Error(`bigint expected < 2^${w.nBitLength}`);return i.numberToBytesBE(z,w.nByteLength)}function oe(z,J,ge=ue){if(["recovered","canonical"].some(Ve=>Ve in ge))throw new Error("sign() legacy options not supported");const{hash:Ne,randomBytes:Te}=w;let{lowS:je,prehash:me,extraEntropy:Ye}=ge;je==null&&(je=!0),z=(0,a.ensureBytes)("msgHash",z),me&&(z=(0,a.ensureBytes)("prehashed msgHash",Ne(z)));const et=U(z),re=m(J),xe=[de(re),de(et)];if(Ye!=null&&Ye!==!1){const Ve=Ye===!0?Te(S.BYTES):Ye;xe.push((0,a.ensureBytes)("extraEntropy",Ve))}const M=i.concatBytes(...xe),ce=et;function De(Ve){const Ue=$(Ve);if(!P(Ue))return;const ke=Ee(Ue),Xe=ve.BASE.multiply(Ue).toAffine(),D=le(Xe.x);if(D===c)return;const Re=le(ke*le(ce+D*re));if(Re===c)return;let $e=(Xe.x===D?0:2)|Number(Xe.y&l),qe=Re;return je&&ae(Re)&&(qe=X(Re),$e^=1),new F(D,qe,$e)}return{seed:M,k2sig:De}}const ue={lowS:w.lowS,prehash:!1},Se={lowS:w.lowS,prehash:!1};function Be(z,J,ge=ue){const{seed:Ne,k2sig:Te}=oe(z,J,ge),je=w;return i.createHmacDrbg(je.hash.outputLen,je.nByteLength,je.hmac)(Ne,Te)}ve.BASE._setWindowSize(8);function Me(z,J,ge,Ne=Se){var Xe;const Te=z;if(J=(0,a.ensureBytes)("msgHash",J),ge=(0,a.ensureBytes)("publicKey",ge),"strict"in Ne)throw new Error("options.strict was renamed to lowS");const{lowS:je,prehash:me}=Ne;let Ye,et;try{if(typeof Te=="string"||i.isBytes(Te))try{Ye=F.fromDER(Te)}catch(D){if(!(D instanceof e.DER.Err))throw D;Ye=F.fromCompact(Te)}else if(typeof Te=="object"&&typeof Te.r=="bigint"&&typeof Te.s=="bigint"){const{r:D,s:Re}=Te;Ye=new F(D,Re)}else throw new Error("PARSE");et=ve.fromHex(ge)}catch(D){if(D.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(je&&Ye.hasHighS())return!1;me&&(J=w.hash(J));const{r:re,s:xe}=Ye,M=U(J),ce=Ee(xe),De=le(M*ce),Ve=le(re*ce),Ue=(Xe=ve.BASE.multiplyAndAddUnsafe(et,De,Ve))==null?void 0:Xe.toAffine();return Ue?le(Ue.x)===re:!1}return{CURVE:w,getPublicKey:Y,getSharedSecret:j,sign:Be,verify:Me,ProjectivePoint:ve,Signature:F,utils:x}}function E(v,w){const S=v.ORDER;let H=c;for(let ae=S-l;ae%h===c;ae/=h)H+=l;const Q=H,ie=h<<Q-l-l,he=ie*h,le=(S-l)/he,Ee=(le-l)/h,ve=he-l,m=ie,O=v.pow(w,le),P=v.pow(w,(le+l)/h);let Z=(ae,X)=>{let ne=O,F=v.pow(X,ve),x=v.sqr(F);x=v.mul(x,X);let Y=v.mul(ae,x);Y=v.pow(Y,Ee),Y=v.mul(Y,F),F=v.mul(Y,X),x=v.mul(Y,ae);let B=v.mul(x,F);Y=v.pow(B,m);let j=v.eql(Y,v.ONE);F=v.mul(x,P),Y=v.mul(B,ne),x=v.cmov(F,x,j),B=v.cmov(Y,B,j);for(let $=Q;$>l;$--){let U=$-h;U=h<<U-l;let G=v.pow(B,U);const de=v.eql(G,v.ONE);F=v.mul(x,ne),ne=v.mul(ne,ne),G=v.mul(B,ne),x=v.cmov(F,x,de),B=v.cmov(G,B,de)}return{isValid:j,value:x}};if(v.ORDER%b===_){const ae=(v.ORDER-_)/b,X=v.sqrt(v.neg(w));Z=(ne,F)=>{let x=v.sqr(F);const Y=v.mul(ne,F);x=v.mul(x,Y);let B=v.pow(x,ae);B=v.mul(B,Y);const j=v.mul(B,X),$=v.mul(v.sqr(B),F),U=v.eql($,ne);let G=v.cmov(j,B,U);return{isValid:U,value:G}}}return Z}function I(v,w){if(r.validateField(v),!v.isValid(w.A)||!v.isValid(w.B)||!v.isValid(w.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const S=E(v,w.Z);if(!v.isOdd)throw new Error("Fp.isOdd is not implemented!");return H=>{let Q,ie,he,le,Ee,ve,m,O;Q=v.sqr(H),Q=v.mul(Q,w.Z),ie=v.sqr(Q),ie=v.add(ie,Q),he=v.add(ie,v.ONE),he=v.mul(he,w.B),le=v.cmov(w.Z,v.neg(ie),!v.eql(ie,v.ZERO)),le=v.mul(le,w.A),ie=v.sqr(he),ve=v.sqr(le),Ee=v.mul(ve,w.A),ie=v.add(ie,Ee),ie=v.mul(ie,he),ve=v.mul(ve,le),Ee=v.mul(ve,w.B),ie=v.add(ie,Ee),m=v.mul(Q,he);const{isValid:P,value:Z}=S(ie,ve);O=v.mul(Q,H),O=v.mul(O,Z),m=v.cmov(m,he,P),O=v.cmov(O,Z,P);const ae=v.isOdd(H)===v.isOdd(O);return O=v.cmov(v.neg(O),O,ae),m=v.div(m,le),{x:m,y:O}}}})(Jh);Object.defineProperty(au,"__esModule",{value:!0});au.getHash=aw;au.createCurve=Wx;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qx=Kv,W_=ei,Hx=Jh;function aw(e){return{hash:e,hmac:(t,...r)=>(0,qx.hmac)(e,t,(0,W_.concatBytes)(...r)),randomBytes:W_.randomBytes}}function Wx(e,t){const r=i=>(0,Hx.weierstrass)({...e,...aw(i)});return Object.freeze({...r(t),create:r})}var eo={};Object.defineProperty(eo,"__esModule",{value:!0});eo.expand_message_xmd=sw;eo.expand_message_xof=fw;eo.hash_to_field=eh;eo.isogenyMap=Zx;eo.createHasher=Kx;const zx=Ut,mr=Lt,Gx=mr.bytesToNumberBE;function mi(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let i=t-1;i>=0;i--)r[i]=e&255,e>>>=8;return new Uint8Array(r)}function Vx(e,t){const r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e[i]^t[i];return r}function tp(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function sw(e,t,r,i){(0,mr.abytes)(e),(0,mr.abytes)(t),tp(r),t.length>255&&(t=i((0,mr.concatBytes)((0,mr.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:s}=i,f=Math.ceil(r/a);if(f>255)throw new Error("Invalid xmd length");const d=(0,mr.concatBytes)(t,mi(t.length,1)),c=mi(0,s),l=mi(r,2),h=new Array(f),_=i((0,mr.concatBytes)(c,e,l,mi(0,1),d));h[0]=i((0,mr.concatBytes)(_,mi(1,1),d));for(let y=1;y<=f;y++){const T=[Vx(_,h[y-1]),mi(y+1,1),d];h[y]=i((0,mr.concatBytes)(...T))}return(0,mr.concatBytes)(...h).slice(0,r)}function fw(e,t,r,i,a){if((0,mr.abytes)(e),(0,mr.abytes)(t),tp(r),t.length>255){const s=Math.ceil(2*i/8);t=a.create({dkLen:s}).update((0,mr.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(mi(r,2)).update(t).update(mi(t.length,1)).digest()}function eh(e,t,r){(0,mr.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:i,k:a,m:s,hash:f,expand:d,DST:c}=r;(0,mr.abytes)(e),tp(t);const l=typeof c=="string"?(0,mr.utf8ToBytes)(c):c,h=i.toString(2).length,_=Math.ceil((h+a)/8),b=t*s*_;let y;if(d==="xmd")y=sw(e,l,b,f);else if(d==="xof")y=fw(e,l,b,a,f);else if(d==="_internal_pass")y=e;else throw new Error('expand must be "xmd" or "xof"');const T=new Array(t);for(let k=0;k<t;k++){const E=new Array(s);for(let I=0;I<s;I++){const v=_*(I+k*s),w=y.subarray(v,v+_);E[I]=(0,zx.mod)(Gx(w),i)}T[k]=E}return T}function Zx(e,t){const r=t.map(i=>Array.from(i).reverse());return(i,a)=>{const[s,f,d,c]=r.map(l=>l.reduce((h,_)=>e.add(e.mul(h,i),_)));return i=e.div(s,f),a=e.mul(a,e.div(d,c)),{x:i,y:a}}}function Kx(e,t,r){if(typeof t!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(i,a){const s=eh(i,2,{...r,DST:r.DST,...a}),f=e.fromAffine(t(s[0])),d=e.fromAffine(t(s[1])),c=f.add(d).clearCofactor();return c.assertValidity(),c},encodeToCurve(i,a){const s=eh(i,1,{...r,DST:r.encodeDST,...a}),f=e.fromAffine(t(s[0])).clearCofactor();return f.assertValidity(),f},mapToCurve(i){if(!Array.isArray(i))throw new Error("mapToCurve: expected array of bigints");for(const s of i)if(typeof s!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${s} in array`);const a=e.fromAffine(t(i)).clearCofactor();return a.assertValidity(),a}}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=$o,r=ei,i=au,a=eo,s=Ut,f=Lt,d=Jh,c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(1),_=BigInt(2),b=(F,x)=>(F+x/_)/x;function y(F){const x=c,Y=BigInt(3),B=BigInt(6),j=BigInt(11),$=BigInt(22),U=BigInt(23),G=BigInt(44),de=BigInt(88),oe=F*F*F%x,ue=oe*oe*F%x,Se=(0,s.pow2)(ue,Y,x)*ue%x,Be=(0,s.pow2)(Se,Y,x)*ue%x,Me=(0,s.pow2)(Be,_,x)*oe%x,z=(0,s.pow2)(Me,j,x)*Me%x,J=(0,s.pow2)(z,$,x)*z%x,ge=(0,s.pow2)(J,G,x)*J%x,Ne=(0,s.pow2)(ge,de,x)*ge%x,Te=(0,s.pow2)(Ne,G,x)*J%x,je=(0,s.pow2)(Te,Y,x)*ue%x,me=(0,s.pow2)(je,U,x)*z%x,Ye=(0,s.pow2)(me,B,x)*oe%x,et=(0,s.pow2)(Ye,_,x);if(!T.eql(T.sqr(et),F))throw new Error("Cannot find square root");return et}const T=(0,s.Field)(c,void 0,void 0,{sqrt:y});e.secp256k1=(0,i.createCurve)({a:BigInt(0),b:BigInt(7),Fp:T,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:F=>{const x=l,Y=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),B=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),j=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$=Y,U=BigInt("0x100000000000000000000000000000000"),G=b($*F,x),de=b(-B*F,x);let oe=(0,s.mod)(F-G*Y-de*j,x),ue=(0,s.mod)(-G*B-de*$,x);const Se=oe>U,Be=ue>U;if(Se&&(oe=x-oe),Be&&(ue=x-ue),oe>U||ue>U)throw new Error("splitScalar: Endomorphism failed, k="+F);return{k1neg:Se,k1:oe,k2neg:Be,k2:ue}}}},t.sha256);const k=BigInt(0),E=F=>typeof F=="bigint"&&k<F&&F<c,I=F=>typeof F=="bigint"&&k<F&&F<l,v={};function w(F,...x){let Y=v[F];if(Y===void 0){const B=(0,t.sha256)(Uint8Array.from(F,j=>j.charCodeAt(0)));Y=(0,f.concatBytes)(B,B),v[F]=Y}return(0,t.sha256)((0,f.concatBytes)(Y,...x))}const S=F=>F.toRawBytes(!0).slice(1),H=F=>(0,f.numberToBytesBE)(F,32),Q=F=>(0,s.mod)(F,c),ie=F=>(0,s.mod)(F,l),he=e.secp256k1.ProjectivePoint,le=(F,x,Y)=>he.BASE.multiplyAndAddUnsafe(F,x,Y);function Ee(F){let x=e.secp256k1.utils.normPrivateKeyToScalar(F),Y=he.fromPrivateKey(x);return{scalar:Y.hasEvenY()?x:ie(-x),bytes:S(Y)}}function ve(F){if(!E(F))throw new Error("bad x: need 0 < x < p");const x=Q(F*F),Y=Q(x*F+BigInt(7));let B=y(Y);B%_!==k&&(B=Q(-B));const j=new he(F,B,h);return j.assertValidity(),j}function m(...F){return ie((0,f.bytesToNumberBE)(w("BIP0340/challenge",...F)))}function O(F){return Ee(F).bytes}function P(F,x,Y=(0,r.randomBytes)(32)){const B=(0,f.ensureBytes)("message",F),{bytes:j,scalar:$}=Ee(x),U=(0,f.ensureBytes)("auxRand",Y,32),G=H($^(0,f.bytesToNumberBE)(w("BIP0340/aux",U))),de=w("BIP0340/nonce",G,j,B),oe=ie((0,f.bytesToNumberBE)(de));if(oe===k)throw new Error("sign failed: k is zero");const{bytes:ue,scalar:Se}=Ee(oe),Be=m(ue,j,B),Me=new Uint8Array(64);if(Me.set(ue,0),Me.set(H(ie(Se+Be*$)),32),!Z(Me,B,j))throw new Error("sign: Invalid signature produced");return Me}function Z(F,x,Y){const B=(0,f.ensureBytes)("signature",F,64),j=(0,f.ensureBytes)("message",x),$=(0,f.ensureBytes)("publicKey",Y,32);try{const U=ve((0,f.bytesToNumberBE)($)),G=(0,f.bytesToNumberBE)(B.subarray(0,32));if(!E(G))return!1;const de=(0,f.bytesToNumberBE)(B.subarray(32,64));if(!I(de))return!1;const oe=m(H(G),S(U),j),ue=le(U,de,ie(-oe));return!(!ue||!ue.hasEvenY()||ue.toAffine().x!==G)}catch{return!1}}e.schnorr={getPublicKey:O,sign:P,verify:Z,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ve,pointToBytes:S,numberToBytesBE:f.numberToBytesBE,bytesToNumberBE:f.bytesToNumberBE,taggedHash:w,mod:s.mod}};const ae=(0,a.isogenyMap)(T,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(F=>F.map(x=>BigInt(x)))),X=(0,d.mapToCurveSimpleSWU)(T,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:T.create(BigInt("-11"))}),ne=(0,a.createHasher)(e.secp256k1.ProjectivePoint,F=>{const{x,y:Y}=X(T.create(F[0]));return ae(x,Y)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:T.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=ne.hashToCurve,e.encodeToCurve=ne.encodeToCurve})(qv);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=qv;Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(iu);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_WITHDRAWALS_PER_PAYLOAD=e.RLP_EMPTY_STRING=e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.SECP256K1_ORDER_DIV_2=e.SECP256K1_ORDER=e.MAX_INTEGER_BIGINT=e.MAX_INTEGER=e.MAX_UINT64=void 0;const t=ee.bufferPolyfill,r=iu;e.MAX_UINT64=BigInt("0xffffffffffffffff"),e.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),e.SECP256K1_ORDER=r.secp256k1.CURVE.n,e.SECP256K1_ORDER_DIV_2=r.secp256k1.CURVE.n/BigInt(2),e.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=t.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=t.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=t.Buffer.from(e.KECCAK256_RLP_S,"hex"),e.RLP_EMPTY_STRING=t.Buffer.from([128]),e.MAX_WITHDRAWALS_PER_PAYLOAD=16})(nu);var du={};Object.defineProperty(du,"__esModule",{value:!0});du.GWEI_TO_WEI=void 0;du.GWEI_TO_WEI=BigInt(1e9);var rp={},Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.RLP=Tn.utils=Tn.decode=Tn.encode=void 0;function np(e){if(Array.isArray(e)){const r=[];let i=0;for(let a=0;a<e.length;a++){const s=np(e[a]);r.push(s),i+=s.length}return rh(G_(i,192),...r)}const t=pw(e);return t.length===1&&t[0]<128?t:rh(G_(t.length,128),t)}Tn.encode=np;function Eo(e,t,r){if(r>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function z_(e){if(e[0]===0)throw new Error("invalid RLP: extra zeros");return lw(cw(e))}function G_(e,t){if(e<56)return Uint8Array.from([e+t]);const r=nh(e),i=r.length/2,a=nh(t+55+i);return Uint8Array.from(Of(a+r))}function uw(e,t=!1){if(typeof e>"u"||e===null||e.length===0)return Uint8Array.from([]);const r=pw(e),i=th(r);if(t)return i;if(i.remainder.length!==0)throw new Error("invalid RLP: remainder must be zero");return i.data}Tn.decode=uw;function th(e){let t,r,i,a,s;const f=[],d=e[0];if(d<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(d<=183){if(t=d-127,d===128?i=Uint8Array.from([]):i=Eo(e,1,t),t===2&&i[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:i,remainder:e.slice(t)}}else if(d<=191){if(r=d-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if(t=z_(Eo(e,1,r)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return i=Eo(e,r,t+r),{data:i,remainder:e.slice(t+r)}}else if(d<=247){for(t=d-191,a=Eo(e,1,t);a.length;)s=th(a),f.push(s.data),a=s.remainder;return{data:f,remainder:e.slice(t)}}else{if(r=d-246,t=z_(Eo(e,1,r)),t<56)throw new Error("invalid RLP: encoded list too short");const c=r+t;if(c>e.length)throw new Error("invalid RLP: total length is larger than the data");for(a=Eo(e,r,c);a.length;)s=th(a),f.push(s.data),a=s.remainder;return{data:f,remainder:e.slice(c)}}}const Jx=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function cw(e){let t="";for(let r=0;r<e.length;r++)t+=Jx[e[r]];return t}function lw(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function Of(e){if(typeof e!="string")throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const i=r*2;t[r]=lw(e.slice(i,i+2))}return t}function rh(...e){if(e.length===1)return e[0];const t=e.reduce((i,a)=>i+a.length,0),r=new Uint8Array(t);for(let i=0,a=0;i<e.length;i++){const s=e[i];r.set(s,a),a+=s.length}return r}function dw(e){return new TextEncoder().encode(e)}function nh(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function Xx(e){return e.length%2?`0${e}`:e}function hw(e){return e.length>=2&&e[0]==="0"&&e[1]==="x"}function Yx(e){return typeof e!="string"?e:hw(e)?e.slice(2):e}function pw(e){if(e instanceof Uint8Array)return e;if(typeof e=="string")return hw(e)?Of(Xx(Yx(e))):dw(e);if(typeof e=="number"||typeof e=="bigint")return e?Of(nh(e)):Uint8Array.from([]);if(e==null)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}Tn.utils={bytesToHex:cw,concatBytes:rh,hexToBytes:Of,utf8ToBytes:dw};Tn.RLP={encode:np,decode:uw};var dn={},Ft={},ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.add5L=ct.add5H=ct.add4H=ct.add4L=ct.add3H=ct.add3L=ct.add=ct.rotlBL=ct.rotlBH=ct.rotlSL=ct.rotlSH=ct.rotr32L=ct.rotr32H=ct.rotrBL=ct.rotrBH=ct.rotrSL=ct.rotrSH=ct.shrSL=ct.shrSH=ct.toBig=ct.split=ct.fromBig=void 0;const af=BigInt(2**32-1),ih=BigInt(32);function ip(e,t=!1){return t?{h:Number(e&af),l:Number(e>>ih&af)}:{h:Number(e>>ih&af)|0,l:Number(e&af)|0}}ct.fromBig=ip;function gw(e,t=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let a=0;a<e.length;a++){const{h:s,l:f}=ip(e[a],t);[r[a],i[a]]=[s,f]}return[r,i]}ct.split=gw;const yw=(e,t)=>BigInt(e>>>0)<<ih|BigInt(t>>>0);ct.toBig=yw;const _w=(e,t,r)=>e>>>r;ct.shrSH=_w;const bw=(e,t,r)=>e<<32-r|t>>>r;ct.shrSL=bw;const mw=(e,t,r)=>e>>>r|t<<32-r;ct.rotrSH=mw;const vw=(e,t,r)=>e<<32-r|t>>>r;ct.rotrSL=vw;const ww=(e,t,r)=>e<<64-r|t>>>r-32;ct.rotrBH=ww;const Ew=(e,t,r)=>e>>>r-32|t<<64-r;ct.rotrBL=Ew;const Sw=(e,t)=>t;ct.rotr32H=Sw;const Aw=(e,t)=>e;ct.rotr32L=Aw;const Rw=(e,t,r)=>e<<r|t>>>32-r;ct.rotlSH=Rw;const Iw=(e,t,r)=>t<<r|e>>>32-r;ct.rotlSL=Iw;const Ow=(e,t,r)=>t<<r-32|e>>>64-r;ct.rotlBH=Ow;const Tw=(e,t,r)=>e<<r-32|t>>>64-r;ct.rotlBL=Tw;function Pw(e,t,r,i){const a=(t>>>0)+(i>>>0);return{h:e+r+(a/2**32|0)|0,l:a|0}}ct.add=Pw;const Cw=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);ct.add3L=Cw;const Lw=(e,t,r,i)=>t+r+i+(e/2**32|0)|0;ct.add3H=Lw;const Nw=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0);ct.add4L=Nw;const Bw=(e,t,r,i,a)=>t+r+i+a+(e/2**32|0)|0;ct.add4H=Bw;const $w=(e,t,r,i,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(a>>>0);ct.add5L=$w;const xw=(e,t,r,i,a,s)=>t+r+i+a+s+(e/2**32|0)|0;ct.add5H=xw;const Qx={fromBig:ip,split:gw,toBig:yw,shrSH:_w,shrSL:bw,rotrSH:mw,rotrSL:vw,rotrBH:ww,rotrBL:Ew,rotr32H:Sw,rotr32L:Aw,rotlSH:Rw,rotlSL:Iw,rotlBH:Ow,rotlBL:Tw,add:Pw,add3L:Cw,add3H:Lw,add4L:Nw,add4H:Bw,add5H:xw,add5L:$w};ct.default=Qx;Object.defineProperty(Ft,"__esModule",{value:!0});Ft.shake256=Ft.shake128=Ft.keccak_512=Ft.keccak_384=Ft.keccak_256=Ft.keccak_224=Ft.sha3_512=Ft.sha3_384=Ft.sha3_256=Ft.sha3_224=Ft.Keccak=Ft.keccakP=void 0;const So=Qt,La=ct,Kn=ei,Dw=[],Mw=[],Fw=[],eD=BigInt(0),ba=BigInt(1),tD=BigInt(2),rD=BigInt(7),nD=BigInt(256),iD=BigInt(113);for(let e=0,t=ba,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],Dw.push(2*(5*i+r)),Mw.push((e+1)*(e+2)/2%64);let a=eD;for(let s=0;s<7;s++)t=(t<<ba^(t>>rD)*iD)%nD,t&tD&&(a^=ba<<(ba<<BigInt(s))-ba);Fw.push(a)}const[oD,aD]=(0,La.split)(Fw,!0),V_=(e,t,r)=>r>32?(0,La.rotlBH)(e,t,r):(0,La.rotlSH)(e,t,r),Z_=(e,t,r)=>r>32?(0,La.rotlBL)(e,t,r):(0,La.rotlSL)(e,t,r);function jw(e,t=24){const r=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let f=0;f<10;f++)r[f]=e[f]^e[f+10]^e[f+20]^e[f+30]^e[f+40];for(let f=0;f<10;f+=2){const d=(f+8)%10,c=(f+2)%10,l=r[c],h=r[c+1],_=V_(l,h,1)^r[d],b=Z_(l,h,1)^r[d+1];for(let y=0;y<50;y+=10)e[f+y]^=_,e[f+y+1]^=b}let a=e[2],s=e[3];for(let f=0;f<24;f++){const d=Mw[f],c=V_(a,s,d),l=Z_(a,s,d),h=Dw[f];a=e[h],s=e[h+1],e[h]=c,e[h+1]=l}for(let f=0;f<50;f+=10){for(let d=0;d<10;d++)r[d]=e[f+d];for(let d=0;d<10;d++)e[f+d]^=~r[(d+2)%10]&r[(d+4)%10]}e[0]^=oD[i],e[1]^=aD[i]}r.fill(0)}Ft.keccakP=jw;class za extends Kn.Hash{constructor(t,r,i,a=!1,s=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=i,this.enableXOF=a,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,So.number)(i),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Kn.u32)(this.state)}keccak(){Kn.isLE||(0,Kn.byteSwap32)(this.state32),jw(this.state32,this.rounds),Kn.isLE||(0,Kn.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,So.exists)(this);const{blockLen:r,state:i}=this;t=(0,Kn.toBytes)(t);const a=t.length;for(let s=0;s<a;){const f=Math.min(r-this.pos,a-s);for(let d=0;d<f;d++)i[this.pos++]^=t[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:i,blockLen:a}=this;t[i]^=r,r&128&&i===a-1&&this.keccak(),t[a-1]^=128,this.keccak()}writeInto(t){(0,So.exists)(this,!1),(0,So.bytes)(t),this.finish();const r=this.state,{blockLen:i}=this;for(let a=0,s=t.length;a<s;){this.posOut>=i&&this.keccak();const f=Math.min(i-this.posOut,s-a);t.set(r.subarray(this.posOut,this.posOut+f),a),this.posOut+=f,a+=f}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,So.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,So.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:r,suffix:i,outputLen:a,rounds:s,enableXOF:f}=this;return t||(t=new za(r,i,a,f,s)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=s,t.suffix=i,t.outputLen=a,t.enableXOF=f,t.destroyed=this.destroyed,t}}Ft.Keccak=za;const Oi=(e,t,r)=>(0,Kn.wrapConstructor)(()=>new za(t,e,r));Ft.sha3_224=Oi(6,144,224/8);Ft.sha3_256=Oi(6,136,256/8);Ft.sha3_384=Oi(6,104,384/8);Ft.sha3_512=Oi(6,72,512/8);Ft.keccak_224=Oi(1,144,224/8);Ft.keccak_256=Oi(1,136,256/8);Ft.keccak_384=Oi(1,104,384/8);Ft.keccak_512=Oi(1,72,512/8);const kw=(e,t,r)=>(0,Kn.wrapXOFConstructorWithOpts)((i={})=>new za(t,e,i.dkLen===void 0?r:i.dkLen,!0));Ft.shake128=kw(31,168,128/8);Ft.shake256=kw(31,136,256/8);var Tf={exports:{}};Tf.exports;(function(e,t){var r=ee.commonjsGlobal&&ee.commonjsGlobal.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0,t.bytesToUtf8=c,t.hexToBytes=l,t.equalsBytes=h,t.wrapHash=_;const i=r(Qt),a=ei,s=i.default.bool;t.assertBool=s;const f=i.default.bytes;t.assertBytes=f;var d=ei;Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return d.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return d.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return d.utf8ToBytes}});function c(b){if(!(b instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof b}`);return new TextDecoder().decode(b)}function l(b){const y=b.startsWith("0x")?b.substring(2):b;return(0,a.hexToBytes)(y)}function h(b,y){if(b.length!==y.length)return!1;for(let T=0;T<b.length;T++)if(b[T]!==y[T])return!1;return!0}function _(b){return y=>(i.default.bytes(y),b(y))}t.crypto=(()=>{const b=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,y=typeof ee.commonjsRequire=="function"&&ee.commonjsRequire.bind(e);return{node:y&&!b?y("crypto"):void 0,web:b}})()})(Tf,Tf.exports);var Uw=Tf.exports;Object.defineProperty(dn,"__esModule",{value:!0});dn.keccak512=dn.keccak384=dn.keccak256=dn.keccak224=void 0;const Na=Ft,hu=Uw;dn.keccak224=(0,hu.wrapHash)(Na.keccak_224);dn.keccak256=(()=>{const e=(0,hu.wrapHash)(Na.keccak_256);return e.create=Na.keccak_256.create,e})();dn.keccak384=(0,hu.wrapHash)(Na.keccak_384);dn.keccak512=(0,hu.wrapHash)(Na.keccak_512);var to={},rn={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.isHexString=jt.getKeys=jt.fromAscii=jt.fromUtf8=jt.toAscii=jt.arrayContainsArray=jt.getBinarySize=jt.padToEven=jt.stripHexPrefix=jt.isHexPrefixed=void 0;function qw(e){if(typeof e!="string")throw new Error(`[isHexPrefixed] input must be type 'string', received type ${typeof e}`);return e[0]==="0"&&e[1]==="x"}jt.isHexPrefixed=qw;const sD=e=>{if(typeof e!="string")throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return qw(e)?e.slice(2):e};jt.stripHexPrefix=sD;function Hw(e){let t=e;if(typeof t!="string")throw new Error(`[padToEven] value must be type 'string', received ${typeof t}`);return t.length%2&&(t=`0${t}`),t}jt.padToEven=Hw;function fD(e){if(typeof e!="string")throw new Error(`[getBinarySize] method requires input type 'string', received ${typeof e}`);return ee.dist.Buffer.byteLength(e,"utf8")}jt.getBinarySize=fD;function uD(e,t,r){if(Array.isArray(e)!==!0)throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(Array.isArray(t)!==!0)throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[r===!0?"some":"every"](i=>e.indexOf(i)>=0)}jt.arrayContainsArray=uD;function cD(e){let t="",r=0;const i=e.length;for(e.substring(0,2)==="0x"&&(r=2);r<i;r+=2){const a=parseInt(e.substr(r,2),16);t+=String.fromCharCode(a)}return t}jt.toAscii=cD;function lD(e){const t=ee.dist.Buffer.from(e,"utf8");return`0x${Hw(t.toString("hex")).replace(/^0+|0+$/g,"")}`}jt.fromUtf8=lD;function dD(e){let t="";for(let r=0;r<e.length;r++){const a=e.charCodeAt(r).toString(16);t+=a.length<2?`0${a}`:a}return`0x${t}`}jt.fromAscii=dD;function hD(e,t,r){if(!Array.isArray(e))throw new Error(`[getKeys] method expects input 'params' to be an array, got ${typeof e}`);if(typeof t!="string")throw new Error(`[getKeys] method expects input 'key' to be type 'string', got ${typeof e}`);const i=[];for(let a=0;a<e.length;a++){let s=e[a][t];if(r===!0&&!s)s="";else if(typeof s!="string")throw new Error(`invalid abi - expected type 'string', received ${typeof s}`);i.push(s)}return i}jt.getKeys=hD;function pD(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||typeof t<"u"&&t>0&&e.length!==2+2*t)}jt.isHexString=pD;Object.defineProperty(rn,"__esModule",{value:!0});rn.assertIsString=rn.assertIsArray=rn.assertIsBuffer=rn.assertIsHexString=void 0;const gD=jt,yD=function(e){if(!(0,gD.isHexString)(e)){const t=`This method only supports 0x-prefixed hex strings but input was: ${e}`;throw new Error(t)}};rn.assertIsHexString=yD;const _D=function(e){if(!ee.dist.Buffer.isBuffer(e)){const t=`This method only supports Buffer but input was: ${e}`;throw new Error(t)}};rn.assertIsBuffer=_D;const bD=function(e){if(!Array.isArray(e)){const t=`This method only supports number arrays but input was: ${e}`;throw new Error(t)}};rn.assertIsArray=bD;const mD=function(e){if(typeof e!="string"){const t=`This method only supports strings but input was: ${e}`;throw new Error(t)}};rn.assertIsString=mD;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.intToUnpaddedBuffer=e.bigIntToUnpaddedBuffer=e.bigIntToHex=e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.short=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToInt=e.bigIntToBuffer=e.bufferToBigInt=e.bufferToHex=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;const t=rn,r=jt,i=function(P){if(!Number.isSafeInteger(P)||P<0)throw new Error(`Received an invalid integer type: ${P}`);return`0x${P.toString(16)}`};e.intToHex=i;const a=function(P){const Z=(0,e.intToHex)(P);return ee.dist.Buffer.from((0,r.padToEven)(Z.slice(2)),"hex")};e.intToBuffer=a;const s=function(P){return ee.dist.Buffer.allocUnsafe(P).fill(0)};e.zeros=s;const f=function(P,Z,ae){const X=(0,e.zeros)(Z);return ae?P.length<Z?(P.copy(X),X):P.slice(0,Z):P.length<Z?(P.copy(X,Z-P.length),X):P.slice(-Z)},d=function(P,Z){return(0,t.assertIsBuffer)(P),f(P,Z,!1)};e.setLengthLeft=d;const c=function(P,Z){return(0,t.assertIsBuffer)(P),f(P,Z,!0)};e.setLengthRight=c;const l=function(P){let Z=P[0];for(;P.length>0&&Z.toString()==="0";)P=P.slice(1),Z=P[0];return P},h=function(P){return(0,t.assertIsBuffer)(P),l(P)};e.unpadBuffer=h;const _=function(P){return(0,t.assertIsArray)(P),l(P)};e.unpadArray=_;const b=function(P){return(0,t.assertIsHexString)(P),P=(0,r.stripHexPrefix)(P),"0x"+l(P)};e.unpadHexString=b;const y=function(P){if(P==null)return ee.dist.Buffer.allocUnsafe(0);if(ee.dist.Buffer.isBuffer(P)||Array.isArray(P)||P instanceof Uint8Array)return ee.dist.Buffer.from(P);if(typeof P=="string"){if(!(0,r.isHexString)(P))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${P}`);return ee.dist.Buffer.from((0,r.padToEven)((0,r.stripHexPrefix)(P)),"hex")}if(typeof P=="number")return(0,e.intToBuffer)(P);if(typeof P=="bigint"){if(P<BigInt(0))throw new Error(`Cannot convert negative bigint to buffer. Given: ${P}`);let Z=P.toString(16);return Z.length%2&&(Z="0"+Z),ee.dist.Buffer.from(Z,"hex")}if(P.toArray)return ee.dist.Buffer.from(P.toArray());if(P.toBuffer)return ee.dist.Buffer.from(P.toBuffer());throw new Error("invalid type")};e.toBuffer=y;const T=function(P){return P=(0,e.toBuffer)(P),"0x"+P.toString("hex")};e.bufferToHex=T;function k(P){const Z=(0,e.bufferToHex)(P);return BigInt(Z==="0x"?0:Z)}e.bufferToBigInt=k;function E(P){return(0,e.toBuffer)("0x"+P.toString(16))}e.bigIntToBuffer=E;const I=function(P){const Z=Number(k(P));if(!Number.isSafeInteger(Z))throw new Error("Number exceeds 53 bits");return Z};e.bufferToInt=I;const v=function(P){return BigInt.asIntN(256,k(P))};e.fromSigned=v;const w=function(P){return E(BigInt.asUintN(256,P))};e.toUnsigned=w;const S=function(P){return typeof P!="string"||(0,r.isHexPrefixed)(P)?P:"0x"+P};e.addHexPrefix=S;function H(P,Z=50){const ae=ee.dist.Buffer.isBuffer(P)?P.toString("hex"):P;return ae.length<=Z?ae:ae.slice(0,Z)+"…"}e.short=H;const Q=function(P){const Z=/^(00)+|(00)+$/g;if(P=(0,r.stripHexPrefix)(P),P.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return ee.dist.Buffer.from(P.replace(Z,""),"hex").toString("utf8")};e.toUtf8=Q;const ie=function(P){if(ee.dist.Buffer.isBuffer(P))return`0x${P.toString("hex")}`;if(P instanceof Array){const Z=[];for(let ae=0;ae<P.length;ae++)Z.push((0,e.baToJSON)(P[ae]));return Z}};e.baToJSON=ie;const he=function(P){for(const[Z,ae]of Object.entries(P))if(ae!==void 0&&ae.length>0&&ae[0]===0)throw new Error(`${Z} cannot have leading zeroes, received: ${ae.toString("hex")}`)};e.validateNoLeadingZeroes=he;function le(P){return Array.isArray(P)?P.map(Z=>le(Z)):ee.dist.Buffer.from(P)}e.arrToBufArr=le;function Ee(P){return Array.isArray(P)?P.map(Z=>Ee(Z)):Uint8Array.from(P??[])}e.bufArrToArr=Ee;const ve=P=>"0x"+P.toString(16);e.bigIntToHex=ve;function m(P){return(0,e.unpadBuffer)(E(P))}e.bigIntToUnpaddedBuffer=m;function O(P){return(0,e.unpadBuffer)((0,e.intToBuffer)(P))}e.intToUnpaddedBuffer=O})(to);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.accountBodyToRLP=e.accountBodyToSlim=e.accountBodyFromSlim=e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;const t=Tn,r=dn,i=iu,a=Uw,s=to,f=nu,d=rn,c=jt,l=BigInt(0);class h{constructor(O=l,P=l,Z=f.KECCAK256_RLP,ae=f.KECCAK256_NULL){this.nonce=O,this.balance=P,this.storageRoot=Z,this.codeHash=ae,this._validate()}static fromAccountData(O){const{nonce:P,balance:Z,storageRoot:ae,codeHash:X}=O;return new h(P!==void 0?(0,s.bufferToBigInt)((0,s.toBuffer)(P)):void 0,Z!==void 0?(0,s.bufferToBigInt)((0,s.toBuffer)(Z)):void 0,ae!==void 0?(0,s.toBuffer)(ae):void 0,X!==void 0?(0,s.toBuffer)(X):void 0)}static fromRlpSerializedAccount(O){const P=(0,s.arrToBufArr)(t.RLP.decode(Uint8Array.from(O)));if(!Array.isArray(P))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(P)}static fromValuesArray(O){const[P,Z,ae,X]=O;return new h((0,s.bufferToBigInt)(P),(0,s.bufferToBigInt)(Z),ae,X)}_validate(){if(this.nonce<l)throw new Error("nonce must be greater than zero");if(this.balance<l)throw new Error("balance must be greater than zero");if(this.storageRoot.length!==32)throw new Error("storageRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")}raw(){return[(0,s.bigIntToUnpaddedBuffer)(this.nonce),(0,s.bigIntToUnpaddedBuffer)(this.balance),this.storageRoot,this.codeHash]}serialize(){return ee.dist.Buffer.from(t.RLP.encode((0,s.bufArrToArr)(this.raw())))}isContract(){return!this.codeHash.equals(f.KECCAK256_NULL)}isEmpty(){return this.balance===l&&this.nonce===l&&this.codeHash.equals(f.KECCAK256_NULL)}}e.Account=h;const _=function(m){try{(0,d.assertIsString)(m)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(m)};e.isValidAddress=_;const b=function(m,O){(0,d.assertIsHexString)(m);const P=(0,c.stripHexPrefix)(m).toLowerCase();let Z="";O!==void 0&&(Z=(0,s.bufferToBigInt)((0,s.toBuffer)(O)).toString()+"0x");const ae=ee.dist.Buffer.from(Z+P,"utf8"),X=(0,a.bytesToHex)((0,r.keccak256)(ae));let ne="0x";for(let F=0;F<P.length;F++)parseInt(X[F],16)>=8?ne+=P[F].toUpperCase():ne+=P[F];return ne};e.toChecksumAddress=b;const y=function(m,O){return(0,e.isValidAddress)(m)&&(0,e.toChecksumAddress)(m,O)===m};e.isValidChecksumAddress=y;const T=function(m,O){return(0,d.assertIsBuffer)(m),(0,d.assertIsBuffer)(O),(0,s.bufferToBigInt)(O)===BigInt(0)?ee.dist.Buffer.from((0,r.keccak256)(t.RLP.encode((0,s.bufArrToArr)([m,null])))).slice(-20):ee.dist.Buffer.from((0,r.keccak256)(t.RLP.encode((0,s.bufArrToArr)([m,O])))).slice(-20)};e.generateAddress=T;const k=function(m,O,P){if((0,d.assertIsBuffer)(m),(0,d.assertIsBuffer)(O),(0,d.assertIsBuffer)(P),m.length!==20)throw new Error("Expected from to be of length 20");if(O.length!==32)throw new Error("Expected salt to be of length 32");const Z=(0,r.keccak256)(ee.dist.Buffer.concat([ee.dist.Buffer.from("ff","hex"),m,O,(0,r.keccak256)(P)]));return(0,s.toBuffer)(Z).slice(-20)};e.generateAddress2=k;const E=function(m){return i.secp256k1.utils.isValidPrivateKey(m)};e.isValidPrivate=E;const I=function(m,O=!1){if((0,d.assertIsBuffer)(m),m.length===64)try{return i.secp256k1.ProjectivePoint.fromHex(ee.dist.Buffer.concat([ee.dist.Buffer.from([4]),m])),!0}catch{return!1}if(!O)return!1;try{return i.secp256k1.ProjectivePoint.fromHex(m),!0}catch{return!1}};e.isValidPublic=I;const v=function(m,O=!1){if((0,d.assertIsBuffer)(m),O&&m.length!==64&&(m=ee.dist.Buffer.from(i.secp256k1.ProjectivePoint.fromHex(m).toRawBytes(!1).slice(1))),m.length!==64)throw new Error("Expected pubKey to be of length 64");return ee.dist.Buffer.from((0,r.keccak256)(m)).slice(-20)};e.pubToAddress=v,e.publicToAddress=e.pubToAddress;const w=function(m){return(0,d.assertIsBuffer)(m),ee.dist.Buffer.from(i.secp256k1.ProjectivePoint.fromPrivateKey(m).toRawBytes(!1).slice(1))};e.privateToPublic=w;const S=function(m){return(0,e.publicToAddress)((0,e.privateToPublic)(m))};e.privateToAddress=S;const H=function(m){return(0,d.assertIsBuffer)(m),m.length!==64&&(m=ee.dist.Buffer.from(i.secp256k1.ProjectivePoint.fromHex(m).toRawBytes(!1).slice(1))),m};e.importPublic=H;const Q=function(){const O=(0,s.zeros)(20);return(0,s.bufferToHex)(O)};e.zeroAddress=Q;const ie=function(m){try{(0,d.assertIsString)(m)}catch{return!1}return(0,e.zeroAddress)()===m};e.isZeroAddress=ie;function he(m){const[O,P,Z,ae]=m;return[O,P,(0,s.arrToBufArr)(Z).length===0?f.KECCAK256_RLP:Z,(0,s.arrToBufArr)(ae).length===0?f.KECCAK256_NULL:ae]}e.accountBodyFromSlim=he;const le=new Uint8Array(0);function Ee(m){const[O,P,Z,ae]=m;return[O,P,(0,s.arrToBufArr)(Z).equals(f.KECCAK256_RLP)?le:Z,(0,s.arrToBufArr)(ae).equals(f.KECCAK256_NULL)?le:ae]}e.accountBodyToSlim=Ee;function ve(m,O=!0){const P=O?he(m):m;return(0,s.arrToBufArr)(t.RLP.encode(P))}e.accountBodyToRLP=ve})(rp);var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0});Ga.Address=void 0;const ma=rp,sf=to;class Jn{constructor(t){if(t.length!==20)throw new Error("Invalid address length");this.buf=t}static zero(){return new Jn((0,sf.zeros)(20))}static fromString(t){if(!(0,ma.isValidAddress)(t))throw new Error("Invalid address");return new Jn((0,sf.toBuffer)(t))}static fromPublicKey(t){if(!ee.dist.Buffer.isBuffer(t))throw new Error("Public key should be Buffer");const r=(0,ma.pubToAddress)(t);return new Jn(r)}static fromPrivateKey(t){if(!ee.dist.Buffer.isBuffer(t))throw new Error("Private key should be Buffer");const r=(0,ma.privateToAddress)(t);return new Jn(r)}static generate(t,r){if(typeof r!="bigint")throw new Error("Expected nonce to be a bigint");return new Jn((0,ma.generateAddress)(t.buf,(0,sf.bigIntToBuffer)(r)))}static generate2(t,r,i){if(!ee.dist.Buffer.isBuffer(r))throw new Error("Expected salt to be a Buffer");if(!ee.dist.Buffer.isBuffer(i))throw new Error("Expected initCode to be a Buffer");return new Jn((0,ma.generateAddress2)(t.buf,r,i))}equals(t){return this.buf.equals(t.buf)}isZero(){return this.equals(Jn.zero())}isPrecompileOrSystemAddress(){const t=(0,sf.bufferToBigInt)(this.buf),r=BigInt(0),i=BigInt("0xffff");return t>=r&&t<=i}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return ee.dist.Buffer.from(this.buf)}}Ga.Address=Jn;var pu={},op={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=void 0;const t=to,r=jt;var i;(function(s){s[s.Number=0]="Number",s[s.BigInt=1]="BigInt",s[s.Buffer=2]="Buffer",s[s.PrefixedHexString=3]="PrefixedHexString"})(i=e.TypeOutput||(e.TypeOutput={}));function a(s,f){if(s===null)return null;if(s===void 0)return;if(typeof s=="string"&&!(0,r.isHexString)(s))throw new Error(`A string must be provided with a 0x-prefix, given: ${s}`);if(typeof s=="number"&&!Number.isSafeInteger(s))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const d=(0,t.toBuffer)(s);switch(f){case i.Buffer:return d;case i.BigInt:return(0,t.bufferToBigInt)(d);case i.Number:{const c=(0,t.bufferToBigInt)(d);if(c>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(c)}case i.PrefixedHexString:return(0,t.bufferToHex)(d);default:throw new Error("unknown outputType")}}e.toType=a})(op);Object.defineProperty(pu,"__esModule",{value:!0});pu.Withdrawal=void 0;const K_=Ga,id=to,Kt=op;class Ra{constructor(t,r,i,a){this.index=t,this.validatorIndex=r,this.address=i,this.amount=a}static fromWithdrawalData(t){const{index:r,validatorIndex:i,address:a,amount:s}=t,f=(0,Kt.toType)(r,Kt.TypeOutput.BigInt),d=(0,Kt.toType)(i,Kt.TypeOutput.BigInt),c=new K_.Address((0,Kt.toType)(a,Kt.TypeOutput.Buffer)),l=(0,Kt.toType)(s,Kt.TypeOutput.BigInt);return new Ra(f,d,c,l)}static fromValuesArray(t){if(t.length!==4)throw Error(`Invalid withdrawalArray length expected=4 actual=${t.length}`);const[r,i,a,s]=t;return Ra.fromWithdrawalData({index:r,validatorIndex:i,address:a,amount:s})}static toBufferArray(t){const{index:r,validatorIndex:i,address:a,amount:s}=t,f=(0,Kt.toType)(r,Kt.TypeOutput.BigInt)===BigInt(0)?ee.dist.Buffer.alloc(0):(0,Kt.toType)(r,Kt.TypeOutput.Buffer),d=(0,Kt.toType)(i,Kt.TypeOutput.BigInt)===BigInt(0)?ee.dist.Buffer.alloc(0):(0,Kt.toType)(i,Kt.TypeOutput.Buffer);let c;a instanceof K_.Address?c=a.buf:c=(0,Kt.toType)(a,Kt.TypeOutput.Buffer);const l=(0,Kt.toType)(s,Kt.TypeOutput.BigInt)===BigInt(0)?ee.dist.Buffer.alloc(0):(0,Kt.toType)(s,Kt.TypeOutput.Buffer);return[f,d,c,l]}raw(){return Ra.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,id.bigIntToHex)(this.index),validatorIndex:(0,id.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,id.bigIntToHex)(this.amount)}}}pu.Withdrawal=Ra;var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.hashPersonalMessage=vr.isValidSignature=vr.fromRpcSig=vr.toCompactSig=vr.toRpcSig=vr.ecrecover=vr.ecsign=void 0;const vD=dn,Ww=iu,Nr=to,od=nu,wD=rn;function ED(e,t,r){const i=Ww.secp256k1.sign(e,t),a=i.toCompactRawBytes(),s=ee.dist.Buffer.from(a.slice(0,32)),f=ee.dist.Buffer.from(a.slice(32,64)),d=r===void 0?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*BigInt(2);return{r:s,s:f,v:d}}vr.ecsign=ED;function gu(e,t){return e===BigInt(0)||e===BigInt(1)?e:t===void 0?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function yu(e){return e===BigInt(0)||e===BigInt(1)}const SD=function(e,t,r,i,a){const s=ee.dist.Buffer.concat([(0,Nr.setLengthLeft)(r,32),(0,Nr.setLengthLeft)(i,32)],64),f=gu(t,a);if(!yu(f))throw new Error("Invalid signature v value");const c=Ww.secp256k1.Signature.fromCompact(s).addRecoveryBit(Number(f)).recoverPublicKey(e);return ee.dist.Buffer.from(c.toRawBytes(!1).slice(1))};vr.ecrecover=SD;const AD=function(e,t,r,i){const a=gu(e,i);if(!yu(a))throw new Error("Invalid signature v value");return(0,Nr.bufferToHex)(ee.dist.Buffer.concat([(0,Nr.setLengthLeft)(t,32),(0,Nr.setLengthLeft)(r,32),(0,Nr.toBuffer)(e)]))};vr.toRpcSig=AD;const RD=function(e,t,r,i){const a=gu(e,i);if(!yu(a))throw new Error("Invalid signature v value");let s=r;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(s=ee.dist.Buffer.from(r),s[0]|=128),(0,Nr.bufferToHex)(ee.dist.Buffer.concat([(0,Nr.setLengthLeft)(t,32),(0,Nr.setLengthLeft)(s,32)]))};vr.toCompactSig=RD;const ID=function(e){const t=(0,Nr.toBuffer)(e);let r,i,a;if(t.length>=65)r=t.slice(0,32),i=t.slice(32,64),a=(0,Nr.bufferToBigInt)(t.slice(64));else if(t.length===64)r=t.slice(0,32),i=t.slice(32,64),a=BigInt((0,Nr.bufferToInt)(t.slice(32,33))>>7),i[0]&=127;else throw new Error("Invalid signature length");return a<27&&(a=a+BigInt(27)),{v:a,r,s:i}};vr.fromRpcSig=ID;const OD=function(e,t,r,i=!0,a){if(t.length!==32||r.length!==32||!yu(gu(e,a)))return!1;const s=(0,Nr.bufferToBigInt)(t),f=(0,Nr.bufferToBigInt)(r);return!(s===BigInt(0)||s>=od.SECP256K1_ORDER||f===BigInt(0)||f>=od.SECP256K1_ORDER||i&&f>=od.SECP256K1_ORDER_DIV_2)};vr.isValidSignature=OD;const TD=function(e){(0,wD.assertIsBuffer)(e);const t=ee.dist.Buffer.from(`Ethereum Signed Message:
73
- ${e.length}`,"utf-8");return ee.dist.Buffer.from((0,vD.keccak256)(ee.dist.Buffer.concat([t,e])))};vr.hashPersonalMessage=TD;var zw={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.compactBytesToNibbles=e.bytesToNibbles=e.nibblesToCompactBytes=e.nibblesToBytes=e.hasTerminator=void 0;const t=f=>f.length>0&&f[f.length-1]===16;e.hasTerminator=t;const r=(f,d)=>{for(let c=0,l=0;l<f.length;c+=1,l+=2)d[c]=f[l]<<4|f[l+1]};e.nibblesToBytes=r;const i=f=>{let d=0;(0,e.hasTerminator)(f)&&(d=1,f=f.subarray(0,f.length-1));const c=new Uint8Array(f.length/2+1);return c[0]=d<<5,(f.length&1)===1&&(c[0]|=16,c[0]|=f[0],f=f.subarray(1)),(0,e.nibblesToBytes)(f,c.subarray(1)),c};e.nibblesToCompactBytes=i;const a=f=>{const d=f.length*2+1,c=new Uint8Array(d);for(let l=0;l<f.length;l++){const h=f[l];c[l*2]=h/16,c[l*2+1]=h%16}return c[d-1]=16,c};e.bytesToNibbles=a;const s=f=>{if(f.length===0)return f;let d=(0,e.bytesToNibbles)(f);d[0]<2&&(d=d.subarray(0,d.length-1));const c=2-(d[0]&1);return d.subarray(c)};e.compactBytesToNibbles=s})(zw);var _u={};Object.defineProperty(_u,"__esModule",{value:!0});_u.AsyncEventEmitter=void 0;const PD=ee.requireEvents();async function CD(e,t,r){let i;for await(const a of t)try{a.length<2?a.call(e,r):await new Promise((s,f)=>{a.call(e,r,d=>{d?f(d):s()})})}catch(s){i=s}if(i)throw i}class LD extends PD.EventEmitter{emit(t,...r){let[i,a]=r;const s=this;let f=s._events[t]??[];return a===void 0&&typeof i=="function"&&(a=i,i=void 0),(t==="newListener"||t==="removeListener")&&(i={event:i,fn:a},a=void 0),f=Array.isArray(f)?f:[f],CD(s,f.slice(),i).then(a).catch(a),s.listenerCount(t)>0}once(t,r){const i=this;let a;if(typeof r!="function")throw new TypeError("listener must be a function");return r.length>=2?a=function(s,f){i.removeListener(t,a),r(s,f)}:a=function(s){i.removeListener(t,a),r(s,a)},i.on(t,a),i}first(t,r){let i=this._events[t]??[];if(typeof r!="function")throw new TypeError("listener must be a function");return Array.isArray(i)||(this._events[t]=i=[i]),i.unshift(r),this}before(t,r,i){return this.beforeOrAfter(t,r,i)}after(t,r,i){return this.beforeOrAfter(t,r,i,"after")}beforeOrAfter(t,r,i,a){let s=this._events[t]??[],f,d;const c=a==="after"?1:0;if(typeof i!="function")throw new TypeError("listener must be a function");if(typeof r!="function")throw new TypeError("target must be a function");for(Array.isArray(s)||(this._events[t]=s=[s]),d=s.length,f=s.length;f--;)if(s[f]===r){d=f+c;break}return s.splice(d,0,i),this}on(t,r){return super.on(t,r)}addListener(t,r){return super.addListener(t,r)}prependListener(t,r){return super.prependListener(t,r)}prependOnceListener(t,r){return super.prependOnceListener(t,r)}removeAllListeners(t){return super.removeAllListeners(t)}removeListener(t,r){return super.removeListener(t,r)}eventNames(){return super.eventNames()}listeners(t){return super.listeners(t)}listenerCount(t){return super.listenerCount(t)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(t){return super.setMaxListeners(t)}}_u.AsyncEventEmitter=LD;var bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.Lock=void 0;class ND{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise(t=>this.promiseResolverQueue.push(t))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(this.permits===1&&this.promiseResolverQueue.length>0){this.permits-=1;const t=this.promiseResolverQueue.shift();t&&t(!0)}}}bu.Lock=ND;var xo={},Zi={},ad={},sd={exports:{}},fd={},J_;function Gw(){return J_||(J_=1,function(e){e.fetch=a(ee.commonjsGlobal.fetch)&&a(ee.commonjsGlobal.ReadableStream),e.writableStream=a(ee.commonjsGlobal.WritableStream),e.abortController=a(ee.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(ee.commonjsGlobal.XMLHttpRequest){t=new ee.commonjsGlobal.XMLHttpRequest;try{t.open("GET",ee.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function i(s){var f=r();if(!f)return!1;try{return f.responseType=s,f.responseType===s}catch{}return!1}e.arraybuffer=e.fetch||i("arraybuffer"),e.msstream=!e.fetch&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?a(r().overrideMimeType):!1);function a(s){return typeof s=="function"}t=null}(fd)),fd}var ff={},X_;function Vw(){if(X_)return ff;X_=1;var e=Gw(),t=ee.requireInherits_browser(),r=Do,i=ff.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=ff.IncomingMessage=function(s,f,d,c){var l=this;if(r.Readable.call(l),l._mode=d,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){ee.dist.process.nextTick(function(){l.emit("close")})}),d==="fetch"){let k=function(){_.read().then(function(E){if(!l._destroyed){if(c(E.done),E.done){l.push(null);return}l.push(ee.dist.Buffer.from(E.value)),k()}}).catch(function(E){c(!0),l._destroyed||l.emit("error",E)})};if(l._fetchResponse=f,l.url=f.url,l.statusCode=f.status,l.statusMessage=f.statusText,f.headers.forEach(function(E,I){l.headers[I.toLowerCase()]=E,l.rawHeaders.push(I,E)}),e.writableStream){var h=new WritableStream({write:function(E){return c(!1),new Promise(function(I,v){l._destroyed?v():l.push(ee.dist.Buffer.from(E))?I():l._resumeFetch=I})},close:function(){c(!0),l._destroyed||l.push(null)},abort:function(E){c(!0),l._destroyed||l.emit("error",E)}});try{f.body.pipeTo(h).catch(function(E){c(!0),l._destroyed||l.emit("error",E)});return}catch{}}var _=f.body.getReader();k()}else{l._xhr=s,l._pos=0,l.url=s.responseURL,l.statusCode=s.status,l.statusMessage=s.statusText;var b=s.getAllResponseHeaders().split(/\r?\n/);if(b.forEach(function(k){var E=k.match(/^([^:]+):\s*(.*)/);if(E){var I=E[1].toLowerCase();I==="set-cookie"?(l.headers[I]===void 0&&(l.headers[I]=[]),l.headers[I].push(E[2])):l.headers[I]!==void 0?l.headers[I]+=", "+E[2]:l.headers[I]=E[2],l.rawHeaders.push(E[1],E[2])}}),l._charset="x-user-defined",!e.overrideMimeType){var y=l.rawHeaders["mime-type"];if(y){var T=y.match(/;\s*charset=([^;])(;|$)/);T&&(l._charset=T[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};return t(a,r.Readable),a.prototype._read=function(){var s=this,f=s._resumeFetch;f&&(s._resumeFetch=null,f())},a.prototype._onXHRProgress=function(s){var f=this,d=f._xhr,c=null;switch(f._mode){case"text":if(c=d.responseText,c.length>f._pos){var l=c.substr(f._pos);if(f._charset==="x-user-defined"){for(var h=ee.dist.Buffer.alloc(l.length),_=0;_<l.length;_++)h[_]=l.charCodeAt(_)&255;f.push(h)}else f.push(l,f._charset);f._pos=c.length}break;case"arraybuffer":if(d.readyState!==i.DONE||!d.response)break;c=d.response,f.push(ee.dist.Buffer.from(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=d.response,d.readyState!==i.LOADING||!c)break;f.push(ee.dist.Buffer.from(new Uint8Array(c)));break;case"ms-stream":if(c=d.response,d.readyState!==i.LOADING)break;var b=new ee.commonjsGlobal.MSStreamReader;b.onprogress=function(){b.result.byteLength>f._pos&&(f.push(ee.dist.Buffer.from(new Uint8Array(b.result.slice(f._pos)))),f._pos=b.result.byteLength)},b.onload=function(){s(!0),f.push(null)},b.readAsArrayBuffer(c);break}f._xhr.readyState===i.DONE&&f._mode!=="ms-stream"&&(s(!0),f.push(null))},ff}var Y_;function BD(){if(Y_)return sd.exports;Y_=1;var e=Gw(),t=ee.requireInherits_browser(),r=Vw(),i=Do,a=r.IncomingMessage,s=r.readyStates;function f(h,_){return e.fetch&&_?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&h?"arraybuffer":"text"}var d=sd.exports=function(h){var _=this;i.Writable.call(_),_._opts=h,_._body=[],_._headers={},h.auth&&_.setHeader("Authorization","Basic "+ee.dist.Buffer.from(h.auth).toString("base64")),Object.keys(h.headers).forEach(function(T){_.setHeader(T,h.headers[T])});var b,y=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!e.abortController)y=!1,b=!0;else if(h.mode==="prefer-streaming")b=!1;else if(h.mode==="allow-wrong-content-type")b=!e.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")b=!0;else throw new Error("Invalid value for opts.mode");_._mode=f(b,y),_._fetchTimer=null,_._socketTimeout=null,_._socketTimer=null,_.on("finish",function(){_._onFinish()})};t(d,i.Writable),d.prototype.setHeader=function(h,_){var b=this,y=h.toLowerCase();l.indexOf(y)===-1&&(b._headers[y]={name:h,value:_})},d.prototype.getHeader=function(h){var _=this._headers[h.toLowerCase()];return _?_.value:null},d.prototype.removeHeader=function(h){var _=this;delete _._headers[h.toLowerCase()]},d.prototype._onFinish=function(){var h=this;if(!h._destroyed){var _=h._opts;"timeout"in _&&_.timeout!==0&&h.setTimeout(_.timeout);var b=h._headers,y=null;_.method!=="GET"&&_.method!=="HEAD"&&(y=new Blob(h._body,{type:(b["content-type"]||{}).value||""}));var T=[];if(Object.keys(b).forEach(function(v){var w=b[v].name,S=b[v].value;Array.isArray(S)?S.forEach(function(H){T.push([w,H])}):T.push([w,S])}),h._mode==="fetch"){var k=null;if(e.abortController){var E=new AbortController;k=E.signal,h._fetchAbortController=E,"requestTimeout"in _&&_.requestTimeout!==0&&(h._fetchTimer=ee.commonjsGlobal.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},_.requestTimeout))}ee.commonjsGlobal.fetch(h._opts.url,{method:h._opts.method,headers:T,body:y||void 0,mode:"cors",credentials:_.withCredentials?"include":"same-origin",signal:k}).then(function(v){h._fetchResponse=v,h._resetTimers(!1),h._connect()},function(v){h._resetTimers(!0),h._destroyed||h.emit("error",v)})}else{var I=h._xhr=new ee.commonjsGlobal.XMLHttpRequest;try{I.open(h._opts.method,h._opts.url,!0)}catch(v){ee.dist.process.nextTick(function(){h.emit("error",v)});return}"responseType"in I&&(I.responseType=h._mode),"withCredentials"in I&&(I.withCredentials=!!_.withCredentials),h._mode==="text"&&"overrideMimeType"in I&&I.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in _&&(I.timeout=_.requestTimeout,I.ontimeout=function(){h.emit("requestTimeout")}),T.forEach(function(v){I.setRequestHeader(v[0],v[1])}),h._response=null,I.onreadystatechange=function(){switch(I.readyState){case s.LOADING:case s.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(I.onprogress=function(){h._onXHRProgress()}),I.onerror=function(){h._destroyed||(h._resetTimers(!0),h.emit("error",new Error("XHR error")))};try{I.send(y)}catch(v){ee.dist.process.nextTick(function(){h.emit("error",v)});return}}}};function c(h){try{var _=h.status;return _!==null&&_!==0}catch{return!1}}d.prototype._onXHRProgress=function(){var h=this;h._resetTimers(!1),!(!c(h._xhr)||h._destroyed)&&(h._response||h._connect(),h._response._onXHRProgress(h._resetTimers.bind(h)))},d.prototype._connect=function(){var h=this;h._destroyed||(h._response=new a(h._xhr,h._fetchResponse,h._mode,h._resetTimers.bind(h)),h._response.on("error",function(_){h.emit("error",_)}),h.emit("response",h._response))},d.prototype._write=function(h,_,b){var y=this;y._body.push(h),b()},d.prototype._resetTimers=function(h){var _=this;ee.commonjsGlobal.clearTimeout(_._socketTimer),_._socketTimer=null,h?(ee.commonjsGlobal.clearTimeout(_._fetchTimer),_._fetchTimer=null):_._socketTimeout&&(_._socketTimer=ee.commonjsGlobal.setTimeout(function(){_.emit("timeout")},_._socketTimeout))},d.prototype.abort=d.prototype.destroy=function(h){var _=this;_._destroyed=!0,_._resetTimers(!0),_._response&&(_._response._destroyed=!0),_._xhr?_._xhr.abort():_._fetchAbortController&&_._fetchAbortController.abort(),h&&_.emit("error",h)},d.prototype.end=function(h,_,b){var y=this;typeof h=="function"&&(b=h,h=void 0),i.Writable.prototype.end.call(y,h,_,b)},d.prototype.setTimeout=function(h,_){var b=this;_&&b.once("timeout",_),b._socketTimeout=h,b._resetTimers(!1)},d.prototype.flushHeaders=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return sd.exports}var ud,Q_;function $D(){return Q_||(Q_=1,ud={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),ud}var uf={exports:{}},Sa={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Sa.exports;var eb;function xD(){return eb||(eb=1,function(e,t){(function(r){var i=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,s=typeof ee.commonjsGlobal=="object"&&ee.commonjsGlobal;(s.global===s||s.window===s||s.self===s)&&(r=s);var f,d=2147483647,c=36,l=1,h=26,_=38,b=700,y=72,T=128,k="-",E=/^xn--/,I=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-l,H=Math.floor,Q=String.fromCharCode,ie;function he(x){throw new RangeError(w[x])}function le(x,Y){for(var B=x.length,j=[];B--;)j[B]=Y(x[B]);return j}function Ee(x,Y){var B=x.split("@"),j="";B.length>1&&(j=B[0]+"@",x=B[1]),x=x.replace(v,".");var $=x.split("."),U=le($,Y).join(".");return j+U}function ve(x){for(var Y=[],B=0,j=x.length,$,U;B<j;)$=x.charCodeAt(B++),$>=55296&&$<=56319&&B<j?(U=x.charCodeAt(B++),(U&64512)==56320?Y.push((($&1023)<<10)+(U&1023)+65536):(Y.push($),B--)):Y.push($);return Y}function m(x){return le(x,function(Y){var B="";return Y>65535&&(Y-=65536,B+=Q(Y>>>10&1023|55296),Y=56320|Y&1023),B+=Q(Y),B}).join("")}function O(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:c}function P(x,Y){return x+22+75*(x<26)-((Y!=0)<<5)}function Z(x,Y,B){var j=0;for(x=B?H(x/b):x>>1,x+=H(x/Y);x>S*h>>1;j+=c)x=H(x/S);return H(j+(S+1)*x/(x+_))}function ae(x){var Y=[],B=x.length,j,$=0,U=T,G=y,de,oe,ue,Se,Be,Me,z,J,ge;for(de=x.lastIndexOf(k),de<0&&(de=0),oe=0;oe<de;++oe)x.charCodeAt(oe)>=128&&he("not-basic"),Y.push(x.charCodeAt(oe));for(ue=de>0?de+1:0;ue<B;){for(Se=$,Be=1,Me=c;ue>=B&&he("invalid-input"),z=O(x.charCodeAt(ue++)),(z>=c||z>H((d-$)/Be))&&he("overflow"),$+=z*Be,J=Me<=G?l:Me>=G+h?h:Me-G,!(z<J);Me+=c)ge=c-J,Be>H(d/ge)&&he("overflow"),Be*=ge;j=Y.length+1,G=Z($-Se,j,Se==0),H($/j)>d-U&&he("overflow"),U+=H($/j),$%=j,Y.splice($++,0,U)}return m(Y)}function X(x){var Y,B,j,$,U,G,de,oe,ue,Se,Be,Me=[],z,J,ge,Ne;for(x=ve(x),z=x.length,Y=T,B=0,U=y,G=0;G<z;++G)Be=x[G],Be<128&&Me.push(Q(Be));for(j=$=Me.length,$&&Me.push(k);j<z;){for(de=d,G=0;G<z;++G)Be=x[G],Be>=Y&&Be<de&&(de=Be);for(J=j+1,de-Y>H((d-B)/J)&&he("overflow"),B+=(de-Y)*J,Y=de,G=0;G<z;++G)if(Be=x[G],Be<Y&&++B>d&&he("overflow"),Be==Y){for(oe=B,ue=c;Se=ue<=U?l:ue>=U+h?h:ue-U,!(oe<Se);ue+=c)Ne=oe-Se,ge=c-Se,Me.push(Q(P(Se+Ne%ge,0))),oe=H(Ne/ge);Me.push(Q(P(oe,0))),U=Z(B,J,j==$),B=0,++j}++B,++Y}return Me.join("")}function ne(x){return Ee(x,function(Y){return E.test(Y)?ae(Y.slice(4).toLowerCase()):Y})}function F(x){return Ee(x,function(Y){return I.test(Y)?"xn--"+X(Y):Y})}if(f={version:"1.4.1",ucs2:{decode:ve,encode:m},decode:ae,encode:X,toASCII:F,toUnicode:ne},i&&a)if(e.exports==i)a.exports=f;else for(ie in f)f.hasOwnProperty(ie)&&(i[ie]=f[ie]);else r.punycode=f})(ee.commonjsGlobal)}(Sa,Sa.exports)),Sa.exports}var cd,tb;function mu(){if(tb)return cd;tb=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,i=e&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=a&&s&&typeof s.get=="function"?s.get:null,d=a&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,_=h?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,y=b?WeakRef.prototype.deref:null,T=Boolean.prototype.valueOf,k=Object.prototype.toString,E=Function.prototype.toString,I=String.prototype.match,v=String.prototype.slice,w=String.prototype.replace,S=String.prototype.toUpperCase,H=String.prototype.toLowerCase,Q=RegExp.prototype.test,ie=Array.prototype.concat,he=Array.prototype.join,le=Array.prototype.slice,Ee=Math.floor,ve=typeof BigInt=="function"?BigInt.prototype.valueOf:null,m=Object.getOwnPropertySymbols,O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,P=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||!0)?Symbol.toStringTag:null,ae=Object.prototype.propertyIsEnumerable,X=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(C){return C.__proto__}:null);function ne(C,K){if(C===1/0||C===-1/0||C!==C||C&&C>-1e3&&C<1e3||Q.call(/e/,K))return K;var A=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof C=="number"){var Oe=C<0?-Ee(-C):Ee(C);if(Oe!==C){var Ke=String(Oe),p=v.call(K,Ke.length+1);return w.call(Ke,A,"$&_")+"."+w.call(w.call(p,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(K,A,"$&_")}var F=ee.require$$0,x=F.custom,Y=z(x)?x:null,B={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};cd=function C(K,A,Oe,Ke){var p=A||{};if(Ne(p,"quoteStyle")&&!Ne(B,p.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ne(p,"maxStringLength")&&(typeof p.maxStringLength=="number"?p.maxStringLength<0&&p.maxStringLength!==1/0:p.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _e=Ne(p,"customInspect")?p.customInspect:!0;if(typeof _e!="boolean"&&_e!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ne(p,"indent")&&p.indent!==null&&p.indent!==" "&&!(parseInt(p.indent,10)===p.indent&&p.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ne(p,"numericSeparator")&&typeof p.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ie=p.numericSeparator;if(typeof K>"u")return"undefined";if(K===null)return"null";if(typeof K=="boolean")return K?"true":"false";if(typeof K=="string")return De(K,p);if(typeof K=="number"){if(K===0)return 1/0/K>0?"0":"-0";var L=String(K);return Ie?ne(K,L):L}if(typeof K=="bigint"){var fe=String(K)+"n";return Ie?ne(K,fe):fe}var Ae=typeof p.depth>"u"?5:p.depth;if(typeof Oe>"u"&&(Oe=0),Oe>=Ae&&Ae>0&&typeof K=="object")return G(K)?"[Array]":"[Object]";var Je=Re(p,Oe);if(typeof Ke>"u")Ke=[];else if(me(Ke,K)>=0)return"[Circular]";function N(Gt,Vt,$n){if(Vt&&(Ke=le.call(Ke),Ke.push(Vt)),$n){var yn={depth:p.depth};return Ne(p,"quoteStyle")&&(yn.quoteStyle=p.quoteStyle),C(Gt,yn,Oe+1,Ke)}return C(Gt,p,Oe+1,Ke)}if(typeof K=="function"&&!oe(K)){var W=je(K),Ce=qe(K,N);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Ce.length>0?" { "+he.call(Ce,", ")+" }":"")}if(z(K)){var ze=P?w.call(String(K),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(K);return typeof K=="object"&&!P?Ue(ze):ze}if(ce(K)){for(var Ge="<"+H.call(String(K.nodeName)),rt=K.attributes||[],ot=0;ot<rt.length;ot++)Ge+=" "+rt[ot].name+"="+$(U(rt[ot].value),"double",p);return Ge+=">",K.childNodes&&K.childNodes.length&&(Ge+="..."),Ge+="</"+H.call(String(K.nodeName))+">",Ge}if(G(K)){if(K.length===0)return"[]";var bt=qe(K,N);return Je&&!D(bt)?"["+$e(bt,Je)+"]":"[ "+he.call(bt,", ")+" ]"}if(ue(K)){var ht=qe(K,N);return!("cause"in Error.prototype)&&"cause"in K&&!ae.call(K,"cause")?"{ ["+String(K)+"] "+he.call(ie.call("[cause]: "+N(K.cause),ht),", ")+" }":ht.length===0?"["+String(K)+"]":"{ ["+String(K)+"] "+he.call(ht,", ")+" }"}if(typeof K=="object"&&_e){if(Y&&typeof K[Y]=="function"&&F)return F(K,{depth:Ae-Oe});if(_e!=="symbol"&&typeof K.inspect=="function")return K.inspect()}if(Ye(K)){var ar=[];return i&&i.call(K,function(Gt,Vt){ar.push(N(Vt,K,!0)+" => "+N(Gt,K))}),Xe("Map",r.call(K),ar,Je)}if(xe(K)){var ur=[];return d&&d.call(K,function(Gt){ur.push(N(Gt,K))}),Xe("Set",f.call(K),ur,Je)}if(et(K))return ke("WeakMap");if(M(K))return ke("WeakSet");if(re(K))return ke("WeakRef");if(Be(K))return Ue(N(Number(K)));if(J(K))return Ue(N(ve.call(K)));if(Me(K))return Ue(T.call(K));if(Se(K))return Ue(N(String(K)));if(typeof window<"u"&&K===window)return"{ [object Window] }";if(typeof globalThis<"u"&&K===globalThis||typeof ee.commonjsGlobal<"u"&&K===ee.commonjsGlobal)return"{ [object globalThis] }";if(!de(K)&&!oe(K)){var wt=qe(K,N),Dt=X?X(K)===Object.prototype:K instanceof Object||K.constructor===Object,St=K instanceof Object?"":"null prototype",Tt=!Dt&&Z&&Object(K)===K&&Z in K?v.call(Te(K),8,-1):St?"Object":"",qt=Dt||typeof K.constructor!="function"?"":K.constructor.name?K.constructor.name+" ":"",tr=qt+(Tt||St?"["+he.call(ie.call([],Tt||[],St||[]),": ")+"] ":"");return wt.length===0?tr+"{}":Je?tr+"{"+$e(wt,Je)+"}":tr+"{ "+he.call(wt,", ")+" }"}return String(K)};function $(C,K,A){var Oe=A.quoteStyle||K,Ke=B[Oe];return Ke+C+Ke}function U(C){return w.call(String(C),/"/g,"&quot;")}function G(C){return Te(C)==="[object Array]"&&(!Z||!(typeof C=="object"&&Z in C))}function de(C){return Te(C)==="[object Date]"&&(!Z||!(typeof C=="object"&&Z in C))}function oe(C){return Te(C)==="[object RegExp]"&&(!Z||!(typeof C=="object"&&Z in C))}function ue(C){return Te(C)==="[object Error]"&&(!Z||!(typeof C=="object"&&Z in C))}function Se(C){return Te(C)==="[object String]"&&(!Z||!(typeof C=="object"&&Z in C))}function Be(C){return Te(C)==="[object Number]"&&(!Z||!(typeof C=="object"&&Z in C))}function Me(C){return Te(C)==="[object Boolean]"&&(!Z||!(typeof C=="object"&&Z in C))}function z(C){if(P)return C&&typeof C=="object"&&C instanceof Symbol;if(typeof C=="symbol")return!0;if(!C||typeof C!="object"||!O)return!1;try{return O.call(C),!0}catch{}return!1}function J(C){if(!C||typeof C!="object"||!ve)return!1;try{return ve.call(C),!0}catch{}return!1}var ge=Object.prototype.hasOwnProperty||function(C){return C in this};function Ne(C,K){return ge.call(C,K)}function Te(C){return k.call(C)}function je(C){if(C.name)return C.name;var K=I.call(E.call(C),/^function\s*([\w$]+)/);return K?K[1]:null}function me(C,K){if(C.indexOf)return C.indexOf(K);for(var A=0,Oe=C.length;A<Oe;A++)if(C[A]===K)return A;return-1}function Ye(C){if(!r||!C||typeof C!="object")return!1;try{r.call(C);try{f.call(C)}catch{return!0}return C instanceof Map}catch{}return!1}function et(C){if(!l||!C||typeof C!="object")return!1;try{l.call(C,l);try{_.call(C,_)}catch{return!0}return C instanceof WeakMap}catch{}return!1}function re(C){if(!y||!C||typeof C!="object")return!1;try{return y.call(C),!0}catch{}return!1}function xe(C){if(!f||!C||typeof C!="object")return!1;try{f.call(C);try{r.call(C)}catch{return!0}return C instanceof Set}catch{}return!1}function M(C){if(!_||!C||typeof C!="object")return!1;try{_.call(C,_);try{l.call(C,l)}catch{return!0}return C instanceof WeakSet}catch{}return!1}function ce(C){return!C||typeof C!="object"?!1:typeof HTMLElement<"u"&&C instanceof HTMLElement?!0:typeof C.nodeName=="string"&&typeof C.getAttribute=="function"}function De(C,K){if(C.length>K.maxStringLength){var A=C.length-K.maxStringLength,Oe="... "+A+" more character"+(A>1?"s":"");return De(v.call(C,0,K.maxStringLength),K)+Oe}var Ke=j[K.quoteStyle||"single"];Ke.lastIndex=0;var p=w.call(w.call(C,Ke,"\\$1"),/[\x00-\x1f]/g,Ve);return $(p,"single",K)}function Ve(C){var K=C.charCodeAt(0),A={8:"b",9:"t",10:"n",12:"f",13:"r"}[K];return A?"\\"+A:"\\x"+(K<16?"0":"")+S.call(K.toString(16))}function Ue(C){return"Object("+C+")"}function ke(C){return C+" { ? }"}function Xe(C,K,A,Oe){var Ke=Oe?$e(A,Oe):he.call(A,", ");return C+" ("+K+") {"+Ke+"}"}function D(C){for(var K=0;K<C.length;K++)if(me(C[K],`
71
+ `));var Be=new h({actual:$,expected:U,message:G,operator:oe,stackStartFn:de});throw Be.generatedMessage=Se,Be}}ie.match=function $(U,G,de){B(U,G,de,$,"match")},ie.doesNotMatch=function $(U,G,de){B(U,G,de,$,"doesNotMatch")};function j(){for(var $=arguments.length,U=new Array($),G=0;G<$;G++)U[G]=arguments[G];ve.apply(void 0,[j,U.length].concat(U))}return ie.strict=E(j,ie,{equal:ie.strictEqual,deepEqual:ie.deepStrictEqual,notEqual:ie.notStrictEqual,notDeepEqual:ie.notDeepStrictEqual}),ie.strict.strict=ie.strict,Mc.exports}var d2={exports:{}},Dl={exports:{}},Jt={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},vm={exports:{}},pa={exports:{}},L0;function Oa(){if(L0)return pa.exports;L0=1;const{AbortController:e,AbortSignal:t}=typeof self<"u"?self:typeof window<"u"?window:void 0;return pa.exports=e,pa.exports.AbortSignal=t,pa.exports.default=e,pa.exports}(function(e){const t=ee.bufferPolyfill,{kResistStopPropagation:r,SymbolDispose:i}=Jt,a=globalThis.AbortSignal||Oa().AbortSignal,s=globalThis.AbortController||Oa().AbortController,u=Object.getPrototypeOf(async function(){}).constructor,d=globalThis.Blob||t.Blob,c=typeof d<"u"?function(_){return _ instanceof d}:function(_){return!1},l=(b,_)=>{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new ERR_INVALID_ARG_TYPE(_,"AbortSignal",b)},h=(b,_)=>{if(typeof b!="function")throw new ERR_INVALID_ARG_TYPE(_,"Function",b)};class g extends Error{constructor(_){if(!Array.isArray(_))throw new TypeError(`Expected input to be an Array, got ${typeof _}`);let T="";for(let k=0;k<_.length;k++)T+=` ${_[k].stack}
72
+ `;super(T),this.name="AggregateError",this.errors=_}}e.exports={AggregateError:g,kEmptyObject:Object.freeze({}),once(b){let _=!1;return function(...T){_||(_=!0,b.apply(this,T))}},createDeferredPromise:function(){let b,_;return{promise:new Promise((k,E)=>{b=k,_=E}),resolve:b,reject:_}},promisify(b){return new Promise((_,T)=>{b((k,...E)=>k?T(k):_(...E))})},debuglog(){return function(){}},format(b,..._){return b.replace(/%([sdifj])/g,function(...[T,k]){const E=_.shift();return k==="f"?E.toFixed(6):k==="j"?JSON.stringify(E):k==="s"&&typeof E=="object"?`${E.constructor!==Object?E.constructor.name:""} {}`.trim():E.toString()})},inspect(b){switch(typeof b){case"string":if(b.includes("'"))if(b.includes('"')){if(!b.includes("`")&&!b.includes("${"))return`\`${b}\``}else return`"${b}"`;return`'${b}'`;case"number":return isNaN(b)?"NaN":Object.is(b,-0)?String(b):b;case"bigint":return`${String(b)}n`;case"boolean":case"undefined":return String(b);case"object":return"{}"}},types:{isAsyncFunction(b){return b instanceof u},isArrayBufferView(b){return ArrayBuffer.isView(b)}},isBlob:c,deprecate(b,_){return b},addAbortListener:ee.requireEvents().addAbortListener||function(_,T){if(_===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",_);l(_,"signal"),h(T,"listener");let k;return _.aborted?queueMicrotask(()=>T()):(_.addEventListener("abort",T,{__proto__:null,once:!0,[r]:!0}),k=()=>{_.removeEventListener("abort",T)}),{__proto__:null,[i](){var E;(E=k)===null||E===void 0||E()}}},AbortSignalAny:a.any||function(_){if(_.length===1)return _[0];const T=new s,k=()=>T.abort();return _.forEach(E=>{l(E,"signals"),E.addEventListener("abort",k,{once:!0})}),T.signal.addEventListener("abort",()=>{_.forEach(E=>E.removeEventListener("abort",k))},{once:!0}),T.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(vm);var Ir=vm.exports,Sh={};const{format:h2,inspect:wu,AggregateError:p2}=Ir,g2=globalThis.AggregateError||p2,y2=Symbol("kIsNodeError"),_2=["string","function","number","object","Function","Object","boolean","bigint","symbol"],b2=/^([A-Z][a-z0-9]*)+$/,m2="__node_internal_",xu={};function Hi(e,t){if(!e)throw new xu.ERR_INTERNAL_ASSERTION(t)}function N0(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function v2(e,t,r){if(typeof t=="function")return Hi(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return Hi(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:h2(t,...r)}function dr(e,t,r){r||(r=Error);class i extends r{constructor(...s){super(v2(e,t,s))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[y2]=!0,xu[e]=i}function B0(e){const t=m2+e.name;return Object.defineProperty(e,"name",{value:t}),e}function w2(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new g2([t,e],t.message);return r.code=t.code,r}return e||t}let E2=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new xu.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};dr("ERR_ASSERTION","%s",Error);dr("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Hi(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const a=[],s=[],u=[];for(const c of t)Hi(typeof c=="string","All expected entries have to be of type string"),_2.includes(c)?a.push(c.toLowerCase()):b2.test(c)?s.push(c):(Hi(c!=="object",'The value "object" should be written as "Object"'),u.push(c));if(s.length>0){const c=a.indexOf("object");c!==-1&&(a.splice(a,c,1),s.push("Object"))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{const c=a.pop();i+=`one of type ${a.join(", ")}, or ${c}`}}(s.length>0||u.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const c=s.pop();i+=`an instance of ${s.join(", ")}, or ${c}`}}u.length>0&&(i+=" or ")}switch(u.length){case 0:break;case 1:u[0].toLowerCase()!==u[0]&&(i+="an "),i+=`${u[0]}`;break;case 2:i+=`one of ${u[0]} or ${u[1]}`;break;default:{const c=u.pop();i+=`one of ${u.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var d;if((d=r.constructor)!==null&&d!==void 0&&d.name)i+=`. Received an instance of ${r.constructor.name}`;else{const c=wu(r,{depth:-1});i+=`. Received ${c}`}}else{let c=wu(r,{colors:!1});c.length>25&&(c=`${c.slice(0,25)}...`),i+=`. Received type ${typeof r} (${c})`}return i},TypeError);dr("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=wu(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);dr("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const a=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${a}.`},TypeError);dr("ERR_MISSING_ARGS",(...e)=>{Hi(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);dr("ERR_OUT_OF_RANGE",(e,t,r)=>{Hi(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=N0(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=N0(i)),i+="n"):i=wu(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);dr("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);dr("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);dr("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);dr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);dr("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);dr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);dr("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);dr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);dr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);dr("ERR_STREAM_WRITE_AFTER_END","write after end",Error);dr("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Br={AbortError:E2,aggregateTwoErrors:B0(w2),hideStackFrames:B0,codes:xu};const{ArrayIsArray:Ah,ArrayPrototypeIncludes:wm,ArrayPrototypeJoin:Em,ArrayPrototypeMap:S2,NumberIsInteger:Rh,NumberIsNaN:A2,NumberMAX_SAFE_INTEGER:R2,NumberMIN_SAFE_INTEGER:I2,NumberParseInt:T2,ObjectPrototypeHasOwnProperty:O2,RegExpPrototypeExec:Sm,String:P2,StringPrototypeToUpperCase:C2,StringPrototypeTrim:L2}=Jt,{hideStackFrames:on,codes:{ERR_SOCKET_BAD_PORT:N2,ERR_INVALID_ARG_TYPE:wr,ERR_INVALID_ARG_VALUE:Mo,ERR_OUT_OF_RANGE:Gi,ERR_UNKNOWN_SIGNAL:$0}}=Br,{normalizeEncoding:B2}=Ir,{isAsyncFunction:$2,isArrayBufferView:x2}=Ir.types,x0={};function D2(e){return e===(e|0)}function M2(e){return e===e>>>0}const F2=/^[0-7]+$/,j2="must be a 32-bit unsigned integer or an octal string";function k2(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(Sm(F2,e)===null)throw new Mo(t,e,j2);e=T2(e,8)}return Am(e,t),e}const U2=on((e,t,r=I2,i=R2)=>{if(typeof e!="number")throw new wr(t,"number",e);if(!Rh(e))throw new Gi(t,"an integer",e);if(e<r||e>i)throw new Gi(t,`>= ${r} && <= ${i}`,e)}),q2=on((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new wr(t,"number",e);if(!Rh(e))throw new Gi(t,"an integer",e);if(e<r||e>i)throw new Gi(t,`>= ${r} && <= ${i}`,e)}),Am=on((e,t,r=!1)=>{if(typeof e!="number")throw new wr(t,"number",e);if(!Rh(e))throw new Gi(t,"an integer",e);const i=r?1:0,a=4294967295;if(e<i||e>a)throw new Gi(t,`>= ${i} && <= ${a}`,e)});function Ih(e,t){if(typeof e!="string")throw new wr(t,"string",e)}function H2(e,t,r=void 0,i){if(typeof e!="number")throw new wr(t,"number",e);if(r!=null&&e<r||i!=null&&e>i||(r!=null||i!=null)&&A2(e))throw new Gi(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const W2=on((e,t,r)=>{if(!wm(r,e)){const a="must be one of: "+Em(S2(r,s=>typeof s=="string"?`'${s}'`:P2(s)),", ");throw new Mo(t,e,a)}});function Rm(e,t){if(typeof e!="boolean")throw new wr(t,"boolean",e)}function Ml(e,t,r){return e==null||!O2(e,t)?r:e[t]}const z2=on((e,t,r=null)=>{const i=Ml(r,"allowArray",!1),a=Ml(r,"allowFunction",!1);if(!Ml(r,"nullable",!1)&&e===null||!i&&Ah(e)||typeof e!="object"&&(!a||typeof e!="function"))throw new wr(t,"Object",e)}),G2=on((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new wr(t,"a dictionary",e)}),Du=on((e,t,r=0)=>{if(!Ah(e))throw new wr(t,"Array",e);if(e.length<r){const i=`must be longer than ${r}`;throw new Mo(t,e,i)}});function V2(e,t){Du(e,t);for(let r=0;r<e.length;r++)Ih(e[r],`${t}[${r}]`)}function Z2(e,t){Du(e,t);for(let r=0;r<e.length;r++)Rm(e[r],`${t}[${r}]`)}function K2(e,t){Du(e,t);for(let r=0;r<e.length;r++){const i=e[r],a=`${t}[${r}]`;if(i==null)throw new wr(a,"AbortSignal",i);Im(i,a)}}function J2(e,t="signal"){if(Ih(e,t),x0[e]===void 0)throw x0[C2(e)]!==void 0?new $0(e+" (signals must use all capital letters)"):new $0(e)}const X2=on((e,t="buffer")=>{if(!x2(e))throw new wr(t,["Buffer","TypedArray","DataView"],e)});function Y2(e,t){const r=B2(t),i=e.length;if(r==="hex"&&i%2!==0)throw new Mo("encoding",t,`is invalid for data of length ${i}`)}function Q2(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&L2(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new N2(t,e,r);return e|0}const Im=on((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new wr(t,"AbortSignal",e)}),eP=on((e,t)=>{if(typeof e!="function")throw new wr(t,"Function",e)}),tP=on((e,t)=>{if(typeof e!="function"||$2(e))throw new wr(t,"Function",e)}),rP=on((e,t)=>{if(e!==void 0)throw new wr(t,"undefined",e)});function nP(e,t,r){if(!wm(r,e))throw new wr(t,`('${Em(r,"|")}')`,e)}const iP=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function D0(e,t){if(typeof e>"u"||!Sm(iP,e))throw new Mo(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function oP(e){if(typeof e=="string")return D0(e,"hints"),e;if(Ah(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i<t;i++){const a=e[i];D0(a,"hints"),r+=a,i!==t-1&&(r+=", ")}return r}throw new Mo("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}var Fa={isInt32:D2,isUint32:M2,parseFileMode:k2,validateArray:Du,validateStringArray:V2,validateBooleanArray:Z2,validateAbortSignalArray:K2,validateBoolean:Rm,validateBuffer:X2,validateDictionary:G2,validateEncoding:Y2,validateFunction:eP,validateInt32:q2,validateInteger:U2,validateNumber:H2,validateObject:z2,validateOneOf:W2,validatePlainFunction:tP,validatePort:Q2,validateSignalName:J2,validateString:Ih,validateUint32:Am,validateUndefined:rP,validateUnion:nP,validateAbortSignal:Im,validateLinkHeaderValue:oP},Th={exports:{}};const{SymbolAsyncIterator:M0,SymbolIterator:F0,SymbolFor:Ki}=Jt,Tm=Ki("nodejs.stream.destroyed"),Om=Ki("nodejs.stream.errored"),Wd=Ki("nodejs.stream.readable"),zd=Ki("nodejs.stream.writable"),Pm=Ki("nodejs.stream.disturbed"),aP=Ki("nodejs.webstream.isClosedPromise"),sP=Ki("nodejs.webstream.controllerErrorFunction");function Mu(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function Fu(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function uP(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function Bn(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function Cm(e){return!!(e&&!Bn(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function Lm(e){return!!(e&&!Bn(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Nm(e){return!!(e&&!Bn(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function fP(e){return Cm(e)||Lm(e)||Nm(e)}function cP(e,t){return e==null?!1:t===!0?typeof e[M0]=="function":t===!1?typeof e[F0]=="function":typeof e[M0]=="function"||typeof e[F0]=="function"}function ju(e){if(!Bn(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[Tm]||i!=null&&i.destroyed)}function Bm(e){if(!Fu(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function lP(e,t){if(!Fu(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function dP(e){if(!Mu(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function $m(e,t){if(!Mu(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function xm(e){return e&&e[Wd]!=null?e[Wd]:typeof(e==null?void 0:e.readable)!="boolean"?null:ju(e)?!1:Mu(e)&&e.readable&&!$m(e)}function Dm(e){return e&&e[zd]!=null?e[zd]:typeof(e==null?void 0:e.writable)!="boolean"?null:ju(e)?!1:Fu(e)&&e.writable&&!Bm(e)}function hP(e,t){return Bn(e)?ju(e)?!0:!((t==null?void 0:t.readable)!==!1&&xm(e)||(t==null?void 0:t.writable)!==!1&&Dm(e)):null}function pP(e){var t,r;return Bn(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function gP(e){var t,r;return Bn(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function yP(e){if(!Bn(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&Mm(e)?e._closed:null}function Mm(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function Fm(e){return typeof e._sent100=="boolean"&&Mm(e)}function _P(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function bP(e){if(!Bn(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&Fm(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function mP(e){var t;return!!(e&&((t=e[Pm])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function vP(e){var t,r,i,a,s,u,d,c,l,h;return!!(e&&((t=(r=(i=(a=(s=(u=e[Om])!==null&&u!==void 0?u:e.readableErrored)!==null&&s!==void 0?s:e.writableErrored)!==null&&a!==void 0?a:(d=e._readableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&i!==void 0?i:(c=e._writableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&r!==void 0?r:(l=e._readableState)===null||l===void 0?void 0:l.errored)!==null&&t!==void 0?t:!((h=e._writableState)===null||h===void 0)&&h.errored))}var ti={isDestroyed:ju,kIsDestroyed:Tm,isDisturbed:mP,kIsDisturbed:Pm,isErrored:vP,kIsErrored:Om,isReadable:xm,kIsReadable:Wd,kIsClosedPromise:aP,kControllerErrorFunction:sP,kIsWritable:zd,isClosed:yP,isDuplexNodeStream:uP,isFinished:hP,isIterable:cP,isReadableNodeStream:Mu,isReadableStream:Cm,isReadableEnded:dP,isReadableFinished:$m,isReadableErrored:gP,isNodeStream:Bn,isWebStream:fP,isWritable:Dm,isWritableNodeStream:Fu,isWritableStream:Lm,isWritableEnded:Bm,isWritableFinished:lP,isWritableErrored:pP,isServerRequest:_P,isServerResponse:Fm,willEmitClose:bP,isTransformStream:Nm};const bi=ee.browserExports,{AbortError:jm,codes:wP}=Br,{ERR_INVALID_ARG_TYPE:EP,ERR_STREAM_PREMATURE_CLOSE:j0}=wP,{kEmptyObject:Gd,once:Vd}=Ir,{validateAbortSignal:SP,validateFunction:AP,validateObject:RP,validateBoolean:IP}=Fa,{Promise:TP,PromisePrototypeThen:OP,SymbolDispose:km}=Jt,{isClosed:PP,isReadable:k0,isReadableNodeStream:Fl,isReadableStream:CP,isReadableFinished:U0,isReadableErrored:q0,isWritable:H0,isWritableNodeStream:W0,isWritableStream:LP,isWritableFinished:z0,isWritableErrored:G0,isNodeStream:NP,willEmitClose:BP,kIsClosedPromise:$P}=ti;let To;function xP(e){return e.setHeader&&typeof e.abort=="function"}const Zd=()=>{};function Um(e,t,r){var i,a;if(arguments.length===2?(r=t,t=Gd):t==null?t=Gd:RP(t,"options"),AP(r,"callback"),SP(t.signal,"options.signal"),r=Vd(r),CP(e)||LP(e))return DP(e,t,r);if(!NP(e))throw new EP("stream",["ReadableStream","WritableStream","Stream"],e);const s=(i=t.readable)!==null&&i!==void 0?i:Fl(e),u=(a=t.writable)!==null&&a!==void 0?a:W0(e),d=e._writableState,c=e._readableState,l=()=>{e.writable||b()};let h=BP(e)&&Fl(e)===s&&W0(e)===u,g=z0(e,!1);const b=()=>{g=!0,e.destroyed&&(h=!1),!(h&&(!e.readable||s))&&(!s||_)&&r.call(e)};let _=U0(e,!1);const T=()=>{_=!0,e.destroyed&&(h=!1),!(h&&(!e.writable||u))&&(!u||g)&&r.call(e)},k=H=>{r.call(e,H)};let E=PP(e);const R=()=>{E=!0;const H=G0(e)||q0(e);if(H&&typeof H!="boolean")return r.call(e,H);if(s&&!_&&Fl(e,!0)&&!U0(e,!1))return r.call(e,new j0);if(u&&!g&&!z0(e,!1))return r.call(e,new j0);r.call(e)},v=()=>{E=!0;const H=G0(e)||q0(e);if(H&&typeof H!="boolean")return r.call(e,H);r.call(e)},w=()=>{e.req.on("finish",b)};xP(e)?(e.on("complete",b),h||e.on("abort",R),e.req?w():e.on("request",w)):u&&!d&&(e.on("end",l),e.on("close",l)),!h&&typeof e.aborted=="boolean"&&e.on("aborted",R),e.on("end",T),e.on("finish",b),t.error!==!1&&e.on("error",k),e.on("close",R),E?bi.nextTick(R):d!=null&&d.errorEmitted||c!=null&&c.errorEmitted?h||bi.nextTick(v):(!s&&(!h||k0(e))&&(g||H0(e)===!1)||!u&&(!h||H0(e))&&(_||k0(e)===!1)||c&&e.req&&e.aborted)&&bi.nextTick(v);const S=()=>{r=Zd,e.removeListener("aborted",R),e.removeListener("complete",b),e.removeListener("abort",R),e.removeListener("request",w),e.req&&e.req.removeListener("finish",b),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",b),e.removeListener("end",T),e.removeListener("error",k),e.removeListener("close",R)};if(t.signal&&!E){const H=()=>{const Q=r;S(),Q.call(e,new jm(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)bi.nextTick(H);else{To=To||Ir.addAbortListener;const Q=To(t.signal,H),ie=r;r=Vd((...he)=>{Q[km](),ie.apply(e,he)})}}return S}function DP(e,t,r){let i=!1,a=Zd;if(t.signal)if(a=()=>{i=!0,r.call(e,new jm(void 0,{cause:t.signal.reason}))},t.signal.aborted)bi.nextTick(a);else{To=To||Ir.addAbortListener;const u=To(t.signal,a),d=r;r=Vd((...c)=>{u[km](),d.apply(e,c)})}const s=(...u)=>{i||bi.nextTick(()=>r.apply(e,u))};return OP(e[$P].promise,s,s),Zd}function MP(e,t){var r;let i=!1;return t===null&&(t=Gd),(r=t)!==null&&r!==void 0&&r.cleanup&&(IP(t.cleanup,"cleanup"),i=t.cleanup),new TP((a,s)=>{const u=Um(e,t,d=>{i&&u(),d?s(d):a()})})}Th.exports=Um;Th.exports.finished=MP;var Ii=Th.exports;const Cn=ee.browserExports,{aggregateTwoErrors:FP,codes:{ERR_MULTIPLE_CALLBACK:jP},AbortError:kP}=Br,{Symbol:qm}=Jt,{kIsDestroyed:UP,isDestroyed:qP,isFinished:HP,isServerRequest:WP}=ti,Hm=qm("kDestroy"),Kd=qm("kConstruct");function Wm(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function zP(e,t){const r=this._readableState,i=this._writableState,a=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(Wm(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),a.constructed?V0(this,e,t):this.once(Hm,function(s){V0(this,FP(s,e),t)}),this)}function V0(e,t,r){let i=!1;function a(s){if(i)return;i=!0;const u=e._readableState,d=e._writableState;Wm(s,d,u),d&&(d.closed=!0),u&&(u.closed=!0),typeof r=="function"&&r(s),s?Cn.nextTick(GP,e,s):Cn.nextTick(zm,e)}try{e._destroy(t||null,a)}catch(s){a(s)}}function GP(e,t){Jd(e,t),zm(e)}function zm(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function Jd(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function VP(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Xd(e,t,r){const i=e._readableState,a=e._writableState;if(a!=null&&a.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||a!=null&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?Cn.nextTick(Jd,e,t):Jd(e,t))}function ZP(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(Kd,t),!(e.listenerCount(Kd)>1)&&Cn.nextTick(KP,e)}function KP(e){let t=!1;function r(i){if(t){Xd(e,i??new jP);return}t=!0;const a=e._readableState,s=e._writableState,u=s||a;a&&(a.constructed=!0),s&&(s.constructed=!0),u.destroyed?e.emit(Hm,i):i?Xd(e,i,!0):Cn.nextTick(JP,e)}try{e._construct(i=>{Cn.nextTick(r,i)})}catch(i){Cn.nextTick(r,i)}}function JP(e){e.emit(Kd)}function Z0(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Gm(e){e.emit("close")}function XP(e,t){e.emit("error",t),Cn.nextTick(Gm,e)}function YP(e,t){!e||qP(e)||(!t&&!HP(e)&&(t=new kP),WP(e)?(e.socket=null,e.destroy(t)):Z0(e)?e.abort():Z0(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?Cn.nextTick(XP,e,t):Cn.nextTick(Gm,e),e.destroyed||(e[UP]=!0))}var Fo={construct:ZP,destroyer:YP,destroy:zP,undestroy:VP,errorOrDestroy:Xd};const{ArrayIsArray:QP,ObjectSetPrototypeOf:Vm}=Jt,{EventEmitter:ku}=ee.requireEvents();function Uu(e){ku.call(this,e)}Vm(Uu.prototype,ku.prototype);Vm(Uu,ku);Uu.prototype.pipe=function(e,t){const r=this;function i(h){e.writable&&e.write(h)===!1&&r.pause&&r.pause()}r.on("data",i);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",u),r.on("close",d));let s=!1;function u(){s||(s=!0,e.end())}function d(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function c(h){l(),ku.listenerCount(this,"error")===0&&this.emit("error",h)}Yd(r,"error",c),Yd(e,"error",c);function l(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",u),r.removeListener("close",d),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e};function Yd(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):QP(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var Oh={Stream:Uu,prependListener:Yd},Zm={exports:{}};(function(e){const{SymbolDispose:t}=Jt,{AbortError:r,codes:i}=Br,{isNodeStream:a,isWebStream:s,kControllerErrorFunction:u}=ti,d=Ii,{ERR_INVALID_ARG_TYPE:c}=i;let l;const h=(g,b)=>{if(typeof g!="object"||!("aborted"in g))throw new c(b,"AbortSignal",g)};e.exports.addAbortSignal=function(b,_){if(h(b,"signal"),!a(_)&&!s(_))throw new c("stream",["ReadableStream","WritableStream","Stream"],_);return e.exports.addAbortSignalNoValidate(b,_)},e.exports.addAbortSignalNoValidate=function(g,b){if(typeof g!="object"||!("aborted"in g))return b;const _=a(b)?()=>{b.destroy(new r(void 0,{cause:g.reason}))}:()=>{b[u](new r(void 0,{cause:g.reason}))};if(g.aborted)_();else{l=l||Ir.addAbortListener;const T=l(g,_);d(b,T[t])}return b}})(Zm);var qu=Zm.exports;const{StringPrototypeSlice:K0,SymbolIterator:eC,TypedArrayPrototypeSet:Xs,Uint8Array:tC}=Jt,{Buffer:jl}=ee.bufferPolyfill,{inspect:rC}=Ir;var nC=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return jl.alloc(0);const r=jl.allocUnsafe(t>>>0);let i=this.head,a=0;for(;i;)Xs(r,i.data,a),a+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(t<i.length){const a=i.slice(0,t);return this.head.data=i.slice(t),a}return t===i.length?this.shift():r?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[eC](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let r="",i=this.head,a=0;do{const s=i.data;if(t>s.length)r+=s,t-=s.length;else{t===s.length?(r+=s,++a,i.next?this.head=i.next:this.head=this.tail=null):(r+=K0(s,0,t),this.head=i,i.data=K0(s,t));break}++a}while((i=i.next)!==null);return this.length-=a,r}_getBuffer(t){const r=jl.allocUnsafe(t),i=t;let a=this.head,s=0;do{const u=a.data;if(t>u.length)Xs(r,u,i-t),t-=u.length;else{t===u.length?(Xs(r,u,i-t),++s,a.next?this.head=a.next:this.head=this.tail=null):(Xs(r,new tC(u.buffer,u.byteOffset,t),i-t),this.head=a,a.data=u.slice(t));break}++s}while((a=a.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return rC(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:iC,NumberIsInteger:oC}=Jt,{validateInteger:aC}=Fa,{ERR_INVALID_ARG_VALUE:sC}=Br.codes;let Km=16*1024,Jm=16;function uC(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Xm(e){return e?Jm:Km}function fC(e,t){aC(t,"value",0),e?Jm=t:Km=t}function cC(e,t,r,i){const a=uC(t,i,r);if(a!=null){if(!oC(a)||a<0){const s=i?`options.${r}`:"options.highWaterMark";throw new sC(s,a)}return iC(a)}return Xm(e.objectMode)}var Hu={getHighWaterMark:cC,getDefaultHighWaterMark:Xm,setDefaultHighWaterMark:fC};const J0=ee.browserExports,{PromisePrototypeThen:lC,SymbolAsyncIterator:X0,SymbolIterator:Y0}=Jt,{Buffer:dC}=ee.bufferPolyfill,{ERR_INVALID_ARG_TYPE:hC,ERR_STREAM_NULL_VALUES:pC}=Br.codes;function gC(e,t,r){let i;if(typeof t=="string"||t instanceof dC)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let a;if(t&&t[X0])a=!0,i=t[X0]();else if(t&&t[Y0])a=!1,i=t[Y0]();else throw new hC("iterable",["Iterable"],t);const s=new e({objectMode:!0,highWaterMark:1,...r});let u=!1;s._read=function(){u||(u=!0,c())},s._destroy=function(l,h){lC(d(l),()=>J0.nextTick(h,l),g=>J0.nextTick(h,g||l))};async function d(l){const h=l!=null,g=typeof i.throw=="function";if(h&&g){const{value:b,done:_}=await i.throw(l);if(await b,_)return}if(typeof i.return=="function"){const{value:b}=await i.return();await b}}async function c(){for(;;){try{const{value:l,done:h}=a?await i.next():i.next();if(h)s.push(null);else{const g=l&&typeof l.then=="function"?await l:l;if(g===null)throw u=!1,new pC;if(s.push(g))continue;u=!1}}catch(l){s.destroy(l)}break}}return s}var Ym=gC,kl,Q0;function Wu(){if(Q0)return kl;Q0=1;const e=ee.browserExports,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:u,ObjectSetPrototypeOf:d,Promise:c,SafeSet:l,SymbolAsyncDispose:h,SymbolAsyncIterator:g,Symbol:b}=Jt;kl=re,re.ReadableState=et;const{EventEmitter:_}=ee.requireEvents(),{Stream:T,prependListener:k}=Oh,{Buffer:E}=ee.bufferPolyfill,{addAbortSignal:R}=qu,v=Ii;let w=Ir.debuglog("stream",N=>{w=N});const S=nC,H=Fo,{getHighWaterMark:Q,getDefaultHighWaterMark:ie}=Hu,{aggregateTwoErrors:he,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:Ee,ERR_OUT_OF_RANGE:ve,ERR_STREAM_PUSH_AFTER_EOF:m,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:O},AbortError:P}=Br,{validateObject:Z}=Fa,ae=b("kPaused"),{StringDecoder:X}=ee.requireString_decoder(),ne=Ym;d(re.prototype,T.prototype),d(re,T);const F=()=>{},{errorOrDestroy:x}=H,Y=1,B=2,j=4,$=8,U=16,G=32,de=64,oe=128,fe=256,Se=512,Be=1024,Me=2048,z=4096,J=8192,ge=16384,Ne=32768,Oe=65536,je=1<<17,me=1<<18;function Ye(N){return{enumerable:!1,get(){return(this.state&N)!==0},set(W){W?this.state|=N:this.state&=~N}}}s(et.prototype,{objectMode:Ye(Y),ended:Ye(B),endEmitted:Ye(j),reading:Ye($),constructed:Ye(U),sync:Ye(G),needReadable:Ye(de),emittedReadable:Ye(oe),readableListening:Ye(fe),resumeScheduled:Ye(Se),errorEmitted:Ye(Be),emitClose:Ye(Me),autoDestroy:Ye(z),destroyed:Ye(J),closed:Ye(ge),closeEmitted:Ye(Ne),multiAwaitDrain:Ye(Oe),readingMore:Ye(je),dataEmitted:Ye(me)});function et(N,W,Ce){typeof Ce!="boolean"&&(Ce=W instanceof Yn()),this.state=Me|z|U|G,N&&N.objectMode&&(this.state|=Y),Ce&&N&&N.readableObjectMode&&(this.state|=Y),this.highWaterMark=N?Q(this,N,"readableHighWaterMark",Ce):ie(!1),this.buffer=new S,this.length=0,this.pipes=[],this.flowing=null,this[ae]=null,N&&N.emitClose===!1&&(this.state&=~Me),N&&N.autoDestroy===!1&&(this.state&=~z),this.errored=null,this.defaultEncoding=N&&N.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,N&&N.encoding&&(this.decoder=new X(N.encoding),this.encoding=N.encoding)}function re(N){if(!(this instanceof re))return new re(N);const W=this instanceof Yn();this._readableState=new et(N,this,W),N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.construct=="function"&&(this._construct=N.construct),N.signal&&!W&&R(N.signal,this)),T.call(this,N),H.construct(this,()=>{this._readableState.needReadable&&D(this,this._readableState)})}re.prototype.destroy=H.destroy,re.prototype._undestroy=H.undestroy,re.prototype._destroy=function(N,W){W(N)},re.prototype[_.captureRejectionSymbol]=function(N){this.destroy(N)},re.prototype[h]=function(){let N;return this.destroyed||(N=this.readableEnded?null:new P,this.destroy(N)),new c((W,Ce)=>v(this,ze=>ze&&ze!==N?Ce(ze):W(null)))},re.prototype.push=function(N,W){return xe(this,N,W,!1)},re.prototype.unshift=function(N,W){return xe(this,N,W,!0)};function xe(N,W,Ce,ze){w("readableAddChunk",W);const Ge=N._readableState;let rt;if(Ge.state&Y||(typeof W=="string"?(Ce=Ce||Ge.defaultEncoding,Ge.encoding!==Ce&&(ze&&Ge.encoding?W=E.from(W,Ce).toString(Ge.encoding):(W=E.from(W,Ce),Ce=""))):W instanceof E?Ce="":T._isUint8Array(W)?(W=T._uint8ArrayToBuffer(W),Ce=""):W!=null&&(rt=new le("chunk",["string","Buffer","Uint8Array"],W))),rt)x(N,rt);else if(W===null)Ge.state&=~$,Ue(N,Ge);else if(Ge.state&Y||W&&W.length>0)if(ze)if(Ge.state&j)x(N,new O);else{if(Ge.destroyed||Ge.errored)return!1;M(N,Ge,W,!0)}else if(Ge.ended)x(N,new m);else{if(Ge.destroyed||Ge.errored)return!1;Ge.state&=~$,Ge.decoder&&!Ce?(W=Ge.decoder.write(W),Ge.objectMode||W.length!==0?M(N,Ge,W,!1):D(N,Ge)):M(N,Ge,W,!1)}else ze||(Ge.state&=~$,D(N,Ge));return!Ge.ended&&(Ge.length<Ge.highWaterMark||Ge.length===0)}function M(N,W,Ce,ze){W.flowing&&W.length===0&&!W.sync&&N.listenerCount("data")>0?(W.state&Oe?W.awaitDrainWriters.clear():W.awaitDrainWriters=null,W.dataEmitted=!0,N.emit("data",Ce)):(W.length+=W.objectMode?1:Ce.length,ze?W.buffer.unshift(Ce):W.buffer.push(Ce),W.state&de&&ke(N)),D(N,W)}re.prototype.isPaused=function(){const N=this._readableState;return N[ae]===!0||N.flowing===!1},re.prototype.setEncoding=function(N){const W=new X(N);this._readableState.decoder=W,this._readableState.encoding=this._readableState.decoder.encoding;const Ce=this._readableState.buffer;let ze="";for(const Ge of Ce)ze+=W.write(Ge);return Ce.clear(),ze!==""&&Ce.push(ze),this._readableState.length=ze.length,this};const ce=1073741824;function De(N){if(N>ce)throw new ve("size","<= 1GiB",N);return N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++,N}function Ve(N,W){return N<=0||W.length===0&&W.ended?0:W.state&Y?1:i(N)?W.flowing&&W.length?W.buffer.first().length:W.length:N<=W.length?N:W.ended?W.length:0}re.prototype.read=function(N){w("read",N),N===void 0?N=NaN:r(N)||(N=a(N,10));const W=this._readableState,Ce=N;if(N>W.highWaterMark&&(W.highWaterMark=De(N)),N!==0&&(W.state&=~oe),N===0&&W.needReadable&&((W.highWaterMark!==0?W.length>=W.highWaterMark:W.length>0)||W.ended))return w("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?Ie(this):ke(this),null;if(N=Ve(N,W),N===0&&W.ended)return W.length===0&&Ie(this),null;let ze=(W.state&de)!==0;if(w("need readable",ze),(W.length===0||W.length-N<W.highWaterMark)&&(ze=!0,w("length less than watermark",ze)),W.ended||W.reading||W.destroyed||W.errored||!W.constructed)ze=!1,w("reading, ended or constructing",ze);else if(ze){w("do read"),W.state|=$|G,W.length===0&&(W.state|=de);try{this._read(W.highWaterMark)}catch(rt){x(this,rt)}W.state&=~G,W.reading||(N=Ve(Ce,W))}let Ge;return N>0?Ge=_e(N,W):Ge=null,Ge===null?(W.needReadable=W.length<=W.highWaterMark,N=0):(W.length-=N,W.multiAwaitDrain?W.awaitDrainWriters.clear():W.awaitDrainWriters=null),W.length===0&&(W.ended||(W.needReadable=!0),Ce!==N&&W.ended&&Ie(this)),Ge!==null&&!W.errorEmitted&&!W.closeEmitted&&(W.dataEmitted=!0,this.emit("data",Ge)),Ge};function Ue(N,W){if(w("onEofChunk"),!W.ended){if(W.decoder){const Ce=W.decoder.end();Ce&&Ce.length&&(W.buffer.push(Ce),W.length+=W.objectMode?1:Ce.length)}W.ended=!0,W.sync?ke(N):(W.needReadable=!1,W.emittedReadable=!0,Xe(N))}}function ke(N){const W=N._readableState;w("emitReadable",W.needReadable,W.emittedReadable),W.needReadable=!1,W.emittedReadable||(w("emitReadable",W.flowing),W.emittedReadable=!0,e.nextTick(Xe,N))}function Xe(N){const W=N._readableState;w("emitReadable_",W.destroyed,W.length,W.ended),!W.destroyed&&!W.errored&&(W.length||W.ended)&&(N.emit("readable"),W.emittedReadable=!1),W.needReadable=!W.flowing&&!W.ended&&W.length<=W.highWaterMark,Te(N)}function D(N,W){!W.readingMore&&W.constructed&&(W.readingMore=!0,e.nextTick(Re,N,W))}function Re(N,W){for(;!W.reading&&!W.ended&&(W.length<W.highWaterMark||W.flowing&&W.length===0);){const Ce=W.length;if(w("maybeReadMore read 0"),N.read(0),Ce===W.length)break}W.readingMore=!1}re.prototype._read=function(N){throw new Ee("_read()")},re.prototype.pipe=function(N,W){const Ce=this,ze=this._readableState;ze.pipes.length===1&&(ze.multiAwaitDrain||(ze.multiAwaitDrain=!0,ze.awaitDrainWriters=new l(ze.awaitDrainWriters?[ze.awaitDrainWriters]:[]))),ze.pipes.push(N),w("pipe count=%d opts=%j",ze.pipes.length,W);const rt=(!W||W.end!==!1)&&N!==e.stdout&&N!==e.stderr?bt:tr;ze.endEmitted?e.nextTick(rt):Ce.once("end",rt),N.on("unpipe",ot);function ot(Gt,Vt){w("onunpipe"),Gt===Ce&&Vt&&Vt.hasUnpiped===!1&&(Vt.hasUnpiped=!0,fr())}function bt(){w("onend"),N.end()}let ht,ar=!1;function fr(){w("cleanup"),N.removeListener("close",Ot),N.removeListener("finish",qt),ht&&N.removeListener("drain",ht),N.removeListener("error",St),N.removeListener("unpipe",ot),Ce.removeListener("end",bt),Ce.removeListener("end",tr),Ce.removeListener("data",Dt),ar=!0,ht&&ze.awaitDrainWriters&&(!N._writableState||N._writableState.needDrain)&&ht()}function wt(){ar||(ze.pipes.length===1&&ze.pipes[0]===N?(w("false write response, pause",0),ze.awaitDrainWriters=N,ze.multiAwaitDrain=!1):ze.pipes.length>1&&ze.pipes.includes(N)&&(w("false write response, pause",ze.awaitDrainWriters.size),ze.awaitDrainWriters.add(N)),Ce.pause()),ht||(ht=$e(Ce,N),N.on("drain",ht))}Ce.on("data",Dt);function Dt(Gt){w("ondata");const Vt=N.write(Gt);w("dest.write",Vt),Vt===!1&&wt()}function St(Gt){if(w("onerror",Gt),tr(),N.removeListener("error",St),N.listenerCount("error")===0){const Vt=N._writableState||N._readableState;Vt&&!Vt.errorEmitted?x(N,Gt):N.emit("error",Gt)}}k(N,"error",St);function Ot(){N.removeListener("finish",qt),tr()}N.once("close",Ot);function qt(){w("onfinish"),N.removeListener("close",Ot),tr()}N.once("finish",qt);function tr(){w("unpipe"),Ce.unpipe(N)}return N.emit("pipe",Ce),N.writableNeedDrain===!0?wt():ze.flowing||(w("pipe resume"),Ce.resume()),N};function $e(N,W){return function(){const ze=N._readableState;ze.awaitDrainWriters===W?(w("pipeOnDrain",1),ze.awaitDrainWriters=null):ze.multiAwaitDrain&&(w("pipeOnDrain",ze.awaitDrainWriters.size),ze.awaitDrainWriters.delete(W)),(!ze.awaitDrainWriters||ze.awaitDrainWriters.size===0)&&N.listenerCount("data")&&N.resume()}}re.prototype.unpipe=function(N){const W=this._readableState,Ce={hasUnpiped:!1};if(W.pipes.length===0)return this;if(!N){const Ge=W.pipes;W.pipes=[],this.pause();for(let rt=0;rt<Ge.length;rt++)Ge[rt].emit("unpipe",this,{hasUnpiped:!1});return this}const ze=t(W.pipes,N);return ze===-1?this:(W.pipes.splice(ze,1),W.pipes.length===0&&this.pause(),N.emit("unpipe",this,Ce),this)},re.prototype.on=function(N,W){const Ce=T.prototype.on.call(this,N,W),ze=this._readableState;return N==="data"?(ze.readableListening=this.listenerCount("readable")>0,ze.flowing!==!1&&this.resume()):N==="readable"&&!ze.endEmitted&&!ze.readableListening&&(ze.readableListening=ze.needReadable=!0,ze.flowing=!1,ze.emittedReadable=!1,w("on readable",ze.length,ze.reading),ze.length?ke(this):ze.reading||e.nextTick(C,this)),Ce},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(N,W){const Ce=T.prototype.removeListener.call(this,N,W);return N==="readable"&&e.nextTick(qe,this),Ce},re.prototype.off=re.prototype.removeListener,re.prototype.removeAllListeners=function(N){const W=T.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&e.nextTick(qe,this),W};function qe(N){const W=N._readableState;W.readableListening=N.listenerCount("readable")>0,W.resumeScheduled&&W[ae]===!1?W.flowing=!0:N.listenerCount("data")>0?N.resume():W.readableListening||(W.flowing=null)}function C(N){w("readable nexttick read 0"),N.read(0)}re.prototype.resume=function(){const N=this._readableState;return N.flowing||(w("resume"),N.flowing=!N.readableListening,K(this,N)),N[ae]=!1,this};function K(N,W){W.resumeScheduled||(W.resumeScheduled=!0,e.nextTick(A,N,W))}function A(N,W){w("resume",W.reading),W.reading||N.read(0),W.resumeScheduled=!1,N.emit("resume"),Te(N),W.flowing&&!W.reading&&N.read(0)}re.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ae]=!0,this};function Te(N){const W=N._readableState;for(w("flow",W.flowing);W.flowing&&N.read()!==null;);}re.prototype.wrap=function(N){let W=!1;N.on("data",ze=>{!this.push(ze)&&N.pause&&(W=!0,N.pause())}),N.on("end",()=>{this.push(null)}),N.on("error",ze=>{x(this,ze)}),N.on("close",()=>{this.destroy()}),N.on("destroy",()=>{this.destroy()}),this._read=()=>{W&&N.resume&&(W=!1,N.resume())};const Ce=u(N);for(let ze=1;ze<Ce.length;ze++){const Ge=Ce[ze];this[Ge]===void 0&&typeof N[Ge]=="function"&&(this[Ge]=N[Ge].bind(N))}return this},re.prototype[g]=function(){return Ke(this)},re.prototype.iterator=function(N){return N!==void 0&&Z(N,"options"),Ke(this,N)};function Ke(N,W){typeof N.read!="function"&&(N=re.wrap(N,{objectMode:!0}));const Ce=p(N,W);return Ce.stream=N,Ce}async function*p(N,W){let Ce=F;function ze(ot){this===N?(Ce(),Ce=F):Ce=ot}N.on("readable",ze);let Ge;const rt=v(N,{writable:!1},ot=>{Ge=ot?he(Ge,ot):null,Ce(),Ce=F});try{for(;;){const ot=N.destroyed?null:N.read();if(ot!==null)yield ot;else{if(Ge)throw Ge;if(Ge===null)return;await new c(ze)}}}catch(ot){throw Ge=he(Ge,ot),Ge}finally{(Ge||(W==null?void 0:W.destroyOnReturn)!==!1)&&(Ge===void 0||N._readableState.autoDestroy)?H.destroyer(N,null):(N.off("readable",ze),rt())}}s(re.prototype,{readable:{__proto__:null,get(){const N=this._readableState;return!!N&&N.readable!==!1&&!N.destroyed&&!N.errorEmitted&&!N.endEmitted},set(N){this._readableState&&(this._readableState.readable=!!N)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(N){this._readableState&&(this._readableState.destroyed=N)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(et.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ae]!==!1},set(N){this[ae]=!!N}}}),re._fromList=_e;function _e(N,W){if(W.length===0)return null;let Ce;return W.objectMode?Ce=W.buffer.shift():!N||N>=W.length?(W.decoder?Ce=W.buffer.join(""):W.buffer.length===1?Ce=W.buffer.first():Ce=W.buffer.concat(W.length),W.buffer.clear()):Ce=W.buffer.consume(N,W.decoder),Ce}function Ie(N){const W=N._readableState;w("endReadable",W.endEmitted),W.endEmitted||(W.ended=!0,e.nextTick(L,W,N))}function L(N,W){if(w("endReadableNT",N.endEmitted,N.length),!N.errored&&!N.closeEmitted&&!N.endEmitted&&N.length===0){if(N.endEmitted=!0,W.emit("end"),W.writable&&W.allowHalfOpen===!1)e.nextTick(ue,W);else if(N.autoDestroy){const Ce=W._writableState;(!Ce||Ce.autoDestroy&&(Ce.finished||Ce.writable===!1))&&W.destroy()}}}function ue(N){N.writable&&!N.writableEnded&&!N.destroyed&&N.end()}re.from=function(N,W){return ne(re,N,W)};let Ae;function Je(){return Ae===void 0&&(Ae={}),Ae}return re.fromWeb=function(N,W){return Je().newStreamReadableFromReadableStream(N,W)},re.toWeb=function(N,W){return Je().newReadableStreamFromStreamReadable(N,W)},re.wrap=function(N,W){var Ce,ze;return new re({objectMode:(Ce=(ze=N.readableObjectMode)!==null&&ze!==void 0?ze:N.objectMode)!==null&&Ce!==void 0?Ce:!0,...W,destroy(Ge,rt){H.destroyer(N,Ge),rt(Ge)}}).wrap(N)},kl}var Ul,e_;function Ph(){if(e_)return Ul;e_=1;const e=ee.browserExports,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:d,Symbol:c,SymbolHasInstance:l}=Jt;Ul=Z,Z.WritableState=O;const{EventEmitter:h}=ee.requireEvents(),g=Oh.Stream,{Buffer:b}=ee.bufferPolyfill,_=Fo,{addAbortSignal:T}=qu,{getHighWaterMark:k,getDefaultHighWaterMark:E}=Hu,{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:H,ERR_STREAM_ALREADY_FINISHED:Q,ERR_STREAM_NULL_VALUES:ie,ERR_STREAM_WRITE_AFTER_END:he,ERR_UNKNOWN_ENCODING:le}=Br.codes,{errorOrDestroy:Ee}=_;u(Z.prototype,g.prototype),u(Z,g);function ve(){}const m=c("kOnFinished");function O(z,J,ge){typeof ge!="boolean"&&(ge=J instanceof Yn()),this.objectMode=!!(z&&z.objectMode),ge&&(this.objectMode=this.objectMode||!!(z&&z.writableObjectMode)),this.highWaterMark=z?k(this,z,"writableHighWaterMark",ge):E(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const Ne=!!(z&&z.decodeStrings===!1);this.decodeStrings=!Ne,this.defaultEncoding=z&&z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=x.bind(void 0,J),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,P(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!z||z.emitClose!==!1,this.autoDestroy=!z||z.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[m]=[]}function P(z){z.buffered=[],z.bufferedIndex=0,z.allBuffers=!0,z.allNoop=!0}O.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},a(O.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Z(z){const J=this instanceof Yn();if(!J&&!i(Z,this))return new Z(z);this._writableState=new O(z,this,J),z&&(typeof z.write=="function"&&(this._write=z.write),typeof z.writev=="function"&&(this._writev=z.writev),typeof z.destroy=="function"&&(this._destroy=z.destroy),typeof z.final=="function"&&(this._final=z.final),typeof z.construct=="function"&&(this._construct=z.construct),z.signal&&T(z.signal,this)),g.call(this,z),_.construct(this,()=>{const ge=this._writableState;ge.writing||$(this,ge),oe(this,ge)})}a(Z,l,{__proto__:null,value:function(z){return i(this,z)?!0:this!==Z?!1:z&&z._writableState instanceof O}}),Z.prototype.pipe=function(){Ee(this,new S)};function ae(z,J,ge,Ne){const Oe=z._writableState;if(typeof ge=="function")Ne=ge,ge=Oe.defaultEncoding;else{if(!ge)ge=Oe.defaultEncoding;else if(ge!=="buffer"&&!b.isEncoding(ge))throw new le(ge);typeof Ne!="function"&&(Ne=ve)}if(J===null)throw new ie;if(!Oe.objectMode)if(typeof J=="string")Oe.decodeStrings!==!1&&(J=b.from(J,ge),ge="buffer");else if(J instanceof b)ge="buffer";else if(g._isUint8Array(J))J=g._uint8ArrayToBuffer(J),ge="buffer";else throw new R("chunk",["string","Buffer","Uint8Array"],J);let je;return Oe.ending?je=new he:Oe.destroyed&&(je=new H("write")),je?(e.nextTick(Ne,je),Ee(z,je,!0),je):(Oe.pendingcb++,X(z,Oe,J,ge,Ne))}Z.prototype.write=function(z,J,ge){return ae(this,z,J,ge)===!0},Z.prototype.cork=function(){this._writableState.corked++},Z.prototype.uncork=function(){const z=this._writableState;z.corked&&(z.corked--,z.writing||$(this,z))},Z.prototype.setDefaultEncoding=function(J){if(typeof J=="string"&&(J=d(J)),!b.isEncoding(J))throw new le(J);return this._writableState.defaultEncoding=J,this};function X(z,J,ge,Ne,Oe){const je=J.objectMode?1:ge.length;J.length+=je;const me=J.length<J.highWaterMark;return me||(J.needDrain=!0),J.writing||J.corked||J.errored||!J.constructed?(J.buffered.push({chunk:ge,encoding:Ne,callback:Oe}),J.allBuffers&&Ne!=="buffer"&&(J.allBuffers=!1),J.allNoop&&Oe!==ve&&(J.allNoop=!1)):(J.writelen=je,J.writecb=Oe,J.writing=!0,J.sync=!0,z._write(ge,Ne,J.onwrite),J.sync=!1),me&&!J.errored&&!J.destroyed}function ne(z,J,ge,Ne,Oe,je,me){J.writelen=Ne,J.writecb=me,J.writing=!0,J.sync=!0,J.destroyed?J.onwrite(new H("write")):ge?z._writev(Oe,J.onwrite):z._write(Oe,je,J.onwrite),J.sync=!1}function F(z,J,ge,Ne){--J.pendingcb,Ne(ge),j(J),Ee(z,ge)}function x(z,J){const ge=z._writableState,Ne=ge.sync,Oe=ge.writecb;if(typeof Oe!="function"){Ee(z,new w);return}ge.writing=!1,ge.writecb=null,ge.length-=ge.writelen,ge.writelen=0,J?(J.stack,ge.errored||(ge.errored=J),z._readableState&&!z._readableState.errored&&(z._readableState.errored=J),Ne?e.nextTick(F,z,ge,J,Oe):F(z,ge,J,Oe)):(ge.buffered.length>ge.bufferedIndex&&$(z,ge),Ne?ge.afterWriteTickInfo!==null&&ge.afterWriteTickInfo.cb===Oe?ge.afterWriteTickInfo.count++:(ge.afterWriteTickInfo={count:1,cb:Oe,stream:z,state:ge},e.nextTick(Y,ge.afterWriteTickInfo)):B(z,ge,1,Oe))}function Y({stream:z,state:J,count:ge,cb:Ne}){return J.afterWriteTickInfo=null,B(z,J,ge,Ne)}function B(z,J,ge,Ne){for(!J.ending&&!z.destroyed&&J.length===0&&J.needDrain&&(J.needDrain=!1,z.emit("drain"));ge-- >0;)J.pendingcb--,Ne();J.destroyed&&j(J),oe(z,J)}function j(z){if(z.writing)return;for(let Oe=z.bufferedIndex;Oe<z.buffered.length;++Oe){var J;const{chunk:je,callback:me}=z.buffered[Oe],Ye=z.objectMode?1:je.length;z.length-=Ye,me((J=z.errored)!==null&&J!==void 0?J:new H("write"))}const ge=z[m].splice(0);for(let Oe=0;Oe<ge.length;Oe++){var Ne;ge[Oe]((Ne=z.errored)!==null&&Ne!==void 0?Ne:new H("end"))}P(z)}function $(z,J){if(J.corked||J.bufferProcessing||J.destroyed||!J.constructed)return;const{buffered:ge,bufferedIndex:Ne,objectMode:Oe}=J,je=ge.length-Ne;if(!je)return;let me=Ne;if(J.bufferProcessing=!0,je>1&&z._writev){J.pendingcb-=je-1;const Ye=J.allNoop?ve:re=>{for(let xe=me;xe<ge.length;++xe)ge[xe].callback(re)},et=J.allNoop&&me===0?ge:t(ge,me);et.allBuffers=J.allBuffers,ne(z,J,!0,J.length,et,"",Ye),P(J)}else{do{const{chunk:Ye,encoding:et,callback:re}=ge[me];ge[me++]=null;const xe=Oe?1:Ye.length;ne(z,J,!1,xe,Ye,et,re)}while(me<ge.length&&!J.writing);me===ge.length?P(J):me>256?(ge.splice(0,me),J.bufferedIndex=0):J.bufferedIndex=me}J.bufferProcessing=!1}Z.prototype._write=function(z,J,ge){if(this._writev)this._writev([{chunk:z,encoding:J}],ge);else throw new v("_write()")},Z.prototype._writev=null,Z.prototype.end=function(z,J,ge){const Ne=this._writableState;typeof z=="function"?(ge=z,z=null,J=null):typeof J=="function"&&(ge=J,J=null);let Oe;if(z!=null){const je=ae(this,z,J);je instanceof r&&(Oe=je)}return Ne.corked&&(Ne.corked=1,this.uncork()),Oe||(!Ne.errored&&!Ne.ending?(Ne.ending=!0,oe(this,Ne,!0),Ne.ended=!0):Ne.finished?Oe=new Q("end"):Ne.destroyed&&(Oe=new H("end"))),typeof ge=="function"&&(Oe||Ne.finished?e.nextTick(ge,Oe):Ne[m].push(ge)),this};function U(z){return z.ending&&!z.destroyed&&z.constructed&&z.length===0&&!z.errored&&z.buffered.length===0&&!z.finished&&!z.writing&&!z.errorEmitted&&!z.closeEmitted}function G(z,J){let ge=!1;function Ne(Oe){if(ge){Ee(z,Oe??w());return}if(ge=!0,J.pendingcb--,Oe){const je=J[m].splice(0);for(let me=0;me<je.length;me++)je[me](Oe);Ee(z,Oe,J.sync)}else U(J)&&(J.prefinished=!0,z.emit("prefinish"),J.pendingcb++,e.nextTick(fe,z,J))}J.sync=!0,J.pendingcb++;try{z._final(Ne)}catch(Oe){Ne(Oe)}J.sync=!1}function de(z,J){!J.prefinished&&!J.finalCalled&&(typeof z._final=="function"&&!J.destroyed?(J.finalCalled=!0,G(z,J)):(J.prefinished=!0,z.emit("prefinish")))}function oe(z,J,ge){U(J)&&(de(z,J),J.pendingcb===0&&(ge?(J.pendingcb++,e.nextTick((Ne,Oe)=>{U(Oe)?fe(Ne,Oe):Oe.pendingcb--},z,J)):U(J)&&(J.pendingcb++,fe(z,J))))}function fe(z,J){J.pendingcb--,J.finished=!0;const ge=J[m].splice(0);for(let Ne=0;Ne<ge.length;Ne++)ge[Ne]();if(z.emit("finish"),J.autoDestroy){const Ne=z._readableState;(!Ne||Ne.autoDestroy&&(Ne.endEmitted||Ne.readable===!1))&&z.destroy()}}s(Z.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(z){this._writableState&&(this._writableState.destroyed=z)}},writable:{__proto__:null,get(){const z=this._writableState;return!!z&&z.writable!==!1&&!z.destroyed&&!z.errored&&!z.ending&&!z.ended},set(z){this._writableState&&(this._writableState.writable=!!z)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){const z=this._writableState;return z?!z.destroyed&&!z.ending&&z.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});const Se=_.destroy;Z.prototype.destroy=function(z,J){const ge=this._writableState;return!ge.destroyed&&(ge.bufferedIndex<ge.buffered.length||ge[m].length)&&e.nextTick(j,ge),Se.call(this,z,J),this},Z.prototype._undestroy=_.undestroy,Z.prototype._destroy=function(z,J){J(z)},Z.prototype[h.captureRejectionSymbol]=function(z){this.destroy(z)};let Be;function Me(){return Be===void 0&&(Be={}),Be}return Z.fromWeb=function(z,J){return Me().newStreamWritableFromWritableStream(z,J)},Z.toWeb=function(z){return Me().newWritableStreamFromStreamWritable(z)},Ul}var ql,t_;function yC(){if(t_)return ql;t_=1;const e=ee.browserExports,t=ee.bufferPolyfill,{isReadable:r,isWritable:i,isIterable:a,isNodeStream:s,isReadableNodeStream:u,isWritableNodeStream:d,isDuplexNodeStream:c,isReadableStream:l,isWritableStream:h}=ti,g=Ii,{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:T}}=Br,{destroyer:k}=Fo,E=Yn(),R=Wu(),v=Ph(),{createDeferredPromise:w}=Ir,S=Ym,H=globalThis.Blob||t.Blob,Q=typeof H<"u"?function(O){return O instanceof H}:function(O){return!1},ie=globalThis.AbortController||Oa().AbortController,{FunctionPrototypeCall:he}=Jt;class le extends E{constructor(O){super(O),(O==null?void 0:O.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(O==null?void 0:O.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}ql=function m(O,P){if(c(O))return O;if(u(O))return ve({readable:O});if(d(O))return ve({writable:O});if(s(O))return ve({writable:!1,readable:!1});if(l(O))return ve({readable:R.fromWeb(O)});if(h(O))return ve({writable:v.fromWeb(O)});if(typeof O=="function"){const{value:ae,write:X,final:ne,destroy:F}=Ee(O);if(a(ae))return S(le,ae,{objectMode:!0,write:X,final:ne,destroy:F});const x=ae==null?void 0:ae.then;if(typeof x=="function"){let Y;const B=he(x,ae,j=>{if(j!=null)throw new T("nully","body",j)},j=>{k(Y,j)});return Y=new le({objectMode:!0,readable:!1,write:X,final(j){ne(async()=>{try{await B,e.nextTick(j,null)}catch($){e.nextTick(j,$)}})},destroy:F})}throw new T("Iterable, AsyncIterable or AsyncFunction",P,ae)}if(Q(O))return m(O.arrayBuffer());if(a(O))return S(le,O,{objectMode:!0,writable:!1});if(l(O==null?void 0:O.readable)&&h(O==null?void 0:O.writable))return le.fromWeb(O);if(typeof(O==null?void 0:O.writable)=="object"||typeof(O==null?void 0:O.readable)=="object"){const ae=O!=null&&O.readable?u(O==null?void 0:O.readable)?O==null?void 0:O.readable:m(O.readable):void 0,X=O!=null&&O.writable?d(O==null?void 0:O.writable)?O==null?void 0:O.writable:m(O.writable):void 0;return ve({readable:ae,writable:X})}const Z=O==null?void 0:O.then;if(typeof Z=="function"){let ae;return he(Z,O,X=>{X!=null&&ae.push(X),ae.push(null)},X=>{k(ae,X)}),ae=new le({objectMode:!0,writable:!1,read(){}})}throw new _(P,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],O)};function Ee(m){let{promise:O,resolve:P}=w();const Z=new ie,ae=Z.signal;return{value:m(async function*(){for(;;){const ne=O;O=null;const{chunk:F,done:x,cb:Y}=await ne;if(e.nextTick(Y),x)return;if(ae.aborted)throw new b(void 0,{cause:ae.reason});({promise:O,resolve:P}=w()),yield F}}(),{signal:ae}),write(ne,F,x){const Y=P;P=null,Y({chunk:ne,done:!1,cb:x})},final(ne){const F=P;P=null,F({done:!0,cb:ne})},destroy(ne,F){Z.abort(),F(ne)}}}function ve(m){const O=m.readable&&typeof m.readable.read!="function"?R.wrap(m.readable):m.readable,P=m.writable;let Z=!!r(O),ae=!!i(P),X,ne,F,x,Y;function B(j){const $=x;x=null,$?$(j):j&&Y.destroy(j)}return Y=new le({readableObjectMode:!!(O!=null&&O.readableObjectMode),writableObjectMode:!!(P!=null&&P.writableObjectMode),readable:Z,writable:ae}),ae&&(g(P,j=>{ae=!1,j&&k(O,j),B(j)}),Y._write=function(j,$,U){P.write(j,$)?U():X=U},Y._final=function(j){P.end(),ne=j},P.on("drain",function(){if(X){const j=X;X=null,j()}}),P.on("finish",function(){if(ne){const j=ne;ne=null,j()}})),Z&&(g(O,j=>{Z=!1,j&&k(O,j),B(j)}),O.on("readable",function(){if(F){const j=F;F=null,j()}}),O.on("end",function(){Y.push(null)}),Y._read=function(){for(;;){const j=O.read();if(j===null){F=Y._read;return}if(!Y.push(j))return}}),Y._destroy=function(j,$){!j&&x!==null&&(j=new b),F=null,X=null,ne=null,x===null?$(j):(x=$,k(P,j),k(O,j))},Y}return ql}var Hl,r_;function Yn(){if(r_)return Hl;r_=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=Jt;Hl=u;const a=Wu(),s=Ph();i(u.prototype,a.prototype),i(u,a);{const h=r(s.prototype);for(let g=0;g<h.length;g++){const b=h[g];u.prototype[b]||(u.prototype[b]=s.prototype[b])}}function u(h){if(!(this instanceof u))return new u(h);a.call(this,h),s.call(this,h),h?(this.allowHalfOpen=h.allowHalfOpen!==!1,h.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),h.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(u.prototype,{writable:{__proto__:null,...t(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(s.prototype,"writableLength")},writableFinished:{__proto__:null,...t(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(h){this._readableState&&this._writableState&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}});let d;function c(){return d===void 0&&(d={}),d}u.fromWeb=function(h,g){return c().newStreamDuplexFromReadableWritablePair(h,g)},u.toWeb=function(h){return c().newReadableWritablePairFromDuplex(h)};let l;return u.from=function(h){return l||(l=yC()),l(h,"body")},Hl}const{ObjectSetPrototypeOf:Qm,Symbol:_C}=Jt;var ev=Qn;const{ERR_METHOD_NOT_IMPLEMENTED:bC}=Br.codes,Ch=Yn(),{getHighWaterMark:mC}=Hu;Qm(Qn.prototype,Ch.prototype);Qm(Qn,Ch);const Aa=_C("kCallback");function Qn(e){if(!(this instanceof Qn))return new Qn(e);const t=e?mC(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),Ch.call(this,e),this._readableState.sync=!1,this[Aa]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",vC)}function Qd(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function vC(){this._final!==Qd&&Qd.call(this)}Qn.prototype._final=Qd;Qn.prototype._transform=function(e,t,r){throw new bC("_transform()")};Qn.prototype._write=function(e,t,r){const i=this._readableState,a=this._writableState,s=i.length;this._transform(e,t,(u,d)=>{if(u){r(u);return}d!=null&&this.push(d),a.ended||s===i.length||i.length<i.highWaterMark?r():this[Aa]=r})};Qn.prototype._read=function(){if(this[Aa]){const e=this[Aa];this[Aa]=null,e()}};const{ObjectSetPrototypeOf:tv}=Jt;var rv=Co;const Lh=ev;tv(Co.prototype,Lh.prototype);tv(Co,Lh);function Co(e){if(!(this instanceof Co))return new Co(e);Lh.call(this,e)}Co.prototype._transform=function(e,t,r){r(null,e)};const Ea=ee.browserExports,{ArrayIsArray:wC,Promise:EC,SymbolAsyncIterator:SC,SymbolDispose:AC}=Jt,Eu=Ii,{once:RC}=Ir,IC=Fo,n_=Yn(),{aggregateTwoErrors:TC,codes:{ERR_INVALID_ARG_TYPE:eh,ERR_INVALID_RETURN_VALUE:Wl,ERR_MISSING_ARGS:OC,ERR_STREAM_DESTROYED:PC,ERR_STREAM_PREMATURE_CLOSE:CC},AbortError:LC}=Br,{validateFunction:NC,validateAbortSignal:BC}=Fa,{isIterable:Ui,isReadable:zl,isReadableNodeStream:pu,isNodeStream:i_,isTransformStream:Ao,isWebStream:$C,isReadableStream:Gl,isReadableFinished:xC}=ti,DC=globalThis.AbortController||Oa().AbortController;let Vl,Zl,Kl;function o_(e,t,r){let i=!1;e.on("close",()=>{i=!0});const a=Eu(e,{readable:t,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,IC.destroyer(e,s||new PC("pipe")))},cleanup:a}}function MC(e){return NC(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Jl(e){if(Ui(e))return e;if(pu(e))return FC(e);throw new eh("val",["Readable","Iterable","AsyncIterable"],e)}async function*FC(e){Zl||(Zl=Wu()),yield*Zl.prototype[SC].call(e)}async function Ys(e,t,r,{end:i}){let a,s=null;const u=l=>{if(l&&(a=l),s){const h=s;s=null,h()}},d=()=>new EC((l,h)=>{a?h(a):s=()=>{a?h(a):l()}});t.on("drain",u);const c=Eu(t,{readable:!1},u);try{t.writableNeedDrain&&await d();for await(const l of e)t.write(l)||await d();i&&(t.end(),await d()),r()}catch(l){r(a!==l?TC(a,l):l)}finally{c(),t.off("drain",u)}}async function Xl(e,t,r,{end:i}){Ao(t)&&(t=t.writable);const a=t.getWriter();try{for await(const s of e)await a.ready,a.write(s).catch(()=>{});await a.ready,i&&await a.close(),r()}catch(s){try{await a.abort(s),r(s)}catch(u){r(u)}}}function jC(...e){return nv(e,RC(MC(e)))}function nv(e,t,r){if(e.length===1&&wC(e[0])&&(e=e[0]),e.length<2)throw new OC("streams");const i=new DC,a=i.signal,s=r==null?void 0:r.signal,u=[];BC(s,"options.signal");function d(){T(new LC)}Kl=Kl||Ir.addAbortListener;let c;s&&(c=Kl(s,d));let l,h;const g=[];let b=0;function _(v){T(v,--b===0)}function T(v,w){var S;if(v&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=v),!(!l&&!w)){for(;g.length;)g.shift()(l);(S=c)===null||S===void 0||S[AC](),i.abort(),w&&(l||u.forEach(H=>H()),Ea.nextTick(t,l,h))}}let k;for(let v=0;v<e.length;v++){const w=e[v],S=v<e.length-1,H=v>0,Q=S||(r==null?void 0:r.end)!==!1,ie=v===e.length-1;if(i_(w)){let he=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&_(le)};if(Q){const{destroy:le,cleanup:Ee}=o_(w,S,H);g.push(le),zl(w)&&ie&&u.push(Ee)}w.on("error",he),zl(w)&&ie&&u.push(()=>{w.removeListener("error",he)})}if(v===0)if(typeof w=="function"){if(k=w({signal:a}),!Ui(k))throw new Wl("Iterable, AsyncIterable or Stream","source",k)}else Ui(w)||pu(w)||Ao(w)?k=w:k=n_.from(w);else if(typeof w=="function"){if(Ao(k)){var E;k=Jl((E=k)===null||E===void 0?void 0:E.readable)}else k=Jl(k);if(k=w(k,{signal:a}),S){if(!Ui(k,!0))throw new Wl("AsyncIterable",`transform[${v-1}]`,k)}else{var R;Vl||(Vl=rv);const he=new Vl({objectMode:!0}),le=(R=k)===null||R===void 0?void 0:R.then;if(typeof le=="function")b++,le.call(k,m=>{h=m,m!=null&&he.write(m),Q&&he.end(),Ea.nextTick(_)},m=>{he.destroy(m),Ea.nextTick(_,m)});else if(Ui(k,!0))b++,Ys(k,he,_,{end:Q});else if(Gl(k)||Ao(k)){const m=k.readable||k;b++,Ys(m,he,_,{end:Q})}else throw new Wl("AsyncIterable or Promise","destination",k);k=he;const{destroy:Ee,cleanup:ve}=o_(k,!1,!0);g.push(Ee),ie&&u.push(ve)}}else if(i_(w)){if(pu(k)){b+=2;const he=kC(k,w,_,{end:Q});zl(w)&&ie&&u.push(he)}else if(Ao(k)||Gl(k)){const he=k.readable||k;b++,Ys(he,w,_,{end:Q})}else if(Ui(k))b++,Ys(k,w,_,{end:Q});else throw new eh("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],k);k=w}else if($C(w)){if(pu(k))b++,Xl(Jl(k),w,_,{end:Q});else if(Gl(k)||Ui(k))b++,Xl(k,w,_,{end:Q});else if(Ao(k))b++,Xl(k.readable,w,_,{end:Q});else throw new eh("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],k);k=w}else k=n_.from(w)}return(a!=null&&a.aborted||s!=null&&s.aborted)&&Ea.nextTick(d),k}function kC(e,t,r,{end:i}){let a=!1;if(t.on("close",()=>{a||r(new CC)}),e.pipe(t,{end:!1}),i){let s=function(){a=!0,t.end()};xC(e)?Ea.nextTick(s):e.once("end",s)}else r();return Eu(e,{readable:!0,writable:!1},s=>{const u=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&u&&u.ended&&!u.errored&&!u.errorEmitted?e.once("end",r).once("error",r):r(s)}),Eu(t,{readable:!1,writable:!0},r)}var Nh={pipelineImpl:nv,pipeline:jC};const{pipeline:UC}=Nh,Qs=Yn(),{destroyer:qC}=Fo,{isNodeStream:eu,isReadable:a_,isWritable:s_,isWebStream:Yl,isTransformStream:ji,isWritableStream:u_,isReadableStream:f_}=ti,{AbortError:HC,codes:{ERR_INVALID_ARG_VALUE:c_,ERR_MISSING_ARGS:WC}}=Br,zC=Ii;var iv=function(...t){if(t.length===0)throw new WC("streams");if(t.length===1)return Qs.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=Qs.from(t[0])),typeof t[t.length-1]=="function"){const _=t.length-1;t[_]=Qs.from(t[_])}for(let _=0;_<t.length;++_)if(!(!eu(t[_])&&!Yl(t[_]))){if(_<t.length-1&&!(a_(t[_])||f_(t[_])||ji(t[_])))throw new c_(`streams[${_}]`,r[_],"must be readable");if(_>0&&!(s_(t[_])||u_(t[_])||ji(t[_])))throw new c_(`streams[${_}]`,r[_],"must be writable")}let i,a,s,u,d;function c(_){const T=u;u=null,T?T(_):_?d.destroy(_):!b&&!g&&d.destroy()}const l=t[0],h=UC(t,c),g=!!(s_(l)||u_(l)||ji(l)),b=!!(a_(h)||f_(h)||ji(h));if(d=new Qs({writableObjectMode:!!(l!=null&&l.writableObjectMode),readableObjectMode:!!(h!=null&&h.readableObjectMode),writable:g,readable:b}),g){if(eu(l))d._write=function(T,k,E){l.write(T,k)?E():i=E},d._final=function(T){l.end(),a=T},l.on("drain",function(){if(i){const T=i;i=null,T()}});else if(Yl(l)){const k=(ji(l)?l.writable:l).getWriter();d._write=async function(E,R,v){try{await k.ready,k.write(E).catch(()=>{}),v()}catch(w){v(w)}},d._final=async function(E){try{await k.ready,k.close().catch(()=>{}),a=E}catch(R){E(R)}}}const _=ji(h)?h.readable:h;zC(_,()=>{if(a){const T=a;a=null,T()}})}if(b){if(eu(h))h.on("readable",function(){if(s){const _=s;s=null,_()}}),h.on("end",function(){d.push(null)}),d._read=function(){for(;;){const _=h.read();if(_===null){s=d._read;return}if(!d.push(_))return}};else if(Yl(h)){const T=(ji(h)?h.readable:h).getReader();d._read=async function(){for(;;)try{const{value:k,done:E}=await T.read();if(!d.push(k))return;if(E){d.push(null);return}}catch{return}}}}return d._destroy=function(_,T){!_&&u!==null&&(_=new HC),s=null,i=null,a=null,u===null?T(_):(u=T,eu(h)&&qC(h,_))},d};const GC=globalThis.AbortController||Oa().AbortController,{codes:{ERR_INVALID_ARG_VALUE:VC,ERR_INVALID_ARG_TYPE:ja,ERR_MISSING_ARGS:ZC,ERR_OUT_OF_RANGE:KC},AbortError:Nn}=Br,{validateAbortSignal:Ji,validateInteger:l_,validateObject:Xi}=Fa,JC=Jt.Symbol("kWeak"),XC=Jt.Symbol("kResistStopPropagation"),{finished:YC}=Ii,QC=iv,{addAbortSignalNoValidate:eL}=qu,{isWritable:tL,isNodeStream:rL}=ti,{deprecate:nL}=Ir,{ArrayPrototypePush:iL,Boolean:oL,MathFloor:d_,Number:aL,NumberIsNaN:sL,Promise:h_,PromiseReject:p_,PromiseResolve:uL,PromisePrototypeThen:g_,Symbol:ov}=Jt,Su=ov("kEmpty"),y_=ov("kEof");function fL(e,t){if(t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal"),rL(e)&&!tL(e))throw new VC("stream",e,"must be writable");const r=QC(this,e);return t!=null&&t.signal&&eL(t.signal,r),r}function zu(e,t){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=d_(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=d_(t.highWaterMark)),l_(r,"options.concurrency",1),l_(i,"options.highWaterMark",0),i+=r,(async function*(){const s=Ir.AbortSignalAny([t==null?void 0:t.signal].filter(oL)),u=this,d=[],c={signal:s};let l,h,g=!1,b=0;function _(){g=!0,T()}function T(){b-=1,k()}function k(){h&&!g&&b<r&&d.length<i&&(h(),h=null)}async function E(){try{for await(let R of u){if(g)return;if(s.aborted)throw new Nn;try{if(R=e(R,c),R===Su)continue;R=uL(R)}catch(v){R=p_(v)}b+=1,g_(R,T,_),d.push(R),l&&(l(),l=null),!g&&(d.length>=i||b>=r)&&await new h_(v=>{h=v})}d.push(y_)}catch(R){const v=p_(R);g_(v,T,_),d.push(v)}finally{g=!0,l&&(l(),l=null)}}E();try{for(;;){for(;d.length>0;){const R=await d[0];if(R===y_)return;if(s.aborted)throw new Nn;R!==Su&&(yield R),d.shift(),k()}await new h_(R=>{l=R})}}finally{g=!0,h&&(h(),h=null)}}).call(this)}function cL(e=void 0){return e!=null&&Xi(e,"options"),(e==null?void 0:e.signal)!=null&&Ji(e.signal,"options.signal"),(async function*(){let r=0;for await(const a of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new Nn({cause:e.signal.reason});yield[r++,a]}}).call(this)}async function av(e,t=void 0){for await(const r of Bh.call(this,e,t))return!0;return!1}async function lL(e,t=void 0){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);return!await av.call(this,async(...r)=>!await e(...r),t)}async function dL(e,t){for await(const r of Bh.call(this,e,t))return r}async function hL(e,t){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a),Su}for await(const i of zu.call(this,r,t));}function Bh(e,t){if(typeof e!="function")throw new ja("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a)?i:Su}return zu.call(this,r,t)}class pL extends ZC{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function gL(e,t,r){var i;if(typeof e!="function")throw new ja("reducer",["Function","AsyncFunction"],e);r!=null&&Xi(r,"options"),(r==null?void 0:r.signal)!=null&&Ji(r.signal,"options.signal");let a=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const l=new Nn(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await YC(this.destroy(l)),l}const s=new GC,u=s.signal;if(r!=null&&r.signal){const l={once:!0,[JC]:this,[XC]:!0};r.signal.addEventListener("abort",()=>s.abort(),l)}let d=!1;try{for await(const l of this){var c;if(d=!0,r!=null&&(c=r.signal)!==null&&c!==void 0&&c.aborted)throw new Nn;a?t=await e(t,l,{signal:u}):(t=l,a=!0)}if(!d&&!a)throw new pL}finally{s.abort()}return t}async function yL(e){e!=null&&Xi(e,"options"),(e==null?void 0:e.signal)!=null&&Ji(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new Nn(void 0,{cause:e.signal.reason});iL(t,i)}return t}function _L(e,t){const r=zu.call(this,e,t);return(async function*(){for await(const a of r)yield*a}).call(this)}function sv(e){if(e=aL(e),sL(e))return 0;if(e<0)throw new KC("number",">= 0",e);return e}function bL(e,t=void 0){return t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal"),e=sv(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Nn;for await(const s of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new Nn;e--<=0&&(yield s)}}).call(this)}function mL(e,t=void 0){return t!=null&&Xi(t,"options"),(t==null?void 0:t.signal)!=null&&Ji(t.signal,"options.signal"),e=sv(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Nn;for await(const s of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new Nn;if(e-- >0&&(yield s),e<=0)return}}).call(this)}Sh.streamReturningOperators={asIndexedPairs:nL(cL,"readable.asIndexedPairs will be removed in a future version."),drop:bL,filter:Bh,flatMap:_L,map:zu,take:mL,compose:fL};Sh.promiseReturningOperators={every:lL,forEach:hL,reduce:gL,toArray:yL,some:av,find:dL};var Ql,__;function uv(){if(__)return Ql;__=1;const{ArrayPrototypePop:e,Promise:t}=Jt,{isIterable:r,isNodeStream:i,isWebStream:a}=ti,{pipelineImpl:s}=Nh,{finished:u}=Ii;fv();function d(...c){return new t((l,h)=>{let g,b;const _=c[c.length-1];if(_&&typeof _=="object"&&!i(_)&&!r(_)&&!a(_)){const T=e(c);g=T.signal,b=T.end}s(c,(T,k)=>{T?h(T):l(k)},{signal:g,end:b})})}return Ql={finished:u,pipeline:d},Ql}var b_;function fv(){if(b_)return Dl.exports;b_=1;const{Buffer:e}=ee.bufferPolyfill,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=Jt,{promisify:{custom:a}}=Ir,{streamReturningOperators:s,promiseReturningOperators:u}=Sh,{codes:{ERR_ILLEGAL_CONSTRUCTOR:d}}=Br,c=iv,{setDefaultHighWaterMark:l,getDefaultHighWaterMark:h}=Hu,{pipeline:g}=Nh,{destroyer:b}=Fo,_=Ii,T=uv(),k=ti,E=Dl.exports=Oh.Stream;E.isDestroyed=k.isDestroyed,E.isDisturbed=k.isDisturbed,E.isErrored=k.isErrored,E.isReadable=k.isReadable,E.isWritable=k.isWritable,E.Readable=Wu();for(const v of r(s)){let S=function(...H){if(new.target)throw d();return E.Readable.from(i(w,this,H))};const w=s[v];t(S,"name",{__proto__:null,value:w.name}),t(S,"length",{__proto__:null,value:w.length}),t(E.Readable.prototype,v,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}for(const v of r(u)){let S=function(...H){if(new.target)throw d();return i(w,this,H)};const w=u[v];t(S,"name",{__proto__:null,value:w.name}),t(S,"length",{__proto__:null,value:w.length}),t(E.Readable.prototype,v,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}E.Writable=Ph(),E.Duplex=Yn(),E.Transform=ev,E.PassThrough=rv,E.pipeline=g;const{addAbortSignal:R}=qu;return E.addAbortSignal=R,E.finished=_,E.destroy=b,E.compose=c,E.setDefaultHighWaterMark=l,E.getDefaultHighWaterMark=h,t(E,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return T}}),t(g,a,{__proto__:null,enumerable:!0,get(){return T.pipeline}}),t(_,a,{__proto__:null,enumerable:!0,get(){return T.finished}}),E.Stream=E,E._isUint8Array=function(w){return w instanceof Uint8Array},E._uint8ArrayToBuffer=function(w){return e.from(w.buffer,w.byteOffset,w.byteLength)},Dl.exports}(function(e){const t=fv(),r=uv(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(d2);var vL={},Vi={},$h={},lr={};class cv extends TypeError{constructor(t,r){let i;const{message:a,explanation:s,...u}=t,{path:d}=t,c=d.length===0?a:`At path: ${d.join(".")} -- ${a}`;super(s??c),s!=null&&(this.cause=c),Object.assign(this,u),this.name=this.constructor.name,this.failures=()=>i??(i=[t,...r()])}}function wL(e){return nn(e)&&typeof e[Symbol.iterator]=="function"}function nn(e){return typeof e=="object"&&e!=null}function m_(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function or(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function EL(e){const{done:t,value:r}=e.next();return t?void 0:r}function SL(e,t,r,i){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:a,branch:s}=t,{type:u}=r,{refinement:d,message:c=`Expected a value of type \`${u}\`${d?` with refinement \`${d}\``:""}, but received: \`${or(i)}\``}=e;return{value:i,type:u,refinement:d,key:a[a.length-1],path:a,branch:s,...e,message:c}}function*th(e,t,r,i){wL(e)||(e=[e]);for(const a of e){const s=SL(a,t,r,i);s&&(yield s)}}function*xh(e,t,r={}){const{path:i=[],branch:a=[e],coerce:s=!1,mask:u=!1}=r,d={path:i,branch:a};if(s&&(e=t.coercer(e,d),u&&t.type!=="type"&&nn(t.schema)&&nn(e)&&!Array.isArray(e)))for(const l in e)t.schema[l]===void 0&&delete e[l];let c="valid";for(const l of t.validator(e,d))l.explanation=r.message,c="not_valid",yield[l,void 0];for(let[l,h,g]of t.entries(e,d)){const b=xh(h,g,{path:l===void 0?i:[...i,l],branch:l===void 0?a:[...a,h],coerce:s,mask:u,message:r.message});for(const _ of b)_[0]?(c=_[0].refinement!=null?"not_refined":"not_valid",yield[_[0],void 0]):s&&(h=_[1],l===void 0?e=h:e instanceof Map?e.set(l,h):e instanceof Set?e.add(h):nn(e)&&(h!==void 0||l in e)&&(e[l]=h))}if(c!=="not_valid")for(const l of t.refiner(e,d))l.explanation=r.message,c="not_refined",yield[l,void 0];c==="valid"&&(yield[void 0,e])}class er{constructor(t){const{type:r,schema:i,validator:a,refiner:s,coercer:u=c=>c,entries:d=function*(){}}=t;this.type=r,this.schema=i,this.entries=d,this.coercer=u,a?this.validator=(c,l)=>{const h=a(c,l);return th(h,l,this,c)}:this.validator=()=>[],s?this.refiner=(c,l)=>{const h=s(c,l);return th(h,l,this,c)}:this.refiner=()=>[]}assert(t,r){return lv(t,this,r)}create(t,r){return dv(t,this,r)}is(t){return Dh(t,this)}mask(t,r){return hv(t,this,r)}validate(t,r={}){return jo(t,this,r)}}function lv(e,t,r){const i=jo(e,t,{message:r});if(i[0])throw i[0]}function dv(e,t,r){const i=jo(e,t,{coerce:!0,message:r});if(i[0])throw i[0];return i[1]}function hv(e,t,r){const i=jo(e,t,{coerce:!0,mask:!0,message:r});if(i[0])throw i[0];return i[1]}function Dh(e,t){return!jo(e,t)[0]}function jo(e,t,r={}){const i=xh(e,t,r),a=EL(i);return a[0]?[new cv(a[0],function*(){for(const u of i)u[0]&&(yield u[0])}),void 0]:[void 0,a[1]]}function AL(...e){const t=e[0].type==="type",r=e.map(a=>a.schema),i=Object.assign({},...r);return t?Ua(i):ka(i)}function $r(e,t){return new er({type:e,schema:null,validator:t})}function RL(e,t){return new er({...e,refiner:(r,i)=>r===void 0||e.refiner(r,i),validator(r,i){return r===void 0?!0:(t(r,i),e.validator(r,i))}})}function IL(e){return new er({type:"dynamic",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function TL(e){let t;return new er({type:"lazy",schema:null,*entries(r,i){t??(t=e()),yield*t.entries(r,i)},validator(r,i){return t??(t=e()),t.validator(r,i)},coercer(r,i){return t??(t=e()),t.coercer(r,i)},refiner(r,i){return t??(t=e()),t.refiner(r,i)}})}function OL(e,t){const{schema:r}=e,i={...r};for(const a of t)delete i[a];switch(e.type){case"type":return Ua(i);default:return ka(i)}}function PL(e){const t=e instanceof er,r=t?{...e.schema}:{...e};for(const i in r)r[i]=pv(r[i]);return t&&e.type==="type"?Ua(r):ka(r)}function CL(e,t){const{schema:r}=e,i={};for(const a of t)i[a]=r[a];switch(e.type){case"type":return Ua(i);default:return ka(i)}}function LL(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),$r(e,t)}function NL(){return $r("any",()=>!0)}function BL(e){return new er({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,i]of t.entries())yield[r,i,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${or(t)}`}})}function $L(){return $r("bigint",e=>typeof e=="bigint")}function xL(){return $r("boolean",e=>typeof e=="boolean")}function DL(){return $r("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${or(e)}`)}function ML(e){const t={},r=e.map(i=>or(i)).join();for(const i of e)t[i]=i;return new er({type:"enums",schema:t,validator(i){return e.includes(i)||`Expected one of \`${r}\`, but received: ${or(i)}`}})}function FL(){return $r("func",e=>typeof e=="function"||`Expected a function, but received: ${or(e)}`)}function jL(e){return $r("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${or(t)}`)}function kL(){return $r("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${or(e)}`)}function UL(e){return new er({type:"intersection",schema:null,*entries(t,r){for(const i of e)yield*i.entries(t,r)},*validator(t,r){for(const i of e)yield*i.validator(t,r)},*refiner(t,r){for(const i of e)yield*i.refiner(t,r)}})}function qL(e){const t=or(e),r=typeof e;return new er({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(i){return i===e||`Expected the literal \`${t}\`, but received: ${or(i)}`}})}function HL(e,t){return new er({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[i,a]of r.entries())yield[i,i,e],yield[i,a,t]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \`Map\` object, but received: ${or(r)}`}})}function Mh(){return $r("never",()=>!1)}function WL(e){return new er({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function zL(){return $r("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${or(e)}`)}function ka(e){const t=e?Object.keys(e):[],r=Mh();return new er({type:"object",schema:e||null,*entries(i){if(e&&nn(i)){const a=new Set(Object.keys(i));for(const s of t)a.delete(s),yield[s,i[s],e[s]];for(const s of a)yield[s,i[s],r]}},validator(i){return nn(i)||`Expected an object, but received: ${or(i)}`},coercer(i){return nn(i)?{...i}:i}})}function pv(e){return new er({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function GL(e,t){return new er({type:"record",schema:null,*entries(r){if(nn(r))for(const i in r){const a=r[i];yield[i,i,e],yield[i,a,t]}},validator(r){return nn(r)||`Expected an object, but received: ${or(r)}`}})}function VL(){return $r("regexp",e=>e instanceof RegExp)}function ZL(e){return new er({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \`Set\` object, but received: ${or(t)}`}})}function gv(){return $r("string",e=>typeof e=="string"||`Expected a string, but received: ${or(e)}`)}function KL(e){const t=Mh();return new er({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const i=Math.max(e.length,r.length);for(let a=0;a<i;a++)yield[a,r[a],e[a]||t]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${or(r)}`}})}function Ua(e){const t=Object.keys(e);return new er({type:"type",schema:e,*entries(r){if(nn(r))for(const i of t)yield[i,r[i],e[i]]},validator(r){return nn(r)||`Expected an object, but received: ${or(r)}`},coercer(r){return nn(r)?{...r}:r}})}function JL(e){const t=e.map(r=>r.type).join(" | ");return new er({type:"union",schema:null,coercer(r){for(const i of e){const[a,s]=i.validate(r,{coerce:!0});if(!a)return s}return r},validator(r,i){const a=[];for(const s of e){const[...u]=xh(r,s,i),[d]=u;if(d[0])for(const[c]of u)c&&a.push(c);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${or(r)}`,...a]}})}function yv(){return $r("unknown",()=>!0)}function Fh(e,t,r){return new er({...e,coercer:(i,a)=>Dh(i,t)?e.coercer(r(i,a),a):e.coercer(i,a)})}function XL(e,t,r={}){return Fh(e,yv(),i=>{const a=typeof t=="function"?t():t;if(i===void 0)return a;if(!r.strict&&m_(i)&&m_(a)){const s={...i};let u=!1;for(const d in a)s[d]===void 0&&(s[d]=a[d],u=!0);if(u)return s}return i})}function YL(e){return Fh(e,gv(),t=>t.trim())}function QL(e){return Yi(e,"empty",t=>{const r=_v(t);return r===0||`Expected an empty ${e.type} but received one with a size of \`${r}\``})}function _v(e){return e instanceof Map||e instanceof Set?e.size:e.length}function eN(e,t,r={}){const{exclusive:i}=r;return Yi(e,"max",a=>i?a<t:a<=t||`Expected a ${e.type} less than ${i?"":"or equal to "}${t} but received \`${a}\``)}function tN(e,t,r={}){const{exclusive:i}=r;return Yi(e,"min",a=>i?a>t:a>=t||`Expected a ${e.type} greater than ${i?"":"or equal to "}${t} but received \`${a}\``)}function rN(e){return Yi(e,"nonempty",t=>_v(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function nN(e,t){return Yi(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function iN(e,t,r=t){const i=`Expected a ${e.type}`,a=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return Yi(e,"size",s=>{if(typeof s=="number"||s instanceof Date)return t<=s&&s<=r||`${i} ${a} but received \`${s}\``;if(s instanceof Map||s instanceof Set){const{size:u}=s;return t<=u&&u<=r||`${i} with a size ${a} but received one with a size of \`${u}\``}else{const{length:u}=s;return t<=u&&u<=r||`${i} with a length ${a} but received one with a length of \`${u}\``}})}function Yi(e,t,r){return new er({...e,*refiner(i,a){yield*e.refiner(i,a);const s=r(i,a),u=th(s,a,e,i);for(const d of u)yield{...d,refinement:t}}})}const oN=Object.freeze(Object.defineProperty({__proto__:null,Struct:er,StructError:cv,any:NL,array:BL,assert:lv,assign:AL,bigint:$L,boolean:xL,coerce:Fh,create:dv,date:DL,defaulted:XL,define:$r,deprecated:RL,dynamic:IL,empty:QL,enums:ML,func:FL,instance:jL,integer:kL,intersection:UL,is:Dh,lazy:TL,literal:qL,map:HL,mask:hv,max:eN,min:tN,never:Mh,nonempty:rN,nullable:WL,number:zL,object:ka,omit:OL,optional:pv,partial:PL,pattern:nN,pick:CL,record:GL,refine:Yi,regexp:VL,set:ZL,size:iN,string:gv,struct:LL,trimmed:YL,tuple:KL,type:Ua,union:JL,unknown:yv,validate:jo},Symbol.toStringTag,{value:"Module"})),Qi=ee.getAugmentedNamespace(oN);Object.defineProperty(lr,"__esModule",{value:!0});lr.assertExhaustive=lr.assertStruct=lr.assert=lr.AssertionError=void 0;const aN=Qi;function sN(e){return typeof e=="object"&&e!==null&&"message"in e}function uN(e){var t,r;return typeof((r=(t=e==null?void 0:e.prototype)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.name)=="string"}function fN(e){const t=sN(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}function bv(e,t){return uN(e)?new e({message:t}):e({message:t})}class jh extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}lr.AssertionError=jh;function cN(e,t="Assertion failed.",r=jh){if(!e)throw t instanceof Error?t:bv(r,t)}lr.assert=cN;function lN(e,t,r="Assertion failed",i=jh){try{(0,aN.assert)(e,t)}catch(a){throw bv(i,`${r}: ${fN(a)}.`)}}lr.assertStruct=lN;function dN(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}lr.assertExhaustive=dN;var qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.base64=void 0;const hN=Qi,pN=lr,gN=(e,t={})=>{var r,i;const a=(r=t.paddingRequired)!==null&&r!==void 0?r:!1,s=(i=t.characterSet)!==null&&i!==void 0?i:"base64";let u;s==="base64"?u=String.raw`[A-Za-z0-9+\/]`:((0,pN.assert)(s==="base64url"),u=String.raw`[-_A-Za-z0-9]`);let d;return a?d=new RegExp(`^(?:${u}{4})*(?:${u}{3}=|${u}{2}==)?$`,"u"):d=new RegExp(`^(?:${u}{4})*(?:${u}{2,3}|${u}{3}=|${u}{2}==)?$`,"u"),(0,hN.pattern)(e,d)};qa.base64=gN;var At={},Ha={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=Qi,r=lr;e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu);function i(l){return(0,t.is)(l,e.HexStruct)}e.isHexString=i;function a(l){return(0,t.is)(l,e.StrictHexStruct)}e.isStrictHexString=a;function s(l){(0,r.assert)(i(l),"Value must be a hexadecimal string.")}e.assertIsHexString=s;function u(l){(0,r.assert)(a(l),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=u;function d(l){return l.startsWith("0x")?l:l.startsWith("0X")?`0x${l.substring(2)}`:`0x${l}`}e.add0x=d;function c(l){return l.startsWith("0x")||l.startsWith("0X")?l.substring(2):l}e.remove0x=c})(Ha);Object.defineProperty(At,"__esModule",{value:!0});At.createDataView=At.concatBytes=At.valueToBytes=At.stringToBytes=At.numberToBytes=At.signedBigIntToBytes=At.bigIntToBytes=At.hexToBytes=At.bytesToString=At.bytesToNumber=At.bytesToSignedBigInt=At.bytesToBigInt=At.bytesToHex=At.assertIsBytes=At.isBytes=void 0;const Hr=lr,rh=Ha,v_=48,w_=58,E_=87;function yN(){const e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}const _N=yN();function kh(e){return e instanceof Uint8Array}At.isBytes=kh;function ko(e){(0,Hr.assert)(kh(e),"Value must be a Uint8Array.")}At.assertIsBytes=ko;function mv(e){if(ko(e),e.length===0)return"0x";const t=_N(),r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=t[e[i]];return(0,rh.add0x)(r.join(""))}At.bytesToHex=mv;function vv(e){ko(e);const t=mv(e);return BigInt(t)}At.bytesToBigInt=vv;function bN(e){ko(e);let t=BigInt(0);for(const r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(e.length*8,t)}At.bytesToSignedBigInt=bN;function mN(e){ko(e);const t=vv(e);return(0,Hr.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)}At.bytesToNumber=mN;function vN(e){return ko(e),new TextDecoder().decode(e)}At.bytesToString=vN;function Gu(e){var t;if(((t=e==null?void 0:e.toLowerCase)===null||t===void 0?void 0:t.call(e))==="0x")return new Uint8Array;(0,rh.assertIsHexString)(e);const r=(0,rh.remove0x)(e).toLowerCase(),i=r.length%2===0?r:`0${r}`,a=new Uint8Array(i.length/2);for(let s=0;s<a.length;s++){const u=i.charCodeAt(s*2),d=i.charCodeAt(s*2+1),c=u-(u<w_?v_:E_),l=d-(d<w_?v_:E_);a[s]=c*16+l}return a}At.hexToBytes=Gu;function wv(e){(0,Hr.assert)(typeof e=="bigint","Value must be a bigint."),(0,Hr.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");const t=e.toString(16);return Gu(t)}At.bigIntToBytes=wv;function wN(e,t){(0,Hr.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(t*8+-1))}function EN(e,t){(0,Hr.assert)(typeof e=="bigint","Value must be a bigint."),(0,Hr.assert)(typeof t=="number","Byte length must be a number."),(0,Hr.assert)(t>0,"Byte length must be greater than 0."),(0,Hr.assert)(wN(e,t),"Byte length is too small to represent the given value.");let r=e;const i=new Uint8Array(t);for(let a=0;a<i.length;a++)i[a]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return i.reverse()}At.signedBigIntToBytes=EN;function Ev(e){(0,Hr.assert)(typeof e=="number","Value must be a number."),(0,Hr.assert)(e>=0,"Value must be a non-negative number."),(0,Hr.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");const t=e.toString(16);return Gu(t)}At.numberToBytes=Ev;function Sv(e){return(0,Hr.assert)(typeof e=="string","Value must be a string."),new TextEncoder().encode(e)}At.stringToBytes=Sv;function Av(e){if(typeof e=="bigint")return wv(e);if(typeof e=="number")return Ev(e);if(typeof e=="string")return e.startsWith("0x")?Gu(e):Sv(e);if(kh(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}At.valueToBytes=Av;function SN(e){const t=new Array(e.length);let r=0;for(let a=0;a<e.length;a++){const s=Av(e[a]);t[a]=s,r+=s.length}const i=new Uint8Array(r);for(let a=0,s=0;a<t.length;a++)i.set(t[a],s),s+=t[a].length;return i}At.concatBytes=SN;function AN(e){if(typeof ee.dist.Buffer<"u"&&e instanceof ee.dist.Buffer){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}At.createDataView=AN;var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.ChecksumStruct=void 0;const S_=Qi,RN=qa;Vu.ChecksumStruct=(0,S_.size)((0,RN.base64)((0,S_.string)(),{paddingRequired:!0}),44,44);var In={};Object.defineProperty(In,"__esModule",{value:!0});In.createHex=In.createBytes=In.createBigInt=In.createNumber=void 0;const zt=Qi,IN=lr,Rv=At,Zu=Ha,Iv=(0,zt.union)([(0,zt.number)(),(0,zt.bigint)(),(0,zt.string)(),Zu.StrictHexStruct]),TN=(0,zt.coerce)((0,zt.number)(),Iv,Number),ON=(0,zt.coerce)((0,zt.bigint)(),Iv,BigInt);(0,zt.union)([Zu.StrictHexStruct,(0,zt.instance)(Uint8Array)]);const PN=(0,zt.coerce)((0,zt.instance)(Uint8Array),(0,zt.union)([Zu.StrictHexStruct]),Rv.hexToBytes),CN=(0,zt.coerce)(Zu.StrictHexStruct,(0,zt.instance)(Uint8Array),Rv.bytesToHex);function LN(e){try{const t=(0,zt.create)(e,TN);return(0,IN.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){throw t instanceof zt.StructError?new Error(`Expected a number-like value, got "${e}".`):t}}In.createNumber=LN;function NN(e){try{return(0,zt.create)(e,ON)}catch(t){throw t instanceof zt.StructError?new Error(`Expected a number-like value, got "${String(t.value)}".`):t}}In.createBigInt=NN;function BN(e){if(typeof e=="string"&&e.toLowerCase()==="0x")return new Uint8Array;try{return(0,zt.create)(e,PN)}catch(t){throw t instanceof zt.StructError?new Error(`Expected a bytes-like value, got "${String(t.value)}".`):t}}In.createBytes=BN;function $N(e){if(e instanceof Uint8Array&&e.length===0||typeof e=="string"&&e.toLowerCase()==="0x")return"0x";try{return(0,zt.create)(e,CN)}catch(t){throw t instanceof zt.StructError?new Error(`Expected a bytes-like value, got "${String(t.value)}".`):t}}In.createHex=$N;var Lo={},Tv=ee.commonjsGlobal&&ee.commonjsGlobal.__classPrivateFieldSet||function(e,t,r,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},Rr=ee.commonjsGlobal&&ee.commonjsGlobal.__classPrivateFieldGet||function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},cn,Sn;Object.defineProperty(Lo,"__esModule",{value:!0});Lo.FrozenSet=Lo.FrozenMap=void 0;class Uh{constructor(t){cn.set(this,void 0),Tv(this,cn,new Map(t),"f"),Object.freeze(this)}get size(){return Rr(this,cn,"f").size}[(cn=new WeakMap,Symbol.iterator)](){return Rr(this,cn,"f")[Symbol.iterator]()}entries(){return Rr(this,cn,"f").entries()}forEach(t,r){return Rr(this,cn,"f").forEach((i,a,s)=>t.call(r,i,a,this))}get(t){return Rr(this,cn,"f").get(t)}has(t){return Rr(this,cn,"f").has(t)}keys(){return Rr(this,cn,"f").keys()}values(){return Rr(this,cn,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,r])=>`${String(t)} => ${String(r)}`).join(", ")} `:""}}`}}Lo.FrozenMap=Uh;class qh{constructor(t){Sn.set(this,void 0),Tv(this,Sn,new Set(t),"f"),Object.freeze(this)}get size(){return Rr(this,Sn,"f").size}[(Sn=new WeakMap,Symbol.iterator)](){return Rr(this,Sn,"f")[Symbol.iterator]()}entries(){return Rr(this,Sn,"f").entries()}forEach(t,r){return Rr(this,Sn,"f").forEach((i,a,s)=>t.call(r,i,a,this))}has(t){return Rr(this,Sn,"f").has(t)}keys(){return Rr(this,Sn,"f").keys()}values(){return Rr(this,Sn,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(", ")} `:""}}`}}Lo.FrozenSet=qh;Object.freeze(Uh);Object.freeze(Uh.prototype);Object.freeze(qh);Object.freeze(qh.prototype);var Ov={};Object.defineProperty(Ov,"__esModule",{value:!0});var Pv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=void 0;const t=Qi,r=lr,i=()=>(0,t.define)("finite number",H=>(0,t.is)(H,(0,t.number)())&&Number.isFinite(H));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),i(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.define)("Json",(H,Q)=>{function ie(he,le){const ve=[...le.validator(he,Q)];return ve.length>0?ve:!0}try{const he=ie(H,e.UnsafeJsonStruct);return he!==!0?he:ie(JSON.parse(JSON.stringify(H)),e.UnsafeJsonStruct)}catch(he){return he instanceof RangeError?"Circular reference detected":!1}});function a(H){return(0,t.is)(H,e.JsonStruct)}e.isValidJson=a;function s(H){(0,r.assertStruct)(H,e.JsonStruct,"Invalid JSON value");const Q=JSON.stringify(H);return new TextEncoder().encode(Q).byteLength}e.getJsonSize=s,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]);function u(H){return(0,t.is)(H,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=u;function d(H,Q){(0,r.assertStruct)(H,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",Q)}e.assertIsJsonRpcNotification=d;function c(H){return(0,t.is)(H,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=c;function l(H,Q){(0,r.assertStruct)(H,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",Q)}e.assertIsJsonRpcRequest=l,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function h(H){return(0,t.is)(H,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=h;function g(H,Q){(0,r.assertStruct)(H,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",Q)}e.assertIsPendingJsonRpcResponse=g;function b(H){return(0,t.is)(H,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=b;function _(H,Q){(0,r.assertStruct)(H,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",Q)}e.assertIsJsonRpcResponse=_;function T(H){return(0,t.is)(H,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=T;function k(H,Q){(0,r.assertStruct)(H,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",Q)}e.assertIsJsonRpcSuccess=k;function E(H){return(0,t.is)(H,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=E;function R(H,Q){(0,r.assertStruct)(H,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",Q)}e.assertIsJsonRpcFailure=R;function v(H){return(0,t.is)(H,e.JsonRpcErrorStruct)}e.isJsonRpcError=v;function w(H,Q){(0,r.assertStruct)(H,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",Q)}e.assertIsJsonRpcError=w;function S(H){const{permitEmptyString:Q,permitFractions:ie,permitNull:he}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},H);return Ee=>!!(typeof Ee=="number"&&(ie||Number.isInteger(Ee))||typeof Ee=="string"&&(Q||Ee.length>0)||he&&Ee===null)}e.getJsonRpcIdValidator=S})(Pv);var Cv={};Object.defineProperty(Cv,"__esModule",{value:!0});var No={},xN=ee.commonjsGlobal&&ee.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(No,"__esModule",{value:!0});No.createModuleLogger=No.createProjectLogger=void 0;const DN=xN(nO),MN=(0,DN.default)("metamask");function FN(e){return MN.extend(e)}No.createProjectLogger=FN;function jN(e,t){return e.extend(t)}No.createModuleLogger=jN;var Lv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(l){return Array.isArray(l)&&l.length>0}e.isNonEmptyArray=t;function r(l){return l==null}e.isNullOrUndefined=r;function i(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}e.isObject=i;const a=(l,h)=>Object.hasOwnProperty.call(l,h);e.hasProperty=a,function(l){l[l.Null=4]="Null",l[l.Comma=1]="Comma",l[l.Wrapper=1]="Wrapper",l[l.True=4]="True",l[l.False=5]="False",l[l.Quote=1]="Quote",l[l.Colon=1]="Colon",l[l.Date=24]="Date"}(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function s(l){if(typeof l!="object"||l===null)return!1;try{let h=l;for(;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);return Object.getPrototypeOf(l)===h}catch{return!1}}e.isPlainObject=s;function u(l){return l.charCodeAt(0)<=127}e.isASCII=u;function d(l){var h;return l.split("").reduce((b,_)=>u(_)?b+1:b+2,0)+((h=l.match(e.ESCAPE_CHARACTERS_REGEXP))!==null&&h!==void 0?h:[]).length}e.calculateStringSize=d;function c(l){return l.toString().length}e.calculateNumberSize=c})(Lv);var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.hexToBigInt=Tn.hexToNumber=Tn.bigIntToHex=Tn.numberToHex=void 0;const Oo=lr,Pa=Ha,kN=e=>((0,Oo.assert)(typeof e=="number","Value must be a number."),(0,Oo.assert)(e>=0,"Value must be a non-negative number."),(0,Oo.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,Pa.add0x)(e.toString(16)));Tn.numberToHex=kN;const UN=e=>((0,Oo.assert)(typeof e=="bigint","Value must be a bigint."),(0,Oo.assert)(e>=0,"Value must be a non-negative bigint."),(0,Pa.add0x)(e.toString(16)));Tn.bigIntToHex=UN;const qN=e=>{(0,Pa.assertIsHexString)(e);const t=parseInt(e,16);return(0,Oo.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};Tn.hexToNumber=qN;const HN=e=>((0,Pa.assertIsHexString)(e),BigInt((0,Pa.add0x)(e)));Tn.hexToBigInt=HN;var Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});var Bv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,function(s){s[s.Millisecond=1]="Millisecond",s[s.Second=1e3]="Second",s[s.Minute=6e4]="Minute",s[s.Hour=36e5]="Hour",s[s.Day=864e5]="Day",s[s.Week=6048e5]="Week",s[s.Year=31536e6]="Year"}(e.Duration||(e.Duration={}));const t=s=>Number.isInteger(s)&&s>=0,r=(s,u)=>{if(!t(s))throw new Error(`"${u}" must be a non-negative integer. Received: "${s}".`)};function i(s,u){return r(s,"count"),s*u}e.inMilliseconds=i;function a(s){return r(s,"timestamp"),Date.now()-s}e.timeSince=a})(Bv);var $v={};Object.defineProperty($v,"__esModule",{value:!0});var xv={},nh={exports:{}};const WN="2.0.0",Dv=256,zN=Number.MAX_SAFE_INTEGER||9007199254740991,GN=16,VN=Dv-6,ZN=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Ku={MAX_LENGTH:Dv,MAX_SAFE_COMPONENT_LENGTH:GN,MAX_SAFE_BUILD_LENGTH:VN,MAX_SAFE_INTEGER:zN,RELEASE_TYPES:ZN,SEMVER_SPEC_VERSION:WN,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const KN=typeof ee.dist.process=="object"&&ee.dist.process.env&&ee.dist.process.env.NODE_DEBUG&&/\bsemver\b/i.test(ee.dist.process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Ju=KN;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=Ku,s=Ju;t=e.exports={};const u=t.re=[],d=t.safeRe=[],c=t.src=[],l=t.t={};let h=0;const g="[a-zA-Z0-9-]",b=[["\\s",1],["\\d",a],[g,i]],_=k=>{for(const[E,R]of b)k=k.split(`${E}*`).join(`${E}{0,${R}}`).split(`${E}+`).join(`${E}{1,${R}}`);return k},T=(k,E,R)=>{const v=_(E),w=h++;s(k,w,E),l[k]=w,c[w]=E,u[w]=new RegExp(E,R?"g":void 0),d[w]=new RegExp(v,R?"g":void 0)};T("NUMERICIDENTIFIER","0|[1-9]\\d*"),T("NUMERICIDENTIFIERLOOSE","\\d+"),T("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`),T("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),T("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),T("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),T("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),T("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),T("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),T("BUILDIDENTIFIER",`${g}+`),T("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),T("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),T("FULL",`^${c[l.FULLPLAIN]}$`),T("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),T("LOOSE",`^${c[l.LOOSEPLAIN]}$`),T("GTLT","((?:<|>)?=?)"),T("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),T("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),T("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),T("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),T("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),T("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),T("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),T("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),T("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`),T("COERCERTL",c[l.COERCE],!0),T("COERCERTLFULL",c[l.COERCEFULL],!0),T("LONETILDE","(?:~>?)"),T("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",T("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),T("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),T("LONECARET","(?:\\^)"),T("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",T("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),T("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),T("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),T("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),T("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",T("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),T("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),T("STAR","(<|>)?=?\\s*\\*"),T("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),T("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(nh,nh.exports);var Wa=nh.exports;const JN=Object.freeze({loose:!0}),XN=Object.freeze({}),YN=e=>e?typeof e!="object"?JN:e:XN;var Hh=YN;const A_=/^[0-9]+$/,Mv=(e,t)=>{const r=A_.test(e),i=A_.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},QN=(e,t)=>Mv(t,e);var Fv={compareIdentifiers:Mv,rcompareIdentifiers:QN};const tu=Ju,{MAX_LENGTH:R_,MAX_SAFE_INTEGER:ru}=Ku,{safeRe:I_,t:T_}=Wa,eB=Hh,{compareIdentifiers:wo}=Fv;let tB=class An{constructor(t,r){if(r=eB(r),t instanceof An){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>R_)throw new TypeError(`version is longer than ${R_} characters`);tu("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?I_[T_.LOOSE]:I_[T_.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ru||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ru||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ru||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const s=+a;if(s>=0&&s<ru)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(tu("SemVer.compare",this.version,this.options,t),!(t instanceof An)){if(typeof t=="string"&&t===this.version)return 0;t=new An(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof An||(t=new An(t,this.options)),wo(this.major,t.major)||wo(this.minor,t.minor)||wo(this.patch,t.patch)}comparePre(t){if(t instanceof An||(t=new An(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const i=this.prerelease[r],a=t.prerelease[r];if(tu("prerelease compare",r,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return wo(i,a)}while(++r)}compareBuild(t){t instanceof An||(t=new An(t,this.options));let r=0;do{const i=this.build[r],a=t.build[r];if(tu("build compare",r,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return wo(i,a)}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const a=Number(i)?1:0;if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(r){let s=[r,a];i===!1&&(s=[r]),wo(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Tr=tB;const O_=Tr,rB=(e,t,r=!1)=>{if(e instanceof O_)return e;try{return new O_(e,t)}catch(i){if(!r)return null;throw i}};var Uo=rB;const nB=Uo,iB=(e,t)=>{const r=nB(e,t);return r?r.version:null};var oB=iB;const aB=Uo,sB=(e,t)=>{const r=aB(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var uB=sB;const P_=Tr,fB=(e,t,r,i,a)=>{typeof r=="string"&&(a=i,i=r,r=void 0);try{return new P_(e instanceof P_?e.version:e,r).inc(t,i,a).version}catch{return null}};var cB=fB;const C_=Uo,lB=(e,t)=>{const r=C_(e,null,!0),i=C_(t,null,!0),a=r.compare(i);if(a===0)return null;const s=a>0,u=s?r:i,d=s?i:r,c=!!u.prerelease.length;if(!!d.prerelease.length&&!c)return!d.patch&&!d.minor?"major":u.patch?"patch":u.minor?"minor":"major";const h=c?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"};var dB=lB;const hB=Tr,pB=(e,t)=>new hB(e,t).major;var gB=pB;const yB=Tr,_B=(e,t)=>new yB(e,t).minor;var bB=_B;const mB=Tr,vB=(e,t)=>new mB(e,t).patch;var wB=vB;const EB=Uo,SB=(e,t)=>{const r=EB(e,t);return r&&r.prerelease.length?r.prerelease:null};var AB=SB;const L_=Tr,RB=(e,t,r)=>new L_(e,r).compare(new L_(t,r));var pn=RB;const IB=pn,TB=(e,t,r)=>IB(t,e,r);var OB=TB;const PB=pn,CB=(e,t)=>PB(e,t,!0);var LB=CB;const N_=Tr,NB=(e,t,r)=>{const i=new N_(e,r),a=new N_(t,r);return i.compare(a)||i.compareBuild(a)};var Wh=NB;const BB=Wh,$B=(e,t)=>e.sort((r,i)=>BB(r,i,t));var xB=$B;const DB=Wh,MB=(e,t)=>e.sort((r,i)=>DB(i,r,t));var FB=MB;const jB=pn,kB=(e,t,r)=>jB(e,t,r)>0;var Xu=kB;const UB=pn,qB=(e,t,r)=>UB(e,t,r)<0;var zh=qB;const HB=pn,WB=(e,t,r)=>HB(e,t,r)===0;var jv=WB;const zB=pn,GB=(e,t,r)=>zB(e,t,r)!==0;var kv=GB;const VB=pn,ZB=(e,t,r)=>VB(e,t,r)>=0;var Gh=ZB;const KB=pn,JB=(e,t,r)=>KB(e,t,r)<=0;var Vh=JB;const XB=jv,YB=kv,QB=Xu,e$=Gh,t$=zh,r$=Vh,n$=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return XB(e,r,i);case"!=":return YB(e,r,i);case">":return QB(e,r,i);case">=":return e$(e,r,i);case"<":return t$(e,r,i);case"<=":return r$(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}};var Uv=n$;const i$=Tr,o$=Uo,{safeRe:nu,t:iu}=Wa,a$=(e,t)=>{if(e instanceof i$)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?nu[iu.COERCEFULL]:nu[iu.COERCE]);else{const c=t.includePrerelease?nu[iu.COERCERTLFULL]:nu[iu.COERCERTL];let l;for(;(l=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;const i=r[2],a=r[3]||"0",s=r[4]||"0",u=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return o$(`${i}.${a}.${s}${u}${d}`,t)};var s$=a$;class u${constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(t,r)}return this}}var f$=u$,ed,B_;function gn(){if(B_)return ed;B_=1;const e=/\s+/g;class t{constructor(Z,ae){if(ae=a(ae),Z instanceof t)return Z.loose===!!ae.loose&&Z.includePrerelease===!!ae.includePrerelease?Z:new t(Z.raw,ae);if(Z instanceof s)return this.raw=Z.value,this.set=[[Z]],this.formatted=void 0,this;if(this.options=ae,this.loose=!!ae.loose,this.includePrerelease=!!ae.includePrerelease,this.raw=Z.trim().replace(e," "),this.set=this.raw.split("||").map(X=>this.parseRange(X.trim())).filter(X=>X.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const X=this.set[0];if(this.set=this.set.filter(ne=>!k(ne[0])),this.set.length===0)this.set=[X];else if(this.set.length>1){for(const ne of this.set)if(ne.length===1&&E(ne[0])){this.set=[ne];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Z=0;Z<this.set.length;Z++){Z>0&&(this.formatted+="||");const ae=this.set[Z];for(let X=0;X<ae.length;X++)X>0&&(this.formatted+=" "),this.formatted+=ae[X].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Z){const X=((this.options.includePrerelease&&_)|(this.options.loose&&T))+":"+Z,ne=i.get(X);if(ne)return ne;const F=this.options.loose,x=F?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];Z=Z.replace(x,m(this.options.includePrerelease)),u("hyphen replace",Z),Z=Z.replace(c[l.COMPARATORTRIM],h),u("comparator trim",Z),Z=Z.replace(c[l.TILDETRIM],g),u("tilde trim",Z),Z=Z.replace(c[l.CARETTRIM],b),u("caret trim",Z);let Y=Z.split(" ").map(U=>v(U,this.options)).join(" ").split(/\s+/).map(U=>ve(U,this.options));F&&(Y=Y.filter(U=>(u("loose invalid filter",U,this.options),!!U.match(c[l.COMPARATORLOOSE])))),u("range list",Y);const B=new Map,j=Y.map(U=>new s(U,this.options));for(const U of j){if(k(U))return[U];B.set(U.value,U)}B.size>1&&B.has("")&&B.delete("");const $=[...B.values()];return i.set(X,$),$}intersects(Z,ae){if(!(Z instanceof t))throw new TypeError("a Range is required");return this.set.some(X=>R(X,ae)&&Z.set.some(ne=>R(ne,ae)&&X.every(F=>ne.every(x=>F.intersects(x,ae)))))}test(Z){if(!Z)return!1;if(typeof Z=="string")try{Z=new d(Z,this.options)}catch{return!1}for(let ae=0;ae<this.set.length;ae++)if(O(this.set[ae],Z,this.options))return!0;return!1}}ed=t;const r=f$,i=new r,a=Hh,s=Yu(),u=Ju,d=Tr,{safeRe:c,t:l,comparatorTrimReplace:h,tildeTrimReplace:g,caretTrimReplace:b}=Wa,{FLAG_INCLUDE_PRERELEASE:_,FLAG_LOOSE:T}=Ku,k=P=>P.value==="<0.0.0-0",E=P=>P.value==="",R=(P,Z)=>{let ae=!0;const X=P.slice();let ne=X.pop();for(;ae&&X.length;)ae=X.every(F=>ne.intersects(F,Z)),ne=X.pop();return ae},v=(P,Z)=>(u("comp",P,Z),P=Q(P,Z),u("caret",P),P=S(P,Z),u("tildes",P),P=he(P,Z),u("xrange",P),P=Ee(P,Z),u("stars",P),P),w=P=>!P||P.toLowerCase()==="x"||P==="*",S=(P,Z)=>P.trim().split(/\s+/).map(ae=>H(ae,Z)).join(" "),H=(P,Z)=>{const ae=Z.loose?c[l.TILDELOOSE]:c[l.TILDE];return P.replace(ae,(X,ne,F,x,Y)=>{u("tilde",P,X,ne,F,x,Y);let B;return w(ne)?B="":w(F)?B=`>=${ne}.0.0 <${+ne+1}.0.0-0`:w(x)?B=`>=${ne}.${F}.0 <${ne}.${+F+1}.0-0`:Y?(u("replaceTilde pr",Y),B=`>=${ne}.${F}.${x}-${Y} <${ne}.${+F+1}.0-0`):B=`>=${ne}.${F}.${x} <${ne}.${+F+1}.0-0`,u("tilde return",B),B})},Q=(P,Z)=>P.trim().split(/\s+/).map(ae=>ie(ae,Z)).join(" "),ie=(P,Z)=>{u("caret",P,Z);const ae=Z.loose?c[l.CARETLOOSE]:c[l.CARET],X=Z.includePrerelease?"-0":"";return P.replace(ae,(ne,F,x,Y,B)=>{u("caret",P,ne,F,x,Y,B);let j;return w(F)?j="":w(x)?j=`>=${F}.0.0${X} <${+F+1}.0.0-0`:w(Y)?F==="0"?j=`>=${F}.${x}.0${X} <${F}.${+x+1}.0-0`:j=`>=${F}.${x}.0${X} <${+F+1}.0.0-0`:B?(u("replaceCaret pr",B),F==="0"?x==="0"?j=`>=${F}.${x}.${Y}-${B} <${F}.${x}.${+Y+1}-0`:j=`>=${F}.${x}.${Y}-${B} <${F}.${+x+1}.0-0`:j=`>=${F}.${x}.${Y}-${B} <${+F+1}.0.0-0`):(u("no pr"),F==="0"?x==="0"?j=`>=${F}.${x}.${Y}${X} <${F}.${x}.${+Y+1}-0`:j=`>=${F}.${x}.${Y}${X} <${F}.${+x+1}.0-0`:j=`>=${F}.${x}.${Y} <${+F+1}.0.0-0`),u("caret return",j),j})},he=(P,Z)=>(u("replaceXRanges",P,Z),P.split(/\s+/).map(ae=>le(ae,Z)).join(" ")),le=(P,Z)=>{P=P.trim();const ae=Z.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return P.replace(ae,(X,ne,F,x,Y,B)=>{u("xRange",P,X,ne,F,x,Y,B);const j=w(F),$=j||w(x),U=$||w(Y),G=U;return ne==="="&&G&&(ne=""),B=Z.includePrerelease?"-0":"",j?ne===">"||ne==="<"?X="<0.0.0-0":X="*":ne&&G?($&&(x=0),Y=0,ne===">"?(ne=">=",$?(F=+F+1,x=0,Y=0):(x=+x+1,Y=0)):ne==="<="&&(ne="<",$?F=+F+1:x=+x+1),ne==="<"&&(B="-0"),X=`${ne+F}.${x}.${Y}${B}`):$?X=`>=${F}.0.0${B} <${+F+1}.0.0-0`:U&&(X=`>=${F}.${x}.0${B} <${F}.${+x+1}.0-0`),u("xRange return",X),X})},Ee=(P,Z)=>(u("replaceStars",P,Z),P.trim().replace(c[l.STAR],"")),ve=(P,Z)=>(u("replaceGTE0",P,Z),P.trim().replace(c[Z.includePrerelease?l.GTE0PRE:l.GTE0],"")),m=P=>(Z,ae,X,ne,F,x,Y,B,j,$,U,G)=>(w(X)?ae="":w(ne)?ae=`>=${X}.0.0${P?"-0":""}`:w(F)?ae=`>=${X}.${ne}.0${P?"-0":""}`:x?ae=`>=${ae}`:ae=`>=${ae}${P?"-0":""}`,w(j)?B="":w($)?B=`<${+j+1}.0.0-0`:w(U)?B=`<${j}.${+$+1}.0-0`:G?B=`<=${j}.${$}.${U}-${G}`:P?B=`<${j}.${$}.${+U+1}-0`:B=`<=${B}`,`${ae} ${B}`.trim()),O=(P,Z,ae)=>{for(let X=0;X<P.length;X++)if(!P[X].test(Z))return!1;if(Z.prerelease.length&&!ae.includePrerelease){for(let X=0;X<P.length;X++)if(u(P[X].semver),P[X].semver!==s.ANY&&P[X].semver.prerelease.length>0){const ne=P[X].semver;if(ne.major===Z.major&&ne.minor===Z.minor&&ne.patch===Z.patch)return!0}return!1}return!0};return ed}var td,$_;function Yu(){if($_)return td;$_=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(h,g){if(g=r(g),h instanceof t){if(h.loose===!!g.loose)return h;h=h.value}h=h.trim().split(/\s+/).join(" "),u("comparator",h,g),this.options=g,this.loose=!!g.loose,this.parse(h),this.semver===e?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(h){const g=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],b=h.match(g);if(!b)throw new TypeError(`Invalid comparator: ${h}`);this.operator=b[1]!==void 0?b[1]:"",this.operator==="="&&(this.operator=""),b[2]?this.semver=new d(b[2],this.options.loose):this.semver=e}toString(){return this.value}test(h){if(u("Comparator.test",h,this.options.loose),this.semver===e||h===e)return!0;if(typeof h=="string")try{h=new d(h,this.options)}catch{return!1}return s(h,this.operator,this.semver,this.options)}intersects(h,g){if(!(h instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(h.value,g).test(this.value):h.operator===""?h.value===""?!0:new c(this.value,g).test(h.semver):(g=r(g),g.includePrerelease&&(this.value==="<0.0.0-0"||h.value==="<0.0.0-0")||!g.includePrerelease&&(this.value.startsWith("<0.0.0")||h.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&h.operator.startsWith(">")||this.operator.startsWith("<")&&h.operator.startsWith("<")||this.semver.version===h.semver.version&&this.operator.includes("=")&&h.operator.includes("=")||s(this.semver,"<",h.semver,g)&&this.operator.startsWith(">")&&h.operator.startsWith("<")||s(this.semver,">",h.semver,g)&&this.operator.startsWith("<")&&h.operator.startsWith(">")))}}td=t;const r=Hh,{safeRe:i,t:a}=Wa,s=Uv,u=Ju,d=Tr,c=gn();return td}const c$=gn(),l$=(e,t,r)=>{try{t=new c$(t,r)}catch{return!1}return t.test(e)};var Qu=l$;const d$=gn(),h$=(e,t)=>new d$(e,t).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));var p$=h$;const g$=Tr,y$=gn(),_$=(e,t,r)=>{let i=null,a=null,s=null;try{s=new y$(t,r)}catch{return null}return e.forEach(u=>{s.test(u)&&(!i||a.compare(u)===-1)&&(i=u,a=new g$(i,r))}),i};var b$=_$;const m$=Tr,v$=gn(),w$=(e,t,r)=>{let i=null,a=null,s=null;try{s=new v$(t,r)}catch{return null}return e.forEach(u=>{s.test(u)&&(!i||a.compare(u)===1)&&(i=u,a=new m$(i,r))}),i};var E$=w$;const rd=Tr,S$=gn(),x_=Xu,A$=(e,t)=>{e=new S$(e,t);let r=new rd("0.0.0");if(e.test(r)||(r=new rd("0.0.0-0"),e.test(r)))return r;r=null;for(let i=0;i<e.set.length;++i){const a=e.set[i];let s=null;a.forEach(u=>{const d=new rd(u.semver.version);switch(u.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!s||x_(d,s))&&(s=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),s&&(!r||x_(r,s))&&(r=s)}return r&&e.test(r)?r:null};var R$=A$;const I$=gn(),T$=(e,t)=>{try{return new I$(e,t).range||"*"}catch{return null}};var O$=T$;const P$=Tr,qv=Yu(),{ANY:C$}=qv,L$=gn(),N$=Qu,D_=Xu,M_=zh,B$=Vh,$$=Gh,x$=(e,t,r,i)=>{e=new P$(e,i),t=new L$(t,i);let a,s,u,d,c;switch(r){case">":a=D_,s=B$,u=M_,d=">",c=">=";break;case"<":a=M_,s=$$,u=D_,d="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N$(e,t,i))return!1;for(let l=0;l<t.set.length;++l){const h=t.set[l];let g=null,b=null;if(h.forEach(_=>{_.semver===C$&&(_=new qv(">=0.0.0")),g=g||_,b=b||_,a(_.semver,g.semver,i)?g=_:u(_.semver,b.semver,i)&&(b=_)}),g.operator===d||g.operator===c||(!b.operator||b.operator===d)&&s(e,b.semver))return!1;if(b.operator===c&&u(e,b.semver))return!1}return!0};var Zh=x$;const D$=Zh,M$=(e,t,r)=>D$(e,t,">",r);var F$=M$;const j$=Zh,k$=(e,t,r)=>j$(e,t,"<",r);var U$=k$;const F_=gn(),q$=(e,t,r)=>(e=new F_(e,r),t=new F_(t,r),e.intersects(t,r));var H$=q$;const W$=Qu,z$=pn;var G$=(e,t,r)=>{const i=[];let a=null,s=null;const u=e.sort((h,g)=>z$(h,g,r));for(const h of u)W$(h,t,r)?(s=h,a||(a=h)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const d=[];for(const[h,g]of i)h===g?d.push(h):!g&&h===u[0]?d.push("*"):g?h===u[0]?d.push(`<=${g}`):d.push(`${h} - ${g}`):d.push(`>=${h}`);const c=d.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return c.length<l.length?c:t};const j_=gn(),Kh=Yu(),{ANY:nd}=Kh,ga=Qu,Jh=pn,V$=(e,t,r={})=>{if(e===t)return!0;e=new j_(e,r),t=new j_(t,r);let i=!1;e:for(const a of e.set){for(const s of t.set){const u=K$(a,s,r);if(i=i||u!==null,u)continue e}if(i)return!1}return!0},Z$=[new Kh(">=0.0.0-0")],k_=[new Kh(">=0.0.0")],K$=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===nd){if(t.length===1&&t[0].semver===nd)return!0;r.includePrerelease?e=Z$:e=k_}if(t.length===1&&t[0].semver===nd){if(r.includePrerelease)return!0;t=k_}const i=new Set;let a,s;for(const _ of e)_.operator===">"||_.operator===">="?a=U_(a,_,r):_.operator==="<"||_.operator==="<="?s=q_(s,_,r):i.add(_.semver);if(i.size>1)return null;let u;if(a&&s){if(u=Jh(a.semver,s.semver,r),u>0)return null;if(u===0&&(a.operator!==">="||s.operator!=="<="))return null}for(const _ of i){if(a&&!ga(_,String(a),r)||s&&!ga(_,String(s),r))return null;for(const T of t)if(!ga(_,String(T),r))return!1;return!0}let d,c,l,h,g=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,b=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1;g&&g.prerelease.length===1&&s.operator==="<"&&g.prerelease[0]===0&&(g=!1);for(const _ of t){if(h=h||_.operator===">"||_.operator===">=",l=l||_.operator==="<"||_.operator==="<=",a){if(b&&_.semver.prerelease&&_.semver.prerelease.length&&_.semver.major===b.major&&_.semver.minor===b.minor&&_.semver.patch===b.patch&&(b=!1),_.operator===">"||_.operator===">="){if(d=U_(a,_,r),d===_&&d!==a)return!1}else if(a.operator===">="&&!ga(a.semver,String(_),r))return!1}if(s){if(g&&_.semver.prerelease&&_.semver.prerelease.length&&_.semver.major===g.major&&_.semver.minor===g.minor&&_.semver.patch===g.patch&&(g=!1),_.operator==="<"||_.operator==="<="){if(c=q_(s,_,r),c===_&&c!==s)return!1}else if(s.operator==="<="&&!ga(s.semver,String(_),r))return!1}if(!_.operator&&(s||a)&&u!==0)return!1}return!(a&&l&&!s&&u!==0||s&&h&&!a&&u!==0||b||g)},U_=(e,t,r)=>{if(!e)return t;const i=Jh(e.semver,t.semver,r);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},q_=(e,t,r)=>{if(!e)return t;const i=Jh(e.semver,t.semver,r);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var J$=V$;const id=Wa,H_=Ku,X$=Tr,W_=Fv,Y$=Uo,Q$=oB,e3=uB,t3=cB,r3=dB,n3=gB,i3=bB,o3=wB,a3=AB,s3=pn,u3=OB,f3=LB,c3=Wh,l3=xB,d3=FB,h3=Xu,p3=zh,g3=jv,y3=kv,_3=Gh,b3=Vh,m3=Uv,v3=s$,w3=Yu(),E3=gn(),S3=Qu,A3=p$,R3=b$,I3=E$,T3=R$,O3=O$,P3=Zh,C3=F$,L3=U$,N3=H$,B3=G$,$3=J$;var x3={parse:Y$,valid:Q$,clean:e3,inc:t3,diff:r3,major:n3,minor:i3,patch:o3,prerelease:a3,compare:s3,rcompare:u3,compareLoose:f3,compareBuild:c3,sort:l3,rsort:d3,gt:h3,lt:p3,eq:g3,neq:y3,gte:_3,lte:b3,cmp:m3,coerce:v3,Comparator:w3,Range:E3,satisfies:S3,toComparators:A3,maxSatisfying:R3,minSatisfying:I3,minVersion:T3,validRange:O3,outside:P3,gtr:C3,ltr:L3,intersects:N3,simplifyRange:B3,subset:$3,SemVer:X$,re:id.re,src:id.src,tokens:id.t,SEMVER_SPEC_VERSION:H_.SEMVER_SPEC_VERSION,RELEASE_TYPES:H_.RELEASE_TYPES,compareIdentifiers:W_.compareIdentifiers,rcompareIdentifiers:W_.rcompareIdentifiers};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=x3,r=Qi,i=lr;e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",g=>(0,t.valid)(g)===null?`Expected SemVer version, got "${g}"`:!0),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",g=>(0,t.validRange)(g)===null?`Expected SemVer range, got "${g}"`:!0);function a(g){return(0,r.is)(g,e.VersionStruct)}e.isValidSemVerVersion=a;function s(g){return(0,r.is)(g,e.VersionRangeStruct)}e.isValidSemVerRange=s;function u(g){(0,i.assertStruct)(g,e.VersionStruct)}e.assertIsSemVerVersion=u;function d(g){(0,i.assertStruct)(g,e.VersionRangeStruct)}e.assertIsSemVerRange=d;function c(g,b){return(0,t.gt)(g,b)}e.gtVersion=c;function l(g,b){return(0,t.gtr)(g,b)}e.gtRange=l;function h(g,b){return(0,t.satisfies)(g,b,{includePrerelease:!0})}e.satisfiesVersionRange=h})(xv);(function(e){var t=ee.commonjsGlobal&&ee.commonjsGlobal.__createBinding||(Object.create?function(i,a,s,u){u===void 0&&(u=s);var d=Object.getOwnPropertyDescriptor(a,s);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,u,d)}:function(i,a,s,u){u===void 0&&(u=s),i[u]=a[s]}),r=ee.commonjsGlobal&&ee.commonjsGlobal.__exportStar||function(i,a){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,i,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(lr,e),r(qa,e),r(At,e),r(Vu,e),r(In,e),r(Lo,e),r(Ov,e),r(Ha,e),r(Pv,e),r(Cv,e),r(No,e),r(Lv,e),r(Tn,e),r(Nv,e),r(Bv,e),r($v,e),r(xv,e)})($h);var ef={},Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.errorValues=Ai.errorCodes=void 0;Ai.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Ai.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeCause=e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=$h,r=Ai,i=r.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",s={code:i,message:u(i)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function u(_,T=a){if(d(_)){const k=_.toString();if((0,t.hasProperty)(r.errorValues,k))return r.errorValues[k].message;if(h(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return T}e.getMessageFromCode=u;function d(_){return Number.isInteger(_)}e.isValidCode=d;function c(_,{fallbackError:T=s,shouldIncludeStack:k=!0}={}){if(!(0,t.isJsonRpcError)(T))throw new Error("Must provide fallback error with integer number code and string message.");const E=l(_,T);return k||delete E.stack,E}e.serializeError=c;function l(_,T){if(_&&typeof _=="object"&&"serialize"in _&&typeof _.serialize=="function")return _.serialize();if((0,t.isJsonRpcError)(_))return _;const k=g(_);return{...T,data:{cause:k}}}function h(_){return _>=-32099&&_<=-32e3}function g(_){return Array.isArray(_)?_.map(T=>(0,t.isValidJson)(T)?T:(0,t.isObject)(T)?b(T):null):(0,t.isObject)(_)?b(_):(0,t.isValidJson)(_)?_:null}e.serializeCause=g;function b(_){return Object.getOwnPropertyNames(_).reduce((T,k)=>{const E=_[k];return(0,t.isValidJson)(E)&&(T[k]=E),T},{})}})(ef);var D3=ee.commonjsGlobal&&ee.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.EthereumProviderError=Vi.JsonRpcError=void 0;const M3=$h,F3=D3(ph),j3=ef;class Hv extends Error{constructor(t,r,i){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a non-empty string.');super(r),this.code=t,i!==void 0&&(this.data=i)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data,(0,M3.isPlainObject)(this.data)&&(t.data.cause=(0,j3.serializeCause)(this.data.cause))),this.stack&&(t.stack=this.stack),t}toString(){return(0,F3.default)(this.serialize(),q3,2)}}Vi.JsonRpcError=Hv;class k3 extends Hv{constructor(t,r,i){if(!U3(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,i)}}Vi.EthereumProviderError=k3;function U3(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function q3(e,t){if(t!=="[Circular]")return t}var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.providerErrors=Bo.rpcErrors=void 0;const Xh=Vi,br=Ai,Wv=ef;Bo.rpcErrors={parse:e=>Qr(br.errorCodes.rpc.parse,e),invalidRequest:e=>Qr(br.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Qr(br.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Qr(br.errorCodes.rpc.methodNotFound,e),internal:e=>Qr(br.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Qr(t,e)},invalidInput:e=>Qr(br.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Qr(br.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Qr(br.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Qr(br.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Qr(br.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Qr(br.errorCodes.rpc.limitExceeded,e)};Bo.providerErrors={userRejectedRequest:e=>ya(br.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ya(br.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ya(br.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ya(br.errorCodes.provider.disconnected,e),chainDisconnected:e=>ya(br.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Xh.EthereumProviderError(t,r,i)}};function Qr(e,t){const[r,i]=zv(t);return new Xh.JsonRpcError(e,r??(0,Wv.getMessageFromCode)(e),i)}function ya(e,t){const[r,i]=zv(t);return new Xh.EthereumProviderError(e,r??(0,Wv.getMessageFromCode)(e),i)}function zv(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t??void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.errorCodes=e.providerErrors=e.rpcErrors=e.getMessageFromCode=e.serializeError=e.serializeCause=e.EthereumProviderError=e.JsonRpcError=void 0;var t=Vi;Object.defineProperty(e,"JsonRpcError",{enumerable:!0,get:function(){return t.JsonRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});var r=ef;Object.defineProperty(e,"serializeCause",{enumerable:!0,get:function(){return r.serializeCause}}),Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});var i=Bo;Object.defineProperty(e,"rpcErrors",{enumerable:!0,get:function(){return i.rpcErrors}}),Object.defineProperty(e,"providerErrors",{enumerable:!0,get:function(){return i.providerErrors}});var a=Ai;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(vL);var Yh={exports:{}},H3=Gv;function Gv(e,t){if(e&&t)return Gv(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){r[i]=e[i]}),r;function r(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];var s=e.apply(this,i),u=i[i.length-1];return typeof s=="function"&&s!==u&&Object.keys(u).forEach(function(d){s[d]=u[d]}),s}}var Vv=H3;Yh.exports=Vv(gu);Yh.exports.strict=Vv(Zv);gu.proto=gu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return gu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Zv(this)},configurable:!0})});function gu(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Zv(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}var Qh=Yh.exports;const W3=ee.getDefaultExportFromCjs(Qh);var z3=Qh,G3=function(){},V3=function(e){return e.setHeader&&typeof e.abort=="function"},Z3=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},Kv=function(e,t,r){if(typeof t=="function")return Kv(e,null,t);t||(t={}),r=z3(r||G3);var i=e._writableState,a=e._readableState,s=t.readable||t.readable!==!1&&e.readable,u=t.writable||t.writable!==!1&&e.writable,d=!1,c=function(){e.writable||l()},l=function(){u=!1,s||r.call(e)},h=function(){s=!1,u||r.call(e)},g=function(E){r.call(e,E?new Error("exited with error code: "+E):null)},b=function(E){r.call(e,E)},_=function(){ee.dist.process.nextTick(T)},T=function(){if(!d){if(s&&!(a&&a.ended&&!a.destroyed))return r.call(e,new Error("premature close"));if(u&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"))}},k=function(){e.req.on("finish",l)};return V3(e)?(e.on("complete",l),e.on("abort",_),e.req?k():e.on("request",k)):u&&!i&&(e.on("end",c),e.on("close",c)),Z3(e)&&e.on("exit",g),e.on("end",h),e.on("finish",l),t.error!==!1&&e.on("error",b),e.on("close",_),function(){d=!0,e.removeListener("complete",l),e.removeListener("abort",_),e.removeListener("request",k),e.req&&e.req.removeListener("finish",l),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("exit",g),e.removeListener("end",h),e.removeListener("error",b),e.removeListener("close",_)}},Jv=Kv;const z_=ee.getDefaultExportFromCjs(Jv);var K3=Qh,J3=Jv,yu;try{yu=ee.require$$0}catch{}var Ca=function(){},X3=/^v?\.0/.test(ee.dist.process.version),tf=function(e){return typeof e=="function"},Y3=function(e){return!X3||!yu?!1:(e instanceof(yu.ReadStream||Ca)||e instanceof(yu.WriteStream||Ca))&&tf(e.close)},Q3=function(e){return e.setHeader&&tf(e.abort)},ex=function(e,t,r,i){i=K3(i);var a=!1;e.on("close",function(){a=!0}),J3(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var s=!1;return function(u){if(!a&&!s){if(s=!0,Y3(e))return e.close(Ca);if(Q3(e))return e.abort();if(tf(e.destroy))return e.destroy();i(u||new Error("stream was destroyed"))}}},G_=function(e){e()},tx=function(e,t){return e.pipe(t)},rx=function(){var e=Array.prototype.slice.call(arguments),t=tf(e[e.length-1]||Ca)&&e.pop()||Ca;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,i=e.map(function(a,s){var u=s<e.length-1,d=s>0;return ex(a,u,d,function(c){r||(r=c),c&&i.forEach(G_),!u&&(i.forEach(G_),t(r))})});return e.reduce(tx)},nx=rx;const V_=ee.getDefaultExportFromCjs(nx);var ix={},rf={},nf={},Xv={},$o={},wi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.output=Qt.exists=Qt.hash=Qt.bytes=Qt.bool=Qt.number=Qt.isBytes=void 0;function Au(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}Qt.number=Au;function Yv(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}Qt.bool=Yv;function Qv(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}Qt.isBytes=Qv;function ep(e,...t){if(!Qv(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}Qt.bytes=ep;function ew(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Au(e.outputLen),Au(e.blockLen)}Qt.hash=ew;function tw(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Qt.exists=tw;function rw(e,t){ep(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Qt.output=rw;const ox={number:Au,bool:Yv,bytes:ep,hash:ew,exists:tw,output:rw};Qt.default=ox;var ei={},of={};Object.defineProperty(of,"__esModule",{value:!0});of.crypto=void 0;of.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.byteSwap32=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=e.isBytes=void 0;const t=of,r=Qt;function i(m){return m instanceof Uint8Array||m!=null&&typeof m=="object"&&m.constructor.name==="Uint8Array"}e.isBytes=i;const a=m=>new Uint8Array(m.buffer,m.byteOffset,m.byteLength);e.u8=a;const s=m=>new Uint32Array(m.buffer,m.byteOffset,Math.floor(m.byteLength/4));e.u32=s;const u=m=>new DataView(m.buffer,m.byteOffset,m.byteLength);e.createView=u;const d=(m,O)=>m<<32-O|m>>>O;e.rotr=d;const c=(m,O)=>m<<O|m>>>32-O>>>0;e.rotl=c,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const l=m=>m<<24&4278190080|m<<8&16711680|m>>>8&65280|m>>>24&255;e.byteSwap=l,e.byteSwapIfBE=e.isLE?m=>m:m=>(0,e.byteSwap)(m);function h(m){for(let O=0;O<m.length;O++)m[O]=(0,e.byteSwap)(m[O])}e.byteSwap32=h;const g=Array.from({length:256},(m,O)=>O.toString(16).padStart(2,"0"));function b(m){(0,r.bytes)(m);let O="";for(let P=0;P<m.length;P++)O+=g[m[P]];return O}e.bytesToHex=b;const _={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function T(m){if(m>=_._0&&m<=_._9)return m-_._0;if(m>=_._A&&m<=_._F)return m-(_._A-10);if(m>=_._a&&m<=_._f)return m-(_._a-10)}function k(m){if(typeof m!="string")throw new Error("hex string expected, got "+typeof m);const O=m.length,P=O/2;if(O%2)throw new Error("padded hex string expected, got unpadded hex of length "+O);const Z=new Uint8Array(P);for(let ae=0,X=0;ae<P;ae++,X+=2){const ne=T(m.charCodeAt(X)),F=T(m.charCodeAt(X+1));if(ne===void 0||F===void 0){const x=m[X]+m[X+1];throw new Error('hex string expected, got non-hex character "'+x+'" at index '+X)}Z[ae]=ne*16+F}return Z}e.hexToBytes=k;const E=async()=>{};e.nextTick=E;async function R(m,O,P){let Z=Date.now();for(let ae=0;ae<m;ae++){P(ae);const X=Date.now()-Z;X>=0&&X<O||(await(0,e.nextTick)(),Z+=X)}}e.asyncLoop=R;function v(m){if(typeof m!="string")throw new Error(`utf8ToBytes expected string, got ${typeof m}`);return new Uint8Array(new TextEncoder().encode(m))}e.utf8ToBytes=v;function w(m){return typeof m=="string"&&(m=v(m)),(0,r.bytes)(m),m}e.toBytes=w;function S(...m){let O=0;for(let Z=0;Z<m.length;Z++){const ae=m[Z];(0,r.bytes)(ae),O+=ae.length}const P=new Uint8Array(O);for(let Z=0,ae=0;Z<m.length;Z++){const X=m[Z];P.set(X,ae),ae+=X.length}return P}e.concatBytes=S;class H{clone(){return this._cloneInto()}}e.Hash=H;const Q={}.toString;function ie(m,O){if(O!==void 0&&Q.call(O)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(m,O)}e.checkOpts=ie;function he(m){const O=Z=>m().update(w(Z)).digest(),P=m();return O.outputLen=P.outputLen,O.blockLen=P.blockLen,O.create=()=>m(),O}e.wrapConstructor=he;function le(m){const O=(Z,ae)=>m(ae).update(w(Z)).digest(),P=m({});return O.outputLen=P.outputLen,O.blockLen=P.blockLen,O.create=Z=>m(Z),O}e.wrapConstructorWithOpts=le;function Ee(m){const O=(Z,ae)=>m(ae).update(w(Z)).digest(),P=m({});return O.outputLen=P.outputLen,O.blockLen=P.blockLen,O.create=Z=>m(Z),O}e.wrapXOFConstructorWithOpts=Ee;function ve(m=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(m));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=ve})(ei);Object.defineProperty(wi,"__esModule",{value:!0});wi.HashMD=wi.Maj=wi.Chi=void 0;const od=Qt,_a=ei;function ax(e,t,r,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,i);const a=BigInt(32),s=BigInt(4294967295),u=Number(r>>a&s),d=Number(r&s),c=i?4:0,l=i?0:4;e.setUint32(t+c,u,i),e.setUint32(t+l,d,i)}const sx=(e,t,r)=>e&t^~e&r;wi.Chi=sx;const ux=(e,t,r)=>e&t^e&r^t&r;wi.Maj=ux;class fx extends _a.Hash{constructor(t,r,i,a){super(),this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,_a.createView)(this.buffer)}update(t){(0,od.exists)(this);const{view:r,buffer:i,blockLen:a}=this;t=(0,_a.toBytes)(t);const s=t.length;for(let u=0;u<s;){const d=Math.min(a-this.pos,s-u);if(d===a){const c=(0,_a.createView)(t);for(;a<=s-u;u+=a)this.process(c,u);continue}i.set(t.subarray(u,u+d),this.pos),this.pos+=d,u+=d,this.pos===a&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,od.exists)(this),(0,od.output)(t,this),this.finished=!0;const{buffer:r,view:i,blockLen:a,isLE:s}=this;let{pos:u}=this;r[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>a-u&&(this.process(i,0),u=0);for(let g=u;g<a;g++)r[g]=0;ax(i,a-8,BigInt(this.length*8),s),this.process(i,0);const d=(0,_a.createView)(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,h=this.get();if(l>h.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g<l;g++)d.setUint32(4*g,h[g],s)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const i=t.slice(0,r);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:i,length:a,finished:s,destroyed:u,pos:d}=this;return t.length=a,t.pos=d,t.finished=s,t.destroyed=u,a%r&&t.buffer.set(i),t}}wi.HashMD=fx;Object.defineProperty($o,"__esModule",{value:!0});$o.sha224=$o.sha256=void 0;const ad=wi,tn=ei,cx=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),yi=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_i=new Uint32Array(64);class nw extends ad.HashMD{constructor(){super(64,32,8,!1),this.A=yi[0]|0,this.B=yi[1]|0,this.C=yi[2]|0,this.D=yi[3]|0,this.E=yi[4]|0,this.F=yi[5]|0,this.G=yi[6]|0,this.H=yi[7]|0}get(){const{A:t,B:r,C:i,D:a,E:s,F:u,G:d,H:c}=this;return[t,r,i,a,s,u,d,c]}set(t,r,i,a,s,u,d,c){this.A=t|0,this.B=r|0,this.C=i|0,this.D=a|0,this.E=s|0,this.F=u|0,this.G=d|0,this.H=c|0}process(t,r){for(let g=0;g<16;g++,r+=4)_i[g]=t.getUint32(r,!1);for(let g=16;g<64;g++){const b=_i[g-15],_=_i[g-2],T=(0,tn.rotr)(b,7)^(0,tn.rotr)(b,18)^b>>>3,k=(0,tn.rotr)(_,17)^(0,tn.rotr)(_,19)^_>>>10;_i[g]=k+_i[g-7]+T+_i[g-16]|0}let{A:i,B:a,C:s,D:u,E:d,F:c,G:l,H:h}=this;for(let g=0;g<64;g++){const b=(0,tn.rotr)(d,6)^(0,tn.rotr)(d,11)^(0,tn.rotr)(d,25),_=h+b+(0,ad.Chi)(d,c,l)+cx[g]+_i[g]|0,k=((0,tn.rotr)(i,2)^(0,tn.rotr)(i,13)^(0,tn.rotr)(i,22))+(0,ad.Maj)(i,a,s)|0;h=l,l=c,c=d,d=u+_|0,u=s,s=a,a=i,i=_+k|0}i=i+this.A|0,a=a+this.B|0,s=s+this.C|0,u=u+this.D|0,d=d+this.E|0,c=c+this.F|0,l=l+this.G|0,h=h+this.H|0,this.set(i,a,s,u,d,c,l,h)}roundClean(){_i.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class lx extends nw{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}$o.sha256=(0,tn.wrapConstructor)(()=>new nw);$o.sha224=(0,tn.wrapConstructor)(()=>new lx);var af={},iw={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=Qt,r=ei;class i extends r.Hash{constructor(u,d){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(u);const c=(0,r.toBytes)(d);if(this.iHash=u.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const l=this.blockLen,h=new Uint8Array(l);h.set(c.length>l?u.create().update(c).digest():c);for(let g=0;g<h.length;g++)h[g]^=54;this.iHash.update(h),this.oHash=u.create();for(let g=0;g<h.length;g++)h[g]^=106;this.oHash.update(h),h.fill(0)}update(u){return(0,t.exists)(this),this.iHash.update(u),this}digestInto(u){(0,t.exists)(this),(0,t.bytes)(u,this.outputLen),this.finished=!0,this.iHash.digestInto(u),this.oHash.update(u),this.oHash.digestInto(u),this.destroy()}digest(){const u=new Uint8Array(this.oHash.outputLen);return this.digestInto(u),u}_cloneInto(u){u||(u=Object.create(Object.getPrototypeOf(this),{}));const{oHash:d,iHash:c,finished:l,destroyed:h,blockLen:g,outputLen:b}=this;return u=u,u.finished=l,u.destroyed=h,u.blockLen=g,u.outputLen=b,u.oHash=d._cloneInto(u.oHash),u.iHash=c._cloneInto(u.iHash),u}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=i;const a=(s,u,d)=>new i(s,u).update(d).digest();e.hmac=a,e.hmac.create=(s,u)=>new i(s,u)})(iw);var tp={},sf={},Ut={},Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.bitMask=void 0;Lt.isBytes=ff;Lt.abytes=cf;Lt.bytesToHex=rp;Lt.numberToHexUnpadded=aw;Lt.hexToNumber=np;Lt.hexToBytes=lf;Lt.bytesToNumberBE=px;Lt.bytesToNumberLE=gx;Lt.numberToBytesBE=sw;Lt.numberToBytesLE=yx;Lt.numberToVarBytesBE=_x;Lt.ensureBytes=bx;Lt.concatBytes=uw;Lt.equalBytes=mx;Lt.utf8ToBytes=vx;Lt.bitLen=wx;Lt.bitGet=Ex;Lt.bitSet=Sx;Lt.createHmacDrbg=Rx;Lt.validateObject=Tx;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ow=BigInt(0),uf=BigInt(1),dx=BigInt(2);function ff(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function cf(e){if(!ff(e))throw new Error("Uint8Array expected")}const hx=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function rp(e){cf(e);let t="";for(let r=0;r<e.length;r++)t+=hx[e[r]];return t}function aw(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function np(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}const Zn={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function Z_(e){if(e>=Zn._0&&e<=Zn._9)return e-Zn._0;if(e>=Zn._A&&e<=Zn._F)return e-(Zn._A-10);if(e>=Zn._a&&e<=Zn._f)return e-(Zn._a-10)}function lf(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const i=new Uint8Array(r);for(let a=0,s=0;a<r;a++,s+=2){const u=Z_(e.charCodeAt(s)),d=Z_(e.charCodeAt(s+1));if(u===void 0||d===void 0){const c=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+s)}i[a]=u*16+d}return i}function px(e){return np(rp(e))}function gx(e){return cf(e),np(rp(Uint8Array.from(e).reverse()))}function sw(e,t){return lf(e.toString(16).padStart(t*2,"0"))}function yx(e,t){return sw(e,t).reverse()}function _x(e){return lf(aw(e))}function bx(e,t,r){let i;if(typeof t=="string")try{i=lf(t)}catch(s){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${s}`)}else if(ff(t))i=Uint8Array.from(t);else throw new Error(`${e} must be hex string or Uint8Array`);const a=i.length;if(typeof r=="number"&&a!==r)throw new Error(`${e} expected ${r} bytes, got ${a}`);return i}function uw(...e){let t=0;for(let i=0;i<e.length;i++){const a=e[i];cf(a),t+=a.length}const r=new Uint8Array(t);for(let i=0,a=0;i<e.length;i++){const s=e[i];r.set(s,a),a+=s.length}return r}function mx(e,t){if(e.length!==t.length)return!1;let r=0;for(let i=0;i<e.length;i++)r|=e[i]^t[i];return r===0}function vx(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function wx(e){let t;for(t=0;e>ow;e>>=uf,t+=1);return t}function Ex(e,t){return e>>BigInt(t)&uf}function Sx(e,t,r){return e|(r?uf:ow)<<BigInt(t)}const Ax=e=>(dx<<BigInt(e-1))-uf;Lt.bitMask=Ax;const sd=e=>new Uint8Array(e),K_=e=>Uint8Array.from(e);function Rx(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let i=sd(e),a=sd(e),s=0;const u=()=>{i.fill(1),a.fill(0),s=0},d=(...g)=>r(a,i,...g),c=(g=sd())=>{a=d(K_([0]),g),i=d(),g.length!==0&&(a=d(K_([1]),g),i=d())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let g=0;const b=[];for(;g<t;){i=d();const _=i.slice();b.push(_),g+=i.length}return uw(...b)};return(g,b)=>{u(),c(g);let _;for(;!(_=b(l()));)c();return u(),_}}const Ix={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||ff(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Tx(e,t,r={}){const i=(a,s,u)=>{const d=Ix[s];if(typeof d!="function")throw new Error(`Invalid validator "${s}", expected function`);const c=e[a];if(!(u&&c===void 0)&&!d(c,e))throw new Error(`Invalid param ${String(a)}=${c} (${typeof c}), expected ${s}`)};for(const[a,s]of Object.entries(t))i(a,s,!1);for(const[a,s]of Object.entries(r))i(a,s,!0);return e}Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isNegativeLE=void 0;Ut.mod=Ur;Ut.pow=fw;Ut.pow2=Px;Ut.invert=Ru;Ut.tonelliShanks=cw;Ut.FpSqrt=lw;Ut.validateField=Nx;Ut.FpPow=dw;Ut.FpInvertBatch=hw;Ut.FpDiv=Bx;Ut.FpIsSquare=$x;Ut.nLength=ip;Ut.Field=xx;Ut.FpSqrtOdd=Dx;Ut.FpSqrtEven=Mx;Ut.hashToPrivateScalar=Fx;Ut.getFieldBytesLength=op;Ut.getMinHashLength=pw;Ut.mapHashToField=jx;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qr=Lt,ur=BigInt(0),kt=BigInt(1),vi=BigInt(2),Ox=BigInt(3),ih=BigInt(4),J_=BigInt(5),X_=BigInt(8);BigInt(9);BigInt(16);function Ur(e,t){const r=e%t;return r>=ur?r:t+r}function fw(e,t,r){if(r<=ur||t<ur)throw new Error("Expected power/modulo > 0");if(r===kt)return ur;let i=kt;for(;t>ur;)t&kt&&(i=i*e%r),e=e*e%r,t>>=kt;return i}function Px(e,t,r){let i=e;for(;t-- >ur;)i*=i,i%=r;return i}function Ru(e,t){if(e===ur||t<=ur)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Ur(e,t),i=t,a=ur,s=kt;for(;r!==ur;){const d=i/r,c=i%r,l=a-s*d;i=r,r=c,a=s,s=l}if(i!==kt)throw new Error("invert: does not exist");return Ur(a,t)}function cw(e){const t=(e-kt)/vi;let r,i,a;for(r=e-kt,i=0;r%vi===ur;r/=vi,i++);for(a=vi;a<e&&fw(a,t,e)!==e-kt;a++);if(i===1){const u=(e+kt)/ih;return function(c,l){const h=c.pow(l,u);if(!c.eql(c.sqr(h),l))throw new Error("Cannot find square root");return h}}const s=(r+kt)/vi;return function(d,c){if(d.pow(c,t)===d.neg(d.ONE))throw new Error("Cannot find square root");let l=i,h=d.pow(d.mul(d.ONE,a),r),g=d.pow(c,s),b=d.pow(c,r);for(;!d.eql(b,d.ONE);){if(d.eql(b,d.ZERO))return d.ZERO;let _=1;for(let k=d.sqr(b);_<l&&!d.eql(k,d.ONE);_++)k=d.sqr(k);const T=d.pow(h,kt<<BigInt(l-_-1));h=d.sqr(T),g=d.mul(g,T),b=d.mul(b,h),l=_}return g}}function lw(e){if(e%ih===Ox){const t=(e+kt)/ih;return function(i,a){const s=i.pow(a,t);if(!i.eql(i.sqr(s),a))throw new Error("Cannot find square root");return s}}if(e%X_===J_){const t=(e-J_)/X_;return function(i,a){const s=i.mul(a,vi),u=i.pow(s,t),d=i.mul(a,u),c=i.mul(i.mul(d,vi),u),l=i.mul(d,i.sub(c,i.ONE));if(!i.eql(i.sqr(l),a))throw new Error("Cannot find square root");return l}}return cw(e)}const Cx=(e,t)=>(Ur(e,t)&kt)===kt;Ut.isNegativeLE=Cx;const Lx=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Nx(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Lx.reduce((i,a)=>(i[a]="function",i),t);return(0,qr.validateObject)(e,r)}function dw(e,t,r){if(r<ur)throw new Error("Expected power > 0");if(r===ur)return e.ONE;if(r===kt)return t;let i=e.ONE,a=t;for(;r>ur;)r&kt&&(i=e.mul(i,a)),a=e.sqr(a),r>>=kt;return i}function hw(e,t){const r=new Array(t.length),i=t.reduce((s,u,d)=>e.is0(u)?s:(r[d]=s,e.mul(s,u)),e.ONE),a=e.inv(i);return t.reduceRight((s,u,d)=>e.is0(u)?s:(r[d]=e.mul(s,r[d]),e.mul(s,u)),a),r}function Bx(e,t,r){return e.mul(t,typeof r=="bigint"?Ru(r,e.ORDER):e.inv(r))}function $x(e){const t=(e.ORDER-kt)/vi;return r=>{const i=e.pow(r,t);return e.eql(i,e.ZERO)||e.eql(i,e.ONE)}}function ip(e,t){const r=t!==void 0?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function xx(e,t,r=!1,i={}){if(e<=ur)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:a,nByteLength:s}=ip(e,t);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=lw(e),d=Object.freeze({ORDER:e,BITS:a,BYTES:s,MASK:(0,qr.bitMask)(a),ZERO:ur,ONE:kt,create:c=>Ur(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return ur<=c&&c<e},is0:c=>c===ur,isOdd:c=>(c&kt)===kt,neg:c=>Ur(-c,e),eql:(c,l)=>c===l,sqr:c=>Ur(c*c,e),add:(c,l)=>Ur(c+l,e),sub:(c,l)=>Ur(c-l,e),mul:(c,l)=>Ur(c*l,e),pow:(c,l)=>dw(d,c,l),div:(c,l)=>Ur(c*Ru(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Ru(c,e),sqrt:i.sqrt||(c=>u(d,c)),invertBatch:c=>hw(d,c),cmov:(c,l,h)=>h?l:c,toBytes:c=>r?(0,qr.numberToBytesLE)(c,s):(0,qr.numberToBytesBE)(c,s),fromBytes:c=>{if(c.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${c.length}`);return r?(0,qr.bytesToNumberLE)(c):(0,qr.bytesToNumberBE)(c)}});return Object.freeze(d)}function Dx(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)}function Mx(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r}function Fx(e,t,r=!1){e=(0,qr.ensureBytes)("privateHash",e);const i=e.length,a=ip(t).nByteLength+8;if(a<24||i<a||i>1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);const s=r?(0,qr.bytesToNumberLE)(e):(0,qr.bytesToNumberBE)(e);return Ur(s,t-kt)+kt}function op(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function pw(e){const t=op(e);return t+Math.ceil(t/2)}function jx(e,t,r=!1){const i=e.length,a=op(t),s=pw(t);if(i<16||i<s||i>1024)throw new Error(`expected ${s}-1024 bytes of input, got ${i}`);const u=r?(0,qr.bytesToNumberBE)(e):(0,qr.bytesToNumberLE)(e),d=Ur(u,t-kt)+kt;return r?(0,qr.numberToBytesLE)(d,a):(0,qr.numberToBytesBE)(d,a)}Object.defineProperty(sf,"__esModule",{value:!0});sf.wNAF=qx;sf.validateBasic=Hx;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Y_=Ut,kx=Lt,Ux=BigInt(0),ud=BigInt(1);function qx(e,t){const r=(a,s)=>{const u=s.negate();return a?u:s},i=a=>{const s=Math.ceil(t/a)+1,u=2**(a-1);return{windows:s,windowSize:u}};return{constTimeNegate:r,unsafeLadder(a,s){let u=e.ZERO,d=a;for(;s>Ux;)s&ud&&(u=u.add(d)),d=d.double(),s>>=ud;return u},precomputeWindow(a,s){const{windows:u,windowSize:d}=i(s),c=[];let l=a,h=l;for(let g=0;g<u;g++){h=l,c.push(h);for(let b=1;b<d;b++)h=h.add(l),c.push(h);l=h.double()}return c},wNAF(a,s,u){const{windows:d,windowSize:c}=i(a);let l=e.ZERO,h=e.BASE;const g=BigInt(2**a-1),b=2**a,_=BigInt(a);for(let T=0;T<d;T++){const k=T*c;let E=Number(u&g);u>>=_,E>c&&(E-=b,u+=ud);const R=k,v=k+Math.abs(E)-1,w=T%2!==0,S=E<0;E===0?h=h.add(r(w,s[R])):l=l.add(r(S,s[v]))}return{p:l,f:h}},wNAFCached(a,s,u,d){const c=a._WINDOW_SIZE||1;let l=s.get(a);return l||(l=this.precomputeWindow(a,c),c!==1&&s.set(a,d(l))),this.wNAF(c,l,u)}}}function Hx(e){return(0,Y_.validateField)(e.Fp),(0,kx.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,Y_.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=_,e.weierstrass=k,e.SWUFpSqrtRatio=E,e.mapToCurveSimpleSWU=R;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=sf,r=Ut,i=Lt,a=Lt;function s(v){const w=(0,t.validateBasic)(v);i.validateObject(w,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:S,Fp:H,a:Q}=w;if(S){if(!H.eql(Q,H.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof S!="object"||typeof S.beta!="bigint"||typeof S.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...w})}const{bytesToNumberBE:u,hexToBytes:d}=i;e.DER={Err:class extends Error{constructor(w=""){super(w)}},_parseInt(v){const{Err:w}=e.DER;if(v.length<2||v[0]!==2)throw new w("Invalid signature integer tag");const S=v[1],H=v.subarray(2,S+2);if(!S||H.length!==S)throw new w("Invalid signature integer: wrong length");if(H[0]&128)throw new w("Invalid signature integer: negative");if(H[0]===0&&!(H[1]&128))throw new w("Invalid signature integer: unnecessary leading zero");return{d:u(H),l:v.subarray(S+2)}},toSig(v){const{Err:w}=e.DER,S=typeof v=="string"?d(v):v;i.abytes(S);let H=S.length;if(H<2||S[0]!=48)throw new w("Invalid signature tag");if(S[1]!==H-2)throw new w("Invalid signature: incorrect length");const{d:Q,l:ie}=e.DER._parseInt(S.subarray(2)),{d:he,l:le}=e.DER._parseInt(ie);if(le.length)throw new w("Invalid signature: left bytes after parsing");return{r:Q,s:he}},hexFromSig(v){const w=ve=>Number.parseInt(ve[0],16)&8?"00"+ve:ve,S=ve=>{const m=ve.toString(16);return m.length&1?`0${m}`:m},H=w(S(v.s)),Q=w(S(v.r)),ie=H.length/2,he=Q.length/2,le=S(ie),Ee=S(he);return`30${S(he+ie+4)}02${Ee}${Q}02${le}${H}`}};const c=BigInt(0),l=BigInt(1),h=BigInt(2),g=BigInt(3),b=BigInt(4);function _(v){const w=s(v),{Fp:S}=w,H=w.toBytes||((ae,X,ne)=>{const F=X.toAffine();return i.concatBytes(Uint8Array.from([4]),S.toBytes(F.x),S.toBytes(F.y))}),Q=w.fromBytes||(ae=>{const X=ae.subarray(1),ne=S.fromBytes(X.subarray(0,S.BYTES)),F=S.fromBytes(X.subarray(S.BYTES,2*S.BYTES));return{x:ne,y:F}});function ie(ae){const{a:X,b:ne}=w,F=S.sqr(ae),x=S.mul(F,ae);return S.add(S.add(x,S.mul(ae,X)),ne)}if(!S.eql(S.sqr(w.Gy),ie(w.Gx)))throw new Error("bad generator point: equation left != right");function he(ae){return typeof ae=="bigint"&&c<ae&&ae<w.n}function le(ae){if(!he(ae))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function Ee(ae){const{allowedPrivateKeyLengths:X,nByteLength:ne,wrapPrivateKey:F,n:x}=w;if(X&&typeof ae!="bigint"){if(i.isBytes(ae)&&(ae=i.bytesToHex(ae)),typeof ae!="string"||!X.includes(ae.length))throw new Error("Invalid key");ae=ae.padStart(ne*2,"0")}let Y;try{Y=typeof ae=="bigint"?ae:i.bytesToNumberBE((0,a.ensureBytes)("private key",ae,ne))}catch{throw new Error(`private key must be ${ne} bytes, hex or bigint, not ${typeof ae}`)}return F&&(Y=r.mod(Y,x)),le(Y),Y}const ve=new Map;function m(ae){if(!(ae instanceof O))throw new Error("ProjectivePoint expected")}class O{constructor(X,ne,F){if(this.px=X,this.py=ne,this.pz=F,X==null||!S.isValid(X))throw new Error("x required");if(ne==null||!S.isValid(ne))throw new Error("y required");if(F==null||!S.isValid(F))throw new Error("z required")}static fromAffine(X){const{x:ne,y:F}=X||{};if(!X||!S.isValid(ne)||!S.isValid(F))throw new Error("invalid affine point");if(X instanceof O)throw new Error("projective point not allowed");const x=Y=>S.eql(Y,S.ZERO);return x(ne)&&x(F)?O.ZERO:new O(ne,F,S.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(X){const ne=S.invertBatch(X.map(F=>F.pz));return X.map((F,x)=>F.toAffine(ne[x])).map(O.fromAffine)}static fromHex(X){const ne=O.fromAffine(Q((0,a.ensureBytes)("pointHex",X)));return ne.assertValidity(),ne}static fromPrivateKey(X){return O.BASE.multiply(Ee(X))}_setWindowSize(X){this._WINDOW_SIZE=X,ve.delete(this)}assertValidity(){if(this.is0()){if(w.allowInfinityPoint&&!S.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:X,y:ne}=this.toAffine();if(!S.isValid(X)||!S.isValid(ne))throw new Error("bad point: x or y not FE");const F=S.sqr(ne),x=ie(X);if(!S.eql(F,x))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:X}=this.toAffine();if(S.isOdd)return!S.isOdd(X);throw new Error("Field doesn't support isOdd")}equals(X){m(X);const{px:ne,py:F,pz:x}=this,{px:Y,py:B,pz:j}=X,$=S.eql(S.mul(ne,j),S.mul(Y,x)),U=S.eql(S.mul(F,j),S.mul(B,x));return $&&U}negate(){return new O(this.px,S.neg(this.py),this.pz)}double(){const{a:X,b:ne}=w,F=S.mul(ne,g),{px:x,py:Y,pz:B}=this;let j=S.ZERO,$=S.ZERO,U=S.ZERO,G=S.mul(x,x),de=S.mul(Y,Y),oe=S.mul(B,B),fe=S.mul(x,Y);return fe=S.add(fe,fe),U=S.mul(x,B),U=S.add(U,U),j=S.mul(X,U),$=S.mul(F,oe),$=S.add(j,$),j=S.sub(de,$),$=S.add(de,$),$=S.mul(j,$),j=S.mul(fe,j),U=S.mul(F,U),oe=S.mul(X,oe),fe=S.sub(G,oe),fe=S.mul(X,fe),fe=S.add(fe,U),U=S.add(G,G),G=S.add(U,G),G=S.add(G,oe),G=S.mul(G,fe),$=S.add($,G),oe=S.mul(Y,B),oe=S.add(oe,oe),G=S.mul(oe,fe),j=S.sub(j,G),U=S.mul(oe,de),U=S.add(U,U),U=S.add(U,U),new O(j,$,U)}add(X){m(X);const{px:ne,py:F,pz:x}=this,{px:Y,py:B,pz:j}=X;let $=S.ZERO,U=S.ZERO,G=S.ZERO;const de=w.a,oe=S.mul(w.b,g);let fe=S.mul(ne,Y),Se=S.mul(F,B),Be=S.mul(x,j),Me=S.add(ne,F),z=S.add(Y,B);Me=S.mul(Me,z),z=S.add(fe,Se),Me=S.sub(Me,z),z=S.add(ne,x);let J=S.add(Y,j);return z=S.mul(z,J),J=S.add(fe,Be),z=S.sub(z,J),J=S.add(F,x),$=S.add(B,j),J=S.mul(J,$),$=S.add(Se,Be),J=S.sub(J,$),G=S.mul(de,z),$=S.mul(oe,Be),G=S.add($,G),$=S.sub(Se,G),G=S.add(Se,G),U=S.mul($,G),Se=S.add(fe,fe),Se=S.add(Se,fe),Be=S.mul(de,Be),z=S.mul(oe,z),Se=S.add(Se,Be),Be=S.sub(fe,Be),Be=S.mul(de,Be),z=S.add(z,Be),fe=S.mul(Se,z),U=S.add(U,fe),fe=S.mul(J,z),$=S.mul(Me,$),$=S.sub($,fe),fe=S.mul(Me,Se),G=S.mul(J,G),G=S.add(G,fe),new O($,U,G)}subtract(X){return this.add(X.negate())}is0(){return this.equals(O.ZERO)}wNAF(X){return Z.wNAFCached(this,ve,X,ne=>{const F=S.invertBatch(ne.map(x=>x.pz));return ne.map((x,Y)=>x.toAffine(F[Y])).map(O.fromAffine)})}multiplyUnsafe(X){const ne=O.ZERO;if(X===c)return ne;if(le(X),X===l)return this;const{endo:F}=w;if(!F)return Z.unsafeLadder(this,X);let{k1neg:x,k1:Y,k2neg:B,k2:j}=F.splitScalar(X),$=ne,U=ne,G=this;for(;Y>c||j>c;)Y&l&&($=$.add(G)),j&l&&(U=U.add(G)),G=G.double(),Y>>=l,j>>=l;return x&&($=$.negate()),B&&(U=U.negate()),U=new O(S.mul(U.px,F.beta),U.py,U.pz),$.add(U)}multiply(X){le(X);let ne=X,F,x;const{endo:Y}=w;if(Y){const{k1neg:B,k1:j,k2neg:$,k2:U}=Y.splitScalar(ne);let{p:G,f:de}=this.wNAF(j),{p:oe,f:fe}=this.wNAF(U);G=Z.constTimeNegate(B,G),oe=Z.constTimeNegate($,oe),oe=new O(S.mul(oe.px,Y.beta),oe.py,oe.pz),F=G.add(oe),x=de.add(fe)}else{const{p:B,f:j}=this.wNAF(ne);F=B,x=j}return O.normalizeZ([F,x])[0]}multiplyAndAddUnsafe(X,ne,F){const x=O.BASE,Y=(j,$)=>$===c||$===l||!j.equals(x)?j.multiplyUnsafe($):j.multiply($),B=Y(this,ne).add(Y(X,F));return B.is0()?void 0:B}toAffine(X){const{px:ne,py:F,pz:x}=this,Y=this.is0();X==null&&(X=Y?S.ONE:S.inv(x));const B=S.mul(ne,X),j=S.mul(F,X),$=S.mul(x,X);if(Y)return{x:S.ZERO,y:S.ZERO};if(!S.eql($,S.ONE))throw new Error("invZ was invalid");return{x:B,y:j}}isTorsionFree(){const{h:X,isTorsionFree:ne}=w;if(X===l)return!0;if(ne)return ne(O,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:X,clearCofactor:ne}=w;return X===l?this:ne?ne(O,this):this.multiplyUnsafe(w.h)}toRawBytes(X=!0){return this.assertValidity(),H(O,this,X)}toHex(X=!0){return i.bytesToHex(this.toRawBytes(X))}}O.BASE=new O(w.Gx,w.Gy,S.ONE),O.ZERO=new O(S.ZERO,S.ONE,S.ZERO);const P=w.nBitLength,Z=(0,t.wNAF)(O,w.endo?Math.ceil(P/2):P);return{CURVE:w,ProjectivePoint:O,normPrivateKeyToScalar:Ee,weierstrassEquation:ie,isWithinCurveOrder:he}}function T(v){const w=(0,t.validateBasic)(v);return i.validateObject(w,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...w})}function k(v){const w=T(v),{Fp:S,n:H}=w,Q=S.BYTES+1,ie=2*S.BYTES+1;function he(z){return c<z&&z<S.ORDER}function le(z){return r.mod(z,H)}function Ee(z){return r.invert(z,H)}const{ProjectivePoint:ve,normPrivateKeyToScalar:m,weierstrassEquation:O,isWithinCurveOrder:P}=_({...w,toBytes(z,J,ge){const Ne=J.toAffine(),Oe=S.toBytes(Ne.x),je=i.concatBytes;return ge?je(Uint8Array.from([J.hasEvenY()?2:3]),Oe):je(Uint8Array.from([4]),Oe,S.toBytes(Ne.y))},fromBytes(z){const J=z.length,ge=z[0],Ne=z.subarray(1);if(J===Q&&(ge===2||ge===3)){const Oe=i.bytesToNumberBE(Ne);if(!he(Oe))throw new Error("Point is not on curve");const je=O(Oe);let me;try{me=S.sqrt(je)}catch(re){const xe=re instanceof Error?": "+re.message:"";throw new Error("Point is not on curve"+xe)}const Ye=(me&l)===l;return(ge&1)===1!==Ye&&(me=S.neg(me)),{x:Oe,y:me}}else if(J===ie&&ge===4){const Oe=S.fromBytes(Ne.subarray(0,S.BYTES)),je=S.fromBytes(Ne.subarray(S.BYTES,2*S.BYTES));return{x:Oe,y:je}}else throw new Error(`Point of length ${J} was invalid. Expected ${Q} compressed bytes or ${ie} uncompressed bytes`)}}),Z=z=>i.bytesToHex(i.numberToBytesBE(z,w.nByteLength));function ae(z){const J=H>>l;return z>J}function X(z){return ae(z)?le(-z):z}const ne=(z,J,ge)=>i.bytesToNumberBE(z.slice(J,ge));class F{constructor(J,ge,Ne){this.r=J,this.s=ge,this.recovery=Ne,this.assertValidity()}static fromCompact(J){const ge=w.nByteLength;return J=(0,a.ensureBytes)("compactSignature",J,ge*2),new F(ne(J,0,ge),ne(J,ge,2*ge))}static fromDER(J){const{r:ge,s:Ne}=e.DER.toSig((0,a.ensureBytes)("DER",J));return new F(ge,Ne)}assertValidity(){if(!P(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!P(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(J){return new F(this.r,this.s,J)}recoverPublicKey(J){const{r:ge,s:Ne,recovery:Oe}=this,je=U((0,a.ensureBytes)("msgHash",J));if(Oe==null||![0,1,2,3].includes(Oe))throw new Error("recovery id invalid");const me=Oe===2||Oe===3?ge+w.n:ge;if(me>=S.ORDER)throw new Error("recovery id 2 or 3 invalid");const Ye=Oe&1?"03":"02",et=ve.fromHex(Ye+Z(me)),re=Ee(me),xe=le(-je*re),M=le(Ne*re),ce=ve.BASE.multiplyAndAddUnsafe(et,xe,M);if(!ce)throw new Error("point at infinify");return ce.assertValidity(),ce}hasHighS(){return ae(this.s)}normalizeS(){return this.hasHighS()?new F(this.r,le(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return Z(this.r)+Z(this.s)}}const x={isValidPrivateKey(z){try{return m(z),!0}catch{return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{const z=r.getMinHashLength(w.n);return r.mapHashToField(w.randomBytes(z),w.n)},precompute(z=8,J=ve.BASE){return J._setWindowSize(z),J.multiply(BigInt(3)),J}};function Y(z,J=!0){return ve.fromPrivateKey(z).toRawBytes(J)}function B(z){const J=i.isBytes(z),ge=typeof z=="string",Ne=(J||ge)&&z.length;return J?Ne===Q||Ne===ie:ge?Ne===2*Q||Ne===2*ie:z instanceof ve}function j(z,J,ge=!0){if(B(z))throw new Error("first arg must be private key");if(!B(J))throw new Error("second arg must be public key");return ve.fromHex(J).multiply(m(z)).toRawBytes(ge)}const $=w.bits2int||function(z){const J=i.bytesToNumberBE(z),ge=z.length*8-w.nBitLength;return ge>0?J>>BigInt(ge):J},U=w.bits2int_modN||function(z){return le($(z))},G=i.bitMask(w.nBitLength);function de(z){if(typeof z!="bigint")throw new Error("bigint expected");if(!(c<=z&&z<G))throw new Error(`bigint expected < 2^${w.nBitLength}`);return i.numberToBytesBE(z,w.nByteLength)}function oe(z,J,ge=fe){if(["recovered","canonical"].some(Ve=>Ve in ge))throw new Error("sign() legacy options not supported");const{hash:Ne,randomBytes:Oe}=w;let{lowS:je,prehash:me,extraEntropy:Ye}=ge;je==null&&(je=!0),z=(0,a.ensureBytes)("msgHash",z),me&&(z=(0,a.ensureBytes)("prehashed msgHash",Ne(z)));const et=U(z),re=m(J),xe=[de(re),de(et)];if(Ye!=null&&Ye!==!1){const Ve=Ye===!0?Oe(S.BYTES):Ye;xe.push((0,a.ensureBytes)("extraEntropy",Ve))}const M=i.concatBytes(...xe),ce=et;function De(Ve){const Ue=$(Ve);if(!P(Ue))return;const ke=Ee(Ue),Xe=ve.BASE.multiply(Ue).toAffine(),D=le(Xe.x);if(D===c)return;const Re=le(ke*le(ce+D*re));if(Re===c)return;let $e=(Xe.x===D?0:2)|Number(Xe.y&l),qe=Re;return je&&ae(Re)&&(qe=X(Re),$e^=1),new F(D,qe,$e)}return{seed:M,k2sig:De}}const fe={lowS:w.lowS,prehash:!1},Se={lowS:w.lowS,prehash:!1};function Be(z,J,ge=fe){const{seed:Ne,k2sig:Oe}=oe(z,J,ge),je=w;return i.createHmacDrbg(je.hash.outputLen,je.nByteLength,je.hmac)(Ne,Oe)}ve.BASE._setWindowSize(8);function Me(z,J,ge,Ne=Se){var Xe;const Oe=z;if(J=(0,a.ensureBytes)("msgHash",J),ge=(0,a.ensureBytes)("publicKey",ge),"strict"in Ne)throw new Error("options.strict was renamed to lowS");const{lowS:je,prehash:me}=Ne;let Ye,et;try{if(typeof Oe=="string"||i.isBytes(Oe))try{Ye=F.fromDER(Oe)}catch(D){if(!(D instanceof e.DER.Err))throw D;Ye=F.fromCompact(Oe)}else if(typeof Oe=="object"&&typeof Oe.r=="bigint"&&typeof Oe.s=="bigint"){const{r:D,s:Re}=Oe;Ye=new F(D,Re)}else throw new Error("PARSE");et=ve.fromHex(ge)}catch(D){if(D.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(je&&Ye.hasHighS())return!1;me&&(J=w.hash(J));const{r:re,s:xe}=Ye,M=U(J),ce=Ee(xe),De=le(M*ce),Ve=le(re*ce),Ue=(Xe=ve.BASE.multiplyAndAddUnsafe(et,De,Ve))==null?void 0:Xe.toAffine();return Ue?le(Ue.x)===re:!1}return{CURVE:w,getPublicKey:Y,getSharedSecret:j,sign:Be,verify:Me,ProjectivePoint:ve,Signature:F,utils:x}}function E(v,w){const S=v.ORDER;let H=c;for(let ae=S-l;ae%h===c;ae/=h)H+=l;const Q=H,ie=h<<Q-l-l,he=ie*h,le=(S-l)/he,Ee=(le-l)/h,ve=he-l,m=ie,O=v.pow(w,le),P=v.pow(w,(le+l)/h);let Z=(ae,X)=>{let ne=O,F=v.pow(X,ve),x=v.sqr(F);x=v.mul(x,X);let Y=v.mul(ae,x);Y=v.pow(Y,Ee),Y=v.mul(Y,F),F=v.mul(Y,X),x=v.mul(Y,ae);let B=v.mul(x,F);Y=v.pow(B,m);let j=v.eql(Y,v.ONE);F=v.mul(x,P),Y=v.mul(B,ne),x=v.cmov(F,x,j),B=v.cmov(Y,B,j);for(let $=Q;$>l;$--){let U=$-h;U=h<<U-l;let G=v.pow(B,U);const de=v.eql(G,v.ONE);F=v.mul(x,ne),ne=v.mul(ne,ne),G=v.mul(B,ne),x=v.cmov(F,x,de),B=v.cmov(G,B,de)}return{isValid:j,value:x}};if(v.ORDER%b===g){const ae=(v.ORDER-g)/b,X=v.sqrt(v.neg(w));Z=(ne,F)=>{let x=v.sqr(F);const Y=v.mul(ne,F);x=v.mul(x,Y);let B=v.pow(x,ae);B=v.mul(B,Y);const j=v.mul(B,X),$=v.mul(v.sqr(B),F),U=v.eql($,ne);let G=v.cmov(j,B,U);return{isValid:U,value:G}}}return Z}function R(v,w){if(r.validateField(v),!v.isValid(w.A)||!v.isValid(w.B)||!v.isValid(w.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const S=E(v,w.Z);if(!v.isOdd)throw new Error("Fp.isOdd is not implemented!");return H=>{let Q,ie,he,le,Ee,ve,m,O;Q=v.sqr(H),Q=v.mul(Q,w.Z),ie=v.sqr(Q),ie=v.add(ie,Q),he=v.add(ie,v.ONE),he=v.mul(he,w.B),le=v.cmov(w.Z,v.neg(ie),!v.eql(ie,v.ZERO)),le=v.mul(le,w.A),ie=v.sqr(he),ve=v.sqr(le),Ee=v.mul(ve,w.A),ie=v.add(ie,Ee),ie=v.mul(ie,he),ve=v.mul(ve,le),Ee=v.mul(ve,w.B),ie=v.add(ie,Ee),m=v.mul(Q,he);const{isValid:P,value:Z}=S(ie,ve);O=v.mul(Q,H),O=v.mul(O,Z),m=v.cmov(m,he,P),O=v.cmov(O,Z,P);const ae=v.isOdd(H)===v.isOdd(O);return O=v.cmov(v.neg(O),O,ae),m=v.div(m,le),{x:m,y:O}}}})(tp);Object.defineProperty(af,"__esModule",{value:!0});af.getHash=gw;af.createCurve=Gx;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Wx=iw,Q_=ei,zx=tp;function gw(e){return{hash:e,hmac:(t,...r)=>(0,Wx.hmac)(e,t,(0,Q_.concatBytes)(...r)),randomBytes:Q_.randomBytes}}function Gx(e,t){const r=i=>(0,zx.weierstrass)({...e,...gw(i)});return Object.freeze({...r(t),create:r})}var eo={};Object.defineProperty(eo,"__esModule",{value:!0});eo.expand_message_xmd=yw;eo.expand_message_xof=_w;eo.hash_to_field=oh;eo.isogenyMap=Jx;eo.createHasher=Xx;const Vx=Ut,mr=Lt,Zx=mr.bytesToNumberBE;function mi(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let i=t-1;i>=0;i--)r[i]=e&255,e>>>=8;return new Uint8Array(r)}function Kx(e,t){const r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e[i]^t[i];return r}function ap(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function yw(e,t,r,i){(0,mr.abytes)(e),(0,mr.abytes)(t),ap(r),t.length>255&&(t=i((0,mr.concatBytes)((0,mr.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:s}=i,u=Math.ceil(r/a);if(u>255)throw new Error("Invalid xmd length");const d=(0,mr.concatBytes)(t,mi(t.length,1)),c=mi(0,s),l=mi(r,2),h=new Array(u),g=i((0,mr.concatBytes)(c,e,l,mi(0,1),d));h[0]=i((0,mr.concatBytes)(g,mi(1,1),d));for(let _=1;_<=u;_++){const T=[Kx(g,h[_-1]),mi(_+1,1),d];h[_]=i((0,mr.concatBytes)(...T))}return(0,mr.concatBytes)(...h).slice(0,r)}function _w(e,t,r,i,a){if((0,mr.abytes)(e),(0,mr.abytes)(t),ap(r),t.length>255){const s=Math.ceil(2*i/8);t=a.create({dkLen:s}).update((0,mr.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(mi(r,2)).update(t).update(mi(t.length,1)).digest()}function oh(e,t,r){(0,mr.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:i,k:a,m:s,hash:u,expand:d,DST:c}=r;(0,mr.abytes)(e),ap(t);const l=typeof c=="string"?(0,mr.utf8ToBytes)(c):c,h=i.toString(2).length,g=Math.ceil((h+a)/8),b=t*s*g;let _;if(d==="xmd")_=yw(e,l,b,u);else if(d==="xof")_=_w(e,l,b,a,u);else if(d==="_internal_pass")_=e;else throw new Error('expand must be "xmd" or "xof"');const T=new Array(t);for(let k=0;k<t;k++){const E=new Array(s);for(let R=0;R<s;R++){const v=g*(R+k*s),w=_.subarray(v,v+g);E[R]=(0,Vx.mod)(Zx(w),i)}T[k]=E}return T}function Jx(e,t){const r=t.map(i=>Array.from(i).reverse());return(i,a)=>{const[s,u,d,c]=r.map(l=>l.reduce((h,g)=>e.add(e.mul(h,i),g)));return i=e.div(s,u),a=e.mul(a,e.div(d,c)),{x:i,y:a}}}function Xx(e,t,r){if(typeof t!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(i,a){const s=oh(i,2,{...r,DST:r.DST,...a}),u=e.fromAffine(t(s[0])),d=e.fromAffine(t(s[1])),c=u.add(d).clearCofactor();return c.assertValidity(),c},encodeToCurve(i,a){const s=oh(i,1,{...r,DST:r.encodeDST,...a}),u=e.fromAffine(t(s[0])).clearCofactor();return u.assertValidity(),u},mapToCurve(i){if(!Array.isArray(i))throw new Error("mapToCurve: expected array of bigints");for(const s of i)if(typeof s!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${s} in array`);const a=e.fromAffine(t(i)).clearCofactor();return a.assertValidity(),a}}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=$o,r=ei,i=af,a=eo,s=Ut,u=Lt,d=tp,c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(1),g=BigInt(2),b=(F,x)=>(F+x/g)/x;function _(F){const x=c,Y=BigInt(3),B=BigInt(6),j=BigInt(11),$=BigInt(22),U=BigInt(23),G=BigInt(44),de=BigInt(88),oe=F*F*F%x,fe=oe*oe*F%x,Se=(0,s.pow2)(fe,Y,x)*fe%x,Be=(0,s.pow2)(Se,Y,x)*fe%x,Me=(0,s.pow2)(Be,g,x)*oe%x,z=(0,s.pow2)(Me,j,x)*Me%x,J=(0,s.pow2)(z,$,x)*z%x,ge=(0,s.pow2)(J,G,x)*J%x,Ne=(0,s.pow2)(ge,de,x)*ge%x,Oe=(0,s.pow2)(Ne,G,x)*J%x,je=(0,s.pow2)(Oe,Y,x)*fe%x,me=(0,s.pow2)(je,U,x)*z%x,Ye=(0,s.pow2)(me,B,x)*oe%x,et=(0,s.pow2)(Ye,g,x);if(!T.eql(T.sqr(et),F))throw new Error("Cannot find square root");return et}const T=(0,s.Field)(c,void 0,void 0,{sqrt:_});e.secp256k1=(0,i.createCurve)({a:BigInt(0),b:BigInt(7),Fp:T,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:F=>{const x=l,Y=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),B=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),j=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$=Y,U=BigInt("0x100000000000000000000000000000000"),G=b($*F,x),de=b(-B*F,x);let oe=(0,s.mod)(F-G*Y-de*j,x),fe=(0,s.mod)(-G*B-de*$,x);const Se=oe>U,Be=fe>U;if(Se&&(oe=x-oe),Be&&(fe=x-fe),oe>U||fe>U)throw new Error("splitScalar: Endomorphism failed, k="+F);return{k1neg:Se,k1:oe,k2neg:Be,k2:fe}}}},t.sha256);const k=BigInt(0),E=F=>typeof F=="bigint"&&k<F&&F<c,R=F=>typeof F=="bigint"&&k<F&&F<l,v={};function w(F,...x){let Y=v[F];if(Y===void 0){const B=(0,t.sha256)(Uint8Array.from(F,j=>j.charCodeAt(0)));Y=(0,u.concatBytes)(B,B),v[F]=Y}return(0,t.sha256)((0,u.concatBytes)(Y,...x))}const S=F=>F.toRawBytes(!0).slice(1),H=F=>(0,u.numberToBytesBE)(F,32),Q=F=>(0,s.mod)(F,c),ie=F=>(0,s.mod)(F,l),he=e.secp256k1.ProjectivePoint,le=(F,x,Y)=>he.BASE.multiplyAndAddUnsafe(F,x,Y);function Ee(F){let x=e.secp256k1.utils.normPrivateKeyToScalar(F),Y=he.fromPrivateKey(x);return{scalar:Y.hasEvenY()?x:ie(-x),bytes:S(Y)}}function ve(F){if(!E(F))throw new Error("bad x: need 0 < x < p");const x=Q(F*F),Y=Q(x*F+BigInt(7));let B=_(Y);B%g!==k&&(B=Q(-B));const j=new he(F,B,h);return j.assertValidity(),j}function m(...F){return ie((0,u.bytesToNumberBE)(w("BIP0340/challenge",...F)))}function O(F){return Ee(F).bytes}function P(F,x,Y=(0,r.randomBytes)(32)){const B=(0,u.ensureBytes)("message",F),{bytes:j,scalar:$}=Ee(x),U=(0,u.ensureBytes)("auxRand",Y,32),G=H($^(0,u.bytesToNumberBE)(w("BIP0340/aux",U))),de=w("BIP0340/nonce",G,j,B),oe=ie((0,u.bytesToNumberBE)(de));if(oe===k)throw new Error("sign failed: k is zero");const{bytes:fe,scalar:Se}=Ee(oe),Be=m(fe,j,B),Me=new Uint8Array(64);if(Me.set(fe,0),Me.set(H(ie(Se+Be*$)),32),!Z(Me,B,j))throw new Error("sign: Invalid signature produced");return Me}function Z(F,x,Y){const B=(0,u.ensureBytes)("signature",F,64),j=(0,u.ensureBytes)("message",x),$=(0,u.ensureBytes)("publicKey",Y,32);try{const U=ve((0,u.bytesToNumberBE)($)),G=(0,u.bytesToNumberBE)(B.subarray(0,32));if(!E(G))return!1;const de=(0,u.bytesToNumberBE)(B.subarray(32,64));if(!R(de))return!1;const oe=m(H(G),S(U),j),fe=le(U,de,ie(-oe));return!(!fe||!fe.hasEvenY()||fe.toAffine().x!==G)}catch{return!1}}e.schnorr={getPublicKey:O,sign:P,verify:Z,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ve,pointToBytes:S,numberToBytesBE:u.numberToBytesBE,bytesToNumberBE:u.bytesToNumberBE,taggedHash:w,mod:s.mod}};const ae=(0,a.isogenyMap)(T,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(F=>F.map(x=>BigInt(x)))),X=(0,d.mapToCurveSimpleSWU)(T,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:T.create(BigInt("-11"))}),ne=(0,a.createHasher)(e.secp256k1.ProjectivePoint,F=>{const{x,y:Y}=X(T.create(F[0]));return ae(x,Y)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:T.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=ne.hashToCurve,e.encodeToCurve=ne.encodeToCurve})(Xv);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=Xv;Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(nf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_WITHDRAWALS_PER_PAYLOAD=e.RLP_EMPTY_STRING=e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.SECP256K1_ORDER_DIV_2=e.SECP256K1_ORDER=e.MAX_INTEGER_BIGINT=e.MAX_INTEGER=e.MAX_UINT64=void 0;const t=ee.bufferPolyfill,r=nf;e.MAX_UINT64=BigInt("0xffffffffffffffff"),e.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),e.SECP256K1_ORDER=r.secp256k1.CURVE.n,e.SECP256K1_ORDER_DIV_2=r.secp256k1.CURVE.n/BigInt(2),e.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=t.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=t.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=t.Buffer.from(e.KECCAK256_RLP_S,"hex"),e.RLP_EMPTY_STRING=t.Buffer.from([128]),e.MAX_WITHDRAWALS_PER_PAYLOAD=16})(rf);var df={};Object.defineProperty(df,"__esModule",{value:!0});df.GWEI_TO_WEI=void 0;df.GWEI_TO_WEI=BigInt(1e9);var sp={},On={};Object.defineProperty(On,"__esModule",{value:!0});On.RLP=On.utils=On.decode=On.encode=void 0;function up(e){if(Array.isArray(e)){const r=[];let i=0;for(let a=0;a<e.length;a++){const s=up(e[a]);r.push(s),i+=s.length}return sh(tb(i,192),...r)}const t=Sw(e);return t.length===1&&t[0]<128?t:sh(tb(t.length,128),t)}On.encode=up;function Eo(e,t,r){if(r>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function eb(e){if(e[0]===0)throw new Error("invalid RLP: extra zeros");return vw(mw(e))}function tb(e,t){if(e<56)return Uint8Array.from([e+t]);const r=uh(e),i=r.length/2,a=uh(t+55+i);return Uint8Array.from(Iu(a+r))}function bw(e,t=!1){if(typeof e>"u"||e===null||e.length===0)return Uint8Array.from([]);const r=Sw(e),i=ah(r);if(t)return i;if(i.remainder.length!==0)throw new Error("invalid RLP: remainder must be zero");return i.data}On.decode=bw;function ah(e){let t,r,i,a,s;const u=[],d=e[0];if(d<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(d<=183){if(t=d-127,d===128?i=Uint8Array.from([]):i=Eo(e,1,t),t===2&&i[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:i,remainder:e.slice(t)}}else if(d<=191){if(r=d-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if(t=eb(Eo(e,1,r)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return i=Eo(e,r,t+r),{data:i,remainder:e.slice(t+r)}}else if(d<=247){for(t=d-191,a=Eo(e,1,t);a.length;)s=ah(a),u.push(s.data),a=s.remainder;return{data:u,remainder:e.slice(t)}}else{if(r=d-246,t=eb(Eo(e,1,r)),t<56)throw new Error("invalid RLP: encoded list too short");const c=r+t;if(c>e.length)throw new Error("invalid RLP: total length is larger than the data");for(a=Eo(e,r,c);a.length;)s=ah(a),u.push(s.data),a=s.remainder;return{data:u,remainder:e.slice(c)}}}const Yx=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function mw(e){let t="";for(let r=0;r<e.length;r++)t+=Yx[e[r]];return t}function vw(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function Iu(e){if(typeof e!="string")throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const i=r*2;t[r]=vw(e.slice(i,i+2))}return t}function sh(...e){if(e.length===1)return e[0];const t=e.reduce((i,a)=>i+a.length,0),r=new Uint8Array(t);for(let i=0,a=0;i<e.length;i++){const s=e[i];r.set(s,a),a+=s.length}return r}function ww(e){return new TextEncoder().encode(e)}function uh(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function Qx(e){return e.length%2?`0${e}`:e}function Ew(e){return e.length>=2&&e[0]==="0"&&e[1]==="x"}function eD(e){return typeof e!="string"?e:Ew(e)?e.slice(2):e}function Sw(e){if(e instanceof Uint8Array)return e;if(typeof e=="string")return Ew(e)?Iu(Qx(eD(e))):ww(e);if(typeof e=="number"||typeof e=="bigint")return e?Iu(uh(e)):Uint8Array.from([]);if(e==null)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}On.utils={bytesToHex:mw,concatBytes:sh,hexToBytes:Iu,utf8ToBytes:ww};On.RLP={encode:up,decode:bw};var dn={},Ft={},ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.add5L=ct.add5H=ct.add4H=ct.add4L=ct.add3H=ct.add3L=ct.add=ct.rotlBL=ct.rotlBH=ct.rotlSL=ct.rotlSH=ct.rotr32L=ct.rotr32H=ct.rotrBL=ct.rotrBH=ct.rotrSL=ct.rotrSH=ct.shrSL=ct.shrSH=ct.toBig=ct.split=ct.fromBig=void 0;const ou=BigInt(2**32-1),fh=BigInt(32);function fp(e,t=!1){return t?{h:Number(e&ou),l:Number(e>>fh&ou)}:{h:Number(e>>fh&ou)|0,l:Number(e&ou)|0}}ct.fromBig=fp;function Aw(e,t=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let a=0;a<e.length;a++){const{h:s,l:u}=fp(e[a],t);[r[a],i[a]]=[s,u]}return[r,i]}ct.split=Aw;const Rw=(e,t)=>BigInt(e>>>0)<<fh|BigInt(t>>>0);ct.toBig=Rw;const Iw=(e,t,r)=>e>>>r;ct.shrSH=Iw;const Tw=(e,t,r)=>e<<32-r|t>>>r;ct.shrSL=Tw;const Ow=(e,t,r)=>e>>>r|t<<32-r;ct.rotrSH=Ow;const Pw=(e,t,r)=>e<<32-r|t>>>r;ct.rotrSL=Pw;const Cw=(e,t,r)=>e<<64-r|t>>>r-32;ct.rotrBH=Cw;const Lw=(e,t,r)=>e>>>r-32|t<<64-r;ct.rotrBL=Lw;const Nw=(e,t)=>t;ct.rotr32H=Nw;const Bw=(e,t)=>e;ct.rotr32L=Bw;const $w=(e,t,r)=>e<<r|t>>>32-r;ct.rotlSH=$w;const xw=(e,t,r)=>t<<r|e>>>32-r;ct.rotlSL=xw;const Dw=(e,t,r)=>t<<r-32|e>>>64-r;ct.rotlBH=Dw;const Mw=(e,t,r)=>e<<r-32|t>>>64-r;ct.rotlBL=Mw;function Fw(e,t,r,i){const a=(t>>>0)+(i>>>0);return{h:e+r+(a/2**32|0)|0,l:a|0}}ct.add=Fw;const jw=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);ct.add3L=jw;const kw=(e,t,r,i)=>t+r+i+(e/2**32|0)|0;ct.add3H=kw;const Uw=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0);ct.add4L=Uw;const qw=(e,t,r,i,a)=>t+r+i+a+(e/2**32|0)|0;ct.add4H=qw;const Hw=(e,t,r,i,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(a>>>0);ct.add5L=Hw;const Ww=(e,t,r,i,a,s)=>t+r+i+a+s+(e/2**32|0)|0;ct.add5H=Ww;const tD={fromBig:fp,split:Aw,toBig:Rw,shrSH:Iw,shrSL:Tw,rotrSH:Ow,rotrSL:Pw,rotrBH:Cw,rotrBL:Lw,rotr32H:Nw,rotr32L:Bw,rotlSH:$w,rotlSL:xw,rotlBH:Dw,rotlBL:Mw,add:Fw,add3L:jw,add3H:kw,add4L:Uw,add4H:qw,add5H:Ww,add5L:Hw};ct.default=tD;Object.defineProperty(Ft,"__esModule",{value:!0});Ft.shake256=Ft.shake128=Ft.keccak_512=Ft.keccak_384=Ft.keccak_256=Ft.keccak_224=Ft.sha3_512=Ft.sha3_384=Ft.sha3_256=Ft.sha3_224=Ft.Keccak=Ft.keccakP=void 0;const So=Qt,La=ct,Kn=ei,zw=[],Gw=[],Vw=[],rD=BigInt(0),ba=BigInt(1),nD=BigInt(2),iD=BigInt(7),oD=BigInt(256),aD=BigInt(113);for(let e=0,t=ba,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],zw.push(2*(5*i+r)),Gw.push((e+1)*(e+2)/2%64);let a=rD;for(let s=0;s<7;s++)t=(t<<ba^(t>>iD)*aD)%oD,t&nD&&(a^=ba<<(ba<<BigInt(s))-ba);Vw.push(a)}const[sD,uD]=(0,La.split)(Vw,!0),rb=(e,t,r)=>r>32?(0,La.rotlBH)(e,t,r):(0,La.rotlSH)(e,t,r),nb=(e,t,r)=>r>32?(0,La.rotlBL)(e,t,r):(0,La.rotlSL)(e,t,r);function Zw(e,t=24){const r=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let u=0;u<10;u++)r[u]=e[u]^e[u+10]^e[u+20]^e[u+30]^e[u+40];for(let u=0;u<10;u+=2){const d=(u+8)%10,c=(u+2)%10,l=r[c],h=r[c+1],g=rb(l,h,1)^r[d],b=nb(l,h,1)^r[d+1];for(let _=0;_<50;_+=10)e[u+_]^=g,e[u+_+1]^=b}let a=e[2],s=e[3];for(let u=0;u<24;u++){const d=Gw[u],c=rb(a,s,d),l=nb(a,s,d),h=zw[u];a=e[h],s=e[h+1],e[h]=c,e[h+1]=l}for(let u=0;u<50;u+=10){for(let d=0;d<10;d++)r[d]=e[u+d];for(let d=0;d<10;d++)e[u+d]^=~r[(d+2)%10]&r[(d+4)%10]}e[0]^=sD[i],e[1]^=uD[i]}r.fill(0)}Ft.keccakP=Zw;class za extends Kn.Hash{constructor(t,r,i,a=!1,s=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=i,this.enableXOF=a,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,So.number)(i),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Kn.u32)(this.state)}keccak(){Kn.isLE||(0,Kn.byteSwap32)(this.state32),Zw(this.state32,this.rounds),Kn.isLE||(0,Kn.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,So.exists)(this);const{blockLen:r,state:i}=this;t=(0,Kn.toBytes)(t);const a=t.length;for(let s=0;s<a;){const u=Math.min(r-this.pos,a-s);for(let d=0;d<u;d++)i[this.pos++]^=t[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:i,blockLen:a}=this;t[i]^=r,r&128&&i===a-1&&this.keccak(),t[a-1]^=128,this.keccak()}writeInto(t){(0,So.exists)(this,!1),(0,So.bytes)(t),this.finish();const r=this.state,{blockLen:i}=this;for(let a=0,s=t.length;a<s;){this.posOut>=i&&this.keccak();const u=Math.min(i-this.posOut,s-a);t.set(r.subarray(this.posOut,this.posOut+u),a),this.posOut+=u,a+=u}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,So.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,So.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:r,suffix:i,outputLen:a,rounds:s,enableXOF:u}=this;return t||(t=new za(r,i,a,u,s)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=s,t.suffix=i,t.outputLen=a,t.enableXOF=u,t.destroyed=this.destroyed,t}}Ft.Keccak=za;const Ti=(e,t,r)=>(0,Kn.wrapConstructor)(()=>new za(t,e,r));Ft.sha3_224=Ti(6,144,224/8);Ft.sha3_256=Ti(6,136,256/8);Ft.sha3_384=Ti(6,104,384/8);Ft.sha3_512=Ti(6,72,512/8);Ft.keccak_224=Ti(1,144,224/8);Ft.keccak_256=Ti(1,136,256/8);Ft.keccak_384=Ti(1,104,384/8);Ft.keccak_512=Ti(1,72,512/8);const Kw=(e,t,r)=>(0,Kn.wrapXOFConstructorWithOpts)((i={})=>new za(t,e,i.dkLen===void 0?r:i.dkLen,!0));Ft.shake128=Kw(31,168,128/8);Ft.shake256=Kw(31,136,256/8);var Tu={exports:{}};Tu.exports;(function(e,t){var r=ee.commonjsGlobal&&ee.commonjsGlobal.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0,t.bytesToUtf8=c,t.hexToBytes=l,t.equalsBytes=h,t.wrapHash=g;const i=r(Qt),a=ei,s=i.default.bool;t.assertBool=s;const u=i.default.bytes;t.assertBytes=u;var d=ei;Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return d.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return d.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return d.utf8ToBytes}});function c(b){if(!(b instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof b}`);return new TextDecoder().decode(b)}function l(b){const _=b.startsWith("0x")?b.substring(2):b;return(0,a.hexToBytes)(_)}function h(b,_){if(b.length!==_.length)return!1;for(let T=0;T<b.length;T++)if(b[T]!==_[T])return!1;return!0}function g(b){return _=>(i.default.bytes(_),b(_))}t.crypto=(()=>{const b=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,_=typeof ee.commonjsRequire=="function"&&ee.commonjsRequire.bind(e);return{node:_&&!b?_("crypto"):void 0,web:b}})()})(Tu,Tu.exports);var Jw=Tu.exports;Object.defineProperty(dn,"__esModule",{value:!0});dn.keccak512=dn.keccak384=dn.keccak256=dn.keccak224=void 0;const Na=Ft,hf=Jw;dn.keccak224=(0,hf.wrapHash)(Na.keccak_224);dn.keccak256=(()=>{const e=(0,hf.wrapHash)(Na.keccak_256);return e.create=Na.keccak_256.create,e})();dn.keccak384=(0,hf.wrapHash)(Na.keccak_384);dn.keccak512=(0,hf.wrapHash)(Na.keccak_512);var to={},rn={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.isHexString=jt.getKeys=jt.fromAscii=jt.fromUtf8=jt.toAscii=jt.arrayContainsArray=jt.getBinarySize=jt.padToEven=jt.stripHexPrefix=jt.isHexPrefixed=void 0;function Xw(e){if(typeof e!="string")throw new Error(`[isHexPrefixed] input must be type 'string', received type ${typeof e}`);return e[0]==="0"&&e[1]==="x"}jt.isHexPrefixed=Xw;const fD=e=>{if(typeof e!="string")throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return Xw(e)?e.slice(2):e};jt.stripHexPrefix=fD;function Yw(e){let t=e;if(typeof t!="string")throw new Error(`[padToEven] value must be type 'string', received ${typeof t}`);return t.length%2&&(t=`0${t}`),t}jt.padToEven=Yw;function cD(e){if(typeof e!="string")throw new Error(`[getBinarySize] method requires input type 'string', received ${typeof e}`);return ee.dist.Buffer.byteLength(e,"utf8")}jt.getBinarySize=cD;function lD(e,t,r){if(Array.isArray(e)!==!0)throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(Array.isArray(t)!==!0)throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[r===!0?"some":"every"](i=>e.indexOf(i)>=0)}jt.arrayContainsArray=lD;function dD(e){let t="",r=0;const i=e.length;for(e.substring(0,2)==="0x"&&(r=2);r<i;r+=2){const a=parseInt(e.substr(r,2),16);t+=String.fromCharCode(a)}return t}jt.toAscii=dD;function hD(e){const t=ee.dist.Buffer.from(e,"utf8");return`0x${Yw(t.toString("hex")).replace(/^0+|0+$/g,"")}`}jt.fromUtf8=hD;function pD(e){let t="";for(let r=0;r<e.length;r++){const a=e.charCodeAt(r).toString(16);t+=a.length<2?`0${a}`:a}return`0x${t}`}jt.fromAscii=pD;function gD(e,t,r){if(!Array.isArray(e))throw new Error(`[getKeys] method expects input 'params' to be an array, got ${typeof e}`);if(typeof t!="string")throw new Error(`[getKeys] method expects input 'key' to be type 'string', got ${typeof e}`);const i=[];for(let a=0;a<e.length;a++){let s=e[a][t];if(r===!0&&!s)s="";else if(typeof s!="string")throw new Error(`invalid abi - expected type 'string', received ${typeof s}`);i.push(s)}return i}jt.getKeys=gD;function yD(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||typeof t<"u"&&t>0&&e.length!==2+2*t)}jt.isHexString=yD;Object.defineProperty(rn,"__esModule",{value:!0});rn.assertIsString=rn.assertIsArray=rn.assertIsBuffer=rn.assertIsHexString=void 0;const _D=jt,bD=function(e){if(!(0,_D.isHexString)(e)){const t=`This method only supports 0x-prefixed hex strings but input was: ${e}`;throw new Error(t)}};rn.assertIsHexString=bD;const mD=function(e){if(!ee.dist.Buffer.isBuffer(e)){const t=`This method only supports Buffer but input was: ${e}`;throw new Error(t)}};rn.assertIsBuffer=mD;const vD=function(e){if(!Array.isArray(e)){const t=`This method only supports number arrays but input was: ${e}`;throw new Error(t)}};rn.assertIsArray=vD;const wD=function(e){if(typeof e!="string"){const t=`This method only supports strings but input was: ${e}`;throw new Error(t)}};rn.assertIsString=wD;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.intToUnpaddedBuffer=e.bigIntToUnpaddedBuffer=e.bigIntToHex=e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.short=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToInt=e.bigIntToBuffer=e.bufferToBigInt=e.bufferToHex=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;const t=rn,r=jt,i=function(P){if(!Number.isSafeInteger(P)||P<0)throw new Error(`Received an invalid integer type: ${P}`);return`0x${P.toString(16)}`};e.intToHex=i;const a=function(P){const Z=(0,e.intToHex)(P);return ee.dist.Buffer.from((0,r.padToEven)(Z.slice(2)),"hex")};e.intToBuffer=a;const s=function(P){return ee.dist.Buffer.allocUnsafe(P).fill(0)};e.zeros=s;const u=function(P,Z,ae){const X=(0,e.zeros)(Z);return ae?P.length<Z?(P.copy(X),X):P.slice(0,Z):P.length<Z?(P.copy(X,Z-P.length),X):P.slice(-Z)},d=function(P,Z){return(0,t.assertIsBuffer)(P),u(P,Z,!1)};e.setLengthLeft=d;const c=function(P,Z){return(0,t.assertIsBuffer)(P),u(P,Z,!0)};e.setLengthRight=c;const l=function(P){let Z=P[0];for(;P.length>0&&Z.toString()==="0";)P=P.slice(1),Z=P[0];return P},h=function(P){return(0,t.assertIsBuffer)(P),l(P)};e.unpadBuffer=h;const g=function(P){return(0,t.assertIsArray)(P),l(P)};e.unpadArray=g;const b=function(P){return(0,t.assertIsHexString)(P),P=(0,r.stripHexPrefix)(P),"0x"+l(P)};e.unpadHexString=b;const _=function(P){if(P==null)return ee.dist.Buffer.allocUnsafe(0);if(ee.dist.Buffer.isBuffer(P)||Array.isArray(P)||P instanceof Uint8Array)return ee.dist.Buffer.from(P);if(typeof P=="string"){if(!(0,r.isHexString)(P))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${P}`);return ee.dist.Buffer.from((0,r.padToEven)((0,r.stripHexPrefix)(P)),"hex")}if(typeof P=="number")return(0,e.intToBuffer)(P);if(typeof P=="bigint"){if(P<BigInt(0))throw new Error(`Cannot convert negative bigint to buffer. Given: ${P}`);let Z=P.toString(16);return Z.length%2&&(Z="0"+Z),ee.dist.Buffer.from(Z,"hex")}if(P.toArray)return ee.dist.Buffer.from(P.toArray());if(P.toBuffer)return ee.dist.Buffer.from(P.toBuffer());throw new Error("invalid type")};e.toBuffer=_;const T=function(P){return P=(0,e.toBuffer)(P),"0x"+P.toString("hex")};e.bufferToHex=T;function k(P){const Z=(0,e.bufferToHex)(P);return BigInt(Z==="0x"?0:Z)}e.bufferToBigInt=k;function E(P){return(0,e.toBuffer)("0x"+P.toString(16))}e.bigIntToBuffer=E;const R=function(P){const Z=Number(k(P));if(!Number.isSafeInteger(Z))throw new Error("Number exceeds 53 bits");return Z};e.bufferToInt=R;const v=function(P){return BigInt.asIntN(256,k(P))};e.fromSigned=v;const w=function(P){return E(BigInt.asUintN(256,P))};e.toUnsigned=w;const S=function(P){return typeof P!="string"||(0,r.isHexPrefixed)(P)?P:"0x"+P};e.addHexPrefix=S;function H(P,Z=50){const ae=ee.dist.Buffer.isBuffer(P)?P.toString("hex"):P;return ae.length<=Z?ae:ae.slice(0,Z)+"…"}e.short=H;const Q=function(P){const Z=/^(00)+|(00)+$/g;if(P=(0,r.stripHexPrefix)(P),P.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return ee.dist.Buffer.from(P.replace(Z,""),"hex").toString("utf8")};e.toUtf8=Q;const ie=function(P){if(ee.dist.Buffer.isBuffer(P))return`0x${P.toString("hex")}`;if(P instanceof Array){const Z=[];for(let ae=0;ae<P.length;ae++)Z.push((0,e.baToJSON)(P[ae]));return Z}};e.baToJSON=ie;const he=function(P){for(const[Z,ae]of Object.entries(P))if(ae!==void 0&&ae.length>0&&ae[0]===0)throw new Error(`${Z} cannot have leading zeroes, received: ${ae.toString("hex")}`)};e.validateNoLeadingZeroes=he;function le(P){return Array.isArray(P)?P.map(Z=>le(Z)):ee.dist.Buffer.from(P)}e.arrToBufArr=le;function Ee(P){return Array.isArray(P)?P.map(Z=>Ee(Z)):Uint8Array.from(P??[])}e.bufArrToArr=Ee;const ve=P=>"0x"+P.toString(16);e.bigIntToHex=ve;function m(P){return(0,e.unpadBuffer)(E(P))}e.bigIntToUnpaddedBuffer=m;function O(P){return(0,e.unpadBuffer)((0,e.intToBuffer)(P))}e.intToUnpaddedBuffer=O})(to);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.accountBodyToRLP=e.accountBodyToSlim=e.accountBodyFromSlim=e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;const t=On,r=dn,i=nf,a=Jw,s=to,u=rf,d=rn,c=jt,l=BigInt(0);class h{constructor(O=l,P=l,Z=u.KECCAK256_RLP,ae=u.KECCAK256_NULL){this.nonce=O,this.balance=P,this.storageRoot=Z,this.codeHash=ae,this._validate()}static fromAccountData(O){const{nonce:P,balance:Z,storageRoot:ae,codeHash:X}=O;return new h(P!==void 0?(0,s.bufferToBigInt)((0,s.toBuffer)(P)):void 0,Z!==void 0?(0,s.bufferToBigInt)((0,s.toBuffer)(Z)):void 0,ae!==void 0?(0,s.toBuffer)(ae):void 0,X!==void 0?(0,s.toBuffer)(X):void 0)}static fromRlpSerializedAccount(O){const P=(0,s.arrToBufArr)(t.RLP.decode(Uint8Array.from(O)));if(!Array.isArray(P))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(P)}static fromValuesArray(O){const[P,Z,ae,X]=O;return new h((0,s.bufferToBigInt)(P),(0,s.bufferToBigInt)(Z),ae,X)}_validate(){if(this.nonce<l)throw new Error("nonce must be greater than zero");if(this.balance<l)throw new Error("balance must be greater than zero");if(this.storageRoot.length!==32)throw new Error("storageRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")}raw(){return[(0,s.bigIntToUnpaddedBuffer)(this.nonce),(0,s.bigIntToUnpaddedBuffer)(this.balance),this.storageRoot,this.codeHash]}serialize(){return ee.dist.Buffer.from(t.RLP.encode((0,s.bufArrToArr)(this.raw())))}isContract(){return!this.codeHash.equals(u.KECCAK256_NULL)}isEmpty(){return this.balance===l&&this.nonce===l&&this.codeHash.equals(u.KECCAK256_NULL)}}e.Account=h;const g=function(m){try{(0,d.assertIsString)(m)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(m)};e.isValidAddress=g;const b=function(m,O){(0,d.assertIsHexString)(m);const P=(0,c.stripHexPrefix)(m).toLowerCase();let Z="";O!==void 0&&(Z=(0,s.bufferToBigInt)((0,s.toBuffer)(O)).toString()+"0x");const ae=ee.dist.Buffer.from(Z+P,"utf8"),X=(0,a.bytesToHex)((0,r.keccak256)(ae));let ne="0x";for(let F=0;F<P.length;F++)parseInt(X[F],16)>=8?ne+=P[F].toUpperCase():ne+=P[F];return ne};e.toChecksumAddress=b;const _=function(m,O){return(0,e.isValidAddress)(m)&&(0,e.toChecksumAddress)(m,O)===m};e.isValidChecksumAddress=_;const T=function(m,O){return(0,d.assertIsBuffer)(m),(0,d.assertIsBuffer)(O),(0,s.bufferToBigInt)(O)===BigInt(0)?ee.dist.Buffer.from((0,r.keccak256)(t.RLP.encode((0,s.bufArrToArr)([m,null])))).slice(-20):ee.dist.Buffer.from((0,r.keccak256)(t.RLP.encode((0,s.bufArrToArr)([m,O])))).slice(-20)};e.generateAddress=T;const k=function(m,O,P){if((0,d.assertIsBuffer)(m),(0,d.assertIsBuffer)(O),(0,d.assertIsBuffer)(P),m.length!==20)throw new Error("Expected from to be of length 20");if(O.length!==32)throw new Error("Expected salt to be of length 32");const Z=(0,r.keccak256)(ee.dist.Buffer.concat([ee.dist.Buffer.from("ff","hex"),m,O,(0,r.keccak256)(P)]));return(0,s.toBuffer)(Z).slice(-20)};e.generateAddress2=k;const E=function(m){return i.secp256k1.utils.isValidPrivateKey(m)};e.isValidPrivate=E;const R=function(m,O=!1){if((0,d.assertIsBuffer)(m),m.length===64)try{return i.secp256k1.ProjectivePoint.fromHex(ee.dist.Buffer.concat([ee.dist.Buffer.from([4]),m])),!0}catch{return!1}if(!O)return!1;try{return i.secp256k1.ProjectivePoint.fromHex(m),!0}catch{return!1}};e.isValidPublic=R;const v=function(m,O=!1){if((0,d.assertIsBuffer)(m),O&&m.length!==64&&(m=ee.dist.Buffer.from(i.secp256k1.ProjectivePoint.fromHex(m).toRawBytes(!1).slice(1))),m.length!==64)throw new Error("Expected pubKey to be of length 64");return ee.dist.Buffer.from((0,r.keccak256)(m)).slice(-20)};e.pubToAddress=v,e.publicToAddress=e.pubToAddress;const w=function(m){return(0,d.assertIsBuffer)(m),ee.dist.Buffer.from(i.secp256k1.ProjectivePoint.fromPrivateKey(m).toRawBytes(!1).slice(1))};e.privateToPublic=w;const S=function(m){return(0,e.publicToAddress)((0,e.privateToPublic)(m))};e.privateToAddress=S;const H=function(m){return(0,d.assertIsBuffer)(m),m.length!==64&&(m=ee.dist.Buffer.from(i.secp256k1.ProjectivePoint.fromHex(m).toRawBytes(!1).slice(1))),m};e.importPublic=H;const Q=function(){const O=(0,s.zeros)(20);return(0,s.bufferToHex)(O)};e.zeroAddress=Q;const ie=function(m){try{(0,d.assertIsString)(m)}catch{return!1}return(0,e.zeroAddress)()===m};e.isZeroAddress=ie;function he(m){const[O,P,Z,ae]=m;return[O,P,(0,s.arrToBufArr)(Z).length===0?u.KECCAK256_RLP:Z,(0,s.arrToBufArr)(ae).length===0?u.KECCAK256_NULL:ae]}e.accountBodyFromSlim=he;const le=new Uint8Array(0);function Ee(m){const[O,P,Z,ae]=m;return[O,P,(0,s.arrToBufArr)(Z).equals(u.KECCAK256_RLP)?le:Z,(0,s.arrToBufArr)(ae).equals(u.KECCAK256_NULL)?le:ae]}e.accountBodyToSlim=Ee;function ve(m,O=!0){const P=O?he(m):m;return(0,s.arrToBufArr)(t.RLP.encode(P))}e.accountBodyToRLP=ve})(sp);var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0});Ga.Address=void 0;const ma=sp,au=to;class Jn{constructor(t){if(t.length!==20)throw new Error("Invalid address length");this.buf=t}static zero(){return new Jn((0,au.zeros)(20))}static fromString(t){if(!(0,ma.isValidAddress)(t))throw new Error("Invalid address");return new Jn((0,au.toBuffer)(t))}static fromPublicKey(t){if(!ee.dist.Buffer.isBuffer(t))throw new Error("Public key should be Buffer");const r=(0,ma.pubToAddress)(t);return new Jn(r)}static fromPrivateKey(t){if(!ee.dist.Buffer.isBuffer(t))throw new Error("Private key should be Buffer");const r=(0,ma.privateToAddress)(t);return new Jn(r)}static generate(t,r){if(typeof r!="bigint")throw new Error("Expected nonce to be a bigint");return new Jn((0,ma.generateAddress)(t.buf,(0,au.bigIntToBuffer)(r)))}static generate2(t,r,i){if(!ee.dist.Buffer.isBuffer(r))throw new Error("Expected salt to be a Buffer");if(!ee.dist.Buffer.isBuffer(i))throw new Error("Expected initCode to be a Buffer");return new Jn((0,ma.generateAddress2)(t.buf,r,i))}equals(t){return this.buf.equals(t.buf)}isZero(){return this.equals(Jn.zero())}isPrecompileOrSystemAddress(){const t=(0,au.bufferToBigInt)(this.buf),r=BigInt(0),i=BigInt("0xffff");return t>=r&&t<=i}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return ee.dist.Buffer.from(this.buf)}}Ga.Address=Jn;var pf={},cp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=void 0;const t=to,r=jt;var i;(function(s){s[s.Number=0]="Number",s[s.BigInt=1]="BigInt",s[s.Buffer=2]="Buffer",s[s.PrefixedHexString=3]="PrefixedHexString"})(i=e.TypeOutput||(e.TypeOutput={}));function a(s,u){if(s===null)return null;if(s===void 0)return;if(typeof s=="string"&&!(0,r.isHexString)(s))throw new Error(`A string must be provided with a 0x-prefix, given: ${s}`);if(typeof s=="number"&&!Number.isSafeInteger(s))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const d=(0,t.toBuffer)(s);switch(u){case i.Buffer:return d;case i.BigInt:return(0,t.bufferToBigInt)(d);case i.Number:{const c=(0,t.bufferToBigInt)(d);if(c>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(c)}case i.PrefixedHexString:return(0,t.bufferToHex)(d);default:throw new Error("unknown outputType")}}e.toType=a})(cp);Object.defineProperty(pf,"__esModule",{value:!0});pf.Withdrawal=void 0;const ib=Ga,fd=to,Kt=cp;class Ra{constructor(t,r,i,a){this.index=t,this.validatorIndex=r,this.address=i,this.amount=a}static fromWithdrawalData(t){const{index:r,validatorIndex:i,address:a,amount:s}=t,u=(0,Kt.toType)(r,Kt.TypeOutput.BigInt),d=(0,Kt.toType)(i,Kt.TypeOutput.BigInt),c=new ib.Address((0,Kt.toType)(a,Kt.TypeOutput.Buffer)),l=(0,Kt.toType)(s,Kt.TypeOutput.BigInt);return new Ra(u,d,c,l)}static fromValuesArray(t){if(t.length!==4)throw Error(`Invalid withdrawalArray length expected=4 actual=${t.length}`);const[r,i,a,s]=t;return Ra.fromWithdrawalData({index:r,validatorIndex:i,address:a,amount:s})}static toBufferArray(t){const{index:r,validatorIndex:i,address:a,amount:s}=t,u=(0,Kt.toType)(r,Kt.TypeOutput.BigInt)===BigInt(0)?ee.dist.Buffer.alloc(0):(0,Kt.toType)(r,Kt.TypeOutput.Buffer),d=(0,Kt.toType)(i,Kt.TypeOutput.BigInt)===BigInt(0)?ee.dist.Buffer.alloc(0):(0,Kt.toType)(i,Kt.TypeOutput.Buffer);let c;a instanceof ib.Address?c=a.buf:c=(0,Kt.toType)(a,Kt.TypeOutput.Buffer);const l=(0,Kt.toType)(s,Kt.TypeOutput.BigInt)===BigInt(0)?ee.dist.Buffer.alloc(0):(0,Kt.toType)(s,Kt.TypeOutput.Buffer);return[u,d,c,l]}raw(){return Ra.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,fd.bigIntToHex)(this.index),validatorIndex:(0,fd.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,fd.bigIntToHex)(this.amount)}}}pf.Withdrawal=Ra;var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.hashPersonalMessage=vr.isValidSignature=vr.fromRpcSig=vr.toCompactSig=vr.toRpcSig=vr.ecrecover=vr.ecsign=void 0;const ED=dn,Qw=nf,Nr=to,cd=rf,SD=rn;function AD(e,t,r){const i=Qw.secp256k1.sign(e,t),a=i.toCompactRawBytes(),s=ee.dist.Buffer.from(a.slice(0,32)),u=ee.dist.Buffer.from(a.slice(32,64)),d=r===void 0?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*BigInt(2);return{r:s,s:u,v:d}}vr.ecsign=AD;function gf(e,t){return e===BigInt(0)||e===BigInt(1)?e:t===void 0?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function yf(e){return e===BigInt(0)||e===BigInt(1)}const RD=function(e,t,r,i,a){const s=ee.dist.Buffer.concat([(0,Nr.setLengthLeft)(r,32),(0,Nr.setLengthLeft)(i,32)],64),u=gf(t,a);if(!yf(u))throw new Error("Invalid signature v value");const c=Qw.secp256k1.Signature.fromCompact(s).addRecoveryBit(Number(u)).recoverPublicKey(e);return ee.dist.Buffer.from(c.toRawBytes(!1).slice(1))};vr.ecrecover=RD;const ID=function(e,t,r,i){const a=gf(e,i);if(!yf(a))throw new Error("Invalid signature v value");return(0,Nr.bufferToHex)(ee.dist.Buffer.concat([(0,Nr.setLengthLeft)(t,32),(0,Nr.setLengthLeft)(r,32),(0,Nr.toBuffer)(e)]))};vr.toRpcSig=ID;const TD=function(e,t,r,i){const a=gf(e,i);if(!yf(a))throw new Error("Invalid signature v value");let s=r;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(s=ee.dist.Buffer.from(r),s[0]|=128),(0,Nr.bufferToHex)(ee.dist.Buffer.concat([(0,Nr.setLengthLeft)(t,32),(0,Nr.setLengthLeft)(s,32)]))};vr.toCompactSig=TD;const OD=function(e){const t=(0,Nr.toBuffer)(e);let r,i,a;if(t.length>=65)r=t.slice(0,32),i=t.slice(32,64),a=(0,Nr.bufferToBigInt)(t.slice(64));else if(t.length===64)r=t.slice(0,32),i=t.slice(32,64),a=BigInt((0,Nr.bufferToInt)(t.slice(32,33))>>7),i[0]&=127;else throw new Error("Invalid signature length");return a<27&&(a=a+BigInt(27)),{v:a,r,s:i}};vr.fromRpcSig=OD;const PD=function(e,t,r,i=!0,a){if(t.length!==32||r.length!==32||!yf(gf(e,a)))return!1;const s=(0,Nr.bufferToBigInt)(t),u=(0,Nr.bufferToBigInt)(r);return!(s===BigInt(0)||s>=cd.SECP256K1_ORDER||u===BigInt(0)||u>=cd.SECP256K1_ORDER||i&&u>=cd.SECP256K1_ORDER_DIV_2)};vr.isValidSignature=PD;const CD=function(e){(0,SD.assertIsBuffer)(e);const t=ee.dist.Buffer.from(`Ethereum Signed Message:
73
+ ${e.length}`,"utf-8");return ee.dist.Buffer.from((0,ED.keccak256)(ee.dist.Buffer.concat([t,e])))};vr.hashPersonalMessage=CD;var eE={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.compactBytesToNibbles=e.bytesToNibbles=e.nibblesToCompactBytes=e.nibblesToBytes=e.hasTerminator=void 0;const t=u=>u.length>0&&u[u.length-1]===16;e.hasTerminator=t;const r=(u,d)=>{for(let c=0,l=0;l<u.length;c+=1,l+=2)d[c]=u[l]<<4|u[l+1]};e.nibblesToBytes=r;const i=u=>{let d=0;(0,e.hasTerminator)(u)&&(d=1,u=u.subarray(0,u.length-1));const c=new Uint8Array(u.length/2+1);return c[0]=d<<5,(u.length&1)===1&&(c[0]|=16,c[0]|=u[0],u=u.subarray(1)),(0,e.nibblesToBytes)(u,c.subarray(1)),c};e.nibblesToCompactBytes=i;const a=u=>{const d=u.length*2+1,c=new Uint8Array(d);for(let l=0;l<u.length;l++){const h=u[l];c[l*2]=h/16,c[l*2+1]=h%16}return c[d-1]=16,c};e.bytesToNibbles=a;const s=u=>{if(u.length===0)return u;let d=(0,e.bytesToNibbles)(u);d[0]<2&&(d=d.subarray(0,d.length-1));const c=2-(d[0]&1);return d.subarray(c)};e.compactBytesToNibbles=s})(eE);var _f={};Object.defineProperty(_f,"__esModule",{value:!0});_f.AsyncEventEmitter=void 0;const LD=ee.requireEvents();async function ND(e,t,r){let i;for await(const a of t)try{a.length<2?a.call(e,r):await new Promise((s,u)=>{a.call(e,r,d=>{d?u(d):s()})})}catch(s){i=s}if(i)throw i}class BD extends LD.EventEmitter{emit(t,...r){let[i,a]=r;const s=this;let u=s._events[t]??[];return a===void 0&&typeof i=="function"&&(a=i,i=void 0),(t==="newListener"||t==="removeListener")&&(i={event:i,fn:a},a=void 0),u=Array.isArray(u)?u:[u],ND(s,u.slice(),i).then(a).catch(a),s.listenerCount(t)>0}once(t,r){const i=this;let a;if(typeof r!="function")throw new TypeError("listener must be a function");return r.length>=2?a=function(s,u){i.removeListener(t,a),r(s,u)}:a=function(s){i.removeListener(t,a),r(s,a)},i.on(t,a),i}first(t,r){let i=this._events[t]??[];if(typeof r!="function")throw new TypeError("listener must be a function");return Array.isArray(i)||(this._events[t]=i=[i]),i.unshift(r),this}before(t,r,i){return this.beforeOrAfter(t,r,i)}after(t,r,i){return this.beforeOrAfter(t,r,i,"after")}beforeOrAfter(t,r,i,a){let s=this._events[t]??[],u,d;const c=a==="after"?1:0;if(typeof i!="function")throw new TypeError("listener must be a function");if(typeof r!="function")throw new TypeError("target must be a function");for(Array.isArray(s)||(this._events[t]=s=[s]),d=s.length,u=s.length;u--;)if(s[u]===r){d=u+c;break}return s.splice(d,0,i),this}on(t,r){return super.on(t,r)}addListener(t,r){return super.addListener(t,r)}prependListener(t,r){return super.prependListener(t,r)}prependOnceListener(t,r){return super.prependOnceListener(t,r)}removeAllListeners(t){return super.removeAllListeners(t)}removeListener(t,r){return super.removeListener(t,r)}eventNames(){return super.eventNames()}listeners(t){return super.listeners(t)}listenerCount(t){return super.listenerCount(t)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(t){return super.setMaxListeners(t)}}_f.AsyncEventEmitter=BD;var bf={};Object.defineProperty(bf,"__esModule",{value:!0});bf.Lock=void 0;class $D{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise(t=>this.promiseResolverQueue.push(t))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(this.permits===1&&this.promiseResolverQueue.length>0){this.permits-=1;const t=this.promiseResolverQueue.shift();t&&t(!0)}}}bf.Lock=$D;var xo={},Zi={},ld={},dd={exports:{}},hd={},ob;function tE(){return ob||(ob=1,function(e){e.fetch=a(ee.commonjsGlobal.fetch)&&a(ee.commonjsGlobal.ReadableStream),e.writableStream=a(ee.commonjsGlobal.WritableStream),e.abortController=a(ee.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(ee.commonjsGlobal.XMLHttpRequest){t=new ee.commonjsGlobal.XMLHttpRequest;try{t.open("GET",ee.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function i(s){var u=r();if(!u)return!1;try{return u.responseType=s,u.responseType===s}catch{}return!1}e.arraybuffer=e.fetch||i("arraybuffer"),e.msstream=!e.fetch&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?a(r().overrideMimeType):!1);function a(s){return typeof s=="function"}t=null}(hd)),hd}var su={},ab;function rE(){if(ab)return su;ab=1;var e=tE(),t=ee.requireInherits_browser(),r=Do,i=su.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=su.IncomingMessage=function(s,u,d,c){var l=this;if(r.Readable.call(l),l._mode=d,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){ee.dist.process.nextTick(function(){l.emit("close")})}),d==="fetch"){let k=function(){g.read().then(function(E){if(!l._destroyed){if(c(E.done),E.done){l.push(null);return}l.push(ee.dist.Buffer.from(E.value)),k()}}).catch(function(E){c(!0),l._destroyed||l.emit("error",E)})};if(l._fetchResponse=u,l.url=u.url,l.statusCode=u.status,l.statusMessage=u.statusText,u.headers.forEach(function(E,R){l.headers[R.toLowerCase()]=E,l.rawHeaders.push(R,E)}),e.writableStream){var h=new WritableStream({write:function(E){return c(!1),new Promise(function(R,v){l._destroyed?v():l.push(ee.dist.Buffer.from(E))?R():l._resumeFetch=R})},close:function(){c(!0),l._destroyed||l.push(null)},abort:function(E){c(!0),l._destroyed||l.emit("error",E)}});try{u.body.pipeTo(h).catch(function(E){c(!0),l._destroyed||l.emit("error",E)});return}catch{}}var g=u.body.getReader();k()}else{l._xhr=s,l._pos=0,l.url=s.responseURL,l.statusCode=s.status,l.statusMessage=s.statusText;var b=s.getAllResponseHeaders().split(/\r?\n/);if(b.forEach(function(k){var E=k.match(/^([^:]+):\s*(.*)/);if(E){var R=E[1].toLowerCase();R==="set-cookie"?(l.headers[R]===void 0&&(l.headers[R]=[]),l.headers[R].push(E[2])):l.headers[R]!==void 0?l.headers[R]+=", "+E[2]:l.headers[R]=E[2],l.rawHeaders.push(E[1],E[2])}}),l._charset="x-user-defined",!e.overrideMimeType){var _=l.rawHeaders["mime-type"];if(_){var T=_.match(/;\s*charset=([^;])(;|$)/);T&&(l._charset=T[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};return t(a,r.Readable),a.prototype._read=function(){var s=this,u=s._resumeFetch;u&&(s._resumeFetch=null,u())},a.prototype._onXHRProgress=function(s){var u=this,d=u._xhr,c=null;switch(u._mode){case"text":if(c=d.responseText,c.length>u._pos){var l=c.substr(u._pos);if(u._charset==="x-user-defined"){for(var h=ee.dist.Buffer.alloc(l.length),g=0;g<l.length;g++)h[g]=l.charCodeAt(g)&255;u.push(h)}else u.push(l,u._charset);u._pos=c.length}break;case"arraybuffer":if(d.readyState!==i.DONE||!d.response)break;c=d.response,u.push(ee.dist.Buffer.from(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=d.response,d.readyState!==i.LOADING||!c)break;u.push(ee.dist.Buffer.from(new Uint8Array(c)));break;case"ms-stream":if(c=d.response,d.readyState!==i.LOADING)break;var b=new ee.commonjsGlobal.MSStreamReader;b.onprogress=function(){b.result.byteLength>u._pos&&(u.push(ee.dist.Buffer.from(new Uint8Array(b.result.slice(u._pos)))),u._pos=b.result.byteLength)},b.onload=function(){s(!0),u.push(null)},b.readAsArrayBuffer(c);break}u._xhr.readyState===i.DONE&&u._mode!=="ms-stream"&&(s(!0),u.push(null))},su}var sb;function xD(){if(sb)return dd.exports;sb=1;var e=tE(),t=ee.requireInherits_browser(),r=rE(),i=Do,a=r.IncomingMessage,s=r.readyStates;function u(h,g){return e.fetch&&g?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&h?"arraybuffer":"text"}var d=dd.exports=function(h){var g=this;i.Writable.call(g),g._opts=h,g._body=[],g._headers={},h.auth&&g.setHeader("Authorization","Basic "+ee.dist.Buffer.from(h.auth).toString("base64")),Object.keys(h.headers).forEach(function(T){g.setHeader(T,h.headers[T])});var b,_=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!e.abortController)_=!1,b=!0;else if(h.mode==="prefer-streaming")b=!1;else if(h.mode==="allow-wrong-content-type")b=!e.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")b=!0;else throw new Error("Invalid value for opts.mode");g._mode=u(b,_),g._fetchTimer=null,g._socketTimeout=null,g._socketTimer=null,g.on("finish",function(){g._onFinish()})};t(d,i.Writable),d.prototype.setHeader=function(h,g){var b=this,_=h.toLowerCase();l.indexOf(_)===-1&&(b._headers[_]={name:h,value:g})},d.prototype.getHeader=function(h){var g=this._headers[h.toLowerCase()];return g?g.value:null},d.prototype.removeHeader=function(h){var g=this;delete g._headers[h.toLowerCase()]},d.prototype._onFinish=function(){var h=this;if(!h._destroyed){var g=h._opts;"timeout"in g&&g.timeout!==0&&h.setTimeout(g.timeout);var b=h._headers,_=null;g.method!=="GET"&&g.method!=="HEAD"&&(_=new Blob(h._body,{type:(b["content-type"]||{}).value||""}));var T=[];if(Object.keys(b).forEach(function(v){var w=b[v].name,S=b[v].value;Array.isArray(S)?S.forEach(function(H){T.push([w,H])}):T.push([w,S])}),h._mode==="fetch"){var k=null;if(e.abortController){var E=new AbortController;k=E.signal,h._fetchAbortController=E,"requestTimeout"in g&&g.requestTimeout!==0&&(h._fetchTimer=ee.commonjsGlobal.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},g.requestTimeout))}ee.commonjsGlobal.fetch(h._opts.url,{method:h._opts.method,headers:T,body:_||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:k}).then(function(v){h._fetchResponse=v,h._resetTimers(!1),h._connect()},function(v){h._resetTimers(!0),h._destroyed||h.emit("error",v)})}else{var R=h._xhr=new ee.commonjsGlobal.XMLHttpRequest;try{R.open(h._opts.method,h._opts.url,!0)}catch(v){ee.dist.process.nextTick(function(){h.emit("error",v)});return}"responseType"in R&&(R.responseType=h._mode),"withCredentials"in R&&(R.withCredentials=!!g.withCredentials),h._mode==="text"&&"overrideMimeType"in R&&R.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(R.timeout=g.requestTimeout,R.ontimeout=function(){h.emit("requestTimeout")}),T.forEach(function(v){R.setRequestHeader(v[0],v[1])}),h._response=null,R.onreadystatechange=function(){switch(R.readyState){case s.LOADING:case s.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(R.onprogress=function(){h._onXHRProgress()}),R.onerror=function(){h._destroyed||(h._resetTimers(!0),h.emit("error",new Error("XHR error")))};try{R.send(_)}catch(v){ee.dist.process.nextTick(function(){h.emit("error",v)});return}}}};function c(h){try{var g=h.status;return g!==null&&g!==0}catch{return!1}}d.prototype._onXHRProgress=function(){var h=this;h._resetTimers(!1),!(!c(h._xhr)||h._destroyed)&&(h._response||h._connect(),h._response._onXHRProgress(h._resetTimers.bind(h)))},d.prototype._connect=function(){var h=this;h._destroyed||(h._response=new a(h._xhr,h._fetchResponse,h._mode,h._resetTimers.bind(h)),h._response.on("error",function(g){h.emit("error",g)}),h.emit("response",h._response))},d.prototype._write=function(h,g,b){var _=this;_._body.push(h),b()},d.prototype._resetTimers=function(h){var g=this;ee.commonjsGlobal.clearTimeout(g._socketTimer),g._socketTimer=null,h?(ee.commonjsGlobal.clearTimeout(g._fetchTimer),g._fetchTimer=null):g._socketTimeout&&(g._socketTimer=ee.commonjsGlobal.setTimeout(function(){g.emit("timeout")},g._socketTimeout))},d.prototype.abort=d.prototype.destroy=function(h){var g=this;g._destroyed=!0,g._resetTimers(!0),g._response&&(g._response._destroyed=!0),g._xhr?g._xhr.abort():g._fetchAbortController&&g._fetchAbortController.abort(),h&&g.emit("error",h)},d.prototype.end=function(h,g,b){var _=this;typeof h=="function"&&(b=h,h=void 0),i.Writable.prototype.end.call(_,h,g,b)},d.prototype.setTimeout=function(h,g){var b=this;g&&b.once("timeout",g),b._socketTimeout=h,b._resetTimers(!1)},d.prototype.flushHeaders=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return dd.exports}var pd,ub;function DD(){return ub||(ub=1,pd={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),pd}var uu={exports:{}},Sa={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Sa.exports;var fb;function MD(){return fb||(fb=1,function(e,t){(function(r){var i=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,s=typeof ee.commonjsGlobal=="object"&&ee.commonjsGlobal;(s.global===s||s.window===s||s.self===s)&&(r=s);var u,d=2147483647,c=36,l=1,h=26,g=38,b=700,_=72,T=128,k="-",E=/^xn--/,R=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-l,H=Math.floor,Q=String.fromCharCode,ie;function he(x){throw new RangeError(w[x])}function le(x,Y){for(var B=x.length,j=[];B--;)j[B]=Y(x[B]);return j}function Ee(x,Y){var B=x.split("@"),j="";B.length>1&&(j=B[0]+"@",x=B[1]),x=x.replace(v,".");var $=x.split("."),U=le($,Y).join(".");return j+U}function ve(x){for(var Y=[],B=0,j=x.length,$,U;B<j;)$=x.charCodeAt(B++),$>=55296&&$<=56319&&B<j?(U=x.charCodeAt(B++),(U&64512)==56320?Y.push((($&1023)<<10)+(U&1023)+65536):(Y.push($),B--)):Y.push($);return Y}function m(x){return le(x,function(Y){var B="";return Y>65535&&(Y-=65536,B+=Q(Y>>>10&1023|55296),Y=56320|Y&1023),B+=Q(Y),B}).join("")}function O(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:c}function P(x,Y){return x+22+75*(x<26)-((Y!=0)<<5)}function Z(x,Y,B){var j=0;for(x=B?H(x/b):x>>1,x+=H(x/Y);x>S*h>>1;j+=c)x=H(x/S);return H(j+(S+1)*x/(x+g))}function ae(x){var Y=[],B=x.length,j,$=0,U=T,G=_,de,oe,fe,Se,Be,Me,z,J,ge;for(de=x.lastIndexOf(k),de<0&&(de=0),oe=0;oe<de;++oe)x.charCodeAt(oe)>=128&&he("not-basic"),Y.push(x.charCodeAt(oe));for(fe=de>0?de+1:0;fe<B;){for(Se=$,Be=1,Me=c;fe>=B&&he("invalid-input"),z=O(x.charCodeAt(fe++)),(z>=c||z>H((d-$)/Be))&&he("overflow"),$+=z*Be,J=Me<=G?l:Me>=G+h?h:Me-G,!(z<J);Me+=c)ge=c-J,Be>H(d/ge)&&he("overflow"),Be*=ge;j=Y.length+1,G=Z($-Se,j,Se==0),H($/j)>d-U&&he("overflow"),U+=H($/j),$%=j,Y.splice($++,0,U)}return m(Y)}function X(x){var Y,B,j,$,U,G,de,oe,fe,Se,Be,Me=[],z,J,ge,Ne;for(x=ve(x),z=x.length,Y=T,B=0,U=_,G=0;G<z;++G)Be=x[G],Be<128&&Me.push(Q(Be));for(j=$=Me.length,$&&Me.push(k);j<z;){for(de=d,G=0;G<z;++G)Be=x[G],Be>=Y&&Be<de&&(de=Be);for(J=j+1,de-Y>H((d-B)/J)&&he("overflow"),B+=(de-Y)*J,Y=de,G=0;G<z;++G)if(Be=x[G],Be<Y&&++B>d&&he("overflow"),Be==Y){for(oe=B,fe=c;Se=fe<=U?l:fe>=U+h?h:fe-U,!(oe<Se);fe+=c)Ne=oe-Se,ge=c-Se,Me.push(Q(P(Se+Ne%ge,0))),oe=H(Ne/ge);Me.push(Q(P(oe,0))),U=Z(B,J,j==$),B=0,++j}++B,++Y}return Me.join("")}function ne(x){return Ee(x,function(Y){return E.test(Y)?ae(Y.slice(4).toLowerCase()):Y})}function F(x){return Ee(x,function(Y){return R.test(Y)?"xn--"+X(Y):Y})}if(u={version:"1.4.1",ucs2:{decode:ve,encode:m},decode:ae,encode:X,toASCII:F,toUnicode:ne},i&&a)if(e.exports==i)a.exports=u;else for(ie in u)u.hasOwnProperty(ie)&&(i[ie]=u[ie]);else r.punycode=u})(ee.commonjsGlobal)}(Sa,Sa.exports)),Sa.exports}var gd,cb;function mf(){if(cb)return gd;cb=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,i=e&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&s&&typeof s.get=="function"?s.get:null,d=a&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,g=h?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,_=b?WeakRef.prototype.deref:null,T=Boolean.prototype.valueOf,k=Object.prototype.toString,E=Function.prototype.toString,R=String.prototype.match,v=String.prototype.slice,w=String.prototype.replace,S=String.prototype.toUpperCase,H=String.prototype.toLowerCase,Q=RegExp.prototype.test,ie=Array.prototype.concat,he=Array.prototype.join,le=Array.prototype.slice,Ee=Math.floor,ve=typeof BigInt=="function"?BigInt.prototype.valueOf:null,m=Object.getOwnPropertySymbols,O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,P=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||!0)?Symbol.toStringTag:null,ae=Object.prototype.propertyIsEnumerable,X=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(C){return C.__proto__}:null);function ne(C,K){if(C===1/0||C===-1/0||C!==C||C&&C>-1e3&&C<1e3||Q.call(/e/,K))return K;var A=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof C=="number"){var Te=C<0?-Ee(-C):Ee(C);if(Te!==C){var Ke=String(Te),p=v.call(K,Ke.length+1);return w.call(Ke,A,"$&_")+"."+w.call(w.call(p,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(K,A,"$&_")}var F=ee.require$$0,x=F.custom,Y=z(x)?x:null,B={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};gd=function C(K,A,Te,Ke){var p=A||{};if(Ne(p,"quoteStyle")&&!Ne(B,p.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ne(p,"maxStringLength")&&(typeof p.maxStringLength=="number"?p.maxStringLength<0&&p.maxStringLength!==1/0:p.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _e=Ne(p,"customInspect")?p.customInspect:!0;if(typeof _e!="boolean"&&_e!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ne(p,"indent")&&p.indent!==null&&p.indent!==" "&&!(parseInt(p.indent,10)===p.indent&&p.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ne(p,"numericSeparator")&&typeof p.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ie=p.numericSeparator;if(typeof K>"u")return"undefined";if(K===null)return"null";if(typeof K=="boolean")return K?"true":"false";if(typeof K=="string")return De(K,p);if(typeof K=="number"){if(K===0)return 1/0/K>0?"0":"-0";var L=String(K);return Ie?ne(K,L):L}if(typeof K=="bigint"){var ue=String(K)+"n";return Ie?ne(K,ue):ue}var Ae=typeof p.depth>"u"?5:p.depth;if(typeof Te>"u"&&(Te=0),Te>=Ae&&Ae>0&&typeof K=="object")return G(K)?"[Array]":"[Object]";var Je=Re(p,Te);if(typeof Ke>"u")Ke=[];else if(me(Ke,K)>=0)return"[Circular]";function N(Gt,Vt,$n){if(Vt&&(Ke=le.call(Ke),Ke.push(Vt)),$n){var yn={depth:p.depth};return Ne(p,"quoteStyle")&&(yn.quoteStyle=p.quoteStyle),C(Gt,yn,Te+1,Ke)}return C(Gt,p,Te+1,Ke)}if(typeof K=="function"&&!oe(K)){var W=je(K),Ce=qe(K,N);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Ce.length>0?" { "+he.call(Ce,", ")+" }":"")}if(z(K)){var ze=P?w.call(String(K),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(K);return typeof K=="object"&&!P?Ue(ze):ze}if(ce(K)){for(var Ge="<"+H.call(String(K.nodeName)),rt=K.attributes||[],ot=0;ot<rt.length;ot++)Ge+=" "+rt[ot].name+"="+$(U(rt[ot].value),"double",p);return Ge+=">",K.childNodes&&K.childNodes.length&&(Ge+="..."),Ge+="</"+H.call(String(K.nodeName))+">",Ge}if(G(K)){if(K.length===0)return"[]";var bt=qe(K,N);return Je&&!D(bt)?"["+$e(bt,Je)+"]":"[ "+he.call(bt,", ")+" ]"}if(fe(K)){var ht=qe(K,N);return!("cause"in Error.prototype)&&"cause"in K&&!ae.call(K,"cause")?"{ ["+String(K)+"] "+he.call(ie.call("[cause]: "+N(K.cause),ht),", ")+" }":ht.length===0?"["+String(K)+"]":"{ ["+String(K)+"] "+he.call(ht,", ")+" }"}if(typeof K=="object"&&_e){if(Y&&typeof K[Y]=="function"&&F)return F(K,{depth:Ae-Te});if(_e!=="symbol"&&typeof K.inspect=="function")return K.inspect()}if(Ye(K)){var ar=[];return i&&i.call(K,function(Gt,Vt){ar.push(N(Vt,K,!0)+" => "+N(Gt,K))}),Xe("Map",r.call(K),ar,Je)}if(xe(K)){var fr=[];return d&&d.call(K,function(Gt){fr.push(N(Gt,K))}),Xe("Set",u.call(K),fr,Je)}if(et(K))return ke("WeakMap");if(M(K))return ke("WeakSet");if(re(K))return ke("WeakRef");if(Be(K))return Ue(N(Number(K)));if(J(K))return Ue(N(ve.call(K)));if(Me(K))return Ue(T.call(K));if(Se(K))return Ue(N(String(K)));if(typeof window<"u"&&K===window)return"{ [object Window] }";if(typeof globalThis<"u"&&K===globalThis||typeof ee.commonjsGlobal<"u"&&K===ee.commonjsGlobal)return"{ [object globalThis] }";if(!de(K)&&!oe(K)){var wt=qe(K,N),Dt=X?X(K)===Object.prototype:K instanceof Object||K.constructor===Object,St=K instanceof Object?"":"null prototype",Ot=!Dt&&Z&&Object(K)===K&&Z in K?v.call(Oe(K),8,-1):St?"Object":"",qt=Dt||typeof K.constructor!="function"?"":K.constructor.name?K.constructor.name+" ":"",tr=qt+(Ot||St?"["+he.call(ie.call([],Ot||[],St||[]),": ")+"] ":"");return wt.length===0?tr+"{}":Je?tr+"{"+$e(wt,Je)+"}":tr+"{ "+he.call(wt,", ")+" }"}return String(K)};function $(C,K,A){var Te=A.quoteStyle||K,Ke=B[Te];return Ke+C+Ke}function U(C){return w.call(String(C),/"/g,"&quot;")}function G(C){return Oe(C)==="[object Array]"&&(!Z||!(typeof C=="object"&&Z in C))}function de(C){return Oe(C)==="[object Date]"&&(!Z||!(typeof C=="object"&&Z in C))}function oe(C){return Oe(C)==="[object RegExp]"&&(!Z||!(typeof C=="object"&&Z in C))}function fe(C){return Oe(C)==="[object Error]"&&(!Z||!(typeof C=="object"&&Z in C))}function Se(C){return Oe(C)==="[object String]"&&(!Z||!(typeof C=="object"&&Z in C))}function Be(C){return Oe(C)==="[object Number]"&&(!Z||!(typeof C=="object"&&Z in C))}function Me(C){return Oe(C)==="[object Boolean]"&&(!Z||!(typeof C=="object"&&Z in C))}function z(C){if(P)return C&&typeof C=="object"&&C instanceof Symbol;if(typeof C=="symbol")return!0;if(!C||typeof C!="object"||!O)return!1;try{return O.call(C),!0}catch{}return!1}function J(C){if(!C||typeof C!="object"||!ve)return!1;try{return ve.call(C),!0}catch{}return!1}var ge=Object.prototype.hasOwnProperty||function(C){return C in this};function Ne(C,K){return ge.call(C,K)}function Oe(C){return k.call(C)}function je(C){if(C.name)return C.name;var K=R.call(E.call(C),/^function\s*([\w$]+)/);return K?K[1]:null}function me(C,K){if(C.indexOf)return C.indexOf(K);for(var A=0,Te=C.length;A<Te;A++)if(C[A]===K)return A;return-1}function Ye(C){if(!r||!C||typeof C!="object")return!1;try{r.call(C);try{u.call(C)}catch{return!0}return C instanceof Map}catch{}return!1}function et(C){if(!l||!C||typeof C!="object")return!1;try{l.call(C,l);try{g.call(C,g)}catch{return!0}return C instanceof WeakMap}catch{}return!1}function re(C){if(!_||!C||typeof C!="object")return!1;try{return _.call(C),!0}catch{}return!1}function xe(C){if(!u||!C||typeof C!="object")return!1;try{u.call(C);try{r.call(C)}catch{return!0}return C instanceof Set}catch{}return!1}function M(C){if(!g||!C||typeof C!="object")return!1;try{g.call(C,g);try{l.call(C,l)}catch{return!0}return C instanceof WeakSet}catch{}return!1}function ce(C){return!C||typeof C!="object"?!1:typeof HTMLElement<"u"&&C instanceof HTMLElement?!0:typeof C.nodeName=="string"&&typeof C.getAttribute=="function"}function De(C,K){if(C.length>K.maxStringLength){var A=C.length-K.maxStringLength,Te="... "+A+" more character"+(A>1?"s":"");return De(v.call(C,0,K.maxStringLength),K)+Te}var Ke=j[K.quoteStyle||"single"];Ke.lastIndex=0;var p=w.call(w.call(C,Ke,"\\$1"),/[\x00-\x1f]/g,Ve);return $(p,"single",K)}function Ve(C){var K=C.charCodeAt(0),A={8:"b",9:"t",10:"n",12:"f",13:"r"}[K];return A?"\\"+A:"\\x"+(K<16?"0":"")+S.call(K.toString(16))}function Ue(C){return"Object("+C+")"}function ke(C){return C+" { ? }"}function Xe(C,K,A,Te){var Ke=Te?$e(A,Te):he.call(A,", ");return C+" ("+K+") {"+Ke+"}"}function D(C){for(var K=0;K<C.length;K++)if(me(C[K],`
74
74
  `)>=0)return!1;return!0}function Re(C,K){var A;if(C.indent===" ")A=" ";else if(typeof C.indent=="number"&&C.indent>0)A=he.call(Array(C.indent+1)," ");else return null;return{base:A,prev:he.call(Array(K+1),A)}}function $e(C,K){if(C.length===0)return"";var A=`
75
75
  `+K.prev+K.base;return A+he.call(C,","+A)+`
76
- `+K.prev}function qe(C,K){var A=G(C),Oe=[];if(A){Oe.length=C.length;for(var Ke=0;Ke<C.length;Ke++)Oe[Ke]=Ne(C,Ke)?K(C[Ke],C):""}var p=typeof m=="function"?m(C):[],_e;if(P){_e={};for(var Ie=0;Ie<p.length;Ie++)_e["$"+p[Ie]]=p[Ie]}for(var L in C)Ne(C,L)&&(A&&String(Number(L))===L&&L<C.length||P&&_e["$"+L]instanceof Symbol||(Q.call(/[^\w$]/,L)?Oe.push(K(L,C)+": "+K(C[L],C)):Oe.push(L+": "+K(C[L],C))));if(typeof m=="function")for(var fe=0;fe<p.length;fe++)ae.call(C,p[fe])&&Oe.push("["+K(p[fe])+"]: "+K(C[p[fe]],C));return Oe}return cd}var ld,rb;function DD(){if(rb)return ld;rb=1;var e=mu(),t=Ri,r=function(d,c,l){for(var h=d,_;(_=h.next)!=null;h=_)if(_.key===c)return h.next=_.next,l||(_.next=d.next,d.next=_),_},i=function(d,c){if(d){var l=r(d,c);return l&&l.value}},a=function(d,c,l){var h=r(d,c);h?h.value=l:d.next={key:c,next:d.next,value:l}},s=function(d,c){return d?!!r(d,c):!1},f=function(d,c){if(d)return r(d,c,!0)};return ld=function(){var c,l={assert:function(h){if(!l.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){var _=c&&c.next,b=f(c,h);return b&&_&&_===b&&(c=void 0),!!b},get:function(h){return i(c,h)},has:function(h){return s(c,h)},set:function(h,_){c||(c={next:void 0}),a(c,h,_)}};return l},ld}var dd,nb;function Zw(){if(nb)return dd;nb=1;var e=Da(),t=Ma,r=mu(),i=Ri,a=e("%Map%",!0),s=t("Map.prototype.get",!0),f=t("Map.prototype.set",!0),d=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return dd=!!a&&function(){var _,b={assert:function(y){if(!b.has(y))throw new i("Side channel does not contain "+r(y))},delete:function(y){if(_){var T=c(_,y);return l(_)===0&&(_=void 0),T}return!1},get:function(y){if(_)return s(_,y)},has:function(y){return _?d(_,y):!1},set:function(y,T){_||(_=new a),f(_,y,T)}};return b},dd}var hd,ib;function MD(){if(ib)return hd;ib=1;var e=Da(),t=Ma,r=mu(),i=Zw(),a=Ri,s=e("%WeakMap%",!0),f=t("WeakMap.prototype.get",!0),d=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return hd=s?function(){var _,b,y={assert:function(T){if(!y.has(T))throw new a("Side channel does not contain "+r(T))},delete:function(T){if(s&&T&&(typeof T=="object"||typeof T=="function")){if(_)return l(_,T)}else if(i&&b)return b.delete(T);return!1},get:function(T){return s&&T&&(typeof T=="object"||typeof T=="function")&&_?f(_,T):b&&b.get(T)},has:function(T){return s&&T&&(typeof T=="object"||typeof T=="function")&&_?c(_,T):!!b&&b.has(T)},set:function(T,k){s&&T&&(typeof T=="object"||typeof T=="function")?(_||(_=new s),d(_,T,k)):i&&(b||(b=i()),b.set(T,k))}};return y}:i,hd}var pd,ob;function FD(){if(ob)return pd;ob=1;var e=Ri,t=mu(),r=DD(),i=Zw(),a=MD(),s=a||i||r;return pd=function(){var d,c={assert:function(l){if(!c.has(l))throw new e("Side channel does not contain "+t(l))},delete:function(l){return!!d&&d.delete(l)},get:function(l){return d&&d.get(l)},has:function(l){return!!d&&d.has(l)},set:function(l,h){d||(d=s()),d.set(l,h)}};return c},pd}var gd,ab;function ap(){if(ab)return gd;ab=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return gd={default:r.RFC3986,formatters:{RFC1738:function(i){return e.call(i,t,"+")},RFC3986:function(i){return String(i)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},gd}var yd,sb;function Kw(){if(sb)return yd;sb=1;var e=ap(),t=Object.prototype.hasOwnProperty,r=Array.isArray,i=function(){for(var E=[],I=0;I<256;++I)E.push("%"+((I<16?"0":"")+I.toString(16)).toUpperCase());return E}(),a=function(I){for(;I.length>1;){var v=I.pop(),w=v.obj[v.prop];if(r(w)){for(var S=[],H=0;H<w.length;++H)typeof w[H]<"u"&&S.push(w[H]);v.obj[v.prop]=S}}},s=function(I,v){for(var w=v&&v.plainObjects?{__proto__:null}:{},S=0;S<I.length;++S)typeof I[S]<"u"&&(w[S]=I[S]);return w},f=function E(I,v,w){if(!v)return I;if(typeof v!="object"&&typeof v!="function"){if(r(I))I.push(v);else if(I&&typeof I=="object")(w&&(w.plainObjects||w.allowPrototypes)||!t.call(Object.prototype,v))&&(I[v]=!0);else return[I,v];return I}if(!I||typeof I!="object")return[I].concat(v);var S=I;return r(I)&&!r(v)&&(S=s(I,w)),r(I)&&r(v)?(v.forEach(function(H,Q){if(t.call(I,Q)){var ie=I[Q];ie&&typeof ie=="object"&&H&&typeof H=="object"?I[Q]=E(ie,H,w):I.push(H)}else I[Q]=H}),I):Object.keys(v).reduce(function(H,Q){var ie=v[Q];return t.call(H,Q)?H[Q]=E(H[Q],ie,w):H[Q]=ie,H},S)},d=function(I,v){return Object.keys(v).reduce(function(w,S){return w[S]=v[S],w},I)},c=function(E,I,v){var w=E.replace(/\+/g," ");if(v==="iso-8859-1")return w.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(w)}catch{return w}},l=1024,h=function(I,v,w,S,H){if(I.length===0)return I;var Q=I;if(typeof I=="symbol"?Q=Symbol.prototype.toString.call(I):typeof I!="string"&&(Q=String(I)),w==="iso-8859-1")return escape(Q).replace(/%u[0-9a-f]{4}/gi,function(O){return"%26%23"+parseInt(O.slice(2),16)+"%3B"});for(var ie="",he=0;he<Q.length;he+=l){for(var le=Q.length>=l?Q.slice(he,he+l):Q,Ee=[],ve=0;ve<le.length;++ve){var m=le.charCodeAt(ve);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||H===e.RFC1738&&(m===40||m===41)){Ee[Ee.length]=le.charAt(ve);continue}if(m<128){Ee[Ee.length]=i[m];continue}if(m<2048){Ee[Ee.length]=i[192|m>>6]+i[128|m&63];continue}if(m<55296||m>=57344){Ee[Ee.length]=i[224|m>>12]+i[128|m>>6&63]+i[128|m&63];continue}ve+=1,m=65536+((m&1023)<<10|le.charCodeAt(ve)&1023),Ee[Ee.length]=i[240|m>>18]+i[128|m>>12&63]+i[128|m>>6&63]+i[128|m&63]}ie+=Ee.join("")}return ie},_=function(I){for(var v=[{obj:{o:I},prop:"o"}],w=[],S=0;S<v.length;++S)for(var H=v[S],Q=H.obj[H.prop],ie=Object.keys(Q),he=0;he<ie.length;++he){var le=ie[he],Ee=Q[le];typeof Ee=="object"&&Ee!==null&&w.indexOf(Ee)===-1&&(v.push({obj:Q,prop:le}),w.push(Ee))}return a(v),I},b=function(I){return Object.prototype.toString.call(I)==="[object RegExp]"},y=function(I){return!I||typeof I!="object"?!1:!!(I.constructor&&I.constructor.isBuffer&&I.constructor.isBuffer(I))},T=function(I,v){return[].concat(I,v)},k=function(I,v){if(r(I)){for(var w=[],S=0;S<I.length;S+=1)w.push(v(I[S]));return w}return v(I)};return yd={arrayToObject:s,assign:d,combine:T,compact:_,decode:c,encode:h,isBuffer:y,isRegExp:b,maybeMap:k,merge:f},yd}var _d,fb;function jD(){if(fb)return _d;fb=1;var e=FD(),t=Kw(),r=ap(),i=Object.prototype.hasOwnProperty,a={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,I){return E+"["+I+"]"},repeat:function(E){return E}},s=Array.isArray,f=Array.prototype.push,d=function(k,E){f.apply(k,s(E)?E:[E])},c=Date.prototype.toISOString,l=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:r.formatters[l],indices:!1,serializeDate:function(E){return c.call(E)},skipNulls:!1,strictNullHandling:!1},_=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},b={},y=function k(E,I,v,w,S,H,Q,ie,he,le,Ee,ve,m,O,P,Z,ae,X){for(var ne=E,F=X,x=0,Y=!1;(F=F.get(b))!==void 0&&!Y;){var B=F.get(E);if(x+=1,typeof B<"u"){if(B===x)throw new RangeError("Cyclic object value");Y=!0}typeof F.get(b)>"u"&&(x=0)}if(typeof le=="function"?ne=le(I,ne):ne instanceof Date?ne=m(ne):v==="comma"&&s(ne)&&(ne=t.maybeMap(ne,function(ge){return ge instanceof Date?m(ge):ge})),ne===null){if(H)return he&&!Z?he(I,h.encoder,ae,"key",O):I;ne=""}if(_(ne)||t.isBuffer(ne)){if(he){var j=Z?I:he(I,h.encoder,ae,"key",O);return[P(j)+"="+P(he(ne,h.encoder,ae,"value",O))]}return[P(I)+"="+P(String(ne))]}var $=[];if(typeof ne>"u")return $;var U;if(v==="comma"&&s(ne))Z&&he&&(ne=t.maybeMap(ne,he)),U=[{value:ne.length>0?ne.join(",")||null:void 0}];else if(s(le))U=le;else{var G=Object.keys(ne);U=Ee?G.sort(Ee):G}var de=ie?String(I).replace(/\./g,"%2E"):String(I),oe=w&&s(ne)&&ne.length===1?de+"[]":de;if(S&&s(ne)&&ne.length===0)return oe+"[]";for(var ue=0;ue<U.length;++ue){var Se=U[ue],Be=typeof Se=="object"&&Se&&typeof Se.value<"u"?Se.value:ne[Se];if(!(Q&&Be===null)){var Me=ve&&ie?String(Se).replace(/\./g,"%2E"):String(Se),z=s(ne)?typeof v=="function"?v(oe,Me):oe:oe+(ve?"."+Me:"["+Me+"]");X.set(E,x);var J=e();J.set(b,X),d($,k(Be,z,v,w,S,H,Q,ie,v==="comma"&&Z&&s(ne)?null:he,le,Ee,ve,m,O,P,Z,ae,J))}}return $},T=function(E){if(!E)return h;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.encodeDotInKeys<"u"&&typeof E.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var I=E.charset||h.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=r.default;if(typeof E.format<"u"){if(!i.call(r.formatters,E.format))throw new TypeError("Unknown format option provided.");v=E.format}var w=r.formatters[v],S=h.filter;(typeof E.filter=="function"||s(E.filter))&&(S=E.filter);var H;if(E.arrayFormat in a?H=E.arrayFormat:"indices"in E?H=E.indices?"indices":"repeat":H=h.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var Q=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:h.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:h.addQueryPrefix,allowDots:Q,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:H,charset:I,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?h.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:h.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:h.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:h.encodeValuesOnly,filter:S,format:v,formatter:w,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:h.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:h.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:h.strictNullHandling}};return _d=function(k,E){var I=k,v=T(E),w,S;typeof v.filter=="function"?(S=v.filter,I=S("",I)):s(v.filter)&&(S=v.filter,w=S);var H=[];if(typeof I!="object"||I===null)return"";var Q=a[v.arrayFormat],ie=Q==="comma"&&v.commaRoundTrip;w||(w=Object.keys(I)),v.sort&&w.sort(v.sort);for(var he=e(),le=0;le<w.length;++le){var Ee=w[le],ve=I[Ee];v.skipNulls&&ve===null||d(H,y(ve,Ee,Q,ie,v.allowEmptyArrays,v.strictNullHandling,v.skipNulls,v.encodeDotInKeys,v.encode?v.encoder:null,v.filter,v.sort,v.allowDots,v.serializeDate,v.format,v.formatter,v.encodeValuesOnly,v.charset,he))}var m=H.join(v.delimiter),O=v.addQueryPrefix===!0?"?":"";return v.charsetSentinel&&(v.charset==="iso-8859-1"?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),m.length>0?O+m:""},_d}var bd,ub;function kD(){if(ub)return bd;ub=1;var e=Kw(),t=Object.prototype.hasOwnProperty,r=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(b){return b.replace(/&#(\d+);/g,function(y,T){return String.fromCharCode(parseInt(T,10))})},s=function(b,y){return b&&typeof b=="string"&&y.comma&&b.indexOf(",")>-1?b.split(","):b},f="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",c=function(y,T){var k={__proto__:null},E=T.ignoreQueryPrefix?y.replace(/^\?/,""):y;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var I=T.parameterLimit===1/0?void 0:T.parameterLimit,v=E.split(T.delimiter,I),w=-1,S,H=T.charset;if(T.charsetSentinel)for(S=0;S<v.length;++S)v[S].indexOf("utf8=")===0&&(v[S]===d?H="utf-8":v[S]===f&&(H="iso-8859-1"),w=S,S=v.length);for(S=0;S<v.length;++S)if(S!==w){var Q=v[S],ie=Q.indexOf("]="),he=ie===-1?Q.indexOf("="):ie+1,le,Ee;he===-1?(le=T.decoder(Q,i.decoder,H,"key"),Ee=T.strictNullHandling?null:""):(le=T.decoder(Q.slice(0,he),i.decoder,H,"key"),Ee=e.maybeMap(s(Q.slice(he+1),T),function(m){return T.decoder(m,i.decoder,H,"value")})),Ee&&T.interpretNumericEntities&&H==="iso-8859-1"&&(Ee=a(String(Ee))),Q.indexOf("[]=")>-1&&(Ee=r(Ee)?[Ee]:Ee);var ve=t.call(k,le);ve&&T.duplicates==="combine"?k[le]=e.combine(k[le],Ee):(!ve||T.duplicates==="last")&&(k[le]=Ee)}return k},l=function(b,y,T,k){for(var E=k?y:s(y,T),I=b.length-1;I>=0;--I){var v,w=b[I];if(w==="[]"&&T.parseArrays)v=T.allowEmptyArrays&&(E===""||T.strictNullHandling&&E===null)?[]:[].concat(E);else{v=T.plainObjects?{__proto__:null}:{};var S=w.charAt(0)==="["&&w.charAt(w.length-1)==="]"?w.slice(1,-1):w,H=T.decodeDotInKeys?S.replace(/%2E/g,"."):S,Q=parseInt(H,10);!T.parseArrays&&H===""?v={0:E}:!isNaN(Q)&&w!==H&&String(Q)===H&&Q>=0&&T.parseArrays&&Q<=T.arrayLimit?(v=[],v[Q]=E):H!=="__proto__"&&(v[H]=E)}E=v}return E},h=function(y,T,k,E){if(y){var I=k.allowDots?y.replace(/\.([^.[]+)/g,"[$1]"):y,v=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,S=k.depth>0&&v.exec(I),H=S?I.slice(0,S.index):I,Q=[];if(H){if(!k.plainObjects&&t.call(Object.prototype,H)&&!k.allowPrototypes)return;Q.push(H)}for(var ie=0;k.depth>0&&(S=w.exec(I))!==null&&ie<k.depth;){if(ie+=1,!k.plainObjects&&t.call(Object.prototype,S[1].slice(1,-1))&&!k.allowPrototypes)return;Q.push(S[1])}if(S){if(k.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+k.depth+" and strictDepth is true");Q.push("["+I.slice(S.index)+"]")}return l(Q,T,k,E)}},_=function(y){if(!y)return i;if(typeof y.allowEmptyArrays<"u"&&typeof y.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof y.decodeDotInKeys<"u"&&typeof y.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(y.decoder!==null&&typeof y.decoder<"u"&&typeof y.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof y.charset<"u"&&y.charset!=="utf-8"&&y.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var T=typeof y.charset>"u"?i.charset:y.charset,k=typeof y.duplicates>"u"?i.duplicates:y.duplicates;if(k!=="combine"&&k!=="first"&&k!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof y.allowDots>"u"?y.decodeDotInKeys===!0?!0:i.allowDots:!!y.allowDots;return{allowDots:E,allowEmptyArrays:typeof y.allowEmptyArrays=="boolean"?!!y.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof y.allowPrototypes=="boolean"?y.allowPrototypes:i.allowPrototypes,allowSparse:typeof y.allowSparse=="boolean"?y.allowSparse:i.allowSparse,arrayLimit:typeof y.arrayLimit=="number"?y.arrayLimit:i.arrayLimit,charset:T,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:i.charsetSentinel,comma:typeof y.comma=="boolean"?y.comma:i.comma,decodeDotInKeys:typeof y.decodeDotInKeys=="boolean"?y.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof y.decoder=="function"?y.decoder:i.decoder,delimiter:typeof y.delimiter=="string"||e.isRegExp(y.delimiter)?y.delimiter:i.delimiter,depth:typeof y.depth=="number"||y.depth===!1?+y.depth:i.depth,duplicates:k,ignoreQueryPrefix:y.ignoreQueryPrefix===!0,interpretNumericEntities:typeof y.interpretNumericEntities=="boolean"?y.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof y.parameterLimit=="number"?y.parameterLimit:i.parameterLimit,parseArrays:y.parseArrays!==!1,plainObjects:typeof y.plainObjects=="boolean"?y.plainObjects:i.plainObjects,strictDepth:typeof y.strictDepth=="boolean"?!!y.strictDepth:i.strictDepth,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:i.strictNullHandling}};return bd=function(b,y){var T=_(y);if(b===""||b===null||typeof b>"u")return T.plainObjects?{__proto__:null}:{};for(var k=typeof b=="string"?c(b,T):b,E=T.plainObjects?{__proto__:null}:{},I=Object.keys(k),v=0;v<I.length;++v){var w=I[v],S=h(w,k[w],T,typeof b=="string");E=e.merge(E,S,T)}return T.allowSparse===!0?E:e.compact(E)},bd}var md,cb;function UD(){if(cb)return md;cb=1;var e=jD(),t=kD(),r=ap();return md={formats:r,parse:t,stringify:e},md}var lb;function sp(){return lb||(lb=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=xD(),i=UD();function a(re){return re&&typeof re=="object"&&"default"in re?re:{default:re}}var s=a(r),f=a(i),d=s.default;function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var l=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,_=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,b=["<",">",'"',"`"," ","\r",`
77
- `," "],y=["{","}","|","\\","^","`"].concat(b),T=["'"].concat(y),k=["%","/","?",";","#"].concat(T),E=["/","?","#"],I=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},H={javascript:!0,"javascript:":!0},Q={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ie=f.default;function he(re,xe,M){if(re&&typeof re=="object"&&re instanceof c)return re;var ce=new c;return ce.parse(re,xe,M),ce}c.prototype.parse=function(re,xe,M){if(typeof re!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof re);var ce=re.indexOf("?"),De=ce!==-1&&ce<re.indexOf("#")?"?":"#",Ve=re.split(De),Ue=/\\/g;Ve[0]=Ve[0].replace(Ue,"/"),re=Ve.join(De);var ke=re;if(ke=ke.trim(),!M&&re.split("#").length===1){var Xe=_.exec(ke);if(Xe)return this.path=ke,this.href=ke,this.pathname=Xe[1],Xe[2]?(this.search=Xe[2],xe?this.query=ie.parse(this.search.substr(1)):this.query=this.search.substr(1)):xe&&(this.search="",this.query={}),this}var D=l.exec(ke);if(D){D=D[0];var Re=D.toLowerCase();this.protocol=Re,ke=ke.substr(D.length)}if(M||D||ke.match(/^\/\/[^@/]+@[^@/]+/)){var $e=ke.substr(0,2)==="//";$e&&!(D&&H[D])&&(ke=ke.substr(2),this.slashes=!0)}if(!H[D]&&($e||D&&!Q[D])){for(var qe=-1,C=0;C<E.length;C++){var K=ke.indexOf(E[C]);K!==-1&&(qe===-1||K<qe)&&(qe=K)}var A,Oe;qe===-1?Oe=ke.lastIndexOf("@"):Oe=ke.lastIndexOf("@",qe),Oe!==-1&&(A=ke.slice(0,Oe),ke=ke.slice(Oe+1),this.auth=decodeURIComponent(A)),qe=-1;for(var C=0;C<k.length;C++){var K=ke.indexOf(k[C]);K!==-1&&(qe===-1||K<qe)&&(qe=K)}qe===-1&&(qe=ke.length),this.host=ke.slice(0,qe),ke=ke.slice(qe),this.parseHost(),this.hostname=this.hostname||"";var Ke=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ke)for(var p=this.hostname.split(/\./),C=0,_e=p.length;C<_e;C++){var Ie=p[C];if(Ie&&!Ie.match(v)){for(var L="",fe=0,Ae=Ie.length;fe<Ae;fe++)Ie.charCodeAt(fe)>127?L+="x":L+=Ie[fe];if(!L.match(v)){var Je=p.slice(0,C),N=p.slice(C+1),W=Ie.match(w);W&&(Je.push(W[1]),N.unshift(W[2])),N.length&&(ke="/"+N.join(".")+ke),this.hostname=Je.join(".");break}}}this.hostname.length>I?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ke||(this.hostname=d.toASCII(this.hostname));var Ce=this.port?":"+this.port:"",ze=this.hostname||"";this.host=ze+Ce,this.href+=this.host,Ke&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ke[0]!=="/"&&(ke="/"+ke))}if(!S[Re])for(var C=0,_e=T.length;C<_e;C++){var Ge=T[C];if(ke.indexOf(Ge)!==-1){var rt=encodeURIComponent(Ge);rt===Ge&&(rt=escape(Ge)),ke=ke.split(Ge).join(rt)}}var ot=ke.indexOf("#");ot!==-1&&(this.hash=ke.substr(ot),ke=ke.slice(0,ot));var bt=ke.indexOf("?");if(bt!==-1?(this.search=ke.substr(bt),this.query=ke.substr(bt+1),xe&&(this.query=ie.parse(this.query)),ke=ke.slice(0,bt)):xe&&(this.search="",this.query={}),ke&&(this.pathname=ke),Q[Re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ce=this.pathname||"",ht=this.search||"";this.path=Ce+ht}return this.href=this.format(),this};function le(re){return typeof re=="string"&&(re=he(re)),re instanceof c?re.format():c.prototype.format.call(re)}c.prototype.format=function(){var re=this.auth||"";re&&(re=encodeURIComponent(re),re=re.replace(/%3A/i,":"),re+="@");var xe=this.protocol||"",M=this.pathname||"",ce=this.hash||"",De=!1,Ve="";this.host?De=re+this.host:this.hostname&&(De=re+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(De+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(Ve=ie.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Ue=this.search||Ve&&"?"+Ve||"";return xe&&xe.substr(-1)!==":"&&(xe+=":"),this.slashes||(!xe||Q[xe])&&De!==!1?(De="//"+(De||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):De||(De=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),Ue&&Ue.charAt(0)!=="?"&&(Ue="?"+Ue),M=M.replace(/[?#]/g,function(ke){return encodeURIComponent(ke)}),Ue=Ue.replace("#","%23"),xe+De+M+Ue+ce};function Ee(re,xe){return he(re,!1,!0).resolve(xe)}c.prototype.resolve=function(re){return this.resolveObject(he(re,!1,!0)).format()};function ve(re,xe){return re?he(re,!1,!0).resolveObject(xe):xe}c.prototype.resolveObject=function(re){if(typeof re=="string"){var xe=new c;xe.parse(re,!1,!0),re=xe}for(var M=new c,ce=Object.keys(this),De=0;De<ce.length;De++){var Ve=ce[De];M[Ve]=this[Ve]}if(M.hash=re.hash,re.href==="")return M.href=M.format(),M;if(re.slashes&&!re.protocol){for(var Ue=Object.keys(re),ke=0;ke<Ue.length;ke++){var Xe=Ue[ke];Xe!=="protocol"&&(M[Xe]=re[Xe])}return Q[M.protocol]&&M.hostname&&!M.pathname&&(M.pathname="/",M.path=M.pathname),M.href=M.format(),M}if(re.protocol&&re.protocol!==M.protocol){if(!Q[re.protocol]){for(var D=Object.keys(re),Re=0;Re<D.length;Re++){var $e=D[Re];M[$e]=re[$e]}return M.href=M.format(),M}if(M.protocol=re.protocol,!re.host&&!H[re.protocol]){for(var _e=(re.pathname||"").split("/");_e.length&&!(re.host=_e.shift()););re.host||(re.host=""),re.hostname||(re.hostname=""),_e[0]!==""&&_e.unshift(""),_e.length<2&&_e.unshift(""),M.pathname=_e.join("/")}else M.pathname=re.pathname;if(M.search=re.search,M.query=re.query,M.host=re.host||"",M.auth=re.auth,M.hostname=re.hostname||re.host,M.port=re.port,M.pathname||M.search){var qe=M.pathname||"",C=M.search||"";M.path=qe+C}return M.slashes=M.slashes||re.slashes,M.href=M.format(),M}var K=M.pathname&&M.pathname.charAt(0)==="/",A=re.host||re.pathname&&re.pathname.charAt(0)==="/",Oe=A||K||M.host&&re.pathname,Ke=Oe,p=M.pathname&&M.pathname.split("/")||[],_e=re.pathname&&re.pathname.split("/")||[],Ie=M.protocol&&!Q[M.protocol];if(Ie&&(M.hostname="",M.port=null,M.host&&(p[0]===""?p[0]=M.host:p.unshift(M.host)),M.host="",re.protocol&&(re.hostname=null,re.port=null,re.host&&(_e[0]===""?_e[0]=re.host:_e.unshift(re.host)),re.host=null),Oe=Oe&&(_e[0]===""||p[0]==="")),A)M.host=re.host||re.host===""?re.host:M.host,M.hostname=re.hostname||re.hostname===""?re.hostname:M.hostname,M.search=re.search,M.query=re.query,p=_e;else if(_e.length)p||(p=[]),p.pop(),p=p.concat(_e),M.search=re.search,M.query=re.query;else if(re.search!=null){if(Ie){M.host=p.shift(),M.hostname=M.host;var L=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;L&&(M.auth=L.shift(),M.hostname=L.shift(),M.host=M.hostname)}return M.search=re.search,M.query=re.query,(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!p.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var fe=p.slice(-1)[0],Ae=(M.host||re.host||p.length>1)&&(fe==="."||fe==="..")||fe==="",Je=0,N=p.length;N>=0;N--)fe=p[N],fe==="."?p.splice(N,1):fe===".."?(p.splice(N,1),Je++):Je&&(p.splice(N,1),Je--);if(!Oe&&!Ke)for(;Je--;Je)p.unshift("..");Oe&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),Ae&&p.join("/").substr(-1)!=="/"&&p.push("");var W=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(Ie){M.hostname=W?"":p.length?p.shift():"",M.host=M.hostname;var L=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;L&&(M.auth=L.shift(),M.hostname=L.shift(),M.host=M.hostname)}return Oe=Oe||M.host&&p.length,Oe&&!W&&p.unshift(""),p.length>0?M.pathname=p.join("/"):(M.pathname=null,M.path=null),(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=re.auth||M.auth,M.slashes=M.slashes||re.slashes,M.href=M.format(),M},c.prototype.parseHost=function(){var re=this.host,xe=h.exec(re);xe&&(xe=xe[0],xe!==":"&&(this.port=xe.substr(1)),re=re.substr(0,re.length-xe.length)),re&&(this.hostname=re)};var m=he,O=Ee,P=ve,Z=le,ae=c;function X(re,xe){for(var M=0,ce=re.length-1;ce>=0;ce--){var De=re[ce];De==="."?re.splice(ce,1):De===".."?(re.splice(ce,1),M++):M&&(re.splice(ce,1),M--)}if(xe)for(;M--;M)re.unshift("..");return re}function ne(){for(var re="",xe=!1,M=arguments.length-1;M>=-1&&!xe;M--){var ce=M>=0?arguments[M]:"/";if(typeof ce!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!ce)continue;re=ce+"/"+re,xe=ce.charAt(0)==="/"}return re=X(F(re.split("/"),function(De){return!!De}),!xe).join("/"),(xe?"/":"")+re||"."}function F(re,xe){if(re.filter)return re.filter(xe);for(var M=[],ce=0;ce<re.length;ce++)xe(re[ce],ce,re)&&M.push(re[ce]);return M}var x=function(re){function xe(){var ce=this||self;return delete re.prototype.__magic__,ce}if(typeof globalThis=="object")return globalThis;if(this)return xe();re.defineProperty(re.prototype,"__magic__",{configurable:!0,get:xe});var M=__magic__;return M}(Object),Y=Z,B=m,j=O,$=ae,U=x.URL,G=x.URLSearchParams,de=/%/g,oe=/\\/g,ue=/\n/g,Se=/\r/g,Be=/\t/g,Me=47;function z(re){var xe=re??null;return!!(xe!==null&&(xe!=null&&xe.href)&&(xe!=null&&xe.origin))}function J(re){if(re.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var xe=re.pathname,M=0;M<xe.length;M++)if(xe[M]==="%"){var ce=xe.codePointAt(M+2)|32;if(xe[M+1]==="2"&&ce===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(xe)}function ge(re){return re.includes("%")&&(re=re.replace(de,"%25")),re.includes("\\")&&(re=re.replace(oe,"%5C")),re.includes(`
78
- `)&&(re=re.replace(ue,"%0A")),re.includes("\r")&&(re=re.replace(Se,"%0D")),re.includes(" ")&&(re=re.replace(Be,"%09")),re}var Ne=function(xe){if(typeof xe>"u")throw new TypeError('The "domain" argument must be specified');return new U("http://"+xe).hostname},Te=function(xe){if(typeof xe>"u")throw new TypeError('The "domain" argument must be specified');return new U("http://"+xe).hostname},je=function(xe){var M=new U("file://"),ce=ne(xe),De=xe.charCodeAt(xe.length-1);return De===Me&&ce[ce.length-1]!=="/"&&(ce+="/"),M.pathname=ge(ce),M},me=function(xe){if(!z(xe)&&typeof xe!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof xe+" ("+xe+")");var M=new U(xe);if(M.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return J(M)},Ye=function(xe,M){var ce,De,Ve,Ue;if(M===void 0&&(M={}),!(xe instanceof U))return Y(xe);if(typeof M!="object"||M===null)throw new TypeError('The "options" argument must be of type object.');var ke=(ce=M.auth)!=null?ce:!0,Xe=(De=M.fragment)!=null?De:!0,D=(Ve=M.search)!=null?Ve:!0;(Ue=M.unicode)!=null;var Re=new U(xe.toString());return ke||(Re.username="",Re.password=""),Xe||(Re.hash=""),D||(Re.search=""),Re.toString()},et={format:Ye,parse:B,resolve:j,resolveObject:P,Url:$,URL:U,URLSearchParams:G,domainToASCII:Ne,domainToUnicode:Te,pathToFileURL:je,fileURLToPath:me};t.URL=U,t.URLSearchParams=G,t.Url=$,t.default=et,t.domainToASCII=Ne,t.domainToUnicode=Te,t.fileURLToPath=me,t.format=Ye,t.parse=B,t.pathToFileURL=je,t.resolve=j,t.resolveObject=P,t=e.exports=et}(uf,uf.exports)),uf.exports}var db;function Jw(){return db||(db=1,function(e){var t=BD(),r=Vw(),i=tT(),a=$D(),s=sp(),f=e;f.request=function(d,c){typeof d=="string"?d=s.parse(d):d=i(d);var l=ee.commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",h=d.protocol||l,_=d.hostname||d.host,b=d.port,y=d.path||"/";_&&_.indexOf(":")!==-1&&(_="["+_+"]"),d.url=(_?h+"//"+_:"")+(b?":"+b:"")+y,d.method=(d.method||"GET").toUpperCase(),d.headers=d.headers||{};var T=new t(d);return c&&T.on("response",c),T},f.get=function(c,l){var h=f.request(c,l);return h.end(),h},f.ClientRequest=t,f.IncomingMessage=r.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=a,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(ad)),ad}var vd={exports:{}},hb;function qD(){return hb||(hb=1,function(e){var t=Jw(),r=sp(),i=e.exports;for(var a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);i.request=function(f,d){return f=s(f),t.request.call(this,f,d)},i.get=function(f,d){return f=s(f),t.get.call(this,f,d)};function s(f){if(typeof f=="string"&&(f=r.parse(f)),f.protocol||(f.protocol="https:"),f.protocol!=="https:")throw new Error('Protocol "'+f.protocol+'" not supported. Expected "https:"');return f}}(vd)),vd.exports}var wd={},Ed={},Sd,pb;function HD(){if(pb)return Sd;pb=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return Sd=e,Sd}var ln={},Ad={},gb;function vu(){return gb||(gb=1,function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,f){return Object.prototype.hasOwnProperty.call(s,f)}e.assign=function(s){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var d=f.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var c in d)r(d,c)&&(s[c]=d[c])}}return s},e.shrinkBuf=function(s,f){return s.length===f?s:s.subarray?s.subarray(0,f):(s.length=f,s)};var i={arraySet:function(s,f,d,c,l){if(f.subarray&&s.subarray){s.set(f.subarray(d,d+c),l);return}for(var h=0;h<c;h++)s[l+h]=f[d+h]},flattenChunks:function(s){var f,d,c,l,h,_;for(c=0,f=0,d=s.length;f<d;f++)c+=s[f].length;for(_=new Uint8Array(c),l=0,f=0,d=s.length;f<d;f++)h=s[f],_.set(h,l),l+=h.length;return _}},a={arraySet:function(s,f,d,c,l){for(var h=0;h<c;h++)s[l+h]=f[d+h]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)}(Ad)),Ad}var ki={},yb;function WD(){if(yb)return ki;yb=1;var e=vu(),t=4,r=0,i=1,a=2;function s(D){for(var Re=D.length;--Re>=0;)D[Re]=0}var f=0,d=1,c=2,l=3,h=258,_=29,b=256,y=b+1+_,T=30,k=19,E=2*y+1,I=15,v=16,w=7,S=256,H=16,Q=17,ie=18,he=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],le=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],m=512,O=new Array((y+2)*2);s(O);var P=new Array(T*2);s(P);var Z=new Array(m);s(Z);var ae=new Array(h-l+1);s(ae);var X=new Array(_);s(X);var ne=new Array(T);s(ne);function F(D,Re,$e,qe,C){this.static_tree=D,this.extra_bits=Re,this.extra_base=$e,this.elems=qe,this.max_length=C,this.has_stree=D&&D.length}var x,Y,B;function j(D,Re){this.dyn_tree=D,this.max_code=0,this.stat_desc=Re}function $(D){return D<256?Z[D]:Z[256+(D>>>7)]}function U(D,Re){D.pending_buf[D.pending++]=Re&255,D.pending_buf[D.pending++]=Re>>>8&255}function G(D,Re,$e){D.bi_valid>v-$e?(D.bi_buf|=Re<<D.bi_valid&65535,U(D,D.bi_buf),D.bi_buf=Re>>v-D.bi_valid,D.bi_valid+=$e-v):(D.bi_buf|=Re<<D.bi_valid&65535,D.bi_valid+=$e)}function de(D,Re,$e){G(D,$e[Re*2],$e[Re*2+1])}function oe(D,Re){var $e=0;do $e|=D&1,D>>>=1,$e<<=1;while(--Re>0);return $e>>>1}function ue(D){D.bi_valid===16?(U(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):D.bi_valid>=8&&(D.pending_buf[D.pending++]=D.bi_buf&255,D.bi_buf>>=8,D.bi_valid-=8)}function Se(D,Re){var $e=Re.dyn_tree,qe=Re.max_code,C=Re.stat_desc.static_tree,K=Re.stat_desc.has_stree,A=Re.stat_desc.extra_bits,Oe=Re.stat_desc.extra_base,Ke=Re.stat_desc.max_length,p,_e,Ie,L,fe,Ae,Je=0;for(L=0;L<=I;L++)D.bl_count[L]=0;for($e[D.heap[D.heap_max]*2+1]=0,p=D.heap_max+1;p<E;p++)_e=D.heap[p],L=$e[$e[_e*2+1]*2+1]+1,L>Ke&&(L=Ke,Je++),$e[_e*2+1]=L,!(_e>qe)&&(D.bl_count[L]++,fe=0,_e>=Oe&&(fe=A[_e-Oe]),Ae=$e[_e*2],D.opt_len+=Ae*(L+fe),K&&(D.static_len+=Ae*(C[_e*2+1]+fe)));if(Je!==0){do{for(L=Ke-1;D.bl_count[L]===0;)L--;D.bl_count[L]--,D.bl_count[L+1]+=2,D.bl_count[Ke]--,Je-=2}while(Je>0);for(L=Ke;L!==0;L--)for(_e=D.bl_count[L];_e!==0;)Ie=D.heap[--p],!(Ie>qe)&&($e[Ie*2+1]!==L&&(D.opt_len+=(L-$e[Ie*2+1])*$e[Ie*2],$e[Ie*2+1]=L),_e--)}}function Be(D,Re,$e){var qe=new Array(I+1),C=0,K,A;for(K=1;K<=I;K++)qe[K]=C=C+$e[K-1]<<1;for(A=0;A<=Re;A++){var Oe=D[A*2+1];Oe!==0&&(D[A*2]=oe(qe[Oe]++,Oe))}}function Me(){var D,Re,$e,qe,C,K=new Array(I+1);for($e=0,qe=0;qe<_-1;qe++)for(X[qe]=$e,D=0;D<1<<he[qe];D++)ae[$e++]=qe;for(ae[$e-1]=qe,C=0,qe=0;qe<16;qe++)for(ne[qe]=C,D=0;D<1<<le[qe];D++)Z[C++]=qe;for(C>>=7;qe<T;qe++)for(ne[qe]=C<<7,D=0;D<1<<le[qe]-7;D++)Z[256+C++]=qe;for(Re=0;Re<=I;Re++)K[Re]=0;for(D=0;D<=143;)O[D*2+1]=8,D++,K[8]++;for(;D<=255;)O[D*2+1]=9,D++,K[9]++;for(;D<=279;)O[D*2+1]=7,D++,K[7]++;for(;D<=287;)O[D*2+1]=8,D++,K[8]++;for(Be(O,y+1,K),D=0;D<T;D++)P[D*2+1]=5,P[D*2]=oe(D,5);x=new F(O,he,b+1,y,I),Y=new F(P,le,0,T,I),B=new F(new Array(0),Ee,0,k,w)}function z(D){var Re;for(Re=0;Re<y;Re++)D.dyn_ltree[Re*2]=0;for(Re=0;Re<T;Re++)D.dyn_dtree[Re*2]=0;for(Re=0;Re<k;Re++)D.bl_tree[Re*2]=0;D.dyn_ltree[S*2]=1,D.opt_len=D.static_len=0,D.last_lit=D.matches=0}function J(D){D.bi_valid>8?U(D,D.bi_buf):D.bi_valid>0&&(D.pending_buf[D.pending++]=D.bi_buf),D.bi_buf=0,D.bi_valid=0}function ge(D,Re,$e,qe){J(D),U(D,$e),U(D,~$e),e.arraySet(D.pending_buf,D.window,Re,$e,D.pending),D.pending+=$e}function Ne(D,Re,$e,qe){var C=Re*2,K=$e*2;return D[C]<D[K]||D[C]===D[K]&&qe[Re]<=qe[$e]}function Te(D,Re,$e){for(var qe=D.heap[$e],C=$e<<1;C<=D.heap_len&&(C<D.heap_len&&Ne(Re,D.heap[C+1],D.heap[C],D.depth)&&C++,!Ne(Re,qe,D.heap[C],D.depth));)D.heap[$e]=D.heap[C],$e=C,C<<=1;D.heap[$e]=qe}function je(D,Re,$e){var qe,C,K=0,A,Oe;if(D.last_lit!==0)do qe=D.pending_buf[D.d_buf+K*2]<<8|D.pending_buf[D.d_buf+K*2+1],C=D.pending_buf[D.l_buf+K],K++,qe===0?de(D,C,Re):(A=ae[C],de(D,A+b+1,Re),Oe=he[A],Oe!==0&&(C-=X[A],G(D,C,Oe)),qe--,A=$(qe),de(D,A,$e),Oe=le[A],Oe!==0&&(qe-=ne[A],G(D,qe,Oe)));while(K<D.last_lit);de(D,S,Re)}function me(D,Re){var $e=Re.dyn_tree,qe=Re.stat_desc.static_tree,C=Re.stat_desc.has_stree,K=Re.stat_desc.elems,A,Oe,Ke=-1,p;for(D.heap_len=0,D.heap_max=E,A=0;A<K;A++)$e[A*2]!==0?(D.heap[++D.heap_len]=Ke=A,D.depth[A]=0):$e[A*2+1]=0;for(;D.heap_len<2;)p=D.heap[++D.heap_len]=Ke<2?++Ke:0,$e[p*2]=1,D.depth[p]=0,D.opt_len--,C&&(D.static_len-=qe[p*2+1]);for(Re.max_code=Ke,A=D.heap_len>>1;A>=1;A--)Te(D,$e,A);p=K;do A=D.heap[1],D.heap[1]=D.heap[D.heap_len--],Te(D,$e,1),Oe=D.heap[1],D.heap[--D.heap_max]=A,D.heap[--D.heap_max]=Oe,$e[p*2]=$e[A*2]+$e[Oe*2],D.depth[p]=(D.depth[A]>=D.depth[Oe]?D.depth[A]:D.depth[Oe])+1,$e[A*2+1]=$e[Oe*2+1]=p,D.heap[1]=p++,Te(D,$e,1);while(D.heap_len>=2);D.heap[--D.heap_max]=D.heap[1],Se(D,Re),Be($e,Ke,D.bl_count)}function Ye(D,Re,$e){var qe,C=-1,K,A=Re[0*2+1],Oe=0,Ke=7,p=4;for(A===0&&(Ke=138,p=3),Re[($e+1)*2+1]=65535,qe=0;qe<=$e;qe++)K=A,A=Re[(qe+1)*2+1],!(++Oe<Ke&&K===A)&&(Oe<p?D.bl_tree[K*2]+=Oe:K!==0?(K!==C&&D.bl_tree[K*2]++,D.bl_tree[H*2]++):Oe<=10?D.bl_tree[Q*2]++:D.bl_tree[ie*2]++,Oe=0,C=K,A===0?(Ke=138,p=3):K===A?(Ke=6,p=3):(Ke=7,p=4))}function et(D,Re,$e){var qe,C=-1,K,A=Re[0*2+1],Oe=0,Ke=7,p=4;for(A===0&&(Ke=138,p=3),qe=0;qe<=$e;qe++)if(K=A,A=Re[(qe+1)*2+1],!(++Oe<Ke&&K===A)){if(Oe<p)do de(D,K,D.bl_tree);while(--Oe!==0);else K!==0?(K!==C&&(de(D,K,D.bl_tree),Oe--),de(D,H,D.bl_tree),G(D,Oe-3,2)):Oe<=10?(de(D,Q,D.bl_tree),G(D,Oe-3,3)):(de(D,ie,D.bl_tree),G(D,Oe-11,7));Oe=0,C=K,A===0?(Ke=138,p=3):K===A?(Ke=6,p=3):(Ke=7,p=4)}}function re(D){var Re;for(Ye(D,D.dyn_ltree,D.l_desc.max_code),Ye(D,D.dyn_dtree,D.d_desc.max_code),me(D,D.bl_desc),Re=k-1;Re>=3&&D.bl_tree[ve[Re]*2+1]===0;Re--);return D.opt_len+=3*(Re+1)+5+5+4,Re}function xe(D,Re,$e,qe){var C;for(G(D,Re-257,5),G(D,$e-1,5),G(D,qe-4,4),C=0;C<qe;C++)G(D,D.bl_tree[ve[C]*2+1],3);et(D,D.dyn_ltree,Re-1),et(D,D.dyn_dtree,$e-1)}function M(D){var Re=4093624447,$e;for($e=0;$e<=31;$e++,Re>>>=1)if(Re&1&&D.dyn_ltree[$e*2]!==0)return r;if(D.dyn_ltree[9*2]!==0||D.dyn_ltree[10*2]!==0||D.dyn_ltree[13*2]!==0)return i;for($e=32;$e<b;$e++)if(D.dyn_ltree[$e*2]!==0)return i;return r}var ce=!1;function De(D){ce||(Me(),ce=!0),D.l_desc=new j(D.dyn_ltree,x),D.d_desc=new j(D.dyn_dtree,Y),D.bl_desc=new j(D.bl_tree,B),D.bi_buf=0,D.bi_valid=0,z(D)}function Ve(D,Re,$e,qe){G(D,(f<<1)+(qe?1:0),3),ge(D,Re,$e)}function Ue(D){G(D,d<<1,3),de(D,S,O),ue(D)}function ke(D,Re,$e,qe){var C,K,A=0;D.level>0?(D.strm.data_type===a&&(D.strm.data_type=M(D)),me(D,D.l_desc),me(D,D.d_desc),A=re(D),C=D.opt_len+3+7>>>3,K=D.static_len+3+7>>>3,K<=C&&(C=K)):C=K=$e+5,$e+4<=C&&Re!==-1?Ve(D,Re,$e,qe):D.strategy===t||K===C?(G(D,(d<<1)+(qe?1:0),3),je(D,O,P)):(G(D,(c<<1)+(qe?1:0),3),xe(D,D.l_desc.max_code+1,D.d_desc.max_code+1,A+1),je(D,D.dyn_ltree,D.dyn_dtree)),z(D),qe&&J(D)}function Xe(D,Re,$e){return D.pending_buf[D.d_buf+D.last_lit*2]=Re>>>8&255,D.pending_buf[D.d_buf+D.last_lit*2+1]=Re&255,D.pending_buf[D.l_buf+D.last_lit]=$e&255,D.last_lit++,Re===0?D.dyn_ltree[$e*2]++:(D.matches++,Re--,D.dyn_ltree[(ae[$e]+b+1)*2]++,D.dyn_dtree[$(Re)*2]++),D.last_lit===D.lit_bufsize-1}return ki._tr_init=De,ki._tr_stored_block=Ve,ki._tr_flush_block=ke,ki._tr_tally=Xe,ki._tr_align=Ue,ki}var Rd,_b;function Xw(){if(_b)return Rd;_b=1;function e(t,r,i,a){for(var s=t&65535|0,f=t>>>16&65535|0,d=0;i!==0;){d=i>2e3?2e3:i,i-=d;do s=s+r[a++]|0,f=f+s|0;while(--d);s%=65521,f%=65521}return s|f<<16|0}return Rd=e,Rd}var Id,bb;function Yw(){if(bb)return Id;bb=1;function e(){for(var i,a=[],s=0;s<256;s++){i=s;for(var f=0;f<8;f++)i=i&1?3988292384^i>>>1:i>>>1;a[s]=i}return a}var t=e();function r(i,a,s,f){var d=t,c=f+s;i^=-1;for(var l=f;l<c;l++)i=i>>>8^d[(i^a[l])&255];return i^-1}return Id=r,Id}var Od,mb;function zD(){return mb||(mb=1,Od={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),Od}var vb;function GD(){if(vb)return ln;vb=1;var e=vu(),t=WD(),r=Xw(),i=Yw(),a=zD(),s=0,f=1,d=3,c=4,l=5,h=0,_=1,b=-2,y=-3,T=-5,k=-1,E=1,I=2,v=3,w=4,S=0,H=2,Q=8,ie=9,he=15,le=8,Ee=29,ve=256,m=ve+1+Ee,O=30,P=19,Z=2*m+1,ae=15,X=3,ne=258,F=ne+X+1,x=32,Y=42,B=69,j=73,$=91,U=103,G=113,de=666,oe=1,ue=2,Se=3,Be=4,Me=3;function z(p,_e){return p.msg=a[_e],_e}function J(p){return(p<<1)-(p>4?9:0)}function ge(p){for(var _e=p.length;--_e>=0;)p[_e]=0}function Ne(p){var _e=p.state,Ie=_e.pending;Ie>p.avail_out&&(Ie=p.avail_out),Ie!==0&&(e.arraySet(p.output,_e.pending_buf,_e.pending_out,Ie,p.next_out),p.next_out+=Ie,_e.pending_out+=Ie,p.total_out+=Ie,p.avail_out-=Ie,_e.pending-=Ie,_e.pending===0&&(_e.pending_out=0))}function Te(p,_e){t._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,_e),p.block_start=p.strstart,Ne(p.strm)}function je(p,_e){p.pending_buf[p.pending++]=_e}function me(p,_e){p.pending_buf[p.pending++]=_e>>>8&255,p.pending_buf[p.pending++]=_e&255}function Ye(p,_e,Ie,L){var fe=p.avail_in;return fe>L&&(fe=L),fe===0?0:(p.avail_in-=fe,e.arraySet(_e,p.input,p.next_in,fe,Ie),p.state.wrap===1?p.adler=r(p.adler,_e,fe,Ie):p.state.wrap===2&&(p.adler=i(p.adler,_e,fe,Ie)),p.next_in+=fe,p.total_in+=fe,fe)}function et(p,_e){var Ie=p.max_chain_length,L=p.strstart,fe,Ae,Je=p.prev_length,N=p.nice_match,W=p.strstart>p.w_size-F?p.strstart-(p.w_size-F):0,Ce=p.window,ze=p.w_mask,Ge=p.prev,rt=p.strstart+ne,ot=Ce[L+Je-1],bt=Ce[L+Je];p.prev_length>=p.good_match&&(Ie>>=2),N>p.lookahead&&(N=p.lookahead);do if(fe=_e,!(Ce[fe+Je]!==bt||Ce[fe+Je-1]!==ot||Ce[fe]!==Ce[L]||Ce[++fe]!==Ce[L+1])){L+=2,fe++;do;while(Ce[++L]===Ce[++fe]&&Ce[++L]===Ce[++fe]&&Ce[++L]===Ce[++fe]&&Ce[++L]===Ce[++fe]&&Ce[++L]===Ce[++fe]&&Ce[++L]===Ce[++fe]&&Ce[++L]===Ce[++fe]&&Ce[++L]===Ce[++fe]&&L<rt);if(Ae=ne-(rt-L),L=rt-ne,Ae>Je){if(p.match_start=_e,Je=Ae,Ae>=N)break;ot=Ce[L+Je-1],bt=Ce[L+Je]}}while((_e=Ge[_e&ze])>W&&--Ie!==0);return Je<=p.lookahead?Je:p.lookahead}function re(p){var _e=p.w_size,Ie,L,fe,Ae,Je;do{if(Ae=p.window_size-p.lookahead-p.strstart,p.strstart>=_e+(_e-F)){e.arraySet(p.window,p.window,_e,_e,0),p.match_start-=_e,p.strstart-=_e,p.block_start-=_e,L=p.hash_size,Ie=L;do fe=p.head[--Ie],p.head[Ie]=fe>=_e?fe-_e:0;while(--L);L=_e,Ie=L;do fe=p.prev[--Ie],p.prev[Ie]=fe>=_e?fe-_e:0;while(--L);Ae+=_e}if(p.strm.avail_in===0)break;if(L=Ye(p.strm,p.window,p.strstart+p.lookahead,Ae),p.lookahead+=L,p.lookahead+p.insert>=X)for(Je=p.strstart-p.insert,p.ins_h=p.window[Je],p.ins_h=(p.ins_h<<p.hash_shift^p.window[Je+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[Je+X-1])&p.hash_mask,p.prev[Je&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=Je,Je++,p.insert--,!(p.lookahead+p.insert<X)););}while(p.lookahead<F&&p.strm.avail_in!==0)}function xe(p,_e){var Ie=65535;for(Ie>p.pending_buf_size-5&&(Ie=p.pending_buf_size-5);;){if(p.lookahead<=1){if(re(p),p.lookahead===0&&_e===s)return oe;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var L=p.block_start+Ie;if((p.strstart===0||p.strstart>=L)&&(p.lookahead=p.strstart-L,p.strstart=L,Te(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-F&&(Te(p,!1),p.strm.avail_out===0))return oe}return p.insert=0,_e===c?(Te(p,!0),p.strm.avail_out===0?Se:Be):(p.strstart>p.block_start&&(Te(p,!1),p.strm.avail_out===0),oe)}function M(p,_e){for(var Ie,L;;){if(p.lookahead<F){if(re(p),p.lookahead<F&&_e===s)return oe;if(p.lookahead===0)break}if(Ie=0,p.lookahead>=X&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),Ie!==0&&p.strstart-Ie<=p.w_size-F&&(p.match_length=et(p,Ie)),p.match_length>=X)if(L=t._tr_tally(p,p.strstart-p.match_start,p.match_length-X),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=X){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else L=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(L&&(Te(p,!1),p.strm.avail_out===0))return oe}return p.insert=p.strstart<X-1?p.strstart:X-1,_e===c?(Te(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Te(p,!1),p.strm.avail_out===0)?oe:ue}function ce(p,_e){for(var Ie,L,fe;;){if(p.lookahead<F){if(re(p),p.lookahead<F&&_e===s)return oe;if(p.lookahead===0)break}if(Ie=0,p.lookahead>=X&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=X-1,Ie!==0&&p.prev_length<p.max_lazy_match&&p.strstart-Ie<=p.w_size-F&&(p.match_length=et(p,Ie),p.match_length<=5&&(p.strategy===E||p.match_length===X&&p.strstart-p.match_start>4096)&&(p.match_length=X-1)),p.prev_length>=X&&p.match_length<=p.prev_length){fe=p.strstart+p.lookahead-X,L=t._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-X),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=fe&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=X-1,p.strstart++,L&&(Te(p,!1),p.strm.avail_out===0))return oe}else if(p.match_available){if(L=t._tr_tally(p,0,p.window[p.strstart-1]),L&&Te(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return oe}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(L=t._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<X-1?p.strstart:X-1,_e===c?(Te(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Te(p,!1),p.strm.avail_out===0)?oe:ue}function De(p,_e){for(var Ie,L,fe,Ae,Je=p.window;;){if(p.lookahead<=ne){if(re(p),p.lookahead<=ne&&_e===s)return oe;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=X&&p.strstart>0&&(fe=p.strstart-1,L=Je[fe],L===Je[++fe]&&L===Je[++fe]&&L===Je[++fe])){Ae=p.strstart+ne;do;while(L===Je[++fe]&&L===Je[++fe]&&L===Je[++fe]&&L===Je[++fe]&&L===Je[++fe]&&L===Je[++fe]&&L===Je[++fe]&&L===Je[++fe]&&fe<Ae);p.match_length=ne-(Ae-fe),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=X?(Ie=t._tr_tally(p,1,p.match_length-X),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(Ie=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),Ie&&(Te(p,!1),p.strm.avail_out===0))return oe}return p.insert=0,_e===c?(Te(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Te(p,!1),p.strm.avail_out===0)?oe:ue}function Ve(p,_e){for(var Ie;;){if(p.lookahead===0&&(re(p),p.lookahead===0)){if(_e===s)return oe;break}if(p.match_length=0,Ie=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,Ie&&(Te(p,!1),p.strm.avail_out===0))return oe}return p.insert=0,_e===c?(Te(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Te(p,!1),p.strm.avail_out===0)?oe:ue}function Ue(p,_e,Ie,L,fe){this.good_length=p,this.max_lazy=_e,this.nice_length=Ie,this.max_chain=L,this.func=fe}var ke;ke=[new Ue(0,0,0,0,xe),new Ue(4,4,8,4,M),new Ue(4,5,16,8,M),new Ue(4,6,32,32,M),new Ue(4,4,16,16,ce),new Ue(8,16,32,32,ce),new Ue(8,16,128,128,ce),new Ue(8,32,128,256,ce),new Ue(32,128,258,1024,ce),new Ue(32,258,258,4096,ce)];function Xe(p){p.window_size=2*p.w_size,ge(p.head),p.max_lazy_match=ke[p.level].max_lazy,p.good_match=ke[p.level].good_length,p.nice_match=ke[p.level].nice_length,p.max_chain_length=ke[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=X-1,p.match_available=0,p.ins_h=0}function D(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Q,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(Z*2),this.dyn_dtree=new e.Buf16((2*O+1)*2),this.bl_tree=new e.Buf16((2*P+1)*2),ge(this.dyn_ltree),ge(this.dyn_dtree),ge(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(ae+1),this.heap=new e.Buf16(2*m+1),ge(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*m+1),ge(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Re(p){var _e;return!p||!p.state?z(p,b):(p.total_in=p.total_out=0,p.data_type=H,_e=p.state,_e.pending=0,_e.pending_out=0,_e.wrap<0&&(_e.wrap=-_e.wrap),_e.status=_e.wrap?Y:G,p.adler=_e.wrap===2?0:1,_e.last_flush=s,t._tr_init(_e),h)}function $e(p){var _e=Re(p);return _e===h&&Xe(p.state),_e}function qe(p,_e){return!p||!p.state||p.state.wrap!==2?b:(p.state.gzhead=_e,h)}function C(p,_e,Ie,L,fe,Ae){if(!p)return b;var Je=1;if(_e===k&&(_e=6),L<0?(Je=0,L=-L):L>15&&(Je=2,L-=16),fe<1||fe>ie||Ie!==Q||L<8||L>15||_e<0||_e>9||Ae<0||Ae>w)return z(p,b);L===8&&(L=9);var N=new D;return p.state=N,N.strm=p,N.wrap=Je,N.gzhead=null,N.w_bits=L,N.w_size=1<<N.w_bits,N.w_mask=N.w_size-1,N.hash_bits=fe+7,N.hash_size=1<<N.hash_bits,N.hash_mask=N.hash_size-1,N.hash_shift=~~((N.hash_bits+X-1)/X),N.window=new e.Buf8(N.w_size*2),N.head=new e.Buf16(N.hash_size),N.prev=new e.Buf16(N.w_size),N.lit_bufsize=1<<fe+6,N.pending_buf_size=N.lit_bufsize*4,N.pending_buf=new e.Buf8(N.pending_buf_size),N.d_buf=1*N.lit_bufsize,N.l_buf=3*N.lit_bufsize,N.level=_e,N.strategy=Ae,N.method=Ie,$e(p)}function K(p,_e){return C(p,_e,Q,he,le,S)}function A(p,_e){var Ie,L,fe,Ae;if(!p||!p.state||_e>l||_e<0)return p?z(p,b):b;if(L=p.state,!p.output||!p.input&&p.avail_in!==0||L.status===de&&_e!==c)return z(p,p.avail_out===0?T:b);if(L.strm=p,Ie=L.last_flush,L.last_flush=_e,L.status===Y)if(L.wrap===2)p.adler=0,je(L,31),je(L,139),je(L,8),L.gzhead?(je(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),je(L,L.gzhead.time&255),je(L,L.gzhead.time>>8&255),je(L,L.gzhead.time>>16&255),je(L,L.gzhead.time>>24&255),je(L,L.level===9?2:L.strategy>=I||L.level<2?4:0),je(L,L.gzhead.os&255),L.gzhead.extra&&L.gzhead.extra.length&&(je(L,L.gzhead.extra.length&255),je(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(p.adler=i(p.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=B):(je(L,0),je(L,0),je(L,0),je(L,0),je(L,0),je(L,L.level===9?2:L.strategy>=I||L.level<2?4:0),je(L,Me),L.status=G);else{var Je=Q+(L.w_bits-8<<4)<<8,N=-1;L.strategy>=I||L.level<2?N=0:L.level<6?N=1:L.level===6?N=2:N=3,Je|=N<<6,L.strstart!==0&&(Je|=x),Je+=31-Je%31,L.status=G,me(L,Je),L.strstart!==0&&(me(L,p.adler>>>16),me(L,p.adler&65535)),p.adler=1}if(L.status===B)if(L.gzhead.extra){for(fe=L.pending;L.gzindex<(L.gzhead.extra.length&65535)&&!(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>fe&&(p.adler=i(p.adler,L.pending_buf,L.pending-fe,fe)),Ne(p),fe=L.pending,L.pending===L.pending_buf_size));)je(L,L.gzhead.extra[L.gzindex]&255),L.gzindex++;L.gzhead.hcrc&&L.pending>fe&&(p.adler=i(p.adler,L.pending_buf,L.pending-fe,fe)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=j)}else L.status=j;if(L.status===j)if(L.gzhead.name){fe=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>fe&&(p.adler=i(p.adler,L.pending_buf,L.pending-fe,fe)),Ne(p),fe=L.pending,L.pending===L.pending_buf_size)){Ae=1;break}L.gzindex<L.gzhead.name.length?Ae=L.gzhead.name.charCodeAt(L.gzindex++)&255:Ae=0,je(L,Ae)}while(Ae!==0);L.gzhead.hcrc&&L.pending>fe&&(p.adler=i(p.adler,L.pending_buf,L.pending-fe,fe)),Ae===0&&(L.gzindex=0,L.status=$)}else L.status=$;if(L.status===$)if(L.gzhead.comment){fe=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>fe&&(p.adler=i(p.adler,L.pending_buf,L.pending-fe,fe)),Ne(p),fe=L.pending,L.pending===L.pending_buf_size)){Ae=1;break}L.gzindex<L.gzhead.comment.length?Ae=L.gzhead.comment.charCodeAt(L.gzindex++)&255:Ae=0,je(L,Ae)}while(Ae!==0);L.gzhead.hcrc&&L.pending>fe&&(p.adler=i(p.adler,L.pending_buf,L.pending-fe,fe)),Ae===0&&(L.status=U)}else L.status=U;if(L.status===U&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&Ne(p),L.pending+2<=L.pending_buf_size&&(je(L,p.adler&255),je(L,p.adler>>8&255),p.adler=0,L.status=G)):L.status=G),L.pending!==0){if(Ne(p),p.avail_out===0)return L.last_flush=-1,h}else if(p.avail_in===0&&J(_e)<=J(Ie)&&_e!==c)return z(p,T);if(L.status===de&&p.avail_in!==0)return z(p,T);if(p.avail_in!==0||L.lookahead!==0||_e!==s&&L.status!==de){var W=L.strategy===I?Ve(L,_e):L.strategy===v?De(L,_e):ke[L.level].func(L,_e);if((W===Se||W===Be)&&(L.status=de),W===oe||W===Se)return p.avail_out===0&&(L.last_flush=-1),h;if(W===ue&&(_e===f?t._tr_align(L):_e!==l&&(t._tr_stored_block(L,0,0,!1),_e===d&&(ge(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),Ne(p),p.avail_out===0))return L.last_flush=-1,h}return _e!==c?h:L.wrap<=0?_:(L.wrap===2?(je(L,p.adler&255),je(L,p.adler>>8&255),je(L,p.adler>>16&255),je(L,p.adler>>24&255),je(L,p.total_in&255),je(L,p.total_in>>8&255),je(L,p.total_in>>16&255),je(L,p.total_in>>24&255)):(me(L,p.adler>>>16),me(L,p.adler&65535)),Ne(p),L.wrap>0&&(L.wrap=-L.wrap),L.pending!==0?h:_)}function Oe(p){var _e;return!p||!p.state?b:(_e=p.state.status,_e!==Y&&_e!==B&&_e!==j&&_e!==$&&_e!==U&&_e!==G&&_e!==de?z(p,b):(p.state=null,_e===G?z(p,y):h))}function Ke(p,_e){var Ie=_e.length,L,fe,Ae,Je,N,W,Ce,ze;if(!p||!p.state||(L=p.state,Je=L.wrap,Je===2||Je===1&&L.status!==Y||L.lookahead))return b;for(Je===1&&(p.adler=r(p.adler,_e,Ie,0)),L.wrap=0,Ie>=L.w_size&&(Je===0&&(ge(L.head),L.strstart=0,L.block_start=0,L.insert=0),ze=new e.Buf8(L.w_size),e.arraySet(ze,_e,Ie-L.w_size,L.w_size,0),_e=ze,Ie=L.w_size),N=p.avail_in,W=p.next_in,Ce=p.input,p.avail_in=Ie,p.next_in=0,p.input=_e,re(L);L.lookahead>=X;){fe=L.strstart,Ae=L.lookahead-(X-1);do L.ins_h=(L.ins_h<<L.hash_shift^L.window[fe+X-1])&L.hash_mask,L.prev[fe&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=fe,fe++;while(--Ae);L.strstart=fe,L.lookahead=X-1,re(L)}return L.strstart+=L.lookahead,L.block_start=L.strstart,L.insert=L.lookahead,L.lookahead=0,L.match_length=L.prev_length=X-1,L.match_available=0,p.next_in=W,p.input=Ce,p.avail_in=N,L.wrap=Je,h}return ln.deflateInit=K,ln.deflateInit2=C,ln.deflateReset=$e,ln.deflateResetKeep=Re,ln.deflateSetHeader=qe,ln.deflate=A,ln.deflateEnd=Oe,ln.deflateSetDictionary=Ke,ln.deflateInfo="pako deflate (from Nodeca project)",ln}var en={},Td,wb;function VD(){if(wb)return Td;wb=1;var e=30,t=12;return Td=function(i,a){var s,f,d,c,l,h,_,b,y,T,k,E,I,v,w,S,H,Q,ie,he,le,Ee,ve,m,O;s=i.state,f=i.next_in,m=i.input,d=f+(i.avail_in-5),c=i.next_out,O=i.output,l=c-(a-i.avail_out),h=c+(i.avail_out-257),_=s.dmax,b=s.wsize,y=s.whave,T=s.wnext,k=s.window,E=s.hold,I=s.bits,v=s.lencode,w=s.distcode,S=(1<<s.lenbits)-1,H=(1<<s.distbits)-1;e:do{I<15&&(E+=m[f++]<<I,I+=8,E+=m[f++]<<I,I+=8),Q=v[E&S];t:for(;;){if(ie=Q>>>24,E>>>=ie,I-=ie,ie=Q>>>16&255,ie===0)O[c++]=Q&65535;else if(ie&16){he=Q&65535,ie&=15,ie&&(I<ie&&(E+=m[f++]<<I,I+=8),he+=E&(1<<ie)-1,E>>>=ie,I-=ie),I<15&&(E+=m[f++]<<I,I+=8,E+=m[f++]<<I,I+=8),Q=w[E&H];r:for(;;){if(ie=Q>>>24,E>>>=ie,I-=ie,ie=Q>>>16&255,ie&16){if(le=Q&65535,ie&=15,I<ie&&(E+=m[f++]<<I,I+=8,I<ie&&(E+=m[f++]<<I,I+=8)),le+=E&(1<<ie)-1,le>_){i.msg="invalid distance too far back",s.mode=e;break e}if(E>>>=ie,I-=ie,ie=c-l,le>ie){if(ie=le-ie,ie>y&&s.sane){i.msg="invalid distance too far back",s.mode=e;break e}if(Ee=0,ve=k,T===0){if(Ee+=b-ie,ie<he){he-=ie;do O[c++]=k[Ee++];while(--ie);Ee=c-le,ve=O}}else if(T<ie){if(Ee+=b+T-ie,ie-=T,ie<he){he-=ie;do O[c++]=k[Ee++];while(--ie);if(Ee=0,T<he){ie=T,he-=ie;do O[c++]=k[Ee++];while(--ie);Ee=c-le,ve=O}}}else if(Ee+=T-ie,ie<he){he-=ie;do O[c++]=k[Ee++];while(--ie);Ee=c-le,ve=O}for(;he>2;)O[c++]=ve[Ee++],O[c++]=ve[Ee++],O[c++]=ve[Ee++],he-=3;he&&(O[c++]=ve[Ee++],he>1&&(O[c++]=ve[Ee++]))}else{Ee=c-le;do O[c++]=O[Ee++],O[c++]=O[Ee++],O[c++]=O[Ee++],he-=3;while(he>2);he&&(O[c++]=O[Ee++],he>1&&(O[c++]=O[Ee++]))}}else if(ie&64){i.msg="invalid distance code",s.mode=e;break e}else{Q=w[(Q&65535)+(E&(1<<ie)-1)];continue r}break}}else if(ie&64)if(ie&32){s.mode=t;break e}else{i.msg="invalid literal/length code",s.mode=e;break e}else{Q=v[(Q&65535)+(E&(1<<ie)-1)];continue t}break}}while(f<d&&c<h);he=I>>3,f-=he,I-=he<<3,E&=(1<<I)-1,i.next_in=f,i.next_out=c,i.avail_in=f<d?5+(d-f):5-(f-d),i.avail_out=c<h?257+(h-c):257-(c-h),s.hold=E,s.bits=I},Td}var Pd,Eb;function ZD(){if(Eb)return Pd;Eb=1;var e=vu(),t=15,r=852,i=592,a=0,s=1,f=2,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],c=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Pd=function(b,y,T,k,E,I,v,w){var S=w.bits,H=0,Q=0,ie=0,he=0,le=0,Ee=0,ve=0,m=0,O=0,P=0,Z,ae,X,ne,F,x=null,Y=0,B,j=new e.Buf16(t+1),$=new e.Buf16(t+1),U=null,G=0,de,oe,ue;for(H=0;H<=t;H++)j[H]=0;for(Q=0;Q<k;Q++)j[y[T+Q]]++;for(le=S,he=t;he>=1&&j[he]===0;he--);if(le>he&&(le=he),he===0)return E[I++]=1<<24|64<<16|0,E[I++]=1<<24|64<<16|0,w.bits=1,0;for(ie=1;ie<he&&j[ie]===0;ie++);for(le<ie&&(le=ie),m=1,H=1;H<=t;H++)if(m<<=1,m-=j[H],m<0)return-1;if(m>0&&(b===a||he!==1))return-1;for($[1]=0,H=1;H<t;H++)$[H+1]=$[H]+j[H];for(Q=0;Q<k;Q++)y[T+Q]!==0&&(v[$[y[T+Q]]++]=Q);if(b===a?(x=U=v,B=19):b===s?(x=d,Y-=257,U=c,G-=257,B=256):(x=l,U=h,B=-1),P=0,Q=0,H=ie,F=I,Ee=le,ve=0,X=-1,O=1<<le,ne=O-1,b===s&&O>r||b===f&&O>i)return 1;for(;;){de=H-ve,v[Q]<B?(oe=0,ue=v[Q]):v[Q]>B?(oe=U[G+v[Q]],ue=x[Y+v[Q]]):(oe=96,ue=0),Z=1<<H-ve,ae=1<<Ee,ie=ae;do ae-=Z,E[F+(P>>ve)+ae]=de<<24|oe<<16|ue|0;while(ae!==0);for(Z=1<<H-1;P&Z;)Z>>=1;if(Z!==0?(P&=Z-1,P+=Z):P=0,Q++,--j[H]===0){if(H===he)break;H=y[T+v[Q]]}if(H>le&&(P&ne)!==X){for(ve===0&&(ve=le),F+=ie,Ee=H-ve,m=1<<Ee;Ee+ve<he&&(m-=j[Ee+ve],!(m<=0));)Ee++,m<<=1;if(O+=1<<Ee,b===s&&O>r||b===f&&O>i)return 1;X=P&ne,E[X]=le<<24|Ee<<16|F-I|0}}return P!==0&&(E[F+P]=H-ve<<24|64<<16|0),w.bits=le,0},Pd}var Sb;function KD(){if(Sb)return en;Sb=1;var e=vu(),t=Xw(),r=Yw(),i=VD(),a=ZD(),s=0,f=1,d=2,c=4,l=5,h=6,_=0,b=1,y=2,T=-2,k=-3,E=-4,I=-5,v=8,w=1,S=2,H=3,Q=4,ie=5,he=6,le=7,Ee=8,ve=9,m=10,O=11,P=12,Z=13,ae=14,X=15,ne=16,F=17,x=18,Y=19,B=20,j=21,$=22,U=23,G=24,de=25,oe=26,ue=27,Se=28,Be=29,Me=30,z=31,J=32,ge=852,Ne=592,Te=15,je=Te;function me(C){return(C>>>24&255)+(C>>>8&65280)+((C&65280)<<8)+((C&255)<<24)}function Ye(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function et(C){var K;return!C||!C.state?T:(K=C.state,C.total_in=C.total_out=K.total=0,C.msg="",K.wrap&&(C.adler=K.wrap&1),K.mode=w,K.last=0,K.havedict=0,K.dmax=32768,K.head=null,K.hold=0,K.bits=0,K.lencode=K.lendyn=new e.Buf32(ge),K.distcode=K.distdyn=new e.Buf32(Ne),K.sane=1,K.back=-1,_)}function re(C){var K;return!C||!C.state?T:(K=C.state,K.wsize=0,K.whave=0,K.wnext=0,et(C))}function xe(C,K){var A,Oe;return!C||!C.state||(Oe=C.state,K<0?(A=0,K=-K):(A=(K>>4)+1,K<48&&(K&=15)),K&&(K<8||K>15))?T:(Oe.window!==null&&Oe.wbits!==K&&(Oe.window=null),Oe.wrap=A,Oe.wbits=K,re(C))}function M(C,K){var A,Oe;return C?(Oe=new Ye,C.state=Oe,Oe.window=null,A=xe(C,K),A!==_&&(C.state=null),A):T}function ce(C){return M(C,je)}var De=!0,Ve,Ue;function ke(C){if(De){var K;for(Ve=new e.Buf32(512),Ue=new e.Buf32(32),K=0;K<144;)C.lens[K++]=8;for(;K<256;)C.lens[K++]=9;for(;K<280;)C.lens[K++]=7;for(;K<288;)C.lens[K++]=8;for(a(f,C.lens,0,288,Ve,0,C.work,{bits:9}),K=0;K<32;)C.lens[K++]=5;a(d,C.lens,0,32,Ue,0,C.work,{bits:5}),De=!1}C.lencode=Ve,C.lenbits=9,C.distcode=Ue,C.distbits=5}function Xe(C,K,A,Oe){var Ke,p=C.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),Oe>=p.wsize?(e.arraySet(p.window,K,A-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(Ke=p.wsize-p.wnext,Ke>Oe&&(Ke=Oe),e.arraySet(p.window,K,A-Oe,Ke,p.wnext),Oe-=Ke,Oe?(e.arraySet(p.window,K,A-Oe,Oe,0),p.wnext=Oe,p.whave=p.wsize):(p.wnext+=Ke,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=Ke))),0}function D(C,K){var A,Oe,Ke,p,_e,Ie,L,fe,Ae,Je,N,W,Ce,ze,Ge=0,rt,ot,bt,ht,ar,ur,wt,Dt,St=new e.Buf8(4),Tt,qt,tr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return T;A=C.state,A.mode===P&&(A.mode=Z),_e=C.next_out,Ke=C.output,L=C.avail_out,p=C.next_in,Oe=C.input,Ie=C.avail_in,fe=A.hold,Ae=A.bits,Je=Ie,N=L,Dt=_;e:for(;;)switch(A.mode){case w:if(A.wrap===0){A.mode=Z;break}for(;Ae<16;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(A.wrap&2&&fe===35615){A.check=0,St[0]=fe&255,St[1]=fe>>>8&255,A.check=r(A.check,St,2,0),fe=0,Ae=0,A.mode=S;break}if(A.flags=0,A.head&&(A.head.done=!1),!(A.wrap&1)||(((fe&255)<<8)+(fe>>8))%31){C.msg="incorrect header check",A.mode=Me;break}if((fe&15)!==v){C.msg="unknown compression method",A.mode=Me;break}if(fe>>>=4,Ae-=4,wt=(fe&15)+8,A.wbits===0)A.wbits=wt;else if(wt>A.wbits){C.msg="invalid window size",A.mode=Me;break}A.dmax=1<<wt,C.adler=A.check=1,A.mode=fe&512?m:P,fe=0,Ae=0;break;case S:for(;Ae<16;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(A.flags=fe,(A.flags&255)!==v){C.msg="unknown compression method",A.mode=Me;break}if(A.flags&57344){C.msg="unknown header flags set",A.mode=Me;break}A.head&&(A.head.text=fe>>8&1),A.flags&512&&(St[0]=fe&255,St[1]=fe>>>8&255,A.check=r(A.check,St,2,0)),fe=0,Ae=0,A.mode=H;case H:for(;Ae<32;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}A.head&&(A.head.time=fe),A.flags&512&&(St[0]=fe&255,St[1]=fe>>>8&255,St[2]=fe>>>16&255,St[3]=fe>>>24&255,A.check=r(A.check,St,4,0)),fe=0,Ae=0,A.mode=Q;case Q:for(;Ae<16;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}A.head&&(A.head.xflags=fe&255,A.head.os=fe>>8),A.flags&512&&(St[0]=fe&255,St[1]=fe>>>8&255,A.check=r(A.check,St,2,0)),fe=0,Ae=0,A.mode=ie;case ie:if(A.flags&1024){for(;Ae<16;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}A.length=fe,A.head&&(A.head.extra_len=fe),A.flags&512&&(St[0]=fe&255,St[1]=fe>>>8&255,A.check=r(A.check,St,2,0)),fe=0,Ae=0}else A.head&&(A.head.extra=null);A.mode=he;case he:if(A.flags&1024&&(W=A.length,W>Ie&&(W=Ie),W&&(A.head&&(wt=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),e.arraySet(A.head.extra,Oe,p,W,wt)),A.flags&512&&(A.check=r(A.check,Oe,W,p)),Ie-=W,p+=W,A.length-=W),A.length))break e;A.length=0,A.mode=le;case le:if(A.flags&2048){if(Ie===0)break e;W=0;do wt=Oe[p+W++],A.head&&wt&&A.length<65536&&(A.head.name+=String.fromCharCode(wt));while(wt&&W<Ie);if(A.flags&512&&(A.check=r(A.check,Oe,W,p)),Ie-=W,p+=W,wt)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=Ee;case Ee:if(A.flags&4096){if(Ie===0)break e;W=0;do wt=Oe[p+W++],A.head&&wt&&A.length<65536&&(A.head.comment+=String.fromCharCode(wt));while(wt&&W<Ie);if(A.flags&512&&(A.check=r(A.check,Oe,W,p)),Ie-=W,p+=W,wt)break e}else A.head&&(A.head.comment=null);A.mode=ve;case ve:if(A.flags&512){for(;Ae<16;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(fe!==(A.check&65535)){C.msg="header crc mismatch",A.mode=Me;break}fe=0,Ae=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),C.adler=A.check=0,A.mode=P;break;case m:for(;Ae<32;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}C.adler=A.check=me(fe),fe=0,Ae=0,A.mode=O;case O:if(A.havedict===0)return C.next_out=_e,C.avail_out=L,C.next_in=p,C.avail_in=Ie,A.hold=fe,A.bits=Ae,y;C.adler=A.check=1,A.mode=P;case P:if(K===l||K===h)break e;case Z:if(A.last){fe>>>=Ae&7,Ae-=Ae&7,A.mode=ue;break}for(;Ae<3;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}switch(A.last=fe&1,fe>>>=1,Ae-=1,fe&3){case 0:A.mode=ae;break;case 1:if(ke(A),A.mode=B,K===h){fe>>>=2,Ae-=2;break e}break;case 2:A.mode=F;break;case 3:C.msg="invalid block type",A.mode=Me}fe>>>=2,Ae-=2;break;case ae:for(fe>>>=Ae&7,Ae-=Ae&7;Ae<32;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if((fe&65535)!==(fe>>>16^65535)){C.msg="invalid stored block lengths",A.mode=Me;break}if(A.length=fe&65535,fe=0,Ae=0,A.mode=X,K===h)break e;case X:A.mode=ne;case ne:if(W=A.length,W){if(W>Ie&&(W=Ie),W>L&&(W=L),W===0)break e;e.arraySet(Ke,Oe,p,W,_e),Ie-=W,p+=W,L-=W,_e+=W,A.length-=W;break}A.mode=P;break;case F:for(;Ae<14;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(A.nlen=(fe&31)+257,fe>>>=5,Ae-=5,A.ndist=(fe&31)+1,fe>>>=5,Ae-=5,A.ncode=(fe&15)+4,fe>>>=4,Ae-=4,A.nlen>286||A.ndist>30){C.msg="too many length or distance symbols",A.mode=Me;break}A.have=0,A.mode=x;case x:for(;A.have<A.ncode;){for(;Ae<3;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}A.lens[tr[A.have++]]=fe&7,fe>>>=3,Ae-=3}for(;A.have<19;)A.lens[tr[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,Tt={bits:A.lenbits},Dt=a(s,A.lens,0,19,A.lencode,0,A.work,Tt),A.lenbits=Tt.bits,Dt){C.msg="invalid code lengths set",A.mode=Me;break}A.have=0,A.mode=Y;case Y:for(;A.have<A.nlen+A.ndist;){for(;Ge=A.lencode[fe&(1<<A.lenbits)-1],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(rt<=Ae);){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(bt<16)fe>>>=rt,Ae-=rt,A.lens[A.have++]=bt;else{if(bt===16){for(qt=rt+2;Ae<qt;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(fe>>>=rt,Ae-=rt,A.have===0){C.msg="invalid bit length repeat",A.mode=Me;break}wt=A.lens[A.have-1],W=3+(fe&3),fe>>>=2,Ae-=2}else if(bt===17){for(qt=rt+3;Ae<qt;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}fe>>>=rt,Ae-=rt,wt=0,W=3+(fe&7),fe>>>=3,Ae-=3}else{for(qt=rt+7;Ae<qt;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}fe>>>=rt,Ae-=rt,wt=0,W=11+(fe&127),fe>>>=7,Ae-=7}if(A.have+W>A.nlen+A.ndist){C.msg="invalid bit length repeat",A.mode=Me;break}for(;W--;)A.lens[A.have++]=wt}}if(A.mode===Me)break;if(A.lens[256]===0){C.msg="invalid code -- missing end-of-block",A.mode=Me;break}if(A.lenbits=9,Tt={bits:A.lenbits},Dt=a(f,A.lens,0,A.nlen,A.lencode,0,A.work,Tt),A.lenbits=Tt.bits,Dt){C.msg="invalid literal/lengths set",A.mode=Me;break}if(A.distbits=6,A.distcode=A.distdyn,Tt={bits:A.distbits},Dt=a(d,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,Tt),A.distbits=Tt.bits,Dt){C.msg="invalid distances set",A.mode=Me;break}if(A.mode=B,K===h)break e;case B:A.mode=j;case j:if(Ie>=6&&L>=258){C.next_out=_e,C.avail_out=L,C.next_in=p,C.avail_in=Ie,A.hold=fe,A.bits=Ae,i(C,N),_e=C.next_out,Ke=C.output,L=C.avail_out,p=C.next_in,Oe=C.input,Ie=C.avail_in,fe=A.hold,Ae=A.bits,A.mode===P&&(A.back=-1);break}for(A.back=0;Ge=A.lencode[fe&(1<<A.lenbits)-1],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(rt<=Ae);){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(ot&&!(ot&240)){for(ht=rt,ar=ot,ur=bt;Ge=A.lencode[ur+((fe&(1<<ht+ar)-1)>>ht)],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(ht+rt<=Ae);){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}fe>>>=ht,Ae-=ht,A.back+=ht}if(fe>>>=rt,Ae-=rt,A.back+=rt,A.length=bt,ot===0){A.mode=oe;break}if(ot&32){A.back=-1,A.mode=P;break}if(ot&64){C.msg="invalid literal/length code",A.mode=Me;break}A.extra=ot&15,A.mode=$;case $:if(A.extra){for(qt=A.extra;Ae<qt;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}A.length+=fe&(1<<A.extra)-1,fe>>>=A.extra,Ae-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=U;case U:for(;Ge=A.distcode[fe&(1<<A.distbits)-1],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(rt<=Ae);){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(!(ot&240)){for(ht=rt,ar=ot,ur=bt;Ge=A.distcode[ur+((fe&(1<<ht+ar)-1)>>ht)],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(ht+rt<=Ae);){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}fe>>>=ht,Ae-=ht,A.back+=ht}if(fe>>>=rt,Ae-=rt,A.back+=rt,ot&64){C.msg="invalid distance code",A.mode=Me;break}A.offset=bt,A.extra=ot&15,A.mode=G;case G:if(A.extra){for(qt=A.extra;Ae<qt;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}A.offset+=fe&(1<<A.extra)-1,fe>>>=A.extra,Ae-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){C.msg="invalid distance too far back",A.mode=Me;break}A.mode=de;case de:if(L===0)break e;if(W=N-L,A.offset>W){if(W=A.offset-W,W>A.whave&&A.sane){C.msg="invalid distance too far back",A.mode=Me;break}W>A.wnext?(W-=A.wnext,Ce=A.wsize-W):Ce=A.wnext-W,W>A.length&&(W=A.length),ze=A.window}else ze=Ke,Ce=_e-A.offset,W=A.length;W>L&&(W=L),L-=W,A.length-=W;do Ke[_e++]=ze[Ce++];while(--W);A.length===0&&(A.mode=j);break;case oe:if(L===0)break e;Ke[_e++]=A.length,L--,A.mode=j;break;case ue:if(A.wrap){for(;Ae<32;){if(Ie===0)break e;Ie--,fe|=Oe[p++]<<Ae,Ae+=8}if(N-=L,C.total_out+=N,A.total+=N,N&&(C.adler=A.check=A.flags?r(A.check,Ke,N,_e-N):t(A.check,Ke,N,_e-N)),N=L,(A.flags?fe:me(fe))!==A.check){C.msg="incorrect data check",A.mode=Me;break}fe=0,Ae=0}A.mode=Se;case Se:if(A.wrap&&A.flags){for(;Ae<32;){if(Ie===0)break e;Ie--,fe+=Oe[p++]<<Ae,Ae+=8}if(fe!==(A.total&4294967295)){C.msg="incorrect length check",A.mode=Me;break}fe=0,Ae=0}A.mode=Be;case Be:Dt=b;break e;case Me:Dt=k;break e;case z:return E;case J:default:return T}return C.next_out=_e,C.avail_out=L,C.next_in=p,C.avail_in=Ie,A.hold=fe,A.bits=Ae,(A.wsize||N!==C.avail_out&&A.mode<Me&&(A.mode<ue||K!==c))&&Xe(C,C.output,C.next_out,N-C.avail_out),Je-=C.avail_in,N-=C.avail_out,C.total_in+=Je,C.total_out+=N,A.total+=N,A.wrap&&N&&(C.adler=A.check=A.flags?r(A.check,Ke,N,C.next_out-N):t(A.check,Ke,N,C.next_out-N)),C.data_type=A.bits+(A.last?64:0)+(A.mode===P?128:0)+(A.mode===B||A.mode===X?256:0),(Je===0&&N===0||K===c)&&Dt===_&&(Dt=I),Dt}function Re(C){if(!C||!C.state)return T;var K=C.state;return K.window&&(K.window=null),C.state=null,_}function $e(C,K){var A;return!C||!C.state||(A=C.state,!(A.wrap&2))?T:(A.head=K,K.done=!1,_)}function qe(C,K){var A=K.length,Oe,Ke,p;return!C||!C.state||(Oe=C.state,Oe.wrap!==0&&Oe.mode!==O)?T:Oe.mode===O&&(Ke=1,Ke=t(Ke,K,A,0),Ke!==Oe.check)?k:(p=Xe(C,K,A,A),p?(Oe.mode=z,E):(Oe.havedict=1,_))}return en.inflateReset=re,en.inflateReset2=xe,en.inflateResetKeep=et,en.inflateInit=ce,en.inflateInit2=M,en.inflate=D,en.inflateEnd=Re,en.inflateGetHeader=$e,en.inflateSetDictionary=qe,en.inflateInfo="pako inflate (from Nodeca project)",en}var Cd,Ab;function JD(){return Ab||(Ab=1,Cd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),Cd}var Rb;function XD(){return Rb||(Rb=1,function(e){var t=wf(),r=HD(),i=GD(),a=KD(),s=JD();for(var f in s)e[f]=s[f];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;var d=31,c=139;function l(h){if(typeof h!="number"||h<e.DEFLATE||h>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=h,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,t(this.init_done,"close before init"),t(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?i.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},l.prototype.write=function(h,_,b,y,T,k,E){return this._write(!0,h,_,b,y,T,k,E)},l.prototype.writeSync=function(h,_,b,y,T,k,E){return this._write(!1,h,_,b,y,T,k,E)},l.prototype._write=function(h,_,b,y,T,k,E,I){if(t.equal(arguments.length,8),t(this.init_done,"write before init"),t(this.mode!==e.NONE,"already finalized"),t.equal(!1,this.write_in_progress,"write already in progress"),t.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,t.equal(!1,_===void 0,"must provide flush value"),this.write_in_progress=!0,_!==e.Z_NO_FLUSH&&_!==e.Z_PARTIAL_FLUSH&&_!==e.Z_SYNC_FLUSH&&_!==e.Z_FULL_FLUSH&&_!==e.Z_FINISH&&_!==e.Z_BLOCK)throw new Error("Invalid flush value");if(b==null&&(b=ee.dist.Buffer.alloc(0),T=0,y=0),this.strm.avail_in=T,this.strm.input=b,this.strm.next_in=y,this.strm.avail_out=I,this.strm.output=k,this.strm.next_out=E,this.flush=_,!h)return this._process(),this._checkError()?this._afterSync():void 0;var v=this;return ee.dist.process.nextTick(function(){v._process(),v._after()}),this},l.prototype._afterSync=function(){var h=this.strm.avail_out,_=this.strm.avail_in;return this.write_in_progress=!1,[_,h]},l.prototype._process=function(){var h=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(h=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(h===null)break;if(this.strm.input[h]===d){if(this.gzip_id_bytes_read=1,h++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(h===null)break;this.strm.input[h]===c?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var h=this.strm.avail_out,_=this.strm.avail_in;this.write_in_progress=!1,this.callback(_,h),this.pending_close&&this.close()}},l.prototype._error=function(h){this.strm.msg&&(h=this.strm.msg),this.onerror(h,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(h,_,b,y,T){t(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),t(h>=8&&h<=15,"invalid windowBits"),t(_>=-1&&_<=9,"invalid compression level"),t(b>=1&&b<=9,"invalid memlevel"),t(y===e.Z_FILTERED||y===e.Z_HUFFMAN_ONLY||y===e.Z_RLE||y===e.Z_FIXED||y===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(_,h,b,y,T),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(h,_,b,y,T){switch(this.level=h,this.windowBits=_,this.memLevel=b,this.strategy=y,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new r,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=T,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=i.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=i.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l}(Ed)),Ed}var Ib;function YD(){return Ib||(Ib=1,function(e){var t=ee.bufferPolyfill.Buffer,r=ee.requireStreamBrowserify().Transform,i=XD(),a=zi(),s=wf().ok,f=ee.bufferPolyfill.kMaxLength,d="Cannot create final Buffer. It would be larger than 0x"+f.toString(16)+" bytes";i.Z_MIN_WINDOWBITS=8,i.Z_MAX_WINDOWBITS=15,i.Z_DEFAULT_WINDOWBITS=15,i.Z_MIN_CHUNK=64,i.Z_MAX_CHUNK=1/0,i.Z_DEFAULT_CHUNK=16*1024,i.Z_MIN_MEMLEVEL=1,i.Z_MAX_MEMLEVEL=9,i.Z_DEFAULT_MEMLEVEL=8,i.Z_MIN_LEVEL=-1,i.Z_MAX_LEVEL=9,i.Z_DEFAULT_LEVEL=i.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(i),l=0;l<c.length;l++){var h=c[l];h.match(/^Z/)&&Object.defineProperty(e,h,{enumerable:!0,value:i[h],writable:!1})}for(var _={Z_OK:i.Z_OK,Z_STREAM_END:i.Z_STREAM_END,Z_NEED_DICT:i.Z_NEED_DICT,Z_ERRNO:i.Z_ERRNO,Z_STREAM_ERROR:i.Z_STREAM_ERROR,Z_DATA_ERROR:i.Z_DATA_ERROR,Z_MEM_ERROR:i.Z_MEM_ERROR,Z_BUF_ERROR:i.Z_BUF_ERROR,Z_VERSION_ERROR:i.Z_VERSION_ERROR},b=Object.keys(_),y=0;y<b.length;y++){var T=b[y];_[_[T]]=T}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(_),writable:!1}),e.Deflate=I,e.Inflate=v,e.Gzip=w,e.Gunzip=S,e.DeflateRaw=H,e.InflateRaw=Q,e.Unzip=ie,e.createDeflate=function(m){return new I(m)},e.createInflate=function(m){return new v(m)},e.createDeflateRaw=function(m){return new H(m)},e.createInflateRaw=function(m){return new Q(m)},e.createGzip=function(m){return new w(m)},e.createGunzip=function(m){return new S(m)},e.createUnzip=function(m){return new ie(m)},e.deflate=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new I(O),m,P)},e.deflateSync=function(m,O){return E(new I(O),m)},e.gzip=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new w(O),m,P)},e.gzipSync=function(m,O){return E(new w(O),m)},e.deflateRaw=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new H(O),m,P)},e.deflateRawSync=function(m,O){return E(new H(O),m)},e.unzip=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new ie(O),m,P)},e.unzipSync=function(m,O){return E(new ie(O),m)},e.inflate=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new v(O),m,P)},e.inflateSync=function(m,O){return E(new v(O),m)},e.gunzip=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new S(O),m,P)},e.gunzipSync=function(m,O){return E(new S(O),m)},e.inflateRaw=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new Q(O),m,P)},e.inflateRawSync=function(m,O){return E(new Q(O),m)};function k(m,O,P){var Z=[],ae=0;m.on("error",ne),m.on("end",F),m.end(O),X();function X(){for(var x;(x=m.read())!==null;)Z.push(x),ae+=x.length;m.once("readable",X)}function ne(x){m.removeListener("end",F),m.removeListener("readable",X),P(x)}function F(){var x,Y=null;ae>=f?Y=new RangeError(d):x=t.concat(Z,ae),Z=[],m.close(),P(Y,x)}}function E(m,O){if(typeof O=="string"&&(O=t.from(O)),!t.isBuffer(O))throw new TypeError("Not a string or buffer");var P=m._finishFlushFlag;return m._processChunk(O,P)}function I(m){if(!(this instanceof I))return new I(m);le.call(this,m,i.DEFLATE)}function v(m){if(!(this instanceof v))return new v(m);le.call(this,m,i.INFLATE)}function w(m){if(!(this instanceof w))return new w(m);le.call(this,m,i.GZIP)}function S(m){if(!(this instanceof S))return new S(m);le.call(this,m,i.GUNZIP)}function H(m){if(!(this instanceof H))return new H(m);le.call(this,m,i.DEFLATERAW)}function Q(m){if(!(this instanceof Q))return new Q(m);le.call(this,m,i.INFLATERAW)}function ie(m){if(!(this instanceof ie))return new ie(m);le.call(this,m,i.UNZIP)}function he(m){return m===i.Z_NO_FLUSH||m===i.Z_PARTIAL_FLUSH||m===i.Z_SYNC_FLUSH||m===i.Z_FULL_FLUSH||m===i.Z_FINISH||m===i.Z_BLOCK}function le(m,O){var P=this;if(this._opts=m=m||{},this._chunkSize=m.chunkSize||e.Z_DEFAULT_CHUNK,r.call(this,m),m.flush&&!he(m.flush))throw new Error("Invalid flush flag: "+m.flush);if(m.finishFlush&&!he(m.finishFlush))throw new Error("Invalid flush flag: "+m.finishFlush);if(this._flushFlag=m.flush||i.Z_NO_FLUSH,this._finishFlushFlag=typeof m.finishFlush<"u"?m.finishFlush:i.Z_FINISH,m.chunkSize&&(m.chunkSize<e.Z_MIN_CHUNK||m.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+m.chunkSize);if(m.windowBits&&(m.windowBits<e.Z_MIN_WINDOWBITS||m.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+m.windowBits);if(m.level&&(m.level<e.Z_MIN_LEVEL||m.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+m.level);if(m.memLevel&&(m.memLevel<e.Z_MIN_MEMLEVEL||m.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+m.memLevel);if(m.strategy&&m.strategy!=e.Z_FILTERED&&m.strategy!=e.Z_HUFFMAN_ONLY&&m.strategy!=e.Z_RLE&&m.strategy!=e.Z_FIXED&&m.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+m.strategy);if(m.dictionary&&!t.isBuffer(m.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(O);var Z=this;this._hadError=!1,this._handle.onerror=function(ne,F){Ee(Z),Z._hadError=!0;var x=new Error(ne);x.errno=F,x.code=e.codes[F],Z.emit("error",x)};var ae=e.Z_DEFAULT_COMPRESSION;typeof m.level=="number"&&(ae=m.level);var X=e.Z_DEFAULT_STRATEGY;typeof m.strategy=="number"&&(X=m.strategy),this._handle.init(m.windowBits||e.Z_DEFAULT_WINDOWBITS,ae,m.memLevel||e.Z_DEFAULT_MEMLEVEL,X,m.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=ae,this._strategy=X,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!P._handle},configurable:!0,enumerable:!0})}a.inherits(le,r),le.prototype.params=function(m,O,P){if(m<e.Z_MIN_LEVEL||m>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+m);if(O!=e.Z_FILTERED&&O!=e.Z_HUFFMAN_ONLY&&O!=e.Z_RLE&&O!=e.Z_FIXED&&O!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+O);if(this._level!==m||this._strategy!==O){var Z=this;this.flush(i.Z_SYNC_FLUSH,function(){s(Z._handle,"zlib binding closed"),Z._handle.params(m,O),Z._hadError||(Z._level=m,Z._strategy=O,P&&P())})}else ee.dist.process.nextTick(P)},le.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},le.prototype._flush=function(m){this._transform(t.alloc(0),"",m)},le.prototype.flush=function(m,O){var P=this,Z=this._writableState;(typeof m=="function"||m===void 0&&!O)&&(O=m,m=i.Z_FULL_FLUSH),Z.ended?O&&ee.dist.process.nextTick(O):Z.ending?O&&this.once("end",O):Z.needDrain?O&&this.once("drain",function(){return P.flush(m,O)}):(this._flushFlag=m,this.write(t.alloc(0),"",O))},le.prototype.close=function(m){Ee(this,m),ee.dist.process.nextTick(ve,this)};function Ee(m,O){O&&ee.dist.process.nextTick(O),m._handle&&(m._handle.close(),m._handle=null)}function ve(m){m.emit("close")}le.prototype._transform=function(m,O,P){var Z,ae=this._writableState,X=ae.ending||ae.ended,ne=X&&(!m||ae.length===m.length);if(m!==null&&!t.isBuffer(m))return P(new Error("invalid input"));if(!this._handle)return P(new Error("zlib binding closed"));ne?Z=this._finishFlushFlag:(Z=this._flushFlag,m.length>=ae.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),this._processChunk(m,Z,P)},le.prototype._processChunk=function(m,O,P){var Z=m&&m.length,ae=this._chunkSize-this._offset,X=0,ne=this,F=typeof P=="function";if(!F){var x=[],Y=0,B;this.on("error",function(de){B=de}),s(this._handle,"zlib binding closed");do var j=this._handle.writeSync(O,m,X,Z,this._buffer,this._offset,ae);while(!this._hadError&&G(j[0],j[1]));if(this._hadError)throw B;if(Y>=f)throw Ee(this),new RangeError(d);var $=t.concat(x,Y);return Ee(this),$}s(this._handle,"zlib binding closed");var U=this._handle.write(O,m,X,Z,this._buffer,this._offset,ae);U.buffer=m,U.callback=G;function G(de,oe){if(this&&(this.buffer=null,this.callback=null),!ne._hadError){var ue=ae-oe;if(s(ue>=0,"have should not go down"),ue>0){var Se=ne._buffer.slice(ne._offset,ne._offset+ue);ne._offset+=ue,F?ne.push(Se):(x.push(Se),Y+=Se.length)}if((oe===0||ne._offset>=ne._chunkSize)&&(ae=ne._chunkSize,ne._offset=0,ne._buffer=t.allocUnsafe(ne._chunkSize)),oe===0){if(X+=Z-de,Z=de,!F)return!0;var Be=ne._handle.write(O,m,X,Z,ne._buffer,ne._offset,ne._chunkSize);Be.callback=G,Be.buffer=m;return}if(!F)return!1;P()}}},a.inherits(I,le),a.inherits(v,le),a.inherits(w,le),a.inherits(S,le),a.inherits(H,le),a.inherits(Q,le),a.inherits(ie,le)}(wd)),wd}Object.defineProperty(Zi,"__esModule",{value:!0});Zi.InvalidStatusCodeError=Zi.InvalidCertError=void 0;const Qw=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class oh extends Error{constructor(t,r){super(t),this.fingerprint256=r}}Zi.InvalidCertError=oh;class fp extends Error{constructor(t){super(`Request Failed. Status Code: ${t}`),this.statusCode=t}}Zi.InvalidStatusCodeError=fp;function eE(e,t){if(!t||t==="text"||t==="json")try{let r=new TextDecoder("utf8",{fatal:!0}).decode(e);if(t==="text")return r;try{return JSON.parse(r)}catch(i){if(t==="json")throw i;return r}}catch(r){if(t==="text"||t==="json")throw r}return e}let Ob={};function ah(e,t){var b;let r={...Qw,...t};const i=Jw(),a=qD(),s=YD(),{promisify:f}=zi(),{resolve:d}=sp(),c=!!/^https/.test(e);let l={method:r.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const h=y=>y.replace(/:| /g,"").toLowerCase();if(r.keepAlive){const y={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},T=[c,c&&((b=r.sslPinnedCertificates)==null?void 0:b.map(k=>h(k)).sort())].join();l.agent=Ob[T]||(Ob[T]=new(c?a:i).Agent(y))}r.type==="json"&&(l.headers["Content-Type"]="application/json"),r.data&&(r.method||(l.method="POST"),l.body=r.type==="json"?JSON.stringify(r.data):r.data),l.headers={...l.headers,...r.headers},r.sslAllowSelfSigned&&(l.rejectUnauthorized=!1);const _=async y=>{const T=y.statusCode;if(r.redirect&&300<=T&&T<400&&y.headers.location){if(r._redirectCount==10)throw new Error("Request failed. Too much redirects.");return r._redirectCount+=1,await ah(d(e,y.headers.location),r)}if(r.expectStatusCode&&T!==r.expectStatusCode)throw y.resume(),new fp(T);let k=[];for await(const w of y)k.push(w);let E=ee.dist.Buffer.concat(k);const I=y.headers["content-encoding"];I==="br"&&(E=await f(s.brotliDecompress)(E)),(I==="gzip"||I==="deflate")&&(E=await f(s.unzip)(E));const v=eE(E,r.type);return r.full?{headers:y.headers,status:T,body:v}:v};return new Promise((y,T)=>{var w;const k=async S=>{if(S&&S.code==="DEPTH_ZERO_SELF_SIGNED_CERT")try{await ah(e,{...r,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(H){H&&H.fingerprint256&&(S=new oh(`Self-signed SSL certificate: ${H.fingerprint256}`,H.fingerprint256))}T(S)},E=(c?a:i).request(e,l,S=>{S.on("error",k),(async()=>{try{y(await _(S))}catch(H){T(H)}})()});E.on("error",k);const I=(w=r.sslPinnedCertificates)==null?void 0:w.map(S=>h(S)),v=S=>{var Q;const H=h(((Q=S.getPeerCertificate())==null?void 0:Q.fingerprint256)||"");if(!(!H&&S.isSessionReused())&&!I.includes(H))return E.emit("error",new oh(`Invalid SSL certificate: ${H} Expected: ${I}`,H)),E.abort()};r.sslPinnedCertificates&&E.on("socket",S=>{S.listeners("secureConnect").map(Q=>(Q.name||"").replace("bound ","")).includes("mfetchSecureConnect")||S.on("secureConnect",v.bind(null,S))}),r.keepAlive&&E.setNoDelay(!0),l.body&&E.write(l.body),E.end()})}const QD=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map(e=>e.toLowerCase())),eM=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map(e=>e.toLowerCase()));async function tM(e,t){let r={...Qw,...t};const i=new Headers;r.type==="json"&&i.set("Content-Type","application/json");let a=new URL(e);if(a.username){const c=btoa(`${a.username}:${a.password}`);i.set("Authorization",`Basic ${c}`),a.username="",a.password=""}e=""+a;for(let c in r.headers){const l=c.toLowerCase();(QD.has(l)||r.cors&&!eM.has(l))&&i.set(c,r.headers[c])}let s={headers:i,redirect:r.redirect?"follow":"manual"};r.referrer||(s.referrerPolicy="no-referrer"),r.cors&&(s.mode="cors"),r.data&&(r.method||(s.method="POST"),s.body=r.type==="json"?JSON.stringify(r.data):r.data);const f=await fetch(e,s);if(r.expectStatusCode&&f.status!==r.expectStatusCode)throw new fp(f.status);const d=eE(new Uint8Array(await f.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(f.headers.entries()),status:f.status,body:d}:d}const rM=!!(typeof ee.dist.process=="object"&&ee.dist.process.versions&&ee.dist.process.versions.node&&ee.dist.process.versions.v8);function nM(e,t){return(rM?ah:tM)(e,t)}Zi.default=nM;Object.defineProperty(xo,"__esModule",{value:!0});xo.getProvider=xo.fetchFromProvider=void 0;const iM=Zi,oM=async(e,t)=>(await(0,iM.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result;xo.fetchFromProvider=oM;const aM=e=>{var t;if(typeof e=="string")return e;if(((t=e==null?void 0:e.connection)==null?void 0:t.url)!==void 0)return e.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")};xo.getProvider=aM;(function(e){var t=ee.commonjsGlobal&&ee.commonjsGlobal.__createBinding||(Object.create?function(a,s,f,d){d===void 0&&(d=f);var c=Object.getOwnPropertyDescriptor(s,f);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(a,d,c)}:function(a,s,f,d){d===void 0&&(d=f),a[d]=s[f]}),r=ee.commonjsGlobal&&ee.commonjsGlobal.__exportStar||function(a,s){for(var f in a)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&t(s,a,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.toAscii=e.stripHexPrefix=e.padToEven=e.isHexString=e.isHexPrefixed=e.getKeys=e.getBinarySize=e.fromUtf8=e.fromAscii=e.arrayContainsArray=void 0,r(nu,e),r(du,e),r(rp,e),r(Ga,e),r(pu,e),r(vr,e),r(to,e),r(op,e),r(zw,e),r(_u,e);var i=jt;Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),r(bu,e),r(xo,e)})(rx);var tE={exports:{}};(function(e){(function(t,r){e.exports?e.exports=r():t.log=r()})(ee.commonjsGlobal,function(){var t=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],s={},f=null;function d(k,E){var I=k[E];if(typeof I.bind=="function")return I.bind(k);try{return Function.prototype.bind.call(I,k)}catch{return function(){return Function.prototype.apply.apply(I,[k,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(k){return k==="debug"&&(k="log"),typeof console===r?!1:k==="trace"&&i?c:console[k]!==void 0?d(console,k):console.log!==void 0?d(console,"log"):t}function h(){for(var k=this.getLevel(),E=0;E<a.length;E++){var I=a[E];this[I]=E<k?t:this.methodFactory(I,k,this.name)}if(this.log=this.debug,typeof console===r&&k<this.levels.SILENT)return"No console available for logging"}function _(k){return function(){typeof console!==r&&(h.call(this),this[k].apply(this,arguments))}}function b(k,E,I){return l(k)||_.apply(this,arguments)}function y(k,E){var I=this,v,w,S,H="loglevel";typeof k=="string"?H+=":"+k:typeof k=="symbol"&&(H=void 0);function Q(ve){var m=(a[ve]||"silent").toUpperCase();if(!(typeof window===r||!H)){try{window.localStorage[H]=m;return}catch{}try{window.document.cookie=encodeURIComponent(H)+"="+m+";"}catch{}}}function ie(){var ve;if(!(typeof window===r||!H)){try{ve=window.localStorage[H]}catch{}if(typeof ve===r)try{var m=window.document.cookie,O=encodeURIComponent(H),P=m.indexOf(O+"=");P!==-1&&(ve=/^([^;]+)/.exec(m.slice(P+O.length+1))[1])}catch{}return I.levels[ve]===void 0&&(ve=void 0),ve}}function he(){if(!(typeof window===r||!H)){try{window.localStorage.removeItem(H)}catch{}try{window.document.cookie=encodeURIComponent(H)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function le(ve){var m=ve;if(typeof m=="string"&&I.levels[m.toUpperCase()]!==void 0&&(m=I.levels[m.toUpperCase()]),typeof m=="number"&&m>=0&&m<=I.levels.SILENT)return m;throw new TypeError("log.setLevel() called with invalid level: "+ve)}I.name=k,I.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},I.methodFactory=E||b,I.getLevel=function(){return S??w??v},I.setLevel=function(ve,m){return S=le(ve),m!==!1&&Q(S),h.call(I)},I.setDefaultLevel=function(ve){w=le(ve),ie()||I.setLevel(ve,!1)},I.resetLevel=function(){S=null,he(),h.call(I)},I.enableAll=function(ve){I.setLevel(I.levels.TRACE,ve)},I.disableAll=function(ve){I.setLevel(I.levels.SILENT,ve)},I.rebuild=function(){if(f!==I&&(v=le(f.getLevel())),h.call(I),f===I)for(var ve in s)s[ve].rebuild()},v=le(f?f.getLevel():"WARN");var Ee=ie();Ee!=null&&(S=le(Ee)),h.call(I)}f=new y,f.getLogger=function(E){if(typeof E!="symbol"&&typeof E!="string"||E==="")throw new TypeError("You must supply a name when creating a logger.");var I=s[E];return I||(I=s[E]=new y(E,f.methodFactory)),I};var T=typeof window!==r?window.log:void 0;return f.noConflict=function(){return typeof window!==r&&window.log===f&&(window.log=T),f},f.getLoggers=function(){return s},f.default=f,f})})(tE);var rE=tE.exports;const Pf=ee.getDefaultExportFromCjs(rE);var Cf={exports:{}};Cf.exports;(function(e,t){var r=200,i="__lodash_hash_undefined__",a=800,s=16,f=9007199254740991,d="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",h="[object Boolean]",_="[object Date]",b="[object Error]",y="[object Function]",T="[object GeneratorFunction]",k="[object Map]",E="[object Number]",I="[object Null]",v="[object Object]",w="[object Proxy]",S="[object RegExp]",H="[object Set]",Q="[object String]",ie="[object Undefined]",he="[object WeakMap]",le="[object ArrayBuffer]",Ee="[object DataView]",ve="[object Float32Array]",m="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",Z="[object Int32Array]",ae="[object Uint8Array]",X="[object Uint8ClampedArray]",ne="[object Uint16Array]",F="[object Uint32Array]",x=/[\\^$.*+?()[\]{}|]/g,Y=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,j={};j[ve]=j[m]=j[O]=j[P]=j[Z]=j[ae]=j[X]=j[ne]=j[F]=!0,j[d]=j[c]=j[le]=j[h]=j[Ee]=j[_]=j[b]=j[y]=j[k]=j[E]=j[v]=j[S]=j[H]=j[Q]=j[he]=!1;var $=typeof ee.commonjsGlobal=="object"&&ee.commonjsGlobal&&ee.commonjsGlobal.Object===Object&&ee.commonjsGlobal,U=typeof self=="object"&&self&&self.Object===Object&&self,G=$||U||Function("return this")(),de=t&&!t.nodeType&&t,oe=de&&!0&&e&&!e.nodeType&&e,ue=oe&&oe.exports===de,Se=ue&&$.process,Be=function(){try{var te=oe&&oe.require&&oe.require("util").types;return te||Se&&Se.binding&&Se.binding("util")}catch{}}(),Me=Be&&Be.isTypedArray;function z(te,ye,Le){switch(Le.length){case 0:return te.call(ye);case 1:return te.call(ye,Le[0]);case 2:return te.call(ye,Le[0],Le[1]);case 3:return te.call(ye,Le[0],Le[1],Le[2])}return te.apply(ye,Le)}function J(te,ye){for(var Le=-1,nt=Array(te);++Le<te;)nt[Le]=ye(Le);return nt}function ge(te){return function(ye){return te(ye)}}function Ne(te,ye){return te==null?void 0:te[ye]}function Te(te,ye){return function(Le){return te(ye(Le))}}var je=Array.prototype,me=Function.prototype,Ye=Object.prototype,et=G["__core-js_shared__"],re=me.toString,xe=Ye.hasOwnProperty,M=function(){var te=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),ce=Ye.toString,De=re.call(Object),Ve=RegExp("^"+re.call(xe).replace(x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ue?G.Buffer:void 0,ke=G.Symbol,Xe=G.Uint8Array;Ue&&Ue.allocUnsafe;var D=Te(Object.getPrototypeOf,Object),Re=Object.create,$e=Ye.propertyIsEnumerable,qe=je.splice,C=ke?ke.toStringTag:void 0,K=function(){try{var te=Wo(Object,"defineProperty");return te({},"",{}),te}catch{}}(),A=Ue?Ue.isBuffer:void 0,Oe=Math.max,Ke=Date.now,p=Wo(G,"Map"),_e=Wo(Object,"create"),Ie=function(){function te(){}return function(ye){if(!Dn(ye))return{};if(Re)return Re(ye);te.prototype=ye;var Le=new te;return te.prototype=void 0,Le}}();function L(te){var ye=-1,Le=te==null?0:te.length;for(this.clear();++ye<Le;){var nt=te[ye];this.set(nt[0],nt[1])}}function fe(){this.__data__=_e?_e(null):{},this.size=0}function Ae(te){var ye=this.has(te)&&delete this.__data__[te];return this.size-=ye?1:0,ye}function Je(te){var ye=this.__data__;if(_e){var Le=ye[te];return Le===i?void 0:Le}return xe.call(ye,te)?ye[te]:void 0}function N(te){var ye=this.__data__;return _e?ye[te]!==void 0:xe.call(ye,te)}function W(te,ye){var Le=this.__data__;return this.size+=this.has(te)?0:1,Le[te]=_e&&ye===void 0?i:ye,this}L.prototype.clear=fe,L.prototype.delete=Ae,L.prototype.get=Je,L.prototype.has=N,L.prototype.set=W;function Ce(te){var ye=-1,Le=te==null?0:te.length;for(this.clear();++ye<Le;){var nt=te[ye];this.set(nt[0],nt[1])}}function ze(){this.__data__=[],this.size=0}function Ge(te){var ye=this.__data__,Le=bn(ye,te);if(Le<0)return!1;var nt=ye.length-1;return Le==nt?ye.pop():qe.call(ye,Le,1),--this.size,!0}function rt(te){var ye=this.__data__,Le=bn(ye,te);return Le<0?void 0:ye[Le][1]}function ot(te){return bn(this.__data__,te)>-1}function bt(te,ye){var Le=this.__data__,nt=bn(Le,te);return nt<0?(++this.size,Le.push([te,ye])):Le[nt][1]=ye,this}Ce.prototype.clear=ze,Ce.prototype.delete=Ge,Ce.prototype.get=rt,Ce.prototype.has=ot,Ce.prototype.set=bt;function ht(te){var ye=-1,Le=te==null?0:te.length;for(this.clear();++ye<Le;){var nt=te[ye];this.set(nt[0],nt[1])}}function ar(){this.size=0,this.__data__={hash:new L,map:new(p||Ce),string:new L}}function ur(te){var ye=Pi(this,te).delete(te);return this.size-=ye?1:0,ye}function wt(te){return Pi(this,te).get(te)}function Dt(te){return Pi(this,te).has(te)}function St(te,ye){var Le=Pi(this,te),nt=Le.size;return Le.set(te,ye),this.size+=Le.size==nt?0:1,this}ht.prototype.clear=ar,ht.prototype.delete=ur,ht.prototype.get=wt,ht.prototype.has=Dt,ht.prototype.set=St;function Tt(te){var ye=this.__data__=new Ce(te);this.size=ye.size}function qt(){this.__data__=new Ce,this.size=0}function tr(te){var ye=this.__data__,Le=ye.delete(te);return this.size=ye.size,Le}function Gt(te){return this.__data__.get(te)}function Vt(te){return this.__data__.has(te)}function $n(te,ye){var Le=this.__data__;if(Le instanceof Ce){var nt=Le.__data__;if(!p||nt.length<r-1)return nt.push([te,ye]),this.size=++Le.size,this;Le=this.__data__=new ht(nt)}return Le.set(te,ye),this.size=Le.size,this}Tt.prototype.clear=qt,Tt.prototype.delete=tr,Tt.prototype.get=Gt,Tt.prototype.has=Vt,Tt.prototype.set=$n;function yn(te,ye){var Le=Zo(te),nt=!Le&&Vo(te),mt=!Le&&!nt&&fs(te),It=!Le&&!nt&&!mt&&cs(te),Mt=Le||nt||mt||It,ut=Mt?J(te.length,String):[],Nt=ut.length;for(var rr in te)Mt&&(rr=="length"||mt&&(rr=="offset"||rr=="parent")||It&&(rr=="buffer"||rr=="byteLength"||rr=="byteOffset")||no(rr,Nt))||ut.push(rr);return ut}function xn(te,ye,Le){(Le!==void 0&&!Ci(te[ye],Le)||Le===void 0&&!(ye in te))&&Wr(te,ye,Le)}function _n(te,ye,Le){var nt=te[ye];(!(xe.call(te,ye)&&Ci(nt,Le))||Le===void 0&&!(ye in te))&&Wr(te,ye,Le)}function bn(te,ye){for(var Le=te.length;Le--;)if(Ci(te[Le][0],ye))return Le;return-1}function Wr(te,ye,Le){ye=="__proto__"&&K?K(te,ye,{configurable:!0,enumerable:!0,value:Le,writable:!0}):te[ye]=Le}var Ti=ro();function mn(te){return te==null?te===void 0?ie:I:C&&C in Object(te)?Qa(te):rs(te)}function ri(te){return Mn(te)&&mn(te)==d}function ni(te){if(!Dn(te)||zo(te))return!1;var ye=Jo(te)?Ve:Y;return ye.test(as(te))}function ii(te){return Mn(te)&&us(te.length)&&!!j[mn(te)]}function oi(te){if(!Dn(te))return ai(te);var ye=io(te),Le=[];for(var nt in te)nt=="constructor"&&(ye||!xe.call(te,nt))||Le.push(nt);return Le}function Za(te,ye,Le,nt,mt){te!==ye&&Ti(ye,function(It,Mt){if(mt||(mt=new Tt),Dn(It))Su(te,ye,Mt,Le,Za,nt,mt);else{var ut=nt?nt(Go(te,Mt),It,Mt+"",te,ye,mt):void 0;ut===void 0&&(ut=It),xn(te,Mt,ut)}},ls)}function Su(te,ye,Le,nt,mt,It,Mt){var ut=Go(te,Le),Nt=Go(ye,Le),rr=Mt.get(Nt);if(rr){xn(te,Le,rr);return}var hr=It?It(ut,Nt,Le+"",te,ye,Mt):void 0,Fn=hr===void 0;if(Fn){var pr=Zo(Nt),oo=!pr&&fs(Nt),Xo=!pr&&!oo&&cs(Nt);hr=Nt,pr||oo||Xo?Zo(ut)?hr=ut:ss(ut)?hr=Ho(ut):oo?(Fn=!1,hr=Ka(Nt)):Xo?(Fn=!1,hr=Xa(Nt)):hr=[]:Tu(Nt)||Vo(Nt)?(hr=ut,Vo(ut)?hr=Pu(ut):(!Dn(ut)||Jo(ut))&&(hr=es(Nt))):Fn=!1}Fn&&(Mt.set(Nt,hr),mt(hr,Nt,nt,It,Mt),Mt.delete(Nt)),xn(te,Le,hr)}function Au(te,ye){return is(ns(te,ye,Pt),te+"")}var Ru=K?function(te,ye){return K(te,"toString",{configurable:!0,enumerable:!1,value:Bt(ye),writable:!0})}:Pt;function Ka(te,ye){return te.slice()}function Ja(te){var ye=new te.constructor(te.byteLength);return new Xe(ye).set(new Xe(te)),ye}function Xa(te,ye){var Le=Ja(te.buffer);return new te.constructor(Le,te.byteOffset,te.length)}function Ho(te,ye){var Le=-1,nt=te.length;for(ye||(ye=Array(nt));++Le<nt;)ye[Le]=te[Le];return ye}function Iu(te,ye,Le,nt){var mt=!Le;Le||(Le={});for(var It=-1,Mt=ye.length;++It<Mt;){var ut=ye[It],Nt=void 0;Nt===void 0&&(Nt=te[ut]),mt?Wr(Le,ut,Nt):_n(Le,ut,Nt)}return Le}function Ya(te){return Au(function(ye,Le){var nt=-1,mt=Le.length,It=mt>1?Le[mt-1]:void 0,Mt=mt>2?Le[2]:void 0;for(It=te.length>3&&typeof It=="function"?(mt--,It):void 0,Mt&&Ou(Le[0],Le[1],Mt)&&(It=mt<3?void 0:It,mt=1),ye=Object(ye);++nt<mt;){var ut=Le[nt];ut&&te(ye,ut,nt,It)}return ye})}function ro(te){return function(ye,Le,nt){for(var mt=-1,It=Object(ye),Mt=nt(ye),ut=Mt.length;ut--;){var Nt=Mt[++mt];if(Le(It[Nt],Nt,It)===!1)break}return ye}}function Pi(te,ye){var Le=te.__data__;return ts(ye)?Le[typeof ye=="string"?"string":"hash"]:Le.map}function Wo(te,ye){var Le=Ne(te,ye);return ni(Le)?Le:void 0}function Qa(te){var ye=xe.call(te,C),Le=te[C];try{te[C]=void 0;var nt=!0}catch{}var mt=ce.call(te);return nt&&(ye?te[C]=Le:delete te[C]),mt}function es(te){return typeof te.constructor=="function"&&!io(te)?Ie(D(te)):{}}function no(te,ye){var Le=typeof te;return ye=ye??f,!!ye&&(Le=="number"||Le!="symbol"&&B.test(te))&&te>-1&&te%1==0&&te<ye}function Ou(te,ye,Le){if(!Dn(Le))return!1;var nt=typeof ye;return(nt=="number"?Ko(Le)&&no(ye,Le.length):nt=="string"&&ye in Le)?Ci(Le[ye],te):!1}function ts(te){var ye=typeof te;return ye=="string"||ye=="number"||ye=="symbol"||ye=="boolean"?te!=="__proto__":te===null}function zo(te){return!!M&&M in te}function io(te){var ye=te&&te.constructor,Le=typeof ye=="function"&&ye.prototype||Ye;return te===Le}function ai(te){var ye=[];if(te!=null)for(var Le in Object(te))ye.push(Le);return ye}function rs(te){return ce.call(te)}function ns(te,ye,Le){return ye=Oe(ye===void 0?te.length-1:ye,0),function(){for(var nt=arguments,mt=-1,It=Oe(nt.length-ye,0),Mt=Array(It);++mt<It;)Mt[mt]=nt[ye+mt];mt=-1;for(var ut=Array(ye+1);++mt<ye;)ut[mt]=nt[mt];return ut[ye]=Le(Mt),z(te,this,ut)}}function Go(te,ye){if(!(ye==="constructor"&&typeof te[ye]=="function")&&ye!="__proto__")return te[ye]}var is=os(Ru);function os(te){var ye=0,Le=0;return function(){var nt=Ke(),mt=s-(nt-Le);if(Le=nt,mt>0){if(++ye>=a)return arguments[0]}else ye=0;return te.apply(void 0,arguments)}}function as(te){if(te!=null){try{return re.call(te)}catch{}try{return te+""}catch{}}return""}function Ci(te,ye){return te===ye||te!==te&&ye!==ye}var Vo=ri(function(){return arguments}())?ri:function(te){return Mn(te)&&xe.call(te,"callee")&&!$e.call(te,"callee")},Zo=Array.isArray;function Ko(te){return te!=null&&us(te.length)&&!Jo(te)}function ss(te){return Mn(te)&&Ko(te)}var fs=A||Lu;function Jo(te){if(!Dn(te))return!1;var ye=mn(te);return ye==y||ye==T||ye==l||ye==w}function us(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=f}function Dn(te){var ye=typeof te;return te!=null&&(ye=="object"||ye=="function")}function Mn(te){return te!=null&&typeof te=="object"}function Tu(te){if(!Mn(te)||mn(te)!=v)return!1;var ye=D(te);if(ye===null)return!0;var Le=xe.call(ye,"constructor")&&ye.constructor;return typeof Le=="function"&&Le instanceof Le&&re.call(Le)==De}var cs=Me?ge(Me):ii;function Pu(te){return Iu(te,ls(te))}function ls(te){return Ko(te)?yn(te):oi(te)}var Cu=Ya(function(te,ye,Le){Za(te,ye,Le)});function Bt(te){return function(){return te}}function Pt(te){return te}function Lu(){return!1}e.exports=Cu})(Cf,Cf.exports);Cf.exports;const sM=Pf.getLogger("http-helpers");sM.setLevel(rE.levels.INFO);var Lf={exports:{}};/**
76
+ `+K.prev}function qe(C,K){var A=G(C),Te=[];if(A){Te.length=C.length;for(var Ke=0;Ke<C.length;Ke++)Te[Ke]=Ne(C,Ke)?K(C[Ke],C):""}var p=typeof m=="function"?m(C):[],_e;if(P){_e={};for(var Ie=0;Ie<p.length;Ie++)_e["$"+p[Ie]]=p[Ie]}for(var L in C)Ne(C,L)&&(A&&String(Number(L))===L&&L<C.length||P&&_e["$"+L]instanceof Symbol||(Q.call(/[^\w$]/,L)?Te.push(K(L,C)+": "+K(C[L],C)):Te.push(L+": "+K(C[L],C))));if(typeof m=="function")for(var ue=0;ue<p.length;ue++)ae.call(C,p[ue])&&Te.push("["+K(p[ue])+"]: "+K(C[p[ue]],C));return Te}return gd}var yd,lb;function FD(){if(lb)return yd;lb=1;var e=mf(),t=Ri(),r=function(d,c,l){for(var h=d,g;(g=h.next)!=null;h=g)if(g.key===c)return h.next=g.next,l||(g.next=d.next,d.next=g),g},i=function(d,c){if(d){var l=r(d,c);return l&&l.value}},a=function(d,c,l){var h=r(d,c);h?h.value=l:d.next={key:c,next:d.next,value:l}},s=function(d,c){return d?!!r(d,c):!1},u=function(d,c){if(d)return r(d,c,!0)};return yd=function(){var c,l={assert:function(h){if(!l.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){var g=c&&c.next,b=u(c,h);return b&&g&&g===b&&(c=void 0),!!b},get:function(h){return i(c,h)},has:function(h){return s(c,h)},set:function(h,g){c||(c={next:void 0}),a(c,h,g)}};return l},yd}var _d,db;function nE(){if(db)return _d;db=1;var e=Da(),t=Ma,r=mf(),i=Ri(),a=e("%Map%",!0),s=t("Map.prototype.get",!0),u=t("Map.prototype.set",!0),d=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return _d=!!a&&function(){var g,b={assert:function(_){if(!b.has(_))throw new i("Side channel does not contain "+r(_))},delete:function(_){if(g){var T=c(g,_);return l(g)===0&&(g=void 0),T}return!1},get:function(_){if(g)return s(g,_)},has:function(_){return g?d(g,_):!1},set:function(_,T){g||(g=new a),u(g,_,T)}};return b},_d}var bd,hb;function jD(){if(hb)return bd;hb=1;var e=Da(),t=Ma,r=mf(),i=nE(),a=Ri(),s=e("%WeakMap%",!0),u=t("WeakMap.prototype.get",!0),d=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return bd=s?function(){var g,b,_={assert:function(T){if(!_.has(T))throw new a("Side channel does not contain "+r(T))},delete:function(T){if(s&&T&&(typeof T=="object"||typeof T=="function")){if(g)return l(g,T)}else if(i&&b)return b.delete(T);return!1},get:function(T){return s&&T&&(typeof T=="object"||typeof T=="function")&&g?u(g,T):b&&b.get(T)},has:function(T){return s&&T&&(typeof T=="object"||typeof T=="function")&&g?c(g,T):!!b&&b.has(T)},set:function(T,k){s&&T&&(typeof T=="object"||typeof T=="function")?(g||(g=new s),d(g,T,k)):i&&(b||(b=i()),b.set(T,k))}};return _}:i,bd}var md,pb;function kD(){if(pb)return md;pb=1;var e=Ri(),t=mf(),r=FD(),i=nE(),a=jD(),s=a||i||r;return md=function(){var d,c={assert:function(l){if(!c.has(l))throw new e("Side channel does not contain "+t(l))},delete:function(l){return!!d&&d.delete(l)},get:function(l){return d&&d.get(l)},has:function(l){return!!d&&d.has(l)},set:function(l,h){d||(d=s()),d.set(l,h)}};return c},md}var vd,gb;function lp(){if(gb)return vd;gb=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return vd={default:r.RFC3986,formatters:{RFC1738:function(i){return e.call(i,t,"+")},RFC3986:function(i){return String(i)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},vd}var wd,yb;function iE(){if(yb)return wd;yb=1;var e=lp(),t=Object.prototype.hasOwnProperty,r=Array.isArray,i=function(){for(var E=[],R=0;R<256;++R)E.push("%"+((R<16?"0":"")+R.toString(16)).toUpperCase());return E}(),a=function(R){for(;R.length>1;){var v=R.pop(),w=v.obj[v.prop];if(r(w)){for(var S=[],H=0;H<w.length;++H)typeof w[H]<"u"&&S.push(w[H]);v.obj[v.prop]=S}}},s=function(R,v){for(var w=v&&v.plainObjects?{__proto__:null}:{},S=0;S<R.length;++S)typeof R[S]<"u"&&(w[S]=R[S]);return w},u=function E(R,v,w){if(!v)return R;if(typeof v!="object"&&typeof v!="function"){if(r(R))R.push(v);else if(R&&typeof R=="object")(w&&(w.plainObjects||w.allowPrototypes)||!t.call(Object.prototype,v))&&(R[v]=!0);else return[R,v];return R}if(!R||typeof R!="object")return[R].concat(v);var S=R;return r(R)&&!r(v)&&(S=s(R,w)),r(R)&&r(v)?(v.forEach(function(H,Q){if(t.call(R,Q)){var ie=R[Q];ie&&typeof ie=="object"&&H&&typeof H=="object"?R[Q]=E(ie,H,w):R.push(H)}else R[Q]=H}),R):Object.keys(v).reduce(function(H,Q){var ie=v[Q];return t.call(H,Q)?H[Q]=E(H[Q],ie,w):H[Q]=ie,H},S)},d=function(R,v){return Object.keys(v).reduce(function(w,S){return w[S]=v[S],w},R)},c=function(E,R,v){var w=E.replace(/\+/g," ");if(v==="iso-8859-1")return w.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(w)}catch{return w}},l=1024,h=function(R,v,w,S,H){if(R.length===0)return R;var Q=R;if(typeof R=="symbol"?Q=Symbol.prototype.toString.call(R):typeof R!="string"&&(Q=String(R)),w==="iso-8859-1")return escape(Q).replace(/%u[0-9a-f]{4}/gi,function(O){return"%26%23"+parseInt(O.slice(2),16)+"%3B"});for(var ie="",he=0;he<Q.length;he+=l){for(var le=Q.length>=l?Q.slice(he,he+l):Q,Ee=[],ve=0;ve<le.length;++ve){var m=le.charCodeAt(ve);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||H===e.RFC1738&&(m===40||m===41)){Ee[Ee.length]=le.charAt(ve);continue}if(m<128){Ee[Ee.length]=i[m];continue}if(m<2048){Ee[Ee.length]=i[192|m>>6]+i[128|m&63];continue}if(m<55296||m>=57344){Ee[Ee.length]=i[224|m>>12]+i[128|m>>6&63]+i[128|m&63];continue}ve+=1,m=65536+((m&1023)<<10|le.charCodeAt(ve)&1023),Ee[Ee.length]=i[240|m>>18]+i[128|m>>12&63]+i[128|m>>6&63]+i[128|m&63]}ie+=Ee.join("")}return ie},g=function(R){for(var v=[{obj:{o:R},prop:"o"}],w=[],S=0;S<v.length;++S)for(var H=v[S],Q=H.obj[H.prop],ie=Object.keys(Q),he=0;he<ie.length;++he){var le=ie[he],Ee=Q[le];typeof Ee=="object"&&Ee!==null&&w.indexOf(Ee)===-1&&(v.push({obj:Q,prop:le}),w.push(Ee))}return a(v),R},b=function(R){return Object.prototype.toString.call(R)==="[object RegExp]"},_=function(R){return!R||typeof R!="object"?!1:!!(R.constructor&&R.constructor.isBuffer&&R.constructor.isBuffer(R))},T=function(R,v){return[].concat(R,v)},k=function(R,v){if(r(R)){for(var w=[],S=0;S<R.length;S+=1)w.push(v(R[S]));return w}return v(R)};return wd={arrayToObject:s,assign:d,combine:T,compact:g,decode:c,encode:h,isBuffer:_,isRegExp:b,maybeMap:k,merge:u},wd}var Ed,_b;function UD(){if(_b)return Ed;_b=1;var e=kD(),t=iE(),r=lp(),i=Object.prototype.hasOwnProperty,a={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,R){return E+"["+R+"]"},repeat:function(E){return E}},s=Array.isArray,u=Array.prototype.push,d=function(k,E){u.apply(k,s(E)?E:[E])},c=Date.prototype.toISOString,l=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:r.formatters[l],indices:!1,serializeDate:function(E){return c.call(E)},skipNulls:!1,strictNullHandling:!1},g=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},b={},_=function k(E,R,v,w,S,H,Q,ie,he,le,Ee,ve,m,O,P,Z,ae,X){for(var ne=E,F=X,x=0,Y=!1;(F=F.get(b))!==void 0&&!Y;){var B=F.get(E);if(x+=1,typeof B<"u"){if(B===x)throw new RangeError("Cyclic object value");Y=!0}typeof F.get(b)>"u"&&(x=0)}if(typeof le=="function"?ne=le(R,ne):ne instanceof Date?ne=m(ne):v==="comma"&&s(ne)&&(ne=t.maybeMap(ne,function(ge){return ge instanceof Date?m(ge):ge})),ne===null){if(H)return he&&!Z?he(R,h.encoder,ae,"key",O):R;ne=""}if(g(ne)||t.isBuffer(ne)){if(he){var j=Z?R:he(R,h.encoder,ae,"key",O);return[P(j)+"="+P(he(ne,h.encoder,ae,"value",O))]}return[P(R)+"="+P(String(ne))]}var $=[];if(typeof ne>"u")return $;var U;if(v==="comma"&&s(ne))Z&&he&&(ne=t.maybeMap(ne,he)),U=[{value:ne.length>0?ne.join(",")||null:void 0}];else if(s(le))U=le;else{var G=Object.keys(ne);U=Ee?G.sort(Ee):G}var de=ie?String(R).replace(/\./g,"%2E"):String(R),oe=w&&s(ne)&&ne.length===1?de+"[]":de;if(S&&s(ne)&&ne.length===0)return oe+"[]";for(var fe=0;fe<U.length;++fe){var Se=U[fe],Be=typeof Se=="object"&&Se&&typeof Se.value<"u"?Se.value:ne[Se];if(!(Q&&Be===null)){var Me=ve&&ie?String(Se).replace(/\./g,"%2E"):String(Se),z=s(ne)?typeof v=="function"?v(oe,Me):oe:oe+(ve?"."+Me:"["+Me+"]");X.set(E,x);var J=e();J.set(b,X),d($,k(Be,z,v,w,S,H,Q,ie,v==="comma"&&Z&&s(ne)?null:he,le,Ee,ve,m,O,P,Z,ae,J))}}return $},T=function(E){if(!E)return h;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.encodeDotInKeys<"u"&&typeof E.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var R=E.charset||h.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=r.default;if(typeof E.format<"u"){if(!i.call(r.formatters,E.format))throw new TypeError("Unknown format option provided.");v=E.format}var w=r.formatters[v],S=h.filter;(typeof E.filter=="function"||s(E.filter))&&(S=E.filter);var H;if(E.arrayFormat in a?H=E.arrayFormat:"indices"in E?H=E.indices?"indices":"repeat":H=h.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var Q=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:h.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:h.addQueryPrefix,allowDots:Q,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:H,charset:R,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?h.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:h.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:h.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:h.encodeValuesOnly,filter:S,format:v,formatter:w,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:h.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:h.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:h.strictNullHandling}};return Ed=function(k,E){var R=k,v=T(E),w,S;typeof v.filter=="function"?(S=v.filter,R=S("",R)):s(v.filter)&&(S=v.filter,w=S);var H=[];if(typeof R!="object"||R===null)return"";var Q=a[v.arrayFormat],ie=Q==="comma"&&v.commaRoundTrip;w||(w=Object.keys(R)),v.sort&&w.sort(v.sort);for(var he=e(),le=0;le<w.length;++le){var Ee=w[le],ve=R[Ee];v.skipNulls&&ve===null||d(H,_(ve,Ee,Q,ie,v.allowEmptyArrays,v.strictNullHandling,v.skipNulls,v.encodeDotInKeys,v.encode?v.encoder:null,v.filter,v.sort,v.allowDots,v.serializeDate,v.format,v.formatter,v.encodeValuesOnly,v.charset,he))}var m=H.join(v.delimiter),O=v.addQueryPrefix===!0?"?":"";return v.charsetSentinel&&(v.charset==="iso-8859-1"?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),m.length>0?O+m:""},Ed}var Sd,bb;function qD(){if(bb)return Sd;bb=1;var e=iE(),t=Object.prototype.hasOwnProperty,r=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(b){return b.replace(/&#(\d+);/g,function(_,T){return String.fromCharCode(parseInt(T,10))})},s=function(b,_){return b&&typeof b=="string"&&_.comma&&b.indexOf(",")>-1?b.split(","):b},u="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",c=function(_,T){var k={__proto__:null},E=T.ignoreQueryPrefix?_.replace(/^\?/,""):_;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var R=T.parameterLimit===1/0?void 0:T.parameterLimit,v=E.split(T.delimiter,R),w=-1,S,H=T.charset;if(T.charsetSentinel)for(S=0;S<v.length;++S)v[S].indexOf("utf8=")===0&&(v[S]===d?H="utf-8":v[S]===u&&(H="iso-8859-1"),w=S,S=v.length);for(S=0;S<v.length;++S)if(S!==w){var Q=v[S],ie=Q.indexOf("]="),he=ie===-1?Q.indexOf("="):ie+1,le,Ee;he===-1?(le=T.decoder(Q,i.decoder,H,"key"),Ee=T.strictNullHandling?null:""):(le=T.decoder(Q.slice(0,he),i.decoder,H,"key"),Ee=e.maybeMap(s(Q.slice(he+1),T),function(m){return T.decoder(m,i.decoder,H,"value")})),Ee&&T.interpretNumericEntities&&H==="iso-8859-1"&&(Ee=a(String(Ee))),Q.indexOf("[]=")>-1&&(Ee=r(Ee)?[Ee]:Ee);var ve=t.call(k,le);ve&&T.duplicates==="combine"?k[le]=e.combine(k[le],Ee):(!ve||T.duplicates==="last")&&(k[le]=Ee)}return k},l=function(b,_,T,k){for(var E=k?_:s(_,T),R=b.length-1;R>=0;--R){var v,w=b[R];if(w==="[]"&&T.parseArrays)v=T.allowEmptyArrays&&(E===""||T.strictNullHandling&&E===null)?[]:[].concat(E);else{v=T.plainObjects?{__proto__:null}:{};var S=w.charAt(0)==="["&&w.charAt(w.length-1)==="]"?w.slice(1,-1):w,H=T.decodeDotInKeys?S.replace(/%2E/g,"."):S,Q=parseInt(H,10);!T.parseArrays&&H===""?v={0:E}:!isNaN(Q)&&w!==H&&String(Q)===H&&Q>=0&&T.parseArrays&&Q<=T.arrayLimit?(v=[],v[Q]=E):H!=="__proto__"&&(v[H]=E)}E=v}return E},h=function(_,T,k,E){if(_){var R=k.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,v=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,S=k.depth>0&&v.exec(R),H=S?R.slice(0,S.index):R,Q=[];if(H){if(!k.plainObjects&&t.call(Object.prototype,H)&&!k.allowPrototypes)return;Q.push(H)}for(var ie=0;k.depth>0&&(S=w.exec(R))!==null&&ie<k.depth;){if(ie+=1,!k.plainObjects&&t.call(Object.prototype,S[1].slice(1,-1))&&!k.allowPrototypes)return;Q.push(S[1])}if(S){if(k.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+k.depth+" and strictDepth is true");Q.push("["+R.slice(S.index)+"]")}return l(Q,T,k,E)}},g=function(_){if(!_)return i;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys<"u"&&typeof _.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder<"u"&&typeof _.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var T=typeof _.charset>"u"?i.charset:_.charset,k=typeof _.duplicates>"u"?i.duplicates:_.duplicates;if(k!=="combine"&&k!=="first"&&k!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:i.allowDots:!!_.allowDots;return{allowDots:E,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:i.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:i.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:i.arrayLimit,charset:T,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:i.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:i.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:i.decoder,delimiter:typeof _.delimiter=="string"||e.isRegExp(_.delimiter)?_.delimiter:i.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:i.depth,duplicates:k,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:i.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:i.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:i.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:i.strictNullHandling}};return Sd=function(b,_){var T=g(_);if(b===""||b===null||typeof b>"u")return T.plainObjects?{__proto__:null}:{};for(var k=typeof b=="string"?c(b,T):b,E=T.plainObjects?{__proto__:null}:{},R=Object.keys(k),v=0;v<R.length;++v){var w=R[v],S=h(w,k[w],T,typeof b=="string");E=e.merge(E,S,T)}return T.allowSparse===!0?E:e.compact(E)},Sd}var Ad,mb;function HD(){if(mb)return Ad;mb=1;var e=UD(),t=qD(),r=lp();return Ad={formats:r,parse:t,stringify:e},Ad}var vb;function dp(){return vb||(vb=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=MD(),i=HD();function a(re){return re&&typeof re=="object"&&"default"in re?re:{default:re}}var s=a(r),u=a(i),d=s.default;function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var l=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,g=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,b=["<",">",'"',"`"," ","\r",`
77
+ `," "],_=["{","}","|","\\","^","`"].concat(b),T=["'"].concat(_),k=["%","/","?",";","#"].concat(T),E=["/","?","#"],R=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},H={javascript:!0,"javascript:":!0},Q={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ie=u.default;function he(re,xe,M){if(re&&typeof re=="object"&&re instanceof c)return re;var ce=new c;return ce.parse(re,xe,M),ce}c.prototype.parse=function(re,xe,M){if(typeof re!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof re);var ce=re.indexOf("?"),De=ce!==-1&&ce<re.indexOf("#")?"?":"#",Ve=re.split(De),Ue=/\\/g;Ve[0]=Ve[0].replace(Ue,"/"),re=Ve.join(De);var ke=re;if(ke=ke.trim(),!M&&re.split("#").length===1){var Xe=g.exec(ke);if(Xe)return this.path=ke,this.href=ke,this.pathname=Xe[1],Xe[2]?(this.search=Xe[2],xe?this.query=ie.parse(this.search.substr(1)):this.query=this.search.substr(1)):xe&&(this.search="",this.query={}),this}var D=l.exec(ke);if(D){D=D[0];var Re=D.toLowerCase();this.protocol=Re,ke=ke.substr(D.length)}if(M||D||ke.match(/^\/\/[^@/]+@[^@/]+/)){var $e=ke.substr(0,2)==="//";$e&&!(D&&H[D])&&(ke=ke.substr(2),this.slashes=!0)}if(!H[D]&&($e||D&&!Q[D])){for(var qe=-1,C=0;C<E.length;C++){var K=ke.indexOf(E[C]);K!==-1&&(qe===-1||K<qe)&&(qe=K)}var A,Te;qe===-1?Te=ke.lastIndexOf("@"):Te=ke.lastIndexOf("@",qe),Te!==-1&&(A=ke.slice(0,Te),ke=ke.slice(Te+1),this.auth=decodeURIComponent(A)),qe=-1;for(var C=0;C<k.length;C++){var K=ke.indexOf(k[C]);K!==-1&&(qe===-1||K<qe)&&(qe=K)}qe===-1&&(qe=ke.length),this.host=ke.slice(0,qe),ke=ke.slice(qe),this.parseHost(),this.hostname=this.hostname||"";var Ke=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ke)for(var p=this.hostname.split(/\./),C=0,_e=p.length;C<_e;C++){var Ie=p[C];if(Ie&&!Ie.match(v)){for(var L="",ue=0,Ae=Ie.length;ue<Ae;ue++)Ie.charCodeAt(ue)>127?L+="x":L+=Ie[ue];if(!L.match(v)){var Je=p.slice(0,C),N=p.slice(C+1),W=Ie.match(w);W&&(Je.push(W[1]),N.unshift(W[2])),N.length&&(ke="/"+N.join(".")+ke),this.hostname=Je.join(".");break}}}this.hostname.length>R?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ke||(this.hostname=d.toASCII(this.hostname));var Ce=this.port?":"+this.port:"",ze=this.hostname||"";this.host=ze+Ce,this.href+=this.host,Ke&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ke[0]!=="/"&&(ke="/"+ke))}if(!S[Re])for(var C=0,_e=T.length;C<_e;C++){var Ge=T[C];if(ke.indexOf(Ge)!==-1){var rt=encodeURIComponent(Ge);rt===Ge&&(rt=escape(Ge)),ke=ke.split(Ge).join(rt)}}var ot=ke.indexOf("#");ot!==-1&&(this.hash=ke.substr(ot),ke=ke.slice(0,ot));var bt=ke.indexOf("?");if(bt!==-1?(this.search=ke.substr(bt),this.query=ke.substr(bt+1),xe&&(this.query=ie.parse(this.query)),ke=ke.slice(0,bt)):xe&&(this.search="",this.query={}),ke&&(this.pathname=ke),Q[Re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ce=this.pathname||"",ht=this.search||"";this.path=Ce+ht}return this.href=this.format(),this};function le(re){return typeof re=="string"&&(re=he(re)),re instanceof c?re.format():c.prototype.format.call(re)}c.prototype.format=function(){var re=this.auth||"";re&&(re=encodeURIComponent(re),re=re.replace(/%3A/i,":"),re+="@");var xe=this.protocol||"",M=this.pathname||"",ce=this.hash||"",De=!1,Ve="";this.host?De=re+this.host:this.hostname&&(De=re+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(De+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(Ve=ie.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Ue=this.search||Ve&&"?"+Ve||"";return xe&&xe.substr(-1)!==":"&&(xe+=":"),this.slashes||(!xe||Q[xe])&&De!==!1?(De="//"+(De||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):De||(De=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),Ue&&Ue.charAt(0)!=="?"&&(Ue="?"+Ue),M=M.replace(/[?#]/g,function(ke){return encodeURIComponent(ke)}),Ue=Ue.replace("#","%23"),xe+De+M+Ue+ce};function Ee(re,xe){return he(re,!1,!0).resolve(xe)}c.prototype.resolve=function(re){return this.resolveObject(he(re,!1,!0)).format()};function ve(re,xe){return re?he(re,!1,!0).resolveObject(xe):xe}c.prototype.resolveObject=function(re){if(typeof re=="string"){var xe=new c;xe.parse(re,!1,!0),re=xe}for(var M=new c,ce=Object.keys(this),De=0;De<ce.length;De++){var Ve=ce[De];M[Ve]=this[Ve]}if(M.hash=re.hash,re.href==="")return M.href=M.format(),M;if(re.slashes&&!re.protocol){for(var Ue=Object.keys(re),ke=0;ke<Ue.length;ke++){var Xe=Ue[ke];Xe!=="protocol"&&(M[Xe]=re[Xe])}return Q[M.protocol]&&M.hostname&&!M.pathname&&(M.pathname="/",M.path=M.pathname),M.href=M.format(),M}if(re.protocol&&re.protocol!==M.protocol){if(!Q[re.protocol]){for(var D=Object.keys(re),Re=0;Re<D.length;Re++){var $e=D[Re];M[$e]=re[$e]}return M.href=M.format(),M}if(M.protocol=re.protocol,!re.host&&!H[re.protocol]){for(var _e=(re.pathname||"").split("/");_e.length&&!(re.host=_e.shift()););re.host||(re.host=""),re.hostname||(re.hostname=""),_e[0]!==""&&_e.unshift(""),_e.length<2&&_e.unshift(""),M.pathname=_e.join("/")}else M.pathname=re.pathname;if(M.search=re.search,M.query=re.query,M.host=re.host||"",M.auth=re.auth,M.hostname=re.hostname||re.host,M.port=re.port,M.pathname||M.search){var qe=M.pathname||"",C=M.search||"";M.path=qe+C}return M.slashes=M.slashes||re.slashes,M.href=M.format(),M}var K=M.pathname&&M.pathname.charAt(0)==="/",A=re.host||re.pathname&&re.pathname.charAt(0)==="/",Te=A||K||M.host&&re.pathname,Ke=Te,p=M.pathname&&M.pathname.split("/")||[],_e=re.pathname&&re.pathname.split("/")||[],Ie=M.protocol&&!Q[M.protocol];if(Ie&&(M.hostname="",M.port=null,M.host&&(p[0]===""?p[0]=M.host:p.unshift(M.host)),M.host="",re.protocol&&(re.hostname=null,re.port=null,re.host&&(_e[0]===""?_e[0]=re.host:_e.unshift(re.host)),re.host=null),Te=Te&&(_e[0]===""||p[0]==="")),A)M.host=re.host||re.host===""?re.host:M.host,M.hostname=re.hostname||re.hostname===""?re.hostname:M.hostname,M.search=re.search,M.query=re.query,p=_e;else if(_e.length)p||(p=[]),p.pop(),p=p.concat(_e),M.search=re.search,M.query=re.query;else if(re.search!=null){if(Ie){M.host=p.shift(),M.hostname=M.host;var L=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;L&&(M.auth=L.shift(),M.hostname=L.shift(),M.host=M.hostname)}return M.search=re.search,M.query=re.query,(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!p.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var ue=p.slice(-1)[0],Ae=(M.host||re.host||p.length>1)&&(ue==="."||ue==="..")||ue==="",Je=0,N=p.length;N>=0;N--)ue=p[N],ue==="."?p.splice(N,1):ue===".."?(p.splice(N,1),Je++):Je&&(p.splice(N,1),Je--);if(!Te&&!Ke)for(;Je--;Je)p.unshift("..");Te&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),Ae&&p.join("/").substr(-1)!=="/"&&p.push("");var W=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(Ie){M.hostname=W?"":p.length?p.shift():"",M.host=M.hostname;var L=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;L&&(M.auth=L.shift(),M.hostname=L.shift(),M.host=M.hostname)}return Te=Te||M.host&&p.length,Te&&!W&&p.unshift(""),p.length>0?M.pathname=p.join("/"):(M.pathname=null,M.path=null),(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=re.auth||M.auth,M.slashes=M.slashes||re.slashes,M.href=M.format(),M},c.prototype.parseHost=function(){var re=this.host,xe=h.exec(re);xe&&(xe=xe[0],xe!==":"&&(this.port=xe.substr(1)),re=re.substr(0,re.length-xe.length)),re&&(this.hostname=re)};var m=he,O=Ee,P=ve,Z=le,ae=c;function X(re,xe){for(var M=0,ce=re.length-1;ce>=0;ce--){var De=re[ce];De==="."?re.splice(ce,1):De===".."?(re.splice(ce,1),M++):M&&(re.splice(ce,1),M--)}if(xe)for(;M--;M)re.unshift("..");return re}function ne(){for(var re="",xe=!1,M=arguments.length-1;M>=-1&&!xe;M--){var ce=M>=0?arguments[M]:"/";if(typeof ce!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!ce)continue;re=ce+"/"+re,xe=ce.charAt(0)==="/"}return re=X(F(re.split("/"),function(De){return!!De}),!xe).join("/"),(xe?"/":"")+re||"."}function F(re,xe){if(re.filter)return re.filter(xe);for(var M=[],ce=0;ce<re.length;ce++)xe(re[ce],ce,re)&&M.push(re[ce]);return M}var x=function(re){function xe(){var ce=this||self;return delete re.prototype.__magic__,ce}if(typeof globalThis=="object")return globalThis;if(this)return xe();re.defineProperty(re.prototype,"__magic__",{configurable:!0,get:xe});var M=__magic__;return M}(Object),Y=Z,B=m,j=O,$=ae,U=x.URL,G=x.URLSearchParams,de=/%/g,oe=/\\/g,fe=/\n/g,Se=/\r/g,Be=/\t/g,Me=47;function z(re){var xe=re??null;return!!(xe!==null&&(xe!=null&&xe.href)&&(xe!=null&&xe.origin))}function J(re){if(re.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var xe=re.pathname,M=0;M<xe.length;M++)if(xe[M]==="%"){var ce=xe.codePointAt(M+2)|32;if(xe[M+1]==="2"&&ce===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(xe)}function ge(re){return re.includes("%")&&(re=re.replace(de,"%25")),re.includes("\\")&&(re=re.replace(oe,"%5C")),re.includes(`
78
+ `)&&(re=re.replace(fe,"%0A")),re.includes("\r")&&(re=re.replace(Se,"%0D")),re.includes(" ")&&(re=re.replace(Be,"%09")),re}var Ne=function(xe){if(typeof xe>"u")throw new TypeError('The "domain" argument must be specified');return new U("http://"+xe).hostname},Oe=function(xe){if(typeof xe>"u")throw new TypeError('The "domain" argument must be specified');return new U("http://"+xe).hostname},je=function(xe){var M=new U("file://"),ce=ne(xe),De=xe.charCodeAt(xe.length-1);return De===Me&&ce[ce.length-1]!=="/"&&(ce+="/"),M.pathname=ge(ce),M},me=function(xe){if(!z(xe)&&typeof xe!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof xe+" ("+xe+")");var M=new U(xe);if(M.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return J(M)},Ye=function(xe,M){var ce,De,Ve,Ue;if(M===void 0&&(M={}),!(xe instanceof U))return Y(xe);if(typeof M!="object"||M===null)throw new TypeError('The "options" argument must be of type object.');var ke=(ce=M.auth)!=null?ce:!0,Xe=(De=M.fragment)!=null?De:!0,D=(Ve=M.search)!=null?Ve:!0;(Ue=M.unicode)!=null;var Re=new U(xe.toString());return ke||(Re.username="",Re.password=""),Xe||(Re.hash=""),D||(Re.search=""),Re.toString()},et={format:Ye,parse:B,resolve:j,resolveObject:P,Url:$,URL:U,URLSearchParams:G,domainToASCII:Ne,domainToUnicode:Oe,pathToFileURL:je,fileURLToPath:me};t.URL=U,t.URLSearchParams=G,t.Url=$,t.default=et,t.domainToASCII=Ne,t.domainToUnicode=Oe,t.fileURLToPath=me,t.format=Ye,t.parse=B,t.pathToFileURL=je,t.resolve=j,t.resolveObject=P,t=e.exports=et}(uu,uu.exports)),uu.exports}var wb;function oE(){return wb||(wb=1,function(e){var t=xD(),r=rE(),i=cO(),a=DD(),s=dp(),u=e;u.request=function(d,c){typeof d=="string"?d=s.parse(d):d=i(d);var l=ee.commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",h=d.protocol||l,g=d.hostname||d.host,b=d.port,_=d.path||"/";g&&g.indexOf(":")!==-1&&(g="["+g+"]"),d.url=(g?h+"//"+g:"")+(b?":"+b:"")+_,d.method=(d.method||"GET").toUpperCase(),d.headers=d.headers||{};var T=new t(d);return c&&T.on("response",c),T},u.get=function(c,l){var h=u.request(c,l);return h.end(),h},u.ClientRequest=t,u.IncomingMessage=r.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(ld)),ld}var Rd={exports:{}},Eb;function WD(){return Eb||(Eb=1,function(e){var t=oE(),r=dp(),i=e.exports;for(var a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);i.request=function(u,d){return u=s(u),t.request.call(this,u,d)},i.get=function(u,d){return u=s(u),t.get.call(this,u,d)};function s(u){if(typeof u=="string"&&(u=r.parse(u)),u.protocol||(u.protocol="https:"),u.protocol!=="https:")throw new Error('Protocol "'+u.protocol+'" not supported. Expected "https:"');return u}}(Rd)),Rd.exports}var Id={},Td={},Od,Sb;function zD(){if(Sb)return Od;Sb=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return Od=e,Od}var ln={},Pd={},Ab;function vf(){return Ab||(Ab=1,function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,u){return Object.prototype.hasOwnProperty.call(s,u)}e.assign=function(s){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var d=u.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var c in d)r(d,c)&&(s[c]=d[c])}}return s},e.shrinkBuf=function(s,u){return s.length===u?s:s.subarray?s.subarray(0,u):(s.length=u,s)};var i={arraySet:function(s,u,d,c,l){if(u.subarray&&s.subarray){s.set(u.subarray(d,d+c),l);return}for(var h=0;h<c;h++)s[l+h]=u[d+h]},flattenChunks:function(s){var u,d,c,l,h,g;for(c=0,u=0,d=s.length;u<d;u++)c+=s[u].length;for(g=new Uint8Array(c),l=0,u=0,d=s.length;u<d;u++)h=s[u],g.set(h,l),l+=h.length;return g}},a={arraySet:function(s,u,d,c,l){for(var h=0;h<c;h++)s[l+h]=u[d+h]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)}(Pd)),Pd}var ki={},Rb;function GD(){if(Rb)return ki;Rb=1;var e=vf(),t=4,r=0,i=1,a=2;function s(D){for(var Re=D.length;--Re>=0;)D[Re]=0}var u=0,d=1,c=2,l=3,h=258,g=29,b=256,_=b+1+g,T=30,k=19,E=2*_+1,R=15,v=16,w=7,S=256,H=16,Q=17,ie=18,he=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],le=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],m=512,O=new Array((_+2)*2);s(O);var P=new Array(T*2);s(P);var Z=new Array(m);s(Z);var ae=new Array(h-l+1);s(ae);var X=new Array(g);s(X);var ne=new Array(T);s(ne);function F(D,Re,$e,qe,C){this.static_tree=D,this.extra_bits=Re,this.extra_base=$e,this.elems=qe,this.max_length=C,this.has_stree=D&&D.length}var x,Y,B;function j(D,Re){this.dyn_tree=D,this.max_code=0,this.stat_desc=Re}function $(D){return D<256?Z[D]:Z[256+(D>>>7)]}function U(D,Re){D.pending_buf[D.pending++]=Re&255,D.pending_buf[D.pending++]=Re>>>8&255}function G(D,Re,$e){D.bi_valid>v-$e?(D.bi_buf|=Re<<D.bi_valid&65535,U(D,D.bi_buf),D.bi_buf=Re>>v-D.bi_valid,D.bi_valid+=$e-v):(D.bi_buf|=Re<<D.bi_valid&65535,D.bi_valid+=$e)}function de(D,Re,$e){G(D,$e[Re*2],$e[Re*2+1])}function oe(D,Re){var $e=0;do $e|=D&1,D>>>=1,$e<<=1;while(--Re>0);return $e>>>1}function fe(D){D.bi_valid===16?(U(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):D.bi_valid>=8&&(D.pending_buf[D.pending++]=D.bi_buf&255,D.bi_buf>>=8,D.bi_valid-=8)}function Se(D,Re){var $e=Re.dyn_tree,qe=Re.max_code,C=Re.stat_desc.static_tree,K=Re.stat_desc.has_stree,A=Re.stat_desc.extra_bits,Te=Re.stat_desc.extra_base,Ke=Re.stat_desc.max_length,p,_e,Ie,L,ue,Ae,Je=0;for(L=0;L<=R;L++)D.bl_count[L]=0;for($e[D.heap[D.heap_max]*2+1]=0,p=D.heap_max+1;p<E;p++)_e=D.heap[p],L=$e[$e[_e*2+1]*2+1]+1,L>Ke&&(L=Ke,Je++),$e[_e*2+1]=L,!(_e>qe)&&(D.bl_count[L]++,ue=0,_e>=Te&&(ue=A[_e-Te]),Ae=$e[_e*2],D.opt_len+=Ae*(L+ue),K&&(D.static_len+=Ae*(C[_e*2+1]+ue)));if(Je!==0){do{for(L=Ke-1;D.bl_count[L]===0;)L--;D.bl_count[L]--,D.bl_count[L+1]+=2,D.bl_count[Ke]--,Je-=2}while(Je>0);for(L=Ke;L!==0;L--)for(_e=D.bl_count[L];_e!==0;)Ie=D.heap[--p],!(Ie>qe)&&($e[Ie*2+1]!==L&&(D.opt_len+=(L-$e[Ie*2+1])*$e[Ie*2],$e[Ie*2+1]=L),_e--)}}function Be(D,Re,$e){var qe=new Array(R+1),C=0,K,A;for(K=1;K<=R;K++)qe[K]=C=C+$e[K-1]<<1;for(A=0;A<=Re;A++){var Te=D[A*2+1];Te!==0&&(D[A*2]=oe(qe[Te]++,Te))}}function Me(){var D,Re,$e,qe,C,K=new Array(R+1);for($e=0,qe=0;qe<g-1;qe++)for(X[qe]=$e,D=0;D<1<<he[qe];D++)ae[$e++]=qe;for(ae[$e-1]=qe,C=0,qe=0;qe<16;qe++)for(ne[qe]=C,D=0;D<1<<le[qe];D++)Z[C++]=qe;for(C>>=7;qe<T;qe++)for(ne[qe]=C<<7,D=0;D<1<<le[qe]-7;D++)Z[256+C++]=qe;for(Re=0;Re<=R;Re++)K[Re]=0;for(D=0;D<=143;)O[D*2+1]=8,D++,K[8]++;for(;D<=255;)O[D*2+1]=9,D++,K[9]++;for(;D<=279;)O[D*2+1]=7,D++,K[7]++;for(;D<=287;)O[D*2+1]=8,D++,K[8]++;for(Be(O,_+1,K),D=0;D<T;D++)P[D*2+1]=5,P[D*2]=oe(D,5);x=new F(O,he,b+1,_,R),Y=new F(P,le,0,T,R),B=new F(new Array(0),Ee,0,k,w)}function z(D){var Re;for(Re=0;Re<_;Re++)D.dyn_ltree[Re*2]=0;for(Re=0;Re<T;Re++)D.dyn_dtree[Re*2]=0;for(Re=0;Re<k;Re++)D.bl_tree[Re*2]=0;D.dyn_ltree[S*2]=1,D.opt_len=D.static_len=0,D.last_lit=D.matches=0}function J(D){D.bi_valid>8?U(D,D.bi_buf):D.bi_valid>0&&(D.pending_buf[D.pending++]=D.bi_buf),D.bi_buf=0,D.bi_valid=0}function ge(D,Re,$e,qe){J(D),U(D,$e),U(D,~$e),e.arraySet(D.pending_buf,D.window,Re,$e,D.pending),D.pending+=$e}function Ne(D,Re,$e,qe){var C=Re*2,K=$e*2;return D[C]<D[K]||D[C]===D[K]&&qe[Re]<=qe[$e]}function Oe(D,Re,$e){for(var qe=D.heap[$e],C=$e<<1;C<=D.heap_len&&(C<D.heap_len&&Ne(Re,D.heap[C+1],D.heap[C],D.depth)&&C++,!Ne(Re,qe,D.heap[C],D.depth));)D.heap[$e]=D.heap[C],$e=C,C<<=1;D.heap[$e]=qe}function je(D,Re,$e){var qe,C,K=0,A,Te;if(D.last_lit!==0)do qe=D.pending_buf[D.d_buf+K*2]<<8|D.pending_buf[D.d_buf+K*2+1],C=D.pending_buf[D.l_buf+K],K++,qe===0?de(D,C,Re):(A=ae[C],de(D,A+b+1,Re),Te=he[A],Te!==0&&(C-=X[A],G(D,C,Te)),qe--,A=$(qe),de(D,A,$e),Te=le[A],Te!==0&&(qe-=ne[A],G(D,qe,Te)));while(K<D.last_lit);de(D,S,Re)}function me(D,Re){var $e=Re.dyn_tree,qe=Re.stat_desc.static_tree,C=Re.stat_desc.has_stree,K=Re.stat_desc.elems,A,Te,Ke=-1,p;for(D.heap_len=0,D.heap_max=E,A=0;A<K;A++)$e[A*2]!==0?(D.heap[++D.heap_len]=Ke=A,D.depth[A]=0):$e[A*2+1]=0;for(;D.heap_len<2;)p=D.heap[++D.heap_len]=Ke<2?++Ke:0,$e[p*2]=1,D.depth[p]=0,D.opt_len--,C&&(D.static_len-=qe[p*2+1]);for(Re.max_code=Ke,A=D.heap_len>>1;A>=1;A--)Oe(D,$e,A);p=K;do A=D.heap[1],D.heap[1]=D.heap[D.heap_len--],Oe(D,$e,1),Te=D.heap[1],D.heap[--D.heap_max]=A,D.heap[--D.heap_max]=Te,$e[p*2]=$e[A*2]+$e[Te*2],D.depth[p]=(D.depth[A]>=D.depth[Te]?D.depth[A]:D.depth[Te])+1,$e[A*2+1]=$e[Te*2+1]=p,D.heap[1]=p++,Oe(D,$e,1);while(D.heap_len>=2);D.heap[--D.heap_max]=D.heap[1],Se(D,Re),Be($e,Ke,D.bl_count)}function Ye(D,Re,$e){var qe,C=-1,K,A=Re[0*2+1],Te=0,Ke=7,p=4;for(A===0&&(Ke=138,p=3),Re[($e+1)*2+1]=65535,qe=0;qe<=$e;qe++)K=A,A=Re[(qe+1)*2+1],!(++Te<Ke&&K===A)&&(Te<p?D.bl_tree[K*2]+=Te:K!==0?(K!==C&&D.bl_tree[K*2]++,D.bl_tree[H*2]++):Te<=10?D.bl_tree[Q*2]++:D.bl_tree[ie*2]++,Te=0,C=K,A===0?(Ke=138,p=3):K===A?(Ke=6,p=3):(Ke=7,p=4))}function et(D,Re,$e){var qe,C=-1,K,A=Re[0*2+1],Te=0,Ke=7,p=4;for(A===0&&(Ke=138,p=3),qe=0;qe<=$e;qe++)if(K=A,A=Re[(qe+1)*2+1],!(++Te<Ke&&K===A)){if(Te<p)do de(D,K,D.bl_tree);while(--Te!==0);else K!==0?(K!==C&&(de(D,K,D.bl_tree),Te--),de(D,H,D.bl_tree),G(D,Te-3,2)):Te<=10?(de(D,Q,D.bl_tree),G(D,Te-3,3)):(de(D,ie,D.bl_tree),G(D,Te-11,7));Te=0,C=K,A===0?(Ke=138,p=3):K===A?(Ke=6,p=3):(Ke=7,p=4)}}function re(D){var Re;for(Ye(D,D.dyn_ltree,D.l_desc.max_code),Ye(D,D.dyn_dtree,D.d_desc.max_code),me(D,D.bl_desc),Re=k-1;Re>=3&&D.bl_tree[ve[Re]*2+1]===0;Re--);return D.opt_len+=3*(Re+1)+5+5+4,Re}function xe(D,Re,$e,qe){var C;for(G(D,Re-257,5),G(D,$e-1,5),G(D,qe-4,4),C=0;C<qe;C++)G(D,D.bl_tree[ve[C]*2+1],3);et(D,D.dyn_ltree,Re-1),et(D,D.dyn_dtree,$e-1)}function M(D){var Re=4093624447,$e;for($e=0;$e<=31;$e++,Re>>>=1)if(Re&1&&D.dyn_ltree[$e*2]!==0)return r;if(D.dyn_ltree[9*2]!==0||D.dyn_ltree[10*2]!==0||D.dyn_ltree[13*2]!==0)return i;for($e=32;$e<b;$e++)if(D.dyn_ltree[$e*2]!==0)return i;return r}var ce=!1;function De(D){ce||(Me(),ce=!0),D.l_desc=new j(D.dyn_ltree,x),D.d_desc=new j(D.dyn_dtree,Y),D.bl_desc=new j(D.bl_tree,B),D.bi_buf=0,D.bi_valid=0,z(D)}function Ve(D,Re,$e,qe){G(D,(u<<1)+(qe?1:0),3),ge(D,Re,$e)}function Ue(D){G(D,d<<1,3),de(D,S,O),fe(D)}function ke(D,Re,$e,qe){var C,K,A=0;D.level>0?(D.strm.data_type===a&&(D.strm.data_type=M(D)),me(D,D.l_desc),me(D,D.d_desc),A=re(D),C=D.opt_len+3+7>>>3,K=D.static_len+3+7>>>3,K<=C&&(C=K)):C=K=$e+5,$e+4<=C&&Re!==-1?Ve(D,Re,$e,qe):D.strategy===t||K===C?(G(D,(d<<1)+(qe?1:0),3),je(D,O,P)):(G(D,(c<<1)+(qe?1:0),3),xe(D,D.l_desc.max_code+1,D.d_desc.max_code+1,A+1),je(D,D.dyn_ltree,D.dyn_dtree)),z(D),qe&&J(D)}function Xe(D,Re,$e){return D.pending_buf[D.d_buf+D.last_lit*2]=Re>>>8&255,D.pending_buf[D.d_buf+D.last_lit*2+1]=Re&255,D.pending_buf[D.l_buf+D.last_lit]=$e&255,D.last_lit++,Re===0?D.dyn_ltree[$e*2]++:(D.matches++,Re--,D.dyn_ltree[(ae[$e]+b+1)*2]++,D.dyn_dtree[$(Re)*2]++),D.last_lit===D.lit_bufsize-1}return ki._tr_init=De,ki._tr_stored_block=Ve,ki._tr_flush_block=ke,ki._tr_tally=Xe,ki._tr_align=Ue,ki}var Cd,Ib;function aE(){if(Ib)return Cd;Ib=1;function e(t,r,i,a){for(var s=t&65535|0,u=t>>>16&65535|0,d=0;i!==0;){d=i>2e3?2e3:i,i-=d;do s=s+r[a++]|0,u=u+s|0;while(--d);s%=65521,u%=65521}return s|u<<16|0}return Cd=e,Cd}var Ld,Tb;function sE(){if(Tb)return Ld;Tb=1;function e(){for(var i,a=[],s=0;s<256;s++){i=s;for(var u=0;u<8;u++)i=i&1?3988292384^i>>>1:i>>>1;a[s]=i}return a}var t=e();function r(i,a,s,u){var d=t,c=u+s;i^=-1;for(var l=u;l<c;l++)i=i>>>8^d[(i^a[l])&255];return i^-1}return Ld=r,Ld}var Nd,Ob;function VD(){return Ob||(Ob=1,Nd={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),Nd}var Pb;function ZD(){if(Pb)return ln;Pb=1;var e=vf(),t=GD(),r=aE(),i=sE(),a=VD(),s=0,u=1,d=3,c=4,l=5,h=0,g=1,b=-2,_=-3,T=-5,k=-1,E=1,R=2,v=3,w=4,S=0,H=2,Q=8,ie=9,he=15,le=8,Ee=29,ve=256,m=ve+1+Ee,O=30,P=19,Z=2*m+1,ae=15,X=3,ne=258,F=ne+X+1,x=32,Y=42,B=69,j=73,$=91,U=103,G=113,de=666,oe=1,fe=2,Se=3,Be=4,Me=3;function z(p,_e){return p.msg=a[_e],_e}function J(p){return(p<<1)-(p>4?9:0)}function ge(p){for(var _e=p.length;--_e>=0;)p[_e]=0}function Ne(p){var _e=p.state,Ie=_e.pending;Ie>p.avail_out&&(Ie=p.avail_out),Ie!==0&&(e.arraySet(p.output,_e.pending_buf,_e.pending_out,Ie,p.next_out),p.next_out+=Ie,_e.pending_out+=Ie,p.total_out+=Ie,p.avail_out-=Ie,_e.pending-=Ie,_e.pending===0&&(_e.pending_out=0))}function Oe(p,_e){t._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,_e),p.block_start=p.strstart,Ne(p.strm)}function je(p,_e){p.pending_buf[p.pending++]=_e}function me(p,_e){p.pending_buf[p.pending++]=_e>>>8&255,p.pending_buf[p.pending++]=_e&255}function Ye(p,_e,Ie,L){var ue=p.avail_in;return ue>L&&(ue=L),ue===0?0:(p.avail_in-=ue,e.arraySet(_e,p.input,p.next_in,ue,Ie),p.state.wrap===1?p.adler=r(p.adler,_e,ue,Ie):p.state.wrap===2&&(p.adler=i(p.adler,_e,ue,Ie)),p.next_in+=ue,p.total_in+=ue,ue)}function et(p,_e){var Ie=p.max_chain_length,L=p.strstart,ue,Ae,Je=p.prev_length,N=p.nice_match,W=p.strstart>p.w_size-F?p.strstart-(p.w_size-F):0,Ce=p.window,ze=p.w_mask,Ge=p.prev,rt=p.strstart+ne,ot=Ce[L+Je-1],bt=Ce[L+Je];p.prev_length>=p.good_match&&(Ie>>=2),N>p.lookahead&&(N=p.lookahead);do if(ue=_e,!(Ce[ue+Je]!==bt||Ce[ue+Je-1]!==ot||Ce[ue]!==Ce[L]||Ce[++ue]!==Ce[L+1])){L+=2,ue++;do;while(Ce[++L]===Ce[++ue]&&Ce[++L]===Ce[++ue]&&Ce[++L]===Ce[++ue]&&Ce[++L]===Ce[++ue]&&Ce[++L]===Ce[++ue]&&Ce[++L]===Ce[++ue]&&Ce[++L]===Ce[++ue]&&Ce[++L]===Ce[++ue]&&L<rt);if(Ae=ne-(rt-L),L=rt-ne,Ae>Je){if(p.match_start=_e,Je=Ae,Ae>=N)break;ot=Ce[L+Je-1],bt=Ce[L+Je]}}while((_e=Ge[_e&ze])>W&&--Ie!==0);return Je<=p.lookahead?Je:p.lookahead}function re(p){var _e=p.w_size,Ie,L,ue,Ae,Je;do{if(Ae=p.window_size-p.lookahead-p.strstart,p.strstart>=_e+(_e-F)){e.arraySet(p.window,p.window,_e,_e,0),p.match_start-=_e,p.strstart-=_e,p.block_start-=_e,L=p.hash_size,Ie=L;do ue=p.head[--Ie],p.head[Ie]=ue>=_e?ue-_e:0;while(--L);L=_e,Ie=L;do ue=p.prev[--Ie],p.prev[Ie]=ue>=_e?ue-_e:0;while(--L);Ae+=_e}if(p.strm.avail_in===0)break;if(L=Ye(p.strm,p.window,p.strstart+p.lookahead,Ae),p.lookahead+=L,p.lookahead+p.insert>=X)for(Je=p.strstart-p.insert,p.ins_h=p.window[Je],p.ins_h=(p.ins_h<<p.hash_shift^p.window[Je+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[Je+X-1])&p.hash_mask,p.prev[Je&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=Je,Je++,p.insert--,!(p.lookahead+p.insert<X)););}while(p.lookahead<F&&p.strm.avail_in!==0)}function xe(p,_e){var Ie=65535;for(Ie>p.pending_buf_size-5&&(Ie=p.pending_buf_size-5);;){if(p.lookahead<=1){if(re(p),p.lookahead===0&&_e===s)return oe;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var L=p.block_start+Ie;if((p.strstart===0||p.strstart>=L)&&(p.lookahead=p.strstart-L,p.strstart=L,Oe(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-F&&(Oe(p,!1),p.strm.avail_out===0))return oe}return p.insert=0,_e===c?(Oe(p,!0),p.strm.avail_out===0?Se:Be):(p.strstart>p.block_start&&(Oe(p,!1),p.strm.avail_out===0),oe)}function M(p,_e){for(var Ie,L;;){if(p.lookahead<F){if(re(p),p.lookahead<F&&_e===s)return oe;if(p.lookahead===0)break}if(Ie=0,p.lookahead>=X&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),Ie!==0&&p.strstart-Ie<=p.w_size-F&&(p.match_length=et(p,Ie)),p.match_length>=X)if(L=t._tr_tally(p,p.strstart-p.match_start,p.match_length-X),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=X){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else L=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(L&&(Oe(p,!1),p.strm.avail_out===0))return oe}return p.insert=p.strstart<X-1?p.strstart:X-1,_e===c?(Oe(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Oe(p,!1),p.strm.avail_out===0)?oe:fe}function ce(p,_e){for(var Ie,L,ue;;){if(p.lookahead<F){if(re(p),p.lookahead<F&&_e===s)return oe;if(p.lookahead===0)break}if(Ie=0,p.lookahead>=X&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=X-1,Ie!==0&&p.prev_length<p.max_lazy_match&&p.strstart-Ie<=p.w_size-F&&(p.match_length=et(p,Ie),p.match_length<=5&&(p.strategy===E||p.match_length===X&&p.strstart-p.match_start>4096)&&(p.match_length=X-1)),p.prev_length>=X&&p.match_length<=p.prev_length){ue=p.strstart+p.lookahead-X,L=t._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-X),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=ue&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+X-1])&p.hash_mask,Ie=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=X-1,p.strstart++,L&&(Oe(p,!1),p.strm.avail_out===0))return oe}else if(p.match_available){if(L=t._tr_tally(p,0,p.window[p.strstart-1]),L&&Oe(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return oe}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(L=t._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<X-1?p.strstart:X-1,_e===c?(Oe(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Oe(p,!1),p.strm.avail_out===0)?oe:fe}function De(p,_e){for(var Ie,L,ue,Ae,Je=p.window;;){if(p.lookahead<=ne){if(re(p),p.lookahead<=ne&&_e===s)return oe;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=X&&p.strstart>0&&(ue=p.strstart-1,L=Je[ue],L===Je[++ue]&&L===Je[++ue]&&L===Je[++ue])){Ae=p.strstart+ne;do;while(L===Je[++ue]&&L===Je[++ue]&&L===Je[++ue]&&L===Je[++ue]&&L===Je[++ue]&&L===Je[++ue]&&L===Je[++ue]&&L===Je[++ue]&&ue<Ae);p.match_length=ne-(Ae-ue),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=X?(Ie=t._tr_tally(p,1,p.match_length-X),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(Ie=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),Ie&&(Oe(p,!1),p.strm.avail_out===0))return oe}return p.insert=0,_e===c?(Oe(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Oe(p,!1),p.strm.avail_out===0)?oe:fe}function Ve(p,_e){for(var Ie;;){if(p.lookahead===0&&(re(p),p.lookahead===0)){if(_e===s)return oe;break}if(p.match_length=0,Ie=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,Ie&&(Oe(p,!1),p.strm.avail_out===0))return oe}return p.insert=0,_e===c?(Oe(p,!0),p.strm.avail_out===0?Se:Be):p.last_lit&&(Oe(p,!1),p.strm.avail_out===0)?oe:fe}function Ue(p,_e,Ie,L,ue){this.good_length=p,this.max_lazy=_e,this.nice_length=Ie,this.max_chain=L,this.func=ue}var ke;ke=[new Ue(0,0,0,0,xe),new Ue(4,4,8,4,M),new Ue(4,5,16,8,M),new Ue(4,6,32,32,M),new Ue(4,4,16,16,ce),new Ue(8,16,32,32,ce),new Ue(8,16,128,128,ce),new Ue(8,32,128,256,ce),new Ue(32,128,258,1024,ce),new Ue(32,258,258,4096,ce)];function Xe(p){p.window_size=2*p.w_size,ge(p.head),p.max_lazy_match=ke[p.level].max_lazy,p.good_match=ke[p.level].good_length,p.nice_match=ke[p.level].nice_length,p.max_chain_length=ke[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=X-1,p.match_available=0,p.ins_h=0}function D(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Q,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(Z*2),this.dyn_dtree=new e.Buf16((2*O+1)*2),this.bl_tree=new e.Buf16((2*P+1)*2),ge(this.dyn_ltree),ge(this.dyn_dtree),ge(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(ae+1),this.heap=new e.Buf16(2*m+1),ge(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*m+1),ge(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Re(p){var _e;return!p||!p.state?z(p,b):(p.total_in=p.total_out=0,p.data_type=H,_e=p.state,_e.pending=0,_e.pending_out=0,_e.wrap<0&&(_e.wrap=-_e.wrap),_e.status=_e.wrap?Y:G,p.adler=_e.wrap===2?0:1,_e.last_flush=s,t._tr_init(_e),h)}function $e(p){var _e=Re(p);return _e===h&&Xe(p.state),_e}function qe(p,_e){return!p||!p.state||p.state.wrap!==2?b:(p.state.gzhead=_e,h)}function C(p,_e,Ie,L,ue,Ae){if(!p)return b;var Je=1;if(_e===k&&(_e=6),L<0?(Je=0,L=-L):L>15&&(Je=2,L-=16),ue<1||ue>ie||Ie!==Q||L<8||L>15||_e<0||_e>9||Ae<0||Ae>w)return z(p,b);L===8&&(L=9);var N=new D;return p.state=N,N.strm=p,N.wrap=Je,N.gzhead=null,N.w_bits=L,N.w_size=1<<N.w_bits,N.w_mask=N.w_size-1,N.hash_bits=ue+7,N.hash_size=1<<N.hash_bits,N.hash_mask=N.hash_size-1,N.hash_shift=~~((N.hash_bits+X-1)/X),N.window=new e.Buf8(N.w_size*2),N.head=new e.Buf16(N.hash_size),N.prev=new e.Buf16(N.w_size),N.lit_bufsize=1<<ue+6,N.pending_buf_size=N.lit_bufsize*4,N.pending_buf=new e.Buf8(N.pending_buf_size),N.d_buf=1*N.lit_bufsize,N.l_buf=3*N.lit_bufsize,N.level=_e,N.strategy=Ae,N.method=Ie,$e(p)}function K(p,_e){return C(p,_e,Q,he,le,S)}function A(p,_e){var Ie,L,ue,Ae;if(!p||!p.state||_e>l||_e<0)return p?z(p,b):b;if(L=p.state,!p.output||!p.input&&p.avail_in!==0||L.status===de&&_e!==c)return z(p,p.avail_out===0?T:b);if(L.strm=p,Ie=L.last_flush,L.last_flush=_e,L.status===Y)if(L.wrap===2)p.adler=0,je(L,31),je(L,139),je(L,8),L.gzhead?(je(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),je(L,L.gzhead.time&255),je(L,L.gzhead.time>>8&255),je(L,L.gzhead.time>>16&255),je(L,L.gzhead.time>>24&255),je(L,L.level===9?2:L.strategy>=R||L.level<2?4:0),je(L,L.gzhead.os&255),L.gzhead.extra&&L.gzhead.extra.length&&(je(L,L.gzhead.extra.length&255),je(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(p.adler=i(p.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=B):(je(L,0),je(L,0),je(L,0),je(L,0),je(L,0),je(L,L.level===9?2:L.strategy>=R||L.level<2?4:0),je(L,Me),L.status=G);else{var Je=Q+(L.w_bits-8<<4)<<8,N=-1;L.strategy>=R||L.level<2?N=0:L.level<6?N=1:L.level===6?N=2:N=3,Je|=N<<6,L.strstart!==0&&(Je|=x),Je+=31-Je%31,L.status=G,me(L,Je),L.strstart!==0&&(me(L,p.adler>>>16),me(L,p.adler&65535)),p.adler=1}if(L.status===B)if(L.gzhead.extra){for(ue=L.pending;L.gzindex<(L.gzhead.extra.length&65535)&&!(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>ue&&(p.adler=i(p.adler,L.pending_buf,L.pending-ue,ue)),Ne(p),ue=L.pending,L.pending===L.pending_buf_size));)je(L,L.gzhead.extra[L.gzindex]&255),L.gzindex++;L.gzhead.hcrc&&L.pending>ue&&(p.adler=i(p.adler,L.pending_buf,L.pending-ue,ue)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=j)}else L.status=j;if(L.status===j)if(L.gzhead.name){ue=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>ue&&(p.adler=i(p.adler,L.pending_buf,L.pending-ue,ue)),Ne(p),ue=L.pending,L.pending===L.pending_buf_size)){Ae=1;break}L.gzindex<L.gzhead.name.length?Ae=L.gzhead.name.charCodeAt(L.gzindex++)&255:Ae=0,je(L,Ae)}while(Ae!==0);L.gzhead.hcrc&&L.pending>ue&&(p.adler=i(p.adler,L.pending_buf,L.pending-ue,ue)),Ae===0&&(L.gzindex=0,L.status=$)}else L.status=$;if(L.status===$)if(L.gzhead.comment){ue=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>ue&&(p.adler=i(p.adler,L.pending_buf,L.pending-ue,ue)),Ne(p),ue=L.pending,L.pending===L.pending_buf_size)){Ae=1;break}L.gzindex<L.gzhead.comment.length?Ae=L.gzhead.comment.charCodeAt(L.gzindex++)&255:Ae=0,je(L,Ae)}while(Ae!==0);L.gzhead.hcrc&&L.pending>ue&&(p.adler=i(p.adler,L.pending_buf,L.pending-ue,ue)),Ae===0&&(L.status=U)}else L.status=U;if(L.status===U&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&Ne(p),L.pending+2<=L.pending_buf_size&&(je(L,p.adler&255),je(L,p.adler>>8&255),p.adler=0,L.status=G)):L.status=G),L.pending!==0){if(Ne(p),p.avail_out===0)return L.last_flush=-1,h}else if(p.avail_in===0&&J(_e)<=J(Ie)&&_e!==c)return z(p,T);if(L.status===de&&p.avail_in!==0)return z(p,T);if(p.avail_in!==0||L.lookahead!==0||_e!==s&&L.status!==de){var W=L.strategy===R?Ve(L,_e):L.strategy===v?De(L,_e):ke[L.level].func(L,_e);if((W===Se||W===Be)&&(L.status=de),W===oe||W===Se)return p.avail_out===0&&(L.last_flush=-1),h;if(W===fe&&(_e===u?t._tr_align(L):_e!==l&&(t._tr_stored_block(L,0,0,!1),_e===d&&(ge(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),Ne(p),p.avail_out===0))return L.last_flush=-1,h}return _e!==c?h:L.wrap<=0?g:(L.wrap===2?(je(L,p.adler&255),je(L,p.adler>>8&255),je(L,p.adler>>16&255),je(L,p.adler>>24&255),je(L,p.total_in&255),je(L,p.total_in>>8&255),je(L,p.total_in>>16&255),je(L,p.total_in>>24&255)):(me(L,p.adler>>>16),me(L,p.adler&65535)),Ne(p),L.wrap>0&&(L.wrap=-L.wrap),L.pending!==0?h:g)}function Te(p){var _e;return!p||!p.state?b:(_e=p.state.status,_e!==Y&&_e!==B&&_e!==j&&_e!==$&&_e!==U&&_e!==G&&_e!==de?z(p,b):(p.state=null,_e===G?z(p,_):h))}function Ke(p,_e){var Ie=_e.length,L,ue,Ae,Je,N,W,Ce,ze;if(!p||!p.state||(L=p.state,Je=L.wrap,Je===2||Je===1&&L.status!==Y||L.lookahead))return b;for(Je===1&&(p.adler=r(p.adler,_e,Ie,0)),L.wrap=0,Ie>=L.w_size&&(Je===0&&(ge(L.head),L.strstart=0,L.block_start=0,L.insert=0),ze=new e.Buf8(L.w_size),e.arraySet(ze,_e,Ie-L.w_size,L.w_size,0),_e=ze,Ie=L.w_size),N=p.avail_in,W=p.next_in,Ce=p.input,p.avail_in=Ie,p.next_in=0,p.input=_e,re(L);L.lookahead>=X;){ue=L.strstart,Ae=L.lookahead-(X-1);do L.ins_h=(L.ins_h<<L.hash_shift^L.window[ue+X-1])&L.hash_mask,L.prev[ue&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=ue,ue++;while(--Ae);L.strstart=ue,L.lookahead=X-1,re(L)}return L.strstart+=L.lookahead,L.block_start=L.strstart,L.insert=L.lookahead,L.lookahead=0,L.match_length=L.prev_length=X-1,L.match_available=0,p.next_in=W,p.input=Ce,p.avail_in=N,L.wrap=Je,h}return ln.deflateInit=K,ln.deflateInit2=C,ln.deflateReset=$e,ln.deflateResetKeep=Re,ln.deflateSetHeader=qe,ln.deflate=A,ln.deflateEnd=Te,ln.deflateSetDictionary=Ke,ln.deflateInfo="pako deflate (from Nodeca project)",ln}var en={},Bd,Cb;function KD(){if(Cb)return Bd;Cb=1;var e=30,t=12;return Bd=function(i,a){var s,u,d,c,l,h,g,b,_,T,k,E,R,v,w,S,H,Q,ie,he,le,Ee,ve,m,O;s=i.state,u=i.next_in,m=i.input,d=u+(i.avail_in-5),c=i.next_out,O=i.output,l=c-(a-i.avail_out),h=c+(i.avail_out-257),g=s.dmax,b=s.wsize,_=s.whave,T=s.wnext,k=s.window,E=s.hold,R=s.bits,v=s.lencode,w=s.distcode,S=(1<<s.lenbits)-1,H=(1<<s.distbits)-1;e:do{R<15&&(E+=m[u++]<<R,R+=8,E+=m[u++]<<R,R+=8),Q=v[E&S];t:for(;;){if(ie=Q>>>24,E>>>=ie,R-=ie,ie=Q>>>16&255,ie===0)O[c++]=Q&65535;else if(ie&16){he=Q&65535,ie&=15,ie&&(R<ie&&(E+=m[u++]<<R,R+=8),he+=E&(1<<ie)-1,E>>>=ie,R-=ie),R<15&&(E+=m[u++]<<R,R+=8,E+=m[u++]<<R,R+=8),Q=w[E&H];r:for(;;){if(ie=Q>>>24,E>>>=ie,R-=ie,ie=Q>>>16&255,ie&16){if(le=Q&65535,ie&=15,R<ie&&(E+=m[u++]<<R,R+=8,R<ie&&(E+=m[u++]<<R,R+=8)),le+=E&(1<<ie)-1,le>g){i.msg="invalid distance too far back",s.mode=e;break e}if(E>>>=ie,R-=ie,ie=c-l,le>ie){if(ie=le-ie,ie>_&&s.sane){i.msg="invalid distance too far back",s.mode=e;break e}if(Ee=0,ve=k,T===0){if(Ee+=b-ie,ie<he){he-=ie;do O[c++]=k[Ee++];while(--ie);Ee=c-le,ve=O}}else if(T<ie){if(Ee+=b+T-ie,ie-=T,ie<he){he-=ie;do O[c++]=k[Ee++];while(--ie);if(Ee=0,T<he){ie=T,he-=ie;do O[c++]=k[Ee++];while(--ie);Ee=c-le,ve=O}}}else if(Ee+=T-ie,ie<he){he-=ie;do O[c++]=k[Ee++];while(--ie);Ee=c-le,ve=O}for(;he>2;)O[c++]=ve[Ee++],O[c++]=ve[Ee++],O[c++]=ve[Ee++],he-=3;he&&(O[c++]=ve[Ee++],he>1&&(O[c++]=ve[Ee++]))}else{Ee=c-le;do O[c++]=O[Ee++],O[c++]=O[Ee++],O[c++]=O[Ee++],he-=3;while(he>2);he&&(O[c++]=O[Ee++],he>1&&(O[c++]=O[Ee++]))}}else if(ie&64){i.msg="invalid distance code",s.mode=e;break e}else{Q=w[(Q&65535)+(E&(1<<ie)-1)];continue r}break}}else if(ie&64)if(ie&32){s.mode=t;break e}else{i.msg="invalid literal/length code",s.mode=e;break e}else{Q=v[(Q&65535)+(E&(1<<ie)-1)];continue t}break}}while(u<d&&c<h);he=R>>3,u-=he,R-=he<<3,E&=(1<<R)-1,i.next_in=u,i.next_out=c,i.avail_in=u<d?5+(d-u):5-(u-d),i.avail_out=c<h?257+(h-c):257-(c-h),s.hold=E,s.bits=R},Bd}var $d,Lb;function JD(){if(Lb)return $d;Lb=1;var e=vf(),t=15,r=852,i=592,a=0,s=1,u=2,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],c=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return $d=function(b,_,T,k,E,R,v,w){var S=w.bits,H=0,Q=0,ie=0,he=0,le=0,Ee=0,ve=0,m=0,O=0,P=0,Z,ae,X,ne,F,x=null,Y=0,B,j=new e.Buf16(t+1),$=new e.Buf16(t+1),U=null,G=0,de,oe,fe;for(H=0;H<=t;H++)j[H]=0;for(Q=0;Q<k;Q++)j[_[T+Q]]++;for(le=S,he=t;he>=1&&j[he]===0;he--);if(le>he&&(le=he),he===0)return E[R++]=1<<24|64<<16|0,E[R++]=1<<24|64<<16|0,w.bits=1,0;for(ie=1;ie<he&&j[ie]===0;ie++);for(le<ie&&(le=ie),m=1,H=1;H<=t;H++)if(m<<=1,m-=j[H],m<0)return-1;if(m>0&&(b===a||he!==1))return-1;for($[1]=0,H=1;H<t;H++)$[H+1]=$[H]+j[H];for(Q=0;Q<k;Q++)_[T+Q]!==0&&(v[$[_[T+Q]]++]=Q);if(b===a?(x=U=v,B=19):b===s?(x=d,Y-=257,U=c,G-=257,B=256):(x=l,U=h,B=-1),P=0,Q=0,H=ie,F=R,Ee=le,ve=0,X=-1,O=1<<le,ne=O-1,b===s&&O>r||b===u&&O>i)return 1;for(;;){de=H-ve,v[Q]<B?(oe=0,fe=v[Q]):v[Q]>B?(oe=U[G+v[Q]],fe=x[Y+v[Q]]):(oe=96,fe=0),Z=1<<H-ve,ae=1<<Ee,ie=ae;do ae-=Z,E[F+(P>>ve)+ae]=de<<24|oe<<16|fe|0;while(ae!==0);for(Z=1<<H-1;P&Z;)Z>>=1;if(Z!==0?(P&=Z-1,P+=Z):P=0,Q++,--j[H]===0){if(H===he)break;H=_[T+v[Q]]}if(H>le&&(P&ne)!==X){for(ve===0&&(ve=le),F+=ie,Ee=H-ve,m=1<<Ee;Ee+ve<he&&(m-=j[Ee+ve],!(m<=0));)Ee++,m<<=1;if(O+=1<<Ee,b===s&&O>r||b===u&&O>i)return 1;X=P&ne,E[X]=le<<24|Ee<<16|F-R|0}}return P!==0&&(E[F+P]=H-ve<<24|64<<16|0),w.bits=le,0},$d}var Nb;function XD(){if(Nb)return en;Nb=1;var e=vf(),t=aE(),r=sE(),i=KD(),a=JD(),s=0,u=1,d=2,c=4,l=5,h=6,g=0,b=1,_=2,T=-2,k=-3,E=-4,R=-5,v=8,w=1,S=2,H=3,Q=4,ie=5,he=6,le=7,Ee=8,ve=9,m=10,O=11,P=12,Z=13,ae=14,X=15,ne=16,F=17,x=18,Y=19,B=20,j=21,$=22,U=23,G=24,de=25,oe=26,fe=27,Se=28,Be=29,Me=30,z=31,J=32,ge=852,Ne=592,Oe=15,je=Oe;function me(C){return(C>>>24&255)+(C>>>8&65280)+((C&65280)<<8)+((C&255)<<24)}function Ye(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function et(C){var K;return!C||!C.state?T:(K=C.state,C.total_in=C.total_out=K.total=0,C.msg="",K.wrap&&(C.adler=K.wrap&1),K.mode=w,K.last=0,K.havedict=0,K.dmax=32768,K.head=null,K.hold=0,K.bits=0,K.lencode=K.lendyn=new e.Buf32(ge),K.distcode=K.distdyn=new e.Buf32(Ne),K.sane=1,K.back=-1,g)}function re(C){var K;return!C||!C.state?T:(K=C.state,K.wsize=0,K.whave=0,K.wnext=0,et(C))}function xe(C,K){var A,Te;return!C||!C.state||(Te=C.state,K<0?(A=0,K=-K):(A=(K>>4)+1,K<48&&(K&=15)),K&&(K<8||K>15))?T:(Te.window!==null&&Te.wbits!==K&&(Te.window=null),Te.wrap=A,Te.wbits=K,re(C))}function M(C,K){var A,Te;return C?(Te=new Ye,C.state=Te,Te.window=null,A=xe(C,K),A!==g&&(C.state=null),A):T}function ce(C){return M(C,je)}var De=!0,Ve,Ue;function ke(C){if(De){var K;for(Ve=new e.Buf32(512),Ue=new e.Buf32(32),K=0;K<144;)C.lens[K++]=8;for(;K<256;)C.lens[K++]=9;for(;K<280;)C.lens[K++]=7;for(;K<288;)C.lens[K++]=8;for(a(u,C.lens,0,288,Ve,0,C.work,{bits:9}),K=0;K<32;)C.lens[K++]=5;a(d,C.lens,0,32,Ue,0,C.work,{bits:5}),De=!1}C.lencode=Ve,C.lenbits=9,C.distcode=Ue,C.distbits=5}function Xe(C,K,A,Te){var Ke,p=C.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),Te>=p.wsize?(e.arraySet(p.window,K,A-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(Ke=p.wsize-p.wnext,Ke>Te&&(Ke=Te),e.arraySet(p.window,K,A-Te,Ke,p.wnext),Te-=Ke,Te?(e.arraySet(p.window,K,A-Te,Te,0),p.wnext=Te,p.whave=p.wsize):(p.wnext+=Ke,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=Ke))),0}function D(C,K){var A,Te,Ke,p,_e,Ie,L,ue,Ae,Je,N,W,Ce,ze,Ge=0,rt,ot,bt,ht,ar,fr,wt,Dt,St=new e.Buf8(4),Ot,qt,tr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return T;A=C.state,A.mode===P&&(A.mode=Z),_e=C.next_out,Ke=C.output,L=C.avail_out,p=C.next_in,Te=C.input,Ie=C.avail_in,ue=A.hold,Ae=A.bits,Je=Ie,N=L,Dt=g;e:for(;;)switch(A.mode){case w:if(A.wrap===0){A.mode=Z;break}for(;Ae<16;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(A.wrap&2&&ue===35615){A.check=0,St[0]=ue&255,St[1]=ue>>>8&255,A.check=r(A.check,St,2,0),ue=0,Ae=0,A.mode=S;break}if(A.flags=0,A.head&&(A.head.done=!1),!(A.wrap&1)||(((ue&255)<<8)+(ue>>8))%31){C.msg="incorrect header check",A.mode=Me;break}if((ue&15)!==v){C.msg="unknown compression method",A.mode=Me;break}if(ue>>>=4,Ae-=4,wt=(ue&15)+8,A.wbits===0)A.wbits=wt;else if(wt>A.wbits){C.msg="invalid window size",A.mode=Me;break}A.dmax=1<<wt,C.adler=A.check=1,A.mode=ue&512?m:P,ue=0,Ae=0;break;case S:for(;Ae<16;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(A.flags=ue,(A.flags&255)!==v){C.msg="unknown compression method",A.mode=Me;break}if(A.flags&57344){C.msg="unknown header flags set",A.mode=Me;break}A.head&&(A.head.text=ue>>8&1),A.flags&512&&(St[0]=ue&255,St[1]=ue>>>8&255,A.check=r(A.check,St,2,0)),ue=0,Ae=0,A.mode=H;case H:for(;Ae<32;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}A.head&&(A.head.time=ue),A.flags&512&&(St[0]=ue&255,St[1]=ue>>>8&255,St[2]=ue>>>16&255,St[3]=ue>>>24&255,A.check=r(A.check,St,4,0)),ue=0,Ae=0,A.mode=Q;case Q:for(;Ae<16;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}A.head&&(A.head.xflags=ue&255,A.head.os=ue>>8),A.flags&512&&(St[0]=ue&255,St[1]=ue>>>8&255,A.check=r(A.check,St,2,0)),ue=0,Ae=0,A.mode=ie;case ie:if(A.flags&1024){for(;Ae<16;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}A.length=ue,A.head&&(A.head.extra_len=ue),A.flags&512&&(St[0]=ue&255,St[1]=ue>>>8&255,A.check=r(A.check,St,2,0)),ue=0,Ae=0}else A.head&&(A.head.extra=null);A.mode=he;case he:if(A.flags&1024&&(W=A.length,W>Ie&&(W=Ie),W&&(A.head&&(wt=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),e.arraySet(A.head.extra,Te,p,W,wt)),A.flags&512&&(A.check=r(A.check,Te,W,p)),Ie-=W,p+=W,A.length-=W),A.length))break e;A.length=0,A.mode=le;case le:if(A.flags&2048){if(Ie===0)break e;W=0;do wt=Te[p+W++],A.head&&wt&&A.length<65536&&(A.head.name+=String.fromCharCode(wt));while(wt&&W<Ie);if(A.flags&512&&(A.check=r(A.check,Te,W,p)),Ie-=W,p+=W,wt)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=Ee;case Ee:if(A.flags&4096){if(Ie===0)break e;W=0;do wt=Te[p+W++],A.head&&wt&&A.length<65536&&(A.head.comment+=String.fromCharCode(wt));while(wt&&W<Ie);if(A.flags&512&&(A.check=r(A.check,Te,W,p)),Ie-=W,p+=W,wt)break e}else A.head&&(A.head.comment=null);A.mode=ve;case ve:if(A.flags&512){for(;Ae<16;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(ue!==(A.check&65535)){C.msg="header crc mismatch",A.mode=Me;break}ue=0,Ae=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),C.adler=A.check=0,A.mode=P;break;case m:for(;Ae<32;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}C.adler=A.check=me(ue),ue=0,Ae=0,A.mode=O;case O:if(A.havedict===0)return C.next_out=_e,C.avail_out=L,C.next_in=p,C.avail_in=Ie,A.hold=ue,A.bits=Ae,_;C.adler=A.check=1,A.mode=P;case P:if(K===l||K===h)break e;case Z:if(A.last){ue>>>=Ae&7,Ae-=Ae&7,A.mode=fe;break}for(;Ae<3;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}switch(A.last=ue&1,ue>>>=1,Ae-=1,ue&3){case 0:A.mode=ae;break;case 1:if(ke(A),A.mode=B,K===h){ue>>>=2,Ae-=2;break e}break;case 2:A.mode=F;break;case 3:C.msg="invalid block type",A.mode=Me}ue>>>=2,Ae-=2;break;case ae:for(ue>>>=Ae&7,Ae-=Ae&7;Ae<32;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if((ue&65535)!==(ue>>>16^65535)){C.msg="invalid stored block lengths",A.mode=Me;break}if(A.length=ue&65535,ue=0,Ae=0,A.mode=X,K===h)break e;case X:A.mode=ne;case ne:if(W=A.length,W){if(W>Ie&&(W=Ie),W>L&&(W=L),W===0)break e;e.arraySet(Ke,Te,p,W,_e),Ie-=W,p+=W,L-=W,_e+=W,A.length-=W;break}A.mode=P;break;case F:for(;Ae<14;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(A.nlen=(ue&31)+257,ue>>>=5,Ae-=5,A.ndist=(ue&31)+1,ue>>>=5,Ae-=5,A.ncode=(ue&15)+4,ue>>>=4,Ae-=4,A.nlen>286||A.ndist>30){C.msg="too many length or distance symbols",A.mode=Me;break}A.have=0,A.mode=x;case x:for(;A.have<A.ncode;){for(;Ae<3;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}A.lens[tr[A.have++]]=ue&7,ue>>>=3,Ae-=3}for(;A.have<19;)A.lens[tr[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,Ot={bits:A.lenbits},Dt=a(s,A.lens,0,19,A.lencode,0,A.work,Ot),A.lenbits=Ot.bits,Dt){C.msg="invalid code lengths set",A.mode=Me;break}A.have=0,A.mode=Y;case Y:for(;A.have<A.nlen+A.ndist;){for(;Ge=A.lencode[ue&(1<<A.lenbits)-1],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(rt<=Ae);){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(bt<16)ue>>>=rt,Ae-=rt,A.lens[A.have++]=bt;else{if(bt===16){for(qt=rt+2;Ae<qt;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(ue>>>=rt,Ae-=rt,A.have===0){C.msg="invalid bit length repeat",A.mode=Me;break}wt=A.lens[A.have-1],W=3+(ue&3),ue>>>=2,Ae-=2}else if(bt===17){for(qt=rt+3;Ae<qt;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}ue>>>=rt,Ae-=rt,wt=0,W=3+(ue&7),ue>>>=3,Ae-=3}else{for(qt=rt+7;Ae<qt;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}ue>>>=rt,Ae-=rt,wt=0,W=11+(ue&127),ue>>>=7,Ae-=7}if(A.have+W>A.nlen+A.ndist){C.msg="invalid bit length repeat",A.mode=Me;break}for(;W--;)A.lens[A.have++]=wt}}if(A.mode===Me)break;if(A.lens[256]===0){C.msg="invalid code -- missing end-of-block",A.mode=Me;break}if(A.lenbits=9,Ot={bits:A.lenbits},Dt=a(u,A.lens,0,A.nlen,A.lencode,0,A.work,Ot),A.lenbits=Ot.bits,Dt){C.msg="invalid literal/lengths set",A.mode=Me;break}if(A.distbits=6,A.distcode=A.distdyn,Ot={bits:A.distbits},Dt=a(d,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,Ot),A.distbits=Ot.bits,Dt){C.msg="invalid distances set",A.mode=Me;break}if(A.mode=B,K===h)break e;case B:A.mode=j;case j:if(Ie>=6&&L>=258){C.next_out=_e,C.avail_out=L,C.next_in=p,C.avail_in=Ie,A.hold=ue,A.bits=Ae,i(C,N),_e=C.next_out,Ke=C.output,L=C.avail_out,p=C.next_in,Te=C.input,Ie=C.avail_in,ue=A.hold,Ae=A.bits,A.mode===P&&(A.back=-1);break}for(A.back=0;Ge=A.lencode[ue&(1<<A.lenbits)-1],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(rt<=Ae);){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(ot&&!(ot&240)){for(ht=rt,ar=ot,fr=bt;Ge=A.lencode[fr+((ue&(1<<ht+ar)-1)>>ht)],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(ht+rt<=Ae);){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}ue>>>=ht,Ae-=ht,A.back+=ht}if(ue>>>=rt,Ae-=rt,A.back+=rt,A.length=bt,ot===0){A.mode=oe;break}if(ot&32){A.back=-1,A.mode=P;break}if(ot&64){C.msg="invalid literal/length code",A.mode=Me;break}A.extra=ot&15,A.mode=$;case $:if(A.extra){for(qt=A.extra;Ae<qt;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}A.length+=ue&(1<<A.extra)-1,ue>>>=A.extra,Ae-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=U;case U:for(;Ge=A.distcode[ue&(1<<A.distbits)-1],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(rt<=Ae);){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(!(ot&240)){for(ht=rt,ar=ot,fr=bt;Ge=A.distcode[fr+((ue&(1<<ht+ar)-1)>>ht)],rt=Ge>>>24,ot=Ge>>>16&255,bt=Ge&65535,!(ht+rt<=Ae);){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}ue>>>=ht,Ae-=ht,A.back+=ht}if(ue>>>=rt,Ae-=rt,A.back+=rt,ot&64){C.msg="invalid distance code",A.mode=Me;break}A.offset=bt,A.extra=ot&15,A.mode=G;case G:if(A.extra){for(qt=A.extra;Ae<qt;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}A.offset+=ue&(1<<A.extra)-1,ue>>>=A.extra,Ae-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){C.msg="invalid distance too far back",A.mode=Me;break}A.mode=de;case de:if(L===0)break e;if(W=N-L,A.offset>W){if(W=A.offset-W,W>A.whave&&A.sane){C.msg="invalid distance too far back",A.mode=Me;break}W>A.wnext?(W-=A.wnext,Ce=A.wsize-W):Ce=A.wnext-W,W>A.length&&(W=A.length),ze=A.window}else ze=Ke,Ce=_e-A.offset,W=A.length;W>L&&(W=L),L-=W,A.length-=W;do Ke[_e++]=ze[Ce++];while(--W);A.length===0&&(A.mode=j);break;case oe:if(L===0)break e;Ke[_e++]=A.length,L--,A.mode=j;break;case fe:if(A.wrap){for(;Ae<32;){if(Ie===0)break e;Ie--,ue|=Te[p++]<<Ae,Ae+=8}if(N-=L,C.total_out+=N,A.total+=N,N&&(C.adler=A.check=A.flags?r(A.check,Ke,N,_e-N):t(A.check,Ke,N,_e-N)),N=L,(A.flags?ue:me(ue))!==A.check){C.msg="incorrect data check",A.mode=Me;break}ue=0,Ae=0}A.mode=Se;case Se:if(A.wrap&&A.flags){for(;Ae<32;){if(Ie===0)break e;Ie--,ue+=Te[p++]<<Ae,Ae+=8}if(ue!==(A.total&4294967295)){C.msg="incorrect length check",A.mode=Me;break}ue=0,Ae=0}A.mode=Be;case Be:Dt=b;break e;case Me:Dt=k;break e;case z:return E;case J:default:return T}return C.next_out=_e,C.avail_out=L,C.next_in=p,C.avail_in=Ie,A.hold=ue,A.bits=Ae,(A.wsize||N!==C.avail_out&&A.mode<Me&&(A.mode<fe||K!==c))&&Xe(C,C.output,C.next_out,N-C.avail_out),Je-=C.avail_in,N-=C.avail_out,C.total_in+=Je,C.total_out+=N,A.total+=N,A.wrap&&N&&(C.adler=A.check=A.flags?r(A.check,Ke,N,C.next_out-N):t(A.check,Ke,N,C.next_out-N)),C.data_type=A.bits+(A.last?64:0)+(A.mode===P?128:0)+(A.mode===B||A.mode===X?256:0),(Je===0&&N===0||K===c)&&Dt===g&&(Dt=R),Dt}function Re(C){if(!C||!C.state)return T;var K=C.state;return K.window&&(K.window=null),C.state=null,g}function $e(C,K){var A;return!C||!C.state||(A=C.state,!(A.wrap&2))?T:(A.head=K,K.done=!1,g)}function qe(C,K){var A=K.length,Te,Ke,p;return!C||!C.state||(Te=C.state,Te.wrap!==0&&Te.mode!==O)?T:Te.mode===O&&(Ke=1,Ke=t(Ke,K,A,0),Ke!==Te.check)?k:(p=Xe(C,K,A,A),p?(Te.mode=z,E):(Te.havedict=1,g))}return en.inflateReset=re,en.inflateReset2=xe,en.inflateResetKeep=et,en.inflateInit=ce,en.inflateInit2=M,en.inflate=D,en.inflateEnd=Re,en.inflateGetHeader=$e,en.inflateSetDictionary=qe,en.inflateInfo="pako inflate (from Nodeca project)",en}var xd,Bb;function YD(){return Bb||(Bb=1,xd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),xd}var $b;function QD(){return $b||($b=1,function(e){var t=vu(),r=zD(),i=ZD(),a=XD(),s=YD();for(var u in s)e[u]=s[u];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;var d=31,c=139;function l(h){if(typeof h!="number"||h<e.DEFLATE||h>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=h,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,t(this.init_done,"close before init"),t(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?i.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},l.prototype.write=function(h,g,b,_,T,k,E){return this._write(!0,h,g,b,_,T,k,E)},l.prototype.writeSync=function(h,g,b,_,T,k,E){return this._write(!1,h,g,b,_,T,k,E)},l.prototype._write=function(h,g,b,_,T,k,E,R){if(t.equal(arguments.length,8),t(this.init_done,"write before init"),t(this.mode!==e.NONE,"already finalized"),t.equal(!1,this.write_in_progress,"write already in progress"),t.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,t.equal(!1,g===void 0,"must provide flush value"),this.write_in_progress=!0,g!==e.Z_NO_FLUSH&&g!==e.Z_PARTIAL_FLUSH&&g!==e.Z_SYNC_FLUSH&&g!==e.Z_FULL_FLUSH&&g!==e.Z_FINISH&&g!==e.Z_BLOCK)throw new Error("Invalid flush value");if(b==null&&(b=ee.dist.Buffer.alloc(0),T=0,_=0),this.strm.avail_in=T,this.strm.input=b,this.strm.next_in=_,this.strm.avail_out=R,this.strm.output=k,this.strm.next_out=E,this.flush=g,!h)return this._process(),this._checkError()?this._afterSync():void 0;var v=this;return ee.dist.process.nextTick(function(){v._process(),v._after()}),this},l.prototype._afterSync=function(){var h=this.strm.avail_out,g=this.strm.avail_in;return this.write_in_progress=!1,[g,h]},l.prototype._process=function(){var h=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(h=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(h===null)break;if(this.strm.input[h]===d){if(this.gzip_id_bytes_read=1,h++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(h===null)break;this.strm.input[h]===c?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var h=this.strm.avail_out,g=this.strm.avail_in;this.write_in_progress=!1,this.callback(g,h),this.pending_close&&this.close()}},l.prototype._error=function(h){this.strm.msg&&(h=this.strm.msg),this.onerror(h,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(h,g,b,_,T){t(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),t(h>=8&&h<=15,"invalid windowBits"),t(g>=-1&&g<=9,"invalid compression level"),t(b>=1&&b<=9,"invalid memlevel"),t(_===e.Z_FILTERED||_===e.Z_HUFFMAN_ONLY||_===e.Z_RLE||_===e.Z_FIXED||_===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(g,h,b,_,T),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(h,g,b,_,T){switch(this.level=h,this.windowBits=g,this.memLevel=b,this.strategy=_,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new r,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=T,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=i.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=i.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l}(Td)),Td}var xb;function eM(){return xb||(xb=1,function(e){var t=ee.bufferPolyfill.Buffer,r=ee.requireStreamBrowserify().Transform,i=QD(),a=zi(),s=vu().ok,u=ee.bufferPolyfill.kMaxLength,d="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";i.Z_MIN_WINDOWBITS=8,i.Z_MAX_WINDOWBITS=15,i.Z_DEFAULT_WINDOWBITS=15,i.Z_MIN_CHUNK=64,i.Z_MAX_CHUNK=1/0,i.Z_DEFAULT_CHUNK=16*1024,i.Z_MIN_MEMLEVEL=1,i.Z_MAX_MEMLEVEL=9,i.Z_DEFAULT_MEMLEVEL=8,i.Z_MIN_LEVEL=-1,i.Z_MAX_LEVEL=9,i.Z_DEFAULT_LEVEL=i.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(i),l=0;l<c.length;l++){var h=c[l];h.match(/^Z/)&&Object.defineProperty(e,h,{enumerable:!0,value:i[h],writable:!1})}for(var g={Z_OK:i.Z_OK,Z_STREAM_END:i.Z_STREAM_END,Z_NEED_DICT:i.Z_NEED_DICT,Z_ERRNO:i.Z_ERRNO,Z_STREAM_ERROR:i.Z_STREAM_ERROR,Z_DATA_ERROR:i.Z_DATA_ERROR,Z_MEM_ERROR:i.Z_MEM_ERROR,Z_BUF_ERROR:i.Z_BUF_ERROR,Z_VERSION_ERROR:i.Z_VERSION_ERROR},b=Object.keys(g),_=0;_<b.length;_++){var T=b[_];g[g[T]]=T}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(g),writable:!1}),e.Deflate=R,e.Inflate=v,e.Gzip=w,e.Gunzip=S,e.DeflateRaw=H,e.InflateRaw=Q,e.Unzip=ie,e.createDeflate=function(m){return new R(m)},e.createInflate=function(m){return new v(m)},e.createDeflateRaw=function(m){return new H(m)},e.createInflateRaw=function(m){return new Q(m)},e.createGzip=function(m){return new w(m)},e.createGunzip=function(m){return new S(m)},e.createUnzip=function(m){return new ie(m)},e.deflate=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new R(O),m,P)},e.deflateSync=function(m,O){return E(new R(O),m)},e.gzip=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new w(O),m,P)},e.gzipSync=function(m,O){return E(new w(O),m)},e.deflateRaw=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new H(O),m,P)},e.deflateRawSync=function(m,O){return E(new H(O),m)},e.unzip=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new ie(O),m,P)},e.unzipSync=function(m,O){return E(new ie(O),m)},e.inflate=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new v(O),m,P)},e.inflateSync=function(m,O){return E(new v(O),m)},e.gunzip=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new S(O),m,P)},e.gunzipSync=function(m,O){return E(new S(O),m)},e.inflateRaw=function(m,O,P){return typeof O=="function"&&(P=O,O={}),k(new Q(O),m,P)},e.inflateRawSync=function(m,O){return E(new Q(O),m)};function k(m,O,P){var Z=[],ae=0;m.on("error",ne),m.on("end",F),m.end(O),X();function X(){for(var x;(x=m.read())!==null;)Z.push(x),ae+=x.length;m.once("readable",X)}function ne(x){m.removeListener("end",F),m.removeListener("readable",X),P(x)}function F(){var x,Y=null;ae>=u?Y=new RangeError(d):x=t.concat(Z,ae),Z=[],m.close(),P(Y,x)}}function E(m,O){if(typeof O=="string"&&(O=t.from(O)),!t.isBuffer(O))throw new TypeError("Not a string or buffer");var P=m._finishFlushFlag;return m._processChunk(O,P)}function R(m){if(!(this instanceof R))return new R(m);le.call(this,m,i.DEFLATE)}function v(m){if(!(this instanceof v))return new v(m);le.call(this,m,i.INFLATE)}function w(m){if(!(this instanceof w))return new w(m);le.call(this,m,i.GZIP)}function S(m){if(!(this instanceof S))return new S(m);le.call(this,m,i.GUNZIP)}function H(m){if(!(this instanceof H))return new H(m);le.call(this,m,i.DEFLATERAW)}function Q(m){if(!(this instanceof Q))return new Q(m);le.call(this,m,i.INFLATERAW)}function ie(m){if(!(this instanceof ie))return new ie(m);le.call(this,m,i.UNZIP)}function he(m){return m===i.Z_NO_FLUSH||m===i.Z_PARTIAL_FLUSH||m===i.Z_SYNC_FLUSH||m===i.Z_FULL_FLUSH||m===i.Z_FINISH||m===i.Z_BLOCK}function le(m,O){var P=this;if(this._opts=m=m||{},this._chunkSize=m.chunkSize||e.Z_DEFAULT_CHUNK,r.call(this,m),m.flush&&!he(m.flush))throw new Error("Invalid flush flag: "+m.flush);if(m.finishFlush&&!he(m.finishFlush))throw new Error("Invalid flush flag: "+m.finishFlush);if(this._flushFlag=m.flush||i.Z_NO_FLUSH,this._finishFlushFlag=typeof m.finishFlush<"u"?m.finishFlush:i.Z_FINISH,m.chunkSize&&(m.chunkSize<e.Z_MIN_CHUNK||m.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+m.chunkSize);if(m.windowBits&&(m.windowBits<e.Z_MIN_WINDOWBITS||m.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+m.windowBits);if(m.level&&(m.level<e.Z_MIN_LEVEL||m.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+m.level);if(m.memLevel&&(m.memLevel<e.Z_MIN_MEMLEVEL||m.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+m.memLevel);if(m.strategy&&m.strategy!=e.Z_FILTERED&&m.strategy!=e.Z_HUFFMAN_ONLY&&m.strategy!=e.Z_RLE&&m.strategy!=e.Z_FIXED&&m.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+m.strategy);if(m.dictionary&&!t.isBuffer(m.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(O);var Z=this;this._hadError=!1,this._handle.onerror=function(ne,F){Ee(Z),Z._hadError=!0;var x=new Error(ne);x.errno=F,x.code=e.codes[F],Z.emit("error",x)};var ae=e.Z_DEFAULT_COMPRESSION;typeof m.level=="number"&&(ae=m.level);var X=e.Z_DEFAULT_STRATEGY;typeof m.strategy=="number"&&(X=m.strategy),this._handle.init(m.windowBits||e.Z_DEFAULT_WINDOWBITS,ae,m.memLevel||e.Z_DEFAULT_MEMLEVEL,X,m.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=ae,this._strategy=X,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!P._handle},configurable:!0,enumerable:!0})}a.inherits(le,r),le.prototype.params=function(m,O,P){if(m<e.Z_MIN_LEVEL||m>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+m);if(O!=e.Z_FILTERED&&O!=e.Z_HUFFMAN_ONLY&&O!=e.Z_RLE&&O!=e.Z_FIXED&&O!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+O);if(this._level!==m||this._strategy!==O){var Z=this;this.flush(i.Z_SYNC_FLUSH,function(){s(Z._handle,"zlib binding closed"),Z._handle.params(m,O),Z._hadError||(Z._level=m,Z._strategy=O,P&&P())})}else ee.dist.process.nextTick(P)},le.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},le.prototype._flush=function(m){this._transform(t.alloc(0),"",m)},le.prototype.flush=function(m,O){var P=this,Z=this._writableState;(typeof m=="function"||m===void 0&&!O)&&(O=m,m=i.Z_FULL_FLUSH),Z.ended?O&&ee.dist.process.nextTick(O):Z.ending?O&&this.once("end",O):Z.needDrain?O&&this.once("drain",function(){return P.flush(m,O)}):(this._flushFlag=m,this.write(t.alloc(0),"",O))},le.prototype.close=function(m){Ee(this,m),ee.dist.process.nextTick(ve,this)};function Ee(m,O){O&&ee.dist.process.nextTick(O),m._handle&&(m._handle.close(),m._handle=null)}function ve(m){m.emit("close")}le.prototype._transform=function(m,O,P){var Z,ae=this._writableState,X=ae.ending||ae.ended,ne=X&&(!m||ae.length===m.length);if(m!==null&&!t.isBuffer(m))return P(new Error("invalid input"));if(!this._handle)return P(new Error("zlib binding closed"));ne?Z=this._finishFlushFlag:(Z=this._flushFlag,m.length>=ae.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),this._processChunk(m,Z,P)},le.prototype._processChunk=function(m,O,P){var Z=m&&m.length,ae=this._chunkSize-this._offset,X=0,ne=this,F=typeof P=="function";if(!F){var x=[],Y=0,B;this.on("error",function(de){B=de}),s(this._handle,"zlib binding closed");do var j=this._handle.writeSync(O,m,X,Z,this._buffer,this._offset,ae);while(!this._hadError&&G(j[0],j[1]));if(this._hadError)throw B;if(Y>=u)throw Ee(this),new RangeError(d);var $=t.concat(x,Y);return Ee(this),$}s(this._handle,"zlib binding closed");var U=this._handle.write(O,m,X,Z,this._buffer,this._offset,ae);U.buffer=m,U.callback=G;function G(de,oe){if(this&&(this.buffer=null,this.callback=null),!ne._hadError){var fe=ae-oe;if(s(fe>=0,"have should not go down"),fe>0){var Se=ne._buffer.slice(ne._offset,ne._offset+fe);ne._offset+=fe,F?ne.push(Se):(x.push(Se),Y+=Se.length)}if((oe===0||ne._offset>=ne._chunkSize)&&(ae=ne._chunkSize,ne._offset=0,ne._buffer=t.allocUnsafe(ne._chunkSize)),oe===0){if(X+=Z-de,Z=de,!F)return!0;var Be=ne._handle.write(O,m,X,Z,ne._buffer,ne._offset,ne._chunkSize);Be.callback=G,Be.buffer=m;return}if(!F)return!1;P()}}},a.inherits(R,le),a.inherits(v,le),a.inherits(w,le),a.inherits(S,le),a.inherits(H,le),a.inherits(Q,le),a.inherits(ie,le)}(Id)),Id}Object.defineProperty(Zi,"__esModule",{value:!0});Zi.InvalidStatusCodeError=Zi.InvalidCertError=void 0;const uE=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class ch extends Error{constructor(t,r){super(t),this.fingerprint256=r}}Zi.InvalidCertError=ch;class hp extends Error{constructor(t){super(`Request Failed. Status Code: ${t}`),this.statusCode=t}}Zi.InvalidStatusCodeError=hp;function fE(e,t){if(!t||t==="text"||t==="json")try{let r=new TextDecoder("utf8",{fatal:!0}).decode(e);if(t==="text")return r;try{return JSON.parse(r)}catch(i){if(t==="json")throw i;return r}}catch(r){if(t==="text"||t==="json")throw r}return e}let Db={};function lh(e,t){var b;let r={...uE,...t};const i=oE(),a=WD(),s=eM(),{promisify:u}=zi(),{resolve:d}=dp(),c=!!/^https/.test(e);let l={method:r.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const h=_=>_.replace(/:| /g,"").toLowerCase();if(r.keepAlive){const _={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},T=[c,c&&((b=r.sslPinnedCertificates)==null?void 0:b.map(k=>h(k)).sort())].join();l.agent=Db[T]||(Db[T]=new(c?a:i).Agent(_))}r.type==="json"&&(l.headers["Content-Type"]="application/json"),r.data&&(r.method||(l.method="POST"),l.body=r.type==="json"?JSON.stringify(r.data):r.data),l.headers={...l.headers,...r.headers},r.sslAllowSelfSigned&&(l.rejectUnauthorized=!1);const g=async _=>{const T=_.statusCode;if(r.redirect&&300<=T&&T<400&&_.headers.location){if(r._redirectCount==10)throw new Error("Request failed. Too much redirects.");return r._redirectCount+=1,await lh(d(e,_.headers.location),r)}if(r.expectStatusCode&&T!==r.expectStatusCode)throw _.resume(),new hp(T);let k=[];for await(const w of _)k.push(w);let E=ee.dist.Buffer.concat(k);const R=_.headers["content-encoding"];R==="br"&&(E=await u(s.brotliDecompress)(E)),(R==="gzip"||R==="deflate")&&(E=await u(s.unzip)(E));const v=fE(E,r.type);return r.full?{headers:_.headers,status:T,body:v}:v};return new Promise((_,T)=>{var w;const k=async S=>{if(S&&S.code==="DEPTH_ZERO_SELF_SIGNED_CERT")try{await lh(e,{...r,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(H){H&&H.fingerprint256&&(S=new ch(`Self-signed SSL certificate: ${H.fingerprint256}`,H.fingerprint256))}T(S)},E=(c?a:i).request(e,l,S=>{S.on("error",k),(async()=>{try{_(await g(S))}catch(H){T(H)}})()});E.on("error",k);const R=(w=r.sslPinnedCertificates)==null?void 0:w.map(S=>h(S)),v=S=>{var Q;const H=h(((Q=S.getPeerCertificate())==null?void 0:Q.fingerprint256)||"");if(!(!H&&S.isSessionReused())&&!R.includes(H))return E.emit("error",new ch(`Invalid SSL certificate: ${H} Expected: ${R}`,H)),E.abort()};r.sslPinnedCertificates&&E.on("socket",S=>{S.listeners("secureConnect").map(Q=>(Q.name||"").replace("bound ","")).includes("mfetchSecureConnect")||S.on("secureConnect",v.bind(null,S))}),r.keepAlive&&E.setNoDelay(!0),l.body&&E.write(l.body),E.end()})}const tM=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map(e=>e.toLowerCase())),rM=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map(e=>e.toLowerCase()));async function nM(e,t){let r={...uE,...t};const i=new Headers;r.type==="json"&&i.set("Content-Type","application/json");let a=new URL(e);if(a.username){const c=btoa(`${a.username}:${a.password}`);i.set("Authorization",`Basic ${c}`),a.username="",a.password=""}e=""+a;for(let c in r.headers){const l=c.toLowerCase();(tM.has(l)||r.cors&&!rM.has(l))&&i.set(c,r.headers[c])}let s={headers:i,redirect:r.redirect?"follow":"manual"};r.referrer||(s.referrerPolicy="no-referrer"),r.cors&&(s.mode="cors"),r.data&&(r.method||(s.method="POST"),s.body=r.type==="json"?JSON.stringify(r.data):r.data);const u=await fetch(e,s);if(r.expectStatusCode&&u.status!==r.expectStatusCode)throw new hp(u.status);const d=fE(new Uint8Array(await u.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(u.headers.entries()),status:u.status,body:d}:d}const iM=!!(typeof ee.dist.process=="object"&&ee.dist.process.versions&&ee.dist.process.versions.node&&ee.dist.process.versions.v8);function oM(e,t){return(iM?lh:nM)(e,t)}Zi.default=oM;Object.defineProperty(xo,"__esModule",{value:!0});xo.getProvider=xo.fetchFromProvider=void 0;const aM=Zi,sM=async(e,t)=>(await(0,aM.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result;xo.fetchFromProvider=sM;const uM=e=>{var t;if(typeof e=="string")return e;if(((t=e==null?void 0:e.connection)==null?void 0:t.url)!==void 0)return e.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")};xo.getProvider=uM;(function(e){var t=ee.commonjsGlobal&&ee.commonjsGlobal.__createBinding||(Object.create?function(a,s,u,d){d===void 0&&(d=u);var c=Object.getOwnPropertyDescriptor(s,u);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[u]}}),Object.defineProperty(a,d,c)}:function(a,s,u,d){d===void 0&&(d=u),a[d]=s[u]}),r=ee.commonjsGlobal&&ee.commonjsGlobal.__exportStar||function(a,s){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(s,u)&&t(s,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.toAscii=e.stripHexPrefix=e.padToEven=e.isHexString=e.isHexPrefixed=e.getKeys=e.getBinarySize=e.fromUtf8=e.fromAscii=e.arrayContainsArray=void 0,r(rf,e),r(df,e),r(sp,e),r(Ga,e),r(pf,e),r(vr,e),r(to,e),r(cp,e),r(eE,e),r(_f,e);var i=jt;Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),r(bf,e),r(xo,e)})(ix);var cE={exports:{}};(function(e){(function(t,r){e.exports?e.exports=r():t.log=r()})(ee.commonjsGlobal,function(){var t=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],s={},u=null;function d(k,E){var R=k[E];if(typeof R.bind=="function")return R.bind(k);try{return Function.prototype.bind.call(R,k)}catch{return function(){return Function.prototype.apply.apply(R,[k,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(k){return k==="debug"&&(k="log"),typeof console===r?!1:k==="trace"&&i?c:console[k]!==void 0?d(console,k):console.log!==void 0?d(console,"log"):t}function h(){for(var k=this.getLevel(),E=0;E<a.length;E++){var R=a[E];this[R]=E<k?t:this.methodFactory(R,k,this.name)}if(this.log=this.debug,typeof console===r&&k<this.levels.SILENT)return"No console available for logging"}function g(k){return function(){typeof console!==r&&(h.call(this),this[k].apply(this,arguments))}}function b(k,E,R){return l(k)||g.apply(this,arguments)}function _(k,E){var R=this,v,w,S,H="loglevel";typeof k=="string"?H+=":"+k:typeof k=="symbol"&&(H=void 0);function Q(ve){var m=(a[ve]||"silent").toUpperCase();if(!(typeof window===r||!H)){try{window.localStorage[H]=m;return}catch{}try{window.document.cookie=encodeURIComponent(H)+"="+m+";"}catch{}}}function ie(){var ve;if(!(typeof window===r||!H)){try{ve=window.localStorage[H]}catch{}if(typeof ve===r)try{var m=window.document.cookie,O=encodeURIComponent(H),P=m.indexOf(O+"=");P!==-1&&(ve=/^([^;]+)/.exec(m.slice(P+O.length+1))[1])}catch{}return R.levels[ve]===void 0&&(ve=void 0),ve}}function he(){if(!(typeof window===r||!H)){try{window.localStorage.removeItem(H)}catch{}try{window.document.cookie=encodeURIComponent(H)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function le(ve){var m=ve;if(typeof m=="string"&&R.levels[m.toUpperCase()]!==void 0&&(m=R.levels[m.toUpperCase()]),typeof m=="number"&&m>=0&&m<=R.levels.SILENT)return m;throw new TypeError("log.setLevel() called with invalid level: "+ve)}R.name=k,R.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},R.methodFactory=E||b,R.getLevel=function(){return S??w??v},R.setLevel=function(ve,m){return S=le(ve),m!==!1&&Q(S),h.call(R)},R.setDefaultLevel=function(ve){w=le(ve),ie()||R.setLevel(ve,!1)},R.resetLevel=function(){S=null,he(),h.call(R)},R.enableAll=function(ve){R.setLevel(R.levels.TRACE,ve)},R.disableAll=function(ve){R.setLevel(R.levels.SILENT,ve)},R.rebuild=function(){if(u!==R&&(v=le(u.getLevel())),h.call(R),u===R)for(var ve in s)s[ve].rebuild()},v=le(u?u.getLevel():"WARN");var Ee=ie();Ee!=null&&(S=le(Ee)),h.call(R)}u=new _,u.getLogger=function(E){if(typeof E!="symbol"&&typeof E!="string"||E==="")throw new TypeError("You must supply a name when creating a logger.");var R=s[E];return R||(R=s[E]=new _(E,u.methodFactory)),R};var T=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=T),u},u.getLoggers=function(){return s},u.default=u,u})})(cE);var lE=cE.exports;const Ou=ee.getDefaultExportFromCjs(lE);var Pu={exports:{}};Pu.exports;(function(e,t){var r=200,i="__lodash_hash_undefined__",a=800,s=16,u=9007199254740991,d="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",T="[object GeneratorFunction]",k="[object Map]",E="[object Number]",R="[object Null]",v="[object Object]",w="[object Proxy]",S="[object RegExp]",H="[object Set]",Q="[object String]",ie="[object Undefined]",he="[object WeakMap]",le="[object ArrayBuffer]",Ee="[object DataView]",ve="[object Float32Array]",m="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",Z="[object Int32Array]",ae="[object Uint8Array]",X="[object Uint8ClampedArray]",ne="[object Uint16Array]",F="[object Uint32Array]",x=/[\\^$.*+?()[\]{}|]/g,Y=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,j={};j[ve]=j[m]=j[O]=j[P]=j[Z]=j[ae]=j[X]=j[ne]=j[F]=!0,j[d]=j[c]=j[le]=j[h]=j[Ee]=j[g]=j[b]=j[_]=j[k]=j[E]=j[v]=j[S]=j[H]=j[Q]=j[he]=!1;var $=typeof ee.commonjsGlobal=="object"&&ee.commonjsGlobal&&ee.commonjsGlobal.Object===Object&&ee.commonjsGlobal,U=typeof self=="object"&&self&&self.Object===Object&&self,G=$||U||Function("return this")(),de=t&&!t.nodeType&&t,oe=de&&!0&&e&&!e.nodeType&&e,fe=oe&&oe.exports===de,Se=fe&&$.process,Be=function(){try{var te=oe&&oe.require&&oe.require("util").types;return te||Se&&Se.binding&&Se.binding("util")}catch{}}(),Me=Be&&Be.isTypedArray;function z(te,ye,Le){switch(Le.length){case 0:return te.call(ye);case 1:return te.call(ye,Le[0]);case 2:return te.call(ye,Le[0],Le[1]);case 3:return te.call(ye,Le[0],Le[1],Le[2])}return te.apply(ye,Le)}function J(te,ye){for(var Le=-1,nt=Array(te);++Le<te;)nt[Le]=ye(Le);return nt}function ge(te){return function(ye){return te(ye)}}function Ne(te,ye){return te==null?void 0:te[ye]}function Oe(te,ye){return function(Le){return te(ye(Le))}}var je=Array.prototype,me=Function.prototype,Ye=Object.prototype,et=G["__core-js_shared__"],re=me.toString,xe=Ye.hasOwnProperty,M=function(){var te=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),ce=Ye.toString,De=re.call(Object),Ve=RegExp("^"+re.call(xe).replace(x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=fe?G.Buffer:void 0,ke=G.Symbol,Xe=G.Uint8Array;Ue&&Ue.allocUnsafe;var D=Oe(Object.getPrototypeOf,Object),Re=Object.create,$e=Ye.propertyIsEnumerable,qe=je.splice,C=ke?ke.toStringTag:void 0,K=function(){try{var te=Wo(Object,"defineProperty");return te({},"",{}),te}catch{}}(),A=Ue?Ue.isBuffer:void 0,Te=Math.max,Ke=Date.now,p=Wo(G,"Map"),_e=Wo(Object,"create"),Ie=function(){function te(){}return function(ye){if(!Dn(ye))return{};if(Re)return Re(ye);te.prototype=ye;var Le=new te;return te.prototype=void 0,Le}}();function L(te){var ye=-1,Le=te==null?0:te.length;for(this.clear();++ye<Le;){var nt=te[ye];this.set(nt[0],nt[1])}}function ue(){this.__data__=_e?_e(null):{},this.size=0}function Ae(te){var ye=this.has(te)&&delete this.__data__[te];return this.size-=ye?1:0,ye}function Je(te){var ye=this.__data__;if(_e){var Le=ye[te];return Le===i?void 0:Le}return xe.call(ye,te)?ye[te]:void 0}function N(te){var ye=this.__data__;return _e?ye[te]!==void 0:xe.call(ye,te)}function W(te,ye){var Le=this.__data__;return this.size+=this.has(te)?0:1,Le[te]=_e&&ye===void 0?i:ye,this}L.prototype.clear=ue,L.prototype.delete=Ae,L.prototype.get=Je,L.prototype.has=N,L.prototype.set=W;function Ce(te){var ye=-1,Le=te==null?0:te.length;for(this.clear();++ye<Le;){var nt=te[ye];this.set(nt[0],nt[1])}}function ze(){this.__data__=[],this.size=0}function Ge(te){var ye=this.__data__,Le=bn(ye,te);if(Le<0)return!1;var nt=ye.length-1;return Le==nt?ye.pop():qe.call(ye,Le,1),--this.size,!0}function rt(te){var ye=this.__data__,Le=bn(ye,te);return Le<0?void 0:ye[Le][1]}function ot(te){return bn(this.__data__,te)>-1}function bt(te,ye){var Le=this.__data__,nt=bn(Le,te);return nt<0?(++this.size,Le.push([te,ye])):Le[nt][1]=ye,this}Ce.prototype.clear=ze,Ce.prototype.delete=Ge,Ce.prototype.get=rt,Ce.prototype.has=ot,Ce.prototype.set=bt;function ht(te){var ye=-1,Le=te==null?0:te.length;for(this.clear();++ye<Le;){var nt=te[ye];this.set(nt[0],nt[1])}}function ar(){this.size=0,this.__data__={hash:new L,map:new(p||Ce),string:new L}}function fr(te){var ye=Pi(this,te).delete(te);return this.size-=ye?1:0,ye}function wt(te){return Pi(this,te).get(te)}function Dt(te){return Pi(this,te).has(te)}function St(te,ye){var Le=Pi(this,te),nt=Le.size;return Le.set(te,ye),this.size+=Le.size==nt?0:1,this}ht.prototype.clear=ar,ht.prototype.delete=fr,ht.prototype.get=wt,ht.prototype.has=Dt,ht.prototype.set=St;function Ot(te){var ye=this.__data__=new Ce(te);this.size=ye.size}function qt(){this.__data__=new Ce,this.size=0}function tr(te){var ye=this.__data__,Le=ye.delete(te);return this.size=ye.size,Le}function Gt(te){return this.__data__.get(te)}function Vt(te){return this.__data__.has(te)}function $n(te,ye){var Le=this.__data__;if(Le instanceof Ce){var nt=Le.__data__;if(!p||nt.length<r-1)return nt.push([te,ye]),this.size=++Le.size,this;Le=this.__data__=new ht(nt)}return Le.set(te,ye),this.size=Le.size,this}Ot.prototype.clear=qt,Ot.prototype.delete=tr,Ot.prototype.get=Gt,Ot.prototype.has=Vt,Ot.prototype.set=$n;function yn(te,ye){var Le=Zo(te),nt=!Le&&Vo(te),mt=!Le&&!nt&&us(te),It=!Le&&!nt&&!mt&&cs(te),Mt=Le||nt||mt||It,ft=Mt?J(te.length,String):[],Nt=ft.length;for(var rr in te)Mt&&(rr=="length"||mt&&(rr=="offset"||rr=="parent")||It&&(rr=="buffer"||rr=="byteLength"||rr=="byteOffset")||no(rr,Nt))||ft.push(rr);return ft}function xn(te,ye,Le){(Le!==void 0&&!Ci(te[ye],Le)||Le===void 0&&!(ye in te))&&Wr(te,ye,Le)}function _n(te,ye,Le){var nt=te[ye];(!(xe.call(te,ye)&&Ci(nt,Le))||Le===void 0&&!(ye in te))&&Wr(te,ye,Le)}function bn(te,ye){for(var Le=te.length;Le--;)if(Ci(te[Le][0],ye))return Le;return-1}function Wr(te,ye,Le){ye=="__proto__"&&K?K(te,ye,{configurable:!0,enumerable:!0,value:Le,writable:!0}):te[ye]=Le}var Oi=ro();function mn(te){return te==null?te===void 0?ie:R:C&&C in Object(te)?Qa(te):rs(te)}function ri(te){return Mn(te)&&mn(te)==d}function ni(te){if(!Dn(te)||zo(te))return!1;var ye=Jo(te)?Ve:Y;return ye.test(as(te))}function ii(te){return Mn(te)&&fs(te.length)&&!!j[mn(te)]}function oi(te){if(!Dn(te))return ai(te);var ye=io(te),Le=[];for(var nt in te)nt=="constructor"&&(ye||!xe.call(te,nt))||Le.push(nt);return Le}function Za(te,ye,Le,nt,mt){te!==ye&&Oi(ye,function(It,Mt){if(mt||(mt=new Ot),Dn(It))Sf(te,ye,Mt,Le,Za,nt,mt);else{var ft=nt?nt(Go(te,Mt),It,Mt+"",te,ye,mt):void 0;ft===void 0&&(ft=It),xn(te,Mt,ft)}},ls)}function Sf(te,ye,Le,nt,mt,It,Mt){var ft=Go(te,Le),Nt=Go(ye,Le),rr=Mt.get(Nt);if(rr){xn(te,Le,rr);return}var hr=It?It(ft,Nt,Le+"",te,ye,Mt):void 0,Fn=hr===void 0;if(Fn){var pr=Zo(Nt),oo=!pr&&us(Nt),Xo=!pr&&!oo&&cs(Nt);hr=Nt,pr||oo||Xo?Zo(ft)?hr=ft:ss(ft)?hr=Ho(ft):oo?(Fn=!1,hr=Ka(Nt)):Xo?(Fn=!1,hr=Xa(Nt)):hr=[]:Of(Nt)||Vo(Nt)?(hr=ft,Vo(ft)?hr=Pf(ft):(!Dn(ft)||Jo(ft))&&(hr=es(Nt))):Fn=!1}Fn&&(Mt.set(Nt,hr),mt(hr,Nt,nt,It,Mt),Mt.delete(Nt)),xn(te,Le,hr)}function Af(te,ye){return is(ns(te,ye,Pt),te+"")}var Rf=K?function(te,ye){return K(te,"toString",{configurable:!0,enumerable:!1,value:Bt(ye),writable:!0})}:Pt;function Ka(te,ye){return te.slice()}function Ja(te){var ye=new te.constructor(te.byteLength);return new Xe(ye).set(new Xe(te)),ye}function Xa(te,ye){var Le=Ja(te.buffer);return new te.constructor(Le,te.byteOffset,te.length)}function Ho(te,ye){var Le=-1,nt=te.length;for(ye||(ye=Array(nt));++Le<nt;)ye[Le]=te[Le];return ye}function If(te,ye,Le,nt){var mt=!Le;Le||(Le={});for(var It=-1,Mt=ye.length;++It<Mt;){var ft=ye[It],Nt=void 0;Nt===void 0&&(Nt=te[ft]),mt?Wr(Le,ft,Nt):_n(Le,ft,Nt)}return Le}function Ya(te){return Af(function(ye,Le){var nt=-1,mt=Le.length,It=mt>1?Le[mt-1]:void 0,Mt=mt>2?Le[2]:void 0;for(It=te.length>3&&typeof It=="function"?(mt--,It):void 0,Mt&&Tf(Le[0],Le[1],Mt)&&(It=mt<3?void 0:It,mt=1),ye=Object(ye);++nt<mt;){var ft=Le[nt];ft&&te(ye,ft,nt,It)}return ye})}function ro(te){return function(ye,Le,nt){for(var mt=-1,It=Object(ye),Mt=nt(ye),ft=Mt.length;ft--;){var Nt=Mt[++mt];if(Le(It[Nt],Nt,It)===!1)break}return ye}}function Pi(te,ye){var Le=te.__data__;return ts(ye)?Le[typeof ye=="string"?"string":"hash"]:Le.map}function Wo(te,ye){var Le=Ne(te,ye);return ni(Le)?Le:void 0}function Qa(te){var ye=xe.call(te,C),Le=te[C];try{te[C]=void 0;var nt=!0}catch{}var mt=ce.call(te);return nt&&(ye?te[C]=Le:delete te[C]),mt}function es(te){return typeof te.constructor=="function"&&!io(te)?Ie(D(te)):{}}function no(te,ye){var Le=typeof te;return ye=ye??u,!!ye&&(Le=="number"||Le!="symbol"&&B.test(te))&&te>-1&&te%1==0&&te<ye}function Tf(te,ye,Le){if(!Dn(Le))return!1;var nt=typeof ye;return(nt=="number"?Ko(Le)&&no(ye,Le.length):nt=="string"&&ye in Le)?Ci(Le[ye],te):!1}function ts(te){var ye=typeof te;return ye=="string"||ye=="number"||ye=="symbol"||ye=="boolean"?te!=="__proto__":te===null}function zo(te){return!!M&&M in te}function io(te){var ye=te&&te.constructor,Le=typeof ye=="function"&&ye.prototype||Ye;return te===Le}function ai(te){var ye=[];if(te!=null)for(var Le in Object(te))ye.push(Le);return ye}function rs(te){return ce.call(te)}function ns(te,ye,Le){return ye=Te(ye===void 0?te.length-1:ye,0),function(){for(var nt=arguments,mt=-1,It=Te(nt.length-ye,0),Mt=Array(It);++mt<It;)Mt[mt]=nt[ye+mt];mt=-1;for(var ft=Array(ye+1);++mt<ye;)ft[mt]=nt[mt];return ft[ye]=Le(Mt),z(te,this,ft)}}function Go(te,ye){if(!(ye==="constructor"&&typeof te[ye]=="function")&&ye!="__proto__")return te[ye]}var is=os(Rf);function os(te){var ye=0,Le=0;return function(){var nt=Ke(),mt=s-(nt-Le);if(Le=nt,mt>0){if(++ye>=a)return arguments[0]}else ye=0;return te.apply(void 0,arguments)}}function as(te){if(te!=null){try{return re.call(te)}catch{}try{return te+""}catch{}}return""}function Ci(te,ye){return te===ye||te!==te&&ye!==ye}var Vo=ri(function(){return arguments}())?ri:function(te){return Mn(te)&&xe.call(te,"callee")&&!$e.call(te,"callee")},Zo=Array.isArray;function Ko(te){return te!=null&&fs(te.length)&&!Jo(te)}function ss(te){return Mn(te)&&Ko(te)}var us=A||Lf;function Jo(te){if(!Dn(te))return!1;var ye=mn(te);return ye==_||ye==T||ye==l||ye==w}function fs(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=u}function Dn(te){var ye=typeof te;return te!=null&&(ye=="object"||ye=="function")}function Mn(te){return te!=null&&typeof te=="object"}function Of(te){if(!Mn(te)||mn(te)!=v)return!1;var ye=D(te);if(ye===null)return!0;var Le=xe.call(ye,"constructor")&&ye.constructor;return typeof Le=="function"&&Le instanceof Le&&re.call(Le)==De}var cs=Me?ge(Me):ii;function Pf(te){return If(te,ls(te))}function ls(te){return Ko(te)?yn(te):oi(te)}var Cf=Ya(function(te,ye,Le){Za(te,ye,Le)});function Bt(te){return function(){return te}}function Pt(te){return te}function Lf(){return!1}e.exports=Cf})(Pu,Pu.exports);Pu.exports;const fM=Ou.getLogger("http-helpers");fM.setLevel(lE.levels.INFO);var Cu={exports:{}};/**
79
79
  * @license
80
80
  * Lodash <https://lodash.com/>
81
81
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
82
82
  * Released under MIT license <https://lodash.com/license>
83
83
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
84
84
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
85
- */Lf.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",d="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,h="__lodash_placeholder__",_=1,b=2,y=4,T=1,k=2,E=1,I=2,v=4,w=8,S=16,H=32,Q=64,ie=128,he=256,le=512,Ee=30,ve="...",m=800,O=16,P=1,Z=2,ae=3,X=1/0,ne=9007199254740991,F=17976931348623157e292,x=NaN,Y=4294967295,B=Y-1,j=Y>>>1,$=[["ary",ie],["bind",E],["bindKey",I],["curry",w],["curryRight",S],["flip",le],["partial",H],["partialRight",Q],["rearg",he]],U="[object Arguments]",G="[object Array]",de="[object AsyncFunction]",oe="[object Boolean]",ue="[object Date]",Se="[object DOMException]",Be="[object Error]",Me="[object Function]",z="[object GeneratorFunction]",J="[object Map]",ge="[object Number]",Ne="[object Null]",Te="[object Object]",je="[object Promise]",me="[object Proxy]",Ye="[object RegExp]",et="[object Set]",re="[object String]",xe="[object Symbol]",M="[object Undefined]",ce="[object WeakMap]",De="[object WeakSet]",Ve="[object ArrayBuffer]",Ue="[object DataView]",ke="[object Float32Array]",Xe="[object Float64Array]",D="[object Int8Array]",Re="[object Int16Array]",$e="[object Int32Array]",qe="[object Uint8Array]",C="[object Uint8ClampedArray]",K="[object Uint16Array]",A="[object Uint32Array]",Oe=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,p=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,L=RegExp(_e.source),fe=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Je=/<%([\s\S]+?)%>/g,N=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ge=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(Ge.source),ot=/^\s+/,bt=/\s/,ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ar=/\{\n\/\* \[wrapped with (.+)\] \*/,ur=/,? & /,wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dt=/[()=,{}\[\]\/\s]/,St=/\\(\\)?/g,Tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qt=/\w*$/,tr=/^[-+]0x[0-9a-f]+$/i,Gt=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,$n=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,bn=/['\n\r\u2028\u2029\\]/g,Wr="\\ud800-\\udfff",Ti="\\u0300-\\u036f",mn="\\ufe20-\\ufe2f",ri="\\u20d0-\\u20ff",ni=Ti+mn+ri,ii="\\u2700-\\u27bf",oi="a-z\\xdf-\\xf6\\xf8-\\xff",Za="\\xac\\xb1\\xd7\\xf7",Su="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Au="\\u2000-\\u206f",Ru=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ka="A-Z\\xc0-\\xd6\\xd8-\\xde",Ja="\\ufe0e\\ufe0f",Xa=Za+Su+Au+Ru,Ho="['’]",Iu="["+Wr+"]",Ya="["+Xa+"]",ro="["+ni+"]",Pi="\\d+",Wo="["+ii+"]",Qa="["+oi+"]",es="[^"+Wr+Xa+Pi+ii+oi+Ka+"]",no="\\ud83c[\\udffb-\\udfff]",Ou="(?:"+ro+"|"+no+")",ts="[^"+Wr+"]",zo="(?:\\ud83c[\\udde6-\\uddff]){2}",io="[\\ud800-\\udbff][\\udc00-\\udfff]",ai="["+Ka+"]",rs="\\u200d",ns="(?:"+Qa+"|"+es+")",Go="(?:"+ai+"|"+es+")",is="(?:"+Ho+"(?:d|ll|m|re|s|t|ve))?",os="(?:"+Ho+"(?:D|LL|M|RE|S|T|VE))?",as=Ou+"?",Ci="["+Ja+"]?",Vo="(?:"+rs+"(?:"+[ts,zo,io].join("|")+")"+Ci+as+")*",Zo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ko="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ss=Ci+as+Vo,fs="(?:"+[Wo,zo,io].join("|")+")"+ss,Jo="(?:"+[ts+ro+"?",ro,zo,io,Iu].join("|")+")",us=RegExp(Ho,"g"),Dn=RegExp(ro,"g"),Mn=RegExp(no+"(?="+no+")|"+Jo+ss,"g"),Tu=RegExp([ai+"?"+Qa+"+"+is+"(?="+[Ya,ai,"$"].join("|")+")",Go+"+"+os+"(?="+[Ya,ai+ns,"$"].join("|")+")",ai+"?"+ns+"+"+is,ai+"+"+os,Ko,Zo,Pi,fs].join("|"),"g"),cs=RegExp("["+rs+Wr+ni+Ja+"]"),Pu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ls=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Cu=-1,Bt={};Bt[ke]=Bt[Xe]=Bt[D]=Bt[Re]=Bt[$e]=Bt[qe]=Bt[C]=Bt[K]=Bt[A]=!0,Bt[U]=Bt[G]=Bt[Ve]=Bt[oe]=Bt[Ue]=Bt[ue]=Bt[Be]=Bt[Me]=Bt[J]=Bt[ge]=Bt[Te]=Bt[Ye]=Bt[et]=Bt[re]=Bt[ce]=!1;var Pt={};Pt[U]=Pt[G]=Pt[Ve]=Pt[Ue]=Pt[oe]=Pt[ue]=Pt[ke]=Pt[Xe]=Pt[D]=Pt[Re]=Pt[$e]=Pt[J]=Pt[ge]=Pt[Te]=Pt[Ye]=Pt[et]=Pt[re]=Pt[xe]=Pt[qe]=Pt[C]=Pt[K]=Pt[A]=!0,Pt[Be]=Pt[Me]=Pt[ce]=!1;var Lu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ye={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,mt=parseInt,It=typeof ee.commonjsGlobal=="object"&&ee.commonjsGlobal&&ee.commonjsGlobal.Object===Object&&ee.commonjsGlobal,Mt=typeof self=="object"&&self&&self.Object===Object&&self,ut=It||Mt||Function("return this")(),Nt=t&&!t.nodeType&&t,rr=Nt&&!0&&e&&!e.nodeType&&e,hr=rr&&rr.exports===Nt,Fn=hr&&It.process,pr=function(){try{var be=rr&&rr.require&&rr.require("util").types;return be||Fn&&Fn.binding&&Fn.binding("util")}catch{}}(),oo=pr&&pr.isArrayBuffer,Xo=pr&&pr.isDate,hp=pr&&pr.isMap,pp=pr&&pr.isRegExp,gp=pr&&pr.isSet,yp=pr&&pr.isTypedArray;function xr(be,Fe,Pe){switch(Pe.length){case 0:return be.call(Fe);case 1:return be.call(Fe,Pe[0]);case 2:return be.call(Fe,Pe[0],Pe[1]);case 3:return be.call(Fe,Pe[0],Pe[1],Pe[2])}return be.apply(Fe,Pe)}function cE(be,Fe,Pe,tt){for(var lt=-1,Rt=be==null?0:be.length;++lt<Rt;){var nr=be[lt];Fe(tt,nr,Pe(nr),be)}return tt}function zr(be,Fe){for(var Pe=-1,tt=be==null?0:be.length;++Pe<tt&&Fe(be[Pe],Pe,be)!==!1;);return be}function lE(be,Fe){for(var Pe=be==null?0:be.length;Pe--&&Fe(be[Pe],Pe,be)!==!1;);return be}function _p(be,Fe){for(var Pe=-1,tt=be==null?0:be.length;++Pe<tt;)if(!Fe(be[Pe],Pe,be))return!1;return!0}function si(be,Fe){for(var Pe=-1,tt=be==null?0:be.length,lt=0,Rt=[];++Pe<tt;){var nr=be[Pe];Fe(nr,Pe,be)&&(Rt[lt++]=nr)}return Rt}function ds(be,Fe){var Pe=be==null?0:be.length;return!!Pe&&ao(be,Fe,0)>-1}function Nu(be,Fe,Pe){for(var tt=-1,lt=be==null?0:be.length;++tt<lt;)if(Pe(Fe,be[tt]))return!0;return!1}function Ht(be,Fe){for(var Pe=-1,tt=be==null?0:be.length,lt=Array(tt);++Pe<tt;)lt[Pe]=Fe(be[Pe],Pe,be);return lt}function fi(be,Fe){for(var Pe=-1,tt=Fe.length,lt=be.length;++Pe<tt;)be[lt+Pe]=Fe[Pe];return be}function Bu(be,Fe,Pe,tt){var lt=-1,Rt=be==null?0:be.length;for(tt&&Rt&&(Pe=be[++lt]);++lt<Rt;)Pe=Fe(Pe,be[lt],lt,be);return Pe}function dE(be,Fe,Pe,tt){var lt=be==null?0:be.length;for(tt&&lt&&(Pe=be[--lt]);lt--;)Pe=Fe(Pe,be[lt],lt,be);return Pe}function $u(be,Fe){for(var Pe=-1,tt=be==null?0:be.length;++Pe<tt;)if(Fe(be[Pe],Pe,be))return!0;return!1}var hE=xu("length");function pE(be){return be.split("")}function gE(be){return be.match(wt)||[]}function bp(be,Fe,Pe){var tt;return Pe(be,function(lt,Rt,nr){if(Fe(lt,Rt,nr))return tt=Rt,!1}),tt}function hs(be,Fe,Pe,tt){for(var lt=be.length,Rt=Pe+(tt?1:-1);tt?Rt--:++Rt<lt;)if(Fe(be[Rt],Rt,be))return Rt;return-1}function ao(be,Fe,Pe){return Fe===Fe?OE(be,Fe,Pe):hs(be,mp,Pe)}function yE(be,Fe,Pe,tt){for(var lt=Pe-1,Rt=be.length;++lt<Rt;)if(tt(be[lt],Fe))return lt;return-1}function mp(be){return be!==be}function vp(be,Fe){var Pe=be==null?0:be.length;return Pe?Mu(be,Fe)/Pe:x}function xu(be){return function(Fe){return Fe==null?r:Fe[be]}}function Du(be){return function(Fe){return be==null?r:be[Fe]}}function wp(be,Fe,Pe,tt,lt){return lt(be,function(Rt,nr,$t){Pe=tt?(tt=!1,Rt):Fe(Pe,Rt,nr,$t)}),Pe}function _E(be,Fe){var Pe=be.length;for(be.sort(Fe);Pe--;)be[Pe]=be[Pe].value;return be}function Mu(be,Fe){for(var Pe,tt=-1,lt=be.length;++tt<lt;){var Rt=Fe(be[tt]);Rt!==r&&(Pe=Pe===r?Rt:Pe+Rt)}return Pe}function Fu(be,Fe){for(var Pe=-1,tt=Array(be);++Pe<be;)tt[Pe]=Fe(Pe);return tt}function bE(be,Fe){return Ht(Fe,function(Pe){return[Pe,be[Pe]]})}function Ep(be){return be&&be.slice(0,Ip(be)+1).replace(ot,"")}function Dr(be){return function(Fe){return be(Fe)}}function ju(be,Fe){return Ht(Fe,function(Pe){return be[Pe]})}function Yo(be,Fe){return be.has(Fe)}function Sp(be,Fe){for(var Pe=-1,tt=be.length;++Pe<tt&&ao(Fe,be[Pe],0)>-1;);return Pe}function Ap(be,Fe){for(var Pe=be.length;Pe--&&ao(Fe,be[Pe],0)>-1;);return Pe}function mE(be,Fe){for(var Pe=be.length,tt=0;Pe--;)be[Pe]===Fe&&++tt;return tt}var vE=Du(Lu),wE=Du(te);function EE(be){return"\\"+Le[be]}function SE(be,Fe){return be==null?r:be[Fe]}function so(be){return cs.test(be)}function AE(be){return Pu.test(be)}function RE(be){for(var Fe,Pe=[];!(Fe=be.next()).done;)Pe.push(Fe.value);return Pe}function ku(be){var Fe=-1,Pe=Array(be.size);return be.forEach(function(tt,lt){Pe[++Fe]=[lt,tt]}),Pe}function Rp(be,Fe){return function(Pe){return be(Fe(Pe))}}function ui(be,Fe){for(var Pe=-1,tt=be.length,lt=0,Rt=[];++Pe<tt;){var nr=be[Pe];(nr===Fe||nr===h)&&(be[Pe]=h,Rt[lt++]=Pe)}return Rt}function ps(be){var Fe=-1,Pe=Array(be.size);return be.forEach(function(tt){Pe[++Fe]=tt}),Pe}function IE(be){var Fe=-1,Pe=Array(be.size);return be.forEach(function(tt){Pe[++Fe]=[tt,tt]}),Pe}function OE(be,Fe,Pe){for(var tt=Pe-1,lt=be.length;++tt<lt;)if(be[tt]===Fe)return tt;return-1}function TE(be,Fe,Pe){for(var tt=Pe+1;tt--;)if(be[tt]===Fe)return tt;return tt}function fo(be){return so(be)?CE(be):hE(be)}function an(be){return so(be)?LE(be):pE(be)}function Ip(be){for(var Fe=be.length;Fe--&&bt.test(be.charAt(Fe)););return Fe}var PE=Du(ye);function CE(be){for(var Fe=Mn.lastIndex=0;Mn.test(be);)++Fe;return Fe}function LE(be){return be.match(Mn)||[]}function NE(be){return be.match(Tu)||[]}var BE=function be(Fe){Fe=Fe==null?ut:uo.defaults(ut.Object(),Fe,uo.pick(ut,ls));var Pe=Fe.Array,tt=Fe.Date,lt=Fe.Error,Rt=Fe.Function,nr=Fe.Math,$t=Fe.Object,Uu=Fe.RegExp,$E=Fe.String,Gr=Fe.TypeError,gs=Pe.prototype,xE=Rt.prototype,co=$t.prototype,ys=Fe["__core-js_shared__"],_s=xE.toString,Ct=co.hasOwnProperty,DE=0,Op=function(){var n=/[^.]+$/.exec(ys&&ys.keys&&ys.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),bs=co.toString,ME=_s.call($t),FE=ut._,jE=Uu("^"+_s.call(Ct).replace(Ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ms=hr?Fe.Buffer:r,ci=Fe.Symbol,vs=Fe.Uint8Array,Tp=ms?ms.allocUnsafe:r,ws=Rp($t.getPrototypeOf,$t),Pp=$t.create,Cp=co.propertyIsEnumerable,Es=gs.splice,Lp=ci?ci.isConcatSpreadable:r,Qo=ci?ci.iterator:r,Li=ci?ci.toStringTag:r,Ss=function(){try{var n=Di($t,"defineProperty");return n({},"",{}),n}catch{}}(),kE=Fe.clearTimeout!==ut.clearTimeout&&Fe.clearTimeout,UE=tt&&tt.now!==ut.Date.now&&tt.now,qE=Fe.setTimeout!==ut.setTimeout&&Fe.setTimeout,As=nr.ceil,Rs=nr.floor,qu=$t.getOwnPropertySymbols,HE=ms?ms.isBuffer:r,Np=Fe.isFinite,WE=gs.join,zE=Rp($t.keys,$t),ir=nr.max,gr=nr.min,GE=tt.now,VE=Fe.parseInt,Bp=nr.random,ZE=gs.reverse,Hu=Di(Fe,"DataView"),ea=Di(Fe,"Map"),Wu=Di(Fe,"Promise"),lo=Di(Fe,"Set"),ta=Di(Fe,"WeakMap"),ra=Di($t,"create"),Is=ta&&new ta,ho={},KE=Mi(Hu),JE=Mi(ea),XE=Mi(Wu),YE=Mi(lo),QE=Mi(ta),Os=ci?ci.prototype:r,na=Os?Os.valueOf:r,$p=Os?Os.toString:r;function q(n){if(Zt(n)&&!dt(n)&&!(n instanceof vt)){if(n instanceof Vr)return n;if(Ct.call(n,"__wrapped__"))return xg(n)}return new Vr(n)}var po=function(){function n(){}return function(o){if(!Wt(o))return{};if(Pp)return Pp(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Ts(){}function Vr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}q.templateSettings={escape:Ae,evaluate:Je,interpolate:N,variable:"",imports:{_:q}},q.prototype=Ts.prototype,q.prototype.constructor=q,Vr.prototype=po(Ts.prototype),Vr.prototype.constructor=Vr;function vt(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function e1(){var n=new vt(this.__wrapped__);return n.__actions__=Tr(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Tr(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Tr(this.__views__),n}function t1(){if(this.__filtered__){var n=new vt(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function r1(){var n=this.__wrapped__.value(),o=this.__dir__,u=dt(n),g=o<0,R=u?n.length:0,V=pS(0,R,this.__views__),se=V.start,pe=V.end,we=pe-se,He=g?pe:se-1,We=this.__iteratees__,Ze=We.length,Qe=0,it=gr(we,this.__takeCount__);if(!u||!g&&R==we&&it==we)return ig(n,this.__actions__);var st=[];e:for(;we--&&Qe<it;){He+=o;for(var gt=-1,ft=n[He];++gt<Ze;){var _t=We[gt],Et=_t.iteratee,jr=_t.type,Ar=Et(ft);if(jr==Z)ft=Ar;else if(!Ar){if(jr==P)continue e;break e}}st[Qe++]=ft}return st}vt.prototype=po(Ts.prototype),vt.prototype.constructor=vt;function Ni(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var g=n[o];this.set(g[0],g[1])}}function n1(){this.__data__=ra?ra(null):{},this.size=0}function i1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function o1(n){var o=this.__data__;if(ra){var u=o[n];return u===c?r:u}return Ct.call(o,n)?o[n]:r}function a1(n){var o=this.__data__;return ra?o[n]!==r:Ct.call(o,n)}function s1(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ra&&o===r?c:o,this}Ni.prototype.clear=n1,Ni.prototype.delete=i1,Ni.prototype.get=o1,Ni.prototype.has=a1,Ni.prototype.set=s1;function jn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var g=n[o];this.set(g[0],g[1])}}function f1(){this.__data__=[],this.size=0}function u1(n){var o=this.__data__,u=Ps(o,n);if(u<0)return!1;var g=o.length-1;return u==g?o.pop():Es.call(o,u,1),--this.size,!0}function c1(n){var o=this.__data__,u=Ps(o,n);return u<0?r:o[u][1]}function l1(n){return Ps(this.__data__,n)>-1}function d1(n,o){var u=this.__data__,g=Ps(u,n);return g<0?(++this.size,u.push([n,o])):u[g][1]=o,this}jn.prototype.clear=f1,jn.prototype.delete=u1,jn.prototype.get=c1,jn.prototype.has=l1,jn.prototype.set=d1;function kn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var g=n[o];this.set(g[0],g[1])}}function h1(){this.size=0,this.__data__={hash:new Ni,map:new(ea||jn),string:new Ni}}function p1(n){var o=Us(this,n).delete(n);return this.size-=o?1:0,o}function g1(n){return Us(this,n).get(n)}function y1(n){return Us(this,n).has(n)}function _1(n,o){var u=Us(this,n),g=u.size;return u.set(n,o),this.size+=u.size==g?0:1,this}kn.prototype.clear=h1,kn.prototype.delete=p1,kn.prototype.get=g1,kn.prototype.has=y1,kn.prototype.set=_1;function Bi(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new kn;++o<u;)this.add(n[o])}function b1(n){return this.__data__.set(n,c),this}function m1(n){return this.__data__.has(n)}Bi.prototype.add=Bi.prototype.push=b1,Bi.prototype.has=m1;function sn(n){var o=this.__data__=new jn(n);this.size=o.size}function v1(){this.__data__=new jn,this.size=0}function w1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function E1(n){return this.__data__.get(n)}function S1(n){return this.__data__.has(n)}function A1(n,o){var u=this.__data__;if(u instanceof jn){var g=u.__data__;if(!ea||g.length<a-1)return g.push([n,o]),this.size=++u.size,this;u=this.__data__=new kn(g)}return u.set(n,o),this.size=u.size,this}sn.prototype.clear=v1,sn.prototype.delete=w1,sn.prototype.get=E1,sn.prototype.has=S1,sn.prototype.set=A1;function xp(n,o){var u=dt(n),g=!u&&Fi(n),R=!u&&!g&&gi(n),V=!u&&!g&&!R&&bo(n),se=u||g||R||V,pe=se?Fu(n.length,$E):[],we=pe.length;for(var He in n)(o||Ct.call(n,He))&&!(se&&(He=="length"||R&&(He=="offset"||He=="parent")||V&&(He=="buffer"||He=="byteLength"||He=="byteOffset")||Wn(He,we)))&&pe.push(He);return pe}function Dp(n){var o=n.length;return o?n[tc(0,o-1)]:r}function R1(n,o){return qs(Tr(n),$i(o,0,n.length))}function I1(n){return qs(Tr(n))}function zu(n,o,u){(u!==r&&!fn(n[o],u)||u===r&&!(o in n))&&Un(n,o,u)}function ia(n,o,u){var g=n[o];(!(Ct.call(n,o)&&fn(g,u))||u===r&&!(o in n))&&Un(n,o,u)}function Ps(n,o){for(var u=n.length;u--;)if(fn(n[u][0],o))return u;return-1}function O1(n,o,u,g){return li(n,function(R,V,se){o(g,R,u(R),se)}),g}function Mp(n,o){return n&&wn(o,sr(o),n)}function T1(n,o){return n&&wn(o,Cr(o),n)}function Un(n,o,u){o=="__proto__"&&Ss?Ss(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Gu(n,o){for(var u=-1,g=o.length,R=Pe(g),V=n==null;++u<g;)R[u]=V?r:Ic(n,o[u]);return R}function $i(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Zr(n,o,u,g,R,V){var se,pe=o&_,we=o&b,He=o&y;if(u&&(se=R?u(n,g,R,V):u(n)),se!==r)return se;if(!Wt(n))return n;var We=dt(n);if(We){if(se=yS(n),!pe)return Tr(n,se)}else{var Ze=yr(n),Qe=Ze==Me||Ze==z;if(gi(n))return sg(n,pe);if(Ze==Te||Ze==U||Qe&&!R){if(se=we||Qe?{}:Ig(n),!pe)return we?oS(n,T1(se,n)):iS(n,Mp(se,n))}else{if(!Pt[Ze])return R?n:{};se=_S(n,Ze,pe)}}V||(V=new sn);var it=V.get(n);if(it)return it;V.set(n,se),ty(n)?n.forEach(function(ft){se.add(Zr(ft,o,u,ft,n,V))}):Qg(n)&&n.forEach(function(ft,_t){se.set(_t,Zr(ft,o,u,_t,n,V))});var st=He?we?dc:lc:we?Cr:sr,gt=We?r:st(n);return zr(gt||n,function(ft,_t){gt&&(_t=ft,ft=n[_t]),ia(se,_t,Zr(ft,o,u,_t,n,V))}),se}function P1(n){var o=sr(n);return function(u){return Fp(u,n,o)}}function Fp(n,o,u){var g=u.length;if(n==null)return!g;for(n=$t(n);g--;){var R=u[g],V=o[R],se=n[R];if(se===r&&!(R in n)||!V(se))return!1}return!0}function jp(n,o,u){if(typeof n!="function")throw new Gr(f);return la(function(){n.apply(r,u)},o)}function oa(n,o,u,g){var R=-1,V=ds,se=!0,pe=n.length,we=[],He=o.length;if(!pe)return we;u&&(o=Ht(o,Dr(u))),g?(V=Nu,se=!1):o.length>=a&&(V=Yo,se=!1,o=new Bi(o));e:for(;++R<pe;){var We=n[R],Ze=u==null?We:u(We);if(We=g||We!==0?We:0,se&&Ze===Ze){for(var Qe=He;Qe--;)if(o[Qe]===Ze)continue e;we.push(We)}else V(o,Ze,g)||we.push(We)}return we}var li=dg(vn),kp=dg(Zu,!0);function C1(n,o){var u=!0;return li(n,function(g,R,V){return u=!!o(g,R,V),u}),u}function Cs(n,o,u){for(var g=-1,R=n.length;++g<R;){var V=n[g],se=o(V);if(se!=null&&(pe===r?se===se&&!Fr(se):u(se,pe)))var pe=se,we=V}return we}function L1(n,o,u,g){var R=n.length;for(u=pt(u),u<0&&(u=-u>R?0:R+u),g=g===r||g>R?R:pt(g),g<0&&(g+=R),g=u>g?0:ny(g);u<g;)n[u++]=o;return n}function Up(n,o){var u=[];return li(n,function(g,R,V){o(g,R,V)&&u.push(g)}),u}function cr(n,o,u,g,R){var V=-1,se=n.length;for(u||(u=mS),R||(R=[]);++V<se;){var pe=n[V];o>0&&u(pe)?o>1?cr(pe,o-1,u,g,R):fi(R,pe):g||(R[R.length]=pe)}return R}var Vu=hg(),qp=hg(!0);function vn(n,o){return n&&Vu(n,o,sr)}function Zu(n,o){return n&&qp(n,o,sr)}function Ls(n,o){return si(o,function(u){return zn(n[u])})}function xi(n,o){o=hi(o,n);for(var u=0,g=o.length;n!=null&&u<g;)n=n[En(o[u++])];return u&&u==g?n:r}function Hp(n,o,u){var g=o(n);return dt(n)?g:fi(g,u(n))}function Er(n){return n==null?n===r?M:Ne:Li&&Li in $t(n)?hS(n):IS(n)}function Ku(n,o){return n>o}function N1(n,o){return n!=null&&Ct.call(n,o)}function B1(n,o){return n!=null&&o in $t(n)}function $1(n,o,u){return n>=gr(o,u)&&n<ir(o,u)}function Ju(n,o,u){for(var g=u?Nu:ds,R=n[0].length,V=n.length,se=V,pe=Pe(V),we=1/0,He=[];se--;){var We=n[se];se&&o&&(We=Ht(We,Dr(o))),we=gr(We.length,we),pe[se]=!u&&(o||R>=120&&We.length>=120)?new Bi(se&&We):r}We=n[0];var Ze=-1,Qe=pe[0];e:for(;++Ze<R&&He.length<we;){var it=We[Ze],st=o?o(it):it;if(it=u||it!==0?it:0,!(Qe?Yo(Qe,st):g(He,st,u))){for(se=V;--se;){var gt=pe[se];if(!(gt?Yo(gt,st):g(n[se],st,u)))continue e}Qe&&Qe.push(st),He.push(it)}}return He}function x1(n,o,u,g){return vn(n,function(R,V,se){o(g,u(R),V,se)}),g}function aa(n,o,u){o=hi(o,n),n=Cg(n,o);var g=n==null?n:n[En(Jr(o))];return g==null?r:xr(g,n,u)}function Wp(n){return Zt(n)&&Er(n)==U}function D1(n){return Zt(n)&&Er(n)==Ve}function M1(n){return Zt(n)&&Er(n)==ue}function sa(n,o,u,g,R){return n===o?!0:n==null||o==null||!Zt(n)&&!Zt(o)?n!==n&&o!==o:F1(n,o,u,g,sa,R)}function F1(n,o,u,g,R,V){var se=dt(n),pe=dt(o),we=se?G:yr(n),He=pe?G:yr(o);we=we==U?Te:we,He=He==U?Te:He;var We=we==Te,Ze=He==Te,Qe=we==He;if(Qe&&gi(n)){if(!gi(o))return!1;se=!0,We=!1}if(Qe&&!We)return V||(V=new sn),se||bo(n)?Sg(n,o,u,g,R,V):lS(n,o,we,u,g,R,V);if(!(u&T)){var it=We&&Ct.call(n,"__wrapped__"),st=Ze&&Ct.call(o,"__wrapped__");if(it||st){var gt=it?n.value():n,ft=st?o.value():o;return V||(V=new sn),R(gt,ft,u,g,V)}}return Qe?(V||(V=new sn),dS(n,o,u,g,R,V)):!1}function j1(n){return Zt(n)&&yr(n)==J}function Xu(n,o,u,g){var R=u.length,V=R,se=!g;if(n==null)return!V;for(n=$t(n);R--;){var pe=u[R];if(se&&pe[2]?pe[1]!==n[pe[0]]:!(pe[0]in n))return!1}for(;++R<V;){pe=u[R];var we=pe[0],He=n[we],We=pe[1];if(se&&pe[2]){if(He===r&&!(we in n))return!1}else{var Ze=new sn;if(g)var Qe=g(He,We,we,n,o,Ze);if(!(Qe===r?sa(We,He,T|k,g,Ze):Qe))return!1}}return!0}function zp(n){if(!Wt(n)||wS(n))return!1;var o=zn(n)?jE:Vt;return o.test(Mi(n))}function k1(n){return Zt(n)&&Er(n)==Ye}function U1(n){return Zt(n)&&yr(n)==et}function q1(n){return Zt(n)&&Zs(n.length)&&!!Bt[Er(n)]}function Gp(n){return typeof n=="function"?n:n==null?Lr:typeof n=="object"?dt(n)?Kp(n[0],n[1]):Zp(n):py(n)}function Yu(n){if(!ca(n))return zE(n);var o=[];for(var u in $t(n))Ct.call(n,u)&&u!="constructor"&&o.push(u);return o}function H1(n){if(!Wt(n))return RS(n);var o=ca(n),u=[];for(var g in n)g=="constructor"&&(o||!Ct.call(n,g))||u.push(g);return u}function Qu(n,o){return n<o}function Vp(n,o){var u=-1,g=Pr(n)?Pe(n.length):[];return li(n,function(R,V,se){g[++u]=o(R,V,se)}),g}function Zp(n){var o=pc(n);return o.length==1&&o[0][2]?Tg(o[0][0],o[0][1]):function(u){return u===n||Xu(u,n,o)}}function Kp(n,o){return yc(n)&&Og(o)?Tg(En(n),o):function(u){var g=Ic(u,n);return g===r&&g===o?Oc(u,n):sa(o,g,T|k)}}function Ns(n,o,u,g,R){n!==o&&Vu(o,function(V,se){if(R||(R=new sn),Wt(V))W1(n,o,se,u,Ns,g,R);else{var pe=g?g(bc(n,se),V,se+"",n,o,R):r;pe===r&&(pe=V),zu(n,se,pe)}},Cr)}function W1(n,o,u,g,R,V,se){var pe=bc(n,u),we=bc(o,u),He=se.get(we);if(He){zu(n,u,He);return}var We=V?V(pe,we,u+"",n,o,se):r,Ze=We===r;if(Ze){var Qe=dt(we),it=!Qe&&gi(we),st=!Qe&&!it&&bo(we);We=we,Qe||it||st?dt(pe)?We=pe:Xt(pe)?We=Tr(pe):it?(Ze=!1,We=sg(we,!0)):st?(Ze=!1,We=fg(we,!0)):We=[]:da(we)||Fi(we)?(We=pe,Fi(pe)?We=iy(pe):(!Wt(pe)||zn(pe))&&(We=Ig(we))):Ze=!1}Ze&&(se.set(we,We),R(We,we,g,V,se),se.delete(we)),zu(n,u,We)}function Jp(n,o){var u=n.length;if(u)return o+=o<0?u:0,Wn(o,u)?n[o]:r}function Xp(n,o,u){o.length?o=Ht(o,function(V){return dt(V)?function(se){return xi(se,V.length===1?V[0]:V)}:V}):o=[Lr];var g=-1;o=Ht(o,Dr(at()));var R=Vp(n,function(V,se,pe){var we=Ht(o,function(He){return He(V)});return{criteria:we,index:++g,value:V}});return _E(R,function(V,se){return nS(V,se,u)})}function z1(n,o){return Yp(n,o,function(u,g){return Oc(n,g)})}function Yp(n,o,u){for(var g=-1,R=o.length,V={};++g<R;){var se=o[g],pe=xi(n,se);u(pe,se)&&fa(V,hi(se,n),pe)}return V}function G1(n){return function(o){return xi(o,n)}}function ec(n,o,u,g){var R=g?yE:ao,V=-1,se=o.length,pe=n;for(n===o&&(o=Tr(o)),u&&(pe=Ht(n,Dr(u)));++V<se;)for(var we=0,He=o[V],We=u?u(He):He;(we=R(pe,We,we,g))>-1;)pe!==n&&Es.call(pe,we,1),Es.call(n,we,1);return n}function Qp(n,o){for(var u=n?o.length:0,g=u-1;u--;){var R=o[u];if(u==g||R!==V){var V=R;Wn(R)?Es.call(n,R,1):ic(n,R)}}return n}function tc(n,o){return n+Rs(Bp()*(o-n+1))}function V1(n,o,u,g){for(var R=-1,V=ir(As((o-n)/(u||1)),0),se=Pe(V);V--;)se[g?V:++R]=n,n+=u;return se}function rc(n,o){var u="";if(!n||o<1||o>ne)return u;do o%2&&(u+=n),o=Rs(o/2),o&&(n+=n);while(o);return u}function yt(n,o){return mc(Pg(n,o,Lr),n+"")}function Z1(n){return Dp(mo(n))}function K1(n,o){var u=mo(n);return qs(u,$i(o,0,u.length))}function fa(n,o,u,g){if(!Wt(n))return n;o=hi(o,n);for(var R=-1,V=o.length,se=V-1,pe=n;pe!=null&&++R<V;){var we=En(o[R]),He=u;if(we==="__proto__"||we==="constructor"||we==="prototype")return n;if(R!=se){var We=pe[we];He=g?g(We,we,pe):r,He===r&&(He=Wt(We)?We:Wn(o[R+1])?[]:{})}ia(pe,we,He),pe=pe[we]}return n}var eg=Is?function(n,o){return Is.set(n,o),n}:Lr,J1=Ss?function(n,o){return Ss(n,"toString",{configurable:!0,enumerable:!1,value:Pc(o),writable:!0})}:Lr;function X1(n){return qs(mo(n))}function Kr(n,o,u){var g=-1,R=n.length;o<0&&(o=-o>R?0:R+o),u=u>R?R:u,u<0&&(u+=R),R=o>u?0:u-o>>>0,o>>>=0;for(var V=Pe(R);++g<R;)V[g]=n[g+o];return V}function Y1(n,o){var u;return li(n,function(g,R,V){return u=o(g,R,V),!u}),!!u}function Bs(n,o,u){var g=0,R=n==null?g:n.length;if(typeof o=="number"&&o===o&&R<=j){for(;g<R;){var V=g+R>>>1,se=n[V];se!==null&&!Fr(se)&&(u?se<=o:se<o)?g=V+1:R=V}return R}return nc(n,o,Lr,u)}function nc(n,o,u,g){var R=0,V=n==null?0:n.length;if(V===0)return 0;o=u(o);for(var se=o!==o,pe=o===null,we=Fr(o),He=o===r;R<V;){var We=Rs((R+V)/2),Ze=u(n[We]),Qe=Ze!==r,it=Ze===null,st=Ze===Ze,gt=Fr(Ze);if(se)var ft=g||st;else He?ft=st&&(g||Qe):pe?ft=st&&Qe&&(g||!it):we?ft=st&&Qe&&!it&&(g||!gt):it||gt?ft=!1:ft=g?Ze<=o:Ze<o;ft?R=We+1:V=We}return gr(V,B)}function tg(n,o){for(var u=-1,g=n.length,R=0,V=[];++u<g;){var se=n[u],pe=o?o(se):se;if(!u||!fn(pe,we)){var we=pe;V[R++]=se===0?0:se}}return V}function rg(n){return typeof n=="number"?n:Fr(n)?x:+n}function Mr(n){if(typeof n=="string")return n;if(dt(n))return Ht(n,Mr)+"";if(Fr(n))return $p?$p.call(n):"";var o=n+"";return o=="0"&&1/n==-X?"-0":o}function di(n,o,u){var g=-1,R=ds,V=n.length,se=!0,pe=[],we=pe;if(u)se=!1,R=Nu;else if(V>=a){var He=o?null:uS(n);if(He)return ps(He);se=!1,R=Yo,we=new Bi}else we=o?[]:pe;e:for(;++g<V;){var We=n[g],Ze=o?o(We):We;if(We=u||We!==0?We:0,se&&Ze===Ze){for(var Qe=we.length;Qe--;)if(we[Qe]===Ze)continue e;o&&we.push(Ze),pe.push(We)}else R(we,Ze,u)||(we!==pe&&we.push(Ze),pe.push(We))}return pe}function ic(n,o){return o=hi(o,n),n=Cg(n,o),n==null||delete n[En(Jr(o))]}function ng(n,o,u,g){return fa(n,o,u(xi(n,o)),g)}function $s(n,o,u,g){for(var R=n.length,V=g?R:-1;(g?V--:++V<R)&&o(n[V],V,n););return u?Kr(n,g?0:V,g?V+1:R):Kr(n,g?V+1:0,g?R:V)}function ig(n,o){var u=n;return u instanceof vt&&(u=u.value()),Bu(o,function(g,R){return R.func.apply(R.thisArg,fi([g],R.args))},u)}function oc(n,o,u){var g=n.length;if(g<2)return g?di(n[0]):[];for(var R=-1,V=Pe(g);++R<g;)for(var se=n[R],pe=-1;++pe<g;)pe!=R&&(V[R]=oa(V[R]||se,n[pe],o,u));return di(cr(V,1),o,u)}function og(n,o,u){for(var g=-1,R=n.length,V=o.length,se={};++g<R;){var pe=g<V?o[g]:r;u(se,n[g],pe)}return se}function ac(n){return Xt(n)?n:[]}function sc(n){return typeof n=="function"?n:Lr}function hi(n,o){return dt(n)?n:yc(n,o)?[n]:$g(Ot(n))}var Q1=yt;function pi(n,o,u){var g=n.length;return u=u===r?g:u,!o&&u>=g?n:Kr(n,o,u)}var ag=kE||function(n){return ut.clearTimeout(n)};function sg(n,o){if(o)return n.slice();var u=n.length,g=Tp?Tp(u):new n.constructor(u);return n.copy(g),g}function fc(n){var o=new n.constructor(n.byteLength);return new vs(o).set(new vs(n)),o}function eS(n,o){var u=o?fc(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function tS(n){var o=new n.constructor(n.source,qt.exec(n));return o.lastIndex=n.lastIndex,o}function rS(n){return na?$t(na.call(n)):{}}function fg(n,o){var u=o?fc(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function ug(n,o){if(n!==o){var u=n!==r,g=n===null,R=n===n,V=Fr(n),se=o!==r,pe=o===null,we=o===o,He=Fr(o);if(!pe&&!He&&!V&&n>o||V&&se&&we&&!pe&&!He||g&&se&&we||!u&&we||!R)return 1;if(!g&&!V&&!He&&n<o||He&&u&&R&&!g&&!V||pe&&u&&R||!se&&R||!we)return-1}return 0}function nS(n,o,u){for(var g=-1,R=n.criteria,V=o.criteria,se=R.length,pe=u.length;++g<se;){var we=ug(R[g],V[g]);if(we){if(g>=pe)return we;var He=u[g];return we*(He=="desc"?-1:1)}}return n.index-o.index}function cg(n,o,u,g){for(var R=-1,V=n.length,se=u.length,pe=-1,we=o.length,He=ir(V-se,0),We=Pe(we+He),Ze=!g;++pe<we;)We[pe]=o[pe];for(;++R<se;)(Ze||R<V)&&(We[u[R]]=n[R]);for(;He--;)We[pe++]=n[R++];return We}function lg(n,o,u,g){for(var R=-1,V=n.length,se=-1,pe=u.length,we=-1,He=o.length,We=ir(V-pe,0),Ze=Pe(We+He),Qe=!g;++R<We;)Ze[R]=n[R];for(var it=R;++we<He;)Ze[it+we]=o[we];for(;++se<pe;)(Qe||R<V)&&(Ze[it+u[se]]=n[R++]);return Ze}function Tr(n,o){var u=-1,g=n.length;for(o||(o=Pe(g));++u<g;)o[u]=n[u];return o}function wn(n,o,u,g){var R=!u;u||(u={});for(var V=-1,se=o.length;++V<se;){var pe=o[V],we=g?g(u[pe],n[pe],pe,u,n):r;we===r&&(we=n[pe]),R?Un(u,pe,we):ia(u,pe,we)}return u}function iS(n,o){return wn(n,gc(n),o)}function oS(n,o){return wn(n,Ag(n),o)}function xs(n,o){return function(u,g){var R=dt(u)?cE:O1,V=o?o():{};return R(u,n,at(g,2),V)}}function go(n){return yt(function(o,u){var g=-1,R=u.length,V=R>1?u[R-1]:r,se=R>2?u[2]:r;for(V=n.length>3&&typeof V=="function"?(R--,V):r,se&&Sr(u[0],u[1],se)&&(V=R<3?r:V,R=1),o=$t(o);++g<R;){var pe=u[g];pe&&n(o,pe,g,V)}return o})}function dg(n,o){return function(u,g){if(u==null)return u;if(!Pr(u))return n(u,g);for(var R=u.length,V=o?R:-1,se=$t(u);(o?V--:++V<R)&&g(se[V],V,se)!==!1;);return u}}function hg(n){return function(o,u,g){for(var R=-1,V=$t(o),se=g(o),pe=se.length;pe--;){var we=se[n?pe:++R];if(u(V[we],we,V)===!1)break}return o}}function aS(n,o,u){var g=o&E,R=ua(n);function V(){var se=this&&this!==ut&&this instanceof V?R:n;return se.apply(g?u:this,arguments)}return V}function pg(n){return function(o){o=Ot(o);var u=so(o)?an(o):r,g=u?u[0]:o.charAt(0),R=u?pi(u,1).join(""):o.slice(1);return g[n]()+R}}function yo(n){return function(o){return Bu(dy(ly(o).replace(us,"")),n,"")}}function ua(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=po(n.prototype),g=n.apply(u,o);return Wt(g)?g:u}}function sS(n,o,u){var g=ua(n);function R(){for(var V=arguments.length,se=Pe(V),pe=V,we=_o(R);pe--;)se[pe]=arguments[pe];var He=V<3&&se[0]!==we&&se[V-1]!==we?[]:ui(se,we);if(V-=He.length,V<u)return mg(n,o,Ds,R.placeholder,r,se,He,r,r,u-V);var We=this&&this!==ut&&this instanceof R?g:n;return xr(We,this,se)}return R}function gg(n){return function(o,u,g){var R=$t(o);if(!Pr(o)){var V=at(u,3);o=sr(o),u=function(pe){return V(R[pe],pe,R)}}var se=n(o,u,g);return se>-1?R[V?o[se]:se]:r}}function yg(n){return Hn(function(o){var u=o.length,g=u,R=Vr.prototype.thru;for(n&&o.reverse();g--;){var V=o[g];if(typeof V!="function")throw new Gr(f);if(R&&!se&&ks(V)=="wrapper")var se=new Vr([],!0)}for(g=se?g:u;++g<u;){V=o[g];var pe=ks(V),we=pe=="wrapper"?hc(V):r;we&&_c(we[0])&&we[1]==(ie|w|H|he)&&!we[4].length&&we[9]==1?se=se[ks(we[0])].apply(se,we[3]):se=V.length==1&&_c(V)?se[pe]():se.thru(V)}return function(){var He=arguments,We=He[0];if(se&&He.length==1&&dt(We))return se.plant(We).value();for(var Ze=0,Qe=u?o[Ze].apply(this,He):We;++Ze<u;)Qe=o[Ze].call(this,Qe);return Qe}})}function Ds(n,o,u,g,R,V,se,pe,we,He){var We=o&ie,Ze=o&E,Qe=o&I,it=o&(w|S),st=o&le,gt=Qe?r:ua(n);function ft(){for(var _t=arguments.length,Et=Pe(_t),jr=_t;jr--;)Et[jr]=arguments[jr];if(it)var Ar=_o(ft),kr=mE(Et,Ar);if(g&&(Et=cg(Et,g,R,it)),V&&(Et=lg(Et,V,se,it)),_t-=kr,it&&_t<He){var Yt=ui(Et,Ar);return mg(n,o,Ds,ft.placeholder,u,Et,Yt,pe,we,He-_t)}var un=Ze?u:this,Vn=Qe?un[n]:n;return _t=Et.length,pe?Et=OS(Et,pe):st&&_t>1&&Et.reverse(),We&&we<_t&&(Et.length=we),this&&this!==ut&&this instanceof ft&&(Vn=gt||ua(Vn)),Vn.apply(un,Et)}return ft}function _g(n,o){return function(u,g){return x1(u,n,o(g),{})}}function Ms(n,o){return function(u,g){var R;if(u===r&&g===r)return o;if(u!==r&&(R=u),g!==r){if(R===r)return g;typeof u=="string"||typeof g=="string"?(u=Mr(u),g=Mr(g)):(u=rg(u),g=rg(g)),R=n(u,g)}return R}}function uc(n){return Hn(function(o){return o=Ht(o,Dr(at())),yt(function(u){var g=this;return n(o,function(R){return xr(R,g,u)})})})}function Fs(n,o){o=o===r?" ":Mr(o);var u=o.length;if(u<2)return u?rc(o,n):o;var g=rc(o,As(n/fo(o)));return so(o)?pi(an(g),0,n).join(""):g.slice(0,n)}function fS(n,o,u,g){var R=o&E,V=ua(n);function se(){for(var pe=-1,we=arguments.length,He=-1,We=g.length,Ze=Pe(We+we),Qe=this&&this!==ut&&this instanceof se?V:n;++He<We;)Ze[He]=g[He];for(;we--;)Ze[He++]=arguments[++pe];return xr(Qe,R?u:this,Ze)}return se}function bg(n){return function(o,u,g){return g&&typeof g!="number"&&Sr(o,u,g)&&(u=g=r),o=Gn(o),u===r?(u=o,o=0):u=Gn(u),g=g===r?o<u?1:-1:Gn(g),V1(o,u,g,n)}}function js(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=Xr(o),u=Xr(u)),n(o,u)}}function mg(n,o,u,g,R,V,se,pe,we,He){var We=o&w,Ze=We?se:r,Qe=We?r:se,it=We?V:r,st=We?r:V;o|=We?H:Q,o&=~(We?Q:H),o&v||(o&=~(E|I));var gt=[n,o,R,it,Ze,st,Qe,pe,we,He],ft=u.apply(r,gt);return _c(n)&&Lg(ft,gt),ft.placeholder=g,Ng(ft,n,o)}function cc(n){var o=nr[n];return function(u,g){if(u=Xr(u),g=g==null?0:gr(pt(g),292),g&&Np(u)){var R=(Ot(u)+"e").split("e"),V=o(R[0]+"e"+(+R[1]+g));return R=(Ot(V)+"e").split("e"),+(R[0]+"e"+(+R[1]-g))}return o(u)}}var uS=lo&&1/ps(new lo([,-0]))[1]==X?function(n){return new lo(n)}:Nc;function vg(n){return function(o){var u=yr(o);return u==J?ku(o):u==et?IE(o):bE(o,n(o))}}function qn(n,o,u,g,R,V,se,pe){var we=o&I;if(!we&&typeof n!="function")throw new Gr(f);var He=g?g.length:0;if(He||(o&=~(H|Q),g=R=r),se=se===r?se:ir(pt(se),0),pe=pe===r?pe:pt(pe),He-=R?R.length:0,o&Q){var We=g,Ze=R;g=R=r}var Qe=we?r:hc(n),it=[n,o,u,g,R,We,Ze,V,se,pe];if(Qe&&AS(it,Qe),n=it[0],o=it[1],u=it[2],g=it[3],R=it[4],pe=it[9]=it[9]===r?we?0:n.length:ir(it[9]-He,0),!pe&&o&(w|S)&&(o&=~(w|S)),!o||o==E)var st=aS(n,o,u);else o==w||o==S?st=sS(n,o,pe):(o==H||o==(E|H))&&!R.length?st=fS(n,o,u,g):st=Ds.apply(r,it);var gt=Qe?eg:Lg;return Ng(gt(st,it),n,o)}function wg(n,o,u,g){return n===r||fn(n,co[u])&&!Ct.call(g,u)?o:n}function Eg(n,o,u,g,R,V){return Wt(n)&&Wt(o)&&(V.set(o,n),Ns(n,o,r,Eg,V),V.delete(o)),n}function cS(n){return da(n)?r:n}function Sg(n,o,u,g,R,V){var se=u&T,pe=n.length,we=o.length;if(pe!=we&&!(se&&we>pe))return!1;var He=V.get(n),We=V.get(o);if(He&&We)return He==o&&We==n;var Ze=-1,Qe=!0,it=u&k?new Bi:r;for(V.set(n,o),V.set(o,n);++Ze<pe;){var st=n[Ze],gt=o[Ze];if(g)var ft=se?g(gt,st,Ze,o,n,V):g(st,gt,Ze,n,o,V);if(ft!==r){if(ft)continue;Qe=!1;break}if(it){if(!$u(o,function(_t,Et){if(!Yo(it,Et)&&(st===_t||R(st,_t,u,g,V)))return it.push(Et)})){Qe=!1;break}}else if(!(st===gt||R(st,gt,u,g,V))){Qe=!1;break}}return V.delete(n),V.delete(o),Qe}function lS(n,o,u,g,R,V,se){switch(u){case Ue:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Ve:return!(n.byteLength!=o.byteLength||!V(new vs(n),new vs(o)));case oe:case ue:case ge:return fn(+n,+o);case Be:return n.name==o.name&&n.message==o.message;case Ye:case re:return n==o+"";case J:var pe=ku;case et:var we=g&T;if(pe||(pe=ps),n.size!=o.size&&!we)return!1;var He=se.get(n);if(He)return He==o;g|=k,se.set(n,o);var We=Sg(pe(n),pe(o),g,R,V,se);return se.delete(n),We;case xe:if(na)return na.call(n)==na.call(o)}return!1}function dS(n,o,u,g,R,V){var se=u&T,pe=lc(n),we=pe.length,He=lc(o),We=He.length;if(we!=We&&!se)return!1;for(var Ze=we;Ze--;){var Qe=pe[Ze];if(!(se?Qe in o:Ct.call(o,Qe)))return!1}var it=V.get(n),st=V.get(o);if(it&&st)return it==o&&st==n;var gt=!0;V.set(n,o),V.set(o,n);for(var ft=se;++Ze<we;){Qe=pe[Ze];var _t=n[Qe],Et=o[Qe];if(g)var jr=se?g(Et,_t,Qe,o,n,V):g(_t,Et,Qe,n,o,V);if(!(jr===r?_t===Et||R(_t,Et,u,g,V):jr)){gt=!1;break}ft||(ft=Qe=="constructor")}if(gt&&!ft){var Ar=n.constructor,kr=o.constructor;Ar!=kr&&"constructor"in n&&"constructor"in o&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof kr=="function"&&kr instanceof kr)&&(gt=!1)}return V.delete(n),V.delete(o),gt}function Hn(n){return mc(Pg(n,r,Fg),n+"")}function lc(n){return Hp(n,sr,gc)}function dc(n){return Hp(n,Cr,Ag)}var hc=Is?function(n){return Is.get(n)}:Nc;function ks(n){for(var o=n.name+"",u=ho[o],g=Ct.call(ho,o)?u.length:0;g--;){var R=u[g],V=R.func;if(V==null||V==n)return R.name}return o}function _o(n){var o=Ct.call(q,"placeholder")?q:n;return o.placeholder}function at(){var n=q.iteratee||Cc;return n=n===Cc?Gp:n,arguments.length?n(arguments[0],arguments[1]):n}function Us(n,o){var u=n.__data__;return vS(o)?u[typeof o=="string"?"string":"hash"]:u.map}function pc(n){for(var o=sr(n),u=o.length;u--;){var g=o[u],R=n[g];o[u]=[g,R,Og(R)]}return o}function Di(n,o){var u=SE(n,o);return zp(u)?u:r}function hS(n){var o=Ct.call(n,Li),u=n[Li];try{n[Li]=r;var g=!0}catch{}var R=bs.call(n);return g&&(o?n[Li]=u:delete n[Li]),R}var gc=qu?function(n){return n==null?[]:(n=$t(n),si(qu(n),function(o){return Cp.call(n,o)}))}:Bc,Ag=qu?function(n){for(var o=[];n;)fi(o,gc(n)),n=ws(n);return o}:Bc,yr=Er;(Hu&&yr(new Hu(new ArrayBuffer(1)))!=Ue||ea&&yr(new ea)!=J||Wu&&yr(Wu.resolve())!=je||lo&&yr(new lo)!=et||ta&&yr(new ta)!=ce)&&(yr=function(n){var o=Er(n),u=o==Te?n.constructor:r,g=u?Mi(u):"";if(g)switch(g){case KE:return Ue;case JE:return J;case XE:return je;case YE:return et;case QE:return ce}return o});function pS(n,o,u){for(var g=-1,R=u.length;++g<R;){var V=u[g],se=V.size;switch(V.type){case"drop":n+=se;break;case"dropRight":o-=se;break;case"take":o=gr(o,n+se);break;case"takeRight":n=ir(n,o-se);break}}return{start:n,end:o}}function gS(n){var o=n.match(ar);return o?o[1].split(ur):[]}function Rg(n,o,u){o=hi(o,n);for(var g=-1,R=o.length,V=!1;++g<R;){var se=En(o[g]);if(!(V=n!=null&&u(n,se)))break;n=n[se]}return V||++g!=R?V:(R=n==null?0:n.length,!!R&&Zs(R)&&Wn(se,R)&&(dt(n)||Fi(n)))}function yS(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Ct.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Ig(n){return typeof n.constructor=="function"&&!ca(n)?po(ws(n)):{}}function _S(n,o,u){var g=n.constructor;switch(o){case Ve:return fc(n);case oe:case ue:return new g(+n);case Ue:return eS(n,u);case ke:case Xe:case D:case Re:case $e:case qe:case C:case K:case A:return fg(n,u);case J:return new g;case ge:case re:return new g(n);case Ye:return tS(n);case et:return new g;case xe:return rS(n)}}function bS(n,o){var u=o.length;if(!u)return n;var g=u-1;return o[g]=(u>1?"& ":"")+o[g],o=o.join(u>2?", ":" "),n.replace(ht,`{
85
+ */Cu.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",d="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,h="__lodash_placeholder__",g=1,b=2,_=4,T=1,k=2,E=1,R=2,v=4,w=8,S=16,H=32,Q=64,ie=128,he=256,le=512,Ee=30,ve="...",m=800,O=16,P=1,Z=2,ae=3,X=1/0,ne=9007199254740991,F=17976931348623157e292,x=NaN,Y=4294967295,B=Y-1,j=Y>>>1,$=[["ary",ie],["bind",E],["bindKey",R],["curry",w],["curryRight",S],["flip",le],["partial",H],["partialRight",Q],["rearg",he]],U="[object Arguments]",G="[object Array]",de="[object AsyncFunction]",oe="[object Boolean]",fe="[object Date]",Se="[object DOMException]",Be="[object Error]",Me="[object Function]",z="[object GeneratorFunction]",J="[object Map]",ge="[object Number]",Ne="[object Null]",Oe="[object Object]",je="[object Promise]",me="[object Proxy]",Ye="[object RegExp]",et="[object Set]",re="[object String]",xe="[object Symbol]",M="[object Undefined]",ce="[object WeakMap]",De="[object WeakSet]",Ve="[object ArrayBuffer]",Ue="[object DataView]",ke="[object Float32Array]",Xe="[object Float64Array]",D="[object Int8Array]",Re="[object Int16Array]",$e="[object Int32Array]",qe="[object Uint8Array]",C="[object Uint8ClampedArray]",K="[object Uint16Array]",A="[object Uint32Array]",Te=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,p=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,L=RegExp(_e.source),ue=RegExp(Ie.source),Ae=/<%-([\s\S]+?)%>/g,Je=/<%([\s\S]+?)%>/g,N=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ge=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(Ge.source),ot=/^\s+/,bt=/\s/,ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ar=/\{\n\/\* \[wrapped with (.+)\] \*/,fr=/,? & /,wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dt=/[()=,{}\[\]\/\s]/,St=/\\(\\)?/g,Ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qt=/\w*$/,tr=/^[-+]0x[0-9a-f]+$/i,Gt=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,$n=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,bn=/['\n\r\u2028\u2029\\]/g,Wr="\\ud800-\\udfff",Oi="\\u0300-\\u036f",mn="\\ufe20-\\ufe2f",ri="\\u20d0-\\u20ff",ni=Oi+mn+ri,ii="\\u2700-\\u27bf",oi="a-z\\xdf-\\xf6\\xf8-\\xff",Za="\\xac\\xb1\\xd7\\xf7",Sf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Af="\\u2000-\\u206f",Rf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ka="A-Z\\xc0-\\xd6\\xd8-\\xde",Ja="\\ufe0e\\ufe0f",Xa=Za+Sf+Af+Rf,Ho="['’]",If="["+Wr+"]",Ya="["+Xa+"]",ro="["+ni+"]",Pi="\\d+",Wo="["+ii+"]",Qa="["+oi+"]",es="[^"+Wr+Xa+Pi+ii+oi+Ka+"]",no="\\ud83c[\\udffb-\\udfff]",Tf="(?:"+ro+"|"+no+")",ts="[^"+Wr+"]",zo="(?:\\ud83c[\\udde6-\\uddff]){2}",io="[\\ud800-\\udbff][\\udc00-\\udfff]",ai="["+Ka+"]",rs="\\u200d",ns="(?:"+Qa+"|"+es+")",Go="(?:"+ai+"|"+es+")",is="(?:"+Ho+"(?:d|ll|m|re|s|t|ve))?",os="(?:"+Ho+"(?:D|LL|M|RE|S|T|VE))?",as=Tf+"?",Ci="["+Ja+"]?",Vo="(?:"+rs+"(?:"+[ts,zo,io].join("|")+")"+Ci+as+")*",Zo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ko="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ss=Ci+as+Vo,us="(?:"+[Wo,zo,io].join("|")+")"+ss,Jo="(?:"+[ts+ro+"?",ro,zo,io,If].join("|")+")",fs=RegExp(Ho,"g"),Dn=RegExp(ro,"g"),Mn=RegExp(no+"(?="+no+")|"+Jo+ss,"g"),Of=RegExp([ai+"?"+Qa+"+"+is+"(?="+[Ya,ai,"$"].join("|")+")",Go+"+"+os+"(?="+[Ya,ai+ns,"$"].join("|")+")",ai+"?"+ns+"+"+is,ai+"+"+os,Ko,Zo,Pi,us].join("|"),"g"),cs=RegExp("["+rs+Wr+ni+Ja+"]"),Pf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ls=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Cf=-1,Bt={};Bt[ke]=Bt[Xe]=Bt[D]=Bt[Re]=Bt[$e]=Bt[qe]=Bt[C]=Bt[K]=Bt[A]=!0,Bt[U]=Bt[G]=Bt[Ve]=Bt[oe]=Bt[Ue]=Bt[fe]=Bt[Be]=Bt[Me]=Bt[J]=Bt[ge]=Bt[Oe]=Bt[Ye]=Bt[et]=Bt[re]=Bt[ce]=!1;var Pt={};Pt[U]=Pt[G]=Pt[Ve]=Pt[Ue]=Pt[oe]=Pt[fe]=Pt[ke]=Pt[Xe]=Pt[D]=Pt[Re]=Pt[$e]=Pt[J]=Pt[ge]=Pt[Oe]=Pt[Ye]=Pt[et]=Pt[re]=Pt[xe]=Pt[qe]=Pt[C]=Pt[K]=Pt[A]=!0,Pt[Be]=Pt[Me]=Pt[ce]=!1;var Lf={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ye={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,mt=parseInt,It=typeof ee.commonjsGlobal=="object"&&ee.commonjsGlobal&&ee.commonjsGlobal.Object===Object&&ee.commonjsGlobal,Mt=typeof self=="object"&&self&&self.Object===Object&&self,ft=It||Mt||Function("return this")(),Nt=t&&!t.nodeType&&t,rr=Nt&&!0&&e&&!e.nodeType&&e,hr=rr&&rr.exports===Nt,Fn=hr&&It.process,pr=function(){try{var be=rr&&rr.require&&rr.require("util").types;return be||Fn&&Fn.binding&&Fn.binding("util")}catch{}}(),oo=pr&&pr.isArrayBuffer,Xo=pr&&pr.isDate,bp=pr&&pr.isMap,mp=pr&&pr.isRegExp,vp=pr&&pr.isSet,wp=pr&&pr.isTypedArray;function xr(be,Fe,Pe){switch(Pe.length){case 0:return be.call(Fe);case 1:return be.call(Fe,Pe[0]);case 2:return be.call(Fe,Pe[0],Pe[1]);case 3:return be.call(Fe,Pe[0],Pe[1],Pe[2])}return be.apply(Fe,Pe)}function mE(be,Fe,Pe,tt){for(var lt=-1,Rt=be==null?0:be.length;++lt<Rt;){var nr=be[lt];Fe(tt,nr,Pe(nr),be)}return tt}function zr(be,Fe){for(var Pe=-1,tt=be==null?0:be.length;++Pe<tt&&Fe(be[Pe],Pe,be)!==!1;);return be}function vE(be,Fe){for(var Pe=be==null?0:be.length;Pe--&&Fe(be[Pe],Pe,be)!==!1;);return be}function Ep(be,Fe){for(var Pe=-1,tt=be==null?0:be.length;++Pe<tt;)if(!Fe(be[Pe],Pe,be))return!1;return!0}function si(be,Fe){for(var Pe=-1,tt=be==null?0:be.length,lt=0,Rt=[];++Pe<tt;){var nr=be[Pe];Fe(nr,Pe,be)&&(Rt[lt++]=nr)}return Rt}function ds(be,Fe){var Pe=be==null?0:be.length;return!!Pe&&ao(be,Fe,0)>-1}function Nf(be,Fe,Pe){for(var tt=-1,lt=be==null?0:be.length;++tt<lt;)if(Pe(Fe,be[tt]))return!0;return!1}function Ht(be,Fe){for(var Pe=-1,tt=be==null?0:be.length,lt=Array(tt);++Pe<tt;)lt[Pe]=Fe(be[Pe],Pe,be);return lt}function ui(be,Fe){for(var Pe=-1,tt=Fe.length,lt=be.length;++Pe<tt;)be[lt+Pe]=Fe[Pe];return be}function Bf(be,Fe,Pe,tt){var lt=-1,Rt=be==null?0:be.length;for(tt&&Rt&&(Pe=be[++lt]);++lt<Rt;)Pe=Fe(Pe,be[lt],lt,be);return Pe}function wE(be,Fe,Pe,tt){var lt=be==null?0:be.length;for(tt&&lt&&(Pe=be[--lt]);lt--;)Pe=Fe(Pe,be[lt],lt,be);return Pe}function $f(be,Fe){for(var Pe=-1,tt=be==null?0:be.length;++Pe<tt;)if(Fe(be[Pe],Pe,be))return!0;return!1}var EE=xf("length");function SE(be){return be.split("")}function AE(be){return be.match(wt)||[]}function Sp(be,Fe,Pe){var tt;return Pe(be,function(lt,Rt,nr){if(Fe(lt,Rt,nr))return tt=Rt,!1}),tt}function hs(be,Fe,Pe,tt){for(var lt=be.length,Rt=Pe+(tt?1:-1);tt?Rt--:++Rt<lt;)if(Fe(be[Rt],Rt,be))return Rt;return-1}function ao(be,Fe,Pe){return Fe===Fe?DE(be,Fe,Pe):hs(be,Ap,Pe)}function RE(be,Fe,Pe,tt){for(var lt=Pe-1,Rt=be.length;++lt<Rt;)if(tt(be[lt],Fe))return lt;return-1}function Ap(be){return be!==be}function Rp(be,Fe){var Pe=be==null?0:be.length;return Pe?Mf(be,Fe)/Pe:x}function xf(be){return function(Fe){return Fe==null?r:Fe[be]}}function Df(be){return function(Fe){return be==null?r:be[Fe]}}function Ip(be,Fe,Pe,tt,lt){return lt(be,function(Rt,nr,$t){Pe=tt?(tt=!1,Rt):Fe(Pe,Rt,nr,$t)}),Pe}function IE(be,Fe){var Pe=be.length;for(be.sort(Fe);Pe--;)be[Pe]=be[Pe].value;return be}function Mf(be,Fe){for(var Pe,tt=-1,lt=be.length;++tt<lt;){var Rt=Fe(be[tt]);Rt!==r&&(Pe=Pe===r?Rt:Pe+Rt)}return Pe}function Ff(be,Fe){for(var Pe=-1,tt=Array(be);++Pe<be;)tt[Pe]=Fe(Pe);return tt}function TE(be,Fe){return Ht(Fe,function(Pe){return[Pe,be[Pe]]})}function Tp(be){return be&&be.slice(0,Lp(be)+1).replace(ot,"")}function Dr(be){return function(Fe){return be(Fe)}}function jf(be,Fe){return Ht(Fe,function(Pe){return be[Pe]})}function Yo(be,Fe){return be.has(Fe)}function Op(be,Fe){for(var Pe=-1,tt=be.length;++Pe<tt&&ao(Fe,be[Pe],0)>-1;);return Pe}function Pp(be,Fe){for(var Pe=be.length;Pe--&&ao(Fe,be[Pe],0)>-1;);return Pe}function OE(be,Fe){for(var Pe=be.length,tt=0;Pe--;)be[Pe]===Fe&&++tt;return tt}var PE=Df(Lf),CE=Df(te);function LE(be){return"\\"+Le[be]}function NE(be,Fe){return be==null?r:be[Fe]}function so(be){return cs.test(be)}function BE(be){return Pf.test(be)}function $E(be){for(var Fe,Pe=[];!(Fe=be.next()).done;)Pe.push(Fe.value);return Pe}function kf(be){var Fe=-1,Pe=Array(be.size);return be.forEach(function(tt,lt){Pe[++Fe]=[lt,tt]}),Pe}function Cp(be,Fe){return function(Pe){return be(Fe(Pe))}}function fi(be,Fe){for(var Pe=-1,tt=be.length,lt=0,Rt=[];++Pe<tt;){var nr=be[Pe];(nr===Fe||nr===h)&&(be[Pe]=h,Rt[lt++]=Pe)}return Rt}function ps(be){var Fe=-1,Pe=Array(be.size);return be.forEach(function(tt){Pe[++Fe]=tt}),Pe}function xE(be){var Fe=-1,Pe=Array(be.size);return be.forEach(function(tt){Pe[++Fe]=[tt,tt]}),Pe}function DE(be,Fe,Pe){for(var tt=Pe-1,lt=be.length;++tt<lt;)if(be[tt]===Fe)return tt;return-1}function ME(be,Fe,Pe){for(var tt=Pe+1;tt--;)if(be[tt]===Fe)return tt;return tt}function uo(be){return so(be)?jE(be):EE(be)}function an(be){return so(be)?kE(be):SE(be)}function Lp(be){for(var Fe=be.length;Fe--&&bt.test(be.charAt(Fe)););return Fe}var FE=Df(ye);function jE(be){for(var Fe=Mn.lastIndex=0;Mn.test(be);)++Fe;return Fe}function kE(be){return be.match(Mn)||[]}function UE(be){return be.match(Of)||[]}var qE=function be(Fe){Fe=Fe==null?ft:fo.defaults(ft.Object(),Fe,fo.pick(ft,ls));var Pe=Fe.Array,tt=Fe.Date,lt=Fe.Error,Rt=Fe.Function,nr=Fe.Math,$t=Fe.Object,Uf=Fe.RegExp,HE=Fe.String,Gr=Fe.TypeError,gs=Pe.prototype,WE=Rt.prototype,co=$t.prototype,ys=Fe["__core-js_shared__"],_s=WE.toString,Ct=co.hasOwnProperty,zE=0,Np=function(){var n=/[^.]+$/.exec(ys&&ys.keys&&ys.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),bs=co.toString,GE=_s.call($t),VE=ft._,ZE=Uf("^"+_s.call(Ct).replace(Ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ms=hr?Fe.Buffer:r,ci=Fe.Symbol,vs=Fe.Uint8Array,Bp=ms?ms.allocUnsafe:r,ws=Cp($t.getPrototypeOf,$t),$p=$t.create,xp=co.propertyIsEnumerable,Es=gs.splice,Dp=ci?ci.isConcatSpreadable:r,Qo=ci?ci.iterator:r,Li=ci?ci.toStringTag:r,Ss=function(){try{var n=Di($t,"defineProperty");return n({},"",{}),n}catch{}}(),KE=Fe.clearTimeout!==ft.clearTimeout&&Fe.clearTimeout,JE=tt&&tt.now!==ft.Date.now&&tt.now,XE=Fe.setTimeout!==ft.setTimeout&&Fe.setTimeout,As=nr.ceil,Rs=nr.floor,qf=$t.getOwnPropertySymbols,YE=ms?ms.isBuffer:r,Mp=Fe.isFinite,QE=gs.join,e1=Cp($t.keys,$t),ir=nr.max,gr=nr.min,t1=tt.now,r1=Fe.parseInt,Fp=nr.random,n1=gs.reverse,Hf=Di(Fe,"DataView"),ea=Di(Fe,"Map"),Wf=Di(Fe,"Promise"),lo=Di(Fe,"Set"),ta=Di(Fe,"WeakMap"),ra=Di($t,"create"),Is=ta&&new ta,ho={},i1=Mi(Hf),o1=Mi(ea),a1=Mi(Wf),s1=Mi(lo),u1=Mi(ta),Ts=ci?ci.prototype:r,na=Ts?Ts.valueOf:r,jp=Ts?Ts.toString:r;function q(n){if(Zt(n)&&!dt(n)&&!(n instanceof vt)){if(n instanceof Vr)return n;if(Ct.call(n,"__wrapped__"))return kg(n)}return new Vr(n)}var po=function(){function n(){}return function(o){if(!Wt(o))return{};if($p)return $p(o);n.prototype=o;var f=new n;return n.prototype=r,f}}();function Os(){}function Vr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}q.templateSettings={escape:Ae,evaluate:Je,interpolate:N,variable:"",imports:{_:q}},q.prototype=Os.prototype,q.prototype.constructor=q,Vr.prototype=po(Os.prototype),Vr.prototype.constructor=Vr;function vt(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function f1(){var n=new vt(this.__wrapped__);return n.__actions__=Or(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Or(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Or(this.__views__),n}function c1(){if(this.__filtered__){var n=new vt(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function l1(){var n=this.__wrapped__.value(),o=this.__dir__,f=dt(n),y=o<0,I=f?n.length:0,V=SS(0,I,this.__views__),se=V.start,pe=V.end,we=pe-se,He=y?pe:se-1,We=this.__iteratees__,Ze=We.length,Qe=0,it=gr(we,this.__takeCount__);if(!f||!y&&I==we&&it==we)return fg(n,this.__actions__);var st=[];e:for(;we--&&Qe<it;){He+=o;for(var gt=-1,ut=n[He];++gt<Ze;){var _t=We[gt],Et=_t.iteratee,jr=_t.type,Ar=Et(ut);if(jr==Z)ut=Ar;else if(!Ar){if(jr==P)continue e;break e}}st[Qe++]=ut}return st}vt.prototype=po(Os.prototype),vt.prototype.constructor=vt;function Ni(n){var o=-1,f=n==null?0:n.length;for(this.clear();++o<f;){var y=n[o];this.set(y[0],y[1])}}function d1(){this.__data__=ra?ra(null):{},this.size=0}function h1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function p1(n){var o=this.__data__;if(ra){var f=o[n];return f===c?r:f}return Ct.call(o,n)?o[n]:r}function g1(n){var o=this.__data__;return ra?o[n]!==r:Ct.call(o,n)}function y1(n,o){var f=this.__data__;return this.size+=this.has(n)?0:1,f[n]=ra&&o===r?c:o,this}Ni.prototype.clear=d1,Ni.prototype.delete=h1,Ni.prototype.get=p1,Ni.prototype.has=g1,Ni.prototype.set=y1;function jn(n){var o=-1,f=n==null?0:n.length;for(this.clear();++o<f;){var y=n[o];this.set(y[0],y[1])}}function _1(){this.__data__=[],this.size=0}function b1(n){var o=this.__data__,f=Ps(o,n);if(f<0)return!1;var y=o.length-1;return f==y?o.pop():Es.call(o,f,1),--this.size,!0}function m1(n){var o=this.__data__,f=Ps(o,n);return f<0?r:o[f][1]}function v1(n){return Ps(this.__data__,n)>-1}function w1(n,o){var f=this.__data__,y=Ps(f,n);return y<0?(++this.size,f.push([n,o])):f[y][1]=o,this}jn.prototype.clear=_1,jn.prototype.delete=b1,jn.prototype.get=m1,jn.prototype.has=v1,jn.prototype.set=w1;function kn(n){var o=-1,f=n==null?0:n.length;for(this.clear();++o<f;){var y=n[o];this.set(y[0],y[1])}}function E1(){this.size=0,this.__data__={hash:new Ni,map:new(ea||jn),string:new Ni}}function S1(n){var o=Us(this,n).delete(n);return this.size-=o?1:0,o}function A1(n){return Us(this,n).get(n)}function R1(n){return Us(this,n).has(n)}function I1(n,o){var f=Us(this,n),y=f.size;return f.set(n,o),this.size+=f.size==y?0:1,this}kn.prototype.clear=E1,kn.prototype.delete=S1,kn.prototype.get=A1,kn.prototype.has=R1,kn.prototype.set=I1;function Bi(n){var o=-1,f=n==null?0:n.length;for(this.__data__=new kn;++o<f;)this.add(n[o])}function T1(n){return this.__data__.set(n,c),this}function O1(n){return this.__data__.has(n)}Bi.prototype.add=Bi.prototype.push=T1,Bi.prototype.has=O1;function sn(n){var o=this.__data__=new jn(n);this.size=o.size}function P1(){this.__data__=new jn,this.size=0}function C1(n){var o=this.__data__,f=o.delete(n);return this.size=o.size,f}function L1(n){return this.__data__.get(n)}function N1(n){return this.__data__.has(n)}function B1(n,o){var f=this.__data__;if(f instanceof jn){var y=f.__data__;if(!ea||y.length<a-1)return y.push([n,o]),this.size=++f.size,this;f=this.__data__=new kn(y)}return f.set(n,o),this.size=f.size,this}sn.prototype.clear=P1,sn.prototype.delete=C1,sn.prototype.get=L1,sn.prototype.has=N1,sn.prototype.set=B1;function kp(n,o){var f=dt(n),y=!f&&Fi(n),I=!f&&!y&&gi(n),V=!f&&!y&&!I&&bo(n),se=f||y||I||V,pe=se?Ff(n.length,HE):[],we=pe.length;for(var He in n)(o||Ct.call(n,He))&&!(se&&(He=="length"||I&&(He=="offset"||He=="parent")||V&&(He=="buffer"||He=="byteLength"||He=="byteOffset")||Wn(He,we)))&&pe.push(He);return pe}function Up(n){var o=n.length;return o?n[tc(0,o-1)]:r}function $1(n,o){return qs(Or(n),$i(o,0,n.length))}function x1(n){return qs(Or(n))}function zf(n,o,f){(f!==r&&!un(n[o],f)||f===r&&!(o in n))&&Un(n,o,f)}function ia(n,o,f){var y=n[o];(!(Ct.call(n,o)&&un(y,f))||f===r&&!(o in n))&&Un(n,o,f)}function Ps(n,o){for(var f=n.length;f--;)if(un(n[f][0],o))return f;return-1}function D1(n,o,f,y){return li(n,function(I,V,se){o(y,I,f(I),se)}),y}function qp(n,o){return n&&wn(o,sr(o),n)}function M1(n,o){return n&&wn(o,Cr(o),n)}function Un(n,o,f){o=="__proto__"&&Ss?Ss(n,o,{configurable:!0,enumerable:!0,value:f,writable:!0}):n[o]=f}function Gf(n,o){for(var f=-1,y=o.length,I=Pe(y),V=n==null;++f<y;)I[f]=V?r:Ic(n,o[f]);return I}function $i(n,o,f){return n===n&&(f!==r&&(n=n<=f?n:f),o!==r&&(n=n>=o?n:o)),n}function Zr(n,o,f,y,I,V){var se,pe=o&g,we=o&b,He=o&_;if(f&&(se=I?f(n,y,I,V):f(n)),se!==r)return se;if(!Wt(n))return n;var We=dt(n);if(We){if(se=RS(n),!pe)return Or(n,se)}else{var Ze=yr(n),Qe=Ze==Me||Ze==z;if(gi(n))return dg(n,pe);if(Ze==Oe||Ze==U||Qe&&!I){if(se=we||Qe?{}:Lg(n),!pe)return we?pS(n,M1(se,n)):hS(n,qp(se,n))}else{if(!Pt[Ze])return I?n:{};se=IS(n,Ze,pe)}}V||(V=new sn);var it=V.get(n);if(it)return it;V.set(n,se),ay(n)?n.forEach(function(ut){se.add(Zr(ut,o,f,ut,n,V))}):iy(n)&&n.forEach(function(ut,_t){se.set(_t,Zr(ut,o,f,_t,n,V))});var st=He?we?dc:lc:we?Cr:sr,gt=We?r:st(n);return zr(gt||n,function(ut,_t){gt&&(_t=ut,ut=n[_t]),ia(se,_t,Zr(ut,o,f,_t,n,V))}),se}function F1(n){var o=sr(n);return function(f){return Hp(f,n,o)}}function Hp(n,o,f){var y=f.length;if(n==null)return!y;for(n=$t(n);y--;){var I=f[y],V=o[I],se=n[I];if(se===r&&!(I in n)||!V(se))return!1}return!0}function Wp(n,o,f){if(typeof n!="function")throw new Gr(u);return la(function(){n.apply(r,f)},o)}function oa(n,o,f,y){var I=-1,V=ds,se=!0,pe=n.length,we=[],He=o.length;if(!pe)return we;f&&(o=Ht(o,Dr(f))),y?(V=Nf,se=!1):o.length>=a&&(V=Yo,se=!1,o=new Bi(o));e:for(;++I<pe;){var We=n[I],Ze=f==null?We:f(We);if(We=y||We!==0?We:0,se&&Ze===Ze){for(var Qe=He;Qe--;)if(o[Qe]===Ze)continue e;we.push(We)}else V(o,Ze,y)||we.push(We)}return we}var li=_g(vn),zp=_g(Zf,!0);function j1(n,o){var f=!0;return li(n,function(y,I,V){return f=!!o(y,I,V),f}),f}function Cs(n,o,f){for(var y=-1,I=n.length;++y<I;){var V=n[y],se=o(V);if(se!=null&&(pe===r?se===se&&!Fr(se):f(se,pe)))var pe=se,we=V}return we}function k1(n,o,f,y){var I=n.length;for(f=pt(f),f<0&&(f=-f>I?0:I+f),y=y===r||y>I?I:pt(y),y<0&&(y+=I),y=f>y?0:uy(y);f<y;)n[f++]=o;return n}function Gp(n,o){var f=[];return li(n,function(y,I,V){o(y,I,V)&&f.push(y)}),f}function cr(n,o,f,y,I){var V=-1,se=n.length;for(f||(f=OS),I||(I=[]);++V<se;){var pe=n[V];o>0&&f(pe)?o>1?cr(pe,o-1,f,y,I):ui(I,pe):y||(I[I.length]=pe)}return I}var Vf=bg(),Vp=bg(!0);function vn(n,o){return n&&Vf(n,o,sr)}function Zf(n,o){return n&&Vp(n,o,sr)}function Ls(n,o){return si(o,function(f){return zn(n[f])})}function xi(n,o){o=hi(o,n);for(var f=0,y=o.length;n!=null&&f<y;)n=n[En(o[f++])];return f&&f==y?n:r}function Zp(n,o,f){var y=o(n);return dt(n)?y:ui(y,f(n))}function Er(n){return n==null?n===r?M:Ne:Li&&Li in $t(n)?ES(n):xS(n)}function Kf(n,o){return n>o}function U1(n,o){return n!=null&&Ct.call(n,o)}function q1(n,o){return n!=null&&o in $t(n)}function H1(n,o,f){return n>=gr(o,f)&&n<ir(o,f)}function Jf(n,o,f){for(var y=f?Nf:ds,I=n[0].length,V=n.length,se=V,pe=Pe(V),we=1/0,He=[];se--;){var We=n[se];se&&o&&(We=Ht(We,Dr(o))),we=gr(We.length,we),pe[se]=!f&&(o||I>=120&&We.length>=120)?new Bi(se&&We):r}We=n[0];var Ze=-1,Qe=pe[0];e:for(;++Ze<I&&He.length<we;){var it=We[Ze],st=o?o(it):it;if(it=f||it!==0?it:0,!(Qe?Yo(Qe,st):y(He,st,f))){for(se=V;--se;){var gt=pe[se];if(!(gt?Yo(gt,st):y(n[se],st,f)))continue e}Qe&&Qe.push(st),He.push(it)}}return He}function W1(n,o,f,y){return vn(n,function(I,V,se){o(y,f(I),V,se)}),y}function aa(n,o,f){o=hi(o,n),n=xg(n,o);var y=n==null?n:n[En(Jr(o))];return y==null?r:xr(y,n,f)}function Kp(n){return Zt(n)&&Er(n)==U}function z1(n){return Zt(n)&&Er(n)==Ve}function G1(n){return Zt(n)&&Er(n)==fe}function sa(n,o,f,y,I){return n===o?!0:n==null||o==null||!Zt(n)&&!Zt(o)?n!==n&&o!==o:V1(n,o,f,y,sa,I)}function V1(n,o,f,y,I,V){var se=dt(n),pe=dt(o),we=se?G:yr(n),He=pe?G:yr(o);we=we==U?Oe:we,He=He==U?Oe:He;var We=we==Oe,Ze=He==Oe,Qe=we==He;if(Qe&&gi(n)){if(!gi(o))return!1;se=!0,We=!1}if(Qe&&!We)return V||(V=new sn),se||bo(n)?Og(n,o,f,y,I,V):vS(n,o,we,f,y,I,V);if(!(f&T)){var it=We&&Ct.call(n,"__wrapped__"),st=Ze&&Ct.call(o,"__wrapped__");if(it||st){var gt=it?n.value():n,ut=st?o.value():o;return V||(V=new sn),I(gt,ut,f,y,V)}}return Qe?(V||(V=new sn),wS(n,o,f,y,I,V)):!1}function Z1(n){return Zt(n)&&yr(n)==J}function Xf(n,o,f,y){var I=f.length,V=I,se=!y;if(n==null)return!V;for(n=$t(n);I--;){var pe=f[I];if(se&&pe[2]?pe[1]!==n[pe[0]]:!(pe[0]in n))return!1}for(;++I<V;){pe=f[I];var we=pe[0],He=n[we],We=pe[1];if(se&&pe[2]){if(He===r&&!(we in n))return!1}else{var Ze=new sn;if(y)var Qe=y(He,We,we,n,o,Ze);if(!(Qe===r?sa(We,He,T|k,y,Ze):Qe))return!1}}return!0}function Jp(n){if(!Wt(n)||CS(n))return!1;var o=zn(n)?ZE:Vt;return o.test(Mi(n))}function K1(n){return Zt(n)&&Er(n)==Ye}function J1(n){return Zt(n)&&yr(n)==et}function X1(n){return Zt(n)&&Zs(n.length)&&!!Bt[Er(n)]}function Xp(n){return typeof n=="function"?n:n==null?Lr:typeof n=="object"?dt(n)?eg(n[0],n[1]):Qp(n):my(n)}function Yf(n){if(!ca(n))return e1(n);var o=[];for(var f in $t(n))Ct.call(n,f)&&f!="constructor"&&o.push(f);return o}function Y1(n){if(!Wt(n))return $S(n);var o=ca(n),f=[];for(var y in n)y=="constructor"&&(o||!Ct.call(n,y))||f.push(y);return f}function Qf(n,o){return n<o}function Yp(n,o){var f=-1,y=Pr(n)?Pe(n.length):[];return li(n,function(I,V,se){y[++f]=o(I,V,se)}),y}function Qp(n){var o=pc(n);return o.length==1&&o[0][2]?Bg(o[0][0],o[0][1]):function(f){return f===n||Xf(f,n,o)}}function eg(n,o){return yc(n)&&Ng(o)?Bg(En(n),o):function(f){var y=Ic(f,n);return y===r&&y===o?Tc(f,n):sa(o,y,T|k)}}function Ns(n,o,f,y,I){n!==o&&Vf(o,function(V,se){if(I||(I=new sn),Wt(V))Q1(n,o,se,f,Ns,y,I);else{var pe=y?y(bc(n,se),V,se+"",n,o,I):r;pe===r&&(pe=V),zf(n,se,pe)}},Cr)}function Q1(n,o,f,y,I,V,se){var pe=bc(n,f),we=bc(o,f),He=se.get(we);if(He){zf(n,f,He);return}var We=V?V(pe,we,f+"",n,o,se):r,Ze=We===r;if(Ze){var Qe=dt(we),it=!Qe&&gi(we),st=!Qe&&!it&&bo(we);We=we,Qe||it||st?dt(pe)?We=pe:Xt(pe)?We=Or(pe):it?(Ze=!1,We=dg(we,!0)):st?(Ze=!1,We=hg(we,!0)):We=[]:da(we)||Fi(we)?(We=pe,Fi(pe)?We=fy(pe):(!Wt(pe)||zn(pe))&&(We=Lg(we))):Ze=!1}Ze&&(se.set(we,We),I(We,we,y,V,se),se.delete(we)),zf(n,f,We)}function tg(n,o){var f=n.length;if(f)return o+=o<0?f:0,Wn(o,f)?n[o]:r}function rg(n,o,f){o.length?o=Ht(o,function(V){return dt(V)?function(se){return xi(se,V.length===1?V[0]:V)}:V}):o=[Lr];var y=-1;o=Ht(o,Dr(at()));var I=Yp(n,function(V,se,pe){var we=Ht(o,function(He){return He(V)});return{criteria:we,index:++y,value:V}});return IE(I,function(V,se){return dS(V,se,f)})}function eS(n,o){return ng(n,o,function(f,y){return Tc(n,y)})}function ng(n,o,f){for(var y=-1,I=o.length,V={};++y<I;){var se=o[y],pe=xi(n,se);f(pe,se)&&ua(V,hi(se,n),pe)}return V}function tS(n){return function(o){return xi(o,n)}}function ec(n,o,f,y){var I=y?RE:ao,V=-1,se=o.length,pe=n;for(n===o&&(o=Or(o)),f&&(pe=Ht(n,Dr(f)));++V<se;)for(var we=0,He=o[V],We=f?f(He):He;(we=I(pe,We,we,y))>-1;)pe!==n&&Es.call(pe,we,1),Es.call(n,we,1);return n}function ig(n,o){for(var f=n?o.length:0,y=f-1;f--;){var I=o[f];if(f==y||I!==V){var V=I;Wn(I)?Es.call(n,I,1):ic(n,I)}}return n}function tc(n,o){return n+Rs(Fp()*(o-n+1))}function rS(n,o,f,y){for(var I=-1,V=ir(As((o-n)/(f||1)),0),se=Pe(V);V--;)se[y?V:++I]=n,n+=f;return se}function rc(n,o){var f="";if(!n||o<1||o>ne)return f;do o%2&&(f+=n),o=Rs(o/2),o&&(n+=n);while(o);return f}function yt(n,o){return mc($g(n,o,Lr),n+"")}function nS(n){return Up(mo(n))}function iS(n,o){var f=mo(n);return qs(f,$i(o,0,f.length))}function ua(n,o,f,y){if(!Wt(n))return n;o=hi(o,n);for(var I=-1,V=o.length,se=V-1,pe=n;pe!=null&&++I<V;){var we=En(o[I]),He=f;if(we==="__proto__"||we==="constructor"||we==="prototype")return n;if(I!=se){var We=pe[we];He=y?y(We,we,pe):r,He===r&&(He=Wt(We)?We:Wn(o[I+1])?[]:{})}ia(pe,we,He),pe=pe[we]}return n}var og=Is?function(n,o){return Is.set(n,o),n}:Lr,oS=Ss?function(n,o){return Ss(n,"toString",{configurable:!0,enumerable:!1,value:Pc(o),writable:!0})}:Lr;function aS(n){return qs(mo(n))}function Kr(n,o,f){var y=-1,I=n.length;o<0&&(o=-o>I?0:I+o),f=f>I?I:f,f<0&&(f+=I),I=o>f?0:f-o>>>0,o>>>=0;for(var V=Pe(I);++y<I;)V[y]=n[y+o];return V}function sS(n,o){var f;return li(n,function(y,I,V){return f=o(y,I,V),!f}),!!f}function Bs(n,o,f){var y=0,I=n==null?y:n.length;if(typeof o=="number"&&o===o&&I<=j){for(;y<I;){var V=y+I>>>1,se=n[V];se!==null&&!Fr(se)&&(f?se<=o:se<o)?y=V+1:I=V}return I}return nc(n,o,Lr,f)}function nc(n,o,f,y){var I=0,V=n==null?0:n.length;if(V===0)return 0;o=f(o);for(var se=o!==o,pe=o===null,we=Fr(o),He=o===r;I<V;){var We=Rs((I+V)/2),Ze=f(n[We]),Qe=Ze!==r,it=Ze===null,st=Ze===Ze,gt=Fr(Ze);if(se)var ut=y||st;else He?ut=st&&(y||Qe):pe?ut=st&&Qe&&(y||!it):we?ut=st&&Qe&&!it&&(y||!gt):it||gt?ut=!1:ut=y?Ze<=o:Ze<o;ut?I=We+1:V=We}return gr(V,B)}function ag(n,o){for(var f=-1,y=n.length,I=0,V=[];++f<y;){var se=n[f],pe=o?o(se):se;if(!f||!un(pe,we)){var we=pe;V[I++]=se===0?0:se}}return V}function sg(n){return typeof n=="number"?n:Fr(n)?x:+n}function Mr(n){if(typeof n=="string")return n;if(dt(n))return Ht(n,Mr)+"";if(Fr(n))return jp?jp.call(n):"";var o=n+"";return o=="0"&&1/n==-X?"-0":o}function di(n,o,f){var y=-1,I=ds,V=n.length,se=!0,pe=[],we=pe;if(f)se=!1,I=Nf;else if(V>=a){var He=o?null:bS(n);if(He)return ps(He);se=!1,I=Yo,we=new Bi}else we=o?[]:pe;e:for(;++y<V;){var We=n[y],Ze=o?o(We):We;if(We=f||We!==0?We:0,se&&Ze===Ze){for(var Qe=we.length;Qe--;)if(we[Qe]===Ze)continue e;o&&we.push(Ze),pe.push(We)}else I(we,Ze,f)||(we!==pe&&we.push(Ze),pe.push(We))}return pe}function ic(n,o){return o=hi(o,n),n=xg(n,o),n==null||delete n[En(Jr(o))]}function ug(n,o,f,y){return ua(n,o,f(xi(n,o)),y)}function $s(n,o,f,y){for(var I=n.length,V=y?I:-1;(y?V--:++V<I)&&o(n[V],V,n););return f?Kr(n,y?0:V,y?V+1:I):Kr(n,y?V+1:0,y?I:V)}function fg(n,o){var f=n;return f instanceof vt&&(f=f.value()),Bf(o,function(y,I){return I.func.apply(I.thisArg,ui([y],I.args))},f)}function oc(n,o,f){var y=n.length;if(y<2)return y?di(n[0]):[];for(var I=-1,V=Pe(y);++I<y;)for(var se=n[I],pe=-1;++pe<y;)pe!=I&&(V[I]=oa(V[I]||se,n[pe],o,f));return di(cr(V,1),o,f)}function cg(n,o,f){for(var y=-1,I=n.length,V=o.length,se={};++y<I;){var pe=y<V?o[y]:r;f(se,n[y],pe)}return se}function ac(n){return Xt(n)?n:[]}function sc(n){return typeof n=="function"?n:Lr}function hi(n,o){return dt(n)?n:yc(n,o)?[n]:jg(Tt(n))}var uS=yt;function pi(n,o,f){var y=n.length;return f=f===r?y:f,!o&&f>=y?n:Kr(n,o,f)}var lg=KE||function(n){return ft.clearTimeout(n)};function dg(n,o){if(o)return n.slice();var f=n.length,y=Bp?Bp(f):new n.constructor(f);return n.copy(y),y}function uc(n){var o=new n.constructor(n.byteLength);return new vs(o).set(new vs(n)),o}function fS(n,o){var f=o?uc(n.buffer):n.buffer;return new n.constructor(f,n.byteOffset,n.byteLength)}function cS(n){var o=new n.constructor(n.source,qt.exec(n));return o.lastIndex=n.lastIndex,o}function lS(n){return na?$t(na.call(n)):{}}function hg(n,o){var f=o?uc(n.buffer):n.buffer;return new n.constructor(f,n.byteOffset,n.length)}function pg(n,o){if(n!==o){var f=n!==r,y=n===null,I=n===n,V=Fr(n),se=o!==r,pe=o===null,we=o===o,He=Fr(o);if(!pe&&!He&&!V&&n>o||V&&se&&we&&!pe&&!He||y&&se&&we||!f&&we||!I)return 1;if(!y&&!V&&!He&&n<o||He&&f&&I&&!y&&!V||pe&&f&&I||!se&&I||!we)return-1}return 0}function dS(n,o,f){for(var y=-1,I=n.criteria,V=o.criteria,se=I.length,pe=f.length;++y<se;){var we=pg(I[y],V[y]);if(we){if(y>=pe)return we;var He=f[y];return we*(He=="desc"?-1:1)}}return n.index-o.index}function gg(n,o,f,y){for(var I=-1,V=n.length,se=f.length,pe=-1,we=o.length,He=ir(V-se,0),We=Pe(we+He),Ze=!y;++pe<we;)We[pe]=o[pe];for(;++I<se;)(Ze||I<V)&&(We[f[I]]=n[I]);for(;He--;)We[pe++]=n[I++];return We}function yg(n,o,f,y){for(var I=-1,V=n.length,se=-1,pe=f.length,we=-1,He=o.length,We=ir(V-pe,0),Ze=Pe(We+He),Qe=!y;++I<We;)Ze[I]=n[I];for(var it=I;++we<He;)Ze[it+we]=o[we];for(;++se<pe;)(Qe||I<V)&&(Ze[it+f[se]]=n[I++]);return Ze}function Or(n,o){var f=-1,y=n.length;for(o||(o=Pe(y));++f<y;)o[f]=n[f];return o}function wn(n,o,f,y){var I=!f;f||(f={});for(var V=-1,se=o.length;++V<se;){var pe=o[V],we=y?y(f[pe],n[pe],pe,f,n):r;we===r&&(we=n[pe]),I?Un(f,pe,we):ia(f,pe,we)}return f}function hS(n,o){return wn(n,gc(n),o)}function pS(n,o){return wn(n,Pg(n),o)}function xs(n,o){return function(f,y){var I=dt(f)?mE:D1,V=o?o():{};return I(f,n,at(y,2),V)}}function go(n){return yt(function(o,f){var y=-1,I=f.length,V=I>1?f[I-1]:r,se=I>2?f[2]:r;for(V=n.length>3&&typeof V=="function"?(I--,V):r,se&&Sr(f[0],f[1],se)&&(V=I<3?r:V,I=1),o=$t(o);++y<I;){var pe=f[y];pe&&n(o,pe,y,V)}return o})}function _g(n,o){return function(f,y){if(f==null)return f;if(!Pr(f))return n(f,y);for(var I=f.length,V=o?I:-1,se=$t(f);(o?V--:++V<I)&&y(se[V],V,se)!==!1;);return f}}function bg(n){return function(o,f,y){for(var I=-1,V=$t(o),se=y(o),pe=se.length;pe--;){var we=se[n?pe:++I];if(f(V[we],we,V)===!1)break}return o}}function gS(n,o,f){var y=o&E,I=fa(n);function V(){var se=this&&this!==ft&&this instanceof V?I:n;return se.apply(y?f:this,arguments)}return V}function mg(n){return function(o){o=Tt(o);var f=so(o)?an(o):r,y=f?f[0]:o.charAt(0),I=f?pi(f,1).join(""):o.slice(1);return y[n]()+I}}function yo(n){return function(o){return Bf(_y(yy(o).replace(fs,"")),n,"")}}function fa(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var f=po(n.prototype),y=n.apply(f,o);return Wt(y)?y:f}}function yS(n,o,f){var y=fa(n);function I(){for(var V=arguments.length,se=Pe(V),pe=V,we=_o(I);pe--;)se[pe]=arguments[pe];var He=V<3&&se[0]!==we&&se[V-1]!==we?[]:fi(se,we);if(V-=He.length,V<f)return Ag(n,o,Ds,I.placeholder,r,se,He,r,r,f-V);var We=this&&this!==ft&&this instanceof I?y:n;return xr(We,this,se)}return I}function vg(n){return function(o,f,y){var I=$t(o);if(!Pr(o)){var V=at(f,3);o=sr(o),f=function(pe){return V(I[pe],pe,I)}}var se=n(o,f,y);return se>-1?I[V?o[se]:se]:r}}function wg(n){return Hn(function(o){var f=o.length,y=f,I=Vr.prototype.thru;for(n&&o.reverse();y--;){var V=o[y];if(typeof V!="function")throw new Gr(u);if(I&&!se&&ks(V)=="wrapper")var se=new Vr([],!0)}for(y=se?y:f;++y<f;){V=o[y];var pe=ks(V),we=pe=="wrapper"?hc(V):r;we&&_c(we[0])&&we[1]==(ie|w|H|he)&&!we[4].length&&we[9]==1?se=se[ks(we[0])].apply(se,we[3]):se=V.length==1&&_c(V)?se[pe]():se.thru(V)}return function(){var He=arguments,We=He[0];if(se&&He.length==1&&dt(We))return se.plant(We).value();for(var Ze=0,Qe=f?o[Ze].apply(this,He):We;++Ze<f;)Qe=o[Ze].call(this,Qe);return Qe}})}function Ds(n,o,f,y,I,V,se,pe,we,He){var We=o&ie,Ze=o&E,Qe=o&R,it=o&(w|S),st=o&le,gt=Qe?r:fa(n);function ut(){for(var _t=arguments.length,Et=Pe(_t),jr=_t;jr--;)Et[jr]=arguments[jr];if(it)var Ar=_o(ut),kr=OE(Et,Ar);if(y&&(Et=gg(Et,y,I,it)),V&&(Et=yg(Et,V,se,it)),_t-=kr,it&&_t<He){var Yt=fi(Et,Ar);return Ag(n,o,Ds,ut.placeholder,f,Et,Yt,pe,we,He-_t)}var fn=Ze?f:this,Vn=Qe?fn[n]:n;return _t=Et.length,pe?Et=DS(Et,pe):st&&_t>1&&Et.reverse(),We&&we<_t&&(Et.length=we),this&&this!==ft&&this instanceof ut&&(Vn=gt||fa(Vn)),Vn.apply(fn,Et)}return ut}function Eg(n,o){return function(f,y){return W1(f,n,o(y),{})}}function Ms(n,o){return function(f,y){var I;if(f===r&&y===r)return o;if(f!==r&&(I=f),y!==r){if(I===r)return y;typeof f=="string"||typeof y=="string"?(f=Mr(f),y=Mr(y)):(f=sg(f),y=sg(y)),I=n(f,y)}return I}}function fc(n){return Hn(function(o){return o=Ht(o,Dr(at())),yt(function(f){var y=this;return n(o,function(I){return xr(I,y,f)})})})}function Fs(n,o){o=o===r?" ":Mr(o);var f=o.length;if(f<2)return f?rc(o,n):o;var y=rc(o,As(n/uo(o)));return so(o)?pi(an(y),0,n).join(""):y.slice(0,n)}function _S(n,o,f,y){var I=o&E,V=fa(n);function se(){for(var pe=-1,we=arguments.length,He=-1,We=y.length,Ze=Pe(We+we),Qe=this&&this!==ft&&this instanceof se?V:n;++He<We;)Ze[He]=y[He];for(;we--;)Ze[He++]=arguments[++pe];return xr(Qe,I?f:this,Ze)}return se}function Sg(n){return function(o,f,y){return y&&typeof y!="number"&&Sr(o,f,y)&&(f=y=r),o=Gn(o),f===r?(f=o,o=0):f=Gn(f),y=y===r?o<f?1:-1:Gn(y),rS(o,f,y,n)}}function js(n){return function(o,f){return typeof o=="string"&&typeof f=="string"||(o=Xr(o),f=Xr(f)),n(o,f)}}function Ag(n,o,f,y,I,V,se,pe,we,He){var We=o&w,Ze=We?se:r,Qe=We?r:se,it=We?V:r,st=We?r:V;o|=We?H:Q,o&=~(We?Q:H),o&v||(o&=~(E|R));var gt=[n,o,I,it,Ze,st,Qe,pe,we,He],ut=f.apply(r,gt);return _c(n)&&Dg(ut,gt),ut.placeholder=y,Mg(ut,n,o)}function cc(n){var o=nr[n];return function(f,y){if(f=Xr(f),y=y==null?0:gr(pt(y),292),y&&Mp(f)){var I=(Tt(f)+"e").split("e"),V=o(I[0]+"e"+(+I[1]+y));return I=(Tt(V)+"e").split("e"),+(I[0]+"e"+(+I[1]-y))}return o(f)}}var bS=lo&&1/ps(new lo([,-0]))[1]==X?function(n){return new lo(n)}:Nc;function Rg(n){return function(o){var f=yr(o);return f==J?kf(o):f==et?xE(o):TE(o,n(o))}}function qn(n,o,f,y,I,V,se,pe){var we=o&R;if(!we&&typeof n!="function")throw new Gr(u);var He=y?y.length:0;if(He||(o&=~(H|Q),y=I=r),se=se===r?se:ir(pt(se),0),pe=pe===r?pe:pt(pe),He-=I?I.length:0,o&Q){var We=y,Ze=I;y=I=r}var Qe=we?r:hc(n),it=[n,o,f,y,I,We,Ze,V,se,pe];if(Qe&&BS(it,Qe),n=it[0],o=it[1],f=it[2],y=it[3],I=it[4],pe=it[9]=it[9]===r?we?0:n.length:ir(it[9]-He,0),!pe&&o&(w|S)&&(o&=~(w|S)),!o||o==E)var st=gS(n,o,f);else o==w||o==S?st=yS(n,o,pe):(o==H||o==(E|H))&&!I.length?st=_S(n,o,f,y):st=Ds.apply(r,it);var gt=Qe?og:Dg;return Mg(gt(st,it),n,o)}function Ig(n,o,f,y){return n===r||un(n,co[f])&&!Ct.call(y,f)?o:n}function Tg(n,o,f,y,I,V){return Wt(n)&&Wt(o)&&(V.set(o,n),Ns(n,o,r,Tg,V),V.delete(o)),n}function mS(n){return da(n)?r:n}function Og(n,o,f,y,I,V){var se=f&T,pe=n.length,we=o.length;if(pe!=we&&!(se&&we>pe))return!1;var He=V.get(n),We=V.get(o);if(He&&We)return He==o&&We==n;var Ze=-1,Qe=!0,it=f&k?new Bi:r;for(V.set(n,o),V.set(o,n);++Ze<pe;){var st=n[Ze],gt=o[Ze];if(y)var ut=se?y(gt,st,Ze,o,n,V):y(st,gt,Ze,n,o,V);if(ut!==r){if(ut)continue;Qe=!1;break}if(it){if(!$f(o,function(_t,Et){if(!Yo(it,Et)&&(st===_t||I(st,_t,f,y,V)))return it.push(Et)})){Qe=!1;break}}else if(!(st===gt||I(st,gt,f,y,V))){Qe=!1;break}}return V.delete(n),V.delete(o),Qe}function vS(n,o,f,y,I,V,se){switch(f){case Ue:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Ve:return!(n.byteLength!=o.byteLength||!V(new vs(n),new vs(o)));case oe:case fe:case ge:return un(+n,+o);case Be:return n.name==o.name&&n.message==o.message;case Ye:case re:return n==o+"";case J:var pe=kf;case et:var we=y&T;if(pe||(pe=ps),n.size!=o.size&&!we)return!1;var He=se.get(n);if(He)return He==o;y|=k,se.set(n,o);var We=Og(pe(n),pe(o),y,I,V,se);return se.delete(n),We;case xe:if(na)return na.call(n)==na.call(o)}return!1}function wS(n,o,f,y,I,V){var se=f&T,pe=lc(n),we=pe.length,He=lc(o),We=He.length;if(we!=We&&!se)return!1;for(var Ze=we;Ze--;){var Qe=pe[Ze];if(!(se?Qe in o:Ct.call(o,Qe)))return!1}var it=V.get(n),st=V.get(o);if(it&&st)return it==o&&st==n;var gt=!0;V.set(n,o),V.set(o,n);for(var ut=se;++Ze<we;){Qe=pe[Ze];var _t=n[Qe],Et=o[Qe];if(y)var jr=se?y(Et,_t,Qe,o,n,V):y(_t,Et,Qe,n,o,V);if(!(jr===r?_t===Et||I(_t,Et,f,y,V):jr)){gt=!1;break}ut||(ut=Qe=="constructor")}if(gt&&!ut){var Ar=n.constructor,kr=o.constructor;Ar!=kr&&"constructor"in n&&"constructor"in o&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof kr=="function"&&kr instanceof kr)&&(gt=!1)}return V.delete(n),V.delete(o),gt}function Hn(n){return mc($g(n,r,Hg),n+"")}function lc(n){return Zp(n,sr,gc)}function dc(n){return Zp(n,Cr,Pg)}var hc=Is?function(n){return Is.get(n)}:Nc;function ks(n){for(var o=n.name+"",f=ho[o],y=Ct.call(ho,o)?f.length:0;y--;){var I=f[y],V=I.func;if(V==null||V==n)return I.name}return o}function _o(n){var o=Ct.call(q,"placeholder")?q:n;return o.placeholder}function at(){var n=q.iteratee||Cc;return n=n===Cc?Xp:n,arguments.length?n(arguments[0],arguments[1]):n}function Us(n,o){var f=n.__data__;return PS(o)?f[typeof o=="string"?"string":"hash"]:f.map}function pc(n){for(var o=sr(n),f=o.length;f--;){var y=o[f],I=n[y];o[f]=[y,I,Ng(I)]}return o}function Di(n,o){var f=NE(n,o);return Jp(f)?f:r}function ES(n){var o=Ct.call(n,Li),f=n[Li];try{n[Li]=r;var y=!0}catch{}var I=bs.call(n);return y&&(o?n[Li]=f:delete n[Li]),I}var gc=qf?function(n){return n==null?[]:(n=$t(n),si(qf(n),function(o){return xp.call(n,o)}))}:Bc,Pg=qf?function(n){for(var o=[];n;)ui(o,gc(n)),n=ws(n);return o}:Bc,yr=Er;(Hf&&yr(new Hf(new ArrayBuffer(1)))!=Ue||ea&&yr(new ea)!=J||Wf&&yr(Wf.resolve())!=je||lo&&yr(new lo)!=et||ta&&yr(new ta)!=ce)&&(yr=function(n){var o=Er(n),f=o==Oe?n.constructor:r,y=f?Mi(f):"";if(y)switch(y){case i1:return Ue;case o1:return J;case a1:return je;case s1:return et;case u1:return ce}return o});function SS(n,o,f){for(var y=-1,I=f.length;++y<I;){var V=f[y],se=V.size;switch(V.type){case"drop":n+=se;break;case"dropRight":o-=se;break;case"take":o=gr(o,n+se);break;case"takeRight":n=ir(n,o-se);break}}return{start:n,end:o}}function AS(n){var o=n.match(ar);return o?o[1].split(fr):[]}function Cg(n,o,f){o=hi(o,n);for(var y=-1,I=o.length,V=!1;++y<I;){var se=En(o[y]);if(!(V=n!=null&&f(n,se)))break;n=n[se]}return V||++y!=I?V:(I=n==null?0:n.length,!!I&&Zs(I)&&Wn(se,I)&&(dt(n)||Fi(n)))}function RS(n){var o=n.length,f=new n.constructor(o);return o&&typeof n[0]=="string"&&Ct.call(n,"index")&&(f.index=n.index,f.input=n.input),f}function Lg(n){return typeof n.constructor=="function"&&!ca(n)?po(ws(n)):{}}function IS(n,o,f){var y=n.constructor;switch(o){case Ve:return uc(n);case oe:case fe:return new y(+n);case Ue:return fS(n,f);case ke:case Xe:case D:case Re:case $e:case qe:case C:case K:case A:return hg(n,f);case J:return new y;case ge:case re:return new y(n);case Ye:return cS(n);case et:return new y;case xe:return lS(n)}}function TS(n,o){var f=o.length;if(!f)return n;var y=f-1;return o[y]=(f>1?"& ":"")+o[y],o=o.join(f>2?", ":" "),n.replace(ht,`{
86
86
  /* [wrapped with `+o+`] */
87
- `)}function mS(n){return dt(n)||Fi(n)||!!(Lp&&n&&n[Lp])}function Wn(n,o){var u=typeof n;return o=o??ne,!!o&&(u=="number"||u!="symbol"&&yn.test(n))&&n>-1&&n%1==0&&n<o}function Sr(n,o,u){if(!Wt(u))return!1;var g=typeof o;return(g=="number"?Pr(u)&&Wn(o,u.length):g=="string"&&o in u)?fn(u[o],n):!1}function yc(n,o){if(dt(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Fr(n)?!0:Ce.test(n)||!W.test(n)||o!=null&&n in $t(o)}function vS(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function _c(n){var o=ks(n),u=q[o];if(typeof u!="function"||!(o in vt.prototype))return!1;if(n===u)return!0;var g=hc(u);return!!g&&n===g[0]}function wS(n){return!!Op&&Op in n}var ES=ys?zn:$c;function ca(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||co;return n===u}function Og(n){return n===n&&!Wt(n)}function Tg(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in $t(u))}}function SS(n){var o=Gs(n,function(g){return u.size===l&&u.clear(),g}),u=o.cache;return o}function AS(n,o){var u=n[1],g=o[1],R=u|g,V=R<(E|I|ie),se=g==ie&&u==w||g==ie&&u==he&&n[7].length<=o[8]||g==(ie|he)&&o[7].length<=o[8]&&u==w;if(!(V||se))return n;g&E&&(n[2]=o[2],R|=u&E?0:v);var pe=o[3];if(pe){var we=n[3];n[3]=we?cg(we,pe,o[4]):pe,n[4]=we?ui(n[3],h):o[4]}return pe=o[5],pe&&(we=n[5],n[5]=we?lg(we,pe,o[6]):pe,n[6]=we?ui(n[5],h):o[6]),pe=o[7],pe&&(n[7]=pe),g&ie&&(n[8]=n[8]==null?o[8]:gr(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=R,n}function RS(n){var o=[];if(n!=null)for(var u in $t(n))o.push(u);return o}function IS(n){return bs.call(n)}function Pg(n,o,u){return o=ir(o===r?n.length-1:o,0),function(){for(var g=arguments,R=-1,V=ir(g.length-o,0),se=Pe(V);++R<V;)se[R]=g[o+R];R=-1;for(var pe=Pe(o+1);++R<o;)pe[R]=g[R];return pe[o]=u(se),xr(n,this,pe)}}function Cg(n,o){return o.length<2?n:xi(n,Kr(o,0,-1))}function OS(n,o){for(var u=n.length,g=gr(o.length,u),R=Tr(n);g--;){var V=o[g];n[g]=Wn(V,u)?R[V]:r}return n}function bc(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Lg=Bg(eg),la=qE||function(n,o){return ut.setTimeout(n,o)},mc=Bg(J1);function Ng(n,o,u){var g=o+"";return mc(n,bS(g,TS(gS(g),u)))}function Bg(n){var o=0,u=0;return function(){var g=GE(),R=O-(g-u);if(u=g,R>0){if(++o>=m)return arguments[0]}else o=0;return n.apply(r,arguments)}}function qs(n,o){var u=-1,g=n.length,R=g-1;for(o=o===r?g:o;++u<o;){var V=tc(u,R),se=n[V];n[V]=n[u],n[u]=se}return n.length=o,n}var $g=SS(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ze,function(u,g,R,V){o.push(R?V.replace(St,"$1"):g||u)}),o});function En(n){if(typeof n=="string"||Fr(n))return n;var o=n+"";return o=="0"&&1/n==-X?"-0":o}function Mi(n){if(n!=null){try{return _s.call(n)}catch{}try{return n+""}catch{}}return""}function TS(n,o){return zr($,function(u){var g="_."+u[0];o&u[1]&&!ds(n,g)&&n.push(g)}),n.sort()}function xg(n){if(n instanceof vt)return n.clone();var o=new Vr(n.__wrapped__,n.__chain__);return o.__actions__=Tr(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function PS(n,o,u){(u?Sr(n,o,u):o===r)?o=1:o=ir(pt(o),0);var g=n==null?0:n.length;if(!g||o<1)return[];for(var R=0,V=0,se=Pe(As(g/o));R<g;)se[V++]=Kr(n,R,R+=o);return se}function CS(n){for(var o=-1,u=n==null?0:n.length,g=0,R=[];++o<u;){var V=n[o];V&&(R[g++]=V)}return R}function LS(){var n=arguments.length;if(!n)return[];for(var o=Pe(n-1),u=arguments[0],g=n;g--;)o[g-1]=arguments[g];return fi(dt(u)?Tr(u):[u],cr(o,1))}var NS=yt(function(n,o){return Xt(n)?oa(n,cr(o,1,Xt,!0)):[]}),BS=yt(function(n,o){var u=Jr(o);return Xt(u)&&(u=r),Xt(n)?oa(n,cr(o,1,Xt,!0),at(u,2)):[]}),$S=yt(function(n,o){var u=Jr(o);return Xt(u)&&(u=r),Xt(n)?oa(n,cr(o,1,Xt,!0),r,u):[]});function xS(n,o,u){var g=n==null?0:n.length;return g?(o=u||o===r?1:pt(o),Kr(n,o<0?0:o,g)):[]}function DS(n,o,u){var g=n==null?0:n.length;return g?(o=u||o===r?1:pt(o),o=g-o,Kr(n,0,o<0?0:o)):[]}function MS(n,o){return n&&n.length?$s(n,at(o,3),!0,!0):[]}function FS(n,o){return n&&n.length?$s(n,at(o,3),!0):[]}function jS(n,o,u,g){var R=n==null?0:n.length;return R?(u&&typeof u!="number"&&Sr(n,o,u)&&(u=0,g=R),L1(n,o,u,g)):[]}function Dg(n,o,u){var g=n==null?0:n.length;if(!g)return-1;var R=u==null?0:pt(u);return R<0&&(R=ir(g+R,0)),hs(n,at(o,3),R)}function Mg(n,o,u){var g=n==null?0:n.length;if(!g)return-1;var R=g-1;return u!==r&&(R=pt(u),R=u<0?ir(g+R,0):gr(R,g-1)),hs(n,at(o,3),R,!0)}function Fg(n){var o=n==null?0:n.length;return o?cr(n,1):[]}function kS(n){var o=n==null?0:n.length;return o?cr(n,X):[]}function US(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:pt(o),cr(n,o)):[]}function qS(n){for(var o=-1,u=n==null?0:n.length,g={};++o<u;){var R=n[o];g[R[0]]=R[1]}return g}function jg(n){return n&&n.length?n[0]:r}function HS(n,o,u){var g=n==null?0:n.length;if(!g)return-1;var R=u==null?0:pt(u);return R<0&&(R=ir(g+R,0)),ao(n,o,R)}function WS(n){var o=n==null?0:n.length;return o?Kr(n,0,-1):[]}var zS=yt(function(n){var o=Ht(n,ac);return o.length&&o[0]===n[0]?Ju(o):[]}),GS=yt(function(n){var o=Jr(n),u=Ht(n,ac);return o===Jr(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Ju(u,at(o,2)):[]}),VS=yt(function(n){var o=Jr(n),u=Ht(n,ac);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Ju(u,r,o):[]});function ZS(n,o){return n==null?"":WE.call(n,o)}function Jr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function KS(n,o,u){var g=n==null?0:n.length;if(!g)return-1;var R=g;return u!==r&&(R=pt(u),R=R<0?ir(g+R,0):gr(R,g-1)),o===o?TE(n,o,R):hs(n,mp,R,!0)}function JS(n,o){return n&&n.length?Jp(n,pt(o)):r}var XS=yt(kg);function kg(n,o){return n&&n.length&&o&&o.length?ec(n,o):n}function YS(n,o,u){return n&&n.length&&o&&o.length?ec(n,o,at(u,2)):n}function QS(n,o,u){return n&&n.length&&o&&o.length?ec(n,o,r,u):n}var eA=Hn(function(n,o){var u=n==null?0:n.length,g=Gu(n,o);return Qp(n,Ht(o,function(R){return Wn(R,u)?+R:R}).sort(ug)),g});function tA(n,o){var u=[];if(!(n&&n.length))return u;var g=-1,R=[],V=n.length;for(o=at(o,3);++g<V;){var se=n[g];o(se,g,n)&&(u.push(se),R.push(g))}return Qp(n,R),u}function vc(n){return n==null?n:ZE.call(n)}function rA(n,o,u){var g=n==null?0:n.length;return g?(u&&typeof u!="number"&&Sr(n,o,u)?(o=0,u=g):(o=o==null?0:pt(o),u=u===r?g:pt(u)),Kr(n,o,u)):[]}function nA(n,o){return Bs(n,o)}function iA(n,o,u){return nc(n,o,at(u,2))}function oA(n,o){var u=n==null?0:n.length;if(u){var g=Bs(n,o);if(g<u&&fn(n[g],o))return g}return-1}function aA(n,o){return Bs(n,o,!0)}function sA(n,o,u){return nc(n,o,at(u,2),!0)}function fA(n,o){var u=n==null?0:n.length;if(u){var g=Bs(n,o,!0)-1;if(fn(n[g],o))return g}return-1}function uA(n){return n&&n.length?tg(n):[]}function cA(n,o){return n&&n.length?tg(n,at(o,2)):[]}function lA(n){var o=n==null?0:n.length;return o?Kr(n,1,o):[]}function dA(n,o,u){return n&&n.length?(o=u||o===r?1:pt(o),Kr(n,0,o<0?0:o)):[]}function hA(n,o,u){var g=n==null?0:n.length;return g?(o=u||o===r?1:pt(o),o=g-o,Kr(n,o<0?0:o,g)):[]}function pA(n,o){return n&&n.length?$s(n,at(o,3),!1,!0):[]}function gA(n,o){return n&&n.length?$s(n,at(o,3)):[]}var yA=yt(function(n){return di(cr(n,1,Xt,!0))}),_A=yt(function(n){var o=Jr(n);return Xt(o)&&(o=r),di(cr(n,1,Xt,!0),at(o,2))}),bA=yt(function(n){var o=Jr(n);return o=typeof o=="function"?o:r,di(cr(n,1,Xt,!0),r,o)});function mA(n){return n&&n.length?di(n):[]}function vA(n,o){return n&&n.length?di(n,at(o,2)):[]}function wA(n,o){return o=typeof o=="function"?o:r,n&&n.length?di(n,r,o):[]}function wc(n){if(!(n&&n.length))return[];var o=0;return n=si(n,function(u){if(Xt(u))return o=ir(u.length,o),!0}),Fu(o,function(u){return Ht(n,xu(u))})}function Ug(n,o){if(!(n&&n.length))return[];var u=wc(n);return o==null?u:Ht(u,function(g){return xr(o,r,g)})}var EA=yt(function(n,o){return Xt(n)?oa(n,o):[]}),SA=yt(function(n){return oc(si(n,Xt))}),AA=yt(function(n){var o=Jr(n);return Xt(o)&&(o=r),oc(si(n,Xt),at(o,2))}),RA=yt(function(n){var o=Jr(n);return o=typeof o=="function"?o:r,oc(si(n,Xt),r,o)}),IA=yt(wc);function OA(n,o){return og(n||[],o||[],ia)}function TA(n,o){return og(n||[],o||[],fa)}var PA=yt(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Ug(n,u)});function qg(n){var o=q(n);return o.__chain__=!0,o}function CA(n,o){return o(n),n}function Hs(n,o){return o(n)}var LA=Hn(function(n){var o=n.length,u=o?n[0]:0,g=this.__wrapped__,R=function(V){return Gu(V,n)};return o>1||this.__actions__.length||!(g instanceof vt)||!Wn(u)?this.thru(R):(g=g.slice(u,+u+(o?1:0)),g.__actions__.push({func:Hs,args:[R],thisArg:r}),new Vr(g,this.__chain__).thru(function(V){return o&&!V.length&&V.push(r),V}))});function NA(){return qg(this)}function BA(){return new Vr(this.value(),this.__chain__)}function $A(){this.__values__===r&&(this.__values__=ry(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function xA(){return this}function DA(n){for(var o,u=this;u instanceof Ts;){var g=xg(u);g.__index__=0,g.__values__=r,o?R.__wrapped__=g:o=g;var R=g;u=u.__wrapped__}return R.__wrapped__=n,o}function MA(){var n=this.__wrapped__;if(n instanceof vt){var o=n;return this.__actions__.length&&(o=new vt(this)),o=o.reverse(),o.__actions__.push({func:Hs,args:[vc],thisArg:r}),new Vr(o,this.__chain__)}return this.thru(vc)}function FA(){return ig(this.__wrapped__,this.__actions__)}var jA=xs(function(n,o,u){Ct.call(n,u)?++n[u]:Un(n,u,1)});function kA(n,o,u){var g=dt(n)?_p:C1;return u&&Sr(n,o,u)&&(o=r),g(n,at(o,3))}function UA(n,o){var u=dt(n)?si:Up;return u(n,at(o,3))}var qA=gg(Dg),HA=gg(Mg);function WA(n,o){return cr(Ws(n,o),1)}function zA(n,o){return cr(Ws(n,o),X)}function GA(n,o,u){return u=u===r?1:pt(u),cr(Ws(n,o),u)}function Hg(n,o){var u=dt(n)?zr:li;return u(n,at(o,3))}function Wg(n,o){var u=dt(n)?lE:kp;return u(n,at(o,3))}var VA=xs(function(n,o,u){Ct.call(n,u)?n[u].push(o):Un(n,u,[o])});function ZA(n,o,u,g){n=Pr(n)?n:mo(n),u=u&&!g?pt(u):0;var R=n.length;return u<0&&(u=ir(R+u,0)),Ks(n)?u<=R&&n.indexOf(o,u)>-1:!!R&&ao(n,o,u)>-1}var KA=yt(function(n,o,u){var g=-1,R=typeof o=="function",V=Pr(n)?Pe(n.length):[];return li(n,function(se){V[++g]=R?xr(o,se,u):aa(se,o,u)}),V}),JA=xs(function(n,o,u){Un(n,u,o)});function Ws(n,o){var u=dt(n)?Ht:Vp;return u(n,at(o,3))}function XA(n,o,u,g){return n==null?[]:(dt(o)||(o=o==null?[]:[o]),u=g?r:u,dt(u)||(u=u==null?[]:[u]),Xp(n,o,u))}var YA=xs(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function QA(n,o,u){var g=dt(n)?Bu:wp,R=arguments.length<3;return g(n,at(o,4),u,R,li)}function eR(n,o,u){var g=dt(n)?dE:wp,R=arguments.length<3;return g(n,at(o,4),u,R,kp)}function tR(n,o){var u=dt(n)?si:Up;return u(n,Vs(at(o,3)))}function rR(n){var o=dt(n)?Dp:Z1;return o(n)}function nR(n,o,u){(u?Sr(n,o,u):o===r)?o=1:o=pt(o);var g=dt(n)?R1:K1;return g(n,o)}function iR(n){var o=dt(n)?I1:X1;return o(n)}function oR(n){if(n==null)return 0;if(Pr(n))return Ks(n)?fo(n):n.length;var o=yr(n);return o==J||o==et?n.size:Yu(n).length}function aR(n,o,u){var g=dt(n)?$u:Y1;return u&&Sr(n,o,u)&&(o=r),g(n,at(o,3))}var sR=yt(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Sr(n,o[0],o[1])?o=[]:u>2&&Sr(o[0],o[1],o[2])&&(o=[o[0]]),Xp(n,cr(o,1),[])}),zs=UE||function(){return ut.Date.now()};function fR(n,o){if(typeof o!="function")throw new Gr(f);return n=pt(n),function(){if(--n<1)return o.apply(this,arguments)}}function zg(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,qn(n,ie,r,r,r,r,o)}function Gg(n,o){var u;if(typeof o!="function")throw new Gr(f);return n=pt(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var Ec=yt(function(n,o,u){var g=E;if(u.length){var R=ui(u,_o(Ec));g|=H}return qn(n,g,o,u,R)}),Vg=yt(function(n,o,u){var g=E|I;if(u.length){var R=ui(u,_o(Vg));g|=H}return qn(o,g,n,u,R)});function Zg(n,o,u){o=u?r:o;var g=qn(n,w,r,r,r,r,r,o);return g.placeholder=Zg.placeholder,g}function Kg(n,o,u){o=u?r:o;var g=qn(n,S,r,r,r,r,r,o);return g.placeholder=Kg.placeholder,g}function Jg(n,o,u){var g,R,V,se,pe,we,He=0,We=!1,Ze=!1,Qe=!0;if(typeof n!="function")throw new Gr(f);o=Xr(o)||0,Wt(u)&&(We=!!u.leading,Ze="maxWait"in u,V=Ze?ir(Xr(u.maxWait)||0,o):V,Qe="trailing"in u?!!u.trailing:Qe);function it(Yt){var un=g,Vn=R;return g=R=r,He=Yt,se=n.apply(Vn,un),se}function st(Yt){return He=Yt,pe=la(_t,o),We?it(Yt):se}function gt(Yt){var un=Yt-we,Vn=Yt-He,gy=o-un;return Ze?gr(gy,V-Vn):gy}function ft(Yt){var un=Yt-we,Vn=Yt-He;return we===r||un>=o||un<0||Ze&&Vn>=V}function _t(){var Yt=zs();if(ft(Yt))return Et(Yt);pe=la(_t,gt(Yt))}function Et(Yt){return pe=r,Qe&&g?it(Yt):(g=R=r,se)}function jr(){pe!==r&&ag(pe),He=0,g=we=R=pe=r}function Ar(){return pe===r?se:Et(zs())}function kr(){var Yt=zs(),un=ft(Yt);if(g=arguments,R=this,we=Yt,un){if(pe===r)return st(we);if(Ze)return ag(pe),pe=la(_t,o),it(we)}return pe===r&&(pe=la(_t,o)),se}return kr.cancel=jr,kr.flush=Ar,kr}var uR=yt(function(n,o){return jp(n,1,o)}),cR=yt(function(n,o,u){return jp(n,Xr(o)||0,u)});function lR(n){return qn(n,le)}function Gs(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Gr(f);var u=function(){var g=arguments,R=o?o.apply(this,g):g[0],V=u.cache;if(V.has(R))return V.get(R);var se=n.apply(this,g);return u.cache=V.set(R,se)||V,se};return u.cache=new(Gs.Cache||kn),u}Gs.Cache=kn;function Vs(n){if(typeof n!="function")throw new Gr(f);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function dR(n){return Gg(2,n)}var hR=Q1(function(n,o){o=o.length==1&&dt(o[0])?Ht(o[0],Dr(at())):Ht(cr(o,1),Dr(at()));var u=o.length;return yt(function(g){for(var R=-1,V=gr(g.length,u);++R<V;)g[R]=o[R].call(this,g[R]);return xr(n,this,g)})}),Sc=yt(function(n,o){var u=ui(o,_o(Sc));return qn(n,H,r,o,u)}),Xg=yt(function(n,o){var u=ui(o,_o(Xg));return qn(n,Q,r,o,u)}),pR=Hn(function(n,o){return qn(n,he,r,r,r,o)});function gR(n,o){if(typeof n!="function")throw new Gr(f);return o=o===r?o:pt(o),yt(n,o)}function yR(n,o){if(typeof n!="function")throw new Gr(f);return o=o==null?0:ir(pt(o),0),yt(function(u){var g=u[o],R=pi(u,0,o);return g&&fi(R,g),xr(n,this,R)})}function _R(n,o,u){var g=!0,R=!0;if(typeof n!="function")throw new Gr(f);return Wt(u)&&(g="leading"in u?!!u.leading:g,R="trailing"in u?!!u.trailing:R),Jg(n,o,{leading:g,maxWait:o,trailing:R})}function bR(n){return zg(n,1)}function mR(n,o){return Sc(sc(o),n)}function vR(){if(!arguments.length)return[];var n=arguments[0];return dt(n)?n:[n]}function wR(n){return Zr(n,y)}function ER(n,o){return o=typeof o=="function"?o:r,Zr(n,y,o)}function SR(n){return Zr(n,_|y)}function AR(n,o){return o=typeof o=="function"?o:r,Zr(n,_|y,o)}function RR(n,o){return o==null||Fp(n,o,sr(o))}function fn(n,o){return n===o||n!==n&&o!==o}var IR=js(Ku),OR=js(function(n,o){return n>=o}),Fi=Wp(function(){return arguments}())?Wp:function(n){return Zt(n)&&Ct.call(n,"callee")&&!Cp.call(n,"callee")},dt=Pe.isArray,TR=oo?Dr(oo):D1;function Pr(n){return n!=null&&Zs(n.length)&&!zn(n)}function Xt(n){return Zt(n)&&Pr(n)}function PR(n){return n===!0||n===!1||Zt(n)&&Er(n)==oe}var gi=HE||$c,CR=Xo?Dr(Xo):M1;function LR(n){return Zt(n)&&n.nodeType===1&&!da(n)}function NR(n){if(n==null)return!0;if(Pr(n)&&(dt(n)||typeof n=="string"||typeof n.splice=="function"||gi(n)||bo(n)||Fi(n)))return!n.length;var o=yr(n);if(o==J||o==et)return!n.size;if(ca(n))return!Yu(n).length;for(var u in n)if(Ct.call(n,u))return!1;return!0}function BR(n,o){return sa(n,o)}function $R(n,o,u){u=typeof u=="function"?u:r;var g=u?u(n,o):r;return g===r?sa(n,o,r,u):!!g}function Ac(n){if(!Zt(n))return!1;var o=Er(n);return o==Be||o==Se||typeof n.message=="string"&&typeof n.name=="string"&&!da(n)}function xR(n){return typeof n=="number"&&Np(n)}function zn(n){if(!Wt(n))return!1;var o=Er(n);return o==Me||o==z||o==de||o==me}function Yg(n){return typeof n=="number"&&n==pt(n)}function Zs(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ne}function Wt(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Zt(n){return n!=null&&typeof n=="object"}var Qg=hp?Dr(hp):j1;function DR(n,o){return n===o||Xu(n,o,pc(o))}function MR(n,o,u){return u=typeof u=="function"?u:r,Xu(n,o,pc(o),u)}function FR(n){return ey(n)&&n!=+n}function jR(n){if(ES(n))throw new lt(s);return zp(n)}function kR(n){return n===null}function UR(n){return n==null}function ey(n){return typeof n=="number"||Zt(n)&&Er(n)==ge}function da(n){if(!Zt(n)||Er(n)!=Te)return!1;var o=ws(n);if(o===null)return!0;var u=Ct.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&_s.call(u)==ME}var Rc=pp?Dr(pp):k1;function qR(n){return Yg(n)&&n>=-ne&&n<=ne}var ty=gp?Dr(gp):U1;function Ks(n){return typeof n=="string"||!dt(n)&&Zt(n)&&Er(n)==re}function Fr(n){return typeof n=="symbol"||Zt(n)&&Er(n)==xe}var bo=yp?Dr(yp):q1;function HR(n){return n===r}function WR(n){return Zt(n)&&yr(n)==ce}function zR(n){return Zt(n)&&Er(n)==De}var GR=js(Qu),VR=js(function(n,o){return n<=o});function ry(n){if(!n)return[];if(Pr(n))return Ks(n)?an(n):Tr(n);if(Qo&&n[Qo])return RE(n[Qo]());var o=yr(n),u=o==J?ku:o==et?ps:mo;return u(n)}function Gn(n){if(!n)return n===0?n:0;if(n=Xr(n),n===X||n===-X){var o=n<0?-1:1;return o*F}return n===n?n:0}function pt(n){var o=Gn(n),u=o%1;return o===o?u?o-u:o:0}function ny(n){return n?$i(pt(n),0,Y):0}function Xr(n){if(typeof n=="number")return n;if(Fr(n))return x;if(Wt(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Wt(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ep(n);var u=Gt.test(n);return u||$n.test(n)?mt(n.slice(2),u?2:8):tr.test(n)?x:+n}function iy(n){return wn(n,Cr(n))}function ZR(n){return n?$i(pt(n),-ne,ne):n===0?n:0}function Ot(n){return n==null?"":Mr(n)}var KR=go(function(n,o){if(ca(o)||Pr(o)){wn(o,sr(o),n);return}for(var u in o)Ct.call(o,u)&&ia(n,u,o[u])}),oy=go(function(n,o){wn(o,Cr(o),n)}),Js=go(function(n,o,u,g){wn(o,Cr(o),n,g)}),JR=go(function(n,o,u,g){wn(o,sr(o),n,g)}),XR=Hn(Gu);function YR(n,o){var u=po(n);return o==null?u:Mp(u,o)}var QR=yt(function(n,o){n=$t(n);var u=-1,g=o.length,R=g>2?o[2]:r;for(R&&Sr(o[0],o[1],R)&&(g=1);++u<g;)for(var V=o[u],se=Cr(V),pe=-1,we=se.length;++pe<we;){var He=se[pe],We=n[He];(We===r||fn(We,co[He])&&!Ct.call(n,He))&&(n[He]=V[He])}return n}),eI=yt(function(n){return n.push(r,Eg),xr(ay,r,n)});function tI(n,o){return bp(n,at(o,3),vn)}function rI(n,o){return bp(n,at(o,3),Zu)}function nI(n,o){return n==null?n:Vu(n,at(o,3),Cr)}function iI(n,o){return n==null?n:qp(n,at(o,3),Cr)}function oI(n,o){return n&&vn(n,at(o,3))}function aI(n,o){return n&&Zu(n,at(o,3))}function sI(n){return n==null?[]:Ls(n,sr(n))}function fI(n){return n==null?[]:Ls(n,Cr(n))}function Ic(n,o,u){var g=n==null?r:xi(n,o);return g===r?u:g}function uI(n,o){return n!=null&&Rg(n,o,N1)}function Oc(n,o){return n!=null&&Rg(n,o,B1)}var cI=_g(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=bs.call(o)),n[o]=u},Pc(Lr)),lI=_g(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=bs.call(o)),Ct.call(n,o)?n[o].push(u):n[o]=[u]},at),dI=yt(aa);function sr(n){return Pr(n)?xp(n):Yu(n)}function Cr(n){return Pr(n)?xp(n,!0):H1(n)}function hI(n,o){var u={};return o=at(o,3),vn(n,function(g,R,V){Un(u,o(g,R,V),g)}),u}function pI(n,o){var u={};return o=at(o,3),vn(n,function(g,R,V){Un(u,R,o(g,R,V))}),u}var gI=go(function(n,o,u){Ns(n,o,u)}),ay=go(function(n,o,u,g){Ns(n,o,u,g)}),yI=Hn(function(n,o){var u={};if(n==null)return u;var g=!1;o=Ht(o,function(V){return V=hi(V,n),g||(g=V.length>1),V}),wn(n,dc(n),u),g&&(u=Zr(u,_|b|y,cS));for(var R=o.length;R--;)ic(u,o[R]);return u});function _I(n,o){return sy(n,Vs(at(o)))}var bI=Hn(function(n,o){return n==null?{}:z1(n,o)});function sy(n,o){if(n==null)return{};var u=Ht(dc(n),function(g){return[g]});return o=at(o),Yp(n,u,function(g,R){return o(g,R[0])})}function mI(n,o,u){o=hi(o,n);var g=-1,R=o.length;for(R||(R=1,n=r);++g<R;){var V=n==null?r:n[En(o[g])];V===r&&(g=R,V=u),n=zn(V)?V.call(n):V}return n}function vI(n,o,u){return n==null?n:fa(n,o,u)}function wI(n,o,u,g){return g=typeof g=="function"?g:r,n==null?n:fa(n,o,u,g)}var fy=vg(sr),uy=vg(Cr);function EI(n,o,u){var g=dt(n),R=g||gi(n)||bo(n);if(o=at(o,4),u==null){var V=n&&n.constructor;R?u=g?new V:[]:Wt(n)?u=zn(V)?po(ws(n)):{}:u={}}return(R?zr:vn)(n,function(se,pe,we){return o(u,se,pe,we)}),u}function SI(n,o){return n==null?!0:ic(n,o)}function AI(n,o,u){return n==null?n:ng(n,o,sc(u))}function RI(n,o,u,g){return g=typeof g=="function"?g:r,n==null?n:ng(n,o,sc(u),g)}function mo(n){return n==null?[]:ju(n,sr(n))}function II(n){return n==null?[]:ju(n,Cr(n))}function OI(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=Xr(u),u=u===u?u:0),o!==r&&(o=Xr(o),o=o===o?o:0),$i(Xr(n),o,u)}function TI(n,o,u){return o=Gn(o),u===r?(u=o,o=0):u=Gn(u),n=Xr(n),$1(n,o,u)}function PI(n,o,u){if(u&&typeof u!="boolean"&&Sr(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Gn(n),o===r?(o=n,n=0):o=Gn(o)),n>o){var g=n;n=o,o=g}if(u||n%1||o%1){var R=Bp();return gr(n+R*(o-n+nt("1e-"+((R+"").length-1))),o)}return tc(n,o)}var CI=yo(function(n,o,u){return o=o.toLowerCase(),n+(u?cy(o):o)});function cy(n){return Tc(Ot(n).toLowerCase())}function ly(n){return n=Ot(n),n&&n.replace(xn,vE).replace(Dn,"")}function LI(n,o,u){n=Ot(n),o=Mr(o);var g=n.length;u=u===r?g:$i(pt(u),0,g);var R=u;return u-=o.length,u>=0&&n.slice(u,R)==o}function NI(n){return n=Ot(n),n&&fe.test(n)?n.replace(Ie,wE):n}function BI(n){return n=Ot(n),n&&rt.test(n)?n.replace(Ge,"\\$&"):n}var $I=yo(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),xI=yo(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),DI=pg("toLowerCase");function MI(n,o,u){n=Ot(n),o=pt(o);var g=o?fo(n):0;if(!o||g>=o)return n;var R=(o-g)/2;return Fs(Rs(R),u)+n+Fs(As(R),u)}function FI(n,o,u){n=Ot(n),o=pt(o);var g=o?fo(n):0;return o&&g<o?n+Fs(o-g,u):n}function jI(n,o,u){n=Ot(n),o=pt(o);var g=o?fo(n):0;return o&&g<o?Fs(o-g,u)+n:n}function kI(n,o,u){return u||o==null?o=0:o&&(o=+o),VE(Ot(n).replace(ot,""),o||0)}function UI(n,o,u){return(u?Sr(n,o,u):o===r)?o=1:o=pt(o),rc(Ot(n),o)}function qI(){var n=arguments,o=Ot(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var HI=yo(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function WI(n,o,u){return u&&typeof u!="number"&&Sr(n,o,u)&&(o=u=r),u=u===r?Y:u>>>0,u?(n=Ot(n),n&&(typeof o=="string"||o!=null&&!Rc(o))&&(o=Mr(o),!o&&so(n))?pi(an(n),0,u):n.split(o,u)):[]}var zI=yo(function(n,o,u){return n+(u?" ":"")+Tc(o)});function GI(n,o,u){return n=Ot(n),u=u==null?0:$i(pt(u),0,n.length),o=Mr(o),n.slice(u,u+o.length)==o}function VI(n,o,u){var g=q.templateSettings;u&&Sr(n,o,u)&&(o=r),n=Ot(n),o=Js({},o,g,wg);var R=Js({},o.imports,g.imports,wg),V=sr(R),se=ju(R,V),pe,we,He=0,We=o.interpolate||_n,Ze="__p += '",Qe=Uu((o.escape||_n).source+"|"+We.source+"|"+(We===N?Tt:_n).source+"|"+(o.evaluate||_n).source+"|$","g"),it="//# sourceURL="+(Ct.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Cu+"]")+`
88
- `;n.replace(Qe,function(ft,_t,Et,jr,Ar,kr){return Et||(Et=jr),Ze+=n.slice(He,kr).replace(bn,EE),_t&&(pe=!0,Ze+=`' +
87
+ `)}function OS(n){return dt(n)||Fi(n)||!!(Dp&&n&&n[Dp])}function Wn(n,o){var f=typeof n;return o=o??ne,!!o&&(f=="number"||f!="symbol"&&yn.test(n))&&n>-1&&n%1==0&&n<o}function Sr(n,o,f){if(!Wt(f))return!1;var y=typeof o;return(y=="number"?Pr(f)&&Wn(o,f.length):y=="string"&&o in f)?un(f[o],n):!1}function yc(n,o){if(dt(n))return!1;var f=typeof n;return f=="number"||f=="symbol"||f=="boolean"||n==null||Fr(n)?!0:Ce.test(n)||!W.test(n)||o!=null&&n in $t(o)}function PS(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function _c(n){var o=ks(n),f=q[o];if(typeof f!="function"||!(o in vt.prototype))return!1;if(n===f)return!0;var y=hc(f);return!!y&&n===y[0]}function CS(n){return!!Np&&Np in n}var LS=ys?zn:$c;function ca(n){var o=n&&n.constructor,f=typeof o=="function"&&o.prototype||co;return n===f}function Ng(n){return n===n&&!Wt(n)}function Bg(n,o){return function(f){return f==null?!1:f[n]===o&&(o!==r||n in $t(f))}}function NS(n){var o=Gs(n,function(y){return f.size===l&&f.clear(),y}),f=o.cache;return o}function BS(n,o){var f=n[1],y=o[1],I=f|y,V=I<(E|R|ie),se=y==ie&&f==w||y==ie&&f==he&&n[7].length<=o[8]||y==(ie|he)&&o[7].length<=o[8]&&f==w;if(!(V||se))return n;y&E&&(n[2]=o[2],I|=f&E?0:v);var pe=o[3];if(pe){var we=n[3];n[3]=we?gg(we,pe,o[4]):pe,n[4]=we?fi(n[3],h):o[4]}return pe=o[5],pe&&(we=n[5],n[5]=we?yg(we,pe,o[6]):pe,n[6]=we?fi(n[5],h):o[6]),pe=o[7],pe&&(n[7]=pe),y&ie&&(n[8]=n[8]==null?o[8]:gr(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=I,n}function $S(n){var o=[];if(n!=null)for(var f in $t(n))o.push(f);return o}function xS(n){return bs.call(n)}function $g(n,o,f){return o=ir(o===r?n.length-1:o,0),function(){for(var y=arguments,I=-1,V=ir(y.length-o,0),se=Pe(V);++I<V;)se[I]=y[o+I];I=-1;for(var pe=Pe(o+1);++I<o;)pe[I]=y[I];return pe[o]=f(se),xr(n,this,pe)}}function xg(n,o){return o.length<2?n:xi(n,Kr(o,0,-1))}function DS(n,o){for(var f=n.length,y=gr(o.length,f),I=Or(n);y--;){var V=o[y];n[y]=Wn(V,f)?I[V]:r}return n}function bc(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Dg=Fg(og),la=XE||function(n,o){return ft.setTimeout(n,o)},mc=Fg(oS);function Mg(n,o,f){var y=o+"";return mc(n,TS(y,MS(AS(y),f)))}function Fg(n){var o=0,f=0;return function(){var y=t1(),I=O-(y-f);if(f=y,I>0){if(++o>=m)return arguments[0]}else o=0;return n.apply(r,arguments)}}function qs(n,o){var f=-1,y=n.length,I=y-1;for(o=o===r?y:o;++f<o;){var V=tc(f,I),se=n[V];n[V]=n[f],n[f]=se}return n.length=o,n}var jg=NS(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ze,function(f,y,I,V){o.push(I?V.replace(St,"$1"):y||f)}),o});function En(n){if(typeof n=="string"||Fr(n))return n;var o=n+"";return o=="0"&&1/n==-X?"-0":o}function Mi(n){if(n!=null){try{return _s.call(n)}catch{}try{return n+""}catch{}}return""}function MS(n,o){return zr($,function(f){var y="_."+f[0];o&f[1]&&!ds(n,y)&&n.push(y)}),n.sort()}function kg(n){if(n instanceof vt)return n.clone();var o=new Vr(n.__wrapped__,n.__chain__);return o.__actions__=Or(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function FS(n,o,f){(f?Sr(n,o,f):o===r)?o=1:o=ir(pt(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var I=0,V=0,se=Pe(As(y/o));I<y;)se[V++]=Kr(n,I,I+=o);return se}function jS(n){for(var o=-1,f=n==null?0:n.length,y=0,I=[];++o<f;){var V=n[o];V&&(I[y++]=V)}return I}function kS(){var n=arguments.length;if(!n)return[];for(var o=Pe(n-1),f=arguments[0],y=n;y--;)o[y-1]=arguments[y];return ui(dt(f)?Or(f):[f],cr(o,1))}var US=yt(function(n,o){return Xt(n)?oa(n,cr(o,1,Xt,!0)):[]}),qS=yt(function(n,o){var f=Jr(o);return Xt(f)&&(f=r),Xt(n)?oa(n,cr(o,1,Xt,!0),at(f,2)):[]}),HS=yt(function(n,o){var f=Jr(o);return Xt(f)&&(f=r),Xt(n)?oa(n,cr(o,1,Xt,!0),r,f):[]});function WS(n,o,f){var y=n==null?0:n.length;return y?(o=f||o===r?1:pt(o),Kr(n,o<0?0:o,y)):[]}function zS(n,o,f){var y=n==null?0:n.length;return y?(o=f||o===r?1:pt(o),o=y-o,Kr(n,0,o<0?0:o)):[]}function GS(n,o){return n&&n.length?$s(n,at(o,3),!0,!0):[]}function VS(n,o){return n&&n.length?$s(n,at(o,3),!0):[]}function ZS(n,o,f,y){var I=n==null?0:n.length;return I?(f&&typeof f!="number"&&Sr(n,o,f)&&(f=0,y=I),k1(n,o,f,y)):[]}function Ug(n,o,f){var y=n==null?0:n.length;if(!y)return-1;var I=f==null?0:pt(f);return I<0&&(I=ir(y+I,0)),hs(n,at(o,3),I)}function qg(n,o,f){var y=n==null?0:n.length;if(!y)return-1;var I=y-1;return f!==r&&(I=pt(f),I=f<0?ir(y+I,0):gr(I,y-1)),hs(n,at(o,3),I,!0)}function Hg(n){var o=n==null?0:n.length;return o?cr(n,1):[]}function KS(n){var o=n==null?0:n.length;return o?cr(n,X):[]}function JS(n,o){var f=n==null?0:n.length;return f?(o=o===r?1:pt(o),cr(n,o)):[]}function XS(n){for(var o=-1,f=n==null?0:n.length,y={};++o<f;){var I=n[o];y[I[0]]=I[1]}return y}function Wg(n){return n&&n.length?n[0]:r}function YS(n,o,f){var y=n==null?0:n.length;if(!y)return-1;var I=f==null?0:pt(f);return I<0&&(I=ir(y+I,0)),ao(n,o,I)}function QS(n){var o=n==null?0:n.length;return o?Kr(n,0,-1):[]}var eA=yt(function(n){var o=Ht(n,ac);return o.length&&o[0]===n[0]?Jf(o):[]}),tA=yt(function(n){var o=Jr(n),f=Ht(n,ac);return o===Jr(f)?o=r:f.pop(),f.length&&f[0]===n[0]?Jf(f,at(o,2)):[]}),rA=yt(function(n){var o=Jr(n),f=Ht(n,ac);return o=typeof o=="function"?o:r,o&&f.pop(),f.length&&f[0]===n[0]?Jf(f,r,o):[]});function nA(n,o){return n==null?"":QE.call(n,o)}function Jr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function iA(n,o,f){var y=n==null?0:n.length;if(!y)return-1;var I=y;return f!==r&&(I=pt(f),I=I<0?ir(y+I,0):gr(I,y-1)),o===o?ME(n,o,I):hs(n,Ap,I,!0)}function oA(n,o){return n&&n.length?tg(n,pt(o)):r}var aA=yt(zg);function zg(n,o){return n&&n.length&&o&&o.length?ec(n,o):n}function sA(n,o,f){return n&&n.length&&o&&o.length?ec(n,o,at(f,2)):n}function uA(n,o,f){return n&&n.length&&o&&o.length?ec(n,o,r,f):n}var fA=Hn(function(n,o){var f=n==null?0:n.length,y=Gf(n,o);return ig(n,Ht(o,function(I){return Wn(I,f)?+I:I}).sort(pg)),y});function cA(n,o){var f=[];if(!(n&&n.length))return f;var y=-1,I=[],V=n.length;for(o=at(o,3);++y<V;){var se=n[y];o(se,y,n)&&(f.push(se),I.push(y))}return ig(n,I),f}function vc(n){return n==null?n:n1.call(n)}function lA(n,o,f){var y=n==null?0:n.length;return y?(f&&typeof f!="number"&&Sr(n,o,f)?(o=0,f=y):(o=o==null?0:pt(o),f=f===r?y:pt(f)),Kr(n,o,f)):[]}function dA(n,o){return Bs(n,o)}function hA(n,o,f){return nc(n,o,at(f,2))}function pA(n,o){var f=n==null?0:n.length;if(f){var y=Bs(n,o);if(y<f&&un(n[y],o))return y}return-1}function gA(n,o){return Bs(n,o,!0)}function yA(n,o,f){return nc(n,o,at(f,2),!0)}function _A(n,o){var f=n==null?0:n.length;if(f){var y=Bs(n,o,!0)-1;if(un(n[y],o))return y}return-1}function bA(n){return n&&n.length?ag(n):[]}function mA(n,o){return n&&n.length?ag(n,at(o,2)):[]}function vA(n){var o=n==null?0:n.length;return o?Kr(n,1,o):[]}function wA(n,o,f){return n&&n.length?(o=f||o===r?1:pt(o),Kr(n,0,o<0?0:o)):[]}function EA(n,o,f){var y=n==null?0:n.length;return y?(o=f||o===r?1:pt(o),o=y-o,Kr(n,o<0?0:o,y)):[]}function SA(n,o){return n&&n.length?$s(n,at(o,3),!1,!0):[]}function AA(n,o){return n&&n.length?$s(n,at(o,3)):[]}var RA=yt(function(n){return di(cr(n,1,Xt,!0))}),IA=yt(function(n){var o=Jr(n);return Xt(o)&&(o=r),di(cr(n,1,Xt,!0),at(o,2))}),TA=yt(function(n){var o=Jr(n);return o=typeof o=="function"?o:r,di(cr(n,1,Xt,!0),r,o)});function OA(n){return n&&n.length?di(n):[]}function PA(n,o){return n&&n.length?di(n,at(o,2)):[]}function CA(n,o){return o=typeof o=="function"?o:r,n&&n.length?di(n,r,o):[]}function wc(n){if(!(n&&n.length))return[];var o=0;return n=si(n,function(f){if(Xt(f))return o=ir(f.length,o),!0}),Ff(o,function(f){return Ht(n,xf(f))})}function Gg(n,o){if(!(n&&n.length))return[];var f=wc(n);return o==null?f:Ht(f,function(y){return xr(o,r,y)})}var LA=yt(function(n,o){return Xt(n)?oa(n,o):[]}),NA=yt(function(n){return oc(si(n,Xt))}),BA=yt(function(n){var o=Jr(n);return Xt(o)&&(o=r),oc(si(n,Xt),at(o,2))}),$A=yt(function(n){var o=Jr(n);return o=typeof o=="function"?o:r,oc(si(n,Xt),r,o)}),xA=yt(wc);function DA(n,o){return cg(n||[],o||[],ia)}function MA(n,o){return cg(n||[],o||[],ua)}var FA=yt(function(n){var o=n.length,f=o>1?n[o-1]:r;return f=typeof f=="function"?(n.pop(),f):r,Gg(n,f)});function Vg(n){var o=q(n);return o.__chain__=!0,o}function jA(n,o){return o(n),n}function Hs(n,o){return o(n)}var kA=Hn(function(n){var o=n.length,f=o?n[0]:0,y=this.__wrapped__,I=function(V){return Gf(V,n)};return o>1||this.__actions__.length||!(y instanceof vt)||!Wn(f)?this.thru(I):(y=y.slice(f,+f+(o?1:0)),y.__actions__.push({func:Hs,args:[I],thisArg:r}),new Vr(y,this.__chain__).thru(function(V){return o&&!V.length&&V.push(r),V}))});function UA(){return Vg(this)}function qA(){return new Vr(this.value(),this.__chain__)}function HA(){this.__values__===r&&(this.__values__=sy(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function WA(){return this}function zA(n){for(var o,f=this;f instanceof Os;){var y=kg(f);y.__index__=0,y.__values__=r,o?I.__wrapped__=y:o=y;var I=y;f=f.__wrapped__}return I.__wrapped__=n,o}function GA(){var n=this.__wrapped__;if(n instanceof vt){var o=n;return this.__actions__.length&&(o=new vt(this)),o=o.reverse(),o.__actions__.push({func:Hs,args:[vc],thisArg:r}),new Vr(o,this.__chain__)}return this.thru(vc)}function VA(){return fg(this.__wrapped__,this.__actions__)}var ZA=xs(function(n,o,f){Ct.call(n,f)?++n[f]:Un(n,f,1)});function KA(n,o,f){var y=dt(n)?Ep:j1;return f&&Sr(n,o,f)&&(o=r),y(n,at(o,3))}function JA(n,o){var f=dt(n)?si:Gp;return f(n,at(o,3))}var XA=vg(Ug),YA=vg(qg);function QA(n,o){return cr(Ws(n,o),1)}function eR(n,o){return cr(Ws(n,o),X)}function tR(n,o,f){return f=f===r?1:pt(f),cr(Ws(n,o),f)}function Zg(n,o){var f=dt(n)?zr:li;return f(n,at(o,3))}function Kg(n,o){var f=dt(n)?vE:zp;return f(n,at(o,3))}var rR=xs(function(n,o,f){Ct.call(n,f)?n[f].push(o):Un(n,f,[o])});function nR(n,o,f,y){n=Pr(n)?n:mo(n),f=f&&!y?pt(f):0;var I=n.length;return f<0&&(f=ir(I+f,0)),Ks(n)?f<=I&&n.indexOf(o,f)>-1:!!I&&ao(n,o,f)>-1}var iR=yt(function(n,o,f){var y=-1,I=typeof o=="function",V=Pr(n)?Pe(n.length):[];return li(n,function(se){V[++y]=I?xr(o,se,f):aa(se,o,f)}),V}),oR=xs(function(n,o,f){Un(n,f,o)});function Ws(n,o){var f=dt(n)?Ht:Yp;return f(n,at(o,3))}function aR(n,o,f,y){return n==null?[]:(dt(o)||(o=o==null?[]:[o]),f=y?r:f,dt(f)||(f=f==null?[]:[f]),rg(n,o,f))}var sR=xs(function(n,o,f){n[f?0:1].push(o)},function(){return[[],[]]});function uR(n,o,f){var y=dt(n)?Bf:Ip,I=arguments.length<3;return y(n,at(o,4),f,I,li)}function fR(n,o,f){var y=dt(n)?wE:Ip,I=arguments.length<3;return y(n,at(o,4),f,I,zp)}function cR(n,o){var f=dt(n)?si:Gp;return f(n,Vs(at(o,3)))}function lR(n){var o=dt(n)?Up:nS;return o(n)}function dR(n,o,f){(f?Sr(n,o,f):o===r)?o=1:o=pt(o);var y=dt(n)?$1:iS;return y(n,o)}function hR(n){var o=dt(n)?x1:aS;return o(n)}function pR(n){if(n==null)return 0;if(Pr(n))return Ks(n)?uo(n):n.length;var o=yr(n);return o==J||o==et?n.size:Yf(n).length}function gR(n,o,f){var y=dt(n)?$f:sS;return f&&Sr(n,o,f)&&(o=r),y(n,at(o,3))}var yR=yt(function(n,o){if(n==null)return[];var f=o.length;return f>1&&Sr(n,o[0],o[1])?o=[]:f>2&&Sr(o[0],o[1],o[2])&&(o=[o[0]]),rg(n,cr(o,1),[])}),zs=JE||function(){return ft.Date.now()};function _R(n,o){if(typeof o!="function")throw new Gr(u);return n=pt(n),function(){if(--n<1)return o.apply(this,arguments)}}function Jg(n,o,f){return o=f?r:o,o=n&&o==null?n.length:o,qn(n,ie,r,r,r,r,o)}function Xg(n,o){var f;if(typeof o!="function")throw new Gr(u);return n=pt(n),function(){return--n>0&&(f=o.apply(this,arguments)),n<=1&&(o=r),f}}var Ec=yt(function(n,o,f){var y=E;if(f.length){var I=fi(f,_o(Ec));y|=H}return qn(n,y,o,f,I)}),Yg=yt(function(n,o,f){var y=E|R;if(f.length){var I=fi(f,_o(Yg));y|=H}return qn(o,y,n,f,I)});function Qg(n,o,f){o=f?r:o;var y=qn(n,w,r,r,r,r,r,o);return y.placeholder=Qg.placeholder,y}function ey(n,o,f){o=f?r:o;var y=qn(n,S,r,r,r,r,r,o);return y.placeholder=ey.placeholder,y}function ty(n,o,f){var y,I,V,se,pe,we,He=0,We=!1,Ze=!1,Qe=!0;if(typeof n!="function")throw new Gr(u);o=Xr(o)||0,Wt(f)&&(We=!!f.leading,Ze="maxWait"in f,V=Ze?ir(Xr(f.maxWait)||0,o):V,Qe="trailing"in f?!!f.trailing:Qe);function it(Yt){var fn=y,Vn=I;return y=I=r,He=Yt,se=n.apply(Vn,fn),se}function st(Yt){return He=Yt,pe=la(_t,o),We?it(Yt):se}function gt(Yt){var fn=Yt-we,Vn=Yt-He,vy=o-fn;return Ze?gr(vy,V-Vn):vy}function ut(Yt){var fn=Yt-we,Vn=Yt-He;return we===r||fn>=o||fn<0||Ze&&Vn>=V}function _t(){var Yt=zs();if(ut(Yt))return Et(Yt);pe=la(_t,gt(Yt))}function Et(Yt){return pe=r,Qe&&y?it(Yt):(y=I=r,se)}function jr(){pe!==r&&lg(pe),He=0,y=we=I=pe=r}function Ar(){return pe===r?se:Et(zs())}function kr(){var Yt=zs(),fn=ut(Yt);if(y=arguments,I=this,we=Yt,fn){if(pe===r)return st(we);if(Ze)return lg(pe),pe=la(_t,o),it(we)}return pe===r&&(pe=la(_t,o)),se}return kr.cancel=jr,kr.flush=Ar,kr}var bR=yt(function(n,o){return Wp(n,1,o)}),mR=yt(function(n,o,f){return Wp(n,Xr(o)||0,f)});function vR(n){return qn(n,le)}function Gs(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Gr(u);var f=function(){var y=arguments,I=o?o.apply(this,y):y[0],V=f.cache;if(V.has(I))return V.get(I);var se=n.apply(this,y);return f.cache=V.set(I,se)||V,se};return f.cache=new(Gs.Cache||kn),f}Gs.Cache=kn;function Vs(n){if(typeof n!="function")throw new Gr(u);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function wR(n){return Xg(2,n)}var ER=uS(function(n,o){o=o.length==1&&dt(o[0])?Ht(o[0],Dr(at())):Ht(cr(o,1),Dr(at()));var f=o.length;return yt(function(y){for(var I=-1,V=gr(y.length,f);++I<V;)y[I]=o[I].call(this,y[I]);return xr(n,this,y)})}),Sc=yt(function(n,o){var f=fi(o,_o(Sc));return qn(n,H,r,o,f)}),ry=yt(function(n,o){var f=fi(o,_o(ry));return qn(n,Q,r,o,f)}),SR=Hn(function(n,o){return qn(n,he,r,r,r,o)});function AR(n,o){if(typeof n!="function")throw new Gr(u);return o=o===r?o:pt(o),yt(n,o)}function RR(n,o){if(typeof n!="function")throw new Gr(u);return o=o==null?0:ir(pt(o),0),yt(function(f){var y=f[o],I=pi(f,0,o);return y&&ui(I,y),xr(n,this,I)})}function IR(n,o,f){var y=!0,I=!0;if(typeof n!="function")throw new Gr(u);return Wt(f)&&(y="leading"in f?!!f.leading:y,I="trailing"in f?!!f.trailing:I),ty(n,o,{leading:y,maxWait:o,trailing:I})}function TR(n){return Jg(n,1)}function OR(n,o){return Sc(sc(o),n)}function PR(){if(!arguments.length)return[];var n=arguments[0];return dt(n)?n:[n]}function CR(n){return Zr(n,_)}function LR(n,o){return o=typeof o=="function"?o:r,Zr(n,_,o)}function NR(n){return Zr(n,g|_)}function BR(n,o){return o=typeof o=="function"?o:r,Zr(n,g|_,o)}function $R(n,o){return o==null||Hp(n,o,sr(o))}function un(n,o){return n===o||n!==n&&o!==o}var xR=js(Kf),DR=js(function(n,o){return n>=o}),Fi=Kp(function(){return arguments}())?Kp:function(n){return Zt(n)&&Ct.call(n,"callee")&&!xp.call(n,"callee")},dt=Pe.isArray,MR=oo?Dr(oo):z1;function Pr(n){return n!=null&&Zs(n.length)&&!zn(n)}function Xt(n){return Zt(n)&&Pr(n)}function FR(n){return n===!0||n===!1||Zt(n)&&Er(n)==oe}var gi=YE||$c,jR=Xo?Dr(Xo):G1;function kR(n){return Zt(n)&&n.nodeType===1&&!da(n)}function UR(n){if(n==null)return!0;if(Pr(n)&&(dt(n)||typeof n=="string"||typeof n.splice=="function"||gi(n)||bo(n)||Fi(n)))return!n.length;var o=yr(n);if(o==J||o==et)return!n.size;if(ca(n))return!Yf(n).length;for(var f in n)if(Ct.call(n,f))return!1;return!0}function qR(n,o){return sa(n,o)}function HR(n,o,f){f=typeof f=="function"?f:r;var y=f?f(n,o):r;return y===r?sa(n,o,r,f):!!y}function Ac(n){if(!Zt(n))return!1;var o=Er(n);return o==Be||o==Se||typeof n.message=="string"&&typeof n.name=="string"&&!da(n)}function WR(n){return typeof n=="number"&&Mp(n)}function zn(n){if(!Wt(n))return!1;var o=Er(n);return o==Me||o==z||o==de||o==me}function ny(n){return typeof n=="number"&&n==pt(n)}function Zs(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ne}function Wt(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Zt(n){return n!=null&&typeof n=="object"}var iy=bp?Dr(bp):Z1;function zR(n,o){return n===o||Xf(n,o,pc(o))}function GR(n,o,f){return f=typeof f=="function"?f:r,Xf(n,o,pc(o),f)}function VR(n){return oy(n)&&n!=+n}function ZR(n){if(LS(n))throw new lt(s);return Jp(n)}function KR(n){return n===null}function JR(n){return n==null}function oy(n){return typeof n=="number"||Zt(n)&&Er(n)==ge}function da(n){if(!Zt(n)||Er(n)!=Oe)return!1;var o=ws(n);if(o===null)return!0;var f=Ct.call(o,"constructor")&&o.constructor;return typeof f=="function"&&f instanceof f&&_s.call(f)==GE}var Rc=mp?Dr(mp):K1;function XR(n){return ny(n)&&n>=-ne&&n<=ne}var ay=vp?Dr(vp):J1;function Ks(n){return typeof n=="string"||!dt(n)&&Zt(n)&&Er(n)==re}function Fr(n){return typeof n=="symbol"||Zt(n)&&Er(n)==xe}var bo=wp?Dr(wp):X1;function YR(n){return n===r}function QR(n){return Zt(n)&&yr(n)==ce}function eI(n){return Zt(n)&&Er(n)==De}var tI=js(Qf),rI=js(function(n,o){return n<=o});function sy(n){if(!n)return[];if(Pr(n))return Ks(n)?an(n):Or(n);if(Qo&&n[Qo])return $E(n[Qo]());var o=yr(n),f=o==J?kf:o==et?ps:mo;return f(n)}function Gn(n){if(!n)return n===0?n:0;if(n=Xr(n),n===X||n===-X){var o=n<0?-1:1;return o*F}return n===n?n:0}function pt(n){var o=Gn(n),f=o%1;return o===o?f?o-f:o:0}function uy(n){return n?$i(pt(n),0,Y):0}function Xr(n){if(typeof n=="number")return n;if(Fr(n))return x;if(Wt(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Wt(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Tp(n);var f=Gt.test(n);return f||$n.test(n)?mt(n.slice(2),f?2:8):tr.test(n)?x:+n}function fy(n){return wn(n,Cr(n))}function nI(n){return n?$i(pt(n),-ne,ne):n===0?n:0}function Tt(n){return n==null?"":Mr(n)}var iI=go(function(n,o){if(ca(o)||Pr(o)){wn(o,sr(o),n);return}for(var f in o)Ct.call(o,f)&&ia(n,f,o[f])}),cy=go(function(n,o){wn(o,Cr(o),n)}),Js=go(function(n,o,f,y){wn(o,Cr(o),n,y)}),oI=go(function(n,o,f,y){wn(o,sr(o),n,y)}),aI=Hn(Gf);function sI(n,o){var f=po(n);return o==null?f:qp(f,o)}var uI=yt(function(n,o){n=$t(n);var f=-1,y=o.length,I=y>2?o[2]:r;for(I&&Sr(o[0],o[1],I)&&(y=1);++f<y;)for(var V=o[f],se=Cr(V),pe=-1,we=se.length;++pe<we;){var He=se[pe],We=n[He];(We===r||un(We,co[He])&&!Ct.call(n,He))&&(n[He]=V[He])}return n}),fI=yt(function(n){return n.push(r,Tg),xr(ly,r,n)});function cI(n,o){return Sp(n,at(o,3),vn)}function lI(n,o){return Sp(n,at(o,3),Zf)}function dI(n,o){return n==null?n:Vf(n,at(o,3),Cr)}function hI(n,o){return n==null?n:Vp(n,at(o,3),Cr)}function pI(n,o){return n&&vn(n,at(o,3))}function gI(n,o){return n&&Zf(n,at(o,3))}function yI(n){return n==null?[]:Ls(n,sr(n))}function _I(n){return n==null?[]:Ls(n,Cr(n))}function Ic(n,o,f){var y=n==null?r:xi(n,o);return y===r?f:y}function bI(n,o){return n!=null&&Cg(n,o,U1)}function Tc(n,o){return n!=null&&Cg(n,o,q1)}var mI=Eg(function(n,o,f){o!=null&&typeof o.toString!="function"&&(o=bs.call(o)),n[o]=f},Pc(Lr)),vI=Eg(function(n,o,f){o!=null&&typeof o.toString!="function"&&(o=bs.call(o)),Ct.call(n,o)?n[o].push(f):n[o]=[f]},at),wI=yt(aa);function sr(n){return Pr(n)?kp(n):Yf(n)}function Cr(n){return Pr(n)?kp(n,!0):Y1(n)}function EI(n,o){var f={};return o=at(o,3),vn(n,function(y,I,V){Un(f,o(y,I,V),y)}),f}function SI(n,o){var f={};return o=at(o,3),vn(n,function(y,I,V){Un(f,I,o(y,I,V))}),f}var AI=go(function(n,o,f){Ns(n,o,f)}),ly=go(function(n,o,f,y){Ns(n,o,f,y)}),RI=Hn(function(n,o){var f={};if(n==null)return f;var y=!1;o=Ht(o,function(V){return V=hi(V,n),y||(y=V.length>1),V}),wn(n,dc(n),f),y&&(f=Zr(f,g|b|_,mS));for(var I=o.length;I--;)ic(f,o[I]);return f});function II(n,o){return dy(n,Vs(at(o)))}var TI=Hn(function(n,o){return n==null?{}:eS(n,o)});function dy(n,o){if(n==null)return{};var f=Ht(dc(n),function(y){return[y]});return o=at(o),ng(n,f,function(y,I){return o(y,I[0])})}function OI(n,o,f){o=hi(o,n);var y=-1,I=o.length;for(I||(I=1,n=r);++y<I;){var V=n==null?r:n[En(o[y])];V===r&&(y=I,V=f),n=zn(V)?V.call(n):V}return n}function PI(n,o,f){return n==null?n:ua(n,o,f)}function CI(n,o,f,y){return y=typeof y=="function"?y:r,n==null?n:ua(n,o,f,y)}var hy=Rg(sr),py=Rg(Cr);function LI(n,o,f){var y=dt(n),I=y||gi(n)||bo(n);if(o=at(o,4),f==null){var V=n&&n.constructor;I?f=y?new V:[]:Wt(n)?f=zn(V)?po(ws(n)):{}:f={}}return(I?zr:vn)(n,function(se,pe,we){return o(f,se,pe,we)}),f}function NI(n,o){return n==null?!0:ic(n,o)}function BI(n,o,f){return n==null?n:ug(n,o,sc(f))}function $I(n,o,f,y){return y=typeof y=="function"?y:r,n==null?n:ug(n,o,sc(f),y)}function mo(n){return n==null?[]:jf(n,sr(n))}function xI(n){return n==null?[]:jf(n,Cr(n))}function DI(n,o,f){return f===r&&(f=o,o=r),f!==r&&(f=Xr(f),f=f===f?f:0),o!==r&&(o=Xr(o),o=o===o?o:0),$i(Xr(n),o,f)}function MI(n,o,f){return o=Gn(o),f===r?(f=o,o=0):f=Gn(f),n=Xr(n),H1(n,o,f)}function FI(n,o,f){if(f&&typeof f!="boolean"&&Sr(n,o,f)&&(o=f=r),f===r&&(typeof o=="boolean"?(f=o,o=r):typeof n=="boolean"&&(f=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Gn(n),o===r?(o=n,n=0):o=Gn(o)),n>o){var y=n;n=o,o=y}if(f||n%1||o%1){var I=Fp();return gr(n+I*(o-n+nt("1e-"+((I+"").length-1))),o)}return tc(n,o)}var jI=yo(function(n,o,f){return o=o.toLowerCase(),n+(f?gy(o):o)});function gy(n){return Oc(Tt(n).toLowerCase())}function yy(n){return n=Tt(n),n&&n.replace(xn,PE).replace(Dn,"")}function kI(n,o,f){n=Tt(n),o=Mr(o);var y=n.length;f=f===r?y:$i(pt(f),0,y);var I=f;return f-=o.length,f>=0&&n.slice(f,I)==o}function UI(n){return n=Tt(n),n&&ue.test(n)?n.replace(Ie,CE):n}function qI(n){return n=Tt(n),n&&rt.test(n)?n.replace(Ge,"\\$&"):n}var HI=yo(function(n,o,f){return n+(f?"-":"")+o.toLowerCase()}),WI=yo(function(n,o,f){return n+(f?" ":"")+o.toLowerCase()}),zI=mg("toLowerCase");function GI(n,o,f){n=Tt(n),o=pt(o);var y=o?uo(n):0;if(!o||y>=o)return n;var I=(o-y)/2;return Fs(Rs(I),f)+n+Fs(As(I),f)}function VI(n,o,f){n=Tt(n),o=pt(o);var y=o?uo(n):0;return o&&y<o?n+Fs(o-y,f):n}function ZI(n,o,f){n=Tt(n),o=pt(o);var y=o?uo(n):0;return o&&y<o?Fs(o-y,f)+n:n}function KI(n,o,f){return f||o==null?o=0:o&&(o=+o),r1(Tt(n).replace(ot,""),o||0)}function JI(n,o,f){return(f?Sr(n,o,f):o===r)?o=1:o=pt(o),rc(Tt(n),o)}function XI(){var n=arguments,o=Tt(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var YI=yo(function(n,o,f){return n+(f?"_":"")+o.toLowerCase()});function QI(n,o,f){return f&&typeof f!="number"&&Sr(n,o,f)&&(o=f=r),f=f===r?Y:f>>>0,f?(n=Tt(n),n&&(typeof o=="string"||o!=null&&!Rc(o))&&(o=Mr(o),!o&&so(n))?pi(an(n),0,f):n.split(o,f)):[]}var eT=yo(function(n,o,f){return n+(f?" ":"")+Oc(o)});function tT(n,o,f){return n=Tt(n),f=f==null?0:$i(pt(f),0,n.length),o=Mr(o),n.slice(f,f+o.length)==o}function rT(n,o,f){var y=q.templateSettings;f&&Sr(n,o,f)&&(o=r),n=Tt(n),o=Js({},o,y,Ig);var I=Js({},o.imports,y.imports,Ig),V=sr(I),se=jf(I,V),pe,we,He=0,We=o.interpolate||_n,Ze="__p += '",Qe=Uf((o.escape||_n).source+"|"+We.source+"|"+(We===N?Ot:_n).source+"|"+(o.evaluate||_n).source+"|$","g"),it="//# sourceURL="+(Ct.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Cf+"]")+`
88
+ `;n.replace(Qe,function(ut,_t,Et,jr,Ar,kr){return Et||(Et=jr),Ze+=n.slice(He,kr).replace(bn,LE),_t&&(pe=!0,Ze+=`' +
89
89
  __e(`+_t+`) +
90
90
  '`),Ar&&(we=!0,Ze+=`';
91
91
  `+Ar+`;
92
92
  __p += '`),Et&&(Ze+=`' +
93
93
  ((__t = (`+Et+`)) == null ? '' : __t) +
94
- '`),He=kr+ft.length,ft}),Ze+=`';
94
+ '`),He=kr+ut.length,ut}),Ze+=`';
95
95
  `;var st=Ct.call(o,"variable")&&o.variable;if(!st)Ze=`with (obj) {
96
96
  `+Ze+`
97
97
  }
98
- `;else if(Dt.test(st))throw new lt(d);Ze=(we?Ze.replace(Oe,""):Ze).replace(Ke,"$1").replace(p,"$1;"),Ze="function("+(st||"obj")+`) {
98
+ `;else if(Dt.test(st))throw new lt(d);Ze=(we?Ze.replace(Te,""):Ze).replace(Ke,"$1").replace(p,"$1;"),Ze="function("+(st||"obj")+`) {
99
99
  `+(st?"":`obj || (obj = {});
100
100
  `)+"var __t, __p = ''"+(pe?", __e = _.escape":"")+(we?`, __j = Array.prototype.join;
101
101
  function print() { __p += __j.call(arguments, '') }
102
102
  `:`;
103
103
  `)+Ze+`return __p
104
- }`;var gt=hy(function(){return Rt(V,it+"return "+Ze).apply(r,se)});if(gt.source=Ze,Ac(gt))throw gt;return gt}function ZI(n){return Ot(n).toLowerCase()}function KI(n){return Ot(n).toUpperCase()}function JI(n,o,u){if(n=Ot(n),n&&(u||o===r))return Ep(n);if(!n||!(o=Mr(o)))return n;var g=an(n),R=an(o),V=Sp(g,R),se=Ap(g,R)+1;return pi(g,V,se).join("")}function XI(n,o,u){if(n=Ot(n),n&&(u||o===r))return n.slice(0,Ip(n)+1);if(!n||!(o=Mr(o)))return n;var g=an(n),R=Ap(g,an(o))+1;return pi(g,0,R).join("")}function YI(n,o,u){if(n=Ot(n),n&&(u||o===r))return n.replace(ot,"");if(!n||!(o=Mr(o)))return n;var g=an(n),R=Sp(g,an(o));return pi(g,R).join("")}function QI(n,o){var u=Ee,g=ve;if(Wt(o)){var R="separator"in o?o.separator:R;u="length"in o?pt(o.length):u,g="omission"in o?Mr(o.omission):g}n=Ot(n);var V=n.length;if(so(n)){var se=an(n);V=se.length}if(u>=V)return n;var pe=u-fo(g);if(pe<1)return g;var we=se?pi(se,0,pe).join(""):n.slice(0,pe);if(R===r)return we+g;if(se&&(pe+=we.length-pe),Rc(R)){if(n.slice(pe).search(R)){var He,We=we;for(R.global||(R=Uu(R.source,Ot(qt.exec(R))+"g")),R.lastIndex=0;He=R.exec(We);)var Ze=He.index;we=we.slice(0,Ze===r?pe:Ze)}}else if(n.indexOf(Mr(R),pe)!=pe){var Qe=we.lastIndexOf(R);Qe>-1&&(we=we.slice(0,Qe))}return we+g}function eO(n){return n=Ot(n),n&&L.test(n)?n.replace(_e,PE):n}var tO=yo(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),Tc=pg("toUpperCase");function dy(n,o,u){return n=Ot(n),o=u?r:o,o===r?AE(n)?NE(n):gE(n):n.match(o)||[]}var hy=yt(function(n,o){try{return xr(n,r,o)}catch(u){return Ac(u)?u:new lt(u)}}),rO=Hn(function(n,o){return zr(o,function(u){u=En(u),Un(n,u,Ec(n[u],n))}),n});function nO(n){var o=n==null?0:n.length,u=at();return n=o?Ht(n,function(g){if(typeof g[1]!="function")throw new Gr(f);return[u(g[0]),g[1]]}):[],yt(function(g){for(var R=-1;++R<o;){var V=n[R];if(xr(V[0],this,g))return xr(V[1],this,g)}})}function iO(n){return P1(Zr(n,_))}function Pc(n){return function(){return n}}function oO(n,o){return n==null||n!==n?o:n}var aO=yg(),sO=yg(!0);function Lr(n){return n}function Cc(n){return Gp(typeof n=="function"?n:Zr(n,_))}function fO(n){return Zp(Zr(n,_))}function uO(n,o){return Kp(n,Zr(o,_))}var cO=yt(function(n,o){return function(u){return aa(u,n,o)}}),lO=yt(function(n,o){return function(u){return aa(n,u,o)}});function Lc(n,o,u){var g=sr(o),R=Ls(o,g);u==null&&!(Wt(o)&&(R.length||!g.length))&&(u=o,o=n,n=this,R=Ls(o,sr(o)));var V=!(Wt(u)&&"chain"in u)||!!u.chain,se=zn(n);return zr(R,function(pe){var we=o[pe];n[pe]=we,se&&(n.prototype[pe]=function(){var He=this.__chain__;if(V||He){var We=n(this.__wrapped__),Ze=We.__actions__=Tr(this.__actions__);return Ze.push({func:we,args:arguments,thisArg:n}),We.__chain__=He,We}return we.apply(n,fi([this.value()],arguments))})}),n}function dO(){return ut._===this&&(ut._=FE),this}function Nc(){}function hO(n){return n=pt(n),yt(function(o){return Jp(o,n)})}var pO=uc(Ht),gO=uc(_p),yO=uc($u);function py(n){return yc(n)?xu(En(n)):G1(n)}function _O(n){return function(o){return n==null?r:xi(n,o)}}var bO=bg(),mO=bg(!0);function Bc(){return[]}function $c(){return!1}function vO(){return{}}function wO(){return""}function EO(){return!0}function SO(n,o){if(n=pt(n),n<1||n>ne)return[];var u=Y,g=gr(n,Y);o=at(o),n-=Y;for(var R=Fu(g,o);++u<n;)o(u);return R}function AO(n){return dt(n)?Ht(n,En):Fr(n)?[n]:Tr($g(Ot(n)))}function RO(n){var o=++DE;return Ot(n)+o}var IO=Ms(function(n,o){return n+o},0),OO=cc("ceil"),TO=Ms(function(n,o){return n/o},1),PO=cc("floor");function CO(n){return n&&n.length?Cs(n,Lr,Ku):r}function LO(n,o){return n&&n.length?Cs(n,at(o,2),Ku):r}function NO(n){return vp(n,Lr)}function BO(n,o){return vp(n,at(o,2))}function $O(n){return n&&n.length?Cs(n,Lr,Qu):r}function xO(n,o){return n&&n.length?Cs(n,at(o,2),Qu):r}var DO=Ms(function(n,o){return n*o},1),MO=cc("round"),FO=Ms(function(n,o){return n-o},0);function jO(n){return n&&n.length?Mu(n,Lr):0}function kO(n,o){return n&&n.length?Mu(n,at(o,2)):0}return q.after=fR,q.ary=zg,q.assign=KR,q.assignIn=oy,q.assignInWith=Js,q.assignWith=JR,q.at=XR,q.before=Gg,q.bind=Ec,q.bindAll=rO,q.bindKey=Vg,q.castArray=vR,q.chain=qg,q.chunk=PS,q.compact=CS,q.concat=LS,q.cond=nO,q.conforms=iO,q.constant=Pc,q.countBy=jA,q.create=YR,q.curry=Zg,q.curryRight=Kg,q.debounce=Jg,q.defaults=QR,q.defaultsDeep=eI,q.defer=uR,q.delay=cR,q.difference=NS,q.differenceBy=BS,q.differenceWith=$S,q.drop=xS,q.dropRight=DS,q.dropRightWhile=MS,q.dropWhile=FS,q.fill=jS,q.filter=UA,q.flatMap=WA,q.flatMapDeep=zA,q.flatMapDepth=GA,q.flatten=Fg,q.flattenDeep=kS,q.flattenDepth=US,q.flip=lR,q.flow=aO,q.flowRight=sO,q.fromPairs=qS,q.functions=sI,q.functionsIn=fI,q.groupBy=VA,q.initial=WS,q.intersection=zS,q.intersectionBy=GS,q.intersectionWith=VS,q.invert=cI,q.invertBy=lI,q.invokeMap=KA,q.iteratee=Cc,q.keyBy=JA,q.keys=sr,q.keysIn=Cr,q.map=Ws,q.mapKeys=hI,q.mapValues=pI,q.matches=fO,q.matchesProperty=uO,q.memoize=Gs,q.merge=gI,q.mergeWith=ay,q.method=cO,q.methodOf=lO,q.mixin=Lc,q.negate=Vs,q.nthArg=hO,q.omit=yI,q.omitBy=_I,q.once=dR,q.orderBy=XA,q.over=pO,q.overArgs=hR,q.overEvery=gO,q.overSome=yO,q.partial=Sc,q.partialRight=Xg,q.partition=YA,q.pick=bI,q.pickBy=sy,q.property=py,q.propertyOf=_O,q.pull=XS,q.pullAll=kg,q.pullAllBy=YS,q.pullAllWith=QS,q.pullAt=eA,q.range=bO,q.rangeRight=mO,q.rearg=pR,q.reject=tR,q.remove=tA,q.rest=gR,q.reverse=vc,q.sampleSize=nR,q.set=vI,q.setWith=wI,q.shuffle=iR,q.slice=rA,q.sortBy=sR,q.sortedUniq=uA,q.sortedUniqBy=cA,q.split=WI,q.spread=yR,q.tail=lA,q.take=dA,q.takeRight=hA,q.takeRightWhile=pA,q.takeWhile=gA,q.tap=CA,q.throttle=_R,q.thru=Hs,q.toArray=ry,q.toPairs=fy,q.toPairsIn=uy,q.toPath=AO,q.toPlainObject=iy,q.transform=EI,q.unary=bR,q.union=yA,q.unionBy=_A,q.unionWith=bA,q.uniq=mA,q.uniqBy=vA,q.uniqWith=wA,q.unset=SI,q.unzip=wc,q.unzipWith=Ug,q.update=AI,q.updateWith=RI,q.values=mo,q.valuesIn=II,q.without=EA,q.words=dy,q.wrap=mR,q.xor=SA,q.xorBy=AA,q.xorWith=RA,q.zip=IA,q.zipObject=OA,q.zipObjectDeep=TA,q.zipWith=PA,q.entries=fy,q.entriesIn=uy,q.extend=oy,q.extendWith=Js,Lc(q,q),q.add=IO,q.attempt=hy,q.camelCase=CI,q.capitalize=cy,q.ceil=OO,q.clamp=OI,q.clone=wR,q.cloneDeep=SR,q.cloneDeepWith=AR,q.cloneWith=ER,q.conformsTo=RR,q.deburr=ly,q.defaultTo=oO,q.divide=TO,q.endsWith=LI,q.eq=fn,q.escape=NI,q.escapeRegExp=BI,q.every=kA,q.find=qA,q.findIndex=Dg,q.findKey=tI,q.findLast=HA,q.findLastIndex=Mg,q.findLastKey=rI,q.floor=PO,q.forEach=Hg,q.forEachRight=Wg,q.forIn=nI,q.forInRight=iI,q.forOwn=oI,q.forOwnRight=aI,q.get=Ic,q.gt=IR,q.gte=OR,q.has=uI,q.hasIn=Oc,q.head=jg,q.identity=Lr,q.includes=ZA,q.indexOf=HS,q.inRange=TI,q.invoke=dI,q.isArguments=Fi,q.isArray=dt,q.isArrayBuffer=TR,q.isArrayLike=Pr,q.isArrayLikeObject=Xt,q.isBoolean=PR,q.isBuffer=gi,q.isDate=CR,q.isElement=LR,q.isEmpty=NR,q.isEqual=BR,q.isEqualWith=$R,q.isError=Ac,q.isFinite=xR,q.isFunction=zn,q.isInteger=Yg,q.isLength=Zs,q.isMap=Qg,q.isMatch=DR,q.isMatchWith=MR,q.isNaN=FR,q.isNative=jR,q.isNil=UR,q.isNull=kR,q.isNumber=ey,q.isObject=Wt,q.isObjectLike=Zt,q.isPlainObject=da,q.isRegExp=Rc,q.isSafeInteger=qR,q.isSet=ty,q.isString=Ks,q.isSymbol=Fr,q.isTypedArray=bo,q.isUndefined=HR,q.isWeakMap=WR,q.isWeakSet=zR,q.join=ZS,q.kebabCase=$I,q.last=Jr,q.lastIndexOf=KS,q.lowerCase=xI,q.lowerFirst=DI,q.lt=GR,q.lte=VR,q.max=CO,q.maxBy=LO,q.mean=NO,q.meanBy=BO,q.min=$O,q.minBy=xO,q.stubArray=Bc,q.stubFalse=$c,q.stubObject=vO,q.stubString=wO,q.stubTrue=EO,q.multiply=DO,q.nth=JS,q.noConflict=dO,q.noop=Nc,q.now=zs,q.pad=MI,q.padEnd=FI,q.padStart=jI,q.parseInt=kI,q.random=PI,q.reduce=QA,q.reduceRight=eR,q.repeat=UI,q.replace=qI,q.result=mI,q.round=MO,q.runInContext=be,q.sample=rR,q.size=oR,q.snakeCase=HI,q.some=aR,q.sortedIndex=nA,q.sortedIndexBy=iA,q.sortedIndexOf=oA,q.sortedLastIndex=aA,q.sortedLastIndexBy=sA,q.sortedLastIndexOf=fA,q.startCase=zI,q.startsWith=GI,q.subtract=FO,q.sum=jO,q.sumBy=kO,q.template=VI,q.times=SO,q.toFinite=Gn,q.toInteger=pt,q.toLength=ny,q.toLower=ZI,q.toNumber=Xr,q.toSafeInteger=ZR,q.toString=Ot,q.toUpper=KI,q.trim=JI,q.trimEnd=XI,q.trimStart=YI,q.truncate=QI,q.unescape=eO,q.uniqueId=RO,q.upperCase=tO,q.upperFirst=Tc,q.each=Hg,q.eachRight=Wg,q.first=jg,Lc(q,function(){var n={};return vn(q,function(o,u){Ct.call(q.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),q.VERSION=i,zr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){q[n].placeholder=q}),zr(["drop","take"],function(n,o){vt.prototype[n]=function(u){u=u===r?1:ir(pt(u),0);var g=this.__filtered__&&!o?new vt(this):this.clone();return g.__filtered__?g.__takeCount__=gr(u,g.__takeCount__):g.__views__.push({size:gr(u,Y),type:n+(g.__dir__<0?"Right":"")}),g},vt.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),zr(["filter","map","takeWhile"],function(n,o){var u=o+1,g=u==P||u==ae;vt.prototype[n]=function(R){var V=this.clone();return V.__iteratees__.push({iteratee:at(R,3),type:u}),V.__filtered__=V.__filtered__||g,V}}),zr(["head","last"],function(n,o){var u="take"+(o?"Right":"");vt.prototype[n]=function(){return this[u](1).value()[0]}}),zr(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");vt.prototype[n]=function(){return this.__filtered__?new vt(this):this[u](1)}}),vt.prototype.compact=function(){return this.filter(Lr)},vt.prototype.find=function(n){return this.filter(n).head()},vt.prototype.findLast=function(n){return this.reverse().find(n)},vt.prototype.invokeMap=yt(function(n,o){return typeof n=="function"?new vt(this):this.map(function(u){return aa(u,n,o)})}),vt.prototype.reject=function(n){return this.filter(Vs(at(n)))},vt.prototype.slice=function(n,o){n=pt(n);var u=this;return u.__filtered__&&(n>0||o<0)?new vt(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=pt(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},vt.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},vt.prototype.toArray=function(){return this.take(Y)},vn(vt.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),g=/^(?:head|last)$/.test(o),R=q[g?"take"+(o=="last"?"Right":""):o],V=g||/^find/.test(o);R&&(q.prototype[o]=function(){var se=this.__wrapped__,pe=g?[1]:arguments,we=se instanceof vt,He=pe[0],We=we||dt(se),Ze=function(_t){var Et=R.apply(q,fi([_t],pe));return g&&Qe?Et[0]:Et};We&&u&&typeof He=="function"&&He.length!=1&&(we=We=!1);var Qe=this.__chain__,it=!!this.__actions__.length,st=V&&!Qe,gt=we&&!it;if(!V&&We){se=gt?se:new vt(this);var ft=n.apply(se,pe);return ft.__actions__.push({func:Hs,args:[Ze],thisArg:r}),new Vr(ft,Qe)}return st&&gt?n.apply(this,pe):(ft=this.thru(Ze),st?g?ft.value()[0]:ft.value():ft)})}),zr(["pop","push","shift","sort","splice","unshift"],function(n){var o=gs[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",g=/^(?:pop|shift)$/.test(n);q.prototype[n]=function(){var R=arguments;if(g&&!this.__chain__){var V=this.value();return o.apply(dt(V)?V:[],R)}return this[u](function(se){return o.apply(dt(se)?se:[],R)})}}),vn(vt.prototype,function(n,o){var u=q[o];if(u){var g=u.name+"";Ct.call(ho,g)||(ho[g]=[]),ho[g].push({name:o,func:u})}}),ho[Ds(r,I).name]=[{name:"wrapper",func:r}],vt.prototype.clone=e1,vt.prototype.reverse=t1,vt.prototype.value=r1,q.prototype.at=LA,q.prototype.chain=NA,q.prototype.commit=BA,q.prototype.next=$A,q.prototype.plant=DA,q.prototype.reverse=MA,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=FA,q.prototype.first=q.prototype.head,Qo&&(q.prototype[Qo]=xA),q},uo=BE();rr?((rr.exports=uo)._=uo,Nt._=uo):ut._=uo}).call(ee.commonjsGlobal)})(Lf,Lf.exports);Lf.exports;WO();const va={IFRAME_STATUS:"iframe_status",CREATE_WINDOW:"create_window",CLOSE_WINDOW:"close_window",USER_LOGGED_IN:"user_logged_in",USER_LOGGED_OUT:"user_logged_out"},Rn={LOGOUT:"logout",WALLET_INSTANCE_ID:"wallet_instance_id",USER_INFO:"user_info",SET_PROVIDER:"set_provider",TOPUP:"topup",IFRAME_STATUS:"iframe_status",OPENED_WINDOW:"opened_window",CLOSED_WINDOW:"closed_window",GET_PROVIDER_STATE:"get_provider_state",LOGIN_WITH_PRIVATE_KEY:"login_with_private_key"},fM={GET_PROVIDER_STATE:"wallet_get_provider_state"},Ld={ACCOUNTS_CHANGED:"wallet_accounts_changed",CHAIN_CHANGED:"wallet_chain_changed",UNLOCK_STATE_CHANGED:"wallet_unlock_state_changed"};function uM(e){return function(r,i,a){a(s=>{i.error&&Pf.warn(`Error in RPC response:
105
- `,i),!r.isTorusInternal&&(Pf.info(`RPC (${e.origin}):`,r,"->",i),s())})}}var Tb;(function(e){e.approved="approved",e.cancelled="cancelled",e.confirmed="confirmed",e.failed="failed",e.finalized="finalized",e.processed="processed",e.rejected="rejected",e.signed="signed",e.submitted="submitted",e.unapproved="unapproved",e.dropped="dropped",e.expired="expired"})(Tb||(Tb={}));var cM=ee.requireBrowser();const lM=ee.getDefaultExportFromCjs(cM);var dM={exports:{}},up={},cp={};Object.defineProperty(cp,"__esModule",{value:!0});function hM(e){var t=4,r=e.length,i=r%t;if(!i)return e;var a=r,s=t-i,f=r+s,d=ee.dist.Buffer.alloc(f);for(d.write(e);s--;)d.write("=",a++);return d.toString()}cp.default=hM;Object.defineProperty(up,"__esModule",{value:!0});var pM=cp;function nE(e,t){return t===void 0&&(t="utf8"),ee.dist.Buffer.isBuffer(e)?sh(e.toString("base64")):sh(ee.dist.Buffer.from(e,t).toString("base64"))}function gM(e,t){return t===void 0&&(t="utf8"),ee.dist.Buffer.from(lp(e),"base64").toString(t)}function lp(e){return e=e.toString(),pM.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function sh(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function yM(e){return ee.dist.Buffer.from(lp(e),"base64")}var qo=nE;qo.encode=nE;qo.decode=gM;qo.toBase64=lp;qo.fromBase64=sh;qo.toBuffer=yM;up.default=qo;(function(e){e.exports=up.default,e.exports.default=e.exports})(dM);const _M=()=>lM(32).toString("hex");function cf(){}const Pb="SYN",Nd="ACK",Cb="BRK";class Lb extends Do.Duplex{constructor(t){let{name:r,target:i,targetWindow:a=window,targetOrigin:s="*"}=t;if(super({objectMode:!0}),ee._defineProperty(this,"_init",void 0),ee._defineProperty(this,"_haveSyn",void 0),ee._defineProperty(this,"_name",void 0),ee._defineProperty(this,"_target",void 0),ee._defineProperty(this,"_targetWindow",void 0),ee._defineProperty(this,"_targetOrigin",void 0),ee._defineProperty(this,"_onMessage",void 0),ee._defineProperty(this,"_synIntervalId",void 0),!r||!i)throw new Error("Invalid input.");this._init=!1,this._haveSyn=!1,this._name=r,this._target=i,this._targetWindow=a,this._targetOrigin=s,this._onMessage=this.onMessage.bind(this),this._synIntervalId=null,window.addEventListener("message",this._onMessage,!1),this._handShake()}_break(){this.cork(),this._write(Cb,null,cf),this._haveSyn=!1,this._init=!1}_handShake(){this._write(Pb,null,cf),this.cork()}_onData(t){if(!this._init)t===Pb?(this._haveSyn=!0,this._write(Nd,null,cf)):t===Nd&&(this._init=!0,this._haveSyn||this._write(Nd,null,cf),this.uncork());else if(t===Cb)this._break();else try{this.push(t)}catch(r){this.emit("error",r)}}_postMessage(t){const r=this._targetOrigin;this._targetWindow.postMessage({target:this._target,data:t},r)}onMessage(t){const r=t.data;this._targetOrigin!=="*"&&t.origin!==this._targetOrigin||t.source!==this._targetWindow||typeof r!="object"||r.target!==this._name||!r.data||this._onData(r.data)}_read(){}_write(t,r,i){this._postMessage(t),i()}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}function Nb(e,t,r){try{Reflect.apply(e,t,r)}catch(i){setTimeout(()=>{throw i})}}function bM(e){const t=e.length,r=new Array(t);for(let i=0;i<t;i+=1)r[i]=e[i];return r}class wu extends UO.eventsExports.EventEmitter{emit(t){let r=t==="error";const i=this._events;if(i!==void 0)r=r&&i.error===void 0;else if(!r)return!1;for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];if(r){let c;if(s.length>0&&([c]=s),c instanceof Error)throw c;const l=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw l.context=c,l}const d=i[t];if(d===void 0)return!1;if(typeof d=="function")Nb(d,this,s);else{const c=d.length,l=bM(d);for(let h=0;h<c;h+=1)Nb(l[h],this,s)}return!0}}class wa extends Error{constructor(t){let{code:r,message:i,data:a}=t;if(!Number.isInteger(r))throw new Error("code must be an integer");if(!i||typeof i!="string")throw new Error("message must be string");super(i),ee._defineProperty(this,"code",void 0),ee._defineProperty(this,"data",void 0),this.code=r,a!==void 0&&(this.data=a)}toString(){return JO({code:this.code,message:this.message,data:this.data,stack:this.stack})}}const fh=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(i,a)=>{i||a.error?t(i||a.error):!r||Array.isArray(a)?e(a):e(a.result)}};function mM(){const e={};function t(){return!1}const r=new wu;function i(c){const l=e[c.id];if(!l)throw new Error(`StreamMiddleware - Unknown response id "${c.id}"`);delete e[c.id],Object.assign(l.res,c),setTimeout(l.end)}function a(c){r.emit("notification",c)}function s(c,l,h){let _;try{!c.id?a(c):i(c)}catch(b){_=b}h(_)}const f=new Do.Duplex({objectMode:!0,read:t,write:s});return{events:r,middleware:(c,l,h,_)=>{f.push(c),e[c.id]={req:c,res:l,next:h,end:_}},stream:f}}function vM(){return(e,t,r,i)=>{const a=e.id,s=_M();e.id=s,t.id=s,r(f=>{e.id=a,t.id=a,f()})}}function Bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function wM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}class Xn extends wu{constructor(){super(),ee._defineProperty(this,"_middleware",void 0),this._middleware=[]}static async _runAllMiddleware(t,r,i){const a=[];let s=null,f=!1;for(const d of i)if([s,f]=await Xn._runMiddleware(t,r,d,a),f)break;return[s,f,a.reverse()]}static _runMiddleware(t,r,i,a){return new Promise(s=>{const f=c=>{const l=c||r.error;l&&(r.error=hn.serializeError(l)),s([l,!0])},d=c=>{r.error?f(r.error):(c&&(typeof c!="function"&&f(new wa({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),a.push(c)),s([null,!1]))};try{i(t,r,d,f)}catch(c){f(c)}})}static async _runReturnHandlers(t){for(const r of t)await new Promise((i,a)=>{r(s=>s?a(s):i())})}static _checkForCompletion(t,r,i){if(!("result"in r)&&!("error"in r))throw new wa({code:-32603,message:"Response has no error or result for request"});if(!i)throw new wa({code:-32603,message:"Nothing ended request"})}push(t){this._middleware.push(t)}handle(t,r){if(r&&typeof r!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?r?this._handleBatch(t,r):this._handleBatch(t):r?this._handle(t,r):this._promiseHandle(t)}asMiddleware(){return async(t,r,i,a)=>{try{const[s,f,d]=await Xn._runAllMiddleware(t,r,this._middleware);return f?(await Xn._runReturnHandlers(d),a(s)):i(async c=>{try{await Xn._runReturnHandlers(d)}catch(l){return c(l)}return c()})}catch(s){return a(s)}}}async _handleBatch(t,r){try{const i=await Promise.all(t.map(this._promiseHandle.bind(this)));return r?r(null,i):i}catch(i){if(r)return r(i);throw i}}_promiseHandle(t){return new Promise(r=>{this._handle(t,(i,a)=>{r(a)})})}async _handle(t,r){if(!t||Array.isArray(t)||typeof t!="object"){const f=new wa({code:-32603,message:"request must be plain object"});return r(f,{id:void 0,jsonrpc:"2.0",error:f})}if(typeof t.method!="string"){const f=new wa({code:-32603,message:"method must be string"});return r(f,{id:t.id,jsonrpc:"2.0",error:f})}const i=wM({},t),a={id:i.id,jsonrpc:i.jsonrpc};let s=null;try{await this._processRequest(i,a)}catch(f){s=f}return s&&(delete a.result,a.error||(a.error=hn.serializeError(s))),r(s,a)}async _processRequest(t,r){const[i,a,s]=await Xn._runAllMiddleware(t,r,this._middleware);if(Xn._checkForCompletion(t,r,a),await Xn._runReturnHandlers(s),i)throw i}}class EM extends Do.Duplex{constructor(t){let{parent:r,name:i}=t;super({objectMode:!0}),ee._defineProperty(this,"_parent",void 0),ee._defineProperty(this,"_name",void 0),this._parent=r,this._name=i}_read(){}_write(t,r,i){this._parent.push({name:this._name,data:t}),i()}}function $b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function xb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}const Db=Symbol("IGNORE_SUBSTREAM");class SM extends Do.Duplex{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(xb(xb({},t),{},{objectMode:!0})),ee._defineProperty(this,"_substreams",void 0),ee._defineProperty(this,"getStream",void 0),this._substreams={}}createStream(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error(`ObjectMultiplex - Substream for name "${t}" already exists`);const r=new EM({parent:this,name:t});return this._substreams[t]=r,AM(this,i=>r.destroy(i||void 0)),r}ignoreStream(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error(`ObjectMultiplex - Substream for name "${t}" already exists`);this._substreams[t]=Db}_read(){}_write(t,r,i){const{name:a,data:s}=t;if(!a)return window.console.warn(`ObjectMultiplex - malformed chunk without name "${t}"`),i();const f=this._substreams[a];return f?(f!==Db&&f.push(s),i()):(window.console.warn(`ObjectMultiplex - orphaned data for stream "${a}"`),i())}}function AM(e,t){const r=q3(t);D_(e,{readable:!1},r),D_(e,{writable:!1},r)}const Ln=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Ln.writable=e=>Ln(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Ln.readable=e=>Ln(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Ln.duplex=e=>Ln.writable(e)&&Ln.readable(e);Ln.transform=e=>Ln.duplex(e)&&typeof e._transform=="function";var RM=Ln,IM=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,a,s;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(a=i;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),i=s.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=i;a--!==0;){var f=s[a];if(!e(t[f],r[f]))return!1}return!0}return t!==t&&r!==r};const OM=ee.getDefaultExportFromCjs(IM);var TM="0.3.4",Pn={errors:{disconnected:()=>"Torus: Lost connection to Torus.",permanentlyDisconnected:()=>"Torus: Disconnected from iframe. Page reload required.",unsupportedSync:e=>`Torus: The Torus Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidOptions:e=>`Invalid options. Received: { maxEventListeners: ${e}}`,invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`Torus: Connected to chain with ID "${e}".`},warnings:{}};const iE={PRODUCTION:"production",DEVELOPMENT:"development",TESTING:"testing"},Ro={BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",TOP_RIGHT:"top-right"},bf={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",LINE:"line",GITHUB:"github",KAKAO:"kakao",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",WECHAT:"wechat",EMAIL_PASSWORDLESS:"email_passwordless"},PM={en:{embed:{continue:"Continue",actionRequired:"Authorization required",pendingAction:"Click continue to proceed with your request in a popup",cookiesRequired:"Cookies Required",enableCookies:"Please enable cookies in your browser preferences to access Torus",clickHere:"More Info"}},de:{embed:{continue:"Fortsetzen",actionRequired:"Autorisierung erforderlich",pendingAction:"Klicken Sie in einem Popup auf Weiter, um mit Ihrer Anfrage fortzufahren",cookiesRequired:"Cookies benötigt",enableCookies:"Bitte aktivieren Sie Cookies in Ihren Browsereinstellungen, um auf Torus zuzugreifen",clickHere:"Mehr Info"}},ja:{embed:{continue:"継続する",actionRequired:"認証が必要です",pendingAction:"続行をクリックして、ポップアップでリクエストを続行します",cookiesRequired:"必要なクッキー",enableCookies:"Torusにアクセスするには、ブラウザの設定でCookieを有効にしてください。",clickHere:"詳しくは"}},ko:{embed:{continue:"계속하다",actionRequired:"승인 필요",pendingAction:"팝업에서 요청을 진행하려면 계속을 클릭하십시오.",cookiesRequired:"쿠키 필요",enableCookies:"브라우저 환경 설정에서 쿠키를 활성화하여 Torus에 액세스하십시오.",clickHere:"더 많은 정보"}},zh:{embed:{continue:"继续",actionRequired:"需要授权",pendingAction:"单击继续以在弹出窗口中继续您的请求",cookiesRequired:"必填Cookie",enableCookies:"请在您的浏览器首选项中启用cookie以访问Torus。",clickHere:"更多信息"}}};var dp={supportedVerifierList:[bf.GOOGLE,bf.REDDIT,bf.DISCORD],api:"https://api.tor.us",translations:PM,prodTorusUrl:"",localStorageKeyPrefix:"torus-"},xt=Pf.getLogger("solana-embed");function CM(){return(e,t,r)=>{(typeof e.method!="string"||!e.method)&&(t.error=hn.ethErrors.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:e})),r(i=>{const{error:a}=t;return a&&xt.error(`Torus - RPC Error: ${a.message}`,a),i()})}}function LM(e,t,r){let i=`Torus: Lost connection to "${e}".`;t!=null&&t.stack&&(i+=`
106
- ${t.stack}`),xt.warn(i),r&&r.listenerCount("error")>0&&r.emit("error",i)}const lf=()=>Math.random().toString(36).slice(2),oE=async e=>{let t,r;switch(e){case"testing":t="https://solana-testing.tor.us",r="debug";break;case"development":t="http://localhost:8080",r="debug";break;default:t="https://solana.tor.us",r="error";break}return{torusUrl:t,logLevel:r}},NM=()=>{let e=window.navigator.language||"en-US";const t=e.split("-");return e=Object.prototype.hasOwnProperty.call(dp.translations,t[0])?t[0]:"en",e},BM={height:660,width:375},$M={height:740,width:1315},xM={height:700,width:1200},aE={height:600,width:400};function DM(e){let t;try{t=window[e];const r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(r){return r&&(r.code===22||r.code===1014||r.name==="QuotaExceededError"||r.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t&&t.length!==0}}function Ia(e){let{width:t,height:r}=e;const i=window.screenLeft!==void 0?window.screenLeft:window.screenX,a=window.screenTop!==void 0?window.screenTop:window.screenY,s=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,f=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,d=1,c=Math.abs((s-t)/2/d+i),l=Math.abs((f-r)/2/d+a);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=${r/d},width=${t/d},top=${l},left=${c}`}class sE extends wu{constructor(t,r){let{maxEventListeners:i=100,jsonRpcStreamName:a="provider"}=r;if(super(),ee._defineProperty(this,"isTorus",void 0),ee._defineProperty(this,"_rpcEngine",void 0),ee._defineProperty(this,"jsonRpcConnectionEvents",void 0),ee._defineProperty(this,"_state",void 0),!RM.duplex(t))throw new Error(Pn.errors.invalidDuplexStream());this.isTorus=!0,this.setMaxListeners(i),this._handleConnect=this._handleConnect.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this._initializeState=this._initializeState.bind(this),this.request=this.request.bind(this),this.sendAsync=this.sendAsync.bind(this);const s=new SM;F_(t,s,t,this._handleStreamDisconnect.bind(this,"Torus")),s.ignoreStream("phishing");const f=mM();F_(f.stream,s.createStream(a),f.stream,this._handleStreamDisconnect.bind(this,"Torus RpcProvider"));const d=new Xn;d.push(vM()),d.push(CM()),d.push(uM({origin:location.origin})),d.push(f.middleware),this._rpcEngine=d,this.jsonRpcConnectionEvents=f.events}async request(t){if(!t||typeof t!="object"||Array.isArray(t))throw hn.ethErrors.rpc.invalidRequest({message:Pn.errors.invalidRequestArgs(),data:t});const{method:r,params:i}=t;if(typeof r!="string"||r.length===0)throw hn.ethErrors.rpc.invalidRequest({message:Pn.errors.invalidRequestMethod(),data:t});if(i!==void 0&&!Array.isArray(i)&&(typeof i!="object"||i===null))throw hn.ethErrors.rpc.invalidRequest({message:Pn.errors.invalidRequestParams(),data:t});return new Promise((a,s)=>{this._rpcRequest({method:r,params:i},fh(a,s))})}send(t,r){this._rpcRequest(t,r)}sendAsync(t){return new Promise((r,i)=>{this._rpcRequest(t,fh(r,i))})}_handleStreamDisconnect(t,r){LM(t,r,this),this._handleDisconnect(!1,r?r.message:void 0)}}const MM=function(e,t,r){for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];const f=()=>{r(...a),e.removeEventListener(t,f)};e.addEventListener(t,f)};async function fE(){return new Promise(e=>{document.readyState!=="loading"?e():MM(document,"DOMContentLoaded",e)})}const Po=e=>{const t=window.document.createElement("template"),r=e.trim();return t.innerHTML=r,t.content.firstChild};function df(e){return e.version===void 0}class uE extends wu{constructor(t){let{url:r,target:i,features:a}=t;super(),ee._defineProperty(this,"url",void 0),ee._defineProperty(this,"target",void 0),ee._defineProperty(this,"features",void 0),ee._defineProperty(this,"window",void 0),ee._defineProperty(this,"windowTimer",void 0),ee._defineProperty(this,"iClosedWindow",void 0),this.url=r,this.target=i||"_blank",this.features=a||Ia(xM),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this._setupTimer()}_setupTimer(){this.windowTimer=Number(setInterval(()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0),this.window===void 0&&clearInterval(this.windowTimer)},500))}open(){var t;return this.window=window.open(this.url.href,this.target,this.features),(t=this.window)!=null&&t.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(t){t?window.location.replace(this.url.href):window.location.href=this.url.href}}function Mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function FM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}class Eu extends sE{constructor(t,r){let{maxEventListeners:i=100,jsonRpcStreamName:a="provider"}=r;super(t,{maxEventListeners:i,jsonRpcStreamName:a}),ee._defineProperty(this,"embedTranslations",void 0),ee._defineProperty(this,"torusUrl",void 0),ee._defineProperty(this,"dappStorageKey",void 0),ee._defineProperty(this,"windowRefs",void 0),ee._defineProperty(this,"tryWindowHandle",void 0),ee._defineProperty(this,"torusAlertContainer",void 0),ee._defineProperty(this,"torusIframe",void 0),this._state=FM({},Eu._defaultState),this.torusUrl="",this.dappStorageKey="";const s=dp.translations[NM()];this.embedTranslations=s.embed,this.windowRefs={},this.on("connect",()=>{this._state.isConnected=!0});const f=d=>{const{method:c,params:l}=d;if(c===va.IFRAME_STATUS){const{isFullScreen:h,rid:_}=l;this._displayIframe({isFull:h,rid:_})}else if(c===va.CREATE_WINDOW){const{windowId:h,url:_}=l;this._createPopupBlockAlert(h,_)}else if(c===va.CLOSE_WINDOW)this._handleCloseWindow(l);else if(c===va.USER_LOGGED_IN){const{currentLoginProvider:h}=l;this._state.isLoggedIn=!0,this._state.currentLoginProvider=h}else c===va.USER_LOGGED_OUT&&(this._state.isLoggedIn=!1,this._state.currentLoginProvider=null,this._displayIframe())};this.jsonRpcConnectionEvents.on("notification",f)}get isLoggedIn(){return this._state.isLoggedIn}get isIFrameFullScreen(){return this._state.isIFrameFullScreen}isConnected(){return this._state.isConnected}async _initializeState(t){try{const{torusUrl:r,dappStorageKey:i,torusAlertContainer:a,torusIframe:s}=t;this.torusUrl=r,this.dappStorageKey=i,this.torusAlertContainer=a,this.torusIframe=s,this.torusIframe.addEventListener("load",()=>{this._state.isIFrameFullScreen||this._displayIframe()});const{currentLoginProvider:f,isLoggedIn:d}=await this.request({method:Rn.GET_PROVIDER_STATE,params:[]});this._handleConnect(f,d)}catch(r){xt.error("Torus: Failed to get initial state. Please report this bug.",r)}finally{xt.info("initialized communication state"),this._state.initialized=!0,this.emit("_initialized")}}_handleWindow(t){let{url:r,target:i,features:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=new URL(r||`${this.torusUrl}/redirect?windowId=${t}`);this.dappStorageKey&&(s.hash?s.hash+=`&dappStorageKey=${this.dappStorageKey}`:s.hash=`#dappStorageKey=${this.dappStorageKey}`);const f=new uE({url:s,target:i,features:a});if(f.open(),!f.window){this._createPopupBlockAlert(t,s.href);return}this.windowRefs[t]=f,this.request({method:Rn.OPENED_WINDOW,params:{windowId:t}}),f.once("close",()=>{delete this.windowRefs[t],this.request({method:Rn.CLOSED_WINDOW,params:{windowId:t}})})}_displayIframe(){let{isFull:t=!1,rid:r=""}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i={};if(t)i.display="block",i.width="100%",i.height="100%",i.top="0px",i.right="0px",i.left="0px",i.bottom="0px";else switch(i.display=this._state.torusWidgetVisibility?"block":"none",i.height="70px",i.width="70px",this._state.buttonPosition){case Ro.TOP_LEFT:i.top="0px",i.left="0px",i.right="auto",i.bottom="auto";break;case Ro.TOP_RIGHT:i.top="0px",i.right="0px",i.left="auto",i.bottom="auto";break;case Ro.BOTTOM_RIGHT:i.bottom="0px",i.right="0px",i.top="auto",i.left="auto";break;case Ro.BOTTOM_LEFT:default:i.bottom="0px",i.left="0px",i.top="auto",i.right="auto";break}Object.assign(this.torusIframe.style,i),this._state.isIFrameFullScreen=t,this.request({method:Rn.IFRAME_STATUS,params:{isIFrameFullScreen:t,rid:r}})}hideTorusButton(){this._state.torusWidgetVisibility=!1,this._displayIframe()}showTorusButton(){this._state.torusWidgetVisibility=!0,this._displayIframe()}_rpcRequest(t,r){const i=r,a=t;Array.isArray(a)||a.jsonrpc||(a.jsonrpc="2.0"),this.tryWindowHandle(a,i)}_handleConnect(t,r){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{currentLoginProvider:t,isLoggedIn:r}),xt.debug(Pn.info.connected(t)))}_handleDisconnect(t,r){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){this._state.isConnected=!1;let i;t?(i=new hn.EthereumRpcError(1013,r||Pn.errors.disconnected()),xt.debug(i)):(i=new hn.EthereumRpcError(1011,r||Pn.errors.permanentlyDisconnected()),xt.error(i),this._state.currentLoginProvider=null,this._state.isLoggedIn=!1,this._state.torusWidgetVisibility=!1,this._state.isIFrameFullScreen=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",i)}}_handleCloseWindow(t){const{windowId:r}=t;this.windowRefs[r]&&(this.windowRefs[r].close(),delete this.windowRefs[r])}async _createPopupBlockAlert(t,r){const i=this.getLogoUrl(),a=Po(`<div id="torusAlert" class="torus-alert--v2"><div id="torusAlert__logo"><img src="${i}" /></div><div><h1 id="torusAlert__title">${this.embedTranslations.actionRequired}</h1><p id="torusAlert__desc">${this.embedTranslations.pendingAction}</p></div></div>`),s=Po(`<div><a id="torusAlert__btn">${this.embedTranslations.continue}</a></div>`),f=Po('<div id="torusAlert__btn-container"></div>');f.appendChild(s),a.appendChild(f);const d=()=>{s.addEventListener("click",()=>{this._handleWindow(t,{url:r,target:"_blank",features:Ia(aE)}),a.remove(),this.torusAlertContainer.children.length===0&&(this.torusAlertContainer.style.display="none")})},c=()=>{this.torusAlertContainer.appendChild(a)};await fE(),c(),d(),this.torusAlertContainer.style.display="block"}getLogoUrl(){return`${this.torusUrl}/images/torus_icon-blue.svg`}}ee._defineProperty(Eu,"_defaultState",{buttonPosition:"bottom-left",currentLoginProvider:null,isIFrameFullScreen:!1,hasEmittedConnection:!1,torusWidgetVisibility:!1,initialized:!1,isLoggedIn:!1,isPermanentlyDisconnected:!1,isConnected:!1});function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function jM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}class Va extends sE{constructor(t,r){let{maxEventListeners:i=100,jsonRpcStreamName:a="provider"}=r;super(t,{maxEventListeners:i,jsonRpcStreamName:a}),ee._defineProperty(this,"chainId",void 0),ee._defineProperty(this,"selectedAddress",void 0),ee._defineProperty(this,"tryWindowHandle",void 0),this._state=jM({},Va._defaultState),this.selectedAddress=null,this.chainId=null,this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this.on("connect",()=>{this._state.isConnected=!0});const s=f=>{const{method:d,params:c}=f;d===Ld.ACCOUNTS_CHANGED?this._handleAccountsChanged(c):d===Ld.UNLOCK_STATE_CHANGED?this._handleUnlockStateChanged(c):d===Ld.CHAIN_CHANGED&&this._handleChainChanged(c)};this.jsonRpcConnectionEvents.on("notification",s)}isConnected(){return this._state.isConnected}async _initializeState(){try{const{accounts:t,chainId:r,isUnlocked:i}=await this.request({method:fM.GET_PROVIDER_STATE,params:[]});this.emit("connect",{chainId:r}),this._handleChainChanged({chainId:r}),this._handleUnlockStateChanged({accounts:t,isUnlocked:i}),this._handleAccountsChanged(t)}catch(t){xt.error("Torus: Failed to get initial state. Please report this bug.",t)}finally{xt.info("initialized provider state"),this._state.initialized=!0,this.emit("_initialized")}}_rpcRequest(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r;const s=t;if(!Array.isArray(s)){if(s.jsonrpc||(s.jsonrpc="2.0"),s.method==="solana_accounts"||s.method==="solana_requestAccounts")a=(f,d)=>{this._handleAccountsChanged(d.result||[],s.method==="solana_accounts",i),r(f,d)};else if(s.method==="wallet_getProviderState"){this._rpcEngine.handle(t,a);return}}this.tryWindowHandle(s,a)}_handleConnect(t){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:t}),xt.debug(Pn.info.connected(t)))}_handleDisconnect(t,r){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){this._state.isConnected=!1;let i;t?(i=new hn.EthereumRpcError(1013,r||Pn.errors.disconnected()),xt.debug(i)):(i=new hn.EthereumRpcError(1011,r||Pn.errors.permanentlyDisconnected()),xt.error(i),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",i)}}_handleAccountsChanged(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=t;Array.isArray(a)||(xt.error("Torus: Received non-array accounts parameter. Please report this bug.",a),a=[]);for(const s of t)if(typeof s!="string"){xt.error("Torus: Received non-string account. Please report this bug.",t),a=[];break}OM(this._state.accounts,a)||(r&&Array.isArray(this._state.accounts)&&this._state.accounts.length>0&&!i&&xt.error('Torus: "solana_accounts" unexpectedly updated accounts. Please report this bug.',a),this._state.accounts=a,this.emit("accountsChanged",a)),this.selectedAddress!==a[0]&&(this.selectedAddress=a[0]||null)}_handleChainChanged(){let{chainId:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!t){xt.error("Torus: Received invalid network parameters. Please report this bug.",{chainId:t});return}t==="loading"?this._handleDisconnect(!0):(this._handleConnect(t),t!==this.chainId&&(this.chainId=t,this._state.initialized&&this.emit("chainChanged",this.chainId)))}_handleUnlockStateChanged(){let{accounts:t,isUnlocked:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof r!="boolean"){xt.error("Torus: Received invalid isUnlocked parameter. Please report this bug.",{isUnlocked:r});return}r!==this._state.isUnlocked&&(this._state.isUnlocked=r,this._handleAccountsChanged(t||[]))}}ee._defineProperty(Va,"_defaultState",{accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1,hasEmittedConnection:!1});function jb(e){return new Promise((t,r)=>{try{const i=document.createElement("img");i.onload=()=>t(!0),i.onerror=()=>t(!1),i.src=e}catch(i){r(i)}})}const kM=e=>{const{document:t}=e,r=t.querySelector('head > meta[property="og:site_name"]');if(r)return r.content;const i=t.querySelector('head > meta[name="title"]');return i?i.content:t.title&&t.title.length>0?t.title:e.location.hostname};async function UM(e){try{const{document:t}=e;let r=t.querySelector('head > link[rel="shortcut icon"]');return r&&await jb(r.href)||(r=Array.from(t.querySelectorAll('head > link[rel="icon"]')).find(i=>!!i.href),r&&await jb(r.href))?r.href:""}catch{return""}}const qM=async()=>({name:kM(window),icon:await UM(window)});function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Bd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}const HM=["send_transaction","sign_transaction","sign_all_transactions","sign_message","connect"],WM=[Rn.SET_PROVIDER],zM=DM("localStorage");(async function(){try{if(typeof document>"u")return;const t=document.createElement("link"),{torusUrl:r}=await oE("production");t.href=`${r}/frame`,t.crossOrigin="anonymous",t.type="text/html",t.rel="prefetch",t.relList&&t.relList.supports&&t.relList.supports("prefetch")&&document.head.appendChild(t)}catch(t){xt.warn(t)}})();class GM{constructor(){let{modalZIndex:t=99999}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ee._defineProperty(this,"isInitialized",void 0),ee._defineProperty(this,"torusAlert",void 0),ee._defineProperty(this,"modalZIndex",void 0),ee._defineProperty(this,"alertZIndex",void 0),ee._defineProperty(this,"requestedLoginProvider",void 0),ee._defineProperty(this,"provider",void 0),ee._defineProperty(this,"communicationProvider",void 0),ee._defineProperty(this,"dappStorageKey",void 0),ee._defineProperty(this,"isTopupHidden",!1),ee._defineProperty(this,"torusAlertContainer",void 0),ee._defineProperty(this,"torusUrl",void 0),ee._defineProperty(this,"torusIframe",void 0),ee._defineProperty(this,"styleLink",void 0),this.torusUrl="",this.isInitialized=!1,this.requestedLoginProvider=null,this.modalZIndex=t,this.alertZIndex=t+1e3,this.dappStorageKey=""}get isLoggedIn(){return this.communicationProvider?this.communicationProvider.isLoggedIn:!1}async init(){let{buildEnv:t=iE.PRODUCTION,enableLogging:r=!1,network:i,showTorusButton:a=!1,useLocalStorage:s=!1,buttonPosition:f=Ro.BOTTOM_LEFT,apiKey:d="torus-default",extraParams:c={},whiteLabel:l}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.isInitialized)throw new Error("Already initialized");const{torusUrl:h,logLevel:_}=await oE(t);xt.enableAll(),xt.info(h,"url loaded"),xt.info(`Solana Embed Version :${TM}`),this.torusUrl=h,xt.setDefaultLevel(_),r?xt.enableAll():xt.disableAll();const b=this.handleDappStorageKey(s),y=new URL(h);y.pathname.endsWith("/")?y.pathname+="frame":y.pathname+="/frame";const T=new URLSearchParams;b&&T.append("dappStorageKey",b),T.append("origin",window.location.origin),y.hash=T.toString(),this.torusIframe=Po(`<iframe
104
+ }`;var gt=by(function(){return Rt(V,it+"return "+Ze).apply(r,se)});if(gt.source=Ze,Ac(gt))throw gt;return gt}function nT(n){return Tt(n).toLowerCase()}function iT(n){return Tt(n).toUpperCase()}function oT(n,o,f){if(n=Tt(n),n&&(f||o===r))return Tp(n);if(!n||!(o=Mr(o)))return n;var y=an(n),I=an(o),V=Op(y,I),se=Pp(y,I)+1;return pi(y,V,se).join("")}function aT(n,o,f){if(n=Tt(n),n&&(f||o===r))return n.slice(0,Lp(n)+1);if(!n||!(o=Mr(o)))return n;var y=an(n),I=Pp(y,an(o))+1;return pi(y,0,I).join("")}function sT(n,o,f){if(n=Tt(n),n&&(f||o===r))return n.replace(ot,"");if(!n||!(o=Mr(o)))return n;var y=an(n),I=Op(y,an(o));return pi(y,I).join("")}function uT(n,o){var f=Ee,y=ve;if(Wt(o)){var I="separator"in o?o.separator:I;f="length"in o?pt(o.length):f,y="omission"in o?Mr(o.omission):y}n=Tt(n);var V=n.length;if(so(n)){var se=an(n);V=se.length}if(f>=V)return n;var pe=f-uo(y);if(pe<1)return y;var we=se?pi(se,0,pe).join(""):n.slice(0,pe);if(I===r)return we+y;if(se&&(pe+=we.length-pe),Rc(I)){if(n.slice(pe).search(I)){var He,We=we;for(I.global||(I=Uf(I.source,Tt(qt.exec(I))+"g")),I.lastIndex=0;He=I.exec(We);)var Ze=He.index;we=we.slice(0,Ze===r?pe:Ze)}}else if(n.indexOf(Mr(I),pe)!=pe){var Qe=we.lastIndexOf(I);Qe>-1&&(we=we.slice(0,Qe))}return we+y}function fT(n){return n=Tt(n),n&&L.test(n)?n.replace(_e,FE):n}var cT=yo(function(n,o,f){return n+(f?" ":"")+o.toUpperCase()}),Oc=mg("toUpperCase");function _y(n,o,f){return n=Tt(n),o=f?r:o,o===r?BE(n)?UE(n):AE(n):n.match(o)||[]}var by=yt(function(n,o){try{return xr(n,r,o)}catch(f){return Ac(f)?f:new lt(f)}}),lT=Hn(function(n,o){return zr(o,function(f){f=En(f),Un(n,f,Ec(n[f],n))}),n});function dT(n){var o=n==null?0:n.length,f=at();return n=o?Ht(n,function(y){if(typeof y[1]!="function")throw new Gr(u);return[f(y[0]),y[1]]}):[],yt(function(y){for(var I=-1;++I<o;){var V=n[I];if(xr(V[0],this,y))return xr(V[1],this,y)}})}function hT(n){return F1(Zr(n,g))}function Pc(n){return function(){return n}}function pT(n,o){return n==null||n!==n?o:n}var gT=wg(),yT=wg(!0);function Lr(n){return n}function Cc(n){return Xp(typeof n=="function"?n:Zr(n,g))}function _T(n){return Qp(Zr(n,g))}function bT(n,o){return eg(n,Zr(o,g))}var mT=yt(function(n,o){return function(f){return aa(f,n,o)}}),vT=yt(function(n,o){return function(f){return aa(n,f,o)}});function Lc(n,o,f){var y=sr(o),I=Ls(o,y);f==null&&!(Wt(o)&&(I.length||!y.length))&&(f=o,o=n,n=this,I=Ls(o,sr(o)));var V=!(Wt(f)&&"chain"in f)||!!f.chain,se=zn(n);return zr(I,function(pe){var we=o[pe];n[pe]=we,se&&(n.prototype[pe]=function(){var He=this.__chain__;if(V||He){var We=n(this.__wrapped__),Ze=We.__actions__=Or(this.__actions__);return Ze.push({func:we,args:arguments,thisArg:n}),We.__chain__=He,We}return we.apply(n,ui([this.value()],arguments))})}),n}function wT(){return ft._===this&&(ft._=VE),this}function Nc(){}function ET(n){return n=pt(n),yt(function(o){return tg(o,n)})}var ST=fc(Ht),AT=fc(Ep),RT=fc($f);function my(n){return yc(n)?xf(En(n)):tS(n)}function IT(n){return function(o){return n==null?r:xi(n,o)}}var TT=Sg(),OT=Sg(!0);function Bc(){return[]}function $c(){return!1}function PT(){return{}}function CT(){return""}function LT(){return!0}function NT(n,o){if(n=pt(n),n<1||n>ne)return[];var f=Y,y=gr(n,Y);o=at(o),n-=Y;for(var I=Ff(y,o);++f<n;)o(f);return I}function BT(n){return dt(n)?Ht(n,En):Fr(n)?[n]:Or(jg(Tt(n)))}function $T(n){var o=++zE;return Tt(n)+o}var xT=Ms(function(n,o){return n+o},0),DT=cc("ceil"),MT=Ms(function(n,o){return n/o},1),FT=cc("floor");function jT(n){return n&&n.length?Cs(n,Lr,Kf):r}function kT(n,o){return n&&n.length?Cs(n,at(o,2),Kf):r}function UT(n){return Rp(n,Lr)}function qT(n,o){return Rp(n,at(o,2))}function HT(n){return n&&n.length?Cs(n,Lr,Qf):r}function WT(n,o){return n&&n.length?Cs(n,at(o,2),Qf):r}var zT=Ms(function(n,o){return n*o},1),GT=cc("round"),VT=Ms(function(n,o){return n-o},0);function ZT(n){return n&&n.length?Mf(n,Lr):0}function KT(n,o){return n&&n.length?Mf(n,at(o,2)):0}return q.after=_R,q.ary=Jg,q.assign=iI,q.assignIn=cy,q.assignInWith=Js,q.assignWith=oI,q.at=aI,q.before=Xg,q.bind=Ec,q.bindAll=lT,q.bindKey=Yg,q.castArray=PR,q.chain=Vg,q.chunk=FS,q.compact=jS,q.concat=kS,q.cond=dT,q.conforms=hT,q.constant=Pc,q.countBy=ZA,q.create=sI,q.curry=Qg,q.curryRight=ey,q.debounce=ty,q.defaults=uI,q.defaultsDeep=fI,q.defer=bR,q.delay=mR,q.difference=US,q.differenceBy=qS,q.differenceWith=HS,q.drop=WS,q.dropRight=zS,q.dropRightWhile=GS,q.dropWhile=VS,q.fill=ZS,q.filter=JA,q.flatMap=QA,q.flatMapDeep=eR,q.flatMapDepth=tR,q.flatten=Hg,q.flattenDeep=KS,q.flattenDepth=JS,q.flip=vR,q.flow=gT,q.flowRight=yT,q.fromPairs=XS,q.functions=yI,q.functionsIn=_I,q.groupBy=rR,q.initial=QS,q.intersection=eA,q.intersectionBy=tA,q.intersectionWith=rA,q.invert=mI,q.invertBy=vI,q.invokeMap=iR,q.iteratee=Cc,q.keyBy=oR,q.keys=sr,q.keysIn=Cr,q.map=Ws,q.mapKeys=EI,q.mapValues=SI,q.matches=_T,q.matchesProperty=bT,q.memoize=Gs,q.merge=AI,q.mergeWith=ly,q.method=mT,q.methodOf=vT,q.mixin=Lc,q.negate=Vs,q.nthArg=ET,q.omit=RI,q.omitBy=II,q.once=wR,q.orderBy=aR,q.over=ST,q.overArgs=ER,q.overEvery=AT,q.overSome=RT,q.partial=Sc,q.partialRight=ry,q.partition=sR,q.pick=TI,q.pickBy=dy,q.property=my,q.propertyOf=IT,q.pull=aA,q.pullAll=zg,q.pullAllBy=sA,q.pullAllWith=uA,q.pullAt=fA,q.range=TT,q.rangeRight=OT,q.rearg=SR,q.reject=cR,q.remove=cA,q.rest=AR,q.reverse=vc,q.sampleSize=dR,q.set=PI,q.setWith=CI,q.shuffle=hR,q.slice=lA,q.sortBy=yR,q.sortedUniq=bA,q.sortedUniqBy=mA,q.split=QI,q.spread=RR,q.tail=vA,q.take=wA,q.takeRight=EA,q.takeRightWhile=SA,q.takeWhile=AA,q.tap=jA,q.throttle=IR,q.thru=Hs,q.toArray=sy,q.toPairs=hy,q.toPairsIn=py,q.toPath=BT,q.toPlainObject=fy,q.transform=LI,q.unary=TR,q.union=RA,q.unionBy=IA,q.unionWith=TA,q.uniq=OA,q.uniqBy=PA,q.uniqWith=CA,q.unset=NI,q.unzip=wc,q.unzipWith=Gg,q.update=BI,q.updateWith=$I,q.values=mo,q.valuesIn=xI,q.without=LA,q.words=_y,q.wrap=OR,q.xor=NA,q.xorBy=BA,q.xorWith=$A,q.zip=xA,q.zipObject=DA,q.zipObjectDeep=MA,q.zipWith=FA,q.entries=hy,q.entriesIn=py,q.extend=cy,q.extendWith=Js,Lc(q,q),q.add=xT,q.attempt=by,q.camelCase=jI,q.capitalize=gy,q.ceil=DT,q.clamp=DI,q.clone=CR,q.cloneDeep=NR,q.cloneDeepWith=BR,q.cloneWith=LR,q.conformsTo=$R,q.deburr=yy,q.defaultTo=pT,q.divide=MT,q.endsWith=kI,q.eq=un,q.escape=UI,q.escapeRegExp=qI,q.every=KA,q.find=XA,q.findIndex=Ug,q.findKey=cI,q.findLast=YA,q.findLastIndex=qg,q.findLastKey=lI,q.floor=FT,q.forEach=Zg,q.forEachRight=Kg,q.forIn=dI,q.forInRight=hI,q.forOwn=pI,q.forOwnRight=gI,q.get=Ic,q.gt=xR,q.gte=DR,q.has=bI,q.hasIn=Tc,q.head=Wg,q.identity=Lr,q.includes=nR,q.indexOf=YS,q.inRange=MI,q.invoke=wI,q.isArguments=Fi,q.isArray=dt,q.isArrayBuffer=MR,q.isArrayLike=Pr,q.isArrayLikeObject=Xt,q.isBoolean=FR,q.isBuffer=gi,q.isDate=jR,q.isElement=kR,q.isEmpty=UR,q.isEqual=qR,q.isEqualWith=HR,q.isError=Ac,q.isFinite=WR,q.isFunction=zn,q.isInteger=ny,q.isLength=Zs,q.isMap=iy,q.isMatch=zR,q.isMatchWith=GR,q.isNaN=VR,q.isNative=ZR,q.isNil=JR,q.isNull=KR,q.isNumber=oy,q.isObject=Wt,q.isObjectLike=Zt,q.isPlainObject=da,q.isRegExp=Rc,q.isSafeInteger=XR,q.isSet=ay,q.isString=Ks,q.isSymbol=Fr,q.isTypedArray=bo,q.isUndefined=YR,q.isWeakMap=QR,q.isWeakSet=eI,q.join=nA,q.kebabCase=HI,q.last=Jr,q.lastIndexOf=iA,q.lowerCase=WI,q.lowerFirst=zI,q.lt=tI,q.lte=rI,q.max=jT,q.maxBy=kT,q.mean=UT,q.meanBy=qT,q.min=HT,q.minBy=WT,q.stubArray=Bc,q.stubFalse=$c,q.stubObject=PT,q.stubString=CT,q.stubTrue=LT,q.multiply=zT,q.nth=oA,q.noConflict=wT,q.noop=Nc,q.now=zs,q.pad=GI,q.padEnd=VI,q.padStart=ZI,q.parseInt=KI,q.random=FI,q.reduce=uR,q.reduceRight=fR,q.repeat=JI,q.replace=XI,q.result=OI,q.round=GT,q.runInContext=be,q.sample=lR,q.size=pR,q.snakeCase=YI,q.some=gR,q.sortedIndex=dA,q.sortedIndexBy=hA,q.sortedIndexOf=pA,q.sortedLastIndex=gA,q.sortedLastIndexBy=yA,q.sortedLastIndexOf=_A,q.startCase=eT,q.startsWith=tT,q.subtract=VT,q.sum=ZT,q.sumBy=KT,q.template=rT,q.times=NT,q.toFinite=Gn,q.toInteger=pt,q.toLength=uy,q.toLower=nT,q.toNumber=Xr,q.toSafeInteger=nI,q.toString=Tt,q.toUpper=iT,q.trim=oT,q.trimEnd=aT,q.trimStart=sT,q.truncate=uT,q.unescape=fT,q.uniqueId=$T,q.upperCase=cT,q.upperFirst=Oc,q.each=Zg,q.eachRight=Kg,q.first=Wg,Lc(q,function(){var n={};return vn(q,function(o,f){Ct.call(q.prototype,f)||(n[f]=o)}),n}(),{chain:!1}),q.VERSION=i,zr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){q[n].placeholder=q}),zr(["drop","take"],function(n,o){vt.prototype[n]=function(f){f=f===r?1:ir(pt(f),0);var y=this.__filtered__&&!o?new vt(this):this.clone();return y.__filtered__?y.__takeCount__=gr(f,y.__takeCount__):y.__views__.push({size:gr(f,Y),type:n+(y.__dir__<0?"Right":"")}),y},vt.prototype[n+"Right"]=function(f){return this.reverse()[n](f).reverse()}}),zr(["filter","map","takeWhile"],function(n,o){var f=o+1,y=f==P||f==ae;vt.prototype[n]=function(I){var V=this.clone();return V.__iteratees__.push({iteratee:at(I,3),type:f}),V.__filtered__=V.__filtered__||y,V}}),zr(["head","last"],function(n,o){var f="take"+(o?"Right":"");vt.prototype[n]=function(){return this[f](1).value()[0]}}),zr(["initial","tail"],function(n,o){var f="drop"+(o?"":"Right");vt.prototype[n]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(Lr)},vt.prototype.find=function(n){return this.filter(n).head()},vt.prototype.findLast=function(n){return this.reverse().find(n)},vt.prototype.invokeMap=yt(function(n,o){return typeof n=="function"?new vt(this):this.map(function(f){return aa(f,n,o)})}),vt.prototype.reject=function(n){return this.filter(Vs(at(n)))},vt.prototype.slice=function(n,o){n=pt(n);var f=this;return f.__filtered__&&(n>0||o<0)?new vt(f):(n<0?f=f.takeRight(-n):n&&(f=f.drop(n)),o!==r&&(o=pt(o),f=o<0?f.dropRight(-o):f.take(o-n)),f)},vt.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},vt.prototype.toArray=function(){return this.take(Y)},vn(vt.prototype,function(n,o){var f=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),I=q[y?"take"+(o=="last"?"Right":""):o],V=y||/^find/.test(o);I&&(q.prototype[o]=function(){var se=this.__wrapped__,pe=y?[1]:arguments,we=se instanceof vt,He=pe[0],We=we||dt(se),Ze=function(_t){var Et=I.apply(q,ui([_t],pe));return y&&Qe?Et[0]:Et};We&&f&&typeof He=="function"&&He.length!=1&&(we=We=!1);var Qe=this.__chain__,it=!!this.__actions__.length,st=V&&!Qe,gt=we&&!it;if(!V&&We){se=gt?se:new vt(this);var ut=n.apply(se,pe);return ut.__actions__.push({func:Hs,args:[Ze],thisArg:r}),new Vr(ut,Qe)}return st&&gt?n.apply(this,pe):(ut=this.thru(Ze),st?y?ut.value()[0]:ut.value():ut)})}),zr(["pop","push","shift","sort","splice","unshift"],function(n){var o=gs[n],f=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",y=/^(?:pop|shift)$/.test(n);q.prototype[n]=function(){var I=arguments;if(y&&!this.__chain__){var V=this.value();return o.apply(dt(V)?V:[],I)}return this[f](function(se){return o.apply(dt(se)?se:[],I)})}}),vn(vt.prototype,function(n,o){var f=q[o];if(f){var y=f.name+"";Ct.call(ho,y)||(ho[y]=[]),ho[y].push({name:o,func:f})}}),ho[Ds(r,R).name]=[{name:"wrapper",func:r}],vt.prototype.clone=f1,vt.prototype.reverse=c1,vt.prototype.value=l1,q.prototype.at=kA,q.prototype.chain=UA,q.prototype.commit=qA,q.prototype.next=HA,q.prototype.plant=zA,q.prototype.reverse=GA,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=VA,q.prototype.first=q.prototype.head,Qo&&(q.prototype[Qo]=WA),q},fo=qE();rr?((rr.exports=fo)._=fo,Nt._=fo):ft._=fo}).call(ee.commonjsGlobal)})(Cu,Cu.exports);Cu.exports;QT();const va={IFRAME_STATUS:"iframe_status",CREATE_WINDOW:"create_window",CLOSE_WINDOW:"close_window",USER_LOGGED_IN:"user_logged_in",USER_LOGGED_OUT:"user_logged_out"},Rn={LOGOUT:"logout",WALLET_INSTANCE_ID:"wallet_instance_id",USER_INFO:"user_info",SET_PROVIDER:"set_provider",TOPUP:"topup",IFRAME_STATUS:"iframe_status",OPENED_WINDOW:"opened_window",CLOSED_WINDOW:"closed_window",GET_PROVIDER_STATE:"get_provider_state",LOGIN_WITH_PRIVATE_KEY:"login_with_private_key"},cM={GET_PROVIDER_STATE:"wallet_get_provider_state"},Dd={ACCOUNTS_CHANGED:"wallet_accounts_changed",CHAIN_CHANGED:"wallet_chain_changed",UNLOCK_STATE_CHANGED:"wallet_unlock_state_changed"};function lM(e){return function(r,i,a){a(s=>{i.error&&Ou.warn(`Error in RPC response:
105
+ `,i),!r.isTorusInternal&&(Ou.info(`RPC (${e.origin}):`,r,"->",i),s())})}}var Mb;(function(e){e.approved="approved",e.cancelled="cancelled",e.confirmed="confirmed",e.failed="failed",e.finalized="finalized",e.processed="processed",e.rejected="rejected",e.signed="signed",e.submitted="submitted",e.unapproved="unapproved",e.dropped="dropped",e.expired="expired"})(Mb||(Mb={}));var dM=ee.requireBrowser();const hM=ee.getDefaultExportFromCjs(dM);var pM={exports:{}},pp={},gp={};Object.defineProperty(gp,"__esModule",{value:!0});function gM(e){var t=4,r=e.length,i=r%t;if(!i)return e;var a=r,s=t-i,u=r+s,d=ee.dist.Buffer.alloc(u);for(d.write(e);s--;)d.write("=",a++);return d.toString()}gp.default=gM;Object.defineProperty(pp,"__esModule",{value:!0});var yM=gp;function dE(e,t){return t===void 0&&(t="utf8"),ee.dist.Buffer.isBuffer(e)?dh(e.toString("base64")):dh(ee.dist.Buffer.from(e,t).toString("base64"))}function _M(e,t){return t===void 0&&(t="utf8"),ee.dist.Buffer.from(yp(e),"base64").toString(t)}function yp(e){return e=e.toString(),yM.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function dh(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function bM(e){return ee.dist.Buffer.from(yp(e),"base64")}var qo=dE;qo.encode=dE;qo.decode=_M;qo.toBase64=yp;qo.fromBase64=dh;qo.toBuffer=bM;pp.default=qo;(function(e){e.exports=pp.default,e.exports.default=e.exports})(pM);const mM=()=>hM(32).toString("hex");function fu(){}const Fb="SYN",Md="ACK",jb="BRK";class kb extends Do.Duplex{constructor(t){let{name:r,target:i,targetWindow:a=window,targetOrigin:s="*"}=t;if(super({objectMode:!0}),ee._defineProperty(this,"_init",void 0),ee._defineProperty(this,"_haveSyn",void 0),ee._defineProperty(this,"_name",void 0),ee._defineProperty(this,"_target",void 0),ee._defineProperty(this,"_targetWindow",void 0),ee._defineProperty(this,"_targetOrigin",void 0),ee._defineProperty(this,"_onMessage",void 0),ee._defineProperty(this,"_synIntervalId",void 0),!r||!i)throw new Error("Invalid input.");this._init=!1,this._haveSyn=!1,this._name=r,this._target=i,this._targetWindow=a,this._targetOrigin=s,this._onMessage=this.onMessage.bind(this),this._synIntervalId=null,window.addEventListener("message",this._onMessage,!1),this._handShake()}_break(){this.cork(),this._write(jb,null,fu),this._haveSyn=!1,this._init=!1}_handShake(){this._write(Fb,null,fu),this.cork()}_onData(t){if(!this._init)t===Fb?(this._haveSyn=!0,this._write(Md,null,fu)):t===Md&&(this._init=!0,this._haveSyn||this._write(Md,null,fu),this.uncork());else if(t===jb)this._break();else try{this.push(t)}catch(r){this.emit("error",r)}}_postMessage(t){const r=this._targetOrigin;this._targetWindow.postMessage({target:this._target,data:t},r)}onMessage(t){const r=t.data;this._targetOrigin!=="*"&&t.origin!==this._targetOrigin||t.source!==this._targetWindow||typeof r!="object"||r.target!==this._name||!r.data||this._onData(r.data)}_read(){}_write(t,r,i){this._postMessage(t),i()}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}function Ub(e,t,r){try{Reflect.apply(e,t,r)}catch(i){setTimeout(()=>{throw i})}}function vM(e){const t=e.length,r=new Array(t);for(let i=0;i<t;i+=1)r[i]=e[i];return r}class wf extends JT.eventsExports.EventEmitter{emit(t){let r=t==="error";const i=this._events;if(i!==void 0)r=r&&i.error===void 0;else if(!r)return!1;for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];if(r){let c;if(s.length>0&&([c]=s),c instanceof Error)throw c;const l=new Error(`Unhandled error.${c?` (${c.message})`:""}`);throw l.context=c,l}const d=i[t];if(d===void 0)return!1;if(typeof d=="function")Ub(d,this,s);else{const c=d.length,l=vM(d);for(let h=0;h<c;h+=1)Ub(l[h],this,s)}return!0}}class wa extends Error{constructor(t){let{code:r,message:i,data:a}=t;if(!Number.isInteger(r))throw new Error("code must be an integer");if(!i||typeof i!="string")throw new Error("message must be string");super(i),ee._defineProperty(this,"code",void 0),ee._defineProperty(this,"data",void 0),this.code=r,a!==void 0&&(this.data=a)}toString(){return oO({code:this.code,message:this.message,data:this.data,stack:this.stack})}}const hh=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(i,a)=>{i||a.error?t(i||a.error):!r||Array.isArray(a)?e(a):e(a.result)}};function wM(){const e={};function t(){return!1}const r=new wf;function i(c){const l=e[c.id];if(!l)throw new Error(`StreamMiddleware - Unknown response id "${c.id}"`);delete e[c.id],Object.assign(l.res,c),setTimeout(l.end)}function a(c){r.emit("notification",c)}function s(c,l,h){let g;try{!c.id?a(c):i(c)}catch(b){g=b}h(g)}const u=new Do.Duplex({objectMode:!0,read:t,write:s});return{events:r,middleware:(c,l,h,g)=>{u.push(c),e[c.id]={req:c,res:l,next:h,end:g}},stream:u}}function EM(){return(e,t,r,i)=>{const a=e.id,s=mM();e.id=s,t.id=s,r(u=>{e.id=a,t.id=a,u()})}}function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function SM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}class Xn extends wf{constructor(){super(),ee._defineProperty(this,"_middleware",void 0),this._middleware=[]}static async _runAllMiddleware(t,r,i){const a=[];let s=null,u=!1;for(const d of i)if([s,u]=await Xn._runMiddleware(t,r,d,a),u)break;return[s,u,a.reverse()]}static _runMiddleware(t,r,i,a){return new Promise(s=>{const u=c=>{const l=c||r.error;l&&(r.error=hn.serializeError(l)),s([l,!0])},d=c=>{r.error?u(r.error):(c&&(typeof c!="function"&&u(new wa({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),a.push(c)),s([null,!1]))};try{i(t,r,d,u)}catch(c){u(c)}})}static async _runReturnHandlers(t){for(const r of t)await new Promise((i,a)=>{r(s=>s?a(s):i())})}static _checkForCompletion(t,r,i){if(!("result"in r)&&!("error"in r))throw new wa({code:-32603,message:"Response has no error or result for request"});if(!i)throw new wa({code:-32603,message:"Nothing ended request"})}push(t){this._middleware.push(t)}handle(t,r){if(r&&typeof r!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?r?this._handleBatch(t,r):this._handleBatch(t):r?this._handle(t,r):this._promiseHandle(t)}asMiddleware(){return async(t,r,i,a)=>{try{const[s,u,d]=await Xn._runAllMiddleware(t,r,this._middleware);return u?(await Xn._runReturnHandlers(d),a(s)):i(async c=>{try{await Xn._runReturnHandlers(d)}catch(l){return c(l)}return c()})}catch(s){return a(s)}}}async _handleBatch(t,r){try{const i=await Promise.all(t.map(this._promiseHandle.bind(this)));return r?r(null,i):i}catch(i){if(r)return r(i);throw i}}_promiseHandle(t){return new Promise(r=>{this._handle(t,(i,a)=>{r(a)})})}async _handle(t,r){if(!t||Array.isArray(t)||typeof t!="object"){const u=new wa({code:-32603,message:"request must be plain object"});return r(u,{id:void 0,jsonrpc:"2.0",error:u})}if(typeof t.method!="string"){const u=new wa({code:-32603,message:"method must be string"});return r(u,{id:t.id,jsonrpc:"2.0",error:u})}const i=SM({},t),a={id:i.id,jsonrpc:i.jsonrpc};let s=null;try{await this._processRequest(i,a)}catch(u){s=u}return s&&(delete a.result,a.error||(a.error=hn.serializeError(s))),r(s,a)}async _processRequest(t,r){const[i,a,s]=await Xn._runAllMiddleware(t,r,this._middleware);if(Xn._checkForCompletion(t,r,a),await Xn._runReturnHandlers(s),i)throw i}}class AM extends Do.Duplex{constructor(t){let{parent:r,name:i}=t;super({objectMode:!0}),ee._defineProperty(this,"_parent",void 0),ee._defineProperty(this,"_name",void 0),this._parent=r,this._name=i}_read(){}_write(t,r,i){this._parent.push({name:this._name,data:t}),i()}}function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}const zb=Symbol("IGNORE_SUBSTREAM");class RM extends Do.Duplex{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(Wb(Wb({},t),{},{objectMode:!0})),ee._defineProperty(this,"_substreams",void 0),ee._defineProperty(this,"getStream",void 0),this._substreams={}}createStream(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error(`ObjectMultiplex - Substream for name "${t}" already exists`);const r=new AM({parent:this,name:t});return this._substreams[t]=r,IM(this,i=>r.destroy(i||void 0)),r}ignoreStream(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error(`ObjectMultiplex - Substream for name "${t}" already exists`);this._substreams[t]=zb}_read(){}_write(t,r,i){const{name:a,data:s}=t;if(!a)return window.console.warn(`ObjectMultiplex - malformed chunk without name "${t}"`),i();const u=this._substreams[a];return u?(u!==zb&&u.push(s),i()):(window.console.warn(`ObjectMultiplex - orphaned data for stream "${a}"`),i())}}function IM(e,t){const r=W3(t);z_(e,{readable:!1},r),z_(e,{writable:!1},r)}const Ln=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Ln.writable=e=>Ln(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Ln.readable=e=>Ln(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Ln.duplex=e=>Ln.writable(e)&&Ln.readable(e);Ln.transform=e=>Ln.duplex(e)&&typeof e._transform=="function";var TM=Ln,OM=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,a,s;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(a=i;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),i=s.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=i;a--!==0;){var u=s[a];if(!e(t[u],r[u]))return!1}return!0}return t!==t&&r!==r};const PM=ee.getDefaultExportFromCjs(OM);var CM="0.3.4",Pn={errors:{disconnected:()=>"Torus: Lost connection to Torus.",permanentlyDisconnected:()=>"Torus: Disconnected from iframe. Page reload required.",unsupportedSync:e=>`Torus: The Torus Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidOptions:e=>`Invalid options. Received: { maxEventListeners: ${e}}`,invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`Torus: Connected to chain with ID "${e}".`},warnings:{}};const hE={PRODUCTION:"production",DEVELOPMENT:"development",TESTING:"testing"},Ro={BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",TOP_RIGHT:"top-right"},_u={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",LINE:"line",GITHUB:"github",KAKAO:"kakao",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",WECHAT:"wechat",EMAIL_PASSWORDLESS:"email_passwordless"},LM={en:{embed:{continue:"Continue",actionRequired:"Authorization required",pendingAction:"Click continue to proceed with your request in a popup",cookiesRequired:"Cookies Required",enableCookies:"Please enable cookies in your browser preferences to access Torus",clickHere:"More Info"}},de:{embed:{continue:"Fortsetzen",actionRequired:"Autorisierung erforderlich",pendingAction:"Klicken Sie in einem Popup auf Weiter, um mit Ihrer Anfrage fortzufahren",cookiesRequired:"Cookies benötigt",enableCookies:"Bitte aktivieren Sie Cookies in Ihren Browsereinstellungen, um auf Torus zuzugreifen",clickHere:"Mehr Info"}},ja:{embed:{continue:"継続する",actionRequired:"認証が必要です",pendingAction:"続行をクリックして、ポップアップでリクエストを続行します",cookiesRequired:"必要なクッキー",enableCookies:"Torusにアクセスするには、ブラウザの設定でCookieを有効にしてください。",clickHere:"詳しくは"}},ko:{embed:{continue:"계속하다",actionRequired:"승인 필요",pendingAction:"팝업에서 요청을 진행하려면 계속을 클릭하십시오.",cookiesRequired:"쿠키 필요",enableCookies:"브라우저 환경 설정에서 쿠키를 활성화하여 Torus에 액세스하십시오.",clickHere:"더 많은 정보"}},zh:{embed:{continue:"继续",actionRequired:"需要授权",pendingAction:"单击继续以在弹出窗口中继续您的请求",cookiesRequired:"必填Cookie",enableCookies:"请在您的浏览器首选项中启用cookie以访问Torus。",clickHere:"更多信息"}}};var _p={supportedVerifierList:[_u.GOOGLE,_u.REDDIT,_u.DISCORD],api:"https://api.tor.us",translations:LM,prodTorusUrl:"",localStorageKeyPrefix:"torus-"},xt=Ou.getLogger("solana-embed");function NM(){return(e,t,r)=>{(typeof e.method!="string"||!e.method)&&(t.error=hn.ethErrors.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:e})),r(i=>{const{error:a}=t;return a&&xt.error(`Torus - RPC Error: ${a.message}`,a),i()})}}function BM(e,t,r){let i=`Torus: Lost connection to "${e}".`;t!=null&&t.stack&&(i+=`
106
+ ${t.stack}`),xt.warn(i),r&&r.listenerCount("error")>0&&r.emit("error",i)}const cu=()=>Math.random().toString(36).slice(2),pE=async e=>{let t,r;switch(e){case"testing":t="https://solana-testing.tor.us",r="debug";break;case"development":t="http://localhost:8080",r="debug";break;default:t="https://solana.tor.us",r="error";break}return{torusUrl:t,logLevel:r}},$M=()=>{let e=window.navigator.language||"en-US";const t=e.split("-");return e=Object.prototype.hasOwnProperty.call(_p.translations,t[0])?t[0]:"en",e},xM={height:660,width:375},DM={height:740,width:1315},MM={height:700,width:1200},gE={height:600,width:400};function FM(e){let t;try{t=window[e];const r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(r){return r&&(r.code===22||r.code===1014||r.name==="QuotaExceededError"||r.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t&&t.length!==0}}function Ia(e){let{width:t,height:r}=e;const i=window.screenLeft!==void 0?window.screenLeft:window.screenX,a=window.screenTop!==void 0?window.screenTop:window.screenY,s=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,u=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,d=1,c=Math.abs((s-t)/2/d+i),l=Math.abs((u-r)/2/d+a);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=${r/d},width=${t/d},top=${l},left=${c}`}class yE extends wf{constructor(t,r){let{maxEventListeners:i=100,jsonRpcStreamName:a="provider"}=r;if(super(),ee._defineProperty(this,"isTorus",void 0),ee._defineProperty(this,"_rpcEngine",void 0),ee._defineProperty(this,"jsonRpcConnectionEvents",void 0),ee._defineProperty(this,"_state",void 0),!TM.duplex(t))throw new Error(Pn.errors.invalidDuplexStream());this.isTorus=!0,this.setMaxListeners(i),this._handleConnect=this._handleConnect.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this._initializeState=this._initializeState.bind(this),this.request=this.request.bind(this),this.sendAsync=this.sendAsync.bind(this);const s=new RM;V_(t,s,t,this._handleStreamDisconnect.bind(this,"Torus")),s.ignoreStream("phishing");const u=wM();V_(u.stream,s.createStream(a),u.stream,this._handleStreamDisconnect.bind(this,"Torus RpcProvider"));const d=new Xn;d.push(EM()),d.push(NM()),d.push(lM({origin:location.origin})),d.push(u.middleware),this._rpcEngine=d,this.jsonRpcConnectionEvents=u.events}async request(t){if(!t||typeof t!="object"||Array.isArray(t))throw hn.ethErrors.rpc.invalidRequest({message:Pn.errors.invalidRequestArgs(),data:t});const{method:r,params:i}=t;if(typeof r!="string"||r.length===0)throw hn.ethErrors.rpc.invalidRequest({message:Pn.errors.invalidRequestMethod(),data:t});if(i!==void 0&&!Array.isArray(i)&&(typeof i!="object"||i===null))throw hn.ethErrors.rpc.invalidRequest({message:Pn.errors.invalidRequestParams(),data:t});return new Promise((a,s)=>{this._rpcRequest({method:r,params:i},hh(a,s))})}send(t,r){this._rpcRequest(t,r)}sendAsync(t){return new Promise((r,i)=>{this._rpcRequest(t,hh(r,i))})}_handleStreamDisconnect(t,r){BM(t,r,this),this._handleDisconnect(!1,r?r.message:void 0)}}const jM=function(e,t,r){for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];const u=()=>{r(...a),e.removeEventListener(t,u)};e.addEventListener(t,u)};async function _E(){return new Promise(e=>{document.readyState!=="loading"?e():jM(document,"DOMContentLoaded",e)})}const Po=e=>{const t=window.document.createElement("template"),r=e.trim();return t.innerHTML=r,t.content.firstChild};function lu(e){return e.version===void 0}class bE extends wf{constructor(t){let{url:r,target:i,features:a}=t;super(),ee._defineProperty(this,"url",void 0),ee._defineProperty(this,"target",void 0),ee._defineProperty(this,"features",void 0),ee._defineProperty(this,"window",void 0),ee._defineProperty(this,"windowTimer",void 0),ee._defineProperty(this,"iClosedWindow",void 0),this.url=r,this.target=i||"_blank",this.features=a||Ia(MM),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this._setupTimer()}_setupTimer(){this.windowTimer=Number(setInterval(()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0),this.window===void 0&&clearInterval(this.windowTimer)},500))}open(){var t;return this.window=window.open(this.url.href,this.target,this.features),(t=this.window)!=null&&t.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(t){t?window.location.replace(this.url.href):window.location.href=this.url.href}}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function kM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}class Ef extends yE{constructor(t,r){let{maxEventListeners:i=100,jsonRpcStreamName:a="provider"}=r;super(t,{maxEventListeners:i,jsonRpcStreamName:a}),ee._defineProperty(this,"embedTranslations",void 0),ee._defineProperty(this,"torusUrl",void 0),ee._defineProperty(this,"dappStorageKey",void 0),ee._defineProperty(this,"windowRefs",void 0),ee._defineProperty(this,"tryWindowHandle",void 0),ee._defineProperty(this,"torusAlertContainer",void 0),ee._defineProperty(this,"torusIframe",void 0),this._state=kM({},Ef._defaultState),this.torusUrl="",this.dappStorageKey="";const s=_p.translations[$M()];this.embedTranslations=s.embed,this.windowRefs={},this.on("connect",()=>{this._state.isConnected=!0});const u=d=>{const{method:c,params:l}=d;if(c===va.IFRAME_STATUS){const{isFullScreen:h,rid:g}=l;this._displayIframe({isFull:h,rid:g})}else if(c===va.CREATE_WINDOW){const{windowId:h,url:g}=l;this._createPopupBlockAlert(h,g)}else if(c===va.CLOSE_WINDOW)this._handleCloseWindow(l);else if(c===va.USER_LOGGED_IN){const{currentLoginProvider:h}=l;this._state.isLoggedIn=!0,this._state.currentLoginProvider=h}else c===va.USER_LOGGED_OUT&&(this._state.isLoggedIn=!1,this._state.currentLoginProvider=null,this._displayIframe())};this.jsonRpcConnectionEvents.on("notification",u)}get isLoggedIn(){return this._state.isLoggedIn}get isIFrameFullScreen(){return this._state.isIFrameFullScreen}isConnected(){return this._state.isConnected}async _initializeState(t){try{const{torusUrl:r,dappStorageKey:i,torusAlertContainer:a,torusIframe:s}=t;this.torusUrl=r,this.dappStorageKey=i,this.torusAlertContainer=a,this.torusIframe=s,this.torusIframe.addEventListener("load",()=>{this._state.isIFrameFullScreen||this._displayIframe()});const{currentLoginProvider:u,isLoggedIn:d}=await this.request({method:Rn.GET_PROVIDER_STATE,params:[]});this._handleConnect(u,d)}catch(r){xt.error("Torus: Failed to get initial state. Please report this bug.",r)}finally{xt.info("initialized communication state"),this._state.initialized=!0,this.emit("_initialized")}}_handleWindow(t){let{url:r,target:i,features:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=new URL(r||`${this.torusUrl}/redirect?windowId=${t}`);this.dappStorageKey&&(s.hash?s.hash+=`&dappStorageKey=${this.dappStorageKey}`:s.hash=`#dappStorageKey=${this.dappStorageKey}`);const u=new bE({url:s,target:i,features:a});if(u.open(),!u.window){this._createPopupBlockAlert(t,s.href);return}this.windowRefs[t]=u,this.request({method:Rn.OPENED_WINDOW,params:{windowId:t}}),u.once("close",()=>{delete this.windowRefs[t],this.request({method:Rn.CLOSED_WINDOW,params:{windowId:t}})})}_displayIframe(){let{isFull:t=!1,rid:r=""}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i={};if(t)i.display="block",i.width="100%",i.height="100%",i.top="0px",i.right="0px",i.left="0px",i.bottom="0px";else switch(i.display=this._state.torusWidgetVisibility?"block":"none",i.height="70px",i.width="70px",this._state.buttonPosition){case Ro.TOP_LEFT:i.top="0px",i.left="0px",i.right="auto",i.bottom="auto";break;case Ro.TOP_RIGHT:i.top="0px",i.right="0px",i.left="auto",i.bottom="auto";break;case Ro.BOTTOM_RIGHT:i.bottom="0px",i.right="0px",i.top="auto",i.left="auto";break;case Ro.BOTTOM_LEFT:default:i.bottom="0px",i.left="0px",i.top="auto",i.right="auto";break}Object.assign(this.torusIframe.style,i),this._state.isIFrameFullScreen=t,this.request({method:Rn.IFRAME_STATUS,params:{isIFrameFullScreen:t,rid:r}})}hideTorusButton(){this._state.torusWidgetVisibility=!1,this._displayIframe()}showTorusButton(){this._state.torusWidgetVisibility=!0,this._displayIframe()}_rpcRequest(t,r){const i=r,a=t;Array.isArray(a)||a.jsonrpc||(a.jsonrpc="2.0"),this.tryWindowHandle(a,i)}_handleConnect(t,r){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{currentLoginProvider:t,isLoggedIn:r}),xt.debug(Pn.info.connected(t)))}_handleDisconnect(t,r){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){this._state.isConnected=!1;let i;t?(i=new hn.EthereumRpcError(1013,r||Pn.errors.disconnected()),xt.debug(i)):(i=new hn.EthereumRpcError(1011,r||Pn.errors.permanentlyDisconnected()),xt.error(i),this._state.currentLoginProvider=null,this._state.isLoggedIn=!1,this._state.torusWidgetVisibility=!1,this._state.isIFrameFullScreen=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",i)}}_handleCloseWindow(t){const{windowId:r}=t;this.windowRefs[r]&&(this.windowRefs[r].close(),delete this.windowRefs[r])}async _createPopupBlockAlert(t,r){const i=this.getLogoUrl(),a=Po(`<div id="torusAlert" class="torus-alert--v2"><div id="torusAlert__logo"><img src="${i}" /></div><div><h1 id="torusAlert__title">${this.embedTranslations.actionRequired}</h1><p id="torusAlert__desc">${this.embedTranslations.pendingAction}</p></div></div>`),s=Po(`<div><a id="torusAlert__btn">${this.embedTranslations.continue}</a></div>`),u=Po('<div id="torusAlert__btn-container"></div>');u.appendChild(s),a.appendChild(u);const d=()=>{s.addEventListener("click",()=>{this._handleWindow(t,{url:r,target:"_blank",features:Ia(gE)}),a.remove(),this.torusAlertContainer.children.length===0&&(this.torusAlertContainer.style.display="none")})},c=()=>{this.torusAlertContainer.appendChild(a)};await _E(),c(),d(),this.torusAlertContainer.style.display="block"}getLogoUrl(){return`${this.torusUrl}/images/torus_icon-blue.svg`}}ee._defineProperty(Ef,"_defaultState",{buttonPosition:"bottom-left",currentLoginProvider:null,isIFrameFullScreen:!1,hasEmittedConnection:!1,torusWidgetVisibility:!1,initialized:!1,isLoggedIn:!1,isPermanentlyDisconnected:!1,isConnected:!1});function Vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function UM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}class Va extends yE{constructor(t,r){let{maxEventListeners:i=100,jsonRpcStreamName:a="provider"}=r;super(t,{maxEventListeners:i,jsonRpcStreamName:a}),ee._defineProperty(this,"chainId",void 0),ee._defineProperty(this,"selectedAddress",void 0),ee._defineProperty(this,"tryWindowHandle",void 0),this._state=UM({},Va._defaultState),this.selectedAddress=null,this.chainId=null,this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this.on("connect",()=>{this._state.isConnected=!0});const s=u=>{const{method:d,params:c}=u;d===Dd.ACCOUNTS_CHANGED?this._handleAccountsChanged(c):d===Dd.UNLOCK_STATE_CHANGED?this._handleUnlockStateChanged(c):d===Dd.CHAIN_CHANGED&&this._handleChainChanged(c)};this.jsonRpcConnectionEvents.on("notification",s)}isConnected(){return this._state.isConnected}async _initializeState(){try{const{accounts:t,chainId:r,isUnlocked:i}=await this.request({method:cM.GET_PROVIDER_STATE,params:[]});this.emit("connect",{chainId:r}),this._handleChainChanged({chainId:r}),this._handleUnlockStateChanged({accounts:t,isUnlocked:i}),this._handleAccountsChanged(t)}catch(t){xt.error("Torus: Failed to get initial state. Please report this bug.",t)}finally{xt.info("initialized provider state"),this._state.initialized=!0,this.emit("_initialized")}}_rpcRequest(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r;const s=t;if(!Array.isArray(s)){if(s.jsonrpc||(s.jsonrpc="2.0"),s.method==="solana_accounts"||s.method==="solana_requestAccounts")a=(u,d)=>{this._handleAccountsChanged(d.result||[],s.method==="solana_accounts",i),r(u,d)};else if(s.method==="wallet_getProviderState"){this._rpcEngine.handle(t,a);return}}this.tryWindowHandle(s,a)}_handleConnect(t){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:t}),xt.debug(Pn.info.connected(t)))}_handleDisconnect(t,r){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){this._state.isConnected=!1;let i;t?(i=new hn.EthereumRpcError(1013,r||Pn.errors.disconnected()),xt.debug(i)):(i=new hn.EthereumRpcError(1011,r||Pn.errors.permanentlyDisconnected()),xt.error(i),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",i)}}_handleAccountsChanged(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=t;Array.isArray(a)||(xt.error("Torus: Received non-array accounts parameter. Please report this bug.",a),a=[]);for(const s of t)if(typeof s!="string"){xt.error("Torus: Received non-string account. Please report this bug.",t),a=[];break}PM(this._state.accounts,a)||(r&&Array.isArray(this._state.accounts)&&this._state.accounts.length>0&&!i&&xt.error('Torus: "solana_accounts" unexpectedly updated accounts. Please report this bug.',a),this._state.accounts=a,this.emit("accountsChanged",a)),this.selectedAddress!==a[0]&&(this.selectedAddress=a[0]||null)}_handleChainChanged(){let{chainId:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!t){xt.error("Torus: Received invalid network parameters. Please report this bug.",{chainId:t});return}t==="loading"?this._handleDisconnect(!0):(this._handleConnect(t),t!==this.chainId&&(this.chainId=t,this._state.initialized&&this.emit("chainChanged",this.chainId)))}_handleUnlockStateChanged(){let{accounts:t,isUnlocked:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof r!="boolean"){xt.error("Torus: Received invalid isUnlocked parameter. Please report this bug.",{isUnlocked:r});return}r!==this._state.isUnlocked&&(this._state.isUnlocked=r,this._handleAccountsChanged(t||[]))}}ee._defineProperty(Va,"_defaultState",{accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1,hasEmittedConnection:!1});function Zb(e){return new Promise((t,r)=>{try{const i=document.createElement("img");i.onload=()=>t(!0),i.onerror=()=>t(!1),i.src=e}catch(i){r(i)}})}const qM=e=>{const{document:t}=e,r=t.querySelector('head > meta[property="og:site_name"]');if(r)return r.content;const i=t.querySelector('head > meta[name="title"]');return i?i.content:t.title&&t.title.length>0?t.title:e.location.hostname};async function HM(e){try{const{document:t}=e;let r=t.querySelector('head > link[rel="shortcut icon"]');return r&&await Zb(r.href)||(r=Array.from(t.querySelectorAll('head > link[rel="icon"]')).find(i=>!!i.href),r&&await Zb(r.href))?r.href:""}catch{return""}}const WM=async()=>({name:qM(window),icon:await HM(window)});function Kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Fd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(i){ee._defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}const zM=["send_transaction","sign_transaction","sign_all_transactions","sign_message","connect"],GM=[Rn.SET_PROVIDER],VM=FM("localStorage");(async function(){try{if(typeof document>"u")return;const t=document.createElement("link"),{torusUrl:r}=await pE("production");t.href=`${r}/frame`,t.crossOrigin="anonymous",t.type="text/html",t.rel="prefetch",t.relList&&t.relList.supports&&t.relList.supports("prefetch")&&document.head.appendChild(t)}catch(t){xt.warn(t)}})();class ZM{constructor(){let{modalZIndex:t=99999}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ee._defineProperty(this,"isInitialized",void 0),ee._defineProperty(this,"torusAlert",void 0),ee._defineProperty(this,"modalZIndex",void 0),ee._defineProperty(this,"alertZIndex",void 0),ee._defineProperty(this,"requestedLoginProvider",void 0),ee._defineProperty(this,"provider",void 0),ee._defineProperty(this,"communicationProvider",void 0),ee._defineProperty(this,"dappStorageKey",void 0),ee._defineProperty(this,"isTopupHidden",!1),ee._defineProperty(this,"torusAlertContainer",void 0),ee._defineProperty(this,"torusUrl",void 0),ee._defineProperty(this,"torusIframe",void 0),ee._defineProperty(this,"styleLink",void 0),this.torusUrl="",this.isInitialized=!1,this.requestedLoginProvider=null,this.modalZIndex=t,this.alertZIndex=t+1e3,this.dappStorageKey=""}get isLoggedIn(){return this.communicationProvider?this.communicationProvider.isLoggedIn:!1}async init(){let{buildEnv:t=hE.PRODUCTION,enableLogging:r=!1,network:i,showTorusButton:a=!1,useLocalStorage:s=!1,buttonPosition:u=Ro.BOTTOM_LEFT,apiKey:d="torus-default",extraParams:c={},whiteLabel:l}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.isInitialized)throw new Error("Already initialized");const{torusUrl:h,logLevel:g}=await pE(t);xt.enableAll(),xt.info(h,"url loaded"),xt.info(`Solana Embed Version :${CM}`),this.torusUrl=h,xt.setDefaultLevel(g),r?xt.enableAll():xt.disableAll();const b=this.handleDappStorageKey(s),_=new URL(h);_.pathname.endsWith("/")?_.pathname+="frame":_.pathname+="/frame";const T=new URLSearchParams;b&&T.append("dappStorageKey",b),T.append("origin",window.location.origin),_.hash=T.toString(),this.torusIframe=Po(`<iframe
107
107
  id="torusIframe"
108
108
  class="torusIframe"
109
- src="${y.href}"
109
+ src="${_.href}"
110
110
  style="display: none; position: fixed; top: 0; right: 0; width: 100%;
111
111
  height: 100%; border: none; border-radius: 0; z-index: ${this.modalZIndex.toString()}"
112
- ></iframe>`),this.torusAlertContainer=Po(`<div id="torusAlertContainer" style="display:none; z-index: ${this.alertZIndex.toString()}"></div>`),this.styleLink=Po(`<link href="${h}/css/widget.css" rel="stylesheet" type="text/css">`);const k=async()=>new Promise((E,I)=>{try{window.document.head.appendChild(this.styleLink),window.document.body.appendChild(this.torusIframe),window.document.body.appendChild(this.torusAlertContainer),this.torusIframe.addEventListener("load",async()=>{const v=await qM();this.torusIframe.contentWindow.postMessage({buttonPosition:f,apiKey:d,network:i,dappMetadata:v,extraParams:c,whiteLabel:l},y.origin),await this._setupWeb3({torusUrl:h}),a&&this.showTorusButton(),l!=null&&l.topupHide?this.isTopupHidden=l.topupHide:this.hideTorusButton(),this.isInitialized=!0,window.torus=this,E()})}catch(v){I(v)}});await fE(),await k()}async login(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.isInitialized)throw new Error("Call init() first");try{this.requestedLoginProvider=t.loginProvider||null,this.requestedLoginProvider||this.communicationProvider._displayIframe({isFull:!0});const r=await new Promise((i,a)=>{this.provider._rpcRequest({method:"solana_requestAccounts",params:[this.requestedLoginProvider,t.login_hint]},fh(i,a))});if(Array.isArray(r)&&r.length>0)return r;throw new Error("Login failed")}catch(r){throw xt.error("login failed",r),r}finally{this.communicationProvider.isIFrameFullScreen&&this.communicationProvider._displayIframe()}}async loginWithPrivateKey(t){if(!this.isInitialized)throw new Error("Call init() first");const{privateKey:r,userInfo:i}=t,{success:a}=await this.communicationProvider.request({method:"login_with_private_key",params:{privateKey:r,userInfo:i}});if(!a)throw new Error("Login Failed")}async logout(){if(!this.communicationProvider.isLoggedIn)throw new Error("Not logged in");await this.communicationProvider.request({method:Rn.LOGOUT,params:[]}),this.requestedLoginProvider=null}async cleanUp(){this.communicationProvider.isLoggedIn&&await this.logout(),this.clearInit()}clearInit(){function t(r){return r instanceof Element||r instanceof Document}t(this.styleLink)&&window.document.body.contains(this.styleLink)&&(this.styleLink.remove(),this.styleLink=void 0),t(this.torusIframe)&&window.document.body.contains(this.torusIframe)&&(this.torusIframe.remove(),this.torusIframe=void 0),t(this.torusAlertContainer)&&window.document.body.contains(this.torusAlertContainer)&&(this.torusAlert=void 0,this.torusAlertContainer.remove(),this.torusAlertContainer=void 0),this.isInitialized=!1}hideTorusButton(){this.communicationProvider.hideTorusButton()}showTorusButton(){this.communicationProvider.showTorusButton()}async setProvider(t){await this.communicationProvider.request({method:Rn.SET_PROVIDER,params:Bd({},t)})}async showWallet(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=await this.communicationProvider.request({method:Rn.WALLET_INSTANCE_ID,params:[]}),a=t?`/${t}`:"",s=new URL(`${this.torusUrl}/wallet${a}`);s.searchParams.append("instanceId",i),Object.keys(r).forEach(d=>{s.searchParams.append(d,r[d])}),this.dappStorageKey&&(s.hash=`#dappStorageKey=${this.dappStorageKey}`),new uE({url:s,features:Ia($M)}).open()}async getUserInfo(){return await this.communicationProvider.request({method:Rn.USER_INFO,params:[]})}async initiateTopup(t,r){if(!this.isInitialized)throw new Error("Torus is not initialized");const i=lf();return this.communicationProvider._handleWindow(i),await this.communicationProvider.request({method:Rn.TOPUP,params:{provider:t,params:r,windowId:i}})}async getAccounts(){return await this.provider.request({method:"getAccounts",params:[]})}async sendTransaction(t){const r=df(t),i=r?t.serialize({requireAllSignatures:!1}).toString("hex"):ee.dist.Buffer.from(t.serialize()).toString("hex");return await this.provider.request({method:"send_transaction",params:{message:i,isLegacyTransaction:r}})}async signAndSendTransaction(t,r){const i=df(t),a=i?t.serialize({requireAllSignatures:!1}).toString("hex"):ee.dist.Buffer.from(t.serialize()).toString("hex");return{signature:await this.provider.request({method:"send_transaction",params:{message:a,options:r,isLegacyTransaction:i}})}}async signTransaction(t){const r=df(t),i=r?t.serializeMessage().toString("hex"):ee.dist.Buffer.from(t.message.serialize()).toString("hex"),a=await this.provider.request({method:"sign_transaction",params:{message:i,messageOnly:!0,isLegacyTransaction:r}}),s=JSON.parse(a),f={publicKey:new ee.PublicKey(s.publicKey),signature:ee.dist.Buffer.from(s.signature,"hex")};return t.addSignature(f.publicKey,f.signature),t}async signAllTransactions(t){let r;const i=t.map(f=>(r=df(f),r?f.serializeMessage().toString("hex"):ee.dist.Buffer.from(f.message.serialize()).toString("hex"))),s=(await this.provider.request({method:"sign_all_transactions",params:{message:i,messageOnly:!0,isLegacyTransaction:r}})).map(f=>{const d=JSON.parse(f);return{publicKey:new ee.PublicKey(d.publicKey),signature:ee.dist.Buffer.from(d.signature,"hex")}});return t.forEach((f,d)=>(f.addSignature(s[d].publicKey,s[d].signature),f)),t}async signMessage(t){return await this.provider.request({method:"sign_message",params:{data:t}})}async getGaslessPublicKey(){return await this.provider.request({method:"get_gasless_public_key",params:[]})}handleDappStorageKey(t){const r=`${dp.localStorageKeyPrefix}${window.location.hostname}`;let i="";if(zM&&t){const a=window.localStorage.getItem(r);if(a)i=a;else{const s=`torus-app-${lf()}`;window.localStorage.setItem(r,s),i=s}}return this.dappStorageKey=i,i}async _setupWeb3(t){xt.info("setupWeb3 running");const r=new Lb({name:"embed_torus",target:"iframe_torus",targetWindow:this.torusIframe.contentWindow}),i=new Lb({name:"embed_communication",target:"iframe_communication",targetWindow:this.torusIframe.contentWindow}),a=new Va(r,{}),s=new Eu(i,{});a.tryWindowHandle=(l,h)=>{const _=l;if(!Array.isArray(_)&&HM.includes(_.method)){if(!this.communicationProvider.isLoggedIn)throw new Error("User Not Logged In");const b=lf();s._handleWindow(b,{target:"_blank",features:Ia(aE)}),_.windowId=b}a._rpcEngine.handle(_,h)},s.tryWindowHandle=(l,h)=>{const _=l;if(!Array.isArray(_)&&WM.includes(_.method)){const b=lf();s._handleWindow(b,{target:"_blank",features:Ia(BM)}),_.params.windowId=b}s._rpcEngine.handle(_,h)};const f=l=>{const h=a[l],_=this;a[l]=function(y,T){const{method:k,params:E=[]}=y;if(k==="solana_requestAccounts"){if(!T)return _.login({loginProvider:E[0]});_.login({loginProvider:E[0]}).then(I=>T(null,I)).catch(I=>T(I))}return h.apply(this,[y,T])}};f("request"),f("sendAsync"),f("send");const d=new Proxy(a,{deleteProperty:()=>!0}),c=new Proxy(s,{deleteProperty:()=>!0});this.provider=d,this.communicationProvider=c,await Promise.all([a._initializeState(),s._initializeState(Bd(Bd({},t),{},{dappStorageKey:this.dappStorageKey,torusAlertContainer:this.torusAlertContainer,torusIframe:this.torusIframe}))]),xt.debug("Torus - injected provider")}}exports.BUTTON_POSITION=Ro;exports.LOGIN_PROVIDER=bf;exports.TORUS_BUILD_ENV=iE;exports.TorusInPageProvider=Va;exports.default=GM;
112
+ ></iframe>`),this.torusAlertContainer=Po(`<div id="torusAlertContainer" style="display:none; z-index: ${this.alertZIndex.toString()}"></div>`),this.styleLink=Po(`<link href="${h}/css/widget.css" rel="stylesheet" type="text/css">`);const k=async()=>new Promise((E,R)=>{try{window.document.head.appendChild(this.styleLink),window.document.body.appendChild(this.torusIframe),window.document.body.appendChild(this.torusAlertContainer),this.torusIframe.addEventListener("load",async()=>{const v=await WM();this.torusIframe.contentWindow.postMessage({buttonPosition:u,apiKey:d,network:i,dappMetadata:v,extraParams:c,whiteLabel:l},_.origin),await this._setupWeb3({torusUrl:h}),a&&this.showTorusButton(),l!=null&&l.topupHide?this.isTopupHidden=l.topupHide:this.hideTorusButton(),this.isInitialized=!0,window.torus=this,E()})}catch(v){R(v)}});await _E(),await k()}async login(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.isInitialized)throw new Error("Call init() first");try{this.requestedLoginProvider=t.loginProvider||null,this.requestedLoginProvider||this.communicationProvider._displayIframe({isFull:!0});const r=await new Promise((i,a)=>{this.provider._rpcRequest({method:"solana_requestAccounts",params:[this.requestedLoginProvider,t.login_hint]},hh(i,a))});if(Array.isArray(r)&&r.length>0)return r;throw new Error("Login failed")}catch(r){throw xt.error("login failed",r),r}finally{this.communicationProvider.isIFrameFullScreen&&this.communicationProvider._displayIframe()}}async loginWithPrivateKey(t){if(!this.isInitialized)throw new Error("Call init() first");const{privateKey:r,userInfo:i}=t,{success:a}=await this.communicationProvider.request({method:"login_with_private_key",params:{privateKey:r,userInfo:i}});if(!a)throw new Error("Login Failed")}async logout(){if(!this.communicationProvider.isLoggedIn)throw new Error("Not logged in");await this.communicationProvider.request({method:Rn.LOGOUT,params:[]}),this.requestedLoginProvider=null}async cleanUp(){this.communicationProvider.isLoggedIn&&await this.logout(),this.clearInit()}clearInit(){function t(r){return r instanceof Element||r instanceof Document}t(this.styleLink)&&window.document.body.contains(this.styleLink)&&(this.styleLink.remove(),this.styleLink=void 0),t(this.torusIframe)&&window.document.body.contains(this.torusIframe)&&(this.torusIframe.remove(),this.torusIframe=void 0),t(this.torusAlertContainer)&&window.document.body.contains(this.torusAlertContainer)&&(this.torusAlert=void 0,this.torusAlertContainer.remove(),this.torusAlertContainer=void 0),this.isInitialized=!1}hideTorusButton(){this.communicationProvider.hideTorusButton()}showTorusButton(){this.communicationProvider.showTorusButton()}async setProvider(t){await this.communicationProvider.request({method:Rn.SET_PROVIDER,params:Fd({},t)})}async showWallet(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=await this.communicationProvider.request({method:Rn.WALLET_INSTANCE_ID,params:[]}),a=t?`/${t}`:"",s=new URL(`${this.torusUrl}/wallet${a}`);s.searchParams.append("instanceId",i),Object.keys(r).forEach(d=>{s.searchParams.append(d,r[d])}),this.dappStorageKey&&(s.hash=`#dappStorageKey=${this.dappStorageKey}`),new bE({url:s,features:Ia(DM)}).open()}async getUserInfo(){return await this.communicationProvider.request({method:Rn.USER_INFO,params:[]})}async initiateTopup(t,r){if(!this.isInitialized)throw new Error("Torus is not initialized");const i=cu();return this.communicationProvider._handleWindow(i),await this.communicationProvider.request({method:Rn.TOPUP,params:{provider:t,params:r,windowId:i}})}async getAccounts(){return await this.provider.request({method:"getAccounts",params:[]})}async sendTransaction(t){const r=lu(t),i=r?t.serialize({requireAllSignatures:!1}).toString("hex"):ee.dist.Buffer.from(t.serialize()).toString("hex");return await this.provider.request({method:"send_transaction",params:{message:i,isLegacyTransaction:r}})}async signAndSendTransaction(t,r){const i=lu(t),a=i?t.serialize({requireAllSignatures:!1}).toString("hex"):ee.dist.Buffer.from(t.serialize()).toString("hex");return{signature:await this.provider.request({method:"send_transaction",params:{message:a,options:r,isLegacyTransaction:i}})}}async signTransaction(t){const r=lu(t),i=r?t.serializeMessage().toString("hex"):ee.dist.Buffer.from(t.message.serialize()).toString("hex"),a=await this.provider.request({method:"sign_transaction",params:{message:i,messageOnly:!0,isLegacyTransaction:r}}),s=JSON.parse(a),u={publicKey:new ee.PublicKey(s.publicKey),signature:ee.dist.Buffer.from(s.signature,"hex")};return t.addSignature(u.publicKey,u.signature),t}async signAllTransactions(t){let r;const i=t.map(u=>(r=lu(u),r?u.serializeMessage().toString("hex"):ee.dist.Buffer.from(u.message.serialize()).toString("hex"))),s=(await this.provider.request({method:"sign_all_transactions",params:{message:i,messageOnly:!0,isLegacyTransaction:r}})).map(u=>{const d=JSON.parse(u);return{publicKey:new ee.PublicKey(d.publicKey),signature:ee.dist.Buffer.from(d.signature,"hex")}});return t.forEach((u,d)=>(u.addSignature(s[d].publicKey,s[d].signature),u)),t}async signMessage(t){return await this.provider.request({method:"sign_message",params:{data:t}})}async getGaslessPublicKey(){return await this.provider.request({method:"get_gasless_public_key",params:[]})}handleDappStorageKey(t){const r=`${_p.localStorageKeyPrefix}${window.location.hostname}`;let i="";if(VM&&t){const a=window.localStorage.getItem(r);if(a)i=a;else{const s=`torus-app-${cu()}`;window.localStorage.setItem(r,s),i=s}}return this.dappStorageKey=i,i}async _setupWeb3(t){xt.info("setupWeb3 running");const r=new kb({name:"embed_torus",target:"iframe_torus",targetWindow:this.torusIframe.contentWindow}),i=new kb({name:"embed_communication",target:"iframe_communication",targetWindow:this.torusIframe.contentWindow}),a=new Va(r,{}),s=new Ef(i,{});a.tryWindowHandle=(l,h)=>{const g=l;if(!Array.isArray(g)&&zM.includes(g.method)){if(!this.communicationProvider.isLoggedIn)throw new Error("User Not Logged In");const b=cu();s._handleWindow(b,{target:"_blank",features:Ia(gE)}),g.windowId=b}a._rpcEngine.handle(g,h)},s.tryWindowHandle=(l,h)=>{const g=l;if(!Array.isArray(g)&&GM.includes(g.method)){const b=cu();s._handleWindow(b,{target:"_blank",features:Ia(xM)}),g.params.windowId=b}s._rpcEngine.handle(g,h)};const u=l=>{const h=a[l],g=this;a[l]=function(_,T){const{method:k,params:E=[]}=_;if(k==="solana_requestAccounts"){if(!T)return g.login({loginProvider:E[0]});g.login({loginProvider:E[0]}).then(R=>T(null,R)).catch(R=>T(R))}return h.apply(this,[_,T])}};u("request"),u("sendAsync"),u("send");const d=new Proxy(a,{deleteProperty:()=>!0}),c=new Proxy(s,{deleteProperty:()=>!0});this.provider=d,this.communicationProvider=c,await Promise.all([a._initializeState(),s._initializeState(Fd(Fd({},t),{},{dappStorageKey:this.dappStorageKey,torusAlertContainer:this.torusAlertContainer,torusIframe:this.torusIframe}))]),xt.debug("Torus - injected provider")}}exports.BUTTON_POSITION=Ro;exports.LOGIN_PROVIDER=_u;exports.TORUS_BUILD_ENV=hE;exports.TorusInPageProvider=Va;exports.default=ZM;