-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path30.main.js
2 lines (2 loc) · 196 KB
/
30.main.js
1
2
/*! For license information please see 30.main.js.LICENSE.txt */
(self.webpackChunkrealm_whitelist_form=self.webpackChunkrealm_whitelist_form||[]).push([[30],{4249:(t,e,n)=>{const o=n(5293),r=n(6999),i=n(1250),a=n(8390);function s(t,e,n,i,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!o())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=i=void 0):2!==l||e.getContext||(i=n,n=e,e=void 0),new Promise((function(o,a){try{const a=r.create(n,i);o(t(a,e,i))}catch(t){a(t)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=i=void 0):3===l&&(e.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=e,e=void 0));try{const o=r.create(n,i);a(null,t(o,e,i))}catch(t){a(t)}}e.create=r.create,e.toCanvas=s.bind(null,i.render),e.toDataURL=s.bind(null,i.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},5293:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1201:(t,e,n)=>{const o=n(7052).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=o(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),i=[n-7];for(let t=1;t<e-1;t++)i[t]=i[t-1]-r;return i.push(6),i.reverse()},e.getPositions=function(t){const n=[],o=e.getRowColCoords(t),r=o.length;for(let t=0;t<r;t++)for(let e=0;e<r;e++)0===t&&0===e||0===t&&e===r-1||t===r-1&&0===e||n.push([o[t],o[e]]);return n}},4691:(t,e,n)=>{const o=n(1730),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(t){this.mode=o.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=i},7611:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},6424:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,o){const r=t*this.size+e;this.data[r]=n,o&&(this.reservedBit[r]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},2470:(t,e,n)=>{const o=n(2378),r=n(1730);function i(t){this.mode=r.BYTE,"string"==typeof t&&(t=o(t)),this.data=new Uint8Array(t)}i.getBitsLength=function(t){return 8*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},t.exports=i},719:(t,e,n)=>{const o=n(8906),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case o.L:return r[4*(t-1)+0];case o.M:return r[4*(t-1)+1];case o.Q:return r[4*(t-1)+2];case o.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case o.L:return i[4*(t-1)+0];case o.M:return i[4*(t-1)+1];case o.Q:return i[4*(t-1)+2];case o.H:return i[4*(t-1)+3];default:return}}},8906:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return n}}},2381:(t,e,n)=>{const o=n(7052).getSymbolSize;e.getPositions=function(t){const e=o(t);return[[0,0],[e-7,0],[0,e-7]]}},8208:(t,e,n)=>{const o=n(7052),r=o.getBCHDigit(1335);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let i=n<<10;for(;o.getBCHDigit(i)-r>=0;)i^=1335<<o.getBCHDigit(i)-r;return 21522^(n<<10|i)}},9198:(t,e)=>{const n=new Uint8Array(512),o=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)n[e]=t,o[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return o[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[o[t]+o[e]]}},771:(t,e,n)=>{const o=n(1730),r=n(7052);function i(t){this.mode=o.KANJI,this.data=t}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=i},734:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(t,n,o){switch(t){case e.Patterns.PATTERN000:return(n+o)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return o%3==0;case e.Patterns.PATTERN011:return(n+o)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2==0;case e.Patterns.PATTERN101:return n*o%2+n*o%3==0;case e.Patterns.PATTERN110:return(n*o%2+n*o%3)%2==0;case e.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let n=0,o=0,r=0,i=null,a=null;for(let s=0;s<e;s++){o=r=0,i=a=null;for(let l=0;l<e;l++){let e=t.get(s,l);e===i?o++:(o>=5&&(n+=o-5+3),i=e,o=1),e=t.get(l,s),e===a?r++:(r>=5&&(n+=r-5+3),a=e,r=1)}o>=5&&(n+=o-5+3),r>=5&&(n+=r-5+3)}return n},e.getPenaltyN2=function(t){const e=t.size;let n=0;for(let o=0;o<e-1;o++)for(let r=0;r<e-1;r++){const e=t.get(o,r)+t.get(o,r+1)+t.get(o+1,r)+t.get(o+1,r+1);4!==e&&0!==e||n++}return 3*n},e.getPenaltyN3=function(t){const e=t.size;let n=0,o=0,r=0;for(let i=0;i<e;i++){o=r=0;for(let a=0;a<e;a++)o=o<<1&2047|t.get(i,a),a>=10&&(1488===o||93===o)&&n++,r=r<<1&2047|t.get(a,i),a>=10&&(1488===r||93===r)&&n++}return 40*n},e.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let o=0;o<n;o++)e+=t.data[o];return 10*Math.abs(Math.ceil(100*e/n/5)-10)},e.applyMask=function(t,e){const o=e.size;for(let r=0;r<o;r++)for(let i=0;i<o;i++)e.isReserved(i,r)||e.xor(i,r,n(t,i,r))},e.getBestMask=function(t,n){const o=Object.keys(e.Patterns).length;let r=0,i=1/0;for(let a=0;a<o;a++){n(a),e.applyMask(a,t);const o=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),o<i&&(i=o,r=a)}return r}},1730:(t,e,n)=>{const o=n(8122),r=n(1445);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!o.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return n}}},1308:(t,e,n)=>{const o=n(1730);function r(t){this.mode=o.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,o;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),o=parseInt(n,10),t.put(o,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),o=parseInt(n,10),t.put(o,3*r+1))},t.exports=r},9261:(t,e,n)=>{const o=n(9198);e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let r=0;r<t.length;r++)for(let i=0;i<e.length;i++)n[r+i]^=o.mul(t[r],e[i]);return n},e.mod=function(t,e){let n=new Uint8Array(t);for(;n.length-e.length>=0;){const t=n[0];for(let r=0;r<e.length;r++)n[r]^=o.mul(e[r],t);let r=0;for(;r<n.length&&0===n[r];)r++;n=n.slice(r)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=e.mul(n,new Uint8Array([1,o.exp(r)]));return n}},6999:(t,e,n)=>{const o=n(7052),r=n(8906),i=n(7611),a=n(6424),s=n(1201),l=n(2381),c=n(734),d=n(719),h=n(8986),u=n(2850),m=n(8208),p=n(1730),g=n(9409);function f(t,e,n){const o=t.size,r=m.getEncodedBits(e,n);let i,a;for(i=0;i<15;i++)a=1==(r>>i&1),i<6?t.set(i,8,a,!0):i<8?t.set(i+1,8,a,!0):t.set(o-15+i,8,a,!0),i<8?t.set(8,o-i-1,a,!0):i<9?t.set(8,15-i-1+1,a,!0):t.set(8,15-i-1,a,!0);t.set(o-8,8,1,!0)}function v(t,e,n,r){let m;if(Array.isArray(t))m=g.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let o=e;if(!o){const e=g.rawSplit(t);o=u.getBestVersionForData(e,n)}m=g.fromString(t,o||40)}}const v=u.getBestVersionForData(m,n);if(!v)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<v)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+v+".\n")}else e=v;const w=function(t,e,n){const r=new i;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),p.getCharCountIndicator(e.mode,t)),e.write(r)}));const a=8*(o.getSymbolTotalCodewords(t)-d.getTotalCodewordsCount(t,e));for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const s=(a-r.getLengthInBits())/8;for(let t=0;t<s;t++)r.put(t%2?17:236,8);return function(t,e,n){const r=o.getSymbolTotalCodewords(e),i=r-d.getTotalCodewordsCount(e,n),a=d.getBlocksCount(e,n),s=a-r%a,l=Math.floor(r/a),c=Math.floor(i/a),u=c+1,m=l-c,p=new h(m);let g=0;const f=new Array(a),v=new Array(a);let w=0;const b=new Uint8Array(t.buffer);for(let t=0;t<a;t++){const e=t<s?c:u;f[t]=b.slice(g,g+e),v[t]=p.encode(f[t]),g+=e,w=Math.max(w,e)}const y=new Uint8Array(r);let x,C,$=0;for(x=0;x<w;x++)for(C=0;C<a;C++)x<f[C].length&&(y[$++]=f[C][x]);for(x=0;x<m;x++)for(C=0;C<a;C++)y[$++]=v[C][x];return y}(r,t,e)}(e,n,m),b=o.getSymbolSize(e),y=new a(b);return function(t,e){const n=t.size,o=l.getPositions(e);for(let e=0;e<o.length;e++){const r=o[e][0],i=o[e][1];for(let e=-1;e<=7;e++)if(!(r+e<=-1||n<=r+e))for(let o=-1;o<=7;o++)i+o<=-1||n<=i+o||(e>=0&&e<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===e||6===e)||e>=2&&e<=4&&o>=2&&o<=4?t.set(r+e,i+o,!0,!0):t.set(r+e,i+o,!1,!0))}}(y,e),function(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2==0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}(y),function(t,e){const n=s.getPositions(e);for(let e=0;e<n.length;e++){const o=n[e][0],r=n[e][1];for(let e=-2;e<=2;e++)for(let n=-2;n<=2;n++)-2===e||2===e||-2===n||2===n||0===e&&0===n?t.set(o+e,r+n,!0,!0):t.set(o+e,r+n,!1,!0)}}(y,e),f(y,n,0),e>=7&&function(t,e){const n=t.size,o=u.getEncodedBits(e);let r,i,a;for(let e=0;e<18;e++)r=Math.floor(e/3),i=e%3+n-8-3,a=1==(o>>e&1),t.set(r,i,a,!0),t.set(i,r,a,!0)}(y,e),function(t,e){const n=t.size;let o=-1,r=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(r,s-n)){let o=!1;a<e.length&&(o=1==(e[a]>>>i&1)),t.set(r,s-n,o),i--,-1===i&&(a++,i=7)}if(r+=o,r<0||n<=r){r-=o,o=-o;break}}}(y,w),isNaN(r)&&(r=c.getBestMask(y,f.bind(null,y,n))),c.applyMask(r,y),f(y,n,r),{modules:y,version:e,errorCorrectionLevel:n,maskPattern:r,segments:m}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,i,a=r.M;return void 0!==e&&(a=r.from(e.errorCorrectionLevel,r.M),n=u.from(e.version),i=c.from(e.maskPattern),e.toSJISFunc&&o.setToSJISFunction(e.toSJISFunc)),v(t,n,a,i)}},8986:(t,e,n)=>{const o=n(9261);function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=o.mod(e,this.genPoly),r=this.degree-n.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n},t.exports=r},1445:(t,e)=>{const n="[0-9]+";let o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+")(?:.|[\r\n]))+";e.KANJI=new RegExp(o,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(r,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+o+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return i.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},9409:(t,e,n)=>{const o=n(1730),r=n(1308),i=n(4691),a=n(2470),s=n(771),l=n(1445),c=n(7052),d=n(5987);function h(t){return unescape(encodeURIComponent(t)).length}function u(t,e,n){const o=[];let r;for(;null!==(r=t.exec(n));)o.push({data:r[0],index:r.index,mode:e,length:r[0].length});return o}function m(t){const e=u(l.NUMERIC,o.NUMERIC,t),n=u(l.ALPHANUMERIC,o.ALPHANUMERIC,t);let r,i;return c.isKanjiModeEnabled()?(r=u(l.BYTE,o.BYTE,t),i=u(l.KANJI,o.KANJI,t)):(r=u(l.BYTE_KANJI,o.BYTE,t),i=[]),e.concat(n,r,i).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function p(t,e){switch(e){case o.NUMERIC:return r.getBitsLength(t);case o.ALPHANUMERIC:return i.getBitsLength(t);case o.KANJI:return s.getBitsLength(t);case o.BYTE:return a.getBitsLength(t)}}function g(t,e){let n;const l=o.getBestModeForData(t);if(n=o.from(e,l),n!==o.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+o.toString(n)+".\n Suggested mode is: "+o.toString(l));switch(n!==o.KANJI||c.isKanjiModeEnabled()||(n=o.BYTE),n){case o.NUMERIC:return new r(t);case o.ALPHANUMERIC:return new i(t);case o.KANJI:return new s(t);case o.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(g(e,null)):e.data&&t.push(g(e.data,e.mode)),t}),[])},e.fromString=function(t,n){const r=function(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];switch(r.mode){case o.NUMERIC:e.push([r,{data:r.data,mode:o.ALPHANUMERIC,length:r.length},{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.ALPHANUMERIC:e.push([r,{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.KANJI:e.push([r,{data:r.data,mode:o.BYTE,length:h(r.data)}]);break;case o.BYTE:e.push([{data:r.data,mode:o.BYTE,length:h(r.data)}])}}return e}(m(t,c.isKanjiModeEnabled())),i=function(t,e){const n={},r={start:{}};let i=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],d=""+a+t;l.push(d),n[d]={node:c,lastCount:0},r[d]={};for(let t=0;t<i.length;t++){const a=i[t];n[a]&&n[a].node.mode===c.mode?(r[a][d]=p(n[a].lastCount+c.length,c.mode)-p(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),r[a][d]=p(c.length,c.mode)+4+o.getCharCountIndicator(c.mode,e))}}i=l}for(let t=0;t<i.length;t++)r[i[t]].end=0;return{map:r,table:n}}(r,n),a=d.find_path(i.map,"start","end"),s=[];for(let t=1;t<a.length-1;t++)s.push(i.table[a[t]].node);return e.fromArray(s.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(m(t,c.isKanjiModeEnabled()))}},7052:(t,e)=>{let n;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return o[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},8122:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2850:(t,e,n)=>{const o=n(7052),r=n(719),i=n(8906),a=n(1730),s=n(8122),l=o.getBCHDigit(7973);function c(t,e){return a.getCharCountIndicator(t,e)+4}function d(t,e){let n=0;return t.forEach((function(t){const o=c(t.mode,e);n+=o+t.getBitsLength()})),n}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);const i=8*(o.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(n===a.MIXED)return i;const l=i-c(n,t);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,n){let o;const r=i.from(n,i.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let o=1;o<=40;o++)if(d(t,o)<=e.getCapacity(o,n,a.MIXED))return o}(t,r);if(0===t.length)return 1;o=t[0]}else o=t;return function(t,n,o){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,o,t))return r}(o.mode,o.getLength(),r)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;o.getBCHDigit(e)-l>=0;)e^=7973<<o.getBCHDigit(e)-l;return t<<12|e}},1250:(t,e,n)=>{const o=n(4786);e.render=function(t,e,n){let r=n,i=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=o.getOptions(r);const a=o.getImageWidth(t.modules.size,r),s=i.getContext("2d"),l=s.createImageData(a,a);return o.qrToImageData(l.data,t,r),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(s,i,a),s.putImageData(l,0,0),i},e.renderToDataURL=function(t,n,o){let r=o;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});const i=e.render(t,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return i.toDataURL(a,s.quality)}},8390:(t,e,n)=>{const o=n(4786);function r(t,e){const n=t.a/255,o=e+'="'+t.hex+'"';return n<1?o+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function i(t,e,n){let o=t+e;return void 0!==n&&(o+=" "+n),o}e.render=function(t,e,n){const a=o.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*a.margin,d=a.color.light.a?"<path "+r(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",h="<path "+r(a.color.dark,"stroke")+' d="'+function(t,e,n){let o="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),d=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(o+=a?i("M",c+n,.5+d+n):i("m",r,0),r=0,a=!1),c+1<e&&t[l+1]||(o+=i("h",s),s=0)):r++}return o}(l,s,a.margin)+'"/>',u='viewBox="0 0 '+c+" "+c+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+u+' shape-rendering="crispEdges">'+d+h+"</svg>\n";return"function"==typeof n&&n(null,m),m}},4786:(t,e)=>{function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,o=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:o,scale:o?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const o=e.getScale(t,n);return Math.floor((t+2*n.margin)*o)},e.qrToImageData=function(t,n,o){const r=n.modules.size,i=n.modules.data,a=e.getScale(r,o),s=Math.floor((r+2*o.margin)*a),l=o.margin*a,c=[o.color.light,o.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let d=4*(e*s+n),h=o.color.light;e>=l&&n>=l&&e<s-l&&n<s-l&&(h=c[i[Math.floor((e-l)/a)*r+Math.floor((n-l)/a)]?1:0]),t[d++]=h.r,t[d++]=h.g,t[d++]=h.b,t[d]=h.a}}},5987:t=>{"use strict";var e={single_source_shortest_paths:function(t,n,o){var r={},i={};i[n]=0;var a,s,l,c,d,h,u,m=e.PriorityQueue.make();for(m.push(n,0);!m.empty();)for(l in s=(a=m.pop()).value,c=a.cost,d=t[s]||{})d.hasOwnProperty(l)&&(h=c+d[l],u=i[l],(void 0===i[l]||u>h)&&(i[l]=h,m.push(l,h),r[l]=s));if(void 0!==o&&void 0===i[o]){var p=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],o=e;o;)n.push(o),t[o],o=t[o];return n.reverse(),n},find_path:function(t,n,o){var r=e.single_source_shortest_paths(t,n,o);return e.extract_shortest_path_from_predecessor_list(r,o)},PriorityQueue:{make:function(t){var n,o=e.PriorityQueue,r={};for(n in t=t||{},o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=t.sorter||o.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},2378:t=>{"use strict";t.exports=function(t){for(var e=[],n=t.length,o=0;o<n;o++){var r=t.charCodeAt(o);if(r>=55296&&r<=56319&&n>o+1){var i=t.charCodeAt(o+1);i>=56320&&i<=57343&&(r=1024*(r-55296)+i-56320+65536,o+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},6030:(t,e,n)=>{"use strict";n.r(e),n.d(e,{W3mAccountButton:()=>fo,W3mConnectButton:()=>Ro,W3mCoreButton:()=>Bo,W3mModal:()=>Ke});const o=window,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;class s{constructor(t,e,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[o+1]),t[0]);return new s(n,t,i)},c=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new s("string"==typeof t?t:t+"",void 0,i))(e)})(t):t;var d;const h=window,u=h.trustedTypes,m=u?u.emptyScript:"",p=h.reactiveElementPolyfillSupport,g={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},f=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:f};class w extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const o=this._$Ep(n,e);void 0!==o&&(this._$Ev.set(o,n),t.push(o))})),t}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{r?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=o.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=v){var o;const r=this.constructor._$Ep(t,n);if(void 0!==r&&!0===n.reflect){const i=(void 0!==(null===(o=n.converter)||void 0===o?void 0:o.toAttribute)?n.converter:g).toAttribute(e,n.type);this._$El=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$El=null}}_$AK(t,e){var n;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:g;this._$El=r,this[r]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let o=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||f)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var b;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:w}),(null!==(d=h.reactiveElementVersions)&&void 0!==d?d:h.reactiveElementVersions=[]).push("1.5.0");const y=window,x=y.trustedTypes,C=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,k="?"+$,E=`<${k}>`,A=document,_=(t="")=>A.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,P=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,R=/"/g,N=/^(?:script|style|textarea|title)$/i,j=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),D=j(1),B=j(2),U=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),W=new WeakMap,H=A.createTreeWalker(A,129,null,!1),F=(t,e)=>{const n=t.length-1,o=[];let r,i=2===e?"<svg>":"",a=I;for(let e=0;e<n;e++){const n=t[e];let s,l,c=-1,d=0;for(;d<n.length&&(a.lastIndex=d,l=a.exec(n),null!==l);)d=a.lastIndex,a===I?"!--"===l[1]?a=S:void 0!==l[1]?a=P:void 0!==l[2]?(N.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=T):void 0!==l[3]&&(a=T):a===T?">"===l[0]?(a=null!=r?r:I,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?T:'"'===l[3]?R:L):a===R||a===L?a=T:a===S||a===P?a=I:(a=T,r=void 0);const h=a===T&&t[e+1].startsWith("/>")?" ":"";i+=a===I?n+E:c>=0?(o.push(s),n.slice(0,c)+"$lit$"+n.slice(c)+$+h):n+$+(-2===c?(o.push(void 0),e):h)}const s=i+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(s):s,o]};class V{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let r=0,i=0;const a=t.length-1,s=this.parts,[l,c]=F(t,e);if(this.el=V.createElement(l,n),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=H.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith($)){const n=c[i++];if(t.push(e),void 0!==n){const t=o.getAttribute(n.toLowerCase()+"$lit$").split($),e=/([.?@])?(.*)/.exec(n);s.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?Q:"@"===e[1]?X:G})}else s.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(N.test(o.tagName)){const t=o.textContent.split($),e=t.length-1;if(e>0){o.textContent=x?x.emptyScript:"";for(let n=0;n<e;n++)o.append(t[n],_()),H.nextNode(),s.push({type:2,index:++r});o.append(t[e],_())}}}else if(8===o.nodeType)if(o.data===k)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)s.push({type:7,index:r}),t+=$.length-1}r++}}static createElement(t,e){const n=A.createElement("template");return n.innerHTML=t,n}}function Z(t,e,n=t,o){var r,i,a,s;if(e===U)return e;let l=void 0!==o?null===(r=n._$Co)||void 0===r?void 0:r[o]:n._$Cl;const c=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,n,o)),void 0!==o?(null!==(a=(s=n)._$Co)&&void 0!==a?a:s._$Co=[])[o]=l:n._$Cl=l),void 0!==l&&(e=Z(t,l._$AS(t,e.values),l,o)),e}class q{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:n},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(n,!0);H.currentNode=r;let i=H.nextNode(),a=0,s=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new K(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new tt(i,this,t)),this.u.push(e),l=o[++s]}a!==(null==l?void 0:l.index)&&(i=H.nextNode(),a++)}return r}p(t){let e=0;for(const n of this.u)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class K{constructor(t,e,n,o){var r;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cm=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),M(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==U&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>O(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==z&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var e;const{values:n,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(n);else{const t=new q(r,this),e=t.v(this.options);t.p(n),this.T(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new V(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const r of t)o===e.length?e.push(n=new K(this.O(_()),this.O(_()),this,this.options)):n=e[o],n._$AI(r),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,n,o,r){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,o){const r=this.strings;let i=!1;if(void 0===r)t=Z(this,t,e,0),i=!M(t)||t!==this._$AH&&t!==U,i&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Z(this,o[n+a],e,a),s===U&&(s=this._$AH[a]),i||(i=!M(s)||s!==this._$AH[a]),s===z?t=z:t!==z&&(t+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}i&&!o&&this.j(t)}j(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===z?void 0:t}}const J=x?x.emptyScript:"";class Q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==z?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class X extends G{constructor(t,e,n,o,r){super(t,e,n,o,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=Z(this,t,e,0))&&void 0!==n?n:z)===U)return;const o=this._$AH,r=t===z&&o!==z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==z&&(o===z||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const et=y.litHtmlPolyfillSupport;var nt,ot;null==et||et(V,K),(null!==(b=y.litHtmlVersions)&&void 0!==b?b:y.litHtmlVersions=[]).push("2.5.0");class rt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{var o,r;const i=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:e;let a=i._$litPart$;if(void 0===a){const t=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;i._$litPart$=a=new K(e.insertBefore(_(),t),t,void 0,null!=n?n:{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return U}}rt.finalized=!0,rt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:rt});const it=globalThis.litElementPolyfillSupport;null==it||it({LitElement:rt}),(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.2.2");const at=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:n,elements:o}=e;return{kind:n,elements:o,finisher(e){customElements.define(t,e)}}})(t,e),st=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function lt(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):st(t,e)}function ct(t){return lt({...t,state:!0})}var dt;null===(dt=window.HTMLSlotElement)||void 0===dt||dt.prototype.assignedElements;var ht=n(9342);class ut{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const mt=(bt=class extends ut{constructor(t){var e;if(super(t),1!==t.type||"class"!==t.name||(null===(e=t.strings)||void 0===e?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 n,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const n=!!e[t];n===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(n?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return U}},(...t)=>({_$litDirective$:bt,values:t})),pt={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},gt=t=>1e3*t,ft=t=>t/1e3,vt=()=>{},wt=t=>t;var bt;function yt(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}const xt=t=>t(),Ct=(t,e,n=pt.duration)=>new Proxy({animations:t.map(xt).filter(Boolean),duration:n,options:e},$t),$t={get:(t,e)=>{const n=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return ft((null==n?void 0:n[e])||0);case"playbackRate":case"playState":return null==n?void 0:n[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(kt)).catch(vt)),t.finished;case"stop":return()=>{t.animations.forEach((t=>yt(t)))};case"forEachNative":return e=>{t.animations.forEach((n=>e(n,t)))};default:return void 0===(null==n?void 0:n[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=gt(n);case"currentTime":case"playbackRate":for(let o=0;o<t.animations.length;o++)t.animations[o][e]=n;return!0}return!1}},kt=t=>t.finished,Et=t=>"object"==typeof t&&Boolean(t.createAnimation),At=t=>"number"==typeof t,_t=t=>Array.isArray(t)&&!At(t[0]),Mt=(t,e,n)=>-n*t+n*e+t,Ot=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function It(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const r=Ot(0,e,o);t.push(Mt(n,1,r))}}const St=(t,e,n)=>Math.min(Math.max(n,t),e);const Pt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Tt(t,e,n,o){if(t===e&&n===o)return wt;return r=>0===r||1===r?r:Pt(function(t,e,n,o,r){let i,a,s=0;do{a=e+(n-e)/2,i=Pt(a,o,r)-t,i>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<12);return a}(r,0,1,t,n),e,o)}const Lt=t=>"function"==typeof t,Rt=t=>Array.isArray(t)&&At(t[0]),Nt={ease:Tt(.25,.1,.25,1),"ease-in":Tt(.42,0,1,1),"ease-in-out":Tt(.42,0,.58,1),"ease-out":Tt(0,0,.58,1)},jt=/\((.*?)\)/;function Dt(t){if(Lt(t))return t;if(Rt(t))return Tt(...t);if(Nt[t])return Nt[t];if(t.startsWith("steps")){const e=jt.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>n=>{const o=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,r="end"===e?Math.floor(o):Math.ceil(o);return St(0,1,r/t)})(parseFloat(t[0]),t[1].trim())}}return wt}class Bt{constructor(t,e=[0,1],{easing:n,duration:o=pt.duration,delay:r=pt.delay,endDelay:i=pt.endDelay,repeat:a=pt.repeat,offset:s,direction:l="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=wt,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),n=n||pt.easing,Et(n)){const t=n.createAnimation(e);n=t.easing,e=t.keyframes||e,o=t.duration||o}this.repeat=a,this.easing=_t(n)?wt:Dt(n),this.updateDuration(o);const c=function(t,e=function(t){const e=[0];return It(e,t-1),e}(t.length),n=wt){const o=t.length,r=o-e.length;return r>0&&It(e,r),r=>{let i=0;for(;i<o-2&&!(r<e[i+1]);i++);let a=St(0,1,Ot(e[i],e[i+1],r));const s=function(t,e){return _t(t)?t[((t,e,n)=>{const o=e-0;return((n-0)%o+o)%o+0})(0,t.length,e)]:t}(n,i);return a=s(a),Mt(t[i],t[i+1],a)}}(e,s,_t(n)?n.map(Dt):wt);this.tick=e=>{var n;let o=0;o=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=o,o/=1e3,o=Math.max(o-r,0),"finished"===this.playState&&void 0===this.pauseTime&&(o=this.totalDuration);const a=o/this.duration;let s=Math.floor(a),d=a%1;!d&&a>=1&&(d=1),1===d&&s--;const h=s%2;("reverse"===l||"alternate"===l&&h||"alternate-reverse"===l&&!h)&&(d=1-d);const u=o>=this.totalDuration?1:Math.min(d,1),m=c(this.easing(u));t(m),void 0===this.pauseTime&&("finished"===this.playState||o>=this.totalDuration+i)?(this.playState="finished",null===(n=this.resolve)||void 0===n||n.call(this,m)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),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 t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class Ut{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const zt=new WeakMap;function Wt(t){return zt.has(t)||zt.set(t,{transforms:[],values:new Map}),zt.get(t)}const Ht=["","X","Y","Z"],Ft={x:"translateX",y:"translateY",z:"translateZ"},Vt={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Zt={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Vt,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:wt},skew:Vt},qt=new Map,Kt=t=>`--motion-${t}`,Gt=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{Ht.forEach((e=>{Gt.push(t+e),qt.set(Kt(t+e),Zt[t])}))}));const Yt=(t,e)=>Gt.indexOf(t)-Gt.indexOf(e),Jt=new Set(Gt),Qt=t=>Jt.has(t),Xt=(t,e)=>`${t} ${e}(var(${Kt(e)}))`,te=t=>t.startsWith("--"),ee=new Set,ne=(t,e)=>document.createElement("div").animate(t,e),oe={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ne({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(ne({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{ne({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},re={},ie={};for(const t in oe)ie[t]=()=>(void 0===re[t]&&(re[t]=oe[t]()),re[t]);const ae=(t,e)=>Lt(t)?ie.linearEasing()?`linear(${((t,e)=>{let n="";const o=Math.round(e/.015);for(let e=0;e<o;e++)n+=t(Ot(0,o-1,e))+", ";return n.substring(0,n.length-2)})(t,e)})`:pt.easing:Rt(t)?se(t):t,se=([t,e,n,o])=>`cubic-bezier(${t}, ${e}, ${n}, ${o})`;function le(t){return Ft[t]&&(t=Ft[t]),Qt(t)?Kt(t):t}const ce=(t,e,n)=>{e=le(e),te(e)?t.style.setProperty(e,n):t.style[e]=n},de=t=>"string"==typeof t;function he(t,e){var n;let o=(null==e?void 0:e.toDefaultUnit)||wt;const r=t[t.length-1];if(de(r)){const t=(null===(n=r.match(/(-?[\d.]+)([a-z%]*)/))||void 0===n?void 0:n[2])||"";t&&(o=e=>e+t)}return o}function ue(t,e,n,o={},r){const i=window.__MOTION_DEV_TOOLS_RECORD,a=!1!==o.record&&i;let s,{duration:l=pt.duration,delay:c=pt.delay,endDelay:d=pt.endDelay,repeat:h=pt.repeat,easing:u=pt.easing,persist:m=!1,direction:p,offset:g,allowWebkitAcceleration:f=!1}=o;const v=Wt(t),w=Qt(e);let b=ie.waapi();w&&((t,e)=>{Ft[e]&&(e=Ft[e]);const{transforms:n}=Wt(t);var o,r;r=e,-1===(o=n).indexOf(r)&&o.push(r),t.style.transform=(t=>t.sort(Yt).reduce(Xt,"").trim())(n)})(t,e);const y=le(e),x=function(t,e){return t.has(e)||t.set(e,new Ut),t.get(e)}(v.values,y),C=qt.get(y);return yt(x.animation,!(Et(u)&&x.generator)&&!1!==o.record),()=>{const v=()=>{var e,n;return null!==(n=null!==(e=((t,e)=>{e=le(e);let n=te(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=qt.get(e);t&&(n=t.initialValue)}return n})(t,y))&&void 0!==e?e:null==C?void 0:C.initialValue)&&void 0!==n?n:0};let $=function(t,e){for(let n=0;n<t.length;n++)null===t[n]&&(t[n]=n?t[n-1]:e());return t}((t=>Array.isArray(t)?t:[t])(n),v);const k=he($,C);if(Et(u)){const t=u.createAnimation($,"opacity"!==e,v,y,x);u=t.easing,$=t.keyframes||$,l=t.duration||l}if(te(y)&&(ie.cssRegisterProperty()?function(t){if(!ee.has(t)){ee.add(t);try{const{syntax:e,initialValue:n}=qt.has(t)?qt.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(t){}}}(y):b=!1),w&&!ie.linearEasing()&&(Lt(u)||_t(u)&&u.some(Lt))&&(b=!1),b){C&&($=$.map((t=>At(t)?C.toDefaultUnit(t):t))),1!==$.length||ie.partialKeyframes()&&!a||$.unshift(v());const e={delay:gt(c),duration:gt(l),endDelay:gt(d),easing:_t(u)?void 0:ae(u,l),direction:p,iterations:h+1,fill:"both"};s=t.animate({[y]:$,offset:g,easing:_t(u)?u.map((t=>ae(t,l))):void 0},e),s.finished||(s.finished=new Promise(((t,e)=>{s.onfinish=t,s.oncancel=e})));const n=$[$.length-1];s.finished.then((()=>{m||(ce(t,y,n),s.cancel())})).catch(vt),f||(s.playbackRate=1.000001)}else if(r&&w)$=$.map((t=>"string"==typeof t?parseFloat(t):t)),1===$.length&&$.unshift(parseFloat(v())),s=new r((e=>{ce(t,y,k?k(e):e)}),$,Object.assign(Object.assign({},o),{duration:l,easing:u}));else{const e=$[$.length-1];ce(t,y,C&&At(e)?C.toDefaultUnit(e):e)}return a&&i(t,e,$,{duration:l,delay:c,easing:u,repeat:h,offset:g},"motion-one"),x.setAnimation(s),s}}const me=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function pe(t,e,n){return Lt(t)?t(e,n):t}const ge=(fe=Bt,function(t,e,n={}){const o=(t=function(t,e){return"string"==typeof t?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t)).length,r=[];for(let i=0;i<o;i++){const a=t[i];for(const t in e){const s=me(n,t);s.delay=pe(s.delay,i,o);const l=ue(a,t,e[t],s,fe);r.push(l)}}return Ct(r,n,n.duration)});var fe;function ve(t,e={}){return Ct([()=>{const n=new Bt(t,[0,1],e);return n.finished.catch((()=>{})),n}],e,e.duration)}function we(t,e,n){return(Lt(t)?ve:ge)(t,e,n)}function be(t,e,n){const o=Math.max(e-5,0);return r=n-t(o),(i=e-o)?r*(1e3/i):0;var r,i}function ye(t){return At(t)&&!isNaN(t)}function xe(t){return de(t)?parseFloat(t):t}const Ce=function(t){const e=new WeakMap;return(t={})=>{const n=new Map,o=(e=0,o=100,r=0,i=!1)=>{const a=`${e}-${o}-${r}-${i}`;return n.has(a)||n.set(a,(({stiffness:t=100,damping:e=10,mass:n=1,from:o=0,to:r=1,velocity:i=0,restSpeed:a=2,restDistance:s=.5}={})=>{i=i?ft(i):0;const l={done:!1,hasReachedTarget:!1,current:o,target:r},c=r-o,d=Math.sqrt(t/n)/1e3,h=((t=100,e=10,n=1)=>e/(2*Math.sqrt(t*n)))(t,e,n);let u;if(h<1){const t=d*Math.sqrt(1-h*h);u=e=>r-Math.exp(-h*d*e)*((h*d*c-i)/t*Math.sin(t*e)+c*Math.cos(t*e))}else u=t=>r-Math.exp(-d*t)*(c+(d*c-i)*t);return t=>{l.current=u(t);const e=0===t?i:be(u,t,l.current),n=Math.abs(e)<=a,c=Math.abs(r-l.current)<=s;var d,h,m;return l.done=n&&c,l.hasReachedTarget=(d=o,h=r,m=l.current,d<h&&m>=h||d>h&&m<=h),l}})(Object.assign({from:e,to:o,velocity:r,restSpeed:i?.05:2,restDistance:i?.01:.5},t))),n.get(a)},r=(t,n)=>(e.has(t)||e.set(t,function(t,e=wt){let n,o=10,r=t(0);const i=[e(r.current)];for(;!r.done&&o<1e4;)r=t(o),i.push(e(r.done?r.target:r.current)),void 0===n&&r.hasReachedTarget&&(n=o),o+=10;const a=o-10;return 1===i.length&&i.push(r.current),{keyframes:i,duration:a/1e3,overshootDuration:(null!=n?n:a)/1e3}}(t,n)),e.get(t));return{createAnimation:(t,e=!0,n,i,a)=>{let s,l,c,d=0,h=wt;const u=t.length;if(e)if(h=he(t,i?qt.get(le(i)):void 0),c=xe(t[u-1]),u>1&&null!==t[0])l=xe(t[0]);else{const t=null==a?void 0:a.generator;if(t){const{animation:e,generatorStartTime:n}=a,o=(null==e?void 0:e.startTime)||n||0,r=(null==e?void 0:e.currentTime)||performance.now()-o,i=t(r).current;l=i,d=be((e=>t(e).current),r,i)}else n&&(l=xe(n()))}if(ye(l)&&ye(c)){const t=o(l,c,d,null==i?void 0:i.includes("scale"));s=Object.assign(Object.assign({},r(t,h)),{easing:"linear"}),a&&(a.generator=t,a.generatorStartTime=performance.now())}return s||(s={easing:"ease",duration:r(o(0,100)).overshootDuration}),s}}}}(),$e=t=>null!=t?t:z;var ke=n(4249),Ee=Object.defineProperty,Ae=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Oe=(t,e,n)=>e in t?Ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ie=(t,e)=>{for(var n in e||(e={}))_e.call(e,n)&&Oe(t,n,e[n]);if(Ae)for(var n of Ae(e))Me.call(e,n)&&Oe(t,n,e[n]);return t};const Se={color(){var t,e;const n=null!=(t=ht.t0.state.themeColor)?t:"default",o=null!=(e=ht.t0.state.themeMode)?e:"dark",r={default:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(51,150,255)",background:"rgb(232,242,252)"},dark:{inverse:"rgb(255,255,255)",foreground:"rgb(71,161,255)",background:"rgb(21,38,55)"}},magenta:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(198,83,128)",background:"rgb(244,221,230)"},dark:{inverse:"rgb(255,255,255)",foreground:"rgb(203,77,140)",background:"rgb(57,35,43)"}},blue:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(61,92,245)",background:"rgb(232,235,252)"},dark:{inverse:"rgb(255,255,255)",foreground:"rgb(81,109,251)",background:"rgb(28,33,59)"}},orange:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(234,140,46)",background:"rgb(244,236,221)"},dark:{inverse:"rgb(0,0,0)",foreground:"rgb(255,166,76)",background:"rgb(57,50,34)"}},green:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(38,181,98)",background:"rgb(218,246,218)"},dark:{inverse:"rgb(0,0,0)",foreground:"rgb(38,217,98)",background:"rgb(35,52,40)"}},purple:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(121,76,255)",background:"rgb(225,218,246)"},dark:{inverse:"rgb(255,255,255)",foreground:"rgb(144,110,247)",background:"rgb(36,31,51)"}},teal:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(43,182,182)",background:"rgb(217,242,238)"},dark:{inverse:"rgb(0,0,0)",foreground:"rgb(54,226,226)",background:"rgb(29,48,52)"}},blackWhite:{light:{inverse:"rgb(255,255,255)",foreground:"rgb(20,20,20)",background:"rgb(255,255,255)"},dark:{inverse:"rgb(0,0,0)",foreground:"rgb(255,255,255)",background:"rgb(20,20,20)"}}}[n][o],i={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"}}[o],a={default:{1:"#B6B9C9",2:"#C653C6",3:"#794DFF",4:"#2EB8B8"},blue:{1:"#E8EBFD",2:"#C653C6",3:"#2DD2C5",4:"#3D5CF5"},magenta:{1:"#F4DDE6",2:"#E0D452",3:"#F09475",4:"#D1618D"},orange:{1:"#F4ECDD",2:"#B4EB47",3:"#3075E8",4:"#EB9947"},green:{1:"#DAF6DA",2:"#E06B92",3:"#99E54D",4:"#26B562"},purple:{1:"#E1DAF6",2:"#EB9947",3:"#E06B92",4:"#794DFF"},teal:{1:"#D9F2EE",2:"#F09475",3:"#794DFF",4:"#2EB8B8"},blackWhite:{1:"#E3E8E8",2:"#98AEAE",3:"#516767",4:"#242E2E"}}[n];return{foreground:Ie({accent:r.foreground,inverse:r.inverse},i.foreground),background:Ie({accent:r.background},i.background),gradient:a,overlay:i.overlay,error:"rgb(242, 90, 103)"}},setTheme(){const t=document.querySelector(":root");if(t){const e={"--color-fg-accent":Se.color().foreground.accent,"--color-fg-inverse":Se.color().foreground.inverse,"--color-fg-1":Se.color().foreground[1],"--color-fg-2":Se.color().foreground[2],"--color-fg-3":Se.color().foreground[3],"--color-bg-1":Se.color().background[1],"--color-bg-2":Se.color().background[2],"--color-bg-3":Se.color().background[3],"--color-overlay":Se.color().overlay,"--color-err":Se.color().error,"--color-success":"rgb(38,181,98)","--gradient-1":Se.color().gradient[1],"--gradient-2":Se.color().gradient[2],"--gradient-3":Se.color().gradient[3],"--gradient-4":Se.color().gradient[4]};Object.entries(e).forEach((([e,n])=>t.style.setProperty(e,n)))}},globalCss:l`*,::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}button::after{content:'';position:absolute;inset:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--color-fg-inverse);background:var(--color-fg-accent)}`},Pe=l`button{display:flex;border-radius:10px;flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--color-overlay)}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--color-overlay);background-color:var(--color-fg-accent);border-radius:50%;margin-bottom:4px}button path{fill:var(--color-fg-inverse)}`;var Te=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Re=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Le(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Te(e,n,i),i};let Ne=class extends rt{constructor(){super(...arguments),this.icon=void 0,this.label="",this.onClick=()=>null}render(){return D`<button @click="${this.onClick}"><div>${this.icon}</div><w3m-text variant="xsmall-normal" color="accent">${this.label}</w3m-text></button>`}};Ne.styles=[Se.globalCss,Pe],Re([lt()],Ne.prototype,"icon",2),Re([lt()],Ne.prototype,"label",2),Re([lt()],Ne.prototype,"onClick",2),Ne=Re([at("w3m-box-button")],Ne);const je=l`button{border-radius:28px;height:28px;padding:0 10px;background-color:var(--color-fg-accent)}button path{fill:var(--color-fg-inverse)}button::after{border-radius:inherit;border:1px solid var(--color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:hover::after{background-color:var(--color-overlay)}button:disabled{background-color:var(--color-bg-3)}`;var De=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Ue=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Be(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&De(e,n,i),i};let ze=class extends rt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null}render(){const t={"w3m-icon-left":void 0!==this.iconLeft,"w3m-icon-right":void 0!==this.iconRight};return D`<button class="${mt(t)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<w3m-text variant="small-normal" color="inverse"><slot></slot></w3m-text>${this.iconRight}</button>`}};ze.styles=[Se.globalCss,je],Ue([lt()],ze.prototype,"disabled",2),Ue([lt()],ze.prototype,"iconLeft",2),Ue([lt()],ze.prototype,"iconRight",2),Ue([lt()],ze.prototype,"onClick",2),ze=Ue([at("w3m-button")],ze);const We={walletExplorerImage:()=>({fallback:"09a83110-5fc3-45e1-65ab-8f7df2d6a400",presets:{_fallback:"09a83110-5fc3-45e1-65ab-8f7df2d6a400",brave:"125e828e-9936-4451-a8f2-949c119b7400",metaMask:"619537c0-2ff3-4c78-9ed8-a05e7567f300",coinbaseWallet:"f8068a7f-83d7-4190-1f94-78154a12c600",ledger:"39890ad8-5b2e-4df6-5db4-2ff5cf4bb300",spotEthWallet:"1bf33a89-b049-4a1c-d1f6-4dd7419ee400",exodus:"4c16cad4-cac9-4643-6726-c696efaf5200",trust:"0528ee7e-16d1-4089-21e3-bbfb41933100",core:"35f9c46e-cc57-4aa7-315d-e6ccb2a1d600",bitkeep:"3f7075d0-4ab7-4db5-404d-3e4c05e6fe00",mathWallet:"26a8f588-3231-4411-60ce-5bb6b805a700",opera:"877fa1a4-304d-4d45-ca8e-f76d1a556f00",tokenPocket:"f3119826-4ef5-4d31-4789-d4ae5c18e400",tokenary:"5e481041-dc3c-4a81-373a-76bbde91b800","1inch":"dce1ee99-403f-44a9-9f94-20de30616500",phantom:"62471a22-33cb-4e65-5b54-c3d9ea24b900",abcWallet:"8d0c93ce-9d18-44ec-6243-4b94ac0c6f00"}}),optimisticWalletId(t){if("INJECTED"!==t.toUpperCase())return t;const{ethereum:e,spotEthWallet:n,abc:o}=window;return e?e.isTrust||e.isTrustWallet?"trust":e.isPhantom?"phantom":e.isBraveWallet?"brave":n?"spotEthWallet":e.isExodus?"exodus":e.isTokenPocket?"tokenPocket":e.isFrame?"frame":e.isPortal?"ripoPortal":e.isTally?"tally":e.isCoinbaseExtension?"coinbaseWallet":e.isAvalanche?"core":e.isBitKeep?"bitkeep":e.isMathWallet?"mathWallet":e.isOpera?"opera":e.isTokenary?"tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inchWallet":e.isKuCoinWallet?"kuCoinWallet":o?"abcWallet":e.isMetaMask?"metaMask":"injected":"metaMask"},chainExplorerImage:()=>({presets:{42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",421613:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",421611:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",43113:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",97:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",4002:"06b26297-fe0c-4733-5d6b-ffa5498aac00",1:"692ed6ba-e569-459a-556a-776476829e00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",420:"ab9c186a-c52f-464b-2906-ca59d760a400",69:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",80001:"41d04d42-da3b-4453-8506-668cc0727900"}}),optimisticName(t){if("INJECTED"!==t.toUpperCase()&&"MetaMask"!==t)return t;const{ethereum:e,spotEthWallet:n,abc:o}=window;return e?e.isTrust||e.isTrustWallet?"Trust":e.isPhantom?"Phantom":e.isBraveWallet?"Brave":n?"Spot":e.isExodus?"Exodus":e.isTokenPocket?"TokenPocket":e.isFrame?"Frame":e.isPortal?"Ripio Portal":e.isTally?"Tally":e.isCoinbaseExtension?"Coinbase":e.isAvalanche?"Core":e.isBitKeep?"BitKeep":e.isMathWallet?"MathWallet":e.isOpera?"Opera":e.isTokenary?"Tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isKuCoinWallet?"KuCoin Wallet":o?"ABC Wallet":e.isMetaMask?"MetaMask":"Injected":"MetaMask"}},He={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET:"W3M_RECENT_WALLET",getShadowRootElement(t,e){const n=t.renderRoot.querySelector(e);if(!n)throw new Error(`${e} not found`);return n},getWalletIcon(t){var e;const{fallback:n,presets:o}=We.walletExplorerImage(),r=o[t],{projectId:i,walletImages:a}=ht.t0.state;return null!=(e=a?.[t])?e:i?ht.uc.getImageUrl(r??n):""},getChainIcon(t){var e;const{presets:n}=We.chainExplorerImage(),{projectId:o,chainImages:r}=ht.t0.state,i=n[t];return null!=(e=r?.[t])?e:o&&i?ht.uc.getImageUrl(i):""},getWalletFirstName(t){var e;const n=We.optimisticName(t);return null!=(e=n.split(" ")[0])?e:n},isMobileAnimation:()=>window.innerWidth<=He.MOBILE_BREAKPOINT,preloadImage:async t=>new Promise(((e,n)=>{const o=new Image;o.onload=e,o.onerror=n,o.src=t})),getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let n;return(...o)=>{n&&clearTimeout(n),n=setTimeout((function(){t(...o)}),e)}},async handleMobileLinking(t){const{standaloneUri:e,selectedChain:n}=ht.zb.state,{links:o,name:r}=t;function i(t){let e="";null!=o&&o.universal?e=ht.zv.formatUniversalUrl(o.universal,t,r):null!=o&&o.native&&(e=ht.zv.formatNativeUrl(o.native,t,r)),ht.zv.openHref(e)}e?i(e):(await ht.Id.client().connectWalletConnect((t=>{i(t)}),n?.id),ht.jb.close()),He.setRecentWallet(t)},async handleUriCopy(){const{standaloneUri:t}=ht.zb.state;if(t)await navigator.clipboard.writeText(t);else{const t=await ht.Id.client().getActiveWalletConnectUri();await navigator.clipboard.writeText(t)}ht.Vs.openToast("Link copied","success")},getCustomWallets(){var t;const{desktopWallets:e,mobileWallets:n}=ht.t0.state;return null!=(t=ht.zv.isMobile()?n:e)?t:[]},getCustomImageUrls(){const{chainImages:t,walletImages:e}=ht.t0.state,n=Object.values(t??{}),o=Object.values(e??{});return Object.values([...n,...o])},getConnectorImageUrls:()=>ht.Id.client().getConnectorWallets().map((({id:t})=>We.optimisticWalletId(t))).map((t=>He.getWalletIcon(t))),truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,generateAvatarColors(t){var e;const n=null==(e=t.match(/.{1,7}/g))?void 0:e.splice(0,5),o=[];n?.forEach((t=>{let e=0;for(let n=0;n<t.length;n+=1)e=t.charCodeAt(n)+((e<<5)-e),e&=e;const n=[0,0,0];for(let t=0;t<3;t+=1){const o=e>>8*t&255;n[t]=o}o.push(`rgb(${n[0]}, ${n[1]}, ${n[2]})`)}));const r=document.querySelector(":root");if(r){const t={"--color-av-1":o[0],"--color-av-2":o[1],"--color-av-3":o[2],"--color-av-4":o[3],"--color-av-5":o[4]};Object.entries(t).forEach((([t,e])=>r.style.setProperty(t,e)))}},setRecentWallet(t){localStorage.setItem(He.W3M_RECENT_WALLET,JSON.stringify(t))},getRecentWallet(){const t=localStorage.getItem(He.W3M_RECENT_WALLET);if(t)return JSON.parse(t)}},Fe=l`.w3m-overlay{inset:0;position:fixed;z-index:10001;overflow:hidden;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.3);opacity:0;pointer-events:none}.w3m-open{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0}.w3m-card{width:100%;position:relative;transform:translateY(5px);border-radius:30px;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(--color-overlay);background-color:var(--color-bg-1);color:var(--color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px}.w3m-card{border-radius:40px 40px 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:600px){.w3m-container{max-width:440px}.w3m-card{transform:translateY(5px);border-radius:40px 40px 0 0}.w3m-overlay{align-items:flex-end}}`;var Ve=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,qe=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Ze(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Ve(e,n,i),i};let Ke=class extends rt{constructor(){super(),this.open=!1,this.preload=!0,this.unsubscribeModal=void 0,this.unsubscribeConfig=void 0,this.unwatchAccount=void 0,this.unwatchNetwork=void 0,Se.setTheme(),this.unsubscribeConfig=ht.t0.subscribe(Se.setTheme),this.unsubscribeModal=ht.jb.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()})),ht.zb.state.isStandalone||(ht.zb.getAccount(),this.unwatchAccount=ht.Id.client().watchAccount((t=>{ht.zb.setAddress(t.address),ht.zb.setIsConnected(t.isConnected)})),ht.zb.getSelectedChain(),this.unwatchNetwork=ht.Id.client().watchNetwork((t=>{ht.zb.setSelectedChain(t.chain)}))),this.preloadModalData()}disconnectedCallback(){var t,e,n,o;null==(t=this.unsubscribeModal)||t.call(this),null==(e=this.unsubscribeConfig)||e.call(this),null==(n=this.unwatchAccount)||n.call(this),null==(o=this.unwatchNetwork)||o.call(this)}get overlayEl(){return He.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return He.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(t){const[e]=document.getElementsByTagName("body");e.style.overflow=t?"auto":"hidden"}async preloadExplorerData(){var t;const{standaloneChains:e,chains:n,isExplorer:o}=ht.zb.state;if(o){const o=e?.join(",");await Promise.all([ht.uc.getPreviewWallets({page:1,entries:10,chains:o,device:ht.zv.isMobile()?"mobile":"desktop"}),ht.uc.getRecomendedWallets()]);const{previewWallets:r,recomendedWallets:i}=ht.uc.state,a=null!=(t=n?.map((t=>He.getChainIcon(t.id))))?t:[],s=[...r,...i].map((t=>t.image_url.lg));await this.preloadExplorerImages([...a,...s])}}async preloadExplorerImages(t){t.length&&await Promise.all(t.map((async t=>He.preloadImage(t))))}async preloadCustomImages(){const t=He.getCustomImageUrls();t.length&&await Promise.all(t.map((async t=>He.preloadImage(t))))}async preloadConnectorImages(){const t=He.getConnectorImageUrls();t.length&&await Promise.all(t.map((async t=>He.preloadImage(t))))}async preloadModalData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadExplorerData(),this.preloadCustomImages(),this.preloadConnectorImages()]))}catch{ht.Vs.openToast("Failed preloading","error")}}onCloseModal(t){t.target===t.currentTarget&&ht.jb.close()}async onOpenModalEvent(){await this.preloadModalData(),this.toggleBodyScroll(!1),await we(this.containerEl,{y:0},{duration:0}).finished,we(this.overlayEl,{opacity:[0,1]},{duration:.2,delay:.2}),we(this.containerEl,He.isMobileAnimation()?{y:["50vh",0]}:{scale:[.98,1]},{scale:{easing:Ce({velocity:.4})},y:{easing:Ce({mass:.5})},delay:.2}),document.addEventListener("keydown",this.onKeyDown),this.open=!0,this.containerEl.focus()}async onCloseModalEvent(){this.toggleBodyScroll(!0),document.removeEventListener("keydown",this.onKeyDown),await Promise.all([we(this.containerEl,He.isMobileAnimation()?{y:[0,"50vh"]}:{scale:[1,.98]},{scale:{easing:Ce({velocity:0})},y:{easing:Ce({mass:.5})}}).finished,we(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished]),this.open=!1}onKeyDown(t){"Escape"===t.key&&ht.jb.close()}render(){const t={"w3m-overlay":!0,"w3m-open":this.open};return D`<div id="w3m-modal" class="${mt(t)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="w3m-container" tabindex="0">${this.open?D`<w3m-modal-backcard></w3m-modal-backcard><div class="w3m-card"><w3m-modal-router></w3m-modal-router><w3m-modal-toast></w3m-modal-toast></div>`:null}</div></div>`}};function Ge(t){return[(t>>16&255)/255,(t>>8&255)/255,(255&t)/255]}function Ye(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Ke.styles=[Se.globalCss,Fe],qe([ct()],Ke.prototype,"open",2),qe([ct()],Ke.prototype,"preload",2),Ke=qe([at("w3m-modal")],Ke);const Je={CROSS_ICON:B`<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>`,NOISE_TEXTURE:B`<svg id="w3m-transparent-noise"><filter id="w3m-noise"><feTurbulence type="fractalNoise" baseFrequency="0.8"/></filter><rect width="100%" height="100%" filter="url(#w3m-noise)"/></svg>`,WALLET_CONNECT_LOGO:B`<svg width="178" height="29" viewBox="0 0 178 29" id="w3m-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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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:B`<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>`,HELP_ETH_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#j)"><rect width="60" height="60" rx="30" fill="#987DE8"/><path fill-rule="evenodd" clip-rule="evenodd" d="m15.48 28.367 11.966-19.3c1.174-1.892 3.927-1.892 5.1 0l11.97 19.306a6 6 0 0 1 .9 3.142v.028a6 6 0 0 1-1.154 3.56L33.227 50.208c-1.599 2.188-4.864 2.188-6.461 0L15.733 35.095a6 6 0 0 1-1.154-3.538v-.029a6 6 0 0 1 .9-3.161Z" fill="#fff"/><path d="M30.84 10.112a.992.992 0 0 0-.844-.464V24.5l12.598 5.53c.081-.466-.001-.963-.27-1.398L30.84 10.112Z" fill="#643CDD"/><path d="M29.996 9.648a.991.991 0 0 0-.845.465l-11.489 18.53a1.991 1.991 0 0 0-.264 1.387l12.598-5.53V9.648Z" fill="#BDADEB"/><path d="M29.996 50.544a.994.994 0 0 0 .808-.41l11.235-15.38c.307-.434-.193-.988-.658-.72L31.49 39.71a2.998 2.998 0 0 1-1.494.398v10.437Z" fill="#643CDD"/><path d="M17.966 34.762 29.19 50.134c.2.274.503.41.807.41V40.108a2.998 2.998 0 0 1-1.493-.398l-9.884-5.676c-.468-.27-.971.292-.653.728Z" fill="#BDADEB"/><path d="M42.594 30.03 29.996 24.5v13.138a3 3 0 0 0 1.495-.399l10.149-5.83c.525-.31.856-.823.954-1.38Z" fill="#401AB3"/><path d="M29.996 37.638V24.462l-12.598 5.566c.098.564.437 1.083.974 1.392l10.13 5.82c.462.265.978.398 1.494.398Z" fill="#7C5AE2"/></g><rect class="help-img-highlight" x=".5" y=".5" width="59" height="59" rx="29.5"/><defs><clipPath id="j"><rect width="60" height="60" rx="30" fill="#fff"/></clipPath></defs></svg>`,HELP_PAINTING_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#k)"><rect width="60" height="60" rx="3" fill="#C653C6"/><path d="M52.094 47.344c0-4.246-1.436-9.557-5.885-12.4a2.876 2.876 0 0 0-1.615-3.891v-.819a4.037 4.037 0 0 0-1.34-3.007 4.75 4.75 0 0 0-2.41-6.252v-5.506c0-6.248-5.065-11.313-11.313-11.313-6.247 0-11.312 5.065-11.312 11.313v2.152a3.343 3.343 0 0 0-1.18 5.045 4.738 4.738 0 0 0-1.633 3.584 4.73 4.73 0 0 0 .956 2.858 5.218 5.218 0 0 0-2.358 6.815c-3.06 4.129-6.098 8.298-6.098 15.64 0 2.668.364 4.856.731 6.385.184.765.368 1.366.509 1.78a12.721 12.721 0 0 0 .225.611l.015.037.005.011.001.004v.002h.001l.92-.393-.92.394.26.606h38.26l.291-.49-.86-.51.86.51v-.001l.002-.002.002-.005.01-.017.035-.06.127-.225c.108-.195.26-.477.441-.835.363-.714.845-1.732 1.328-2.953.959-2.427 1.945-5.725 1.945-9.068Z" fill="#E87DE8" stroke="#fff" stroke-width="2"/><path fill-rule="evenodd" clip-rule="evenodd" d="M26.5 29.5c-3-.5-5.5-3-5.503-7l.002-7c0-.466 0-.698.026-.893a3 3 0 0 1 2.582-2.582c.195-.026.428-.026.893-.026 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.398 0 2.097 0 2.648.229a3 3 0 0 1 1.624 1.623c.228.552.228 1.25.228 2.649v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.495 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z" fill="#fff"/></g><rect class="help-img-highlight" x=".5" y=".5" width="59" height="59" rx="2.5"/><defs><clipPath id="k"><rect width="60" height="60" rx="3" fill="#fff"/></clipPath></defs></svg>`,HELP_CHART_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#l)"><path d="M0 25.01C0 15.76 0 11.133 1.97 7.678a15 15 0 0 1 5.598-5.597C11.023.11 15.648.11 24.9.11h10.2c9.251 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.597C60 11.133 60 15.758 60 25.01v10.2c0 9.252 0 13.877-1.97 17.332a15 15 0 0 1-5.598 5.598c-3.455 1.97-8.08 1.97-17.332 1.97H24.9c-9.251 0-13.877 0-17.332-1.97a14.999 14.999 0 0 1-5.597-5.598C0 49.087 0 44.462 0 35.21v-10.2Z" fill="#1DC956"/><path d="M.5 25.01c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.289a14.5 14.5 0 0 1 5.412-5.41c1.639-.936 3.579-1.418 6.289-1.661C16.822.61 20.265.61 24.9.61h10.2c4.635 0 8.078 0 10.795.245 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.579 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.795-.244 2.71-.726 4.65-1.66 6.29a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.412C1.47 50.655.988 48.716.745 46.005.5 43.288.5 39.845.5 35.21v-10.2Z" stroke="#fff" stroke-opacity=".1"/><path d="M16.109 60c-3.833-.179-6.41-.645-8.541-1.86a15 15 0 0 1-5.598-5.598C.553 50.057.155 46.967.043 41.985l4.146-1.382a4 4 0 0 0 2.48-2.39l4.654-12.409a2 2 0 0 1 2.505-1.195l2.526.842a2 2 0 0 0 2.422-1.003l2.968-5.938c.81-1.62 3.185-1.415 3.705.32l3.774 12.581a2 2 0 0 0 3.025 1.09l3.342-2.228c.27-.18.49-.422.646-.706l5.297-9.712a2 2 0 0 1 1.428-1.016l4.134-.689a2 2 0 0 1 1.61.437l3.892 3.243a2 2 0 0 0 2.694-.122l4.633-4.632C60 19.28 60 21.88 60 25.01v10.2c0 9.252 0 13.877-1.97 17.332a14.998 14.998 0 0 1-5.598 5.598c-2.131 1.215-4.708 1.681-8.54 1.86H16.108Z" fill="#2BEE6C"/><path d="M.072 43.03a112.37 112.37 0 0 1-.048-2.093l3.85-1.283a3 3 0 0 0 1.86-1.793l4.653-12.408a3 3 0 0 1 3.758-1.793l2.526.842a1 1 0 0 0 1.21-.501l2.97-5.938c1.214-2.43 4.775-2.123 5.556.48l3.774 12.58a1 1 0 0 0 1.513.545l3.341-2.227a1 1 0 0 0 .323-.353l5.298-9.712a3 3 0 0 1 2.14-1.523l4.135-.69a3 3 0 0 1 2.414.655l3.892 3.244a1 1 0 0 0 1.347-.061l5.28-5.28c.046.845.077 1.752.097 2.732l-3.962 3.962a3 3 0 0 1-4.042.183l-3.893-3.243a1 1 0 0 0-.804-.218l-4.135.689a1 1 0 0 0-.714.507l-5.297 9.712c-.233.427-.565.79-.97 1.06l-3.34 2.228a3 3 0 0 1-4.538-1.635l-3.775-12.58c-.26-.868-1.447-.97-1.852-.16l-2.969 5.937a3 3 0 0 1-3.632 1.505l-2.526-.842a1 1 0 0 0-1.252.597L7.606 38.564a5 5 0 0 1-3.1 2.988L.072 43.029Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" fill="#2BEE6C"/><path d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" fill="#fff"/><path d="M45 .283v59.654c-.63.042-1.294.074-2 .098V.185c.706.025 1.37.056 2 .098Z" fill="#fff"/><path class="help-img-highlight" d="M.5 25.01c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.289a14.5 14.5 0 0 1 5.412-5.41c1.639-.936 3.579-1.418 6.289-1.661C16.822.61 20.265.61 24.9.61h10.2c4.635 0 8.078 0 10.795.245 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.579 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.795-.244 2.71-.726 4.65-1.66 6.29a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.412C1.47 50.655.988 48.716.745 46.005.5 43.288.5 39.845.5 35.21v-10.2Z"/></g><defs><clipPath id="l"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,HELP_KEY_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#m)"><path fill="#EB8B47" d="M0 24.9c0-9.252 0-13.878 1.97-17.332A15 15 0 0 1 7.569 1.97C11.023 0 15.648 0 24.9 0h10.2c9.251 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.022 60 15.648 60 24.899v10.2c0 9.252 0 13.878-1.97 17.332a15.001 15.001 0 0 1-5.598 5.598c-3.455 1.97-8.08 1.97-17.332 1.97H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.351 0 35.1V24.9Z"/><path class="help-img-highlight" d="M.5 24.9c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.29a14.5 14.5 0 0 1 5.412-5.41C9.455 1.468 11.395.986 14.105.743 16.822.5 20.265.5 24.9.5h10.2c4.635 0 8.078 0 10.795.244 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.58 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.796-.244 2.71-.726 4.65-1.66 6.289a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.411c-.935-1.64-1.417-3.58-1.66-6.29C.5 43.178.5 39.734.5 35.1V24.9Z"/><path fill="#FF974C" stroke="#fff" stroke-width="2" d="M39.192 29.192c5.077-5.077 5.077-13.308 0-18.385-5.076-5.077-13.308-5.077-18.384 0-5.077 5.077-5.077 13.308 0 18.385l1.287 1.291c1.137 1.142 1.706 1.712 2.097 2.387.267.462.472.957.608 1.473.2.755.2 1.56.2 3.171V48.75c0 1.077 0 1.615.134 2.119a4 4 0 0 0 .407.984c.262.45.643.831 1.404 1.592l.294.295c.654.654.982.981 1.365 1.086.26.07.533.07.792 0 .383-.105.71-.432 1.365-1.086l3.478-3.479c.655-.654.982-.981 1.087-1.365a1.5 1.5 0 0 0 0-.791c-.105-.384-.432-.711-1.087-1.365l-.478-.479c-.655-.654-.982-.981-1.087-1.365a1.5 1.5 0 0 1 0-.791c.105-.384.432-.711 1.087-1.365l.478-.479c.655-.654.982-.981 1.087-1.365a1.5 1.5 0 0 0 0-.791c-.105-.384-.432-.711-1.087-1.365l-.492-.493c-.65-.65-.974-.974-1.08-1.355a1.5 1.5 0 0 1-.003-.788c.102-.382.425-.71 1.069-1.364l5.46-5.547Z"/><circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2"/></g><defs><clipPath id="m"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,HELP_USER_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#n)"><rect width="60" height="60" fill="#00ACE6" rx="30"/><path fill="#1AC6FF" stroke="#fff" stroke-width="2" d="M59 73c0 16.016-12.984 29-29 29S1 89.016 1 73c0-16.017 11-29 29-29s29 12.983 29 29ZM18.69 19.902a11 11 0 0 1 9.281-8.692 14.842 14.842 0 0 1 4.058 0 11 11 0 0 1 9.28 8.692c.178.866.322 1.75.44 2.625.132.977.132 1.968 0 2.945a39.467 39.467 0 0 1-.44 2.625 11 11 0 0 1-9.28 8.692 14.862 14.862 0 0 1-4.058 0 11 11 0 0 1-9.28-8.692 39.467 39.467 0 0 1-.44-2.625 11.004 11.004 0 0 1 0-2.945c.118-.876.262-1.759.44-2.625Z"/><circle cx="24.5" cy="23.5" r="1.5" fill="#fff"/><circle cx="35.5" cy="23.5" r="1.5" fill="#fff"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m31 20-3 8h4"/></g><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="29.5"/><defs><clipPath id="n"><rect width="60" height="60" fill="#fff" rx="30"/></clipPath></defs></svg>`,HELP_LOCK_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><rect width="60" height="60" fill="#C653C6" rx="3"/><path fill="#fff" d="M20.034 15.216C20 15.607 20 16.07 20 17v2.808c0 1.13 0 1.696-.2 2.11a1.78 1.78 0 0 1-.584.714c-.366.28-1.051.42-2.423.7a7.076 7.076 0 0 0-1.597.511 9.001 9.001 0 0 0-4.353 4.353C10 30.005 10 32.336 10 37c0 4.663 0 6.995.843 8.804a9.001 9.001 0 0 0 4.353 4.353C17.005 51 19.336 51 24 51h12c4.663 0 6.995 0 8.804-.843a9.001 9.001 0 0 0 4.353-4.353C50 43.995 50 41.664 50 37c0-4.663 0-6.995-.843-8.804a9.001 9.001 0 0 0-4.353-4.353 7.076 7.076 0 0 0-1.597-.511c-1.372-.28-2.057-.42-2.423-.7a1.78 1.78 0 0 1-.583-.715C40 21.505 40 20.94 40 19.809V17c0-.929 0-1.393-.034-1.784a9 9 0 0 0-8.182-8.182C31.393 7 30.93 7 30 7s-1.393 0-1.784.034a9 9 0 0 0-8.182 8.182Z"/><path fill="#E87DE8" d="M22 17c0-.929 0-1.393.044-1.784a7 7 0 0 1 6.172-6.172C28.606 9 29.071 9 30 9s1.393 0 1.784.044a7 7 0 0 1 6.172 6.172c.044.39.044.855.044 1.784v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.394-.077-1.78a4 4 0 0 0-3.143-3.143C31.394 12 30.93 12 30 12s-1.394 0-1.78.077a4 4 0 0 0-3.143 3.143C25 15.606 25 16.07 25 17v4.5a1.5 1.5 0 0 1-3 0V17Z"/><path fill="#E87DE8" fill-rule="evenodd" d="M12 36.62c0-4.317 0-6.476.92-8.088a7 7 0 0 1 2.612-2.612c1.612-.92 3.77-.92 8.088-.92h6.855c.469 0 .703 0 .906.017 2.73.222 4.364 2.438 4.619 4.983.27-2.698 2.111-5 5.015-5A6.985 6.985 0 0 1 48 31.985v5.395c0 4.317 0 6.476-.92 8.088a7 7 0 0 1-2.612 2.612c-1.612.92-3.77.92-8.088.92h-5.855c-.469 0-.703 0-.906-.017-2.73-.222-4.364-2.438-4.619-4.983-.258 2.583-1.943 4.818-4.714 4.99-.155.01-.335.01-.694.01-.55 0-.825 0-1.057-.015a7 7 0 0 1-6.52-6.52C12 42.233 12 41.958 12 41.408V36.62Zm21.24-.273a4 4 0 1 0-6.478 0c.985 1.36 1.479 2.039 1.564 2.229.178.398.176.818.174 1.247V42.5a1.5 1.5 0 0 0 3 0v-2.677c-.002-.429-.004-.85.174-1.247.085-.19.579-.87 1.565-2.229Z" clip-rule="evenodd"/><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="2.5"/></svg>`,HELP_COMPAS_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><rect width="60" height="60" fill="#1DC956" rx="30"/><circle cx="30" cy="29.999" r="3" fill="#fff"/><path fill="#2BEE6C" stroke="#fff" stroke-width="2" d="m45.316 17.9-.88-.425.88.424a7.9 7.9 0 0 1 .026-.053c.093-.192.21-.432.26-.687l-.819-.162.819.162a2 2 0 0 0-.239-1.405c-.132-.224-.32-.412-.472-.562a8.415 8.415 0 0 1-.042-.042l-.042-.042c-.15-.151-.338-.34-.562-.472l-.508.862.508-.862a2 2 0 0 0-1.405-.239c-.255.05-.495.167-.687.26l-.053.026-15.05 7.246-.108.052c-1.131.545-1.843.887-2.456 1.374a6.994 6.994 0 0 0-1.13 1.13c-.487.613-.83 1.325-1.375 2.457l-.051.108-7.247 15.05-.025.053c-.094.192-.21.431-.26.686a2 2 0 0 0 .239 1.406l.855-.505-.856.505c.133.224.321.411.473.562l.042.042.041.042c.15.151.338.34.563.472a2 2 0 0 0 1.405.239l-.195-.981.195.98c.255-.05.494-.166.686-.26l.054-.025-.419-.87.419.87 15.05-7.247.107-.051c1.132-.545 1.844-.888 2.457-1.374a7.002 7.002 0 0 0 1.13-1.13c.487-.614.83-1.325 1.374-2.457l.052-.108 7.246-15.05Z"/><path fill="#1DC956" d="m33.376 32.723-2.669-3.43-14.85 14.849.206.205a1 1 0 0 0 1.141.194l15.105-7.273a3 3 0 0 0 1.067-4.545Z"/><path fill="#86F999" d="m26.624 27.276 2.669 3.43 14.85-14.849-.206-.205a1 1 0 0 0-1.141-.194L27.69 22.731a3 3 0 0 0-1.067 4.545Z"/><circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)"/><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="29.5"/></svg>`,HELP_NOUN_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><rect width="60" height="60" fill="#794CFF" rx="3"/><path fill="#987DE8" stroke="#fff" stroke-width="2" d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z"/><path fill="#fff" d="M37.5 25h10v10h-10z"/><path fill="#4019B2" d="M42.5 25h5v10h-5z"/><path fill="#fff" d="M19.5 25h10v10h-10z"/><path fill="#4019B2" d="M24.5 25h5v10h-5z"/><path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z"/><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="2.5"/></svg>`,HELP_DAO_IMG:B`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#o)"><path fill="#EB8B47" d="M0 24.9c0-9.252 0-13.878 1.97-17.332A15 15 0 0 1 7.569 1.97C11.023 0 15.648 0 24.9 0h10.2c9.251 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.022 60 15.648 60 24.899v10.2c0 9.252 0 13.878-1.97 17.332a15.001 15.001 0 0 1-5.598 5.598c-3.455 1.97-8.08 1.97-17.332 1.97H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.351 0 35.1V24.9Z"/><path class="help-img-highlight" d="M.5 24.9c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.29a14.5 14.5 0 0 1 5.412-5.41C9.455 1.468 11.395.986 14.105.743 16.822.5 20.265.5 24.9.5h10.2c4.635 0 8.078 0 10.795.244 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.58 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.796-.244 2.71-.726 4.65-1.66 6.289a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.411c-.935-1.64-1.417-3.58-1.66-6.29C.5 43.178.5 39.734.5 35.1V24.9Z"/><path fill="#FF974C" stroke="#fff" stroke-width="2" d="M19 52c5.523 0 10-4.477 10-10s-4.477-10-10-10S9 36.477 9 42s4.477 10 10 10Z"/><path fill="#fff" fill-rule="evenodd" d="M42.844 8.326a1 1 0 0 0-1.687 0L28.978 27.463A1 1 0 0 0 29.822 29h24.357a1 1 0 0 0 .843-1.537L42.844 8.326Z" clip-rule="evenodd"/><path fill="#FF974C" fill-rule="evenodd" d="M42.335 11.646c.324.115.571.504 1.066 1.28l7.332 11.523c.562.883.843 1.325.792 1.69a1 1 0 0 1-.342.623c-.28.238-.803.238-1.85.238H34.667c-1.047 0-1.57 0-1.85-.238a1 1 0 0 1-.342-.623c-.051-.365.23-.806.792-1.69l7.332-11.523c.495-.776.742-1.165 1.066-1.28a1 1 0 0 1 .67 0ZM35 27a7 7 0 0 0 7-7 7 7 0 0 0 7 7H35Z" clip-rule="evenodd"/><path fill="#FF974C" stroke="#fff" stroke-width="2" d="M10.106 9.357c-.109.32-.107.682-.106.975V25.668c-.001.293-.003.654.106.975a2 2 0 0 0 1.251 1.25c.32.11.682.108.975.107H19c5.523 0 10-4.477 10-10S24.523 8 19 8h-6.668c-.293-.001-.654-.003-.975.106a2 2 0 0 0-1.25 1.251Z"/><circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2"/><circle cx="19" cy="41.999" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2"/></g><defs><clipPath id="o"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,SEARCH_ICON:B`<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>`,HELP_ICON:B`<svg width="11" height="17" viewBox="0 0 11 17"><path fill="#fff" d="M5.22 2.97c-1.07 0-2.25.843-2.25 2.25a.75.75 0 0 1-1.5 0c0-2.393 2.019-3.75 3.75-3.75 1.73 0 3.75 1.357 3.75 3.75 0 1.64-1.038 2.466-1.785 3.057-.802.635-1.215.984-1.215 1.693a.75.75 0 1 1-1.5 0c0-1.466.985-2.24 1.681-2.788l.103-.081C7.007 6.504 7.47 6.08 7.47 5.22c0-1.407-1.181-2.25-2.25-2.25ZM5.22 14.97a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"/></svg>`,WALLET_ICON:B`<svg width="15" height="14" fill="none" viewBox="0 0 15 14"><path fill="#fff" fill-rule="evenodd" d="M.64 9.2v-3h.001c.009-1.857.07-2.886.525-3.682a4 4 0 0 1 1.492-1.493C3.58.5 4.813.5 7.28.5h3.735c.58 0 .871 0 1.114.04A3 3 0 0 1 14.6 3.011c.04.243.04.533.04 1.114 0 .58 0 .871-.04 1.114a3 3 0 0 1-2.471 2.47c-.243.041-.533.041-1.114.041h-.777c.178.307.302.648.362 1.011.04.243.04.533.04 1.114 0 .58 0 .871-.04 1.114a3 3 0 0 1-2.471 2.47c-.243.041-.533.041-1.114.041H4.507A3.867 3.867 0 0 1 .64 9.633V9.2ZM7.28 2h3.735c.64 0 .779.005.87.02a1.5 1.5 0 0 1 1.235 1.236c.015.09.02.229.02.869s-.005.779-.02.87a1.5 1.5 0 0 1-1.236 1.235c-.09.015-.229.02-.869.02H4.023c-.697 0-1.345.21-1.883.572V6.25h.001c.004-.791.015-1.383.059-1.867.056-.629.157-.926.269-1.122a2.5 2.5 0 0 1 .932-.933c.197-.111.494-.212 1.123-.268C5.173 2 6.019 2 7.28 2Zm-.265 5.75H4.023c-1.04 0-1.883.843-1.883 1.883A2.367 2.367 0 0 0 4.507 12h2.508c.64 0 .779-.005.87-.02a1.5 1.5 0 0 0 1.235-1.236c.015-.09.02-.229.02-.869s-.005-.779-.02-.87A1.5 1.5 0 0 0 7.884 7.77c-.09-.015-.228-.02-.869-.02Z" clip-rule="evenodd"/></svg>`,NETWORK_PLACEHOLDER:B`<svg width="28" height="28" fill="none" viewBox="0 0 28 28"><mask id="p" width="26" height="28" x="1" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#D9D9D9" d="M12 1.172a4 4 0 0 1 4 0l8.124 4.69a4 4 0 0 1 2 3.465v9.381a4 4 0 0 1-2 3.464L16 26.862a4 4 0 0 1-4 0l-8.124-4.69a4 4 0 0 1-2-3.464V9.327a4 4 0 0 1 2-3.464L12 1.173Z"/></mask><g mask="url(#p)"><path id="network-placeholder-fill" fill="#fff" d="M0 0h28v28H0z"/><path id="network-placeholder-dash" stroke="#000" stroke-dasharray="2 2" d="m8.953 2.931 2.032-1.173.25.433 1.015-.586c.269-.155.553-.271.844-.35l-.13-.483a4.003 4.003 0 0 1 2.071 0l-.13.483c.293.079.576.195.845.35l1.016.586.25-.433 2.03 1.173-.25.433 2.032 1.173.25-.433 2.03 1.172-.25.433 1.016.587c.269.155.512.342.725.556l.354-.354a4.003 4.003 0 0 1 1.035 1.794l-.483.129c.078.292.12.596.12.906v1.172h.5v2.346h-.5v2.345h.5v2.345h-.5v1.173c0 .31-.042.614-.12.906l.483.13a4.003 4.003 0 0 1-1.035 1.793l-.354-.354a3.498 3.498 0 0 1-.725.556l-1.015.586.25.434-2.031 1.172-.25-.433-2.031 1.173.25.433-2.031 1.172-.25-.433-1.016.587a3.494 3.494 0 0 1-.844.35l.13.482a4.003 4.003 0 0 1-2.071 0l.13-.483a3.496 3.496 0 0 1-.845-.35l-1.015-.586-.25.433-2.032-1.172.25-.433-2.03-1.173-.25.433L4.89 22.76l.25-.434-1.015-.586a3.498 3.498 0 0 1-.725-.556l-.354.354a4.003 4.003 0 0 1-1.035-1.794l.483-.13a3.497 3.497 0 0 1-.12-.905v-1.173h-.5V15.19h.5v-2.345h-.5v-2.346h.5V9.327c0-.31.042-.614.12-.906l-.483-.13a4.003 4.003 0 0 1 1.035-1.793l.354.354c.213-.214.456-.401.725-.556l1.015-.587-.25-.433 2.031-1.172.25.433 2.031-1.173-.25-.433Z"/><path fill="#798686" stroke="#fff" d="M14.243 13.563 14 13.428l-.243.135-6.388 3.549-.024.013c-.432.24-.79.44-1.053.622-.266.184-.516.405-.636.722a1.5 1.5 0 0 0 0 1.062c.12.317.37.538.636.722.263.183.62.382 1.053.622l.024.013 3.164 1.758.088.049c1.164.646 1.857 1.032 2.607 1.162.51.09 1.033.09 1.544 0 .75-.13 1.443-.516 2.606-1.162l.09-.05 3.163-1.757.024-.013c.432-.24.79-.44 1.053-.622.266-.184.516-.405.636-.722l-.468-.177.468.177a1.5 1.5 0 0 0 0-1.062l-.468.177.468-.177c-.12-.317-.37-.538-.636-.722-.263-.183-.62-.382-1.053-.622l-.024-.013-6.388-3.55Z"/><path fill="#9EA9A9" stroke="#fff" d="M14.243 8.563 14 8.428l-.243.135-6.388 3.549-.024.013c-.432.24-.79.44-1.053.622-.266.184-.516.405-.636.722a1.5 1.5 0 0 0 0 1.062c.12.316.37.537.636.722.263.183.62.382 1.053.622l.024.013 3.164 1.758.088.049c1.164.646 1.857 1.032 2.607 1.162.51.09 1.033.09 1.544 0 .75-.13 1.443-.516 2.606-1.162l.09-.05 3.163-1.757.024-.013c.432-.24.79-.44 1.053-.622.266-.184.516-.405.636-.722l-.468-.177.468.177a1.5 1.5 0 0 0 0-1.062l-.468.177.468-.177c-.12-.316-.37-.537-.636-.722-.263-.183-.62-.382-1.053-.622l-.024-.013-6.388-3.55Z"/><path fill="#C9CFCF" stroke="#fff" d="m22.344 9.53-.468-.176.468.177a1.5 1.5 0 0 0 0-1.062l-.468.177.468-.177c-.12-.317-.37-.537-.636-.722-.263-.183-.62-.382-1.053-.622l-.024-.013-3.163-1.758-.09-.05c-1.163-.645-1.856-1.03-2.606-1.161a4.5 4.5 0 0 0-1.544 0c-.75.13-1.443.516-2.607 1.162l-.088.05-3.164 1.757-.024.013c-.432.24-.79.44-1.053.622-.266.185-.516.405-.636.722a1.5 1.5 0 0 0 0 1.062c.12.317.37.537.636.722.263.183.62.382 1.053.622l.024.013 3.164 1.758.088.049c1.164.646 1.857 1.032 2.607 1.162.51.09 1.033.09 1.544 0 .75-.13 1.443-.516 2.606-1.162l.09-.05 3.163-1.757.024-.013c.432-.24.79-.44 1.053-.622.266-.184.516-.405.636-.722Z"/></g></svg>`,WALLET_PLACEHOLDER:B`<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>`,ACCOUNT_COPY:B`<svg width="14" height="14" fill="none" viewBox="0 0 14 14"><path fill="#fff" fill-rule="evenodd" d="M4.003 4.005c.012-1.225.074-1.936.391-2.491a3 3 0 0 1 1.12-1.12C6.204 0 7.136 0 9 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C14 2.204 14 3.136 14 5s0 2.795-.394 3.486a3 3 0 0 1-1.12 1.12c-.555.317-1.266.379-2.491.391l.002.003c-.012 1.222-.075 1.932-.391 2.486a3 3 0 0 1-1.12 1.12C7.796 14 6.864 14 5 14s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C0 11.796 0 10.864 0 9s0-2.795.394-3.486a3 3 0 0 1 1.12-1.12c.554-.316 1.264-.379 2.486-.391l.003.002ZM9 8.5c-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.045-.08-.113-.243-.154-.693C5.501 6.58 5.5 5.959 5.5 5c0-.959.001-1.58.043-2.05.04-.45.109-.613.154-.693a1.5 1.5 0 0 1 .56-.56c.08-.045.243-.113.693-.154C7.42 1.501 8.041 1.5 9 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.045.08.113.243.154.693.042.47.043 1.091.043 2.05 0 .959-.001 1.58-.043 2.05-.04.45-.109.613-.154.693a1.5 1.5 0 0 1-.56.56c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043ZM4 5.503a13.77 13.77 0 0 0-1.05.04c-.45.04-.613.109-.693.154a1.5 1.5 0 0 0-.56.56c-.045.08-.113.243-.154.693C1.501 7.42 1.5 8.041 1.5 9c0 .959.001 1.58.043 2.05.04.45.109.613.154.693a1.5 1.5 0 0 0 .56.56c.08.045.243.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 0 .56-.56c.045-.08.113-.242.154-.693.025-.283.035-.619.04-1.05-1.534-.003-2.358-.037-2.983-.394a3 3 0 0 1-1.12-1.12c-.357-.625-.39-1.449-.394-2.983Z" clip-rule="evenodd"/></svg>`,ACCOUNT_DISCONNECT:B`<svg width="16" height="14" fill="none" viewBox="0 0 16 14"><path fill="#fff" d="M9.677 1.5h-2.61c-1.261 0-2.107.001-2.757.06-.629.056-.926.157-1.122.268a2.5 2.5 0 0 0-.933.933c-.112.196-.212.493-.269 1.122-.058.65-.06 1.496-.06 2.757v.72c0 1.26.002 2.107.06 2.756.057.63.157.927.27 1.123a2.5 2.5 0 0 0 .932.933c.196.111.493.212 1.122.268.65.059 1.496.06 2.757.06h2.61a.75.75 0 1 1 0 1.5h-2.61c-2.467 0-3.7 0-4.622-.525a4 4 0 0 1-1.493-1.493C.427 11.06.427 9.827.427 7.36v-.72c0-2.467 0-3.7.525-4.622A4 4 0 0 1 2.445.525C3.366 0 4.6 0 7.067 0h2.61a.75.75 0 1 1 0 1.5Z"/><path fill="#fff" d="M10.896 11.03a.75.75 0 0 1 0-1.06l1.793-1.793a.25.25 0 0 0-.176-.427H8.177a.75.75 0 0 1 0-1.5h4.336a.25.25 0 0 0 .176-.427L10.896 4.03a.75.75 0 0 1 1.061-1.06l3.323 3.323a1 1 0 0 1 0 1.414l-3.323 3.323a.75.75 0 0 1-1.06 0Z"/></svg>`},Qe=l`#w3m-transparent-noise,.w3m-canvas,.w3m-color-placeholder,.w3m-gradient-placeholder,.w3m-highlight{inset:0;position:absolute;display:block;pointer-events:none;width:100%;height:100px;border-radius:8px 8px 0 0;transform:translateY(-5px)}.w3m-gradient-placeholder{background:linear-gradient(var(--gradient-1),var(--gradient-2),var(--gradient-3),var(--gradient-4))}.w3m-color-placeholder{background-color:var(--color-fg-accent)}.w3m-highlight{border:1px solid var(--color-overlay)}.w3m-canvas{opacity:0;transition:opacity 2s ease;box-shadow:0 8px 28px -6px rgba(10,16,31,.12),0 18px 88px -4px rgba(10,16,31,.14)}.w3m-canvas-visible{opacity:1}#w3m-transparent-noise{mix-blend-mode:multiply;opacity:.35}.w3m-toolbar{height:28px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--color-fg-inverse)}.w3m-action-btn{width:28px;height:28px;border-radius:50%;border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color,.2s ease;background-color:var(--color-bg-1);box-shadow:0 0 0 1px var(--color-overlay),0 2px 4px -2px rgba(0,0,0,.12),0 4px 4px -2px rgba(0,0,0,.08)}.w3m-action-btn:hover{background-color:var(--color-bg-2)}.w3m-action-btn svg{display:block;object-position:center}.w3m-action-btn path{fill:var(--color-fg-1)}.w3m-actions{display:flex}.w3m-actions button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--color-fg-1)}.w3m-help-active button:first-child path{fill:var(--color-bg-1)}`;var Xe=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?tn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Xe(e,n,i),i};const nn=new class{constructor(...t){this.angle=0,this.t=1253106,this.last=0,this.height=500,this.amp=300,this.seed=15,this.freqX=14e-5,this.freqY=29e-5,this.freqDelta=1e-5,this.activeColors=[1,1,1,1],this.isMetaKey=!1,this.playing=!1,Ye(this,"resize",(()=>{this.width=window.innerWidth,this.minigl.setSize(this.width,this.height),this.minigl.setOrthographicCamera(),this.xSegCount=Math.ceil(this.width*this.conf.density[0]),this.ySegCount=Math.ceil(this.height*this.conf.density[1]),this.mesh.geometry.setTopology(this.xSegCount,this.ySegCount),this.mesh.geometry.setSize(this.width,this.height),this.mesh.material.uniforms.u_shadow_power.value=this.width<550?5:6})),Ye(this,"animate",(t=>{if(this.playing){if(this.shouldSkipFrame(t)||(this.t+=Math.min(t-this.last,1e3/15),this.last=t,this.mesh.material.uniforms.u_time.value=this.t,this.minigl.render()),0!==this.last&&this.isStatic)return this.minigl.render();requestAnimationFrame(this.animate)}}))}play(t){this.el=t,this.connect()}stop(){this.playing=!1}async connect(){this.shaderFiles={vertex:"varying vec3 v_color;void main(){float time=u_time*u_global.noiseSpeed;vec2 noiseCoord=resolution*uvNorm*u_global.noiseFreq;vec2 st=1.-uvNorm.xy;float tilt=resolution.y/2.0*uvNorm.y;float incline=resolution.x*uvNorm.x/2.0*u_vertDeform.incline;float offset=resolution.x/2.0*u_vertDeform.incline*mix(u_vertDeform.offsetBottom,u_vertDeform.offsetTop,uv.y);float noise=snoise(vec3(noiseCoord.x*u_vertDeform.noiseFreq.x+time*u_vertDeform.noiseFlow,noiseCoord.y*u_vertDeform.noiseFreq.y,time*u_vertDeform.noiseSpeed+u_vertDeform.noiseSeed))*u_vertDeform.noiseAmp;noise*=1.0-pow(abs(uvNorm.y),2.0);noise=max(0.0,noise);vec3 pos=vec3(position.x,position.y+tilt+incline+noise-offset,position.z);if(u_active_colors[0]==1.){v_color=u_baseColor;}for(int i=0;i<u_waveLayers_length;i++){if(u_active_colors[i+1]==1.){WaveLayers layer=u_waveLayers[i];float noise=smoothstep(layer.noiseFloor,layer.noiseCeil,snoise(vec3(noiseCoord.x*layer.noiseFreq.x+time*layer.noiseFlow,noiseCoord.y*layer.noiseFreq.y,time*layer.noiseSpeed+layer.noiseSeed))/2.0+0.5);v_color=blendNormal(v_color,layer.color,pow(noise,4.));}}gl_Position=projectionMatrix*modelViewMatrix*vec4(pos,1.0);}",noise:"\n// MIT License: Copyright (C) 2011 Ashima Arts. All rights reserved. https://github.com/ashima/webgl-noise, https://github.com/stegu/webgl-noise\nvec3 mod289(vec3 x){return x-floor(x*(1.0/289.0))*289.0;}vec4 mod289(vec4 x){return x-floor(x*(1.0/289.0))*289.0;}vec4 permute(vec4 x){return mod289(((x*34.0)+1.0)*x);}vec4 taylorInvSqrt(vec4 r){return 1.79284291400159-0.85373472095314*r;}float snoise(vec3 v){const vec2 C=vec2(1.0/6.0,1.0/3.0);const vec4 D=vec4(0.0,0.5,1.0,2.0);vec3 i=floor(v+dot(v,C.yyy));vec3 x0=v-i+dot(i,C.xxx);vec3 g=step(x0.yzx,x0.xyz);vec3 l=1.0-g;vec3 i1=min(g.xyz,l.zxy);vec3 i2=max(g.xyz,l.zxy);vec3 x1=x0-i1+C.xxx;vec3 x2=x0-i2+C.yyy;vec3 x3=x0-D.yyy;i=mod289(i);vec4 p=permute(permute(permute(i.z+vec4(0.0,i1.z,i2.z,1.0))+i.y+vec4(0.0,i1.y,i2.y,1.0))+i.x+vec4(0.0,i1.x,i2.x,1.0));float n_=0.142857142857;vec3 ns=n_*D.wyz-D.xzx;vec4 j=p-49.0*floor(p*ns.z*ns.z);vec4 x_=floor(j*ns.z);vec4 y_=floor(j-7.0*x_);vec4 x=x_*ns.x+ns.yyyy;vec4 y=y_*ns.x+ns.yyyy;vec4 h=1.0-abs(x)-abs(y);vec4 b0=vec4(x.xy,y.xy);vec4 b1=vec4(x.zw,y.zw);vec4 s0=floor(b0)*2.0+1.0;vec4 s1=floor(b1)*2.0+1.0;vec4 sh=-step(h,vec4(0.0));vec4 a0=b0.xzyw+s0.xzyw*sh.xxyy;vec4 a1=b1.xzyw+s1.xzyw*sh.zzww;vec3 p0=vec3(a0.xy,h.x);vec3 p1=vec3(a0.zw,h.y);vec3 p2=vec3(a1.xy,h.z);vec3 p3=vec3(a1.zw,h.w);vec4 norm=taylorInvSqrt(vec4(dot(p0,p0),dot(p1,p1),dot(p2,p2),dot(p3,p3)));p0*=norm.x;p1*=norm.y;p2*=norm.z;p3*=norm.w;vec4 m=max(0.6-vec4(dot(x0,x0),dot(x1,x1),dot(x2,x2),dot(x3,x3)),0.0);m=m*m;return 42.0*dot(m*m,vec4(dot(p0,x0),dot(p1,x1),dot(p2,x2),dot(p3,x3)));}",blend:"\n// MIT Licence: Copyright (C) 2015 Jamie Owen. All rights reserved. https://github.com/jamieowen/glsl-blend\nvec3 blendNormal(vec3 base, vec3 blend){return blend;}vec3 blendNormal(vec3 base,vec3 blend,float opacity){return (blendNormal(base,blend)*opacity+base*(1.0-opacity));}float blendScreen(float base,float blend){return 1.0-((1.0-base)*(1.0-blend));}vec3 blendScreen(vec3 base,vec3 blend){return vec3(blendScreen(base.r,blend.r),blendScreen(base.g,blend.g),blendScreen(base.b,blend.b));}vec3 blendScreen(vec3 base,vec3 blend,float opacity){return (blendScreen(base, blend)*opacity+base*(1.0-opacity));}vec3 blendMultiply(vec3 base,vec3 blend){return base*blend;}vec3 blendMultiply(vec3 base,vec3 blend,float opacity){return (blendMultiply(base,blend)*opacity+base*(1.0-opacity));}float blendOverlay(float base,float blend){return base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));}vec3 blendOverlay(vec3 base,vec3 blend){return vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));}vec3 blendOverlay(vec3 base,vec3 blend,float opacity){return (blendOverlay(base,blend)*opacity+base*(1.0-opacity));}vec3 blendHardLight(vec3 base,vec3 blend){return blendOverlay(blend,base);}vec3 blendHardLight(vec3 base,vec3 blend,float opacity){return (blendHardLight(base,blend)*opacity+base*(1.0-opacity));}float blendSoftLight(float base,float blend){return (blend<0.5)?(2.0*base*blend+base*base*(1.0-2.0*blend)):(sqrt(base)*(2.0*blend-1.0)+2.0*base*(1.0-blend));}vec3 blendSoftLight(vec3 base,vec3 blend){return vec3(blendSoftLight(base.r,blend.r),blendSoftLight(base.g,blend.g),blendSoftLight(base.b,blend.b));}vec3 blendSoftLight(vec3 base,vec3 blend,float opacity){return (blendSoftLight(base,blend)*opacity+base*(1.0-opacity));}float blendColorDodge(float base,float blend){return (blend==1.0)?blend:min(base/(1.0-blend),1.0);}vec3 blendColorDodge(vec3 base,vec3 blend){return vec3(blendColorDodge(base.r,blend.r),blendColorDodge(base.g,blend.g),blendColorDodge(base.b,blend.b));}vec3 blendColorDodge(vec3 base,vec3 blend,float opacity){return (blendColorDodge(base, blend)*opacity+base*(1.0-opacity));}float blendColorBurn(float base,float blend){return (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);}vec3 blendColorBurn(vec3 base,vec3 blend){return vec3(blendColorBurn(base.r,blend.r),blendColorBurn(base.g,blend.g),blendColorBurn(base.b,blend.b));}vec3 blendColorBurn(vec3 base,vec3 blend,float opacity){return (blendColorBurn(base, blend)*opacity+base*(1.0-opacity));}float blendVividLight(float base,float blend){return (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));}vec3 blendVividLight(vec3 base,vec3 blend){return vec3(blendVividLight(base.r,blend.r),blendVividLight(base.g,blend.g),blendVividLight(base.b,blend.b));}vec3 blendVividLight(vec3 base,vec3 blend,float opacity){return (blendVividLight(base,blend)*opacity+base*(1.0-opacity));}float blendLighten(float base,float blend){return max(blend,base);}vec3 blendLighten(vec3 base,vec3 blend){return vec3(blendLighten(base.r,blend.r),blendLighten(base.g,blend.g),blendLighten(base.b,blend.b));}vec3 blendLighten(vec3 base,vec3 blend,float opacity){return (blendLighten(base,blend)*opacity+base*(1.0-opacity));}float blendLinearBurn(float base,float blend){return max(base+blend-1.0,0.0);}vec3 blendLinearBurn(vec3 base,vec3 blend){return max(base+blend-vec3(1.0),vec3(0.0));}vec3 blendLinearBurn(vec3 base,vec3 blend,float opacity){return (blendLinearBurn(base, blend)*opacity+base*(1.0-opacity));}float blendLinearDodge(float base,float blend){return min(base+blend,1.0);}vec3 blendLinearDodge(vec3 base,vec3 blend){return min(base+blend,vec3(1.0));}vec3 blendLinearDodge(vec3 base,vec3 blend,float opacity){return (blendLinearDodge(base,blend)*opacity+base*(1.0-opacity));}float blendLinearLight(float base,float blend){return blend<0.5?blendLinearBurn(base,(2.0*blend)):blendLinearDodge(base,(2.0*(blend-0.5)));}vec3 blendLinearLight(vec3 base,vec3 blend){return vec3(blendLinearLight(base.r,blend.r),blendLinearLight(base.g,blend.g),blendLinearLight(base.b,blend.b));}vec3 blendLinearLight(vec3 base,vec3 blend,float opacity){return (blendLinearLight(base,blend)*opacity+base*(1.0-opacity));}",fragment:"varying vec3 v_color;void main(){vec3 color=v_color;if(u_darken_top==1.0){vec2 st=gl_FragCoord.xy/resolution.xy;color.g-=pow(st.y+sin(-12.0)*st.x,u_shadow_power)*0.4;}gl_FragColor=vec4(color,1.0);}"},this.conf={density:[.06,.16]},this.minigl=new class{constructor(t,e,n){const o=this;o.canvas=t,o.gl=o.canvas.getContext("webgl",{antialias:!0}),o.meshes=[];const r=o.gl;e&&n&&this.setSize(e,n),Object.defineProperties(o,{Material:{enumerable:!1,value:class{constructor(t,e,n={}){const i=this;function a(t,e){const n=r.createShader(t);return r.shaderSource(n,e),r.compileShader(n),r.getShaderParameter(n,r.COMPILE_STATUS)||console.error(r.getShaderInfoLog(n)),n}function s(t,e){return Object.entries(t).map((([t,n])=>n.getDeclaration(t,e))).join("")}i.uniforms=n,i.uniformInstances=[];const l="precision highp float;";i.vertexSource=`${l} attribute vec4 position;attribute vec2 uv;attribute vec2 uvNorm;${s(o.commonUniforms,"vertex")} ${s(n,"vertex")} ${t}`,i.Source=`${l} ${s(o.commonUniforms,"fragment")} ${s(n,"fragment")} ${e} `,i.vertexShader=a(r.VERTEX_SHADER,i.vertexSource),i.fragmentShader=a(r.FRAGMENT_SHADER,i.Source),i.program=r.createProgram(),r.attachShader(i.program,i.vertexShader),r.attachShader(i.program,i.fragmentShader),r.linkProgram(i.program),r.getProgramParameter(i.program,r.LINK_STATUS)||console.error(r.getProgramInfoLog(i.program)),r.useProgram(i.program),i.attachUniforms(void 0,o.commonUniforms),i.attachUniforms(void 0,i.uniforms)}attachUniforms(t,e){const n=this;void 0===t?Object.entries(e).forEach((([t,e])=>{n.attachUniforms(t,e)})):"array"==e.type?e.value.forEach(((e,o)=>n.attachUniforms(`${t}[${o}]`,e))):"struct"==e.type?Object.entries(e.value).forEach((([e,o])=>n.attachUniforms(`${t}.${e}`,o))):n.uniformInstances.push({uniform:e,location:r.getUniformLocation(n.program,t)})}}},Uniform:{enumerable:!1,value:class{constructor(t){this.type="float",Object.assign(this,t),this.typeFn={float:"1f",int:"1i",vec2:"2fv",vec3:"3fv",vec4:"4fv",mat4:"Matrix4fv"}[this.type]||"1f",this.update()}update(t){void 0!==this.value&&r[`uniform${this.typeFn}`](t,0===this.typeFn.indexOf("Matrix")?this.transpose:this.value,0===this.typeFn.indexOf("Matrix")?this.value:null)}getDeclaration(t,e,n){const o=this;if(o.excludeFrom!==e){if("array"===o.type)return o.value[0].getDeclaration(t,e,o.value.length)+`const int ${t}_length=${o.value.length};`;if("struct"===o.type){let r=t.replace("u_","");return r=r.charAt(0).toUpperCase()+r.slice(1),`uniform struct ${r} {`+Object.entries(o.value).map((([t,n])=>n.getDeclaration(t,e).replace(/^uniform/,""))).join("")+`} ${t}${n>0?`[${n}]`:""};`}return`uniform ${o.type} ${t}${n>0?`[${n}]`:""};`}}}},PlaneGeometry:{enumerable:!1,value:class{constructor(t,e,n,i,a){r.createBuffer(),this.attributes={position:new o.Attribute({target:r.ARRAY_BUFFER,size:3}),uv:new o.Attribute({target:r.ARRAY_BUFFER,size:2}),uvNorm:new o.Attribute({target:r.ARRAY_BUFFER,size:2}),index:new o.Attribute({target:r.ELEMENT_ARRAY_BUFFER,size:3,type:r.UNSIGNED_SHORT})},this.setTopology(n,i),this.setSize(t,e,a)}setTopology(t=1,e=1){const n=this;n.xSegCount=t,n.ySegCount=e,n.vertexCount=(n.xSegCount+1)*(n.ySegCount+1),n.quadCount=n.xSegCount*n.ySegCount*2,n.attributes.uv.values=new Float32Array(2*n.vertexCount),n.attributes.uvNorm.values=new Float32Array(2*n.vertexCount),n.attributes.index.values=new Uint16Array(3*n.quadCount);for(let t=0;t<=n.ySegCount;t++)for(let e=0;e<=n.xSegCount;e++){const o=t*(n.xSegCount+1)+e;if(n.attributes.uv.values[2*o]=e/n.xSegCount,n.attributes.uv.values[2*o+1]=1-t/n.ySegCount,n.attributes.uvNorm.values[2*o]=e/n.xSegCount*2-1,n.attributes.uvNorm.values[2*o+1]=1-t/n.ySegCount*2,e<n.xSegCount&&t<n.ySegCount){const r=t*n.xSegCount+e;n.attributes.index.values[6*r]=o,n.attributes.index.values[6*r+1]=o+1+n.xSegCount,n.attributes.index.values[6*r+2]=o+1,n.attributes.index.values[6*r+3]=o+1,n.attributes.index.values[6*r+4]=o+1+n.xSegCount,n.attributes.index.values[6*r+5]=o+2+n.xSegCount}}n.attributes.uv.update(),n.attributes.uvNorm.update(),n.attributes.index.update()}setSize(t=1,e=1,n="xz"){const o=this;o.width=t,o.height=e,o.orientation=n,o.attributes.position.values&&o.attributes.position.values.length===3*o.vertexCount||(o.attributes.position.values=new Float32Array(3*o.vertexCount));const r=t/-2,i=e/-2,a=t/o.xSegCount,s=e/o.ySegCount;for(let t=0;t<=o.ySegCount;t++){const e=i+t*s;for(let i=0;i<=o.xSegCount;i++){const s=r+i*a,l=t*(o.xSegCount+1)+i;o.attributes.position.values[3*l+"xyz".indexOf(n[0])]=s,o.attributes.position.values[3*l+"xyz".indexOf(n[1])]=-e}}o.attributes.position.update()}}},Mesh:{enumerable:!1,value:class{constructor(t,e){const n=this;n.geometry=t,n.material=e,n.attributeInstances=[],Object.entries(n.geometry.attributes).forEach((([t,e])=>{n.attributeInstances.push({attribute:e,location:e.attach(t,n.material.program)})})),o.meshes.push(n)}draw(){r.useProgram(this.material.program),this.material.uniformInstances.forEach((({uniform:t,location:e})=>t.update(e))),this.attributeInstances.forEach((({attribute:t,location:e})=>t.use(e))),r.drawElements(r.TRIANGLES,this.geometry.attributes.index.values.length,r.UNSIGNED_SHORT,0)}remove(){o.meshes=o.meshes.filter((t=>t!=this))}}},Attribute:{enumerable:!1,value:class{constructor(t){this.type=r.FLOAT,this.normalized=!1,this.buffer=r.createBuffer(),Object.assign(this,t),this.update()}update(){void 0!==this.values&&(r.bindBuffer(this.target,this.buffer),r.bufferData(this.target,this.values,r.STATIC_DRAW))}attach(t,e){const n=r.getAttribLocation(e,t);return this.target===r.ARRAY_BUFFER&&(r.enableVertexAttribArray(n),r.vertexAttribPointer(n,this.size,this.type,this.normalized,0,0)),n}use(t){r.bindBuffer(this.target,this.buffer),this.target===r.ARRAY_BUFFER&&(r.enableVertexAttribArray(t),r.vertexAttribPointer(t,this.size,this.type,this.normalized,0,0))}}}});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];o.commonUniforms={projectionMatrix:new o.Uniform({type:"mat4",value:i}),modelViewMatrix:new o.Uniform({type:"mat4",value:i}),resolution:new o.Uniform({type:"vec2",value:[1,1]}),aspectRatio:new o.Uniform({type:"float",value:1})}}setSize(t=640,e=480){this.width=t,this.height=e,this.canvas.width=t,this.canvas.height=e,this.gl.viewport(0,0,t,e),this.commonUniforms.resolution.value=[t,e],this.commonUniforms.aspectRatio.value=t/e}setOrthographicCamera(t=0,e=0,n=0,o=-2e3,r=2e3){this.commonUniforms.projectionMatrix.value=[2/this.width,0,0,0,0,2/this.height,0,0,0,0,2/(o-r),0,t,e,n,1]}render(){this.gl.clearColor(0,0,0,0),this.gl.clearDepth(1),this.meshes.forEach((t=>t.draw()))}}(this.el,null,null,!0),requestAnimationFrame((()=>{this.el&&(this.computedCanvasStyle=getComputedStyle(this.el),this.waitForCssVars())}))}initMaterial(){this.uniforms={u_time:new this.minigl.Uniform({value:0}),u_shadow_power:new this.minigl.Uniform({value:5}),u_darken_top:new this.minigl.Uniform({value:""===this.el.dataset.jsDarkenTop?1:0}),u_active_colors:new this.minigl.Uniform({value:this.activeColors,type:"vec4"}),u_global:new this.minigl.Uniform({value:{noiseFreq:new this.minigl.Uniform({value:[this.freqX,this.freqY],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:5e-6})},type:"struct"}),u_vertDeform:new this.minigl.Uniform({value:{incline:new this.minigl.Uniform({value:Math.sin(this.angle)/Math.cos(this.angle)}),offsetTop:new this.minigl.Uniform({value:-.5}),offsetBottom:new this.minigl.Uniform({value:-.5}),noiseFreq:new this.minigl.Uniform({value:[3,4],type:"vec2"}),noiseAmp:new this.minigl.Uniform({value:this.amp}),noiseSpeed:new this.minigl.Uniform({value:10}),noiseFlow:new this.minigl.Uniform({value:3}),noiseSeed:new this.minigl.Uniform({value:this.seed})},type:"struct",excludeFrom:"fragment"}),u_baseColor:new this.minigl.Uniform({value:this.sectionColors[0],type:"vec3",excludeFrom:"fragment"}),u_waveLayers:new this.minigl.Uniform({value:[],excludeFrom:"fragment",type:"array"})};for(let t=1;t<this.sectionColors.length;t+=1)this.uniforms.u_waveLayers.value.push(new this.minigl.Uniform({value:{color:new this.minigl.Uniform({value:this.sectionColors[t],type:"vec3"}),noiseFreq:new this.minigl.Uniform({value:[2+t/this.sectionColors.length,3+t/this.sectionColors.length],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:11+.3*t}),noiseFlow:new this.minigl.Uniform({value:6.5+.3*t}),noiseSeed:new this.minigl.Uniform({value:this.seed+10*t}),noiseFloor:new this.minigl.Uniform({value:.1}),noiseCeil:new this.minigl.Uniform({value:.63+.07*t})},type:"struct"}));return this.vertexShader=[this.shaderFiles.noise,this.shaderFiles.blend,this.shaderFiles.vertex].join(""),new this.minigl.Material(this.vertexShader,this.shaderFiles.fragment,this.uniforms)}initMesh(){this.material=this.initMaterial(),this.geometry=new this.minigl.PlaneGeometry,this.mesh=new this.minigl.Mesh(this.geometry,this.material)}shouldSkipFrame(t){return!!window.document.hidden||parseInt(t,10)%2==0||void 0}updateFrequency(t){this.freqX+=t,this.freqY+=t}toggleColor(t){this.activeColors[t]=0===this.activeColors[t]?1:0}init(){this.playing=!0,this.initGradientColors(),this.initMesh(),this.resize(),requestAnimationFrame(this.animate)}waitForCssVars(){this.computedCanvasStyle&&this.computedCanvasStyle.getPropertyValue("--gradient-1").indexOf("#"),this.init()}initGradientColors(){this.sectionColors=["--gradient-1","--gradient-2","--gradient-3","--gradient-4"].map((t=>{let e=this.computedCanvasStyle.getPropertyValue(t).trim();return 4===e.length&&(e=`#${e.substr(1).split("").map((t=>t+t)).join("")}`),e&&`0x${e.substr(1)}`})).filter(Boolean).map(Ge)}};let on=class extends rt{constructor(){super(),this.open=!1,this.isHelp=!1,this.unsubscribeRouter=void 0,this.playTimeout=void 0,this.unsubscribeRouter=ht.AV.subscribe((t=>{this.isHelp="Help"===t.view}))}firstUpdated(){const{themeBackground:t}=ht.t0.state;"gradient"===t&&(this.playTimeout=setTimeout((()=>{nn.play(this.canvasEl),this.open=!0}),800))}disconnectedCallback(){var t;null==(t=this.unsubscribeRouter)||t.call(this),clearTimeout(this.playTimeout),nn.stop()}get canvasEl(){return He.getShadowRootElement(this,".w3m-canvas")}onHelp(){ht.AV.push("Help")}render(){const{themeBackground:t}=ht.t0.state,e={"w3m-canvas":!0,"w3m-canvas-visible":this.open},n={"w3m-actions":!0,"w3m-help-active":this.isHelp};return D`${"themeColor"===t?D`<div class="w3m-color-placeholder"></div>`:null} ${"gradient"===t?D`<div class="w3m-gradient-placeholder"></div><canvas class="${mt(e)}"></canvas>${Je.NOISE_TEXTURE}`:null}<div class="w3m-highlight"></div><div class="w3m-toolbar">${Je.WALLET_CONNECT_LOGO}<div class="${mt(n)}"><button class="w3m-action-btn" @click="${this.onHelp}">${Je.HELP_ICON}</button> <button class="w3m-action-btn" @click="${ht.jb.close}">${Je.CROSS_ICON}</button></div></div>`}};on.styles=[Se.globalCss,Qe],en([ct()],on.prototype,"open",2),en([ct()],on.prototype,"isHelp",2),on=en([at("w3m-modal-backcard")],on);const rn=l`main{padding:20px;width:100%}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let an=class extends rt{render(){return D`<main><slot></slot></main>`}};an.styles=[Se.globalCss,rn],an=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-modal-content")],an);const sn=l`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--color-bg-2)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let ln=class extends rt{render(){return D`<footer><slot></slot></footer>`}};ln.styles=[Se.globalCss,sn],ln=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-modal-footer")],ln);const cn=l`header{display:flex;justify-content:center;align-items:center;padding:18px 20px;position:relative;border-bottom:1px solid var(--color-bg-2)}header button{padding:15px 20px;transition:opacity .2s ease}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}.w3m-action-btn path,.w3m-back-btn path{fill:var(--color-fg-accent)}`;var dn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,un=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?hn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&dn(e,n,i),i};let mn=class extends rt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0}backBtnTemplate(){return D`<button class="w3m-back-btn" @click="${ht.AV.goBack}">${Je.BACK_ICON}</button>`}actionBtnTemplate(){return D`<button class="w3m-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const t=ht.AV.state.history.length>1,e=this.title?D`<w3m-text variant="large-bold">${this.title}</w3m-text>`:D`<slot></slot>`;return D`<header>${t?this.backBtnTemplate():null} ${e} ${this.onAction?this.actionBtnTemplate():null}</header>`}};mn.styles=[Se.globalCss,cn],un([lt()],mn.prototype,"title",2),un([lt()],mn.prototype,"onAction",2),un([lt()],mn.prototype,"actionIcon",2),mn=un([at("w3m-modal-header")],mn);const pn=l`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`;var gn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,vn=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?fn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&gn(e,n,i),i};let wn=class extends rt{constructor(){super(),this.view=ht.AV.state.view,this.prevView=ht.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=ht.AV.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&(we(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),we(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.03})),this.oldHeight=e})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;null==(t=this.unsubscribe)||t.call(this),null==(e=this.resizeObserver)||e.disconnect()}get routerEl(){return He.getShadowRootElement(this,".w3m-router")}get contentEl(){return He.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return D`<w3m-connect-wallet-view></w3m-connect-wallet-view>`;case"SelectNetwork":return D`<w3m-select-network-view></w3m-select-network-view>`;case"CoinbaseMobileConnector":return D`<w3m-coinbase-mobile-connector-view></w3m-coinbase-mobile-connector-view>`;case"CoinbaseExtensionConnector":return D`<w3m-coinbase-extension-connector-view></w3m-coinbase-extension-connector-view>`;case"InjectedConnector":return D`<w3m-injected-connector-view></w3m-injected-connector-view>`;case"MetaMaskConnector":return D`<w3m-metamask-connector-view></w3m-metamask-connector-view>`;case"GetWallet":return D`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"DesktopConnector":return D`<w3m-desktop-connector-view></w3m-desktop-connector-view>`;case"WalletExplorer":return D`<w3m-wallet-explorer-view></w3m-wallet-explorer-view>`;case"Qrcode":return D`<w3m-qrcode-view></w3m-qrcode-view>`;case"Help":return D`<w3m-help-view></w3m-help-view>`;case"WalletFilter":return D`<w3m-wallet-filter-view></w3m-wallet-filter-view>`;case"Account":return D`<w3m-account-view></w3m-account-view>`;case"SwitchNetwork":return D`<w3m-switch-network-view></w3m-switch-network-view>`;default:return D`<div>Not Found</div>`}}async onChangeRoute(){await we(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15}).finished,this.view=ht.AV.state.view}render(){return D`<div class="w3m-router"><div class="w3m-content">${this.viewTemplate()}</div></div>`}};wn.styles=[Se.globalCss,pn],vn([ct()],wn.prototype,"view",2),vn([ct()],wn.prototype,"prevView",2),wn=vn([at("w3m-modal-router")],wn);const bn=l`.w3m-modal-toast{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:10px 15px;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:36px;border:1px solid var(--color-overlay);background-color:var(--color-overlay)}.w3m-modal-toast svg{margin-right:5px}@-moz-document url-prefix(){.w3m-modal-toast{background-color:var(--color-bg-3)}}.w3m-success path{fill:var(--color-fg-accent)}.w3m-error path{fill:var(--color-err)}`;var yn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Cn=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?xn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&yn(e,n,i),i};let $n=class extends rt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=ht.Vs.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>ht.Vs.closeToast()),2e3)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),ht.Vs.closeToast()}render(){const{message:t,variant:e}=ht.Vs.state,n={"w3m-modal-toast":!0,"w3m-success":"success"===e,"w3m-error":"error"===e};return this.open?D`<div class="${mt(n)}">${"success"===e?Je.CHECKMARK_ICON:null} ${"error"===e?Je.CROSS_ICON:null}<w3m-text variant="small-normal">${t}</w3m-text></div>`:null}};$n.styles=[Se.globalCss,bn],Cn([ct()],$n.prototype,"open",2),$n=Cn([at("w3m-modal-toast")],$n);const kn=l`.w3m-network-button{padding:5px;border-radius:10px;transition:all .2s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}.w3m-network-button:hover{background-color:var(--color-overlay)}`;var En=Object.defineProperty,An=Object.getOwnPropertyDescriptor,_n=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?An(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&En(e,n,i),i};let Mn=class extends rt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId=""}render(){return D`<button class="w3m-network-button" @click="${this.onClick}"><w3m-network-image chainId="${this.chainId}"></w3m-network-image><w3m-text variant="xsmall-normal">${this.name}</w3m-text></button>`}};Mn.styles=[Se.globalCss,kn],_n([lt()],Mn.prototype,"onClick",2),_n([lt()],Mn.prototype,"name",2),_n([lt()],Mn.prototype,"chainId",2),Mn=_n([at("w3m-network-button")],Mn);const On=l`.w3m-network-image{width:inherit;height:inherit}.polygon-stroke{stroke:var(--color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--color-bg-3)}#network-placeholder-dash{stroke:var(--color-overlay)}`;var In=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Pn=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Sn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&In(e,n,i),i};let Tn=class extends rt{constructor(){super(...arguments),this.chainId=""}render(){const t=He.getChainIcon(this.chainId);return t?D`<div class="w3m-network-image"><svg width="54" height="59" viewBox="0 0 54 59" fill="none"><defs><clipPath id="polygon"><path d="M17.033 4.964c3.852-2.262 5.778-3.393 7.84-3.77a11.807 11.807 0 0 1 4.254 0c2.062.377 3.988 1.508 7.84 3.77l6.066 3.562c3.852 2.263 5.777 3.394 7.13 5.022a12.268 12.268 0 0 1 2.127 3.747c.71 2.006.71 4.268.71 8.793v7.124c0 4.525 0 6.787-.71 8.793a12.268 12.268 0 0 1-2.126 3.747c-1.354 1.628-3.28 2.76-7.131 5.022l-6.066 3.562c-3.852 2.262-5.778 3.393-7.84 3.771a11.814 11.814 0 0 1-4.254 0c-2.062-.378-3.988-1.509-7.84-3.77l-6.066-3.563c-3.852-2.263-5.778-3.394-7.13-5.022a12.268 12.268 0 0 1-2.127-3.747C1 40 1 37.737 1 33.212v-7.124c0-4.525 0-6.787.71-8.793a12.268 12.268 0 0 1 2.127-3.747c1.352-1.628 3.278-2.76 7.13-5.022l6.066-3.562Z"/></clipPath></defs><image clip-path="url(#polygon)" href="${t}" width="58" height="59" x="-2" y="0"/><path class="polygon-stroke" d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z" stroke="#fff"/></svg></div>`:D`${Je.NETWORK_PLACEHOLDER}`}};function Ln(t,e,n){return t!==e&&(t-e<0?e-t:t-e)<=n+.1}Tn.styles=[Se.globalCss,On],Pn([lt()],Tn.prototype,"chainId",2),Tn=Pn([at("w3m-network-image")],Tn);const Rn={generate(t,e,n,o){const r="light"===o?"#141414":"#fff",i="light"===o?"#fff":"#141414",a=[],s=function(t,e){const n=Array.prototype.slice.call(ke.create(t,{errorCorrectionLevel:"Q"}).modules.data,0),o=Math.sqrt(n.length);return n.reduce(((t,e,n)=>(n%o==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),l=e/s.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach((({x:t,y:e})=>{const n=(s.length-7)*l*t,o=(s.length-7)*l*e;for(let t=0;t<c.length;t+=1){const e=l*(7-2*t);a.push(B`<rect fill="${t%2==0?r:i}" height="${e}" rx="${.32*e}" ry="${.32*e}" width="${e}" x="${n+l*t}" y="${o+l*t}">`)}}));const d=Math.floor((n+25)/l),h=s.length/2-d/2,u=s.length/2+d/2-1,m=[];s.forEach(((t,e)=>{t.forEach(((t,n)=>{if(s[e][n]&&!(e<7&&n<7||e>s.length-8&&n<7||e<7&&n>s.length-8)&&!(e>h&&e<u&&n>h&&n<u)){const t=e*l+l/2,o=n*l+l/2;m.push([t,o])}}))}));const p={};return m.forEach((([t,e])=>{p[t]?p[t].push(e):p[t]=[e]})),Object.entries(p).map((([t,e])=>{const n=e.filter((t=>e.every((e=>!Ln(t,e,l)))));return[Number(t),n]})).forEach((([t,e])=>{e.forEach((e=>{a.push(B`<circle cx="${t}" cy="${e}" fill="${r}" r="${l/2.5}">`)}))})),Object.entries(p).filter((([t,e])=>e.length>1)).map((([t,e])=>{const n=e.filter((t=>e.some((e=>Ln(t,e,l)))));return[Number(t),n]})).map((([t,e])=>{e.sort(((t,e)=>t<e?-1:1));const n=[];for(const t of e){const e=n.find((e=>e.some((e=>Ln(t,e,l)))));e?e.push(t):n.push([t])}return[t,n.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,n])=>{a.push(B`<line x1="${t}" x2="${t}" y1="${e}" y2="${n}" stroke="${r}" stroke-width="${l/1.25}" stroke-linecap="round">`)}))})),a}},Nn=l`.w3m-qrcode-container{position:relative;user-select:none;display:block;overflow:hidden;width:100%;aspect-ratio:1/1}.w3m-qrcode-container svg:first-child,.w3m-qrcode-container w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}.w3m-qrcode-container w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:15px}.w3m-qrcode-container svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}.w3m-qrcode-container svg:first-child path:first-child{fill:var(--color-fg-accent)}.w3m-qrcode-container svg:first-child path:last-child{stroke:var(--color-overlay)}`;var jn=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Bn=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Dn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&jn(e,n,i),i};let Un=class extends rt{constructor(){super(...arguments),this.uri="",this.size=0,this.logoSrc="",this.walletId=""}svgTemplate(){var t;const e=null!=(t=ht.t0.state.themeMode)?t:"light";return B`<svg height="${this.size}" width="${this.size}">${Rn.generate(this.uri,this.size,this.size/4,e)}</svg>`}render(){return D`<div class="w3m-qrcode-container">${this.walletId||this.logoSrc?D`<w3m-wallet-image walletId="${$e(this.walletId)}" src="${$e(this.logoSrc)}"></w3m-wallet-image>`:Je.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};Un.styles=[Se.globalCss,Nn],Bn([lt()],Un.prototype,"uri",2),Bn([lt({type:Number})],Un.prototype,"size",2),Bn([lt()],Un.prototype,"logoSrc",2),Bn([lt()],Un.prototype,"walletId",2),Un=Bn([at("w3m-qrcode")],Un);const zn=l`:host{position:relative;height:28px;width:75%}input{width:100%;height:100%;line-height:28px;border-radius:28px;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:transparent;position:absolute;background-color:var(--color-bg-3);box-shadow:inset 0 0 0 1px var(--color-overlay)}input::placeholder{color:transparent}svg{margin-right:4px}.w3m-placeholder{top:0;left:50%;transform:translateX(-50%);transition:.2s all ease;pointer-events:none;display:flex;align-items:center;justify-content:center;height:100%;width:fit-content;position:relative}input:focus-within+.w3m-placeholder,input:not(:placeholder-shown)+.w3m-placeholder{transform:translateX(10px);left:0}w3m-text{opacity:1;transition:.2s opacity ease}input:focus-within+.w3m-placeholder w3m-text,input:not(:placeholder-shown)+.w3m-placeholder w3m-text{opacity:0}input:focus-within,input:not(:placeholder-shown){color:var(--color-fg-1)}input:focus-within{box-shadow:inset 0 0 0 1px var(--color-fg-accent)}path{fill:var(--color-fg-2)}`;var Wn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Fn=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Hn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Wn(e,n,i),i};let Vn=class extends rt{constructor(){super(...arguments),this.onChange=()=>null}render(){const t=ht.zv.isMobile()?"Search mobile wallets":"Search desktop wallets";return D`<input type="text" @input="${this.onChange}" placeholder="${t}"><div class="w3m-placeholder">${Je.SEARCH_ICON}<w3m-text color="secondary" variant="medium-thin">${t}</w3m-text></div>`}};Vn.styles=[Se.globalCss,zn],Fn([lt()],Vn.prototype,"onChange",2),Vn=Fn([at("w3m-search-input")],Vn);const Zn=l`@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(--color-fg-accent)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let qn=class extends rt{render(){return D`<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>`}};qn.styles=Zn,qn=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-spinner")],qn);const Kn=l`.w3m-font{font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on}.w3m-font-xxsmall-bold{font-weight:700;font-size:10px;line-height:12px;letter-spacing:.02em;text-transform:uppercase}.w3m-font-xsmall-normal{font-weight:600;font-size:12px;line-height:14px;letter-spacing:-.03em}.w3m-font-small-thin{font-weight:500;font-size:14px;line-height:16px;letter-spacing:-.03em}.w3m-font-small-normal{font-weight:600;font-size:14px;line-height:16px;letter-spacing:-.03em}.w3m-font-medium-thin{font-weight:500;font-size:16px;line-height:20px;letter-spacing:-.03em}.w3m-font-medium-normal{font-weight:600;font-size:16px;line-height:20px;letter-spacing:-.03em}.w3m-font-medium-bold{font-weight:700;font-size:16px;line-height:20px;letter-spacing:-.03em}.w3m-font-large-bold{font-weight:700;font-size:20px;line-height:24px;letter-spacing:-.03em}.w3m-font-left{text-align:left}.w3m-font-center{text-align:center}.w3m-font-right{text-align:right}:host(*){color:var(--color-fg-1)}.w3m-color-primary{color:var(--color-fg-1)}.w3m-color-secondary{color:var(--color-fg-2)}.w3m-color-tertiary{color:var(--color-fg-3)}.w3m-color-inverse{color:var(--color-fg-inverse)}.w3m-color-accnt{color:var(--color-fg-accent)}.w3m-color-error{color:var(--color-err)}`;var Gn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,Jn=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Yn(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Gn(e,n,i),i};let Qn=class extends rt{constructor(){super(...arguments),this.variant="medium-normal",this.align="left",this.color="primary"}render(){const t={"w3m-font":!0,"w3m-font-large-bold":"large-bold"===this.variant,"w3m-font-medium-bold":"medium-bold"===this.variant,"w3m-font-medium-normal":"medium-normal"===this.variant,"w3m-font-medium-thin":"medium-thin"===this.variant,"w3m-font-small-normal":"small-normal"===this.variant,"w3m-font-small-thin":"small-thin"===this.variant,"w3m-font-xsmall-normal":"xsmall-normal"===this.variant,"w3m-font-xxsmall-bold":"xxsmall-bold"===this.variant,"w3m-font-left":"left"===this.align,"w3m-font-center":"center"===this.align,"w3m-font-right":"right"===this.align,"w3m-color-primary":"primary"===this.color,"w3m-color-secondary":"secondary"===this.color,"w3m-color-tertiary":"tertiary"===this.color,"w3m-color-inverse":"inverse"===this.color,"w3m-color-accnt":"accent"===this.color,"w3m-color-error":"error"===this.color};return D`<span class="${mt(t)}"><slot></slot></span>`}};Qn.styles=[Se.globalCss,Kn],Jn([lt()],Qn.prototype,"variant",2),Jn([lt()],Qn.prototype,"align",2),Jn([lt()],Qn.prototype,"color",2),Qn=Jn([at("w3m-text")],Qn);const Xn=l`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:10px;transition:background-color .2s ease;height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:15px;justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--color-bg-2);box-shadow:inset 0 0 0 1px var(--color-overlay)}button:hover{background-color:var(--color-overlay)}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:8px;border:1px solid var(--color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--color-bg-3)}#wallet-placeholder-dash{stroke:var(--color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let to=class extends rt{onClick(t,e){t?ht.AV.push("WalletExplorer"):e&&ht.AV.push("WalletFilter")}render(){const{previewWallets:t}=ht.uc.state,e=He.getCustomWallets(),n=[...t].reverse().slice(0,4),o=[...e].reverse().slice(0,4),r=Boolean(n.length),i=Boolean(o.length);return D`<button @click="${()=>this.onClick(r,i)}"><div class="w3m-icons">${r?n.map((t=>D`<img src="${t.image_url.lg}">`)):null} ${i?o.map((t=>{const e=We.optimisticWalletId(t.id),n=He.getWalletIcon(e);return n?D`<img src="${n}">`:Je.WALLET_PLACEHOLDER})):null}</div><w3m-text variant="xsmall-normal">View More</w3m-text></button>`}};to.styles=[Se.globalCss,Xn],to=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-view-all-wallets-button")],to);const eo=l`button{transition:all .2s ease;width:100%;height:100%;border-radius:10px;display:flex;align-items:flex-start}button:hover{background-color:var(--color-overlay)}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:15px;margin-bottom:5px}.w3m-sublabel{margin-top:2px}`;var no=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,ro=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?oo(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&no(e,n,i),i};let io=class extends rt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.src=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?D`<w3m-text class="w3m-sublabel" variant="xxsmall-bold" color="tertiary">RECENT</w3m-text>`:this.installed?D`<w3m-text class="w3m-sublabel" variant="xxsmall-bold" color="tertiary">INSTALLED</w3m-text>`:null}render(){var t;return D`<button @click="${this.onClick}"><div><w3m-wallet-image walletId="${this.walletId}" .src="${this.src}"></w3m-wallet-image><w3m-text variant="xsmall-normal">${null!=(t=this.label)?t:He.getWalletFirstName(this.name)}</w3m-text>${this.sublabelTemplate()}</div></button>`}};io.styles=[Se.globalCss,eo],ro([lt()],io.prototype,"onClick",2),ro([lt()],io.prototype,"name",2),ro([lt()],io.prototype,"walletId",2),ro([lt()],io.prototype,"label",2),ro([lt()],io.prototype,"src",2),ro([lt()],io.prototype,"installed",2),ro([lt()],io.prototype,"recent",2),io=ro([at("w3m-wallet-button")],io);const ao=l`.w3m-wallet-image{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%}svg{position:relative;width:100%;height:100%}.w3m-wallet-image::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid var(--color-overlay)}.w3m-wallet-image img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--color-bg-3)}#wallet-placeholder-dash{stroke:var(--color-overlay)}`;var so=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,co=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?lo(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&so(e,n,i),i};let ho=class extends rt{constructor(){super(...arguments),this.walletId=void 0,this.src=void 0}render(){var t;const e=null!=(t=this.walletId)?t:"injected",n=We.optimisticWalletId(e),o=this.src?this.src:He.getWalletIcon(n);return D`${o.length?D`<div class="w3m-wallet-image"><img src="${o}" alt="${this.id}"></div>`:Je.WALLET_PLACEHOLDER}`}};ho.styles=[Se.globalCss,ao],co([lt()],ho.prototype,"walletId",2),co([lt()],ho.prototype,"src",2),ho=co([at("w3m-wallet-image")],ho);const uo=l`button{padding:0 15px 0 8px;height:40px;border-radius:10px;color:var(--color-fg-inverse);background-color:var(--color-fg-accent)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--color-overlay)}button:hover::after{background-color:var(--color-overlay)}button:disabled{padding-bottom:0;background-color:var(--color-bg-3);color:var(--color-fg-3)}w3m-avatar{margin-right:6px}`;var mo=Object.defineProperty,po=Object.getOwnPropertyDescriptor,go=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?po(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&mo(e,n,i),i};let fo=class extends rt{constructor(){super(...arguments),this.balance="hide"}render(){return D`<button @click="${ht.jb.open}"><w3m-avatar></w3m-avatar><w3m-address-text></w3m-address-text></button>`}};fo.styles=[Se.globalCss,uo],go([lt()],fo.prototype,"balance",2),fo=go([at("w3m-account-button")],fo);const vo=l`button{display:flex;border-radius:10px;flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--color-overlay)}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`;var wo=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,yo=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?bo(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&wo(e,n,i),i};let xo=class extends rt{constructor(){super(),this.chainId="",this.label="",this.unsubscribeNetwork=void 0;const{selectedChain:t}=ht.zb.state;this.chainId=t?.id.toString(),this.label=t?.name,this.unsubscribeNetwork=ht.zb.subscribe((({selectedChain:t})=>{this.chainId=t?.id.toString(),this.label=t?.name}))}disconnectedCallback(){var t;null==(t=this.unsubscribeNetwork)||t.call(this)}onClick(){ht.AV.push("SelectNetwork")}render(){const{chains:t}=ht.zb.state,e=t&&t.length>1;return D`<button @click="${this.onClick}" ?disabled="${!e}"><w3m-network-image chainId="${$e(this.chainId)}"></w3m-network-image><w3m-text variant="xsmall-normal" color="accent">${this.label}</w3m-text></button>`}};xo.styles=[Se.globalCss,vo],yo([ct()],xo.prototype,"chainId",2),yo([ct()],xo.prototype,"label",2),xo=yo([at("w3m-account-network-button")],xo);var Co=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,ko=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?$o(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Co(e,n,i),i};let Eo=class extends rt{constructor(){super(),this.address=void 0,this.variant="button",this.unsubscribeAccount=void 0,this.address=ht.zb.state.address,this.unsubscribeAccount=ht.zb.subscribe((({address:t})=>{this.address=t}))}disconnectedCallback(){var t;null==(t=this.unsubscribeAccount)||t.call(this)}render(){var t;const e="button"===this.variant;return D`<w3m-text variant="${e?"medium-normal":"large-bold"}" color="${e?"inverse":"primary"}">${He.truncate(null!=(t=this.address)?t:"")}</w3m-text>`}};Eo.styles=[Se.globalCss],ko([ct()],Eo.prototype,"address",2),ko([lt()],Eo.prototype,"variant",2),Eo=ko([at("w3m-address-text")],Eo);const Ao=l`.w3m-avatar{border-radius:50%;box-shadow:inset 0 0 0 1px var(--color-overlay);display:block;background-color:var(--color-av-1);background-image:radial-gradient(at 66% 77%,var(--color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--color-av-5) 0,transparent 50%)}.w3m-avatar-small{width:24px;height:24px}.w3m-avatar-medium{width:60px;height:60px}`;var _o=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,Oo=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Mo(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&_o(e,n,i),i};let Io=class extends rt{constructor(){super(),this.address=void 0,this.size="small",this.unsubscribeAccount=void 0,this.address=ht.zb.state.address,this.unsubscribeAccount=ht.zb.subscribe((({address:t})=>{this.address=t}))}disconnectedCallback(){var t;null==(t=this.unsubscribeAccount)||t.call(this)}render(){const t={"w3m-avatar":!0,"w3m-avatar-small":"small"===this.size,"w3m-avatar-medium":"medium"===this.size};return this.address?(He.generateAvatarColors(this.address),D`<div class="${mt(t)}"></div>`):null}};Io.styles=[Se.globalCss,Ao],Oo([ct()],Io.prototype,"address",2),Oo([lt()],Io.prototype,"size",2),Io=Oo([at("w3m-avatar")],Io);const So=l`button{padding:0 15px;height:40px;border-radius:10px;color:var(--color-fg-invers);background-color:var(--color-fg-accent)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--color-overlay)}button:hover::after{background-color:var(--color-overlay)}button:disabled{padding-bottom:0;background-color:var(--color-bg-3);color:var(--color-fg-3)}.w3m-button-loading{padding:0 15px}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--color-fg-inverse)}button:disabled svg path{fill:var(--color-fg-3)}w3m-spinner{margin:0 10px 0 0}`;var Po=Object.defineProperty,To=Object.getOwnPropertyDescriptor,Lo=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?To(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Po(e,n,i),i};let Ro=class extends rt{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,this.modalUnsub=ht.jb.subscribe((t=>{t.open&&(this.loading=!0),t.open||(this.loading=!1)}))}disconnectedCallback(){var t;null==(t=this.modalUnsub)||t.call(this)}iconTemplate(){return"show"===this.icon?Je.WALLET_CONNECT_ICON:null}onOpen(){try{this.loading=!0,ht.jb.open()}catch{this.loading=!1}}render(){const t={"w3m-button-loading":this.loading};return D`<button class="${mt(t)}" .disabled="${this.loading}" @click="${this.onOpen}">${this.loading?D`<w3m-spinner></w3m-spinner><w3m-text variant="medium-normal" color="accent">Connecting...</w3m-text>`:D`${this.iconTemplate()}<w3m-text variant="medium-normal" color="inverse">${this.label}</w3m-text>`}</button>`}};Ro.styles=[Se.globalCss,So],Lo([ct()],Ro.prototype,"loading",2),Lo([lt()],Ro.prototype,"label",2),Lo([lt()],Ro.prototype,"icon",2),Ro=Lo([at("w3m-connect-button")],Ro);var No=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Do=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?jo(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&No(e,n,i),i};let Bo=class extends rt{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.unsubscribeAccount=void 0,this.isConnected=ht.zb.state.isConnected,this.unsubscribeAccount=ht.zb.subscribe((({isConnected:t})=>{this.isConnected=t}))}disconnectedCallback(){var t;null==(t=this.unsubscribeAccount)||t.call(this)}render(){return this.isConnected?D`<w3m-account-button></w3m-account-button>`:D`<w3m-connect-button label="${$e(this.label)}" icon="${$e(this.icon)}"></w3m-connect-button>`}};Do([ct()],Bo.prototype,"isConnected",2),Do([lt()],Bo.prototype,"label",2),Do([lt()],Bo.prototype,"icon",2),Bo=Do([at("w3m-core-button")],Bo);const Uo=l`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--color-fg-accent)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let zo=class extends rt{onCoinbaseWallet(){ht.zv.isCoinbaseExtension()?ht.AV.push("CoinbaseExtensionConnector"):ht.AV.push("CoinbaseMobileConnector")}onDesktopWallet(t){ht.AV.push("DesktopConnector",{DesktopConnector:t})}onInjectedWallet(){ht.AV.push("InjectedConnector")}onMetaMask(){ht.AV.push("MetaMaskConnector")}onConnectorWallet(t){if("coinbaseWallet"===t)this.onCoinbaseWallet();else if("metaMask"!==t&&window.ethereum)if("injected"===t)this.onInjectedWallet();else{const{selectedChain:e}=ht.zb.state;ht.Id.client().connectConnector(t,e?.id)}else this.onMetaMask()}desktopWalletsTemplate(){const{desktopWallets:t}=ht.t0.state;return t?.map((({id:t,name:e,links:{universal:n,native:o}})=>D`<w3m-wallet-button walletId="${t}" name="${e}" .onClick="${()=>this.onDesktopWallet({name:e,walletId:t,universal:n,native:o})}"></w3m-wallet-button>`))}previewWalletsTemplate(){const{previewWallets:t}=ht.uc.state;return t.map((({name:t,desktop:{universal:e,native:n},homepage:o,image_url:r,id:i})=>D`<w3m-wallet-button src="${r.lg}" name="${t}" .onClick="${()=>this.onDesktopWallet({walletId:i,name:t,native:n,universal:e||o,icon:r.lg})}"></w3m-wallet-button>`))}connectorWalletsTemplate(){const{isStandalone:t}=ht.zb.state;return t?[]:ht.Id.client().getConnectorWallets().map((({id:t,ready:e,name:n})=>D`<w3m-wallet-button .installed="${e}" name="${n}" walletId="${t}" .onClick="${()=>this.onConnectorWallet(t)}"></w3m-wallet-button>`))}recentWalletTemplate(){const t=He.getRecentWallet();if(!t)return;const{id:e,name:n,links:o,image:r}=t;return D`<w3m-wallet-button .recent="${!0}" name="${n}" walletId="${$e(e)}" src="${$e(r)}" .onClick="${()=>this.onDesktopWallet({name:n,walletId:e,universal:o?.universal,native:o?.native,icon:r})}"></w3m-wallet-button>`}render(){const{standaloneUri:t}=ht.zb.state,e=this.desktopWalletsTemplate(),n=this.previewWalletsTemplate(),o=this.connectorWalletsTemplate(),r=this.recentWalletTemplate(),i=e??n;let a=[...o,...i];if(r){const t=He.getRecentWallet();a=a.filter((e=>!e.values.includes(t?.name))),a.splice(1,0,r)}const s=t?i:a,l=s.length>4;let c=[];c=l?s.filter((t=>!t.values.includes("coinbaseWallet"))).slice(0,3):s;const d=Boolean(c.length);return D`<w3m-modal-header title="Connect your wallet" .onAction="${He.handleUriCopy}" .actionIcon="${Je.COPY_ICON}"></w3m-modal-header><w3m-modal-content><div class="w3m-mobile-title"><div class="w3m-subtitle">${Je.MOBILE_ICON}<w3m-text variant="small-normal" color="accent">Mobile</w3m-text></div><div class="w3m-subtitle">${Je.SCAN_ICON}<w3m-text variant="small-normal" color="secondary">Scan with your wallet</w3m-text></div></div><w3m-walletconnect-qr></w3m-walletconnect-qr></w3m-modal-content>${d?D`<w3m-modal-footer><div class="w3m-desktop-title">${Je.DESKTOP_ICON}<w3m-text variant="small-normal" color="accent">Desktop</w3m-text></div><div class="w3m-grid">${c} ${l?D`<w3m-view-all-wallets-button></w3m-view-all-wallets-button>`:null}</div></w3m-modal-footer>`:null}`}};zo.styles=[Se.globalCss,Uo],zo=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-desktop-wallet-selection")],zo);const Wo=l`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ho=class extends rt{onGoToQrcode(){ht.AV.push("Qrcode")}async onConnectorWallet(t){const{selectedChain:e}=ht.zb.state;"coinbaseWallet"===t?await ht.Id.client().connectCoinbaseMobile((()=>null),e?.id):await ht.Id.client().connectConnector(t,e?.id),ht.jb.close()}mobileWalletsTemplate(){const{mobileWallets:t}=ht.t0.state,e=[...t??[]];if(window.ethereum){const t=We.optimisticName("injected"),n=e.findIndex((({name:e})=>We.optimisticName(e)===t));n>-1&&e.splice(n,1)}if(e.length)return e.map((({id:t,name:e,links:{universal:n,native:o}})=>D`<w3m-wallet-button name="${e}" walletId="${t}" .onClick="${async()=>He.handleMobileLinking({links:{native:o,universal:n},name:e,id:t})}"></w3m-wallet-button>`))}previewWalletsTemplate(){const{previewWallets:t}=ht.uc.state;let e=[...t];if(window.ethereum){const t=We.optimisticName("injected");e=e.filter((({name:e})=>We.optimisticName(e)!==t))}return e.map((({image_url:t,name:e,mobile:{native:n,universal:o},id:r})=>D`<w3m-wallet-button name="${e}" src="${t.lg}" .onClick="${async()=>He.handleMobileLinking({links:{native:n,universal:o},name:e,id:r,image:t.lg})}"></w3m-wallet-button>`))}connectorWalletsTemplate(){const{isStandalone:t}=ht.zb.state;if(t)return[];let e=[...ht.Id.client().getConnectorWallets()];return window.ethereum||(e=e.filter((({id:t})=>"injected"!==t&&"metaMask"!==t))),e.map((({name:t,id:e,ready:n})=>D`<w3m-wallet-button .installed="${n}" name="${t}" walletId="${e}" .onClick="${async()=>this.onConnectorWallet(e)}"></w3m-wallet-button>`))}recentWalletTemplate(){const t=He.getRecentWallet();if(!t)return;const{id:e,name:n,links:o,image:r}=t;return D`<w3m-wallet-button .recent="${!0}" name="${n}" walletId="${$e(e)}" src="${$e(r)}" .onClick="${async()=>He.handleMobileLinking({name:n,id:e,links:o,image:r})}"></w3m-wallet-button>`}render(){const{standaloneUri:t}=ht.zb.state,e=this.connectorWalletsTemplate(),n=this.mobileWalletsTemplate(),o=this.previewWalletsTemplate(),r=this.recentWalletTemplate(),i=n??o;let a=[...e,...i];if(r){const t=He.getRecentWallet();a=a.filter((e=>!e.values.includes(t?.name))),a.splice(0,0,r)}const s=t?i:a,l=s.length>8;let c=[];c=l?s.filter((t=>!t.values.includes("coinbaseWallet"))).slice(0,7):s;const d=c.slice(0,4),h=c.slice(4,8),u=Boolean(c.length);return D`<w3m-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${Je.QRCODE_ICON}"></w3m-modal-header>${u?D`<w3m-modal-content><div class="w3m-grid">${d} ${h.length?D`${h} ${l?D`<w3m-view-all-wallets-button></w3m-view-all-wallets-button>`:null}`:null}</div></w3m-modal-content>`:null}`}};Ho.styles=[Se.globalCss,Wo],Ho=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-mobile-wallet-selection")],Ho);const Fo=l`.w3m-qr-container{width:100%;aspect-ratio:1/1}`;var Vo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,qo=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Zo(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Vo(e,n,i),i};let Ko=class extends rt{constructor(){super(),this.uri="",this.createConnectionAndWait()}get overlayEl(){return He.getShadowRootElement(this,".w3m-qr-container")}async createConnectionAndWait(){var t;try{const{standaloneUri:e}=ht.zb.state;e?setTimeout((()=>this.uri=e),0):(await ht.Id.client().connectWalletConnect((t=>this.uri=t),null==(t=ht.zb.state.selectedChain)?void 0:t.id),ht.jb.close())}catch(t){ht.Vs.openToast(He.getErrorMessage(t),"error"),this.createConnectionAndWait()}}render(){return D`<div class="w3m-qr-container">${this.uri?D`<w3m-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}"></w3m-qrcode>`:null}</div>`}};Ko.styles=[Se.globalCss,Fo],qo([ct()],Ko.prototype,"uri",2),Ko=qo([at("w3m-walletconnect-qr")],Ko);const Go=l`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start}.w3m-connection-badge{background-color:var(--color-bg-2);box-shadow:inset 0 0 0 1px var(--color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--color-success);border-radius:50%;top:50%;margin-top:-5px;box-shadow:inset 0 0 0 1px var(--color-overlay),0 1px 4px 1px var(--color-success)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Yo=class extends rt{onDisconnect(){ht.jb.close(),ht.Id.client().disconnect()}async onCopyAddress(){var t;await navigator.clipboard.writeText(null!=(t=ht.zb.state.address)?t:""),ht.Vs.openToast("Address copied","success")}render(){return D`<w3m-modal-content><div class="w3m-profile"><div class="w3m-info"><w3m-avatar size="medium"></w3m-avatar><w3m-address-text variant="modal"></w3m-address-text></div><div class="w3m-connection-badge"><w3m-text variant="small-normal" color="secondary">Connected</w3m-text></div></div></w3m-modal-content><w3m-modal-footer><div class="w3m-footer"><w3m-account-network-button></w3m-account-network-button><w3m-box-button label="Copy Address" .onClick="${this.onCopyAddress}" .icon="${Je.ACCOUNT_COPY}"></w3m-box-button><w3m-box-button label="Disconnect" .onClick="${this.onDisconnect}" .icon="${Je.ACCOUNT_DISCONNECT}"></w3m-box-button></div></w3m-modal-footer>`}};Yo.styles=[Se.globalCss,Go],Yo=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-account-view")],Yo);const Jo=l`.w3m-coinbase-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-coinbase-error w3m-button{opacity:1}`;var Qo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,tr=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Xo(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Qo(e,n,i),i};let er=class extends rt{constructor(){super(),this.connecting=!0,this.error=!1,this.onConnect()}async onConnect(){var t;try{this.error=!1,this.connecting=!0,await ht.Id.client().connectConnector("coinbaseWallet",null==(t=ht.zb.state.selectedChain)?void 0:t.id),ht.jb.close()}catch{this.error=!0,this.connecting=!1}}render(){const t="Coinbase Wallet",e={"w3m-coinbase-wrapper":!0,"w3m-coinbase-error":this.error};return D`<w3m-modal-header title="${t}"></w3m-modal-header><w3m-modal-content><div class="${mt(e)}"><w3m-wallet-image walletId="coinbaseWallet" size="lg"></w3m-wallet-image><div class="w3m-connecting-title">${this.connecting?D`<w3m-spinner></w3m-spinner>`:null}<w3m-text variant="large-bold" color="${this.error?"error":"secondary"}">${this.error?"Connection declined":`Continue in ${t}...`}</w3m-text></div><w3m-button .onClick="${this.onConnect.bind(this)}" .disabled="${!this.error}" .iconRight="${Je.RETRY_ICON}">Try Again</w3m-button></div></w3m-modal-content>`}};er.styles=[Se.globalCss,Jo],tr([ct()],er.prototype,"connecting",2),tr([ct()],er.prototype,"error",2),er=tr([at("w3m-coinbase-extension-connector-view")],er);const nr=l`.w3m-footer{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10px 0}.w3m-qr-container{width:100%;aspect-ratio:1/1}.w3m-info-text{margin:5px 0 15px;max-width:320px}.w3m-title{display:flex;align-items:center}.w3m-title svg{width:20px;margin-right:8px}.w3m-title path{fill:var(--color-fg-1)}`;var or=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,ir=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?rr(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&or(e,n,i),i};let ar=class extends rt{constructor(){super(),this.uri="",this.coinbaseWalletUrl="https://www.coinbase.com/wallet",this.getConnectionUri()}get overlayEl(){return He.getShadowRootElement(this,".w3m-qr-container")}async getConnectionUri(){var t;try{await ht.Id.client().connectCoinbaseMobile((t=>this.uri=t),null==(t=ht.zb.state.selectedChain)?void 0:t.id),ht.jb.close()}catch(t){ht.Vs.openToast(He.getErrorMessage(t),"error")}}onInstall(){ht.zv.openHref(this.coinbaseWalletUrl,"_blank")}render(){return D`<w3m-modal-header title="${"Coinbase Wallet"}"></w3m-modal-header><w3m-modal-content><div class="w3m-qr-container">${this.uri?D`<w3m-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="coinbaseWallet"></w3m-qrcode>`:null}</div></w3m-modal-content><w3m-modal-footer><div class="w3m-footer"><div class="w3m-title">${Je.QRCODE_ICON}<w3m-text variant="medium-normal">Scan with your phone</w3m-text></div><w3m-text variant="small-thin" align="center" color="secondary" class="w3m-info-text">Open Coinbase Wallet on your phone and scan the code to connect</w3m-text><w3m-button .iconLeft="${Je.ARROW_DOWN_ICON}" .onClick="${this.onInstall.bind(this)}">Install Extension</w3m-button></div></w3m-modal-footer>`}};ar.styles=[Se.globalCss,nr],ir([ct()],ar.prototype,"uri",2),ar=ir([at("w3m-coinbase-mobile-connector-view")],ar);Object.defineProperty,Object.getOwnPropertyDescriptor;let sr=class extends rt{render(){return D`${ht.zv.isMobile()?D`<w3m-mobile-wallet-selection></w3m-mobile-wallet-selection>`:D`<w3m-desktop-wallet-selection></w3m-desktop-wallet-selection>`}`}};sr.styles=[Se.globalCss],sr=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-connect-wallet-view")],sr);const lr=l`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}.w3m-install-actions{display:flex}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`;var cr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,hr=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?dr(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&cr(e,n,i),i};let ur=class extends rt{constructor(){super(),this.uri="",this.onConnect()}getRouterData(){var t;const e=null==(t=ht.AV.state.data)?void 0:t.DesktopConnector;if(!e)throw new Error("Missing router data");return e}onFormatAndRedirect(t){const{native:e,universal:n,name:o}=this.getRouterData();if(e){const n=ht.zv.formatNativeUrl(e,t,o);ht.zv.openHref(n)}else if(n){const e=ht.zv.formatUniversalUrl(n,t,o);ht.zv.openHref(e,"_blank")}}async onConnect(){var t;const{standaloneUri:e}=ht.zb.state;if(e)this.onFormatAndRedirect(e);else try{await ht.Id.client().connectWalletConnect((t=>{this.uri=t,this.onFormatAndRedirect(t)}),null==(t=ht.zb.state.selectedChain)?void 0:t.id);const{name:e,walletId:n,native:o,universal:r,icon:i}=this.getRouterData();He.setRecentWallet({name:e,id:n,links:{native:o,universal:r},image:i}),ht.jb.close()}catch(t){ht.Vs.openToast(He.getErrorMessage(t),"error"),this.onConnect()}}onConnectWithMobile(){ht.AV.push("Qrcode")}onGoToWallet(){const{universal:t,name:e}=this.getRouterData();if(t){const n=ht.zv.formatUniversalUrl(t,this.uri,e);ht.zv.openHref(n,"_blank")}}render(){const{name:t,icon:e,universal:n,walletId:o}=this.getRouterData(),r=We.optimisticName(t);return D`<w3m-modal-header title="${r}"></w3m-modal-header><w3m-modal-content><div class="w3m-wrapper">${e?D`<w3m-wallet-image src="${e}" size="lg"></w3m-wallet-image>`:D`<w3m-wallet-image size="lg" walletid="${$e(o)}"></w3m-wallet-image>`}<div class="w3m-connecting-title"><w3m-spinner></w3m-spinner><w3m-text variant="large-bold" color="secondary">${`Continue in ${r}...`}</w3m-text></div><div class="w3m-install-actions"><w3m-button .onClick="${this.onConnect.bind(this)}" .iconRight="${Je.RETRY_ICON}">Retry</w3m-button>${n?D`<w3m-button .onClick="${this.onGoToWallet.bind(this)}" .iconLeft="${Je.ARROW_UP_RIGHT_ICON}">Go to Wallet</w3m-button>`:D`<w3m-button .onClick="${this.onConnectWithMobile}" .iconLeft="${Je.MOBILE_ICON}">Connect with Mobile</w3m-button>`}</div></div></w3m-modal-content>`}};ur.styles=[Se.globalCss,lr],hr([ct()],ur.prototype,"uri",2),ur=hr([at("w3m-desktop-connector-view")],ur);const mr=l`.w3m-info-text{margin:5px 0 15px;max-width:320px}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-item:first-child{margin-top:-20px}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let pr=class extends rt{constructor(){super(...arguments),this.explorerUrl="https://explorer.walletconnect.com/"}onGet(t){ht.zv.openHref(t,"_blank")}onExplore(){ht.zv.openHref(this.explorerUrl,"_blank")}render(){const{recomendedWallets:t}=ht.uc.state,e=He.getCustomWallets().slice(0,6),n=t.length,o=e.length;return D`<w3m-modal-header title="Get a wallet"></w3m-modal-header><w3m-modal-content>${n?t.map((({name:t,image_url:e,homepage:n})=>D`<div class="w3m-wallet-item"><w3m-wallet-image src="${e.lg}"></w3m-wallet-image><div class="w3m-wallet-content"><w3m-text variant="medium-normal">${t}</w3m-text><w3m-button .iconRight="${Je.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGet(n)}">Get</w3m-button></div></div>`)):null} ${o?e.map((({name:t,id:e,links:n})=>D`<div class="w3m-wallet-item"><w3m-wallet-image walletId="${e}"></w3m-wallet-image><div class="w3m-wallet-content"><w3m-text variant="medium-normal">${t}</w3m-text><w3m-button .iconRight="${Je.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGet(n.universal)}">Get</w3m-button></div></div>`)):null}</w3m-modal-content><div class="w3m-footer-actions"><w3m-text variant="medium-normal">Not what you're looking for?</w3m-text><w3m-text variant="small-thin" align="center" color="secondary" class="w3m-info-text">With hundreds of wallets out there, there's something for everyone</w3m-text><w3m-button .onClick="${this.onExplore.bind(this)}" .iconRight="${Je.ARROW_UP_RIGHT_ICON}">Explore Wallets</w3m-button></div>`}};pr.styles=[Se.globalCss,mr],pr=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-get-wallet-view")],pr);const gr=l`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let fr=class extends rt{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){ht.AV.push("GetWallet")}onLearnMore(){ht.zv.openHref(this.learnUrl,"_blank")}render(){return D`<w3m-modal-header title="What is a wallet?"></w3m-modal-header><w3m-modal-content><div class="w3m-info-container"><div class="w3m-images">${Je.HELP_CHART_IMG} ${Je.HELP_PAINTING_IMG} ${Je.HELP_ETH_IMG}</div><w3m-text variant="medium-normal">A home for your digital assets</w3m-text><w3m-text variant="small-thin" align="center" color="secondary" class="w3m-info-text">A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.</w3m-text></div><div class="w3m-info-container"><div class="w3m-images">${Je.HELP_KEY_IMG} ${Je.HELP_USER_IMG} ${Je.HELP_LOCK_IMG}</div><w3m-text variant="medium-normal">One login for all of web3</w3m-text><w3m-text variant="small-thin" align="center" color="secondary" class="w3m-info-text">Log in to any app by connecting your wallet. Say goodbye to countless passwords!</w3m-text></div><div class="w3m-info-container"><div class="w3m-images">${Je.HELP_COMPAS_IMG} ${Je.HELP_NOUN_IMG} ${Je.HELP_DAO_IMG}</div><w3m-text variant="medium-normal">Your gateway to a new web</w3m-text><w3m-text variant="small-thin" align="center" color="secondary" class="w3m-info-text">With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.</w3m-text></div><div class="w3m-footer-actions"><w3m-button .onClick="${this.onGet.bind(this)}" .iconLeft="${Je.WALLET_ICON}">Get a Wallet</w3m-button><w3m-button .onClick="${this.onLearnMore.bind(this)}" .iconRight="${Je.ARROW_UP_RIGHT_ICON}">Learn More</w3m-button></div></w3m-modal-content>`}};fr.styles=[Se.globalCss,gr],fr=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-help-view")],fr);const vr=l`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:20px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}`;var wr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,yr=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?br(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&wr(e,n,i),i};let xr=class extends rt{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=ht.Id.client().getConnectorById("injected"),this.onConnect()}async onConnect(){var t;try{const{ready:e}=this.connector;e&&(this.error=!1,this.connecting=!0,await ht.Id.client().connectConnector("injected",null==(t=ht.zb.state.selectedChain)?void 0:t.id),ht.jb.close())}catch{this.error=!0,this.connecting=!1}}render(){const t=We.optimisticName(this.connector.name),e=We.optimisticWalletId(this.connector.id),n={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return D`<w3m-modal-header title="${t}"></w3m-modal-header><w3m-modal-content><div class="${mt(n)}"><w3m-wallet-image walletId="${e}" size="lg"></w3m-wallet-image><div class="w3m-connecting-title">${this.connecting?D`<w3m-spinner></w3m-spinner>`:null}<w3m-text variant="large-bold" color="${this.error?"error":"secondary"}">${this.error?"Connection declined":`Continue in ${t}...`}</w3m-text></div><w3m-button .onClick="${this.onConnect.bind(this)}" .disabled="${!this.error}" .iconRight="${Je.RETRY_ICON}">Try Again</w3m-button></div></w3m-modal-content>`}};xr.styles=[Se.globalCss,vr],yr([ct()],xr.prototype,"connecting",2),yr([ct()],xr.prototype,"error",2),xr=yr([at("w3m-injected-connector-view")],xr);const Cr=l`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.w3m-install-title{display:flex;align-items:center;justify-content:center;flex-direction:column}.w3m-install-title w3m-text:last-child{margin-top:10px;max-width:240px}.w3m-install-actions{display:flex;margin-top:20px}@media(max-width:355px){.w3m-install-actions{flex-direction:column;align-items:center}}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`;var $r=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,Er=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?kr(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&$r(e,n,i),i};let Ar=class extends rt{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=ht.Id.client().getConnectorById("injected"),this.metamaskUrl="https://metamask.io/download/",this.onConnect()}async onConnect(){var t;try{const{ready:e}=this.connector;e&&(this.error=!1,this.connecting=!0,await ht.Id.client().connectConnector("injected",null==(t=ht.zb.state.selectedChain)?void 0:t.id),ht.jb.close())}catch{this.error=!0,this.connecting=!1}}onInstall(){ht.zv.openHref(this.metamaskUrl,"_blank")}onMobile(){ht.AV.push("Qrcode")}readyTemplate(){return D`<div class="w3m-connecting-title">${this.connecting?D`<w3m-spinner></w3m-spinner>`:null}<w3m-text variant="large-bold" color="${this.error?"error":"secondary"}">${this.error?"Connection declined":"Continue in MetaMask..."}</w3m-text></div><w3m-button .onClick="${this.onConnect.bind(this)}" .disabled="${!this.error}" .iconRight="${Je.RETRY_ICON}">Try Again</w3m-button>`}notReadyTemplate(){return D`<div class="w3m-install-title"><w3m-text variant="large-bold">Install MetaMask</w3m-text><w3m-text color="secondary" align="center" variant="medium-thin">To connect MetaMask wallet, install the browser extension.</w3m-text></div><div class="w3m-install-actions"><w3m-button .onClick="${this.onInstall.bind(this)}" .iconLeft="${Je.ARROW_DOWN_ICON}">Install Extension</w3m-button><w3m-button .onClick="${this.onMobile}" .iconLeft="${Je.MOBILE_ICON}">MetaMask Mobile</w3m-button></div>`}render(){const{ready:t}=this.connector,e={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return D`<w3m-modal-header title="MetaMask"></w3m-modal-header><w3m-modal-content><div class="${mt(e)}"><w3m-wallet-image walletId="metaMask" size="lg"></w3m-wallet-image>${t?this.readyTemplate():this.notReadyTemplate()}</div></w3m-modal-content>`}};Ar.styles=[Se.globalCss,Cr],Er([ct()],Ar.prototype,"connecting",2),Er([ct()],Ar.prototype,"error",2),Ar=Er([at("w3m-metamask-connector-view")],Ar);Object.defineProperty,Object.getOwnPropertyDescriptor;let _r=class extends rt{render(){return D`<w3m-modal-header title="Scan the code" .onAction="${He.handleUriCopy}" .actionIcon="${Je.COPY_ICON}"></w3m-modal-header><w3m-modal-content><w3m-walletconnect-qr></w3m-walletconnect-qr></w3m-modal-content>`}};_r.styles=[Se.globalCss],_r=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-qrcode-view")],_r);const Mr=l`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Or=class extends rt{onSelectChain(t){const{isConnected:e,selectedChain:n}=ht.zb.state;e?n?.id===t.id?ht.AV.replace("Account"):ht.AV.push("SwitchNetwork",{SwitchNetwork:t}):(ht.AV.push("ConnectWallet"),ht.zb.setSelectedChain(t))}render(){const{chains:t}=ht.zb.state;return D`<w3m-modal-header title="Select network"></w3m-modal-header><w3m-modal-content><div class="w3m-grid">${t?.map((t=>D`<w3m-network-button name="${t.name}" chainId="${t.id}" .onClick="${()=>this.onSelectChain(t)}">${t.name}</w3m-network-button>`))}</div></w3m-modal-content>`}};Or.styles=[Se.globalCss,Mr],Or=((t,e,n,o)=>{for(var r,i=e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=r(i)||i);return i})([at("w3m-select-network-view")],Or);const Ir=l`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-network-image{width:96px;height:96px;margin-bottom:20px}w3m-button{opacity:0}.w3m-error w3m-button{opacity:1}`;var Sr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Tr=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Pr(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Sr(e,n,i),i};let Lr=class extends rt{constructor(){super(),this.error=!1,this.onSwitchNetwork()}getRouterData(){var t;const e=null==(t=ht.AV.state.data)?void 0:t.SwitchNetwork;if(!e)throw new Error("Missing router data");return e}async onSwitchNetwork(){try{this.error=!1;const t=this.getRouterData();await ht.Id.client().switchNetwork({chainId:t.id}),ht.zb.setSelectedChain(t),ht.AV.replace("Account")}catch{this.error=!0}}render(){const{id:t,name:e}=this.getRouterData(),n={"w3m-wrapper":!0,"w3m-error":this.error};return D`<w3m-modal-header title="${`Connect to ${e}`}"></w3m-modal-header><w3m-modal-content><div class="${mt(n)}"><w3m-network-image chainId="${t}"></w3m-network-image><div class="w3m-connecting-title">${this.error?null:D`<w3m-spinner></w3m-spinner>`}<w3m-text variant="large-bold" color="${this.error?"error":"secondary"}">${this.error?"Connection declined":"Approve in your wallet"}</w3m-text></div><w3m-button .onClick="${this.onSwitchNetwork.bind(this)}" .disabled="${!this.error}" .iconRight="${Je.RETRY_ICON}">Try Again</w3m-button></div></w3m-modal-content>`}};Lr.styles=[Se.globalCss,Ir],Tr([ct()],Lr.prototype,"error",2),Lr=Tr([at("w3m-switch-network-view")],Lr);const Rr=l`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--color-bg-1);background:linear-gradient(var(--color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Nr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,Dr=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?jr(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Nr(e,n,i),i};let Br=class extends rt{constructor(){super(...arguments),this.loading=!ht.uc.state.wallets.listings.length,this.firstFetch=!ht.uc.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=He.debounce((t=>{t.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=t,ht.uc.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),ht.uc.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return He.getShadowRootElement(this,".w3m-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}=ht.uc.state,{listings:n,total:o}=this.search?e:t;return o<=40||n.length>=o}async fetchWallets(){var t;const{wallets:e,search:n}=ht.uc.state,{listings:o,total:r,page:i}=this.search?n:e;if(!this.endReached&&(this.firstFetch||r>40&&o.length<r))try{this.loading=!0;const e=null==(t=ht.zb.state.standaloneChains)?void 0:t.join(","),{listings:n}=await ht.uc.getPaginatedWallets({page:this.firstFetch?1:i+1,entries:40,device:ht.zv.isMobile()?"mobile":"desktop",search:this.search,chains:e}),o=n.map((({image_url:t})=>t.lg));await Promise.all([...o.map((async t=>He.preloadImage(t))),ht.zv.wait(300)]),this.endReached=this.isLastPage()}catch(t){ht.Vs.openToast(He.getErrorMessage(t),"error")}finally{this.loading=!1,this.firstFetch=!1}}async onConnectPlatform(t){if(ht.zv.isMobile()){const{id:e,image_url:n}=t,{native:o,universal:r}=t.mobile;await He.handleMobileLinking({links:{native:o,universal:r},name:t.name,id:e,image:n.lg})}else ht.AV.push("DesktopConnector",{DesktopConnector:{name:t.name,icon:t.image_url.lg,universal:t.desktop.universal||t.homepage,native:t.desktop.native}})}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}onCoinbaseWallet(){ht.zv.isCoinbaseExtension()?ht.AV.push("CoinbaseExtensionConnector"):ht.AV.push("CoinbaseMobileConnector")}coinbaseConnectorTemplate(){try{const t=ht.Id.client().getConnectorById("coinbaseWallet");return D`<w3m-wallet-button name="${t.name}" walletId="${t.id}" .onClick="${()=>this.onCoinbaseWallet()}"></w3m-wallet-button>`}catch{return null}}render(){const{wallets:t,search:e}=ht.uc.state,{listings:n}=this.search?e:t,o=!this.loading&&!n.length,r=this.loading&&!n.length,i=!r&&this.search.length<3,a={"w3m-loading":r,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":o};return D`<w3m-modal-header><w3m-search-input .onChange="${this.onSearchChange.bind(this)}"></w3m-search-input></w3m-modal-header><w3m-modal-content class="${mt(a)}"><div class="w3m-grid">${i?this.coinbaseConnectorTemplate():null} ${n.map((t=>D`<w3m-wallet-button src="${t.image_url.lg}" name="${t.name}" walletId="${t.id}" .onClick="${async()=>this.onConnectPlatform(t)}"></w3m-wallet-button>`))}</div><div class="w3m-placeholder-block">${o?D`<w3m-text variant="large-bold" color="secondary">No results found</w3m-text>`:null} ${!o&&this.loading?D`<w3m-spinner></w3m-spinner>`:null}</div></w3m-modal-content>`}};Br.styles=[Se.globalCss,Rr],Dr([ct()],Br.prototype,"loading",2),Dr([ct()],Br.prototype,"firstFetch",2),Dr([ct()],Br.prototype,"search",2),Dr([ct()],Br.prototype,"endReached",2),Br=Dr([at("w3m-wallet-explorer-view")],Br);const Ur=l`w3m-modal-content{display:flex;max-height:55vh;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--color-bg-1);background:linear-gradient(var(--color-bg-1),transparent)}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--color-bg-1);background:linear-gradient(transparent,var(--color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-content{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;justify-items:stretch}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var zr=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,Hr=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Wr(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&zr(e,n,i),i};let Fr=class extends rt{constructor(){super(...arguments),this.search=""}async onConnectPlatform({name:t,universal:e,native:n,walletId:o}){ht.zv.isMobile()?await He.handleMobileLinking({links:{native:n,universal:e},name:t,id:o}):ht.AV.push("DesktopConnector",{DesktopConnector:{name:t,walletId:o,universal:e,native:n}})}onSearchChange(t){const{value:e}=t.target;this.search=e}render(){const t=He.getCustomWallets(),e=this.search.length?t.filter((t=>t.name.toUpperCase().includes(this.search.toUpperCase()))):t;return D`<w3m-modal-header><w3m-search-input .onChange="${this.onSearchChange.bind(this)}"></w3m-search-input></w3m-modal-header><w3m-modal-content><div class="w3m-content">${e.map((({id:t,name:e,links:{native:n,universal:o}})=>D`<w3m-wallet-button walletId="${t}" name="${e}" .onClick="${async()=>this.onConnectPlatform({name:e,universal:o,native:n,walletId:t})}"></w3m-wallet-button>`))}</div></w3m-modal-content>`}};Fr.styles=[Se.globalCss,Ur],Hr([ct()],Fr.prototype,"search",2),Fr=Hr([at("w3m-wallet-filter-view")],Fr)}}]);