-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2560.78b74d0c68788fd10965.js
1 lines (1 loc) · 60.2 KB
/
2560.78b74d0c68788fd10965.js
1
"use strict";(self.webpackChunktimeless_frontend=self.webpackChunktimeless_frontend||[]).push([[2560],{92560:(lo,mt,B)=>{B.r(mt),B.d(mt,{accountSelect:()=>Hr,bigNumberFieldsToStrings:()=>ro,entryModal:()=>to,getCommon:()=>no,getHardwareWalletProvider:()=>oo});var ce=B(34553);function Q(t){return"function"==typeof t}function Ke(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Xe=Ke(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function qe(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class ee{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const s of n)s.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Q(r))try{r()}catch(s){e=s instanceof Xe?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{_t(s)}catch(i){e=e??[],i instanceof Xe?e=[...e,...i.errors]:e.push(i)}}if(e)throw new Xe(e)}}add(e){var n;if(e&&e!==this)if(this.closed)_t(e);else{if(e instanceof ee){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&qe(n,e)}remove(e){const{_finalizers:n}=this;n&&qe(n,e),e instanceof ee&&e._removeParent(this)}}ee.EMPTY=(()=>{const t=new ee;return t.closed=!0,t})();const gt=ee.EMPTY;function yt(t){return t instanceof ee||t&&"closed"in t&&Q(t.remove)&&Q(t.add)&&Q(t.unsubscribe)}function _t(t){Q(t)?t():t.unsubscribe()}const ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ie={setTimeout(t,e,...n){const{delegate:r}=Ie;return(null==r?void 0:r.setTimeout)?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=Ie;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function wt(){}const _n=et("C",void 0,void 0);function et(t,e,n){return{kind:t,value:e,error:n}}let de=null;function Fe(t){if(ue.useDeprecatedSynchronousErrorHandling){const e=!de;if(e&&(de={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=de;if(de=null,n)throw r}}else t()}class tt extends ee{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,yt(e)&&e.add(this)):this.destination=An}static create(e,n,r){return new He(e,n,r)}next(e){this.isStopped?rt(et("N",e,void 0),this):this._next(e)}error(e){this.isStopped?rt(et("E",void 0,e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?rt(_n,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const En=Function.prototype.bind;function nt(t,e){return En.call(t,e)}class Sn{constructor(e){this.partialObserver=e}next(e){const{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Be(r)}}error(e){const{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Be(r)}else Be(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Be(n)}}}class He extends tt{constructor(e,n,r){let o;if(super(),Q(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let s;this&&ue.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&nt(e.next,s),error:e.error&&nt(e.error,s),complete:e.complete&&nt(e.complete,s)}):o=e}this.destination=new Sn(o)}}function Be(t){ue.useDeprecatedSynchronousErrorHandling?function(t){ue.useDeprecatedSynchronousErrorHandling&&de&&(de.errorThrown=!0,de.error=t)}(t):function(t){Ie.setTimeout(()=>{const{onUnhandledError:e}=ue;if(!e)throw t;e(t)})}(t)}function rt(t,e){const{onStoppedNotification:n}=ue;n&&Ie.setTimeout(()=>n(t,e))}const An={closed:!0,next:wt,error:function(t){throw t},complete:wt},Pn="function"==typeof Symbol&&Symbol.observable||"@@observable";function jn(t){return t}let ot=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const s=function(t){return t&&t instanceof tt||function(t){return t&&Q(t.next)&&Q(t.error)&&Q(t.complete)}(t)&&yt(t)}(n)?n:new He(n,r,o);return Fe(()=>{const{operator:i,source:l}=this;s.add(i?i.call(s,l):l?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=xt(r))((o,s)=>{const i=new He({next:l=>{try{n(l)}catch(a){s(a),i.unsubscribe()}},error:s,complete:o});this.subscribe(i)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Pn](){return this}pipe(...n){return function(t){return 0===t.length?jn:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=xt(n))((r,o)=>{let s;this.subscribe(i=>s=i,i=>o(i),()=>r(s))})}}return t.create=e=>new t(e),t})();function xt(t){var e;return null!==(e=t??ue.Promise)&&void 0!==e?e:Promise}const Tn=Ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Et=(()=>{class t extends ot{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new St(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Tn}next(n){Fe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Fe(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Fe(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:s}=this;return r||o?gt:(this.currentObservers=null,s.push(n),new ee(()=>{this.currentObservers=null,qe(s,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:s}=this;r?n.error(o):s&&n.complete()}asObservable(){const n=new ot;return n.source=this,n}}return t.create=(e,n)=>new St(e,n),t})();class St extends Et{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:gt}}const zt=new ot(t=>t.complete());class Hn extends tt{constructor(e,n,r,o,s,i){super(e),this.onFinalize=s,this.shouldUnsubscribe=i,this._next=n?function(l){try{n(l)}catch(a){e.error(a)}}:super._next,this._error=o?function(l){try{o(l)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function Bn(t){return t<=0?()=>zt:function(t){return e=>{if(function(t){return Q(null==t?void 0:t.lift)}(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}((e,n)=>{let r=0;e.subscribe(function(t,e,n,r,o){return new Hn(t,e,void 0,void 0,void 0)}(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}const Dn=Ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});var Ae=B(79696),D=B(18560);function C(){}const At=t=>t;function Pt(t){return t()}function jt(){return Object.create(null)}function $(t){t.forEach(Pt)}function ve(t){return"function"==typeof t}function fe(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Ct(t,e,n,r){if(t){const o=Ot(t,e,n,r);return t[0](o)}}function Ot(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function Tt(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const s=[],i=Math.max(e.dirty.length,o.length);for(let l=0;l<i;l+=1)s[l]=e.dirty[l]|o[l];return s}return e.dirty|o}return e.dirty}function Lt(t,e,n,r,o,s){if(o){const i=Ot(e,n,r,s);t.p(i,o)}}function Mt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}const It="undefined"!=typeof window;let Zn=It?()=>window.performance.now():()=>Date.now(),st=It?t=>requestAnimationFrame(t):C;const me=new Set;function Ft(t){me.forEach(e=>{e.c(t)||(me.delete(e),e.f())}),0!==me.size&&st(Ft)}function u(t,e){t.appendChild(e)}function he(t,e,n){const r=it(t);if(!r.getElementById(e)){const o=m("style");o.id=e,o.textContent=n,Ht(r,o)}}function it(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Yn(t){const e=m("style");return Ht(it(t),e),e.sheet}function Ht(t,e){return u(t.head||t,e),e.sheet}function x(t,e,n){t.insertBefore(e,n||null)}function k(t){t.parentNode&&t.parentNode.removeChild(t)}function De(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function m(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function E(){return z(" ")}function Bt(){return z("")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function J(t,e){t.data!==(e=""+e)&&(t.data=e)}function lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Ne(t,e,n){for(let r=0;r<t.options.length;r+=1){const o=t.options[r];if(o.__value===e)return void(o.selected=!0)}(!n||void 0!==e)&&(t.selectedIndex=-1)}function Dt(t){const e=t.querySelector(":checked");return e&&e.__value}function I(t,e,n){t.classList[n?"add":"remove"](e)}const Ue=new Map;let at,Re=0;function Nt(t,e,n,r,o,s,i,l=0){const a=16.666/r;let c="{\n";for(let w=0;w<=1;w+=a){const y=e+(n-e)*s(w);c+=100*w+`%{${i(y,1-y)}}\n`}const d=c+`100% {${i(n,1-n)}}\n}`,v=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(d)}_${l}`,_=it(t),{stylesheet:p,rules:h}=Ue.get(_)||function(t,e){const n={stylesheet:Yn(e),rules:{}};return Ue.set(t,n),n}(_,t);h[v]||(h[v]=!0,p.insertRule(`@keyframes ${v} ${d}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${v} ${r}ms linear ${o}ms 1 both`,Re+=1,v}function Pe(t){at=t}const ge=[],Ze=[];let ye=[];const ct=[],Xn=Promise.resolve();let ut=!1;function ne(t){ye.push(t)}function Ut(t){ct.push(t)}const dt=new Set;let je,_e=0;function Rt(){if(0!==_e)return;const t=at;do{try{for(;_e<ge.length;){const e=ge[_e];_e++,Pe(e),er(e.$$)}}catch(e){throw ge.length=0,_e=0,e}for(Pe(null),ge.length=0,_e=0;Ze.length;)Ze.pop()();for(let e=0;e<ye.length;e+=1){const n=ye[e];dt.has(n)||(dt.add(n),n())}ye.length=0}while(ge.length);for(;ct.length;)ct.pop()();ut=!1,dt.clear(),Pe(t)}function er(t){if(null!==t.fragment){t.update(),$(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ne)}}function ft(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(`${e?"intro":"outro"}${n}`))}const Ve=new Set;let te;function K(t,e){t&&t.i&&(Ve.delete(t),t.i(e))}function re(t,e,n,r){if(t&&t.o){if(Ve.has(t))return;Ve.add(t),te.c.push(()=>{Ve.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const sr={duration:0};function Ye(t,e,n,r){const o={direction:"both"};let s=e(t,n,o),i=r?0:1,l=null,a=null,c=null;function d(){c&&function(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?s=>s.indexOf(e)<0:s=>-1===s.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),Re-=o,Re||st(()=>{Re||(Ue.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&k(e)}),Ue.clear())}))}(t,c)}function v(p,h){const g=p.b-i;return h*=Math.abs(g),{a:i,b:p.b,d:g,duration:h,start:p.start,end:p.start+h,group:p.group}}function _(p){const{delay:h=0,duration:g=300,easing:w=At,tick:y=C,css:N}=s||sr,M={start:Zn()+h,b:p};p||(M.group=te,te.r+=1),l||a?a=M:(N&&(d(),c=Nt(t,i,p,g,h,w,N)),p&&y(0,1),l=v(M,g),ne(()=>ft(t,p,"start")),function(t){let e;0===me.size&&st(Ft),new Promise(n=>{me.add(e={c:t,f:n})})}(P=>(a&&P>a.start&&(l=v(a,g),a=null,ft(t,l.b,"start"),N&&(d(),c=Nt(t,i,l.b,l.duration,0,w,s.css))),l&&(P>=l.end?(y(i=l.b,1-i),ft(t,l.b,"end"),a||(l.b?d():--l.group.r||$(l.group.c)),l=null):P>=l.start&&(i=l.a+l.d*w((P-l.start)/l.duration),y(i,1-i))),!(!l&&!a))))}return{run(p){ve(s)?(je||(je=Promise.resolve(),je.then(()=>{je=null})),je).then(()=>{s=s(o),_(p)}):_(p)},end(){d(),l=a=null}}}function Zt(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function We(t){t&&t.c()}function Ce(t,e,n,r){const{fragment:o,after_update:s}=t.$$;o&&o.m(e,n),r||ne(()=>{const i=t.$$.on_mount.map(Pt).filter(ve);t.$$.on_destroy?t.$$.on_destroy.push(...i):$(i),t.$$.on_mount=[]}),s.forEach(ne)}function Oe(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];ye.forEach(r=>-1===t.indexOf(r)?e.push(r):n.push(r)),n.forEach(r=>r()),ye=e}(n.after_update),$(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pe(t,e,n,r,o,s,i,l=[-1]){const a=at;Pe(t);const c=t.$$={fragment:null,ctx:[],props:s,update:C,not_equal:o,bound:jt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:jt(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};i&&i(c.root);let d=!1;if(c.ctx=n?n(t,e.props||{},(v,_,...p)=>{const h=p.length?p[0]:_;return c.ctx&&o(c.ctx[v],c.ctx[v]=h)&&(!c.skip_bound&&c.bound[v]&&c.bound[v](h),d&&function(t,e){-1===t.$$.dirty[0]&&(ge.push(t),ut||(ut=!0,Xn.then(Rt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,v)),_}):[],c.update(),d=!0,$(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const v=function(t){return Array.from(t.childNodes)}(e.target);c.fragment&&c.fragment.l(v),v.forEach(k)}else c.fragment&&c.fragment.c();e.intro&&K(t.$$.fragment),Ce(t,e.target,e.anchor,e.customElement),Rt()}Pe(a)}class be{$destroy(){Oe(this,1),this.$destroy=C}$on(e,n){if(!ve(n))return C;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);-1!==o&&r.splice(o,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function $e(t,{delay:e=0,duration:n=400,easing:r=At}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:s=>"opacity: "+s*o}}function ar(t){he(t,"svelte-1jp3yas",".close-button.svelte-1jp3yas.svelte-1jp3yas{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:2rem;cursor:pointer;color:var(--onboard-close-button-color, inherit)}.close-button.svelte-1jp3yas.svelte-1jp3yas:hover::before{opacity:0.2}.close-button.svelte-1jp3yas:hover .svg-box.svelte-1jp3yas{opacity:1}.close-button.svelte-1jp3yas.svelte-1jp3yas::before{content:'';position:absolute;height:inherit;width:inherit;opacity:0.1;background:currentColor;transition:300ms ease-in-out opacity}.svg-box.svelte-1jp3yas.svelte-1jp3yas{display:flex;position:absolute;height:14px;width:14px;opacity:0.6;transition:300ms ease-in-out opacity}")}function cr(t){let e,n,r;return{c(){e=m("div"),n=m("div"),r=m("div"),f(r,"class","svg-box svelte-1jp3yas"),f(n,"class","close-button svelte-1jp3yas"),f(e,"class","close-button-container")},m(o,s){x(o,e,s),u(e,n),u(n,r),r.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11.6569 1.75736L7.41429 6L11.6569 10.2426L10.2427 11.6569L6.00008 7.41421L1.75744 11.6569L0.343227 10.2426L4.58587 6L0.343227 1.75736L1.75744 0.343146L6.00008 4.58579L10.2427 0.343146L11.6569 1.75736Z" fill="currentColor"/>\n </svg>\n'},p:C,i:C,o:C,d(o){o&&k(e)}}}class ur extends be{constructor(e){super(),pe(this,e,null,cr,fe,{},ar)}}function dr(t){he(t,"svelte-1u0a3bu","table.svelte-1u0a3bu.svelte-1u0a3bu{border-spacing:0px}table.svelte-1u0a3bu thead.svelte-1u0a3bu{box-shadow:0px 1px 0px rgba(0, 0, 0, 0.1);background:var(--account-select-background-color, var(--foreground-color))}th.svelte-1u0a3bu.svelte-1u0a3bu,td.svelte-1u0a3bu.svelte-1u0a3bu{text-align:left;padding:0.4rem 0.5rem}td.svelte-1u0a3bu.svelte-1u0a3bu{font-size:var(\n --account-select-font-size-6,\n var(--onboard-font-size-6, var(--font-size-6))\n );line-height:var(\n --account-select-font-line-height-1,\n var(--onboard-font-line-height-1, var(--font-line-height-1))\n )}tbody.svelte-1u0a3bu tr.svelte-1u0a3bu{box-shadow:0px 1px 0px rgba(0, 0, 0, 0.1)}tbody.svelte-1u0a3bu tr.svelte-1u0a3bu:hover{background:var(\n --account-select-primary-100,\n var(--onboard-primary-100, var(--primary-100))\n );color:var(--account-select-text-color, var(--onboard-black, var(--black)))}.address-table.svelte-1u0a3bu.svelte-1u0a3bu{min-height:4.5rem;max-height:14rem;overflow:auto}.selected-row.svelte-1u0a3bu.svelte-1u0a3bu,.selected-row.svelte-1u0a3bu.svelte-1u0a3bu:hover{background:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );color:var(\n --account-select-primary-100,\n var(--onboard-primary-100, var(--primary-100))\n )}.asset-td.svelte-1u0a3bu.svelte-1u0a3bu{font-weight:bold}.w-100.svelte-1u0a3bu.svelte-1u0a3bu{width:100%}.pointer.svelte-1u0a3bu.svelte-1u0a3bu{cursor:pointer}@media all and (min-width: 768px){.address-table.svelte-1u0a3bu.svelte-1u0a3bu{max-height:27rem}td.svelte-1u0a3bu.svelte-1u0a3bu{font-size:var(\n --account-select-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n )}th.svelte-1u0a3bu.svelte-1u0a3bu,td.svelte-1u0a3bu.svelte-1u0a3bu{padding:0.5rem 0.5rem}}")}function Vt(t,e,n){const r=t.slice();return r[6]=e[n],r}function Yt(t){let e,n=t[1],r=[];for(let o=0;o<n.length;o+=1)r[o]=Wt(Vt(t,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=Bt()},m(o,s){for(let i=0;i<r.length;i+=1)r[i]&&r[i].m(o,s);x(o,e,s)},p(o,s){if(7&s){let i;for(n=o[1],i=0;i<n.length;i+=1){const l=Vt(o,n,i);r[i]?r[i].p(l,s):(r[i]=Wt(l),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(o){De(r,o),o&&k(e)}}}function Wt(t){let e,n,o,s,i,a,c,d,_,p,g,w,y,N,r=t[6].address+"",l=t[6].derivationPath+"",v=(0,Ae.weiToEth)(t[6].balance.value.toString())+"",h=t[6].balance.asset+"";function M(){return t[5](t[6])}return{c(){e=m("tr"),n=m("td"),o=z(r),s=E(),i=m("td"),a=z(l),c=E(),d=m("td"),_=z(v),p=E(),g=z(h),w=E(),lt(n,"font-family","'Courier New', Courier, monospace"),f(n,"class","svelte-1u0a3bu"),f(i,"class","svelte-1u0a3bu"),f(d,"class","asset-td svelte-1u0a3bu"),f(e,"class","pointer svelte-1u0a3bu"),I(e,"selected-row",t[0]&&t[0].address===t[6].address)},m(P,T){x(P,e,T),u(e,n),u(n,o),u(e,s),u(e,i),u(i,a),u(e,c),u(e,d),u(d,_),u(d,p),u(d,g),u(e,w),y||(N=L(e,"click",M),y=!0)},p(P,T){t=P,2&T&&r!==(r=t[6].address+"")&&J(o,r),2&T&&l!==(l=t[6].derivationPath+"")&&J(a,l),2&T&&v!==(v=(0,Ae.weiToEth)(t[6].balance.value.toString())+"")&&J(_,v),2&T&&h!==(h=t[6].balance.asset+"")&&J(g,h),3&T&&I(e,"selected-row",t[0]&&t[0].address===t[6].address)},d(P){P&&k(e),y=!1,N()}}}function fr(t){let e,n,r,o,s,i,l,a=t[1]&&t[1].length&&Yt(t);return{c(){e=m("div"),n=m("table"),r=m("colgroup"),r.innerHTML='<col style="width: 50%;"/> \n <col style="width: 28%;"/> \n <col style="width: 22%;"/>',o=E(),s=m("thead"),s.innerHTML='<tr><th class="svelte-1u0a3bu">Address</th> \n <th class="svelte-1u0a3bu">DPATH</th> \n <th class="svelte-1u0a3bu">Asset</th></tr>',i=E(),l=m("tbody"),a&&a.c(),f(s,"class"," svelte-1u0a3bu"),f(l,"class","svelte-1u0a3bu"),f(n,"class","w-100 svelte-1u0a3bu"),f(e,"class","address-table svelte-1u0a3bu")},m(c,d){x(c,e,d),u(e,n),u(n,r),u(n,o),u(n,s),u(n,i),u(n,l),a&&a.m(l,null)},p(c,[d]){c[1]&&c[1].length?a?a.p(c,d):(a=Yt(c),a.c(),a.m(l,null)):a&&(a.d(1),a=null)},i:C,o:C,d(c){c&&k(e),a&&a.d()}}}function hr(t,e,n){let r,{accountsListObject:o}=e,{accountSelected:s}=e,{showEmptyAddresses:i}=e;const l=c=>{n(0,s=c)};return t.$$set=c=>{"accountsListObject"in c&&n(3,o=c.accountsListObject),"accountSelected"in c&&n(0,s=c.accountSelected),"showEmptyAddresses"in c&&n(4,i=c.showEmptyAddresses)},t.$$.update=()=>{24&t.$$.dirty&&n(1,r=i?o&&o.all:o&&o.filtered)},[s,r,l,o,i,c=>l(c)]}class pr extends be{constructor(e){super(),pe(this,e,hr,fr,fe,{accountsListObject:3,accountSelected:0,showEmptyAddresses:4},dr)}}function br(t){he(t,"svelte-14p0oc3",".loading-container.svelte-14p0oc3.svelte-14p0oc3{display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:inherit;font-size:inherit;color:inherit;margin-left:auto}span.svelte-14p0oc3.svelte-14p0oc3{font-family:inherit;font-size:0.889em;margin-top:1rem}.loading.svelte-14p0oc3.svelte-14p0oc3{display:inline-block;position:relative}.loading.svelte-14p0oc3 div.svelte-14p0oc3{box-sizing:border-box;font-size:inherit;display:block;position:absolute;border:3px solid;border-radius:50%;animation:svelte-14p0oc3-bn-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.loading.svelte-14p0oc3 .loading-first.svelte-14p0oc3{animation-delay:-0.45s}.loading.svelte-14p0oc3 .loading-second.svelte-14p0oc3{animation-delay:-0.3s}.loading.svelte-14p0oc3 .loading-third.svelte-14p0oc3{animation-delay:-0.15s}@keyframes svelte-14p0oc3-bn-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function $t(t){let e,n;return{c(){e=m("span"),n=z(t[0]),f(e,"class","svelte-14p0oc3")},m(r,o){x(r,e,o),u(e,n)},p(r,o){1&o&&J(n,r[0])},d(r){r&&k(e)}}}function vr(t){let e,n,r,o,s,i,l,a,c,d,v,_,p=t[0]&&$t(t);return{c(){e=m("div"),n=m("div"),r=m("div"),s=E(),i=m("div"),a=E(),c=m("div"),_=E(),p&&p.c(),f(r,"class","loading-first svelte-14p0oc3"),f(r,"style",o=`height: ${t[1]}; width: ${t[1]};`),f(i,"class","loading-second svelte-14p0oc3"),f(i,"style",l=`height: ${t[1]}; width: ${t[1]};`),f(c,"class","loading-third svelte-14p0oc3"),f(c,"style",d=`height: ${t[1]}; width: ${t[1]};`),f(n,"class","loading svelte-14p0oc3"),f(n,"style",v=`height: ${t[1]}; width: ${t[1]};`),f(e,"class","loading-container svelte-14p0oc3")},m(h,g){x(h,e,g),u(e,n),u(n,r),u(n,s),u(n,i),u(n,a),u(n,c),u(e,_),p&&p.m(e,null)},p(h,[g]){2&g&&o!==(o=`height: ${h[1]}; width: ${h[1]};`)&&f(r,"style",o),2&g&&l!==(l=`height: ${h[1]}; width: ${h[1]};`)&&f(i,"style",l),2&g&&d!==(d=`height: ${h[1]}; width: ${h[1]};`)&&f(c,"style",d),2&g&&v!==(v=`height: ${h[1]}; width: ${h[1]};`)&&f(n,"style",v),h[0]?p?p.p(h,g):(p=$t(h),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:C,o:C,d(h){h&&k(e),p&&p.d()}}}function mr(t,e,n){let{description:r=""}=e,{size:o="2rem"}=e;return t.$$set=s=>{"description"in s&&n(0,r=s.description),"size"in s&&n(1,o=s.size)},[r,o]}class gr extends be{constructor(e){super(),pe(this,e,mr,vr,fe,{description:0,size:1},br)}}function yr(t){he(t,"svelte-1t799sf","button.svelte-1t799sf{align-items:center;padding:0.5rem 0.5rem;color:var(--account-select-white, var(--onboard-white, var(--white)));border-radius:1.5rem;font-family:var(\n --account-select-font-family-normal,\n var(--font-family-normal, var(--font-family-normal))\n );font-style:normal;font-weight:bold;font-size:var(\n --account-select-font-size-6,\n var(--onboard-font-size-6, var(--font-size-6))\n );line-height:var(\n --account-select-font-line-height-1,\n var(--onboard-line-height-1, var(--line-height-1))\n );border:none;width:8rem}.scan-accounts-btn.svelte-1t799sf{background:var(--account-select-gray-500, var(--action-color));color:var(--account-select-primary-100, inherit);display:flex;justify-content:center;align-items:center;cursor:pointer}input.svelte-1t799sf:hover{border-color:var(\n --account-select-primary-500,\n var(--onboard-primary-300, var(--primary-300))\n )}input.svelte-1t799sf:focus{border-color:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );box-shadow:0 0 1px 1px\n var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );box-shadow:0 0 0 1px -moz-mac-focusring;outline:none}input.svelte-1t799sf:disabled{background:var(\n --account-select-accent-background-color,\n var(--onboard-gray-100, var(--gray-100))\n )}input[type='checkbox'].svelte-1t799sf{-webkit-appearance:none;width:auto;background:var(--account-select-background-color, var(--onboard-white, var(--white)));border:1px solid\n var(--account-select-gray-300, var(--onboard-gray-300, var(--gray-300)));padding:0.5em;border-radius:3px;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;height:0.5rem;width:0.5rem}input[type='checkbox'].svelte-1t799sf:hover{border-color:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n )}input[type='checkbox'].svelte-1t799sf:checked{background:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );border-color:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );color:var(--account-select-white, var(--onboard-white, var(--white)))}input[type='checkbox'].svelte-1t799sf:checked:after{content:url(\"data:image/svg+xml,%3Csvg width='0.885em' height='0.6em' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 6L5 11L14 2L12.59 0.58L5 8.17L1.41 4.59L0 6Z' fill='white'/%3E%3C/svg%3E\");font-size:var(\n --account-select-font-size-7,\n var(--onboard-font-size-7, var(--font-size-7))\n );position:absolute;color:var(--account-select-white, var(--onboard-white, var(--white)))}.checkbox-container.svelte-1t799sf{display:flex;align-items:center;position:absolute;top:238px;left:14px;font-size:14px}.checkbox-input.svelte-1t799sf{margin-right:0.5rem}.error-msg.svelte-1t799sf{color:var(\n --account-select-danger-500,\n var(--onboard-danger-500, var(--danger-500))\n );font-size:var(--account-select-font-size-7, var(--font-size-7));max-width:15rem;line-height:1;position:absolute;top:260px;left:18px}.table-controls.svelte-1t799sf{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:0.5rem;border-radius:0.4rem 0.4rem 0 0;background:var(--account-select-accent-background-color, var(--border-color))}.cursor-pointer.svelte-1t799sf{cursor:pointer}@media all and (min-width: 768px){.checkbox-container.svelte-1t799sf{display:flex;align-items:center;position:unset;top:unset;left:unset;font-size:unset}.checkbox-input.svelte-1t799sf{margin-right:0.75rem}.error-msg.svelte-1t799sf{position:unset;top:unset;left:unset}.table-controls.svelte-1t799sf{height:3.5rem;justify-content:space-between}input[type='checkbox'].svelte-1t799sf{height:1.5rem;width:1.5rem}button.svelte-1t799sf{padding:0.75rem 1.5rem;font-size:var(\n --account-select-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n );width:unset}}@media all and (max-width: 326px){.checkbox-container.svelte-1t799sf{top:328px}.error-msg.svelte-1t799sf{top:350px}}")}function Gt(t){let e,n;return{c(){e=m("span"),n=z(t[3]),f(e,"class","error-msg svelte-1t799sf")},m(r,o){x(r,e,o),u(e,n)},p(r,o){8&o&&J(n,r[3])},d(r){r&&k(e)}}}function Qt(t){let e,n,r;return n=new gr({props:{size:"1.5rem"}}),{c(){e=z("Scanning...\n "),We(n.$$.fragment)},m(o,s){x(o,e,s),Ce(n,o,s),r=!0},i(o){r||(K(n.$$.fragment,o),r=!0)},o(o){re(n.$$.fragment,o),r=!1},d(o){o&&k(e),Oe(n,o)}}}function Jt(t){let e;return{c(){e=z("Scan Accounts")},m(n,r){x(n,e,r)},d(n){n&&k(e)}}}function _r(t){let e,n,r,o,s,i,l,a,c,d,v,_,p=t[3]&&Gt(t),h=t[2]&&Qt(),g=!t[2]&&Jt();return{c(){e=m("div"),n=m("div"),r=m("input"),o=E(),s=m("label"),s.textContent="Show Empty Addresses",i=E(),p&&p.c(),l=E(),a=m("button"),h&&h.c(),c=E(),g&&g.c(),f(r,"id","show-empty-addresses"),f(r,"type","checkbox"),f(r,"class","checkbox-input svelte-1t799sf"),f(s,"for","show-empty-addresses"),f(s,"class","ml2 cursor-pointer font-5 svelte-1t799sf"),f(n,"class","checkbox-container svelte-1t799sf"),f(a,"class","scan-accounts-btn svelte-1t799sf"),f(a,"id","scan-accounts"),f(e,"class","table-controls svelte-1t799sf")},m(w,y){x(w,e,y),u(e,n),u(n,r),r.checked=t[0],u(n,o),u(n,s),u(e,i),p&&p.m(e,null),u(e,l),u(e,a),h&&h.m(a,null),u(a,c),g&&g.m(a,null),d=!0,v||(_=[L(r,"change",t[4]),L(a,"click",t[5])],v=!0)},p(w,[y]){1&y&&(r.checked=w[0]),w[3]?p?p.p(w,y):(p=Gt(w),p.c(),p.m(e,l)):p&&(p.d(1),p=null),w[2]?h?4&y&&K(h,1):(h=Qt(),h.c(),K(h,1),h.m(a,c)):h&&(te={r:0,c:[],p:te},re(h,1,1,()=>{h=null}),te.r||$(te.c),te=te.p),w[2]?g&&(g.d(1),g=null):g||(g=Jt(),g.c(),g.m(a,null))},i(w){d||(K(h),d=!0)},o(w){re(h),d=!1},d(w){w&&k(e),p&&p.d(),h&&h.d(),g&&g.d(),v=!1,$(_)}}}function wr(t,e,n){let{scanAccounts:r}=e,{loadingAccounts:o}=e,{showEmptyAddresses:s}=e,{errorFromScan:i}=e;const a=function(){var c=(0,ce.Z)(function*(){return yield r()});return function(){return c.apply(this,arguments)}}();return t.$$set=c=>{"scanAccounts"in c&&n(1,r=c.scanAccounts),"loadingAccounts"in c&&n(2,o=c.loadingAccounts),"showEmptyAddresses"in c&&n(0,s=c.showEmptyAddresses),"errorFromScan"in c&&n(3,i=c.errorFromScan)},[s,r,o,i,function(){s=this.checked,n(0,s)},a]}class kr extends be{constructor(e){super(),pe(this,e,wr,_r,fe,{scanAccounts:1,loadingAccounts:2,showEmptyAddresses:0,errorFromScan:3},yr)}}function xr(t){he(t,"svelte-1vabcrr","select.svelte-1vabcrr{display:block;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;font-family:inherit;background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23242835%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),\n linear-gradient(to bottom, transparent 0%, transparent 100%);background-repeat:no-repeat, repeat;background-position:right 1rem top 1rem, 0 0;background-size:0.65em auto, 100%;scrollbar-width:none;width:100%;padding:0.5rem 1.8rem 0.5rem 1rem;border-radius:8px;font-size:var(\n --account-select-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n );transition:all 200ms ease-in-out;border:2px solid var(--account-select-gray-200, var(--border-color));box-sizing:border-box;height:3rem;-ms-overflow-style:none}select.svelte-1vabcrr::-webkit-scrollbar,input.svelte-1vabcrr::-webkit-scrollbar{display:none}select.svelte-1vabcrr::-ms-expand,input.svelte-1vabcrr::-ms-expand{display:none}input[type='text'].svelte-1vabcrr{display:block;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;scrollbar-width:none;width:100%;padding:0.5rem 2.6rem 0.5rem 1rem;border-radius:8px;font-size:var(\n --account-select-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n );line-height:var(\n --account-select-font-line-height-1,\n var(--onboard-font-line-height-1, var(--font-line-height-1))\n );color:var(\n --account-select-gray-600,\n var(--onboard-gray-600, var(--gray-600))\n );transition:all 200ms ease-in-out;border:2px solid\n var(--account-select-gray-200, var(--onboard-gray-200, var(--gray-200)));box-sizing:border-box;height:3rem;-ms-overflow-style:none}button.svelte-1vabcrr{align-items:center;padding:0.75rem 1.5rem;color:var(--account-select-white, var(--onboard-white, var(--white)));border-radius:1.5rem;font-family:var(\n --account-select-font-family-normal,\n var(--onboard-font-family-normal, var(--font-family-normal))\n );font-style:normal;font-weight:bold;font-size:var(\n --account-select-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n );line-height:var(\n --account-select-font-line-height-1,\n var(--onboard-line-height-1, var(--line-height-1))\n );border:none}.connect-btn.svelte-1vabcrr:disabled{background:var(\n --account-select-primary-300,\n var(--onboard-primary-300, var(--primary-300))\n );cursor:default}.connect-btn.svelte-1vabcrr{background:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );cursor:pointer}.dismiss-action.svelte-1vabcrr{color:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );cursor:pointer;margin-left:var(\n --account-select-margin-4,\n var(--onboard-margin-4, var(--margin-4))\n )}select.svelte-1vabcrr:hover,input.svelte-1vabcrr:hover{border-color:var(\n --account-select-primary-300,\n var(--onboard-primary-300, var(--primary-300))\n )}select.svelte-1vabcrr:focus,input.svelte-1vabcrr:focus{border-color:var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );box-shadow:0 0 1px 1px\n var(\n --account-select-primary-500,\n var(--onboard-primary-500, var(--primary-500))\n );box-shadow:0 0 0 1px -moz-mac-focusring;outline:none}select.svelte-1vabcrr:disabled{background:var(\n --account-select-accent-background-color,\n var(--onboard-gray-100, var(--gray-100))\n )}option.svelte-1vabcrr{font-weight:300}.close.svelte-1vabcrr{cursor:pointer;padding:0.5rem}.container.svelte-1vabcrr{font-family:var(--onboard-font-family-normal, var(--font-family-normal));color:var(--account-select-text-color, var(--text-color));position:fixed;top:0;right:0;z-index:var(\n --onboard-account-select-modal-z-index,\n var(--account-select-modal-z-index)\n );display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px);background:var(--account-select-background-color, rgba(0, 0, 0, 0.2))}.fixed.svelte-1vabcrr{position:fixed}.h-w-100.svelte-1vabcrr{width:100vw;height:100vh}.hardware-connect-modal.svelte-1vabcrr{width:100%;flex-flow:column;display:flex;max-height:51.75rem;background:var(--account-select-background-color, var(--background-color));box-shadow:var(\n --account-select-shadow,\n var(--onboard-shadow-1, var(--shadow-1))\n );border-radius:1.5rem}.account-select-modal-position.svelte-1vabcrr{position:absolute;top:var(\n --onboard-account-select-modal-top,\n var(--account-select-modal-top)\n );bottom:var(\n --onboard-account-select-modal-bottom,\n var(--account-select-modal-bottom)\n );left:var(\n --onboard-account-select-modal-left,\n var(--account-select-modal-left)\n );right:var(\n --onboard-account-select-modal-right,\n var(--account-select-modal-right)\n );max-height:100vh;overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.account-select-modal-position.svelte-1vabcrr::-webkit-scrollbar{display:none}.connect-wallet-header.svelte-1vabcrr{position:relative;border-bottom:1px solid var(--border-color, transparent);border-radius:1.5rem 1.5rem 0 0;display:flex;justify-content:space-between;align-items:center;width:100%}.modal-controls.svelte-1vabcrr{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:1rem;padding-top:0}.control-label.svelte-1vabcrr{font-style:normal;font-weight:bold;font-size:var(\n --account-select-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n );line-height:var(\n --account-select-font-line-height-1,\n var(--onboard-font-line-height-1, var(--font-line-height-1))\n );margin-top:var(\n --account-select-margin-5,\n var(--onboard-margin-5, var(--margin-5))\n );margin-bottom:var(\n --account-select-margin-5,\n var(--onboard-margin-5, var(--margin-5))\n );color:var(--account-select-gray-700, inherit)}.asset-select.svelte-1vabcrr{width:6rem}.network-select.svelte-1vabcrr{min-width:12rem}.w-100.svelte-1vabcrr{width:100%}.base-path-container.svelte-1vabcrr{position:relative;margin-right:var(\n --account-select-margin-5,\n var(--onboard-margin-5, var(--margin-5))\n )}.hidden-input-select.svelte-1vabcrr{position:absolute;top:2.7rem;right:0.2rem;width:2.5rem;height:2.5rem;background:transparent;cursor:pointer}.asset-container.svelte-1vabcrr{margin-right:var(\n --account-select-margin-5,\n var(--onboard-margin-5, var(--margin-5))\n )}.table-section.svelte-1vabcrr{max-height:31.8rem;padding:1rem;margin-top:2rem}.table-container.svelte-1vabcrr{border:2px solid var(--account-select-gray-200, var(--border-color));box-sizing:border-box;border-radius:0.5rem}.address-found-count.svelte-1vabcrr{padding:0 2rem}@media all and (min-width: 768px){.hardware-connect-modal.svelte-1vabcrr{width:50rem;display:table;flex-flow:unset}.modal-controls.svelte-1vabcrr{flex-wrap:nowrap}.base-path-select.svelte-1vabcrr{min-width:20rem}.table-section.svelte-1vabcrr{margin-top:unset}.account-select-modal-position.svelte-1vabcrr{max-height:unset;overflow:unset}}")}function Kt(t,e,n){const r=t.slice();return r[26]=e[n],r}function Xt(t,e,n){const r=t.slice();return r[29]=e[n],r}function qt(t,e,n){const r=t.slice();return r[32]=e[n],r}function Er(t){let e,n,r,o,s=t[7],i=[];for(let a=0;a<s.length;a+=1)i[a]=en(qt(t,s,a));let l=t[10]&&function(t){let e;return{c(){e=m("option"),e.textContent="Custom Derivation Path",e.__value="customPath",e.value=e.__value,f(e,"class","svelte-1vabcrr")},m(n,r){x(n,e,r)},d(n){n&&k(e)}}}();return{c(){e=m("select");for(let a=0;a<i.length;a+=1)i[a].c();n=Bt(),l&&l.c(),f(e,"class","base-path-select svelte-1vabcrr")},m(a,c){x(a,e,c);for(let d=0;d<i.length;d+=1)i[d]&&i[d].m(e,null);u(e,n),l&&l.m(e,null),r||(o=L(e,"change",t[12]),r=!0)},p(a,c){if(128&c[0]){let d;for(s=a[7],d=0;d<s.length;d+=1){const v=qt(a,s,d);i[d]?i[d].p(v,c):(i[d]=en(v),i[d].c(),i[d].m(e,n))}for(;d<i.length;d+=1)i[d].d(1);i.length=s.length}},d(a){a&&k(e),De(i,a),l&&l.d(),r=!1,o()}}}function Sr(t){let e,n,r,o,s;return{c(){e=m("input"),n=E(),r=m("span"),f(e,"type","text"),f(e,"class","base-path-select svelte-1vabcrr"),f(e,"placeholder","type/your/custom/path..."),f(r,"class","hidden-input-select svelte-1vabcrr")},m(i,l){x(i,e,l),x(i,n,l),x(i,r,l),o||(s=[L(e,"change",t[14]),L(r,"click",t[13])],o=!0)},p:C,d(i){i&&k(e),i&&k(n),i&&k(r),o=!1,$(s)}}}function en(t){let e,r,o,i,l,n=t[32].label+"",s=t[32].value+"";return{c(){e=m("option"),r=z(n),o=z(" - "),i=z(s),l=E(),e.__value=t[32].value,e.value=e.__value,f(e,"class","svelte-1vabcrr")},m(a,c){x(a,e,c),u(e,r),u(e,o),u(e,i),u(e,l)},p:C,d(a){a&&k(e)}}}function tn(t){let e,r,o,n=t[29].label+"";return{c(){e=m("option"),r=z(n),o=E(),e.__value=t[29],e.value=e.__value,f(e,"class","svelte-1vabcrr")},m(s,i){x(s,e,i),u(e,r),u(e,o)},p:C,d(s){s&&k(e)}}}function nn(t){let e,r,o,n=t[26].label+"";return{c(){e=m("option"),r=z(n),o=E(),e.__value=t[26].id,e.value=e.__value,f(e,"class","svelte-1vabcrr")},m(s,i){x(s,e,i),u(e,r),u(e,o)},p:C,d(s){s&&k(e)}}}function rn(t){let n,r,s,i,e=(t[0]&&t[0].all.length||0)+"",o=t[0]&&1!==t[0].all.length?"es":"";return{c(){n=z(e),r=z(" total address"),s=z(o),i=z(" found")},m(l,a){x(l,n,a),x(l,r,a),x(l,s,a),x(l,i,a)},p(l,a){1&a[0]&&e!==(e=(l[0]&&l[0].all.length||0)+"")&&J(n,e),1&a[0]&&o!==(o=l[0]&&1!==l[0].all.length?"es":"")&&J(s,o)},d(l){l&&k(n),l&&k(r),l&&k(s),l&&k(i)}}}function on(t){let n,r,s,i,e=(t[0]&&t[0].filtered.length||0)+"",o=t[0]&&1!==t[0].filtered.length?"es":"";return{c(){n=z(e),r=z(" total\n address"),s=z(o),i=z(" found")},m(l,a){x(l,n,a),x(l,r,a),x(l,s,a),x(l,i,a)},p(l,a){1&a[0]&&e!==(e=(l[0]&&l[0].filtered.length||0)+"")&&J(n,e),1&a[0]&&o!==(o=l[0]&&1!==l[0].filtered.length?"es":"")&&J(s,o)},d(l){l&&k(n),l&&k(r),l&&k(s),l&&k(i)}}}function Ar(t){let e,n,r,o,s,i,l,a,c,d,v,_,p,h,g,w,y,N,M,P,T,U,X,G,oe,q,Te,Ge,A,R,se,Le,ie,bt,fn,we,ke,hn,le,pn,Qe,ae,xe,vt,bn;function vn(b,j){return b[2]?Sr:b[2]?void 0:Er}l=new ur({});let Ee=vn(t),Z=Ee&&Ee(t),Se=t[8],F=[];for(let b=0;b<Se.length;b+=1)F[b]=tn(Xt(t,Se,b));let ze=t[9],H=[];for(let b=0;b<ze.length;b+=1)H[b]=nn(Kt(t,ze,b));function so(b){t[22](b)}let mn={scanAccounts:t[15],loadingAccounts:t[4],errorFromScan:t[5]};function io(b){t[23](b)}void 0!==t[3]&&(mn.showEmptyAddresses=t[3]),q=new kr({props:mn}),Ze.push(()=>Zt(q,"showEmptyAddresses",so));let gn={accountsListObject:t[0],showEmptyAddresses:t[3]};void 0!==t[1]&&(gn.accountSelected=t[1]),A=new pr({props:gn}),Ze.push(()=>Zt(A,"accountSelected",io));let V=t[3]&&rn(t),Y=!t[3]&&on(t);return{c(){e=m("div"),n=m("div"),r=m("header"),o=m("div"),s=E(),i=m("div"),We(l.$$.fragment),a=E(),c=m("section"),d=m("div"),v=m("h4"),v.textContent="Select Base Path",_=E(),Z&&Z.c(),p=E(),h=m("div"),g=m("h4"),g.textContent="Asset",w=E(),y=m("select");for(let b=0;b<F.length;b+=1)F[b].c();N=E(),M=m("div"),P=m("h4"),P.textContent="Network",T=E(),U=m("select");for(let b=0;b<H.length;b+=1)H[b].c();X=E(),G=m("section"),oe=m("div"),We(q.$$.fragment),Ge=E(),We(A.$$.fragment),se=E(),Le=m("section"),ie=m("div"),V&&V.c(),bt=E(),Y&&Y.c(),fn=E(),we=m("div"),ke=m("div"),ke.textContent="Dismiss",hn=E(),le=m("button"),pn=z("Connect"),f(i,"class","close svelte-1vabcrr"),f(r,"class","connect-wallet-header svelte-1vabcrr"),f(v,"class","control-label svelte-1vabcrr"),f(d,"class","w-100 base-path-container svelte-1vabcrr"),f(g,"class","control-label svelte-1vabcrr"),f(y,"class","asset-select svelte-1vabcrr"),void 0===t[6].asset&&ne(()=>t[20].call(y)),f(h,"class","asset-container svelte-1vabcrr"),f(P,"class","control-label svelte-1vabcrr"),f(U,"class","network-select svelte-1vabcrr"),void 0===t[6].chainId&&ne(()=>t[21].call(U)),f(M,"class","network-container"),f(c,"class","modal-controls svelte-1vabcrr"),f(oe,"class","w-100 table-container svelte-1vabcrr"),f(G,"class","table-section svelte-1vabcrr"),f(ie,"class","address-found-count svelte-1vabcrr"),f(ke,"class","dismiss-action svelte-1vabcrr"),f(ke,"id","dismiss-account-select"),f(le,"class","connect-btn svelte-1vabcrr"),f(le,"id","connect-accounts"),le.disabled=Qe=!t[1],f(we,"class","modal-controls svelte-1vabcrr"),f(n,"class","hardware-connect-modal svelte-1vabcrr"),I(n,"account-select-modal-position",!t[11]),f(e,"class","container svelte-1vabcrr"),I(e,"h-w-100",!t[11]),I(e,"fixed",!t[11])},m(b,j){x(b,e,j),u(e,n),u(n,r),u(r,o),u(r,s),u(r,i),Ce(l,i,null),u(n,a),u(n,c),u(c,d),u(d,v),u(d,_),Z&&Z.m(d,null),u(c,p),u(c,h),u(h,g),u(h,w),u(h,y);for(let W=0;W<F.length;W+=1)F[W]&&F[W].m(y,null);Ne(y,t[6].asset,!0),u(c,N),u(c,M),u(M,P),u(M,T),u(M,U);for(let W=0;W<H.length;W+=1)H[W]&&H[W].m(U,null);Ne(U,t[6].chainId,!0),u(n,X),u(n,G),u(G,oe),Ce(q,oe,null),u(oe,Ge),Ce(A,oe,null),u(n,se),u(n,Le),u(Le,ie),V&&V.m(ie,null),u(ie,bt),Y&&Y.m(ie,null),u(Le,fn),u(Le,we),u(we,ke),u(we,hn),u(we,le),u(le,pn),xe=!0,vt||(bn=[L(i,"click",t[17]),L(y,"change",t[20]),L(U,"change",t[21]),L(ke,"click",t[17]),L(le,"click",t[16])],vt=!0)},p(b,j){if(Ee===(Ee=vn(b))&&Z?Z.p(b,j):(Z&&Z.d(1),Z=Ee&&Ee(b),Z&&(Z.c(),Z.m(d,null))),256&j[0]){let S;for(Se=b[8],S=0;S<Se.length;S+=1){const Me=Xt(b,Se,S);F[S]?F[S].p(Me,j):(F[S]=tn(Me),F[S].c(),F[S].m(y,null))}for(;S<F.length;S+=1)F[S].d(1);F.length=Se.length}if(320&j[0]&&Ne(y,b[6].asset),512&j[0]){let S;for(ze=b[9],S=0;S<ze.length;S+=1){const Me=Kt(b,ze,S);H[S]?H[S].p(Me,j):(H[S]=nn(Me),H[S].c(),H[S].m(U,null))}for(;S<H.length;S+=1)H[S].d(1);H.length=ze.length}320&j[0]&&Ne(U,b[6].chainId);const W={};16&j[0]&&(W.loadingAccounts=b[4]),32&j[0]&&(W.errorFromScan=b[5]),!Te&&8&j[0]&&(Te=!0,W.showEmptyAddresses=b[3],Ut(()=>Te=!1)),q.$set(W);const Je={};1&j[0]&&(Je.accountsListObject=b[0]),8&j[0]&&(Je.showEmptyAddresses=b[3]),!R&&2&j[0]&&(R=!0,Je.accountSelected=b[1],Ut(()=>R=!1)),A.$set(Je),b[3]?V?V.p(b,j):(V=rn(b),V.c(),V.m(ie,bt)):V&&(V.d(1),V=null),b[3]?Y&&(Y.d(1),Y=null):Y?Y.p(b,j):(Y=on(b),Y.c(),Y.m(ie,null)),(!xe||2&j[0]&&Qe!==(Qe=!b[1]))&&(le.disabled=Qe)},i(b){xe||(K(l.$$.fragment,b),K(q.$$.fragment,b),K(A.$$.fragment,b),ne(()=>{!xe||(ae||(ae=Ye(n,$e,{},!0)),ae.run(1))}),xe=!0)},o(b){re(l.$$.fragment,b),re(q.$$.fragment,b),re(A.$$.fragment,b),ae||(ae=Ye(n,$e,{},!1)),ae.run(0),xe=!1},d(b){b&&k(e),Oe(l),Z&&Z.d(),De(F,b),De(H,b),Oe(q),Oe(A),V&&V.d(),Y&&Y.d(),b&&ae&&ae.end(),vt=!1,$(bn)}}}function Pr(t,e,n){let{selectAccountOptions:r}=e,{accounts$:o}=e;const{basePaths:s,assets:i,chains:l,scanAccounts:a,supportsCustomPath:c=!0,containerElement:d}=r;let v,_,p=!1,h=!0,g=!1,w="",y={derivationPath:s[0]&&s[0].value||"",chainId:l[0].id||"",asset:i[0]||null};const T=function(){var A=(0,ce.Z)(function*(){try{n(5,w=""),n(4,g=!0);const R=yield a(y);n(0,v={all:R,filtered:R.filter(se=>parseFloat((0,Ae.weiToEth)(se.balance.value.toString()))>0)}),n(4,g=!1)}catch(R){const{message:se}=R;"string"==typeof se&&se.includes("could not detect network")?n(5,w="There was an error detecting connected network from RPC endpoint"):n(5,w=se||"There was an error scanning for accounts"),n(4,g=!1)}});return function(){return A.apply(this,arguments)}}(),G=()=>{n(1,_=void 0),n(0,v=void 0),n(3,h=!0),n(6,y.derivationPath=s[0]&&s[0].value||"",y)};return t.$$set=A=>{"selectAccountOptions"in A&&n(18,r=A.selectAccountOptions),"accounts$"in A&&n(19,o=A.accounts$)},[v,_,p,h,g,w,y,s,i,l,c,d,A=>{let R=A.target.value;if("customPath"===R)return n(2,p=!0);n(6,y.derivationPath=R,y)},()=>{n(2,p=!1),n(6,y.derivationPath=s[0].value,y)},A=>{n(6,y.derivationPath=A.target.value,y)},T,()=>{!_||(o.next([_]),G())},()=>{o.next([]),G()},r,o,function(){y.asset=Dt(this),n(6,y),n(8,i)},function(){y.chainId=Dt(this),n(6,y),n(8,i)},function(A){h=A,n(3,h)},function(A){_=A,n(1,_)}]}class jr extends be{constructor(e){super(),pe(this,e,Pr,Ar,fe,{selectAccountOptions:18,accounts$:19},xr,[-1,-1])}}const ht=new Et,Cr=D.object({label:D.string().required(),value:D.string().required()}),Or=D.array().items(Cr),Tr=D.array().items(Ae.chainValidation),Lr=D.object({label:D.string().required(),address:D.string()}),Mr=D.array().items(Lr),Ir=D.object({basePaths:Or,assets:Mr,chains:Tr,scanAccounts:D.function().arity(1).required(),supportsCustomPath:D.bool(),consecutiveEmptyAccountThreshold:D.number(),containerElement:D.string()}),Hr=function(){var t=(0,ce.Z)(function*(e){if(e){const r=(t=>(0,Ae.validate)(Ir,t))(e);if(r)throw r}const n=Br(e,ht);return ht.pipe(Bn(1)).subscribe(()=>{n.$destroy()}),function(t,e){return new Promise((r,o)=>{const s=new He({next:i=>{r(i),s.unsubscribe()},error:o,complete:()=>{o(new Dn)}});t.subscribe(s)})}(ht)});return function(n){return t.apply(this,arguments)}}(),Br=(t,e)=>{class n extends HTMLElement{constructor(){super()}}customElements.get("account-select")||customElements.define("account-select",n);const r=document.createElement("account-select"),o=r.attachShadow({mode:"open"});r.style.all="initial",o.innerHTML="\n <style>\n :host {\n /* COLORS */\n --white: white;\n --black: black;\n --primary-100: #eff1fc;\n --primary-200: #d0d4f7;\n --primary-300: #b1b8f2;\n --primary-500: #6370e5;\n --primary-600: #454ea0;\n --gray-100: #ebebed;\n --gray-200: #c2c4c9;\n --gray-300: #999ca5;\n --gray-500: #33394b;\n --gray-700: #1a1d26;\n --danger-500: #ff4f4f;\n\n /* FONTS */\n --font-family-normal: var(--w3o-font-family, Inter, sans-serif);\n --font-size-5: 1rem;\n --font-size-6: .875rem;\n --font-size-7: .75rem;\n --font-line-height-1: 24px;\n\n /* SPACING */\n --margin-4: 1rem;\n --margin-5: 0.5rem;\n\n /* MODAL POSITION */\n --account-select-modal-z-index: 20;\n --account-select-modal-top: unset;\n --account-select-modal-right: unset;\n --account-select-modal-bottom: unset;\n --account-select-modal-left: unset;\n\n /* SHADOWS */\n --shadow-1: 0px 4px 12px rgba(0, 0, 0, 0.1);\n\n /* THEMING */\n --background-color: var(--w3o-background-color, #FFF);\n --foreground-color: var(--w3o-foreground-color);\n --text-color: var(--w3o-text-color, inherit);\n --border-color: var(--w3o-border-color, var(--gray-200));\n --action-color: var(--w3o-action-color, var(--primary-500));\n }\n </style>\n ";const s=t.containerElement||"body",i=document.querySelector(s);if(!i)throw new Error(`Element with query ${s} does not exist.`);return i.appendChild(r),new jr({target:o,props:{selectAccountOptions:t,accounts$:e}})};function Dr(t){he(t,"svelte-xcex94","aside.svelte-xcex94{display:flex;font-family:'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;justify-content:center;align-items:center;position:fixed;font-size:16px;top:0;left:0;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.3);z-index:var(--onboard-common-modal-index, 20)}@media screen and (max-width: 420px){aside.svelte-xcex94{font-size:14px}}section.svelte-xcex94{display:block;box-sizing:content-box;background:#ffffff;border-radius:10px;box-shadow:0 1px 5px 0 rgba(0, 0, 0, 0.1);font-family:inherit;font-size:inherit;padding:1.33em;position:relative;overflow:hidden;max-width:37em;color:#4a4a4a}div.svelte-xcex94{height:0.66em;position:absolute;padding:0.25em;top:1.33em;right:1.33em;font-size:inherit;font-family:inherit;border-radius:5px;transition:background 200ms ease-in-out;display:flex;justify-content:center;align-items:center}div.svelte-xcex94:hover{cursor:pointer;background:#eeeeee}svg.svelte-xcex94{width:10px;height:10px}")}function sn(t){let e,n,r,o,s,i,l,a,c,d,v,_,p,h,g,w,y,N,M,P,T,U;return{c(){e=m("div"),n=O("svg"),r=O("g"),o=O("path"),s=O("g"),i=O("g"),l=O("g"),a=O("g"),c=O("g"),d=O("g"),v=O("g"),_=O("g"),p=O("g"),h=O("g"),g=O("g"),w=O("g"),y=O("g"),N=O("g"),M=O("g"),f(o,"d","M28.228,23.986L47.092,5.122c1.172-1.171,1.172-3.071,0-4.242c-1.172-1.172-3.07-1.172-4.242,0L23.986,19.744L5.121,0.88\n c-1.172-1.172-3.07-1.172-4.242,0c-1.172,1.171-1.172,3.071,0,4.242l18.865,18.864L0.879,42.85c-1.172,1.171-1.172,3.071,0,4.242\n C1.465,47.677,2.233,47.97,3,47.97s1.535-0.293,2.121-0.879l18.865-18.864L42.85,47.091c0.586,0.586,1.354,0.879,2.121,0.879\n s1.535-0.293,2.121-0.879c1.172-1.171,1.172-3.071,0-4.242L28.228,23.986z"),f(n,"xmlns","http://www.w3.org/2000/svg"),f(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),f(n,"x","0px"),f(n,"y","0px"),f(n,"viewBox","0 0 47.971 47.971"),lt(n,"enable-background","new 0 0 47.971 47.971"),lt(n,"transition","fill 150ms ease-in-out"),f(n,"fill",P=t[2]?"#4a4a4a":"#9B9B9B"),f(n,"xml:space","preserve"),f(n,"class","svelte-xcex94"),f(e,"class","bn-onboard-custom bn-onboard-modal-content-close svelte-xcex94")},m(X,G){x(X,e,G),u(e,n),u(n,r),u(r,o),u(n,s),u(n,i),u(n,l),u(n,a),u(n,c),u(n,d),u(n,v),u(n,_),u(n,p),u(n,h),u(n,g),u(n,w),u(n,y),u(n,N),u(n,M),T||(U=[L(e,"click",function(){ve(t[0])&&t[0].apply(this,arguments)}),L(e,"mouseenter",t[5]),L(e,"mouseleave",t[6])],T=!0)},p(X,G){t=X,4&G&&P!==(P=t[2]?"#4a4a4a":"#9B9B9B")&&f(n,"fill",P)},d(X){X&&k(e),T=!1,$(U)}}}function Nr(t){let e,n,r,o,s,i,l;const a=t[4].default,c=Ct(a,t,t[3],null);let d=t[1]&&sn(t);return{c(){e=m("aside"),n=m("section"),c&&c.c(),r=E(),d&&d.c(),f(n,"class","bn-onboard-custom bn-onboard-modal-content svelte-xcex94"),f(e,"class","bn-onboard-custom bn-onboard-modal svelte-xcex94")},m(v,_){x(v,e,_),u(e,n),c&&c.m(n,null),u(n,r),d&&d.m(n,null),s=!0,i||(l=[L(n,"click",Ur),L(e,"click",function(){ve(t[0])&&t[0].apply(this,arguments)})],i=!0)},p(v,[_]){t=v,c&&c.p&&(!s||8&_)&&Lt(c,a,t,t[3],s?Tt(a,t[3],_,null):Mt(t[3]),null),t[1]?d?d.p(t,_):(d=sn(t),d.c(),d.m(n,null)):d&&(d.d(1),d=null)},i(v){s||(K(c,v),ne(()=>{!s||(o||(o=Ye(e,$e,{},!0)),o.run(1))}),s=!0)},o(v){re(c,v),o||(o=Ye(e,$e,{},!1)),o.run(0),s=!1},d(v){v&&k(e),c&&c.d(v),d&&d.d(),v&&o&&o.end(),i=!1,$(l)}}}const Ur=t=>t.stopPropagation();function Rr(t,e,n){let l,{$$slots:r={},$$scope:o}=e,{closeModal:s=(()=>{})}=e,{closeable:i=!0}=e;return t.$$set=d=>{"closeModal"in d&&n(0,s=d.closeModal),"closeable"in d&&n(1,i=d.closeable),"$$scope"in d&&n(3,o=d.$$scope)},[s,i,l,o,r,()=>n(2,l=!0),()=>n(2,l=!1)]}class Zr extends be{constructor(e){super(),pe(this,e,Rr,Nr,fe,{closeModal:0,closeable:1},Dr)}}function Vr(t){he(t,"svelte-3sw9wd","button.svelte-3sw9wd{outline:none;background:inherit;font-size:0.889em;font-family:inherit;padding:0.55em 1.4em;cursor:pointer;color:#4a90e2;font-family:inherit;transition:background 150ms ease-in-out;line-height:1.15;opacity:1;transition:opacity 200ms}button.svelte-3sw9wd:focus{outline:none}.bn-onboard-prepare-button-right.svelte-3sw9wd{position:absolute;right:0}.bn-onboard-prepare-button-left.svelte-3sw9wd{position:absolute;left:0}.disabled.svelte-3sw9wd{cursor:inherit;pointer-events:none;opacity:0.4}.cta.svelte-3sw9wd{outline:1px solid #4a90e2;border-radius:40px}.cta.svelte-3sw9wd:hover{background:#ecf3fc}")}function Yr(t){let e,n,r,o;const s=t[5].default,i=Ct(s,t,t[4],null);return{c(){e=m("button"),i&&i.c(),e.disabled=t[2],f(e,"class","bn-onboard-custom bn-onboard-prepare-button svelte-3sw9wd"),I(e,"disabled",t[2]),I(e,"cta",t[3]),I(e,"bn-onboard-prepare-button-right","right"===t[1]),I(e,"bn-onboard-prepare-button-left","left"===t[1]),I(e,"bn-onboard-prepare-button-center","left"!==t[1]&&"right"!==t[1])},m(l,a){x(l,e,a),i&&i.m(e,null),n=!0,r||(o=L(e,"click",function(){ve(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(l,[a]){t=l,i&&i.p&&(!n||16&a)&&Lt(i,s,t,t[4],n?Tt(s,t[4],a,null):Mt(t[4]),null),(!n||4&a)&&(e.disabled=t[2]),(!n||4&a)&&I(e,"disabled",t[2]),(!n||8&a)&&I(e,"cta",t[3]),(!n||2&a)&&I(e,"bn-onboard-prepare-button-right","right"===t[1]),(!n||2&a)&&I(e,"bn-onboard-prepare-button-left","left"===t[1]),(!n||2&a)&&I(e,"bn-onboard-prepare-button-center","left"!==t[1]&&"right"!==t[1])},i(l){n||(K(i,l),n=!0)},o(l){re(i,l),n=!1},d(l){l&&k(e),i&&i.d(l),r=!1,o()}}}function Wr(t,e,n){let{$$slots:r={},$$scope:o}=e,{onclick:s=(()=>{})}=e,{position:i=""}=e,{disabled:l=!1}=e,{cta:a=!0}=e;return t.$$set=c=>{"onclick"in c&&n(0,s=c.onclick),"position"in c&&n(1,i=c.position),"disabled"in c&&n(2,l=c.disabled),"cta"in c&&n(3,a=c.cta),"$$scope"in c&&n(4,o=c.$$scope)},[s,i,l,a,o,r]}class $r extends be{constructor(e){super(),pe(this,e,Wr,Yr,fe,{onclick:0,position:1,disabled:2,cta:3},Vr)}}const pt="handlePinPress",ln="#EBEBED",an=(t,e,n="64px",r="64px")=>`\n <button\n class="pin-button"\n style="width: ${n}; height: ${r};"\n type="button"\n onclick="window.${pt}(${t})">\n ${e||'<svg class="pin-button-dot" viewBox="0 0 18 18" width="18" height="18">\n <circle cx="9" cy="9" r="9" ></circle>\n </svg>'}\n <div class="pin-button-bg">\n </button>\n`,cn=t=>`\n<form id="pin-phrase-form" class="pin-phrase-input-container">\n <input\n id="pin-phrase-input"\n placeholder="${"pin"===t?"PIN":""}"\n type="password"\n autocomplete="current-password"\n />\n ${"pin"===t?` <div class="del-button-wrapper">\n ${an(-1,'<svg class="del-button-icon" viewBox="0 0 24 24" focusable="false" class="chakra-icon css-onkibi" aria-hidden="true"><path fill="currentColor" d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></svg>',"38px","38px")}\n </div>`:""}\n</form>\n`,un="\n .keepkey-modal {\n max-width: 22rem;\n padding: 20px 10px;\n }\n .pin-phrase-input-container {\n display: flex;\n position: relative;\n align-items: center;\n margin: 20px 0;\n width: 100%;\n }\n #pin-phrase-input {\n background: inherit;\n font-size: 0.889em;\n font-family: inherit;\n border-width: 1px;\n border-style: solid;\n border-color: #242835;\n border-radius: 4px;\n padding-left: 0.5rem;\n padding-right: 4.1rem;\n transition: opacity 150ms ease-in-out;\n height: 42px;\n width: 100%;\n opacity: 0.6;\n outline: none;\n }\n #pin-phrase-input:hover, #pin-phrase-input:focus {\n opacity: 1;\n }\n .unlock-button {\n height: 26px;\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n }\n \n /* Overrides the branding on the modal*/\n .keepkey-modal + .bn-branding { visibility: hidden !important; }\n .keepkey-modal .bn-onboard-prepare-button {\n width: 100%;\n }\n",qr=`\n <style>${un}\n #entry {\n align-items: center;\n display: flex;\n flex-flow: column;\n padding: 20px;\n }\n .pin-pad-buttons {\n display: grid;\n grid-template-columns: repeat(3, 75px);\n grid-template-rows: repeat(3, 75px);\n align-items: center;\n justify-items: center;\n margin-bottom: 15px;\n }\n .pin-button {\n align-items: center;\n border-radius: 6px;\n border: 1px solid ${ln};\n cursor: pointer;\n display: flex;\n justify-content: center;\n font-size: 18px;\n overflow: hidden;\n padding: 0;\n background-color: unset;\n overflow: hidden;\n }\n .pin-button-bg {\n width: 100%;\n height: 100%;\n display: flex;\n overflow: hidden;\n background-color: ${ln};\n transition: opacity 100ms ease-in;\n }\n .pin-button-bg:hover {\n opacity: .2;\n }\n .pin-button-dot {\n fill: #33394B;\n position: absolute;\n pointer-events: none;\n z-index: 2;\n }\n .del-button-wrapper {\n position: absolute;\n height: 42px;\n width: 42px;\n right: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .del-button-wrapper > .pin-button {\n border: none;\n }\n .del-button-icon {\n position: absolute;\n width: 20px;\n z-index: 2;\n pointer-events: none;\n }\n .del-button-icon + div {\n opacity: .5;\n }\n .del-button-icon + div:hover {\n opacity: 1;\n }\n</style>\n <h2>Enter Your Pin</h2>\n <p>\n Use PIN layout shown on your device to find the location to press on this pin pad.\n </p>\n <div id="entry" class="bn-onboard-custom">\n ${`\n <div class="pin-pad-buttons">\n ${[7,8,9,4,5,6,1,2,3].map(t=>an(t)).join("")}\n </div>\n`}\n ${cn("pin")}\n </div>\n `,eo=`\n <style>${un}\n .keepkey-modal {\n padding: 40px 30px;\n }\n</style>\n <h2 style="margin-bottom: 35px">Enter Your Passphrase</h2>\n <div id="entry" class="bn-onboard-custom">\n ${cn("passphrase")}\n </div>\n`,to=(t,e,n,r)=>{const o="pin"===t?qr:eo,s=()=>document.getElementById("pin-phrase-input"),i=()=>{delete window[pt]};"pin"===t&&(window[pt]=h=>{const g=s();g.value=-1===h?g.value.slice(0,-1):g.value+h});const l=r||"body",a=document.querySelector(l);if(!a)throw new Error(`Element with query ${l} does not exist.`);const c=document.createElement("div");c.innerHTML=o,c.className="keepkey-modal";const d=new Zr({target:a,props:{closeModal:()=>{n(),i(),d.$destroy()},$$slots:dn(c),$$scope:{}}}),v=function(){var h=(0,ce.Z)(function*(){const g=s().value;e(g),d.$destroy()});return function(){return h.apply(this,arguments)}}(),_=document.getElementById("pin-phrase-form");_&&_.addEventListener("submit",h=>{h.preventDefault(),v()});const p=document.getElementById("entry");if(p){const h=document.createElement("span");h.innerHTML="Unlock",h.className="unlock-button",new $r({target:p,props:{onclick:(g=(0,ce.Z)(function*(){v(),i()}),function(){return g.apply(this,arguments)}),$$slots:dn(h),$$scope:{}}})}var g};function dn(t){return{default:[function(){return{c:C,m:function(n,r){x(n,t,r)},d:function(n){n&&k(t)},l:C}}]}}const no=function(){var t=(0,ce.Z)(function*({customNetwork:e,chainId:n}){const{default:r,Hardfork:o}=yield Promise.all([B.e(51),B.e(5871),B.e(5247),B.e(3945),B.e(2393),B.e(8592),B.e(4487)]).then(B.t.bind(B,44487,19)),s=r.default||r,i={hardfork:o.Berlin,eips:[1559]};let l;try{l=new s({chain:e||n,...i})}catch(a){if(!a.message||!/Chain.*not supported/.test(a.message))throw a;l=s.custom({chainId:n},i)}return l});return function(n){return t.apply(this,arguments)}}(),ro=t=>Object.keys(t).reduce((e,n)=>({...e,...e[n].toHexString?{[n]:e[n].toHexString()}:{}}),t),oo=t=>({request:({method:e,params:n})=>fetch(t(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:"42",method:e,params:n})}).then(function(){var r=(0,ce.Z)(function*(o){const s=yield o.json();if("error"in s)throw s.error;return s.result});return function(o){return r.apply(this,arguments)}}())})}}]);