@reown/appkit-cdn 1.1.0 → 1.1.2
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/appkit.js +11430 -0
- package/dist/appkit.js.map +1 -0
- package/package.json +11 -8
- package/dist/W3MFrameProviderSingleton--HSg3nEz.js +0 -66075
- package/dist/W3MFrameProviderSingleton-SRLqDWgO.cjs +0 -11301
- package/dist/ethers.cjs +0 -1
- package/dist/ethers.js +0 -17811
- package/dist/hooks.module-B_N3JvEN.js +0 -763
- package/dist/hooks.module-CmpdbiRp.cjs +0 -1
- package/dist/index-2d-aRmQF.js +0 -250
- package/dist/index-3Tles8GF.js +0 -2055
- package/dist/index-3jinrfKR.cjs +0 -1
- package/dist/index-BBwc05vi.cjs +0 -64
- package/dist/index-BmU807V9.cjs +0 -7
- package/dist/index-CDAn9JfZ.cjs +0 -47
- package/dist/index-CIzqgU5q.cjs +0 -1
- package/dist/index-CJq05jyL.js +0 -129
- package/dist/index-CO1X8Cxc.js +0 -254
- package/dist/index-CQ4-w5mp.cjs +0 -1
- package/dist/index-DDwvGjhD.js +0 -161
- package/dist/index-DSzXjBUF.js +0 -3175
- package/dist/index-Dlv7g3Jh.js +0 -9034
- package/dist/index-_Sw9VWRf.js +0 -930
- package/dist/index-sfhFJZJt.cjs +0 -1
- package/dist/index-v7RnFZTP.cjs +0 -41
- package/dist/index.es-CXs4mA1g.cjs +0 -43
- package/dist/index.es-TVTbcEaP.js +0 -11685
- package/dist/metamask-sdk-CaVruToV.js +0 -40484
- package/dist/metamask-sdk-CsUP8MhX.cjs +0 -217
- package/dist/native-BiFy-msx.js +0 -16
- package/dist/native-gXKXtBE3.cjs +0 -1
- package/dist/w3m-modal-Dc1peoIh.cjs +0 -150
- package/dist/w3m-modal-DwtACkc9.js +0 -276
- package/dist/wagmi-GgXheXd8.cjs +0 -46
- package/dist/wagmi-IogORaa7.js +0 -18186
- package/dist/wagmi.cjs +0 -1
- package/dist/wagmi.js +0 -9
package/dist/index-CDAn9JfZ.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-sfhFJZJt.cjs"),O=require("./W3MFrameProviderSingleton-SRLqDWgO.cjs");/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const je=window,Rt=je.ShadowRoot&&(je.ShadyCSS===void 0||je.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wt=Symbol(),Dt=new WeakMap;let po=class{constructor(e,o,i){if(this._$cssResult$=!0,i!==Wt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o}get styleSheet(){let e=this.o;const o=this.t;if(Rt&&e===void 0){const i=o!==void 0&&o.length===1;i&&(e=Dt.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Dt.set(o,e))}return e}toString(){return this.cssText}};const So=t=>new po(typeof t=="string"?t:t+"",void 0,Wt),C=(t,...e)=>{const o=t.length===1?t[0]:e.reduce((i,r,n)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1],t[0]);return new po(o,t,Wt)},Ro=(t,e)=>{Rt?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{const i=document.createElement("style"),r=je.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)})},Ut=Rt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(const i of e.cssRules)o+=i.cssText;return So(o)})(t):t;/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2017 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var Qe;const Be=window,jt=Be.trustedTypes,Wo=jt?jt.emptyScript:"",Ht=Be.reactiveElementPolyfillSupport,Et={toAttribute(t,e){switch(e){case Boolean:t=t?Wo:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},uo=(t,e)=>e!==t&&(e==e||t==t),Ke={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:uo},Ot="finalized";let se=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((o,i)=>{const r=this._$Ep(i,o);r!==void 0&&(this._$Ev.set(r,i),e.push(r))}),e}static createProperty(e,o=Ke){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(e,o),!o.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,i,o);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,o,i){return{get(){return this[o]},set(r){const n=this[e];this[o]=r,this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ke}static finalize(){if(this.hasOwnProperty(Ot))return!1;this[Ot]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,i=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const r of i)this.createProperty(r,o[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const o=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)o.unshift(Ut(r))}else e!==void 0&&o.push(Ut(e));return o}static _$Ep(e,o){const i=o.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(o=>o(this))}addController(e){var o,i;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var e;const o=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ro(o,this.constructor.elementStyles),o}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostConnected)===null||i===void 0?void 0:i.call(o)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostDisconnected)===null||i===void 0?void 0:i.call(o)})}attributeChangedCallback(e,o,i){this._$AK(e,i)}_$EO(e,o,i=Ke){var r;const n=this.constructor._$Ep(e,i);if(n!==void 0&&i.reflect===!0){const a=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:Et).toAttribute(o,i.type);this._$El=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$El=null}}_$AK(e,o){var i;const r=this.constructor,n=r._$Ev.get(e);if(n!==void 0&&this._$El!==n){const a=r.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:Et;this._$El=n,this[n]=s.fromAttribute(o,a.type),this._$El=null}}requestUpdate(e,o,i){let r=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||uo)(this[e],o)?(this._$AL.has(e)||this._$AL.set(e,o),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,n)=>this[n]=r),this._$Ei=void 0);let o=!1;const i=this._$AL;try{o=this.shouldUpdate(i),o?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostUpdate)===null||n===void 0?void 0:n.call(r)}),this.update(i)):this._$Ek()}catch(r){throw o=!1,this._$Ek(),r}o&&this._$AE(i)}willUpdate(e){}_$AE(e){var o;(o=this._$ES)===null||o===void 0||o.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((o,i)=>this._$EO(i,this[i],o)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};se[Ot]=!0,se.elementProperties=new Map,se.elementStyles=[],se.shadowRootOptions={mode:"open"},Ht==null||Ht({ReactiveElement:se}),((Qe=Be.reactiveElementVersions)!==null&&Qe!==void 0?Qe:Be.reactiveElementVersions=[]).push("1.6.3");/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2017 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var Ye;const Ze=window,me=Ze.trustedTypes,Bt=me?me.createPolicy("lit-html",{createHTML:t=>t}):void 0,kt="$lit$",V=`lit$${(Math.random()+"").slice(9)}$`,go="?"+V,Lo=`<${go}>`,te=document,_e=()=>te.createComment(""),Ee=t=>t===null||typeof t!="object"&&typeof t!="function",wo=Array.isArray,Po=t=>wo(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Ge=`[
|
|
14
|
-
\f\r]`,we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zt=/-->/g,zt=/>/g,K=RegExp(`>|${Ge}(?:([^\\s"'>=/]+)(${Ge}*=${Ge}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Ft=/"/g,vo=/^(?:script|style|textarea|title)$/i,fo=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),c=fo(1),He=fo(2),oe=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),qt=new WeakMap,J=te.createTreeWalker(te,129,null,!1);function bo(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(e):e}const No=(t,e)=>{const o=t.length-1,i=[];let r,n=e===2?"<svg>":"",a=we;for(let s=0;s<o;s++){const d=t[s];let h,x,$=-1,p=0;for(;p<d.length&&(a.lastIndex=p,x=a.exec(d),x!==null);)p=a.lastIndex,a===we?x[1]==="!--"?a=Zt:x[1]!==void 0?a=zt:x[2]!==void 0?(vo.test(x[2])&&(r=RegExp("</"+x[2],"g")),a=K):x[3]!==void 0&&(a=K):a===K?x[0]===">"?(a=r??we,$=-1):x[1]===void 0?$=-2:($=a.lastIndex-x[2].length,h=x[1],a=x[3]===void 0?K:x[3]==='"'?Ft:Vt):a===Ft||a===Vt?a=K:a===Zt||a===zt?a=we:(a=K,r=void 0);const _=a===K&&t[s+1].startsWith("/>")?" ":"";n+=a===we?d+Lo:$>=0?(i.push(h),d.slice(0,$)+kt+d.slice($)+V+_):d+V+($===-2?(i.push(void 0),s):_)}return[bo(t,n+(t[o]||"<?>")+(e===2?"</svg>":"")),i]};class Oe{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,d=this.parts,[h,x]=No(e,o);if(this.el=Oe.createElement(h,i),J.currentNode=this.el.content,o===2){const $=this.el.content,p=$.firstChild;p.remove(),$.append(...p.childNodes)}for(;(r=J.nextNode())!==null&&d.length<s;){if(r.nodeType===1){if(r.hasAttributes()){const $=[];for(const p of r.getAttributeNames())if(p.endsWith(kt)||p.startsWith(V)){const _=x[a++];if($.push(p),_!==void 0){const f=r.getAttribute(_.toLowerCase()+kt).split(V),g=/([.?@])?(.*)/.exec(_);d.push({type:1,index:n,name:g[2],strings:f,ctor:g[1]==="."?Uo:g[1]==="?"?Ho:g[1]==="@"?Bo:qe})}else d.push({type:6,index:n})}for(const p of $)r.removeAttribute(p)}if(vo.test(r.tagName)){const $=r.textContent.split(V),p=$.length-1;if(p>0){r.textContent=me?me.emptyScript:"";for(let _=0;_<p;_++)r.append($[_],_e()),J.nextNode(),d.push({type:2,index:++n});r.append($[p],_e())}}}else if(r.nodeType===8)if(r.data===go)d.push({type:2,index:n});else{let $=-1;for(;($=r.data.indexOf(V,$+1))!==-1;)d.push({type:7,index:n}),$+=V.length-1}n++}}static createElement(e,o){const i=te.createElement("template");return i.innerHTML=e,i}}function pe(t,e,o=t,i){var r,n,a,s;if(e===oe)return e;let d=i!==void 0?(r=o._$Co)===null||r===void 0?void 0:r[i]:o._$Cl;const h=Ee(e)?void 0:e._$litDirective$;return(d==null?void 0:d.constructor)!==h&&((n=d==null?void 0:d._$AO)===null||n===void 0||n.call(d,!1),h===void 0?d=void 0:(d=new h(t),d._$AT(t,o,i)),i!==void 0?((a=(s=o)._$Co)!==null&&a!==void 0?a:s._$Co=[])[i]=d:o._$Cl=d),d!==void 0&&(e=pe(t,d._$AS(t,e.values),d,i)),e}class Do{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var o;const{el:{content:i},parts:r}=this._$AD,n=((o=e==null?void 0:e.creationScope)!==null&&o!==void 0?o:te).importNode(i,!0);J.currentNode=n;let a=J.nextNode(),s=0,d=0,h=r[0];for(;h!==void 0;){if(s===h.index){let x;h.type===2?x=new Te(a,a.nextSibling,this,e):h.type===1?x=new h.ctor(a,h.name,h.strings,this,e):h.type===6&&(x=new Zo(a,this,e)),this._$AV.push(x),h=r[++d]}s!==(h==null?void 0:h.index)&&(a=J.nextNode(),s++)}return J.currentNode=te,n}v(e){let o=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++}}class Te{constructor(e,o,i,r){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=r,this._$Cp=(n=r==null?void 0:r.isConnected)===null||n===void 0||n}get _$AU(){var e,o;return(o=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&o!==void 0?o:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=pe(this,e,o),Ee(e)?e===I||e==null||e===""?(this._$AH!==I&&this._$AR(),this._$AH=I):e!==this._$AH&&e!==oe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Po(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==I&&Ee(this._$AH)?this._$AA.nextSibling.data=e:this.$(te.createTextNode(e)),this._$AH=e}g(e){var o;const{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Oe.createElement(bo(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===n)this._$AH.v(i);else{const a=new Do(n,this),s=a.u(this.options);a.v(i),this.$(s),this._$AH=a}}_$AC(e){let o=qt.get(e.strings);return o===void 0&&qt.set(e.strings,o=new Oe(e)),o}T(e){wo(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new Te(this.k(_e()),this.k(_e()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(e=this._$AA.nextSibling,o){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,o);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var o;this._$AM===void 0&&(this._$Cp=e,(o=this._$AP)===null||o===void 0||o.call(this,e))}}class qe{constructor(e,o,i,r,n){this.type=1,this._$AH=I,this._$AN=void 0,this.element=e,this.name=o,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,o=this,i,r){const n=this.strings;let a=!1;if(n===void 0)e=pe(this,e,o,0),a=!Ee(e)||e!==this._$AH&&e!==oe,a&&(this._$AH=e);else{const s=e;let d,h;for(e=n[0],d=0;d<n.length-1;d++)h=pe(this,s[i+d],o,d),h===oe&&(h=this._$AH[d]),a||(a=!Ee(h)||h!==this._$AH[d]),h===I?e=I:e!==I&&(e+=(h??"")+n[d+1]),this._$AH[d]=h}a&&!r&&this.j(e)}j(e){e===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Uo extends qe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===I?void 0:e}}const jo=me?me.emptyScript:"";let Ho=class extends qe{constructor(){super(...arguments),this.type=4}j(e){e&&e!==I?this.element.setAttribute(this.name,jo):this.element.removeAttribute(this.name)}};class Bo extends qe{constructor(e,o,i,r,n){super(e,o,i,r,n),this.type=5}_$AI(e,o=this){var i;if((e=(i=pe(this,e,o,0))!==null&&i!==void 0?i:I)===oe)return;const r=this._$AH,n=e===I&&r!==I||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==I&&(r===I||n);n&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var o,i;typeof this._$AH=="function"?this._$AH.call((i=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}}let Zo=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){pe(this,e)}};const Qt=Ze.litHtmlPolyfillSupport;Qt==null||Qt(Oe,Te),((Ye=Ze.litHtmlVersions)!==null&&Ye!==void 0?Ye:Ze.litHtmlVersions=[]).push("2.8.0");const zo=(t,e,o)=>{var i,r;const n=(i=o==null?void 0:o.renderBefore)!==null&&i!==void 0?i:e;let a=n._$litPart$;if(a===void 0){const s=(r=o==null?void 0:o.renderBefore)!==null&&r!==void 0?r:null;n._$litPart$=a=new Te(e.insertBefore(_e(),s),s,void 0,o??{})}return a._$AI(t),a};/**
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright 2017 Google LLC
|
|
18
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var Xe,Je;class w extends se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,o;const i=super.createRenderRoot();return(e=(o=this.renderOptions).renderBefore)!==null&&e!==void 0||(o.renderBefore=i.firstChild),i}update(e){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=zo(o,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return oe}}w.finalized=!0,w._$litElement$=!0,(Xe=globalThis.litElementHydrateSupport)===null||Xe===void 0||Xe.call(globalThis,{LitElement:w});const Kt=globalThis.litElementPolyfillSupport;Kt==null||Kt({LitElement:w});((Je=globalThis.litElementVersions)!==null&&Je!==void 0?Je:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const y=t=>e=>typeof e=="function"?((o,i)=>(customElements.define(o,i),i))(t,e):((o,i)=>{const{kind:r,elements:n}=i;return{kind:r,elements:n,finisher(a){customElements.define(o,a)}}})(t,e);/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const Vo=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(o){o.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(o){o.createProperty(e.key,t)}},Fo=(t,e,o)=>{e.constructor.createProperty(o,t)};function u(t){return(e,o)=>o!==void 0?Fo(t,e,o):Vo(t,e)}/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright 2017 Google LLC
|
|
30
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function W(t){return u({...t,state:!0})}/**
|
|
32
|
-
* @license
|
|
33
|
-
* Copyright 2021 Google LLC
|
|
34
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/var et;((et=window.HTMLSlotElement)===null||et===void 0?void 0:et.prototype.assignedElements)!=null;/**
|
|
36
|
-
* @license
|
|
37
|
-
* Copyright 2017 Google LLC
|
|
38
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/const qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qo=t=>(...e)=>({_$litDirective$:t,values:e});class Ko{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,i){this._$Ct=e,this._$AM=o,this._$Ci=i}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}}/**
|
|
40
|
-
* @license
|
|
41
|
-
* Copyright 2018 Google LLC
|
|
42
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const j=Qo(class extends Ko{constructor(t){var e;if(super(t),t.type!==qo.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var o,i;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!(!((o=this.nt)===null||o===void 0)&&o.has(n))&&this.it.add(n);return this.render(e)}const r=t.element.classList;this.it.forEach(n=>{n in e||(r.remove(n),this.it.delete(n))});for(const n in e){const a=!!e[n];a===this.it.has(n)||!((i=this.nt)===null||i===void 0)&&i.has(n)||(a?(r.add(n),this.it.add(n)):(r.remove(n),this.it.delete(n)))}return oe}});function Yo(t,e){t.indexOf(e)===-1&&t.push(e)}const yo=(t,e,o)=>Math.min(Math.max(o,t),e),P={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ze=t=>typeof t=="number",de=t=>Array.isArray(t)&&!ze(t[0]),Go=(t,e,o)=>{const i=e-t;return((o-t)%i+i)%i+t};function Xo(t,e){return de(t)?t[Go(0,t.length,e)]:t}const xo=(t,e,o)=>-o*t+o*e+t,$o=()=>{},F=t=>t,Lt=(t,e,o)=>e-t===0?1:(o-t)/(e-t);function Co(t,e){const o=t[t.length-1];for(let i=1;i<=e;i++){const r=Lt(0,e,i);t.push(xo(o,1,r))}}function Jo(t){const e=[0];return Co(e,t-1),e}function er(t,e=Jo(t.length),o=F){const i=t.length,r=i-e.length;return r>0&&Co(e,r),n=>{let a=0;for(;a<i-2&&!(n<e[a+1]);a++);let s=yo(0,1,Lt(e[a],e[a+1],n));return s=Xo(o,a)(s),xo(t[a],t[a+1],s)}}const Ao=t=>Array.isArray(t)&&ze(t[0]),Tt=t=>typeof t=="object"&&!!t.createAnimation,ue=t=>typeof t=="function",tr=t=>typeof t=="string",Ae={ms:t=>t*1e3,s:t=>t/1e3},_o=(t,e,o)=>(((1-3*o+3*e)*t+(3*o-6*e))*t+3*e)*t,or=1e-7,rr=12;function ir(t,e,o,i,r){let n,a,s=0;do a=e+(o-e)/2,n=_o(a,i,r)-t,n>0?o=a:e=a;while(Math.abs(n)>or&&++s<rr);return a}function Ce(t,e,o,i){if(t===e&&o===i)return F;const r=n=>ir(n,0,1,t,o);return n=>n===0||n===1?n:_o(r(n),e,i)}const nr=(t,e="end")=>o=>{o=e==="end"?Math.min(o,.999):Math.max(o,.001);const i=o*t,r=e==="end"?Math.floor(i):Math.ceil(i);return yo(0,1,r/t)},ar={ease:Ce(.25,.1,.25,1),"ease-in":Ce(.42,0,1,1),"ease-in-out":Ce(.42,0,.58,1),"ease-out":Ce(0,0,.58,1)},lr=/\((.*?)\)/;function Yt(t){if(ue(t))return t;if(Ao(t))return Ce(...t);const e=ar[t];if(e)return e;if(t.startsWith("steps")){const o=lr.exec(t);if(o){const i=o[1].split(",");return nr(parseFloat(i[0]),i[1].trim())}}return F}class Eo{constructor(e,o=[0,1],{easing:i,duration:r=P.duration,delay:n=P.delay,endDelay:a=P.endDelay,repeat:s=P.repeat,offset:d,direction:h="normal",autoplay:x=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=F,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((p,_)=>{this.resolve=p,this.reject=_}),i=i||P.easing,Tt(i)){const p=i.createAnimation(o);i=p.easing,o=p.keyframes||o,r=p.duration||r}this.repeat=s,this.easing=de(i)?F:Yt(i),this.updateDuration(r);const $=er(o,d,de(i)?i.map(Yt):F);this.tick=p=>{var _;n=n;let f=0;this.pauseTime!==void 0?f=this.pauseTime:f=(p-this.startTime)*this.rate,this.t=f,f/=1e3,f=Math.max(f-n,0),this.playState==="finished"&&this.pauseTime===void 0&&(f=this.totalDuration);const g=f/this.duration;let k=Math.floor(g),b=g%1;!b&&g>=1&&(b=1),b===1&&k--;const M=k%2;(h==="reverse"||h==="alternate"&&M||h==="alternate-reverse"&&!M)&&(b=1-b);const S=f>=this.totalDuration?1:Math.min(b,1),L=$(this.easing(S));e(L),this.pauseTime===void 0&&(this.playState==="finished"||f>=this.totalDuration+a)?(this.playState="finished",(_=this.resolve)===null||_===void 0||_.call(this,L)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},x&&this.play()}play(){const e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}var It=function(){};O.process$1.env.NODE_ENV!=="production"&&(It=function(t,e){if(!t)throw new Error(e)});class sr{setAnimation(e){this.animation=e,e==null||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const tt=new WeakMap;function Oo(t){return tt.has(t)||tt.set(t,{transforms:[],values:new Map}),tt.get(t)}function cr(t,e){return t.has(e)||t.set(e,new sr),t.get(e)}const dr=["","X","Y","Z"],hr=["translate","scale","rotate","skew"],Ve={x:"translateX",y:"translateY",z:"translateZ"},Gt={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},mr={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Gt,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:F},skew:Gt},ke=new Map,Pt=t=>`--motion-${t}`,Fe=["x","y","z"];hr.forEach(t=>{dr.forEach(e=>{Fe.push(t+e),ke.set(Pt(t+e),mr[t])})});const pr=(t,e)=>Fe.indexOf(t)-Fe.indexOf(e),ur=new Set(Fe),ko=t=>ur.has(t),gr=(t,e)=>{Ve[e]&&(e=Ve[e]);const{transforms:o}=Oo(t);Yo(o,e),t.style.transform=wr(o)},wr=t=>t.sort(pr).reduce(vr,"").trim(),vr=(t,e)=>`${t} ${e}(var(${Pt(e)}))`,Mt=t=>t.startsWith("--"),Xt=new Set;function fr(t){if(!Xt.has(t)){Xt.add(t);try{const{syntax:e,initialValue:o}=ke.has(t)?ke.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:o})}catch{}}}const ot=(t,e)=>document.createElement("div").animate(t,e),Jt={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ot({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ot({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{ot({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},rt={},ce={};for(const t in Jt)ce[t]=()=>(rt[t]===void 0&&(rt[t]=Jt[t]()),rt[t]);const br=.015,yr=(t,e)=>{let o="";const i=Math.round(e/br);for(let r=0;r<i;r++)o+=t(Lt(0,i-1,r))+", ";return o.substring(0,o.length-2)},eo=(t,e)=>ue(t)?ce.linearEasing()?`linear(${yr(t,e)})`:P.easing:Ao(t)?xr(t):t,xr=([t,e,o,i])=>`cubic-bezier(${t}, ${e}, ${o}, ${i})`;function $r(t,e){for(let o=0;o<t.length;o++)t[o]===null&&(t[o]=o?t[o-1]:e());return t}const Cr=t=>Array.isArray(t)?t:[t];function St(t){return Ve[t]&&(t=Ve[t]),ko(t)?Pt(t):t}const Se={get:(t,e)=>{e=St(e);let o=Mt(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!o&&o!==0){const i=ke.get(e);i&&(o=i.initialValue)}return o},set:(t,e,o)=>{e=St(e),Mt(e)?t.style.setProperty(e,o):t.style[e]=o}};function To(t,e=!0){if(!(!t||t.playState==="finished"))try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch{}}function Ar(t,e){var o;let i=(e==null?void 0:e.toDefaultUnit)||F;const r=t[t.length-1];if(tr(r)){const n=((o=r.match(/(-?[\d.]+)([a-z%]*)/))===null||o===void 0?void 0:o[2])||"";n&&(i=a=>a+n)}return i}function _r(){return window.__MOTION_DEV_TOOLS_RECORD}function Er(t,e,o,i={},r){const n=_r(),a=i.record!==!1&&n;let s,{duration:d=P.duration,delay:h=P.delay,endDelay:x=P.endDelay,repeat:$=P.repeat,easing:p=P.easing,persist:_=!1,direction:f,offset:g,allowWebkitAcceleration:k=!1,autoplay:b=!0}=i;const M=Oo(t),S=ko(e);let L=ce.waapi();S&&gr(t,e);const N=St(e),Ie=cr(M.values,N),H=ke.get(N);return To(Ie.animation,!(Tt(p)&&Ie.generator)&&i.record!==!1),()=>{const Me=()=>{var E,ge;return(ge=(E=Se.get(t,N))!==null&&E!==void 0?E:H==null?void 0:H.initialValue)!==null&&ge!==void 0?ge:0};let T=$r(Cr(o),Me);const Nt=Ar(T,H);if(Tt(p)){const E=p.createAnimation(T,e!=="opacity",Me,N,Ie);p=E.easing,T=E.keyframes||T,d=E.duration||d}if(Mt(N)&&(ce.cssRegisterProperty()?fr(N):L=!1),S&&!ce.linearEasing()&&(ue(p)||de(p)&&p.some(ue))&&(L=!1),L){H&&(T=T.map(Q=>ze(Q)?H.toDefaultUnit(Q):Q)),T.length===1&&(!ce.partialKeyframes()||a)&&T.unshift(Me());const E={delay:Ae.ms(h),duration:Ae.ms(d),endDelay:Ae.ms(x),easing:de(p)?void 0:eo(p,d),direction:f,iterations:$+1,fill:"both"};s=t.animate({[N]:T,offset:g,easing:de(p)?p.map(Q=>eo(Q,d)):void 0},E),s.finished||(s.finished=new Promise((Q,Mo)=>{s.onfinish=Q,s.oncancel=Mo}));const ge=T[T.length-1];s.finished.then(()=>{_||(Se.set(t,N,ge),s.cancel())}).catch($o),k||(s.playbackRate=1.000001)}else if(r&&S)T=T.map(E=>typeof E=="string"?parseFloat(E):E),T.length===1&&T.unshift(parseFloat(Me())),s=new r(E=>{Se.set(t,N,Nt?Nt(E):E)},T,Object.assign(Object.assign({},i),{duration:d,easing:p}));else{const E=T[T.length-1];Se.set(t,N,H&&ze(E)?H.toDefaultUnit(E):E)}return a&&n(t,e,T,{duration:d,delay:h,easing:p,repeat:$,offset:g},"motion-one"),Ie.setAnimation(s),s&&!b&&s.pause(),s}}const Or=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function kr(t,e){return typeof t=="string"?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}const Tr=t=>t(),Io=(t,e,o=P.duration)=>new Proxy({animations:t.map(Tr).filter(Boolean),duration:o,options:e},Mr),Ir=t=>t.animations[0],Mr={get:(t,e)=>{const o=Ir(t);switch(e){case"duration":return t.duration;case"currentTime":return Ae.s((o==null?void 0:o[e])||0);case"playbackRate":case"playState":return o==null?void 0:o[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Sr)).catch($o)),t.finished;case"stop":return()=>{t.animations.forEach(i=>To(i))};case"forEachNative":return i=>{t.animations.forEach(r=>i(r,t))};default:return typeof(o==null?void 0:o[e])>"u"?void 0:()=>t.animations.forEach(i=>i[e]())}},set:(t,e,o)=>{switch(e){case"currentTime":o=Ae.ms(o);case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=o;return!0}return!1}},Sr=t=>t.finished;function Rr(t,e,o){return ue(t)?t(e,o):t}function Wr(t){return function(o,i,r={}){o=kr(o);const n=o.length;It(!!n,"No valid element provided."),It(!!i,"No keyframes defined.");const a=[];for(let s=0;s<n;s++){const d=o[s];for(const h in i){const x=Or(r,h);x.delay=Rr(x.delay,s,n);const $=Er(d,h,i[h],x,t);a.push($)}}return Io(a,r,r.duration)}}const Lr=Wr(Eo);function Pr(t,e={}){return Io([()=>{const o=new Eo(t,[0,1],e);return o.finished.catch(()=>{}),o}],e,e.duration)}function ee(t,e,o){return(ue(t)?Pr:Lr)(t,e,o)}/**
|
|
44
|
-
* @license
|
|
45
|
-
* Copyright 2018 Google LLC
|
|
46
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const R=t=>t??I;var Nr=Object.defineProperty,to=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,oo=(t,e,o)=>e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,it=(t,e)=>{for(var o in e||(e={}))Dr.call(e,o)&&oo(t,o,e[o]);if(to)for(var o of to(e))Ur.call(e,o)&&oo(t,o,e[o]);return t};function jr(){var t;const e=(t=l.ne.state.themeMode)!=null?t:"dark",o={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--wcm-color-fg-1":o.foreground[1],"--wcm-color-fg-2":o.foreground[2],"--wcm-color-fg-3":o.foreground[3],"--wcm-color-bg-1":o.background[1],"--wcm-color-bg-2":o.background[2],"--wcm-color-bg-3":o.background[3],"--wcm-color-overlay":o.overlay}}function ro(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}const v={getPreset(t){return ro()[t]},setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=l.ne.state;if(t){const o=it(it(it({},jr()),ro()),e);Object.entries(o).forEach(([i,r])=>t.style.setProperty(i,r))}},globalCss:C`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Hr=C`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Br=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,re=(t,e,o,i)=>{for(var r=i>1?void 0:i?Zr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&Br(e,o,r),r};let B=class extends w{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let e="inverse";return this.variant==="ghost"&&(e="secondary"),this.variant==="outline"&&(e="accent"),c`<button class="${j(t)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${e}"><slot></slot></wcm-text>${this.iconRight}</button>`}};B.styles=[v.globalCss,Hr],re([u({type:Boolean})],B.prototype,"disabled",2),re([u()],B.prototype,"iconLeft",2),re([u()],B.prototype,"iconRight",2),re([u()],B.prototype,"onClick",2),re([u()],B.prototype,"variant",2),B=re([y("wcm-button")],B);const zr=C`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var Vr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,nt=(t,e,o,i)=>{for(var r=i>1?void 0:i?Fr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&Vr(e,o,r),r};let ve=class extends w{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":this.variant==="secondary"};return c`<button ?disabled="${this.disabled}" class="${j(t)}"><slot></slot></button>`}};ve.styles=[v.globalCss,zr],nt([u({type:Boolean})],ve.prototype,"disabled",2),nt([u()],ve.prototype,"variant",2),ve=nt([y("wcm-button-big")],ve);const qr=C`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var Qr=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let at=class extends w{render(){return c`<div><slot></slot></div>`}};at.styles=[v.globalCss,qr],at=Qr([y("wcm-info-footer")],at);const A={CROSS_ICON:O.Oe`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:O.Oe`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:O.Oe`<svg width="28" height="20" viewBox="0 0 28 20"><g clip-path="url(#a)"><path d="M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z" fill="#000000"/></g><defs><clipPath id="a"><path fill="#ffffff" d="M0 0h28v20H0z"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:O.Oe`<svg width="96" height="96" fill="none"><path fill="#fff" d="M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z"/><path stroke="#000" d="M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z"/></svg>`,BACK_ICON:O.Oe`<svg width="10" height="18" viewBox="0 0 10 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z" fill="#fff"/></svg>`,COPY_ICON:O.Oe`<svg width="24" height="24" fill="none"><path fill="#fff" fill-rule="evenodd" d="M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z" clip-rule="evenodd"/></svg>`,RETRY_ICON:O.Oe`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:O.Oe`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:O.Oe`<svg width="16" height="16" viewBox="0 0 16 16"><path d="M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z" fill="#fff"/></svg>`,ARROW_DOWN_ICON:O.Oe`<svg width="14" height="14" viewBox="0 0 14 14"><path d="M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z" fill="#fff"/></svg>`,ARROW_UP_RIGHT_ICON:O.Oe`<svg width="15" height="14" fill="none"><path d="M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,ARROW_RIGHT_ICON:O.Oe`<svg width="6" height="14" viewBox="0 0 6 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z" fill="#fff"/></svg>`,QRCODE_ICON:O.Oe`<svg width="25" height="24" viewBox="0 0 25 24"><path d="M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z" fill="#fff"/><path d="M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z" fill="#fff"/></svg>`,SCAN_ICON:O.Oe`<svg width="16" height="16" fill="none"><path fill="#fff" d="M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z"/></svg>`,CHECKMARK_ICON:O.Oe`<svg width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z" fill="#fff"/></svg>`,SEARCH_ICON:O.Oe`<svg width="20" height="21"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" fill="#949E9E"/></svg>`,WALLET_PLACEHOLDER:O.Oe`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,GLOBE_ICON:O.Oe`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`},Kr=C`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var Yr=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let lt=class extends w{render(){return c`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${A.WALLET_CONNECT_LOGO} <button @click="${l.se.close}">${A.CROSS_ICON}</button></div>`}};lt.styles=[v.globalCss,Kr],lt=Yr([y("wcm-modal-backcard")],lt);const Gr=C`main{padding:20px;padding-top:0;width:100%}`;var Xr=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let st=class extends w{render(){return c`<main><slot></slot></main>`}};st.styles=[v.globalCss,Gr],st=Xr([y("wcm-modal-content")],st);const Jr=C`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var ei=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let ct=class extends w{render(){return c`<footer><slot></slot></footer>`}};ct.styles=[v.globalCss,Jr],ct=ei([y("wcm-modal-footer")],ct);const ti=C`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var oi=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,fe=(t,e,o,i)=>{for(var r=i>1?void 0:i?ri(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&oi(e,o,r),r};let Y=class extends w{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return c`<button class="wcm-back-btn" @click="${l.T.goBack}">${A.BACK_ICON}</button>`}actionBtnTemplate(){return c`<button class="wcm-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const t={"wcm-border":this.border},e=l.T.state.history.length>1,o=this.title?c`<wcm-text variant="big-bold">${this.title}</wcm-text>`:c`<slot></slot>`;return c`<header class="${j(t)}">${e?this.backBtnTemplate():null} ${o} ${this.onAction?this.actionBtnTemplate():null}</header>`}};Y.styles=[v.globalCss,ti],fe([u()],Y.prototype,"title",2),fe([u()],Y.prototype,"onAction",2),fe([u()],Y.prototype,"actionIcon",2),fe([u({type:Boolean})],Y.prototype,"border",2),Y=fe([y("wcm-modal-header")],Y);const m={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const o=t.renderRoot.querySelector(e);if(!o)throw new Error(`${e} not found`);return o},getWalletIcon({id:t,image_id:e}){const{walletImages:o}=l.y.state;return o!=null&&o[t]?o[t]:e?l.te.getWalletImageUrl(e):""},getWalletName(t,e=!1){return e&&t.length>8?`${t.substring(0,8)}..`:t},isMobileAnimation(){return window.innerWidth<=m.MOBILE_BREAKPOINT},async preloadImage(t){const e=new Promise((o,i)=>{const r=new Image;r.onload=o,r.onerror=i,r.crossOrigin="anonymous",r.src=t});return Promise.race([e,l.a.wait(3e3)])},getErrorMessage(t){return t instanceof Error?t.message:"Unknown Error"},debounce(t,e=500){let o;return(...i)=>{function r(){t(...i)}o&&clearTimeout(o),o=setTimeout(r,e)}},handleMobileLinking(t){const{walletConnectUri:e}=l.p.state,{mobile:o,name:i}=t,r=o==null?void 0:o.native,n=o==null?void 0:o.universal;m.setRecentWallet(t);function a(s){let d="";r?d=l.a.formatUniversalUrl(r,s,i):n&&(d=l.a.formatNativeUrl(n,s,i)),l.a.openHref(d,"_self")}e&&a(e)},handleAndroidLinking(){const{walletConnectUri:t}=l.p.state;t&&(l.a.setWalletConnectAndroidDeepLink(t),l.a.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=l.p.state;if(t)try{await navigator.clipboard.writeText(t),l.oe.openToast("Link copied","success")}catch{l.oe.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=l.y.state,e=Object.values(t??{});return Object.values(e)},truncate(t,e=8){return t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`},setRecentWallet(t){try{localStorage.setItem(m.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(m.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(t,e){return t.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){l.a.openHref(m.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=l.a.getWalletRouterData(),o=!!(t!=null&&t.native),i=!!(t!=null&&t.universal),r=!!(e!=null&&e.native)||!!(e!=null&&e.universal);return{isDesktop:o,isMobile:r,isWeb:i}},goToConnectingView(t){l.T.setData({Wallet:t});const e=l.a.isMobile(),{isDesktop:o,isWeb:i,isMobile:r}=m.getCachedRouterWalletPlatforms();e?r?l.T.push("MobileConnecting"):i?l.T.push("WebConnecting"):l.T.push("InstallWallet"):o?l.T.push("DesktopConnecting"):i?l.T.push("WebConnecting"):r?l.T.push("MobileQrcodeConnecting"):l.T.push("InstallWallet")}},ii=C`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var ni=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,dt=(t,e,o,i)=>{for(var r=i>1?void 0:i?ai(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&ni(e,o,r),r};let be=class extends w{constructor(){super(),this.view=l.T.state.view,this.prevView=l.T.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=l.T.subscribe(t=>{this.view!==t.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([t])=>{const e=`${t.contentRect.height}px`;this.oldHeight!=="0px"&&ee(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;(t=this.unsubscribe)==null||t.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return m.getShadowRootElement(this,".wcm-router")}get contentEl(){return m.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return c`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case"DesktopConnecting":return c`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case"MobileConnecting":return c`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case"WebConnecting":return c`<wcm-web-connecting-view></wcm-web-connecting-view>`;case"MobileQrcodeConnecting":return c`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case"WalletExplorer":return c`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case"Qrcode":return c`<wcm-qrcode-view></wcm-qrcode-view>`;case"InstallWallet":return c`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return c`<div>Not Found</div>`}}async onChangeRoute(){await ee(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=l.T.state.view,ee(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return c`<div class="wcm-router"><div class="wcm-content">${this.viewTemplate()}</div></div>`}};be.styles=[v.globalCss,ii],dt([W()],be.prototype,"view",2),dt([W()],be.prototype,"prevView",2),be=dt([y("wcm-modal-router")],be);const li=C`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var si=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,io=(t,e,o,i)=>{for(var r=i>1?void 0:i?ci(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&si(e,o,r),r};let Re=class extends w{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=l.oe.subscribe(t=>{t.open?(this.open=!0,this.timeout=setTimeout(()=>l.oe.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var t;(t=this.unsubscribe)==null||t.call(this),clearTimeout(this.timeout),l.oe.closeToast()}render(){const{message:t,variant:e}=l.oe.state,o={"wcm-success":e==="success","wcm-error":e==="error"};return this.open?c`<div class="${j(o)}">${e==="success"?A.CHECKMARK_ICON:null} ${e==="error"?A.CROSS_ICON:null}<wcm-text variant="small-regular">${t}</wcm-text></div>`:null}};Re.styles=[v.globalCss,li],io([W()],Re.prototype,"open",2),Re=io([y("wcm-modal-toast")],Re);const di=.1,no=2.5,U=7;function ht(t,e,o){return t===e?!1:(t-e<0?e-t:t-e)<=o+di}function hi(t,e){const o=Array.prototype.slice.call(O.browser.create(t,{errorCorrectionLevel:e}).modules.data,0),i=Math.sqrt(o.length);return o.reduce((r,n,a)=>(a%i===0?r.push([n]):r[r.length-1].push(n))&&r,[])}const mi={generate(t,e,o){const i="#141414",r="#ffffff",n=[],a=hi(t,"Q"),s=e/a.length,d=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];d.forEach(({x:f,y:g})=>{const k=(a.length-U)*s*f,b=(a.length-U)*s*g,M=.45;for(let S=0;S<d.length;S+=1){const L=s*(U-S*2);n.push(He`<rect fill="${S%2===0?i:r}" height="${L}" rx="${L*M}" ry="${L*M}" width="${L}" x="${k+s*S}" y="${b+s*S}">`)}});const h=Math.floor((o+25)/s),x=a.length/2-h/2,$=a.length/2+h/2-1,p=[];a.forEach((f,g)=>{f.forEach((k,b)=>{if(a[g][b]&&!(g<U&&b<U||g>a.length-(U+1)&&b<U||g<U&&b>a.length-(U+1))&&!(g>x&&g<$&&b>x&&b<$)){const M=g*s+s/2,S=b*s+s/2;p.push([M,S])}})});const _={};return p.forEach(([f,g])=>{_[f]?_[f].push(g):_[f]=[g]}),Object.entries(_).map(([f,g])=>{const k=g.filter(b=>g.every(M=>!ht(b,M,s)));return[Number(f),k]}).forEach(([f,g])=>{g.forEach(k=>{n.push(He`<circle cx="${f}" cy="${k}" fill="${i}" r="${s/no}">`)})}),Object.entries(_).filter(([f,g])=>g.length>1).map(([f,g])=>{const k=g.filter(b=>g.some(M=>ht(b,M,s)));return[Number(f),k]}).map(([f,g])=>{g.sort((b,M)=>b<M?-1:1);const k=[];for(const b of g){const M=k.find(S=>S.some(L=>ht(b,L,s)));M?M.push(b):k.push([b])}return[f,k.map(b=>[b[0],b[b.length-1]])]}).forEach(([f,g])=>{g.forEach(([k,b])=>{n.push(He`<line x1="${f}" x2="${f}" y1="${k}" y2="${b}" stroke="${i}" stroke-width="${s/(no/2)}" stroke-linecap="round">`)})}),n}},pi=C`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var ui=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,ie=(t,e,o,i)=>{for(var r=i>1?void 0:i?gi(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&ui(e,o,r),r};exports.WcmQrCode=class extends w{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e=l.ne.state.themeMode==="light"?this.size:this.size-36;return He`<svg height="${e}" width="${e}">${mi.generate(this.uri,e,e/4)}</svg>`}render(){const e={"wcm-dark":l.ne.state.themeMode==="dark"};return c`<div style="${`width: ${this.size}px`}" class="${j(e)}">${this.walletId||this.imageUrl?c`<wcm-wallet-image walletId="${R(this.walletId)}" imageId="${R(this.imageId)}" imageUrl="${R(this.imageUrl)}"></wcm-wallet-image>`:A.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};exports.WcmQrCode.styles=[v.globalCss,pi],ie([u()],exports.WcmQrCode.prototype,"uri",2),ie([u({type:Number})],exports.WcmQrCode.prototype,"size",2),ie([u()],exports.WcmQrCode.prototype,"imageId",2),ie([u()],exports.WcmQrCode.prototype,"walletId",2),ie([u()],exports.WcmQrCode.prototype,"imageUrl",2),exports.WcmQrCode=ie([y("wcm-qrcode")],exports.WcmQrCode);const wi=C`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var vi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,ao=(t,e,o,i)=>{for(var r=i>1?void 0:i?fi(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&vi(e,o,r),r};let We=class extends w{constructor(){super(...arguments),this.onChange=()=>null}render(){return c`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${A.SEARCH_ICON}`}};We.styles=[v.globalCss,wi],ao([u()],We.prototype,"onChange",2),We=ao([y("wcm-search-input")],We);const bi=C`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var yi=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let mt=class extends w{render(){return c`<svg viewBox="0 0 50 50" width="24" height="24"><circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`}};mt.styles=[v.globalCss,bi],mt=yi([y("wcm-spinner")],mt);const xi=C`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var $i=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,pt=(t,e,o,i)=>{for(var r=i>1?void 0:i?Ci(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&$i(e,o,r),r};let ye=class extends w{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return c`<span><slot class="${j(t)}"></slot></span>`}};ye.styles=[v.globalCss,xi],pt([u()],ye.prototype,"variant",2),pt([u()],ye.prototype,"color",2),ye=pt([y("wcm-text")],ye);const Ai=C`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var _i=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,Z=(t,e,o,i)=>{for(var r=i>1?void 0:i?Ei(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&_i(e,o,r),r};let D=class extends w{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?c`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>`:this.installed?c`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>`:null}handleClick(){l.R.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return c`<button @click="${this.handleClick.bind(this)}"><div><wcm-wallet-image walletId="${this.walletId}" imageId="${R(this.imageId)}"></wcm-wallet-image><wcm-text variant="xsmall-regular">${(t=this.label)!=null?t:m.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};D.styles=[v.globalCss,Ai],Z([u()],D.prototype,"onClick",2),Z([u()],D.prototype,"name",2),Z([u()],D.prototype,"walletId",2),Z([u()],D.prototype,"label",2),Z([u()],D.prototype,"imageId",2),Z([u({type:Boolean})],D.prototype,"installed",2),Z([u({type:Boolean})],D.prototype,"recent",2),D=Z([y("wcm-wallet-button")],D);const Oi=C`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var ki=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Le=(t,e,o,i)=>{for(var r=i>1?void 0:i?Ti(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&ki(e,o,r),r};let ne=class extends w{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=(t=this.imageUrl)!=null&&t.length?this.imageUrl:m.getWalletIcon({id:this.walletId,image_id:this.imageId});return c`${e.length?c`<div><img crossorigin="anonymous" src="${e}" alt="${this.id}"></div>`:A.WALLET_PLACEHOLDER}`}};ne.styles=[v.globalCss,Oi],Le([u()],ne.prototype,"walletId",2),Le([u()],ne.prototype,"imageId",2),Le([u()],ne.prototype,"imageUrl",2),ne=Le([y("wcm-wallet-image")],ne);var Ii=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,lo=(t,e,o,i)=>{for(var r=i>1?void 0:i?Mi(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&Ii(e,o,r),r};let ut=class extends w{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{t!=null&&t.length&&await Promise.all(t.map(async e=>m.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(l.y.state.enableExplorer){await l.te.getRecomendedWallets(),l.p.setIsDataLoaded(!0);const{recomendedWallets:t}=l.te.state,e=t.map(o=>m.getWalletIcon(o));await this.loadImages(e)}else l.p.setIsDataLoaded(!0)}async preloadCustomImages(){const t=m.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),l.oe.openToast("Failed preloading","error")}}};lo([W()],ut.prototype,"preload",2),ut=lo([y("wcm-explorer-context")],ut);var Si=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let so=class extends w{constructor(){super(),this.unsubscribeTheme=void 0,v.setTheme(),this.unsubscribeTheme=l.ne.subscribe(v.setTheme)}disconnectedCallback(){var t;(t=this.unsubscribeTheme)==null||t.call(this)}};so=Si([y("wcm-theme-context")],so);const Ri=C`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Wi=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let gt=class extends w{onGoToQrcode(){l.T.push("Qrcode")}render(){const{recomendedWallets:t}=l.te.state,e=[...t,...t],o=l.a.RECOMMENDED_WALLET_AMOUNT*2;return c`<wcm-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${A.QRCODE_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-title">${A.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">${[...Array(o)].map((i,r)=>{const n=e[r%e.length];return n?c`<wcm-wallet-image walletId="${n.id}" imageId="${n.image_id}"></wcm-wallet-image>`:A.WALLET_PLACEHOLDER})}</div><wcm-button-big @click="${m.handleAndroidLinking}"><wcm-text variant="medium-regular" color="inverse">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};gt.styles=[v.globalCss,Ri],gt=Wi([y("wcm-android-wallet-selection")],gt);const Li=C`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Pi=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,ae=(t,e,o,i)=>{for(var r=i>1?void 0:i?Ni(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&Pi(e,o,r),r};let z=class extends w{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const o=(e=(t=l.ne.state.themeVariables)==null?void 0:t["--wcm-wallet-icon-large-border-radius"])!=null?e:v.getPreset("--wcm-wallet-icon-large-border-radius");let i=0;o.includes("%")?i=88/100*parseInt(o,10):i=parseInt(o,10),i*=1.17;const r=317-i*1.57,n=425-i*1.8;return c`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="${i}"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ${r}" stroke-dashoffset="${n}"></use></svg>`}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return c`<div class="${j(t)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${R(this.walletId)}" imageId="${R(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</wcm-text>`}};z.styles=[v.globalCss,Li],ae([u()],z.prototype,"walletId",2),ae([u()],z.prototype,"imageId",2),ae([u({type:Boolean})],z.prototype,"isError",2),ae([u({type:Boolean})],z.prototype,"isStale",2),ae([u()],z.prototype,"label",2),z=ae([y("wcm-connector-waiting")],z);const he={manualWallets(){var t,e;const{mobileWallets:o,desktopWallets:i}=l.y.state,r=(t=he.recentWallet())==null?void 0:t.id,n=l.a.isMobile()?o:i,a=n==null?void 0:n.filter(s=>r!==s.id);return(e=l.a.isMobile()?a==null?void 0:a.map(({id:s,name:d,links:h})=>({id:s,name:d,mobile:h,links:h})):a==null?void 0:a.map(({id:s,name:d,links:h})=>({id:s,name:d,desktop:h,links:h})))!=null?e:[]},recentWallet(){return m.getRecentWallet()},recomendedWallets(t=!1){var e;const o=t||(e=he.recentWallet())==null?void 0:e.id,{recomendedWallets:i}=l.te.state;return i.filter(r=>o!==r.id)}},q={onConnecting(t){m.goToConnectingView(t)},manualWalletsTemplate(){return he.manualWallets().map(t=>c`<wcm-wallet-button walletId="${t.id}" name="${t.name}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`)},recomendedWalletsTemplate(t=!1){return he.recomendedWallets(t).map(e=>c`<wcm-wallet-button name="${e.name}" walletId="${e.id}" imageId="${e.image_id}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`)},recentWalletTemplate(){const t=he.recentWallet();if(t)return c`<wcm-wallet-button name="${t.name}" walletId="${t.id}" imageId="${R(t.image_id)}" .recent="${!0}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`}},Di=C`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var Ui=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let wt=class extends w{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=l.y.state,o=t!=="ALL"&&e,i=q.manualWalletsTemplate(),r=q.recomendedWalletsTemplate();let n=[q.recentWalletTemplate(),...i,...r];n=n.filter(Boolean);const a=n.length>4||o;let s=[];a?s=n.slice(0,3):s=n;const d=!!s.length;return c`<wcm-modal-header .border="${!0}" title="Connect your wallet" .onAction="${m.handleUriCopy}" .actionIcon="${A.COPY_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">${A.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">${A.SCAN_ICON}<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${d?c`<wcm-modal-footer><div class="wcm-desktop-title">${A.DESKTOP_ICON}<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">${s} ${a?c`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};wt.styles=[v.globalCss,Di],wt=Ui([y("wcm-desktop-wallet-selection")],wt);const ji=C`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var Hi=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let vt=class extends w{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=l.y.state;return t??e?c`<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${t?c`<a href="${t}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${t&&e?"and":null} ${e?c`<a href="${e}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</wcm-text></div>`:null}};vt.styles=[v.globalCss,ji],vt=Hi([y("wcm-legal-notice")],vt);const Bi=C`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Zi=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let ft=class extends w{onQrcode(){l.T.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=l.y.state,o=t!=="ALL"&&e,i=q.manualWalletsTemplate(),r=q.recomendedWalletsTemplate();let n=[q.recentWalletTemplate(),...i,...r];n=n.filter(Boolean);const a=n.length>8||o;let s=[];a?s=n.slice(0,7):s=n;const d=!!s.length;return c`<wcm-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${A.QRCODE_ICON}"></wcm-modal-header>${d?c`<wcm-modal-content><div>${s} ${a?c`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};ft.styles=[v.globalCss,Bi],ft=Zi([y("wcm-mobile-wallet-selection")],ft);const zi=C`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Vi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,bt=(t,e,o,i)=>{for(var r=i>1?void 0:i?Fi(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&Vi(e,o,r),r};exports.WcmModal=class extends w{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=l.se.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;(e=this.unsubscribeModal)==null||e.call(this)}get overlayEl(){return m.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return m.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body"))if(e){const o=document.getElementById("wcm-styles");o==null||o.remove()}else document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>')}onCloseModal(e){e.target===e.currentTarget&&l.se.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const e=m.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},o=.1,i=.2;await Promise.all([ee(this.overlayEl,{opacity:[0,1]},{delay:o,duration:i}).finished,ee(this.containerEl,e,{delay:o,duration:i}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=m.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},o=.2;await Promise.all([ee(this.overlayEl,{opacity:[1,0]},{duration:o}).finished,ee(this.containerEl,e,{duration:o}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var o;e.key==="Escape"?l.se.close():e.key==="Tab"&&((o=e.target)!=null&&o.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return c`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${j(e)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open?c`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};exports.WcmModal.styles=[v.globalCss,zi],bt([W()],exports.WcmModal.prototype,"open",2),bt([W()],exports.WcmModal.prototype,"active",2),exports.WcmModal=bt([y("wcm-modal")],exports.WcmModal);const qi=C`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var Qi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,xe=(t,e,o,i)=>{for(var r=i>1?void 0:i?Ki(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&Qi(e,o,r),r};let G=class extends w{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){l.a.isMobile()?l.T.replace("MobileConnecting"):l.T.replace("MobileQrcodeConnecting")}onDesktop(){l.T.replace("DesktopConnecting")}onWeb(){l.T.replace("WebConnecting")}render(){return c`<div>${this.isRetry?c`<slot></slot>`:null} ${this.isMobile?c`<wcm-button .onClick="${this.onMobile}" .iconLeft="${A.MOBILE_ICON}" variant="outline">Mobile</wcm-button>`:null} ${this.isDesktop?c`<wcm-button .onClick="${this.onDesktop}" .iconLeft="${A.DESKTOP_ICON}" variant="outline">Desktop</wcm-button>`:null} ${this.isWeb?c`<wcm-button .onClick="${this.onWeb}" .iconLeft="${A.GLOBE_ICON}" variant="outline">Web</wcm-button>`:null}</div>`}};G.styles=[v.globalCss,qi],xe([u({type:Boolean})],G.prototype,"isMobile",2),xe([u({type:Boolean})],G.prototype,"isDesktop",2),xe([u({type:Boolean})],G.prototype,"isWeb",2),xe([u({type:Boolean})],G.prototype,"isRetry",2),G=xe([y("wcm-platform-selection")],G);const Yi=C`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Gi=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let yt=class extends w{onClick(){l.T.push("WalletExplorer")}render(){const{recomendedWallets:t}=l.te.state,e=he.manualWallets(),o=[...t,...e].reverse().slice(0,4);return c`<button @click="${this.onClick}"><div class="wcm-icons">${o.map(i=>{const r=m.getWalletIcon(i);if(r)return c`<img crossorigin="anonymous" src="${r}">`;const n=m.getWalletIcon({id:i.id});return n?c`<img crossorigin="anonymous" src="${n}">`:A.WALLET_PLACEHOLDER})} ${[...Array(4-o.length)].map(()=>A.WALLET_PLACEHOLDER)}</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>`}};yt.styles=[v.globalCss,Yi],yt=Gi([y("wcm-view-all-wallets-button")],yt);const Xi=C`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var Ji=Object.defineProperty,en=Object.getOwnPropertyDescriptor,Pe=(t,e,o,i)=>{for(var r=i>1?void 0:i?en(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&Ji(e,o,r),r};let le=class extends w{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:t}=l.p.state;this.uri=t},0)}get overlayEl(){return m.getShadowRootElement(this,".wcm-qr-container")}render(){return c`<div class="wcm-qr-container">${this.uri?c`<wcm-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${R(this.walletId)}" imageId="${R(this.imageId)}"></wcm-qrcode>`:c`<wcm-spinner></wcm-spinner>`}</div>`}};le.styles=[v.globalCss,Xi],Pe([u()],le.prototype,"walletId",2),Pe([u()],le.prototype,"imageId",2),Pe([W()],le.prototype,"uri",2),le=Pe([y("wcm-walletconnect-qr")],le);var tn=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let xt=class extends w{viewTemplate(){return l.a.isAndroid()?c`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:l.a.isMobile()?c`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:c`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return c`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};xt.styles=[v.globalCss],xt=tn([y("wcm-connect-wallet-view")],xt);const on=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rn=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,co=(t,e,o,i)=>{for(var r=i>1?void 0:i?nn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&rn(e,o,r),r};let Ne=class extends w{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:o}=l.a.getWalletRouterData(),i=e==null?void 0:e.native;if(i){const r=l.a.formatNativeUrl(i,t,o);l.a.openHref(r,"_self")}}openDesktopApp(){const{walletConnectUri:t}=l.p.state,e=l.a.getWalletRouterData();m.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:o}=l.a.getWalletRouterData(),{isMobile:i,isWeb:r}=m.getCachedRouterWalletPlatforms();return c`<wcm-modal-header title="${t}" .onAction="${m.handleUriCopy}" .actionIcon="${A.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${R(o)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Connection can continue loading if ${t} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile="${i}" .isWeb="${r}" .isRetry="${!0}"><wcm-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${A.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};Ne.styles=[v.globalCss,on],co([W()],Ne.prototype,"isError",2),Ne=co([y("wcm-desktop-connecting-view")],Ne);const an=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var ln=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let $t=class extends w{onInstall(t){t&&l.a.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:o,homepage:i}=l.a.getWalletRouterData();return c`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${R(o)}" label="Not Detected" .isStale="${!0}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}</wcm-text><wcm-button .onClick="${()=>this.onInstall(i)}" .iconLeft="${A.ARROW_DOWN_ICON}">Download</wcm-button></wcm-info-footer>`}};$t.styles=[v.globalCss,an],$t=ln([y("wcm-install-wallet-view")],$t);const sn=C`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var cn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,ho=(t,e,o,i)=>{for(var r=i>1?void 0:i?dn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&cn(e,o,r),r};let De=class extends w{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:o,name:i}=l.a.getWalletRouterData(),r=o==null?void 0:o.native,n=o==null?void 0:o.universal;if(r&&!e){const a=l.a.formatNativeUrl(r,t,i);l.a.openHref(a,"_self")}else if(n){const a=l.a.formatUniversalUrl(n,t,i);l.a.openHref(a,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=l.p.state,o=l.a.getWalletRouterData();m.setRecentWallet(o),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&l.a.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:o,app:i,mobile:r}=l.a.getWalletRouterData(),{isWeb:n}=m.getCachedRouterWalletPlatforms(),a=i==null?void 0:i.ios,s=r==null?void 0:r.universal;return c`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${R(o)}" label="Tap 'Open' to continue…" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="${n}" .isRetry="${!0}"><wcm-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${A.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection>${s?c`<wcm-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="${e}" imageId="${R(o)}"></wcm-wallet-image><wcm-text>${`Get ${t}`}</wcm-text></div><wcm-button .iconRight="${A.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(a)}" variant="ghost">App Store</wcm-button></wcm-info-footer>`}};De.styles=[v.globalCss,sn],ho([W()],De.prototype,"isError",2),De=ho([y("wcm-mobile-connecting-view")],De);const hn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var mn=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let Ct=class extends w{render(){const{name:t,id:e,image_id:o}=l.a.getWalletRouterData(),{isDesktop:i,isWeb:r}=m.getCachedRouterWalletPlatforms();return c`<wcm-modal-header title="${t}" .onAction="${m.handleUriCopy}" .actionIcon="${A.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="${e}" imageId="${R(o)}"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${t} app`}</wcm-text><wcm-platform-selection .isDesktop="${i}" .isWeb="${r}"></wcm-platform-selection></wcm-info-footer>`}};Ct.styles=[v.globalCss,hn],Ct=mn([y("wcm-mobile-qr-connecting-view")],Ct);var pn=(t,e,o,i)=>{for(var r=e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=a(r)||r);return r};let At=class extends w{render(){return c`<wcm-modal-header title="Scan the code" .onAction="${m.handleUriCopy}" .actionIcon="${A.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};At.styles=[v.globalCss],At=pn([y("wcm-qrcode-view")],At);const un=C`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var gn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,$e=(t,e,o,i)=>{for(var r=i>1?void 0:i?wn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&gn(e,o,r),r};const _t=40;let X=class extends w{constructor(){super(...arguments),this.loading=!l.te.state.wallets.listings.length,this.firstFetch=!l.te.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=m.debounce(t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,l.te.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),l.te.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;(t=this.intersectionObserver)==null||t.disconnect()}get placeholderEl(){return m.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([t])=>{t.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=l.te.state,{listings:o,total:i}=this.search?e:t;return i<=_t||o.length>=i}async fetchWallets(){var t;const{wallets:e,search:o}=l.te.state,{listings:i,total:r,page:n}=this.search?o:e;if(!this.endReached&&(this.firstFetch||r>_t&&i.length<r))try{this.loading=!0;const a=(t=l.p.state.chains)==null?void 0:t.join(","),{listings:s}=await l.te.getWallets({page:this.firstFetch?1:n+1,entries:_t,search:this.search,version:2,chains:a}),d=s.map(h=>m.getWalletIcon(h));await Promise.all([...d.map(async h=>m.preloadImage(h)),l.a.wait(300)]),this.endReached=this.isLastPage()}catch(a){console.error(a),l.oe.openToast(m.getErrorMessage(a),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){l.a.isAndroid()?m.handleMobileLinking(t):m.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=l.te.state,{listings:o}=this.search?e:t,i=this.loading&&!o.length,r=this.search.length>=3;let n=q.manualWalletsTemplate(),a=q.recomendedWalletsTemplate(!0);r&&(n=n.filter(({values:h})=>m.caseSafeIncludes(h[0],this.search)),a=a.filter(({values:h})=>m.caseSafeIncludes(h[0],this.search)));const s=!this.loading&&!o.length&&!a.length,d={"wcm-loading":i,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return c`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${j(d)}"><div class="wcm-grid">${i?null:n} ${i?null:a} ${i?null:o.map(h=>c`${h?c`<wcm-wallet-button imageId="${h.image_id}" name="${h.name}" walletId="${h.id}" .onClick="${()=>this.onConnect(h)}"></wcm-wallet-button>`:null}`)}</div><div class="wcm-placeholder-block">${s?c`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>`:null} ${!s&&this.loading?c`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};X.styles=[v.globalCss,un],$e([W()],X.prototype,"loading",2),$e([W()],X.prototype,"firstFetch",2),$e([W()],X.prototype,"search",2),$e([W()],X.prototype,"endReached",2),X=$e([y("wcm-wallet-explorer-view")],X);const vn=C`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var fn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,mo=(t,e,o,i)=>{for(var r=i>1?void 0:i?bn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(r=(i?a(e,o,r):a(r))||r);return i&&r&&fn(e,o,r),r};let Ue=class extends w{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:o}=l.a.getWalletRouterData(),i=e==null?void 0:e.universal;if(i){const r=l.a.formatUniversalUrl(i,t,o);l.a.openHref(r,"_blank")}}openWebWallet(){const{walletConnectUri:t}=l.p.state,e=l.a.getWalletRouterData();m.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:o}=l.a.getWalletRouterData(),{isMobile:i,isDesktop:r}=m.getCachedRouterWalletPlatforms(),n=l.a.isMobile();return c`<wcm-modal-header title="${t}" .onAction="${m.handleUriCopy}" .actionIcon="${A.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${R(o)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile="${i}" .isDesktop="${n?!1:r}" .isRetry="${!0}"><wcm-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${A.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};Ue.styles=[v.globalCss,vn],mo([W()],Ue.prototype,"isError",2),Ue=mo([y("wcm-web-connecting-view")],Ue);
|
package/dist/index-CIzqgU5q.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./W3MFrameProviderSingleton-SRLqDWgO.cjs"),N=require("./wagmi-GgXheXd8.cjs"),P=()=>"9.1.0",Ge=e=>e.toString(16).padStart(2,"0"),We=e=>{const n=new Uint8Array(e/2);return window.crypto.getRandomValues(n),Array.from(n,Ge).join("")},qe=()=>typeof window<"u"?We(10):new Date().getTime().toString(36);class O{}O.makeRequest=(e,n)=>({id:qe(),method:e,params:n,env:{sdkVersion:P()}});O.makeResponse=(e,n,t)=>({id:e,success:!0,version:t,data:n});O.makeErrorResponse=(e,n,t)=>({id:e,success:!1,error:n,version:t});exports.Methods=void 0;(function(e){e.sendTransactions="sendTransactions",e.rpcCall="rpcCall",e.getChainInfo="getChainInfo",e.getSafeInfo="getSafeInfo",e.getTxBySafeTxHash="getTxBySafeTxHash",e.getSafeBalances="getSafeBalances",e.signMessage="signMessage",e.signTypedMessage="signTypedMessage",e.getEnvironmentInfo="getEnvironmentInfo",e.getOffChainSignature="getOffChainSignature",e.requestAddressBook="requestAddressBook",e.wallet_getPermissions="wallet_getPermissions",e.wallet_requestPermissions="wallet_requestPermissions"})(exports.Methods||(exports.Methods={}));exports.RestrictedMethods=void 0;(function(e){e.requestAddressBook="requestAddressBook"})(exports.RestrictedMethods||(exports.RestrictedMethods={}));class Ve{constructor(n=null,t=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:i,data:r,source:s})=>{const u=!r,l=!this.isServer&&s===window.parent,g=typeof r.version<"u"&&parseInt(r.version.split(".")[0]),A=typeof g=="number"&&g>=1;let h=!0;return Array.isArray(this.allowedOrigins)&&(h=this.allowedOrigins.find(I=>I.test(i))!==void 0),!u&&l&&A&&h},this.logIncomingMessage=i=>{console.info(`Safe Apps SDK v1: A message was received from origin ${i.origin}. `,i.data)},this.onParentMessage=i=>{this.isValidMessage(i)&&(this.debugMode&&this.logIncomingMessage(i),this.handleIncomingMessage(i.data))},this.handleIncomingMessage=i=>{const{id:r}=i,s=this.callbacks.get(r);s&&(s(i),this.callbacks.delete(r))},this.send=(i,r)=>{const s=O.makeRequest(i,r);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(s,"*"),new Promise((u,l)=>{this.callbacks.set(s.id,g=>{if(!g.success){l(new Error(g.error));return}u(g)})})},this.allowedOrigins=n,this.debugMode=t,this.isServer||window.addEventListener("message",this.onParentMessage)}}const R=e=>typeof e=="object"&&e!=null&&"domain"in e&&"types"in e&&"message"in e;var Fe={},E={},_={},M=m.commonjsGlobal&&m.commonjsGlobal.__awaiter||function(e,n,t,i){function r(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function l(h){try{A(i.next(h))}catch(I){u(I)}}function g(h){try{A(i.throw(h))}catch(I){u(I)}}function A(h){h.done?s(h.value):r(h.value).then(l,g)}A((i=i.apply(e,n||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.getData=_.fetchData=_.stringifyQuery=_.insertParams=void 0;const ke=e=>typeof e=="object"&&e!==null&&"code"in e&&"message"in e;function Ke(e,n,t){return e.replace(new RegExp(`\\{${n}\\}`,"g"),t)}function Xe(e,n){return n?Object.keys(n).reduce((t,i)=>Ke(t,i,String(n[i])),e):e}_.insertParams=Xe;function Qe(e){if(!e)return"";const n=new URLSearchParams;Object.keys(e).forEach(i=>{e[i]!=null&&n.append(i,String(e[i]))});const t=n.toString();return t?`?${t}`:""}_.stringifyQuery=Qe;function p(e){return M(this,void 0,void 0,function*(){let n;try{n=yield e.json()}catch{n={}}if(!e.ok){const t=ke(n)?`CGW error - ${n.code}: ${n.message}`:`CGW error - status ${e.statusText}`;throw new Error(t)}return n})}function $e(e,n,t,i,r){return M(this,void 0,void 0,function*(){const s=Object.assign({"Content-Type":"application/json"},i),u={method:n??"POST",headers:s};r&&(u.credentials=r),t!=null&&(u.body=typeof t=="string"?t:JSON.stringify(t));const l=yield fetch(e,u);return p(l)})}_.fetchData=$e;function Ye(e,n,t){return M(this,void 0,void 0,function*(){const i={method:"GET"};n&&(i.headers=Object.assign(Object.assign({},n),{"Content-Type":"application/json"})),t&&(i.credentials=t);const r=yield fetch(e,i);return p(r)})}_.getData=Ye;Object.defineProperty(E,"__esModule",{value:!0});E.getEndpoint=E.deleteEndpoint=E.putEndpoint=E.postEndpoint=void 0;const S=_;function C(e,n,t,i){const r=(0,S.insertParams)(n,t),s=(0,S.stringifyQuery)(i);return`${e}${r}${s}`}function Je(e,n,t){const i=C(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,S.fetchData)(i,"POST",t==null?void 0:t.body,t==null?void 0:t.headers,t==null?void 0:t.credentials)}E.postEndpoint=Je;function ze(e,n,t){const i=C(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,S.fetchData)(i,"PUT",t==null?void 0:t.body,t==null?void 0:t.headers,t==null?void 0:t.credentials)}E.putEndpoint=ze;function Ze(e,n,t){const i=C(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,S.fetchData)(i,"DELETE",t==null?void 0:t.body,t==null?void 0:t.headers,t==null?void 0:t.credentials)}E.deleteEndpoint=Ze;function xe(e,n,t,i){if(i)return(0,S.getData)(i,void 0,t==null?void 0:t.credentials);const r=C(e,n,t==null?void 0:t.path,t==null?void 0:t.query);return(0,S.getData)(r,t==null?void 0:t.headers,t==null?void 0:t.credentials)}E.getEndpoint=xe;var b={};Object.defineProperty(b,"__esModule",{value:!0});b.DEFAULT_BASE_URL=void 0;b.DEFAULT_BASE_URL="https://safe-client.safe.global";var L={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationVersionState=void 0,function(n){n.UP_TO_DATE="UP_TO_DATE",n.OUTDATED="OUTDATED",n.UNKNOWN="UNKNOWN"}(e.ImplementationVersionState||(e.ImplementationVersionState={}))})(L);var B={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppSocialPlatforms=e.SafeAppFeatures=e.SafeAppAccessPolicyTypes=void 0,function(n){n.NoRestrictions="NO_RESTRICTIONS",n.DomainAllowlist="DOMAIN_ALLOWLIST"}(e.SafeAppAccessPolicyTypes||(e.SafeAppAccessPolicyTypes={})),function(n){n.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(e.SafeAppFeatures||(e.SafeAppFeatures={})),function(n){n.TWITTER="TWITTER",n.GITHUB="GITHUB",n.DISCORD="DISCORD"}(e.SafeAppSocialPlatforms||(e.SafeAppSocialPlatforms={}))})(B);var H={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LabelValue=e.StartTimeValue=e.DurationType=e.DetailedExecutionInfoType=e.TransactionListItemType=e.ConflictType=e.TransactionInfoType=e.SettingsInfoType=e.TransactionTokenType=e.TransferDirection=e.TransactionStatus=e.Operation=void 0,function(n){n[n.CALL=0]="CALL",n[n.DELEGATE=1]="DELEGATE"}(e.Operation||(e.Operation={})),function(n){n.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",n.AWAITING_EXECUTION="AWAITING_EXECUTION",n.CANCELLED="CANCELLED",n.FAILED="FAILED",n.SUCCESS="SUCCESS"}(e.TransactionStatus||(e.TransactionStatus={})),function(n){n.INCOMING="INCOMING",n.OUTGOING="OUTGOING",n.UNKNOWN="UNKNOWN"}(e.TransferDirection||(e.TransferDirection={})),function(n){n.ERC20="ERC20",n.ERC721="ERC721",n.NATIVE_COIN="NATIVE_COIN"}(e.TransactionTokenType||(e.TransactionTokenType={})),function(n){n.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",n.ADD_OWNER="ADD_OWNER",n.REMOVE_OWNER="REMOVE_OWNER",n.SWAP_OWNER="SWAP_OWNER",n.CHANGE_THRESHOLD="CHANGE_THRESHOLD",n.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",n.ENABLE_MODULE="ENABLE_MODULE",n.DISABLE_MODULE="DISABLE_MODULE",n.SET_GUARD="SET_GUARD",n.DELETE_GUARD="DELETE_GUARD"}(e.SettingsInfoType||(e.SettingsInfoType={})),function(n){n.TRANSFER="Transfer",n.SETTINGS_CHANGE="SettingsChange",n.CUSTOM="Custom",n.CREATION="Creation",n.SWAP_ORDER="SwapOrder",n.TWAP_ORDER="TwapOrder",n.SWAP_TRANSFER="SwapTransfer"}(e.TransactionInfoType||(e.TransactionInfoType={})),function(n){n.NONE="None",n.HAS_NEXT="HasNext",n.END="End"}(e.ConflictType||(e.ConflictType={})),function(n){n.TRANSACTION="TRANSACTION",n.LABEL="LABEL",n.CONFLICT_HEADER="CONFLICT_HEADER",n.DATE_LABEL="DATE_LABEL"}(e.TransactionListItemType||(e.TransactionListItemType={})),function(n){n.MULTISIG="MULTISIG",n.MODULE="MODULE"}(e.DetailedExecutionInfoType||(e.DetailedExecutionInfoType={})),function(n){n.AUTO="AUTO",n.LIMIT_DURATION="LIMIT_DURATION"}(e.DurationType||(e.DurationType={})),function(n){n.AT_MINING_TIME="AT_MINING_TIME",n.AT_EPOCH="AT_EPOCH"}(e.StartTimeValue||(e.StartTimeValue={})),function(n){n.Queued="Queued",n.Next="Next"}(e.LabelValue||(e.LabelValue={}))})(H);var j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.GAS_PRICE_TYPE=e.RPC_AUTHENTICATION=void 0,function(n){n.API_KEY_PATH="API_KEY_PATH",n.NO_AUTHENTICATION="NO_AUTHENTICATION",n.UNKNOWN="UNKNOWN"}(e.RPC_AUTHENTICATION||(e.RPC_AUTHENTICATION={})),function(n){n.ORACLE="ORACLE",n.FIXED="FIXED",n.FIXED_1559="FIXED1559",n.UNKNOWN="UNKNOWN"}(e.GAS_PRICE_TYPE||(e.GAS_PRICE_TYPE={})),function(n){n.ERC721="ERC721",n.SAFE_APPS="SAFE_APPS",n.CONTRACT_INTERACTION="CONTRACT_INTERACTION",n.DOMAIN_LOOKUP="DOMAIN_LOOKUP",n.SPENDING_LIMIT="SPENDING_LIMIT",n.EIP1559="EIP1559",n.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",n.TX_SIMULATION="TX_SIMULATION",n.EIP1271="EIP1271"}(e.FEATURES||(e.FEATURES={}))})(j);var U={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenType=void 0,function(n){n.ERC20="ERC20",n.ERC721="ERC721",n.NATIVE_TOKEN="NATIVE_TOKEN"}(e.TokenType||(e.TokenType={}))})(U);var G={};Object.defineProperty(G,"__esModule",{value:!0});var W={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfirmationViewTypes=void 0,function(n){n.COW_SWAP_ORDER="COW_SWAP_ORDER",n.COW_SWAP_TWAP_ORDER="COW_SWAP_TWAP_ORDER"}(e.ConfirmationViewTypes||(e.ConfirmationViewTypes={}))})(W);var q={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMessageStatus=e.SafeMessageListItemType=void 0,function(n){n.DATE_LABEL="DATE_LABEL",n.MESSAGE="MESSAGE"}(e.SafeMessageListItemType||(e.SafeMessageListItemType={})),function(n){n.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",n.CONFIRMED="CONFIRMED"}(e.SafeMessageStatus||(e.SafeMessageStatus={}))})(q);var V={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceType=void 0,function(n){n.ANDROID="ANDROID",n.IOS="IOS",n.WEB="WEB"}(e.DeviceType||(e.DeviceType={}))})(V);var F={};Object.defineProperty(F,"__esModule",{value:!0});(function(e){var n=m.commonjsGlobal&&m.commonjsGlobal.__createBinding||(Object.create?function(a,c,o,d){d===void 0&&(d=o);var v=Object.getOwnPropertyDescriptor(c,o);(!v||("get"in v?!c.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return c[o]}}),Object.defineProperty(a,d,v)}:function(a,c,o,d){d===void 0&&(d=o),a[d]=c[o]}),t=m.commonjsGlobal&&m.commonjsGlobal.__exportStar||function(a,c){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(c,o)&&n(c,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.deleteAccount=e.getAccount=e.createAccount=e.verifyAuth=e.getAuthNonce=e.getContract=e.getSafeOverviews=e.unsubscribeAll=e.unsubscribeSingle=e.registerRecoveryModule=e.deleteRegisteredEmail=e.getRegisteredEmail=e.verifyEmail=e.resendEmailVerificationCode=e.changeEmail=e.registerEmail=e.unregisterDevice=e.unregisterSafe=e.registerDevice=e.getDelegates=e.confirmSafeMessage=e.proposeSafeMessage=e.getSafeMessage=e.getSafeMessages=e.getDecodedData=e.getMasterCopies=e.getSafeApps=e.getChainConfig=e.getChainsConfig=e.getConfirmationView=e.proposeTransaction=e.getNonces=e.postSafeGasEstimation=e.deleteTransaction=e.getTransactionDetails=e.getTransactionQueue=e.getTransactionHistory=e.getCollectiblesPage=e.getCollectibles=e.getAllOwnedSafes=e.getOwnedSafes=e.getFiatCurrencies=e.getBalances=e.getMultisigTransactions=e.getModuleTransactions=e.getIncomingTransfers=e.getSafeInfo=e.getRelayCount=e.relayTransaction=e.setBaseUrl=void 0,e.putAccountDataSettings=e.getAccountDataSettings=e.getAccountDataTypes=void 0;const i=E,r=b;t(L,e),t(B,e),t(H,e),t(j,e),t(U,e),t(G,e),t(W,e),t(q,e),t(V,e),t(F,e);let s=r.DEFAULT_BASE_URL;const u=a=>{s=a};e.setBaseUrl=u;function l(a,c){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/relay",{path:{chainId:a},body:c})}e.relayTransaction=l;function g(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/relay/{address}",{path:{chainId:a,address:c}})}e.getRelayCount=g;function A(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:a,address:c}})}e.getSafeInfo=A;function h(a,c,o,d){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:a,address:c},query:o},d)}e.getIncomingTransfers=h;function I(a,c,o,d){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:a,address:c},query:o},d)}e.getModuleTransactions=I;function X(a,c,o,d){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:a,address:c},query:o},d)}e.getMultisigTransactions=X;function Q(a,c,o="usd",d={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:a,address:c,currency:o},query:d})}e.getBalances=Q;function $(){return(0,i.getEndpoint)(s,"/v1/balances/supported-fiat-codes")}e.getFiatCurrencies=$;function Y(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:a,address:c}})}e.getOwnedSafes=Y;function J(a){return(0,i.getEndpoint)(s,"/v1/owners/{address}/safes",{path:{address:a}})}e.getAllOwnedSafes=J;function z(a,c,o={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:a,address:c},query:o})}e.getCollectibles=z;function Z(a,c,o={},d){return(0,i.getEndpoint)(s,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:a,address:c},query:o},d)}e.getCollectiblesPage=Z;function x(a,c,o={},d){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:a,safe_address:c},query:o},d)}e.getTransactionHistory=x;function ee(a,c,o={},d){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:a,safe_address:c},query:o},d)}e.getTransactionQueue=ee;function ne(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:a,transactionId:c}})}e.getTransactionDetails=ne;function te(a,c,o){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/transactions/{safeTxHash}",{path:{chainId:a,safeTxHash:c},body:{signature:o}})}e.deleteTransaction=te;function ie(a,c,o){return(0,i.postEndpoint)(s,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:a,safe_address:c},body:o})}e.postSafeGasEstimation=ie;function ae(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:a,safe_address:c}})}e.getNonces=ae;function se(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:a,safe_address:c},body:o})}e.proposeTransaction=se;function ce(a,c,o,d){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation",{path:{chainId:a,safe_address:c},body:{data:o,to:d}})}e.getConfirmationView=ce;function oe(a){return(0,i.getEndpoint)(s,"/v1/chains",{query:a})}e.getChainsConfig=oe;function re(a){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}",{path:{chainId:a}})}e.getChainConfig=re;function de(a,c={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safe-apps",{path:{chainId:a},query:c})}e.getSafeApps=de;function ue(a){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:a}})}e.getMasterCopies=ue;function le(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/data-decoder",{path:{chainId:a},body:{data:c,to:o}})}e.getDecodedData=le;function fe(a,c,o){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:a,safe_address:c},query:{}},o)}e.getSafeMessages=fe;function ge(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:a,message_hash:c}})}e.getSafeMessage=ge;function he(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:a,safe_address:c},body:o})}e.proposeSafeMessage=he;function Ee(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:a,message_hash:c},body:o})}e.confirmSafeMessage=Ee;function _e(a,c={}){return(0,i.getEndpoint)(s,"/v2/chains/{chainId}/delegates",{path:{chainId:a},query:c})}e.getDelegates=_e;function Te(a){return(0,i.postEndpoint)(s,"/v1/register/notifications",{body:a})}e.registerDevice=Te;function ve(a,c,o){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:a,safe_address:c,uuid:o}})}e.unregisterSafe=ve;function Ae(a,c){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:a,uuid:c}})}e.unregisterDevice=Ae;function Ie(a,c,o,d){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails",{path:{chainId:a,safe_address:c},body:o,headers:d})}e.registerEmail=Ie;function Se(a,c,o,d,v){return(0,i.putEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:a,safe_address:c,signer:o},body:d,headers:v})}e.changeEmail=Se;function me(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify-resend",{path:{chainId:a,safe_address:c,signer:o},body:""})}e.resendEmailVerificationCode=me;function ye(a,c,o,d){return(0,i.putEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify",{path:{chainId:a,safe_address:c,signer:o},body:d})}e.verifyEmail=ye;function Oe(a,c,o,d){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:a,safe_address:c,signer:o},headers:d})}e.getRegisteredEmail=Oe;function Ne(a,c,o,d){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:a,safe_address:c,signer:o},headers:d})}e.deleteRegisteredEmail=Ne;function Ce(a,c,o){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/recovery",{path:{chainId:a,safe_address:c},body:o})}e.registerRecoveryModule=Ce;function be(a){return(0,i.deleteEndpoint)(s,"/v1/subscriptions",{query:a})}e.unsubscribeSingle=be;function De(a){return(0,i.deleteEndpoint)(s,"/v1/subscriptions/all",{query:a})}e.unsubscribeAll=De;function Re(a,c){return(0,i.getEndpoint)(s,"/v1/safes",{query:Object.assign(Object.assign({},c),{safes:a.join(",")})})}e.getSafeOverviews=Re;function Me(a,c){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/contracts/{contractAddress}",{path:{chainId:a,contractAddress:c}})}e.getContract=Me;function we(){return(0,i.getEndpoint)(s,"/v1/auth/nonce",{credentials:"include"})}e.getAuthNonce=we;function Pe(a){return(0,i.postEndpoint)(s,"/v1/auth/verify",{body:a,credentials:"include"})}e.verifyAuth=Pe;function pe(a){return(0,i.postEndpoint)(s,"/v1/accounts",{body:a,credentials:"include"})}e.createAccount=pe;function Le(a){return(0,i.getEndpoint)(s,"/v1/accounts/{address}",{path:{address:a},credentials:"include"})}e.getAccount=Le;function Be(a){return(0,i.deleteEndpoint)(s,"/v1/accounts/{address}",{path:{address:a},credentials:"include"})}e.deleteAccount=Be;function He(){return(0,i.getEndpoint)(s,"/v1/accounts/data-types")}e.getAccountDataTypes=He;function je(a){return(0,i.getEndpoint)(s,"/v1/accounts/{address}/data-settings",{path:{address:a},credentials:"include"})}e.getAccountDataSettings=je;function Ue(a,c){return(0,i.putEndpoint)(s,"/v1/accounts/{address}/data-settings",{path:{address:a},body:c,credentials:"include"})}e.putAccountDataSettings=Ue})(Fe);class en{constructor(n){this.communicator=n}async getBySafeTxHash(n){if(!n)throw new Error("Invalid safeTxHash");return(await this.communicator.send(exports.Methods.getTxBySafeTxHash,{safeTxHash:n})).data}async signMessage(n){const t={message:n};return(await this.communicator.send(exports.Methods.signMessage,t)).data}async signTypedMessage(n){if(!R(n))throw new Error("Invalid typed data");return(await this.communicator.send(exports.Methods.signTypedMessage,{typedData:n})).data}async send({txs:n,params:t}){if(!n||!n.length)throw new Error("No transactions were passed");const i={txs:n,params:t};return(await this.communicator.send(exports.Methods.sendTransactions,i)).data}}const f={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},T={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};class nn{constructor(n){this.communicator=n,this.call=this.buildRequest({call:f.eth_call,formatters:[null,T.defaultBlockParam]}),this.getBalance=this.buildRequest({call:f.eth_getBalance,formatters:[null,T.defaultBlockParam]}),this.getCode=this.buildRequest({call:f.eth_getCode,formatters:[null,T.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:f.eth_getStorageAt,formatters:[null,T.blockNumberToHex,T.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:f.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:f.eth_getBlockByHash,formatters:[null,T.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:f.eth_getBlockByNumber,formatters:[T.blockNumberToHex,T.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:f.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:f.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:f.eth_getTransactionCount,formatters:[null,T.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:f.eth_gasPrice}),this.getEstimateGas=t=>this.buildRequest({call:f.eth_estimateGas})([t]),this.setSafeSettings=this.buildRequest({call:f.safe_setSettings})}buildRequest(n){const{call:t,formatters:i}=n;return async r=>{i&&Array.isArray(r)&&i.forEach((l,g)=>{l&&(r[g]=l(r[g]))});const s={call:t,params:r||[]};return(await this.communicator.send(exports.Methods.rpcCall,s)).data}}}const tn="0x1626ba7e",an="0x20c13b0b",D=4001;class y extends Error{constructor(n,t,i){super(n),this.code=t,this.data=i,Object.setPrototypeOf(this,y.prototype)}}class k{constructor(n){this.communicator=n}async getPermissions(){return(await this.communicator.send(exports.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(n){if(!this.isPermissionRequestValid(n))throw new y("Permissions request is invalid",D);try{return(await this.communicator.send(exports.Methods.wallet_requestPermissions,n)).data}catch{throw new y("Permissions rejected",D)}}isPermissionRequestValid(n){return n.every(t=>typeof t=="object"?Object.keys(t).every(i=>!!Object.values(exports.RestrictedMethods).includes(i)):!1)}}const w=(e,n)=>n.some(t=>t.parentCapability===e),sn=()=>(e,n,t)=>{const i=t.value;return t.value=async function(){const r=new k(this.communicator);let s=await r.getPermissions();if(w(n,s)||(s=await r.requestPermissions([{[n]:{}}])),!w(n,s))throw new y("Permissions rejected",D);return i.apply(this)},t};var cn=function(e,n,t,i){var r=arguments.length,s=r<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,t):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,t,i);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(s=(r<3?u(s):r>3?u(n,t,s):u(n,t))||s);return r>3&&s&&Object.defineProperty(n,t,s),s};class K{constructor(n){this.communicator=n}async getChainInfo(){return(await this.communicator.send(exports.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(exports.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:n="usd"}={}){return(await this.communicator.send(exports.Methods.getSafeBalances,{currency:n})).data}async check1271Signature(n,t="0x"){const i=await this.getInfo(),r=N.encodeFunctionData({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[n,t]}),s={call:f.eth_call,params:[{to:i.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(exports.Methods.rpcCall,s)).data.slice(0,10).toLowerCase()===tn}catch{return!1}}async check1271SignatureBytes(n,t="0x"){const i=await this.getInfo(),r=N.encodeFunctionData({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[n,t]}),s={call:f.eth_call,params:[{to:i.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(exports.Methods.rpcCall,s)).data.slice(0,10).toLowerCase()===an}catch{return!1}}calculateMessageHash(n){return N.hashMessage(n)}calculateTypedMessageHash(n){const t=typeof n.domain.chainId=="object"?n.domain.chainId.toNumber():Number(n.domain.chainId);let i=n.primaryType;if(!i){const r=Object.values(n.types),s=Object.keys(n.types).filter(u=>r.every(l=>l.every(({type:g})=>g.replace("[","").replace("]","")!==u)));if(s.length===0||s.length>1)throw new Error("Please specify primaryType");i=s[0]}return N.hashTypedData({message:n.message,domain:{...n.domain,chainId:t,verifyingContract:n.domain.verifyingContract,salt:n.domain.salt},types:n.types,primaryType:i})}async getOffChainSignature(n){return(await this.communicator.send(exports.Methods.getOffChainSignature,n)).data}async isMessageSigned(n,t="0x"){let i;if(typeof n=="string"&&(i=async()=>{const r=this.calculateMessageHash(n);return await this.isMessageHashSigned(r,t)}),R(n)&&(i=async()=>{const r=this.calculateTypedMessageHash(n);return await this.isMessageHashSigned(r,t)}),i)return await i();throw new Error("Invalid message type")}async isMessageHashSigned(n,t="0x"){const i=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of i)if(await r(n,t))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(exports.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(exports.Methods.requestAddressBook,void 0)).data}}cn([sn()],K.prototype,"requestAddressBook",null);class on{constructor(n={}){const{allowedDomains:t=null,debug:i=!1}=n;this.communicator=new Ve(t,i),this.eth=new nn(this.communicator),this.txs=new en(this.communicator),this.safe=new K(this.communicator),this.wallet=new k(this.communicator)}}exports.MessageFormatter=O;exports.RPC_CALLS=f;exports.default=on;exports.getSDKVersion=P;exports.isObjectEIP712TypedData=R;
|
package/dist/index-CJq05jyL.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { Q as a } from "./W3MFrameProviderSingleton--HSg3nEz.js";
|
|
2
|
-
import { T as e, $ as n, _ as L, a9 as o, aF as W, aa as l, ab as r, aU as M, aZ as Z, a_ as V, ac as d, a0 as p, ae as H, ad as c, af as m, aX as _, aY as k, ag as h, ah as b, ai as g, aj as I, ak as B, al as T, am as v, b8 as w, b9 as S, a1 as f, an as x, b4 as A, ao as N, a2 as U, b1 as D, ap as E, aq as P, ar as G, as as z, aP as O, b3 as Q, b5 as F, aQ as X, b0 as $, at as j, aR as q, b6 as y, a$ as J, aw as K, aS as R, a3 as Y, a4 as a1, a5 as i1, ay as s1, ax as C1, az as u1, aA as t1, aO as e1, aB as n1, b2 as L1, aV as o1, aW as W1, aT as l1, aC as r1, aD as M1, b7 as Z1, ba as V1, a6 as d1, aE as p1, aG as H1, aI as c1, a7 as m1, aH as _1, aK as k1, aJ as h1, au as b1, av as g1, aL as I1, a8 as B1, aM as T1, aN as v1, z as w1, U as S1, X as f1, Z as x1 } from "./W3MFrameProviderSingleton--HSg3nEz.js";
|
|
3
|
-
const s = a`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
|
|
4
|
-
<mask id="path-1-inside-1_18299_4189">
|
|
5
|
-
<path
|
|
6
|
-
class="input_mask__border"
|
|
7
|
-
fill-rule="evenodd"
|
|
8
|
-
clip-rule="evenodd"
|
|
9
|
-
d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z"
|
|
10
|
-
/>
|
|
11
|
-
</mask>
|
|
12
|
-
<path
|
|
13
|
-
class="input_mask__background"
|
|
14
|
-
fill-rule="evenodd"
|
|
15
|
-
clip-rule="evenodd"
|
|
16
|
-
d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z"
|
|
17
|
-
/>
|
|
18
|
-
<path
|
|
19
|
-
class="input_mask__border"
|
|
20
|
-
d="M138.008 0L139.008 -0.00694413L139.001 -1H138.008V0ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM189.992 0V-1H188.999L188.992 -0.00694413L189.992 0ZM188.914 10.1564L189.854 10.4984V10.4984L188.914 10.1564ZM178.156 20.9145L177.814 19.9748V19.9748L178.156 20.9145ZM149.844 20.9145L150.186 19.9748V19.9748L149.844 20.9145ZM139.086 10.1564L138.146 10.4984V10.4984L139.086 10.1564ZM40 1H138.008V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM288 99H40V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM189.992 1H288V-1H189.992V1ZM188.992 -0.00694413C188.958 4.90792 188.778 7.60788 187.975 9.81434L189.854 10.4984C190.793 7.9177 190.958 4.87452 190.992 0.00694413L188.992 -0.00694413ZM187.975 9.81434C186.256 14.5364 182.536 18.2561 177.814 19.9748L178.498 21.8542C183.776 19.9333 187.933 15.7759 189.854 10.4984L187.975 9.81434ZM177.814 19.9748C175.039 20.9848 171.536 21 164 21V23C171.362 23 175.308 23.0152 178.498 21.8542L177.814 19.9748ZM164 21C156.464 21 152.961 20.9848 150.186 19.9748L149.502 21.8542C152.692 23.0152 156.638 23 164 23V21ZM150.186 19.9748C145.464 18.2561 141.744 14.5364 140.025 9.81434L138.146 10.4984C140.067 15.7759 144.224 19.9333 149.502 21.8542L150.186 19.9748ZM140.025 9.81434C139.222 7.60788 139.042 4.90792 139.008 -0.00694413L137.008 0.00694413C137.042 4.87452 137.207 7.9177 138.146 10.4984L140.025 9.81434Z"
|
|
21
|
-
mask="url(#path-1-inside-1_18299_4189)"
|
|
22
|
-
/>
|
|
23
|
-
</svg>`, C = a`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
|
|
24
|
-
<mask id="path-1-inside-1_18299_4168">
|
|
25
|
-
<path
|
|
26
|
-
class="input_mask__border"
|
|
27
|
-
fill-rule="evenodd"
|
|
28
|
-
clip-rule="evenodd"
|
|
29
|
-
d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z"
|
|
30
|
-
/>
|
|
31
|
-
</mask>
|
|
32
|
-
<path
|
|
33
|
-
class="input_mask__background"
|
|
34
|
-
fill-rule="evenodd"
|
|
35
|
-
clip-rule="evenodd"
|
|
36
|
-
d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z"
|
|
37
|
-
/>
|
|
38
|
-
<path
|
|
39
|
-
class="input_mask__border"
|
|
40
|
-
d="M138.008 100V101H139.001L139.008 100.007L138.008 100ZM139.086 89.8436L138.146 89.5016L139.086 89.8436ZM149.844 79.0855L150.186 80.0252L149.844 79.0855ZM178.156 79.0855L177.814 80.0252L178.156 79.0855ZM188.914 89.8436L189.854 89.5016L188.914 89.8436ZM189.992 100L188.992 100.007L188.999 101H189.992V100ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM138.008 99H40V101H138.008V99ZM139.008 100.007C139.042 95.0921 139.222 92.3921 140.025 90.1857L138.146 89.5016C137.207 92.0823 137.042 95.1255 137.008 99.9931L139.008 100.007ZM140.025 90.1857C141.744 85.4636 145.464 81.7439 150.186 80.0252L149.502 78.1458C144.224 80.0667 140.067 84.2241 138.146 89.5016L140.025 90.1857ZM150.186 80.0252C152.961 79.0152 156.464 79 164 79V77C156.638 77 152.692 76.9848 149.502 78.1458L150.186 80.0252ZM164 79C171.536 79 175.039 79.0152 177.814 80.0252L178.498 78.1458C175.308 76.9848 171.362 77 164 77V79ZM177.814 80.0252C182.536 81.7439 186.256 85.4636 187.975 90.1857L189.854 89.5016C187.933 84.2241 183.776 80.0667 178.498 78.1458L177.814 80.0252ZM187.975 90.1857C188.778 92.3921 188.958 95.0921 188.992 100.007L190.992 99.9931C190.958 95.1255 190.793 92.0823 189.854 89.5016L187.975 90.1857ZM288 99H189.992V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM40 1H288V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497Z"
|
|
41
|
-
mask="url(#path-1-inside-1_18299_4168)"
|
|
42
|
-
/>
|
|
43
|
-
</svg>`;
|
|
44
|
-
export {
|
|
45
|
-
e as MathUtil,
|
|
46
|
-
n as TransactionUtil,
|
|
47
|
-
L as UiHelperUtil,
|
|
48
|
-
o as WuiAccountButton,
|
|
49
|
-
W as WuiAlertBar,
|
|
50
|
-
l as WuiAllWalletsImage,
|
|
51
|
-
r as WuiAvatar,
|
|
52
|
-
M as WuiBalance,
|
|
53
|
-
Z as WuiBanner,
|
|
54
|
-
V as WuiBannerImg,
|
|
55
|
-
d as WuiButton,
|
|
56
|
-
p as WuiCard,
|
|
57
|
-
H as WuiCardSelect,
|
|
58
|
-
c as WuiCardSelectLoader,
|
|
59
|
-
m as WuiChip,
|
|
60
|
-
_ as WuiChipButton,
|
|
61
|
-
k as WuiCompatibleNetwork,
|
|
62
|
-
h as WuiConnectButton,
|
|
63
|
-
b as WuiCtaButton,
|
|
64
|
-
g as WuiDetailsGroup,
|
|
65
|
-
I as WuiDetailsGroupItem,
|
|
66
|
-
B as WuiDropdownMenu,
|
|
67
|
-
T as WuiEmailInput,
|
|
68
|
-
v as WuiEnsInput,
|
|
69
|
-
w as WuiFlex,
|
|
70
|
-
S as WuiGrid,
|
|
71
|
-
f as WuiIcon,
|
|
72
|
-
x as WuiIconBox,
|
|
73
|
-
A as WuiIconButton,
|
|
74
|
-
N as WuiIconLink,
|
|
75
|
-
U as WuiImage,
|
|
76
|
-
D as WuiInputAmount,
|
|
77
|
-
E as WuiInputElement,
|
|
78
|
-
P as WuiInputNumeric,
|
|
79
|
-
G as WuiInputText,
|
|
80
|
-
z as WuiLink,
|
|
81
|
-
O as WuiListAccordion,
|
|
82
|
-
Q as WuiListAccount,
|
|
83
|
-
F as WuiListButton,
|
|
84
|
-
X as WuiListContent,
|
|
85
|
-
$ as WuiListDescription,
|
|
86
|
-
j as WuiListItem,
|
|
87
|
-
q as WuiListNetwork,
|
|
88
|
-
y as WuiListSocial,
|
|
89
|
-
J as WuiListToken,
|
|
90
|
-
K as WuiListWallet,
|
|
91
|
-
R as WuiListWalletTransaction,
|
|
92
|
-
Y as WuiLoadingHexagon,
|
|
93
|
-
a1 as WuiLoadingSpinner,
|
|
94
|
-
i1 as WuiLoadingThumbnail,
|
|
95
|
-
s1 as WuiLogo,
|
|
96
|
-
C1 as WuiLogoSelect,
|
|
97
|
-
u1 as WuiNetworkButton,
|
|
98
|
-
t1 as WuiNetworkImage,
|
|
99
|
-
e1 as WuiNoticeCard,
|
|
100
|
-
n1 as WuiOtp,
|
|
101
|
-
L1 as WuiPreviewItem,
|
|
102
|
-
o1 as WuiProfileButton,
|
|
103
|
-
W1 as WuiProfileButtonV2,
|
|
104
|
-
l1 as WuiPromo,
|
|
105
|
-
r1 as WuiQrCode,
|
|
106
|
-
M1 as WuiSearchBar,
|
|
107
|
-
Z1 as WuiSelect,
|
|
108
|
-
V1 as WuiSeparator,
|
|
109
|
-
d1 as WuiShimmer,
|
|
110
|
-
p1 as WuiSnackbar,
|
|
111
|
-
H1 as WuiTabs,
|
|
112
|
-
c1 as WuiTag,
|
|
113
|
-
m1 as WuiText,
|
|
114
|
-
_1 as WuiTokenButton,
|
|
115
|
-
k1 as WuiTokenListItem,
|
|
116
|
-
h1 as WuiTooltip,
|
|
117
|
-
b1 as WuiTransactionListItem,
|
|
118
|
-
g1 as WuiTransactionListItemLoader,
|
|
119
|
-
I1 as WuiTransactionVisual,
|
|
120
|
-
B1 as WuiVisual,
|
|
121
|
-
T1 as WuiVisualThumbnail,
|
|
122
|
-
v1 as WuiWalletImage,
|
|
123
|
-
w1 as customElement,
|
|
124
|
-
S1 as initializeTheming,
|
|
125
|
-
f1 as setColorTheme,
|
|
126
|
-
x1 as setThemeVariables,
|
|
127
|
-
s as swapInputMaskBottomSvg,
|
|
128
|
-
C as swapInputMaskTopSvg
|
|
129
|
-
};
|