@wormhole-foundation/wormhole-connect 3.0.0-beta.1-development → 3.0.0-beta.3-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 (41) hide show
  1. package/dist/main.js +30 -30
  2. package/dist/src/config/ui.d.ts +1 -0
  3. package/dist/src/config/ui.d.ts.map +1 -1
  4. package/dist/src/hooks/useFetchQuotes.d.ts.map +1 -1
  5. package/dist/src/hooks/useFetchSupportedRoutes.d.ts.map +1 -1
  6. package/lib/{aptos-Da6iqpC-.js → aptos-BvHeL_GY.js} +1 -1
  7. package/lib/{aptos-Dz4Js3_d.mjs → aptos-CWlICqrN.mjs} +1 -1
  8. package/lib/{ccip-Ceg_B70t.mjs → ccip-BWwNh7Cy.mjs} +1 -1
  9. package/lib/{ccip-Bb-IPrNA.js → ccip-lZx1JcXV.js} +1 -1
  10. package/lib/{constants-Ba9GwEM1.mjs → constants-B7vln_3S.mjs} +3 -3
  11. package/lib/constants-CYn5EZsI.js +1 -0
  12. package/lib/{evm-DarNu22s.mjs → evm-8QrZ2Hru.mjs} +4 -4
  13. package/lib/{evm-1T5rGzcO.js → evm-NSPNbX19.js} +3 -3
  14. package/lib/hosted.js +1 -1
  15. package/lib/hosted.mjs +1 -1
  16. package/lib/{index-BHMN5Px3.mjs → index-7TXHMJ1V.mjs} +1 -1
  17. package/lib/{index-Cda4HnP1.mjs → index-BAHgvqy3.mjs} +1 -1
  18. package/lib/{index-Bn1o04G7.js → index-Bn2HXKJ4.js} +4 -4
  19. package/lib/{index-BTNmmLkb.js → index-C1_un59H.js} +1 -1
  20. package/lib/{index-VhcNuaP6.js → index-CIh7tJsi.js} +1 -1
  21. package/lib/{index-DvxmZnxH.mjs → index-Cf_Tpbyo.mjs} +1 -1
  22. package/lib/{index-B40ktVOy.js → index-CffzHeMT.js} +1 -1
  23. package/lib/{index-pNqQSm4p.mjs → index-DiulRNyF.mjs} +103 -85
  24. package/lib/{index.es-rEir51oG.mjs → index.es-C8hHvcxp.mjs} +2 -2
  25. package/lib/{index.es-_N4sKEIC.js → index.es-DWXvLB7p.js} +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/index.mjs +1 -1
  28. package/lib/{solana-SQhnN3yB.mjs → solana-8Asmn6g_.mjs} +3 -3
  29. package/lib/{solana-CrjSp_Zk.js → solana-BVfhsFxw.js} +1 -1
  30. package/lib/{solanaEmbed.esm-B7IRXgnI.js → solanaEmbed.esm-BSBPPQdh.js} +1 -1
  31. package/lib/{solanaEmbed.esm-Din0Z51P.mjs → solanaEmbed.esm-Bv-y4R2t.mjs} +2 -2
  32. package/lib/src/config/ui.d.ts +1 -0
  33. package/lib/src/config/ui.d.ts.map +1 -1
  34. package/lib/src/hooks/useFetchQuotes.d.ts.map +1 -1
  35. package/lib/src/hooks/useFetchSupportedRoutes.d.ts.map +1 -1
  36. package/lib/{sui-C7KPm3kD.js → sui-ByGBX_7Z.js} +1 -1
  37. package/lib/{sui-BePFnRSc.mjs → sui-CI_Sn1M4.mjs} +1 -1
  38. package/lib/{tokens-CChVRIuE.js → tokens-BcWAlkcp.js} +1 -1
  39. package/lib/{tokens-CyKAZUN-.mjs → tokens-D9jV-Q5b.mjs} +2 -2
  40. package/package.json +1 -1
  41. package/lib/constants-BqqwmYZc.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./address-RcMobNYE.js"),gl=require("./dijkstra-CtFxn7S9.js"),te=require("./index-Bn1o04G7.js"),P=require("./index-Bogu114a.js"),_=require("./index-BL4H4RbP.js"),W=require("./index-DyE-3pz1.js");let yl=class extends _.r{constructor(e){super(e),this.events=new te.eventsExports.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(_.formatJsonRpcRequest(e.method,e.params||[],e.id||_.getBigIntRpcId().toString()),t)}async requestStrict(e,t){return new Promise(async(i,n)=>{if(!this.connection.connected)try{await this.open()}catch(s){n(s)}this.events.on(`${e.id}`,s=>{_.isJsonRpcError(s)?n(s.error):i(s.result)});try{await this.connection.send(e,t)}catch(s){n(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),_.isJsonRpcResponse(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};var ml=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],i=0;i<r.rangeCount;i++)t.push(r.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||t.forEach(function(n){r.addRange(n)}),e&&e.focus()}},vl=ml,Dn={"text/plain":"Text","text/html":"Url",default:"Text"},wl="Copy to clipboard: #{key}, Enter";function _l(r){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function bl(r,e){var t,i,n,s,o,a,c=!1;e||(e={}),t=e.debug||!1;try{n=vl(),s=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=r,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),e.format)if(u.preventDefault(),typeof u.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=Dn[e.format]||Dn.default;window.clipboardData.setData(h,r)}else u.clipboardData.clearData(),u.clipboardData.setData(e.format,r);e.onCopy&&(u.preventDefault(),e.onCopy(u.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),o.addRange(s);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");c=!0}catch(u){t&&console.error("unable to copy using execCommand: ",u),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),i=_l("message"in e?e.message:wl),window.prompt(i,r)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),a&&document.body.removeChild(a),n()}return c}var El=bl,Sl={}.toString,rn=Array.isArray||function(r){return Sl.call(r)=="[object Array]"},Il=te.requireElliptic(),nn={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});var ko=Q.getLocalStorage=Vo=Q.getLocalStorageOrThrow=Ko=Q.getCrypto=zo=Q.getCryptoOrThrow=jo=Q.getLocation=Uo=Q.getLocationOrThrow=Bo=Q.getNavigator=qo=Q.getNavigatorOrThrow=Fo=Q.getDocument=Do=Q.getDocumentOrThrow=Lo=Q.getFromWindowOrThrow=Mo=Q.getFromWindow=void 0;function wt(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}var Mo=Q.getFromWindow=wt;function qt(r){const e=wt(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}var Lo=Q.getFromWindowOrThrow=qt;function xl(){return qt("document")}var Do=Q.getDocumentOrThrow=xl;function Pl(){return wt("document")}var Fo=Q.getDocument=Pl;function Al(){return qt("navigator")}var qo=Q.getNavigatorOrThrow=Al;function Rl(){return wt("navigator")}var Bo=Q.getNavigator=Rl;function Nl(){return qt("location")}var Uo=Q.getLocationOrThrow=Nl;function Tl(){return wt("location")}var jo=Q.getLocation=Tl;function Cl(){return qt("crypto")}var zo=Q.getCryptoOrThrow=Cl;function Ol(){return wt("crypto")}var Ko=Q.getCrypto=Ol;function $l(){return qt("localStorage")}var Vo=Q.getLocalStorageOrThrow=$l;function kl(){return wt("localStorage")}ko=Q.getLocalStorage=kl;Object.defineProperty(nn,"__esModule",{value:!0});var Wo=nn.getWindowMetadata=void 0;const Fn=Q;function Ml(){let r,e;try{r=Fn.getDocumentOrThrow(),e=Fn.getLocationOrThrow()}catch{return null}function t(){const h=r.getElementsByTagName("link"),p=[];for(let d=0;d<h.length;d++){const f=h[d],g=f.getAttribute("rel");if(g&&g.toLowerCase().indexOf("icon")>-1){const y=f.getAttribute("href");if(y)if(y.toLowerCase().indexOf("https:")===-1&&y.toLowerCase().indexOf("http:")===-1&&y.indexOf("//")!==0){let m=e.protocol+"//"+e.host;if(y.indexOf("/")===0)m+=y;else{const v=e.pathname.split("/");v.pop();const b=v.join("/");m+=b+"/"+y}p.push(m)}else if(y.indexOf("//")===0){const m=e.protocol+y;p.push(m)}else p.push(y)}}return p}function i(...h){const p=r.getElementsByTagName("meta");for(let d=0;d<p.length;d++){const f=p[d],g=["itemprop","property","name"].map(y=>f.getAttribute(y)).filter(y=>y?h.includes(y):!1);if(g.length&&g){const y=f.getAttribute("content");if(y)return y}}return""}function n(){let h=i("name","og:site_name","og:title","twitter:title");return h||(h=r.title),h}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),c=e.origin,l=t();return{description:a,url:c,icons:l,name:o}}Wo=nn.getWindowMetadata=Ml;var Ll=function(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var i=Array(r),n=0,e=0;e<t;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i},Dl=function(){function r(e,t,i){this.name=e,this.version=t,this.os=i,this.type="browser"}return r}(),Fl=function(){function r(e){this.version=e,this.type="node",this.name="node",this.os=E.dist.process.platform}return r}(),ql=function(){function r(e,t,i,n){this.name=e,this.version=t,this.os=i,this.bot=n,this.type="bot-device"}return r}(),Bl=function(){function r(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return r}(),Ul=function(){function r(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return r}(),jl=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,zl=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,qn=3,Kl=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",jl]],Bn=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Vl(r){return r?Un(r):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Ul:typeof navigator<"u"?Un(navigator.userAgent):Jl()}function Wl(r){return r!==""&&Kl.reduce(function(e,t){var i=t[0],n=t[1];if(e)return e;var s=n.exec(r);return!!s&&[i,s]},!1)}function Un(r){var e=Wl(r);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new Bl;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<qn&&(n=Ll(n,Gl(qn-n.length))):n=[];var s=n.join("."),o=Hl(r),a=zl.exec(r);return a&&a[1]?new ql(t,s,o,a[1]):new Dl(t,s,o)}function Hl(r){for(var e=0,t=Bn.length;e<t;e++){var i=Bn[e],n=i[0],s=i[1],o=s.exec(r);if(o)return n}return null}function Jl(){var r=typeof E.dist.process<"u"&&E.dist.process.version;return r?new Fl(E.dist.process.version.slice(1)):null}function Gl(r){for(var e=[],t=0;t<r;t++)e.push("0");return e}function sn(r){return Vl(r)}function Vr(){const r=sn();return r&&r.os?r.os:void 0}function Ho(){const r=Vr();return r?r.toLowerCase().includes("android"):!1}function Jo(){const r=Vr();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Yl(){return Vr()?Ho()||Jo():!1}function Go(){const r=sn();return r&&r.name?r.name.toLowerCase()==="node":!1}function Ql(){return!Go()&&!!Yo()}const Xl=Mo,Zl=Lo,eu=Do,tu=Fo,ru=qo,Yo=Bo,iu=Uo,nu=jo,su=zo,ou=Ko,au=Vo,Wr=ko;function cu(){return Wo()}function lu(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function uu(r){return typeof r=="string"?r:JSON.stringify(r)}const Qo=lu,Xo=uu;function Zo(r,e){const t=Xo(e),i=Wr();i&&i.setItem(r,t)}function hu(r){let e=null,t=null;const i=Wr();return i&&(t=i.getItem(r)),e=t&&Qo(t),e}function du(r){const e=Wr();e&&e.removeItem(r)}const ea="WALLETCONNECT_DEEPLINK_CHOICE";function fu(r,e){const t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function pu(r){const e=r.href.split("?")[0];Zo(ea,Object.assign(Object.assign({},r),{href:e}))}function ta(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function gu(r,e){let t=r;return e&&(t=e.map(i=>ta(r,i)).filter(Boolean)),t}const ra="https://registry.walletconnect.com";function yu(){return ra+"/api/v2/wallets"}function mu(){return ra+"/api/v2/dapps"}function ia(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function vu(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>ia(t,e))}const wu=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:sn,detectOS:Vr,formatIOSMobile:fu,formatMobileRegistry:vu,formatMobileRegistryEntry:ia,getClientMeta:cu,getCrypto:ou,getCryptoOrThrow:su,getDappRegistryUrl:mu,getDocument:tu,getDocumentOrThrow:eu,getFromWindow:Xl,getFromWindowOrThrow:Zl,getLocal:hu,getLocalStorage:Wr,getLocalStorageOrThrow:au,getLocation:nu,getLocationOrThrow:iu,getMobileLinkRegistry:gu,getMobileRegistryEntry:ta,getNavigator:Yo,getNavigatorOrThrow:ru,getWalletRegistryUrl:yu,isAndroid:Ho,isBrowser:Ql,isIOS:Jo,isMobile:Yl,isNode:Go,mobileLinkChoiceKey:ea,removeLocal:du,safeJsonParse:Qo,safeJsonStringify:Xo,saveMobileLinkInfo:pu,setLocal:Zo},Symbol.toStringTag,{value:"Module"})),_u=E.getAugmentedNamespace(wu);var hr={},bu=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},na={},ct={},Eu=rn;function Su(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},r.foo()===42}catch{return!1}}j.TYPED_ARRAY_SUPPORT=Su();var jn=j.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function j(r,e,t){return!j.TYPED_ARRAY_SUPPORT&&!(this instanceof j)?new j(r,e,t):typeof r=="number"?sa(this,r):Tu(this,r,e,t)}j.TYPED_ARRAY_SUPPORT&&(j.prototype.__proto__=Uint8Array.prototype,j.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&j[Symbol.species]===j&&Object.defineProperty(j,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function on(r){if(r>=jn)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jn.toString(16)+" bytes");return r|0}function Iu(r){return r!==r}function Tt(r,e){var t;return j.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=j.prototype):(t=r,t===null&&(t=new j(e)),t.length=e),t}function sa(r,e){var t=Tt(r,e<0?0:on(e)|0);if(!j.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function xu(r,e){var t=aa(e)|0,i=Tt(r,t),n=i.write(e);return n!==t&&(i=i.slice(0,n)),i}function $i(r,e){for(var t=e.length<0?0:on(e.length)|0,i=Tt(r,t),n=0;n<t;n+=1)i[n]=e[n]&255;return i}function Pu(r,e,t,i){if(t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+(i||0))throw new RangeError("'length' is out of bounds");var n;return t===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,i),j.TYPED_ARRAY_SUPPORT?n.__proto__=j.prototype:n=$i(r,n),n}function Au(r,e){if(j.isBuffer(e)){var t=on(e.length)|0,i=Tt(r,t);return i.length===0||e.copy(i,0,0,t),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Iu(e.length)?Tt(r,0):$i(r,e);if(e.type==="Buffer"&&Array.isArray(e.data))return $i(r,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function oa(r,e){e=e||1/0;for(var t,i=r.length,n=null,s=[],o=0;o<i;++o){if(t=r.charCodeAt(o),t>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function aa(r){if(j.isBuffer(r))return r.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;typeof r!="string"&&(r=""+r);var e=r.length;return e===0?0:oa(r).length}function Ru(r,e,t,i){for(var n=0;n<i&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function Nu(r,e,t,i){return Ru(oa(e,r.length-t),r,t,i)}function Tu(r,e,t,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Pu(r,e,t,i):typeof e=="string"?xu(r,e):Au(r,e)}j.prototype.write=function(e,t,i){t===void 0?(i=this.length,t=0):i===void 0&&typeof t=="string"?(i=this.length,t=0):isFinite(t)&&(t=t|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-t;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Nu(this,e,t,i)};j.prototype.slice=function(e,t){var i=this.length;e=~~e,t=t===void 0?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e);var n;if(j.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=j.prototype;else{var s=t-e;n=new j(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};j.prototype.copy=function(e,t,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var s=n-i,o;if(this===e&&i<t&&t<n)for(o=s-1;o>=0;--o)e[o+t]=this[o+i];else if(s<1e3||!j.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+t]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),t);return s};j.prototype.fill=function(e,t,i){if(typeof e=="string"){if(typeof t=="string"?(t=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s<i;++s)this[s]=e;else{var o=j.isBuffer(e)?e:new j(e),a=o.length;for(s=0;s<i-t;++s)this[s+t]=o[s%a]}return this};j.concat=function(e,t){if(!Eu(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Tt(null,0);var i;if(t===void 0)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=sa(null,t),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!j.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};j.byteLength=aa;j.prototype._isBuffer=!0;j.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};ct.alloc=function(r){var e=new j(r);return e.fill(0),e};ct.from=function(r){return new j(r)};var be={},an,Cu=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];be.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};be.getSymbolTotalCodewords=function(e){return Cu[e]};be.getBCHDigit=function(r){for(var e=0;r!==0;)e++,r>>>=1;return e};be.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');an=e};be.isKanjiModeEnabled=function(){return typeof an<"u"};be.toSJIS=function(e){return an(e)};var Hr={};(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");var i=t.toLowerCase();switch(i){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},r.from=function(i,n){if(r.isValid(i))return i;try{return e(i)}catch{return n}}})(Hr);function ca(){this.buffer=[],this.length=0}ca.prototype={get:function(r){var e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(var t=0;t<e;t++)this.putBit((r>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Ou=ca,zn=ct;function dr(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=zn.alloc(r*r),this.reservedBit=zn.alloc(r*r)}dr.prototype.set=function(r,e,t,i){var n=r*this.size+e;this.data[n]=t,i&&(this.reservedBit[n]=!0)};dr.prototype.get=function(r,e){return this.data[r*this.size+e]};dr.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};dr.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};var $u=dr,la={};(function(r){var e=be.getSymbolSize;r.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7],c=1;c<n-1;c++)a[c]=a[c-1]-o;return a.push(6),a.reverse()},r.getPositions=function(i){for(var n=[],s=r.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var c=0;c<o;c++)a===0&&c===0||a===0&&c===o-1||a===o-1&&c===0||n.push([s[a],s[c]]);return n}})(la);var ua={},ku=be.getSymbolSize,Kn=7;ua.getPositions=function(e){var t=ku(e);return[[0,0],[t-Kn,0],[0,t-Kn]]};var ha={};(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};r.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},r.from=function(n){return r.isValid(n)?parseInt(n,10):void 0},r.getPenaltyN1=function(n){for(var s=n.size,o=0,a=0,c=0,l=null,u=null,h=0;h<s;h++){a=c=0,l=u=null;for(var p=0;p<s;p++){var d=n.get(h,p);d===l?a++:(a>=5&&(o+=e.N1+(a-5)),l=d,a=1),d=n.get(p,h),d===u?c++:(c>=5&&(o+=e.N1+(c-5)),u=d,c=1)}a>=5&&(o+=e.N1+(a-5)),c>=5&&(o+=e.N1+(c-5))}return o},r.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var c=0;c<s-1;c++){var l=n.get(a,c)+n.get(a,c+1)+n.get(a+1,c)+n.get(a+1,c+1);(l===4||l===0)&&o++}return o*e.N2},r.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,c=0,l=0;l<s;l++){a=c=0;for(var u=0;u<s;u++)a=a<<1&2047|n.get(l,u),u>=10&&(a===1488||a===93)&&o++,c=c<<1&2047|n.get(u,l),u>=10&&(c===1488||c===93)&&o++}return o*e.N3},r.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];var c=Math.abs(Math.ceil(s*100/o/5)-10);return c*e.N4};function t(i,n,s){switch(i){case r.Patterns.PATTERN000:return(n+s)%2===0;case r.Patterns.PATTERN001:return n%2===0;case r.Patterns.PATTERN010:return s%3===0;case r.Patterns.PATTERN011:return(n+s)%3===0;case r.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case r.Patterns.PATTERN101:return n*s%2+n*s%3===0;case r.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case r.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}r.applyMask=function(n,s){for(var o=s.size,a=0;a<o;a++)for(var c=0;c<o;c++)s.isReserved(c,a)||s.xor(c,a,t(n,c,a))},r.getBestMask=function(n,s){for(var o=Object.keys(r.Patterns).length,a=0,c=1/0,l=0;l<o;l++){s(l),r.applyMask(l,n);var u=r.getPenaltyN1(n)+r.getPenaltyN2(n)+r.getPenaltyN3(n)+r.getPenaltyN4(n);r.applyMask(l,n),u<c&&(c=u,a=l)}return a}})(ha);var Jr={},rt=Hr,_r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],br=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Jr.getBlocksCount=function(e,t){switch(t){case rt.L:return _r[(e-1)*4+0];case rt.M:return _r[(e-1)*4+1];case rt.Q:return _r[(e-1)*4+2];case rt.H:return _r[(e-1)*4+3];default:return}};Jr.getTotalCodewordsCount=function(e,t){switch(t){case rt.L:return br[(e-1)*4+0];case rt.M:return br[(e-1)*4+1];case rt.Q:return br[(e-1)*4+2];case rt.H:return br[(e-1)*4+3];default:return}};var da={},Gr={},fa=ct,er=fa.alloc(512),$r=fa.alloc(256);(function(){for(var e=1,t=0;t<255;t++)er[t]=e,$r[e]=t,e<<=1,e&256&&(e^=285);for(t=255;t<512;t++)er[t]=er[t-255]})();Gr.log=function(e){if(e<1)throw new Error("log("+e+")");return $r[e]};Gr.exp=function(e){return er[e]};Gr.mul=function(e,t){return e===0||t===0?0:er[$r[e]+$r[t]]};(function(r){var e=ct,t=Gr;r.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var c=0;c<s.length;c++)o[a+c]^=t.mul(n[a],s[c]);return o},r.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],c=0;c<s.length;c++)o[c]^=t.mul(s[c],a);for(var l=0;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},r.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=r.mul(s,[1,t.exp(o)]);return s}})(da);var Vn=ct,pa=da,Mu=E.bufferPolyfill.Buffer;function cn(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}cn.prototype.initialize=function(e){this.degree=e,this.genPoly=pa.generateECPolynomial(this.degree)};cn.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=Vn.alloc(this.degree),i=Mu.concat([e,t],e.length+this.degree),n=pa.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=Vn.alloc(this.degree);return n.copy(o,s),o}return n};var Lu=cn,ga={},lt={},ln={};ln.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var ze={},ya="[0-9]+",Du="[A-Z $%*+\\-./:]+",sr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";sr=sr.replace(/u/g,"\\u");var Fu="(?:(?![A-Z0-9 $%*+\\-./:]|"+sr+`)(?:.|[\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./address-RcMobNYE.js"),gl=require("./dijkstra-CtFxn7S9.js"),te=require("./index-Bn2HXKJ4.js"),P=require("./index-Bogu114a.js"),_=require("./index-BL4H4RbP.js"),W=require("./index-DyE-3pz1.js");let yl=class extends _.r{constructor(e){super(e),this.events=new te.eventsExports.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(_.formatJsonRpcRequest(e.method,e.params||[],e.id||_.getBigIntRpcId().toString()),t)}async requestStrict(e,t){return new Promise(async(i,n)=>{if(!this.connection.connected)try{await this.open()}catch(s){n(s)}this.events.on(`${e.id}`,s=>{_.isJsonRpcError(s)?n(s.error):i(s.result)});try{await this.connection.send(e,t)}catch(s){n(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),_.isJsonRpcResponse(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};var ml=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],i=0;i<r.rangeCount;i++)t.push(r.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||t.forEach(function(n){r.addRange(n)}),e&&e.focus()}},vl=ml,Dn={"text/plain":"Text","text/html":"Url",default:"Text"},wl="Copy to clipboard: #{key}, Enter";function _l(r){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function bl(r,e){var t,i,n,s,o,a,c=!1;e||(e={}),t=e.debug||!1;try{n=vl(),s=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=r,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),e.format)if(u.preventDefault(),typeof u.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=Dn[e.format]||Dn.default;window.clipboardData.setData(h,r)}else u.clipboardData.clearData(),u.clipboardData.setData(e.format,r);e.onCopy&&(u.preventDefault(),e.onCopy(u.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),o.addRange(s);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");c=!0}catch(u){t&&console.error("unable to copy using execCommand: ",u),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),i=_l("message"in e?e.message:wl),window.prompt(i,r)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),a&&document.body.removeChild(a),n()}return c}var El=bl,Sl={}.toString,rn=Array.isArray||function(r){return Sl.call(r)=="[object Array]"},Il=te.requireElliptic(),nn={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});var ko=Q.getLocalStorage=Vo=Q.getLocalStorageOrThrow=Ko=Q.getCrypto=zo=Q.getCryptoOrThrow=jo=Q.getLocation=Uo=Q.getLocationOrThrow=Bo=Q.getNavigator=qo=Q.getNavigatorOrThrow=Fo=Q.getDocument=Do=Q.getDocumentOrThrow=Lo=Q.getFromWindowOrThrow=Mo=Q.getFromWindow=void 0;function wt(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}var Mo=Q.getFromWindow=wt;function qt(r){const e=wt(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}var Lo=Q.getFromWindowOrThrow=qt;function xl(){return qt("document")}var Do=Q.getDocumentOrThrow=xl;function Pl(){return wt("document")}var Fo=Q.getDocument=Pl;function Al(){return qt("navigator")}var qo=Q.getNavigatorOrThrow=Al;function Rl(){return wt("navigator")}var Bo=Q.getNavigator=Rl;function Nl(){return qt("location")}var Uo=Q.getLocationOrThrow=Nl;function Tl(){return wt("location")}var jo=Q.getLocation=Tl;function Cl(){return qt("crypto")}var zo=Q.getCryptoOrThrow=Cl;function Ol(){return wt("crypto")}var Ko=Q.getCrypto=Ol;function $l(){return qt("localStorage")}var Vo=Q.getLocalStorageOrThrow=$l;function kl(){return wt("localStorage")}ko=Q.getLocalStorage=kl;Object.defineProperty(nn,"__esModule",{value:!0});var Wo=nn.getWindowMetadata=void 0;const Fn=Q;function Ml(){let r,e;try{r=Fn.getDocumentOrThrow(),e=Fn.getLocationOrThrow()}catch{return null}function t(){const h=r.getElementsByTagName("link"),p=[];for(let d=0;d<h.length;d++){const f=h[d],g=f.getAttribute("rel");if(g&&g.toLowerCase().indexOf("icon")>-1){const y=f.getAttribute("href");if(y)if(y.toLowerCase().indexOf("https:")===-1&&y.toLowerCase().indexOf("http:")===-1&&y.indexOf("//")!==0){let m=e.protocol+"//"+e.host;if(y.indexOf("/")===0)m+=y;else{const v=e.pathname.split("/");v.pop();const b=v.join("/");m+=b+"/"+y}p.push(m)}else if(y.indexOf("//")===0){const m=e.protocol+y;p.push(m)}else p.push(y)}}return p}function i(...h){const p=r.getElementsByTagName("meta");for(let d=0;d<p.length;d++){const f=p[d],g=["itemprop","property","name"].map(y=>f.getAttribute(y)).filter(y=>y?h.includes(y):!1);if(g.length&&g){const y=f.getAttribute("content");if(y)return y}}return""}function n(){let h=i("name","og:site_name","og:title","twitter:title");return h||(h=r.title),h}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),c=e.origin,l=t();return{description:a,url:c,icons:l,name:o}}Wo=nn.getWindowMetadata=Ml;var Ll=function(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var i=Array(r),n=0,e=0;e<t;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i},Dl=function(){function r(e,t,i){this.name=e,this.version=t,this.os=i,this.type="browser"}return r}(),Fl=function(){function r(e){this.version=e,this.type="node",this.name="node",this.os=E.dist.process.platform}return r}(),ql=function(){function r(e,t,i,n){this.name=e,this.version=t,this.os=i,this.bot=n,this.type="bot-device"}return r}(),Bl=function(){function r(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return r}(),Ul=function(){function r(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return r}(),jl=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,zl=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,qn=3,Kl=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",jl]],Bn=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Vl(r){return r?Un(r):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Ul:typeof navigator<"u"?Un(navigator.userAgent):Jl()}function Wl(r){return r!==""&&Kl.reduce(function(e,t){var i=t[0],n=t[1];if(e)return e;var s=n.exec(r);return!!s&&[i,s]},!1)}function Un(r){var e=Wl(r);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new Bl;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<qn&&(n=Ll(n,Gl(qn-n.length))):n=[];var s=n.join("."),o=Hl(r),a=zl.exec(r);return a&&a[1]?new ql(t,s,o,a[1]):new Dl(t,s,o)}function Hl(r){for(var e=0,t=Bn.length;e<t;e++){var i=Bn[e],n=i[0],s=i[1],o=s.exec(r);if(o)return n}return null}function Jl(){var r=typeof E.dist.process<"u"&&E.dist.process.version;return r?new Fl(E.dist.process.version.slice(1)):null}function Gl(r){for(var e=[],t=0;t<r;t++)e.push("0");return e}function sn(r){return Vl(r)}function Vr(){const r=sn();return r&&r.os?r.os:void 0}function Ho(){const r=Vr();return r?r.toLowerCase().includes("android"):!1}function Jo(){const r=Vr();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Yl(){return Vr()?Ho()||Jo():!1}function Go(){const r=sn();return r&&r.name?r.name.toLowerCase()==="node":!1}function Ql(){return!Go()&&!!Yo()}const Xl=Mo,Zl=Lo,eu=Do,tu=Fo,ru=qo,Yo=Bo,iu=Uo,nu=jo,su=zo,ou=Ko,au=Vo,Wr=ko;function cu(){return Wo()}function lu(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function uu(r){return typeof r=="string"?r:JSON.stringify(r)}const Qo=lu,Xo=uu;function Zo(r,e){const t=Xo(e),i=Wr();i&&i.setItem(r,t)}function hu(r){let e=null,t=null;const i=Wr();return i&&(t=i.getItem(r)),e=t&&Qo(t),e}function du(r){const e=Wr();e&&e.removeItem(r)}const ea="WALLETCONNECT_DEEPLINK_CHOICE";function fu(r,e){const t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function pu(r){const e=r.href.split("?")[0];Zo(ea,Object.assign(Object.assign({},r),{href:e}))}function ta(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function gu(r,e){let t=r;return e&&(t=e.map(i=>ta(r,i)).filter(Boolean)),t}const ra="https://registry.walletconnect.com";function yu(){return ra+"/api/v2/wallets"}function mu(){return ra+"/api/v2/dapps"}function ia(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function vu(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>ia(t,e))}const wu=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:sn,detectOS:Vr,formatIOSMobile:fu,formatMobileRegistry:vu,formatMobileRegistryEntry:ia,getClientMeta:cu,getCrypto:ou,getCryptoOrThrow:su,getDappRegistryUrl:mu,getDocument:tu,getDocumentOrThrow:eu,getFromWindow:Xl,getFromWindowOrThrow:Zl,getLocal:hu,getLocalStorage:Wr,getLocalStorageOrThrow:au,getLocation:nu,getLocationOrThrow:iu,getMobileLinkRegistry:gu,getMobileRegistryEntry:ta,getNavigator:Yo,getNavigatorOrThrow:ru,getWalletRegistryUrl:yu,isAndroid:Ho,isBrowser:Ql,isIOS:Jo,isMobile:Yl,isNode:Go,mobileLinkChoiceKey:ea,removeLocal:du,safeJsonParse:Qo,safeJsonStringify:Xo,saveMobileLinkInfo:pu,setLocal:Zo},Symbol.toStringTag,{value:"Module"})),_u=E.getAugmentedNamespace(wu);var hr={},bu=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},na={},ct={},Eu=rn;function Su(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},r.foo()===42}catch{return!1}}j.TYPED_ARRAY_SUPPORT=Su();var jn=j.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function j(r,e,t){return!j.TYPED_ARRAY_SUPPORT&&!(this instanceof j)?new j(r,e,t):typeof r=="number"?sa(this,r):Tu(this,r,e,t)}j.TYPED_ARRAY_SUPPORT&&(j.prototype.__proto__=Uint8Array.prototype,j.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&j[Symbol.species]===j&&Object.defineProperty(j,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function on(r){if(r>=jn)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jn.toString(16)+" bytes");return r|0}function Iu(r){return r!==r}function Tt(r,e){var t;return j.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=j.prototype):(t=r,t===null&&(t=new j(e)),t.length=e),t}function sa(r,e){var t=Tt(r,e<0?0:on(e)|0);if(!j.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function xu(r,e){var t=aa(e)|0,i=Tt(r,t),n=i.write(e);return n!==t&&(i=i.slice(0,n)),i}function $i(r,e){for(var t=e.length<0?0:on(e.length)|0,i=Tt(r,t),n=0;n<t;n+=1)i[n]=e[n]&255;return i}function Pu(r,e,t,i){if(t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+(i||0))throw new RangeError("'length' is out of bounds");var n;return t===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,i),j.TYPED_ARRAY_SUPPORT?n.__proto__=j.prototype:n=$i(r,n),n}function Au(r,e){if(j.isBuffer(e)){var t=on(e.length)|0,i=Tt(r,t);return i.length===0||e.copy(i,0,0,t),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Iu(e.length)?Tt(r,0):$i(r,e);if(e.type==="Buffer"&&Array.isArray(e.data))return $i(r,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function oa(r,e){e=e||1/0;for(var t,i=r.length,n=null,s=[],o=0;o<i;++o){if(t=r.charCodeAt(o),t>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function aa(r){if(j.isBuffer(r))return r.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;typeof r!="string"&&(r=""+r);var e=r.length;return e===0?0:oa(r).length}function Ru(r,e,t,i){for(var n=0;n<i&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function Nu(r,e,t,i){return Ru(oa(e,r.length-t),r,t,i)}function Tu(r,e,t,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Pu(r,e,t,i):typeof e=="string"?xu(r,e):Au(r,e)}j.prototype.write=function(e,t,i){t===void 0?(i=this.length,t=0):i===void 0&&typeof t=="string"?(i=this.length,t=0):isFinite(t)&&(t=t|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-t;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Nu(this,e,t,i)};j.prototype.slice=function(e,t){var i=this.length;e=~~e,t=t===void 0?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e);var n;if(j.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=j.prototype;else{var s=t-e;n=new j(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};j.prototype.copy=function(e,t,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var s=n-i,o;if(this===e&&i<t&&t<n)for(o=s-1;o>=0;--o)e[o+t]=this[o+i];else if(s<1e3||!j.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+t]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),t);return s};j.prototype.fill=function(e,t,i){if(typeof e=="string"){if(typeof t=="string"?(t=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s<i;++s)this[s]=e;else{var o=j.isBuffer(e)?e:new j(e),a=o.length;for(s=0;s<i-t;++s)this[s+t]=o[s%a]}return this};j.concat=function(e,t){if(!Eu(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Tt(null,0);var i;if(t===void 0)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=sa(null,t),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!j.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};j.byteLength=aa;j.prototype._isBuffer=!0;j.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};ct.alloc=function(r){var e=new j(r);return e.fill(0),e};ct.from=function(r){return new j(r)};var be={},an,Cu=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];be.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};be.getSymbolTotalCodewords=function(e){return Cu[e]};be.getBCHDigit=function(r){for(var e=0;r!==0;)e++,r>>>=1;return e};be.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');an=e};be.isKanjiModeEnabled=function(){return typeof an<"u"};be.toSJIS=function(e){return an(e)};var Hr={};(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");var i=t.toLowerCase();switch(i){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},r.from=function(i,n){if(r.isValid(i))return i;try{return e(i)}catch{return n}}})(Hr);function ca(){this.buffer=[],this.length=0}ca.prototype={get:function(r){var e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(var t=0;t<e;t++)this.putBit((r>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Ou=ca,zn=ct;function dr(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=zn.alloc(r*r),this.reservedBit=zn.alloc(r*r)}dr.prototype.set=function(r,e,t,i){var n=r*this.size+e;this.data[n]=t,i&&(this.reservedBit[n]=!0)};dr.prototype.get=function(r,e){return this.data[r*this.size+e]};dr.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};dr.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};var $u=dr,la={};(function(r){var e=be.getSymbolSize;r.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7],c=1;c<n-1;c++)a[c]=a[c-1]-o;return a.push(6),a.reverse()},r.getPositions=function(i){for(var n=[],s=r.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var c=0;c<o;c++)a===0&&c===0||a===0&&c===o-1||a===o-1&&c===0||n.push([s[a],s[c]]);return n}})(la);var ua={},ku=be.getSymbolSize,Kn=7;ua.getPositions=function(e){var t=ku(e);return[[0,0],[t-Kn,0],[0,t-Kn]]};var ha={};(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};r.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},r.from=function(n){return r.isValid(n)?parseInt(n,10):void 0},r.getPenaltyN1=function(n){for(var s=n.size,o=0,a=0,c=0,l=null,u=null,h=0;h<s;h++){a=c=0,l=u=null;for(var p=0;p<s;p++){var d=n.get(h,p);d===l?a++:(a>=5&&(o+=e.N1+(a-5)),l=d,a=1),d=n.get(p,h),d===u?c++:(c>=5&&(o+=e.N1+(c-5)),u=d,c=1)}a>=5&&(o+=e.N1+(a-5)),c>=5&&(o+=e.N1+(c-5))}return o},r.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var c=0;c<s-1;c++){var l=n.get(a,c)+n.get(a,c+1)+n.get(a+1,c)+n.get(a+1,c+1);(l===4||l===0)&&o++}return o*e.N2},r.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,c=0,l=0;l<s;l++){a=c=0;for(var u=0;u<s;u++)a=a<<1&2047|n.get(l,u),u>=10&&(a===1488||a===93)&&o++,c=c<<1&2047|n.get(u,l),u>=10&&(c===1488||c===93)&&o++}return o*e.N3},r.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];var c=Math.abs(Math.ceil(s*100/o/5)-10);return c*e.N4};function t(i,n,s){switch(i){case r.Patterns.PATTERN000:return(n+s)%2===0;case r.Patterns.PATTERN001:return n%2===0;case r.Patterns.PATTERN010:return s%3===0;case r.Patterns.PATTERN011:return(n+s)%3===0;case r.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case r.Patterns.PATTERN101:return n*s%2+n*s%3===0;case r.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case r.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}r.applyMask=function(n,s){for(var o=s.size,a=0;a<o;a++)for(var c=0;c<o;c++)s.isReserved(c,a)||s.xor(c,a,t(n,c,a))},r.getBestMask=function(n,s){for(var o=Object.keys(r.Patterns).length,a=0,c=1/0,l=0;l<o;l++){s(l),r.applyMask(l,n);var u=r.getPenaltyN1(n)+r.getPenaltyN2(n)+r.getPenaltyN3(n)+r.getPenaltyN4(n);r.applyMask(l,n),u<c&&(c=u,a=l)}return a}})(ha);var Jr={},rt=Hr,_r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],br=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Jr.getBlocksCount=function(e,t){switch(t){case rt.L:return _r[(e-1)*4+0];case rt.M:return _r[(e-1)*4+1];case rt.Q:return _r[(e-1)*4+2];case rt.H:return _r[(e-1)*4+3];default:return}};Jr.getTotalCodewordsCount=function(e,t){switch(t){case rt.L:return br[(e-1)*4+0];case rt.M:return br[(e-1)*4+1];case rt.Q:return br[(e-1)*4+2];case rt.H:return br[(e-1)*4+3];default:return}};var da={},Gr={},fa=ct,er=fa.alloc(512),$r=fa.alloc(256);(function(){for(var e=1,t=0;t<255;t++)er[t]=e,$r[e]=t,e<<=1,e&256&&(e^=285);for(t=255;t<512;t++)er[t]=er[t-255]})();Gr.log=function(e){if(e<1)throw new Error("log("+e+")");return $r[e]};Gr.exp=function(e){return er[e]};Gr.mul=function(e,t){return e===0||t===0?0:er[$r[e]+$r[t]]};(function(r){var e=ct,t=Gr;r.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var c=0;c<s.length;c++)o[a+c]^=t.mul(n[a],s[c]);return o},r.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],c=0;c<s.length;c++)o[c]^=t.mul(s[c],a);for(var l=0;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},r.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=r.mul(s,[1,t.exp(o)]);return s}})(da);var Vn=ct,pa=da,Mu=E.bufferPolyfill.Buffer;function cn(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}cn.prototype.initialize=function(e){this.degree=e,this.genPoly=pa.generateECPolynomial(this.degree)};cn.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=Vn.alloc(this.degree),i=Mu.concat([e,t],e.length+this.degree),n=pa.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=Vn.alloc(this.degree);return n.copy(o,s),o}return n};var Lu=cn,ga={},lt={},ln={};ln.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var ze={},ya="[0-9]+",Du="[A-Z $%*+\\-./:]+",sr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";sr=sr.replace(/u/g,"\\u");var Fu="(?:(?![A-Z0-9 $%*+\\-./:]|"+sr+`)(?:.|[\r
