@dodoex/wallet-web3 0.0.29-2 → 0.0.29-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/__node-resolve_empty-9c0fe235.js +1 -0
  2. package/dist/__tslib-8d197f50.js +1 -0
  3. package/dist/_commonjs-dynamic-modules-7cfc9805.js +1 -0
  4. package/dist/{blocto-e0c3fba1.js → blocto-6a8a2342.js} +1 -1
  5. package/dist/bn-b39718d7.js +1 -0
  6. package/dist/{browser-ponyfill-44c16c11.js → browser-ponyfill-7992d3d0.js} +1 -1
  7. package/dist/cjs/{__node-resolve_empty-99e1fe6a.cjs → __node-resolve_empty-71310b0b.cjs} +1 -1
  8. package/dist/cjs/__tslib-e8ae5da7.cjs +1 -0
  9. package/dist/cjs/_commonjs-dynamic-modules-f09a98c7.cjs +1 -0
  10. package/dist/cjs/{blocto-6db880e3.cjs → blocto-06fd57f6.cjs} +1 -1
  11. package/dist/cjs/bn-9dd9a29f.cjs +1 -0
  12. package/dist/cjs/{browser-ponyfill-0c3c6a1d.cjs → browser-ponyfill-71e323cb.cjs} +1 -1
  13. package/dist/cjs/{ethers-553c2892.cjs → ethers-bab3724b.cjs} +1 -1
  14. package/dist/cjs/{id-07decbd4.cjs → id-d7130594.cjs} +1 -1
  15. package/dist/cjs/{index-66395df0.cjs → index-0d0e0a26.cjs} +1 -1
  16. package/dist/cjs/index-269c7834.cjs +1 -0
  17. package/dist/cjs/{index-136ec288.cjs → index-270bac6a.cjs} +1 -1
  18. package/dist/cjs/{index-19d69924.cjs → index-2e2cf060.cjs} +1 -1
  19. package/dist/cjs/index-5077c64e.cjs +15 -0
  20. package/dist/cjs/{index-2ef621f6.cjs → index-5f82d59c.cjs} +1 -1
  21. package/dist/cjs/index-6286567d.cjs +66 -0
  22. package/dist/cjs/{index-edc6cd1d.cjs → index-6867dc10.cjs} +1 -1
  23. package/dist/cjs/{index-4b3d4170.cjs → index-79a671ea.cjs} +1 -1
  24. package/dist/cjs/{index-373a72d9.cjs → index-8e09ff75.cjs} +1 -1
  25. package/dist/cjs/{index-b8a341ce.cjs → index-e3acb1db.cjs} +1 -1
  26. package/dist/cjs/index-e51dad87.cjs +1 -0
  27. package/dist/cjs/index.cjs +1 -1
  28. package/dist/cjs/index.es-f9ac36f5.cjs +9 -0
  29. package/dist/cjs/{interface-a76cb731.cjs → interface-c44121d8.cjs} +1 -1
  30. package/dist/cjs/{portis-59e137a1.cjs → portis-84ad4e3c.cjs} +1 -1
  31. package/dist/cjs/{provider-b0f94199.cjs → provider-69ecf3d5.cjs} +1 -1
  32. package/dist/cjs/rainbow-4e6702b8.cjs +1 -0
  33. package/dist/cjs/{typed-data-bfb59085.cjs → typed-data-8c267c11.cjs} +1 -1
  34. package/dist/cjs/uAuth-6885948a.cjs +1 -0
  35. package/dist/cjs/walletConnect-d4959518.cjs +1 -0
  36. package/dist/cjs/walletLink-c6edc88a.cjs +1 -0
  37. package/dist/{ethers-60251e65.js → ethers-8181a73b.js} +1 -1
  38. package/dist/{id-0598d431.js → id-6d8573d3.js} +1 -1
  39. package/dist/{index-1ae3396a.js → index-15483c83.js} +1 -1
  40. package/dist/{index-b16ae8fe.js → index-472a33f8.js} +1 -1
  41. package/dist/index-6168470a.js +15 -0
  42. package/dist/{index-e8318bc1.js → index-6c5eabc0.js} +1 -1
  43. package/dist/index-71e104e3.js +1 -0
  44. package/dist/{index-33fbffcd.js → index-9a2fe895.js} +2 -2
  45. package/dist/{index-2ee17786.js → index-9c184c63.js} +1 -1
  46. package/dist/{index-900fd90f.js → index-a799f96f.js} +1 -1
  47. package/dist/index-aa70a2b2.js +66 -0
  48. package/dist/index-caf37db5.js +1 -0
  49. package/dist/{index-d7e1a9f2.js → index-d1677b7f.js} +1 -1
  50. package/dist/{index-585b9501.js → index-f80f2892.js} +1 -1
  51. package/dist/index.es-2660d81c.js +9 -0
  52. package/dist/index.js +1 -1
  53. package/dist/{interface-7179eae0.js → interface-04b0d44b.js} +1 -1
  54. package/dist/{portis-c06b505a.js → portis-be0e0b07.js} +1 -1
  55. package/dist/{provider-851ce70a.js → provider-bafb9c6b.js} +1 -1
  56. package/dist/rainbow-7b3f336e.js +1 -0
  57. package/dist/{typed-data-949a2805.js → typed-data-e96f6ed3.js} +1 -1
  58. package/dist/uAuth-01120919.js +1 -0
  59. package/dist/walletConnect-b5c5df2e.js +1 -0
  60. package/dist/walletLink-59d4a764.js +1 -0
  61. package/package.json +2 -3
  62. package/dist/__node-resolve_empty-d33b2526.js +0 -1
  63. package/dist/bn-67d99a17.js +0 -1
  64. package/dist/cjs/bn-9be07c83.cjs +0 -1
  65. package/dist/cjs/index-e178b1f3.cjs +0 -15
  66. package/dist/cjs/index-ec81b44d.cjs +0 -1
  67. package/dist/cjs/rainbow-9872e246.cjs +0 -1
  68. package/dist/cjs/uAuth-cf05b8e2.cjs +0 -1
  69. package/dist/cjs/walletConnect-530e02c9.cjs +0 -1
  70. package/dist/cjs/walletLink-b1c6c8dc.cjs +0 -1
  71. package/dist/index-bc6b4ac4.js +0 -15
  72. package/dist/index-deecbaf1.js +0 -1
  73. package/dist/rainbow-bebe571d.js +0 -1
  74. package/dist/uAuth-33b72e8b.js +0 -1
  75. package/dist/walletConnect-3e4e5cc0.js +0 -1
  76. package/dist/walletLink-7baca3ea.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as e,d as t}from"./index-33fbffcd.js";import{u as n,a as s,b as i,v as o,U as r,n as a,c,S as l,z as d,X as u,A as h,Z as p,e as m,Q as f,x as g,d as k,t as y,f as b,g as E,_ as C,l as S,s as v,P as A,$ as I,h as x,p as O,G as R,W as N,r as T,Y as M,D as _,J as B,w as P,i as D,C as j,O as L}from"./index-3e230de4.js";export{w as isInBinance}from"./index-3e230de4.js";import{c as F}from"./browser-ponyfill-44c16c11.js";import*as z from"react";import U,{createContext as H,useState as q,useEffect as V,useCallback as W,useContext as $}from"react";import J from"react-dom";import{I as Q}from"./interface-7179eae0.js";import"@ethersproject/address";import"@ethersproject/providers";import"zustand";import"events";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/properties";import"@ethersproject/transactions";import"@ethersproject/bytes";import"./hash-a9ebd52a.js";import"./inherits_browser-06ba108b.js";import"./id-0598d431.js";import"./__node-resolve_empty-d33b2526.js";var K,G={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},Z=J;if("production"===process.env.NODE_ENV)K=Z.createRoot,Z.hydrateRoot;else{var Y=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;K=function(e,t){Y.usingClientEntryPoint=!0;try{return Z.createRoot(e,t)}finally{Y.usingClientEntryPoint=!1}}}var X,ee,te=Object.defineProperty,ne=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,oe=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t)=>{for(var n in t||(t={}))se.call(t,n)&&oe(e,n,t[n]);if(ne)for(var n of ne(t))ie.call(t,n)&&oe(e,n,t[n]);return e},ae=(e,t)=>{var n={};for(var s in e)se.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&ne)for(var s of ne(e))t.indexOf(s)<0&&ie.call(e,s)&&(n[s]=e[s]);return n};(e=>{const t=class{constructor(e,n,s,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let r=[];for(let e=0;e<this.size;e++)r.push(!1);for(let e=0;e<this.size;e++)this.modules.push(r.slice()),this.isFunction.push(r.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(s);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,s){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,s)}static encodeBinary(n,s){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],s)}static encodeSegments(e,n,i=1,r=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=r&&r<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let d,u;for(d=i;;d++){const s=8*t.getNumDataCodewords(d,n),i=a.getTotalBits(e,d);if(i<=s){u=i;break}if(d>=r)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&u<=8*t.getNumDataCodewords(d,e)&&(n=e);let h=[];for(const t of e){s(t.mode.modeBits,4,h),s(t.numChars,t.mode.numCharCountBits(d),h);for(const e of t.getData())h.push(e)}o(h.length==u);const p=8*t.getNumDataCodewords(d,n);o(h.length<=p),s(0,Math.min(4,p-h.length),h),s(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let e=236;h.length<p;e^=253)s(e,8,h);let m=[];for(;8*m.length<h.length;)m.push(0);return h.forEach(((e,t)=>m[t>>>3]|=e<<7-(7&t))),new t(d,n,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let s=0;s<t;s++)0==n&&0==s||0==n&&s==t-1||n==t-1&&0==s||this.drawAlignmentPattern(e[n],e[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const s=21522^(t<<10|n);o(s>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(s,e));this.setFunctionModule(8,7,i(s,6)),this.setFunctionModule(8,8,i(s,7)),this.setFunctionModule(7,8,i(s,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(s,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(s,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(s,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),s=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(s,o,n),this.setFunctionModule(o,s,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let s=-4;s<=4;s++){const i=Math.max(Math.abs(s),Math.abs(n)),o=e+s,r=t+n;0<=o&&o<this.size&&0<=r&&r<this.size&&this.setFunctionModule(o,r,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let s=-2;s<=2;s++)this.setFunctionModule(e+s,t+n,1!=Math.max(Math.abs(s),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,s=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,s))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][n],r=t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][n],a=Math.floor(t.getNumRawDataModules(n)/8),c=i-a%i,l=Math.floor(a/i);let d=[];const u=t.reedSolomonComputeDivisor(r);for(let n=0,s=0;n<i;n++){let i=e.slice(s,s+l-r+(n<c?0:1));s+=i.length;const o=t.reedSolomonComputeRemainder(i,u);n<c&&i.push(0),d.push(i.concat(o))}let h=[];for(let e=0;e<d[0].length;e++)d.forEach(((t,n)=>{(e!=l-r||n>=c)&&h.push(t[e])}));return o(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let s=0;s<this.size;s++)for(let o=0;o<2;o++){const r=t-o,a=0==(t+1&2)?this.size-1-s:s;!this.isFunction[a][r]&&n<8*e.length&&(this.modules[a][r]=i(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let s;switch(e){case 0:s=(n+t)%2==0;break;case 1:s=t%2==0;break;case 2:s=n%3==0;break;case 3:s=(n+t)%3==0;break;case 4:s=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:s=n*t%2+n*t%3==0;break;case 6:s=(n*t%2+n*t%3)%2==0;break;case 7:s=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&s&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let s=!1,i=0,o=[0,0,0,0,0,0,0];for(let r=0;r<this.size;r++)this.modules[n][r]==s?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),s||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),s=this.modules[n][r],i=1);e+=this.finderPenaltyTerminateAndCount(s,i,o)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let s=!1,i=0,o=[0,0,0,0,0,0,0];for(let r=0;r<this.size;r++)this.modules[r][n]==s?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),s||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),s=this.modules[r][n],i=1);e+=this.finderPenaltyTerminateAndCount(s,i,o)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let s=0;s<this.size-1;s++){const i=this.modules[n][s];i==this.modules[n][s+1]&&i==this.modules[n+1][s]&&i==this.modules[n+1][s+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const s=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*s)/s)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let s=this.size-7;n.length<e;s-=t)n.splice(1,0,s);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let s=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],s),e+1<n.length&&(n[e]^=n[e+1]);s=t.reedSolomonMultiply(s,2)}return n}static reedSolomonComputeRemainder(e,n){let s=n.map((e=>0));for(const i of e){const e=i^s.shift();s.push(0),n.forEach(((n,i)=>s[i]^=t.reedSolomonMultiply(n,e)))}return s}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let s=7;s>=0;s--)n=n<<1^285*(n>>>7),n^=(t>>>s&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function s(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let s=t-1;s>=0;s--)n.push(e>>>s&1)}function i(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const r=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)s(n,8,t);return new r(r.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!r.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);s(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new r(r.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!r.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*r.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=r.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),s(i,11,n)}return t<e.length&&s(r.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new r(r.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:r.isNumeric(e)?[r.makeNumeric(e)]:r.isAlphanumeric(e)?[r.makeAlphanumeric(e)]:[r.makeBytes(r.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");s(6,3,t),s(e,21,t)}return new r(r.Mode.ECI,0,t)}static isNumeric(e){return r.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return r.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const s of e){const e=s.mode.numCharCountBits(t);if(s.numChars>=1<<e)return 1/0;n+=4+e+s.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let a=r;a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a})(X||(X={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})((ee=X||(X={})).QrCode||(ee.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(e.QrSegment||(e.QrSegment={}))})(X||(X={}));var ce=X,le={L:ce.QrCode.Ecc.LOW,M:ce.QrCode.Ecc.MEDIUM,Q:ce.QrCode.Ecc.QUARTILE,H:ce.QrCode.Ecc.HIGH},de=128,ue="L",he="#FFFFFF",pe="#000000",me=!1,fe=4,ge=.1;
1
+ import{_ as e,d as t}from"./index-9a2fe895.js";import{u as n,a as s,b as i,v as o,U as r,n as a,c,S as l,z as d,X as u,A as h,Z as p,e as m,Q as f,x as g,d as k,t as y,f as b,g as E,_ as C,l as S,s as v,P as A,$ as I,h as x,p as O,G as R,W as N,r as T,Y as M,D as _,J as B,w as P,i as D,C as j,O as L}from"./index-3e230de4.js";export{w as isInBinance}from"./index-3e230de4.js";import{c as F}from"./browser-ponyfill-7992d3d0.js";import*as z from"react";import U,{createContext as H,useState as q,useEffect as V,useCallback as W,useContext as $}from"react";import J from"react-dom";import{I as Q}from"./interface-04b0d44b.js";import"@ethersproject/address";import"@ethersproject/providers";import"zustand";import"events";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/properties";import"@ethersproject/transactions";import"@ethersproject/bytes";import"./hash-a9ebd52a.js";import"./inherits_browser-06ba108b.js";import"./id-6d8573d3.js";import"./__node-resolve_empty-9c0fe235.js";var K,G={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},Z=J;if("production"===process.env.NODE_ENV)K=Z.createRoot,Z.hydrateRoot;else{var Y=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;K=function(e,t){Y.usingClientEntryPoint=!0;try{return Z.createRoot(e,t)}finally{Y.usingClientEntryPoint=!1}}}var X,ee,te=Object.defineProperty,ne=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,oe=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t)=>{for(var n in t||(t={}))se.call(t,n)&&oe(e,n,t[n]);if(ne)for(var n of ne(t))ie.call(t,n)&&oe(e,n,t[n]);return e},ae=(e,t)=>{var n={};for(var s in e)se.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&ne)for(var s of ne(e))t.indexOf(s)<0&&ie.call(e,s)&&(n[s]=e[s]);return n};(e=>{const t=class{constructor(e,n,s,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let r=[];for(let e=0;e<this.size;e++)r.push(!1);for(let e=0;e<this.size;e++)this.modules.push(r.slice()),this.isFunction.push(r.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(s);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,s){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,s)}static encodeBinary(n,s){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],s)}static encodeSegments(e,n,i=1,r=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=r&&r<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let d,u;for(d=i;;d++){const s=8*t.getNumDataCodewords(d,n),i=a.getTotalBits(e,d);if(i<=s){u=i;break}if(d>=r)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&u<=8*t.getNumDataCodewords(d,e)&&(n=e);let h=[];for(const t of e){s(t.mode.modeBits,4,h),s(t.numChars,t.mode.numCharCountBits(d),h);for(const e of t.getData())h.push(e)}o(h.length==u);const p=8*t.getNumDataCodewords(d,n);o(h.length<=p),s(0,Math.min(4,p-h.length),h),s(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let e=236;h.length<p;e^=253)s(e,8,h);let m=[];for(;8*m.length<h.length;)m.push(0);return h.forEach(((e,t)=>m[t>>>3]|=e<<7-(7&t))),new t(d,n,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let s=0;s<t;s++)0==n&&0==s||0==n&&s==t-1||n==t-1&&0==s||this.drawAlignmentPattern(e[n],e[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const s=21522^(t<<10|n);o(s>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(s,e));this.setFunctionModule(8,7,i(s,6)),this.setFunctionModule(8,8,i(s,7)),this.setFunctionModule(7,8,i(s,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(s,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(s,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(s,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),s=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(s,o,n),this.setFunctionModule(o,s,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let s=-4;s<=4;s++){const i=Math.max(Math.abs(s),Math.abs(n)),o=e+s,r=t+n;0<=o&&o<this.size&&0<=r&&r<this.size&&this.setFunctionModule(o,r,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let s=-2;s<=2;s++)this.setFunctionModule(e+s,t+n,1!=Math.max(Math.abs(s),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,s=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,s))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][n],r=t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][n],a=Math.floor(t.getNumRawDataModules(n)/8),c=i-a%i,l=Math.floor(a/i);let d=[];const u=t.reedSolomonComputeDivisor(r);for(let n=0,s=0;n<i;n++){let i=e.slice(s,s+l-r+(n<c?0:1));s+=i.length;const o=t.reedSolomonComputeRemainder(i,u);n<c&&i.push(0),d.push(i.concat(o))}let h=[];for(let e=0;e<d[0].length;e++)d.forEach(((t,n)=>{(e!=l-r||n>=c)&&h.push(t[e])}));return o(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let s=0;s<this.size;s++)for(let o=0;o<2;o++){const r=t-o,a=0==(t+1&2)?this.size-1-s:s;!this.isFunction[a][r]&&n<8*e.length&&(this.modules[a][r]=i(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let s;switch(e){case 0:s=(n+t)%2==0;break;case 1:s=t%2==0;break;case 2:s=n%3==0;break;case 3:s=(n+t)%3==0;break;case 4:s=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:s=n*t%2+n*t%3==0;break;case 6:s=(n*t%2+n*t%3)%2==0;break;case 7:s=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&s&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let s=!1,i=0,o=[0,0,0,0,0,0,0];for(let r=0;r<this.size;r++)this.modules[n][r]==s?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),s||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),s=this.modules[n][r],i=1);e+=this.finderPenaltyTerminateAndCount(s,i,o)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let s=!1,i=0,o=[0,0,0,0,0,0,0];for(let r=0;r<this.size;r++)this.modules[r][n]==s?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),s||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),s=this.modules[r][n],i=1);e+=this.finderPenaltyTerminateAndCount(s,i,o)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let s=0;s<this.size-1;s++){const i=this.modules[n][s];i==this.modules[n][s+1]&&i==this.modules[n+1][s]&&i==this.modules[n+1][s+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const s=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*s)/s)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let s=this.size-7;n.length<e;s-=t)n.splice(1,0,s);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let s=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],s),e+1<n.length&&(n[e]^=n[e+1]);s=t.reedSolomonMultiply(s,2)}return n}static reedSolomonComputeRemainder(e,n){let s=n.map((e=>0));for(const i of e){const e=i^s.shift();s.push(0),n.forEach(((n,i)=>s[i]^=t.reedSolomonMultiply(n,e)))}return s}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let s=7;s>=0;s--)n=n<<1^285*(n>>>7),n^=(t>>>s&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function s(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let s=t-1;s>=0;s--)n.push(e>>>s&1)}function i(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const r=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)s(n,8,t);return new r(r.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!r.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);s(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new r(r.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!r.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*r.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=r.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),s(i,11,n)}return t<e.length&&s(r.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new r(r.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:r.isNumeric(e)?[r.makeNumeric(e)]:r.isAlphanumeric(e)?[r.makeAlphanumeric(e)]:[r.makeBytes(r.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");s(6,3,t),s(e,21,t)}return new r(r.Mode.ECI,0,t)}static isNumeric(e){return r.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return r.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const s of e){const e=s.mode.numCharCountBits(t);if(s.numChars>=1<<e)return 1/0;n+=4+e+s.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let a=r;a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a})(X||(X={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})((ee=X||(X={})).QrCode||(ee.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(e.QrSegment||(e.QrSegment={}))})(X||(X={}));var ce=X,le={L:ce.QrCode.Ecc.LOW,M:ce.QrCode.Ecc.MEDIUM,Q:ce.QrCode.Ecc.QUARTILE,H:ce.QrCode.Ecc.HIGH},de=128,ue="L",he="#FFFFFF",pe="#000000",me=!1,fe=4,ge=.1;
2
2
  /**
3
3
  * @license qrcode.react
4
4
  * Copyright (c) Paul O'Shannessy
@@ -1 +1 @@
1
- import{arrayify as e,isBytesLike as t,hexlify as r}from"@ethersproject/bytes";import{shallowCopy as o}from"@ethersproject/properties";import{L as n,t as s,a as i}from"./id-0598d431.js";function l(t){t=atob(t);const r=[];for(let e=0;e<t.length;e++)r.push(t.charCodeAt(e));return e(r)}function c(t){t=e(t);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}var a=function(e,t,r,o){return new(r||(r=Promise))((function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};function u(t,r){return a(this,void 0,void 0,(function*(){null==r&&(r={});const o={method:r.method||"GET",headers:r.headers||{},body:r.body||void 0};if(!0!==r.skipFetchSetup&&(o.mode="cors",o.cache="no-cache",o.credentials="same-origin",o.redirect="follow",o.referrer="client"),null!=r.fetchOptions){const e=r.fetchOptions;e.mode&&(o.mode=e.mode),e.cache&&(o.cache=e.cache),e.credentials&&(o.credentials=e.credentials),e.redirect&&(o.redirect=e.redirect),e.referrer&&(o.referrer=e.referrer)}const n=yield fetch(t,o),s=yield n.arrayBuffer(),i={};return n.headers.forEach?n.headers.forEach(((e,t)=>{i[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{i[e.toLowerCase()]=n.headers.get(e)})),{headers:i,statusCode:n.status,statusMessage:n.statusText,body:e(new Uint8Array(s))}}))}var h=function(e,t,r,o){return new(r||(r=Promise))((function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};const d=new n("web/5.7.1");function f(e){return new Promise((t=>{setTimeout(t,e)}))}function p(e,o){if(null==e)return null;if("string"==typeof e)return e;if(t(e)){if(o&&("text"===o.split("/")[0]||"application/json"===o.split(";")[0].trim()))try{return i(e)}catch(e){}return r(e)}return e}function y(e,t,r){const i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;d.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);const a="object"==typeof e?e.throttleCallback:null,y="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;d.assertArgument(y>0&&y%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",y);const m="object"==typeof e&&!!e.errorPassThrough,E={};let g=null;const w={method:"GET"};let b=!1,R=12e4;if("string"==typeof e)g=e;else if("object"==typeof e){if(null!=e&&null!=e.url||d.throwArgumentError("missing URL","connection.url",e),g=e.url,"number"==typeof e.timeout&&e.timeout>0&&(R=e.timeout),e.headers)for(const t in e.headers)E[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(b=!0);if(w.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==g.substring(0,6)&&!0!==e.allowInsecureAuthentication&&d.throwError("basic authentication requires a secure https url",n.errors.INVALID_ARGUMENT,{argument:"url",url:g,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;E.authorization={key:"Authorization",value:"Basic "+c(s(t))}}null!=e.skipFetchSetup&&(w.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(w.fetchOptions=o(e.fetchOptions))}const v=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),C=g?g.match(v):null;if(C)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":C[1]||"text/plain"},body:C[2]?l(C[3]):(S=C[3],s(S.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){d.throwError("processing response error",n.errors.SERVER_ERROR,{body:p(C[1],C[2]),error:e,requestBody:null,requestMethod:"GET",url:g})}var S;t&&(w.method="POST",w.body=t,null==E["content-type"]&&(E["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==E["content-length"]&&(E["content-length"]={key:"Content-Length",value:String(t.length)}));const O={};Object.keys(E).forEach((e=>{const t=E[e];O[t.key]=t.value})),w.headers=O;const T=function(){let e=null;return{promise:new Promise((function(t,r){R&&(e=setTimeout((()=>{null!=e&&(e=null,r(d.makeError("timeout",n.errors.TIMEOUT,{requestBody:p(w.body,O["content-type"]),requestMethod:w.method,timeout:R,url:g})))}),R))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),k=function(){return h(this,void 0,void 0,(function*(){for(let e=0;e<i;e++){let t=null;try{if(t=yield u(g,w),e<i)if(301===t.statusCode||302===t.statusCode){const e=t.headers.location||"";if("GET"===w.method&&e.match(/^https:/)){g=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(a&&(r=yield a(e,g)),r){let r=0;const o=t.headers["retry-after"];r="string"==typeof o&&o.match(/^[1-9][0-9]*$/)?1e3*parseInt(o):y*parseInt(String(Math.random()*Math.pow(2,e))),yield f(r);continue}}}catch(e){t=e.response,null==t&&(T.cancel(),d.throwError("missing response",n.errors.SERVER_ERROR,{requestBody:p(w.body,O["content-type"]),requestMethod:w.method,serverError:e,url:g}))}let o=t.body;if(b&&304===t.statusCode?o=null:!m&&(t.statusCode<200||t.statusCode>=300)&&(T.cancel(),d.throwError("bad response",n.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:p(o,t.headers?t.headers["content-type"]:null),requestBody:p(w.body,O["content-type"]),requestMethod:w.method,url:g})),r)try{const e=yield r(o,t);return T.cancel(),e}catch(r){if(r.throttleRetry&&e<i){let t=!0;if(a&&(t=yield a(e,g)),t){const t=y*parseInt(String(Math.random()*Math.pow(2,e)));yield f(t);continue}}T.cancel(),d.throwError("processing response error",n.errors.SERVER_ERROR,{body:p(o,t.headers?t.headers["content-type"]:null),error:r,requestBody:p(w.body,O["content-type"]),requestMethod:w.method,url:g})}return T.cancel(),o}return d.throwError("failed response",n.errors.SERVER_ERROR,{requestBody:p(w.body,O["content-type"]),requestMethod:w.method,url:g})}))}();return Promise.race([T.promise,k])}function m(e,t,r){let l=null;if(null!=t){l=s(t);const r="string"==typeof e?{url:e}:o(e);if(r.headers){0!==Object.keys(r.headers).filter((e=>"content-type"===e.toLowerCase())).length||(r.headers=o(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return y(e,l,((e,t)=>{let o=null;if(null!=e)try{o=JSON.parse(i(e))}catch(t){d.throwError("invalid JSON",n.errors.SERVER_ERROR,{body:e,error:t})}return r&&(o=r(o,t)),o}))}function E(e,t){return t||(t={}),null==(t=o(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,o){let n=null,s=!1;const i=()=>!s&&(s=!0,n&&clearTimeout(n),!0);t.timeout&&(n=setTimeout((()=>{i()&&o(new Error("timeout"))}),t.timeout));const l=t.retryLimit;let c=0;!function n(){return e().then((function(e){if(void 0!==e)i()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",n);else if(t.onceBlock)t.onceBlock.once("block",n);else if(!s){if(c++,c>l)return void(i()&&o(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(n,e)}return null}),(function(e){i()&&o(e)}))}()}))}var g=Object.freeze({__proto__:null,_fetchData:y,fetchJson:m,poll:E});export{y as _,l as d,c as e,m as f,g as l,E as p};
1
+ import{arrayify as e,isBytesLike as t,hexlify as r}from"@ethersproject/bytes";import{shallowCopy as o}from"@ethersproject/properties";import{L as n,t as s,a as i}from"./id-6d8573d3.js";function l(t){t=atob(t);const r=[];for(let e=0;e<t.length;e++)r.push(t.charCodeAt(e));return e(r)}function c(t){t=e(t);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}var a=function(e,t,r,o){return new(r||(r=Promise))((function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};function u(t,r){return a(this,void 0,void 0,(function*(){null==r&&(r={});const o={method:r.method||"GET",headers:r.headers||{},body:r.body||void 0};if(!0!==r.skipFetchSetup&&(o.mode="cors",o.cache="no-cache",o.credentials="same-origin",o.redirect="follow",o.referrer="client"),null!=r.fetchOptions){const e=r.fetchOptions;e.mode&&(o.mode=e.mode),e.cache&&(o.cache=e.cache),e.credentials&&(o.credentials=e.credentials),e.redirect&&(o.redirect=e.redirect),e.referrer&&(o.referrer=e.referrer)}const n=yield fetch(t,o),s=yield n.arrayBuffer(),i={};return n.headers.forEach?n.headers.forEach(((e,t)=>{i[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{i[e.toLowerCase()]=n.headers.get(e)})),{headers:i,statusCode:n.status,statusMessage:n.statusText,body:e(new Uint8Array(s))}}))}var h=function(e,t,r,o){return new(r||(r=Promise))((function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};const d=new n("web/5.7.1");function f(e){return new Promise((t=>{setTimeout(t,e)}))}function p(e,o){if(null==e)return null;if("string"==typeof e)return e;if(t(e)){if(o&&("text"===o.split("/")[0]||"application/json"===o.split(";")[0].trim()))try{return i(e)}catch(e){}return r(e)}return e}function y(e,t,r){const i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;d.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);const a="object"==typeof e?e.throttleCallback:null,y="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;d.assertArgument(y>0&&y%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",y);const m="object"==typeof e&&!!e.errorPassThrough,E={};let g=null;const w={method:"GET"};let b=!1,R=12e4;if("string"==typeof e)g=e;else if("object"==typeof e){if(null!=e&&null!=e.url||d.throwArgumentError("missing URL","connection.url",e),g=e.url,"number"==typeof e.timeout&&e.timeout>0&&(R=e.timeout),e.headers)for(const t in e.headers)E[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(b=!0);if(w.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==g.substring(0,6)&&!0!==e.allowInsecureAuthentication&&d.throwError("basic authentication requires a secure https url",n.errors.INVALID_ARGUMENT,{argument:"url",url:g,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;E.authorization={key:"Authorization",value:"Basic "+c(s(t))}}null!=e.skipFetchSetup&&(w.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(w.fetchOptions=o(e.fetchOptions))}const v=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),C=g?g.match(v):null;if(C)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":C[1]||"text/plain"},body:C[2]?l(C[3]):(S=C[3],s(S.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){d.throwError("processing response error",n.errors.SERVER_ERROR,{body:p(C[1],C[2]),error:e,requestBody:null,requestMethod:"GET",url:g})}var S;t&&(w.method="POST",w.body=t,null==E["content-type"]&&(E["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==E["content-length"]&&(E["content-length"]={key:"Content-Length",value:String(t.length)}));const O={};Object.keys(E).forEach((e=>{const t=E[e];O[t.key]=t.value})),w.headers=O;const T=function(){let e=null;return{promise:new Promise((function(t,r){R&&(e=setTimeout((()=>{null!=e&&(e=null,r(d.makeError("timeout",n.errors.TIMEOUT,{requestBody:p(w.body,O["content-type"]),requestMethod:w.method,timeout:R,url:g})))}),R))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),k=function(){return h(this,void 0,void 0,(function*(){for(let e=0;e<i;e++){let t=null;try{if(t=yield u(g,w),e<i)if(301===t.statusCode||302===t.statusCode){const e=t.headers.location||"";if("GET"===w.method&&e.match(/^https:/)){g=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(a&&(r=yield a(e,g)),r){let r=0;const o=t.headers["retry-after"];r="string"==typeof o&&o.match(/^[1-9][0-9]*$/)?1e3*parseInt(o):y*parseInt(String(Math.random()*Math.pow(2,e))),yield f(r);continue}}}catch(e){t=e.response,null==t&&(T.cancel(),d.throwError("missing response",n.errors.SERVER_ERROR,{requestBody:p(w.body,O["content-type"]),requestMethod:w.method,serverError:e,url:g}))}let o=t.body;if(b&&304===t.statusCode?o=null:!m&&(t.statusCode<200||t.statusCode>=300)&&(T.cancel(),d.throwError("bad response",n.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:p(o,t.headers?t.headers["content-type"]:null),requestBody:p(w.body,O["content-type"]),requestMethod:w.method,url:g})),r)try{const e=yield r(o,t);return T.cancel(),e}catch(r){if(r.throttleRetry&&e<i){let t=!0;if(a&&(t=yield a(e,g)),t){const t=y*parseInt(String(Math.random()*Math.pow(2,e)));yield f(t);continue}}T.cancel(),d.throwError("processing response error",n.errors.SERVER_ERROR,{body:p(o,t.headers?t.headers["content-type"]:null),error:r,requestBody:p(w.body,O["content-type"]),requestMethod:w.method,url:g})}return T.cancel(),o}return d.throwError("failed response",n.errors.SERVER_ERROR,{requestBody:p(w.body,O["content-type"]),requestMethod:w.method,url:g})}))}();return Promise.race([T.promise,k])}function m(e,t,r){let l=null;if(null!=t){l=s(t);const r="string"==typeof e?{url:e}:o(e);if(r.headers){0!==Object.keys(r.headers).filter((e=>"content-type"===e.toLowerCase())).length||(r.headers=o(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return y(e,l,((e,t)=>{let o=null;if(null!=e)try{o=JSON.parse(i(e))}catch(t){d.throwError("invalid JSON",n.errors.SERVER_ERROR,{body:e,error:t})}return r&&(o=r(o,t)),o}))}function E(e,t){return t||(t={}),null==(t=o(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,o){let n=null,s=!1;const i=()=>!s&&(s=!0,n&&clearTimeout(n),!0);t.timeout&&(n=setTimeout((()=>{i()&&o(new Error("timeout"))}),t.timeout));const l=t.retryLimit;let c=0;!function n(){return e().then((function(e){if(void 0!==e)i()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",n);else if(t.onceBlock)t.onceBlock.once("block",n);else if(!s){if(c++,c>l)return void(i()&&o(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(n,e)}return null}),(function(e){i()&&o(e)}))}()}))}var g=Object.freeze({__proto__:null,_fetchData:y,fetchJson:m,poll:E});export{y as _,l as d,c as e,m as f,g as l,E as p};
@@ -0,0 +1,66 @@
1
+ import{n as t,s as e,T as r,t as o,a as n,o as i,R as a,p as s,y as l}from"./index-71e104e3.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2019 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */const c=window,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),u=new WeakMap;class m{constructor(t,e,r){if(this._$cssResult$=!0,r!==h)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(d&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&u.set(e,t))}return t}toString(){return this.cssText}}const p=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,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.")})(r)+t[o+1]),t[0]);return new m(r,t,h)},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new m("string"==typeof t?t:t+"",void 0,h))(e)})(t):t
7
+ /**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */;var w;const f=window,v=f.trustedTypes,b=v?v.emptyScript:"",y=f.reactiveElementPolyfillSupport,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},$=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:$};class C 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,r)=>{const o=this._$Ep(r,e);void 0!==o&&(this._$Ev.set(o,r),t.push(o))})),t}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}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 r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"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,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.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)=>{d?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),o=c.litNonce;void 0!==o&&r.setAttribute("nonce",o),r.textContent=e.cssText,t.appendChild(r)}))})(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,r){this._$AK(t,r)}_$EO(t,e,r=A){var o;const n=this.constructor._$Ep(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==(null===(o=r.converter)||void 0===o?void 0:o.toAttribute)?r.converter:x).toAttribute(e,r.type);this._$El=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$El=null}}_$AK(t,e){var r;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:x;this._$El=n,this[n]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let o=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):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 r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),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(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}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){}}
12
+ /**
13
+ * @license
14
+ * Copyright 2017 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ */
17
+ var _;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:C}),(null!==(w=f.reactiveElementVersions)&&void 0!==w?w:f.reactiveElementVersions=[]).push("1.6.1");const E=window,k=E.trustedTypes,O=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,T="?"+M,P=`<${T}>`,R=document,S=()=>R.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,B="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,W=/>/g,j=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,z=/"/g,Z=/^(?:script|style|textarea|title)$/i,F=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,K=R.createTreeWalker(R,129,null,!1);function Y(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==O?O.createHTML(e):e}class Q{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",a=D;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,d=0;for(;d<r.length&&(a.lastIndex=d,l=a.exec(r),null!==l);)d=a.lastIndex,a===D?"!--"===l[1]?a=U:void 0!==l[1]?a=W:void 0!==l[2]?(Z.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=j):void 0!==l[3]&&(a=j):a===j?">"===l[0]?(a=null!=n?n:D,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?j:'"'===l[3]?z:H):a===z||a===H?a=j:a===U||a===W?a=D:(a=j,n=void 0);const h=a===j&&t[e+1].startsWith("/>")?" ":"";i+=a===D?r+P:c>=0?(o.push(s),r.slice(0,c)+I+r.slice(c)+M+h):r+M+(-2===c?(o.push(void 0),e):h)}return[Y(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=Q.createElement(l,r),K.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=K.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(I)||e.startsWith(M)){const r=c[i++];if(t.push(e),void 0!==r){const t=o.getAttribute(r.toLowerCase()+I).split(M),e=/([.?@])?(.*)/.exec(r);s.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?nt:tt})}else s.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=k?k.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],S()),K.nextNode(),s.push({type:2,index:++n});o.append(t[e],S())}}}else if(8===o.nodeType)if(o.data===T)s.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)s.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const r=R.createElement("template");return r.innerHTML=t,r}}function J(t,e,r=t,o){var n,i,a,s;if(e===F)return e;let l=void 0!==o?null===(n=r._$Co)||void 0===n?void 0:n[o]:r._$Cl;const c=N(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,r,o)),void 0!==o?(null!==(a=(s=r)._$Co)&&void 0!==a?a:s._$Co=[])[o]=l:r._$Cl=l),void 0!==l&&(e=J(t,l._$AS(t,e.values),l,o)),e}class G{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(r,!0);K.currentNode=n;let i=K.nextNode(),a=0,s=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new X(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new it(i,this,t)),this._$AV.push(e),l=o[++s]}a!==(null==l?void 0:l.index)&&(i=K.nextNode(),a++)}return K.currentNode=R,n}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class X{constructor(t,e,r,o){var n;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J(this,t,e),N(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&N(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(Y(o.h,o.h[0]),this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(r);else{const t=new G(n,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Q(t)),e}T(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new X(this.k(S()),this.k(S()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,r,o,n){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=J(this,t,e,0),i=!N(t)||t!==this._$AH&&t!==F,i&&(this._$AH=t);else{const o=t;let a,s;for(t=n[0],a=0;a<n.length-1;a++)s=J(this,o[r+a],e,a),s===F&&(s=this._$AH[a]),i||(i=!N(s)||s!==this._$AH[a]),s===V?t=V:t!==V&&(t+=(null!=s?s:"")+n[a+1]),this._$AH[a]=s}i&&!o&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const rt=k?k.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class nt extends tt{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=J(this,t,e,0))&&void 0!==r?r:V)===F)return;const o=this._$AH,n=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==V&&(o===V||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){J(this,t)}}const at=E.litHtmlPolyfillSupport;
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */
23
+ var st;null==at||at(Q,X),(null!==(_=E.litHtmlVersions)&&void 0!==_?_:E.litHtmlVersions=[]).push("2.8.0");const lt=window,ct=lt.trustedTypes,dt=ct?ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,ht="$lit$",ut=`lit$${(Math.random()+"").slice(9)}$`,mt="?"+ut,pt=`<${mt}>`,gt=document,wt=()=>gt.createComment(""),ft=t=>null===t||"object"!=typeof t&&"function"!=typeof t,vt=Array.isArray,bt="[ \t\n\f\r]",yt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xt=/-->/g,$t=/>/g,At=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ct=/'/g,_t=/"/g,Et=/^(?:script|style|textarea|title)$/i,kt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ot=kt(1),It=kt(2),Mt=Symbol.for("lit-noChange"),Tt=Symbol.for("lit-nothing"),Pt=new WeakMap,Rt=gt.createTreeWalker(gt,129,null,!1),St=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",a=yt;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,d=0;for(;d<r.length&&(a.lastIndex=d,l=a.exec(r),null!==l);)d=a.lastIndex,a===yt?"!--"===l[1]?a=xt:void 0!==l[1]?a=$t:void 0!==l[2]?(Et.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=At):void 0!==l[3]&&(a=At):a===At?">"===l[0]?(a=null!=n?n:yt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?At:'"'===l[3]?_t:Ct):a===_t||a===Ct?a=At:a===xt||a===$t?a=yt:(a=At,n=void 0);const h=a===At&&t[e+1].startsWith("/>")?" ":"";i+=a===yt?r+pt:c>=0?(o.push(s),r.slice(0,c)+ht+r.slice(c)+ut+h):r+ut+(-2===c?(o.push(void 0),e):h)}const s=i+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==dt?dt.createHTML(s):s,o]};class Nt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const a=t.length-1,s=this.parts,[l,c]=St(t,e);if(this.el=Nt.createElement(l,r),Rt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Rt.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(ht)||e.startsWith(ut)){const r=c[i++];if(t.push(e),void 0!==r){const t=o.getAttribute(r.toLowerCase()+ht).split(ut),e=/([.?@])?(.*)/.exec(r);s.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Wt:"?"===e[1]?Ht:"@"===e[1]?zt:Ut})}else s.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(Et.test(o.tagName)){const t=o.textContent.split(ut),e=t.length-1;if(e>0){o.textContent=ct?ct.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],wt()),Rt.nextNode(),s.push({type:2,index:++n});o.append(t[e],wt())}}}else if(8===o.nodeType)if(o.data===mt)s.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(ut,t+1));)s.push({type:7,index:n}),t+=ut.length-1}n++}}static createElement(t,e){const r=gt.createElement("template");return r.innerHTML=t,r}}function Lt(t,e,r=t,o){var n,i,a,s;if(e===Mt)return e;let l=void 0!==o?null===(n=r._$Co)||void 0===n?void 0:n[o]:r._$Cl;const c=ft(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,r,o)),void 0!==o?(null!==(a=(s=r)._$Co)&&void 0!==a?a:s._$Co=[])[o]=l:r._$Cl=l),void 0!==l&&(e=Lt(t,l._$AS(t,e.values),l,o)),e}class Bt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:gt).importNode(r,!0);Rt.currentNode=n;let i=Rt.nextNode(),a=0,s=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new Dt(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new Zt(i,this,t)),this._$AV.push(e),l=o[++s]}a!==(null==l?void 0:l.index)&&(i=Rt.nextNode(),a++)}return n}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Dt{constructor(t,e,r,o){var n;this.type=2,this._$AH=Tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Lt(this,t,e),ft(t)?t===Tt||null==t||""===t?(this._$AH!==Tt&&this._$AR(),this._$AH=Tt):t!==this._$AH&&t!==Mt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>vt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Tt&&ft(this._$AH)?this._$AA.nextSibling.data=t:this.$(gt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Nt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(r);else{const t=new Bt(n,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=Pt.get(t.strings);return void 0===e&&Pt.set(t.strings,e=new Nt(t)),e}T(t){vt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new Dt(this.k(wt()),this.k(wt()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Ut{constructor(t,e,r,o,n){this.type=1,this._$AH=Tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Tt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Lt(this,t,e,0),i=!ft(t)||t!==this._$AH&&t!==Mt,i&&(this._$AH=t);else{const o=t;let a,s;for(t=n[0],a=0;a<n.length-1;a++)s=Lt(this,o[r+a],e,a),s===Mt&&(s=this._$AH[a]),i||(i=!ft(s)||s!==this._$AH[a]),s===Tt?t=Tt:t!==Tt&&(t+=(null!=s?s:"")+n[a+1]),this._$AH[a]=s}i&&!o&&this.j(t)}j(t){t===Tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Wt extends Ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Tt?void 0:t}}const jt=ct?ct.emptyScript:"";class Ht extends Ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Tt?this.element.setAttribute(this.name,jt):this.element.removeAttribute(this.name)}}class zt extends Ut{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=Lt(this,t,e,0))&&void 0!==r?r:Tt)===Mt)return;const o=this._$AH,n=t===Tt&&o!==Tt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Tt&&(o===Tt||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class Zt{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Lt(this,t)}}const Ft=lt.litHtmlPolyfillSupport;null==Ft||Ft(Nt,Dt),(null!==(st=lt.litHtmlVersions)&&void 0!==st?st:lt.litHtmlVersions=[]).push("2.7.3");
24
+ /**
25
+ * @license
26
+ * Copyright 2017 Google LLC
27
+ * SPDX-License-Identifier: BSD-3-Clause
28
+ */
29
+ var Vt,qt;class Kt extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{var o,n;const i=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:e;let a=i._$litPart$;if(void 0===a){const t=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;i._$litPart$=a=new Dt(e.insertBefore(wt(),t),t,void 0,null!=r?r:{})}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 Mt}}Kt.finalized=!0,Kt._$litElement$=!0,null===(Vt=globalThis.litElementHydrateSupport)||void 0===Vt||Vt.call(globalThis,{LitElement:Kt});const Yt=globalThis.litElementPolyfillSupport;null==Yt||Yt({LitElement:Kt}),(null!==(qt=globalThis.litElementVersions)&&void 0!==qt?qt:globalThis.litElementVersions=[]).push("3.3.2");
30
+ /**
31
+ * @license
32
+ * Copyright 2017 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
35
+ const Qt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:o}=e;return{kind:r,elements:o,finisher(e){customElements.define(t,e)}}})(t,e)
36
+ /**
37
+ * @license
38
+ * Copyright 2017 Google LLC
39
+ * SPDX-License-Identifier: BSD-3-Clause
40
+ */,Jt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.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(r){r.createProperty(e.key,t)}};function Gt(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):Jt(t,e)}
41
+ /**
42
+ * @license
43
+ * Copyright 2017 Google LLC
44
+ * SPDX-License-Identifier: BSD-3-Clause
45
+ */function Xt(t){return Gt({...t,state:!0})}
46
+ /**
47
+ * @license
48
+ * Copyright 2021 Google LLC
49
+ * SPDX-License-Identifier: BSD-3-Clause
50
+ */var te;null===(te=window.HTMLSlotElement)||void 0===te||te.prototype.assignedElements;
51
+ /**
52
+ * @license
53
+ * Copyright 2017 Google LLC
54
+ * SPDX-License-Identifier: BSD-3-Clause
55
+ */
56
+ const ee=1;class re{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
57
+ /**
58
+ * @license
59
+ * Copyright 2018 Google LLC
60
+ * SPDX-License-Identifier: BSD-3-Clause
61
+ */const oe=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends re{constructor(t){var e;if(super(t),t.type!==ee||"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 r,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(r?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return F}});const ne=(t,e,r)=>Math.min(Math.max(r,t),e),ie={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ae=t=>"number"==typeof t,se=t=>Array.isArray(t)&&!ae(t[0]),le=(t,e,r)=>{const o=e-t;return((r-t)%o+o)%o+t};const ce=(t,e,r)=>-r*t+r*e+t,de=()=>{},he=t=>t,ue=(t,e,r)=>e-t==0?1:(r-t)/(e-t);function me(t,e){const r=t[t.length-1];for(let o=1;o<=e;o++){const n=ue(0,e,o);t.push(ce(r,1,n))}}function pe(t,e=function(t){const e=[0];return me(e,t-1),e}(t.length),r=he){const o=t.length,n=o-e.length;return n>0&&me(e,n),n=>{let i=0;for(;i<o-2&&!(n<e[i+1]);i++);let a=ne(0,1,ue(e[i],e[i+1],n));const s=function(t,e){return se(t)?t[le(0,t.length,e)]:t}(r,i);return a=s(a),ce(t[i],t[i+1],a)}}const ge=t=>Array.isArray(t)&&ae(t[0]),we=t=>"object"==typeof t&&Boolean(t.createAnimation),fe=t=>"function"==typeof t,ve=t=>"string"==typeof t,be={ms:t=>1e3*t,s:t=>t/1e3},ye=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,xe=1e-7,$e=12;function Ae(t,e,r,o){if(t===e&&r===o)return he;const n=e=>function(t,e,r,o,n){let i,a,s=0;do{a=e+(r-e)/2,i=ye(a,o,n)-t,i>0?r=a:e=a}while(Math.abs(i)>xe&&++s<$e);return a}(e,0,1,t,r);return t=>0===t||1===t?t:ye(n(t),e,o)}const Ce={ease:Ae(.25,.1,.25,1),"ease-in":Ae(.42,0,1,1),"ease-in-out":Ae(.42,0,.58,1),"ease-out":Ae(0,0,.58,1)},_e=/\((.*?)\)/;function Ee(t){if(fe(t))return t;if(ge(t))return Ae(...t);if(Ce[t])return Ce[t];if(t.startsWith("steps")){const e=_e.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>r=>{const o=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,n="end"===e?Math.floor(o):Math.ceil(o);return ne(0,1,n/t)})(parseFloat(t[0]),t[1].trim())}}return he}class ke{constructor(t,e=[0,1],{easing:r,duration:o=ie.duration,delay:n=ie.delay,endDelay:i=ie.endDelay,repeat:a=ie.repeat,offset:s,direction:l="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=he,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),r=r||ie.easing,we(r)){const t=r.createAnimation(e);r=t.easing,e=t.keyframes||e,o=t.duration||o}this.repeat=a,this.easing=se(r)?he:Ee(r),this.updateDuration(o);const c=pe(e,s,se(r)?r.map(Ee):he);this.tick=e=>{var r;let o=0;o=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=o,o/=1e3,o=Math.max(o-n,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===(r=this.resolve)||void 0===r||r.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}}var Oe=function(){};"production"!==process.env.NODE_ENV&&(Oe=function(t,e){if(!t)throw new Error(e)});class Ie{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const Me=new WeakMap;function Te(t){return Me.has(t)||Me.set(t,{transforms:[],values:new Map}),Me.get(t)}const Pe=["","X","Y","Z"],Re={x:"translateX",y:"translateY",z:"translateZ"},Se={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Ne={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Se,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:he},skew:Se},Le=new Map,Be=t=>`--motion-${t}`,De=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{Pe.forEach((e=>{De.push(t+e),Le.set(Be(t+e),Ne[t])}))}));const Ue=(t,e)=>De.indexOf(t)-De.indexOf(e),We=new Set(De),je=t=>We.has(t),He=(t,e)=>{Re[e]&&(e=Re[e]);const{transforms:r}=Te(t);var o,n;n=e,-1===(o=r).indexOf(n)&&o.push(n),t.style.transform=ze(r)},ze=t=>t.sort(Ue).reduce(Ze,"").trim(),Ze=(t,e)=>`${t} ${e}(var(${Be(e)}))`,Fe=t=>t.startsWith("--"),Ve=new Set;const qe=(t,e)=>document.createElement("div").animate(t,e),Ke={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{qe({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(qe({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{qe({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},Ye={},Qe={};for(const t in Ke)Qe[t]=()=>(void 0===Ye[t]&&(Ye[t]=Ke[t]()),Ye[t]);const Je=(t,e)=>fe(t)?Qe.linearEasing()?`linear(${((t,e)=>{let r="";const o=Math.round(e/.015);for(let e=0;e<o;e++)r+=t(ue(0,o-1,e))+", ";return r.substring(0,r.length-2)})(t,e)})`:ie.easing:ge(t)?Ge(t):t,Ge=([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`;const Xe=t=>Array.isArray(t)?t:[t];function tr(t){return Re[t]&&(t=Re[t]),je(t)?Be(t):t}const er={get:(t,e)=>{e=tr(e);let r=Fe(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&0!==r){const t=Le.get(e);t&&(r=t.initialValue)}return r},set:(t,e,r)=>{e=tr(e),Fe(e)?t.style.setProperty(e,r):t.style[e]=r}};function rr(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}function or(t,e,r,o={},n){const i=window.__MOTION_DEV_TOOLS_RECORD,a=!1!==o.record&&i;let s,{duration:l=ie.duration,delay:c=ie.delay,endDelay:d=ie.endDelay,repeat:h=ie.repeat,easing:u=ie.easing,persist:m=!1,direction:p,offset:g,allowWebkitAcceleration:w=!1}=o;const f=Te(t),v=je(e);let b=Qe.waapi();v&&He(t,e);const y=tr(e),x=function(t,e){return t.has(e)||t.set(e,new Ie),t.get(e)}(f.values,y),$=Le.get(y);return rr(x.animation,!(we(u)&&x.generator)&&!1!==o.record),()=>{const f=()=>{var e,r;return null!==(r=null!==(e=er.get(t,y))&&void 0!==e?e:null==$?void 0:$.initialValue)&&void 0!==r?r:0};let A=function(t,e){for(let r=0;r<t.length;r++)null===t[r]&&(t[r]=r?t[r-1]:e());return t}(Xe(r),f);const C=function(t,e){var r;let o=(null==e?void 0:e.toDefaultUnit)||he;const n=t[t.length-1];if(ve(n)){const t=(null===(r=n.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";t&&(o=e=>e+t)}return o}(A,$);if(we(u)){const t=u.createAnimation(A,"opacity"!==e,f,y,x);u=t.easing,A=t.keyframes||A,l=t.duration||l}if(Fe(y)&&(Qe.cssRegisterProperty()?function(t){if(!Ve.has(t)){Ve.add(t);try{const{syntax:e,initialValue:r}=Le.has(t)?Le.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch(t){}}}(y):b=!1),v&&!Qe.linearEasing()&&(fe(u)||se(u)&&u.some(fe))&&(b=!1),b){$&&(A=A.map((t=>ae(t)?$.toDefaultUnit(t):t))),1!==A.length||Qe.partialKeyframes()&&!a||A.unshift(f());const e={delay:be.ms(c),duration:be.ms(l),endDelay:be.ms(d),easing:se(u)?void 0:Je(u,l),direction:p,iterations:h+1,fill:"both"};s=t.animate({[y]:A,offset:g,easing:se(u)?u.map((t=>Je(t,l))):void 0},e),s.finished||(s.finished=new Promise(((t,e)=>{s.onfinish=t,s.oncancel=e})));const r=A[A.length-1];s.finished.then((()=>{m||(er.set(t,y,r),s.cancel())})).catch(de),w||(s.playbackRate=1.000001)}else if(n&&v)A=A.map((t=>"string"==typeof t?parseFloat(t):t)),1===A.length&&A.unshift(parseFloat(f())),s=new n((e=>{er.set(t,y,C?C(e):e)}),A,Object.assign(Object.assign({},o),{duration:l,easing:u}));else{const e=A[A.length-1];er.set(t,y,$&&ae(e)?$.toDefaultUnit(e):e)}return a&&i(t,e,A,{duration:l,delay:c,easing:u,repeat:h,offset:g},"motion-one"),x.setAnimation(s),s}}const nr=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);const ir=t=>t(),ar=(t,e,r=ie.duration)=>new Proxy({animations:t.map(ir).filter(Boolean),duration:r,options:e},sr),sr={get:(t,e)=>{const r=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return be.s((null==r?void 0:r[e])||0);case"playbackRate":case"playState":return null==r?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(lr)).catch(de)),t.finished;case"stop":return()=>{t.animations.forEach((t=>rr(t)))};case"forEachNative":return e=>{t.animations.forEach((r=>e(r,t)))};default:return void 0===(null==r?void 0:r[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,r)=>{switch(e){case"currentTime":r=be.ms(r);case"currentTime":case"playbackRate":for(let o=0;o<t.animations.length;o++)t.animations[o][e]=r;return!0}return!1}},lr=t=>t.finished;function cr(t,e,r){return fe(t)?t(e,r):t}const dr=(hr=ke,function(t,e,r={}){const o=(t=function(t,e){var r;return"string"==typeof t?e?(null!==(r=e[t])&&void 0!==r||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t)).length;Oe(Boolean(o),"No valid element provided."),Oe(Boolean(e),"No keyframes defined.");const n=[];for(let i=0;i<o;i++){const a=t[i];for(const t in e){const s=nr(r,t);s.delay=cr(s.delay,i,o);const l=or(a,t,e[t],s,hr);n.push(l)}}return ar(n,r,r.duration)});var hr;function ur(t,e={}){return ar([()=>{const r=new ke(t,[0,1],e);return r.finished.catch((()=>{})),r}],e,e.duration)}function mr(t,e,r){return(fe(t)?ur:dr)(t,e,r)}
62
+ /**
63
+ * @license
64
+ * Copyright 2018 Google LLC
65
+ * SPDX-License-Identifier: BSD-3-Clause
66
+ */const pr=t=>null!=t?t:V;var gr={},wr={},fr={};let vr;const br=[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];fr.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},fr.getSymbolTotalCodewords=function(t){return br[t]},fr.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},fr.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');vr=t},fr.isKanjiModeEnabled=function(){return void 0!==vr},fr.toSJIS=function(t){return vr(t)};var yr,xr={};function $r(){this.buffer=[],this.length=0}(yr=xr).L={bit:1},yr.M={bit:0},yr.Q={bit:3},yr.H={bit:2},yr.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},yr.from=function(t,e){if(yr.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 yr.L;case"m":case"medium":return yr.M;case"q":case"quartile":return yr.Q;case"h":case"high":return yr.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}},$r.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 r=0;r<e;r++)this.putBit(1==(t>>>e-r-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++}};var Ar=$r;function Cr(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)}Cr.prototype.set=function(t,e,r,o){const n=t*this.size+e;this.data[n]=r,o&&(this.reservedBit[n]=!0)},Cr.prototype.get=function(t,e){return this.data[t*this.size+e]},Cr.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},Cr.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var _r=Cr,Er={};!function(t){const e=fr.getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const r=Math.floor(t/7)+2,o=e(t),n=145===o?26:2*Math.ceil((o-13)/(2*r-2)),i=[o-7];for(let t=1;t<r-1;t++)i[t]=i[t-1]-n;return i.push(6),i.reverse()},t.getPositions=function(e){const r=[],o=t.getRowColCoords(e),n=o.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||r.push([o[t],o[e]]);return r}}(Er);var kr={};const Or=fr.getSymbolSize;kr.getPositions=function(t){const e=Or(t);return[[0,0],[e-7,0],[0,e-7]]};var Ir={};!function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,r=3,o=40,n=10;function i(e,r,o){switch(e){case t.Patterns.PATTERN000:return(r+o)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(r+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return r*o%2+r*o%3==0;case t.Patterns.PATTERN110:return(r*o%2+r*o%3)%2==0;case t.Patterns.PATTERN111:return(r*o%3+(r+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const r=t.size;let o=0,n=0,i=0,a=null,s=null;for(let l=0;l<r;l++){n=i=0,a=s=null;for(let c=0;c<r;c++){let r=t.get(l,c);r===a?n++:(n>=5&&(o+=e+(n-5)),a=r,n=1),r=t.get(c,l),r===s?i++:(i>=5&&(o+=e+(i-5)),s=r,i=1)}n>=5&&(o+=e+(n-5)),i>=5&&(o+=e+(i-5))}return o},t.getPenaltyN2=function(t){const e=t.size;let o=0;for(let r=0;r<e-1;r++)for(let n=0;n<e-1;n++){const e=t.get(r,n)+t.get(r,n+1)+t.get(r+1,n)+t.get(r+1,n+1);4!==e&&0!==e||o++}return o*r},t.getPenaltyN3=function(t){const e=t.size;let r=0,n=0,i=0;for(let o=0;o<e;o++){n=i=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(o,a),a>=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(a,o),a>=10&&(1488===i||93===i)&&r++}return r*o},t.getPenaltyN4=function(t){let e=0;const r=t.data.length;for(let o=0;o<r;o++)e+=t.data[o];return Math.abs(Math.ceil(100*e/r/5)-10)*n},t.applyMask=function(t,e){const r=e.size;for(let o=0;o<r;o++)for(let n=0;n<r;n++)e.isReserved(n,o)||e.xor(n,o,i(t,n,o))},t.getBestMask=function(e,r){const o=Object.keys(t.Patterns).length;let n=0,i=1/0;for(let a=0;a<o;a++){r(a),t.applyMask(a,e);const o=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),o<i&&(i=o,n=a)}return n}}(Ir);var Mr={};const Tr=xr,Pr=[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],Rr=[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];Mr.getBlocksCount=function(t,e){switch(e){case Tr.L:return Pr[4*(t-1)+0];case Tr.M:return Pr[4*(t-1)+1];case Tr.Q:return Pr[4*(t-1)+2];case Tr.H:return Pr[4*(t-1)+3];default:return}},Mr.getTotalCodewordsCount=function(t,e){switch(e){case Tr.L:return Rr[4*(t-1)+0];case Tr.M:return Rr[4*(t-1)+1];case Tr.Q:return Rr[4*(t-1)+2];case Tr.H:return Rr[4*(t-1)+3];default:return}};var Sr={},Nr={};const Lr=new Uint8Array(512),Br=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)Lr[e]=t,Br[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)Lr[t]=Lr[t-255]}(),Nr.log=function(t){if(t<1)throw new Error("log("+t+")");return Br[t]},Nr.exp=function(t){return Lr[t]},Nr.mul=function(t,e){return 0===t||0===e?0:Lr[Br[t]+Br[e]]},function(t){const e=Nr;t.mul=function(t,r){const o=new Uint8Array(t.length+r.length-1);for(let n=0;n<t.length;n++)for(let i=0;i<r.length;i++)o[n+i]^=e.mul(t[n],r[i]);return o},t.mod=function(t,r){let o=new Uint8Array(t);for(;o.length-r.length>=0;){const t=o[0];for(let n=0;n<r.length;n++)o[n]^=e.mul(r[n],t);let n=0;for(;n<o.length&&0===o[n];)n++;o=o.slice(n)}return o},t.generateECPolynomial=function(r){let o=new Uint8Array([1]);for(let n=0;n<r;n++)o=t.mul(o,new Uint8Array([1,e.exp(n)]));return o}}(Sr);const Dr=Sr;function Ur(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Ur.prototype.initialize=function(t){this.degree=t,this.genPoly=Dr.generateECPolynomial(this.degree)},Ur.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 r=Dr.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(r,o),t}return r};var Wr=Ur,jr={},Hr={},zr={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},Zr={};const Fr="[0-9]+";let Vr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Vr=Vr.replace(/u/g,"\\u");const qr="(?:(?![A-Z0-9 $%*+\\-./:]|"+Vr+")(?:.|[\r\n]))+";Zr.KANJI=new RegExp(Vr,"g"),Zr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Zr.BYTE=new RegExp(qr,"g"),Zr.NUMERIC=new RegExp(Fr,"g"),Zr.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const Kr=new RegExp("^"+Vr+"$"),Yr=new RegExp("^"+Fr+"$"),Qr=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Zr.testKanji=function(t){return Kr.test(t)},Zr.testNumeric=function(t){return Yr.test(t)},Zr.testAlphanumeric=function(t){return Qr.test(t)},function(t){const e=zr,r=Zr;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(t){return r}}}(Hr),function(t){const e=fr,r=Mr,o=xr,n=Hr,i=zr,a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let r=0;return t.forEach((function(t){const o=s(t.mode,e);r+=o+t.getBitsLength()})),r}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,o,a){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,o));if(a===n.MIXED)return l;const c=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(c/10*3);case n.ALPHANUMERIC:return Math.floor(c/11*2);case n.KANJI:return Math.floor(c/13);case n.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,r){let i;const a=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let o=1;o<=40;o++)if(l(e,o)<=t.getCapacity(o,r,n.MIXED))return o}(e,a);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,r,o){for(let n=1;n<=40;n++)if(r<=t.getCapacity(n,o,e))return n}(i.mode,i.getLength(),a)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;e.getBCHDigit(r)-a>=0;)r^=7973<<e.getBCHDigit(r)-a;return t<<12|r}}(jr);var Jr={};const Gr=fr,Xr=Gr.getBCHDigit(1335);Jr.getEncodedBits=function(t,e){const r=t.bit<<3|e;let o=r<<10;for(;Gr.getBCHDigit(o)-Xr>=0;)o^=1335<<Gr.getBCHDigit(o)-Xr;return 21522^(r<<10|o)};var to={};const eo=Hr;function ro(t){this.mode=eo.NUMERIC,this.data=t.toString()}ro.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},ro.prototype.getLength=function(){return this.data.length},ro.prototype.getBitsLength=function(){return ro.getBitsLength(this.data.length)},ro.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);const n=this.data.length-e;n>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,3*n+1))};var oo=ro;const no=Hr,io=["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 ao(t){this.mode=no.ALPHANUMERIC,this.data=t}ao.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},ao.prototype.getLength=function(){return this.data.length},ao.prototype.getBitsLength=function(){return ao.getBitsLength(this.data.length)},ao.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*io.indexOf(this.data[e]);r+=io.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(io.indexOf(this.data[e]),6)};var so=ao;const lo=function(t){for(var e=[],r=t.length,o=0;o<r;o++){var n=t.charCodeAt(o);if(n>=55296&&n<=56319&&r>o+1){var i=t.charCodeAt(o+1);i>=56320&&i<=57343&&(n=1024*(n-55296)+i-56320+65536,o+=1)}n<128?e.push(n):n<2048?(e.push(n>>6|192),e.push(63&n|128)):n<55296||n>=57344&&n<65536?(e.push(n>>12|224),e.push(n>>6&63|128),e.push(63&n|128)):n>=65536&&n<=1114111?(e.push(n>>18|240),e.push(n>>12&63|128),e.push(n>>6&63|128),e.push(63&n|128)):e.push(239,191,189)}return new Uint8Array(e).buffer},co=Hr;function ho(t){this.mode=co.BYTE,"string"==typeof t&&(t=lo(t)),this.data=new Uint8Array(t)}ho.getBitsLength=function(t){return 8*t},ho.prototype.getLength=function(){return this.data.length},ho.prototype.getBitsLength=function(){return ho.getBitsLength(this.data.length)},ho.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};var uo=ho;const mo=Hr,po=fr;function go(t){this.mode=mo.KANJI,this.data=t}go.getBitsLength=function(t){return 13*t},go.prototype.getLength=function(){return this.data.length},go.prototype.getBitsLength=function(){return go.getBitsLength(this.data.length)},go.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=po.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}};var wo=go,fo={exports:{}};!function(t){var e={single_source_shortest_paths:function(t,r,o){var n={},i={};i[r]=0;var a,s,l,c,d,h,u,m=e.PriorityQueue.make();for(m.push(r,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),n[l]=s));if(void 0!==o&&void 0===i[o]){var p=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(p)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],o=e;o;)r.push(o),t[o],o=t[o];return r.reverse(),r},find_path:function(t,r,o){var n=e.single_source_shortest_paths(t,r,o);return e.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(t){var r,o=e.PriorityQueue,n={};for(r in t=t||{},o)o.hasOwnProperty(r)&&(n[r]=o[r]);return n.queue=[],n.sorter=t.sorter||o.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(fo),function(t){const e=Hr,r=oo,o=so,n=uo,i=wo,a=Zr,s=fr,l=fo.exports;function c(t){return unescape(encodeURIComponent(t)).length}function d(t,e,r){const o=[];let n;for(;null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}function h(t){const r=d(a.NUMERIC,e.NUMERIC,t),o=d(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,i;s.isKanjiModeEnabled()?(n=d(a.BYTE,e.BYTE,t),i=d(a.KANJI,e.KANJI,t)):(n=d(a.BYTE_KANJI,e.BYTE,t),i=[]);return r.concat(o,n,i).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function u(t,a){switch(a){case e.NUMERIC:return r.getBitsLength(t);case e.ALPHANUMERIC:return o.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function m(t,a){let l;const c=e.getBestModeForData(t);if(l=e.from(a,c),l!==e.BYTE&&l.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(c));switch(l!==e.KANJI||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new r(t);case e.ALPHANUMERIC:return new o(t);case e.KANJI:return new i(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(m(e,null)):e.data&&t.push(m(e.data,e.mode)),t}),[])},t.fromString=function(r,o){const n=function(t){const r=[];for(let o=0;o<t.length;o++){const n=t[o];switch(n.mode){case e.NUMERIC:r.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:r.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:r.push([n,{data:n.data,mode:e.BYTE,length:c(n.data)}]);break;case e.BYTE:r.push([{data:n.data,mode:e.BYTE,length:c(n.data)}])}}return r}(h(r,s.isKanjiModeEnabled())),i=function(t,r){const o={},n={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),o[d]={node:c,lastCount:0},n[d]={};for(let t=0;t<i.length;t++){const a=i[t];o[a]&&o[a].node.mode===c.mode?(n[a][d]=u(o[a].lastCount+c.length,c.mode)-u(o[a].lastCount,c.mode),o[a].lastCount+=c.length):(o[a]&&(o[a].lastCount=c.length),n[a][d]=u(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,r))}}i=l}for(let t=0;t<i.length;t++)n[i[t]].end=0;return{map:n,table:o}}(n,o),a=l.find_path(i.map,"start","end"),d=[];for(let t=1;t<a.length-1;t++)d.push(i.table[a[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(d))},t.rawSplit=function(e){return t.fromArray(h(e,s.isKanjiModeEnabled()))}}(to);const vo=fr,bo=xr,yo=Ar,xo=_r,$o=Er,Ao=kr,Co=Ir,_o=Mr,Eo=Wr,ko=jr,Oo=Jr,Io=Hr,Mo=to;function To(t,e,r){const o=t.size,n=Oo.getEncodedBits(e,r);let i,a;for(i=0;i<15;i++)a=1==(n>>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 Po(t,e,r){const o=new yo;r.forEach((function(e){o.put(e.mode.bit,4),o.put(e.getLength(),Io.getCharCountIndicator(e.mode,t)),e.write(o)}));const n=8*(vo.getSymbolTotalCodewords(t)-_o.getTotalCodewordsCount(t,e));for(o.getLengthInBits()+4<=n&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const i=(n-o.getLengthInBits())/8;for(let t=0;t<i;t++)o.put(t%2?17:236,8);return function(t,e,r){const o=vo.getSymbolTotalCodewords(e),n=_o.getTotalCodewordsCount(e,r),i=o-n,a=_o.getBlocksCount(e,r),s=o%a,l=a-s,c=Math.floor(o/a),d=Math.floor(i/a),h=d+1,u=c-d,m=new Eo(u);let p=0;const g=new Array(a),w=new Array(a);let f=0;const v=new Uint8Array(t.buffer);for(let t=0;t<a;t++){const e=t<l?d:h;g[t]=v.slice(p,p+e),w[t]=m.encode(g[t]),p+=e,f=Math.max(f,e)}const b=new Uint8Array(o);let y,x,$=0;for(y=0;y<f;y++)for(x=0;x<a;x++)y<g[x].length&&(b[$++]=g[x][y]);for(y=0;y<u;y++)for(x=0;x<a;x++)b[$++]=w[x][y];return b}(o,t,e)}function Ro(t,e,r,o){let n;if(Array.isArray(t))n=Mo.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let o=e;if(!o){const e=Mo.rawSplit(t);o=ko.getBestVersionForData(e,r)}n=Mo.fromString(t,o||40)}}const i=ko.getBestVersionForData(n,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<i)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+i+".\n")}else e=i;const a=Po(e,r,n),s=vo.getSymbolSize(e),l=new xo(s);return function(t,e){const r=t.size,o=Ao.getPositions(e);for(let e=0;e<o.length;e++){const n=o[e][0],i=o[e][1];for(let e=-1;e<=7;e++)if(!(n+e<=-1||r<=n+e))for(let o=-1;o<=7;o++)i+o<=-1||r<=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(n+e,i+o,!0,!0):t.set(n+e,i+o,!1,!0))}}(l,e),function(t){const e=t.size;for(let r=8;r<e-8;r++){const e=r%2==0;t.set(r,6,e,!0),t.set(6,r,e,!0)}}(l),function(t,e){const r=$o.getPositions(e);for(let e=0;e<r.length;e++){const o=r[e][0],n=r[e][1];for(let e=-2;e<=2;e++)for(let r=-2;r<=2;r++)-2===e||2===e||-2===r||2===r||0===e&&0===r?t.set(o+e,n+r,!0,!0):t.set(o+e,n+r,!1,!0)}}(l,e),To(l,r,0),e>=7&&function(t,e){const r=t.size,o=ko.getEncodedBits(e);let n,i,a;for(let e=0;e<18;e++)n=Math.floor(e/3),i=e%3+r-8-3,a=1==(o>>e&1),t.set(n,i,a,!0),t.set(i,n,a,!0)}(l,e),function(t,e){const r=t.size;let o=-1,n=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!t.isReserved(n,s-r)){let o=!1;a<e.length&&(o=1==(e[a]>>>i&1)),t.set(n,s-r,o),i--,-1===i&&(a++,i=7)}if(n+=o,n<0||r<=n){n-=o,o=-o;break}}}(l,a),isNaN(o)&&(o=Co.getBestMask(l,To.bind(null,l,r))),Co.applyMask(o,l),To(l,r,o),{modules:l,version:e,errorCorrectionLevel:r,maskPattern:o,segments:n}}wr.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let r,o,n=bo.M;return void 0!==e&&(n=bo.from(e.errorCorrectionLevel,bo.M),r=ko.from(e.version),o=Co.from(e.maskPattern),e.toSJISFunc&&vo.setToSJISFunction(e.toSJISFunc)),Ro(t,r,n,o)};var So={},No={};!function(t){function e(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 r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,o=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:o,scale:o?4:n,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,r){const o=t.getScale(e,r);return Math.floor((e+2*r.margin)*o)},t.qrToImageData=function(e,r,o){const n=r.modules.size,i=r.modules.data,a=t.getScale(n,o),s=Math.floor((n+2*o.margin)*a),l=o.margin*a,c=[o.color.light,o.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let d=4*(t*s+r),h=o.color.light;if(t>=l&&r>=l&&t<s-l&&r<s-l){h=c[i[Math.floor((t-l)/a)*n+Math.floor((r-l)/a)]?1:0]}e[d++]=h.r,e[d++]=h.g,e[d++]=h.b,e[d]=h.a}}}(No),function(t){const e=No;t.render=function(t,r,o){let n=o,i=r;void 0!==n||r&&r.getContext||(n=r,r=void 0),r||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=i.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(s,i,a),s.putImageData(l,0,0),i},t.renderToDataURL=function(e,r,o){let n=o;void 0!==n||r&&r.getContext||(n=r,r=void 0),n||(n={});const i=t.render(e,r,n),a=n.type||"image/png",s=n.rendererOpts||{};return i.toDataURL(a,s.quality)}}(So);var Lo={};const Bo=No;function Do(t,e){const r=t.a/255,o=e+'="'+t.hex+'"';return r<1?o+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':o}function Uo(t,e,r){let o=t+e;return void 0!==r&&(o+=" "+r),o}Lo.render=function(t,e,r){const o=Bo.getOptions(e),n=t.modules.size,i=t.modules.data,a=n+2*o.margin,s=o.color.light.a?"<path "+Do(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+Do(o.color.dark,"stroke")+' d="'+function(t,e,r){let o="",n=0,i=!1,a=0;for(let s=0;s<t.length;s++){const l=Math.floor(s%e),c=Math.floor(s/e);l||i||(i=!0),t[s]?(a++,s>0&&l>0&&t[s-1]||(o+=i?Uo("M",l+r,.5+c+r):Uo("m",n,0),n=0,i=!1),l+1<e&&t[s+1]||(o+=Uo("h",a),a=0)):n++}return o}(i,n,o.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+c+' shape-rendering="crispEdges">'+s+l+"</svg>\n";return"function"==typeof r&&r(null,d),d};const Wo=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},jo=wr,Ho=So,zo=Lo;function Zo(t,e,r,o,n){const i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!Wo())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(r=e,e=o=void 0):2!==a||e.getContext||(o=r,r=e,e=void 0),new Promise((function(n,i){try{const i=jo.create(r,o);n(t(i,e,o))}catch(t){i(t)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(n=r,r=e,e=o=void 0):3===a&&(e.getContext&&void 0===n?(n=o,o=void 0):(n=o,o=r,r=e,e=void 0));try{const i=jo.create(r,o);n(null,t(i,e,o))}catch(t){n(t)}}gr.create=jo.create,gr.toCanvas=Zo.bind(null,Ho.render),gr.toDataURL=Zo.bind(null,Ho.renderToDataURL),gr.toString=Zo.bind(null,(function(t,e,r){return zo.render(t,r)}));var Fo=Object.defineProperty,Vo=Object.getOwnPropertySymbols,qo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,Yo=(t,e,r)=>e in t?Fo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Qo=(t,e)=>{for(var r in e||(e={}))qo.call(e,r)&&Yo(t,r,e[r]);if(Vo)for(var r of Vo(e))Ko.call(e,r)&&Yo(t,r,e[r]);return t};const Jo={getPreset:t=>({"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}[t]),setTheme(){const e=document.querySelector(":root"),{themeVariables:r}=t.state;if(e){const o=Qo(Qo(Qo({},function(){var e;const r={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)"}}[null!=(e=t.state.themeMode)?e:"dark"];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}()),{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}),r);Object.entries(o).forEach((([t,r])=>e.style.setProperty(t,r)))}},globalCss:p`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Go=p`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Xo=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?tn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Xo(e,r,i),i};let rn=class extends Kt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let e="inverse";return"ghost"===this.variant&&(e="secondary"),"outline"===this.variant&&(e="accent"),Ot`<button class="${oe(t)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${e}"><slot></slot></wcm-text>${this.iconRight}</button>`}};rn.styles=[Jo.globalCss,Go],en([Gt({type:Boolean})],rn.prototype,"disabled",2),en([Gt()],rn.prototype,"iconLeft",2),en([Gt()],rn.prototype,"iconRight",2),en([Gt()],rn.prototype,"onClick",2),en([Gt()],rn.prototype,"variant",2),rn=en([Qt("wcm-button")],rn);const on=p`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var nn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,sn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?an(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&nn(e,r,i),i};let ln=class extends Kt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":"secondary"===this.variant};return Ot`<button ?disabled="${this.disabled}" class="${oe(t)}"><slot></slot></button>`}};ln.styles=[Jo.globalCss,on],sn([Gt({type:Boolean})],ln.prototype,"disabled",2),sn([Gt()],ln.prototype,"variant",2),ln=sn([Qt("wcm-button-big")],ln);const cn=p`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var dn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor;let un=class extends Kt{render(){return Ot`<div><slot></slot></div>`}};un.styles=[Jo.globalCss,cn],un=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?hn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&dn(e,r,i),i})([Qt("wcm-info-footer")],un);const mn={CROSS_ICON:It`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:It`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:It`<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:It`<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:It`<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:It`<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:It`<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:It`<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:It`<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:It`<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:It`<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:It`<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:It`<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:It`<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:It`<svg width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z" fill="#fff"/></svg>`,SEARCH_ICON:It`<svg width="20" height="21"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" fill="#949E9E"/></svg>`,WALLET_PLACEHOLDER:It`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,GLOBE_ICON:It`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`},pn=p`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var gn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor;let fn=class extends Kt{render(){return Ot`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${mn.WALLET_CONNECT_LOGO} <button @click="${e.close}">${mn.CROSS_ICON}</button></div>`}};fn.styles=[Jo.globalCss,pn],fn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?wn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gn(e,r,i),i})([Qt("wcm-modal-backcard")],fn);const vn=p`main{padding:20px;padding-top:0;width:100%}`;var bn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor;let xn=class extends Kt{render(){return Ot`<main><slot></slot></main>`}};xn.styles=[Jo.globalCss,vn],xn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?yn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bn(e,r,i),i})([Qt("wcm-modal-content")],xn);const $n=p`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var An=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor;let _n=class extends Kt{render(){return Ot`<footer><slot></slot></footer>`}};_n.styles=[Jo.globalCss,$n],_n=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Cn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&An(e,r,i),i})([Qt("wcm-modal-footer")],_n);const En=p`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var kn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,In=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?On(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&kn(e,r,i),i};let Mn=class extends Kt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return Ot`<button class="wcm-back-btn" @click="${r.goBack}">${mn.BACK_ICON}</button>`}actionBtnTemplate(){return Ot`<button class="wcm-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const t={"wcm-border":this.border},e=r.state.history.length>1,o=this.title?Ot`<wcm-text variant="big-bold">${this.title}</wcm-text>`:Ot`<slot></slot>`;return Ot`<header class="${oe(t)}">${e?this.backBtnTemplate():null} ${o} ${this.onAction?this.actionBtnTemplate():null}</header>`}};Mn.styles=[Jo.globalCss,En],In([Gt()],Mn.prototype,"title",2),In([Gt()],Mn.prototype,"onAction",2),In([Gt()],Mn.prototype,"actionIcon",2),In([Gt({type:Boolean})],Mn.prototype,"border",2),Mn=In([Qt("wcm-modal-header")],Mn);const Tn={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=l.state;return null!=r&&r[t]?r[t]:e?o.getWalletImageUrl(e):""},getWalletName:(t,e=!1)=>e&&t.length>8?`${t.substring(0,8)}..`:t,isMobileAnimation:()=>window.innerWidth<=Tn.MOBILE_BREAKPOINT,async preloadImage(t){const e=new Promise(((e,r)=>{const o=new Image;o.onload=e,o.onerror=r,o.crossOrigin="anonymous",o.src=t}));return Promise.race([e,n.wait(3e3)])},getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let r;return(...o)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...o)}),e)}},handleMobileLinking(t){const{walletConnectUri:e}=s.state,{mobile:r,name:o}=t,i=r?.native,a=r?.universal;Tn.setRecentWallet(t),e&&function(t){let e="";i?e=n.formatUniversalUrl(i,t,o):a&&(e=n.formatNativeUrl(a,t,o)),n.openHref(e,"_self")}(e)},handleAndroidLinking(){const{walletConnectUri:t}=s.state;t&&(n.setWalletConnectAndroidDeepLink(t),n.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=s.state;if(t)try{await navigator.clipboard.writeText(t),i.openToast("Link copied","success")}catch{i.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=l.state,e=Object.values(t??{});return Object.values(e)},truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,setRecentWallet(t){try{localStorage.setItem(Tn.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(Tn.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(t,e)=>t.toUpperCase().includes(e.toUpperCase()),openWalletExplorerUrl(){n.openHref(Tn.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=n.getWalletRouterData(),r=Boolean(t?.native),o=Boolean(t?.universal);return{isDesktop:r,isMobile:Boolean(e?.native)||Boolean(e?.universal),isWeb:o}},goToConnectingView(t){r.setData({Wallet:t});const e=n.isMobile(),{isDesktop:o,isWeb:i,isMobile:a}=Tn.getCachedRouterWalletPlatforms();e?a?r.push("MobileConnecting"):i?r.push("WebConnecting"):r.push("InstallWallet"):o?r.push("DesktopConnecting"):i?r.push("WebConnecting"):a?r.push("MobileQrcodeConnecting"):r.push("InstallWallet")}},Pn=p`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var Rn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Nn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Sn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Rn(e,r,i),i};let Ln=class extends Kt{constructor(){super(),this.view=r.state.view,this.prevView=r.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=r.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&mr(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),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 Tn.getShadowRootElement(this,".wcm-router")}get contentEl(){return Tn.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return Ot`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case"DesktopConnecting":return Ot`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case"MobileConnecting":return Ot`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case"WebConnecting":return Ot`<wcm-web-connecting-view></wcm-web-connecting-view>`;case"MobileQrcodeConnecting":return Ot`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case"WalletExplorer":return Ot`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case"Qrcode":return Ot`<wcm-qrcode-view></wcm-qrcode-view>`;case"InstallWallet":return Ot`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return Ot`<div>Not Found</div>`}}async onChangeRoute(){await mr(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=r.state.view,mr(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return Ot`<div class="wcm-router"><div class="wcm-content">${this.viewTemplate()}</div></div>`}};Ln.styles=[Jo.globalCss,Pn],Nn([Xt()],Ln.prototype,"view",2),Nn([Xt()],Ln.prototype,"prevView",2),Ln=Nn([Qt("wcm-modal-router")],Ln);const Bn=p`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var Dn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Wn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Un(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Dn(e,r,i),i};let jn=class extends Kt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=i.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>i.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),i.closeToast()}render(){const{message:t,variant:e}=i.state,r={"wcm-success":"success"===e,"wcm-error":"error"===e};return this.open?Ot`<div class="${oe(r)}">${"success"===e?mn.CHECKMARK_ICON:null} ${"error"===e?mn.CROSS_ICON:null}<wcm-text variant="small-regular">${t}</wcm-text></div>`:null}};jn.styles=[Jo.globalCss,Bn],Wn([Xt()],jn.prototype,"open",2),jn=Wn([Qt("wcm-modal-toast")],jn);function Hn(t,e,r){return t!==e&&(t-e<0?e-t:t-e)<=r+.1}const zn={generate(t,e,r){const o="#141414",n=[],i=function(t,e){const r=Array.prototype.slice.call(gr.create(t,{errorCorrectionLevel:e}).modules.data,0),o=Math.sqrt(r.length);return r.reduce(((t,e,r)=>(r%o==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t,"Q"),a=e/i.length,s=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];s.forEach((({x:t,y:e})=>{const r=(i.length-7)*a*t,l=(i.length-7)*a*e;for(let t=0;t<s.length;t+=1){const e=a*(7-2*t);n.push(It`<rect fill="${t%2==0?o:"#ffffff"}" height="${e}" rx="${.45*e}" ry="${.45*e}" width="${e}" x="${r+a*t}" y="${l+a*t}">`)}}));const l=Math.floor((r+25)/a),c=i.length/2-l/2,d=i.length/2+l/2-1,h=[];i.forEach(((t,e)=>{t.forEach(((t,r)=>{if(i[e][r]&&!(e<7&&r<7||e>i.length-8&&r<7||e<7&&r>i.length-8)&&!(e>c&&e<d&&r>c&&r<d)){const t=e*a+a/2,o=r*a+a/2;h.push([t,o])}}))}));const u={};return h.forEach((([t,e])=>{u[t]?u[t].push(e):u[t]=[e]})),Object.entries(u).map((([t,e])=>{const r=e.filter((t=>e.every((e=>!Hn(t,e,a)))));return[Number(t),r]})).forEach((([t,e])=>{e.forEach((e=>{n.push(It`<circle cx="${t}" cy="${e}" fill="${o}" r="${a/2.5}">`)}))})),Object.entries(u).filter((([t,e])=>e.length>1)).map((([t,e])=>{const r=e.filter((t=>e.some((e=>Hn(t,e,a)))));return[Number(t),r]})).map((([t,e])=>{e.sort(((t,e)=>t<e?-1:1));const r=[];for(const t of e){const e=r.find((e=>e.some((e=>Hn(t,e,a)))));e?e.push(t):r.push([t])}return[t,r.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,r])=>{n.push(It`<line x1="${t}" x2="${t}" y1="${e}" y2="${r}" stroke="${o}" stroke-width="${a/1.25}" stroke-linecap="round">`)}))})),n}},Zn=p`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Fn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,qn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Vn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Fn(e,r,i),i};let Kn=class extends Kt{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e="light"===t.state.themeMode?this.size:this.size-36;return It`<svg height="${e}" width="${e}">${zn.generate(this.uri,e,e/4)}</svg>`}render(){const e={"wcm-dark":"dark"===t.state.themeMode};return Ot`<div style="${`width: ${this.size}px`}" class="${oe(e)}">${this.walletId||this.imageUrl?Ot`<wcm-wallet-image walletId="${pr(this.walletId)}" imageId="${pr(this.imageId)}" imageUrl="${pr(this.imageUrl)}"></wcm-wallet-image>`:mn.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};Kn.styles=[Jo.globalCss,Zn],qn([Gt()],Kn.prototype,"uri",2),qn([Gt({type:Number})],Kn.prototype,"size",2),qn([Gt()],Kn.prototype,"imageId",2),qn([Gt()],Kn.prototype,"walletId",2),qn([Gt()],Kn.prototype,"imageUrl",2),Kn=qn([Qt("wcm-qrcode")],Kn);const Yn=p`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Gn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Jn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Qn(e,r,i),i};let Xn=class extends Kt{constructor(){super(...arguments),this.onChange=()=>null}render(){return Ot`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${mn.SEARCH_ICON}`}};Xn.styles=[Jo.globalCss,Yn],Gn([Gt()],Xn.prototype,"onChange",2),Xn=Gn([Qt("wcm-search-input")],Xn);const ti=p`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var ei=Object.defineProperty,ri=Object.getOwnPropertyDescriptor;let oi=class extends Kt{render(){return Ot`<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>`}};oi.styles=[Jo.globalCss,ti],oi=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?ri(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ei(e,r,i),i})([Qt("wcm-spinner")],oi);const ni=p`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var ii=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,si=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?ai(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ii(e,r,i),i};let li=class extends Kt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return Ot`<span><slot class="${oe(t)}"></slot></span>`}};li.styles=[Jo.globalCss,ni],si([Gt()],li.prototype,"variant",2),si([Gt()],li.prototype,"color",2),li=si([Qt("wcm-text")],li);const ci=p`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var di=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,ui=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?hi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&di(e,r,i),i};let mi=class extends Kt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?Ot`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>`:this.installed?Ot`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>`:null}handleClick(){a.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return Ot`<button @click="${this.handleClick.bind(this)}"><div><wcm-wallet-image walletId="${this.walletId}" imageId="${pr(this.imageId)}"></wcm-wallet-image><wcm-text variant="xsmall-regular">${null!=(t=this.label)?t:Tn.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};mi.styles=[Jo.globalCss,ci],ui([Gt()],mi.prototype,"onClick",2),ui([Gt()],mi.prototype,"name",2),ui([Gt()],mi.prototype,"walletId",2),ui([Gt()],mi.prototype,"label",2),ui([Gt()],mi.prototype,"imageId",2),ui([Gt({type:Boolean})],mi.prototype,"installed",2),ui([Gt({type:Boolean})],mi.prototype,"recent",2),mi=ui([Qt("wcm-wallet-button")],mi);const pi=p`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var gi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,fi=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?wi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gi(e,r,i),i};let vi=class extends Kt{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=null!=(t=this.imageUrl)&&t.length?this.imageUrl:Tn.getWalletIcon({id:this.walletId,image_id:this.imageId});return Ot`${e.length?Ot`<div><img crossorigin="anonymous" src="${e}" alt="${this.id}"></div>`:mn.WALLET_PLACEHOLDER}`}};vi.styles=[Jo.globalCss,pi],fi([Gt()],vi.prototype,"walletId",2),fi([Gt()],vi.prototype,"imageId",2),fi([Gt()],vi.prototype,"imageUrl",2),vi=fi([Qt("wcm-wallet-image")],vi);var bi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,xi=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?yi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bi(e,r,i),i};let $i=class extends Kt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{null!=t&&t.length&&await Promise.all(t.map((async t=>Tn.preloadImage(t))))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(l.state.enableExplorer){await o.getRecomendedWallets(),s.setIsDataLoaded(!0);const{recomendedWallets:t}=o.state,e=t.map((t=>Tn.getWalletIcon(t)));await this.loadImages(e)}else s.setIsDataLoaded(!0)}async preloadCustomImages(){const t=Tn.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),i.openToast("Failed preloading","error")}}};xi([Xt()],$i.prototype,"preload",2),$i=xi([Qt("wcm-explorer-context")],$i);var Ai=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor;let _i=class extends Kt{constructor(){super(),this.unsubscribeTheme=void 0,Jo.setTheme(),this.unsubscribeTheme=t.subscribe(Jo.setTheme)}disconnectedCallback(){var t;null==(t=this.unsubscribeTheme)||t.call(this)}};_i=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ci(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ai(e,r,i),i})([Qt("wcm-theme-context")],_i);const Ei=p`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var ki=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor;let Ii=class extends Kt{onGoToQrcode(){r.push("Qrcode")}render(){const{recomendedWallets:t}=o.state,e=[...t,...t],r=2*n.RECOMMENDED_WALLET_AMOUNT;return Ot`<wcm-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${mn.QRCODE_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-title">${mn.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">${[...Array(r)].map(((t,r)=>{const o=e[r%e.length];return o?Ot`<wcm-wallet-image walletId="${o.id}" imageId="${o.image_id}"></wcm-wallet-image>`:mn.WALLET_PLACEHOLDER}))}</div><wcm-button-big @click="${Tn.handleAndroidLinking}"><wcm-text variant="medium-regular" color="inverse">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};Ii.styles=[Jo.globalCss,Ei],Ii=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Oi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ki(e,r,i),i})([Qt("wcm-android-wallet-selection")],Ii);const Mi=p`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Ti=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,Ri=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Pi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ti(e,r,i),i};let Si=class extends Kt{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,r;const o=null!=(r=null==(e=t.state.themeVariables)?void 0:e["--wcm-wallet-icon-large-border-radius"])?r:Jo.getPreset("--wcm-wallet-icon-large-border-radius");let n=0;n=o.includes("%")?.88*parseInt(o,10):parseInt(o,10),n*=1.17;return Ot`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="${n}"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ${317-1.57*n}" stroke-dashoffset="${425-1.8*n}"></use></svg>`}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return Ot`<div class="${oe(t)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${pr(this.walletId)}" imageId="${pr(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</wcm-text>`}};Si.styles=[Jo.globalCss,Mi],Ri([Gt()],Si.prototype,"walletId",2),Ri([Gt()],Si.prototype,"imageId",2),Ri([Gt({type:Boolean})],Si.prototype,"isError",2),Ri([Gt({type:Boolean})],Si.prototype,"isStale",2),Ri([Gt()],Si.prototype,"label",2),Si=Ri([Qt("wcm-connector-waiting")],Si);const Ni={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:o}=l.state,i=null==(t=Ni.recentWallet())?void 0:t.id,a=n.isMobile()?r:o,s=a?.filter((t=>i!==t.id));return null!=(e=n.isMobile()?s?.map((({id:t,name:e,links:r})=>({id:t,name:e,mobile:r,links:r}))):s?.map((({id:t,name:e,links:r})=>({id:t,name:e,desktop:r,links:r}))))?e:[]},recentWallet:()=>Tn.getRecentWallet(),recomendedWallets(t=!1){var e;const r=t||null==(e=Ni.recentWallet())?void 0:e.id,{recomendedWallets:n}=o.state;return n.filter((t=>r!==t.id))}},Li={onConnecting(t){Tn.goToConnectingView(t)},manualWalletsTemplate(){return Ni.manualWallets().map((t=>Ot`<wcm-wallet-button walletId="${t.id}" name="${t.name}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`))},recomendedWalletsTemplate(t=!1){return Ni.recomendedWallets(t).map((t=>Ot`<wcm-wallet-button name="${t.name}" walletId="${t.id}" imageId="${t.image_id}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`))},recentWalletTemplate(){const t=Ni.recentWallet();if(t)return Ot`<wcm-wallet-button name="${t.name}" walletId="${t.id}" imageId="${pr(t.image_id)}" .recent="${!0}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`}},Bi=p`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var Di=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor;let Wi=class extends Kt{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=l.state,r="ALL"!==t&&e,o=Li.manualWalletsTemplate(),n=Li.recomendedWalletsTemplate();let i=[Li.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);const a=i.length>4||r;let s=[];s=a?i.slice(0,3):i;const c=Boolean(s.length);return Ot`<wcm-modal-header .border="${!0}" title="Connect your wallet" .onAction="${Tn.handleUriCopy}" .actionIcon="${mn.COPY_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">${mn.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">${mn.SCAN_ICON}<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${c?Ot`<wcm-modal-footer><div class="wcm-desktop-title">${mn.DESKTOP_ICON}<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">${s} ${a?Ot`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};Wi.styles=[Jo.globalCss,Bi],Wi=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ui(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Di(e,r,i),i})([Qt("wcm-desktop-wallet-selection")],Wi);const ji=p`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var Hi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor;let Zi=class extends Kt{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=l.state;return t??e?Ot`<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${t?Ot`<a href="${t}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${t&&e?"and":null} ${e?Ot`<a href="${e}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</wcm-text></div>`:null}};Zi.styles=[Jo.globalCss,ji],Zi=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?zi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Hi(e,r,i),i})([Qt("wcm-legal-notice")],Zi);const Fi=p`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Vi=Object.defineProperty,qi=Object.getOwnPropertyDescriptor;let Ki=class extends Kt{onQrcode(){r.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=l.state,r="ALL"!==t&&e,o=Li.manualWalletsTemplate(),n=Li.recomendedWalletsTemplate();let i=[Li.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);const a=i.length>8||r;let s=[];s=a?i.slice(0,7):i;const c=Boolean(s.length);return Ot`<wcm-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${mn.QRCODE_ICON}"></wcm-modal-header>${c?Ot`<wcm-modal-content><div>${s} ${a?Ot`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};Ki.styles=[Jo.globalCss,Fi],Ki=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?qi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Vi(e,r,i),i})([Qt("wcm-mobile-wallet-selection")],Ki);const Yi=p`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Qi=Object.defineProperty,Ji=Object.getOwnPropertyDescriptor,Gi=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ji(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Qi(e,r,i),i};let Xi=class extends Kt{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=e.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var t;null==(t=this.unsubscribeModal)||t.call(this)}get overlayEl(){return Tn.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Tn.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){if(document.querySelector("body"))if(t){const t=document.getElementById("wcm-styles");t?.remove()}else document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>')}onCloseModal(t){t.target===t.currentTarget&&e.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const t=Tn.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([mr(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,mr(this.containerEl,t,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=Tn.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([mr(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,mr(this.containerEl,t,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(t=>{var r;"Escape"===t.key?e.close():"Tab"===t.key&&(null!=(r=t.target)&&r.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;null==(t=this.abortController)||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return Ot`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${oe(t)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open?Ot`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};Xi.styles=[Jo.globalCss,Yi],Gi([Xt()],Xi.prototype,"open",2),Gi([Xt()],Xi.prototype,"active",2),Xi=Gi([Qt("wcm-modal")],Xi);const ta=p`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var ea=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?ra(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ea(e,r,i),i};let na=class extends Kt{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){n.isMobile()?r.replace("MobileConnecting"):r.replace("MobileQrcodeConnecting")}onDesktop(){r.replace("DesktopConnecting")}onWeb(){r.replace("WebConnecting")}render(){return Ot`<div>${this.isRetry?Ot`<slot></slot>`:null} ${this.isMobile?Ot`<wcm-button .onClick="${this.onMobile}" .iconLeft="${mn.MOBILE_ICON}" variant="outline">Mobile</wcm-button>`:null} ${this.isDesktop?Ot`<wcm-button .onClick="${this.onDesktop}" .iconLeft="${mn.DESKTOP_ICON}" variant="outline">Desktop</wcm-button>`:null} ${this.isWeb?Ot`<wcm-button .onClick="${this.onWeb}" .iconLeft="${mn.GLOBE_ICON}" variant="outline">Web</wcm-button>`:null}</div>`}};na.styles=[Jo.globalCss,ta],oa([Gt({type:Boolean})],na.prototype,"isMobile",2),oa([Gt({type:Boolean})],na.prototype,"isDesktop",2),oa([Gt({type:Boolean})],na.prototype,"isWeb",2),oa([Gt({type:Boolean})],na.prototype,"isRetry",2),na=oa([Qt("wcm-platform-selection")],na);const ia=p`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var aa=Object.defineProperty,sa=Object.getOwnPropertyDescriptor;let la=class extends Kt{onClick(){r.push("WalletExplorer")}render(){const{recomendedWallets:t}=o.state,e=[...t,...Ni.manualWallets()].reverse().slice(0,4);return Ot`<button @click="${this.onClick}"><div class="wcm-icons">${e.map((t=>{const e=Tn.getWalletIcon(t);if(e)return Ot`<img crossorigin="anonymous" src="${e}">`;const r=Tn.getWalletIcon({id:t.id});return r?Ot`<img crossorigin="anonymous" src="${r}">`:mn.WALLET_PLACEHOLDER}))} ${[...Array(4-e.length)].map((()=>mn.WALLET_PLACEHOLDER))}</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>`}};la.styles=[Jo.globalCss,ia],la=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?sa(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&aa(e,r,i),i})([Qt("wcm-view-all-wallets-button")],la);const ca=p`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,ua=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?ha(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&da(e,r,i),i};let ma=class extends Kt{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:t}=s.state;this.uri=t}),0)}get overlayEl(){return Tn.getShadowRootElement(this,".wcm-qr-container")}render(){return Ot`<div class="wcm-qr-container">${this.uri?Ot`<wcm-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${pr(this.walletId)}" imageId="${pr(this.imageId)}"></wcm-qrcode>`:Ot`<wcm-spinner></wcm-spinner>`}</div>`}};ma.styles=[Jo.globalCss,ca],ua([Gt()],ma.prototype,"walletId",2),ua([Gt()],ma.prototype,"imageId",2),ua([Xt()],ma.prototype,"uri",2),ma=ua([Qt("wcm-walletconnect-qr")],ma);var pa=Object.defineProperty,ga=Object.getOwnPropertyDescriptor;let wa=class extends Kt{viewTemplate(){return n.isAndroid()?Ot`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:n.isMobile()?Ot`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:Ot`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return Ot`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};wa.styles=[Jo.globalCss],wa=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?ga(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pa(e,r,i),i})([Qt("wcm-connect-wallet-view")],wa);const fa=p`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var va=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,ya=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?ba(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&va(e,r,i),i};let xa=class extends Kt{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=n.getWalletRouterData(),o=e?.native;if(o){const e=n.formatNativeUrl(o,t,r);n.openHref(e,"_self")}}openDesktopApp(){const{walletConnectUri:t}=s.state,e=n.getWalletRouterData();Tn.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=n.getWalletRouterData(),{isMobile:o,isWeb:i}=Tn.getCachedRouterWalletPlatforms();return Ot`<wcm-modal-header title="${t}" .onAction="${Tn.handleUriCopy}" .actionIcon="${mn.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${pr(r)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Connection can continue loading if ${t} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile="${o}" .isWeb="${i}" .isRetry="${!0}"><wcm-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${mn.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};xa.styles=[Jo.globalCss,fa],ya([Xt()],xa.prototype,"isError",2),xa=ya([Qt("wcm-desktop-connecting-view")],xa);const $a=p`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var Aa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor;let _a=class extends Kt{onInstall(t){t&&n.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:o}=n.getWalletRouterData();return Ot`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${pr(r)}" label="Not Detected" .isStale="${!0}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}</wcm-text><wcm-button .onClick="${()=>this.onInstall(o)}" .iconLeft="${mn.ARROW_DOWN_ICON}">Download</wcm-button></wcm-info-footer>`}};_a.styles=[Jo.globalCss,$a],_a=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ca(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Aa(e,r,i),i})([Qt("wcm-install-wallet-view")],_a);const Ea=p`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var ka=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Ia=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Oa(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ka(e,r,i),i};let Ma=class extends Kt{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:o}=n.getWalletRouterData(),i=r?.native,a=r?.universal;if(i&&!e){const e=n.formatNativeUrl(i,t,o);n.openHref(e,"_self")}else if(a){const e=n.formatUniversalUrl(a,t,o);n.openHref(e,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=s.state,r=n.getWalletRouterData();Tn.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&n.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:o,mobile:i}=n.getWalletRouterData(),{isWeb:a}=Tn.getCachedRouterWalletPlatforms(),s=o?.ios,l=i?.universal;return Ot`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${pr(r)}" label="Tap 'Open' to continue…" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="${a}" .isRetry="${!0}"><wcm-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${mn.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection>${l?Ot`<wcm-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="${e}" imageId="${pr(r)}"></wcm-wallet-image><wcm-text>${`Get ${t}`}</wcm-text></div><wcm-button .iconRight="${mn.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(s)}" variant="ghost">App Store</wcm-button></wcm-info-footer>`}};Ma.styles=[Jo.globalCss,Ea],Ia([Xt()],Ma.prototype,"isError",2),Ma=Ia([Qt("wcm-mobile-connecting-view")],Ma);const Ta=p`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Pa=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor;let Sa=class extends Kt{render(){const{name:t,id:e,image_id:r}=n.getWalletRouterData(),{isDesktop:o,isWeb:i}=Tn.getCachedRouterWalletPlatforms();return Ot`<wcm-modal-header title="${t}" .onAction="${Tn.handleUriCopy}" .actionIcon="${mn.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="${e}" imageId="${pr(r)}"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${t} app`}</wcm-text><wcm-platform-selection .isDesktop="${o}" .isWeb="${i}"></wcm-platform-selection></wcm-info-footer>`}};Sa.styles=[Jo.globalCss,Ta],Sa=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ra(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Pa(e,r,i),i})([Qt("wcm-mobile-qr-connecting-view")],Sa);var Na=Object.defineProperty,La=Object.getOwnPropertyDescriptor;let Ba=class extends Kt{render(){return Ot`<wcm-modal-header title="Scan the code" .onAction="${Tn.handleUriCopy}" .actionIcon="${mn.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};Ba.styles=[Jo.globalCss],Ba=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?La(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Na(e,r,i),i})([Qt("wcm-qrcode-view")],Ba);const Da=p`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Ua=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,ja=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Wa(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ua(e,r,i),i};let Ha=class extends Kt{constructor(){super(...arguments),this.loading=!o.state.wallets.listings.length,this.firstFetch=!o.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Tn.debounce((t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,o.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),o.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return Tn.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([t])=>{t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=o.state,{listings:r,total:n}=this.search?e:t;return n<=40||r.length>=n}async fetchWallets(){var t;const{wallets:e,search:r}=o.state,{listings:a,total:l,page:c}=this.search?r:e;if(!this.endReached&&(this.firstFetch||l>40&&a.length<l))try{this.loading=!0;const e=null==(t=s.state.chains)?void 0:t.join(","),{listings:r}=await o.getWallets({page:this.firstFetch?1:c+1,entries:40,search:this.search,version:2,chains:e}),i=r.map((t=>Tn.getWalletIcon(t)));await Promise.all([...i.map((async t=>Tn.preloadImage(t))),n.wait(300)]),this.endReached=this.isLastPage()}catch(t){console.error(t),i.openToast(Tn.getErrorMessage(t),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){n.isAndroid()?Tn.handleMobileLinking(t):Tn.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=o.state,{listings:r}=this.search?e:t,n=this.loading&&!r.length,i=this.search.length>=3;let a=Li.manualWalletsTemplate(),s=Li.recomendedWalletsTemplate(!0);i&&(a=a.filter((({values:t})=>Tn.caseSafeIncludes(t[0],this.search))),s=s.filter((({values:t})=>Tn.caseSafeIncludes(t[0],this.search))));const l=!this.loading&&!r.length&&!s.length,c={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":l};return Ot`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${oe(c)}"><div class="wcm-grid">${n?null:a} ${n?null:s} ${n?null:r.map((t=>Ot`${t?Ot`<wcm-wallet-button imageId="${t.image_id}" name="${t.name}" walletId="${t.id}" .onClick="${()=>this.onConnect(t)}"></wcm-wallet-button>`:null}`))}</div><div class="wcm-placeholder-block">${l?Ot`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>`:null} ${!l&&this.loading?Ot`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};Ha.styles=[Jo.globalCss,Da],ja([Xt()],Ha.prototype,"loading",2),ja([Xt()],Ha.prototype,"firstFetch",2),ja([Xt()],Ha.prototype,"search",2),ja([Xt()],Ha.prototype,"endReached",2),Ha=ja([Qt("wcm-wallet-explorer-view")],Ha);const za=p`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Za=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,Va=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Fa(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Za(e,r,i),i};let qa=class extends Kt{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=n.getWalletRouterData(),o=e?.universal;if(o){const e=n.formatUniversalUrl(o,t,r);n.openHref(e,"_blank")}}openWebWallet(){const{walletConnectUri:t}=s.state,e=n.getWalletRouterData();Tn.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=n.getWalletRouterData(),{isMobile:o,isDesktop:i}=Tn.getCachedRouterWalletPlatforms(),a=n.isMobile();return Ot`<wcm-modal-header title="${t}" .onAction="${Tn.handleUriCopy}" .actionIcon="${mn.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${pr(r)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile="${o}" .isDesktop="${!a&&i}" .isRetry="${!0}"><wcm-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${mn.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};qa.styles=[Jo.globalCss,za],Va([Xt()],qa.prototype,"isError",2),qa=Va([Qt("wcm-web-connecting-view")],qa);export{Xi as WcmModal,Kn as WcmQrCode};
@@ -0,0 +1 @@
1
+ import{g as a}from"./index-9a2fe895.js";import{C as r,E as e,a as s,F as t,b as o,P as n,c as i,A as c,d as m,I as d,f,e as p,L as F,T as g}from"./interface-04b0d44b.js";var b=a(Object.freeze({__proto__:null,ConstructorFragment:r,ErrorFragment:e,EventFragment:s,Fragment:t,FunctionFragment:o,ParamType:n,FormatTypes:i,AbiCoder:c,defaultAbiCoder:m,Interface:d,Indexed:f,checkResultErrors:p,LogDescription:F,TransactionDescription:g}));export{b as r};