PageSourceSearch

https://mirror-ai-youy.vercel.app/_next/static/chunks/941-b11e9fa1ecf4c940.js

js mirror-ai-youy.vercel.app collected 2026-10-03 07:19:24 UTC 124,320 bytes, 465 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[941],{645:(e,t,n)=>{let r=n(46087).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},11518:(e,t,n)=>{"use strict";e.exports=n(82269).style},15580:(e,t,n)=>{let r=n(43585),i=n(46087);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.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=o},29343:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},34122:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>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},36517:(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,r=0,i=0,o=0,s=null,a=null;for(let l=0;l<t;l++){i=o=0,s=a=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===s?i++:(i>=5&&(r+=n.N1+(i-5)),s=t,i=1),(t=e.get(c,l))===a?o++:(o>=5&&(r+=n.N1+(o-5)),a=t,o=1)}i>=5&&(r+=n.N1+(i-5)),o>=5&&(r+=n.N1+(o-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let n=0;n<t-1;n++)for(let i=0;i<t-1;i++){let t=e.get(n,i)+e.get(n,i+1)+e.get(n+1,i)+e.get(n+1,i+1);(4===t||0===t)&&r++}return r*n.N2},t.getPenaltyN3=function(e){let t=e.size,r=0,i=0,o=0;for(let n=0;n<t;n++){i=o=0;for(let s=0;s<t;s++)i=i<<1&2047|e.get(n,s),s>=10&&(1488===i||93===i)&&r++,o=o<<1&2047|e.get(s,n),s>=10&&(1488===o||93===o)&&r++}return r*n.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*n.N4},t.applyMask=function(e,n){let r=n.size;for(let i=0;i<r;i++)for(let o=0;o<r;o++)n.isReserved(o,i)||n.xor(o,i,function(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,o,i))},t.getBestMask=function(e,n){let r=Object.keys(t.Patterns).length,i=0,o=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);let r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<o&&(o=r,i=s)}return i}},37788:(e,t,n)=>{let r=n(46087).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){let n=[],r=t.getRowColCoords(e),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)(0!==e||0!==t)&&(0!==e||t!==i-1)&&(e!==i-1||0!==t)&&n.push([r[e],r[t]]);return n}},43585:(e,t,n)=>{let r=n(29343),i=n(81685);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(!r.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 i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.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{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)}}catch(e){return n}}},46087:(e,t)=>{let n,r=[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 r[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)}}
1,49028:(e,t,n)=>{"use strict";n.d(t,{vZ:()=>nW,Tf:()=>t9});var r,i=n(49509),o=Object.defineProperty,s=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),l=(e,t,n)=>s(e,"symbol"!=typeof t?t+"":t,n),c=BigInt(0x100000000-1),d=BigInt(32),u=(e,t,n)=>e<<n|t>>>32-n,_=(e,t,n)=>t<<n|e>>>32-n,f=(e,t,n)=>t<<n-32|e>>>64-n,p=(e,t,n)=>e<<n-32|t>>>64-n;function h(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function g(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function b(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function w(e,t){g(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}function y(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function m(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function x(e,t){return e<<32-t|e>>>t}var v=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e},k=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),I={_0:48,_9:57,A:65,F:70,a:97,f:102};function C(e){return e>=I._0&&e<=I._9?e-I._0:e>=I.A&&e<=I.F?e-(I.A-10):e>=I.a&&e<=I.f?e-(I.a-10):void 0}function A(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),g(e),e}var S=class{},E=BigInt(0),R=BigInt(1),j=BigInt(2),B=BigInt(7),N=BigInt(256),P=BigInt(113),T=[],q=[],M=[];for(let e=0,t=R,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],T.push(2*(5*r+n)),q.push((e+1)*(e+2)/2%64);let i=E;for(let e=0;e<7;e++)(t=(t<<R^(t>>B)*P)%N)&j&&(i^=R<<(R<<BigInt(e))-R);M.push(i)}var U=function(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let o=0;o<n;o++){let{h:n,l:s}=function(e,t=!1){return t?{h:Number(e&c),l:Number(e>>d&c)}:{h:0|Number(e>>d&c),l:0|Number(e&c)}}(e[o],t);[r[o],i[o]]=[n,s]}return[r,i]}(M,!0),F=U[0],L=U[1],H=(e,t,n)=>n>32?f(e,t,n):u(e,t,n),z=(e,t,n)=>n>32?p(e,t,n):_(e,t,n),O=class extends S{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");h(e.outputLen),h(e.blockLen)}(e);let n=A(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),y(i)}update(e){return b(this),this.iHash.update(e),this}digestInto(e){b(this),g(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},W=(e,t,n)=>new O(e,t).update(n).digest();W.create=(e,t)=>new O(e,t);var D=class extends S{constructor(e,t,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=m(this.buffer)}update(e){b(this),g(e=A(e));let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let o=0;o<i;){let s=Math.min(r-this.pos,i-o);if(s===r){let t=m(e);for(;r<=i-o;o+=r)this.process(t,o);continue}n.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){b(this),w(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:o}=this;t[o++]=128,y(this.buffer.subarray(o)),this.padOffset>r-o&&(this.process(n,0),o=0);for(let e=o;e<r;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let i=BigInt(32),o=BigInt(0xffffffff),s=Number(n>>i&o),a=Number(n&o),l=4*!!r,c=4*!r;e.setUint32(t+l,s,r),e.setUint32(t+c,a,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);let s=m(e),a=this.outputLen;if(a%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=a/4,c=this.get();if(l>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)s.setUint32(4*e,c[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}
1,K=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),V=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),Z=new Uint32Array(64),Y=class extends D{constructor(e=32){super(64,e,8,!1),this.A=0|K[0],this.B=0|K[1],this.C=0|K[2],this.D=0|K[3],this.E=0|K[4],this.F=0|K[5],this.G=0|K[6],this.H=0|K[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)Z[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=Z[e-15],n=Z[e-2],r=x(t,7)^x(t,18)^t>>>3,i=x(n,17)^x(n,19)^n>>>10;Z[e]=i+Z[e-7]+r+Z[e-16]|0}let{A:n,B:r,C:i,D:o,E:s,F:a,G:l,H:c}=this;for(let e=0;e<64;e++){var d,u,_,f;let t=c+(x(s,6)^x(s,11)^x(s,25))+((d=s)&a^~d&l)+V[e]+Z[e]|0,p=(x(n,2)^x(n,13)^x(n,22))+((u=n)&(_=r)^u&(f=i)^_&f)|0;c=l,l=a,a=s,s=o+t|0,o=i,i=r,r=n,n=t+p|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+this.D|0,s=s+this.E|0,a=a+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(n,r,i,o,s,a,l,c)}roundClean(){y(Z)}destroy(){this.set(0,0,0,0,0,0,0,0),y(this.buffer)}},J=function(e){let t=t=>e().update(A(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}(()=>new Y),{p:$,n:Q,Gx:G,Gy:X,b:ee}={p:0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2fn,n:0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n,b:7n,Gx:0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798n,Gy:0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8n},et=32,en=(e="")=>{throw Error(e)},er=e=>"bigint"==typeof e,ei=e=>"string"==typeof e,eo=e=>e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name,es=(e,t)=>!eo(e)||"number"==typeof t&&t>0&&e.length!==t?en("Uint8Array expected"):e,ea=e=>new Uint8Array(e),el=e=>Uint8Array.from(e),ec=(e,t)=>e.toString(16).padStart(t,"0"),ed=e=>Array.from(es(e)).map(e=>ec(e,2)).join(""),eu={_0:48,_9:57,A:65,F:70,a:97,f:102},e_=e=>e>=eu._0&&e<=eu._9?e-eu._0:e>=eu.A&&e<=eu.F?e-(eu.A-10):e>=eu.a&&e<=eu.f?e-(eu.a-10):void 0,ef=e=>{let t="hex invalid";if(!ei(e))return en(t);let n=e.length,r=n/2;if(n%2)return en(t);let i=ea(r);for(let n=0,o=0;n<r;n++,o+=2){let r=e_(e.charCodeAt(o)),s=e_(e.charCodeAt(o+1));if(void 0===r||void 0===s)return en(t);i[n]=16*r+s}return i},ep=(e,t)=>es(ei(e)?ef(e):el(es(e)),t),eh=()=>globalThis?.crypto,eg=()=>eh()?.subtle??en("crypto.subtle must be defined"),eb=(...e)=>{let t=ea(e.reduce((e,t)=>e+es(t).length,0)),n=0;return e.forEach(e=>{t.set(e,n),n+=e.length}),t},ew=(e=et)=>eh().getRandomValues(ea(e)),ey=BigInt,em=(e,t,n,r="bad number: out of range")=>er(e)&&t<=e&&e<n?e:en(r),ex=(e,t=$)=>{let n=e%t;return n>=0n?n:t+n},ev=e=>ex(e,Q),ek=(e,t)=>{(0n===e||t<=0n)&&en("no inverse n="+e+" mod="+t);let n=ex(e,t),r=t,i=0n,o=1n;for(;0n!==n;){let e=r/n,t=r%n,s=i-o*e;r=n,n=t,i=o,o=s}return 1n===r?ex(i,t):en("no inverse")},eI=e=>{let t=eG[e];return"function"!=typeof t&&en("hashes."+e+" not set"),t},eC=e=>e instanceof eq?e:en("Point expected"),eA=e=>ex(ex(e*e)*e+ee),eS=e=>em(e,0n,$),eE=e=>em(e,1n,$),eR=e=>em(e,1n,Q),ej=e=>(1n&e)===0n,eB=e=>Uint8Array.of(e),eN=e=>eB(ej(e)?2:3),eP=e=>{let t=eA(eE(e)),n=1n;for(let e=t,r=($+1n)/4n;r>0n;r>>=1n)1n&r&&(n=n*e%$),e=e*e%$;return ex(n*n)===t?n:en("sqrt invalid")},eT=class e{constructor(e,t,n){l(this,"px"),l(this,"py"),l(this,"pz"),this.px=eS(e),this.py=eE(t),this.pz=eS(n),Ob
1ject.freeze(this)}static fromBytes(t){let n;es(t);let r=t[0],i=t.subarray(1),o=eH(i,0,et),s=t.length;if(s===et+1&&[2,3].includes(r)){let t=eP(o),i=ej(t);ej(ey(r))!==i&&(t=ex(-t)),n=new e(o,t,1n)}return 65===s&&4===r&&(n=new e(o,eH(i,et,64),1n)),n?n.assertValidity():en("bad point: not on curve")}equals(e){let{px:t,py:n,pz:r}=this,{px:i,py:o,pz:s}=eC(e),a=ex(t*s),l=ex(i*r),c=ex(n*s),d=ex(o*r);return a===l&&c===d}is0(){return this.equals(eU)}negate(){return new e(this.px,ex(-this.py),this.pz)}double(){return this.add(this)}add(t){let{px:n,py:r,pz:i}=this,{px:o,py:s,pz:a}=eC(t),l=0n,c=0n,d=0n,u=ex(3n*ee),_=ex(n*o),f=ex(r*s),p=ex(i*a),h=ex(n+r),g=ex(o+s);h=ex(h*g),g=ex(_+f),h=ex(h-g),g=ex(n+i);let b=ex(o+a);return g=ex(g*b),b=ex(_+p),g=ex(g-b),b=ex(r+i),l=ex(s+a),b=ex(b*l),l=ex(f+p),b=ex(b-l),d=ex(0n*g),l=ex(u*p),d=ex(l+d),l=ex(f-d),d=ex(f+d),c=ex(l*d),f=ex(_+_),f=ex(f+_),p=ex(0n*p),g=ex(u*g),f=ex(f+p),p=ex(_-p),p=ex(0n*p),g=ex(g+p),_=ex(f*g),c=ex(c+_),_=ex(b*g),l=ex(h*l),l=ex(l-_),_=ex(h*f),d=ex(b*d),new e(l,c,d=ex(d+_))}multiply(e,t=!0){if(!t&&0n===e)return eU;if(eR(e),1n===e)return this;if(this.equals(eM))return e5(e).p;let n=eU,r=eM;for(let i=this;e>0n;i=i.double(),e>>=1n)1n&e?n=n.add(i):t&&(r=r.add(i));return n}toAffine(){let{px:e,py:t,pz:n}=this;if(this.equals(eU))return{x:0n,y:0n};if(1n===n)return{x:e,y:t};let r=ek(n,$);return 1n!==ex(n*r)&&en("inverse invalid"),{x:ex(e*r),y:ex(t*r)}}assertValidity(){let{x:e,y:t}=this.toAffine();return eE(e),eE(t),ex(t*t)===eA(e)?this:en("bad point: not on curve")}toBytes(e=!0){let{x:t,y:n}=this.assertValidity().toAffine(),r=eO(t);return e?eb(eN(n),r):eb(eB(4),r,eO(n))}static fromAffine(t){let{x:n,y:r}=t;return 0n===n&&0n===r?eU:new e(n,r,1n)}toHex(e){return ed(this.toBytes(e))}static fromPrivateKey(e){return eM.multiply(eW(e))}static fromHex(t){return e.fromBytes(ep(t))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}toRawBytes(e){return this.toBytes(e)}};l(eT,"BASE"),l(eT,"ZERO");var eq=eT,eM=new eq(G,X,1n),eU=new eq(0n,1n,0n);eq.BASE=eM,eq.ZERO=eU;var eF=(e,t,n)=>eM.multiply(t,!1).add(e.multiply(n,!1)).assertValidity(),eL=e=>ey("0x"+(ed(e)||"0")),eH=(e,t,n)=>eL(e.subarray(t,n)),ez=2n**256n,eO=e=>ef(ec(em(e,0n,ez),64)),eW=e=>em(er(e)?e:eL(ep(e,et)),1n,Q,"private key invalid 3"),eD=e=>e>Q>>1n,eK=class e{constructor(e,t,n){l(this,"r"),l(this,"s"),l(this,"recovery"),this.r=eR(e),this.s=eR(t),null!=n&&(this.recovery=n),Object.freeze(this)}static fromBytes(t){return es(t,64),new e(eH(t,0,et),eH(t,et,64))}toBytes(){let{r:e,s:t}=this;return eb(eO(e),eO(t))}addRecoveryBit(t){return new e(this.r,this.s,t)}hasHighS(){return eD(this.s)}toCompactRawBytes(){return this.toBytes()}toCompactHex(){return ed(this.toBytes())}recoverPublicKey(e){return eQ(this,e)}static fromCompact(t){return e.fromBytes(ep(t,64))}assertValidity(){return this}normalizeS(){let{r:t,s:n,recovery:r}=this;return eD(n)?new e(t,ev(-n),r):this}},eV=e=>{let t=8*e.length-256;t>1024&&en("msg invalid");let n=eL(e);return t>0?n>>ey(t):n},eZ=e=>ev(eV(es(e))),eY={lowS:!0},eJ=(e,t,n=eY)=>{["der","recovered","canonical"].some(e=>e in n)&&en("option not supported");let{lowS:r,extraEntropy:i}=n;null==r&&(r=!0);let o=eZ(ep(e)),s=eO(o),a=eW(t),l=[eO(a),s];return i&&l.push(!0===i?ew(et):ep(i)),{seed:eb(...l),k2sig:e=>{let t=eV(e);if(!(1n<=t&&t<Q))return;let n=eM.multiply(t).toAffine(),i=ev(n.x);if(0n===i)return;let s=ev(ek(t,Q)*ev(o+ev(a*i)));if(0n===s)return;let l=s,c=2*(n.x!==i)|Number(1n&n.y);return r&&eD(s)&&(l=ev(-s),c^=1),new eK(i,l,c)}}},e$=e=>{let t=ea(et),n=ea(et),r=0,i=ea(0),o=()=>{t.fill(1),n.fill(0),r=0};{let e=(...e)=>eI("hmacSha256Sync")(n,t,...e),s=(r=i)=>{n=e(eB(0),r),t=e(),0!==r.length&&(n=e(eB(1),r),t=e())},a=()=>(r++>=1e3&&en("drbg: tried 1000 values"),t=e());return(e,t)=>{let n;for(o(),s(e);!(n=t(a()));)s();return o(),n}}},eQ=(e,t)=>{let{r:n,s:r,recovery:i}=e;[0,1,2,3].includes(i)||en("recovery id invalid");let o=eZ(ep(t,et)),s=2===i||3===i?n+Q:n;eE(s);let a=eb(eN(ey(i)),eO(s)),l=eq.fromBytes(a),c=ek(s,Q);return eF(l,ev(-o*c),ev(r*c))},eG={hexToBytes:ef,bytesToHex:ed,concatBytes:eb,bytesToNumberBE:eL,numberToBytesBE:eO,mod:ex,invert:ek,hmacSha256Async:async(e,...t)=>{let n=eg(),r="HMAC",i=await n.importKey("raw",e,{name:r,hash:{name:"SHA-256"}},!1,["sign"]);return ea(await n.sign(r,i,eb(...t)))},hmacSha256Sync:void 0,hashToPrivateKey:e=>(((e=ep(e)).length<et+8||e.length>1024)&&en("expected 40-1024b"),eO(ex(eL(e),Q-1n)+1n)),randomBytes:ew},eX=Math.ceil(32)+1,e0=()=>{let e=[],t=eM,n=t;for(let r=0;r<eX;r++){n=t,e.push(n);for(let r=1;r<128;r++)n=n.add(t),e.push(n);t=n.double()}return e},e1=void 0,e2=(e,t)=>{let n=t.negate();return e?n:t},e5=e=>{let t=e1||(e1=e0()),n=eU,r=eM,i=ey(255),o=ey(8);for(let s=0;s<eX;s++){let a=Number(e&i);e>>=o,a>128&&(a-=256,e+=1n);let l=128*s,c=l+Math.abs(a)-1,d=s%2!=0,u=a<0;0===a?r=r.add(e2(d,t[l])):n=n.add(e2(u,t[c]))}return{p:n,f:r}};void 0===globalThis.crypto&&(globalThis.crypto=a("crypto").webcrypto),eG.hmacS
1ha256Sync=(e,...t)=>W(J,e,eG.concatBytes(...t)),new TextEncoder;n(49509);var e6=Object.defineProperty,e8=(e=>(e.UserRejected="user_rejected",e.VerificationRejected="verification_rejected",e.CredentialUnavailable="credential_unavailable",e.MalformedRequest="malformed_request",e.InvalidNetwork="invalid_network",e.InclusionProofPending="inclusion_proof_pending",e.InclusionProofFailed="inclusion_proof_failed",e.UnexpectedResponse="unexpected_response",e.ConnectionFailed="connection_failed",e.MaxVerificationsReached="max_verifications_reached",e.FailedByHostApp="failed_by_host_app",e.GenericError="generic_error",e.Timeout="timeout",e.Cancelled="cancelled",e))(e8||{}),e3={};((e,t)=>{for(var n in t)e6(e,n,{get:t[n],enumerable:!0})})(e3,{BridgeEncryption:()=>e4,CredentialRequestWasm:()=>e7,IDKitBuilder:()=>e9,IDKitProof:()=>te,IDKitRequest:()=>tt,RpContextWasm:()=>tn,RpSignature:()=>tr,base64Decode:()=>ti,base64Encode:()=>to,computeRpSignatureMessage:()=>ts,createSession:()=>ta,default:()=>t$,hashSignal:()=>tl,initSync:()=>tJ,init_wasm:()=>tc,proveSession:()=>td,request:()=>tu,signRequest:()=>t_});var e4=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ty.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_bridgeencryption_free(e,0)}decrypt(e){let t,n;try{let d=r.__wbindgen_add_to_stack_pointer(-16),u=tz(e,r.__wbindgen_export,r.__wbindgen_export2),_=tV;r.bridgeencryption_decrypt(d,this.__wbg_ptr,u,_);var i=tB().getInt32(d+0,!0),o=tB().getInt32(d+4,!0),s=tB().getInt32(d+8,!0),a=tB().getInt32(d+12,!0),l=i,c=o;if(a)throw l=0,c=0,tO(s);return t=l,n=c,tN(l,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}encrypt(e){let t,n;try{let d=r.__wbindgen_add_to_stack_pointer(-16),u=tz(e,r.__wbindgen_export,r.__wbindgen_export2),_=tV;r.bridgeencryption_encrypt(d,this.__wbg_ptr,u,_);var i=tB().getInt32(d+0,!0),o=tB().getInt32(d+4,!0),s=tB().getInt32(d+8,!0),a=tB().getInt32(d+12,!0),l=i,c=o;if(a)throw l=0,c=0,tO(s);return t=l,n=c,tN(l,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}keyBase64(){let e,t;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.bridgeencryption_keyBase64(o,this.__wbg_ptr);var n=tB().getInt32(o+0,!0),i=tB().getInt32(o+4,!0);return e=n,t=i,tN(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(e,t,1)}}constructor(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.bridgeencryption_new(n);var e=tB().getInt32(n+0,!0),t=tB().getInt32(n+4,!0);if(tB().getInt32(n+8,!0))throw tO(t);return this.__wbg_ptr=e>>>0,ty.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}nonceBase64(){let e,t;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.bridgeencryption_nonceBase64(o,this.__wbg_ptr);var n=tB().getInt32(o+0,!0),i=tB().getInt32(o+4,!0);return e=n,t=i,tN(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(e,t,1)}}};Symbol.dispose&&(e4.prototype[Symbol.dispose]=e4.prototype.free);var e7=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,tm.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,tm.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_credentialrequestwasm_free(e,0)}credentialType(){return tO(r.credentialrequestwasm_credentialType(this.__wbg_ptr))}getSignalBytes(){try{let n,i=r.__wbindgen_add_to_stack_pointer(-16);r.credentialrequestwasm_getSignalBytes(i,this.__wbg_ptr);var e=tB().getInt32(i+0,!0),t=tB().getInt32(i+4,!0);return 0!==e&&(n=tR(e,t).slice(),r.__wbindgen_export4(e,+t,1)),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(e,t){try{let a=r.__wbindgen_add_to_stack_pointer(-16);var n=tF(t)?0:tz(t,r.__wbindgen_export,r.__wbindgen_export2),i=tV;r.credentialrequestwasm_new(a,tA(e),n,i);var o=tB().getInt32(a+0,!0),s=tB().getInt32(a+4,!0);if(tB().getInt32(a+8,!0))throw tO(s);return this.__wbg_ptr=o>>>0,tm.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}toJSON(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.credentialrequestwasm_toJSON(n,this.__wbg_ptr);var e=tB().getInt32(n+0,!0),t=tB().getInt32(n+4,!0);if(tB().getInt32(n+8,!0))throw tO(t);return tO(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static withBytes(t,n){try{let s=r.__wbindgen_add_to_stack_pointer(-16),a=tH(n,r.__wbindgen_export),l=tV;r.credentialrequestwasm_withBytes(s,tA(t),a,l);var i=tB().getInt32(s+0,!0),o=tB().getInt32(s+4,!0);if(tB().getInt32(s+8,!0))throw tO(o);return e.__wrap(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static withExpiresAtMin(t,n,i){try{let c=r.__wbindgen_add_to_stack_pointer(-16);var o=tF(n)?0:tz(n,r.__wbindgen_export,r.__wbindgen_export2),s=tV;r.credentialrequestwasm_withExpiresAtMin(c,tA(t),o,s,i);var a=tB().getInt32(c+0,!0),l=tB().getInt32(c+4,!0);if(tB().getInt32(c+8,!0))throw tO(l);return e.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static withGenesisMin(t,n,i){try{let c=r.__wbindgen_add_to_stack_pointer(-16);var o=tF(n)?0:tz(n,r.__wbindgen_export,r.__wbindgen_export2),s=tV;r.credentialrequestwasm_withGenesisMin(c,tA(t),o,s,i);var a=tB().getInt32(c+0,!0),l=tB().getInt32(c+4,!0);if(tB().getInt32(c+8,!0))throw tO(l);return e.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(e7.prototype[Symbol.dispose]=e7.prototype.free);var e9=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,tx.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,tx.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_idkitbuilder_free(e,0)}constraints(e){let t=this.__destroy_into_raw();return tO(r.idkitbuilder_constraints(t,tA(e)))}static forCreateSession(t,n,i,o,s,a,l){let c=tz(t,r.__wbindgen_export,r.__wbindgen_export2),d=tV;tS(n,tn);var u=n.__destroy_into_raw(),_=tF(i)?0:tz(i,r.__wbindgen_export,r.__wbindgen_export2),f=tV,p=tF(o)?0:tz(o,r.__wbindgen_export,r.__wbindgen_export2),h=tV,g=tF(s)?0:tz(s,r.__wbindgen_export,r.__wbindgen_export2),b=tV,w=tF(a)?0:tz(a,r.__wbindgen_export,r.__wbindgen_export2),y=tV,m=tF(l)?0:tz(l,r.__wbindgen_export,r.__wbindgen_export2),x=tV;
1let v=r.idkitbuilder_forCreateSession(c,d,u,_,f,p,h,g,b,w,y,m,x);return e.__wrap(v)}static forProveSession(t,n,i,o,s,a,l,c){let d=tz(t,r.__wbindgen_export,r.__wbindgen_export2),u=tV,_=tz(n,r.__wbindgen_export,r.__wbindgen_export2),f=tV;tS(i,tn);var p=i.__destroy_into_raw(),h=tF(o)?0:tz(o,r.__wbindgen_export,r.__wbindgen_export2),g=tV,b=tF(s)?0:tz(s,r.__wbindgen_export,r.__wbindgen_export2),w=tV,y=tF(a)?0:tz(a,r.__wbindgen_export,r.__wbindgen_export2),m=tV,x=tF(l)?0:tz(l,r.__wbindgen_export,r.__wbindgen_export2),v=tV,k=tF(c)?0:tz(c,r.__wbindgen_export,r.__wbindgen_export2),I=tV;let C=r.idkitbuilder_forProveSession(d,u,_,f,p,h,g,b,w,y,m,x,v,k,I);return e.__wrap(C)}nativePayload(e){try{let i=this.__destroy_into_raw(),o=r.__wbindgen_add_to_stack_pointer(-16);r.idkitbuilder_nativePayload(o,i,tA(e));var t=tB().getInt32(o+0,!0),n=tB().getInt32(o+4,!0);if(tB().getInt32(o+8,!0))throw tO(n);return tO(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}nativePayloadFromPreset(e){try{let i=this.__destroy_into_raw(),o=r.__wbindgen_add_to_stack_pointer(-16);r.idkitbuilder_nativePayloadFromPreset(o,i,tA(e));var t=tB().getInt32(o+0,!0),n=tB().getInt32(o+4,!0);if(tB().getInt32(o+8,!0))throw tO(n);return tO(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}nativePayloadV1FromPreset(e){try{let i=this.__destroy_into_raw(),o=r.__wbindgen_add_to_stack_pointer(-16);r.idkitbuilder_nativePayloadV1FromPreset(o,i,tA(e));var t=tB().getInt32(o+0,!0),n=tB().getInt32(o+4,!0);if(tB().getInt32(o+8,!0))throw tO(n);return tO(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(e,t,n,i,o,s,a,l,c){let d=tz(e,r.__wbindgen_export,r.__wbindgen_export2),u=tV,_=tz(t,r.__wbindgen_export,r.__wbindgen_export2),f=tV;tS(n,tn);var p=n.__destroy_into_raw(),h=tF(i)?0:tz(i,r.__wbindgen_export,r.__wbindgen_export2),g=tV,b=tF(o)?0:tz(o,r.__wbindgen_export,r.__wbindgen_export2),w=tV,y=tF(a)?0:tz(a,r.__wbindgen_export,r.__wbindgen_export2),m=tV,x=tF(l)?0:tz(l,r.__wbindgen_export,r.__wbindgen_export2),v=tV,k=tF(c)?0:tz(c,r.__wbindgen_export,r.__wbindgen_export2),I=tV;let C=r.idkitbuilder_new(d,u,_,f,p,h,g,b,w,s,y,m,x,v,k,I);return this.__wbg_ptr=C>>>0,tx.register(this,this.__wbg_ptr,this),this}preset(e){let t=this.__destroy_into_raw();return tO(r.idkitbuilder_preset(t,tA(e)))}};Symbol.dispose&&(e9.prototype[Symbol.dispose]=e9.prototype.free);var te=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,tv.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_idkitproof_free(e,0)}constructor(e,t,n,i){try{let a=r.__wbindgen_add_to_stack_pointer(-16),l=tz(e,r.__wbindgen_export,r.__wbindgen_export2),c=tV,d=tz(t,r.__wbindgen_export,r.__wbindgen_export2),u=tV,_=tz(n,r.__wbindgen_export,r.__wbindgen_export2),f=tV;r.idkitproof_new(a,l,c,d,u,_,f,tA(i));var o=tB().getInt32(a+0,!0),s=tB().getInt32(a+4,!0);if(tB().getInt32(a+8,!0))throw tO(s);return this.__wbg_ptr=o>>>0,tv.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}toJSON(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.idkitproof_toJSON(n,this.__wbg_ptr);var e=tB().getInt32(n+0,!0),t=tB().getInt32(n+4,!0);if(tB().getInt32(n+8,!0))throw tO(t);return tO(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(te.prototype[Symbol.dispose]=te.prototype.free);var tt=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,tk.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,tk.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_idkitrequest_free(e,0)}connectUrl(){let e,t;try{let c=r.__wbindgen_add_to_stack_pointer(-16);r.idkitrequest_connectUrl(c,this.__wbg_ptr);var n=tB().getInt32(c+0,!0),i=tB().getInt32(c+4,!0),o=tB().getInt32(c+8,!0),s=tB().getInt32(c+12,!0),a=n,l=i;if(s)throw a=0,l=0,tO(o);return e=a,t=l,tN(a,l)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(e,t,1)}}pollForStatus(){return tO(r.idkitrequest_pollForStatus(this.__wbg_ptr))}requestId(){let e,t;try{let c=r.__wbindgen_add_to_stack_pointer(-16);r.idkitrequest_requestId(c,this.__wbg_ptr);var n=tB().getInt32(c+0,!0),i=tB().getInt32(c+4,!0),o=tB().getInt32(c+8,!0),s=tB().getInt32(c+12,!0),a=n,l=i;if(s)throw a=0,l=0,tO(o);return e=a,t=l,tN(a,l)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(e,t,1)}}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var tn=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,tI.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rpcontextwasm_free(e,0)}constructor(e,t,n,i,o){try{let l=r.__wbindgen_add_to_stack_pointer(-16),c=tz(e,r.__wbindgen_export,r.__wbindgen_export2),d=tV,u=tz(t,r.__wbindgen_export,r.__wbindgen_export2),_=tV,f=tz(o,r.__wbindgen_export,r.__wbindgen_export2),p=tV;r.rpcontextwasm_new(l,c,d,u,_,n,i,f,p);var s=tB().getInt32(l+0,!0),a=tB().getInt32(l+4,!0);if(tB().getInt32(l+8,!0))throw tO(a);return this.__wbg_ptr=s>>>0,tI.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(tn.prototype[Symbol.dispose]=tn.prototype.free);var tr=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,tC.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,tC.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rpsignature_free(e,0)}get createdAt(){return BigInt.asUintN(64,r.rpsignature_createdAt(this.__wbg_ptr))}get expiresAt(){return BigInt.asUintN(64,r.rpsignature_expiresAt(this.__wbg_ptr))}get nonce(){let e,t;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.rpsignature_nonce(o,this.__wbg_ptr);var n=tB().getInt32(o+0,!0),i=tB().getInt32(o+4,!0);return e=n,t=i,tN(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(e,t,1)}}
1get sig(){let e,t;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.rpsignature_sig(o,this.__wbg_ptr);var n=tB().getInt32(o+0,!0),i=tB().getInt32(o+4,!0);return e=n,t=i,tN(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(e,t,1)}}toJSON(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.rpsignature_toJSON(n,this.__wbg_ptr);var e=tB().getInt32(n+0,!0),t=tB().getInt32(n+4,!0);if(tB().getInt32(n+8,!0))throw tO(t);return tO(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};function ti(e){try{let s=r.__wbindgen_add_to_stack_pointer(-16),a=tz(e,r.__wbindgen_export,r.__wbindgen_export2),l=tV;r.base64Decode(s,a,l);var t=tB().getInt32(s+0,!0),n=tB().getInt32(s+4,!0),i=tB().getInt32(s+8,!0);if(tB().getInt32(s+12,!0))throw tO(i);var o=tR(t,n).slice();return r.__wbindgen_export4(t,+n,1),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}function to(e){let t,n;try{let s=r.__wbindgen_add_to_stack_pointer(-16),a=tH(e,r.__wbindgen_export),l=tV;r.base64Encode(s,a,l);var i=tB().getInt32(s+0,!0),o=tB().getInt32(s+4,!0);return t=i,n=o,tN(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}function ts(e,t,n,i){try{let u=r.__wbindgen_add_to_stack_pointer(-16),_=tz(e,r.__wbindgen_export,r.__wbindgen_export2),f=tV;var o=tF(i)?0:tz(i,r.__wbindgen_export,r.__wbindgen_export2),s=tV;r.computeRpSignatureMessage(u,_,f,t,n,o,s);var a=tB().getInt32(u+0,!0),l=tB().getInt32(u+4,!0),c=tB().getInt32(u+8,!0);if(tB().getInt32(u+12,!0))throw tO(c);var d=tR(a,l).slice();return r.__wbindgen_export4(a,+l,1),d}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ta(e,t,n,i,o,s,a){let l=tz(e,r.__wbindgen_export,r.__wbindgen_export2),c=tV;tS(t,tn);var d=t.__destroy_into_raw(),u=tF(n)?0:tz(n,r.__wbindgen_export,r.__wbindgen_export2),_=tV,f=tF(i)?0:tz(i,r.__wbindgen_export,r.__wbindgen_export2),p=tV,h=tF(o)?0:tz(o,r.__wbindgen_export,r.__wbindgen_export2),g=tV,b=tF(s)?0:tz(s,r.__wbindgen_export,r.__wbindgen_export2),w=tV,y=tF(a)?0:tz(a,r.__wbindgen_export,r.__wbindgen_export2),m=tV;let x=r.createSession(l,c,d,u,_,f,p,h,g,b,w,y,m);return e9.__wrap(x)}function tl(e){let t,n;try{let d=r.__wbindgen_add_to_stack_pointer(-16);r.hashSignal(d,tA(e));var i=tB().getInt32(d+0,!0),o=tB().getInt32(d+4,!0),s=tB().getInt32(d+8,!0),a=tB().getInt32(d+12,!0),l=i,c=o;if(a)throw l=0,c=0,tO(s);return t=l,n=c,tN(l,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}function tc(){r.init_wasm()}function td(e,t,n,i,o,s,a,l){let c=tz(e,r.__wbindgen_export,r.__wbindgen_export2),d=tV,u=tz(t,r.__wbindgen_export,r.__wbindgen_export2),_=tV;tS(n,tn);var f=n.__destroy_into_raw(),p=tF(i)?0:tz(i,r.__wbindgen_export,r.__wbindgen_export2),h=tV,g=tF(o)?0:tz(o,r.__wbindgen_export,r.__wbindgen_export2),b=tV,w=tF(s)?0:tz(s,r.__wbindgen_export,r.__wbindgen_export2),y=tV,m=tF(a)?0:tz(a,r.__wbindgen_export,r.__wbindgen_export2),x=tV,v=tF(l)?0:tz(l,r.__wbindgen_export,r.__wbindgen_export2),k=tV;let I=r.proveSession(c,d,u,_,f,p,h,g,b,w,y,m,x,v,k);return e9.__wrap(I)}function tu(e,t,n,i,o,s,a,l,c){let d=tz(e,r.__wbindgen_export,r.__wbindgen_export2),u=tV,_=tz(t,r.__wbindgen_export,r.__wbindgen_export2),f=tV;tS(n,tn);var p=n.__destroy_into_raw(),h=tF(i)?0:tz(i,r.__wbindgen_export,r.__wbindgen_export2),g=tV,b=tF(o)?0:tz(o,r.__wbindgen_export,r.__wbindgen_export2),w=tV,y=tF(a)?0:tz(a,r.__wbindgen_export,r.__wbindgen_export2),m=tV,x=tF(l)?0:tz(l,r.__wbindgen_export,r.__wbindgen_export2),v=tV,k=tF(c)?0:tz(c,r.__wbindgen_export,r.__wbindgen_export2),I=tV;let C=r.request(d,u,_,f,p,h,g,b,w,s,y,m,x,v,k,I);return e9.__wrap(C)}function t_(e,t,n){try{let l=r.__wbindgen_add_to_stack_pointer(-16),c=tz(e,r.__wbindgen_export,r.__wbindgen_export2),d=tV;var i=tF(n)?0:tz(n,r.__wbindgen_export,r.__wbindgen_export2),o=tV;r.signRequest(l,c,d,!tF(t),tF(t)?BigInt(0):t,i,o);var s=tB().getInt32(l+0,!0),a=tB().getInt32(l+4,!0);if(tB().getInt32(l+8,!0))throw tO(a);return tr.__wrap(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function tf(){return{__proto__:null,"./idkit_wasm_bg.js":{__proto__:null,__wbg_Error_83742b46f01ce22d:function(e,t){return tA(Error(tN(e,t)))},__wbg_String_8564e559799eccda:function(e,t){let n=tz(String(tM[t]),r.__wbindgen_export,r.__wbindgen_export2),i=tV;tB().setInt32(e+4,i,!0),tB().setInt32(e+0,n,!0)},__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda:function(e,t){let n=tM[t],r="bigint"==typeof n?n:void 0;tB().setBigInt64(e+8,tF(r)?BigInt(0):r,!0),tB().setInt32(e+0,!tF(r),!0)},__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1:function(e){let t=tM[e],n="boolean"==typeof t?t:void 0;return tF(n)?0xffffff:+!!n},__wbg___wbindgen_debug_string_5398f5bb970e0daa:function(e,t){let n=tz(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+"]"}let i=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!i||!(i.length>1))return toString.call(t);if("Object"==(n=i[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2${t.stack}`:n}(tM[t]),r.__wbindgen_export,r.__wbindgen_export2),i=tV;tB().setInt32(e+4,i,!0),tB().setInt32(e+0,n,!0)},__wbg___wbindgen_in_41dbb8413020e076:function(e,t){return tM[e]in tM[t]},__wbg___wbindgen_is_bigint_e2141d4f045b7eda:function(e){return"bigint"==typeof tM[e]},__wbg___wbindgen_is_function_3c846841762788c1:function(e){return"function"==typeof tM[e]},__wbg___wbindgen_is_object_781bc9f159099513:function(e){let t=tM[e];return"object"==typeof t&&null!==t},__wbg___wbindgen_is_string_7ef6b97b02428fae:function(e){return"string"==typeof tM[e]},__wbg___wbindgen_is_undefined_52709e72fb9f179c:function(e){return void 0===tM[e]},__wbg___wbindgen_jsval_eq_ee31bfad3e536463:function(e,t){return tM[e]===tM[t]},__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b:function(e,t){return tM[e]==tM[t]},__wbg___wbindgen_number_get_34bb9d9dcfa21373:function(e,t){let n=tM[t],r="number"==typeof n?n:void 0;tB().setFloat64(e+8,tF(r)?0:r,!0),tB().setInt32(e+0,!tF(r),!0)},__wbg___wbindgen_string_get_395e606bd0ee4427:function(e,t){let n=tM[t],i="string"==typeof n?n:void 0;var o=tF(i)?0:tz(i,r.__wbindgen_export,r.__wbindgen_export2),s=tV;tB().setInt32(e+4,s,!0),tB().setInt32(e+0,o,!0)},__wbg___wbindgen_throw_6ddd609b62940d55:function(e,t){throw Error(tN(e,t))}
2,__wbg__wbg_cb_unref_6b5b6b8576d35cb1:function(e){tM[e]._wbg_cb_unref()},__wbg_abort_5ef96933660780b7:function(e){tM[e].abort()},__wbg_abort_6479c2d794ebf2ee:function(e,t){tM[e].abort(tM[t])},__wbg_append_608dfb635ee8998f:function(){return tq(function(e,t,n,r,i){tM[e].append(tN(t,n),tN(r,i))},arguments)},__wbg_arrayBuffer_eb8e9ca620af2a19:function(){return tq(function(e){return tA(tM[e].arrayBuffer())},arguments)},__wbg_call_2d781c1f4d5c0ef8:function(){return tq(function(e,t,n){return tA(tM[e].call(tM[t],tM[n]))},arguments)},__wbg_call_e133b57c9155d22c:function(){return tq(function(e,t){return tA(tM[e].call(tM[t]))},arguments)},__wbg_clearTimeout_6b8d9a38b9263d65:function(e){return tA(clearTimeout(tO(e)))},__wbg_crypto_38df2bab126b63dc:function(e){return tA(tM[e].crypto)},__wbg_done_08ce71ee07e3bd17:function(e){return tM[e].done},__wbg_entries_e8a20ff8c9757101:function(e){return tA(Object.entries(tM[e]))},__wbg_error_a6fa202b58aa1cd3:function(e,t){let n,i;try{n=e,i=t,console.error(tN(e,t))}finally{r.__wbindgen_export4(n,i,1)}},__wbg_fetch_5550a88cf343aaa9:function(e,t){return tA(tM[e].fetch(tM[t]))},__wbg_fetch_9dad4fe911207b37:function(e){return tA(fetch(tM[e]))},__wbg_getRandomValues_a1cf2e70b003a59d:function(){return tq(function(e,t){globalThis.crypto.getRandomValues(tR(e,t))},arguments)},__wbg_getRandomValues_c44a50d8cfdaebeb:function(){return tq(function(e,t){tM[e].getRandomValues(tM[t])},arguments)},__wbg_get_326e41e095fb2575:function(){return tq(function(e,t){return tA(Reflect.get(tM[e],tM[t]))},arguments)},__wbg_get_a8ee5c45dabc1b3b:function(e,t){return tA(tM[e][t>>>0])},__wbg_get_unchecked_329cfe50afab7352:function(e,t){return tA(tM[e][t>>>0])},__wbg_has_926ef2ff40b308cf:function(){return tq(function(e,t){return Reflect.has(tM[e],tM[t])},arguments)},__wbg_headers_eb2234545f9ff993:function(e){return tA(tM[e].headers)},__wbg_idkitrequest_new:function(e){return tA(tt.__wrap(e))},__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6:function(e){let t;try{t=tM[e]instanceof ArrayBuffer}catch(e){t=!1}return t},__wbg_instanceof_Map_f194b366846aca0c:function(e){let t;try{t=tM[e]instanceof Map}catch(e){t=!1}return t},__wbg_instanceof_Response_9b4d9fd451e051b1:function(e){let t;try{t=tM[e]instanceof Response}catch(e){t=!1}return t},__wbg_instanceof_Uint8Array_740438561a5b956d:function(e){let t;try{t=tM[e]instanceof Uint8Array}catch(e){t=!1}return t},__wbg_isArray_33b91feb269ff46e:function(e){return Array.isArray(tM[e])},__wbg_isSafeInteger_ecd6a7f9c3e053cd:function(e){return Number.isSafeInteger(tM[e])},__wbg_iterator_d8f549ec8fb061b1:function(){return tA(Symbol.iterator)},__wbg_length_b3416cf66a5452c8:function(e){return tM[e].length},__wbg_length_ea16607d7b61445b:function(e){return tM[e].length},__wbg_msCrypto_bd5a034af96bcba6:function(e){return tA(tM[e].msCrypto)},__wbg_new_0837727332ac86ba:function(){return tq(function(){return tA(new Headers)},arguments)},__wbg_new_227d7c05414eb861:function(){return tA(Error())},__wbg_new_49d5571bd3f0c4d4:function(){return tA(new Map)},__wbg_new_5f486cdf45a04d78:function(e){return tA(new Uint8Array(tM[e]))},__wbg_new_a70fbab9066b301f:function(){return tA([])},__wbg_new_ab79df5bd7c26067:function(){return tA({})},__wbg_new_c518c60af666645b:function(){return tq(function(){return tA(new AbortController)},arguments)},__wbg_new_from_slice_22da9388ac046e50:function(e,t){return tA(new Uint8Array(tR(e,t)))},__wbg_new_typed_aaaeaf29cf802876:function(e,t){try{var n={a:e,b:t};let i=new Promise((e,t)=>{let i=n.a;n.a=0;try{var o,s,a,l;return o=i,s=n.b,a=e,l=t,void r.__wasm_bindgen_func_elem_1438(o,s,tA(a),tA(l))}finally{n.a=i}});return tA(i)}finally{n.a=n.b=0}},__wbg_new_with_length_825018a1616e9e55:function(e){return tA(new Uint8Array(e>>>0))},__wbg_new_with_str_and_init_b4b54d1a819bc724:function(){return tq(function(e,t,n){return tA(new Request(tN(e,t),tM[n]))},arguments)},__wbg_next_11b99ee6237339e3:function(){return tq(function(e){return tA(tM[e].next())},arguments)},__wbg_next_e01a967809d1aa68:function(e){return tA(tM[e].next)},__wbg_node_84ea875411254db1:function(e){return tA(tM[e].node)},__wbg_now_16f0c993d5dd6c27:function(){return Date.now()},__wbg_process_44c7a14e11e9f69e:function(e){return tA(tM[e].process)},__wbg_prototypesetcall_d62e5099504357e6:function(e,t,n){Uint8Array.prototype.set.call(tR(e,t),tM[n])},__wbg_queueMicrotask_0c399741342fb10f:function(e){return tA(tM[e].queueMicrotask)},__wbg_queueMicrotask_a082d78ce798393e:function(e){queueMicrotask(tM[e])},__wbg_randomFillSync_6c25eac9869eb53c:function(){return tq(function(e,t){tM[e].randomFillSync(tO(t))},arguments)},__wbg_require_b4edbdcf3e2a1ef0:function(){return tq(function(){return tA(module.require)},arguments)},__wbg_resolve_ae8d83246e5bcc12:function(e){return tA(Promise.resolve(tM[e]))},__wbg_setTimeout_f757f00851f76c42:function(e,t){return tA(setTimeout(tM[e],t))},__wbg_set_282384002438957f:function(e,t,n){tM[e][t>>>0]=tO(n)},__wbg_set_6be42768c690e380:function(e,t,n){tM[e][tO(t)]=tO(n)},__wbg_set_7eaa4f96924fd6b3:function(){return tq(function(e,t,n){return Reflect.set(tM[e],tM[t],tM[n])},arguments)},__wbg_set_bf7251625df30a02:function(e,t,n){return tA(tM[e].set(tM[t],tM[n]))},__wbg_set_body_a3d856b097dfda04:function(e,t){tM[e].body=tM[t]},__wbg_set_cache_ec7e430c6056ebda:function(e,t){tM[e].cache=tg[t]},__wbg_set_credentials_ed63183445882c65:function(e,t){tM[e].credentials=tb[t]},__wbg_set_headers_3c8fecc693b75327:function(e,t){tM[e].headers=tM[t]},__wbg_set_method_8c015e8bcafd7be1:function(e,t,n){tM[e].method=tN(t,n)},__wbg_set_mode_5a87f2c809cf37c2:function(e,t){tM[e].mode=tw[t]},__wbg_set_signal_0cebecb698f25d21:function(e,t){tM[e].signal=tM[t]},__wbg_signal_166e1da31adcac18:function(e){return tA(tM[e].signal)},__wbg_stack_3b0d974bbf31e44f:function(e,t){let n=tz(tM[t].stack,r.__wbindgen_export,r.__wbindgen_export2),i=tV;tB().setInt32(e+4,i,!0),tB().setInt32(e+0,n,!0)},__wbg_static_accessor_GLOBAL_8adb955bd33fac2f:function(){let e="undefined"==typeof global?null:global;return tF(e)?0:tA(e)},__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913:function(){let e="undefined"==typeof globalThis?null:globalThis;return tF(e)?0:tA(e)},__wbg_static_accessor_SELF_f207c857566db248:function(){let e="undefined"==typeof self?null:self;return tF(e)?0:tA(e)},__wbg_static_accessor_WINDOW_bb9f1ba69d61b386:function(){let e="undefined"==typeof window?null:window;return tF(e)?0:tA(e)},__wbg_status_318629ab93a22955:function(e){return tM[e].status},__wbg_stringify_5ae93966a84901ac:function(){return tq(function(e){return tA(JSON.stringify(tM[e]))},arguments)},__wbg_subarray_a068d24e39478a8a:function(e,t,n){return tA(tM[e].subarray(t>>>0,n>>>0))},__wbg_text_372f5b91442c50f9:function(){return tq(function(e){return tA(tM[e].text())},arguments)},__wbg_then_098abe61755d12f6:function(e,t){return tA(tM[e].then(tM[t]))}
2,__wbg_then_9e335f6dd892bc11:function(e,t,n){return tA(tM[e].then(tM[t],tM[n]))},__wbg_url_7fefc1820fba4e0c:function(e,t){let n=tz(tM[t].url,r.__wbindgen_export,r.__wbindgen_export2),i=tV;tB().setInt32(e+4,i,!0),tB().setInt32(e+0,n,!0)},__wbg_value_21fc78aab0322612:function(e){return tA(tM[e].value)},__wbg_versions_276b2795b1c6a219:function(e){return tA(tM[e].versions)},__wbindgen_cast_0000000000000001:function(e,t){return tA(tL(e,t,r.__wasm_bindgen_func_elem_656,tp))},__wbindgen_cast_0000000000000002:function(e,t){return tA(tL(e,t,r.__wasm_bindgen_func_elem_984,th))},__wbindgen_cast_0000000000000003:function(e){return tA(e)},__wbindgen_cast_0000000000000004:function(e){return tA(e)},__wbindgen_cast_0000000000000005:function(e,t){return tA(tR(e,t))},__wbindgen_cast_0000000000000006:function(e,t){return tA(tN(e,t))},__wbindgen_cast_0000000000000007:function(e){return tA(BigInt.asUintN(64,e))},__wbindgen_object_clone_ref:function(e){return tA(tM[e])},__wbindgen_object_drop_ref:function(e){tO(e)}}}}function tp(e,t){r.__wasm_bindgen_func_elem_657(e,t)}function th(e,t,n){try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.__wasm_bindgen_func_elem_985(o,e,t,tA(n));var i=tB().getInt32(o+0,!0);if(tB().getInt32(o+4,!0))throw tO(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}Symbol.dispose&&(tr.prototype[Symbol.dispose]=tr.prototype.free);var tg=["default","no-store","reload","no-cache","force-cache","only-if-cached"],tb=["omit","same-origin","include"],tw=["same-origin","no-cors","cors","navigate"],ty="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_bridgeencryption_free(e>>>0,1)),tm="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_credentialrequestwasm_free(e>>>0,1)),tx="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_idkitbuilder_free(e>>>0,1)),tv="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_idkitproof_free(e>>>0,1)),tk="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_idkitrequest_free(e>>>0,1)),tI="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rpcontextwasm_free(e>>>0,1)),tC="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rpsignature_free(e>>>0,1));function tA(e){tU===tM.length&&tM.push(tM.length+1);let t=tU;return tU=tM[t],tM[t]=e,t}function tS(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}var tE="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));function tR(e,t){return e>>>=0,tT().subarray(e/1,e/1+t)}var tj=null;function tB(){return(null===tj||!0===tj.buffer.detached||void 0===tj.buffer.detached&&tj.buffer!==r.memory.buffer)&&(tj=new DataView(r.memory.buffer)),tj}function tN(e,t){var n,r;return n=e>>>=0,(tD+=r=t)>=0x7ff00000&&((tW=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),tD=r),tW.decode(tT().subarray(n,n+r))}var tP=null;function tT(){return(null===tP||0===tP.byteLength)&&(tP=new Uint8Array(r.memory.buffer)),tP}function tq(e,t){try{return e.apply(this,t)}catch(e){r.__wbindgen_export3(tA(e))}}var tM=Array(1024).fill(void 0);tM.push(void 0,null,!0,!1);var tU=tM.length;function tF(e){return null==e}function tL(e,t,n,r){let i={a:e,b:t,cnt:1,dtor:n},o=(...e)=>{i.cnt++;let t=i.a;i.a=0;try{return r(t,i.b,...e)}finally{i.a=t,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{0==--i.cnt&&(i.dtor(i.a,i.b),i.a=0,tE.unregister(i))},tE.register(o,i,i),o}function tH(e,t){let n=t(+e.length,1)>>>0;return tT().set(e,n/1),tV=e.length,n}function tz(e,t,n){if(void 0===n){let n=tK.encode(e),r=t(n.length,1)>>>0;return tT().subarray(r,r+n.length).set(n),tV=n.length,r}let r=e.length,i=t(r,1)>>>0,o=tT(),s=0;for(;s<r;s++){let t=e.charCodeAt(s);if(t>127)break;o[i+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),i=n(i,r,r=s+3*e.length,1)>>>0;let t=tT().subarray(i+s,i+r);s+=tK.encodeInto(e,t).written,i=n(i,r,s,1)>>>0}return tV=s,i}function tO(e){let t=tM[e];return e<1028||(tM[e]=tU,tU=e),t}var tW=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});tW.decode();var tD=0,tK=new TextEncoder;"encodeInto"in tK||(tK.encodeInto=function(e,t){let n=tK.encode(e);return t.set(n),{read:e.length,written:n.length}});var tV=0;function tZ(e,t){return r=e.exports,tj=null,tP=null,r.__wbindgen_start(),r}async function tY(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function tJ(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=tf();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),tZ(new WebAssembly.Instance(e,t))}async function t$(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new n.U(n(71328)));let t=tf();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:o}=await tY(await e,t);return tZ(i)}var tQ=!1,tG=null;async function tX(){if(!tQ)return tG||(tG=(async()=>{try{await t$(),tQ=!0}catch(e){throw tG=null,Error(`Failed to initialize IDKit WASM: ${e}`)}})())}function t0(){return"undefined"!=typeof window&&!!window.IDKIT_DEBUG}var t1="miniapp-verify-action";function t2(){return"undefined"!=typeof window&&!!window.WorldApp}function t5(){let e=window.WorldApp?.supported_commands;if(!Array.isArray(e))return 1;let t=e.find(e=>"verify"===e.name);return t?.supported_versions?.includes(2)?2:1}var t6=0,t8=null;function t3(e,t,n={},r,i=2){if(t8?.isPending())return t0()&&console.warn("[IDKit] Native: request already in flight, reusing active request"),t8;let o=new t4(e,t,n,r,i);return t8=o,o}var t4=class{constructor(e,t,n={},r,i=2){this.connectorURI="",this.completionResult=null,this.resolveFn=null,this.messageHandler=null,this.miniKitHandler=null,this.requestId=crypto.randomUUID?.()??`native-${Date.now()}-${++t6}`,this.resultPromise=new Promise(o=>{this.resolveFn=o;let s=e=>{if(!this.completionResult){if(e?.status==="error"){t0()&&console.warn("[IDKit] Native: received error response",e.error_code),this.complete({success:!1,error:e.error_code??"generic_error"});return}this.complete({success:!0,result:function(e,t,n,r){let i=t.rp_context?.nonce??"";if("proof_response"in e&&null!=e.proof_response){let r=e.proof_response,o=r.responses??[];return r.session_id?{protocol_version:"4.0",nonce:r.nonce??i,action_description:r.action_description,session_id:r.session_id,responses:o.map(e=>({identifier:e.identifier,signal_hash:n[e.identifier],proof:e.proof,session_nullifier:e.session_nullifier,issuer_schema_id:e.issuer_schema_id,expires_at_min:e.expires_at_min})),environment:t.environment??"production"}:{protocol_version:"4.0",nonce:r.nonce??i,action:r.action??t.action??"",action_description:r.action_description,responses:o.map(e=>({identifier:e.identifier,signal_hash:n[e.identifier],proof:e.proof,nullifier:e.nullifier,issuer_schema_id:e.issuer_schema_id,expires_at_min:e.expires_at_min})),environment:t.environment??"production"}}if("verifications"in e&&Array.isArray(e.verifications)){let o=e.verifications;return{protocol_version:"3.0",nonce:i,action:t.action??"",responses:o.map(e=>({identifier:e.verification_level,signal_hash:e.signal_hash??n[e.verification_level]??r,proof:e.proof,merkle_root:e.merkle_root,nullifier:e.nullifier_hash})),environment:t.environment??"production"}}return{protocol_version:"3.0",nonce:i,action:t.action??"",responses:[{identifier:e.verification_level,signal_hash:e.signal_hash??n[e.verification_level]??r,proof:e.proof,merkle_root:e.merkle_root,nullifier:e.nullifier_hash}],environment:t.environment??"production"}}(e,t,n,r)})}},a=e=>{let t=e.data;(t?.type===t1||t?.command===t1)&&s(t.payload??t)};this.messageHandler=a,window.addEventListener("message",a);try{let e=window.MiniKit;if("function"==typeof e?.subscribe){let t=e=>{s(e?.payload??e)};this.miniKitHandler=t,e.subscribe(t1,t)}}catch(e){t0()&&console.warn("[IDKit] Native: MiniKit subscribe failed",e)}let l={command:"verify",version:i,payload:e};try{let e=window;e.webkit?.messageHandlers?.minikit?(t0()&&console.debug(`[IDKit] Native: sending verify command (version=${i}, platform=ios)`),e.webkit.messageHandlers.minikit.postMessage(l)):e.Android?(t0()&&console.debug(`[IDKit] Native: sending verify command (version=${i}, platform=android)`),e.Android.postMessage(JSON.stringify(l))):(t0()&&console.warn("[IDKit] Native: no native bridge found (no webkit/Android)"),this.complete({success:!1,error:"generic_error"}))}catch(e){t0()&&console.warn("[IDKit] Native: postMessage failed",e),this.complete({success:!1,error:"generic_error"})}})}complete(e){this.completionResult||(t0()&&console.debug("[IDKit] Native: request completed",e.success?"success":`error=${e.error}`),this.completionResult=e,this.cleanup(),this.resolveFn?.(e),t8===this&&(t8=null))}cancel(){this.complete({success:!1,error:"cancelled"})}cleanup(){if(this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.miniKitHandler){try{let e=window.MiniKit;e?.unsubscribe?.(t1)}catch(e){t0()&&console.warn("[IDKit] Native: MiniKit unsubscribe failed",e)}this.miniKitHandler=null}}isPending(){return null===this.completionResult}async pollOnce(){return this.completionResult?this.completionResult.success?{type:"confirmed",result:this.completionResult.result}:{type:"failed",error:this.completionResult.error}:{type:"awaiting_confirmation"}}async pollUntilCompletion(e){let t=setTimeout(()=>{this.complete({success:!1,error:"timeout"})},e?.timeout??9e5),n=e?.signal?()=>{this.complete({success:!1,error:"cancelled"})}:null;n&&(e.signal.aborted?n():e.signal.addEventListener("abort",n,{once:!0}));try{return await this.resultPromise}catch(e){return console.error("Unexpected rejection in native resultPromise",e),this.complete({success:!1,error:"generic_error"}),this.completionResult}finally{clearTimeout(t),e?.signal&&n&&e.signal.removeEventListener("abort",n)}}},t7=class{constructor(e){this.wasmRequest=e,this._connectorURI=e.connectUrl(),this._requestId=e.requestId()}get connectorURI(){return this._connectorURI}get requestId(){return this._requestId}async pollOnce(){return await this.wasmRequest.pollForStatus()}async pollUntilCompletion(e){let t=e?.pollInterval??1e3,n=e?.timeout??9e5,r=Date.now();for(;;){if(e?.signal?.aborted)return{success:!1,error:"cancelled"};if(Date.now()-r>n)return{success:!1,error:"timeout"};let i=await this.pollOnce();
2if("confirmed"===i.type&&i.result)return{success:!0,result:i.result};if("failed"===i.type)return{success:!1,error:i.error??"generic_error"};await new Promise(e=>setTimeout(e,t))}}};function t9(e={}){return{type:"OrbLegacy",signal:e.signal}}function ne(e){if(!e.rp_context)throw Error("rp_context is required for WASM bridge transport");let t=new e3.RpContextWasm(e.rp_context.rp_id,e.rp_context.nonce,BigInt(e.rp_context.created_at),BigInt(e.rp_context.expires_at),e.rp_context.signature);return"request"===e.type?e3.request(e.app_id,String(e.action??""),t,e.action_description??null,e.bridge_url??null,e.allow_legacy_proofs??!1,e.override_connect_base_url??null,e.return_to??null,e.environment??null):"proveSession"===e.type?e3.proveSession(e.session_id,e.app_id,t,e.action_description??null,e.bridge_url??null,e.override_connect_base_url??null,e.return_to??null,e.environment??null):e3.createSession(e.app_id,t,e.action_description??null,e.bridge_url??null,e.override_connect_base_url??null,e.return_to??null,e.environment??null)}var nt=class{constructor(e){this.config=e}async constraints(e){if(await tX(),t2()){if(2>t5())throw Error("verify v2 is not supported by this World App version. Use a legacy preset (e.g. orbLegacy()) or update the World App.");let t=ne(this.config).nativePayload(e);return t3(t.payload,this.config,t.signal_hashes??{},t.legacy_signal_hash,2)}let t=ne(this.config);return new t7(await t.constraints(e))}async preset(e){if("createSession"===this.config.type||"proveSession"===this.config.type)throw Error("Presets are not supported for session flows. Use .constraints() instead.");if(await tX(),t2()){if(2===t5()){let t=ne(this.config).nativePayloadFromPreset(e);return t3(t.payload,this.config,t.signal_hashes??{},t.legacy_signal_hash,2)}try{let t=ne(this.config).nativePayloadV1FromPreset(e);return t3(t.payload,this.config,t.signal_hashes??{},t.legacy_signal_hash,1)}catch(e){if(e instanceof Error&&String(e.message).includes("v1 payload"))throw Error("verify v2 is not supported by this World App version. Use a legacy preset (e.g. orbLegacy()) or update the World App.");throw e}}let t=ne(this.config);return new t7(await t.preset(e))}},nn={request:function(e){if(!e.app_id)throw Error("app_id is required");if(!e.action)throw Error("action is required");if(!e.rp_context)throw Error("rp_context is required. Generate it on your backend using signRequest().");if("boolean"!=typeof e.allow_legacy_proofs)throw Error("allow_legacy_proofs is required. Set to true to accept v3 proofs during migration, or false to only accept v4 proofs.");return new nt({type:"request",app_id:e.app_id,action:String(e.action),rp_context:e.rp_context,action_description:e.action_description,bridge_url:e.bridge_url,return_to:e.return_to,allow_legacy_proofs:e.allow_legacy_proofs,override_connect_base_url:e.override_connect_base_url,environment:e.environment})}},nr=n(12115),ni=n(47650),no=n(95155),ns=n(55908);function na(){return{isOpen:!1,status:"idle",connectorURI:null,result:null,errorCode:null}}function nl(e){if(e?.aborted)throw e8.Cancelled}async function nc(e,t){if(!t)return void await new Promise(t=>setTimeout(t,e));await new Promise((n,r)=>{let i=setTimeout(()=>{t.removeEventListener("abort",o),n()},e),o=()=>{clearTimeout(i),t.removeEventListener("abort",o),r(e8.Cancelled)};t.addEventListener("abort",o,{once:!0})})}var nd=new Set(Object.values(e8));function nu(e){return"string"==typeof e&&nd.has(e)?e:null}var n_=`
3@font-face {
4  font-family: 'TWK Lausanne';
5  src: url('https://world-id-assets.com/fonts/TWKLausanne-200.woff2') format('woff2');
6  font-weight: 200;
7  font-style: normal;
8  font-display: swap;
9}
10@font-face {
11  font-family: 'TWK Lausanne';
12  src: url('https://world-id-assets.com/fonts/TWKLausanne-300.woff2') format('woff2');
13  font-weight: 300;
14  font-style: normal;
15  font-display: swap;
16}
17@font-face {
18  font-family: 'TWK Lausanne';
19  src: url('https://world-id-assets.com/fonts/TWKLausanne-400.woff2') format('woff2');
20  font-weight: 400;
21  font-style: normal;
22  font-display: swap;
23}
24@font-face {
25  font-family: 'TWK Lausanne';
26  src: url('https://world-id-assets.com/fonts/TWKLausanne-500.woff2') format('woff2');
27  font-weight: 500;
28  font-style: normal;
29  font-display: swap;
30}
31@font-face {
32  font-family: 'TWK Lausanne';
33  src: url('https://world-id-assets.com/fonts/TWKLausanne-600.woff2') format('woff2');
34  font-weight: 600;
35  font-style: normal;
36  font-display: swap;
37}
38
39/* CSS Custom Properties */
40:host {
41  --idkit-font: 'TWK Lausanne', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
42  --idkit-bg: #ffffff;
43  --idkit-text: #0d151d;
44  --idkit-text-muted: #657080;
45  --idkit-text-secondary: #9eafc0;
46  --idkit-border: #EBECEF;
47  --idkit-border-light: #f1f5f8;
48  --idkit-surface: #f8fafc;
49  --idkit-success: #00C230;
50  --idkit-error: #9BA3AE;
51  --idkit-warning: #FFAE00;
52  --idkit-btn-bg: #0d151d;
53  --idkit-btn-text: #ffffff;
54}
55:host(.dark) {
56  --idkit-bg: #0d151d;
57  --idkit-text: #ffffff;
58  --idkit-text-muted: #9eafc0;
59  --idkit-text-secondary: #657080;
60  --idkit-border: rgba(235, 236, 239, 0.15);
61  --idkit-border-light: rgba(241, 245, 248, 0.1);
62  --idkit-surface: rgba(255, 255, 255, 0.05);
63  --idkit-btn-bg: #ffffff;
64  --idkit-btn-text: #0d151d;
65}
66
67/* Animations */
68@keyframes idkit-fade-in {
69  from { opacity: 0; }
70  to { opacity: 1; }
71}
72@keyframes idkit-scale-in {
73  from { opacity: 0; transform: scale(0.9); }
74  to { opacity: 1; transform: scale(1); }
75}
76@keyframes idkit-slide-up {
77  from { transform: translateY(100%); }
78  to { transform: translateY(0); }
79}
80@keyframes idkit-spin {
81  from { transform: rotate(0deg); }
82  to { transform: rotate(360deg); }
83}
84@keyframes idkit-pulse {
85  0%, 100% { opacity: 1; }
86  50% { opacity: 0.5; }
87}
88
89/* Backdrop */
90.idkit-backdrop {
91  position: fixed;
92  inset: 0;
93  background: rgba(0, 0, 0, 0.5);
94  backdrop-filter: blur(12px);
95  -webkit-backdrop-filter: blur(12px);
96  display: flex;
97  align-items: center;
98  justify-content: center;
99  z-index: 2147483646;
100  padding: 16px;
101  animation: idkit-fade-in 0.2s ease-out;
102}
103
104/* Modal */
105.idkit-modal {
106  position: relative;
107  width: 100%;
108  max-width: 448px;
109  min-height: 35rem;
110  background: var(--idkit-bg);
111  border-radius: 24px;
112  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
113  font-family: var(--idkit-font);
114  color: var(--idkit-text);
115  display: flex;
116  flex-direction: column;
117  overflow: hidden;
118  animation: idkit-scale-in 0.25s ease-out;
119}
120
121/* Close button */
122.idkit-close {
123  position: absolute;
124  top: 24px;
125  right: 24px;
126  display: flex;
127  align-items: center;
128  justify-content: center;
129  width: 32px;
130  height: 32px;
131  border: 1.2px solid var(--idkit-border);
132  border-radius: 50%;
133  background: transparent;
134  color: var(--idkit-text);
135  cursor: pointer;
136  padding: 0;
137  z-index: 1;
138  transition: background 0.15s ease;
139}
140.idkit-close:hover {
141  background: var(--idkit-surface);
142}
143.idkit-close svg {
144  width: 16px;
145  height: 16px;
146}
147
148/* Content area */
149.idkit-content {
150  flex: 1;
151  display: flex;
152  flex-direction: column;
153  align-items: center;
154  justify-content: center;
155  padding: 24px 24px 24px;
156  text-align: center;
157}
158
159/* Footer */
160.idkit-footer {
161  border-top: 1px solid #F5F5F7;
162  padding: 28px 32px;
163  text-align: center;
164}
165:host(.dark) .idkit-footer {
166  border-top-color: rgba(245, 245, 247, 0.15);
167}
168.idkit-footer a {
169  color: var(--idkit-text-muted);
170  font-size: 14px;
171  text-decoration: none;
172  transition: color 0.15s ease;
173}
174.idkit-footer a:hover {
175  color: var(--idkit-text);
176}
177
178/* World ID State */
179.idkit-worldid-icon {
180  display: flex;
181  align-items: center;
182  justify-content: center;
183  width: 56px;
184  height: 56px;
185  border-radius: 50%;
186  border: 1.2px solid var(--idkit-border);
187  margin-bottom: 16px;
188}
189.idkit-worldid-icon svg {
190  width: 32px;
191  height: 32px;
192  color: var(--idkit-text);
193}
194
195.idkit-heading {
196  margin: 0;
197  font-size: 24px;
198  font-weight: 600;
199  line-height: 1.2;
200  color: var(--idkit-text);
201}
202
203.idkit-subtext {
204  margin: 12px 0 0;
205  font-size: 16px;
206  line-height: 1.4;
207  color: var(--idkit-text-muted);
208}
209
210/* QR Container */
211.idkit-qr-container {
212  position: relative;
213  width: 100%;
214  margin-top: 40px;
215}
216
217.idkit-qr-overlay {
218  position: absolute;
219  inset: 0;
220  display: flex;
221  flex-direction: column;
222  align-items: center;
223  justify-content: center;
224  gap: 24px;
225  z-index: 2;
226}
227
228.idkit-qr-blur {
229  transition: filter 0.5s ease-in-out, opacity 0.5s ease-in-out;
230}
231.idkit-qr-blur.blurred {
232  filter: blur(16px);
233  opacity: 0.4;
234}
235
236.idkit-qr-wrapper {
237  display: inline-flex;
238  align-items: center;
239  justify-content: center;
240  border-radius: 16px;
241  border: 1px solid var(--idkit-border-light);
242  padding: 12px;
243}
244
245.idkit-qr-inner {
246  color: var(--idkit-text);
247}
248
249/* QR Code SVG colors for finder patterns */
250.idkit-qr-inner .qr-finder-dark { color: #000000; }
251.idkit-qr-inner .qr-finder-light { color: #ffffff; }
252:host(.dark) .idkit-qr-inner .qr-finder-dark { color: #000000; }
253:host(.dark) .idkit-qr-inner .qr-finder-light { color: #ffffff; }
254.idkit-qr-inner .qr-dot { color: #000000; }
255:host(.dark) .idkit-qr-inner .qr-dot { color: #ffffff; }
256
257/* QR Placeholder */
258.idkit-qr-placeholder {
259  width: 200px;
260  height: 200px;
261  display: flex;
262  align-items: center;
263  justify-content: center;
264}
265.idkit-qr-placeholder svg {
266  width: 200px;
267  height: 200px;
268  animation: idkit-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
269}
270
271/* Copy toast \u2014 absolutely positioned so it never shifts layout */
272.idkit-copy-toast {
273  position: absolute;
274  bottom: 100%;
275  left: 50%;
276  transform: translateX(-50%);
277  margin-bottom: 8px;
278  opacity: 0;
279  transition: opacity 0.25s ease-in-out;
280  pointer-events: none;
281  white-space: nowrap;
282}
283.idkit-copy-toast.visible {
284  opacity: 1;
285  transition: opacity 0.2s ease-in-out 0.05s;
286}
287.idkit-copy-toast > span {
288  display: inline-block;
289  border-radius: 8px;
290  border: 1px solid var(--idkit-border-light);
291  padding: 4px 8px;
292  font-size: 14px;
293  color: var(--idkit-text-secondary);
294}
295
296/* Simulator callout (staging only) */
297.idkit-simulator-callout {
298  margin: 12px 0 0;
299  font-size: 14px;
300  color: var(--idkit-text-secondary);
301  text-align: center;
302}
303.idkit-simulator-callout a {
304  color: var(--idkit-text-muted);
305  text-decoration: underline;
306  text-underline-offset: 2px;
307}
308.idkit-simulator-callout a:hover {
309  color: var(--idkit-text);
310}
311
312/* Mobile deep-link button */
313.idkit-deeplink-btn {
314  display: flex;
315  width: 100%;
316  align-items: center;
317  gap: 8px;
318  border-radius: 16px;
319  border: 1px solid transparent;
320  background: var(--idkit-btn-bg);
321  color: var(--idkit-btn-text);
322  padding: 16px;
323  font-family: var(--idkit-font);
324  font-size: 16px;
325  font-weight: 500;
326  text-decoration: none;
327  cursor: pointer;
328  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
329}
330.idkit-deeplink-btn svg {
331  width: 20px;
332  height: 20px;
333  flex-shrink: 0;
334}
335.idkit-deeplink-btn span {
336  flex: 1;
337  text-align: center;
338}
339
340/* Loading spinner */
341.idkit-spinner {
342  animation: idkit-spin 1s linear infinite;
343}
344.idkit-spinner svg {
345  display: block;
346  width: 24px;
347  height: 24px;
348}
349
350.idkit-connecting-text {
351  text-align: center;
352}
353.idkit-connecting-text p:first-child {
354  font-weight: 500;
355  color: var(--idkit-text-muted);
356  margin: 0;
357}
358.idkit-connecting-text p:last-child {
359  font-size: 14px;
360  font-weight: 300;
361  color: var(--idkit-text-muted);
362  margin: 4px 0 0;
363}
364
365/* Success State */
366.idkit-success-icon {
367  display: flex;
368  align-items: center;
369  justify-content: center;
370  margin-bottom: 24px;
371}
372.idkit-success-icon svg {
373  width: 96px;
374  height: 96px;
375}
376
377/* Error State */
378.idkit-error-icon {
379  display: flex;
380  align-items: center;
381  justify-content: center;
382  margin-bottom: 24px;
383}
384.idkit-error-icon svg {
385  width: 96px;
386  height: 96px;
387}
388
389.idkit-error-title {
390  margin: 0;
391  font-size: 24px;
392  font-weight: 600;
393  color: var(--idkit-text);
394}
395
396.idkit-error-message {
397  margin: 8px auto 0;
398  max-width: 224px;
399  font-size: 16px;
400  color: var(--idkit-text-muted);
401  line-height: 1.4;
402}
403
404/* Retry button */
405.idkit-retry-btn {
406  display: inline-flex;
407  align-items: center;
408  border-radius: 9999px;
409  border: 1.2px solid var(--idkit-border);
410  background: transparent;
411  padding: 12px 32px;
412  font-family: var(--idkit-font);
413  font-size: 16px;
414  font-weight: 600;
415  color: var(--idkit-text);
416  cursor: pointer;
417  transition: box-shadow 0.3s ease;
418  margin-top: 32px;
419}
420.idkit-retry-btn:hover {
421  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
422}
423
424/* Success subtext: old SDK used text-lg (18px) */
425.idkit-success-icon ~ .idkit-subtext {
426  font-size: 18px;
427  line-height: 1.56;
428}
429
430/* Responsive: mobile full-screen bottom-anchored */
431@media (max-width: 1024px) {
432  .idkit-backdrop {
433    align-items: flex-end;
434    padding: 0;
435  }
436  .idkit-modal {
437    max-width: 100%;
438    min-height: auto;
439    max-height: 95vh;
440    border-radius: 24px 24px 0 0;
441    animation: idkit-slide-up 0.3s ease-out;
442  }
443
444  /* Hide desktop QR on mobile */
445  .idkit-desktop-only {
446    display: none;
447  }
448  .idkit-mobile-only {
449    display: block;
450  }
451}
452
453@media (min-width: 1025px) {
454  .idkit-mobile-only {
455    display: none;
456  }
457  .idkit-desktop-only {
458    display: block;
459    position: relative;
460  }
461  .idkit-subtext {
462    margin-top: 8px;
463  }
464}
465`;function nf({children:e}){let[t,n]=(0,nr.useState)(null);return((0,nr.useEffect)(()=>{if("undefined"==typeof document)return;let e=document.createElement("div");return e.setAttribute("data-idkit-shadow-host","true"),document.body.appendChild(e),n(e.attachShadow({mode:"open"})),()=>{e.remove(),n(null)}},[]),t)?(0,ni.createPortal)(e,t):null}function np(e){return(0,no.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:(0,no.jsx)("path",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m16.243 7.758-8.485 8.485m8.485 0L7.758 7.758"})})}var nh={en:{"All set!":"All set!","Your World ID is now connected":"Your World ID is now connected","Something went wrong":"Something went wrong","Request cancelled":"Request cancelled","You've cancelled the request in World App.":"You've cancelled the request in World App.","Connection lost":"Connection lost","Please check your connection and try again.":"Please check your connection and try again.","Verification declined":"Verification declined","Failed to verify your credential proof. Please contact the website owner.":"Failed to verify your credential proof. Please contact the website owner.","We couldn't complete your request. Please try again.":"We couldn't complete your request. Please try again.","Try Again":"Try Again","Open World App":"Open World App","QR Code copied":"QR Code copied","Connect your World ID":"Connect your World ID","Use phone camera to scan the QR code":"Use phone camera to scan the QR code","Connecting...":"Connecting...","Please continue in app":"Please continue in app","Transmitting verification to host app. Please wait...":"Transmitting verification to host app. Please wait...","You will be redirected to the app, please return to this page once you're done":"You will be redirected to the app, please return to this page once you're done","Terms & Privacy":"Terms & Privacy"},es:{"All set!":"\xa1Todo listo!","Your World ID is now connected":"Tu World ID ahora est\xe1 conectado","Something went wrong":"Algo sali\xf3 mal","Request cancelled":"Solicitud cancelada","You've cancelled the request in World App.":"Has cancelado la solicitud en World App.","Connection lost":"Conexion perdida","Please check your connection and try again.":"Por favor verifica tu conexion e intenta de nuevo.","Verification declined":"Verificaci\xf3n rechazada","Failed to verify your credential proof. Please contact the website owner.":"No se pudo verificar tu prueba de credencial. Por favor contacta al propietario del sitio web.","We couldn't complete your request. Please try again.":"No pudimos completar tu solicitud. Por favor intenta de nuevo.","Try Again":"Intentar de nuevo","Open World App":"Abrir World App","QR Code copied":"C\xf3digo QR copiado","Connect your World ID":"Conecta tu World ID","Use phone camera to scan the QR code":"Usa la c\xe1mara del tel\xe9fono para escanear el c\xf3digo QR","Connecting...":"Conectando...","Please continue in app":"Por favor contin\xfaa en la aplicaci\xf3n","Transmitting verification to host app. Please wait...":"Enviando verificaci\xf3n a la aplicaci\xf3n anfitriona. Por favor espera...","You will be redirected to the app, please return to this page once you're done":"Ser\xe1s redirigido a la aplicaci\xf3n, por favor regresa a esta p\xe1gina una vez que hayas terminado","Terms & Privacy":"T\xe9rminos y privacidad"},th:{"All set!":"เรียบร้อย!","Your World ID is now connected":"World ID ของคุณเชื่อมต่อแล้ว","Something went wrong":"เกิดข้อผิดพลาด","Request cancelled":"คำขอถูกยกเลิก","You've cancelled the request in World App.":"คุณได้ยกเลิกคำขอใน World App","Connection lost":"การเชื่อมต่อขาดหาย","Please check your connection and try again.":"กรุณาตรวจสอบการเชื่อมต่อแล้วลองอีกครั้ง","Verification declined":"การยืนยันถูกปฏิเสธ","Failed to verify your credential proof. Please contact the website owner.":"ไม่สามารถยืนยันหลักฐานของ Credential ได้ โปรดติดต่อเจ้าของเว็บไซต์","We couldn't complete your request. Please try again.":"เราไม่สามารถดำเนินการตามคำขอของคุณได้ กรุณาลองอีกครั้ง","Try Again":"ลองอีกครั้ง","Open World App":"เปิด World App","QR Code copied":"คัดลอก QR Code แล้ว","Connect your World ID":"เชื่อมต่อ World ID ของคุณ","Use phone camera to scan the QR code":"ใช้กล้องโทรศัพท์เพื่อสแกน QR code","Connecting...":"กำลังเชื่อมต่อ...","Please continue in app":"กรุณาดำเนินการต่อในแอป","Transmitting verification to host app. Please wait...":"กำลังส่งการยืนยันไปยังแอปโฮสต์ กรุณารอสักครู่...","You will be redirected to the app, please return to this page once you're done":"คุณจะถูกนำไปยังแอป กรุณากลับมาที่หน้านี้เมื่อเสร็จแล้ว","Terms & Privacy":"ข้อกำหนดและความเป็นส่วนตัว"}},ng={},nb=e=>{ng=e},nw=()=>ng,ny=()=>
465{if("undefined"!=typeof navigator)for(let e of navigator.languages){let[t]=e.split("-"),n=t.toLowerCase();if(n in nh)return n}},nm=()=>{let e=nw();if(e.language&&e.language in nh)return e.language;let t=ny();return t||"en"},nx=()=>nh[nm()],nv=()=>nx(),nk=(e,t)=>{if(!t)return e;let n=e;for(let[e,r]of Object.entries(t))n=n.replace(`:${e}`,r);return n};function nI(e,...t){let[n]=t;return"undefined"==typeof navigator&&"undefined"==typeof window?nk(e,n):nk(nv()?.[e]??e,n)}function nC({onOpenChange:e,children:t}){return(0,no.jsxs)(no.Fragment,{children:[(0,no.jsx)("style",{children:n_}),(0,no.jsx)("div",{className:"idkit-backdrop",role:"presentation",onClick:()=>e(!1),children:(0,no.jsxs)("section",{className:"idkit-modal",role:"dialog","aria-modal":"true",onClick:e=>e.stopPropagation(),children:[(0,no.jsx)("button",{type:"button",className:"idkit-close",onClick:()=>e(!1),"aria-label":"Close",children:(0,no.jsx)(np,{})}),(0,no.jsx)("div",{className:"idkit-content",children:t}),(0,no.jsx)("footer",{className:"idkit-footer",children:(0,no.jsx)("a",{href:"https://developer.world.org/privacy-statement",target:"_blank",rel:"noopener noreferrer",children:nI("Terms & Privacy")})})]})})]})}function nA({open:e,onOpenChange:t,children:n}){if((0,nr.useEffect)(()=>{if(!e||"undefined"==typeof document)return;let n=e=>{"Escape"===e.key&&t(!1)};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t,e]),!e||"undefined"==typeof document)return null;let r=(0,no.jsx)(nC,{onOpenChange:t,children:n});return(0,no.jsx)(nf,{children:r})}function nS(){let[e,t]=(0,nr.useState)(()=>"undefined"!=typeof window&&window.matchMedia("(max-width: 1024px)").matches?"mobile":"desktop");return(0,nr.useEffect)(()=>{let e=window.matchMedia("(max-width: 1024px)"),n=e=>t(e.matches?"mobile":"desktop");return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}function nE(e){return(0,no.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...e,children:(0,no.jsx)("path",{d:"M30.7367 9.77239C29.9301 7.86586 28.7772 6.15721 27.3084 4.68831C25.8397 3.21941 24.1275 2.06636 22.225 1.2596C20.2502 0.422405 18.1574 0 15.9962 0C13.8388 0 11.7422 0.422405 9.76742 1.2596C7.86112 2.06636 6.15268 3.21941 4.68395 4.68831C3.21522 6.15721 2.06231 7.86966 1.25565 9.77239C0.422354 11.7436 0 13.8404 0 15.9981C0 18.1558 0.422354 20.2526 1.25945 22.2276C2.06611 24.1341 3.21903 25.8428 4.68775 27.3117C6.15648 28.7806 7.86873 29.9336 9.77122 30.7404C11.746 31.5738 13.8388 32 16 32C18.1574 32 20.254 31.5776 22.2288 30.7404C24.1351 29.9336 25.8435 28.7806 27.3122 27.3117C28.781 25.8428 29.9339 24.1303 30.7405 22.2276C31.5738 20.2526 32 18.1596 32 15.9981C31.9962 13.8404 31.57 11.7436 30.7367 9.77239ZM10.6844 14.4949C11.3503 11.9377 13.679 10.0464 16.4452 10.0464H27.552C28.2673 11.4278 28.7239 12.9309 28.9027 14.4949H10.6844ZM28.9027 17.5012C28.7239 19.0653 28.2635 20.5684 27.552 21.9498H16.4452C13.6828 21.9498 11.3541 20.0585 10.6844 17.5012H28.9027ZM6.81094 6.81175C9.26516 4.35724 12.526 3.0063 15.9962 3.0063C19.4663 3.0063 22.7272 4.35724 25.1815 6.81175C25.2576 6.88786 25.3298 6.96397 25.4021 7.04008H16.4452C14.0518 7.04008 11.8031 7.97241 10.1099 9.66583C8.77812 10.9977 7.91819 12.6759 7.60999 14.4988H3.09346C3.42449 11.5952 4.71439 8.90855 6.81094 6.81175ZM15.9962 28.9937C12.526 28.9937 9.26516 27.6428 6.81094 25.1883C4.71439 23.0915 3.42449 20.4048 3.09346 17.5051H7.60999C7.91439 19.3279 8.77812 21.0061 10.1099 22.338C11.8031 24.0314 14.0518 24.9637 16.4452 24.9637H25.4059C25.3337 25.0398 25.2576 25.1159 25.1853 25.1921C22.731 27.639 19.4663 28.9937 15.9962 28.9937Z",fill:"currentColor"})})}function nR(e){return(0,no.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,no.jsx)("circle",{cx:"12",cy:"12",r:"10.75",stroke:"#191C20",strokeOpacity:".16",strokeWidth:"2.5"}),(0,no.jsx)("path",{fill:"#191C20",d:"M17.28 2.633c.338-.6.127-1.368-.505-1.642A12 12 0 0 0 7.459.892c-.638.261-.864 1.024-.539 1.632.326.607 1.08.827 1.725.584a9.504 9.504 0 0 1 6.897.073c.64.257 1.399.053 1.737-.548Z"})]})}var nj=e=>{let t=ns.create(e,{errorCorrectionLevel:"M"}).modules.data,n=Math.sqrt(t.length);return t.reduce((e,t,r)=>(r%n==0?e.push([t]):e[e.length-1].push(t),e),[])},nB=(0,nr.memo)(function({data:e,size:t=200}){let n=(0,nr.useMemo)(()=>{let n=[],r=nj(e),i=t/r.length;return[{x:0,y:0},{x:1,y:0},{x:0,y:1}
465].forEach(({x:e,y:t})=>{let o=(r.length-7)*i*e,s=(r.length-7)*i*t;for(let r=0;r<3;r++)n.push((0,no.jsx)("rect",{fill:"currentColor",x:o+i*r,y:s+i*r,width:i*(7-2*r),height:i*(7-2*r),rx:-((r-2)*5),ry:-((r-2)*5),className:r%3==0?"qr-finder-dark":r%3==1?"qr-finder-light":"qr-finder-dark"},`${r}-${e}-${t}`))}),r.forEach((e,t)=>{e.forEach((e,o)=>{r[t][o]&&(t<7&&o<7||t>r.length-8&&o<7||t<7&&o>r.length-8||n.push((0,no.jsx)("circle",{fill:"currentColor",r:i/2.2,cx:t*i+i/2,cy:o*i+i/2,className:"qr-dot"},`circle-${t}-${o}`)))})}),n},[t,e]);return(0,no.jsx)("svg",{height:t,width:t,"data-test-id":"qr-code",children:n})});function nN(e){return(0,no.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 200 200",...e,children:[(0,no.jsx)("path",{fill:"#EBECEF",fillRule:"evenodd",d:"M12.1 0C5.417 0 0 5.417 0 12.1v18.505c0 6.682 5.417 12.1 12.1 12.1h18.505c6.682 0 12.1-5.418 12.1-12.1V12.1c0-6.683-5.418-12.1-12.1-12.1H12.1Zm18.505 11.388H12.1a.712.712 0 0 0-.712.712v18.505c0 .393.319.712.712.712h18.505a.712.712 0 0 0 .712-.712V12.1a.712.712 0 0 0-.712-.712Z",clipRule:"evenodd"}),(0,no.jsx)("path",{fill:"#EBECEF",d:"M197.026 200c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-17.616c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.545.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808h-11.897v-11.744h-11.896v-23.487h11.896v8.808c0 .778.314 1.525.872 2.076.557.55 1.314.86 2.102.86h5.949c.788 0 1.545-.31 2.103-.86a2.922 2.922 0 0 0 .871-2.076v-8.808h8.922c.789 0 1.545-.309 2.103-.86a2.916 2.916 0 0 0 .871-2.076v-5.872c0-.779-.313-1.525-.871-2.076a2.992 2.992 0 0 0-2.103-.86h-29.741c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v8.808h-23.792v-11.744h8.922c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-5.872c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.546.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808H119.7c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.525.871 2.076.558.551 1.314.86 2.103.86h20.819v8.808c0 .778.313 1.525.871 2.076.557.55 1.314.86 2.103.86h8.922v8.808c0 .778.313 1.525.871 2.076.558.55 1.314.859 2.103.859h8.922v11.744h-20.818c-.789 0-1.546.31-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.526.871 2.076a2.99 2.99 0 0 0 2.103.86h17.844c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-8.808h11.896v8.808c0 .779.314 1.526.872 2.076a2.99 2.99 0 0 0 2.102.86h17.845Z"}),(0,no.jsx)("path",{fill:"#EBECEF",fillRule:"evenodd",d:"M157.295 12.1c0-6.683 5.418-12.1 12.1-12.1H187.9c6.683 0 12.1 5.417 12.1 12.1v18.505c0 6.682-5.417 12.1-12.1 12.1h-18.505c-6.682 0-12.1-5.418-12.1-12.1V12.1Zm12.1-.712H187.9c.393 0 .712.319.712.712v18.505a.712.712 0 0 1-.712.712h-18.505a.712.712 0 0 1-.712-.712V12.1c0-.393.319-.712.712-.712ZM12.1 157.295c-6.683 0-12.1 5.418-12.1 12.1V187.9c0 6.683 5.417 12.1 12.1 12.1h18.505c6.682 0 12.1-5.417 12.1-12.1v-18.505c0-6.682-5.418-12.1-12.1-12.1H12.1Zm19.217 12.1a.712.712 0 0 0-.712-.712H12.1a.712.712 0 0 0-.712.712V187.9c0 .393.319.712.712.712h18.505a.712.712 0 0 0 .712-.712v-18.505Z",clipRule:"evenodd"}),(0,no.jsx)("path",{fill:"#EBECEF",d:"M6.05 89.68A6.05 6.05 0 0 0 0 95.73v9.252a6.05 6.05 0 0 0 6.05 6.05h9.253a6.05 6.05 0 0 0 6.05-6.05V95.73c0-.678-.112-1.33-.318-1.94.445.105.908.16 1.385.16h27.758a6.05 6.05 0 0 0 6.05-6.05v-9.252a6.05 6.05 0 0 0-6.05-6.05H22.42a6.05 6.05 0 0 0-6.05 6.05V87.9c0 .678.112 1.33.317 1.939a6.065 6.065 0 0 0-1.385-.16H6.05Zm102.135-40.926a6.05 6.05 0 0 1 6.05-6.05h9.253a6.05 6.05 0 0 1 6.049 6.05v9.253a6.05 6.05 0 0 1-6.049 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.253ZM67.616 184.698a6.05 6.05 0 0 1 6.05-6.05h9.252c.678 0 1.33.111 1.939.317a6.064 6.064 0 0 1-.16-1.385v-9.253a6.05 6.05 0 0 1 6.05-6.049H100a6.05 6.05 0 0 1 6.05 6.049v9.253a6.05 6.05 0 0 1-6.05 6.05h-9.253c-.678 0-1.33-.112-1.938-.317.104.444.159.908.159 1.385v9.252a6.05 6.05 0 0 1-6.05 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.252Zm78.291-120.285a6.05 6.05 0 0 1 6.05-6.05h41.993a6.05 6.05 0 0 1 6.05 6.05v9.252a6.05 6.05 0 0 1-6.05 6.05h-41.993a6.05 6.05 0 0 1-6.05-6.05v-9.252ZM95.018 0a6.05 6.05 0 0 0-6.05 6.05v17.082a6.05 6.05 0 0 0 6.05 6.05h9.252a6.05 6.05 0 0 0 6.05-6.05V6.05A6.05 6.05 0 0 0 104.27 0h-9.252Z"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",fillRule:"evenodd",d:"M12.1 0C5.417 0 0 5.417 0 12.1v18.505c0 6.682 5.417 12.1 12.1 12.1h18.505c6.682 0 12.1-5.418 
46512.1-12.1V12.1c0-6.683-5.418-12.1-12.1-12.1H12.1Zm18.505 11.388H12.1a.712.712 0 0 0-.712.712v18.505c0 .393.319.712.712.712h18.505a.712.712 0 0 0 .712-.712V12.1a.712.712 0 0 0-.712-.712Z",clipRule:"evenodd"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",d:"M197.026 200c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-17.616c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.545.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808h-11.897v-11.744h-11.896v-23.487h11.896v8.808c0 .778.314 1.525.872 2.076.557.55 1.314.86 2.102.86h5.949c.788 0 1.545-.31 2.103-.86a2.922 2.922 0 0 0 .871-2.076v-8.808h8.922c.789 0 1.545-.309 2.103-.86a2.916 2.916 0 0 0 .871-2.076v-5.872c0-.779-.313-1.525-.871-2.076a2.992 2.992 0 0 0-2.103-.86h-29.741c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v8.808h-23.792v-11.744h8.922c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-5.872c0-.778-.313-1.525-.871-2.076a2.996 2.996 0 0 0-2.103-.86h-5.948c-.789 0-1.546.31-2.103.86a2.918 2.918 0 0 0-.871 2.076v8.808H119.7c-.789 0-1.545.309-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.525.871 2.076.558.551 1.314.86 2.103.86h20.819v8.808c0 .778.313 1.525.871 2.076.557.55 1.314.86 2.103.86h8.922v8.808c0 .778.313 1.525.871 2.076.558.55 1.314.859 2.103.859h8.922v11.744h-20.818c-.789 0-1.546.31-2.103.86a2.916 2.916 0 0 0-.871 2.076v5.872c0 .779.313 1.526.871 2.076a2.99 2.99 0 0 0 2.103.86h17.844c.789 0 1.545-.309 2.103-.86.558-.55.871-1.297.871-2.076v-8.808h11.896v8.808c0 .779.314 1.526.872 2.076a2.99 2.99 0 0 0 2.102.86h17.845Z"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",fillRule:"evenodd",d:"M157.295 12.1c0-6.683 5.418-12.1 12.1-12.1H187.9c6.683 0 12.1 5.417 12.1 12.1v18.505c0 6.682-5.417 12.1-12.1 12.1h-18.505c-6.682 0-12.1-5.418-12.1-12.1V12.1Zm12.1-.712H187.9c.393 0 .712.319.712.712v18.505a.712.712 0 0 1-.712.712h-18.505a.712.712 0 0 1-.712-.712V12.1c0-.393.319-.712.712-.712Z",clipRule:"evenodd"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",fillRule:"evenodd",d:"M12.1 157.295c-6.683 0-12.1 5.418-12.1 12.1V187.9c0 6.683 5.417 12.1 12.1 12.1h18.505c6.682 0 12.1-5.417 12.1-12.1v-18.505c0-6.682-5.418-12.1-12.1-12.1H12.1Zm19.217 12.1a.712.712 0 0 0-.712-.712H12.1a.712.712 0 0 0-.712.712V187.9c0 .393.319.712.712.712h18.505a.712.712 0 0 0 .712-.712v-18.505Z",clipRule:"evenodd"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",d:"M6.05 89.68A6.05 6.05 0 0 0 0 95.73v9.252a6.05 6.05 0 0 0 6.05 6.05h9.253a6.05 6.05 0 0 0 6.05-6.05V95.73c0-.678-.112-1.33-.318-1.94.445.105.908.16 1.385.16h27.758a6.05 6.05 0 0 0 6.05-6.05v-9.252a6.05 6.05 0 0 0-6.05-6.05H22.42a6.05 6.05 0 0 0-6.05 6.05V87.9c0 .678.112 1.33.317 1.939a6.065 6.065 0 0 0-1.385-.16H6.05Z"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",d:"M108.185 48.754a6.05 6.05 0 0 1 6.05-6.05h9.253a6.05 6.05 0 0 1 6.049 6.05v9.253a6.05 6.05 0 0 1-6.049 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.253Z"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",d:"M67.616 184.698a6.05 6.05 0 0 1 6.05-6.05h9.252c.678 0 1.33.111 1.939.317a6.064 6.064 0 0 1-.16-1.385v-9.253a6.05 6.05 0 0 1 6.05-6.049H100a6.05 6.05 0 0 1 6.05 6.049v9.253a6.05 6.05 0 0 1-6.05 6.05h-9.253c-.678 0-1.33-.112-1.938-.317.104.444.159.908.159 1.385v9.252a6.05 6.05 0 0 1-6.05 6.05h-9.253a6.05 6.05 0 0 1-6.05-6.05v-9.252Z"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",d:"M145.907 64.413a6.05 6.05 0 0 1 6.05-6.05h41.993a6.05 6.05 0 0 1 6.05 6.05v9.252a6.05 6.05 0 0 1-6.05 6.05h-41.993a6.05 6.05 0 0 1-6.05-6.05v-9.252Z"}),(0,no.jsx)("path",{fill:"url(#idkit_qr_placeholder_gradient)",d:"M95.018 0a6.05 6.05 0 0 0-6.05 6.05v17.082a6.05 6.05 0 0 0 6.05 6.05h9.252a6.05 6.05 0 0 0 6.05-6.05V6.05A6.05 6.05 0 0 0 104.27 0h-9.252Z"}),(0,no.jsx)("defs",{children:(0,no.jsxs)("linearGradient",{id:"idkit_qr_placeholder_gradient",x1:"0",x2:"200",y1:"0",y2:"200",gradientUnits:"userSpaceOnUse",children:[(0,no.jsx)("stop",{offset:".37",stopColor:"#fff",stopOpacity:"0"}),(0,no.jsx)("stop",{offset:".5",stopColor:"#fff",stopOpacity:".85"}),(0,no.jsx)("stop",{offset:".63",stopColor:"#fff",stopOpacity:"0"})]})})]})}function nP({qrData:e,showSimulatorCallout:t}){let n=nS(),[r,i]=(0,nr.useState)(!1),o=(0,nr.useCallback)(()=>{e&&(navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),2e3))},[e]);return(0,no.jsxs)(no.Fragment,{children:[(0,no.jsx)("div",{className:"idkit-mobile-only",children:(0,no.jsxs)("a",{href:e??void 0,className:"idkit-deeplink-btn",children:[(0,no.jsx)(nE,{}),(0,no.jsx)("span",{children:nI("Open World App")})]})}),(0,no.jsxs)("div",{className:"idkit-desktop-only",children:[(0,no.jsx)("div",{className:`idkit-copy-toast ${r?"visible":"hidden"}`,style:{textAlign:"center",fontSize:"14px",color:"var(--idkit-text-secondary)"},children:(0,no.jsx)("span",{children:nI("QR Code copied")})}),(0,no.jsx)("div",{className:"idkit-qr-wrapper",children:(0,no.jsx)("div",{className:"idkit-qr-inner",children:e?(0,no.jsx)("div",{onClick:o,onKeyDown:e=>{"Enter"===e.key&&o()},role:"button",tabIndex:0,style:{cursor:"pointer"},children:(0,no.jsx)(nB,{data:e,size:"mobile"===n?160:200})}):(0,no.jsx)("div",{className:"idkit-qr-placeholder",children:(0,no.jsx)(nN,{})})})}),t&&e&&(0,no.jsxs)("p",{className:"idkit-simulator-callout",children:["Testing in staging?"," ",(0,no.jsx)("a",{href:`https://simulator.worldcoin.org?connect_url=${encodeURIComponent(e)}`,target:"_blank",rel:"noopener noreferrer",children:"Use the simulator"})]})]})]})}function nT({connectorURI:e,isAwaitingUserConfirmation:t,showSimulatorCallout:n}){let r=nS();return(0,no.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,no.jsx)("div",{className:"idkit-worldid-icon",children:(0,no.jsx)(nE,{})}),(0,no.jsx)("h2",{className:"idkit-heading",children:nI("Connect your World ID")}),(0,no.jsx)("p",{className:"idkit-subtext",children:"mobile"===r?nI("You will be redirected to the app, please return to this page once you're done"):nI("Use phone camera to scan the QR code")}),(0,no.jsxs)("div",{className:"idkit-qr-container",children:[t&&(0,no.jsxs)("div",{className:"idkit-qr-overlay",children:[(0,no.jsx)("div",{className:"idkit-spinner",children:(0,no.jsx)(nR,{})}),(0,no.jsxs)("div",{className:"idkit-connecting-text",children:[(0,no.jsx)("p",{children:nI("Connecting...")}),(0,no.jsx)("p",{children:nI("Please continue in app")})]})]}),(0,no.jsx)("div",{className:`idkit-qr-blur ${t?"blurred":""}`,children:(0,no.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,no.jsx)(nP,{qrData:e,showSimulatorCallout:n})})})]})]})}function nq(e){return(0,no.jsxs)("svg",{width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,no.jsx)("rect",{width:"88",height:"88",rx:"44",fill:"#00C230"}),(0,no.jsx)("rect",{opacity:"0.2",width:"88",height:"88",rx:"44",fill:"url(#idkit_check_radial)"}),(0,no.jsx)("rect",{x:"0.5",y:"0.5",width:"87",height:"87",rx:"43.5",stroke:"url
465(#idkit_check_linear)"}),(0,no.jsx)("path",{d:"M29.5 45.5L37.5 53.5L57.5 33.5",stroke:"white",strokeWidth:"3"}),(0,no.jsxs)("defs",{children:[(0,no.jsxs)("radialGradient",{id:"idkit_check_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",children:[(0,no.jsx)("stop",{stopColor:"white"}),(0,no.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,no.jsxs)("linearGradient",{id:"idkit_check_linear",x1:"44",y1:"0",x2:"44",y2:"88",gradientUnits:"userSpaceOnUse",children:[(0,no.jsx)("stop",{stopColor:"white",stopOpacity:"0.3"}),(0,no.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]})}function nM(){return(0,no.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,no.jsx)("div",{className:"idkit-success-icon",children:(0,no.jsx)(nq,{})}),(0,no.jsx)("h2",{className:"idkit-heading",children:nI("All set!")}),(0,no.jsx)("p",{className:"idkit-subtext",style:{maxWidth:260},children:nI("Your World ID is now connected")})]})}function nU(e){return(0,no.jsxs)("svg",{width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,no.jsx)("rect",{width:"88",height:"88",rx:"44",fill:"#9BA3AE"}),(0,no.jsx)("rect",{opacity:"0.2",width:"88",height:"88",rx:"44",fill:"url(#idkit_error_radial)"}),(0,no.jsx)("rect",{x:"0.5",y:"0.5",width:"87",height:"87",rx:"43.5",stroke:"url(#idkit_error_linear)"}),(0,no.jsx)("path",{d:"M33.0146 53.9853L43.4999 43.5M53.9851 33.0147L43.4999 43.5M43.4999 43.5L33.0146 33.0147M43.4999 43.5L53.9851 53.9853",stroke:"white",strokeWidth:"3"}),(0,no.jsxs)("defs",{children:[(0,no.jsxs)("radialGradient",{id:"idkit_error_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",children:[(0,no.jsx)("stop",{stopColor:"white"}),(0,no.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,no.jsxs)("linearGradient",{id:"idkit_error_linear",x1:"44",y1:"0",x2:"44",y2:"88",gradientUnits:"userSpaceOnUse",children:[(0,no.jsx)("stop",{stopColor:"white",stopOpacity:"0.3"}),(0,no.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]})}var nF={[e8.UserRejected]:"cancelled",[e8.VerificationRejected]:"cancelled",[e8.Cancelled]:"cancelled",[e8.ConnectionFailed]:"connection",[e8.FailedByHostApp]:"host_verification"},nL={cancelled:{title:"Request cancelled",message:"You've cancelled the request in World App.",Icon:function(e){return(0,no.jsxs)("svg",{width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,no.jsx)("rect",{width:"88",height:"88",rx:"44",fill:"#FFAE00"}),(0,no.jsx)("rect",{opacity:"0.2",width:"88",height:"88",rx:"44",fill:"url(#idkit_warning_radial)"}),(0,no.jsx)("rect",{x:"0.5",y:"0.5",width:"87",height:"87",rx:"43.5",stroke:"url(#idkit_warning_linear)"}),(0,no.jsx)("path",{d:"M64.1707 59.5415H22.8298L43.4998 22.3354L64.1707 59.5415ZM42.1208 51.3003L42.1218 54.0503H44.8992L44.8982 51.3003H42.1208ZM42.1248 46.7085H44.8748V36.6255H42.1248V46.7085Z",fill:"white"}),(0,no.jsxs)("defs",{children:[(0,no.jsxs)("radialGradient",{id:"idkit_warning_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",children:[(0,no.jsx)("stop",{stopColor:"white"}),(0,no.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,no.jsxs)("linearGradient",{id:"idkit_warning_linear",x1:"44",y1:"0",x2:"44",y2:"88",gradientUnits:"userSpaceOnUse",children:[(0,no.jsx)("stop",{stopColor:"white",stopOpacity:"0.3"}),(0,no.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]})}},connection:{title:"Connection lost",message:"Please check your connection and try again.",Icon:nU},host_verification:{title:"Verification declined",message:"Failed to verify your credential proof. Please contact the website owner.",Icon:nU},generic:{title:"Something went wrong",message:"We couldn't complete your request. Please try again.",Icon:nU}};function nH({errorCode:e,onRetry:t}){let{title:n,message:r,Icon:i}=nL[!e?"generic":nF[e]??"generic"];return(0,no.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,no.jsx)("div",{className:"idkit-error-icon",children:(0,no.jsx)(i,{})}),(0,no.jsx)("p",{className:"idkit-error-title",children:nI(n)}),(0,no.jsx)("p",{className:"idkit-error-message",children:nI(r)}),(0,no.jsx)("button",{type:"button",className:"idkit-retry-btn",onClick:t,children:nI("Try Again")})]})}function nz({onVerify:e}){let t=(0,nr.useRef)(!1);return(0,nr.useEffect)(()=>{t.current||(t.current=!0,e())},[]),(0,no.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,no.jsx)("div",{className:"idkit-spinner",children:(0,no.jsx)(nR,{})}),(0,no.jsx)("p",{className:"idkit-subtext",children:nI("Transmitting verification to host app. Please wait...")})]})}function nO({flow:e,open:t,onOpenChange:n,handleVerify:r,onSuccess:i,onError:o,autoClose:s=!0,language:a,showSimulatorCallout:l}){let{open:c,reset:d}=e,[u,_]=(0,nr.useState)(null),f=(0,nr.useRef)(null),p=(0,nr.useRef)(null),h=(0,nr.useRef)(0);(0,nr.useEffect)(()=>{a&&nb({language:a})},[a]),(0,nr.useEffect)(()=>
465{if(t){_(null),c();return}_(null),f.current=null,p.current=null,h.current++,d()},[t,c,d]);let g=e.isSuccess&&(!r||"passed"===u),b=e.isError||"failed"===u,w=e.isSuccess&&!!r&&null===u,y=e.errorCode??("failed"===u?e8.FailedByHostApp:null);if((0,nr.useEffect)(()=>{g&&e.result&&e.result!==f.current&&(f.current=e.result,Promise.resolve(i(e.result)).catch(()=>{}))},[e.result,g,i]),(0,nr.useEffect)(()=>{y&&y!==p.current&&(p.current=y,Promise.resolve(o?.(y)).catch(()=>{}))},[y,o]),(0,nr.useEffect)(()=>{if(!e.isInWorldApp||!w||!e.result||!r)return;let t=++h.current;Promise.resolve(r(e.result)).then(()=>{h.current===t&&_("passed")}).catch(()=>{h.current===t&&_("failed")})},[e.isInWorldApp,w,e.result,r]),(0,nr.useEffect)(()=>{if(e.isInWorldApp&&(g||b))n(!1);else if(g&&s){let e=setTimeout(()=>n(!1),2500);return()=>clearTimeout(e)}},[g,b,s,n,e.isInWorldApp]),e.isInWorldApp)return null;let m=b?"error":w?"host_verification":g?"success":"worldid";return(0,no.jsxs)(nA,{open:t,onOpenChange:n,children:["worldid"===m&&(0,no.jsx)(nT,{connectorURI:e.connectorURI,isAwaitingUserConfirmation:e.isAwaitingUserConfirmation,showSimulatorCallout:l}),"host_verification"===m&&(0,no.jsx)(nz,{onVerify:()=>{let t=++h.current;return Promise.resolve(r(e.result)).then(()=>{h.current===t&&_("passed")},()=>{h.current===t&&_("failed")})}}),"success"===m&&(0,no.jsx)(nM,{}),"error"===m&&(0,no.jsx)(nH,{errorCode:y,onRetry:()=>{_(null),f.current=null,p.current=null,h.current++,d(),c()}})]})}function nW({open:e,onOpenChange:t,handleVerify:n,onSuccess:r,onError:i,autoClose:o,language:s,...a}){var l;if("function"!=typeof r)throw Error("IDKitRequestWidget requires an onSuccess callback.");let c=function(e,t){let n=(0,nr.useMemo)(()=>t2(),[]),[r,i]=(0,nr.useState)(na),[o,s]=(0,nr.useState)(0),a=(0,nr.useRef)(null),l=(0,nr.useRef)(e),c=(0,nr.useRef)(t);l.current=e,c.current=t;let d=(0,nr.useCallback)(()=>{a.current?.abort(),a.current=null,i(na),s(e=>e+1)},[]),u=(0,nr.useCallback)(()=>{i(e=>e.isOpen?e:{isOpen:!0,status:"waiting_for_connection",connectorURI:null,result:null,errorCode:null})},[]);return(0,nr.useEffect)(()=>{if(!r.isOpen)return;let e=new AbortController;a.current=e;let t=e=>{i(t=>"failed"===t.status&&t.errorCode===e?t:{...t,status:"failed",errorCode:e})};return(async()=>{try{t0()&&console.debug("[IDKit] Creating flow handle…");let r=await l.current();nl(e.signal),t0()&&console.debug("[IDKit] Flow created",{connectorURI:r.connectorURI,requestId:r.requestId});let o=n?null:r.connectorURI;i(e=>e.connectorURI===o?e:{...e,connectorURI:o});let s=c.current.polling?.interval??1e3,a=c.current.polling?.timeout??9e5,d=Date.now();for(;;){if(nl(e.signal),Date.now()-d>a)return void t(e8.Timeout);let n=await r.pollOnce();if(nl(e.signal),"confirmed"===n.type){let e=n.result;if(!e)return void t(e8.UnexpectedResponse);i(t=>({...t,status:"confirmed",result:e,errorCode:null}));return}if("failed"===n.type){t0()&&console.warn("[IDKit] Poll returned failed",n),t(n.error??e8.GenericError);return}i(e=>e.status===n.type?e:{...e,status:n.type}),await nc(s,e.signal)}}catch(n){if(e.signal.aborted){t0()&&console.debug("[IDKit] Flow aborted");return}t0()&&console.error("[IDKit] Flow error:",n),t(function(e){let t=nu(e);if(t)return t;if("object"==typeof e&&null!==e&&"code"in e){let t=nu(e.code);if(t)return t}return e8.GenericError}(n))}})(),()=>{e.abort(),a.current===e&&(a.current=null)}},[r.isOpen,o,n]),{open:u,reset:d,isAwaitingUserConnection:"waiting_for_connection"===r.status,isAwaitingUserConfirmation:"awaiting_confirmation"===r.status,isSuccess:"confirmed"===r.status,isError:"failed"===r.status,connectorURI:r.connectorURI,result:r.result,errorCode:r.errorCode,isOpen:r.isOpen,isInWorldApp:n}}(()=>{let e=nn.request({app_id:l.app_id,action:l.action,rp_context:l.rp_context,action_description:l.action_description,bridge_url:l.bridge_url,return_to:l.return_to,allow_legacy_proofs:l.allow_legacy_proofs,override_connect_base_url:l.override_connect_base_url,environment:l.environment});return"constraints"in l&&l.constraints?e.constraints(l.constraints):e.preset(l.preset)},l=a);return(0,no.jsx)(nO,{flow:c,open:e,onOpenChange:t,handleVerify:n,onSuccess:r,onError:i,autoClose:o,language:s,showSimulatorCallout:"staging"===a.environment})}},55908:(e,t,n)=>{let r=n(46087),i=n(58976),o=n(34122),s=n(79621),a=n(37788),l=n(645),c=n(36517),d=n(60519),u=n(60061),_=n(62202),f=n(88252),p=n(43585),h=n(72920);function g(e,t,n){let r,i,o=e.size,s=f.getEncodedBits(t,n);for(r=0;r<15;r++)i=(s>>r&1)==1,r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(o-15+r,8,i,!0),r<8?e.set(8,o-r-1,i,!0):r
vendor: 11,045 bytes, line 465
465<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(o-8,8,1,!0)}t.create=function(e,t){let n,f;if(void 0===e||""===e)throw Error("No input text");let b=i.M;return void 0!==t&&(b=i.from(t.errorCorrectionLevel,i.M),n=_.from(t.version),f=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,n,i){let f;if(Array.isArray(e))f=h.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=h.rawSplit(e);r=_.getBestVersionForData(t,n)}f=h.fromString(e,r||40)}else throw Error("Invalid data");let b=_.getBestVersionForData(f,n);if(!b)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<b)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else t=b;let w=function(e,t,n){let i=new o;n.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)});let s=(r.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t))*8;for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let a=(s-i.getLengthInBits())/8;for(let e=0;e<a;e++)i.put(e%2?17:236,8);return function(e,t,n){let i,o,s=r.getSymbolTotalCodewords(t),a=s-d.getTotalCodewordsCount(t,n),l=d.getBlocksCount(t,n),c=s%l,_=l-c,f=Math.floor(s/l),p=Math.floor(a/l),h=p+1,g=f-p,b=new u(g),w=0,y=Array(l),m=Array(l),x=0,v=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<_?p:h;y[e]=v.slice(w,w+t),m[e]=b.encode(y[e]),w+=t,x=Math.max(x,t)}let k=new Uint8Array(s),I=0;for(i=0;i<x;i++)for(o=0;o<l;o++)i<y[o].length&&(k[I++]=y[o][i]);for(i=0;i<g;i++)for(o=0;o<l;o++)k[I++]=m[o][i];return k}(i,e,t)}(t,n,f),y=new s(r.getSymbolSize(t));!function(e,t){let n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],o=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1)&&!(n<=i+t))for(let r=-1;r<=7;r++)o+r<=-1||n<=o+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,o+r,!0,!0):e.set(i+t,o+r,!1,!0))}}(y,t);let m=y.size;for(let e=8;e<m-8;e++){let t=e%2==0;y.set(e,6,t,!0),y.set(6,e,t,!0)}return!function(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=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(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}(y,t),g(y,n,0),t>=7&&function(e,t){let n,r,i,o=e.size,s=_.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),r=t%3+o-8-3,i=(s>>t&1)==1,e.set(n,r,i,!0),e.set(r,n,i,!0)}(y,t),!function(e,t){let n=e.size,r=-1,i=n-1,o=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,a-n)){let r=!1;s<t.length&&(r=(t[s]>>>o&1)==1),e.set(i,a-n,r),-1==--o&&(s++,o=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(y,w),isNaN(i)&&(i=c.getBestMask(y,g.bind(null,y,n))),c.applyMask(i,y),g(y,n,i),{modules:y,version:t,errorCorrectionLevel:n,maskPattern:i,segments:f}}(e,n,b,f)}},57354:(e,t)=>{let n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[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 r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},58976:(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{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)}}catch(e){return n}}},60061:(e,t,n)=>{let r=n(91640);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.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=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},60519:(e,t,n)=>{let r=n(58976),i=[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],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[(e-1)*4+0];case r.M:return i[(e-1)*4+1];case r.Q:return i[(e-1)*4+2];case r.H:return i[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}}},62202:(e,t,n)=>{let r=n(46087),i=n(60519),o=n(58976),s=n(43585),a=n(29343),l=r.getBCHDigit(7973);function c(e,t){return s.getCharCountIndicator(e,t)+4}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!a.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);let o=(r.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t))*8;if(n===s.MIXED)return o;let l=o-c(n,e);switch(n){case s.NUMERIC:return Math.floor(l/10*3);case s.ALPHANUMERIC:return Math.floor(l/11*2);case s.KANJI:return Math.floor(l/13);case s.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r,i=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1){for(let n=1;n<=40;n++)if(function(e,t){let n=0;return e.forEach(function(e){let r=c(e.mode,t);n+=r+e.getBitsLength()}),n}(e,n)<=t.getCapacity(n,i,s.MIXED))return n;return}if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},66444:(e,t,n)=>{let r=n(43585);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let i=this.data.length-t;i>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*i+1))},e.exports=i},68375:()=>{},69184:(e,t,n)=>{let r=n(43585),i=["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 o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},71328:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/idkit_wasm_bg.d89072d0.wasm"},72920:(e,t,n)=>{let r=n(43585),i=n(66444),o=n(69184),s=n(87487),a=n(15580),l=n(81685),c=n(46087),d=n(98521);function u(e){return unescape(encodeURIComponent(e)).length}function _(e,t,n){let r,i=[];for(;null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function f(e){let t,n,i=_(l.NUMERIC,r.NUMERIC,e),o=_(l.ALPHANUMERIC,r.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=_(l.BYTE,r.BYTE,e),n=_(l.KANJI,r.KANJI,e)):(t=_(l.BYTE_KANJI,r.BYTE,e),n=[]),i.concat(o,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 p(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return a.getBitsLength(e);case r.BYTE:return s.getBitsLength(e)}}function h(e,t){let n,l=r.getBestModeForData(e);if((n=r.from(t,l))!==r.BYTE&&n.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n===r.KANJI&&!c.isKanjiModeEnabled()&&(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new a(e);case r.BYTE:return new s(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(h(t,null)):t.data&&e.push(h(t.data,t.mode)),e},[])},t.fromString=function(e,n){let i=function(e,t){let n={},i={start:{}},o=["start"];for(let s=0;s<e.length;s++){let a=e[s],l=[];for(let e=0;e<a.length;e++){let c=a[e],d=""+s+e;l.push(d),n[d]={node:c,lastCount:0},i[d]={};for(let e=0;e<o.length;e++){let s=o[e];n[s]&&n[s].node.mode===c.mode?(i[s][d]=p(n[s].lastCount+c.length,c.mode)-p(n[s].lastCount,c.mode),n[s].lastCount+=c.length):(n[s]&&(n[s].lastCount=c.length),i[s][d]=p(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)i[o[e]].end=0;return{map:i,table:n}}(function(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:u(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:u(i.data)}])}}return t}(f(e,c.isKanjiModeEnabled())),n),o=d.find_path(i.map,"start","end"),s=[];for(let e=1;e<o.length-1;e++)s.push(i.table[o[e]].node);return t.fromArray(s.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()))}},75525:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(19946).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
465y:"oel41y"}]])},79621: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,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!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},81685:(e,t)=>{let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(i,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+r+"$"),s=RegExp("^"+n+"$"),a=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},82269:(e,t,n)=>{"use strict";var r=n(49509);n(68375);var i=n(12115),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==r&&r.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,o=void 0===i?s:i;c(a(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",c("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(c(a(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}
465}else{var r=this._tags[e];c(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},n.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&c(a(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function _(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return u[r]||(u[r]="jsx-"+d(e+"-"+n)),u[r]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),r&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=o,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}}
465)})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=_(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:_(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),h=i.createContext(null);h.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,b="undefined"!=typeof window?new p:void 0;function w(e){var t=b||i.useContext(h);return t&&("undefined"==typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}w.dynamic=function(e){return e.map(function(e){return _(e[0],e[1])}).join(" ")},t.style=w},87487:(e,t,n)=>{let r=n(43585);function i(e){this.mode=r.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},88252:(e,t,n)=>{let r=n(46087),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<<r.getBCHDigit(o)-i;return(n<<10|o)^21522}},91640:(e,t,n)=>{let r=n(57354);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=r.mul(e[i],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let i=0;i<t.length;i++)n[i]^=r.mul(t[i],e);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let i=0;i<e;i++)n=t.mul(n,new Uint8Array([1,r.exp(i)]));return n}},98521:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var i,o,s,a,l,c,d,u={},_={};_[n]=0;var f=t.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(s in o=(i=f.pop()).value,a=i.cost,l=e[o]||{})l.hasOwnProperty(s)&&(c=a+l[s],d=_[s],(void 0===_[s]||d>c)&&(_[s]=c,f.push(s,c),u[s]=o));if(void 0!==r&&void 0===_[r])throw Error(["Could not find a path from ",n," to ",r,"."].join(""));return u},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},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}}]);

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.