2
2
  ]))+`;ze.KANJI=new RegExp(sr,"g");ze.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ze.BYTE=new RegExp(Fu,"g");ze.NUMERIC=new RegExp(ya,"g");ze.ALPHANUMERIC=new RegExp(Du,"g");var qu=new RegExp("^"+sr+"$"),Bu=new RegExp("^"+ya+"$"),Uu=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ze.testKanji=function(e){return qu.test(e)};ze.testNumeric=function(e){return Bu.test(e)};ze.testAlphanumeric=function(e){return Uu.test(e)};(function(r){var e=ln,t=ze;r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},r.getBestModeForData=function(s){return t.testNumeric(s)?r.NUMERIC:t.testAlphanumeric(s)?r.ALPHANUMERIC:t.testKanji(s)?r.KANJI:r.BYTE},r.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},r.isValid=function(s){return s&&s.bit&&s.ccBits};function i(n){if(typeof n!="string")throw new Error("Param is not a string");var s=n.toLowerCase();switch(s){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+n)}}r.from=function(s,o){if(r.isValid(s))return s;try{return i(s)}catch{return o}}})(lt);(function(r){var e=be,t=Jr,i=Hr,n=lt,s=ln,o=rn,a=7973,c=e.getBCHDigit(a);function l(d,f,g){for(var y=1;y<=40;y++)if(f<=r.getCapacity(y,g,d))return y}function u(d,f){return n.getCharCountIndicator(d,f)+4}function h(d,f){var g=0;return d.forEach(function(y){var m=u(y.mode,f);g+=m+y.getBitsLength()}),g}function p(d,f){for(var g=1;g<=40;g++){var y=h(d,g);if(y<=r.getCapacity(g,f,n.MIXED))return g}}r.from=function(f,g){return s.isValid(f)?parseInt(f,10):g},r.getCapacity=function(f,g,y){if(!s.isValid(f))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=n.BYTE);var m=e.getSymbolTotalCodewords(f),v=t.getTotalCodewordsCount(f,g),b=(m-v)*8;if(y===n.MIXED)return b;var w=b-u(y,f);switch(y){case n.NUMERIC:return Math.floor(w/10*3);case n.ALPHANUMERIC:return Math.floor(w/11*2);case n.KANJI:return Math.floor(w/13);case n.BYTE:default:return Math.floor(w/8)}},r.getBestVersionForData=function(f,g){var y,m=i.from(g,i.M);if(o(f)){if(f.length>1)return p(f,m);if(f.length===0)return 1;y=f[0]}else y=f;return l(y.mode,y.getLength(),m)},r.getEncodedBits=function(f){if(!s.isValid(f)||f<7)throw new Error("Invalid QR Code version");for(var g=f<<12;e.getBCHDigit(g)-c>=0;)g^=a<<e.getBCHDigit(g)-c;return f<<12|g}})(ga);var ma={},ki=be,va=1335,ju=21522,Wn=ki.getBCHDigit(va);ma.getEncodedBits=function(e,t){for(var i=e.bit<<3|t,n=i<<10;ki.getBCHDigit(n)-Wn>=0;)n^=va<<ki.getBCHDigit(n)-Wn;return(i<<10|n)^ju};var wa={},zu=lt;function Ct(r){this.mode=zu.NUMERIC,this.data=r.toString()}Ct.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Ct.prototype.getLength=function(){return this.data.length};Ct.prototype.getBitsLength=function(){return Ct.getBitsLength(this.data.length)};Ct.prototype.write=function(e){var t,i,n;for(t=0;t+3<=this.data.length;t+=3)i=this.data.substr(t,3),n=parseInt(i,10),e.put(n,10);var s=this.data.length-t;s>0&&(i=this.data.substr(t),n=parseInt(i,10),e.put(n,s*3+1))};var Ku=Ct,Vu=lt,hi=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ot(r){this.mode=Vu.ALPHANUMERIC,this.data=r}Ot.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Ot.prototype.getLength=function(){return this.data.length};Ot.prototype.getBitsLength=function(){return Ot.getBitsLength(this.data.length)};Ot.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var i=hi.indexOf(this.data[t])*45;i+=hi.indexOf(this.data[t+1]),e.put(i,11)}this.data.length%2&&e.put(hi.indexOf(this.data[t]),6)};var Wu=Ot,Hu=ct,Ju=lt;function $t(r){this.mode=Ju.BYTE,this.data=Hu.from(r)}$t.getBitsLength=function(e){return e*8};$t.prototype.getLength=function(){return this.data.length};$t.prototype.getBitsLength=function(){return $t.getBitsLength(this.data.length)};$t.prototype.write=function(r){for(var e=0,t=this.data.length;e<t;e++)r.put(this.data[e],8)};var Gu=$t,Yu=lt,Qu=be;function kt(r){this.mode=Yu.KANJI,this.data=r}kt.getBitsLength=function(e){return e*13};kt.prototype.getLength=function(){return this.data.length};kt.prototype.getBitsLength=function(){return kt.getBitsLength(this.data.length)};kt.prototype.write=function(r){var e;for(e=0;e<this.data.length;e++){var t=Qu.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
3
3
  Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};var Xu=kt;(function(r){var e=lt,t=Ku,i=Wu,n=Gu,s=Xu,o=ze,a=be,c=gl.dijkstraExports;function l(m){return unescape(encodeURIComponent(m)).length}function u(m,v,b){for(var w=[],S;(S=m.exec(b))!==null;)w.push({data:S[0],index:S.index,mode:v,length:S[0].length});return w}function h(m){var v=u(o.NUMERIC,e.NUMERIC,m),b=u(o.ALPHANUMERIC,e.ALPHANUMERIC,m),w,S;a.isKanjiModeEnabled()?(w=u(o.BYTE,e.BYTE,m),S=u(o.KANJI,e.KANJI,m)):(w=u(o.BYTE_KANJI,e.BYTE,m),S=[]);var I=v.concat(b,w,S);return I.sort(function(x,A){return x.index-A.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function p(m,v){switch(v){case e.NUMERIC:return t.getBitsLength(m);case e.ALPHANUMERIC:return i.getBitsLength(m);case e.KANJI:return s.getBitsLength(m);case e.BYTE:return n.getBitsLength(m)}}function d(m){return m.reduce(function(v,b){var w=v.length-1>=0?v[v.length-1]:null;return w&&w.mode===b.mode?(v[v.length-1].data+=b.data,v):(v.push(b),v)},[])}function f(m){for(var v=[],b=0;b<m.length;b++){var w=m[b];switch(w.mode){case e.NUMERIC:v.push([w,{data:w.data,mode:e.ALPHANUMERIC,length:w.length},{data:w.data,mode:e.BYTE,length:w.length}]);break;case e.ALPHANUMERIC:v.push([w,{data:w.data,mode:e.BYTE,length:w.length}]);break;case e.KANJI:v.push([w,{data:w.data,mode:e.BYTE,length:l(w.data)}]);break;case e.BYTE:v.push([{data:w.data,mode:e.BYTE,length:l(w.data)}])}}return v}function g(m,v){for(var b={},w={start:{}},S=["start"],I=0;I<m.length;I++){for(var x=m[I],A=[],C=0;C<x.length;C++){var O=x[C],$=""+I+C;A.push($),b[$]={node:O,lastCount:0},w[$]={};for(var D=0;D<S.length;D++){var k=S[D];b[k]&&b[k].node.mode===O.mode?(w[k][$]=p(b[k].lastCount+O.length,O.mode)-p(b[k].lastCount,O.mode),b[k].lastCount+=O.length):(b[k]&&(b[k].lastCount=O.length),w[k][$]=p(O.length,O.mode)+4+e.getCharCountIndicator(O.mode,v))}}S=A}for(D=0;D<S.length;D++)w[S[D]].end=0;return{map:w,table:b}}function y(m,v){var b,w=e.getBestModeForData(m);if(b=e.from(v,w),b!==e.BYTE&&b.bit<w.bit)throw new Error('"'+m+'" cannot be encoded with mode '+e.toString(b)+`.
