@wormhole-foundation/wormhole-connect 1.0.0-beta.6-development → 1.0.0-beta.8-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.
- package/README.md +30 -9
- package/dist/assets/{ccip-HS3Cs5py.js → ccip-BorgJkc_.js} +1 -1
- package/dist/assets/{evm-DyY55Fca.js → evm-DqZ4cf4F.js} +24 -24
- package/dist/assets/{index-CeF-n8om.js → index-D2KpdQOJ.js} +1 -1
- package/dist/assets/{index-CqxhuXyT.js → index-Sz5xP7AP.js} +1 -1
- package/dist/assets/{index-CwoiJQ9y.js → index-atAB1u0t.js} +2 -2
- package/dist/assets/{index.es-BHZwRRXn.js → index.es-dXXum9j3.js} +2 -2
- package/dist/main.js +64 -65
- package/dist/src/config/ui.d.ts +0 -24
- package/dist/src/config/ui.d.ts.map +1 -1
- package/dist/src/hosted.d.ts +10 -0
- package/dist/src/hosted.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/wallet/evm.d.ts +2 -1
- package/dist/src/utils/wallet/evm.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/AssetPicker/ChainList.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/WalletConnector/index.d.ts.map +1 -1
- package/lib/{algorand-CIOlvhGh.mjs → algorand-BDmGwgo0.mjs} +3 -3
- package/lib/{algorand-B3jpS4mY.js → algorand-BRrCXLHv.js} +1 -1
- package/lib/{aptos-CKPSmGSC.mjs → aptos-B4tHgth_.mjs} +3 -3
- package/lib/{aptos-CrnZjgsh.mjs → aptos-BDOVJaPS.mjs} +1 -1
- package/lib/{aptos-B7P6JL1S.js → aptos-CocAk52h.js} +1 -1
- package/lib/{aptos-Cx4TaXYo.js → aptos-Olu7hLbM.js} +2 -2
- package/lib/{ccip-B-q-r_A1.js → ccip-DW70XeRB.js} +1 -1
- package/lib/{ccip-pU66-Jja.mjs → ccip-csPmnvrR.mjs} +1 -1
- package/lib/{cosmos-BDlV5WWM.js → cosmos-J7vmObWX.js} +1 -1
- package/lib/{cosmos-mLLSK_Nm.mjs → cosmos-Q00_Achm.mjs} +6 -6
- package/lib/{cosmwasm-CViLVch6.js → cosmwasm-FcaxCHUR.js} +2 -2
- package/lib/{cosmwasm-CGolR9gL.mjs → cosmwasm-Ukd2lv6A.mjs} +7 -7
- package/lib/{events-Dzr-GrPB.mjs → events-Bp5VnuCn.mjs} +1 -1
- package/lib/{events-BSNN9qkd.js → events-wlbN7cam.js} +1 -1
- package/lib/{evm-DXAiSRNs.mjs → evm-CAbq9PkI.mjs} +7 -7
- package/lib/{evm-DMGYpAGT.js → evm-DLuufB6t.js} +19 -19
- package/lib/{evm-BILIyDaj.mjs → evm-DPxnFflA.mjs} +1440 -1431
- package/lib/{evm-ronpaGiZ.js → evm-eTUzSuGR.js} +1 -1
- package/lib/{index-Byr7P1JY.js → index-0Pz-U2V0.js} +1 -1
- package/lib/{index-YNti7nIJ.mjs → index-1LKv8b31.mjs} +3 -3
- package/lib/{index-Dpzov1Io.js → index-2fV7-V0g.js} +1 -1
- package/lib/{index-C1jcO7wH.mjs → index-872kdch5.mjs} +1 -1
- package/lib/{index-bdAItiPr.js → index-9lDHF16W.js} +1 -1
- package/lib/{index-Da7Cxyq1.mjs → index-B1X1DEbd.mjs} +2 -2
- package/lib/{index-Be-kzEHF.mjs → index-B6FCEsUJ.mjs} +4 -4
- package/lib/{index-DFZ0Ndqh.js → index-B7Wuhlae.js} +1 -1
- package/lib/{index-C2WFu8In.mjs → index-BHg1HEL3.mjs} +2 -2
- package/lib/{index-C2DCdxRC.mjs → index-BNQfXzmT.mjs} +1153 -1119
- package/lib/{index-BWe8c3sQ.mjs → index-BVYe6gGw.mjs} +2 -2
- package/lib/{index-e3UZ_0nd.mjs → index-BW6AEYrS.mjs} +3 -3
- package/lib/{index-CSKSjjgt.mjs → index-BapiN3L3.mjs} +2 -2
- package/lib/{index-CZj2FglQ.mjs → index-Bd9jd8Va.mjs} +2 -2
- package/lib/{index-DFa89Itc.js → index-BhhG9UHE.js} +1 -1
- package/lib/{index-BvbKk4T6.mjs → index-Bk-7wCMM.mjs} +1 -1
- package/lib/{index-DEAhtMw_.js → index-Bob7GenS.js} +1 -1
- package/lib/{index-AslWQnUt.js → index-C9KuiVwT.js} +1 -1
- package/lib/{index-DXCl1vFR.mjs → index-CCOplDw1.mjs} +3 -3
- package/lib/{index-D6u6ZlbM.mjs → index-CGgCe-TN.mjs} +4 -4
- package/lib/{index-DiF1ira9.mjs → index-CQvIjyqH.mjs} +1 -1
- package/lib/{index-CMWEjIGj.mjs → index-CUqF5ByT.mjs} +1 -1
- package/lib/{index-BVxqSkXh.js → index-CZPVj8Bj.js} +1 -1
- package/lib/{index-BAErxF8G.mjs → index-C_Z08_5j.mjs} +2 -2
- package/lib/{index-wXdILngm.js → index-CctKy8T0.js} +1 -1
- package/lib/{index-g3eZpZJ1.js → index-CqdXRW8h.js} +1 -1
- package/lib/{index-Co1vTibS.mjs → index-CskDAU3i.mjs} +2 -2
- package/lib/{index-BO5ATVUH.js → index-Ct15piQO.js} +1 -1
- package/lib/{index-ZD733qpV.js → index-Cxt_cpUB.js} +1 -1
- package/lib/{index-oMwdMcy1.mjs → index-DB-FvxOY.mjs} +1 -1
- package/lib/{index-58isS1fK.js → index-DHP-njvh.js} +1 -1
- package/lib/{index-BTS53_Aj.mjs → index-DNAg_uGu.mjs} +2 -2
- package/lib/{index-DWKvilYv.mjs → index-DRHfM-dJ.mjs} +4 -4
- package/lib/{index-iXByZuY7.js → index-DYietgbP.js} +1 -1
- package/lib/{index-BN2lROi0.js → index-DbmyBX4Q.js} +1 -1
- package/lib/{index-BRdg8SSa.js → index-De3vN78v.js} +1 -1
- package/lib/{index-Cd8xotiJ.js → index-DjM7nJNJ.js} +1 -1
- package/lib/{index-BHGS0dw3.js → index-DpZGf7ao.js} +49 -49
- package/lib/{index-DbI4zYHg.js → index-DtM_PqGv.js} +1 -1
- package/lib/{index-CruftbOC.mjs → index-DwR3_jmz.mjs} +7 -7
- package/lib/{index-BJQjdDt-.js → index-KhbqJyoM.js} +1 -1
- package/lib/{index-CAcB_0Hd.js → index-NBy_JDT2.js} +1 -1
- package/lib/{index-BdINnTi7.mjs → index-PUKgAuvv.mjs} +2 -2
- package/lib/{index-mUmOCSLG.mjs → index-WWXvZLn0.mjs} +1 -1
- package/lib/{index-Dmko8wT8.js → index-XTtbdN9X.js} +1 -1
- package/lib/{index-CHAdrAO4.js → index-YgTGeKLj.js} +1 -1
- package/lib/{index-BKDeZ8n5.js → index-mom8Zmou.js} +1 -1
- package/lib/{index-CAHXQCTs.mjs → index-tGVSGULu.mjs} +2 -2
- package/lib/{index.es-B6NnL7-2.js → index.es-B9gxwZcm.js} +2 -2
- package/lib/{index.es-DNGjs0VX.mjs → index.es-Dt88ZW7f.mjs} +5 -5
- package/lib/index.js +1 -1
- package/lib/index.mjs +17 -15
- package/lib/{libsodium-wrappers-B21TAmoM.js → libsodium-wrappers-BuwfTfTY.js} +1 -1
- package/lib/{libsodium-wrappers-BKcruoKB.mjs → libsodium-wrappers-DLU5hUMu.mjs} +1 -1
- package/lib/{pako.esm-C_3vjkSx.mjs → pako.esm-CZW6iyfv.mjs} +3 -3
- package/lib/{pako.esm-x_RIwOhS.js → pako.esm-DUxkbXW4.js} +1 -1
- package/lib/{pbkdf2-h3af_qT8.mjs → pbkdf2-BYeu_Rh5.mjs} +1 -1
- package/lib/{pbkdf2-BiOly-Fb.js → pbkdf2-CQsb-hnh.js} +1 -1
- package/lib/{sei-CsiLK3q4.js → sei-DldsY9OJ.js} +1 -1
- package/lib/{sei-J7Ndid0z.mjs → sei-jkF24TbQ.mjs} +4 -4
- package/lib/{signer-Bqq-7pmw.mjs → signer-BHaj-Q7Z.mjs} +1 -1
- package/lib/{signer-DqTjY4LV.js → signer-DAZjtwBF.js} +1 -1
- package/lib/{solana-Ce3qepls.js → solana-B6pHDYwK.js} +1 -1
- package/lib/{solana-DoXIYwUz.mjs → solana-BGrKM-L5.mjs} +4 -4
- package/lib/solana-BJkYDvEg.js +1 -0
- package/lib/solana-BhT0qjBR.mjs +16 -0
- package/lib/{solanaEmbed.esm-BDiuwARH.mjs → solanaEmbed.esm-DsaELY_p.mjs} +4 -4
- package/lib/{solanaEmbed.esm-aEhVr3dz.js → solanaEmbed.esm-byA6SJdX.js} +1 -1
- package/lib/src/config/ui.d.ts +0 -24
- package/lib/src/config/ui.d.ts.map +1 -1
- package/lib/src/hosted.d.ts +10 -0
- package/lib/src/hosted.d.ts.map +1 -0
- package/lib/src/index.d.ts +4 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/main.d.ts.map +1 -1
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/utils/wallet/evm.d.ts +2 -1
- package/lib/src/utils/wallet/evm.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/AssetPicker/ChainList.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/WalletConnector/index.d.ts.map +1 -1
- package/lib/{sui-sEkivVSe.mjs → sui-Bxl_8F_i.mjs} +4 -4
- package/lib/{sui-CthAG5pi.js → sui-CusyBEEj.js} +1 -1
- package/lib/{sui-Bd2bm_yF.mjs → sui-J5LtM0N2.mjs} +1 -1
- package/lib/{sui-CNNdjXyR.js → sui-ShulHFzj.js} +2 -2
- package/lib/{unsignedTransaction-CA2s3rKG.mjs → unsignedTransaction-BjLsY8jQ.mjs} +2 -2
- package/lib/{unsignedTransaction-qKKmqcBf.js → unsignedTransaction-DIl-FgDa.js} +1 -1
- package/lib/{utils-OPA3b1An.mjs → utils-Cvu_YuwT.mjs} +2 -2
- package/lib/{utils-Deb--_8V.js → utils-lAfFWpGW.js} +1 -1
- package/package.json +4 -4
- package/lib/solana-CRL9xy7K.mjs +0 -16
- package/lib/solana-rhlzUaN7.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const D=require("./index-BHGS0dw3.js"),ve=require("./index-iXByZuY7.js");var Yt={},Tr={exports:{}},Jt={};(function(e){e.fetch=h(D.commonjsGlobal.fetch)&&h(D.commonjsGlobal.ReadableStream),e.writableStream=h(D.commonjsGlobal.WritableStream),e.abortController=h(D.commonjsGlobal.AbortController);var r;function u(){if(r!==void 0)return r;if(D.commonjsGlobal.XMLHttpRequest){r=new D.commonjsGlobal.XMLHttpRequest;try{r.open("GET",D.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function p(_){var v=u();if(!v)return!1;try{return v.responseType=_,v.responseType===_}catch{}return!1}e.arraybuffer=e.fetch||p("arraybuffer"),e.msstream=!e.fetch&&p("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&p("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(u()?h(u().overrideMimeType):!1);function h(_){return typeof _=="function"}r=null})(Jt);var tt={},Gt={exports:{}};(function(e,r){r=e.exports=D.require_stream_readable(),r.Stream=r,r.Readable=r,r.Writable=D.require_stream_writable(),r.Duplex=D.require_stream_duplex(),r.Transform=D.require_stream_transform(),r.PassThrough=D.require_stream_passthrough(),r.finished=D.requireEndOfStream(),r.pipeline=D.requirePipeline()})(Gt,Gt.exports);var Zt=Gt.exports,ir=Jt,Xr=D.requireInherits_browser(),Rr=Zt,We=tt.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Kt=tt.IncomingMessage=function(e,r,u,p){var h=this;if(Rr.Readable.call(h),h._mode=u,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){D.dist.process.nextTick(function(){h.emit("close")})}),u==="fetch"){let $=function(){v.read().then(function(I){if(!h._destroyed){if(p(I.done),I.done){h.push(null);return}h.push(D.dist.Buffer.from(I.value)),$()}}).catch(function(I){p(!0),h._destroyed||h.emit("error",I)})};if(h._fetchResponse=r,h.url=r.url,h.statusCode=r.status,h.statusMessage=r.statusText,r.headers.forEach(function(I,R){h.headers[R.toLowerCase()]=I,h.rawHeaders.push(R,I)}),ir.writableStream){var _=new WritableStream({write:function(I){return p(!1),new Promise(function(R,B){h._destroyed?B():h.push(D.dist.Buffer.from(I))?R():h._resumeFetch=R})},close:function(){p(!0),h._destroyed||h.push(null)},abort:function(I){p(!0),h._destroyed||h.emit("error",I)}});try{r.body.pipeTo(_).catch(function(I){p(!0),h._destroyed||h.emit("error",I)});return}catch{}}var v=r.body.getReader();$()}else{h._xhr=e,h._pos=0,h.url=e.responseURL,h.statusCode=e.status,h.statusMessage=e.statusText;var P=e.getAllResponseHeaders().split(/\r?\n/);if(P.forEach(function($){var I=$.match(/^([^:]+):\s*(.*)/);if(I){var R=I[1].toLowerCase();R==="set-cookie"?(h.headers[R]===void 0&&(h.headers[R]=[]),h.headers[R].push(I[2])):h.headers[R]!==void 0?h.headers[R]+=", "+I[2]:h.headers[R]=I[2],h.rawHeaders.push(I[1],I[2])}}),h._charset="x-user-defined",!ir.overrideMimeType){var q=h.rawHeaders["mime-type"];if(q){var L=q.match(/;\s*charset=([^;])(;|$)/);L&&(h._charset=L[1].toLowerCase())}h._charset||(h._charset="utf-8")}}};Xr(Kt,Rr.Readable);Kt.prototype._read=function(){var e=this,r=e._resumeFetch;r&&(e._resumeFetch=null,r())};Kt.prototype._onXHRProgress=function(e){var r=this,u=r._xhr,p=null;switch(r._mode){case"text":if(p=u.responseText,p.length>r._pos){var h=p.substr(r._pos);if(r._charset==="x-user-defined"){for(var _=D.dist.Buffer.alloc(h.length),v=0;v<h.length;v++)_[v]=h.charCodeAt(v)&255;r.push(_)}else r.push(h,r._charset);r._pos=p.length}break;case"arraybuffer":if(u.readyState!==We.DONE||!u.response)break;p=u.response,r.push(D.dist.Buffer.from(new Uint8Array(p)));break;case"moz-chunked-arraybuffer":if(p=u.response,u.readyState!==We.LOADING||!p)break;r.push(D.dist.Buffer.from(new Uint8Array(p)));break;case"ms-stream":if(p=u.response,u.readyState!==We.LOADING)break;var P=new D.commonjsGlobal.MSStreamReader;P.onprogress=function(){P.result.byteLength>r._pos&&(r.push(D.dist.Buffer.from(new Uint8Array(P.result.slice(r._pos)))),r._pos=P.result.byteLength)},P.onload=function(){e(!0),r.push(null)},P.readAsArrayBuffer(p);break}r._xhr.readyState===We.DONE&&r._mode!=="ms-stream"&&(e(!0),r.push(null))};var Ge=Jt,Yr=D.requireInherits_browser(),_r=tt,Qt=Zt,Jr=_r.IncomingMessage,ar=_r.readyStates;function Zr(e,r){return Ge.fetch&&r?"fetch":Ge.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Ge.msstream?"ms-stream":Ge.arraybuffer&&e?"arraybuffer":"text"}var Se=Tr.exports=function(e){var r=this;Qt.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+D.dist.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(h){r.setHeader(h,e.headers[h])});var u,p=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!Ge.abortController)p=!1,u=!0;else if(e.mode==="prefer-streaming")u=!1;else if(e.mode==="allow-wrong-content-type")u=!Ge.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")u=!0;else throw new Error("Invalid value for opts.mode");r._mode=Zr(u,p),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};Yr(Se,Qt.Writable);Se.prototype.setHeader=function(e,r){var u=this,p=e.toLowerCase();Qr.indexOf(p)===-1&&(u._headers[p]={name:e,value:r})};Se.prototype.getHeader=function(e){var r=this._headers[e.toLowerCase()];return r?r.value:null};Se.prototype.removeHeader=function(e){var r=this;delete r._headers[e.toLowerCase()]};Se.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts;"timeout"in r&&r.timeout!==0&&e.setTimeout(r.timeout);var u=e._headers,p=null;r.method!=="GET"&&r.method!=="HEAD"&&(p=new Blob(e._body,{type:(u["content-type"]||{}).value||""}));var h=[];if(Object.keys(u).forEach(function(q){var L=u[q].name,$=u[q].value;Array.isArray($)?$.forEach(function(I){h.push([L,I])}):h.push([L,$])}),e._mode==="fetch"){var _=null;if(Ge.abortController){var v=new AbortController;_=v.signal,e._fetchAbortController=v,"requestTimeout"in r&&r.requestTimeout!==0&&(e._fetchTimer=D.commonjsGlobal.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},r.requestTimeout))}D.commonjsGlobal.fetch(e._opts.url,{method:e._opts.method,headers:h,body:p||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:_}).then(function(q){e._fetchResponse=q,e._resetTimers(!1),e._connect()},function(q){e._resetTimers(!0),e._destroyed||e.emit("error",q)})}else{var P=e._xhr=new D.commonjsGlobal.XMLHttpRequest;try{P.open(e._opts.method,e._opts.url,!0)}catch(q){D.dist.process.nextTick(function(){e.emit("error",q)});return}"responseType"in P&&(P.responseType=e._mode),"withCredentials"in P&&(P.withCredentials=!!r.withCredentials),e._mode==="text"&&"overrideMimeType"in P&&P.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(P.timeout=r.requestTimeout,P.ontimeout=function(){e.emit("requestTimeout")}),h.forEach(function(q){P.setRequestHeader(q[0],q[1])}),e._response=null,P.onreadystatechange=function(){switch(P.readyState){case ar.LOADING:case ar.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(P.onprogress=function(){e._onXHRProgress()}),P.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{P.send(p)}catch(q){D.dist.process.nextTick(function(){e.emit("error",q)});return}}}};function Kr(e){try{var r=e.status;return r!==null&&r!==0}catch{return!1}}Se.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!Kr(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};Se.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Jr(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(r){e.emit("error",r)}),e.emit("response",e._response))};Se.prototype._write=function(e,r,u){var p=this;p._body.push(e),u()};Se.prototype._resetTimers=function(e){var r=this;D.commonjsGlobal.clearTimeout(r._socketTimer),r._socketTimer=null,e?(D.commonjsGlobal.clearTimeout(r._fetchTimer),r._fetchTimer=null):r._socketTimeout&&(r._socketTimer=D.commonjsGlobal.setTimeout(function(){r.emit("timeout")},r._socketTimeout))};Se.prototype.abort=Se.prototype.destroy=function(e){var r=this;r._destroyed=!0,r._resetTimers(!0),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort(),e&&r.emit("error",e)};Se.prototype.end=function(e,r,u){var p=this;typeof e=="function"&&(u=e,e=void 0),Qt.Writable.prototype.end.call(p,e,r,u)};Se.prototype.setTimeout=function(e,r){var u=this;r&&u.once("timeout",r),u._socketTimeout=e,u._resetTimers(!1)};Se.prototype.flushHeaders=function(){};Se.prototype.setNoDelay=function(){};Se.prototype.setSocketKeepAlive=function(){};var Qr=["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"],en=Tr.exports,tn=nn,rn=Object.prototype.hasOwnProperty;function nn(){for(var e={},r=0;r<arguments.length;r++){var u=arguments[r];for(var p in u)rn.call(u,p)&&(e[p]=u[p])}return e}var on={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"},kt={exports:{}},Ze={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ze.exports;(function(e,r){(function(u){var p=r&&!r.nodeType&&r,h=e&&!e.nodeType&&e,_=typeof D.commonjsGlobal=="object"&&D.commonjsGlobal;(_.global===_||_.window===_||_.self===_)&&(u=_);var v,P=2147483647,q=36,L=1,$=26,I=38,R=700,B=72,Q=128,K="-",ue=/^xn--/,J=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=q-L,F=Math.floor,Y=String.fromCharCode,U;function ee(l){throw new RangeError(A[l])}function k(l,b){for(var i=l.length,f=[];i--;)f[i]=b(l[i]);return f}function oe(l,b){var i=l.split("@"),f="";i.length>1&&(f=i[0]+"@",l=i[1]),l=l.replace(E,".");var n=l.split("."),s=k(n,b).join(".");return f+s}function re(l){for(var b=[],i=0,f=l.length,n,s;i<f;)n=l.charCodeAt(i++),n>=55296&&n<=56319&&i<f?(s=l.charCodeAt(i++),(s&64512)==56320?b.push(((n&1023)<<10)+(s&1023)+65536):(b.push(n),i--)):b.push(n);return b}function z(l){return k(l,function(b){var i="";return b>65535&&(b-=65536,i+=Y(b>>>10&1023|55296),b=56320|b&1023),i+=Y(b),i}).join("")}function te(l){return l-48<10?l-22:l-65<26?l-65:l-97<26?l-97:q}function se(l,b){return l+22+75*(l<26)-((b!=0)<<5)}function le(l,b,i){var f=0;for(l=i?F(l/R):l>>1,l+=F(l/b);l>N*$>>1;f+=q)l=F(l/N);return F(f+(N+1)*l/(l+I))}function ce(l){var b=[],i=l.length,f,n=0,s=Q,c=B,y,d,m,O,C,x,H,Z,fe;for(y=l.lastIndexOf(K),y<0&&(y=0),d=0;d<y;++d)l.charCodeAt(d)>=128&&ee("not-basic"),b.push(l.charCodeAt(d));for(m=y>0?y+1:0;m<i;){for(O=n,C=1,x=q;m>=i&&ee("invalid-input"),H=te(l.charCodeAt(m++)),(H>=q||H>F((P-n)/C))&&ee("overflow"),n+=H*C,Z=x<=c?L:x>=c+$?$:x-c,!(H<Z);x+=q)fe=q-Z,C>F(P/fe)&&ee("overflow"),C*=fe;f=b.length+1,c=le(n-O,f,O==0),F(n/f)>P-s&&ee("overflow"),s+=F(n/f),n%=f,b.splice(n++,0,s)}return z(b)}function ge(l){var b,i,f,n,s,c,y,d,m,O,C,x=[],H,Z,fe,we;for(l=re(l),H=l.length,b=Q,i=0,s=B,c=0;c<H;++c)C=l[c],C<128&&x.push(Y(C));for(f=n=x.length,n&&x.push(K);f<H;){for(y=P,c=0;c<H;++c)C=l[c],C>=b&&C<y&&(y=C);for(Z=f+1,y-b>F((P-i)/Z)&&ee("overflow"),i+=(y-b)*Z,b=y,c=0;c<H;++c)if(C=l[c],C<b&&++i>P&&ee("overflow"),C==b){for(d=i,m=q;O=m<=s?L:m>=s+$?$:m-s,!(d<O);m+=q)we=d-O,fe=q-O,x.push(Y(se(O+we%fe,0))),d=F(we/fe);x.push(Y(se(d,0))),s=le(i,Z,f==n),i=0,++f}++i,++b}return x.join("")}function he(l){return oe(l,function(b){return ue.test(b)?ce(b.slice(4).toLowerCase()):b})}function w(l){return oe(l,function(b){return J.test(b)?"xn--"+ge(b):b})}if(v={version:"1.4.1",ucs2:{decode:re,encode:z},decode:ce,encode:ge,toASCII:w,toUnicode:he},p&&h)if(e.exports==p)h.exports=v;else for(U in v)v.hasOwnProperty(U)&&(p[U]=v[U]);else u.punycode=v})(D.commonjsGlobal)})(Ze,Ze.exports);var Pr=Ze.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var u=Pr,p=D.require$$2;function h(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var _=h(u),v=h(p),P={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},q=_.default,L=P,$=le,I=ge,R=he,B=ce,Q=K;function K(){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 ue=/^([a-z0-9.+-]+:)/i,J=/:[0-9]*$/,E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,A=["<",">",'"',"`"," ","\r",`
|
|
1
|
+
"use strict";const D=require("./index-DpZGf7ao.js"),ve=require("./index-DYietgbP.js");var Yt={},Tr={exports:{}},Jt={};(function(e){e.fetch=h(D.commonjsGlobal.fetch)&&h(D.commonjsGlobal.ReadableStream),e.writableStream=h(D.commonjsGlobal.WritableStream),e.abortController=h(D.commonjsGlobal.AbortController);var r;function u(){if(r!==void 0)return r;if(D.commonjsGlobal.XMLHttpRequest){r=new D.commonjsGlobal.XMLHttpRequest;try{r.open("GET",D.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function p(_){var v=u();if(!v)return!1;try{return v.responseType=_,v.responseType===_}catch{}return!1}e.arraybuffer=e.fetch||p("arraybuffer"),e.msstream=!e.fetch&&p("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&p("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(u()?h(u().overrideMimeType):!1);function h(_){return typeof _=="function"}r=null})(Jt);var tt={},Gt={exports:{}};(function(e,r){r=e.exports=D.require_stream_readable(),r.Stream=r,r.Readable=r,r.Writable=D.require_stream_writable(),r.Duplex=D.require_stream_duplex(),r.Transform=D.require_stream_transform(),r.PassThrough=D.require_stream_passthrough(),r.finished=D.requireEndOfStream(),r.pipeline=D.requirePipeline()})(Gt,Gt.exports);var Zt=Gt.exports,ir=Jt,Xr=D.requireInherits_browser(),Rr=Zt,We=tt.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Kt=tt.IncomingMessage=function(e,r,u,p){var h=this;if(Rr.Readable.call(h),h._mode=u,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){D.dist.process.nextTick(function(){h.emit("close")})}),u==="fetch"){let $=function(){v.read().then(function(I){if(!h._destroyed){if(p(I.done),I.done){h.push(null);return}h.push(D.dist.Buffer.from(I.value)),$()}}).catch(function(I){p(!0),h._destroyed||h.emit("error",I)})};if(h._fetchResponse=r,h.url=r.url,h.statusCode=r.status,h.statusMessage=r.statusText,r.headers.forEach(function(I,R){h.headers[R.toLowerCase()]=I,h.rawHeaders.push(R,I)}),ir.writableStream){var _=new WritableStream({write:function(I){return p(!1),new Promise(function(R,B){h._destroyed?B():h.push(D.dist.Buffer.from(I))?R():h._resumeFetch=R})},close:function(){p(!0),h._destroyed||h.push(null)},abort:function(I){p(!0),h._destroyed||h.emit("error",I)}});try{r.body.pipeTo(_).catch(function(I){p(!0),h._destroyed||h.emit("error",I)});return}catch{}}var v=r.body.getReader();$()}else{h._xhr=e,h._pos=0,h.url=e.responseURL,h.statusCode=e.status,h.statusMessage=e.statusText;var P=e.getAllResponseHeaders().split(/\r?\n/);if(P.forEach(function($){var I=$.match(/^([^:]+):\s*(.*)/);if(I){var R=I[1].toLowerCase();R==="set-cookie"?(h.headers[R]===void 0&&(h.headers[R]=[]),h.headers[R].push(I[2])):h.headers[R]!==void 0?h.headers[R]+=", "+I[2]:h.headers[R]=I[2],h.rawHeaders.push(I[1],I[2])}}),h._charset="x-user-defined",!ir.overrideMimeType){var q=h.rawHeaders["mime-type"];if(q){var L=q.match(/;\s*charset=([^;])(;|$)/);L&&(h._charset=L[1].toLowerCase())}h._charset||(h._charset="utf-8")}}};Xr(Kt,Rr.Readable);Kt.prototype._read=function(){var e=this,r=e._resumeFetch;r&&(e._resumeFetch=null,r())};Kt.prototype._onXHRProgress=function(e){var r=this,u=r._xhr,p=null;switch(r._mode){case"text":if(p=u.responseText,p.length>r._pos){var h=p.substr(r._pos);if(r._charset==="x-user-defined"){for(var _=D.dist.Buffer.alloc(h.length),v=0;v<h.length;v++)_[v]=h.charCodeAt(v)&255;r.push(_)}else r.push(h,r._charset);r._pos=p.length}break;case"arraybuffer":if(u.readyState!==We.DONE||!u.response)break;p=u.response,r.push(D.dist.Buffer.from(new Uint8Array(p)));break;case"moz-chunked-arraybuffer":if(p=u.response,u.readyState!==We.LOADING||!p)break;r.push(D.dist.Buffer.from(new Uint8Array(p)));break;case"ms-stream":if(p=u.response,u.readyState!==We.LOADING)break;var P=new D.commonjsGlobal.MSStreamReader;P.onprogress=function(){P.result.byteLength>r._pos&&(r.push(D.dist.Buffer.from(new Uint8Array(P.result.slice(r._pos)))),r._pos=P.result.byteLength)},P.onload=function(){e(!0),r.push(null)},P.readAsArrayBuffer(p);break}r._xhr.readyState===We.DONE&&r._mode!=="ms-stream"&&(e(!0),r.push(null))};var Ge=Jt,Yr=D.requireInherits_browser(),_r=tt,Qt=Zt,Jr=_r.IncomingMessage,ar=_r.readyStates;function Zr(e,r){return Ge.fetch&&r?"fetch":Ge.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Ge.msstream?"ms-stream":Ge.arraybuffer&&e?"arraybuffer":"text"}var Se=Tr.exports=function(e){var r=this;Qt.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+D.dist.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(h){r.setHeader(h,e.headers[h])});var u,p=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!Ge.abortController)p=!1,u=!0;else if(e.mode==="prefer-streaming")u=!1;else if(e.mode==="allow-wrong-content-type")u=!Ge.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")u=!0;else throw new Error("Invalid value for opts.mode");r._mode=Zr(u,p),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};Yr(Se,Qt.Writable);Se.prototype.setHeader=function(e,r){var u=this,p=e.toLowerCase();Qr.indexOf(p)===-1&&(u._headers[p]={name:e,value:r})};Se.prototype.getHeader=function(e){var r=this._headers[e.toLowerCase()];return r?r.value:null};Se.prototype.removeHeader=function(e){var r=this;delete r._headers[e.toLowerCase()]};Se.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts;"timeout"in r&&r.timeout!==0&&e.setTimeout(r.timeout);var u=e._headers,p=null;r.method!=="GET"&&r.method!=="HEAD"&&(p=new Blob(e._body,{type:(u["content-type"]||{}).value||""}));var h=[];if(Object.keys(u).forEach(function(q){var L=u[q].name,$=u[q].value;Array.isArray($)?$.forEach(function(I){h.push([L,I])}):h.push([L,$])}),e._mode==="fetch"){var _=null;if(Ge.abortController){var v=new AbortController;_=v.signal,e._fetchAbortController=v,"requestTimeout"in r&&r.requestTimeout!==0&&(e._fetchTimer=D.commonjsGlobal.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},r.requestTimeout))}D.commonjsGlobal.fetch(e._opts.url,{method:e._opts.method,headers:h,body:p||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:_}).then(function(q){e._fetchResponse=q,e._resetTimers(!1),e._connect()},function(q){e._resetTimers(!0),e._destroyed||e.emit("error",q)})}else{var P=e._xhr=new D.commonjsGlobal.XMLHttpRequest;try{P.open(e._opts.method,e._opts.url,!0)}catch(q){D.dist.process.nextTick(function(){e.emit("error",q)});return}"responseType"in P&&(P.responseType=e._mode),"withCredentials"in P&&(P.withCredentials=!!r.withCredentials),e._mode==="text"&&"overrideMimeType"in P&&P.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(P.timeout=r.requestTimeout,P.ontimeout=function(){e.emit("requestTimeout")}),h.forEach(function(q){P.setRequestHeader(q[0],q[1])}),e._response=null,P.onreadystatechange=function(){switch(P.readyState){case ar.LOADING:case ar.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(P.onprogress=function(){e._onXHRProgress()}),P.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{P.send(p)}catch(q){D.dist.process.nextTick(function(){e.emit("error",q)});return}}}};function Kr(e){try{var r=e.status;return r!==null&&r!==0}catch{return!1}}Se.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!Kr(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};Se.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Jr(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(r){e.emit("error",r)}),e.emit("response",e._response))};Se.prototype._write=function(e,r,u){var p=this;p._body.push(e),u()};Se.prototype._resetTimers=function(e){var r=this;D.commonjsGlobal.clearTimeout(r._socketTimer),r._socketTimer=null,e?(D.commonjsGlobal.clearTimeout(r._fetchTimer),r._fetchTimer=null):r._socketTimeout&&(r._socketTimer=D.commonjsGlobal.setTimeout(function(){r.emit("timeout")},r._socketTimeout))};Se.prototype.abort=Se.prototype.destroy=function(e){var r=this;r._destroyed=!0,r._resetTimers(!0),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort(),e&&r.emit("error",e)};Se.prototype.end=function(e,r,u){var p=this;typeof e=="function"&&(u=e,e=void 0),Qt.Writable.prototype.end.call(p,e,r,u)};Se.prototype.setTimeout=function(e,r){var u=this;r&&u.once("timeout",r),u._socketTimeout=e,u._resetTimers(!1)};Se.prototype.flushHeaders=function(){};Se.prototype.setNoDelay=function(){};Se.prototype.setSocketKeepAlive=function(){};var Qr=["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"],en=Tr.exports,tn=nn,rn=Object.prototype.hasOwnProperty;function nn(){for(var e={},r=0;r<arguments.length;r++){var u=arguments[r];for(var p in u)rn.call(u,p)&&(e[p]=u[p])}return e}var on={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"},kt={exports:{}},Ze={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ze.exports;(function(e,r){(function(u){var p=r&&!r.nodeType&&r,h=e&&!e.nodeType&&e,_=typeof D.commonjsGlobal=="object"&&D.commonjsGlobal;(_.global===_||_.window===_||_.self===_)&&(u=_);var v,P=2147483647,q=36,L=1,$=26,I=38,R=700,B=72,Q=128,K="-",ue=/^xn--/,J=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=q-L,F=Math.floor,Y=String.fromCharCode,U;function ee(l){throw new RangeError(A[l])}function k(l,b){for(var i=l.length,f=[];i--;)f[i]=b(l[i]);return f}function oe(l,b){var i=l.split("@"),f="";i.length>1&&(f=i[0]+"@",l=i[1]),l=l.replace(E,".");var n=l.split("."),s=k(n,b).join(".");return f+s}function re(l){for(var b=[],i=0,f=l.length,n,s;i<f;)n=l.charCodeAt(i++),n>=55296&&n<=56319&&i<f?(s=l.charCodeAt(i++),(s&64512)==56320?b.push(((n&1023)<<10)+(s&1023)+65536):(b.push(n),i--)):b.push(n);return b}function z(l){return k(l,function(b){var i="";return b>65535&&(b-=65536,i+=Y(b>>>10&1023|55296),b=56320|b&1023),i+=Y(b),i}).join("")}function te(l){return l-48<10?l-22:l-65<26?l-65:l-97<26?l-97:q}function se(l,b){return l+22+75*(l<26)-((b!=0)<<5)}function le(l,b,i){var f=0;for(l=i?F(l/R):l>>1,l+=F(l/b);l>N*$>>1;f+=q)l=F(l/N);return F(f+(N+1)*l/(l+I))}function ce(l){var b=[],i=l.length,f,n=0,s=Q,c=B,y,d,m,O,C,x,H,Z,fe;for(y=l.lastIndexOf(K),y<0&&(y=0),d=0;d<y;++d)l.charCodeAt(d)>=128&&ee("not-basic"),b.push(l.charCodeAt(d));for(m=y>0?y+1:0;m<i;){for(O=n,C=1,x=q;m>=i&&ee("invalid-input"),H=te(l.charCodeAt(m++)),(H>=q||H>F((P-n)/C))&&ee("overflow"),n+=H*C,Z=x<=c?L:x>=c+$?$:x-c,!(H<Z);x+=q)fe=q-Z,C>F(P/fe)&&ee("overflow"),C*=fe;f=b.length+1,c=le(n-O,f,O==0),F(n/f)>P-s&&ee("overflow"),s+=F(n/f),n%=f,b.splice(n++,0,s)}return z(b)}function ge(l){var b,i,f,n,s,c,y,d,m,O,C,x=[],H,Z,fe,we;for(l=re(l),H=l.length,b=Q,i=0,s=B,c=0;c<H;++c)C=l[c],C<128&&x.push(Y(C));for(f=n=x.length,n&&x.push(K);f<H;){for(y=P,c=0;c<H;++c)C=l[c],C>=b&&C<y&&(y=C);for(Z=f+1,y-b>F((P-i)/Z)&&ee("overflow"),i+=(y-b)*Z,b=y,c=0;c<H;++c)if(C=l[c],C<b&&++i>P&&ee("overflow"),C==b){for(d=i,m=q;O=m<=s?L:m>=s+$?$:m-s,!(d<O);m+=q)we=d-O,fe=q-O,x.push(Y(se(O+we%fe,0))),d=F(we/fe);x.push(Y(se(d,0))),s=le(i,Z,f==n),i=0,++f}++i,++b}return x.join("")}function he(l){return oe(l,function(b){return ue.test(b)?ce(b.slice(4).toLowerCase()):b})}function w(l){return oe(l,function(b){return J.test(b)?"xn--"+ge(b):b})}if(v={version:"1.4.1",ucs2:{decode:re,encode:z},decode:ce,encode:ge,toASCII:w,toUnicode:he},p&&h)if(e.exports==p)h.exports=v;else for(U in v)v.hasOwnProperty(U)&&(p[U]=v[U]);else u.punycode=v})(D.commonjsGlobal)})(Ze,Ze.exports);var Pr=Ze.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var u=Pr,p=D.require$$2;function h(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var _=h(u),v=h(p),P={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},q=_.default,L=P,$=le,I=ge,R=he,B=ce,Q=K;function K(){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 ue=/^([a-z0-9.+-]+:)/i,J=/:[0-9]*$/,E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,A=["<",">",'"',"`"," ","\r",`
|
|
2
2
|
`," "],N=["{","}","|","\\","^","`"].concat(A),F=["'"].concat(N),Y=["%","/","?",";","#"].concat(F),U=["/","?","#"],ee=255,k=/^[+a-z0-9A-Z_-]{0,63}$/,oe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,re={javascript:!0,"javascript:":!0},z={javascript:!0,"javascript:":!0},te={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},se=v.default;function le(t,a,o){if(t&&L.isObject(t)&&t instanceof K)return t;var S=new K;return S.parse(t,a,o),S}K.prototype.parse=function(t,a,o){if(!L.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var S=t.indexOf("?"),j=S!==-1&&S<t.indexOf("#")?"?":"#",G=t.split(j),M=/\\/g;G[0]=G[0].replace(M,"/"),t=G.join(j);var T=t;if(T=T.trim(),!o&&t.split("#").length===1){var V=E.exec(T);if(V)return this.path=T,this.href=T,this.pathname=V[1],V[2]?(this.search=V[2],a?this.query=se.parse(this.search.substr(1)):this.query=this.search.substr(1)):a&&(this.search="",this.query={}),this}var X=ue.exec(T);if(X){X=X[0];var ie=X.toLowerCase();this.protocol=ie,T=T.substr(X.length)}if(o||X||T.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ee=T.substr(0,2)==="//";Ee&&!(X&&z[X])&&(T=T.substr(2),this.slashes=!0)}if(!z[X]&&(Ee||X&&!te[X])){for(var ae=-1,ne=0;ne<U.length;ne++){var pe=T.indexOf(U[ne]);pe!==-1&&(ae===-1||pe<ae)&&(ae=pe)}var Ae,be;ae===-1?be=T.lastIndexOf("@"):be=T.lastIndexOf("@",ae),be!==-1&&(Ae=T.slice(0,be),T=T.slice(be+1),this.auth=decodeURIComponent(Ae)),ae=-1;for(var ne=0;ne<Y.length;ne++){var pe=T.indexOf(Y[ne]);pe!==-1&&(ae===-1||pe<ae)&&(ae=pe)}ae===-1&&(ae=T.length),this.host=T.slice(0,ae),T=T.slice(ae),this.parseHost(),this.hostname=this.hostname||"";var Ce=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ce)for(var W=this.hostname.split(/\./),ne=0,de=W.length;ne<de;ne++){var _e=W[ne];if(_e&&!_e.match(k)){for(var je="",Te=0,De=_e.length;Te<De;Te++)_e.charCodeAt(Te)>127?je+="x":je+=_e[Te];if(!je.match(k)){var Ne=W.slice(0,ne),Pe=W.slice(ne+1),Fe=_e.match(oe);Fe&&(Ne.push(Fe[1]),Pe.unshift(Fe[2])),Pe.length&&(T="/"+Pe.join(".")+T),this.hostname=Ne.join(".");break}}}this.hostname.length>ee?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ce||(this.hostname=q.toASCII(this.hostname));var Me=this.port?":"+this.port:"",He=this.hostname||"";this.host=He+Me,this.href+=this.host,Ce&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),T[0]!=="/"&&(T="/"+T))}if(!re[ie])for(var ne=0,de=F.length;ne<de;ne++){var Ue=F[ne];if(T.indexOf(Ue)!==-1){var Le=encodeURIComponent(Ue);Le===Ue&&(Le=escape(Ue)),T=T.split(Ue).join(Le)}}var $e=T.indexOf("#");$e!==-1&&(this.hash=T.substr($e),T=T.slice(0,$e));var Be=T.indexOf("?");if(Be!==-1?(this.search=T.substr(Be),this.query=T.substr(Be+1),a&&(this.query=se.parse(this.query)),T=T.slice(0,Be)):a&&(this.search="",this.query={}),T&&(this.pathname=T),te[ie]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Me=this.pathname||"",Ve=this.search||"";this.path=Me+Ve}return this.href=this.format(),this};function ce(t){return L.isString(t)&&(t=le(t)),t instanceof K?t.format():K.prototype.format.call(t)}K.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var a=this.protocol||"",o=this.pathname||"",S=this.hash||"",j=!1,G="";this.host?j=t+this.host:this.hostname&&(j=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(j+=":"+this.port)),this.query&&L.isObject(this.query)&&Object.keys(this.query).length&&(G=se.stringify(this.query));var M=this.search||G&&"?"+G||"";return a&&a.substr(-1)!==":"&&(a+=":"),this.slashes||(!a||te[a])&&j!==!1?(j="//"+(j||""),o&&o.charAt(0)!=="/"&&(o="/"+o)):j||(j=""),S&&S.charAt(0)!=="#"&&(S="#"+S),M&&M.charAt(0)!=="?"&&(M="?"+M),o=o.replace(/[?#]/g,function(T){return encodeURIComponent(T)}),M=M.replace("#","%23"),a+j+o+M+S};function ge(t,a){return le(t,!1,!0).resolve(a)}K.prototype.resolve=function(t){return this.resolveObject(le(t,!1,!0)).format()};function he(t,a){return t?le(t,!1,!0).resolveObject(a):a}K.prototype.resolveObject=function(t){if(L.isString(t)){var a=new K;a.parse(t,!1,!0),t=a}for(var o=new K,S=Object.keys(this),j=0;j<S.length;j++){var G=S[j];o[G]=this[G]}if(o.hash=t.hash,t.href==="")return o.href=o.format(),o;if(t.slashes&&!t.protocol){for(var M=Object.keys(t),T=0;T<M.length;T++){var V=M[T];V!=="protocol"&&(o[V]=t[V])}return te[o.protocol]&&o.hostname&&!o.pathname&&(o.path=o.pathname="/"),o.href=o.format(),o}if(t.protocol&&t.protocol!==o.protocol){if(!te[t.protocol]){for(var X=Object.keys(t),ie=0;ie<X.length;ie++){var Ee=X[ie];o[Ee]=t[Ee]}return o.href=o.format(),o}if(o.protocol=t.protocol,!t.host&&!z[t.protocol]){for(var de=(t.pathname||"").split("/");de.length&&!(t.host=de.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),o.pathname=de.join("/")}else o.pathname=t.pathname;if(o.search=t.search,o.query=t.query,o.host=t.host||"",o.auth=t.auth,o.hostname=t.hostname||t.host,o.port=t.port,o.pathname||o.search){var ae=o.pathname||"",ne=o.search||"";o.path=ae+ne}return o.slashes=o.slashes||t.slashes,o.href=o.format(),o}var pe=o.pathname&&o.pathname.charAt(0)==="/",Ae=t.host||t.pathname&&t.pathname.charAt(0)==="/",be=Ae||pe||o.host&&t.pathname,Ce=be,W=o.pathname&&o.pathname.split("/")||[],de=t.pathname&&t.pathname.split("/")||[],_e=o.protocol&&!te[o.protocol];if(_e&&(o.hostname="",o.port=null,o.host&&(W[0]===""?W[0]=o.host:W.unshift(o.host)),o.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(de[0]===""?de[0]=t.host:de.unshift(t.host)),t.host=null),be=be&&(de[0]===""||W[0]==="")),Ae)o.host=t.host||t.host===""?t.host:o.host,o.hostname=t.hostname||t.hostname===""?t.hostname:o.hostname,o.search=t.search,o.query=t.query,W=de;else if(de.length)W||(W=[]),W.pop(),W=W.concat(de),o.search=t.search,o.query=t.query;else if(!L.isNullOrUndefined(t.search)){if(_e){o.hostname=o.host=W.shift();var je=o.host&&o.host.indexOf("@")>0?o.host.split("@"):!1;je&&(o.auth=je.shift(),o.host=o.hostname=je.shift())}return o.search=t.search,o.query=t.query,(!L.isNull(o.pathname)||!L.isNull(o.search))&&(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.href=o.format(),o}if(!W.length)return o.pathname=null,o.search?o.path="/"+o.search:o.path=null,o.href=o.format(),o;for(var Te=W.slice(-1)[0],De=(o.host||t.host||W.length>1)&&(Te==="."||Te==="..")||Te==="",Ne=0,Pe=W.length;Pe>=0;Pe--)Te=W[Pe],Te==="."?W.splice(Pe,1):Te===".."?(W.splice(Pe,1),Ne++):Ne&&(W.splice(Pe,1),Ne--);if(!be&&!Ce)for(;Ne--;Ne)W.unshift("..");be&&W[0]!==""&&(!W[0]||W[0].charAt(0)!=="/")&&W.unshift(""),De&&W.join("/").substr(-1)!=="/"&&W.push("");var Fe=W[0]===""||W[0]&&W[0].charAt(0)==="/";if(_e){o.hostname=o.host=Fe?"":W.length?W.shift():"";var je=o.host&&o.host.indexOf("@")>0?o.host.split("@"):!1;je&&(o.auth=je.shift(),o.host=o.hostname=je.shift())}return be=be||o.host&&W.length,be&&!Fe&&W.unshift(""),W.length?o.pathname=W.join("/"):(o.pathname=null,o.path=null),(!L.isNull(o.pathname)||!L.isNull(o.search))&&(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.auth=t.auth||o.auth,o.slashes=o.slashes||t.slashes,o.href=o.format(),o},K.prototype.parseHost=function(){var t=this.host,a=J.exec(t);a&&(a=a[0],a!==":"&&(this.port=a.substr(1)),t=t.substr(0,t.length-a.length)),t&&(this.hostname=t)};function w(t,a){for(var o=0,S=t.length-1;S>=0;S--){var j=t[S];j==="."?t.splice(S,1):j===".."?(t.splice(S,1),o++):o&&(t.splice(S,1),o--)}if(a)for(;o--;o)t.unshift("..");return t}function l(){for(var t="",a=!1,o=arguments.length-1;o>=-1&&!a;o--){var S=o>=0?arguments[o]:"/";if(typeof S!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!S)continue;t=S+"/"+t,a=S.charAt(0)==="/"}return t=w(b(t.split("/"),function(j){return!!j}),!a).join("/"),(a?"/":"")+t||"."}function b(t,a){if(t.filter)return t.filter(a);for(var o=[],S=0;S<t.length;S++)a(t[S],S,t)&&o.push(t[S]);return o}var i=function(t){function a(){var S=this||self;return delete t.prototype.__magic__,S}if(typeof globalThis=="object")return globalThis;if(this)return a();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:a});var o=__magic__;return o}(Object),f=B,n=$,s=I,c=Q,y=i.URL,d=i.URLSearchParams,m=/%/g,O=/\\/g,C=/\n/g,x=/\r/g,H=/\t/g,Z=47;function fe(t){var a=t??null;return!!(a!==null&&(a!=null&&a.href)&&(a!=null&&a.origin))}function we(t){if(t.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var a=t.pathname,o=0;o<a.length;o++)if(a[o]==="%"){var S=a.codePointAt(o+2)|32;if(a[o+1]==="2"&&S===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(a)}function Re(t){return t.includes("%")&&(t=t.replace(m,"%25")),t.includes("\\")&&(t=t.replace(O,"%5C")),t.includes(`
|
|
3
3
|
`)&&(t=t.replace(C,"%0A")),t.includes("\r")&&(t=t.replace(x,"%0D")),t.includes(" ")&&(t=t.replace(H,"%09")),t}var ye=function(a){if(typeof a>"u")throw new TypeError('The "domain" argument must be specified');return new y("http://"+a).hostname},g=function(a){if(typeof a>"u")throw new TypeError('The "domain" argument must be specified');return new y("http://"+a).hostname},Ie=function(a){var o=new y("file://"),S=l(a),j=a.charCodeAt(a.length-1);return j===Z&&S[S.length-1]!=="/"&&(S+="/"),o.pathname=Re(S),o},me=function(a){if(!fe(a)&&typeof a!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof a+" ("+a+")");var o=new y(a);if(o.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return we(o)},qe=function(a,o){var S,j,G;if(o===void 0&&(o={}),!(a instanceof y))return f(a);if(typeof o!="object"||o===null)throw new TypeError('The "options" argument must be of type object.');var M=(S=o.auth)!=null?S:!0,T=(j=o.fragment)!=null?j:!0,V=(G=o.search)!=null?G:!0,X=new y(a.toString());return M||(X.username="",X.password=""),T||(X.hash=""),V||(X.search=""),X.toString()},Oe={format:qe,parse:n,resolve:s,resolveObject:R,Url:c,URL:y,URLSearchParams:d,domainToASCII:ye,domainToUnicode:g,pathToFileURL:Ie,fileURLToPath:me};r.URL=y,r.URLSearchParams=d,r.Url=c,r.default=Oe,r.domainToASCII=ye,r.domainToUnicode=g,r.fileURLToPath=me,r.format=qe,r.parse=n,r.pathToFileURL=Ie,r.resolve=s,r.resolveObject=R,r=e.exports=Oe})(kt,kt.exports);var er=kt.exports;(function(e){var r=en,u=tt,p=tn,h=on,_=er,v=e;v.request=function(P,q){typeof P=="string"?P=_.parse(P):P=p(P);var L=D.commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",$=P.protocol||L,I=P.hostname||P.host,R=P.port,B=P.path||"/";I&&I.indexOf(":")!==-1&&(I="["+I+"]"),P.url=(I?$+"//"+I:"")+(R?":"+R:"")+B,P.method=(P.method||"GET").toUpperCase(),P.headers=P.headers||{};var Q=new r(P);return q&&Q.on("response",q),Q},v.get=function(q,L){var $=v.request(q,L);return $.end(),$},v.ClientRequest=r,v.IncomingMessage=u.IncomingMessage,v.Agent=function(){},v.Agent.defaultMaxSockets=4,v.globalAgent=new v.Agent,v.STATUS_CODES=h,v.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(Yt);var qr={exports:{}};(function(e){var r=Yt,u=er,p=e.exports;for(var h in r)r.hasOwnProperty(h)&&(p[h]=r[h]);p.request=function(v,P){return v=_(v),r.request.call(this,v,P)},p.get=function(v,P){return v=_(v),r.get.call(this,v,P)};function _(v){if(typeof v=="string"&&(v=u.parse(v)),v.protocol||(v.protocol="https:"),v.protocol!=="https:")throw new Error('Protocol "'+v.protocol+'" not supported. Expected "https:"');return v}})(qr);var an=qr.exports,jt={exports:{}},Tt={},ke={},Ir={},sn=ve.shams,tr=function(){return sn()&&!!Symbol.toStringTag},Nr={exports:{}},cn=ve.getIntrinsic,sr=ve.defineDataProperty,fn=ve.hasPropertyDescriptors_1(),cr=ve.gopd,fr=ve.type,un=cn("%Math.floor%"),ln=function(r,u){if(typeof r!="function")throw new fr("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||un(u)!==u)throw new fr("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],h=!0,_=!0;if("length"in r&&cr){var v=cr(r,"length");v&&!v.configurable&&(h=!1),v&&!v.writable&&(_=!1)}return(h||_||!p)&&(fn?sr(r,"length",u,!0,!0):sr(r,"length",u)),r};(function(e){var r=ve.functionBind,u=ve.getIntrinsic,p=ln,h=ve.type,_=u("%Function.prototype.apply%"),v=u("%Function.prototype.call%"),P=u("%Reflect.apply%",!0)||r.call(v,_),q=ve.esDefineProperty,L=u("%Math.max%");e.exports=function(R){if(typeof R!="function")throw new h("a function is required");var B=P(r,v,arguments);return p(B,1+L(0,R.length-(arguments.length-1)),!0)};var $=function(){return P(r,_,arguments)};q?q(e.exports,"apply",{value:$}):e.exports.apply=$})(Nr);var rt=Nr.exports,Fr=ve.getIntrinsic,Cr=rt,hn=Cr(Fr("String.prototype.indexOf")),nt=function(r,u){var p=Fr(r,!!u);return typeof p=="function"&&hn(r,".prototype.")>-1?Cr(p):p},pn=tr(),dn=nt,xt=dn("Object.prototype.toString"),ot=function(r){return pn&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:xt(r)==="[object Arguments]"},Ur=function(r){return ot(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&xt(r)!=="[object Array]"&&xt(r.callee)==="[object Function]"},yn=function(){return ot(arguments)}();ot.isLegacyArguments=Ur;var mn=yn?ot:Ur,gn=Object.prototype.toString,bn=Function.prototype.toString,vn=/^\s*(?:function)?\*/,Br=tr(),Rt=Object.getPrototypeOf,wn=function(){if(!Br)return!1;try{return Function("return function*() {}")()}catch{}},_t,Sn=function(r){if(typeof r!="function")return!1;if(vn.test(bn.call(r)))return!0;if(!Br){var u=gn.call(r);return u==="[object GeneratorFunction]"}if(!Rt)return!1;if(typeof _t>"u"){var p=wn();_t=p?Rt(p):!1}return Rt(r)===_t},Dr=Function.prototype.toString,xe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,zt,Xe;if(typeof xe=="function"&&typeof Object.defineProperty=="function")try{zt=Object.defineProperty({},"length",{get:function(){throw Xe}}),Xe={},xe(function(){throw 42},null,zt)}catch(e){e!==Xe&&(xe=null)}else xe=null;var On=/^\s*class\b/,Ht=function(r){try{var u=Dr.call(r);return On.test(u)}catch{return!1}},Pt=function(r){try{return Ht(r)?!1:(Dr.call(r),!0)}catch{return!1}},Ye=Object.prototype.toString,En="[object Object]",An="[object Function]",jn="[object GeneratorFunction]",Tn="[object HTMLAllCollection]",Rn="[object HTML document.all class]",_n="[object HTMLCollection]",Pn=typeof Symbol=="function"&&!!Symbol.toStringTag,qn=!(0 in[,]),Vt=function(){return!1};if(typeof document=="object"){var In=document.all;Ye.call(In)===Ye.call(document.all)&&(Vt=function(r){if((qn||!r)&&(typeof r>"u"||typeof r=="object"))try{var u=Ye.call(r);return(u===Tn||u===Rn||u===_n||u===En)&&r("")==null}catch{}return!1})}var Nn=xe?function(r){if(Vt(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{xe(r,null,zt)}catch(u){if(u!==Xe)return!1}return!Ht(r)&&Pt(r)}:function(r){if(Vt(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(Pn)return Pt(r);if(Ht(r))return!1;var u=Ye.call(r);return u!==An&&u!==jn&&!/^\[object HTML/.test(u)?!1:Pt(r)},Fn=Nn,Cn=Object.prototype.toString,Mr=Object.prototype.hasOwnProperty,Un=function(r,u,p){for(var h=0,_=r.length;h<_;h++)Mr.call(r,h)&&(p==null?u(r[h],h,r):u.call(p,r[h],h,r))},Bn=function(r,u,p){for(var h=0,_=r.length;h<_;h++)p==null?u(r.charAt(h),h,r):u.call(p,r.charAt(h),h,r)},Dn=function(r,u,p){for(var h in r)Mr.call(r,h)&&(p==null?u(r[h],h,r):u.call(p,r[h],h,r))},Mn=function(r,u,p){if(!Fn(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=p),Cn.call(r)==="[object Array]"?Un(r,u,h):typeof r=="string"?Bn(r,u,h):Dn(r,u,h)},Ln=Mn,$n=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],qt=$n,Gn=typeof globalThis>"u"?D.commonjsGlobal:globalThis,kn=function(){for(var r=[],u=0;u<qt.length;u++)typeof Gn[qt[u]]=="function"&&(r[r.length]=qt[u]);return r},Ke=Ln,xn=kn,ur=rt,rr=nt,Je=ve.gopd,zn=rr("Object.prototype.toString"),Lr=tr(),lr=typeof globalThis>"u"?D.commonjsGlobal:globalThis,Wt=xn(),nr=rr("String.prototype.slice"),It=Object.getPrototypeOf,Hn=rr("Array.prototype.indexOf",!0)||function(r,u){for(var p=0;p<r.length;p+=1)if(r[p]===u)return p;return-1},Qe={__proto__:null};Lr&&Je&&It?Ke(Wt,function(e){var r=new lr[e];if(Symbol.toStringTag in r){var u=It(r),p=Je(u,Symbol.toStringTag);if(!p){var h=It(u);p=Je(h,Symbol.toStringTag)}Qe["$"+e]=ur(p.get)}}):Ke(Wt,function(e){var r=new lr[e],u=r.slice||r.set;u&&(Qe["$"+e]=ur(u))});var Vn=function(r){var u=!1;return Ke(Qe,function(p,h){if(!u)try{"$"+p(r)===h&&(u=nr(h,1))}catch{}}),u},Wn=function(r){var u=!1;return Ke(Qe,function(p,h){if(!u)try{p(r),u=nr(h,1)}catch{}}),u},$r=function(r){if(!r||typeof r!="object")return!1;if(!Lr){var u=nr(zn(r),8,-1);return Hn(Wt,u)>-1?u:u!=="Object"?!1:Wn(r)}return Je?Vn(r):null},Xn=$r,Yn=function(r){return!!Xn(r)};(function(e){var r=mn,u=Sn,p=$r,h=Yn;function _(g){return g.call.bind(g)}var v=typeof BigInt<"u",P=typeof Symbol<"u",q=_(Object.prototype.toString),L=_(Number.prototype.valueOf),$=_(String.prototype.valueOf),I=_(Boolean.prototype.valueOf);if(v)var R=_(BigInt.prototype.valueOf);if(P)var B=_(Symbol.prototype.valueOf);function Q(g,Ie){if(typeof g!="object")return!1;try{return Ie(g),!0}catch{return!1}}e.isArgumentsObject=r,e.isGeneratorFunction=u,e.isTypedArray=h;function K(g){return typeof Promise<"u"&&g instanceof Promise||g!==null&&typeof g=="object"&&typeof g.then=="function"&&typeof g.catch=="function"}e.isPromise=K;function ue(g){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(g):h(g)||f(g)}e.isArrayBufferView=ue;function J(g){return p(g)==="Uint8Array"}e.isUint8Array=J;function E(g){return p(g)==="Uint8ClampedArray"}e.isUint8ClampedArray=E;function A(g){return p(g)==="Uint16Array"}e.isUint16Array=A;function N(g){return p(g)==="Uint32Array"}e.isUint32Array=N;function F(g){return p(g)==="Int8Array"}e.isInt8Array=F;function Y(g){return p(g)==="Int16Array"}e.isInt16Array=Y;function U(g){return p(g)==="Int32Array"}e.isInt32Array=U;function ee(g){return p(g)==="Float32Array"}e.isFloat32Array=ee;function k(g){return p(g)==="Float64Array"}e.isFloat64Array=k;function oe(g){return p(g)==="BigInt64Array"}e.isBigInt64Array=oe;function re(g){return p(g)==="BigUint64Array"}e.isBigUint64Array=re;function z(g){return q(g)==="[object Map]"}z.working=typeof Map<"u"&&z(new Map);function te(g){return typeof Map>"u"?!1:z.working?z(g):g instanceof Map}e.isMap=te;function se(g){return q(g)==="[object Set]"}se.working=typeof Set<"u"&&se(new Set);function le(g){return typeof Set>"u"?!1:se.working?se(g):g instanceof Set}e.isSet=le;function ce(g){return q(g)==="[object WeakMap]"}ce.working=typeof WeakMap<"u"&&ce(new WeakMap);function ge(g){return typeof WeakMap>"u"?!1:ce.working?ce(g):g instanceof WeakMap}e.isWeakMap=ge;function he(g){return q(g)==="[object WeakSet]"}he.working=typeof WeakSet<"u"&&he(new WeakSet);function w(g){return he(g)}e.isWeakSet=w;function l(g){return q(g)==="[object ArrayBuffer]"}l.working=typeof ArrayBuffer<"u"&&l(new ArrayBuffer);function b(g){return typeof ArrayBuffer>"u"?!1:l.working?l(g):g instanceof ArrayBuffer}e.isArrayBuffer=b;function i(g){return q(g)==="[object DataView]"}i.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&i(new DataView(new ArrayBuffer(1),0,1));function f(g){return typeof DataView>"u"?!1:i.working?i(g):g instanceof DataView}e.isDataView=f;var n=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function s(g){return q(g)==="[object SharedArrayBuffer]"}function c(g){return typeof n>"u"?!1:(typeof s.working>"u"&&(s.working=s(new n)),s.working?s(g):g instanceof n)}e.isSharedArrayBuffer=c;function y(g){return q(g)==="[object AsyncFunction]"}e.isAsyncFunction=y;function d(g){return q(g)==="[object Map Iterator]"}e.isMapIterator=d;function m(g){return q(g)==="[object Set Iterator]"}e.isSetIterator=m;function O(g){return q(g)==="[object Generator]"}e.isGeneratorObject=O;function C(g){return q(g)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=C;function x(g){return Q(g,L)}e.isNumberObject=x;function H(g){return Q(g,$)}e.isStringObject=H;function Z(g){return Q(g,I)}e.isBooleanObject=Z;function fe(g){return v&&Q(g,R)}e.isBigIntObject=fe;function we(g){return P&&Q(g,B)}e.isSymbolObject=we;function Re(g){return x(g)||H(g)||Z(g)||fe(g)||we(g)}e.isBoxedPrimitive=Re;function ye(g){return typeof Uint8Array<"u"&&(b(g)||c(g))}e.isAnyArrayBuffer=ye,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(g){Object.defineProperty(e,g,{enumerable:!1,value:function(){throw new Error(g+" is not supported in userland")}})})})(Ir);var Jn=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"};(function(e){var r=Object.getOwnPropertyDescriptors||function(f){for(var n=Object.keys(f),s={},c=0;c<n.length;c++)s[n[c]]=Object.getOwnPropertyDescriptor(f,n[c]);return s},u=/%[sdj%]/g;e.format=function(i){if(!F(i)){for(var f=[],n=0;n<arguments.length;n++)f.push(v(arguments[n]));return f.join(" ")}for(var n=1,s=arguments,c=s.length,y=String(i).replace(u,function(m){if(m==="%%")return"%";if(n>=c)return m;switch(m){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch{return"[Circular]"}default:return m}}),d=s[n];n<c;d=s[++n])E(d)||!k(d)?y+=" "+d:y+=" "+v(d);return y},e.deprecate=function(i,f){if(typeof D.dist.process<"u"&&D.dist.process.noDeprecation===!0)return i;if(typeof D.dist.process>"u")return function(){return e.deprecate(i,f).apply(this,arguments)};var n=!1;function s(){if(!n){if(D.dist.process.throwDeprecation)throw new Error(f);D.dist.process.traceDeprecation?console.trace(f):console.error(f),n=!0}return i.apply(this,arguments)}return s};var p={},h=/^$/;if(D.dist.process.env.NODE_DEBUG){var _=D.dist.process.env.NODE_DEBUG;_=_.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),h=new RegExp("^"+_+"$","i")}e.debuglog=function(i){if(i=i.toUpperCase(),!p[i])if(h.test(i)){var f=D.dist.process.pid;p[i]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",i,f,n)}}else p[i]=function(){};return p[i]};function v(i,f){var n={seen:[],stylize:q};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),J(f)?n.showHidden=f:f&&e._extend(n,f),U(n.showHidden)&&(n.showHidden=!1),U(n.depth)&&(n.depth=2),U(n.colors)&&(n.colors=!1),U(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=P),$(n,i,n.depth)}e.inspect=v,v.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},v.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function P(i,f){var n=v.styles[f];return n?"\x1B["+v.colors[n][0]+"m"+i+"\x1B["+v.colors[n][1]+"m":i}function q(i,f){return i}function L(i){var f={};return i.forEach(function(n,s){f[n]=!0}),f}function $(i,f,n){if(i.customInspect&&f&&z(f.inspect)&&f.inspect!==e.inspect&&!(f.constructor&&f.constructor.prototype===f)){var s=f.inspect(n,i);return F(s)||(s=$(i,s,n)),s}var c=I(i,f);if(c)return c;var y=Object.keys(f),d=L(y);if(i.showHidden&&(y=Object.getOwnPropertyNames(f)),re(f)&&(y.indexOf("message")>=0||y.indexOf("description")>=0))return R(f);if(y.length===0){if(z(f)){var m=f.name?": "+f.name:"";return i.stylize("[Function"+m+"]","special")}if(ee(f))return i.stylize(RegExp.prototype.toString.call(f),"regexp");if(oe(f))return i.stylize(Date.prototype.toString.call(f),"date");if(re(f))return R(f)}var O="",C=!1,x=["{","}"];if(ue(f)&&(C=!0,x=["[","]"]),z(f)){var H=f.name?": "+f.name:"";O=" [Function"+H+"]"}if(ee(f)&&(O=" "+RegExp.prototype.toString.call(f)),oe(f)&&(O=" "+Date.prototype.toUTCString.call(f)),re(f)&&(O=" "+R(f)),y.length===0&&(!C||f.length==0))return x[0]+O+x[1];if(n<0)return ee(f)?i.stylize(RegExp.prototype.toString.call(f),"regexp"):i.stylize("[Object]","special");i.seen.push(f);var Z;return C?Z=B(i,f,n,d,y):Z=y.map(function(fe){return Q(i,f,n,d,fe,C)}),i.seen.pop(),K(Z,O,x)}function I(i,f){if(U(f))return i.stylize("undefined","undefined");if(F(f)){var n="'"+JSON.stringify(f).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(n,"string")}if(N(f))return i.stylize(""+f,"number");if(J(f))return i.stylize(""+f,"boolean");if(E(f))return i.stylize("null","null")}function R(i){return"["+Error.prototype.toString.call(i)+"]"}function B(i,f,n,s,c){for(var y=[],d=0,m=f.length;d<m;++d)he(f,String(d))?y.push(Q(i,f,n,s,String(d),!0)):y.push("");return c.forEach(function(O){O.match(/^\d+$/)||y.push(Q(i,f,n,s,O,!0))}),y}function Q(i,f,n,s,c,y){var d,m,O;if(O=Object.getOwnPropertyDescriptor(f,c)||{value:f[c]},O.get?O.set?m=i.stylize("[Getter/Setter]","special"):m=i.stylize("[Getter]","special"):O.set&&(m=i.stylize("[Setter]","special")),he(s,c)||(d="["+c+"]"),m||(i.seen.indexOf(O.value)<0?(E(n)?m=$(i,O.value,null):m=$(i,O.value,n-1),m.indexOf(`
|
|
4
4
|
`)>-1&&(y?m=m.split(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wormhole-foundation/wormhole-connect",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.8-development",
|
|
4
4
|
"repository": "github:wormhole-foundation/wormhole-connect",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.mjs",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@solana/spl-token": "^0.3.9",
|
|
42
42
|
"@solana/wallet-adapter-wallets": "^0.19.25",
|
|
43
43
|
"@solana/web3.js": "^1.95.2",
|
|
44
|
-
"@wormhole-foundation/sdk": "^0.10.
|
|
45
|
-
"@wormhole-foundation/sdk-definitions": "^0.10.
|
|
44
|
+
"@wormhole-foundation/sdk": "^0.10.9",
|
|
45
|
+
"@wormhole-foundation/sdk-definitions": "^0.10.9",
|
|
46
46
|
"@wormhole-foundation/sdk-definitions-ntt": "^0.2.0",
|
|
47
47
|
"@wormhole-foundation/sdk-evm-ntt": "^0.2.0",
|
|
48
48
|
"@wormhole-foundation/sdk-icons": "^0.6.8",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.18",
|
|
53
53
|
"@xlabs-libs/wallet-aggregator-cosmos": "^0.0.1-alpha.14",
|
|
54
54
|
"@xlabs-libs/wallet-aggregator-cosmos-evm": "^0.0.1-alpha.6",
|
|
55
|
-
"@xlabs-libs/wallet-aggregator-evm": "^0.0.2-alpha.
|
|
55
|
+
"@xlabs-libs/wallet-aggregator-evm": "^0.0.2-alpha.2",
|
|
56
56
|
"@xlabs-libs/wallet-aggregator-sei": "^0.0.1-alpha.14",
|
|
57
57
|
"@xlabs-libs/wallet-aggregator-solana": "^0.0.1-alpha.15",
|
|
58
58
|
"@xlabs-libs/wallet-aggregator-sui": "^0.0.1-alpha.10",
|
package/lib/solana-CRL9xy7K.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { S as n, e, f as i, c as s, g as t } from "./index-C2DCdxRC.mjs";
|
|
2
|
-
import { g as l } from "./signer-Bqq-7pmw.mjs";
|
|
3
|
-
const d = {
|
|
4
|
-
Address: n,
|
|
5
|
-
Platform: e,
|
|
6
|
-
getSigner: l,
|
|
7
|
-
protocols: {
|
|
8
|
-
WormholeCore: () => import("./index-C2DCdxRC.mjs").then((o) => o.e0),
|
|
9
|
-
TokenBridge: () => import("./index-CMWEjIGj.mjs"),
|
|
10
|
-
CircleBridge: () => import("./index-oMwdMcy1.mjs")
|
|
11
|
-
},
|
|
12
|
-
getChain: (o, a, r) => new i(a, new e(o, s(o, t, { [a]: r })))
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
d as default
|
|
16
|
-
};
|
package/lib/solana-rhlzUaN7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BHGS0dw3.js"),i=require("./signer-DqTjY4LV.js"),a={Address:e.SolanaAddress,Platform:e.SolanaPlatform,getSigner:i.getSolanaSignAndSendSigner,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-BHGS0dw3.js")).then(r=>r.index$2),TokenBridge:()=>Promise.resolve().then(()=>require("./index-g3eZpZJ1.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-wXdILngm.js"))},getChain:(r,o,n)=>new e.SolanaChain(o,new e.SolanaPlatform(r,e.applyChainsConfigConfigOverrides(r,e._platform$1,{[o]:n})))};exports.default=a;
|