@imtbl/checkout-widgets 2.10.3 → 2.10.4-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{AddTokensWidget-CyYchEqL.js → AddTokensWidget-7xP3ash_.js} +24 -24
- package/dist/browser/{BridgeWidget-BGv6pl-L.js → BridgeWidget-xF3mC-MN.js} +32 -32
- package/dist/browser/{CommerceWidget-BmxPzB_7.js → CommerceWidget-Dx44BFWy.js} +182 -182
- package/dist/browser/{FeesBreakdown-CTf-10x4.js → FeesBreakdown-Dy1ctSpO.js} +2 -2
- package/dist/browser/{OnRampWidget-DHnrE80i.js → OnRampWidget-hWptERhu.js} +40 -26
- package/dist/browser/{SaleWidget-BXzTLbHG.js → SaleWidget-SueR-4Ck.js} +45 -45
- package/dist/browser/{SpendingCapHero-DgeQK3YA.js → SpendingCapHero-kPkYD5HR.js} +1 -1
- package/dist/browser/{SwapWidget-Bh2dRzCk.js → SwapWidget-B9Lgj2-6.js} +12 -12
- package/dist/browser/{TokenImage-D9BGjc4I.js → TokenImage-C44Kn3Pq.js} +1 -1
- package/dist/browser/{TopUpView-DQ6NHIsB.js → TopUpView-DZ6urV-T.js} +4 -4
- package/dist/browser/{WalletApproveHero-C8PSw4WQ.js → WalletApproveHero-B3gMB-AI.js} +2 -2
- package/dist/browser/{WalletWidget-ADG2A7wv.js → WalletWidget-Cq1IwRPp.js} +11 -11
- package/dist/browser/{auto-track-WjZIebqK.js → auto-track-1sIh5Cg-.js} +1 -1
- package/dist/browser/{index-BjDgJAyF.js → index-BAjyTG-F.js} +1 -1
- package/dist/browser/{index-BegaQ_Gy.js → index-BS6qjzzl.js} +1 -1
- package/dist/browser/{index-CTeRLgch.js → index-BpeF_Hv4.js} +1 -1
- package/dist/browser/{index-DOBGPXKx.js → index-CJrC7v34.js} +1 -1
- package/dist/browser/{index-D0vMQXbJ.js → index-C_2UQ8ka.js} +2 -2
- package/dist/browser/{index-DMgRiK35.js → index-Cc4A5E_A.js} +1 -1
- package/dist/browser/{index-CsK_1Pd3.js → index-DA9Xu4LZ.js} +1 -1
- package/dist/browser/{index-C8Pybl6W.js → index-DFAGr0d5.js} +348 -338
- package/dist/browser/index.js +1 -1
- package/dist/browser/{index.umd-TcVSRaL8.js → index.umd-BDwQTcot.js} +1 -1
- package/dist/browser/{useInterval-CI7WTOt5.js → useInterval-apxTIl_n.js} +1 -1
- package/dist/types/components/Transak/useTransakIframe.d.ts +5 -0
- package/package.json +7 -7
- package/src/components/Transak/useTransakIframe.ts +39 -12
- package/src/widgets/on-ramp/views/OnRampMain.tsx +56 -26
|
@@ -4109,9 +4109,9 @@ const clearGlobalNamespace = (namespace) => {
|
|
|
4109
4109
|
};
|
|
4110
4110
|
lib$4.clearGlobalNamespace = clearGlobalNamespace;
|
|
4111
4111
|
|
|
4112
|
-
var Ut$2=Object.defineProperty;var St$1=(u,c)=>{for(var p in c)Ut$2(u,p,{get:c[p],enumerable:!0});};function Br$1(u){throw new Error("Node.js process "+u+" is not supported by JSPM core outside of Node.js")}var G$3=[],tr$1=!1,W$3,cr$2=-1;function kt$2(){!tr$1||!W$3||(tr$1=!1,W$3.length?G$3=W$3.concat(G$3):cr$2=-1,G$3.length&&Vr$1());}function Vr$1(){if(!tr$1){var u=setTimeout(kt$2,0);tr$1=!0;for(var c=G$3.length;c;){for(W$3=G$3,G$3=[];++cr$2<c;)W$3&&W$3[cr$2].run();cr$2=-1,c=G$3.length;}W$3=null,tr$1=!1,clearTimeout(u);}}function _t$1(u){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$3.push(new Gr$1(u,c)),G$3.length===1&&!tr$1&&setTimeout(Vr$1,0);}function Gr$1(u,c){this.fun=u,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$1="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$3="v16.8.0",Lt$2={},Dt$2=function(u,c){console.warn((c?c+": ":"")+u);},$t$2=function(u){Br$1("binding");},Ft$2=function(u){return 0},Ot$2=function(){return "/"},Vt$2=function(u){},Gt$2={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$7(){}var Yt$2=M$7,Kt$2=[];function Ht$2(u){Br$1("_linkedBinding");}var Wt$2={},jt$2=!1,Xt$3={};function qt$3(u){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$7,Zt$2=M$7,Tr$2=function(){return {}},re$3=Tr$2,te$3=Tr$2,ee$2=M$7,ne$4=M$7,ie$4=M$7,oe$5={};function se$3(u,c){if(!u)throw new Error(c||"assertion error")}var ue$2={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$3=M$7,ce$2=M$7;function pe$3(){return !1}var le$2=M$7,fe$4=M$7,he$2=M$7,de$2=M$7,me$3=M$7,we$3=void 0,ge$4=void 0,ye$3=void 0,Ee$2=M$7,Ie$1=2,Be$3=1,Te$2="/bin/usr/node",Ae$2=9229,xe$2="node",Ue$3=[],Se$3=M$7,K$7={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$7.now===void 0&&(yr$2=Date.now(),K$7.timing&&K$7.timing.navigationStart&&(yr$2=K$7.timing.navigationStart),K$7.now=()=>Date.now()-yr$2);var yr$2;function ke$3(){return K$7.now()/1e3}var Er$1=1e9;function Ir$2(u){var c=Math.floor((Date.now()-K$7.now())*.001),p=K$7.now()*.001,l=Math.floor(p)+c,m=Math.floor(p%1*1e9);return u&&(l=l-u[0],m=m-u[1],m<0&&(l--,m+=Er$1)),[l,m]}Ir$2.bigint=function(u){var c=Ir$2(u);return typeof BigInt>"u"?c[0]*Er$1+c[1]:BigInt(c[0]*Er$1)+BigInt(c[1])};var _e$2=10,Pe$3={},Re$4=0;function H$4(){return T$6}var be$3=H$4,Ne$1=H$4,ve$2=H$4,Me$1=H$4,Ce$3=H$4,Le$1=M$7,De$3=H$4,$e$3=H$4;function Fe$3(u){return []}var T$6={version:Ct$3,versions:Lt$2,arch:Rt$1,platform:bt$1,release:Gt$2,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:Ht$2,_events:Pe$3,_eventsCount:Re$4,_maxListeners:_e$2,on:H$4,addListener:be$3,once:Ne$1,off:ve$2,removeListener:Me$1,removeAllListeners:Ce$3,emit:Le$1,prependListener:De$3,prependOnceListener:$e$3,listeners:Fe$3,domain:Wt$2,_exiting:jt$2,config:Xt$3,dlopen:qt$3,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$3,memoryUsage:te$3,kill:ee$2,exit:ne$4,openStdin:ie$4,allowedNodeEnvironmentFlags:oe$5,assert:se$3,features:ue$2,_fatalExceptions:ae$3,setUncaughtExceptionCaptureCallback:ce$2,hasUncaughtExceptionCaptureCallback:pe$3,emitWarning:Dt$2,nextTick:_t$1,_tickCallback:le$2,_debugProcess:fe$4,_debugEnd:he$2,_startProfilerIdleNotifier:de$2,_stopProfilerIdleNotifier:me$3,stdout:we$3,stdin:ye$3,stderr:ge$4,abort:Ee$2,umask:Ft$2,chdir:Vt$2,cwd:Ot$2,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$2,debugPort:Ae$2,hrtime:Ir$2,argv0:xe$2,_preload_modules:Ue$3,setSourceMapsEnabled:Se$3};var nr$1={},Yr$1=!1;function Oe$2(){if(Yr$1)return nr$1;Yr$1=!0,nr$1.byteLength=E,nr$1.toByteArray=C,nr$1.fromByteArray=_;for(var u=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,w=l.length;m<w;++m)u[m]=l[m],c[l.charCodeAt(m)]=m;c[45]=62,c[95]=63;function o(f){var h=f.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=h);var A=g===h?0:4-g%4;return [g,A]}function E(f){var h=o(f),g=h[0],A=h[1];return (g+A)*3/4-A}function b(f,h,g){return (h+g)*3/4-g}function C(f){var h,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)h=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=h>>16&255,P[D++]=h>>8&255,P[D++]=h&255;return v===2&&(h=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=h&255),v===1&&(h=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=h>>8&255,P[D++]=h&255),P}function B(f){return u[f>>18&63]+u[f>>12&63]+u[f>>6&63]+u[f&63]}function k(f,h,g){for(var A,v=[],P=h;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var h,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(h=f[g-1],v.push(u[h>>2]+u[h<<4&63]+"==")):A===2&&(h=(f[g-2]<<8)+f[g-1],v.push(u[h>>10]+u[h>>4&63]+u[h<<2&63]+"=")),v.join("")}return nr$1}var pr$1={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$1;Kr$2=!0;return pr$1.read=function(u,c,p,l,m){var w,o,E=m*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?m-1:0,_=p?-1:1,f=u[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+u[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+u[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$1.write=function(u,c,p,l,m,w){var o,E,b,C=w*8-m-1,B=(1<<C)-1,k=B>>1,_=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,h=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,m),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,m),o=0));m>=8;u[p+f]=E&255,f+=h,E/=256,m-=8);for(o=o<<m|E,C+=m;C>0;u[p+f]=o&255,f+=h,o/=256,C-=8);u[p+f-h]|=g*128;},pr$1}var j$6={},Hr$1=!1;function Ge$2(){if(Hr$1)return j$6;Hr$1=!0;let u=Oe$2(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j$6.Buffer=o,j$6.SlowBuffer=v,j$6.INSPECT_MAX_BYTES=50;let l=2147483647;j$6.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=m(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function m(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return h(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function h(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let s=0,a=Math.min(n,i);s<a;++s)if(r[s]!==t[s]){n=r[s],i=t[s];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),s=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))s+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,s)):Uint8Array.prototype.set.call(i,a,s);else if(o.isBuffer(a))a.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=j$6.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,s){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>r.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===r)return 0;let a=s-i,d=n-t,x=Math.min(a,d),I=this.slice(i,s),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],d=U[y];break}return a<d?-1:d<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let s=1,a=e.length,d=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;s=2,a/=2,d/=2,t/=2;}function x(U,y){return s===1?U[y]:U.readUInt16BE(y*s)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===d)return U*s}else U!==-1&&(I-=I-U),U=-1;}else for(t+d>a&&(t=a-d),I=t;I>=0;I--){let U=!0;for(let y=0;y<d;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=r.length;n>s/2&&(n=s/2);let a;for(a=0;a<n;++a){let d=parseInt(r.substr(a*2,2),16);if(gr(d))return a;e[t+a]=d;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let s=e[i],a=null,d=s>239?4:s>223?3:s>191?2:1;if(i+d<=t){let x,I,U,y;switch(d){case 1:s<128&&(a=s);break;case 2:x=e[i+1],(x&192)===128&&(y=(s&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(s&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(s&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=d;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=r;s<t;++s)i+=At[e[s]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],s=1;for(;t>0&&(s*=256);)i+=this[r+--t]*s;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,s=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],s=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(s)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,s=1,a=this[r+--i];for(;i>0&&(s*=256);)a+=this[r+--i]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<s)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=1,a=0;for(this[t]=r&255;++a<n&&(s*=256);)this[t+a]=r/s&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=n-1,a=1;for(this[t+s]=r&255;--s>=0&&(a*=256);)this[t+s]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t+7]=s,s=s>>8,e[t+6]=s,s=s>>8,e[t+5]=s,s=s>>8,e[t+4]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=0,a=1,d=0;for(this[t]=r&255;++s<n&&(a*=256);)r<0&&d===0&&this[t+s-1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=n-1,a=1,d=0;for(this[t+s]=r&255;--s>=0&&(a*=256);)r<0&&d===0&&this[t+s+1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,s){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let s=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),s},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let s;if(typeof r=="number")for(s=t;s<n;++s)this[s]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),d=a.length;if(d===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=a[s%d];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,s){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",d;throw r===0||r===BigInt(0)?d=`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:d=`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** ${(s+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",d,e)}yt(n,i,s);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,s=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&s.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;s.push(t);}else if(t<2048){if((r-=2)<0)break;s.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=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 Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,s=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function Or(e){return u.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return j$6}var X$4=Ge$2();var S$8=X$4.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>We$5,getItem:()=>fr$1,setItem:()=>or$2});var ir$1=()=>typeof window>"u",lr$2=()=>!ir$1();var Ye$2="__IMX-",Ar$2=()=>lr$2()&&window.localStorage,Ke$1=u=>{if(u!==null)try{return JSON.parse(u)}catch{return u}},He$2=u=>typeof u=="string"?u:JSON.stringify(u),xr$2=u=>`${Ye$2}${u}`;function fr$1(u){if(Ar$2())return Ke$1(window.localStorage.getItem(xr$2(u)))}var or$2=(u,c)=>Ar$2()?(window.localStorage.setItem(xr$2(u),He$2(c)),!0):!1,We$5=u=>Ar$2()?(window.localStorage.removeItem(xr$2(u)),!0):!1;var Sr$2=0,Wr=u=>{let c=parseInt(u,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},jr$1=()=>{let u=new Date().getTime()+Sr$2;return new Date(u).toISOString()};var sr$1=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$1||{});var Xe$4="https://api.immutable.com";async function hr$2(u,c){let p=axios$1.create({baseURL:Xe$4}),l=JSON.stringify(c),m={payload:S$8.from(l).toString("base64")};return (await p.post(u,m)).data}var q$6,J$4,qe$1=()=>{q$6=fr$1("metrics-events")||[],J$4=fr$1("metrics-runtime")||{};};qe$1();var V$5=(u,c)=>{J$4={...J$4,[u]:c},or$2("metrics-runtime",J$4);},ur$1=u=>{if(J$4[u]!==void 0)return J$4[u]},Xr=()=>J$4,qr$1=()=>q$6,Jr$1=u=>{q$6.push(u),or$2("metrics-events",q$6);},zr$2=u=>{q$6=q$6.slice(u),or$2("metrics-events",q$6);},dr$1=u=>{let c=[];return Object.entries(u).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$1="2.10.3",Je$3=()=>ir$1()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$2=()=>{if(ir$1())return "";let u;try{window.self!==window.top&&(u=Je$3());}catch{}return u||(u=window.location.hostname),u},Qe$3=()=>{if(V$5("sdkVersion",kr$1),ir$1())return {browser:"nodejs",sdkVersion:kr$1};let u=ze$2();return u&&V$5("domain",u),{sdkVersion:kr$1,browser:window.navigator.userAgent,domain:u,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let u=dr$1(Qe$3()),c=ur$1("rid"),p=ur$1("uid"),m=await hr$2("/v1/sdk/initialise",{version:1,data:{runtimeDetails:u,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=m;V$5("rid",w),Wr(o);}catch{_r$2=!1;}};function R$3(u,c){return (...p)=>{try{let l=u(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$6>"u"?!1:T$6.env.JEST_WORKER_ID!==void 0}var rt$1=R$3(Ze$4,!1);var et$1="imtbl__metrics",tn$1=5e3,en$1=1e3,z$8=(u,c)=>getGlobalisedValue_1(et$1,u,c),nt$2=(u,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$1,u,p)};var nn=5e3,on=(u,c,p)=>{let l={event:`${u}.${c}`,time:jr$1(),...p&&{properties:dr$1(p)}};Jr$1(l);},Q$6=R$3(nt$2("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let u=qr$1();if(u.length===0)return;let c=u.length,p=Xr();await hr$2("/v1/sdk/metrics",{version:1,data:{events:u,details:p}})instanceof Error||zr$2(c);},un$1=R$3(sn),ot$1=async()=>{await un$1(),setTimeout(ot$1,nn);},it$1=!1,an=()=>{it$1||(it$1=!0,ot$1());};rt$1()||R$3(z$8("startFlushing",an))();var Pr$2=(u,c,p,l)=>Q$6(u,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let u=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${u()}${u()}-${u()}-${u()}-${u()}-${u()}${u()}${u()}`};var cn=(...u)=>{if(!u.some(l=>!!l))return {};let p={};return u.forEach(l=>{l&&(p={...p,...l});}),p},pn=u=>u.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln=(u,c)=>`${u}_${pn(c)}`,fn$1=(u,c,p=!0,l)=>{let m=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:m,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let h=ln(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$2(u,h,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:u,flowName:c,flowId:m,flowStartTime:w},addEvent:R$3(k),addFlowProperties:R$3(B)}},hn=R$3(fn$1);var dn$1=(u,c,p,l)=>{let{message:m}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
|
|
4112
|
+
var Ut$2=Object.defineProperty;var St$1=(u,c)=>{for(var p in c)Ut$2(u,p,{get:c[p],enumerable:!0});};function Br$1(u){throw new Error("Node.js process "+u+" is not supported by JSPM core outside of Node.js")}var G$3=[],tr$1=!1,W$3,cr$2=-1;function kt$2(){!tr$1||!W$3||(tr$1=!1,W$3.length?G$3=W$3.concat(G$3):cr$2=-1,G$3.length&&Vr$1());}function Vr$1(){if(!tr$1){var u=setTimeout(kt$2,0);tr$1=!0;for(var c=G$3.length;c;){for(W$3=G$3,G$3=[];++cr$2<c;)W$3&&W$3[cr$2].run();cr$2=-1,c=G$3.length;}W$3=null,tr$1=!1,clearTimeout(u);}}function _t$1(u){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$3.push(new Gr$1(u,c)),G$3.length===1&&!tr$1&&setTimeout(Vr$1,0);}function Gr$1(u,c){this.fun=u,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$1="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$3="v16.8.0",Lt$2={},Dt$2=function(u,c){console.warn((c?c+": ":"")+u);},$t$2=function(u){Br$1("binding");},Ft$2=function(u){return 0},Ot$2=function(){return "/"},Vt$1=function(u){},Gt$3={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$7(){}var Yt$2=M$7,Kt$2=[];function Ht$2(u){Br$1("_linkedBinding");}var Wt$2={},jt$3=!1,Xt$3={};function qt$2(u){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$7,Zt$2=M$7,Tr$2=function(){return {}},re$3=Tr$2,te$3=Tr$2,ee$2=M$7,ne$5=M$7,ie$5=M$7,oe$4={};function se$3(u,c){if(!u)throw new Error(c||"assertion error")}var ue$2={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$2=M$7,ce$2=M$7;function pe$3(){return !1}var le$2=M$7,fe$4=M$7,he$2=M$7,de$2=M$7,me$3=M$7,we$3=void 0,ge$4=void 0,ye$3=void 0,Ee$2=M$7,Ie$1=2,Be$3=1,Te$2="/bin/usr/node",Ae$2=9229,xe$2="node",Ue$3=[],Se$3=M$7,K$7={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$7.now===void 0&&(yr$2=Date.now(),K$7.timing&&K$7.timing.navigationStart&&(yr$2=K$7.timing.navigationStart),K$7.now=()=>Date.now()-yr$2);var yr$2;function ke$3(){return K$7.now()/1e3}var Er$1=1e9;function Ir$2(u){var c=Math.floor((Date.now()-K$7.now())*.001),p=K$7.now()*.001,l=Math.floor(p)+c,m=Math.floor(p%1*1e9);return u&&(l=l-u[0],m=m-u[1],m<0&&(l--,m+=Er$1)),[l,m]}Ir$2.bigint=function(u){var c=Ir$2(u);return typeof BigInt>"u"?c[0]*Er$1+c[1]:BigInt(c[0]*Er$1)+BigInt(c[1])};var _e$2=10,Pe$3={},Re$4=0;function H$3(){return T$6}var be$3=H$3,Ne$1=H$3,ve$2=H$3,Me$1=H$3,Ce$3=H$3,Le$1=M$7,De$3=H$3,$e$3=H$3;function Fe$3(u){return []}var T$6={version:Ct$3,versions:Lt$2,arch:Rt$1,platform:bt$1,release:Gt$3,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:Ht$2,_events:Pe$3,_eventsCount:Re$4,_maxListeners:_e$2,on:H$3,addListener:be$3,once:Ne$1,off:ve$2,removeListener:Me$1,removeAllListeners:Ce$3,emit:Le$1,prependListener:De$3,prependOnceListener:$e$3,listeners:Fe$3,domain:Wt$2,_exiting:jt$3,config:Xt$3,dlopen:qt$2,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$3,memoryUsage:te$3,kill:ee$2,exit:ne$5,openStdin:ie$5,allowedNodeEnvironmentFlags:oe$4,assert:se$3,features:ue$2,_fatalExceptions:ae$2,setUncaughtExceptionCaptureCallback:ce$2,hasUncaughtExceptionCaptureCallback:pe$3,emitWarning:Dt$2,nextTick:_t$1,_tickCallback:le$2,_debugProcess:fe$4,_debugEnd:he$2,_startProfilerIdleNotifier:de$2,_stopProfilerIdleNotifier:me$3,stdout:we$3,stdin:ye$3,stderr:ge$4,abort:Ee$2,umask:Ft$2,chdir:Vt$1,cwd:Ot$2,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$2,debugPort:Ae$2,hrtime:Ir$2,argv0:xe$2,_preload_modules:Ue$3,setSourceMapsEnabled:Se$3};var nr$1={},Yr$1=!1;function Oe$2(){if(Yr$1)return nr$1;Yr$1=!0,nr$1.byteLength=E,nr$1.toByteArray=C,nr$1.fromByteArray=_;for(var u=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,w=l.length;m<w;++m)u[m]=l[m],c[l.charCodeAt(m)]=m;c[45]=62,c[95]=63;function o(f){var h=f.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=h);var A=g===h?0:4-g%4;return [g,A]}function E(f){var h=o(f),g=h[0],A=h[1];return (g+A)*3/4-A}function b(f,h,g){return (h+g)*3/4-g}function C(f){var h,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)h=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=h>>16&255,P[D++]=h>>8&255,P[D++]=h&255;return v===2&&(h=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=h&255),v===1&&(h=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=h>>8&255,P[D++]=h&255),P}function B(f){return u[f>>18&63]+u[f>>12&63]+u[f>>6&63]+u[f&63]}function k(f,h,g){for(var A,v=[],P=h;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var h,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(h=f[g-1],v.push(u[h>>2]+u[h<<4&63]+"==")):A===2&&(h=(f[g-2]<<8)+f[g-1],v.push(u[h>>10]+u[h>>4&63]+u[h<<2&63]+"=")),v.join("")}return nr$1}var pr$1={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$1;Kr$2=!0;return pr$1.read=function(u,c,p,l,m){var w,o,E=m*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?m-1:0,_=p?-1:1,f=u[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+u[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+u[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$1.write=function(u,c,p,l,m,w){var o,E,b,C=w*8-m-1,B=(1<<C)-1,k=B>>1,_=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,h=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,m),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,m),o=0));m>=8;u[p+f]=E&255,f+=h,E/=256,m-=8);for(o=o<<m|E,C+=m;C>0;u[p+f]=o&255,f+=h,o/=256,C-=8);u[p+f-h]|=g*128;},pr$1}var j$7={},Hr$1=!1;function Ge$2(){if(Hr$1)return j$7;Hr$1=!0;let u=Oe$2(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j$7.Buffer=o,j$7.SlowBuffer=v,j$7.INSPECT_MAX_BYTES=50;let l=2147483647;j$7.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=m(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function m(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return h(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function h(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let s=0,a=Math.min(n,i);s<a;++s)if(r[s]!==t[s]){n=r[s],i=t[s];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),s=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))s+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,s)):Uint8Array.prototype.set.call(i,a,s);else if(o.isBuffer(a))a.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=j$7.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,s){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>r.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===r)return 0;let a=s-i,d=n-t,x=Math.min(a,d),I=this.slice(i,s),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],d=U[y];break}return a<d?-1:d<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let s=1,a=e.length,d=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;s=2,a/=2,d/=2,t/=2;}function x(U,y){return s===1?U[y]:U.readUInt16BE(y*s)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===d)return U*s}else U!==-1&&(I-=I-U),U=-1;}else for(t+d>a&&(t=a-d),I=t;I>=0;I--){let U=!0;for(let y=0;y<d;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=r.length;n>s/2&&(n=s/2);let a;for(a=0;a<n;++a){let d=parseInt(r.substr(a*2,2),16);if(gr(d))return a;e[t+a]=d;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let s=e[i],a=null,d=s>239?4:s>223?3:s>191?2:1;if(i+d<=t){let x,I,U,y;switch(d){case 1:s<128&&(a=s);break;case 2:x=e[i+1],(x&192)===128&&(y=(s&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(s&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(s&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=d;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=r;s<t;++s)i+=At[e[s]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],s=1;for(;t>0&&(s*=256);)i+=this[r+--t]*s;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,s=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],s=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(s)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,s=1,a=this[r+--i];for(;i>0&&(s*=256);)a+=this[r+--i]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<s)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=1,a=0;for(this[t]=r&255;++a<n&&(s*=256);)this[t+a]=r/s&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=n-1,a=1;for(this[t+s]=r&255;--s>=0&&(a*=256);)this[t+s]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t+7]=s,s=s>>8,e[t+6]=s,s=s>>8,e[t+5]=s,s=s>>8,e[t+4]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=0,a=1,d=0;for(this[t]=r&255;++s<n&&(a*=256);)r<0&&d===0&&this[t+s-1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=n-1,a=1,d=0;for(this[t+s]=r&255;--s>=0&&(a*=256);)r<0&&d===0&&this[t+s+1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,s){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let s=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),s},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let s;if(typeof r=="number")for(s=t;s<n;++s)this[s]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),d=a.length;if(d===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=a[s%d];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,s){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",d;throw r===0||r===BigInt(0)?d=`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:d=`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** ${(s+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",d,e)}yt(n,i,s);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,s=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&s.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;s.push(t);}else if(t<2048){if((r-=2)<0)break;s.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=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 Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,s=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function Or(e){return u.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return j$7}var X$4=Ge$2();var S$8=X$4.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>We$5,getItem:()=>fr$1,setItem:()=>or$2});var ir$1=()=>typeof window>"u",lr$2=()=>!ir$1();var Ye$2="__IMX-",Ar$2=()=>lr$2()&&window.localStorage,Ke$1=u=>{if(u!==null)try{return JSON.parse(u)}catch{return u}},He$2=u=>typeof u=="string"?u:JSON.stringify(u),xr$2=u=>`${Ye$2}${u}`;function fr$1(u){if(Ar$2())return Ke$1(window.localStorage.getItem(xr$2(u)))}var or$2=(u,c)=>Ar$2()?(window.localStorage.setItem(xr$2(u),He$2(c)),!0):!1,We$5=u=>Ar$2()?(window.localStorage.removeItem(xr$2(u)),!0):!1;var Sr$2=0,Wr=u=>{let c=parseInt(u,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},jr$1=()=>{let u=new Date().getTime()+Sr$2;return new Date(u).toISOString()};var sr$1=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$1||{});var Xe$4="https://api.immutable.com";async function hr$2(u,c){let p=axios$1.create({baseURL:Xe$4}),l=JSON.stringify(c),m={payload:S$8.from(l).toString("base64")};return (await p.post(u,m)).data}var q$6,J$4,qe$1=()=>{q$6=fr$1("metrics-events")||[],J$4=fr$1("metrics-runtime")||{};};qe$1();var V$5=(u,c)=>{J$4={...J$4,[u]:c},or$2("metrics-runtime",J$4);},ur$1=u=>{if(J$4[u]!==void 0)return J$4[u]},Xr=()=>J$4,qr$1=()=>q$6,Jr$1=u=>{q$6.push(u),or$2("metrics-events",q$6);},zr$2=u=>{q$6=q$6.slice(u),or$2("metrics-events",q$6);},dr$1=u=>{let c=[];return Object.entries(u).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$1="2.10.4-alpha.0",Je$3=()=>ir$1()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$2=()=>{if(ir$1())return "";let u;try{window.self!==window.top&&(u=Je$3());}catch{}return u||(u=window.location.hostname),u},Qe$3=()=>{if(V$5("sdkVersion",kr$1),ir$1())return {browser:"nodejs",sdkVersion:kr$1};let u=ze$2();return u&&V$5("domain",u),{sdkVersion:kr$1,browser:window.navigator.userAgent,domain:u,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let u=dr$1(Qe$3()),c=ur$1("rid"),p=ur$1("uid"),m=await hr$2("/v1/sdk/initialise",{version:1,data:{runtimeDetails:u,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=m;V$5("rid",w),Wr(o);}catch{_r$2=!1;}};function R$3(u,c){return (...p)=>{try{let l=u(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$6>"u"?!1:T$6.env.JEST_WORKER_ID!==void 0}var rt$1=R$3(Ze$4,!1);var et$1="imtbl__metrics",tn$1=5e3,en$1=1e3,z$8=(u,c)=>getGlobalisedValue_1(et$1,u,c),nt$2=(u,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$1,u,p)};var nn=5e3,on=(u,c,p)=>{let l={event:`${u}.${c}`,time:jr$1(),...p&&{properties:dr$1(p)}};Jr$1(l);},Q$6=R$3(nt$2("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let u=qr$1();if(u.length===0)return;let c=u.length,p=Xr();await hr$2("/v1/sdk/metrics",{version:1,data:{events:u,details:p}})instanceof Error||zr$2(c);},un=R$3(sn),ot$1=async()=>{await un(),setTimeout(ot$1,nn);},it$1=!1,an=()=>{it$1||(it$1=!0,ot$1());};rt$1()||R$3(z$8("startFlushing",an))();var Pr$2=(u,c,p,l)=>Q$6(u,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let u=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${u()}${u()}-${u()}-${u()}-${u()}-${u()}${u()}${u()}`};var cn=(...u)=>{if(!u.some(l=>!!l))return {};let p={};return u.forEach(l=>{l&&(p={...p,...l});}),p},pn$1=u=>u.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln=(u,c)=>`${u}_${pn$1(c)}`,fn=(u,c,p=!0,l)=>{let m=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:m,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let h=ln(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$2(u,h,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:u,flowName:c,flowId:m,flowStartTime:w},addEvent:R$3(k),addFlowProperties:R$3(B)}},hn=R$3(fn);var dn$1=(u,c,p,l)=>{let{message:m}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
|
|
4113
4113
|
Cause: ${o.message}
|
|
4114
|
-
${o.stack}`),Q$6(u,`trackError_${c}`,{...l||{},errorMessage:m,errorStack:w,isTrackError:!0});},mn=R$3(dn$1);var En$1=u=>{V$5("env",u);},In$1=R$3(z$8("setEnvironment",En$1)),Bn=u=>{V$5("passportClientId",u);};R$3(z$8("setPassportClientId",Bn));var An=u=>{V$5("pak",u);};R$3(z$8("setPublishableApiKey",An));R$3(z$8("getDetail",ur$1));
|
|
4114
|
+
${o.stack}`),Q$6(u,`trackError_${c}`,{...l||{},errorMessage:m,errorStack:w,isTrackError:!0});},mn$1=R$3(dn$1);var En$1=u=>{V$5("env",u);},In$1=R$3(z$8("setEnvironment",En$1)),Bn=u=>{V$5("passportClientId",u);};R$3(z$8("setPassportClientId",Bn));var An=u=>{V$5("pak",u);};R$3(z$8("setPublishableApiKey",An));R$3(z$8("getDetail",ur$1));
|
|
4115
4115
|
|
|
4116
4116
|
var K$6=(t=>(t.PRODUCTION="production",t.SANDBOX="sandbox",t))(K$6||{}),u$3=(n=>(n.API_KEY="x-immutable-api-key",n.PUBLISHABLE_KEY="x-immutable-publishable-key",n.RATE_LIMITING_KEY="x-api-key",n))(u$3||{}),r$7=class r{environment;rateLimitingKey;apiKey;publishableKey;constructor(i){this.environment=i.environment,this.publishableKey=i.publishableKey,this.apiKey=i.apiKey,this.rateLimitingKey=i.rateLimitingKey,In$1(i.environment),Q$6("config","created_imtbl_config");}};
|
|
4117
4117
|
|
|
@@ -60383,7 +60383,7 @@ function requireEthers$1 () {
|
|
|
60383
60383
|
} (lib_commonjs$2));
|
|
60384
60384
|
|
|
60385
60385
|
// src/widgets/definitions/events/widgets.ts
|
|
60386
|
-
var
|
|
60386
|
+
var ro$1 = /* @__PURE__ */ ((g) => {
|
|
60387
60387
|
g["IMTBL_WIDGETS_PROVIDER"] = "imtbl-widgets-provider";
|
|
60388
60388
|
g["IMTBL_CONNECT_WIDGET_EVENT"] = "imtbl-connect-widget";
|
|
60389
60389
|
g["IMTBL_WALLET_WIDGET_EVENT"] = "imtbl-wallet-widget";
|
|
@@ -60396,43 +60396,43 @@ var oo$1 = /* @__PURE__ */ ((g) => {
|
|
|
60396
60396
|
g["IMTBL_PURCHASE_WIDGET_EVENT"] = "imtbl-purchase-widget";
|
|
60397
60397
|
g["IMTBL_TRANSFER_WIDGET_EVENT"] = "imtbl-transfer-widget";
|
|
60398
60398
|
return g;
|
|
60399
|
-
})(
|
|
60400
|
-
var
|
|
60399
|
+
})(ro$1 || {});
|
|
60400
|
+
var oo$1 = /* @__PURE__ */ ((e) => {
|
|
60401
60401
|
e["PROVIDER_UPDATED"] = "PROVIDER_UPDATED";
|
|
60402
60402
|
return e;
|
|
60403
|
-
})(
|
|
60403
|
+
})(oo$1 || {});
|
|
60404
60404
|
|
|
60405
60405
|
// src/widgets/definitions/events/connect.ts
|
|
60406
|
-
var
|
|
60406
|
+
var no$1 = /* @__PURE__ */ ((a) => {
|
|
60407
60407
|
a["CLOSE_WIDGET"] = "close-widget";
|
|
60408
60408
|
a["SUCCESS"] = "success";
|
|
60409
60409
|
a["FAILURE"] = "failure";
|
|
60410
60410
|
a["LANGUAGE_CHANGED"] = "language-changed";
|
|
60411
60411
|
a["WALLETCONNECT_PROVIDER_UPDATED"] = "walletconnect-provider-updated";
|
|
60412
60412
|
return a;
|
|
60413
|
-
})(
|
|
60413
|
+
})(no$1 || {});
|
|
60414
60414
|
|
|
60415
60415
|
// src/widgets/definitions/events/wallet.ts
|
|
60416
|
-
var
|
|
60416
|
+
var ao$1 = /* @__PURE__ */ ((n) => {
|
|
60417
60417
|
n["CLOSE_WIDGET"] = "close-widget";
|
|
60418
60418
|
n["NETWORK_SWITCH"] = "network-switch";
|
|
60419
60419
|
n["DISCONNECT_WALLET"] = "disconnect-wallet";
|
|
60420
60420
|
n["LANGUAGE_CHANGED"] = "language-changed";
|
|
60421
60421
|
return n;
|
|
60422
|
-
})(
|
|
60422
|
+
})(ao$1 || {});
|
|
60423
60423
|
|
|
60424
60424
|
// src/widgets/definitions/events/swap.ts
|
|
60425
|
-
var
|
|
60425
|
+
var io$1 = /* @__PURE__ */ ((a) => {
|
|
60426
60426
|
a["CLOSE_WIDGET"] = "close-widget";
|
|
60427
60427
|
a["SUCCESS"] = "success";
|
|
60428
60428
|
a["FAILURE"] = "failure";
|
|
60429
60429
|
a["REJECTED"] = "rejected";
|
|
60430
60430
|
a["LANGUAGE_CHANGED"] = "language-changed";
|
|
60431
60431
|
return a;
|
|
60432
|
-
})(
|
|
60432
|
+
})(io$1 || {});
|
|
60433
60433
|
|
|
60434
60434
|
// src/widgets/definitions/events/sale.ts
|
|
60435
|
-
var
|
|
60435
|
+
var so$1 = /* @__PURE__ */ ((g) => {
|
|
60436
60436
|
g["CLOSE_WIDGET"] = "close-widget";
|
|
60437
60437
|
g["SUCCESS"] = "success";
|
|
60438
60438
|
g["FAILURE"] = "failure";
|
|
@@ -60445,16 +60445,16 @@ var co$1 = /* @__PURE__ */ ((g) => {
|
|
|
60445
60445
|
g["REQUEST_SWAP"] = "request-swap";
|
|
60446
60446
|
g["PAYMENT_TOKEN"] = "payment-token";
|
|
60447
60447
|
return g;
|
|
60448
|
-
})(
|
|
60449
|
-
var
|
|
60448
|
+
})(so$1 || {});
|
|
60449
|
+
var co$1 = /* @__PURE__ */ ((o) => {
|
|
60450
60450
|
o["CRYPTO"] = "crypto";
|
|
60451
60451
|
o["DEBIT"] = "debit";
|
|
60452
60452
|
o["CREDIT"] = "credit";
|
|
60453
60453
|
return o;
|
|
60454
|
-
})(
|
|
60454
|
+
})(co$1 || {});
|
|
60455
60455
|
|
|
60456
60456
|
// src/widgets/definitions/events/bridge.ts
|
|
60457
|
-
var
|
|
60457
|
+
var lo$1 = /* @__PURE__ */ ((i) => {
|
|
60458
60458
|
i["CLOSE_WIDGET"] = "close-widget";
|
|
60459
60459
|
i["FAILURE"] = "failure";
|
|
60460
60460
|
i["TRANSACTION_SENT"] = "transaction-sent";
|
|
@@ -60462,10 +60462,10 @@ var po$1 = /* @__PURE__ */ ((i) => {
|
|
|
60462
60462
|
i["CLAIM_WITHDRAWAL_SUCCESS"] = "claim-withdrawal-success";
|
|
60463
60463
|
i["CLAIM_WITHDRAWAL_FAILURE"] = "claim-withdrawal-failure";
|
|
60464
60464
|
return i;
|
|
60465
|
-
})(
|
|
60465
|
+
})(lo$1 || {});
|
|
60466
60466
|
|
|
60467
60467
|
// src/widgets/definitions/events/orchestration.ts
|
|
60468
|
-
var
|
|
60468
|
+
var po$1 = /* @__PURE__ */ ((c) => {
|
|
60469
60469
|
c["REQUEST_CONNECT"] = "request-connect";
|
|
60470
60470
|
c["REQUEST_WALLET"] = "request-wallet";
|
|
60471
60471
|
c["REQUEST_SWAP"] = "request-swap";
|
|
@@ -60475,19 +60475,19 @@ var uo = /* @__PURE__ */ ((c) => {
|
|
|
60475
60475
|
c["REQUEST_PURCHASE"] = "request-purchase";
|
|
60476
60476
|
c["REQUEST_GO_BACK"] = "request-go-back";
|
|
60477
60477
|
return c;
|
|
60478
|
-
})(
|
|
60478
|
+
})(po$1 || {});
|
|
60479
60479
|
|
|
60480
60480
|
// src/widgets/definitions/events/onramp.ts
|
|
60481
|
-
var
|
|
60481
|
+
var uo = /* @__PURE__ */ ((n) => {
|
|
60482
60482
|
n["CLOSE_WIDGET"] = "close-widget";
|
|
60483
60483
|
n["SUCCESS"] = "success";
|
|
60484
60484
|
n["FAILURE"] = "failure";
|
|
60485
60485
|
n["LANGUAGE_CHANGED"] = "language-changed";
|
|
60486
60486
|
return n;
|
|
60487
|
-
})(
|
|
60487
|
+
})(uo || {});
|
|
60488
60488
|
|
|
60489
60489
|
// src/widgets/definitions/events/commerce.ts
|
|
60490
|
-
var
|
|
60490
|
+
var mo$1 = /* @__PURE__ */ ((s) => {
|
|
60491
60491
|
s["INITIALISED"] = "INITIALISED";
|
|
60492
60492
|
s["PROVIDER_UPDATED"] = "PROVIDER_UPDATED";
|
|
60493
60493
|
s["CLOSE"] = "CLOSE";
|
|
@@ -60496,8 +60496,8 @@ var go$1 = /* @__PURE__ */ ((s) => {
|
|
|
60496
60496
|
s["DISCONNECTED"] = "DISCONNECTED";
|
|
60497
60497
|
s["USER_ACTION"] = "USER_ACTION";
|
|
60498
60498
|
return s;
|
|
60499
|
-
})(
|
|
60500
|
-
var
|
|
60499
|
+
})(mo$1 || {});
|
|
60500
|
+
var go$1 = /* @__PURE__ */ ((u) => {
|
|
60501
60501
|
u["SWAP_SUCCESS"] = "SWAP_SUCCESS";
|
|
60502
60502
|
u["ONRAMP_SUCCESS"] = "ONRAMP_SUCCESS";
|
|
60503
60503
|
u["CONNECT_SUCCESS"] = "CONNECT_SUCCESS";
|
|
@@ -60509,8 +60509,8 @@ var fo$1 = /* @__PURE__ */ ((u) => {
|
|
|
60509
60509
|
u["ADD_TOKENS_CONNECT_SUCCESS"] = "ADD_TOKENS_CONNECT_SUCCESS";
|
|
60510
60510
|
u["TRANSFER_SUCCESS"] = "TRANSFER_SUCCESS";
|
|
60511
60511
|
return u;
|
|
60512
|
-
})(
|
|
60513
|
-
var
|
|
60512
|
+
})(go$1 || {});
|
|
60513
|
+
var fo$1 = /* @__PURE__ */ ((p) => {
|
|
60514
60514
|
p["BRIDGE_FAILED"] = "BRIDGE_FAILED";
|
|
60515
60515
|
p["BRIDGE_CLAIM_WITHDRAWAL_FAILED"] = "BRIDGE_CLAIM_WITHDRAWAL_FAILED";
|
|
60516
60516
|
p["SWAP_FAILED"] = "SWAP_FAILED";
|
|
@@ -60521,44 +60521,44 @@ var Eo$1 = /* @__PURE__ */ ((p) => {
|
|
|
60521
60521
|
p["ADD_TOKENS_FAILED"] = "ADD_TOKENS_FAILED";
|
|
60522
60522
|
p["TRANSFER_FAILED"] = "TRANSFER_FAILED";
|
|
60523
60523
|
return p;
|
|
60524
|
-
})(
|
|
60525
|
-
var
|
|
60524
|
+
})(fo$1 || {});
|
|
60525
|
+
var Eo$1 = /* @__PURE__ */ ((o) => {
|
|
60526
60526
|
o["PAYMENT_METHOD_SELECTED"] = "PAYMENT_METHOD_SELECTED";
|
|
60527
60527
|
o["PAYMENT_TOKEN_SELECTED"] = "PAYMENT_TOKEN_SELECTED";
|
|
60528
60528
|
o["NETWORK_SWITCH"] = "NETWORK_SWITCH";
|
|
60529
60529
|
return o;
|
|
60530
|
-
})(
|
|
60530
|
+
})(Eo$1 || {});
|
|
60531
60531
|
|
|
60532
60532
|
// src/widgets/definitions/events/addTokens.ts
|
|
60533
|
-
var
|
|
60533
|
+
var Ro$1 = /* @__PURE__ */ ((a) => {
|
|
60534
60534
|
a["CLOSE_WIDGET"] = "close-widget";
|
|
60535
60535
|
a["LANGUAGE_CHANGED"] = "language-changed";
|
|
60536
60536
|
a["CONNECT_SUCCESS"] = "connect-success";
|
|
60537
60537
|
a["SUCCESS"] = "success";
|
|
60538
60538
|
a["FAILURE"] = "failure";
|
|
60539
60539
|
return a;
|
|
60540
|
-
})(
|
|
60540
|
+
})(Ro$1 || {});
|
|
60541
60541
|
|
|
60542
60542
|
// src/widgets/definitions/events/purchase.ts
|
|
60543
|
-
var
|
|
60543
|
+
var Co$1 = /* @__PURE__ */ ((n) => {
|
|
60544
60544
|
n["CLOSE_WIDGET"] = "close-widget";
|
|
60545
60545
|
n["CONNECT_SUCCESS"] = "connect-success";
|
|
60546
60546
|
n["SUCCESS"] = "success";
|
|
60547
60547
|
n["FAILURE"] = "failure";
|
|
60548
60548
|
return n;
|
|
60549
|
-
})(
|
|
60549
|
+
})(Co$1 || {});
|
|
60550
60550
|
|
|
60551
60551
|
// src/widgets/definitions/events/transfer.ts
|
|
60552
|
-
var
|
|
60552
|
+
var To = /* @__PURE__ */ ((n) => {
|
|
60553
60553
|
n["CLOSE_WIDGET"] = "close-widget";
|
|
60554
60554
|
n["REJECTED"] = "rejected";
|
|
60555
60555
|
n["SUCCESS"] = "success";
|
|
60556
60556
|
n["FAILURE"] = "failure";
|
|
60557
60557
|
return n;
|
|
60558
|
-
})(
|
|
60558
|
+
})(To || {});
|
|
60559
60559
|
|
|
60560
60560
|
// src/widgets/definitions/types.ts
|
|
60561
|
-
var
|
|
60561
|
+
var Io$1 = /* @__PURE__ */ ((u) => {
|
|
60562
60562
|
u["CONNECT"] = "connect";
|
|
60563
60563
|
u["WALLET"] = "wallet";
|
|
60564
60564
|
u["SWAP"] = "swap";
|
|
@@ -60570,7 +60570,7 @@ var ho = /* @__PURE__ */ ((u) => {
|
|
|
60570
60570
|
u["PURCHASE"] = "purchase";
|
|
60571
60571
|
u["TRANSFER"] = "transfer";
|
|
60572
60572
|
return u;
|
|
60573
|
-
})(
|
|
60573
|
+
})(Io$1 || {});
|
|
60574
60574
|
|
|
60575
60575
|
// src/widgets/definitions/parameters/swap.ts
|
|
60576
60576
|
var yo$1 = /* @__PURE__ */ ((t) => {
|
|
@@ -60580,7 +60580,7 @@ var yo$1 = /* @__PURE__ */ ((t) => {
|
|
|
60580
60580
|
})(yo$1 || {});
|
|
60581
60581
|
|
|
60582
60582
|
// src/widgets/definitions/parameters/commerce.ts
|
|
60583
|
-
var
|
|
60583
|
+
var Ao$1 = /* @__PURE__ */ ((p) => {
|
|
60584
60584
|
p["CONNECT"] = "CONNECT";
|
|
60585
60585
|
p["WALLET"] = "WALLET";
|
|
60586
60586
|
p["SALE"] = "SALE";
|
|
@@ -60591,59 +60591,59 @@ var wo$1 = /* @__PURE__ */ ((p) => {
|
|
|
60591
60591
|
p["PURCHASE"] = "PURCHASE";
|
|
60592
60592
|
p["TRANSFER"] = "TRANSFER";
|
|
60593
60593
|
return p;
|
|
60594
|
-
})(
|
|
60594
|
+
})(Ao$1 || {});
|
|
60595
60595
|
|
|
60596
60596
|
// src/widgets/definitions/configurations/theme.ts
|
|
60597
|
-
var
|
|
60597
|
+
var wo$1 = /* @__PURE__ */ ((t) => {
|
|
60598
60598
|
t["LIGHT"] = "light";
|
|
60599
60599
|
t["DARK"] = "dark";
|
|
60600
60600
|
return t;
|
|
60601
|
-
})(
|
|
60601
|
+
})(wo$1 || {});
|
|
60602
60602
|
|
|
60603
60603
|
// src/errors/checkoutError.ts
|
|
60604
|
-
var S$7 = /* @__PURE__ */ ((
|
|
60605
|
-
|
|
60606
|
-
|
|
60607
|
-
|
|
60608
|
-
|
|
60609
|
-
|
|
60610
|
-
|
|
60611
|
-
|
|
60612
|
-
|
|
60613
|
-
|
|
60614
|
-
|
|
60615
|
-
|
|
60616
|
-
|
|
60617
|
-
|
|
60618
|
-
|
|
60619
|
-
|
|
60620
|
-
|
|
60621
|
-
|
|
60622
|
-
|
|
60623
|
-
|
|
60624
|
-
|
|
60625
|
-
|
|
60626
|
-
|
|
60627
|
-
|
|
60628
|
-
|
|
60629
|
-
|
|
60630
|
-
|
|
60631
|
-
|
|
60632
|
-
|
|
60633
|
-
|
|
60634
|
-
|
|
60635
|
-
|
|
60636
|
-
|
|
60637
|
-
|
|
60638
|
-
|
|
60639
|
-
|
|
60640
|
-
|
|
60641
|
-
|
|
60642
|
-
|
|
60643
|
-
|
|
60644
|
-
|
|
60645
|
-
|
|
60646
|
-
return
|
|
60604
|
+
var S$7 = /* @__PURE__ */ ((A) => {
|
|
60605
|
+
A["MISSING_PARAMS"] = "MISSING_PARAMS";
|
|
60606
|
+
A["WEB3_PROVIDER_ERROR"] = "WEB3_PROVIDER_ERROR";
|
|
60607
|
+
A["PROVIDER_ERROR"] = "PROVIDER_ERROR";
|
|
60608
|
+
A["DEFAULT_PROVIDER_ERROR"] = "DEFAULT_PROVIDER_ERROR";
|
|
60609
|
+
A["CONNECT_PROVIDER_ERROR"] = "CONNECT_PROVIDER_ERROR";
|
|
60610
|
+
A["GET_BALANCE_ERROR"] = "GET_BALANCE_ERROR";
|
|
60611
|
+
A["GET_INDEXER_BALANCE_ERROR"] = "GET_INDEXER_BALANCE_ERROR";
|
|
60612
|
+
A["GET_ERC20_INFO_ERROR"] = "GET_ERC20_INFO_ERROR";
|
|
60613
|
+
A["GET_ERC20_BALANCE_ERROR"] = "GET_ERC20_BALANCE_ERROR";
|
|
60614
|
+
A["GET_ERC721_BALANCE_ERROR"] = "GET_ERC721_BALANCE_ERROR";
|
|
60615
|
+
A["GET_NETWORK_INFO_ERROR"] = "GET_NETWORK_INFO_ERROR";
|
|
60616
|
+
A["METAMASK_PROVIDER_ERROR"] = "METAMASK_PROVIDER_ERROR";
|
|
60617
|
+
A["CHAIN_NOT_SUPPORTED_ERROR"] = "CHAIN_NOT_SUPPORTED_ERROR";
|
|
60618
|
+
A["PROVIDER_REQUEST_MISSING_ERROR"] = "PROVIDER_REQUEST_MISSING_ERROR";
|
|
60619
|
+
A["PROVIDER_REQUEST_FAILED_ERROR"] = "PROVIDER_REQUEST_FAILED_ERROR";
|
|
60620
|
+
A["USER_REJECTED_REQUEST_ERROR"] = "USER_REJECTED_REQUEST_ERROR";
|
|
60621
|
+
A["TRANSACTION_FAILED"] = "TRANSACTION_FAILED";
|
|
60622
|
+
A["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
|
60623
|
+
A["UNPREDICTABLE_GAS_LIMIT"] = "UNPREDICTABLE_GAS_LIMIT";
|
|
60624
|
+
A["INVALID_GAS_ESTIMATE_TYPE"] = "INVALID_GAS_ESTIMATE_TYPE";
|
|
60625
|
+
A["UNSUPPORTED_TOKEN_TYPE_ERROR"] = "UNSUPPORTED_TOKEN_TYPE_ERROR";
|
|
60626
|
+
A["UNSUPPORTED_BALANCE_REQUIREMENT_ERROR"] = "UNSUPPORTED_BALANCE_REQUIREMENT_ERROR";
|
|
60627
|
+
A["GET_ORDER_LISTING_ERROR"] = "GET_ORDER_LISTING_ERROR";
|
|
60628
|
+
A["CANCEL_ORDER_LISTING_ERROR"] = "CANCEL_ORDER_LISTING_ERROR";
|
|
60629
|
+
A["PREPARE_ORDER_LISTING_ERROR"] = "PREPARE_ORDER_LISTING_ERROR";
|
|
60630
|
+
A["CREATE_ORDER_LISTING_ERROR"] = "CREATE_ORDER_LISTING_ERROR";
|
|
60631
|
+
A["FULFILL_ORDER_LISTING_ERROR"] = "FULFILL_ORDER_LISTING_ERROR";
|
|
60632
|
+
A["SWITCH_NETWORK_UNSUPPORTED"] = "SWITCH_NETWORK_UNSUPPORTED";
|
|
60633
|
+
A["GET_ERC20_ALLOWANCE_ERROR"] = "GET_ERC20_ALLOWANCE_ERROR";
|
|
60634
|
+
A["GET_ERC721_ALLOWANCE_ERROR"] = "GET_ERC721_ALLOWANCE_ERROR";
|
|
60635
|
+
A["GET_ERC1155_ALLOWANCE_ERROR"] = "GET_ERC1155_ALLOWANCE_ERROR";
|
|
60636
|
+
A["EXECUTE_APPROVAL_TRANSACTION_ERROR"] = "EXECUTE_APPROVAL_TRANSACTION_ERROR";
|
|
60637
|
+
A["EXECUTE_FULFILLMENT_TRANSACTION_ERROR"] = "EXECUTE_FULFILLMENT_TRANSACTION_ERROR";
|
|
60638
|
+
A["SIGN_MESSAGE_ERROR"] = "SIGN_MESSAGE_ERROR";
|
|
60639
|
+
A["BRIDGE_GAS_ESTIMATE_ERROR"] = "BRIDGE_GAS_ESTIMATE_ERROR";
|
|
60640
|
+
A["ORDER_FEE_ERROR"] = "ORDER_FEE_ERROR";
|
|
60641
|
+
A["ITEM_REQUIREMENTS_ERROR"] = "ITEM_REQUIREMENTS_ERROR";
|
|
60642
|
+
A["API_ERROR"] = "API_ERROR";
|
|
60643
|
+
A["ORDER_EXPIRED_ERROR"] = "ORDER_EXPIRED_ERROR";
|
|
60644
|
+
A["WIDGETS_SCRIPT_LOAD_ERROR"] = "WIDGETS_SCRIPT_LOAD_ERROR";
|
|
60645
|
+
A["APPROVAL_TRANSACTION_FAILED"] = "APPROVAL_TRANSACTION_FAILED";
|
|
60646
|
+
return A;
|
|
60647
60647
|
})(S$7 || {});
|
|
60648
60648
|
var m$5 = class m extends Error {
|
|
60649
60649
|
message;
|
|
@@ -60658,14 +60658,14 @@ var m$5 = class m extends Error {
|
|
|
60658
60658
|
};
|
|
60659
60659
|
|
|
60660
60660
|
// src/types/chains.ts
|
|
60661
|
-
var
|
|
60661
|
+
var J$3 = /* @__PURE__ */ ((a) => {
|
|
60662
60662
|
a[a["IMTBL_ZKEVM_MAINNET"] = 13371] = "IMTBL_ZKEVM_MAINNET";
|
|
60663
60663
|
a[a["IMTBL_ZKEVM_TESTNET"] = 13473] = "IMTBL_ZKEVM_TESTNET";
|
|
60664
60664
|
a[a["IMTBL_ZKEVM_DEVNET"] = 15003] = "IMTBL_ZKEVM_DEVNET";
|
|
60665
60665
|
a[a["ETHEREUM"] = 1] = "ETHEREUM";
|
|
60666
60666
|
a[a["SEPOLIA"] = 11155111] = "SEPOLIA";
|
|
60667
60667
|
return a;
|
|
60668
|
-
})(
|
|
60668
|
+
})(J$3 || {});
|
|
60669
60669
|
var nt$1 = /* @__PURE__ */ ((a) => {
|
|
60670
60670
|
a["ETHEREUM"] = "Ethereum";
|
|
60671
60671
|
a["SEPOLIA"] = "Sepolia";
|
|
@@ -60684,23 +60684,23 @@ var we$2 = /* @__PURE__ */ ((a) => {
|
|
|
60684
60684
|
})(we$2 || {});
|
|
60685
60685
|
|
|
60686
60686
|
// src/env/constants.ts
|
|
60687
|
-
var
|
|
60688
|
-
var
|
|
60687
|
+
var $$2 = "development";
|
|
60688
|
+
var j$6 = 18;
|
|
60689
60689
|
var x$4 = "native";
|
|
60690
60690
|
var ke$2 = {
|
|
60691
60691
|
name: "IMX",
|
|
60692
60692
|
symbol: "IMX",
|
|
60693
|
-
decimals:
|
|
60693
|
+
decimals: j$6,
|
|
60694
60694
|
address: x$4
|
|
60695
60695
|
};
|
|
60696
|
-
var
|
|
60696
|
+
var vo$1 = {
|
|
60697
60697
|
name: "tIMX",
|
|
60698
60698
|
symbol: "tIMX",
|
|
60699
|
-
decimals:
|
|
60699
|
+
decimals: j$6,
|
|
60700
60700
|
address: x$4
|
|
60701
60701
|
};
|
|
60702
|
-
var
|
|
60703
|
-
[
|
|
60702
|
+
var q$5 = {
|
|
60703
|
+
[$$2]: "https://api.dev.immutable.com",
|
|
60704
60704
|
[K$6.SANDBOX]: "https://api.sandbox.immutable.com",
|
|
60705
60705
|
[K$6.PRODUCTION]: "https://api.immutable.com"
|
|
60706
60706
|
};
|
|
@@ -60752,11 +60752,11 @@ var Se$2 = /* @__PURE__ */ new Map([
|
|
|
60752
60752
|
chainIdHex: `0x${13473 .toString(16)}`,
|
|
60753
60753
|
chainName: "Immutable zkEVM Testnet",
|
|
60754
60754
|
rpcUrls: ["https://rpc.testnet.immutable.com"],
|
|
60755
|
-
nativeCurrency:
|
|
60755
|
+
nativeCurrency: vo$1
|
|
60756
60756
|
}
|
|
60757
60757
|
]
|
|
60758
60758
|
]);
|
|
60759
|
-
var
|
|
60759
|
+
var ne$4 = {
|
|
60760
60760
|
[13473]: {
|
|
60761
60761
|
url: "https://explorer.testnet.immutable.com",
|
|
60762
60762
|
nativeToken: Se$2.get(13473).nativeCurrency
|
|
@@ -60793,25 +60793,25 @@ var ge$3 = /* @__PURE__ */ ((e) => {
|
|
|
60793
60793
|
})(ge$3 || {});
|
|
60794
60794
|
|
|
60795
60795
|
// src/types/token.ts
|
|
60796
|
-
var
|
|
60796
|
+
var ie$4 = /* @__PURE__ */ ((n) => {
|
|
60797
60797
|
n["ALL"] = "all";
|
|
60798
60798
|
n["SWAP"] = "swap";
|
|
60799
60799
|
n["BRIDGE"] = "bridge";
|
|
60800
60800
|
n["ONRAMP"] = "onramp";
|
|
60801
60801
|
return n;
|
|
60802
|
-
})(
|
|
60802
|
+
})(ie$4 || {});
|
|
60803
60803
|
var fe$3 = /* @__PURE__ */ ((o) => {
|
|
60804
60804
|
o["PASSPORT"] = "passport";
|
|
60805
60805
|
o["METAMASK"] = "metamask";
|
|
60806
60806
|
o["WALLETCONNECT"] = "walletconnect";
|
|
60807
60807
|
return o;
|
|
60808
60808
|
})(fe$3 || {});
|
|
60809
|
-
var
|
|
60809
|
+
var Gt$2 = /* @__PURE__ */ ((o) => {
|
|
60810
60810
|
o["PASSPORT"] = "com.immutable.passport";
|
|
60811
60811
|
o["METAMASK"] = "io.metamask";
|
|
60812
60812
|
o["WALLETCONNECT"] = "walletconnect";
|
|
60813
60813
|
return o;
|
|
60814
|
-
})(
|
|
60814
|
+
})(Gt$2 || {});
|
|
60815
60815
|
var D$6 = class D extends BrowserProvider {
|
|
60816
60816
|
ethereumProvider;
|
|
60817
60817
|
// eslint-disable-next-line max-len
|
|
@@ -60857,15 +60857,15 @@ var Te$1 = /* @__PURE__ */ ((o) => {
|
|
|
60857
60857
|
})(Te$1 || {});
|
|
60858
60858
|
|
|
60859
60859
|
// src/types/fiatRamp.ts
|
|
60860
|
-
var
|
|
60860
|
+
var jt$2 = /* @__PURE__ */ ((e) => {
|
|
60861
60861
|
e["ONRAMP"] = "onramp";
|
|
60862
60862
|
return e;
|
|
60863
|
-
})(
|
|
60863
|
+
})(jt$2 || {});
|
|
60864
60864
|
|
|
60865
60865
|
// src/gasEstimate/gasPriceInWei.ts
|
|
60866
|
-
var
|
|
60866
|
+
var pn = (r) => !!r.maxFeePerGas && !!r.maxPriorityFeePerGas;
|
|
60867
60867
|
var Ct$2 = (r) => {
|
|
60868
|
-
if (
|
|
60868
|
+
if (pn(r)) {
|
|
60869
60869
|
const { maxFeePerGas: e, maxPriorityFeePerGas: t } = r;
|
|
60870
60870
|
if (e === null || t === null) return null;
|
|
60871
60871
|
const o = (e - t) / BigInt(2);
|
|
@@ -60890,11 +60890,11 @@ var We$4 = {
|
|
|
60890
60890
|
rdns: "com.immutable.passport",
|
|
60891
60891
|
uuid: "b90118be-7234-4c89-b89b-d5d267663eb5"
|
|
60892
60892
|
};
|
|
60893
|
-
var
|
|
60893
|
+
var mn = (r) => ({
|
|
60894
60894
|
info: We$4,
|
|
60895
60895
|
provider: r
|
|
60896
60896
|
});
|
|
60897
|
-
var
|
|
60897
|
+
var gn = (r) => ({
|
|
60898
60898
|
info: De$2,
|
|
60899
60899
|
provider: r
|
|
60900
60900
|
});
|
|
@@ -60911,7 +60911,7 @@ var tt$1 = class tt {
|
|
|
60911
60911
|
* @returns {string | undefined} The URL to view the transaction on Blockscout, or undefined if the chain ID or hash is invalid
|
|
60912
60912
|
*/
|
|
60913
60913
|
static getTransactionLink(e, t) {
|
|
60914
|
-
const o =
|
|
60914
|
+
const o = ne$4?.[e]?.url;
|
|
60915
60915
|
if (!o || !t) return void 0;
|
|
60916
60916
|
return `${o}/tx/${t}`;
|
|
60917
60917
|
}
|
|
@@ -69491,7 +69491,7 @@ const DEFAULT_ENV = K$6.SANDBOX;
|
|
|
69491
69491
|
/**
|
|
69492
69492
|
* Commerce Widget default theme
|
|
69493
69493
|
*/
|
|
69494
|
-
const DEFAULT_THEME$1 =
|
|
69494
|
+
const DEFAULT_THEME$1 = wo$1.DARK;
|
|
69495
69495
|
/**
|
|
69496
69496
|
* Commerce Widget default onramp enabled flag
|
|
69497
69497
|
*/
|
|
@@ -69564,9 +69564,9 @@ function addProviderListenersForWidgetRoot(provider) {
|
|
|
69564
69564
|
}
|
|
69565
69565
|
|
|
69566
69566
|
function sendProviderUpdatedEvent(eventData) {
|
|
69567
|
-
const providerUpdatedEvent = new CustomEvent(
|
|
69567
|
+
const providerUpdatedEvent = new CustomEvent(ro$1.IMTBL_WIDGETS_PROVIDER, {
|
|
69568
69568
|
detail: {
|
|
69569
|
-
type:
|
|
69569
|
+
type: oo$1.PROVIDER_UPDATED,
|
|
69570
69570
|
data: eventData,
|
|
69571
69571
|
},
|
|
69572
69572
|
});
|
|
@@ -69830,7 +69830,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
69830
69830
|
|
|
69831
69831
|
const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$4={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$2={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$2.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$2.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$2.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$2.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$2.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$4.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$2=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$3=proxy({enabled:_$2,userSessionId:"",events:[],connectedWalletId:void 0}),R$1={state:r$3,subscribe(e){return subscribe(r$3.events,()=>e(snapshot(r$3.events[r$3.events.length-1])))},initialize(){r$3.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$3.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$3.connectedWalletId=e;},click(e){if(r$3.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},track(e){if(r$3.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},view(e){if(r$3.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}}},c$3=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$8={state:c$3,subscribe(e){return subscribe(c$3,()=>e(c$3))},setChains(e){c$3.chains=e;},setWalletConnectUri(e){c$3.walletConnectUri=e;},setIsCustomDesktop(e){c$3.isCustomDesktop=e;},setIsCustomMobile(e){c$3.isCustomMobile=e;},setIsDataLoaded(e){c$3.isDataLoaded=e;},setIsUiLoaded(e){c$3.isUiLoaded=e;},setIsAuth(e){c$3.isAuth=e;}},W$1=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$7={state:W$1,subscribe(e){return subscribe(W$1,()=>e(W$1))},setConfig(e){var t,s;R$1.initialize(),p$8.setChains(e.chains),p$8.setIsAuth(Boolean(e.enableAuthMode)),p$8.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$8.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$2.setModalVersionInStorage(),Object.assign(W$1,e);}};var V$3=Object.defineProperty,D$4=Object.getOwnPropertySymbols,H$1=Object.prototype.hasOwnProperty,B$3=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$3=(e,t)=>{for(var s in t||(t={}))H$1.call(t,s)&&M$4(e,s,t[s]);if(D$4)for(var s of D$4(t))B$3.call(t,s)&&M$4(e,s,t[s]);return e};const L$6="https://explorer-api.walletconnect.com",E$7="wcm",O$5="js-2.6.2";async function w$5(e,t){const s=K$3({sdkType:E$7,sdkVersion:O$5},t),n=new URL(e,L$6);return n.searchParams.append("projectId",y$7.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$4={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$6}/w3m/v1/getWalletImage/${e}?projectId=${y$7.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`},getAssetImageUrl(e){return `${L$6}/w3m/v1/getAssetImage/${e}?projectId=${y$7.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`}};var z$6=Object.defineProperty,j$5=Object.getOwnPropertySymbols,J$1=Object.prototype.hasOwnProperty,q$3=Object.prototype.propertyIsEnumerable,k$3=(e,t,s)=>t in e?z$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))J$1.call(t,s)&&k$3(e,s,t[s]);if(j$5)for(var s of j$5(t))q$3.call(t,s)&&k$3(e,s,t[s]);return e};const N$3=a$2.isMobile(),d$4=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$2={state:d$4,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$7.state;if(e==="NONE"||t==="ALL"&&!e)return d$4.recomendedWallets;if(a$2.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$4.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$4.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$8.state,i=s?.join(","),l=a$2.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$2.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$3?await m$4.getMobileListings(v):await m$4.getDesktopListings(v);d$4.recomendedWallets=Object.values(b);}return d$4.recomendedWallets},async getWallets(e){const t=F({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$7.state,{recomendedWallets:i}=d$4;if(n==="ALL")return d$4.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$2.isArray(s)&&(t.excludedIds=s.join(",")),a$2.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$8.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$3?await m$4.getMobileListings(t):await m$4.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$4[U]={listings:[...d$4[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$4.getWalletImageUrl(e)},getAssetImageUrl(e){return m$4.getAssetImageUrl(e)},resetSearch(){d$4.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$8.state;if(a$2.removeWalletConnectDeepLink(),p$8.setWalletConnectUri(e?.uri),p$8.setChains(e?.chains),T$4.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$8.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$1=Object.defineProperty,$$1=Object.getOwnPropertySymbols,Q$4=Object.prototype.hasOwnProperty,X$2=Object.prototype.propertyIsEnumerable,S$5=(e,t,s)=>t in e?G$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$1=(e,t)=>{for(var s in t||(t={}))Q$4.call(t,s)&&S$5(e,s,t[s]);if($$1)for(var s of $$1(t))X$2.call(t,s)&&S$5(e,s,t[s]);return e};function Z$2(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$5=proxy({themeMode:Z$2()?"dark":"light"}),ne$3={state:C$5,subscribe(e){return subscribe(C$5,()=>e(C$5))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$5.themeMode=t),s&&(C$5.themeVariables=Y$1({},s));}},g$5=proxy({open:!1,message:"",variant:"success"}),oe$3={state:g$5,subscribe(e){return subscribe(g$5,()=>e(g$5))},openToast(e,t){g$5.open=!0,g$5.message=e,g$5.variant=t;},closeToast(){g$5.open=!1;}};
|
|
69832
69832
|
|
|
69833
|
-
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$3.setThemeConfig,ne$3.setThemeConfig(e),y$7.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
69833
|
+
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$3.setThemeConfig,ne$3.setThemeConfig(e),y$7.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-BS6qjzzl.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$8.setIsUiLoaded(!0);}}};
|
|
69834
69834
|
|
|
69835
69835
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
69836
69836
|
__proto__: null,
|
|
@@ -80408,8 +80408,8 @@ const walletConnectProviderInfo = {
|
|
|
80408
80408
|
icon: 'data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDggNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGc+PHBhdGggZD0iTTEwLjQyMzYgMTQuODY4NkMxNy45NTA3IDcuNTIzNzcgMzAuMTY5NCA3LjUyMzc3IDM3LjY5NjQgMTQuODY4NkwzOC42MDI2IDE1Ljc1OTNDMzguOTgyNiAxNi4xMjQ0IDM4Ljk4MjYgMTYuNzIzMSAzOC42MDI2IDE3LjA4ODFMMzUuNTA0MSAyMC4xMTA4QzM1LjMxNDEgMjAuMzAwNiAzNS4wMDcxIDIwLjMwMDYgMzQuODE3MSAyMC4xMTA4TDMzLjU3NDggMTguODk4OEMyOC4zMTMyIDEzLjc3MzUgMTkuODA2OSAxMy43NzM1IDE0LjU0NTIgMTguODk4OEwxMy4yMTUyIDIwLjE5ODRDMTMuMDI1MiAyMC4zODgyIDEyLjcxODMgMjAuMzg4MiAxMi41MjgzIDIwLjE5ODRMOS40Mjk3OCAxNy4xNzU3QzkuMDQ5NzcgMTYuODEwNyA5LjA0OTc3IDE2LjIxMiA5LjQyOTc4IDE1Ljg0N0wxMC40MjM2IDE0Ljg2ODZaTTQ0LjExMjcgMjEuMTE4M0w0Ni44NzUgMjMuODA1MUM0Ny4yNTUgMjQuMTcwMSA0Ny4yNTUgMjQuNzY4OCA0Ni44NzUgMjUuMTMzOUwzNC40MzcxIDM3LjI2ODJDMzQuMDU3MSAzNy42MzMyIDMzLjQ0MzMgMzcuNjMzMiAzMy4wNzc5IDM3LjI2ODJMMjQuMjUgMjguNjUzQzI0LjE2MjMgMjguNTY1NCAyNC4wMDE2IDI4LjU2NTQgMjMuOTEzOSAyOC42NTNMMTUuMDg2IDM3LjI2ODJDMTQuNzA2IDM3LjYzMzIgMTQuMDkyMiAzNy42MzMyIDEzLjcyNjggMzcuMjY4MkwxLjI0NTAzIDI1LjEzMzlDMC44NjUwMiAyNC43Njg4IDAuODY1MDIgMjQuMTcwMSAxLjI0NTAzIDIzLjgwNTFMNC4wMDczOCAyMS4xMTgzQzQuMzg3MzkgMjAuNzUzMyA1LjAwMTI1IDIwLjc1MzMgNS4zNjY2NCAyMS4xMTgzTDE0LjE5NDUgMjkuNzMzNUMxNC4yODIyIDI5LjgyMTEgMTQuNDQyOSAyOS44MjExIDE0LjUzMDYgMjkuNzMzNUwyMy4zNTg1IDIxLjExODNDMjMuNzM4NSAyMC43NTMzIDI0LjM1MjMgMjAuNzUzMyAyNC43MTc3IDIxLjExODNMMzMuNTQ1NiAyOS43MzM1QzMzLjYzMzMgMjkuODIxMSAzMy43OTQgMjkuODIxMSAzMy44ODE3IDI5LjczMzVMNDIuNzA5NiAyMS4xMTgzQzQzLjExODggMjAuNzUzMyA0My43MzI3IDIwLjc1MzMgNDQuMTEyNyAyMS4xMTgzWiIgZmlsbD0iIzM2OEFGQSI+PC9wYXRoPjwvZz48L3N2Zz4=',
|
|
80409
80409
|
uuid: 'walletconnect',
|
|
80410
80410
|
};
|
|
80411
|
-
const testnetModalChains = [`eip155:${
|
|
80412
|
-
const productionModalChains = [`eip155:${
|
|
80411
|
+
const testnetModalChains = [`eip155:${J$3.IMTBL_ZKEVM_TESTNET}`, `eip155:${J$3.SEPOLIA}`];
|
|
80412
|
+
const productionModalChains = [`eip155:${J$3.IMTBL_ZKEVM_MAINNET}`, `eip155:${J$3.ETHEREUM}`];
|
|
80413
80413
|
const darkThemeVariables = {
|
|
80414
80414
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
80415
80415
|
'--wcm-accent-fill-color': '#F3F3F3',
|
|
@@ -80506,7 +80506,7 @@ class WalletConnectManager {
|
|
|
80506
80506
|
? productionWalletWhitelist : sandboxWalletWhitelist,
|
|
80507
80507
|
explorerExcludedWalletIds: [],
|
|
80508
80508
|
themeMode: this.theme,
|
|
80509
|
-
themeVariables: this.theme ===
|
|
80509
|
+
themeVariables: this.theme === wo$1.DARK ? darkThemeVariables : lightThemeVariables,
|
|
80510
80510
|
});
|
|
80511
80511
|
this.walletConnectModal = modal;
|
|
80512
80512
|
}
|
|
@@ -80526,21 +80526,21 @@ class WalletConnectManager {
|
|
|
80526
80526
|
C$1.init({
|
|
80527
80527
|
projectId: this.walletConnectConfig.projectId,
|
|
80528
80528
|
chains: this.environment === K$6.PRODUCTION
|
|
80529
|
-
? [
|
|
80530
|
-
: [
|
|
80529
|
+
? [J$3.ETHEREUM]
|
|
80530
|
+
: [J$3.SEPOLIA],
|
|
80531
80531
|
optionalChains: this.environment === K$6.PRODUCTION
|
|
80532
|
-
? [
|
|
80533
|
-
: [
|
|
80532
|
+
? [J$3.IMTBL_ZKEVM_MAINNET, J$3.ETHEREUM]
|
|
80533
|
+
: [J$3.IMTBL_ZKEVM_TESTNET, J$3.SEPOLIA],
|
|
80534
80534
|
showQrModal: false,
|
|
80535
80535
|
metadata: this.walletConnectConfig.metadata,
|
|
80536
80536
|
qrModalOptions: {
|
|
80537
80537
|
themeMode: this.theme,
|
|
80538
80538
|
},
|
|
80539
80539
|
rpcMap: {
|
|
80540
|
-
[
|
|
80541
|
-
[
|
|
80542
|
-
[
|
|
80543
|
-
[
|
|
80540
|
+
[J$3.ETHEREUM]: 'https://checkout-api.immutable.com/v1/rpc/eth-mainnet',
|
|
80541
|
+
[J$3.IMTBL_ZKEVM_MAINNET]: 'https://rpc.immutable.com',
|
|
80542
|
+
[J$3.SEPOLIA]: 'https://checkout-api.sandbox.immutable.com/v1/rpc/eth-sepolia',
|
|
80543
|
+
[J$3.IMTBL_ZKEVM_TESTNET]: 'https://rpc.testnet.immutable.com',
|
|
80544
80544
|
},
|
|
80545
80545
|
})
|
|
80546
80546
|
.then((wcEthereumProvider) => {
|
|
@@ -82705,7 +82705,7 @@ var m = reactDomExports;
|
|
|
82705
82705
|
function getValidTheme(theme) {
|
|
82706
82706
|
if (!theme)
|
|
82707
82707
|
return DEFAULT_THEME$1;
|
|
82708
|
-
if (!Object.values(
|
|
82708
|
+
if (!Object.values(wo$1).includes(theme))
|
|
82709
82709
|
return DEFAULT_THEME$1;
|
|
82710
82710
|
return theme;
|
|
82711
82711
|
}
|
|
@@ -82823,7 +82823,7 @@ let Base$3 = class Base {
|
|
|
82823
82823
|
this.eventHandlers.set(type, callback);
|
|
82824
82824
|
if (this.eventHandlersFunction) {
|
|
82825
82825
|
window.removeEventListener(this.eventTopic, this.eventHandlersFunction);
|
|
82826
|
-
window.removeEventListener(
|
|
82826
|
+
window.removeEventListener(ro$1.IMTBL_WIDGETS_PROVIDER, this.eventHandlersFunction);
|
|
82827
82827
|
}
|
|
82828
82828
|
this.eventHandlersFunction = (event) => {
|
|
82829
82829
|
const matchingHandler = this.eventHandlers.get(event.detail.type);
|
|
@@ -82831,13 +82831,13 @@ let Base$3 = class Base {
|
|
|
82831
82831
|
matchingHandler(event.detail.data);
|
|
82832
82832
|
};
|
|
82833
82833
|
window.addEventListener(this.eventTopic, this.eventHandlersFunction);
|
|
82834
|
-
window.addEventListener(
|
|
82834
|
+
window.addEventListener(ro$1.IMTBL_WIDGETS_PROVIDER, this.eventHandlersFunction);
|
|
82835
82835
|
}
|
|
82836
82836
|
removeListener(type) {
|
|
82837
82837
|
this.eventHandlers.delete(type);
|
|
82838
82838
|
if (this.eventHandlersFunction) {
|
|
82839
82839
|
window.removeEventListener(this.eventTopic, this.eventHandlersFunction);
|
|
82840
|
-
window.removeEventListener(
|
|
82840
|
+
window.removeEventListener(ro$1.IMTBL_WIDGETS_PROVIDER, this.eventHandlersFunction);
|
|
82841
82841
|
}
|
|
82842
82842
|
if (this.eventHandlers.size <= 0)
|
|
82843
82843
|
return;
|
|
@@ -82847,7 +82847,7 @@ let Base$3 = class Base {
|
|
|
82847
82847
|
matchingHandler(event.detail.data);
|
|
82848
82848
|
};
|
|
82849
82849
|
window.addEventListener(this.eventTopic, this.eventHandlersFunction);
|
|
82850
|
-
window.addEventListener(
|
|
82850
|
+
window.addEventListener(ro$1.IMTBL_WIDGETS_PROVIDER, this.eventHandlersFunction);
|
|
82851
82851
|
}
|
|
82852
82852
|
strongConfig() {
|
|
82853
82853
|
return withDefaultWidgetConfigs({
|
|
@@ -82861,12 +82861,12 @@ let Base$3 = class Base {
|
|
|
82861
82861
|
}
|
|
82862
82862
|
// Subscribe to PROVIDER_UPDATED events from our widgets
|
|
82863
82863
|
setupProviderUpdatedListener() {
|
|
82864
|
-
window.addEventListener(
|
|
82864
|
+
window.addEventListener(ro$1.IMTBL_WIDGETS_PROVIDER, this.handleProviderUpdatedEvent);
|
|
82865
82865
|
const widgetRoot = this;
|
|
82866
82866
|
window.addEventListener(baseWidgetProviderEvent, () => widgetRoot.handleEIP1193ProviderEvents(widgetRoot));
|
|
82867
82867
|
}
|
|
82868
82868
|
setupDisconnectProviderListener() {
|
|
82869
|
-
window.addEventListener(
|
|
82869
|
+
window.addEventListener(ro$1.IMTBL_WALLET_WIDGET_EVENT, this.handleDisconnectEvent);
|
|
82870
82870
|
}
|
|
82871
82871
|
handleEIP1193ProviderEvents(widgetRoot) {
|
|
82872
82872
|
if (widgetRoot.browserProvider?.ethereumProvider) {
|
|
@@ -82883,7 +82883,7 @@ let Base$3 = class Base {
|
|
|
82883
82883
|
handleProviderUpdatedEvent = ((event) => {
|
|
82884
82884
|
const widgetRoot = this;
|
|
82885
82885
|
switch (event.detail.type) {
|
|
82886
|
-
case
|
|
82886
|
+
case oo$1.PROVIDER_UPDATED: {
|
|
82887
82887
|
const eventData = event.detail.data;
|
|
82888
82888
|
widgetRoot.browserProvider = eventData.provider;
|
|
82889
82889
|
this.render();
|
|
@@ -82897,7 +82897,7 @@ let Base$3 = class Base {
|
|
|
82897
82897
|
handleDisconnectEvent = ((event) => {
|
|
82898
82898
|
const widgetRoot = this;
|
|
82899
82899
|
switch (event.detail.type) {
|
|
82900
|
-
case
|
|
82900
|
+
case ao$1.DISCONNECT_WALLET: {
|
|
82901
82901
|
widgetRoot.browserProvider = undefined;
|
|
82902
82902
|
this.render();
|
|
82903
82903
|
break;
|
|
@@ -86165,7 +86165,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86165
86165
|
return __generator(this, function (_b) {
|
|
86166
86166
|
switch (_b.label) {
|
|
86167
86167
|
case 0: return [4 /*yield*/, import(
|
|
86168
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86168
|
+
/* webpackChunkName: "auto-track" */ './auto-track-1sIh5Cg-.js')];
|
|
86169
86169
|
case 1:
|
|
86170
86170
|
autotrack = _b.sent();
|
|
86171
86171
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86184,7 +86184,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86184
86184
|
return __generator(this, function (_b) {
|
|
86185
86185
|
switch (_b.label) {
|
|
86186
86186
|
case 0: return [4 /*yield*/, import(
|
|
86187
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86187
|
+
/* webpackChunkName: "auto-track" */ './auto-track-1sIh5Cg-.js')];
|
|
86188
86188
|
case 1:
|
|
86189
86189
|
autotrack = _b.sent();
|
|
86190
86190
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86203,7 +86203,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86203
86203
|
return __generator(this, function (_b) {
|
|
86204
86204
|
switch (_b.label) {
|
|
86205
86205
|
case 0: return [4 /*yield*/, import(
|
|
86206
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86206
|
+
/* webpackChunkName: "auto-track" */ './auto-track-1sIh5Cg-.js')];
|
|
86207
86207
|
case 1:
|
|
86208
86208
|
autotrack = _b.sent();
|
|
86209
86209
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86222,7 +86222,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86222
86222
|
return __generator(this, function (_b) {
|
|
86223
86223
|
switch (_b.label) {
|
|
86224
86224
|
case 0: return [4 /*yield*/, import(
|
|
86225
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
86225
|
+
/* webpackChunkName: "auto-track" */ './auto-track-1sIh5Cg-.js')];
|
|
86226
86226
|
case 1:
|
|
86227
86227
|
autotrack = _b.sent();
|
|
86228
86228
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -86372,7 +86372,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
86372
86372
|
return [2 /*return*/, []];
|
|
86373
86373
|
}
|
|
86374
86374
|
return [4 /*yield*/, import(
|
|
86375
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
86375
|
+
/* webpackChunkName: "queryString" */ './index-CJrC7v34.js')];
|
|
86376
86376
|
case 1:
|
|
86377
86377
|
queryString = (_a.sent()).queryString;
|
|
86378
86378
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -89076,7 +89076,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89076
89076
|
case 0:
|
|
89077
89077
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
89078
89078
|
return [4 /*yield*/, import(
|
|
89079
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
89079
|
+
/* webpackChunkName: "tsub-middleware" */ './index-BpeF_Hv4.js').then(function (mod) {
|
|
89080
89080
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
89081
89081
|
})];
|
|
89082
89082
|
case 1:
|
|
@@ -89089,7 +89089,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89089
89089
|
tsubMiddleware = _d;
|
|
89090
89090
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
89091
89091
|
return [4 /*yield*/, import(
|
|
89092
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
89092
|
+
/* webpackChunkName: "ajs-destination" */ './index-BAjyTG-F.js').then(function (mod) {
|
|
89093
89093
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
89094
89094
|
})];
|
|
89095
89095
|
case 4:
|
|
@@ -89102,7 +89102,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89102
89102
|
legacyDestinations = _e;
|
|
89103
89103
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
89104
89104
|
return [4 /*yield*/, import(
|
|
89105
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
89105
|
+
/* webpackChunkName: "legacyVideos" */ './index-C_2UQ8ka.js').then(function (mod) {
|
|
89106
89106
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
89107
89107
|
})];
|
|
89108
89108
|
case 7:
|
|
@@ -89111,7 +89111,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89111
89111
|
case 8:
|
|
89112
89112
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
89113
89113
|
return [4 /*yield*/, import(
|
|
89114
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
89114
|
+
/* webpackChunkName: "schemaFilter" */ './index-Cc4A5E_A.js').then(function (mod) {
|
|
89115
89115
|
var _a;
|
|
89116
89116
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
89117
89117
|
})];
|
|
@@ -89150,7 +89150,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
89150
89150
|
return enabled;
|
|
89151
89151
|
})) return [3 /*break*/, 17];
|
|
89152
89152
|
return [4 /*yield*/, import(
|
|
89153
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
89153
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-DA9Xu4LZ.js').then(function (_a) {
|
|
89154
89154
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
89155
89155
|
return __awaiter$5(_this, void 0, void 0, function () {
|
|
89156
89156
|
var middleware, promises;
|
|
@@ -172353,7 +172353,7 @@ console.log(`
|
|
|
172353
172353
|
|
|
172354
172354
|
`);
|
|
172355
172355
|
|
|
172356
|
-
const widgetTheme = (theme) => (theme.toLowerCase() ===
|
|
172356
|
+
const widgetTheme = (theme) => (theme.toLowerCase() === wo$1.LIGHT.toLowerCase()
|
|
172357
172357
|
? base$2
|
|
172358
172358
|
: onDarkBase);
|
|
172359
172359
|
|
|
@@ -172479,11 +172479,11 @@ const tokenValueFormat = (s, maxDecimals = DEFAULT_TOKEN_FORMATTING_DECIMALS) =>
|
|
|
172479
172479
|
formatted = tokenValueFormatDecimals(formatted, 0);
|
|
172480
172480
|
return formatted;
|
|
172481
172481
|
};
|
|
172482
|
-
const isZkEvmChainId = (chainId) => chainId ===
|
|
172483
|
-
|| chainId ===
|
|
172484
|
-
|| chainId ===
|
|
172485
|
-
const isL1EthChainId = (chainId) => chainId ===
|
|
172486
|
-
|| chainId ===
|
|
172482
|
+
const isZkEvmChainId = (chainId) => chainId === J$3.IMTBL_ZKEVM_DEVNET
|
|
172483
|
+
|| chainId === J$3.IMTBL_ZKEVM_TESTNET
|
|
172484
|
+
|| chainId === J$3.IMTBL_ZKEVM_MAINNET;
|
|
172485
|
+
const isL1EthChainId = (chainId) => chainId === J$3.SEPOLIA
|
|
172486
|
+
|| chainId === J$3.ETHEREUM;
|
|
172487
172487
|
const isNativeToken = (address) => !address || address.toLocaleLowerCase() === NATIVE;
|
|
172488
172488
|
function getRemoteImage(environment, path) {
|
|
172489
172489
|
return `${CHECKOUT_CDN_BASE_URL[environment ?? K$6.PRODUCTION]}/v1/blob/img${path}`;
|
|
@@ -172507,7 +172507,7 @@ function getTokenImageByAddress(environment, address) {
|
|
|
172507
172507
|
return getRemoteImage(environment, `/tokens/${address.toLowerCase()}.svg`);
|
|
172508
172508
|
}
|
|
172509
172509
|
function getDefaultTokenImage(environment, theme) {
|
|
172510
|
-
return theme ===
|
|
172510
|
+
return theme === wo$1.LIGHT
|
|
172511
172511
|
? getRemoteImage(environment, '/tokens/defaultonlight.svg')
|
|
172512
172512
|
: getRemoteImage(environment, '/tokens/defaultondark.svg');
|
|
172513
172513
|
}
|
|
@@ -172667,7 +172667,7 @@ const connectEIP6963Provider = async (providerDetail, checkout, shouldRequestWal
|
|
|
172667
172667
|
const wrappedBrowserProvider = new D$6(providerDetail.provider);
|
|
172668
172668
|
try {
|
|
172669
172669
|
const requestWalletPermissions = shouldRequestWalletPermissions
|
|
172670
|
-
?? providerDetail.info.rdns ===
|
|
172670
|
+
?? providerDetail.info.rdns === Gt$2.METAMASK;
|
|
172671
172671
|
const connectResult = await checkout.connect({
|
|
172672
172672
|
provider: wrappedBrowserProvider,
|
|
172673
172673
|
requestWalletPermissions,
|
|
@@ -172806,17 +172806,17 @@ const useProvidersContext = () => {
|
|
|
172806
172806
|
return context;
|
|
172807
172807
|
};
|
|
172808
172808
|
|
|
172809
|
-
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-
|
|
172809
|
+
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-7xP3ash_.js'));
|
|
172810
172810
|
class AddTokens extends Base$3 {
|
|
172811
|
-
eventTopic =
|
|
172811
|
+
eventTopic = ro$1.IMTBL_ADD_TOKENS_WIDGET_EVENT;
|
|
172812
172812
|
getValidatedProperties({ config, }) {
|
|
172813
172813
|
let validatedConfig;
|
|
172814
172814
|
if (config) {
|
|
172815
172815
|
validatedConfig = config;
|
|
172816
|
-
if (config.theme ===
|
|
172817
|
-
validatedConfig.theme =
|
|
172816
|
+
if (config.theme === wo$1.LIGHT)
|
|
172817
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
172818
172818
|
else
|
|
172819
|
-
validatedConfig.theme =
|
|
172819
|
+
validatedConfig.theme = wo$1.DARK;
|
|
172820
172820
|
}
|
|
172821
172821
|
return {
|
|
172822
172822
|
config: validatedConfig,
|
|
@@ -172850,17 +172850,17 @@ class AddTokens extends Base$3 {
|
|
|
172850
172850
|
}
|
|
172851
172851
|
}
|
|
172852
172852
|
|
|
172853
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
172853
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-xF3mC-MN.js').then(function (n) { return n.a; }));
|
|
172854
172854
|
class Bridge extends Base$3 {
|
|
172855
|
-
eventTopic =
|
|
172855
|
+
eventTopic = ro$1.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
172856
172856
|
getValidatedProperties({ config }) {
|
|
172857
172857
|
let validatedConfig;
|
|
172858
172858
|
if (config) {
|
|
172859
172859
|
validatedConfig = config;
|
|
172860
|
-
if (config.theme ===
|
|
172861
|
-
validatedConfig.theme =
|
|
172860
|
+
if (config.theme === wo$1.LIGHT)
|
|
172861
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
172862
172862
|
else
|
|
172863
|
-
validatedConfig.theme =
|
|
172863
|
+
validatedConfig.theme = wo$1.DARK;
|
|
172864
172864
|
}
|
|
172865
172865
|
return {
|
|
172866
172866
|
config: validatedConfig,
|
|
@@ -172895,31 +172895,31 @@ class Bridge extends Base$3 {
|
|
|
172895
172895
|
|
|
172896
172896
|
function getChainNameById(chainId) {
|
|
172897
172897
|
switch (chainId) {
|
|
172898
|
-
case
|
|
172899
|
-
case
|
|
172900
|
-
case
|
|
172901
|
-
case
|
|
172902
|
-
case
|
|
172898
|
+
case J$3.ETHEREUM: return nt$1.ETHEREUM;
|
|
172899
|
+
case J$3.IMTBL_ZKEVM_TESTNET: return nt$1.IMTBL_ZKEVM_TESTNET;
|
|
172900
|
+
case J$3.IMTBL_ZKEVM_MAINNET: return nt$1.IMTBL_ZKEVM_MAINNET;
|
|
172901
|
+
case J$3.IMTBL_ZKEVM_DEVNET: return nt$1.IMTBL_ZKEVM_DEVNET;
|
|
172902
|
+
case J$3.SEPOLIA: return nt$1.SEPOLIA;
|
|
172903
172903
|
default: return '';
|
|
172904
172904
|
}
|
|
172905
172905
|
}
|
|
172906
172906
|
function getChainSlugById(chainId) {
|
|
172907
172907
|
switch (chainId) {
|
|
172908
|
-
case
|
|
172909
|
-
case
|
|
172910
|
-
case
|
|
172911
|
-
case
|
|
172912
|
-
case
|
|
172908
|
+
case J$3.ETHEREUM: return we$2.ETHEREUM;
|
|
172909
|
+
case J$3.IMTBL_ZKEVM_TESTNET: return we$2.IMTBL_ZKEVM_TESTNET;
|
|
172910
|
+
case J$3.IMTBL_ZKEVM_MAINNET: return we$2.IMTBL_ZKEVM_MAINNET;
|
|
172911
|
+
case J$3.IMTBL_ZKEVM_DEVNET: return we$2.IMTBL_ZKEVM_DEVNET;
|
|
172912
|
+
case J$3.SEPOLIA: return we$2.SEPOLIA;
|
|
172913
172913
|
default: return '';
|
|
172914
172914
|
}
|
|
172915
172915
|
}
|
|
172916
172916
|
function getChainIdBySlug(chainSlug) {
|
|
172917
172917
|
switch (chainSlug) {
|
|
172918
|
-
case we$2.ETHEREUM: return
|
|
172919
|
-
case we$2.IMTBL_ZKEVM_TESTNET: return
|
|
172920
|
-
case we$2.IMTBL_ZKEVM_MAINNET: return
|
|
172921
|
-
case we$2.IMTBL_ZKEVM_DEVNET: return
|
|
172922
|
-
case we$2.SEPOLIA: return
|
|
172918
|
+
case we$2.ETHEREUM: return J$3.ETHEREUM;
|
|
172919
|
+
case we$2.IMTBL_ZKEVM_TESTNET: return J$3.IMTBL_ZKEVM_TESTNET;
|
|
172920
|
+
case we$2.IMTBL_ZKEVM_MAINNET: return J$3.IMTBL_ZKEVM_MAINNET;
|
|
172921
|
+
case we$2.IMTBL_ZKEVM_DEVNET: return J$3.IMTBL_ZKEVM_DEVNET;
|
|
172922
|
+
case we$2.SEPOLIA: return J$3.SEPOLIA;
|
|
172923
172923
|
default: return 0;
|
|
172924
172924
|
}
|
|
172925
172925
|
}
|
|
@@ -172938,7 +172938,7 @@ function getNativeSymbolByChainSlug(chainSlug) {
|
|
|
172938
172938
|
|
|
172939
172939
|
const ConnectWidget$2 = React.lazy(() => Promise.resolve().then(function () { return ConnectWidget$1; }));
|
|
172940
172940
|
class Connect extends Base$3 {
|
|
172941
|
-
eventTopic =
|
|
172941
|
+
eventTopic = ro$1.IMTBL_CONNECT_WIDGET_EVENT;
|
|
172942
172942
|
getValidatedProperties({ config }) {
|
|
172943
172943
|
return {
|
|
172944
172944
|
config,
|
|
@@ -172982,29 +172982,29 @@ function deduplicateSaleItemsArray(items) {
|
|
|
172982
172982
|
|
|
172983
172983
|
/** Orchestration Events List */
|
|
172984
172984
|
const commerceFlows = [
|
|
172985
|
-
|
|
172986
|
-
|
|
172987
|
-
|
|
172988
|
-
|
|
172989
|
-
|
|
172990
|
-
|
|
172991
|
-
|
|
172992
|
-
|
|
172993
|
-
|
|
172985
|
+
Ao$1.CONNECT,
|
|
172986
|
+
Ao$1.WALLET,
|
|
172987
|
+
Ao$1.SALE,
|
|
172988
|
+
Ao$1.SWAP,
|
|
172989
|
+
Ao$1.BRIDGE,
|
|
172990
|
+
Ao$1.ONRAMP,
|
|
172991
|
+
Ao$1.ADD_TOKENS,
|
|
172992
|
+
Ao$1.PURCHASE,
|
|
172993
|
+
Ao$1.TRANSFER,
|
|
172994
172994
|
];
|
|
172995
172995
|
|
|
172996
|
-
const CommerceWidget = React.lazy(() => import('./CommerceWidget-
|
|
172996
|
+
const CommerceWidget = React.lazy(() => import('./CommerceWidget-Dx44BFWy.js'));
|
|
172997
172997
|
class CommerceWidgetRoot extends Base$3 {
|
|
172998
|
-
eventTopic =
|
|
172998
|
+
eventTopic = ro$1.IMTBL_COMMERCE_WIDGET_EVENT;
|
|
172999
172999
|
getValidatedProperties({ config, }) {
|
|
173000
173000
|
let validatedConfig;
|
|
173001
173001
|
if (config) {
|
|
173002
173002
|
validatedConfig = config;
|
|
173003
173003
|
// FIXME: Move default theme initialisation to Base class
|
|
173004
|
-
if (config.theme ===
|
|
173005
|
-
validatedConfig.theme =
|
|
173004
|
+
if (config.theme === wo$1.LIGHT)
|
|
173005
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
173006
173006
|
else
|
|
173007
|
-
validatedConfig.theme =
|
|
173007
|
+
validatedConfig.theme = wo$1.DARK;
|
|
173008
173008
|
}
|
|
173009
173009
|
// TODO: validate configs for each widget
|
|
173010
173010
|
return {
|
|
@@ -173178,23 +173178,23 @@ class CommerceWidgetRoot extends Base$3 {
|
|
|
173178
173178
|
const flowType = params.flow;
|
|
173179
173179
|
const supportedFlows = commerceFlows.join(', ');
|
|
173180
173180
|
switch (flowType) {
|
|
173181
|
-
case
|
|
173181
|
+
case Ao$1.CONNECT:
|
|
173182
173182
|
return this.getValidConnectFlowParams(params);
|
|
173183
|
-
case
|
|
173183
|
+
case Ao$1.WALLET:
|
|
173184
173184
|
return this.getValidWalletFlowParams(params);
|
|
173185
|
-
case
|
|
173185
|
+
case Ao$1.SALE:
|
|
173186
173186
|
return this.getValidSaleFlowParams(params);
|
|
173187
|
-
case
|
|
173187
|
+
case Ao$1.SWAP:
|
|
173188
173188
|
return this.getValidSwapFlowParams(params);
|
|
173189
|
-
case
|
|
173189
|
+
case Ao$1.BRIDGE:
|
|
173190
173190
|
return this.getValidBridgeFlowParams(params);
|
|
173191
|
-
case
|
|
173191
|
+
case Ao$1.ONRAMP:
|
|
173192
173192
|
return this.getValidOnRampFlowParams(params);
|
|
173193
|
-
case
|
|
173193
|
+
case Ao$1.ADD_TOKENS:
|
|
173194
173194
|
return this.getValidAddTokensFlowParams(params);
|
|
173195
|
-
case
|
|
173195
|
+
case Ao$1.PURCHASE:
|
|
173196
173196
|
return this.getValidPurchaseFlowParams(params);
|
|
173197
|
-
case
|
|
173197
|
+
case Ao$1.TRANSFER:
|
|
173198
173198
|
return this.getValidTransferFlowParams(params);
|
|
173199
173199
|
default:
|
|
173200
173200
|
// eslint-disable-next-line no-console
|
|
@@ -173820,9 +173820,9 @@ function ServiceUnavailableErrorView({ onCloseClick, onBackButtonClick, }) {
|
|
|
173820
173820
|
}
|
|
173821
173821
|
|
|
173822
173822
|
function sendConnectSuccessEvent(eventTarget, provider, walletProviderName, walletProviderInfo) {
|
|
173823
|
-
const successEvent = new CustomEvent(
|
|
173823
|
+
const successEvent = new CustomEvent(ro$1.IMTBL_CONNECT_WIDGET_EVENT, {
|
|
173824
173824
|
detail: {
|
|
173825
|
-
type:
|
|
173825
|
+
type: no$1.SUCCESS,
|
|
173826
173826
|
data: {
|
|
173827
173827
|
provider,
|
|
173828
173828
|
walletProviderName,
|
|
@@ -173836,9 +173836,9 @@ function sendConnectSuccessEvent(eventTarget, provider, walletProviderName, wall
|
|
|
173836
173836
|
eventTarget.dispatchEvent(successEvent);
|
|
173837
173837
|
}
|
|
173838
173838
|
function sendCloseWidgetEvent(eventTarget) {
|
|
173839
|
-
const closeWidgetEvent = new CustomEvent(
|
|
173839
|
+
const closeWidgetEvent = new CustomEvent(ro$1.IMTBL_CONNECT_WIDGET_EVENT, {
|
|
173840
173840
|
detail: {
|
|
173841
|
-
type:
|
|
173841
|
+
type: no$1.CLOSE_WIDGET,
|
|
173842
173842
|
data: {},
|
|
173843
173843
|
},
|
|
173844
173844
|
});
|
|
@@ -173848,9 +173848,9 @@ function sendCloseWidgetEvent(eventTarget) {
|
|
|
173848
173848
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
173849
173849
|
}
|
|
173850
173850
|
function sendConnectFailedEvent(eventTarget, reason) {
|
|
173851
|
-
const failedEvent = new CustomEvent(
|
|
173851
|
+
const failedEvent = new CustomEvent(ro$1.IMTBL_CONNECT_WIDGET_EVENT, {
|
|
173852
173852
|
detail: {
|
|
173853
|
-
type:
|
|
173853
|
+
type: no$1.FAILURE,
|
|
173854
173854
|
data: {
|
|
173855
173855
|
reason,
|
|
173856
173856
|
},
|
|
@@ -173862,9 +173862,9 @@ function sendConnectFailedEvent(eventTarget, reason) {
|
|
|
173862
173862
|
eventTarget.dispatchEvent(failedEvent);
|
|
173863
173863
|
}
|
|
173864
173864
|
function sendWalletConnectProviderUpdatedEvent(eventTarget, ethereumProvider, walletConnectManager) {
|
|
173865
|
-
const successEvent = new CustomEvent(
|
|
173865
|
+
const successEvent = new CustomEvent(ro$1.IMTBL_CONNECT_WIDGET_EVENT, {
|
|
173866
173866
|
detail: {
|
|
173867
|
-
type:
|
|
173867
|
+
type: no$1.WALLETCONNECT_PROVIDER_UPDATED,
|
|
173868
173868
|
data: {
|
|
173869
173869
|
ethereumProvider,
|
|
173870
173870
|
walletConnectManager,
|
|
@@ -174092,14 +174092,14 @@ const processProviders = async (checkout, injectedProviders, priorityWalletRdns
|
|
|
174092
174092
|
// Attempt to fallback to window.ethereum if no EIP-6963 providers are found
|
|
174093
174093
|
// Assuming this is MetaMask on mobile
|
|
174094
174094
|
if (filteredProviders.length === 0 && window.ethereum) {
|
|
174095
|
-
filteredProviders.unshift(
|
|
174095
|
+
filteredProviders.unshift(gn(window.ethereum));
|
|
174096
174096
|
}
|
|
174097
174097
|
// Add passport from checkout config if not from injected providers
|
|
174098
174098
|
if (checkout?.passport
|
|
174099
|
-
&& priorityWalletRdns.includes(
|
|
174100
|
-
&& !filteredProviders.some((provider) => provider.info.rdns ===
|
|
174099
|
+
&& priorityWalletRdns.includes(Gt$2.PASSPORT)
|
|
174100
|
+
&& !filteredProviders.some((provider) => provider.info.rdns === Gt$2.PASSPORT)) {
|
|
174101
174101
|
const passportProvider = await getPassportProvider(checkout.passport);
|
|
174102
|
-
filteredProviders.unshift(
|
|
174102
|
+
filteredProviders.unshift(mn(passportProvider));
|
|
174103
174103
|
}
|
|
174104
174104
|
// Filter & sort providers
|
|
174105
174105
|
return filteredProviders
|
|
@@ -174270,7 +174270,7 @@ function WalletDrawer({ testId, drawerText, walletOptions, showWalletConnect = t
|
|
|
174270
174270
|
const unavailableIndex = disabledOptions?.findIndex(({ rdns }) => rdns === providerDetail.info.rdns) ?? -1;
|
|
174271
174271
|
const unavalable = unavailableIndex > -1;
|
|
174272
174272
|
const badge = unavalable ? (jsx$1(MenuItem.Badge, { variant: "dark", badgeContent: disabledOptions?.[unavailableIndex]?.label ?? t('drawers.wallet.noFunds') })) : undefined;
|
|
174273
|
-
return (jsx$1(WalletItem, { testId: testId, loading: walletItemLoading, providerInfo: providerDetail.info, onWalletItemClick: () => handleWalletItemClick(providerDetail), rc: jsx$1(motion$1.div, { variants: listItemVariants, custom: index }), size: menuItemSize, badge: badge, disabled: unavalable, recommended: providerDetail.info.rdns ===
|
|
174273
|
+
return (jsx$1(WalletItem, { testId: testId, loading: walletItemLoading, providerInfo: providerDetail.info, onWalletItemClick: () => handleWalletItemClick(providerDetail), rc: jsx$1(motion$1.div, { variants: listItemVariants, custom: index }), size: menuItemSize, badge: badge, disabled: unavalable, recommended: providerDetail.info.rdns === Gt$2.PASSPORT }, providerDetail.info.rdns));
|
|
174274
174274
|
}), isWalletConnectEnabled && showWalletConnect && (jsx$1(motion$1.div, { variants: listItemVariants, custom: walletOptions.length, children: jsx$1(WalletConnectItem$1, { size: menuItemSize, loading: walletItemLoading, onWalletItemClick: handleWalletConnectClick }) }, "walletconnect")), bottomSlot && (jsx$1(motion$1.div, { variants: listItemVariants, custom: walletOptions.length + 1, children: bottomSlot }, "bottom-slot-item"))] })] }));
|
|
174275
174275
|
}
|
|
174276
174276
|
|
|
@@ -174389,11 +174389,11 @@ function WalletList(props) {
|
|
|
174389
174389
|
const [chosenProviderDetail, setChosenProviderDetail] = reactExports.useState();
|
|
174390
174390
|
const allowedProviders = reactExports.useMemo(() => getAllowedProviders(providers, allowlistWalletRdns, blocklistWalletRdns), [providers, allowlistWalletRdns, blocklistWalletRdns]);
|
|
174391
174391
|
const filteredProviders = reactExports.useMemo(() => allowedProviders
|
|
174392
|
-
.filter((provider) => !(provider.info.rdns ===
|
|
174392
|
+
.filter((provider) => !(provider.info.rdns === Gt$2.PASSPORT)), [allowedProviders]);
|
|
174393
174393
|
// Don't allow Passport if targetChainId is L1
|
|
174394
174394
|
const passportProviderDetail = reactExports.useMemo(() => targetChainId !== checkout.config.l1ChainId
|
|
174395
174395
|
&& allowedProviders
|
|
174396
|
-
.find((provider) => provider.info.rdns ===
|
|
174396
|
+
.find((provider) => provider.info.rdns === Gt$2.PASSPORT), [allowedProviders, checkout, targetChainId]);
|
|
174397
174397
|
const selectBrowserProvider = reactExports.useCallback((browserProvider, providerName) => {
|
|
174398
174398
|
connectDispatch({
|
|
174399
174399
|
payload: {
|
|
@@ -174446,7 +174446,7 @@ function WalletList(props) {
|
|
|
174446
174446
|
if (!checkout)
|
|
174447
174447
|
return;
|
|
174448
174448
|
try {
|
|
174449
|
-
const isMetaMask = providerDetail.info.rdns ===
|
|
174449
|
+
const isMetaMask = providerDetail.info.rdns === Gt$2.METAMASK;
|
|
174450
174450
|
const browserProvider = new D$6(providerDetail.provider);
|
|
174451
174451
|
try {
|
|
174452
174452
|
// TODO: Find a nice way to detect if the wallet supports switching accounts via requestPermissions
|
|
@@ -174537,7 +174537,7 @@ function WalletList(props) {
|
|
|
174537
174537
|
setShowWalletDrawer(false);
|
|
174538
174538
|
};
|
|
174539
174539
|
const handleWalletItemClick = reactExports.useCallback(async (providerDetail) => {
|
|
174540
|
-
const isPassport = providerDetail.info.rdns ===
|
|
174540
|
+
const isPassport = providerDetail.info.rdns === Gt$2.PASSPORT;
|
|
174541
174541
|
const hasSeenNonPassportWarning = localStorage.getItem('hasSeenNonPassportWarning');
|
|
174542
174542
|
if (!isPassport && !hasSeenNonPassportWarning) {
|
|
174543
174543
|
setChosenProviderDetail(providerDetail);
|
|
@@ -174577,11 +174577,11 @@ function WalletList(props) {
|
|
|
174577
174577
|
reactExports.useEffect(() => {
|
|
174578
174578
|
// Auto-trigger wallet connection via rdns
|
|
174579
174579
|
if (targetWalletRdns && targetWalletRdns?.length > 0) {
|
|
174580
|
-
if (targetWalletRdns ===
|
|
174580
|
+
if (targetWalletRdns === Gt$2.PASSPORT
|
|
174581
174581
|
&& passportProviderDetail) {
|
|
174582
174582
|
handleWalletItemClick(passportProviderDetail);
|
|
174583
174583
|
}
|
|
174584
|
-
else if (targetWalletRdns ===
|
|
174584
|
+
else if (targetWalletRdns === Gt$2.WALLETCONNECT
|
|
174585
174585
|
&& walletConnectItemRef.current) {
|
|
174586
174586
|
walletConnectItemRef.current.connect();
|
|
174587
174587
|
}
|
|
@@ -175128,9 +175128,9 @@ function ConnectLoader({ children, params, widgetConfig, successEvent, closeEven
|
|
|
175128
175128
|
|
|
175129
175129
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
175130
175130
|
function sendOnRampWidgetCloseEvent(eventTarget) {
|
|
175131
|
-
const closeWidgetEvent = new CustomEvent(
|
|
175131
|
+
const closeWidgetEvent = new CustomEvent(ro$1.IMTBL_ONRAMP_WIDGET_EVENT, {
|
|
175132
175132
|
detail: {
|
|
175133
|
-
type:
|
|
175133
|
+
type: uo.CLOSE_WIDGET,
|
|
175134
175134
|
data: {},
|
|
175135
175135
|
},
|
|
175136
175136
|
});
|
|
@@ -175141,9 +175141,9 @@ function sendOnRampWidgetCloseEvent(eventTarget) {
|
|
|
175141
175141
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
175142
175142
|
}
|
|
175143
175143
|
const sendOnRampSuccessEvent = (eventTarget, transactionHash) => {
|
|
175144
|
-
const successEvent = new CustomEvent(
|
|
175144
|
+
const successEvent = new CustomEvent(ro$1.IMTBL_ONRAMP_WIDGET_EVENT, {
|
|
175145
175145
|
detail: {
|
|
175146
|
-
type:
|
|
175146
|
+
type: uo.SUCCESS,
|
|
175147
175147
|
data: {
|
|
175148
175148
|
transactionHash,
|
|
175149
175149
|
},
|
|
@@ -175155,9 +175155,9 @@ const sendOnRampSuccessEvent = (eventTarget, transactionHash) => {
|
|
|
175155
175155
|
eventTarget.dispatchEvent(successEvent);
|
|
175156
175156
|
};
|
|
175157
175157
|
const sendOnRampFailedEvent = (eventTarget, reason) => {
|
|
175158
|
-
const failedEvent = new CustomEvent(
|
|
175158
|
+
const failedEvent = new CustomEvent(ro$1.IMTBL_ONRAMP_WIDGET_EVENT, {
|
|
175159
175159
|
detail: {
|
|
175160
|
-
type:
|
|
175160
|
+
type: uo.FAILURE,
|
|
175161
175161
|
data: {
|
|
175162
175162
|
reason,
|
|
175163
175163
|
timestamp: new Date().getTime(),
|
|
@@ -175173,7 +175173,7 @@ const sendOnRampFailedEvent = (eventTarget, reason) => {
|
|
|
175173
175173
|
function sendRequestOnrampEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
175174
175174
|
const requestOnrampEvent = new CustomEvent(imtblWidgetEvent, {
|
|
175175
175175
|
detail: {
|
|
175176
|
-
type:
|
|
175176
|
+
type: po$1.REQUEST_ONRAMP,
|
|
175177
175177
|
data: eventData,
|
|
175178
175178
|
},
|
|
175179
175179
|
});
|
|
@@ -175186,7 +175186,7 @@ function sendRequestOnrampEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
|
175186
175186
|
function sendRequestSwapEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
175187
175187
|
const requestSwapEvent = new CustomEvent(imtblWidgetEvent, {
|
|
175188
175188
|
detail: {
|
|
175189
|
-
type:
|
|
175189
|
+
type: po$1.REQUEST_SWAP,
|
|
175190
175190
|
data: eventData,
|
|
175191
175191
|
},
|
|
175192
175192
|
});
|
|
@@ -175200,7 +175200,7 @@ function sendRequestBridgeEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
|
175200
175200
|
// eslint-disable-next-line max-len
|
|
175201
175201
|
const requestBridgeEvent = new CustomEvent(imtblWidgetEvent, {
|
|
175202
175202
|
detail: {
|
|
175203
|
-
type:
|
|
175203
|
+
type: po$1.REQUEST_BRIDGE,
|
|
175204
175204
|
data: eventData,
|
|
175205
175205
|
},
|
|
175206
175206
|
});
|
|
@@ -175214,7 +175214,7 @@ function sendRequestGoBackEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
|
175214
175214
|
// eslint-disable-next-line max-len
|
|
175215
175215
|
const requestGoBackEvent = new CustomEvent(imtblWidgetEvent, {
|
|
175216
175216
|
detail: {
|
|
175217
|
-
type:
|
|
175217
|
+
type: po$1.REQUEST_GO_BACK,
|
|
175218
175218
|
data: eventData,
|
|
175219
175219
|
},
|
|
175220
175220
|
});
|
|
@@ -175228,7 +175228,7 @@ function sendRequestAddTokensEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
|
175228
175228
|
// eslint-disable-next-line max-len
|
|
175229
175229
|
const requestAddTokensEvent = new CustomEvent(imtblWidgetEvent, {
|
|
175230
175230
|
detail: {
|
|
175231
|
-
type:
|
|
175231
|
+
type: po$1.REQUEST_ADD_TOKENS,
|
|
175232
175232
|
data: eventData,
|
|
175233
175233
|
},
|
|
175234
175234
|
});
|
|
@@ -175246,17 +175246,17 @@ const orchestrationEvents = {
|
|
|
175246
175246
|
sendRequestAddTokensEvent,
|
|
175247
175247
|
};
|
|
175248
175248
|
|
|
175249
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
175249
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-hWptERhu.js'));
|
|
175250
175250
|
class OnRamp extends Base$3 {
|
|
175251
|
-
eventTopic =
|
|
175251
|
+
eventTopic = ro$1.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
175252
175252
|
getValidatedProperties({ config }) {
|
|
175253
175253
|
let validatedConfig;
|
|
175254
175254
|
if (config) {
|
|
175255
175255
|
validatedConfig = config;
|
|
175256
|
-
if (config.theme ===
|
|
175257
|
-
validatedConfig.theme =
|
|
175256
|
+
if (config.theme === wo$1.LIGHT)
|
|
175257
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
175258
175258
|
else
|
|
175259
|
-
validatedConfig.theme =
|
|
175259
|
+
validatedConfig.theme = wo$1.DARK;
|
|
175260
175260
|
}
|
|
175261
175261
|
return {
|
|
175262
175262
|
config: validatedConfig,
|
|
@@ -175280,7 +175280,7 @@ class OnRamp extends Base$3 {
|
|
|
175280
175280
|
return validatedParams;
|
|
175281
175281
|
}
|
|
175282
175282
|
goBackEvent = (eventTarget) => {
|
|
175283
|
-
orchestrationEvents.sendRequestGoBackEvent(eventTarget,
|
|
175283
|
+
orchestrationEvents.sendRequestGoBackEvent(eventTarget, ro$1.IMTBL_ONRAMP_WIDGET_EVENT, {});
|
|
175284
175284
|
};
|
|
175285
175285
|
render() {
|
|
175286
175286
|
if (!this.reactRoot)
|
|
@@ -175288,8 +175288,8 @@ class OnRamp extends Base$3 {
|
|
|
175288
175288
|
const { t } = instance;
|
|
175289
175289
|
const connectLoaderParams = {
|
|
175290
175290
|
targetChainId: this.checkout.config.isProduction
|
|
175291
|
-
?
|
|
175292
|
-
:
|
|
175291
|
+
? J$3.IMTBL_ZKEVM_MAINNET
|
|
175292
|
+
: J$3.IMTBL_ZKEVM_TESTNET,
|
|
175293
175293
|
walletProviderName: this.parameters.walletProviderName,
|
|
175294
175294
|
browserProvider: this.browserProvider,
|
|
175295
175295
|
checkout: this.checkout,
|
|
@@ -175301,9 +175301,9 @@ class OnRamp extends Base$3 {
|
|
|
175301
175301
|
}
|
|
175302
175302
|
|
|
175303
175303
|
const sendSaleWidgetCloseEvent = (eventTarget) => {
|
|
175304
|
-
const event = new CustomEvent(
|
|
175304
|
+
const event = new CustomEvent(ro$1.IMTBL_SALE_WIDGET_EVENT, {
|
|
175305
175305
|
detail: {
|
|
175306
|
-
type:
|
|
175306
|
+
type: so$1.CLOSE_WIDGET,
|
|
175307
175307
|
data: {},
|
|
175308
175308
|
},
|
|
175309
175309
|
});
|
|
@@ -175313,9 +175313,9 @@ const sendSaleWidgetCloseEvent = (eventTarget) => {
|
|
|
175313
175313
|
eventTarget.dispatchEvent(event);
|
|
175314
175314
|
};
|
|
175315
175315
|
const sendSaleSuccessEvent = (eventTarget, paymentMethod, transactions = [], tokenIds = [], transactionId = '') => {
|
|
175316
|
-
const event = new CustomEvent(
|
|
175316
|
+
const event = new CustomEvent(ro$1.IMTBL_SALE_WIDGET_EVENT, {
|
|
175317
175317
|
detail: {
|
|
175318
|
-
type:
|
|
175318
|
+
type: so$1.SUCCESS,
|
|
175319
175319
|
data: {
|
|
175320
175320
|
paymentMethod,
|
|
175321
175321
|
transactions,
|
|
@@ -175330,9 +175330,9 @@ const sendSaleSuccessEvent = (eventTarget, paymentMethod, transactions = [], tok
|
|
|
175330
175330
|
eventTarget.dispatchEvent(event);
|
|
175331
175331
|
};
|
|
175332
175332
|
const sendSaleFailedEvent = (eventTarget, reason, error, paymentMethod, transactions = [], transactionId = '') => {
|
|
175333
|
-
const event = new CustomEvent(
|
|
175333
|
+
const event = new CustomEvent(ro$1.IMTBL_SALE_WIDGET_EVENT, {
|
|
175334
175334
|
detail: {
|
|
175335
|
-
type:
|
|
175335
|
+
type: so$1.FAILURE,
|
|
175336
175336
|
data: {
|
|
175337
175337
|
reason,
|
|
175338
175338
|
error,
|
|
@@ -175349,9 +175349,9 @@ const sendSaleFailedEvent = (eventTarget, reason, error, paymentMethod, transact
|
|
|
175349
175349
|
eventTarget.dispatchEvent(event);
|
|
175350
175350
|
};
|
|
175351
175351
|
const sendSaleTransactionSuccessEvent = (eventTarget, paymentMethod, transactions) => {
|
|
175352
|
-
const event = new CustomEvent(
|
|
175352
|
+
const event = new CustomEvent(ro$1.IMTBL_SALE_WIDGET_EVENT, {
|
|
175353
175353
|
detail: {
|
|
175354
|
-
type:
|
|
175354
|
+
type: so$1.TRANSACTION_SUCCESS,
|
|
175355
175355
|
data: { paymentMethod, transactions },
|
|
175356
175356
|
},
|
|
175357
175357
|
});
|
|
@@ -175361,9 +175361,9 @@ const sendSaleTransactionSuccessEvent = (eventTarget, paymentMethod, transaction
|
|
|
175361
175361
|
eventTarget.dispatchEvent(event);
|
|
175362
175362
|
};
|
|
175363
175363
|
const sendSalePaymentMethodEvent = (eventTarget, paymentMethod) => {
|
|
175364
|
-
const event = new CustomEvent(
|
|
175364
|
+
const event = new CustomEvent(ro$1.IMTBL_SALE_WIDGET_EVENT, {
|
|
175365
175365
|
detail: {
|
|
175366
|
-
type:
|
|
175366
|
+
type: so$1.PAYMENT_METHOD,
|
|
175367
175367
|
data: { paymentMethod },
|
|
175368
175368
|
},
|
|
175369
175369
|
});
|
|
@@ -175373,9 +175373,9 @@ const sendSalePaymentMethodEvent = (eventTarget, paymentMethod) => {
|
|
|
175373
175373
|
eventTarget.dispatchEvent(event);
|
|
175374
175374
|
};
|
|
175375
175375
|
const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
175376
|
-
const event = new CustomEvent(
|
|
175376
|
+
const event = new CustomEvent(ro$1.IMTBL_SALE_WIDGET_EVENT, {
|
|
175377
175377
|
detail: {
|
|
175378
|
-
type:
|
|
175378
|
+
type: so$1.PAYMENT_TOKEN,
|
|
175379
175379
|
data: { ...details },
|
|
175380
175380
|
},
|
|
175381
175381
|
});
|
|
@@ -175385,9 +175385,9 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
175385
175385
|
eventTarget.dispatchEvent(event);
|
|
175386
175386
|
};
|
|
175387
175387
|
|
|
175388
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
175388
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-SueR-4Ck.js'));
|
|
175389
175389
|
class Sale extends Base$3 {
|
|
175390
|
-
eventTopic =
|
|
175390
|
+
eventTopic = ro$1.IMTBL_SALE_WIDGET_EVENT;
|
|
175391
175391
|
// TODO: add specific validation logic for the sale items
|
|
175392
175392
|
isValidArray(items) {
|
|
175393
175393
|
try {
|
|
@@ -175414,10 +175414,10 @@ class Sale extends Base$3 {
|
|
|
175414
175414
|
let validatedConfig;
|
|
175415
175415
|
if (config) {
|
|
175416
175416
|
validatedConfig = config;
|
|
175417
|
-
if (config.theme ===
|
|
175418
|
-
validatedConfig.theme =
|
|
175417
|
+
if (config.theme === wo$1.LIGHT)
|
|
175418
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
175419
175419
|
else
|
|
175420
|
-
validatedConfig.theme =
|
|
175420
|
+
validatedConfig.theme = wo$1.DARK;
|
|
175421
175421
|
}
|
|
175422
175422
|
return {
|
|
175423
175423
|
config: validatedConfig,
|
|
@@ -175462,8 +175462,8 @@ class Sale extends Base$3 {
|
|
|
175462
175462
|
const { t } = instance;
|
|
175463
175463
|
const connectLoaderParams = {
|
|
175464
175464
|
targetChainId: this.checkout.config.isProduction
|
|
175465
|
-
?
|
|
175466
|
-
:
|
|
175465
|
+
? J$3.IMTBL_ZKEVM_MAINNET
|
|
175466
|
+
: J$3.IMTBL_ZKEVM_TESTNET,
|
|
175467
175467
|
browserProvider: this.browserProvider,
|
|
175468
175468
|
checkout: this.checkout,
|
|
175469
175469
|
allowedChains: [this.checkout.config.l2ChainId],
|
|
@@ -175479,9 +175479,9 @@ class Sale extends Base$3 {
|
|
|
175479
175479
|
}
|
|
175480
175480
|
|
|
175481
175481
|
function sendSwapWidgetCloseEvent(eventTarget) {
|
|
175482
|
-
const closeWidgetEvent = new CustomEvent(
|
|
175482
|
+
const closeWidgetEvent = new CustomEvent(ro$1.IMTBL_SWAP_WIDGET_EVENT, {
|
|
175483
175483
|
detail: {
|
|
175484
|
-
type:
|
|
175484
|
+
type: io$1.CLOSE_WIDGET,
|
|
175485
175485
|
data: {},
|
|
175486
175486
|
},
|
|
175487
175487
|
});
|
|
@@ -175492,9 +175492,9 @@ function sendSwapWidgetCloseEvent(eventTarget) {
|
|
|
175492
175492
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
175493
175493
|
}
|
|
175494
175494
|
const sendSwapSuccessEvent = (eventTarget, transactionHash) => {
|
|
175495
|
-
const successEvent = new CustomEvent(
|
|
175495
|
+
const successEvent = new CustomEvent(ro$1.IMTBL_SWAP_WIDGET_EVENT, {
|
|
175496
175496
|
detail: {
|
|
175497
|
-
type:
|
|
175497
|
+
type: io$1.SUCCESS,
|
|
175498
175498
|
data: {
|
|
175499
175499
|
transactionHash,
|
|
175500
175500
|
},
|
|
@@ -175506,9 +175506,9 @@ const sendSwapSuccessEvent = (eventTarget, transactionHash) => {
|
|
|
175506
175506
|
eventTarget.dispatchEvent(successEvent);
|
|
175507
175507
|
};
|
|
175508
175508
|
const sendSwapFailedEvent = (eventTarget, reason) => {
|
|
175509
|
-
const failedEvent = new CustomEvent(
|
|
175509
|
+
const failedEvent = new CustomEvent(ro$1.IMTBL_SWAP_WIDGET_EVENT, {
|
|
175510
175510
|
detail: {
|
|
175511
|
-
type:
|
|
175511
|
+
type: io$1.FAILURE,
|
|
175512
175512
|
data: {
|
|
175513
175513
|
reason,
|
|
175514
175514
|
timestamp: new Date().getTime(),
|
|
@@ -175521,9 +175521,9 @@ const sendSwapFailedEvent = (eventTarget, reason) => {
|
|
|
175521
175521
|
eventTarget.dispatchEvent(failedEvent);
|
|
175522
175522
|
};
|
|
175523
175523
|
const sendSwapRejectedEvent = (eventTarget, reason) => {
|
|
175524
|
-
const rejectedEvent = new CustomEvent(
|
|
175524
|
+
const rejectedEvent = new CustomEvent(ro$1.IMTBL_SWAP_WIDGET_EVENT, {
|
|
175525
175525
|
detail: {
|
|
175526
|
-
type:
|
|
175526
|
+
type: io$1.REJECTED,
|
|
175527
175527
|
data: {
|
|
175528
175528
|
reason,
|
|
175529
175529
|
timestamp: new Date().getTime(),
|
|
@@ -175536,17 +175536,17 @@ const sendSwapRejectedEvent = (eventTarget, reason) => {
|
|
|
175536
175536
|
eventTarget.dispatchEvent(rejectedEvent);
|
|
175537
175537
|
};
|
|
175538
175538
|
|
|
175539
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
175539
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-B9Lgj2-6.js').then(function (n) { return n.b; }));
|
|
175540
175540
|
class Swap extends Base$3 {
|
|
175541
|
-
eventTopic =
|
|
175541
|
+
eventTopic = ro$1.IMTBL_SWAP_WIDGET_EVENT;
|
|
175542
175542
|
getValidatedProperties({ config }) {
|
|
175543
175543
|
let validatedConfig;
|
|
175544
175544
|
if (config) {
|
|
175545
175545
|
validatedConfig = config;
|
|
175546
|
-
if (config.theme ===
|
|
175547
|
-
validatedConfig.theme =
|
|
175546
|
+
if (config.theme === wo$1.LIGHT)
|
|
175547
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
175548
175548
|
else
|
|
175549
|
-
validatedConfig.theme =
|
|
175549
|
+
validatedConfig.theme = wo$1.DARK;
|
|
175550
175550
|
}
|
|
175551
175551
|
return {
|
|
175552
175552
|
config: validatedConfig,
|
|
@@ -175585,8 +175585,8 @@ class Swap extends Base$3 {
|
|
|
175585
175585
|
const { t } = instance;
|
|
175586
175586
|
const connectLoaderParams = {
|
|
175587
175587
|
targetChainId: this.checkout.config.isProduction
|
|
175588
|
-
?
|
|
175589
|
-
:
|
|
175588
|
+
? J$3.IMTBL_ZKEVM_MAINNET
|
|
175589
|
+
: J$3.IMTBL_ZKEVM_TESTNET,
|
|
175590
175590
|
walletProviderName: this.parameters.walletProviderName,
|
|
175591
175591
|
browserProvider: this.browserProvider,
|
|
175592
175592
|
checkout: this.checkout,
|
|
@@ -175602,9 +175602,9 @@ class Swap extends Base$3 {
|
|
|
175602
175602
|
}
|
|
175603
175603
|
|
|
175604
175604
|
function sendWalletWidgetCloseEvent(eventTarget) {
|
|
175605
|
-
const closeWidgetEvent = new CustomEvent(
|
|
175605
|
+
const closeWidgetEvent = new CustomEvent(ro$1.IMTBL_WALLET_WIDGET_EVENT, {
|
|
175606
175606
|
detail: {
|
|
175607
|
-
type:
|
|
175607
|
+
type: ao$1.CLOSE_WIDGET,
|
|
175608
175608
|
data: {},
|
|
175609
175609
|
},
|
|
175610
175610
|
});
|
|
@@ -175615,9 +175615,9 @@ function sendWalletWidgetCloseEvent(eventTarget) {
|
|
|
175615
175615
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
175616
175616
|
}
|
|
175617
175617
|
function sendNetworkSwitchEvent(eventTarget, provider, network) {
|
|
175618
|
-
const walletWidgetSwitchNetworkEvent = new CustomEvent(
|
|
175618
|
+
const walletWidgetSwitchNetworkEvent = new CustomEvent(ro$1.IMTBL_WALLET_WIDGET_EVENT, {
|
|
175619
175619
|
detail: {
|
|
175620
|
-
type:
|
|
175620
|
+
type: ao$1.NETWORK_SWITCH,
|
|
175621
175621
|
data: {
|
|
175622
175622
|
network: network.name,
|
|
175623
175623
|
chainId: Number(network.chainId),
|
|
@@ -175631,9 +175631,9 @@ function sendNetworkSwitchEvent(eventTarget, provider, network) {
|
|
|
175631
175631
|
eventTarget.dispatchEvent(walletWidgetSwitchNetworkEvent);
|
|
175632
175632
|
}
|
|
175633
175633
|
function sendDisconnectWalletEvent(eventTarget) {
|
|
175634
|
-
const disconnectWalletEvent = new CustomEvent(
|
|
175634
|
+
const disconnectWalletEvent = new CustomEvent(ro$1.IMTBL_WALLET_WIDGET_EVENT, {
|
|
175635
175635
|
detail: {
|
|
175636
|
-
type:
|
|
175636
|
+
type: ao$1.DISCONNECT_WALLET,
|
|
175637
175637
|
data: {},
|
|
175638
175638
|
},
|
|
175639
175639
|
});
|
|
@@ -175643,17 +175643,17 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
175643
175643
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
175644
175644
|
}
|
|
175645
175645
|
|
|
175646
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
175646
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-Cq1IwRPp.js'));
|
|
175647
175647
|
class Wallet extends Base$3 {
|
|
175648
|
-
eventTopic =
|
|
175648
|
+
eventTopic = ro$1.IMTBL_WALLET_WIDGET_EVENT;
|
|
175649
175649
|
getValidatedProperties({ config }) {
|
|
175650
175650
|
let validatedConfig;
|
|
175651
175651
|
if (config) {
|
|
175652
175652
|
validatedConfig = config;
|
|
175653
|
-
if (config.theme ===
|
|
175654
|
-
validatedConfig.theme =
|
|
175653
|
+
if (config.theme === wo$1.LIGHT)
|
|
175654
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
175655
175655
|
else
|
|
175656
|
-
validatedConfig.theme =
|
|
175656
|
+
validatedConfig.theme = wo$1.DARK;
|
|
175657
175657
|
if (config?.showDisconnectButton === undefined) {
|
|
175658
175658
|
validatedConfig.showDisconnectButton = true;
|
|
175659
175659
|
}
|
|
@@ -175686,8 +175686,8 @@ class Wallet extends Base$3 {
|
|
|
175686
175686
|
const { t } = instance;
|
|
175687
175687
|
const connectLoaderParams = {
|
|
175688
175688
|
targetChainId: this.checkout.config.isProduction
|
|
175689
|
-
?
|
|
175690
|
-
:
|
|
175689
|
+
? J$3.IMTBL_ZKEVM_MAINNET
|
|
175690
|
+
: J$3.IMTBL_ZKEVM_TESTNET,
|
|
175691
175691
|
walletProviderName: this.parameters?.walletProviderName,
|
|
175692
175692
|
browserProvider: this.browserProvider,
|
|
175693
175693
|
checkout: this.checkout,
|
|
@@ -176698,7 +176698,7 @@ const withMetricsAsync = async (fn, flowName, anonymousId, errorType) => {
|
|
|
176698
176698
|
}
|
|
176699
176699
|
catch (error) {
|
|
176700
176700
|
if (error instanceof Error) {
|
|
176701
|
-
mn('commerce', flowName, error, { flowId: flow.details.flowId });
|
|
176701
|
+
mn$1('commerce', flowName, error, { flowId: flow.details.flowId });
|
|
176702
176702
|
}
|
|
176703
176703
|
if (errorType && errorType(error)) {
|
|
176704
176704
|
flow.addEvent(`errored_${errorType(error)}`);
|
|
@@ -177578,7 +177578,7 @@ function PurchaseConnectWalletDrawer({ heading, visible, onClose, onConnect, onE
|
|
|
177578
177578
|
walletRdns: info.rdns,
|
|
177579
177579
|
},
|
|
177580
177580
|
});
|
|
177581
|
-
if (info.rdns ===
|
|
177581
|
+
if (info.rdns === Gt$2.PASSPORT) {
|
|
177582
177582
|
const { isConnected } = await checkout.checkIsWalletConnected({
|
|
177583
177583
|
provider: new D$6(providerDetail.provider),
|
|
177584
177584
|
});
|
|
@@ -178065,9 +178065,9 @@ function HandoverContent({ headingText, subheadingText, primaryButtonText, onPri
|
|
|
178065
178065
|
|
|
178066
178066
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
178067
178067
|
function sendPurchaseCloseEvent(eventTarget) {
|
|
178068
|
-
const closeWidgetEvent = new CustomEvent(
|
|
178068
|
+
const closeWidgetEvent = new CustomEvent(ro$1.IMTBL_PURCHASE_WIDGET_EVENT, {
|
|
178069
178069
|
detail: {
|
|
178070
|
-
type:
|
|
178070
|
+
type: Co$1.CLOSE_WIDGET,
|
|
178071
178071
|
data: {},
|
|
178072
178072
|
},
|
|
178073
178073
|
});
|
|
@@ -178078,9 +178078,9 @@ function sendPurchaseCloseEvent(eventTarget) {
|
|
|
178078
178078
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
178079
178079
|
}
|
|
178080
178080
|
function sendConnectProviderSuccessEvent(eventTarget, providerType, provider, providerInfo) {
|
|
178081
|
-
const successEvent = new CustomEvent(
|
|
178081
|
+
const successEvent = new CustomEvent(ro$1.IMTBL_PURCHASE_WIDGET_EVENT, {
|
|
178082
178082
|
detail: {
|
|
178083
|
-
type:
|
|
178083
|
+
type: Co$1.CONNECT_SUCCESS,
|
|
178084
178084
|
data: {
|
|
178085
178085
|
provider,
|
|
178086
178086
|
providerType,
|
|
@@ -178094,9 +178094,9 @@ function sendConnectProviderSuccessEvent(eventTarget, providerType, provider, pr
|
|
|
178094
178094
|
eventTarget.dispatchEvent(successEvent);
|
|
178095
178095
|
}
|
|
178096
178096
|
const sendPurchaseSuccessEvent = (eventTarget, transactionHash, fundingMethod) => {
|
|
178097
|
-
const successEvent = new CustomEvent(
|
|
178097
|
+
const successEvent = new CustomEvent(ro$1.IMTBL_PURCHASE_WIDGET_EVENT, {
|
|
178098
178098
|
detail: {
|
|
178099
|
-
type:
|
|
178099
|
+
type: Co$1.SUCCESS,
|
|
178100
178100
|
data: {
|
|
178101
178101
|
transactionHash,
|
|
178102
178102
|
fundingMethod,
|
|
@@ -178320,13 +178320,13 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
|
|
|
178320
178320
|
(async () => {
|
|
178321
178321
|
const tokenAddress = quote.currency.address;
|
|
178322
178322
|
const tokenAmount = String(quote.totalCurrencyAmount);
|
|
178323
|
-
const isSufficientBalance = hasSufficientBalance(balances, tokenAddress,
|
|
178323
|
+
const isSufficientBalance = hasSufficientBalance(balances, tokenAddress, J$3.IMTBL_ZKEVM_MAINNET.toString(), tokenAmount);
|
|
178324
178324
|
if (isSufficientBalance) {
|
|
178325
|
-
const token = findToken(tokens, tokenAddress,
|
|
178326
|
-
const balance = findBalance(balances, tokenAddress,
|
|
178325
|
+
const token = findToken(tokens, tokenAddress, J$3.IMTBL_ZKEVM_MAINNET.toString());
|
|
178326
|
+
const balance = findBalance(balances, tokenAddress, J$3.IMTBL_ZKEVM_MAINNET.toString());
|
|
178327
178327
|
if (token && balance) {
|
|
178328
178328
|
const directCryptoRoute = {
|
|
178329
|
-
isInsufficientGas: !hasSufficientGas(balances,
|
|
178329
|
+
isInsufficientGas: !hasSufficientGas(balances, J$3.IMTBL_ZKEVM_MAINNET.toString(), fromProvider),
|
|
178330
178330
|
amountData: {
|
|
178331
178331
|
fromToken: token,
|
|
178332
178332
|
fromAmount: tokenAmount,
|
|
@@ -178340,7 +178340,7 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
|
|
|
178340
178340
|
setSelectedDirectCryptoPayRoute(directCryptoRoute);
|
|
178341
178341
|
}
|
|
178342
178342
|
}
|
|
178343
|
-
const availableRoutes = await fetchRoutes(squid, tokens, balances,
|
|
178343
|
+
const availableRoutes = await fetchRoutes(squid, tokens, balances, J$3.IMTBL_ZKEVM_MAINNET.toString(), tokenAddress, tokenAmount, 5, 1000, true);
|
|
178344
178344
|
setRoutes(availableRoutes);
|
|
178345
178345
|
setFetchingRoutes(false);
|
|
178346
178346
|
setInsufficientBalance(availableRoutes.length === 0);
|
|
@@ -178454,7 +178454,7 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
|
|
|
178454
178454
|
signResponse: signResponse.signResponse,
|
|
178455
178455
|
},
|
|
178456
178456
|
});
|
|
178457
|
-
const updatedAmountData = getFromAmountData(tokens, selectedRouteData.amountData.balance, String(quote.totalCurrencyAmount),
|
|
178457
|
+
const updatedAmountData = getFromAmountData(tokens, selectedRouteData.amountData.balance, String(quote.totalCurrencyAmount), J$3.IMTBL_ZKEVM_MAINNET.toString(), quote.currency.address, selectedRouteData.amountData.additionalBuffer);
|
|
178458
178458
|
if (!updatedAmountData)
|
|
178459
178459
|
return;
|
|
178460
178460
|
const postHooks = signResponse?.postHooks ? {
|
|
@@ -178551,7 +178551,7 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
|
|
|
178551
178551
|
|| (!!selectedDirectCryptoPayRoute && !selectedDirectCryptoPayRoute.isInsufficientGas) || isPayWithCard);
|
|
178552
178552
|
const walletOptions = reactExports.useMemo(() => providers
|
|
178553
178553
|
.map((detail) => {
|
|
178554
|
-
if (detail.info.rdns ===
|
|
178554
|
+
if (detail.info.rdns === Gt$2.PASSPORT) {
|
|
178555
178555
|
return {
|
|
178556
178556
|
...detail,
|
|
178557
178557
|
info: {
|
|
@@ -178626,7 +178626,7 @@ const getCryptoToFiatConversion = async (cryptoFiat, fiatSymbol, tokenSymbols) =
|
|
|
178626
178626
|
}
|
|
178627
178627
|
};
|
|
178628
178628
|
async function getUSDConversionsForAll(environment) {
|
|
178629
|
-
const apiUrl = `${
|
|
178629
|
+
const apiUrl = `${q$5[environment]}/checkout/v1/token-prices`;
|
|
178630
178630
|
const response = await axios$1.get(apiUrl);
|
|
178631
178631
|
const { data } = response;
|
|
178632
178632
|
const result = {};
|
|
@@ -316569,31 +316569,27 @@ const hexToText = (value) => {
|
|
|
316569
316569
|
return text;
|
|
316570
316570
|
};
|
|
316571
316571
|
|
|
316572
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
316572
316573
|
const MAX_GAS_LIMIT = '30000000';
|
|
316573
|
-
// TODO: Move to common config file inside Checkout SDK while refactoring onRamp
|
|
316574
|
-
// TODO: Get transak config from checkout SDK
|
|
316575
|
-
const TRANSAK_WIDGET_BASE_URL = {
|
|
316576
|
-
[K$6.SANDBOX]: 'https://global-stg.transak.com',
|
|
316577
|
-
[K$6.PRODUCTION]: 'https://global.transak.com/',
|
|
316578
|
-
};
|
|
316579
316574
|
const TRANSAK_API_BASE_URL = {
|
|
316580
316575
|
[K$6.SANDBOX]: 'https://api-stg.transak.com',
|
|
316581
316576
|
[K$6.PRODUCTION]: 'https://api.transak.com',
|
|
316582
316577
|
};
|
|
316583
|
-
const TRANSAK_ENVIRONMENT = {
|
|
316584
|
-
[K$6.SANDBOX]: 'STAGING',
|
|
316585
|
-
[K$6.PRODUCTION]: 'PRODUCTION',
|
|
316586
|
-
};
|
|
316587
316578
|
const TRANSAK_API_KEY = {
|
|
316588
316579
|
[K$6.SANDBOX]: 'd14b44fb-0f84-4db5-affb-e044040d724b',
|
|
316589
316580
|
[K$6.PRODUCTION]: 'ad1bca70-d917-4628-bb0f-5609537498bc',
|
|
316590
316581
|
};
|
|
316582
|
+
const IMMUTABLE_API_BASE_URL = {
|
|
316583
|
+
development: 'https://api.dev.immutable.com',
|
|
316584
|
+
[K$6.SANDBOX]: 'https://api.sandbox.immutable.com',
|
|
316585
|
+
[K$6.PRODUCTION]: 'https://api.immutable.com',
|
|
316586
|
+
};
|
|
316591
316587
|
const useTransakIframe = (props) => {
|
|
316592
316588
|
const { contractId, environment, transakParams, onError, } = props;
|
|
316593
316589
|
const [iframeSrc, setIframeSrc] = reactExports.useState('');
|
|
316594
316590
|
const getNFTCheckoutURL = reactExports.useCallback(async () => {
|
|
316595
316591
|
try {
|
|
316596
|
-
const { calldata, nftData: nfts, estimatedGasLimit, cryptoCurrencyCode, excludeFiatCurrencies,
|
|
316592
|
+
const { calldata, nftData: nfts, estimatedGasLimit, cryptoCurrencyCode, excludeFiatCurrencies, exchangeScreenTitle, email, walletAddress, partnerOrderId, } = transakParams;
|
|
316597
316593
|
// FIXME: defaulting to first nft in the list
|
|
316598
316594
|
// as transak currently only supports on nft at a time
|
|
316599
316595
|
const nftData = nfts?.slice(0, 1)
|
|
@@ -316624,19 +316620,33 @@ const useTransakIframe = (props) => {
|
|
|
316624
316620
|
throw new Error('Failed to get NFT transaction ID');
|
|
316625
316621
|
}
|
|
316626
316622
|
const { id: nftTransactionId } = await response.json();
|
|
316627
|
-
const
|
|
316628
|
-
|
|
316629
|
-
|
|
316630
|
-
|
|
316631
|
-
|
|
316632
|
-
|
|
316633
|
-
|
|
316634
|
-
|
|
316635
|
-
|
|
316623
|
+
const requestBody = {
|
|
316624
|
+
api_key: TRANSAK_API_KEY[environment],
|
|
316625
|
+
nft_transaction_id: nftTransactionId,
|
|
316626
|
+
theme_color: '0D0D0D',
|
|
316627
|
+
exchange_screen_title: exchangeScreenTitle,
|
|
316628
|
+
wallet_address: walletAddress,
|
|
316629
|
+
partner_order_id: partnerOrderId,
|
|
316630
|
+
};
|
|
316631
|
+
if (email) {
|
|
316632
|
+
requestBody.email = email;
|
|
316633
|
+
}
|
|
316636
316634
|
if (excludeFiatCurrencies) {
|
|
316637
|
-
|
|
316635
|
+
requestBody.exclude_fiat_currencies = excludeFiatCurrencies.join(',');
|
|
316636
|
+
}
|
|
316637
|
+
const widgetUrlResponse = await fetch(`${IMMUTABLE_API_BASE_URL[environment]}/checkout/v1/widget-url`, {
|
|
316638
|
+
method: 'POST',
|
|
316639
|
+
headers: {
|
|
316640
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
316641
|
+
'Content-Type': 'application/json',
|
|
316642
|
+
},
|
|
316643
|
+
body: JSON.stringify(requestBody),
|
|
316644
|
+
});
|
|
316645
|
+
if (!widgetUrlResponse.ok) {
|
|
316646
|
+
throw new Error('Failed to get widget URL');
|
|
316638
316647
|
}
|
|
316639
|
-
|
|
316648
|
+
const { url } = await widgetUrlResponse.json();
|
|
316649
|
+
return url;
|
|
316640
316650
|
}
|
|
316641
316651
|
catch {
|
|
316642
316652
|
onError?.();
|
|
@@ -316706,7 +316716,7 @@ function WithCard(props) {
|
|
|
316706
316716
|
const { providersState: { toProviderInfo, toAddress, checkout, }, } = useProvidersContext();
|
|
316707
316717
|
const recipientEmail = '';
|
|
316708
316718
|
const recipientAddress = toAddress || '';
|
|
316709
|
-
const isPassportWallet = toProviderInfo?.rdns ===
|
|
316719
|
+
const isPassportWallet = toProviderInfo?.rdns === Gt$2.PASSPORT;
|
|
316710
316720
|
const excludeFiatCurrencies = [];
|
|
316711
316721
|
const { environment } = checkout.config;
|
|
316712
316722
|
const executeTxn = signResponse?.transactions.find((txn) => txn.methodCall.startsWith('execute'));
|
|
@@ -316846,9 +316856,9 @@ function PurchaseWidget({ config, environmentId, items, showBackButton, }) {
|
|
|
316846
316856
|
objectFit: 'cover',
|
|
316847
316857
|
objectPosition: 'center',
|
|
316848
316858
|
} }), viewState.view.type === PurchaseWidgetViews.PURCHASE && (jsx$1(Purchase$1, { checkout: checkout, environmentId: environmentId, showBackButton: showBackButton, themeOverrides: config.themeOverrides, onCloseButtonClick: () => sendPurchaseCloseEvent(eventTarget), onBackButtonClick: () => {
|
|
316849
|
-
orchestrationEvents.sendRequestGoBackEvent(eventTarget,
|
|
316859
|
+
orchestrationEvents.sendRequestGoBackEvent(eventTarget, ro$1.IMTBL_PURCHASE_WIDGET_EVENT, {});
|
|
316850
316860
|
} })), viewState.view.type === PurchaseWidgetViews.PAY_WITH_CARD && (jsx$1(PayWithCard, { onCloseButtonClick: () => {
|
|
316851
|
-
orchestrationEvents.sendRequestGoBackEvent(eventTarget,
|
|
316861
|
+
orchestrationEvents.sendRequestGoBackEvent(eventTarget, ro$1.IMTBL_PURCHASE_WIDGET_EVENT, {});
|
|
316852
316862
|
}, onError: () => { } }))] }) }) }) }));
|
|
316853
316863
|
}
|
|
316854
316864
|
|
|
@@ -316876,16 +316886,16 @@ function isValidArray(items) {
|
|
|
316876
316886
|
}
|
|
316877
316887
|
|
|
316878
316888
|
class Purchase extends Base$3 {
|
|
316879
|
-
eventTopic =
|
|
316889
|
+
eventTopic = ro$1.IMTBL_PURCHASE_WIDGET_EVENT;
|
|
316880
316890
|
getValidatedProperties({ config, }) {
|
|
316881
316891
|
let validatedConfig;
|
|
316882
316892
|
if (config) {
|
|
316883
316893
|
validatedConfig = config;
|
|
316884
|
-
if (config.theme ===
|
|
316885
|
-
validatedConfig.theme =
|
|
316894
|
+
if (config.theme === wo$1.LIGHT) {
|
|
316895
|
+
validatedConfig.theme = wo$1.LIGHT;
|
|
316886
316896
|
}
|
|
316887
316897
|
else {
|
|
316888
|
-
validatedConfig.theme =
|
|
316898
|
+
validatedConfig.theme = wo$1.DARK;
|
|
316889
316899
|
}
|
|
316890
316900
|
}
|
|
316891
316901
|
return {
|
|
@@ -316945,55 +316955,55 @@ class WidgetsFactory {
|
|
|
316945
316955
|
const { provider } = props ?? {};
|
|
316946
316956
|
const config = props?.config || {};
|
|
316947
316957
|
switch (type) {
|
|
316948
|
-
case
|
|
316958
|
+
case Io$1.CONNECT: {
|
|
316949
316959
|
return new Connect(this.sdk, {
|
|
316950
316960
|
config: { ...this.widgetConfig, ...(config) },
|
|
316951
316961
|
provider,
|
|
316952
316962
|
});
|
|
316953
316963
|
}
|
|
316954
|
-
case
|
|
316964
|
+
case Io$1.BRIDGE: {
|
|
316955
316965
|
return new Bridge(this.sdk, {
|
|
316956
316966
|
config: { ...this.widgetConfig, ...(config) },
|
|
316957
316967
|
provider,
|
|
316958
316968
|
});
|
|
316959
316969
|
}
|
|
316960
|
-
case
|
|
316970
|
+
case Io$1.WALLET: {
|
|
316961
316971
|
return new Wallet(this.sdk, {
|
|
316962
316972
|
config: { ...this.widgetConfig, ...(config) },
|
|
316963
316973
|
provider,
|
|
316964
316974
|
});
|
|
316965
316975
|
}
|
|
316966
|
-
case
|
|
316976
|
+
case Io$1.SWAP: {
|
|
316967
316977
|
return new Swap(this.sdk, {
|
|
316968
316978
|
config: { ...this.widgetConfig, ...(config) },
|
|
316969
316979
|
provider,
|
|
316970
316980
|
});
|
|
316971
316981
|
}
|
|
316972
|
-
case
|
|
316982
|
+
case Io$1.ONRAMP: {
|
|
316973
316983
|
return new OnRamp(this.sdk, {
|
|
316974
316984
|
config: { ...this.widgetConfig, ...(config) },
|
|
316975
316985
|
provider,
|
|
316976
316986
|
});
|
|
316977
316987
|
}
|
|
316978
|
-
case
|
|
316988
|
+
case Io$1.SALE: {
|
|
316979
316989
|
return new Sale(this.sdk, {
|
|
316980
316990
|
config: { ...this.widgetConfig, ...(config) },
|
|
316981
316991
|
provider,
|
|
316982
316992
|
});
|
|
316983
316993
|
}
|
|
316984
|
-
case
|
|
316994
|
+
case Io$1.IMMUTABLE_COMMERCE: {
|
|
316985
316995
|
return new CommerceWidgetRoot(this.sdk, {
|
|
316986
316996
|
config: { ...this.widgetConfig, ...(config) },
|
|
316987
316997
|
provider,
|
|
316988
316998
|
});
|
|
316989
316999
|
}
|
|
316990
|
-
case
|
|
317000
|
+
case Io$1.ADD_TOKENS: {
|
|
316991
317001
|
return new AddTokens(this.sdk, {
|
|
316992
317002
|
config: { ...this.widgetConfig, ...(config) },
|
|
316993
317003
|
provider,
|
|
316994
317004
|
});
|
|
316995
317005
|
}
|
|
316996
|
-
case
|
|
317006
|
+
case Io$1.PURCHASE: {
|
|
316997
317007
|
return new Purchase(this.sdk, {
|
|
316998
317008
|
config: { ...this.widgetConfig, ...(config) },
|
|
316999
317009
|
provider,
|
|
@@ -317005,4 +317015,4 @@ class WidgetsFactory {
|
|
|
317005
317015
|
};
|
|
317006
317016
|
}
|
|
317007
317017
|
|
|
317008
|
-
export { isError$1 as $,
|
|
317018
|
+
export { isError$1 as $, Ao$1 as A, Box as B, Co$1 as C, Body as D, Eo$1 as E, useAnalytics as F, EventTargetContext as G, Heading as H, CryptoFiatContext as I, tokenValueFormat as J, getDefaultTokenImage as K, Link as L, HeaderNavigation as M, sendCloseWidgetEvent as N, orchestrationEvents as O, amountInputValidation as P, useTheme as Q, Ro$1 as R, Stack as S, To as T, UserJourney as U, ViewActions as V, CloudImage as W, getRemoteImage as X, CryptoFiatProvider as Y, ConnectLoaderContext as Z, isAddress as _, ao$1 as a, isNativeToken as a$, LoadingView as a0, CryptoFiatActions as a1, useViewState as a2, useEventTargetState as a3, commerceFlows as a4, SharedViews as a5, ErrorView as a6, ConnectWidget as a7, ProvidersContextProvider as a8, PurchaseWidget as a9, Drawer as aA, Divider as aB, useProvidersContext as aC, WalletDrawer as aD, UnableToConnectDrawer as aE, Fragment$1 as aF, Gt$2 as aG, removeSpace as aH, getProviderSlugFromRdns as aI, D$6 as aJ, isPassportProvider as aK, connectEIP6963Provider as aL, identifyUser as aM, ConnectEIP6963ProviderError as aN, ProvidersContextActions as aO, MenuItem as aP, J$3 as aQ, SQUID_NATIVE_TOKEN as aR, commonjsRequire$1 as aS, OnboardingPagination as aT, ViewContext as aU, useHandover as aV, HandoverTarget as aW, APPROVE_TXN_ANIMATION as aX, RiveStateMachineInput as aY, HandoverContent as aZ, keyframes$2 as a_, ConnectLoader as aa, ViewContextProvider as ab, hFlex as ac, _defineProperty$1 as ad, _objectWithoutProperties as ae, useForwardLocalDomRef as af, _slicedToArray as ag, useResizeObserver as ah, usePrevious as ai, useGetMotionProfile as aj, useBrowserEffect as ak, merge$2 as al, getHeadingTextStyles as am, getMotionProfileSx as an, useConvertSxToEmotionStyles as ao, DUMMY_WIDTH_PUSHER_TEXT as ap, useGetSubcomponentChild as aq, flattenChildren as ar, vFlex as as, centerFlexChildren as at, SmartClone as au, FormControlLabel as av, FormControlValidation as aw, FormControlCaption as ax, getDefaultExportFromCjs$2 as ay, commonjsGlobal$1 as az, reactExports as b, sendSaleFailedEvent as b$, getTokenImageByAddress as b0, FramedImage as b1, FramedIcon as b2, ButtCon as b3, TextInput as b4, VerticalMenu as b5, TOKEN_PRIORITY_ORDER as b6, EllipsizedText as b7, Tooltip as b8, Sticker as b9, useExecute as bA, getRouteChains as bB, t$4 as bC, convertToNetworkChangeableProvider as bD, verifyAndSwitchChain as bE, PriceDisplay as bF, getFromAmountData as bG, viewReducer as bH, initialViewState as bI, useSquid as bJ, useTokens as bK, v4 as bL, K$6 as bM, isValidAddress as bN, fetchChains as bO, fetchBalances as bP, ServiceUnavailableErrorView as bQ, errorToString as bR, hexToText as bS, compareStr as bT, mn$1 as bU, co$1 as bV, TransakIframe as bW, toPascalCase as bX, sendSaleWidgetCloseEvent as bY, toStringifyTransactions as bZ, sendSaleSuccessEvent as b_, getDurationFormatted as ba, getTotalRouteFees as bb, getRouteAndTokenBalances as bc, Icon as bd, Badge as be, getFormattedAmounts as bf, getRemoteVideo as bg, FramedVideo as bh, listVariants as bi, motion$1 as bj, listItemVariants as bk, Banner as bl, useRoutes as bm, useInjectedProviders as bn, hn as bo, RouteError as bp, dist$2 as bq, SquidFooter as br, TOOLKIT_SQUID_URL as bs, merge$1 as bt, SvgIcon as bu, WalletWarningHero as bv, getFormattedNumber as bw, FIXED_HANDOVER_DURATION as bx, EXECUTE_TXN_ANIMATION as by, Trans as bz, parseUnits$1 as c, heroBackGroundStyles as c$, sendSaleTransactionSuccessEvent as c0, sendSalePaymentMethodEvent as c1, sendSalePaymentTokenEvent as c2, LoadingOverlay as c3, HandoverDuration as c4, FooterLogo as c5, StatusType as c6, prettyFormatNumber as c7, ShimmerCircle as c8, Te$1 as c9, PASSPORT_URL as cA, getChainImage as cB, getChainIdBySlug as cC, useWalletConnect as cD, Logo as cE, RawImage as cF, isWalletConnectProvider as cG, getNativeSymbolByChainSlug as cH, JsonRpcProvider as cI, retry as cJ, getChainSlugById as cK, DEFAULT_TRANSACTIONS_RETRY_POLICY as cL, getChainNameById as cM, getWalletProviderNameByProvider as cN, isMetaMaskProvider as cO, fe$3 as cP, ButtonNavigationStyles as cQ, NATIVE as cR, ETH_TOKEN_SYMBOL as cS, st$1 as cT, DEFAULT_QUOTE_REFRESH_INTERVAL as cU, addChainChangedListener as cV, removeChainChangedListener as cW, xt$1 as cX, IMX_TOKEN_SYMBOL as cY, DEFAULT_TOKEN_DECIMALS as cZ, CHECKOUT_CDN_BASE_URL as c_, abbreviateWalletAddress as ca, formatUnits as cb, Caption as cc, tokenSymbolNameOverrides as cd, Re$3 as ce, Ce$2 as cf, M$6 as cg, ct$1 as ch, isGasFree as ci, eventTargetReducer as cj, initialEventTargetState as ck, EventTargetActions as cl, ConnectWidgetViews as cm, ConnectLoaderActions as cn, widgetTheme as co, toQuantity as cp, toBeHex as cq, getAddress as cr, keccak256$1 as cs, AbiCoder as ct, concat$5 as cu, axios$1 as cv, ZeroAddress as cw, nt$1 as cx, S$7 as cy, ShimmerBox as cz, formatZeroAmount as d, a$2 as d$, heroImageStyles as d0, SimpleTextBody as d1, FooterButton as d2, getEthTokenImage as d3, WITHDRAWAL_CLAIM_GAS_LIMIT as d4, Ct$2 as d5, r$7 as d6, StatusView as d7, sendOnRampWidgetCloseEvent as d8, url as d9, getTertiaryButtonStyles as dA, isChildSubcomponent as dB, FormControlWrapper as dC, Select as dD, DuoCon as dE, heroImageBottomAlign as dF, q$5 as dG, isDualVariantIcon as dH, DEFAULT_TOKEN_SYMBOLS as dI, getStartingSize as dJ, DEFAULT_BUTTON_SIZE as dK, getResponsiveSx as dL, BUTTON_SIZES as dM, setDefaultSxBackgroundColor as dN, ZERO_BALANCE_STRING as dO, sendNetworkSwitchEvent as dP, ge$3 as dQ, sortNetworksCompareFn as dR, sortTokensByAmount as dS, sendWalletWidgetCloseEvent as dT, sendDisconnectWalletEvent as dU, FAQS_LINK as dV, useBrowserLayoutEffect as dW, se$2 as dX, T$4 as dY, oe$3 as dZ, R$1 as d_, TRANSAK_ORIGIN as da, jt$2 as db, sendOnRampSuccessEvent as dc, sendOnRampFailedEvent as dd, quickswapFooterStyles as de, quickswapFooterLogoStyles as df, quickswapFooterDisclaimerTextStyles as dg, wo$1 as dh, getImxTokenImage as di, getCryptoToUSDConversion as dj, calculateFeesFiat as dk, parseEther as dl, ESTIMATE_DEBOUNCE as dm, DEFAULT_TOKEN_VALIDATION_DECIMALS as dn, sendSwapWidgetCloseEvent as dp, m$5 as dq, DEFAULT_BALANCE_RETRY_POLICY as dr, yo$1 as ds, sendSwapSuccessEvent as dt, sendSwapFailedEvent as du, sendSwapRejectedEvent as dv, motion$3 as dw, BaseClickable as dx, AnimatePresence$1 as dy, ClassNames as dz, calculateCryptoToFiat as e, te$2 as e0, p$8 as e1, ne$3 as e2, y$7 as e3, getAugmentedNamespace as e4, __awaiter$5 as e5, __generator as e6, loadScript as e7, getNextIntegrationsURL as e8, unloadScript as e9, __spreadArray$1 as ea, isOffline as eb, __assign as ec, ContextCancelation as ed, applyDestinationMiddleware as ee, dist$4 as ef, isServer as eg, mergedOptions as eh, isPlainObject$1 as ei, pWhile as ej, PriorityQueue as ek, PersistedPriorityQueue as el, attempt as em, isOnline as en, Context as eo, pTimeout as ep, gracefulDecodeURIComponent as eq, WidgetsFactory as er, fo$1 as f, go$1 as g, Contract as h, io$1 as i, ie$4 as j, useTranslation as k, lo$1 as l, mo$1 as m, no$1 as n, oo$1 as o, po$1 as p, dist$3 as q, ro$1 as r, so$1 as s, getRemoteRive as t, uo as u, tt$1 as v, jsx$1 as w, jsxs as x, Button as y, SimpleLayout as z };
|