4
4
  Suggested mode is: `+e.toString(w));switch(b===e.KANJI&&!a.isKanjiModeEnabled()&&(b=e.BYTE),b){case e.NUMERIC:return new t(m);case e.ALPHANUMERIC:return new i(m);case e.KANJI:return new s(m);case e.BYTE:return new n(m)}}r.fromArray=function(v){return v.reduce(function(b,w){return typeof w=="string"?b.push(y(w,null)):w.data&&b.push(y(w.data,w.mode)),b},[])},r.fromString=function(v,b){for(var w=h(v,a.isKanjiModeEnabled()),S=f(w),I=g(S,b),x=c.find_path(I.map,"start","end"),A=[],C=1;C<x.length-1;C++)A.push(I.table[x[C]].node);return r.fromArray(d(A))},r.rawSplit=function(v){return r.fromArray(h(v,a.isKanjiModeEnabled()))}})(wa);var Hn=ct,Yr=be,di=Hr,Zu=Ou,eh=$u,th=la,rh=ua,Mi=ha,Li=Jr,ih=Lu,kr=ga,nh=ma,sh=lt,fi=wa,oh=rn;function ah(r,e){for(var t=r.size,i=rh.getPositions(e),n=0;n<i.length;n++)for(var s=i[n][0],o=i[n][1],a=-1;a<=7;a++)if(!(s+a<=-1||t<=s+a))for(var c=-1;c<=7;c++)o+c<=-1||t<=o+c||(a>=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?r.set(s+a,o+c,!0,!0):r.set(s+a,o+c,!1,!0))}function ch(r){for(var e=r.size,t=8;t<e-8;t++){var i=t%2===0;r.set(t,6,i,!0),r.set(6,t,i,!0)}}function lh(r,e){for(var t=th.getPositions(e),i=0;i<t.length;i++)for(var n=t[i][0],s=t[i][1],o=-2;o<=2;o++)for(var a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?r.set(n+o,s+a,!0,!0):r.set(n+o,s+a,!1,!0)}function uh(r,e){for(var t=r.size,i=kr.getEncodedBits(e),n,s,o,a=0;a<18;a++)n=Math.floor(a/3),s=a%3+t-8-3,o=(i>>a&1)===1,r.set(n,s,o,!0),r.set(s,n,o,!0)}function pi(r,e,t){var i=r.size,n=nh.getEncodedBits(e,t),s,o;for(s=0;s<15;s++)o=(n>>s&1)===1,s<6?r.set(s,8,o,!0):s<8?r.set(s+1,8,o,!0):r.set(i-15+s,8,o,!0),s<8?r.set(8,i-s-1,o,!0):s<9?r.set(8,15-s-1+1,o,!0):r.set(8,15-s-1,o,!0);r.set(i-8,8,1,!0)}function hh(r,e){for(var t=r.size,i=-1,n=t-1,s=7,o=0,a=t-1;a>0;a-=2)for(a===6&&a--;;){for(var c=0;c<2;c++)if(!r.isReserved(n,a-c)){var l=!1;o<e.length&&(l=(e[o]>>>s&1)===1),r.set(n,a-c,l),s--,s===-1&&(o++,s=7)}if(n+=i,n<0||t<=n){n-=i,i=-i;break}}}function dh(r,e,t){var i=new Zu;t.forEach(function(l){i.put(l.mode.bit,4),i.put(l.getLength(),sh.getCharCountIndicator(l.mode,r)),l.write(i)});var n=Yr.getSymbolTotalCodewords(r),s=Li.getTotalCodewordsCount(r,e),o=(n-s)*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);for(var a=(o-i.getLengthInBits())/8,c=0;c<a;c++)i.put(c%2?17:236,8);return fh(i,r,e)}function fh(r,e,t){for(var i=Yr.getSymbolTotalCodewords(e),n=Li.getTotalCodewordsCount(e,t),s=i-n,o=Li.getBlocksCount(e,t),a=i%o,c=o-a,l=Math.floor(i/o),u=Math.floor(s/o),h=u+1,p=l-u,d=new ih(p),f=0,g=new Array(o),y=new Array(o),m=0,v=Hn.from(r.buffer),b=0;b<o;b++){var w=b<c?u:h;g[b]=v.slice(f,f+w),y[b]=d.encode(g[b]),f+=w,m=Math.max(m,w)}var S=Hn.alloc(i),I=0,x,A;for(x=0;x<m;x++)for(A=0;A<o;A++)x<g[A].length&&(S[I++]=g[A][x]);for(x=0;x<p;x++)for(A=0;A<o;A++)S[I++]=y[A][x];return S}function ph(r,e,t,i){var n;if(oh(r))n=fi.fromArray(r);else if(typeof r=="string"){var s=e;if(!s){var o=fi.rawSplit(r);s=kr.getBestVersionForData(o,t)}n=fi.fromString(r,s||40)}else throw new Error("Invalid data");var a=kr.getBestVersionForData(n,t);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
@@ -1,5 +1,5 @@
1
1
  import { a9 as Do, d as De, g as Pv, az as eg } from "./address-Drr_9OcK.mjs";
2
- import { m as Zy, o as tg, p as ng } from "./index-pNqQSm4p.mjs";
2
+ import { m as Zy, o as tg, p as ng } from "./index-DiulRNyF.mjs";
3
3
  import { o as uy } from "./browser-ponyfill-oWZrCgRw.mjs";
4
4
  import { e as iy, d as ag } from "./base64-BcnUThiU.mjs";
5
5
  import * as Wf from "react";
@@ -1,4 +1,4 @@
1
- "use strict";const K=require("./address-RcMobNYE.js"),Pe=require("./index-Bn1o04G7.js");var Xr={},cf={exports:{}},qi={};(function(e){e.fetch=i(K.commonjsGlobal.fetch)&&i(K.commonjsGlobal.ReadableStream),e.writableStream=i(K.commonjsGlobal.WritableStream),e.abortController=i(K.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(K.commonjsGlobal.XMLHttpRequest){t=new K.commonjsGlobal.XMLHttpRequest;try{t.open("GET",K.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(a){var o=r();if(!o)return!1;try{return o.responseType=a,o.responseType===a}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?i(r().overrideMimeType):!1);function i(a){return typeof a=="function"}t=null})(qi);var Jr={},wi={exports:{}},hf=Pe.eventsExports.EventEmitter,gn,ua;function ru(){if(ua)return gn;ua=1;function e(N,F){var j=Object.keys(N);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(N);F&&(k=k.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),j.push.apply(j,k)}return j}function t(N){for(var F=1;F<arguments.length;F++){var j=arguments[F]!=null?arguments[F]:{};F%2?e(Object(j),!0).forEach(function(k){r(N,k,j[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(j)):e(Object(j)).forEach(function(k){Object.defineProperty(N,k,Object.getOwnPropertyDescriptor(j,k))})}return N}function r(N,F,j){return F=o(F),F in N?Object.defineProperty(N,F,{value:j,enumerable:!0,configurable:!0,writable:!0}):N[F]=j,N}function n(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}function i(N,F){for(var j=0;j<F.length;j++){var k=F[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,o(k.key),k)}}function a(N,F,j){return F&&i(N.prototype,F),Object.defineProperty(N,"prototype",{writable:!1}),N}function o(N){var F=f(N,"string");return typeof F=="symbol"?F:String(F)}function f(N,F){if(typeof N!="object"||N===null)return N;var j=N[Symbol.toPrimitive];if(j!==void 0){var k=j.call(N,F);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}var d=K.bufferPolyfill,l=d.Buffer,u=Pe.require$$3,w=u.inspect,g=w&&w.custom||"inspect";function S(N,F,j){l.prototype.copy.call(N,F,j)}return gn=function(){function N(){n(this,N),this.head=null,this.tail=null,this.length=0}return a(N,[{key:"push",value:function(j){var k={data:j,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(j){var k={data:j,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var k=this.head,I=""+k.data;k=k.next;)I+=j+k.data;return I}},{key:"concat",value:function(j){if(this.length===0)return l.alloc(0);for(var k=l.allocUnsafe(j>>>0),I=this.head,R=0;I;)S(I.data,k,R),R+=I.data.length,I=I.next;return k}},{key:"consume",value:function(j,k){var I;return j<this.head.data.length?(I=this.head.data.slice(0,j),this.head.data=this.head.data.slice(j)):j===this.head.data.length?I=this.shift():I=k?this._getString(j):this._getBuffer(j),I}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(j){var k=this.head,I=1,R=k.data;for(j-=R.length;k=k.next;){var P=k.data,T=j>P.length?P.length:j;if(T===P.length?R+=P:R+=P.slice(0,j),j-=T,j===0){T===P.length?(++I,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=P.slice(T));break}++I}return this.length-=I,R}},{key:"_getBuffer",value:function(j){var k=l.allocUnsafe(j),I=this.head,R=1;for(I.data.copy(k),j-=I.data.length;I=I.next;){var P=I.data,T=j>P.length?P.length:j;if(P.copy(k,k.length-j,0,T),j-=T,j===0){T===P.length?(++R,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=P.slice(T));break}++R}return this.length-=R,k}},{key:g,value:function(j,k){return w(this,t(t({},k),{},{depth:0,customInspect:!1}))}}]),N}(),gn}function nu(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,K.dist.process.nextTick(Ei,this,e)):K.dist.process.nextTick(Ei,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?K.dist.process.nextTick(Ir,r):(r._writableState.errorEmitted=!0,K.dist.process.nextTick(sa,r,a)):K.dist.process.nextTick(sa,r,a):t?(K.dist.process.nextTick(Ir,r),t(a)):K.dist.process.nextTick(Ir,r)}),this)}function sa(e,t){Ei(e,t),Ir(e)}function Ir(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function iu(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ei(e,t){e.emit("error",t)}function au(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var df={destroy:nu,undestroy:iu,errorOrDestroy:au},It={};function ou(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pf={};function Be(e,t,r){r||(r=Error);function n(a,o,f){return typeof t=="string"?t:t(a,o,f)}var i=function(a){ou(o,a);function o(f,d,l){return a.call(this,n(f,d,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,pf[e]=i}function ca(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function fu(e,t,r){return e.substr(0,t.length)===t}function lu(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function uu(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Be("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Be("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&fu(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(lu(e," argument"))i="The ".concat(e," ").concat(n," ").concat(ca(t,"type"));else{var a=uu(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(ca(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Be("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Be("ERR_STREAM_PREMATURE_CLOSE","Premature close");Be("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Be("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Be("ERR_STREAM_WRITE_AFTER_END","write after end");Be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Be("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");It.codes=pf;var su=It.codes.ERR_INVALID_OPT_VALUE;function cu(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function hu(e,t,r,n){var i=cu(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new su(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var yf={getHighWaterMark:hu},_n,ha;function vf(){if(ha)return _n;ha=1,_n=z;function e(c){var y=this;this.next=null,this.entry=null,this.finish=function(){E(y,c)}}var t;z.WritableState=q;var r={deprecate:Pe.requireBrowser()},n=hf,i=K.bufferPolyfill.Buffer,a=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(c){return i.from(c)}function f(c){return i.isBuffer(c)||c instanceof a}var d=df,l=yf,u=l.getHighWaterMark,w=It.codes,g=w.ERR_INVALID_ARG_TYPE,S=w.ERR_METHOD_NOT_IMPLEMENTED,N=w.ERR_MULTIPLE_CALLBACK,F=w.ERR_STREAM_CANNOT_PIPE,j=w.ERR_STREAM_DESTROYED,k=w.ERR_STREAM_NULL_VALUES,I=w.ERR_STREAM_WRITE_AFTER_END,R=w.ERR_UNKNOWN_ENCODING,P=d.errorOrDestroy;Pe.inherits_browserExports(z,n);function T(){}function q(c,y,m){t=t||qt(),c=c||{},typeof m!="boolean"&&(m=y instanceof t),this.objectMode=!!c.objectMode,m&&(this.objectMode=this.objectMode||!!c.writableObjectMode),this.highWaterMark=u(this,c,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=c.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){ae(y,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=c.emitClose!==!1,this.autoDestroy=!!c.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}q.prototype.getBuffer=function(){for(var y=this.bufferedRequest,m=[];y;)m.push(y),y=y.next;return m},function(){try{Object.defineProperty(q.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var C;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(y){return C.call(this,y)?!0:this!==z?!1:y&&y._writableState instanceof q}})):C=function(y){return y instanceof this};function z(c){t=t||qt();var y=this instanceof t;if(!y&&!C.call(z,this))return new z(c);this._writableState=new q(c,this,y),this.writable=!0,c&&(typeof c.write=="function"&&(this._write=c.write),typeof c.writev=="function"&&(this._writev=c.writev),typeof c.destroy=="function"&&(this._destroy=c.destroy),typeof c.final=="function"&&(this._final=c.final)),n.call(this)}z.prototype.pipe=function(){P(this,new F)};function x(c,y){var m=new I;P(c,m),K.dist.process.nextTick(y,m)}function re(c,y,m,M){var U;return m===null?U=new k:typeof m!="string"&&!y.objectMode&&(U=new g("chunk",["string","Buffer"],m)),U?(P(c,U),K.dist.process.nextTick(M,U),!1):!0}z.prototype.write=function(c,y,m){var M=this._writableState,U=!1,h=!M.objectMode&&f(c);return h&&!i.isBuffer(c)&&(c=o(c)),typeof y=="function"&&(m=y,y=null),h?y="buffer":y||(y=M.defaultEncoding),typeof m!="function"&&(m=T),M.ending?x(this,m):(h||re(this,M,c,m))&&(M.pendingcb++,U=b(this,M,h,c,y,m)),U},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var c=this._writableState;c.corked&&(c.corked--,!c.writing&&!c.corked&&!c.bufferProcessing&&c.bufferedRequest&&Z(this,c))},z.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((y+"").toLowerCase())>-1))throw new R(y);return this._writableState.defaultEncoding=y,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function J(c,y,m){return!c.objectMode&&c.decodeStrings!==!1&&typeof y=="string"&&(y=i.from(y,m)),y}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(c,y,m,M,U,h){if(!m){var p=J(y,M,U);M!==p&&(m=!0,U="buffer",M=p)}var $=y.objectMode?1:M.length;y.length+=$;var V=y.length<y.highWaterMark;if(V||(y.needDrain=!0),y.writing||y.corked){var se=y.lastBufferedRequest;y.lastBufferedRequest={chunk:M,encoding:U,isBuf:m,callback:h,next:null},se?se.next=y.lastBufferedRequest:y.bufferedRequest=y.lastBufferedRequest,y.bufferedRequestCount+=1}else B(c,y,!1,$,M,U,h);return V}function B(c,y,m,M,U,h,p){y.writelen=M,y.writecb=p,y.writing=!0,y.sync=!0,y.destroyed?y.onwrite(new j("write")):m?c._writev(U,y.onwrite):c._write(U,h,y.onwrite),y.sync=!1}function Q(c,y,m,M,U){--y.pendingcb,m?(K.dist.process.nextTick(U,M),K.dist.process.nextTick(A,c,y),c._writableState.errorEmitted=!0,P(c,M)):(U(M),c._writableState.errorEmitted=!0,P(c,M),A(c,y))}function ne(c){c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0}function ae(c,y){var m=c._writableState,M=m.sync,U=m.writecb;if(typeof U!="function")throw new N;if(ne(m),y)Q(c,m,M,y,U);else{var h=D(m)||c.destroyed;!h&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest&&Z(c,m),M?K.dist.process.nextTick(ue,c,m,h,U):ue(c,m,h,U)}}function ue(c,y,m,M){m||ie(c,y),y.pendingcb--,M(),A(c,y)}function ie(c,y){y.length===0&&y.needDrain&&(y.needDrain=!1,c.emit("drain"))}function Z(c,y){y.bufferProcessing=!0;var m=y.bufferedRequest;if(c._writev&&m&&m.next){var M=y.bufferedRequestCount,U=new Array(M),h=y.corkedRequestsFree;h.entry=m;for(var p=0,$=!0;m;)U[p]=m,m.isBuf||($=!1),m=m.next,p+=1;U.allBuffers=$,B(c,y,!0,y.length,U,"",h.finish),y.pendingcb++,y.lastBufferedRequest=null,h.next?(y.corkedRequestsFree=h.next,h.next=null):y.corkedRequestsFree=new e(y),y.bufferedRequestCount=0}else{for(;m;){var V=m.chunk,se=m.encoding,oe=m.callback,de=y.objectMode?1:V.length;if(B(c,y,!1,de,V,se,oe),m=m.next,y.bufferedRequestCount--,y.writing)break}m===null&&(y.lastBufferedRequest=null)}y.bufferedRequest=m,y.bufferProcessing=!1}z.prototype._write=function(c,y,m){m(new S("_write()"))},z.prototype._writev=null,z.prototype.end=function(c,y,m){var M=this._writableState;return typeof c=="function"?(m=c,c=null,y=null):typeof y=="function"&&(m=y,y=null),c!=null&&this.write(c,y),M.corked&&(M.corked=1,this.uncork()),M.ending||v(this,M,m),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function D(c){return c.ending&&c.length===0&&c.bufferedRequest===null&&!c.finished&&!c.writing}function W(c,y){c._final(function(m){y.pendingcb--,m&&P(c,m),y.prefinished=!0,c.emit("prefinish"),A(c,y)})}function _(c,y){!y.prefinished&&!y.finalCalled&&(typeof c._final=="function"&&!y.destroyed?(y.pendingcb++,y.finalCalled=!0,K.dist.process.nextTick(W,c,y)):(y.prefinished=!0,c.emit("prefinish")))}function A(c,y){var m=D(y);if(m&&(_(c,y),y.pendingcb===0&&(y.finished=!0,c.emit("finish"),y.autoDestroy))){var M=c._readableState;(!M||M.autoDestroy&&M.endEmitted)&&c.destroy()}return m}function v(c,y,m){y.ending=!0,A(c,y),m&&(y.finished?K.dist.process.nextTick(m):c.once("finish",m)),y.ended=!0,c.writable=!1}function E(c,y,m){var M=c.entry;for(c.entry=null;M;){var U=M.callback;y.pendingcb--,U(m),M=M.next}y.corkedRequestsFree.next=c}return Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(y){this._writableState&&(this._writableState.destroyed=y)}}),z.prototype.destroy=d.destroy,z.prototype._undestroy=d.undestroy,z.prototype._destroy=function(c,y){y(c)},_n}var bn,da;function qt(){if(da)return bn;da=1;var e=Object.keys||function(l){var u=[];for(var w in l)u.push(w);return u};bn=o;var t=_f(),r=vf();Pe.inherits_browserExports(o,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var a=n[i];o.prototype[a]||(o.prototype[a]=r.prototype[a])}function o(l){if(!(this instanceof o))return new o(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(){this._writableState.ended||K.dist.process.nextTick(d,this)}function d(l){l.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),bn}var pa=It.codes.ERR_STREAM_PREMATURE_CLOSE;function du(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function pu(){}function yu(e){return e.setHeader&&typeof e.abort=="function"}function gf(e,t,r){if(typeof t=="function")return gf(e,null,t);t||(t={}),r=du(r||pu);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||f()},o=e._writableState&&e._writableState.finished,f=function(){i=!1,o=!0,n||r.call(e)},d=e._readableState&&e._readableState.endEmitted,l=function(){n=!1,d=!0,i||r.call(e)},u=function(N){r.call(e,N)},w=function(){var N;if(n&&!d)return(!e._readableState||!e._readableState.ended)&&(N=new pa),r.call(e,N);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(N=new pa),r.call(e,N)},g=function(){e.req.on("finish",f)};return yu(e)?(e.on("complete",f),e.on("abort",w),e.req?g():e.on("request",g)):i&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",l),e.on("finish",f),t.error!==!1&&e.on("error",u),e.on("close",w),function(){e.removeListener("complete",f),e.removeListener("abort",w),e.removeListener("request",g),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",l),e.removeListener("error",u),e.removeListener("close",w)}}var zi=gf,mn,ya;function vu(){if(ya)return mn;ya=1;var e;function t(R,P,T){return P=r(P),P in R?Object.defineProperty(R,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[P]=T,R}function r(R){var P=n(R,"string");return typeof P=="symbol"?P:String(P)}function n(R,P){if(typeof R!="object"||R===null)return R;var T=R[Symbol.toPrimitive];if(T!==void 0){var q=T.call(R,P);if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(R)}var i=zi,a=Symbol("lastResolve"),o=Symbol("lastReject"),f=Symbol("error"),d=Symbol("ended"),l=Symbol("lastPromise"),u=Symbol("handlePromise"),w=Symbol("stream");function g(R,P){return{value:R,done:P}}function S(R){var P=R[a];if(P!==null){var T=R[w].read();T!==null&&(R[l]=null,R[a]=null,R[o]=null,P(g(T,!1)))}}function N(R){K.dist.process.nextTick(S,R)}function F(R,P){return function(T,q){R.then(function(){if(P[d]){T(g(void 0,!0));return}P[u](T,q)},q)}}var j=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((e={get stream(){return this[w]},next:function(){var P=this,T=this[f];if(T!==null)return Promise.reject(T);if(this[d])return Promise.resolve(g(void 0,!0));if(this[w].destroyed)return new Promise(function(x,re){K.dist.process.nextTick(function(){P[f]?re(P[f]):x(g(void 0,!0))})});var q=this[l],C;if(q)C=new Promise(F(q,this));else{var z=this[w].read();if(z!==null)return Promise.resolve(g(z,!1));C=new Promise(this[u])}return this[l]=C,C}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var P=this;return new Promise(function(T,q){P[w].destroy(null,function(C){if(C){q(C);return}T(g(void 0,!0))})})}),e),j),I=function(P){var T,q=Object.create(k,(T={},t(T,w,{value:P,writable:!0}),t(T,a,{value:null,writable:!0}),t(T,o,{value:null,writable:!0}),t(T,f,{value:null,writable:!0}),t(T,d,{value:P._readableState.endEmitted,writable:!0}),t(T,u,{value:function(z,x){var re=q[w].read();re?(q[l]=null,q[a]=null,q[o]=null,z(g(re,!1))):(q[a]=z,q[o]=x)},writable:!0}),T));return q[l]=null,i(P,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var z=q[o];z!==null&&(q[l]=null,q[a]=null,q[o]=null,z(C)),q[f]=C;return}var x=q[a];x!==null&&(q[l]=null,q[a]=null,q[o]=null,x(g(void 0,!0))),q[d]=!0}),P.on("readable",N.bind(null,q)),q};return mn=I,mn}var wn,va;function gu(){return va||(va=1,wn=function(){throw new Error("Readable.from is not available in the browser")}),wn}var En,ga;function _f(){if(ga)return En;ga=1,En=x;var e;x.ReadableState=z,Pe.eventsExports.EventEmitter;var t=function(p,$){return p.listeners($).length},r=hf,n=K.bufferPolyfill.Buffer,i=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(h){return n.from(h)}function o(h){return n.isBuffer(h)||h instanceof i}var f=Pe.require$$3,d;f&&f.debuglog?d=f.debuglog("stream"):d=function(){};var l=ru(),u=df,w=yf,g=w.getHighWaterMark,S=It.codes,N=S.ERR_INVALID_ARG_TYPE,F=S.ERR_STREAM_PUSH_AFTER_EOF,j=S.ERR_METHOD_NOT_IMPLEMENTED,k=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,R,P;Pe.inherits_browserExports(x,r);var T=u.errorOrDestroy,q=["error","close","destroy","pause","resume"];function C(h,p,$){if(typeof h.prependListener=="function")return h.prependListener(p,$);!h._events||!h._events[p]?h.on(p,$):Array.isArray(h._events[p])?h._events[p].unshift($):h._events[p]=[$,h._events[p]]}function z(h,p,$){e=e||qt(),h=h||{},typeof $!="boolean"&&($=p instanceof e),this.objectMode=!!h.objectMode,$&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=g(this,h,"readableHighWaterMark",$),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(I||(I=Pe.requireString_decoder().StringDecoder),this.decoder=new I(h.encoding),this.encoding=h.encoding)}function x(h){if(e=e||qt(),!(this instanceof x))return new x(h);var p=this instanceof e;this._readableState=new z(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),r.call(this)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),x.prototype.destroy=u.destroy,x.prototype._undestroy=u.undestroy,x.prototype._destroy=function(h,p){p(h)},x.prototype.push=function(h,p){var $=this._readableState,V;return $.objectMode?V=!0:typeof h=="string"&&(p=p||$.defaultEncoding,p!==$.encoding&&(h=n.from(h,p),p=""),V=!0),re(this,h,p,!1,V)},x.prototype.unshift=function(h){return re(this,h,null,!0,!1)};function re(h,p,$,V,se){d("readableAddChunk",p);var oe=h._readableState;if(p===null)oe.reading=!1,ae(h,oe);else{var de;if(se||(de=b(oe,p)),de)T(h,de);else if(oe.objectMode||p&&p.length>0)if(typeof p!="string"&&!oe.objectMode&&Object.getPrototypeOf(p)!==n.prototype&&(p=a(p)),V)oe.endEmitted?T(h,new k):J(h,oe,p,!0);else if(oe.ended)T(h,new F);else{if(oe.destroyed)return!1;oe.reading=!1,oe.decoder&&!$?(p=oe.decoder.write(p),oe.objectMode||p.length!==0?J(h,oe,p,!1):Z(h,oe)):J(h,oe,p,!1)}else V||(oe.reading=!1,Z(h,oe))}return!oe.ended&&(oe.length<oe.highWaterMark||oe.length===0)}function J(h,p,$,V){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",$)):(p.length+=p.objectMode?1:$.length,V?p.buffer.unshift($):p.buffer.push($),p.needReadable&&ue(h)),Z(h,p)}function b(h,p){var $;return!o(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&($=new N("chunk",["string","Buffer","Uint8Array"],p)),$}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(h){I||(I=Pe.requireString_decoder().StringDecoder);var p=new I(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var $=this._readableState.buffer.head,V="";$!==null;)V+=p.write($.data),$=$.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var B=1073741824;function Q(h){return h>=B?h=B:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ne(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=Q(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}x.prototype.read=function(h){d("read",h),h=parseInt(h,10);var p=this._readableState,$=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return d("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?m(this):ue(this),null;if(h=ne(h,p),h===0&&p.ended)return p.length===0&&m(this),null;var V=p.needReadable;d("need readable",V),(p.length===0||p.length-h<p.highWaterMark)&&(V=!0,d("length less than watermark",V)),p.ended||p.reading?(V=!1,d("reading or ended",V)):V&&(d("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ne($,p)));var se;return h>0?se=y(h,p):se=null,se===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),$!==h&&p.ended&&m(this)),se!==null&&this.emit("data",se),se};function ae(h,p){if(d("onEofChunk"),!p.ended){if(p.decoder){var $=p.decoder.end();$&&$.length&&(p.buffer.push($),p.length+=p.objectMode?1:$.length)}p.ended=!0,p.sync?ue(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ie(h)))}}function ue(h){var p=h._readableState;d("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(d("emitReadable",p.flowing),p.emittedReadable=!0,K.dist.process.nextTick(ie,h))}function ie(h){var p=h._readableState;d("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,c(h)}function Z(h,p){p.readingMore||(p.readingMore=!0,K.dist.process.nextTick(D,h,p))}function D(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var $=p.length;if(d("maybeReadMore read 0"),h.read(0),$===p.length)break}p.readingMore=!1}x.prototype._read=function(h){T(this,new j("_read()"))},x.prototype.pipe=function(h,p){var $=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=h;break;case 1:V.pipes=[V.pipes,h];break;default:V.pipes.push(h);break}V.pipesCount+=1,d("pipe count=%d opts=%j",V.pipesCount,p);var se=(!p||p.end!==!1)&&h!==K.dist.process.stdout&&h!==K.dist.process.stderr,oe=se?_e:G;V.endEmitted?K.dist.process.nextTick(oe):$.once("end",oe),h.on("unpipe",de);function de(ee,te){d("onunpipe"),ee===$&&te&&te.hasUnpiped===!1&&(te.hasUnpiped=!0,Te())}function _e(){d("onend"),h.end()}var H=W($);h.on("drain",H);var je=!1;function Te(){d("cleanup"),h.removeListener("close",s),h.removeListener("finish",O),h.removeListener("drain",H),h.removeListener("error",X),h.removeListener("unpipe",de),$.removeListener("end",_e),$.removeListener("end",G),$.removeListener("data",L),je=!0,V.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&H()}$.on("data",L);function L(ee){d("ondata");var te=h.write(ee);d("dest.write",te),te===!1&&((V.pipesCount===1&&V.pipes===h||V.pipesCount>1&&U(V.pipes,h)!==-1)&&!je&&(d("false write response, pause",V.awaitDrain),V.awaitDrain++),$.pause())}function X(ee){d("onerror",ee),G(),h.removeListener("error",X),t(h,"error")===0&&T(h,ee)}C(h,"error",X);function s(){h.removeListener("finish",O),G()}h.once("close",s);function O(){d("onfinish"),h.removeListener("close",s),G()}h.once("finish",O);function G(){d("unpipe"),$.unpipe(h)}return h.emit("pipe",$),V.flowing||(d("pipe resume"),$.resume()),h};function W(h){return function(){var $=h._readableState;d("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(h,"data")&&($.flowing=!0,c(h))}}x.prototype.unpipe=function(h){var p=this._readableState,$={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,$),this);if(!h){var V=p.pipes,se=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var oe=0;oe<se;oe++)V[oe].emit("unpipe",this,{hasUnpiped:!1});return this}var de=U(p.pipes,h);return de===-1?this:(p.pipes.splice(de,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,$),this)},x.prototype.on=function(h,p){var $=r.prototype.on.call(this,h,p),V=this._readableState;return h==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):h==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,d("on readable",V.length,V.reading),V.length?ue(this):V.reading||K.dist.process.nextTick(A,this)),$},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(h,p){var $=r.prototype.removeListener.call(this,h,p);return h==="readable"&&K.dist.process.nextTick(_,this),$},x.prototype.removeAllListeners=function(h){var p=r.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&K.dist.process.nextTick(_,this),p};function _(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function A(h){d("readable nexttick read 0"),h.read(0)}x.prototype.resume=function(){var h=this._readableState;return h.flowing||(d("resume"),h.flowing=!h.readableListening,v(this,h)),h.paused=!1,this};function v(h,p){p.resumeScheduled||(p.resumeScheduled=!0,K.dist.process.nextTick(E,h,p))}function E(h,p){d("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),c(h),p.flowing&&!p.reading&&h.read(0)}x.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function c(h){var p=h._readableState;for(d("flow",p.flowing);p.flowing&&h.read()!==null;);}x.prototype.wrap=function(h){var p=this,$=this._readableState,V=!1;h.on("end",function(){if(d("wrapped end"),$.decoder&&!$.ended){var de=$.decoder.end();de&&de.length&&p.push(de)}p.push(null)}),h.on("data",function(de){if(d("wrapped data"),$.decoder&&(de=$.decoder.write(de)),!($.objectMode&&de==null)&&!(!$.objectMode&&(!de||!de.length))){var _e=p.push(de);_e||(V=!0,h.pause())}});for(var se in h)this[se]===void 0&&typeof h[se]=="function"&&(this[se]=function(_e){return function(){return h[_e].apply(h,arguments)}}(se));for(var oe=0;oe<q.length;oe++)h.on(q[oe],this.emit.bind(this,q[oe]));return this._read=function(de){d("wrapped _read",de),V&&(V=!1,h.resume())},this},typeof Symbol=="function"&&(x.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=vu()),R(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),x._fromList=y,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function y(h,p){if(p.length===0)return null;var $;return p.objectMode?$=p.buffer.shift():!h||h>=p.length?(p.decoder?$=p.buffer.join(""):p.buffer.length===1?$=p.buffer.first():$=p.buffer.concat(p.length),p.buffer.clear()):$=p.buffer.consume(h,p.decoder),$}function m(h){var p=h._readableState;d("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,K.dist.process.nextTick(M,p,h))}function M(h,p){if(d("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var $=p._writableState;(!$||$.autoDestroy&&$.finished)&&p.destroy()}}typeof Symbol=="function"&&(x.from=function(h,p){return P===void 0&&(P=gu()),P(x,h,p)});function U(h,p){for(var $=0,V=h.length;$<V;$++)if(h[$]===p)return $;return-1}return En}var bf=ot,Qr=It.codes,_u=Qr.ERR_METHOD_NOT_IMPLEMENTED,bu=Qr.ERR_MULTIPLE_CALLBACK,mu=Qr.ERR_TRANSFORM_ALREADY_TRANSFORMING,wu=Qr.ERR_TRANSFORM_WITH_LENGTH_0,en=qt();Pe.inherits_browserExports(ot,en);function Eu(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new bu);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ot(e){if(!(this instanceof ot))return new ot(e);en.call(this,e),this._transformState={afterTransform:Eu.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Su)}function Su(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){_a(e,t,r)}):_a(this,null,null)}ot.prototype.push=function(e,t){return this._transformState.needTransform=!1,en.prototype.push.call(this,e,t)};ot.prototype._transform=function(e,t,r){r(new _u("_transform()"))};ot.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ot.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ot.prototype._destroy=function(e,t){en.prototype._destroy.call(this,e,function(r){t(r)})};function _a(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new wu;if(e._transformState.transforming)throw new mu;return e.push(null)}var Ru=ar,mf=bf;Pe.inherits_browserExports(ar,mf);function ar(e){if(!(this instanceof ar))return new ar(e);mf.call(this,e)}ar.prototype._transform=function(e,t,r){r(null,e)};var Sn;function Au(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var wf=It.codes,Ou=wf.ERR_MISSING_ARGS,Tu=wf.ERR_STREAM_DESTROYED;function ba(e){if(e)throw e}function Iu(e){return e.setHeader&&typeof e.abort=="function"}function Pu(e,t,r,n){n=Au(n);var i=!1;e.on("close",function(){i=!0}),Sn===void 0&&(Sn=zi),Sn(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,Iu(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Tu("pipe"))}}}function ma(e){e()}function Nu(e,t){return e.pipe(t)}function Du(e){return!e.length||typeof e[e.length-1]!="function"?ba:e.pop()}function Lu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Du(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Ou("streams");var i,a=t.map(function(o,f){var d=f<t.length-1,l=f>0;return Pu(o,d,l,function(u){i||(i=u),u&&a.forEach(ma),!d&&(a.forEach(ma),n(i))})});return t.reduce(Nu)}var Mu=Lu;(function(e,t){t=e.exports=_f(),t.Stream=t,t.Readable=t,t.Writable=vf(),t.Duplex=qt(),t.Transform=bf,t.PassThrough=Ru,t.finished=zi,t.pipeline=Mu})(wi,wi.exports);var Ef=wi.exports,wa=qi,ku=Pe.inherits_browserExports,Sf=Ef,mr=Jr.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Zi=Jr.IncomingMessage=function(e,t,r,n){var i=this;if(Sf.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){K.dist.process.nextTick(function(){i.emit("close")})}),r==="fetch"){let u=function(){o.read().then(function(w){if(!i._destroyed){if(n(w.done),w.done){i.push(null);return}i.push(K.dist.Buffer.from(w.value)),u()}}).catch(function(w){n(!0),i._destroyed||i.emit("error",w)})};if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(w,g){i.headers[g.toLowerCase()]=w,i.rawHeaders.push(g,w)}),wa.writableStream){var a=new WritableStream({write:function(w){return n(!1),new Promise(function(g,S){i._destroyed?S():i.push(K.dist.Buffer.from(w))?g():i._resumeFetch=g})},close:function(){n(!0),i._destroyed||i.push(null)},abort:function(w){n(!0),i._destroyed||i.emit("error",w)}});try{t.body.pipeTo(a).catch(function(w){n(!0),i._destroyed||i.emit("error",w)});return}catch{}}var o=t.body.getReader();u()}else{i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText;var f=e.getAllResponseHeaders().split(/\r?\n/);if(f.forEach(function(u){var w=u.match(/^([^:]+):\s*(.*)/);if(w){var g=w[1].toLowerCase();g==="set-cookie"?(i.headers[g]===void 0&&(i.headers[g]=[]),i.headers[g].push(w[2])):i.headers[g]!==void 0?i.headers[g]+=", "+w[2]:i.headers[g]=w[2],i.rawHeaders.push(w[1],w[2])}}),i._charset="x-user-defined",!wa.overrideMimeType){var d=i.rawHeaders["mime-type"];if(d){var l=d.match(/;\s*charset=([^;])(;|$)/);l&&(i._charset=l[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};ku(Zi,Sf.Readable);Zi.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())};Zi.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,n=null;switch(t._mode){case"text":if(n=r.responseText,n.length>t._pos){var i=n.substr(t._pos);if(t._charset==="x-user-defined"){for(var a=K.dist.Buffer.alloc(i.length),o=0;o<i.length;o++)a[o]=i.charCodeAt(o)&255;t.push(a)}else t.push(i,t._charset);t._pos=n.length}break;case"arraybuffer":if(r.readyState!==mr.DONE||!r.response)break;n=r.response,t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=r.response,r.readyState!==mr.LOADING||!n)break;t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"ms-stream":if(n=r.response,r.readyState!==mr.LOADING)break;var f=new K.commonjsGlobal.MSStreamReader;f.onprogress=function(){f.result.byteLength>t._pos&&(t.push(K.dist.Buffer.from(new Uint8Array(f.result.slice(t._pos)))),t._pos=f.result.byteLength)},f.onload=function(){e(!0),t.push(null)},f.readAsArrayBuffer(n);break}t._xhr.readyState===mr.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var mt=qi,Fu=Pe.inherits_browserExports,Rf=Jr,Hi=Ef,ju=Rf.IncomingMessage,Ea=Rf.readyStates;function xu(e,t){return mt.fetch&&t?"fetch":mt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":mt.msstream?"ms-stream":mt.arraybuffer&&e?"arraybuffer":"text"}var Le=cf.exports=function(e){var t=this;Hi.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+K.dist.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(i){t.setHeader(i,e.headers[i])});var r,n=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!mt.abortController)n=!1,r=!0;else if(e.mode==="prefer-streaming")r=!1;else if(e.mode==="allow-wrong-content-type")r=!mt.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")r=!0;else throw new Error("Invalid value for opts.mode");t._mode=xu(r,n),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};Fu(Le,Hi.Writable);Le.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();Cu.indexOf(n)===-1&&(r._headers[n]={name:e,value:t})};Le.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null};Le.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]};Le.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var r=e._headers,n=null;t.method!=="GET"&&t.method!=="HEAD"&&(n=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var i=[];if(Object.keys(r).forEach(function(d){var l=r[d].name,u=r[d].value;Array.isArray(u)?u.forEach(function(w){i.push([l,w])}):i.push([l,u])}),e._mode==="fetch"){var a=null;if(mt.abortController){var o=new AbortController;a=o.signal,e._fetchAbortController=o,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=K.commonjsGlobal.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}K.commonjsGlobal.fetch(e._opts.url,{method:e._opts.method,headers:i,body:n||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then(function(d){e._fetchResponse=d,e._resetTimers(!1),e._connect()},function(d){e._resetTimers(!0),e._destroyed||e.emit("error",d)})}else{var f=e._xhr=new K.commonjsGlobal.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}"responseType"in f&&(f.responseType=e._mode),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(d){f.setRequestHeader(d[0],d[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case Ea.LOADING:case Ea.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{f.send(n)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}}}};function $u(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}Le.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!$u(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};Le.prototype._connect=function(){var e=this;e._destroyed||(e._response=new ju(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))};Le.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()};Le.prototype._resetTimers=function(e){var t=this;K.commonjsGlobal.clearTimeout(t._socketTimer),t._socketTimer=null,e?(K.commonjsGlobal.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=K.commonjsGlobal.setTimeout(function(){t.emit("timeout")},t._socketTimeout))};Le.prototype.abort=Le.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)};Le.prototype.end=function(e,t,r){var n=this;typeof e=="function"&&(r=e,e=void 0),Hi.Writable.prototype.end.call(n,e,t,r)};Le.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)};Le.prototype.flushHeaders=function(){};Le.prototype.setNoDelay=function(){};Le.prototype.setSocketKeepAlive=function(){};var Cu=["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"],Bu=cf.exports,Uu=zu,qu=Object.prototype.hasOwnProperty;function zu(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)qu.call(r,n)&&(e[n]=r[n])}return e}var Zu={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"},Si={exports:{}},Ur={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ur.exports;(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,a=typeof K.commonjsGlobal=="object"&&K.commonjsGlobal;(a.global===a||a.window===a||a.self===a)&&(r=a);var o,f=2147483647,d=36,l=1,u=26,w=38,g=700,S=72,N=128,F="-",j=/^xn--/,k=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=d-l,T=Math.floor,q=String.fromCharCode,C;function z(D){throw new RangeError(R[D])}function x(D,W){for(var _=D.length,A=[];_--;)A[_]=W(D[_]);return A}function re(D,W){var _=D.split("@"),A="";_.length>1&&(A=_[0]+"@",D=_[1]),D=D.replace(I,".");var v=D.split("."),E=x(v,W).join(".");return A+E}function J(D){for(var W=[],_=0,A=D.length,v,E;_<A;)v=D.charCodeAt(_++),v>=55296&&v<=56319&&_<A?(E=D.charCodeAt(_++),(E&64512)==56320?W.push(((v&1023)<<10)+(E&1023)+65536):(W.push(v),_--)):W.push(v);return W}function b(D){return x(D,function(W){var _="";return W>65535&&(W-=65536,_+=q(W>>>10&1023|55296),W=56320|W&1023),_+=q(W),_}).join("")}function B(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:d}function Q(D,W){return D+22+75*(D<26)-((W!=0)<<5)}function ne(D,W,_){var A=0;for(D=_?T(D/g):D>>1,D+=T(D/W);D>P*u>>1;A+=d)D=T(D/P);return T(A+(P+1)*D/(D+w))}function ae(D){var W=[],_=D.length,A,v=0,E=N,c=S,y,m,M,U,h,p,$,V,se;for(y=D.lastIndexOf(F),y<0&&(y=0),m=0;m<y;++m)D.charCodeAt(m)>=128&&z("not-basic"),W.push(D.charCodeAt(m));for(M=y>0?y+1:0;M<_;){for(U=v,h=1,p=d;M>=_&&z("invalid-input"),$=B(D.charCodeAt(M++)),($>=d||$>T((f-v)/h))&&z("overflow"),v+=$*h,V=p<=c?l:p>=c+u?u:p-c,!($<V);p+=d)se=d-V,h>T(f/se)&&z("overflow"),h*=se;A=W.length+1,c=ne(v-U,A,U==0),T(v/A)>f-E&&z("overflow"),E+=T(v/A),v%=A,W.splice(v++,0,E)}return b(W)}function ue(D){var W,_,A,v,E,c,y,m,M,U,h,p=[],$,V,se,oe;for(D=J(D),$=D.length,W=N,_=0,E=S,c=0;c<$;++c)h=D[c],h<128&&p.push(q(h));for(A=v=p.length,v&&p.push(F);A<$;){for(y=f,c=0;c<$;++c)h=D[c],h>=W&&h<y&&(y=h);for(V=A+1,y-W>T((f-_)/V)&&z("overflow"),_+=(y-W)*V,W=y,c=0;c<$;++c)if(h=D[c],h<W&&++_>f&&z("overflow"),h==W){for(m=_,M=d;U=M<=E?l:M>=E+u?u:M-E,!(m<U);M+=d)oe=m-U,se=d-U,p.push(q(Q(U+oe%se,0))),m=T(oe/se);p.push(q(Q(m,0))),E=ne(_,V,A==v),_=0,++A}++_,++W}return p.join("")}function ie(D){return re(D,function(W){return j.test(W)?ae(W.slice(4).toLowerCase()):W})}function Z(D){return re(D,function(W){return k.test(W)?"xn--"+ue(W):W})}if(o={version:"1.4.1",ucs2:{decode:J,encode:b},decode:ae,encode:ue,toASCII:Z,toUnicode:ie},n&&i)if(e.exports==n)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(n[C]=o[C]);else r.punycode=o})(K.commonjsGlobal)})(Ur,Ur.exports);var Af=Ur.exports,ft=TypeError,Wi=typeof Map=="function"&&Map.prototype,Rn=Object.getOwnPropertyDescriptor&&Wi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,qr=Wi&&Rn&&typeof Rn.get=="function"?Rn.get:null,Sa=Wi&&Map.prototype.forEach,Gi=typeof Set=="function"&&Set.prototype,An=Object.getOwnPropertyDescriptor&&Gi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zr=Gi&&An&&typeof An.get=="function"?An.get:null,Ra=Gi&&Set.prototype.forEach,Hu=typeof WeakMap=="function"&&WeakMap.prototype,Qt=Hu?WeakMap.prototype.has:null,Wu=typeof WeakSet=="function"&&WeakSet.prototype,er=Wu?WeakSet.prototype.has:null,Gu=typeof WeakRef=="function"&&WeakRef.prototype,Aa=Gu?WeakRef.prototype.deref:null,Vu=Boolean.prototype.valueOf,Ku=Object.prototype.toString,Yu=Function.prototype.toString,Xu=String.prototype.match,Vi=String.prototype.slice,ht=String.prototype.replace,Ju=String.prototype.toUpperCase,Oa=String.prototype.toLowerCase,Of=RegExp.prototype.test,Ta=Array.prototype.concat,Qe=Array.prototype.join,Qu=Array.prototype.slice,Ia=Math.floor,Ri=typeof BigInt=="function"?BigInt.prototype.valueOf:null,On=Object.getOwnPropertySymbols,Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,zt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===zt||!0)?Symbol.toStringTag:null,Tf=Object.prototype.propertyIsEnumerable,Pa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Na(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Of.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Ia(-e):Ia(e);if(n!==e){var i=String(n),a=Vi.call(t,i.length+1);return ht.call(i,r,"$&_")+"."+ht.call(ht.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ht.call(t,r,"$&_")}var Oi=Pe.require$$3,Da=Oi.custom,La=Nf(Da)?Da:null,If={__proto__:null,double:'"',single:"'"},es={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},tn=function e(t,r,n,i){var a=r||{};if(it(a,"quoteStyle")&&!it(If,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(it(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=it(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(it(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(it(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Lf(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var d=String(t);return f?Na(t,d):d}if(typeof t=="bigint"){var l=String(t)+"n";return f?Na(t,l):l}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return Ti(t)?"[Array]":"[Object]";var w=_s(a,n);if(typeof i>"u")i=[];else if(Df(i,t)>=0)return"[Circular]";function g(B,Q,ne){if(Q&&(i=Qu.call(i),i.push(Q)),ne){var ae={depth:a.depth};return it(a,"quoteStyle")&&(ae.quoteStyle=a.quoteStyle),e(B,ae,n+1,i)}return e(B,a,n+1,i)}if(typeof t=="function"&&!Ma(t)){var S=us(t),N=wr(t,g);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(N.length>0?" { "+Qe.call(N,", ")+" }":"")}if(Nf(t)){var F=zt?ht.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ai.call(t);return typeof t=="object"&&!zt?Yt(F):F}if(ys(t)){for(var j="<"+Oa.call(String(t.nodeName)),k=t.attributes||[],I=0;I<k.length;I++)j+=" "+k[I].name+"="+Pf(ts(k[I].value),"double",a);return j+=">",t.childNodes&&t.childNodes.length&&(j+="..."),j+="</"+Oa.call(String(t.nodeName))+">",j}if(Ti(t)){if(t.length===0)return"[]";var R=wr(t,g);return w&&!gs(R)?"["+Ii(R,w)+"]":"[ "+Qe.call(R,", ")+" ]"}if(ns(t)){var P=wr(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Tf.call(t,"cause")?"{ ["+String(t)+"] "+Qe.call(Ta.call("[cause]: "+g(t.cause),P),", ")+" }":P.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Qe.call(P,", ")+" }"}if(typeof t=="object"&&o){if(La&&typeof t[La]=="function"&&Oi)return Oi(t,{depth:u-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ss(t)){var T=[];return Sa&&Sa.call(t,function(B,Q){T.push(g(Q,t,!0)+" => "+g(B,t))}),ka("Map",qr.call(t),T,w)}if(ds(t)){var q=[];return Ra&&Ra.call(t,function(B){q.push(g(B,t))}),ka("Set",zr.call(t),q,w)}if(cs(t))return Tn("WeakMap");if(ps(t))return Tn("WeakSet");if(hs(t))return Tn("WeakRef");if(as(t))return Yt(g(Number(t)));if(fs(t))return Yt(g(Ri.call(t)));if(os(t))return Yt(Vu.call(t));if(is(t))return Yt(g(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof K.commonjsGlobal<"u"&&t===K.commonjsGlobal)return"{ [object globalThis] }";if(!rs(t)&&!Ma(t)){var C=wr(t,g),z=Pa?Pa(t)===Object.prototype:t instanceof Object||t.constructor===Object,x=t instanceof Object?"":"null prototype",re=!z&&tr&&Object(t)===t&&tr in t?Vi.call(gt(t),8,-1):x?"Object":"",J=z||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",b=J+(re||x?"["+Qe.call(Ta.call([],re||[],x||[]),": ")+"] ":"");return C.length===0?b+"{}":w?b+"{"+Ii(C,w)+"}":b+"{ "+Qe.call(C,", ")+" }"}return String(t)};function Pf(e,t,r){var n=r.quoteStyle||t,i=If[n];return i+e+i}function ts(e){return ht.call(String(e),/"/g,"&quot;")}function Pt(e){return!tr||!(typeof e=="object"&&(tr in e||typeof e[tr]<"u"))}function Ti(e){return gt(e)==="[object Array]"&&Pt(e)}function rs(e){return gt(e)==="[object Date]"&&Pt(e)}function Ma(e){return gt(e)==="[object RegExp]"&&Pt(e)}function ns(e){return gt(e)==="[object Error]"&&Pt(e)}function is(e){return gt(e)==="[object String]"&&Pt(e)}function as(e){return gt(e)==="[object Number]"&&Pt(e)}function os(e){return gt(e)==="[object Boolean]"&&Pt(e)}function Nf(e){if(zt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ai)return!1;try{return Ai.call(e),!0}catch{}return!1}function fs(e){if(!e||typeof e!="object"||!Ri)return!1;try{return Ri.call(e),!0}catch{}return!1}var ls=Object.prototype.hasOwnProperty||function(e){return e in this};function it(e,t){return ls.call(e,t)}function gt(e){return Ku.call(e)}function us(e){if(e.name)return e.name;var t=Xu.call(Yu.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Df(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ss(e){if(!qr||!e||typeof e!="object")return!1;try{qr.call(e);try{zr.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cs(e){if(!Qt||!e||typeof e!="object")return!1;try{Qt.call(e,Qt);try{er.call(e,er)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function hs(e){if(!Aa||!e||typeof e!="object")return!1;try{return Aa.call(e),!0}catch{}return!1}function ds(e){if(!zr||!e||typeof e!="object")return!1;try{zr.call(e);try{qr.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ps(e){if(!er||!e||typeof e!="object")return!1;try{er.call(e,er);try{Qt.call(e,Qt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ys(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Lf(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Lf(Vi.call(e,0,t.maxStringLength),t)+n}var i=es[t.quoteStyle||"single"];i.lastIndex=0;var a=ht.call(ht.call(e,i,"\\$1"),/[\x00-\x1f]/g,vs);return Pf(a,"single",t)}function vs(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Ju.call(t.toString(16))}function Yt(e){return"Object("+e+")"}function Tn(e){return e+" { ? }"}function ka(e,t,r,n){var i=n?Ii(r,n):Qe.call(r,", ");return e+" ("+t+") {"+i+"}"}function gs(e){for(var t=0;t<e.length;t++)if(Df(e[t],`
1
+ "use strict";const K=require("./address-RcMobNYE.js"),Pe=require("./index-Bn2HXKJ4.js");var Xr={},cf={exports:{}},qi={};(function(e){e.fetch=i(K.commonjsGlobal.fetch)&&i(K.commonjsGlobal.ReadableStream),e.writableStream=i(K.commonjsGlobal.WritableStream),e.abortController=i(K.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(K.commonjsGlobal.XMLHttpRequest){t=new K.commonjsGlobal.XMLHttpRequest;try{t.open("GET",K.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(a){var o=r();if(!o)return!1;try{return o.responseType=a,o.responseType===a}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?i(r().overrideMimeType):!1);function i(a){return typeof a=="function"}t=null})(qi);var Jr={},wi={exports:{}},hf=Pe.eventsExports.EventEmitter,gn,ua;function ru(){if(ua)return gn;ua=1;function e(N,F){var j=Object.keys(N);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(N);F&&(k=k.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),j.push.apply(j,k)}return j}function t(N){for(var F=1;F<arguments.length;F++){var j=arguments[F]!=null?arguments[F]:{};F%2?e(Object(j),!0).forEach(function(k){r(N,k,j[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(j)):e(Object(j)).forEach(function(k){Object.defineProperty(N,k,Object.getOwnPropertyDescriptor(j,k))})}return N}function r(N,F,j){return F=o(F),F in N?Object.defineProperty(N,F,{value:j,enumerable:!0,configurable:!0,writable:!0}):N[F]=j,N}function n(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}function i(N,F){for(var j=0;j<F.length;j++){var k=F[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,o(k.key),k)}}function a(N,F,j){return F&&i(N.prototype,F),Object.defineProperty(N,"prototype",{writable:!1}),N}function o(N){var F=f(N,"string");return typeof F=="symbol"?F:String(F)}function f(N,F){if(typeof N!="object"||N===null)return N;var j=N[Symbol.toPrimitive];if(j!==void 0){var k=j.call(N,F);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}var d=K.bufferPolyfill,l=d.Buffer,u=Pe.require$$3,w=u.inspect,g=w&&w.custom||"inspect";function S(N,F,j){l.prototype.copy.call(N,F,j)}return gn=function(){function N(){n(this,N),this.head=null,this.tail=null,this.length=0}return a(N,[{key:"push",value:function(j){var k={data:j,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(j){var k={data:j,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var k=this.head,I=""+k.data;k=k.next;)I+=j+k.data;return I}},{key:"concat",value:function(j){if(this.length===0)return l.alloc(0);for(var k=l.allocUnsafe(j>>>0),I=this.head,R=0;I;)S(I.data,k,R),R+=I.data.length,I=I.next;return k}},{key:"consume",value:function(j,k){var I;return j<this.head.data.length?(I=this.head.data.slice(0,j),this.head.data=this.head.data.slice(j)):j===this.head.data.length?I=this.shift():I=k?this._getString(j):this._getBuffer(j),I}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(j){var k=this.head,I=1,R=k.data;for(j-=R.length;k=k.next;){var P=k.data,T=j>P.length?P.length:j;if(T===P.length?R+=P:R+=P.slice(0,j),j-=T,j===0){T===P.length?(++I,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=P.slice(T));break}++I}return this.length-=I,R}},{key:"_getBuffer",value:function(j){var k=l.allocUnsafe(j),I=this.head,R=1;for(I.data.copy(k),j-=I.data.length;I=I.next;){var P=I.data,T=j>P.length?P.length:j;if(P.copy(k,k.length-j,0,T),j-=T,j===0){T===P.length?(++R,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=P.slice(T));break}++R}return this.length-=R,k}},{key:g,value:function(j,k){return w(this,t(t({},k),{},{depth:0,customInspect:!1}))}}]),N}(),gn}function nu(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,K.dist.process.nextTick(Ei,this,e)):K.dist.process.nextTick(Ei,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?K.dist.process.nextTick(Ir,r):(r._writableState.errorEmitted=!0,K.dist.process.nextTick(sa,r,a)):K.dist.process.nextTick(sa,r,a):t?(K.dist.process.nextTick(Ir,r),t(a)):K.dist.process.nextTick(Ir,r)}),this)}function sa(e,t){Ei(e,t),Ir(e)}function Ir(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function iu(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ei(e,t){e.emit("error",t)}function au(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var df={destroy:nu,undestroy:iu,errorOrDestroy:au},It={};function ou(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pf={};function Be(e,t,r){r||(r=Error);function n(a,o,f){return typeof t=="string"?t:t(a,o,f)}var i=function(a){ou(o,a);function o(f,d,l){return a.call(this,n(f,d,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,pf[e]=i}function ca(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function fu(e,t,r){return e.substr(0,t.length)===t}function lu(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function uu(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Be("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Be("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&fu(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(lu(e," argument"))i="The ".concat(e," ").concat(n," ").concat(ca(t,"type"));else{var a=uu(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(ca(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Be("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Be("ERR_STREAM_PREMATURE_CLOSE","Premature close");Be("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Be("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Be("ERR_STREAM_WRITE_AFTER_END","write after end");Be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Be("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");It.codes=pf;var su=It.codes.ERR_INVALID_OPT_VALUE;function cu(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function hu(e,t,r,n){var i=cu(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new su(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var yf={getHighWaterMark:hu},_n,ha;function vf(){if(ha)return _n;ha=1,_n=z;function e(c){var y=this;this.next=null,this.entry=null,this.finish=function(){E(y,c)}}var t;z.WritableState=q;var r={deprecate:Pe.requireBrowser()},n=hf,i=K.bufferPolyfill.Buffer,a=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(c){return i.from(c)}function f(c){return i.isBuffer(c)||c instanceof a}var d=df,l=yf,u=l.getHighWaterMark,w=It.codes,g=w.ERR_INVALID_ARG_TYPE,S=w.ERR_METHOD_NOT_IMPLEMENTED,N=w.ERR_MULTIPLE_CALLBACK,F=w.ERR_STREAM_CANNOT_PIPE,j=w.ERR_STREAM_DESTROYED,k=w.ERR_STREAM_NULL_VALUES,I=w.ERR_STREAM_WRITE_AFTER_END,R=w.ERR_UNKNOWN_ENCODING,P=d.errorOrDestroy;Pe.inherits_browserExports(z,n);function T(){}function q(c,y,m){t=t||qt(),c=c||{},typeof m!="boolean"&&(m=y instanceof t),this.objectMode=!!c.objectMode,m&&(this.objectMode=this.objectMode||!!c.writableObjectMode),this.highWaterMark=u(this,c,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=c.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){ae(y,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=c.emitClose!==!1,this.autoDestroy=!!c.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}q.prototype.getBuffer=function(){for(var y=this.bufferedRequest,m=[];y;)m.push(y),y=y.next;return m},function(){try{Object.defineProperty(q.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var C;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(y){return C.call(this,y)?!0:this!==z?!1:y&&y._writableState instanceof q}})):C=function(y){return y instanceof this};function z(c){t=t||qt();var y=this instanceof t;if(!y&&!C.call(z,this))return new z(c);this._writableState=new q(c,this,y),this.writable=!0,c&&(typeof c.write=="function"&&(this._write=c.write),typeof c.writev=="function"&&(this._writev=c.writev),typeof c.destroy=="function"&&(this._destroy=c.destroy),typeof c.final=="function"&&(this._final=c.final)),n.call(this)}z.prototype.pipe=function(){P(this,new F)};function x(c,y){var m=new I;P(c,m),K.dist.process.nextTick(y,m)}function re(c,y,m,M){var U;return m===null?U=new k:typeof m!="string"&&!y.objectMode&&(U=new g("chunk",["string","Buffer"],m)),U?(P(c,U),K.dist.process.nextTick(M,U),!1):!0}z.prototype.write=function(c,y,m){var M=this._writableState,U=!1,h=!M.objectMode&&f(c);return h&&!i.isBuffer(c)&&(c=o(c)),typeof y=="function"&&(m=y,y=null),h?y="buffer":y||(y=M.defaultEncoding),typeof m!="function"&&(m=T),M.ending?x(this,m):(h||re(this,M,c,m))&&(M.pendingcb++,U=b(this,M,h,c,y,m)),U},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var c=this._writableState;c.corked&&(c.corked--,!c.writing&&!c.corked&&!c.bufferProcessing&&c.bufferedRequest&&Z(this,c))},z.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((y+"").toLowerCase())>-1))throw new R(y);return this._writableState.defaultEncoding=y,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function J(c,y,m){return!c.objectMode&&c.decodeStrings!==!1&&typeof y=="string"&&(y=i.from(y,m)),y}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(c,y,m,M,U,h){if(!m){var p=J(y,M,U);M!==p&&(m=!0,U="buffer",M=p)}var $=y.objectMode?1:M.length;y.length+=$;var V=y.length<y.highWaterMark;if(V||(y.needDrain=!0),y.writing||y.corked){var se=y.lastBufferedRequest;y.lastBufferedRequest={chunk:M,encoding:U,isBuf:m,callback:h,next:null},se?se.next=y.lastBufferedRequest:y.bufferedRequest=y.lastBufferedRequest,y.bufferedRequestCount+=1}else B(c,y,!1,$,M,U,h);return V}function B(c,y,m,M,U,h,p){y.writelen=M,y.writecb=p,y.writing=!0,y.sync=!0,y.destroyed?y.onwrite(new j("write")):m?c._writev(U,y.onwrite):c._write(U,h,y.onwrite),y.sync=!1}function Q(c,y,m,M,U){--y.pendingcb,m?(K.dist.process.nextTick(U,M),K.dist.process.nextTick(A,c,y),c._writableState.errorEmitted=!0,P(c,M)):(U(M),c._writableState.errorEmitted=!0,P(c,M),A(c,y))}function ne(c){c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0}function ae(c,y){var m=c._writableState,M=m.sync,U=m.writecb;if(typeof U!="function")throw new N;if(ne(m),y)Q(c,m,M,y,U);else{var h=D(m)||c.destroyed;!h&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest&&Z(c,m),M?K.dist.process.nextTick(ue,c,m,h,U):ue(c,m,h,U)}}function ue(c,y,m,M){m||ie(c,y),y.pendingcb--,M(),A(c,y)}function ie(c,y){y.length===0&&y.needDrain&&(y.needDrain=!1,c.emit("drain"))}function Z(c,y){y.bufferProcessing=!0;var m=y.bufferedRequest;if(c._writev&&m&&m.next){var M=y.bufferedRequestCount,U=new Array(M),h=y.corkedRequestsFree;h.entry=m;for(var p=0,$=!0;m;)U[p]=m,m.isBuf||($=!1),m=m.next,p+=1;U.allBuffers=$,B(c,y,!0,y.length,U,"",h.finish),y.pendingcb++,y.lastBufferedRequest=null,h.next?(y.corkedRequestsFree=h.next,h.next=null):y.corkedRequestsFree=new e(y),y.bufferedRequestCount=0}else{for(;m;){var V=m.chunk,se=m.encoding,oe=m.callback,de=y.objectMode?1:V.length;if(B(c,y,!1,de,V,se,oe),m=m.next,y.bufferedRequestCount--,y.writing)break}m===null&&(y.lastBufferedRequest=null)}y.bufferedRequest=m,y.bufferProcessing=!1}z.prototype._write=function(c,y,m){m(new S("_write()"))},z.prototype._writev=null,z.prototype.end=function(c,y,m){var M=this._writableState;return typeof c=="function"?(m=c,c=null,y=null):typeof y=="function"&&(m=y,y=null),c!=null&&this.write(c,y),M.corked&&(M.corked=1,this.uncork()),M.ending||v(this,M,m),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function D(c){return c.ending&&c.length===0&&c.bufferedRequest===null&&!c.finished&&!c.writing}function W(c,y){c._final(function(m){y.pendingcb--,m&&P(c,m),y.prefinished=!0,c.emit("prefinish"),A(c,y)})}function _(c,y){!y.prefinished&&!y.finalCalled&&(typeof c._final=="function"&&!y.destroyed?(y.pendingcb++,y.finalCalled=!0,K.dist.process.nextTick(W,c,y)):(y.prefinished=!0,c.emit("prefinish")))}function A(c,y){var m=D(y);if(m&&(_(c,y),y.pendingcb===0&&(y.finished=!0,c.emit("finish"),y.autoDestroy))){var M=c._readableState;(!M||M.autoDestroy&&M.endEmitted)&&c.destroy()}return m}function v(c,y,m){y.ending=!0,A(c,y),m&&(y.finished?K.dist.process.nextTick(m):c.once("finish",m)),y.ended=!0,c.writable=!1}function E(c,y,m){var M=c.entry;for(c.entry=null;M;){var U=M.callback;y.pendingcb--,U(m),M=M.next}y.corkedRequestsFree.next=c}return Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(y){this._writableState&&(this._writableState.destroyed=y)}}),z.prototype.destroy=d.destroy,z.prototype._undestroy=d.undestroy,z.prototype._destroy=function(c,y){y(c)},_n}var bn,da;function qt(){if(da)return bn;da=1;var e=Object.keys||function(l){var u=[];for(var w in l)u.push(w);return u};bn=o;var t=_f(),r=vf();Pe.inherits_browserExports(o,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var a=n[i];o.prototype[a]||(o.prototype[a]=r.prototype[a])}function o(l){if(!(this instanceof o))return new o(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(){this._writableState.ended||K.dist.process.nextTick(d,this)}function d(l){l.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),bn}var pa=It.codes.ERR_STREAM_PREMATURE_CLOSE;function du(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function pu(){}function yu(e){return e.setHeader&&typeof e.abort=="function"}function gf(e,t,r){if(typeof t=="function")return gf(e,null,t);t||(t={}),r=du(r||pu);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||f()},o=e._writableState&&e._writableState.finished,f=function(){i=!1,o=!0,n||r.call(e)},d=e._readableState&&e._readableState.endEmitted,l=function(){n=!1,d=!0,i||r.call(e)},u=function(N){r.call(e,N)},w=function(){var N;if(n&&!d)return(!e._readableState||!e._readableState.ended)&&(N=new pa),r.call(e,N);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(N=new pa),r.call(e,N)},g=function(){e.req.on("finish",f)};return yu(e)?(e.on("complete",f),e.on("abort",w),e.req?g():e.on("request",g)):i&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",l),e.on("finish",f),t.error!==!1&&e.on("error",u),e.on("close",w),function(){e.removeListener("complete",f),e.removeListener("abort",w),e.removeListener("request",g),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",l),e.removeListener("error",u),e.removeListener("close",w)}}var zi=gf,mn,ya;function vu(){if(ya)return mn;ya=1;var e;function t(R,P,T){return P=r(P),P in R?Object.defineProperty(R,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[P]=T,R}function r(R){var P=n(R,"string");return typeof P=="symbol"?P:String(P)}function n(R,P){if(typeof R!="object"||R===null)return R;var T=R[Symbol.toPrimitive];if(T!==void 0){var q=T.call(R,P);if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(R)}var i=zi,a=Symbol("lastResolve"),o=Symbol("lastReject"),f=Symbol("error"),d=Symbol("ended"),l=Symbol("lastPromise"),u=Symbol("handlePromise"),w=Symbol("stream");function g(R,P){return{value:R,done:P}}function S(R){var P=R[a];if(P!==null){var T=R[w].read();T!==null&&(R[l]=null,R[a]=null,R[o]=null,P(g(T,!1)))}}function N(R){K.dist.process.nextTick(S,R)}function F(R,P){return function(T,q){R.then(function(){if(P[d]){T(g(void 0,!0));return}P[u](T,q)},q)}}var j=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((e={get stream(){return this[w]},next:function(){var P=this,T=this[f];if(T!==null)return Promise.reject(T);if(this[d])return Promise.resolve(g(void 0,!0));if(this[w].destroyed)return new Promise(function(x,re){K.dist.process.nextTick(function(){P[f]?re(P[f]):x(g(void 0,!0))})});var q=this[l],C;if(q)C=new Promise(F(q,this));else{var z=this[w].read();if(z!==null)return Promise.resolve(g(z,!1));C=new Promise(this[u])}return this[l]=C,C}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var P=this;return new Promise(function(T,q){P[w].destroy(null,function(C){if(C){q(C);return}T(g(void 0,!0))})})}),e),j),I=function(P){var T,q=Object.create(k,(T={},t(T,w,{value:P,writable:!0}),t(T,a,{value:null,writable:!0}),t(T,o,{value:null,writable:!0}),t(T,f,{value:null,writable:!0}),t(T,d,{value:P._readableState.endEmitted,writable:!0}),t(T,u,{value:function(z,x){var re=q[w].read();re?(q[l]=null,q[a]=null,q[o]=null,z(g(re,!1))):(q[a]=z,q[o]=x)},writable:!0}),T));return q[l]=null,i(P,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var z=q[o];z!==null&&(q[l]=null,q[a]=null,q[o]=null,z(C)),q[f]=C;return}var x=q[a];x!==null&&(q[l]=null,q[a]=null,q[o]=null,x(g(void 0,!0))),q[d]=!0}),P.on("readable",N.bind(null,q)),q};return mn=I,mn}var wn,va;function gu(){return va||(va=1,wn=function(){throw new Error("Readable.from is not available in the browser")}),wn}var En,ga;function _f(){if(ga)return En;ga=1,En=x;var e;x.ReadableState=z,Pe.eventsExports.EventEmitter;var t=function(p,$){return p.listeners($).length},r=hf,n=K.bufferPolyfill.Buffer,i=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(h){return n.from(h)}function o(h){return n.isBuffer(h)||h instanceof i}var f=Pe.require$$3,d;f&&f.debuglog?d=f.debuglog("stream"):d=function(){};var l=ru(),u=df,w=yf,g=w.getHighWaterMark,S=It.codes,N=S.ERR_INVALID_ARG_TYPE,F=S.ERR_STREAM_PUSH_AFTER_EOF,j=S.ERR_METHOD_NOT_IMPLEMENTED,k=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,R,P;Pe.inherits_browserExports(x,r);var T=u.errorOrDestroy,q=["error","close","destroy","pause","resume"];function C(h,p,$){if(typeof h.prependListener=="function")return h.prependListener(p,$);!h._events||!h._events[p]?h.on(p,$):Array.isArray(h._events[p])?h._events[p].unshift($):h._events[p]=[$,h._events[p]]}function z(h,p,$){e=e||qt(),h=h||{},typeof $!="boolean"&&($=p instanceof e),this.objectMode=!!h.objectMode,$&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=g(this,h,"readableHighWaterMark",$),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(I||(I=Pe.requireString_decoder().StringDecoder),this.decoder=new I(h.encoding),this.encoding=h.encoding)}function x(h){if(e=e||qt(),!(this instanceof x))return new x(h);var p=this instanceof e;this._readableState=new z(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),r.call(this)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),x.prototype.destroy=u.destroy,x.prototype._undestroy=u.undestroy,x.prototype._destroy=function(h,p){p(h)},x.prototype.push=function(h,p){var $=this._readableState,V;return $.objectMode?V=!0:typeof h=="string"&&(p=p||$.defaultEncoding,p!==$.encoding&&(h=n.from(h,p),p=""),V=!0),re(this,h,p,!1,V)},x.prototype.unshift=function(h){return re(this,h,null,!0,!1)};function re(h,p,$,V,se){d("readableAddChunk",p);var oe=h._readableState;if(p===null)oe.reading=!1,ae(h,oe);else{var de;if(se||(de=b(oe,p)),de)T(h,de);else if(oe.objectMode||p&&p.length>0)if(typeof p!="string"&&!oe.objectMode&&Object.getPrototypeOf(p)!==n.prototype&&(p=a(p)),V)oe.endEmitted?T(h,new k):J(h,oe,p,!0);else if(oe.ended)T(h,new F);else{if(oe.destroyed)return!1;oe.reading=!1,oe.decoder&&!$?(p=oe.decoder.write(p),oe.objectMode||p.length!==0?J(h,oe,p,!1):Z(h,oe)):J(h,oe,p,!1)}else V||(oe.reading=!1,Z(h,oe))}return!oe.ended&&(oe.length<oe.highWaterMark||oe.length===0)}function J(h,p,$,V){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",$)):(p.length+=p.objectMode?1:$.length,V?p.buffer.unshift($):p.buffer.push($),p.needReadable&&ue(h)),Z(h,p)}function b(h,p){var $;return!o(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&($=new N("chunk",["string","Buffer","Uint8Array"],p)),$}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(h){I||(I=Pe.requireString_decoder().StringDecoder);var p=new I(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var $=this._readableState.buffer.head,V="";$!==null;)V+=p.write($.data),$=$.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var B=1073741824;function Q(h){return h>=B?h=B:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ne(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=Q(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}x.prototype.read=function(h){d("read",h),h=parseInt(h,10);var p=this._readableState,$=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return d("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?m(this):ue(this),null;if(h=ne(h,p),h===0&&p.ended)return p.length===0&&m(this),null;var V=p.needReadable;d("need readable",V),(p.length===0||p.length-h<p.highWaterMark)&&(V=!0,d("length less than watermark",V)),p.ended||p.reading?(V=!1,d("reading or ended",V)):V&&(d("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ne($,p)));var se;return h>0?se=y(h,p):se=null,se===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),$!==h&&p.ended&&m(this)),se!==null&&this.emit("data",se),se};function ae(h,p){if(d("onEofChunk"),!p.ended){if(p.decoder){var $=p.decoder.end();$&&$.length&&(p.buffer.push($),p.length+=p.objectMode?1:$.length)}p.ended=!0,p.sync?ue(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ie(h)))}}function ue(h){var p=h._readableState;d("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(d("emitReadable",p.flowing),p.emittedReadable=!0,K.dist.process.nextTick(ie,h))}function ie(h){var p=h._readableState;d("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,c(h)}function Z(h,p){p.readingMore||(p.readingMore=!0,K.dist.process.nextTick(D,h,p))}function D(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var $=p.length;if(d("maybeReadMore read 0"),h.read(0),$===p.length)break}p.readingMore=!1}x.prototype._read=function(h){T(this,new j("_read()"))},x.prototype.pipe=function(h,p){var $=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=h;break;case 1:V.pipes=[V.pipes,h];break;default:V.pipes.push(h);break}V.pipesCount+=1,d("pipe count=%d opts=%j",V.pipesCount,p);var se=(!p||p.end!==!1)&&h!==K.dist.process.stdout&&h!==K.dist.process.stderr,oe=se?_e:G;V.endEmitted?K.dist.process.nextTick(oe):$.once("end",oe),h.on("unpipe",de);function de(ee,te){d("onunpipe"),ee===$&&te&&te.hasUnpiped===!1&&(te.hasUnpiped=!0,Te())}function _e(){d("onend"),h.end()}var H=W($);h.on("drain",H);var je=!1;function Te(){d("cleanup"),h.removeListener("close",s),h.removeListener("finish",O),h.removeListener("drain",H),h.removeListener("error",X),h.removeListener("unpipe",de),$.removeListener("end",_e),$.removeListener("end",G),$.removeListener("data",L),je=!0,V.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&H()}$.on("data",L);function L(ee){d("ondata");var te=h.write(ee);d("dest.write",te),te===!1&&((V.pipesCount===1&&V.pipes===h||V.pipesCount>1&&U(V.pipes,h)!==-1)&&!je&&(d("false write response, pause",V.awaitDrain),V.awaitDrain++),$.pause())}function X(ee){d("onerror",ee),G(),h.removeListener("error",X),t(h,"error")===0&&T(h,ee)}C(h,"error",X);function s(){h.removeListener("finish",O),G()}h.once("close",s);function O(){d("onfinish"),h.removeListener("close",s),G()}h.once("finish",O);function G(){d("unpipe"),$.unpipe(h)}return h.emit("pipe",$),V.flowing||(d("pipe resume"),$.resume()),h};function W(h){return function(){var $=h._readableState;d("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(h,"data")&&($.flowing=!0,c(h))}}x.prototype.unpipe=function(h){var p=this._readableState,$={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,$),this);if(!h){var V=p.pipes,se=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var oe=0;oe<se;oe++)V[oe].emit("unpipe",this,{hasUnpiped:!1});return this}var de=U(p.pipes,h);return de===-1?this:(p.pipes.splice(de,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,$),this)},x.prototype.on=function(h,p){var $=r.prototype.on.call(this,h,p),V=this._readableState;return h==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):h==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,d("on readable",V.length,V.reading),V.length?ue(this):V.reading||K.dist.process.nextTick(A,this)),$},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(h,p){var $=r.prototype.removeListener.call(this,h,p);return h==="readable"&&K.dist.process.nextTick(_,this),$},x.prototype.removeAllListeners=function(h){var p=r.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&K.dist.process.nextTick(_,this),p};function _(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function A(h){d("readable nexttick read 0"),h.read(0)}x.prototype.resume=function(){var h=this._readableState;return h.flowing||(d("resume"),h.flowing=!h.readableListening,v(this,h)),h.paused=!1,this};function v(h,p){p.resumeScheduled||(p.resumeScheduled=!0,K.dist.process.nextTick(E,h,p))}function E(h,p){d("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),c(h),p.flowing&&!p.reading&&h.read(0)}x.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function c(h){var p=h._readableState;for(d("flow",p.flowing);p.flowing&&h.read()!==null;);}x.prototype.wrap=function(h){var p=this,$=this._readableState,V=!1;h.on("end",function(){if(d("wrapped end"),$.decoder&&!$.ended){var de=$.decoder.end();de&&de.length&&p.push(de)}p.push(null)}),h.on("data",function(de){if(d("wrapped data"),$.decoder&&(de=$.decoder.write(de)),!($.objectMode&&de==null)&&!(!$.objectMode&&(!de||!de.length))){var _e=p.push(de);_e||(V=!0,h.pause())}});for(var se in h)this[se]===void 0&&typeof h[se]=="function"&&(this[se]=function(_e){return function(){return h[_e].apply(h,arguments)}}(se));for(var oe=0;oe<q.length;oe++)h.on(q[oe],this.emit.bind(this,q[oe]));return this._read=function(de){d("wrapped _read",de),V&&(V=!1,h.resume())},this},typeof Symbol=="function"&&(x.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=vu()),R(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),x._fromList=y,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function y(h,p){if(p.length===0)return null;var $;return p.objectMode?$=p.buffer.shift():!h||h>=p.length?(p.decoder?$=p.buffer.join(""):p.buffer.length===1?$=p.buffer.first():$=p.buffer.concat(p.length),p.buffer.clear()):$=p.buffer.consume(h,p.decoder),$}function m(h){var p=h._readableState;d("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,K.dist.process.nextTick(M,p,h))}function M(h,p){if(d("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var $=p._writableState;(!$||$.autoDestroy&&$.finished)&&p.destroy()}}typeof Symbol=="function"&&(x.from=function(h,p){return P===void 0&&(P=gu()),P(x,h,p)});function U(h,p){for(var $=0,V=h.length;$<V;$++)if(h[$]===p)return $;return-1}return En}var bf=ot,Qr=It.codes,_u=Qr.ERR_METHOD_NOT_IMPLEMENTED,bu=Qr.ERR_MULTIPLE_CALLBACK,mu=Qr.ERR_TRANSFORM_ALREADY_TRANSFORMING,wu=Qr.ERR_TRANSFORM_WITH_LENGTH_0,en=qt();Pe.inherits_browserExports(ot,en);function Eu(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new bu);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ot(e){if(!(this instanceof ot))return new ot(e);en.call(this,e),this._transformState={afterTransform:Eu.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Su)}function Su(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){_a(e,t,r)}):_a(this,null,null)}ot.prototype.push=function(e,t){return this._transformState.needTransform=!1,en.prototype.push.call(this,e,t)};ot.prototype._transform=function(e,t,r){r(new _u("_transform()"))};ot.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ot.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ot.prototype._destroy=function(e,t){en.prototype._destroy.call(this,e,function(r){t(r)})};function _a(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new wu;if(e._transformState.transforming)throw new mu;return e.push(null)}var Ru=ar,mf=bf;Pe.inherits_browserExports(ar,mf);function ar(e){if(!(this instanceof ar))return new ar(e);mf.call(this,e)}ar.prototype._transform=function(e,t,r){r(null,e)};var Sn;function Au(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var wf=It.codes,Ou=wf.ERR_MISSING_ARGS,Tu=wf.ERR_STREAM_DESTROYED;function ba(e){if(e)throw e}function Iu(e){return e.setHeader&&typeof e.abort=="function"}function Pu(e,t,r,n){n=Au(n);var i=!1;e.on("close",function(){i=!0}),Sn===void 0&&(Sn=zi),Sn(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,Iu(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Tu("pipe"))}}}function ma(e){e()}function Nu(e,t){return e.pipe(t)}function Du(e){return!e.length||typeof e[e.length-1]!="function"?ba:e.pop()}function Lu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Du(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Ou("streams");var i,a=t.map(function(o,f){var d=f<t.length-1,l=f>0;return Pu(o,d,l,function(u){i||(i=u),u&&a.forEach(ma),!d&&(a.forEach(ma),n(i))})});return t.reduce(Nu)}var Mu=Lu;(function(e,t){t=e.exports=_f(),t.Stream=t,t.Readable=t,t.Writable=vf(),t.Duplex=qt(),t.Transform=bf,t.PassThrough=Ru,t.finished=zi,t.pipeline=Mu})(wi,wi.exports);var Ef=wi.exports,wa=qi,ku=Pe.inherits_browserExports,Sf=Ef,mr=Jr.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Zi=Jr.IncomingMessage=function(e,t,r,n){var i=this;if(Sf.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){K.dist.process.nextTick(function(){i.emit("close")})}),r==="fetch"){let u=function(){o.read().then(function(w){if(!i._destroyed){if(n(w.done),w.done){i.push(null);return}i.push(K.dist.Buffer.from(w.value)),u()}}).catch(function(w){n(!0),i._destroyed||i.emit("error",w)})};if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(w,g){i.headers[g.toLowerCase()]=w,i.rawHeaders.push(g,w)}),wa.writableStream){var a=new WritableStream({write:function(w){return n(!1),new Promise(function(g,S){i._destroyed?S():i.push(K.dist.Buffer.from(w))?g():i._resumeFetch=g})},close:function(){n(!0),i._destroyed||i.push(null)},abort:function(w){n(!0),i._destroyed||i.emit("error",w)}});try{t.body.pipeTo(a).catch(function(w){n(!0),i._destroyed||i.emit("error",w)});return}catch{}}var o=t.body.getReader();u()}else{i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText;var f=e.getAllResponseHeaders().split(/\r?\n/);if(f.forEach(function(u){var w=u.match(/^([^:]+):\s*(.*)/);if(w){var g=w[1].toLowerCase();g==="set-cookie"?(i.headers[g]===void 0&&(i.headers[g]=[]),i.headers[g].push(w[2])):i.headers[g]!==void 0?i.headers[g]+=", "+w[2]:i.headers[g]=w[2],i.rawHeaders.push(w[1],w[2])}}),i._charset="x-user-defined",!wa.overrideMimeType){var d=i.rawHeaders["mime-type"];if(d){var l=d.match(/;\s*charset=([^;])(;|$)/);l&&(i._charset=l[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};ku(Zi,Sf.Readable);Zi.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())};Zi.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,n=null;switch(t._mode){case"text":if(n=r.responseText,n.length>t._pos){var i=n.substr(t._pos);if(t._charset==="x-user-defined"){for(var a=K.dist.Buffer.alloc(i.length),o=0;o<i.length;o++)a[o]=i.charCodeAt(o)&255;t.push(a)}else t.push(i,t._charset);t._pos=n.length}break;case"arraybuffer":if(r.readyState!==mr.DONE||!r.response)break;n=r.response,t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=r.response,r.readyState!==mr.LOADING||!n)break;t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"ms-stream":if(n=r.response,r.readyState!==mr.LOADING)break;var f=new K.commonjsGlobal.MSStreamReader;f.onprogress=function(){f.result.byteLength>t._pos&&(t.push(K.dist.Buffer.from(new Uint8Array(f.result.slice(t._pos)))),t._pos=f.result.byteLength)},f.onload=function(){e(!0),t.push(null)},f.readAsArrayBuffer(n);break}t._xhr.readyState===mr.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var mt=qi,Fu=Pe.inherits_browserExports,Rf=Jr,Hi=Ef,ju=Rf.IncomingMessage,Ea=Rf.readyStates;function xu(e,t){return mt.fetch&&t?"fetch":mt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":mt.msstream?"ms-stream":mt.arraybuffer&&e?"arraybuffer":"text"}var Le=cf.exports=function(e){var t=this;Hi.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+K.dist.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(i){t.setHeader(i,e.headers[i])});var r,n=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!mt.abortController)n=!1,r=!0;else if(e.mode==="prefer-streaming")r=!1;else if(e.mode==="allow-wrong-content-type")r=!mt.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")r=!0;else throw new Error("Invalid value for opts.mode");t._mode=xu(r,n),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};Fu(Le,Hi.Writable);Le.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();Cu.indexOf(n)===-1&&(r._headers[n]={name:e,value:t})};Le.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null};Le.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]};Le.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var r=e._headers,n=null;t.method!=="GET"&&t.method!=="HEAD"&&(n=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var i=[];if(Object.keys(r).forEach(function(d){var l=r[d].name,u=r[d].value;Array.isArray(u)?u.forEach(function(w){i.push([l,w])}):i.push([l,u])}),e._mode==="fetch"){var a=null;if(mt.abortController){var o=new AbortController;a=o.signal,e._fetchAbortController=o,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=K.commonjsGlobal.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}K.commonjsGlobal.fetch(e._opts.url,{method:e._opts.method,headers:i,body:n||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then(function(d){e._fetchResponse=d,e._resetTimers(!1),e._connect()},function(d){e._resetTimers(!0),e._destroyed||e.emit("error",d)})}else{var f=e._xhr=new K.commonjsGlobal.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}"responseType"in f&&(f.responseType=e._mode),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(d){f.setRequestHeader(d[0],d[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case Ea.LOADING:case Ea.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{f.send(n)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}}}};function $u(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}Le.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!$u(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};Le.prototype._connect=function(){var e=this;e._destroyed||(e._response=new ju(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))};Le.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()};Le.prototype._resetTimers=function(e){var t=this;K.commonjsGlobal.clearTimeout(t._socketTimer),t._socketTimer=null,e?(K.commonjsGlobal.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=K.commonjsGlobal.setTimeout(function(){t.emit("timeout")},t._socketTimeout))};Le.prototype.abort=Le.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)};Le.prototype.end=function(e,t,r){var n=this;typeof e=="function"&&(r=e,e=void 0),Hi.Writable.prototype.end.call(n,e,t,r)};Le.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)};Le.prototype.flushHeaders=function(){};Le.prototype.setNoDelay=function(){};Le.prototype.setSocketKeepAlive=function(){};var Cu=["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"],Bu=cf.exports,Uu=zu,qu=Object.prototype.hasOwnProperty;function zu(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)qu.call(r,n)&&(e[n]=r[n])}return e}var Zu={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"},Si={exports:{}},Ur={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ur.exports;(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,a=typeof K.commonjsGlobal=="object"&&K.commonjsGlobal;(a.global===a||a.window===a||a.self===a)&&(r=a);var o,f=2147483647,d=36,l=1,u=26,w=38,g=700,S=72,N=128,F="-",j=/^xn--/,k=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=d-l,T=Math.floor,q=String.fromCharCode,C;function z(D){throw new RangeError(R[D])}function x(D,W){for(var _=D.length,A=[];_--;)A[_]=W(D[_]);return A}function re(D,W){var _=D.split("@"),A="";_.length>1&&(A=_[0]+"@",D=_[1]),D=D.replace(I,".");var v=D.split("."),E=x(v,W).join(".");return A+E}function J(D){for(var W=[],_=0,A=D.length,v,E;_<A;)v=D.charCodeAt(_++),v>=55296&&v<=56319&&_<A?(E=D.charCodeAt(_++),(E&64512)==56320?W.push(((v&1023)<<10)+(E&1023)+65536):(W.push(v),_--)):W.push(v);return W}function b(D){return x(D,function(W){var _="";return W>65535&&(W-=65536,_+=q(W>>>10&1023|55296),W=56320|W&1023),_+=q(W),_}).join("")}function B(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:d}function Q(D,W){return D+22+75*(D<26)-((W!=0)<<5)}function ne(D,W,_){var A=0;for(D=_?T(D/g):D>>1,D+=T(D/W);D>P*u>>1;A+=d)D=T(D/P);return T(A+(P+1)*D/(D+w))}function ae(D){var W=[],_=D.length,A,v=0,E=N,c=S,y,m,M,U,h,p,$,V,se;for(y=D.lastIndexOf(F),y<0&&(y=0),m=0;m<y;++m)D.charCodeAt(m)>=128&&z("not-basic"),W.push(D.charCodeAt(m));for(M=y>0?y+1:0;M<_;){for(U=v,h=1,p=d;M>=_&&z("invalid-input"),$=B(D.charCodeAt(M++)),($>=d||$>T((f-v)/h))&&z("overflow"),v+=$*h,V=p<=c?l:p>=c+u?u:p-c,!($<V);p+=d)se=d-V,h>T(f/se)&&z("overflow"),h*=se;A=W.length+1,c=ne(v-U,A,U==0),T(v/A)>f-E&&z("overflow"),E+=T(v/A),v%=A,W.splice(v++,0,E)}return b(W)}function ue(D){var W,_,A,v,E,c,y,m,M,U,h,p=[],$,V,se,oe;for(D=J(D),$=D.length,W=N,_=0,E=S,c=0;c<$;++c)h=D[c],h<128&&p.push(q(h));for(A=v=p.length,v&&p.push(F);A<$;){for(y=f,c=0;c<$;++c)h=D[c],h>=W&&h<y&&(y=h);for(V=A+1,y-W>T((f-_)/V)&&z("overflow"),_+=(y-W)*V,W=y,c=0;c<$;++c)if(h=D[c],h<W&&++_>f&&z("overflow"),h==W){for(m=_,M=d;U=M<=E?l:M>=E+u?u:M-E,!(m<U);M+=d)oe=m-U,se=d-U,p.push(q(Q(U+oe%se,0))),m=T(oe/se);p.push(q(Q(m,0))),E=ne(_,V,A==v),_=0,++A}++_,++W}return p.join("")}function ie(D){return re(D,function(W){return j.test(W)?ae(W.slice(4).toLowerCase()):W})}function Z(D){return re(D,function(W){return k.test(W)?"xn--"+ue(W):W})}if(o={version:"1.4.1",ucs2:{decode:J,encode:b},decode:ae,encode:ue,toASCII:Z,toUnicode:ie},n&&i)if(e.exports==n)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(n[C]=o[C]);else r.punycode=o})(K.commonjsGlobal)})(Ur,Ur.exports);var Af=Ur.exports,ft=TypeError,Wi=typeof Map=="function"&&Map.prototype,Rn=Object.getOwnPropertyDescriptor&&Wi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,qr=Wi&&Rn&&typeof Rn.get=="function"?Rn.get:null,Sa=Wi&&Map.prototype.forEach,Gi=typeof Set=="function"&&Set.prototype,An=Object.getOwnPropertyDescriptor&&Gi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zr=Gi&&An&&typeof An.get=="function"?An.get:null,Ra=Gi&&Set.prototype.forEach,Hu=typeof WeakMap=="function"&&WeakMap.prototype,Qt=Hu?WeakMap.prototype.has:null,Wu=typeof WeakSet=="function"&&WeakSet.prototype,er=Wu?WeakSet.prototype.has:null,Gu=typeof WeakRef=="function"&&WeakRef.prototype,Aa=Gu?WeakRef.prototype.deref:null,Vu=Boolean.prototype.valueOf,Ku=Object.prototype.toString,Yu=Function.prototype.toString,Xu=String.prototype.match,Vi=String.prototype.slice,ht=String.prototype.replace,Ju=String.prototype.toUpperCase,Oa=String.prototype.toLowerCase,Of=RegExp.prototype.test,Ta=Array.prototype.concat,Qe=Array.prototype.join,Qu=Array.prototype.slice,Ia=Math.floor,Ri=typeof BigInt=="function"?BigInt.prototype.valueOf:null,On=Object.getOwnPropertySymbols,Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,zt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===zt||!0)?Symbol.toStringTag:null,Tf=Object.prototype.propertyIsEnumerable,Pa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Na(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Of.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Ia(-e):Ia(e);if(n!==e){var i=String(n),a=Vi.call(t,i.length+1);return ht.call(i,r,"$&_")+"."+ht.call(ht.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ht.call(t,r,"$&_")}var Oi=Pe.require$$3,Da=Oi.custom,La=Nf(Da)?Da:null,If={__proto__:null,double:'"',single:"'"},es={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},tn=function e(t,r,n,i){var a=r||{};if(it(a,"quoteStyle")&&!it(If,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(it(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=it(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(it(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(it(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Lf(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var d=String(t);return f?Na(t,d):d}if(typeof t=="bigint"){var l=String(t)+"n";return f?Na(t,l):l}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return Ti(t)?"[Array]":"[Object]";var w=_s(a,n);if(typeof i>"u")i=[];else if(Df(i,t)>=0)return"[Circular]";function g(B,Q,ne){if(Q&&(i=Qu.call(i),i.push(Q)),ne){var ae={depth:a.depth};return it(a,"quoteStyle")&&(ae.quoteStyle=a.quoteStyle),e(B,ae,n+1,i)}return e(B,a,n+1,i)}if(typeof t=="function"&&!Ma(t)){var S=us(t),N=wr(t,g);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(N.length>0?" { "+Qe.call(N,", ")+" }":"")}if(Nf(t)){var F=zt?ht.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ai.call(t);return typeof t=="object"&&!zt?Yt(F):F}if(ys(t)){for(var j="<"+Oa.call(String(t.nodeName)),k=t.attributes||[],I=0;I<k.length;I++)j+=" "+k[I].name+"="+Pf(ts(k[I].value),"double",a);return j+=">",t.childNodes&&t.childNodes.length&&(j+="..."),j+="</"+Oa.call(String(t.nodeName))+">",j}if(Ti(t)){if(t.length===0)return"[]";var R=wr(t,g);return w&&!gs(R)?"["+Ii(R,w)+"]":"[ "+Qe.call(R,", ")+" ]"}if(ns(t)){var P=wr(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Tf.call(t,"cause")?"{ ["+String(t)+"] "+Qe.call(Ta.call("[cause]: "+g(t.cause),P),", ")+" }":P.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Qe.call(P,", ")+" }"}if(typeof t=="object"&&o){if(La&&typeof t[La]=="function"&&Oi)return Oi(t,{depth:u-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ss(t)){var T=[];return Sa&&Sa.call(t,function(B,Q){T.push(g(Q,t,!0)+" => "+g(B,t))}),ka("Map",qr.call(t),T,w)}if(ds(t)){var q=[];return Ra&&Ra.call(t,function(B){q.push(g(B,t))}),ka("Set",zr.call(t),q,w)}if(cs(t))return Tn("WeakMap");if(ps(t))return Tn("WeakSet");if(hs(t))return Tn("WeakRef");if(as(t))return Yt(g(Number(t)));if(fs(t))return Yt(g(Ri.call(t)));if(os(t))return Yt(Vu.call(t));if(is(t))return Yt(g(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof K.commonjsGlobal<"u"&&t===K.commonjsGlobal)return"{ [object globalThis] }";if(!rs(t)&&!Ma(t)){var C=wr(t,g),z=Pa?Pa(t)===Object.prototype:t instanceof Object||t.constructor===Object,x=t instanceof Object?"":"null prototype",re=!z&&tr&&Object(t)===t&&tr in t?Vi.call(gt(t),8,-1):x?"Object":"",J=z||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",b=J+(re||x?"["+Qe.call(Ta.call([],re||[],x||[]),": ")+"] ":"");return C.length===0?b+"{}":w?b+"{"+Ii(C,w)+"}":b+"{ "+Qe.call(C,", ")+" }"}return String(t)};function Pf(e,t,r){var n=r.quoteStyle||t,i=If[n];return i+e+i}function ts(e){return ht.call(String(e),/"/g,"&quot;")}function Pt(e){return!tr||!(typeof e=="object"&&(tr in e||typeof e[tr]<"u"))}function Ti(e){return gt(e)==="[object Array]"&&Pt(e)}function rs(e){return gt(e)==="[object Date]"&&Pt(e)}function Ma(e){return gt(e)==="[object RegExp]"&&Pt(e)}function ns(e){return gt(e)==="[object Error]"&&Pt(e)}function is(e){return gt(e)==="[object String]"&&Pt(e)}function as(e){return gt(e)==="[object Number]"&&Pt(e)}function os(e){return gt(e)==="[object Boolean]"&&Pt(e)}function Nf(e){if(zt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ai)return!1;try{return Ai.call(e),!0}catch{}return!1}function fs(e){if(!e||typeof e!="object"||!Ri)return!1;try{return Ri.call(e),!0}catch{}return!1}var ls=Object.prototype.hasOwnProperty||function(e){return e in this};function it(e,t){return ls.call(e,t)}function gt(e){return Ku.call(e)}function us(e){if(e.name)return e.name;var t=Xu.call(Yu.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Df(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ss(e){if(!qr||!e||typeof e!="object")return!1;try{qr.call(e);try{zr.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cs(e){if(!Qt||!e||typeof e!="object")return!1;try{Qt.call(e,Qt);try{er.call(e,er)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function hs(e){if(!Aa||!e||typeof e!="object")return!1;try{return Aa.call(e),!0}catch{}return!1}function ds(e){if(!zr||!e||typeof e!="object")return!1;try{zr.call(e);try{qr.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ps(e){if(!er||!e||typeof e!="object")return!1;try{er.call(e,er);try{Qt.call(e,Qt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ys(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Lf(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Lf(Vi.call(e,0,t.maxStringLength),t)+n}var i=es[t.quoteStyle||"single"];i.lastIndex=0;var a=ht.call(ht.call(e,i,"\\$1"),/[\x00-\x1f]/g,vs);return Pf(a,"single",t)}function vs(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Ju.call(t.toString(16))}function Yt(e){return"Object("+e+")"}function Tn(e){return e+" { ? }"}function ka(e,t,r,n){var i=n?Ii(r,n):Qe.call(r,", ");return e+" ("+t+") {"+i+"}"}function gs(e){for(var t=0;t<e.length;t++)if(Df(e[t],`
2
2
  `)>=0)return!1;return!0}function _s(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Qe.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Qe.call(Array(t+1),r)}}function Ii(e,t){if(e.length===0)return"";var r=`
3
3
  `+t.prev+t.base;return r+Qe.call(e,","+r)+`
4
4
  `+t.prev}function wr(e,t){var r=Ti(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=it(e,i)?t(e[i],e):""}var a=typeof On=="function"?On(e):[],o;if(zt){o={};for(var f=0;f<a.length;f++)o["$"+a[f]]=a[f]}for(var d in e)it(e,d)&&(r&&String(Number(d))===d&&d<e.length||zt&&o["$"+d]instanceof Symbol||(Of.call(/[^\w$]/,d)?n.push(t(d,e)+": "+t(e[d],e)):n.push(d+": "+t(e[d],e))));if(typeof On=="function")for(var l=0;l<a.length;l++)Tf.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var bs=tn,ms=ft,rn=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},ws=function(e,t){if(e){var r=rn(e,t);return r&&r.value}},Es=function(e,t,r){var n=rn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Ss=function(e,t){return e?!!rn(e,t):!1},Rs=function(e,t){if(e)return rn(e,t,!0)},As=function(){var t,r={assert:function(n){if(!r.has(n))throw new ms("Side channel does not contain "+bs(n))},delete:function(n){var i=t&&t.next,a=Rs(t,n);return a&&i&&i===a&&(t=void 0),!!a},get:function(n){return ws(t,n)},has:function(n){return Ss(t,n)},set:function(n,i){t||(t={next:void 0}),Es(t,n,i)}};return r},Ki=Object,Os=Error,Ts=EvalError,Is=RangeError,Ps=ReferenceError,Mf=SyntaxError,Ns=URIError,Ds=Math.abs,Ls=Math.floor,Ms=Math.max,ks=Math.min,Fs=Math.pow,js=Math.round,xs=Number.isNaN||function(t){return t!==t},$s=xs,Cs=function(t){return $s(t)||t===0?t:t<0?-1:1},Bs=Object.getOwnPropertyDescriptor,Pr=Bs;if(Pr)try{Pr([],"length")}catch{Pr=null}var Ht=Pr,Nr=Object.defineProperty||!1;if(Nr)try{Nr({},"a",{value:1})}catch{Nr=!1}var nn=Nr,Yi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a 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 o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(t,r);if(f.value!==i||f.enumerable!==!0)return!1}return!0},In,Fa;function Us(){if(Fa)return In;Fa=1;var e=typeof Symbol<"u"&&Symbol,t=Yi;return In=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},In}var Pn,ja;function kf(){return ja||(ja=1,Pn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Pn}var Nn,xa;function Ff(){if(xa)return Nn;xa=1;var e=Ki;return Nn=e.getPrototypeOf||null,Nn}var Dn,$a;function qs(){if($a)return Dn;$a=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(d,l){for(var u=[],w=0;w<d.length;w+=1)u[w]=d[w];for(var g=0;g<l.length;g+=1)u[g+d.length]=l[g];return u},a=function(d,l){for(var u=[],w=l,g=0;w<d.length;w+=1,g+=1)u[g]=d[w];return u},o=function(f,d){for(var l="",u=0;u<f.length;u+=1)l+=f[u],u+1<f.length&&(l+=d);return l};return Dn=function(d){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var u=a(arguments,1),w,g=function(){if(this instanceof w){var k=l.apply(this,i(u,arguments));return Object(k)===k?k:this}return l.apply(d,i(u,arguments))},S=r(0,l.length-u.length),N=[],F=0;F<S;F++)N[F]="$"+F;if(w=Function("binder","return function ("+o(N,",")+"){ return binder.apply(this,arguments); }")(g),l.prototype){var j=function(){};j.prototype=l.prototype,w.prototype=new j,j.prototype=null}return w},Dn}var Ln,Ca;function cr(){if(Ca)return Ln;Ca=1;var e=qs();return Ln=Function.prototype.bind||e,Ln}var Mn,Ba;function Xi(){return Ba||(Ba=1,Mn=Function.prototype.call),Mn}var kn,Ua;function Ji(){return Ua||(Ua=1,kn=Function.prototype.apply),kn}var zs=typeof Reflect<"u"&&Reflect&&Reflect.apply,Zs=cr(),Hs=Ji(),Ws=Xi(),Gs=zs,jf=Gs||Zs.call(Ws,Hs),Vs=cr(),Ks=ft,Ys=Xi(),Xs=jf,Qi=function(t){if(t.length<1||typeof t[0]!="function")throw new Ks("a function is required");return Xs(Vs,Ys,t)},Fn,qa;function Js(){if(qa)return Fn;qa=1;var e=Qi,t=Ht,r;try{r=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;return Fn=n&&typeof n.get=="function"?e([n.get]):typeof a=="function"?function(f){return a(f==null?f:i(f))}:!1,Fn}var jn,za;function xf(){if(za)return jn;za=1;var e=kf(),t=Ff(),r=Js();return jn=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,jn}var xn,Za;function $f(){if(Za)return xn;Za=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=cr();return xn=r.call(e,t),xn}var pe,Qs=Ki,ec=Os,tc=Ts,rc=Is,nc=Ps,Zt=Mf,Bt=ft,ic=Ns,ac=Ds,oc=Ls,fc=Ms,lc=ks,uc=Fs,sc=js,cc=Cs,Cf=Function,$n=function(e){try{return Cf('"use strict"; return ('+e+").constructor;")()}catch{}},or=Ht,hc=nn,Cn=function(){throw new Bt},dc=or?function(){try{return arguments.callee,Cn}catch{try{return or(arguments,"callee").get}catch{return Cn}}}():Cn,Lt=Us()(),Ie=xf(),pc=Ff(),yc=kf(),Bf=Ji(),hr=Xi(),xt={},vc=typeof Uint8Array>"u"||!Ie?pe:Ie(Uint8Array),St={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Lt&&Ie?Ie([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":xt,"%AsyncGenerator%":xt,"%AsyncGeneratorFunction%":xt,"%AsyncIteratorPrototype%":xt,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ec,"%eval%":eval,"%EvalError%":tc,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":Cf,"%GeneratorFunction%":xt,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Lt&&Ie?Ie(Ie([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Lt||!Ie?pe:Ie(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Qs,"%Object.getOwnPropertyDescriptor%":or,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":rc,"%ReferenceError%":nc,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Lt||!Ie?pe:Ie(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Lt&&Ie?Ie(""[Symbol.iterator]()):pe,"%Symbol%":Lt?Symbol:pe,"%SyntaxError%":Zt,"%ThrowTypeError%":dc,"%TypedArray%":vc,"%TypeError%":Bt,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":ic,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":hr,"%Function.prototype.apply%":Bf,"%Object.defineProperty%":hc,"%Object.getPrototypeOf%":pc,"%Math.abs%":ac,"%Math.floor%":oc,"%Math.max%":fc,"%Math.min%":lc,"%Math.pow%":uc,"%Math.round%":sc,"%Math.sign%":cc,"%Reflect.getPrototypeOf%":yc};if(Ie)try{null.error}catch(e){var gc=Ie(Ie(e));St["%Error.prototype%"]=gc}var _c=function e(t){var r;if(t==="%AsyncFunction%")r=$n("async function () {}");else if(t==="%GeneratorFunction%")r=$n("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=$n("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ie&&(r=Ie(i.prototype))}return St[t]=r,r},Ha={__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"]},dr=cr(),Zr=$f(),bc=dr.call(hr,Array.prototype.concat),mc=dr.call(Bf,Array.prototype.splice),Wa=dr.call(hr,String.prototype.replace),Hr=dr.call(hr,String.prototype.slice),wc=dr.call(hr,RegExp.prototype.exec),Ec=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Sc=/\\(\\)?/g,Rc=function(t){var r=Hr(t,0,1),n=Hr(t,-1);if(r==="%"&&n!=="%")throw new Zt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Zt("invalid intrinsic syntax, expected opening `%`");var i=[];return Wa(t,Ec,function(a,o,f,d){i[i.length]=f?Wa(d,Sc,"$1"):o||a}),i},Ac=function(t,r){var n=t,i;if(Zr(Ha,n)&&(i=Ha[n],n="%"+i[0]+"%"),Zr(St,n)){var a=St[n];if(a===xt&&(a=_c(n)),typeof a>"u"&&!r)throw new Bt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Zt("intrinsic "+t+" does not exist!")},pr=function(t,r){if(typeof t!="string"||t.length===0)throw new Bt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Bt('"allowMissing" argument must be a boolean');if(wc(/^%?[^%]*%?$/,t)===null)throw new Zt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Rc(t),i=n.length>0?n[0]:"",a=Ac("%"+i+"%",r),o=a.name,f=a.value,d=!1,l=a.alias;l&&(i=l[0],mc(n,bc([0,1],l)));for(var u=1,w=!0;u<n.length;u+=1){var g=n[u],S=Hr(g,0,1),N=Hr(g,-1);if((S==='"'||S==="'"||S==="`"||N==='"'||N==="'"||N==="`")&&S!==N)throw new Zt("property names with quotes must have matching quotes");if((g==="constructor"||!w)&&(d=!0),i+="."+g,o="%"+i+"%",Zr(St,o))f=St[o];else if(f!=null){if(!(g in f)){if(!r)throw new Bt("base intrinsic for "+t+" exists, but the property is not available.");return}if(or&&u+1>=n.length){var F=or(f,g);w=!!F,w&&"get"in F&&!("originalValue"in F.get)?f=F.get:f=f[g]}else w=Zr(f,g),f=f[g];w&&!d&&(St[o]=f)}}return f},Uf=pr,qf=Qi,Oc=qf([Uf("%String.prototype.indexOf%")]),_t=function(t,r){var n=Uf(t,!!r);return typeof n=="function"&&Oc(t,".prototype.")>-1?qf([n]):n},Tc=pr,yr=_t,Ic=tn,Pc=ft,Ga=Tc("%Map%",!0),Nc=yr("Map.prototype.get",!0),Dc=yr("Map.prototype.set",!0),Lc=yr("Map.prototype.has",!0),Mc=yr("Map.prototype.delete",!0),kc=yr("Map.prototype.size",!0),zf=!!Ga&&function(){var t,r={assert:function(n){if(!r.has(n))throw new Pc("Side channel does not contain "+Ic(n))},delete:function(n){if(t){var i=Mc(t,n);return kc(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return Nc(t,n)},has:function(n){return t?Lc(t,n):!1},set:function(n,i){t||(t=new Ga),Dc(t,n,i)}};return r},Fc=pr,an=_t,jc=tn,Er=zf,xc=ft,Mt=Fc("%WeakMap%",!0),$c=an("WeakMap.prototype.get",!0),Cc=an("WeakMap.prototype.set",!0),Bc=an("WeakMap.prototype.has",!0),Uc=an("WeakMap.prototype.delete",!0),qc=Mt?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new xc("Side channel does not contain "+jc(i))},delete:function(i){if(Mt&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Uc(t,i)}else if(Er&&r)return r.delete(i);return!1},get:function(i){return Mt&&i&&(typeof i=="object"||typeof i=="function")&&t?$c(t,i):r&&r.get(i)},has:function(i){return Mt&&i&&(typeof i=="object"||typeof i=="function")&&t?Bc(t,i):!!r&&r.has(i)},set:function(i,a){Mt&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Mt),Cc(t,i,a)):Er&&(r||(r=Er()),r.set(i,a))}};return n}:Er,zc=ft,Zc=tn,Hc=As,Wc=zf,Gc=qc,Vc=Gc||Wc||Hc,Kc=function(){var t,r={assert:function(n){if(!r.has(n))throw new zc("Side channel does not contain "+Zc(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=Vc()),t.set(n,i)}};return r},Yc=String.prototype.replace,Xc=/%20/g,Bn={RFC1738:"RFC1738",RFC3986:"RFC3986"},ea={default:Bn.RFC3986,formatters:{RFC1738:function(e){return Yc.call(e,Xc,"+")},RFC3986:function(e){return String(e)}},RFC1738:Bn.RFC1738,RFC3986:Bn.RFC3986},Jc=ea,Un=Object.prototype.hasOwnProperty,bt=Array.isArray,Ke=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Qc=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(bt(n)){for(var i=[],a=0;a<n.length;++a)typeof n[a]<"u"&&i.push(n[a]);r.obj[r.prop]=i}}},Zf=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},eh=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(bt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Un.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return bt(t)&&!bt(r)&&(i=Zf(t,n)),bt(t)&&bt(r)?(r.forEach(function(a,o){if(Un.call(t,o)){var f=t[o];f&&typeof f=="object"&&a&&typeof a=="object"?t[o]=e(f,a,n):t.push(a)}else t[o]=a}),t):Object.keys(r).reduce(function(a,o){var f=r[o];return Un.call(a,o)?a[o]=e(a[o],f,n):a[o]=f,a},i)},th=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},rh=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},qn=1024,nh=function(t,r,n,i,a){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(S){return"%26%23"+parseInt(S.slice(2),16)+"%3B"});for(var f="",d=0;d<o.length;d+=qn){for(var l=o.length>=qn?o.slice(d,d+qn):o,u=[],w=0;w<l.length;++w){var g=l.charCodeAt(w);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||a===Jc.RFC1738&&(g===40||g===41)){u[u.length]=l.charAt(w);continue}if(g<128){u[u.length]=Ke[g];continue}if(g<2048){u[u.length]=Ke[192|g>>6]+Ke[128|g&63];continue}if(g<55296||g>=57344){u[u.length]=Ke[224|g>>12]+Ke[128|g>>6&63]+Ke[128|g&63];continue}w+=1,g=65536+((g&1023)<<10|l.charCodeAt(w)&1023),u[u.length]=Ke[240|g>>18]+Ke[128|g>>12&63]+Ke[128|g>>6&63]+Ke[128|g&63]}f+=u.join("")}return f},ih=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var a=r[i],o=a.obj[a.prop],f=Object.keys(o),d=0;d<f.length;++d){var l=f[d],u=o[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:o,prop:l}),n.push(u))}return Qc(r),t},ah=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},oh=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},fh=function(t,r){return[].concat(t,r)},lh=function(t,r){if(bt(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},Hf={arrayToObject:Zf,assign:th,combine:fh,compact:ih,decode:rh,encode:nh,isBuffer:oh,isRegExp:ah,maybeMap:lh,merge:eh},Wf=Kc,Dr=Hf,rr=ea,uh=Object.prototype.hasOwnProperty,Gf={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Je=Array.isArray,sh=Array.prototype.push,Vf=function(e,t){sh.apply(e,Je(t)?t:[t])},ch=Date.prototype.toISOString,Va=rr.default,Ae={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Dr.encode,encodeValuesOnly:!1,filter:void 0,format:Va,formatter:rr.formatters[Va],indices:!1,serializeDate:function(t){return ch.call(t)},skipNulls:!1,strictNullHandling:!1},hh=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},zn={},dh=function e(t,r,n,i,a,o,f,d,l,u,w,g,S,N,F,j,k,I){for(var R=t,P=I,T=0,q=!1;(P=P.get(zn))!==void 0&&!q;){var C=P.get(t);if(T+=1,typeof C<"u"){if(C===T)throw new RangeError("Cyclic object value");q=!0}typeof P.get(zn)>"u"&&(T=0)}if(typeof u=="function"?R=u(r,R):R instanceof Date?R=S(R):n==="comma"&&Je(R)&&(R=Dr.maybeMap(R,function(D){return D instanceof Date?S(D):D})),R===null){if(o)return l&&!j?l(r,Ae.encoder,k,"key",N):r;R=""}if(hh(R)||Dr.isBuffer(R)){if(l){var z=j?r:l(r,Ae.encoder,k,"key",N);return[F(z)+"="+F(l(R,Ae.encoder,k,"value",N))]}return[F(r)+"="+F(String(R))]}var x=[];if(typeof R>"u")return x;var re;if(n==="comma"&&Je(R))j&&l&&(R=Dr.maybeMap(R,l)),re=[{value:R.length>0?R.join(",")||null:void 0}];else if(Je(u))re=u;else{var J=Object.keys(R);re=w?J.sort(w):J}var b=d?String(r).replace(/\./g,"%2E"):String(r),B=i&&Je(R)&&R.length===1?b+"[]":b;if(a&&Je(R)&&R.length===0)return B+"[]";for(var Q=0;Q<re.length;++Q){var ne=re[Q],ae=typeof ne=="object"&&ne&&typeof ne.value<"u"?ne.value:R[ne];if(!(f&&ae===null)){var ue=g&&d?String(ne).replace(/\./g,"%2E"):String(ne),ie=Je(R)?typeof n=="function"?n(B,ue):B:B+(g?"."+ue:"["+ue+"]");I.set(t,T);var Z=Wf();Z.set(zn,I),Vf(x,e(ae,ie,n,i,a,o,f,d,n==="comma"&&j&&Je(R)?null:l,u,w,g,S,N,F,j,k,Z))}}return x},ph=function(t){if(!t)return Ae;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ae.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=rr.default;if(typeof t.format<"u"){if(!uh.call(rr.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=rr.formatters[n],a=Ae.filter;(typeof t.filter=="function"||Je(t.filter))&&(a=t.filter);var o;if(t.arrayFormat in Gf?o=t.arrayFormat:"indices"in t?o=t.indices?"indices":"repeat":o=Ae.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Ae.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ae.addQueryPrefix,allowDots:f,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ae.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ae.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ae.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ae.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ae.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ae.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ae.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ae.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ae.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ae.strictNullHandling}},yh=function(e,t){var r=e,n=ph(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):Je(n.filter)&&(a=n.filter,i=a);var o=[];if(typeof r!="object"||r===null)return"";var f=Gf[n.arrayFormat],d=f==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var l=Wf(),u=0;u<i.length;++u){var w=i[u],g=r[w];n.skipNulls&&g===null||Vf(o,dh(g,w,f,d,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var S=o.join(n.delimiter),N=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?N+="utf8=%26%2310003%3B&":N+="utf8=%E2%9C%93&"),S.length>0?N+S:""},Rt=Hf,Pi=Object.prototype.hasOwnProperty,Ka=Array.isArray,Se={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Rt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},vh=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Kf=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},gh="utf8=%26%2310003%3B",_h="utf8=%E2%9C%93",bh=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var f=-1,d,l=r.charset;if(r.charsetSentinel)for(d=0;d<o.length;++d)o[d].indexOf("utf8=")===0&&(o[d]===_h?l="utf-8":o[d]===gh&&(l="iso-8859-1"),f=d,d=o.length);for(d=0;d<o.length;++d)if(d!==f){var u=o[d],w=u.indexOf("]="),g=w===-1?u.indexOf("="):w+1,S,N;g===-1?(S=r.decoder(u,Se.decoder,l,"key"),N=r.strictNullHandling?null:""):(S=r.decoder(u.slice(0,g),Se.decoder,l,"key"),N=Rt.maybeMap(Kf(u.slice(g+1),r,Ka(n[S])?n[S].length:0),function(j){return r.decoder(j,Se.decoder,l,"value")})),N&&r.interpretNumericEntities&&l==="iso-8859-1"&&(N=vh(String(N))),u.indexOf("[]=")>-1&&(N=Ka(N)?[N]:N);var F=Pi.call(n,S);F&&r.duplicates==="combine"?n[S]=Rt.combine(n[S],N):(!F||r.duplicates==="last")&&(n[S]=N)}return n},mh=function(e,t,r,n){var i=0;if(e.length>0&&e[e.length-1]==="[]"){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var o=n?t:Kf(t,r,i),f=e.length-1;f>=0;--f){var d,l=e[f];if(l==="[]"&&r.parseArrays)d=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:Rt.combine([],o);else{d=r.plainObjects?{__proto__:null}:{};var u=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,w=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,g=parseInt(w,10);!r.parseArrays&&w===""?d={0:o}:!isNaN(g)&&l!==w&&String(g)===w&&g>=0&&r.parseArrays&&g<=r.arrayLimit?(d=[],d[g]=o):w!=="__proto__"&&(d[w]=o)}o=d}return o},wh=function(t,r,n,i){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,d=n.depth>0&&o.exec(a),l=d?a.slice(0,d.index):a,u=[];if(l){if(!n.plainObjects&&Pi.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var w=0;n.depth>0&&(d=f.exec(a))!==null&&w<n.depth;){if(w+=1,!n.plainObjects&&Pi.call(Object.prototype,d[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(d[1])}if(d){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(d.index)+"]")}return mh(u,r,n,i)}},Eh=function(t){if(!t)return Se;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset>"u"?Se.charset:t.charset,n=typeof t.duplicates>"u"?Se.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Se.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Se.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Se.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Se.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Se.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Se.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Se.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Se.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Se.decoder,delimiter:typeof t.delimiter=="string"||Rt.isRegExp(t.delimiter)?t.delimiter:Se.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Se.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Se.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Se.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Se.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Se.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Se.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},Sh=function(e,t){var r=Eh(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?bh(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),o=0;o<a.length;++o){var f=a[o],d=wh(f,n[f],r,typeof e=="string");i=Rt.merge(i,d,r)}return r.allowSparse===!0?i:Rt.compact(i)},Rh=yh,Ah=Sh,Oh=ea,Th={formats:Oh,parse:Ah,stringify:Rh};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=Af,n=Th;function i(L){return L&&typeof L=="object"&&"default"in L?L:{default:L}}var a=i(r),o=i(n),f=a.default;function d(){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,u=/:[0-9]*$/,w=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,g=["<",">",'"',"`"," ","\r",`