1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[696],{74412:function(e){"use strict";e.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var i=0;i<e.length;i++){var r=e.charAt(i),a=r.charCodeAt(0);if(255!==t[a])throw TypeError(r+" is ambiguous");t[a]=i}var o=e.length,s=e.charAt(0),l=Math.log(o)/Math.log(256),c=Math.log(256)/Math.log(o);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var n=0,i=0,r=0;e[n]===s;)i++,n++;for(var a=(e.length-n)*l+1>>>0,c=new Uint8Array(a);e[n];){var d=e.charCodeAt(n);if(d>255)return;var u=t[d];if(255===u)return;for(var h=0,f=a-1;(0!==u||h<r)&&-1!==f;f--,h++)u+=o*c[f]>>>0,c[f]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");r=h,n++}for(var g=a-r;g!==a&&0===c[g];)g++;for(var p=new Uint8Array(i+(a-g)),w=i;g!==a;)p[w++]=c[g++];return p}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,i=0,r=0,a=t.length;r!==a&&0===t[r];)r++,n++;for(var l=(a-r)*c+1>>>0,d=new Uint8Array(l);r!==a;){for(var u=t[r],h=0,f=l-1;(0!==u||h<i)&&-1!==f;f--,h++)u+=256*d[f]>>>0,d[f]=u%o>>>0,u=u/o>>>0;if(0!==u)throw Error("Non-zero carry");i=h,r++}for(var g=l-i;g!==l&&0===d[g];)g++;for(var p=s.repeat(n);g<l;++g)p+=e.charAt(d[g]);return p},decodeUnsafe:d,decode:function(e){var t=d(e);if(t)return t;throw Error("Non-base"+o+" character")}}}},95588:function(e,t,n){let i=n(74412);e.exports=i("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},84848:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,i){var r,a,o,s,l,c,d,u={},h={};h[n]=0;var f=t.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(o in a=(r=f.pop()).value,s=r.cost,l=e[a]||{})l.hasOwnProperty(o)&&(c=s+l[o],d=h[o],(void 0===h[o]||d>c)&&(h[o]=c,f.push(o,c),u[o]=a));if(void 0!==i&&void 0===h[i])throw Error(["Could not find a path from ",n," to ",i,"."].join(""));return u},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],i=t;i;)n.push(i),e[i],i=e[i];return n.reverse(),n},find_path:function(e,n,i){var r=t.single_source_shortest_paths(e,n,i);return t.extract_shortest_path_from_predecessor_list(r,i)},PriorityQueue:{make:function(e){var n,i=t.PriorityQueue,r={};for(n in e=e||{},i)i.hasOwnProperty(n)&&(r[n]=i[n]);return r.queue=[],r.sorter=e.sorter||i.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},64070:function(e,t,n){"use strict";n.d(t,{default:function(){return r.a}});var i=n(23842),r=n.n(i)},23842:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=n(11926);n(27573),n(7653);let r=i._(n(58379));function a(e,t){var n;let i={loading:e=>{let{error:t,isLoading:n,pastDelay:i}=e;return null}};"function"==typeof e&&(i.loader=e);let a={...i,...t};return(0,r.default)({...a,modules:null==(n=a.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42972:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let i=n(20951);function r(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new i.BailoutToCSRError(t);return n}},58379:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let i=n(27573),r=n(7653),a=n(42972),o=n(69111);function s(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(e){let t={...l,...e},n=(0,r.lazy)(()=>t.loader().then(s)),c=t.loading;function d(e){let s=c?(0,i.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,l=t.ssr?(0,i.jsxs)(i.Fragment,{children:["undefined"==typeof window?(0,i.jsx)(o.PreloadCss,{moduleIds:t.modules}):null,(0,i.jsx)(n,{...e})]}):(0,i.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,i.jsx)(n,{...e})});return(0,i.jsx)(r.Suspense,{fallback:s,children:l})}return d.displayName="LoadableComponent",d}},69111:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return a}});let i=n(27573),r=n(92399);function a(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,r.getExpectedRequestStore)("next/dynamic css"),a=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));a.push(...t)}}return 0===a.length?null:(0,i.jsx)(i.Fragment,{children:a.map(e=>(0,i.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},38842:function(e,t,n){let i=n(73562),r=n(68438),a=n(99870),o=n(3829);function s(e,t,n,a,o){let s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!i())throw Error("Callback required as last argument");if(c){if(l<2)throw Error("Too few arguments provided");2===l?(o=n,n=t,t=a=void 0):3===l&&(t.getContext&&void 0===o?(o=a,a=void 0):(o=a,a=n,n=t,t=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(n=t,t=a=void 0):2!==l||t.getContext||(a=n,n=t,t=void 0),new Promise(function(i,o){try{let o=r.create(n,a);i(e(o,t,a))}catch(e){o(e)}})}try{let i=r.create(n,a);o(null,e(i,t,a))}catch(e){o(e)}}t.create=r.create,t.toCanvas=s.bind(null,a.render),t.toDataURL=s.bind(null,a.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return o.render(e,n)})},73562:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},16599:function(e,t,n){let i=n(8583).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,n=i(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-r;return a.push(6),a.reverse()},t.getPositions=function(e){let n=[],i=t.getRowColCoords(e),r=i.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)(0!==e||0!==t)&&(0!==e||t!==r-1)&&(e!==r-1||0!==t)&&n.push([i[e],i[t]]);return n}},13607:function(e,t,n){let i=n(91406),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=i.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*r.indexOf(this.data[t]);n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},e.exports=a},89203:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},52745:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,i){let r=e*this.size+t;this.data[r]=n,i&&(this.reservedBit[r]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},3739:function(e,t,n){let i=n(91406);function r(e){this.mode=i.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=r},69881:function(e,t,n){let i=n(31905),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[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,
1192,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];t.getBlocksCount=function(e,t){switch(t){case i.L:return r[(e-1)*4+0];case i.M:return r[(e-1)*4+1];case i.Q:return r[(e-1)*4+2];case i.H:return r[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case i.L:return a[(e-1)*4+0];case i.M:return a[(e-1)*4+1];case i.Q:return a[(e-1)*4+2];case i.H:return a[(e-1)*4+3];default:return}}},31905:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},74752:function(e,t,n){let i=n(8583).getSymbolSize;t.getPositions=function(e){let t=i(e);return[[0,0],[t-7,0],[0,t-7]]}},15716:function(e,t,n){let i=n(8583),r=i.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;i.getBCHDigit(a)-r>=0;)a^=1335<<i.getBCHDigit(a)-r;return(n<<10|a)^21522}},95970:function(e,t){let n=new Uint8Array(512),i=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,i[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return i[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[i[e]+i[t]]}},23171:function(e,t,n){let i=n(91406),r=n(8583);function a(e){this.mode=i.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},e.exports=a},38199:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,i=0,r=0,a=0,o=null,s=null;for(let l=0;l<t;l++){r=a=0,o=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===o?r++:(r>=5&&(i+=n.N1+(r-5)),o=t,r=1),(t=e.get(c,l))===s?a++:(a>=5&&(i+=n.N1+(a-5)),s=t,a=1)}r>=5&&(i+=n.N1+(r-5)),a>=5&&(i+=n.N1+(a-5))}return i},t.getPenaltyN2=function(e){let t=e.size,i=0;for(let n=0;n<t-1;n++)for(let r=0;r<t-1;r++){let t=e.get(n,r)+e.get(n,r+1)+e.get(n+1,r)+e.get(n+1,r+1);(4===t||0===t)&&i++}return i*n.N2},t.getPenaltyN3=function(e){let t=e.size,i=0,r=0,a=0;for(let n=0;n<t;n++){r=a=0;for(let o=0;o<t;o++)r=r<<1&2047|e.get(n,o),o>=10&&(1488===r||93===r)&&i++,a=a<<1&2047|e.get(o,n),o>=10&&(1488===a||93===a)&&i++}return i*n.N3},t.getPenaltyN4=function(e){let t=0,i=e.data.length;for(let n=0;n<i;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/i/5)-10)*n.N4},t.applyMask=function(e,n){let i=n.size;for(let r=0;r<i;r++)for(let a=0;a<i;a++)n.isReserved(a,r)||n.xor(a,r,function(e,n,i){switch(e){case t.Patterns.PATTERN000:return(n+i)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(n+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return n*i%2+n*i%3==0;case t.Patterns.PATTERN110:return(n*i%2+n*i%3)%2==0;case t.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,a,r))},t.getBestMask=function(e,n){let i=Object.keys(t.Patterns).length,r=0,a=1/0;for(let o=0;o<i;
vendor: 21,174 bytes, line 1
1o++){n(o),t.applyMask(o,e);let i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),i<a&&(a=i,r=o)}return r}},91406:function(e,t,n){let i=n(17292),r=n(8950);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(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!i.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.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(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw 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 Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},45740:function(e,t,n){let i=n(91406);function r(e){this.mode=i.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let i=this.data.length-t;i>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*i+1))},e.exports=r},44428:function(e,t,n){let i=n(95970);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let a=0;a<t.length;a++)n[r+a]^=i.mul(e[r],t[a]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let r=0;r<t.length;r++)n[r]^=i.mul(t[r],e);let r=0;for(;r<n.length&&0===n[r];)r++;n=n.slice(r)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let r=0;r<e;r++)n=t.mul(n,new Uint8Array([1,i.exp(r)]));return n}},68438:function(e,t,n){let i=n(8583),r=n(31905),a=n(89203),o=n(52745),s=n(16599),l=n(74752),c=n(38199),d=n(69881),u=n(80294),h=n(69233),f=n(15716),g=n(91406),p=n(64056);function w(e,t,n){let i,r;let a=e.size,o=f.getEncodedBits(t,n);for(i=0;i<15;i++)r=(o>>i&1)==1,i<6?e.set(i,8,r,!0):i<8?e.set(i+1,8,r,!0):e.set(a-15+i,8,r,!0),i<8?e.set(8,a-i-1,r,!0):i<9?e.set(8,15-i-1+1,r,!0):e.set(8,15-i-1,r,!0);e.set(a-8,8,1,!0)}t.create=function(e,t){let n,f;if(void 0===e||""===e)throw Error("No input text");let m=r.M;return void 0!==t&&(m=r.from(t.errorCorrectionLevel,r.M),n=h.from(t.version),f=c.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),function(e,t,n,r){let f;if(Array.isArray(e))f=p.fromArray(e);else if("string"==typeof e){let i=t;if(!i){let t=p.rawSplit(e);i=h.getBestVersionForData(t,n)}f=p.fromString(e,i||40)}else throw Error("Invalid data");let m=h.getBestVersionForData(f,n);if(!m)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<m)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+m+".\n")}else t=m;let y=function(e,t,n){let r=new a;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(r)});let o=(i.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t))*8;for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);let s=(o-r.getLengthInBits())/8;for(let e=0;e<s;e++)r.put(e%2?17:236,8);return function(e,t,n){let r,a;let o=i.getSymbolTotalCodewords(t),s=o-d.getTotalCodewordsCount(t,n),l=d.getBlocksCount(t,n),c=o%l,h=l-c,f=Math.floor(o/l),g=Math.floor(s/l),p=g+1,w=f-g,m=new u(w),y=0,v=Array(l),M=Array(l),E=0,b=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?g:p;v[e]=b.slice(y,y+t),M[e]=m.encode(v[e]),y+=t,E=Math.max(E,t)}let S=new Uint8Array(o),N=0;for(r=0;r<E;r++)for(a=0;a<l;a++)r<v[a].length&&(S[N++]=v[a][r]);for(r=0;r<w;r++)for(a=0;a<l;a++)S[N++]=M[a][r];return S}(r,e,t)}(t,n,f),v=new o(i.getSymbolSize(t));return function(e,t){let n=e.size,i=l.getPositions(t);for(let t=0;t<i.length;t++){let r=i[t][0],a=i[t][1];for(let t=-1;t<=7;t++)if(!(r+t<=-1)&&!(n<=r+t))for(let i=-1;i<=7;i++)a+i<=-1||n<=a+i||(t>=0&&t<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===t||6===t)||t>=2&&t<=4&&i>=2&&i<=4?e.set(r+t,a+i,!0,!0):e.set(r+t,a+i,!1,!0))}}(v,t),function(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(v),function(e,t){let n=s.getPositions(t);for(let t=0;t<n.length;t++){let i=n[t][0],r=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(i+t,r+n,!0,!0):e.set(i+t,r+n,!1,!0)}}(v,t),w(v,n,0),t>=7&&function(e,t){let n,i,r;let a=e.size,o=h.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),i=t%3+a-8-3,r=(o>>t&1)==1,e.set(n,i,r,!0),e.set(i,n,r,!0)}(v,t),function(e,t){let n=e.size,i=-1,r=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(r,s-n)){let i=!1;o<t.length&&(i=(t[o]>>>a&1)==1),e.set(r,s-n,i),-1==--a&&(o++,a=7)}if((r+=i)<0||n<=r){r-=i,i=-i;break}}}(v,y),isNaN(r)&&(r=c.getBestMask(v,w.bind(null,v,n))),c.applyMask(r,v),w(v,n,r),{modules:v,version:t,errorCorrectionLevel:n,maskPattern:r,segments:f}}(e,n,m,f)}},80294:function(e,t,n){let i=n(44428);function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=i.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let e=new Uint8Array(this.degree);return e.set(n,r),e}return n},e.exports=r},8950:function(e,t){let n="[0-9]+",i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(i=i.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(i,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(r,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let a=RegExp("^"+i+"$"),o=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},64056:function(e,t,n){let i=n(91406),r=n(45740),a=n(13607),o=n(3739),s=n(23171),l=n(8950),c=n(8583),d=n(84848);function u(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){let i;let r=[];for(;null!==(i=e.exec(n));)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function f(e){let t,n;let r=h(l.NUMERIC,i.NUMERIC,e),a=h(l.ALPHANUMERIC,i.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=h(l.BYTE,i.BYTE,e),n=h(l.KANJI,i.KANJI,e)):(t=h(l.BYTE_KANJI,i.BYTE,e),n=[]),r.concat(a,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function g(e,t){switch(t){case i.NUMERIC:return r.getBitsLength(e);case i.ALPHANUMERIC:return a.getBitsLength(e);case i.KANJI:return s.getBitsLength(e);case i.BYTE:return o.getBitsLength(e)}}function p(e,t){let n;let l=i.getBestModeForData(e);if((n=i.from(t,l))!==i.BYTE&&n.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(e);case i.ALPHANUMERIC:return new a(e);case i.KANJI:return new s(e);case i.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},t.fromString=function(e,n){let r=function(e,t){let n={},r={start:{}},a=["start"];for(let o=0;o<e.length;o++){let s=e[o],l=[];for(let e=0;e<s.length;e++){let c=s[e],d=""+o+e;l.push(d),n[d]={node:c,lastCount:0},r[d]={};for(let e=0;e<a.length;e++){let o=a[e];n[o]&&n[o].node.mode===c.mode?(r[o][d]=g(n[o].lastCount+c.length,c.mode)-g(n[o].lastCount,c.mode),n[o].lastCount+=c.length):(n[o]&&(n[o].lastCount=c.length),r[o][d]=g(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,t))}}a=l}for(let e=0;e<a.length;e++)r[a[e]].end=0;return{map:r,table:n}}(function(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];switch(r.mode){case i.NUMERIC:t.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:t.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:t.push([r,{data:r.data,mode:i.BYTE,length:u(r.data)}]);break;case i.BYTE:t.push([{data:r.data,mode:i.BYTE,length:u(r.data)}])}}return t}(f(e,c.isKanjiModeEnabled())),n),a=d.find_path(r.map,"start","end"),o=[];for(let e=1;e<a.length-1;e++)o.push(r.table[a[e]].node);return t.fromArray(o.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(f(e,c.isKanjiModeEnabled()))}},8583:function(e,t){let n;let i=[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];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return i[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},17292:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},69233:function(e,t,n){let i=n(8583),r=n(69881),a=n(31905),o=n(91406),s=n(17292),l=i.getBCHDigit(7973);function c(e,t){return o.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);let a=(i.getSymbolTotalCodewords(e)-r.getTotalCodewordsCount(e,t))*8;if(n===o.MIXED)return a;let l=a-c(n,e);switch(n){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let i;let r=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let i=1;i<=40;i++)if(function(e,t){let n=0;return e.forEach(function(e){let i=c(e.mode,t);n+=i+e.getBitsLength()}),n}(e,i)<=t.getCapacity(i,n,o.MIXED))return i}(e,r);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,i){for(let r=1;r<=40;r++)if(n<=t.getCapacity(r,i,e))return r}(i.mode,i.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;i.getBCHDigit(t)-l>=0;)t^=7973<<i.getBCHDigit(t)-l;return e<<12|t}},99870:function(e,t,n){let i=n(31030);t.render=function(e,t,n){var r;let a=n,o=t;void 0!==a||t&&t.getContext||(a=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),a=i.getOptions(a);let s=i.getImageWidth(e.modules.size,a),l=o.getContext("2d"),c=l.createImageData(s,s);return i.qrToImageData(c.data,e,a),r=o,l.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=s,r.width=s,r.style.height=s+"px",r.style.width=s+"px",l.putImageData(c,0,0),o},t.renderToDataURL=function(e,n,i){let r=i;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});let a=t.render(e,n,r),o=r.type||"image/png",s=r.rendererOpts||{};return a.toDataURL(o,s.quality)}},3829:function(e,t,n){let i=n(31030);function r(e,t){let n=e.a/255,i=t+'="'+e.hex+'"';return n<1?i+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function a(e,t,n){let i=e+t;return void 0!==n&&(i+=" "+n),i}t.render=function(e,t,n){let o=i.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*o.margin,d=o.color.light.a?"<path "+r(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+r(o.color.dark,"stroke")+' d="'+function(e,t,n){let i="",r=0,o=!1,s=0;for(let l=0;l<e.length;l++){let c=Math.floor(l%t),d=Math.floor(l/t);c||o||(o=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(i+=o?a("M",c+n,.5+d+n):a("m",r,0),r=0,o=!1),c+1<t&&e[l+1]||(i+=a("h",s),s=0)):r++}return i}(l,s,o.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+('viewBox="0 0 '+c)+" "+c+'" shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof n&&n(null,h),h}},31030:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:i,scale:i?4:r,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){let i=t.getScale(e,n);return Math.floor((e+2*n.margin)*i)},t.qrToImageData=function(e,n,i){let r=n.modules.size,a=n.modules.data,o=t.getScale(r,i),s=Math.floor((r+2*i.margin)*o),l=i.margin*o,c=[i.color.light,i.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let d=(t*s+n)*4,u=i.color.light;t>=l&&n>=l&&t<s-l&&n<s-l&&(u=c[a[Math.floor((t-l)/o)*r+Math.floor((n-l)/o)]?1:0]),e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}},2289:function(){},95323:function(e,t,n){"use strict";var i,r,a,o,s,l,c,d,u,h,f,g,p,w=n(11051),m=n(55041),y=n(58653),v=n(71868);function M(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}function E(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function b(e,t,n,i,r){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}let S="standard:connect";function N(e){return window.btoa(String.fromCharCode.call(null,...e))}function I(e){switch(e){case"mainnet-beta":return"solana:mainnet";case"testnet":return"solana:testnet";case"devnet":return"solana:devnet";default:return e}}class L extends w.BaseSignInMessageSignerWalletAdapter{constructor(e,t){super(),i.add(this),this.supportedTransactionVersions=new Set(["legacy",0]),r.set(this,void 0),a.set(this,!1),o.set(this,"undefined"!=typeof window&&window.isSecureContext&&"undefined"!=typeof document&&/android/i.test(navigator.userAgent)?w.WalletReadyState.Loadable:w.WalletReadyState.Unsupported),s.set(this,void 0),l.set(this,void 0),c.set(this,void 0),d.set(this,e=>M(this,void 0,void 0,function*(){if(e.accounts&&e.accounts.length>0){E(this,i,"m",h).call(this);let t=yield E(this,s,"f").call(this,e.accounts);t!==E(this,l,"f")&&(b(this,l,t,"f"),b(this,c,void 0,"f"),this.emit("connect",this.publicKey))}})),b(this,s,e=>M(this,void 0,void 0,function*(){var n;let i=yield t.addressSelector.select(e.map(({publicKey:e})=>N(e)));return null!==(n=e.find(({publicKey:e})=>N(e)===i))&&void 0!==n?n:e[0]}),"f"),b(this,r,e,"f"),E(this,r,"f").features["standard:events"].on("change",E(this,d,"f")),this.name=E(this,r,"f").name,this.icon=E(this,r,"f").icon,this.url=E(this,r,"f").url}get publicKey(){var e;if(!E(this,c,"f")&&E(this,l,"f"))try{b(this,c,new m.PublicKey(E(this,l,"f").publicKey),"f")}catch(e){throw new w.WalletPublicKeyError(e instanceof Error&&(null==e?void 0:e.message)||"Unknown error",e)}return null!==(e=E(this,c,"f"))&&void 0!==e?e:null}get connected(){return E(this,r,"f").connected}get connecting(){return E(this,a,"f")}get readyState(){return E(this,o,"f")}autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(){return M(this,void 0,void 0,function*(){return yield this.autoConnect()})}autoConnect(){return M(this,void 0,void 0,function*(){E(this,i,"m",u).call(this,!0)})}connect(){return M(this,void 0,void 0,function*(){E(this,i,"m",u).call(this)})}performAuthorization(e){return M(this,void 0,void 0,function*(){try{let t=yield E(this,r,"f").cachedAuthorizationResult;if(t)return yield E(this,r,"f").features[S].connect({silent:!0}),t;return e?yield E(this,r,"f").features[y.SolanaSignIn].signIn(e):yield E(this,r,"f").features[S].connect(),yield yield E(this,r,"f").cachedAuthorizationResult}catch(e){throw new w.WalletConnectionError(e instanceof Error&&e.message||"Unknown error",e)}})}disconnect(){return M(this,void 0,void 0,function*(){return yield E(this,i,"m",p).call(this,()=>M(this,void 0,void 0,function*(){b(this,a,!1,"f"),b(this,c,void 0,"f"),b(this,l,void 0,"f"),yield E(this,r,"f").features["standard:disconnect"].disconnect(),this.emit("disconnect")}))})}signIn(e){return M(this,void 0,void 0,function*(){return E(this,i,"m",p).call(this,()=>M(this,void 0,void 0,function*(){var t;if(E(this,o,"f")!==w.WalletReadyState.Installed&&E(this,o,"f")!==w.WalletReadyState.Loadable)throw new w.WalletNotReadyError;b(this,a,!0,"f");try{let n=yield E(this,r,"f").features[y.SolanaSignIn].signIn(Object.assign(Object.assign({},e),{domain:null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:window.location.host}));if(n.length>0)return n[0];throw Error("Sign in failed, no sign in result returned by wallet")}catch(e){throw new w.WalletConnectionError(e instanceof Error&&e.message||"Unknown error",e)}finally{b(this,a,!1,"f")}}))})}signMessage(e){return M(this,void 0,void 0,function*(){return yield E(this,i,"m",p).call(this,()=>M(this,void 0,void 0,function*(){let t=E(this,i,"m",f).call(this);try{return(yield E(this,r,"f").features[y.SolanaSignMessage].signMessage({account:t,message:e}))[0].signature}catch(e){throw new w.WalletSignMessageError(null==e?void 0:e.message,e)}}))})}sendTransaction(e,t,n){return M(this,void 0,void 0,function*(){return yield E(this,i,"m",p).call(this,()=>M(this,void 0,void 0,function*(){let a=E(this,i,"m",f).call(this);try{if(y.SolanaSignAndSendTransaction in E(this,r,"f").features){let t=I(E(this,r,"f").currentAuthorization.chain),[i]=(yield E(this,r,"f").features[y.SolanaSignAndSendTransaction].signAndSendTransaction({account:a,transaction:e.serialize(),chain:t,options:n?{skipPreflight:n.skipPreflight,maxRetries:n.maxRetries}:void 0})).map(e=>N(e.signature));return i}{let[r]=yield E(this,i,"m",g).call(this,[e]);if("version"in r)return yield t.sendTransaction(r);{let e=r.serialize();return yield t.sendRawTransaction(e,Object.assign(Object.assign({},n),{preflightCommitment:function(){let e,i;switch(t.commitment){case"confirmed":case"finalized":case"processed":e=t.commitment;break;default:e="finalized"}switch(null==n?void 0:n.preflightCommitment){case"confirmed":case"finalized":case"processed":i=n.preflightCommitment;break;case void 0:i=e;break;default:i="finalized"}let r="finalized"===i?2:"confirmed"===i?1:0,a="finalized"===e?2:"confirmed"===e?1:0;return r<a?i:e}()}))}}}catch(e){throw new w.WalletSendTransactionError(null==e?void 0:e.message,e)}}))})}signTransaction(e){return M(this,void 0,void 0,function*(){return yield E(this,i,"m",p).call(this,()=>M(this,void 0,void 0,function*(){let[t]=yield E(this,i,"m",g).call(this,[e]);return t}))})}signAllTransactions(e){return M(this,void 0,void 0,function*(){return yield E(this,i,"m",p).call(this,()=>M(this,void 0,void 0,function*(){return yield E(this,i,"m",g).call(this,e)}))})}}r=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,i=new WeakSet,u=function(e=!1){return M(this,void 0,void 0,function*(){if(!this.connecting&&!this.connected)return yield E(this,i,"m",p).call(this,()=>M(this,void 0,void 0,function*(){if(E(this,o,"f")!==w.WalletReadyState.Installed&&E(this,o,"f")!==w.WalletReadyState.Loadable)throw new w.Wallet
1NotReadyError;b(this,a,!0,"f");try{yield E(this,r,"f").features[S].connect({silent:e})}catch(e){throw new w.WalletConnectionError(e instanceof Error&&e.message||"Unknown error",e)}finally{b(this,a,!1,"f")}}))})},h=function(){E(this,o,"f")!==w.WalletReadyState.Installed&&this.emit("readyStateChange",b(this,o,w.WalletReadyState.Installed,"f"))},f=function(){if(!E(this,r,"f").isAuthorized||!E(this,l,"f"))throw new w.WalletNotConnectedError;return E(this,l,"f")},g=function(e){return M(this,void 0,void 0,function*(){let t=E(this,i,"m",f).call(this);try{if(y.SolanaSignTransaction in E(this,r,"f").features)return E(this,r,"f").features[y.SolanaSignTransaction].signTransaction(...e.map(e=>({account:t,transaction:e.serialize()}))).then(e=>e.map(e=>{let t=e.signedTransaction,n=t[0],i=m.VersionedMessage.deserializeMessageVersion(t.slice(64*n+1,t.length));return"legacy"===i?m.Transaction.from(t):m.VersionedTransaction.deserialize(t)}));throw Error("Connected wallet does not support signing transactions")}catch(e){throw new w.WalletSignTransactionError(null==e?void 0:e.message,e)}})},p=function(e){return M(this,void 0,void 0,function*(){try{return yield e()}catch(e){throw this.emit("error",e),e}})};class A extends L{constructor(e){var t;let n=I(null!==(t=e.chain)&&void 0!==t?t:e.cluster);super(new v.LocalSolanaMobileWalletAdapterWallet({appIdentity:e.appIdentity,authorizationCache:{set:e.authorizationResultCache.set,get:()=>M(this,void 0,void 0,function*(){return yield e.authorizationResultCache.get()}),clear:e.authorizationResultCache.clear},chains:[n],chainSelector:v.createDefaultChainSelector(),onWalletNotFound:()=>M(this,void 0,void 0,function*(){e.onWalletNotFound(this)})}),{addressSelector:e.addressSelector,chain:n})}}class T extends A{}function j(e){return M(this,void 0,void 0,function*(){return v.defaultErrorModalWalletNotFoundHandler()})}t.lX=T,t.gw="Mobile Wallet Adapter",t.RH=function(){return{select(e){return M(this,void 0,void 0,function*(){return e[0]})}}},t.YS=function(){return v.createDefaultAuthorizationCache()},t.Kf=function(){return j}},71868:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,a,o,s,l,c,d,u,h,f,g,p,w,m,y,v,M,E,b,S,N,I,L,A,T,j,C,_,O,x,D,z,R,W,k,P,U,B,Y,Q,H,K,F,V,Z,G,$,q,J,X,ee,et,en,ei,er,ea,eo,es,el,ec,ed,eu,eh,ef,eg,ep,ew,em,ey,ev,eM,eE,eb,eS,eN,eI,eL,eA,eT=n(58653),ej=n(38842),eC=n(64053),e_=n(80284),eO=n(95588),ex=n(34992);function eD(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ez=eD(ej),eR=eD(eO);function eW(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}function ek(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function eP(e,t,n,i,r){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}let eU=` 2<div class="mobile-wallet-adapter-embedded-modal-container" role="dialog" aria-modal="true" aria-labelledby="modal-title"> 3 <div data-modal-close style="position: absolute; width: 100%; height: 100%;"></div> 4 <div class="mobile-wallet-adapter-embedded-modal-card"> 5 <div> 6 <button data-modal-close class="mobile-wallet-adapter-embedded-modal-close"> 7 <svg width="14" height="14"> 8 <path d="M 6.7125,8.3036995 1.9082,13.108199 c -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 C 0.1056,12.896899 0,12.631699 0,12.312499 c 0,-0.3192 0.1056,-0.5844 0.3167,-0.7958 L 5.1212,6.7124995 0.3167,1.9082 C 0.1056,1.6969 0,1.4317 0,1.1125 0,0.7933 0.1056,0.5281 0.3167,0.3167 0.5281,0.1056 0.7933,0 1.1125,0 1.4317,0 1.6969,0.1056 1.9082,0.3167 L 6.7125,5.1212 11.5167,0.3167 C 11.7281,0.1056 11.9933,0 12.3125,0 c 0.3192,0 0.5844,0.1056 0.7957,0.3167 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 L 8.3037001,6.7124995 13.1082,11.516699 c 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 z" /> 9 </svg> 10 </button> 11 </div> 12 <div class="mobile-wallet-adapter-embedded-modal-content"></div> 13 </div> 14</div> 15`,eB=` 16.mobile-wallet-adapter-embedded-modal-container { 17 display: flex; /* Use flexbox to center content */ 18 justify-content: center; /* Center horizontally */ 19 align-items: center; /* Center vertically */ 20 position: fixed;
20 /* Stay in place */ 21 z-index: 1; /* Sit on top */ 22 left: 0; 23 top: 0; 24 width: 100%; /* Full width */ 25 height: 100%; /* Full height */ 26 background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ 27 overflow-y: auto; /* enable scrolling */ 28} 29 30.mobile-wallet-adapter-embedded-modal-card { 31 display: flex; 32 flex-direction: column; 33 margin: auto 20px; 34 max-width: 780px; 35 padding: 20px; 36 border-radius: 24px; 37 background: #ffffff; 38 font-family: "Inter Tight", "PT Sans", Calibri, sans-serif; 39 transform: translateY(-200%); 40 animation: slide-in 0.5s forwards; 41} 42 43@keyframes slide-in { 44 100% { transform: translateY(0%); } 45} 46 47.mobile-wallet-adapter-embedded-modal-close { 48 display: flex; 49 align-items: center; 50 justify-content: center; 51 width: 32px; 52 height: 32px; 53 cursor: pointer; 54 background: #e4e9e9; 55 border: none; 56 border-radius: 50%; 57} 58 59.mobile-wallet-adapter-embedded-modal-close:focus-visible { 60 outline-color: red; 61} 62 63.mobile-wallet-adapter-embedded-modal-close svg { 64 fill: #546266; 65 transition: fill 200ms ease 0s; 66} 67 68.mobile-wallet-adapter-embedded-modal-close:hover svg { 69 fill: #fff; 70} 71`,eY=` 72<link rel="preconnect" href="https://fonts.googleapis.com"> 73<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 74<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> 75`;class eQ{constructor(){i.add(this),r.set(this,null),a.set(this,{}),o.set(this,!1),this.dom=null,this.open=()=>{console.debug("Modal open"),ek(this,i,"m",l).call(this),ek(this,r,"f")&&(ek(this,r,"f").style.display="flex")},this.close=e=>{var t;console.debug("Modal close"),ek(this,i,"m",c).call(this),ek(this,r,"f")&&(ek(this,r,"f").style.display="none"),null===(t=ek(this,a,"f").close)||void 0===t||t.forEach(t=>t(e))},d.set(this,e=>{"Escape"===e.key&&this.close(e)}),this.init=this.init.bind(this),eP(this,r,document.getElementById("mobile-wallet-adapter-embedded-root-ui"),"f")}init(){return eW(this,void 0,void 0,function*(){console.log("Injecting modal"),ek(this,i,"m",s).call(this)})}addEventListener(e,t){var n;return(null===(n=ek(this,a,"f")[e])||void 0===n?void 0:n.push(t))||(ek(this,a,"f")[e]=[t]),()=>this.removeEventListener(e,t)}removeEventListener(e,t){var n;ek(this,a,"f")[e]=null===(n=ek(this,a,"f")[e])||void 0===n?void 0:n.filter(e=>t!==e)}}r=new WeakMap,a=new WeakMap,o=new WeakMap,d=new WeakMap,i=new WeakSet,s=function(){if(document.getElementById("mobile-wallet-adapter-embedded-root-ui")){ek(this,r,"f")||eP(this,r,document.getElementById("mobile-wallet-adapter-embedded-root-ui"),"f");return}eP(this,r,document.createElement("div"),"f"),ek(this,r,"f").id="mobile-wallet-adapter-embedded-root-ui",ek(this,r,"f").innerHTML=eU,ek(this,r,"f").style.display="none";let e=ek(this,r,"f").querySelector(".mobile-wallet-adapter-embedded-modal-content");e&&(e.innerHTML=this.contentHtml);let t=document.createElement("style");t.id="mobile-wallet-adapter-embedded-modal-styles",t.textContent=eB+this.contentStyles;let n=document.createElement("div");n.innerHTML=eY,this.dom=n.attachShadow({mode:"closed"}),this.dom.appendChild(t),this.dom.appendChild(ek(this,r,"f")),document.body.appendChild(n)},l=function(){!ek(this,r,"f")||ek(this,o,"f")||([...ek(this,r,"f").querySelectorAll("[data-modal-close]")].forEach(e=>null==e?void 0:e.addEventListener("click",this.close)),window.addEventListener("load",this.close),document.addEventListener("keydown",ek(this,d,"f")),eP(this,o,!0,"f"))},c=function(){ek(this,o,"f")&&(window.removeEventListener("load",this.close),document.removeEventListener("keydown",ek(this,d,"f")),ek(this,r,"f")&&([...ek(this,r,"f").querySelectorAll("[data-modal-close]")].forEach(e=>null==e?void 0:e.removeEventListener("click",this.close)),eP(this,o,!1,"f")))};class eH extends eQ{constructor(){super(...arguments),this.contentStyles=eF,this.contentHtml=eK}initWithQR(e){let t=Object.create(null,{init:{get:()=>super.init}});return eW(this,void 0,void 0,function*(){t.init.call(this),this.populateQRCode(e)})}populateQRCode(e){var t;return eW(this,void 0,void 0,function*(){let n=null===(t=this.dom)||void 0===t?void 0:t.getElementById("mobile-wallet-adapter-embedded-modal-qr-code-container");if(n){let t=yield ez.default.toCanvas(e,{width:200,margin:0});null!==n.firstElementChild?n.replaceChild(t,n.firstElementChild):n.appendChild(t)}else console.error("QRCode Container not found")})}}let eK=` 76<div class="mobile-wallet-adapter-embedded-modal-qr-content"> 77 <div> 78 <svg class="mobile-wallet-adapter-embedded-modal-icon" width="100%" height="100%"> 79 <circle r="52" cx="53" cy="53" fill="#99b3be" stroke="#000000" stroke-width="2"/> 80 <path d="m 53,82.7305 c -3.3116,0 -6.1361,-1.169 -8.4735,-3.507 -2.338,-2.338 -3.507,-5.1625 -3.507,-8.4735 0,-3.3116 1.169,-6.1364 3.507,-8.4744 2.3374,-2.338 5.1619,-3.507 8.4735,-3.507 3.3116,0 6.1361,1.169 8.4735,3.507 2.338,2.338 3.507,5.1628 3.507,8.4744 0,3.311 -1.169,6.1355 -3.507,8.4735 -2.3374,2.338 -5.1619,3.507 -8.4735,3.507 z m 0.007,-5.25 c 1.8532,0 3.437,-0.6598 4.7512,-1.9793 1.3149,-1.3195 1.9723,-2.9058
801.9723,-4.7591 0,-1.8526 -0.6598,-3.4364 -1.9793,-4.7512 -1.3195,-1.3149 -2.9055,-1.9723 -4.7582,-1.9723 -1.8533,0 -3.437,0.6598 -4.7513,1.9793 -1.3148,1.3195 -1.9722,2.9058 -1.9722,4.7591 0,1.8527 0.6597,3.4364 1.9792,4.7512 1.3195,1.3149 2.9056,1.9723 4.7583,1.9723 z m -28,-33.5729 -3.85,-3.6347 c 4.1195,-4.025 8.8792,-7.1984 14.2791,-9.52 5.4005,-2.3223 11.2551,-3.4834 17.5639,-3.4834 6.3087,0 12.1634,1.1611 17.5639,3.4834 5.3999,2.3216 10.1596,5.495 14.2791,9.52 l -3.85,3.6347 C 77.2999,40.358 73.0684,37.5726 68.2985,35.5514 63.5292,33.5301 58.4296,32.5195 53,32.5195 c -5.4297,0 -10.5292,1.0106 -15.2985,3.0319 -4.7699,2.0212 -9.0014,4.8066 -12.6945,8.3562 z m 44.625,10.8771 c -2.2709,-2.1046 -4.7962,-3.7167 -7.5758,-4.8361 -2.7795,-1.12 -5.7983,-1.68 -9.0562,-1.68 -3.2579,0 -6.2621,0.56 -9.0125,1.68 -2.7504,1.1194 -5.2903,2.7315 -7.6195,4.8361 L 32.5189,51.15 c 2.8355,-2.6028 5.9777,-4.6086 9.4263,-6.0174 3.4481,-1.4087 7.133,-2.1131 11.0548,-2.1131 3.9217,0 7.5979,0.7044 11.0285,2.1131 3.43,1.4088 6.5631,3.4146 9.3992,6.0174 z"/> 81 </svg> 82 <div class="mobile-wallet-adapter-embedded-modal-title">Remote Mobile Wallet Adapter</div> 83 </div> 84 <div> 85 <div> 86 <h4 class="mobile-wallet-adapter-embedded-modal-qr-label"> 87 Open your wallet and scan this code 88 </h4> 89 </div> 90 <div id="mobile-wallet-adapter-embedded-modal-qr-code-container" class="mobile-wallet-adapter-embedded-modal-qr-code-container"></div> 91 </div> 92</div> 93<div class="mobile-wallet-adapter-embedded-modal-divider"><hr></div> 94<div class="mobile-wallet-adapter-embedded-modal-footer"> 95 <div class="mobile-wallet-adapter-embedded-modal-subtitle"> 96 Follow the instructions on your device. When you're finished, this screen will update. 97 </div> 98 <div class="mobile-wallet-adapter-embedded-modal-progress-badge"> 99 <div> 100 <div class="spinner"> 101 <div class="leftWrapper"> 102 <div class="left"> 103 <div class="circle"></div> 104 </div> 105 </div> 106 <div class="rightWrapper"> 107 <div class="right"> 108 <div class="circle"></div> 109 </div> 110 </div> 111 </div> 112 </div> 113 <div>Waiting for scan</div> 114 </div> 115</div> 116`,eF=` 117.mobile-wallet-adapter-embedded-modal-qr-content { 118 display: flex; 119 margin-top: 10px; 120 padding: 10px; 121} 122 123.mobile-wallet-adapter-embedded-modal-qr-content > div:first-child { 124 display: flex; 125 flex-direction: column; 126 flex: 2; 127 margin-top: auto; 128 margin-right: 30px; 129} 130 131.mobile-wallet-adapter-embedded-modal-qr-content > div:nth-child(2) { 132 display: flex; 133 flex-direction: column; 134 flex: 1; 135 margin-left: auto; 136} 137 138.mobile-wallet-adapter-embedded-modal-footer { 139 display: flex; 140 padding: 10px; 141} 142 143.mobile-wallet-adapter-embedded-modal-icon {} 144 145.mobile-wallet-adapter-embedded-modal-title { 146 color: #000000; 147 font-size: 2.5em; 148 font-weight: 600; 149} 150 151.mobile-wallet-adapter-embedded-modal-qr-label { 152 text-align: right; 153 color: #000000; 154} 155 156.mobile-wallet-adapter-embedded-modal-qr-code-container { 157 margin-left: auto; 158} 159 160.mobile-wallet-adapter-embedded-modal-divider { 161 margin-top: 20px; 162 padding-left: 10px; 163 padding-right: 10px; 164} 165 166.mobile-wallet-adapter-embedded-modal-divider hr { 167 border-top: 1px solid #D9DEDE; 168} 169 170.mobile-wallet-adapter-embedded-modal-subtitle { 171 margin: auto; 172 margin-right: 60px; 173 padding: 20px; 174 color: #6E8286; 175} 176 177.mobile-wallet-adapter-embedded-modal-progress-badge { 178 display: flex; 179 background: #F7F8F8; 180 height: 56px; 181 min-width: 200px; 182 margin: auto; 183 padding-left: 20px; 184 padding-right: 20px; 185 border-radius: 18px; 186 color: #A8B6B8; 187 align-items: center; 188} 189 190.mobile-wallet-adapter-embedded-modal-progress-badge > div:first-child { 191 margin-left: auto; 192 margin-right: 20px; 193} 194 195.mobile-wallet-adapter-embedded-modal-progress-badge > div:nth-child(2) { 196 margin-right: auto; 197} 198 199/* Smaller screens */ 200@media all and (max-width: 600px) { 201 .mobile-wallet-adapter-embedded-modal-card { 202 text-align: center; 203 } 204 .mobile-wallet-adapter-embedded-modal-qr-content { 205 flex-direction: column; 206 } 207 .mobile-wallet-adapter-embedded-modal-qr-content > div:first-child { 208 margin: auto; 209 } 210 .mobile-wallet-adapter-embedded-modal-qr-content > div:nth-child(2) { 211 margin: auto; 212 flex: 2 auto; 213 } 214 .mobile-wallet-adapter-embedded-modal-footer { 215 flex-direction: column; 216 } 217 .mobile-wallet-adapter-embedded-modal-icon { 218 display: none; 219 } 220 .mobile-wallet-adapter-embedded-modal-title { 221 font-size: 1.5em; 222 } 223 .mobile-wallet-adapter-embedded-modal-subtitle { 224 margin-right: unset; 225 } 226 .mobile-wallet-adapter-embedded-modal-qr-label { 227 text-align: center; 228 } 229 .mobile-wallet-adapter-embedded-modal-qr-code-container { 230 margin: auto; 231 } 232} 233 234/* Spinner */ 235@keyframes spinLeft { 236 0% { 237 transform: rotate(20deg); 238 } 239 50% { 240 transform: rotate(160deg); 241 } 242 100% { 243 transform: rotate(20deg); 244 } 245} 246@keyframes spinRight { 247 0% { 248 transform: rotate(160deg); 249 } 250 50% { 251 transform: rotate(20deg); 252 } 253 100% { 254 transform: rotate(160deg); 255 } 256} 257@keyframes spin { 258 0% { 259 transform: rotate(0deg); 260 } 261 100% { 262 transform: rotate(2520deg); 263 } 264} 265 266.spinner { 267 position: relative; 268 width: 1.5em; 269 height: 1.5em; 270 margin: auto; 271 animation: spin 10s linear infinite; 272} 273.spinner::before { 274 content: ""; 275 position: absolute; 276 top: 0; 277 bottom: 0; 278 left: 0; 279 right: 0; 280} 281.right, .rightWrapper, .left, .leftWrapper { 282 position: absolute; 283 top: 0; 284 overflow: hidden; 285 width: .75em; 286 height: 1.5em; 287} 288.left, .leftWrapper { 289 left: 0; 290} 291.right { 292 left: -12px; 293} 294.rightWrapper { 295 right: 0; 296} 297.circle { 298 border: .125em solid #A8B6B8; 299 width: 1.25em; /* 1.5em - 2*0.125em border */ 300 height: 1.25em; /* 1.5em - 2*0.125em border */ 301 border-radius: 0.75em; /* 0.5*1.5em spinner size 8 */ 302} 303.left { 304 transform-origin: 100% 50%; 305 animation: spinLeft 2.5s cubic-bezier(.2,0,.8,1) infinite; 306} 307.right { 308 transform-origin: 100% 50%; 309 animation: spinRight 2.5s cubic-bezier(.2,0,.8,1) infinite; 310} 311`,eV="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDIuNUgxN0MxNy44Mjg0IDIuNSAxOC41IDMuMTc
311xNTcgMTguNSA0VjIwQzE4LjUgMjAuODI4NCAxNy44Mjg0IDIxLjUgMTcgMjEuNUg3QzYuMTcxNTcgMjEuNSA1LjUgMjAuODI4NCA1LjUgMjBWNEM1LjUgMy4xNzE1NyA2LjE3MTU3IDIuNSA3IDIuNVpNMyA0QzMgMS43OTA4NiA0Ljc5MDg2IDAgNyAwSDE3QzE5LjIwOTEgMCAyMSAxLjc5MDg2IDIxIDRWMjBDMjEgMjIuMjA5MSAxOS4yMDkxIDI0IDE3IDI0SDdDNC43OTA4NiAyNCAzIDIyLjIwOTEgMyAyMFY0Wk0xMSA0LjYxNTM4QzEwLjQ0NzcgNC42MTUzOCAxMCA1LjA2MzEgMTAgNS42MTUzOFY2LjM4NDYyQzEwIDYuOTM2OSAxMC40NDc3IDcuMzg0NjIgMTEgNy4zODQ2MkgxM0MxMy41NTIzIDcuMzg0NjIgMTQgNi45MzY5IDE0IDYuMzg0NjJWNS42MTUzOEMxNCA1LjA2MzEgMTMuNTUyMyA0LjYxNTM4IDEzIDQuNjE1MzhIMTFaIiBmaWxsPSIjRENCOEZGIi8+Cjwvc3ZnPgo=";function eZ(e){return window.btoa(String.fromCharCode.call(null,...e))}function eG(e){return new Uint8Array(window.atob(e).split("").map(e=>e.charCodeAt(0)))}let e$="Mobile Wallet Adapter",eq=[eT.SolanaSignAndSendTransaction,eT.SolanaSignTransaction,eT.SolanaSignMessage,eT.SolanaSignIn];class eJ{constructor(e){u.add(this),h.set(this,{}),f.set(this,"1.0.0"),g.set(this,e$),p.set(this,"https://solanamobile.com/wallets"),w.set(this,eV),m.set(this,void 0),y.set(this,void 0),v.set(this,void 0),M.set(this,!1),E.set(this,0),b.set(this,[]),S.set(this,void 0),N.set(this,void 0),I.set(this,void 0),L.set(this,(e,t)=>{var n;return(null===(n=ek(this,h,"f")[e])||void 0===n?void 0:n.push(t))||(ek(this,h,"f")[e]=[t]),()=>ek(this,u,"m",T).call(this,e,t)}),j.set(this,({silent:e}={})=>eW(this,void 0,void 0,function*(){if(ek(this,M,"f")||this.connected)return{accounts:this.accounts};eP(this,M,!0,"f");try{if(e){let e=yield ek(this,v,"f").get();if(!e)return{accounts:this.accounts};yield ek(this,O,"f").call(this,e.capabilities),yield ek(this,_,"f").call(this,e)}else yield ek(this,C,"f").call(this)}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}finally{eP(this,M,!1,"f")}return{accounts:this.accounts}})),C.set(this,e=>eW(this,void 0,void 0,function*(){try{let t=yield ek(this,v,"f").get();if(t)return ek(this,_,"f").call(this,t),t;let n=yield ek(this,S,"f").select(ek(this,b,"f"));return yield ek(this,z,"f").call(this,t=>eW(this,void 0,void 0,function*(){let[i,r]=yield Promise.all([t.getCapabilities(),t.authorize({chain:n,identity:ek(this,m,"f"),sign_in_payload:e})]),a=ek(this,W,"f").call(this,r.accounts),o=Object.assign(Object.assign({},r),{accounts:a,chain:n,capabilities:i});return Promise.all([ek(this,O,"f").call(this,i),ek(this,v,"f").set(o),ek(this,_,"f").call(this,o)]),o}))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),_.set(this,e=>eW(this,void 0,void 0,function*(){var t;let n=null==ek(this,y,"f")||(null===(t=ek(this,y,"f"))||void 0===t?void 0:t.accounts.length)!==e.accounts.length||ek(this,y,"f").accounts.some((t,n)=>t.address!==e.accounts[n].address);eP(this,y,e,"f"),n&&ek(this,u,"m",A).call(this,"change",{accounts:this.accounts})})),O.set(this,e=>eW(this,void 0,void 0,function*(){let t=e.features.includes("solana:signTransactions"),n=e.supports_sign_and_send_transactions,i=eT.SolanaSignAndSendTransaction in this.features!==n||eT.SolanaSignTransaction in this.features!==t;eP(this,N,Object.assign(Object.assign({},(n||!n&&!t)&&{[eT.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:ek(this,U,"f")}}),t&&{[eT.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:ek(this,B,"f")}}),"f"),i&&ek(this,u,"m",A).call(this,"change",{features:this.features})})),x.set(this,(e,t,n)=>eW(this,void 0,void 0,function*(){var i,r;try{let[a,o]=yield Promise.all([null!==(r=null===(i=ek(this,y,"f"))||void 0===i?void 0:i.capabilities)&&void 0!==r?r:yield e.getCapabilities(),e.authorize({auth_token:t,identity:ek(this,m,"f"),chain:n})]),s=ek(this,W,"f").call(this,o.accounts),l=Object.assign(Object.assign({},o),{accounts:s,chain:n,capabilities:a});Promise.all([ek(this,v,"f").set(l),ek(this,_,"f").call(this,l)])}catch(e){throw ek(this,D,"f").call(this),Error(e instanceof Error&&e.message||"Unknown error")}})),D.set(this,()=>eW(this,void 0,void 0,function*(){var e;ek(this,v,"f").clear(),eP(this,M,!1,"f"),eP(this,E,(e=ek(this,E,"f"),++e),"f"),eP(this,y,void 0,"f"),ek(this,u,"m",A).call(this,"change",{accounts:this.accounts})})),z.set(this,e=>eW(this,void 0,void 0,function*(){var t;let n=null===(t=ek(this,y,"f"))||void 0===t?void 0:t.wallet_uri_base,i=ek(this,E,"f");try{return yield eC.transact(e,n?{baseUri:n}:void 0)}catch(e){throw ek(this,E,"f")!==i&&(yield new Promise(()=>{})),e instanceof Error&&"SolanaMobileWalletAdapterError"===e.name&&"ERROR_WALLET_NOT_FOUND"===e.code&&(yield ek(this,I,"f").call(this,this)),e}})),R.set(this,()=>{if(!ek(this,y,"f"))throw Error("Wallet not connected");return{authToken:ek(this,y,"f").auth_token,chain:ek(this,y,"f").chain}}),W.set(this,e=>e.map(e=>{var t,n;let i=eG(e.address);return{address:eR.default.encode(i),publicKey:i,label:e.label,icon:e.icon,chains:null!==(t=e.chains)&&void 0!==t?t:ek(this,b,"f"),features:null!==(n=e.features)&&void 0!==n?n:eq}})),k.set(this,e=>eW(this,void 0,void 0,function*(){let{authToken:t,chain:n}=ek(this,R,"f").call(this);try{let i=e.map(e=>eZ(e));return yield ek(this,z,"f").call(this,e=>eW(this,void 0,void 0,function*(){return yield ek(this,x,"f").call(this,e,t,n),(yield e.signTransactions({payloads:i})).signed_payloads.map(eG)}))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),P.set(this,(e,t)=>eW(this,void 0,void 0,function*(){let{authToken:n,chain:i}=ek(this,R,"f").call(this);try{return yield ek(this,z,"f").call(this,r=>eW(this,void 0,void 0,function*(){let[a,o]=yield Promise.all([r.getCapabilities(),ek(this,x,"f").call(this,r,n,i)]);if(a.supports_sign_and_send_transactions){let n=eZ(e);return(yield r.signAndSendTransactions(Object.assign(Object.assign({},t),{payloads:[n]}))).signatures.map(eG)[0]}throw Error("connected wallet does not support signAndSendTransaction")}))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),U.set(this,(...e)=>eW(this,void 0,void 0,function*(){let t=[];for(let n of e){let e=yield ek(this,P,"f").call(this,n.transaction,n.options);t.push({signature:e})}return t})),B.set(this,(...e)=>eW(this,void 0,void 0,function*(){return(yield ek(this,k,"f").call(this,e.map(({transaction:e})=>e))).map(e=>({signedTransaction:e}))})),Y.set(this,(...e)=>eW(this,void 0,void 0,function*(){let{authToken:t,chain:n}=ek(this,R,"f").call(this),i=e.map(({account:e})=>eZ(e.publicKey)),r=e.map(({message:e})=>eZ(e));try{return yield ek(this,z,"f").call(this,e=>eW(this,void 0,void 0,function*(){return yield ek(this,x,"f").call(this,e,t,n),(yield e.signMessages({addresses:i,payloads:r})).signed_payloads.map(eG).map(e=>({signedMessage:e,signature:e.slice(-64)}))}
311))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),Q.set(this,(...e)=>eW(this,void 0,void 0,function*(){let t=[];if(!(e.length>1))return[(yield ek(this,H,"f").call(this,e[0]))];for(let n of e)t.push((yield ek(this,H,"f").call(this,n)));return t})),H.set(this,e=>eW(this,void 0,void 0,function*(){var t,n,i;eP(this,M,!0,"f");try{let r=yield ek(this,C,"f").call(this,Object.assign(Object.assign({},e),{domain:null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:window.location.host}));if(!r.sign_in_result)throw Error("Sign in failed, no sign in result returned by wallet");let a=r.sign_in_result.address,o=r.accounts.find(e=>e.address==a);return{account:Object.assign(Object.assign({},null!=o?o:{address:eR.default.encode(eG(a))}),{publicKey:eG(a),chains:null!==(n=null==o?void 0:o.chains)&&void 0!==n?n:ek(this,b,"f"),features:null!==(i=null==o?void 0:o.features)&&void 0!==i?i:r.capabilities.features}),signedMessage:eG(r.sign_in_result.signed_message),signature:eG(r.sign_in_result.signature)}}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}finally{eP(this,M,!1,"f")}})),eP(this,v,e.authorizationCache,"f"),eP(this,m,e.appIdentity,"f"),eP(this,b,e.chains,"f"),eP(this,S,e.chainSelector,"f"),eP(this,I,e.onWalletNotFound,"f"),eP(this,N,{[eT.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:ek(this,U,"f")},[eT.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:ek(this,B,"f")}},"f")}get version(){return ek(this,f,"f")}get name(){return ek(this,g,"f")}get url(){return ek(this,p,"f")}get icon(){return ek(this,w,"f")}get chains(){return ek(this,b,"f")}get features(){return Object.assign({[e_.StandardConnect]:{version:"1.0.0",connect:ek(this,j,"f")},[e_.StandardDisconnect]:{version:"1.0.0",disconnect:ek(this,D,"f")},[e_.StandardEvents]:{version:"1.0.0",on:ek(this,L,"f")},[eT.SolanaSignMessage]:{version:"1.0.0",signMessage:ek(this,Y,"f")},[eT.SolanaSignIn]:{version:"1.0.0",signIn:ek(this,Q,"f")}},ek(this,N,"f"))}get accounts(){var e,t;return null!==(t=null===(e=ek(this,y,"f"))||void 0===e?void 0:e.accounts)&&void 0!==t?t:[]}get connected(){return!!ek(this,y,"f")}get isAuthorized(){return!!ek(this,y,"f")}get currentAuthorization(){return ek(this,y,"f")}get cachedAuthorizationResult(){return ek(this,v,"f").get()}}h=new WeakMap,f=new WeakMap,g=new WeakMap,p=new WeakMap,w=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,M=new WeakMap,E=new WeakMap,b=new WeakMap,S=new WeakMap,N=new WeakMap,I=new WeakMap,L=new WeakMap,j=new WeakMap,C=new WeakMap,_=new WeakMap,O=new WeakMap,x=new WeakMap,D=new WeakMap,z=new WeakMap,R=new WeakMap,W=new WeakMap,k=new WeakMap,P=new WeakMap,U=new WeakMap,B=new WeakMap,Y=new WeakMap,Q=new WeakMap,H=new WeakMap,u=new WeakSet,A=function(e,...t){var n;null===(n=ek(this,h,"f")[e])||void 0===n||n.forEach(e=>e.apply(null,t))},T=function(e,t){var n;ek(this,h,"f")[e]=null===(n=ek(this,h,"f")[e])||void 0===n?void 0:n.filter(e=>t!==e)};class eX{constructor(e){K.add(this),F.set(this,{}),V.set(this,"1.0.0"),Z.set(this,e$),G.set(this,"https://solanamobile.com/wallets"),$.set(this,eV),q.set(this,void 0),J.set(this,void 0),X.set(this,void 0),ee.set(this,!1),et.set(this,0),en.set(this,[]),ei.set(this,void 0),er.set(this,void 0),ea.set(this,void 0),eo.set(this,void 0),es.set(this,void 0),el.set(this,(e,t)=>{var n;return(null===(n=ek(this,F,"f")[e])||void 0===n?void 0:n.push(t))||(ek(this,F,"f")[e]=[t]),()=>ek(this,K,"m",ed).call(this,e,t)}),eu.set(this,({silent:e}={})=>eW(this,void 0,void 0,function*(){if(ek(this,ee,"f")||this.connected)return{accounts:this.accounts};eP(this,ee,!0,"f");try{yield ek(this,eh,"f").call(this)}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}finally{eP(this,ee,!1,"f")}return{accounts:this.accounts}})),eh.set(this,e=>eW(this,void 0,void 0,function*(){try{let t=yield ek(this,X,"f").get();if(t)return ek(this,ef,"f").call(this,t),t;ek(this,es,"f")&&eP(this,es,void 0,"f");let n=yield ek(this,ei,"f").select(ek(this,en,"f"));return yield ek(this,em,"f").call(this,t=>eW(this,void 0,void 0,function*(){let[i,r]=yield Promise.all([t.getCapabilities(),t.authorize({chain:n,identity:ek(this,q,"f"),sign_in_payload:e})]),a=ek(this,ev,"f").call(this,r.accounts),o=Object.assign(Object.assign({},r),{accounts:a,chain:n,capabilities:i});return Promise.all([ek(this,eg,"f").call(this,i),ek(this,X,"f").set(o),ek(this,ef,"f").call(this,o)]),o}))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),ef.set(this,e=>eW(this,void 0,void 0,function*(){var t;let n=null==ek(this,J,"f")||(null===(t=ek(this,J,"f"))||void 0===t?void 0:t.accounts.length)!==e.accounts.length||ek(this,J,"f").accounts.some((t,n)=>t.address!==e.accounts[n].address);eP(this,J,e,"f"),n&&ek(this,K,"m",ec).call(this,"change",{accounts:this.accounts})})),eg.set(this,e=>eW(this,void 0,void 0,function*(){let t=e.features.includes("solana:signTransactions"),n=e.supports_sign_and_send_transactions||e.features.includes("solana:signAndSendTransaction"),i=eT.SolanaSignAndSendTransaction in this.features!==n||eT.SolanaSignTransaction in this.features!==t;eP(this,er,Object.assign(Object.assign({},n&&{[eT.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:e.supported_transaction_versions,signAndSendTransaction:ek(this,eb,"f")}}),t&&{[eT.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:e.supported_transaction_versions,signTransaction:ek(this,eS,"f")}}),"f"),i&&ek(this,K,"m",ec).call(this,"change",{features:this.features})})),ep.set(this,(e,t,n)=>eW(this,void 0,void 0,function*(){var i,r;try{let[a,o]=yield Promise.all([null!==(r=null===(i=ek(this,J,"f"))||void 0===i?void 0:i.capabilities)&&void 0!==r?r:yield e.getCapabilities(),e.authorize({auth_token:t,identity:ek(this,q,"f"),chain:n})]),s=ek(this,ev,"f").call(this,o.accounts),l=Object.assign(Object.assign({},o),{accounts:s,chain:n,capabilities:a});Promise.all([ek(this,X,"f").set(l),ek(this,ef,"f").call(this,l)])}catch(e){throw ek(this,ew,"f").call(this),Error(e instanceof Error&&e.message||"Unknown error")}})),ew.set(this,()=>eW(this,void 0,void 0,function*(){var e,t;null===(e=ek(this,es,"f"))||void 0===e||e.close(),ek(this,X,"f").clear(),eP(this,ee,!1,"f"),eP(this,et,(t=ek(this,et,"f"),++t),"f"),eP(this,J,void 0,"f"),eP(this,es,void 0,"f"),ek(this,K,"m",ec).call(this,"change",{accounts:this.accounts})})),em.set(this,e=>eW(this,void 0,void 0,function*(){var t;let n=null===(t=ek(this,J,"f"))||void 0===t?void 0:t.wallet_uri_base,i=Object.assign(Object.assign({},n?{baseUri:n}:void 0),{remoteHostAuthority:ek(this,eo,"f")}),r=ek(this,et,"f"),a=new eH;if(ek(this,es,"f"))return e(ek(this,es,"f").wallet);try{let{associationUrl:t,close:n,wallet:r}=yield eC.startRemoteScenario(i),o=a.addEventListener("close",e=>{e&&n()});return a.initWithQR(t.toString()),a.open(),eP(this,es,{close:n,wallet:yield r},"f"),o(),a.close(),yield e(ek(this,es,"f").wallet)}catch(e){throw a.close(),ek(this,et,"f")!==r&&(yield new Promise(()=>{})),e instanceof Error&&"SolanaMobileWalletAdapterError"===e.name&&"ERROR_WALLET_NOT_FOUND"===e.code&&(yield ek(this,ea,"f").call(this,this)),e}})),ey.set(this,()=>{if(!ek(this,J,"f"))throw Error("Wallet not connected");return{authToken:ek(this,J,"f").auth_token,chain:ek(this,J,"f").chain}}),ev.set(this,e=>e.map(e=>{var t,n;let i=eG(e.address);return{address:eR.default.encode(i),publicKey:i,label:e.label,icon:e.icon,chains:null!==(t=e.chains)&&void 0!==t?t:ek(this,en,"f"),features:null!==(n=e.features)&&void 0!==n?n:eq}})),eM.set(this,e=>eW(this,void 0,void 0,function*(){let{authToken:t,chain:n}=ek(this,ey,"f").call(this);try{return yield ek(this,em,"f").call(this,i=>eW(this,void 0,void 0,function*(){return yield ek(this,ep,"f").call(this,i,t,n),(yield i.signTransactions({payloads:e.map(eZ)})).signed_payloads.map(eG)}))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),eE.set(this,(e,t)=>eW(this,void 0,void 0,function*(){let{authToken:n,chain:i}=ek(this,ey,"f").call(this);try{return yield ek(this,em,"f").call(this,r=>eW(this,void 0,void 0,function*(){let[a,o]=yield Promise.all([r.getCapabilities(),ek(this,ep,"f").call(this,r,n,i)]);if(a.supports_sign_and_send_transactions)return(yield r.signAndSendTransactions(Object.assign(Object.assign({},t),{payloads:[eZ(e)]}))).signatures.map(eG)[0];throw Error("connected wallet does not support signAndSendTransaction")}))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),eb.set(this,(...e)=>eW(this,void 0,void 0,function*(){let t=[];for(let n of e){let e=yield ek(this,eE,"f").call(this,n.transaction,n.options);t.push({signature:e})}return t})),eS.set(this,(...e)=>eW(this,void 0,void 0,function*(){return(yield ek(this,eM,"f").call(this,e.map(({transaction:e})=>e))).map(e=>({signedTransaction:e}))})),eN.set(this,(...e)=>eW(this,void 0,void 0,function*(){let{authToken:t,chain:n}=ek(this,ey,"f").call(this),i=e.map(({account:e})=>eZ(e.publicKey)),r=e.map(({message:e})=>eZ(e));try{return yield ek(this,em,"f").call(this,e=>eW(this,void 0,void 0,function*(){return yield ek(this,ep,"f").call(this,e,t,n),(yield e.signMessages({addresses:i,payloads:r})).signed_payloads.map(eG).map(e=>({signedMessage:e,signature:e.slice(-64)}))}
311))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}})),eI.set(this,(...e)=>eW(this,void 0,void 0,function*(){let t=[];if(!(e.length>1))return[(yield ek(this,eL,"f").call(this,e[0]))];for(let n of e)t.push((yield ek(this,eL,"f").call(this,n)));return t})),eL.set(this,e=>eW(this,void 0,void 0,function*(){var t,n,i;eP(this,ee,!0,"f");try{let r=yield ek(this,eh,"f").call(this,Object.assign(Object.assign({},e),{domain:null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:window.location.host}));if(!r.sign_in_result)throw Error("Sign in failed, no sign in result returned by wallet");let a=r.sign_in_result.address,o=r.accounts.find(e=>e.address==a);return{account:Object.assign(Object.assign({},null!=o?o:{address:eR.default.encode(eG(a))}),{publicKey:eG(a),chains:null!==(n=null==o?void 0:o.chains)&&void 0!==n?n:ek(this,en,"f"),features:null!==(i=null==o?void 0:o.features)&&void 0!==i?i:r.capabilities.features}),signedMessage:eG(r.sign_in_result.signed_message),signature:eG(r.sign_in_result.signature)}}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}finally{eP(this,ee,!1,"f")}})),eP(this,X,e.authorizationCache,"f"),eP(this,q,e.appIdentity,"f"),eP(this,en,e.chains,"f"),eP(this,ei,e.chainSelector,"f"),eP(this,eo,e.remoteHostAuthority,"f"),eP(this,ea,e.onWalletNotFound,"f"),eP(this,er,{[eT.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:ek(this,eb,"f")},[eT.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:ek(this,eS,"f")}},"f")}get version(){return ek(this,V,"f")}get name(){return ek(this,Z,"f")}get url(){return ek(this,G,"f")}get icon(){return ek(this,$,"f")}get chains(){return ek(this,en,"f")}get features(){return Object.assign({[e_.StandardConnect]:{version:"1.0.0",connect:ek(this,eu,"f")},[e_.StandardDisconnect]:{version:"1.0.0",disconnect:ek(this,ew,"f")},[e_.StandardEvents]:{version:"1.0.0",on:ek(this,el,"f")},[eT.SolanaSignMessage]:{version:"1.0.0",signMessage:ek(this,eN,"f")},[eT.SolanaSignIn]:{version:"1.0.0",signIn:ek(this,eI,"f")}},ek(this,er,"f"))}get accounts(){var e,t;return null!==(t=null===(e=ek(this,J,"f"))||void 0===e?void 0:e.accounts)&&void 0!==t?t:[]}get connected(){return!!ek(this,es,"f")&&!!ek(this,J,"f")}get isAuthorized(){return!!ek(this,J,"f")}get currentAuthorization(){return ek(this,J,"f")}get cachedAuthorizationResult(){return ek(this,X,"f").get()}}F=new WeakMap,V=new WeakMap,Z=new WeakMap,G=new WeakMap,$=new WeakMap,q=new WeakMap,J=new WeakMap,X=new WeakMap,ee=new WeakMap,et=new WeakMap,en=new WeakMap,ei=new WeakMap,er=new WeakMap,ea=new WeakMap,eo=new WeakMap,es=new WeakMap,el=new WeakMap,eu=new WeakMap,eh=new WeakMap,ef=new WeakMap,eg=new WeakMap,ep=new WeakMap,ew=new WeakMap,em=new WeakMap,ey=new WeakMap,ev=new WeakMap,eM=new WeakMap,eE=new WeakMap,eb=new WeakMap,eS=new WeakMap,eN=new WeakMap,eI=new WeakMap,eL=new WeakMap,K=new WeakSet,ec=function(e,...t){var n;null===(n=ek(this,F,"f")[e])||void 0===n||n.forEach(e=>e.apply(null,t))},ed=function(e,t){var n;ek(this,F,"f")[e]=null===(n=ek(this,F,"f")[e])||void 0===n?void 0:n.filter(e=>t!==e)};var e0=function(e,t,n,i,r){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},e1=function(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};function e4(e){let t=({register:t})=>t(e);try{window.dispatchEvent(new e2(t))}catch(e){console.error("wallet-standard:register-wallet event could not be dispatched\n",e)}try{window.addEventListener("wallet-standard:app-ready",({detail
311:e})=>t(e))}catch(e){console.error("wallet-standard:app-ready event listener could not be added\n",e)}}class e2 extends Event{constructor(e){super("wallet-standard:register-wallet",{bubbles:!1,cancelable:!1,composed:!1}),eA.set(this,void 0),e0(this,eA,e,"f")}get detail(){return e1(this,eA,"f")}get type(){return"wallet-standard:register-wallet"}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}}eA=new WeakMap;class e5 extends eQ{constructor(){super(...arguments),this.contentStyles=e6,this.contentHtml=e3}initWithError(e){super.init(),this.populateError(e)}populateError(e){var t,n;let i=null===(t=this.dom)||void 0===t?void 0:t.getElementById("mobile-wallet-adapter-error-message"),r=null===(n=this.dom)||void 0===n?void 0:n.getElementById("mobile-wallet-adapter-error-action");if(i){if("SolanaMobileWalletAdapterError"===e.name)switch(e.code){case"ERROR_WALLET_NOT_FOUND":i.innerHTML="To use mobile wallet adapter, you must have a compatible mobile wallet application installed on your device.",r&&r.addEventListener("click",()=>{window.location.href="https://solanamobile.com/wallets"});return;case"ERROR_BROWSER_NOT_SUPPORTED":i.innerHTML="This browser appears to be incompatible with mobile wallet adapter. Open this page in a compatible mobile browser app and try again.",r&&(r.style.display="none");return}i.innerHTML=`An unexpected error occurred: ${e.message}`}else console.log("Failed to locate error dialog element")}}let e3=` 312<svg class="mobile-wallet-adapter-embedded-modal-error-icon" xmlns="http://www.w3.org/2000/svg" height="50px" viewBox="0 -960 960 960" width="50px" fill="#000000"><path d="M 280,-80 Q 197,-80 138.5,-138.5 80,-197 80,-280 80,-363 138.5,-421.5 197,-480 280,-480 q 83,0 141.5,58.5 58.5,58.5 58.5,141.5 0,83 -58.5,141.5 Q 363,-80 280,-80 Z M 824,-120 568,-376 Q 556,-389 542.5,-402.5 529,-416 516,-428 q 38,-24 61,-64 23,-40 23,-88 0,-75 -52.5,-127.5 Q 495,-760 420,-760 345,-760 292.5,-707.5 240,-655 240,-580 q 0,6 0.5,11.5 0.5,5.5 1.5,11.5 -18,2 -39.5,8 -21.5,6 -38.5,14 -2,-11 -3,-22 -1,-11 -1,-23 0,-109 75.5,-184.5 Q 311,-840 420,-840 q 109,0 184.5,75.5 75.5,75.5 75.5,184.5 0,43 -13.5,81.5 Q 653,-460 629,-428 l 251,252 z m -615,-61 71,-71 70,71 29,-28 -71,-71 71,-71 -28,-28 -71,71 -71,-71 -28,28 71,71 -71,71 z"/></svg> 313<div class="mobile-wallet-adapter-embedded-modal-title">We can't find a wallet.</div> 314<div id="mobile-wallet-adapter-error-message" class="mobile-wallet-adapter-embedded-modal-subtitle"></div> 315<div> 316 <button data-error-action id="mobile-wallet-adapter-error-action" class="mobile-wallet-adapter-embedded-modal-error-action"> 317 Find a wallet 318 </button> 319</div> 320`,e6=` 321.mobile-wallet-adapter-embedded-modal-content { 322 text-align: center; 323} 324 325.mobile-wallet-adapter-embedded-modal-error-icon { 326 margin-top: 24px; 327} 328 329.mobile-wallet-adapter-embedded-modal-title { 330 margin: 18px 100px auto 100px; 331 color: #000000; 332 font-size: 2.75em; 333 font-weight: 600; 334} 335 336.mobile-wallet-adapter-embedded-modal-subtitle { 337 margin: 30px 60px 40px 60px; 338 color: #000000; 339 font-size: 1.25em; 340 font-weight: 400; 341} 342 343.mobile-wallet-adapter-embedded-modal-error-action { 344 display: block; 345 width: 100%; 346 height: 56px; 347 /*margin-top: 40px;*/ 348 font-size: 1.25em; 349 /*line-height: 24px;*/ 350 /*letter-spacing: -1%;*/ 351 background: #000000; 352 color: #FFFFFF; 353 border-radius: 18px; 354} 355 356/* Smaller screens */ 357@media all and (max-width: 600px) { 358 .mobile-wallet-adapter-embedded-modal-title { 359 font-size: 1.5em; 360 margin-right: 12px; 361 margin-left: 12px; 362 } 363 .mobile-wallet-adapter-embedded-modal-subtitle { 364 margin-right: 12px; 365 margin-left: 12px; 366 } 367} 368`;function e8(){return eW(this,void 0,void 0,function*(){if("undefined"!=typeof window){let e=window.navigator.userAgent.toLowerCase(),t=new e5;e.includes("wv")?t.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_BROWSER_NOT_SUPPORTED",message:""}):t.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_WALLET_NOT_FOUND",message:""}),t.open()}})}let e7="SolanaMobileWalletAdapterDefaultAuthorizationCache";t.LocalSolanaMobileWalletAdapterWallet=eJ,t.RemoteSolanaMobileWalletAdapterWallet=eX,t.SolanaMobileWalletAdapterWalletName=e$,t.createDefaultAuthorizationCache=function(){let e;try{e=window.localStorage}catch(e){}return{clear(){return eW(this,void 0,void 0,function*(){if(e)try{e.removeItem(e7)}catch(e){}})},get(){return eW(this,void 0,void 0,function*(){if(e)try{let t=JSON.parse(e.getItem(e7));if(!t||!t.accounts)return t||void 0;{let e=t.accounts.map(e=>Object.assign(Object.assign({},e),{publicKey:"publicKey"in e?new Uint8Array(Object.values(e.publicKey)):eR.default.decode(e.address)}));return Object.assign(Object.assign({},t),{accounts:e})}}catch(e){}})},set(t){return eW(this,void 0,void 0,function*(){if(e)try{e.setItem(e7,JSON.stringify(t))}catch(e){}})}}},t.createDefaultChainSelector=function(){return{select(e){return eW(this,void 0,void 0,function*(){return 1===e.length?e[0]:e.includes(ex.SOLANA_MAINNET_CHAIN)?ex.SOLANA_MAINNET_CHAIN:e[0]})}}},t.createDefaultWalletNotFoundHandler=function(){return()=>eW(this,void 0,void 0,function*(){e8()})},t.defaultErrorModalWalletNotFoundHandler=e8,t.registerMwa=function(e){"undefined"!=typeof window&&window.isSecureContext&&"undefined"!=typeof document&&/android/i.test(navigator.userAgent)?e4(new eJ(e)):"undefined"!=typeof window&&window.isSecureContext&&"undefined"!=typeof document&&!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&void 0!==e.remoteHostAuthority&&e4(new eX(Object.assign(Object.assign({},e),{remoteHostAuthority:e.remoteHostAuthority})))}},91829:function(e,t,n){"use strict";var i,r,a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Prom
368ise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWalletAdapter=t.WalletReadyState=t.EventEmitter=void 0,t.scopePollingDetectionStrategy=function(e){if("undefined"==typeof window||"undefined"==typeof document)return;let t=[];function n(){if(e())for(let e of t)e()}let i=setInterval(n,1e3);t.push(()=>clearInterval(i)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",n,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",n))),"complete"!==document.readyState&&(window.addEventListener("load",n,{once:!0}),t.push(()=>window.removeEventListener("load",n))),n()},t.isIosAndRedirectable=function(){if(!navigator)return!1;let e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),n=e.includes("safari");return t&&n};let s=o(n(18375));t.EventEmitter=s.default;let l=n(40917);(i=r||(t.WalletReadyState=r={})).Installed="Installed",i.NotDetected="NotDetected",i.Loadable="Loadable",i.Unsupported="Unsupported";class c extends s.default{get connected(){return!!this.publicKey}autoConnect(){return a(this,void 0,void 0,function*(){yield this.connect()})}prepareTransaction(e,t){return a(this,arguments,void 0,function*(e,t,n={}){let i=this.publicKey;if(!i)throw new l.WalletNotConnectedError;return e.feePayer=e.feePayer||i,e.recentBlockhash=e.recentBlockhash||(yield t.getLatestBlockhash({commitment:n.preflightCommitment,minContextSlot:n.minContextSlot})).blockhash,e})}}t.BaseWalletAdapter=c},40917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletWindowClosedError=t.WalletWindowBlockedError=t.WalletTimeoutError=t.WalletSignInError=t.WalletSignMessageError=t.WalletSignTransactionError=t.WalletSendTransactionError=t.WalletNotConnectedError=t.WalletKeypairError=t.WalletPublicKeyError=t.WalletAccountError=t.WalletDisconnectionError=t.WalletDisconnectedError=t.WalletConnectionError=t.WalletConfigError=t.WalletLoadError=t.WalletNotReadyError=t.WalletError=void 0;class n extends Error{constructor(e,t){super(e),this.error=t}}t.WalletError=n;class i extends n{constructor(){super(...arguments),this.name="WalletNotReadyError"}}t.WalletNotReadyError=i;class r extends n{constructor(){super(...arguments),this.name="WalletLoadError"}}t.WalletLoadError=r;class a extends n{constructor(){super(...arguments),this.name="WalletConfigError"}}t.WalletConfigError=a;class o extends n{constructor(){super(...arguments),this.name="WalletConnectionError"}}t.WalletConnectionError=o;class s extends n{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}t.WalletDisconnectedError=s;class l extends n{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}t.WalletDisconnectionError=l;class c extends n{constructor(){super(...arguments),this.name="WalletAccountError"}}t.WalletAccountError=c;class d extends n{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}t.WalletPublicKeyError=d;class u extends n{constructor(){super(...arguments),this.name="WalletKeypairError"}}t.WalletKeypairError=u;class h extends n{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}t.WalletNotConnectedError=h;class f extends n{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}t.WalletSendTransactionError=f;class g extends n{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}t.WalletSignTransactionError=g;class p extends n{constructor(){super(...arguments),this.name="WalletSignMessageError"}}t.WalletSignMessageError=p;class w extends n{constructor(){super(...arguments),this.name="WalletSignInError"}}t.WalletSignInError=w;class m extends n{constructor(){super(...arguments),this.name="WalletTimeoutError"}}t.WalletTimeoutError=m;class y extends n{constructor(){super(...arguments),this.name="WalletWindowBlockedError"}}t.WalletWindowBlockedError=y;class v extends n{constructor(){super(...arguments),this.name="WalletWindowClosedError"}}t.WalletWindowClosedError=v},11051:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);
368(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(91829),t),r(n(40917),t),r(n(96439),t),r(n(63690),t),r(n(82175),t),r(n(15142),t)},96439:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})},r=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseSignInMessageSignerWalletAdapter=t.BaseMessageSignerWalletAdapter=t.BaseSignerWalletAdapter=void 0;let a=n(91829),o=n(40917),s=n(82175);class l extends a.BaseWalletAdapter{sendTransaction(e,t){return i(this,arguments,void 0,function*(e,t,n={}){let i=!0;try{if((0,s.isVersionedTransaction)(e)){if(!this.supportedTransactionVersions)throw new o.WalletSendTransactionError("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(e.version))throw new o.WalletSendTransactionError(`Sending transaction version ${e.version} isn't supported by this wallet`);try{let i=(e=yield this.signTransaction(e)).serialize();return yield t.sendRawTransaction(i,n)}catch(e){if(e instanceof o.WalletSignTransactionError)throw i=!1,e;throw new o.WalletSendTransactionError(null==e?void 0:e.message,e)}}else try{let{signers:i}=n,a=r(n,["signers"]);e=yield this.prepareTransaction(e,t,a),(null==i?void 0:i.length)&&e.partialSign(...i);let o=(e=yield this.signTransaction(e)).serialize();return yield t.sendRawTransaction(o,a)}catch(e){if(e instanceof o.WalletSignTransactionError)throw i=!1,e;throw new o.WalletSendTransactionError(null==e?void 0:e.message,e)}}catch(e){throw i&&this.emit("error",e),e}})}signAllTransactions(e){return i(this,void 0,void 0,function*(){for(let t of e)if((0,s.isVersionedTransaction)(t)){if(!this.supportedTransactionVersions)throw new o.WalletSignTransactionError("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new o.WalletSignTransactionError(`Signing transaction version ${t.version} isn't supported by this wallet`)}let t=[];for(let n of e)t.push((yield this.signTransaction(n)));return t})}}t.BaseSignerWalletAdapter=l;class c extends l{}t.BaseMessageSignerWalletAdapter=c;class d extends c{}t.BaseSignInMessageSignerWalletAdapter=d},63690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWalletAdapterCompatibleStandardWallet=function(e){return r.StandardConnect in e.features&&r.StandardEvents in e.features&&(i.SolanaSignAndSendTransaction in e.features||i.SolanaSignTransaction in e.features)};let i=n(58653),r=n(80284)},82175:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVersionedTransaction=function(e){return"version"in e}},15142:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletAdapterNetwork=void 0,(i=n||(t.WalletAdapterNetwork=n={})).Mainnet="mainnet-beta",i.Testnet="testnet",i.Devnet="devnet"},34992:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SOLANA_CHAINS=t.SOLANA_LOCALNET_CHAIN=t.SOLANA_TESTNET_CHAIN=t.SOLANA_DEVNET_CHAIN=t.SOLANA_MAINNET_CHAIN=void 0,t.isSolanaChain=function(e){return t.SOLANA_CHAINS.includes(e)},t.SOLANA_MAINNET_CHAIN="solana:mainnet",t.SOLANA_DEVNET_CHAIN="solana:devnet",t.SOLANA_TESTNET_CHAIN="solana:testnet",t.SOLANA_LOCALNET_CHAIN="solana:localnet",t.SOLANA_CHAINS=[t.SOLANA_MAINNET_CHAIN,t.SOLANA_DEVNET_CHAIN,t.SOLANA_TESTNET_CHAIN,t.SOLANA_LOCALNET_CHAIN]},58653:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);
vendor: 1,972 bytes, line 368
368(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(79614),t),r(n(75593),t),r(n(32465),t),r(n(62891),t),r(n(81216),t)},81216:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignAndSendAllTransactions=void 0,t.SignAndSendAllTransactions="solana:signAndSendAllTransactions"},79614:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SolanaSignAndSendTransaction=void 0,t.SolanaSignAndSendTransaction="solana:signAndSendTransaction"},75593:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SolanaSignIn=void 0,t.SolanaSignIn="solana:signIn"},32465:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SolanaSignMessage=void 0,t.SolanaSignMessage="solana:signMessage"},62891:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SolanaSignTransaction=void 0,t.SolanaSignTransaction="solana:signTransaction"},84736:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Connect=t.StandardConnect=void 0,t.StandardConnect="standard:connect",t.Connect=t.StandardConnect},74225:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disconnect=t.StandardDisconnect=void 0,t.StandardDisconnect="standard:disconnect",t.Disconnect=t.StandardDisconnect},86574:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Events=t.StandardEvents=void 0,t.StandardEvents="standard:events",t.Events=t.StandardEvents},80284:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);
368(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(84736),t),r(n(74225),t),r(n(86574),t)},64053:function(e,t,n){"use strict";let i;n.r(t),n.d(t,{SolanaCloneAuthorization:function(){return f},SolanaMobileWalletAdapterError:function(){return o},SolanaMobileWalletAdapterErrorCode:function(){return a},SolanaMobileWalletAdapterProtocolError:function(){return l},SolanaMobileWalletAdapterProtocolErrorCode:function(){return s},SolanaSignInWithSolana:function(){return g},SolanaSignTransactions:function(){return h},startRemoteScenario:function(){return k},transact:function(){return W}});let r=`(?:\\nURI: (?<uri>[^\\n]+))?(?:\\nVersion: (?<version>[^\\n]+))?(?:\\nChain ID: (?<chainId>[^\\n]+))?(?:\\nNonce: (?<nonce>[^\\n]+))?(?:\\nIssued At: (?<issuedAt>[^\\n]+))?(?:\\nExpiration Time: (?<expirationTime>[^\\n]+))?(?:\\nNot Before: (?<notBefore>[^\\n]+))?(?:\\nRequest ID: (?<requestId>[^\\n]+))?(?:\\nResources:(?<resources>(?:\\n- [^\\n]+)*))?`;RegExp(`^(?<domain>[^\\n]+?) wants you to sign in with your Solana account:\\n(?<address>[^\\n]+)(?:\\n|$)(?:\\n(?<statement>[\\S\\s]*?)(?:\\n|$))??${r}\\n*$`);let a={ERROR_ASSOCIATION_PORT_OUT_OF_RANGE:"ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",ERROR_REFLECTOR_ID_OUT_OF_RANGE:"ERROR_REFLECTOR_ID_OUT_OF_RANGE",ERROR_FORBIDDEN_WALLET_BASE_URL:"ERROR_FORBIDDEN_WALLET_BASE_URL",ERROR_SECURE_CONTEXT_REQUIRED:"ERROR_SECURE_CONTEXT_REQUIRED",ERROR_SESSION_CLOSED:"ERROR_SESSION_CLOSED",ERROR_SESSION_TIMEOUT:"ERROR_SESSION_TIMEOUT",ERROR_WALLET_NOT_FOUND:"ERROR_WALLET_NOT_FOUND",ERROR_INVALID_PROTOCOL_VERSION:"ERROR_INVALID_PROTOCOL_VERSION",ERROR_BROWSER_NOT_SUPPORTED:"ERROR_BROWSER_NOT_SUPPORTED"};class o extends Error{constructor(...e){let[t,n,i]=e;super(n),this.code=t,this.data=i,this.name="SolanaMobileWalletAdapterError"}}let s={ERROR_AUTHORIZATION_FAILED:-1,ERROR_INVALID_PAYLOADS:-2,ERROR_NOT_SIGNED:-3,ERROR_NOT_SUBMITTED:-4,ERROR_TOO_MANY_PAYLOADS:-5,ERROR_ATTEST_ORIGIN_ANDROID:-100};class l extends Error{constructor(...e){let[t,n,i,r]=e;super(i),this.code=n,this.data=r,this.jsonRpcMessageId=t,this.name="SolanaMobileWalletAdapterProtocolError"}}function c(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}function d(e,t){let n=window.btoa(String.fromCharCode.call(null,...e));return t?n.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):n}function u(e,t){return c(this,void 0,void 0,function*(){let n=yield crypto.subtle.exportKey("raw",e),i=yield crypto.subtle.sign({hash:"SHA-256",name:"ECDSA"},t,n),r=new Uint8Array(n.byteLength+i.byteLength);return r.set(new Uint8Array(n),0),r.set(new Uint8Array(i),n.byteLength),r})}let h="solana:signTransactions",f="solana:cloneAuthorization",g="solana:signInWithSolana";function p(e,t){return new Proxy({},{get:(n,i)=>"then"===i?null:(null==n[i]&&(n[i]=function(n){return c(this,void 0,void 0,function*(){let{method:r,params:a}=function(e,t,n){let i=t,r=e.toString().replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`).toLowerCase();switch(e){case"authorize":{let{chain:e}=i;if("legacy"===n){switch(e){case"solana:testnet":e="testnet";break;case"solana:devnet":e="devnet";break;case"solana:mainnet":e="mainnet-beta";break;default:e=i.cluster}i.cluster=e}else{switch(e){case"testnet":case"devnet":e=`solana:${e}`;break;case"mainnet-beta":e="solana:mainnet"}i.chain=e}}case"reauthorize":{let{auth_token:e,identity:t}=i;e&&("legacy"===n?(r="reauthorize",i={auth_token:e,identity:t}):r="authorize")}}return{method:r,params:i}}(i,n,e),o=yield t(r,a);return"authorize"===r&&a.sign_in_payload&&!o.sign_in_result&&(o.sign_in_result=yield function(e,t,n){var i;return c(this,void 0,void 0,function*(){var r;let a=null!==(i=e.domain)&&void 0!==i?i:window.location.host,o=t.accounts[0].address,s=(r=function(e){let t=`${e.domain} wants you to sign in with your Solana account: 369`;t+=`${e.address}`,e.statement&&(t+=` 370 371${e.statement}`);let n=[];if(e.uri&&n.push(`URI: ${e.uri}
371`),e.version&&n.push(`Version: ${e.version}`),e.chainId&&n.push(`Chain ID: ${e.chainId}`),e.nonce&&n.push(`Nonce: ${e.nonce}`),e.issuedAt&&n.push(`Issued At: ${e.issuedAt}`),e.expirationTime&&n.push(`Expiration Time: ${e.expirationTime}`),e.notBefore&&n.push(`Not Before: ${e.notBefore}`),e.requestId&&n.push(`Request ID: ${e.requestId}`),e.resources)for(let t of(n.push("Resources:"),e.resources))n.push(`- ${t}`);return n.length&&(t+=` 372 373${n.join("\n")}`),t}(Object.assign(Object.assign({},e),{domain:a,address:o})),window.btoa(r)),l=yield n("sign_messages",{addresses:[o],payloads:[s]});return{address:o,signed_message:s,signature:l.signed_payloads[0].slice(s.length)}})}(a.sign_in_payload,o,t)),function(e,t,n){if("getCapabilities"===e)switch(n){case"legacy":{let e=[h];return!0===t.supports_clone_authorization&&e.push(f),Object.assign(Object.assign({},t),{features:e})}case"v1":return Object.assign(Object.assign({},t),{supports_sign_and_send_transactions:!0,supports_clone_authorization:t.features.includes(f)})}return t}(i,o,e)})}),n[i]),defineProperty:()=>!1,deleteProperty:()=>!1})}function w(e,t){return c(this,void 0,void 0,function*(){let n=e.slice(0,4),r=e.slice(4,16),a=e.slice(16),o=yield crypto.subtle.decrypt(m(n,r),t,a);return(void 0===i&&(i=new TextDecoder("utf-8")),i).decode(o)})}function m(e,t){return{additionalData:e,iv:t,name:"AES-GCM",tagLength:128}}function y(){return c(this,void 0,void 0,function*(){return yield crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"])})}function v(){return c(this,void 0,void 0,function*(){return yield crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"])})}function M(e){let t="",n=new Uint8Array(e),i=n.byteLength;for(let e=0;e<i;e++)t+=String.fromCharCode(n[e]);return window.btoa(t)}function E(e){if(e<49152||e>65535)throw new o(a.ERROR_ASSOCIATION_PORT_OUT_OF_RANGE,`Association port number must be between 49152 and 65535. ${e} given.`,{port:e});return e}function b(e){return e.replace(/[/+=]/g,e=>({"/":"_","+":"-","=":"."})[e])}function S(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function N(e,t){let n=null;if(t){try{n=new URL(t)}catch(e){}if((null==n?void 0:n.protocol)!=="https:")throw new o(a.ERROR_FORBIDDEN_WALLET_BASE_URL,"Base URLs supplied by wallets must be valid `https` URLs")}return n||(n=new URL("solana-wallet:/")),new URL(e.startsWith("/")?e:[...S(n.pathname),...S(e)].join("/"),n)}function I(e,t){return c(this,void 0,void 0,function*(){return function(e,t,n){return c(this,void 0,void 0,function*(){let i=function(e){if(e>=4294967296)throw Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e,!1),new Uint8Array(t)}(t),r=new Uint8Array(12);crypto.getRandomValues(r);let a=yield crypto.subtle.encrypt(m(i,r),n,new TextEncoder().encode(e)),o=new Uint8Array(i.byteLength+r.byteLength+a.byteLength);return o.set(new Uint8Array(i),0),o.set(new Uint8Array(r),i.byteLength),o.set(new Uint8Array(a),i.byteLength+r.byteLength),o})}(JSON.stringify(e),e.id,t)})}function L(e,t){return c(this,void 0,void 0,function*(){let n=JSON.parse((yield w(e,t)));if(Object.hasOwnProperty.call(n,"error"))throw new l(n.id,n.error.code,n.error.message);return n})}function A(e,t,n){return c(this,void 0,void 0,function*(){let[i,r]=yield Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e.slice(0,65),{name:"ECDH",namedCurve:"P-256"},!1,[])]),a=yield crypto.subtle.deriveBits({name:"ECDH",public:r},n,256),o=yield crypto.subtle.importKey("raw",a,"HKDF",!1,["deriveKey"]);return yield crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(i),info:new Uint8Array},o,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"])})}function T(e,t){return c(this,void 0,void 0,function*(){let n=JSON.parse((yield w(e,t))),i="legacy";if(Object.hasOwnProperty.call(n,"v"))switch(n.v){case 1:case"1":case"v1":i="v1";break;case"legacy":i="legacy";break;default:throw new o(a.ERROR_INVALID_PROTOCOL_VERSION,`Unknown/unsupported protocol version: ${n.v}`)}return{protocol_version:i}})}let j={Firefox:0,Other:1},C=null,_=[150,150,200,500,500,750,750,1e3],O="com.solana.mobilewalletadapter.v1",x="com.solana.mobilewalletadapter.v1.base64";function D(){if("undefined"==typeof window||!0!==window.isSecureContext)throw new o(a.ERROR_SECURE_CONTEXT_REQUIRED,"The mobile wallet adapter protocol must be used in a secure context (`https`).")}function z(e){let t;try{t=new URL(e)}catch(e){throw new o(a.ERROR_FORBIDDEN_WALLET_BASE_URL,"Invalid base URL supplied by wallet")}if("https:"!==t.protocol)throw new o(a.ERROR_FORBIDDEN_WALLET_BASE_URL,"Base URLs supplied by wallets must be valid `https` URLs")}function R(e){return new DataView(e).getUint32(0,!1)}function W(e,t){return c(this,void 0,void 0,function*(){let n;D();let i=yield y(),r=yield function(e,t){return c(this,void 0,void 0,function*(){let n=E(49152+Math.floor(16384*Math.random())),i=yield function(e,t,n,i=["v1"]){return c(this,void 0,void 0,function*(){let r=E(t),a=M((yield crypto.subtle.exportKey("raw",e))),o=N("v1/associate/local",n);return o.searchParams.set("association",b(a)),o.searchParams.set("port",`${r}
373`),i.forEach(e=>{o.searchParams.set("v",e)}),o})}(e,n,t);return yield function(e){return c(this,void 0,void 0,function*(){if("https:"===e.protocol)window.location.assign(e);else try{switch(-1!==navigator.userAgent.indexOf("Firefox/")?j.Firefox:j.Other){case j.Firefox:null==C&&((C=document.createElement("iframe")).style.display="none",document.body.appendChild(C)),C.contentWindow.location.href=e.toString();break;case j.Other:{let t=new Promise((e,t)=>{function n(){clearTimeout(r),window.removeEventListener("blur",i)}function i(){n(),e()}window.addEventListener("blur",i);let r=setTimeout(()=>{n(),t()},3e3)});window.location.assign(e),yield t}}}catch(e){throw new o(a.ERROR_WALLET_NOT_FOUND,"Found no installed wallet that supports the mobile wallet protocol.")}})}(i),n})}(i.publicKey,null==t?void 0:t.baseUri),s=`ws://localhost:${r}/solana-wallet`,d=(()=>{let e=[..._];return()=>e.length>1?e.shift():e[0]})(),h=1,f=0,g={__type:"disconnected"};return new Promise((t,r)=>{let w,m,y;let M={},E=()=>c(this,void 0,void 0,function*(){if("connecting"!==g.__type){console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${g.__type}\`.`);return}w.removeEventListener("open",E);let{associationKeypair:e}=g,t=yield v();w.send((yield u(t.publicKey,e.privateKey))),g={__type:"hello_req_sent",associationPublicKey:e.publicKey,ecdhPrivateKey:t.privateKey}}),b=e=>{e.wasClean?g={__type:"disconnected"}:r(new o(a.ERROR_SESSION_CLOSED,`The wallet session dropped unexpectedly (${e.code}: ${e.reason}).`,{closeEvent:e})),m()},S=e=>c(this,void 0,void 0,function*(){m(),Date.now()-n>=3e4?r(new o(a.ERROR_SESSION_TIMEOUT,`Failed to connect to the wallet websocket at ${s}.`)):(yield new Promise(e=>{let t=d();y=window.setTimeout(e,t)}),j())}),N=n=>c(this,void 0,void 0,function*(){let a=yield n.data.arrayBuffer();switch(g.__type){case"connecting":if(0!==a.byteLength)throw Error("Encountered unexpected message while connecting");let o=yield v();w.send((yield u(o.publicKey,i.privateKey))),g={__type:"hello_req_sent",associationPublicKey:i.publicKey,ecdhPrivateKey:o.privateKey};break;case"connected":try{let e=a.slice(0,4),t=R(e);if(t!==f+1)throw Error("Encrypted message has invalid sequence number");f=t;let n=yield L(a,g.sharedSecret),i=M[n.id];delete M[n.id],i.resolve(n.result)}catch(e){if(e instanceof l){let t=M[e.jsonRpcMessageId];delete M[e.jsonRpcMessageId],t.reject(e)}else throw e}break;case"hello_req_sent":{if(0===a.byteLength){let e=yield v();w.send((yield u(e.publicKey,i.privateKey))),g={__type:"hello_req_sent",associationPublicKey:i.publicKey,ecdhPrivateKey:e.privateKey};break}let n=yield A(a,g.associationPublicKey,g.ecdhPrivateKey),o=a.slice(65),s=0!==o.byteLength?yield c(this,void 0,void 0,function*(){let e=R(o.slice(0,4));if(e!==f+1)throw Error("Encrypted message has invalid sequence number");return f=e,T(o,n)}):{protocol_version:"legacy"};g={__type:"connected",sharedSecret:n,sessionProperties:s};let l=p(s.protocol_version,(e,t)=>c(this,void 0,void 0,function*(){let i=h++;return w.send((yield I({id:i,jsonrpc:"2.0",method:e,params:null!=t?t:{}},n))),new Promise((t,n)=>{M[i]={resolve(i){switch(e){case"authorize":case"reauthorize":{let{wallet_uri_base:e}=i;if(null!=e)try{z(e)}catch(e){n(e);return}}}t(i)},reject:n}})}));try{t((yield e(l)))}catch(e){r(e)}finally{m(),w.close()}}}}),j=()=>{m&&m(),g={__type:"connecting",associationKeypair:i},void 0===n&&(n=Date.now()),(w=new WebSocket(s,[O])).addEventListener("open",E),w.addEventListener("close",b),w.addEventListener("error",S),w.addEventListener("message",N),m=()=>{window.clearTimeout(y),w.removeEventListener("open",E),w.removeEventListener("close",b),w.removeEventListener("error",S),w.removeEventListener("message",N)}};j()})})}function k(e){return c(this,void 0,void 0,function*(){let t,n,i,r,s;D();let h=yield y(),f=`wss://${null==e?void 0:e.remoteHostAuthority}/reflect`,g=(()=>{let e=[..._];return()=>e.length>1?e.shift():e[0]})(),w=1,m=0,E={__type:"disconnected"},S=e=>c(this,void 0,void 0,function*(){var t;return"base64"!=n?yield e.data.arrayBuffer():(t=yield e.data,new Uint8Array(window.atob(t).split("").map(e=>e.charCodeAt(0)))).buffer}),j=yield new Promise((s,l)=>{let u;let p=()=>c(this,void 0,void 0,function*(){if("connecting"!==E.__type){console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${E.__type}\`.`);return}n=i.protocol.includes(x)?"base64":"binary",i.removeEventListener("open",p)}),w=e=>{e.wasClean?E={__type:"disconnected"}:l(new o(a.ERROR_SESSION_CLOSED,`The wallet session dropped unexpectedly (${e.code}: ${e.reason}).`,{closeEvent:e})),r()},m=e=>c(this,void 0,void 0,function*(){r(),Date.now()-t>=3e4?l(new o(a.ERROR_SESSION_TIMEOUT,`Failed to connect to the wallet websocket at ${f}.`)):(yield new Promise(e=>{let t=g();u=window.setTimeout(e,t)}),v())}),y=t=>c(this,void 0,void 0,function*(){let n=yield S(t);if("connecting"===E.__type){if(0==n.byteLength)throw Error("Encountered unexpected message while connecting");let t=function(e){let{value:t,offset:n}=function(e){var t,n=new Uint8Array(e),i=e.byteLength,r=0,a=0;do{if(a>=i||a>10)throw RangeError("Failed to decode varint");r|=(127&(t=n[a++]))<<7*a}while(t>=128);return{value:r,offset:a}}(e);return new Uint8Array(e.slice(n,n+t))}(n);E={__type:"reflector_id_received",reflectorId:t};let r=yield function(e,t,n,i,r=["v1"]){return c(this,void 0,void 0,function*(){let a=M((yield crypto.subtle.exportKey("raw",e))),o=N("v1/associate/remote",i);return o.searchParams.set("association",b(a)),o.searchParams.set("reflector",`${t}`),o.searchParams.set("id",`${d(n,!0)}
373`),r.forEach(e=>{o.searchParams.set("v",e)}),o})}(h.publicKey,e.remoteHostAuthority,t,null==e?void 0:e.baseUri);i.removeEventListener("message",y),s(r)}}),v=()=>{r&&r(),E={__type:"connecting",associationKeypair:h},void 0===t&&(t=Date.now()),(i=new WebSocket(f,[O,x])).addEventListener("open",p),i.addEventListener("close",w),i.addEventListener("error",m),i.addEventListener("message",y),r=()=>{window.clearTimeout(u),i.removeEventListener("open",p),i.removeEventListener("close",w),i.removeEventListener("error",m),i.removeEventListener("message",y)}};v()}),C=!1;return{associationUrl:j,close:()=>{i.close(),s()},wallet:new Promise((e,t)=>{let f={},g=r=>c(this,void 0,void 0,function*(){let a=yield S(r);switch(E.__type){case"reflector_id_received":if(0!==a.byteLength)throw Error("Encountered unexpected message while awaiting reflection");let o=yield v(),s=yield u(o.publicKey,h.privateKey);"base64"==n?i.send(d(s)):i.send(s),E={__type:"hello_req_sent",associationPublicKey:h.publicKey,ecdhPrivateKey:o.privateKey};break;case"connected":try{let e=a.slice(0,4),t=R(e);if(t!==m+1)throw Error("Encrypted message has invalid sequence number");m=t;let n=yield L(a,E.sharedSecret),i=f[n.id];delete f[n.id],i.resolve(n.result)}catch(e){if(e instanceof l){let t=f[e.jsonRpcMessageId];delete f[e.jsonRpcMessageId],t.reject(e)}else throw e}break;case"hello_req_sent":{let r=yield A(a,E.associationPublicKey,E.ecdhPrivateKey),o=a.slice(65),s=0!==o.byteLength?yield c(this,void 0,void 0,function*(){let e=R(o.slice(0,4));if(e!==m+1)throw Error("Encrypted message has invalid sequence number");return m=e,T(o,r)}):{protocol_version:"legacy"};E={__type:"connected",sharedSecret:r,sessionProperties:s};let l=p(s.protocol_version,(e,t)=>c(this,void 0,void 0,function*(){let a=w++,o=yield I({id:a,jsonrpc:"2.0",method:e,params:null!=t?t:{}},r);return"base64"==n?i.send(d(o)):i.send(o),new Promise((t,n)=>{f[a]={resolve(i){switch(e){case"authorize":case"reauthorize":{let{wallet_uri_base:e}=i;if(null!=e)try{z(e)}catch(e){n(e);return}}}t(i)},reject:n}})}));C=!0;try{e(l)}catch(e){t(e)}}}});i.addEventListener("message",g),s=()=>{i.removeEventListener("message",g),r(),C||t(new o(a.ERROR_SESSION_CLOSED,"The wallet session was closed before connection.",{closeEvent:new CloseEvent("socket was closed before connection")}))}})}})}},64060:function(e,t,n){"use strict";n.d(t,{H:function(){return c},i1:function(){return r},mI:function(){return s},su:function(){return l}});var i,r,a=n(48191),o=n(64807);(i=r||(r={})).Installed="Installed",i.NotDetected="NotDetected",i.Loadable="Loadable",i.Unsupported="Unsupported";class s extends a.Z{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(e,t,n={}){let i=this.publicKey;if(!i)throw new o.oS;return e.feePayer=e.feePayer||i,e.recentBlockhash=e.recentBlockhash||(await t.getLatestBlockhash({commitment:n.preflightCommitment,minContextSlot:n.minContextSlot})).blockhash,e}}function l(e){if("undefined"==typeof window||"undefined"==typeof document)return;let t=[];function n(){if(e())for(let e of t)e()}let i=setInterval(n,1e3);t.push(()=>clearInterval(i)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",n,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",n))),"complete"!==document.readyState&&(window.addEventListener("load",n,{once:!0}),t.push(()=>window.removeEventListener("load",n))),n()}function c(){if(!navigator)return!1;let e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),n=e.includes("safari");return t&&n}},64807:function(e,t,n){"use strict";n.d(t,{$w:function(){return s},IW:function(){return f},Nx:function(){return u},OZ:function(){return r},PY:function(){return g},UG:function(){return c},W8:function(){return a},at:function(){return l},bD:function(){return w},cO:function(){return d},fk:function(){return p},lj:function(){return i},oS:function(){return h},p6:function(){return o}});class i extends Error{constructor(e,t){super(e),this.error=t}}class r extends i{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class a extends i{constructor(){super(...arguments),this.name="WalletLoadError"}}class o extends i{constructor(){super(...arguments),this.name="WalletConfigError"}}class s extends i{constructor(){super(...arguments),this.name="WalletConnectionError"}}class l extends i{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class c extends i{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class d extends i{constructor(){super(...arguments),this.name="WalletAccountError"}}class u extends i{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class h extends i{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class f extends i{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class g extends i{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}class p extends i{constructor(){super(...arguments),this.name="WalletSignMessageError"}}class w extends i{constructor(){super(...arguments),this.name="WalletSignInError"}}},58227:function(e,t,n){"use strict";n.d(t,{eC:function(){return s},qz:function(){return l}});var i=n(64060),r=n(64807),a=n(42841);class o extends i.mI{async sendTransaction(e,t,n={}){let i=!0;try{if((0,a.W)(e)){if(!this.supportedTransactionVersions)throw new r.IW("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(e.version))throw new r.IW(`Sending transaction version ${e.ver
373sion} isn't supported by this wallet`);try{let i=(e=await this.signTransaction(e)).serialize();return await t.sendRawTransaction(i,n)}catch(e){if(e instanceof r.PY)throw i=!1,e;throw new r.IW(e?.message,e)}}else try{let{signers:i,...r}=n;e=await this.prepareTransaction(e,t,r),i?.length&&e.partialSign(...i);let a=(e=await this.signTransaction(e)).serialize();return await t.sendRawTransaction(a,r)}catch(e){if(e instanceof r.PY)throw i=!1,e;throw new r.IW(e?.message,e)}}catch(e){throw i&&this.emit("error",e),e}}async signAllTransactions(e){for(let t of e)if((0,a.W)(t)){if(!this.supportedTransactionVersions)throw new r.PY("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new r.PY(`Signing transaction version ${t.version} isn't supported by this wallet`)}let t=[];for(let n of e)t.push(await this.signTransaction(n));return t}}class s extends o{}class l extends s{}},42841:function(e,t,n){"use strict";function i(e){return"version"in e}n.d(t,{W:function(){return i}})},26215:function(e,t,n){"use strict";var i,r;n.d(t,{Q:function(){return i}}),(r=i||(i={})).Mainnet="mainnet-beta",r.Testnet="testnet",r.Devnet="devnet"},61305:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var i=n(58227),r=n(64060),a=n(64807),o=n(42841),s=n(55041);class l extends i.eC{constructor(e={}){super(),this.name="Phantom",this.url="https://phantom.app",this.icon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiB2aWV3Qm94PSIwIDAgMTA4IDEwOCIgZmlsbD0ibm9uZSI+CjxyZWN0IHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiByeD0iMjYiIGZpbGw9IiNBQjlGRjIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ni41MjY3IDY5LjkyMjlDNDIuMDA1NCA3Ni44NTA5IDM0LjQyOTIgODUuNjE4MiAyNC4zNDggODUuNjE4MkMxOS41ODI0IDg1LjYxODIgMTUgODMuNjU2MyAxNSA3NS4xMzQyQzE1IDUzLjQzMDUgNDQuNjMyNiAxOS44MzI3IDcyLjEyNjggMTkuODMyN0M4Ny43NjggMTkuODMyNyA5NCAzMC42ODQ2IDk0IDQzLjAwNzlDOTQgNTguODI1OCA4My43MzU1IDc2LjkxMjIgNzMuNTMyMSA3Ni45MTIyQzcwLjI5MzkgNzYuOTEyMiA2OC43MDUzIDc1LjEzNDIgNjguNzA1MyA3Mi4zMTRDNjguNzA1MyA3MS41NzgzIDY4LjgyNzUgNzAuNzgxMiA2OS4wNzE5IDY5LjkyMjlDNjUuNTg5MyA3NS44Njk5IDU4Ljg2ODUgODEuMzg3OCA1Mi41NzU0IDgxLjM4NzhDNDcuOTkzIDgxLjM4NzggNDUuNjcxMyA3OC41MDYzIDQ1LjY3MTMgNzQuNDU5OEM0NS42NzEzIDcyLjk4ODQgNDUuOTc2OCA3MS40NTU2IDQ2LjUyNjcgNjkuOTIyOVpNODMuNjc2MSA0Mi41Nzk0QzgzLjY3NjEgNDYuMTcwNCA4MS41NTc1IDQ3Ljk2NTggNzkuMTg3NSA0Ny45NjU4Qzc2Ljc4MTYgNDcuOTY1OCA3NC42OTg5IDQ2LjE3MDQgNzQuNjk4OSA0Mi41Nzk0Qzc0LjY5ODkgMzguOTg4NSA3Ni43ODE2IDM3LjE5MzEgNzkuMTg3NSAzNy4xOTMxQzgxLjU1NzUgMzcuMTkzMSA4My42NzYxIDM4Ljk4ODUgODMuNjc2MSA0Mi41Nzk0Wk03MC4yMTAzIDQyLjU3OTVDNzAuMjEwMyA0Ni4xNzA0IDY4LjA5MTYgNDcuOTY1OCA2NS43MjE2IDQ3Ljk2NThDNjMuMzE1NyA0Ny45NjU4IDYxLjIzMyA0Ni4xNzA0IDYxLjIzMyA0Mi41Nzk1QzYxLjIzMyAzOC45ODg1IDYzLjMxNTcgMzcuMTkzMSA2NS43MjE2IDM3LjE5MzFDNjguMDkxNiAzNy4xOTMxIDcwLjIxMDMgMzguOTg4NSA3MC4yMTAzIDQyLjU3OTVaIiBmaWxsPSIjRkZGREY4Ii8+Cjwvc3ZnPg==",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState="undefined"==typeof window||"undefined"==typeof document?r.i1.Unsupported:r.i1.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null,this.emit("error",new a.at),this.emit("disconnect"))},this._accountChanged=e=>{let t=this._publicKey;if(t){try{e=new s.PublicKey(e.toBytes())}catch(e){this.emit("error",new a.Nx(e?.message,e));return}t.equals(e)||(this._publicKey=e,this.emit("connect",e))}},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==r.i1.Unsupported&&((0,r.H)()?(this._readyState=r.i1.Loadable,this.emit("readyStateChange",this._readyState)):(0,r.su)(()=>!!(window.phantom?.solana?.isPhantom||window.solana?.isPhantom)&&(this._readyState=r.i1.Installed,this.emit("readyStateChange",this._readyState),!0)))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async autoConnect(){this.readyState===r.i1.Installed&&await this.connect()}async connect(){try{let e;if(this.connected||this.connecting)return;if(this.readyState===r.i1.Loadable){let e=encodeURIComponent(window.location.href),t=encodeURIComponent(window.location.origin);window.location.href=`https://phantom.app/ul/browse/${e}?ref=${t}`;return}if(this.readyState!==r.i1.Installed)throw new a.OZ;this._connecting=!0;let t=window.phantom?.solana||window.solana;if(!t.isConnected)try{await t.connect()}catch(e){throw new a.$w(e?.message,e)}if(!t.publicKey)throw new a.cO;try{e=new s.PublicKey(t.publicKey.toBytes())}catch(e){throw new a.Nx(e?.message,e)}t.on("disconnect",this._disconnected),t.on("accountChanged",this._accountChanged),this._wallet=t,this._publicKey=e,this.emit
373("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new a.UG(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,n={}){try{let i=this._wallet;if(!i)throw new a.oS;try{let{signers:r,...a}=n;(0,o.W)(e)?r?.length&&e.sign(r):(e=await this.prepareTransaction(e,t,a),r?.length&&e.partialSign(...r)),a.preflightCommitment=a.preflightCommitment||t.commitment;let{signature:s}=await i.signAndSendTransaction(e,a);return s}catch(e){if(e instanceof a.lj)throw e;throw new a.IW(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new a.oS;try{return await t.signTransaction(e)||e}catch(e){throw new a.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new a.oS;try{return await t.signAllTransactions(e)||e}catch(e){throw new a.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new a.oS;try{let{signature:n}=await t.signMessage(e);return n}catch(e){throw new a.fk(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}},84874:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var i=n(7653);let r=e=>i.createElement("button",{className:`wallet-adapter-button ${e.className||""}`,disabled:e.disabled,style:e.style,onClick:e.onClick,tabIndex:e.tabIndex||0,type:"button"},e.startIcon&&i.createElement("i",{className:"wallet-adapter-button-start-icon"},e.startIcon),e.children,e.endIcon&&i.createElement("i",{className:"wallet-adapter-button-end-icon"},e.endIcon))},57289:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var i=n(7653);let r=({wallet:e,...t})=>e&&i.createElement("img",{src:e.adapter.icon,alt:`${e.adapter.name} icon`,...t})},94505:function(e,t,n){"use strict";n.d(t,{x:function(){return f}});var i=n(64060),r=n(40879),a=n(7653),o=n(3458);let s=({id:e,children:t,expanded:n=!1})=>{let i=(0,a.useRef)(null),r=(0,a.useRef)(!0),o=()=>{let e=i.current;e&&requestAnimationFrame(()=>{e.style.height=e.scrollHeight+"px"})},s=()=>{let e=i.current;e&&requestAnimationFrame(()=>{e.style.height=e.offsetHeight+"px",e.style.overflow="hidden",requestAnimationFrame(()=>{e.style.height="0"})})};return(0,a.useLayoutEffect)(()=>{n?o():s()},[n]),(0,a.useLayoutEffect)(()=>{let e=i.current;if(e)return r.current&&(t(),r.current=!1),e.addEventListener("transitionend",a),()=>e.removeEventListener("transitionend",a);function t(){e&&(e.style.overflow=n?"initial":"hidden",n&&(e.style.height="auto"))}function a(n){e&&n.target===e&&"height"===n.propertyName&&t()}},[n]),a.createElement("div",{className:"wallet-adapter-collapse",id:e,ref:i,role:"region",style:{height:0,transition:r.current?void 0:"height 250ms ease-out"}},t)};var l=n(84874),c=n(57289);let d=({handleClick:e,tabIndex:t,wallet:n})=>a.createElement("li",null,a.createElement(l.z,{onClick:e,startIcon:a.createElement(c.o,{wallet:n}),tabIndex:t},n.adapter.name,n.readyState===i.i1.Installed&&a.createElement("span",null,"Detected"))),u=()=>a.createElement("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{cx:"48.5",cy:"48",r:"48",fill:"url(#paint0_linear_880_5115)",fillOpacity:"0.1"}),a.createElement("circle",{cx:"48.5",cy:"48",r:"47",stroke:"url(#paint1_linear_880_5115)",strokeOpacity:"0.4",strokeWidth:"2"}),a.createElement("g",{clipPath:"url(#clip0_880_5115)"},a.createElement("path",{d:"M65.5769 28.1523H31.4231C27.6057 28.1523 24.5 31.258 24.5 35.0754V60.9215C24.5 64.7389 27.6057 67.8446 31.4231 67.8446H65.5769C69.3943 67.8446 72.5 64.7389 72.5 60.9215V35.0754C72.5 31.258 69.3943 28.1523 65.5769 28.1523ZM69.7308 52.1523H59.5769C57.2865 52.1523 55.4231 50.289 55.4231 47.9985C55.4231 45.708 57.2864 43.8446 59.5769 43.8446H69.7308V52.1523ZM69.7308 41.0754H59.5769C55.7595 41.0754 52.6539 44.1811 52.6539 47.9985C52.6539 51.8159 55.7595 54.9215 59.5769 54.9215H69.7308V60.9215C69.7308 63.2119 67.8674 65.0754 65.5769 65.0754H31.4231C29.1327 65.0754 27.2692 63.212 27.2692 60.9215V35.0754C27.2692 32.785 29.1326 30.9215 31.4231 30.9215H65.5769C67.8673 30.9215 69.7308 32.7849 69.7308 35.0754V41.0754Z",fill:"url(#paint2_linear_880_5115)"}),a.createElement("path",{d:"M61.4231 46.6172H59.577C58.8123 46.6172 58.1924 47.2371 58.1924 48.0018C58.1924 48.7665 58.8123 49.3863 59.577 49.3863H61.4231C62.1878 49.3863 62.8077 48.7664 62.8
373077 48.0018C62.8077 47.2371 62.1878 46.6172 61.4231 46.6172Z",fill:"url(#paint3_linear_880_5115)"})),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#9945FF"}),a.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),a.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),a.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),a.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),a.createElement("stop",{offset:"1",stopColor:"#00D18C"})),a.createElement("linearGradient",{id:"paint1_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#9945FF"}),a.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),a.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),a.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),a.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),a.createElement("stop",{offset:"1",stopColor:"#00D18C"})),a.createElement("linearGradient",{id:"paint2_linear_880_5115",x1:"25.9583",y1:"68.7101",x2:"67.2337",y2:"23.7879",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#9945FF"}),a.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),a.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),a.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),a.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),a.createElement("stop",{offset:"1",stopColor:"#00D18C"})),a.createElement("linearGradient",{id:"paint3_linear_880_5115",x1:"58.3326",y1:"49.4467",x2:"61.0002",y2:"45.4453",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#9945FF"}),a.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),a.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),a.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),a.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),a.createElement("stop",{offset:"1",stopColor:"#00D18C"})),a.createElement("clipPath",{id:"clip0_880_5115"},a.createElement("rect",{width:"48",height:"48",fill:"white",transform:"translate(24.5 24)"}
373))));var h=n(82211);let f=({className:e="",container:t="body"})=>{let n=(0,a.useRef)(null),{wallets:l,select:c}=(0,r.O)(),{setVisible:f}=(0,h.h)(),[g,p]=(0,a.useState)(!1),[w,m]=(0,a.useState)(!1),[y,v]=(0,a.useState)(null),[M,E]=(0,a.useMemo)(()=>{let e=[],t=[];for(let n of l)n.readyState===i.i1.Installed?e.push(n):t.push(n);return e.length?[e,t]:[t,[]]},[l]),b=(0,a.useCallback)(()=>{m(!1),setTimeout(()=>f(!1),150)},[f]),S=(0,a.useCallback)(e=>{e.preventDefault(),b()},[b]),N=(0,a.useCallback)((e,t)=>{c(t),S(e)},[c,S]),I=(0,a.useCallback)(()=>p(!g),[g]),L=(0,a.useCallback)(e=>{let t=n.current;if(!t)return;let i=t.querySelectorAll("button"),r=i[0],a=i[i.length-1];e.shiftKey?document.activeElement===r&&(a.focus(),e.preventDefault()):document.activeElement===a&&(r.focus(),e.preventDefault())},[n]);return(0,a.useLayoutEffect)(()=>{let e=e=>{"Escape"===e.key?b():"Tab"===e.key&&L(e)},{overflow:t}=window.getComputedStyle(document.body);return setTimeout(()=>m(!0),0),document.body.style.overflow="hidden",window.addEventListener("keydown",e,!1),()=>{document.body.style.overflow=t,window.removeEventListener("keydown",e,!1)}},[b,L]),(0,a.useLayoutEffect)(()=>v(document.querySelector(t)),[t]),y&&(0,o.createPortal)(a.createElement("div",{"aria-labelledby":"wallet-adapter-modal-title","aria-modal":"true",className:`wallet-adapter-modal ${w&&"wallet-adapter-modal-fade-in"} ${e}`,ref:n,role:"dialog"},a.createElement("div",{className:"wallet-adapter-modal-container"},a.createElement("div",{className:"wallet-adapter-modal-wrapper"},a.createElement("button",{onClick:S,className:"wallet-adapter-modal-button-close"},a.createElement("svg",{width:"14",height:"14"},a.createElement("path",{d:"M14 12.461 8.3 6.772l5.234-5.233L12.006 0 6.772 5.234 1.54 0 0 1.539l5.234 5.233L0 12.006l1.539 1.528L6.772 8.3l5.69 5.7L14 12.461z"}))),M.length?a.createElement(a.Fragment,null,a.createElement("h1",{className:"wallet-adapter-modal-title"},"Connect a wallet on Solana to continue"),a.createElement("ul",{className:"wallet-adapter-modal-list"},M.map(e=>a.createElement(d,{key:e.adapter.name,handleClick:t=>N(t,e.adapter.name),wallet:e})),E.length?a.createElement(s,{expanded:g,id:"wallet-adapter-modal-collapse"},E.map(e=>a.createElement(d,{key:e.adapter.name,handleClick:t=>N(t,e.adapter.name),tabIndex:g?0:-1,wallet:e}))):null),E.length?a.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:I,tabIndex:0},a.createElement("span",null,g?"Less ":"More ","options"),a.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${g?"wallet-adapter-modal-list-more-icon-rotate":""}`},a.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))):null):a.createElement(a.Fragment,null,a.createElement("h1",{className:"wallet-adapter-modal-title"},"You'll need a wallet on Solana to continue"),a.createElement("div",{className:"wallet-adapter-modal-middle"},a.createElement(u,null)),E.length?a.createElement(a.Fragment,null,a.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:I,tabIndex:0},a.createElement("span",null,g?"Hide ":"Already have a wallet? View ","options"),a.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${g?"wallet-adapter-modal-list-more-icon-rotate":""}`},a.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))),a.createElement(s,{expanded:g,id:"wallet-adapter-modal-collapse"},a.createElement("ul",{className:"wallet-adapter-modal-list"},E.map(e=>a.createElement(d,{key:e.adapter.name,handleClick:t=>N(t,e.adapter.name),tabIndex:g?0:-1,wallet:e}))))):null))),a.createElement("div",{className:"wallet-adapter-modal-overlay",onMouseDown:S})),y)}},84198:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var i=n(7653),r=n(82211),a=n(94505);let o=({children:e,...t})=>{let[n,o]=(0,i.useState)(!1);return i.createElement(r.g.Provider,{value:{visible:n,setVisible:o}},e,n&&i.createElement(a.x,{...t}))}},82211:function(e,t,n){"use strict";n.d(t,{g:function(){return o},h:function(){return s}});var i=n(7653);
373let r={setVisible(e){console.error(a("call","setVisible"))},visible:!1};function a(e,t){return`You have tried to ${e} "${t}" on a WalletModalContext without providing one. Make sure to render a WalletModalProvider as an ancestor of the component that uses WalletModalContext`}Object.defineProperty(r,"visible",{get:()=>(console.error(a("read","visible")),!1)});let o=(0,i.createContext)(r);function s(){return(0,i.useContext)(o)}},93443:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var i=n(55041),r=n(7653),a=n(39808);let o=({children:e,endpoint:t,config:n={commitment:"confirmed"}})=>{let o=(0,r.useMemo)(()=>new i.Connection(t,n),[t,n]);return r.createElement(a.h.Provider,{value:{connection:o}},e)}},58206:function(e,t,n){"use strict";let i,r,a;n.d(t,{n:function(){return ec}});var o,s,l,c,d,u,h,f,g,p,w,m,y,v,M,E,b,S,N,I,L,A=n(95323),T=n(49084),j=n(16128),C=n(14180),_=n(67190);let O=function(e){return C.V in e.features&&_.k in e.features&&(T.G in e.features||j.R in e.features)};var x=n(64060),D=n(64807),z=n(42841),R=n(20565);let W="solana:signIn";var k=n(95305);function P(e){switch(e){case"processed":case"confirmed":case"finalized":case void 0:return e;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}var U=n(55041),B=n(19644);new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap;var Y=function(e){if(e.length>=255)throw TypeError("Alphabet too long");let t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let n=0;n<e.length;n++){let i=e.charAt(n),r=i.charCodeAt(0);if(255!==t[r])throw TypeError(i+" is ambiguous");t[r]=n}let n=e.length,i=e.charAt(0),r=Math.log(n)/Math.log(256),a=Math.log(256)/Math.log(n);function o(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;let a=0,o=0,s=0;for(;e[a]===i;)o++,a++;let l=(e.length-a)*r+1>>>0,c=new Uint8Array(l);for(;a<e.length;){let i=e.charCodeAt(a);if(i>255)return;let r=t[i];if(255===r)return;let o=0;for(let e=l-1;(0!==r||o<s)&&-1!==e;e--,o++)r+=n*c[e]>>>0,c[e]=r%256>>>0,r=r/256>>>0;if(0!==r)throw Error("Non-zero carry");s=o,a++}let d=l-s;for(;d!==l&&0===c[d];)d++;let u=new Uint8Array(o+(l-d)),h=o;for(;d!==l;)u[h++]=c[d++];return u}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";let r=0,o=0,s=0,l=t.length;for(;s!==l&&0===t[s];)s++,r++;let c=(l-s)*a+1>>>0,d=new Uint8Array(c);for(;s!==l;){let e=t[s],i=0;for(let t=c-1;(0!==e||i<o)&&-1!==t;t--,i++)e+=256*d[t]>>>0,d[t]=e%n>>>0,e=e/n>>>0;if(0!==e)throw Error("Non-zero carry");o=i,s++}let u=c-o;for(;u!==c&&0===d[u];)u++;let h=i.repeat(r);for(;u<c;++u)h+=e.charAt(d[u]);return h},decodeUnsafe:o,decode:function(e){let t=o(e);if(t)return t;throw Error("Non-base"+n+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Q=function(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},H=function(e,t,n,i,r){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};class K extends x.mI{get name(){return Q(this,g,"f").name}get url(){return"https://github.com/solana-labs/wallet-standard"}get icon(){return Q(this,g,"f").icon}get readyState(){return Q(this,p,"f")}get publicKey(){return Q(this,c,"f")}get connecting(){return Q(this,d,"f")}get supportedTransactionVersions(){return Q(this,f,"f")}get wallet(){return Q(this,g,"f")}get standard(){return!0}constructor({wallet:e}){super(),s.add(this),l.set(this,void 0),c.set(this,void 0),d.set(this,void 0),u.set(this,void 0),h.set(this,void 0),f.set(this,void 0),g.set(this,void 0),p.set(this,"undefined"==typeof window||"undefined"==typeof document?x.i1.Unsupported:x.i1.Installed),M.set(this,e=>{if("accounts"in e){let e=Q(this,g,"f").accounts[0];Q(this,l,"f")&&!Q(this,u,"f")&&e!==Q(this,l,"f")&&(e?Q(this,s,"m",m).call(this,e):(this.emit
373("error",new D.at),Q(this,s,"m",y).call(this)))}"features"in e&&Q(this,s,"m",v).call(this)}),H(this,g,e,"f"),H(this,l,null,"f"),H(this,c,null,"f"),H(this,d,!1,"f"),H(this,u,!1,"f"),H(this,h,Q(this,g,"f").features[_.k].on("change",Q(this,M,"f")),"f"),Q(this,s,"m",v).call(this)}destroy(){H(this,l,null,"f"),H(this,c,null,"f"),H(this,d,!1,"f"),H(this,u,!1,"f");let e=Q(this,h,"f");e&&(H(this,h,null,"f"),e())}async autoConnect(){return Q(this,s,"m",w).call(this,{silent:!0})}async connect(){return Q(this,s,"m",w).call(this)}async disconnect(){if(B.R in Q(this,g,"f").features)try{H(this,u,!0,"f"),await Q(this,g,"f").features[B.R].disconnect()}catch(e){this.emit("error",new D.UG(e?.message,e))}finally{H(this,u,!1,"f")}Q(this,s,"m",y).call(this)}async sendTransaction(e,t,n={}){try{var i;let r;let a=Q(this,l,"f");if(!a)throw new D.oS;if(T.G in Q(this,g,"f").features){if(a.features.includes(T.G))r=T.G;else if(j.R in Q(this,g,"f").features&&a.features.includes(j.R))r=j.R;else throw new D.cO}else if(j.R in Q(this,g,"f").features){if(!a.features.includes(j.R))throw new D.cO;r=j.R}else throw new D.p6;let o=(i=t.rpcEndpoint).includes("https://api.mainnet-beta.solana.com")?k.aI:/\bdevnet\b/i.test(i)?k.BR:/\btestnet\b/i.test(i)?k.gv:/\blocalhost\b/i.test(i)||/\b127\.0\.0\.1\b/.test(i)?k.l1:k.aI;if(!a.chains.includes(o))throw new D.IW;try{let i;let{signers:s,...l}=n;if((0,z.W)(e)?(s?.length&&e.sign(s),i=e.serialize()):(e=await this.prepareTransaction(e,t,l),s?.length&&e.partialSign(...s),i=new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))),r===T.G){let[e]=await Q(this,g,"f").features[T.G].signAndSendTransaction({account:a,chain:o,transaction:i,options:{preflightCommitment:P(l.preflightCommitment||t.commitment),skipPreflight:l.skipPreflight,maxRetries:l.maxRetries,minContextSlot:l.minContextSlot}});return Y.encode(e.signature)}{let[e]=await Q(this,g,"f").features[j.R].signTransaction({account:a,chain:o,transaction:i,options:{preflightCommitment:P(l.preflightCommitment||t.commitment),minContextSlot:l.minContextSlot}});return await t.sendRawTransaction(e.signedTransaction,{...l,preflightCommitment:P(l.preflightCommitment||t.commitment)})}}catch(e){if(e instanceof D.lj)throw e;throw new D.IW(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,f=new WeakMap,g=new WeakMap,p=new WeakMap,M=new WeakMap,s=new WeakSet,w=async function(e){try{if(this.connected||this.connecting)return;if(Q(this,p,"f")!==x.i1.Installed)throw new D.OZ;if(H(this,d,!0,"f"),!Q(this,g,"f").accounts.length)try{await Q(this,g,"f").features[C.V].connect(e)}catch(e){throw new D.$w(e?.message,e)}let t=Q(this,g,"f").accounts[0];if(!t)throw new D.cO;Q(this,s,"m",m).call(this,t)}catch(e){throw this.emit("error",e),e}finally{H(this,d,!1,"f")}},m=function(e){let t;try{t=new U.PublicKey(e.address)}catch(e){throw new D.Nx(e?.message,e)}H(this,l,e,"f"),H(this,c,t,"f"),Q(this,s,"m",v).call(this),this.emit("connect",t)},y=function(){H(this,l,null,"f"),H(this,c,null,"f"),Q(this,s,"m",v).call(this),this.emit("disconnect")},v=function(){let e=T.G in Q(this,g,"f").features?Q(this,g,"f").features[T.G].supportedTransactionVersions:Q(this,g,"f").features[j.R].supportedTransactionVersions;H(this,f,!function(e,t){if(e===t)return!0;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(e,["legacy"])?new Set(e):null,"f"),j.R in Q(this,g,"f").features&&Q(this,l,"f")?.features.includes(j.R)?(this.signTransaction=Q(this,s,"m",E),this.signAllTransactions=Q(this,s,"m",b)):(delete this.signTransaction,delete this.signAllTransactions),R.g in Q(this,g,"f").features&&Q(this,l,"f")?.features.includes(R.g)?this.signMessage=Q(this,s,"m",S):delete this.signMessage,W in Q(this,g,"f").features?this.signIn=Q(this,s,"m",N):delete this.signIn},E=async function(e){try{let t=Q(this,l,"f");if(!t)throw new D.oS;if(!(j.R in Q(this,g,"f").features))throw new D.p6;if(!t.features.includes(j.R))throw new D.cO;try{let n=(await Q(this,g,"f").features[j.R].signTransaction({account:t,transaction:(0,z.W)(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))}
vendor: 4,584 bytes, line 373
373))[0].signedTransaction;return(0,z.W)(e)?U.VersionedTransaction.deserialize(n):U.Transaction.from(n)}catch(e){if(e instanceof D.lj)throw e;throw new D.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}},b=async function(e){try{let t=Q(this,l,"f");if(!t)throw new D.oS;if(!(j.R in Q(this,g,"f").features))throw new D.p6;if(!t.features.includes(j.R))throw new D.cO;try{let n=await Q(this,g,"f").features[j.R].signTransaction(...e.map(e=>({account:t,transaction:(0,z.W)(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))})));return e.map((e,t)=>{let i=n[t].signedTransaction;return(0,z.W)(e)?U.VersionedTransaction.deserialize(i):U.Transaction.from(i)})}catch(e){throw new D.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}},S=async function(e){try{let t=Q(this,l,"f");if(!t)throw new D.oS;if(!(R.g in Q(this,g,"f").features))throw new D.p6;if(!t.features.includes(R.g))throw new D.cO;try{return(await Q(this,g,"f").features[R.g].signMessage({account:t,message:e}))[0].signature}catch(e){throw new D.fk(e?.message,e)}}catch(e){throw this.emit("error",e),e}},N=async function(e={}){try{let t;if(!(W in Q(this,g,"f").features))throw new D.p6;try{[t]=await Q(this,g,"f").features[W].signIn(e)}catch(e){throw new D.bD(e?.message,e)}if(!t)throw new D.bD;return Q(this,s,"m",m).call(this,t.account),t}catch(e){throw this.emit("error",e),e}};var F=function(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},V=function(e,t,n,i,r){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};let Z=new Set,G={};function $(...e){return(e=e.filter(e=>!Z.has(e))).length?(e.forEach(e=>{i=void 0,Z.add(e)}),G.register?.forEach(t=>X(()=>t(...e))),function(){e.forEach(e=>{i=void 0,Z.delete(e)}),G.unregister?.forEach(t=>X(()=>t(...e)))}):()=>{}}function q(){return i||(i=[...Z]),i}function J(e,t){return G[e]?.push(t)||(G[e]=[t]),function(){G[e]=G[e]?.filter(e=>t!==e)}}function X(e){try{e()}catch(e){console.error(e)}}class ee extends Event{get detail(){return F(this,I,"f")}get type(){return"wallet-standard:app-ready"}constructor(e){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),I.set(this,void 0),V(this,I,e,"f")}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}}I=new WeakMap;var et=n(7653);function en(e){let t=(0,et.useRef)(void 0);return void 0===t.current&&(t.current={value:e()}),t.current.value}function ei(e){return e.filter(O).map(e=>new K({wallet:e}))}(o=L||(L={}))[o.DESKTOP_WEB=0]="DESKTOP_WEB",o[o.MOBILE_WEB=1]="MOBILE_WEB";var er=n(39808);class ea extends D.lj{constructor(){super(...arguments),this.name="WalletNotSelectedError"}}var eo=n(40879);function es({children:e,wallets:t,adapter:n,isUnloadingRef:i,onAutoConnectRequest:r,onConnectError:a,onError:o,onSelectWallet:s}){let l=(0,et.useRef)(!1),[c,d]=(0,et.useState)(!1),u=(0,et.useRef)(!1),[h,f]=(0,et.useState)(!1),[g,p]=(0,et.useState)(()=>n?.publicKey??null),[w,m]=(0,et.useState)(()=>n?.connected??!1),y=(0,et.useRef)(o);(0,et.useEffect)(()=>(y.current=o,()=>{y.current=void 0}),[o]);let v=(0,et.useRef)((e,t)=>(!i.current&&(y.current?y.current(e,t):(console.error(e,t),e instanceof D.OZ&&"undefined"!=typeof window&&t&&window.open(t.url,"_blank"))),e)),[M,E]=(0,et.useState)(()=>t.map(e=>({adapter:e,readyState:e.readyState})).filter(({readyState:e})=>e!==x.i1.Unsupported));(0,et.useEffect)(()=>{function e(e){E(t=>{let n=t.findIndex(({adapter:e})=>e===this);if(-1===n)return t;let{adapter:i}=t[n];return[...t.slice(0,n),{adapter:i,readyState:e},...t.slice(n+1)].filter(({readyState:e})=>e!==x.i1.Unsupported)})}return E(e=>t.map((t,n)=>{let i=e[n];return i&&i.adapter===t&&i.readyState===t.readyState?i:{adapter:t,readyState:t.readyState}}).filter(({readyState:e})=>e!==x.i1.Unsupported)),t.forEach(t=>t.on("readyStateChange",e,t)),()=>{t.forEach(t=>t.off("readyStateChange",e,t))}},[n,t]);let b=(0,et.useMemo)(()=>M.find(e=>e.adapter===n)??null,[n,M]);(0,et.useEffect)(()=>
373{if(!n)return;let e=e=>{p(e),l.current=!1,d(!1),m(!0),u.current=!1,f(!1)},t=()=>{i.current||(p(null),l.current=!1,d(!1),m(!1),u.current=!1,f(!1))},r=e=>{v.current(e,n)};return n.on("connect",e),n.on("disconnect",t),n.on("error",r),()=>{n.off("connect",e),n.off("disconnect",t),n.off("error",r),t()}},[n,i]);let S=(0,et.useRef)(!1);(0,et.useEffect)(()=>()=>{S.current=!1},[n]),(0,et.useEffect)(()=>{S.current||l.current||w||!r||b?.readyState!==x.i1.Installed&&b?.readyState!==x.i1.Loadable||(l.current=!0,d(!0),S.current=!0,async function(){try{await r()}catch{a()}finally{d(!1),l.current=!1}}())},[w,r,a,b]);let N=(0,et.useCallback)(async(e,t,i)=>{if(!n)throw v.current(new ea);if(!w)throw v.current(new D.oS,n);return await n.sendTransaction(e,t,i)},[n,w]),I=(0,et.useMemo)(()=>n&&"signTransaction"in n?async e=>{if(!w)throw v.current(new D.oS,n);return await n.signTransaction(e)}:void 0,[n,w]),L=(0,et.useMemo)(()=>n&&"signAllTransactions"in n?async e=>{if(!w)throw v.current(new D.oS,n);return await n.signAllTransactions(e)}:void 0,[n,w]),A=(0,et.useMemo)(()=>n&&"signMessage"in n?async e=>{if(!w)throw v.current(new D.oS,n);return await n.signMessage(e)}:void 0,[n,w]),T=(0,et.useMemo)(()=>n&&"signIn"in n?async e=>await n.signIn(e):void 0,[n]),j=(0,et.useCallback)(async()=>{if(l.current||u.current||b?.adapter.connected)return;if(!b)throw v.current(new ea);let{adapter:e,readyState:t}=b;if(!(t===x.i1.Installed||t===x.i1.Loadable))throw v.current(new D.OZ,e);l.current=!0,d(!0);try{await e.connect()}catch(e){throw a(),e}finally{d(!1),l.current=!1}},[a,b]),C=(0,et.useCallback)(async()=>{if(!u.current&&n){u.current=!0,f(!0);try{await n.disconnect()}finally{f(!1),u.current=!1}}},[n]);return et.createElement(eo.z.Provider,{value:{autoConnect:!!r,wallets:M,wallet:b,publicKey:g,connected:w,connecting:c,disconnecting:h,select:s,connect:j,disconnect:C,sendTransaction:N,signTransaction:I,signAllTransactions:L,signMessage:A,signIn:T}},e)}function el(e){return function({adapters:e,userAgentString:t}){return e.some(e=>e.name!==A.gw&&e.readyState===x.i1.Installed)?L.DESKTOP_WEB:t&&/android/i.test(t)&&!/(WebView|Version\/.+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+)|; wv\).+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+))/i.test(t)?L.MOBILE_WEB:L.DESKTOP_WEB}({adapters:e,userAgentString:(void 0===r&&(r=globalThis.navigator?.userAgent??null),r)})===L.MOBILE_WEB}function ec({children:e,wallets:t,autoConnect:n,localStorageKey:i="walletName",onError:r}){let{connection:o}=(0,er.R)(),s=function(e){let t=en(()=>new Set),{get:n,on:i}=en(()=>(function(){if(a||(a=function(){if(a||(a=Object.freeze({register:$,get:q,on:J}),"undefined"==typeof window))return a;let e=Object.freeze({register:$});try{window.addEventListener("wallet-standard:register-wallet",({detail:t})=>t(e))}catch(e){console.error("wallet-standard:register-wallet event listener could not be added\n",e)}try{window.dispatchEvent(new ee(e))}catch(e){console.error("wallet-standard:app-ready event could not be dispatched\n",e)}return a}(),"undefined"==typeof window))return a;let e=window.navigator.wallets||[];if(!Array.isArray(e))return console.error("window.navigator.wallets is not an array"),a;let{register:t}=a,n=(...e)=>e.forEach(e=>X(()=>e({register:t})));try{Object.defineProperty(window.navigator,"wallets",{value:Object.freeze({push:n})})}catch(e){return console.error("window.navigator.wallets could not be set"),a}return n(...e),a})()),[r,o]=(0,et.useState)(()=>ei(n()));(0,et.useEffect)(()=>{let e=[i("register",(...e)=>o(t=>[...t,...ei(e)])),i("unregister",(...e)=>o(t=>t.filter(t=>e.some(e=>e===t.wallet))))];return()=>e.forEach(e=>e())},[i]);let s=function(e){let t=(0,et.useRef)(void 0);return(0,et.useEffect)(()=>{t.current=e}),t.current}(r);return(0,et.useEffect)(()=>{if(!s)return;let e=new Set(r);new Set(s.filter(t=>!e.has(t))).forEach(e=>e.destroy())},[s,r]),(0,et.useEffect)(()=>()=>r.forEach(e=>e.destroy()),[]),(0,et.useMemo)(()=>[...r,...e.filter(({name:e})=>!r.some(t=>t.name===e)||(t.has(e)||(t.add(e),console.warn(`${e} was registered as a Standard Wallet. The Wallet Adapter for ${e} can be removed from your app.`)),!1))],[r,e,t])}(t),l=(0,et.useMemo)(()=>{var e;if(!el(s))return null;let t=s.find(e=>e.name===A.gw);return t||new A.lX({addressSelector:(0,A.RH)(),appIdentity:{uri:function(){let e=globalThis.location;if(e)return`${e.protocol}//${e.host}`}()}
373,authorizationResultCache:(0,A.YS)(),cluster:(e=o?.rpcEndpoint)?/devnet/i.test(e)?"devnet":/testnet/i.test(e)?"testnet":"mainnet-beta":"mainnet-beta",onWalletNotFound:(0,A.Kf)()})},[s,o?.rpcEndpoint]),c=(0,et.useMemo)(()=>null==l||-1!==s.indexOf(l)?s:[l,...s],[s,l]),[d,u]=function(e,t){let n=(0,et.useState)(()=>{try{let t=localStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){"undefined"!=typeof window&&console.error(e)}return null}),i=n[0],r=(0,et.useRef)(!0);return(0,et.useEffect)(()=>{if(r.current){r.current=!1;return}try{null===i?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(i))}catch(e){"undefined"!=typeof window&&console.error(e)}},[i,e]),n}(i,0),h=(0,et.useMemo)(()=>c.find(e=>e.name===d)??null,[c,d]),f=(0,et.useCallback)(e=>{d!==e&&(h&&h.name!==A.gw&&h.disconnect(),u(e))},[h,u,d]);(0,et.useEffect)(()=>{if(h)return h.on("disconnect",e),()=>{h.off("disconnect",e)};function e(){w.current||u(null)}},[h,s,u,d]);let g=(0,et.useRef)(!1),p=(0,et.useMemo)(()=>{if(n&&h)return async()=>{(!0===n||await n(h))&&(g.current?await h.connect():await h.autoConnect())}},[n,h]),w=(0,et.useRef)(!1);(0,et.useEffect)(()=>{if(d===A.gw&&el(s)){w.current=!1;return}function e(){w.current=!0}return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[s,d]);let m=(0,et.useCallback)(()=>{h&&f(null)},[h,f]),y=(0,et.useCallback)(e=>{g.current=!0,f(e)},[f]);return et.createElement(es,{wallets:c,adapter:h,isUnloadingRef:w,onAutoConnectRequest:p,onConnectError:m,onError:r,onSelectWallet:y},e)}},13462:function(e,t,n){"use strict";n.d(t,{e:function(){return k}});var i,r,a,o,s,l,c,d,u,h,f,g,p,w,m,y=n(58227),v=n(64060),M=n(64807),E=n(42841),b=n(55041),S=function(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},N=function(e,t,n,i,r){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};class I extends Event{get detail(){return S(this,i,"f")}get type(){return"wallet-standard:register-wallet"}constructor(e){super("wallet-standard:register-wallet",{bubbles:!1,cancelable:!1,composed:!1}),i.set(this,void 0),N(this,i,e,"f")}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}}i=new WeakMap;var L=n(95305),A=n(49084),T=n(16128),j=n(20565),C=n(14180),_=n(19644),O=n(67190),x=function(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},D=function(e,t,n,i,r){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};class z{constructor(){r.add(this),a.set(this,{}),o.set(this,"1.0.0"),s.set(this,"MetaMask"),l.set(this,"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjMxIiB2aWV3Qm94PSIwIDAgMzEgMzEiIHdpZHRoPSIzMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjIwLjI1IiB4Mj0iMjYuNTcxIiB5MT0iMjcuMTczIiB5Mj0iMTkuODU4Ij48c3RvcCBvZmZzZXQ9Ii4wOCIgc3RvcC1jb2xvcj0iIzk5NDVmZiIvPjxzdG9wIG9mZnNldD0iLjMiIHN0b3AtY29sb3I9IiM4NzUyZjMiLz48c3RvcCBvZmZzZXQ9Ii41IiBzdG9wLWNvbG9yPSIjNTQ5N2Q1Ii8+PHN0b3Agb2Zmc2V0PSIuNiIgc3RvcC1jb2xvcj0iIzQzYjRjYSIvPjxzdG9wIG9mZnNldD0iLjcyIiBzdG9wLWNvbG9yPSIjMjhlMGI5Ii8+PHN0b3Agb2Zmc2V0PSIuOTciIHN0b3AtY29sb3I9IiMxOWZiOWIiLz48L2xpbmVhckdyYWRpZW50PjxnIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iLjA5NCI+PHBhdGggZD0ibTI2LjEwOSAzLjY0My05LjM2OSA2Ljk1OSAxLjczMy00LjEwNSA3LjYzNy0yLjg1M3oiIGZpbGw9IiNlMjc2MWIiIHN0cm9rZT0iI2UyNzYxYiIvPjxnIGZpbGw9IiNlNDc2MWIiIHN0cm9rZT0iI2U0NzYxYiI+PHBhdGggZD0ibTQuNDgxIDMuNjQzIDkuMjk0IDcuMDI0LTEuNjQ4LTQuMTcxem0xOC4yNTggMTYuMTMtMi40OTUgMy44MjMgNS4zMzkgMS40NjkgMS41MzUtNS4yMDctNC4zNzgtLjA4NXptLTE5LjI0Ny4wODUgMS41MjUgNS4yMDcgNS4zMzktMS40NjktMi4
3730OTUtMy44MjN6Ii8+PHBhdGggZD0ibTEwLjA1NSAxMy4zMTMtMS40ODggMi4yNTEgNS4zMDEuMjM1LS4xODgtNS42OTd6bTEwLjQ4IDAtMy42NzItMy4yNzctLjEyMiA1Ljc2MyA1LjI5Mi0uMjM1LTEuNDk3LTIuMjUxem0tMTAuMTc4IDEwLjI4MyAzLjE4My0xLjU1NC0yLjc0OS0yLjE0Ny0uNDMzIDMuNzAxem02LjY5NS0xLjU1NCAzLjE5MiAxLjU1NC0uNDQzLTMuNzAxeiIvPjwvZz48cGF0aCBkPSJtMjAuMjQ0IDIzLjU5Ni0zLjE5Mi0xLjU1NC4yNTQgMi4wODEtLjAyOC44NzZ6bS05Ljg4NyAwIDIuOTY2IDEuNDAzLS4wMTktLjg3Ni4yMzUtMi4wODEtMy4xODMgMS41NTR6IiBmaWxsPSIjZDdjMWIzIiBzdHJva2U9IiNkN2MxYjMiLz48cGF0aCBkPSJtMTMuMzY5IDE4LjUyMS0yLjY1NS0uNzgxIDEuODc0LS44NTd6bTMuODUxIDAgLjc4MS0xLjYzOCAxLjg4My44NTctMi42NjUuNzgxeiIgZmlsbD0iIzIzMzQ0NyIgc3Ryb2tlPSIjMjMzNDQ3Ii8+PHBhdGggZD0ibTEwLjM1NyAyMy41OTYuNDUyLTMuODIzLTIuOTQ3LjA4NXptOS40MzUtMy44MjMuNDUyIDMuODIzIDIuNDk1LTMuNzM4em0yLjI0MS00LjIwOS01LjI5Mi4yMzUuNDkgMi43MjEuNzgyLTEuNjM4IDEuODgzLjg1N3ptLTExLjMxOCAyLjE3NSAxLjg4My0uODU3Ljc3MiAxLjYzOC40OTktMi43MjEtNS4zMDEtLjIzNXoiIGZpbGw9IiNjZDYxMTYiIHN0cm9rZT0iI2NkNjExNiIvPjxwYXRoIGQ9Im04LjU2NyAxNS41NjQgMi4yMjIgNC4zMzEtLjA3NS0yLjE1NnptMTEuMzI4IDIuMTc1LS4wOTQgMi4xNTYgMi4yMzItNC4zMzEtMi4xMzcgMi4xNzV6bS02LjAyNi0xLjk0LS40OTkgMi43MjEuNjIxIDMuMjExLjE0MS00LjIyOC0uMjY0LTEuNzA0em0yLjg3MiAwLS4yNTQgMS42OTUuMTEzIDQuMjM3LjYzMS0zLjIxMXoiIGZpbGw9IiNlNDc1MWYiIHN0cm9rZT0iI2U0NzUxZiIvPjxwYXRoIGQ9Im0xNy4yMyAxOC41Mi0uNjMxIDMuMjExLjQ1Mi4zMTEgMi43NS0yLjE0Ny4wOTQtMi4xNTZ6bS02LjUxNi0uNzgxLjA3NSAyLjE1NiAyLjc1IDIuMTQ3LjQ1Mi0uMzExLS42MjItMy4yMTF6IiBmaWxsPSIjZjY4NTFiIiBzdHJva2U9IiNmNjg1MWIiLz48cGF0aCBkPSJtMTcuMjc3IDI0Ljk5OS4wMjgtLjg3Ni0uMjM1LS4yMDdoLTMuNTVsLS4yMTcuMjA3LjAxOS44NzYtMi45NjYtMS40MDMgMS4wMzYuODQ4IDIuMSAxLjQ1OWgzLjYwNmwyLjEwOS0xLjQ1OSAxLjAzNi0uODQ4eiIgZmlsbD0iI2MwYWQ5ZSIgc3Ryb2tlPSIjYzBhZDllIi8+PHBhdGggZD0ibTE3LjA1MSAyMi4wNDItLjQ1Mi0uMzExaC0yLjYwOGwtLjQ1Mi4zMTEtLjIzNSAyLjA4MS4yMTctLjIwN2gzLjU1bC4yMzUuMjA3LS4yNTQtMi4wODF6IiBmaWxsPSIjMTYxNjE2IiBzdHJva2U9IiMxNjE2MTYiLz48cGF0aCBkPSJtMjYuNTA1IDExLjA1My44LTMuODQyLTEuMTk2LTMuNTY5LTkuMDU4IDYuNzIzIDMuNDg0IDIuOTQ3IDQuOTI1IDEuNDQxIDEuMDkyLTEuMjcxLS40NzEtLjMzOS43NTMtLjY4Ny0uNTg0LS40NTIuNzUzLS41NzQtLjQ5OS0uMzc3em0tMjMuMjExLTMuODQxLjggMy44NDItLjUwOC4zNzcuNzUzLjU3NC0uNTc0LjQ1Mi43NTMuNjg3LS40NzEuMzM5IDEuMDgzIDEuMjcxIDQuOTI1LTEuNDQxIDMuNDg0LTIuOTQ3LTkuMDU5LTYuNzIzeiIgZmlsbD0iIzc2M2QxNiIgc3Ryb2tlPSIjNzYzZDE2Ii8+PHBhdGggZD0ibTI1LjQ2IDE0Ljc1NC00LjkyNS0xLjQ0MSAxLjQ5NyAyLjI1MS0yLjIzMiA0LjMzMSAyLjkzOC0uMDM4aDQuMzc4bC0xLjY1Ny01LjEwNHptLTE1LjQwNS0xLjQ0MS00LjkyNSAxLjQ0MS0xLjYzOCA1LjEwNGg0LjM2OWwyLjkyOC4wMzgtMi4yMjItNC4zMzEgMS40ODgtMi4yNTF6bTYuNjg1IDIuNDg2LjMxMS01LjQzMyAxLjQzMS0zLjg3aC02LjM1NmwxLjQxMyAzLjg3LjMyOSA1LjQzMy4xMTMgMS43MTQuMDA5IDQuMjE5aDIuNjFsLjAxOS00LjIxOS4xMjItMS43MTR6IiBmaWxsPSIjZjY4NTFiIiBzdHJva2U9IiNmNjg1MWIiLz48L2c+PGNpcmNsZSBjeD0iMjMuNSIgY3k9IjIzLjUiIGZpbGw9IiMwMDAiIHI9IjYuNSIvPjxwYXRoIGQ9Im0yNy40NzMgMjUuNTQ1LTEuMzEgMS4zNjhjLS4wMjkuMDMtLjA2My4wNTMtLjEwMS4wN2EuMzEuMzEgMCAwIDEgLS4xMjEuMDI0aC02LjIwOWMtLjAzIDAtLjA1OS0uMDA4LS4wODMtLjAyNGEuMTUuMTUgMCAwIDEgLS4wNTYtLjA2NWMtLjAxMi0uMDI2LS4wMTUtLjA1Ni0uMDEtLjA4NHMuMDE4LS4wNTUuMDM5LS4wNzZsMS4zMTEtMS4zNjhjLjAyOC0uMDMuMDYzLS4wNTMuMTAxLS4wNjlhLjMxLjMxIDAgMCAxIC4xMjEtLjAyNWg2LjIwOGMuMDMgMCAuMDU5LjAwOC4wODMuMDI0YS4xNS4xNSAwIDAgMSAuMDU2LjA2NWMuMDEyLjAyNi4wMTUuMDU2LjAxLjA4NHMtLjAxOC4wNTUtLjAzOS4wNzZ6bS0xLjMxLTIuNzU2Yy0uMDI5LS4wMy0uMDYzLS4wNTMtLjEwMS0uMDdhLjMxLjMxIDAgMCAwIC0uMTIxLS4wMjRoLTYuMjA5Yy0uMDMgMC0uMDU5LjAwOC0uMDgzLjAyNHMtLjA0NC4wMzgtLjA1Ni4wNjUtLjAxNS4wNTYtLjAxLjA4NC4wMTguMDU1LjAzOS4wNzZsMS4zMTEgMS4zNjhjLjAyOC4wMy4wNjMuMDUzLjEwMS4wNjlhLjMxLjMxIDAgMCAwIC4xMjEuMDI1aDYuMjA4Yy4wMyAwIC4wNTktLjAwOC4wODMtLjAyNGEuMTUuMTUgMCAwIDAgLjA1Ni0uMDY1Yy4wMTItLjAyNi4wMTUtLjA1Ni4wMS0uMDg0cy0uMDE4LS4wNTUtLjAzOS0uMDc2em0tNi40MzEtLjk4M2g2LjIwOWEuMzEuMzEgMCAwIDAgLjEyMS0uMDI0Yy4wMzgtLjAxNi4wNzMtLjA0LjEwMS0uMDdsMS4zMS0xLjM2OGMuMDItLjAyMS4wMzQtLjA0Ny4wMzktLjA3NnMuMDAxLS4wNTgtLjAxLS4wODRhLjE1LjE1IDAgMCAwIC0uMDU2LS4wNjVjLS4wMjUtLjAxNi0uMDU0LS4wMjQtLjA4My0uMDI0aC02LjIwOGEuMzEuMzEgMCAwIDAgLS4xMjEuMDI1Yy0uMDM4LjAxNi0uMDcyLjA0LS4xMDEuMDY5bC0xLjMxIDEuMzY4Yy0uMDIuMDIxLS4wMzQuMDQ3LS4wMzkuMDc2cy0uMDAxLjA1OC4wMS4wODQuMDMxLjA0OS4wNTYuMDY1LjA1NC4wMjQuMDgzLjAyNHoiIGZpbGw9InVybCgjYSkiLz48L3N2Zz4="),c.set(this,null),d.set(this,(e,t)=>(x(this,a,"f")[e]?.push(t)||(x(this,a,"f")[e]=[t]),()=>x(this,r,"m",h).call(this,e,t))),f.set(this,async()=>
373{if(!x(this,c,"f")){let e;try{e=(await n.e(536).then(n.bind(n,4536))).default}catch(e){throw Error("Unable to load Solflare MetaMask SDK")}D(this,c,new e,"f"),x(this,c,"f").on("standard_change",e=>x(this,r,"m",u).call(this,"change",e))}return this.accounts.length||await x(this,c,"f").connect(),{accounts:this.accounts}}),g.set(this,async()=>{x(this,c,"f")&&await x(this,c,"f").disconnect()}),p.set(this,async(...e)=>{if(!x(this,c,"f"))throw new M.oS;return await x(this,c,"f").standardSignAndSendTransaction(...e)}),w.set(this,async(...e)=>{if(!x(this,c,"f"))throw new M.oS;return await x(this,c,"f").standardSignTransaction(...e)}),m.set(this,async(...e)=>{if(!x(this,c,"f"))throw new M.oS;return await x(this,c,"f").standardSignMessage(...e)})}get version(){return x(this,o,"f")}get name(){return x(this,s,"f")}get icon(){return x(this,l,"f")}get chains(){return[L.aI,L.BR,L.gv]}get features(){return{[C.V]:{version:"1.0.0",connect:x(this,f,"f")},[_.R]:{version:"1.0.0",disconnect:x(this,g,"f")},[O.k]:{version:"1.0.0",on:x(this,d,"f")},[A.G]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:x(this,p,"f")},[T.R]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:x(this,w,"f")},[j.g]:{version:"1.0.0",signMessage:x(this,m,"f")}}}get accounts(){return x(this,c,"f")?x(this,c,"f").standardAccounts:[]}}a=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,f=new WeakMap,g=new WeakMap,p=new WeakMap,w=new WeakMap,m=new WeakMap,r=new WeakSet,u=function(e,...t){x(this,a,"f")[e]?.forEach(e=>e.apply(null,t))},h=function(e,t){x(this,a,"f")[e]=x(this,a,"f")[e]?.filter(e=>t!==e)};let R=!1;async function W(){let e="solflare-detect-metamask";function t(){window.postMessage({target:"metamask-contentscript",data:{name:"metamask-provider",data:{id:e,jsonrpc:"2.0",method:"wallet_getSnaps"}}},window.location.origin)}function n(i){let r=i.data;r?.target==="metamask-inpage"&&r.data?.name==="metamask-provider"&&(r.data.data?.id===e?(window.removeEventListener("message",n),!r.data.data.error&&(R||(function(e){let t=({register:t})=>t(e);try{window.dispatchEvent(new I(t))}catch(e){console.error("wallet-standard:register-wallet event could not be dispatched\n",e)}try{window.addEventListener("wallet-standard:app-ready",({detail
373:e})=>t(e))}catch(e){console.error("wallet-standard:app-ready event listener could not be added\n",e)}}(new z),R=!0))):t())}window.addEventListener("message",n),window.setTimeout(()=>window.removeEventListener("message",n),5e3),t()}class k extends y.eC{constructor(e={}){super(),this.name="Solflare",this.url="https://solflare.com",this.icon="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJTIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MCA1MCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMwMjA1MGE7c3Ryb2tlOiNmZmVmNDY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOi41cHg7fS5jbHMtMntmaWxsOiNmZmVmNDY7fTwvc3R5bGU+PC9kZWZzPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMCIgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiByeD0iMTIiIHJ5PSIxMiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTI0LjIzLDI2LjQybDIuNDYtMi4zOCw0LjU5LDEuNWMzLjAxLDEsNC41MSwyLjg0LDQuNTEsNS40MywwLDEuOTYtLjc1LDMuMjYtMi4yNSw0LjkzbC0uNDYuNS4xNy0xLjE3Yy42Ny00LjI2LS41OC02LjA5LTQuNzItNy40M2wtNC4zLTEuMzhoMFpNMTguMDUsMTEuODVsMTIuNTIsNC4xNy0yLjcxLDIuNTktNi41MS0yLjE3Yy0yLjI1LS43NS0zLjAxLTEuOTYtMy4zLTQuNTF2LS4wOGgwWk0xNy4zLDMzLjA2bDIuODQtMi43MSw1LjM0LDEuNzVjMi44LjkyLDMuNzYsMi4xMywzLjQ2LDUuMThsLTExLjY1LTQuMjJoMFpNMTMuNzEsMjAuOTVjMC0uNzkuNDItMS41NCwxLjEzLTIuMTcuNzUsMS4wOSwyLjA1LDIuMDUsNC4wOSwyLjcxbDQuNDIsMS40Ni0yLjQ2LDIuMzgtNC4zNC0xLjQyYy0yLS42Ny0yLjg0LTEuNjctMi44NC0yLjk2TTI2LjgyLDQyLjg3YzkuMTgtNi4wOSwxNC4xMS0xMC4yMywxNC4xMS0xNS4zMiwwLTMuMzgtMi01LjI2LTYuNDMtNi43MmwtMy4zNC0xLjEzLDkuMTQtOC43Ny0xLjg0LTEuOTYtMi43MSwyLjM4LTEyLjgxLTQuMjJjLTMuOTcsMS4yOS04Ljk3LDUuMDktOC45Nyw4Ljg5LDAsLjQyLjA0LjgzLjE3LDEuMjktMy4zLDEuODgtNC42MywzLjYzLTQuNjMsNS44LDAsMi4wNSwxLjA5LDQuMDksNC41NSw1LjIybDIuNzUuOTItOS41Miw5LjE0LDEuODQsMS45NiwyLjk2LTIuNzEsMTQuNzMsNS4yMmgwWiIvPjwvc3ZnPg==",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState="undefined"==typeof window||"undefined"==typeof document?v.i1.Unsupported:v.i1.Loadable,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new M.at),this.emit("disconnect"))},this._accountChanged=e=>{if(!e)return;let t=this._publicKey;if(t){try{e=new b.PublicKey(e.toBytes())}catch(e){this.emit("error",new M.Nx(e?.message,e));return}t.equals(e)||(this._publicKey=e,this.emit("connect",e))}},this._connecting=!1,this._publicKey=null,this._wallet=null,this._config=e,this._readyState!==v.i1.Unsupported&&((0,v.su)(()=>(!!window.solflare?.isSolflare||!!window.SolflareApp)&&(this._readyState=v.i1.Installed,this.emit("readyStateChange",this._readyState),!0)),W())}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){return!!this._wallet?.connected}get readyState(){return this._readyState}async autoConnect(){this.readyState===v.i1.Loadable&&(0,v.H)()||await this.connect()}async connect(){try{let e,t,i;if(this.connected||this.connecting)return;if(this._readyState!==v.i1.Loadable&&this._readyState!==v.i1.Installed)throw new M.OZ;if(this.readyState===v.i1.Loadable&&(0,v.H)()){let e=encodeURIComponent(window.location.href),t=encodeURIComponent(window.location.origin);window.location.href=`https://solflare.com/ul/v1/browse/${e}?ref=${t}`;return}
373try{e=(await n.e(770).then(n.bind(n,87770))).default}catch(e){throw new M.W8(e?.message,e)}try{t=new e({network:this._config.network})}catch(e){throw new M.p6(e?.message,e)}if(this._connecting=!0,!t.connected)try{await t.connect()}catch(e){throw new M.$w(e?.message,e)}if(!t.publicKey)throw new M.$w;try{i=new b.PublicKey(t.publicKey.toBytes())}catch(e){throw new M.Nx(e?.message,e)}t.on("disconnect",this._disconnected),t.on("accountChanged",this._accountChanged),this._wallet=t,this._publicKey=i,this.emit("connect",i)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new M.UG(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,n={}){try{let i=this._wallet;if(!i)throw new M.oS;try{let{signers:r,...a}=n;return(0,E.W)(e)?r?.length&&e.sign(r):(e=await this.prepareTransaction(e,t,a),r?.length&&e.partialSign(...r)),a.preflightCommitment=a.preflightCommitment||t.commitment,await i.signAndSendTransaction(e,a)}catch(e){if(e instanceof M.lj)throw e;throw new M.IW(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new M.oS;try{return await t.signTransaction(e)||e}catch(e){throw new M.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new M.oS;try{return await t.signAllTransactions(e)||e}catch(e){throw new M.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new M.oS;try{return await t.signMessage(e,"utf8")}catch(e){throw new M.fk(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}},95305:function(e,t,n){"use strict";n.d(t,{BR:function(){return r},aI:function(){return i},gv:function(){return a},l1:function(){return o}});let i="solana:mainnet",r="solana:devnet",a="solana:testnet",o="solana:localnet"},49084:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});let i="solana:signAndSendTransaction"},20565:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});let i="solana:signMessage"},16128:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});let i="solana:signTransaction"},42422:function(e,t,n){"use strict";n.d(t,{Analytics:function(){return g}});var i=n(7653),r=n(81695),a=n(68571),o=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(window.vaq=window.vaq||[]).push(t)})};function s(){return"undefined"!=typeof window}function l(){return"production"}function c(){return"development"===((s()?window.vam:l())||"production")}function d(e){return new RegExp("/".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}function u(e){return(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,i.useEffect)(()=>{var t;!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!s())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=l();return}window.vam=e})(t.mode),o(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let n=t.scriptSrc?t.scriptSrc:c()?"https://va.vercel-scripts.com/v1/script.debug.js":t.basePath?"".concat(t.basePath,"/insights/script.js"):"/_vercel/insights/script.js";if(document.head.querySelector('script[src*="'.concat(n,'"]')))return;let i=document.createElement("script");i.src=n,i.defer=!0,i.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),i.dataset.sdkv="1.5.0",t.disableAutoTrack&&(i.dataset.disableAutoTrack="1"),t.endpoint?i.dataset.endpoint=t.endpoint:t.basePath&&(i.dataset.endpoint="".concat(t.basePath,"/insights")),t.dsn&&(i.dataset.dsn=t.dsn),i.onerror=()=>{let e=c()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(n,". ").concat(e))},c()&&!1===t.debug&&(i.dataset.debug="false"),document.head.appendChild(i)}({framework:e.framework||"react",basePath:null!==(t=e.basePath)&&void 0!==t?t:function(){if(void 0!==a&&void 0!==a.env)return a.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,i.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:n,path:i}=e;null==(t=window.va)||t.call(window,"pageview",{route:n,path:i})}({route:e.route,path:e.path})},[e.route,e.path]),null}var h=()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)(),n=(0,r.usePathname)();return e?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,i]of e)if(!Array.isArray(i)){let e=d(i);e.test(n)&&(n=n.replace(e,"/[".concat(t,"]")))}for(let[t,i]of e)if(Array.isArray(i)){let e=d(i.join("/"));e.test(n)&&(n=n.replace(e,"/[...".concat(t,"]")))}return n}catch(t){return e}}(n,Object.keys(e).length?e:Object.fromEntries(t.entries())),path:n}:{route:null,path:n}};function f(e){let{route:t,path:n}=h();return i.createElement(u,{path:n,route:t,...e,basePath:function(){if(void 0!==a&&void 0!==a.env)return a.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),framework:"next"})}function g(e){return i.createElement(i.Suspense,{fallback:null},i.createElement(f,{...e}))}},14180:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});let i="standard:connect"},19644:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});let i="standard:disconnect"},67190:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});let i="standard:events"},68321:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var i=n(7653);let r=e=>{let t;let n=new Set,i=(e,i)=>{let r="function"==typeof e?e(t):e;if(!Object.is(r,t)){let e=t;t=(null!=i?i:"object"!=typeof r||null===r)?r:Object.assign({}
373,t,r),n.forEach(n=>n(t,e))}},r=()=>t,a={setState:i,getState:r,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(i,r,a);return a},a=e=>e?r(e):r,o=e=>e,s=e=>{let t=a(e),n=e=>(function(e,t=o){let n=i.useSyncExternalStore(e.subscribe,i.useCallback(()=>t(e.getState()),[e,t]),i.useCallback(()=>t(e.getInitialState()),[e,t]));return i.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},l=e=>e?s(e):s}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.